vendor: 4,851 bytes, lines 1-17
1var AC=Object.defineProperty;var CC=(e,t,a)=>t in e?AC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var mx=(e,t,a)=>CC(e,typeof t!="symbol"?t+"":t,a);function _C(e,t){for(var a=0;a<t.length;a++){const s=t[a];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const u=Object.getOwnPropertyDescriptor(s,o);u&&Object.defineProperty(e,o,u.get?u:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();function Ym(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zf={exports:{}},bo={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var px;function RC(){if(px)return bo;px=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(s,o,u){var d=null;if(u!==void 0&&(d=""+u),o.key!==void 0&&(d=""+o.key),"key"in o){u={};for(var h in o)h!=="key"&&(u[h]=o[h])}else u=o;return o=u.ref,{$$typeof:e,type:s,key:d,ref:o!==void 0?o:null,props:u}}return bo.Fragment=t,bo.jsx=a,bo.jsxs=a,bo}var gx;function kC(){return gx||(gx=1,Zf.exports=RC()),Zf.exports}var c=kC(),Qf={exports:{}},Te={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var vx;function MC(){if(vx)return Te;vx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.iterator;function b(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,E={};function A(N,L,U){this.props=N,this.context=L,this.refs=E,this.updater=U||S}A.prototype.isReactComponent={},A.prototype.setState=function(N,L){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,L,"setState")},A.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function C(){}C.prototype=A.prototype;function k(N,L,U){this.props=N,this.context=L,this.refs=E,this.updater=U||S}var R=k.prototype=new C;R.constructor=k,j(R,A.prototype),R.isPureReactComponent=!0;var P=Array.isArray,M={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function G(N,L,U,K,W,te){return U=te.ref,{$$typeof:e,type:N,key:L,ref:U!==void 0?U:null,props:te}}function H(N,L){return G(N.type,L,void 0,void 0,void 0,N.props)}function $(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function J(N){var L={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(U){return L[U]})}var de=/\/+/g;function Ee(N,L){return typeof N=="object"&&N!==null&&N.key!=null?J(""+N.key):L.toString(36)}function he(){}function pe(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(he,he):(N.status="pending",N.then(function(L){N.status==="pending"&&(N.status="fulfilled",N.value=L)},function(L){N.status==="pending"&&(N.status="rejected",N.reason=L)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function we(N,L,U,K,W){var te=typeof N;(te==="undefined"||te==="boolean")&&(N=null);var se=!1;if(N===null)se=!0;else switch(te){case"bigint":case"string":case"number":se=!0;break;case"object":switch(N.$$typeof){case e:case t:se=!0;break;case v:return se=N._init,we(se(N._payload),L,U,K,W)}}
vendor: 6,617 bytes, lines 17-25
17if(se)return W=W(N),se=K===""?"."+Ee(N,0):K,P(W)?(U="",se!=null&&(U=se.replace(de,"$&/")+"/"),we(W,L,U,"",function(ke){return ke})):W!=null&&($(W)&&(W=H(W,U+(W.key==null||N&&N.key===W.key?"":(""+W.key).replace(de,"$&/")+"/")+se)),L.push(W)),1;se=0;var ue=K===""?".":K+":";if(P(N))for(var ve=0;ve<N.length;ve++)K=N[ve],te=ue+Ee(K,ve),se+=we(K,L,U,te,W);else if(ve=b(N),typeof ve=="function")for(N=ve.call(N),ve=0;!(K=N.next()).done;)K=K.value,te=ue+Ee(K,ve++),se+=we(K,L,U,te,W);else if(te==="object"){if(typeof N.then=="function")return we(pe(N),L,U,K,W);throw L=String(N),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return se}function Z(N,L,U){if(N==null)return N;var K=[],W=0;return we(N,K,"","",function(te){return L.call(U,te,W++)}),K}function ee(N){if(N._status===-1){var L=N._result;L=L(),L.then(function(U){(N._status===0||N._status===-1)&&(N._status=1,N._result=U)},function(U){(N._status===0||N._status===-1)&&(N._status=2,N._result=U)}),N._status===-1&&(N._status=0,N._result=L)}if(N._status===1)return N._result.default;throw N._result}var F=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=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(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function ce(){}return Te.Children={map:Z,forEach:function(N,L,U){Z(N,function(){L.apply(this,arguments)},U)},count:function(N){var L=0;return Z(N,function(){L++}),L},toArray:function(N){return Z(N,function(L){return L})||[]},only:function(N){if(!$(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Te.Component=A,Te.Fragment=a,Te.Profiler=o,Te.PureComponent=k,Te.StrictMode=s,Te.Suspense=m,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Te.act=function(){throw Error("act(...) is not supported in production builds of React.")},Te.cache=function(N){return function(){return N.apply(null,arguments)}},Te.cloneElement=function(N,L,U){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var K=j({},N.props),W=N.key,te=void 0;if(L!=null)for(se in L.ref!==void 0&&(te=void 0),L.key!==void 0&&(W=""+L.key),L)!z.call(L,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&L.ref===void 0||(K[se]=L[se]);var se=arguments.length-2;if(se===1)K.children=U;else if(1<se){for(var ue=Array(se),ve=0;ve<se;ve++)ue[ve]=arguments[ve+2];K.children=ue}return G(N.type,W,void 0,void 0,te,K)},Te.createContext=function(N){return N={$$typeof:d,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:u,_context:N},N},Te.createElement=function(N,L,U){var K,W={},te=null;if(L!=null)for(K in L.key!==void 0&&(te=""+L.key),L)z.call(L,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(W[K]=L[K]);var se=arguments.length-2;if(se===1)W.children=U;else if(1<se){for(var ue=Array(se),ve=0;ve<se;ve++)ue[ve]=arguments[ve+2];W.children=ue}if(N&&N.defaultProps)for(K in se=N.defaultProps,se)W[K]===void 0&&(W[K]=se[K]);return G(N,te,void 0,void 0,null,W)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(N){return{$$typeof:h,render:N}},Te.isValidElement=$,Te.lazy=function(N){return{$$typeof:v,_payload:{_status:-1,_result:N},_init:ee}},Te.memo=function(N,L){return{$$typeof:g,type:N,compare:L===void 0?null:L}},Te.startTransition=function(N){var L=M.T,U={};M.T=U;try{var K=N(),W=M.S;W!==null&&W(U,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(ce,F)}catch(te){F(te)}finally{M.T=L}},Te.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Te.use=function(N){return M.H.use(N)},Te.useActionState=function(N,L,U){return M.H.useActionState(N,L,U)},Te.useCallback=function(N,L){return M.H.useCallback(N,L)},Te.useContext=function(N){return M.H.useContext(N)},Te.useDebugValue=function(){},Te.useDeferredValue=function(N,L){return M.H.useDeferredValue(N,L)},Te.useEffect=function(N,L){return M.H.useEffect(N,L)},Te.useId=function(){return M.H.useId()},Te.useImperativeHandle=function(N,L,U){return M.H.useImperativeHandle(N,L,U)},Te.useInsertionEffect=function(N,L){return M.H.useInsertionEffect(N,L)},Te.useLayoutEffect=function(N,L){return M.H.useLayoutEffect(N,L)},Te.useMemo=function(N,L){return M.H.useMemo(N,L)},Te.useOptimistic=function(N,L){return M.H.useOptimistic(N,L)},Te.useReducer=function(N,L,U){return M.H.useReducer(N,L,U)},Te.useRef=function(N){return M.H.useRef(N)},Te.useState=function(N){return M.H.useState(N)},Te.useSyncExternalStore=function(N,L,U){return M.H.useSyncExternalStore(N,L,U)},Te.useTransition=function(){return M.H.useTransition()},Te.version="19.0.0",Te}var yx;function Wm(){return yx||(yx=1,Qf.exports=MC()),Qf.exports}var x=Wm();const Fe=Ym(x),Xm=_C({__proto__:null,default:Fe},[x]);var Jf={exports:{}},wo={},eh={exports:{}},th={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var xx;function DC(){return xx||(xx=1,(function(e){function t(Z,ee){var F=Z.length;Z.push(ee);e:for(;0<F;){var ce=F-1>>>1,N=Z[ce];if(0<o(N,ee))Z[ce]=ee,Z[F]=N,F=ce;else break e}}function a(Z){return Z.length===0?null:Z[0]}function s(Z){if(Z.length===0)return null;var ee=Z[0],F=Z.pop();if(F!==ee){Z[0]=F;e:for(var ce=0,N=Z.length,L=N>>>1;ce<L;){var U=2*(ce+1)-1,K=Z[U],W=U+1,te=Z[W];if(0>o(K,F))W<N&&0>o(te,K)?(Z[ce]=te,Z[W]=F,ce=W):(Z[ce]=K,Z[U]=F,ce=U);else if(W<N&&0>o(te,F))Z[ce]=te,Z[W]=F,ce=W;else break e}}return ee}function o(Z,ee){var F=Z.sortIndex-ee.sortIndex;return F!==0?F:Z.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var m=[],g=[],v=1,y=null,b=3,S=!1,j=!1,E=!1,A=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function R(Z){for(var ee=a(g);ee!==null;){if(ee.callback===null)s(g);else if(ee.startTime<=Z)s(g),ee.sortIndex=ee.expirationTime,t(m,ee);else break;ee=a(g)}}
vendor: 9,422 bytes, lines 25-43
25function P(Z){if(E=!1,R(Z),!j)if(a(m)!==null)j=!0,pe();else{var ee=a(g);ee!==null&&we(P,ee.startTime-Z)}}var M=!1,z=-1,G=5,H=-1;function $(){return!(e.unstable_now()-H<G)}function J(){if(M){var Z=e.unstable_now();H=Z;var ee=!0;try{e:{j=!1,E&&(E=!1,C(z),z=-1),S=!0;var F=b;try{t:{for(R(Z),y=a(m);y!==null&&!(y.expirationTime>Z&&$());){var ce=y.callback;if(typeof ce=="function"){y.callback=null,b=y.priorityLevel;var N=ce(y.expirationTime<=Z);if(Z=e.unstable_now(),typeof N=="function"){y.callback=N,R(Z),ee=!0;break t}y===a(m)&&s(m),R(Z)}else s(m);y=a(m)}if(y!==null)ee=!0;else{var L=a(g);L!==null&&we(P,L.startTime-Z),ee=!1}}break e}finally{y=null,b=F,S=!1}ee=void 0}}finally{ee?de():M=!1}}}var de;if(typeof k=="function")de=function(){k(J)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,he=Ee.port2;Ee.port1.onmessage=J,de=function(){he.postMessage(null)}}else de=function(){A(J,0)};function pe(){M||(M=!0,de())}function we(Z,ee){z=A(function(){Z(e.unstable_now())},ee)}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_continueExecution=function(){j||S||(j=!0,pe())},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"):G=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return a(m)},e.unstable_next=function(Z){switch(b){case 1:case 2:case 3:var ee=3;break;default:ee=b}var F=b;b=ee;try{return Z()}finally{b=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Z,ee){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var F=b;b=Z;try{return ee()}finally{b=F}},e.unstable_scheduleCallback=function(Z,ee,F){var ce=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ce+F:ce):F=ce,Z){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=F+N,Z={id:v++,callback:ee,priorityLevel:Z,startTime:F,expirationTime:N,sortIndex:-1},F>ce?(Z.sortIndex=F,t(g,Z),a(m)===null&&Z===a(g)&&(E?(C(z),z=-1):E=!0,we(P,F-ce))):(Z.sortIndex=N,t(m,Z),j||S||(j=!0,pe())),Z},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(Z){var ee=b;return function(){var F=b;b=ee;try{return Z.apply(this,arguments)}finally{b=F}}}})(th)),th}var bx;function OC(){return bx||(bx=1,eh.exports=DC()),eh.exports}var nh={exports:{}},At={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var wx;function PC(){if(wx)return At;wx=1;var e=Wm();function t(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(m,g,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:m,containerInfo:g,implementation:v}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return At.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,At.createPortal=function(m,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return u(m,g,null,v)},At.flushSync=function(m){var g=d.T,v=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=g,s.p=v,s.d.f()}},At.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},At.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},At.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var v=g.as,y=h(v,g.crossOrigin),b=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:S}):v==="script"&&s.d.X(m,{crossOrigin:y,integrity:b,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},At.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=h(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(m)},At.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,y=h(v,g.crossOrigin);s.d.L(m,v,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},At.preloadModule=function(m,g){if(typeof m=="string")if(g){var v=h(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},At.requestFormReset=function(m){s.d.r(m)},At.unstable_batchedUpdates=function(m,g){return m(g)},At.useFormState=function(m,g,v){return d.H.useFormState(m,g,v)},At.useFormStatus=function(){return d.H.useHostTransitionStatus()},At.version="19.0.0",At}var Sx;function Nw(){if(Sx)return nh.exports;Sx=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(),nh.exports=PC(),nh.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var Tx;function LC(){if(Tx)return wo;Tx=1;var e=OC(),t=Wm(),a=Nw();function s(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)i+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+n+"; visit "+i+" 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)}var u=Symbol.for("react.element"),d=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),b=Symbol.for("react.consumer"),S=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),P=Symbol.for("react.memo_cache_sentinel"),M=Symbol.iterator;function z(n){return n===null||typeof n!="object"?null:(n=M&&n[M]||n["@@iterator"],typeof n=="function"?n:null)}var G=Symbol.for("react.client.reference");function H(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===G?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case m:return"Fragment";case h:return"Portal";case v:return"Profiler";case g:return"StrictMode";case E:return"Suspense";case A:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case S:return(n.displayName||"Context")+".Provider";case b:return(n._context.displayName||"Context")+".Consumer";case j:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case C:return i=n.displayName||null,i!==null?i:H(n.type)||"Memo";case k:i=n._payload,n=n._init;try{return H(n(i))}catch{}}return null}var $=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.assign,de,Ee;function he(n){if(de===void 0)try{throw Error()}catch(r){var i=r.stack.trim().match(/\n( *(at )?)/);de=i&&i[1]||"",Ee=-1<r.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+de+n+Ee}var pe=!1;function we(n,i){if(!n||pe)return"";pe=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(q){var V=q}Reflect.construct(n,[],Q)}else{try{Q.call()}catch(q){V=q}
vendor: 12,725 bytes, lines 43-48
43n.call(Q.prototype)}}else{try{throw Error()}catch(q){V=q}(Q=n())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(q){if(q&&V&&typeof q.stack=="string")return[q.stack,V.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=l.DetermineComponentFrameRoot(),w=p[0],T=p[1];if(w&&T){var _=w.split(` 44`),O=T.split(` 45`);for(f=l=0;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;for(;f<O.length&&!O[f].includes("DetermineComponentFrameRoot");)f++;if(l===_.length||f===O.length)for(l=_.length-1,f=O.length-1;1<=l&&0<=f&&_[l]!==O[f];)f--;for(;1<=l&&0<=f;l--,f--)if(_[l]!==O[f]){if(l!==1||f!==1)do if(l--,f--,0>f||_[l]!==O[f]){var Y=` 46`+_[l].replace(" at new "," at ");return n.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",n.displayName)),Y}while(1<=l&&0<=f);break}}}finally{pe=!1,Error.prepareStackTrace=r}return(r=n?n.displayName||n.name:"")?he(r):""}function Z(n){switch(n.tag){case 26:case 27:case 5:return he(n.type);case 16:return he("Lazy");case 13:return he("Suspense");case 19:return he("SuspenseList");case 0:case 15:return n=we(n.type,!1),n;case 11:return n=we(n.type.render,!1),n;case 1:return n=we(n.type,!0),n;default:return""}}function ee(n){try{var i="";do i+=Z(n),n=n.return;while(n);return i}catch(r){return` 47Error generating stack: `+r.message+` 48`+r.stack}}function F(n){var i=n,r=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(r=i.return),n=i.return;while(n)}return i.tag===3?r:null}function ce(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function N(n){if(F(n)!==n)throw Error(s(188))}function L(n){var i=n.alternate;if(!i){if(i=F(n),i===null)throw Error(s(188));return i!==n?null:n}for(var r=n,l=i;;){var f=r.return;if(f===null)break;var p=f.alternate;if(p===null){if(l=f.return,l!==null){r=l;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===r)return N(f),n;if(p===l)return N(f),i;p=p.sibling}throw Error(s(188))}if(r.return!==l.return)r=f,l=p;else{for(var w=!1,T=f.child;T;){if(T===r){w=!0,r=f,l=p;break}if(T===l){w=!0,l=f,r=p;break}T=T.sibling}if(!w){for(T=p.child;T;){if(T===r){w=!0,r=p,l=f;break}if(T===l){w=!0,l=p,r=f;break}T=T.sibling}if(!w)throw Error(s(189))}}if(r.alternate!==l)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?n:i}function U(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=U(n),i!==null)return i;n=n.sibling}return null}var K=Array.isArray,W=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},se=[],ue=-1;function ve(n){return{current:n}}function ke(n){0>ue||(n.current=se[ue],se[ue]=null,ue--)}function Se(n,i){ue++,se[ue]=n.current,n.current=i}var Ue=ve(null),_e=ve(null),dt=ve(null),nn=ve(null);function Ft(n,i){switch(Se(dt,i),Se(_e,n),Se(Ue,null),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)&&(i=i.namespaceURI)?F0(i):0;break;default:if(n=n===8?i.parentNode:i,i=n.tagName,n=n.namespaceURI)n=F0(n),i=$0(n,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ke(Ue),Se(Ue,i)}function Et(){ke(Ue),ke(_e),ke(dt)}function ye(n){n.memoizedState!==null&&Se(nn,n);var i=Ue.current,r=$0(i,n.type);i!==r&&(Se(_e,n),Se(Ue,r))}function Ye(n){_e.current===n&&(ke(Ue),ke(_e)),nn.current===n&&(ke(nn),po._currentValue=te)}var an=Object.prototype.hasOwnProperty,Fu=e.unstable_scheduleCallback,$u=e.unstable_cancelCallback,sN=e.unstable_shouldYield,rN=e.unstable_requestPaint,Ln=e.unstable_now,oN=e.unstable_getCurrentPriorityLevel,Mg=e.unstable_ImmediatePriority,Dg=e.unstable_UserBlockingPriority,fl=e.unstable_NormalPriority,lN=e.unstable_LowPriority,Og=e.unstable_IdlePriority,cN=e.log,uN=e.unstable_setDisableYieldValue,Tr=null,$t=null;function dN(n){if($t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Tr,n,void 0,(n.current.flags&128)===128)}catch{}}function Ra(n){if(typeof cN=="function"&&uN(n),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Tr,n)}catch{}}var Gt=Math.clz32?Math.clz32:mN,fN=Math.log,hN=Math.LN2;function mN(n){return n>>>=0,n===0?32:31-(fN(n)/hN|0)|0}var hl=128,ml=4194304;function wi(n){var i=n&42;if(i!==0)return i;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: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 n&4194176;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 pl(n,i){var r=n.pendingLanes;if(r===0)return 0;var l=0,f=n.suspendedLanes,p=n.pingedLanes,w=n.warmLanes;n=n.finishedLanes!==0;var T=r&134217727;return T!==0?(r=T&~f,r!==0?l=wi(r):(p&=T,p!==0?l=wi(p):n||(w=T&~w,w!==0&&(l=wi(w))))):(T=r&~f,T!==0?l=wi(T):p!==0?l=wi(p):n||(w=r&~w,w!==0&&(l=wi(w)))),l===0?0:i!==0&&i!==l&&(i&f)===0&&(f=l&-l,w=i&-i,f>=w||f===32&&(w&4194176)!==0)?i:l}function Er(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function pN(n,i){switch(n){case 1:case 2:case 4:case 8:return i+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pg(){var n=hl;return hl<<=1,(hl&4194176)===0&&(hl=128),n}function Lg(){var n=ml;return ml<<=1,(ml&62914560)===0&&(ml=4194304),n}function Gu(n){for(var i=[],r=0;31>r;r++)i.push(n);return i}function jr(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function gN(n,i,r,l,f,p){var w=n.pendingLanes;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=r,n.entangledLanes&=r,n.errorRecoveryDisabledLanes&=r,n.shellSuspendCounter=0;var T=n.entanglements,_=n.expirationTimes,O=n.hiddenUpdates;for(r=w&~r;0<r;){var Y=31-Gt(r),Q=1<<Y;T[Y]=0,_[Y]=-1;var V=O[Y];if(V!==null)for(O[Y]=null,Y=0;Y<V.length;Y++){var q=V[Y];q!==null&&(q.lane&=-536870913)}r&=~Q}l!==0&&Ig(n,l,0),p!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=p&~(w&~i))}function Ig(n,i,r){n.pendingLanes|=i,n.suspendedLanes&=~i;var l=31-Gt(i);n.entangledLanes|=i,n.entanglements[l]=n.entanglements[l]|1073741824|r&4194218}function Ug(n,i){var r=n.entangledLanes|=i;for(n=n.entanglements;r;){var l=31-Gt(r),f=1<<l;f&i|n[l]&i&&(n[l]|=i),r&=~f}}function Bg(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function zg(){var n=W.p;return n!==0?n:(n=window.event,n===void 0?32:lx(n.type))}function vN(n,i){var r=W.p;try{return W.p=n,i()}finally{W.p=r}}var ka=Math.random().toString(36).slice(2),jt="__reactFiber$"+ka,Lt="__reactProps$"+ka,ss="__reactContainer$"+ka,qu="__reactEvents$"+ka,yN="__reactListeners$"+ka,xN="__reactHandles$"+ka,Vg="__reactResources$"+ka,Nr="__reactMarker$"+ka;function Ku(n){delete n[jt],delete n[Lt],delete n[qu],delete n[yN],delete n[xN]}function Si(n){var i=n[jt];if(i)return i;for(var r=n.parentNode;r;){if(i=r[ss]||r[jt]){if(r=i.alternate,i.child!==null||r!==null&&r.child!==null)for(n=K0(n);n!==null;){if(r=n[jt])return r;n=K0(n)}return i}n=r,r=n.parentNode}return null}function rs(n){if(n=n[jt]||n[ss]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}function Ar(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(s(33))}function os(n){var i=n[Vg];return i||(i=n[Vg]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function gt(n){n[Nr]=!0}var Hg=new Set,Fg={};function Ti(n,i){ls(n,i),ls(n+"Capture",i)}function ls(n,i){for(Fg[n]=i,n=0;n<i.length;n++)Hg.add(i[n])}var na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bN=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),$g={},Gg={};function wN(n){return an.call(Gg,n)?!0:an.call($g,n)?!1:bN.test(n)?Gg[n]=!0:($g[n]=!0,!1)}function gl(n,i,r){if(wN(i))if(r===null)n.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+r)}}function vl(n,i,r){if(r===null)n.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+r)}}function aa(n,i,r,l){if(l===null)n.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttributeNS(i,r,""+l)}}function sn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function qg(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function SN(n){var i=qg(n)?"checked":"value",r=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),l=""+n[i];if(!n.hasOwnProperty(i)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var f=r.get,p=r.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return f.call(this)},set:function(w){l=""+w,p.call(this,w)}}),Object.defineProperty(n,i,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(w){l=""+w},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function yl(n){n._valueTracker||(n._valueTracker=SN(n))}function Kg(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var r=i.getValue(),l="";return n&&(l=qg(n)?n.checked?"true":"false":n.value),n=l,n!==r?(i.setValue(n),!0):!1}function xl(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 TN=/[\n"\\]/g;function rn(n){return n.replace(TN,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Yu(n,i,r,l,f,p,w,T){n.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?n.type=w:n.removeAttribute("type"),i!=null?w==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+sn(i)):n.value!==""+sn(i)&&(n.value=""+sn(i)):w!=="submit"&&w!=="reset"||n.removeAttribute("value"),i!=null?Wu(n,w,sn(i)):r!=null?Wu(n,w,sn(r)):l!=null&&n.removeAttribute("value"),f==null&&p!=null&&(n.defaultChecked=!!p),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?n.name=""+sn(T):n.removeAttribute("name")}function Yg(n,i,r,l,f,p,w,T){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),i!=null||r!=null){if(!(p!=="submit"&&p!=="reset"||i!=null))return;r=r!=null?""+sn(r):"",i=i!=null?""+sn(i):r,T||i===n.value||(n.value=i),n.defaultValue=i}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=T?n.checked:!!l,n.defaultChecked=!!l,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(n.name=w)}function Wu(n,i,r){i==="number"&&xl(n.ownerDocument)===n||n.defaultValue===""+r||(n.defaultValue=""+r)}function cs(n,i,r,l){if(n=n.options,i){i={};for(var f=0;f<r.length;f++)i["$"+r[f]]=!0;for(r=0;r<n.length;r++)f=i.hasOwnProperty("$"+n[r].value),n[r].selected!==f&&(n[r].selected=f),f&&l&&(n[r].defaultSelected=!0)}else{for(r=""+sn(r),i=null,f=0;f<n.length;f++){if(n[f].value===r){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}i!==null||n[f].disabled||(i=n[f])}i!==null&&(i.selected=!0)}}function Wg(n,i,r){if(i!=null&&(i=""+sn(i),i!==n.value&&(n.value=i),r==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=r!=null?""+sn(r):""}function Xg(n,i,r,l){if(i==null){if(l!=null){if(r!=null)throw Error(s(92));if(K(l)){if(1<l.length)throw Error(s(93));l=l[0]}r=l}r==null&&(r=""),i=r}r=sn(i),n.defaultValue=r,l=n.textContent,l===r&&l!==""&&l!==null&&(n.value=l)}
vendor: 4,182 bytes, line 48
48function us(n,i){if(i){var r=n.firstChild;if(r&&r===n.lastChild&&r.nodeType===3){r.nodeValue=i;return}}n.textContent=i}var EN=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 Zg(n,i,r){var l=i.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":l?n.setProperty(i,r):typeof r!="number"||r===0||EN.has(i)?i==="float"?n.cssFloat=r:n[i]=(""+r).trim():n[i]=r+"px"}function Qg(n,i,r){if(i!=null&&typeof i!="object")throw Error(s(62));if(n=n.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var f in i)l=i[f],i.hasOwnProperty(f)&&r[f]!==l&&Zg(n,f,l)}else for(var p in i)i.hasOwnProperty(p)&&Zg(n,p,i[p])}function Xu(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 jN=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
48-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"]]),NN=/^[\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 bl(n){return NN.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Zu=null;function Qu(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ds=null,fs=null;function Jg(n){var i=rs(n);if(i&&(n=i.stateNode)){var r=n[Lt]||null;e:switch(n=i.stateNode,i.type){case"input":if(Yu(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),i=r.name,r.type==="radio"&&i!=null){for(r=n;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+rn(""+i)+'"][type="radio"]'),i=0;i<r.length;i++){var l=r[i];if(l!==n&&l.form===n.form){var f=l[Lt]||null;if(!f)throw Error(s(90));Yu(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(i=0;i<r.length;i++)l=r[i],l.form===n.form&&Kg(l)}break e;case"textarea":Wg(n,r.value,r.defaultValue);break e;case"select":i=r.value,i!=null&&cs(n,!!r.multiple,i,!1)}}}var Ju=!1;function ev(n,i,r){if(Ju)return n(i,r);Ju=!0;try{var l=n(i);return l}finally{if(Ju=!1,(ds!==null||fs!==null)&&(ac(),ds&&(i=ds,n=fs,fs=ds=null,Jg(i),n)))for(i=0;i<n.length;i++)Jg(n[i])}}function Cr(n,i){var r=n.stateNode;if(r===null)return null;var l=r[Lt]||null;if(l===null)return null;r=l[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(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(r&&typeof r!="function")throw Error(s(231,i,typeof r));return r}var ed=!1;if(na)try{var _r={};Object.defineProperty(_r,"passive",{get:function(){ed=!0}}),window.addEventListener("test",_r,_r),window.removeEventListener("test",_r,_r)}catch{ed=!1}var Ma=null,td=null,wl=null;function tv(){if(wl)return wl;var n,i=td,r=i.length,l,f="value"in Ma?Ma.value:Ma.textContent,p=f.length;for(n=0;n<r&&i[n]===f[n];n++);var w=r-n;for(l=1;l<=w&&i[r-l]===f[p-l];l++);return wl=f.slice(n,1<l?1-l:void 0)}function Sl(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Tl(){return!0}function nv(){return!1}function It(n){function i(r,l,f,p,w){this._reactName=r,this._targetInst=f,this.type=l,this.nativeEvent=p,this.target=w,this.currentTarget=null;for(var T in n)n.hasOwnProperty(T)&&(r=n[T],this[T]=r?r(p):p[T]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Tl:nv,this.isPropagationStopped=nv,this}return J(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Tl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Tl)},persist:function(){},isPersistent:Tl}),i}var Ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},El=It(Ei),Rr=J({},Ei,{view:0,detail:0}),AN=It(Rr),nd,ad,kr,jl=J({},Rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sd,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!==kr&&(kr&&n.type==="mousemove"?(nd=n.screenX-kr.screenX,ad=n.screenY-kr.screenY):ad=nd=0,kr=n),nd)},movementY:function(n){return"movementY"in n?n.movementY:ad}}),av=It(jl),CN=J({},jl,{dataTransfer:0}),_N=It(CN),RN=J({},Rr,{relatedTarget:0}),id=It(RN),kN=J({},Ei,{animationName:0,elapsedTime:0,pseudoElement:0}),MN=It(kN),DN=J({},Ei,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}
vendor: 1,037 bytes, line 48
48),ON=It(DN),PN=J({},Ei,{data:0}),iv=It(PN),LN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IN={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"},UN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function BN(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=UN[n])?!!i[n]:!1}function sd(){return BN}var zN=J({},Rr,{key:function(n){if(n.key){var i=LN[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Sl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="
48keydown"||n.type==="keyup"?IN[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sd,charCode:function(n){return n.type==="keypress"?Sl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Sl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),VN=It(zN),HN=J({},jl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sv=It(HN),FN=J({},Rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sd}),$N=It(FN),GN=J({},Ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),qN=It(GN),KN=J({},jl,{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}),YN=It(KN),WN=J({},Ei,{newState:0,oldState:0}),XN=It(WN),ZN=[9,13,27,32],rd=na&&"CompositionEvent"in window,Mr=null;na&&"documentMode"in document&&(Mr=document.documentMode);var QN=na&&"TextEvent"in window&&!Mr,rv=na&&(!rd||Mr&&8<Mr&&11>=Mr),ov=" ",lv=!1;function cv(n,i){switch(n){case"keyup":return ZN.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uv(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var hs=!1;function JN(n,i){switch(n){case"compositionend":return uv(i);case"keypress":return i.which!==32?null:(lv=!0,ov);case"textInput":return n=i.data,n===ov&&lv?null:n;default:return null}}function eA(n,i){if(hs)return n==="compositionend"||!rd&&cv(n,i)?(n=tv(),wl=td=Ma=null,hs=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return rv&&i.locale!=="ko"?null:i.data;default:return null}}var tA={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 dv(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!tA[n.type]:i==="textarea"}function fv(n,i,r,l){ds?fs?fs.push(l):fs=[l]:ds=l,i=lc(i,"onChange"),0<i.length&&(r=new El("onChange","change",null,r,l),n.push({event:r,listeners:i}))}var Dr=null,Or=null;function nA(n){U0(n,0)}function Nl(n){var i=Ar(n);if(Kg(i))return n}function hv(n,i){if(n==="change")return i}var mv=!1;if(na){var od;if(na){var ld="oninput"in document;if(!ld){var pv=document.createElement("div");pv.setAttribute("oninput","return;"),ld=typeof pv.oninput=="function"}od=ld}else od=!1;mv=od&&(!document.documentMode||9<document.documentMode)}function gv(){Dr&&(Dr.detachEvent("onpropertychange",vv),Or=Dr=null)}function vv(n){if(n.propertyName==="value"&&Nl(Or)){var i=[];fv(i,Or,n,Qu(n)),ev(nA,i)}}function aA(n,i,r){n==="focusin"?(gv(),Dr=i,Or=r,Dr.attachEvent("onpropertychange",vv)):n==="focusout"&&gv()}function iA(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Nl(Or)}function sA(n,i){if(n==="click")return Nl(i)}function rA(n,i){if(n==="input"||n==="change")return Nl(i)}function oA(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var qt=typeof Object.is=="function"?Object.is:oA;function Pr(n,i){if(qt(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var r=Object.keys(n),l=Object.keys(i);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var f=r[l];if(!an.call(i,f)||!qt(n[f],i[f]))return!1}return!0}function yv(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function xv(n,i){var r=yv(n);n=0;for(var l;r;){if(r.nodeType===3){if(l=n+r.textContent.length,n<=i&&l>=i)return{node:r,offset:i-n};n=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=yv(r)}}function bv(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?bv(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function wv(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=xl(n.document);i instanceof n.HTMLIFrameElement;){try{var r=typeof i.contentWindow.location.href=="string"}catch{r=!1}if(r)n=i.contentWindow;else break;i=xl(n.document)}return i}function cd(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function lA(n,i){var r=wv(i);i=n.focusedElem;var l=n.selectionRange;if(r!==i&&i&&i.ownerDocument&&bv(i.ownerDocument.documentElement,i)){if(l!==null&&cd(i)){if(n=l.start,r=l.end,r===void 0&&(r=n),"selectionStart"in i)i.selectionStart=n,i.selectionEnd=Math.min(r,i.value.length);else if(r=(n=i.ownerDocument||document)&&n.defaultView||window,r.getSelection){r=r.getSelection();var f=i.textContent.length,p=Math.min(l.start,f);l=l.end===void 0?p:Math.min(l.end,f),!r.extend&&p>l&&(f=l,l=p,p=f),f=xv(i,p);var w=xv(i,l);f&&w&&(r.rangeCount!==1||r.anchorNode!==f.node||r.anchorOffset!==f.offset||r.focusNode!==w.node||r.focusOffset!==w.offset)&&(n=n.createRange(),n.setStart(f.no
vendor: 7,424 bytes, line 48
48de,f.offset),r.removeAllRanges(),p>l?(r.addRange(n),r.extend(w.node,w.offset)):(n.setEnd(w.node,w.offset),r.addRange(n)))}}for(n=[],r=i;r=r.parentNode;)r.nodeType===1&&n.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<n.length;i++)r=n[i],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var cA=na&&"documentMode"in document&&11>=document.documentMode,ms=null,ud=null,Lr=null,dd=!1;function Sv(n,i,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;dd||ms==null||ms!==xl(l)||(l=ms,"selectionStart"in l&&cd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Lr&&Pr(Lr,l)||(Lr=l,l=lc(ud,"onSelect"),0<l.length&&(i=new El("onSelect","select",null,i,r),n.push({event:i,listeners:l}),i.target=ms)))}function ji(n,i){var r={};return r[n.toLowerCase()]=i.toLowerCase(),r["Webkit"+n]="webkit"+i,r["Moz"+n]="moz"+i,r}var ps={animationend:ji("Animation","AnimationEnd"),animationiteration:ji("Animation","AnimationIteration"),animationstart:ji("Animation","AnimationStart"),transitionrun:ji("Transition","TransitionRun"),transitionstart:ji("Transition","TransitionStart"),transitioncancel:ji("Transition","TransitionCancel"),transitionend:ji("Transition","TransitionEnd")},fd={},Tv={};na&&(Tv=document.createElement("div").style,"AnimationEvent"in window||(delete ps.animationend.animation,delete ps.animationiteration.animation,delete ps.animationstart.animation),"TransitionEvent"in window||delete ps.transitionend.transition);function Ni(n){if(fd[n])return fd[n];if(!ps[n])return n;var i=ps[n],r;for(r in i)if(i.hasOwnProperty(r)&&r in Tv)return fd[n]=i[r];return n}var Ev=Ni("animationend"),jv=Ni("animationiteration"),Nv=Ni("animationstart"),uA=Ni("transitionrun"),dA=Ni("transitionstart"),fA=Ni("transitioncancel"),Av=Ni("transitionend"),Cv=new Map,_v="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 scrollEnd toggle touchMove waiting wheel".split(" ");function En(n,i){Cv.set(n,i),Ti(i,[n])}var on=[],gs=0,hd=0;function Al(){for(var n=gs,i=hd=gs=0;i<n;){var r=on[i];on[i++]=null;var l=on[i];on[i++]=null;var f=on[i];on[i++]=null;var p=on[i];if(on[i++]=null,l!==null&&f!==null){var w=l.pending;w===null?f.next=f:(f.next=w.next,w.next=f),l.pending=f}p!==0&&Rv(r,f,p)}}function Cl(n,i,r,l){on[gs++]=n,on[gs++]=i,on[gs++]=r,on[gs++]=l,hd|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function md(n,i,r,l){return Cl(n,i,r,l),_l(n)}function Da(n,i){return Cl(n,null,null,i),_l(n)}function Rv(n,i,r){n.lanes|=r;var l=n.alternate;l!==null&&(l.lanes|=r);for(var f=!1,p=n.return;p!==null;)p.childLanes|=r,l=p.alternate,l!==null&&(l.childLanes|=r),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(f=!0)),n=p,p=p.return;f&&i!==null&&n.tag===3&&(p=n.stateNode,f=31-Gt(r),p=p.hiddenUpdates,n=p[f],n===null?p[f]=[i]:n.push(i),i.lane=r|536870912)}function _l(n){if(50<oo)throw oo=0,wf=null,Error(s(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var vs={},kv=new WeakMap;function ln(n,i){if(typeof n=="object"&&n!==null){var r=kv.get(n);return r!==void 0?r:(i={value:n,source:i,stack:ee(i)},kv.set(n,i),i)}return{value:n,source:i,stack:ee(i)}}var ys=[],xs=0,Rl=null,kl=0,cn=[],un=0,Ai=null,ia=1,sa="";function Ci(n,i){ys[xs++]=kl,ys[xs++]=Rl,Rl=n,kl=i}function Mv(n,i,r){cn[un++]=ia,cn[un++]=sa,cn[un++]=Ai,Ai=n;var l=ia;n=sa;var f=32-Gt(l)-1;l&=~(1<<f),r+=1;var p=32-Gt(i)+f;if(30<p){var w=f-f%5;p=(l&(1<<w)-1).toString(32),l>>=w,f-=w,ia=1<<32-Gt(i)+f|r<<f|l,sa=p+n}else ia=1<<p|r<<f|l,sa=n}function pd(n){n.return!==null&&(Ci(n,1),Mv(n,1,0))}function gd(n){for(;n===Rl;)Rl=ys[--xs],ys[xs]=null,kl=ys[--xs],ys[xs]=null;for(;n===Ai;)Ai=cn[--un],cn[un]=null,sa=cn[--un],cn[un]=null,ia=cn[--un],cn[un]=null}var Mt=null,bt=null,Oe=!1,jn=null,In=!1,vd=Error(s(519));function _i(n){var i=Error(s(418,""));throw Br(ln(i,n)),vd}function Dv(n){var i=n.stateNode,r=n.type,l=n.memoizedProps;switch(i[jt]=n,i[Lt]=l,r){case"dialog":Re("cancel",i),Re("close",i);break;case"iframe":case"object":case"embed":Re("load",i);break;case"video":case"audio":for(r=0;r<co.length;r++)Re(co[r],i);break;case"source":Re("error",i);break;case"img":case"image":case"link":Re("error",i),Re("load",i);break;case"details":Re("toggle",i);break;case"input":Re("invalid",i),Yg(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),yl(i);break;case"select":Re("invalid",i);break;case"textarea":Re("invalid",i),Xg(i,l.value,l.defaultValue,l.children),yl(i)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||i.textContent===""+r||l.suppressHydrationWarning===!0||H0(i.textContent,r)?(l.popover!=null&&(Re("beforetoggle",i),Re("toggle",i)),l.onScroll!=null&&Re("scroll",i),l.onScrollEnd!=null&&Re("scrollend",i),l.onClick!=null&&(i.onclick=cc),i=!0):i=!1,i||_i(n)}function Ov(n){for(Mt=n.return;Mt;)switch(Mt.tag){case 3:case 27:In=!0;return;case 5:case 13:In=!1;return;default:Mt=Mt.return}}function Ir(n){if(n!==Mt)return!1;if(!Oe)return Ov(n),Oe=!0,!1;var i=!1,r;if((r=n.tag!==3&&n.tag!==27)&&((r=n.tag===5)&&(r=n.type,r=!(r!=="form"&&r!=="button")||Uf(n.type,n.memoizedProps)),r=!r),r&&(i=!0),i&&bt&&_i(n),Ov(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8)if(r=n.data,r==="/$"){if(i===0){bt=An(n.nextSibling);break e}i--}else r!=="$"&&r!=="$!"&&r!=="$?"||i++;n=n.nextSibling}bt=null}}else bt=Mt?An(n.stateNode.nextSibling):null;return!0}function Ur(){bt=Mt=null,Oe=!1}function Br(n){jn===null?jn=[n]:jn.push(n)}var zr=Error(s(460)),Pv=Error(s(474)),yd={then:function(){}};function Lv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Ml(){}function Iv(n,i,r){switch(r=n[r],r===void 0?n.push(i):r!==i&&(i.then(Ml,Ml),i=r),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,n===zr?Error(s(483)):n;default:if(typeof i.status=="string")i.then(Ml,Ml);else{if(n=$e,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=i,n.status="pending",n.then(function(l){if(i.status==="pending"){var f=i;f.status="fulfilled",f.value=l}},function(l){if(i.status==="pending"){var f=i;f.status="rejected",f.reason=l}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,n===zr?Error(s(483)):n}throw Vr=i,zr}}var Vr=null;function Uv(){if(Vr===null)throw Error(s(459));var n=Vr;return Vr=null,n}var bs=null,Hr=0;function Dl(n){var i=Hr;return Hr+=1,bs===null&&(bs=[]),Iv(bs,n,i)}function Fr(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function Ol(n,i){throw i.$$typeof===u?Error(s(525)):(n=Object.prototype.toString.call(i),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function Bv(n){var i=n._init;return i(n._payload)}
vendor: 1,263 bytes, line 48
48function zv(n){function i(I,D){if(n){var B=I.deletions;B===null?(I.deletions=[D],I.flags|=16):B.push(D)}}function r(I,D){if(!n)return null;for(;D!==null;)i(I,D),D=D.sibling;return null}function l(I){for(var D=new Map;I!==null;)I.key!==null?D.set(I.key,I):D.set(I.index,I),I=I.sibling;return D}function f(I,D){return I=Ga(I,D),I.index=0,I.sibling=null,I}function p(I,D,B){return I.index=B,n?(B=I.alternate,B!==null?(B=B.index,B<D?(I.flags|=33554434,D):B):(I.flags|=33554434,D)):(I.flags|=1048576,D)}function w(I){return n&&I.alternate===null&&(I.flags|=33554434),I}function T(I,D,B,X){return D===null||D.tag!==6?(D=hf(B,I.mode,X),D.return=I,D):(D=f(D,B),D.return=I,D)}function _(I,D,B,X){var ne=B.type;return ne===m?Y(I,D,B.props.children,X,B.key):D!==null&&(D.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===k&&Bv(ne)===D.type)?(D=f(D,B.props),Fr(D,B),D.return=I,D):(D=Ql(B.type,B.key,B.props,null,I.mode,X),Fr(D,B),D.return=I,D)}function O(I,D,B,X){return D===null||D.tag!==4||D.stateNode.containerInfo!==B.containerInfo||D.stateNode.implementation!==B.implementation?(D=mf(B,I.mode,X),D.return=I,D):(D=f(D,B.children||[]),D.return=I,D)}function Y(I,D,B,X,ne){return D===null||D.tag!==7?(D=Bi(B,I.mode,X,ne),D.return=I,D):(D=f(D,B),D.return=I,D)}
vendor: 10,872 bytes, line 48
48function Q(I,D,B){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=hf(""+D,I.mode,B),D.return=I,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case d:return B=Ql(D.type,D.key,D.props,null,I.mode,B),Fr(B,D),B.return=I,B;case h:return D=mf(D,I.mode,B),D.return=I,D;case k:var X=D._init;return D=X(D._payload),Q(I,D,B)}if(K(D)||z(D))return D=Bi(D,I.mode,B,null),D.return=I,D;if(typeof D.then=="function")return Q(I,Dl(D),B);if(D.$$typeof===S)return Q(I,Wl(I,D),B);Ol(I,D)}return null}function V(I,D,B,X){var ne=D!==null?D.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ne!==null?null:T(I,D,""+B,X);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case d:return B.key===ne?_(I,D,B,X):null;case h:return B.key===ne?O(I,D,B,X):null;case k:return ne=B._init,B=ne(B._payload),V(I,D,B,X)}if(K(B)||z(B))return ne!==null?null:Y(I,D,B,X,null);if(typeof B.then=="function")return V(I,D,Dl(B),X);if(B.$$typeof===S)return V(I,D,Wl(I,B),X);Ol(I,B)}return null}function q(I,D,B,X,ne){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return I=I.get(B)||null,T(D,I,""+X,ne);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case d:return I=I.get(X.key===null?B:X.key)||null,_(D,I,X,ne);case h:return I=I.get(X.key===null?B:X.key)||null,O(D,I,X,ne);case k:var Ae=X._init;return X=Ae(X._payload),q(I,D,B,X,ne)}if(K(X)||z(X))return I=I.get(B)||null,Y(D,I,X,ne,null);if(typeof X.then=="function")return q(I,D,B,Dl(X),ne);if(X.$$typeof===S)return q(I,D,B,Wl(D,X),ne);Ol(D,X)}return null}function re(I,D,B,X){for(var ne=null,Ae=null,le=D,fe=D=0,xt=null;le!==null&&fe<B.length;fe++){le.index>fe?(xt=le,le=null):xt=le.sibling;var Pe=V(I,le,B[fe],X);if(Pe===null){le===null&&(le=xt);break}n&&le&&Pe.alternate===null&&i(I,le),D=p(Pe,D,fe),Ae===null?ne=Pe:Ae.sibling=Pe,Ae=Pe,le=xt}if(fe===B.length)return r(I,le),Oe&&Ci(I,fe),ne;if(le===null){for(;fe<B.length;fe++)le=Q(I,B[fe],X),le!==null&&(D=p(le,D,fe),Ae===null?ne=le:Ae.sibling=le,Ae=le);return Oe&&Ci(I,fe),ne}for(le=l(le);fe<B.length;fe++)xt=q(le,I,fe,B[fe],X),xt!==null&&(n&&xt.alternate!==null&&le.delete(xt.key===null?fe:xt.key),D=p(xt,D,fe),Ae===null?ne=xt:Ae.sibling=xt,Ae=xt);return n&&le.forEach(function(Qa){return i(I,Qa)}),Oe&&Ci(I,fe),ne}function xe(I,D,B,X){if(B==null)throw Error(s(151));for(var ne=null,Ae=null,le=D,fe=D=0,xt=null,Pe=B.next();le!==null&&!Pe.done;fe++,Pe=B.next()){le.index>fe?(xt=le,le=null):xt=le.sibling;var Qa=V(I,le,Pe.value,X);if(Qa===null){le===null&&(le=xt);break}n&&le&&Qa.alternate===null&&i(I,le),D=p(Qa,D,fe),Ae===null?ne=Qa:Ae.sibling=Qa,Ae=Qa,le=xt}if(Pe.done)return r(I,le),Oe&&Ci(I,fe),ne;if(le===null){for(;!Pe.done;fe++,Pe=B.next())Pe=Q(I,Pe.value,X),Pe!==null&&(D=p(Pe,D,fe),Ae===null?ne=Pe:Ae.sibling=Pe,Ae=Pe);return Oe&&Ci(I,fe),ne}for(le=l(le);!Pe.done;fe++,Pe=B.next())Pe=q(le,I,fe,Pe.value,X),Pe!==null&&(n&&Pe.alternate!==null&&le.delete(Pe.key===null?fe:Pe.key),D=p(Pe,D,fe),Ae===null?ne=Pe:Ae.sibling=Pe,Ae=Pe);return n&&le.forEach(function(NC){return i(I,NC)}),Oe&&Ci(I,fe),ne}function tt(I,D,B,X){if(typeof B=="object"&&B!==null&&B.type===m&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case d:e:{for(var ne=B.key;D!==null;){if(D.key===ne){if(ne=B.type,ne===m){if(D.tag===7){r(I,D.sibling),X=f(D,B.props.children),X.return=I,I=X;break e}}else if(D.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===k&&Bv(ne)===D.type){r(I,D.sibling),X=f(D,B.props),Fr(X,B),X.return=I,I=X;break e}r(I,D);break}else i(I,D);D=D.sibling}B.type===m?(X=Bi(B.props.children,I.mode,X,B.key),X.return=I,I=X):(X=Ql(B.type,B.key,B.props,null,I.mode,X),Fr(X,B),X.return=I,I=X)}return w(I);case h:e:{for(ne=B.key;D!==null;){if(D.key===ne)if(D.tag===4&&D.stateNode.containerInfo===B.containerInfo&&D.stateNode.implementation===B.implementation){r(I,D.sibling),X=f(D,B.children||[]),X.return=I,I=X;break e}else{r(I,D);break}else i(I,D);D=D.sibling}X=mf(B,I.mode,X),X.return=I,I=X}return w(I);case k:return ne=B._init,B=ne(B._payload),tt(I,D,B,X)}if(K(B))return re(I,D,B,X);if(z(B)){if(ne=z(B),typeof ne!="function")throw Error(s(150));return B=ne.call(B),xe(I,D,B,X)}if(typeof B.then=="function")return tt(I,D,Dl(B),X);if(B.$$typeof===S)return tt(I,D,Wl(I,B),X);Ol(I,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,D!==null&&D.tag===6?(r(I,D.sibling),X=f(D,B),X.return=I,I=X):(r(I,D),X=hf(B,I.mode,X),X.return=I,I=X),w(I)):r(I,D)}return function(I,D,B,X){try{Hr=0;var ne=tt(I,D,B,X);return bs=null,ne}catch(le){if(le===zr)throw le;var Ae=mn(29,le,null,I.mode);return Ae.lanes=X,Ae.return=I,Ae}finally{}}}var Ri=zv(!0),Vv=zv(!1),ws=ve(null),Pl=ve(0);function Hv(n,i){n=ga,Se(Pl,n),Se(ws,i),ga=n|i.baseLanes}function xd(){Se(Pl,ga),Se(ws,ws.current)}function bd(){ga=Pl.current,ke(ws),ke(Pl)}var dn=ve(null),Un=null;function Oa(n){var i=n.alternate;Se(ft,ft.current&1),Se(dn,n),Un===null&&(i===null||ws.current!==null||i.memoizedState!==null)&&(Un=n)}function Fv(n){if(n.tag===22){if(Se(ft,ft.current),Se(dn,n),Un===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(Un=n)}}else Pa()}function Pa(){Se(ft,ft.current),Se(dn,dn.current)}function ra(n){ke(dn),Un===n&&(Un=null),ke(ft)}var ft=ve(0);function Ll(n){for(var i=n;i!==null;){if(i.tag===13){var r=i.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var hA=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(r,l){n.push(l)}};this.abort=function(){i.aborted=!0,n.forEach(function(r){return r()})}},mA=e.unstable_scheduleCallback,pA=e.unstable_NormalPriority,ht={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wd(){return{controller:new hA,data:new Map,refCount:0}}function $r(n){n.refCount--,n.refCount===0&&mA(pA,function(){n.controller.abort()})}var Gr=null,Sd=0,Ss=0,Ts=null;function gA(n,i){if(Gr===null){var r=Gr=[];Sd=0,Ss=_f(),Ts={status:"pending",value:void 0,then:function(l){r.push(l)}}}return Sd++,i.then($v,$v),i}function $v(){if(--Sd===0&&Gr!==null){Ts!==null&&(Ts.status="fulfilled");var n=Gr;Gr=null,Ss=0,Ts=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function vA(n,i){var r=[],l={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return n.then(function(){l.status="fulfilled",l.value=i;for(var f=0;f<r.length;f++)(0,r[f])(i)},function(f){for(l.status="rejected",l.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),l}var Gv=$.S;$.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&gA(n,i),Gv!==null&&Gv(n,i)};var ki=ve(null);function Td(){var n=ki.current;return n!==null?n:$e.pooledCache}function Il(n,i){i===null?Se(ki,ki.current):Se(ki,i.pool)}function qv(){var n=Td();return n===null?null:{parent:ht._currentValue,pool:n}}var La=0,je=null,Be=null,rt=null,Ul=!1,Es=!1,Mi=!1,Bl=0,qr=0,js=null,yA=0;function at(){throw Error(s(321))}function Ed(n,i){if(i===null)return!1;for(var r=0;r<i.length&&r<n.length;r++)if(!qt(n[r],i[r]))return!1;return!0}function jd(n,i,r,l,f,p){return La=p,je=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,$.H=n===null||n.memoizedState===null?Di:Ia,Mi=!1,p=r(l,f),Mi=!1,Es&&(p=Yv(i,r,l,f)),Kv(n),p}function Kv(n){$.H=Bn;var i=Be!==null&&Be.next!==null;if(La=0,rt=Be=je=null,Ul=!1,qr=0,js=null,i)throw Error(s(300));n===null||vt||(n=n.dependencies,n!==null&&Yl(n)&&(vt=!0))}function Yv(n,i,r,l){je=n;var f=0;do{if(Es&&(js=null),qr=0,Es=!1,25<=f)throw Error(s(301));if(f+=1,rt=Be=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}$.H=Oi,p=i(r,l)}while(Es);return p}function xA(){var n=$.H,i=n.useState()[0];return i=typeof i.then=="function"?Kr(i):i,n=n.useState()[0],(Be!==null?Be.memoizedState:null)!==n&&(je.flags|=1024),i}function Nd(){var n=Bl!==0;return Bl=0,n}function Ad(n,i,r){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~r}function Cd(n){if(Ul){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ul=!1}La=0,rt=Be=je=null,Es=!1,qr=Bl=0,js=null}function Ut(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?je.memoizedState=rt=n:rt=rt.next=n,rt}function ot(){if(Be===null){var n=je.alternate;n=n!==null?n.memoizedState:null}else n=Be.next;var i=rt===null?je.memoizedState:rt.next;if(i!==null)rt=i,Be=n;else{if(n===null)throw je.alternate===null?Error(s(467)):Error(s(310));Be=n,n={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},rt===null?je.memoizedState=rt=n:rt=rt.next=n}return rt}var zl;zl=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Kr(n){var i=qr;return qr+=1,js===null&&(js=[]),n=Iv(js,n,i),i=je,(rt===null?i.memoizedState:rt.next)===null&&(i=i.alternate,$.H=i===null||i.memoizedState===null?Di:Ia),n}function Vl(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Kr(n);if(n.$$typeof===S)return Nt(n)}throw Error(s(438,String(n)))}function _d(n){var i=null,r=je.updateQueue;if(r!==null&&(i=r.memoCache),i==null){var l=je.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(i={data:l.data.map(function(f){return f.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),r===null&&(r=zl(),je.updateQueue=r),r.memoCache=i,r=i.data[i.index],r===void 0)for(r=i.data[i.index]=Array(n),l=0;l<n;l++)r[l]=P;return i.index++,r}function oa(n,i){return typeof i=="function"?i(n):i}function Hl(n){var i=ot();return Rd(i,Be,n)}function Rd(n,i,r){var l=n.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=r;var f=n.baseQueue,p=l.pending;if(p!==null){if(f!==null){var w=f.next;f.next=p.next,p.next=w}i.baseQueue=f=p,l.pending=null}if(p=n.baseState,f===null)n.memoizedState=p;else{i=f.next;var T=w=null,_=null,O=i,Y=!1;do{var Q=O.lane&-536870913;if(Q!==O.lane?(Me&Q)===Q:(La&Q)===Q){var V=O.revertLane;if(V===0)_!==null&&(_=_.next={lane:0,revertLane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Q===Ss&&(Y=!0);else if((La&V)===V){O=O.next,V===Ss&&(Y=!0);continue}else Q={lane:0,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},_===null?(T=_=Q,w=p):_=_.next=Q,je.lanes|=V,qa|=V;Q=O.action,Mi&&r(p,Q),p=O.hasEagerState?O.eagerState:r(p,Q)}else V={lane:Q,revertLane:O.revertLane,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},_===null?(T=_=V,w=p):_=_.next=V,je.lanes|=Q,qa|=Q;O=O.next}
vendor: 4,127 bytes, line 48
48while(O!==null&&O!==i);if(_===null?w=p:_.next=T,!qt(p,n.memoizedState)&&(vt=!0,Y&&(r=Ts,r!==null)))throw r;n.memoizedState=p,n.baseState=w,n.baseQueue=_,l.lastRenderedState=p}return f===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function kd(n){var i=ot(),r=i.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=n;var l=r.dispatch,f=r.pending,p=i.memoizedState;if(f!==null){r.pending=null;var w=f=f.next;do p=n(p,w.action),w=w.next;while(w!==f);qt(p,i.memoizedState)||(vt=!0),i.memoizedState=p,i.baseQueue===null&&(i.baseState=p),r.lastRenderedState=p}return[p,l]}function Wv(n,i,r){var l=je,f=ot(),p=Oe;if(p){if(r===void 0)throw Error(s(407));r=r()}else r=i();var w=!qt((Be||f).memoizedState,r);if(w&&(f.memoizedState=r,vt=!0),f=f.queue,Od(Qv.bind(null,l,f,n),[n]),f.getSnapshot!==i||w||rt!==null&&rt.memoizedState.tag&1){if(l.flags|=2048,Ns(9,Zv.bind(null,l,f,r,i),{destroy:void 0},null),$e===null)throw Error(s(349));p||(La&60)!==0||Xv(l,i,r)}return r}function Xv(n,i,r){n.flags|=16384,n={getSnapshot:i,value:r},i=je.updateQueue,i===null?(i=zl(),je.updateQueue=i,i.stores=[n]):(r=i.stores,r===null?i.stores=[n]:r.push(n))}function Zv(n,i,r,l){i.value=r,i.getSnapshot=l,Jv(i)&&ey(n)}function Qv(n,i,r){return r(function(){Jv(i)&&ey(n)})}function Jv(n){var i=n.getSnapshot;n=n.value;try{var r=i();return!qt(n,r)}catch{return!0}}function ey(n){var i=Da(n,2);i!==null&&Dt(i,n,2)}function Md(n){var i=Ut();if(typeof n=="function"){var r=n;if(n=r(),Mi){Ra(!0);try{r()}finally{Ra(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:n},i}function ty(n,i,r,l){return n.baseState=r,Rd(n,Be,typeof l=="function"?l:oa)}function bA(n,i,r,l,f){if(Gl(n))throw Error(s(485));if(n=i.action,n!==null){var p={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){p.listeners.push(w)}};$.T!==null?r(!0):p.isTransition=!1,l(p),r=i.pending,r===null?(p.next=i.pending=p,ny(i,p)):(p.next=r.next,i.pending=r.next=p)}}function ny(n,i){var r=i.action,l=i.payload,f=n.state;if(i.isTransition){var p=$.T,w={};$.T=w;try{var T=r(f,l),_=$.S;_!==null&&_(w,T),ay(n,i,T)}catch(O){Dd(n,i,O)}finally{$.T=p}}else try{p=r(f,l),ay(n,i,p)}catch(O){Dd(n,i,O)}}function ay(n,i,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){iy(n,i,l)},function(l){return Dd(n,i,l)}):iy(n,i,r)}function iy(n,i,r){i.status="fulfilled",i.value=r,sy(i),n.state=r,i=n.pending,i!==null&&(r=i.next,r===i?n.pending=null:(r=r.next,i.next=r,ny(n,r)))}function Dd(n,i,r){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=r,sy(i),i=i.next;while(i!==l)}n.action=null}function sy(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function ry(n,i){return i}function oy(n,i){if(Oe){var r=$e.formState;if(r!==null){e:{var l=je;if(Oe){if(bt){t:{for(var f=bt,p=In;f.nodeType!==8;){if(!p){f=null;break t}if(f=An(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){bt=An(f.nextSibling),l=f.data==="F!";break e}}_i(l)}l=!1}l&&(i=r[0])}}return r=Ut(),r.memoizedState=r.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ry,lastRenderedState:i},r.queue=l,r=jy.bind(null,je,l),l.dispatch=r,l=Md(!1),p=Bd.bind(null,je,!1,l.queue),l=Ut(),f={state:i,dispatch:null,action:n,pending:null},l.queue=f,r=bA.bind(null,je,f,p,r),f.dispatch=r,l.memoizedState=n,[i,r,!1]}function ly(n){var i=ot();return cy(i,Be,n)}function cy(n,i,r){i=Rd(n,i,ry)[0],n=Hl(oa)[0],i=typeof i=="object"&&i!==null&&typeof i.then=="function"?Kr(i):i;var l=ot(),f=l.queue,p=f.dispatch;return r!==l.memoizedState&&(je.flags|=2048,Ns(9,wA.bind(null,f,r),{destroy:void 0},null)),[i,p,n]}function wA(n,i){n.action=i}function uy(n){var i=ot(),r=Be;if(r!==null)return cy(i,r,n);ot(),i=i.memoizedState,r=ot();var l=r.queue.dispatch;return r.memoizedState=n,[i,l,!1]}function Ns(n,i,r,l){return n={tag:n,create:i,inst:r,deps:l,next:null},i=je.updateQueue,i===null&&(i=zl(),je.updateQueue=i),r=i.lastEffect,r===null?i.lastEffect=n.next=n:(l=r.next,r.next=n,n.next=l,i.lastEffect=n),n}
vendor: 30,298 bytes, line 48
48function dy(){return ot().memoizedState}function Fl(n,i,r,l){var f=Ut();je.flags|=n,f.memoizedState=Ns(1|i,r,{destroy:void 0},l===void 0?null:l)}function $l(n,i,r,l){var f=ot();l=l===void 0?null:l;var p=f.memoizedState.inst;Be!==null&&l!==null&&Ed(l,Be.memoizedState.deps)?f.memoizedState=Ns(i,r,p,l):(je.flags|=n,f.memoizedState=Ns(1|i,r,p,l))}function fy(n,i){Fl(8390656,8,n,i)}function Od(n,i){$l(2048,8,n,i)}function hy(n,i){return $l(4,2,n,i)}function my(n,i){return $l(4,4,n,i)}function py(n,i){if(typeof i=="function"){n=n();var r=i(n);return function(){typeof r=="function"?r():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function gy(n,i,r){r=r!=null?r.concat([n]):null,$l(4,4,py.bind(null,i,n),r)}function Pd(){}function vy(n,i){var r=ot();i=i===void 0?null:i;var l=r.memoizedState;return i!==null&&Ed(i,l[1])?l[0]:(r.memoizedState=[n,i],n)}function yy(n,i){var r=ot();i=i===void 0?null:i;var l=r.memoizedState;if(i!==null&&Ed(i,l[1]))return l[0];if(l=n(),Mi){Ra(!0);try{n()}finally{Ra(!1)}}return r.memoizedState=[l,i],l}function Ld(n,i,r){return r===void 0||(La&1073741824)!==0?n.memoizedState=i:(n.memoizedState=r,n=b0(),je.lanes|=n,qa|=n,r)}function xy(n,i,r,l){return qt(r,i)?r:ws.current!==null?(n=Ld(n,r,l),qt(n,i)||(vt=!0),n):(La&42)===0?(vt=!0,n.memoizedState=r):(n=b0(),je.lanes|=n,qa|=n,i)}function by(n,i,r,l,f){var p=W.p;W.p=p!==0&&8>p?p:8;var w=$.T,T={};$.T=T,Bd(n,!1,i,r);try{var _=f(),O=$.S;if(O!==null&&O(T,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var Y=vA(_,l);Yr(n,i,Y,Xt(n))}else Yr(n,i,l,Xt(n))}catch(Q){Yr(n,i,{then:function(){},status:"rejected",reason:Q},Xt())}finally{W.p=p,$.T=w}}function SA(){}function Id(n,i,r,l){if(n.tag!==5)throw Error(s(476));var f=wy(n).queue;by(n,f,i,te,r===null?SA:function(){return Sy(n),r(l)})}function wy(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:te},next:null};var r={};return i.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:r},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function Sy(n){var i=wy(n).next.queue;Yr(n,i,{},Xt())}function Ud(){return Nt(po)}function Ty(){return ot().memoizedState}function Ey(){return ot().memoizedState}function TA(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var r=Xt();n=za(r);var l=Va(i,n,r);l!==null&&(Dt(l,i,r),Zr(l,i,r)),i={cache:wd()},n.payload=i;return}i=i.return}}function EA(n,i,r){var l=Xt();r={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},Gl(n)?Ny(i,r):(r=md(n,i,r,l),r!==null&&(Dt(r,n,l),Ay(r,i,l)))}function jy(n,i,r){var l=Xt();Yr(n,i,r,l)}function Yr(n,i,r,l){var f={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(Gl(n))Ny(i,f);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=i.lastRenderedReducer,p!==null))try{var w=i.lastRenderedState,T=p(w,r);if(f.hasEagerState=!0,f.eagerState=T,qt(T,w))return Cl(n,i,f,0),$e===null&&Al(),!1}catch{}finally{}if(r=md(n,i,f,l),r!==null)return Dt(r,n,l),Ay(r,i,l),!0}return!1}function Bd(n,i,r,l){if(l={lane:2,revertLane:_f(),action:l,hasEagerState:!1,eagerState:null,next:null},Gl(n)){if(i)throw Error(s(479))}else i=md(n,r,l,2),i!==null&&Dt(i,n,2)}function Gl(n){var i=n.alternate;return n===je||i!==null&&i===je}function Ny(n,i){Es=Ul=!0;var r=n.pending;r===null?i.next=i:(i.next=r.next,r.next=i),n.pending=i}function Ay(n,i,r){if((r&4194176)!==0){var l=i.lanes;l&=n.pendingLanes,r|=l,i.lanes=r,Ug(n,r)}}var Bn={readContext:Nt,use:Vl,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at};Bn.useCacheRefresh=at,Bn.useMemoCache=at,Bn.useHostTransitionStatus=at,Bn.useFormState=at,Bn.useActionState=at,Bn.useOptimistic=at;var Di={readContext:Nt,use:Vl,useCallback:function(n,i){return Ut().memoizedState=[n,i===void 0?null:i],n},useContext:Nt,useEffect:fy,useImperativeHandle:function(n,i,r){r=r!=null?r.concat([n]):null,Fl(4194308,4,py.bind(null,i,n),r)},useLayoutEffect:function(n,i){return Fl(4194308,4,n,i)},useInsertionEffect:function(n,i){Fl(4,2,n,i)},useMemo:function(n,i){var r=Ut();i=i===void 0?null:i;var l=n();if(Mi){Ra(!0);try{n()}finally{Ra(!1)}}return r.memoizedState=[l,i],l},useReducer:function(n,i,r){var l=Ut();if(r!==void 0){var f=r(i);if(Mi){Ra(!0);try{r(i)}finally{Ra(!1)}}}else f=i;return l.memoizedState=l.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},l.queue=n,n=n.dispatch=EA.bind(null,je,n),[l.memoizedState,n]},useRef:function(n){var i=Ut();return n={current:n},i.memoizedState=n},useState:function(n){n=Md(n);var i=n.queue,r=jy.bind(null,je,i);return i.dispatch=r,[n.memoizedState,r]},useDebugValue:Pd,useDeferredValue:function(n,i){var r=Ut();return Ld(r,n,i)},useTransition:function(){var n=Md(!1);return n=by.bind(null,je,n.queue,!0,!1),Ut().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,r){var l=je,f=Ut();if(Oe){if(r===void 0)throw Error(s(407));r=r()}else{if(r=i(),$e===null)throw Error(s(349));(Me&60)!==0||Xv(l,i,r)}f.memoizedState=r;var p={value:r,getSnapshot:i};return f.queue=p,fy(Qv.bind(null,l,p,n),[n]),l.flags|=2048,Ns(9,Zv.bind(null,l,p,r,i),{destroy:void 0},null),r},useId:function(){var n=Ut(),i=$e.identifierPrefix;if(Oe){var r=sa,l=ia;r=(l&~(1<<32-Gt(l)-1)).toString(32)+r,i=":"+i+"R"+r,r=Bl++,0<r&&(i+="H"+r.toString(32)),i+=":"}else r=yA++,i=":"+i+"r"+r.toString(32)+":";return n.memoizedState=i},useCacheRefresh:function(){return Ut().memoizedState=TA.bind(null,je)}};Di.useMemoCache=_d,Di.useHostTransitionStatus=Ud,Di.useFormState=oy,Di.useActionState=oy,Di.useOptimistic=function(n){var i=Ut();i.memoizedState=i.baseState=n;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=r,i=Bd.bind(null,je,!0,r),r.dispatch=i,[n,i]};var Ia={readContext:Nt,use:Vl,useCallback:vy,useContext:Nt,useEffect:Od,useImperativeHandle:gy,useInsertionEffect:hy,useLayoutEffect:my,useMemo:yy,useReducer:Hl,useRef:dy,useState:function(){return Hl(oa)},useDebugValue:Pd,useDeferredValue:function(n,i){var r=ot();return xy(r,Be.memoizedState,n,i)},useTransition:function(){var n=Hl(oa)[0],i=ot().memoizedState;return[typeof n=="boolean"?n:Kr(n),i]},useSyncExternalStore:Wv,useId:Ty};Ia.useCacheRefresh=Ey,Ia.useMemoCache=_d,Ia.useHostTransitionStatus=Ud,Ia.useFormState=ly,Ia.useActionState=ly,Ia.useOptimistic=function(n,i){var r=ot();return ty(r,Be,n,i)};var Oi={readContext:Nt,use:Vl,useCallback:vy,useContext:Nt,useEffect:Od,useImperativeHandle:gy,useInsertionEffect:hy,useLayoutEffect:my,useMemo:yy,useReducer:kd,useRef:dy,useState:function(){return kd(oa)},useDebugValue:Pd,useDeferredValue:function(n,i){var r=ot();return Be===null?Ld(r,n,i):xy(r,Be.memoizedState,n,i)},useTransition:function(){var n=kd(oa)[0],i=ot().memoizedState;return[typeof n=="boolean"?n:Kr(n),i]},useSyncExternalStore:Wv,useId:Ty};Oi.useCacheRefresh=Ey,Oi.useMemoCache=_d,Oi.useHostTransitionStatus=Ud,Oi.useFormState=uy,Oi.useActionState=uy,Oi.useOptimistic=function(n,i){var r=ot();return Be!==null?ty(r,Be,n,i):(r.baseState=n,[n,r.queue.dispatch])};function zd(n,i,r,l){i=n.memoizedState,r=r(l,i),r=r==null?i:J({},i,r),n.memoizedState=r,n.lanes===0&&(n.updateQueue.baseState=r)}var Vd={isMounted:function(n){return(n=n._reactInternals)?F(n)===n:!1},enqueueSetState:function(n,i,r){n=n._reactInternals;var l=Xt(),f=za(l);f.payload=i,r!=null&&(f.callback=r),i=Va(n,f,l),i!==null&&(Dt(i,n,l),Zr(i,n,l))},enqueueReplaceState:function(n,i,r){n=n._reactInternals;var l=Xt(),f=za(l);f.tag=1,f.payload=i,r!=null&&(f.callback=r),i=Va(n,f,l),i!==null&&(Dt(i,n,l),Zr(i,n,l))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var r=Xt(),l=za(r);l.tag=2,i!=null&&(l.callback=i),i=Va(n,l,r),i!==null&&(Dt(i,n,r),Zr(i,n,r))}};function Cy(n,i,r,l,f,p,w){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,p,w):i.prototype&&i.prototype.isPureReactComponent?!Pr(r,l)||!Pr(f,p):!0}function _y(n,i,r,l){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(r,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(r,l),i.state!==n&&Vd.enqueueReplaceState(i,i.state,null)}function Pi(n,i){var r=i;if("ref"in i){r={};for(var l in i)l!=="ref"&&(r[l]=i[l])}if(n=n.defaultProps){r===i&&(r=J({},r));for(var f in n)r[f]===void 0&&(r[f]=n[f])}return r}var ql=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=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(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Ry(n){ql(n)}function ky(n){console.error(n)}function My(n){ql(n)}function Kl(n,i){try{var r=n.onUncaughtError;r(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function Dy(n,i,r){try{var l=n.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Hd(n,i,r){return r=za(r),r.tag=3,r.payload={element:null},r.callback=function(){Kl(n,i)},r}function Oy(n){return n=za(n),n.tag=3,n}function Py(n,i,r,l){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var p=l.value;n.payload=function(){return f(p)},n.callback=function(){Dy(i,r,l)}}var w=r.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(n.callback=function(){Dy(i,r,l),typeof f!="function"&&(Ka===null?Ka=new Set([this]):Ka.add(this));var T=l.stack;this.componentDidCatch(l.value,{componentStack:T!==null?T:""})})}function jA(n,i,r,l,f){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=r.alternate,i!==null&&Xr(i,r,f,!0),r=dn.current,r!==null){switch(r.tag){case 13:return Un===null?Ef():r.alternate===null&&et===0&&(et=3),r.flags&=-257,r.flags|=65536,r.lanes=f,l===yd?r.flags|=16384:(i=r.updateQueue,i===null?r.updateQueue=new Set([l]):i.add(l),Nf(n,l,f)),!1;case 22:return r.flags|=65536,l===yd?r.flags|=16384:(i=r.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=i):(r=i.retryQueue,r===null?i.retryQueue=new Set([l]):r.add(l)),Nf(n,l,f)),!1}throw Error(s(435,r.tag))}return Nf(n,l,f),Ef(),!1}if(Oe)return i=dn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,l!==vd&&(n=Error(s(422),{cause:l}),Br(ln(n,r)))):(l!==vd&&(i=Error(s(423),{cause:l}),Br(ln(i,r))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,l=ln(l,r),f=Hd(n.stateNode,l,f),af(n,f),et!==4&&(et=2)),!1;var p=Error(s(520),{cause:l});if(p=ln(p,r),so===null?so=[p]:so.push(p),et!==4&&(et=2),i===null)return!0;l=ln(l,r),r=i;do{switch(r.tag){case 3:return r.flags|=65536,n=f&-f,r.lanes|=n,n=Hd(r.stateNode,l,n),af(r,n),!1;case 1:if(i=r.type,p=r.stateNode,(r.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ka===null||!Ka.has(p))))return r.flags|=65536,f&=-f,r.lanes|=f,f=Oy(f),Py(f,n,r,l),af(r,f),!1}r=r.return}while(r!==null);return!1}var Ly=Error(s(461)),vt=!1;function wt(n,i,r,l){i.child=n===null?Vv(i,null,r,l):Ri(i,n.child,r,l)}function Iy(n,i,r,l,f){r=r.render;var p=i.ref;if("ref"in l){var w={};for(var T in l)T!=="ref"&&(w[T]=l[T])}else w=l;return Ii(i),l=jd(n,i,r,w,p,f),T=Nd(),n!==null&&!vt?(Ad(n,i,f),la(n,i,f)):(Oe&&T&&pd(i),i.flags|=1,wt(n,i,l,f),i.child)}function Uy(n,i,r,l,f){if(n===null){var p=r.type;return typeof p=="function"&&!ff(p)&&p.defaultProps===void 0&&r.compare===null?(i.tag=15,i.type=p,By(n,i,p,l,f)):(n=Ql(r.type,null,l,i,i.mode,f),n.ref=i.ref,n.return=i,i.child=n)}if(p=n.child,!Zd(n,f)){var w=p.memoizedProps;if(r=r.compare,r=r!==null?r:Pr,r(w,l)&&n.ref===i.ref)return la(n,i,f)}return i.flags|=1,n=Ga(p,l),n.ref=i.ref,n.return=i,i.child=n}function By(n,i,r,l,f){if(n!==null){var p=n.memoizedProps;if(Pr(p,l)&&n.ref===i.ref)if(vt=!1,i.pendingProps=l=p,Zd(n,f))(n.flags&131072)!==0&&(vt=!0);else return i.lanes=n.lanes,la(n,i,f)}return Fd(n,i,r,l,f)}function zy(n,i,r){var l=i.pendingProps,f=l.children,p=(i.stateNode._pendingVisibility&2)!==0,w=n!==null?n.memoizedState:null;if(Wr(n,i),l.mode==="hidden"||p){if((i.flags&128)!==0){if(l=w!==null?w.baseLanes|r:r,n!==null){for(f=i.child=n.child,p=0;f!==null;)p=p|f.lanes|f.childLanes,f=f.sibling;i.childLanes=p&~l}else i.childLanes=0,i.child=null;return Vy(n,i,l,r)}if((r&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Il(i,w!==null?w.cachePool:null),w!==null?Hv(i,w):xd(),Fv(i);else return i.lanes=i.childLanes=536870912,Vy(n,i,w!==null?w.baseLanes|r:r,r)}else w!==null?(Il(i,w.cachePool),Hv(i,w),Pa(),i.memoizedState=null):(n!==null&&Il(i,null),xd(),Pa());return wt(n,i,f,r),i.child}function Vy(n,i,r,l){var f=Td();return f=f===null?null:{parent:ht._currentValue,pool:f},i.memoizedState={baseLanes:r,cachePool:f},n!==null&&Il(i,null),xd(),Fv(i),n!==null&&Xr(n,i,l,!0),null}function Wr(n,i){var r=i.ref;if(r===null)n!==null&&n.ref!==null&&(i.flags|=2097664);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(n===null||n.ref!==r)&&(i.flags|=2097664)}}function Fd(n,i,r,l,f){return Ii(i),r=jd(n,i,r,l,void 0,f),l=Nd(),n!==null&&!vt?(Ad(n,i,f),la(n,i,f)):(Oe&&l&&pd(i),i.flags|=1,wt(n,i,r,f),i.child)}function Hy(n,i,r,l,f,p){return Ii(i),i.updateQueue=null,r=Yv(i,l,r,f),Kv(n),l=Nd(),n!==null&&!vt?(Ad(n,i,p),la(n,i,p)):(Oe&&l&&pd(i),i.flags|=1,wt(n,i,r,p),i.child)}function Fy(n,i,r,l,f){if(Ii(i),i.stateNode===null){var p=vs,w=r.contextType;typeof w=="object"&&w!==null&&(p=Nt(w)),p=new r(l,p),i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Vd,i.stateNode=p,p._reactInternals=i,p=i.stateNode,p.props=l,p.state=i.memoizedState,p.refs={},tf(i),w=r.contextType,p.context=typeof w=="object"&&w!==null?Nt(w):vs,p.state=i.memoizedState,w=r.getDerivedStateFromProps,typeof w=="function"&&(zd(i,r,w,l),p.state=i.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(w=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),w!==p.state&&Vd.enqueueReplaceState(p,p.state,null),Jr(i,l,p,f),Qr(),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(n===null){p=i.stateNode;var T=i.memoizedProps,_=Pi(r,T);p.props=_;var O=p.context,Y=r.contextType;w=vs,typeof Y=="object"&&Y!==null&&(w=Nt(Y));var Q=r.getDerivedStateFromProps;Y=typeof Q=="function"||typeof p.getSnapshotBeforeUpdate=="function",T=i.pendingProps!==T,Y||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(T||O!==w)&&_y(i,p,l,w),Ba=!1;var V=i.memoizedState;p.state=V,Jr(i,l,p,f),Qr(),O=i.memoizedState,T||V!==O||Ba?(typeof Q=="function"&&(zd(i,r,Q,l),O=i.memoizedState),(_=Ba||Cy(i,r,_,l,V,O,w))?(Y||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=O),p.props=l,p.state=O,p.context=w,l=_):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{p=i.stateNode,nf(n,i),w=i.memoizedProps,Y=Pi(r,w),p.props=Y,Q=i.pendingProps,V=p.context,O=r.contextType,_=vs,typeof O=="object"&&O!==null&&(_=Nt(O)),T=r.getDerivedStateFromProps,(O=typeof T=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==Q||V!==_)&&_y(i,p,l,_),Ba=!1,V=i.memoizedState,p.state=V,Jr(i,l,p,f),Qr();var q=i.memoizedState;w!==Q||V!==q||Ba||n!==null&&n.dependencies!==null&&Yl(n.dependencies)?(typeof T=="function"&&(zd(i,r,T,l),q=i.memoizedState),(Y=Ba||Cy(i,r,Y,l,V,q,_)||n!==null&&n.dependencies!==null&&Yl(n.dependencies))?(O||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(l,q,_),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(l,q,_)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===n.memoizedProps&&V===n.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&V===n.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=q),p.props=l,p.state=q,p.context=_,l=Y):(typeof p.componentDidUpdate!="function"||w===n.memoizedProps&&V===n.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&V===n.memoizedState||(i.flags|=1024),l=!1)}return p=l,Wr(n,i),l=(i.flags&128)!==0,p||l?(p=i.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:p.render(),i.flags|=1,n!==null&&l?(i.child=Ri(i,n.child,null,f),i.child=Ri(i,null,r,f)):wt(n,i,r,f),i.memoizedState=p.state,n=i.child):n=la(n,i,f),n}function $y(n,i,r,l){return Ur(),i.flags|=256,wt(n,i,r,l),i.child}var $d={dehydrated:null,treeContext:null,retryLane:0};function Gd(n){return{baseLanes:n,cachePool:qv()}}function qd(n,i,r){return n=n!==null?n.childLanes&~r:0,i&&(n|=pn),n}function Gy(n,i,r){var l=i.pendingProps,f=!1,p=(i.flags&128)!==0,w;if((w=p)||(w=n!==null&&n.memoizedState===null?!1:(ft.current&2)!==0),w&&(f=!0,i.flags&=-129),w=(i.flags&32)!==0,i.flags&=-33,n===null){if(Oe){if(f?Oa(i):Pa(),Oe){var T=bt,_;if(_=T){e:{for(_=T,T=In;_.nodeType!==8;){if(!T){T=null;break e}if(_=An(_.nextSibling),_===null){T=null;break e}}T=_}T!==null?(i.memoizedState={dehydrated:T,treeContext:Ai!==null?{id:ia,overflow:sa}:null,retryLane:536870912},_=mn(18,null,null,0),_.stateNode=T,_.return=i,i.child=_,Mt=i,bt=null,_=!0):_=!1}_||_i(i)}if(T=i.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return T.data==="$!"?i.lanes=16:i.lanes=536870912,null;ra(i)}return T=l.children,l=l.fallback,f?(Pa(),f=i.mode,T=Yd({mode:"hidden",children:T},f),l=Bi(l,f,r,null),T.return=i,l.return=i,T.sibling=l,i.child=T,f=i.child,f.memoizedState=Gd(r),f.childLanes=qd(n,w,r),i.memoizedState=$d,l):(Oa(i),Kd(i,T))}if(_=n.memoizedState,_!==null&&(T=_.dehydrated,T!==null)){if(p)i.flags&256?(Oa(i),i.flags&=-257,i=Wd(n,i,r)):i.memoizedState!==null?(Pa(),i.child=n.child,i.flags|=128,i=null):(Pa(),f=l.fallback,T=i.mode,l=Yd({mode:"visible",children:l.children},T),f=Bi(f,T,r,null),f.flags|=2,l.return=i,f.return=i,l.sibling=f,i.child=l,Ri(i,n.child,null,r),l=i.child,l.memoizedState=Gd(r),l.childLanes=qd(n,w,r),i.memoizedState=$d,i=f);else if(Oa(i),T.data==="$!"){if(w=T.nextSibling&&T.nextSibling.dataset,w)var O=w.dgst;w=O,l=Error(s(419)),l.stack="",l.digest=w,Br({value:l,source:null,stack:null}),i=Wd(n,i,r)}else if(vt||Xr(n,i,r,!1),w=(r&n.childLanes)!==0,vt||w){if(w=$e,w!==null){if(l=r&-r,(l&42)!==0)l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(l=(l&(w.suspendedLanes|r))!==0?0:l,l!==0&&l!==_.retryLane)throw _.retryLane=l,Da(n,l),Dt(w,n,l),Ly}T.data==="$?"||Ef(),i=Wd(n,i,r)}else T.data==="$?"?(i.flags|=128,i.child=n.child,i=zA.bind(null,n),T._reactRetry=i,i=null):(n=_.treeContext,bt=An(T.nextSibling),Mt=i,Oe=!0,jn=null,In=!1,n!==null&&(cn[un++]=ia,cn[un++]=sa,cn[un++]=Ai,ia=n.id,sa=n.overflow,Ai=i),i=Kd(i,l.children),i.flags|=4096);return i}return f?(Pa(),f=l.fallback,T=i.mode,_=n.child,O=_.sibling,l=Ga(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&31457280,O!==null?f=Ga(O,f):(f=Bi(f,T,r,null),f.flags|=2),f.return=i,l.return=i,l.sibling=f,i.child=l,l=f,f=i.child,T=n.child.memoizedState,T===null?T=Gd(r):(_=T.cachePool,_!==null?(O=ht._currentValue,_=_.parent!==O?{parent:O,pool:O}:_):_=qv(),T={baseLanes:T.baseLanes|r,cachePool:_}),f.memoizedState=T,f.childLanes=qd(n,w,r),i.memoizedState=$d,l):(Oa(i),r=n.child,n=r.sibling,r=Ga(r,{mode:"visible",children:l.children}),r.return=i,r.sibling=null,n!==null&&(w=i.deletions,w===null?(i.deletions=[n],i.flags|=16):w.push(n)),i.child=r,i.memoizedState=null,r)}function Kd(n,i){return i=Yd({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Yd(n,i){return v0(n,i,0,null)}function Wd(n,i,r){return Ri(i,n.child,null,r),n=Kd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function qy(n,i,r){n.lanes|=i;var l=n.alternate;l!==null&&(l.lanes|=i),Jd(n.return,i,r)}function Xd(n,i,r,l,f){var p=n.memoizedState;p===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:f}:(p.isBackwards=i,p.rendering=null,p.renderingStartTime=0,p.last=l,p.tail=r,p.tailMode=f)}function Ky(n,i,r){var l=i.pendingProps,f=l.revealOrder,p=l.tail;if(wt(n,i,l.children,r),l=ft.current,(l&2)!==0)l=l&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&qy(n,r,i);else if(n.tag===19)qy(n,r,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}l&=1}switch(Se(ft,l),f){case"forwards":for(r=i.child,f=null;r!==null;)n=r.alternate,n!==null&&Ll(n)===null&&(f=r),r=r.sibling;r=f,r===null?(f=i.child,i.child=null):(f=r.sibling,r.sibling=null),Xd(i,!1,f,r,p);break;case"backwards":for(r=null,f=i.child,i.child=null;f!==null;){if(n=f.alternate,n!==null&&Ll(n)===null){i.child=f;break}n=f.sibling,f.sibling=r,r=f,f=n}Xd(i,!0,r,null,p);break;case"together":Xd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function la(n,i,r){if(n!==null&&(i.dependencies=n.dependencies),qa|=i.lanes,(r&i.childLanes)===0)if(n!==null){if(Xr(n,i,r,!1),(r&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(s(153));if(i.child!==null){for(n=i.child,r=Ga(n,n.pendingProps),i.child=r,r.return=i;n.sibling!==null;)n=n.sibling,r=r.sibling=Ga(n,n.pendingProps),r.return=i;r.sibling=null}return i.child}function Zd(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Yl(n)))}function NA(n,i,r){switch(i.tag){case 3:Ft(i,i.stateNode.containerInfo),Ua(i,ht,n.memoizedState.cache),Ur();break;case 27:case 5:ye(i);break;case 4:Ft(i,i.stateNode.containerInfo);break;case 10:Ua(i,i.type,i.memoizedProps.value);break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(Oa(i),i.flags|=128,null):(r&i.child.childLanes)!==0?Gy(n,i,r):(Oa(i),n=la(n,i,r),n!==null?n.sibling:null);Oa(i);break;case 19:var f=(n.flags&128)!==0;if(l=(r&i.childLanes)!==0,l||(Xr(n,i,r,!1),l=(r&i.childLanes)!==0),f){if(l)return Ky(n,i,r);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Se(ft,ft.current),l)break;return null;case 22:case 23:return i.lanes=0,zy(n,i,r);case 24:Ua(i,ht,n.memoizedState.cache)}return la(n,i,r)}function Yy(n,i,r){if(n!==null)if(n.memoizedProps!==i.pendingProps)vt=!0;else{if(!Zd(n,r)&&(i.flags&128)===0)return vt=!1,NA(n,i,r);vt=(n.flags&131072)!==0}else vt=!1,Oe&&(i.flags&1048576)!==0&&Mv(i,kl,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var l=i.elementType,f=l._init;if(l=f(l._payload),i.type=l,typeof l=="function")ff(l)?(n=Pi(l,n),i.tag=1,i=Fy(null,i,l,n,r)):(i.tag=0,i=Fd(null,i,l,n,r));else{if(l!=null){if(f=l.$$typeof,f===j){i.tag=11,i=Iy(null,i,l,n,r);break e}else if(f===C){i.tag=14,i=Uy(null,i,l,n,r);break e}}throw i=H(l)||l,Error(s(306,i,""))}}return i;case 0:return Fd(n,i,i.type,i.pendingProps,r);case 1:return l=i.type,f=Pi(l,i.pendingProps),Fy(n,i,l,f,r);case 3:e:{if(Ft(i,i.stateNode.containerInfo),n===null)throw Error(s(387));var p=i.pendingProps;f=i.memoizedState,l=f.element,nf(n,i),Jr(i,p,null,r);var w=i.memoizedState;if(p=w.cache,Ua(i,ht,p),p!==f.cache&&ef(i,[ht],r,!0),Qr(),p=w.element,f.isDehydrated)if(f={element:p,isDehydrated:!1,cache:w.cache},i.updateQueue.baseState=f,i.memoizedState=f,i.flags&256){i=$y(n,i,p,r);break e}else if(p!==l){l=ln(Error(s(424)),i),Br(l),i=$y(n,i,p,r);break e}else for(bt=An(i.stateNode.containerInfo.firstChild),Mt=i,Oe=!0,jn=null,In=!0,r=Vv(i,null,p,r),i.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ur(),p===l){i=la(n,i,r);break e}wt(n,i,p,r)}i=i.child}return i;case 26:return Wr(n,i),n===null?(r=Z0(i.type,null,i.pendingProps,null))?i.memoizedState=r:Oe||(r=i.type,n=i.pendingProps,l=uc(dt.current).createElement(r),l[jt]=i,l[Lt]=n,St(l,r,n),gt(l),i.stateNode=l):i.memoizedState=Z0(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return ye(i),n===null&&Oe&&(l=i.stateNode=Y0(i.type,i.pendingProps,dt.current),Mt=i,In=!0,bt=An(l.firstChild)),l=i.pendingProps.children,n!==null||Oe?wt(n,i,l,r):i.child=Ri(i,null,l,r),Wr(n,i),i.child;case 5:return n===null&&Oe&&((f=l=bt)&&(l=nC(l,i.type,i.pendingProps,In),l!==null?(i.stateNode=l,Mt=i,bt=An(l.firstChild),In=!1,f=!0):f=!1),f||_i(i)),ye(i),f=i.type,p=i.pendingProps,w=n!==null?n.memoizedProps:null,l=p.children,Uf(f,p)?l=null:w!==null&&Uf(f,w)&&(i.flags|=32),i.memoizedState!==null&&(f=jd(n,i,xA,null,null,r),po._currentValue=f),Wr(n,i),wt(n,i,l,r),i.child;case 6:return n===null&&Oe&&((n=r=bt)&&(r=aC(r,i.pendingProps,In),r!==null?(i.stateNode=r,Mt=i,bt=null,n=!0):n=!1),n||_i(i)),null;case 13:return Gy(n,i,r);case 4:return Ft(i,i.stateNode.containerInfo),l=i.pendingProps,n===null?i.child=Ri(i,null,l,r):wt(n,i,l,r),i.child;case 11:return Iy(n,i,i.type,i.pendingProps,r);case 7:return wt(n,i,i.pendingProps,r),i.child;case 8:return wt(n,i,i.pendingProps.children,r),i.child;case 12:return wt(n,i,i.pendingProps.children,r),i.child;case 10:return l=i.pendingProps,Ua(i,i.type,l.value),wt(n,i,l.children,r),i.child;case 9:return f=i.type._context,l=i.pendingProps.children,Ii(i),f=Nt(f),l=l(f),i.flags|=1,wt(n,i,l,r),i.child;case 14:return Uy(n,i,i.type,i.pendingProps,r);case 15:return By(n,i,i.type,i.pendingProps,r);case 19:return Ky(n,i,r);case 22:return zy(n,i,r);case 24:return Ii(i),l=Nt(ht),n===null?(f=Td(),f===null&&(f=$e,p=wd(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=r),f=p),i.memoizedState={parent:l,cache:f},tf(i),Ua(i,ht,f)):((n.lanes&r)!==0&&(nf(n,i),Jr(i,null,null,r),Qr()),f=n.memoizedState,p=i.memoizedState,f.parent!==l?(f={parent:l,cache:l},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),Ua(i,ht,l)):(l=p.cache,Ua(i,ht,l),l!==f.cache&&ef(i,[ht],r,!0))),wt(n,i,i.pendingProps.children,r),i.child;case 29:throw i.pendingProps}throw Error(s(156,i.tag))}var Qd=ve(null),Li=null,ca=null;function Ua(n,i,r){Se(Qd,i._currentValue),i._currentValue=r}function ua(n){n._currentValue=Qd.current,ke(Qd)}function Jd(n,i,r){for(;n!==null;){var l=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),n===r)break;n=n.return}}function ef(n,i,r,l){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var p=f.dependencies;if(p!==null){var w=f.child;p=p.firstContext;e:for(;p!==null;){var T=p;p=f;for(var _=0;_<i.length;_++)if(T.context===i[_]){p.lanes|=r,T=p.alternate,T!==null&&(T.lanes|=r),Jd(p.return,r,n),l||(w=null);break e}p=T.next}}else if(f.tag===18){if(w=f.return,w===null)throw Error(s(341));w.lanes|=r,p=w.alternate,p!==null&&(p.lanes|=r),Jd(w,r,n),w=null}else w=f.child;if(w!==null)w.return=f;else for(w=f;w!==null;){if(w===n){w=null;break}if(f=w.sibling,f!==null){f.return=w.return,w=f;break}w=w.return}f=w}}function Xr(n,i,r,l){n=null;for(var f=i,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var w=f.alternate;if(w===null)throw Error(s(387));if(w=w.memoizedProps,w!==null){var T=f.type;qt(f.pendingProps.value,w.value)||(n!==null?n.push(T):n=[T])}}else if(f===nn.current){if(w=f.alternate,w===null)throw Error(s(387));w.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(po):n=[po])}f=f.return}n!==null&&ef(i,n,r,l),i.flags|=262144}function Yl(n){for(n=n.firstContext;n!==null;){if(!qt(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Ii(n){Li=n,ca=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Nt(n){return Wy(Li,n)}function Wl(n,i){return Li===null&&Ii(n),Wy(n,i)}function Wy(n,i){var r=i._currentValue;if(i={context:i,memoizedValue:r,next:null},ca===null){if(n===null)throw Error(s(308));ca=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else ca=ca.next=i;return r}var Ba=!1;function tf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nf(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function za(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Va(n,i,r){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Xe&2)!==0){var f=l.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i,i=_l(n),Rv(n,null,r),i}return Cl(n,l,i,r),_l(n)}function Zr(n,i,r){if(i=i.updateQueue,i!==null&&(i=i.shared,(r&4194176)!==0)){var l=i.lanes;l&=n.pendingLanes,r|=l,i.lanes=r,Ug(n,r)}}function af(n,i){var r=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var f=null,p=null;if(r=r.firstBaseUpdate,r!==null){do{var w={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};p===null?f=p=w:p=p.next=w,r=r.next}
vendor: 4,669 bytes, line 48
48while(r!==null);p===null?f=p=i:p=p.next=i}else f=p=i;r={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:l.shared,callbacks:l.callbacks},n.updateQueue=r;return}n=r.lastBaseUpdate,n===null?r.firstBaseUpdate=i:n.next=i,r.lastBaseUpdate=i}var sf=!1;function Qr(){if(sf){var n=Ts;if(n!==null)throw n}}function Jr(n,i,r,l){sf=!1;var f=n.updateQueue;Ba=!1;var p=f.firstBaseUpdate,w=f.lastBaseUpdate,T=f.shared.pending;if(T!==null){f.shared.pending=null;var _=T,O=_.next;_.next=null,w===null?p=O:w.next=O,w=_;var Y=n.alternate;Y!==null&&(Y=Y.updateQueue,T=Y.lastBaseUpdate,T!==w&&(T===null?Y.firstBaseUpdate=O:T.next=O,Y.lastBaseUpdate=_))}if(p!==null){var Q=f.baseState;w=0,Y=O=_=null,T=p;do{var V=T.lane&-536870913,q=V!==T.lane;if(q?(Me&V)===V:(l&V)===V){V!==0&&V===Ss&&(sf=!0),Y!==null&&(Y=Y.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var re=n,xe=T;V=i;var tt=r;switch(xe.tag){case 1:if(re=xe.payload,typeof re=="function"){Q=re.call(tt,Q,V);break e}Q=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=xe.payload,V=typeof re=="function"?re.call(tt,Q,V):re,V==null)break e;Q=J({},Q,V);break e;case 2:Ba=!0}}V=T.callback,V!==null&&(n.flags|=64,q&&(n.flags|=8192),q=f.callbacks,q===null?f.callbacks=[V]:q.push(V))}else q={lane:V,tag:T.tag,payload:T.payload,callback:T.callback,next:null},Y===null?(O=Y=q,_=Q):Y=Y.next=q,w|=V;if(T=T.next,T===null){if(T=f.shared.pending,T===null)break;q=T,T=q.next,q.next=null,f.lastBaseUpdate=q,f.shared.pending=null}}while(!0);Y===null&&(_=Q),f.baseState=_,f.firstBaseUpdate=O,f.lastBaseUpdate=Y,p===null&&(f.shared.lanes=0),qa|=w,n.lanes=w,n.memoizedState=Q}}function Xy(n,i){if(typeof n!="function")throw Error(s(191,n));n.call(i)}function Zy(n,i){var r=n.callbacks;if(r!==null)for(n.callbacks=null,n=0;n<r.length;n++)Xy(r[n],i)}function eo(n,i){try{var r=i.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var f=l.next;r=f;do{if((r.tag&n)===n){l=void 0;var p=r.create,w=r.inst;l=p(),w.destroy=l}r=r.next}while(r!==f)}}catch(T){Ve(i,i.return,T)}}function Ha(n,i,r){try{var l=i.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var p=f.next;l=p;do{if((l.tag&n)===n){var w=l.inst,T=w.destroy;if(T!==void 0){w.destroy=void 0,f=i;var _=r;try{T()}catch(O){Ve(f,_,O)}}}l=l.next}while(l!==p)}}catch(O){Ve(i,i.return,O)}}function Qy(n){var i=n.updateQueue;if(i!==null){var r=n.stateNode;try{Zy(i,r)}catch(l){Ve(n,n.return,l)}}}function Jy(n,i,r){r.props=Pi(n.type,n.memoizedProps),r.state=n.memoizedState;try{r.componentWillUnmount()}catch(l){Ve(n,i,l)}}function Ui(n,i){try{var r=n.ref;if(r!==null){var l=n.stateNode;switch(n.tag){case 26:case 27:case 5:var f=l;break;default:f=l}typeof r=="function"?n.refCleanup=r(f):r.current=f}}catch(p){Ve(n,i,p)}}function Kt(n,i){var r=n.ref,l=n.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(f){Ve(n,i,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){Ve(n,i,f)}else r.current=null}function e0(n){var i=n.type,r=n.memoizedProps,l=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(f){Ve(n,n.return,f)}}function t0(n,i,r){try{var l=n.stateNode;ZA(l,n.type,r,i),l[Lt]=i}catch(f){Ve(n,n.return,f)}}function n0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27||n.tag===4}function rf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||n0(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==27&&n.tag!==18;){if(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 of(n,i,r){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?r.nodeType===8?r.parentNode.insertBefore(n,i):r.insertBefore(n,i):(r.nodeType===8?(i=r.parentNode,i.insertBefore(n,r)):(i=r,i.appendChild(n)),r=r._reactRootContainer,r!=null||i.onclick!==null||(i.onclick=cc));else if(l!==4&&l!==27&&(n=n.child,n!==null))for(of(n,i,r),n=n.sibling;n!==null;)of(n,i,r),n=n.sibling}function Xl(n,i,r){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?r.insertBefore(n,i):r.appendChild(n);else if(l!==4&&l!==27&&(n=n.child,n!==null))for(Xl(n,i,r),n=n.sibling;n!==null;)Xl(n,i,r),n=n.sibling}var da=!1,Je=!1,lf=!1,a0=typeof WeakSet=="function"?WeakSet:Set,yt=null,i0=!1;function AA(n,i){if(n=n.containerInfo,Lf=gc,n=wv(n),cd(n)){if("selectionStart"in n)var r={start:n.selectionStart,end:n.selectionEnd};else e:{r=(r=n.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var f=l.anchorOffset,p=l.focusNode;
vendor: 38,486 bytes, line 48
48l=l.focusOffset;try{r.nodeType,p.nodeType}catch{r=null;break e}var w=0,T=-1,_=-1,O=0,Y=0,Q=n,V=null;t:for(;;){for(var q;Q!==r||f!==0&&Q.nodeType!==3||(T=w+f),Q!==p||l!==0&&Q.nodeType!==3||(_=w+l),Q.nodeType===3&&(w+=Q.nodeValue.length),(q=Q.firstChild)!==null;)V=Q,Q=q;for(;;){if(Q===n)break t;if(V===r&&++O===f&&(T=w),V===p&&++Y===l&&(_=w),(q=Q.nextSibling)!==null)break;Q=V,V=Q.parentNode}Q=q}r=T===-1||_===-1?null:{start:T,end:_}}else r=null}r=r||{start:0,end:0}}else r=null;for(If={focusedElem:n,selectionRange:r},gc=!1,yt=i;yt!==null;)if(i=yt,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,yt=n;else for(;yt!==null;){switch(i=yt,p=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,r=i,f=p.memoizedProps,p=p.memoizedState,l=r.stateNode;try{var re=Pi(r.type,f,r.elementType===r.type);n=l.getSnapshotBeforeUpdate(re,p),l.__reactInternalSnapshotBeforeUpdate=n}catch(xe){Ve(r,r.return,xe)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,r=n.nodeType,r===9)Vf(n);else if(r===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Vf(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=i.sibling,n!==null){n.return=i.return,yt=n;break}yt=i.return}return re=i0,i0=!1,re}function s0(n,i,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:ha(n,r),l&4&&eo(5,r);break;case 1:if(ha(n,r),l&4)if(n=r.stateNode,i===null)try{n.componentDidMount()}catch(T){Ve(r,r.return,T)}else{var f=Pi(r.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(f,i,n.__reactInternalSnapshotBeforeUpdate)}catch(T){Ve(r,r.return,T)}}l&64&&Qy(r),l&512&&Ui(r,r.return);break;case 3:if(ha(n,r),l&64&&(l=r.updateQueue,l!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{Zy(l,n)}catch(T){Ve(r,r.return,T)}}break;case 26:ha(n,r),l&512&&Ui(r,r.return);break;case 27:case 5:ha(n,r),i===null&&l&4&&e0(r),l&512&&Ui(r,r.return);break;case 12:ha(n,r);break;case 13:ha(n,r),l&4&&l0(n,r);break;case 22:if(f=r.memoizedState!==null||da,!f){i=i!==null&&i.memoizedState!==null||Je;var p=da,w=Je;da=f,(Je=i)&&!w?Fa(n,r,(r.subtreeFlags&8772)!==0):ha(n,r),da=p,Je=w}l&512&&(r.memoizedProps.mode==="manual"?Ui(r,r.return):Kt(r,r.return));break;default:ha(n,r)}}function r0(n){var i=n.alternate;i!==null&&(n.alternate=null,r0(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Ku(i)),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 lt=null,Yt=!1;function fa(n,i,r){for(r=r.child;r!==null;)o0(n,i,r),r=r.sibling}function o0(n,i,r){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Tr,r)}catch{}switch(r.tag){case 26:Je||Kt(r,i),fa(n,i,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:Je||Kt(r,i);var l=lt,f=Yt;for(lt=r.stateNode,fa(n,i,r),r=r.stateNode,i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Ku(r),lt=l,Yt=f;break;case 5:Je||Kt(r,i);case 6:f=lt;var p=Yt;if(lt=null,fa(n,i,r),lt=f,Yt=p,lt!==null)if(Yt)try{n=lt,l=r.stateNode,n.nodeType===8?n.parentNode.removeChild(l):n.removeChild(l)}catch(w){Ve(r,i,w)}else try{lt.removeChild(r.stateNode)}catch(w){Ve(r,i,w)}break;case 18:lt!==null&&(Yt?(i=lt,r=r.stateNode,i.nodeType===8?zf(i.parentNode,r):i.nodeType===1&&zf(i,r),xo(i)):zf(lt,r.stateNode));break;case 4:l=lt,f=Yt,lt=r.stateNode.containerInfo,Yt=!0,fa(n,i,r),lt=l,Yt=f;break;case 0:case 11:case 14:case 15:Je||Ha(2,r,i),Je||Ha(4,r,i),fa(n,i,r);break;case 1:Je||(Kt(r,i),l=r.stateNode,typeof l.componentWillUnmount=="function"&&Jy(r,i,l)),fa(n,i,r);break;case 21:fa(n,i,r);break;case 22:Je||Kt(r,i),Je=(l=Je)||r.memoizedState!==null,fa(n,i,r),Je=l;break;default:fa(n,i,r)}}function l0(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{xo(n)}catch(r){Ve(i,i.return,r)}}function CA(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new a0),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new a0),i;default:throw Error(s(435,n.tag))}}function cf(n,i){var r=CA(n);i.forEach(function(l){var f=VA.bind(null,n,l);r.has(l)||(r.add(l),l.then(f,f))})}function fn(n,i){var r=i.deletions;if(r!==null)for(var l=0;l<r.length;l++){var f=r[l],p=n,w=i,T=w;e:for(;T!==null;){switch(T.tag){case 27:case 5:lt=T.stateNode,Yt=!1;break e;case 3:lt=T.stateNode.containerInfo,Yt=!0;break e;case 4:lt=T.stateNode.containerInfo,Yt=!0;break e}T=T.return}if(lt===null)throw Error(s(160));o0(p,w,f),lt=null,Yt=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)c0(i,n),i=i.sibling}var Nn=null;function c0(n,i){var r=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:fn(i,n),hn(n),l&4&&(Ha(3,n,n.return),eo(3,n),Ha(5,n,n.return));break;case 1:fn(i,n),hn(n),l&512&&(Je||r===null||Kt(r,r.return)),l&64&&da&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(r=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var f=Nn;if(fn(i,n),hn(n),l&512&&(Je||r===null||Kt(r,r.return)),l&4){var p=r!==null?r.memoizedState:null;if(l=n.memoizedState,r===null)if(l===null)if(n.stateNode===null){e:{l=n.type,r=n.memoizedProps,f=f.ownerDocument||f;t:switch(l){case"title":p=f.getElementsByTagName("title")[0],(!p||p[Nr]||p[jt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(l),f.head.insertBefore(p,f.querySelector("head > title"))),St(p,l,r),p[jt]=n,gt(p),l=p;break e;case"link":var w=ex("link","href",f).get(l+(r.href||""));if(w){for(var T=0;T<w.length;T++)if(p=w[T],p.getAttribute("href")===(r.href==null?null:r.href)&&p.getAttribute("rel")===(r.rel==null?null:r.rel)&&p.getAttribute("title")===(r.title==null?null:r.title)&&p.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){w.splice(T,1);break t}}p=f.createElement(l),St(p,l,r),f.head.appendChild(p);break;case"meta":if(w=ex("meta","content",f).get(l+(r.content||""))){for(T=0;T<w.length;T++)if(p=w[T],p.getAttribute("content")===(r.content==null?null:""+r.content)&&p.getAttribute("name")===(r.name==null?null:r.name)&&p.getAttribute("property")===(r.property==null?null:r.property)&&p.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&p.getAttribute("charset")===(r.charSet==null?null:r.charSet)){w.splice(T,1);break t}}p=f.createElement(l),St(p,l,r),f.head.appendChild(p);break;default:throw Error(s(468,l))}p[jt]=n,gt(p),l=p}n.stateNode=l}else tx(f,n.type,n.stateNode);else n.stateNode=J0(f,l,n.memoizedProps);else p!==l?(p===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):p.count--,l===null?tx(f,n.type,n.stateNode):J0(f,l,n.memoizedProps)):l===null&&n.stateNode!==null&&t0(n,n.memoizedProps,r.memoizedProps)}break;case 27:if(l&4&&n.alternate===null){f=n.stateNode,p=n.memoizedProps;try{for(var _=f.firstChild;_;){var O=_.nextSibling,Y=_.nodeName;_[Nr]||Y==="HEAD"||Y==="BODY"||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&_.rel.toLowerCase()==="stylesheet"||f.removeChild(_),_=O}for(var Q=n.type,V=f.attributes;V.length;)f.removeAttributeNode(V[0]);St(f,Q,p),f[jt]=n,f[Lt]=p}catch(re){Ve(n,n.return,re)}}case 5:if(fn(i,n),hn(n),l&512&&(Je||r===null||Kt(r,r.return)),n.flags&32){f=n.stateNode;try{us(f,"")}catch(re){Ve(n,n.return,re)}}l&4&&n.stateNode!=null&&(f=n.memoizedProps,t0(n,f,r!==null?r.memoizedProps:f)),l&1024&&(lf=!0);break;case 6:if(fn(i,n),hn(n),l&4){if(n.stateNode===null)throw Error(s(162));l=n.memoizedProps,r=n.stateNode;try{r.nodeValue=l}catch(re){Ve(n,n.return,re)}}break;case 3:if(hc=null,f=Nn,Nn=dc(i.containerInfo),fn(i,n),Nn=f,hn(n),l&4&&r!==null&&r.memoizedState.isDehydrated)try{xo(i.containerInfo)}catch(re){Ve(n,n.return,re)}lf&&(lf=!1,u0(n));break;case 4:l=Nn,Nn=dc(n.stateNode.containerInfo),fn(i,n),hn(n),Nn=l;break;case 12:fn(i,n),hn(n);break;case 13:fn(i,n),hn(n),n.child.flags&8192&&n.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(yf=Ln()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,cf(n,l)));break;case 22:if(l&512&&(Je||r===null||Kt(r,r.return)),_=n.memoizedState!==null,O=r!==null&&r.memoizedState!==null,Y=da,Q=Je,da=Y||_,Je=Q||O,fn(i,n),Je=Q,da=Y,hn(n),i=n.stateNode,i._current=n,i._visibility&=-3,i._visibility|=i._pendingVisibility&2,l&8192&&(i._visibility=_?i._visibility&-2:i._visibility|1,_&&(i=da||Je,r===null||O||i||As(n)),n.memoizedProps===null||n.memoizedProps.mode!=="manual"))e:for(r=null,i=n;;){if(i.tag===5||i.tag===26||i.tag===27){if(r===null){O=r=i;try{if(f=O.stateNode,_)p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{w=O.stateNode,T=O.memoizedProps.style;var q=T!=null&&T.hasOwnProperty("display")?T.display:null;w.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(re){Ve(O,O.return,re)}}}else if(i.tag===6){if(r===null){O=i;try{O.stateNode.nodeValue=_?"":O.memoizedProps}catch(re){Ve(O,O.return,re)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;r===i&&(r=null),i=i.return}r===i&&(r=null),i.sibling.return=i.return,i=i.sibling}l&4&&(l=n.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,cf(n,r))));break;case 19:fn(i,n),hn(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,cf(n,l)));break;case 21:break;default:fn(i,n),hn(n)}}function hn(n){var i=n.flags;if(i&2){try{if(n.tag!==27){e:{for(var r=n.return;r!==null;){if(n0(r)){var l=r;break e}r=r.return}throw Error(s(160))}switch(l.tag){case 27:var f=l.stateNode,p=rf(n);Xl(n,p,f);break;case 5:var w=l.stateNode;l.flags&32&&(us(w,""),l.flags&=-33);var T=rf(n);Xl(n,T,w);break;case 3:case 4:var _=l.stateNode.containerInfo,O=rf(n);of(n,O,_);break;default:throw Error(s(161))}}}catch(Y){Ve(n,n.return,Y)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function u0(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;u0(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function ha(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)s0(n,i.alternate,i),i=i.sibling}function As(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Ha(4,i,i.return),As(i);break;case 1:Kt(i,i.return);var r=i.stateNode;typeof r.componentWillUnmount=="function"&&Jy(i,i.return,r),As(i);break;case 26:case 27:case 5:Kt(i,i.return),As(i);break;case 22:Kt(i,i.return),i.memoizedState===null&&As(i);break;default:As(i)}n=n.sibling}}function Fa(n,i,r){for(r=r&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,f=n,p=i,w=p.flags;switch(p.tag){case 0:case 11:case 15:Fa(f,p,r),eo(4,p);break;case 1:if(Fa(f,p,r),l=p,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(O){Ve(l,l.return,O)}if(l=p,f=l.updateQueue,f!==null){var T=l.stateNode;try{var _=f.shared.hiddenCallbacks;if(_!==null)for(f.shared.hiddenCallbacks=null,f=0;f<_.length;f++)Xy(_[f],T)}catch(O){Ve(l,l.return,O)}}r&&w&64&&Qy(p),Ui(p,p.return);break;case 26:case 27:case 5:Fa(f,p,r),r&&l===null&&w&4&&e0(p),Ui(p,p.return);break;case 12:Fa(f,p,r);break;case 13:Fa(f,p,r),r&&w&4&&l0(f,p);break;case 22:p.memoizedState===null&&Fa(f,p,r),Ui(p,p.return);break;default:Fa(f,p,r)}i=i.sibling}}function uf(n,i){var r=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==r&&(n!=null&&n.refCount++,r!=null&&$r(r))}function df(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&$r(n))}function $a(n,i,r,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)d0(n,i,r,l),i=i.sibling}function d0(n,i,r,l){var f=i.flags;switch(i.tag){case 0:case 11:case 15:$a(n,i,r,l),f&2048&&eo(9,i);break;case 3:$a(n,i,r,l),f&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&$r(n)));break;case 12:if(f&2048){$a(n,i,r,l),n=i.stateNode;try{var p=i.memoizedProps,w=p.id,T=p.onPostCommit;typeof T=="function"&&T(w,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(_){Ve(i,i.return,_)}}else $a(n,i,r,l);break;case 23:break;case 22:p=i.stateNode,i.memoizedState!==null?p._visibility&4?$a(n,i,r,l):to(n,i):p._visibility&4?$a(n,i,r,l):(p._visibility|=4,Cs(n,i,r,l,(i.subtreeFlags&10256)!==0)),f&2048&&uf(i.alternate,i);break;case 24:$a(n,i,r,l),f&2048&&df(i.alternate,i);break;default:$a(n,i,r,l)}}function Cs(n,i,r,l,f){for(f=f&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var p=n,w=i,T=r,_=l,O=w.flags;switch(w.tag){case 0:case 11:case 15:Cs(p,w,T,_,f),eo(8,w);break;case 23:break;case 22:var Y=w.stateNode;w.memoizedState!==null?Y._visibility&4?Cs(p,w,T,_,f):to(p,w):(Y._visibility|=4,Cs(p,w,T,_,f)),f&&O&2048&&uf(w.alternate,w);break;case 24:Cs(p,w,T,_,f),f&&O&2048&&df(w.alternate,w);break;default:Cs(p,w,T,_,f)}i=i.sibling}}function to(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var r=n,l=i,f=l.flags;switch(l.tag){case 22:to(r,l),f&2048&&uf(l.alternate,l);break;case 24:to(r,l),f&2048&&df(l.alternate,l);break;default:to(r,l)}i=i.sibling}}var no=8192;function _s(n){if(n.subtreeFlags&no)for(n=n.child;n!==null;)f0(n),n=n.sibling}function f0(n){switch(n.tag){case 26:_s(n),n.flags&no&&n.memoizedState!==null&&gC(Nn,n.memoizedState,n.memoizedProps);break;case 5:_s(n);break;case 3:case 4:var i=Nn;Nn=dc(n.stateNode.containerInfo),_s(n),Nn=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=no,no=16777216,_s(n),no=i):_s(n));break;default:_s(n)}}function h0(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function ao(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var r=0;r<i.length;r++){var l=i[r];yt=l,p0(l,n)}h0(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)m0(n),n=n.sibling}function m0(n){switch(n.tag){case 0:case 11:case 15:ao(n),n.flags&2048&&Ha(9,n,n.return);break;case 3:ao(n);break;case 12:ao(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&4&&(n.return===null||n.return.tag!==13)?(i._visibility&=-5,Zl(n)):ao(n);break;default:ao(n)}}function Zl(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var r=0;r<i.length;r++){var l=i[r];yt=l,p0(l,n)}h0(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Ha(8,i,i.return),Zl(i);break;case 22:r=i.stateNode,r._visibility&4&&(r._visibility&=-5,Zl(i));break;default:Zl(i)}n=n.sibling}}function p0(n,i){for(;yt!==null;){var r=yt;switch(r.tag){case 0:case 11:case 15:Ha(8,r,i);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:$r(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,yt=l;else e:for(r=n;yt!==null;){l=yt;var f=l.sibling,p=l.return;if(r0(l),l===r){yt=null;break e}if(f!==null){f.return=p,yt=f;break e}yt=p}}}function _A(n,i,r,l){this.tag=n,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(n,i,r,l){return new _A(n,i,r,l)}function ff(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Ga(n,i){var r=n.alternate;return r===null?(r=mn(n.tag,i,n.key,n.mode),r.elementType=n.elementType,r.type=n.type,r.stateNode=n.stateNode,r.alternate=n,n.alternate=r):(r.pendingProps=i,r.type=n.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=n.flags&31457280,r.childLanes=n.childLanes,r.lanes=n.lanes,r.child=n.child,r.memoizedProps=n.memoizedProps,r.memoizedState=n.memoizedState,r.updateQueue=n.updateQueue,i=n.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},r.sibling=n.sibling,r.index=n.index,r.ref=n.ref,r.refCleanup=n.refCleanup,r}function g0(n,i){n.flags&=31457282;var r=n.alternate;return r===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=r.childLanes,n.lanes=r.lanes,n.child=r.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=r.memoizedProps,n.memoizedState=r.memoizedState,n.updateQueue=r.updateQueue,n.type=r.type,i=r.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function Ql(n,i,r,l,f,p){var w=0;if(l=n,typeof n=="function")ff(n)&&(w=1);else if(typeof n=="string")w=mC(n,r,Ue.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case m:return Bi(r.children,f,p,i);case g:w=8,f|=24;break;case v:return n=mn(12,r,i,f|2),n.elementType=v,n.lanes=p,n;case E:return n=mn(13,r,i,f),n.elementType=E,n.lanes=p,n;case A:return n=mn(19,r,i,f),n.elementType=A,n.lanes=p,n;case R:return v0(r,f,p,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case y:case S:w=10;break e;case b:w=9;break e;case j:w=11;break e;case C:w=14;break e;case k:w=16,l=null;break e}w=29,r=Error(s(130,n===null?"null":typeof n,"")),l=null}return i=mn(w,r,i,f),i.elementType=n,i.type=l,i.lanes=p,i}function Bi(n,i,r,l){return n=mn(7,n,l,i),n.lanes=r,n}function v0(n,i,r,l){n=mn(22,n,l,i),n.elementType=R,n.lanes=r;var f={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var p=f._current;if(p===null)throw Error(s(456));if((f._pendingVisibility&2)===0){var w=Da(p,2);w!==null&&(f._pendingVisibility|=2,Dt(w,p,2))}},attach:function(){var p=f._current;if(p===null)throw Error(s(456));if((f._pendingVisibility&2)!==0){var w=Da(p,2);w!==null&&(f._pendingVisibility&=-3,Dt(w,p,2))}}};return n.stateNode=f,n}function hf(n,i,r){return n=mn(6,n,null,i),n.lanes=r,n}function mf(n,i,r){return i=mn(4,n.children!==null?n.children:[],n.key,i),i.lanes=r,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function ma(n){n.flags|=4}function y0(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!nx(i)){if(i=dn.current,i!==null&&((Me&4194176)===Me?Un!==null:(Me&62914560)!==Me&&(Me&536870912)===0||i!==Un))throw Vr=yd,Pv;n.flags|=8192}}function Jl(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Lg():536870912,n.lanes|=i,ks|=i)}function io(n,i){if(!Oe)switch(n.tailMode){case"hidden":i=n.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?n.tail=null:r.sibling=null;break;case"collapsed":r=n.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function We(n){var i=n.alternate!==null&&n.alternate.child===n.child,r=0,l=0;if(i)for(var f=n.child;f!==null;)r|=f.lanes|f.childLanes,l|=f.subtreeFlags&31457280,l|=f.flags&31457280,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)r|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=r,i}function RA(n,i,r){var l=i.pendingProps;switch(gd(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(i),null;case 1:return We(i),null;case 3:return r=i.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),ua(ht),Et(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(n===null||n.child===null)&&(Ir(i)?ma(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,jn!==null&&(Sf(jn),jn=null))),We(i),null;case 26:return r=i.memoizedState,n===null?(ma(i),r!==null?(We(i),y0(i,r)):(We(i),i.flags&=-16777217)):r?r!==n.memoizedState?(ma(i),We(i),y0(i,r)):(We(i),i.flags&=-16777217):(n.memoizedProps!==l&&ma(i),We(i),i.flags&=-16777217),null;case 27:Ye(i),r=dt.current;var f=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==l&&ma(i);else{if(!l){if(i.stateNode===null)throw Error(s(166));return We(i),null}n=Ue.current,Ir(i)?Dv(i):(n=Y0(f,l,r),i.stateNode=n,ma(i))}return We(i),null;case 5:if(Ye(i),r=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==l&&ma(i);else{if(!l){if(i.stateNode===null)throw Error(s(166));return We(i),null}if(n=Ue.current,Ir(i))Dv(i);else{switch(f=uc(dt.current),n){case 1:n=f.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:n=f.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":n=f.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":n=f.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":n=f.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?n.multiple=!0:l.size&&(n.size=l.size);break;default:n=typeof l.is=="string"?f.createElement(r,{is:l.is}):f.createElement(r)}}n[jt]=i,n[Lt]=l;e:for(f=i.child;f!==null;){if(f.tag===5||f.tag===6)n.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===i)break e;for(;f.sibling===null;){if(f.return===null||f.return===i)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i.stateNode=n;e:switch(St(n,r,l),r){case"button":case"input":case"select":case"textarea":n=!!l.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ma(i)}}return We(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==l&&ma(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(s(166));if(n=dt.current,Ir(i)){if(n=i.stateNode,r=i.memoizedProps,l=null,f=Mt,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}n[jt]=i,n=!!(n.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||H0(n.nodeValue,r)),n||_i(i)}else n=uc(n).createTextNode(l),n[jt]=i,i.stateNode=n}return We(i),null;case 13:if(l=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=Ir(i),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(s(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(s(317));f[jt]=i}else Ur(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;We(i),f=!1}else jn!==null&&(Sf(jn),jn=null),f=!0;if(!f)return i.flags&256?(ra(i),i):(ra(i),null)}if(ra(i),(i.flags&128)!==0)return i.lanes=r,i;if(r=l!==null,n=n!==null&&n.memoizedState!==null,r){l=i.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool);var p=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(p=l.memoizedState.cachePool.pool),p!==f&&(l.flags|=2048)}return r!==n&&r&&(i.child.flags|=8192),Jl(i,i.updateQueue),We(i),null;case 4:return Et(),n===null&&Df(i.stateNode.containerInfo),We(i),null;case 10:return ua(i.type),We(i),null;case 19:if(ke(ft),f=i.memoizedState,f===null)return We(i),null;if(l=(i.flags&128)!==0,p=f.rendering,p===null)if(l)io(f,!1);else{if(et!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(p=Ll(n),p!==null){for(i.flags|=128,io(f,!1),n=p.updateQueue,i.updateQueue=n,Jl(i,n),i.subtreeFlags=0,n=r,r=i.child;r!==null;)g0(r,n),r=r.sibling;return Se(ft,ft.current&1|2),i.child}n=n.sibling}f.tail!==null&&Ln()>ec&&(i.flags|=128,l=!0,io(f,!1),i.lanes=4194304)}else{if(!l)if(n=Ll(p),n!==null){if(i.flags|=128,l=!0,n=n.updateQueue,i.updateQueue=n,Jl(i,n),io(f,!0),f.tail===null&&f.tailMode==="hidden"&&!p.alternate&&!Oe)return We(i),null}else 2*Ln()-f.renderingStartTime>ec&&r!==536870912&&(i.flags|=128,l=!0,io(f,!1),i.lanes=4194304);f.isBackwards?(p.sibling=i.child,i.child=p):(n=f.last,n!==null?n.sibling=p:i.child=p,f.last=p)}return f.tail!==null?(i=f.tail,f.rendering=i,f.tail=i.sibling,f.renderingStartTime=Ln(),i.sibling=null,n=ft.current,Se(ft,l?n&1|2:n&1),i):(We(i),null);case 22:case 23:return ra(i),bd(),l=i.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(r&536870912)!==0&&(i.flags&128)===0&&(We(i),i.subtreeFlags&6&&(i.flags|=8192)):We(i),r=i.updateQueue,r!==null&&Jl(i,r.retryQueue),r=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==r&&(i.flags|=2048),n!==null&&ke(ki),null;case 24:return r=null,n!==null&&(r=n.memoizedState.cache),i.memoizedState.cache!==r&&(i.flags|=2048),ua(ht),We(i),null;case 25:return null}throw Error(s(156,i.tag))}function kA(n,i){switch(gd(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return ua(ht),Et(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Ye(i),null;case 13:if(ra(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(s(340));Ur()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return ke(ft),null;case 4:return Et(),null;case 10:return ua(i.type),null;case 22:case 23:return ra(i),bd(),n!==null&&ke(ki),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return ua(ht),null;case 25:return null;default:return null}}function x0(n,i){switch(gd(i),i.tag){case 3:ua(ht),Et();break;case 26:case 27:case 5:Ye(i);break;case 4:Et();break;case 13:ra(i);break;case 19:ke(ft);break;case 10:ua(i.type);break;case 22:case 23:ra(i),bd(),n!==null&&ke(ki);break;case 24:ua(ht)}}var MA={getCacheForType:function(n){var i=Nt(ht),r=i.data.get(n);return r===void 0&&(r=n(),i.data.set(n,r)),r}},DA=typeof WeakMap=="function"?WeakMap:Map,Xe=0,$e=null,Ce=null,Me=0,Ge=0,Wt=null,pa=!1,Rs=!1,pf=!1,ga=0,et=0,qa=0,zi=0,gf=0,pn=0,ks=0,so=null,zn=null,vf=!1,yf=0,ec=1/0,tc=null,Ka=null,nc=!1,Vi=null,ro=0,xf=0,bf=null,oo=0,wf=null;function Xt(){if((Xe&2)!==0&&Me!==0)return Me&-Me;if($.T!==null){var n=Ss;return n!==0?n:_f()}return zg()}function b0(){pn===0&&(pn=(Me&536870912)===0||Oe?Pg():536870912);var n=dn.current;return n!==null&&(n.flags|=32),pn}function Dt(n,i,r){(n===$e&&Ge===2||n.cancelPendingCommit!==null)&&(Ms(n,0),va(n,Me,pn,!1)),jr(n,r),((Xe&2)===0||n!==$e)&&(n===$e&&((Xe&2)===0&&(zi|=r),et===4&&va(n,Me,pn,!1)),Vn(n))}function w0(n,i,r){if((Xe&6)!==0)throw Error(s(327));var l=!r&&(i&60)===0&&(i&n.expiredLanes)===0||Er(n,i),f=l?LA(n,i):jf(n,i,!0),p=l;do{if(f===0){Rs&&!l&&va(n,i,0,!1);break}else if(f===6)va(n,i,0,!pa);else{if(r=n.current.alternate,p&&!OA(r)){f=jf(n,i,!1),p=!1;continue}if(f===2){if(p=i,n.errorRecoveryDisabledLanes&p)var w=0;else w=n.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){i=w;e:{var T=n;f=so;var _=T.current.memoizedState.isDehydrated;if(_&&(Ms(T,w).flags|=256),w=jf(T,w,!1),w!==2){if(pf&&!_){T.errorRecoveryDisabledLanes|=p,zi|=p,f=4;break e}p=zn,zn=f,p!==null&&Sf(p)}f=w}if(p=!1,f!==2)continue}}if(f===1){Ms(n,0),va(n,i,0,!0);break}e:{switch(l=n,f){case 0:case 1:throw Error(s(345));case 4:if((i&4194176)===i){va(l,i,pn,!pa);break e}break;case 2:zn=null;break;case 3:case 5:break;default:throw Error(s(329))}if(l.finishedWork=r,l.finishedLanes=i,(i&62914560)===i&&(p=yf+300-Ln(),10<p)){if(va(l,i,pn,!pa),pl(l,0)!==0)break e;l.timeoutHandle=G0(S0.bind(null,l,r,zn,tc,vf,i,pn,zi,ks,pa,2,-0,0),p);break e}S0(l,r,zn,tc,vf,i,pn,zi,ks,pa,0,-0,0)}}break}while(!0);Vn(n)}function Sf(n){zn===null?zn=n:zn.push.apply(zn,n)}function S0(n,i,r,l,f,p,w,T,_,O,Y,Q,V){var q=i.subtreeFlags;if((q&8192||(q&16785408)===16785408)&&(mo={stylesheets:null,count:0,unsuspend:pC},f0(i),i=vC(),i!==null)){n.cancelPendingCommit=i(_0.bind(null,n,r,l,f,w,T,_,1,Q,V)),va(n,p,w,!O);return}_0(n,r,l,f,w,T,_,Y,Q,V)}function OA(n){for(var i=n;;){var r=i.tag;if((r===0||r===11||r===15)&&i.flags&16384&&(r=i.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var f=r[l],p=f.getSnapshot;f=f.value;try{if(!qt(p(),f))return!1}catch{return!1}}if(r=i.child,i.subtreeFlags&16384&&r!==null)r.return=i,i=r;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function va(n,i,r,l){i&=~gf,i&=~zi,n.suspendedLanes|=i,n.pingedLanes&=~i,l&&(n.warmLanes|=i),l=n.expirationTimes;for(var f=i;0<f;){var p=31-Gt(f),w=1<<p;l[p]=-1,f&=~w}r!==0&&Ig(n,r,i)}function ac(){return(Xe&6)===0?(lo(0),!1):!0}function Tf(){if(Ce!==null){if(Ge===0)var n=Ce.return;else n=Ce,ca=Li=null,Cd(n),bs=null,Hr=0,n=Ce;for(;n!==null;)x0(n.alternate,n),n=n.return;Ce=null}}function Ms(n,i){n.finishedWork=null,n.finishedLanes=0;var r=n.timeoutHandle;r!==-1&&(n.timeoutHandle=-1,JA(r)),r=n.cancelPendingCommit,r!==null&&(n.cancelPendingCommit=null,r()),Tf(),$e=n,Ce=r=Ga(n.current,null),Me=i,Ge=0,Wt=null,pa=!1,Rs=Er(n,i),pf=!1,ks=pn=gf=zi=qa=et=0,zn=so=null,vf=!1,(i&8)!==0&&(i|=i&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=i;0<l;){var f=31-Gt(l),p=1<<f;i|=n[f],l&=~p}return ga=i,Al(),r}function T0(n,i){je=null,$.H=Bn,i===zr?(i=Uv(),Ge=3):i===Pv?(i=Uv(),Ge=4):Ge=i===Ly?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Wt=i,Ce===null&&(et=1,Kl(n,ln(i,n.current)))}function E0(){var n=$.H;return $.H=Bn,n===null?Bn:n}function j0(){var n=$.A;return $.A=MA,n}function Ef(){et=4,pa||(Me&4194176)!==Me&&dn.current!==null||(Rs=!0),(qa&134217727)===0&&(zi&134217727)===0||$e===null||va($e,Me,pn,!1)}function jf(n,i,r){var l=Xe;Xe|=2;var f=E0(),p=j0();($e!==n||Me!==i)&&(tc=null,Ms(n,i)),i=!1;var w=et;e:do try{if(Ge!==0&&Ce!==null){var T=Ce,_=Wt;switch(Ge){case 8:Tf(),w=6;break e;case 3:case 2:case 6:dn.current===null&&(i=!0);var O=Ge;if(Ge=0,Wt=null,Ds(n,T,_,O),r&&Rs){w=0;break e}break;default:O=Ge,Ge=0,Wt=null,Ds(n,T,_,O)}}PA(),w=et;break}catch(Y){T0(n,Y)}while(!0);return i&&n.shellSuspendCounter++,ca=Li=null,Xe=l,$.H=f,$.A=p,Ce===null&&($e=null,Me=0,Al()),w}function PA(){for(;Ce!==null;)N0(Ce)}function LA(n,i){var r=Xe;Xe|=2;var l=E0(),f=j0();$e!==n||Me!==i?(tc=null,ec=Ln()+500,Ms(n,i)):Rs=Er(n,i);e:do try{if(Ge!==0&&Ce!==null){i=Ce;var p=Wt;t:switch(Ge){case 1:Ge=0,Wt=null,Ds(n,i,p,1);break;case 2:if(Lv(p)){Ge=0,Wt=null,A0(i);break}i=function(){Ge===2&&$e===n&&(Ge=7),Vn(n)},p.then(i,i);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Lv(p)?(Ge=0,Wt=null,A0(i)):(Ge=0,Wt=null,Ds(n,i,p,7));break;case 5:var w=null;switch(Ce.tag){case 26:w=Ce.memoizedState;case 5:case 27:var T=Ce;if(!w||nx(w)){Ge=0,Wt=null;var _=T.sibling;if(_!==null)Ce=_;else{var O=T.return;O!==null?(Ce=O,ic(O)):Ce=null}break t}}Ge=0,Wt=null,Ds(n,i,p,5);break;case 6:Ge=0,Wt=null,Ds(n,i,p,6);break;case 8:Tf(),et=6;break e;default:throw Error(s(462))}}IA();break}catch(Y){T0(n,Y)}while(!0);return ca=Li=null,$.H=l,$.A=f,Xe=r,Ce!==null?0:($e=null,Me=0,Al(),et)}function IA(){for(;Ce!==null&&!sN();)N0(Ce)}function N0(n){var i=Yy(n.alternate,n,ga);n.memoizedProps=n.pendingProps,i===null?ic(n):Ce=i}function A0(n){var i=n,r=i.alternate;switch(i.tag){case 15:case 0:i=Hy(r,i,i.pendingProps,i.type,void 0,Me);break;case 11:i=Hy(r,i,i.pendingProps,i.type.render,i.ref,Me);break;case 5:Cd(i);default:x0(r,i),i=Ce=g0(i,ga),i=Yy(r,i,ga)}n.memoizedProps=n.pendingProps,i===null?ic(n):Ce=i}function Ds(n,i,r,l){ca=Li=null,Cd(i),bs=null,Hr=0;var f=i.return;try{if(jA(n,f,i,r,Me)){et=1,Kl(n,ln(r,n.current)),Ce=null;return}}catch(p){if(f!==null)throw Ce=f,p;et=1,Kl(n,ln(r,n.current)),Ce=null;return}i.flags&32768?(Oe||l===1?n=!0:Rs||(Me&536870912)!==0?n=!1:(pa=n=!0,(l===2||l===3||l===6)&&(l=dn.current,l!==null&&l.tag===13&&(l.flags|=16384))),C0(i,n)):ic(i)}function ic(n){var i=n;do{if((i.flags&32768)!==0){C0(i,pa);return}n=i.return;var r=RA(i.alternate,i,ga);if(r!==null){Ce=r;return}if(i=i.sibling,i!==null){Ce=i;return}Ce=i=n}while(i!==null);et===0&&(et=5)}function C0(n,i){do{var r=kA(n.alternate,n);if(r!==null){r.flags&=32767,Ce=r;return}if(r=n.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!i&&(n=n.sibling,n!==null)){Ce=n;return}Ce=n=r}while(n!==null);et=6,Ce=null}function _0(n,i,r,l,f,p,w,T,_,O){var Y=$.T,Q=W.p;try{W.p=2,$.T=null,UA(n,i,r,l,Q,f,p,w,T,_,O)}finally{$.T=Y,W.p=Q}}function UA(n,i,r,l,f,p,w,T){do Os();while(Vi!==null);if((Xe&6)!==0)throw Error(s(327));var _=n.finishedWork;if(l=n.finishedLanes,_===null)return null;if(n.finishedWork=null,n.finishedLanes=0,_===n.current)throw Error(s(177));n.callbackNode=null,n.callbackPriority=0,n.cancelPendingCommit=null;var O=_.lanes|_.childLanes;if(O|=hd,gN(n,l,O,p,w,T),n===$e&&(Ce=$e=null,Me=0),(_.subtreeFlags&10256)===0&&(_.flags&10256)===0||nc||(nc=!0,xf=O,bf=r,HA(fl,function(){return Os(),null})),r=(_.flags&15990)!==0,(_.subtreeFlags&15990)!==0||r?(r=$.T,$.T=null,p=W.p,W.p=2,w=Xe,Xe|=4,AA(n,_),c0(_,n),lA(If,n.containerInfo),gc=!!Lf,If=Lf=null,n.current=_,s0(n,_.alternate,_),rN(),Xe=w,W.p=p,$.T=r):n.current=_,nc?(nc=!1,Vi=n,ro=l):R0(n,O),O=n.pendingLanes,O===0&&(Ka=null),dN(_.stateNode),Vn(n),i!==null)for(f=n.onRecoverableError,_=0;_<i.length;_++)O=i[_],f(O.value,{componentStack:O.stack});return(ro&3)!==0&&Os(),O=n.pendingLanes,(l&4194218)!==0&&(O&42)!==0?n===wf?oo++:(oo=0,wf=n):oo=0,lo(0),null}function R0(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,$r(i)))}function Os(){if(Vi!==null){var n=Vi,i=xf;xf=0;var r=Bg(ro),l=$.T,f=W.p;try{if(W.p=32>r?32:r,$.T=null,Vi===null)var p=!1;else{r=bf,bf=null;var w=Vi,T=ro;if(Vi=null,ro=0,(Xe&6)!==0)throw Error(s(331));var _=Xe;if(Xe|=4,m0(w.current),d0(w,w.current,T,r),Xe=_,lo(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Tr,w)}catch{}p=!0}return p}finally{W.p=f,$.T=l,R0(n,i)}}return!1}function k0(n,i,r){i=ln(r,i),i=Hd(n.stateNode,i,2),n=Va(n,i,2),n!==null&&(jr(n,2),Vn(n))}function Ve(n,i,r){if(n.tag===3)k0(n,n,r);else for(;i!==null;){if(i.tag===3){k0(i,n,r);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ka===null||!Ka.has(l))){n=ln(r,n),r=Oy(2),l=Va(i,r,2),l!==null&&(Py(r,l,i,n),jr(l,2),Vn(l));break}}i=i.return}}function Nf(n,i,r){var l=n.pingCache;if(l===null){l=n.pingCache=new DA;var f=new Set;l.set(i,f)}else f=l.get(i),f===void 0&&(f=new Set,l.set(i,f));f.has(r)||(pf=!0,f.add(r),n=BA.bind(null,n,i,r),i.then(n,n))}function BA(n,i,r){var l=n.pingCache;l!==null&&l.delete(i),n.pingedLanes|=n.suspendedLanes&r,n.warmLanes&=~r,$e===n&&(Me&r)===r&&(et===4||et===3&&(Me&62914560)===Me&&300>Ln()-yf?(Xe&2)===0&&Ms(n,0):gf|=r,ks===Me&&(ks=0)),Vn(n)}function M0(n,i){i===0&&(i=Lg()),n=Da(n,i),n!==null&&(jr(n,i),Vn(n))}function zA(n){var i=n.memoizedState,r=0;i!==null&&(r=i.retryLane),M0(n,r)}function VA(n,i){var r=0;switch(n.tag){case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(r=f.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(i),M0(n,r)}function HA(n,i){return Fu(n,i)}var sc=null,Ps=null,Af=!1,rc=!1,Cf=!1,Hi=0;function Vn(n){n!==Ps&&n.next===null&&(Ps===null?sc=Ps=n:Ps=Ps.next=n),rc=!0,Af||(Af=!0,$A(FA))}function lo(n,i){if(!Cf&&rc){Cf=!0;do for(var r=!1,l=sc;l!==null;){if(n!==0){var f=l.pendingLanes;if(f===0)var p=0;else{var w=l.suspendedLanes,T=l.pingedLanes;p=(1<<31-Gt(42|n)+1)-1,p&=f&~(w&~T),p=p&201326677?p&201326677|1:p?p|2:0}p!==0&&(r=!0,P0(l,p))}else p=Me,p=pl(l,l===$e?p:0),(p&3)===0||Er(l,p)||(r=!0,P0(l,p));l=l.next}while(r);Cf=!1}}function FA(){rc=Af=!1;var n=0;Hi!==0&&(QA()&&(n=Hi),Hi=0);for(var i=Ln(),r=null,l=sc;l!==null;){var f=l.next,p=D0(l,i);p===0?(l.next=null,r===null?sc=f:r.next=f,f===null&&(Ps=r)):(r=l,(n!==0||(p&3)!==0)&&(rc=!0)),l=f}lo(n)}function D0(n,i){for(var r=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var w=31-Gt(p),T=1<<w,_=f[w];_===-1?((T&r)===0||(T&l)!==0)&&(f[w]=pN(T,i)):_<=i&&(n.expiredLanes|=T),p&=~T}if(i=$e,r=Me,r=pl(n,n===i?r:0),l=n.callbackNode,r===0||n===i&&Ge===2||n.cancelPendingCommit!==null)return l!==null&&l!==null&&$u(l),n.callbackNode=null,n.callbackPriority=0;if((r&3)===0||Er(n,r)){if(i=r&-r,i===n.callbackPriority)return i;switch(l!==null&&$u(l),Bg(r)){case 2:case 8:r=Dg;break;case 32:r=fl;break;case 268435456:r=Og;break;default:r=fl}return l=O0.bind(null,n),r=Fu(r,l),n.callbackPriority=i,n.callbackNode=r,i}return l!==null&&l!==null&&$u(l),n.callbackPriority=2,n.callbackNode=null,2}function O0(n,i){var r=n.callbackNode;if(Os()&&n.callbackNode!==r)return null;var l=Me;return l=pl(n,n===$e?l:0),l===0?null:(w0(n,l,i),D0(n,Ln()),n.callbackNode!=null&&n.callbackNode===r?O0.bind(null,n):null)}function P0(n,i){if(Os())return null;w0(n,i,!0)}function $A(n){eC(function(){(Xe&6)!==0?Fu(Mg,n):n()})}function _f(){return Hi===0&&(Hi=Pg()),Hi}function L0(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:bl(""+n)}function I0(n,i){var r=i.ownerDocument.createElement("input");return r.name=i.name,r.value=i.value,n.id&&r.setAttribute("form",n.id),i.parentNode.insertBefore(r,i),n=new FormData(n),r.parentNode.removeChild(r),n}function GA(n,i,r,l,f){if(i==="submit"&&r&&r.stateNode===f){var p=L0((f[Lt]||null).action),w=l.submitter;w&&(i=(i=w[Lt]||null)?L0(i.formAction):w.getAttribute("formAction"),i!==null&&(p=i,w=null));var T=new El("action","action",null,l,f);n.push({event:T,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Hi!==0){var _=w?I0(f,w):new FormData(f);Id(r,{pending:!0,data:_,method:f.method,action:p},null,_)}}else typeof p=="function"&&(T.preventDefault(),_=w?I0(f,w):new FormData(f),Id(r,{pending:!0,data:_,method:f.method,action:p},p,_))},currentTarget:f}]})}}for(var Rf=0;Rf<_v.length;Rf++){var kf=_v[Rf],qA=kf.toLowerCase(),KA=kf[0].toUpperCase()+kf.slice(1);En(qA,"on"+KA)}En(Ev,"onAnimationEnd"),En(jv,"onAnimationIteration"),En(Nv,"onAnimationStart"),En("dblclick","onDoubleClick"),En("focusin","onFocus"),En("focusout","onBlur"),En(uA,"onTransitionRun"),En(dA,"onTransitionStart"),En(fA,"onTransitionCancel"),En(Av,"onTransitionEnd"),ls("onMouseEnter",["mouseout","mouseover"]),ls("onMouseLeave",["mouseout","mouseover"]),ls("onPointerEnter",["pointerout","pointerover"]),ls("onPointerLeave",["pointerout","pointerover"]),Ti("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ti("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),Ti("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ti("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ti("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var co="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(" "),YA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(co));function U0(n,i){i=(i&4)!==0;for(var r=0;r<n.length;r++){var l=n[r],f=l.event;l=l.listeners;e:{var p=void 0;if(i)for(var w=l.length-1;0<=w;w--){var T=l[w],_=T.instance,O=T.currentTarget;if(T=T.listener,_!==p&&f.isPropagationStopped())break e;p=T,f.currentTarget=O;try{p(f)}catch(Y){ql(Y)}f.currentTarget=null,p=_}else for(w=0;w<l.length;w++){if(T=l[w],_=T.instance,O=T.currentTarget,T=T.listener,_!==p&&f.isPropagationStopped())break e;p=T,f.currentTarget=O;try{p(f)}catch(Y){ql(Y)}f.currentTarget=null,p=_}}}}function Re(n,i){var r=i[qu];r===void 0&&(r=i[qu]=new Set);var l=n+"__bubble";r.has(l)||(B0(i,n,2,!1),r.add(l))}function Mf(n,i,r){var l=0;i&&(l|=4),B0(r,n,l,i)}var oc="_reactListening"+Math.random().toString(36).slice(2);function Df(n){if(!n[oc]){n[oc]=!0,Hg.forEach(function(r){r!=="selectionchange"&&(YA.has(r)||Mf(r,!1,n),Mf(r,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[oc]||(i[oc]=!0,Mf("selectionchange",!1,i))}}function B0(n,i,r,l){switch(lx(i)){case 2:var f=bC;break;case 8:f=wC;break;default:f=qf}r=f.bind(null,i,r,n),f=void 0,!ed||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(i,r,{capture:!0,passive:f}):n.addEventListener(i,r,!0):f!==void 0?n.addEventListener(i,r,{passive:f}):n.addEventListener(i,r,!1)}function Of(n,i,r,l,f){var p=l;if((i&1)===0&&(i&2)===0&&l!==null)e:for(;;){if(l===null)return;var w=l.tag;if(w===3||w===4){var T=l.stateNode.containerInfo;if(T===f||T.nodeType===8&&T.parentNode===f)break;if(w===4)for(w=l.return;w!==null;){var _=w.tag;if((_===3||_===4)&&(_=w.stateNode.containerInfo,_===f||_.nodeType===8&&_.parentNode===f))return;w=w.return}for(;T!==null;){if(w=Si(T),w===null)return;if(_=w.tag,_===5||_===6||_===26||_===27){l=p=w;continue e}T=T.parentNode}}l=l.return}ev(function(){var O=p,Y=Qu(r),Q=[];e:{var V=Cv.get(n);if(V!==void 0){var q=El,re=n;switch(n){case"keypress":if(Sl(r)===0)break e;case"keydown":case"keyup":q=VN;break;case"focusin":re="focus",q=id;break;case"focusout":re="blur",q=id;break;case"beforeblur":case"afterblur":q=id;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=av;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=_N;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=$N;break;case Ev:case jv:case Nv:q=MN;break;case Av:q=qN;break;case"scroll":case"scrollend":q=AN;break;case"wheel":q=YN;break;case"copy":case"cut":case"paste":q=ON;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=sv;break;case"toggle":case"beforetoggle":q=XN}var xe=(i&4)!==0,tt=!xe&&(n==="scroll"||n==="scrollend"),I=xe?V!==null?V+"Capture":null:V;xe=[];for(var D=O,B;D!==null;){var X=D;if(B=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||B===null||I===null||(X=Cr(D,I),X!=null&&xe.push(uo(D,X,B))),tt)break;D=D.return}0<xe.length&&(V=new q(V,re,null,r,Y),Q.push({event:V,listeners:xe}))}}if((i&7)===0){e:{if(V=n==="mouseover"||n==="pointerover",q=n==="mouseout"||n==="pointerout",V&&r!==Zu&&(re=r.relatedTarget||r.fromElement)&&(Si(re)||re[ss]))break e;if((q||V)&&(V=Y.window===Y?Y:(V=Y.ownerDocument)?V.defaultView||V.parentWindow:window,q?(re=r.relatedTarget||r.toElement,q=O,re=re?Si(re):null,re!==null&&(tt=F(re),xe=re.tag,re!==tt||xe!==5&&xe!==27&&xe!==6)&&(re=null)):(q=null,re=O),q!==re)){if(xe=
vendor: 5,800 bytes, lines 48-49
48av,X="onMouseLeave",I="onMouseEnter",D="mouse",(n==="pointerout"||n==="pointerover")&&(xe=sv,X="onPointerLeave",I="onPointerEnter",D="pointer"),tt=q==null?V:Ar(q),B=re==null?V:Ar(re),V=new xe(X,D+"leave",q,r,Y),V.target=tt,V.relatedTarget=B,X=null,Si(Y)===O&&(xe=new xe(I,D+"enter",re,r,Y),xe.target=B,xe.relatedTarget=tt,X=xe),tt=X,q&&re)t:{for(xe=q,I=re,D=0,B=xe;B;B=Ls(B))D++;for(B=0,X=I;X;X=Ls(X))B++;for(;0<D-B;)xe=Ls(xe),D--;for(;0<B-D;)I=Ls(I),B--;for(;D--;){if(xe===I||I!==null&&xe===I.alternate)break t;xe=Ls(xe),I=Ls(I)}xe=null}else xe=null;q!==null&&z0(Q,V,q,xe,!1),re!==null&&tt!==null&&z0(Q,tt,re,xe,!0)}}e:{if(V=O?Ar(O):window,q=V.nodeName&&V.nodeName.toLowerCase(),q==="select"||q==="input"&&V.type==="file")var ne=hv;else if(dv(V))if(mv)ne=rA;else{ne=iA;var Ae=aA}else q=V.nodeName,!q||q.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?O&&Xu(O.elementType)&&(ne=hv):ne=sA;if(ne&&(ne=ne(n,O))){fv(Q,ne,r,Y);break e}Ae&&Ae(n,V,O),n==="focusout"&&O&&V.type==="number"&&O.memoizedProps.value!=null&&Wu(V,"number",V.value)}switch(Ae=O?Ar(O):window,n){case"focusin":(dv(Ae)||Ae.contentEditable==="true")&&(ms=Ae,ud=O,Lr=null);break;case"focusout":Lr=ud=ms=null;break;case"mousedown":dd=!0;break;case"contextmenu":case"mouseup":case"dragend":dd=!1,Sv(Q,r,Y);break;case"selectionchange":if(cA)break;case"keydown":case"keyup":Sv(Q,r,Y)}var le;if(rd)e:{switch(n){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else hs?cv(n,r)&&(fe="onCompositionEnd"):n==="keydown"&&r.keyCode===229&&(fe="onCompositionStart");fe&&(rv&&r.locale!=="ko"&&(hs||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&hs&&(le=tv()):(Ma=Y,td="value"in Ma?Ma.value:Ma.textContent,hs=!0)),Ae=lc(O,fe),0<Ae.length&&(fe=new iv(fe,n,null,r,Y),Q.push({event:fe,listeners:Ae}),le?fe.data=le:(le=uv(r),le!==null&&(fe.data=le)))),(le=QN?JN(n,r):eA(n,r))&&(fe=lc(O,"onBeforeInput"),0<fe.length&&(Ae=new iv("onBeforeInput","beforeinput",null,r,Y),Q.push({event:Ae,listeners:fe}),Ae.data=le)),GA(Q,n,O,r,Y)}U0(Q,i)})}function uo(n,i,r){return{instance:n,listener:i,currentTarget:r}}function lc(n,i){for(var r=i+"Capture",l=[];n!==null;){var f=n,p=f.stateNode;f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=Cr(n,r),f!=null&&l.unshift(uo(n,f,p)),f=Cr(n,i),f!=null&&l.push(uo(n,f,p))),n=n.return}return l}function Ls(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function z0(n,i,r,l,f){for(var p=i._reactName,w=[];r!==null&&r!==l;){var T=r,_=T.alternate,O=T.stateNode;if(T=T.tag,_!==null&&_===l)break;T!==5&&T!==26&&T!==27||O===null||(_=O,f?(O=Cr(r,p),O!=null&&w.unshift(uo(r,O,_))):f||(O=Cr(r,p),O!=null&&w.push(uo(r,O,_)))),r=r.return}w.length!==0&&n.push({event:i,listeners:w})}var WA=/\r\n?/g,XA=/\u0000|\uFFFD/g;function V0(n){return(typeof n=="string"?n:""+n).replace(WA,` 49`).replace(XA,"")}function H0(n,i){return i=V0(i),V0(n)===i}function cc(){}function ze(n,i,r,l,f,p){switch(r){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||us(n,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&us(n,""+l);break;case"className":vl(n,"class",l);break;case"tabIndex":vl(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":vl(n,r,l);break;case"style":Qg(n,l,p);break;case"data":if(i!=="object"){vl(n,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||r!=="href")){n.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(r);break}l=bl(""+l),n.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(r,"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 p=="function"&&(r==="formAction"?(i!=="input"&&ze(n,i,"name",f.name,f,null),ze(n,i,"formEncType",f.formEncType,f,null),ze(n,i,"formMethod",f.formMethod,f,null),ze(n,i,"formTarget",f.formTarget,f,null)):(ze(n,i,"encType",f.encType,f,null),ze(n,i,"method",f.method,f,null),ze(n,i,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(r);break}l=bl(""+l),n.setAttribute(r,l);break;case"onClick":l!=null&&(n.onclick=cc);break;case"onScroll":l!=null&&Re("scroll",n);break;case"onScrollEnd":l!=null&&Re("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(f.children!=null)throw Error(s(60));n.innerHTML=r}}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}r=bl(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);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(r,""+l):n.removeAttribute(r);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
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(r,""):n.removeAttribute(r);break;case"capture":case"download":l===!0?n.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(r,l):n.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(r,l):n.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(r):n.setAttribute(r,l);break;case"popover":Re("beforetoggle",n),Re("toggle",n),gl(n,"popover",l);break;case"xlinkActuate":aa(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":aa(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":aa(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":aa(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":aa(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":aa(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":aa(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":aa(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":aa(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":gl(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=jN.get(r)||r,gl(n,r,l))}}function Pf(n,i,r,l,f,p){switch(r){case"style":Qg(n,l,p);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(f.children!=null)throw Error(s(60));n.innerHTML=r}}break;case"children":typeof l=="string"?us(n,l):(typeof l=="number"||typeof l=="bigint")&&us(n,""+l);break;case"onScroll":l!=null&&Re("scroll",n);break;case"onScrollEnd":l!=null&&Re("scrollend",n);break;case"onClick":l!=null&&(n.onclick=cc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fg.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),i=r.slice(2,f?r.length-7:void 0),p=n[Lt]||null,p=p!=null?p[r]:null,typeof p=="function"&&n.removeEventListener(i,p,f),typeof l=="function")){typeof p!="function"&&p!==null&&(r in n?n[r]=null:n.hasAttribute(r)&&n.removeAttribute(r)),n.addEventListener(i,l,f);break e}r in n?n[r]=l:l===!0?n.setAttribute(r,""):gl(n,r,l)}}}function St(n,i,r){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",n),Re("load",n);var l=!1,f=!1,p;for(p in r)if(r.hasOwnProperty(p)){var w=r[p];if(w!=null)switch(p){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:ze(n,i,p,w,r,null)}}f&&ze(n,i,"srcSet",r.srcSet,r,null),l&&ze(n,i,"src",r.src,r,null);return;case"input":Re("invalid",n);var T=p=w=f=null,_=null,O=null;for(l in r)if(r.hasOwnProperty(l)){var Y=r[l];if(Y!=null)switch(l){case"name":f=Y;break;case"type":w=Y;break;case"checked":_=Y;break;case"defaultChecked":O=Y;break;case"value":p=Y;break;case"defaultValue":T=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,i));break;default:ze(n,i,l,Y,r,null)}}Yg(n,p,T,_,O,w,f,!1),yl(n);return;case"select":Re("invalid",n),l=w=p=null;for(f in r)if(r.hasOwnProperty(f)&&(T=r[f],T!=null))switch(f){case"value":p=T;break;case"defaultValue":w=T;break;case"multiple":l=T;default:ze(n,i,f,T,r,null)}i=p,r=w,n.multiple=!!l,i!=null?cs(n,!!l,i,!1):r!=null&&cs(n,!!l,r,!0);return;case"textarea":Re("invalid",n),p=f=l=null;for(w in r)if(r.hasOwnProperty(w)&&(T=r[w],T!=null))switch(w){case"value":l=T;break;case"defaultValue":f=T;break;case"children":p=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(91));break;default:ze(n,i,w,T,r,null)}Xg(n,l,f,p),yl(n);return;case"option":for(_ in r)if(r.hasOwnProperty(_)&&(l=r[_],l!=null))switch(_){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ze(n,i,_,l,r,null)}return;case"dialog":Re("cancel",n),Re("close",n);break;case"iframe":case"object":Re("load",n);break;case"video":case"audio":for(l=0;l<co.length;l++)Re(co[l],n);break;case"image":Re("error",n),Re("load",n);break;case"details":Re("toggle",n);break;case"embed":case"source":case"link":Re("error",n),Re("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(O in r)if(r.hasOwnProperty(O)&&(l=r[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:ze(n,i,O,l,r,null)}return;default:if(Xu(i)){for(Y in r)r.hasOwnProperty(Y)&&(l=r[Y],l!==void 0&&Pf(n,i,Y,l,r,void 0));return}}for(T in r)r.hasOwnProperty(T)&&(l=r[T],l!=null&&ze(n,i,T,l,r,null))}function ZA(n,i,r,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,w=null,T=null,_=null,O=null,Y=null;for(q in r){var Q=r[q];if(r.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":_=Q;default:l.hasOwnProperty(q)||ze(n,i,q,null,l,Q)}}for(var V in l){var q=l[V];if(Q=r[V],l.hasOwnProperty(V)&&(q!=null||Q!=null))switch(V){case"type":p=q;break;case"name":f=q;break;case"checked":O=q;break;case"defaultChecked":Y=q;break;case"value":w=q;break;case"defaultValue":T=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,i));break;default:q!==Q&&ze(n,i,V,q,l,Q)}}Yu(n,w,T,_,O,Y,p,f);return;case"select":q=w=T=V=null;for(p in r)if(_=r[p],r.hasOwnProperty(p)&&_!=null)switch(p){case"value":break;case"multiple":q=_;default:l.hasOwnProperty(p)||ze(n,i,p,null,l,_)}for(f in l)if(p=l[f],_=r[f],l.hasOwnProperty(f)&&(p!=null||_!=null))switch(f){case"value":V=p;break;case"defaultValue":T=p;break;case"multiple":w=p;default:p!==_&&ze(n,i,f,p,l,_)}i=T,r=w,l=q,V!=null?cs(n,!!r,V,!1):!!l!=!!r&&(i!=null?cs(n,!!r,i,!0):cs(n,!!r,r?[]:"",!1));return;case"textarea":q=V=null;for(T in r)if(f=r[T],r.hasOwnProperty(T)&&f!=null&&!l.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:ze(n,i,T,null,l,f)}for(w in l)if(f=l[w],p=r[w],l.hasOwnProperty(w)&&(f!=null||p!=null))switch(w){case"value":V=f;break;case"defaultValue":q=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(s(91));break;default:f!==p&&ze(n,i,w,f,l,p)}Wg(n,V,q);return;case"option":for(var re in r)if(V=r[re],r.hasOwnProperty(re)&&V!=null&&!l.hasOwnProperty(re))switch(re){case"selected":n.selected=!1;break;default:ze(n,i,re,null,l,V)}for(_ in l)if(V=l[_],q=r[_],l.hasOwnProperty(_)&&V!==q&&(V!=null||q!=null))switch(_){case"selected":n.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:ze(n,i,_,V,l,q)}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 xe in r)V=r[xe],r.hasOwnProperty(xe)&&V!=null&&!l.hasOwnProperty(xe)&&ze(n,i,xe,null,l,V);for(O in l)if(V=l[O],q=r[O],l.hasOwnProperty(O)&&V!==q&&(V!=null||q!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,i));break;default:ze(n,i,O,V,l,q)}return;default:if(Xu(i)){for(var tt in r)V=r[tt],r.hasOwnProperty(tt)&&V!==void 0&&!l.hasOwnProperty(tt)&&Pf(n,i,tt,void 0,l,V);for(Y in l)V=l[Y],q=r[Y],!l.hasOwnProperty(Y)||V===q||V===void 0&&q===void 0||Pf(n,i,Y,V,l,q);return}}for(var I in r)V=r[I],r.hasOwnProperty(I)&&V!=null&&!l.hasOwnProperty(I)&&ze(n,i,I,null,l,V);for(Q in l)V=l[Q],q=r[Q],!l.hasOwnProperty(Q)||V===q||V==null&&q==null||ze(n,i,Q,V,l,q)}var Lf=null,If=null;function uc(n){return n.nodeType===9?n:n.ownerDocument}function F0(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}}
vendor: 20,504 bytes, line 49
49function $0(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function Uf(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Bf=null;function QA(){var n=window.event;return n&&n.type==="popstate"?n===Bf?!1:(Bf=n,!0):(Bf=null,!1)}var G0=typeof setTimeout=="function"?setTimeout:void 0,JA=typeof clearTimeout=="function"?clearTimeout:void 0,q0=typeof Promise=="function"?Promise:void 0,eC=typeof queueMicrotask=="function"?queueMicrotask:typeof q0<"u"?function(n){return q0.resolve(null).then(n).catch(tC)}:G0;function tC(n){setTimeout(function(){throw n})}function zf(n,i){var r=i,l=0;do{var f=r.nextSibling;if(n.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"){if(l===0){n.removeChild(f),xo(i);return}l--}else r!=="$"&&r!=="$?"&&r!=="$!"||l++;r=f}while(r);xo(i)}function Vf(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var r=i;switch(i=i.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Vf(r),Ku(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}n.removeChild(r)}}function nC(n,i,r,l){for(;n.nodeType===1;){var f=r;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Nr])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==f.rel||n.getAttribute("href")!==(f.href==null?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=An(n.nextSibling),n===null)break}return null}function aC(n,i,r){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=An(n.nextSibling),n===null))return null;return n}function An(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return n}function K0(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var r=n.data;if(r==="$"||r==="$!"||r==="$?"){if(i===0)return n;i--}else r==="/$"&&i++}n=n.previousSibling}return null}function Y0(n,i,r){switch(i=uc(r),n){case"html":if(n=i.documentElement,!n)throw Error(s(452));return n;case"head":if(n=i.head,!n)throw Error(s(453));return n;case"body":if(n=i.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}var gn=new Map,W0=new Set;function dc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.ownerDocument}var ya=W.d;W.d={f:iC,r:sC,D:rC,C:oC,L:lC,m:cC,X:dC,S:uC,M:fC};function iC(){var n=ya.f(),i=ac();return n||i}function sC(n){var i=rs(n);i!==null&&i.tag===5&&i.type==="form"?Sy(i):ya.r(n)}var Is=typeof document>"u"?null:document;function X0(n,i,r){var l=Is;if(l&&typeof i=="string"&&i){var f=rn(i);f='link[rel="'+n+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),W0.has(f)||(W0.add(f),n={rel:n,crossOrigin:r,href:i},l.querySelector(f)===null&&(i=l.createElement("link"),St(i,"link",n),gt(i),l.head.appendChild(i)))}}function rC(n){ya.D(n),X0("dns-prefetch",n,null)}function oC(n,i){ya.C(n,i),X0("preconnect",n,i)}function lC(n,i,r){ya.L(n,i,r);var l=Is;if(l&&n&&i){var f='link[rel="preload"][as="'+rn(i)+'"]';i==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+rn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+rn(r.imageSizes)+'"]')):f+='[href="'+rn(n)+'"]';var p=f;switch(i){case"style":p=Us(n);break;case"script":p=Bs(n)}gn.has(p)||(n=J({rel:"preload",href:i==="image"&&r&&r.imageSrcSet?void 0:n,as:i},r),gn.set(p,n),l.querySelector(f)!==null||i==="style"&&l.querySelector(fo(p))||i==="script"&&l.querySelector(ho(p))||(i=l.createElement("link"),St(i,"link",n),gt(i),l.head.appendChild(i)))}}function cC(n,i){ya.m(n,i);var r=Is;if(r&&n){var l=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+rn(l)+'"][href="'+rn(n)+'"]',p=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Bs(n)}if(!gn.has(p)&&(n=J({rel:"modulepreload",href:n},i),gn.set(p,n),r.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(ho(p)))return}l=r.createElement("link"),St(l,"link",n),gt(l),r.head.appendChild(l)}}}function uC(n,i,r){ya.S(n,i,r);var l=Is;if(l&&n){var f=os(l).hoistableStyles,p=Us(n);i=i||"default";var w=f.get(p);if(!w){var T={loading:0,preload:null};if(w=l.querySelector(fo(p)))T.loading=5;else{n=J({rel:"stylesheet",href:n,"data-precedence":i},r),(r=gn.get(p))&&Hf(n,r);var _=w=l.createElement("link");gt(_),St(_,"link",n),_._p=new Promise(function(O,Y){_.onload=O,_.onerror=Y}),_.addEventListener("load",function(){T.loading|=1}),_.addEventListener("error",function(){T.loading|=2}),T.loading|=4,fc(w,i,l)}w={type:"stylesheet",instance:w,count:1,state:T},f.set(p,w)}}}function dC(n,i){ya.X(n,i);var r=Is;if(r&&n){var l=os(r).hoistableScripts,f=Bs(n),p=l.get(f);p||(p=r.querySelector(ho(f)),p||(n=J({src:n,async:!0},i),(i=gn.get(f))&&Ff(n,i),p=r.createElement("script"),gt(p),St(p,"link",n),r.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(f,p))}}function fC(n,i){ya.M(n,i);var r=Is;if(r&&n){var l=os(r).hoistableScripts,f=Bs(n),p=l.get(f);p||(p=r.querySelector(ho(f)),p||(n=J({src:n,async:!0,type:"module"},i),(i=gn.get(f))&&Ff(n,i),p=r.createElement("script"),gt(p),St(p,"link",n),r.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},l.set(f,p))}}function Z0(n,i,r,l){var f=(f=dt.current)?dc(f):null;if(!f)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(i=Us(r.href),r=os(f).hoistableStyles,l=r.get(i),l||(l={type:"style",instance:null,count:0,state:null},r.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){n=Us(r.href);var p=os(f).hoistableStyles,w=p.get(n);if(w||(f=f.ownerDocument||f,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,w),(p=f.querySelector(fo(n)))&&!p._p&&(w.instance=p,w.state.loading=5),gn.has(n)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},gn.set(n,r),p||hC(f,n,r,w.state))),i&&l===null)throw Error(s(528,""));return w}if(i&&l!==null)throw Error(s(529,""));return null;case"script":return i=r.async,r=r.src,typeof r=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Bs(r),r=os(f).hoistableScripts,l=r.get(i),l||(l={type:"script",instance:null,count:0,state:null},r.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function Us(n){return'href="'+rn(n)+'"'}function fo(n){return'link[rel="stylesheet"]['+n+"]"}function Q0(n){return J({},n,{"data-precedence":n.precedence,precedence:null})}function hC(n,i,r,l){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=n.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),St(i,"link",r),gt(i),n.head.appendChild(i))}function Bs(n){return'[src="'+rn(n)+'"]'}function ho(n){return"script[async]"+n}function J0(n,i,r){if(i.count++,i.instance===null)switch(i.type){case"style":var l=n.querySelector('style[data-href~="'+rn(r.href)+'"]');if(l)return i.instance=l,gt(l),l;var f=J({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),gt(l),St(l,"style",f),fc(l,r.precedence,n),i.instance=l;case"stylesheet":f=Us(r.href);var p=n.querySelector(fo(f));if(p)return i.state.loading|=4,i.instance=p,gt(p),p;l=Q0(r),(f=gn.get(f))&&Hf(l,f),p=(n.ownerDocument||n).createElement("link"),gt(p);var w=p;return w._p=new Promise(function(T,_){w.onload=T,w.onerror=_}),St(p,"link",l),i.state.loading|=4,fc(p,r.precedence,n),i.instance=p;case"script":return p=Bs(r.src),(f=n.querySelector(ho(p)))?(i.instance=f,gt(f),f):(l=r,(f=gn.get(p))&&(l=J({},r),Ff(l,f)),n=n.ownerDocument||n,f=n.createElement("script"),gt(f),St(f,"link",l),n.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(s(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(l=i.instance,i.state.loading|=4,fc(l,r.precedence,n));return i.instance}function fc(n,i,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,p=f,w=0;w<l.length;w++){var T=l[w];if(T.dataset.precedence===i)p=T;else if(p!==f)break}p?p.parentNode.insertBefore(n,p.nextSibling):(i=r.nodeType===9?r.head:r,i.insertBefore(n,i.firstChild))}function Hf(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function Ff(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var hc=null;function ex(n,i,r){if(hc===null){var l=new Map,f=hc=new Map;f.set(r,l)}else f=hc,l=f.get(r),l||(l=new Map,f.set(r,l));if(l.has(n))return l;for(l.set(n,null),r=r.getElementsByTagName(n),f=0;f<r.length;f++){var p=r[f];if(!(p[Nr]||p[jt]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var w=p.getAttribute(i)||"";w=n+w;var T=l.get(w);T?T.push(p):l.set(w,[p])}}return l}function tx(n,i,r){n=n.ownerDocument||n,n.head.insertBefore(r,i==="title"?n.querySelector("head > title"):null)}function mC(n,i,r){if(r===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function nx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var mo=null;function pC(){}function gC(n,i,r){if(mo===null)throw Error(s(475));var l=mo;if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=Us(r.href),p=n.querySelector(fo(f));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(l.count++,l=mc.bind(l),n.then(l,l)),i.state.loading|=4,i.instance=p,gt(p);return}p=n.ownerDocument||n,r=Q0(r),(f=gn.get(f))&&Hf(r,f),p=p.createElement("link"),gt(p);var w=p;w._p=new Promise(function(T,_){w.onload=T,w.onerror=_}),St(p,"link",r),i.instance=p}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(l.count++,i=mc.bind(l),n.addEventListener("load",i),n.addEventListener("error",i))}}function vC(){if(mo===null)throw Error(s(475));var n=mo;return n.stylesheets&&n.count===0&&$f(n,n.stylesheets),0<n.count?function(i){var r=setTimeout(function(){if(n.stylesheets&&$f(n,n.stylesheets),n.unsuspend){var l=n.unsuspend;n.unsuspend=null,l()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(r)}}:null}function mc(){if(this.count--,this.count===0){if(this.stylesheets)$f(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var pc=null;function $f(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,pc=new Map,i.forEach(yC,n),pc=null,mc.call(n))}function yC(n,i){if(!(i.state.loading&4)){var r=pc.get(n);if(r)var l=r.get(null);else{r=new Map,pc.set(n,r);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var w=f[p];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(r.set(w.dataset.precedence,w),l=w)}l&&r.set(null,l)}f=i.instance,w=f.getAttribute("data-precedence"),p=r.get(w)||l,p===l&&r.set(null,f),r.set(w,f),this.count++,l=mc.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),p?p.parentNode.insertBefore(f,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),i.state.loading|=4}}var po={$$typeof:S,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function xC(n,i,r,l,f,p,w,T){this.tag=1,this.containerInfo=n,this.finishedWork=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=Gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.hiddenUpdates=Gu(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function ax(n,i,r,l,f,p,w,T,_,O,Y,Q){return n=new xC(n,i,r,w,T,_,O,Q),i=1,p===!0&&(i|=24),p=mn(3,null,null,i),n.current=p,p.stateNode=n,i=wd(),i.refCount++,n.pooledCache=i,i.refCount++,p.memoizedState={element:l,isDehydrated:r,cache:i},tf(p),n}function ix(n){return n?(n=vs,n):vs}function sx(n,i,r,l,f,p){f=ix(f),l.context===null?l.context=f:l.pendingContext=f,l=za(i),l.payload={element:r},p=p===void 0?null:p,p!==null&&(l.callback=p),r=Va(n,l,i),r!==null&&(Dt(r,n,i),Zr(r,n,i))}function rx(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var r=n.retryLane;n.retryLane=r!==0&&r<i?r:i}}function Gf(n,i){rx(n,i),(n=n.alternate)&&rx(n,i)}function ox(n){if(n.tag===13){var i=Da(n,67108864);i!==null&&Dt(i,n,67108864),Gf(n,67108864)}}var gc=!0;function bC(n,i,r,l){var f=$.T;$.T=null;var p=W.p;try{W.p=2,qf(n,i,r,l)}finally{W.p=p,$.T=f}}function wC(n,i,r,l){var f=$.T;$.T=null;var p=W.p;try{W.p=8,qf(n,i,r,l)}finally{W.p=p,$.T=f}}function qf(n,i,r,l){if(gc){var f=Kf(l);if(f===null)Of(n,i,l,vc,r),cx(n,l);else if(TC(f,n,i,r,l))l.stopPropagation();else if(cx(n,l),i&4&&-1<SC.indexOf(n)){for(;f!==null;){var p=rs(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var w=wi(p.pendingLanes);if(w!==0){var T=p;for(T.pendingLanes|=2,T.entangledLanes|=2;w;){var _=1<<31-Gt(w);T.entanglements[1]|=_,w&=~_}Vn(p),(Xe&6)===0&&(ec=Ln()+500,lo(0))}}break;case 13:T=Da(p,2),T!==null&&Dt(T,p,2),ac(),Gf(p,2)}if(p=Kf(l),p===null&&Of(n,i,l,vc,r),p===f)break;f=p}f!==null&&l.stopPropagation()}else Of(n,i,l,null,r)}}function Kf(n){return n=Qu(n),Yf(n)}var vc=null;function Yf(n){if(vc=null,n=Si(n),n!==null){var i=F(n);if(i===null)n=null;else{var r=i.tag;if(r===13){if(n=ce(i),n!==null)return n;n=null}else if(r===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return vc=n,null}function lx(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(oN()){case Mg:return 2;case Dg:return 8;case fl:case lN:return 32;case Og:return 268435456;default:return 32}default:return 32}}var Wf=!1,Ya=null,Wa=null,Xa=null,go=new Map,vo=new Map,Za=[],SC="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 cx(n,i){switch(n){case"focusin":case"focusout":Ya=null;break;case"dragenter":case"dragleave":Wa=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":go.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":vo.delete(i.pointerId)}}function yo(n,i,r,l,f,p){return n===null||n.nativeEvent!==p?(n={blockedOn:i,domEventName:r,eventSystemFlags:l,nativeEvent:p,targetContainers:[f]},i!==null&&(i=rs(i),i!==null&&ox(i)),n):(n.eventSystemFlags|=l,i=n.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),n)}function TC(n,i,r,l,f){switch(i){case"focusin":return Ya=yo(Ya,n,i,r,l,f),!0;case"dragenter":return Wa=yo(Wa,n,i,r,l,f),!0;case"mouseover":return Xa=yo(Xa,n,i,r,l,f),!0;case"pointerover":var p=f.pointerId;return go.set(p,yo(go.get(p)||null,n,i,r,l,f)),!0;case"gotpointercapture":return p=f.pointerId,vo.set(p,yo(vo.get(p)||null,n,i,r,l,f)),!0}return!1}function ux(n){var i=Si(n.target);if(i!==null){var r=F(i);if(r!==null){if(i=r.tag,i===13){if(i=ce(r),i!==null){n.blockedOn=i,vN(n.priority,function(){if(r.tag===13){var l=Xt(),f=Da(r,l);f!==null&&Dt(f,r,l),Gf(r,l)}});return}}else if(i===3&&r.stateNode.current.memoizedState.isDehydrated){n.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}n.blockedOn=null}function yc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var r=Kf(n.nativeEvent);if(r===null){r=n.nativeEvent;var l=new r.constructor(r.type,r);Zu=l,r.target.dispatchEvent(l),Zu=null}else return i=rs(r),i!==null&&ox(i),n.blockedOn=r,!1;i.shift()}return!0}function dx(n,i,r){yc(n)&&r.delete(i)}function EC(){Wf=!1,Ya!==null&&yc(Ya)&&(Ya=null),Wa!==null&&yc(Wa)&&(Wa=null),Xa!==null&&yc(Xa)&&(Xa=null),go.forEach(dx),vo.forEach(dx)}function xc(n,i){n.blockedOn===i&&(n.blockedOn=null,Wf||(Wf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,EC)))}var bc=null;function fx(n){bc!==n&&(bc=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bc===n&&(bc=null);for(var i=0;i<n.length;i+=3){var r=n[i],l=n[i+1],f=n[i+2];if(typeof l!="function"){if(Yf(l||r)===null)continue;break}var p=rs(r);p!==null&&(n.splice(i,3),i-=3,Id(p,{pending:!0,data:f,method:r.method,action:l},l,f))}}))}function xo(n){function i(_){return xc(_,n)}Ya!==null&&xc(Ya,n),Wa!==null&&xc(Wa,n),Xa!==null&&xc(Xa,n),go.forEach(i),vo.forEach(i);for(var r=0;r<Za.length;r++){var l=Za[r];l.blockedOn===n&&(l.blockedOn=null)}for(;0<Za.length&&(r=Za[0],r.blockedOn===null);)ux(r),r.blockedOn===null&&Za.shift();if(r=(n.ownerDocument||n).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var f=r[l],p=r[l+1],w=f[Lt]||null;if(typeof p=="function")w||fx(r);else if(w){var T=null;if(p&&p.hasAttribute("formAction")){if(f=p,w=p[Lt]||null)T=w.formAction;else if(Yf(f)!==null)continue}else T=w.action;typeof T=="function"?r[l+1]=T:(r.splice(l,3),l-=3),fx(r)}}}function Xf(n){this._internalRoot=n}wc.prototype.render=Xf.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(s(409));
49var r=i.current,l=Xt();sx(r,l,n,i,null,null)},wc.prototype.unmount=Xf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;n.tag===0&&Os(),sx(n.current,2,null,n,null,null),ac(),i[ss]=null}};function wc(n){this._internalRoot=n}wc.prototype.unstable_scheduleHydration=function(n){if(n){var i=zg();n={blockedOn:null,target:n,priority:i};for(var r=0;r<Za.length&&i!==0&&i<Za[r].priority;r++);Za.splice(r,0,n),r===0&&ux(n)}};var hx=t.version;if(hx!=="19.0.0")throw Error(s(527,hx,"19.0.0"));W.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=L(i),n=n!==null?U(n):null,n=n===null?null:n.stateNode,n};var jC={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:$,findFiberByHostInstance:Si,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sc.isDisabled&&Sc.supportsFiber)try{Tr=Sc.inject(jC),$t=Sc}catch{}}return wo.createRoot=function(n,i){if(!o(n))throw Error(s(299));var r=!1,l="",f=Ry,p=ky,w=My,T=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(T=i.unstable_transitionCallbacks)),i=ax(n,1,!1,null,null,r,l,f,p,w,T,null),n[ss]=i.current,Df(n.nodeType===8?n.parentNode:n),new Xf(i)},wo.hydrateRoot=function(n,i,r){if(!o(n))throw Error(s(299));var l=!1,f="",p=Ry,w=ky,T=My,_=null,O=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(w=r.onCaughtError),r.onRecoverableError!==void 0&&(T=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(_=r.unstable_transitionCallbacks),r.formState!==void 0&&(O=r.formState)),i=ax(n,1,!0,i,r??null,l,f,p,w,T,_,O),i.context=ix(null),r=i.current,l=Xt(),f=za(l),f.callback=null,Va(r,f,l),i.current.lanes=l,jr(i,l),Vn(i),n[ss]=i.current,Df(n),new wc(i)},wo.version="19.0.0",wo}var Ex;function IC(){if(Ex)return Jf.exports;Ex=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(),Jf.exports=LC(),Jf.exports}var UC=IC();const BC=Ym(UC);var yu=Nw();const Aw=Ym(yu);/** 50 * @remix-run/router v1.22.0 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Lo.apply(this,arguments)}var oi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(oi||(oi={}));const jx="popstate";function zC(e){e===void 0&&(e={});function t(s,o){let{pathname:u,search:d,hash:h}=s.location;return Gh("",{pathname:u,search:d,hash:h},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(s,o){return typeof o=="string"?o:Qc(o)}return HC(t,a,null,e)}function st(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Cw(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function VC(){return Math.random().toString(36).substr(2,8)}function Nx(e,t){return{usr:e.state,key:e.key,idx:t}}function Gh(e,t,a,s){return a===void 0&&(a=null),Lo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:a,key:t&&t.key||s||VC()})}function Qc(e){let{pathname:t="/",search:a="",hash:s=""}=e;return a&&a!=="?"&&(t+=a.charAt(0)==="?"?a:"?"+a),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function ur(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substr(a),e=e.substr(0,a));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function HC(e,t,a,s){s===void 0&&(s={});let{window:o=document.defaultView,v5Compat:u=!1}=s,d=o.history,h=oi.Pop,m=null,g=v();g==null&&(g=0,d.replaceState(Lo({},d.state,{idx:g}),""));function v(){return(d.state||{idx:null}).idx}function y(){h=oi.Pop;let A=v(),C=A==null?null:A-g;g=A,m&&m({action:h,location:E.location,delta:C})}function b(A,C){h=oi.Push;let k=Gh(E.location,A,C);g=v()+1;let R=Nx(k,g),P=E.createHref(k);try{d.pushState(R,"",P)}
vendor: 3,212 bytes, line 58
58catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;o.location.assign(P)}u&&m&&m({action:h,location:E.location,delta:1})}function S(A,C){h=oi.Replace;let k=Gh(E.location,A,C);g=v();let R=Nx(k,g),P=E.createHref(k);d.replaceState(R,"",P),u&&m&&m({action:h,location:E.location,delta:0})}function j(A){let C=o.location.origin!=="null"?o.location.origin:o.location.href,k=typeof A=="string"?A:Qc(A);return k=k.replace(/ $/,"%20"),st(C,"No window.location.(origin|href) available to create URL for href: "+k),new URL(k,C)}let E={get action(){return h},get location(){return e(o,d)},listen(A){if(m)throw new Error("A history only accepts one active listener");return o.addEventListener(jx,y),m=A,()=>{o.removeEventListener(jx,y),m=null}},createHref(A){return t(o,A)},createURL:j,encodeLocation(A){let C=j(A);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:b,replace:S,go(A){return d.go(A)}};return E}var Ax;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ax||(Ax={}));function FC(e,t,a){return a===void 0&&(a="/"),$C(e,t,a)}function $C(e,t,a,s){let o=typeof t=="string"?ur(t):t,u=Zm(o.pathname||"/",a);if(u==null)return null;let d=_w(e);GC(d);let h=null;for(let m=0;h==null&&m<d.length;++m){let g=n_(u);h=e_(d[m],g)}return h}function _w(e,t,a,s){t===void 0&&(t=[]),a===void 0&&(a=[]),s===void 0&&(s="");let o=(u,d,h)=>{let m={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};m.relativePath.startsWith("/")&&(st(m.relativePath.startsWith(s),'Absolute route path "'+m.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),m.relativePath=m.relativePath.slice(s.length));let g=li([s,m.relativePath]),v=a.concat(m);u.children&&u.children.length>0&&(st(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+g+'".')),_w(u.children,t,v,g)),!(u.path==null&&!u.index)&&t.push({path:g,score:QC(g,u.index),routesMeta:v})};return e.forEach((u,d)=>{var h;if(u.path===""||!((h=u.path)!=null&&h.includes("?")))o(u,d);else for(let m of Rw(u.path))o(u,d,m)}),t}function Rw(e){let t=e.split("/");if(t.length===0)return[];let[a,...s]=t,o=a.endsWith("?"),u=a.replace(/\?$/,"");if(s.length===0)return o?[u,""]:[u];let d=Rw(s.join("/")),h=[];return h.push(...d.map(m=>m===""?u:[u,m].join("/"))),o&&h.push(...d),h.map(m=>e.startsWith("/")&&m===""?"/":m)}function GC(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:JC(t.routesMeta.map(s=>s.childrenIndex),a.routesMeta.map(s=>s.childrenIndex)))}const qC=/^:[\w-]+$/,KC=3,YC=2,WC=1,XC=10,ZC=-2,Cx=e=>e==="*";function QC(e,t){let a=e.split("/"),s=a.length;return a.some(Cx)&&(s+=ZC),t&&(s+=YC),a.filter(o=>!Cx(o)).reduce((o,u)=>o+(qC.test(u)?KC:u===""?WC:XC),s)}function JC(e,t){return e.length===t.length&&e.slice(0,-1).every((s,o)=>s===t[o])?e[e.length-1]-t[t.length-1]:0}function e_(e,t,a){let{routesMeta:s}=e,o={},u="/",d=[];for(let h=0;h<s.length;++h){let m=s[h],g=h===s.length-1,v=u==="/"?t:t.slice(u.length)||"/",y=kw({path:m.relativePath,caseSensitive:m.caseSensitive,end:g},v),b=m.route;if(!y)return null;
vendor: 6,926 bytes, lines 58-67
58Object.assign(o,y.params),d.push({params:o,pathname:li([u,y.pathname]),pathnameBase:r_(li([u,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(u=li([u,y.pathnameBase]))}return d}function kw(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,s]=t_(e.path,e.caseSensitive,e.end),o=t.match(a);if(!o)return null;let u=o[0],d=u.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:s.reduce((g,v,y)=>{let{paramName:b,isOptional:S}=v;if(b==="*"){let E=h[y]||"";d=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const j=h[y];return S&&!j?g[b]=void 0:g[b]=(j||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:d,pattern:e}}function t_(e,t,a){t===void 0&&(t=!1),a===void 0&&(a=!0),Cw(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,m)=>(s.push({paramName:h,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),s]}function n_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cw(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Zm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,s=e.charAt(a);return s&&s!=="/"?null:e.slice(a)||"/"}function a_(e,t){t===void 0&&(t="/");let{pathname:a,search:s="",hash:o=""}=typeof e=="string"?ur(e):e;return{pathname:a?a.startsWith("/")?a:i_(a,t):t,search:o_(s),hash:l_(o)}}function i_(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function ah(e,t,a,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+a+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function s_(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function Qm(e,t){let a=s_(e);return t?a.map((s,o)=>o===a.length-1?s.pathname:s.pathnameBase):a.map(s=>s.pathnameBase)}function Jm(e,t,a,s){s===void 0&&(s=!1);let o;typeof e=="string"?o=ur(e):(o=Lo({},e),st(!o.pathname||!o.pathname.includes("?"),ah("?","pathname","search",o)),st(!o.pathname||!o.pathname.includes("#"),ah("#","pathname","hash",o)),st(!o.search||!o.search.includes("#"),ah("#","search","hash",o)));let u=e===""||o.pathname==="",d=u?"/":o.pathname,h;if(d==null)h=a;else{let y=t.length-1;if(!s&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),y-=1;o.pathname=b.join("/")}h=y>=0?t[y]:"/"}let m=a_(o,h),g=d&&d!=="/"&&d.endsWith("/"),v=(u||d===".")&&a.endsWith("/");return!m.pathname.endsWith("/")&&(g||v)&&(m.pathname+="/"),m}const li=e=>e.join("/").replace(/\/\/+/g,"/"),r_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,l_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function c_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Mw=["post","put","patch","delete"];new Set(Mw);const u_=["get",...Mw];new Set(u_);/** 59 * React Router v6.29.0 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function Io(){return Io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Io.apply(this,arguments)}const ep=x.createContext(null),d_=x.createContext(null),vi=x.createContext(null),xu=x.createContext(null),_a=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Dw=x.createContext(null);function f_(e,t){let{relative:a}=t===void 0?{}:t;dr()||st(!1);let{basename:s,navigator:o}=x.useContext(vi),{hash:u,pathname:d,search:h}=Pw(e,{relative:a}),m=d;return s!=="/"&&(m=d==="/"?s:li([s,d])),o.createHref({pathname:m,search:h,hash:u})}function dr(){return x.useContext(xu)!=null}function Dn(){return dr()||st(!1),x.useContext(xu).location}function Ow(e){x.useContext(vi).static||x.useLayoutEffect(e)}function Jn(){let{isDataRoute:e}=x.useContext(_a);return e?j_():h_()}function h_(){dr()||st(!1);let e=x.useContext(ep),{basename:t,future:a,navigator:s}=x.useContext(vi),{matches:o}=x.useContext(_a),{pathname:u}=Dn(),d=JSON.stringify(Qm(o,a.v7_relativeSplatPath)),h=x.useRef(!1);return Ow(()=>{h.current=!0}),x.useCallback(function(g,v){if(v===void 0&&(v={}),!h.current)return;if(typeof g=="number"){s.go(g);return}let y=Jm(g,JSON.parse(d),u,v.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:li([t,y.pathname])),(v.replace?s.replace:s.push)(y,v.state,v)},[t,s,d,u,e])}function tp(){let{matches:e}=x.useContext(_a),t=e[e.length-1];return t?t.params:{}}function Pw(e,t){let{relative:a}=t===void 0?{}:t,{future:s}=x.useContext(vi),{matches:o}=x.useContext(_a),{pathname:u}=Dn(),d=JSON.stringify(Qm(o,s.v7_relativeSplatPath));return x.useMemo(()=>Jm(e,JSON.parse(d),u,a==="path"),[e,d,u,a])}function m_(e,t){return p_(e,t)}function p_(e,t,a,s){dr()||st(!1);let{navigator:o,static:u}=x.useContext(vi),{matches:d}=x.useContext(_a),h=d[d.length-1],m=h?h.params:{};h&&h.pathname;let g=h?h.pathnameBase:"/";h&&h.route;let v=Dn(),y;if(t){var b;let C=typeof t=="string"?ur(t):t;g==="/"||(b=C.pathname)!=null&&b.startsWith(g)||st(!1),y=C}else y=v;let S=y.pathname||"/",j=S;if(g!=="/"){let C=g.replace(/^\//,"").split("/");j="/"+S.replace(/^\//,"").split("/").slice(C.length).join("/")}let E=FC(e,{pathname:j}),A=b_(E&&E.map(C=>Object.assign({},C,{params:Object.assign({},m,C.params),pathname:li([g,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?g:li([g,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),d,a,s);return t&&A?x.createElement(xu.Provider,{value:{location:Io({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:oi.Pop}},A):A}function g_(){let e=E_(),t=c_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application
67Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),a?x.createElement("pre",{style:o},a):null,null)}const v_=x.createElement(g_,null);class y_ extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,a){return a.location!==t.location||a.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:a.error,location:a.location,revalidation:t.revalidation||a.revalidation}}componentDidCatch(t,a){console.error("React Router caught the following error during render",t,a)}render(){return this.state.error!==void 0?x.createElement(_a.Provider,{value:this.props.routeContext},x.createElement(Dw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function x_(e){let{routeContext:t,match:a,children:s}=e,o=x.useContext(ep);return o&&o.static&&o.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=a.route.id),x.createElement(_a.Provider,{value:t},s)}function b_(e,t,a,s){var o;if(t===void 0&&(t=[]),a===void 0&&(a=null),s===void 0&&(s=null),e==null){var u;if(!a)return null;if(a.errors)e=a.matches;else if((u=s)!=null&&u.v7_partialHydration&&t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let d=e,h=(o=a)==null?void 0:o.errors;if(h!=null){let v=d.findIndex(y=>y.route.id&&(h==null?void 0:h[y.route.id])!==void 0);v>=0||st(!1),d=d.slice(0,Math.min(d.length,v+1))}let m=!1,g=-1;if(a&&s&&s.v7_partialHydration)for(let v=0;v<d.length;v++){let y=d[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=v),y.route.id){let{loaderData:b,errors:S}=a,j=y.route.loader&&b[y.route.id]===void 0&&(!S||S[y.route.id]===void 0);if(y.route.lazy||j){m=!0,g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}return d.reduceRight((v,y,b)=>{let S,j=!1,E=null,A=null;a&&(S=h&&y.route.id?h[y.route.id]:void 0,E=y.route.errorElement||v_,m&&(g<0&&b===0?(N_("route-fallback"),j=!0,A=null):g===b&&(j=!0,A=y.route.hydrateFallbackElement||null)));let C=t.concat(d.slice(0,b+1)),k=()=>{let R;return S?R=E:j?R=A:y.route.Component?R=x.createElement(y.route.Component,null):y.route.element?R=y.route.element:R=v,x.createElement(x_,{match:y,routeContext:{outlet:v,matches:C,isDataRoute:a!=null},children:R})};return a&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?x.createElement(y_,{location:a.location,revalidation:a.revalidation,component:E,error:S,children:k(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):k()},null)}var Lw=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Lw||{}),Iw=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Iw||{});function w_(e){let t=x.useContext(ep);return t||st(!1),t}function S_(e){let t=x.useContext(d_);return t||st(!1),t}function T_(e){let t=x.useContext(_a);return t||st(!1),t}function Uw(e){let t=T_(),a=t.matches[t.matches.length-1];return a.route.id||st(!1),a.route.id}function E_(){var e;let t=x.useContext(Dw),a=S_(),s=Uw();return t!==void 0?t:(e=a.errors)==null?void 0:e[s]}function j_(){let{router:e}=w_(Lw.UseNavigateStable),t=Uw(Iw.UseNavigateStable),a=x.useRef(!1);return Ow(()=>{a.current=!0}),x.useCallback(function(o,u){u===void 0&&(u={}),a.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Io({fromRouteId:t},u)))},[e,t])}const _x={};function N_(e,t,a){_x[e]||(_x[e]=!0)}function A_(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ic(e){let{to:t,replace:a,state:s,relative:o}=e;dr()||st(!1);let{future:u,static:d}=x.useContext(vi),{matches:h}=x.useContext(_a),{pathname:m}=Dn(),g=Jn(),v=Jm(t,Qm(h,u.v7_relativeSplatPath),m,o==="path"),y=JSON.stringify(v);return x.useEffect(()=>g(JSON.parse(y),{replace:a,state:s,relative:o}),[g,y,o,a,s]),null}function qe(e){st(!1)}function C_(e){let{basename:t="/",children:a=null,location:s,navigationType:o=oi.Pop,navigator:u,static:d=!1,future:h}=e;dr()&&st(!1);let m=t.replace(/^\/*/,"/"),g=x.useMemo(()=>({basename:m,navigator:u,static:d,future:Io({v7_relativeSplatPath:!1},h)}),[m,h,u,d]);typeof s=="string"&&(s=ur(s));let{pathname:v="/",search:y="",hash:b="",state:S=null,key:j="default"}=s,E=x.useMemo(()=>{let A=Zm(v,m);return A==null?null:{location:{pathname:A,search:y,hash:b,state:S,key:j},navigationType:o}},[m,v,y,b,S,j,o]);return E==null?null:x.createElement(vi.Provider,{value:g},x.createElement(xu.Provider,{children:a,value:E}))}function __(e){let{children:t,location:a}=e;return m_(qh(t),a)}new Promise(()=>{});function qh(e,t){t===void 0&&(t=[]);let a=[];
vendor: 1,244 bytes, lines 67-76
67return x.Children.forEach(e,(s,o)=>{if(!x.isValidElement(s))return;let u=[...t,o];if(s.type===x.Fragment){a.push.apply(a,qh(s.props.children,u));return}s.type!==qe&&st(!1),!s.props.index||!s.props.children||st(!1);let d={id:s.props.id||u.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=qh(s.props.children,u)),a.push(d)}),a}/** 68 * React Router DOM v6.29.0 69 * 70 * Copyright (c) Remix Software Inc. 71 * 72 * This source code is licensed under the MIT license found in the 73 * LICENSE.md file in the root directory of this source tree. 74 * 75 * @license MIT 76 */function Kh(){return Kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Kh.apply(this,arguments)}function R_(e,t){if(e==null)return{};var a={},s=Object.keys(e),o,u;for(u=0;
76u<s.length;u++)o=s[u],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}function k_(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function M_(e,t){return e.button===0&&(!t||t==="_self")&&!k_(e)}const D_=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],O_="6";try{window.__reactRouterVersion=O_}catch{}const P_="startTransition",Rx=Xm[P_];function L_(e){let{basename:t,children:a,future:s,window:o}=e,u=x.useRef();u.current==null&&(u.current=zC({window:o,v5Compat:!0}));let d=u.current,[h,m]=x.useState({action:d.action,location:d.location}),{v7_startTransition:g}=s||{},v=x.useCallback(y=>{g&&Rx?Rx(()=>m(y)):m(y)},[m,g]);return x.useLayoutEffect(()=>d.listen(v),[d,v]),x.useEffect(()=>A_(s),[s]),x.createElement(C_,{basename:t,children:a,location:h.location,navigationType:h.action,navigator:d,future:s})}const I_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",U_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B_=x.forwardRef(function(t,a){let{onClick:s,relative:o,reloadDocument:u,replace:d,state:h,target:m,to:g,preventScrollReset:v,viewTransition:y}=t,b=R_(t,D_),{basename:S}=x.useContext(vi),j,E=!1;if(typeof g=="string"&&U_.test(g)&&(j=g,I_))try{let R=new URL(window.location.href),P=g.startsWith("//")?new URL(R.protocol+g):new URL(g),M=Zm(P.pathname,S);P.origin===R.origin&&M!=null?g=M+P.search+P.hash:E=!0}catch{}let A=f_(g,{relative:o}),C=z_(g,{replace:d,state:h,target:m,preventScrollReset:v,relative:o,viewTransition:y});function k(R){s&&s(R),R.defaultPrevented||C(R)}return x.createElement("a",Kh({},b,{href:j||A,onClick:E||u?s:k,ref:a,target:m}))});var kx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(kx||(kx={}));var Mx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Mx||(Mx={}));function z_(e,t){let{target:a,replace:s,state:o,preventScrollReset:u,relative:d,viewTransition:h}=t===void 0?{}:t,m=Jn(),g=Dn(),v=Pw(e,{relative:d});return x.useCallback(y=>{if(M_(y,a)){y.preventDefault();let b=s!==void 0?s:Qc(g)===Qc(v);m(e,{replace:b,state:o,preventScrollReset:u,relative:d,viewTransition:h})}},[g,m,v,s,o,a,e,u,d,h])}function Bw(e){var t,a,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]&&(a=Bw(e[t]))&&(s&&(s+=" "),s+=a)}else for(a in e)e[a]&&(s&&(s+=" "),s+=a);return s}function zw(){for(var e,t,a=0,s="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=Bw(e))&&(s&&(s+=" "),s+=t);return s}const np="-",V_=e=>{const t=F_(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:d=>{const h=d.split(np);return h[0]===""&&h.length!==1&&h.shift(),Vw(h,t)||H_(d)},getConflictingClassGroupIds:(d,h)=>{const m=a[d]||[];return h&&s[d]?[...m,...s[d]]:m}}},Vw=(e,t)=>{var d;if(e.length===0)return t.classGroupId;const a=e[0],s=t.nextPart.get(a),o=s?Vw(e.slice(1),s):void 0;if(o)return o;if(t.validators.length===0)return;const u=e.join(np);return(d=t.validators.find(({validator:h})=>h(u)))==null?void 0:d.classGroupId},Dx=/^\[(.+)\]$/,H_=e=>{if(Dx.test(e)){const t=Dx.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},F_=e=>{const{theme:t,classGroups:a}=e,s={nextPart:new Map,validators:[]};for(const o in a)Yh(a[o],s,o,t);return s},Yh=(e,t,a,s)=>{e.forEach(o=>{if(typeof o=="string"){const u=o===""?t:Ox(t,o);u.classGroupId=a;return}if(typeof o=="function"){if($_(o)){Yh(o(s),t,a,s);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([u,d])=>{Yh(d,Ox(t,u),a,s)})})},Ox=(e,t)=>{let a=e;return t.split(np).forEach(s=>{a.nextPart.has(s)||a.nextPart.set(s,{nextPart:new Map,validators:[]}),a=a.nextPart.get(s)}),a},$_=e=>e.isThemeGetter,G_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,s=new Map;const o=(u,d)=>{a.set(u,d),t++,t>e&&(t=0,s=a,a=new Map)};return{get(u){let d=a.get(u);if(d!==void 0)return d;if((d=s.get(u))!==void 0)return o(u,d),d},set(u,d){a.has(u)?a.set(u,d):o(u,d)}}},Wh="!",Xh=":",q_=Xh.length,K_=e=>{const{prefix:t,experimentalParseClassName:a}=e;let s=o=>{const u=[];let d=0,h=0,m=0,g;for(let j=0;j<o.length;j++){let E=o[j];if(d===0&&h===0){if(E===Xh){u.push(o.slice(m,j)),m=j+q_;continue}if(E==="/"){g=j;continue}}E==="["?d++:E==="]"?d--:E==="("?h++:E===")"&&h--}const v=u.length===0?o:o.substring(m),y=Y_(v),b=y!==v,S=g&&g>m?g-m:void 0;return{modifiers:u,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:S}};if(t){const o=t+Xh,u=s;s=d=>d.startsWith(o)?u(d.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(a){const o=s;s=u=>a({className:u,parseClassName:o})}return s},Y_=e=>e.endsWith(Wh)?e.substring(0,e.length-1):e.startsWith(Wh)?e.substring(1):e,W_=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const o=[];let u=[];
vendor: 5,063 bytes, line 76
76return s.forEach(d=>{d[0]==="["||t[d]?(o.push(...u.sort(),d),u=[]):u.push(d)}),o.push(...u.sort()),o}},X_=e=>({cache:G_(e.cacheSize),parseClassName:K_(e),sortModifiers:W_(e),...V_(e)}),Z_=/\s+/,Q_=(e,t)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:u}=t,d=[],h=e.trim().split(Z_);let m="";for(let g=h.length-1;g>=0;g-=1){const v=h[g],{isExternal:y,modifiers:b,hasImportantModifier:S,baseClassName:j,maybePostfixModifierPosition:E}=a(v);if(y){m=v+(m.length>0?" "+m:m);continue}let A=!!E,C=s(A?j.substring(0,E):j);if(!C){if(!A){m=v+(m.length>0?" "+m:m);continue}if(C=s(j),!C){m=v+(m.length>0?" "+m:m);continue}A=!1}const k=u(b).join(":"),R=S?k+Wh:k,P=R+C;if(d.includes(P))continue;d.push(P);const M=o(C,A);for(let z=0;z<M.length;++z){const G=M[z];d.push(R+G)}m=v+(m.length>0?" "+m:m)}return m};function J_(){let e=0,t,a,s="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Hw(t))&&(s&&(s+=" "),s+=a);return s}const Hw=e=>{if(typeof e=="string")return e;let t,a="";for(let s=0;s<e.length;s++)e[s]&&(t=Hw(e[s]))&&(a&&(a+=" "),a+=t);return a};function e4(e,...t){let a,s,o,u=d;function d(m){const g=t.reduce((v,y)=>y(v),e());return a=X_(g),s=a.cache.get,o=a.cache.set,u=h,h(m)}function h(m){const g=s(m);if(g)return g;const v=Q_(m,a);return o(m,v),v}return function(){return u(J_.apply(null,arguments))}}const mt=e=>{const t=a=>a[e]||[];return t.isThemeGetter=!0,t},Fw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$w=/^\((?:(\w[\w-]*):)?(.+)\)$/i,t4=/^\d+\/\d+$/,n4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,a4=/\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$/,i4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,s4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,r4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zs=e=>t4.test(e),Ne=e=>!!e&&!Number.isNaN(Number(e)),Ja=e=>!!e&&Number.isInteger(Number(e)),ih=e=>e.endsWith("%")&&Ne(e.slice(0,-1)),xa=e=>n4.test(e),o4=()=>!0,l4=e=>a4.test(e)&&!i4.test(e),Gw=()=>!1,c4=e=>s4.test(e),u4=e=>r4.test(e),d4=e=>!ae(e)&&!ie(e),f4=e=>fr(e,Yw,Gw),ae=e=>Fw.test(e),Fi=e=>fr(e,Ww,l4),sh=e=>fr(e,v4,Ne),Px=e=>fr(e,qw,Gw),h4=e=>fr(e,Kw,u4),Tc=e=>fr(e,Xw,c4),ie=e=>$w.test(e),So=e=>hr(e,Ww),m4=e=>hr(e,y4),Lx=e=>hr(e,qw),p4=e=>hr(e,Yw),g4=e=>hr(e,Kw),Ec=e=>hr(e,Xw,!0),fr=(e,t,a)=>{const s=Fw.exec(e);return s?s[1]?t(s[1]):a(s[2]):!1},hr=(e,t,a=!1)=>{const s=$w.exec(e);return s?s[1]?t(s[1]):a:!1},qw=e=>e==="position"||e==="percentage",Kw=e=>e==="image"||e==="url",Yw=e=>e==="length"||e==="size"||e==="bg-size",Ww=e=>e==="length",v4=e=>e==="number",y4=e=>e==="family-name",Xw=e=>e==="shadow",x4=()=>{const e=mt("color"),t=mt("font"),a=mt("text"),s=mt("font-weight"),o=mt("tracking"),u=mt("leading"),d=mt("breakpoint"),h=mt("container"),m=mt("spacing"),g=mt("radius"),v=mt("shadow"),y=mt("inset-shadow"),b=mt("text-shadow"),S=mt("drop-shadow"),j=mt("blur"),E=mt("perspective"),A=mt("aspect"),C=mt("ease"),k=mt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...P(),ie,ae],z=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],H=()=>[ie,ae,m],$=()=>[zs,"full","auto",...H()],J=()=>[Ja,"none","subgrid",ie,ae],de=()=>["auto",{span:["full",Ja,ie,ae]},Ja,ie,ae],Ee=()=>[Ja,"auto",ie,ae],he=()=>["auto","min","max","fr",ie,ae],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],we=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...H()],ee=()=>[zs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],F=()=>[e,ie,ae],ce=()=>[...P(),Lx,Px,{position:[ie,ae]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",p4,f4,{size:[ie,ae]}],U=()=>[ih,So,Fi],K=()=>["","none","full",g,ie,ae],W=()=>["",Ne,So,Fi],te=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[Ne,ih,Lx,Px],ve=()=>["","none",j,ie,ae],ke=()=>["none",Ne,ie,ae],Se=()=>["none",Ne,ie,ae],Ue=()=>[Ne,ie,ae],_e=()=>[zs,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xa],breakpoint:[xa],color:[o4],container:[xa],"drop-shadow":[xa],ease:["in","out","in-out"],font:[d4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xa],shadow:[xa],spacing:["px",Ne],text:[xa],"text-shadow":[xa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zs,ae,ie,A]}
vendor: 12,870 bytes, line 76
76],container:["container"],columns:[{columns:[Ne,ae,ie,h]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Ja,"auto",ie,ae]}],basis:[{basis:[zs,"full","auto",h,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,zs,"auto","initial","none",ae]}],grow:[{grow:["",Ne,ie,ae]}],shrink:[{shrink:["",Ne,ie,ae]}],order:[{order:[Ja,"first","last","none",ie,ae]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:de()}],"col-start":[{"col-start":Ee()}],"col-end":[{"col-end":Ee()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:de()}],"row-start":[{"row-start":Ee()}],"row-end":[{"row-end":Ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...we(),"normal"]}],"justify-self":[{"justify-self":["auto",...we()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...we(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...we(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...we(),"baseline"]}],"place-self":[{"place-self":["auto",...we()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[h,"screen",...ee()]}],"min-w":[{"min-w":[h,"screen","none",...ee()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",a,So,Fi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ie,sh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ih,ae]}],"font-family":[{font:[m4,ae,t]}],"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,ie,ae]}],"line-clamp":[{"line-clamp":[Ne,"none",ie,sh]}],leading:[{leading:[u,...H()]}],"list-image":[{"list-image":["none",ie,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",ie,Fi]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Ne,"auto",ie,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ae]}],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",ie,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ja,ie,ae],radial:["",ie,ae],conic:[Ja,ie,ae]},g4,h4]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,ie,ae]}],"outline-w":[{outline:["",Ne,So,Fi]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",v,Ec,Tc]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",y,Ec,Tc]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Ne,Fi]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",b,Ec,Tc]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Ne,ie,ae]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"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":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[ie,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ae]}],filter:[{filter:["","none",ie,ae]}],blur:[{blur:ve()}],brightness:[{brightness:[Ne,ie,ae]}],contrast:[{contrast:[Ne,ie,ae]}],"drop-shadow":[{"drop-shadow":["","none",S,Ec,Tc]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Ne,ie,ae]}],"hue-rotate":[{"hue-rotate":[Ne,ie,ae]}],invert:[{invert:["",Ne,ie,ae]}],saturate:[{saturate:[Ne,ie,ae]}],sepia:[{sepia:["",Ne,ie,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ae]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,ie,ae]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,ie,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,ie,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,ie,ae]}],"backdrop-invert":[{"backdrop-invert":["",Ne,ie,ae]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,ie,ae]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,ie,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,ie,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",ie,ae]}],ease:[{ease:["linear","initial",C,ie,ae]}],delay:[{delay:[Ne,ie,ae]}],animate:[{animate:["none",k,ie,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ie,ae]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[ie,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}
vendor: 6,265 bytes, lines 76-90
76],"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",ie,ae]}],"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":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",ie,ae]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Ne,So,Fi,sh]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},b4=e4(x4);function De(...e){return b4(zw(e))}function ap(e){if(!e)return"";const[t,a,s]=e.split("-").map(Number);return!t||!a||!s?e:new Date(t,a-1,s).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}const mr=({className:e,children:t,showRadialGradient:a=!0,...s})=>c.jsx("main",{children:c.jsxs("div",{className:De("relative flex flex-col min-h-screen bg-zinc-50 dark:bg-zinc-900 text-slate-950 transition-bg",e),...s,children:[c.jsx("div",{className:"absolute inset-0 overflow-hidden",children:c.jsx("div",{className:De(` 77 [--white-gradient:repeating-linear-gradient(100deg,var(--white)_0%,var(--white)_7%,var(--transparent)_10%,var(--transparent)_12%,var(--white)_16%)] 78 [--dark-gradient:repeating-linear-gradient(100deg,var(--black)_0%,var(--black)_7%,var(--transparent)_10%,var(--transparent)_12%,var(--black)_16%)] 79 [--aurora:repeating-linear-gradient(100deg,var(--blue-500)_10%,var(--indigo-300)_15%,var(--blue-300)_20%,var(--violet-200)_25%,var(--blue-400)_30%)] 80 [background-image:var(--white-gradient),var(--aurora)] 81 dark:[background-image:var(--dark-gradient),var(--aurora)] 82 [background-size:300%,_200%] 83 [background-position:50%_50%,50%_50%] 84 filter blur-[10px] invert dark:invert-0 85 after:content-[""] after:absolute after:inset-0 after:[background-image:var(--white-gradient),var(--aurora)] 86 after:dark:[background-image:var(--dark-gradient),var(--aurora)] 87 after:[background-size:200%,_100%] 88 after:animate-aurora after:[background-attachment:fixed] after:mix-blend-difference 89 pointer-events-none 90 absolute -inset-[10px] opacity-50 will-change-transform`,a&&"[mask-image:radial-gradient(ellipse_at_100%_0%,black_10%,var(--transparent)_70%)]")}
vendor: 4,148 bytes, lines 90-140
90)}),t]})});/** 91 * @license lucide-react v0.515.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const w4=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),S4=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,s)=>s?s.toUpperCase():a.toLowerCase()),Ix=e=>{const t=S4(e);return t.charAt(0).toUpperCase()+t.slice(1)},Zw=(...e)=>e.filter((t,a,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===a).join(" ").trim(),T4=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** 96 * @license lucide-react v0.515.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */var E4={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"};/** 101 * @license lucide-react v0.515.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const j4=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:o="",children:u,iconNode:d,...h},m)=>x.createElement("svg",{ref:m,...E4,width:t,height:t,stroke:e,strokeWidth:s?Number(a)*24/Number(t):a,className:Zw("lucide",o),...!u&&!T4(h)&&{"aria-hidden":"true"},...h},[...d.map(([g,v])=>x.createElement(g,v)),...Array.isArray(u)?u:[u]]));/** 106 * @license lucide-react v0.515.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const be=(e,t)=>{const a=x.forwardRef(({className:s,...o},u)=>x.createElement(j4,{ref:u,iconNode:t,className:Zw(`lucide-${w4(Ix(e))}`,`lucide-${e}`,s),...o}));return a.displayName=Ix(e),a};/** 111 * @license lucide-react v0.515.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const N4=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ao=be("arrow-left",N4);/** 116 * @license lucide-react v0.515.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const A4=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Qw=be("arrow-right",A4);/** 121 * @license lucide-react v0.515.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const C4=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],_4=be("arrow-up-right",C4);/** 126 * @license lucide-react v0.515.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const R4=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],k4=be("bell",R4);/** 131 * @license lucide-react v0.515.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const M4=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Jw=be("book-open",M4);/** 136 * @license lucide-react v0.515.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const D4=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}
140],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],O4=be("brain-circuit",D4);/** 141 * @license lucide-react v0.515.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const P4=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],e2=be("calendar",P4);/** 146 * @license lucide-react v0.515.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const L4=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],I4=be("check",L4);/** 151 * @license lucide-react v0.515.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const U4=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],t2=be("chevron-down",U4);/** 156 * @license lucide-react v0.515.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const B4=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],n2=be("chevron-right",B4);/** 161 * @license lucide-react v0.515.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const z4=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],V4=be("chevron-up",z4);/** 166 * @license lucide-react v0.515.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const H4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jc=be("circle-check",H4);/** 171 * @license lucide-react v0.515.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const F4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],ip=be("clock",F4);/** 176 * @license lucide-react v0.515.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const $4=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],G4=be("download",$4);/** 181 * @license lucide-react v0.515.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const q4=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],K4=be("earth",q4);/** 186 * @license lucide-react v0.515.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const Y4=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],W4=be("eye",Y4);/** 191 * @license lucide-react v0.515.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const X4=[["circle",{cx:"6",cy:"15",r:"4",key:"vux9w4"}],["circle",{cx:"18",cy:"15",r:"4",key:"18o8ve"}],["path",{d:"M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2",key:"1ag4bs"}],["path",{d:"M2.5 13 5 7c.7-1.3 1.4-2 3-2",key:"1hm1gs"}],["path",{d:"M21.5 13 19 7c-.7-1.3-1.5-2-3-2",key:"1r31ai"}]],Z4=be("glasses",X4);/** 196 * @license lucide-react v0.515.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const Q4=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],rh=be("image",Q4);/** 201 * @license lucide-react v0.515.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree.
205 */const J4=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],e5=be("link-2",J4);/** 206 * @license lucide-react v0.515.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const t5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Co=be("loader-circle",t5);/** 211 * @license lucide-react v0.515.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const n5=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ux=be("log-out",n5);/** 216 * @license lucide-react v0.515.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const a5=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],i5=be("menu",a5);/** 221 * @license lucide-react v0.515.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const s5=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]],r5=be("message-square-text",s5);/** 226 * @license lucide-react v0.515.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const o5=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],l5=be("mic-vocal",o5);/** 231 * @license lucide-react v0.515.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const c5=[["path",{d:"M5.5 20H8",key:"1k40s5"}],["path",{d:"M17 9h.01",key:"1j24nn"}],["rect",{width:"10",height:"16",x:"12",y:"4",rx:"2",key:"ixliua"}],["path",{d:"M8 6H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h4",key:"1mp6e1"}],["circle",{cx:"17",cy:"15",r:"1",key:"tqvash"}]],u5=be("monitor-speaker",c5);/** 236 * @license lucide-react v0.515.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const d5=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],f5=be("play",d5);/** 241 * @license lucide-react v0.515.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const h5=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Bx=be("plus",h5);/** 246 * @license lucide-react v0.515.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const m5=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],zx=be("save",m5);/** 251 * @license lucide-react v0.515.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const p5=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],g5=be("send",p5);/** 256 * @license lucide-react v0.515.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const v5=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],y5=be("settings",v5);/** 261 * @license lucide-react v0.515.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const x5=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
265y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],a2=be("shield-check",x5);/** 266 * @license lucide-react v0.515.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const b5=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],w5=be("sliders-horizontal",b5);/** 271 * @license lucide-react v0.515.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const S5=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Vx=be("sparkles",S5);/** 276 * @license lucide-react v0.515.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const T5=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Zh=be("square-pen",T5);/** 281 * @license lucide-react v0.515.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const E5=[["path",{d:"M12 10V2",key:"16sf7g"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]],j5=be("sunset",E5);/** 286 * @license lucide-react v0.515.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const N5=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],jc=be("trash-2",N5);/** 291 * @license lucide-react v0.515.0 - ISC 292 * 293 * This source code is licensed under the ISC license. 294 * See the LICENSE file in the root directory of this source tree. 295 */const A5=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],Hx=be("undo-2",A5);/** 296 * @license lucide-react v0.515.0 - ISC 297 * 298 * This source code is licensed under the ISC license. 299 * See the LICENSE file in the root directory of this source tree. 300 */const C5=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Fx=be("upload",C5);/** 301 * @license lucide-react v0.515.0 - ISC 302 * 303 * This source code is licensed under the ISC license. 304 * See the LICENSE file in the root directory of this source tree. 305 */const _5=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],sp=be("volume-2",_5);/** 306 * @license lucide-react v0.515.0 - ISC 307 * 308 * This source code is licensed under the ISC license. 309 * See the LICENSE file in the root directory of this source tree. 310 */const R5=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}
310],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],k5=be("wifi-off",R5);/** 311 * @license lucide-react v0.515.0 - ISC 312 * 313 * This source code is licensed under the ISC license. 314 * See the LICENSE file in the root directory of this source tree. 315 */const M5=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],D5=be("wifi",M5);/** 316 * @license lucide-react v0.515.0 - ISC 317 * 318 * This source code is licensed under the ISC license. 319 * See the LICENSE file in the root directory of this source tree. 320 */const O5=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],P5=be("x",O5);/** 321 * @license lucide-react v0.515.0 - ISC 322 * 323 * This source code is licensed under the ISC license. 324 * See the LICENSE file in the root directory of this source tree. 325 */const L5=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],I5=be("youtube",L5);/** 326 * @license lucide-react v0.515.0 - ISC 327 * 328 * This source code is licensed under the ISC license. 329 * See the LICENSE file in the root directory of this source tree. 330 */const U5=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],B5=be("zap",U5);function z5(){const[e,t]=x.useState({isAuthenticated:!1,user:null,loading:!0});x.useEffect(()=>{a()},[]);const a=async()=>{try{const u=await(await fetch("/api/auth/me",{credentials:"include"})).json();u.success?t({isAuthenticated:u.authenticated,user:u.user,loading:!1}):t({isAuthenticated:!1,user:null,loading:!1})}catch(o){console.error("Error checking auth:",o),t({isAuthenticated:!1,user:null,loading:!1})}};return{...e,logout:async()=>{try{await fetch("/api/auth/logout",{method:"POST",credentials:"include"}),t({isAuthenticated:!1,user:null,loading:!1})}catch(o){console.error("Error logging out:",o)}},refreshAuth:a}}function bu(){const[e,t]=x.useState({isBlogAdmin:!1,user:null,loading:!0}),a=async()=>{try{const u=await(await fetch("/api/blog/admin/me",{credentials:"include"})).json();t({isBlogAdmin:!!u.authenticated,user:u.user??null,loading:!1})}catch{t({isBlogAdmin:!1,user:null,loading:!1})}};return x.useEffect(()=>{a()},[]),{...e,logout:async()=>{try{await fetch("/api/blog/admin/logout",{method:"POST",credentials:"include"}),t({isBlogAdmin:!1,user:null,loading:!1})}catch(o){console.error("Blog admin logout error:",o)}},refreshAuth:a}}const Ke={zoom:e=>c.jsx("svg",{role:"img","aria-label":"Zoom",viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M5.033 14.649H.743a.74.74 0 0 1-.686-.458.74.74 0 0 1 .16-.808L3.19 10.41H1.06A1.06 1.06 0 0 1 0 9.35h3.957c.301 0 .57.18.686.458a.74.74 0 0 1-.161.808L1.51 13.59h2.464c.585 0 1.06.475 1.06 1.06zM24 11.338c0-1.14-.927-2.066-2.066-2.066-.61 0-1.158.265-1.537.686a2.061 2.061 0 0 0-1.536-.686c-1.14 0-2.066.926-2.066 2.066v3.311a1.06 1.06 0 0 0 1.06-1.06v-2.251a1.004 1.004 0 0 1 2.013 0v2.251c0 .586.474 1.06 1.06 1.06v-3.311a1.004 1.004 0 0 1 2.012 0v2.251c0 .586.475 1.06 1.06 1.06zM16.265 12a2.728 2.728 0 1 1-5.457 0 2.728 2.728 0 0 1 5.457 0zm-1.06 0a1.669 1.669 0 1 0-3.338 0 1.669 1.669 0 0 0 3.338 0zm-4.82 0a2.728 2.728 0 1 1-5.458 0 2.728 2.728 0 0 1 5.457 0zm-1.06 0a1.669 1.669 0 1 0-3.338 0 1.669 1.669 0 0 0 3.338 0z"})}),webex:e=>c.jsx("svg",{role:"img","aria-label":"Webex",viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M21.78 7.376c.512 1.181.032 2.644-1.11 3.106-2.157.888-3-1.295-3-1.295-.236-.55-.727-1.496-1.335-1.496-.204 0-.503 0-.94.844-.229.443-.434 1.185-.616 1.84l-.09.32c-.373-1.587-.821-3.454-1.536-4.816-.195-.38-.42-.74-.673-1.08a5.135 5.135 0 0 1 1.743-1.337 4.891 4.891 0 0 1 2.112-.463c1.045 0 2.765.338 4.227 2.227.167.206.317.424.448.654.278.441.52.904.726 1.383l.043.113zM.02 8.4C-.15 7.105.8 5.845 1.953 5.755c1.794-.157 2.36 1.385 2.455 1.89l.022.137c.07.44.29 1.838.48 2.744.078.4.244 1.013.353 1.416l.006.022.026.092c.11.4.232.799.362 1.193.185.548.399 1.085.641 1.61.47.955.93 1.45 1.367 1.45.203 0 .512 0 .96-.878.283-.59.512-1.208.684-1.845.373 1.598.811 3.128 1.495 4.456.205.406.444.794.715 1.16a5.124 5.124 0 0 1-1.742 1.338 4.88 4.88 0 0 1-2.112.461c-1.548 0-3.727-.698-5.339-4.005a22.407 22.407 0 0 1-1.078-2.824 26.848 26.848 0 0 1-.693-2.656 48.56 48.56 0 0 1-.215-1.114C.191 9.603.074 8.872.02 8.4zm22.047-2.645-.202-.022h-.052c.222.392.421.797.597 1.215l.053.113c.322.76.346 1.614.068 2.391a3.079 3.079 0 0 1-1.552 1.749 2.93 2.93 0 0 1-1.228.28 3.115 3.115 0 0 1-.854-.135c-.299 1.182-.768 2.634-1.195 3.511-.427.877-.93 1.451-1.378 1.451-.192 0-.501 0-.95-.877a10.746 10.746 0 0 1-.683-1.845 38.722 38.722 0 0 1-.396-1.575 12.67 12.67 0 0 1-.136-.598l-.002-.01c-.406-1.778-.865-3.645-1.655-5.142A8.263 8.263 0 0 0 11.52 4.8a5.136 5.136 0 0 0-1.748-1.34A4.892 4.892 0 0 0 7.654 3c-1.036 0-2.754.338-4.217 2.228.466.223.867.562 1.164.984.305.433.499.933.565 1.458.076.563.256 1.654.47 2.688l.001.007c.021.11.042.221.073.342.126-.34.25-.642.38-.955l.112-.271.128-.293c.235-.55.726-1.496 1.324-1.496.213 0 .513 0 .95.844.296.606.532 1.239.706 1.89.138.507.276 1.047.394 1.587.04.148.07.296.101.444l.006.028c.427 1.879.875 3.69 1.644 5.187.159.317.34.622.545.911.15.215.31.422.48.62 1.27 1.45 2.733 1.8 3.843 1.8 1.548 0 3.738-.698 5.35-4.006.822-1.7 1.515-4.208 1.7
33072-5.48.256-1.27.449-2.419.534-3.115.04-.307.023-.618-.051-.918-.075-.299-.205-.579-.382-.825a2.247 2.247 0 0 0-.653-.607 2.143 2.143 0 0 0-.826-.296z"})}),microsoftTeams:e=>c.jsx("svg",{role:"img","aria-label":"Microsoft Teams",viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M20.625 8.127q-.55 0-1.025-.205-.475-.205-.832-.563-.358-.357-.563-.832Q18 6.053 18 5.502q0-.54.205-1.02t.563-.837q.357-.358.832-.563.474-.205 1.025-.205.54 0 1.02.205t.837.563q.358.357.563.837.205.48.205 1.02 0 .55-.205 1.025-.205.475-.563.832-.357.358-.837.563-.48.205-1.02.205zm0-3.75q-.469 0-.797.328-.328.328-.328.797 0 .469.328.797.328.328.797.328.469 0 .797-.328.328-.328.328-.797 0-.469-.328-.797-.328-.328-.797-.328zM24 10.002v5.578q0 .774-.293 1.46-.293.685-.803 1.194-.51.51-1.195.803-.686.293-1.459.293-.445 0-.908-.105-.463-.106-.85-.329-.293.95-.855 1.729-.563.78-1.319 1.336-.756.557-1.67.861-.914.305-1.898.305-1.148 0-2.162-.398-1.014-.399-1.805-1.102-.79-.703-1.312-1.664t-.674-2.086h-5.8q-.411 0-.704-.293T0 16.881V6.873q0-.41.293-.703t.703-.293h8.59q-.34-.715-.34-1.5 0-.727.275-1.365.276-.639.75-1.114.475-.474 1.114-.75.638-.275 1.365-.275t1.365.275q.639.276 1.114.75.474.475.75 1.114.275.638.275 1.365t-.275 1.365q-.276.639-.75 1.113-.475.475-1.114.75-.638.276-1.365.276-.188 0-.375-.024-.188-.023-.375-.058v1.078h10.875q.469 0 .797.328.328.328.328.797zM12.75 2.373q-.41 0-.78.158-.368.158-.638.434-.27.275-.428.639-.158.363-.158.773 0 .41.158.78.159.368.428.638.27.27.639.428.369.158.779.158.41 0 .773-.158.364-.159.64-.428.274-.27.433-.639.158-.369.158-.779 0-.41-.158-.773-.159-.364-.434-.64-.275-.275-.639-.433-.363-.158-.773-.158zM6.937 9.814h2.25V7.94H2.814v1.875h2.25v6h1.875zm10.313 7.313v-6.75H12v6.504q0 .41-.293.703t-.703.293H8.309q.152.809.556 1.5.405.691.985 1.19.58.497 1.318.779.738.281 1.582.281.926 0 1.746-.352.82-.351 1.436-.966.615-.616.966-1.43.352-.815.352-1.752zm5.25-1.547v-5.203h-3.75v6.855q.305.305.691.452.387.146.809.146.469 0 .879-.176.41-.175.715-.48.304-.305.48-.715t.176-.879Z"})}),googleMeet:e=>c.jsx("svg",{role:"img","aria-label":"Google Meet",viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M5.53 2.13 0 7.75h5.53zm.398 0v5.62h7.608v3.65l5.47-4.45c-.014-1.22.031-2.25-.025-3.46-.148-1.09-1.287-1.47-2.236-1.36zM23.1 4.32c-.802.295-1.358.995-2.047 1.49-2.506 2.05-4.982 4.12-7.468 6.19 3.025 2.59 6.04 5.18 9.065 7.76 1.218.671 1.428-.814 1.328-1.64v-13a.828.828 0 0 0-.877-.825zM.038 8.15v7.7h5.53v-7.7zm13.577 8.1H6.008v5.62c3.864-.006 7.737.011 11.58-.009 1.02-.07 1.618-1.12 1.468-2.07v-2.51l-5.47-4.68v3.65zm-13.577 0c.02 1.44-.041 2.88.033 4.31.162.948 1.158 1.43 2.047 1.31h3.464v-5.62z"})}),youtube:e=>c.jsx("svg",{role:"img","aria-label":"YouTube",viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})}),spotify:e=>c.jsx("svg",{role:"img","aria-label":"Spotify",viewBox:"0 0 24 24",...e,children:c.jsx("path",{fill:"currentColor",d:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"})}),bluetooth:e=>c.jsx("svg",{role:"img","aria-label":"Bluetooth",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:c.jsx("path",{d:"m7 7 10 10-5 5V2l5 5L7 17"})}),sealMark:e=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200",...e,children:[c.jsx("circle",{cx:"90",cy:"100",r:"55",stroke:"#5E4AE3",strokeWidth:"26",fill:"none"}),c.jsx("circle",{cx:"118",cy:"112",r:"55",stroke:"#5E4AE3",strokeWidth:"26",fill:"none",opacity:"0.55"})]}),gitHub:e=>c.jsx("svg",{viewBox:"0 0 24 24",...e,children:c.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})}),instagram:e=>c.jsx("svg",{viewBox:"0 0 24 24",...e,children:c.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259
3300-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),apple:e=>c.jsx("svg",{role:"img",viewBox:"0 0 24 24",...e,children:c.jsx("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",fill:"currentColor"})}),spinner:e=>c.jsx("svg",{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",...e,children:c.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}),check:e=>c.jsx("svg",{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",...e,children:c.jsx("polyline",{points:"20 6 9 17 4 12"})})};function V5(e,t){const a=x.createContext(t),s=u=>{const{children:d,...h}=u,m=x.useMemo(()=>h,Object.values(h));return c.jsx(a.Provider,{value:m,children:d})};s.displayName=e+"Provider";function o(u){const d=x.useContext(a);if(d)return d;if(t!==void 0)return t;throw new Error(`\`${u}\` must be used within \`${e}\``)}return[s,o]}function ns(e,t=[]){let a=[];function s(u,d){const h=x.createContext(d),m=a.length;a=[...a,d];const g=y=>{var C;const{scope:b,children:S,...j}=y,E=((C=b==null?void 0:b[e])==null?void 0:C[m])||h,A=x.useMemo(()=>j,Object.values(j));return c.jsx(E.Provider,{value:A,children:S})};g.displayName=u+"Provider";function v(y,b){var E;const S=((E=b==null?void 0:b[e])==null?void 0:E[m])||h,j=x.useContext(S);if(j)return j;if(d!==void 0)return d;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[g,v]}const o=()=>{const u=a.map(d=>x.createContext(d));return function(h){const m=(h==null?void 0:h[e])||u;return x.useMemo(()=>({[`__scope${e}`]:{...h,[e]:m}}),[h,m])}};return o.scopeName=e,[s,H5(o,...t)]}function H5(...e){const t=e[0];if(e.length===1)return t;const a=()=>{const s=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const d=s.reduce((h,{useScope:m,scopeName:g})=>{const y=m(u)[`__scope${g}`];return{...h,...y}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:d}),[d])}};return a.scopeName=t.scopeName,a}function $x(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rp(...e){return t=>{let a=!1;const s=e.map(o=>{const u=$x(o,t);return!a&&typeof u=="function"&&(a=!0),u});if(a)return()=>{for(let o=0;o<s.length;o++){const u=s[o];typeof u=="function"?u():$x(e[o],null)}}}}function ut(...e){return x.useCallback(rp(...e),e)}function kt(e){const t=F5(e),a=x.forwardRef((s,o)=>{const{children:u,...d}=s,h=x.Children.toArray(u),m=h.find(G5);if(m){const g=m.props.children,v=h.map(y=>y===m?x.Children.count(g)>1?x.Children.only(null):x.isValidElement(g)?g.props.children:null:y);return c.jsx(t,{...d,ref:o,children:x.isValidElement(g)?x.cloneElement(g,void 0,v):null})}return c.jsx(t,{...d,ref:o,children:u})});return a.displayName=`${e}.Slot`,a}var i2=kt("Slot");function F5(e){const t=x.forwardRef((a,s)=>{const{children:o,...u}=a;if(x.isValidElement(o)){const d=K5(o),h=q5(u,o.props);return o.type!==x.Fragment&&(h.ref=s?rp(s,d):d),x.cloneElement(o,h)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var s2=Symbol("radix.slottable");function $5(e){const t=({children:a})=>c.jsx(c.Fragment,{children:a});return t.displayName=`${e}.Slottable`,t.__radixId=s2,t}function G5(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===s2}function q5(e,t){const a={...t};for(const s in t){const o=e[s],u=t[s];/^on[A-Z]/.test(s)?o&&u?a[s]=(...h)=>{const m=u(...h);return o(...h),m}:o&&(a[s]=o):s==="style"?a[s]={...o,...u}
vendor: 8,502 bytes, line 330
330:s==="className"&&(a[s]=[o,u].filter(Boolean).join(" "))}return{...e,...a}}function K5(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}function op(e){const t=e+"CollectionProvider",[a,s]=ns(t),[o,u]=a(t,{collectionRef:{current:null},itemMap:new Map}),d=E=>{const{scope:A,children:C}=E,k=Fe.useRef(null),R=Fe.useRef(new Map).current;return c.jsx(o,{scope:A,itemMap:R,collectionRef:k,children:C})};d.displayName=t;const h=e+"CollectionSlot",m=kt(h),g=Fe.forwardRef((E,A)=>{const{scope:C,children:k}=E,R=u(h,C),P=ut(A,R.collectionRef);return c.jsx(m,{ref:P,children:k})});g.displayName=h;const v=e+"CollectionItemSlot",y="data-radix-collection-item",b=kt(v),S=Fe.forwardRef((E,A)=>{const{scope:C,children:k,...R}=E,P=Fe.useRef(null),M=ut(A,P),z=u(v,C);return Fe.useEffect(()=>(z.itemMap.set(P,{ref:P,...R}),()=>void z.itemMap.delete(P))),c.jsx(b,{[y]:"",ref:M,children:k})});S.displayName=v;function j(E){const A=u(e+"CollectionConsumer",E);return Fe.useCallback(()=>{const k=A.collectionRef.current;if(!k)return[];const R=Array.from(k.querySelectorAll(`[${y}]`));return Array.from(A.itemMap.values()).sort((z,G)=>R.indexOf(z.ref.current)-R.indexOf(G.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:d,Slot:g,ItemSlot:S},j,s]}function Le(e,t,{checkForDefaultPrevented:a=!0}={}){return function(o){if(e==null||e(o),a===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var Sn=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},Y5=Xm[" useInsertionEffect ".trim().toString()]||Sn;function as({prop:e,defaultProp:t,onChange:a=()=>{},caller:s}){const[o,u,d]=W5({defaultProp:t,onChange:a}),h=e!==void 0,m=h?e:o;{const v=x.useRef(e!==void 0);x.useEffect(()=>{const y=v.current;y!==h&&console.warn(`${s} is changing from ${y?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=h},[h,s])}const g=x.useCallback(v=>{var y;if(h){const b=X5(v)?v(e):v;b!==e&&((y=d.current)==null||y.call(d,b))}else u(v)},[h,e,u,d]);return[m,g]}function W5({defaultProp:e,onChange:t}){const[a,s]=x.useState(e),o=x.useRef(a),u=x.useRef(t);return Y5(()=>{u.current=t},[t]),x.useEffect(()=>{var d;o.current!==a&&((d=u.current)==null||d.call(u,a),o.current=a)},[a,o]),[a,s,u]}function X5(e){return typeof e=="function"}var Z5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],r2=Z5.reduce((e,t)=>{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),Q5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lp=Q5.reduce((e,t)=>{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function J5(e,t){return x.useReducer((a,s)=>t[a][s]??a,e)}var ea=e=>{const{present:t,children:a}=e,s=e3(t),o=typeof a=="function"?a({present:s.isPresent}):x.Children.only(a),u=ut(s.ref,t3(o));return typeof a=="function"||s.isPresent?x.cloneElement(o,{ref:u}):null};ea.displayName="Presence";function e3(e){const[t,a]=x.useState(),s=x.useRef(null),o=x.useRef(e),u=x.useRef("none"),d=e?"mounted":"unmounted",[h,m]=J5(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const g=Nc(s.current);u.current=h==="mounted"?g:"none"},[h]),Sn(()=>{const g=s.current,v=o.current;if(v!==e){const b=u.current,S=Nc(g);e?m("MOUNT"):S==="none"||(g==null?void 0:g.display)==="none"?m("UNMOUNT"):m(v&&b!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),Sn(()=>{if(t){let g;const v=t.ownerDocument.defaultView??window,y=S=>{const E=Nc(s.current).includes(S.animationName);if(S.target===t&&E&&(m("ANIMATION_END"),!o.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",g=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},b=S=>{S.target===t&&(u.current=Nc(s.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{v.clearTimeout(g),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:x.useCallback(g=>{s.current=g?getComputedStyle(g):null,a(g)},[])}}function Nc(e){return(e==null?void 0:e.animationName)||"none"}function t3(e){var s,o;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var n3=Xm[" useId ".trim().toString()]||(()=>{}),a3=0;function ci(e){const[t,a]=x.useState(n3());return Sn(()=>{a(s=>s??String(a3++))},[e]),t?`radix-${t}`:""}var wu="Collapsible",[i3,o2]=ns(wu),[s3,cp]=i3(wu),l2=x.forwardRef((e,t)=>{const{__scopeCollapsible:a,open:s,defaultOpen:o,disabled:u,onOpenChange:d,...h}=e,[m,g]=as({prop:s,defaultProp:o??!1,onChange:d,caller:wu});return c.jsx(s3,{scope:a,disabled:u,contentId:ci(),open:m,onOpenToggle:x.useCallback(()=>g(v=>!v),[g]),children:c.jsx(lp.div,{"data-state":dp(m),"data-disabled":u?"":void 0,...h,ref:t})})});l2.displayName=wu;var c2="CollapsibleTrigger",u2=x.forwardRef((e,t)=>{const{__scopeCollapsible:a,...s}=e,o=cp(c2,a);return c.jsx(lp.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":dp(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...s,ref:t,onClick:Le(e.onClick,o.onOpenToggle)})});u2.displayName=c2;var up="CollapsibleContent",d2=x.forwardRef((e,t)=>{const{forceMount:a,...s}=e,o=cp(up,e.__scopeCollapsible);return c.jsx(ea,{present:a||o.open,children:({present:u})=>c.jsx(r3,{...s,ref:t,present:u})})});d2.displayName=up;var r3=x.forwardRef((e,t)=>{const{__scopeCollapsible:a,present:s,children:o,...u}=e,d=cp(up,a),[h,m]=x.useState(s),g=x.useRef(null),v=ut(t,g),y=x.useRef(0),b=y.current,S=x.useRef(0),j=S.current,E=d.open||h,A=x.useRef(E),C=x.useRef(void 0);return x.useEffect(()=>{const k=requestAnimationFrame(()=>A.current=!1);return()=>cancelAnimationFrame(k)},[]),Sn(()=>{const k=g.current;if(k){C.current=C.current||{transitionDuration:k.style.transitionDuration,animationName:k.style.animationName},k.style.transitionDuration="0s",k.style.animationName="none";const R=k.getBoundingClientRect();y.current=R.height,S.current=R.width,A.current||(k.style.transitionDuration=C.current.transitionDuration,k.style.animationName=C.current.animationName),m(s)}},[d.open,s]),c.jsx(lp.div,{"data-state":dp(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!E,...u,ref:v,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":j?`${j}px`:void 0,...e.style},children:E&&o})});function dp(e){return e?"open":"closed"}var o3=l2,l3=u2,c3=d2,u3=x.createContext(void 0);function f2(e){const t=x.useContext(u3);return e||t||"ltr"}var On="Accordion",d3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[fp,f3,h3]=op(On),[Su]=ns(On,[h3,o2]),hp=o2(),h2=Fe.forwardRef((e,t)=>{const{type:a,...s}=e,o=s,u=s;return c.jsx(fp.Provider,{scope:e.__scopeAccordion,children:a==="multiple"?c.jsx(v3,{...u,ref:t}):c.jsx(g3,{...o,ref:t})})});h2.displayName=On;var[m2,m3]=Su(On),[p2,p3]=Su(On,{collapsible:!1}),g3=Fe.forwardRef((e,t)=>{const{value:a,defaultValue:s,onValueChange:o=()=>{},collapsible:u=!1,...d}=e,[h,m]=as({prop:a,defaultProp:s??"",onChange:o,caller:On});return c.jsx(m2,{scope:e.__scopeAccordion,value:Fe.useMemo(()=>h?[h]:[],[h]),onItemOpen:m,onItemClose:Fe.useCallback(()=>u&&m(""),[u,m]),children:c.jsx(p2,{scope:e.__scopeAccordion,collapsible:u,children:c.jsx(g2,{...d,ref:t})})})}),v3=Fe.forwardRef((e,t)=>
330{const{value:a,defaultValue:s,onValueChange:o=()=>{},...u}=e,[d,h]=as({prop:a,defaultProp:s??[],onChange:o,caller:On}),m=Fe.useCallback(v=>h((y=[])=>[...y,v]),[h]),g=Fe.useCallback(v=>h((y=[])=>y.filter(b=>b!==v)),[h]);return c.jsx(m2,{scope:e.__scopeAccordion,value:d,onItemOpen:m,onItemClose:g,children:c.jsx(p2,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(g2,{...u,ref:t})})})}),[y3,Tu]=Su(On),g2=Fe.forwardRef((e,t)=>{const{__scopeAccordion:a,disabled:s,dir:o,orientation:u="vertical",...d}=e,h=Fe.useRef(null),m=ut(h,t),g=f3(a),y=f2(o)==="ltr",b=Le(e.onKeyDown,S=>{var H;if(!d3.includes(S.key))return;const j=S.target,E=g().filter($=>{var J;return!((J=$.ref.current)!=null&&J.disabled)}),A=E.findIndex($=>$.ref.current===j),C=E.length;if(A===-1)return;S.preventDefault();let k=A;const R=0,P=C-1,M=()=>{k=A+1,k>P&&(k=R)},z=()=>{k=A-1,k<R&&(k=P)};switch(S.key){case"Home":k=R;break;case"End":k=P;break;case"ArrowRight":u==="horizontal"&&(y?M():z());break;case"ArrowDown":u==="vertical"&&M();break;case"ArrowLeft":u==="horizontal"&&(y?z():M());break;case"ArrowUp":u==="vertical"&&z();break}const G=k%C;(H=E[G].ref.current)==null||H.focus()});return c.jsx(y3,{scope:a,disabled:s,direction:o,orientation:u,children:c.jsx(fp.Slot,{scope:a,children:c.jsx(r2.div,{...d,"data-orientation":u,ref:m,onKeyDown:s?void 0:b})})})}),eu="AccordionItem",[x3,mp]=Su(eu),v2=Fe.forwardRef((e,t)=>{const{__scopeAccordion:a,value:s,...o}=e,u=Tu(eu,a),d=m3(eu,a),h=hp(a),m=ci(),g=s&&d.value.includes(s)||!1,v=u.disabled||e.disabled;return c.jsx(x3,{scope:a,open:g,disabled:v,triggerId:m,children:c.jsx(o3,{"data-orientation":u.orientation,"data-state":T2(g),...h,...o,ref:t,disabled:v,open:g,onOpenChange:y=>{y?d.onItemOpen(s):d.onItemClose(s)}})})});v2.displayName=eu;var y2="AccordionHeader",x2=Fe.forwardRef((e,t)=>{const{__scopeAccordion:a,...s}=e,o=Tu(On,a),u=mp(y2,a);return c.jsx(r2.h3,{"data-orientation":o.orientation,"data-state":T2(u.open),"data-disabled":u.disabled?"":void 0,...s,ref:t})});x2.displayName=y2;var Qh="AccordionTrigger",b2=Fe.forwardRef((e,t)=>{const{__scopeAccordion:a,...s}=e,o=Tu(On,a),u=mp(Qh,a),d=p3(Qh,a),h=hp(a);return c.jsx(fp.ItemSlot,{scope:a,children:c.jsx(l3,{"aria-disabled":u.open&&!d.collapsible||void 0,"data-orientation":o.orientation,id:u.triggerId,...h,...s,ref:t})})});b2.displayName=Qh;var w2="AccordionContent",S2=Fe.forwardRef((e,t)=>{const{__scopeAccordion:a,...s}=e,o=Tu(On,a),u=mp(w2,a),d=hp(a);return c.jsx(c3,{role:"region","aria-labelledby":u.triggerId,"data-orientation":o.orientation,...d,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});S2.displayName=w2;function T2(e){return e?"open":"closed"}var b3=h2,w3=v2,S3=x2,T3=b2,E3=S2;const E2=b3,pp=x.forwardRef(({className:e,...t},a)=>c.jsx(w3,{ref:a,className:De("border-b",e),...t}));pp.displayName="AccordionItem";const gp=x.forwardRef(({className:e,children:t,...a},s)=>c.jsx(S3,{className:"flex",children:c.jsxs(T3,{ref:s,className:De("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,c.jsx(t2,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));gp.displayName="AccordionTrigger";const vp=x.forwardRef(({className:e,children:t,...a},s)=>c.jsx(E3,{ref:s,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:c.jsx("div",{className:De("pb-4 pt-0",e),children:t})}));vp.displayName="AccordionContent";const Gx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qx=zw,pr=(e,t)=>a=>{var s;if((t==null?void 0:t.variants)==null)return qx(e,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:o,defaultVariants:u}=t,d=Object.keys(o).map(g=>{const v=a==null?void 0:a[g],y=u==null?void 0:u[g];if(v===null)return null;const b=Gx(v)||Gx(y);return o[g][b]}),h=a&&Object.entries(a).reduce((g,v)=>{let[y,b]=v;return b===void 0||(g[y]=b),g},{}),m=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((g,v)=>{let{class:y,className:b,...S}=v;return Object.entries(S).every(j=>{let[E,A]=j;return Array.isArray(A)?A.includes({...u,...h}[E]):{...u,...h}[E]===A})?[...g,y,b]:g},[]);return qx(e,d,m,a==null?void 0:a.class,a==null?void 0:a.className)},j3=pr("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-medium transition-colors outline-offset-2 focus-visible:outline focus-visible:outline-2 focus-visible:outline-ring/70 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm shadow-black/5 hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm shadow-black/5 hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm shadow-black/5 hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm shadow-black/5 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-lg px-3 text-xs",lg:"h-10 rounded-lg px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ie=x.forwardRef(({className:e,variant:t,size:a,asChild:s=!1,...o},u)=>{const d=s?i2:"button";return c.jsx(d,{className:De(j3({variant:t,size:a,className:e})),ref:u,...o})});Ie.displayName="Button";function N3(e,t){if(e==null)return{};var a={},s=Object.keys(e),o,u;for(u=0;
vendor: 5,703 bytes, line 330
330u<s.length;u++)o=s[u],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}var A3=["color"],C3=x.forwardRef(function(e,t){var a=e.color,s=a===void 0?"currentColor":a,o=N3(e,A3);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),x.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),_3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rn=_3.reduce((e,t)=>{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function Kx(e,t){e&&yu.flushSync(()=>e.dispatchEvent(t))}var R3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],j2=R3.reduce((e,t)=>{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function k3(e,t){e&&yu.flushSync(()=>e.dispatchEvent(t))}function Zt(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...a)=>{var s;return(s=t.current)==null?void 0:s.call(t,...a)},[])}function M3(e,t=globalThis==null?void 0:globalThis.document){const a=Zt(e);x.useEffect(()=>{const s=o=>{o.key==="Escape"&&a(o)};return t.addEventListener("keydown",s,{capture:!0}),()=>t.removeEventListener("keydown",s,{capture:!0})},[a,t])}var D3="DismissableLayer",Jh="dismissableLayer.update",O3="dismissableLayer.pointerDownOutside",P3="dismissableLayer.focusOutside",Yx,N2=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Eu=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:d,onDismiss:h,...m}=e,g=x.useContext(N2),[v,y]=x.useState(null),b=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=x.useState({}),j=ut(t,G=>y(G)),E=Array.from(g.layers),[A]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),C=E.indexOf(A),k=v?E.indexOf(v):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,P=k>=C,M=U3(G=>{const H=G.target,$=[...g.branches].some(J=>J.contains(H));!P||$||(o==null||o(G),d==null||d(G),G.defaultPrevented||h==null||h())},b),z=B3(G=>{const H=G.target;[...g.branches].some(J=>J.contains(H))||(u==null||u(G),d==null||d(G),G.defaultPrevented||h==null||h())},b);return M3(G=>{k===g.layers.size-1&&(s==null||s(G),!G.defaultPrevented&&h&&(G.preventDefault(),h()))},b),x.useEffect(()=>{if(v)return a&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Yx=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(v)),g.layers.add(v),Wx(),()=>{a&&g.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Yx)}},[v,b,a,g]),x.useEffect(()=>()=>{v&&(g.layers.delete(v),g.layersWithOutsidePointerEventsDisabled.delete(v),Wx())},[v,g]),x.useEffect(()=>{const G=()=>S({});return document.addEventListener(Jh,G),()=>document.removeEventListener(Jh,G)},[]),c.jsx(j2.div,{...m,ref:j,style:{pointerEvents:R?P?"auto":"none":void 0,...e.style},onFocusCapture:Le(e.onFocusCapture,z.onFocusCapture),onBlurCapture:Le(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:Le(e.onPointerDownCapture,M.onPointerDownCapture)})});Eu.displayName=D3;var L3="DismissableLayerBranch",I3=x.forwardRef((e,t)=>{const a=x.useContext(N2),s=x.useRef(null),o=ut(t,s);return x.useEffect(()=>{const u=s.current;if(u)return a.branches.add(u),()=>{a.branches.delete(u)}},[a.branches]),c.jsx(j2.div,{...e,ref:o})});I3.displayName=L3;function U3(e,t=globalThis==null?void 0:globalThis.document){const a=Zt(e),s=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const u=h=>{if(h.target&&!s.current){let m=function(){A2(O3,a,g,{discrete:!0})};const g={originalEvent:h};h.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);s.current=!1},d=window.setTimeout(()=>{t.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),t.removeEventListener("pointerdown",u),t.removeEventListener("click",o.current)}},[t,a]),{onPointerDownCapture:()=>s.current=!0}}function B3(e,t=globalThis==null?void 0:globalThis.document){const a=Zt(e),s=x.useRef(!1);return x.useEffect(()=>{const o=u=>{u.target&&!s.current&&A2(P3,a,{originalEvent:u},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,a]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Wx(){const e=new CustomEvent(Jh);document.dispatchEvent(e)}function A2(e,t,a,{discrete:s}){const o=a.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&o.addEventListener(e,t,{once:!0}),s?k3(o,u):o.dispatchEvent(u)}function z3(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var V3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H3=V3.reduce((e,t)=>
vendor: 4,407 bytes, line 330
330{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),F3=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),$3="VisuallyHidden",C2=x.forwardRef((e,t)=>c.jsx(H3.span,{...e,ref:t,style:{...F3,...e.style}}));C2.displayName=$3;var _2=C2,is="NavigationMenu",[yp,R2,G3]=op(is),[em,q3,K3]=op(is),[xp]=ns(is,[G3,K3]),[Y3,Tn]=xp(is),[W3,X3]=xp(is),k2=x.forwardRef((e,t)=>{const{__scopeNavigationMenu:a,value:s,onValueChange:o,defaultValue:u,delayDuration:d=200,skipDelayDuration:h=300,orientation:m="horizontal",dir:g,...v}=e,[y,b]=x.useState(null),S=ut(t,$=>b($)),j=f2(g),E=x.useRef(0),A=x.useRef(0),C=x.useRef(0),[k,R]=x.useState(!0),[P,M]=as({prop:s,onChange:$=>{const J=$!=="",de=h>0;J?(window.clearTimeout(C.current),de&&R(!1)):(window.clearTimeout(C.current),C.current=window.setTimeout(()=>R(!0),h)),o==null||o($)},defaultProp:u??"",caller:is}),z=x.useCallback(()=>{window.clearTimeout(A.current),A.current=window.setTimeout(()=>M(""),150)},[M]),G=x.useCallback($=>{window.clearTimeout(A.current),M($)},[M]),H=x.useCallback($=>{P===$?window.clearTimeout(A.current):E.current=window.setTimeout(()=>{window.clearTimeout(A.current),M($)},d)},[P,M,d]);return x.useEffect(()=>()=>{window.clearTimeout(E.current),window.clearTimeout(A.current),window.clearTimeout(C.current)},[]),c.jsx(M2,{scope:a,isRootMenu:!0,value:P,dir:j,orientation:m,rootNavigationMenu:y,onTriggerEnter:$=>{window.clearTimeout(E.current),k?H($):G($)},onTriggerLeave:()=>{window.clearTimeout(E.current),z()},onContentEnter:()=>window.clearTimeout(A.current),onContentLeave:z,onItemSelect:$=>{M(J=>J===$?"":$)},onItemDismiss:()=>M(""),children:c.jsx(Rn.nav,{"aria-label":"Main","data-orientation":m,dir:j,...v,ref:S})})});k2.displayName=is;var tm="NavigationMenuSub",Z3=x.forwardRef((e,t)=>{const{__scopeNavigationMenu:a,value:s,onValueChange:o,defaultValue:u,orientation:d="horizontal",...h}=e,m=Tn(tm,a),[g,v]=as({prop:s,onChange:o,defaultProp:u??"",caller:tm});return c.jsx(M2,{scope:a,isRootMenu:!1,value:g,dir:m.dir,orientation:d,rootNavigationMenu:m.rootNavigationMenu,onTriggerEnter:y=>v(y),onItemSelect:y=>v(y),onItemDismiss:()=>v(""),children:c.jsx(Rn.div,{"data-orientation":d,...h,ref:t})})});Z3.displayName=tm;var M2=e=>{const{scope:t,isRootMenu:a,rootNavigationMenu:s,dir:o,orientation:u,children:d,value:h,onItemSelect:m,onItemDismiss:g,onTriggerEnter:v,onTriggerLeave:y,onContentEnter:b,onContentLeave:S}=e,[j,E]=x.useState(null),[A,C]=x.useState(new Map),[k,R]=x.useState(null);return c.jsx(Y3,{scope:t,isRootMenu:a,rootNavigationMenu:s,value:h,previousValue:z3(h),baseId:ci(),dir:o,orientation:u,viewport:j,onViewportChange:E,indicatorTrack:k,onIndicatorTrackChange:R,onTriggerEnter:Zt(v),onTriggerLeave:Zt(y),onContentEnter:Zt(b),onContentLeave:Zt(S),onItemSelect:Zt(m),onItemDismiss:Zt(g),onViewportContentChange:x.useCallback((P,M)=>{C(z=>(z.set(P,M),new Map(z)))},[]),onViewportContentRemove:x.useCallback(P=>{C(M=>M.has(P)?(M.delete(P),new Map(M)):M)},[]),children:c.jsx(yp.Provider,{scope:t,children:c.jsx(W3,{scope:t,items:A,children:d})})})},D2="NavigationMenuList",O2=x.forwardRef((e,t)=>{const{__scopeNavigationMenu:a,...s}=e,o=Tn(D2,a),u=c.jsx(Rn.ul,{"data-orientation":o.orientation,...s,ref:t});return c.jsx(Rn.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:c.jsx(yp.Slot,{scope:a,children:o.isRootMenu?c.jsx($2,{asChild:!0,children:u}):u})})});O2.displayName=D2;var P2="NavigationMenuItem",[Q3,L2]=xp(P2),I2=x.forwardRef((e,t)=>{const{__scopeNavigationMenu:a,value:s,...o}=e,u=ci(),d=s||u||"LEGACY_REACT_AUTO_VALUE",h=x.useRef(null),m=x.useRef(null),g=x.useRef(null),v=x.useRef(()=>{}),y=x.useRef(!1),b=x.useCallback((j="start")=>{if(h.current){v.current();const E=am(h.current);E.length&&Sp(j==="start"?E:E.reverse())}},[]),S=x.useCallback(()=>{if(h.current){const j=am(h.current);j.length&&(v.current=sR(j))}},[]);return c.jsx(Q3,{scope:a,value:d,triggerRef:m,contentRef:h,focusProxyRef:g,wasEscapeCloseRef:y,onEntryKeyDown:b,onFocusProxyEnter:b,onRootContentClose:S,onContentFocusOutside:S,children:c.jsx(Rn.li,{...o,ref:t})})});I2.displayName=P2;var nm="NavigationMenuTrigger",U2=x.forwardRef((e,t)=>
vendor: 4,617 bytes, line 330
330{const{__scopeNavigationMenu:a,disabled:s,...o}=e,u=Tn(nm,e.__scopeNavigationMenu),d=L2(nm,e.__scopeNavigationMenu),h=x.useRef(null),m=ut(h,d.triggerRef,t),g=q2(u.baseId,d.value),v=K2(u.baseId,d.value),y=x.useRef(!1),b=x.useRef(!1),S=d.value===u.value;return c.jsxs(c.Fragment,{children:[c.jsx(yp.ItemSlot,{scope:a,value:d.value,children:c.jsx(G2,{asChild:!0,children:c.jsx(Rn.button,{id:g,disabled:s,"data-disabled":s?"":void 0,"data-state":Tp(S),"aria-expanded":S,"aria-controls":v,...o,ref:m,onPointerEnter:Le(e.onPointerEnter,()=>{b.current=!1,d.wasEscapeCloseRef.current=!1}),onPointerMove:Le(e.onPointerMove,tu(()=>{s||b.current||d.wasEscapeCloseRef.current||y.current||(u.onTriggerEnter(d.value),y.current=!0)})),onPointerLeave:Le(e.onPointerLeave,tu(()=>{s||(u.onTriggerLeave(),y.current=!1)})),onClick:Le(e.onClick,()=>{u.onItemSelect(d.value),b.current=S}),onKeyDown:Le(e.onKeyDown,j=>{const A={horizontal:"ArrowDown",vertical:u.dir==="rtl"?"ArrowLeft":"ArrowRight"}[u.orientation];S&&j.key===A&&(d.onEntryKeyDown(),j.preventDefault())})})})}),S&&c.jsxs(c.Fragment,{children:[c.jsx(_2,{"aria-hidden":!0,tabIndex:0,ref:d.focusProxyRef,onFocus:j=>{const E=d.contentRef.current,A=j.relatedTarget,C=A===h.current,k=E==null?void 0:E.contains(A);(C||!k)&&d.onFocusProxyEnter(C?"start":"end")}}),u.viewport&&c.jsx("span",{"aria-owns":v})]})]})});U2.displayName=nm;var J3="NavigationMenuLink",Xx="navigationMenu.linkSelect",B2=x.forwardRef((e,t)=>{const{__scopeNavigationMenu:a,active:s,onSelect:o,...u}=e;return c.jsx(G2,{asChild:!0,children:c.jsx(Rn.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...u,ref:t,onClick:Le(e.onClick,d=>{const h=d.target,m=new CustomEvent(Xx,{bubbles:!0,cancelable:!0});if(h.addEventListener(Xx,g=>o==null?void 0:o(g),{once:!0}),Kx(h,m),!m.defaultPrevented&&!d.metaKey){const g=new CustomEvent(Uc,{bubbles:!0,cancelable:!0});Kx(h,g)}},{checkForDefaultPrevented:!1})})})});B2.displayName=J3;var bp="NavigationMenuIndicator",z2=x.forwardRef((e,t)=>{const{forceMount:a,...s}=e,o=Tn(bp,e.__scopeNavigationMenu),u=!!o.value;return o.indicatorTrack?Aw.createPortal(c.jsx(ea,{present:a||u,children:c.jsx(eR,{...s,ref:t})}),o.indicatorTrack):null});z2.displayName=bp;var eR=x.forwardRef((e,t)=>{const{__scopeNavigationMenu:a,...s}=e,o=Tn(bp,a),u=R2(a),[d,h]=x.useState(null),[m,g]=x.useState(null),v=o.orientation==="horizontal",y=!!o.value;x.useEffect(()=>{var E;const j=(E=u().find(A=>A.value===o.value))==null?void 0:E.ref.current;j&&h(j)},[u,o.value]);const b=()=>{d&&g({size:v?d.offsetWidth:d.offsetHeight,offset:v?d.offsetLeft:d.offsetTop})};return im(d,b),im(o.indicatorTrack,b),m?c.jsx(Rn.div,{"aria-hidden":!0,"data-state":y?"visible":"hidden","data-orientation":o.orientation,...s,ref:t,style:{position:"absolute",...v?{left:0,width:m.size+"px",transform:`translateX(${m.offset}px)`}:{top:0,height:m.size+"px",transform:`translateY(${m.offset}px)`},...s.style}}):null}),nr="NavigationMenuContent",V2=x.forwardRef((e,t)=>{const{forceMount:a,...s}=e,o=Tn(nr,e.__scopeNavigationMenu),u=L2(nr,e.__scopeNavigationMenu),d=ut(u.contentRef,t),h=u.value===o.value,m={value:u.value,triggerRef:u.triggerRef,focusProxyRef:u.focusProxyRef,wasEscapeCloseRef:u.wasEscapeCloseRef,onContentFocusOutside:u.onContentFocusOutside,onRootContentClose:u.onRootContentClose,...s};return o.viewport?c.jsx(tR,{forceMount:a,...m,ref:d}):c.jsx(ea,{present:a||h,children:c.jsx(H2,{"data-state":Tp(h),...m,ref:d,onPointerEnter:Le(e.onPointerEnter,o.onContentEnter),onPointerLeave:Le(e.onPointerLeave,tu(o.onContentLeave)),style:{pointerEvents:!h&&o.isRootMenu?"none":void 0,...m.style}})})});V2.displayName=nr;var tR=x.forwardRef((e,t)=>{const a=Tn(nr,e.__scopeNavigationMenu),{onViewportContentChange:s,onViewportContentRemove:o}=a;return Sn(()=>{s(e.value,{ref:t,...e})},[e,t,s]),Sn(()=>()=>o(e.value),[e.value,o]),null}),Uc="navigationMenu.rootContentDismiss",H2=x.forwardRef((e,t)=>{const{__scopeNavigationMenu:a,value:s,triggerRef:o,focusProxyRef:u,wasEscapeCloseRef:d,onRootContentClose:h,onContentFocusOutside:m,...g}=e,v=Tn(nr,a),y=x.useRef(null),b=ut(y,t),S=q2(v.baseId,s),j=K2(v.baseId,s),E=R2(a),A=x.useRef(null),{onItemDismiss:C}=v;x.useEffect(()=>{const R=y.current;if(v.isRootMenu&&R){const P=()=>{var M;C(),h(),R.contains(document.activeElement)&&((M=o.current)==null||M.focus())};return R.addEventListener(Uc,P),()=>R.removeEventListener(Uc,P)}},[v.isRootMenu,e.value,o,C,h]);const k=x.useMemo(()=>{const P=E().map(J=>J.value);v.dir==="rtl"&&P.reverse();const M=P.indexOf(v.value),z=P.indexOf(v.previousValue),G=s===v.value,H=z===P.indexOf(s);if(!G&&!H)return A.current;const $=(()=>
330{if(M!==z){if(G&&z!==-1)return M>z?"from-end":"from-start";if(H&&M!==-1)return M>z?"to-start":"to-end"}return null})();return A.current=$,$},[v.previousValue,v.value,v.dir,E,s]);return c.jsx($2,{asChild:!0,children:c.jsx(Eu,{id:j,"aria-labelledby":S,"data-motion":k,"data-orientation":v.orientation,...g,ref:b,disableOutsidePointerEvents:!1,onDismiss:()=>{var P;const R=new Event(Uc,{bubbles:!0,cancelable:!0});(P=y.current)==null||P.dispatchEvent(R)},onFocusOutside:Le(e.onFocusOutside,R=>{var M;m();const P=R.target;(M=v.rootNavigationMenu)!=null&&M.contains(P)&&R.preventDefault()}),onPointerDownOutside:Le(e.onPointerDownOutside,R=>{var G;const P=R.target,M=E().some(H=>{var $;return($=H.ref.current)==null?void 0:$.contains(P)}),z=v.isRootMenu&&((G=v.viewport)==null?void 0:G.contains(P));(M||z||!v.isRootMenu)&&R.preventDefault()}),onKeyDown:Le(e.onKeyDown,R=>{var z;const P=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!P){const G=am(R.currentTarget),H=document.activeElement,$=G.findIndex(Ee=>Ee===H),de=R.shiftKey?G.slice(0,$).reverse():G.slice($+1,G.length);Sp(de)?R.preventDefault():(z=u.current)==null||z.focus()}}),onEscapeKeyDown:Le(e.onEscapeKeyDown,R=>{d.current=!0})})})}),wp="NavigationMenuViewport",F2=x.forwardRef((e,t)=>{const{forceMount:a,...s}=e,u=!!Tn(wp,e.__scopeNavigationMenu).value;return c.jsx(ea,{present:a||u,children:c.jsx(nR,{...s,ref:t})})});F2.displayName=wp;var nR=x.forwardRef((e,t)=>{const{__scopeNavigationMenu:a,children:s,...o}=e,u=Tn(wp,a),d=ut(t,u.onViewportChange),h=X3(nr,e.__scopeNavigationMenu),[m,g]=x.useState(null),[v,y]=x.useState(null),b=m?(m==null?void 0:m.width)+"px":void 0,S=m?(m==null?void 0:m.height)+"px":void 0,j=!!u.value,E=j?u.value:u.previousValue;return im(v,()=>{v&&g({width:v.offsetWidth,height:v.offsetHeight})}),c.jsx(Rn.div,{"data-state":Tp(j),"data-orientation":u.orientation,...o,ref:d,style:{pointerEvents:!j&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":b,"--radix-navigation-menu-viewport-height":S,...o.style},onPointerEnter:Le(e.onPointerEnter,u.onContentEnter),onPointerLeave:Le(e.onPointerLeave,tu(u.onContentLeave)),children:Array.from(h.items).map(([C,{ref:k,forceMount:R,...P}])=>{const M=E===C;return c.jsx(ea,{present:R||M,children:c.jsx(H2,{...P,ref:rp(k,z=>{M&&z&&y(z)})})},C)})})}),aR="FocusGroup",$2=x.forwardRef((e,t)=>{const{__scopeNavigationMenu:a,...s}=e,o=Tn(aR,a);return c.jsx(em.Provider,{scope:a,children:c.jsx(em.Slot,{scope:a,children:c.jsx(Rn.div,{dir:o.dir,...s,ref:t})})})}),Zx=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],iR="FocusGroupItem",G2=x.forwardRef((e,t)=>{const{__scopeNavigationMenu:a,...s}=e,o=q3(a),u=Tn(iR,a);return c.jsx(em.ItemSlot,{scope:a,children:c.jsx(Rn.button,{...s,ref:t,onKeyDown:Le(e.onKeyDown,d=>{if(["Home","End",...Zx].includes(d.key)){let m=o().map(y=>y.ref.current);if([u.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(d.key)&&m.reverse(),Zx.includes(d.key)){const y=m.indexOf(d.currentTarget);m=m.slice(y+1)}setTimeout(()=>Sp(m)),d.preventDefault()}})})})});function am(e){const t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function Sp(e){const t=document.activeElement;return e.some(a=>a===t?!0:(a.focus(),document.activeElement!==t))}function sR(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const a=t.dataset.tabindex;t.setAttribute("tabindex",a)})}}function im(e,t){const a=Zt(t);Sn(()=>{let s=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(s),s=window.requestAnimationFrame(a)});return o.observe(e),()=>{window.cancelAnimationFrame(s),o.unobserve(e)}}},[e,a])}function Tp(e){return e?"open":"closed"}function q2(e,t){return`${e}-trigger-${t}`}function K2(e,t){return`${e}-content-${t}`}function tu(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Y2=k2,W2=O2,rR=I2,X2=U2,oR=B2,Z2=z2,Q2=V2,J2=F2;const eS=x.forwardRef(({className:e,children:t,...a},s)=>c.jsxs(Y2,{ref:s,className:De("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[t,c.jsx(iS,{})]}));eS.displayName=Y2.displayName;const tS=x.forwardRef(({className:e,...t},a)=>c.jsx(W2,{ref:a,className:De("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));tS.displayName=W2.displayName;const lR=rR,cR=pr("group inline-flex h-9 w-max items-center justify-center rounded-md bg-transparent px-4 py-2 text-sm font-medium transition-colors hover:bg-slate-100 hover:text-slate-900 focus:bg-slate-100 focus:text-slate-900 focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-slate-100/50 data-[state=open]:bg-slate-100/50"),nS=x.forwardRef(({className:e,children:t,...a},s)=>c.jsxs(X2,{ref:s,className:De(cR(),"group",e),...a,children:[t," ",c.jsx(C3,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));nS.displayName=X2.displayName;const aS=x.forwardRef(({className:e,...t},a)=>c.jsx(Q2,{ref:a,className:De("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));aS.displayName=Q2.displayName;const uR=oR,iS=x.forwardRef(({className:e,...t},a)=>c.jsx("div",{className:De("absolute left-0 top-full flex justify-center"),children:c.jsx(J2,{className:De("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border border-slate-200 bg-white text-slate-900 shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:a,...t})}));iS.displayName=J2.displayName;const dR=x.forwardRef(({className:e,...t},a)=>c.jsx(Z2,{ref:a,className:De("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:c.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));dR.displayName=Z2.displayName;var fR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hR=fR.reduce((e,t)=>
vendor: 4,180 bytes, line 330
330{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),oh="focusScope.autoFocusOnMount",lh="focusScope.autoFocusOnUnmount",Qx={bubbles:!1,cancelable:!0},mR="FocusScope",sS=x.forwardRef((e,t)=>{const{loop:a=!1,trapped:s=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...d}=e,[h,m]=x.useState(null),g=Zt(o),v=Zt(u),y=x.useRef(null),b=ut(t,E=>m(E)),S=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(s){let E=function(R){if(S.paused||!h)return;const P=R.target;h.contains(P)?y.current=P:ti(y.current,{select:!0})},A=function(R){if(S.paused||!h)return;const P=R.relatedTarget;P!==null&&(h.contains(P)||ti(y.current,{select:!0}))},C=function(R){if(document.activeElement===document.body)for(const M of R)M.removedNodes.length>0&&ti(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",A);const k=new MutationObserver(C);return h&&k.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",A),k.disconnect()}}},[s,h,S.paused]),x.useEffect(()=>{if(h){eb.add(S);const E=document.activeElement;if(!h.contains(E)){const C=new CustomEvent(oh,Qx);h.addEventListener(oh,g),h.dispatchEvent(C),C.defaultPrevented||(pR(bR(rS(h)),{select:!0}),document.activeElement===E&&ti(h))}return()=>{h.removeEventListener(oh,g),setTimeout(()=>{const C=new CustomEvent(lh,Qx);h.addEventListener(lh,v),h.dispatchEvent(C),C.defaultPrevented||ti(E??document.body,{select:!0}),h.removeEventListener(lh,v),eb.remove(S)},0)}}},[h,g,v,S]);const j=x.useCallback(E=>{if(!a&&!s||S.paused)return;const A=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,C=document.activeElement;if(A&&C){const k=E.currentTarget,[R,P]=gR(k);R&&P?!E.shiftKey&&C===P?(E.preventDefault(),a&&ti(R,{select:!0})):E.shiftKey&&C===R&&(E.preventDefault(),a&&ti(P,{select:!0})):C===k&&E.preventDefault()}},[a,s,S.paused]);return c.jsx(hR.div,{tabIndex:-1,...d,ref:b,onKeyDown:j})});sS.displayName=mR;function pR(e,{select:t=!1}={}){const a=document.activeElement;for(const s of e)if(ti(s,{select:t}),document.activeElement!==a)return}function gR(e){const t=rS(e),a=Jx(t,e),s=Jx(t.reverse(),e);return[a,s]}function rS(e){const t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function Jx(e,t){for(const a of e)if(!vR(a,{upTo:t}))return a}function vR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function yR(e){return e instanceof HTMLInputElement&&"select"in e}function ti(e,{select:t=!1}={}){if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&yR(e)&&t&&e.select()}}var eb=xR();function xR(){let e=[];return{add(t){const a=e[0];t!==a&&(a==null||a.pause()),e=tb(e,t),e.unshift(t)},remove(t){var a;e=tb(e,t),(a=e[0])==null||a.resume()}}}function tb(e,t){const a=[...e],s=a.indexOf(t);return s!==-1&&a.splice(s,1),a}function bR(e){return e.filter(t=>t.tagName!=="A")}var wR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],SR=wR.reduce((e,t)=>{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),TR="Portal",oS=x.forwardRef((e,t)=>{var h;const{container:a,...s}=e,[o,u]=x.useState(!1);Sn(()=>u(!0),[]);const d=a||o&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?Aw.createPortal(c.jsx(SR.div,{...s,ref:t}),d):null});oS.displayName=TR;var ER=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qo=ER.reduce((e,t)=>
vendor: 8,439 bytes, lines 330-367
330{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),ch=0;function jR(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nb()),document.body.insertAdjacentElement("beforeend",e[1]??nb()),ch++,()=>{ch===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ch--}},[])}function nb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Hn=function(){return Hn=Object.assign||function(t){for(var a,s=1,o=arguments.length;s<o;s++){a=arguments[s];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},Hn.apply(this,arguments)};function Jo(e,t){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(a[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])&&(a[s[o]]=e[s[o]]);return a}function NR(e,t,a){if(a||arguments.length===2)for(var s=0,o=t.length,u;s<o;s++)(u||!(s in t))&&(u||(u=Array.prototype.slice.call(t,0,s)),u[s]=t[s]);return e.concat(u||Array.prototype.slice.call(t))}var Bc="right-scroll-bar-position",zc="width-before-scroll-bar",AR="with-scroll-bars-hidden",CR="--removed-body-scroll-bar-size";function uh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _R(e,t){var a=x.useState(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(s){var o=a.value;o!==s&&(a.value=s,a.callback(s,o))}}}})[0];return a.callback=t,a.facade}var RR=typeof window<"u"?x.useLayoutEffect:x.useEffect,ab=new WeakMap;function kR(e,t){var a=_R(null,function(s){return e.forEach(function(o){return uh(o,s)})});return RR(function(){var s=ab.get(a);if(s){var o=new Set(s),u=new Set(e),d=a.current;o.forEach(function(h){u.has(h)||uh(h,null)}),u.forEach(function(h){o.has(h)||uh(h,d)})}ab.set(a,e)},[e]),a}function MR(e){return e}function DR(e,t){t===void 0&&(t=MR);var a=[],s=!1,o={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(u){var d=t(u,s);return a.push(d),function(){a=a.filter(function(h){return h!==d})}},assignSyncMedium:function(u){for(s=!0;a.length;){var d=a;a=[],d.forEach(u)}a={push:function(h){return u(h)},filter:function(){return a}}},assignMedium:function(u){s=!0;var d=[];if(a.length){var h=a;a=[],h.forEach(u),d=a}var m=function(){var v=d;d=[],v.forEach(u)},g=function(){return Promise.resolve().then(m)};g(),a={push:function(v){d.push(v),g()},filter:function(v){return d=d.filter(v),a}}}};return o}function OR(e){e===void 0&&(e={});var t=DR(null);return t.options=Hn({async:!0,ssr:!1},e),t}var lS=function(e){var t=e.sideCar,a=Jo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return x.createElement(s,Hn({},a))};lS.isSideCarExport=!0;function PR(e,t){return e.useMedium(t),lS}var cS=OR(),dh=function(){},ju=x.forwardRef(function(e,t){var a=x.useRef(null),s=x.useState({onScrollCapture:dh,onWheelCapture:dh,onTouchMoveCapture:dh}),o=s[0],u=s[1],d=e.forwardProps,h=e.children,m=e.className,g=e.removeScrollBar,v=e.enabled,y=e.shards,b=e.sideCar,S=e.noRelative,j=e.noIsolation,E=e.inert,A=e.allowPinchZoom,C=e.as,k=C===void 0?"div":C,R=e.gapMode,P=Jo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=b,z=kR([a,t]),G=Hn(Hn({},P),o);return x.createElement(x.Fragment,null,v&&x.createElement(M,{sideCar:cS,removeScrollBar:g,shards:y,noRelative:S,noIsolation:j,inert:E,setCallbacks:u,allowPinchZoom:!!A,lockRef:a,gapMode:R}),d?x.cloneElement(x.Children.only(h),Hn(Hn({},G),{ref:z})):x.createElement(k,Hn({},G,{className:m,ref:z}),h))});ju.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ju.classNames={fullWidth:zc,zeroRight:Bc};var LR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=LR();return t&&e.setAttribute("nonce",t),e}function UR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function BR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zR=function(){var e=0,t=null;return{add:function(a){e==0&&(t=IR())&&(UR(t,a),BR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},VR=function(){var e=zR();return function(t,a){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}},uS=function(){var e=VR(),t=function(a){var s=a.styles,o=a.dynamic;return e(s,o),null};return t},HR={left:0,top:0,right:0,gap:0},fh=function(e){return parseInt(e||"",10)||0},FR=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[fh(a),fh(s),fh(o)]},$R=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return HR;var t=FR(e),a=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-a+t[2]-t[0])}},GR=uS(),Xs="data-scroll-locked",qR=function(e,t,a,s){var o=e.left,u=e.top,d=e.right,h=e.gap;return a===void 0&&(a="margin"),` 331 .`.concat(AR,` { 332 overflow: hidden `).concat(s,`; 333 padding-right: `).concat(h,"px ").concat(s,`; 334 } 335 body[`).concat(Xs,`] { 336 overflow: hidden `).concat(s,`; 337 overscroll-behavior: contain; 338 `).concat([t&&"position: relative ".concat(s,";"),a==="margin"&&` 339 padding-left: `.concat(o,`px; 340 padding-top: `).concat(u,`px; 341 padding-right: `).concat(d,`px; 342 margin-left:0; 343 margin-top:0; 344 margin-right: `).concat(h,"px ").concat(s,`; 345 `),a==="padding"&&"padding-right: ".concat(h,"px ").concat(s,";")].filter(Boolean).join(""),` 346 } 347 348 .`).concat(Bc,` { 349 right: `).concat(h,"px ").concat(s,`; 350 } 351 352 .`).concat(zc,` { 353 margin-right: `).concat(h,"px ").concat(s,`; 354 } 355 356 .`).concat(Bc," .").concat(Bc,` { 357 right: 0 `).concat(s,`; 358 } 359 360 .`).concat(zc," .").concat(zc,` { 361 margin-right: 0 `).concat(s,`; 362 } 363 364 body[`).concat(Xs,`] { 365 `).concat(CR,": ").concat(h,`px; 366 } 367`)},ib=function(){var e=parseInt(document.body.getAttribute(Xs)||"0",10);return isFinite(e)?e:0},KR=function(){x.useEffect(function(){return document.body.setAttribute(Xs,(ib()+1).toString()),function(){var e=ib()-1;e<=0?document.body.removeAttribute(Xs):document.body.setAttribute(Xs,e.toString())}},[])},YR=function(e){var t=e.noRelative,a=e.noImportant,s=e.gapMode,o=s===void 0?"margin":s;KR();var u=x.useMemo(function(){return $R(o)},[o]);return x.createElement(GR,{styles:qR(u,!t,o,a?"":"!important")})},sm=!1;if(typeof window<"u")try{var Ac=Object.defineProperty({},"passive",{get:function(){return sm=!0,!0}});window.addEventListener("test",Ac,Ac),window.removeEventListener("test",Ac,Ac)}catch{sm=!1}var Vs=sm?{passive:!1}:!1,WR=function(e){return e.tagName==="TEXTAREA"},dS=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!WR(e)&&a[t]==="visible")},XR=function(e){return dS(e,"overflowY")},ZR=function(e){return dS(e,"overflowX")},sb=function(e,t){var a=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var o=fS(e,s);if(o){var u=hS(e,s),d=u[1],h=u[2];if(d>h)return!0}s=s.parentNode}while(s&&s!==a.body);return!1},QR=function(e){var t=e.scrollTop,a=e.scrollHeight,s=e.clientHeight;return[t,a,s]},JR=function(e){var t=e.scrollLeft,a=e.scrollWidth,s=e.clientWidth;return[t,a,s]},fS=function(e,t){return e==="v"?XR(t):ZR(t)},hS=function(e,t){return e==="v"?QR(t):JR(t)},e6=function(e,t){return e==="h"&&t==="rtl"?-1:1},t6=function(e,t,a,s,o){var u=e6(e,window.getComputedStyle(t).direction),d=u*s,h=a.target,m=t.contains(h),g=!1,v=d>0,y=0,b=0;
vendor: 1,186 bytes, lines 367-370
367do{if(!h)break;var S=hS(e,h),j=S[0],E=S[1],A=S[2],C=E-A-u*j;(j||C)&&fS(e,h)&&(y+=C,b+=j);var k=h.parentNode;h=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!m&&h!==document.body||m&&(t.contains(h)||t===h));return(v&&Math.abs(y)<1||!v&&Math.abs(b)<1)&&(g=!0),g},Cc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rb=function(e){return[e.deltaX,e.deltaY]},ob=function(e){return e&&"current"in e?e.current:e},n6=function(e,t){return e[0]===t[0]&&e[1]===t[1]},a6=function(e){return` 368 .block-interactivity-`.concat(e,` {pointer-events: none;} 369 .allow-interactivity-`).concat(e,` {pointer-events: all;} 370`)},i6=0,Hs=[];function s6(e){var t=x.useRef([]),a=x.useRef([0,0]),s=x.useRef(),o=x.useState(i6++)[0],u=x.useState(uS)[0],d=x.useRef(e);x.useEffect(function(){d.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var E=NR([e.lockRef.current],(e.shards||[]).map(ob),!0).filter(Boolean);return E.forEach(function(A){return A.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),E.forEac
vendor: 4,387 bytes, line 370
370h(function(A){return A.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var h=x.useCallback(function(E,A){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!d.current.allowPinchZoom;var C=Cc(E),k=a.current,R="deltaX"in E?E.deltaX:k[0]-C[0],P="deltaY"in E?E.deltaY:k[1]-C[1],M,z=E.target,G=Math.abs(R)>Math.abs(P)?"h":"v";if("touches"in E&&G==="h"&&z.type==="range")return!1;var H=sb(G,z);if(!H)return!0;if(H?M=G:(M=G==="v"?"h":"v",H=sb(G,z)),!H)return!1;if(!s.current&&"changedTouches"in E&&(R||P)&&(s.current=M),!M)return!0;var $=s.current||M;return t6($,A,E,$==="h"?R:P)},[]),m=x.useCallback(function(E){var A=E;if(!(!Hs.length||Hs[Hs.length-1]!==u)){var C="deltaY"in A?rb(A):Cc(A),k=t.current.filter(function(M){return M.name===A.type&&(M.target===A.target||A.target===M.shadowParent)&&n6(M.delta,C)})[0];if(k&&k.should){A.cancelable&&A.preventDefault();return}if(!k){var R=(d.current.shards||[]).map(ob).filter(Boolean).filter(function(M){return M.contains(A.target)}),P=R.length>0?h(A,R[0]):!d.current.noIsolation;P&&A.cancelable&&A.preventDefault()}}},[]),g=x.useCallback(function(E,A,C,k){var R={name:E,delta:A,target:C,should:k,shadowParent:r6(C)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(P){return P!==R})},1)},[]),v=x.useCallback(function(E){a.current=Cc(E),s.current=void 0},[]),y=x.useCallback(function(E){g(E.type,rb(E),E.target,h(E,e.lockRef.current))},[]),b=x.useCallback(function(E){g(E.type,Cc(E),E.target,h(E,e.lockRef.current))},[]);x.useEffect(function(){return Hs.push(u),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",m,Vs),document.addEventListener("touchmove",m,Vs),document.addEventListener("touchstart",v,Vs),function(){Hs=Hs.filter(function(E){return E!==u}),document.removeEventListener("wheel",m,Vs),document.removeEventListener("touchmove",m,Vs),document.removeEventListener("touchstart",v,Vs)}},[]);var S=e.removeScrollBar,j=e.inert;return x.createElement(x.Fragment,null,j?x.createElement(u,{styles:a6(o)}):null,S?x.createElement(YR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function r6(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const o6=PR(cS,s6);var mS=x.forwardRef(function(e,t){return x.createElement(ju,Hn({},e,{ref:t,sideCar:o6}))});mS.classNames=ju.classNames;var l6=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fs=new WeakMap,_c=new WeakMap,Rc={},hh=0,pS=function(e){return e&&(e.host||pS(e.parentNode))},c6=function(e,t){return t.map(function(a){if(e.contains(a))return a;var s=pS(a);return s&&e.contains(s)?s:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},u6=function(e,t,a,s){var o=c6(t,Array.isArray(e)?e:[e]);Rc[a]||(Rc[a]=new WeakMap);var u=Rc[a],d=[],h=new Set,m=new Set(o),g=function(y){!y||h.has(y)||(h.add(y),g(y.parentNode))};o.forEach(g);var v=function(y){!y||m.has(y)||Array.prototype.forEach.call(y.children,function(b){if(h.has(b))v(b);else try{var S=b.getAttribute(s),j=S!==null&&S!=="false",E=(Fs.get(b)||0)+1,A=(u.get(b)||0)+1;Fs.set(b,E),u.set(b,A),d.push(b),E===1&&j&&_c.set(b,!0),A===1&&b.setAttribute(a,"true"),j||b.setAttribute(s,"true")}catch(C){console.error("aria-hidden: cannot operate on ",b,C)}})};return v(t),h.clear(),hh++,function(){d.forEach(function(y){var b=Fs.get(y)-1,S=u.get(y)-1;Fs.set(y,b),u.set(y,S),b||(_c.has(y)||y.removeAttribute(s),_c.delete(y)),S||y.removeAttribute(a)}),hh--,hh||(Fs=new WeakMap,Fs=new WeakMap,_c=new WeakMap,Rc={})}},d6=function(e,t,a){a===void 0&&(a="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),o=l6(e);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),u6(s,o,a,"aria-hidden")):function(){return null}},Nu="Dialog",[gS]=ns(Nu),[f6,Pn]=gS(Nu),vS=e=>{const{__scopeDialog:t,children:a,open:s,defaultOpen:o,onOpenChange:u,modal:d=!0}=e,h=x.useRef(null),m=x.useRef(null),[g,v]=as({prop:s,defaultProp:o??!1,onChange:u,caller:Nu});return c.jsx(f6,{scope:t,triggerRef:h,contentRef:m,contentId:ci(),titleId:ci(),descriptionId:ci(),open:g,onOpenChange:v,onOpenToggle:x.useCallback(()=>v(y=>!y),[v]),modal:d,children:a})};vS.displayName=Nu;var yS="DialogTrigger",xS=x.forwardRef((e,t)=>
vendor: 4,499 bytes, lines 370-374
370{const{__scopeDialog:a,...s}=e,o=Pn(yS,a),u=ut(t,o.triggerRef);return c.jsx(Qo.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Np(o.open),...s,ref:u,onClick:Le(e.onClick,o.onOpenToggle)})});xS.displayName=yS;var Ep="DialogPortal",[h6,bS]=gS(Ep,{forceMount:void 0}),wS=e=>{const{__scopeDialog:t,forceMount:a,children:s,container:o}=e,u=Pn(Ep,t);return c.jsx(h6,{scope:t,forceMount:a,children:x.Children.map(s,d=>c.jsx(ea,{present:a||u.open,children:c.jsx(oS,{asChild:!0,container:o,children:d})}))})};wS.displayName=Ep;var nu="DialogOverlay",SS=x.forwardRef((e,t)=>{const a=bS(nu,e.__scopeDialog),{forceMount:s=a.forceMount,...o}=e,u=Pn(nu,e.__scopeDialog);return u.modal?c.jsx(ea,{present:s||u.open,children:c.jsx(p6,{...o,ref:t})}):null});SS.displayName=nu;var m6=kt("DialogOverlay.RemoveScroll"),p6=x.forwardRef((e,t)=>{const{__scopeDialog:a,...s}=e,o=Pn(nu,a);return c.jsx(mS,{as:m6,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(Qo.div,{"data-state":Np(o.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),Qi="DialogContent",TS=x.forwardRef((e,t)=>{const a=bS(Qi,e.__scopeDialog),{forceMount:s=a.forceMount,...o}=e,u=Pn(Qi,e.__scopeDialog);return c.jsx(ea,{present:s||u.open,children:u.modal?c.jsx(g6,{...o,ref:t}):c.jsx(v6,{...o,ref:t})})});TS.displayName=Qi;var g6=x.forwardRef((e,t)=>{const a=Pn(Qi,e.__scopeDialog),s=x.useRef(null),o=ut(t,a.contentRef,s);return x.useEffect(()=>{const u=s.current;if(u)return d6(u)},[]),c.jsx(ES,{...e,ref:o,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Le(e.onCloseAutoFocus,u=>{var d;u.preventDefault(),(d=a.triggerRef.current)==null||d.focus()}),onPointerDownOutside:Le(e.onPointerDownOutside,u=>{const d=u.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&u.preventDefault()}),onFocusOutside:Le(e.onFocusOutside,u=>u.preventDefault())})}),v6=x.forwardRef((e,t)=>{const a=Pn(Qi,e.__scopeDialog),s=x.useRef(!1),o=x.useRef(!1);return c.jsx(ES,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var d,h;(d=e.onCloseAutoFocus)==null||d.call(e,u),u.defaultPrevented||(s.current||(h=a.triggerRef.current)==null||h.focus(),u.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:u=>{var m,g;(m=e.onInteractOutside)==null||m.call(e,u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=u.target;((g=a.triggerRef.current)==null?void 0:g.contains(d))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),ES=x.forwardRef((e,t)=>{const{__scopeDialog:a,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:u,...d}=e,h=Pn(Qi,a),m=x.useRef(null),g=ut(t,m);return jR(),c.jsxs(c.Fragment,{children:[c.jsx(sS,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:u,children:c.jsx(Eu,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Np(h.open),...d,ref:g,onDismiss:()=>h.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(y6,{titleId:h.titleId}),c.jsx(b6,{contentRef:m,descriptionId:h.descriptionId})]})]})}),jp="DialogTitle",jS=x.forwardRef((e,t)=>{const{__scopeDialog:a,...s}=e,o=Pn(jp,a);return c.jsx(Qo.h2,{id:o.titleId,...s,ref:t})});jS.displayName=jp;var NS="DialogDescription",AS=x.forwardRef((e,t)=>{const{__scopeDialog:a,...s}=e,o=Pn(NS,a);return c.jsx(Qo.p,{id:o.descriptionId,...s,ref:t})});AS.displayName=NS;var CS="DialogClose",_S=x.forwardRef((e,t)=>{const{__scopeDialog:a,...s}=e,o=Pn(CS,a);return c.jsx(Qo.button,{type:"button",...s,ref:t,onClick:Le(e.onClick,()=>o.onOpenChange(!1))})});_S.displayName=CS;function Np(e){return e?"open":"closed"}var RS="DialogTitleWarning",[CB,kS]=V5(RS,{contentName:Qi,titleName:jp,docsSlug:"dialog"}),y6=({titleId:e})=>{const t=kS(RS),a=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 371 372If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 373 374For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(a))},[a,e]),null},x6="DialogDescriptionWarning",b6=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${kS(x6).contentName}}.`;return x.useEffect(()=>{var u;const o=(u=e.current)==null?void 0:u.getAttribute("aria-describedby");
374t&&o&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},w6=vS,S6=xS,T6=wS,MS=SS,DS=TS,OS=jS,PS=AS,E6=_S;const LS=w6,j6=S6,N6=T6,IS=x.forwardRef(({className:e,...t},a)=>c.jsx(MS,{className:De("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));IS.displayName=MS.displayName;const A6=pr("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ap=x.forwardRef(({side:e="right",className:t,children:a,...s},o)=>c.jsxs(N6,{children:[c.jsx(IS,{}),c.jsxs(DS,{ref:o,className:De(A6({side:e}),t),...s,children:[a,c.jsxs(E6,{className:"absolute right-4 top-4 roun
374ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[c.jsx(P5,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ap.displayName=DS.displayName;const Cp=({className:e,...t})=>c.jsx("div",{className:De("flex flex-col space-y-2 text-center sm:text-left",e),...t});Cp.displayName="SheetHeader";const _p=x.forwardRef(({className:e,...t},a)=>c.jsx(OS,{ref:a,className:De("text-lg font-semibold text-foreground",e),...t}));_p.displayName=OS.displayName;const US=x.forwardRef(({className:e,...t},a)=>c.jsx(PS,{ref:a,className:De("text-sm text-muted-foreground",e),...t}));US.displayName=PS.displayName;const _t=({logo:e={url:"/",title:"kasana"},menu:t=[{title:"Home",url:"#"},{title:"Resources",url:"#",items:[{title:"Roadmap",description:"Get all the answers you need right here",icon:c.jsx(B5,{className:"size-5 shrink-0"}),url:"/roadmap"},{title:"Contact Us",description:"We are here to help you with any questions you have",icon:c.jsx(j5,{className:"size-5 shrink-0"}),url:"mailto:[email protected]"},{title:"Docs",description:"Setup guides and tutorials for getting started with Kasana",icon:c.jsx(Jw,{className:"size-5 shrink-0"}),url:"/docs"},{title:"Privacy Policy",description:"Our privacy policy for using our services",icon:c.jsx(Z4,{className:"size-5 shrink-0"}),url:"/legal/privacy"}]},{title:"Pricing",url:"/#pricing"},{title:"Blog",url:"/blog"}]})=>{const a=Jn(),o=Dn().pathname.startsWith("/blog"),u=z5(),d=bu(),{isAuthenticated:h,user:m,logout:g}=o?{isAuthenticated:d.isBlogAdmin,user:d.user,logout:d.logout}:u,[v,y]=x.useState(!1),b=64;return x.useEffect(()=>{const S=()=>{const j=window.scrollY;y(j>=b)};return window.addEventListener("scroll",S),()=>window.removeEventListener("scroll",S)},[b]),c.jsxs("section",{className:`fixed top-0 left-0 right-0 z-50 h-16 transition-all duration-1000 ${v?"bg-white/95 backdrop-blur-sm border-b border-slate-200":"bg-transparent"}`,children:[c.jsxs("nav",{className:"hidden lg:flex w-full h-full items-center",children:[c.jsx("div",{className:"flex items-center gap-1 pl-[32px] flex-1",children:c.jsxs("a",{href:e.url,className:"flex items-center gap-2",children:[c.jsx(Ke.sealMark,{className:"h-7 w-7","aria-hidden":"true"}),c.jsx("span",{className:"tracking-tight text-2xl font-black font-primary",children:e.title})]})}),c.jsx("div",{className:"flex items-center justify-center flex-1",children:c.jsx("div",{className:"flex items-center justify-center w-full",children:c.jsx(eS,{className:"w-full max-w-none",children:c.jsx(tS,{className:"flex items-center justify-center space-x-6 w-full",children:t.map(S=>C6(S))})})})}),c.jsx("div",{className:"flex items-center justify-end flex-1 pr-[32px]",children:h&&c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-sm text-muted-foreground hidden sm:inline",children:m==null?void 0:m.username}),c.jsxs(Ie,{onClick:async()=>{await g(),a("/blog")},variant:"outline",size:"sm",className:"flex items-center gap-2",children:[c.jsx(Ux,{className:"w-4 h-4"}),"Logout"]})]})})]}),c.jsx("div",{className:"block lg:hidden h-full",children:c.jsxs("div",{className:"flex items-center justify-between h-full",children:[c.jsxs("a",{href:e.url,className:"flex items-center gap-2",children:[c.jsx(Ke.sealMark,{className:"h-8 w-8","aria-hidden":"true"}),c.jsx("span",{className:"text-lg font-semibold font-primary",children:e.title})]}),c.jsxs(LS,{children:[c.jsx(j6,{asChild:!0,children:c.jsx(Ie,{variant:"outline",size:"icon",children:c.jsx(i5,{className:"size-4"})})}),c.jsxs(Ap,{className:"overflow-y-auto",children:[c.jsx(Cp,{children:c.jsx(_p,{children:c.jsxs("a",{href:e.url,className:"flex items-center gap-2",children:[c.jsx(Ke.sealMark,{className:"h-8 w-8","aria-hidden":"true"}),c.jsx("span",{className:"text-lg font-semibold font-primary",children:e.title})]})})}),c.jsxs("div",{className:"my-6 flex flex-col gap-6",children:[c.jsx(E2,{type:"single",collapsible:!0,className:"flex w-full flex-col gap-4",children:t.map(S=>_6(S))}),h&&c.jsx("div",{className:"border-t pt-4",children:c.jsxs(Ie,{onClick:async()=>{await g(),a("/blog")},variant:"outline",className:"flex w-full items-center justify-center gap-2",children:[c.jsx(Ux,{className:"w-4 h-4"}),"Logout (",m==null?void 0:m.username,")"]})})]})]})]})]})})]})}
374,C6=e=>e.items?c.jsxs(lR,{className:"text-black",children:[c.jsx(nS,{className:"bg-transparent hover:bg-transparent text-black hover:text-gray-600 font-secondary",children:e.title}),c.jsx(aS,{children:c.jsx("ul",{className:"w-80 p-3",children:c.jsx(uR,{children:e.items.map(t=>c.jsx("li",{children:c.jsxs("a",{className:"flex select-none gap-4 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-slate-50 hover:text-slate-900",href:t.url,children:[t.icon,c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-semibold",children:t.title}),t.description&&c.jsx("p",{className:"text-sm leading-snug text-slate-500",children:t.description})]})]})},t.title))})})})]},e.title):c.jsx("a",{className:"group inline-flex h-10 w-max items-center justify-center rounded-md bg-transparent px-4 py-2 text-sm font-medium text-black transition-colors hover:bg-transparent hover:text-gray-600 font-secondary",href:e.url,children:e.title},e.title),_6=e=>e.items?c.jsxs(pp,{value:e.title,className:"border-b-0",children:[c.jsx(gp,{className:"py-0 font-semibold hover:no-underline",children:e.title}),c.jsx(vp,{className:"mt-2",children:e.items.map(t=>
vendor: 23,686 bytes, line 374
374c.jsxs("a",{className:"flex select-none gap-4 rounded-md p-3 leading-none outline-none transition-colors hover:bg-slate-50 hover:text-slate-900",href:t.url,children:[t.icon,c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-semibold",children:t.title}),t.description&&c.jsx("p",{className:"text-sm leading-snug text-slate-500",children:t.description})]})]},t.title))})]},e.title):c.jsx("a",{href:e.url,className:"font-semibold",children:e.title},e.title),Rp=x.createContext({});function kp(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Mp=typeof window<"u",BS=Mp?x.useLayoutEffect:x.useEffect,Au=x.createContext(null);function Dp(e,t){e.indexOf(t)===-1&&e.push(t)}function Op(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}const Sa=(e,t,a)=>a>t?t:a<e?e:a;let Pp=()=>{};const Ta={},zS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function VS(e){return typeof e=="object"&&e!==null}const HS=e=>/^0[^.\s]+$/u.test(e);function Lp(e){let t;return()=>(t===void 0&&(t=e()),t)}const bn=e=>e,R6=(e,t)=>a=>t(e(a)),el=(...e)=>e.reduce(R6),Uo=(e,t,a)=>{const s=t-e;return s===0?1:(a-e)/s};class Ip{constructor(){this.subscriptions=[]}add(t){return Dp(this.subscriptions,t),()=>Op(this.subscriptions,t)}notify(t,a,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,a,s);else for(let u=0;u<o;u++){const d=this.subscriptions[u];d&&d(t,a,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const qn=e=>e*1e3,Kn=e=>e/1e3;function FS(e,t){return t?e*(1e3/t):0}const $S=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,k6=1e-7,M6=12;function D6(e,t,a,s,o){let u,d,h=0;do d=t+(a-t)/2,u=$S(d,s,o)-e,u>0?a=d:t=d;while(Math.abs(u)>k6&&++h<M6);return d}function tl(e,t,a,s){if(e===t&&a===s)return bn;const o=u=>D6(u,0,1,e,a);return u=>u===0||u===1?u:$S(o(u),t,s)}const GS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qS=e=>t=>1-e(1-t),KS=tl(.33,1.53,.69,.99),Up=qS(KS),YS=GS(Up),WS=e=>(e*=2)<1?.5*Up(e):.5*(2-Math.pow(2,-10*(e-1))),Bp=e=>1-Math.sin(Math.acos(e)),XS=qS(Bp),ZS=GS(Bp),O6=tl(.42,0,1,1),P6=tl(0,0,.58,1),QS=tl(.42,0,.58,1),L6=e=>Array.isArray(e)&&typeof e[0]!="number",JS=e=>Array.isArray(e)&&typeof e[0]=="number",I6={linear:bn,easeIn:O6,easeInOut:QS,easeOut:P6,circIn:Bp,circInOut:ZS,circOut:XS,backIn:Up,backInOut:YS,backOut:KS,anticipate:WS},U6=e=>typeof e=="string",lb=e=>{if(JS(e)){Pp(e.length===4);const[t,a,s,o]=e;return tl(t,a,s,o)}else if(U6(e))return I6[e];return e},kc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],cb={value:null};function B6(e,t){let a=new Set,s=new Set,o=!1,u=!1;const d=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1},m=0;function g(y){d.has(y)&&(v.schedule(y),e()),m++,y(h)}const v={schedule:(y,b=!1,S=!1)=>{const E=S&&o?a:s;return b&&d.add(y),E.has(y)||E.add(y),y},cancel:y=>{s.delete(y),d.delete(y)},process:y=>{if(h=y,o){u=!0;return}o=!0,[a,s]=[s,a],a.forEach(g),t&&cb.value&&cb.value.frameloop[t].push(m),m=0,a.clear(),o=!1,u&&(u=!1,v.process(y))}};return v}const z6=40;function eT(e,t){let a=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},u=()=>a=!0,d=kc.reduce((R,P)=>(R[P]=B6(u,t?P:void 0),R),{}),{setup:h,read:m,resolveKeyframes:g,preUpdate:v,update:y,preRender:b,render:S,postRender:j}=d,E=()=>{const R=Ta.useManualTiming?o.timestamp:performance.now();a=!1,Ta.useManualTiming||(o.delta=s?1e3/60:Math.max(Math.min(R-o.timestamp,z6),1)),o.timestamp=R,o.isProcessing=!0,h.process(o),m.process(o),g.process(o),v.process(o),y.process(o),b.process(o),S.process(o),j.process(o),o.isProcessing=!1,a&&t&&(s=!1,e(E))},A=()=>{a=!0,s=!0,o.isProcessing||e(E)};return{schedule:kc.reduce((R,P)=>{const M=d[P];return R[P]=(z,G=!1,H=!1)=>(a||A(),M.schedule(z,G,H)),R},{}),cancel:R=>{for(let P=0;P<kc.length;P++)d[kc[P]].cancel(R)},state:o,steps:d}}const{schedule:Qe,cancel:hi,state:Tt,steps:mh}=eT(typeof requestAnimationFrame<"u"?requestAnimationFrame:bn,!0);let Vc;function V6(){Vc=void 0}const Ht={now:()=>(Vc===void 0&&Ht.set(Tt.isProcessing||Ta.useManualTiming?Tt.timestamp:performance.now()),Vc),set:e=>{Vc=e,queueMicrotask(V6)}},tT=e=>t=>typeof t=="string"&&t.startsWith(e),zp=tT("--"),H6=tT("var(--"),Vp=e=>H6(e)?F6.test(e.split("/*")[0].trim()):!1,F6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,gr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Bo={...gr,transform:e=>Sa(0,1,e)},Mc={...gr,default:1},_o=e=>Math.round(e*1e5)/1e5,Hp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $6(e){return e==null}const G6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fp=(e,t)=>a=>!!(typeof a=="string"&&G6.test(a)&&a.startsWith(e)||t&&!$6(a)&&Object.prototype.hasOwnProperty.call(a,t)),nT=(e,t,a)=>s=>{if(typeof s!="string")return s;const[o,u,d,h]=s.match(Hp);return{[e]:parseFloat(o),[t]:parseFloat(u),[a]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},q6=e=>Sa(0,255,e),ph={...gr,transform:e=>Math.round(q6(e))},Ki={test:Fp("rgb","red"),parse:nT("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:s=1})=>"rgba("+ph.transform(e)+", "+ph.transform(t)+", "+ph.transform(a)+", "+_o(Bo.transform(s))+")"};function K6(e){let t="",a="",s="",o="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),s=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),s=e.substring(3,4),o=e.substring(4,5),t+=t,a+=a,s+=s,o+=o),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const rm={test:Fp("#"),parse:K6,transform:Ki.transform},nl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ni=nl("deg"),Yn=nl("%"),me=nl("px"),Y6=nl("vh"),W6=nl("vw"),ub={...Yn,parse:e=>Yn.parse(e)/100,transform:e=>Yn.transform(e*100)},$s={test:Fp("hsl","hue"),parse:nT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:s=1})=>"hsla("+Math.round(e)+", "+Yn.transform(_o(t))+", "+Yn.transform(_o(a))+", "+_o(Bo.transform(s))+")"},ct={test:e=>Ki.test(e)||rm.test(e)||$s.test(e),parse:e=>Ki.test(e)?Ki.parse(e):$s.test(e)?$s.parse(e):rm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ki.transform(e):$s.transform(e),getAnimatableNone:e=>{const t=ct.parse(e);return t.alpha=0,ct.transform(t)}},X6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Z6(e){var t,a;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Hp))==null?void 0:t.length)||0)+(((a=e.match(X6))==null?void 0:a.length)||0)>0}const aT="number",iT="color",Q6="var",J6="var(",db="${}",ek=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function zo(e){const t=e.toString(),a=[],s={color:[],number:[],var:[]},o=[];let u=0;const h=t.replace(ek,m=>(ct.test(m)?(s.color.push(u),o.push(iT),a.push(ct.parse(m))):m.startsWith(J6)?(s.var.push(u),o.push(Q6),a.push(m)):(s.number.push(u),o.push(aT),a.push(parseFloat(m))),++u,db)).split(db);return{values:a,split:h,indexes:s,types:o}}function sT(e){return zo(e).values}function rT(e){const{split:t,types:a}=zo(e),s=t.length;return o=>{let u="";for(let d=0;d<s;d++)if(u+=t[d],o[d]!==void 0){const h=a[d];h===aT?u+=_o(o[d]):h===iT?u+=ct.transform(o[d]):u+=o[d]}return u}}const tk=e=>typeof e=="number"?0:ct.test(e)?ct.getAnimatableNone(e):e;function nk(e){const t=sT(e);return rT(e)(t.map(tk))}const mi={test:Z6,parse:sT,createTransformer:rT,getAnimatableNone:nk};function gh(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function ak({hue:e,saturation:t,lightness:a,alpha:s}){e/=360,t/=100,a/=100;let o=0,u=0,d=0;if(!t)o=u=d=a;else{const h=a<.5?a*(1+t):a+t-a*t,m=2*a-h;o=gh(m,h,e+1/3),u=gh(m,h,e),d=gh(m,h,e-1/3)}return{red:Math.round(o*255),green:Math.round(u*255),blue:Math.round(d*255),alpha:s}}function au(e,t){return a=>a>0?t:e}const Ze=(e,t,a)=>e+(t-e)*a,vh=(e,t,a)=>{const s=e*e,o=a*(t*t-s)+s;return o<0?0:Math.sqrt(o)},ik=[rm,Ki,$s],sk=e=>ik.find(t=>t.test(e));function fb(e){const t=sk(e);if(!t)return!1;let a=t.parse(e);return t===$s&&(a=ak(a)),a}const hb=(e,t)=>{const a=fb(e),s=fb(t);if(!a||!s)return au(e,t);const o={...a};return u=>(o.red=vh(a.red,s.red,u),o.green=vh(a.green,s.green,u),o.blue=vh(a.blue,s.blue,u),o.alpha=Ze(a.alpha,s.alpha,u),Ki.transform(o))},om=new Set(["none","hidden"]);function rk(e,t){return om.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function ok(e,t){return a=>Ze(e,t,a)}function $p(e){return typeof e=="number"?ok:typeof e=="string"?Vp(e)?au:ct.test(e)?hb:uk:Array.isArray(e)?oT:typeof e=="object"?ct.test(e)?hb:lk:au}function oT(e,t){const a=[...e],s=a.length,o=e.map((u,d)=>$p(u)(u,t[d]));return u=>{for(let d=0;d<s;d++)a[d]=o[d](u);return a}}function lk(e,t){const a={...e,...t},s={};for(const o in a)e[o]!==void 0&&t[o]!==void 0&&(s[o]=$p(e[o])(e[o],t[o]));return o=>{for(const u in s)a[u]=s[u](o);return a}}function ck(e,t){const a=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const u=t.types[o],d=e.indexes[u][s[u]],h=e.values[d]??0;a[o]=h,s[u]++}return a}const uk=(e,t)=>{const a=mi.createTransformer(t),s=zo(e),o=zo(t);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?om.has(e)&&!o.values.length||om.has(t)&&!s.values.length?rk(e,t):el(oT(ck(s,o),o.values),a):au(e,t)};function lT(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?Ze(e,t,a):$p(e)(e,t)}const dk=e=>{const t=({timestamp:a})=>e(a);return{start:(a=!0)=>Qe.update(t,a),stop:()=>hi(t),now:()=>Tt.isProcessing?Tt.timestamp:Ht.now()}},cT=(e,t,a=10)=>{let s="";const o=Math.max(Math.round(t/a),2);for(let u=0;u<o;u++)s+=Math.round(e(u/(o-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},iu=2e4;function Gp(e){let t=0;const a=50;let s=e.next(t);for(;!s.done&&t<iu;)t+=a,s=e.next(t);return t>=iu?1/0:t}function fk(e,t=100,a){const s=a({...e,keyframes:[0,t]}),o=Math.min(Gp(s),iu);return{type:"keyframes",ease:u=>s.next(o*u).value/t,duration:Kn(o)}}const hk=5;function uT(e,t,a){const s=Math.max(t-hk,0);return FS(a-e(s),t-s)}const nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},yh=.001;function mk({duration:e=nt.duration,bounce:t=nt.bounce,velocity:a=nt.velocity,mass:s=nt.mass}){let o,u,d=1-t;d=Sa(nt.minDamping,nt.maxDamping,d),e=Sa(nt.minDuration,nt.maxDuration,Kn(e)),d<1?(o=g=>{const v=g*d,y=v*e,b=v-a,S=lm(g,d),j=Math.exp(-y);return yh-b/S*j},u=g=>{const y=g*d*e,b=y*a+a,S=Math.pow(d,2)*Math.pow(g,2)*e,j=Math.exp(-y),E=lm(Math.pow(g,2),d);return(-o(g)+yh>0?-1:1)*((b-S)*j)/E}):(o=g=>{const v=Math.exp(-g*e),y=(g-a)*e+1;return-yh+v*y},u=g=>{const v=Math.exp(-g*e),y=(a-g)*(e*e);return v*y});const h=5/e,m=gk(o,u,h);if(e=qn(e),isNaN(m))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const g=Math.pow(m,2)*s;return{stiffness:g,damping:d*2*Math.sqrt(s*g),duration:e}}}const pk=12;function gk(e,t,a){let s=a;for(let o=1;o<pk;o++)s=s-e(s)/t(s);return s}function lm(e,t){return e*Math.sqrt(1-t*t)}const vk=["duration","bounce"],yk=["stiffness","damping","mass"];function mb(e,t){return t.some(a=>e[a]!==void 0)}function xk(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!mb(e,yk)&&mb(e,vk))if(e.visualDuration){const a=e.visualDuration,s=2*Math.PI/(a*1.2),o=s*s,u=2*Sa(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:nt.mass,stiffness:o,damping:u}}else{const a=mk(e);t={...t,...a,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function su(e=nt.visualDuration,t=nt.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:o}=a;const u=a.keyframes[0],d=a.keyframes[a.keyframes.length-1],h={done:!1,value:u},{stiffness:m,damping:g,mass:v,duration:y,velocity:b,isResolvedFromDuration:S}=xk({...a,velocity:-Kn(a.velocity||0)}),j=b||0,E=g/(2*Math.sqrt(m*v)),A=d-u,C=Kn(Math.sqrt(m/v)),k=Math.abs(A)<5;s||(s=k?nt.restSpeed.granular:nt.restSpeed.default),o||(o=k?nt.restDelta.granular:nt.restDelta.default);let R;if(E<1){const M=lm(C,E);R=z=>{const G=Math.exp(-E*C*z);return d-G*((j+E*C*A)/M*Math.sin(M*z)+A*Math.cos(M*z))}}else if(E===1)R=M=>d-Math.exp(-C*M)*(A+(j+C*A)*M);else{const M=C*Math.sqrt(E*E-1);R=z=>{const G=Math.exp(-E*C*z),H=Math.min(M*z,300);return d-G*((j+E*C*A)*Math.sinh(H)+M*A*Math.cosh(H))/M}}const P={calculatedDuration:S&&y||null,next:M=>{const z=R(M);if(S)h.done=M>=y;else{let G=M===0?j:0;E<1&&(G=M===0?qn(j):uT(R,M,z));const H=Math.abs(G)<=s,$=Math.abs(d-z)<=o;h.done=H&&$}return h.value=h.done?d:z,h},toString:()=>{const M=Math.min(Gp(P),iu),z=cT(G=>P.next(M*G).value,M,30);return M+"ms "+z},toTransition:()=>{}};return P}su.applyToOptions=e=>{const t=fk(e,100,su);return e.ease=t.ease,e.duration=qn(t.duration),e.type="keyframes",e};function cm({keyframes:e,velocity:t=0,power:a=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:u=500,modifyTarget:d,min:h,max:m,restDelta:g=.5,restSpeed:v}){const y=e[0],b={done:!1,value:y},S=H=>h!==void 0&&H<h||m!==void 0&&H>m,j=H=>h===void 0?m:m===void 0||Math.abs(h-H)<Math.abs(m-H)?h:m;let E=a*t;const A=y+E,C=d===void 0?A:d(A);C!==A&&(E=C-y);const k=H=>-E*Math.exp(-H/s),R=H=>C+k(H),P=H=>{const $=k(H),J=R(H);b.done=Math.abs($)<=g,b.value=b.done?C:J};let M,z;const G=H=>{S(b.value)&&(M=H,z=su({keyframes:[b.value,j(b.value)],velocity:uT(R,H,b.value),damping:o,stiffness:u,restDelta:g,restSpeed:v}))};return G(0),{calculatedDuration:null,next:H=>{let $=!1;return!z&&M===void 0&&($=!0,P(H),G(H)),M!==void 0&&H>=M?z.next(H-M):(!$&&P(H),b)}}}function bk(e,t,a){const s=[],o=a||Ta.mix||lT,u=e.length-1;for(let d=0;d<u;d++){let h=o(e[d],e[d+1]);if(t){const m=Array.isArray(t)?t[d]||bn:t;h=el(m,h)}s.push(h)}return s}function wk(e,t,{clamp:a=!0,ease:s,mixer:o}={}){const u=e.length;if(Pp(u===t.length),u===1)return()=>t[0];if(u===2&&t[0]===t[1])return()=>t[1];const d=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),t=[...t].reverse());const h=bk(t,s,o),m=h.length,g=v=>{if(d&&v<e[0])return t[0];let y=0;if(m>1)for(;y<e.length-2&&!(v<e[y+1]);y++);const b=Uo(e[y],e[y+1],v);return h[y](b)};return a?v=>g(Sa(e[0],e[u-1],v)):g}function Sk(e,t){const a=e[e.length-1];for(let s=1;s<=t;s++){const o=Uo(0,t,s);e.push(Ze(a,1,o))}}function Tk(e){const t=[0];return Sk(t,e.length-1),t}function Ek(e,t){return e.map(a=>a*t)}function jk(e,t){return e.map(()=>t||QS).splice(0,e.length-1)}function Ro({duration:e=300,keyframes:t,times:a,ease:s="easeInOut"}){const o=L6(s)?s.map(lb):lb(s),u={done:!1,value:t[0]},d=Ek(a&&a.length===t.length?a:Tk(t),e),h=wk(d,t,{ease:Array.isArray(o)?o:jk(t,o)});return{calculatedDuration:e,next:m=>(u.value=h(m),u.done=m>=e,u)}}const Nk=e=>e!==null;function qp(e,{repeat:t,repeatType:a="loop"},s,o=1){const u=e.filter(Nk),h=o<0||t&&a!=="loop"&&t%2===1?0:u.length-1;return!h||s===void 0?u[h]:s}const Ak={decay:cm,inertia:cm,tween:Ro,keyframes:Ro,spring:su};function dT(e){typeof e.type=="string"&&(e.type=Ak[e.type])}class Kp{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,a){return this.finished.then(t,a)}}const Ck=e=>e/100;class Yp extends Kp{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,o;const{motionValue:a}=this.options;a&&a.updatedAt!==Ht.now()&&this.tick(Ht.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(s=this.options).onStop)==null||o.call(s))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;dT(t);const{type:a=Ro,repeat:s=0,repeatDelay:o=0,repeatType:u,velocity:d=0}=t;let{keyframes:h}=t;const m=a||Ro;m!==Ro&&typeof h[0]!="number"&&(this.mixKeyframes=el(Ck,lT(h[0],h[1])),h=[0,100]);const g=m({...t,keyframes:h});u==="mirror"&&(this.mirroredGenerator=m({...t,keyframes:[...h].reverse(),velocity:-d})),g.calculatedDuration===null&&(g.calculatedDuration=Gp(g));const{calculatedDuration:v}=g;this.calculatedDuration=v,this.resolvedDuration=v+o,this.totalDuration=this.resolvedDuration*(s+1)-o,this.generator=g}updateTime(t){const a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){const{generator:s,totalDuration:o,mixKeyframes:u,mirroredGenerator:d,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:g=0,keyframes:v,repeat:y,repeatType:b,repeatDelay:S,type:j,onUpdate:E,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);const C=this.currentTime-g*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?C<0:C>o;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let R=this.currentTime,P=s;if(y){const H=Math.min(this.currentTime,o)/h;let $=Math.floor(H),J=H%1;!J&&H>=1&&(J=1),J===1&&$--,$=Math.min($,y+1),!!($%2)&&(b==="reverse"?(J=1-J,S&&(J-=S/h)):b==="mirror"&&(P=d)),R=Sa(0,1,J)*h}const M=k?{done:!1,value:v[0]}:P.next(R);u&&(M.value=u(M.value));let{done:z}=M;!k&&m!==null&&(z=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const G=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return G&&j!==cm&&(M.value=qp(v,this.options,A,this.speed)),E&&E(M.value),G&&this.finish(),M}then(t,a){return this.finished.then(t,a)}get duration(){return Kn(this.calculatedDuration)}get time(){return Kn(this.currentTime)}set time(t){var a;t=qn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(a=this.driver)==null||a.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ht.now());const a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=Kn(this.currentTime))}play(){var o,u;if(this.isStopped)return;const{driver:t=dk,startTime:a}=this.options;this.driver||(this.driver=t(d=>this.tick(d))),(u=(o=this.options).onPlay)==null||u.call(o);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=a??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ht.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,a;this.notifyFinished(),this.teardown(),this.state="finished",(a=(t=this.options).onComplete)==null||a.call(t)}cancel(){var t,a;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(a=(t=this.options).onCancel)==null||a.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var a;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(a=this.driver)==null||a.stop(),t.observe(this)}}function _k(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Yi=e=>e*180/Math.PI,um=e=>{const t=Yi(Math.atan2(e[1],e[0]));return dm(t)},Rk={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:um,rotateZ:um,skewX:e=>Yi(Math.atan(e[1])),skewY:e=>Yi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},dm=e=>(e=e%360,e<0&&(e+=360),e),pb=um,gb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kk={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:gb,scaleY:vb,scale:e=>(gb(e)+vb(e))/2,rotateX:e=>dm(Yi(Math.atan2(e[6],e[5]))),rotateY:e=>dm(Yi(Math.atan2(-e[2],e[0]))),rotateZ:pb,rotate:pb,skewX:e=>Yi(Math.atan(e[4])),skewY:e=>Yi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function fm(e){return e.includes("scale")?1:0}function hm(e,t){if(!e||e==="none")return fm(t);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,o;if(a)s=kk,o=a;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Rk,o=h}if(!o)return fm(t);const u=s[t],d=o[1].split(",").map(Dk);return typeof u=="function"?u(d):d[u]}const Mk=(e,t)=>{const{transform:a="none"}=getComputedStyle(e);return hm(a,t)};function Dk(e){return parseFloat(e.trim())}const vr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yr=new Set(vr),yb=e=>e===gr||e===me,Ok=new Set(["x","y","z"]),Pk=vr.filter(e=>!Ok.has(e));function Lk(e){const t=[];return Pk.forEach(a=>{const s=e.getValue(a);s!==void 0&&(t.push([a,s.get()]),s.set(a.startsWith("scale")?1:0))}),t}const Wi={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>hm(t,"x"),y:(e,{transform:t})=>hm(t,"y")};Wi.translateX=Wi.x;Wi.translateY=Wi.y;const Xi=new Set;let mm=!1,pm=!1,gm=!1;function fT(){if(pm){const e=Array.from(Xi).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),a=new Map;t.forEach(s=>{const o=Lk(s);o.length&&(a.set(s,o),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const o=a.get(s);o&&o.forEach(([u,d])=>{var h;(h=s.getValue(u))==null||h.set(d)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}pm=!1,mm=!1,Xi.forEach(e=>e.complete(gm)),Xi.clear()}function hT(){Xi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(pm=!0)})}function Ik(){gm=!0,hT(),fT(),gm=!1}class Wp{constructor(t,a,s,o,u,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=s,this.motionValue=o,this.element=u,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(Xi.add(this),mm||(mm=!0,Qe.read(hT),Qe.resolveKeyframes(fT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:s,motionValue:o}=this;if(t[0]===null){const u=o==null?void 0:o.get(),d=t[t.length-1];if(u!==void 0)t[0]=u;else if(s&&a){const h=s.readValue(a,d);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=d),o&&u===void 0&&o.set(t[0])}_k(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Xi.delete(this)}cancel(){this.state==="scheduled"&&(Xi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Uk=e=>e.startsWith("--");function Bk(e,t,a){Uk(t)?e.style.setProperty(t,a):e.style[t]=a}const zk=Lp(()=>window.ScrollTimeline!==void 0),Vk={};function Hk(e,t){const a=Lp(e);return()=>Vk[t]??a()}const mT=Hk(()=>{try{document.createElement("div").animate({opacity:0}
374,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jo=([e,t,a,s])=>`cubic-bezier(${e}, ${t}, ${a}, ${s})`,xb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jo([0,.65,.55,1]),circOut:jo([.55,0,1,.45]),backIn:jo([.31,.01,.66,-.59]),backOut:jo([.33,1.53,.69,.99])};function pT(e,t){if(e)return typeof e=="function"?mT()?cT(e,t):"ease-out":JS(e)?jo(e):Array.isArray(e)?e.map(a=>pT(a,t)||xb.easeOut):xb[e]}function Fk(e,t,a,{delay:s=0,duration:o=300,repeat:u=0,repeatType:d="loop",ease:h="easeOut",times:m}={},g=void 0){const v={[t]:a};m&&(v.offset=m);const y=pT(h,o);Array.isArray(y)&&(v.easing=y);const b={delay:s,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:u+1,direction:d==="reverse"?"alternate":"normal"};return g&&(b.pseudoElement=g),e.animate(v,b)}function gT(e){return typeof e=="function"&&"applyToOptions"in e}function $k({type:e,...t}){return gT(e)&&mT()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Gk extends Kp{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:a,name:s,keyframes:o,pseudoElement:u,allowFlatten:d=!1,finalKeyframe:h,onComplete:m}=t;this.isPseudoElement=!!u,this.allowFlatten=d,this.options=t,Pp(typeof t.type!="string");const g=$k(t);this.animation=Fk(a,s,o,g,u),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const v=qp(o,this.options,h,this.speed);this.updateMotionValue?this.updateMotionValue(v):Bk(a,s,v),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,a;(a=(t=this.animation).finish)==null||a.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,a;this.isPseudoElement||(a=(t=this.animation).commitStyles)==null||a.call(t)}get duration(){var a,s;const t=((s=(a=this.animation.effect)==null?void 0:a.getComputedTiming)==null?void 0:s.call(a).duration)||0;return Kn(Number(t))}get time(){return Kn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=qn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:a}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&zk()?(this.animation.timeline=t,bn):a(this)}}const vT={anticipate:WS,backInOut:YS,circInOut:ZS};function qk(e){return e in vT}function Kk(e){typeof e.ease=="string"&&qk(e.ease)&&(e.ease=vT[e.ease])}const bb=10;class Yk extends Gk{constructor(t){Kk(t),dT(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:a,onUpdate:s,onComplete:o,element:u,...d}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}const h=new Yp({...d,autoplay:!1}),m=qn(this.finishedTime??this.time);a.setWithVelocity(h.sample(m-bb).value,h.sample(m).value,bb),h.stop()}}const wb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(mi.test(e)||e==="0")&&!e.startsWith("url("));function Wk(e){const t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function Xk(e,t,a,s){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const u=e[e.length-1],d=wb(o,t),h=wb(u,t);return!d||!h?!1:Wk(e)||(a==="spring"||gT(a))&&s}function Xp(e){return VS(e)&&"offsetHeight"in e}const Zk=new Set(["opacity","clipPath","filter","transform"]),Qk=Lp(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Jk(e){var g;
374const{motionValue:t,name:a,repeatDelay:s,repeatType:o,damping:u,type:d}=e;if(!Xp((g=t==null?void 0:t.owner)==null?void 0:g.current))return!1;const{onUpdate:h,transformTemplate:m}=t.owner.getProps();return Qk()&&a&&Zk.has(a)&&(a!=="transform"||!m)&&!h&&!s&&o!=="mirror"&&u!==0&&d!=="inertia"}const eM=40;class tM extends Kp{constructor({autoplay:t=!0,delay:a=0,type:s="keyframes",repeat:o=0,repeatDelay:u=0,repeatType:d="loop",keyframes:h,name:m,motionValue:g,element:v,...y}){var j;super(),this.stop=()=>{var E,A;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Ht.now();const b={autoplay:t,delay:a,type:s,repeat:o,repeatDelay:u,repeatType:d,name:m,motionValue:g,element:v,...y},S=(v==null?void 0:v.KeyframeResolver)||Wp;this.keyframeResolver=new S(h,(E,A,C)=>this.onKeyframesResolved(E,A,b,!C),m,g,v),(j=this.keyframeResolver)==null||j.scheduleResolve()}onKeyframesResolved(t,a,s,o){this.keyframeResolver=void 0;const{name:u,type:d,velocity:h,delay:m,isHandoff:g,onUpdate:v}=s;this.resolvedAt=Ht.now(),Xk(t,u,d,h)||((Ta.instantAnimations||!m)&&(v==null||v(qp(t,s,a))),t[0]=t[t.length-1],s.duration=0,s.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>eM?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...s,keyframes:t},S=!g&&Jk(b)?new Yk({...b,element:b.motionValue.owner.current}):new Yp(b);S.finished.then(()=>this.notifyFinished()).catch(bn),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Ik()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const nM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function aM(e){const t=nM.exec(e);if(!t)return[,];const[,a,s,o]=t;return[`--${a??s}`,o]}function yT(e,t,a=1){const[s,o]=aM(e);if(!s)return;const u=window.getComputedStyle(t).getPropertyValue(s);if(u){const d=u.trim();return zS(d)?parseFloat(d):d}return Vp(o)?yT(o,t,a+1):o}function Zp(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const xT=new Set(["width","height","top","left","right","bottom",...vr]),iM={test:e=>e==="auto",parse:e=>e},bT=e=>t=>t.test(e),wT=[gr,me,Yn,ni,W6,Y6,iM],Sb=e=>wT.find(bT(e));function sM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||HS(e):!0}const rM=new Set(["brightness","contrast","saturate","opacity"]);function oM(e){const[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=a.match(Hp)||[];if(!s)return e;const o=a.replace(s,"");let u=rM.has(t)?1:0;return s!==a&&(u*=100),t+"("+u+o+")"}const lM=/\b([a-z-]*)\(.*?\)/gu,vm={...mi,getAnimatableNone:e=>{const t=e.match(lM);return t?t.map(oM).join(" "):e}},Tb={...gr,transform:Math.round},cM={rotate:ni,rotateX:ni,rotateY:ni,rotateZ:ni,scale:Mc,scaleX:Mc,scaleY:Mc,scaleZ:Mc,skew:ni,skewX:ni,skewY:ni,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Bo,originX:ub,originY:ub,originZ:me},Qp={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,to
vendor: 2,239 bytes, line 374
374p:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,backgroundPositionX:me,backgroundPositionY:me,...cM,zIndex:Tb,fillOpacity:Bo,strokeOpacity:Bo,numOctaves:Tb},uM={...Qp,color:ct,backgroundColor:ct,outlineColor:ct,fill:ct,stroke:ct,borderColor:ct,borderTopColor:ct,borderRightColor:ct,borderBottomColor:ct,borderLeftColor:ct,filter:vm,WebkitFilter:vm},ST=e=>uM[e];function TT(e,t){let a=ST(e);return a!==vm&&(a=mi),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const dM=new Set(["auto","none","0"]);function fM(e,t,a){let s=0,o;for(;s<e.length&&!o;){const u=e[s];typeof u=="string"&&!dM.has(u)&&zo(u).values.length&&(o=e[s]),s++}if(o&&a)for(const u of t)e[u]=TT(a,o)}class hM extends Wp{constructor(t,a,s,o,u){super(t,a,s,o,u,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:s}=this;if(!a||!a.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let g=t[m];if(typeof g=="string"&&(g=g.trim(),Vp(g))){const v=yT(g,a.current);v!==void 0&&(t[m]=v),m===t.length-1&&(this.finalKeyframe=g)}}if(this.resolveNoneKeyframes(),!xT.has(s)||t.length!==2)return;const[o,u]=t,d=Sb(o),h=Sb(u);if(d!==h)if(yb(d)&&yb(h))for(let m=0;m<t.length;m++){const g=t[m];typeof g=="string"&&(t[m]=parseFloat(g))}else Wi[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,s=[];for(let o=0;o<t.length;o++)(t[o]===null||sM(t[o]))&&s.push(o);s.length&&fM(t,s,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Wi[s](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const o=a[a.length-1];o!==void 0&&t.getValue(s,o).jump(o,!1)}measureEndState(){var h;const{element:t,name:a,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const o=t.getValue(a);o&&o.jump(this.measuredOrigin,!1);const u=s.length-1,d=s[u];s[u]=Wi[a](t.measureViewportBox(),window.getComputedStyle(t.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEac
374h(([m,g])=>{t.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function mM(e,t,a){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=(a==null?void 0:a[e])??s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const ET=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Eb=30,pM=e=>!isNaN(parseFloat(e));class gM{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,o=!0)=>{var d,h;const u=Ht.now();if(this.updatedAt!==u&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const m of this.dependents)m.dirty();o&&((h=this.events.renderRequest)==null||h.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=Ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pM(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Ip);const s=this.events[t].add(a);return t==="change"?()=>{s(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t,a=!0){!a||!this.passiveEffect?this.updateAndNotify(t,a):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,a,s){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Eb)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,Eb);return FS(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,a;(t=this.dependents)==null||t.clear(),(a=this.events.destroy)==null||a.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ar(e,t){return new gM(e,t)}const{schedule:Jp}=eT(queueMicrotask,!1),Cn={x:!1,y:!1};function jT(){return Cn.x||Cn.y}function vM(e){return e==="x"||e==="y"?Cn[e]?null:(Cn[e]=!0,()=>{Cn[e]=!1}):Cn.x||Cn.y?null:(Cn.x=Cn.y=!0,()=>{Cn.x=Cn.y=!1})}function NT(e,t){const a=mM(e),s=new AbortController,o={passive:!0,...t,signal:s.signal};return[a,o,()=>s.abort()]}function jb(e){return!(e.pointerType==="touch"||jT())}function yM(e,t,a={}){const[s,o,u]=NT(e,a),d=h=>{if(!jb(h))return;const{target:m}=h,g=t(m,h);if(typeof g!="function"||!m)return;const v=y=>{jb(y)&&(g(y),m.removeEventListener("pointerleave",v))};m.addEventListener("pointerleave",v,o)};return s.forEach(h=>{h.addEventListener("pointerenter",d,o)}),u}const AT=(e,t)=>t?e===t?!0:AT(e,t.parentElement):!1,eg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,xM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bM(e){return xM.has(e.tagName)||e.tabIndex!==-1}const Hc=new WeakSet;function Nb(e){return t=>{t.key==="Enter"&&e(t)}}function xh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const wM=(e,t)=>{const a=e.currentTarget;if(!a)return;const s=Nb(()=>{if(Hc.has(a))return;xh(a,"down");const o=Nb(()=>{xh(a,"up")}),u=()=>xh(a,"cancel");a.addEventListener("keyup",o,t),a.addEventListener("blur",u,t)});a.addEventListener("keydown",s,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",s),t)};function Ab(e){return eg(e)&&!jT()}function SM(e,t,a={}){const[s,o,u]=NT(e,a),d=h=>{const m=h.currentTarget;if(!Ab(h))return;Hc.add(m);const g=t(m,h),v=(S,j)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",b),Hc.has(m)&&Hc.delete(m),Ab(S)&&typeof g=="function"&&g(S,{success:j})},y=S=>{v(S,m===window||m===document||a.useGlobalTarget||AT(m,S.target))},b=S=>{v(S,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",b,o)};
vendor: 5,104 bytes, lines 374-382
374return s.forEach(h=>{(a.useGlobalTarget?window:h).addEventListener("pointerdown",d,o),Xp(h)&&(h.addEventListener("focus",g=>wM(g,o)),!bM(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),u}function CT(e){return VS(e)&&"ownerSVGElement"in e}function TM(e){return CT(e)&&e.tagName==="svg"}const Ct=e=>!!(e&&e.getVelocity),EM=[...wT,ct,mi],jM=e=>EM.find(bT(e)),tg=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class NM extends x.Component{getSnapshotBeforeUpdate(t){const a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){const s=a.offsetParent,o=Xp(s)&&s.offsetWidth||0,u=this.props.sizeRef.current;u.height=a.offsetHeight||0,u.width=a.offsetWidth||0,u.top=a.offsetTop,u.left=a.offsetLeft,u.right=o-u.width-u.left}return null}componentDidUpdate(){}render(){return this.props.children}}function AM({children:e,isPresent:t,anchorX:a}){const s=x.useId(),o=x.useRef(null),u=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=x.useContext(tg);return x.useInsertionEffect(()=>{const{width:h,height:m,top:g,left:v,right:y}=u.current;if(t||!o.current||!h||!m)return;const b=a==="left"?`left: ${v}`:`right: ${y}`;o.current.dataset.motionPopId=s;const S=document.createElement("style");return d&&(S.nonce=d),document.head.appendChild(S),S.sheet&&S.sheet.insertRule(` 375 [data-motion-pop-id="${s}"] { 376 position: absolute !important; 377 width: ${h}px !important; 378 height: ${m}px !important; 379 ${b}px !important; 380 top: ${g}px !important; 381 } 382 `),()=>{document.head.contains(S)&&document.head.removeChild(S)}},[t]),c.jsx(NM,{isPresent:t,childRef:o,sizeRef:u,children:x.cloneElement(e,{ref:o})})}const CM=({children:e,initial:t,isPresent:a,onExitComplete:s,custom:o,presenceAffectsLayout:u,mode:d,anchorX:h})=>{const m=kp(_M),g=x.useId();let v=!0,y=x.useMemo(()=>(v=!1,{id:g,initial:t,isPresent:a,custom:o,onExitComplete:b=>{m.set(b,!0);for(const S of m.values())if(!S)return;s&&s()},register:b=>(m.set(b,!1),()=>m.delete(b))}),[a,m,s]);return u&&v&&(y={...y}),x.useMemo(()=>{m.forEach((b,S)=>m.set(S,!1))},[a]),x.useEffect(()=>{!a&&!m.size&&s&&s()},[a]),d==="popLayout"&&(e=c.jsx(AM,{isPresent:a,anchorX:h,children:e})),c.jsx(Au.Provider,{value:y,children:e})};function _M(){return new Map}function _T(e=!0){const t=x.useContext(Au);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:s,register:o}=t,u=x.useId();x.useEffect(()=>{if(e)return o(u)},[e]);const d=x.useCallback(()=>e&&s&&s(u),[u,s,e]);return!a&&s?[!1,d]:[!0]}const Dc=e=>e.key||"";function Cb(e){const t=[];return x.Children.forEach(e,a=>{x.isValidElement(a)&&t.push(a)}),t}const bh=({children:e,custom:t,initial:a=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:u="sync",propagate:d=!1,anchorX:h="left"})=>{const[m,g]=_T(d),v=x.useMemo(()=>Cb(e),[e]),y=d&&!m?[]:v.map(Dc),b=x.useRef(!0),S=x.useRef(v),j=kp(()=>new Map),[E,A]=x.useState(v),[C,k]=x.useState(v);BS(()=>{b.current=!1,S.current=v;for(let M=0;M<C.length;M++){const z=Dc(C[M]);y.includes(z)?j.delete(z):j.get(z)!==!0&&j.set(z,!1)}},[C,y.length,y.join("-")]);const R=[];if(v!==E){let M=[...v];for(let z=0;z<C.length;z++){const G=C[z],H=Dc(G);y.includes(H)||(M.splice(z,0,G),R.push(G))}return u==="wait"&&R.length&&(M=R),k(Cb(M)),A(v),null}const{forceRender:P}=x.useContext(Rp);return c.jsx(c.Fragment,{children:C.map(M=>{const z=Dc(M),G=d&&!m?!1:v===C||y.includes(z),H=()=>{if(j.has(z))j.set(z,!0);else return;let $=!0;j.forEach(J=>{J||($=!1)}),$&&(P==null||P(),k(S.current),d&&(g==null||g()),s&&s())};return c.jsx(CM,{isPresent:G,initial:!b.current||a?void 0:!1,custom:t,presenceAffectsLayout:o,mode:u,onExitComplete:G?void 0:H,anchorX:h,children:M},z)})})},RT=x.createContext({strict:!1}),_b={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ir={};for(const e in _b)ir[e]={isEnabled:t=>_b[e].some(a=>!!t[a])};function RM(e){for(const t in e)ir[t]={...ir[t],...e[t]}}const kM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ru(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kM.has(e)}let kT=e=>!ru(e);function MM(e){typeof e=="function"&&(kT=t=>t.startsWith("on")?!ru(t):e(t))}try{MM(require("@emotion/is-prop-valid").default)}catch{}function DM(e,t,a){const s={};
vendor: 72,572 bytes, line 382
382for(const o in e)o==="values"&&typeof e.values=="object"||(kT(o)||a===!0&&ru(o)||!t&&!ru(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}function OM(e){if(typeof Proxy>"u")return e;const t=new Map,a=(...s)=>e(...s);return new Proxy(a,{get:(s,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Cu=x.createContext({});function _u(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Vo(e){return typeof e=="string"||Array.isArray(e)}const ng=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ag=["initial",...ng];function Ru(e){return _u(e.animate)||ag.some(t=>Vo(e[t]))}function MT(e){return!!(Ru(e)||e.variants)}function PM(e,t){if(Ru(e)){const{initial:a,animate:s}=e;return{initial:a===!1||Vo(a)?a:void 0,animate:Vo(s)?s:void 0}}return e.inherit!==!1?t:{}}function LM(e){const{initial:t,animate:a}=PM(e,x.useContext(Cu));return x.useMemo(()=>({initial:t,animate:a}),[Rb(t),Rb(a)])}function Rb(e){return Array.isArray(e)?e.join(" "):e}const IM=Symbol.for("motionComponentSymbol");function Gs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function UM(e,t,a){return x.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),a&&(typeof a=="function"?a(s):Gs(a)&&(a.current=s))},[t])}const ig=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),BM="framerAppearId",DT="data-"+ig(BM),OT=x.createContext({});function zM(e,t,a,s,o){var E,A;const{visualElement:u}=x.useContext(Cu),d=x.useContext(RT),h=x.useContext(Au),m=x.useContext(tg).reducedMotion,g=x.useRef(null);s=s||d.renderer,!g.current&&s&&(g.current=s(e,{visualState:t,parent:u,props:a,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const v=g.current,y=x.useContext(OT);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&VM(g.current,a,o,y);const b=x.useRef(!1);x.useInsertionEffect(()=>{v&&b.current&&v.update(a,h)});const S=a[DT],j=x.useRef(!!S&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,S))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,S)));return BS(()=>{v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),Jp.render(v.render),j.current&&v.animationState&&v.animationState.animateChanges())}),x.useEffect(()=>{v&&(!j.current&&v.animationState&&v.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,S)}),j.current=!1))}),v}function VM(e,t,a,s){const{layoutId:o,layout:u,drag:d,dragConstraints:h,layoutScroll:m,layoutRoot:g,layoutCrossfade:v}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:PT(e.parent)),e.projection.setOptions({layoutId:o,layout:u,alwaysMeasureLayout:!!d||h&&Gs(h),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,crossfade:v,layoutScroll:m,layoutRoot:g})}function PT(e){if(e)return e.options.allowProjection!==!1?e.projection:PT(e.parent)}function HM({preloadedFeatures:e,createVisualElement:t,useRender:a,useVisualState:s,Component:o}){e&&RM(e);function u(h,m){let g;const v={...x.useContext(tg),...h,layoutId:FM(h)},{isStatic:y}=v,b=LM(h),S=s(h,y);if(!y&&Mp){$M();const j=GM(v);g=j.MeasureLayout,b.visualElement=zM(o,S,v,t,j.ProjectionNode)}return c.jsxs(Cu.Provider,{value:b,children:[g&&b.visualElement?c.jsx(g,{visualElement:b.visualElement,...v}):null,a(o,h,UM(S,b.visualElement,m),S,y,b.visualElement)]})}u.displayName=`motion.${typeof o=="string"?o:`create(${o.displayName??o.name??""})`}`;const d=x.forwardRef(u);return d[IM]=o,d}function FM({layoutId:e}){const t=x.useContext(Rp).id;return t&&e!==void 0?t+"-"+e:e}function $M(e,t){x.useContext(RT).strict}function GM(e){const{drag:t,layout:a}=ir;if(!t&&!a)return{};const s={...t,...a};return{MeasureLayout:t!=null&&t.isEnabled(e)||a!=null&&a.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Ho={};function qM(e){for(const t in e)Ho[t]=e[t],zp(t)&&(Ho[t].isCSSVariable=!0)}function LT(e,{layout:t,layoutId:a}){return yr.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!Ho[e]||e==="opacity")}const KM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YM=vr.length;function WM(e,t,a){let s="",o=!0;for(let u=0;u<YM;u++){const d=vr[u],h=e[d];if(h===void 0)continue;let m=!0;if(typeof h=="number"?m=h===(d.startsWith("scale")?1:0):m=parseFloat(h)===0,!m||a){const g=ET(h,Qp[d]);if(!m){o=!1;const v=KM[d]||d;s+=`${v}(${g}) `}a&&(t[d]=g)}}return s=s.trim(),a?s=a(t,o?"":s):o&&(s="none"),s}function sg(e,t,a){const{style:s,vars:o,transformOrigin:u}=e;let d=!1,h=!1;for(const m in t){const g=t[m];if(yr.has(m)){d=!0;continue}else if(zp(m)){o[m]=g;continue}else{const v=ET(g,Qp[m]);m.startsWith("origin")?(h=!0,u[m]=v):s[m]=v}}if(t.transform||(d||a?s.transform=WM(t,e.transform,a):s.transform&&(s.transform="none")),h){const{originX:m="50%",originY:g="50%",originZ:v=0}=u;s.transformOrigin=`${m} ${g} ${v}`}}const rg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function IT(e,t,a){for(const s in t)!Ct(t[s])&&!LT(s,a)&&(e[s]=t[s])}function XM({transformTemplate:e},t){return x.useMemo(()=>{const a=rg();return sg(a,t,e),Object.assign({},a.vars,a.style)},[t])}function ZM(e,t){const a=e.style||{},s={};return IT(s,a,e),Object.assign(s,XM(e,t)),s}function QM(e,t){const a={},s=ZM(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=s,a}const JM={offset:"stroke-dashoffset",array:"stroke-dasharray"},eD={offset:"strokeDashoffset",array:"strokeDasharray"};function tD(e,t,a=1,s=0,o=!0){e.pathLength=1;const u=o?JM:eD;e[u.offset]=me.transform(-s);const d=me.transform(t),h=me.transform(a);e[u.array]=`${d} ${h}`}function UT(e,{attrX:t,attrY:a,attrScale:s,pathLength:o,pathSpacing:u=1,pathOffset:d=0,...h},m,g,v){if(sg(e,h,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:b}=e;y.transform&&(b.transform=y.transform,delete y.transform),(b.transform||y.transformOrigin)&&(b.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),b.transform&&(b.transformBox=(v==null?void 0:v.transformBox)??"fill-box",delete y.transformBox),t!==void 0&&(y.x=t),a!==void 0&&(y.y=a),s!==void 0&&(y.scale=s),o!==void 0&&tD(y,o,u,d,!1)}const BT=()=>({...rg(),attrs:{}}),zT=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nD(e,t,a,s){const o=x.useMemo(()=>{const u=BT();return UT(u,t,zT(s),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[t]);if(e.style){const u={};IT(u,e.style,e),o.style={...u,...o.style}}return o}const aD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function og(e){return typeof e!="string"||e.includes("-")?!1:!!(aD.indexOf(e)>-1||/[A-Z]/u.test(e))}function iD(e=!1){return(a,s,o,{latestValues:u},d)=>{const m=(og(a)?nD:QM)(s,u,d,a),g=DM(s,typeof a=="string",e),v=a!==x.Fragment?{...g,...m,ref:o}:{},{children:y}=s,b=x.useMemo(()=>Ct(y)?y.get():y,[y]);return x.createElement(a,{...v,children:b})}}function kb(e){const t=[{},{}];return e==null||e.values.forEach((a,s)=>{t[0][s]=a.get(),t[1][s]=a.getVelocity()}),t}function lg(e,t,a,s){if(typeof t=="function"){const[o,u]=kb(s);t=t(a!==void 0?a:e.custom,o,u)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,u]=kb(s);t=t(a!==void 0?a:e.custom,o,u)}return t}function Fc(e){return Ct(e)?e.get():e}function sD({scrapeMotionValuesFromProps:e,createRenderState:t},a,s,o){return{latestValues:rD(a,s,o,e),renderState:t()}}const VT=e=>(t,a)=>{const s=x.useContext(Cu),o=x.useContext(Au),u=()=>sD(e,t,s,o);return a?u():kp(u)};function rD(e,t,a,s){const o={},u=s(e,{});for(const b in u)o[b]=Fc(u[b]);let{initial:d,animate:h}=e;const m=Ru(e),g=MT(e);t&&g&&!m&&e.inherit!==!1&&(d===void 0&&(d=t.initial),h===void 0&&(h=t.animate));let v=a?a.initial===!1:!1;v=v||d===!1;const y=v?h:d;if(y&&typeof y!="boolean"&&!_u(y)){const b=Array.isArray(y)?y:[y];for(let S=0;S<b.length;S++){const j=lg(e,b[S]);if(j){const{transitionEnd:E,transition:A,...C}=j;for(const k in C){let R=C[k];if(Array.isArray(R)){const P=v?R.length-1:0;R=R[P]}R!==null&&(o[k]=R)}for(const k in E)o[k]=E[k]}}}return o}function cg(e,t,a){var u;const{style:s}=e,o={};for(const d in s)(Ct(s[d])||t.style&&Ct(t.style[d])||LT(d,e)||((u=a==null?void 0:a.getValue(d))==null?void 0:u.liveStyle)!==void 0)&&(o[d]=s[d]);return o}const oD={useVisualState:VT({scrapeMotionValuesFromProps:cg,createRenderState:rg})};function HT(e,t,a){const s=cg(e,t,a);for(const o in e)if(Ct(e[o])||Ct(t[o])){const u=vr.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[u]=e[o]}return s}const lD={useVisualState:VT({scrapeMotionValuesFromProps:HT,createRenderState:BT})};function cD(e,t){return function(s,{forwardMotionProps:o}={forwardMotionProps:!1}){const d={...og(s)?lD:oD,preloadedFeatures:e,useRender:iD(o),createVisualElement:t,Component:s};return HM(d)}}function Fo(e,t,a){const s=e.getProps();return lg(s,t,a!==void 0?a:s.custom,e)}const ym=e=>Array.isArray(e);function uD(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,ar(a))}function dD(e){return ym(e)?e[e.length-1]||0:e}function fD(e,t){const a=Fo(e,t);let{transitionEnd:s={},transition:o={},...u}=a||{};u={...u,...s};for(const d in u){const h=dD(u[d]);uD(e,d,h)}}function hD(e){return!!(Ct(e)&&e.add)}function xm(e,t){const a=e.getValue("willChange");if(hD(a))return a.add(t);if(!a&&Ta.WillChange){const s=new Ta.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function FT(e){return e.props[DT]}const mD=e=>e!==null;function pD(e,{repeat:t,repeatType:a="loop"},s){const o=e.filter(mD),u=t&&a!=="loop"&&t%2===1?0:o.length-1;return o[u]}const gD={type:"spring",stiffness:500,damping:25,restSpeed:10},vD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yD={type:"keyframes",duration:.8},xD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bD=(e,{keyframes:t})=>t.length>2?yD:yr.has(e)?e.startsWith("scale")?vD(t[1]):gD:xD;function wD({when:e,delay:t,delayChildren:a,staggerChildren:s,staggerDirection:o,repeat:u,repeatType:d,repeatDelay:h,from:m,elapsed:g,...v}){return!!Object.keys(v).length}const ug=(e,t,a,s={},o,u)=>d=>{const h=Zp(s,e)||{},m=h.delay||s.delay||0;let{elapsed:g=0}=s;g=g-qn(m);const v={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...h,delay:-g,onUpdate:b=>{t.set(b),h.onUpdate&&h.onUpdate(b)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:e,motionValue:t,element:u?void 0:o};wD(h)||Object.assign(v,bD(e,v)),v.duration&&(v.duration=qn(v.duration)),v.repeatDelay&&(v.repeatDelay=qn(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let y=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(v.duration=0,v.delay===0&&(y=!0)),(Ta.instantAnimations||Ta.skipAnimations)&&(y=!0,v.duration=0,v.delay=0),v.allowFlatten=!h.type&&!h.ease,y&&!u&&t.get()!==void 0){const b=pD(v.keyframes,h);if(b!==void 0){Qe.update(()=>{v.onUpdate(b),v.onComplete()});return}}return h.isSync?new Yp(v):new tM(v)};function SD({protectedKeys:e,needsAnimating:t},a){const s=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,s}function $T(e,t,{delay:a=0,transitionOverride:s,type:o}={}){let{transition:u=e.getDefaultTransition(),transitionEnd:d,...h}=t;s&&(u=s);const m=[],g=o&&e.animationState&&e.animationState.getState()[o];for(const v in h){const y=e.getValue(v,e.latestValues[v]??null),b=h[v];if(b===void 0||g&&SD(g,v))continue;const S={delay:a,...Zp(u||{},v)},j=y.get();if(j!==void 0&&!y.isAnimating&&!Array.isArray(b)&&b===j&&!S.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const C=FT(e);if(C){const k=window.MotionHandoffAnimation(C,v,Qe);k!==null&&(S.startTime=k,E=!0)}}xm(e,v),y.start(ug(v,y,b,e.shouldReduceMotion&&xT.has(v)?{type:!1}:S,e,E));const A=y.animation;A&&m.push(A)}return d&&Promise.all(m).then(()=>{Qe.update(()=>{d&&fD(e,d)})}),m}function bm(e,t,a={}){var m;const s=Fo(e,t,a.type==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};a.transitionOverride&&(o=a.transitionOverride);const u=s?()=>Promise.all($T(e,s,a)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(g=0)=>{const{delayChildren:v=0,staggerChildren:y,staggerDirection:b}=o;return TD(e,t,v+g,y,b,a)}:()=>Promise.resolve(),{when:h}=o;if(h){const[g,v]=h==="beforeChildren"?[u,d]:[d,u];return g().then(()=>v())}else return Promise.all([u(),d(a.delay)])}function TD(e,t,a=0,s=0,o=1,u){const d=[],h=(e.variantChildren.size-1)*s,m=o===1?(g=0)=>g*s:(g=0)=>h-g*s;return Array.from(e.variantChildren).sort(ED).forEach((g,v)=>{g.notify("AnimationStart",t),d.push(bm(g,t,{...u,delay:a+m(v)}).then(()=>g.notify("AnimationComplete",t)))}),Promise.all(d)}function ED(e,t){return e.sortNodePosition(t)}function jD(e,t,a={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const o=t.map(u=>bm(e,u,a));s=Promise.all(o)}else if(typeof t=="string")s=bm(e,t,a);else{const o=typeof t=="function"?Fo(e,t,a.custom):t;s=Promise.all($T(e,o,a))}return s.then(()=>{e.notify("AnimationComplete",t)})}function GT(e,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==e.length)return!1;for(let s=0;s<a;s++)if(t[s]!==e[s])return!1;return!0}const ND=ag.length;function qT(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?qT(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const t={};for(let a=0;a<ND;a++){const s=ag[a],o=e.props[s];(Vo(o)||o===!1)&&(t[s]=o)}return t}const AD=[...ng].reverse(),CD=ng.length;function _D(e){return t=>Promise.all(t.map(({animation:a,options:s})=>jD(e,a,s)))}function RD(e){let t=_D(e),a=Mb(),s=!0;const o=m=>(g,v)=>{var b;const y=Fo(e,v,m==="exit"?(b=e.presenceContext)==null?void 0:b.custom:void 0);if(y){const{transition:S,transitionEnd:j,...E}=y;g={...g,...E,...j}}return g};function u(m){t=m(e)}function d(m){const{props:g}=e,v=qT(e.parent)||{},y=[],b=new Set;let S={},j=1/0;for(let A=0;A<CD;A++){const C=AD[A],k=a[C],R=g[C]!==void 0?g[C]:v[C],P=Vo(R),M=C===m?k.isActive:null;M===!1&&(j=A);let z=R===v[C]&&R!==g[C]&&P;if(z&&s&&e.manuallyAnimateOnMount&&(z=!1),k.protectedKeys={...S},!k.isActive&&M===null||!R&&!k.prevProp||_u(R)||typeof R=="boolean")continue;const G=kD(k.prevProp,R);let H=G||C===m&&k.isActive&&!z&&P||A>j&&P,$=!1;const J=Array.isArray(R)?R:[R];let de=J.reduce(o(C),{});M===!1&&(de={});const{prevResolvedValues:Ee={}}=k,he={...Ee,...de},pe=ee=>{H=!0,b.has(ee)&&($=!0,b.delete(ee)),k.needsAnimating[ee]=!0;const F=e.getValue(ee);F&&(F.liveStyle=!1)};for(const ee in he){const F=de[ee],ce=Ee[ee];if(S.hasOwnProperty(ee))continue;let N=!1;ym(F)&&ym(ce)?N=!GT(F,ce):N=F!==ce,N?F!=null?pe(ee):b.add(ee):F!==void 0&&b.has(ee)?pe(ee):k.protectedKeys[ee]=!0}k.prevProp=R,k.prevResolvedValues=de,k.isActive&&(S={...S,...de}),s&&e.blockInitialAnimation&&(H=!1),H&&(!(z&&G)||$)&&y.push(...J.map(ee=>({animation:ee,options:{type:C}})))}if(b.size){const A={};if(typeof g.initial!="boolean"){const C=Fo(e,Array.isArray(g.initial)?g.initial[0]:g.initial);C&&C.transition&&(A.transition=C.transition)}b.forEach(C=>{const k=e.getBaseTarget(C),R=e.getValue(C);R&&(R.liveStyle=!0),A[C]=k??null}),y.push({animation:A})}let E=!!y.length;return s&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(E=!1),s=!1,E?t(y):Promise.resolve()}function h(m,g){var y;if(a[m].isActive===g)return Promise.resolve();(y=e.variantChildren)==null||y.forEach(b=>{var S;return(S=b.animationState)==null?void 0:S.setActive(m,g)}),a[m].isActive=g;const v=d(m);for(const b in a)a[b].protectedKeys={};return v}return{animateChanges:d,setActive:h,setAnimateFunction:u,getState:()=>a,reset:()=>{a=Mb(),s=!0}}}function kD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!GT(t,e):!1}function $i(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mb(){return{animate:$i(!0),whileInView:$i(),whileHover:$i(),whileTap:$i(),whileDrag:$i(),whileFocus:$i(),exit:$i()}}class yi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class MD extends yi{constructor(t){super(t),t.animationState||(t.animationState=RD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();_u(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let DD=0;class OD extends yi{constructor(){super(...arguments),this.id=DD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const o=this.node.animationState.setActive("exit",!t);a&&!t&&o.then(()=>{a(this.id)})}mount(){const{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const PD={animation:{Feature:MD},exit:{Feature:OD}};function $o(e,t,a,s={passive:!0}){return e.addEventListener(t,a,s),()=>e.removeEventListener(t,a)}function al(e){return{point:{x:e.pageX,y:e.pageY}}}const LD=e=>t=>eg(t)&&e(t,al(t));function ko(e,t,a,s){return $o(e,t,LD(a),s)}function KT({top:e,left:t,right:a,bottom:s}){return{x:{min:t,max:a},y:{min:e,max:s}}}function ID({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function UD(e,t){if(!t)return e;const a=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}const YT=1e-4,BD=1-YT,zD=1+YT,WT=.01,VD=0-WT,HD=0+WT;function Ot(e){return e.max-e.min}function FD(e,t,a){return Math.abs(e-t)<=a}function Db(e,t,a,s=.5){e.origin=s,e.originPoint=Ze(t.min,t.max,e.origin),e.scale=Ot(a)/Ot(t),e.translate=Ze(a.min,a.max,e.origin)-e.originPoint,(e.scale>=BD&&e.scale<=zD||isNaN(e.scale))&&(e.scale=1),(e.translate>=VD&&e.translate<=HD||isNaN(e.translate))&&(e.translate=0)}function Mo(e,t,a,s){Db(e.x,t.x,a.x,s?s.originX:void 0),Db(e.y,t.y,a.y,s?s.originY:void 0)}function Ob(e,t,a){e.min=a.min+t.min,e.max=e.min+Ot(t)}function $D(e,t,a){Ob(e.x,t.x,a.x),Ob(e.y,t.y,a.y)}function Pb(e,t,a){e.min=t.min-a.min,e.max=e.min+Ot(t)}function Do(e,t,a){Pb(e.x,t.x,a.x),Pb(e.y,t.y,a.y)}const Lb=()=>({translate:0,scale:1,origin:0,originPoint:0}),qs=()=>({x:Lb(),y:Lb()}),Ib=()=>({min:0,max:0}),it=()=>({x:Ib(),y:Ib()});function yn(e){return[e("x"),e("y")]}function wh(e){return e===void 0||e===1}function wm({scale:e,scaleX:t,scaleY:a}){return!wh(e)||!wh(t)||!wh(a)}function Gi(e){return wm(e)||XT(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function XT(e){return Ub(e.x)||Ub(e.y)}function Ub(e){return e&&e!=="0%"}function ou(e,t,a){const s=e-a,o=t*s;return a+o}function Bb(e,t,a,s,o){return o!==void 0&&(e=ou(e,o,s)),ou(e,a,s)+t}function Sm(e,t=0,a=1,s,o){e.min=Bb(e.min,t,a,s,o),e.max=Bb(e.max,t,a,s,o)}function ZT(e,{x:t,y:a}){Sm(e.x,t.translate,t.scale,t.originPoint),Sm(e.y,a.translate,a.scale,a.originPoint)}const zb=.999999999999,Vb=1.0000000000001;function GD(e,t,a,s=!1){const o=a.length;if(!o)return;t.x=t.y=1;let u,d;for(let h=0;h<o;h++){u=a[h],d=u.projectionDelta;const{visualElement:m}=u.options;m&&m.props.style&&m.props.style.display==="contents"||(s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ys(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),d&&(t.x*=d.x.scale,t.y*=d.y.scale,ZT(e,d)),s&&Gi(u.latestValues)&&Ys(e,u.latestValues))}t.x<Vb&&t.x>zb&&(t.x=1),t.y<Vb&&t.y>zb&&(t.y=1)}function Ks(e,t){e.min=e.min+t,e.max=e.max+t}function Hb(e,t,a,s,o=.5){const u=Ze(e.min,e.max,o);Sm(e,t,a,u,s)}function Ys(e,t){Hb(e.x,t.x,t.scaleX,t.scale,t.originX),Hb(e.y,t.y,t.scaleY,t.scale,t.originY)}function QT(e,t){return KT(UD(e.getBoundingClientRect(),t))}function qD(e,t,a){const s=QT(e,a),{scroll:o}=t;return o&&(Ks(s.x,o.offset.x),Ks(s.y,o.offset.y)),s}const JT=({current:e})=>e?e.ownerDocument.defaultView:null,Fb=(e,t)=>Math.abs(e-t);function KD(e,t){const a=Fb(e.x,t.x),s=Fb(e.y,t.y);return Math.sqrt(a**2+s**2)}class eE{constructor(t,a,{transformPagePoint:s,contextWindow:o,dragSnapToOrigin:u=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Th(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,S=KD(y.offset,{x:0,y:0})>=3;if(!b&&!S)return;const{point:j}=y,{timestamp:E}=Tt;this.history.push({...j,timestamp:E});const{onStart:A,onMove:C}=this.handlers;b||(A&&A(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,y)},this.handlePointerMove=(y,b)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=Sh(b,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(y,b)=>{this.end();const{onEnd:S,onSessionEnd:j,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=Th(y.type==="pointercancel"?this.lastMoveEventInfo:Sh(b,this.transformPagePoint),this.history);this.startEvent&&S&&S(y,A),j&&j(y,A)},!eg(t))return;this.dragSnapToOrigin=u,this.handlers=a,this.transformPagePoint=s,this.contextWindow=o||window;const d=al(t),h=Sh(d,this.transformPagePoint),{point:m}=h,{timestamp:g}=Tt;this.history=[{...m,timestamp:g}];const{onSessionStart:v}=a;v&&v(t,Th(h,this.history)),this.removeListeners=el(ko(this.contextWindow,"pointermove",this.handlePointerMove),ko(this.contextWindow,"pointerup",this.handlePointerUp),ko(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),hi(this.updatePoint)}}function Sh(e,t){return t?{point:t(e.point)}:e}function $b(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Th({point:e},t){return{point:e,delta:$b(e,tE(t)),offset:$b(e,YD(t)),velocity:WD(t,.1)}}function YD(e){return e[0]}function tE(e){return e[e.length-1]}function WD(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,s=null;const o=tE(e);for(;a>=0&&(s=e[a],!(o.timestamp-s.timestamp>qn(t)));)a--;if(!s)return{x:0,y:0};const u=Kn(o.timestamp-s.timestamp);if(u===0)return{x:0,y:0};const d={x:(o.x-s.x)/u,y:(o.y-s.y)/u};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function XD(e,{min:t,max:a},s){return t!==void 0&&e<t?e=s?Ze(t,e,s.min):Math.max(e,t):a!==void 0&&e>a&&(e=s?Ze(a,e,s.max):Math.min(e,a)),e}function Gb(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function ZD(e,{top:t,left:a,bottom:s,right:o}){return{x:Gb(e.x,a,o),y:Gb(e.y,t,s)}}function qb(e,t){let a=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,s]=[s,a]),{min:a,max:s}}function QD(e,t){return{x:qb(e.x,t.x),y:qb(e.y,t.y)}}function JD(e,t){let a=.5;const s=Ot(e),o=Ot(t);return o>s?a=Uo(t.min,t.max-s,e.min):s>o&&(a=Uo(e.min,e.max-o,t.min)),Sa(0,1,a)}function eO(e,t){const a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}const Tm=.35;function tO(e=Tm){return e===!1?e=0:e===!0&&(e=Tm),{x:Kb(e,"left","right"),y:Kb(e,"top","bottom")}}function Kb(e,t,a){return{min:Yb(e,t),max:Yb(e,a)}}function Yb(e,t){return typeof e=="number"?e:e[t]||0}const nO=new WeakMap;class aO{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=it(),this.visualElement=t}start(t,{snapToCursor:a=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const o=v=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(al(v).point)},u=(v,y)=>{const{drag:b,dragPropagation:S,onDragStart:j}=this.getProps();if(b&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vM(b),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yn(A=>{let C=this.getAxisMotionValue(A).get()||0;if(Yn.test(C)){const{projection:k}=this.visualElement;if(k&&k.layout){const R=k.layout.layoutBox[A];R&&(C=Ot(R)*(parseFloat(C)/100))}}this.originPoint[A]=C}),j&&Qe.postRender(()=>j(v,y)),xm(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},d=(v,y)=>{const{dragPropagation:b,dragDirectionLock:S,onDirectionLock:j,onDrag:E}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:A}=y;if(S&&this.currentDirection===null){this.currentDirection=iO(A),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",y.point,A),this.updateAxis("y",y.point,A),this.visualElement.render(),E&&E(v,y)},h=(v,y)=>this.stop(v,y),m=()=>yn(v=>{var y;return this.getAnimationState(v)==="paused"&&((y=this.getAxisMotionValue(v).animation)==null?void 0:y.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new eE(t,{onSessionStart:o,onStart:u,onMove:d,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,contextWindow:JT(this.visualElement)})}stop(t,a){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:o}=a;this.startAnimation(o);const{onDragEnd:u}=this.getProps();u&&Qe.postRender(()=>u(t,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(t,a,s){const{drag:o}=this.getProps();if(!s||!Oc(t,o,this.currentDirection))return;const u=this.getAxisMotionValue(t);let d=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(d=XD(d,this.constraints[t],this.elastic[t])),u.set(d)}resolveConstraints(){var u;const{dragConstraints:t,dragElastic:a}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(u=this.visualElement.projection)==null?void 0:u.layout,o=this.constraints;t&&Gs(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=ZD(s.layoutBox,t):this.constraints=!1,this.elastic=tO(a),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&yn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=eO(s.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Gs(t))return!1;const s=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=qD(s,o.root,this.visualElement.getTransformPagePoint());let d=QD(o.layout.layoutBox,u);if(a){const h=a(ID(d));this.hasMutatedConstraints=!!h,h&&(d=KT(h))}return d}startAnimation(t){const{drag:a,dragMomentum:s,dragElastic:o,dragTransition:u,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},g=yn(v=>{if(!Oc(v,a,this.currentDirection))return;let y=m&&m[v]||{};d&&(y={min:0,max:0});const b=o?200:1e6,S=o?40:1e7,j={type:"inertia",velocity:s?t[v]:0,bounceStiffness:b,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...u,...y};return this.startAxisValueAnimation(v,j)});return Promise.all(g).then(h)}startAxisValueAnimation(t,a){const s=this.getAxisMotionValue(t);return xm(this.visualElement,t),s.start(ug(t,s,0,a,this.visualElement,!1))}stopAnimation(){yn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){yn(t=>{var a;return(a=this.getAxisMotionValue(t).animation)==null?void 0:a.pause()})}getAnimationState(t){var a;return(a=this.getAxisMotionValue(t).animation)==null?void 0:a.state}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),o=s[a];return o||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){yn(a=>{const{drag:s}=this.getProps();if(!Oc(a,s,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(a);if(o&&o.layout){const{min:d,max:h}=o.layout.layoutBox[a];u.set(t[a]-Ze(d,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:s}=this.visualElement;if(!Gs(a)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};yn(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const m=h.get();o[d]=JD({min:m,max:m},this.constraints[d])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),yn(d=>{if(!Oc(d,t,null))return;const h=this.getAxisMotionValue(d),{min:m,max:g}=this.constraints[d];h.set(Ze(m,g,o[d]))})}addListeners(){if(!this.visualElement.current)return;nO.set(this.visualElement,this);const t=this.visualElement.current,a=ko(t,"pointerdown",m=>{const{drag:g,dragListener:v=!0}=this.getProps();g&&v&&this.start(m)}),s=()=>{const{dragConstraints:m}=this.getProps();Gs(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,u=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Qe.read(s);const d=$o(window,"resize",()=>this.scalePositionWithinConstraints()),h=o.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(yn(v=>{const y=this.getAxisMotionValue(v);y&&(this.originPoint[v]+=m[v].translate,y.set(y.get()+m[v].translate))}),this.visualElement.render())}));return()=>{d(),a(),u(),h&&h()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:d=Tm,dragMomentum:h=!0}=t;return{...t,drag:a,dragDirectionLock:s,dragPropagation:o,dragConstraints:u,dragElastic:d,dragMomentum:h}}}function Oc(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function iO(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}class sO extends yi{constructor(t){super(t),this.removeGroupControls=bn,this.removeListeners=bn,this.controls=new aO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bn}unmount(){this.removeGroupControls(),this.removeListeners()}}const Wb=e=>(t,a)=>{e&&Qe.postRender(()=>e(t,a))};class rO extends yi{constructor(){super(...arguments),this.removePointerDownListener=bn}onPointerDown(t){this.session=new eE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:JT(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:Wb(t),onStart:Wb(a),onMove:s,onEnd:(u,d)=>{delete this.session,o&&Qe.postRender(()=>o(u,d))}}}mount(){this.removePointerDownListener=ko(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const $c={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const To={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const a=Xb(e,t.target.x),s=Xb(e,t.target.y);return`${a}% ${s}%`}},oO={correct:(e,{treeScale:t,projectionDelta:a})=>{const s=e,o=mi.parse(e);if(o.length>5)return s;const u=mi.createTransformer(e),d=typeof o[0]!="number"?1:0,h=a.x.scale*t.x,m=a.y.scale*t.y;o[0+d]/=h,o[1+d]/=m;const g=Ze(h,m,.5);return typeof o[2+d]=="number"&&(o[2+d]/=g),typeof o[3+d]=="number"&&(o[3+d]/=g),u(o)}};class lO extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:s,layoutId:o}=this.props,{projection:u}=t;qM(cO),u&&(a.group&&a.group.add(u),s&&s.register&&o&&s.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),$c.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:s,drag:o,isPresent:u}=this.props,{projection:d}=s;return d&&(d.isPresent=u,o||t.layoutDependency!==a||a===void 0||t.isPresent!==u?d.willUpdate():this.safeToRemove(),t.isPresent!==u&&(u?d.promote():d.relegate()||Qe.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Jp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:s}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nE(e){const[t,a]=_T(),s=x.useContext(Rp);return c.jsx(lO,{...e,layoutGroup:s,switchLayoutGroup:x.useContext(OT),isPresent:t,safeToRemove:a})}const cO={borderRadius:{...To,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:To,borderTopRightRadius:To,borderBottomLeftRadius:To,borderBottomRightRadius:To,boxShadow:oO};function uO(e,t,a){const s=Ct(e)?e:ar(e);return s.start(ug("",s,t,a)),s.animation}const dO=(e,t)=>e.depth-t.depth;class fO{constructor(){this.children=[],this.isDirty=!1}add(t){Dp(this.children,t),this.isDirty=!0}remove(t){Op(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dO),this.isDirty=!1,this.children.forEach(t)}}function hO(e,t){const a=Ht.now(),s=({timestamp:o})=>{const u=o-a;u>=t&&(hi(s),e(u-t))};return Qe.setup(s,!0),()=>hi(s)}const aE=["TopLeft","TopRight","BottomLeft","BottomRight"],mO=aE.length,Zb=e=>typeof e=="string"?parseFloat(e):e,Qb=e=>typeof e=="number"||me.test(e);function pO(e,t,a,s,o,u){o?(e.opacity=Ze(0,a.opacity??1,gO(s)),e.opacityExit=Ze(t.opacity??1,0,vO(s))):u&&(e.opacity=Ze(t.opacity??1,a.opacity??1,s));for(let d=0;d<mO;d++){const h=`border${aE[d]}Radius`;let m=Jb(t,h),g=Jb(a,h);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||Qb(m)===Qb(g)?(e[h]=Math.max(Ze(Zb(m),Zb(g),s),0),(Yn.test(g)||Yn.test(m))&&(e[h]+="%")):e[h]=g}(t.rotate||a.rotate)&&(e.rotate=Ze(t.rotate||0,a.rotate||0,s))}function Jb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const gO=iE(0,.5,XS),vO=iE(.5,.95,bn);function iE(e,t,a){return s=>s<e?0:s>t?1:a(Uo(e,t,s))}function e1(e,t){e.min=t.min,e.max=t.max}function vn(e,t){e1(e.x,t.x),e1(e.y,t.y)}function t1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function n1(e,t,a,s,o){return e-=t,e=ou(e,1/a,s),o!==void 0&&(e=ou(e,1/o,s)),e}function yO(e,t=0,a=1,s=.5,o,u=e,d=e){if(Yn.test(t)&&(t=parseFloat(t),t=Ze(d.min,d.max,t/100)-d.min),typeof t!="number")return;let h=Ze(u.min,u.max,s);e===u&&(h-=t),e.min=n1(e.min,t,a,h,o),e.max=n1(e.max,t,a,h,o)}function a1(e,t,[a,s,o],u,d){yO(e,t[a],t[s],t[o],t.scale,u,d)}const xO=["x","scaleX","originX"],bO=["y","scaleY","originY"];function i1(e,t,a,s){a1(e.x,t,xO,a?a.x:void 0,s?s.x:void 0),a1(e.y,t,bO,a?a.y:void 0,s?s.y:void 0)}function s1(e){return e.translate===0&&e.scale===1}function sE(e){return s1(e.x)&&s1(e.y)}function r1(e,t){return e.min===t.min&&e.max===t.max}function wO(e,t){return r1(e.x,t.x)&&r1(e.y,t.y)}function o1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rE(e,t){return o1(e.x,t.x)&&o1(e.y,t.y)}function l1(e){return Ot(e.x)/Ot(e.y)}function c1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class SO{constructor(){this.members=[]}add(t){Dp(this.members,t),t.scheduleRender()}remove(t){if(Op(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){const a=this.members.findIndex(o=>t===o);if(a===0)return!1;let s;for(let o=a;o>=0;o--){const u=this.members[o];if(u.isPresent!==!1){s=u;break}}return s?(this.promote(s),!0):!1}promote(t,a){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,a&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:a,resumingFrom:s}=t;a.onExitComplete&&a.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function TO(e,t,a){let s="";const o=e.x.translate/t.x,u=e.y.translate/t.y,d=(a==null?void 0:a.z)||0;if((o||u||d)&&(s=`translate3d(${o}px, ${u}px, ${d}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:g,rotate:v,rotateX:y,rotateY:b,skewX:S,skewY:j}=a;g&&(s=`perspective(${g}px) ${s}`),v&&(s+=`rotate(${v}deg) `),y&&(s+=`rotateX(${y}deg) `),b&&(s+=`rotateY(${b}deg) `),S&&(s+=`skewX(${S}deg) `),j&&(s+=`skewY(${j}deg) `)}const h=e.x.scale*t.x,m=e.y.scale*t.y;return(h!==1||m!==1)&&(s+=`scale(${h}, ${m})`),s||"none"}const Eh=["","X","Y","Z"],EO={visibility:"hidden"},jO=1e3;let NO=0;function jh(e,t,a,s){const{latestValues:o}=t;o[e]&&(a[e]=o[e],t.setStaticValue(e,0),s&&(s[e]=0))}function oE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const a=FT(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:o,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Qe,!(o||u))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&oE(s)}function lE({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(d={},h=t==null?void 0:t()){this.id=NO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(_O),this.nodes.forEach(OO),this.nodes.forEach(PO),this.nodes.forEach(RO)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new fO)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Ip),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const m=this.eventHandlers.get(d);m&&m.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=CT(d)&&!TM(d),this.instance=d;const{layoutId:h,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),e){let v;const y=()=>this.root.updateBlockedByResize=!1;e(d,()=>{this.root.updateBlockedByResize=!0,v&&v(),v=hO(y,250),$c.hasAnimatedSinceResize&&($c.hasAnimatedSinceResize=!1,this.nodes.forEach(d1))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||m)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:y,hasRelativeLayoutChanged:b,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||g.getDefaultTransition()||zO,{onLayoutAnimationStart:E,onLayoutAnimationComplete:A}=g.getProps(),C=!this.targetLayout||!rE(this.targetLayout,S),k=!y&&b;if(this.options.layoutRoot||this.resumeFrom||k||y&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...Zp(j,"layout"),onPlay:E,onComplete:A};(g.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(v,k)}else y||d1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(LO),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&oE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const y=this.path[v];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(u1);return}this.isUpdating||this.nodes.forEach(MO),this.isUpdating=!1,this.nodes.forEach(DO),this.nodes.forEach(AO),this.nodes.forEach(CO),this.clearAllSnapshots();const h=Ht.now();Tt.delta=Sa(0,1e3/60,h-Tt.timestamp),Tt.timestamp=h,Tt.isProcessing=!0,mh.update.process(Tt),mh.preRender.process(Tt),mh.render.process(Tt),Tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Jp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(kO),this.sharedNodes.forEach(IO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ot(this.snapshot.measuredBox.x)&&!Ot(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=it(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h&&this.instance){const m=s(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:m,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!o)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!sE(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,v=g!==this.prevTransformTemplateValue;d&&this.instance&&(h||Gi(this.latestValues)||v)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return d&&(m=this.removeTransform(m)),VO(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:d}=this.options;if(!d)return it();const h=d.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(HO))){const{scroll:v}=this.root;v&&(Ks(h.x,v.offset.x),Ks(h.y,v.offset.y))}return h}removeElementScroll(d){var m;const h=it();if(vn(h,d),(m=this.scroll)!=null&&m.wasRoot)return h;for(let g=0;g<this.path.length;g++){const v=this.path[g],{scroll:y,options:b}=v;v!==this.root&&y&&b.layoutScroll&&(y.wasRoot&&vn(h,d),Ks(h.x,y.offset.x),Ks(h.y,y.offset.y))}return h}applyTransform(d,h=!1){const m=it();vn(m,d);for(let g=0;g<this.path.length;g++){const v=this.path[g];!h&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Ys(m,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),Gi(v.latestValues)&&Ys(m,v.latestValues)}return Gi(this.latestValues)&&Ys(m,this.latestValues),m}removeTransform(d){const h=it();vn(h,d);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!g.instance||!Gi(g.latestValues))continue;wm(g.latestValues)&&g.updateSnapshot();const v=it(),y=g.measurePageBox();vn(v,y),i1(h,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,v)}return Gi(this.latestValues)&&i1(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var b;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(d||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:y}=this.options;if(!(!this.layout||!(v||y))){if(this.resolvedRelativeTargetAt=Tt.timestamp,!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=it(),this.relativeTargetOrigin=it(),Do(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),vn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=it(),this.targetWithTransforms=it()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$D(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vn(this.target,this.layout.layoutBox),ZT(this.target,this.targetDelta)):vn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const S=this.getClosestProjectingParent();S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=it(),this.relativeTargetOrigin=it(),Do(this.relativeTargetOrigin,this.target,S.target),vn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||wm(this.parent.latestValues)||XT(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var j;const d=this.getLead(),h=!!this.resumingFrom||this!==d;let m=!0;if((this.isProjectionDirty||(j=this.parent)!=null&&j.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Tt.timestamp&&(m=!1),m)return;const{layout:g,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||v))return;vn(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,b=this.treeScale.y;GD(this.layoutCorrected,this.treeScale,this.path,h),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=it());const{target:S}=d;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(t1(this.prevProjectionDelta.x,this.projectionDelta.x),t1(this.prevProjectionDelta.y,this.projectionDelta.y)),Mo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==b||!c1(this.projectionDelta.x,this.prevProjectionDelta.x)||!c1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),d){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qs(),this.projectionDelta=qs(),this.projectionDeltaWithTransform=qs()}setAnimationOrigin(d,h=!1){const m=this.snapshot,g=m?m.latestValues:{},v={...this.latestValues},y=qs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const b=it(),S=m?m.source:void 0,j=this.layout?this.layout.source:void 0,E=S!==j,A=this.getStack(),C=!A||A.members.length<=1,k=!!(E&&!C&&this.options.crossfade===!0&&!this.path.some(BO));this.animationProgress=0;let R;this.mixTargetDelta=P=>{const M=P/1e3;f1(y.x,d.x,M),f1(y.y,d.y,M),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Do(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),UO(this.relativeTarget,this.relativeTargetOrigin,b,M),R&&wO(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=it()),vn(R,this.relativeTarget)),E&&(this.animationValues=v,pO(v,g,this.latestValues,M,k,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var h,m,g;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(g=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||g.stop(),this.pendingAnimation&&(hi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{$c.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ar(0)),this.currentAnimation=uO(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:v=>{this.mixTargetDelta(v),d.onUpdate&&d.onUpdate(v)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:m,layout:g,latestValues:v}=d;if(!(!h||!m||!g)){if(this!==d&&this.layout&&g&&cE(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||it();const y=Ot(this.layout.layoutBox.x);m.x.min=d.target.x.min,m.x.max=m.x.min+y;const b=Ot(this.layout.layoutBox.y);m.y.min=d.target.y.min,m.y.max=m.y.min+b}vn(h,m),Ys(h,v),Mo(this.projectionDeltaWithTransform,this.layoutCorrected,h,v)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new SO),this.sharedNodes.get(d).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var h;const{layoutId:d}=this.options;return d?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:d}=this.options;return d?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:m}=d;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const g={};m.z&&jh("z",d,g,this.animationValues);for(let v=0;v<Eh.length;v++)jh(`rotate${Eh[v]}`,d,g,this.animationValues),jh(`skew${Eh[v]}`,d,g,this.animationValues);d.render();for(const v in g)d.setStaticValue(v,g[v]),this.animationValues&&(this.animationValues[v]=g[v]);d.scheduleRender()}getProjectionStyles(d){if(!this.instance||this.isSVG)return;if(!this.isVisible)return EO;const h={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=Fc(d==null?void 0:d.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none",h;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const S={};return this.options.layoutId&&(S.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,S.pointerEvents=Fc(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!Gi(this.latestValues)&&(S.transform=m?m({},""):"none",this.hasProjected=!1),S}const v=g.animationValues||g.latestValues;this.applyTransformsToTarget(),h.transform=TO(this.projectionDeltaWithTransform,this.treeScale,v),m&&(h.transform=m(v,h.transform));const{x:y,y:b}=this.projectionDelta;h.transformOrigin=`${y.origin*100}% ${b.origin*100}% 0`,g.animationValues?h.opacity=g===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:h.opacity=g===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const S in Ho){if(v[S]===void 0)continue;const{correct:j,applyTo:E,isCSSVariable:A}=Ho[S],C=h.transform==="none"?v[S]:j(v[S],g);if(E){const k=E.length;for(let R=0;R<k;R++)h[E[R]]=C}else A?this.options.visualElement.renderState.vars[S]=C:h[S]=C}return this.options.layoutId&&(h.pointerEvents=g===this?Fc(d==null?void 0:d.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(u1),this.root.sharedNodes.clear()}}}function AO(e){e.updateLayout()}function CO(e){var a;const t=((a=e.resumeFrom)==null?void 0:a.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=e.layout,{animationType:u}=e.options,d=t.source!==e.layout.source;u==="size"?yn(y=>{const b=d?t.measuredBox[y]:t.layoutBox[y],S=Ot(b);b.min=s[y].min,b.max=b.min+S}):cE(u,t.layoutBox,s)&&yn(y=>{const b=d?t.measuredBox[y]:t.layoutBox[y],S=Ot(s[y]);b.max=b.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+S)});const h=qs();Mo(h,s,t.layoutBox);const m=qs();d?Mo(m,e.applyTransform(o,!0),t.measuredBox):Mo(m,s,t.layoutBox);const g=!sE(h);let v=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:b,layout:S}=y;if(b&&S){const j=it();Do(j,t.layoutBox,b.layoutBox);const E=it();Do(E,s,S.layoutBox),rE(j,E)||(v=!0),y.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=j,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:m,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:v})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function _O(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function RO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function kO(e){e.clearSnapshot()}function u1(e){e.clearMeasurements()}function MO(e){e.isLayoutDirty=!1}function DO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function d1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function OO(e){e.resolveTargetDelta()}function PO(e){e.calcProjection()}function LO(e){e.resetSkewAndRotation()}function IO(e){e.removeLeadSnapshot()}function f1(e,t,a){e.translate=Ze(t.translate,0,a),e.scale=Ze(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function h1(e,t,a,s){e.min=Ze(t.min,a.min,s),e.max=Ze(t.max,a.max,s)}function UO(e,t,a,s){h1(e.x,t.x,a.x,s),h1(e.y,t.y,a.y,s)}function BO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zO={duration:.45,ease:[.4,0,.1,1]},m1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),p1=m1("applewebkit/")&&!m1("chrome/")?Math.round:bn;function g1(e){e.min=p1(e.min),e.max=p1(e.max)}function VO(e){g1(e.x),g1(e.y)}function cE(e,t,a){return e==="position"||e==="preserve-aspect"&&!FD(l1(t),l1(a),.2)}function HO(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const FO=lE({attachResizeListener:(e,t)=>$o(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Nh={current:void 0},uE=lE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Nh.current){const e=new FO({});e.mount(window),e.setOptions({layoutScroll:!0}),Nh.current=e}return Nh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$O={pan:{Feature:rO},drag:{Feature:sO,ProjectionNode:uE,MeasureLayout:nE}};function v1(e,t,a){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",a==="Start");const o="onHover"+a,u=s[o];u&&Qe.postRender(()=>u(t,al(t)))}class GO extends yi{mount(){const{current:t}=this.node;t&&(this.unmount=yM(t,(a,s)=>(v1(this.node,s,"Start"),o=>v1(this.node,o,"End"))))}unmount(){}}class qO extends yi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=el($o(this.node.current,"focus",()=>this.onFocus()),$o(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function y1(e,t,a){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",a==="Start");const o="onTap"+(a==="End"?"":a),u=s[o];u&&Qe.postRender(()=>u(t,al(t)))}class KO extends yi{mount(){const{current:t}=this.node;t&&(this.unmount=SM(t,(a,s)=>(y1(this.node,s,"Start"),(o,{success:u})=>y1(this.node,o,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Em=new WeakMap,Ah=new WeakMap,YO=e=>{const t=Em.get(e.target);t&&t(e)},WO=e=>{e.forEach(YO)};function XO({root:e,...t}){const a=e||document;Ah.has(a)||Ah.set(a,{});const s=Ah.get(a),o=JSON.stringify(t);return s[o]||(s[o]=new IntersectionObserver(WO,{root:e,...t})),s[o]}function ZO(e,t,a){const s=XO(t);return Em.set(e,a),s.observe(e),()=>{Em.delete(e),s.unobserve(e)}}const QO={some:0,all:1};class JO extends yi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:a,margin:s,amount:o="some",once:u}=t,d={root:a?a.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:QO[o]},h=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,u&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:v,onViewportLeave:y}=this.node.getProps(),b=g?v:y;b&&b(m)};return ZO(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(e8(t,a))&&this.startObserver()}unmount(){}}function e8({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}const t8={inView:{Feature:JO},tap:{Feature:KO},focus:{Feature:qO},hover:{Feature:GO}},n8={layout:{ProjectionNode:uE,MeasureLayout:nE}},jm={current:null},dE={current:!1};function a8(){if(dE.current=!0,!!Mp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>jm.current=e.matches;e.addListener(t),t()}else jm.current=!1}const i8=new WeakMap;function s8(e,t,a){for(const s in t){const o=t[s],u=a[s];if(Ct(o))e.addValue(s,o);else if(Ct(u))e.addValue(s,ar(o,{owner:e}));else if(u!==o)if(e.hasValue(s)){const d=e.getValue(s);d.liveStyle===!0?d.jump(o):d.hasAnimated||d.set(o)}else{const d=e.getStaticValue(s);e.addValue(s,ar(d!==void 0?d:o,{owner:e}))}}for(const s in a)t[s]===void 0&&e.removeValue(s);return t}const x1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class r8{scrapeMotionValuesFromProps(t,a,s){return{}}constructor({parent:t,props:a,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:u,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Wp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Ht.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Qe.render(this.render,!1,!0))};const{latestValues:m,renderState:g}=d;this.latestValues=m,this.baseTarget={...m},this.initialValues=a.initial?{...m}:{},this.renderState=g,this.parent=t,this.props=a,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=h,this.blockInitialAnimation=!!u,this.isControllingVariants=Ru(a),this.isVariantNode=MT(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:v,...y}=this.scrapeMotionValuesFromProps(a,{},this);for(const b in y){const S=y[b];m[b]!==void 0&&Ct(S)&&S.set(m[b],!1)}}mount(t){this.current=t,i8.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,s)=>this.bindToMotionValue(s,a)),dE.current||a8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:jm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),hi(this.notifyUpdate),hi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(t,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=yr.has(t);s&&this.onBindTransform&&this.onBindTransform();const o=a.on("change",h=>{this.latestValues[t]=h,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),u=a.on("renderRequest",this.scheduleRender);let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{o(),u(),d&&d(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ir){const a=ir[t];if(!a)continue;const{isEnabled:s,Feature:o}=a;if(!this.features[t]&&o&&s(this.props)&&(this.features[t]=new o(this)),this.features[t]){const u=this.features[t];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):it()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let s=0;s<x1.length;s++){const o=x1[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const u="on"+o,d=t[u];d&&(this.propEventSubscriptions[o]=this.on(o,d))}this.prevMotionValues=s8(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const s=this.values.get(t);a!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&a!==void 0&&(s=ar(a===null?void 0:a,{owner:this}),this.addValue(t,s)),s}readValue(t,a){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(zS(s)||HS(s))?s=parseFloat(s):!jM(s)&&mi.test(a)&&(s=TT(t,a)),this.setBaseTarget(t,Ct(s)?s.get():s)),Ct(s)?s.get():s}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){var u;const{initial:a}=this.props;let s;if(typeof a=="string"||typeof a=="object"){const d=lg(this.props,a,(u=this.presenceContext)==null?void 0:u.custom);d&&(s=d[t])}if(a&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ct(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Ip),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}}class fE extends r8{constructor(){super(...arguments),this.KeyframeResolver=hM}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){return t.style?t.style[a]:void 0}removeValueFromRenderState(t,{vars:a,style:s}){delete a[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ct(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function hE(e,{style:t,vars:a},s,o){Object.assign(e.style,t,o&&o.getProjectionStyles(s));for(const u in a)e.style.setProperty(u,a[u])}function o8(e){return window.getComputedStyle(e)}class l8 extends fE{constructor(){super(...arguments),this.type="html",this.renderInstance=hE}readValueFromInstance(t,a){var s;if(yr.has(a))return(s=this.projection)!=null&&s.isProjecting?fm(a):Mk(t,a);{const o=o8(t),u=(zp(a)?o.getPropertyValue(a):o[a])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:a}){return QT(t,a)}build(t,a,s){sg(t,a,s.transformTemplate)}scrapeMotionValuesFromProps(t,a,s){return cg(t,a,s)}}const mE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function c8(e,t,a,s){hE(e,t,void 0,s);for(const o in t.attrs)e.setAttribute(mE.has(o)?o:ig(o),t.attrs[o])}class u8 extends fE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=it}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(yr.has(a)){const s=ST(a);return s&&s.default||0}return a=mE.has(a)?a:ig(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,s){return HT(t,a,s)}build(t,a,s){UT(t,a,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,a,s,o){c8(t,a,s,o)}mount(t){this.isSVGTag=zT(t.tagName),super.mount(t)}}const d8=(e,t)=>og(e)?new u8(t):new l8(t,{allowProjection:e!==x.Fragment}),f8=cD({...PD,...t8,...$O,...n8},d8),en=OM(f8);function h8(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}Array(12).fill(0);let Nm=1;class m8{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const a=this.subscribers.indexOf(t);this.subscribers.splice(a,1)}),this.publish=t=>
vendor: 3,664 bytes, line 382
382{this.subscribers.forEach(a=>a(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var a;const{message:s,...o}=t,u=typeof(t==null?void 0:t.id)=="number"||((a=t.id)==null?void 0:a.length)>0?t.id:Nm++,d=this.toasts.find(m=>m.id===u),h=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),d?this.toasts=this.toasts.map(m=>m.id===u?(this.publish({...m,...t,id:u,title:s}),{...m,...t,id:u,dismissible:h,title:s}):m):this.addToast({title:s,...o,dismissible:h,id:u}),u},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(a=>a({id:t,dismiss:!0})))):this.toasts.forEach(a=>{this.subscribers.forEach(s=>s({id:a.id,dismiss:!0}))}),t),this.message=(t,a)=>this.create({...a,message:t}),this.error=(t,a)=>this.create({...a,message:t,type:"error"}),this.success=(t,a)=>this.create({...a,type:"success",message:t}),this.info=(t,a)=>this.create({...a,type:"info",message:t}),this.warning=(t,a)=>this.create({...a,type:"warning",message:t}),this.loading=(t,a)=>this.create({...a,type:"loading",message:t}),this.promise=(t,a)=>{if(!a)return;let s;a.loading!==void 0&&(s=this.create({...a,promise:t,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let u=s!==void 0,d;const h=o.then(async g=>{if(d=["resolve",g],Fe.isValidElement(g))u=!1,this.create({id:s,type:"default",message:g});else if(g8(g)&&!g.ok){u=!1;const y=typeof a.error=="function"?await a.error(`HTTP error! status: ${g.status}`):a.error,b=typeof a.description=="function"?await a.description(`HTTP error! status: ${g.status}`):a.description,j=typeof y=="object"&&!Fe.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:b,...j})}else if(g instanceof Error){u=!1;const y=typeof a.error=="function"?await a.error(g):a.error,b=typeof a.description=="function"?await a.description(g):a.description,j=typeof y=="object"&&!Fe.isValidElement(y)?y:{message:y};this.create({id:s,type:"error",description:b,...j})}else if(a.success!==void 0){u=!1;const y=typeof a.success=="function"?await a.success(g):a.success,b=typeof a.description=="function"?await a.description(g):a.description,j=typeof y=="object"&&!Fe.isValidElement(y)?y:{message:y};this.create({id:s,type:"success",description:b,...j})}}).catch(async g=>{if(d=["reject",g],a.error!==void 0){u=!1;const v=typeof a.error=="function"?await a.error(g):a.error,y=typeof a.description=="function"?await a.description(g):a.description,S=typeof v=="object"&&!Fe.isValidElement(v)?v:{message:v};this.create({id:s,type:"error",description:y,...S})}}).finally(()=>{u&&(this.dismiss(s),s=void 0),a.finally==null||a.finally.call(a)}),m=()=>new Promise((g,v)=>h.then(()=>d[0]==="reject"?v(d[1]):g(d[1])).catch(v));return typeof s!="string"&&typeof s!="number"?{unwrap:m}:Object.assign(s,{unwrap:m})},this.custom=(t,a)=>{const s=(a==null?void 0:a.id)||Nm++;return this.create({jsx:t(s),id:s,...a}),s},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const xn=new m8,p8=(e,t)=>{const a=(t==null?void 0:t.id)||Nm++;return xn.addToast({title:e,...t,id:a}),a},g8=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",v8=p8,y8=()=>xn.toasts,x8=()=>xn.getActiveToasts(),Jt=Object.assign(v8,{success:xn.success,info:xn.info,warning:xn.warning,error:xn.error,custom:xn.custom,message:xn.message,promise:xn.promise,dismiss:xn.dismiss,loading:xn.loading},{getHistory:y8,getToasts:x8});h8
vendor: 4,787 bytes, line 382
382("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;
vendor: 10,077 bytes, line 382
382left: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%)}");
382const b8=()=>{const e="https://kasana.ai";return console.log(`ð§ Using API override URL: ${e}`),e},ku=e=>{const t=b8(),a=e.startsWith("/")?e:`/${e}`;return`${t}${a}`},w8=()=>{};var b1={};/** 383 * @license 384 * Copyright 2017 Google LLC 385 * 386 * Licensed under the Apache License, Version 2.0 (the "License"); 387 * you may not use this file except in compliance with the License. 388 * You may obtain a copy of the License at 389 * 390 * http://www.apache.org/licenses/LICENSE-2.0 391 * 392 * Unless required by applicable law or agreed to in writing, software 393 * distributed under the License is distributed on an "AS IS" BASIS, 394 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 395 * See the License for the specific language governing permissions and 396 * limitations under the License. 397 */const pE=function(e){const t=[];let a=0;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);o<128?t[a++]=o:o<2048?(t[a++]=o>>6|192,t[a++]=o&63|128):(o&64512)===55296&&s+1<e.length&&(e.charCodeAt(s+1)&64512)===56320?(o=65536+((o&1023)<<10)+(e.charCodeAt(++s)&1023),t[a++]=o>>18|240,t[a++]=o>>12&63|128,t[a++]=o>>6&63|128,t[a++]=o&63|128):(t[a++]=o>>12|224,t[a++]=o>>6&63|128,t[a++]=o&63|128)}return t},S8=function(e){const t=[];let a=0,s=0;for(;a<e.length;){const o=e[a++];if(o<128)t[s++]=String.fromCharCode(o);else if(o>191&&o<224){const u=e[a++];t[s++]=String.fromCharCode((o&31)<<6|u&63)}else if(o>239&&o<365){const u=e[a++],d=e[a++],h=e[a++],m=((o&7)<<18|(u&63)<<12|(d&63)<<6|h&63)-65536;t[s++]=String.fromCharCode(55296+(m>>10)),t[s++]=String.fromCharCode(56320+(m&1023))}else{const u=e[a++],d=e[a++];t[s++]=String.fromCharCode((o&15)<<12|(u&63)<<6|d&63)}}return t.join("")},gE={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const a=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let o=0;o<e.length;o+=3){const u=e[o],d=o+1<e.length,h=d?e[o+1]:0,m=o+2<e.length,g=m?e[o+2]:0,v=u>>2,y=(u&3)<<4|h>>4;let b=(h&15)<<2|g>>6,S=g&63;m||(S=64,d||(b=64)),s.push(a[v],a[y],a[b],a[S])}return s.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(pE(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):S8(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const a=t?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let o=0;o<e.length;){const u=a[e.charAt(o++)],h=o<e.length?a[e.charAt(o)]:0;++o;const g=o<e.length?a[e.charAt(o)]:64;++o;const y=o<e.length?a[e.charAt(o)]:64;if(++o,u==null||h==null||g==null||y==null)throw new T8;const b=u<<2|h>>4;if(s.push(b),g!==64){const S=h<<4&240|g>>2;if(s.push(S),y!==64){const j=g<<6&192|y;s.push(j)}}}return s},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class T8 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const E8=function(e){const t=pE(e);return gE.encodeByteArray(t,!0)},vE=function(e){return E8(e).replace(/\./g,"")},yE=function(e){try{return gE.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** 398 * @license 399 * Copyright 2022 Google LLC 400 * 401 * Licensed under the Apache License, Version 2.0 (the "License"); 402 * you may not use this file except in compliance with the License. 403 * You may obtain a copy of the License at 404 * 405 * http://www.apache.org/licenses/LICENSE-2.0 406 * 407 * Unless required by applicable law or agreed to in writing, softw
407are 408 * distributed under the License is distributed on an "AS IS" BASIS, 409 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 410 * See the License for the specific language governing permissions and 411 * limitations under the License. 412 */function j8(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 413 * @license 414 * Copyright 2022 Google LLC 415 * 416 * Licensed under the Apache License, Version 2.0 (the "License"); 417 * you may not use this file except in compliance with the License. 418 * You may obtain a copy of the License at 419 * 420 * http://www.apache.org/licenses/LICENSE-2.0 421 * 422 * Unless required by applicable law or agreed to in writing, software 423 * distributed under the License is distributed on an "AS IS" BASIS, 424 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 425 * See the License for the specific language governing permissions and 426 * limitations under the License. 427 */const N8=()=>j8().__FIREBASE_DEFAULTS__,A8=()=>{if(typeof process>"u"||typeof b1>"u")return;const e=b1.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},C8=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&yE(e[1]);return t&&JSON.parse(t)},dg=()=>{try{return w8()||N8()||A8()||C8()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},_8=e=>{var t,a;return(a=(t=dg())===null||t===void 0?void 0:t.emulatorHosts)===null||a===void 0?void 0:a[e]},xE=()=>{var e;return(e=dg())===null||e===void 0?void 0:e.config},bE=e=>{var t;return(t=dg())===null||t===void 0?void 0:t[`_${e}`]};/** 428 * @license 429 * Copyright 2017 Google LLC 430 * 431 * Licensed under the Apache License, Version 2.0 (the "License"); 432 * you may not use this file except in compliance with the License. 433 * You may obtain a copy of the License at 434 * 435 * http://www.apache.org/licenses/LICENSE-2.0 436 * 437 * Unless required by applicable law or agreed to in writing, software 438 * distributed under the License is distributed on an "AS IS" BASIS, 439 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 440 * See the License for the specific language governing permissions and 441 * limitations under the License. 442 */class R8{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,a)=>{this.resolve=t,this.reject=a})}wrapCallback(t){return(a,s)=>{a?this.reject(a):this.resolve(s),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(a):t(a,s))}}}/** 443 * @license 444 * Copyright 2025 Google LLC 445 * 446 * Licensed under the Apache License, Version 2.0 (the "License"); 447 * you may not use this file except in compliance with the License. 448 * You may obtain a copy of the License at 449 * 450 * http://www.apache.org/licenses/LICENSE-2.0 451 * 452 * Unless required by applicable law or agreed to in writing, software 453 * distributed under the License is distributed on an "AS IS" BASIS, 454 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 455 * See the License for the specific language governing permissions and 456 * limitations under the License. 457 */function Mu(e){return e.endsWith(".cloudworkstations.dev")}async function k8(e){return(await fetch(e,{credentials:"include"})).ok}const Oo={};function M8(){const e={prod:[],emulator:[]};for(const t of Object.keys(Oo))Oo[t]?e.emulator.push(t):e.prod.push(t);return e}function D8(e){let t=document.getElementById(e),a=!1;return t||(t=document.createElement("div"),t.setAttribute("id",e),a=!0),{created:a,element:t}}let w1=!1;function O8(e,t){if(typeof window>"u"||typeof document>"u"||!Mu(window.location.host)||Oo[e]===t||Oo[e]||w1)return;Oo[e]=t;function a(b){return`__firebase__banner__${b}`}const s="__firebase__banner",u=M8().prod.length>0;function d(){const b=document.getElementById(s);b&&b.remove()}function h(b){b.style.display="flex",b.style.background="#7faaf0",b.style.position="fixed",b.style.bottom="5px",b.style.left="5px",b.style.padding=".5em",b.style.borderRadius="5px",b.style.alignItems="center"}function m(b,S){b.setAttribute("width","24"),b.setAttribute("id",S),b.setAttribute("height","24"),b.setAttribute("viewBox","0 0 24 24"),b.setAttribute("fill","none"),b.style.marginLeft="-6px"}function g(){const b=document.createElement("span");
457return b.style.cursor="pointer",b.style.marginLeft="16px",b.style.fontSize="24px",b.innerHTML=" ×",b.onclick=()=>{w1=!0,d()},b}function v(b,S){b.setAttribute("id",S),b.innerText="Learn more",b.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",b.setAttribute("target","__blank"),b.style.paddingLeft="5px",b.style.textDecoration="underline"}function y(){const b=D8(s),S=a("text"),j=document.getElementById(S)||document.createElement("span"),E=a("learnmore"),A=document.getElementById(E)||document.createElement("a"),C=a("preprendIcon"),k=document.getElementById(C)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(b.created){const R=b.element;h(R),v(A,E);const P=g();m(k,C),R.append(k,j,A,P),document.body.appendChild(R)}u?(j.innerText="Preview backend disconnected.",k.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 458<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 459</g> 460<defs> 461<clipPath id="clip0_6013_33858"> 462<rect width="24" height="24" fill="white"/> 463</clipPath> 464</defs>`):(k.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 465<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 466</g> 467<defs> 468<clipPath id="clip0_6083_34804"> 469<rect width="24" height="24" fill="white"/> 470</clipPath> 471</defs>`,j.innerText="Preview backend running in this workspace."),j.setAttribute("id",S)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",y):y()}/** 472 * @license 473 * Copyright 2017 Google LLC 474 * 475 * Licensed under the Apache License, Version 2.0 (the "License"); 476 * you may not use this file except in compliance with the License. 477 * You may obtain a copy of the License at 478 * 479 * http://www.apache.org/licenses/LICENSE-2.0 480 * 481 * Unless required by applicable law or agreed to in writing, software 482 * distributed under the License is distributed on an "AS IS" BASIS, 483 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 484 * See the License for the specific language governing permissions and 485 * limitations under the License. 486 */function Pt(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function P8(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Pt())}function L8(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function I8(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function U8(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function B8(){const e=Pt();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function z8(){try{return typeof indexedDB=="object"}catch{return!1}}function V8(){return new Promise((e,t)=>
486{try{let a=!0;const s="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(s);o.onsuccess=()=>{o.result.close(),a||self.indexedDB.deleteDatabase(s),e(!0)},o.onupgradeneeded=()=>{a=!1},o.onerror=()=>{var u;t(((u=o.error)===null||u===void 0?void 0:u.message)||"")}}catch(a){t(a)}})}/** 487 * @license 488 * Copyright 2017 Google LLC 489 * 490 * Licensed under the Apache License, Version 2.0 (the "License"); 491 * you may not use this file except in compliance with the License. 492 * You may obtain a copy of the License at 493 * 494 * http://www.apache.org/licenses/LICENSE-2.0 495 * 496 * Unless required by applicable law or agreed to in writing, software 497 * distributed under the License is distributed on an "AS IS" BASIS, 498 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 499 * See the License for the specific language governing permissions and 500 * limitations under the License. 501 */const H8="FirebaseError";class xi extends Error{constructor(t,a,s){super(a),this.code=t,this.customData=s,this.name=H8,Object.setPrototypeOf(this,xi.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,il.prototype.create)}}class il{constructor(t,a,s){this.service=t,this.serviceName=a,this.errors=s}create(t,...a){const s=a[0]||{},o=`${this.service}/${t}`,u=this.errors[t],d=u?F8(u,s):"Error",h=`${this.serviceName}: ${d} (${o}).`;return new xi(o,h,s)}}function F8(e,t){return e.replace($8,(a,s)=>{const o=t[s];return o!=null?String(o):`<${s}?>`})}const $8=/\{\$([^}]+)}/g;function G8(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function sr(e,t){if(e===t)return!0;const a=Object.keys(e),s=Object.keys(t);for(const o of a){if(!s.includes(o))return!1;const u=e[o],d=t[o];if(S1(u)&&S1(d)){if(!sr(u,d))return!1}else if(u!==d)return!1}for(const o of s)if(!a.includes(o))return!1;return!0}function S1(e){return e!==null&&typeof e=="object"}/** 502 * @license 503 * Copyright 2017 Google LLC 504 * 505 * Licensed under the Apache License, Version 2.0 (the "License"); 506 * you may not use this file except in compliance with the License. 507 * You may obtain a copy of the License at 508 * 509 * http://www.apache.org/licenses/LICENSE-2.0 510 * 511 * Unless required by applicable law or agreed to in writing, software 512 * distributed under the License is distributed on an "AS IS" BASIS, 513 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 514 * See the License for the specific language governing permissions and 515 * limitations under the License. 516 */function sl(e){const t=[];for(const[a,s]of Object.entries(e))Array.isArray(s)?s.forEach(o=>{t.push(encodeURIComponent(a)+"="+encodeURIComponent(o))}):t.push(encodeURIComponent(a)+"="+encodeURIComponent(s));return t.length?"&"+t.join("&"):""}function q8(e,t){const a=new K8(e,t);return a.subscribe.bind(a)}class K8{constructor(t,a){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=a,this.task.then(()=>{t(this)}).catch(s=>{this.error(s)})}next(t){this.forEachObserver(a=>{a.next(t)})}error(t){this.forEachObserver(a=>{a.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,a,s){let o;if(t===void 0&&a===void 0&&s===void 0)throw new Error("Missing Observer.");Y8(t,["next","error","complete"])?o=t:o={next:t,error:a,complete:s},o.next===void 0&&(o.next=Ch),o.error===void 0&&(o.error=Ch),o.complete===void 0&&(o.complete=Ch);const u=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?o.error(this.finalError):o.complete()}catch{}}),this.observers.push(o),u}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let a=0;a<this.observers.length;a++)this.sendOne(a,t)}sendOne(t,a){this.task.then(()=>{if(this.observers!==void 0&&this.observers[t]!==void 0)try{a(this.observers[t])}catch(s){typeof console<"u"&&console.error&&console.error(s)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Y8(e,t){if(typeof e!="object"||e===null)return!1;for(const a of t)if(a in e&&typeof e[a]=="function")return!0;return!1}function Ch(){}/** 517 * @license 518 * Copyright 2021 Google LLC 519 * 520 * Licensed under the Apache License, Version 2.0 (the "License");
521 * you may not use this file except in compliance with the License. 522 * You may obtain a copy of the License at 523 * 524 * http://www.apache.org/licenses/LICENSE-2.0 525 * 526 * Unless required by applicable law or agreed to in writing, software 527 * distributed under the License is distributed on an "AS IS" BASIS, 528 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 529 * See the License for the specific language governing permissions and 530 * limitations under the License. 531 */function bi(e){return e&&e._delegate?e._delegate:e}class rr{constructor(t,a,s){this.name=t,this.instanceFactory=a,this.type=s,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** 532 * @license 533 * Copyright 2019 Google LLC 534 * 535 * Licensed under the Apache License, Version 2.0 (the "License"); 536 * you may not use this file except in compliance with the License. 537 * You may obtain a copy of the License at 538 * 539 * http://www.apache.org/licenses/LICENSE-2.0 540 * 541 * Unless required by applicable law or agreed to in writing, software 542 * distributed under the License is distributed on an "AS IS" BASIS, 543 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 544 * See the License for the specific language governing permissions and 545 * limitations under the License. 546 */const qi="[DEFAULT]";/** 547 * @license 548 * Copyright 2019 Google LLC 549 * 550 * Licensed under the Apache License, Version 2.0 (the "License"); 551 * you may not use this file except in compliance with the License. 552 * You may obtain a copy of the License at 553 * 554 * http://www.apache.org/licenses/LICENSE-2.0 555 * 556 * Unless required by applicable law or agreed to in writing, software 557 * distributed under the License is distributed on an "AS IS" BASIS, 558 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 559 * See the License for the specific language governing permissions and 560 * limitations under the License. 561 */let W8=class{constructor(t,a){this.name=t,this.container=a,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const a=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(a)){const s=new R8;if(this.instancesDeferred.set(a,s),this.isInitialized(a)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:a});o&&s.resolve(o)}catch{}}return this.instancesDeferred.get(a).promise}getImmediate(t){var a;const s=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),o=(a=t==null?void 0:t.optional)!==null&&a!==void 0?a:!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(u){if(o)return null;throw u}else{if(o)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(Z8(t))try{this.getOrInitializeService({instanceIdentifier:qi})}catch{}for(const[a,s]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(a);try{const u=this.getOrInitializeService({instanceIdentifier:o});s.resolve(u)}catch{}}}}clearInstance(t=qi){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(a=>"INTERNAL"in a).map(a=>a.INTERNAL.delete()),...t.filter(a=>"_delete"in a).map(a=>a._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=qi){return this.instances.has(t)}getOptions(t=qi){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:a={}}=t,s=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(s))throw Error(`${this.name}(${s}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:s,options:a});for(const[u,d]of this.instancesDeferred.entries()){const h=this.normalizeInstanceIdentifier(u);s===h&&d.resolve(o)}return o}onInit(t,a){var s;const o=this.normalizeInstanceIdentifier(a),u=(s=this.onInitCallbacks.get(o))!==null&&s!==void 0?s:new Set;u.add(t),this.onInitCallbacks.set(o,u);const d=this.instances.get(o);return d&&t(d,o),()=>{u.delete(t)}}invokeOnInitCallbacks(t,a){const s=this.onInitCallbacks.get(a);if(s)for(const o of s)try{o(t,a)}catch{}}getOrInitializeService({instanceIdentifier:t,options:a={}}){let s=this.instances.get(t);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:X8(t),options:a}),this.instances.set(t,s),this.instancesOptions.set(t,a),this.invokeOnInitCallbacks(s,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,s
561)}catch{}return s||null}normalizeInstanceIdentifier(t=qi){return this.component?this.component.multipleInstances?t:qi:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function X8(e){return e===qi?void 0:e}function Z8(e){return e.instantiationMode==="EAGER"}/** 562 * @license 563 * Copyright 2019 Google LLC 564 * 565 * Licensed under the Apache License, Version 2.0 (the "License"); 566 * you may not use this file except in compliance with the License. 567 * You may obtain a copy of the License at 568 * 569 * http://www.apache.org/licenses/LICENSE-2.0 570 * 571 * Unless required by applicable law or agreed to in writing, software 572 * distributed under the License is distributed on an "AS IS" BASIS, 573 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 574 * See the License for the specific language governing permissions and 575 * limitations under the License. 576 */class Q8{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const a=this.getProvider(t.name);if(a.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);a.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const a=new W8(t,this);return this.providers.set(t,a),a}getProviders(){return Array.from(this.providers.values())}}/** 577 * @license 578 * Copyright 2017 Google LLC 579 * 580 * Licensed under the Apache License, Version 2.0 (the "License"); 581 * you may not use this file except in compliance with the License. 582 * You may obtain a copy of the License at 583 * 584 * http://www.apache.org/licenses/LICENSE-2.0 585 * 586 * Unless required by applicable law or agreed to in writing, software 587 * distributed under the License is distributed on an "AS IS" BASIS, 588 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 589 * See the License for the specific language governing permissions and 590 * limitations under the License. 591 */var He;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(He||(He={}));const J8={debug:He.DEBUG,verbose:He.VERBOSE,info:He.INFO,warn:He.WARN,error:He.ERROR,silent:He.SILENT},e7=He.INFO,t7={[He.DEBUG]:"log",[He.VERBOSE]:"log",[He.INFO]:"info",[He.WARN]:"warn",[He.ERROR]:"error"},n7=(e,t,...a)=>{if(t<e.logLevel)return;const s=new Date().toISOString(),o=t7[t];if(o)console[o](`[${s}] ${e.name}:`,...a);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class wE{constructor(t){this.name=t,this._logLevel=e7,this._logHandler=n7,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in He))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?J8[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,He.DEBUG,...t),this._logHandler(this,He.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,He.VERBOSE,...t),this._logHandler(this,He.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,He.INFO,...t),this._logHandler(this,He.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,He.WARN,...t),this._logHandler(this,He.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,He.ERROR,...t),this._logHandler(this,He.ERROR,...t)}}const a7=(e,t)=>t.some(a=>e instanceof a);let T1,E1;function i7(){return T1||(T1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function s7(){return E1||(E1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const SE=new WeakMap,Am=new WeakMap,TE=new WeakMap,_h=new WeakMap,fg=new WeakMap;function r7(e){const t=new Promise((a,s)=>{const o=()=>{e.removeEventListener("success",u),e.removeEventListener("error",d)},u=()=>{a(ui(e.result)),o()},d=()=>{s(e.error),o()};e.addEventListener("success",u),e.addEventListener("error",d)});return t.then(a=>{a instanceof IDBCursor&&SE.set(a,e)}).catch(()=>{}),fg.set(t,e),t}function o7(e){if(Am.has(e))return;const t=new Promise((a,s)=>{const o=()=>{e.removeEventListener("complete",u),e.removeEventListener("error",d),e.removeEventListener("abort",d)},u=()=>{a(),o()},d=()=>{s(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",u),e.addEventListener("error",d),e.addEventListener("abort",d)});Am.set(e,t)}let Cm={get(e,t,a){if(e instanceof IDBTransaction){if(t==="done")return Am.get(e);if(t==="objectStoreNames")return e.objectStoreNames||TE.get(e);if(t==="store")return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return ui(e[t])},set(e,t,a){return e[t]=a,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function l7(e){Cm=e(Cm)}function c7(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...a){const s=e.call(Rh(this),t,...a);return TE.set(s,t.sort?t.sort():[t]),ui(s)}:s7().includes(e)?function(...t){return e.apply(Rh(this),t),ui(SE.get(this))}:function(...t){return ui(e.apply(Rh(this),t))}}function u7(e){return typeof e=="function"?c7(e):(e instanceof IDBTransaction&&o7(e),a7(e,i7())?new Proxy(e,Cm):e)}function ui(e){if(e instanceof IDBRequest)return r7(e);if(_h.has(e))return _h.get(e);const t=u7(e);return t!==e&&(_h.set(e,t),fg.set(t,e)),t}const Rh=e=>fg.get(e);function d7(e,t,{blocked:a,upgrade:s,blocking:o,terminated:u}={}){const d=indexedDB.open(e,t),h=ui(d);return s&&d.addEventListener("upgradeneeded",m=>{s(ui(d.result),m.oldVersion,m.newVersion,ui(d.transaction),m)}),a&&d.addEventListener("blocked",m=>a(m.oldVersion,m.newVersion,m)),h.then(m=>{u&&m.addEventListener("close",()=>u()),o&&m.addEventListener("versionchange",g=>o(g.oldVersion,g.newVersion,g))}).catch(()=>{}),h}const f7=["get","getKey","getAll","getAllKeys","count"],h7=["put","add","delete","clear"],kh=new Map;function j1(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(kh.get(t))return kh.get(t);const a=t.replace(/FromIndex$/,""),s=t!==a,o=h7.includes(a);if(!(a in(s?IDBIndex:IDBObjectStore).prototype)||!(o||f7.includes(a)))return;const u=async function(d,...h){const m=this.transaction(d,o?"readwrite":"readonly");let g=m.store;
591return s&&(g=g.index(h.shift())),(await Promise.all([g[a](...h),o&&m.done]))[0]};return kh.set(t,u),u}l7(e=>({...e,get:(t,a,s)=>j1(t,a)||e.get(t,a,s),has:(t,a)=>!!j1(t,a)||e.has(t,a)}));/** 592 * @license 593 * Copyright 2019 Google LLC 594 * 595 * Licensed under the Apache License, Version 2.0 (the "License"); 596 * you may not use this file except in compliance with the License. 597 * You may obtain a copy of the License at 598 * 599 * http://www.apache.org/licenses/LICENSE-2.0 600 * 601 * Unless required by applicable law or agreed to in writing, software 602 * distributed under the License is distributed on an "AS IS" BASIS, 603 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 604 * See the License for the specific language governing permissions and 605 * limitations under the License. 606 */class m7{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(a=>{if(p7(a)){const s=a.getImmediate();return`${s.library}/${s.version}`}else return null}).filter(a=>a).join(" ")}}function p7(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const _m="@firebase/app",N1="0.13.1";/** 607 * @license 608 * Copyright 2019 Google LLC 609 * 610 * Licensed under the Apache License, Version 2.0 (the "License"); 611 * you may not use this file except in compliance with the License. 612 * You may obtain a copy of the License at 613 * 614 * http://www.apache.org/licenses/LICENSE-2.0 615 * 616 * Unless required by applicable law or agreed to in writing, software 617 * distributed under the License is distributed on an "AS IS" BASIS, 618 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 619 * See the License for the specific language governing permissions and 620 * limitations under the License. 621 */const Ea=new wE("@firebase/app"),g7="@firebase/app-compat",v7="@firebase/analytics-compat",y7="@firebase/analytics",x7="@firebase/app-check-compat",b7="@firebase/app-check",w7="@f
621irebase/auth",S7="@firebase/auth-compat",T7="@firebase/database",E7="@firebase/data-connect",j7="@firebase/database-compat",N7="@firebase/functions",A7="@firebase/functions-compat",C7="@firebase/installations",_7="@firebase/installations-compat",R7="@firebase/messaging",k7="@firebase/messaging-compat",M7="@firebase/performance",D7="@firebase/performance-compat",O7="@firebase/remote-config",P7="@firebase/remote-config-compat",L7="@firebase/storage",I7="@firebase/storage-compat",U7="@firebase/firestore",B7="@firebase/ai",z7="@firebase/firestore-compat",V7="firebase",H7="11.9.0";/** 622 * @license 623 * Copyright 2019 Google LLC 624 * 625 * Licensed under the Apache License, Version 2.0 (the "License"); 626 * you may not use this file except in compliance with the License. 627 * You may obtain a copy of the License at 628 * 629 * http://www.apache.org/licenses/LICENSE-2.0 630 * 631 * Unless required by applicable law or agreed to in writing, software 632 * distributed under the License is distributed on an "AS IS" BASIS, 633 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 634 * See the License for the specific language governing permissions and 635 * limitations under the License. 636 */const Rm="[DEFAULT]",F7={[_m]:"fire-core",[g7]:"fire-core-compat",[y7]:"fire-analytics",[v7]:"fire-analytics-compat",[b7]:"fire-app-check",[x7]:"fire-app-check-compat",[w7]:"fire-auth",[S7]:"fire-auth-compat",[T7]:"fire-rtdb",[E7]:"fire-data-connect",[j7]:"fire-rtdb-compat",[N7]:"fire-fn",[A7]:"fire-fn-compat",[C7]:"fire-iid",[_7]:"fire-iid-compat",[R7]:"fire-fcm",[k7]:"fire-fcm-compat",[M7]:"fire-perf",[D7]:"fire-perf-compat",[O7]:"fire-rc",[P7]:"fire-rc-compat",[L7]:"fire-gcs",[I7]:"fire-gcs-compat",[U7]:"fire-fst",[z7]:"fire-fst-compat",[B7]:"fire-vertex","fire-js":"fire-js",[V7]:"fire-js-all"};/** 637 * @license 638 * Copyright 2019 Google LLC 639 * 640 * Licensed under the Apache License, Version 2.0 (the "License"); 641 * you may not use this file except in compliance with the License. 642 * You may obtain a copy of the License at 643 * 644 * http://www.apache.org/licenses/LICENSE-2.0 645 * 646 * Unless required by applicable law or agreed to in writing, software 647 * distributed under the License is distributed on an "AS IS" BASIS, 648 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 649 * See the License for the specific language governing permissions and 650 * limitations under the License. 651 */const Go=new Map,$7=new Map,km=new Map;function A1(e,t){try{e.container.addComponent(t)}catch(a){Ea.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,a)}}function qo(e){const t=e.name;if(km.has(t))return Ea.debug(`There were multiple attempts to register component ${t}.`),!1;km.set(t,e);for(const a of Go.values())A1(a,e);for(const a of $7.values())A1(a,e);return!0}function EE(e,t){const a=e.container.getProvider("heartbeat").getImmediate({optional:!0});return a&&a.triggerHeartbeat(),e.container.getProvider(t)}function Fn(e){return e==null?!1:e.settings!==void 0}/** 652 * @license 653 * Copyright 2019 Google LLC 654 * 655 * Licensed under the Apache License, Version 2.0 (the "License"); 656 * you may not use this file except in compliance with the License. 657 * You may obtain a copy of the License at 658 * 659 * http://www.apache.org/licenses/LICENSE-2.0 660 * 661 * Unless required by applicable law or agreed to in writing, software 662 * distributed under the License is distributed on an "AS IS" BASIS, 663 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 664 * See the License for the specific language governing permissions and 665 * limitations under the License. 666 */const G7={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
666d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},di=new il("app","Firebase",G7);/** 667 * @license 668 * Copyright 2019 Google LLC 669 * 670 * Licensed under the Apache License, Version 2.0 (the "License"); 671 * you may not use this file except in compliance with the License. 672 * You may obtain a copy of the License at 673 * 674 * http://www.apache.org/licenses/LICENSE-2.0 675 * 676 * Unless required by applicable law or agreed to in writing, software 677 * distributed under the License is distributed on an "AS IS" BASIS, 678 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 679 * See the License for the specific language governing permissions and 680 * limitations under the License. 681 */class q7{constructor(t,a,s){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},a),this._name=a.name,this._automaticDataCollectionEnabled=a.automaticDataCollectionEnabled,this._container=s,this.container.addComponent(new rr("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw di.create("app-deleted",{appName:this._name})}}/** 682 * @license 683 * Copyright 2019 Google LLC 684 * 685 * Licensed under the Apache License, Version 2.0 (the "License"); 686 * you may not use this file except in compliance with the License. 687 * You may obtain a copy of the License at 688 * 689 * http://www.apache.org/licenses/LICENSE-2.0 690 * 691 * Unless required by applicable law or agreed to in writing, software 692 * distributed under the License is distributed on an "AS IS" BASIS, 693 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 694 * See the License for the specific language governing permissions and 695 * limitations under the License. 696 */const rl=H7;function jE(e,t={}){let a=e;typeof t!="object"&&(t={name:t});const s=Object.assign({name:Rm,automaticDataCollectionEnabled:!0},t),o=s.name;if(typeof o!="string"||!o)throw di.create("bad-app-name",{appName:String(o)});if(a||(a=xE()),!a)throw di.create("no-options");const u=Go.get(o);if(u){if(sr(a,u.options)&&sr(s,u.config))return u;throw di.create("duplicate-app",{appName:o})}const d=new Q8(o);for(const m of km.values())d.addComponent(m);const h=new q7(a,s,d);return Go.set(o,h),h}function K7(e=Rm){const t=Go.get(e);if(!t&&e===Rm&&xE())return jE();if(!t)throw di.create("no-app",{appName:e});return t}function C1(){return Array.from(Go.values())}function Zs(e,t,a){var s;let o=(s=F7[e])!==null&&s!==void 0?s:e;a&&(o+=`-${a}`);const u=o.match(/\s|\//),d=t.match(/\s|\//);if(u||d){const h=[`Unable to register library "${o}" with version "${t}":`];u&&h.push(`library name "${o}" contains illegal characters (whitespace or "/")`),u&&d&&h.push("and"),d&&h.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Ea.warn(h.join(" "));return}qo(new rr(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}/** 697 * @license 698 * Copyright 2021 Google LLC 699 * 700 * Licensed under the Apache License, Version 2.0 (the "License"); 701 * you may not use this file except in compliance with the License. 702 * You may obtain a copy of the License at 703 * 704 * http://www.apache.org/licenses/LICENSE-2.0 705 * 706 * Unless required by applicable law or agreed to in writing, softw
706are 707 * distributed under the License is distributed on an "AS IS" BASIS, 708 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 709 * See the License for the specific language governing permissions and 710 * limitations under the License. 711 */const Y7="firebase-heartbeat-database",W7=1,Ko="firebase-heartbeat-store";let Mh=null;function NE(){return Mh||(Mh=d7(Y7,W7,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Ko)}catch(a){console.warn(a)}}}}).catch(e=>{throw di.create("idb-open",{originalErrorMessage:e.message})})),Mh}async function X7(e){try{const a=(await NE()).transaction(Ko),s=await a.objectStore(Ko).get(AE(e));return await a.done,s}catch(t){if(t instanceof xi)Ea.warn(t.message);else{const a=di.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Ea.warn(a.message)}}}async function _1(e,t){try{const s=(await NE()).transaction(Ko,"readwrite");await s.objectStore(Ko).put(t,AE(e)),await s.done}catch(a){if(a instanceof xi)Ea.warn(a.message);else{const s=di.create("idb-set",{originalErrorMessage:a==null?void 0:a.message});Ea.warn(s.message)}}}function AE(e){return`${e.name}!${e.options.appId}`}/** 712 * @license 713 * Copyright 2021 Google LLC 714 * 715 * Licensed under the Apache License, Version 2.0 (the "License"); 716 * you may not use this file except in compliance with the License. 717 * You may obtain a copy of the License at 718 * 719 * http://www.apache.org/licenses/LICENSE-2.0 720 * 721 * Unless required by applicable law or agreed to in writing, software 722 * distributed under the License is distributed on an "AS IS" BASIS, 723 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 724 * See the License for the specific language governing permissions and 725 * limitations under the License. 726 */const Z7=1024,Q7=30;class J7{constructor(t){this.container=t,this._heartbeatsCache=null;const a=this.container.getProvider("app").getImmediate();this._storage=new tP(a),this._heartbeatsCachePromise=this._storage.read().then(s=>(this._heartbeatsCache=s,s))}async triggerHeartbeat(){var t,a;try{const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),u=R1();if(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((a=this._heartbeatsCache)===null||a===void 0?void 0:a.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===u||this._heartbeatsCache.heartbeats.some(d=>d.date===u))return;if(this._heartbeatsCache.heartbeats.push({date:u,agent:o}),this._heartbeatsCache.heartbeats.length>Q7){const d=nP(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(d,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(s){Ea.warn(s)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const a=R1(),{heartbeatsToSend:s,unsentEntries:o}=eP(this._heartbeatsCache.heartbeats),u=vE(JSON.stringify({version:2,heartbeats:s}));return this._heartbeatsCache.lastSentHeartbeatDate=a,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),u}catch(a){return Ea.warn(a),""}}}function R1(){return new Date().toISOString().substring(0,10)}function eP(e,t=Z7){const a=[];let s=e.slice();for(const o of e){const u=a.find(d=>d.agent===o.agent);if(u){if(u.dates.push(o.date),k1(a)>t){u.dates.pop();break}}else if(a.push({agent:o.agent,dates:[o.date]}),k1(a)>t){a.pop();break}s=s.slice(1)}return{heartbeatsToSend:a,unsentEntries:s}}class tP{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return z8()?V8().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const a=await X7(this.app);return a!=null&&a.heartbeats?a:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var a;if(await this._canUseIndexedDBPromise){const o=await this.read();return _1(this.app,{lastSentHeartbeatDate:(a=t.lastSentHeartbeatDate)!==null&&a!==void 0?a:o.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var a;if(await this._canUseIndexedDBPromise){const o=await this.read();return _1(this.app,{lastSentHeartbeatDate:(a=t.lastSentHeartbeatDate)!==null&&a!==void 0?a:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...t.heartbeats]})}else return}}function k1(e){return vE(JSON.stringify({version:2,heartbeats:e})).length}function nP(e){if(e.length===0)return-1;let t=0,a=e[0].date;for(let s=1;s<e.length;s++)e[s].date<a&&(a=e[s].date,t=s);return t}/** 727 * @license 728 * Copyright 2019 Google LLC 729 * 730 * Licensed under the Apache License, Version 2.0 (the "License");
731 * you may not use this file except in compliance with the License. 732 * You may obtain a copy of the License at 733 * 734 * http://www.apache.org/licenses/LICENSE-2.0 735 * 736 * Unless required by applicable law or agreed to in writing, software 737 * distributed under the License is distributed on an "AS IS" BASIS, 738 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 739 * See the License for the specific language governing permissions and 740 * limitations under the License. 741 */function aP(e){qo(new rr("platform-logger",t=>new m7(t),"PRIVATE")),qo(new rr("heartbeat",t=>new J7(t),"PRIVATE")),Zs(_m,N1,e),Zs(_m,N1,"esm2017"),Zs("fire-js","")}aP("");function CE(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const iP=CE,_E=new il("auth","Firebase",CE());/** 742 * @license 743 * Copyright 2020 Google LLC 744 * 745 * Licensed under the Apache License, Version 2.0 (the "License"); 746 * you may not use this file except in compliance with the License. 747 * You may obtain a copy of the License at 748 * 749 * http://www.apache.org/licenses/LICENSE-2.0 750 * 751 * Unless required by applicable law or agreed to in writing, software 752 * distributed under the License is distributed on an "AS IS" BASIS, 753 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 754 * See the License for the specific language governing permissions and 755 * limitations under the License. 756 */const lu=new wE("@firebase/auth");function sP(e,...t){lu.logLevel<=He.WARN&&lu.warn(`Auth (${rl}): ${e}`,...t)}function Gc(e,...t){lu.logLevel<=He.ERROR&&lu.error(`Auth (${rl}): ${e}`,...t)}/** 757 * @license 758 * Copyright 2020 Google LLC 759 * 760 * Licensed under the Apache License, Version 2.0 (the "License"); 761 * you may not use this file except in compliance with the License. 762 * You may obtain a copy of the License at 763 * 764 * http://www.apache.org/licenses/LICENSE-2.0 765 * 766 * Unless required by applicable law or agreed to in writing, software 767 * distributed under the License is distributed on an "AS IS" BASIS, 768 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 769 * See the License for the specific language governing permissions and 770 * limitations under the License. 771 */function ja(e,...t){throw hg(e,...t)}function Wn(e,...t){return hg(e,...t)}function RE(e,t,a){const s=Object.assign(Object.assign({},iP()),{[t]:a});return new il("auth","Firebase",s).create(t,{appName:e.name})}function fi(e){return RE(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function hg(e,...t){if(typeof e!="string"){const a=t[0],s=[...t.slice(1)];return s[0]&&(s[0].appName=e.name),e._errorFactory.create(a,...s)}return _E.create(e,...t)}function ge(e,t,...a){if(!e)throw hg(t,...a)}function ba(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Gc(t),new Error(t)}function Na(e,t){e||ba(t)}/** 772 * @license 773 * Copyright 2020 Google LLC 774 * 775 * Licensed under the Apache License, Version 2.0 (the "License"); 776 * you may not use this file except in compliance with the License. 777 * You may obtain a copy of the License at 778 * 779 * http://www.apache.org/licenses/LICENSE-2.0 780 * 781 * Unless required by applicable law or agreed to in writing, software 782 * distributed under the License is distributed on an "AS IS" BASIS, 783 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 784 * See the License for the specific language governing permissions and 785 * limitations under the License. 786 */function Mm(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.href)||""}function rP(){return M1()==="http:"||M1()==="https:"}function M1(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.protocol)||null}/** 787 * @license 788 * Copyright 2020 Google LLC 789 * 790 * Licensed under the Apache License, Version 2.0 (the "License"); 791 * you may not use this file except in compliance with the License. 792 * You may obtain a copy of the License at 793 * 794 * http://www.apache.org/licenses/LICENSE-2.0 795 * 796 * Unless required by applicable law or agreed to in writing, softw
796are 797 * distributed under the License is distributed on an "AS IS" BASIS, 798 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 799 * See the License for the specific language governing permissions and 800 * limitations under the License. 801 */function oP(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(rP()||I8()||"connection"in navigator)?navigator.onLine:!0}function lP(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/** 802 * @license 803 * Copyright 2020 Google LLC 804 * 805 * Licensed under the Apache License, Version 2.0 (the "License"); 806 * you may not use this file except in compliance with the License. 807 * You may obtain a copy of the License at 808 * 809 * http://www.apache.org/licenses/LICENSE-2.0 810 * 811 * Unless required by applicable law or agreed to in writing, software 812 * distributed under the License is distributed on an "AS IS" BASIS, 813 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 814 * See the License for the specific language governing permissions and 815 * limitations under the License. 816 */class ol{constructor(t,a){this.shortDelay=t,this.longDelay=a,Na(a>t,"Short delay should be less than long delay!"),this.isMobile=P8()||U8()}get(){return oP()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 817 * @license 818 * Copyright 2020 Google LLC 819 * 820 * Licensed under the Apache License, Version 2.0 (the "License"); 821 * you may not use this file except in compliance with the License. 822 * You may obtain a copy of the License at 823 * 824 * http://www.apache.org/licenses/LICENSE-2.0 825 * 826 * Unless required by applicable law or agreed to in writing, software 827 * distributed under the License is distributed on an "AS IS" BASIS, 828 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 829 * See the License for the specific language governing permissions and 830 * limitations under the License. 831 */function mg(e,t){Na(e.emulator,"Emulator should always be set here");const{url:a}=e.emulator;return t?`${a}${t.startsWith("/")?t.slice(1):t}`:a}/** 832 * @license 833 * Copyright 2020 Google LLC 834 * 835 * Licensed under the Apache License, Version 2.0 (the "License"); 836 * you may not use this file except in compliance with the License. 837 * You may obtain a copy of the License at 838 * 839 * http://www.apache.org/licenses/LICENSE-2.0 840 * 841 * Unless required by applicable law or agreed to in writing, software 842 * distributed under the License is distributed on an "AS IS" BASIS, 843 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 844 * See the License for the specific language governing permissions and 845 * limitations under the License. 846 */class kE{static initialize(t,a,s){this.fetchImpl=t,a&&(this.headersImpl=a),s&&(this.responseImpl=s)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;ba("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;ba("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;ba("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 847 * @license 848 * Copyright 2020 Google LLC 849 * 850 * Licensed under the Apache License, Version 2.0 (the "License"); 851 * you may not use this file except in compliance with the License. 852 * You may obtain a copy of the License at 853 * 854 * http://www.apache.org/licenses/LICENSE-2.0 855 * 856 * Unless required by applicable law or agreed to in writing, softw
856are 857 * distributed under the License is distributed on an "AS IS" BASIS, 858 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 859 * See the License for the specific language governing permissions and 860 * limitations under the License. 861 */const cP={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 862 * @license 863 * Copyright 2020 Google LLC 864 * 865 * Licensed under the Apache License, Version 2.0 (the "License"); 866 * you may not use this file except in compliance with the License. 867 * You may obtain a copy of the License at 868 * 869 * http://www.apache.org/licenses/LICENSE-2.0 870 * 871 * Unless required by applicable law or agreed to in writing, software 872 * distributed under the License is distributed on an "AS IS" BASIS, 873 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 874 * See the License for the specific language governing permissions and 875 * limitations under the License. 876 */const uP=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],dP=new ol(3e4,6e4);function Du(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function xr(e,t,a,s,o={}){return ME(e,o,async()=>{let u={},d={};s&&(t==="GET"?d=s:u={body:JSON.stringify(s)});const h=sl(Object.assign({key:e.config.apiKey},d)).slice(1),m=await e._getAdditionalHeaders();m["Content-Type"]="application/json",e.languageCode&&(m["X-Firebase-Locale"]=e.languageCode);const g=Object.assign({method:t,headers:m},u);return L8()||(g.referrerPolicy="no-referrer"),e.emulatorConfig&&Mu(e.emulatorConfig.host)&&(g.credentials="include"),kE.fetch()(await OE(e,e.config.apiHost,a,h),g)})}async function ME(e,t,a){e._canInitEmulator=!1;const s=Object.assign(Object.assign({},cP),t);try{const o=new fP(e),u=await Promise.race([a(),o.promise]);o.clearNetworkTimeout();const d=await u.json();if("needConfirmation"in d)throw Pc(e,"account-exists-with-different-credential",d);if(u.ok&&!("errorMessage"in d))return d;{const h=u.ok?d.errorMessage:d.error.message,[m,g]=h.split(" : ");if(m==="FEDERATED_USER_ID_ALREADY_LINKED")throw Pc(e,"credential-already-in-use",d);if(m==="EMAIL_EXISTS")throw Pc(e,"email-already-in-use",d);if(m==="USER_DISABLED")throw Pc(e,"user-disabled",d);const v=s[m]||m.toLowerCase().replace(/[_\s]+/g,"-");if(g)throw RE(e,v,g);ja(e,v)}}catch(o){if(o instanceof xi)throw o;ja(e,"network-request-failed",{message:String(o)})}}async function DE(e,t,a,s,o={}){const u=await xr(e,t,a,s,o);return"mfaPendingCredential"in u&&ja(e,"multi-factor-auth-required",{_serverResponse:u}),u}async function OE(e,t,a,s){const o=`${t}${a}
876?${s}`,u=e,d=u.config.emulator?mg(e.config,o):`${e.config.apiScheme}://${o}`;return uP.includes(a)&&(await u._persistenceManagerAvailable,u._getPersistenceType()==="COOKIE")?u._getPersistence()._getFinalTarget(d).toString():d}class fP{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((a,s)=>{this.timer=setTimeout(()=>s(Wn(this.auth,"network-request-failed")),dP.get())})}}function Pc(e,t,a){const s={appName:e.name};a.email&&(s.email=a.email),a.phoneNumber&&(s.phoneNumber=a.phoneNumber);const o=Wn(e,t,s);return o.customData._tokenResponse=a,o}/** 877 * @license 878 * Copyright 2020 Google LLC 879 * 880 * Licensed under the Apache License, Version 2.0 (the "License"); 881 * you may not use this file except in compliance with the License. 882 * You may obtain a copy of the License at 883 * 884 * http://www.apache.org/licenses/LICENSE-2.0 885 * 886 * Unless required by applicable law or agreed to in writing, software 887 * distributed under the License is distributed on an "AS IS" BASIS, 888 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 889 * See the License for the specific language governing permissions and 890 * limitations under the License. 891 */async function hP(e,t){return xr(e,"POST","/v1/accounts:delete",t)}async function cu(e,t){return xr(e,"POST","/v1/accounts:lookup",t)}/** 892 * @license 893 * Copyright 2020 Google LLC 894 * 895 * Licensed under the Apache License, Version 2.0 (the "License"); 896 * you may not use this file except in compliance with the License. 897 * You may obtain a copy of the License at 898 * 899 * http://www.apache.org/licenses/LICENSE-2.0 900 * 901 * Unless required by applicable law or agreed to in writing, software 902 * distributed under the License is distributed on an "AS IS" BASIS, 903 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 904 * See the License for the specific language governing permissions and 905 * limitations under the License. 906 */function Po(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function mP(e,t=!1){const a=bi(e),s=await a.getIdToken(t),o=pg(s);ge(o&&o.exp&&o.auth_time&&o.iat,a.auth,"internal-error");const u=typeof o.firebase=="object"?o.firebase:void 0,d=u==null?void 0:u.sign_in_provider;return{claims:o,token:s,authTime:Po(Dh(o.auth_time)),issuedAtTime:Po(Dh(o.iat)),expirationTime:Po(Dh(o.exp)),signInProvider:d||null,signInSecondFactor:(u==null?void 0:u.sign_in_second_factor)||null}}function Dh(e){return Number(e)*1e3}function pg(e){const[t,a,s]=e.split(".");if(t===void 0||a===void 0||s===void 0)return Gc("JWT malformed, contained fewer than 3 sections"),null;try{const o=yE(a);return o?JSON.parse(o):(Gc("Failed to decode base64 JWT payload"),null)}catch(o){return Gc("Caught error parsing JWT payload as JSON",o==null?void 0:o.toString()),null}}function D1(e){const t=pg(e);return ge(t,"internal-error"),ge(typeof t.exp<"u","internal-error"),ge(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/** 907 * @license 908 * Copyright 2020 Google LLC 909 * 910 * Licensed under the Apache License, Version 2.0 (the "License"); 911 * you may not use this file except in compliance with the License. 912 * You may obtain a copy of the License at 913 * 914 * http://www.apache.org/licenses/LICENSE-2.0 915 * 916 * Unless required by applicable law or agreed to in writing, software 917 * distributed under the License is distributed on an "AS IS" BASIS, 918 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 919 * See the License for the specific language governing permissions and 920 * limitations under the License. 921 */async function Yo(e,t,a=!1){if(a)return t;try{return await t}catch(s){throw s instanceof xi&&pP(s)&&e.auth.currentUser===e&&await e.auth.signOut(),s}}function pP({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/** 922 * @license 923 * Copyright 2020 Google LLC 924 * 925 * Licensed under the Apache License, Version 2.0 (the "License"); 926 * you may not use this file except in compliance with the License. 927 * You may obtain a copy of the License at 928 * 929 * http://www.apache.org/licenses/LICENSE-2.0 930 * 931 * Unless required by applicable law or agreed to in writing, softw
931are 932 * distributed under the License is distributed on an "AS IS" BASIS, 933 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 934 * See the License for the specific language governing permissions and 935 * limitations under the License. 936 */class gP{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){var a;if(t){const s=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),s}else{this.errorBackoff=3e4;const o=((a=this.user.stsTokenManager.expirationTime)!==null&&a!==void 0?a:0)-Date.now()-3e5;return Math.max(0,o)}}schedule(t=!1){if(!this.isRunning)return;const a=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},a)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){(t==null?void 0:t.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 937 * @license 938 * Copyright 2020 Google LLC 939 * 940 * Licensed under the Apache License, Version 2.0 (the "License"); 941 * you may not use this file except in compliance with the License. 942 * You may obtain a copy of the License at 943 * 944 * http://www.apache.org/licenses/LICENSE-2.0 945 * 946 * Unless required by applicable law or agreed to in writing, software 947 * distributed under the License is distributed on an "AS IS" BASIS, 948 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 949 * See the License for the specific language governing permissions and 950 * limitations under the License. 951 */class Dm{constructor(t,a){this.createdAt=t,this.lastLoginAt=a,this._initializeTime()}_initializeTime(){this.lastSignInTime=Po(this.lastLoginAt),this.creationTime=Po(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 952 * @license 953 * Copyright 2019 Google LLC 954 * 955 * Licensed under the Apache License, Version 2.0 (the "License"); 956 * you may not use this file except in compliance with the License. 957 * You may obtain a copy of the License at 958 * 959 * http://www.apache.org/licenses/LICENSE-2.0 960 * 961 * Unless required by applicable law or agreed to in writing, software 962 * distributed under the License is distributed on an "AS IS" BASIS, 963 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 964 * See the License for the specific language governing permissions and 965 * limitations under the License. 966 */async function uu(e){var t;const a=e.auth,s=await e.getIdToken(),o=await Yo(e,cu(a,{idToken:s}));ge(o==null?void 0:o.users.length,a,"internal-error");const u=o.users[0];e._notifyReloadListener(u);const d=!((t=u.providerUserInfo)===null||t===void 0)&&t.length?PE(u.providerUserInfo):[],h=yP(e.providerData,d),m=e.isAnonymous,g=!(e.email&&u.passwordHash)&&!(h!=null&&h.length),v=m?g:!1,y={uid:u.localId,displayName:u.displayName||null,photoURL:u.photoUrl||null,email:u.email||null,emailVerified:u.emailVerified||!1,phoneNumber:u.phoneNumber||null,tenantId:u.tenantId||null,providerData:h,metadata:new Dm(u.createdAt,u.lastLoginAt),isAnonymous:v};Object.assign(e,y)}async function vP(e){const t=bi(e);await uu(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function yP(e,t){return[...e.filter(s=>!t.some(o=>o.providerId===s.providerId)),...t]}function PE(e){return e.map(t=>{var{providerId:a}=t,s=Jo(t,["providerId"]);return{providerId:a,uid:s.rawId||"",displayName:s.displayName||null,email:s.email||null,phoneNumber:s.phoneNumber||null,photoURL:s.photoUrl||null}})}/** 967 * @license 968 * Copyright 2020 Google LLC 969 * 970 * Licensed under the Apache License, Version 2.0 (the "License"); 971 * you may not use this file except in compliance with the License. 972 * You may obtain a copy of the License at 973 * 974 * http://www.apache.org/licenses/LICENSE-2.0 975 * 976 * Unless required by applicable law or agreed to in writing, software 977 * distributed under the License is distributed on an "AS IS" BASIS, 978 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 979 * See the License for the specific language governing permissions and 980 * limitations under the License. 981 */async function xP(e,t){const a=await ME(e,{},async()=>{const s=sl({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:o,apiKey:u}=e.config,d=await OE(e,o,"/v1/token",`key=${u}`),h=await e._getAdditionalHeaders();h["Content-Type"]="application/x-www-form-urlencoded";const m={method:"POST",headers:h,body:s};return e.emulatorConfig&&Mu(e.emulatorConfig.host)&&(m.credentials="include"),kE.fetch()(d,m)});return{accessToken:a.access_token,expiresIn:a.expires_in,refreshToken:a.refresh_token}}async function bP(e,t){return xr(e,"POST","/v2/accounts:revokeToken",Du(e,t))}/** 982 * @license 983 * Copyright 2020 Google LLC 984 * 985 * Licensed under the Apache License, Version 2.0 (the "License");
986 * you may not use this file except in compliance with the License. 987 * You may obtain a copy of the License at 988 * 989 * http://www.apache.org/licenses/LICENSE-2.0 990 * 991 * Unless required by applicable law or agreed to in writing, software 992 * distributed under the License is distributed on an "AS IS" BASIS, 993 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 994 * See the License for the specific language governing permissions and 995 * limitations under the License. 996 */class Qs{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){ge(t.idToken,"internal-error"),ge(typeof t.idToken<"u","internal-error"),ge(typeof t.refreshToken<"u","internal-error");const a="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):D1(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,a)}updateFromIdToken(t){ge(t.length!==0,"internal-error");const a=D1(t);this.updateTokensAndExpiration(t,null,a)}async getToken(t,a=!1){return!a&&this.accessToken&&!this.isExpired?this.accessToken:(ge(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,a){const{accessToken:s,refreshToken:o,expiresIn:u}=await xP(t,a);this.updateTokensAndExpiration(s,o,Number(u))}updateTokensAndExpiration(t,a,s){this.refreshToken=a||null,this.accessToken=t||null,this.expirationTime=Date.now()+s*1e3}static fromJSON(t,a){const{refreshToken:s,accessToken:o,expirationTime:u}=a,d=new Qs;return s&&(ge(typeof s=="string","internal-error",{appName:t}),d.refreshToken=s),o&&(ge(typeof o=="string","internal-error",{appName:t}),d.accessToken=o),u&&(ge(typeof u=="number","internal-error",{appName:t}),d.expirationTime=u),d}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new Qs,this.toJSON())}_performRefresh(){return ba("not implemented")}}/** 997 * @license 998 * Copyright 2020 Google LLC 999 * 1000 * Licensed under the Apache License, Version 2.0 (the "License"); 1001 * you may not use this file except in compliance with the License. 1002 * You may obtain a copy of the License at 1003 * 1004 * http://www.apache.org/licenses/LICENSE-2.0 1005 * 1006 * Unless required by applicable law or agreed to in writing, software 1007 * distributed under the License is distributed on an "AS IS" BASIS, 1008 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1009 * See the License for the specific language governing permissions and 1010 * limitations under the License. 1011 */function ei(e,t){ge(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class _n{constructor(t){var{uid:a,auth:s,stsTokenManager:o}=t,u=Jo(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new gP(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=a,this.auth=s,this.stsTokenManager=o,this.accessToken=o.accessToken,this.displayName=u.displayName||null,this.email=u.email||null,this.emailVerified=u.emailVerified||!1,this.phoneNumber=u.phoneNumber||null,this.photoURL=u.photoURL||null,this.isAnonymous=u.isAnonymous||!1,this.tenantId=u.tenantId||null,this.providerData=u.providerData?[...u.providerData]:[],this.metadata=new Dm(u.createdAt||void 0,u.lastLoginAt||void 0)}async getIdToken(t){const a=await Yo(this,this.stsTokenManager.getToken(this.auth,t));return ge(a,this.auth,"internal-error"),this.accessToken!==a&&(this.accessToken=a,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),a}getIdTokenResult(t){return mP(this,t)}reload(){return vP(this)}_assign(t){this!==t&&(ge(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(a=>Object.assign({},a)),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const a=new _n(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return a.metadata._copy(this.metadata),a}_onReload(t){ge(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,a=!1){let s=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),s=!0),a&&await uu(this),await this.auth._persistUserIfCurrent(this),s&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Fn(this.auth.app))return Promise.reject(fi(this.auth));const t=await this.getIdToken();return await Yo(this,hP(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
1011nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>Object.assign({},t)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,a){var s,o,u,d,h,m,g,v;const y=(s=a.displayName)!==null&&s!==void 0?s:void 0,b=(o=a.email)!==null&&o!==void 0?o:void 0,S=(u=a.phoneNumber)!==null&&u!==void 0?u:void 0,j=(d=a.photoURL)!==null&&d!==void 0?d:void 0,E=(h=a.tenantId)!==null&&h!==void 0?h:void 0,A=(m=a._redirectEventId)!==null&&m!==void 0?m:void 0,C=(g=a.createdAt)!==null&&g!==void 0?g:void 0,k=(v=a.lastLoginAt)!==null&&v!==void 0?v:void 0,{uid:R,emailVerified:P,isAnonymous:M,providerData:z,stsTokenManager:G}=a;ge(R&&G,t,"internal-error");const H=Qs.fromJSON(this.name,G);ge(typeof R=="string",t,"internal-error"),ei(y,t.name),ei(b,t.name),ge(typeof P=="boolean",t,"internal-error"),ge(typeof M=="boolean",t,"internal-error"),ei(S,t.name),ei(j,t.name),ei(E,t.name),ei(A,t.name),ei(C,t.name),ei(k,t.name);const $=new _n({uid:R,auth:t,email:b,emailVerified:P,displayName:y,isAnonymous:M,photoURL:j,phoneNumber:S,tenantId:E,stsTokenManager:H,createdAt:C,lastLoginAt:k});return z&&Array.isArray(z)&&($.providerData=z.map(J=>Object.assign({},J))),A&&($._redirectEventId=A),$}static async _fromIdTokenResponse(t,a,s=!1){const o=new Qs;o.updateFromServerResponse(a);const u=new _n({uid:a.localId,auth:t,stsTokenManager:o,isAnonymous:s});return await uu(u),u}static async _fromGetAccountInfoResponse(t,a,s){const o=a.users[0];ge(o.localId!==void 0,"internal-error");const u=o.providerUserInfo!==void 0?PE(o.providerUserInfo):[],d=!(o.email&&o.passwordHash)&&!(u!=null&&u.length),h=new Qs;h.updateFromIdToken(s);const m=new _n({uid:o.localId,auth:t,stsTokenManager:h,isAnonymous:d}),g={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:u,metadata:new Dm(o.createdAt,o.lastLoginAt),isAnonymous:!(o.email&&o.passwordHash)&&!(u!=null&&u.length)};return Object.assign(m,g),m}}/** 1012 * @license 1013 * Copyright 2020 Google LLC 1014 * 1015 * Licensed under the Apache License, Version 2.0 (the "License"); 1016 * you may not use this file except in compliance with the License. 1017 * You may obtain a copy of the License at 1018 * 1019 * http://www.apache.org/licenses/LICENSE-2.0 1020 * 1021 * Unless required by applicable law or agreed to in writing, software 1022 * distributed under the License is distributed on an "AS IS" BASIS, 1023 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1024 * See the License for the specific language governing permissions and 1025 * limitations under the License. 1026 */const O1=new Map;function wa(e){Na(e instanceof Function,"Expected a class definition");let t=O1.get(e);return t?(Na(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,O1.set(e,t),t)}/** 1027 * @license 1028 * Copyright 2019 Google LLC 1029 * 1030 * Licensed under the Apache License, Version 2.0 (the "License"); 1031 * you may not use this file except in compliance with the License. 1032 * You may obtain a copy of the License at 1033 * 1034 * http://www.apache.org/licenses/LICENSE-2.0 1035 * 1036 * Unless required by applicable law or agreed to in writing, software 1037 * distributed under the License is distributed on an "AS IS" BASIS, 1038 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1039 * See the License for the specific language governing permissions and 1040 * limitations under the License. 1041 */class LE{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,a){this.storage[t]=a}async _get(t){const a=this.storage[t];return a===void 0?null:a}async _remove(t){delete this.storage[t]}_addListener(t,a){}_removeListener(t,a){}}LE.type="NONE";const P1=LE;/** 1042 * @license 1043 * Copyright 2019 Google LLC 1044 * 1045 * Licensed under the Apache License, Version 2.0 (the "License");
1046 * you may not use this file except in compliance with the License. 1047 * You may obtain a copy of the License at 1048 * 1049 * http://www.apache.org/licenses/LICENSE-2.0 1050 * 1051 * Unless required by applicable law or agreed to in writing, software 1052 * distributed under the License is distributed on an "AS IS" BASIS, 1053 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1054 * See the License for the specific language governing permissions and 1055 * limitations under the License. 1056 */function qc(e,t,a){return`firebase:${e}:${t}:${a}`}class Js{constructor(t,a,s){this.persistence=t,this.auth=a,this.userKey=s;const{config:o,name:u}=this.auth;this.fullUserKey=qc(this.userKey,o.apiKey,u),this.fullPersistenceKey=qc("persistence",o.apiKey,u),this.boundEventHandler=a._onStorageEvent.bind(a),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);if(!t)return null;if(typeof t=="string"){const a=await cu(this.auth,{idToken:t}).catch(()=>{});return a?_n._fromGetAccountInfoResponse(this.auth,a,t):null}return _n._fromJSON(this.auth,t)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const a=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,a)return this.setCurrentUser(a)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,a,s="authUser"){if(!a.length)return new Js(wa(P1),t,s);const o=(await Promise.all(a.map(async g=>{if(await g._isAvailable())return g}))).filter(g=>g);let u=o[0]||wa(P1);const d=qc(s,t.config.apiKey,t.name);let h=null;for(const g of a)try{const v=await g._get(d);if(v){let y;if(typeof v=="string"){const b=await cu(t,{idToken:v}).catch(()=>{});if(!b)break;y=await _n._fromGetAccountInfoResponse(t,b,v)}else y=_n._fromJSON(t,v);g!==u&&(h=y),u=g;break}}catch{}const m=o.filter(g=>g._shouldAllowMigration);return!u._shouldAllowMigration||!m.length?new Js(u,t,s):(u=m[0],h&&await u._set(d,h.toJSON()),await Promise.all(a.map(async g=>{if(g!==u)try{await g._remove(d)}catch{}})),new Js(u,t,s))}}/** 1057 * @license 1058 * Copyright 2020 Google LLC 1059 * 1060 * Licensed under the Apache License, Version 2.0 (the "License"); 1061 * you may not use this file except in compliance with the License. 1062 * You may obtain a copy of the License at 1063 * 1064 * http://www.apache.org/licenses/LICENSE-2.0 1065 * 1066 * Unless required by applicable law or agreed to in writing, software 1067 * distributed under the License is distributed on an "AS IS" BASIS, 1068 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1069 * See the License for the specific language governing permissions and 1070 * limitations under the License. 1071 */function L1(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(zE(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(IE(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(HE(t))return"Blackberry";if(FE(t))return"Webos";if(UE(t))return"Safari";if((t.includes("chrome/")||BE(t))&&!t.includes("edge/"))return"Chrome";if(VE(t))return"Android";{const a=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,s=e.match(a);if((s==null?void 0:s.length)===2)return s[1]}return"Other"}function IE(e=Pt()){return/firefox\//i.test(e)}function UE(e=Pt()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function BE(e=Pt()){return/crios\//i.test(e)}function zE(e=Pt()){return/iemobile/i.test(e)}function VE(e=Pt()){return/android/i.test(e)}function HE(e=Pt()){return/blackberry/i.test(e)}function FE(e=Pt()){return/webos/i.test(e)}function gg(e=Pt()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function wP(e=Pt()){var t;return gg(e)&&!!(!((t=window.navigator)===null||t===void 0)&&t.standalone)}function SP(){return B8()&&document.documentMode===10}function $E(e=Pt()){return gg(e)||VE(e)||FE(e)||HE(e)||/windows phone/i.test(e)||zE(e)}/** 1072 * @license 1073 * Copyright 2020 Google LLC 1074 * 1075 * Licensed under the Apache License, Version 2.0 (the "License");
1076 * you may not use this file except in compliance with the License. 1077 * You may obtain a copy of the License at 1078 * 1079 * http://www.apache.org/licenses/LICENSE-2.0 1080 * 1081 * Unless required by applicable law or agreed to in writing, software 1082 * distributed under the License is distributed on an "AS IS" BASIS, 1083 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1084 * See the License for the specific language governing permissions and 1085 * limitations under the License. 1086 */function GE(e,t=[]){let a;switch(e){case"Browser":a=L1(Pt());break;case"Worker":a=`${L1(Pt())}-${e}`;break;default:a=e}const s=t.length?t.join(","):"FirebaseCore-web";return`${a}/JsCore/${rl}/${s}`}/** 1087 * @license 1088 * Copyright 2022 Google LLC 1089 * 1090 * Licensed under the Apache License, Version 2.0 (the "License"); 1091 * you may not use this file except in compliance with the License. 1092 * You may obtain a copy of the License at 1093 * 1094 * http://www.apache.org/licenses/LICENSE-2.0 1095 * 1096 * Unless required by applicable law or agreed to in writing, software 1097 * distributed under the License is distributed on an "AS IS" BASIS, 1098 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1099 * See the License for the specific language governing permissions and 1100 * limitations under the License. 1101 */class TP{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,a){const s=u=>new Promise((d,h)=>{try{const m=t(u);d(m)}catch(m){h(m)}});s.onAbort=a,this.queue.push(s);const o=this.queue.length-1;return()=>{this.queue[o]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const a=[];try{for(const s of this.queue)await s(t),s.onAbort&&a.push(s.onAbort)}catch(s){a.reverse();for(const o of a)try{o()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:s==null?void 0:s.message})}}}/** 1102 * @license 1103 * Copyright 2023 Google LLC 1104 * 1105 * Licensed under the Apache License, Version 2.0 (the "License"); 1106 * you may not use this file except in compliance with the License. 1107 * You may obtain a copy of the License at 1108 * 1109 * http://www.apache.org/licenses/LICENSE-2.0 1110 * 1111 * Unless required by applicable law or agreed to in writing, software 1112 * distributed under the License is distributed on an "AS IS" BASIS, 1113 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1114 * See the License for the specific language governing permissions and 1115 * limitations under the License. 1116 */async function EP(e,t={}){return xr(e,"GET","/v2/passwordPolicy",Du(e,t))}/** 1117 * @license 1118 * Copyright 2023 Google LLC 1119 * 1120 * Licensed under the Apache License, Version 2.0 (the "License"); 1121 * you may not use this file except in compliance with the License. 1122 * You may obtain a copy of the License at 1123 * 1124 * http://www.apache.org/licenses/LICENSE-2.0 1125 * 1126 * Unless required by applicable law or agreed to in writing, software 1127 * distributed under the License is distributed on an "AS IS" BASIS, 1128 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1129 * See the License for the specific language governing permissions and 1130 * limitations under the License. 1131 */const jP=6;class NP{constructor(t){var a,s,o,u;const d=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(a=d.minPasswordLength)!==null&&a!==void 0?a:jP,d.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=d.maxPasswordLength),d.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=d.containsLowercaseCharacter),d.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=d.containsUppercaseCharacter),d.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=d.containsNumericCharacter),d.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=d.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(o=(s=t.allowedNonAlphanumericCharacters)===null||s===void 0?void 0:s.join(""))!==null&&o!==void 0?o:"",this.forceUpgradeOnSignin=(u=t.forceUpgradeOnSignin)!==null&&u!==void 0?u:!1,this.schemaVersion=t.schemaVersion}validatePassword(t){var a,s,o,u,d,h;const m={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,m),this.validatePasswordCharacterOptions(t,m),m.isValid&&
1131(m.isValid=(a=m.meetsMinPasswordLength)!==null&&a!==void 0?a:!0),m.isValid&&(m.isValid=(s=m.meetsMaxPasswordLength)!==null&&s!==void 0?s:!0),m.isValid&&(m.isValid=(o=m.containsLowercaseLetter)!==null&&o!==void 0?o:!0),m.isValid&&(m.isValid=(u=m.containsUppercaseLetter)!==null&&u!==void 0?u:!0),m.isValid&&(m.isValid=(d=m.containsNumericCharacter)!==null&&d!==void 0?d:!0),m.isValid&&(m.isValid=(h=m.containsNonAlphanumericCharacter)!==null&&h!==void 0?h:!0),m}validatePasswordLengthOptions(t,a){const s=this.customStrengthOptions.minPasswordLength,o=this.customStrengthOptions.maxPasswordLength;s&&(a.meetsMinPasswordLength=t.length>=s),o&&(a.meetsMaxPasswordLength=t.length<=o)}validatePasswordCharacterOptions(t,a){this.updatePasswordCharacterOptionsStatuses(a,!1,!1,!1,!1);let s;for(let o=0;o<t.length;o++)s=t.charAt(o),this.updatePasswordCharacterOptionsStatuses(a,s>="a"&&s<="z",s>="A"&&s<="Z",s>="0"&&s<="9",this.allowedNonAlphanumericCharacters.includes(s))}updatePasswordCharacterOptionsStatuses(t,a,s,o,u){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=a)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=s)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=o)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=u))}}/** 1132 * @license 1133 * Copyright 2020 Google LLC 1134 * 1135 * Licensed under the Apache License, Version 2.0 (the "License"); 1136 * you may not use this file except in compliance with the License. 1137 * You may obtain a copy of the License at 1138 * 1139 * http://www.apache.org/licenses/LICENSE-2.0 1140 * 1141 * Unless required by applicable law or agreed to in writing, software 1142 * distributed under the License is distributed on an "AS IS" BASIS, 1143 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1144 * See the License for the specific language governing permissions and 1145 * limitations under the License. 1146 */class AP{constructor(t,a,s,o){this.app=t,this.heartbeatServiceProvider=a,this.appCheckServiceProvider=s,this.config=o,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new I1(this),this.idTokenSubscription=new I1(this),this.beforeStateQueue=new TP(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=_E,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=o.sdkClientVersion,this._persistenceManagerAvailable=new Promise(u=>this._resolvePersistenceManagerAvailable=u)}_initializeWithPersistence(t,a){return a&&(this._popupRedirectResolver=wa(a)),this._initializationPromise=this.queue(async()=>{var s,o,u;if(!this._deleted&&(this.persistenceManager=await Js.create(this,t),(s=this._resolvePersistenceManagerAvailable)===null||s===void 0||s.call(this),!this._deleted)){if(!((o=this._popupRedirectResolver)===null||o===void 0)&&o._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(a),this.lastNotifiedUid=((u=this.currentUser)===null||u===void 0?void 0:u.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const a=await cu(this,{idToken:t}),s=await _n._fromGetAccountInfoResponse(this,a,t);await this.directlySetCurrentUser(s)}catch(a){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",a),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){var a;if(Fn(this.app)){const d=this.app.settings.authIdToken;return d?new Promise(h=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(d).then(h,h))}):this.directlySetCurrentUser(null)}const s=await this.assertedPersistence.getCurrentUser();let o=s,u=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const d=(a=this.redirectUser)===null||a===void 0?void 0:a._redirectEventId,h=o==null?void 0:o._redirectEventId,m=await this.tryRedirectSignIn(t);
1146(!d||d===h)&&(m!=null&&m.user)&&(o=m.user,u=!0)}if(!o)return this.directlySetCurrentUser(null);if(!o._redirectEventId){if(u)try{await this.beforeStateQueue.runMiddleware(o)}catch(d){o=s,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(d))}return o?this.reloadAndSetCurrentUserOrClear(o):this.directlySetCurrentUser(null)}return ge(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===o._redirectEventId?this.directlySetCurrentUser(o):this.reloadAndSetCurrentUserOrClear(o)}async tryRedirectSignIn(t){let a=null;try{a=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return a}async reloadAndSetCurrentUserOrClear(t){try{await uu(t)}catch(a){if((a==null?void 0:a.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=lP()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(Fn(this.app))return Promise.reject(fi(this));const a=t?bi(t):null;return a&&ge(a.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(a&&a._clone(this))}async _updateCurrentUser(t,a=!1){if(!this._deleted)return t&&ge(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),a||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return Fn(this.app)?Promise.reject(fi(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return Fn(this.app)?Promise.reject(fi(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(wa(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const a=this._getPasswordPolicyInternal();return a.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):a.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await EP(this),a=new NP(t);this.tenantId===null?this._projectPasswordPolicy=a:this._tenantPasswordPolicies[this.tenantId]=a}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(t){this._errorFactory=new il("auth","Firebase",t())}onAuthStateChanged(t,a,s){return this.registerStateListener(this.authStateSubscription,t,a,s)}beforeAuthStateChanged(t,a){return this.beforeStateQueue.pushCallback(t,a)}onIdTokenChanged(t,a,s){return this.registerStateListener(this.idTokenSubscription,t,a,s)}authStateReady(){return new Promise((t,a)=>{if(this.currentUser)t();else{const s=this.onAuthStateChanged(()=>{s(),t()},a)}})}async revokeAccessToken(t){if(this.currentUser){const a=await this.currentUser.getIdToken(),s={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:a};this.tenantId!=null&&(s.tenantId=this.tenantId),await bP(this,s)}}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(t=this._currentUser)===null||t===void 0?void 0:t.toJSON()}}async _setRedirectUser(t,a){const s=await this.getOrInitRedirectPersistenceManager(a);return t===null?s.removeCurrentUser():s.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const a=t&&wa(t)||this._popupRedirectResolver;ge(a,this,"argument-error"),this.redirectPersistenceManager=await Js.create(this,[wa(a._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var a,s;return this._isInitialized&&await this.queue(async()=>{}),((a=this._currentUser)===null||a===void 0?void 0:a._redirectEventId)===t?this._currentUser:((s=this.redirectUser)===null||s===void 0?void 0:s._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var t,a;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const s=(a=(t=this.currentUser)===null||t===void 0?void 0:t.uid)!==null&&a!==void 0?a:null;this.lastNotifiedUid!==s&&(this.lastNotifiedUid=s,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,a,s,o){if(this._deleted)return()=>{};const u=typeof a=="function"?a:a.next.bind(a);let d=!1;const h=this._isInitialized?Promise.resolve():this._initializationPromise;if(ge(h,this,"internal-error"),h.then(()=>{d||u(this.currentUser)}),typeof a=="function"){const m=t.addObserver(a,s,o);return()=>{d=!0,m()}}else{const m=t.addObserver(a);return()=>{d=!0,m()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return ge(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=GE(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var t;const a={"X-Client-Version":this.clientVersion};this.app.options.appId&&(a["X-Firebase-gmpid"]=this.app.options.appId);const s=await((t=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getHeartbeatsHeader());s&&(a["X-Firebase-Client"]=s);const o=await this._getAppCheckToken();return o&&(a["X-Firebase-AppCheck"]=o),a}async _getAppCheckToken(){var t;if(Fn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const a=await((t=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getToken());return a!=null&&a.error&&sP(`Error while retrieving App Check token: ${a.error}`),a==null?void 0:a.token}}function Ou(e){return bi(e)}class I1{constructor(t){this.auth=t,this.observer=null,this.addObserver=q8(a=>this.observer=a)}get next(){return ge(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 1147 * @license 1148 * Copyright 2020 Google LLC 1149 * 1150 * Licensed under the Apache License, Version 2.0 (the "License");
1151 * you may not use this file except in compliance with the License. 1152 * You may obtain a copy of the License at 1153 * 1154 * http://www.apache.org/licenses/LICENSE-2.0 1155 * 1156 * Unless required by applicable law or agreed to in writing, software 1157 * distributed under the License is distributed on an "AS IS" BASIS, 1158 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1159 * See the License for the specific language governing permissions and 1160 * limitations under the License. 1161 */let vg={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function CP(e){vg=e}function _P(e){return vg.loadJS(e)}function RP(){return vg.gapiScript}function kP(e){return`__${e}${Math.floor(Math.random()*1e6)}`}/** 1162 * @license 1163 * Copyright 2020 Google LLC 1164 * 1165 * Licensed under the Apache License, Version 2.0 (the "License"); 1166 * you may not use this file except in compliance with the License. 1167 * You may obtain a copy of the License at 1168 * 1169 * http://www.apache.org/licenses/LICENSE-2.0 1170 * 1171 * Unless required by applicable law or agreed to in writing, software 1172 * distributed under the License is distributed on an "AS IS" BASIS, 1173 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1174 * See the License for the specific language governing permissions and 1175 * limitations under the License. 1176 */function MP(e,t){const a=EE(e,"auth");if(a.isInitialized()){const o=a.getImmediate(),u=a.getOptions();if(sr(u,t??{}))return o;ja(o,"already-initialized")}return a.initialize({options:t})}function DP(e,t){const a=(t==null?void 0:t.persistence)||[],s=(Array.isArray(a)?a:[a]).map(wa);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(s,t==null?void 0:t.popupRedirectResolver)}function OP(e,t,a){const s=Ou(e);ge(/^https?:\/\//.test(t),s,"invalid-emulator-scheme");const o=!1,u=qE(t),{host:d,port:h}=PP(t),m=h===null?"":`:${h}`,g={url:`${u}//${d}${m}/`},v=Object.freeze({host:d,port:h,protocol:u.replace(":",""),options:Object.freeze({disableWarnings:o})});if(!s._canInitEmulator){ge(s.config.emulator&&s.emulatorConfig,s,"emulator-config-failed"),ge(sr(g,s.config.emulator)&&sr(v,s.emulatorConfig),s,"emulator-config-failed");return}s.config.emulator=g,s.emulatorConfig=v,s.settings.appVerificationDisabledForTesting=!0,Mu(d)?(k8(`${u}//${d}${m}`),O8("Auth",!0)):LP()}function qE(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function PP(e){const t=qE(e),a=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!a)return{host:"",port:null};const s=a[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(s);if(o){const u=o[1];return{host:u,port:U1(s.substr(u.length+1))}}else{const[u,d]=s.split(":");return{host:u,port:U1(d)}}}function U1(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function LP(){function e(){const t=document.createElement("p"),a=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",a.position="fixed",a.width="100%",a.backgroundColor="#ffffff",a.border=".1em solid #000000",a.color="#b50000",a.bottom="0px",a.left="0px",a.margin="0px",a.zIndex="10000",a.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/** 1177 * @license 1178 * Copyright 2020 Google LLC 1179 * 1180 * Licensed under the Apache License, Version 2.0 (the "License"); 1181 * you may not use this file except in compliance with the License. 1182 * You may obtain a copy of the License at 1183 * 1184 * http://www.apache.org/licenses/LICENSE-2.0 1185 * 1186 * Unless required by applicable law or agreed to in writing, software 1187 * distributed under the License is distributed on an "AS IS" BASIS, 1188 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1189 * See the License for the specific language governing permissions and 1190 * limitations under the License. 1191 */class KE{constructor(t,a){this.providerId=t,this.signInMethod=a}toJSON(){return ba("not implemented")}_getIdTokenResponse(t){return ba("not implemented")}_linkToIdToken(t,a){return ba("not implemented")}_getReauthenticationResolver(t){return ba("not implemented")}}/** 1192 * @license 1193 * Copyright 2020 Google LLC 1194 * 1195 * Licensed under the Apache License, Version 2.0 (the "License");
1196 * you may not use this file except in compliance with the License. 1197 * You may obtain a copy of the License at 1198 * 1199 * http://www.apache.org/licenses/LICENSE-2.0 1200 * 1201 * Unless required by applicable law or agreed to in writing, software 1202 * distributed under the License is distributed on an "AS IS" BASIS, 1203 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1204 * See the License for the specific language governing permissions and 1205 * limitations under the License. 1206 */async function er(e,t){return DE(e,"POST","/v1/accounts:signInWithIdp",Du(e,t))}/** 1207 * @license 1208 * Copyright 2020 Google LLC 1209 * 1210 * Licensed under the Apache License, Version 2.0 (the "License"); 1211 * you may not use this file except in compliance with the License. 1212 * You may obtain a copy of the License at 1213 * 1214 * http://www.apache.org/licenses/LICENSE-2.0 1215 * 1216 * Unless required by applicable law or agreed to in writing, software 1217 * distributed under the License is distributed on an "AS IS" BASIS, 1218 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1219 * See the License for the specific language governing permissions and 1220 * limitations under the License. 1221 */const IP="http://localhost";class Ji extends KE{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const a=new Ji(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(a.idToken=t.idToken),t.accessToken&&(a.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(a.nonce=t.nonce),t.pendingToken&&(a.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(a.accessToken=t.oauthToken,a.secret=t.oauthTokenSecret):ja("argument-error"),a}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
1221once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const a=typeof t=="string"?JSON.parse(t):t,{providerId:s,signInMethod:o}=a,u=Jo(a,["providerId","signInMethod"]);if(!s||!o)return null;const d=new Ji(s,o);return d.idToken=u.idToken||void 0,d.accessToken=u.accessToken||void 0,d.secret=u.secret,d.nonce=u.nonce,d.pendingToken=u.pendingToken||null,d}_getIdTokenResponse(t){const a=this.buildRequest();return er(t,a)}_linkToIdToken(t,a){const s=this.buildRequest();return s.idToken=a,er(t,s)}_getReauthenticationResolver(t){const a=this.buildRequest();return a.autoCreate=!1,er(t,a)}buildRequest(){const t={requestUri:IP,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const a={};this.idToken&&(a.id_token=this.idToken),this.accessToken&&(a.access_token=this.accessToken),this.secret&&(a.oauth_token_secret=this.secret),a.providerId=this.providerId,this.nonce&&!this.pendingToken&&(a.nonce=this.nonce),t.postBody=sl(a)}return t}}/** 1222 * @license 1223 * Copyright 2020 Google LLC 1224 * 1225 * Licensed under the Apache License, Version 2.0 (the "License"); 1226 * you may not use this file except in compliance with the License. 1227 * You may obtain a copy of the License at 1228 * 1229 * http://www.apache.org/licenses/LICENSE-2.0 1230 * 1231 * Unless required by applicable law or agreed to in writing, software 1232 * distributed under the License is distributed on an "AS IS" BASIS, 1233 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1234 * See the License for the specific language governing permissions and 1235 * limitations under the License. 1236 */class YE{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/** 1237 * @license 1238 * Copyright 2019 Google LLC 1239 * 1240 * Licensed under the Apache License, Version 2.0 (the "License"); 1241 * you may not use this file except in compliance with the License. 1242 * You may obtain a copy of the License at 1243 * 1244 * http://www.apache.org/licenses/LICENSE-2.0 1245 * 1246 * Unless required by applicable law or agreed to in writing, software 1247 * distributed under the License is distributed on an "AS IS" BASIS, 1248 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1249 * See the License for the specific language governing permissions and 1250 * limitations under the License. 1251 */class ll extends YE{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}/** 1252 * @license 1253 * Copyright 2020 Google LLC 1254 * 1255 * Licensed under the Apache License, Version 2.0 (the "License"); 1256 * you may not use this file except in compliance with the License. 1257 * You may obtain a copy of the License at 1258 * 1259 * http://www.apache.org/licenses/LICENSE-2.0 1260 * 1261 * Unless required by applicable law or agreed to in writing, software 1262 * distributed under the License is distributed on an "AS IS" BASIS, 1263 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1264 * See the License for the specific language governing permissions and 1265 * limitations under the License. 1266 */class ai extends ll{constructor(){super("facebook.com")}static credential(t){return Ji._fromParams({providerId:ai.PROVIDER_ID,signInMethod:ai.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return ai.credentialFromTaggedObject(t)}static credentialFromError(t){return ai.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return ai.credential(t.oauthAccessToken)}catch{return null}}}ai.FACEBOOK_SIGN_IN_METHOD="facebook.com";ai.PROVIDER_ID="facebook.com";/** 1267 * @license 1268 * Copyright 2020 Google LLC 1269 * 1270 * Licensed under the Apache License, Version 2.0 (the "License"); 1271 * you may not use this file except in compliance with the License. 1272 * You may obtain a copy of the License at 1273 * 1274 * http://www.apache.org/licenses/LICENSE-2.0 1275 * 1276 * Unless required by applicable law or agreed to in writing, softw
1276are 1277 * distributed under the License is distributed on an "AS IS" BASIS, 1278 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1279 * See the License for the specific language governing permissions and 1280 * limitations under the License. 1281 */class ii extends ll{constructor(){super("google.com"),this.addScope("profile")}static credential(t,a){return Ji._fromParams({providerId:ii.PROVIDER_ID,signInMethod:ii.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:a})}static credentialFromResult(t){return ii.credentialFromTaggedObject(t)}static credentialFromError(t){return ii.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:a,oauthAccessToken:s}=t;if(!a&&!s)return null;try{return ii.credential(a,s)}catch{return null}}}ii.GOOGLE_SIGN_IN_METHOD="google.com";ii.PROVIDER_ID="google.com";/** 1282 * @license 1283 * Copyright 2020 Google LLC 1284 * 1285 * Licensed under the Apache License, Version 2.0 (the "License"); 1286 * you may not use this file except in compliance with the License. 1287 * You may obtain a copy of the License at 1288 * 1289 * http://www.apache.org/licenses/LICENSE-2.0 1290 * 1291 * Unless required by applicable law or agreed to in writing, software 1292 * distributed under the License is distributed on an "AS IS" BASIS, 1293 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1294 * See the License for the specific language governing permissions and 1295 * limitations under the License. 1296 */class si extends ll{constructor(){super("github.com")}static credential(t){return Ji._fromParams({providerId:si.PROVIDER_ID,signInMethod:si.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return si.credentialFromTaggedObject(t)}static credentialFromError(t){return si.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return si.credential(t.oauthAccessToken)}catch{return null}}}si.GITHUB_SIGN_IN_METHOD="github.com";si.PROVIDER_ID="github.com";/** 1297 * @license 1298 * Copyright 2020 Google LLC 1299 * 1300 * Licensed under the Apache License, Version 2.0 (the "License"); 1301 * you may not use this file except in compliance with the License. 1302 * You may obtain a copy of the License at 1303 * 1304 * http://www.apache.org/licenses/LICENSE-2.0 1305 * 1306 * Unless required by applicable law or agreed to in writing, software 1307 * distributed under the License is distributed on an "AS IS" BASIS, 1308 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1309 * See the License for the specific language governing permissions and 1310 * limitations under the License. 1311 */class ri extends ll{constructor(){super("twitter.com")}static credential(t,a){return Ji._fromParams({providerId:ri.PROVIDER_ID,signInMethod:ri.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:a})}static credentialFromResult(t){return ri.credentialFromTaggedObject(t)}static credentialFromError(t){return ri.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:a,oauthTokenSecret:s}=t;if(!a||!s)return null;try{return ri.credential(a,s)}catch{return null}}}ri.TWITTER_SIGN_IN_METHOD="twitter.com";ri.PROVIDER_ID="twitter.com";/** 1312 * @license 1313 * Copyright 2020 Google LLC 1314 * 1315 * Licensed under the Apache License, Version 2.0 (the "License"); 1316 * you may not use this file except in compliance with the License. 1317 * You may obtain a copy of the License at 1318 * 1319 * http://www.apache.org/licenses/LICENSE-2.0 1320 * 1321 * Unless required by applicable law or agreed to in writing, software 1322 * distributed under the License is distributed on an "AS IS" BASIS, 1323 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1324 * See the License for the specific language governing permissions and 1325 * limitations under the License. 1326 */class es{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,a,s,o=!1){const u=await _n._fromIdTokenResponse(t,s,o),d=B1(s);return new es({user:u,providerId:d,_tokenResponse:s,operationType:a})}static async _forOperation(t,a,s){await t._updateTokensIfNecessary(s,!0);const o=B1(s);return new es({user:t,providerId:o,_tokenResponse:s,operationType:a})}}function B1(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/** 1327 * @license 1328 * Copyright 2020 Google LLC 1329 * 1330 * Licensed under the Apache License, Version 2.0 (the "License");
1331 * you may not use this file except in compliance with the License. 1332 * You may obtain a copy of the License at 1333 * 1334 * http://www.apache.org/licenses/LICENSE-2.0 1335 * 1336 * Unless required by applicable law or agreed to in writing, software 1337 * distributed under the License is distributed on an "AS IS" BASIS, 1338 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1339 * See the License for the specific language governing permissions and 1340 * limitations under the License. 1341 */class du extends xi{constructor(t,a,s,o){var u;super(a.code,a.message),this.operationType=s,this.user=o,Object.setPrototypeOf(this,du.prototype),this.customData={appName:t.name,tenantId:(u=t.tenantId)!==null&&u!==void 0?u:void 0,_serverResponse:a.customData._serverResponse,operationType:s}}static _fromErrorAndOperation(t,a,s,o){return new du(t,a,s,o)}}function WE(e,t,a,s){return(t==="reauthenticate"?a._getReauthenticationResolver(e):a._getIdTokenResponse(e)).catch(u=>{throw u.code==="auth/multi-factor-auth-required"?du._fromErrorAndOperation(e,u,t,s):u})}async function UP(e,t,a=!1){const s=await Yo(e,t._linkToIdToken(e.auth,await e.getIdToken()),a);return es._forOperation(e,"link",s)}/** 1342 * @license 1343 * Copyright 2019 Google LLC 1344 * 1345 * Licensed under the Apache License, Version 2.0 (the "License"); 1346 * you may not use this file except in compliance with the License. 1347 * You may obtain a copy of the License at 1348 * 1349 * http://www.apache.org/licenses/LICENSE-2.0 1350 * 1351 * Unless required by applicable law or agreed to in writing, software 1352 * distributed under the License is distributed on an "AS IS" BASIS, 1353 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1354 * See the License for the specific language governing permissions and 1355 * limitations under the License. 1356 */async function BP(e,t,a=!1){const{auth:s}=e;if(Fn(s.app))return Promise.reject(fi(s));const o="reauthenticate";try{const u=await Yo(e,WE(s,o,t,e),a);ge(u.idToken,s,"internal-error");const d=pg(u.idToken);ge(d,s,"internal-error");const{sub:h}=d;return ge(e.uid===h,s,"user-mismatch"),es._forOperation(e,o,u)}catch(u){throw(u==null?void 0:u.code)==="auth/user-not-found"&&ja(s,"user-mismatch"),u}}/** 1357 * @license 1358 * Copyright 2020 Google LLC 1359 * 1360 * Licensed under the Apache License, Version 2.0 (the "License"); 1361 * you may not use this file except in compliance with the License. 1362 * You may obtain a copy of the License at 1363 * 1364 * http://www.apache.org/licenses/LICENSE-2.0 1365 * 1366 * Unless required by applicable law or agreed to in writing, software 1367 * distributed under the License is distributed on an "AS IS" BASIS, 1368 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1369 * See the License for the specific language governing permissions and 1370 * limitations under the License. 1371 */async function zP(e,t,a=!1){if(Fn(e.app))return Promise.reject(fi(e));const s="signIn",o=await WE(e,s,t),u=await es._fromIdTokenResponse(e,s,o);return a||await e._updateCurrentUser(u.user),u}/** 1372 * @license 1373 * Copyright 2020 Google LLC 1374 * 1375 * Licensed under the Apache License, Version 2.0 (the "License"); 1376 * you may not use this file except in compliance with the License. 1377 * You may obtain a copy of the License at 1378 * 1379 * http://www.apache.org/licenses/LICENSE-2.0 1380 * 1381 * Unless required by applicable law or agreed to in writing, software 1382 * distributed under the License is distributed on an "AS IS" BASIS, 1383 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1384 * See the License for the specific language governing permissions and 1385 * limitations under the License. 1386 */async function VP(e,t){return DE(e,"POST","/v1/accounts:signInWithCustomToken",Du(e,t))}/** 1387 * @license 1388 * Copyright 2020 Google LLC 1389 * 1390 * Licensed under the Apache License, Version 2.0 (the "License"); 1391 * you may not use this file except in compliance with the License. 1392 * You may obtain a copy of the License at 1393 * 1394 * http://www.apache.org/licenses/LICENSE-2.0 1395 * 1396 * Unless required by applicable law or agreed to in writing, software 1397 * distributed under the License is distributed on an "AS IS" BASIS, 1398 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1399 * See the License for the specific language governing permissions and 1400 * limitations under the License. 1401 */async function HP(e,t){if(Fn(e.app))return Promise.reject(fi(e));const a=Ou(e),s=await VP(a,{token:t,returnSecureToken:!0}),o=await es._fromIdTokenResponse(a,"signIn",s);return await a._updateCurrentUser(o.user),o}function FP(e,t,a,s){return bi(e).onIdTokenChanged(t,a,s)}function $P(e,t,a){return bi(e).beforeAuthStateChanged(t,a)}function GP(e,t,a,s){return bi(e).onAuthStateChanged(t,a,s)}function qP(e){return bi(e).signOut()}const fu="__sak";/** 1402 * @license 1403 * Copyright 2019 Google LLC 1404 * 1405 * Licensed under the Apache License, Version 2.0 (the "License");
1406 * you may not use this file except in compliance with the License. 1407 * You may obtain a copy of the License at 1408 * 1409 * http://www.apache.org/licenses/LICENSE-2.0 1410 * 1411 * Unless required by applicable law or agreed to in writing, software 1412 * distributed under the License is distributed on an "AS IS" BASIS, 1413 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1414 * See the License for the specific language governing permissions and 1415 * limitations under the License. 1416 */class XE{constructor(t,a){this.storageRetriever=t,this.type=a}_isAvailable(){try{return this.storage?(this.storage.setItem(fu,"1"),this.storage.removeItem(fu),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,a){return this.storage.setItem(t,JSON.stringify(a)),Promise.resolve()}_get(t){const a=this.storage.getItem(t);return Promise.resolve(a?JSON.parse(a):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 1417 * @license 1418 * Copyright 2020 Google LLC 1419 * 1420 * Licensed under the Apache License, Version 2.0 (the "License"); 1421 * you may not use this file except in compliance with the License. 1422 * You may obtain a copy of the License at 1423 * 1424 * http://www.apache.org/licenses/LICENSE-2.0 1425 * 1426 * Unless required by applicable law or agreed to in writing, software 1427 * distributed under the License is distributed on an "AS IS" BASIS, 1428 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1429 * See the License for the specific language governing permissions and 1430 * limitations under the License. 1431 */const KP=1e3,YP=10;class ZE extends XE{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,a)=>this.onStorageEvent(t,a),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=$E(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const a of Object.keys(this.listeners)){const s=this.storage.getItem(a),o=this.localCache[a];s!==o&&t(a,o,s)}}onStorageEvent(t,a=!1){if(!t.key){this.forAllChangedKeys((d,h,m)=>{this.notifyListeners(d,m)});return}const s=t.key;a?this.detachListener():this.stopPolling();const o=()=>{const d=this.storage.getItem(s);!a&&this.localCache[s]===d||this.notifyListeners(s,d)},u=this.storage.getItem(s);SP()&&u!==t.newValue&&t.newValue!==t.oldValue?setTimeout(o,YP):o()}notifyListeners(t,a){this.localCache[t]=a;const s=this.listeners[t];if(s)for(const o of Array.from(s))o(a&&JSON.parse(a))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,a,s)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:a,newValue:s}),!0)})},KP)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,a){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(a)}_removeListener(t,a){this.listeners[t]&&(this.listeners[t].delete(a),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,a){await super._set(t,a),this.localCache[t]=JSON.stringify(a)}async _get(t){const a=await super._get(t);return this.localCache[t]=JSON.stringify(a),a}async _remove(t){await super._remove(t),delete this.localCache[t]}}ZE.type="LOCAL";const WP=ZE;/** 1432 * @license 1433 * Copyright 2020 Google LLC 1434 * 1435 * Licensed under the Apache License, Version 2.0 (the "License"); 1436 * you may not use this file except in compliance with the License. 1437 * You may obtain a copy of the License at 1438 * 1439 * http://www.apache.org/licenses/LICENSE-2.0 1440 * 1441 * Unless required by applicable law or agreed to in writing, software 1442 * distributed under the License is distributed on an "AS IS" BASIS, 1443 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1444 * See the License for the specific language governing permissions and 1445 * limitations under the License. 1446 */class QE extends XE{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,a){}_removeListener(t,a){}}QE.type="SESSION";const JE=QE;/** 1447 * @license 1448 * Copyright 2019 Google LLC 1449 * 1450 * Licensed under the Apache License, Version 2.0 (the "License");
1451 * you may not use this file except in compliance with the License. 1452 * You may obtain a copy of the License at 1453 * 1454 * http://www.apache.org/licenses/LICENSE-2.0 1455 * 1456 * Unless required by applicable law or agreed to in writing, software 1457 * distributed under the License is distributed on an "AS IS" BASIS, 1458 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1459 * See the License for the specific language governing permissions and 1460 * limitations under the License. 1461 */function XP(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(a){return{fulfilled:!1,reason:a}}}))}/** 1462 * @license 1463 * Copyright 2019 Google LLC 1464 * 1465 * Licensed under the Apache License, Version 2.0 (the "License"); 1466 * you may not use this file except in compliance with the License. 1467 * You may obtain a copy of the License at 1468 * 1469 * http://www.apache.org/licenses/LICENSE-2.0 1470 * 1471 * Unless required by applicable law or agreed to in writing, software 1472 * distributed under the License is distributed on an "AS IS" BASIS, 1473 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1474 * See the License for the specific language governing permissions and 1475 * limitations under the License. 1476 */class Pu{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const a=this.receivers.find(o=>o.isListeningto(t));if(a)return a;const s=new Pu(t);return this.receivers.push(s),s}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const a=t,{eventId:s,eventType:o,data:u}=a.data,d=this.handlersMap[o];if(!(d!=null&&d.size))return;a.ports[0].postMessage({status:"ack",eventId:s,eventType:o});const h=Array.from(d).map(async g=>g(a.origin,u)),m=await XP(h);a.ports[0].postMessage({status:"done",eventId:s,eventType:o,response:m})}_subscribe(t,a){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(a)}_unsubscribe(t,a){this.handlersMap[t]&&a&&this.handlersMap[t].delete(a),(!a||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Pu.receivers=[];/** 1477 * @license 1478 * Copyright 2020 Google LLC 1479 * 1480 * Licensed under the Apache License, Version 2.0 (the "License"); 1481 * you may not use this file except in compliance with the License. 1482 * You may obtain a copy of the License at 1483 * 1484 * http://www.apache.org/licenses/LICENSE-2.0 1485 * 1486 * Unless required by applicable law or agreed to in writing, software 1487 * distributed under the License is distributed on an "AS IS" BASIS, 1488 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1489 * See the License for the specific language governing permissions and 1490 * limitations under the License. 1491 */function yg(e="",t=10){let a="";for(let s=0;s<t;s++)a+=Math.floor(Math.random()*10);return e+a}/** 1492 * @license 1493 * Copyright 2019 Google LLC 1494 * 1495 * Licensed under the Apache License, Version 2.0 (the "License"); 1496 * you may not use this file except in compliance with the License. 1497 * You may obtain a copy of the License at 1498 * 1499 * http://www.apache.org/licenses/LICENSE-2.0 1500 * 1501 * Unless required by applicable law or agreed to in writing, software 1502 * distributed under the License is distributed on an "AS IS" BASIS, 1503 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1504 * See the License for the specific language governing permissions and 1505 * limitations under the License. 1506 */class ZP{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,a,s=50){const o=typeof MessageChannel<"u"?new MessageChannel:null;if(!o)throw new Error("connection_unavailable");let u,d;return new Promise((h,m)=>{const g=yg("",20);o.port1.start();const v=setTimeout(()=>{m(new Error("unsupported_event"))},s);d={messageChannel:o,onMessage(y){const b=y;if(b.data.eventId===g)switch(b.data.status){case"ack":clearTimeout(v),u=setTimeout(()=>{m(new Error("timeout"))},3e3);break;case"done":clearTimeout(u),h(b.data.response);break;default:clearTimeout(v),clearTimeout(u),m(new Error("invalid_response"));break}}},this.handlers.add(d),o.port1.addEventListener("message",d.onMessage),this.target.postMessage({eventType:t,eventId:g,data:a},[o.port2])}).finally(()=>{d&&this.removeMessageHandler(d)})}}/** 1507 * @license 1508 * Copyright 2020 Google LLC 1509 * 1510 * Licensed under the Apache License, Version 2.0 (the "License");
1511 * you may not use this file except in compliance with the License. 1512 * You may obtain a copy of the License at 1513 * 1514 * http://www.apache.org/licenses/LICENSE-2.0 1515 * 1516 * Unless required by applicable law or agreed to in writing, software 1517 * distributed under the License is distributed on an "AS IS" BASIS, 1518 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1519 * See the License for the specific language governing permissions and 1520 * limitations under the License. 1521 */function Xn(){return window}function QP(e){Xn().location.href=e}/** 1522 * @license 1523 * Copyright 2020 Google LLC. 1524 * 1525 * Licensed under the Apache License, Version 2.0 (the "License"); 1526 * you may not use this file except in compliance with the License. 1527 * You may obtain a copy of the License at 1528 * 1529 * http://www.apache.org/licenses/LICENSE-2.0 1530 * 1531 * Unless required by applicable law or agreed to in writing, software 1532 * distributed under the License is distributed on an "AS IS" BASIS, 1533 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1534 * See the License for the specific language governing permissions and 1535 * limitations under the License. 1536 */function ej(){return typeof Xn().WorkerGlobalScope<"u"&&typeof Xn().importScripts=="function"}async function JP(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function eL(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)===null||e===void 0?void 0:e.controller)||null}function tL(){return ej()?self:null}/** 1537 * @license 1538 * Copyright 2019 Google LLC 1539 * 1540 * Licensed under the Apache License, Version 2.0 (the "License"); 1541 * you may not use this file except in compliance with the License. 1542 * You may obtain a copy of the License at 1543 * 1544 * http://www.apache.org/licenses/LICENSE-2.0 1545 * 1546 * Unless required by applicable law or agreed to in writing, software 1547 * distributed under the License is distributed on an "AS IS" BASIS, 1548 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1549 * See the License for the specific language governing permissions and 1550 * limitations under the License. 1551 */const tj="firebaseLocalStorageDb",nL=1,hu="firebaseLocalStorage",nj="fbase_key";class cl{constructor(t){this.request=t}toPromise(){return new Promise((t,a)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{a(this.request.error)})})}}function Lu(e,t){return e.transaction([hu],t?"readwrite":"readonly").objectStore(hu)}function aL(){const e=indexedDB.deleteDatabase(tj);return new cl(e).toPromise()}function Om(){const e=indexedDB.open(tj,nL);return new Promise((t,a)=>{e.addEventListener("error",()=>{a(e.error)}),e.addEventListener("upgradeneeded",()=>{const s=e.result;try{s.createObjectStore(hu,{keyPath:nj})}catch(o){a(o)}}),e.addEventListener("success",async()=>{const s=e.result;s.objectStoreNames.contains(hu)?t(s):(s.close(),await aL(),t(await Om()))})})}async function z1(e,t,a){const s=Lu(e,!0).put({[nj]:t,value:a});return new cl(s).toPromise()}async function iL(e,t){const a=Lu(e,!1).get(t),s=await new cl(a).toPromise();return s===void 0?null:s.value}function V1(e,t){const a=Lu(e,!0).delete(t);return new cl(a).toPromise()}const sL=800,rL=3;class aj{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Om(),this.db)}async _withRetries(t){let a=0;for(;;)try{const s=await this._openDb();return await t(s)}catch(s){if(a++>rL)throw s;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return ej()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Pu._getInstance(tL()),this.receiver._subscribe("keyChanged",async(t,a)=>({keyProcessed:(await this._poll()).includes(a.key)})),this.receiver._subscribe("ping",async(t,a)=>["keyChanged"])}async initializeSender(){var t,a;if(this.activeServiceWorker=await JP(),!this.activeServiceWorker)return;this.sender=new ZP(this.activeServiceWorker);const s=await this.sender._send("ping",{},800);s&&!((t=s[0])===null||t===void 0)&&t.fulfilled&&!((a=s[0])===null||a===void 0)&&a.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||eL()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await Om();return await z1(t,fu,"1"),await V1(t,fu),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,a){return this._withPendingWrite(async()=>(await this._withRetries(s=>z1(s,t,a)),this.localCache[t]=a,this.notifyServiceWorker(t)))}async _get(t){const a=await this._withRetries(s=>iL(s,t));return this.localCache[t]=a,a}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(a=>V1(a,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(o=>{const u=Lu(o,!1).getAll();
1551return new cl(u).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const a=[],s=new Set;if(t.length!==0)for(const{fbase_key:o,value:u}of t)s.add(o),JSON.stringify(this.localCache[o])!==JSON.stringify(u)&&(this.notifyListeners(o,u),a.push(o));for(const o of Object.keys(this.localCache))this.localCache[o]&&!s.has(o)&&(this.notifyListeners(o,null),a.push(o));return a}notifyListeners(t,a){this.localCache[t]=a;const s=this.listeners[t];if(s)for(const o of Array.from(s))o(a)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),sL)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,a){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(a)}_removeListener(t,a){this.listeners[t]&&(this.listeners[t].delete(a),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}aj.type="LOCAL";const oL=aj;new ol(3e4,6e4);/** 1552 * @license 1553 * Copyright 2021 Google LLC 1554 * 1555 * Licensed under the Apache License, Version 2.0 (the "License"); 1556 * you may not use this file except in compliance with the License. 1557 * You may obtain a copy of the License at 1558 * 1559 * http://www.apache.org/licenses/LICENSE-2.0 1560 * 1561 * Unless required by applicable law or agreed to in writing, software 1562 * distributed under the License is distributed on an "AS IS" BASIS, 1563 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1564 * See the License for the specific language governing permissions and 1565 * limitations under the License. 1566 */function lL(e,t){return t?wa(t):(ge(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/** 1567 * @license 1568 * Copyright 2019 Google LLC 1569 * 1570 * Licensed under the Apache License, Version 2.0 (the "License"); 1571 * you may not use this file except in compliance with the License. 1572 * You may obtain a copy of the License at 1573 * 1574 * http://www.apache.org/licenses/LICENSE-2.0 1575 * 1576 * Unless required by applicable law or agreed to in writing, software 1577 * distributed under the License is distributed on an "AS IS" BASIS, 1578 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1579 * See the License for the specific language governing permissions and 1580 * limitations under the License. 1581 */class xg extends KE{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return er(t,this._buildIdpRequest())}_linkToIdToken(t,a){return er(t,this._buildIdpRequest(a))}_getReauthenticationResolver(t){return er(t,this._buildIdpRequest())}_buildIdpRequest(t){const a={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(a.idToken=t),a}}function cL(e){return zP(e.auth,new xg(e),e.bypassAuthState)}function uL(e){const{auth:t,user:a}=e;return ge(a,t,"internal-error"),BP(a,new xg(e),e.bypassAuthState)}async function dL(e){const{auth:t,user:a}=e;return ge(a,t,"internal-error"),UP(a,new xg(e),e.bypassAuthState)}/** 1582 * @license 1583 * Copyright 2020 Google LLC 1584 * 1585 * Licensed under the Apache License, Version 2.0 (the "License"); 1586 * you may not use this file except in compliance with the License. 1587 * You may obtain a copy of the License at 1588 * 1589 * http://www.apache.org/licenses/LICENSE-2.0 1590 * 1591 * Unless required by applicable law or agreed to in writing, software 1592 * distributed under the License is distributed on an "AS IS" BASIS, 1593 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1594 * See the License for the specific language governing permissions and 1595 * limitations under the License. 1596 */class ij{constructor(t,a,s,o,u=!1){this.auth=t,this.resolver=s,this.user=o,this.bypassAuthState=u,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(a)?a:[a]}execute(){return new Promise(async(t,a)=>{this.pendingPromise={resolve:t,reject:a};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(s){this.reject(s)}})}async onAuthEvent(t){const{urlResponse:a,sessionId:s,postBody:o,tenantId:u,error:d,type:h}=t;if(d){this.reject(d);return}const m={auth:this.auth,requestUri:a,sessionId:s,tenantId:u||void 0,postBody:o||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(h)(m))}catch(g){this.reject(g)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return cL;case"linkViaPopup":case"linkViaRedirect":return dL;case"reauthViaPopup":case"reauthViaRedirect":return uL;default:ja(this.auth,"internal-error")}}resolve(t){Na(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){Na(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 1597 * @license 1598 * Copyright 2020 Google LLC 1599 * 1600 * Licensed under the Apache License, Version 2.0 (the "License");
1601 * you may not use this file except in compliance with the License. 1602 * You may obtain a copy of the License at 1603 * 1604 * http://www.apache.org/licenses/LICENSE-2.0 1605 * 1606 * Unless required by applicable law or agreed to in writing, software 1607 * distributed under the License is distributed on an "AS IS" BASIS, 1608 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1609 * See the License for the specific language governing permissions and 1610 * limitations under the License. 1611 */const fL=new ol(2e3,1e4);class Ws extends ij{constructor(t,a,s,o,u){super(t,a,o,u),this.provider=s,this.authWindow=null,this.pollId=null,Ws.currentPopupAction&&Ws.currentPopupAction.cancel(),Ws.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return ge(t,this.auth,"internal-error"),t}async onExecution(){Na(this.filter.length===1,"Popup operations only handle one event");const t=yg();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(a=>{this.reject(a)}),this.resolver._isIframeWebStorageSupported(this.auth,a=>{a||this.reject(Wn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var t;return((t=this.authWindow)===null||t===void 0?void 0:t.associatedEvent)||null}cancel(){this.reject(Wn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Ws.currentPopupAction=null}pollUserCancellation(){const t=()=>{var a,s;if(!((s=(a=this.authWindow)===null||a===void 0?void 0:a.window)===null||s===void 0)&&s.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Wn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,fL.get())};t()}}Ws.currentPopupAction=null;/** 1612 * @license 1613 * Copyright 2020 Google LLC 1614 * 1615 * Licensed under the Apache License, Version 2.0 (the "License"); 1616 * you may not use this file except in compliance with the License. 1617 * You may obtain a copy of the License at 1618 * 1619 * http://www.apache.org/licenses/LICENSE-2.0 1620 * 1621 * Unless required by applicable law or agreed to in writing, software 1622 * distributed under the License is distributed on an "AS IS" BASIS, 1623 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1624 * See the License for the specific language governing permissions and 1625 * limitations under the License. 1626 */const hL="pendingRedirect",Kc=new Map;class mL extends ij{constructor(t,a,s=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],a,void 0,s),this.eventId=null}async execute(){let t=Kc.get(this.auth._key());if(!t){try{const s=await pL(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(s)}catch(a){t=()=>Promise.reject(a)}Kc.set(this.auth._key(),t)}return this.bypassAuthState||Kc.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const a=await this.auth._redirectUserForId(t.eventId);if(a)return this.user=a,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function pL(e,t){const a=yL(t),s=vL(e);if(!await s._isAvailable())return!1;const o=await s._get(a)==="true";return await s._remove(a),o}function gL(e,t){Kc.set(e._key(),t)}function vL(e){return wa(e._redirectPersistence)}function yL(e){return qc(hL,e.config.apiKey,e.name)}async function xL(e,t,a=!1){if(Fn(e.app))return Promise.reject(fi(e));const s=Ou(e),o=lL(s,t),d=await new mL(s,o,a).execute();return d&&!a&&(delete d.user._redirectEventId,await s._persistUserIfCurrent(d.user),await s._setRedirectUser(null,t)),d}/** 1627 * @license 1628 * Copyright 2020 Google LLC 1629 * 1630 * Licensed under the Apache License, Version 2.0 (the "License"); 1631 * you may not use this file except in compliance with the License. 1632 * You may obtain a copy of the License at 1633 * 1634 * http://www.apache.org/licenses/LICENSE-2.0 1635 * 1636 * Unless required by applicable law or agreed to in writing, softw
1636are 1637 * distributed under the License is distributed on an "AS IS" BASIS, 1638 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1639 * See the License for the specific language governing permissions and 1640 * limitations under the License. 1641 */const bL=600*1e3;class wL{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let a=!1;return this.consumers.forEach(s=>{this.isEventForConsumer(t,s)&&(a=!0,this.sendToConsumer(t,s),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!SL(t)||(this.hasHandledPotentialRedirect=!0,a||(this.queuedRedirectEvent=t,a=!0)),a}sendToConsumer(t,a){var s;if(t.error&&!sj(t)){const o=((s=t.error.code)===null||s===void 0?void 0:s.split("auth/")[1])||"internal-error";a.onError(Wn(this.auth,o))}else a.onAuthEvent(t)}isEventForConsumer(t,a){const s=a.eventId===null||!!t.eventId&&t.eventId===a.eventId;return a.filter.includes(t.type)&&s}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=bL&&this.cachedEventUids.clear(),this.cachedEventUids.has(H1(t))}saveEventToCache(t){this.cachedEventUids.add(H1(t)),this.lastProcessedEventTime=Date.now()}}function H1(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function sj({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function SL(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return sj(e);default:return!1}}/** 1642 * @license 1643 * Copyright 2020 Google LLC 1644 * 1645 * Licensed under the Apache License, Version 2.0 (the "License"); 1646 * you may not use this file except in compliance with the License. 1647 * You may obtain a copy of the License at 1648 * 1649 * http://www.apache.org/licenses/LICENSE-2.0 1650 * 1651 * Unless required by applicable law or agreed to in writing, software 1652 * distributed under the License is distributed on an "AS IS" BASIS, 1653 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1654 * See the License for the specific language governing permissions and 1655 * limitations under the License. 1656 */async function TL(e,t={}){return xr(e,"GET","/v1/projects",t)}/** 1657 * @license 1658 * Copyright 2020 Google LLC 1659 * 1660 * Licensed under the Apache License, Version 2.0 (the "License"); 1661 * you may not use this file except in compliance with the License. 1662 * You may obtain a copy of the License at 1663 * 1664 * http://www.apache.org/licenses/LICENSE-2.0 1665 * 1666 * Unless required by applicable law or agreed to in writing, software 1667 * distributed under the License is distributed on an "AS IS" BASIS, 1668 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1669 * See the License for the specific language governing permissions and 1670 * limitations under the License. 1671 */const EL=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,jL=/^https?/;async function NL(e){if(e.config.emulator)return;const{authorizedDomains:t}=await TL(e);for(const a of t)try{if(AL(a))return}catch{}ja(e,"unauthorized-domain")}function AL(e){const t=Mm(),{protocol:a,hostname:s}=new URL(t);if(e.startsWith("chrome-extension://")){const d=new URL(e);return d.hostname===""&&s===""?a==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):a==="chrome-extension:"&&d.hostname===s}if(!jL.test(a))return!1;if(EL.test(e))return s===e;const o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(s)}/** 1672 * @license 1673 * Copyright 2020 Google LLC. 1674 * 1675 * Licensed under the Apache License, Version 2.0 (the "License"); 1676 * you may not use this file except in compliance with the License. 1677 * You may obtain a copy of the License at 1678 * 1679 * http://www.apache.org/licenses/LICENSE-2.0 1680 * 1681 * Unless required by applicable law or agreed to in writing, softw
1681are 1682 * distributed under the License is distributed on an "AS IS" BASIS, 1683 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1684 * See the License for the specific language governing permissions and 1685 * limitations under the License. 1686 */const CL=new ol(3e4,6e4);function F1(){const e=Xn().___jsl;if(e!=null&&e.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let a=0;a<e.CP.length;a++)e.CP[a]=null}}function _L(e){return new Promise((t,a)=>{var s,o,u;function d(){F1(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{F1(),a(Wn(e,"network-request-failed"))},timeout:CL.get()})}if(!((o=(s=Xn().gapi)===null||s===void 0?void 0:s.iframes)===null||o===void 0)&&o.Iframe)t(gapi.iframes.getContext());else if(!((u=Xn().gapi)===null||u===void 0)&&u.load)d();else{const h=kP("iframefcb");return Xn()[h]=()=>{gapi.load?d():a(Wn(e,"network-request-failed"))},_P(`${RP()}?onload=${h}`).catch(m=>a(m))}}).catch(t=>{throw Yc=null,t})}let Yc=null;function RL(e){return Yc=Yc||_L(e),Yc}/** 1687 * @license 1688 * Copyright 2020 Google LLC. 1689 * 1690 * Licensed under the Apache License, Version 2.0 (the "License"); 1691 * you may not use this file except in compliance with the License. 1692 * You may obtain a copy of the License at 1693 * 1694 * http://www.apache.org/licenses/LICENSE-2.0 1695 * 1696 * Unless required by applicable law or agreed to in writing, software 1697 * distributed under the License is distributed on an "AS IS" BASIS, 1698 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1699 * See the License for the specific language governing permissions and 1700 * limitations under the License. 1701 */const kL=new ol(5e3,15e3),ML="__/auth/iframe",DL="emulator/auth/iframe",OL={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},PL=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function LL(e){const t=e.config;ge(t.authDomain,e,"auth-domain-config-required");const a=t.emulator?mg(t,DL):`https://${e.config.authDomain}/${ML}`,s={apiKey:t.apiKey,appName:e.name,v:rl},o=PL.get(e.config.apiHost);o&&(s.eid=o);const u=e._getFrameworks();return u.length&&(s.fw=u.join(",")),`${a}?${sl(s).slice(1)}`}async function IL(e){const t=await RL(e),a=Xn().gapi;return ge(a,e,"internal-error"),t.open({where:document.body,url:LL(e),messageHandlersFilter:a.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:OL,dontclear:!0},s=>new Promise(async(o,u)=>{await s.restyle({setHideOnLeave:!1});const d=Wn(e,"network-request-failed"),h=Xn().setTimeout(()=>{u(d)},kL.get());function m(){Xn().clearTimeout(h),o(s)}s.ping(m).then(m,()=>{u(d)})}))}/** 1702 * @license 1703 * Copyright 2020 Google LLC. 1704 * 1705 * Licensed under the Apache License, Version 2.0 (the "License"); 1706 * you may not use this file except in compliance with the License. 1707 * You may obtain a copy of the License at 1708 * 1709 * http://www.apache.org/licenses/LICENSE-2.0 1710 * 1711 * Unless required by applicable law or agreed to in writing, software 1712 * distributed under the License is distributed on an "AS IS" BASIS, 1713 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1714 * See the License for the specific language governing permissions and 1715 * limitations under the License. 1716 */const UL={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},BL=500,zL=600,VL="_blank",HL="http://localhost";class $1{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function FL(e,t,a,s=BL,o=zL){const u=Math.max((window.screen.availHeight-o)/2,0).toString(),d=Math.max((window.screen.availWidth-s)/2,0).toString();let h="";const m=Object.assign(Object.assign({},UL),{width:s.toString(),height:o.toString(),top:u,left:d}),g=Pt().toLowerCase();a&&(h=BE(g)?VL:a),IE(g)&&(t=t||HL,m.scrollbars="yes");const v=Object.entries(m).reduce((b,[S,j])=>`${b}${S}=${j},`,"");if(wP(g)&&h!=="_self")return $L(t||"",h),new $1(null);const y=window.open(t||"",h,v);ge(y,e,"popup-blocked");try{y.focus()}catch{}return new $1(y)}function $L(e,t){const a=document.createElement("a");a.href=e,a.target=t;const s=document.createEvent("MouseEvent");
1716s.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),a.dispatchEvent(s)}/** 1717 * @license 1718 * Copyright 2021 Google LLC 1719 * 1720 * Licensed under the Apache License, Version 2.0 (the "License"); 1721 * you may not use this file except in compliance with the License. 1722 * You may obtain a copy of the License at 1723 * 1724 * http://www.apache.org/licenses/LICENSE-2.0 1725 * 1726 * Unless required by applicable law or agreed to in writing, software 1727 * distributed under the License is distributed on an "AS IS" BASIS, 1728 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1729 * See the License for the specific language governing permissions and 1730 * limitations under the License. 1731 */const GL="__/auth/handler",qL="emulator/auth/handler",KL=encodeURIComponent("fac");async function G1(e,t,a,s,o,u){ge(e.config.authDomain,e,"auth-domain-config-required"),ge(e.config.apiKey,e,"invalid-api-key");const d={apiKey:e.config.apiKey,appName:e.name,authType:a,redirectUrl:s,v:rl,eventId:o};if(t instanceof YE){t.setDefaultLanguage(e.languageCode),d.providerId=t.providerId||"",G8(t.getCustomParameters())||(d.customParameters=JSON.stringify(t.getCustomParameters()));for(const[v,y]of Object.entries({}))d[v]=y}if(t instanceof ll){const v=t.getScopes().filter(y=>y!=="");v.length>0&&(d.scopes=v.join(","))}e.tenantId&&(d.tid=e.tenantId);const h=d;for(const v of Object.keys(h))h[v]===void 0&&delete h[v];const m=await e._getAppCheckToken(),g=m?`#${KL}=${encodeURIComponent(m)}`:"";return`${YL(e)}?${sl(h).slice(1)}${g}`}function YL({config:e}){return e.emulator?mg(e,qL):`https://${e.authDomain}/${GL}`}/** 1732 * @license 1733 * Copyright 2020 Google LLC 1734 * 1735 * Licensed under the Apache License, Version 2.0 (the "License"); 1736 * you may not use this file except in compliance with the License. 1737 * You may obtain a copy of the License at 1738 * 1739 * http://www.apache.org/licenses/LICENSE-2.0 1740 * 1741 * Unless required by applicable law or agreed to in writing, software 1742 * distributed under the License is distributed on an "AS IS" BASIS, 1743 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1744 * See the License for the specific language governing permissions and 1745 * limitations under the License. 1746 */const Oh="webStorageSupport";class WL{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=JE,this._completeRedirectFn=xL,this._overrideRedirectResult=gL}async _openPopup(t,a,s,o){var u;Na((u=this.eventManagers[t._key()])===null||u===void 0?void 0:u.manager,"_initialize() not called before _openPopup()");const d=await G1(t,a,s,Mm(),o);return FL(t,d,yg())}async _openRedirect(t,a,s,o){await this._originValidation(t);const u=await G1(t,a,s,Mm(),o);return QP(u),new Promise(()=>{})}_initialize(t){const a=t._key();if(this.eventManagers[a]){const{manager:o,promise:u}=this.eventManagers[a];return o?Promise.resolve(o):(Na(u,"If manager is not set, promise should be"),u)}const s=this.initAndGetManager(t);return this.eventManagers[a]={promise:s},s.catch(()=>{delete this.eventManagers[a]}),s}async initAndGetManager(t){const a=await IL(t),s=new wL(t);return a.register("authEvent",o=>
1746(ge(o==null?void 0:o.authEvent,t,"invalid-auth-event"),{status:s.onEvent(o.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:s},this.iframes[t._key()]=a,s}_isIframeWebStorageSupported(t,a){this.iframes[t._key()].send(Oh,{type:Oh},o=>{var u;const d=(u=o==null?void 0:o[0])===null||u===void 0?void 0:u[Oh];d!==void 0&&a(!!d),ja(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const a=t._key();return this.originValidationPromises[a]||(this.originValidationPromises[a]=NL(t)),this.originValidationPromises[a]}get _shouldInitProactively(){return $E()||UE()||gg()}}const XL=WL;var q1="@firebase/auth",K1="1.10.7";/** 1747 * @license 1748 * Copyright 2020 Google LLC 1749 * 1750 * Licensed under the Apache License, Version 2.0 (the "License"); 1751 * you may not use this file except in compliance with the License. 1752 * You may obtain a copy of the License at 1753 * 1754 * http://www.apache.org/licenses/LICENSE-2.0 1755 * 1756 * Unless required by applicable law or agreed to in writing, software 1757 * distributed under the License is distributed on an "AS IS" BASIS, 1758 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1759 * See the License for the specific language governing permissions and 1760 * limitations under the License. 1761 */class ZL{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),((t=this.auth.currentUser)===null||t===void 0?void 0:t.uid)||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const a=this.auth.onIdTokenChanged(s=>{t((s==null?void 0:s.stsTokenManager.accessToken)||null)});this.internalListeners.set(t,a),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const a=this.internalListeners.get(t);a&&(this.internalListeners.delete(t),a(),this.updateProactiveRefresh())}assertAuthConfigured(){ge(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 1762 * @license 1763 * Copyright 2020 Google LLC 1764 * 1765 * Licensed under the Apache License, Version 2.0 (the "License"); 1766 * you may not use this file except in compliance with the License. 1767 * You may obtain a copy of the License at 1768 * 1769 * http://www.apache.org/licenses/LICENSE-2.0 1770 * 1771 * Unless required by applicable law or agreed to in writing, software 1772 * distributed under the License is distributed on an "AS IS" BASIS, 1773 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1774 * See the License for the specific language governing permissions and 1775 * limitations under the License. 1776 */function QL(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function JL(e){qo(new rr("auth",(t,{options:a})=>{const s=t.getProvider("app").getImmediate(),o=t.getProvider("heartbeat"),u=t.getProvider("app-check-internal"),{apiKey:d,authDomain:h}=s.options;ge(d&&!d.includes(":"),"invalid-api-key",{appName:s.name});const m={apiKey:d,authDomain:h,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:GE(e)},g=new AP(s,o,u,m);return DP(g,a),g},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,a,s)=>{t.getProvider("auth-internal").initialize()})),qo(new rr("auth-internal",t=>{const a=Ou(t.getProvider("auth").getImmediate());return(s=>new ZL(s))(a)},"PRIVATE").setInstantiationMode("EXPLICIT")),Zs(q1,K1,QL(e)),Zs(q1,K1,"esm2017")}/** 1777 * @license 1778 * Copyright 2021 Google LLC 1779 * 1780 * Licensed under the Apache License, Version 2.0 (the "License"); 1781 * you may not use this file except in compliance with the License. 1782 * You may obtain a copy of the License at 1783 * 1784 * http://www.apache.org/licenses/LICENSE-2.0 1785 * 1786 * Unless required by applicable law or agreed to in writing, softw
1786are 1787 * distributed under the License is distributed on an "AS IS" BASIS, 1788 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1789 * See the License for the specific language governing permissions and 1790 * limitations under the License. 1791 */const e9=300,t9=bE("authIdTokenMaxAge")||e9;let Y1=null;const n9=e=>async t=>{const a=t&&await t.getIdTokenResult(),s=a&&(new Date().getTime()-Date.parse(a.issuedAtTime))/1e3;if(s&&s>t9)return;const o=a==null?void 0:a.token;Y1!==o&&(Y1=o,await fetch(e,{method:o?"POST":"DELETE",headers:o?{Authorization:`Bearer ${o}`}:{}}))};function a9(e=K7()){const t=EE(e,"auth");if(t.isInitialized())return t.getImmediate();const a=MP(e,{popupRedirectResolver:XL,persistence:[oL,WP,JE]}),s=bE("authTokenSyncURL");if(s&&typeof isSecureContext=="boolean"&&isSecureContext){const u=new URL(s,location.origin);if(location.origin===u.origin){const d=n9(u.toString());$P(a,d,()=>d(a.currentUser)),FP(a,h=>d(h))}}const o=_8("auth");return o&&OP(a,`http://${o}`),a}function i9(){var e,t;return(t=(e=document.getElementsByTagName("head"))===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:document}CP({loadJS(e){return new Promise((t,a)=>{const s=document.createElement("script");s.setAttribute("src",e),s.onload=t,s.onerror=o=>{const u=Wn("internal-error");u.customData=o,a(u)},s.type="text/javascript",s.charset="UTF-8",i9().appendChild(s)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});JL("Browser");var s9="firebase",r9="11.9.1";/** 1792 * @license 1793 * Copyright 2020 Google LLC 1794 * 1795 * Licensed under the Apache License, Version 2.0 (the "License"); 1796 * you may not use this file except in compliance with the License. 1797 * You may obtain a copy of the License at 1798 * 1799 * http://www.apache.org/licenses/LICENSE-2.0 1800 * 1801 * Unless required by applicable law or agreed to in writing, software 1802 * distributed under the License is distributed on an "AS IS" BASIS, 1803 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1804 * See the License for the specific language governing permissions and 1805 * limitations under the License. 1806 */Zs(s9,r9,"app");const Pm={apiKey:void 0,authDomain:void 0,projectId:void 0,storageBucket:void 0,messagingSenderId:void 0,appId:void 0};let Ph=null,Lh=null;function o9(){return!!(Pm.apiKey&&Pm.projectId)}function Wc(){return o9()?(Ph||(Ph=C1().length?C1()[0]:jE(Pm)),Lh||(Lh=a9(Ph)),Lh):null}const rj=x.createContext(void 0),l9=({children:e})=>{const[t,a]=x.useState(null),[s,o]=x.useState(!0);x.useEffect(()=>{const h=Wc();if(!h){o(!1);return}return GP(h,g=>{a(g),o(!1)})},[]);const u=async()=>{const h=Wc();return h!=null&&h.currentUser?h.currentUser.getIdToken():null},d=async()=>{const h=Wc();h&&await qP(h)};return c.jsx(rj.Provider,{value:{user:t,loading:s,getIdToken:u,signOut:d},children:e})},c9=()=>{const e=x.useContext(rj);if(!e)throw new Error("useAuth must be used within AuthProvider");return e},Eo=(e,t)=>t,$n={getCurrent:()=>"production",isProduction:()=>$n.getCurrent()==="production",isStaging:()=>$n.getCurrent()==="staging",isDevelopment:()=>$n.getCurrent()==="development",getConfig:()=>{const e=$n.getCurrent(),t="https://kasanabroadcast-g0hecbe3fzhjfcgq.canadacentral-01.azurewebsites.net/api",a="https://kasana.ai",s=void 0,o=void 0,u=void 0;switch(console.log("ð Environment.getConfig():"),console.log("- Detected environment:",e),console.log("- VITE_SIGNALR_HUB_URL:",t),console.log("- VITE_API_BASE_URL:",a),console.log("- VITE_DEFAULT_ROUTE:",s),console.log("- VITE_REQUIRE_SESSION_LOGON:",o),console.log("- VITE_AUTO_CONNECT_SESSION_VIEWER:",u),e){case"production":{const d={apiBaseUrl:a||"https://kasana.ai",signalRHubUrl:t||"https://kasanabroadcast-g0hecbe3fzhjfcgq.canadacentral-01.azurewebsites.net/api",enableDebugLogs:!1,enableAnalytics:!0,timeout:15e3,defaultRoute:s||"/",requireSessionLogon:Eo(o,!0),enableDevAutofill:!1};return console.log("ð¦ Using PRODUCTION config:",d),d}case"staging":{const d={apiBaseUrl:a||"http://localhost:3000",signalRHubUrl:t||"http://localhost:7071/api",enableDebugLogs:!0,enableAnalytics:!1,timeout:15e3,defaultRoute:s||"/",requireSessionLogon:Eo(o,!1),enableDevAutofill:Eo(u,!0)};return console.log("ð Using STAGING config:",d),d}case"development":default:{const d={apiBaseUrl:a||"http://localhost:3000",signalRHubUrl:t||"http://localhost:7071/api",enableDebugLogs:!0,enableAnalytics:!1,timeout:1e4,defaultRoute:s||"/",requireSessionLogon:Eo(o,!1),enableDevAutofill:Eo(u,!0)};return console.log("ð ï¸ Using DEVELOPMENT config:",d),d}}}};function u9(){const e=Jn(),{user:t,loading:a,getIdToken:s}=c9(),[o,u]=x.useState(!1);return{startDownload:async()=>
1806{if($n.isProduction()){e("/signup");return}if(!(a||o)){if(!t){e("/beta-login",{state:{from:"/"}});return}u(!0);try{const h=await s();if(!h){e("/beta-login",{state:{from:"/"}});return}const m=await fetch(ku("/api/beta/download-url"),{headers:{Authorization:`Bearer ${h}`}}),g=await m.json();if(!m.ok||!g.success){if(m.status===401){e("/beta-login",{state:{from:"/"}});return}if(g.error==="not_allowlisted"){Jt.error("You're not on the beta list yet.");return}Jt.error("Couldn't start the download. Please try again shortly.");return}window.location.href=g.url}catch{Jt.error("Couldn't start the download. Please try again shortly.")}finally{u(!1)}}},downloading:o}}const W1=[{code:"ES",text:"ââ¦el testimonio del testigo establece una cronologÃa clara de los eventos.â",term:{source:"testimonio",target:"testimony"}},{code:"JA",text:"ãâ¦è¨¼äººã®è¨¼è¨ã¯ãåºæ¥äºã®æç¢ºãªæç³»åã確ç«ãã¦ãã¾ããã",term:{source:"証è¨",target:"testimony"}},{code:"IS",text:"ââ¦vitnisburður vitnisins staðfestir skýra tÃmalÃnu atburða.â",term:{source:"vitnisburður",target:"testimony"}}],d9=3400,Ih={duration:.35,ease:[.16,1,.3,1]};function f9(){const[e,t]=x.useState(!1);return x.useEffect(()=>{const a=window.matchMedia("(prefers-reduced-motion: reduce)");t(a.matches);const s=()=>t(a.matches);return a.addEventListener("change",s),()=>a.removeEventListener("change",s)},[]),e}function h9(){const[e,t]=x.useState(0),a=f9(),s=W1[e];return x.useEffect(()=>{if(a)return;const o=window.setInterval(()=>{t(u=>(u+1)%W1.length)},d9);return()=>window.clearInterval(o)},[a]),c.jsx("div",{className:"relative w-full max-w-md mx-auto lg:max-w-none",children:c.jsxs("div",{className:"rounded-2xl border border-white/10 bg-[#0A0E1A] shadow-[0_24px_70px_-20px_rgba(10,14,26,0.55)] overflow-hidden",children:[c.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/[0.03]",children:[c.jsx("span",{className:"h-3 w-3 rounded-full bg-[#FF5F57]"}),c.jsx("span",{className:"h-3 w-3 rounded-full bg-[#FEBC2E]"}),c.jsx("span",{className:"h-3 w-3 rounded-full bg-[#28C840]"}),c.jsxs("div",{className:"flex items-center gap-1.5 mx-auto",children:[c.jsx(Ke.sealMark,{className:"h-4 w-4","aria-hidden":"true"}),c.jsx("span",{className:"text-xs font-medium text-white/70 font-primary",children:"Kasana"})]})]}),c.jsxs("div",{className:"p-6 sm:p-7 flex flex-col gap-5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-[#5E4AE3]/15 px-2.5 py-1 text-xs font-semibold text-[#B4A8F5] font-secondary",children:[c.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[#8B7AF0] animate-pulse","aria-hidden":"true"}),"Live"]}),c.jsx("span",{className:"text-xs font-medium text-white/40 font-secondary tracking-wide overflow-hidden",children:c.jsx(bh,{mode:"wait",initial:!1,children:c.jsxs(en.span,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:Ih,className:"inline-block",children:["EN â ",s.code]},s.code)})})]}),c.jsxs("div",{className:"flex flex-col gap-3",children:[c.jsxs("div",{className:"flex items-start gap-2.5",children:[c.jsx("span",{className:"mt-1 text-[10px] font-bold text-white/35 font-secondary tracking-wide shrink-0",children:"EN"}),c.jsx("p",{className:"text-[15px] leading-relaxed text-white/90 font-secondary",children:"ââ¦the witnessâs testimony establishes a clear timeline of events.â"})]}),c.jsx("div",{className:"flex items-start gap-2.5 min-h-[3.75rem] sm:min-h-[3.25rem] overflow-hidden",children:c.jsx(bh,{mode:"wait",initial:!1,children:c.jsxs(en.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:Ih,className:"flex items-start gap-2.5 w-full",children:[c.jsx("span",{className:"mt-1 text-[10px] font-bold text-[#8B7AF0] font-secondary tracking-wide shrink-0 w-5",children:s.code}),c.jsx("p",{className:"text-[15px] leading-relaxed text-[#B4A8F5] font-secondary",children:s.text})]},s.code)})})]}),c.jsx("div",{className:"relative h-10 overflow-hidden rounded-lg bg-white/[0.04] border border-white/10",children:c.jsx(bh,{mode:"wait",initial:!1,children:c.jsxs(en.div,{initial:{opacity:0,y:10}
1806,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:Ih,className:"absolute inset-0 flex items-center gap-2 px-3",children:[c.jsx(Ke.check,{className:"h-3.5 w-3.5 text-[#8B7AF0] shrink-0","aria-hidden":"true"}),c.jsxs("span",{className:"text-xs text-white/70 font-secondary truncate",children:[c.jsx("span",{className:"text-white/90 font-medium",children:s.term.source})," ","â ",s.term.target]})]},s.code)})})]})]})})}function m9(){const{startDownload:e,downloading:t}=u9();return c.jsx(en.section,{initial:{opacity:0,y:32},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.15,duration:.7,ease:"easeOut"},className:"relative px-4 sm:px-6 lg:px-8 pt-12 pb-16 md:pt-20 md:pb-24 min-h-[calc(100vh-4rem)] flex items-center","aria-labelledby":"hero-heading",children:c.jsxs("div",{className:"max-w-6xl mx-auto w-full grid grid-cols-1 lg:grid-cols-2 gap-12 lg:gap-20 items-center",children:[c.jsxs("div",{className:"flex flex-col gap-6 items-center text-center lg:items-start lg:text-left",children:[c.jsxs("div",{className:"flex flex-col items-center gap-3 lg:flex-row lg:items-center",children:[c.jsx(Ke.sealMark,{className:"h-11 w-11 sm:h-12 sm:w-12 lg:h-11 lg:w-11 shrink-0","aria-hidden":"true"}),c.jsxs("h1",{id:"hero-heading",className:"text-3xl sm:text-4xl md:text-5xl font-bold text-slate-900 font-primary leading-[1.1] tracking-tight",children:["Kasana ",c.jsx("span",{className:"text-[#5E4AE3]",children:"Speech Intelligence"})]})]}),c.jsx("p",{className:"text-lg sm:text-xl text-slate-700 font-secondary leading-relaxed max-w-xl",children:"Real-time transcription, translation, and terminology support for court, medical, and conference interpreters â a native macOS app with direct access to the world's leading speech and language models."}),c.jsx("div",{className:"flex flex-col sm:flex-row items-center gap-3 w-full sm:w-auto",children:c.jsxs(Ie,{size:"lg",className:"w-full sm:w-auto rounded-lg px-8 py-6 text-base font-semibold bg-[#1A8CFF] text-white shadow-sm hover:bg-[#1A8CFF]/90 focus-visible:ring-[#1A8CFF]/30 font-primary transition-colors duration-200",onClick:e,disabled:t,children:[c.jsx(Ke.apple,{className:"mr-2 h-5 w-5","aria-hidden":"true"}),t?"Preparing download...":"Download for macOS"]})})]}),c.jsx(h9,{})]})})}const p9=[{name:"Zoom",Icon:Ke.zoom},{name:"Webex",Icon:Ke.webex},{name:"Microsoft Teams",Icon:Ke.microsoftTeams},{name:"Google Meet",Icon:Ke.googleMeet},{name:"YouTube",Icon:Ke.youtube},{name:"Spotify",Icon:Ke.spotify},{name:"Bluetooth Microphone",Icon:Ke.bluetooth},{name:"Apple iPhone",Icon:Ke.apple}];function g9(){return c.jsx(en.section,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},transition:{delay:.2,duration:.8,ease:"easeInOut"},id:"audio-sources",className:"relative px-4 sm:px-6 lg:px-8 py-16 md:py-24 scroll-mt-24","aria-labelledby":"audio-sources-heading",children:c.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[c.jsx("h2",{id:"audio-sources-heading",className:"text-3xl md:text-4xl lg:text-5xl font-semibold text-slate-900 font-primary leading-tight",children:"Kasana streams from any audio source"}),c.jsx("ul",{className:"mt-10 md:mt-12 flex flex-row flex-wrap items-end justify-center gap-x-6 gap-y-8 sm:gap-x-10 md:gap-x-12 lg:gap-x-14 w-full px-2 overflow-x-auto max-w-full",children:p9.map(({name:e,Icon:t})=>c.jsxs("li",{className:"flex flex-col items-center gap-2 min-w-[72px]",children:[c.jsx(t,{className:"h-10 w-10 xs:h-12 xs:w-12 md:h-14 md:w-14 text-slate-400"}),c.jsx("span",{className:"text-xs font-medium text-slate-400 font-primary text-center",children:e})]},e))})]})})}const v9=[{value:"79",label:"languages"},{value:"148",label:"dialects"}],y9=["22 varieties of Spanish","18 varieties of Arabic","15 varieties of English","7 varieties of Chinese","4 varieties of French","2 varieties of Kiswahili"],X1=[{icon:l5,label:"Deepgram Nova-3",sublabel:"Ultra-low latency speech-to-text"},{icon:O4,label:"Claude by Anthropic",sublabel:"Context-aware translation"}],x9=[{icon:w5,title:"Prompt-based post-editing",description:"Steer terminology and honorifics in real time using prompts."},{icon:r5,title:"Realtime understanding",description:"Analyzes meaning across sentences, not just word-by-word."}];function b9(){return c.jsx(en.section,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},transition:{delay:.2,duration:.8,ease:"easeInOut"},id:"models",className:"relative px-4 sm:px-6 lg:px-8 py-16 md:py-24 scroll-mt-24","aria-labelledby":"models-heading",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-12 md:mb-16",children:[c.jsx("h2",{id:"models-heading",className:"text-3xl md:text-4xl lg:text-5xl font-semibold text-slate-900 font-primary",children:"Kasana comes with a toolbox of language models"}),c.jsx("p",{className:"mt-4 text-base md:text-lg text-slate-500 font-secondary max-w-2xl mx-auto",children:"AI models powering Kasanaâso far"})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 lg:gap-8 items-stretch",children:[c.jsxs(en.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:0,duration:.6,ease:"easeOut"},className:"group relative flex flex-col p-6 md:p-8 rounded-2xl border border-slate-200 bg-white shadow-sm transition-all duration-300 hover:shadow-lg hover:-translate-y-0.5",children:[c.jsxs("div",{className:"flex items-start justify-between gap-4 mb-5",children:[c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-11 h-11 shrink-0 rounded-xl bg-blue-50 flex items-center justify-center","aria-hidden":"true",children:c.jsx(K4,{className:"w-5 h-5 text-[#1A8CFF]"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-medium tracking-wide uppercase text-[#1A8CFF] mb-0.5 font-primary",children:"Microsoft Azure"}),c.jsx("h3",{className:"text-lg md:text-xl font-semibold text-slate-900 font-primary",children:"Azure Speech Translation"})]})]}),c.jsxs("span",{className:"shrink-0 inline-flex items-center gap-1.5 text-xs font-semibold px-2.5 py-1 rounded-full bg-emerald-100 text-emerald-700 font-primary",children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500","aria-hidden":"true"}),"Active"]})]}),c.jsx("p",{className:"text-sm md:text-base text-slate-500 font-secondary leading-relaxed",children:"Broad, high-performing language coverage available today, ready the moment you open Kasana."}),c.jsx("div",{className:"grid grid-cols-2 gap-3 mt-6",children:v9.map(e=>c.jsxs("div",{className:"rounded-xl bg-blue-50/70 py-4 text-center",children:[c.jsx("p",{className:"text-3xl md:text-4xl font-semibold text-[#1A8CFF] font-primary leading-none",children:e.value}),c.jsx("p",{className:"mt-1.5 text-xs font-medium uppercase tracking-wide text-slate-500 font-primary",children:e.label})]},e.label))}),c.jsx("div",{className:"flex flex-wrap gap-2 mt-5",children:y9.map(e=>c.jsx("span",{className:"text-xs font-medium px-3 py-1.5 rounded-full bg-slate-100 text-slate-700 font-secondary",children:e},e))}),c.jsxs("a",{href:"https://learn.microsoft.com/azure/ai-services/speech-service/language-support",target:"_blank",rel:"noopener noreferrer",className:"mt-6 inline-flex items-center gap-1 text-sm font-semibold text-[#1A8CFF] font-primary hover:gap-2 transition-all",children:["See the full language list on Microsoft Learn",c.jsx(_4,{className:"w-4 h-4","aria-hidden":"true"})]})]}),c.jsxs(en.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:.1,duration:.6,ease:"easeOut"},className:"relative flex flex-col p-6 md:p-8 rounded-2xl border border-[#1A8CFF]/25 bg-gradient-to-br from-blue-50/60 via-white to-w
1806hite shadow-sm overflow-hidden",children:[c.jsx("div",{className:"pointer-events-none absolute -top-16 -right-16 w-48 h-48 rounded-full bg-[#1A8CFF]/10 blur-3xl","aria-hidden":"true"}),c.jsxs("div",{className:"relative flex items-start justify-between gap-4 mb-5",children:[c.jsxs("div",{className:"flex items-start gap-4",children:[c.jsx("div",{className:"w-11 h-11 shrink-0 rounded-xl bg-[#1A8CFF] flex items-center justify-center","aria-hidden":"true",children:c.jsx(Vx,{className:"w-5 h-5 text-white"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-medium tracking-wide uppercase text-[#1A8CFF] mb-0.5 font-primary",children:"Deepgram + LLM"}),c.jsx("h3",{className:"text-lg md:text-xl font-semibold text-slate-900 font-primary",children:"Deepgram + ChatGPT"})]})]}),c.jsxs("span",{className:"shrink-0 inline-flex items-center gap-1.5 text-xs font-semibold px-2.5 py-1 rounded-full bg-[#1A8CFF]/10 text-[#1A8CFF] font-primary",children:[c.jsx(Vx,{className:"w-3 h-3","aria-hidden":"true"}),"Coming Soon"]})]}),c.jsx("p",{className:"relative text-sm md:text-base text-slate-500 font-secondary leading-relaxed",children:"A custom mashup of speech-to-text and LLM to steer translation output and formatting in real-time."}),c.jsx("div",{className:"relative flex justify-center items-center gap-1.5 sm:gap-2 mt-6 overflow-x-auto pb-1",children:c.jsx("div",{className:"flex items-center gap-1.5 sm:gap-2 mx-auto",children:X1.map((e,t)=>c.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2 shrink-0",children:[c.jsxs("div",{className:"flex flex-col items-center gap-1.5 rounded-xl border border-dashed border-[#1A8CFF]/30 bg-white/80 px-3 py-3 min-w-[104px] text-center",children:[c.jsx(e.icon,{className:"w-4 h-4 text-[#1A8CFF]","aria-hidden":"true"}),c.jsx("span",{className:"text-xs font-semibold text-slate-900 font-primary leading-tight",children:e.label}),c.jsx("span",{className:"text-[10px] text-slate-500 font-secondary leading-tight",children:e.sublabel})]}),t<X1.length-1&&c.jsx(Qw,{className:"w-4 h-4 text-[#1A8CFF]/50 shrink-0","aria-hidden":"true"})]},e.label))})}),c.jsx("ul",{className:"relative mt-6 space-y-3 flex-1",children:x9.map(e=>c.jsxs("li",{className:"flex items-start gap-3",children:[c.jsx("div",{className:"w-8 h-8 shrink-0 rounded-lg bg-white border border-[#1A8CFF]/20 flex items-center justify-center","aria-hidden":"true",children:c.jsx(e.icon,{className:"w-4 h-4 text-[#1A8CFF]"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-semibold text-slate-900 font-primary",children:e.title}),c.jsx("p",{className:"text-sm text-slate-500 font-secondary leading-relaxed",children:e.description})]})]},e.title))})]})]})]})})}const oj=[{name:"Starter",monthlyPrice:20,yearlyPrice:199,features:["3 hours speech-to-text + translation","Automatic language detection","Email support","Powered by Azure Speech"],isRecommended:!1},{name:"Pro",monthlyPrice:50,yearlyPrice:498,features:["10 hours speech-to-text + translation","Automatic language detection","Email support","Powered by Azure Speech","Deepgram + LLM coming soon!","Speech-to-speech translation coming soon!"],isRecommended:!0}],w9=e=>Number.isInteger(e)?String(e):e.toFixed(2),S9=Math.min(...oj.map(e=>Math.round((1-e.yearlyPrice/(e.monthlyPrice*12))*100)));function T9(){const[e,t]=x.useState("monthly"),a=e==="yearly";return c.jsx(en.section,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},transition:{delay:.2,duration:.8,ease:"easeInOut"},id:"pricing",className:"relative px-4 sm:px-6 lg:px-8 py-16 md:py-24 scroll-mt-24","aria-labelledby":"pricing-heading",children:c.jsxs("div",{className:"max-w-6xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-10 md:mb-12",children:[c.jsx("h2",{id:"pricing-heading",className:"text-3xl md:text-4xl lg:text-5xl font-semibold text-slate-900 font-primary",children:"Choose Your Plan"}),c.jsx("p",{className:"mt-4 text-base md:text-lg text-slate-500 font-secondary max-w-2xl mx-auto",children:"Select the plan that best fits your speech translation needs"})]}),c.jsxs("div",{role:"group","aria-label":"Billing cycle",className:"flex items-center justify-center gap-1 mb-10 mx-auto w-fit roun
1806ded-full border border-slate-200 bg-white p-1",children:[c.jsx("button",{type:"button","aria-pressed":!a,onClick:()=>t("monthly"),className:`rounded-full px-5 py-2 text-sm font-medium font-primary transition-colors ${a?"text-slate-600 hover:text-slate-900":"bg-[#1A8CFF] text-white"}`,children:"Monthly"}),c.jsxs("button",{type:"button","aria-pressed":a,onClick:()=>t("yearly"),className:`flex items-center gap-2 rounded-full px-5 py-2 text-sm font-medium font-primary transition-colors ${a?"bg-[#1A8CFF] text-white":"text-slate-600 hover:text-slate-900"}`,children:["Yearly",c.jsxs("span",{className:`text-xs font-semibold px-2 py-0.5 rounded-full ${a?"bg-white/20 text-white":"bg-emerald-100 text-emerald-700"}`,children:["Save ",S9,"%"]})]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8 max-w-4xl mx-auto",children:oj.map((s,o)=>c.jsxs(en.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:.1*o,duration:.6,ease:"easeOut"},className:`relative overflow-hidden p-6 md:p-8 rounded-2xl bg-white shadow-sm ${s.isRecommended?"border-2 border-[#1A8CFF]":"border border-slate-200"}`,children:[s.isRecommended&&c.jsx("span",{className:"absolute top-0 right-0 bg-[#1A8CFF] text-white px-3 py-1 rounded-bl-lg text-xs font-semibold font-primary",children:"RECOMMENDED"}),c.jsx("h3",{className:"text-lg md:text-xl font-semibold text-slate-900 font-primary mb-2",children:s.name}),c.jsxs("div",{className:"flex items-baseline mb-6",children:[c.jsxs("span",{className:`text-4xl font-semibold font-primary ${s.isRecommended?"text-[#1A8CFF]":"text-slate-900"}`,children:["$",w9(a?s.yearlyPrice:s.monthlyPrice)]}),c.jsx("span",{className:"text-slate-500 ml-2 text-sm font-secondary",children:a?"/year":"/month"})]}),c.jsx("ul",{className:"space-y-3",children:s.features.map(u=>c.jsxs("li",{className:"flex items-start gap-2",children:[c.jsx(I4,{className:`w-5 h-5 shrink-0 mt-0.5 ${s.isRecommended?"text-[#1A8CFF]":"text-slate-400"}`,"aria-hidden":"true"}),c.jsx("span",{className:"text-sm md:text-base text-slate-700 font-secondary",children:u})]},u))})]},s.name))})]})})}const lj=[{question:"Is this app available for Windows or iOS?",answer:"macOS only, for now. We built on Apple's core audio architecture for low-latency routing and capture. Windows and iOS may follow â at the same standard."},{question:"How does it connect to my existing gear?",answer:"By installing the free, open-source Blackhole virtual audio mixer you can connect to any audio source."},{question:"Can I use headphones and microphone together?",answer:"Yes. You can use headphones with a mic to listen to the audio and see the translation in real time without the AI translating your own voice."},{question:"Does it work with virtual meeting platforms?",answer:"Yes. Stream audio to Kasana from Zoom, KUDO, Teams, and Webex in parallel. Your microphone path to the platform stays untouched â no loopback or echo."},{question:"Does it require an internet connection?",answer:"Yes. Until local LLMs become a reality, Kasana requires an internet connection."},{question:"How secure is my client's audio?",answer:"Encrypted in transit (TLS)."},{question:"What is BlackHole?",answer:c.jsxs(c.Fragment,{children:[c.jsx("a",{href:"https://github.com/ExistentialAudio/BlackHole",target:"_blank",rel:"noopener noreferrer",className:"text-[#1A8CFF] underline hover:text-[#1578E8]",children:"BlackHole"})," ","is an open-source virtual audio device for macOS that allows you to route any local software or device in with zero feedback."]}),schemaAnswer:"BlackHole is an open-source virtual audio device for macOS that allows you to route any local software or device into Kasana with zero feedback."},{question:"Does it replace me?",answer:"Kasana is an AI assistant â it surfaces what strains working memory so you focus on judgment, register, and accuracy."}];function E9(){return c.jsx(en.section,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},transition:{delay:.2,duration:.8,ease:"easeInOut"},id:"faq",className:"relative px-4 sm:px-6 lg:px-8 py-16 md:py-24 pb-32 scroll-mt-24","aria-labelledby":"faq-heading",children:c.jsxs("div",{className:"max-w-3xl mx-auto",children:[c.jsx("div",{className:"text-center mb-10 md:mb-14",children:c.jsx("h2",{id:"faq-heading",className:"text-3xl md:text-4xl lg:text-5xl font-semibold text-slate-900 font-primary",children:"FAQ"})}),c.jsx(E2,{type:"single",collapsible:!0,className:"w-full space-y-4",children:lj.map((e,t)=>c.jsxs(pp,{value:`faq-${t}`,className:"rounded-xl border border-slate-200 bg-white px-5 border-b-0",children:[c.jsx(gp,{className:"text-left text-base md:text-lg font-medium text-slate-900 hover:no-underline hover:text-[#1A8CFF] font-primary py-5",children:e.question}),c.jsx(vp,{className:"text-slate-500 font-secondary text-sm md:text-base leading-relaxed",children:e.answer})]},e.question))})]})})}const j9=pr("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Zi=x.forwardRef(({className:e,variant:t,size:a,asChild:s=!1,...o},u)=>{const d=s?i2:"button";return c.jsx(d,{className:De(j9({variant:t,size:a,className:e})),ref:u,...o})});Zi.displayName="Button";const pt=x.forwardRef(({className:e,type:t,...a},s)=>c.jsx("input",{type:t,className:De("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1806ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...a}));pt.displayName="Input";const N9=["top","right","bottom","left"],pi=Math.min,Qt=Math.max,mu=Math.round,Lc=Math.floor,Zn=e=>({x:e,y:e}),A9={left:"right",right:"left",bottom:"top",top:"bottom"},C9={start:"end",end:"start"};function Lm(e,t,a){return Qt(e,pi(t,a))}function Aa(e,t){return typeof e=="function"?e(t):e}function Ca(e){return e.split("-")[0]}function br(e){return e.split("-")[1]}function bg(e){return e==="x"?"y":"x"}function wg(e){return e==="y"?"height":"width"}const _9=new Set(["top","bottom"]);function Gn(e){return _9.has(Ca(e))?"y":"x"}function Sg(e){return bg(Gn(e))}function R9(e,t,a){a===void 0&&(a=!1);const s=br(e),o=Sg(e),u=wg(o);let d=o==="x"?s===(a?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(d=pu(d)),[d,pu(d)]}function k9(e){const t=pu(e);return[Im(e),t,Im(t)]}function Im(e){return e.replace(/start|end/g,t=>C9[t])}const Z1=["left","right"],Q1=["right","left"],M9=["top","bottom"],D9=["bottom","top"];function O9(e,t,a){switch(e){case"top":case"bottom":return a?t?Q1:Z1:t?Z1:Q1;case"left":case"right":return t?M9:D9;default:return[]}}function P9(e,t,a,s){const o=br(e);let u=O9(Ca(e),a==="start",s);return o&&(u=u.map(d=>d+"-"+o),t&&(u=u.concat(u.map(Im)))),u}function pu(e){return e.replace(/left|right|bottom|top/g,t=>A9[t])}function L9(e){return{top:0,right:0,bottom:0,left:0,...e}}function cj(e){return typeof e!="number"?L9(e):{top:e,right:e,bottom:e,left:e}}function gu(e){const{x:t,y:a,width:s,height:o}=e;return{width:s,height:o,top:a,left:t,right:t+s,bottom:a+o,x:t,y:a}}function J1(e,t,a){let{reference:s,floating:o}=e;const u=Gn(t),d=Sg(t),h=wg(d),m=Ca(t),g=u==="y",v=s.x+s.width/2-o.width/2,y=s.y+s.height/2-o.height/2,b=s[h]/2-o[h]/2;let S;switch(m){case"top":S={x:v,y:s.y-o.height};break;case"bottom":S={x:v,y:s.y+s.height};break;case"right":S={x:s.x+s.width,y};break;case"left":S={x:s.x-o.width,y};break;default:S={x:s.x,y:s.y}}switch(br(t)){case"start":S[d]-=b*(a&&g?-1:1);break;case"end":S[d]+=b*(a&&g?-1:1);break}return S}const I9=async(e,t,a)=>{const{placement:s="bottom",strategy:o="absolute",middleware:u=[],platform:d}=a,h=u.filter(Boolean),m=await(d.isRTL==null?void 0:d.isRTL(t));let g=await d.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y}=J1(g,s,m),b=s,S={},j=0;for(let E=0;E<h.length;E++){const{name:A,fn:C}=h[E],{x:k,y:R,data:P,reset:M}=await C({x:v,y,initialPlacement:s,placement:b,strategy:o,middlewareData:S,rects:g,platform:d,elements:{reference:e,floating:t}});v=k??v,y=R??y,S={...S,[A]:{...S[A],...P}},M&&j<=50&&(j++,typeof M=="object"&&(M.placement&&(b=M.placement),M.rects&&(g=M.rects===!0?await d.getElementRects({reference:e,floating:t,strategy:o}):M.rects),{x:v,y}=J1(g,b,m)),E=-1)}return{x:v,y,placement:b,strategy:o,middlewareData:S}};async function Wo(e,t){var a;t===void 0&&(t={});const{x:s,y:o,platform:u,rects:d,elements:h,strategy:m}=e,{boundary:g="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:b=!1,padding:S=0}=Aa(t,e),j=cj(S),A=h[b?y==="floating"?"reference":"floating":y],C=gu(await u.getClippingRect({element:(a=await(u.isElement==null?void 0:u.isElement(A)))==null||a?A:A.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:g,rootBoundary:v,strategy:m})),k=y==="floating"?{x:s,y:o,width:d.floating.width,height:d.floating.height}:d.reference,R=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),P=await(u.isElement==null?void 0:u.isElement(R))?await(u.getScale==null?void 0:u.getScale(R))||{x:1,y:1}:{x:1,y:1},M=gu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:k,offsetParent:R,strategy:m}):k);return{top:(C.top-M.top+j.top)/P.y,bottom:(M.bottom-C.bottom+j.bottom)/P.y,left:(C.left-M.left+j.left)/P.x,r
vendor: 8,278 bytes, line 1806
1806ight:(M.right-C.right+j.right)/P.x}}const U9=e=>({name:"arrow",options:e,async fn(t){const{x:a,y:s,placement:o,rects:u,platform:d,elements:h,middlewareData:m}=t,{element:g,padding:v=0}=Aa(e,t)||{};if(g==null)return{};const y=cj(v),b={x:a,y:s},S=Sg(o),j=wg(S),E=await d.getDimensions(g),A=S==="y",C=A?"top":"left",k=A?"bottom":"right",R=A?"clientHeight":"clientWidth",P=u.reference[j]+u.reference[S]-b[S]-u.floating[j],M=b[S]-u.reference[S],z=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let G=z?z[R]:0;(!G||!await(d.isElement==null?void 0:d.isElement(z)))&&(G=h.floating[R]||u.floating[j]);const H=P/2-M/2,$=G/2-E[j]/2-1,J=pi(y[C],$),de=pi(y[k],$),Ee=J,he=G-E[j]-de,pe=G/2-E[j]/2+H,we=Lm(Ee,pe,he),Z=!m.arrow&&br(o)!=null&&pe!==we&&u.reference[j]/2-(pe<Ee?J:de)-E[j]/2<0,ee=Z?pe<Ee?pe-Ee:pe-he:0;return{[S]:b[S]+ee,data:{[S]:we,centerOffset:pe-we-ee,...Z&&{alignmentOffset:ee}},reset:Z}}}),B9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,s;const{placement:o,middlewareData:u,rects:d,initialPlacement:h,platform:m,elements:g}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:E=!0,...A}=Aa(e,t);if((a=u.arrow)!=null&&a.alignmentOffset)return{};const C=Ca(o),k=Gn(h),R=Ca(h)===h,P=await(m.isRTL==null?void 0:m.isRTL(g.floating)),M=b||(R||!E?[pu(h)]:k9(h)),z=j!=="none";!b&&z&&M.push(...P9(h,E,j,P));const G=[h,...M],H=await Wo(t,A),$=[];let J=((s=u.flip)==null?void 0:s.overflows)||[];if(v&&$.push(H[C]),y){const pe=R9(o,d,P);$.push(H[pe[0]],H[pe[1]])}if(J=[...J,{placement:o,overflows:$}],!$.every(pe=>pe<=0)){var de,Ee;const pe=(((de=u.flip)==null?void 0:de.index)||0)+1,we=G[pe];if(we&&(!(y==="alignment"?k!==Gn(we):!1)||J.every(F=>Gn(F.placement)===k?F.overflows[0]>0:!0)))return{data:{index:pe,overflows:J},reset:{placement:we}};let Z=(Ee=J.filter(ee=>ee.overflows[0]<=0).sort((ee,F)=>ee.overflows[1]-F.overflows[1])[0])==null?void 0:Ee.placement;if(!Z)switch(S){case"bestFit":{var he;const ee=(he=J.filter(F=>{if(z){const ce=Gn(F.placement);return ce===k||ce==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(ce=>ce>0).reduce((ce,N)=>ce+N,0)]).sort((F,ce)=>F[1]-ce[1])[0])==null?void 0:he[0];ee&&(Z=ee);break}case"initialPlacement":Z=h;break}if(o!==Z)return{reset:{placement:Z}}}return{}}}};function ew(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tw(e){return N9.some(t=>e[t]>=0)}const z9=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:a}=t,{strategy:s="referenceHidden",...o}=Aa(e,t);switch(s){case"referenceHidden":{const u=await Wo(t,{...o,elementContext:"reference"}),d=ew(u,a.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:tw(d)}}}case"escaped":{const u=await Wo(t,{...o,altBoundary:!0}),d=ew(u,a.floating);return{data:{escapedOffsets:d,escaped:tw(d)}}}default:return{}}}}},uj=new Set(["left","top"]);async function V9(e,t){const{placement:a,platform:s,elements:o}=e,u=await(s.isRTL==null?void 0:s.isRTL(o.floating)),d=Ca(a),h=br(a),m=Gn(a)==="y",g=uj.has(d)?-1:1,v=u&&m?-1:1,y=Aa(t,e);let{mainAxis:b,crossAxis:S,alignmentAxis:j}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof j=="number"&&(S=h==="end"?j*-1:j),m?{x:S*v,y:b*g}:{x:b*g,y:S*v}}const H9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,s;const{x:o,y:u,placement:d,middlewareData:h}=t,m=await V9(t,e);return d===((a=h.offset)==null?void 0:a.placement)&&(s=h.arrow)!=null&&s.alignmentOffset?{}:{x:o+m.x,y:u+m.y,data:{...m,placement:d}}}}},F9=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:s,placement:o}=t,{mainAxis:u=!0,crossAxis:d=!1,limiter:h={fn:A=>{let{x:C,y:k}=A;return{x:C,y:k}}},...m}=Aa(e,t),g={x:a,y:s},v=await Wo(t,m),y=Gn(Ca(o)),b=bg(y);let S=g[b],j=g[y];if(u){const A=b==="y"?"top":"left",C=b==="y"?"bottom":"right",k=S+v[A],R=S-v[C];S=Lm(k,S,R)}if(d){const A=y==="y"?"top":"left",C=y==="y"?"bottom":"right",k=j+v[A],R=j-v[C];j=Lm(k,j,R)}const E=h.fn({...t,[b]:S,[y]:j});return{...E,data:{x:E.x-a,y:E.y-s,enabled:{[b]:u,[y]:d}}}}}},$9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:s,placement:o,rects:u,middlewareData:d}=t,{offset:h=0,mainAxis:m=!0,crossAxis:g=!0}=Aa(e,t),v={x:a,y:s},y=Gn(o),b=bg(y);let S=v[b],j=v[y];const E=Aa(h,t),A=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(m){const R=b==="y"?"height":"width",P=u.reference[b]-u.floating[R]+A.mainAxis,M=u.reference[b]+u.reference[R]-A.mainAxis;S<P?S=P:S>M&&(S=M)}if(g){var C,k;const R=b==="y"?"width":"height",P=uj.has(Ca(o)),M=u.reference[y]-u.floating[R]+(P&&((C=d.offset)==null?void 0:C[y])||0)+(P?0:A.crossAxis),z=u.reference[y]+u.reference[R]+(P?0:((k=d.offset)==null?void 0:k[y])||0)-(P?A.crossAxis:0);j<M?j=M:j>z&&(j=z)}return{[b]:S,[y]:j}}}},G9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,s;const{placement:o,rects:u,platform:d,elements:h}=t,{apply:m=()=>{},...g}=Aa(e,t),v=await Wo(t,g),y=Ca(o),b=br(o),S=Gn(o)==="y",{width:j,height:E}=u.floating;let A,C;y==="top"||y==="bottom"?(A=y,C=b===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(C=y,A=b==="end"?"top":"bottom");const k=E-v.top-v.bottom,R=j-v.left-v.right,P=pi(E-v[A],k),M=pi(j-v[C],R),z=!t.middlewareData.shift;let G=P,H=M;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(H=R),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(G=k),z&&!b){const J=Qt(v.left,0),de=Qt(v.right,0),Ee=Qt(v.top,0),he=Qt(v.bottom,0);S?H=j-2*(J!==0||de!==0?J+de:Qt(v.left,v.right)):G=E-2*(Ee!==0||he!==0?Ee+he:Qt(v.top,v.bottom))}await m({...t,availableWidth:H,availableHeight:G});const $=await d.getDimensions(h.floating);return j!==$.width||E!==$.height?{reset:{rects:!0}}:{}}}};function Iu(){return typeof window<"u"}function wr(e){return dj(e)?(e.nodeName||"").toLowerCase():"#document"}function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ta(e){var t;return(t=(dj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dj(e){return Iu()?e instanceof Node||e instanceof tn(e).Node:!1}function kn(e){return Iu()?e instanceof Element||e instanceof tn(e).Element:!1}function Qn(e){return Iu()?e instanceof HTMLElement||e instanceof tn(e).HTMLElement:!1}function nw(e){return!Iu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tn(e).ShadowRoot}const q9=new Set(["inline","contents"]);function ul(e){const{overflow:t,overflowX:a,overflowY:s,display:o}=Mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+a)&&!q9.has(o)}const K9=new Set(["table","td","th"]);function Y9(e){return K9.has(wr(e))}const W9=[":popover-open",":modal"];function Uu(e){return W9.some(t=>{try{return e.matches(t)}catch{return!1}})}const X9=["transform","translate","scale","rotate","perspective"],Z9=["transform","translate","scale","rotate","perspective","filter"],Q9=["paint","layout","strict","content"];function Tg(e){const t=Eg(),a=kn(e)?Mn(e):e;return X9.some(s=>a[s]?a[s]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||Z9.some(s=>(a.willChange||"").includes(s))||Q9.some(s=>(a.contain||"").includes(s))}function J9(e){let t=gi(e);for(;Qn(t)&&!or(t);){if(Tg(t))return t;if(Uu(t))return null;t=gi(t)}return null}function Eg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eI=new Set(["html","body","#document"]);function or(e){return eI.has(wr(e))}function Mn(e){return tn(e).getComputedStyle(e)}function Bu(e){return kn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gi(e){if(wr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nw(e)&&e.host||ta(e);return nw(t)?t.host:t}function fj(e){const t=gi(e);return or(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qn(t)&&ul(t)?t:fj(t)}function Xo(e,t,a){var s;t===void 0&&(t=[]),a===void 0&&(a=!0);const o=fj(e),u=o===((s=e.ownerDocument)==null?void 0:s.body),d=tn(o);if(u){const h=Um(d);
vendor: 4,790 bytes, line 1806
1806return t.concat(d,d.visualViewport||[],ul(o)?o:[],h&&a?Xo(h):[])}return t.concat(o,Xo(o,[],a))}function Um(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hj(e){const t=Mn(e);let a=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const o=Qn(e),u=o?e.offsetWidth:a,d=o?e.offsetHeight:s,h=mu(a)!==u||mu(s)!==d;return h&&(a=u,s=d),{width:a,height:s,$:h}}function jg(e){return kn(e)?e:e.contextElement}function tr(e){const t=jg(e);if(!Qn(t))return Zn(1);const a=t.getBoundingClientRect(),{width:s,height:o,$:u}=hj(t);let d=(u?mu(a.width):a.width)/s,h=(u?mu(a.height):a.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const tI=Zn(0);function mj(e){const t=tn(e);return!Eg()||!t.visualViewport?tI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nI(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==tn(e)?!1:t}function ts(e,t,a,s){t===void 0&&(t=!1),a===void 0&&(a=!1);const o=e.getBoundingClientRect(),u=jg(e);let d=Zn(1);t&&(s?kn(s)&&(d=tr(s)):d=tr(e));const h=nI(u,a,s)?mj(u):Zn(0);let m=(o.left+h.x)/d.x,g=(o.top+h.y)/d.y,v=o.width/d.x,y=o.height/d.y;if(u){const b=tn(u),S=s&&kn(s)?tn(s):s;let j=b,E=Um(j);for(;E&&s&&S!==j;){const A=tr(E),C=E.getBoundingClientRect(),k=Mn(E),R=C.left+(E.clientLeft+parseFloat(k.paddingLeft))*A.x,P=C.top+(E.clientTop+parseFloat(k.paddingTop))*A.y;m*=A.x,g*=A.y,v*=A.x,y*=A.y,m+=R,g+=P,j=tn(E),E=Um(j)}}return gu({width:v,height:y,x:m,y:g})}function Ng(e,t){const a=Bu(e).scrollLeft;return t?t.left+a:ts(ta(e)).left+a}function pj(e,t,a){a===void 0&&(a=!1);const s=e.getBoundingClientRect(),o=s.left+t.scrollLeft-(a?0:Ng(e,s)),u=s.top+t.scrollTop;return{x:o,y:u}}function aI(e){let{elements:t,rect:a,offsetParent:s,strategy:o}=e;const u=o==="fixed",d=ta(s),h=t?Uu(t.floating):!1;if(s===d||h&&u)return a;let m={scrollLeft:0,scrollTop:0},g=Zn(1);const v=Zn(0),y=Qn(s);if((y||!y&&!u)&&((wr(s)!=="body"||ul(d))&&(m=Bu(s)),Qn(s))){const S=ts(s);g=tr(s),v.x=S.x+s.clientLeft,v.y=S.y+s.clientTop}const b=d&&!y&&!u?pj(d,m,!0):Zn(0);return{width:a.width*g.x,height:a.height*g.y,x:a.x*g.x-m.scrollLeft*g.x+v.x+b.x,y:a.y*g.y-m.scrollTop*g.y+v.y+b.y}}function iI(e){return Array.from(e.getClientRects())}function sI(e){const t=ta(e),a=Bu(e),s=e.ownerDocument.body,o=Qt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),u=Qt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let d=-a.scrollLeft+Ng(e);const h=-a.scrollTop;return Mn(s).direction==="rtl"&&(d+=Qt(t.clientWidth,s.clientWidth)-o),{width:o,height:u,x:d,y:h}}function rI(e,t){const a=tn(e),s=ta(e),o=a.visualViewport;let u=s.clientWidth,d=s.clientHeight,h=0,m=0;if(o){u=o.width,d=o.height;const g=Eg();(!g||g&&t==="fixed")&&(h=o.offsetLeft,m=o.offsetTop)}return{width:u,height:d,x:h,y:m}}const oI=new Set(["absolute","fixed"]);function lI(e,t){const a=ts(e,!0,t==="fixed"),s=a.top+e.clientTop,o=a.left+e.clientLeft,u=Qn(e)?tr(e):Zn(1),d=e.clientWidth*u.x,h=e.clientHeight*u.y,m=o*u.x,g=s*u.y;return{width:d,height:h,x:m,y:g}}function aw(e,t,a){let s;if(t==="viewport")s=rI(e,a);else if(t==="document")s=sI(ta(e));else if(kn(t))s=lI(t,a);else{const o=mj(e);s={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gu(s)}function gj(e,t){const a=gi(e);return a===t||!kn(a)||or(a)?!1:Mn(a).position==="fixed"||gj(a,t)}function cI(e,t){const a=t.get(e);if(a)return a;let s=Xo(e,[],!1).filter(h=>kn(h)&&wr(h)!=="body"),o=null;const u=Mn(e).position==="fixed";let d=u?gi(e):e;for(;kn(d)&&!or(d);){const h=Mn(d),m=Tg(d);!m&&h.position==="fixed"&&(o=null),(u?!m&&!o:!m&&h.position==="static"&&!!o&&oI.has(o.position)||ul(d)&&!m&&gj(e,d))?s=s.filter(v=>v!==d):o=h,d=gi(d)}return t.set(e,s),s}function uI(e){let{element:t,boundary:a,rootBoundary:s,strategy:o}=e;const d=[...a==="clippingAncestors"?Uu(t)?[]:cI(t,this._c):[].concat(a),s],h=d[0],m=d.reduce((g,v)=>{const y=aw(t,v,o);return g.top=Qt(y.top,g.top),g.right=pi(y.right,g.right),g.bottom=pi(y.bottom,g.bottom),g.left=Qt(y.left,g.left),g},aw(t,h,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function dI(e){const{width:t,height:a}=hj(e);return{width:t,height:a}}function fI(e,t,a){const s=Qn(t),o=ta(t),u=a==="fixed",d=ts(e,!0,u,t);let h={scrollLeft:0,scrollTop:0};const m=Zn(0);function g(){m.x=Ng(o)}if(s||!s&&!u)if((wr(t)!=="body"||ul(o))&&(h=Bu(t)),s){const S=ts(t,!0,u,t);m.x=S.x+t.clientLeft,m.y=S.y+t.clientTop}else o&&g();u&&!s&&o&&g();const v=o&&!s&&!u?pj(o,h):Zn(0),y=d.left+h.scrollLeft-m.x-v.x,b=d.top+h.scrollTop-m.y-v.y;return{x:y,y:b,width:d.width,height:d.height}}function Uh(e){return Mn(e).position==="static"}function iw(e,t){if(!Qn(e)||Mn(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return ta(e)===a&&(a=a.ownerDocument.body),a}function vj(e,t){const a=tn(e);if(Uu(e))return a;
vendor: 9,121 bytes, line 1806
1806if(!Qn(e)){let o=gi(e);for(;o&&!or(o);){if(kn(o)&&!Uh(o))return o;o=gi(o)}return a}let s=iw(e,t);for(;s&&Y9(s)&&Uh(s);)s=iw(s,t);return s&&or(s)&&Uh(s)&&!Tg(s)?a:s||J9(e)||a}const hI=async function(e){const t=this.getOffsetParent||vj,a=this.getDimensions,s=await a(e.floating);return{reference:fI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function mI(e){return Mn(e).direction==="rtl"}const pI={convertOffsetParentRelativeRectToViewportRelativeRect:aI,getDocumentElement:ta,getClippingRect:uI,getOffsetParent:vj,getElementRects:hI,getClientRects:iI,getDimensions:dI,getScale:tr,isElement:kn,isRTL:mI};function yj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gI(e,t){let a=null,s;const o=ta(e);function u(){var h;clearTimeout(s),(h=a)==null||h.disconnect(),a=null}function d(h,m){h===void 0&&(h=!1),m===void 0&&(m=1),u();const g=e.getBoundingClientRect(),{left:v,top:y,width:b,height:S}=g;if(h||t(),!b||!S)return;const j=Lc(y),E=Lc(o.clientWidth-(v+b)),A=Lc(o.clientHeight-(y+S)),C=Lc(v),R={rootMargin:-j+"px "+-E+"px "+-A+"px "+-C+"px",threshold:Qt(0,pi(1,m))||1};let P=!0;function M(z){const G=z[0].intersectionRatio;if(G!==m){if(!P)return d();G?d(!1,G):s=setTimeout(()=>{d(!1,1e-7)},1e3)}G===1&&!yj(g,e.getBoundingClientRect())&&d(),P=!1}try{a=new IntersectionObserver(M,{...R,root:o.ownerDocument})}catch{a=new IntersectionObserver(M,R)}a.observe(e)}return d(!0),u}function vI(e,t,a,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:m=!1}=s,g=jg(e),v=o||u?[...g?Xo(g):[],...Xo(t)]:[];v.forEach(C=>{o&&C.addEventListener("scroll",a,{passive:!0}),u&&C.addEventListener("resize",a)});const y=g&&h?gI(g,a):null;let b=-1,S=null;d&&(S=new ResizeObserver(C=>{let[k]=C;k&&k.target===g&&S&&(S.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=S)==null||R.observe(t)})),a()}),g&&!m&&S.observe(g),S.observe(t));let j,E=m?ts(e):null;m&&A();function A(){const C=ts(e);E&&!yj(E,C)&&a(),E=C,j=requestAnimationFrame(A)}return a(),()=>{var C;v.forEach(k=>{o&&k.removeEventListener("scroll",a),u&&k.removeEventListener("resize",a)}),y==null||y(),(C=S)==null||C.disconnect(),S=null,m&&cancelAnimationFrame(j)}}const yI=H9,xI=F9,bI=B9,wI=G9,SI=z9,sw=U9,TI=$9,EI=(e,t,a)=>{const s=new Map,o={platform:pI,...a},u={...o.platform,_c:s};return I9(e,t,{...o,platform:u})};var jI=typeof document<"u",NI=function(){},Xc=jI?x.useLayoutEffect:NI;function vu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let a,s,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(s=a;s--!==0;)if(!vu(e[s],t[s]))return!1;return!0}if(o=Object.keys(e),a=o.length,a!==Object.keys(t).length)return!1;for(s=a;s--!==0;)if(!{}.hasOwnProperty.call(t,o[s]))return!1;for(s=a;s--!==0;){const u=o[s];if(!(u==="_owner"&&e.$$typeof)&&!vu(e[u],t[u]))return!1}return!0}return e!==e&&t!==t}function xj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rw(e,t){const a=xj(e);return Math.round(t*a)/a}function Bh(e){const t=x.useRef(e);return Xc(()=>{t.current=e}),t}function AI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:a="absolute",middleware:s=[],platform:o,elements:{reference:u,floating:d}={},transform:h=!0,whileElementsMounted:m,open:g}=e,[v,y]=x.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[b,S]=x.useState(s);vu(b,s)||S(s);const[j,E]=x.useState(null),[A,C]=x.useState(null),k=x.useCallback(F=>{F!==z.current&&(z.current=F,E(F))},[]),R=x.useCallback(F=>{F!==G.current&&(G.current=F,C(F))},[]),P=u||j,M=d||A,z=x.useRef(null),G=x.useRef(null),H=x.useRef(v),$=m!=null,J=Bh(m),de=Bh(o),Ee=Bh(g),he=x.useCallback(()=>{if(!z.current||!G.current)return;const F={placement:t,strategy:a,middleware:b};de.current&&(F.platform=de.current),EI(z.current,G.current,F).then(ce=>{const N={...ce,isPositioned:Ee.current!==!1};pe.current&&!vu(H.current,N)&&(H.current=N,yu.flushSync(()=>{y(N)}))})},[b,t,a,de,Ee]);Xc(()=>{g===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,y(F=>({...F,isPositioned:!1})))},[g]);const pe=x.useRef(!1);Xc(()=>(pe.current=!0,()=>{pe.current=!1}),[]),Xc(()=>{if(P&&(z.current=P),M&&(G.current=M),P&&M){if(J.current)return J.current(P,M,he);he()}},[P,M,he,J,$]);const we=x.useMemo(()=>({reference:z,floating:G,setReference:k,setFloating:R}),[k,R]),Z=x.useMemo(()=>({reference:P,floating:M}),[P,M]),ee=x.useMemo(()=>{const F={position:a,left:0,top:0};if(!Z.floating)return F;const ce=rw(Z.floating,v.x),N=rw(Z.floating,v.y);return h?{...F,transform:"translate("+ce+"px, "+N+"px)",...xj(Z.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:ce,top:N}},[a,h,Z.floating,v.x,v.y]);return x.useMemo(()=>({...v,update:he,refs:we,elements:Z,floatingStyles:ee}),[v,he,we,Z,ee])}const CI=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){const{element:s,padding:o}=typeof e=="function"?e(a):e;return s&&t(s)?s.current!=null?sw({element:s.current,padding:o}).fn(a):{}:s?sw({element:s,padding:o}).fn(a):{}}}},_I=(e,t)=>({...yI(e),options:[e,t]}),RI=(e,t)=>({...xI(e),options:[e,t]}),kI=(e,t)=>({...TI(e),options:[e,t]}),MI=(e,t)=>({...bI(e),options:[e,t]}),DI=(e,t)=>({...wI(e),options:[e,t]}),OI=(e,t)=>({...SI(e),options:[e,t]}),PI=(e,t)=>({...CI(e),options:[e,t]});var LI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],II=LI.reduce((e,t)=>{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),UI="Arrow",bj=x.forwardRef((e,t)=>{const{children:a,width:s=10,height:o=5,...u}=e;return c.jsx(II.svg,{...u,ref:t,width:s,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});bj.displayName=UI;var BI=bj,zI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wj=zI.reduce((e,t)=>{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function VI(e){const[t,a]=x.useState(void 0);return Sn(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let d,h;if("borderBoxSize"in u){const m=u.borderBoxSize,g=Array.isArray(m)?m[0]:m;d=g.inlineSize,h=g.blockSize}else d=e.offsetWidth,h=e.offsetHeight;a({width:d,height:h})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else a(void 0)},[e]),t}var Ag="Popper",[Sj,Tj]=ns(Ag),[HI,Ej]=Sj(Ag),jj=e=>{const{__scopePopper:t,children:a}=e,[s,o]=x.useState(null);return c.jsx(HI,{scope:t,anchor:s,onAnchorChange:o,children:a})};jj.displayName=Ag;var Nj="PopperAnchor",Aj=x.forwardRef((e,t)=>{const{__scopePopper:a,virtualRef:s,...o}=e,u=Ej(Nj,a),d=x.useRef(null),h=ut(t,d);return x.useEffect(()=>{u.onAnchorChange((s==null?void 0:s.current)||d.current)}),s?null:c.jsx(wj.div,{...o,ref:h})});Aj.displayName=Nj;var Cg="PopperContent",[FI,$I]=Sj(Cg),Cj=x.forwardRef((e,t)=>{var ue,ve,ke,Se,Ue,_e;const{__scopePopper:a,side:s="bottom",sideOffset:o=0,align:u="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:m=!0,collisionBoundary:g=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:S="optimized",onPlaced:j,...E}=e,A=Ej(Cg,a),[C,k]=x.useState(null),R=ut(t,dt=>k(dt)),[P,M]=x.useState(null),z=VI(P),G=(z==null?void 0:z.width)??0,H=(z==null?void 0:z.height)??0,$=s+(u!=="center"?"-"+u:""),J=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},de=Array.isArray(g)?g:[g],Ee=de.length>0,he={padding:J,boundary:de.filter(qI),altBoundary:Ee},{refs:pe,floatingStyles:we,placement:Z,isPositioned:ee,middlewareData:F}=AI({strategy:"fixed",placement:$,whileElementsMounted:(...dt)=>vI(...dt,{animationFrame:S==="always"}),elements:{reference:A.anchor},middleware:[_I({mainAxis:o+H,alignmentAxis:d}),m&&RI({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?kI():void 0,...he}),m&&MI({...he}),DI({...he,apply:({elements:dt,rects:nn,availableWidth:Ft,availableHeight:Et})=>{const{width:ye,height:Ye}=nn.reference,an=dt.floating.style;an.setProperty("--radix-popper-available-width",`${Ft}px`),an.setProperty("--radix-popper-available-height",`${Et}px`),an.setProperty("--radix-popper-anchor-width",`${ye}px`),an.setProperty("--radix-popper-anchor-height",`${Ye}px`)}}),P&&PI({element:P,padding:h}),KI({arrowWidth:G,arrowHeight:H}),b&&OI({strategy:"referenceHidden",...he})]}),[ce,N]=kj(Z),L=Zt(j);Sn(()=>{ee&&(L==null||L())},[ee,L]);const U=(ue=F.arrow)==null?void 0:ue.x,K=(ve=F.arrow)==null?void 0:ve.y,W=((ke=F.arrow)==null?void 0:ke.centerOffset)!==0,[te,se]=x.use
vendor: 8,425 bytes, line 1806
1806State();return Sn(()=>{C&&se(window.getComputedStyle(C).zIndex)},[C]),c.jsx("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...we,transform:ee?we.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(Se=F.transformOrigin)==null?void 0:Se.x,(Ue=F.transformOrigin)==null?void 0:Ue.y].join(" "),...((_e=F.hide)==null?void 0:_e.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(FI,{scope:a,placedSide:ce,onArrowChange:M,arrowX:U,arrowY:K,shouldHideArrow:W,children:c.jsx(wj.div,{"data-side":ce,"data-align":N,...E,ref:R,style:{...E.style,animation:ee?void 0:"none"}})})})});Cj.displayName=Cg;var _j="PopperArrow",GI={top:"bottom",right:"left",bottom:"top",left:"right"},Rj=x.forwardRef(function(t,a){const{__scopePopper:s,...o}=t,u=$I(_j,s),d=GI[u.placedSide];return c.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:c.jsx(BI,{...o,ref:a,style:{...o.style,display:"block"}})})});Rj.displayName=_j;function qI(e){return e!==null}var KI=e=>({name:"transformOrigin",options:e,fn(t){var A,C,k;const{placement:a,rects:s,middlewareData:o}=t,d=((A=o.arrow)==null?void 0:A.centerOffset)!==0,h=d?0:e.arrowWidth,m=d?0:e.arrowHeight,[g,v]=kj(a),y={start:"0%",center:"50%",end:"100%"}[v],b=(((C=o.arrow)==null?void 0:C.x)??0)+h/2,S=(((k=o.arrow)==null?void 0:k.y)??0)+m/2;let j="",E="";return g==="bottom"?(j=d?y:`${b}px`,E=`${-m}px`):g==="top"?(j=d?y:`${b}px`,E=`${s.floating.height+m}px`):g==="right"?(j=`${-m}px`,E=d?y:`${S}px`):g==="left"&&(j=`${s.floating.width+m}px`,E=d?y:`${S}px`),{data:{x:j,y:E}}}});function kj(e){const[t,a="center"]=e.split("-");return[t,a]}var YI=jj,WI=Aj,XI=Cj,ZI=Rj,QI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],JI=QI.reduce((e,t)=>{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),[zu]=ns("Tooltip",[Tj]),Vu=Tj(),Mj="TooltipProvider",eU=700,Bm="tooltip.open",[tU,_g]=zu(Mj),Dj=e=>{const{__scopeTooltip:t,delayDuration:a=eU,skipDelayDuration:s=300,disableHoverableContent:o=!1,children:u}=e,d=x.useRef(!0),h=x.useRef(!1),m=x.useRef(0);return x.useEffect(()=>{const g=m.current;return()=>window.clearTimeout(g)},[]),c.jsx(tU,{scope:t,isOpenDelayedRef:d,delayDuration:a,onOpen:x.useCallback(()=>{window.clearTimeout(m.current),d.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>d.current=!0,s)},[s]),isPointerInTransitRef:h,onPointerInTransitChange:x.useCallback(g=>{h.current=g},[]),disableHoverableContent:o,children:u})};Dj.displayName=Mj;var Zo="Tooltip",[nU,Hu]=zu(Zo),Oj=e=>{const{__scopeTooltip:t,children:a,open:s,defaultOpen:o,onOpenChange:u,disableHoverableContent:d,delayDuration:h}=e,m=_g(Zo,e.__scopeTooltip),g=Vu(t),[v,y]=x.useState(null),b=ci(),S=x.useRef(0),j=d??m.disableHoverableContent,E=h??m.delayDuration,A=x.useRef(!1),[C,k]=as({prop:s,defaultProp:o??!1,onChange:G=>{G?(m.onOpen(),document.dispatchEvent(new CustomEvent(Bm))):m.onClose(),u==null||u(G)},caller:Zo}),R=x.useMemo(()=>C?A.current?"delayed-open":"instant-open":"closed",[C]),P=x.useCallback(()=>{window.clearTimeout(S.current),S.current=0,A.current=!1,k(!0)},[k]),M=x.useCallback(()=>{window.clearTimeout(S.current),S.current=0,k(!1)},[k]),z=x.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{A.current=!0,k(!0),S.current=0},E)},[E,k]);return x.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),c.jsx(YI,{...g,children:c.jsx(nU,{scope:t,contentId:b,open:C,stateAttribute:R,trigger:v,onTriggerChange:y,onTriggerEnter:x.useCallback(()=>{m.isOpenDelayedRef.current?z():P()},[m.isOpenDelayedRef,z,P]),onTriggerLeave:x.useCallback(()=>{j?M():(window.clearTimeout(S.current),S.current=0)},[M,j]),onOpen:P,onClose:M,disableHoverableContent:j,children:a})})};Oj.displayName=Zo;var zm="TooltipTrigger",Pj=x.forwardRef((e,t)=>{const{__scopeTooltip:a,...s}=e,o=Hu(zm,a),u=_g(zm,a),d=Vu(a),h=x.useRef(null),m=ut(t,h,o.onTriggerChange),g=x.useRef(!1),v=x.useRef(!1),y=x.useCallback(()=>g.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),c.jsx(WI,{asChild:!0,...d,children:c.jsx(JI.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...s,ref:m,onPointerMove:Le(e.onPointerMove,b=>{b.pointerType!=="touch"&&!v.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:Le(e.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:Le(e.onPointerDown,()=>{o.open&&o.onClose(),g.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:Le(e.onFocus,()=>{g.current||o.onOpen()}),onBlur:Le(e.onBlur,o.onClose),onClick:Le(e.onClick,o.onClose)})})});Pj.displayName=zm;var aU="TooltipPortal",[kB,iU]=zu(aU,{forceMount:void 0}),lr="TooltipContent",Lj=x.forwardRef((e,t)=>{const a=iU(lr,e.__scopeTooltip),{forceMount:s=a.forceMount,side:o="top",...u}=e,d=Hu(lr,e.__scopeTooltip);return c.jsx(ea,{present:s||d.open,children:d.disableHoverableContent?c.jsx(Ij,{side:o,...u,ref:t}):c.jsx(sU,{side:o,...u,ref:t})})}),sU=x.forwardRef((e,t)=>{const a=Hu(lr,e.__scopeTooltip),s=_g(lr,e.__scopeTooltip),o=x.useRef(null),u=ut(t,o),[d,h]=x.useState(null),{trigger:m,onClose:g}=a,v=o.current,{onPointerInTransitChange:y}=s,b=x.useCallback(()=>{h(null),y(!1)},[y]),S=x.useCallback((j,E)=>{const A=j.currentTarget,C={x:j.clientX,y:j.clientY},k=uU(C,A.getBoundingClientRect()),R=dU(C,k),P=fU(E.getBoundingClientRect()),M=mU([...R,...P]);h(M),y(!0)},[y]);return x.useEffect(()=>()=>b(),[b]),x.useEffect(()=>{if(m&&v){const j=A=>S(A,v),E=A=>S(A,m);return m.addEventListener("pointerleave",j),v.addEventListener("pointerleave",E),()=>{m.removeEventListener("pointerleave",j),v.removeEventListener("pointerleave",E)}}},[m,v,S,b]),x.useEffect(()=>{if(d){const j=E=>{const A=E.target,C={x:E.clientX,y:E.clientY},k=(m==null?void 0:m.contains(A))||(v==null?void 0:v.contains(A)),R=!hU(C,d);k?b():R&&(b(),g())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[m,v,d,g,b]),c.jsx(Ij,{...e,ref:u})}),[rU,oU]=zu(Zo,{isInside:!1}),lU=$5("TooltipContent"),Ij=x.forwardRef((e,t)=>{const{__scopeTooltip:a,children:s,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:d,...h}=e,m=Hu(lr,a),g=Vu(a),{onClose:v}=m;return x.useEffect(()=>(document.addEventListener(Bm,v),()=>document.removeEventListener(Bm,v)),[v]),x.useEffect(()=>{if(m.trigger){const y=b=>{const S=b.target;S!=null&&S.contains(m.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[m.trigger,v]),c.jsx(Eu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:c.jsxs(XI,{"data-state":m.stateAttribute,...g,...h,ref:t,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(lU,{children:s}),c.jsx(rU,{scope:a,isInside:!0,children:c.jsx(_2,{id:m.contentId,role:"tooltip",children:o||s})})]})})});Lj.displayName=lr;var Uj="TooltipArrow",cU=x.forwardRef((e,t)=>{const{__scopeTooltip:a,...s}=e,o=Vu(a);return oU(Uj,a).isInside?null:c.jsx(ZI,{...o,...s,ref:t})});cU.displayName=Uj;function uU(e,t){const a=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),u=Math.abs(t.left-e.x);switch(Math.min(a,s,o,u)){case u:return"left";case o:return"right";case a:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function dU(e,t,a=5){const s=[];
1806switch(t){case"top":s.push({x:e.x-a,y:e.y+a},{x:e.x+a,y:e.y+a});break;case"bottom":s.push({x:e.x-a,y:e.y-a},{x:e.x+a,y:e.y-a});break;case"left":s.push({x:e.x+a,y:e.y-a},{x:e.x+a,y:e.y+a});break;case"right":s.push({x:e.x-a,y:e.y-a},{x:e.x-a,y:e.y+a});break}return s}function fU(e){const{top:t,right:a,bottom:s,left:o}=e;return[{x:o,y:t},{x:a,y:t},{x:a,y:s},{x:o,y:s}]}function hU(e,t){const{x:a,y:s}=e;let o=!1;for(let u=0,d=t.length-1;u<t.length;d=u++){const h=t[u],m=t[d],g=h.x,v=h.y,y=m.x,b=m.y;v>s!=b>s&&a<(y-g)*(s-v)/(b-v)+g&&(o=!o)}return o}function mU(e){const t=e.slice();return t.sort((a,s)=>a.x<s.x?-1:a.x>s.x?1:a.y<s.y?-1:a.y>s.y?1:0),pU(t)}function pU(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const o=e[s];for(;t.length>=2;){const u=t[t.length-1],d=t[t.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))t.pop();else break}t.push(o)}t.pop();const a=[];for(let s=e.length-1;s>=0;s--){const o=e[s];for(;a.length>=2;){const u=a[a.length-1],d=a[a.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))a.pop();else break}a.push(o)}return a.pop(),t.length===1&&a.length===1&&t[0].x===a[0].x&&t[0].y===a[0].y?t:t.concat(a)}var gU=Dj,vU=Oj,yU=Pj,Bj=Lj;const ow=gU,lw=vU,cw=yU,Vm=x.forwardRef(({className:e,sideOffset:t=4,...a},s)=>c.jsx(Bj,{ref:s,sideOffset:t,className:De("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));Vm.displayName=Bj.displayName;function xU(){const[e,t]=x.useState(""),[a,s]=x.useState("idle"),o=async u=>{if(u.preventDefault(),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)){Jt.error("Please enter a valid email address");return}s("loading");try{if(!(await fetch(ku("/api/waitlist"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.trim()})})).ok)throw new Error("request failed");s("success"),t(""),Jt.success("Thanks for joining our waitlist! ð")}catch{s("error"),Jt.error("Couldn't subscribe. Please try again shortly.")}};return c.jsx("footer",{className:"relative border-t border-slate-200 bg-white text-slate-900",children:c.jsxs("div",{className:"container mx-auto px-4 py-12 md:px-6 lg:px-8",children:[c.jsxs("div",{className:"grid gap-12 md:grid-cols-2 lg:grid-cols-4",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"mb-4 text-3xl font-bold tracking-tight",children:"Stay Connected"}),c.jsx("p",{className:"mb-6 text-slate-500",children:"Join our newsletter for the latest updates and exclusive offers."}),c.jsxs("form",{className:"relative",onSubmit:o,children:[c.jsx(pt,{type:"email",placeholder:"Enter your email",value:e,onChange:u=>t(u.target.value),disabled:a==="loading",required:!0,className:"border-slate-200 bg-white pr-12 text-slate-900 placeholder:text-slate-400 focus-visible:ring-[#1A8CFF]/30"}),c.jsxs(Zi,{type:"submit",size:"icon",disabled:a==="loading",className:"absolute right-1 top-1 h-8 w-8 rounded-full bg-[#1A8CFF] text-white hover:bg-[#1578E8]",children:[a==="loading"?c.jsx(Ke.spinner,{className:"h-4 w-4 animate-spin"}):a==="success"?c.jsx(Ke.check,{className:"h-4 w-4"}):c.jsx(g5,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Subscribe"})]})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"mb-4 text-lg font-semibold",children:"Quick Links"}),c.jsxs("nav",{className:"space-y-2 text-sm",children:[c.jsx("a",{href:"/",className:"block text-slate-600 transition-colors hover:text-[#1A8CFF]",children:"Home"}),c.jsx("a",{href:"/#pricing",className:"block text-slate-600 transition-colors hover:text-[#1A8CFF]",children:"Pricing"}),c.jsx("a",{href:"/roadmap",className:"block text-slate-600 transition-colors hover:text-[#1A8CFF]",children:"Roadmap"}),c.jsx("a",{href:"/docs",className:"block text-slate-600 transition-colors hover:text-[#1A8CFF]",children:"Docs"}),c.jsx("a",{href:"/blog",className:"block text-slate-600 transition-colors hover:text-[#1A8CFF]",children:"Blog"})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"mb-4 text-lg font-semibold",children:"Contact Us"}),c.jsxs("address",{className:"space-y-2 text-sm not-italic text-slate-600",children:[c.jsx("p",{children:"P.O. Box 29448"}),c.jsx("p",{children:"Austin, Texas 78755"}),c.jsx("p",{children:"Email: [email protected]"})]})]}),c.jsxs("div",{children:[c.jsx("h3",{className:"mb-4 text-lg font-semibold",children:"Follow Us"}),c.jsxs("div",{className:"flex space-x-4",children:[c.jsx(ow,{children:c.jsxs(lw,{children:[c.jsx(cw,{asChild:!0,children:c.jsx(Zi,{asChild:!0,variant:"outline",size:"icon",className:"rounded-full border-slate-200 bg-white text-slate-700 hover:bg-slate-50 hover:text-slate-900",children:c.jsxs("a",{href:"https://instagram.com/serxioai",target:"_blank",rel:"noopener noreferrer",children:[c.jsx(Ke.instagram,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Instagram"})]})})}),c.jsx(Vm,{children:c.jsx("p",{children:"Follow us on Instagram"})})]})}),c.jsx(ow,{children:c.jsxs(lw,{children:[c.jsx(cw,{asChild:!0,children:c.jsx(Zi,{asChild:!0,variant:"outline",size:"icon",className:"rounded-full border-slate-200 bg-white text-slate-700 hover:bg-slate-50 hover:text-slate-900",children:c.jsxs("a",{href:"https://github.com/serxioai",target:"_blank",rel:"noopener noreferrer",children:[c.jsx(Ke.gitHub,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"GitHub"})]})})}),c.jsx(Vm,{children:c.jsx("p",{children:"Follow us on GitHub"})})]})})]})]})]}),c.jsxs("div",{className:"mt-12 flex flex-col items-center justify-between gap-4 border-t border-slate-200 pt-8 text-center md:flex-row",children:[c.jsx("p",{className:"text-sm text-slate-500",children:"© 2026 Kasana. All rights reserved."}),c.jsxs("nav",{className:"flex gap-4 text-sm",children:[c.jsx("a",{href:"/legal/privacy",className:"text-slate-600 transition-colors hover:text-[#1A8CFF]",children:"Privacy Policy"}),c.jsx("a",{href:"/legal/terms-of-use",className:"text-slate-600 transition-colors hover:text-[#1A8CFF]",children:"Terms of Service"})]})]})]})})}function Rt(){return c.jsx("div",{className:"block bg-white",children:c.jsx(xU,{})})}const Hm="G-Y32E1KE7L7",zj=!!Hm;let uw=!1;function bU(){if(uw)return;uw=!0,window.dataLayer=window.dataLayer||[];const e=function(){window.dataLayer.push(arguments)};window.gtag=e,e("js",new Date),e("config",Hm,{send_page_view:!1});const t=document.createElement("script");
1806t.async=!0,t.src=`https://www.googletagmanager.com/gtag/js?id=${Hm}`,document.head.appendChild(t)}let dw="";function Vj({path:e,title:t,contentGroup:a,params:s}){const o=`${e}::${t}`;o!==dw&&(dw=o,zj&&window.gtag&&window.gtag("event","page_view",{page_title:t,page_location:window.location.href,page_path:e,content_group:a,...Hj(s??{})}))}function wU(e,t={}){!zj||!window.gtag||window.gtag("event",e,Hj(t))}function Hj(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}const oe={name:"Kasana",titleSuffix:"Kasana",url:"https://kasana.ai",twitter:"@kasana_ai",locale:"en_US",defaultImage:"/og-image.jpg",description:"Kasana is a macOS app that gives professional interpreters real-time transcription, translation, and terminology support during in-person and virtual assignments."},zt="noindex, nofollow",SU="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1",TU=()=>({"@context":"https://schema.org","@type":"Organization","@id":`${oe.url}/#organization`,name:oe.name,url:oe.url,logo:`${oe.url}/logo512.png`,description:oe.description}),EU=()=>({"@context":"https://schema.org","@type":"WebSite","@id":`${oe.url}/#website`,name:oe.name,url:oe.url,publisher:{"@id":`${oe.url}/#organization`}}),jU=()=>({"@context":"https://schema.org","@type":"SoftwareApplication",name:"Kasana Speech Intelligence",operatingSystem:"macOS 12+",applicationCategory:"BusinessApplication",description:oe.description,url:oe.url,offers:{"@type":"Offer",category:"subscription"}}),dl=e=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,a)=>({"@type":"ListItem",position:a+1,name:t.name,item:`${oe.url}${t.path}`}))}),NU=e=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}),AU=[{pattern:"/",seo:{title:"Kasana â Real-Time AI Speech Intelligence for Interpreters",description:"Live transcription, translation, and terminology support for professional interpreters. Kasana runs on macOS and works with Zoom, Teams, Webex, and in-person gear.",contentGroup:"Marketing"}},{pattern:"/signup",seo:{title:`Join the Waitlist · ${oe.titleSuffix}`,description:"Request early access to Kasana, the real-time AI speech intelligence assistant built for professional interpreters.",contentGroup:"Marketing"}},{pattern:"/roadmap",seo:{title:`Product Roadmap · ${oe.titleSuffix}`,description:"What we are building next for Kasana â shipped milestones, work in progress, and upcoming features for interpreters.",contentGroup:"Marketing"}},{pattern:"/docs",seo:{title:`Guides & Tutorials · ${oe.titleSuffix}`,description:"Step-by-step setup guides and how-tos for Kasana: audio routing, virtual meeting capture, live sessions, and more.",contentGroup:"Docs"}},{pattern:"/tutorial/blackhole",seo:{title:`Capturing Meeting Audio with BlackHole on macOS · ${oe.titleSuffix}`,description:"Route system audio into Kasana with BlackHole so it can transcribe Zoom, Teams, and Webex meetings in real time â no extra microphone needed. ~10 minute setup for macOS 12+.",contentGroup:"Docs"}},{pattern:"/tutorial/stale-connection-timer",seo:{title:`Understanding the Stale Connection Timer · ${oe.titleSuffix}`,description:"How Kasana detects a quiet live session, checks in with you, and closes the session automatically when no one responds.",contentGroup:"Docs"}},{pattern:"/blog",seo:{title:`Blog · ${oe.titleSuffix}`,description:"Writing on interpretation, real-time speech AI, and the craft of working live â from the team building Kasana.",contentGroup:"Blog"}},{pattern:"/blog/admin",seo:{title:`Blog Admin · ${oe.titleSuffix}`,description:"Blog administration sign-in.",robots:zt,contentGroup:"Admin"}},{pattern:"/blog/login",seo:{title:`Blog Admin · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"Admin"}},{pattern:"/blog/edit",seo:{title:`New Post · Blog Admin · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"Admin"}},{pattern:"/blog/edit/:slug",seo:{title:`Edit Post · Blog Admin · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"Admin",deferAnalytics:!0}},{pattern:"/blog/:postId",seo:{title:`Blog · ${oe.titleSuffix}`,description:oe.description,type:"article",contentGroup:"Blog",deferAnalytics:!0}},{pattern:"/legal/terms-of-use",seo:{title:`Terms of Use · ${oe.titleSuffix}`,description:"The terms that govern your use of Kasana.",contentGroup:"Legal"}},{pattern:"/legal/privacy",seo:{title:`Privacy Policy · ${oe.titleSuffix}`,description:"How Kasana handles your audio, transcripts, and account data. Audio is encrypted in transit, processed in real time, and never archived or used for training.",contentGroup:"Legal"}},{pattern:"/login",seo:{title:`Sign In · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"Auth"}},{pattern:"/login/app-apple-auth",seo:{title:`Sign In with Apple · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"Auth"}},{pattern:"/login/success",seo:{title:`Signed In · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"Auth"}},{pattern:"/auth-success",seo:{title:`Signed In · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"Auth"}},{pattern:"/auth-success.html",seo:{title:`Signed In · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"Auth"}},{pattern:"/login/callback",seo:{title:`Signing In · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"Auth"}},{pattern:"/beta-login",seo:{title:`Beta Sign In · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"Auth"}},{pattern:"/sessions/:sessionId",seo:{title:`Live Session · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"App",deferAnalytics:!0}},{pattern:"/footer-demo",seo:{title:`Footer Demo · ${oe.titleSuffix}`,description:"",robots:zt,contentGroup:"App"}}],CU={title:`Page Not Found · ${oe.titleSuffix}`,description:"The page you are looking for does not exist or has been removed.",robots:zt,contentGroup:"Error"};function Fm(e){if(!e)return;let t=String(e).trim();/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(t)&&(t=`${t.replace(" ","T")}Z`);const a=new Date(t);if(!Number.isNaN(a.getTime()))return a.toISOString()}function wn(e){return/^https?:\/\//i.test(e)?e:`${oe.url}${e.startsWith("/")?"":"/"}${e}`}function Rg(e,t){const a=e.robots??SU,s=!a.includes("noindex"),o=e.canonicalPath??t;
1806return{title:e.title,description:e.description||oe.description,robots:a,type:e.type??"website",canonical:wn(o),image:wn(e.image??oe.defaultImage),contentGroup:e.contentGroup??"Marketing",jsonLd:s?[TU(),EU(),...e.jsonLd??[]]:[]}}const kg="data-seo-managed";function Bt(e,t,a){let s=document.head.querySelector(`meta[${e}="${t}"]`);s||(s=document.createElement("meta"),s.setAttribute(e,t),s.setAttribute(kg,""),document.head.appendChild(s)),s.setAttribute("content",a)}function _U(e,t){let a=document.head.querySelector(`link[rel="${e}"]`);a||(a=document.createElement("link"),a.setAttribute("rel",e),a.setAttribute(kg,""),document.head.appendChild(a)),a.setAttribute("href",t)}function RU(e){document.head.querySelectorAll('script[type="application/ld+json"]').forEach(t=>t.remove());for(const t of e){const a=document.createElement("script");a.type="application/ld+json",a.setAttribute(kg,""),a.textContent=JSON.stringify(t),document.head.appendChild(a)}}function Fj(e,t){const a=Rg(e,t);document.title=a.title,Bt("name","description",a.description),Bt("name","robots",a.robots),_U("canonical",a.canonical),Bt("property","og:site_name",oe.name),Bt("property","og:locale",oe.locale),Bt("property","og:type",a.type),Bt("property","og:title",a.title),Bt("property","og:description",a.description),Bt("property","og:url",a.canonical),Bt("property","og:image",a.image),Bt("name","twitter:card","summary_large_image"),Bt("name","twitter:site",oe.twitter),Bt("name","twitter:title",a.title),Bt("name","twitter:description",a.description),Bt("name","twitter:image",a.image),RU(a.jsonLd)}function kU(e){for(const t of AU)if(kw({path:t.pattern,end:!0},e))return t.seo;return null}let Zc=null;function MU(){const{pathname:e,search:t}=Dn();x.useEffect(()=>{if(Zc===e)return;const a=kU(e),s=a??CU;if(Fj(s,e),a!=null&&a.deferAnalytics)return;const o=Rg(s,e);Vj({path:e+t,title:o.title,contentGroup:o.contentGroup})},[e,t])}function Sr(e,t={}){const{pathname:a,search:s}=Dn(),o=JSON.stringify(e),u=JSON.stringify(t.analyticsParams??null);x.useEffect(()=>{if(!e)return;Zc=a,Fj(e,a);const d=Rg(e,a);return Vj({path:a+s,title:d.title,contentGroup:d.contentGroup,params:t.analyticsParams}),()=>{Zc===a&&(Zc=null)}},[a,s,o,u])}function DU(){Sr({title:"Kasana â Real-Time AI Speech Intelligence for Interpreters",description:"Live transcription, translation, and terminology support for professional interpreters. Kasana runs on macOS and works with Zoom, Teams, Webex, and in-person gear.",canonicalPath:"/",contentGroup:"Marketing",jsonLd:[jU(),NU(lj.map(t=>({question:t.question,answer:t.schemaAnswer??String(t.answer)})))]});const{hash:e}=Dn();return x.useEffect(()=>{if(!e)return;const t=document.querySelector(e);t&&t.scrollIntoView({behavior:"smooth"})},[e]),c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx(mr,{className:"pt-16 flex-1",children:c.jsxs("div",{className:"flex flex-col w-full",children:[c.jsx(m9,{}),c.jsx(T9,{}),c.jsx(b9,{}),c.jsx(g9,{}),c.jsx(E9,{})]})}),c.jsx(Rt,{})]})}function $j({title:e,effectiveDate:t,version:a,children:s}){return c.jsxs("div",{className:"relative min-h-screen flex flex-col bg-white",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 px-4 sm:px-6 lg:px-8 pt-28 pb-20",children:c.jsxs("div",{className:"max-w-3xl mx-auto",children:[c.jsx("h1",{className:"text-3xl sm:text-4xl font-bold text-slate-900 tracking-tight mb-2",children:e}),c.jsxs("p",{className:"text-sm text-slate-500 mb-10",children:["Effective ",t," · Version ",a]}),c.jsx("div",{className:"space-y-8 text-slate-700 leading-relaxed [&_h2]:text-xl [&_h2]:font-semibold [&_h2]:text-slate-900 [&_h2]:mb-3 [&_p]:mb-3 [&_ol]:mb-3 [&_ol]:pl-6 [&_ol]:space-y-2 [&_li]:pl-1 [&_strong]:font-semibold [&_strong]:text-slate-900 [&_a]:underline [&_a]:text-slate-900 hover:[&_a]:text-blue-700",children:s})]})}),c.jsx(Rt,{})]})}const Gj="August 10, 2026",qj="1.0";function Kj(){return c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"font-semibold text-slate-900",children:'Please read these terms carefully. By checking the consent box and creating an account, you agree to be bound by these Terms of Service ("Terms"). If you do not agree, do not check the box and do not use Kasana.'}),c.jsxs("section",{children:[c.jsx("h2",{children:"1. Acceptance; Eligibility"}),c.jsx("p",{children:'These Terms form a binding agreement between you and Kasana ("Kasana," "we," "us") governing your access to and use of the Kasana desktop application, website, and related services (collectively, the "Service"). You must be at least 18 years old to use the Service. If you are using the Service on behalf of an organization, you represent that you have authority to bind that organization, and "you" includes that organization.'})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"2. Beta Software â Read This Section Carefully"}),c.jsx("p",{children:"The Service is currently offered as a pre-release beta. This means:"}),c.jsx("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-4",children:c.jsxs("ol",{className:"list-[lower-alpha]",children:[c.jsx("li",{children:"The Service is under active development and has not been fully tested. It may contain bugs, errors, inaccuracies, or other problems, including but not limited to failures in speech recognition, translation accuracy, audio capture, session recording, or data synchronization."}),c.jsx("li",{children:"Features, functionality, pricing, and availability may be added, changed, degraded, or removed at any time without notice."}),c.jsx("li",{children:"The Service, in whole or in part, may be discontinued permanently or temporarily at any time, with or without notice, at Kasana's sole discretion."}),c.jsx("li",{children:"Beta access does not guarantee eventual availability of a commercial release, and beta accounts, data, session history, or configurations may not carry forward to any future release."})]})})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"3. Not a Substitute for Professional Judgment â High-Stakes Use"}),c.jsx("p",{children:'Kasana uses automated speech recognition and machine translation technology. Automated speech and translation systems can and do produce errors, including mishearing, mistranslating, omitting words, or fabricating content that was never spoken ("hallucination"), particularly with accents, specialized terminology, background noise, or connectivity issues.'}),c.jsx("div",{className:"rounded-lg border border-amber-200 bg-amber-50 p-4",children:c.jsxs("ol",{className:"list-[lower-alpha]",children:[c.jsxs("li",{children:[c.jsx("strong",{children:"The Service is not a certified or professional interpretation service"})," ","and is not a substitute for a qualified human interpreter, translator, or professional judgment."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"You should not rely on the Service as the sole or authoritative source of interpretation or translation in any high-stakes context"}),", including without limitation: court and legal proceedings, law enforcement interactions, medical or clinical encounters, emergency or life-safety situations, immigration proceedings, or any other setting where an inaccurate, incomplete, or delayed interpretation could result in harm, legal prejudice, or adverse consequences to any person."]}),c.jsx("li",{children:"In any such setting, a qualified, certified human interpreter or translator should be used in place of, or to verify and supervise, any output from the Service. You are solely responsible for deciding whether and how to use the Service in any given situation, and for any consequences of that decision."})]})})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"4. Your Account"}),c.jsx("p",{children:"You are responsible for maintaining the confidentiality of your account credentials and for all activity under your account. Notify us promptly of any unauthorized use. We may require a valid Apple ID (or other supported identity provider) to create an account."})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"5. Acceptable Use"}),c.jsx("p",{children:"You agree not to:"}),c.jsxs("ol",{className:"list-[lower-alpha]",children:[c.jsx("li",{children:"use the Service for any unlawful purpose or in violation of any applicable law or regulation;"}),c.jsx("li",{children:"reverse engineer, decompile, or disassemble the Service except as permitted by law;"}),c.jsx("li",{children:"interfere with or disrupt the integrity or performance of the Service;"}),c.jsx("li",{children:"attempt to gain unauthorized access to the Service or its related systems;"}),c.jsx("li",{children:"use the Service to interpret in a manner that violates the rights (including privacy or c
1806onsent-to-record rights) of any third party you are recording or transcribing â you are solely responsible for obtaining any consent required by applicable law before recording or transcribing a conversation using the Service."})]})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"6. Confidentiality of Beta Program"}),c.jsx("p",{children:'As a beta participant, you may gain access to non-public features, functionality, performance information, and other information about the Service that has not been publicly released ("Beta Confidential Information"). You agree that, for as long as the Service remains in beta and for one (1) year after your beta access ends:'}),c.jsxs("ol",{className:"list-[lower-alpha]",children:[c.jsx("li",{children:"you will not disclose Beta Confidential Information to any third party or make it public (including on social media, forums, or in press) without Kasana's prior written consent; and"}),c.jsx("li",{children:"you will use Beta Confidential Information solely to evaluate and use the Service."})]}),c.jsx("p",{children:"This obligation does not apply to information that is or becomes public through no fault of yours, that you already lawfully knew before disclosure, or that you are required to disclose by law (in which case you will give us prompt notice where legally permitted). This clause is part of your click-wrap acceptance of these Terms and is not a substitute for a separately signed non-disclosure agreement where one is required (e.g., for institutional deployments) â contact us if you need one."})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"7. Feedback"}),c.jsx("p",{children:'If you submit comments, suggestions, bug reports, or other feedback about the Service ("Feedback"), you grant Kasana a perpetual, irrevocable, worldwide, royalty-free, fully paid-up, sublicensable license to use, reproduce, modify, and incorporate that Feedback into the Service or any other Kasana product or service, without any obligation or compensation to you.'})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"8. Intellectual Property"}),c.jsx("p",{children:'The Service, including its software, design, text, graphics, and all intellectual property therein, is owned by Kasana or its licensors and is protected by intellectual property laws. Except for the limited right to use the Service granted by these Terms, no rights are transferred to you. You retain ownership of the audio, transcripts, and other content you input into the Service ("Your Content"), subject to the license below.'}),c.jsxs("p",{children:["You grant Kasana a worldwide, non-exclusive, royalty-free license to host, store, process, transmit, and display Your Content solely as necessary to provide, maintain, and improve the Service (including sending audio to third-party speech/translation providers as described in our"," ",c.jsx("a",{href:"/legal/privacy",children:"Privacy Policy"}),")."]})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"9. Third-Party Services"}),c.jsx("p",{children:"The Service relies on third-party providers, including Microsoft Azure (speech recognition, translation, and AI services), Apple and Google (sign-in), Firebase (authentication and infrastructure), Stripe (payment processing), and Amazon Web Services (hosting and secrets management). Your use of the Service is also subject to the applicable terms of those providers. Kasana is not responsible for outages, errors, or data handling practices of third-party providers beyond our control."})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"10. Disclaimer of Warranties"}),c.jsx("div",{className:"rounded-lg border border-slate-200 bg-slate-50 p-4",children:c.jsx("p",{className:"mb-0",children:'The Service is provided "as is" and "as available," without warranty of any kind, whether express, implied, or statutory. To the fullest extent permitted by law, Kasana disclaims all warranties, including without limitation the implied warranties of merchantability, fitness for a particular purpose, title, non-infringement, and any warranties arising out of course of dealing or usage of trade. Kasana does not warrant that the Service will be uninterrupted, error-free, secure, or that any transcription or translation output will be accurate or complete. You assume all risk arising from your use of, or reliance on, the Service.'})})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"11. Limitation of Liability"}),c.jsxs("div",{className:"rounded-lg border border-slate-200 bg-slate-50 p-4",children:[c.jsx("p",{children:"To the fullest extent permitted by law: (a) in no event will Kasana, its officers, directors, employees, or agents be liable for any indirect, incidental, special, consequential, exemplary, or punitive damages, including without limitation lost profits, lost data, loss of goodwill, or damages arising from mistranslation, mistranscription, dropped audio, or any decision made in reliance on the Service's output, even if Kasana has been advised of the possibility of such damages; and (b) Kasana's total cumulative liability arising out of or related to these Terms or the Service will not exceed the greater of (i) the fees you paid Kasana in the twelve (12) months preceding the event giving rise to the claim, or (ii) one hundred U.S. dollars ($100). These limitations apply regardless of the legal theory on which a claim is based, whether contract, tort, negligence, strict liability, or otherwise, and even if any limited remedy fails of its essential purpose."}),c.jsx("p",{className:"mb-0",children:"Some jurisdictions do not allow certain limitations of liability, so some of the above limitations may not apply to you."})]})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"12. Indemnification"}),c.jsx("p",{children:"You agree to indemnify, defend, and hold harmless Kasana and its officers, directors, employees, and agents from and against any claims, liabilities, damages, losses, and expenses (including reasonable attorneys' fees) arising out of or related to:"}),c.jsxs("ol",{className:"list-[lower-alpha]",children:[c.jsx("li",{children:"your use of the Service, including any reliance on the Service in a professional, legal, medical, or other high-stakes setting;"}),c.jsx("li",{children:"your violation of these Terms;"}),c.jsx("li",{children:"your violation of any third-party right, including privacy or recording-consent rights of anyone you record using the Service; or"}),c.jsx("li",{children:"Your Content."})]})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"13. Term and Termination"}),c.jsx("p",{children:"These Terms remain in effect while you use the Service. Kasana may
1806suspend or terminate your access to the Service, or discontinue the beta program or the Service entirely, at any time, with or without cause and with or without notice. You may stop using the Service and delete your account at any time via the in-app account deletion flow. Sections 2, 3, 6, 7, 8, 10â12, and 14â16 survive termination."})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"14. Changes to These Terms"}),c.jsx("p",{children:'We may update these Terms from time to time. If we make material changes, we will update the "Effective Date" above and, where required, ask you to re-accept the Terms before continuing to use the Service. Continued use of the Service after a non-material update constitutes acceptance of the revised Terms.'})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"15. Governing Law; Dispute Resolution; Arbitration Agreement"}),c.jsxs("p",{children:[c.jsx("strong",{children:"(a) Governing Law."})," These Terms are governed by the laws of the State of Texas, without regard to its conflict-of-laws principles."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"(b) Agreement to Arbitrate."}),` You and Kasana agree that any dispute, claim, or controversy arising out of or relating to these Terms or the Service ("Dispute") will be resolved by binding individual arbitration administered by the American Arbitration Association ("AAA") under its Consumer Arbitration Rules, rather than in court, except as set forth below. The arbitration will be conducted in Travis County, Texas, or, if you prefer, by telephone or videoconference. The arbitrator's decision will be final and binding, subject to limited judicial review under applicable law.`]}),c.jsxs("p",{children:[c.jsx("strong",{children:"(c) Class Action and Jury Trial Waiver."})," You and Kasana each waive the right to a jury trial and the right to participate in a class action, class arbitration, or representative action. Disputes must be brought in an individual capacity only, not as a plaintiff or class member in any purported class or representative proceeding."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"(d) Exceptions."})," Either party may bring an individual action in small claims court, and either party may seek injunctive or other equitable relief in court to prevent actual or threatened infringement, misappropriation, or violation of intellectual property or confidentiality obligations."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"(e) Opt-Out."})," You may opt out of this arbitration agreement by sending written notice to"," ",c.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})," within thirty (30) days of first accepting these Terms, stating your name and that you opt out of Section 15(b)â(c). If you opt out, all other provisions of these Terms remain in effect, and disputes will instead be resolved in the state or federal courts located in Travis County, Texas, and you and Kasana each consent to personal jurisdiction and venue there."]})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"16. Miscellaneous"}),c.jsxs("p",{children:[c.jsx("strong",{children:"(a) Entire Agreement."}
1806)," These Terms, together with the"," ",c.jsx("a",{href:"/legal/privacy",children:"Privacy Policy"}),", constitute the entire agreement between you and Kasana regarding the Service and supersede any prior agreements."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"(b) Severability."})," If any provision of these Terms is held unenforceable, the remaining provisions will remain in full force, and the unenforceable provision will be modified to the minimum extent necessary to make it enforceable."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"(c) No Waiver."})," Kasana's failure to enforce any provision is not a waiver of that provision."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"(d) Assignment."})," You may not assign these Terms without Kasana's prior written consent. Kasana may assign these Terms in connection with a merger, acquisition, or sale of assets."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"(e) Force Majeure."})," Kasana is not liable for any failure or delay resulting from causes beyond its reasonable control."]}),c.jsxs("p",{className:"mb-0",children:[c.jsx("strong",{children:"(f) Contact."})," Questions about these Terms may be sent to"," ",c.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]})]})]})}function OU(){return c.jsx($j,{title:"Kasana Beta Terms of Service",effectiveDate:Gj,version:qj,children:c.jsx(Kj,{})})}const Yj="August 10, 2026",Wj="1.0";function Xj(){return c.jsxs(c.Fragment,{children:[c.jsxs("p",{children:['This Privacy Policy describes how Kasana ("Kasana," "we," "us") collects, uses, and shares information when you use the Kasana application and website (the "Service"). It should be read together with our'," ",c.jsx("a",{href:"/legal/terms-of-use",children:"Terms of Service"}),"."]}),c.jsxs("section",{children:[c.jsx("h2",{children:"1. Information We Collect"}),c.jsxs("ol",{className:"list-[lower-alpha]",children:[c.jsxs("li",{children:[c.jsx("strong",{children:"Account Information."})," When you sign in with Apple (or another supported provider), we receive your email address and, if provided, your first and last name. We also record your locale, sign-up source (e.g., desktop app or web), and the date/time and version of these policies you accepted."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Session Content."})," When you use Kasana to transcribe or translate a conversation, your audio is streamed in real time to Microsoft Azure AI Speech for speech recognition and translation (see Section 2). We do not store your raw audio. The resulting text â transcripts and translations â is saved to our database so you can review your session history, along with session metadata (device platform, app version, timestamps)."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"AI-Generated Session Titles."})," We may send transcript text to Azure OpenAI to automatically generate a short title for a saved session."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Usage and Diagnostic Information."})," We collect basic product-usage and crash/error events to help us fix bugs and understand feature usage."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Website Analytics."})," Our marketing website (kasana.ai) uses Google Analytics to understand site traffic; this does not apply to the desktop application."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Payment Information."})," If you subscribe to a paid plan, payment is processed by Stripe. We do not receive or store your full card number."]})]})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"2. How We Share Information with Third-Party Processors"}),c.jsx("p",{children:"We use the following third-party service providers to operate Kasana. Each processes data only as necessary to provide their service to us:"}),c.jsxs("ol",{className:"list-disc",children:[c.jsxs("li",{children:[c.jsx("strong",{children:"Microsoft Azure"})," â speech recognition, translation, and AI processing (audio and transcript text); database and application hosting."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Apple / Google"})," â sign-in authentication."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Firebase (Google)"}
1806)," â authentication and account infrastructure."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Stripe"})," â payment processing for paid subscriptions."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"Amazon Web Services"})," â server hosting and secrets management."]}),c.jsxs("li",{children:[c.jsx("strong",{children:"MailerLite"})," â product and marketing email communications."]})]}),c.jsx("p",{className:"mb-0",children:"We do not sell your personal information."})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"3. Data Retention"}),c.jsxs("p",{className:"mb-0",children:["We retain your transcript and session history for as long as your account remains active, so that you can access your past sessions. If you delete your account, we scrub your personal information (email, name, and other identifiers) from our systems immediately, cancel any subscription at the end of the current billing period, and permanently delete your remaining account data, sessions, and transcripts within 30 days. Certain records (such as billing/tax records, and a minimal audit log of the deletion itself) are retained longer where required for legal, accounting, or fraud-prevention purposes. We do not currently offer a self-service data export tool; contact"," ",c.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})," if you would like a copy of your data."]})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"4. Data Security"}),c.jsx("p",{className:"mb-0",children:"We use industry-standard safeguards, including encrypted transport (TLS) and access-brokered, short-lived credentials for our speech-processing integrations. No system is completely secure, and we cannot guarantee the absolute security of your information."})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"5. Your Choices"}),c.jsxs("p",{className:"mb-0",children:["You may delete your account and associated data at any time from within the app. You may also contact us at"," ",c.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})," with questions or requests regarding your personal information."]})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"6. Children's Privacy"}),c.jsx("p",{className:"mb-0",children:"The Service is not directed to individuals under 18, and we do not knowingly collect personal information from children."})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"7. International Users"}),c.jsx("p",{className:"mb-0",children:"Kasana is based in the United States, and information we collect is processed and stored in the United States. By using the Service, you consent to this transfer and processing."})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"8. Changes to This Policy"}),c.jsx("p",{className:"mb-0",children:"We may update this Privacy Policy from time to time. Material changes will be reflected by an updated Effective Date and, where required, prompted for re-acceptance."})]}),c.jsxs("section",{children:[c.jsx("h2",{children:"9. Contact"}),c.jsxs("p",{className:"mb-0",children:["Questions about this Privacy Policy may be sent to"," ",c.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]})]})]})}function PU(){return c.jsx($j,{title:"Kasana Privacy Policy",effectiveDate:Yj,version:Wj,children:c.jsx(Xj,{})})}const LU="https://kasana.ai/legal/terms-of-use/",IU="https://kasana.ai/legal/privacy",UU="1.0",BU=()=>{const[e,t]=x.useState(!1),[a,s]=x.useState(null),o=x.useMemo(()=>{const h=new URLSearchParams(window.location.search).get("client");return h==="desktop"||h==="kasana-mac-app"},[]),u=async()=>{if(e)try{console.log("ð Starting Apple login process...");const d=new URLSearchParams(window.location.search),h=d.get("redirect_uri"),m=d.get("version");let g;o?g=(h==null?void 0:h.trim())||"kasana://auth-callback":g=`${window.location.origin}/login/success`,console.log("ð Post-Apple redirect URI:",{isDesktopFlow:o,postAuthRedirect:g.replace(/token=.*/,"token=REDACTED")});const v=new Date().toISOString(),y=typeof navigator<"u"?navigator.language:void 0,b=JSON.stringify({client:o?"kasana":"kasana-web",version:m||"1.0",redirect_uri:g,termsAcceptedAt:v,privacyAcceptedAt:v,termsVersion:UU,locale:y||void 0});console.log("ð¦ State (redirect only):",{client:o?"kasana":"kasana-web"}),console.log("ð Environment variables:",{VITE_APPLE_SERVICE_ID:"com.kasana.auth",VITE_API_URL:"https://kasana.ai",NODE_ENV:"production"});let S;try{S=new URL("https://kasana.ai")}catch{console.error("â Invalid VITE_API_URL:","https://kasana.ai"),S=new URL(window.location.origin)}S.hostname!=="localhost"&&S.hostname!=="127.0.0.1"&&(S.protocol="https:");const j=`${S.protocol}//${S.host}`;console.log("ð Base URL for callback:",j);const E=`${j}/api/auth/apple/callback`;console.log("ð Callback URL:",E);const A=new URL("https://appleid.apple.com/auth/authorize");A.searchParams.append("response_type","code id_token"),A.searchParams.append("response_mode","form_post"),A.searchParams.append("client_id","com.kasana.auth"),A.searchParams.append("redirect_uri",E),A.searchParams.append("state",b),A.searchParams.append("scope","name email"),console.log("ð Apple Auth URL:",A.toString()),window.location.href=A.toString()}catch(d){console.error("â Apple login error:",d),alert("Failed to start Apple login. Please try again.")}};return c.jsxs("div",{className:"flex flex-col gap-4",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsxs("div",{className:"relative flex-shrink-0 mt-0.5",children:[c.jsx("input",{type:"checkbox",id:"terms-consent-checkbox",checked:e,onChange:d=>t(d.target.checked),className:"sr-only"}),c.jsx("label",{htmlFor:"terms-consent-checkbox",className:`w-5 h-5 rounded border-2 flex items-center justify-center cursor-pointer transition-colors ${e?"border-black bg-black":"border-slate-300 bg-white"}
1806`,children:e&&c.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})})]}),c.jsxs("label",{htmlFor:"terms-consent-checkbox",className:"text-xs text-slate-600 dark:text-slate-400 leading-relaxed cursor-pointer",children:["I have read and agree to the"," ",o?c.jsx("a",{href:LU,target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-slate-900 dark:hover:text-slate-200",onClick:d=>d.stopPropagation(),children:"Terms of Service"}):c.jsx("button",{type:"button",className:"underline hover:text-slate-900 dark:hover:text-slate-200",onClick:d=>{d.stopPropagation(),d.preventDefault(),s("terms")},children:"Terms of Service"})," ","and"," ",o?c.jsx("a",{href:IU,target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-slate-900 dark:hover:text-slate-200",onClick:d=>d.stopPropagation(),children:"Privacy Policy"}):c.jsx("button",{type:"button",className:"underline hover:text-slate-900 dark:hover:text-slate-200",onClick:d=>{d.stopPropagation(),d.preventDefault(),s("privacy")},children:"Privacy Policy"}),", including the Beta Software Disclaimer."]})]}),!o&&c.jsx(LS,{open:a!==null,onOpenChange:d=>!d&&s(null),children:c.jsxs(Ap,{side:"right",className:"w-full sm:max-w-lg overflow-y-auto",children:[c.jsxs(Cp,{children:[c.jsx(_p,{children:a==="terms"?"Kasana Beta Terms of Service":"Kasana Privacy Policy"}),c.jsxs(US,{children:["Effective ",a==="terms"?Gj:Yj," · Version ",a==="terms"?qj:Wj]})]}),c.jsx("div",{className:"mt-4 space-y-8 text-sm text-slate-700 dark:text-slate-300 leading-relaxed [&_h2]:text-base [&_h2]:font-semibold [&_h2]:text-slate-900 dark:[&_h2]:text-slate-100 [&_h2]:mb-2 [&_p]:mb-3 [&_ol]:mb-3 [&_ol]:pl-6 [&_ol]:space-y-2 [&_li]:pl-1 [&_strong]:font-semibold [&_strong]:text-slate-900 dark:[&_strong]:text-slate-100 [&_a]:underline [&_a]:text-slate-900 dark:[&_a]:text-slate-100 hover:[&_a]:text-blue-700",children:a==="terms"?c.jsx(Kj,{}):c.jsx(Xj,{})})]})}),c.jsxs("button",{type:"button",onClick:u,disabled:!e,className:"w-full h-12 px-6 inline-flex items-center justify-center gap-3 rounded-full bg-black text-white font-semibold tracking-tight shadow-sm transition-colors hover:bg-neutral-900 active:bg-neutral-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50 dark:focus-visible:ring-white/30 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-black","aria-label":"Sign in with Apple",children:[c.jsx(Ke.apple,{className:"w-5 h-5 text-white"}),c.jsx("span",{children:"Sign in with Apple"})]})]})};function zU(){return c.jsx(mr,{children:c.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:c.jsxs("div",{className:"w-full max-w-md text-center rounded-xl bg-white/80 dark:bg-zinc-900/70 backdrop-blur-md shadow-xl border border-zinc-200/60 dark:border-zinc-700/60 p-6 md:p-8",children:[c.jsx("h1",{className:"text-3xl md:text-4xl font-semibold tracking-tight text-slate-900 dark:text-slate-100 mb-4",children:"Welcome to Kasana"}),c.jsx("p",{className:"text-slate-600 dark:text-slate-400 mb-6",children:"Sign in securely with your Apple ID to access your personalized translation experience."}),c.jsx("div",{className:"mx-auto w-full max-w-xs flex flex-col gap-4",children:c.jsx(BU,{})})]})})})}class Zj{static initializeAppleAuth(){console.log("ð Initializing Apple Auth Service")}static async handleAppleSignIn(){console.log("ð Initiating Apple Sign In...");try{const t=await fetch("/api/auth/apple/init",{method:"POST",headers:{"Content-Type":"application/json"}});if(!t.ok)throw new Error("Failed to initialize Apple Sign In");const{authUrl:a}=await t.json();window.location.href=a}catch(t){throw console.error("â Failed to initialize Apple Sign In:",t),t}}static async handleAuthCallback(){var t;try{const a=new URLSearchParams(window.location.search),s=a.get("code"),o=a.get("state"),u=a.get("id_token");if(!s||!o)throw console.error("ð« Missing required auth parameters"),new Error("Invalid authentication response");const d=document.referrer;this.ALLOWED_ORIGINS.includes(d)||console.warn("â ï¸ Request from unauthorized origin:",d),window.opener?(window.opener.postMessage({type:"APP
1806LE_AUTH_SUCCESS",payload:{code:s,state:o,id_token:u}},"*"),console.log("â Auth data sent to app"),setTimeout(()=>window.close(),1e3)):console.log("â¹ï¸ No opener window found, handling direct navigation")}catch(a){console.error("â Auth callback error:",a),(t=window.opener)==null||t.postMessage({type:"APPLE_AUTH_ERROR",error:a instanceof Error?a.message:"Unknown error"},"*")}}}mx(Zj,"ALLOWED_ORIGINS",["https://app.kasana.ai"]);const VU=()=>{const[e,t]=x.useState("processing"),[a,s]=x.useState(null),o=Jn();return x.useEffect(()=>{(async()=>{try{await Zj.handleAuthCallback(),t("success"),window.opener||setTimeout(()=>o("/"),2e3)}catch(d){t("error"),s(d instanceof Error?d.message:"Authentication failed")}})()},[o]),c.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},children:c.jsxs("div",{style:{textAlign:"center",padding:"20px"},children:[e==="processing"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{children:"Processing Authentication..."}),c.jsx("p",{children:"Please wait while we complete your sign in."})]}),e==="success"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{children:"â Authentication Successful"}),c.jsx("p",{children:"You can close this window now."})]}),e==="error"&&c.jsxs(c.Fragment,{children:[c.jsx("h2",{children:"â Authentication Error"}),c.jsx("p",{style:{color:"#dc2626"},children:a})]})]})})};function Qj(){return c.jsx("div",{className:"fixed inset-0 pointer-events-none",style:{background:"radial-gradient(circle at center, #1E40AF, #000000)"},children:c.jsx("div",{className:"absolute inset-0",style:{backgroundImage:` 1807 linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px), 1808 linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px) 1809 `,backgroundSize:"20px 20px"}})})}const cr=x.forwardRef(({className:e,type:t,...a},s)=>c.jsx("input",{type:t,className:De("flex h-9 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm text-white shadow-sm shadow-black/5 transition-shadow placeholder:text-gray-400 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/20 disabled:cursor-not-allowed disabled:opacity-50",t==="search"&&"[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-webkit-search-results-button]:appearance-none [&::-webkit-search-results-decoration]:appearance-none",t==="file"&&"p-0 pr-3 italic text-muted-foreground/70 file:me-3 file:h-full file:border-0 file:border-r file:border-solid file:border-input file:bg-transparent file:px-3 file:text-sm file:font-medium file:not-italic file:text-foreground",e),ref:s,...a}));cr.displayName="Input";function HU(){const[e,t]=x.useState(""),[a,s]=x.useState("idle"),[o,u]=x.useState(null),d=g=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(g),h=async g=>{if(g.preventDefault(),u(null),!d(e)){s("error"),u("Please enter a valid email address"),Jt.error("Please enter a valid email address");return}s("loading");try{console.log("ð¤ Starting form submission...");const v=ku("/api/waitlist");console.log("ð Using API URL:",v);const y={email:e.trim()};console.log("ð¤ Payload:",JSON.stringify(y,null,2));const b=await fetch(v,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(y)});console.log("ð¤ Response status:",b.status),console.log("ð¤ Response status text:",b.statusText);const S=await b.text();console.log("ð¤ Raw response:",S);let j;try{j=JSON.parse(S)}catch(E){if(console.error("â Failed to parse response as JSON:",E),console.error("â Raw response was:",S.substring(0,200)+"..."),b.ok){console.log("â Non-JSON response but status was OK"),s("success"),t(""),Jt.success("Thanks for joining our waitlist! ð");return}else throw S.includes("<html>")||S.includes("<h")?new Error("Server returned HTML instead of JSON. This usually means the API endpoint doesn't exist or is misconfigured."):new Error("Server returned an invalid response format")}if(!b.ok)throw console.error("â Server error:",j),new Error(j.error||`Failed to submit email: ${b.statusText}`);console.log("â Response data:",j),console.log("â Email submitted successfully"),s("success"),t(""),Jt.success("Thanks for joining our waitlist! ð")}catch(v){console.error("â Error submitting email:",v),s("error"),u(v instanceof Error?v.message:"Something went wrong. Please try again."),Jt.error(v instanceof Error?v.message:"Something went wrong. Please try again.")}},m=()=>{s("idle"),t(""),u(null)};return c.jsxs("div",{className:"relative min-h-screen",children:[c.jsx(Qj,{}),c.jsx("div",{className:"relative z-10 flex items-center justify-center min-h-screen",children:c.jsxs("div",{className:"w-full max-w-xl mx-auto p-8 space-y-12",children:[c.jsxs("div",{className:"space-y-6 text-center",children:[c.jsx("h2",{className:"text-4xl sm:text-5xl font-extrabold text-center bg-clip-text text-transparent bg-gradient-to-br from-gray-200 to-gray-600",children:"Join Our Product Launch Waitlist"}),c.jsx("p",{className:"text-xl text-gray-400 max-w-lg mx-auto",children:"Be part of something extraordinary. Join other interpreters already gaining early access to Kasanaâthe speech intelligence AI assistant."})]}),c.jsxs("form",{onSubmit:h,className:"flex flex-col sm:flex-row gap-2 max-w-md mx-auto",children:[c.jsxs("div",{className:"flex-1 relative",children:[c.jsx(cr,{type:"email",placeholder:"Enter your email",className:`h-12 bg-gray-950/50 border-gray-800 ${a==="error"?"border-red-500":a==="success"?"border-green-500":""}
1809`,value:e,onChange:g=>{t(g.target.value),a==="error"&&s("idle")},disabled:a==="loading"||a==="success",required:!0,"aria-label":"Email address","aria-invalid":a==="error","aria-describedby":a==="error"?"email-error":void 0}),a==="error"&&o&&c.jsx("p",{id:"email-error",className:"absolute -bottom-6 left-0 text-sm text-red-500",children:o})]}),c.jsx(Ie,{type:"submit",className:`h-12 px-6 ${a==="success"?"bg-green-600 text-white hover:bg-green-700":"bg-gradient-to-br from-blue-700 via-purple-700 to-purple-800 text-white hover:from-blue-400 hover:via-purple-400 hover:to-purple-500"} disabled:opacity-50 disabled:cursor-not-allowed transition-colors`,variant:"ghost",disabled:a==="loading"||a==="success",children:a==="loading"?c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ke.spinner,{className:"w-4 h-4 animate-spin"}),c.jsx("span",{children:"Submitting..."})]}):a==="success"?c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ke.check,{className:"w-4 h-4"}),c.jsx("span",{children:"Subscribed!"})]}):"Join Waitlist"})]}),a==="success"&&c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-green-500 mb-4",children:"Thanks for joining our waitlist! ð"}),c.jsx("button",{onClick:m,className:"text-sm text-gray-400 hover:text-gray-300 underline",children:"Add another email"})]}),c.jsx("div",{className:"flex flex-col items-center gap-8",children:c.jsxs("div",{className:"flex gap-6 justify-center",children:[c.jsx(Ie,{asChild:!0,variant:"ghost",size:"icon",className:"text-gray-400 hover:text-gray-300 hover:bg-blue-500/20 transition-colors","aria-label":"Follow us on Instagram",children:c.jsx("a",{href:"https://instagram.com/serxioai",target:"_blank",rel:"noopener noreferrer",children:c.jsx(Ke.instagram,{className:"w-5 h-5 fill-current"})})}),c.jsx(Ie,{asChild:!0,variant:"ghost",size:"icon",className:"text-gray-400 hover:text-gray-300 hover:bg-blue-500/20 transition-colors","aria-label":"Follow us on GitHub",children:c.jsx("a",{href:"https://github.com/serxioai",target:"_blank",rel:"noopener noreferrer",children:c.jsx(Ke.gitHub,{className:"w-5 h-5 fill-current"})})})]})})]})})]})}const FU={not_allowlisted:"No beta account exists for this email yet. Ask the Kasana team to set one up for you.",account_disabled:"This beta account has been disabled. Reach out to the Kasana team if that's unexpected.",email_blocked:"This account can no longer be used.",too_many_attempts:"Too many sign-in attempts. Please wait a few minutes and try again.",auth_unavailable:"We couldn't verify this account right now. Please try again shortly.",blocklist_unavailable:"We couldn't verify this account right now. Please try again shortly.",membership_unavailable:"We couldn't verify this account right now. Please try again shortly."};function $U(){const[e,t]=x.useState(""),[a,s]=x.useState(""),[o,u]=x.useState("idle"),[d,h]=x.useState(null),m=Jn(),g=Dn(),v=async y=>{var b;y.preventDefault(),h(null),u("loading");try{const S=await fetch(ku("/api/auth/password/login"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e.trim(),password:a})}),j=await S.json();if(!S.ok||!j.success){const C=FU[j.error]||j.error_description||"Invalid email or password";u("error"),h(C),Jt.error(C);return}const E=Wc();if(!E)throw new Error("Sign-in is not available right now.");await HP(E,j.token),Jt.success("Signed in!");const A=((b=g.state)==null?void 0:b.from)||"/";m(A,{replace:!0})}catch(S){const j=S instanceof Error?S.message:"Something went wrong. Please try again.";u("error"),h(j),Jt.error(j)}};return c.jsxs("div",{className:"relative min-h-screen",children:[c.jsx(Qj,{}),c.jsx("div",{className:"relative z-10 flex items-center justify-center min-h-screen",children:c.jsxs("div",{className:"w-full max-w-md mx-auto p-8 space-y-8",children:[c.jsxs("div",{className:"space-y-3 text-center",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl font-extrabold text-center bg-clip-text text-transparent bg-gradient-to-br from-gray-200 to-gray-600",children:"Beta Access"}),c.jsx("p",{className:"text-lg text-gray-400 max-w-sm mx-auto",children:"Sign in with your invited beta account to download Kasana for macOS."})]}),c.jsxs("form",{onSubmit:v,className:"flex flex-col gap-4",children:[c.jsx(cr,{type:"email",placeholder:"Email address",className:`h-12 bg-gray-950/50 border-gray-800 ${o==="error"?"border-red-500":""}
1809`,value:e,onChange:y=>{t(y.target.value),o==="error"&&u("idle")},disabled:o==="loading",required:!0,autoComplete:"email","aria-label":"Email address","aria-invalid":o==="error"}),c.jsx(cr,{type:"password",placeholder:"Password",className:`h-12 bg-gray-950/50 border-gray-800 ${o==="error"?"border-red-500":""}`,value:a,onChange:y=>{s(y.target.value),o==="error"&&u("idle")},disabled:o==="loading",required:!0,autoComplete:"current-password","aria-label":"Password","aria-invalid":o==="error"}),o==="error"&&d&&c.jsx("p",{className:"text-sm text-red-500",role:"alert",children:d}),c.jsx(Ie,{type:"submit",className:"h-12 bg-gradient-to-br from-blue-700 via-purple-700 to-purple-800 text-white hover:from-blue-400 hover:via-purple-400 hover:to-purple-500 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",variant:"ghost",disabled:o==="loading",children:o==="loading"?c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Ke.spinner,{className:"w-4 h-4 animate-spin"}),c.jsx("span",{children:"Signing in..."})]}):"Sign In"})]})]})})]})}function GU(){return c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 flex items-center justify-center p-8",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Footer Component Demo"}),c.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"This page demonstrates the integrated footer component with all its features."}),c.jsxs("div",{className:"bg-card p-6 rounded-lg border",children:[c.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Features Included:"}),c.jsxs("ul",{className:"text-left space-y-2 text-sm",children:[c.jsx("li",{children:"â
Newsletter subscription form"}),c.jsx("li",{children:"â
Quick links navigation"}),c.jsx("li",{children:"â
Contact information"}),c.jsx("li",{children:"â
Social media links with tooltips"}),c.jsx("li",{children:"â
Dark mode toggle"}),c.jsx("li",{children:"â
Responsive design"}),c.jsx("li",{children:"â
shadcn/ui components"})]})]})]})}),c.jsx(Rt,{})]})}const qU=e=>({hasToken:!!e,length:e?e.length:0}),fw=e=>`kasana://auth-callback?token=${encodeURIComponent(e)}`,hw=e=>e==="kasana.ai"||e==="www.kasana.ai"||e==="kasana.local",zh=()=>{const e=x.useMemo(()=>new URLSearchParams(window.location.search),[]),t=e.get("token"),a=e.get("error"),s=e.get("state"),[o,u]=x.useState(3),d=x.useRef(!1);if(x.useEffect(()=>{console.log("ð± LoginSuccess env",{host:window.location.host,isProdHost:hw(window.location.hostname),url:window.location.href.replace(/token=([^&]+)/,"token=REDACTED")}),console.log("ð Token info",qU(t)),s&&console.log("ð§¾ State param present"),a&&console.log("â Error param present");try{const m="G-Y32E1KE7L7",v=window.gtag;m&&v&&v("event","auth_success_page_load",{event_category:"auth",event_label:hw(window.location.hostname)?"prod_host":"non_prod_host",has_token:!!t,has_error:!!a})}catch{}},[t,a,s]),x.useEffect(()=>{if(a||!t)return;const m=fw(t),g=()=>{if(!d.current){d.current=!0,console.log("ð Redirecting to app deeplink");try{window.location.href=m,setTimeout(()=>{const y=document.createElement("a");y.href=m,document.body.appendChild(y),y.click(),document.body.removeChild(y)},300),window.opener&&(window.opener.postMessage({type:"AUTH_SUCCESS",token:t,timestamp:Date.now()},"*"),setTimeout(()=>window.close(),1e3)),setTimeout(()=>{const y=document.createElement("iframe");y.style.display="none",y.src=m,document.body.appendChild(y),setTimeout(()=>document.body.removeChild(y),1e3)},500)}catch(y){console.log("â ï¸ Redirect error",{message:y.message})}}},v=setInterval(()=>{u(y=>{const b=y-1;return b<=0&&(clearInterval(v),g()),b})},1e3);return()=>clearInterval(v)},[t,a]),a)return c.jsx("div",{style:{display:"flex",minHeight:"60vh",alignItems:"center",justifyContent:"center",padding:"2rem"},children:c.jsxs("div",{style:{maxWidth:640},children:[c.jsx("h1",{style:{color:"#ff3b30",marginBottom:"1rem"},children:"â Authentication Error"}),c.jsx("p",{style:{marginBottom:"0.5rem"},children:a}),c.jsx("p",{style:{color:"#666"}
1809,children:"Please try again or contact support if the issue persists."})]})});if(!t)return c.jsx("div",{style:{display:"flex",minHeight:"60vh",alignItems:"center",justifyContent:"center",padding:"2rem"},children:c.jsxs("div",{style:{maxWidth:640},children:[c.jsx("h1",{style:{color:"#ff3b30",marginBottom:"1rem"},children:"â Error"}),c.jsx("p",{style:{marginBottom:"0.5rem"},children:"No authentication token found."}),c.jsx("p",{style:{color:"#666"},children:"This could be due to a misconfiguration or an interrupted authentication flow."})]})});const h=fw(t);return c.jsx("div",{style:{display:"flex",minHeight:"60vh",alignItems:"center",justifyContent:"center",padding:"2rem"},children:c.jsxs("div",{style:{maxWidth:640,textAlign:"center"},children:[c.jsx("h1",{style:{color:"#34c759",marginBottom:"1rem"},children:"â
Authentication Successful"}),c.jsx("p",{children:"You have successfully signed in with Apple."}),c.jsxs("p",{style:{color:"#666",fontSize:"0.9rem",marginTop:"1rem"},children:["Returning to Kasana in ",c.jsx("span",{style:{fontWeight:700,color:"#007aff"},children:o})," seconds..."]}),c.jsx("div",{style:{marginTop:"16px"},children:c.jsx("a",{href:h,style:{display:"inline-block",padding:"8px 16px",backgroundColor:"#007aff",color:"white",borderRadius:4,textDecoration:"none"},onClick:()=>console.log("ð Manual return clicked"),children:"Return to App Now"})})]})})},KU=[{id:"mac-alpha",version:"0.1.0-alpha",label:"Internal Alpha (Mac)",platform:"macOS",phase:"Alpha",start:"2025-08-11",end:"2025-08-24"},{id:"mac-beta",version:"0.2.0-beta",label:"Closed Beta (Mac)",platform:"macOS",phase:"Beta",start:"2025-08-25",end:"2025-09-21"},{id:"mac-rc",version:"0.3.0-rc",label:"Release Candidate (Mac)",platform:"macOS",phase:"RC",start:"2025-09-22",end:"2025-10-05"},{id:"mac-ga",version:"1.0.0",label:"GA (Mac App Store)",platform:"macOS",phase:"GA",milestoneDate:"2025-10-06"},{id:"win-beta",version:"1.1.0-beta-win",label:"Closed Beta (Windows)",platform:"Windows",phase:"Beta",start:"2025-10-06",end:"2025-11-02"},{id:"win-rc",version:"1.1.0-rc",label:"Release Candidate (Windows)",platform:"Windows",phase:"RC",start:"2025-11-03",end:"2025-11-16"},{id:"win-ga",version:"1.1.0",label:"GA (Windows Store)",platform:"Windows",phase:"GA",milestoneDate:"2025-11-17"},{id:"ios-beta",version:"1.2.0-beta-ios",label:"TestFlight (iPhone 15 Pro Max ⢠iPhone 15)",platform:"iOS",phase:"Beta",start:"2025-11-17",end:"2025-12-28"},{id:"android-beta",version:"1.2.0-beta-android",label:"Closed Beta (Galaxy S24 Ultra ⢠Pixel 8 Pro)",platform:"Android",phase:"Beta",start:"2025-11-17",end:"2025-12-28"},{id:"mobile-ga",version:"1.2.0",label:"GA (App Store + Google Play)",platform:"iOS",phase:"GA",milestoneDate:"2026-01-05"}],Vh={macOS:"bg-indigo-500",Windows:"bg-blue-500",iOS:"bg-gray-900",Android:"bg-emerald-500"},YU={Alpha:"text-orange-700 bg-orange-100 ring-orange-200",Beta:"text-indigo-700 bg-indigo-100 ring-indigo-200",RC:"text-amber-700 bg-amber-100 ring-amber-200",GA:"text-emerald-700 bg-emerald-100 ring-emerald-200"};function mw(e){const t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())),s=(t.getUTCDay()+6)%7;return t.setUTCDate(t.getUTCDate()-s),t}function pw(e,t){const a=new Date(e);return a.setUTCDate(a.getUTCDate()+t),a}function WU(e){return e.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function gw(e,t,a){return Math.max(t,Math.min(a,e))}const XU={macOS:!0,Windows:!0,iOS:!0,Android:!0},ZU=({items:e=KU})=>{const[t,a]=x.useState(XU),s=x.useMemo(()=>e.filter(y=>t[y.platform]),[e,t]),o=x.useMemo(()=>{const y=[];for(const b of s)b.start&&y.push(Date.parse(b.start)),b.milestoneDate&&y.push(Date.parse(b.milestoneDate));return mw(new Date(Math.min(...y)))},[s]),u=x.useMemo(()=>{const y=[];for(const S of s)S.end&&y.push(Date.parse(S.end)),S.milestoneDate&&y.push(Date.parse(S.milestoneDate));const b=new Date(Math.max(...y));return pw(mw(b),14)},[s]),d=Math.max(1,Math.ceil((+u-+o)/(1e3*60*60*24))),h=[];for(let y=new Date(o);+y<=+u;y=pw(y,7))h.push(new Date(y));function m(y){const b=new Date(y),S=Math.ceil((+b-+o)/(1e3*60*60*24));return gw(S/d,0,1)*100}function g(y,b){if(!y||!b)return 0;const S=new Date(y),j=new Date(b),E=Math.max(0,(+j-+S)/(1e3*60*60*24));return gw(E/d*100,0,100)}const v=x.useMemo(()=>{const y={};for(const b of s)y[b.platform]||(y[b.platform]=[]),y[b.platform].push(b);
1809return Object.values(y).forEach(b=>b.sort((S,j)=>Date.parse(S.start||S.milestoneDate||"2100-01-01")-Date.parse(j.start||j.milestoneDate||"2100-01-01"))),y},[s]);return c.jsxs("div",{className:"w-full max-w-6xl mx-auto p-4 md:p-6",children:[c.jsxs("header",{className:"flex flex-col md:flex-row md:items-end md:justify-between gap-4 mb-6",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl md:text-3xl font-semibold tracking-tight",children:"Kasana Product Roadmap"}),c.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Conventional nomenclature ⢠Alpha â Beta â RC â GA"})]}),c.jsx("div",{className:"flex flex-wrap items-center gap-3",children:["macOS","Windows","iOS","Android"].map(y=>c.jsxs("label",{className:"inline-flex items-center gap-2 text-sm cursor-pointer select-none",children:[c.jsx("input",{type:"checkbox",className:"accent-indigo-600",checked:t[y],onChange:()=>a(b=>({...b,[y]:!b[y]}))}),c.jsxs("span",{className:"inline-flex items-center gap-2",children:[c.jsx("span",{className:`inline-block w-2.5 h-2.5 rounded-full ${Vh[y]}`}),y]})]},y))})]}),c.jsxs("div",{className:"relative border rounded-2xl p-4 overflow-hidden shadow-sm bg-white",children:[c.jsx("div",{className:"absolute inset-0 pointer-events-none","aria-hidden":!0,children:h.map((y,b)=>c.jsx("div",{className:"absolute top-0 bottom-0 border-l border-dashed border-gray-200",style:{left:`${b/(h.length-1)*100}%`}},+y))}),c.jsx("div",{className:"relative mb-4",children:c.jsx("div",{className:"flex justify-between text-[11px] text-gray-500",children:h.map(y=>c.jsx("div",{className:"-translate-x-1/2 first:translate-x-0 last:translate-x-0",children:WU(y)},+y))})}),c.jsx("div",{className:"space-y-6",children:Object.entries(v).map(([y,b])=>c.jsxs("div",{className:"relative",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("div",{className:`w-2.5 h-2.5 rounded-full ${Vh[y]}`}),c.jsx("h3",{className:"font-medium",children:y})]}),c.jsxs("div",{className:"relative h-[90px]",children:[b.map((S,j)=>S.phase!=="GA"?c.jsx(en.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{delay:j*.03},className:`absolute top-3 h-8 rounded-xl shadow-sm ring-1 ring-black/5 ${Vh[S.platform]}`,style:{left:`${m(S.start)}%`,width:`${g(S.start,S.end)}%`},title:`${S.version} ⢠${S.label} 1810${S.start} â ${S.end}`,children:c.jsx("div",{className:"px-3 h-full flex items-center text-white text-xs font-medium",children:c.jsxs("span",{className:"truncate",children:[S.version," â ",S.label]})})},S.id):c.jsx(en.div,{initial:{scale:0},animate:{scale:1},transition:{delay:j*.03},className:"absolute top-[60px] -mt-2 w-0 h-0",style:{left:`${m(S.milestoneDate)}%`},title:`${S.version} ⢠${S.label} on ${S.milestoneDate}`,children:c.jsx("div",{className:"w-3 h-3 rotate-45 bg-emerald-500 shadow ring-2 ring-white"})},S.id)),c.jsx("div",{className:"absolute left-0 right-0 bottom-0 flex flex-wrap gap-2 mt-2",children:b.map(S=>c.jsx("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[10px] ring-1 ${YU[S.phase]}`,children:S.version},`${S.id}-badge`))})]})]},y))})]}),c.jsxs("div",{className:"mt-4 text-sm text-gray-600",children:[c.jsxs("p",{className:"mb-1",children:[c.jsx("span",{className:"inline-block w-3 h-3 bg-emerald-500 rotate-45 mr-2 align-middle"})," Milestones mark GA dates."]}),c.jsx("p",{children:"Dates shown use **approximate** durations: Mac (AugâOct 2025), Windows (OctâNov 2025), Mobile Betas (NovâDec 2025), Mobile GA (Jan 2026). Update the data above as your plan evolves."})]})]})},QU="modulepreload",JU=function(e){return"/"+e},vw={},eB=function(t,a,s){let o=Promise.resolve();if(a&&a.length>0){let d=function(g){return Promise.all(g.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));o=d(a.map(g=>{if(g=JU(g),g in vw)return;vw[g]=!0;const v=g.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${y}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":QU,v||(b.as="script"),b.crossOrigin="",b.href=g,m&&b.setAttribute("nonce",m),document.head.appendChild(b),v)return new Promise((S,j)=>{b.addEventListener("load",S),b.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${g}`)))})}))}function u(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return o.then(d=>{for(const h of d||[])h.status==="rejected"&&u(h.reason);return t().catch(u)})},$m=x.forwardRef(({className:e,...t},a)=>c.jsx("div",{ref:a,className:De("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
1810$m.displayName="Card";const Jj=x.forwardRef(({className:e,...t},a)=>c.jsx("div",{ref:a,className:De("flex flex-col space-y-1.5 p-6",e),...t}));Jj.displayName="CardHeader";const eN=x.forwardRef(({className:e,...t},a)=>c.jsx("h3",{ref:a,className:De("text-2xl font-semibold leading-none tracking-tight",e),...t}));eN.displayName="CardTitle";const tB=x.forwardRef(({className:e,...t},a)=>c.jsx("p",{ref:a,className:De("text-sm text-muted-foreground",e),...t}));tB.displayName="CardDescription";const Gm=x.forwardRef(({className:e,...t},a)=>c.jsx("div",{ref:a,className:De("p-6 pt-0",e),...t}));Gm.displayName="CardContent";const nB=x.forwardRef(({className:e,...t},a)=>c.jsx("div",{ref:a,className:De("flex items-center p-6 pt-0",e),...t}));nB.displayName="CardFooter";const aB=pr("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),qm=x.forwardRef(({className:e,variant:t,...a},s)=>c.jsx("div",{ref:s,role:"alert",className:De(aB({variant:t}),e),...a}));qm.displayName="Alert";const iB=x.forwardRef(({className:e,...t},a)=>c.jsx("h5",{ref:a,className:De("mb-1 font-medium leading-none tracking-tight",e),...t}));iB.displayName="AlertTitle";const Km=x.forwardRef(({className:e,...t},a)=>c.jsx("div",{ref:a,className:De("text-sm [&_p]:leading-relaxed",e),...t}));Km.displayName="AlertDescription";function sB(){const e=$n.getConfig(),t=$n.isDevelopment();return console.log("ð§ getSignalRConfig - Environment Detection:"),console.log("- import.meta.env.MODE:","production"),console.log("- import.meta.env.DEV:",!1),console.log("- isDevelopment():",t),console.log("- signalRHubUrl:",e.signalRHubUrl),{hubUrl:e.signalRHubUrl,hubName:"kasana",negotiateEndpoint:`${e.signalRHubUrl}/negotiate`,joinEndpoint:`${e.signalRHubUrl}/join`,broadcastEndpoint:`${e.signalRHubUrl}/broadcast`,ingestEndpoint:`${e.signalRHubUrl}/ingest`,environment:t?"development":"production"}}const rB=({sessionId:e})=>{const[t,a]=x.useState(""),[s,o]=x.useState(""),[u,d]=x.useState(""),[h,m]=x.useState(""),[g,v]=x.useState(!1),[y,b]=x.useState(!1),[S,j]=x.useState(null),[E,A]=x.useState(null),[C,k]=x.useState([]),[R,P]=x.use
1810State(null),[M,z]=x.useState("disconnected"),G=x.useRef(null),H=x.useRef(null),$=x.useRef(!1),J=sB(),de=$n.isDevelopment(),Ee=x.useMemo(()=>$n.getConfig(),[]),he=Ee.requireSessionLogon,pe=Ee.enableDevAutofill,we=de&&y&&pe&&!he,Z=!g&&he;x.useEffect(()=>{console.log("ð§ LiveSessionViewer configuration flags:",{requireSessionLogon:he,enableDevAutofill:pe,isDev:de})},[he,pe,de]),x.useEffect(()=>{console.log("ð LiveSessionViewer - Environment Check"),console.log("import.meta.env.MODE:","production"),console.log("import.meta.env.DEV:",!1),console.log("import.meta.env.PROD:",!0),console.log("VITE_SIGNALR_HUB_URL:","https://kasanabroadcast-g0hecbe3fzhjfcgq.canadacentral-01.azurewebsites.net/api"),console.log("VITE_API_BASE_URL:","https://kasana.ai"),console.log(""),console.log("ð¡ SignalR Configuration:"),console.log("Environment:",J.environment),console.log("Hub URL:",J.hubUrl),console.log("Negotiate Endpoint:",J.negotiateEndpoint),console.log("Join Endpoint:",J.joinEndpoint),console.log(""),J.hubUrl.includes("localhost")||J.hubUrl.includes("127.0.0.1")?console.log("â
Using LOCAL development endpoints"):(console.warn("â ï¸ WARNING: Using PRODUCTION endpoints!"),console.warn("Expected localhost, got:",J.hubUrl))},[]);const ee=async U=>{const K=(U==null?void 0:U.passcode)??t,W=(U==null?void 0:U.firstName)??s,te=(U==null?void 0:U.lastName)??u,se=(U==null?void 0:U.email)??h;if(!K.trim()){j("Please enter a passcode");return}if(!W.trim()||!te.trim()||!se.trim()){j("Please enter your first name, last name, and email");return}b(!0),j(null),z("connecting");try{const{HubConnectionBuilder:ue,LogLevel:ve}=await eB(async()=>{const{HubConnectionBuilder:ye,LogLevel:Ye}=await import("./index-E4QjlA3a.js");return{HubConnectionBuilder:ye,LogLevel:Ye}},[]);console.log("ð Negotiating SignalR connection...");const ke=`${J.negotiateEndpoint}?userId=${encodeURIComponent("viewer:"+e)}`,Se=await fetch(ke,{method:"POST"});if(!Se.ok)throw new Error(`Negotiation failed: ${Se.status} ${Se.statusText}`);const Ue=await Se.json();console.log("â
Negotiation successful");const _e=new ue().withUrl(Ue.url,{accessTokenFactory:()=>Ue.accessToken}).withAutomaticReconnect([0,2e3,1e4,3e4]).configureLogging(ve.Information).build();console.log("ð§ Setting up SignalR event handlers..."),_e.on("translation.partial",ye=>{console.log("ð Partial translation received:",ye),F(ye,!1)}),_e.on("translation.final",ye=>{console.log("ð§¾ Final translation received:",ye),F(ye,!0)}),_e.on("status",ye=>{console.log("ð Status update received:",ye),ye.viewerCount!==void 0&&P(Ye=>Ye?{...Ye,viewerCount:ye.viewerCount}:null)}),_e.onclose(()=>console.log("ð SignalR connection closed")),console.log("â
Event handlers registered: translation.partial, translation.final (ignored), status, session.start, session.end, title.update"),_e.on("session.start",ye=>{console.log("ð¬ Session started:",ye),P({sessionId:ye.sessionId,sourceLanguage:ye.sourceLanguage,targetLanguage:ye.targetLanguage,viewerCount:ye.viewerCount||0,isLive:!0,title:ye.title})}),_e.on("session.end",ye=>{console.log("â¹ï¸ Session ended:",ye),P(Ye=>Ye?{...Ye,isLive:!1}:null),j("Session has ended")}),_e.on("title.update",ye=>
1810{console.log("ð·ï¸ Title update received:",ye),P(Ye=>{const an=Ye??{sessionId:ye.sessionId||e,sourceLanguage:ye.sourceLanguage||"",targetLanguage:ye.targetLanguage||"",viewerCount:0,isLive:!0,title:"Untitled Session"};return{...an,sessionId:ye.sessionId||an.sessionId,title:ye.title||an.title}})}),_e.onclose(ye=>{console.log("ð Connection closed:",ye),v(!1),z("disconnected"),ye&&(j(`Connection lost: ${ye.message}`),H.current=setTimeout(()=>{G.current&&(z("reconnecting"),G.current.start().catch(console.error))},5e3))}),_e.onreconnecting(ye=>{console.log("ð Reconnecting...",ye),z("reconnecting"),j("Reconnecting...")}),_e.onreconnected(ye=>{console.log("â
Reconnected:",ye),z("connected"),j(null)}),await _e.start(),G.current=_e,z("connecting"),j(null);const dt="viewer:"+e,nn=`session:${e}`;console.log("ð Joining session group..."),console.log("ð Join details:",{endpoint:J.joinEndpoint,sessionId:e,userId:dt,expectedGroupName:nn});const Ft=await fetch(`${J.joinEndpoint}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e,userId:dt,passcode:K.trim(),subscriber:{firstName:W.trim(),lastName:te.trim(),email:se.trim()}})});if(!Ft.ok){let ye=`Failed to join group: ${Ft.status} ${Ft.statusText}`;try{const Ye=await Ft.json();console.error("â Join group failed:",Ye),(Ye==null?void 0:Ye.error)==="invalid_passcode"&&(ye="Invalid passcode. Please try again.")}catch{const Ye=await Ft.text();console.error("â Join group failed:",Ye)}throw G.current&&(console.log("ð Stopping SignalR connection due to join failure"),await _e.stop(),G.current=null),new Error(ye)}const Et=await Ft.json();console.log("â
Joined session group successfully:",Et),console.log("â
Connected to live session:",e),console.log("ð¢ Now listening for events on group:",nn),v(!0),z("connected"),j(null),Et.sessionInfo?(console.log("ð Session info received from join:",Et.sessionInfo),P({sessionId:Et.sessionInfo.sessionId,sourceLanguage:Et.sessionInfo.sourceLanguage,targetLanguage:Et.sessionInfo.targetLanguage,viewerCount:0,isLive:!0,title:Et.sessionInfo.title})):console.warn("â ï¸ No session info returned from join - title will be unavailable until broadcast")}catch(ue){console.error("â Failed to connect to session:",ue),j(ue instanceof Error?ue.message:"Failed to connect to session"),z("disconnected"),v(!1)}finally{b(!1)}};x.useEffect(()=>{!he&&pe&&de&&!g&&!y&&!$.current&&(console.log("ð DEV MODE: Auto-connecting to session with autofill..."),$.current=!0,a("12345"),o("Dev"),d("User"),m("[email protected]"),ee({passcode:"12345",firstName:"Dev",lastName:"User",email:"[email protected]"}))},[he,pe,de,g,y,e]);const F=(U,K)=>{console.log("ð handleTranslationMessage called:",{isFinal:K,data:U,hasSourceText:!!U.sourceText,hasTargetText:!!U.targetText});const W=((R==null?void 0:R.sourceLanguage)||"").trim().toLowerCase(),te=((R==null?void 0:R.targetLanguage)||"").trim().toLowerCase(),se=(U.sourceLanguage||(R==null?void 0:R.sourceLanguage)||"").toString(),ue=(U.targetLanguage||(R==null?void 0:R.targetLanguage)||"").toString(),ve=se.trim().toLowerCase(),ke=ue.trim().toLowerCase(),Se=!!W&&!!te&&ve===te&&ke===W,Ue={id:U.id||Date.now().toString(),sourceText:U.sourceText||"",targetText:U.targetText||"",confidence:U.confidence||0,isPartial:!K,isFinal:K,timestamp:new Date,sourceLanguage:se.trim(),targetLanguage:ue.trim(),isReversed:Se,title:U.title||null};console.log("ð¦ Translation object created:",Ue),U.title&&(!(R!=null&&R.title)||R.title==="Untitled Session")&&(console.log("ð
1810·ï¸ Updating session title from translation message:",U.title),P(_e=>({..._e||{sessionId:e,sourceLanguage:"",targetLanguage:"",viewerCount:0,isLive:!0},title:U.title}))),K?(console.log("ð§¾ Appending final translation to history"),k(_e=>{const dt=_e.filter(nn=>nn.id!==Ue.id);return[Ue,...dt]}),A(_e=>_e&&_e.id===Ue.id?null:_e)):(console.log("â
Setting partial translation bubble"),A(Ue))},ce=async()=>{if(G.current){try{await G.current.stop()}catch(U){console.error("Error disconnecting:",U)}G.current=null}H.current&&(clearTimeout(H.current),H.current=null),v(!1),z("disconnected"),A(null),k([]),P(null),j(null)};x.useEffect(()=>{console.log("ð Translation state updated:",{hasPartial:!!E,historyCount:C.length})},[E,C]),x.useEffect(()=>()=>{ce()},[]);const N=()=>{switch(M){case"connected":return c.jsx(D5,{className:"w-4 h-4 text-green-500"});case"connecting":case"reconnecting":return c.jsx(Co,{className:"w-4 h-4 text-yellow-500 animate-spin"});default:return c.jsx(k5,{className:"w-4 h-4 text-red-500"})}},L=(U,K)=>{const W=K==="partial",te=U.isReversed&&K==="final",se="max-w-[90%] sm:max-w-[70%] rounded-3xl px-5 py-4 shadow-sm border transition-colors",ue=W?`${se} bg-slate-900 border-slate-700 text-white`:te?`${se} bg-blue-600 border-blue-500 text-white`:`${se} bg-blue-500 border-blue-400 text-white`,ve=W||K==="final",ke=ve?"text-sm font-medium text-white/90 leading-relaxed":"text-sm font-medium text-slate-700 leading-relaxed",Se=ve?"text-lg font-semibold text-white leading-snug":"text-lg font-semibold text-slate-900 leading-snug",Ue=ve?"text-[11px] text-white/70":"text-[11px] text-slate-400";return c.jsx("div",{className:ue,children:c.jsxs("div",{className:"space-y-3",children:[c.jsx("p",{className:ke,children:U.sourceText||"..."}),c.jsx("p",{className:Se,children:U.targetText||"..."}),K==="final"&&c.jsxs("div",{className:"flex items-center justify-between pt-2",children:[c.jsx("span",{className:Ue,children:U.timestamp.toLocaleTimeString()}),U.confidence>0&&c.jsxs("span",{className:Ue,children:["Confidence: ",Math.round(U.confidence*100),"%"]})]})]})})};return c.jsx("div",{className:"min-h-screen flex flex-col items-center justify-start pt-10 pb-6 px-4",children:Z?c.jsx("div",{className:"fixed inset-0 bg-black/30 flex items-center justify-center z-50",children:c.jsxs("div",{className:"bg-white rounded-2xl p-8 w-full max-w-md
1810shadow-2xl",children:[c.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-4 text-center pb-4",children:"Kasana"}),c.jsx("div",{className:"h-1 bg-gray-900 mb-6"}),c.jsx("h2",{className:"text-xl font-bold text-gray-900 mb-6 text-center",children:"Join Live Session"}),c.jsxs("div",{className:"space-y-4 mb-4",children:[c.jsx(pt,{type:"text",placeholder:"First Name",value:s,onChange:U=>o(U.target.value),className:"w-full rounded-full border-2 border-gray-300 focus:border-blue-500 focus:ring-2 focus:ring-blue-500 px-4 py-3 text-base",required:!0}),c.jsx(pt,{type:"text",placeholder:"Last Name",value:u,onChange:U=>d(U.target.value),className:"w-full rounded-full border-2 border-gray-300 focus:border-blue-500 focus:ring-2 focus:ring-blue-500 px-4 py-3 text-base",required:!0}),c.jsx(pt,{type:"email",placeholder:"Email",value:h,onChange:U=>m(U.target.value),className:"w-full rounded-full border-2 border-gray-300 focus:border-blue-500 focus:ring-2 focus:ring-blue-500 px-4 py-3 text-base",required:!0})]}),c.jsx(pt,{type:"text",placeholder:"Enter session passcode",value:t,onChange:U=>a(U.target.value),onKeyDown:U=>{U.key==="Enter"&&t.trim()&&s.trim()&&u.trim()&&h.trim()&&!y&&ee()},maxLength:5,className:"w-full mb-6 rounded-full border-2 border-blue-500 focus:border-blue-500 focus:ring-2 focus:ring-blue-500 px-4 py-3 text-lg",autoFocus:!0}),S&&c.jsx(qm,{className:"mb-4 bg-red-50 border-red-200",children:c.jsx(Km,{className:"text-red-800",children:S})}),c.jsxs("div",{className:"flex justify-end gap-3",children:[c.jsx(Zi,{onClick:()=>window.history.back(),variant:"outline",className:"rounded-full px-6 py-2 border-gray-300 text-gray-700 hover:bg-gray-50",disabled:y,children:"Cancel"}),c.jsx(Zi,{onClick:()=>ee(),disabled:y||!t.trim()||!s.trim()||!u.trim()||!h.trim(),className:`rounded-full px-6 py-2 ${y||!t.trim()||!s.trim()||!u.trim()||!h.trim()?"bg-gray-300 text-gray-500 cursor-not-allowed":"bg-blue-500 text-white hover:bg-blue-600"}`,children:y?c.jsxs(c.Fragment,{children:[c.jsx(Co,{className:"w-4 h-4 mr-2 animate-spin"}),"Connecting..."]}):"Join Session"})]})]})}):c.jsxs("div",{className:"w-full max-w-4xl mx-auto space-y-6",children:[we&&c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:c.jsx($m,{className:"bg-transparent backdrop-blur-sm border border-white/10 text-white shadow-none",children:c.jsx(Gm,{className:"py-8",children:c.jsxs("div",{className:"text-center",children:[c.jsx(Co,{className:"w-8 h-8 animate-spin mx-auto mb-4 text-blue-500"}),c.jsx("p",{className:"text-white/70",children:"Connecting to session in dev mode..."})]})})})}),!we&&c.jsxs(c.Fragment,{children:[c.jsxs($m,{className:" backdrop-blur-sm border border-white/10 text-white shadow-none",children:[c.jsx(Jj,{children:c.jsxs(eN,{className:"flex items-center gap-2 text-lg font-semibold text-black sm:text-2xl",children:[N(),(R==null?void 0:R.title)||"Live Translation Session"]})}),c.jsx("div",{style:{marginTop:"0px",marginBottom:"0px",display:"flex"},children:c.jsx("div",{style:{backgroundColor:"black",height:"1px",width:"calc(100% - 1rem)",marginLeft:"1.5rem",borderRadius:"1px"}})}),c.jsx(Gm,{children:S&&c.jsx(qm,{className:"mt-4 bg-red-500/10 border-red-500/30 text-red-200",children:c.jsx(Km,{children:S})})})]}),C.length===0&&!E?c.jsx("div",{className:"flex flex-col gap-2 items-center justify-center py-14 select-none","aria-label":"Waiting for speech",children:c.jsxs("div",{className:"flex space-x-2",children:[c.jsx("span",{className:"inline-block w-3 h-3 bg-black/30 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),c.jsx("span",{className:"inline-block w-3 h-3 bg-black/30 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),c.jsx("span",{className:"inline-block w-3 h-3 bg-black/30 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:`flex ${E!=null&&E.isReversed?"justify-end":"justify-start"}`,children:E&&L(E,"partial")}),c.jsx("div",{className:"space-y-4",children:C.map(U=>c.jsx("div",{className:`flex ${U.isReversed?"justify-end":"justify-start"}`,children:L(U,"final")},U.id))})]})]})]})})},oB=()=>{const{sessionId:e}=tp();return e?c.jsx(rB,{sessionId:e}):c.jsx(Ic,{to:"/",replace:!0})};function lB(){const e=Jn(),{isBlogAdmin:t}=bu(),[a,s]=x.useState([]),[o,u]=x.useState(!0);x.useEffect(()=>{fetch("/api/blog/posts").then(h=>h.json()).then(h=>{h.success&&s(h.posts),u(!1)}).catch(h=>{console.error("Error fetching posts:",h),u(!1)})},[]),Sr(o?null:{title:`Blog · ${oe.titleSuffix}`,description:"Writing on interpretation, real-time speech AI, and the craft of working live â from the team building Kasana.",contentGroup:"Blog",jsonLd:[{"@context":"https://schema.org","@type":"Blog","@id":`${oe.url}/blog#blog`,name:`${oe.name} Blog`,url:wn("/blog"),publisher:{"@id":`${oe.url}/#organization`},blogPost:a.map(h=>
1810({"@type":"BlogPosting",headline:h.title,description:h.excerpt||void 0,datePublished:Fm(h.date),author:{"@type":"Person",name:h.author},url:wn(`/blog/${h.slug}`)}))},dl([{name:"Home",path:"/"},{name:"Blog",path:"/blog"}])]},{analyticsParams:{blog_post_count:a.length}});const d=h=>{e(`/blog/${h}`)};return c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 pt-24 pb-16 px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsxs("div",{className:"text-center mb-12",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h1",{className:"text-4xl md:text-5xl font-bold flex-1",children:"Kasana Blog"}),t&&c.jsxs(Ie,{onClick:()=>e("/blog/edit"),className:"flex items-center gap-2 bg-black text-white hover:bg-gray-800",children:[c.jsx(Zh,{className:"w-4 h-4"}),"New Post"]})]}),c.jsx("p",{className:"text-lg text-muted-foreground",children:"Insights, guides, and updates about real-time translation"})]}),o?c.jsx("div",{className:"text-center py-12",children:c.jsx("p",{className:"text-muted-foreground",children:"Loading posts..."})}):a.length===0?c.jsxs("div",{className:"text-center py-12",children:[c.jsx("p",{className:"text-muted-foreground mb-4",children:"No blog posts yet."}),t&&c.jsxs(Ie,{onClick:()=>e("/blog/edit"),className:"inline-flex items-center gap-2 bg-black text-white hover:bg-gray-800",children:[c.jsx(Zh,{className:"w-4 h-4"}),"Create Your First Post"]})]}):c.jsx("div",{className:"space-y-8",children:a.map(h=>c.jsx("article",{onClick:()=>d(h.slug),className:"group cursor-pointer bg-card border rounded-lg overflow-hidden transition-all hover:shadow-lg hover:border-primary/50",children:c.jsxs("div",{className:"p-6 md:p-8",children:[c.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[c.jsx("span",{className:"inline-block px-3 py-1 text-xs font-semibold rounded-full bg-primary/10 text-primary",children:h.category}),t&&h.status==="draft"&&c.jsx("span",{className:"inline-block px-3 py-1 text-xs font-semibold rounded-full bg-neutral-200 text-neutral-700 dark:bg-neutral-700 dark:text-neutral-200",children:"Draft"})]}),c.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-3 group-hover:text-primary transition-colors",children:h.title}),c.jsx("p",{className:"text-muted-foreground mb-6 leading-relaxed",children:h.excerpt}),c.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(e2,{className:"w-4 h-4"}),c.jsx("span",{children:ap(h.date)})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ip,{className:"w-4 h-4"}),c.jsx("span",{children:h.readTime})]}),c.jsx("div",{className:"ml-auto",children:c.jsxs("span",{className:"font-medium",children:["By ",h.author]})})]})]})},h.id))})]})}),c.jsx(Rt,{})]})}function cB(e){return Array.isArray(e.blocks)?e.blocks:Array.isArray(e.paragraphs)?e.paragraphs.filter(t=>typeof t=="string").map(t=>({type:"paragraph",text:t})):[]}function tN(e){const t=(e==null?void 0:e.content)||{},a=Array.isArray(t.sections)?t.sections:[];return{...e,content:{introduction:t.introduction||"",conclusion:t.conclusion||"",heroImage:t.heroImage||void 0,sections:a.map(s=>({heading:(s==null?void 0:s.heading)||"",blocks:cB(s||{})}))}}}function uB(e){const t=e.trim();if(/^[a-zA-Z0-9_-]{11}$/.test(t))return t;try{const a=new URL(t);if(/(^|\.)youtu\.be$/.test(a.hostname))return a.pathname.slice(1).split("/")[0]||null;if(/(^|\.)youtube\.com$/.test(a.hostname)){if(a.pathname==="/watch")return a.searchParams.get("v");const s=/^\/(embed|shorts)\/([a-zA-Z0-9_-]{11})/.exec(a.pathname);if(s)return s[2]}}catch{return null}return null}const yw=8*1024*1024;async function xw(e,t){if(e.size>yw)throw new Error(`Image is larger than ${yw/(1024*1024)}MB â please resize it first.`);const a=await fetch("/api/blog/media/presign-upload",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({slug:t,filename:e.name,contentType:e.type})}),s=await a.json();if(!a.ok||!s.success)throw new Error(s.error||"Failed to get an upload URL");if(!(await fetch(s.uploadUrl,{method:"PUT",headers:{"Content-Type":e.type},body:e})).ok)throw new Error("Upload to storage failed");return s.publicUrl}function dB({videoId:e,title:t}){const[a,s]=x.useState(!1);return a?c.jsx("div",{className:"relative w-full aspect-video rounded-lg overflow-hidden bg-black",children:c.jsx("iframe",{className:"absolute inset-0 w-full h-full",src:`https://www.youtube-nocookie.com/embed/${e}
1810?autoplay=1`,title:t||"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):c.jsxs("button",{type:"button",onClick:()=>s(!0),className:"relative block w-full aspect-video rounded-lg overflow-hidden bg-black group","aria-label":t?`Play video: ${t}`:"Play video",children:[c.jsx("img",{src:`https://i.ytimg.com/vi/${e}/hqdefault.jpg`,alt:t||"YouTube video thumbnail",className:"absolute inset-0 w-full h-full object-cover",loading:"lazy"}),c.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-black/30 group-hover:bg-black/40 transition-colors",children:c.jsx("span",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-red-600 text-white",children:c.jsx(f5,{className:"w-7 h-7 ml-1",fill:"currentColor"})})})]})}function fB({block:e}){switch(e.type){case"paragraph":return c.jsx("p",{className:"mb-6 leading-relaxed",children:e.text});case"image":return c.jsxs("figure",{className:"mb-6",children:[c.jsx("img",{src:e.url,alt:e.alt,className:"w-full rounded-lg",loading:"lazy"}),e.caption&&c.jsx("figcaption",{className:"mt-2 text-sm text-center text-muted-foreground",children:e.caption})]});case"link":return c.jsx("p",{className:"mb-6",children:c.jsx("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"font-medium underline underline-offset-4 text-primary hover:no-underline",children:e.text||e.href})});case"youtube":return c.jsx("div",{className:"mb-6",children:c.jsx(dB,{videoId:e.videoId,title:e.title})});default:return null}}function nN({blocks:e}){return c.jsx(c.Fragment,{children:e.map((t,a)=>c.jsx(fB,{block:t},a))})}function bw(e){var s;const t=e.excerpt||((s=e.content)==null?void 0:s.introduction)||oe.description,a=String(t).replace(/\s+/g," ").trim();return a.length<=160?a:`${a.slice(0,157).replace(/\s+\S*$/,"")}â¦`}function hB(){const{postId:e}=tp(),t=Jn(),{isBlogAdmin:a}=bu(),[s,o]=x.useState(null),u=s!==null&&s.slug===e,d=u?s.post:null,h=!u;return x.useEffect(()=>{let m=!1;return fetch(`/api/blog/${e}`).then(g=>g.json()).then(g=>{m||o({slug:e,post:g.success?tN(g.post):null})}).catch(g=>{m||(console.error("Error fetching post:",g),o({slug:e,post:null}))}),()=>{m=!0}},[e]),Sr(u?d?{title:`${d.title} · ${oe.titleSuffix} Blog`,description:bw(d),type:"article",image:d.content.heroImage||void 0,contentGroup:"Blog",jsonLd:[{"@context":"https://schema.org","@type":"BlogPosting",headline:d.title,de
1810scription:bw(d),datePublished:Fm(d.date),dateModified:Fm(d.updatedAt||d.date),author:{"@type":"Person",name:d.author},publisher:{"@id":`${oe.url}/#organization`},mainEntityOfPage:{"@type":"WebPage","@id":wn(`/blog/${d.slug}`)},image:d.content.heroImage?wn(d.content.heroImage):wn(oe.defaultImage),articleSection:d.category||void 0},dl([{name:"Home",path:"/"},{name:"Blog",path:"/blog"},{name:d.title,path:`/blog/${d.slug}`}])]}:{title:`Post Not Found · ${oe.titleSuffix} Blog`,description:"The blog post you are looking for does not exist.",robots:"noindex, follow",contentGroup:"Error"}:null,{analyticsParams:d?{blog_post:d.slug,blog_author:d.author,blog_category:d.category||"Uncategorized"}:void 0}),h?c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 flex items-center justify-center px-4",children:c.jsx("div",{className:"text-center",children:c.jsx("p",{className:"text-muted-foreground",children:"Loading post..."})})}),c.jsx(Rt,{})]}):d?c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 pt-24 pb-16 px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"max-w-3xl mx-auto",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("button",{onClick:()=>t("/blog"),className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Ao,{className:"w-4 h-4"}),"Back to Blog"]}),a&&c.jsxs(Ie,{onClick:()=>t(`/blog/edit/${d.slug}`),variant:"outline",className:"flex items-center gap-2",children:[c.jsx(Zh,{className:"w-4 h-4"}),"Edit Post"]})]}),c.jsxs("article",{children:[c.jsx("div",{className:"mb-4",children:c.jsx("span",{className:"inline-block px-3 py-1 text-xs font-semibold rounded-full bg-primary/10 text-primary",children:d.category})}),c.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6 leading-tight",children:d.title}),c.jsxs("div",{className:"flex flex-wrap items-center gap-6 text-sm text-muted-foreground mb-8 pb-8 border-b",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(e2,{className:"w-4 h-4"}),c.jsx("span",{children:ap(d.date)})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(ip,{className:"w-4 h-4"}),c.jsx("span",{children:d.readTime})]}),c.jsx("div",{children:c.jsxs("span",{className:"font-medium",children:["By ",d.author]})})]}),d.content.heroImage&&c.jsx("img",{src:d.content.heroImage,alt:d.title,className:"w-full rounded-lg mb-12"}),c.jsx("div",{className:"prose prose-lg max-w-none mb-12",children:c.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground",children:d.content.introduction})}),c.jsxs("div",{className:"prose prose-lg max-w-none",children:[d.content.sections.map((m,g)=>c.jsxs("div",{className:"mb-12",children:[c.jsx("h2",{className:"text-3xl font-bold mb-6",children:m.heading}),c.jsx(nN,{blocks:m.blocks})]},g)),c.jsx("div",{className:"mt-12 pt-8 border-t",children:c.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground",children:d.content.conclusion})})]})]}),c.jsxs("div",{className:"mt-16 pt-12 border-t flex justify-between items-center",children:[c.jsxs("button",{onClick:()=>t("/blog"),className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Ao,{className:"w-4 h-4"}),"All Posts"]}),c.jsx("span",{className:"text-sm text-muted-foreground",children:"Share this article"})]})]})}),c.jsx(Rt,{})]}):c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 flex items-center justify-center px-4",children:c.jsxs("div",{className:"text-center",children:[c.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Post Not Found"}),c.jsx("p",{className:"text-muted-foreground mb-8",children:"The blog post you're looking for doesn't exist."}),c.jsxs("button",{onClick:()=>t("/blog"),className:"inline-flex items-center gap-2 px-6 py-3 bg-black text-white rounded-lg hover:bg-gray-800 transition-colors",children:[c.jsx(Ao,{className:"w-4 h-4"}),"Back to Blog"]})]})}),c.jsx(Rt,{})]})}const No=x.forwardRef(({className:e,...t},a)=>c.jsx("textarea",{className:De("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1810ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));No.displayName="Textarea";var mB=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pB=mB.reduce((e,t)=>{const a=kt(`Primitive.${t}`),s=x.forwardRef((o,u)=>{const{asChild:d,...h}=o,m=d?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...h,ref:u})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),gB="Label",aN=x.forwardRef((e,t)=>c.jsx(pB.label,{...e,ref:t,onMouseDown:a=>{var o;a.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));aN.displayName=gB;var iN=aN;const vB=pr("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Vt=x.forwardRef(({className:e,...t},a)=>c.jsx(iN,{ref:a,className:De(vB(),e),...t}));Vt.displayName=iN.displayName;const yB=5e3,xB={slug:"",title:"",excerpt:"",author:"",date:new Date().toISOString().split("T")[0],readTime:"",category:"",content:{introduction:"",sections:[],conclusion:""},status:"draft"};function ww(){const e=Jn(),{slug:t}=tp(),{isBlogAdmin:a,loading:s}=bu(),[o,u]=x.useState(!1);x.useEffect(()=>{s||a||e("/blog/admin",{replace:!0})},[a,s,e]);const[d,h]=x.useState(xB),[m,g]=x.useState(!1),[v,y]=x.useState(!1),[b,S]=x.useState(null),[j,E]=x.useState(null),A=x.useRef(null);x.useEffect(()=>{t&&(u(!0),fetch(`/api/blog/${t}`).then(N=>N.json()).then(N=>{if(N.success){const L=tN({status:"draft",...N.post});h(L),A.current=JSON.stringify(L)}u(!1)}).catch(N=>{console.error("Error loading post:",N),u(!1)}))},[t]);const C=(N,L)=>{h(U=>({...U,[N]:L}))},k=(N,L)=>{h(U=>({...U,content:{...U.content,[N]:L}}))},R=()=>{h(N=>({...N,content:{...N.content,sections:[...N.content.sections,{heading:"",blocks:[{type:"paragraph",text:""}]}]}}))},P=N=>{h(L=>({...L,content:{...L.content,sections:L.content.sections.filter((U,K)=>K!==N)}}))},M=(N,L)=>{h(U=>({...U,content:{...U.content,sections:U.content.sections.map((K,W)=>W===N?{...K,heading:L}:K)}}))},z=(N,L)=>{h(U=>({...U,content:{...U.content,sections:U.content.sections.map((K,W)=>W===N?{...K,blocks:L(K.blocks)}:K)}}))},G=(N,L)=>{const U=L==="paragraph"?{type:"paragraph",text:""}:L==="image"?{type:"image",url:"",alt:""}:L==="link"?{type:"link",href:"",text:""}:{type:"youtube",videoId:"",title:""};z(N,K=>[...K,U])},H=(N,L,U)=>{z(N,K=>K.map((W,te)=>te===L?{...W,...U}:W))},$=(N,L)=>{z(N,U=>U.filter((K,W)=>W!==L))},J=(N,L,U)=>{z(N,K=>{const W=L+U;if(W<0||W>=K.length)return K;const te=[...K];return[te[L],te[W]]=[te[W],te[L]],te})},de=async(N,L,U)=>{const K=`${N}:${L}`;E(K);try{const W=await xw(U,d.slug);H(N,L,{url:W})}catch(W){alert(W instanceof Error?W.message:"Image upload failed")}finally{E(W=>W===K?null:W)}},Ee=async N=>{E("hero");try{const L=await xw(N,d.slug);h(U=>({...U,content:{...U.content,heroImage:L}}))}catch(L){alert(L instanceof Error?L.message:"Image upload failed")}finally{E(L=>L==="hero"?null:L)}},he=x.useCallback(async(N,{silent:L})=>{const U={...d,...N};try{const W=await(await fetch("/api/blog/post",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(U),credentials:"include"})).json();return W.success?(A.current=JSON.stringify(U),S(new Date),N.status&&N.status!==d.status&&h(te=>({...te,status:N.status})),L||(alert(N.status==="published"?"Post published!":N.status==="draft"?"Post moved back to draft.":"Post saved successfully!"),e("/blog")),!0):(L?console.error("Autosave failed:",W.error):alert(`Error saving post: ${W.error}`),!1)}catch(K){return console.error("Error saving post:",K),L||alert("Failed to save post. Please try again."),!1}},[d,e]),pe=async()=>{y(!0),await he({},{silent:!1}),y(!1)},we=async()=>{y(!0),await he({status:"published"},{silent:!1}),y(!1)},Z=async()=>{window.confirm("Move this post back to draft? It will disappear from the public blog until republished.")&&(y(!0),await he({status:"draft"},{silent:!1}),y(!1))};x.useEffect(()=>{const N=setInterval(()=>{!(d.slug&&d.title&&d.author&&d.date)||JSON.stringify(d)===A.current||he({},{silent:!0})},yB);return()=>clearInterval(N)},[d,he]);const ee=async()=>
1810{if(!(!t||!window.confirm(`Are you sure you want to delete "${d.title||"this post"}"? This action cannot be undone.`)))try{const U=await(await fetch(`/api/blog/${t}`,{method:"DELETE",credentials:"include"})).json();U.success?(alert("Post deleted successfully!"),e("/blog")):alert(`Error deleting post: ${U.error}`)}catch(L){console.error("Error deleting post:",L),alert("Failed to delete post. Please try again.")}},F=N=>N.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,""),ce=N=>{N&&h(L=>({...L,slug:F(N)}))};return o?c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 flex items-center justify-center px-4",children:c.jsx("div",{className:"text-center",children:c.jsx("p",{className:"text-muted-foreground",children:"Loading post..."})})}),c.jsx(Rt,{})]}):m?c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 pt-24 pb-16 px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"max-w-3xl mx-auto",children:[c.jsxs("button",{onClick:()=>g(!1),className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground mb-8 transition-colors",children:[c.jsx(Ao,{className:"w-4 h-4"}),"Back to Editor"]}),c.jsxs("article",{children:[c.jsx("div",{className:"mb-4",children:c.jsx("span",{className:"inline-block px-3 py-1 text-xs font-semibold rounded-full bg-primary/10 text-primary",children:d.category||"Uncategorized"})}),c.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-6 leading-tight",children:d.title||"Untitled Post"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-6 text-sm text-muted-foreground mb-8 pb-8 border-b",children:[c.jsx("span",{children:ap(d.date)}),c.jsx("span",{children:d.readTime||"0 min read"}),c.jsxs("span",{className:"font-medium",children:["By ",d.author||"Author"]})]}),d.content.heroImage&&c.jsx("img",{src:d.content.heroImage,alt:d.title,className:"w-full rounded-lg mb-12"}),c.jsx("div",{className:"prose prose-lg max-w-none mb-12",children:c.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground",children:d.content.introduction||"No introduction yet."})}),c.jsxs("div",{className:"prose prose-lg max-w-none",children:[d.content.sections.map((N,L)=>c.jsxs("div",{className:"mb-12",children:[c.jsx("h2",{className:"text-3xl font-bold mb-6",children:N.heading||"Section Heading"}),c.jsx(nN,{blocks:N.blocks})]},L)),c.jsx("div",{className:"mt-12 pt-8 border-t",children:c.jsx("p",{className:"text-xl leading-relaxed text-muted-foreground",children:d.content.conclusion||"No conclusion yet."})})]})]})]})}),c.jsx(Rt,{})]}):c.jsxs("div",{className:"relative min-h-screen flex flex-col bg-neutral-50 dark:bg-neutral-900",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 pt-24 pb-16 px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"max-w-5xl mx-auto",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("button",{onClick:()=>e("/blog"),className:"inline-flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Ao,{className:"w-4 h-4"}),"Back to Blog"]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-xs text-muted-foreground",children:v?"Savingâ¦":b?`Saved ${b.toLocaleTimeString()}`:""}),c.jsxs(Ie,{variant:"outline",onClick:()=>g(!0),className:"flex items-center gap-2",children:[c.jsx(W4,{className:"w-4 h-4"}),"Preview"]}),c.jsxs(Ie,{onClick:pe,variant:"outline",className:"flex items-center gap-2",children:[c.jsx(zx,{className:"w-4 h-4"}),"Save Draft"]}),d.status==="published"?c.jsxs(Ie,{onClick:Z,className:"flex items-center gap-2 bg-amber-600 text-white hover:bg-amber-700",children:[c.jsx(Hx,{className:"w-4 h-4"}),"Unpublish"]}):c.jsxs(Ie,{onClick:we,className:"flex items-center gap-2 bg-black text-white hover:bg-gray-800",children:[c.jsx(Fx,{className:"w-4 h-4"}),"Publish"]})]})]}),c.jsxs("div",{className:"bg-white dark:bg-neutral-800 rounded-lg shadow-lg p-8",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[c.jsx("h1",{className:"text-3xl font-bold",children:"Blog Post Editor"}),c.jsx("span",{className:`inline-block px-3 py-1 text-xs font-semibold rounded-full ${d.status==="published"?"bg-green-100 text-green-800":"bg-neutral-200 text-neutral-700 dark:bg-neutral-700 dark:text-neutral-200"}`,children:d.status==="published"?"Published":"Draft"})]}),c.jsxs("div",{className:"space-y-6 mb-8",children:[c.jsxs("div",{children:[c.jsx(Vt,{htmlFor:"title",children:"Title"}),c.jsx(pt,{id:"title",value:d.title,onChange:N=>{C("title",N.target.value),t||ce(N.target.value)},placeholder:"Enter blog post title",className:"mt-2"})]}),c.jsxs("div",{children:[c.jsx(Vt,{htmlFor:"slug",children:"URL Slug"}),c.jsx(pt,{id:"slug",value:d.slug,onChange:N=>C("slug",N.target.value),placeholder:"url-friendly-slug",className:"mt-2 font-mono text-sm"})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(Vt,{htmlFor:"author",children:"Author"}),c.jsx(pt,{id:"author",value:d.author,onChange:N=>C("author",N.target.value),placeholder:"Author name",className:"mt-2"})]}),c.jsxs("div",{children:[c.jsx(Vt,{htmlFor:"date",children:"Date"}),c.jsx(pt,{id:"date",type:"date",value:d.date,onChange:N=>C("date",N.target.value),className:"mt-2"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx(Vt,{htmlFor:"category",children:"Category"}),c.jsx(pt,{id:"category",value:d.category,onChange:N=>C("category",N.target.value),placeholder:"e.g., Product, Technology",className:"mt-2"})]}),c.jsxs("div",{children:[c.jsx(Vt,{htmlFor:"readTime",children:"Read Time"}),c.jsx(pt,{id:"readTime",value:d.readTime,onChange:N=>C("readTime",N.target.value),placeholder:"e.g., 5 min read",className:"mt-2"})]})]}),c.jsxs("div",{children:[c.jsx(Vt,{htmlFor:"excerpt",children:"Excerpt"}),c.jsx(No,{id:"excerpt",value:d.excerpt,onChange:N=>C("excerpt",N.target.value),placeholder:"Short description for the blog list page",className:"mt-2 min-h-[100px]"})]}),c.jsxs("div",{children:[c.jsx(Vt,{children:"Hero Image"}),c.jsx("p",{className:"text-xs text-muted-foreground mt-1 mb-2",children:"Used for the social share preview (Open Graph) and article schema. Requires alt text via the title above."}),d.content.heroImage?c.jsxs("div",{className:"relative",children:[c.jsx("img",{src:d.content.heroImage,alt:d.title,className:"w-full max-h-64 object-cover rounded-lg border"}),c.jsx(Ie,{onClick:()=>h(N=>({...N,content:{...N.content,heroImage:void 0}})),variant:"outline",size:"sm",className:"absolute top-2 right-2 bg-white/90 text-red-600 hover:bg-white",children:c.jsx(jc,{className:"w-4 h-4"})})]}):c.jsxs("label",{className:"flex flex-col items-center justify-center gap-2 border-2 border-dashed rounded-lg p-8 cursor-pointer text-muted-foreground hover:border-neutral-400 transition-colors",children:[j==="hero"?c.jsx(Co,{className:"w-6 h-6 animate-spin"}):c.jsx(rh,{className:"w-6 h-6"}),c.jsx("span",{className:"text-sm",children:"Click to upload a hero image"}),c.jsx("input",{type:"file",accept:"image/jpeg,image/png,image/webp,image/gif,image/svg+xml",className:"hidden",onChange:N=>{var U;const L=(U=N.target.files)==null?void 0:U[0];L&&Ee(L),N.target.value=""}})]})]})]}),c.jsxs("div",{className:"border-t pt-8 mt-8",children:[c.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Content"}),c.jsxs("div",{className:"mb-8",children:[c.jsx(Vt,{htmlFor:"introduction",children:"Introduction"}),c.jsx(No,{id:"introduction",value:d.content.introduction,onChange:N=>k("introduction",N.target.value),placeholder:"Opening paragraph that hooks the reader...",className:"mt-2 min-h-[150px]"})]}),c.jsxs("div",{className:"mb-8",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx(Vt,{children:"Sections"}),c.jsxs(Ie,{onClick:R,variant:"outline",size:"sm",className:"flex items-center gap-2",children:[c.jsx(Bx,{className:"w-4 h-4"}),"Add Section"]})]}),d.content.sections.map((N,L)=>c.jsxs("div",{className:"border rounded-lg p-6 mb-4 bg-neutral-50 dark:bg-neutral-900",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx(pt,{value:N.heading,onChange:U=>M(L,U.target.value),placeholder:"Section Heading",className:"font-semibold"}),c.jsx(Ie,{onClick:()=>P(L),variant:"outline",size:"sm",className:"ml-2 text-red-600 hover:bg-red-50",children:c.jsx(jc,{className:"w-4 h-4"})})]}),c.jsxs("div",{className:"space-y-3",children:[N.blocks.map((U,K)=>{const W=`${L}:${K}`;return c.jsxs("div",{className:"flex gap-2 items-start",children:[c.jsxs("div",{className:"flex flex-col gap-1 pt-1",children:[c.jsx("button",{type:"button",onClick:()=>J(L,K,-1),disabled:K===0,className:"text-muted-foreground hover:text-foreground disabled:opacity-30","aria-label":"Move up",children:c.jsx(V4,{className:"w-4 h-4"})}),c.jsx("button",{type:"button",onClick:()=>J(L,K,1),disabled:K===N.blocks.length-1,className:"text-muted-foreground hover:text-foreground disabled:opacity-30","aria-label":"Move down",children:c.jsx(t2,{className:"w-4 h-4"})})]}),c.jsxs("div",{className:"flex-1 border rounded-lg p-4 bg-white dark:bg-neutral-800",children:[U.type==="paragraph"&&c.jsx(No,{value:U.text,onChange:te=>H(L,K,{text:te.target.value}),placeholder:"Paragraph text...",className:"min-h-[100px]"}),U.type==="image"&&c.jsxs("div",{className:"space-y-2",children:[U.url?c.jsx("img",{src:U.url,alt:U.alt,className:"w-full max-h-56 object-cover rounded-md border"}):c.jsxs("label",{className:"flex flex-col items-center justify-center gap-2 border-2 border-dashed rounded-md p-6 cursor-pointer text-muted-foreground hover:border-neutral-400 transition-colors",children:[j===W?c.jsx(Co,{className:"w-5 h-5 animate-spin"}):c.jsx(rh,{className:"w-5 h-5"}),c.jsx("span",{className:"text-sm",children:"Click to upload an image"}),c.jsx("input",{type:"file",accept:"image/jpeg,image/png,image/webp,image/gif,image/svg+xml",className:"hidden",onChange:te=>{var ue;const se=(ue=te.target.files)==null?void 0:ue[0];se&&de(L,K,se),te.target.value=""}})]}),c.jsx(pt,{value:U.alt,onChange:te=>H(L,K,{alt:te.target.value}),placeholder:"Alt text (required for SEO/accessibility)"}),c.jsx(pt,{value:U.caption||"",onChange:te=>H(L,K,{caption:te.target.value}),placeholder:"Caption (optional)"}),U.url&&!U.alt&&c.jsx("p",{className:"text-xs text-red-600",children:"Alt text is required before publishing."})]}),U.type==="link"&&c.jsxs("div",{className:"space-y-2",children:[c.jsx(pt,{value:U.href,onCh
1810ange:te=>H(L,K,{href:te.target.value}),placeholder:"https://example.com/resource"}),c.jsx(pt,{value:U.text,onChange:te=>H(L,K,{text:te.target.value}),placeholder:"Link text (e.g. Read the full report)"})]}),U.type==="youtube"&&c.jsxs("div",{className:"space-y-2",children:[c.jsx(pt,{defaultValue:U.videoId,onChange:te=>{const se=uB(te.target.value);se&&H(L,K,{videoId:se})},placeholder:"Paste a YouTube URL or video ID"}),c.jsx(pt,{value:U.title||"",onChange:te=>H(L,K,{title:te.target.value}),placeholder:"Video title (for accessibility)"}),U.videoId?c.jsx("img",{src:`https://i.ytimg.com/vi/${U.videoId}/hqdefault.jpg`,alt:"",className:"w-full max-w-xs rounded-md border"}):c.jsx("p",{className:"text-xs text-muted-foreground",children:"Paste a valid YouTube link to preview the thumbnail."})]})]}),c.jsx(Ie,{onClick:()=>$(L,K),variant:"outline",size:"sm",className:"text-red-600 hover:bg-red-50",children:c.jsx(jc,{className:"w-4 h-4"})})]},K)}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[c.jsxs(Ie,{onClick:()=>G(L,"paragraph"),variant:"outline",size:"sm",className:"flex items-center gap-2",children:[c.jsx(Bx,{className:"w-4 h-4"}),"Paragraph"]}),c.jsxs(Ie,{onClick:()=>G(L,"image"),variant:"outline",size:"sm",className:"flex items-center gap-2",children:[c.jsx(rh,{className:"w-4 h-4"}),"Image"]}),c.jsxs(Ie,{onClick:()=>G(L,"link"),variant:"outline",size:"sm",className:"flex items-center gap-2",children:[c.jsx(e5,{className:"w-4 h-4"}),"Link"]}),c.jsxs(Ie,{onClick:()=>G(L,"youtube"),variant:"outline",size:"sm",className:"flex items-center gap-2",children:[c.jsx(I5,{className:"w-4 h-4"}),"YouTube"]})]})]})]},L))]}),c.jsxs("div",{className:"mb-8",children:[c.jsx(Vt,{htmlFor:"conclusion",children:"Conclusion"}),c.jsx(No,{id:"conclusion",value:d.content.conclusion,onChange:N=>k("conclusion",N.target.value),placeholder:"Closing thoughts...",className:"mt-2 min-h-[150px]"})]})]}),c.jsxs("div",{className:"flex justify-between items-center mt-8 pt-8 border-t",children:[t&&c.jsxs(Ie,{onClick:ee,variant:"outline",className:"flex items-center gap-2 bg-red-600 text-white hover:bg-red-700 border-red-600",children:[c.jsx(jc,{className:"w-4 h-4"}),"Delete Post"]}),c.jsxs("div",{className:"flex gap-4 ml-auto",children:[c.jsx(Ie,{variant:"outline",onClick:()=>e("/blog"),children:"Cancel"}),c.jsxs(Ie,{onClick:pe,variant:"outline",className:"flex items-center gap-2",children:[c.jsx(zx,{className:"w-4 h-4"}),"Save Draft"]}),d.status==="published"?c.jsxs(Ie,{onClick:Z,className:"flex items-center gap-2 bg-amber-600 text-white hover:bg-amber-700",children:[c.jsx(Hx,{className:"w-4 h-4"}),"Unpublish"]}):c.jsxs(Ie,{onClick:we,className:"flex items-center gap-2 bg-black text-white hover:bg-gray-800",children:[c.jsx(Fx,{className:"w-4 h-4"}),"Publish"]})]})]})]})]})}),c.jsx(Rt,{})]})}function bB(){const e=Jn(),[t,a]=x.useState(""),[s,o]=x.useState(""),[u,d]=x.useState(""),[h,m]=x.useState(!1),[g,v]=x.useState(!0);x.useEffect(()=>{(async()=>{try{const S=await(await fetch("/api/blog/admin/me",{credentials:"include"})).json();if(S.success&&S.authenticated){e("/blog");return}}catch{}v(!1)})()},[e]);const y=async b=>{b.preventDefault(),d(""),m(!0);try{const S=await fetch("/api/blog/admin/login",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},credentials:"include",body:JSON.stringify({username:t,password:s})}),j=await S.json();if(S.ok&&j.success){e("/blog");return}d(j.error||"Login failed")}catch(S){d(S instanceof Error?S.message:"Network error")}finally{m(!1)}};return g?c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 pt-24 pb-16 px-4 flex items-center justify-center",children:c.jsx("p",{className:"text-muted-foreground",children:"Loading..."})}),c.jsx(Rt,{})]}):c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx("main",{className:"flex-1 pt-24 pb-16 px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"max-w-md mx-auto",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx("h1",{className:"text-4xl font-bold mb-2",children:"Blog Admin"}),c.jsx("p",{className:"text-muted-foreground",children:"Sign in to manage blog posts"})]}),c.jsxs("form",{onSubmit:y,className:"space-y-6 bg-card border rounded-lg p-8",children:[u&&c.jsx("div",{className:"bg-destructive/10 text-destructive p-3 rounded-md text-sm",children:u}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Vt,{htmlFor:"blog-admin-username",children:"Username"}),c.jsx(cr,{id:"blog-admin-username",type:"text",value:t,onChange:b=>a(b.target.value),required:!0,disabled:h,placeholder:"Username",className:"text-foreground"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Vt,{htmlFor:"blog-admin-password",children:"Password"}),c.jsx(cr,{id:"blog-admin-password",type:"password",value:s,onChange:b=>o(b.target.value),required:!0,disabled:h,placeholder:"Password",className:"text-foreground"})]}),c.jsx(Ie,{type:"submit",className:"w-full bg-black text-white hover:bg-gray-800",disabled:h,children:h?"Signing in...":"Sign in"})]})]})}),c.jsx(Rt,{})]})}function wB(){const{pathname:e}=Dn();return x.useEffect(()=>{wU("page_not_found",{page_path:e})},[e]),c.jsxs("div",{className:"relative min-h-screen flex flex-col",children:[c.jsx(_t,{}),c.jsx(mr,{className:"pt-16 flex-1",children:c.jsx("main",{className:"flex flex-1 items-center justify-center px-4 py-20",children:c.jsxs("div",{className:"max-w-md text-center space-y-6",children:[c.jsx("p",{className:"text-sm font-semibold uppercase tracking-widest text-slate-400",children:"Error 404"}),c.jsx("h1",{className:"text-5xl sm:text-6xl font-semibold tracking-tight font-primary",children:"Page not found"}),c.jsx("p",{className:"text-base text-slate-500 font-primary",children:"The page youâre looking for doesnât exist or has been removed."}),c.jsx("div",{className:"pt-2",children:c.jsx(Zi,{asChild:!0,children:c.jsx(B_,{to:"/",children:"Return home"})})})]})})}),c.jsx(Rt,{})]})}const Hh=[{number:1,icon:c.jsx(sp,{className:"w-5 h-5"}),title:"What is BlackHole?",summary:"BlackHole is a free, open-source macOS virtual audio driver that passes audio between applications with
1810no added latency. Kasana uses it to capture system audio from Zoom, Teams, or a browser tab and route it into the speech recognition engine.",content:c.jsxs("div",{className:"space-y-3",children:[c.jsx("p",{className:"text-slate-600 leading-relaxed",children:"BlackHole is a free, open-source macOS virtual audio driver that lets applications pass audio to other apps with zero additional latency. Think of it as a virtual cable between any two audio programs on your Mac."}),c.jsx("p",{className:"text-slate-600 leading-relaxed",children:"Kasana uses BlackHole to capture the system audio from your video conferencing app â Zoom, Teams, or any browser tab â and route it directly into the speech recognition engine. This means Kasana can hear the meeting audio even when you're not the one speaking."}),c.jsx("div",{className:"mt-4 rounded-xl bg-blue-50 border border-blue-100 px-5 py-4",children:c.jsx("p",{className:"text-sm font-medium text-blue-800",children:"BlackHole is maintained by Existential Audio. It is free to download and does not require a subscription."})})]})},{number:2,icon:c.jsx(G4,{className:"w-5 h-5"}),title:"Download BlackHole",summary:"Download the 2-channel (2ch) build from existential.audio/blackhole, open the .pkg installer, follow the prompts, and restart your Mac.",content:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-slate-600 leading-relaxed",children:"Download the 2-channel (2ch) version of BlackHole â this is all Kasana needs."}),c.jsx("ol",{className:"space-y-3",children:[c.jsxs(c.Fragment,{children:["Visit ",c.jsx("a",{href:"https://existential.audio/blackhole/",target:"_blank",rel:"noopener noreferrer",className:"text-[#1A8CFF] underline underline-offset-2 hover:text-blue-700 transition-colors",children:"existential.audio/blackhole"})," and click ",c.jsx("strong",{children:"BlackHole 2ch"}),"."]}),c.jsx(c.Fragment,{children:"Enter your name and email to receive the download link. The file will arrive in your inbox within a minute."}),c.jsxs(c.Fragment,{children:["Open the ",c.jsx("code",{className:"rounded bg-slate-100 px-1.5 py-0.5 text-sm font-mono text-slate-700",children:".pkg"})," installer and follow the prompts. macOS may ask for your password â this is normal."]}),c.jsx(c.Fragment,{children:"Restart your Mac after installation completes."})].map((e,t)=>c.jsxs("li",{className:"flex gap-3",children:[c.jsx("span",{className:"mt-0.5 flex-shrink-0 w-6 h-6 rounded-full bg-slate-900 text-white flex items-center justify-center text-xs font-bold",children:t+1}),c.jsx("span",{className:"text-slate-600 leading-relaxed",children:e})]},t))}),c.jsx("div",{className:"rounded-xl bg-amber-50 border border-amber-100 px-5 py-4",children:c.jsxs("p",{className:"text-sm font-medium text-amber-800",children:[c.jsx("strong",{children:"macOS Security prompt:"})," If macOS blocks the installer, open ",c.jsx("strong",{children:"System Settings â Privacy & Security"})," and click ",c.jsx("strong",{children:"Allow"})," next to the BlackHole message."]})})]})},{number:3,icon:c.jsx(y5,{className:"w-5 h-5"}),title:"Configure a Multi-Output Device in Audio MIDI Setup",summary:"In Audio MIDI Setup, create a Multi-Output Device that includes both your speakers or headphones and BlackHole 2ch, then set your primary output as the Master Device so you can still hear the meeting while Kasana listens.",content:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["A ",c.jsx("strong",{children:"Multi-Output Device"})," lets your Mac send audio to two destinations at once â your speakers or headphones ",c.jsx("em",{children:"and"})," BlackHole. This way you can still hear the meeting while Kasana listens in."]}),c.jsx("ol",{className:"space-y-4",children:[c.jsxs(c.Fragment,{children:["Open ",c.jsx("strong",{children:"Audio MIDI Setup"}),". Press ",c.jsx("kbd",{className:"rounded bg-slate-100 border border-slate-200 px-2 py-0.5 text-xs font-mono text-slate-700",children:"â Space"}),", type ",c.jsx("em",{children:"Audio MIDI Setup"}),", and press ",c.jsx("kbd",{className:"rounded bg-slate-100 border border-slate-200 px-2 py-0.5 text-xs font-mono text-slate-700",children:"Return"}),"."]}),c.jsxs(c.Fragment,{children:["In the bottom-left corner, click the ",c.jsx("strong",{children:"+"})," button and choose ",c.jsx("strong",{children:"Create Multi-Output Device"}),"."]}),c.jsxs(c.Fragment,{children:["In the device list on the right, check both your primary output (e.g. ",c.jsx("em",{children:"MacBo
1810ok Pro Speakers"})," or your headphones) and ",c.jsx("strong",{children:"BlackHole 2ch"}),"."]}),c.jsxs(c.Fragment,{children:["Check the ",c.jsx("strong",{children:"Master Device"})," box next to your primary output. This ensures the timing stays locked to your speakers."]}),c.jsxs(c.Fragment,{children:["Optional but recommended: right-click the new device in the sidebar and rename it to something memorable like ",c.jsx("em",{children:"Kasana Multi-Output"}),"."]})].map((e,t)=>c.jsxs("li",{className:"flex gap-3",children:[c.jsx("span",{className:"mt-0.5 flex-shrink-0 w-6 h-6 rounded-full bg-slate-900 text-white flex items-center justify-center text-xs font-bold",children:t+1}),c.jsx("span",{className:"text-slate-600 leading-relaxed",children:e})]},t))}),c.jsx("div",{className:"rounded-xl bg-blue-50 border border-blue-100 px-5 py-4",children:c.jsx("p",{className:"text-sm font-medium text-blue-800",children:"Leave Audio MIDI Setup open â you can always come back here to adjust the device later."})})]})},{number:4,icon:c.jsx(u5,{className:"w-5 h-5"}),title:"Select the Multi-Output Device as System Output",summary:"Set your Mac's system output to the Multi-Output Device so both your speakers and BlackHole receive the audio.",content:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-slate-600 leading-relaxed",children:"Route your Mac's system audio through the Multi-Output Device so both your speakers and BlackHole receive it."}),c.jsx("ol",{className:"space-y-3",children:[c.jsxs(c.Fragment,{children:["Open ",c.jsx("strong",{children:"System Settings â Sound"}),"."]}),c.jsxs(c.Fragment,{children:["Under the ",c.jsx("strong",{children:"Output"})," tab, select ",c.jsx("strong",{children:"Kasana Multi-Output"})," (or whatever you named the device in the previous step)."]}),c.jsx(c.Fragment,{children:"The volume slider may appear greyed out â this is expected for multi-output devices. Control volume through your primary output device directly."})].map((e,t)=>c.jsxs("li",{className:"flex gap-3",children:[c.jsx("span",{className:"mt-0.5 flex-shrink-0 w-6 h-6 rounded-full bg-slate-900 text-white flex items-center justify-center text-xs font-bold",children:t+1}),c.jsx("span",{className:"text-slate-600 leading-relaxed",children:e})]},t))})]})},{number:5,icon:c.jsx(Jc,{className:"w-5 h-5"}),title:"Select BlackHole as the Input Device in Kasana",summary:"In Kasana, open Settings and then Audio, choose BlackHole 2ch as the Input Device, and start a session to see live transcription of the meeting audio.",content:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-slate-600 leading-relaxed",children:"The final step tells Kasana which audio source to listen to."}),c.jsx("ol",{className:"space-y-3",children:[c.jsxs(c.Fragment,{children:["Open Kasana and navigate to ",c.jsx("strong",{children:"Settings â Audio"}),"."]}),c.jsxs(c.Fragment,{children:["Under ",c.jsx("strong",{children:"Input Device"}),", select ",c.jsx("strong",{children:"BlackHole 2ch"})," from the dropdown."]}),c.jsx(c.Fragment,{children:"Start a session. Kasana will now capture the meeting audio routed through BlackHole and display live transcription on your heads-up display."})].map((e,t)=>c.jsxs("li",{className:"flex gap-3",children:[c.jsx("span",{className:"mt-0.5 flex-shrink-0 w-6 h-6 rounded-full bg-slate-900 text-white flex items-center justify-center text-xs font-bold",children:t+1}),c.jsx("span",{className:"text-slate-600 leading-relaxed",children:e})]},t))}),c.jsxs("div",{className:"rounded-xl bg-green-50 border border-green-100 px-5 py-4 flex gap-3",children:[c.jsx(Jc,{className:"w-5 h-5 text-green-600 flex-shrink-0 mt-0.5"}),c.jsx("p",{className:"text-sm font-medium text-green-800",children:"You're all set. Kasana will now transcribe audio from virtual and in-person meetings in real time."})]})]})}],Fh="Capturing Meeting Audio with BlackHole on macOS",Sw="Route system audio into Kasana with BlackHole so it can transcribe Zoom, Teams, and Webex meetings in real time â no extra microphone needed. A ~10 minute setup for macOS 12+.";function SB(){return Sr({title:`${Fh} · ${oe.titleSuffix}`,description:Sw,contentGroup:"Docs",jsonLd:[{"@context":"https://schema.org","@type":"HowTo",name:Fh,description:Sw,totalTime:"PT10M",image:wn(oe.defaultImage),tool:[{"@type":"HowToTool",name:"BlackHole 2ch"}],supply:[{"@type":"HowToSupply",name:"A Mac running macOS 12 or later"}],step:Hh.map(e=>({"@type":"HowToStep",position:e.number,name:e.title,text:e.summary,url:wn(`/tutorial/blackhole#step-${e.number}`)}))},dl([{name:"Home",path:"/"},{name:"Docs",path:"/docs"},{name:Fh,path:"/tutorial/blackhole"}])]}),c.jsxs("div",{className:"relative min-h-screen flex flex-col bg-white",children:[c.jsx(_t,{}),c.jsx(mr,{showRadialGradient:!0,className:"min-h-0 pt-16",children:c.jsxs("div",{className:"flex flex-col items-center justify-center text-center px-4 sm:px-6 lg:px-8 py-16 md:py-24 w-full",children:[c.jsx("p",{className:"text-xs font-semibold tracking-widest text-slate-500 uppercase mb-4",children:"Setup Guide · macOS"}),c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-slate-900 leading-tight tracking-tight mb-5 font-primary max-w-2xl",children:"Capturing Meeting Audio with BlackHole"}),c.jsx("p",{className:"text-lg text-slate-600 leading-relaxed max-w-xl mb-8",children:"Route system audio into Kasana so it can transcribe virtual meetings in real time â no extra microphone needed."}),c.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:["macOS 12+","~10 min setup","Free tool"].map(e=>c.jsx("span",{className:"inline-flex items-center rounded-full border border-slate-200 bg-white/70 backdrop-blur-sm px-3 py-1 text-xs font-medium text-slate-600",children:e},e))})]})}),c.jsx("main",{className:"flex-1 pb-20 px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"max-w-2xl mx-auto pt-12",children:[c.jsxs("div",{className:"mb-12 rounded-2xl overflow-hidden border border-slate-200 bg-slate-50 aspect-video flex flex-col items-center justify-center gap-3",children:[c.jsx("div",{className:"w-14 h-14 roun
1810ded-full bg-white border border-slate-200 flex items-center justify-center shadow-sm",children:c.jsx("svg",{className:"w-6 h-6 text-slate-400 ml-1",fill:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{d:"M8 5v14l11-7z"})})}),c.jsx("p",{className:"text-sm text-slate-400 font-medium",children:"Tutorial video coming soon"})]}),c.jsx("div",{className:"space-y-10",children:Hh.map((e,t)=>c.jsxs("div",{id:`step-${e.number}`,className:"scroll-mt-24",children:[c.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[c.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-xl bg-slate-900 text-white flex items-center justify-center font-bold text-sm font-primary",children:e.number}),c.jsx("div",{className:"flex-1 min-w-0",children:c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"text-slate-400",children:e.icon}),c.jsx("h2",{className:"text-xl font-semibold text-slate-900 font-primary leading-snug",children:e.title})]})})]}),c.jsx("div",{className:"ml-14",children:e.content}),t<Hh.length-1&&c.jsxs("div",{className:"mt-10 flex items-center gap-3 text-slate-200",children:[c.jsx("div",{className:"flex-1 h-px bg-slate-100"}),c.jsx(n2,{className:"w-4 h-4 text-slate-300"}),c.jsx("div",{className:"flex-1 h-px bg-slate-100"})]})]},e.number))}),c.jsxs("div",{className:"mt-16 rounded-2xl bg-slate-900 text-white px-8 py-8 text-center",children:[c.jsx("p",{className:"text-lg font-semibold font-primary mb-2",children:"Need help?"}),c.jsx("p",{className:"text-slate-400 text-sm mb-5",children:"Our team is happy to walk you through setup live. Reach out any time."}),c.jsx("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 bg-[#1A8CFF] text-white text-sm font-semibold px-6 py-3 rounded-lg hover:bg-blue-500 transition-colors",children:"Contact support"})]})]})}),c.jsx(Rt,{})]})}const TB="/assets/stale-connection-modal-BNuOYvOU.png",Tw=[{number:1,icon:c.jsx(a2,{className:"w-5 h-5"}),title:"Why Kasana watches for stale connections",content:c.jsxs("div",{className:"space-y-3",children:[c.jsx("p",{className:"text-slate-600 leading-relaxed",children:"When you start a session, Kasana keeps its microphone input open and streams audio to the speech engine the whole time â even during quiet stretches. That's normal for a live conversation, but if a meeting ends or you forget to stop a session, that connection can sit open for no reason."}),c.jsx("p",{className:"text-slate-600 leading-relaxed",children:"The stale connection timer exists to catch that case automatically. It watches the incoming audio signal and, if it goes quiet for too long, checks in with you before closing the session on its own â so you're never paying for a session no one is using."}),c.jsx("div",{className:"mt-4 rounded-xl bg-blue-50 border border-blue-100 px-5 py-4",children:c.jsx("p",{className:"text-sm font-medium text-blue-800",children:"This is an automatic safeguard built into every session â there's nothing to turn on or configure."})})]})},{number:2,icon:c.jsx(sp,{className:"w-5 h-5"}
1810),title:"What counts as a stale connection",content:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["Kasana continuously measures the audio signal coming into an active session. If it doesn't detect real audio â actual speech or sound above a quiet noise floor â for about ",c.jsx("strong",{children:"two minutes"}),", it treats the connection as stale and starts a check-in."]}),c.jsx("ol",{className:"space-y-3",children:[c.jsx(c.Fragment,{children:'Background hiss, silence, or a muted microphone all count as "no audio" â Kasana is listening for a real signal, not just an open connection.'}),c.jsx(c.Fragment,{children:"The two-minute clock resets the moment real audio is detected again, so normal pauses in conversation won't trigger anything."}),c.jsx(c.Fragment,{children:"This check runs continuously in the background for the life of the session, whether you're using an internal mic, BlackHole, or any other input device."})].map((e,t)=>c.jsxs("li",{className:"flex gap-3",children:[c.jsx("span",{className:"mt-0.5 flex-shrink-0 w-6 h-6 rounded-full bg-slate-900 text-white flex items-center justify-center text-xs font-bold",children:t+1}),c.jsx("span",{className:"text-slate-600 leading-relaxed",children:e})]},t))})]})},{number:3,icon:c.jsx(k4,{className:"w-5 h-5"}),title:'The "Are you still there?" check-in',content:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-slate-600 leading-relaxed",children:"Once the idle threshold is hit, Kasana pauses to check in with a modal instead of ending the session outright:"}),c.jsx("div",{className:"rounded-2xl overflow-hidden border border-slate-200 bg-slate-50",children:c.jsx("img",{src:TB,alt:"Kasana's stale connection modal, reading 'Are you still there?' with a 'Yes, I'm here' button and a closing countdown",className:"w-full aspect-video object-cover"})}),c.jsx("p",{className:"text-xs text-slate-400 text-center -mt-2",children:"The stale connection timer's confirmation modal, shown after ~2 minutes without detected audio."}),c.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The modal shows a short countdown â 10 seconds by default â and a single ",c.jsx("strong",{children:`"Yes, I'm here"`})," button. Clicking it confirms you're still active, resets the idle clock, and the session keeps running exactly as before."]}),c.jsx("div",{className:"rounded-xl bg-blue-50 border border-blue-100 px-5 py-4",children:c.jsx("p",{className:"text-sm font-medium text-blue-800",children:"The countdown shown in the modal is just a display â the actual close happens on its own independent timer, so it still fires correctly even if your computer is busy or the app is in the background."})})]})},{number:4,icon:c.jsx(ip,{className:"w-5 h-5"}),title:"If you don't respond in time",content:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-slate-600 leading-relaxed",children:"If the countdown reaches zero with no confirmation, Kasana treats the session as abandoned and closes it automatically."}),c.jsx("ol",{className:"space-y-3",children:[c.jsx(c.Fragment,{children:"Audio streaming stops and the session ends cleanly, the same as if you had stopped it manually."}),c.jsxs(c.Fragment,{children:["A short notification lets you know why: ",c.jsx("em",{children:'"Session ended after inactivity to avoid unnecessary usage."'})]}),c.jsx(c.Fragment,{children:"Nothing from your session is lost â transcripts and notes captured before the idle period are preserved."})].map((e,t)=>c.jsxs("li",{className:"flex gap-3",children:[c.jsx("span",{className:"mt-0.5 flex-shrink-0 w-6 h-6 rounded-full bg-slate-900 text-white flex items-center justify-center text-xs font-bold",children:t+1}),c.jsx("span",{className:"text-slate-600 leading-relaxed",children:e})]},t))}),c.jsx("div",{className:"rounded-xl bg-amber-50 border border-amber-100 px-5 py-4",children:c.jsx("p",{className:"text-sm font-medium text-amber-800",children:"To pick back up, just start a new session â Kasana will begin listening and transcribing right away."})})]})},{number:5,icon:c.jsx(Jc,{className:"w-5 h-5"}),title:"Avoiding unexpected check-ins",content:c.jsxs("div",{className:"space-y-4",children:[c.jsx("p",{className:"text-slate-600 leading-relaxed",children:"The stale connection timer is designed to stay out of your way during real use. A few tips if you're seeing it more than expected:"}),c.jsx("ol",{className:"space-y-3",children:[c.jsx(c.Fragment,{children:"Make sure your intended audio source is actually routed into Kasana â a disconnected or wrong input device will look identical to silence."}),c.jsx(c.Fragment,{children:"If you're capturing system audio (for example through BlackHole), confirm the source app is actually playing sound, not just connected."}),c.jsx(c.Fragment,{children:"Remember to stop a session when a meeting wraps up rather than leaving it running â the timer is a safety net, not a replacement for ending sessions you're done with."})].map((e,t)=>c.jsxs("li",{className:"flex gap-3",children:[c.jsx("span",{className:"mt-0.5 flex-shrink-0 w-6 h-6 rounded-full bg-slate-900 text-white flex items-center justify-center text-xs font-bold",children:t+1}),c.jsx("span",{className:"text-slate-600 leading-relaxed",children:e})]},t))}),c.jsxs("div",{className:"rounded-xl bg-green-50 border border-green-100 px-5 py-4 flex gap-3",children:[c.jsx(Jc,{className:"w-5 h-5 text-green-600 flex-shrink-0 mt-0.5"}),c.jsx("p",{className:"text-sm font-medium text-green-800",children:"That's the whole feature â a quiet safeguard that only ever shows up when a session has genuinely gone idle."})]})]})}],$h="Understanding the Stale Connection Timer",Ew='How Kasana detects a quiet live session, checks in with an "Are you still there?" prompt, and closes the session automatically when no one responds.';function EB(){return Sr({title:`${$h} · ${oe.titleSuffix}`,description:Ew,type:"article",contentGroup:"Docs",jsonLd:[{"@context":"https://schema.org","@type":"TechArticle",headline:$h,description:Ew,image:wn(oe.defaultImage),author:{"@i
1810d":`${oe.url}/#organization`},publisher:{"@id":`${oe.url}/#organization`},mainEntityOfPage:{"@type":"WebPage","@id":wn("/tutorial/stale-connection-timer")},articleSection:"Sessions",proficiencyLevel:"Beginner"},dl([{name:"Home",path:"/"},{name:"Docs",path:"/docs"},{name:$h,path:"/tutorial/stale-connection-timer"}])]}),c.jsxs("div",{className:"relative min-h-screen flex flex-col bg-white",children:[c.jsx(_t,{}),c.jsx(mr,{showRadialGradient:!0,className:"min-h-0 pt-16",children:c.jsxs("div",{className:"flex flex-col items-center justify-center text-center px-4 sm:px-6 lg:px-8 py-16 md:py-24 w-full",children:[c.jsx("p",{className:"text-xs font-semibold tracking-widest text-slate-500 uppercase mb-4",children:"How It Works · Sessions"}),c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-slate-900 leading-tight tracking-tight mb-5 font-primary max-w-2xl",children:"Understanding the Stale Connection Timer"}),c.jsx("p",{className:"text-lg text-slate-600 leading-relaxed max-w-xl mb-8",children:"Kasana checks in when a session goes quiet for too long, then closes it automatically if no one responds â here's exactly how it works."}),c.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:["All platforms","~3 min read","Automatic"].map(e=>c.jsx("span",{className:"inline-flex items-center rounded-full border border-slate-200 bg-white/70 backdrop-blur-sm px-3 py-1 text-xs font-medium text-slate-600",children:e},e))})]})}),c.jsx("main",{className:"flex-1 pb-20 px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"max-w-2xl mx-auto pt-12",children:[c.jsx("div",{className:"space-y-10",children:Tw.map((e,t)=>c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[c.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-xl bg-slate-900 text-white flex items-center justify-center font-bold text-sm font-primary",children:e.number}),c.jsx("div",{className:"flex-1 min-w-0",children:c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"text-slate-400",children:e.icon}),c.jsx("h2",{className:"text-xl font-semibold text-slate-900 font-primary leading-snug",children:e.title})]})})]}),c.jsx("div",{className:"ml-14",children:e.content}),t<Tw.length-1&&c.jsxs("div",{className:"mt-10 flex items-center gap-3 text-slate-200",children:[c.jsx("div",{className:"flex-1 h-px bg-slate-100"}),c.jsx(n2,{className:"w-4 h-4 text-slate-300"}),c.jsx("div",{className:"flex-1 h-px bg-slate-100"})]})]},e.number))}),c.jsxs("div",{className:"mt-16 rounded-2xl bg-slate-900 text-white px-8 py-8 text-center",children:[c.jsx("p",{className:"text-lg font-semibold font-primary mb-2",children:"Need help?"}),c.jsx("p",{className:"text-slate-400 text-sm mb-5",children:"If sessions are ending unexpectedly, our team is happy to help you track down why."}),c.jsx("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 bg-[#1A8CFF] text-white text-sm font-semibold px-6 py-3 rounded-lg hover:bg-blue-500 transition-colors",children:"Contact support"})]})]})}),c.jsx(Rt,{})]})}const jw=[{icon:c.jsx(sp,{className:"w-5 h-5"}),category:"Setup Guide · macOS",title:"Capturing Meeting Audio with BlackHole",snippet:"Route system audio into Kasana so it can transcribe virtual meetings in real time. BlackHole is a free virtual audio driver that acts as a cable between your conferencing app and Kasana's speech engine â zero added latency, no extra microphone required.",href:"/tutorial/blackhole",tags:["macOS 12+","~10 min","Free tool"]},{icon:c.jsx(a2,{className:"w-5 h-5"}),category:"How It Works · Sessions",title:"Understanding the Stale Connection Timer",snippet:"Kasana checks in when a session goes quiet for too long, then closes it automatically if no one responds. Learn what triggers the check-in, what the 'Are you still there?' prompt looks like, and what happens if you don't respond in time.",href:"/tutorial/stale-connection-timer",tags:["All platforms","~3 min","Automatic"]}];function jB(){return Sr({title:`Guides & Tutorials · ${oe.titleSuffix}`,description:"Step-by-step setup guides and how-tos for Kasana: audio routing, virtual meeting capture, live sessions, and more.",contentGroup:"Docs",jsonLd:[{"@context":"https://schema.org","@type":"ItemList",name:"Kasana Guides & Tutorials",itemListElement:jw.map((e,t)=>
1810({"@type":"ListItem",position:t+1,name:e.title,description:e.snippet,url:wn(e.href)}))},dl([{name:"Home",path:"/"},{name:"Docs",path:"/docs"}])]}),c.jsxs("div",{className:"relative min-h-screen flex flex-col bg-white",children:[c.jsx(_t,{}),c.jsx(mr,{showRadialGradient:!0,className:"min-h-0 pt-16",children:c.jsxs("div",{className:"flex flex-col items-center justify-center text-center px-4 sm:px-6 lg:px-8 py-16 md:py-24 w-full",children:[c.jsx("p",{className:"text-xs font-semibold tracking-widest text-slate-500 uppercase mb-4",children:"Documentation"}),c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl font-bold text-slate-900 leading-tight tracking-tight mb-5 font-primary max-w-2xl",children:"Guides & Tutorials"}),c.jsx("p",{className:"text-lg text-slate-600 leading-relaxed max-w-xl",children:"Step-by-step setup guides and how-tos to get the most out of Kasana."})]})}),c.jsx("main",{className:"flex-1 pb-24 px-4 sm:px-6 lg:px-8",children:c.jsxs("div",{className:"max-w-3xl mx-auto pt-14",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-8",children:[c.jsx(Jw,{className:"w-4 h-4 text-slate-400"}),c.jsx("span",{className:"text-xs font-semibold tracking-widest text-slate-400 uppercase",children:"All guides"})]}),c.jsx("div",{className:"grid gap-6",children:jw.map(e=>c.jsx("a",{href:e.href,className:"group block rounded-2xl border border-slate-200 bg-white p-6 shadow-sm hover:shadow-md hover:border-slate-300 transition-all duration-200",children:c.jsx("div",{className:"flex items-start",children:c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-xs font-semibold tracking-widest text-slate-400 uppercase mb-1",children:e.category}),c.jsx("h2",{className:"text-lg font-semibold text-slate-900 font-primary leading-snug mb-2 group-hover:text-[#1A8CFF] transition-colors",children:e.title}),c.jsx("p",{className:"text-sm text-slate-500 leading-relaxed mb-4 line-clamp-3",children:e.snippet}),c.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[c.jsx("div",{className:"flex flex-wrap gap-2",children:e.tags.map(t=>c.jsx("span",{className:"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-0.5 text-xs font-medium text-slate-600",children:t},t))}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-sm font-semibold text-[#1A8CFF] group-hover:gap-2 transition-all",children:["Read guide",c.jsx(Qw,{className:"w-4 h-4"})]})]})]})})},e.href))}),c.jsx("p",{className:"mt-10 text-center text-sm text-slate-400",children:"More guides coming soon â check back regularly."})]})}),c.jsx(Rt,{})]})}function NB(){MU();const t=x.useMemo(()=>$n.getConfig(),[]).defaultRoute??"/",a=t.startsWith("/")?t:"/",s=a!=="/";return c.jsxs(__,{children:[c.jsx(qe,{path:"/",element:s?c.jsx(Ic,{to:a,replace:!0}):c.jsx(DU,{})}),c.jsx(qe,{path:"/login",element:c.jsx(Ic,{to:"/login/app-apple-auth",replace:!0})}),c.jsx(qe,{path:"/login/app-apple-auth",element:c.jsx(zU,{})}),c.jsx(qe,{path:"/login/success",element:c.jsx(zh,{})}),c.jsx(qe,{path:"/auth-success",element:c.jsx(zh,{})}),c.jsx(qe,{path:"/auth-success.html",element:c.jsx(zh,{})}),c.jsx(qe,{path:"/login/callback",element:c.jsx(VU,{})}),c.jsx(qe,{path:"/signup",element:c.jsx(HU,{})}),c.jsx(qe,{path:"/beta-login",element:c.jsx($U,{})}),c.jsx(qe,{path:"/legal/terms-of-use",element:c.jsx(OU,{})}),c.jsx(qe,{path:"/legal/privacy",element:c.jsx(PU,{})}),c.jsx(qe,{path:"/footer-demo",element:c.jsx(GU,{})}),c.jsx(qe,{path:"/roadmap",element:c.jsx(ZU,{})}),c.jsx(qe,{path:"/blog",element:c.jsx(lB,{})}),c.jsx(qe,{path:"/blog/admin",element:c.jsx(bB,{})}),c.jsx(qe,{path:"/blog/login",element:c.jsx(Ic,{to:"/blog/admin",replace:!0})}),c.jsx(qe,{path:"/blog/edit",element:c.jsx(ww,{})}),c.jsx(qe,{path:"/blog/edit/:slug",element:c.jsx(ww,{})}),c.jsx(qe,{path:"/blog/:postId",element:c.jsx(hB,{})}),c.jsx(qe,{path:"/sessions/:sessionId",element:c.jsx(oB,{})}),c.jsx(qe,{path:"/docs",element:c.jsx(jB,{})}),c.jsx(qe,{path:"/tutorial/blackhole",element:c.jsx(SB,{})}),c.jsx(qe,{path:"/tutorial/stale-connection-timer",element:c.jsx(EB,{})}),c.jsx(qe,{path:"*",element:c.jsx(wB,{})})]})}bU();BC.createRoot(document.getElementById("root")).render(c.jsx(Fe.StrictMode,{children:c.jsx(L_,{children:c.jsx(l9,{children:c.jsx(NB,{})})})}));
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.