openmerit 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +12 -25
- package/dist/pi/scout-extension.mjs +20 -0
- package/dist/terminal/scout-update.json +1 -1
- package/dist/terminal/src/browser.mjs +2 -4
- package/dist/terminal/src/cli.mjs +4 -56
- package/dist/terminal/src/install.mjs +2 -2
- package/dist/terminal/src/scout-instructions.js +20 -0
- package/dist/terminal/src/scout-pi.js +1 -1
- package/dist/terminal/src/scout.js +35 -9
- package/dist/terminal/src/telemetry.mjs +8 -60
- package/docs/agent-evaluations.md +8 -148
- package/docs/commands.md +3 -9
- package/docs/getting-started.md +2 -16
- package/docs/index.md +4 -18
- package/docs/inference-terminal.md +13 -594
- package/docs/roadmap.md +2 -2
- package/docs/scout-data-policy.md +2 -1
- package/docs/scout.md +21 -2
- package/docs/security.md +5 -18
- package/docs/testing.md +4 -16
- package/docs/troubleshooting.md +2 -2
- package/package.json +10 -23
- package/dist/eval/src/adapters.mjs +0 -112
- package/dist/eval/src/cli.mjs +0 -151
- package/dist/eval/src/config.mjs +0 -108
- package/dist/eval/src/process.mjs +0 -44
- package/dist/eval/src/report.mjs +0 -59
- package/dist/eval/src/runner.mjs +0 -123
- package/dist/eval/src/scout.mjs +0 -48
- package/dist/terminal/public/app.js +0 -298
- package/dist/terminal/public/brands/anthropic.png +0 -0
- package/dist/terminal/public/brands/baai.png +0 -0
- package/dist/terminal/public/brands/baseten.png +0 -0
- package/dist/terminal/public/brands/cerebras.png +0 -0
- package/dist/terminal/public/brands/cohere.png +0 -0
- package/dist/terminal/public/brands/deepseek.ico +0 -0
- package/dist/terminal/public/brands/google.png +0 -0
- package/dist/terminal/public/brands/groq.ico +0 -0
- package/dist/terminal/public/brands/huggingface.svg +0 -8
- package/dist/terminal/public/brands/lm-studio.png +0 -0
- package/dist/terminal/public/brands/meta.ico +0 -0
- package/dist/terminal/public/brands/mistral.png +0 -0
- package/dist/terminal/public/brands/nomic.png +0 -0
- package/dist/terminal/public/brands/ollama.png +0 -0
- package/dist/terminal/public/brands/openai.png +0 -0
- package/dist/terminal/public/brands/openrouter.png +0 -0
- package/dist/terminal/public/brands/qwen.png +0 -0
- package/dist/terminal/public/brands/vllm.png +0 -0
- package/dist/terminal/public/favicon.svg +0 -1
- package/dist/terminal/public/index.html +0 -22
- package/dist/terminal/public/styles.css +0 -921
- package/dist/terminal/src/activity-merge.mjs +0 -66
- package/dist/terminal/src/collect.mjs +0 -370
- package/dist/terminal/src/coverage.mjs +0 -33
- package/dist/terminal/src/discovery.mjs +0 -99
- package/dist/terminal/src/hardware.mjs +0 -57
- package/dist/terminal/src/history.mjs +0 -32
- package/dist/terminal/src/log-continuity.mjs +0 -26
- package/dist/terminal/src/project-activity.mjs +0 -157
- package/dist/terminal/src/repository-background.mjs +0 -37
- package/dist/terminal/src/repository-index.mjs +0 -267
- package/dist/terminal/src/repository-policy.mjs +0 -3
- package/dist/terminal/src/repository-syntax.mjs +0 -236
- package/dist/terminal/src/repository-worker.mjs +0 -15
- package/dist/terminal/src/sample.mjs +0 -171
- package/dist/terminal/src/scout-credentials.d.ts +0 -12
- package/dist/terminal/src/scout-credentials.ts +0 -44
- package/dist/terminal/src/scout-instructions.d.ts +0 -5
- package/dist/terminal/src/scout-instructions.ts +0 -119
- package/dist/terminal/src/scout-pi.d.ts +0 -44
- package/dist/terminal/src/scout-pi.ts +0 -76
- package/dist/terminal/src/scout.d.ts +0 -77
- package/dist/terminal/src/scout.ts +0 -164
- package/dist/terminal/src/server.mjs +0 -95
- package/dist/terminal/src/service-registry.mjs +0 -78
- package/dist/terminal/src/services.mjs +0 -44
- package/dist/terminal/src/topology.mjs +0 -30
- package/dist/terminal/src/updates.d.ts +0 -62
- package/dist/terminal/src/updates.ts +0 -313
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
var y2=Object.create;var Mp=Object.defineProperty;var b2=Object.getOwnPropertyDescriptor;var S2=Object.getOwnPropertyNames;var A2=Object.getPrototypeOf,E2=Object.prototype.hasOwnProperty;var ya=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}};var T2=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of S2(t))!E2.call(e,l)&&l!==n&&Mp(e,l,{get:()=>t[l],enumerable:!(a=b2(t,l))||a.enumerable});return e};var ka=(e,t,n)=>(n=e!=null?y2(A2(e)):{},T2(t||!e||!e.__esModule?Mp(n,"default",{value:e,enumerable:!0}):n,e));var M0=ya(W=>{"use strict";/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.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 Nd=Symbol.for("react.transitional.element"),VA=Symbol.for("react.portal"),XA=Symbol.for("react.fragment"),KA=Symbol.for("react.strict_mode"),IA=Symbol.for("react.profiler"),QA=Symbol.for("react.consumer"),ZA=Symbol.for("react.context"),JA=Symbol.for("react.forward_ref"),FA=Symbol.for("react.suspense"),WA=Symbol.for("react.memo"),g0=Symbol.for("react.lazy"),PA=Symbol.for("react.activity"),eE=Symbol.for("react.view_transition"),f0=Symbol.iterator;function tE(e){return e===null||typeof e!="object"?null:(e=f0&&e[f0]||e["@@iterator"],typeof e=="function"?e:null)}var v0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y0=Object.assign,b0={};function Fi(e,t,n){this.props=e,this.context=t,this.refs=b0,this.updater=n||v0}Fi.prototype.isReactComponent={};Fi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Fi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function S0(){}S0.prototype=Fi.prototype;function Od(e,t,n){this.props=e,this.context=t,this.refs=b0,this.updater=n||v0}var Cd=Od.prototype=new S0;Cd.constructor=Od;y0(Cd,Fi.prototype);Cd.isPureReactComponent=!0;var m0=Array.isArray;function _d(){}var Be={H:null,A:null,T:null,S:null},A0=Object.prototype.hasOwnProperty;function Dd(e,t,n){var a=n.ref;return{$$typeof:Nd,type:e,key:t,ref:a!==void 0?a:null,props:n}}function nE(e,t){return Dd(e.type,t,e.props)}function zd(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nd}function aE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var h0=/\/+/g;function Rd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?aE(""+e.key):t.toString(36)}function lE(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(_d,_d):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ji(e,t,n,a,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Nd:case VA:o=!0;break;case g0:return o=e._init,Ji(o(e._payload),t,n,a,l)}}if(o)return l=l(e),o=a===""?"."+Rd(e,0):a,m0(l)?(n="",o!=null&&(n=o.replace(h0,"$&/")+"/"),Ji(l,t,n,"",function(c){return c})):l!=null&&(zd(l)&&(l=nE(l,n+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(h0,"$&/")+"/")+o)),t.push(l)),1;o=0;var s=a===""?".":a+":";if(m0(e))for(var r=0;r<e.length;r++)a=e[r],i=s+Rd(a,r),o+=Ji(a,t,n,i,l);else if(r=tE(e),typeof r=="function")for(e=r.call(e),r=0;!(a=e.next()).done;)a=a.value,i=s+Rd(a,r++),o+=Ji(a,t,n,i,l);else if(i==="object"){if(typeof e.then=="function")return Ji(lE(e),t,n,a,l);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function Fr(e,t,n){if(e==null)return e;var a=[],l=0;return Ji(e,a,"","",function(i){return t.call(n,i,l++)}),a}function iE(e){if(e._status===-1){var t=e._result,n=t();n.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a,n.status===void 0&&(n.status="fulfilled",n.value=a))},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a,n.status===void 0&&(n.status="rejected",n.reason=a))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var p0=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function E0(e){var t=Be.T,n={};n.types=t!==null?t.types:null,Be.T=n;try{var a=e(),l=Be.S;l!==null&&l(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(_d,p0)}catch(i){p0(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),Be.T=t}}function T0(e){var t=Be.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else E0(T0.bind(null,e))}var oE={map:Fr,forEach:function(e,t,n){Fr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fr(e,function(){t++}),t},toArray:function(e){return Fr(e,function(t){return t})||[]},only:function(e){if(!zd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Activity=PA;W.Children=oE;W.Component=Fi;W.Fragment=XA;W.Profiler=IA;W.PureComponent=Od;W.StrictMode=KA;W.Suspense=FA;W.ViewTransition=eE;W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Be;W.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Be.H.useMemoCache(e)}};W.addTransitionType=T0;W.cache=function(e){return function(){return e.apply(null,arguments)}};W.cacheSignal=function(){return null};W.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=y0({},e.props),l=e.key;if(t!=null)for(i in t.key!==void 0&&(l=""+t.key),t)!A0.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(a[i]=t[i]);var i=arguments.length-2;if(i===1)a.children=n;else if(1<i){for(var o=Array(i),s=0;s<i;s++)o[s]=arguments[s+2];a.children=o}return Dd(e.type,l,a)};W.createContext=function(e){return e={$$typeof:ZA,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:QA,_context:e},e};W.createElement=function(e,t,n){var a,l={},i=null;if(t!=null)for(a in t.key!==void 0&&(i=""+t.key),t)A0.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(l[a]=t[a]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var s=Array(o),r=0;r<o;r++)s[r]=arguments[r+2];l.children=s}if(e&&e.defaultProps)for(a in o=e.defaultProps,o)l[a]===void 0&&(l[a]=o[a]);return Dd(e,i,l)};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:JA,render:e}};W.isValidElement=zd;W.lazy=function(e){return{$$typeof:g0,_payload:{_status:-1,_result:e},_init:iE}};W.memo=function(e,t){return{$$typeof:WA,type:e,compare:t===void 0?null:t}};W.startTransition=E0;W.unstable_useCacheRefresh=function(){return Be.H.useCacheRefresh()};W.use=function(e){return Be.H.use(e)};W.useActionState=function(e,t,n){return Be.H.useActionState(e,t,n)};W.useCallback=function(e,t){return Be.H.useCallback(e,t)};W.useContext=function(e){return Be.H.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e,t){return Be.H.useDeferredValue(e,t)};W.useEffect=function(e,t){return Be.H.useEffect(e,t)};W.useEffectEvent=function(e){return Be.H.useEffectEvent(e)};W.useId=function(){return Be.H.useId()};W.useImperativeHandle=function(e,t,n){return Be.H.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Be.H.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Be.H.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Be.H.useMemo(e,t)};W.useOptimistic=function(e,t){return Be.H.useOptimistic(e,t)};W.useReducer=function(e,t,n){return Be.H.useReducer(e,t,n)};W.useRef=function(e){return Be.H.useRef(e)};W.useState=function(e){return Be.H.useState(e)};W.useSyncExternalStore=function(e,t,n){return Be.H.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Be.H.useTransition()};W.version="19.3.0"});var Ya=ya((F5,w0)=>{"use strict";w0.exports=M0()});var B0=ya(Ie=>{"use strict";/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.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
|
-
*/function Bd(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,l=e[a];if(0<Wr(l,t))e[a]=t,e[n]=l,n=a;else break e}}function Aa(e){return e.length===0?null:e[0]}function eu(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,l=e.length,i=l>>>1;a<i;){var o=2*(a+1)-1,s=e[o],r=o+1,c=e[r];if(0>Wr(s,n))r<l&&0>Wr(c,s)?(e[a]=c,e[r]=n,a=r):(e[a]=s,e[o]=n,a=o);else if(r<l&&0>Wr(c,n))e[a]=c,e[r]=n,a=r;else break e}}return t}function Wr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Ie.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(_0=performance,Ie.unstable_now=function(){return _0.now()}):(xd=Date,N0=xd.now(),Ie.unstable_now=function(){return xd.now()-N0});var _0,xd,N0,Ga=[],Tl=[],cE=1,kn=null,Xt=3,Hd=!1,hs=!1,ps=!1,qd=!1,D0=typeof setTimeout=="function"?setTimeout:null,z0=typeof clearTimeout=="function"?clearTimeout:null,O0=typeof setImmediate<"u"?setImmediate:null;function Pr(e){for(var t=Aa(Tl);t!==null;){if(t.callback===null)eu(Tl);else if(t.startTime<=e)eu(Tl),t.sortIndex=t.expirationTime,Bd(Ga,t);else break;t=Aa(Tl)}}function kd(e){if(ps=!1,Pr(e),!hs)if(Aa(Ga)!==null)hs=!0,Pi||(Pi=!0,Wi());else{var t=Aa(Tl);t!==null&&jd(kd,t.startTime-e)}}var Pi=!1,gs=-1,x0=5,L0=-1;function U0(){return qd?!0:!(Ie.unstable_now()-L0<x0)}function Ld(){if(qd=!1,Pi){var e=Ie.unstable_now();L0=e;var t=!0;try{e:{hs=!1,ps&&(ps=!1,z0(gs),gs=-1),Hd=!0;var n=Xt;try{t:{for(Pr(e),kn=Aa(Ga);kn!==null&&!(kn.expirationTime>e&&U0());){var a=kn.callback;if(typeof a=="function"){kn.callback=null,Xt=kn.priorityLevel;var l=a(kn.expirationTime<=e);if(e=Ie.unstable_now(),typeof l=="function"){kn.callback=l,Pr(e),t=!0;break t}kn===Aa(Ga)&&eu(Ga),Pr(e)}else eu(Ga);kn=Aa(Ga)}if(kn!==null)t=!0;else{var i=Aa(Tl);i!==null&&jd(kd,i.startTime-e),t=!1}}break e}finally{kn=null,Xt=n,Hd=!1}t=void 0}}finally{t?Wi():Pi=!1}}}var Wi;typeof O0=="function"?Wi=function(){O0(Ld)}:typeof MessageChannel<"u"?(Ud=new MessageChannel,C0=Ud.port2,Ud.port1.onmessage=Ld,Wi=function(){C0.postMessage(null)}):Wi=function(){D0(Ld,0)};var Ud,C0;function jd(e,t){gs=D0(function(){e(Ie.unstable_now())},t)}Ie.unstable_IdlePriority=5;Ie.unstable_ImmediatePriority=1;Ie.unstable_LowPriority=4;Ie.unstable_NormalPriority=3;Ie.unstable_Profiling=null;Ie.unstable_UserBlockingPriority=2;Ie.unstable_cancelCallback=function(e){e.callback=null};Ie.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x0=0<e?Math.floor(1e3/e):5};Ie.unstable_getCurrentPriorityLevel=function(){return Xt};Ie.unstable_next=function(e){switch(Xt){case 1:case 2:case 3:var t=3;break;default:t=Xt}var n=Xt;Xt=t;try{return e()}finally{Xt=n}};Ie.unstable_requestPaint=function(){qd=!0};Ie.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Xt;Xt=e;try{return t()}finally{Xt=n}};Ie.unstable_scheduleCallback=function(e,t,n){var a=Ie.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=n+l,e={id:cE++,callback:t,priorityLevel:e,startTime:n,expirationTime:l,sortIndex:-1},n>a?(e.sortIndex=n,Bd(Tl,e),Aa(Ga)===null&&e===Aa(Tl)&&(ps?(z0(gs),gs=-1):ps=!0,jd(kd,n-a))):(e.sortIndex=l,Bd(Ga,e),hs||Hd||(hs=!0,Pi||(Pi=!0,Wi()))),e};Ie.unstable_shouldYield=U0;Ie.unstable_wrapCallback=function(e){var t=Xt;return function(){var n=Xt;Xt=t;try{return e.apply(this,arguments)}finally{Xt=n}}}});var q0=ya((t$,H0)=>{"use strict";H0.exports=B0()});var Y0=ya(Kt=>{"use strict";/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-dom.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 dE=Ya();function j0(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ml(){}var Pt={d:{f:Ml,r:function(){throw Error(j0(522))},D:Ml,C:Ml,L:Ml,m:Ml,X:Ml,S:Ml,M:Ml},p:0,findDOMNode:null},fE=Symbol.for("react.portal"),mE=Symbol.for("react.recoverable"),k0=Symbol.for("react.optimistic_key");function hE(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fE,key:a==null?null:a===k0?k0:""+a,children:e,containerInfo:t,implementation:n}}var vs=dE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function tu(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Pt;Kt.browser=function(e){return{$$typeof:mE,_reason:e}};Kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(j0(299));return hE(e,t,null,n)};Kt.flushSync=function(e){var t=vs.T,n=Pt.p;try{if(vs.T=null,Pt.p=2,e)return e()}finally{vs.T=t,Pt.p=n,Pt.d.f()}};Kt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Pt.d.C(e,t))};Kt.prefetchDNS=function(e){typeof e=="string"&&Pt.d.D(e)};Kt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=tu(n,t.crossOrigin),l=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Pt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:l,fetchPriority:i}):n==="script"&&Pt.d.X(e,{crossOrigin:a,integrity:l,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Kt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=tu(t.as,t.crossOrigin);Pt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Pt.d.M(e)};Kt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=tu(n,t.crossOrigin);Pt.d.L(e,n,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Kt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=tu(t.as,t.crossOrigin);Pt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Pt.d.m(e)};Kt.requestFormReset=function(e){Pt.d.r(e)};Kt.unstable_batchedUpdates=function(e,t){return e(t)};Kt.useFormState=function(e,t,n){return vs.H.useFormState(e,t,n)};Kt.useFormStatus=function(){return vs.H.useHostTransitionStatus()};Kt.version="19.3.0"});var X0=ya((a$,V0)=>{"use strict";function G0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(G0)}catch(e){console.error(e)}}G0(),V0.exports=Y0()});var Cb=ya(Uc=>{"use strict";/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom-client.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 bt=q0(),Ov=Ya(),pE=X0();function N(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Cv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function lr(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Dv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function zv(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function K0(e){if(lr(e)!==e)throw Error(N(188))}function gE(e){var t=e.alternate;if(!t){if(t=lr(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,a=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return K0(l),e;if(i===a)return K0(l),t;i=i.sibling}throw Error(N(188))}if(n.return!==a.return)n=l,a=i;else{for(var o=!1,s=l.child;s;){if(s===n){o=!0,n=l,a=i;break}if(s===a){o=!0,a=l,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,a=l;break}if(s===a){o=!0,a=i,n=l;break}s=s.sibling}if(!o)throw Error(N(189))}}if(n.alternate!==a)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function xv(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=xv(e),t!==null)return t;e=e.sibling}return null}function yn(e,t,n,a,l,i){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,a,l,i)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&yn(e.child,t,n,a,l,i))return!0;e=e.sibling}return!1}function Di(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function I0(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Lv(e){var t=[null,null],n=Di(e);return n===null||Uv(t,e,n.child,{foundSelf:!1}),t}function Uv(e,t,n,a){for(;n!==null;){if(n===t)a.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(a.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Uv(e,t,n.child,a))return!0;n=n.sibling}return!1}function yt(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(N(559))}}var oo=null,Sf=null;function vE(e,t,n){return e===n?!0:e===t?(oo=e,!0):!1}function yE(e,t,n){return e===n?(Sf=e,!1):e===t?(Sf!==null&&(oo=e),!0):!1}function Q0(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Af(e,t,n){for(var a=0,l=e;l;l=n(l))a++;l=0;for(var i=t;i;i=n(i))l++;for(;0<a-l;)e=n(e),a--;for(;0<l-a;)t=n(t),l--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Le=Object.assign,bE=Symbol.for("react.element"),nu=Symbol.for("react.transitional.element"),Ms=Symbol.for("react.portal"),so=Symbol.for("react.fragment"),Bv=Symbol.for("react.strict_mode"),Ef=Symbol.for("react.profiler"),Hv=Symbol.for("react.consumer"),Ra=Symbol.for("react.context"),Cm=Symbol.for("react.forward_ref"),Tf=Symbol.for("react.suspense"),Mf=Symbol.for("react.suspense_list"),Dm=Symbol.for("react.memo"),_l=Symbol.for("react.lazy"),wf=Symbol.for("react.activity"),SE=Symbol.for("react.legacy_hidden"),AE=Symbol.for("react.memo_cache_sentinel"),$f=Symbol.for("react.view_transition"),EE=Symbol.for("react.recoverable"),Z0=Symbol.iterator;function ys(e){return e===null||typeof e!="object"?null:(e=Z0&&e[Z0]||e["@@iterator"],typeof e=="function"?e:null)}var TE=Symbol.for("react.client.reference");function Rf(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===TE?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case so:return"Fragment";case Ef:return"Profiler";case Bv:return"StrictMode";case Tf:return"Suspense";case Mf:return"SuspenseList";case wf:return"Activity";case $f:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Ms:return"Portal";case Ra:return e.displayName||"Context";case Hv:return(e._context.displayName||"Context")+".Consumer";case Cm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Dm:return t=e.displayName||null,t!==null?t:Rf(e.type)||"Memo";case _l:t=e._payload,e=e._init;try{return Rf(e(t))}catch{}}return null}var ws=Array.isArray,Q=Ov.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=pE.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bi={pending:!1,data:null,method:null,action:null},_f=[],ro=-1;function xa(e){return{current:e}}function Bt(e){0>ro||(e.current=_f[ro],_f[ro]=null,ro--)}function ke(e,t){ro++,_f[ro]=e.current,e.current=t}var Ca=xa(null),Ys=xa(null),Bl=xa(null),Yu=xa(null);function Gu(e,t){switch(ke(Bl,t),ke(Ys,e),ke(Ca,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?uv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=uv(t),e=ob(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Bt(Ca),ke(Ca,e)}function No(){Bt(Ca),Bt(Ys),Bt(Bl)}function Nf(e){var t=e.memoizedState;t!==null&&(qo._currentValue=t.memoizedState,ke(Yu,e)),t=Ca.current;var n=ob(t,e.type);t!==n&&(ke(Ys,e),ke(Ca,n))}function Vu(e){Ys.current===e&&(Bt(Ca),Bt(Ys)),Yu.current===e&&(Bt(Yu),qo._currentValue=bi)}var Yd,J0;function $l(e){if(Yd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yd=t&&t[1]||"",J0=-1<n.stack.indexOf(`
|
|
34
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
35
|
-
`+Yd+e+J0}var Gd=!1;function Vd(e,t){if(!e||Gd)return"";Gd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(v){var f=v}Reflect.construct(e,[],m)}else{try{m.call()}catch(v){f=v}m=!1;try{var d=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),m=!0,new e}finally{m&&(d!==void 0?Object.defineProperty(e.prototype,"props",d):delete e.prototype.props)}}}else{try{throw Error()}catch(v){f=v}(m=e())&&typeof m.catch=="function"&&m.catch(function(){})}}catch(v){if(v&&f&&typeof v.stack=="string")return[v.stack,f.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),o=i[0],s=i[1];if(o&&s){var r=o.split(`
|
|
36
|
-
`),c=s.split(`
|
|
37
|
-
`);for(l=a=0;a<r.length&&!r[a].includes("DetermineComponentFrameRoot");)a++;for(;l<c.length&&!c[l].includes("DetermineComponentFrameRoot");)l++;if(a===r.length||l===c.length)for(a=r.length-1,l=c.length-1;1<=a&&0<=l&&r[a]!==c[l];)l--;for(;1<=a&&0<=l;a--,l--)if(r[a]!==c[l]){if(a!==1||l!==1)do if(a--,l--,0>l||r[a]!==c[l]){var u=`
|
|
38
|
-
`+r[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{Gd=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?$l(n):""}function ME(e,t){switch(e.tag){case 26:case 27:case 5:return $l(e.type);case 16:return $l("Lazy");case 13:return e.child!==t&&t!==null?$l("Suspense Fallback"):$l("Suspense");case 19:return $l("SuspenseList");case 0:case 15:return Vd(e.type,!1);case 11:return Vd(e.type.render,!1);case 1:return Vd(e.type,!0);case 31:return $l("Activity");case 30:return $l("ViewTransition");default:return""}}function F0(e){try{var t="",n=null;do t+=ME(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
39
|
-
Error generating stack: `+a.message+`
|
|
40
|
-
`+a.stack}}var Of=Object.prototype.hasOwnProperty,zm=bt.unstable_scheduleCallback,Xd=bt.unstable_cancelCallback,wE=bt.unstable_shouldYield,$E=bt.unstable_requestPaint,_n=bt.unstable_now,RE=bt.unstable_getCurrentPriorityLevel,qv=bt.unstable_ImmediatePriority,kv=bt.unstable_UserBlockingPriority,Xu=bt.unstable_NormalPriority,_E=bt.unstable_LowPriority,jv=bt.unstable_IdlePriority,NE=bt.log,OE=bt.unstable_setDisableYieldValue,ir=null,Nn=null;function Cl(e){if(typeof NE=="function"&&OE(e),Nn&&typeof Nn.setStrictMode=="function")try{Nn.setStrictMode(ir,e)}catch{}}var On=Math.clz32?Math.clz32:zE,CE=Math.log,DE=Math.LN2;function zE(e){return e>>>=0,e===0?32:31-(CE(e)/DE|0)|0}var au=256,lu=262144,iu=4194304;function hi(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function vc(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var l=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~i,a!==0?l=hi(a):(o&=s,o!==0?l=hi(o):n||(n=s&~e,n!==0&&(l=hi(n))))):(s=a&~i,s!==0?l=hi(s):o!==0?l=hi(o):n||(n=a&~e,n!==0&&(l=hi(n)))),l===0?0:t!==0&&t!==l&&(t&i)===0&&(i=l&-l,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:l}function or(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yv(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-On(n),l=1<<a;t|=e[a],n&=~l}return t}function xE(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+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 Gv(){var e=iu;return iu<<=1,(iu&62914560)===0&&(iu=4194304),e}function Kd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function LE(e,t,n,a,l,i){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,r=e.expirationTimes,c=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-On(n),m=1<<u;s[u]=0,r[u]=-1;var f=c[u];if(f!==null)for(c[u]=null,u=0;u<f.length;u++){var d=f[u];d!==null&&(d.lane&=-536870913)}n&=~m}a!==0&&Vv(e,a,0),i!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Vv(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-On(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Xv(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-On(n),l=1<<a;l&t|e[a]&t&&(e[a]|=t),n&=~l}}function Kv(e,t){var n=t&-t;return n=(n&42)!==0?1:xm(n),(n&(e.suspendedLanes|t))!==0?0:n}function xm(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Lm(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Iv(){var e=Ae.p;return e!==0?e:(e=window.event,e===void 0?32:_b(e.type))}function W0(e,t){var n=Ae.p;try{return Ae.p=e,t()}finally{Ae.p=n}}var nl=Math.random().toString(36).slice(2),Lt="__reactFiber$"+nl,bn="__reactProps$"+nl,Yo="__reactContainer$"+nl,P0="__reactEvents$"+nl,UE="__reactListeners$"+nl,BE="__reactHandles$"+nl,eg="__reactResources$"+nl,rr="__reactMarker$"+nl,Ku="__reactLoad$"+nl;function yc(e){delete e[Lt],delete e[bn],delete e[UE],delete e[BE]}function vi(e){var t;if(t=e[Lt])return t;for(var n=e.parentNode;n;){if(t=n[Yo]||n[Lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vv(e);e!==null;){if(n=e[Lt])return n;e=vv(e)}return t}e=n,n=e.parentNode}return null}function Go(e){if(e=e[Lt]||e[Yo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function $s(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(N(33))}function bo(e){var t=e[eg];return t||(t=e[eg]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function _t(e){e[rr]=!0}function Qv(e){e[Ku]=void 0}var Zv=new Set,Jv={};function zi(e,t){Oo(e,t),Oo(e+"Capture",t)}function Oo(e,t){for(Jv[e]=t,e=0;e<t.length;e++)Zv.add(t[e])}var HE=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]*$"),tg={},ng={};function qE(e){return Of.call(ng,e)?!0:Of.call(tg,e)?!1:HE.test(e)?ng[e]=!0:(tg[e]=!0,!1)}var ge=!1;function ag(){var e=ge;return ge=!1,e}function Tu(e,t,n){if(qE(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function ou(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function Va(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,a)}}function Mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kE(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cf(e){if(!e._valueTracker){var t=Fv(e)?"checked":"value";e._valueTracker=kE(e,t,""+e[t])}}function Wv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Fv(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}var jE=/[\n"\\]/g;function Xn(e){return e.replace(jE,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Df(e,t,n,a,l,i,o,s){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Mn(t)):e.value!==""+Mn(t)&&(e.value=""+Mn(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?Id(e,Mn(e.value)):Id(e,Mn(t)):n!=null?Id(e,Mn(n)):a!=null&&e.removeAttribute("value"),l==null&&i!=null&&(e.defaultChecked=!!i),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Mn(s):e.removeAttribute("name")}function Pv(e,t,n,a,l,i,o,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Cf(e);return}n=n!=null?""+Mn(n):"",t=t!=null?""+Mn(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Cf(e)}function Id(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function So(e,t,n,a){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Mn(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,a&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function e1(e,t,n){if(t!=null&&(t=""+Mn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Mn(n):""}function t1(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(N(92));if(ws(a)){if(1<a.length)throw Error(N(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Mn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Cf(e)}function Co(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var YE=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 lg(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||YE.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function n1(e,t,n){if(t!=null&&typeof t!="object")throw Error(N(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",ge=!0);for(var l in t)a=t[l],t.hasOwnProperty(l)&&n[l]!==a&&(lg(e,l,a),ge=!0)}else for(var i in t)t.hasOwnProperty(i)&&lg(e,i,t[i])}function Um(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var GE=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"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),VE=/^[\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 Mu(e){return VE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _a(){}var zf=null;function Bm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uo=null,Ao=null;function ig(e){var t=Go(e);if(t&&(e=t.stateNode)){var n=e[bn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Df(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Xn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var l=a[bn]||null;if(!l)throw Error(N(90));Df(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Wv(a)}break e;case"textarea":e1(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&So(e,!!n.multiple,t,!1)}}}var Qd=!1;function a1(e,t,n){if(Qd)return e(t,n);Qd=!0;try{var a=e(t);return a}finally{if(Qd=!1,(uo!==null||Ao!==null)&&(Dc(),uo&&(t=uo,e=Ao,Ao=uo=null,ig(t),e)))for(t=0;t<e.length;t++)ig(e[t])}}function Gs(e,t){var n=e.stateNode;if(n===null)return null;var a=n[bn]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(N(231,t,typeof n));return n}var Ja=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xf=!1;if(Ja)try{eo={},Object.defineProperty(eo,"passive",{get:function(){xf=!0}}),window.addEventListener("test",eo,eo),window.removeEventListener("test",eo,eo)}catch{xf=!1}var eo,Dl=null,Hm=null,wu=null;function l1(){if(wu)return wu;var e,t=Hm,n=t.length,a,l="value"in Dl?Dl.value:Dl.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(a=1;a<=o&&t[n-a]===l[i-a];a++);return wu=l.slice(e,1<a?1-a:void 0)}function $u(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function su(){return!0}function og(){return!1}function an(e){function t(n,a,l,i,o){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?su:og,this.isPropagationStopped=og,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=su)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=su)},persist:function(){},isPersistent:su}),t}var Wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bc=an(Wl),ur=Le({},Wl,{view:0,detail:0}),XE=an(ur),Zd,Jd,bs,Sc=Le({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bs&&(bs&&e.type==="mousemove"?(Zd=e.screenX-bs.screenX,Jd=e.screenY-bs.screenY):Jd=Zd=0,bs=e),Zd)},movementY:function(e){return"movementY"in e?e.movementY:Jd}}),sg=an(Sc),KE=Le({},Sc,{dataTransfer:0}),IE=an(KE),QE=Le({},ur,{relatedTarget:0}),Fd=an(QE),ZE=Le({},Wl,{animationName:0,elapsedTime:0,pseudoElement:0}),JE=an(ZE),FE=Le({},Wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),WE=an(FE),PE=Le({},Wl,{data:0}),rg=an(PE),eT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tT={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"},nT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nT[e])?!!t[e]:!1}function qm(){return aT}var lT=Le({},ur,{key:function(e){if(e.key){var t=eT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$u(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qm,charCode:function(e){return e.type==="keypress"?$u(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$u(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iT=an(lT),oT=Le({},Sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ug=an(oT),sT=Le({},Wl,{submitter:0}),rT=an(sT),uT=Le({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qm}),cT=an(uT),dT=Le({},Wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),fT=an(dT),mT=Le({},Sc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),hT=an(mT),pT=Le({},Wl,{newState:0,oldState:0,source:0}),gT=an(pT),vT=[9,13,27,32],km=Ja&&"CompositionEvent"in window,Ns=null;Ja&&"documentMode"in document&&(Ns=document.documentMode);var yT=Ja&&"TextEvent"in window&&!Ns,i1=Ja&&(!km||Ns&&8<Ns&&11>=Ns),cg=" ",dg=!1;function o1(e,t){switch(e){case"keyup":return vT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function s1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var co=!1;function bT(e,t){switch(e){case"compositionend":return s1(t);case"keypress":return t.which!==32?null:(dg=!0,cg);case"textInput":return e=t.data,e===cg&&dg?null:e;default:return null}}function ST(e,t){if(co)return e==="compositionend"||!km&&o1(e,t)?(e=l1(),wu=Hm=Dl=null,co=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return i1&&t.locale!=="ko"?null:t.data;default:return null}}var AT={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 fg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!AT[e.type]:t==="textarea"}function r1(e,t,n,a){uo?Ao?Ao.push(a):Ao=[a]:uo=a,t=hc(t,"onChange"),0<t.length&&(n=new bc("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Os=null,Vs=null;function ET(e){ab(e,0)}function Ac(e){var t=$s(e);if(Wv(t))return e}function mg(e,t){if(e==="change")return t}var u1=!1;Ja&&(Ja?(uu="oninput"in document,uu||(Wd=document.createElement("div"),Wd.setAttribute("oninput","return;"),uu=typeof Wd.oninput=="function"),ru=uu):ru=!1,u1=ru&&(!document.documentMode||9<document.documentMode));var ru,uu,Wd;function hg(){Os&&(Os.detachEvent("onpropertychange",c1),Vs=Os=null)}function c1(e){if(e.propertyName==="value"&&Ac(Vs)){var t=[];r1(t,Vs,e,Bm(e)),a1(ET,t)}}function TT(e,t,n){e==="focusin"?(hg(),Os=t,Vs=n,Os.attachEvent("onpropertychange",c1)):e==="focusout"&&hg()}function MT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ac(Vs)}function wT(e,t){if(e==="click")return Ac(t)}function $T(e,t){if(e==="input"||e==="change")return Ac(t)}function RT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dn=typeof Object.is=="function"?Object.is:RT;function Xs(e,t){if(Dn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!Of.call(t,l)||!Dn(e[l],t[l]))return!1}return!0}function Lf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function pg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gg(e,t){var n=pg(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pg(n)}}function d1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?d1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function f1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lf(e.document)}return t}function jm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var _T=Ja&&"documentMode"in document&&11>=document.documentMode,fo=null,Uf=null,Cs=null,Bf=!1;function vg(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bf||fo==null||fo!==Lf(a)||(a=fo,"selectionStart"in a&&jm(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Cs&&Xs(Cs,a)||(Cs=a,a=hc(Uf,"onSelect"),0<a.length&&(t=new bc("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=fo)))}function fi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mo={animationend:fi("Animation","AnimationEnd"),animationiteration:fi("Animation","AnimationIteration"),animationstart:fi("Animation","AnimationStart"),transitionrun:fi("Transition","TransitionRun"),transitionstart:fi("Transition","TransitionStart"),transitioncancel:fi("Transition","TransitionCancel"),transitionend:fi("Transition","TransitionEnd")},Pd={},m1={};Ja&&(m1=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);function xi(e){if(Pd[e])return Pd[e];if(!mo[e])return e;var t=mo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in m1)return Pd[e]=t[n];return e}var h1=xi("animationend"),p1=xi("animationiteration"),g1=xi("animationstart"),NT=xi("transitionrun"),OT=xi("transitionstart"),CT=xi("transitioncancel"),v1=xi("transitionend"),y1=new Map,Hf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hf.push("scrollEnd");function ra(e,t){y1.set(e,t),zi(t,[e])}var DT=0;function Fa(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=sa.identifierPrefix;var n=DT++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function yg(e){if(e==null||typeof e=="string")return e;var t=null,n=_o;if(n!==null)for(var a=0;a<n.length;a++){var l=e[n[a]];if(l!=null){if(l==="none")return"none";t=t==null?l:t+(" "+l)}}return t??e.default}function al(e,t){return e=yg(e),t=yg(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Iu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Yn=[],ho=0,Ym=0;function Ec(){for(var e=ho,t=Ym=ho=0;t<e;){var n=Yn[t];Yn[t++]=null;var a=Yn[t];Yn[t++]=null;var l=Yn[t];Yn[t++]=null;var i=Yn[t];if(Yn[t++]=null,a!==null&&l!==null){var o=a.pending;o===null?l.next=l:(l.next=o.next,o.next=l),a.pending=l}i!==0&&b1(n,l,i)}}function Tc(e,t,n,a){Yn[ho++]=e,Yn[ho++]=t,Yn[ho++]=n,Yn[ho++]=a,Ym|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Gm(e,t,n,a){return Tc(e,t,n,a),Qu(e)}function Li(e,t){return Tc(e,null,null,t),Qu(e)}function b1(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var l=!1,i=e.return;i!==null;)i.childLanes|=n,a=i.alternate,a!==null&&(a.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(l=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,l&&t!==null&&(l=31-On(n),e=i.hiddenUpdates,a=e[l],a===null?e[l]=[t]:a.push(t),t.lane=n|536870912),i):null}function Qu(e){if(50<js)throw js=0,Uu=null,Error(N(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var po={};function zT(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gn(e,t,n,a){return new zT(e,t,n,a)}function Vm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qa(e,t){var n=e.alternate;return n===null?(n=gn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function S1(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ru(e,t,n,a,l,i){var o=0;if(a=e,typeof a=="function")Vm(a)&&(o=1);else if(typeof a=="string")o=i3(e,n,Ca.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case wf:return e=gn(31,n,t,l),e.elementType=wf,e.lanes=i,e;case so:return Si(n.children,l,i,t);case Bv:o=8,l|=24;break;case Ef:return e=gn(12,n,t,l|2),e.elementType=Ef,e.lanes=i,e;case Tf:return e=gn(13,n,t,l),e.elementType=Tf,e.lanes=i,e;case Mf:return e=gn(19,n,t,l),e.elementType=Mf,e.lanes=i,e;case SE:case $f:return e=l|32,e=gn(30,n,t,e),e.elementType=$f,e.lanes=i,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Ra:o=10;break e;case Hv:o=9;break e;case Cm:o=11;break e;case Dm:o=14;break e;case _l:o=16,a=null;break e}o=29,n=Error(N(130,e===null?"null":typeof e,"")),a=null}return t=gn(o,n,t,l),t.elementType=e,t.type=a,t.lanes=i,t}function Si(e,t,n,a){return e=gn(7,e,a,t),e.lanes=n,e}function ef(e,t,n){return e=gn(6,e,null,t),e.lanes=n,e}function A1(e){var t=gn(18,null,null,0);return t.stateNode=e,t}function tf(e,t,n){return t=gn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bg=new WeakMap;function Kn(e,t){if(typeof e=="object"&&e!==null){var n=bg.get(e);return n!==void 0?n:(t={value:e,source:t,stack:F0(t)},bg.set(e,t),t)}return{value:e,source:t,stack:F0(t)}}var go=[],vo=0,Zu=null,Ks=0,Gn=[],Vn=0,Il=null,Na=1,Oa="";function Ka(e,t){go[vo++]=Ks,go[vo++]=Zu,Zu=e,Ks=t}function E1(e,t,n){Gn[Vn++]=Na,Gn[Vn++]=Oa,Gn[Vn++]=Il,Il=e;var a=Na;e=Oa;var l=32-On(a)-1;a&=~(1<<l),n+=1;var i=32-On(t)+l;if(30<i){var o=l-l%5;i=(a&(1<<o)-1).toString(32),a>>=o,l-=o,Na=1<<32-On(t)+l|n<<l|a,Oa=i+e}else Na=1<<i|n<<l|a,Oa=e}function Mc(e){e.return!==null&&(Ka(e,1),E1(e,1,0))}function Xm(e){for(;e===Zu;)Zu=go[--vo],go[vo]=null,Ks=go[--vo],go[vo]=null;for(;e===Il;)Il=Gn[--Vn],Gn[Vn]=null,Oa=Gn[--Vn],Gn[Vn]=null,Na=Gn[--Vn],Gn[Vn]=null}function T1(e,t){Gn[Vn++]=Na,Gn[Vn++]=Oa,Gn[Vn++]=Il,Na=t.id,Oa=t.overflow,Il=e}var Nt=null,qe=null,oe=!1,Hl=null,In=!1,qf=Error(N(519));function Ql(e){var t=Error(N(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Is(Kn(t,e)),qf}function Sg(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Lt]=e,t[bn]=a,n){case"dialog":ue("cancel",t),ue("close",t);break;case"iframe":case"object":case"embed":ue("load",t);break;case"video":case"audio":for(n=0;n<Fs.length;n++)ue(Fs[n],t);break;case"source":ue("error",t);break;case"img":case"image":case"link":ue("error",t),ue("load",t);break;case"details":ue("toggle",t);break;case"input":ue("invalid",t),Pv(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ue("invalid",t);break;case"textarea":ue("invalid",t),t1(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||ib(t.textContent,n)?(a.popover!=null&&(ue("beforetoggle",t),ue("toggle",t)),a.onScroll!=null&&ue("scroll",t),a.onScrollEnd!=null&&ue("scrollend",t),a.onClick!=null&&(t.onclick=_a),t=!0):t=!1,t||Ql(e,!0)}function Ju(e){for(Nt=e.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:In=!1;return;case 27:case 3:In=!0;return;default:Nt=Nt.return}}function to(e){if(e!==Nt)return!1;if(!oe)return Ju(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Tm(e.type,e.memoizedProps)),n=!n),n&&qe&&Ql(e),Ju(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));qe=gv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));qe=gv(e)}else t===27?(t=qe,Pl(e.type)?(e=Rm,Rm=null,qe=e):qe=t):qe=Nt?Qn(e.stateNode.nextSibling):null;return!0}function Mi(){qe=Nt=null,oe=!1}function nf(){var e=Hl;return e!==null&&(hn===null?hn=e:hn.push.apply(hn,e),Hl=null),e}function Is(e){Hl===null?Hl=[e]:Hl.push(e)}var kf=xa(null),Ui=null,Ia=null;function zl(e,t,n){ke(kf,t._currentValue),t._currentValue=n}function Za(e){e._currentValue=kf.current,Bt(kf)}function _u(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function jf(e,t,n,a){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var i=l.dependencies;if(i!==null){var o=l.child;i=i.firstContext;e:for(;i!==null;){var s=i;i=l;for(var r=0;r<t.length;r++)if(s.context===t[r]){i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),_u(i.return,n,e),a||(o=null);break e}i=s.next}}else if(l.tag===18){if(o=l.return,o===null)throw Error(N(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),_u(o,n,e),o=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),_u(l.return,n,e),o=l.child,o=o!==null?o.sibling:null):o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===e){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}}function wi(e,t,n,a){e=null;for(var l=t,i=!1;l!==null;){if(!i){if((l.flags&524288)!==0)i=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var o=l.alternate;if(o===null)throw Error(N(387));if(o=o.memoizedProps,o!==null){var s=l.type;Dn(l.pendingProps.value,o.value)||(e!==null?e.push(s):e=[s])}}else if(l===Yu.current){if(o=l.alternate,o===null)throw Error(N(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(qo):e=[qo])}l=l.return}return e!==null&&jf(t,e,n,a),t.flags|=262144,e!==null}function Fu(e){for(e=e.firstContext;e!==null;){if(!Dn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Ui=e,Ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return M1(Ui,e)}function cu(e,t){return Ui===null&&$i(e),M1(e,t)}function M1(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ia===null){if(e===null)throw Error(N(308));Ia=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ia=Ia.next=t;return n}var xT=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},LT=bt.unstable_scheduleCallback,UT=bt.unstable_NormalPriority,ht={$$typeof:Ra,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Km(){return{controller:new xT,data:new Map,refCount:0}}function cr(e){e.refCount--,e.refCount===0&<(UT,function(){e.controller.abort()})}function Ag(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];n.indexOf(a)===-1&&n.push(a)}}}var Rs=null;function BT(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ds=null,Yf=0,Ri=0,Eo=null;function HT(e,t){if(Ds===null){var n=Ds=[];Yf=0,Ri=Sh(),Eo={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Yf++,t.then(Eg,Eg),t}function Eg(){if(--Yf===0&&(Rs=null,Ds!==null)){Eo!==null&&(Eo.status="fulfilled");var e=Ds;Ds=null,Ri=0,Eo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qT(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}var Tg=Q.S;Q.S=function(e,t){if(Yy=_n(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&HT(e,t),Rs!==null)for(var n=Uo;n!==null;)Ag(n,Rs),n=n.next;if(n=e.types,n!==null){for(var a=Uo;a!==null;)Ag(a,n),a=a.next;if(Ri!==0){a=Rs,a===null&&(a=Rs=[]);for(var l=0;l<n.length;l++){var i=n[l];a.indexOf(i)===-1&&a.push(i)}}}Tg!==null&&Tg(e,t)};var Ai=xa(null);function Im(){var e=Ai.current;return e!==null?e:xe.pooledCache}function Nu(e,t){t===null?ke(Ai,Ai.current):ke(Ai,t.pool)}function w1(){var e=Im();return e===null?null:{parent:ht._currentValue,pool:e}}var Vo=Error(N(460)),Qm=Error(N(474)),wc=Error(N(542)),Wu={then:function(){}};function Mg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $1(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(_a,_a),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$g(e),e===void 0&&!("reason"in t)?Error(N(600)):e;default:if(typeof t.status=="string")t.then(_a,_a);else{if(e=xe,e!==null&&100<e.shellSuspendCounter)throw Error(N(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=a}},function(a){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$g(e),e}throw Ei=t,Vo}}function pi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ei=n,Vo):n}}var Ei=null;function wg(){if(Ei===null)throw Error(N(459));var e=Ei;return Ei=null,e}function $g(e){if(e===Vo||e===wc)throw Error(N(483))}var To=null,Qs=0;function du(e){var t=Qs;return Qs+=1,To===null&&(To=[]),$1(To,e,t)}function wl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fu(e,t){throw t.$$typeof===bE?Error(N(525)):(e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function R1(e){function t(p,h){if(e){var g=p.deletions;g===null?(p.deletions=[h],p.flags|=16):g.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function a(p){for(var h=new Map;p!==null;)p.key===null?h.set(p.index,p):h.set(p.key,p),p=p.sibling;return h}function l(p,h){return p=Qa(p,h),p.index=0,p.sibling=null,p}function i(p,h,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<h?(p.flags|=2,h):g):(p.flags|=134217730,h)):(p.flags|=1048576,h)}function o(p){return e&&p.alternate===null&&(p.flags|=134217730),p}function s(p,h,g,y){return h===null||h.tag!==6?(h=ef(g,p.mode,y),h.return=p,h):(h=l(h,g),h.return=p,h)}function r(p,h,g,y){var M=g.type;return M===so?(p=u(p,h,g.props.children,y,g.key),wl(p,g),p):h!==null&&(h.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===_l&&pi(M)===h.type)?(h=l(h,g.props),wl(h,g),h.return=p,h):(h=Ru(g.type,g.key,g.props,null,p.mode,y),wl(h,g),h.return=p,h)}function c(p,h,g,y){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=tf(g,p.mode,y),h.return=p,h):(h=l(h,g.children||[]),h.return=p,h)}function u(p,h,g,y,M){return h===null||h.tag!==7?(h=Si(g,p.mode,y,M),h.return=p,h):(h=l(h,g),h.return=p,h)}function m(p,h,g){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=ef(""+h,p.mode,g),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case nu:return g=Ru(h.type,h.key,h.props,null,p.mode,g),wl(g,h),g.return=p,g;case Ms:return h=tf(h,p.mode,g),h.return=p,h;case _l:return h=pi(h),m(p,h,g)}if(ws(h)||ys(h))return h=Si(h,p.mode,g,null),h.return=p,h;if(typeof h.then=="function")return m(p,du(h),g);if(h.$$typeof===Ra)return m(p,cu(p,h),g);fu(p,h)}return null}function f(p,h,g,y){var M=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return M!==null?null:s(p,h,""+g,y);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case nu:return g.key===M?r(p,h,g,y):null;case Ms:return g.key===M?c(p,h,g,y):null;case _l:return g=pi(g),f(p,h,g,y)}if(ws(g)||ys(g))return M!==null?null:u(p,h,g,y,null);if(typeof g.then=="function")return f(p,h,du(g),y);if(g.$$typeof===Ra)return f(p,h,cu(p,g),y);fu(p,g)}return null}function d(p,h,g,y,M){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return p=p.get(g)||null,s(h,p,""+y,M);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case nu:return p=p.get(y.key===null?g:y.key)||null,r(h,p,y,M);case Ms:return p=p.get(y.key===null?g:y.key)||null,c(h,p,y,M);case _l:return y=pi(y),d(p,h,g,y,M)}if(ws(y)||ys(y))return p=p.get(g)||null,u(h,p,y,M,null);if(typeof y.then=="function")return d(p,h,g,du(y),M);if(y.$$typeof===Ra)return d(p,h,g,cu(h,y),M);fu(h,y)}return null}function v(p,h,g,y){for(var M=null,w=null,T=h,A=h=0,$=null;T!==null&&A<g.length;A++){T.index>A?($=T,T=null):$=T.sibling;var C=f(p,T,g[A],y);if(C===null){T===null&&(T=$);break}e&&T&&C.alternate===null&&t(p,T),h=i(C,h,A),w===null?M=C:w.sibling=C,w=C,T=$}if(A===g.length)return n(p,T),oe&&Ka(p,A),M;if(T===null){for(;A<g.length;A++)T=m(p,g[A],y),T!==null&&(h=i(T,h,A),w===null?M=T:w.sibling=T,w=T);return oe&&Ka(p,A),M}for(T=a(T);A<g.length;A++)$=d(T,p,A,g[A],y),$!==null&&(e&&(C=$.alternate,C!==null&&T.delete(C.key===null?A:C.key)),h=i($,h,A),w===null?M=$:w.sibling=$,w=$);return e&&T.forEach(function(D){return t(p,D)}),oe&&Ka(p,A),M}function b(p,h,g,y){if(g==null)throw Error(N(151));for(var M=null,w=null,T=h,A=h=0,$=null,C=g.next();T!==null&&!C.done;A++,C=g.next()){T.index>A?($=T,T=null):$=T.sibling;var D=f(p,T,C.value,y);if(D===null){T===null&&(T=$);break}e&&T&&D.alternate===null&&t(p,T),h=i(D,h,A),w===null?M=D:w.sibling=D,w=D,T=$}if(C.done)return n(p,T),oe&&Ka(p,A),M;if(T===null){for(;!C.done;A++,C=g.next())C=m(p,C.value,y),C!==null&&(h=i(C,h,A),w===null?M=C:w.sibling=C,w=C);return oe&&Ka(p,A),M}for(T=a(T);!C.done;A++,C=g.next())C=d(T,p,A,C.value,y),C!==null&&(e&&($=C.alternate,$!==null&&T.delete($.key===null?A:$.key)),h=i(C,h,A),w===null?M=C:w.sibling=C,w=C);return e&&T.forEach(function(O){return t(p,O)}),oe&&Ka(p,A),M}function E(p,h,g,y){if(typeof g=="object"&&g!==null&&g.type===so&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case nu:e:{for(var M=g.key;h!==null;){if(h.key===M){if(M=g.type,M===so){if(h.tag===7){n(p,h.sibling),y=l(h,g.props.children),wl(y,g),y.return=p,p=y;break e}}else if(h.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===_l&&pi(M)===h.type){n(p,h.sibling),y=l(h,g.props),wl(y,g),y.return=p,p=y;break e}n(p,h);break}else t(p,h);h=h.sibling}g.type===so?(y=Si(g.props.children,p.mode,y,g.key),wl(y,g),y.return=p,p=y):(y=Ru(g.type,g.key,g.props,null,p.mode,y),wl(y,g),y.return=p,p=y)}return o(p);case Ms:e:{for(M=g.key;h!==null;){if(h.key===M)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(p,h.sibling),y=l(h,g.children||[]),y.return=p,p=y;break e}else{n(p,h);break}else t(p,h);h=h.sibling}y=tf(g,p.mode,y),y.return=p,p=y}return o(p);case _l:return g=pi(g),E(p,h,g,y)}if(ws(g))return v(p,h,g,y);if(ys(g)){if(M=ys(g),typeof M!="function")throw Error(N(150));return g=M.call(g),b(p,h,g,y)}if(typeof g.then=="function")return E(p,h,du(g),y);if(g.$$typeof===Ra)return E(p,h,cu(p,g),y);fu(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,h!==null&&h.tag===6?(n(p,h.sibling),y=l(h,g),y.return=p,p=y):(n(p,h),y=ef(g,p.mode,y),y.return=p,p=y),o(p)):n(p,h)}return function(p,h,g,y){try{Qs=0;var M=E(p,h,g,y);return To=null,M}catch(T){if(T===Vo||T===wc)throw T;var w=gn(29,T,null,p.mode);return w.lanes=y,w.return=p,w}}}var _i=R1(!0),_1=R1(!1),Nl=!1;function Zm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ql(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function kl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var l=a.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),a.pending=t,t=Qu(e),b1(e,null,n),t}return Tc(e,a,t,n),Qu(e)}function zs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Xv(e,n)}}function af(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Vf=!1;function xs(){if(Vf){var e=Eo;if(e!==null)throw e}}function Ls(e,t,n,a){Vf=!1;var l=e.updateQueue;Nl=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var r=s,c=r.next;r.next=null,o===null?i=c:o.next=c,o=r;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=r))}if(i!==null){var m=l.baseState;o=0,u=c=r=null,s=i;do{var f=s.lane&-536870913,d=f!==s.lane;if(d?(fe&f)===f:(a&f)===f){f!==0&&f===Ri&&(Vf=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var v=e,b=s;f=t;var E=n;switch(b.tag){case 1:if(v=b.payload,typeof v=="function"){m=v.call(E,m,f);break e}m=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,f=typeof v=="function"?v.call(E,m,f):v,f==null)break e;m=Le({},m,f);break e;case 2:Nl=!0}}f=s.callback,f!==null&&(e.flags|=64,d&&(e.flags|=8192),d=l.callbacks,d===null?l.callbacks=[f]:d.push(f))}else d={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=d,r=m):u=u.next=d,o|=f;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;d=s,s=d.next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}while(!0);u===null&&(r=m),l.baseState=r,l.firstBaseUpdate=c,l.lastBaseUpdate=u,i===null&&(l.shared.lanes=0),Fl|=o,e.lanes=o,e.memoizedState=m}}function N1(e,t){if(typeof e!="function")throw Error(N(191,e));e.call(t)}function O1(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)N1(n[e],t)}var Zl=xa(null),Pu=xa(0);function Rg(e,t){e=tl,ke(Pu,e),ke(Zl,t),tl=e|t.baseLanes}function Xf(){ke(Pu,tl),ke(Zl,Zl.current)}function Jm(){tl=Pu.current,Bt(Zl),Bt(Pu)}var kt=xa(null),It=null;function jl(e){var t=e.alternate;ke(Ht,Ht.current&1),ke(kt,e),It===null&&(t===null||Zl.current!==null||t.memoizedState!==null)&&(It=e)}function Kf(e){ke(Ht,Ht.current),ke(kt,e),It===null&&(It=e)}function C1(e){e.tag===22?(ke(Ht,Ht.current),ke(kt,e),It===null&&(It=e)):Yl()}function Yl(){ke(Ht,Ht.current),ke(kt,kt.current)}function wn(e){Bt(kt),It===e&&(It=null),Bt(Ht)}var Ht=xa(0);function Zs(e,t){ke(kt,kt.current),ke(Ht,t)}function Fm(e){Bt(Ht),Bt(kt),It===e&&(It=null)}function ec(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||$m(n)||Mh(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wa=0,te=null,Ne=null,mt=null,tc=!1,Mo=!1,Ni=!1,nc=0,Js=0,wo=null,kT=0;function it(){throw Error(N(321))}function Wm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dn(e[n],t[n]))return!1;return!0}function Pm(e,t,n,a,l,i){return Wa=i,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Q.H=e===null||e.memoizedState===null?ry:uy,Ni=!1,i=n(a,l),Ni=!1,Mo&&(i=z1(t,n,a,l)),D1(e),i}function D1(e){Q.H=ac;var t=Ne!==null&&Ne.next!==null;if(Wa=0,mt=Ne=te=null,tc=!1,Js=0,wo=null,t)throw Error(N(300));e===null||pt||(e=e.dependencies,e!==null&&Fu(e)&&(pt=!0))}function z1(e,t,n,a){te=e;var l=0;do{if(Mo&&(wo=null),Js=0,Mo=!1,25<=l)throw Error(N(301));if(l+=1,mt=Ne=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}Q.H=QT,i=t(n,a)}while(Mo);return i}function jT(){var e=Q.H,t=e.useState()[0];return t=typeof t.then=="function"?dr(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(te.flags|=1024),t}function eh(){var e=nc!==0;return nc=0,e}function th(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function nh(e){if(tc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}tc=!1}Wa=0,mt=Ne=te=null,Mo=!1,Js=nc=0,wo=null}function nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?te.memoizedState=mt=e:mt=mt.next=e,mt}function ct(){if(Ne===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=mt===null?te.memoizedState:mt.next;if(t!==null)mt=t,Ne=e;else{if(e===null)throw te.alternate===null?Error(N(467)):Error(N(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},mt===null?te.memoizedState=mt=e:mt=mt.next=e}return mt}function $c(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dr(e){var t=Js;return Js+=1,wo===null&&(wo=[]),e=$1(wo,e,t),t=te,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,Q.H=t===null||t.memoizedState===null?ry:uy),e}function Rc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return dr(e);if(e.$$typeof===EE)return;if(e.$$typeof===Ra)return Ut(e)}throw Error(N(438,String(e)))}function ah(e){var t=null,n=te.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=te.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=$c(),te.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=AE;return t.index++,n}function Pa(e,t){return typeof t=="function"?t(e):t}function Ou(e){var t=ct();return lh(t,Ne,e)}function lh(e,t,n){var a=e.queue;if(a===null)throw Error(N(311));a.lastRenderedReducer=n;var l=e.baseQueue,i=a.pending;if(i!==null){if(l!==null){var o=l.next;l.next=i.next,i.next=o}t.baseQueue=l=i,a.pending=null}if(i=e.baseState,l===null)e.memoizedState=i;else{t=l.next;var s=o=null,r=null,c=t,u=!1;do{var m=c.lane&-536870913;if(m!==c.lane?(fe&m)===m:(Wa&m)===m){var f=c.revertLane;if(f===0)r!==null&&(r=r.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),m===Ri&&(u=!0);else if((Wa&f)===f){c=c.next,f===Ri&&(u=!0);continue}else m={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},r===null?(s=r=m,o=i):r=r.next=m,te.lanes|=f,Fl|=f;m=c.action,Ni&&n(i,m),i=c.hasEagerState?c.eagerState:n(i,m)}else f={lane:m,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},r===null?(s=r=f,o=i):r=r.next=f,te.lanes|=m,Fl|=m;c=c.next}while(c!==null&&c!==t);if(r===null?o=i:r.next=s,!Dn(i,e.memoizedState)&&(pt=!0,u&&(n=Eo,n!==null)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=r,a.lastRenderedState=i}return l===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function lf(e){var t=ct(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var a=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do i=e(i,o.action),o=o.next;while(o!==l);Dn(i,t.memoizedState)||(pt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function x1(e,t,n){var a=te,l=ct(),i=oe;if(i){if(n===void 0)throw Error(N(407));n=n()}else n=t();var o=!Dn((Ne||l).memoizedState,n);if(o&&(l.memoizedState=n,pt=!0),l=l.queue,ih(B1.bind(null,a,l,e),[e]),e=l.getSnapshot!==t||o||mt!==null&&(mt.memoizedState.tag&1)!==0,Do(e?9:8,{destroy:void 0},U1.bind(null,a,l,n,t),null),e){if(a.flags|=2048,xe===null)throw Error(N(349));i||(Wa&127)!==0||L1(a,t,n)}return n}function L1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=te.updateQueue,t===null?(t=$c(),te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function U1(e,t,n,a){t.value=n,t.getSnapshot=a,H1(t)&&q1(e)}function B1(e,t,n){return n(function(){H1(t)&&q1(e)})}function H1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dn(e,n)}catch{return!0}}function q1(e){var t=Li(e,2);t!==null&&vn(t,e,2)}function If(e){var t=nn();if(typeof e=="function"){var n=e;if(e=n(),Ni){Cl(!0);try{n()}finally{Cl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t}function k1(e,t,n,a){return e.baseState=n,lh(e,Ne,typeof a=="function"?a:Pa)}function YT(e,t,n,a,l){if(Nc(e))throw Error(N(485));if(e=t.action,e!==null){var i={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};Q.T!==null?n(!0):i.isTransition=!1,a(i),n=t.pending,n===null?(i.next=t.pending=i,j1(t,i)):(i.next=n.next,t.pending=n.next=i)}}function j1(e,t){var n=t.action,a=t.payload,l=e.state;if(t.isTransition){var i=Q.T,o={};o.types=i!==null?i.types:null,Q.T=o;try{var s=n(l,a),r=Q.S;r!==null&&r(o,s),_g(e,t,s)}catch(c){Qf(e,t,c)}finally{i!==null&&o.types!==null&&(i.types=o.types),Q.T=i}}else try{i=n(l,a),_g(e,t,i)}catch(c){Qf(e,t,c)}}function _g(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Ng(e,t,a)},function(a){return Qf(e,t,a)}):Ng(e,t,n)}function Ng(e,t,n){t.status="fulfilled",t.value=n,Y1(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,j1(e,n)))}function Qf(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Y1(t),t=t.next;while(t!==a)}e.action=null}function Y1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function G1(e,t){return t}function Og(e,t){if(oe){var n=xe.formState;if(n!==null){e:{var a=te;if(oe){if(qe){t:{for(var l=qe,i=In;l.nodeType!==8;){if(!i){l=null;break t}if(l=Qn(l.nextSibling),l===null){l=null;break t}}i=l.data,l=i==="F!"||i==="F"?l:null}if(l){qe=Qn(l.nextSibling),a=l.data==="F!";break e}}Ql(a)}a=!1}a&&(t=n[0])}}return n=nn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:G1,lastRenderedState:t},n.queue=a,n=iy.bind(null,te,a),a.dispatch=n,a=If(!1),i=uh.bind(null,te,!1,a.queue),a=nn(),l={state:t,dispatch:null,action:e,pending:null},a.queue=l,n=YT.bind(null,te,l,i,n),l.dispatch=n,a.memoizedState=e,[t,n,!1]}function Cg(e){var t=ct();return V1(t,Ne,e)}function V1(e,t,n){if(t=lh(e,t,G1)[0],e=Ou(Pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=dr(t)}catch(o){throw o===Vo?wc:o}else a=t;t=ct();var l=t.queue,i=l.dispatch;return n!==t.memoizedState&&(te.flags|=2048,Do(9,{destroy:void 0},GT.bind(null,l,n),null)),[a,i,e]}function GT(e,t){e.action=t}function Dg(e){var t=ct(),n=Ne;if(n!==null)return V1(t,n,e);ct(),t=t.memoizedState,n=ct();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Do(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=te.updateQueue,t===null&&(t=$c(),te.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function X1(){return ct().memoizedState}function Cu(e,t,n,a){var l=nn();te.flags|=e,l.memoizedState=Do(1|t,{destroy:void 0},n,a===void 0?null:a)}function _c(e,t,n,a){var l=ct();a=a===void 0?null:a;var i=l.memoizedState.inst;Ne!==null&&a!==null&&Wm(a,Ne.memoizedState.deps)?l.memoizedState=Do(t,i,n,a):(te.flags|=e,l.memoizedState=Do(1|t,i,n,a))}function zg(e,t){Cu(8390656,8,e,t)}function ih(e,t){_c(2048,8,e,t)}function VT(e){te.flags|=4;var t=te.updateQueue;if(t===null)t=$c(),te.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function K1(e){var t=ct().memoizedState;return VT({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(N(440));return t.impl.apply(void 0,arguments)}}function I1(e,t){return _c(4,2,e,t)}function Q1(e,t){return _c(4,4,e,t)}function Z1(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function J1(e,t,n){n=n!=null?n.concat([e]):null,_c(4,4,Z1.bind(null,t,e),n)}function oh(){}function F1(e,t){var n=ct();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Wm(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function W1(e,t){var n=ct();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Wm(t,a[1]))return a[0];if(a=e(),Ni){Cl(!0);try{e()}finally{Cl(!1)}}return n.memoizedState=[a,t],a}function sh(e,t,n){return n===void 0||(Wa&1073741824)!==0&&(fe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Vy(),te.lanes|=e,Fl|=e,n)}function P1(e,t,n,a){return Dn(n,t)?n:Zl.current!==null?(e=sh(e,n,a),Dn(e,t)||(pt=!0),e):(Wa&106)===0||(Wa&1073741824)!==0&&(fe&261930)===0?(pt=!0,e.memoizedState=n):(e=Vy(),te.lanes|=e,Fl|=e,t)}function ey(e,t,n,a,l){var i=Ae.p;Ae.p=i!==0&&8>i?i:8;var o=Q.T,s={};s.types=o!==null?o.types:null,Q.T=s,uh(e,!1,t,n);try{var r=l(),c=Q.S;if(c!==null&&c(s,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var u=qT(r,a);Us(e,t,u,Cn(e))}else Us(e,t,a,Cn(e))}catch(m){Us(e,t,{then:function(){},status:"rejected",reason:m},Cn())}finally{Ae.p=i,o!==null&&s.types!==null&&(o.types=s.types),Q.T=o}}function XT(){}function Zf(e,t,n,a){if(e.tag!==5)throw Error(N(476));var l=ty(e).queue;ey(e,l,t,bi,n===null?XT:function(){return ny(e),n(a)})}function ty(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:bi,baseState:bi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:bi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ny(e){var t=ty(e);t.next===null&&(t=e.alternate.memoizedState),Us(e,t.next.queue,{},Cn())}function rh(){return Ut(qo)}function ay(){return ct().memoizedState}function ly(){return ct().memoizedState}function KT(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=ql(n);var a=kl(t,e,n);a!==null&&(vn(a,t,n),zs(a,t,n)),t={cache:Km()},e.payload=t;return}t=t.return}}function IT(e,t,n){var a=Cn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Nc(e)?oy(t,n):(n=Gm(e,t,n,a),n!==null&&(vn(n,e,a),sy(n,t,a)))}function iy(e,t,n){var a=Cn();Us(e,t,n,a)}function Us(e,t,n,a){var l={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nc(e))oy(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,Dn(s,o))return Tc(e,t,l,0),xe===null&&Ec(),!1}catch{}if(n=Gm(e,t,l,a),n!==null)return vn(n,e,a),sy(n,t,a),!0}return!1}function uh(e,t,n,a){if(a={lane:2,revertLane:Sh(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Nc(e)){if(t)throw Error(N(479))}else t=Gm(e,n,a,2),t!==null&&vn(t,e,2)}function Nc(e){var t=e.alternate;return e===te||t!==null&&t===te}function oy(e,t){Mo=tc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sy(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Xv(e,n)}}var ac={readContext:Ut,use:Rc,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useLayoutEffect:it,useInsertionEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useSyncExternalStore:it,useId:it,useHostTransitionStatus:it,useFormState:it,useActionState:it,useOptimistic:it,useMemoCache:it,useCacheRefresh:it,useEffectEvent:it},ry={readContext:Ut,use:Rc,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:zg,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Cu(4194308,4,Z1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cu(4194308,4,e,t)},useInsertionEffect:function(e,t){Cu(4,2,e,t)},useMemo:function(e,t){var n=nn();t=t===void 0?null:t;var a=e();if(Ni){Cl(!0);try{e()}finally{Cl(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=nn();if(n!==void 0){var l=n(t);if(Ni){Cl(!0);try{n(t)}finally{Cl(!1)}}}else l=t;return a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},a.queue=e,e=e.dispatch=IT.bind(null,te,e),[a.memoizedState,e]},useRef:function(e){var t=nn();return e={current:e},t.memoizedState=e},useState:function(e){e=If(e);var t=e.queue,n=iy.bind(null,te,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:oh,useDeferredValue:function(e,t){var n=nn();return sh(n,e,t)},useTransition:function(){var e=If(!1);return e=ey.bind(null,te,e.queue,!0,!1),nn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=te,l=nn();if(oe){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),xe===null)throw Error(N(349));(fe&127)!==0||L1(a,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,zg(B1.bind(null,a,i,e),[e]),a.flags|=2048,Do(9,{destroy:void 0},U1.bind(null,a,i,n,t),null),n},useId:function(){var e=nn(),t=xe.identifierPrefix;if(oe){var n=Oa,a=Na;n=(a&~(1<<32-On(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=nc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=kT++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rh,useFormState:Og,useActionState:Og,useOptimistic:function(e){var t=nn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=uh.bind(null,te,!0,n),n.dispatch=t,[e,t]},useMemoCache:ah,useCacheRefresh:function(){return nn().memoizedState=KT.bind(null,te)},useEffectEvent:function(e){var t=nn(),n={impl:e};return t.memoizedState=n,function(){if((Se&2)!==0)throw Error(N(440));return n.impl.apply(void 0,arguments)}}},uy={readContext:Ut,use:Rc,useCallback:F1,useContext:Ut,useEffect:ih,useImperativeHandle:J1,useInsertionEffect:I1,useLayoutEffect:Q1,useMemo:W1,useReducer:Ou,useRef:X1,useState:function(){return Ou(Pa)},useDebugValue:oh,useDeferredValue:function(e,t){var n=ct();return P1(n,Ne.memoizedState,e,t)},useTransition:function(){var e=Ou(Pa)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:dr(e),t]},useSyncExternalStore:x1,useId:ay,useHostTransitionStatus:rh,useFormState:Cg,useActionState:Cg,useOptimistic:function(e,t){var n=ct();return k1(n,Ne,e,t)},useMemoCache:ah,useCacheRefresh:ly,useEffectEvent:K1},QT={readContext:Ut,use:Rc,useCallback:F1,useContext:Ut,useEffect:ih,useImperativeHandle:J1,useInsertionEffect:I1,useLayoutEffect:Q1,useMemo:W1,useReducer:lf,useRef:X1,useState:function(){return lf(Pa)},useDebugValue:oh,useDeferredValue:function(e,t){var n=ct();return Ne===null?sh(n,e,t):P1(n,Ne.memoizedState,e,t)},useTransition:function(){var e=lf(Pa)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:dr(e),t]},useSyncExternalStore:x1,useId:ay,useHostTransitionStatus:rh,useFormState:Dg,useActionState:Dg,useOptimistic:function(e,t){var n=ct();return Ne!==null?k1(n,Ne,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ah,useCacheRefresh:ly,useEffectEvent:K1};function of(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:Le({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Jf={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Cn(),l=ql(a);l.payload=t,n!=null&&(l.callback=n),t=kl(e,l,a),t!==null&&(vn(t,e,a),zs(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Cn(),l=ql(a);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=kl(e,l,a),t!==null&&(vn(t,e,a),zs(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),a=ql(n);a.tag=2,t!=null&&(a.callback=t),t=kl(e,a,n),t!==null&&(vn(t,e,n),zs(t,e,n))}};function xg(e,t,n,a,l,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,o):t.prototype&&t.prototype.isPureReactComponent?!Xs(n,a)||!Xs(l,i):!0}function Lg(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Jf.enqueueReplaceState(t,t.state,null)}function Oi(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=Le({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function cy(e){Iu(e)}function dy(e){console.error(e)}function fy(e){Iu(e)}function lc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Ug(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Ff(e,t,n){return n=ql(n),n.tag=3,n.payload={element:null},n.callback=function(){lc(e,t)},n}function my(e){return e=ql(e),e.tag=3,e}function hy(e,t,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var i=a.value;e.payload=function(){return l(i)},e.callback=function(){Ug(t,n,a)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Ug(t,n,a),typeof l!="function"&&(Gl===null?Gl=new Set([this]):Gl.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function ZT(e,t,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&wi(t,n,l,!0),n=kt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return It===null?fc():n.alternate===null&&ot===0&&(ot=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===Wu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),mf(e,a,l)),!1;case 22:return n.flags|=65536,a===Wu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),mf(e,a,l)),!1}throw Error(N(435,n.tag))}return mf(e,a,l),fc(),!1}if(oe)return t=kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,a!==qf&&(e=Error(N(422),{cause:a}),Is(Kn(e,n)))):(a!==qf&&(t=Error(N(423),{cause:a}),Is(Kn(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,a=Kn(a,n),l=Ff(e.stateNode,a,l),af(e,l),ot!==4&&(ot=2)),!1;var i=Error(N(520),{cause:a});if(i=Kn(i,n),ks===null?ks=[i]:ks.push(i),ot!==4&&(ot=2),t===null)return!0;a=Kn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=Ff(n.stateNode,a,e),af(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Gl===null||!Gl.has(i))))return n.flags|=65536,l&=-l,n.lanes|=l,l=my(l),hy(l,e,n,a),af(n,l),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var ch=Error(N(461)),pt=!1;function vt(e,t,n,a){t.child=e===null?_1(t,null,n,a):_i(t,e.child,n,a)}function Bg(e,t,n,a,l){n=n.render;var i=t.ref;if("ref"in a){var o={};for(var s in a)s!=="ref"&&(o[s]=a[s])}else o=a;return $i(t),a=Pm(e,t,n,o,i,l),s=eh(),e!==null&&!pt?(th(e,t,l),el(e,t,l)):(oe&&s&&Mc(t),t.flags|=1,vt(e,t,a,l),t.child)}function Hg(e,t,n,a,l){if(e===null){var i=n.type;return typeof i=="function"&&!Vm(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,py(e,t,i,a,l)):(e=Ru(n.type,null,a,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!fh(e,l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Xs,n(o,a)&&e.ref===t.ref)return el(e,t,l)}return t.flags|=1,e=Qa(i,a),e.ref=t.ref,e.return=t,t.child=e}function py(e,t,n,a,l){if(e!==null){var i=e.memoizedProps;if(Xs(i,a)&&e.ref===t.ref)if(pt=!1,t.pendingProps=a=i,fh(e,l))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,el(e,t,l)}return Wf(e,t,n,a,l)}function gy(e,t,n,a){var l=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|n:n,e!==null){for(a=t.child=e.child,l=0;a!==null;)l=l|a.lanes|a.childLanes,a=a.sibling;a=l&~i}else a=0,t.child=null;return qg(e,t,i,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Nu(t,i!==null?i.cachePool:null),i!==null?Rg(t,i):Xf(),C1(t);else return a=t.lanes=536870912,qg(e,t,i!==null?i.baseLanes|n:n,n,a)}else i!==null?(Nu(t,i.cachePool),Rg(t,i),Yl(),t.memoizedState=null):(e!==null&&Nu(t,null),Xf(),Yl());return vt(e,t,l,n),t.child}function Bs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qg(e,t,n,a,l){var i=Im();return i=i===null?null:{parent:ht._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Nu(t,null),Xf(),C1(t),e!==null&&wi(e,t,a,!0),t.childLanes=l,null}function Du(e,t){return t=Oc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function kg(e,t,n){return _i(t,e.child,null,n),e=Du(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function JT(e,t,n){var a=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(a.mode==="hidden")return e=Du(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Bs(null,e);if(Kf(t),(e=qe)?(e=gb(e,In),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Il!==null?{id:Na,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=A1(e),n.return=t,t.child=n,Nt=t,qe=null)):e=null,e===null)throw Ql(t);return t.lanes=536870912,null}return Du(t,a)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(Kf(t),l)if(t.flags&256)t.flags&=-257,t=kg(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(N(558));else if(pt||wi(e,t,n,!1),l=(n&e.childLanes)!==0,pt||l){if(Zl.current===null){if(a=xe,a!==null&&(o=Kv(a,n),o!==0&&o!==i.retryLane))throw i.retryLane=o,Li(e,o),vn(a,e,o),ch;fc()}t=kg(e,t,n)}else e=i.treeContext,qe=Qn(o.nextSibling),Nt=t,oe=!0,Hl=null,In=!1,e!==null&&T1(t,e),t=Du(t,a),t.flags|=134221824;return t}return e=Qa(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ao(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(N(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wf(e,t,n,a,l){return $i(t),n=Pm(e,t,n,a,void 0,l),a=eh(),e!==null&&!pt?(th(e,t,l),el(e,t,l)):(oe&&a&&Mc(t),t.flags|=1,vt(e,t,n,l),t.child)}function jg(e,t,n,a,l,i){return $i(t),t.updateQueue=null,n=z1(t,a,n,l),D1(e),a=eh(),e!==null&&!pt?(th(e,t,i),el(e,t,i)):(oe&&a&&Mc(t),t.flags|=1,vt(e,t,n,i),t.child)}function Yg(e,t,n,a,l){if($i(t),t.stateNode===null){var i=po,o=n.contextType;typeof o=="object"&&o!==null&&(i=Ut(o)),i=new n(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Jf,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Zm(t),o=n.contextType,i.context=typeof o=="object"&&o!==null?Ut(o):po,i.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(of(t,n,o,a),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&Jf.enqueueReplaceState(i,i.state,null),Ls(t,a,i,l),xs(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var s=t.memoizedProps,r=Oi(n,s);i.props=r;var c=i.context,u=n.contextType;o=po,typeof u=="object"&&u!==null&&(o=Ut(u));var m=n.getDerivedStateFromProps;u=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,u||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||c!==o)&&Lg(t,i,a,o),Nl=!1;var f=t.memoizedState;i.state=f,Ls(t,a,i,l),xs(),c=t.memoizedState,s||f!==c||Nl?(typeof m=="function"&&(of(t,n,m,a),c=t.memoizedState),(r=Nl||xg(t,n,r,a,f,c,o))?(u||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),i.props=a,i.state=c,i.context=o,a=r):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Gf(e,t),o=t.memoizedProps,u=Oi(n,o),i.props=u,m=t.pendingProps,f=i.context,c=n.contextType,r=po,typeof c=="object"&&c!==null&&(r=Ut(c)),s=n.getDerivedStateFromProps,(c=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==m||f!==r)&&Lg(t,i,a,r),Nl=!1,f=t.memoizedState,i.state=f,Ls(t,a,i,l),xs();var d=t.memoizedState;o!==m||f!==d||Nl||e!==null&&e.dependencies!==null&&Fu(e.dependencies)?(typeof s=="function"&&(of(t,n,s,a),d=t.memoizedState),(u=Nl||xg(t,n,u,a,f,d,r)||e!==null&&e.dependencies!==null&&Fu(e.dependencies))?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,d,r),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,d,r)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=d),i.props=a,i.state=d,i.context=r,a=u):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,ao(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=_i(t,e.child,null,l),t.child=_i(t,null,n,l)):vt(e,t,n,l),t.memoizedState=i.state,e=t.child):e=el(e,t,l),e}function Gg(e,t,n,a){return Mi(),t.flags|=256,vt(e,t,n,a),t.child}var Pf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function em(e){return{baseLanes:e,cachePool:w1()}}function tm(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Rn),e}function vy(e,t,n){var a=t.pendingProps,l=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(Ht.current&2)!==0),o&&(l=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(l?jl(t):Yl(),(e=qe)?(e=gb(e,In),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Il!==null?{id:Na,overflow:Oa}:null,retryLane:536870912,hydrationErrors:null},n=A1(e),n.return=t,t.child=n,Nt=t,qe=null)):e=null,e===null)throw Ql(t);return Mh(e)?t.lanes=32:t.lanes=536870912,null}return i=a.children,a=a.fallback,l?(Yl(),l=t.mode,i=Oc({mode:"hidden",children:i},l),a=Si(a,l,n,null),i.return=t,a.return=t,i.sibling=a,t.child=i,a=t.child,a.memoizedState=em(n),a.childLanes=tm(e,o,n),t.memoizedState=Pf,Bs(null,a)):(jl(t),dh(t,i))}var s=e.memoizedState;if(s!==null){var r=s.dehydrated;if(r!==null)return FT(e,t,i,o,a,r,s,n)}return l?(Yl(),l=a.fallback,i=t.mode,s=e.child,r=s.sibling,a=Qa(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&1206910976,r!==null?l=Qa(r,l):(l=Si(l,i,n,null),l.flags|=2),l.return=t,a.return=t,a.sibling=l,t.child=a,Bs(null,a),a=t.child,l=e.child.memoizedState,l===null?l=em(n):(i=l.cachePool,i!==null?(s=ht._currentValue,i=i.parent!==s?{parent:s,pool:s}:i):i=w1(),l={baseLanes:l.baseLanes|n,cachePool:i}),a.memoizedState=l,a.childLanes=tm(e,o,n),t.memoizedState=Pf,Bs(e.child,a)):(jl(t),n=e.child,e=n.sibling,n=Qa(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function dh(e,t){return t=Oc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Oc(e,t){return e=gn(22,e,null,t),e.lanes=0,e}function mu(e,t,n){return _i(t,e.child,null,n),e=dh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function FT(e,t,n,a,l,i,o,s){if(n)return t.flags&256?(jl(t),t.flags&=-257,mu(e,t,s)):t.memoizedState!==null?(Yl(),t.child=e.child,t.flags|=128,null):(Yl(),i=l.fallback,o=t.mode,l=Oc({mode:"visible",children:l.children},o),i=Si(i,o,s,null),i.flags|=2,l.return=t,i.return=t,l.sibling=i,t.child=l,_i(t,e.child,null,s),l=t.child,l.memoizedState=em(s),l.childLanes=tm(e,a,s),t.memoizedState=Pf,Bs(null,l));if(jl(t),Mh(i)){if(a=i.nextSibling&&i.nextSibling.dataset,a)var r=a.dgst;return a=r,a!==""&&(l=Error(N(419)),l.stack="",l.digest=a,Is({value:l,source:null,stack:null})),mu(e,t,s)}if(pt||wi(e,t,s,!1),a=(s&e.childLanes)!==0,pt||a){if(Zl.current!==null)return mu(e,t,s);if(a=xe,a!==null&&(l=Kv(a,s),l!==0&&l!==o.retryLane))throw o.retryLane=l,Li(e,l),vn(a,e,l),ch;return $m(i)||fc(),mu(e,t,s)}return $m(i)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,qe=Qn(i.nextSibling),Nt=t,oe=!0,Hl=null,In=!1,e!==null&&T1(t,e),t=dh(t,l.children),t.flags|=134221824,t)}function Vg(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),_u(e.return,t,n)}function Xg(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&ec(n)===null&&(t=e),e=e.sibling}return t}function hu(e,t,n,a,l,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=n,o.tailMode=l,o.treeForkCount=i)}function sf(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function nm(e,t,n){var a=t.pendingProps,l=a.revealOrder,i=a.tail;a=a.children;var o=Ht.current;if(t.flags&128)return Zs(t,o),null;var s=(o&2)!==0;if(s?(o=o&1|2,t.flags|=128):o&=1,Zs(t,o),l==="backwards"&&e!==null?(sf(e),vt(e,t,a,n),sf(e)):vt(e,t,a,n),a=oe?Ks:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vg(e,n,t);else if(e.tag===19)Vg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"backwards":n=Xg(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null,sf(t)),hu(t,!0,l,null,i,a);break;case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ec(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}hu(t,!0,n,null,i,a);break;case"together":hu(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:n=Xg(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),hu(t,!1,l,n,i,a)}return t.child}function Kg(e,t,n){var a=t.pendingProps;return zl(t,t.type,a.value),vt(e,t,a.children,n),t.child}function el(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(wi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Qa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Fu(e)))}function WT(e,t,n){switch(t.tag){case 3:Gu(t,t.stateNode.containerInfo),zl(t,ht,e.memoizedState.cache),Mi();break;case 27:case 5:Nf(t);break;case 4:Gu(t,t.stateNode.containerInfo);break;case 10:zl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Kf(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return jl(t),t.flags|=128,null;a=wi(e,t,n,!1);var l=t.child.childLanes;return a||(n&l)!==0?vy(e,t,n):(jl(t),e=el(e,t,n),e!==null?e.sibling:null)}jl(t);break;case 19:if(t.flags&128)return nm(e,t,n);if(l=(e.flags&128)!==0,a=(n&t.childLanes)!==0,a||(wi(e,t,n,!1),a=(n&t.childLanes)!==0),l){if(a)return nm(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Zs(t,Ht.current),a)break;return null;case 22:return t.lanes=0,gy(e,t,n,t.pendingProps);case 24:zl(t,ht,e.memoizedState.cache)}return el(e,t,n)}function yy(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!fh(e,n)&&(t.flags&128)===0)return pt=!1,WT(e,t,n);pt=(e.flags&131072)!==0}else pt=!1,oe&&(t.flags&1048576)!==0&&E1(t,Ks,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=pi(t.elementType),t.type=e,typeof e=="function")Vm(e)?(a=Oi(e,a),t.tag=1,t=Yg(null,t,e,a,n)):(t.tag=0,t=Wf(null,t,e,a,n));else{if(e!=null){var l=e.$$typeof;if(l===Cm){t.tag=11,t=Bg(null,t,e,a,n);break e}else if(l===Dm){t.tag=14,t=Hg(null,t,e,a,n);break e}else if(l===Ra){t.tag=10,t.type=e,t=Kg(null,t,n);break e}}throw t=Rf(e)||e,Error(N(306,t,""))}}return t;case 0:return Wf(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,l=Oi(a,t.pendingProps),Yg(e,t,a,l,n);case 3:e:{if(Gu(t,t.stateNode.containerInfo),e===null)throw Error(N(387));a=t.pendingProps;var i=t.memoizedState;l=i.element,Gf(e,t),Ls(t,a,null,n);var o=t.memoizedState;if(a=o.cache,zl(t,ht,a),a!==i.cache&&jf(t,[ht],n,!0),xs(),a=o.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Gg(e,t,a,n);break e}else if(a!==l){l=Kn(Error(N(424)),t),Is(l),t=Gg(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,qe=Qn(e.firstChild),Nt=t,oe=!0,Hl=null,In=!0,n=_1(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(Mi(),a===l){t=el(e,t,n);break e}vt(e,t,a,n)}t=t.child}return t;case 26:return ao(e,t),e===null?(n=bv(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=sb(t.type,t.pendingProps,Bl.current,t)):t.memoizedState=bv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Nf(t),e===null&&oe&&(a=t.stateNode=vb(t.type,t.pendingProps,Bl.current),Nt=t,In=!0,l=qe,Pl(t.type)?(Rm=l,qe=Qn(a.firstChild)):qe=l),vt(e,t,t.pendingProps.children,n),ao(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((l=a=qe)&&(a=VM(a,t.type,t.pendingProps,In),a!==null?(t.stateNode=a,Nt=t,qe=Qn(a.firstChild),In=!1,l=!0):l=!1),l||Ql(t)),Nf(t),l=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Tm(l,i)?a=null:o!==null&&Tm(l,o)&&(t.flags|=32),t.memoizedState!==null&&(l=Pm(e,t,jT,null,null,n),qo._currentValue=l),ao(e,t),vt(e,t,a,n),t.child;case 6:return e===null&&oe&&((e=n=qe)&&(n=XM(n,t.pendingProps,In),n!==null?(t.stateNode=n,Nt=t,qe=null,e=!0):e=!1),e||Ql(t)),null;case 13:return vy(e,t,n);case 4:return Gu(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_i(t,null,a,n):vt(e,t,a,n),t.child;case 11:return Bg(e,t,t.type,t.pendingProps,n);case 7:return a=t.pendingProps,ao(e,t),vt(e,t,a,n),t.child;case 8:return vt(e,t,t.pendingProps.children,n),t.child;case 12:return vt(e,t,t.pendingProps.children,n),t.child;case 10:return Kg(e,t,n);case 9:return l=t.type._context,a=t.pendingProps.children,$i(t),l=Ut(l),a=a(l),t.flags|=1,vt(e,t,a,n),t.child;case 14:return Hg(e,t,t.type,t.pendingProps,n);case 15:return py(e,t,t.type,t.pendingProps,n);case 19:return nm(e,t,n);case 31:return JT(e,t,n);case 22:return gy(e,t,n,t.pendingProps);case 24:return $i(t),a=Ut(ht),e===null?(l=Im(),l===null&&(l=xe,i=Km(),l.pooledCache=i,i.refCount++,i!==null&&(l.pooledCacheLanes|=n),l=i),t.memoizedState={parent:a,cache:l},Zm(t),zl(t,ht,l)):((e.lanes&n)!==0&&(Gf(e,t),Ls(t,null,null,n),xs()),l=e.memoizedState,i=t.memoizedState,l.parent!==a?(l={parent:a,cache:a},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),zl(t,ht,a)):(a=i.cache,zl(t,ht,a),a!==l.cache&&jf(t,[ht],n,!0))),vt(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&Mc(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:ao(e,t),vt(e,t,a.children,n),t.child;case 29:throw t.pendingProps}throw Error(N(156,t.tag))}function Xa(e){e.flags|=4}function rf(e,t,n,a,l){var i;if((i=(e.mode&32)!==0)&&(i=n===null?Ev(t,a):Ev(t,a)&&(a.src!==n.src||a.srcSet!==n.srcSet)),i){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Iy())e.flags|=8192;else throw Ei=Wu,Qm}else e.flags&=-16777217}function Ig(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ab(t))if(Iy())e.flags|=8192;else throw Ei=Wu,Qm}function pu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Gv():536870912,e.lanes|=t,zo|=t)}function Ss(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&1206910976,a|=l.flags&1206910976,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function PT(e,t,n){var a=t.pendingProps;switch(Xm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Za(ht),No(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(to(t)?Xa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,nf())),He(t),null;case 26:var l=t.type,i=t.memoizedState;return e===null?(Xa(t),i!==null?(He(t),Ig(t,i)):(He(t),rf(t,l,null,a,n))):i?i!==e.memoizedState?(Xa(t),He(t),Ig(t,i)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Xa(t),He(t),rf(t,l,e,a,n)),null;case 27:if(Vu(t),n=Bl.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Xa(t);else{if(!a){if(t.stateNode===null)throw Error(N(166));return He(t),t.subtreeFlags&=-33554433,null}e=Ca.current,to(t)?Sg(t,e):(e=vb(l,a,n),t.stateNode=e,Xa(t))}return He(t),t.subtreeFlags&=-33554433,null;case 5:if(Vu(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Xa(t);else{if(!a){if(t.stateNode===null)throw Error(N(166));return He(t),t.subtreeFlags&=-33554433,null}if(i=Ca.current,to(t))Sg(t,i);else{var o=Ps(Bl.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?o.createElement(l,{is:a.is}):o.createElement(l)}}i[Lt]=t,i[bn]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(qt(i,l,a),l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Xa(t)}}return He(t),t.subtreeFlags&=-33554433,rf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Xa(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(N(166));if(e=Bl.current,to(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,l=Nt,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}e[Lt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||ib(e.nodeValue,n)),e||Ql(t,!0)}else e=Ps(e).createTextNode(a),e[Lt]=t,t.stateNode=e}return He(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=to(t),n!==null){if(e===null){if(!a)throw Error(N(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(557));e[Lt]=t}else Mi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else n=nf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if((t.flags&128)!==0)throw Error(N(558))}return He(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=to(t),a!==null&&a.dehydrated!==null){if(e===null){if(!l)throw Error(N(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(N(317));l[Lt]=t}else Mi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),l=!1}else l=nf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==l&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),pu(t,t.updateQueue),He(t),null);case 4:return No(),e===null&&Ah(t.stateNode.containerInfo),t.flags|=67108864,He(t),null;case 10:return Za(t.type),He(t),null;case 19:if(Fm(t),a=t.memoizedState,a===null)return He(t),null;if(l=(t.flags&128)!==0,i=a.rendering,i===null)if(l)Ss(a,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=ec(e),i!==null){for(t.flags|=128,Ss(a,!1),e=i.updateQueue,t.updateQueue=e,pu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)S1(n,e),n=n.sibling;return Zs(t,Ht.current&1|2),oe&&Ka(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&_n()>cc&&(t.flags|=128,l=!0,Ss(a,!1),t.lanes=4194304)}else{if(!l)if(e=ec(i),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,pu(t,e),Ss(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!i.alternate&&!oe)return He(t),null}else 2*_n()-a.renderingStartTime>cc&&n!==536870912&&(t.flags|=128,l=!0,Ss(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}if(a.tail!==null){e=a.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=_n(),e.sibling=null,i=Ht.current,i=l?i&1|2:i&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!n||oe?Zs(t,i):(n=i,ke(kt,t),ke(Ht,n),It===null&&(It=t)),oe&&Ka(t,a.treeForkCount),e}return He(t),null;case 22:case 23:return wn(t),Jm(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),n=t.updateQueue,n!==null&&pu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Bt(Ai),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Za(ht),He(t),null;case 25:return null;case 30:return t.flags|=33554432,He(t),null}throw Error(N(156,t.tag))}function eM(e,t){switch(Xm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Za(ht),No(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Vu(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(N(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Mi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fm(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return No(),null;case 10:return Za(t.type),null;case 22:case 23:return wn(t),Jm(),e!==null&&Bt(Ai),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Za(ht),null;case 25:return null;default:return null}}function by(e,t){switch(Xm(t),t.tag){case 3:Za(ht),No();break;case 26:case 27:case 5:Vu(t);break;case 4:No();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:Fm(t);break;case 10:Za(t.type);break;case 22:case 23:wn(t),Jm(),e!==null&&Bt(Ai);break;case 24:Za(ht)}}function fr(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&e)===e){a=void 0;var i=n.create,o=n.inst;a=i(),o.destroy=a}n=n.next}while(n!==l)}}catch(s){_e(t,t.return,s)}}function Jl(e,t,n){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){var o=a.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,l=t;var r=n,c=s;try{c()}catch(u){_e(l,r,u)}}}a=a.next}while(a!==i)}}catch(u){_e(t,t.return,u)}}function Sy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{O1(t,n)}catch(a){_e(e,e.return,a)}}}function Ay(e,t,n){n.props=Oi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){_e(e,t,a)}}function wa(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var l=e.stateNode,i=Fa(e.memoizedProps,l);(l.ref===null||l.ref.name!==i)&&(l.ref=db(i)),a=l.ref;break;case 7:if(e.stateNode===null){var o=new zn(e);yn(e.child,!1,YM,o,void 0,void 0),e.stateNode=o}a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(s){_e(e,t,s)}}function xt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){_e(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){_e(e,t,l)}else n.current=null}function ic(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)pb(e.stateNode,t[n])}function Qg(e){for(var t=e.return;t!==null&&(hh(t)&&pb(e.stateNode,t.stateNode),!mh(t));)t=t.return}function Hs(e){for(var t=e.return;t!==null&&(hh(t)&&GM(e.stateNode,t.stateNode),!mh(t));)t=t.return}function mh(e){return e.tag===5||e.tag===3||e.tag===27}function hh(e){return e&&e.tag===7&&e.stateNode!==null}function am(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){_e(e,e.return,l)}}function uf(e,t,n){try{var a=e.stateNode;MM(a,e.type,n,t),a[bn]=t}catch(l){_e(e,e.return,l)}}function Ey(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pl(e.type)||e.tag===4}function cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ey(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Pl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lm(e,t,n,a){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(l,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(l),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_a)),ic(e,a),ge=!0;else if(l!==4&&(l===27&&(ic(e,a),a=null,Pl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(lm(e,t,n,a),e=e.sibling;e!==null;)lm(e,t,n,a),e=e.sibling}function oc(e,t,n,a){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?n.insertBefore(l,t):n.appendChild(l),ic(e,a),ge=!0;else if(l!==4&&(l===27&&(ic(e,a),a=null,Pl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(oc(e,t,n,a),e=e.sibling;e!==null;)oc(e,t,n,a),e=e.sibling}function Ty(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);qt(t,a,n),t[Lt]=e,t[bn]=n}catch(i){_e(e,e.return,i)}}var sc=!1,$n=null;function Zg(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(sc=!0)}var $a=null;function Jg(){var e=$a;return $a=null,e}var pn=0;function Xo(e,t,n,a,l){return pn=0,My(e.child,t,n,a,l)}function My(e,t,n,a,l){for(var i=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(a!==null){var s=Mm(o);a.push(s),s.view&&(i=!0)}else i||Mm(o).view&&(i=!0);sc=!0,rb(o,pn===0?t:t+"_"+pn,n),pn++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&l||My(e.child,t,n,a,l)&&(i=!0));e=e.sibling}return i}function za(e,t){for(;e!==null;)e.tag===5?ub(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||za(e.child,t)),e=e.sibling}function zu(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(zu(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(N(544));var n=t.name;t=al(t.default,t.share),t!=="none"&&(Xo(e,n,t,null,!1)||za(e.child,!1))}e=e.sibling}}function im(e,t){if(e.tag===30){var n=e.stateNode,a=e.memoizedProps,l=Fa(a,n),i=al(a.default,n.paired?a.share:a.enter);i!=="none"?Xo(e,l,i,null,!1)?(zu(e),n.paired||t||xo(e,a.onEnter)):za(e.child,!1):zu(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)im(e,t),e=e.sibling;else zu(e)}function om(e){if($n!==null&&$n.size!==0){var t=$n;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,a=n.name;if(a!=null&&a!=="auto"){var l=t.get(a);if(l!==void 0){var i=al(n.default,n.share);if(i!=="none"&&(Xo(e,a,i,null,!1)?(i=e.stateNode,l.paired=i,i.paired=l,xo(e,n.onShare)):za(e.child,!1)),t.delete(a),t.size===0)break}}}om(e)}e=e.sibling}}}function sm(e){if(e.tag===30){var t=e.memoizedProps,n=Fa(t,e.stateNode),a=$n!==null?$n.get(n):void 0,l=al(t.default,a!==void 0?t.share:t.exit);l!=="none"&&(Xo(e,n,l,null,!1)?a!==void 0?(l=e.stateNode,a.paired=l,l.paired=a,$n.delete(n),xo(e,t.onShare)):xo(e,t.onExit):za(e.child,!1)),$n!==null&&om(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)sm(e),e=e.sibling;else $n!==null&&om(e)}function wy(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Fa(t,e.stateNode);t=al(t.default,t.update),e.flags&=-5,t!=="none"&&Xo(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&wy(e);e=e.sibling}}function rm(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,za(e.child,!1))}rm(e)}e=e.sibling}}function xu(e){if(e.tag===30)e.stateNode.paired=null,za(e.child,!1),rm(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)xu(e),e=e.sibling;else rm(e)}function $y(e){for(e=e.child;e!==null;)e.tag===30?za(e.child,!1):(e.subtreeFlags&33554432)!==0&&$y(e),e=e.sibling}function ph(e,t,n,a,l,i,o){for(var s=!1;t!==null;){if(t.tag===5){var r=t.stateNode;if(i!==null&&pn<i.length){var c=i[pn],u=Mm(r);(c.view||u.view)&&(s=!0);var m;if(m=(e.flags&4)===0)if(u.clip)m=!0;else{m=c.rect;var f=u.rect;m=m.y!==f.y||m.x!==f.x||m.height!==f.height||m.width!==f.width}m&&(e.flags|=4),u.abs?u=!c.abs:(c=c.rect,u=u.rect,u=c.height!==u.height||c.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&rb(r,pn===0?n:n+"_"+pn,l),s&&(e.flags&4)!==0||($a===null&&($a=[]),$a.push(r,pn===0?a:a+"_"+pn,t.memoizedProps)),pn++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:ph(e,t.child,n,a,l,i,o)&&(s=!0));t=t.sibling}return s}function Ry(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,a=e.stateNode,l=Fa(n,a),i=al(n.default,n.update);if(t){a=a.clones;var o=a===null?null:a.map(OM)}else o=e.memoizedState,e.memoizedState=null;a=e;var s=e.child;pn=0,l=ph(a,s,l,l,i,o,!1),(e.flags&4)!==0&&l&&(t||xo(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Ry(e,t);e=e.sibling}}var $t=!1,Ee=!1,Ea=!1,df=!1,Fg=typeof WeakSet=="function"?WeakSet:Set,Rt=null,Ta=!1,_s=!1,rc=!1,um=!1;function tM(e,t,n){if(e=e.containerInfo,Am=ko,e=f1(e),jm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var s=0,r=-1,c=-1,u=0,m=0,f=e,d=null;t:for(;;){for(var v;f!==a||i!==0&&f.nodeType!==3||(r=s+i),f!==o||l!==0&&f.nodeType!==3||(c=s+l),f.nodeType===3&&(s+=f.nodeValue.length),(v=f.firstChild)!==null;)d=f,f=v;for(;;){if(f===e)break t;if(d===a&&++u===i&&(r=s),d===o&&++m===l&&(c=s),(v=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=v}a=r===-1||c===-1?null:{start:r,end:c}}else a=null}a=a||{start:0,end:0}}else a=null;for(Em={focusedElem:e,selectionRange:a},ko=!1,n=(n&335544064)===n,Rt=t,t=n?9270:1024;Rt!==null;){if(e=Rt,n&&(a=e.deletions,a!==null))for(i=0;i<a.length;i++)n&&sm(a[i]);if(e.alternate===null&&(e.flags&2)!==0)n&&Zg(e),gu(n);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&n&&sm(a),gu(n);continue}else if(a!==null&&a.memoizedState!==null){n&&Zg(e),gu(n);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,Rt=a):(n&&wy(e),gu(n))}}$n=null}function gu(e){for(;Rt!==null;){var t=Rt,n=e,a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((l&1024)!==0&&a!==null){n=void 0,l=a.memoizedProps,a=a.memoizedState;var i=t.stateNode;try{var o=Oi(t.type,l);n=i.getSnapshotBeforeUpdate(o,a),i.__reactInternalSnapshotBeforeUpdate=n}catch(s){_e(t,t.return,s)}}break;case 3:if((l&1024)!==0){if(a=t.stateNode.containerInfo,n=a.nodeType,n===9)wm(a);else if(n===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":wm(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&a!==null&&(n=Fa(a.memoizedProps,a.stateNode),l=t.memoizedProps,l=al(l.default,l.update),l!=="none"&&Xo(a,n,l,a.memoizedState=[],!0));break;default:if((l&1024)!==0)throw Error(N(163))}if(a=t.sibling,a!==null){a.return=t.return,Rt=a;break}Rt=t.return}}function _y(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Ma(e,n),a&4&&fr(5,n);break;case 1:if(Ma(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){_e(n,n.return,o)}else{var l=Oi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){_e(n,n.return,o)}}a&64&&Sy(n),a&512&&wa(n,n.return);break;case 3:if(Ma(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{O1(e,t)}catch(o){_e(n,n.return,o)}}break;case 27:t===null&&a&4&&Ty(n);case 26:case 5:Ma(e,n),t===null&&a&4&&am(n),a&512&&wa(n,n.return);break;case 12:Ma(e,n);break;case 31:Ma(e,n),a&4&&Dy(e,n);break;case 13:Ma(e,n),a&4&&zy(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=mM.bind(null,n),KM(e,n))));break;case 22:if(a=n.memoizedState!==null||$t,!a){var i=t!==null&&t.memoizedState!==null||Ee;t=$t,l=Ee,$t=a,(Ee=i)&&!l?(a=2,(n.subtreeFlags&8772)!==0&&(a|=1),la(e,n,a)):Ma(e,n),$t=t,Ee=l}break;case 30:Ma(e,n),a&512&&wa(n,n.return);break;case 7:a&512&&wa(n,n.return);default:Ma(e,n)}}function cm(e,t){for(e=e.child;e!==null;)Ny(e,t),e=e.sibling}function Ny(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var l=e.stateNode,i=e.memoizedProps.style,o=i!=null&&i.hasOwnProperty("display")?i.display:null;l.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(r){_e(e,e.return,r)}dm(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ge=!0}catch(r){_e(e,e.return,r)}break;case 18:try{var s=e.stateNode;t?mv(s,!0):mv(e.stateNode,!1)}catch(r){_e(e,e.return,r)}break;case 22:case 23:e.memoizedState===null&&cm(e,t);break;default:cm(e,t)}}function dm(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,a=t;switch(n.tag){case 4:Ny(n,a);break e;case 22:n.memoizedState===null&&dm(n,a);break e;default:dm(n,a)}}e=e.sibling}}function Oy(e){var t=e.alternate;t!==null&&(e.alternate=null,Oy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Qe=null,mn=!1;function aa(e,t,n){for(n=n.child;n!==null;)Cy(e,t,n),n=n.sibling}function Cy(e,t,n){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(ir,n)}catch{}switch(n.tag){case 26:Ee||xt(n,t),aa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Ee&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ee||xt(n,t),Hs(n);var a=Qe,l=mn;Pl(n.type)&&(Qe=n.stateNode,mn=!1),aa(e,t,n),yb(n.stateNode,n.type,n.memoizedProps),Qe=a,mn=l;break;case 5:Ee||xt(n,t),Hs(n);case 6:if(n.tag===6&&Hs(n),a=Qe,l=mn,Qe=null,aa(e,t,n),Qe=a,mn=l,Qe!==null)if(mn)try{(Qe.nodeType===9?Qe.body:Qe.nodeName==="HTML"?Qe.ownerDocument.body:Qe).removeChild(n.stateNode),ge=!0}catch(i){_e(n,t,i)}else try{Qe.removeChild(n.stateNode),ge=!0}catch(i){_e(n,t,i)}break;case 18:Qe!==null&&(mn?(e=Qe,fv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),jo(e)):fv(Qe,n.stateNode));break;case 4:a=Qe,l=mn,Qe=n.stateNode.containerInfo,mn=!0,aa(e,t,n),Qe=a,mn=l;break;case 0:case 11:case 14:case 15:Jl(2,n,t),Ee||Jl(4,n,t),aa(e,t,n);break;case 1:Ee||(xt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Ay(n,t,a)),aa(e,t,n);break;case 21:aa(e,t,n);break;case 22:Ee=(a=Ee)||n.memoizedState!==null,aa(e,t,n),Ee=a;break;case 30:xt(n,t),aa(e,t,n);break;case 7:Ee||xt(n,t),aa(e,t,n);break;default:aa(e,t,n)}}function Dy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{jo(e)}catch(n){_e(t,t.return,n)}}}function zy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{jo(e)}catch(n){_e(t,t.return,n)}}function nM(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Fg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Fg),t;default:throw Error(N(435,e.tag))}}function vu(e,t){var n=nM(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var l=hM.bind(null,e,a);a.then(l,l)}})}function en(e,t,n){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],o=e,s=t,r=s;e:for(;r!==null;){switch(r.tag){case 27:if(Pl(r.type)){Qe=r.stateNode,mn=!1;break e}break;case 5:Qe=r.stateNode,mn=!1;break e;case 3:case 4:Qe=r.stateNode.containerInfo,mn=!0;break e}r=r.return}if(Qe===null)throw Error(N(160));Cy(o,s,i),Qe=null,mn=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xy(t,e,n),t=t.sibling}var ia=null;function xy(e,t,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(l&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var i=0;i<a.length;i++){var o=a[i];o.ref.impl=o.nextImpl}en(t,e,n),tn(e),l&4&&(Jl(3,e,e.return),fr(3,e),Jl(5,e,e.return));break;case 1:en(t,e,n),tn(e),l&512&&(Ee||a===null||xt(a,a.return)),l&64&&$t&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(i=ia,en(t,e,n),tn(e),l&512&&(Ee||a===null||xt(a,a.return)),l&4)if(l=a!==null?a.memoizedState:null,n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null)if($t)e.stateNode=sb(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,l=i.ownerDocument||i;t:switch(t){case"title":a=l.getElementsByTagName("title")[0],(!a||a[rr]||a[Lt]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=l.createElement(t),l.head.insertBefore(a,l.querySelector("head > title"))),qt(a,t,n),a[Lt]=e,_t(a),t=a;break e;case"link":if(i=Av("link","href",l).get(t+(n.href||""))){for(o=0;o<i.length;o++)if(a=i[o],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(o,1);break t}}a=l.createElement(t),qt(a,t,n),l.head.appendChild(a);break;case"meta":if(i=Av("meta","content",l).get(t+(n.content||""))){for(o=0;o<i.length;o++)if(a=i[o],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){i.splice(o,1);break t}}a=l.createElement(t),qt(a,t,n),l.head.appendChild(a);break;default:throw Error(N(468,t))}a[Lt]=e,_t(a),t=a}e.stateNode=t}else $t||_m(i,e.type,e.stateNode);else e.stateNode=Sv(i,n,e.memoizedProps);else l!==n?(l===null?(t=a.stateNode,t===null||Ee||t.parentNode.removeChild(t)):l.count--,n===null?$t||_m(i,e.type,e.stateNode):Sv(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&uf(e,e.memoizedProps,a.memoizedProps);break;case 27:en(t,e,n),tn(e),l&512&&(Ee||a===null||xt(a,a.return)),a!==null&&l&4&&uf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(i=Ea,Ea=!1,en(t,e,n),Ea=i,tn(e),l&512&&(Ee||a===null||xt(a,a.return)),e.flags&32){t=e.stateNode;try{Co(t,""),ge=!0}catch(u){_e(e,e.return,u)}}l&4&&e.stateNode!=null&&(t=e.memoizedProps,uf(e,t,a!==null?a.memoizedProps:t)),l&1024&&(df=!0);break;case 6:if(en(t,e,n),tn(e),l&4){if(e.stateNode===null)throw Error(N(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,ge=!0}catch(u){_e(e,e.return,u)}}break;case 3:if(ge=!1,Hu=null,i=ia,ia=er(t.containerInfo),en(t,e,n),ia=i,tn(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{jo(t.containerInfo)}catch(u){_e(e,e.return,u)}df&&(df=!1,Ly(e)),ge=!1;break;case 4:l=Ea,Ea=$t,a=ag(),i=ia,ia=er(e.stateNode.containerInfo),en(t,e,n),tn(e),ia=i,ge&&_s&&(rc=!0),ge=a,Ea=l;break;case 12:en(t,e,n),tn(e);break;case 31:en(t,e,n),tn(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,vu(e,t)));break;case 13:en(t,e,n),tn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Cc=_n()),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,vu(e,t)));break;case 22:i=e.memoizedState!==null,o=a!==null&&a.memoizedState!==null;var s=$t,r=Ee,c=Ea;$t=s||i,Ea=c||i,Ee=r||o,en(t,e,n),Ee=r,Ea=c,$t=s,tn(e),l&8192&&(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,!i||a===null||o||$t||Ee||(t=o||Ee,n=$t,a=Ee,$t=i||$t,Ee=t,Rl(e,2),$t=n,Ee=a),!i&&Ea||cm(e,i)),l&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,vu(e,n))));break;case 19:en(t,e,n),tn(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,vu(e,t)));break;case 30:l&512&&(Ee||a===null||xt(a,a.return)),l=ag(),i=_s,o=(n&335544064)===n,s=e.memoizedProps,_s=o&&al(s.default,s.update)!=="none",en(t,e,n),tn(e),o&&a!==null&&ge&&(e.flags|=4),_s=i,ge=l;break;case 21:break;case 7:l&512&&(Ee||a===null||xt(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:en(t,e,n),tn(e)}}function tn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Ey(a)){n=a;break}a=a.return}a=null;for(var l=e.return;l!==null;){if(hh(l)){var i=l.stateNode;a===null?a=[i]:a.push(i)}if(mh(l))break;l=l.return}var o=a;if(n==null)throw Error(N(160));switch(n.tag){case 27:var s=n.stateNode,r=cf(e);oc(e,r,s,o);break;case 5:var c=n.stateNode;n.flags&32&&(Co(c,""),n.flags&=-33);var u=cf(e);oc(e,u,c,o);break;case 3:case 4:var m=n.stateNode.containerInfo,f=cf(e);lm(e,f,m,o);break;default:throw Error(N(161))}}catch(d){_e(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ly(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ly(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,ko=!0,t.reset(),ko=!1),e=e.sibling}}function no(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Uy(t,e),t=t.sibling;else Ry(t,!1)}function Uy(e,t){var n=e.alternate;if(n===null)im(e,!1);else switch(e.tag){case 3:if(um=Ta=!1,Jg(),no(t,e),!Ta&&!rc){if(e=$a,e!==null)for(var a=0;a<e.length;a+=3){n=e[a];var l=e[a+1];ub(n,e[a+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),um=!0}$a=null;break;case 5:no(t,e);break;case 4:a=Ta,Ta=!1,no(t,e),Ta&&(rc=!0),Ta=a;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?im(e,!1):no(t,e));break;case 30:a=Ta,l=Jg(),Ta=!1,no(t,e),Ta&&(e.flags|=4);var i=e.memoizedProps,o=e.stateNode;t=Fa(i,o),o=Fa(n.memoizedProps,o);var s=al(i.default,i.update);s==="none"?t=!1:(i=n.memoizedState,n.memoizedState=null,n=e.child,pn=0,t=ph(e,n,t,o,s,i,!0),pn!==(i===null?0:i.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(xo(e,e.memoizedProps.onUpdate),$a=l):l!==null&&(l.push.apply(l,$a),$a=l),Ta=(e.flags&32)!==0?!0:a;break;default:no(t,e)}}function Ma(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_y(e,t.alternate,t),t=t.sibling}function Rl(e,t){for(e=e.child;e!==null;){var n=e,a=t;switch(n.tag){case 0:case 11:case 14:case 15:Jl(4,n,n.return),Rl(n,a);break;case 1:xt(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&Ay(n,n.return,l),Rl(n,a);break;case 27:(a&2)!==0&&yb(n.stateNode,n.type,n.memoizedProps);case 5:xt(n,n.return),n.tag!==5&&n.tag!==27||Hs(n),Rl(n,a);break;case 6:Hs(n);break;case 26:xt(n,n.return),l=n.stateNode,n.memoizedState!==null||l===null||Ee||l.parentNode.removeChild(l),Rl(n,a);break;case 22:n.memoizedState===null&&Rl(n,a);break;case 30:xt(n,n.return),Rl(n,a);break;case 7:xt(n,n.return);default:Rl(n,a)}e=e.sibling}}function la(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var a=t.alternate,l=e,i=t,o=i.flags,s=(n&1)!==0;switch(i.tag){case 0:case 11:case 15:la(l,i,n),fr(4,i);break;case 1:if(la(l,i,n),a=i,l=a.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(u){_e(a,a.return,u)}if(a=i,l=a.updateQueue,l!==null){var r=a.stateNode;try{var c=l.shared.hiddenCallbacks;if(c!==null)for(l.shared.hiddenCallbacks=null,l=0;l<c.length;l++)N1(c[l],r)}catch(u){_e(a,a.return,u)}}s&&o&64&&Sy(i),wa(i,i.return);break;case 27:(n&2)!==0&&Ty(i);case 5:i.tag!==5&&i.tag!==27||Qg(i),la(l,i,n),s&&a===null&&o&4&&am(i),wa(i,i.return);break;case 6:Qg(i);break;case 26:r=i.stateNode,i.memoizedState!==null||r===null||$t||_m(er(r.ownerDocument),i.type,r),la(l,i,n),s&&a===null&&o&4&&am(i),wa(i,i.return);break;case 12:la(l,i,n);break;case 31:la(l,i,n),s&&o&4&&Dy(l,i);break;case 13:la(l,i,n),s&&o&4&&zy(l,i);break;case 22:i.memoizedState===null&&la(l,i,n),wa(i,i.return);break;case 30:la(l,i,n),wa(i,i.return);break;case 7:wa(i,i.return);default:la(l,i,n)}t=t.sibling}}function gh(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&cr(n))}function vh(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&cr(e))}function jn(e,t,n,a){var l=(n&335544064)===n;if(t.subtreeFlags&(l?10262:10256))for(t=t.child;t!==null;)By(e,t,n,a),t=t.sibling;else l&&$y(t)}function By(e,t,n,a){var l=(n&335544064)===n;l&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&xu(t);var i=t.flags;switch(t.tag){case 0:case 11:case 15:jn(e,t,n,a),i&2048&&fr(9,t);break;case 1:jn(e,t,n,a);break;case 3:jn(e,t,n,a),l&&um&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),i&2048&&(i=null,t.alternate!==null&&(i=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==i&&(t.refCount++,i!=null&&cr(i)));break;case 12:if(i&2048){jn(e,t,n,a),i=t.stateNode;try{var o=t.memoizedProps,s=o.id,r=o.onPostCommit;typeof r=="function"&&r(s,t.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(c){_e(t,t.return,c)}}else jn(e,t,n,a);break;case 31:jn(e,t,n,a);break;case 13:jn(e,t,n,a);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState!==null?(l&&s!==null&&s.memoizedState===null&&xu(s),o._visibility&2?jn(e,t,n,a):qs(e,t)):(l&&s!==null&&s.memoizedState!==null&&xu(t),o._visibility&2?jn(e,t,n,a):(o._visibility|=2,lo(e,t,n,a,(t.subtreeFlags&10256)!==0||!1))),i&2048&&gh(s,t);break;case 24:jn(e,t,n,a),i&2048&&vh(t.alternate,t);break;case 30:l&&(i=t.alternate,i!==null&&(za(i.child,!0),za(t.child,!0))),jn(e,t,n,a);break;default:jn(e,t,n,a)}}function lo(e,t,n,a,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,s=n,r=a,c=o.flags;switch(o.tag){case 0:case 11:case 15:lo(i,o,s,r,l),fr(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState!==null?u._visibility&2?lo(i,o,s,r,l):qs(i,o):(u._visibility|=2,lo(i,o,s,r,l)),l&&c&2048&&gh(o.alternate,o);break;case 24:lo(i,o,s,r,l),l&&c&2048&&vh(o.alternate,o);break;default:lo(i,o,s,r,l)}t=t.sibling}}function qs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,l=a.flags;switch(a.tag){case 22:qs(n,a),l&2048&&gh(a.alternate,a);break;case 24:qs(n,a),l&2048&&vh(a.alternate,a);break;default:qs(n,a)}t=t.sibling}}var gi=8192;function mi(e,t,n){if(e.subtreeFlags&gi)for(e=e.child;e!==null;)Hy(e,t,n),e=e.sibling}function Hy(e,t,n){switch(e.tag){case 26:mi(e,t,n),e.flags&gi&&(e.memoizedState!==null?o3(n,ia,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Tv(n,e)));break;case 5:mi(e,t,n),e.flags&gi&&(e=e.stateNode,(t&335544128)===t&&Tv(n,e));break;case 3:case 4:var a=ia;ia=er(e.stateNode.containerInfo),mi(e,t,n),ia=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gi,gi=16777216,mi(e,t,n),gi=a):mi(e,t,n));break;case 30:if((e.flags&gi)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var l=e.stateNode;l.paired=null,$n===null&&($n=new Map),$n.set(a,l)}mi(e,t,n);break;default:mi(e,t,n)}}function qy(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function As(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Rt=a,jy(a,e)}qy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ky(e),e=e.sibling}function ky(e){switch(e.tag){case 0:case 11:case 15:As(e),e.flags&2048&&Jl(9,e,e.return);break;case 3:As(e);break;case 12:As(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Lu(e)):As(e);break;default:As(e)}}function Lu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Rt=a,jy(a,e)}qy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Jl(8,t,t.return),Lu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Lu(t));break;default:Lu(t)}e=e.sibling}}function jy(e,t){for(;Rt!==null;){var n=Rt;switch(n.tag){case 0:case 11:case 15:Jl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:cr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Rt=a;else e:for(n=e;Rt!==null;){a=Rt;var l=a.sibling,i=a.return;if(Oy(a),a===n){Rt=null;break e}if(l!==null){l.return=i,Rt=l;break e}Rt=i}}}var aM={getCacheForType:function(e){var t=Ut(ht),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ut(ht).controller.signal}},lM=typeof WeakMap=="function"?WeakMap:Map,Se=0,xe=null,ce=null,fe=0,$e=0,Tn=null,xl=!1,Ko=!1,yh=!1,tl=0,ot=0,Fl=0,Ti=0,uc=0,Rn=0,zo=0,ks=null,hn=null,fm=!1,Cc=0,Yy=0,cc=1/0,dc=null,Gl=null,Fe=0,sa=null,Ci=null,Da=0,mm=0,hm=null,Gy=null,$o=null,Ro=null,_o=null,js=0,Uu=null;function Cn(){return(Se&2)!==0&&fe!==0?fe&-fe:Q.T!==null?Sh():Iv()}function Vy(){if(Rn===0)if((fe&536870912)===0||oe){var e=lu;lu<<=1,(lu&3932160)===0&&(lu=262144),Rn=e}else Rn=536870912;return e=kt.current,e!==null&&(e.flags|=32),Rn}function xo(e,t){if(t!=null){var n=e.stateNode,a=n.ref;a===null&&(a=n.ref=db(Fa(e.memoizedProps,n))),Ro===null&&(Ro=[]),Ro.push(t.bind(null,a))}}function vn(e,t,n){(e===xe&&($e===2||$e===9)||e.cancelPendingCommit!==null)&&(Lo(e,0),Ll(e,fe,Rn,!1)),sr(e,n),((Se&2)===0||e!==xe)&&(e===xe&&((Se&2)===0&&(Ti|=n),ot===4&&Ll(e,fe,Rn,!1)),La(e))}function Xy(e,t,n){if((Se&6)!==0)throw Error(N(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||or(e,t),l=a?sM(e,t):ff(e,t,!0),i=a;do{if(l===0){Ko&&!a&&Ll(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!iM(n)){l=ff(e,t,!1),i=!1;continue}if(l===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var s=e;l=ks;var r=s.current.memoizedState.isDehydrated;if(r&&(Lo(s,o).flags|=256),o=ff(s,o,!1),o!==2&&o!==6){if(yh&&!r){s.errorRecoveryDisabledLanes|=i,Ti|=i,l=4;break e}i=hn,hn=l,i!==null&&(hn===null?hn=i:hn.push.apply(hn,i))}l=o}if(i=!1,l!==2)continue}}if(l===1){Lo(e,0),Ll(e,t,0,!0);break}e:{switch(a=e,i=l,i){case 0:case 1:throw Error(N(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ll(a,t,Rn,!xl);break e;case 2:hn=null;break;case 3:case 5:break;default:throw Error(N(329))}if((t&62914560)===t&&(l=Cc+300-_n(),10<l)){if(Ll(a,t,Rn,!xl),vc(a,0,!0)!==0)break e;Da=t,a.timeoutHandle=Eh(Wg.bind(null,a,n,hn,dc,fm,t,Rn,Ti,zo,xl,i,"Throttled",-0,0),l);break e}Wg(a,n,hn,dc,fm,t,Rn,Ti,zo,xl,i,null,-0,0)}}break}while(!0);La(e)}function Wg(e,t,n,a,l,i,o,s,r,c,u,m,f,d){e.timeoutHandle=-1;var v=t.subtreeFlags,b=(i&335544064)===i;if(m=null,(b||v&8192||(v&16785408)===16785408)&&(m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_a},$n=null,Hy(t,i,m),b&&(v=m,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(v.count++,v.waitingForViewTransition=!0,v=tr.bind(v),b.finished.then(v,v))),v=(i&62914560)===i?Cc-_n():(i&4194048)===i?Yy-_n():0,v=s3(m,v),v!==null)){Da=i,e.cancelPendingCommit=v(ev.bind(null,e,t,i,n,a,l,o,s,r,c,u,m,null,f,d)),Ll(e,i,o,!c);return}ev(e,t,i,n,a,l,o,s,r,c,u,m)}function iM(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var l=n[a],i=l.getSnapshot;l=l.value;try{if(!Dn(i(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ll(e,t,n,a){t=Yv(e,t),t&=~uc,t&=~Ti,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var l=t;0<l;){var i=31-On(l),o=1<<i;a[i]=-1,l&=~o}n!==0&&Vv(e,n,t)}function Dc(){return(Se&6)===0?(mr(0,!1),!1):!0}function bh(){if(ce!==null){if($e===0)var e=ce.return;else e=ce,Ia=Ui=null,nh(e),To=null,Qs=0,e=ce;for(;e!==null;)by(e.alternate,e),e=e.return;ce=null}}function Lo(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,RM(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Da=0,bh(),xe=e,ce=n=Qa(e.current,null),fe=t,$e=0,Tn=null,xl=!1,Ko=or(e,t),yh=!1,zo=Rn=uc=Ti=Fl=ot=0,hn=ks=null,fm=!1,tl=Yv(e,t),Ec(),n}function Ky(e,t){te=null,Q.H=ac,t===Vo||t===wc?(t=wg(),$e=3):t===Qm?(t=wg(),$e=4):$e=t===ch?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tn=t,ce===null&&(ot=1,lc(e,Kn(t,e.current)))}function Iy(){var e=kt.current;return e===null?!0:(fe&4194048)===fe?It===null:(fe&62914560)===fe||(fe&536870912)!==0?e===It:!1}function Qy(){var e=Q.H;return Q.H=ac,e===null?ac:e}function Zy(){var e=Q.A;return Q.A=aM,e}function fc(){ot=4,xl||(fe&4194048)!==fe&&kt.current!==null||(Ko=!0),(Fl&134217727)===0&&(Ti&134217727)===0||xe===null||Ll(xe,fe,Rn,!1)}function ff(e,t,n){var a=Se;Se|=2;var l=Qy(),i=Zy();(xe!==e||fe!==t)&&(dc=null,Lo(e,t)),t=!1;var o=ot;e:do try{if($e!==0&&ce!==null){var s=ce,r=Tn;switch($e){case 8:bh(),o=6;break e;case 3:case 2:case 9:case 6:kt.current===null&&(t=!0);var c=$e;if($e=0,Tn=null,yo(e,s,r,c),n&&Ko){o=0;break e}break;default:c=$e,$e=0,Tn=null,yo(e,s,r,c)}}oM(),o=ot;break}catch(u){Ky(e,u)}while(!0);return t&&e.shellSuspendCounter++,Ia=Ui=null,Se=a,Q.H=l,Q.A=i,ce===null&&(xe=null,fe=0,Ec()),o}function oM(){for(;ce!==null;)Jy(ce)}function sM(e,t){var n=Se;Se|=2;var a=Qy(),l=Zy();xe!==e||fe!==t?(dc=null,cc=_n()+500,Lo(e,t)):Ko=or(e,t);e:do try{if($e!==0&&ce!==null){t=ce;var i=Tn;t:switch($e){case 1:$e=0,Tn=null,yo(e,t,i,1);break;case 2:case 9:if(Mg(i)){$e=0,Tn=null,Pg(t);break}t=function(){$e!==2&&$e!==9||xe!==e||($e=7),La(e)},i.then(t,t);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:Mg(i)?($e=0,Tn=null,Pg(t)):($e=0,Tn=null,yo(e,t,i,7));break;case 5:var o=null;switch(ce.tag){case 26:o=ce.memoizedState;case 5:case 27:var s=ce;if(o?Ab(o):s.stateNode.complete){$e=0,Tn=null;var r=s.sibling;if(r!==null)ce=r;else{var c=s.return;c!==null?(ce=c,zc(c)):ce=null}break t}}$e=0,Tn=null,yo(e,t,i,5);break;case 6:$e=0,Tn=null,yo(e,t,i,6);break;case 8:bh(),ot=6;break e;default:throw Error(N(462))}}rM();break}catch(u){Ky(e,u)}while(!0);return Ia=Ui=null,Q.H=a,Q.A=l,Se=n,ce!==null?0:(xe=null,fe=0,Ec(),ot)}function rM(){for(;ce!==null&&!wE();)Jy(ce)}function Jy(e){var t=yy(e.alternate,e,tl);e.memoizedProps=e.pendingProps,t===null?zc(e):ce=t}function Pg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=jg(n,t,t.pendingProps,t.type,void 0,fe);break;case 11:t=jg(n,t,t.pendingProps,t.type.render,t.ref,fe);break;case 5:nh(t);var a=t;a===Nt&&(oe?(Ju(a),a.tag===5&&a.stateNode!=null&&(qe=a.stateNode)):(Ju(a),oe=!0));default:by(n,t),t=ce=S1(t,tl),t=yy(n,t,tl)}e.memoizedProps=e.pendingProps,t===null?zc(e):ce=t}function yo(e,t,n,a){Ia=Ui=null,nh(t),To=null,Qs=0;var l=t.return;try{if(ZT(e,l,t,n,fe)){ot=1,lc(e,Kn(n,e.current)),ce=null;return}}catch(i){if(l!==null)throw ce=l,i;ot=1,lc(e,Kn(n,e.current)),ce=null;return}t.flags&32768?(oe||a===1?e=!0:Ko||(fe&536870912)!==0?e=!1:(xl=e=!0,(a===2||a===9||a===3||a===6)&&(a=kt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Fy(t,e)):zc(t)}function zc(e){var t=e;do{if((t.flags&32768)!==0){Fy(t,xl);return}e=t.return;var n=PT(t.alternate,t,tl);if(n!==null){ce=n;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);ot===0&&(ot=5)}function Fy(e,t){do{var n=eM(e.alternate,e);if(n!==null){n.flags&=32767,ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=n}while(e!==null);ot=6,ce=null}function ev(e,t,n,a,l,i,o,s,r,c,u,m){e.cancelPendingCommit=null;do xc();while(Fe!==0);if((Se&6)!==0)throw Error(N(327));if(t!==null){if(t===e.current)throw Error(N(177));e===xe&&(ce=xe=null,fe=0),Ci=t,sa=e,Da=n,hm=l,Gy=a,uM(e,t,n,o,s,r,m)}}function uM(e,t,n,a,l,i,o){var s=t.lanes|t.childLanes;if(mm=s,s|=Ym,LE(e,n,s,a,l,i),Ro=null,(n&335544064)===n?(_o=BT(e),a=10262):(_o=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,pM(Xu,function(){return ym(),null})):(e.callbackNode=null,e.callbackPriority=0),sc=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=Q.T,Q.T=null,l=Ae.p,Ae.p=2,i=Se,Se|=4;try{tM(e,t,n)}finally{Se=i,Ae.p=l,Q.T=a}}Fe=1,sc?$o=zM(o,e.containerInfo,_o,pm,gm,dM,vm,ym,cM,null,null):(pm(),gm(),vm())}function cM(e){if(Fe!==0){var t=sa.onRecoverableError;t(e,{componentStack:null})}}function dM(){Fe===3&&(Fe=0,Uy(Ci,sa),Fe=4)}function pm(){if(Fe===1){Fe=0;var e=sa,t=Ci,n=Da,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=Q.T,Q.T=null;var l=Ae.p;Ae.p=2;var i=Se;Se|=4;try{_s=rc=!1,xy(t,e,n),n=Em;var o=f1(e.containerInfo),s=n.focusedElem,r=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&d1(s.ownerDocument.documentElement,s)){if(r!==null&&jm(s)){var c=r.start,u=r.end;if(u===void 0&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var m=s.ownerDocument||document,f=m&&m.defaultView||window;if(f.getSelection){var d=f.getSelection(),v=s.textContent.length,b=Math.min(r.start,v),E=r.end===void 0?b:Math.min(r.end,v);!d.extend&&b>E&&(o=E,E=b,b=o);var p=gg(s,b),h=gg(s,E);if(p&&h&&(d.rangeCount!==1||d.anchorNode!==p.node||d.anchorOffset!==p.offset||d.focusNode!==h.node||d.focusOffset!==h.offset)){var g=m.createRange();g.setStart(p.node,p.offset),d.removeAllRanges(),b>E?(d.addRange(g),d.extend(h.node,h.offset)):(g.setEnd(h.node,h.offset),d.addRange(g))}}}}for(m=[],d=s;d=d.parentNode;)d.nodeType===1&&m.push({element:d,left:d.scrollLeft,top:d.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<m.length;s++){var y=m[s];y.element.scrollLeft=y.left,y.element.scrollTop=y.top}}ko=!!Am,Em=Am=null}finally{Se=i,Ae.p=l,Q.T=a}}e.current=t,Fe=2}}function gm(){if(Fe===2){Fe=0;var e=sa,t=Ci,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Q.T,Q.T=null;var a=Ae.p;Ae.p=2;var l=Se;Se|=4;try{_y(e,t.alternate,t)}finally{Se=l,Ae.p=a,Q.T=n}}Fe=3}}function vm(){if(Fe===4||Fe===3){Fe=0;var e=$o;$o=null,$E();var t=sa,n=Ci,a=Da,l=Gy,i=(a&335544064)===a?10262:10256;if((n.subtreeFlags&i)!==0||(n.flags&i)!==0?Fe=5:(Fe=0,Ci=sa=null,Wy(t,t.pendingLanes)),i=t.pendingLanes,i===0&&(Gl=null),Lm(a),n=n.stateNode,Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(ir,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=Q.T,i=Ae.p,Ae.p=2,Q.T=null;try{for(var o=t.onRecoverableError,s=0;s<l.length;s++){var r=l[s];o(r.value,{componentStack:r.stack})}}finally{Q.T=n,Ae.p=i}}if(l=Ro,o=_o,_o=null,l!==null&&(Ro=null,o===null&&(o=[]),e!==null))for(r=0;r<l.length;r++)n=(0,l[r])(o),n!==void 0&&e.finished.finally(n);(Da&3)!==0&&xc(),La(t),i=t.pendingLanes,(a&261930)!==0&&(i&42)!==0?t===Uu?js++:(js=0,Uu=t):(js=0,Uu=null),mr(0,!1)}}function Wy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,cr(t)))}function xc(){return $o!==null&&($o.skipTransition(),$o=null),pm(),gm(),vm(),ym()}function ym(){if(Fe!==5)return!1;var e=sa,t=mm;mm=0;var n=Lm(Da),a=Q.T,l=Ae.p;try{Ae.p=32>n?32:n,Q.T=null,n=hm,hm=null;var i=sa,o=Da;if(Fe=0,Ci=sa=null,Da=0,(Se&6)!==0)throw Error(N(331));var s=Se;if(Se|=4,ky(i.current),By(i,i.current,o,n),Se=s,mr(0,!1),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(ir,i)}catch{}return!0}finally{Ae.p=l,Q.T=a,Wy(e,t)}}function tv(e,t,n){t=Kn(n,t),t=Ff(e.stateNode,t,2),e=kl(e,t,2),e!==null&&(sr(e,2),La(e))}function _e(e,t,n){if(e.tag===3)tv(e,e,n);else for(;t!==null;){if(t.tag===3){tv(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Gl===null||!Gl.has(a))){e=Kn(n,e),n=my(2),a=kl(t,n,2),a!==null&&(hy(n,a,t,e),sr(a,2),La(a));break}}t=t.return}}function mf(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new lM;var l=new Set;a.set(t,l)}else l=a.get(t),l===void 0&&(l=new Set,a.set(t,l));l.has(n)||(yh=!0,l.add(n),e=fM.bind(null,e,t,n),t.then(e,e))}function fM(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,xe===e&&(fe&n)===n&&((ot===4||ot===3&&(fe&62914560)===fe&&300>_n()-Cc)&&(Se&2)===0?Lo(e,0):uc|=n,zo===fe&&(zo=0)),La(e)}function Py(e,t){t===0&&(t=Gv()),e=Li(e,t),e!==null&&(sr(e,t),La(e))}function mM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Py(e,n)}function hM(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(N(314))}a!==null&&a.delete(t),Py(e,n)}function pM(e,t){return zm(e,t)}var Uo=null,io=null,bm=!1,mc=!1,hf=!1,Ul=0;function La(e){e!==io&&e.next===null&&(io===null?Uo=io=e:io=io.next=e),mc=!0,bm||(bm=!0,vM())}function mr(e,t){if(!hf&&mc){hf=!0;do for(var n=!1,a=Uo;a!==null;){if(!t)if(e!==0){var l=a.pendingLanes;if(l===0)var i=0;else{var o=a.suspendedLanes,s=a.pingedLanes;i=(1<<31-On(42|e)+1)-1,i&=l&~(o&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,nv(a,i))}else i=fe,i=vc(a,a===xe?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||or(a,i)||(n=!0,nv(a,i));a=a.next}while(n);hf=!1}}function gM(){eb()}function eb(){mc=bm=!1;var e=0;Ul!==0&&$M()&&(e=Ul);for(var t=_n(),n=null,a=Uo;a!==null;){var l=a.next,i=tb(a,t);i===0?(a.next=null,n===null?Uo=l:n.next=l,l===null&&(io=n)):(n=a,(e!==0||(i&3)!==0)&&(mc=!0)),a=l}Fe!==0&&Fe!==5||mr(e,!1),Ul!==0&&(Ul=0)}function tb(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-On(i),s=1<<o,r=l[o];r===-1?((s&n)===0||(s&a)!==0)&&(l[o]=xE(s,t)):r<=t&&(e.expiredLanes|=s),i&=~s}if(t=xe,n=fe,n=vc(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&($e===2||$e===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Xd(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||or(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Xd(a),Lm(n)){case 2:case 8:n=kv;break;case 32:n=Xu;break;case 268435456:n=jv;break;default:n=Xu}return a=nb.bind(null,e),n=zm(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Xd(a),e.callbackPriority=2,e.callbackNode=null,2}function nb(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var a=fe;return a=vc(e,e===xe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Xy(e,a,t),tb(e,_n()),e.callbackNode!=null&&e.callbackNode===n?nb.bind(null,e):null)}function nv(e,t){if(xc())return null;Xy(e,t,!0)}function vM(){_M(function(){(Se&6)!==0?zm(qv,gM):eb()})}function Sh(){if(Ul===0){var e=Ri;e===0&&(e=au,au<<=1,(au&261888)===0&&(au=256)),Ul=e}return Ul}function av(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mu(e)}function yM(e,t,n,a,l){if(t==="submit"&&n&&n.stateNode===l){var i=av((l[bn]||null).action),o=a.submitter;o&&(t=(t=o[bn]||null)?av(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var s=new bc("action","action",null,a,l);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ul!==0){var r=new FormData(l,o);Zf(n,{pending:!0,data:r,method:l.method,action:i},null,r)}}else typeof i=="function"&&(s.preventDefault(),r=new FormData(l,o),Zf(n,{pending:!0,data:r,method:l.method,action:i},i,r))},currentTarget:l}]})}}for(yu=0;yu<Hf.length;yu++)bu=Hf[yu],lv=bu.toLowerCase(),iv=bu[0].toUpperCase()+bu.slice(1),ra(lv,"on"+iv);var bu,lv,iv,yu;ra(h1,"onAnimationEnd");ra(p1,"onAnimationIteration");ra(g1,"onAnimationStart");ra("dblclick","onDoubleClick");ra("focusin","onFocus");ra("focusout","onBlur");ra(NT,"onTransitionRun");ra(OT,"onTransitionStart");ra(CT,"onTransitionCancel");ra(v1,"onTransitionEnd");Oo("onMouseEnter",["mouseout","mouseover"]);Oo("onMouseLeave",["mouseout","mouseover"]);Oo("onPointerEnter",["pointerout","pointerover"]);Oo("onPointerLeave",["pointerout","pointerover"]);zi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));zi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));zi("onBeforeInput",["compositionend","keypress","textInput","paste"]);zi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));zi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));zi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fs="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(" "),bM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fs));function ab(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],l=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var o=a.length-1;0<=o;o--){var s=a[o],r=s.instance,c=s.currentTarget;if(s=s.listener,r!==i&&l.isPropagationStopped())break e;i=s,l.currentTarget=c;try{i(l)}catch(u){Iu(u)}l.currentTarget=null,i=r}else for(o=0;o<a.length;o++){if(s=a[o],r=s.instance,c=s.currentTarget,s=s.listener,r!==i&&l.isPropagationStopped())break e;i=s,l.currentTarget=c;try{i(l)}catch(u){Iu(u)}l.currentTarget=null,i=r}}}}function ue(e,t){var n=t[P0];n===void 0&&(n=t[P0]=new Set);var a=e+"__bubble";n.has(a)||(lb(t,e,2,!1),n.add(a))}function pf(e,t,n){var a=0;t&&(a|=4),lb(n,e,a,t)}var Su="_reactListening"+Math.random().toString(36).slice(2);function Ah(e){if(!e[Su]){e[Su]=!0,Zv.forEach(function(n){n!=="selectionchange"&&(bM.has(n)||pf(n,!1,e),pf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Su]||(t[Su]=!0,pf("selectionchange",!1,t))}}function lb(e,t,n,a){switch(_b(t)){case 2:var l=d3;break;case 8:l=f3;break;default:l=_h}n=l.bind(null,t,n,e),l=void 0,!xf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),a?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function gf(e,t,n,a,l){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var s=a.stateNode.containerInfo;if(s===l)break;if(o===4)for(o=a.return;o!==null;){var r=o.tag;if((r===3||r===4)&&o.stateNode.containerInfo===l)return;o=o.return}for(;s!==null;){if(o=vi(s),o===null)return;if(r=o.tag,r===5||r===6||r===26||r===27){a=i=o;continue e}s=s.parentNode}}a=a.return}a1(function(){var c=i,u=Bm(n),m=[];e:{var f=y1.get(e);if(f!==void 0){var d=bc,v=e;switch(e){case"keypress":if($u(n)===0)break e;case"keydown":case"keyup":d=iT;break;case"focusin":v="focus",d=Fd;break;case"focusout":v="blur",d=Fd;break;case"beforeblur":case"afterblur":d=Fd;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=sg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=IE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=cT;break;case h1:case p1:case g1:d=JE;break;case v1:d=fT;break;case"scroll":case"scrollend":d=XE;break;case"wheel":d=hT;break;case"copy":case"cut":case"paste":d=WE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=ug;break;case"submit":d=rT;break;case"toggle":case"beforetoggle":d=gT}var b=(t&4)!==0,E=!b&&(e==="scroll"||e==="scrollend"),p=b?f!==null?f+"Capture":null:f;b=[];for(var h=c,g;h!==null;){var y=h;if(g=y.stateNode,y=y.tag,y!==5&&y!==26&&y!==27||g===null||p===null||(y=Gs(h,p),y!=null&&b.push(Ws(h,y,g))),E)break;h=h.return}0<b.length&&(f=new d(f,v,null,n,u),m.push({event:f,listeners:b}))}}if((t&7)===0){e:{if(d=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",d&&n!==zf&&(v=n.relatedTarget||n.fromElement)&&(vi(v)||v[Yo]))break e;(f||d)&&(v=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,f?(d=n.relatedTarget||n.toElement,f=c,d=d?vi(d):null,d!==null&&(E=lr(d),b=d.tag,d!==E||b!==5&&b!==27&&b!==6)&&(d=null)):(f=null,d=c),f!==d&&(b=sg,y="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(b=ug,y="onPointerLeave",p="onPointerEnter",h="pointer"),E=f==null?v:$s(f),g=d==null?v:$s(d),v=new b(y,h+"leave",f,n,u),v.target=E,v.relatedTarget=g,y=null,vi(u)===c&&(b=new b(p,h+"enter",d,n,u),b.target=g,b.relatedTarget=E,y=b),E=y,b=f&&d?Af(f,d,SM):null,f!==null&&ov(m,v,f,b,!1),d!==null&&E!==null&&ov(m,E,d,b,!0)))}e:{if(f=c?$s(c):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var M=mg;else if(fg(f))if(u1)M=$T;else{M=MT;var w=TT}else d=f.nodeName,!d||d.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?c&&Um(c.elementType)&&(M=mg):M=wT;if(M&&(M=M(e,c))){r1(m,M,n,u);break e}w&&w(e,f,c)}switch(w=c?$s(c):window,e){case"focusin":(fg(w)||w.contentEditable==="true")&&(fo=w,Uf=c,Cs=null);break;case"focusout":Cs=Uf=fo=null;break;case"mousedown":Bf=!0;break;case"contextmenu":case"mouseup":case"dragend":Bf=!1,vg(m,n,u);break;case"selectionchange":if(_T)break;case"keydown":case"keyup":vg(m,n,u)}var T;if(km)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else co?o1(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(i1&&n.locale!=="ko"&&(co||A!=="onCompositionStart"?A==="onCompositionEnd"&&co&&(T=l1()):(Dl=u,Hm="value"in Dl?Dl.value:Dl.textContent,co=!0)),w=hc(c,A),0<w.length&&(A=new rg(A,e,null,n,u),m.push({event:A,listeners:w}),T?A.data=T:(T=s1(n),T!==null&&(A.data=T)))),(T=yT?bT(e,n):ST(e,n))&&(A=hc(c,"onBeforeInput"),0<A.length&&(w=new rg("onBeforeInput","beforeinput",null,n,u),m.push({event:w,listeners:A}),w.data=T)),yM(m,e,c,n,u)}ab(m,t)})}function Ws(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hc(e,t){for(var n=t+"Capture",a=[];e!==null;){var l=e,i=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||i===null||(l=Gs(e,n),l!=null&&a.unshift(Ws(e,l,i)),l=Gs(e,t),l!=null&&a.push(Ws(e,l,i))),e.tag===3)return a;e=e.return}return[]}function SM(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ov(e,t,n,a,l){for(var i=t._reactName,o=[];n!==null&&n!==a;){var s=n,r=s.alternate,c=s.stateNode;if(s=s.tag,r!==null&&r===a)break;s!==5&&s!==26&&s!==27||c===null||(r=c,l?(c=Gs(n,i),c!=null&&o.unshift(Ws(n,c,r))):l||(c=Gs(n,i),c!=null&&o.push(Ws(n,c,r)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var AM=/\r\n?/g,EM=/\u0000|\uFFFD/g;function sv(e){return(typeof e=="string"?e:""+e).replace(AM,`
|
|
41
|
-
`).replace(EM,"")}function ib(e,t){return t=sv(t),sv(e)===t}function Re(e,t,n,a,l,i){switch(n){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Co(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Co(e,""+a);else return;break;case"className":ou(e,"class",a);break;case"tabIndex":ou(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ou(e,n,a);break;case"style":n1(e,a,i);return;case"data":if(t!=="object"){ou(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Mu(a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 i=="function"&&(n==="formAction"?(t!=="input"&&Re(e,t,"name",l.name,l,null),Re(e,t,"formEncType",l.formEncType,l,null),Re(e,t,"formMethod",l.formMethod,l,null),Re(e,t,"formTarget",l.formTarget,l,null)):(Re(e,t,"encType",l.encType,l,null),Re(e,t,"method",l.method,l,null),Re(e,t,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Mu(a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=_a);return;case"onScroll":a!=null&&ue("scroll",e);return;case"onScrollEnd":a!=null&&ue("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(N(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(N(60));i?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Mu(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":ue("beforetoggle",e),ue("toggle",e),Tu(e,"popover",a);break;case"xlinkActuate":Va(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Va(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Va(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Va(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Va(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Va(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Va(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Va(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Va(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Tu(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=GE.get(n)||n,Tu(e,n,a);else return}ge=!0}function Sm(e,t,n,a,l,i){switch(n){case"style":n1(e,a,i);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(N(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(N(60));i?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof a=="string")Co(e,a);else if(typeof a=="number"||typeof a=="bigint")Co(e,""+a);else return;break;case"onScroll":a!=null&&ue("scroll",e);return;case"onScrollEnd":a!=null&&ue("scrollend",e);return;case"onClick":a!=null&&(e.onclick=_a);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Jv.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),i=n.slice(2,l?n.length-7:void 0),t=e[bn]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(i,t,l),typeof a=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(i,a,l);break e}ge=!0,n in e?e[n]=a:a===!0?e.setAttribute(n,""):Tu(e,n,a)}return}ge=!0}function qt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ue("error",e),ue("load",e);var a=!1,l=!1,i;for(i in n)if(n.hasOwnProperty(i)){var o=n[i];if(o!=null)switch(i){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(N(137,t));default:Re(e,t,i,o,n,null)}}l&&Re(e,t,"srcSet",n.srcSet,n,null),a&&Re(e,t,"src",n.src,n,null);return;case"input":ue("invalid",e);var s=i=o=l=null,r=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var u=n[a];if(u!=null)switch(a){case"name":l=u;break;case"type":o=u;break;case"checked":r=u;break;case"defaultChecked":c=u;break;case"value":i=u;break;case"defaultValue":s=u;break;case"children":case"dangerouslySetInnerHTML":if(u!=null)throw Error(N(137,t));break;default:Re(e,t,a,u,n,null)}}Pv(e,i,s,r,c,o,l,!1);return;case"select":ue("invalid",e),a=o=i=null;for(l in n)if(n.hasOwnProperty(l)&&(s=n[l],s!=null))switch(l){case"value":i=s;break;case"defaultValue":o=s;break;case"multiple":a=s;default:Re(e,t,l,s,n,null)}t=i,n=o,e.multiple=!!a,t!=null?So(e,!!a,t,!1):n!=null&&So(e,!!a,n,!0);return;case"textarea":ue("invalid",e),i=l=a=null;for(o in n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case"value":a=s;break;case"defaultValue":l=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(N(91));break;default:Re(e,t,o,s,n,null)}t1(e,a,l,i);return;case"option":for(r in n)n.hasOwnProperty(r)&&(a=n[r],a!=null)&&(r==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Re(e,t,r,a,n,null));return;case"dialog":ue("beforetoggle",e),ue("toggle",e),ue("cancel",e),ue("close",e);break;case"iframe":case"object":ue("load",e);break;case"video":case"audio":for(a=0;a<Fs.length;a++)ue(Fs[a],e);break;case"image":ue("error",e),ue("load",e);break;case"details":ue("toggle",e);break;case"embed":case"source":case"link":ue("error",e),ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(a=n[c],a!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(N(137,t));default:Re(e,t,c,a,n,null)}return;default:if(Um(t)){for(u in n)n.hasOwnProperty(u)&&(a=n[u],a!==void 0&&Sm(e,t,u,a,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(a=n[s],a!=null&&Re(e,t,s,a,n,null))}var TM={};function MM(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,i=null,o=null,s=null,r=null,c=null,u=null;for(d in n){var m=n[d];if(n.hasOwnProperty(d)&&m!=null)switch(d){case"checked":break;case"value":break;case"defaultValue":r=m;default:a.hasOwnProperty(d)||Re(e,t,d,null,a,m)}}for(var f in a){var d=a[f];if(m=n[f],a.hasOwnProperty(f)&&(d!=null||m!=null))switch(f){case"type":d!==m&&(ge=!0),i=d;break;case"name":d!==m&&(ge=!0),l=d;break;case"checked":d!==m&&(ge=!0),c=d;break;case"defaultChecked":d!==m&&(ge=!0),u=d;break;case"value":d!==m&&(ge=!0),o=d;break;case"defaultValue":d!==m&&(ge=!0),s=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(N(137,t));break;default:d!==m&&Re(e,t,f,d,a,m)}}Df(e,o,s,r,c,u,i,l);return;case"select":d=o=s=f=null;for(i in n)if(r=n[i],n.hasOwnProperty(i)&&r!=null)switch(i){case"value":break;case"multiple":d=r;default:a.hasOwnProperty(i)||Re(e,t,i,null,a,r)}for(l in a)if(i=a[l],r=n[l],a.hasOwnProperty(l)&&(i!=null||r!=null))switch(l){case"value":i!==r&&(ge=!0),f=i;break;case"defaultValue":i!==r&&(ge=!0),s=i;break;case"multiple":i!==r&&(ge=!0),o=i;default:i!==r&&Re(e,t,l,i,a,r)}t=s,n=o,a=d,f!=null?So(e,!!n,f,!1):!!a!=!!n&&(t!=null?So(e,!!n,t,!0):So(e,!!n,n?[]:"",!1));return;case"textarea":d=f=null;for(s in n)if(l=n[s],n.hasOwnProperty(s)&&l!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Re(e,t,s,null,a,l)}for(o in a)if(l=a[o],i=n[o],a.hasOwnProperty(o)&&(l!=null||i!=null))switch(o){case"value":l!==i&&(ge=!0),f=l;break;case"defaultValue":l!==i&&(ge=!0),d=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(N(91));break;default:l!==i&&Re(e,t,o,l,a,i)}e1(e,f,d);return;case"option":for(var v in n)f=n[v],n.hasOwnProperty(v)&&f!=null&&!a.hasOwnProperty(v)&&(v==="selected"?e.selected=!1:Re(e,t,v,null,a,f));for(r in a)f=a[r],d=n[r],a.hasOwnProperty(r)&&f!==d&&(f!=null||d!=null)&&(r==="selected"?(f!==d&&(ge=!0),e.selected=f&&typeof f!="function"&&typeof f!="symbol"):Re(e,t,r,f,a,d));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 b in n)f=n[b],n.hasOwnProperty(b)&&f!=null&&!a.hasOwnProperty(b)&&Re(e,t,b,null,a,f);for(c in a)if(f=a[c],d=n[c],a.hasOwnProperty(c)&&f!==d&&(f!=null||d!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(N(137,t));break;default:Re(e,t,c,f,a,d)}return;default:if(Um(t)){for(var E in n)f=n[E],n.hasOwnProperty(E)&&f!==void 0&&!a.hasOwnProperty(E)&&Sm(e,t,E,void 0,a,f);for(u in a)f=a[u],d=n[u],!a.hasOwnProperty(u)||f===d||f===void 0&&d===void 0||Sm(e,t,u,f,a,d);return}}for(var p in n)f=n[p],n.hasOwnProperty(p)&&f!=null&&!a.hasOwnProperty(p)&&Re(e,t,p,null,a,f);for(m in a)f=a[m],d=n[m],!a.hasOwnProperty(m)||f===d||f==null&&d==null||Re(e,t,m,f,a,d)}function rv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wM(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var l=n[a],i=l.transferSize,o=l.initiatorType,s=l.duration;if(i&&s&&rv(o)){for(o=0,s=l.responseEnd,a+=1;a<n.length;a++){var r=n[a],c=r.startTime;if(c>s)break;var u=r.transferSize,m=r.initiatorType;u&&rv(m)&&(r=r.responseEnd,o+=u*(r<s?1:(s-c)/(r-c)))}if(--a,t+=8*(i+o)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Am=null,Em=null;function Ps(e){return e.nodeType===9?e:e.ownerDocument}function uv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ob(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function sb(e,t,n,a){return n=Ps(n).createElement(e),n[Lt]=a,n[bn]=t,qt(n,e,t),_t(n),n}function Tm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vf=null;function $M(){var e=window.event;return e&&e.type==="popstate"?e===vf?!1:(vf=e,!0):(vf=null,!1)}var Eh=typeof setTimeout=="function"?setTimeout:void 0,RM=typeof clearTimeout=="function"?clearTimeout:void 0,cv=typeof Promise=="function"?Promise:void 0,dv=typeof requestAnimationFrame=="function"?requestAnimationFrame:Eh,_M=typeof queueMicrotask=="function"?queueMicrotask:typeof cv<"u"?function(e){return cv.resolve(null).then(e).catch(NM)}:Eh;function NM(e){setTimeout(function(){throw e})}function Pl(e){return e==="head"}function fv(e,t){var n=t,a=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(l),jo(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")bf(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,bf(n);for(var i=n.firstChild;i;){var o=i.nextSibling,s=i.nodeName;i[rr]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=o}}else n==="body"&&bf(e.ownerDocument.body);n=l}while(n);jo(t)}function mv(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function rb(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var l=a=0;l<t.length;l++){var i=t[l];0<i.width&&0<i.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function ub(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function cb(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Mm(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return cb(t,n,e)}function OM(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return cb(t,n,e)}function CM(e){return e.documentElement.clientHeight}function DM(e){this.addEventListener("load",e),this.addEventListener("error",e)}function zM(e,t,n,a,l,i,o,s,r){var c=t.nodeType===9?t:t.ownerDocument;try{var u=c.startViewTransition({update:function(){var f=c.defaultView,d=f.navigation&&f.navigation.transition,v=c.fonts.status;a();var b=[];if(v==="loaded"&&(CM(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),v=b.length,e!==null)for(var E=e.suspenseyImages,p=0,h=0;h<E.length;h++){var g=E[h];if(!g.complete){var y=g.getBoundingClientRect();if(0<y.bottom&&0<y.right&&y.top<f.innerHeight&&y.left<f.innerWidth){if(p+=Eb(g),p>qu){b.length=v;break}g=new Promise(DM.bind(g)),b.push(g)}}}if(0<b.length)return f=Promise.race([Promise.all(b),new Promise(function(M){return setTimeout(M,500)})]).then(l,l),(d?Promise.allSettled([d.finished,f]):f).then(i,i);if(l(),d)return d.finished.then(i,i);i()},types:n});c.__reactViewTransition=u;var m=[];return u.ready.then(function(){for(var f=c.documentElement.getAnimations({subtree:!0}),d=0;d<f.length;d++){var v=f[d],b=v.effect,E=b.pseudoElement;if(E!=null&&E.startsWith("::view-transition")){m.push(v),v=b.getKeyframes();for(var p=E=void 0,h=!0,g=0;g<v.length;g++){var y=v[g],M=y.width;if(E===void 0)E=M;else if(E!==M){h=!1;break}if(M=y.height,p===void 0)p=M;else if(p!==M){h=!1;break}delete y.width,delete y.height,y.transform==="none"&&delete y.transform}h&&E!==void 0&&p!==void 0&&(b.setKeyframes(v),h=getComputedStyle(b.target,b.pseudoElement),h.width!==E||h.height!==p)&&(h=v[0],h.width=E,h.height=p,h=v[v.length-1],h.width=E,h.height=p,b.setKeyframes(v))}}o()},function(f){c.__reactViewTransition===u&&(c.__reactViewTransition=null);try{typeof f=="object"&&f!==null&&f.name==="InvalidStateError"&&(f.message==="View transition was skipped because document visibility state is hidden."||f.message==="Skipping view transition because document visibility state has become hidden."||f.message==="Skipping view transition because viewport size changed."||f.message==="Transition was aborted because of invalid state")&&(f=null),f!==null&&r(f)}finally{a(),l(),o()}}),u.finished.finally(function(){for(var f=0;f<m.length;f++)m[f].cancel();c.__reactViewTransition===u&&(c.__reactViewTransition=null),s()}),u}catch{return a(),l(),o(),null}}function yi(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}yi.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Le({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};yi.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),a=[],l=0;l<n.length;l++){var i=n[l].effect;i!==null&&i.target===e&&i.pseudoElement===t&&a.push(n[l])}return a};yi.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function db(e){return{name:e,group:new yi("group",e),imagePair:new yi("image-pair",e),old:new yi("old",e),new:new yi("new",e)}}function zn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}zn.prototype.addEventListener=function(e,t,n){var a=null,l=null;if(!(n!=null&&typeof n!="boolean"&&(a=n.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var i=this._eventListeners;if(fb(i,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(s=function(r){o.removeEventListener(e,t,n),typeof t=="function"?t.call(this,r):t.handleEvent(r)}),a!==null&&(l=o.removeEventListener.bind(o,e,t,n),a.addEventListener("abort",l,{once:!0}),l=a.removeEventListener.bind(a,"abort",l)),a=Bo(n),i.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:l}),yn(this._fragmentFiber.child,!1,xM,e,s,a)}this._eventListeners=i}};function xM(e,t,n,a){return yt(e).addEventListener(t,n,a),!1}zn.prototype.removeEventListener=function(e,t,n){var a=this._eventListeners;if(a!==null&&(t=fb(a,e,t,n),t!==-1)){var l=a[t];n=l.attachedListener;var i=l.cleanup;l=Bo(l.optionsOrUseCapture),yn(this._fragmentFiber.child,!1,LM,e,n,l),a.splice(t,1),i!==null&&i()}};function LM(e,t,n,a){return yt(e).removeEventListener(t,n,a),!1}function Bo(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function hv(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function fb(e,t,n,a){if(e.length===0)return-1;a=hv(a);for(var l=0;l<e.length;l++){var i=e[l];if(i.type===t&&i.listener===n&&hv(i.optionsOrUseCapture)===a)return l}return-1}zn.prototype.dispatchEvent=function(e){var t=Di(this._fragmentFiber);if(t===null)return!0;t=yt(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var l=0;l<n.length;l++){var i=n[l];a.addEventListener(i.type,i.attachedListener,Bo(i.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),n)for(l=0;l<n.length;l++)i=n[l],a.removeEventListener(i.type,i.attachedListener,Bo(i.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)};zn.prototype.focus=function(e){yn(this._fragmentFiber.child,!0,mb,e,void 0,void 0)};function mb(e,t){return e.tag===6?!1:(e=yt(e),IM(e,t))}zn.prototype.focusLast=function(e){var t=[];yn(this._fragmentFiber.child,!0,Th,t,void 0,void 0);for(var n=t.length-1;0<=n&&!mb(t[n],e);n--);};function Th(e,t){return t.push(e),!1}zn.prototype.blur=function(){var e=Di(this._fragmentFiber);e!==null&&(e=yt(e),e=Ps(e).activeElement,e!==null&&yn(this._fragmentFiber.child,!1,UM,e,void 0,void 0))};function UM(e,t){return e.tag===6?!1:(e=yt(e),e===t||e.contains(t)?(t.blur(),!0):!1)}zn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),yn(this._fragmentFiber.child,!1,BM,e,void 0,void 0)};function BM(e,t){return e.tag===6||(e=yt(e),t.observe(e)),!1}zn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),yn(this._fragmentFiber.child,!1,HM,e,void 0,void 0);for(var n=t=0;n<oa.length;n++){var a=oa[n];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):oa[t++]=a}oa.length=t}};function HM(e,t){return e.tag===6||(e=yt(e),t.unobserve(e)),!1}var oa=[],yf=!1;function qM(e,t,n){oa.push({fragmentInstance:e,observer:t,instance:n}),yf||(yf=!0,QM(function(){yf=!1;var a=oa;oa=[];for(var l=0;l<a.length;l++){var i=a[l];i.observer.unobserve(i.instance)}}))}zn.prototype.getClientRects=function(){var e=[];return yn(this._fragmentFiber.child,!1,kM,e,void 0,void 0),e};function kM(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=yt(e),t.push.apply(t,e.getClientRects());return!1}zn.prototype.getRootNode=function(e){var t=Di(this._fragmentFiber);return t===null?this:yt(t).getRootNode(e)};zn.prototype.compareDocumentPosition=function(e){var t=Di(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];yn(this._fragmentFiber.child,!1,Th,n,void 0,void 0);var a=yt(t);if(n.length===0){if(n=a,I0(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var l=a=n.compareDocumentPosition(e);return n===e?l=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Lv(t)[1],n===null?l=Node.DOCUMENT_POSITION_PRECEDING:(e=yt(n).compareDocumentPosition(e),l=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=yt(n[0]),l=yt(n[n.length-1]);var i=I0(this._fragmentFiber)?t.parentElement:a;if(i==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=i.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,i=i.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=l.compareDocumentPosition(e),r=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=a&&i&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||i&&l===e||r||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!i&&l===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||jM(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function jM(e,t,n,a,l){var i=vi(l);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!i)e:{for(;i!==null;){if(i.tag===7&&(i===t||i.alternate===t)){n=!0;break e}i=i.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(i===null)return i=l.ownerDocument,l===i||l===i.documentElement||l===i.body;e:{for(i=t,t=Di(t);i!==null;){if(!(i.tag!==5&&i.tag!==3&&i.tag!==27||i!==t&&i.alternate!==t)){i=!0;break e}i=i.return}i=!1}return i}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!i)&&!(t=i===n)&&(t=Af(n,i,Q0),t===null?t=!1:(yn(t,!0,vE,i,n),i=oo,oo=null,t=i!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!i)&&!(t=i===a)&&(t=Af(a,i,Q0),t===null?t=!1:(yn(t,!0,yE,i,a),i=oo,Sf=oo=null,t=i!==null)),t):!1}function pv(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}zn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(N(566));var t=[];yn(this._fragmentFiber.child,!1,Th,t,void 0,void 0);var n=e!==!1;if(t.length===0){var a=Lv(this._fragmentFiber);if(a=n?a[1]||a[0]||Di(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=yt(a),pv(e,n);return}if(a=yt(a),a.nodeType!==9){if(a.nodeType===11){n="host"in a?a.host:null,n!==null&&n.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=n?t.length-1:0;a!==(n?-1:t.length);){var l=t[a];l.tag===6?(l=yt(l),pv(l,n)):yt(l).scrollIntoView(e),a+=n?-1:1}};function YM(e,t){return e=yt(e),hb(e,t),!1}function hb(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function pb(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];e.addEventListener(l.type,l.attachedListener,Bo(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(i){for(var o=0,s=0;s<oa.length;s++){var r=oa[s];(r.fragmentInstance!==t||r.observer!==i||r.instance!==e)&&(oa[o++]=r)}oa.length=o,i.observe(e)}),hb(e,t))}function GM(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];e.removeEventListener(l.type,l.attachedListener,Bo(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(i){typeof i.rootMargin=="string"?qM(t,i,e):i.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function wm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":wm(n),yc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function VM(e,t,n,a){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[rr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Qn(e.nextSibling),e===null)break}return null}function XM(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Qn(e.nextSibling),e===null))return null;return e}function gb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qn(e.nextSibling),e===null))return null;return e}function $m(e){return e.data==="$?"||e.data==="$~"}function Mh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function KM(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Qn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Rm=null;function gv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Qn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function vv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function IM(e,t){function n(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return a}function QM(e){dv(function(){dv(function(t){return e(t)})})}function vb(e,t,n){switch(t=Ps(n),e){case"html":if(e=t.documentElement,!e)throw Error(N(452));return e;case"head":if(e=t.head,!e)throw Error(N(453));return e;case"body":if(e=t.body,!e)throw Error(N(454));return e;default:throw Error(N(451))}}function yb(e,t,n){for(var a in n){var l=n[a];n.hasOwnProperty(a)&&l!=null&&Re(e,t,a,null,TM,l)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===_a&&(e.onclick=null),yc(e)}function bf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yc(e)}var Zn=new Map,yv=new Set;function er(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var ll=Ae.d;Ae.d={f:ZM,r:JM,D:FM,C:WM,L:PM,m:e3,X:n3,S:t3,M:a3};function ZM(){var e=ll.f(),t=Dc();return e||t}function JM(e){var t=Go(e);t!==null&&t.tag===5&&t.type==="form"?ny(t):ll.r(e)}var Io=typeof document>"u"?null:document;function bb(e,t,n){var a=Io;if(a&&typeof t=="string"&&t){var l=Xn(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),yv.has(l)||(yv.add(l),e={rel:e,crossOrigin:n,href:t},a.querySelector(l)===null&&(t=a.createElement("link"),qt(t,"link",e),_t(t),a.head.appendChild(t)))}}function FM(e){ll.D(e),bb("dns-prefetch",e,null)}function WM(e,t){ll.C(e,t),bb("preconnect",e,t)}function PM(e,t,n){ll.L(e,t,n);var a=Io;if(a&&e&&t){var l='link[rel="preload"][as="'+Xn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+Xn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+Xn(n.imageSizes)+'"]')):l+='[href="'+Xn(e)+'"]';var i=l;switch(t){case"style":i=Ho(e);break;case"script":i=Qo(e)}if(!(Zn.has(i)||(e=Le({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zn.set(i,e),a.querySelector(l)!==null||t==="style"&&a.querySelector(hr(i))||t==="script"&&a.querySelector(pr(i))))){var o=a.createElement("link");qt(o,"link",e),t==="style"&&(o[Ku]=!0,o.onload=o.onerror=function(){Qv(o)}),_t(o),a.head.appendChild(o)}}}function e3(e,t){ll.m(e,t);var n=Io;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Xn(a)+'"][href="'+Xn(e)+'"]',i=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Qo(e)}if(!Zn.has(i)&&(e=Le({rel:"modulepreload",href:e},t),Zn.set(i,e),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(pr(i)))return}a=n.createElement("link"),qt(a,"link",e),_t(a),n.head.appendChild(a)}}}function t3(e,t,n){ll.S(e,t,n);var a=Io;if(a&&e){var l=bo(a).hoistableStyles,i=Ho(e);t=t||"default";var o=l.get(i);if(!o){var s={loading:0,preload:null};if(o=a.querySelector(hr(i)))s.loading=5;else{e=Le({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zn.get(i))&&wh(e,n);var r=o=a.createElement("link");_t(r),qt(r,"link",e),r._p=new Promise(function(c,u){r.onload=c,r.onerror=u}),r.addEventListener("load",function(){s.loading|=1}),r.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Bu(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:s},l.set(i,o)}}}function n3(e,t){ll.X(e,t);var n=Io;if(n&&e){var a=bo(n).hoistableScripts,l=Qo(e),i=a.get(l);i||(i=n.querySelector(pr(l)),i||(e=Le({src:e,async:!0},t),(t=Zn.get(l))&&$h(e,t),i=n.createElement("script"),_t(i),qt(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function a3(e,t){ll.M(e,t);var n=Io;if(n&&e){var a=bo(n).hoistableScripts,l=Qo(e),i=a.get(l);i||(i=n.querySelector(pr(l)),i||(e=Le({src:e,async:!0,type:"module"},t),(t=Zn.get(l))&&$h(e,t),i=n.createElement("script"),_t(i),qt(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function bv(e,t,n,a){var l=(l=Bl.current)?er(l):null;if(!l)throw Error(N(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Ho(n.href),t=bo(l).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ho(n.href);var i=bo(l).hoistableStyles,o=i.get(e);if(o||(l=l.ownerDocument||l,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=l.querySelector(hr(e)))?i._p||(o.instance=i,o.state.loading=5):(i=Zn.get(e),i||(i={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zn.set(e,i)),l3(l,e,i,o.state))),t&&a===null)throw Error(N(528,""));return o}if(t&&a!==null)throw Error(N(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Qo(n),t=bo(l).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(N(444,e))}}function Ho(e){return'href="'+Xn(e)+'"'}function hr(e){return'link[rel="stylesheet"]['+e+"]"}function Sb(e){return Le({},e,{"data-precedence":e.precedence,precedence:null})}function l3(e,t,n,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Ku]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[Ku]=!0,t.onload=t.onerror=Qv.bind(null,t),qt(t,"link",n),_t(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Qo(e){return'[src="'+Xn(e)+'"]'}function pr(e){return"script[async]"+e}function Sv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Xn(n.href)+'"]');if(a)return t.instance=a,_t(a),a;var l=Le({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),_t(a),qt(a,"style",l),Bu(a,n.precedence,e),t.instance=a;case"stylesheet":l=Ho(n.href);var i=e.querySelector(hr(l));if(i)return t.state.loading|=4,t.instance=i,_t(i),i;a=Sb(n),(l=Zn.get(l))&&wh(a,l),i=(e.ownerDocument||e).createElement("link"),_t(i);var o=i;return o._p=new Promise(function(s,r){o.onload=s,o.onerror=r}),qt(i,"link",a),t.state.loading|=4,Bu(i,n.precedence,e),t.instance=i;case"script":return i=Qo(n.src),(l=e.querySelector(pr(i)))?(t.instance=l,_t(l),l):(a=n,(l=Zn.get(i))&&(a=Le({},n),$h(a,l)),e=e.ownerDocument||e,l=e.createElement("script"),_t(l),qt(l,"link",a),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(N(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Bu(a,n.precedence,e));return t.instance}function Bu(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,i=l,o=0;o<a.length;o++){var s=a[o];if(s.dataset.precedence===t)i=s;else if(i!==l)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function wh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $h(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hu=null;function Av(e,t,n){if(Hu===null){var a=new Map,l=Hu=new Map;l.set(n,a)}else l=Hu,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var i=n[l];if(!(i[rr]||i[Lt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var s=a.get(o);s?s.push(i):a.set(o,[i])}}return a}function _m(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function i3(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ev(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Ab(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Eb(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Tv(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Eb(t),e.suspenseyImages.push(t)),e=r3.bind(e),t.decode().then(e,e))}function o3(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=Ho(a.href),i=t.querySelector(hr(l));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,_t(i);return}i=t.ownerDocument||t,a=Sb(a),(l=Zn.get(l))&&wh(a,l),i=i.createElement("link"),_t(i);var o=i;o._p=new Promise(function(s,r){o.onload=s,o.onerror=r}),qt(i,"link",a),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=tr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var qu=0;function s3(e,t){return e.stylesheets&&e.count===0&&ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&ku(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&qu===0&&(qu=62500*wM());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ku(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>qu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(l)}}:null}function Tb(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ku(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function tr(){this.count--,Tb(this)}function r3(){this.imgCount--,Tb(this)}var pc=null;function ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,pc=new Map,t.forEach(u3,e),pc=null,tr.call(e))}function u3(e,t){if(!(t.state.loading&4)){var n=pc.get(e);if(n)var a=n.get(null);else{n=new Map,pc.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<l.length;i++){var o=l[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),a=o)}a&&n.set(null,a)}l=t.instance,o=l.getAttribute("data-precedence"),i=n.get(o)||a,i===a&&n.set(null,l),n.set(o,l),this.count++,a=tr.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),i?i.parentNode.insertBefore(l,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var qo={$$typeof:Ra,Provider:null,Consumer:null,_currentValue:bi,_currentValue2:bi,_threadCount:0};function c3(e,t,n,a,l,i,o,s,r){this.tag=1,this.containerInfo=e,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=Kd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kd(0),this.hiddenUpdates=Kd(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.transitionTypes=null,this.incompleteTransitions=new Map}function Mb(e,t,n,a,l,i,o,s,r,c,u,m){return e=new c3(e,t,n,o,r,c,u,m,s),t=1,i===!0&&(t|=24),i=gn(3,null,null,t),e.current=i,i.stateNode=e,t=Km(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:n,cache:t},Zm(i),e}function wb(e){return e?(e=po,e):po}function $b(e,t,n,a,l,i){l=wb(l),a.context===null?a.context=l:a.pendingContext=l,a=ql(t),a.payload={element:n},i=i===void 0?null:i,i!==null&&(a.callback=i),n=kl(e,a,t),n!==null&&(vn(n,e,t),zs(n,e,t))}function Mv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Rh(e,t){Mv(e,t),(e=e.alternate)&&Mv(e,t)}function Rb(e){if(e.tag===13||e.tag===31){var t=Li(e,67108864);t!==null&&vn(t,e,67108864),Rh(e,67108864)}}function wv(e){if(e.tag===13||e.tag===31){var t=Cn();t=xm(t);var n=Li(e,t);n!==null&&vn(n,e,t),Rh(e,t)}}var ko=!0;function d3(e,t,n,a){var l=Q.T;Q.T=null;var i=Ae.p;try{Ae.p=2,_h(e,t,n,a)}finally{Ae.p=i,Q.T=l}}function f3(e,t,n,a){var l=Q.T;Q.T=null;var i=Ae.p;try{Ae.p=8,_h(e,t,n,a)}finally{Ae.p=i,Q.T=l}}function _h(e,t,n,a){if(ko){var l=Nm(a);if(l===null)gf(e,t,a,gc,n),$v(e,a);else if(h3(l,e,t,n,a))a.stopPropagation();else if($v(e,a),t&4&&-1<m3.indexOf(e)){for(;l!==null;){var i=Go(l);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=hi(i.pendingLanes);if(o!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var r=1<<31-On(o);s.entanglements[1]|=r,o&=~r}La(i),(Se&6)===0&&(cc=_n()+500,mr(0,!1))}}break;case 31:case 13:s=Li(i,2),s!==null&&vn(s,i,2),Dc(),Rh(i,2)}if(i=Nm(a),i===null&&gf(e,t,a,gc,n),i===l)break;l=i}l!==null&&a.stopPropagation()}else gf(e,t,a,null,n)}}function Nm(e){return e=Bm(e),Nh(e)}var gc=null;function Nh(e){if(gc=null,e=vi(e),e!==null){var t=lr(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Dv(t),e!==null)return e;e=null}else if(n===31){if(e=zv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gc=e,null}function _b(e){switch(e){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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(RE()){case qv:return 2;case kv:return 8;case Xu:case _E:return 32;case jv:return 268435456;default:return 32}default:return 32}}var Om=!1,Vl=null,Xl=null,Kl=null,nr=new Map,ar=new Map,Ol=[],m3="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 $v(e,t){switch(e){case"focusin":case"focusout":Vl=null;break;case"dragenter":case"dragleave":Xl=null;break;case"mouseover":case"mouseout":Kl=null;break;case"pointerover":case"pointerout":nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ar.delete(t.pointerId)}}function Es(e,t,n,a,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Go(t),t!==null&&Rb(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function h3(e,t,n,a,l){switch(t){case"focusin":return Vl=Es(Vl,e,t,n,a,l),!0;case"dragenter":return Xl=Es(Xl,e,t,n,a,l),!0;case"mouseover":return Kl=Es(Kl,e,t,n,a,l),!0;case"pointerover":var i=l.pointerId;return nr.set(i,Es(nr.get(i)||null,e,t,n,a,l)),!0;case"gotpointercapture":return i=l.pointerId,ar.set(i,Es(ar.get(i)||null,e,t,n,a,l)),!0}return!1}function Nb(e){var t=vi(e.target);if(t!==null){var n=lr(t);if(n!==null){if(t=n.tag,t===13){if(t=Dv(n),t!==null){e.blockedOn=t,W0(e.priority,function(){wv(n)});return}}else if(t===31){if(t=zv(n),t!==null){e.blockedOn=t,W0(e.priority,function(){wv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ju(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Nm(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);zf=a,n.target.dispatchEvent(a),zf=null}else return t=Go(n),t!==null&&Rb(t),e.blockedOn=n,!1;t.shift()}return!0}function Rv(e,t,n){ju(e)&&n.delete(t)}function p3(){Om=!1,Vl!==null&&ju(Vl)&&(Vl=null),Xl!==null&&ju(Xl)&&(Xl=null),Kl!==null&&ju(Kl)&&(Kl=null),nr.forEach(Rv),ar.forEach(Rv)}function Au(e,t){e.blockedOn===t&&(e.blockedOn=null,Om||(Om=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,p3)))}var Eu=null;function _v(e){Eu!==e&&(Eu=e,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,function(){Eu===e&&(Eu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],l=e[t+2];if(typeof a!="function"){if(Nh(a||n)===null)continue;break}var i=Go(n);i!==null&&(e.splice(t,3),t-=3,Zf(i,{pending:!0,data:l,method:n.method,action:a},a,l))}}))}function jo(e){function t(r){return Au(r,e)}Vl!==null&&Au(Vl,e),Xl!==null&&Au(Xl,e),Kl!==null&&Au(Kl,e),nr.forEach(t),ar.forEach(t);for(var n=0;n<Ol.length;n++){var a=Ol[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ol.length&&(n=Ol[0],n.blockedOn===null);)Nb(n),n.blockedOn===null&&Ol.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],i=n[a+1],o=l[bn]||null;if(typeof i=="function")o||_v(n);else if(o){var s=null;if(i&&i.hasAttribute("formAction")){if(l=i,o=i[bn]||null)s=o.formAction;else if(Nh(l)!==null)continue}else s=o.action;typeof s=="function"?n[a+1]=s:(n.splice(a,3),a-=3),_v(n)}}}function Ob(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return l=o})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Oh(e){this._internalRoot=e}Lc.prototype.render=Oh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));var n=t.current,a=Cn();$b(n,a,e,t,null,null)};Lc.prototype.unmount=Oh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$b(e.current,2,null,e,null,null),Dc(),t[Yo]=null}};function Lc(e){this._internalRoot=e}Lc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Iv();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ol.length&&t!==0&&t<Ol[n].priority;n++);Ol.splice(n,0,e),n===0&&Nb(e)}};var Nv=Ov.version;if(Nv!=="19.3.0")throw Error(N(527,Nv,"19.3.0"));Ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=gE(t),e=e!==null?xv(e):null,e=e===null?null:e.stateNode,e};var g3={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ts=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ts.isDisabled&&Ts.supportsFiber))try{ir=Ts.inject(g3),Nn=Ts}catch{}var Ts;Uc.createRoot=function(e,t){if(!Cv(e))throw Error(N(299));var n=!1,a="",l=cy,i=dy,o=fy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Mb(e,1,!1,null,null,n,a,null,l,i,o,Ob),e[Yo]=t.current,Ah(e),new Oh(t)};Uc.hydrateRoot=function(e,t,n){if(!Cv(e))throw Error(N(299));var a=!1,l="",i=cy,o=dy,s=fy,r=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(r=n.formState)),t=Mb(e,1,!0,t,n??null,a,l,r,i,o,s,Ob),t.context=wb(null),n=t.current,a=Cn(),a=xm(a),l=ql(a),l.callback=null,kl(n,l,a),n=a,t.current.lanes=n,sr(t,n),La(t),e[Yo]=t.current,Ah(e),new Lc(t)};Uc.version="19.3.0"});var xb=ya((i$,zb)=>{"use strict";function Db(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Db)}catch(e){console.error(e)}}Db(),zb.exports=Cb()});var Ub=ya(Bc=>{"use strict";/**
|
|
42
|
-
* @license React
|
|
43
|
-
* react-jsx-runtime.production.js
|
|
44
|
-
*
|
|
45
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
46
|
-
*
|
|
47
|
-
* This source code is licensed under the MIT license found in the
|
|
48
|
-
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var v3=Symbol.for("react.transitional.element"),y3=Symbol.for("react.fragment");function Lb(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var l in t)l!=="key"&&(n[l]=t[l])}else n=t;return t=n.ref,{$$typeof:v3,type:e,key:a,ref:t!==void 0?t:null,props:n}}Bc.Fragment=y3;Bc.jsx=Lb;Bc.jsxs=Lb});var Ch=ya((s$,Bb)=>{"use strict";Bb.exports=Ub()});function fn(){return 1}function ea(e){return e.length}var id=[1,6,24,168,720,0],ba=e=>({1:"1h",6:"6h",24:"24h",168:"7d",720:"30d",0:"All time"})[e],cs=e=>e===0?"All available history":`Last ${ba(e)}`;function od(e,t){let n=Date.parse(t),a=1/0,l=-1/0;for(let i of e){let o=Date.parse(i.occurredAt);!Number.isFinite(o)||o>n||(a=Math.min(a,o),l=Math.max(l,o))}return{first:Number.isFinite(a)?new Date(a).toISOString():null,last:Number.isFinite(l)?new Date(l).toISOString():null}}function sd(e,t,n){let a=Date.parse(n);if(t!==0)return{start:a-t*36e5,end:a};let l=od(e,n),i=l.last?Date.parse(l.last):a;return{start:l.first?Math.min(Date.parse(l.first),i-6e4):i-36e5,end:i}}function wp(e,t,n){let{start:a,end:l}=sd(e,t,n);return e.filter(i=>{let o=Date.parse(i.occurredAt);return o>=a&&o<=l})}function $p(e){let[t,n]=e>=864e5?["day",864e5]:e>=36e5?["hour",36e5]:e>=6e4?["minute",6e4]:["second",1e3];return`${new Intl.NumberFormat("en",{maximumFractionDigits:1}).format(e/n)}-${t}`}function Rp(e,t,n=!1){return new Date(e).toLocaleString([],n?{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}:t>864e5?{month:"short",day:"numeric",...t>31536e6?{year:"numeric"}:{}}:{hour:"2-digit",minute:"2-digit"})}var _p=11;function M2(e,t){var n=t.attributes,a,l,i,o,s;if(!(t.nodeType===_p||e.nodeType===_p)){for(var r=n.length-1;r>=0;r--)a=n[r],l=a.name,i=a.namespaceURI,o=a.value,i?(l=a.localName||l,s=e.getAttributeNS(i,l),s!==o&&(a.prefix==="xmlns"&&(l=a.name),e.setAttributeNS(i,l,o))):(s=e.getAttribute(l),s!==o&&e.setAttribute(l,o));for(var c=e.attributes,u=c.length-1;u>=0;u--)a=c[u],l=a.name,i=a.namespaceURI,i?(l=a.localName||l,t.hasAttributeNS(i,l)||e.removeAttributeNS(i,l)):t.hasAttribute(l)||e.removeAttribute(l)}}var Gr,w2="http://www.w3.org/1999/xhtml",Wt=typeof document>"u"?void 0:document,$2=!!Wt&&"content"in Wt.createElement("template"),R2=!!Wt&&Wt.createRange&&"createContextualFragment"in Wt.createRange();function _2(e){var t=Wt.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}function N2(e){Gr||(Gr=Wt.createRange(),Gr.selectNode(Wt.body));var t=Gr.createContextualFragment(e);return t.childNodes[0]}function O2(e){var t=Wt.createElement("body");return t.innerHTML=e,t.childNodes[0]}function C2(e){return e=e.trim(),$2?_2(e):R2?N2(e):O2(e)}function Vr(e,t){var n=e.nodeName,a=t.nodeName,l,i;return n===a?!0:(l=n.charCodeAt(0),i=a.charCodeAt(0),l<=90&&i>=97?n===a.toUpperCase():i<=90&&l>=97?a===n.toUpperCase():!1)}function D2(e,t){return!t||t===w2?Wt.createElement(e):Wt.createElementNS(t,e)}function z2(e,t){for(var n=e.firstChild;n;){var a=n.nextSibling;t.appendChild(n),n=a}return t}function rd(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n))}var Np={OPTION:function(e,t){var n=e.parentNode;if(n){var a=n.nodeName.toUpperCase();a==="OPTGROUP"&&(n=n.parentNode,a=n&&n.nodeName.toUpperCase()),a==="SELECT"&&!n.hasAttribute("multiple")&&(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),n.selectedIndex=-1)}rd(e,t,"selected")},INPUT:function(e,t){rd(e,t,"checked"),rd(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var a=e.firstChild;if(a){var l=a.nodeValue;if(l==n||!n&&l==e.placeholder)return;a.nodeValue=n}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var n=-1,a=0,l=e.firstChild,i,o;l;)if(o=l.nodeName&&l.nodeName.toUpperCase(),o==="OPTGROUP")i=l,l=i.firstChild,l||(l=i.nextSibling,i=null);else{if(o==="OPTION"){if(l.hasAttribute("selected")){n=a;break}a++}l=l.nextSibling,!l&&i&&(l=i.nextSibling,i=null)}e.selectedIndex=n}}},ds=1,Op=11,Cp=3,Dp=8;function Al(){}function x2(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}function L2(e){return function(n,a,l){if(l||(l={}),typeof a=="string")if(n.nodeName==="#document"||n.nodeName==="HTML"){var i=a;a=Wt.createElement("html"),a.innerHTML=i}else if(n.nodeName==="BODY"){var o=a;a=Wt.createElement("html"),a.innerHTML=o;var s=a.querySelector("body");s&&(a=s)}else a=C2(a);else a.nodeType===Op&&(a=a.firstElementChild);var r=l.getNodeKey||x2,c=l.onBeforeNodeAdded||Al,u=l.onNodeAdded||Al,m=l.onBeforeElUpdated||Al,f=l.onElUpdated||Al,d=l.onBeforeNodeDiscarded||Al,v=l.onNodeDiscarded||Al,b=l.onBeforeElChildrenUpdated||Al,E=l.skipFromChildren||Al,p=l.addChild||function(k,B){return k.appendChild(B)},h=l.childrenOnly===!0,g=Object.create(null),y=[];function M(k){y.push(k)}function w(k,B){if(k.nodeType===ds)for(var x=k.firstChild;x;){var L=void 0;B&&(L=r(x))?M(L):(v(x),x.firstChild&&w(x,B)),x=x.nextSibling}}function T(k,B,x){d(k)!==!1&&(B&&B.removeChild(k),v(k),w(k,x))}function A(k){if(k.nodeType===ds||k.nodeType===Op)for(var B=k.firstChild;B;){var x=r(B);x&&(g[x]=B),A(B),B=B.nextSibling}}A(n);function $(k){u(k);for(var B=k.firstChild;B;){var x=B.nextSibling,L=r(B);if(L){var j=g[L];j&&Vr(B,j)?(B.parentNode.replaceChild(j,B),D(j,B)):$(B)}else $(B);B=x}}function C(k,B,x){for(;B;){var L=B.nextSibling;(x=r(B))?M(x):T(B,k,!0),B=L}}function D(k,B,x){var L=r(B);if(L&&delete g[L],!x){var j=m(k,B);if(j===!1||(j instanceof HTMLElement&&(k=j,A(k)),e(k,B),f(k),b(k,B)===!1))return}k.nodeName!=="TEXTAREA"?O(k,B):Np.TEXTAREA(k,B)}function O(k,B){var x=E(k,B),L=B.firstChild,j=k.firstChild,Z,ve,Pe,Ge,De;e:for(;L;){for(Ge=L.nextSibling,Z=r(L);!x&&j;){if(Pe=j.nextSibling,L.isSameNode&&L.isSameNode(j)){L=Ge,j=Pe;continue e}ve=r(j);var ln=j.nodeType,ft=void 0;if(ln===L.nodeType&&(ln===ds?(Z?Z!==ve&&((De=g[Z])?Pe===De?ft=!1:(k.insertBefore(De,j),ve?M(ve):T(j,k,!0),j=De,ve=r(j)):ft=!1):ve&&(ft=!1),ft=ft!==!1&&Vr(j,L),ft&&D(j,L)):(ln===Cp||ln==Dp)&&(ft=!0,j.nodeValue!==L.nodeValue&&(j.nodeValue=L.nodeValue))),ft){L=Ge,j=Pe;continue e}ve?M(ve):T(j,k,!0),j=Pe}if(Z&&(De=g[Z])&&Vr(De,L))x||p(k,De),D(De,L);else{var Qt=c(L);Qt!==!1&&(Qt&&(L=Qt),L.actualize&&(L=L.actualize(k.ownerDocument||Wt)),p(k,L),$(L))}L=Ge,j=Pe}C(k,j,ve);var Ve=Np[k.nodeName];Ve&&Ve(k,B)}var z=n,U=z.nodeType,X=a.nodeType;if(!h){if(U===ds)X===ds?Vr(n,a)||(v(n),z=z2(n,D2(a.nodeName,a.namespaceURI))):z=a;else if(U===Cp||U===Dp){if(X===U)return z.nodeValue!==a.nodeValue&&(z.nodeValue=a.nodeValue),z;z=a}}if(z===a)v(n);else{if(a.isSameNode&&a.isSameNode(z))return;if(D(z,a,h),y)for(var ee=0,ae=y.length;ee<ae;ee++){var se=g[y[ee]];se&&T(se,se.parentNode,!1)}}return!h&&z!==n&&n.parentNode&&(z.actualize&&(z=z.actualize(n.ownerDocument||Wt)),n.parentNode.replaceChild(z,n)),z}}var U2=L2(M2),ud=U2;var B2={locale:"en",duration:400,ease:"cubic-bezier(0.19, 1, 0.22, 1)",disabled:!1,respectReducedMotion:!0};function Wp(e,t,n){if(n<1){let s=t*Math.sqrt(1-n*n);return 1-Math.exp(-n*t*e)*(Math.cos(s*e)+n*t/s*Math.sin(s*e))}let a=Math.sqrt(n*n-1),l=-t*(n+a),i=-t*(n-a),o=-l/(i-l);return 1-(1-o)*Math.exp(l*e)-o*Math.exp(i*e)}function H2(e,t,n){let a=0;for(let l=0;l<10;l+=.001)if(Math.abs(Wp(l,e,t)-1)>n)a=0;else if(a+=.001,a>.1)return Math.ceil((l-a+.001)*1e3);return Math.ceil(10*1e3)}function q2(e,t){if(typeof e=="object"){let n=k2(e);return{ease:n.easing,duration:n.duration}}return{ease:e,duration:t}}var zp=new Map;function k2(e){let{stiffness:t=100,damping:n=10,mass:a=1,precision:l=.001}=e??{},i=`${t}:${n}:${a}:${l}`,o=zp.get(i);if(o)return o;let s=Math.sqrt(t/a),r=n/(2*Math.sqrt(t*a)),c=H2(s,r,l),u=Math.min(100,Math.max(32,Math.round(c/15))),m=[];for(let d=0;d<u;d++){let v=d/(u-1)*(c/1e3),b=d===u-1?1:Wp(v,s,r);m.push(Math.round(b*1e4)/1e4+"")}for(;m.length>2&&m[m.length-2]==="1";)m.splice(m.length-2,1);let f={easing:`linear(${m.join(", ")})`,duration:c};return zp.set(i,f),f}function Kr(e,t){let n=e.length,a=t.length,l=Array.from({length:n+1},()=>Array(a+1).fill(0));for(let c=n-1;c>=0;c--)for(let u=a-1;u>=0;u--)l[c][u]=e[c]===t[u]?l[c+1][u+1]+1:Math.max(l[c+1][u],l[c][u+1]);let i=[],o=[],s=0,r=0;for(;s<n&&r<a;)e[s]===t[r]?(i.push(s),o.push(r),s++,r++):l[s+1][r]>=l[s][r+1]?s++:r++;return[i,o]}var j2="\0n",Y2=0;function fd(){return`${j2}${Y2++}`}function ta(e){return e>="0"&&e<="9"}function Ir(e){for(let t of e)if(ta(t))return!0;return!1}function xp(e){let t="";for(let n of e)!ta(n)&&!Td.includes(n)&&(t+=n);return t}var Td=".,'\xA0\u202F\u2009\u2007",G2="+-\u2212(#",V2=`%.,!?:;)"'\u201D\u2019`,X2=new RegExp("\\p{Sc}","u");function Lp(e,t){return t.includes(e)||X2.test(e)}function Pp(e){let t=0,n=e.length;for(;t<n&&Lp(e[t],G2);)t++;for(;n>t&&Lp(e[n-1],V2);)n--;if(t>=n||!ta(e[t])||!ta(e[n-1]))return!1;for(let a=t;a<n;a++){let l=e[a];if(!ta(l)&&!Td.includes(l))return!1}return!0}function Md(e){return ta(e)?"digit":"symbol"}var Up=new Map;function K2(e){let t=String(e),n=Up.get(t);if(n)return n;let a=".";try{a=new Intl.NumberFormat(e).formatToParts(1.1).find(l=>l.type==="decimal")?.value??"."}catch{}return Up.set(t,a),a}function md(e,t,n,a="."){let l=e.split("");if(!t||t.length===0)return I2(l);let i=t.map(c=>c.string==="\xA0"?" ":c.string),o=n!=null?Q2(i,l,n,a):Z2(i,l,a),s=new Set;for(let[,c]of o)s.add(t[c].id);let r=[];for(let c=0;c<l.length;c++){let u=l[c],m=Md(u),f=u===" "?"\xA0":u;if(o.has(c)){let d=o.get(c);r.push({id:t[d].id,string:f,kind:m})}else{let d=fd();for(;s.has(d);)d=fd();s.add(d),r.push({id:d,string:f,kind:m})}}return r}function I2(e){return e.map(t=>({id:fd(),string:t===" "?"\xA0":t,kind:Md(t)}))}function Q2(e,t,n,a){let l=new Map,i=Bp(e,a),o=Bp(t,a),s=(f,d)=>l.set(o[f],i[d]),r=0;for(;r<o.length&&o[r]<n;)r++;let c=o.length-i.length;if(c>0){let f=r-c;for(let d=0;d<f&&d<i.length;d++)s(d,d);for(let d=r;d<o.length;d++){let v=d-c;v>=0&&v<i.length&&s(d,v)}}else if(c<0){for(let f=0;f<r&&f<o.length;f++)s(f,f);for(let f=r;f<o.length;f++){let d=f-c;d>=0&&d<i.length&&s(f,d)}}else for(let f=0;f<o.length;f++)t[o[f]]===e[i[f]]&&s(f,f);let u=Hp(e,a),m=Hp(t,a);for(let f=1;f<=u.length&&f<=m.length;f++){let d=u[u.length-f],v=m[m.length-f];e[d]===t[v]&&l.set(v,d)}return l}function e0(e,t){return e!==t&&Td.includes(e)}function Bp(e,t){let n=[];for(let a=0;a<e.length;a++)e0(e[a],t)||n.push(a);return n}function Hp(e,t){let n=[];for(let a=0;a<e.length;a++)e0(e[a],t)&&n.push(a);return n}function Z2(e,t,n){let a=new Map,l=0;for(;l<e.length&&l<t.length&&e[l]===t[l]&&!ta(e[l]);)a.set(l,l),l++;let i=e.length,o=t.length;for(;i>l&&o>l&&e[i-1]===t[o-1]&&!ta(e[i-1]);)a.set(o-1,i-1),i--,o--;let s=jp(e,l,i,n),r=jp(t,l,o,n),c=kp(e,l,s),u=kp(t,l,r);if(c>0&&u>0&&Math.abs(c-u)>=J2)return a;if(!f(l,s,l,r,!0))for(let d=1;s-d>=l&&r-d>=l;d++)m(s-d,r-d);if(s<i&&r<o){a.set(r,s);for(let d=1;s+d<i&&r+d<o;d++)m(s+d,r+d);f(s+1,i,r+1,o,!1)}function m(d,v){let b=e[d];ta(b)||b===t[v]&&a.set(v,d)}function f(d,v,b,E,p){let h=qp(e,d,v),g=qp(t,b,E);if(h.length===g.length||!p){let A=Math.min(h.length,g.length);for(let $=0;$<A;$++){let C=h[$],D=g[$];e[C]===t[D]&&a.set(D,C)}return!1}let y=h.map(A=>e[A]).reverse(),M=g.map(A=>t[A]).reverse(),[w,T]=Kr(y,M);for(let A=0;A<w.length;A++){let $=h[h.length-1-w[A]],C=g[g.length-1-T[A]];a.set(C,$)}return w.length>0}return a}function qp(e,t,n){let a=[];for(let l=t;l<n;l++)ta(e[l])&&a.push(l);return a}var J2=3;function kp(e,t,n){let a=0;for(let l=t;l<n;l++)ta(e[l])&&a++;return a}function jp(e,t,n,a){for(let l=n-1;l>=t;l--)if(e[l]===a)return l;return n}function t0(){let e=new Set;return{reserve(t){e.add(t)},has(t){return e.has(t)},take(t){if(!e.has(t))return e.add(t),t;let n=1;for(;e.has(`${t}~${n}`);)n++;let a=`${t}~${n}`;return e.add(a),a}}}function F2(e){let t=[],n=[],a=()=>{n.length!==0&&(t.push({word:n.map(l=>l.string).join(""),segments:n}),n=[])};for(let l of e)l.string==="\xA0"||l.string===`
|
|
50
|
-
`?a():n.push(l);return a(),t}function Yp(e){let t=[],n=[],a=()=>{if(n.length===0)return;let l=n.map(i=>i.string).join("");Pp(l)?t.push(...md(l)):t.push(...n),n=[]};for(let l of e)l.string==="\xA0"||l.string===`
|
|
51
|
-
`?(a(),t.push(l)):n.push(l);return a(),t}function hd(e,t,n=!0){let a=e.includes(`
|
|
52
|
-
`),l=e.includes(" ")||a,i=t0();if(a){let s=e.split(`
|
|
53
|
-
`),r=[],c=0;return s.forEach((u,m)=>{m>0&&(r.push({id:i.take(`newline-${c}`),string:`
|
|
54
|
-
`}),c+=1),u.length>0&&r.push(...Gp(u,t,!0,c,i)),c+=u.length}),n?Yp(r):r}let o=Gp(e,t,l,0,i);return n?Yp(o):o}function Gp(e,t,n,a,l){if(typeof Intl.Segmenter<"u"){let i=new Intl.Segmenter(t,{granularity:n?"word":"grapheme"});return W2(i.segment(e)[Symbol.iterator](),a,l)}return P2(e,n,a,l)}function W2(e,t,n){let a=[];for(let l of Array.from(e)){let i=t+l.index;l.segment===" "?a.push({id:n.take(`space-${i}`),string:"\xA0"}):a.push({id:n0(l.segment,i,n),string:l.segment})}return a}function n0(e,t,n){return n.has(e)?n.take(`${e}-${t}`):n.take(e)}function P2(e,t,n,a){let l=t?e.split(" "):e.split(""),i=[],o=n;return l.forEach((s,r)=>{t&&r>0&&(i.push({id:a.take(`space-${o}`),string:"\xA0"}),o+=1),i.push({id:n0(s,o,a),string:s}),o+=s.length}),i}var Qr="torph-root",pd="torph-item",Sa="torph-id",gd="torph-kind",Zi="torph-slot",di="torph-exiting",fs="torph-sr",vd="torph-debug",Xr="empty",eA={linear:[0,0,1,1],ease:[.25,.1,.25,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},Vp=(e,t,n)=>{let a=1-n;return 3*a*a*n*e+3*a*n*n*t+n*n*n};function Xp(e,t,n,a){return l=>{if(l<=0)return 0;if(l>=1)return 1;let i=0,o=1;for(let s=0;s<24;s+=1){let r=(i+o)/2;Vp(e,n,r)<l?i=r:o=r}return Vp(t,a,(i+o)/2)}}function tA(e){let t=[...e];(t[0]===null||t[0]===void 0)&&(t[0]=0),t[t.length-1]===null&&(t[t.length-1]=1);for(let n=1;n<t.length;n+=1){if(t[n]!==null)continue;let a=n;for(;t[a]===null;)a+=1;let l=t[n-1],i=(t[a]-l)/(a-n+1);for(let o=n;o<a;o+=1)t[o]=l+i*(o-n+1)}return t.map((n,a,l)=>a===0?n:Math.max(n,l[a-1]))}function nA(e){let t=[],n=[];for(let l of e.split(",")){let i=l.trim().split(/\s+/).filter(Boolean),o=Number(i[0]);if(!Number.isFinite(o))return null;let s=i.slice(1);if(s.length>2)return null;if(s.length===0){t.push(o),n.push(null);continue}for(let r of s){if(!r.endsWith("%"))return null;let c=Number(r.slice(0,-1));if(!Number.isFinite(c))return null;t.push(o),n.push(c/100)}}if(t.length<2)return null;let a=tA(n);return l=>{if(l<=a[0])return t[0];let i=a.length-1;if(l>=a[i])return t[i];let o=0;for(;o<i&&a[o+1]<l;)o+=1;let s=a[o+1]-a[o];return s===0?t[o+1]:t[o]+(t[o+1]-t[o])*(l-a[o])/s}}function aA(e){let t=e.trim().toLowerCase(),n=eA[t];if(n)return Xp(...n);let a=/^cubic-bezier\(([^)]*)\)$/.exec(t);if(a){let i=a[1].split(",").map(o=>Number(o.trim()));return i.length!==4||i.some(o=>!Number.isFinite(o))?null:Xp(i[0],i[1],i[2],i[3])}let l=/^linear\(([^)]*)\)$/.exec(t);return l?nA(l[1]):null}var cd=1e-4;function a0(e,t){let n=Math.min(Math.max(t,0),1-cd);return(e(n+cd)-e(n))/cd}function yd(e,t){return e*t}function Jr(e){let t=getComputedStyle(e).transform;if(!t||t==="none")return{tx:0,ty:0};let n=t.match(/matrix\(([^)]+)\)/);if(!n)return{tx:0,ty:0};let a=n[1].split(",").map(Number);return{tx:a[4]||0,ty:a[5]||0}}function wd(e){let t=getComputedStyle(e),n=parseFloat(t.width),a=parseFloat(t.height);if(Number.isNaN(n)||Number.isNaN(a)){let l=e.getBoundingClientRect();return{width:l.width,height:l.height}}return{width:n,height:a}}function $d(e){let{tx:t,ty:n}=Jr(e),a=Number(getComputedStyle(e).opacity)||1;return e.getAnimations().forEach(l=>l.cancel()),{tx:t,ty:n,opacity:a}}var lA=8,iA=.1,oA=.5,sA=.5,l0=()=>performance.now();function rA(e,t){let n=Math.max(0,Math.min(lA,t)-a0(e,0));if(!(n>0))return{curve:e,k:0};let a=Math.max(3,Math.ceil(n/(Math.E*iA))-1);return{curve:l=>l>=1?1:e(l)+n*l*Math.pow(1-l,a),k:n}}function uA(e,t){let n=Math.min(120,Math.max(32,Math.round(t/8))),a=[];for(let l=0;l<n;l+=1){let i=l/(n-1),o=l===n-1?1:e(i);a.push(`${Math.round(o*1e4)/1e4}`)}return`linear(${a.join(", ")})`}function Kp(e,t,n,a,l,i,o,s){let r=(f,d,v,b,E)=>{let p=e.animate([{[t]:`${f}px`},{[t]:`${d}px`}],{duration:i,easing:v,fill:"both"});return E!==void 0&&(p.currentTime=E),{anim:p,from:f,to:d,easing:v,curve:b,startedAt:l0()-(E??0)}};if(l&&l.elapsed!==null&&Math.abs(l.to-a)<sA)return r(l.from,l.to,l.easing,l.curve,l.elapsed);let c=a-n,u=o,m=s;if(s&&Math.abs(c)>oA){let f=rA(s,(l?.velocity??0)*i/c);f.k>0&&(m=f.curve,u=uA(f.curve,i))}return r(n,a,u,m)}function Ip(e,t){let n=e.anim.currentTime===null,a=l0()-e.startedAt,l=n||!Number.isFinite(a)||a>=t||a<0?null:a;return{from:e.from,to:e.to,easing:e.easing,curve:e.curve,elapsed:l,velocity:l===null||!e.curve?0:(e.to-e.from)*a0(e.curve,l/t)/t}}var ja=new WeakMap;function cA(e){return ja.get(e)?.snapshot()}function Zr(e){e.style.width="",e.style.height="",e.style.transitionProperty=""}function i0(e){let t=ja.get(e);t&&(ja.delete(e),t.stop(),t.onCancel?.())}function dA(e){let t=ja.get(e);t&&(ja.delete(e),t.stop()),Zr(e)}function fA(e,t,n,a,l,i,o){let s=cA(e);if(i0(e),t===0||n===0){Zr(e),o?.();return}e.style.transitionProperty="none",e.style.width="",e.style.height="",e.offsetWidth;let{width:r,height:c}=wd(e),u=aA(l),m=Kp(e,"width",t,r,s?.width,a,l,u),f=Kp(e,"height",n,c,s?.height,a,l,u),d=()=>{m.anim.cancel(),f.anim.cancel()};m.anim.onfinish=()=>{ja.delete(e),d(),Zr(e),i?.()},ja.set(e,{stop:d,onCancel:o,snapshot:()=>({width:Ip(m,a),height:Ip(f,a)})})}function mA(e,t,n,a,l,i){i0(e),e.style.transitionProperty="none",e.style.width=`${t}px`,e.style.height=`${n}px`;let o=setTimeout(()=>{ja.delete(e),Zr(e),l?.()},a),s=r=>({from:r,to:r,easing:"linear",curve:null,elapsed:null,velocity:0});ja.set(e,{stop:()=>clearTimeout(o),onCancel:i,snapshot:()=>({width:s(t),height:s(n)})})}function dd(e){let t=Array.from(e.children),n={},a=e.getBoundingClientRect();return t.forEach((l,i)=>{if(l.hasAttribute(di)||l.hasAttribute(fs)||l.tagName==="BR")return;let o=l.getAttribute(Sa)||`child-${i}`,s=l.getBoundingClientRect(),{tx:r,ty:c}=Jr(l);n[o]={x:s.left-a.left-r,y:s.top-a.top-c}}),n}function Qp(e,t,n){let a=e[n],l=t[n];return!a||!l?{dx:0,dy:0}:{dx:a.x-l.x,dy:a.y-l.y}}function o0(e,t,n,a="backward-first"){let[l,i]=a==="backward-first"?["backward","forward"]:["forward","backward"],o=s=>{if(s==="backward"){for(let r=e-1;r>=0;r--)if(n.has(t[r]))return t[r]}else for(let r=e+1;r<t.length;r++)if(n.has(t[r]))return t[r];return null};return o(l)??o(i)}function hA(e,t,n,a){let l=new Set(n.filter((o,s)=>a.has(o)&&!t.has(e[s]))),i=new Map;for(let o=0;o<e.length;o++){let s=e[o];t.has(s)&&i.set(s,o0(o,n,l,"forward-first"))}return i}function pA(e,t){let{dx:n,dy:a,duration:l,ease:i,scale:o}=t;e.animate({transform:o?`translate(${n}px, ${a}px) scale(0.95)`:`translate(${n}px, ${a}px)`,offset:1},{duration:l,easing:i,fill:"both"});let s=e.animate({opacity:0,offset:1},{duration:yd(l,.25),easing:"linear",fill:"both"});s.onfinish=()=>e.remove()}function gA(e,t){let{deltaX:n,deltaY:a,isNew:l,duration:i,ease:o}=t,s=$d(e),r=n+s.tx,c=a+s.ty,u=l&&s.opacity>=1?0:s.opacity;e.animate([{transform:`translate(${r}px, ${c}px) scale(${l?.95:1})`},{transform:"none"}],{duration:i,easing:o,fill:"both"}),u<1&&e.animate([{opacity:u},{opacity:1}],{duration:yd(i,l?.5:.25),delay:l?yd(i,.25):0,easing:"linear",fill:"both"})}function vA(e,t){let n=0,a=0;for(let l=e;l&&l!==t;l=l.offsetParent)n+=l.offsetLeft,a+=l.offsetTop;return{x:n,y:a}}function bd(e,t){let n=document.createElement(e);return n.setAttribute(pd,""),n.setAttribute(Sa,t),n.setAttribute("aria-hidden","true"),n}function yA(e,t){let n=new Map;for(let a of t){if(a.tagName==="BR")continue;let{x:l,y:i}=vA(a,e),{tx:o,ty:s}=Jr(a),{width:r,height:c}=wd(a),u=Number(getComputedStyle(a).opacity)||1;a.getAnimations().forEach(m=>m.cancel()),n.set(a,{left:l+o,top:i+s,width:r,height:c,opacity:u})}for(let a=t.length-1;a>=0;a--)t[a].tagName==="BR"&&(t[a].remove(),t.splice(a,1));t.forEach(a=>{let l=n.get(a);a.setAttribute(di,""),a.style.position="absolute",a.style.pointerEvents="none",a.style.left=`${l.left}px`,a.style.top=`${l.top}px`,a.style.width=`${l.width}px`,a.style.height=`${l.height}px`,a.style.opacity=String(l.opacity)})}function bA(e,t){if(t.size===0)return;let n=Array.from(e.children),a=new Set;for(let l of n){if(l.hasAttribute(di))continue;let i=l.getAttribute(Sa);if(!i||a.has(i))continue;let o=t.get(i);if(o){a.add(i);for(let s of o){let r=bd("span",s.id);Sd(r,s),l.before(r)}l.remove()}}}function Sd(e,t){if(!t.kind){e.removeAttribute(gd),e.removeAttribute(Zi),e.textContent=t.string;return}e.setAttribute(gd,t.kind),e.setAttribute(Zi,"");let n=e.firstElementChild;n||(e.textContent="",n=document.createElement("span"),e.appendChild(n)),n.textContent=t.string}function s0(e){return e.hasAttribute(Zi)?e.firstElementChild??e:e}function SA(e,t,n,a){let l=new Map;t.forEach(i=>{let o=i.getAttribute(Sa);n.has(o)&&!i.hasAttribute(di)&&(l.set(o,i),i.remove())}),Array.from(e.childNodes).forEach(i=>{i.nodeType===Node.TEXT_NODE&&i.remove()}),a.forEach(i=>{let o=l.get(i.id);if(o&&l.delete(i.id),i.string===`
|
|
55
|
-
`){o&&o.tagName==="BR"?e.appendChild(o):e.appendChild(bd("br",i.id));return}if(o&&o.tagName!=="BR")o.style.transformOrigin="",Sd(o,i),e.appendChild(o);else{let s=bd("span",i.id);Sd(s,i),e.appendChild(s)}})}var AA=.45,EA=.25;function TA(e,t){let{dx:n,dy:a,slideDistance:l,duration:i,ease:o}=t,s=s0(e);e.animate({transform:`translate(${n}px, ${a}px)`,offset:1},{duration:i,easing:o,fill:"both"}),s.animate({transform:`translate(0px, ${l}px)`,offset:1},{duration:i,easing:o,fill:"both"});let r=s.animate({opacity:0,offset:1},{duration:i*AA,easing:"linear",fill:"both"});r.onfinish=()=>e.remove()}function MA(e,t){let{deltaX:n,deltaY:a,slideDistance:l,kind:i,duration:o,ease:s}=t;r0(e,{deltaX:n,deltaY:a,duration:o,ease:s});let r=s0(e),c=$d(r),u=i==="digit"?-l:l;r.animate({transform:`translate(0px, ${c.ty+u}px)`,offset:0},{duration:o,easing:s,fill:"both"});let m=c.opacity>=1?0:c.opacity;m<1&&r.animate([{opacity:m},{opacity:1}],{duration:o*EA,easing:"linear",fill:"both"})}function r0(e,t){let{deltaX:n,deltaY:a,duration:l,ease:i}=t,{tx:o,ty:s}=Jr(e);e.getAnimations().forEach(u=>u.cancel());let r=n+o,c=a+s;r===0&&c===0||e.animate({transform:`translate(${r}px, ${c}px)`,offset:0},{duration:l,easing:i,fill:"both"})}var wA=6,u0=.8,$A=.45,RA=.35;function c0(e){let t=e.map(r=>r.getBoundingClientRect()),n=Math.min(...t.map(r=>r.left)),a=Math.max(...t.map(r=>r.right)),l=Math.min(...t.map(r=>r.top)),i=Math.max(...t.map(r=>r.bottom)),o=(n+a)/2,s=(l+i)/2;return t.map(r=>`${o-r.left}px ${s-r.top}px`)}function _A(e,t){let{duration:n,ease:a}=t,l=c0(e);e.forEach((i,o)=>{i.getAnimations().forEach(r=>r.cancel()),i.style.transformOrigin=l[o],i.animate({transform:`scale(${u0})`,offset:1},{duration:n,easing:a,fill:"both"});let s=i.animate({opacity:0,offset:1},{duration:n*$A,easing:"linear",fill:"both"});s.onfinish=()=>i.remove()})}function NA(e,t){let{duration:n,ease:a}=t,l=c0(e);e.forEach((i,o)=>{let s=$d(i);i.style.transformOrigin=l[o],i.animate({transform:`scale(${u0})`,offset:0},{duration:n,easing:a,fill:"both"});let r=s.opacity>=1?0:s.opacity;i.animate([{opacity:r},{opacity:1}],{duration:n*RA,easing:"linear",fill:"both"})})}function Zp(e,t){let n=[],a=[],l=()=>{a.length>=wA&&n.push(a),a=[]};for(let i of e)t.has(i)?a.push(i):l();return l(),n}var OA="\0#";function Jp(e,t){if(e.segments.length!==1||e.word.length<=1)return e.segments;let n=e.segments[0],a=e.word.split("").map((l,i)=>({id:`${n.id}:${i}`,string:l}));return t.set(n.id,a),a}function CA(e){return e.map(t=>({...t,kind:t.kind??Md(t.string)}))}function DA(e,t){if(e.length===0||t.length===0)return 0;let[n]=Kr(e.split(""),t.split(""));return n.length/Math.max(e.length,t.length)}function Fp(e,t){let n=[],a=0;for(let l=0;l<e;l++)n.push(a),t.has(l)&&a++;return n}var zA=.4;function xA(e,t){return(Ir(e)||Ir(t))&&xp(e)===xp(t)?1:DA(e,t)}var LA=2500,UA=1e6;function BA(e,t,n,a={}){let l=t.includes(" "),i=t.includes(`
|
|
56
|
-
`),o=F2(e),s=a.numbers!==!1,r=x=>s&&Pp(x),c=x=>r(x)?OA:x,u=s&&(Ir(t)||o.some(x=>Ir(x.word)));if(o.length<=1&&!l&&!i&&!u)return{segments:hd(t,n,s),splits:new Map};let m=[],f=[],d=t.split(/( |\n)/),v=[];for(let x of d)x===" "||x===`
|
|
57
|
-
`?v.push(x):x.length>0&&(f.push(v),m.push(x),v=[]);let b=v,E=o.map(x=>x.word);if(E.length*m.length>UA)return{segments:hd(t,n,s),splits:new Map};let[p,h]=Kr(E.map(c),m.map(c)),g=new Set(p),y=new Set(h),M=new Map;for(let x=0;x<h.length;x++)M.set(h[x],p[x]);let w=E.map((x,L)=>L).filter(x=>!g.has(x)),T=m.map((x,L)=>L).filter(x=>!y.has(x)),A=new Set;for(let x of T)for(let L of w)if(!A.has(L)&&c(m[x])===c(E[L])){M.set(x,L),A.add(L);break}A.size>0&&(w=w.filter(x=>!A.has(x)),T=T.filter(x=>!M.has(x)));let $=new Map,C=new Set,D=Fp(E.length,g),O=Fp(m.length,y);if(w.length*T.length<=LA)for(let x of T){let L=-1,j=zA;for(let Z of w){if(C.has(Z)||D[Z]!==O[x])continue;let ve=xA(E[Z],m[x]);ve>j&&(j=ve,L=Z)}L>=0&&($.set(x,L),C.add(L))}let z=m.map((x,L)=>{let j=M.get(L),Z=j??$.get(L);return Z===void 0?{mode:"fresh"}:r(x)?{mode:"number",oi:Z}:j!==void 0?{mode:"reuse",oi:Z}:{mode:"morph",oi:Z}}),U=z.filter(x=>x.mode==="number").length===1?a.cursorIndex:void 0,X=K2(n),ee=t0();for(let x of z){if(x.mode==="fresh")continue;let L=o[x.oi];if(x.mode!=="reuse"&&L.segments.length===1){let j=L.segments[0];for(let Z=0;Z<L.word.length;Z++)ee.reserve(`${j.id}:${Z}`)}else for(let j of L.segments)ee.reserve(j.id)}let ae=[],se=new Map,k=0;function B(x){for(let L of x)L===`
|
|
58
|
-
`?ae.push({id:ee.take(`newline-${k}`),string:`
|
|
59
|
-
`}):ae.push({id:ee.take(`space-${k}`),string:"\xA0"}),k++}for(let x=0;x<m.length;x++){B(f[x]??(x>0?[" "]:[]));let L=z[x],j=m[x];if(L.mode==="reuse")for(let Z of o[L.oi].segments)ae.push(Z);else if(L.mode==="number"){let Z=o[L.oi];ae.push(...md(j,CA(Jp(Z,se)),U===void 0?void 0:U-k,X))}else if(L.mode==="morph"){let Z=o[L.oi],ve=Z.word,Pe=Jp(Z,se),Ge=ve.split(""),De=j.split(""),[ln,ft]=Kr(Ge,De),Qt=new Map;for(let Ve=0;Ve<ft.length;Ve++){let Ua=Pe[ln[Ve]];Ua&&Qt.set(ft[Ve],Ua)}for(let Ve=0;Ve<De.length;Ve++)if(Qt.has(Ve)){let Ua=Qt.get(Ve);ae.push({id:Ua.id,string:De[Ve]})}else ae.push({id:ee.take(`${j}~${Ve}`),string:De[Ve]})}else r(j)?ae.push(...md(j)):ae.push({id:ee.take(j),string:j});k+=j.length}return B(b),{segments:ae,splits:se}}var HA=`
|
|
60
|
-
[${Qr}] {
|
|
61
|
-
display: inline-block;
|
|
62
|
-
position: relative;
|
|
63
|
-
vertical-align: top;
|
|
64
|
-
will-change: width, height;
|
|
65
|
-
white-space: nowrap;
|
|
66
|
-
text-align: inherit;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
[${pd}]:not(br) {
|
|
70
|
-
display: inline-block;
|
|
71
|
-
position: relative;
|
|
72
|
-
will-change: opacity, transform;
|
|
73
|
-
transform: none;
|
|
74
|
-
opacity: 1;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/*
|
|
78
|
-
* The value once as plain text \u2014 every other child is an aria-hidden fragment.
|
|
79
|
-
* Out of flow, because the engine measures every child of the root. Clipped
|
|
80
|
-
* rather than display: none, which would take it out of the a11y tree as well.
|
|
81
|
-
* user-select: none, or a copied selection pastes the value twice.
|
|
82
|
-
*/
|
|
83
|
-
[${fs}] {
|
|
84
|
-
position: absolute;
|
|
85
|
-
width: 1px;
|
|
86
|
-
height: 1px;
|
|
87
|
-
margin: -1px;
|
|
88
|
-
padding: 0;
|
|
89
|
-
border: 0;
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
clip-path: inset(50%);
|
|
92
|
-
white-space: pre;
|
|
93
|
-
-webkit-user-select: none;
|
|
94
|
-
user-select: none;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/*
|
|
98
|
-
* A digit slides a whole line box to arrive, so it needs its own box to hide
|
|
99
|
-
* behind. Not the root: that spans every line, so clipping there leaves a digit
|
|
100
|
-
* on a middle line sliding over its neighbour in view. The transform sits on the
|
|
101
|
-
* child, so the slide never touches the slot's rect and the FLIP pass stays
|
|
102
|
-
* oblivious. clip-path, not overflow \u2014 an inline-block whose overflow is
|
|
103
|
-
* anything but visible has its baseline synthesized to the bottom margin edge
|
|
104
|
-
* (CSS 2.1 \xA710.8.1), and engines disagree on whether overflow: clip counts.
|
|
105
|
-
* The inline axis stays open so glyph overhang is not shaved.
|
|
106
|
-
*/
|
|
107
|
-
[${Zi}] {
|
|
108
|
-
clip-path: inset(0 -100vw);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
[${Zi}] > span {
|
|
112
|
-
display: inline-block;
|
|
113
|
-
will-change: opacity, transform;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/*
|
|
117
|
-
* Softens the clip above into a gradient, positionally rather than on a timer, so
|
|
118
|
-
* it stays in step with the slide at any duration. The band (--torph-fade, 0 for a
|
|
119
|
-
* hard edge) must eat into the box: the clip trims at the border box, so a ramp
|
|
120
|
-
* reaching past it sits in territory already removed and is never seen. no-clip
|
|
121
|
-
* plus repeat-x is what carries the profile across glyph overhang.
|
|
122
|
-
*/
|
|
123
|
-
@supports (mask-clip: no-clip) or (-webkit-mask-clip: no-clip) {
|
|
124
|
-
[${Zi}] {
|
|
125
|
-
--torph-mask: linear-gradient(
|
|
126
|
-
to bottom,
|
|
127
|
-
transparent,
|
|
128
|
-
#000 var(--torph-fade, 0.15em),
|
|
129
|
-
#000 calc(100% - var(--torph-fade, 0.15em)),
|
|
130
|
-
transparent
|
|
131
|
-
);
|
|
132
|
-
-webkit-mask-image: var(--torph-mask);
|
|
133
|
-
mask-image: var(--torph-mask);
|
|
134
|
-
-webkit-mask-repeat: repeat-x;
|
|
135
|
-
mask-repeat: repeat-x;
|
|
136
|
-
-webkit-mask-clip: no-clip;
|
|
137
|
-
mask-clip: no-clip;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
[${Qr}][${vd}] {
|
|
142
|
-
outline: 2px solid magenta;
|
|
143
|
-
[${pd}] {
|
|
144
|
-
outline: 2px solid cyan;
|
|
145
|
-
outline-offset: -4px;
|
|
146
|
-
}
|
|
147
|
-
}`,El=null,Ad=0;function qA(){Ad++,!El&&(El=document.createElement("style"),El.dataset.torph="true",El.textContent=HA,document.head.appendChild(El))}function kA(){Ad--,!(Ad>0||!El)&&(El.remove(),El=null)}function jA(){if(typeof window>"u")return{prefersReducedMotion:!1,destroy:()=>{}};let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t={prefersReducedMotion:e.matches,destroy:a};function n(l){t.prefersReducedMotion=l.matches}function a(){e.removeEventListener("change",n)}return e.addEventListener("change",n),t}var ms=class Ed{instance=null;lastText="";lastCursorIndex;configKey="";attach(t,n){this.instance?.destroy(),this.instance=new GA({element:t,...n}),this.configKey=Ed.serializeConfig(n),this.lastText!==""&&this.instance.update(this.lastText,this.lastCursorIndex)}update(t,n){this.lastText=t,this.lastCursorIndex=n,this.instance?.update(t,n)}needsRecreate(t){return Ed.serializeConfig(t)!==this.configKey}destroy(){this.instance?.destroy(),this.instance=null}static serializeConfig(t){return JSON.stringify({ease:t.ease,duration:t.duration,locale:t.locale,scale:t.scale,numbers:t.numbers,decimals:t.decimals,debug:t.debug,disabled:t.disabled,respectReducedMotion:t.respectReducedMotion})}},d0="span",YA={...B2,debug:!1,scale:!0,numbers:!0},GA=class{element;options={};data;currentMeasures={};prevMeasures={};previousSegments=[];isInitialRender=!0;reducedMotion=null;srNode=null;hasSetup=!1;constructor(e){let t=Object.fromEntries(Object.entries(e).filter(([,o])=>o!==void 0)),{ease:n,...a}={...YA,...t},{ease:l,duration:i}=q2(n,a.duration);this.options={...a,ease:l,duration:i},this.element=e.element,this.options.respectReducedMotion&&(this.reducedMotion=jA()),this.data="",this.isDisabled()||this.setup()}setup(){this.hasSetup||(this.hasSetup=!0,this.element.setAttribute(Qr,""),this.options.debug&&this.element.setAttribute(vd,""),qA())}destroy(){this.reducedMotion?.destroy(),dA(this.element),this.element.getAnimations().forEach(e=>e.cancel()),this.srNode?.remove(),this.srNode=null,this.element.removeAttribute(Qr),this.element.removeAttribute(vd),this.hasSetup&&(this.hasSetup=!1,kA())}isDisabled(){return!!(this.options.disabled||this.reducedMotion?.prefersReducedMotion)}update(e,t){let n=typeof e=="number"?e.toLocaleString(this.options.locale,{minimumFractionDigits:this.options.decimals,maximumFractionDigits:this.options.decimals}):e;if(n!==this.data){if(this.data=n,this.isDisabled()){typeof n=="string"&&(this.srNode=null,this.element.textContent=n,this.previousSegments=[],this.isInitialRender=!0);return}if(this.setup(),this.data instanceof HTMLElement)throw new Error("HTMLElement not yet supported");this.options.onAnimationStart&&!this.isInitialRender&&this.options.onAnimationStart(),this.createTextGroup(this.data,this.element,t)}}createTextGroup(e,t,n){let{width:a,height:l}=wd(t),i=this.options.numbers!==!1;this.syncAccessibleText(e);let o,s;if(this.previousSegments.length>0){let y=BA(this.previousSegments,e,this.options.locale,{numbers:i,cursorIndex:n});o=y.segments,s=y.splits}else o=hd(e,this.options.locale,i),s=new Map;let r=o.length===0;r&&(o=[{id:Xr,string:"\u200B"}]),bA(t,s),this.prevMeasures=dd(this.element);let c=Array.from(t.children).filter(y=>!y.hasAttribute(fs)),u=new Set(o.map(y=>y.id)),m=c.filter(y=>!u.has(y.getAttribute(Sa))&&!y.hasAttribute(di)),f=new Set(m),d=c.map(y=>y.getAttribute(Sa)),v=hA(c,f,d,u);yA(t,m),SA(t,c,u,o),this.currentMeasures=dd(this.element);let b=o.reduce((y,M)=>M.string===`
|
|
148
|
-
`?y+1:y,1),E=(t.offsetHeight||20*b)/b;t.style.width=`${a}px`,t.offsetWidth;let p=dd(this.element);t.style.width="",this.updateStyles(o,p,E);let h=this.isInitialRender?[]:Zp(c,new Set(m)),g=new Set(h.flat());for(let y of h)_A(y,{duration:this.options.duration,ease:this.options.ease});if(m.forEach(y=>{if(this.isInitialRender||y.getAttribute(Sa)===Xr){y.remove();return}if(g.has(y))return;let M=v.get(y),{dx:w,dy:T}=M?Qp(this.currentMeasures,this.prevMeasures,M):{dx:0,dy:0};y.hasAttribute(gd)?TA(y,{dx:w,dy:T,slideDistance:E,duration:this.options.duration,ease:this.options.ease}):pA(y,{dx:w,dy:T,duration:this.options.duration,ease:this.options.ease,scale:this.options.scale})}),this.previousSegments=o,this.isInitialRender){this.isInitialRender=!1,t.style.width="",t.style.height="";return}r?mA(t,a,l,this.options.duration,this.options.onAnimationComplete,this.options.onAnimationCancel):fA(t,a,l,this.options.duration,this.options.ease,this.options.onAnimationComplete,this.options.onAnimationCancel)}updateStyles(e,t,n){if(this.isInitialRender)return;let a=Array.from(this.element.children).filter(u=>!u.hasAttribute(fs)),l=e.map(u=>u.id),i=new Map(e.map(u=>[u.id,u.kind])),o=a.filter(u=>!u.hasAttribute(di)&&u.tagName!=="BR"&&u.getAttribute(Sa)!==Xr),s=new Set(o.filter(u=>!this.prevMeasures[u.getAttribute(Sa)])),r=new Set;for(let u of Zp(o,s))u.forEach(m=>r.add(m)),NA(u,{duration:this.options.duration,ease:this.options.ease});let c=new Set(l.filter(u=>this.prevMeasures[u]));a.forEach((u,m)=>{if(u.hasAttribute(di)||u.tagName==="BR"||r.has(u))return;let f=u.getAttribute(Sa)||`child-${m}`;if(f===Xr)return;let d=!this.prevMeasures[f],v=d?o0(e.findIndex(h=>h.id===f),l,c):f,{dx:b,dy:E}=v?Qp(this.prevMeasures,t,v):{dx:0,dy:0},p=i.get(f);p&&d?MA(u,{deltaX:b,deltaY:E,slideDistance:n,kind:p,duration:this.options.duration,ease:this.options.ease}):p?r0(u,{deltaX:b,deltaY:E,duration:this.options.duration,ease:this.options.ease}):gA(u,{deltaX:b,deltaY:E,isNew:d,duration:this.options.duration,ease:this.options.ease})})}syncAccessibleText(e){if(!this.srNode||this.srNode.parentNode!==this.element){let t=document.createElement("span");t.setAttribute(fs,""),this.element.prepend(t),this.srNode=t}this.srNode.textContent=e}};var na=ka(Ya(),1);function sE(e){return typeof e=="number"?e:$0(e)}function $0(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(!e||typeof e=="boolean")return"";if(Array.isArray(e))return e.map($0).join("");throw na.default.isValidElement(e)?new Error("TextMorph only accepts text content. Found a React element \u2014 use strings, numbers, or expressions instead."):new Error(`TextMorph received an unsupported child of type "${typeof e}".`)}function rE(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var R0=({children:e,cursorIndex:t,className:n,style:a,as:l=d0,...i})=>{let{ref:o,update:s}=uE(i),r=sE(e),c=na.default.useRef(t);c.current=t;let u=na.default.useRef({__html:rE(String(r)).replace(/\n/g,"<br>")});return na.default.useEffect(()=>{s(r,c.current)},[r,s]),na.default.createElement(l,{ref:o,className:n,style:a,dangerouslySetInnerHTML:u.current})};function uE(e){let t=na.default.useRef(null),n=na.default.useRef(new ms),a=ms.serializeConfig(e),l=na.default.useRef(e);l.current=e,na.default.useEffect(()=>{let o=n.current;return t.current&&o.attach(t.current,{...e,onAnimationStart:()=>l.current.onAnimationStart?.(),onAnimationComplete:()=>l.current.onAnimationComplete?.()}),()=>{o.destroy()}},[a]);let i=na.default.useCallback((o,s)=>{n.current.update(o,s)},[]);return{ref:t,update:i}}var Te=ka(Ya(),1),MS=ka(xb(),1);var We=ka(Ya(),1),H=ka(Ya(),1),je=ka(Ch(),1),Jh=ka(Ya(),1),Lw=ka(Ch(),1);function Bh(e){let t=e.match(/^#([0-9a-f]{3,8})$/i);if(t){let a=t[1];return a.length===3&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),[parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16)]}let n=e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return n?[+n[1],+n[2],+n[3]]:[128,128,128]}function Hc(e,t,n,a){return`rgba(${e}, ${t}, ${n}, ${a})`}function Hh(e,t){let[n,a,l]=Bh(e),i=t==="dark";return{line:e,lineWidth:2,fillTop:Hc(n,a,l,i?.12:.08),fillBottom:Hc(n,a,l,0),gridLine:i?"rgba(255, 255, 255, 0.06)":"rgba(0, 0, 0, 0.06)",gridLabel:i?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.35)",dotUp:"#22c55e",dotDown:"#ef4444",dotFlat:e,glowUp:"rgba(34, 197, 94, 0.18)",glowDown:"rgba(239, 68, 68, 0.18)",glowFlat:Hc(n,a,l,.12),badgeOuterBg:i?"rgba(40, 40, 40, 0.95)":"rgba(255, 255, 255, 0.95)",badgeOuterShadow:i?"rgba(0, 0, 0, 0.4)":"rgba(0, 0, 0, 0.15)",badgeBg:e,badgeText:"#ffffff",dashLine:Hc(n,a,l,.4),refLine:i?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.12)",refLabel:i?"rgba(255, 255, 255, 0.45)":"rgba(0, 0, 0, 0.4)",timeLabel:i?"rgba(255, 255, 255, 0.35)":"rgba(0, 0, 0, 0.3)",crosshairLine:i?"rgba(255, 255, 255, 0.2)":"rgba(0, 0, 0, 0.12)",tooltipBg:i?"rgba(30, 30, 30, 0.95)":"rgba(255, 255, 255, 0.95)",tooltipText:i?"#e5e5e5":"#1a1a1a",tooltipBorder:i?"rgba(255, 255, 255, 0.1)":"rgba(0, 0, 0, 0.08)",bgRgb:i?[10,10,10]:[255,255,255],labelFont:'11px "SF Mono", Menlo, Monaco, "Cascadia Code", monospace',valueFont:'600 11px "SF Mono", Menlo, monospace',badgeFont:'500 11px "SF Mono", Menlo, monospace'}}var Fo=["#3b82f6","#ef4444","#22c55e","#f59e0b","#8b5cf6","#ec4899","#06b6d4","#f97316"];function b3(e,t){let n=new Map;for(let a=0;a<e.length;a++){let l=e[a],i=l.color||Fo[a%Fo.length];n.set(l.id,Hh(i,t))}return n}function Oe(e,t,n,a=16.67){let l=1-Math.pow(1-n,a/16.67);return e+(t-e)*l}function jc(e,t,n,a){let l=1/0,i=-1/0;for(let c of e)c.value<l&&(l=c.value),c.value>i&&(i=c.value);t<l&&(l=t),t>i&&(i=t),n!==void 0&&(n<l&&(l=n),n>i&&(i=n));let o=i-l,s=a?.01:.12,r=o*(a?.02:.1)||(a?.04:.4);if(o<r){let c=(l+i)/2;l=c-r/2,i=c+r/2}else{let c=o*s;l-=c,i+=c}return{min:l,max:i}}function Hb(e,t=20){if(e.length<5)return"flat";let n=Math.max(0,e.length-t),a=1/0,l=-1/0;for(let m=n;m<e.length;m++){let f=e[m].value;f<a&&(a=f),f>l&&(l=f)}let i=l-a;if(i===0)return"flat";let o=Math.max(n,e.length-5),s=e[o].value,c=e[e.length-1].value-s,u=i*.12;return c>u?"up":c<-u?"down":"flat"}function sS(e,t){if(e.length===0)return null;if(t<=e[0].time)return e[0].value;if(t>=e[e.length-1].time)return e[e.length-1].value;let n=0,a=e.length-1;for(;a-n>1;){let r=n+a>>1;e[r].time<=t?n=r:a=r}let l=e[n],i=e[a],o=i.time-l.time;if(o===0)return l.value;let s=(t-l.time)/o;return l.value+(i.value-l.value)*s}function S3(){return typeof window>"u"?1:Math.min(window.devicePixelRatio||1,3)}function A3(e,t,n,a){e.setTransform(t,0,0,t,0,0),e.clearRect(0,0,n,a)}function E3(e,t,n,a){if(a>0){let o=a*t;if(o>=n*.5&&o<=n*4)return a}let l=[[2,2.5,2],[2,2,2.5],[2.5,2,2]],i=1/0;for(let o of l){let s=Math.pow(10,Math.ceil(Math.log10(e))),r=0;for(;s/o[r%3]*t>=n;)s/=o[r%3],r++;s<i&&(i=s)}return i===1/0?e/5:i}function T3(e,t){let n=e/t;return Math.abs(n-Math.round(n))<.01}var qb=.18,M3=.12;function jh(e,t,n,a,l,i){let{w:o,h:s,pad:r,valRange:c,minVal:u,maxVal:m,toY:f}=t,d=s-r.top-r.bottom;if(d<=0||c<=0)return;let v=d/c,b=E3(c,v,36,l.interval);l.interval=b;let E=b/2,p=E*v,h=p<40?0:p>=60?1:(p-40)/20,g=32,y=A=>{let $=Math.min(A-r.top,s-r.bottom-A);return $>=g?1:$<=0?0:$/g},M=new Map,w=Math.ceil(u/E)*E;for(let A=w;A<=m;A+=E){let $=f(A);if($<r.top-2||$>s-r.bottom+2)continue;let D=(T3(A,b)?1:h)*y($),O=Math.round(A*1e3);M.set(O,D)}for(let[A,$]of l.labels){let C=M.get(A)??0,D=C>=$?qb:M3,O=Oe($,C,D,i);Math.abs(O-C)<.02&&(O=C),O<.01&&C===0?l.labels.delete(A):l.labels.set(A,O)}for(let[A,$]of M)l.labels.has(A)||l.labels.set(A,$*qb);let T=e.globalAlpha;e.setLineDash([1,3]),e.lineWidth=1,e.font=n.labelFont,e.textAlign="left";for(let[A,$]of l.labels){if($<.02)continue;let C=A/1e3,D=f(C);D<r.top-10||D>s-r.bottom+10||(e.save(),e.globalAlpha=T*$,e.strokeStyle=n.gridLine,e.beginPath(),e.moveTo(r.left,D),e.lineTo(o-r.right,D),e.stroke(),e.fillStyle=n.gridLabel,e.fillText(a(C),o-r.right+8,D+4),e.restore())}e.setLineDash([])}function Yc(e,t){if(t.length<2)return;if(t.length===2){e.lineTo(t[1][0],t[1][1]);return}let n=t.length,a=new Array(n-1),l=new Array(n-1);for(let o=0;o<n-1;o++)l[o]=t[o+1][0]-t[o][0],a[o]=l[o]===0?0:(t[o+1][1]-t[o][1])/l[o];let i=new Array(n);i[0]=a[0],i[n-1]=a[n-2];for(let o=1;o<n-1;o++)a[o-1]*a[o]<=0?i[o]=0:i[o]=(a[o-1]+a[o])/2;for(let o=0;o<n-1;o++)if(a[o]===0)i[o]=0,i[o+1]=0;else{let s=i[o]/a[o],r=i[o+1]/a[o],c=s*s+r*r;if(c>9){let u=3/Math.sqrt(c);i[o]=u*s*a[o],i[o+1]=u*r*a[o]}}for(let o=0;o<n-1;o++){let s=l[o];e.bezierCurveTo(t[o][0]+s/3,t[o][1]+i[o]*s/3,t[o+1][0]-s/3,t[o+1][1]-i[o+1]*s/3,t[o+1][0],t[o+1][1])}}var Yh=.07,Gh=.001;function Vh(e,t,n,a){return t+n*(Math.sin(e*9.4+a)*.55+Math.sin(e*15.7+a*1.3)*.3+Math.sin(e*4.2+a*.7)*.15)}function Xh(e){return .22+.08*Math.sin(e/1200*Math.PI)}function kb(e){let t=e.match(/^#([0-9a-f]{3,8})$/i);if(t){let l=t[1];return l.length===3&&(l=l[0]+l[0]+l[1]+l[1]+l[2]+l[2]),[parseInt(l.slice(0,2),16),parseInt(l.slice(2,4),16),parseInt(l.slice(4,6),16),1]}let n=e.match(/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)/);if(n)return[+n[1],+n[2],+n[3],+n[4]];let a=e.match(/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return a?[+a[1],+a[2],+a[3],1]:[128,128,128,1]}function w3(e,t,n){if(n<=0)return e;if(n>=1)return t;let[a,l,i,o]=kb(e),[s,r,c,u]=kb(t),m=Math.round(a+(s-a)*n),f=Math.round(l+(r-l)*n),d=Math.round(i+(c-i)*n),v=o+(u-o)*n;return v>=.995?`rgb(${m},${f},${d})`:`rgba(${m},${f},${d},${v.toFixed(3)})`}function Dh(e,t,n,a,l,i=1,o=1,s){let{h:r,pad:c}=t,u=e.globalAlpha;if(l&&o>.01){e.globalAlpha=u*o;let m=e.createLinearGradient(0,c.top,0,r-c.bottom);m.addColorStop(0,n.fillTop),m.addColorStop(1,n.fillBottom),e.beginPath(),e.moveTo(a[0][0],r-c.bottom),e.lineTo(a[0][0],a[0][1]),Yc(e,a),e.lineTo(a[a.length-1][0],r-c.bottom),e.closePath(),e.fillStyle=m,e.fill()}e.globalAlpha=u*i,e.beginPath(),e.moveTo(a[0][0],a[0][1]),Yc(e,a),e.strokeStyle=s??n.line,e.lineWidth=n.lineWidth,e.lineJoin="round",e.lineCap="round",e.stroke(),e.globalAlpha=u}function Kh(e,t,n,a,l,i,o,s,r=0,c=1,u=0,m=1,f=!1,d=1){let{h:v,pad:b,toX:E,toY:p,chartW:h,chartH:g}=t,y=e.globalAlpha,M=b.top,w=v-b.bottom,T=L=>Math.max(M,Math.min(w,L)),A=b.top+g/2,$=g*Yh,C=u*Gh,D=c<1?(L,j)=>{let Z=Math.max(0,Math.min(1,(j-b.left)/h)),ve=Math.abs(Z-.5)*2,Pe=Math.max(0,Math.min(1,(c-ve*.4)/.6)),Ge=Vh(Z,A,$,C);return Ge+(L-Ge)*Pe}:(L,j)=>L,O=a.map((L,j)=>{let Z=E(L.time),ve=j===a.length-1?D(T(p(l)),Z):D(T(p(L.value)),Z);return[Z,ve]}),z=E(i),U=b.left+h,X=c<1?z+(U-z)*(1-c):z;if(O.push([X,D(T(p(l)),X)]),O.length<2)return;let ee=1,ae=d;if(c<1){let L=Xh(u);ee=L+(1-L)*c,ae=c*d}let se=Math.min(1,c*3)*m,k=c<1||m<1?w3(n.gridLabel,n.line,se):void 0,B=s!==null;if(e.save(),e.beginPath(),e.rect(b.left-1,b.top,h+2,g),e.clip(),B?(e.save(),e.beginPath(),e.rect(0,0,s,v),e.clip(),Dh(e,t,n,O,o,ee,ae,k),e.restore(),e.save(),e.beginPath(),e.rect(s,0,t.w-s,v),e.clip(),e.globalAlpha=y*(1-r*.6),Dh(e,t,n,O,o,ee,ae,k),e.restore()):Dh(e,t,n,O,o,ee,ae,k),e.restore(),!f){let L=Math.max(b.top,Math.min(v-b.bottom,p(l))),j=c<1?A+(L-A)*c:L;e.setLineDash([4,4]),e.strokeStyle=n.dashLine,e.lineWidth=1;let Z=B?1-r*.2:1;e.globalAlpha=y*(c<1?Z*c:Z),e.beginPath(),e.moveTo(b.left,j),e.lineTo(t.w-b.right,j),e.stroke(),e.setLineDash([])}e.globalAlpha=y;let x=O[O.length-1];return x[1]=Math.max(10,Math.min(v-10,x[1])),O}var rS=1500,uS=900;function $3(e,t,n){let a=Math.round(e[0]+(t[0]-e[0])*n),l=Math.round(e[1]+(t[1]-e[1])*n),i=Math.round(e[2]+(t[2]-e[2])*n);return`rgb(${a},${l},${i})`}function cS(e,t,n,a,l=!0,i=0,o=performance.now()){let s=e.globalAlpha,r=i*.7;if(l&&r<.3){let u=o%rS/uS;if(u<1){let m=9+u*12,f=.35*(1-u)*(1-r*3);e.beginPath(),e.arc(t,n,m,0,Math.PI*2),e.strokeStyle=a.line,e.lineWidth=1.5,e.globalAlpha=s*f,e.stroke()}}let c=Bh(a.badgeOuterBg);if(e.save(),e.globalAlpha=s,e.shadowColor=a.badgeOuterShadow,e.shadowBlur=6*(1-r),e.shadowOffsetY=1,e.beginPath(),e.arc(t,n,6.5,0,Math.PI*2),e.fillStyle=a.badgeOuterBg,e.fill(),e.restore(),e.globalAlpha=s,e.beginPath(),e.arc(t,n,3.5,0,Math.PI*2),r>.01){let u=Bh(a.line);e.fillStyle=$3(u,c,r)}else e.fillStyle=a.line;e.fill()}function R3(e,t,n,a,l=!0,i=performance.now(),o=3){let s=e.globalAlpha;if(l){let r=i%rS/uS;if(r<1){let c=9+r*10,u=.3*(1-r);e.beginPath(),e.arc(t,n,c,0,Math.PI*2),e.strokeStyle=a,e.lineWidth=1.5,e.globalAlpha=s*u,e.stroke()}}e.globalAlpha=s,e.beginPath(),e.arc(t,n,o,0,Math.PI*2),e.fillStyle=a,e.fill()}function _3(e,t,n,a,l=3){e.beginPath(),e.arc(t,n,l,0,Math.PI*2),e.fillStyle=a,e.fill()}function N3(e,t,n,a,l,i,o,s=performance.now()){let r=e.globalAlpha,c=a==="up"?1:0,u=a==="down"?1:0,m=i.down<.02,f=i.up<.02;i.up=Oe(i.up,m?c:0,c>i.up?.08:.04,o),i.down=Oe(i.down,f?u:0,u>i.down?.08:.04,o),i.up<.01&&(i.up=0),i.down<.01&&(i.down=0),i.up>.99&&(i.up=1),i.down>.99&&(i.down=1);let d=s%1400/1400,v=(b,E)=>{if(E<.01)return;let p=t+19,h=n;e.save(),e.strokeStyle=l.gridLabel,e.lineWidth=2.5,e.lineCap="round",e.lineJoin="round";for(let g=0;g<2;g++){let y=g*.2,M=.35,w=d-y,A=.3+.7*(w>=0&&w<M?Math.sin(w/M*Math.PI):0);e.globalAlpha=r*E*A;let $=b===-1?-3:3,C=h+b*(g*8-4)+$;e.beginPath(),e.moveTo(p-5,C-b*3.5),e.lineTo(p,C),e.lineTo(p+5,C-b*3.5),e.stroke()}e.restore()};v(-1,i.up),v(1,i.down),e.globalAlpha=r}function O3(e,t,n,a,l,i,o,s,r,c,u,m){if(r<.01)return;let{h:f,pad:d,toY:v}=t,b=v(l);e.save(),e.globalAlpha=r*.5,e.strokeStyle=n.crosshairLine,e.lineWidth=1,e.beginPath(),e.moveTo(a,d.top),e.lineTo(a,f-d.bottom),e.stroke(),e.restore();let E=4*Math.min(r*3,1);if(E>.5&&(e.globalAlpha=1,e.beginPath(),e.arc(a,b,E,0,Math.PI*2),e.fillStyle=n.line,e.fill()),r<.1||t.w<300)return;let p=o(l),h=s(i),g=" \xB7 ";e.save(),e.globalAlpha=r,e.font='400 13px "SF Mono", Menlo, monospace';let y=e.measureText(p).width,M=e.measureText(g).width,w=e.measureText(h).width,T=y+M+w,A=a-T/2,$=d.left+4,D=(u!=null?u+7:t.w-d.right)-T;A<$&&(A=$),A>D&&(A=D);let O=d.top+(c??14)+10;e.textAlign="left",m&&(e.strokeStyle=n.tooltipBg,e.lineWidth=3,e.lineJoin="round",e.strokeText(p,A,O),e.strokeText(g+h,A+y,O)),e.fillStyle=n.tooltipText,e.fillText(p,A,O),e.fillStyle=n.gridLabel,e.fillText(g+h,A+y,O),e.restore()}function C3(e,t,n,a,l,i,o,s,r,c,u,m){if(r<.01||i.length===0)return;let{h:f,pad:d,toY:v}=t;e.save(),e.globalAlpha=r*.5,e.strokeStyle=n.crosshairLine,e.lineWidth=1,e.beginPath(),e.moveTo(a,d.top),e.lineTo(a,f-d.bottom),e.stroke(),e.restore();let b=4*Math.min(r*3,1);if(b>.5){e.globalAlpha=1;for(let O of i){let z=v(O.value);e.beginPath(),e.arc(a,z,b,0,Math.PI*2),e.fillStyle=O.color,e.fill()}}if(r<.1||t.w<300)return;e.save(),e.globalAlpha=r,e.font='400 13px "SF Mono", Menlo, monospace',e.textAlign="left";let E=s(l),p=" \xB7 ",h=" ",g=[{text:E,color:n.gridLabel}];for(let O of i){g.push({text:p,color:n.gridLabel}),g.push({text:h,color:O.color,isDot:!0});let z=O.label?`${O.label} `:"";z&&g.push({text:z,color:n.gridLabel}),g.push({text:o(O.value),color:n.tooltipText})}let y=0,M=[];for(let O of g){let z=O.isDot?12:e.measureText(O.text).width;M.push(z),y+=z}let w=a-y/2,T=d.left+4,$=(m!=null?m+7:t.w-d.right)-y;w<T&&(w=T),w>$&&(w=$);let C=d.top+(c??14)+10;if(u!==!1){e.strokeStyle=n.tooltipBg,e.lineWidth=3,e.lineJoin="round";let O=w;for(let z=0;z<g.length;z++){let U=g[z];U.isDot||e.strokeText(U.text,O,C),O+=M[z]}}let D=w;for(let O=0;O<g.length;O++){let z=g[O];z.isDot?(e.beginPath(),e.arc(D+4,C-4,3.5,0,Math.PI*2),e.fillStyle=z.color,e.fill()):(e.fillStyle=z.color,e.fillText(z.text,D,C)),D+=M[O]}e.restore()}function dS(e,t,n,a){let{w:l,h:i,pad:o,toY:s,chartW:r}=t,c=s(a.value);if(c<o.top-10||c>i-o.bottom+10)return;let u=a.label??"";if(u){e.font="500 11px system-ui, sans-serif";let m=e.measureText(u).width,f=o.left+r/2,d=8;e.strokeStyle=n.refLine,e.lineWidth=1,e.beginPath(),e.moveTo(o.left,c),e.lineTo(f-m/2-d,c),e.stroke(),e.beginPath(),e.moveTo(f+m/2+d,c),e.lineTo(l-o.right,c),e.stroke(),e.fillStyle=n.refLabel,e.textAlign="center",e.fillText(u,f,c+4)}else e.strokeStyle=n.refLine,e.lineWidth=1,e.setLineDash([4,4]),e.beginPath(),e.moveTo(o.left,c),e.lineTo(l-o.right,c),e.stroke(),e.setLineDash([])}function D3(e){return e<=15?2:e<=30?5:e<=60?10:e<=120?15:e<=300?30:e<=600?60:e<=1800?300:e<=3600?600:e<=14400?1800:e<=43200?3600:e<=86400?7200:e<=604800?86400:604800}var z3=.08;function Ih(e,t,n,a,l,i,o,s){let{h:r,pad:c,leftEdge:u,rightEdge:m,toX:f}=t,d=c.left,v=t.w-c.right,b=v-d,E=50,p=O=>{let z=O-d,U=v-O,X=Math.min(z,U);return X>=E?1:X<=0?0:X/E};e.font=n.labelFont;let h=b/l,g=D3(l);for(;g*h<60&&g<l;)g*=2;let y=g>=86400,M;if(y){let O=new Date((u-g)*1e3);O.setHours(0,0,0,0),M=O.getTime()/1e3}else M=Math.ceil((u-g)/g)*g;let w=new Set;for(let O=M;O<=m+g&&w.size<30;O+=g)w.add(Math.round(O*100));for(let O of w){let z=i(O/100),U=o.labels.get(O);U?U.text=z:o.labels.set(O,{alpha:0,text:z})}for(let[O,z]of o.labels){let U=f(O/100),ee=w.has(O)?p(U):0,ae=Oe(z.alpha,ee,z3,s);Math.abs(ae-ee)<.02&&(ae=ee),ae<.01&&ee===0?o.labels.delete(O):z.alpha=ae}let T=e.globalAlpha,A=r-c.bottom,$=5;e.strokeStyle=n.gridLine,e.lineWidth=1,e.beginPath(),e.moveTo(d,A),e.lineTo(v,A),e.stroke(),e.textAlign="center";let C=[];for(let[O,z]of o.labels){if(z.alpha<.02)continue;let U=f(O/100);if(U<d-20||U>v)continue;let X=e.measureText(z.text).width;C.push({x:U,alpha:z.alpha,text:z.text,w:X})}C.sort((O,z)=>O.x-z.x);let D=[];for(let O of C){let z=O.x-O.w/2;if(D.length>0){let U=D[D.length-1],X=U.x+U.w/2;if(z<X+8){O.alpha>U.alpha&&(D[D.length-1]=O);continue}}D.push(O)}for(let O of D)e.save(),e.globalAlpha=T*O.alpha,e.strokeStyle=n.gridLine,e.lineWidth=1,e.beginPath(),e.moveTo(O.x,A),e.lineTo(O.x,A+$),e.stroke(),e.fillStyle=n.timeLabel,e.fillText(O.text,O.x,A+$+14),e.restore()}var x3=[34,197,94],L3=[239,68,68];function U3(){return{labels:[],spawnTimer:0,smoothSpeed:qh,prevBidTotal:0,prevAskTotal:0,churnRate:0}}var B3=50,jb=6,Yb=40,H3=22,qh=60,q3=160;function k3(e,t,n){let a=Math.round(e[0]+(t[0]-e[0])*n),l=Math.round(e[1]+(t[1]-e[1])*n),i=Math.round(e[2]+(t[2]-e[2])*n);return`rgb(${a},${l},${i})`}function j3(e,t,n,a,l,i,o){let{pad:s,h:r,chartH:c}=t,u=l/1e3;if(a.bids.length===0&&a.asks.length===0)return;let m=0,f=0,d=0;for(let[,U]of a.bids)f+=U,U>m&&(m=U);for(let[,U]of a.asks)d+=U,U>m&&(m=U);if(m===0)return;let v=f+d,b=i.prevBidTotal+i.prevAskTotal,E=0;if(b>0){let U=Math.abs(f-i.prevBidTotal)+Math.abs(d-i.prevAskTotal);E=Math.min(U/b,1)}i.prevBidTotal=f,i.prevAskTotal=d;let p=E>i.churnRate?.3:.05;i.churnRate+=(E-i.churnRate)*p;let h=Math.max(Math.min(o*5,1),i.churnRate),g=qh+h*(q3-qh),y=1-Math.pow(.95,l/16.67);i.smoothSpeed+=(g-i.smoothSpeed)*y;let M=i.smoothSpeed,w=s.left+8,T=r-s.bottom-6,A=s.top,$=n.bgRgb;for(i.spawnTimer+=l;i.spawnTimer>=Yb&&i.labels.length<B3;){i.spawnTimer-=Yb;let U=!1;for(let B=0;B<i.labels.length;B++)if(Math.abs(i.labels[B].y-T)<H3){U=!0;break}if(U)break;let X=[];for(let[,B]of a.bids)X.push({size:B,green:!0});for(let[,B]of a.asks)X.push({size:B,green:!1});let ee=0;for(let B of X)ee+=B.size;let ae=Math.random()*ee,se=X[0];for(let B of X)if(ae-=B.size,ae<=0){se=B;break}let k=se.size/m;i.labels.push({y:T,text:`+ ${Y3(se.size)}`,green:se.green,life:jb,maxLife:jb,intensity:.5+k*.5})}let C=T-A,D=0;for(let U=0;U<i.labels.length;U++){let X=i.labels[U];if(X.life-=u,X.life<=0)continue;let ee=C>0?(X.y-A)/C:1;X.y-=M*(.7+.3*ee)*u,!(X.y<A-14)&&(i.labels[D++]=X)}i.labels.length=D;let O=e.globalAlpha;e.save(),e.font='600 13px "SF Mono", Menlo, monospace',e.textAlign="left",e.textBaseline="middle",e.globalAlpha=O;let z=`rgb(${$[0]},${$[1]},${$[2]})`;for(let U=0;U<i.labels.length;U++){let X=i.labels[U],ee=X.life/X.maxLife,ae=Math.min((1-ee)*10,1),se=(X.y-A)/c,k=se<.45?se/.45:1,B=X.intensity*ae*k,x=X.green?x3:L3,L=k3(x,$,1-B);e.strokeStyle=z,e.lineWidth=4,e.lineJoin="round",e.strokeText(X.text,w,X.y),e.fillStyle=L,e.fillText(X.text,w,X.y)}e.restore()}function Y3(e){return e>=10?`$${Math.round(e)}`:e>=1?`$${e.toFixed(1)}`:`$${e.toFixed(2)}`}function G3(){return{particles:[],cooldown:0,burstCount:0}}var V3=80,X3=1,K3=400,I3=.08,Q3=3;function Z3(e,t,n,a,l,i,o,s){if(e.cooldown=Math.max(0,e.cooldown-o),t==="flat"||e.cooldown>0)return 0;if(l<I3)return e.burstCount=0,0;if(t==="down"&&s?.downMomentum!==!0||e.burstCount>=Q3)return 0;e.cooldown=K3;let r=s?.scale??1,c=t==="up",u=Math.min(l*5,1),m=u>.6?1:[1,.6,.35][e.burstCount]??.35;e.burstCount++;let f=Math.round((12+u*20)*r*m),d=1+u*.8;for(let v=0;v<f&&e.particles.length<V3;v++){let b=c?-Math.PI/2:Math.PI/2,E=Math.PI*1.2,p=b+(Math.random()-.5)*E,h=(60+Math.random()*100)*d;e.particles.push({x:n+(Math.random()-.5)*24,y:a+(Math.random()-.5)*8,vx:Math.cos(p)*h,vy:Math.sin(p)*h,life:1,size:(1+Math.random()*1.2)*r*m,color:i})}return m}function J3(e,t,n){if(t.particles.length===0)return;let a=n/1e3;e.save();let l=0;for(let i=0;i<t.particles.length;i++){let o=t.particles[i];o.life-=a/X3,!(o.life<=0)&&(o.x+=o.vx*a,o.y+=o.vy*a,o.vx*=.95,o.vy*=.95,e.globalAlpha=o.life*.55,e.fillStyle=o.color,e.beginPath(),e.arc(o.x,o.y,o.size*(.5+o.life*.5),0,Math.PI*2),e.fill(),t.particles[l++]=o)}t.particles.length=l,e.restore()}var Qh="#22c55e",Zh="#ef4444",zh=[34,197,94],Zo=[239,68,68];function fS(e){let t=Math.round(Zo[0]+(zh[0]-Zo[0])*e),n=Math.round(Zo[1]+(zh[1]-Zo[1])*e),a=Math.round(Zo[2]+(zh[2]-Zo[2])*e);return`rgb(${t},${n},${a})`}function Gb(e){let t=e.match(/^#([0-9a-f]{6})$/i);if(t){let a=t[1];return[parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16)]}let n=e.match(/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);return n?[+n[1],+n[2],+n[3]]:[128,128,128]}function F3(e,t,n){if(n<=0)return e;if(n>=1)return t;let[a,l,i]=Gb(e),[o,s,r]=Gb(t),c=Math.round(a+(o-a)*n),u=Math.round(l+(s-l)*n),m=Math.round(i+(r-i)*n);return`rgb(${c},${u},${m})`}function W3(e,t){let n=e.chartW/(e.rightEdge-e.leftEdge),a=t*n,l=Math.max(1,a*.7),i=Math.max(.8,Math.min(2,l*.15)),o=l>6?1.5:0;return{bodyW:l,wickW:i,radius:o}}function Vb(e,t,n,a,l,i){if(i<=0||l<i*2){e.rect(t,n,a,l);return}e.moveTo(t+i,n),e.lineTo(t+a-i,n),e.arcTo(t+a,n,t+a,n+i,i),e.lineTo(t+a,n+l-i),e.arcTo(t+a,n+l,t+a-i,n+l,i),e.lineTo(t+i,n+l),e.arcTo(t,n+l,t,n+l-i,i),e.lineTo(t,n+i),e.arcTo(t,n,t+i,n,i),e.closePath()}function xh(e,t,n,a,l,i,o,s,r=1,c=-1,u,m=0){if(n.length===0)return;let{toX:f,toY:d}=t,{bodyW:v,wickW:b,radius:E}=W3(t,a),p=v/2,h=t.pad.left,g=t.pad.left+t.chartW,y=.12+Math.sin(i*.004)*.08;for(let M of n){let w=f(M.time+a/2);if(w+p<h||w-p>g)continue;let T=M.close>=M.open,A=M.time===l,$=A&&c>=0?fS(c):T?Qh:Zh;u&&m>.01&&($=F3($,u,m));let C=A?r:1;if(s>.01&&o>0){let ae=w-o;if(ae>0){let se=v*1.5,k=Math.min(ae/se,1);C*=1-s*.5*k}}let D=e.globalAlpha;e.globalAlpha=D*C;let O=d(Math.max(M.open,M.close)),z=d(Math.min(M.open,M.close)),U=Math.max(1,z-O),X=d(M.high),ee=d(M.low);e.lineCap="round",e.strokeStyle=$,O-X>.5&&(e.beginPath(),e.moveTo(w,O),e.lineTo(w,X),e.lineWidth=b,e.stroke()),ee-z>.5&&(e.beginPath(),e.moveTo(w,z),e.lineTo(w,ee),e.lineWidth=b,e.stroke()),e.fillStyle=$,e.beginPath(),Vb(e,w-p,O,v,U,E),e.fill(),A&&(e.save(),e.globalAlpha=D*C*y,e.shadowColor=$,e.shadowBlur=8,e.fillStyle=$,e.beginPath(),Vb(e,w-p,O,v,U,E),e.fill(),e.restore()),e.globalAlpha=D}}function P3(e,t,n,a,l,i=-1){let o=t.toY(a.close);if(o<t.pad.top||o>t.h-t.pad.bottom)return;let s=a.close>=a.open,r=i>=0?fS(i):s?Qh:Zh,c=e.globalAlpha;e.save(),e.setLineDash([4,4]),e.strokeStyle=r,e.lineWidth=1,e.globalAlpha=c*(1-l*.3)*.4,e.beginPath(),e.moveTo(t.pad.left,o),e.lineTo(t.w-t.pad.right,o),e.stroke(),e.setLineDash([]),e.restore()}function ew(e,t,n,a,l,i,o,s,r){if(r<.01)return;let{h:c,pad:u}=t;if(e.save(),e.globalAlpha=r*.5,e.strokeStyle=n.crosshairLine,e.lineWidth=1,e.beginPath(),e.moveTo(a,u.top),e.lineTo(a,c-u.bottom),e.stroke(),e.restore(),r<.1||t.w<200)return;let f=l.close>=l.open?Qh:Zh,d=o(l.close),v=s(i);e.save(),e.globalAlpha=r,e.font='400 13px "SF Mono", Menlo, monospace',e.textAlign="left";let b;if(t.w>=400){let T=o(l.open),A=o(l.high),$=o(l.low);b=[{text:"O ",color:n.gridLabel},{text:T,color:f},{text:" H ",color:n.gridLabel},{text:A,color:f},{text:" L ",color:n.gridLabel},{text:$,color:f},{text:" C ",color:n.gridLabel},{text:d,color:f},{text:" \xB7 ",color:n.gridLabel},{text:v,color:n.gridLabel}]}else b=[{text:"C ",color:n.gridLabel},{text:d,color:f},{text:" \xB7 ",color:n.gridLabel},{text:v,color:n.gridLabel}];let E=0,p=[];for(let T of b){let A=e.measureText(T.text).width;p.push(A),E+=A}let h=a-E/2,g=u.left+4,y=t.w-u.right-E;h<g&&(h=g),h>y&&(h=y);let M=u.top+24;e.strokeStyle=n.tooltipBg,e.lineWidth=3,e.lineJoin="round";let w=h;for(let T=0;T<b.length;T++)e.strokeText(b[T].text,w,M),w+=p[T];w=h;for(let T=0;T<b.length;T++)e.fillStyle=b[T].color,e.fillText(b[T].text,w,M),w+=p[T];e.restore()}function tw(e,t,n,a,l,i,o,s,r){if(r<.01)return;let{h:c,pad:u}=t,m=t.toY(l);if(e.save(),e.globalAlpha=r*.5,e.strokeStyle=n.crosshairLine,e.lineWidth=1,e.beginPath(),e.moveTo(a,u.top),e.lineTo(a,c-u.bottom),e.stroke(),e.globalAlpha=r*.3,e.beginPath(),e.moveTo(u.left,m),e.lineTo(t.w-u.right,m),e.stroke(),e.restore(),r<.1||t.w<200)return;let f=o(l),d=s(i);e.save(),e.globalAlpha=r,e.font='400 13px "SF Mono", Menlo, monospace',e.textAlign="left";let v=[{text:f,color:n.line},{text:" \xB7 ",color:n.gridLabel},{text:d,color:n.gridLabel}],b=0,E=[];for(let w of v){let T=e.measureText(w.text).width;E.push(T),b+=T}let p=a-b/2,h=u.left+4,g=t.w-u.right-b;p<h&&(p=h),p>g&&(p=g);let y=u.top+24;e.strokeStyle=n.tooltipBg,e.lineWidth=3,e.lineJoin="round";let M=p;for(let w=0;w<v.length;w++)e.strokeText(v[w].text,M,y),M+=E[w];M=p;for(let w=0;w<v.length;w++)e.fillStyle=v[w].color,e.fillText(v[w].text,M,y),M+=E[w];e.restore()}function gr(e,t,n,a,l,i=1,o=0,s=!1,r){let c=t-a.left-a.right,u=n-a.top-a.bottom,m=a.top+u/2,f=a.left+c/2,d=r??"No data to display",v=u*Yh;e.save(),e.font="400 12px system-ui, -apple-system, sans-serif";let E=e.measureText(d).width/2+20,p=30;if(!s){let w=o*Gh,T=Xh(o),A=32,$=[];for(let C=0;C<=A;C++){let D=C/A,O=a.left+D*c,z=Vh(D,m,v,w);$.push([O,z])}e.beginPath(),e.moveTo($[0][0],$[0][1]),Yc(e,$),e.strokeStyle=l.gridLabel,e.lineWidth=l.lineWidth,e.globalAlpha=T*i,e.lineCap="round",e.lineJoin="round",e.stroke()}e.save(),e.globalCompositeOperation="destination-out";let h=f-E-p,g=f+E+p,y=e.createLinearGradient(h,0,g,0);y.addColorStop(0,"rgba(0,0,0,0)"),y.addColorStop(p/(g-h),"rgba(0,0,0,1)"),y.addColorStop(1-p/(g-h),"rgba(0,0,0,1)"),y.addColorStop(1,"rgba(0,0,0,0)"),e.fillStyle=y,e.globalAlpha=i;let M=v*2+l.lineWidth+6;e.fillRect(h,m-M/2,g-h,M),e.restore(),e.textAlign="center",e.textBaseline="middle",e.globalAlpha=.35*i,e.fillStyle=l.gridLabel,e.fillText(d,f,m),e.restore()}var nw=.002,Xb=.2,ol=40,il=5;function aw(){return{amplitude:0}}function lw(e,t,n,a){let l=a.shakeState,i=0,o=0;if(l&&l.amplitude>Xb&&(i=(Math.random()-.5)*2*l.amplitude,o=(Math.random()-.5)*2*l.amplitude,e.save(),e.translate(i,o)),l){let v=Math.pow(nw,a.dt/1e3);l.amplitude*=v,l.amplitude<Xb&&(l.amplitude=0)}let s=a.chartReveal,r=a.pauseProgress,c=(v,b)=>{let E=Math.max(0,Math.min(1,(s-v)/(b-v)));return E*E*(3-2*E)};if(a.referenceLine&&s>.01&&(e.save(),s<1&&(e.globalAlpha=s),dS(e,t,n,a.referenceLine),e.restore()),a.showGrid){let v=s<1?c(.15,.7):1;v>.01&&(e.save(),v<1&&(e.globalAlpha=v),jh(e,t,n,a.formatValue,a.gridState,a.dt),e.restore())}a.orderbookData&&a.orderbookState&&s>.01&&(e.save(),s<1&&(e.globalAlpha=s),j3(e,t,n,a.orderbookData,a.dt,a.orderbookState,a.swingMagnitude),e.restore());let u=a.scrubAmount>.05?a.hoverX:null,m=Kh(e,t,n,a.visible,a.smoothValue,a.now,a.showFill,u,a.scrubAmount,s,a.now_ms);{let v=s<1?c(.15,.7):1;v>.01&&(e.save(),v<1&&(e.globalAlpha=v),Ih(e,t,n,a.windowSecs,a.targetWindowSecs,a.formatTime,a.timeAxisState,a.dt),e.restore())}if(m&&m.length>0){let v=m[m.length-1],b=a.scrubAmount;if(a.hoverX!==null&&b>0){let h=v[0]-a.hoverX,g=Math.min(80,t.chartW*.3);b=h<il?0:h>=g?a.scrubAmount:(h-il)/(g-il)*a.scrubAmount}let E=s<.3?0:(s-.3)/.7,p=a.showPulse&&s>.6&&r<.5;if(E>.01&&(e.save(),E<1&&(e.globalAlpha=E),cS(e,v[0],v[1],n,p,b,a.now_ms),e.restore()),a.showMomentum){let g=(s<1?c(.6,1):1)*(1-r);g>.01&&(e.save(),g<1&&(e.globalAlpha=g),N3(e,v[0],v[1],a.momentum,n,a.arrowState,a.dt,a.now_ms),e.restore())}if(a.particleState&&s>.9){let h=Z3(a.particleState,a.momentum,v[0],v[1],a.swingMagnitude,n.line,a.dt,a.particleOptions);h>0&&l&&(l.amplitude=(3+a.swingMagnitude*4)*h),J3(e,a.particleState,a.dt)}}let f=ol;e.save(),e.globalCompositeOperation="destination-out";let d=e.createLinearGradient(t.pad.left,0,t.pad.left+f,0);if(d.addColorStop(0,"rgba(0, 0, 0, 1)"),d.addColorStop(1,"rgba(0, 0, 0, 0)"),e.fillStyle=d,e.fillRect(0,0,t.pad.left+f,t.h),e.restore(),a.hoverX!==null&&a.hoverValue!==null&&a.hoverTime!==null&&m&&m.length>0){let v=m[m.length-1],b=v[0]-a.hoverX,E=Math.min(80,t.chartW*.3),p=b<il?0:b>=E?a.scrubAmount:(b-il)/(E-il)*a.scrubAmount;p>.01&&O3(e,t,n,a.hoverX,a.hoverValue,a.hoverTime,a.formatValue,a.formatTime,p,a.tooltipY,v[0],a.tooltipOutline)}l&&(i!==0||o!==0)&&e.restore()}function iw(e,t,n){let a=n.primaryPalette,l=n.chartReveal,i=(c,u)=>{let m=Math.max(0,Math.min(1,(l-c)/(u-c)));return m*m*(3-2*m)};if(n.referenceLine&&l>.01&&(e.save(),l<1&&(e.globalAlpha=l),dS(e,t,a,n.referenceLine),e.restore()),n.showGrid){let c=l<1?i(.15,.7):1;c>.01&&(e.save(),c<1&&(e.globalAlpha=c),jh(e,t,a,n.formatValue,n.gridState,n.dt),e.restore())}let o=n.scrubAmount>.05?n.hoverX:null,s=[];for(let c=0;c<n.series.length;c++){let u=n.series[c],m=u.alpha??1,d=(c>0&&l<1?Math.min(1,l*2):1)*m;if(d<.01)continue;e.save(),d<1&&(e.globalAlpha=d);let v=Kh(e,t,u.palette,u.visible,u.smoothValue,n.now,!1,o,n.scrubAmount,l,n.now_ms);e.restore(),v&&v.length>0&&s.push({pts:v,palette:u.palette,label:u.label,alpha:m})}{let c=l<1?i(.15,.7):1;c>.01&&(e.save(),c<1&&(e.globalAlpha=c),Ih(e,t,a,n.windowSecs,n.targetWindowSecs,n.formatTime,n.timeAxisState,n.dt),e.restore())}if(l>.3&&s.length>0){let c=(l-.3)/.7,u=n.showPulse&&l>.6&&n.pauseProgress<.5;for(let m of s){if(m.alpha<.01)continue;let f=m.pts[m.pts.length-1];e.save(),e.globalAlpha=c*m.alpha,u&&m.alpha>.5?R3(e,f[0],f[1],m.palette.line,!0,n.now_ms,3):_3(e,f[0],f[1],m.palette.line,3),m.label&&(e.font='600 10px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif',e.textAlign="left",e.fillStyle=m.palette.line,e.fillText(m.label,f[0]+6,f[1]+3.5)),e.restore()}}e.save(),e.globalCompositeOperation="destination-out";let r=e.createLinearGradient(t.pad.left,0,t.pad.left+ol,0);if(r.addColorStop(0,"rgba(0, 0, 0, 1)"),r.addColorStop(1,"rgba(0, 0, 0, 0)"),e.fillStyle=r,e.fillRect(0,0,t.pad.left+ol,t.h),e.restore(),n.hoverX!==null&&n.hoverTime!==null&&n.hoverEntries.length>0&&s.length>0&&n.scrubAmount>.01){let c=0;for(let d of s){if(d.alpha<.01)continue;let v=d.pts[d.pts.length-1][0];v>c&&(c=v)}let u=c-n.hoverX,m=Math.min(80,t.chartW*.3),f=u<il?0:u>=m?n.scrubAmount:(u-il)/(m-il)*n.scrubAmount;f>.01&&C3(e,t,a,n.hoverX,n.hoverTime,n.hoverEntries,n.formatValue,n.formatTime,f,n.tooltipY,n.tooltipOutline,c)}}function ow(e,t,n,a){let{w:l,h:i,pad:o,chartW:s,chartH:r}=t,c=a.chartReveal,u=a.lineModeProg>=.99,m=u?1-c:(1-c)*(1-c)*(1-c),f=Math.max(a.lineModeProg,m),d=f>.001?a.lineModeProg/f:1,v=(w,T)=>{let A=Math.max(0,Math.min(1,(c-w)/(T-w)));return A*A*(3-2*A)},b=v(.25,.6);a.showGrid&&b>.01&&(e.save(),b<1&&(e.globalAlpha=b),jh(e,t,n,a.formatValue,a.gridState,a.dt),e.restore());let E;if(f>.01&&a.lineVisible.length>=2){let w=a.scrubAmount>.05?a.hoverX:null;e.save(),e.globalAlpha=f,E=Kh(e,t,n,a.lineVisible,a.lineSmoothValue,a.now,a.lineModeProg>.01,w,a.scrubAmount,a.chartReveal,a.now_ms,d,!u,a.lineModeProg),e.restore()}let p=v(.4,.8),h=a.closePriceCandle??a.liveCandle;if(h&&p>.01&&(f<.99&&(e.save(),e.globalAlpha=p*(1-f),P3(e,t,n,h,a.scrubAmount,a.liveBullBlend),e.restore()),f>.01&&!u)){let w=t.toY(h.close);w>=o.top&&w<=i-o.bottom&&(e.save(),e.setLineDash([4,4]),e.strokeStyle=n.dashLine,e.lineWidth=1,e.globalAlpha=p*f*(1-a.scrubAmount*.2),e.beginPath(),e.moveTo(o.left,w),e.lineTo(l-o.right,w),e.stroke(),e.setLineDash([]),e.restore())}let g=a.chartReveal*(1-f);if(g>.01){let w=c*c*(3-2*c),T=D=>w>=.99?D:{time:D.time,open:D.close+(D.open-D.close)*w,high:D.close+(D.high-D.close)*w,low:D.close+(D.low-D.close)*w,close:D.close},A=w<.99?a.candles.map(T):a.candles,$=w<.99&&a.oldCandles.length>0?a.oldCandles.map(T):a.oldCandles;e.save(),e.beginPath(),e.rect(o.left-1,o.top,s+2,r),e.clip();let C=f>.01?n.line:void 0;a.morphT>=0&&$.length>0?(e.globalAlpha=(1-a.morphT)*g,xh(e,t,$,a.oldWidth,-1,a.now_ms,a.hoverX??0,a.scrubAmount,1,-1,C,f),e.globalAlpha=a.morphT*g,xh(e,t,A,a.displayCandleWidth,a.liveCandle?.time??-1,a.now_ms,a.hoverX??0,a.scrubAmount,a.liveBirthAlpha,a.liveBullBlend,C,f),e.globalAlpha=1):(g<1&&(e.globalAlpha=g),xh(e,t,A,a.displayCandleWidth,a.liveCandle?.time??-1,a.now_ms,a.hoverX??0,a.scrubAmount,a.liveBirthAlpha,a.liveBullBlend,C,f)),e.restore()}if(f>.5&&E&&E.length>0&&c>.3){let w=E[E.length-1],T=(f-.5)*2*((c-.3)/.7),A=f>.8&&c>.6;T>.01&&(e.save(),e.globalAlpha=T,cS(e,w[0],w[1],n,A,a.scrubAmount,a.now_ms),e.restore())}let y=v(.25,.6);y>.01&&(e.save(),y<1&&(e.globalAlpha=y),Ih(e,t,n,a.targetWindowSecs,a.targetWindowSecs,a.formatTime,a.timeAxisState,a.dt),e.restore()),e.save(),e.globalCompositeOperation="destination-out";let M=e.createLinearGradient(o.left,0,o.left+ol,0);if(M.addColorStop(0,"rgba(0, 0, 0, 1)"),M.addColorStop(1,"rgba(0, 0, 0, 0)"),e.fillStyle=M,e.fillRect(0,0,o.left+ol,i),e.restore(),a.showEmptyOverlay){let w=1-a.chartReveal;if(w>.01){let T=(1-a.loadingAlpha)*w;T>.01&&gr(e,l,i,o,n,T,a.now_ms,!0,a.emptyText)}}a.chartReveal>.7&&a.hoveredCandle&&a.hoverX!==null&&a.scrubAmount>.01&&(a.lineModeProg>.5?tw(e,t,n,a.hoverX,a.hoveredCandle.close,a.hoverTime??0,a.formatValue,a.formatTime,a.scrubAmount):ew(e,t,n,a.hoverX,a.hoveredCandle,a.hoverTime??0,a.formatValue,a.formatTime,a.scrubAmount))}function Kb(e,t,n,a,l,i,o=1,s){let r=t-a.left-a.right,c=n-a.top-a.bottom,u=a.top+c/2,m=a.left,f=c*Yh,d=i*Gh,v=Xh(i),b=32,E=[];for(let p=0;p<=b;p++){let h=p/b,g=m+h*r,y=Vh(h,u,f,d);E.push([g,y])}e.save(),e.beginPath(),e.moveTo(E[0][0],E[0][1]),Yc(e,E),e.strokeStyle=s??l.line,e.lineWidth=l.lineWidth,e.globalAlpha=v*o,e.lineCap="round",e.lineJoin="round",e.stroke(),e.restore()}function sw(e,t,n,a){let l=t/2,i=n+e-l,o=n+l;return[`M${o},0`,`L${i},0`,`A${l},${l},0,0,1,${i},${t}`,`L${o},${t}`,`C${n+2},${t},3,${l+a},0,${l}`,`C3,${l-a},${n+2},0,${o},0`,"Z"].join(" ")}function rw(e,t){let n=t/2;return[`M${n},0`,`L${e-n},0`,`A${n},${n},0,0,1,${e-n},${t}`,`L${n},${t}`,`A${n},${n},0,0,1,${n},0`,"Z"].join(" ")}var qc=10,Lh=3,Ib=5,uw=2.5,Qb=16,Zb="http://www.w3.org/2000/svg",cw=50,mS=.12,dw=.15,fw=.35,mw=.5,hw=.12,hS=750,Jb=.05,Fb=.015,Wb=.001,pS=.2,Uh=[34,197,94],Jo=[239,68,68],pw=.14,gw=.09,vw=.12,yw=.08,bw=.22,Sw=.14,Aw=.1,kc=.25,Ew=300,Tw=500,Mw=.25,ww=350,Pb=.08,eS=.2,tS=.001,$w=.15,Rw=.2,_w=.015;function nS(e,t,n,a,l,i){let o=Math.abs(e-t),s=a-n||1,r=Math.min(o/s,1);return i?1:l+(1-r)*pS}function aS(e,t,n,a,l,i,o,s,r,c,u){if(t.to!==e.windowSecs){t.from=n,t.to=e.windowSecs,t.startMs=o,t.rangeFromMin=a,t.rangeFromMax=l;let d=s+e.windowSecs*u,v=d-e.windowSecs,b=[];for(let E of r)E.time>=v-2&&E.time<=d&&b.push(E);if(b.length>0){let E=jc(b,c,e.referenceLine?.value,e.exaggerate);t.rangeToMin=E.min,t.rangeToMax=E.max}}let m=0,f;if(i||t.startMs===0)f=e.windowSecs;else{let d=o-t.startMs,b=Math.min(d/hS,1),E=(1-Math.cos(b*Math.PI))/2;m=E;let p=Math.log(t.from),h=Math.log(t.to);f=Math.exp(p+(h-p)*E),b>=1&&(f=e.windowSecs,t.startMs=0,m=0)}return{windowSecs:f,windowTransProgress:m}}function lS(e,t,n,a,l,i,o,s,r,c,u,m){if(!t)return{minVal:e.min,maxVal:e.max,valRange:e.max-e.min||.001,targetMin:e.min,targetMax:e.max,displayMin:e.min,displayMax:e.max,rangeInited:!0};if(o)l=r.rangeFromMin+(r.rangeToMin-r.rangeFromMin)*s,i=r.rangeFromMax+(r.rangeToMax-r.rangeFromMax)*s,n=e.min,a=e.max;else{let f=i-l;n=e.min,a=e.max,l=Oe(l,n,c,m),i=Oe(i,a,c,m);let d=.5*f/u||.001;Math.abs(l-n)<d&&(l=n),Math.abs(i-a)<d&&(i=a)}return{minVal:l,maxVal:i,valRange:i-l||.001,targetMin:n,targetMax:a,displayMin:l,displayMax:i,rangeInited:!0}}function Nw(e,t,n,a,l,i,o,s,r,c,u,m,f,d){let v=null,b=null,E=null,p=!1;if(e!==null&&e>=t.left&&e<=n-t.right){let w=a.toX(l),T=Math.min(e,w),A=u+(T-t.left)/f*(m-u),$=sS(i,A);$!==null&&(v=$,b=A,E=T,p=!0,s={x:T,value:$,time:A},r.onHover?.({time:A,value:$,x:T,y:a.toY($)}))}let h=p?1:0;c?o=h:(o+=(h-o)*mS,o<.01&&(o=0),o>.99&&(o=1));let g=E,y=v,M=b;return!p&&o>0&&s&&(g=s.x,y=s.value,M=s.time),{hoverX:g,hoverValue:y,hoverTime:M,scrubAmount:o,isActiveHover:p,lastHover:s}}function iS(e,t,n,a,l,i,o,s,r,c,u,m=1){if(!t.showBadge||m<.25)return e.container.style.display="none",i;e.container.style.display="";let f=m<.5?(m-.25)/.25:1;e.container.style.opacity=f<1?String(f):"";let{w:d,h:v,pad:b}=a,E=t.formatValue(n);e.text.textContent=E,e.text.style.font=t.palette.labelFont,e.text.style.lineHeight=`${Qb}px`;let p=t.badgeTail?Ib:0;e.text.style.padding=`${Lh}px ${qc}px ${Lh}px ${p+qc}px`,c.font=t.palette.labelFont;let h=E.replace(/[0-9]/g,"8"),g=c.measureText(h).width;e.targetW=g,e.displayW===0&&(e.displayW=g),e.displayW=Oe(e.displayW,e.targetW,dw,u),Math.abs(e.displayW-e.targetW)<.3&&(e.displayW=e.targetW);let M=e.displayW+qc*2,w=Qb+Lh*2,T=p+M;e.svg.setAttribute("width",String(Math.ceil(T))),e.svg.setAttribute("height",String(w)),e.svg.setAttribute("viewBox",`0 0 ${T} ${w}`),e.path.setAttribute("d",t.badgeTail?sw(M,w,Ib,uw):rw(M,w));let A=b.top+a.chartH/2,$=Math.max(b.top,Math.min(v-b.bottom,a.toY(n))),C=m<1?A+($-A)*m:$;i===null||r?i=C:i=Oe(i,C,s?mw:fw,u);let D=d-b.right+8-qc-p,O=i-w/2;if(e.container.style.transform=`translate3d(${D}px, ${O}px, 0)`,t.badgeVariant==="minimal")e.path.setAttribute("fill",t.palette.badgeOuterBg),e.text.style.color=t.palette.tooltipText,e.container.style.filter=`drop-shadow(0 1px 4px ${t.palette.badgeOuterShadow})`;else{e.container.style.filter="",e.text.style.color="#fff";let z=o,U;if(!t.showMomentum)U=t.palette.line;else{let X=l==="up"?1:l==="down"?0:z.green;z.green=r?X:Oe(z.green,X,hw,u),z.green>.99&&(z.green=1),z.green<.01&&(z.green=0);let ee=z.green,ae=Math.round(Jo[0]+(Uh[0]-Jo[0])*ee),se=Math.round(Jo[1]+(Uh[1]-Jo[1])*ee),k=Math.round(Jo[2]+(Uh[2]-Jo[2])*ee);U=`rgb(${ae},${se},${k})`}e.path.setAttribute("fill",U)}return i}function kh(e){let t=1/0,n=-1/0;for(let o of e)o.low<t&&(t=o.low),o.high>n&&(n=o.high);if(!isFinite(t)||!isFinite(n))return{min:99,max:101};let a=n-t,l=a*.12,i=a*.1||.4;if(a<i){let o=(t+n)/2;return{min:o-i/2,max:o+i/2}}return{min:t-l,max:n+l}}function oS(e,t,n,a){let l=a.leftEdge+(t-a.pad.left)/a.chartW*(a.rightEdge-a.leftEdge),i=0,o=e.length-1;for(;i<=o;){let s=i+o>>1,r=e[s];if(l<r.time)o=s-1;else if(l>=r.time+n)i=s+1;else return r}return null}function Ow(e,t,n,a,l,i,o,s,r){if(!t)return{minVal:e.min,maxVal:e.max,valRange:e.max-e.min||.001,displayMin:e.min,displayMax:e.max,rangeInited:!0};if(l)n=o.rangeFromMin+(o.rangeToMin-o.rangeFromMin)*i,a=o.rangeFromMax+(o.rangeToMax-o.rangeFromMax)*i;else{let c=a-n||1,u=Math.abs(n-e.min),m=Math.abs(a-e.max),f=Math.min((u+m)/c,1),d=$w+(1-f)*Rw;n=Oe(n,e.min,d,r),a=Oe(a,e.max,d,r);let v=.5*c/s||.001;Math.abs(n-e.min)<v&&(n=e.min),Math.abs(a-e.max)<v&&(a=e.max)}return{minVal:n,maxVal:a,valRange:a-n||.001,displayMin:n,displayMax:a,rangeInited:!0}}function Cw(e,t,n,a,l,i,o,s,r,c,u){if(t.to!==e){t.from=n,t.to=e,t.startMs=i,t.rangeFromMin=a,t.rangeFromMax=l;let d=o+e*u,v=d-e,b=[];for(let E of s)E.time+c>=v&&E.time<=d&&b.push(E);if(r&&r.time+c>=v&&r.time<=d&&b.push(r),b.length>0){let E=kh(b);t.rangeToMin=E.min,t.rangeToMax=E.max}}let m=0,f;if(t.startMs===0)f=e;else{let d=i-t.startMs,v=Math.min(d/hS,1),b=(1-Math.cos(v*Math.PI))/2;m=b;let E=Math.log(t.from),p=Math.log(t.to);f=Math.exp(E+(p-E)*b),v>=1&&(f=e,t.startMs=0,m=0)}return{windowSecs:f,windowTransProgress:m}}function Dw(e,t,n){let a=(0,H.useRef)(n);a.current=n;let l=(0,H.useRef)(n.value),i=(0,H.useRef)(new Map),o=(0,H.useRef)(new Map),s=(0,H.useRef)(0),r=(0,H.useRef)(0),c=(0,H.useRef)(0),u=(0,H.useRef)(0),m=(0,H.useRef)(!1),f=(0,H.useRef)(n.windowSecs),d=(0,H.useRef)({from:n.windowSecs,to:n.windowSecs,startMs:0,rangeFromMin:0,rangeFromMax:0,rangeToMin:0,rangeToMax:0}),v=(0,H.useRef)({up:0,down:0}),b=(0,H.useRef)({interval:0,labels:new Map}),E=(0,H.useRef)({labels:new Map}),p=(0,H.useRef)(U3()),h=(0,H.useRef)(G3()),g=(0,H.useRef)(aw()),y=(0,H.useRef)({green:1}),M=(0,H.useRef)(null),w=(0,H.useRef)(!1),T=(0,H.useRef)({w:0,h:0}),A=(0,H.useRef)(null),$=(0,H.useRef)(0),C=(0,H.useRef)(0),D=(0,H.useRef)(null),O=(0,H.useRef)(null),z=(0,H.useRef)(0),U=(0,H.useRef)(null),X=(0,H.useRef)([]),ee=(0,H.useRef)(0),ae=(0,H.useRef)(0),se=(0,H.useRef)(0),k=(0,H.useRef)([]),B=(0,H.useRef)([]),x=(0,H.useRef)(0),L=(0,H.useRef)(null),j=(0,H.useRef)(null),Z=(0,H.useRef)(n.loading?1:0),ve=(0,H.useRef)(null),Pe=(0,H.useRef)(1),Ge=(0,H.useRef)(.5),De=(0,H.useRef)(0),ln=(0,H.useRef)(!1),ft=(0,H.useRef)(0),Qt=(0,H.useRef)(!1),Ve=(0,H.useRef)(0),Ua=(0,H.useRef)({startMs:0,from:0,to:0}),ls=(0,H.useRef)(0),is=(0,H.useRef)({startMs:0,from:0,to:0}),ma=(0,H.useRef)(0),Xi=(0,H.useRef)(!1),Hr=(0,H.useRef)({fromWidth:n.candleWidth??1,toWidth:n.candleWidth??1,startMs:0,rangeFromMin:0,rangeFromMax:0,rangeToMin:0,rangeToMax:0,oldCandles:[],oldWidth:n.candleWidth??1}),Ba=(0,H.useRef)({candles:[],width:n.candleWidth??1}),Ha=(0,H.useRef)(null),os=(0,H.useRef)(null),Ki=(0,H.useRef)(null),ss=(0,H.useRef)(null),ii=(0,H.useRef)([]),qr=(0,H.useRef)(null),An=(0,H.useRef)([]),ha=(0,H.useRef)(void 0);(0,H.useEffect)(()=>{let J=t.current;if(!J)return;let re=document.createElement("div");re.style.cssText="position:absolute;top:0;left:0;pointer-events:none;will-change:transform;display:none;z-index:1;";let ye=document.createElementNS(Zb,"svg");ye.style.cssText="position:absolute;top:0;left:0;";let R=document.createElementNS(Zb,"path");ye.appendChild(R);let Zt=document.createElement("span");return Zt.style.cssText="position:relative;display:block;color:#fff;white-space:nowrap;",re.appendChild(ye),re.appendChild(Zt),J.appendChild(re),D.current={container:re,svg:ye,path:R,text:Zt,displayW:0,targetW:0},()=>{J.removeChild(re),D.current=null}},[t]),(0,H.useEffect)(()=>{let J=t.current;if(!J)return;let re=new ResizeObserver(R=>{let Zt=R[0];if(!Zt)return;let{width:be,height:et}=Zt.contentRect;T.current={w:be,h:et}});re.observe(J);let ye=J.getBoundingClientRect();return T.current={w:ye.width,h:ye.height},()=>re.disconnect()},[t]),(0,H.useEffect)(()=>{let J=t.current;if(!J)return;let re=et=>{if(!a.current.scrub)return;let pa=J.getBoundingClientRect();O.current=et.clientX-pa.left},ye=()=>{O.current=null,a.current.onHover?.(null)},R=et=>{if(!a.current.scrub||et.touches.length!==1)return;let pa=J.getBoundingClientRect();O.current=et.touches[0].clientX-pa.left},Zt=et=>{if(!a.current.scrub||et.touches.length!==1)return;et.preventDefault();let pa=J.getBoundingClientRect();O.current=et.touches[0].clientX-pa.left},be=()=>{O.current=null,a.current.onHover?.(null)};return J.addEventListener("mousemove",re),J.addEventListener("mouseleave",ye),J.addEventListener("touchstart",R,{passive:!0}),J.addEventListener("touchmove",Zt,{passive:!1}),J.addEventListener("touchend",be),J.addEventListener("touchcancel",be),()=>{J.removeEventListener("mousemove",re),J.removeEventListener("mouseleave",ye),J.removeEventListener("touchstart",R),J.removeEventListener("touchmove",Zt),J.removeEventListener("touchend",be),J.removeEventListener("touchcancel",be)}},[t]),(0,H.useEffect)(()=>{let J=window.matchMedia("(prefers-reduced-motion: reduce)");w.current=J.matches;let re=ye=>{w.current=ye.matches};return J.addEventListener("change",re),()=>J.removeEventListener("change",re)},[]),(0,H.useEffect)(()=>{let J=()=>{!document.hidden&&!$.current&&($.current=requestAnimationFrame(Un))};return document.addEventListener("visibilitychange",J),()=>document.removeEventListener("visibilitychange",J)},[]);let Un=(0,H.useCallback)(()=>{if(document.hidden){$.current=0;return}let J=e.current,{w:re,h:ye}=T.current;if(!J||re===0||ye===0){$.current=requestAnimationFrame(Un);return}let R=a.current,Zt=S3(),be=performance.now(),et=C.current?Math.min(be-C.current,cw):16.67;C.current=be;let pa=Math.round(re*Zt),oi=Math.round(ye*Zt);(J.width!==pa||J.height!==oi)&&(J.width=pa,J.height=oi,J.style.width=`${re}px`,J.style.height=`${ye}px`);let he=A.current;if((!he||he.canvas!==J)&&(he=J.getContext("2d"),A.current=he),!he){$.current=requestAnimationFrame(Un);return}A3(he,Zt,re,ye);let on=w.current,Ct=R.mode==="candle";if(Ct)R.paused&&Ha.current===null&&(R.candles?.length??0)>0&&(Ha.current=R.candles.slice(),os.current=R.liveCandle??null,Ki.current=R.lineData?.slice()??null,ss.current=R.lineValue??null),R.paused||(Ha.current=null,os.current=null,Ki.current=null,ss.current=null);else if(R.isMultiSeries&&R.multiSeries){if(R.paused&&j.current===null){let F=new Map;for(let Ze of R.multiSeries)Ze.data.length>=2&&F.set(Ze.id,{data:Ze.data.slice(),value:Ze.value});F.size>0&&(j.current=F)}R.paused||(j.current=null)}else R.paused&&L.current===null&&R.data.length>=2&&(L.current=R.data.slice()),R.paused||(L.current=null);let rs=Ct?[]:L.current??R.data,de=Ct?Ha.current??R.candles??[]:[],kr=R.isMultiSeries&&R.multiSeries?R.multiSeries.some(F=>F.data.length>=2):!1,rt=Ct?de.length>=2:kr||rs.length>=2,P=R.padding,G=ye-P.top-P.bottom,At=R.paused?1:0;ae.current=on?At:Oe(ae.current,At,vw,et),ae.current<.005&&(ae.current=0),ae.current>.995&&(ae.current=1);let we=ae.current,ze=et*(1-we),Sp=et/1e3;if(se.current+=Sp*we,!R.paused&&se.current>.001){let F=se.current>10?bw:yw;se.current=Oe(se.current,0,F,et),se.current<.01&&(se.current=0)}let Ap=R.loading?1:0;Z.current=on?Ap:Oe(Z.current,Ap,Sw,et),Z.current<.01&&(Z.current=0),Z.current>.99&&(Z.current=1);let Bn=Z.current,si=!R.loading&&rt?1:0;ee.current=on?si:Oe(ee.current,si,si===1?gw:pw,et),Math.abs(ee.current-si)<.005&&(ee.current=si);let sn=ee.current;sn<.01&&(m.current=!1);let Hn,pl=!1;if(Ct?Hn=!rt&&sn>.005&&ii.current.length>0:(pl=!rt&&sn>.005&&B.current.length>0,kr&&R.multiSeries&&(B.current=R.multiSeries.map(F=>({id:F.id,data:F.data.slice(),value:F.value,palette:F.palette,label:F.label}))),rt&&!R.isMultiSeries&&(B.current=[]),Hn=!pl&&!rt&&sn>.005&&k.current.length>=2,rt&&!R.isMultiSeries&&(k.current=rs)),Ct){let F=Ua.current,Ze=R.lineMode?1:0;if(F.to!==Ze&&(F.from=Ve.current,F.to=Ze,F.startMs=be),F.startMs>0){let le=be-F.startMs,Je=Math.min(le/Tw,1);Ve.current=F.from+(F.to-F.from)*((1-Math.cos(Je*Math.PI))/2),Je>=1&&(Ve.current=F.to,F.startMs=0)}else Ve.current=F.to}if(!rt&&!Hn&&!pl){let F=Ct||R.isMultiSeries||B.current.length>0?R.palette.gridLabel:void 0;Bn>.01&&Kb(he,re,ye,P,R.palette,be,Bn,F),1-Bn>.01&&gr(he,re,ye,P,R.palette,1-Bn,be,!1,R.emptyText),he.save(),he.globalCompositeOperation="destination-out";let Ze=he.createLinearGradient(P.left,0,P.left+ol,0);Ze.addColorStop(0,"rgba(0, 0, 0, 1)"),Ze.addColorStop(1,"rgba(0, 0, 0, 0)"),he.fillStyle=Ze,he.fillRect(0,0,P.left+ol,ye),he.restore(),D.current&&(D.current.container.style.display="none"),$.current=requestAnimationFrame(Un);return}if(Ct){let F=_w;rt&&(x.current=Date.now()/1e3-se.current);let Ze=rt||sn<.005?Date.now()/1e3-se.current:x.current,le=Ha.current?os.current??void 0:R.liveCandle,Je=Ki.current??R.lineData,jt=ss.current??R.lineValue;rt&&Je&&Je.length>0&&(An.current=Je,ha.current=jt),Hn&&An.current.length>0&&(Je=An.current,jt=ha.current);let rn=R.candleWidth??1,ie=Hr.current,Et=-1,Tt;if(ie.startMs>0){let Y=be-ie.startMs,K=Math.min(Y/Ew,1);Et=(1-Math.cos(K*Math.PI))/2,Tt=Math.exp(Math.log(ie.fromWidth)+(Math.log(ie.toWidth)-Math.log(ie.fromWidth))*Et),K>=1&&(Tt=ie.toWidth,ie.startMs=0,Et=-1)}else Tt=ie.toWidth;if(rn!==ie.toWidth){ie.oldCandles=Ba.current.candles,ie.oldWidth=Ba.current.width,ie.fromWidth=Tt,ie.toWidth=rn,ie.startMs=be,Et=0,ie.rangeFromMin=s.current,ie.rangeFromMax=r.current;let Y=f.current,K=Ze+Y*F,zt=K-Y,pe=[];for(let Vt of de)Vt.time+rn>=zt&&Vt.time<=K&&pe.push(Vt);if(le&&pe.push(le),pe.length>0){let Vt=kh(pe);ie.rangeToMin=Vt.min,ie.rangeToMax=Vt.max}else ie.rangeToMin=s.current,ie.rangeToMax=r.current}Ba.current={candles:R.candles??[],width:rn};let Mt=Ve.current,wt=is.current,gl=Je&&Je.length>0,En=R.lineMode&&Mt>=.3&&gl?1:0;wt.to!==En&&(wt.from=ls.current,wt.to=En,wt.startMs=be);let Jt;if(wt.startMs>0){let Y=be-wt.startMs,K=Math.min(Y/ww,1);Jt=wt.from+(wt.to-wt.from)*(1-(1-K)*(1-K)),K>=1&&(Jt=wt.to,wt.startMs=0)}else Jt=wt.to;ls.current=Jt;let ri=d.current,tt=Cw(R.windowSecs,ri,f.current,s.current,r.current,be,Ze,de,le,rn,F);f.current=tt.windowSecs;let Pn=tt.windowSecs,Ii=tt.windowTransProgress,un=ri.startMs>0,Yt=Ze+Pn*F,Dt=Yt-Pn,cn;if(le){let Y=ve.current;if(!Y||Y.time!==le.time)ve.current={time:le.time,open:le.open,high:le.open,low:le.open,close:le.open},Pe.current=0;else{let pe=ve.current;pe.open=Oe(pe.open,le.open,kc,ze),pe.high=Oe(pe.high,le.high,kc,ze),pe.low=Oe(pe.low,le.low,kc,ze),pe.close=Oe(pe.close,le.close,kc,ze)}Pe.current=Oe(Pe.current,1,.2,ze),Pe.current>.99&&(Pe.current=1);let K=ve.current,zt=K.close>=K.open?1:0;Ge.current=Oe(Ge.current,zt,.12,ze),Ge.current>.99&&(Ge.current=1),Ge.current<.01&&(Ge.current=0),cn=K}else ve.current=null,Pe.current=1,Ge.current=.5;if(le)if(!Qt.current)ft.current=le.close,Qt.current=!0;else{ft.current=Oe(ft.current,le.close,Mw,ze);let Y=Math.abs(ft.current-le.close),K=r.current-s.current||1;Y<K*5e-4&&(ft.current=le.close)}else Hn||(Qt.current=!1);if(le)if(!ln.current)De.current=le.close,ln.current=!0;else{let Y=Math.abs(le.close-De.current),K=r.current-s.current||1,zt=Math.min(Y/K,1),pe=Pb+(1-zt)*eS;De.current=Oe(De.current,le.close,pe,ze),Y<K*tS&&(De.current=le.close)}else Hn||(ln.current=!1);if(jt!==void 0&&gl)if(!Xi.current)ma.current=jt,Xi.current=!0;else{let Y=Math.abs(jt-ma.current),K=r.current-s.current||1,zt=Math.min(Y/K,1),pe=Pb+(1-zt)*eS;ma.current=Oe(ma.current,jt,pe,ze),Y<K*tS&&(ma.current=jt)}else Hn||(Xi.current=!1);let ga=[];for(let Y of de)Y.time+rn>=Dt&&Y.time<=Yt&&ga.push(Y);cn&&cn.time+Tt>=Dt&&cn.time<=Yt&&ga.push(cn);let dn=[];if(Et>=0&&ie.oldCandles.length>0)for(let Y of ie.oldCandles)Y.time+ie.oldWidth>=Dt&&Y.time<=Yt&&dn.push(Y);rt&&(ii.current=ga,qr.current=cn??null);let qn=Hn?ii.current:ga,Qi=Hn?qr.current??void 0:cn,vl=re-P.left-P.right,ui=qn.length>0?kh(qn):{min:s.current,max:r.current},ut=Ow(ui,m.current,s.current,r.current,un,Ii,ri,G,ze);Et>=0&&(ut.displayMin=ie.rangeFromMin+(ie.rangeToMin-ie.rangeFromMin)*Et,ut.displayMax=ie.rangeFromMax+(ie.rangeToMax-ie.rangeFromMax)*Et,ut.minVal=ut.displayMin,ut.maxVal=ut.displayMax,ut.valRange=ut.displayMax-ut.displayMin||.001),m.current=ut.rangeInited,s.current=ut.displayMin,r.current=ut.displayMax;let{minVal:yl,maxVal:ci,valRange:qa}=ut,nt={w:re,h:ye,pad:P,chartW:vl,chartH:G,leftEdge:Dt,rightEdge:Yt,minVal:yl,maxVal:ci,valRange:qa,toX:Y=>P.left+(Y-Dt)/(Yt-Dt)*vl,toY:Y=>P.top+(1-(Y-yl)/qa)*G},Gt=O.current,Xe=null,V=!1;Gt!==null&&Gt>=P.left&&Gt<=re-P.right&&(Xe=oS(qn,Gt,Tt,nt),Xe&&(V=!0));let me=V?1:0;z.current=Oe(z.current,me,.12,et),z.current<.01&&(z.current=0),z.current>.99&&(z.current=1);let at=z.current,gt=Gt,Ft=0,bl=Xe;!V&&at>0&&U.current?(gt=U.current.x,Ft=U.current.time,bl=oS(qn,U.current.x,Tt,nt)):V&&Gt!==null&&(Ft=nt.leftEdge+(Gt-P.left)/vl*(nt.rightEdge-nt.leftEdge),U.current={x:Gt,value:Xe?.close??0,time:Ft});let Ke=qn,Sl=dn,lt=Qi;if(Mt>.01&<&&ln.current){let Y=lt.close+(De.current-lt.close)*Mt;lt={...lt,close:Y};let K=Ke.length-1;K>=0&&Ke[K].time===lt.time&&(Ke=Ke.slice(),Ke[K]={...Ke[K],close:Y})}if(Mt>.01&&Mt<.99){let Y=K=>{let zt=1-Mt;return{time:K.time,open:K.close+(K.open-K.close)*zt,high:K.close+(K.high-K.close)*zt,low:K.close+(K.low-K.close)*zt,close:K.close}};Ke=Ke.map(Y),Sl.length>0&&(Sl=Sl.map(Y)),lt&&(lt=Y(lt))}let va,jr;if(Je&&Je.length>0&&(Jt>.01||Mt>.05)){let Y=[];for(let pe of Ke)Y.push({t:pe.time+Tt/2,v:pe.close});lt&&Y.push({t:Ze,v:lt.close}),va=[];let K=0;for(let pe of Je){if(pe.time<Dt||pe.time>Yt)continue;for(;K<Y.length-2&&Y[K+1].t<pe.time;)K++;let Vt;if(Y.length===0)Vt=pe.value;else if(Y.length===1||pe.time<=Y[0].t)Vt=Y[0].v;else if(K>=Y.length-1)Vt=Y[Y.length-1].v;else{let Yr=Y[K],Ep=Y[K+1],Tp=Ep.t-Yr.t,v2=Tp>0?Math.max(0,Math.min(1,(pe.time-Yr.t)/Tp)):0;Vt=Yr.v+(Ep.v-Yr.v)*v2}let us=Vt+(pe.value-Vt)*Jt;va.push({time:pe.time,value:us})}let zt=Xi.current?ma.current:jt??Je[Je.length-1].value;jr=De.current+(zt-De.current)*Jt}else va=Ke.map(Y=>({time:Y.time+Tt/2,value:Y.close})),jr=ln.current?De.current:lt?.close??Ke[Ke.length-1]?.close??0;if(sn<1&&va.length>=2){let Y=va[0].time,K=Yt-Dt;if(Y-Dt>K*.05){let zt=va[0].value,pe=K/32,Vt=[];for(let us=Dt;us<Y-pe*.5;us+=pe)Vt.push({time:us,value:zt});va=[...Vt,...va]}}if(ow(he,nt,R.palette,{candles:Ke,displayCandleWidth:Tt,oldCandles:Sl,oldWidth:ie.oldWidth,morphT:Et,liveCandle:lt,closePriceCandle:Qt.current&&le?{...le,close:ft.current}:le,liveTime:Qi?.time??-1,liveBirthAlpha:Pe.current,liveBullBlend:Ge.current,lineModeProg:Mt,chartReveal:sn,now_ms:be,now:Ze,pauseProgress:we,showGrid:R.showGrid,scrubAmount:at,hoverX:gt,hoverValue:bl?.close??null,hoverTime:Ft,hoveredCandle:bl,formatValue:R.formatValue,formatTime:R.formatTime,gridState:b.current,timeAxisState:E.current,dt:ze,targetWindowSecs:R.windowSecs,tooltipY:R.tooltipY,tooltipOutline:R.tooltipOutline,lineVisible:va,lineSmoothValue:jr,emptyText:R.emptyText,loadingAlpha:Bn,showEmptyOverlay:!(R.loading??!1)&&Bn<.01}),D.current)if(Mt>.5&&R.showBadge){let Y=Hb(va);M.current=iS(D.current,R,jr,nt,Y,M.current,y.current,un,on,he,ze,sn);let K=(Mt-.5)*2;if(D.current.container.style.display!=="none"){let zt=D.current.container.style.opacity?parseFloat(D.current.container.style.opacity):1;D.current.container.style.opacity=String(zt*K*(1-we))}}else D.current.container.style.display="none"}else if(R.isMultiSeries&&R.multiSeries&&R.multiSeries.length>0||pl){let F=pl?B.current:R.multiSeries,Ze=0;if(F.some(V=>V.label)){he.font='600 10px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif';let V=0;for(let me of F)if(me.label){let at=he.measureText(me.label).width;at>V&&(V=at)}Ze=Math.max(0,V-2)*sn}let le=re-P.left-P.right-Ze,Je=R.showBadge?Jb:Fb;if(!pl){let V=new Set(F.map(me=>me.id));for(let me of i.current.keys())V.has(me)||i.current.delete(me)}let jt=F[0],rn=d.current;rt&&(x.current=Date.now()/1e3-se.current);let ie=pl?x.current:Date.now()/1e3-se.current,Et=new Map;for(let V of F){let me=i.current.get(V.id);if(me===void 0&&(me=V.value),!pl){let at=nS(V.value,me,s.current,r.current,R.lerpSpeed,on);me=Oe(me,V.value,at,ze);let gt=r.current-s.current||1;Math.abs(me-V.value)<gt*Wb&&(me=V.value),i.current.set(V.id,me)}Et.set(V.id,me)}let Tt=R.hiddenSeriesIds,Mt=o.current;for(let V of F){let me=Mt.get(V.id)??1,at=Tt?.has(V.id)?0:1;me=on?at:Oe(me,at,Aw,ze),me<.01&&(me=0),me>.99&&(me=1),Mt.set(V.id,me)}let wt=j.current?.get(jt.id)?.data??jt.data,gl=aS(R,rn,f.current,s.current,r.current,on,be,ie,wt,Et.get(jt.id)??jt.value,Je);if(rn.startMs>0&&F.length>1){let V=ie+R.windowSecs*Je,me=V-R.windowSecs,at=1/0,gt=-1/0;for(let Ft of F){let bl=j.current?.get(Ft.id)?.data??Ft.data,Ke=Et.get(Ft.id)??Ft.value,Sl=[];for(let lt of bl)lt.time>=me-2&<.time<=V&&Sl.push(lt);if(Sl.length>0){let lt=jc(Sl,Ke,R.referenceLine?.value,R.exaggerate);lt.min<at&&(at=lt.min),lt.max>gt&&(gt=lt.max)}}isFinite(at)&&isFinite(gt)&&(rn.rangeToMin=at,rn.rangeToMax=gt)}f.current=gl.windowSecs;let En=gl.windowSecs,Jt=gl.windowTransProgress,ri=rn.startMs>0,tt=ie+En*Je,Pn=tt-En,Ii=tt-(tt-ie)*we,un=[],Yt=1/0,Dt=-1/0;for(let V of F){let at=j.current?.get(V.id)?.data??V.data,gt=[];for(let Ke of at)Ke.time>=Pn-2&&Ke.time<=Ii&>.push(Ke);let Ft=Et.get(V.id)??V.value,bl=Mt.get(V.id)??1;if(gt.length>=2){if(bl>.01){let Ke=jc(gt,Ft,R.referenceLine?.value,R.exaggerate);Ke.min<Yt&&(Yt=Ke.min),Ke.max>Dt&&(Dt=Ke.max)}un.push({visible:gt,smoothValue:Ft,palette:V.palette,label:V.label,alpha:bl})}}if(un.length===0){Bn>.01&&Kb(he,re,ye,P,R.palette,be,Bn,R.palette.gridLabel),1-Bn>.01&&gr(he,re,ye,P,R.palette,1-Bn,be,!1,R.emptyText),he.save(),he.globalCompositeOperation="destination-out";let V=he.createLinearGradient(P.left,0,P.left+ol,0);V.addColorStop(0,"rgba(0, 0, 0, 1)"),V.addColorStop(1,"rgba(0, 0, 0, 0)"),he.fillStyle=V,he.fillRect(0,0,P.left+ol,ye),he.restore(),D.current&&(D.current.container.style.display="none"),$.current=requestAnimationFrame(Un);return}let cn={min:isFinite(Yt)?Yt:0,max:isFinite(Dt)?Dt:1},ga=R.lerpSpeed+pS*.5,dn=lS(cn,m.current,c.current,u.current,s.current,r.current,ri,Jt,rn,ga,G,ze);m.current=dn.rangeInited,c.current=dn.targetMin,u.current=dn.targetMax,s.current=dn.displayMin,r.current=dn.displayMax;let{minVal:qn,maxVal:Qi,valRange:vl}=dn,ui={w:re,h:ye,pad:P,chartW:le,chartH:G,leftEdge:Pn,rightEdge:tt,minVal:qn,maxVal:Qi,valRange:vl,toX:V=>P.left+(V-Pn)/(tt-Pn)*le,toY:V=>P.top+(1-(V-qn)/vl)*G},ut=O.current,yl=null,ci=null,qa=!1,nt=[];if(ut!==null&&ut>=P.left&&ut<=re-P.right){let V=ui.toX(ie),me=Math.min(ut,V),at=Pn+(me-P.left)/le*(tt-Pn);yl=me,ci=at,qa=!0;for(let gt of un){if((gt.alpha??1)<.5)continue;let Ft=sS(gt.visible,at);Ft!==null&&nt.push({color:gt.palette.line,label:gt.label??"",value:Ft})}U.current={x:me,value:nt[0]?.value??0,time:at},X.current=nt,R.onHover?.({time:at,value:nt[0]?.value??0,x:me,y:ui.toY(nt[0]?.value??0)})}let Gt=qa?1:0;on?z.current=Gt:(z.current+=(Gt-z.current)*mS,z.current<.01&&(z.current=0),z.current>.99&&(z.current=1)),!qa&&z.current>0&&U.current&&(yl=U.current.x,ci=U.current.time,nt=X.current),iw(he,ui,{series:un,now:ie,showGrid:R.showGrid,showPulse:R.showPulse,referenceLine:R.referenceLine,hoverX:yl,hoverTime:ci,hoverEntries:nt,scrubAmount:z.current,windowSecs:En,formatValue:R.formatValue,formatTime:R.formatTime,gridState:b.current,timeAxisState:E.current,dt:et,targetWindowSecs:R.windowSecs,tooltipY:R.tooltipY,tooltipOutline:R.tooltipOutline,chartReveal:sn,pauseProgress:we,now_ms:be,primaryPalette:R.palette});let Xe=1-sn;if(Xe>.01&&si===0&&!R.loading){let V=(1-Bn)*Xe;V>.01&&gr(he,re,ye,P,R.palette,V,be,!0,R.emptyText)}D.current&&(D.current.container.style.display="none")}else{let F=Hn?k.current:rs,Ze=nS(R.value,l.current,s.current,r.current,R.lerpSpeed,on);if(!Hn&&(l.current=Oe(l.current,R.value,Ze,ze),we<.5)){let Xe=r.current-s.current||1;Math.abs(l.current-R.value)<Xe*Wb&&(l.current=R.value)}let le=l.current,Je=re-P.left-P.right,jt=R.showBadge?Jb:Fb,ie=R.showMomentum&&R.showBadge?Math.max(jt,37/Math.max(Je,1)):jt,Et=d.current;rt&&(x.current=Date.now()/1e3-se.current);let Tt=Hn?x.current:Date.now()/1e3-se.current,Mt=aS(R,Et,f.current,s.current,r.current,on,be,Tt,F,le,ie);f.current=Mt.windowSecs;let wt=Mt.windowSecs,gl=Mt.windowTransProgress,En=Tt+wt*ie,Jt=En-wt,ri=En-(En-Tt)*we,tt=[];for(let Xe of F)Xe.time>=Jt-2&&Xe.time<=ri&&tt.push(Xe);if(tt.length<2){D.current&&(D.current.container.style.display="none"),$.current=requestAnimationFrame(Un);return}let Pn=jc(tt,le,R.referenceLine?.value,R.exaggerate),Ii=Et.startMs>0,un=lS(Pn,m.current,c.current,u.current,s.current,r.current,Ii,gl,Et,Ze,G,ze);m.current=un.rangeInited,c.current=un.targetMin,u.current=un.targetMax,s.current=un.displayMin,r.current=un.displayMax;let{minVal:Yt,maxVal:Dt,valRange:cn}=un,ga={w:re,h:ye,pad:P,chartW:Je,chartH:G,leftEdge:Jt,rightEdge:En,minVal:Yt,maxVal:Dt,valRange:cn,toX:Xe=>P.left+(Xe-Jt)/(En-Jt)*Je,toY:Xe=>P.top+(1-(Xe-Yt)/cn)*G},dn=R.momentumOverride??Hb(tt),qn=Nw(O.current,P,re,ga,Tt,tt,z.current,U.current,R,on,Jt,En,Je,et);z.current=qn.scrubAmount,U.current=qn.lastHover;let{hoverX:Qi,hoverValue:vl,hoverTime:ui}=qn,ut=Math.min(5,tt.length-1),yl=ut>0?Math.abs(tt[tt.length-1].value-tt[tt.length-1-ut].value):0,ci=cn>0?Math.min(yl/cn,1):0;lw(he,ga,R.palette,{visible:tt,smoothValue:le,now:Tt,momentum:dn,arrowState:v.current,showGrid:R.showGrid,showMomentum:R.showMomentum,showPulse:R.showPulse,showFill:R.showFill,referenceLine:R.referenceLine,hoverX:Qi,hoverValue:vl,hoverTime:ui,scrubAmount:z.current,windowSecs:wt,formatValue:R.formatValue,formatTime:R.formatTime,gridState:b.current,timeAxisState:E.current,dt:et,targetWindowSecs:R.windowSecs,tooltipY:R.tooltipY,tooltipOutline:R.tooltipOutline,orderbookData:R.orderbookData,orderbookState:R.orderbookData?p.current:void 0,particleState:R.degenOptions?h.current:void 0,particleOptions:R.degenOptions,swingMagnitude:ci,shakeState:R.degenOptions?g.current:void 0,chartReveal:sn,pauseProgress:we,now_ms:be});let qa=1-sn;if(qa>.01&&si===0&&!R.loading){let Xe=(1-Bn)*qa;Xe>.01&&gr(he,re,ye,P,R.palette,Xe,be,!0,R.emptyText)}let nt=D.current;if(nt&&(M.current=iS(nt,R,le,ga,dn,M.current,y.current,Ii,on,he,ze,sn),we>.01&&nt.container.style.display!=="none")){let Xe=nt.container.style.opacity?parseFloat(nt.container.style.opacity):1;nt.container.style.opacity=String(Xe*(1-we))}let Gt=R.valueDisplayRef?.current;if(Gt){let Xe=R.valueMomentumColor?Math.abs(le):le;if(Gt.textContent=R.formatValue(Xe),R.valueMomentumColor){let V=dn==="up"?"#22c55e":dn==="down"?"#ef4444":"";V?Gt.style.color=V:Gt.style.removeProperty("color")}}}$.current=requestAnimationFrame(Un)},[e]);(0,H.useEffect)(()=>($.current=requestAnimationFrame(Un),()=>cancelAnimationFrame($.current)),[Un])}var zw=e=>e.toFixed(2),xw=e=>{let t=new Date(e*1e3),n=t.getHours().toString().padStart(2,"0"),a=t.getMinutes().toString().padStart(2,"0"),l=t.getSeconds().toString().padStart(2,"0");return`${n}:${a}:${l}`};function gS({data:e,value:t,series:n,theme:a="dark",color:l="#3b82f6",window:i=30,grid:o=!0,badge:s=!0,momentum:r=!0,fill:c=!0,scrub:u=!0,loading:m=!1,paused:f=!1,emptyText:d,exaggerate:v=!1,degen:b,badgeTail:E=!0,badgeVariant:p="default",showValue:h=!1,valueMomentumColor:g=!1,windows:y,onWindowChange:M,windowStyle:w,tooltipY:T=14,tooltipOutline:A=!0,orderbook:$,referenceLine:C,formatValue:D=zw,formatTime:O=xw,lerpSpeed:z=.08,padding:U,onHover:X,cursor:ee="crosshair",pulse:ae=!0,mode:se="line",candles:k,candleWidth:B,liveCandle:x,lineMode:L,lineData:j,lineValue:Z,onModeChange:ve,onSeriesToggle:Pe,seriesToggleCompact:Ge=!1,lineWidth:De,className:ln,style:ft}){let Qt=(0,We.useRef)(null),Ve=(0,We.useRef)(null),Ua=(0,We.useRef)(null),ls=(0,We.useRef)(null),is=(0,We.useRef)(new Map),[ma,Xi]=(0,We.useState)(null),Hr=(0,We.useRef)(null),Ba=(0,We.useRef)(new Map),[Ha,os]=(0,We.useState)(null),[Ki,ss]=(0,We.useState)(new Set),ii=(0,We.useRef)(n);n&&n.length>0&&(ii.current=n);let qr=(0,We.useMemo)(()=>{let G=Hh(l,a);return De!=null&&(G.lineWidth=De),G},[l,a,De]),An=a==="dark",ha=n!=null&&n.length>0,Un=(ii.current?.length??0)>1,J=(0,We.useMemo)(()=>!n||n.length===0?null:b3(n,a),[n,a]),re=(0,We.useMemo)(()=>{if(!(!n||!J))return n.map((G,At)=>({id:G.id,data:G.data,value:G.value,palette:J.get(G.id)??Hh(G.color||Fo[At%Fo.length],a),label:G.label}))},[n,J,a]),ye=r!==!1,R=typeof r=="string"?r:void 0,Zt=s?80:o?54:12,be={top:U?.top??12,right:U?.right??Zt,bottom:U?.bottom??28,left:U?.left??12},pa=(b!=null?b!==!1:!1)?typeof b=="object"?b:{}:void 0,[oi,he]=(0,We.useState)(y&&y.length>0?y[0].secs:i),on=y?oi:i;(0,We.useLayoutEffect)(()=>{if(!y||y.length===0)return;let G=is.current.get(oi),At=ls.current;if(G&&At){let we=At.getBoundingClientRect(),ze=G.getBoundingClientRect();Xi({left:ze.left-we.left,width:ze.width})}},[oi,y]);let Ct=L?"line":"candle";(0,We.useLayoutEffect)(()=>{if(!ve)return;let G=Ba.current.get(Ct),At=Hr.current;if(G&&At){let we=At.getBoundingClientRect(),ze=G.getBoundingClientRect();os({left:ze.left-we.left,width:ze.width})}},[Ct,ve]);let rs=(0,We.useCallback)(G=>{ss(At=>{let we=new Set(At);if(we.has(G))we.delete(G),Pe?.(G,!0);else{if((n?.length??0)-we.size<=1)return At;we.add(G),Pe?.(G,!1)}return we})},[n?.length,Pe]),de=w??"default";Dw(Qt,Ve,{data:e,value:t,palette:qr,windowSecs:on,lerpSpeed:z,showGrid:o,showBadge:ha?!1:s,showMomentum:ha?!1:ye,momentumOverride:R,showFill:ha?!1:c,referenceLine:C,formatValue:D,formatTime:O,padding:be,onHover:X,showPulse:ae,scrub:u,exaggerate:v,degenOptions:ha?void 0:pa,badgeTail:E,badgeVariant:p,tooltipY:T,tooltipOutline:A,valueMomentumColor:g,valueDisplayRef:h?Ua:void 0,orderbookData:$,loading:m,paused:f,emptyText:d,mode:se,candles:k,candleWidth:B,liveCandle:x,lineMode:L,lineData:j,lineValue:Z,multiSeries:re,isMultiSeries:ha,hiddenSeriesIds:Ki});let kr=u?ee:"default",rt=An?"rgba(255,255,255,0.7)":"rgba(0,0,0,0.55)",P=An?"rgba(255,255,255,0.25)":"rgba(0,0,0,0.22)";return(0,je.jsxs)(je.Fragment,{children:[h&&(0,je.jsx)("span",{ref:Ua,style:{display:"block",fontSize:20,fontWeight:500,fontFamily:'"SF Mono", Menlo, monospace',color:An?"rgba(255,255,255,0.85)":"#111",transition:"color 0.3s",letterSpacing:"-0.01em",marginBottom:8,paddingTop:4,paddingLeft:be.left}}),(y&&y.length>0||ve||Un)&&(0,je.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6,marginLeft:be.left},children:[y&&y.length>0&&(0,je.jsxs)("div",{ref:ls,style:{position:"relative",display:"inline-flex",gap:de==="text"?4:2,background:de==="text"?"transparent":An?"rgba(255,255,255,0.03)":"rgba(0,0,0,0.02)",borderRadius:de==="rounded"?999:6,padding:de==="text"?0:de==="rounded"?3:2},children:[de!=="text"&&ma&&(0,je.jsx)("div",{style:{position:"absolute",top:de==="rounded"?3:2,left:ma.left,width:ma.width,height:de==="rounded"?"calc(100% - 6px)":"calc(100% - 4px)",background:An?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.035)",borderRadius:de==="rounded"?999:4,transition:"left 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"none"}}),y.map(G=>{let At=G.secs===oi;return(0,je.jsx)("button",{ref:we=>{we?is.current.set(G.secs,we):is.current.delete(G.secs)},onClick:()=>{he(G.secs),M?.(G.secs)},style:{position:"relative",zIndex:1,fontSize:11,padding:de==="text"?"2px 6px":"3px 10px",borderRadius:de==="rounded"?999:4,border:"none",cursor:"pointer",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:At?600:400,background:"transparent",color:At?rt:P,transition:"color 0.2s, background 0.15s",lineHeight:"16px"},children:G.label},G.secs)})]}),ve&&(0,je.jsxs)("div",{ref:Hr,style:{position:"relative",display:"inline-flex",gap:de==="text"?4:2,background:de==="text"?"transparent":An?"rgba(255,255,255,0.03)":"rgba(0,0,0,0.02)",borderRadius:de==="rounded"?999:6,padding:de==="text"?0:de==="rounded"?3:2},children:[de!=="text"&&Ha&&(0,je.jsx)("div",{style:{position:"absolute",top:de==="rounded"?3:2,left:Ha.left,width:Ha.width,height:de==="rounded"?"calc(100% - 6px)":"calc(100% - 4px)",background:An?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.035)",borderRadius:de==="rounded"?999:4,transition:"left 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.25s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"none"}}),(0,je.jsx)("button",{ref:G=>{G?Ba.current.set("line",G):Ba.current.delete("line")},onClick:()=>ve("line"),style:{position:"relative",zIndex:1,padding:"5px 7px",borderRadius:de==="rounded"?999:4,border:"none",cursor:"pointer",background:"transparent",display:"flex",alignItems:"center"},children:(0,je.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,je.jsx)("path",{d:"M1 8.5C2.5 8.5 3 4 5.5 4S7.5 7 8.5 7C9.5 7 10 3.5 11 3.5",stroke:Ct==="line"?rt:P,strokeWidth:Ct==="line"?1.5:1.2,strokeLinecap:"round",fill:"none"})})}),(0,je.jsx)("button",{ref:G=>{G?Ba.current.set("candle",G):Ba.current.delete("candle")},onClick:()=>ve("candle"),style:{position:"relative",zIndex:1,padding:"5px 7px",borderRadius:de==="rounded"?999:4,border:"none",cursor:"pointer",background:"transparent",display:"flex",alignItems:"center"},children:(0,je.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[(0,je.jsx)("line",{x1:"3.5",y1:"1",x2:"3.5",y2:"11",stroke:Ct==="candle"?rt:P,strokeWidth:"1"}),(0,je.jsx)("rect",{x:"2",y:"3",width:"3",height:"5",rx:"0.5",fill:Ct==="candle"?rt:P}),(0,je.jsx)("line",{x1:"8.5",y1:"2",x2:"8.5",y2:"10",stroke:Ct==="candle"?rt:P,strokeWidth:"1"}),(0,je.jsx)("rect",{x:"7",y:"4",width:"3",height:"4",rx:"0.5",fill:Ct==="candle"?rt:P})]})})]}),Un&&(0,je.jsx)("div",{style:{display:"inline-flex",gap:de==="text"?4:2,background:de==="text"?"transparent":An?"rgba(255,255,255,0.03)":"rgba(0,0,0,0.02)",borderRadius:de==="rounded"?999:6,padding:de==="text"?0:de==="rounded"?3:2,opacity:ha?1:0,transition:"opacity 0.4s",pointerEvents:ha?"auto":"none"},children:(ii.current??[]).map((G,At)=>{let we=Ki.has(G.id),ze=G.color||Fo[At%Fo.length];return(0,je.jsxs)("button",{onClick:()=>rs(G.id),style:{position:"relative",zIndex:1,fontSize:11,padding:Ge?de==="text"?"2px 4px":"5px 7px":de==="text"?"2px 6px":"3px 8px",borderRadius:de==="rounded"?999:4,border:"none",cursor:"pointer",fontFamily:"system-ui, -apple-system, sans-serif",fontWeight:500,background:we||de==="text"?"transparent":An?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.035)",color:we?P:rt,opacity:we?.4:1,transition:"opacity 0.2s, background 0.15s, color 0.2s",lineHeight:"16px",display:"flex",alignItems:"center",gap:Ge?0:4},children:[(0,je.jsx)("span",{style:{width:Ge?8:6,height:Ge?8:6,borderRadius:"50%",background:ze,flexShrink:0,opacity:we?.4:1,transition:"opacity 0.2s"}}),!Ge&&(G.label??G.id)]},G.id)})})]}),(0,je.jsx)("div",{ref:Ve,className:ln,style:{width:"100%",height:"100%",position:"relative",...ft},children:(0,je.jsx)("canvas",{ref:Qt,style:{display:"block",cursor:kr}})})]})}function Gc(e,t=15,n=Date.now()){let a=Date.parse(e.observedAt);return!Number.isFinite(a)||a>n?"unknown":n-a>t*3e3?"stale":"sampled"}function vS(e,t,n){let a=[];for(let l of e){let i=Date.parse(l.at)/1e3,o=l[t];if(!Number.isFinite(i)||!Number.isFinite(o)){a=[];continue}let s=a.at(-1);s&&(i<=s.time||i-s.time>n*1.75)&&(a=[]),a.push({time:i,value:o})}return a}function yS(e,t){return e.reduce((n,a)=>!n||Math.abs(a.time-t)<Math.abs(n.time-t)?a:n,null)}var bS=ka(Ya(),1),Fh=matchMedia("(prefers-color-scheme: dark)"),Uw=e=>(Fh.addEventListener("change",e),()=>Fh.removeEventListener("change",e)),Bw=()=>Fh.matches?"dark":"light";function SS(){return(0,bS.useSyncExternalStore)(Uw,Bw)}function AS(e){return getComputedStyle(document.documentElement).getPropertyValue(`--${e}`).trim()}var Vc={text:260,ease:"cubic-bezier(.23,1,.32,1)"},br=new Map,vr=new Map,yr=matchMedia("(prefers-reduced-motion: reduce)"),wS=()=>yr.matches||document.body.classList.contains("keyboard");function ES(e,t){let n=br.get(e);n||(n=new ms,br.set(e,n));let a={duration:Vc.text,ease:Vc.ease,scale:!1,disabled:wS(),respectReducedMotion:!0};n.needsRecreate(a)&&n.attach(e,a),n.update(t)}function sl(e,t,n=""){let a=l=>String(l).replace(/[&<>"']/g,i=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[i]);return`<span data-morph="${a(e)}" class="morph-text ${a(n)}">${a(t)}</span>`}function $S(e,t,n){let a=document.getElementById("app");ud(a,`<div id="app">${e}</div>`,{childrenOnly:!0,getNodeKey:l=>l.id||l.dataset?.uiKey||l.dataset?.morph,onBeforeElUpdated(l,i){return l.dataset.morph&&l.dataset.morph===i.dataset.morph?(ES(l,i.textContent),!1):l.dataset.chart&&l.dataset.chart===i.dataset.chart&&l.dataset.hostId===i.dataset.hostId?!1:!l.isEqualNode(i)}});for(let[l,i]of br)l.isConnected||(i.destroy(),br.delete(l));for(let[l,i]of vr)l.isConnected||(i.unmount(),vr.delete(l));a.querySelectorAll("[data-morph]").forEach(l=>{br.has(l)||ES(l,l.textContent)}),a.querySelectorAll("[data-chart]").forEach(l=>{vr.has(l)||vr.set(l,(0,MS.createRoot)(l));let i=t.hosts?.find(o=>o.id===l.dataset.hostId)??t.machine;vr.get(l).render((0,Te.createElement)(qw,{key:`${t.mode}:${i.id??"this-machine"}`,snapshot:t,machine:i,error:n,mini:l.dataset.chart==="cpu-mini"}))})}var TS=e=>new Date(e*1e3).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"}),Wh=(e,t)=>t==="cpuPercent"?`${e.toFixed(1)}%`:`${(e/1024**3).toFixed(1)} GiB`;function Hw({points:e,color:t}){if(e.length<2)return(0,Te.createElement)("div",{className:"chart-empty"},e.length?"Waiting for another sample":"No measurements supplied");let n=e[0].time,a=e.at(-1).time,l=Math.max(1,...e.map(o=>o.value)),i=e.map((o,s)=>`${s?"L":"M"}${((o.time-n)/(a-n)*580+10).toFixed(2)},${(135-o.value/l*110).toFixed(2)}`).join(" ");return(0,Te.createElement)("svg",{viewBox:"0 0 600 160",preserveAspectRatio:"none","aria-hidden":!0},(0,Te.createElement)("path",{d:i,stroke:t,strokeWidth:1.5,fill:"none",vectorEffect:"non-scaling-stroke"}))}function qw({snapshot:e,machine:t,error:n,mini:a}){let l=SS(),[i,o]=(0,Te.useState)("cpuPercent"),[s,r]=(0,Te.useState)(null),[c,u]=(0,Te.useState)(yr.matches),[m,f]=(0,Te.useState)(!1),d=(0,Te.useRef)(null);(0,Te.useEffect)(()=>{let A=()=>u(yr.matches);yr.addEventListener("change",A);let $=new IntersectionObserver(([C])=>f(C.isIntersecting));return $.observe(d.current),()=>{yr.removeEventListener("change",A),$.disconnect()}},[]);let v=vS(t.history??[],i,e.interval),b=v.at(-1),E=AS(i==="cpuPercent"?"chart":"blue"),p=i==="cpuPercent"?v:v.map(A=>({...A,value:A.value/1024**3})),h=!!n||Gc({...t,observedAt:t.observedAt??(t.id?null:e.observedAt)},e.interval)!=="sampled",g=p.length>=2&&!c&&m,y=a?300:Math.max(300,(b?.time??0)-(v[0]?.time??0)+e.interval*2),M=s==null?b:yS(v,s),w=A=>i==="cpuPercent"?`${A.toFixed(0)}%`:`${A.toFixed(1)} GiB`,T=A=>{if(!["ArrowLeft","ArrowRight","Home","End","Escape"].includes(A.key)||!v.length)return;A.preventDefault();let $=v.indexOf(M),C=A.key==="Home"?0:["End","Escape"].includes(A.key)?v.length-1:Math.min(v.length-1,Math.max(0,$+(A.key==="ArrowLeft"?-1:1)));r(v[C].time)};return(0,Te.createElement)("div",{ref:d,className:a?"sampled-chart mini-chart":"sampled-chart"},!a&&(0,Te.createElement)("div",{className:"sample-chart-header"},(0,Te.createElement)("div",{className:"chart-metric-tabs",role:"group","aria-label":"Machine reading"},...[["cpuPercent","CPU"],["memoryUsed","System RAM"]].map(([A,$])=>(0,Te.createElement)("button",{key:A,type:"button","aria-pressed":i===A,onClick:()=>{o(A),r(null)}},$))),(0,Te.createElement)("span",{className:"sample-reading"},(0,Te.createElement)(R0,{duration:Vc.text,ease:Vc.ease,scale:!1,disabled:wS()},b?Wh(b.value,i):"\u2014"))),(0,Te.createElement)("div",{className:"liveline-canvas","aria-hidden":!0},g?(0,Te.createElement)(gS,{data:p,value:p.at(-1).value,window:y,theme:l,color:E,grid:!a,badge:!1,momentum:!1,pulse:!1,fill:!1,scrub:!a,paused:h,lineWidth:1.5,padding:a?{top:5,right:4,bottom:5,left:4}:{top:16,right:68,bottom:28,left:10},formatValue:w,formatTime:TS,onHover:A=>r(A?.time??null)}):(0,Te.createElement)(Hw,{points:p,color:E})),!a&&(0,Te.createElement)("div",{className:"sample-readout",tabIndex:0,role:"group","aria-label":"Exact samples. Use left and right arrows to inspect readings.",onKeyDown:T},(0,Te.createElement)("span",{className:"sample-crosshair","aria-hidden":!0},"+"),(0,Te.createElement)("span",null,s==null?"Latest sample":"Nearest sample"),(0,Te.createElement)("strong",null,M?`${TS(M.time)} \xB7 ${Wh(M.value,i)}`:"Awaiting a reading"),(0,Te.createElement)("span",{className:"sample-cadence"},h?"Reading not current":`Every ${e.interval}s`)),!a&&(0,Te.createElement)("p",{className:"chart-method"},c?"Sampled readings. Use the arrow keys on the readout to inspect each measurement.":"Curve interpolated between samples; the latest value is held until the next poll."),a&&(0,Te.createElement)("span",{className:"sr-only"},b?`Latest CPU sample: ${Wh(b.value,i)}. Collected every ${e.interval} seconds.`:"Awaiting CPU samples"))}function RS(e){let t=document.getElementById("inspector");ud(t,`<dialog>${e}</dialog>`,{childrenOnly:!0,getNodeKey:n=>n.id||(n.dataset?.inspect?`${n.dataset.inspect}:${n.dataset.key}`:n.dataset?.inspectorTab?`tab:${n.dataset.inspectorTab}`:void 0),onBeforeElUpdated:(n,a)=>!n.isEqualNode(a)})}var Me={direct:{label:"Direct API",short:"Direct API",color:"var(--route-direct)"},local:{label:"Local runtime",short:"Local",color:"var(--route-local)"},router:{label:"Router",short:"Router",color:"var(--route-router)"},gateway:{label:"Gateway",short:"Gateway",color:"var(--route-gateway)"},unknown:{label:"Unclassified",short:"Unclassified",color:"var(--route-unknown)"}},Ph=e=>String(e??"").trim().toLowerCase();function kw(e){return e.kind==="gateway"||e.kind==="router"?e.kind:e.kind==="provider"?"direct":e.kind==="runtime"&&["local","private"].includes(e.location)?"local":"unknown"}function ua(e,t={}){if(Object.hasOwn(Me,e.routeKind))return e.routeKind;let n=Ph(e.route);if(!n||n==="unattributed route")return"unknown";let a=new Set((t.inventory??[]).filter(l=>Ph(l.name)===n).map(kw).filter(l=>l!=="unknown"));return a.size?a.size===1?[...a][0]:"unknown":(t.sources??[]).some(l=>(l.kind==="Local runtime"||l.kind==="Model runtime"&&["local","private"].includes(l.location))&&Ph(l.name)===n)?"local":n==="direct"||n==="direct api"?"direct":"unknown"}function Xc(e,t){let n=Object.fromEntries(Object.keys(Me).map(a=>[a,0]));for(let a of e)n[ua(a,t)]+=fn(a,t);return n}function rl(e){return!!e.records?.length||(e.sources??[]).some(t=>(["activity","sample-activity"].includes(t.id)||t.id?.startsWith("project-log:"))&&t.state==="connected")}function _S(e,t=e.records??[]){let n=rl(e),a=ea(t.filter(i=>!["completed","running","failed"].includes(i.status)),e),l=ea(t.filter(i=>i.status==="failed"),e);return{known:n,count:n?ea(t,e):null,failures:!n||a?null:l,reportedFailures:l,unknownStatuses:a}}var NS={direct:'<circle cx="3.5" cy="10" r="1.75"/><path d="M5.25 10h9.5"/><circle cx="16.5" cy="10" r="1.75"/>',local:'<path d="M7 5h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2ZM8 2v3m4-3v3M8 15v3m4-3v3M2 8h3m-3 4h3m10-4h3m-3 4h3M8 8h4v4H8Z"/>',router:'<circle cx="3" cy="10" r="1.5"/><path d="M4.5 10H8a2 2 0 0 0 2-2V6a2 2 0 0 1 2-2h3.5M8 10a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2h3.5"/><circle cx="17" cy="4" r="1.5"/><circle cx="17" cy="16" r="1.5"/>',gateway:'<path d="M7 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M7 14v2a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-2M2 10h16m-3-3 3 3-3 3"/>',unknown:'<path d="M7 3.7a7 7 0 0 1 6 0M16.3 7a7 7 0 0 1 0 6M13 16.3a7 7 0 0 1-6 0M3.7 13a7 7 0 0 1 0-6"/><circle cx="10" cy="10" r="1" fill="currentColor" stroke="none"/>'};function ul(e){return`<svg class="route-icon" viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false">${NS[e]??NS.unknown}</svg>`}var ei=e=>String(e??"").replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t]),jw='<svg class="select-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m4.5 6.25 3.5 3.5 3.5-3.5"/></svg>',Yw='<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3.5 8 3 3 6-6"/></svg>';function tp({id:e,label:t,value:n,options:a,disabled:l=!1}){let i=a.find(o=>o.value===n);return`<button type="button" id="${ei(e)}" class="select-trigger" role="combobox" aria-label="${ei(t)}" aria-haspopup="listbox" aria-expanded="false" aria-controls="${ei(e)}-options" value="${ei(n)}" data-select-options="${ei(JSON.stringify(a))}" ${l?"disabled":""}><span class="select-value">${ei(i?.label??"Choose an option")}</span>${jw}</button>`}var I=null,np=()=>I!==null;function cl(e=!1){if(!I)return;let{trigger:t,menu:n}=I;I=null,t.setAttribute("aria-expanded","false"),t.removeAttribute("aria-activedescendant"),n.remove(),e&&t.isConnected&&t.focus({preventScroll:!0})}function Bi(e,t=!0){if(!I||e<0||I.options[e]?.disabled)return;I.index=e;let n=[...I.menu.children];n.forEach((a,l)=>a.classList.toggle("is-active",l===e)),I.trigger.setAttribute("aria-activedescendant",n[e].id),t&&n[e].scrollIntoView({block:"nearest",behavior:"instant"})}function OS(){if(!I)return;let{trigger:e,menu:t}=I,n=e.getBoundingClientRect(),a=12,l=6,i=innerHeight-n.bottom-a-l,o=n.top-a-l,s=i<Math.min(300,t.scrollHeight)&&o>i;t.style.width=`${Math.min(Math.max(n.width,250),innerWidth-a*2)}px`,t.style.maxHeight=`${Math.max(60,Math.min(340,s?o:i))}px`,t.style.left=`${Math.max(a,Math.min(n.left,innerWidth-t.offsetWidth-a))}px`,t.style.top=`${s?Math.max(a,n.top-t.offsetHeight-l):n.bottom+l}px`}function CS(e){if(e.disabled)return;cl();let t=JSON.parse(e.dataset.selectOptions);if(!t.some(l=>!l.disabled))return;let n=document.createElement("div");n.id=e.getAttribute("aria-controls"),n.className="select-menu",n.setAttribute("role","listbox"),n.setAttribute("aria-label",e.getAttribute("aria-label")),n.innerHTML=t.map((l,i)=>`<div class="select-option" id="${ei(n.id)}-${i}" role="option" aria-selected="${l.value===e.value}" ${l.disabled?'aria-disabled="true"':""} data-option-index="${i}"><span>${ei(l.label)}</span>${l.value===e.value?Yw:'<span class="select-check-space" aria-hidden="true"></span>'}</div>`).join(""),(e.closest("dialog")??document.body).append(n);let a=t.findIndex(l=>l.value===e.value&&!l.disabled);I={trigger:e,menu:n,options:t,index:a<0?t.findIndex(l=>!l.disabled):a,query:"",typedAt:0},e.setAttribute("aria-expanded","true"),e.focus({preventScroll:!0}),OS(),Bi(I.index)}function ep(){if(!I)return;let{trigger:e,options:t,index:n}=I,a=t[n]?.value;if(a===void 0||t[n].disabled)return;let l=e.value!==a;e.value=a,e.querySelector(".select-value").textContent=t[n].label,cl(!0),l&&e.dispatchEvent(new Event("change",{bubbles:!0}))}function Gw(e){if(!I)return;let t=I.index;for(;t+e>=0&&t+e<I.options.length;)if(t+=e,!I.options[t].disabled){Bi(t);return}}document.addEventListener("pointerdown",e=>{if(I){if(I.menu.contains(e.target)){e.pointerType==="mouse"&&e.preventDefault();return}I.trigger.contains(e.target)||cl()}});document.addEventListener("click",e=>{let t=e.target.closest("[data-option-index]");if(I&&t&&I.menu.contains(t)){let a=Number(t.dataset.optionIndex);I.options[a].disabled||(Bi(a,!1),ep());return}let n=e.target.closest("[data-select-options]");n&&(I?.trigger===n?cl(!0):CS(n))});document.addEventListener("pointermove",e=>{if(!I||e.pointerType!=="mouse")return;let t=e.target.closest("[data-option-index]");t&&I.menu.contains(t)&&Bi(Number(t.dataset.optionIndex),!1)});document.addEventListener("keydown",e=>{let t=e.target.closest("[data-select-options]");if(!t||e.metaKey||e.ctrlKey||e.altKey&&!["ArrowDown","ArrowUp"].includes(e.key))return;let n=I?.trigger===t;if(e.key==="Tab"){n&&ep();return}if(e.key==="Escape"){n&&(e.preventDefault(),e.stopPropagation(),cl(!0));return}let a=e.key.length===1&&e.key!==" ";if(!(!a&&!["ArrowDown","ArrowUp","Home","End","Enter"," "].includes(e.key))&&(document.body.classList.add("keyboard"),e.preventDefault(),e.stopPropagation(),n||CS(t),!!I)){if(e.key==="Enter"||e.key===" "){n&&ep();return}if(["ArrowDown","ArrowUp","Home","End"].includes(e.key)&&(I.query="",I.typedAt=0),e.key==="ArrowDown"||e.key==="ArrowUp"){n&&Gw(e.key==="ArrowDown"?1:-1);return}if(e.key==="Home"){Bi(I.options.findIndex(l=>!l.disabled));return}if(e.key==="End"){Bi(I.options.findLastIndex(l=>!l.disabled));return}if(a){let l=performance.now();I.query=l-I.typedAt>700?e.key:I.query+e.key,I.typedAt=l;let i=I.query.toLocaleLowerCase(),o=[...i].every(c=>c===i[0]),s=o?i[0]:i,r=o?I.index+1:I.index;for(let c=0;c<I.options.length;c++){let u=(r+c)%I.options.length,m=I.options[u];if(!m.disabled&&m.label.toLocaleLowerCase().startsWith(s)){Bi(u);break}}}}},!0);document.addEventListener("focusin",e=>{I&&e.target!==I.trigger&&!I.menu.contains(e.target)&&cl()});document.addEventListener("scroll",e=>{I&&!I.menu.contains(e.target)&&cl()},!0);window.addEventListener("resize",OS);var DS=[["openai","OpenAI","openai.png",["openai","openai api"]],["anthropic","Anthropic","anthropic.png",["anthropic","anthropic api"]],["google","Google","google.png",["google","google ai","google api"]],["mistral","Mistral","mistral.png",["mistral","mistral ai","mistral api"]],["deepseek","DeepSeek","deepseek.ico",["deepseek","deepseek api"]],["cohere","Cohere","cohere.png",["cohere","cohere api"]],["qwen","Qwen","qwen.png",["qwen"]],["meta","Meta","meta.ico",["meta","meta ai"]],["nomic","Nomic","nomic.png",["nomic","nomic ai"]],["baai","BAAI","baai.png",["baai"]],["ollama","Ollama","ollama.png",["ollama"]],["vllm","vLLM","vllm.png",["vllm"]],["lm-studio","LM Studio","lm-studio.png",["lm studio"]],["baseten","Baseten","baseten.png",["baseten","baseten api"]],["groq","Groq","groq.ico",["groq","groq api","groqcloud"]],["cerebras","Cerebras","cerebras.png",["cerebras","cerebras api"]],["openrouter","OpenRouter","openrouter.png",["openrouter"]],["huggingface","Hugging Face","huggingface.svg",["hugging face","huggingface"]],["huggingface-endpoints","Hugging Face Endpoints","huggingface.svg",["hugging face endpoints","hugging face inference endpoints"]],["huggingface-router","Hugging Face Router","huggingface.svg",["hugging face router","hugging face inference providers"]],["openmerit","OpenMerit",null,["openmerit"]]],Kc=new Map(DS.map(([e,t,n])=>[e,Object.freeze({key:e,label:t,src:n?`/brands/${n}`:"/favicon.svg"})])),Vw=new Map(DS.flatMap(([e,,,t])=>t.map(n=>[n,e]))),zS=e=>String(e??"").trim().toLowerCase();function Ot(e){return Kc.get(Vw.get(zS(e)))??null}var Xw=[["openai",["openai"],/^(?:gpt-(?:oss-)?\d|o[134](?:-|$)|text-embedding-(?:3|ada)(?:-|$))/],["anthropic",["anthropic"],/^claude-(?:\d|sonnet(?:-|$)|opus(?:-|$)|haiku(?:-|$))/],["google",["google"],/^(?:gemini-\d|gemma-?\d)/],["deepseek",["deepseek","deepseek-ai"],/^deepseek-(?:r\d|v\d|coder(?:-|$)|llm(?:-|$))/],["mistral",["mistralai","mistral"],/^(?:mistral|mixtral|ministral|codestral|devstral|magistral)(?:-|\d)/],["cohere",["cohere","cohereforai"],/^(?:command-(?:a|r)(?:-|$)|embed-(?:v\d|english(?:-|$)|multilingual(?:-|$)))/],["qwen",["qwen"],/^qwen(?:-?\d|-(?:coder|vl)(?:-|$))/],["meta",["meta","meta-llama"],/^llama-?\d/],["nomic",["nomic-ai"],/^nomic-embed-(?:text|vision)(?:-|:|$)/],["baai",["baai"],/^bge-(?:reranker|m3|large|base|small)(?:-|:|$)/]];function xn(e){if(e?.creatorConflict)return null;if(e?.modelCreator)return Ot(e.modelCreator);let t=zS(typeof e=="string"?e:e?.model??e?.name).replace(/\s*·\s*|\s+/g,"-"),n=t.split("/");if(n.length>2)return null;let[a,l]=n.length===2?n:[null,t],i=Xw.find(([,o,s])=>(!a||o.includes(a))&&s.test(l));return i?Kc.get(i[0]):null}var Kw=e=>String(e).replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t]);function Sr(e,t=18){return!e||Kc.get(e.key)!==e?"":`<img class="brand-icon" data-brand="${e.key}" src="${e.src}" width="${t}" height="${t}" style="--brand-size:${t}px" alt="" aria-hidden="true" title="${Kw(e.label)}" decoding="async">`}function xS(e,t,n,a=18){return!e||Kc.get(e.key)!==e?"":`<image class="map-brand-icon" data-brand="${e.key}" href="${e.src}" x="${t}" y="${n}" width="${a}" height="${a}" preserveAspectRatio="xMidYMid meet" aria-hidden="true"/>`}var ne=(e,t,n,a={})=>Object.freeze({key:e,name:t,type:n,aliases:[],credentials:[],endpoints:[],hosts:[],...a}),ap="[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?",Iw=e=>new RegExp(`^(?:${ap}\\.)+${e.replaceAll(".","\\.")}$`),US=e=>new RegExp(`^${ap}\\.${e.replaceAll(".","\\.")}$`),BS="[a-z]{2}(?:-[a-z]+)+-\\d+",Qw=Iw("endpoints.huggingface.cloud"),Zw=US("openai.azure.com"),Jw=US("services.ai.azure.com"),Fw=new RegExp(`^bedrock-runtime(?:-fips)?\\.${BS}\\.amazonaws\\.com(?:\\.cn)?$`),Ww=new RegExp(`^runtime(?:-fips)?\\.sagemaker\\.${BS}\\.amazonaws\\.com(?:\\.cn)?$`),Pw=/^(?:[a-z]+(?:-[a-z]+)*\d+-)?aiplatform\.googleapis\.com$/,LS=new RegExp(`^${ap}\\.(?:cn-beijing|cn-hongkong|ap-southeast-1|ap-northeast-1)\\.maas\\.aliyuncs\\.com$`),HS=Object.freeze([ne("openai","OpenAI","model-api",{aliases:["openai api"],credentials:["OPENAI_API_KEY"],endpoints:["OPENAI_BASE_URL","OPENAI_API_BASE"],hosts:["api.openai.com"]}),ne("anthropic","Anthropic","model-api",{aliases:["anthropic api"],credentials:["ANTHROPIC_API_KEY"],endpoints:["ANTHROPIC_BASE_URL"],hosts:["api.anthropic.com"]}),ne("openrouter","OpenRouter","gateway",{credentials:["OPENROUTER_API_KEY"],endpoints:["OPENROUTER_BASE_URL"],hosts:["openrouter.ai"]}),ne("google","Google","model-api",{aliases:["google ai","google api","gemini api"],credentials:["GOOGLE_GENERATIVE_AI_API_KEY","GEMINI_API_KEY"],endpoints:["GOOGLE_GEMINI_BASE_URL","GEMINI_BASE_URL"],hosts:["generativelanguage.googleapis.com"]}),ne("groq","Groq","inference-cloud",{aliases:["groq api","groqcloud"],credentials:["GROQ_API_KEY"],endpoints:["GROQ_BASE_URL"],hosts:["api.groq.com"]}),ne("cerebras","Cerebras","inference-cloud",{aliases:["cerebras api"],credentials:["CEREBRAS_API_KEY"],endpoints:["CEREBRAS_BASE_URL"],hosts:["api.cerebras.ai"]}),ne("baseten","Baseten","inference-cloud",{aliases:["baseten api"],credentials:["BASETEN_API_KEY"],endpoints:["BASETEN_BASE_URL"],hosts:["inference.baseten.co"],match:e=>/^model-[a-z0-9-]+\.api\.baseten\.co$/.test(e.hostname),redact:e=>e.replace(/^model-[a-z0-9-]+(?=\.api\.baseten\.co$)/,"model-\u2026")}),ne("huggingface-endpoints","Hugging Face Endpoints","inference-cloud",{aliases:["hugging face inference endpoints"],endpoints:["HF_INFERENCE_ENDPOINT","HF_ENDPOINT_URL","HUGGINGFACE_ENDPOINT_URL"],match:e=>Qw.test(e.hostname),redact:()=>"\u2026.endpoints.huggingface.cloud"}),ne("huggingface-router","Hugging Face Router","router",{aliases:["hugging face inference providers"],hosts:["router.huggingface.co"]}),ne("mistral","Mistral","model-api",{aliases:["mistral ai","mistral api"],credentials:["MISTRAL_API_KEY"],endpoints:["MISTRAL_BASE_URL","MISTRAL_SERVER_URL"],hosts:["api.mistral.ai"]}),ne("deepseek","DeepSeek","model-api",{aliases:["deepseek api"],credentials:["DEEPSEEK_API_KEY"],endpoints:["DEEPSEEK_BASE_URL"],hosts:["api.deepseek.com"]}),ne("cohere","Cohere","model-api",{aliases:["cohere api"],credentials:["COHERE_API_KEY","CO_API_KEY"],endpoints:["COHERE_BASE_URL"],hosts:["api.cohere.ai","api.cohere.com"]}),ne("xai","xAI","model-api",{aliases:["xai api"],credentials:["XAI_API_KEY"],endpoints:["XAI_BASE_URL"],hosts:["api.x.ai"]}),ne("voyage","Voyage AI","model-api",{aliases:["voyage","voyageai"],credentials:["VOYAGE_API_KEY"],endpoints:["VOYAGE_BASE_URL"],hosts:["api.voyageai.com"]}),ne("jina","Jina AI","model-api",{aliases:["jina"],endpoints:["JINA_BASE_URL"],hosts:["api.jina.ai"]}),ne("together","Together AI","inference-cloud",{aliases:["together"],credentials:["TOGETHER_API_KEY"],endpoints:["TOGETHER_BASE_URL"],hosts:["api.together.ai","api.together.xyz"]}),ne("fireworks","Fireworks AI","inference-cloud",{aliases:["fireworks"],credentials:["FIREWORKS_API_KEY"],endpoints:["FIREWORKS_BASE_URL"],hosts:["api.fireworks.ai"]}),ne("deepinfra","DeepInfra","inference-cloud",{credentials:["DEEPINFRA_API_KEY","DEEPINFRA_API_TOKEN"],endpoints:["DEEPINFRA_BASE_URL"],hosts:["api.deepinfra.com"]}),ne("replicate","Replicate","inference-cloud",{credentials:["REPLICATE_API_TOKEN"],endpoints:["REPLICATE_BASE_URL"],hosts:["api.replicate.com"]}),ne("nvidia-api","NVIDIA API Catalog","inference-cloud",{endpoints:["NVIDIA_BASE_URL","NVIDIA_NIM_BASE_URL"],hosts:["integrate.api.nvidia.com"]}),ne("sambanova","SambaNova","inference-cloud",{credentials:["SAMBANOVA_API_KEY"],endpoints:["SAMBANOVA_BASE_URL"],hosts:["api.sambanova.ai"]}),ne("novita","Novita AI","inference-cloud",{aliases:["novita"],credentials:["NOVITA_API_KEY"],endpoints:["NOVITA_BASE_URL"],hosts:["api.novita.ai"]}),ne("nebius","Nebius Token Factory","inference-cloud",{aliases:["nebius ai studio"],endpoints:["NEBIUS_BASE_URL"],hosts:["api.studio.nebius.ai","api.studio.nebius.com"]}),ne("siliconflow","SiliconFlow","inference-cloud",{credentials:["SILICONFLOW_API_KEY"],endpoints:["SILICONFLOW_BASE_URL"],hosts:["api.siliconflow.com","api.siliconflow.cn"]}),ne("azure-openai","Azure OpenAI","inference-cloud",{endpoints:["AZURE_OPENAI_ENDPOINT","AZURE_OPENAI_BASE_URL","AZURE_OPENAI_API_BASE"],match:e=>Zw.test(e.hostname),redact:()=>"\u2026.openai.azure.com"}),ne("azure-foundry","Azure AI Foundry","inference-cloud",{aliases:["microsoft foundry"],endpoints:["AZURE_AI_ENDPOINT","AZURE_AI_INFERENCE_ENDPOINT","AZURE_INFERENCE_ENDPOINT"],match:e=>Jw.test(e.hostname)&&/^\/(?:$|(?:openai|models)(?:\/|$))/.test(e.pathname),redact:()=>"\u2026.services.ai.azure.com"}),ne("bedrock","Amazon Bedrock","inference-cloud",{aliases:["aws bedrock","bedrock"],credentials:["AWS_BEARER_TOKEN_BEDROCK"],endpoints:["AWS_ENDPOINT_URL_BEDROCK_RUNTIME","BEDROCK_ENDPOINT_URL","BEDROCK_BASE_URL"],match:e=>Fw.test(e.hostname)}),ne("sagemaker","Amazon SageMaker","inference-cloud",{aliases:["aws sagemaker","sagemaker"],endpoints:["AWS_ENDPOINT_URL_SAGEMAKER_RUNTIME","SAGEMAKER_ENDPOINT_URL","SAGEMAKER_BASE_URL"],match:e=>Ww.test(e.hostname)}),ne("vertex","Google Vertex AI","inference-cloud",{aliases:["vertex ai","vertex"],endpoints:["VERTEX_AI_ENDPOINT","VERTEX_AI_BASE_URL"],match:e=>Pw.test(e.hostname)}),ne("cloudflare-workers-ai","Cloudflare Workers AI","inference-cloud",{aliases:["workers ai"],endpoints:["CLOUDFLARE_WORKERS_AI_BASE_URL"],match:e=>e.hostname==="api.cloudflare.com"&&/^\/client\/v4\/accounts\/[a-zA-Z0-9_-]+\/ai(?:\/|$)/.test(e.pathname)}),ne("cloudflare-ai-gateway","Cloudflare AI Gateway","gateway",{endpoints:["CLOUDFLARE_AI_GATEWAY_URL"],hosts:["gateway.ai.cloudflare.com"]}),ne("portkey","Portkey","gateway",{credentials:["PORTKEY_API_KEY"],endpoints:["PORTKEY_BASE_URL","PORTKEY_GATEWAY_URL"],hosts:["api.portkey.ai"]}),ne("vercel-ai-gateway","Vercel AI Gateway","gateway",{endpoints:["AI_GATEWAY_BASE_URL","VERCEL_AI_GATEWAY_BASE_URL"],hosts:["ai-gateway.vercel.sh"]}),ne("dashscope","Alibaba Cloud Model Studio","inference-cloud",{aliases:["dashscope","alibaba model studio"],credentials:["DASHSCOPE_API_KEY"],endpoints:["DASHSCOPE_BASE_URL","DASHSCOPE_API_BASE"],hosts:["dashscope.aliyuncs.com","dashscope-intl.aliyuncs.com","dashscope-us.aliyuncs.com","cn-hongkong.dashscope.aliyuncs.com"],match:e=>LS.test(e.hostname),redact:e=>LS.test(e)?"\u2026.maas.aliyuncs.com":e}),ne("minimax","MiniMax","model-api",{credentials:["MINIMAX_API_KEY"],endpoints:["MINIMAX_BASE_URL"],hosts:["api.minimax.io"]}),ne("moonshot","Moonshot AI","model-api",{aliases:["moonshot","kimi api"],credentials:["MOONSHOT_API_KEY"],endpoints:["MOONSHOT_BASE_URL"],hosts:["api.moonshot.ai"]}),ne("zai","Z.AI","model-api",{aliases:["zai"],credentials:["ZAI_API_KEY"],endpoints:["ZAI_BASE_URL"],hosts:["api.z.ai"]}),ne("perplexity-sonar","Perplexity Sonar","model-api",{endpoints:["PERPLEXITY_BASE_URL"],match:e=>e.hostname==="api.perplexity.ai"&&/^(?:\/?|\/chat\/completions\/?|\/v1\/?)$/.test(e.pathname)}),ne("perplexity-router","Perplexity Router","router",{match:e=>e.hostname==="api.perplexity.ai"&&/^\/router(?:\/|$)/.test(e.pathname)}),ne("ollama","Ollama","runtime"),ne("vllm","vLLM","runtime"),ne("lm-studio","LM Studio","runtime")]),e5=new Map(HS.flatMap(e=>[e.name,...e.aliases].map(t=>[t.toLowerCase(),e]))),lp=e=>e5.get(String(e??"").trim().toLowerCase())??null,qS=Object.freeze(HS.filter(e=>e.credentials.length||e.endpoints.length)),w$=Object.freeze(qS.flatMap(e=>e.credentials)),$$=Object.freeze(qS.flatMap(e=>e.endpoints));var ip=new WeakMap;function kS(e){if(ip.has(e))return ip.get(e);let t=new Map,n=new Map;for(let l of e.deployments??[])t.set(l.id,t.has(l.id)?null:l);for(let l of e.inventory??[]){let i=l.kind==="runtime"?"local":l.kind==="provider"?"direct":l.kind,o=JSON.stringify([l.name,i]);n.set(o,n.has(o)?null:l)}let a={deployments:t,connections:n,pools:new Map((e.capacityPools??[]).map(l=>[l.id,l])),records:new WeakMap};return ip.set(e,a),a}function ca(e,t){return e.path?.length?e.path:[{name:e.route||"Unattributed route",kind:ua(e,t)}]}function da(e,t){if(!e.deploymentId)return null;let n=kS(t).deployments.get(e.deploymentId);return n?.model===e.model&&n.provider===e.provider?n:null}function op(e,t){let n=kS(t);if(n.records.has(e))return n.records.get(e);let a=new Set(da(e,t)?.poolIds??[]);for(let i of ca(e,t)){let o=n.connections.get(JSON.stringify([i.name,i.kind]));for(let s of o?.poolIds??[])a.add(s)}let l=[...a].map(i=>n.pools.get(i)).filter(Boolean);return n.records.set(e,l),l}function jS(e,t=15,n=Date.now()){let a=n-Date.parse(e.observedAt);return!Number.isFinite(a)||a<0?"unknown":a>t*3e3?"stale":Object.values(e.metrics??{}).some(l=>typeof l=="number")?"sampled":"unknown"}function sp(e){let t=e.metrics??{},n=[],a=(l,i,o,s,r="count")=>{t[o]==null&&t[s]==null||n.push({key:l,label:i,value:t[o]??null,limit:t[s]??null,unit:r,ratio:t[o]!=null&&t[s]>0?t[o]/t[s]:null})};return a("requests","Requests in quota window","requestsUsed","requestsLimit"),a("tokens","Tokens in quota window","tokensUsed","tokensLimit"),a("running","Running / concurrency limit","running","concurrencyLimit"),a("memory","Runtime memory","memoryUsedBytes","memoryTotalBytes","bytes"),t.cachePercent!=null&&n.push({key:"cache",label:"Inference cache used",value:t.cachePercent,limit:100,unit:"percent",ratio:t.cachePercent/100}),t.waiting!=null&&n.push({key:"waiting",label:"Waiting requests",value:t.waiting,limit:null,unit:"count",ratio:null}),n}function YS(e,t,n){let a=n.filter(s=>op(s,t).some(r=>r.id===e.id)),l=new Map(a.filter(s=>s.agentId).map(s=>[s.agentId,s.agent||s.agentId])),i=new Set(a.map(s=>da(s,t)?.id)),o=(t.deployments??[]).filter(s=>s.poolIds?.includes(e.id)||i.has(s.id));return{items:a,agents:l,deployments:o}}var GS=e=>lp(e)?.key??Ot(e)?.key,Er={"model-api":{label:"Model API",plural:"Model APIs",path:"direct"},"inference-cloud":{label:"Inference cloud",plural:"Inference clouds",path:"direct"},router:{label:"Router",plural:"Routers",path:"router"},gateway:{label:"Gateway",plural:"Gateways",path:"gateway"},runtime:{label:"Runtime",plural:"Runtimes",path:"local"},unknown:{label:"Unclassified",plural:"Unclassified",path:"unknown"}},VS=e=>e.endpointInventory||e.kind==="Local runtime",Ar=e=>String(e??"").trim().toLowerCase(),XS=e=>Ar(e)&&!["unattributed","unattributed route","direct","direct api"].includes(Ar(e));function t5(e){return["router","gateway","runtime"].includes(e.kind)?e.kind:e.kind==="provider"&&["model-api","inference-cloud"].includes(e.serviceType)?e.serviceType:lp(e.name)?.type??"unknown"}function KS(e,t=e.records??[]){let n=new Map,a=new Set,l=new Set(t),i=(u,m=!1)=>{if(!XS(u))return null;let f=Ar(u);if(n.has(f))return n.get(f);let d=GS(u);if(!m&&!a.has(f)&&d){let b=[...n.values()].filter(E=>GS(E.name)===d);if(b.length===1)return b[0].aliases.add(u),b[0]}let v={id:f,name:u,aliases:new Set([u]),explicitTypes:new Set,registryTypes:new Set,locations:new Set,endpoints:new Set,evidence:new Map,models:new Map,deployments:new Map,poolIds:new Set,records:new Set,paths:new Map,lastAt:null,configured:!1,declared:!1,reported:!1};return n.set(f,v),v},o=(u,m,f,d,v={})=>{if(!u)return;let b={sourceId:m||"inventory",field:f,detail:d,...v};u.evidence.set(JSON.stringify(b),b)},s=(u,m)=>{if(!u)return;let f=t5(m);(["router","gateway","runtime"].includes(m.kind)||["model-api","inference-cloud"].includes(m.serviceType)?u.explicitTypes:u.registryTypes).add(f),m.location&&m.location!=="unknown"&&u.locations.add(m.location)},r=(u,m)=>{if(!u)return;let f=m.model??m.name,d=JSON.stringify([m.provider,f]);f&&!u.models.has(d)&&u.models.set(d,{...m,name:f})},c=(e.inventory??[]).filter(u=>u.kind!=="model");for(let u of c)XS(u.name)&&a.add(Ar(u.name));for(let u of e.sources??[])VS(u)&&u.state!=="disabled"&&a.add(Ar(u.name));for(let u of c){let m=i(u.name,!0);if(m){s(m,u),u.state==="declared"?m.declared=!0:m.configured=!0;for(let f of u.poolIds??[])m.poolIds.add(f);for(let f of u.evidence??[])o(m,f.sourceId||"environment",f.field,f.basis==="repository-declaration"?"Code or configuration declaration":f.basis==="endpoint-host"?"Recognized endpoint host":"Credential variable present",f.file?{file:f.file,line:f.line,referenceId:f.referenceId}:{}),f.endpointHost&&m.endpoints.add(f.endpointHost);u.sourceId!=="repository"&&u.sourceId!=="environment"&&!u.sourceId?.startsWith("project:")&&o(m,u.sourceId||"inventory","inventory.name","Declared service")}}for(let u of e.sources??[]){if(!VS(u)||u.state==="disabled")continue;let m=i(u.name,!0);if(!m)continue;s(m,{name:u.name,kind:u.kind==="Model endpoint"?"unknown":"runtime",location:u.location??(u.kind==="Local runtime"?"local":"unknown")}),m.configured=!0;try{let d=new URL(u.detail);d.protocol==="http:"&&["localhost","127.0.0.1","[::1]"].includes(d.hostname)&&!d.username&&!d.password&&!d.search&&!d.hash&&d.pathname==="/"&&m.endpoints.add(d.host)}catch{}o(m,u.id,"runtime","Project endpoint inventory; placement is separate"),u.discoverySource&&o(m,u.discoverySource,u.discoveryField||"endpoint","Project endpoint declaration");let f=(e.capacityPools??[]).find(d=>d.id===`runtime:${u.id}`);f&&m.poolIds.add(f.id)}for(let u of e.models??[]){let m=i(u.provider);m&&(s(m,{name:u.provider,kind:"provider",location:u.location}),r(m,u),o(m,u.sourceId,"provider",u.state==="declared"?"Declared model reference":"Model inventory"),u.state==="configured"&&(m.configured=!0))}for(let u of e.deployments??[]){let m=i(u.provider);if(m){s(m,{name:u.provider,kind:"provider",location:u.location}),m.deployments.set(u.id,u),r(m,u);for(let f of u.poolIds??[])m.poolIds.add(f);o(m,u.sourceId,"deployments.provider","Deployment inventory"),u.state==="configured"&&(m.configured=!0)}}for(let u of e.records??[]){let m=new Set,f=ca(u,e),d=i(u.provider);d&&(s(d,{name:u.provider,kind:"provider",location:u.location}),o(d,u.sourceId,"provider","Recorded serving service"),m.add(d));for(let v of f){let b=i(v.name);b&&(s(b,{name:v.name,kind:v.kind==="local"?"runtime":v.kind}),o(b,u.sourceId,u.path?.length?"path[].name":"route","Recorded connection"),m.add(b))}for(let v of m){if(v.reported=!0,(!v.lastAt||Date.parse(u.occurredAt)>Date.parse(v.lastAt))&&(v.lastAt=u.occurredAt),!l.has(u))continue;v.records.add(u),r(v,u);let b=JSON.stringify(f),E=v.paths.get(b)??{path:f,count:0};E.count+=fn(u,e),v.paths.set(b,E);let p=da(u,e);if(p&&v.deployments.set(p.id,p),v===d&&p)for(let h of op(u,e).filter(g=>p.poolIds?.includes(g.id)))v.poolIds.add(h.id)}}return[...n.values()].map(u=>{let m=u.explicitTypes.size?u.explicitTypes:u.registryTypes;m.size>1&&m.delete("unknown");let f=[u.explicitTypes.size?"Declared or reported role":m.has("unknown")?"Role not supplied":"Known service registry"],{explicitTypes:d,registryTypes:v,poolIds:b,...E}=u;return{...E,aliases:[...u.aliases],types:[...m],typeEvidence:f,locations:[...u.locations],endpoints:[...u.endpoints],evidence:[...u.evidence.values()],models:[...u.models.values()],deployments:[...u.deployments.values()],pools:(e.capacityPools??[]).filter(p=>u.poolIds.has(p.id)),records:[...u.records],paths:[...u.paths.values()]}}).sort((u,m)=>ea(m.records,e)-ea(u.records,e)||u.name.localeCompare(m.name))}var n5=e=>JSON.stringify([e.provider,e.model]),a5=e=>e.agentId?`agent:${e.agentId}`:`workload:${e.workload}`,l5=e=>[...e].sort((t,n)=>t.name.localeCompare(n.name)||t.key.localeCompare(n.key));function IS(e,t,{expandAll:n=!1,expansion:a=new Map}={}){let l=new Map,i=new Map,o=new Map,s=[],r=(p,h,g,y,M)=>{p.has(h)||p.set(h,{key:h,...g,count:0,connections:new Set,deployments:new Map});let w=p.get(h);return w.count+=M,w.connections.add(y),w};for(let p of e){let h=ca(p,t),g=h[0],y=JSON.stringify([g]);i.has(y)||i.set(y,{key:y,id:`path:${y}`,type:"path",name:g.name,kind:g.kind,count:0,variants:new Set});let M=i.get(y);M.count+=fn(p,t),M.variants.add(JSON.stringify(h));let w=a5(p),T=n5(p);r(l,w,{id:`work:${w}`,type:p.agentId?"agent":"workload",name:p.agent||p.agentId||p.workload,inspectKey:p.agentId||p.workload},y,fn(p,t));let A=r(o,T,{id:`model:${T}`,type:"model",name:p.model,provider:p.provider,example:p},y,fn(p,t)),$=da(p,t);$&&A.deployments.set($.id,$),s.push({work:w,path:y,model:T,count:fn(p,t)})}let c=Object.keys(Me),u=[...i.values()].sort((p,h)=>c.indexOf(p.kind)-c.indexOf(h.kind)||p.name.localeCompare(h.name)||p.key.localeCompare(h.key)),m=new Map(u.map((p,h)=>[p.key,h])),f=[],d=(p,h)=>{let g=new Map;for(let T of l5(p.values())){let A=[...T.connections].sort((D,O)=>m.get(D)-m.get(O)),$=JSON.stringify(A);g.has($)||g.set($,{id:`${h}-group:${$}`,side:h,keys:A,members:[],count:0});let C=g.get($);C.members.push(T),C.count+=T.count}let y=[...g.values()].sort((T,A)=>m.get(T.keys[0])-m.get(A.keys[0])||T.id.localeCompare(A.id)),M=[],w=new Map;for(let T of y){T.names=T.keys.map(A=>i.get(A).name),T.label=h==="model"?"models":T.members.every(A=>A.type==="agent")?"agents":"workloads",T.expanded=a.get(T.id)??n,T.members.length>1&&(f.push(T),M.push({...T,type:"group",name:`${T.members.length} ${T.label}`}));for(let A of T.members){let $=T.members.length>1;(!$||T.expanded)&&M.push({...A,groupId:$?T.id:null}),w.set(A.key,{id:!$||T.expanded?A.id:T.id,groupId:$?T.id:null})}}return{nodes:M,owners:w}},v=d(l,"work"),b=d(o,"model"),E=new Map;for(let p of s){let h=v.owners.get(p.work),g=b.owners.get(p.model),y=i.get(p.path),M=[h.id,g.id,y.id,h.groupId,g.groupId].filter(Boolean);for(let[w,T,A]of[[h.id,y.id,"work"],[y.id,g.id,"model"]]){let $=JSON.stringify([w,T]);E.has($)||E.set($,{from:w,to:T,segment:A,kind:y.kind,count:0,related:new Set});let C=E.get($);C.count+=p.count,M.forEach(D=>C.related.add(D))}}return{columns:[v.nodes,u,b.nodes],groups:f,edges:[...E.values()],workloadCount:l.size,connectionCount:i.size,modelCount:o.size,requestCount:ea(e,t)}}function QS({enabled:e,mode:t,navigator:n=globalThis.navigator,storage:a,fetcher:l=globalThis.fetch}){let i=0,o=0,s=0;return(r,c={})=>{try{if(!e()||n.doNotTrack==="1"||n.globalPrivacyControl===!0||(a??globalThis.localStorage).getItem("scout-analytics-opt-out")==="1"||(Date.now()-i>=6e4&&(i=Date.now(),o=0),o>=60||s>=2))return;o++,s++;let u;Promise.race([Promise.resolve().then(()=>l("/api/analytics",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:r,properties:r==="terminal_error"?c:{...c,mode:t()}}),signal:AbortSignal.timeout(1e3),credentials:"same-origin",redirect:"error"})),new Promise(m=>{u=setTimeout(m,1e3)})]).catch(()=>{}).finally(()=>{clearTimeout(u),s--})}catch{}}}var i5=e=>["Error","TypeError","RangeError","SyntaxError","ReferenceError","URIError","EvalError","AggregateError","AbortError"].includes(e?.name)?e.name:"Error";function Tr(e){try{let t=e?.stack,n=(typeof t=="string"?t.slice(0,8e3):"").split(`
|
|
149
|
-
`).slice(1,40).flatMap(a=>{let l=a.match(/(?:\(|\s|@)(https?:\/\/[^\s)]+):(\d+):(\d+)\)?$/);if(!l||l[1]!==new URL("/app.js",globalThis.location.href).href)return[];let i=Number(l[2]),o=Number(l[3]);return i>0&&i<=1e6&&o>0&&o<=1e6?[{filename:"app.js",lineno:i,colno:o}]:[]}).slice(0,8);return{error_type:i5(e),frames:n}}catch{return{error_type:"Error",frames:[]}}}var Wn=QS({enabled:()=>S.info.telemetry===!0,mode:()=>S.mode}),qi=(e,t="other")=>Wn("terminal_interaction",{action:e,kind:["model","agent","task","service","source","host","deployment","pool","record","path"].includes(t)?t:"other"});window.addEventListener("error",e=>Wn("terminal_error",{code:"uncaught_error",...Tr(e.error)}));window.addEventListener("unhandledrejection",e=>Wn("terminal_error",{code:"uncaught_error",...Tr(e.reason)}));var Ce=e=>document.querySelector(e),_=e=>String(e??"").replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t]),st=e=>e==null?"\u2014":new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(e),q=e=>new Intl.NumberFormat("en").format(e),Hi=(e,t)=>`${q(e)} ${t}${e===1?"":"s"}`,hl=e=>e==null?"\u2014":new Intl.NumberFormat("en",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:e>0&&e<.01?4:2}).format(e),dl=e=>e==null?"\u2014":`${(e/1024**3).toFixed(1)} GiB`,ki=e=>e==null?"\u2014":e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(2)} s`,o5=e=>{if(!e.length)return null;let t=[...e].sort((a,l)=>a-l),n=Math.floor(t.length/2);return t.length%2?t[n]:(t[n-1]+t[n])/2},Ic=e=>{let t=e.filter(n=>typeof n=="number");return t.length?t.reduce((n,a)=>n+a,0):null},s5=e=>new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),as=e=>{let t=Math.max(0,Math.floor((Date.now()-Date.parse(e))/1e3));return t<60?"just now":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:t<2592e3?`${Math.floor(t/86400)}d ago`:new Date(e).toLocaleDateString([],{month:"short",day:"numeric",year:"numeric"})},ZS={overview:'<rect x="3" y="3" width="6" height="6" rx="1"/><rect x="13" y="3" width="6" height="6" rx="1"/><rect x="3" y="13" width="6" height="6" rx="1"/><rect x="13" y="13" width="6" height="6" rx="1"/>',models:'<path d="m11 2 9 5-9 5-9-5 9-5Zm-9 9 9 5 9-5M2 15l9 5 9-5"/>',connections:'<rect x="2" y="8" width="5" height="6" rx="1.5"/><rect x="15" y="2" width="5" height="6" rx="1.5"/><rect x="15" y="14" width="5" height="6" rx="1.5"/><path d="M7 11h3c2 0 2-6 5-6m-5 6c2 0 2 6 5 6"/>',activity:'<path d="M2 12h4l3-7 4 13 3-6h4"/>',compute:'<rect x="5" y="5" width="12" height="12" rx="2"/><path d="M8 2v3m6-3v3M8 17v3m6-3v3M2 8h3m-3 6h3m12-6h3m-3 6h3"/><rect x="8" y="8" width="6" height="6" rx="1"/>',sources:'<circle cx="11" cy="11" r="3"/><path d="M11 2v3m0 12v3M2 11h3m12 0h3M4.6 4.6l2.1 2.1m8.6 8.6 2.1 2.1M4.6 17.4l2.1-2.1m8.6-8.6 2.1-2.1"/>',search:'<circle cx="9.5" cy="9.5" r="6"/><path d="m14 14 5 5"/>',arrow:'<path d="M4 11h14m-5-5 5 5-5 5"/>',refresh:'<path d="M18 7a8 8 0 1 0 1 8M18 2v5h-5"/>'},mp=e=>`<svg viewBox="0 0 22 22" fill="none" stroke="currentColor" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${ZS[e]??ZS.overview}</svg>`,r5='<svg viewBox="0 0 28 30" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" aria-hidden="true"><path d="M3 27V13a11 11 0 0 1 22 0v14M8 27V13a6 6 0 0 1 12 0v14M14 16v11"/></svg>',Lr=["overview","models","services","activity","compute","sources"],e2={overview:"Overview",models:"Models",services:"Services",activity:"Activity",compute:"Local compute",sources:"Sources"},S={data:null,page:location.hash==="#connections"?"services":Lr.includes(location.hash.slice(1))?location.hash.slice(1):"overview",hours:0,filter:"all",search:"",mode:new URLSearchParams(location.search).has("sample")?"sample":"live",info:{},error:"",fetching:!1,timer:null},dt=e=>ea(e,S.data),Wc=null,Jn="",ad=!1,_r=new Map,es=location.hash==="#connections"?"map":"inventory",Wo="all",Nr="",Jc="all",rp="",Ln=0,Qc=null;function hp(){return(Qc?.data!==S.data||Qc.hours!==S.hours)&&(Qc={data:S.data,hours:S.hours,items:KS(S.data,Ue())}),Qc.items}var Sn="all",Pc="",fl="",Mr=null,ed=null,Or=!1,up=!1,wr="deployments";function li(){if(Mr?.data===S.data&&Mr.hours===S.hours)return Mr;let e=Ue(),t=S.data.capacityPools??[],n=S.data.deployments??[],a=new Map(t.map(l=>[l.id,YS(l,S.data,e)]));return Mr={data:S.data,hours:S.hours,items:e,pools:t,deployments:n,usage:a},Mr}var Zc=null;function Ur(){return(Zc?.data!==S.data||Zc.hours!==S.hours)&&(Zc={data:S.data,hours:S.hours,...sd(S.data.records,S.hours,S.data.observedAt),items:wp(S.data.records,S.hours,S.data.observedAt)}),Zc}function Ue(){return Ur().items}function td(e,t=!1){let{start:n,end:a}=Ur();return Rp(e,a-n,t)}function JS(){let{start:e,end:t}=Ur();return $p((t-e)/60)}function u5(){let e=S.data.history??od(S.data.records,S.data.observedAt);return`<div class="history-coverage"><span>Available history <span class="history-dates">${e.first?`${new Date(e.first).toLocaleDateString([],{year:"numeric",month:"short",day:"numeric"})} \u2013 ${new Date(e.last).toLocaleDateString([],{year:"numeric",month:"short",day:"numeric"})}`:"No recorded requests"}</span></span><button class="text-button ${e.coverage==="partial"?"history-partial":""}" data-page="sources">${e.coverage==="partial"?"Partial history \xB7 review sources":"Recorded sources only \u2197"}</button></div>`}function ts(e){let t=new Map;for(let n of Ue()){let a=n[`${e}Id`];if(!a)continue;let l=t.get(a)??{id:a,name:n[e]||a,count:0,models:new Set,related:new Set};l.count+=fn(n,S.data),l.models.add(`${n.provider}:${n.model}`);let i=e==="agent"?n.taskId:n.agent||n.agentId||n.workload;i&&l.related.add(i),t.set(a,l)}return[...t.values()].sort((n,a)=>a.count-n.count||n.name.localeCompare(a.name))}function c5(){let e=ts("agent"),t=ts("task");if(!e.length&&!t.length)return S.data.repository?.references.length?`<button class="text-button" data-page="sources">${q(S.data.repository.references.length)} code & configuration references \u2197</button>`:"Models, connections, and compute. Together, in one place.";let n=new Set(Ue().map(a=>a.route).filter(a=>a&&a!=="Unattributed route")).size;return`<span class="scope-summary" aria-label="Activity in the selected window">${e.length?`<button class="text-button scope-link" data-inspect="agent-list" data-key="all">${q(e.length)} ${e.length===1?"agent":"agents"}</button>`:""}${t.length?`<button class="text-button scope-link" data-inspect="task-list" data-key="all">${q(t.length)} ${t.length===1?"task":"tasks"}</button>`:""}<span>${q(n)} connections</span></span>`}function Po(e=Ue()){let t=e.filter(n=>n.currency==="USD");return{count:dt(e),input:Ic(e.map(n=>n.inputTokens)),output:Ic(e.map(n=>n.outputTokens)),tokens:Ic(e.flatMap(n=>[n.inputTokens,n.outputTokens])),cost:Ic(t.map(n=>n.cost)),costCount:dt(t.filter(n=>n.cost!=null)),estimated:t.some(n=>n.cost!=null&&n.costKind==="estimated"),unknownCostKind:t.some(n=>n.cost!=null&&!["reported","estimated"].includes(n.costKind)),latency:o5(e.filter(n=>n.status!=="running").map(n=>n.durationMs).filter(n=>n!=null)),failures:dt(e.filter(n=>n.status==="failed"))}}function ld(e=Ue(),t=48){let{start:n,end:a}=Ur(),l=(a-n)/t,i=Array.from({length:t},(o,s)=>({at:n+s*l,cloud:0,local:0,unknown:0,paths:Object.fromEntries(Object.keys(Me).map(r=>[r,0]))}));for(let o of e){let s=Math.min(t-1,Math.max(0,Math.floor((Date.parse(o.occurredAt)-n)/l)));i[s][o.location==="private"?"local":o.location]+=fn(o,S.data),i[s].paths[ua(o,S.data)]+=fn(o,S.data)}return i}function t2(e,{color:t="var(--chart)",width:n=90,height:a=28,fill:l=!1,className:i=""}={}){let o=e.filter(u=>u!=null);if(!o.length)return`<svg class="${i}" viewBox="0 0 ${n} ${a}" aria-hidden="true"><path d="M0 ${a-4}h${n}" stroke="var(--line-strong)" stroke-dasharray="2 4"/></svg>`;let s=Math.max(1,...o),r="",c=!1;return e.forEach((u,m)=>{if(u==null){c=!1;return}let f=m*n/Math.max(1,e.length-1),d=a-3-u/s*(a-6);r+=`${c?"L":"M"}${f.toFixed(2)},${d.toFixed(2)} `,c=!0}),`<svg class="${i}" viewBox="0 0 ${n} ${a}" aria-hidden="true">${l&&!e.includes(null)?`<path d="${r}L${n},${a} L0,${a}Z" fill="${t}" opacity=".07"/>`:""}<path d="${r}" fill="none" stroke="${t}" stroke-width="1.25" vector-effect="non-scaling-stroke" stroke-linejoin="round" stroke-linecap="round"/></svg>`}function $r(e){return{detected:"Detected",needs_access:"Needs access",connected:"Connected",partial:"Partial",not_found:"Not connected",unavailable:"Unavailable",disabled:"Disabled",configured:"Configured",declared:"Declared",available:"Available",observed:"Observed",loaded:"Loaded",installed:"Installed",unknown:"Unknown",completed:"Completed",running:"Reported running",failed:"Failed"}[e]??e}function pp(e){return`<span class="state ${_(e)}"><i class="status-dot ${["connected","loaded"].includes(e)?"":["partial","unavailable","failed","needs_access"].includes(e)?"warning":"dim"}"></i>${_($r(e))}</span>`}function Yi(e,t,n=16){return`<span class="identity-label">${Sr(t,n)}<span>${_(e)}</span></span>`}function fa(e,t=14){return Yi(e,Ot(e),t)}function Gi(e,t=16){return Yi(e.model??e.name,xn(e),t)}function n2(e){let t=Ot(e.provider);return t?.key===xn(e)?.key?_(e.provider):Yi(e.provider,t,13)}function gp(e){let t=(S.data.deployments??[]).filter(l=>l.poolIds.includes(e.id)).map(l=>l.provider);t.push(...S.data.inventory.filter(l=>l.poolIds?.includes(e.id)).map(l=>l.name));let a=[...new Set(t.map(l=>l.trim().toLowerCase()))].map(Ot);return a.length&&a.every(l=>l&&l.key===a[0]?.key)?a[0]:Ot(e.name)}function Br(e,t=!1){let n=Me[e];return`<span class="route-badge" data-route-kind="${e}" style="--route-color:${n.color}">${ul(e)}${t?n.label:n.short}</span>`}function Cr(e){let t=new Set(e.map(n=>ua(n,S.data)));return Object.keys(Me).filter(n=>t.has(n))}function d5(e){let t=Cr(e);return t.length?t.map(n=>Br(n)).join(""):'<span class="route-unobserved">No path observed</span>'}function f5(){let e=Xc(Ue(),S.data);return`<div class="route-legend" aria-label="Request path types">${Object.keys(Me).filter(t=>t!=="unknown"||e.unknown).map(t=>Br(t,!0)).join("")}</div>`}function a2(){let e=Ue(),t=Xc(e,S.data),n=rl(S.data);return`<section class="path-summary" aria-label="Requests by path"><div class="path-summary-title"><h2>Request paths</h2><p>${cs(S.hours)} \xB7 recorded only</p></div><div class="path-summary-items">${Object.entries(Me).filter(([a])=>a!=="unknown"||t.unknown).map(([a,l])=>`<div class="path-summary-item" style="--route-color:${l.color}"><div>${Br(a,!0)}${sl(`path-total-${a}`,n?q(t[a]):"\u2014","path-total")}</div><span class="path-share-track" aria-hidden="true"><i style="width:${e.length?t[a]/dt(e)*100:0}%"></i></span></div>`).join("")}</div></section>`}function m5(){let e=S.data,t=!!S.error||Date.now()-Date.parse(e.observedAt)>e.interval*3e3,n=e.sources.filter(o=>["connected","partial"].includes(o.state)).length,a=e.loading?e.loadError?"Collection delayed":"Reading sources":t?"Collection interrupted":`${n} of ${e.sources.length} sources`,l=!e.loading&&(t||n<e.sources.length),i=Lr.map(o=>`<button id="tab-${o}" role="tab" aria-selected="${S.page===o}" aria-controls="terminal-panel" tabindex="${S.page===o?"0":"-1"}" data-ui-key="nav-${o}" data-page="${o}">${e2[o]}</button>`).join("");return`<div class="shell"><header class="terminal-header"><div class="terminal-header-inner">
|
|
150
|
-
<div class="terminal-masthead"><div class="terminal-identity"><button class="brand" data-action="about" aria-label="About OpenMerit">${r5}<span class="wordmark">openmerit</span></button><span class="terminal-product">Inference Terminal</span></div>
|
|
151
|
-
<div class="header-actions"><button class="environment-switch" data-action="workspace" aria-label="Choose environment" title="${_(e.project.name)} \xB7 ${e.mode==="sample"?"Sample environment":"Current project"}"><span class="environment-name">${_(e.project.name)}</span>${e.mode==="sample"?'<span class="environment-mode">Sample</span>':""}<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2" aria-hidden="true"><path d="m5 7 3 3 3-3"/></svg></button><button class="header-search" data-action="search" aria-label="Find in your environment" title="Find anything \xB7 Command K">${mp("search")}<span>Search</span><kbd>\u2318 K</kbd></button></div>
|
|
152
|
-
</div><div class="terminal-navigation"><nav class="terminal-tabs" role="tablist" aria-label="Terminal views">${i}</nav><button class="source-status ${l?"attention":""}" data-page="sources" aria-label="${a}. View source coverage" title="${a} \xB7 ${e.mode==="sample"?"Fictional sample":`Every ${e.interval}s`}"><i class="status-dot ${l?"warning":""}"></i>${sl("coverage-count",a)}${e.mode==="live"&&!t?`<span class="source-interval">${e.interval}s</span>`:""}</button></div>
|
|
153
|
-
</div></header><main id="main" class="main" tabindex="-1"><div id="terminal-panel" role="tabpanel" aria-labelledby="tab-${S.page}">${x5()}</div></main></div>`}function Vi(e,t,n=!0){return`<div class="page-heading"><div><h1>${e}</h1><p>${t}</p></div>${n?`<div class="heading-controls"><span class="collection-time"><i class="status-dot"></i>${sl("freshness",S.error?"Disconnected":`Updated ${as(S.data.observedAt)}`)}</span><div class="segmented" role="group" aria-label="Activity window">${id.map(a=>`<button data-hours="${a}" aria-pressed="${S.hours===a}">${ba(a)}</button>`).join("")}</div></div>`:""}</div>${n?u5():""}`}function h5(){let e=Po(),t=new Set(Ue().map(o=>`${o.provider}:${o.model}`)).size,n=S.data.models.filter(o=>["local","private"].includes(o.location)).length,a=rl(S.data),l=ld().map(o=>a?o.cloud+o.local+o.unknown:null);return`<section class="summary-grid" aria-label="Environment summary">${[["Models in view",S.data.models.length.toString().padStart(2,"0"),`${n} self-hosted \xB7 ${S.data.models.length-n} cloud / other`,null],["Requests observed",a?q(e.count):"\u2014",a?`${t} models used \xB7 ${ba(S.hours)}`:"Connect an activity source",l],["Recorded tokens",st(e.tokens),e.tokens==null?"No token measurements yet":`${st(e.input)} input \xB7 ${st(e.output)} output`,null],["Recorded spend",hl(e.cost),e.cost==null?"Cost coverage not available":`${e.unknownCostKind?"USD \xB7 cost basis incomplete":e.estimated?"Includes estimates":"Reported USD"} \xB7 ${st(e.costCount)} / ${st(e.count)} requests priced`,null]].map(([o,s,r,c])=>`<div class="summary"><div class="summary-label">${o}</div><div class="summary-value">${sl(`summary-${o.toLowerCase().replaceAll(" ","-")}`,s)}</div>${c?t2(c,{className:"summary-spark"}):""}<div class="summary-bottom">${r}</div></div>`).join("")}</section>`}function l2(e=!1){let t=Ue(),n=ts("agent");Jn&&!n.some(d=>d.id===Jn)&&(Jn="");let a=Jn?t.filter(d=>d.agentId===Jn):t,l=IS(a,S.data,{expandAll:ad,expansion:_r}),i=l.groups.length>0&&l.groups.every(d=>d.expanded),o=Math.max(300,Math.max(...l.columns.map(d=>d.length))*58+42),s=new Map,r=[{x:14,width:196},{x:310,width:222},{x:642,width:244}];l.columns.forEach((d,v)=>d.forEach((b,E)=>s.set(b.id,{...r[v],inset:b.groupId?8:0,y:56+(d.length===1?(o-94)/2:E*(o-94)/(d.length-1))})));let c=(d,v)=>_(String(d).length>v?`${String(d).slice(0,v-1)}\u2026`:d),u=d=>{let v=s.get(d.id),b=d.type==="group",E=d.type==="path",p=v.x+(d.groupId?8:0),h=v.width-(d.groupId?8:0),g=d.name,y,M,w=null,T=b&&!d.expanded;if(b)y=`${d.members.length} ${d.label} \xB7 ${q(d.count)} requests`,M=`data-map-group="${_(d.id)}" aria-expanded="${d.expanded}" aria-label="${d.expanded?"Collapse":"Expand"} ${_(d.name)} through ${_(d.names.join(", "))}"`,T&&(g=d.members[0].name,d.side==="model"&&(w=xn(d.members[0].example)));else if(E)y=`${Me[d.kind].short} \xB7 ${q(d.count)} requests`,M=`data-inspect="entry" data-key="${_(d.key)}" aria-label="Inspect connections through ${_(g)}"`,w=Ot(g);else if(d.type==="model"){let O=[...d.deployments.values()];y=O.length===1?`${d.provider} \xB7 ${O[0].name}`:`${d.provider}${O.length>1?` \xB7 ${O.length} deployments`:""}`,M=`data-inspect="map-model" data-key="${_(d.key)}" aria-label="Inspect ${_(g)} served by ${_(d.provider)}"`,w=xn(d.example)}else y=`${q(d.count)} requests \xB7 ${ba(S.hours)}`,M=`data-inspect="${d.type}" data-key="${_(d.inspectKey)}" aria-label="Inspect ${_(g)}"`;let A=E||w?38:12,$=b?47:E&&w?37:12,C=Math.floor((h-A-$)/5.7),D=T?`<rect class="map-stack-back" x="8" y="8" width="${h-16}" height="46" rx="7"/><rect class="map-stack-back" x="4" y="4" width="${h-8}" height="46" rx="7"/>`:"";return`<g class="map-node${E?" route-node":""}${b?" map-group":""}${d.groupId?" map-member":""}" data-ui-key="${_(d.id)}" data-map-node-id="${_(d.id)}" data-map-node-type="${d.type}" role="button" tabindex="0" ${M} ${E?`style="--route-color:${Me[d.kind].color}"`:""} transform="translate(${p} ${v.y-23})"><title>${_(T?`${g} and ${d.members.length-1} more`:g)} \u2014 ${_(y)}</title>${D}<rect width="${h}" height="46" rx="7"/>${E?`<g class="route-node-icon" transform="translate(10 13)">${ul(d.kind)}</g>`:""}${xS(w,E?h-28:12,14)}<text x="${A}" y="19">${c(g,C)}</text><text class="sub" x="${A}" y="34">${c(y,Math.floor((h-A-12)/4.8))}</text>${T?`<text class="map-stack-count" x="${h-12}" y="19" text-anchor="end">+${d.members.length-1}</text>`:b?`<path class="map-disclosure" d="${d.expanded?`M${h-24} 21l4 4 4-4`:`M${h-22} 19l4 4-4 4`}"/>`:""}</g>`},m=l.edges.map(d=>{let v=s.get(d.from),b=s.get(d.to),E=v.x+v.width,p=b.x+b.inset,h=(E+p)/2;return`<path class="map-edge route-thread" style="--route-color:${Me[d.kind].color}" data-nodes="${_(JSON.stringify([...d.related]))}" data-map-segment="${d.segment}" data-request-count="${d.count}" d="M${E} ${v.y}C${h} ${v.y} ${h} ${b.y} ${p} ${b.y}"><title>${q(d.count)} requests</title></path>`}).join(""),f=a.length?`<div class="map-scroll complete-map-scroll" data-ui-key="environment-map-scroll" tabindex="0" role="region" aria-label="Complete environment map. Scroll to explore expanded groups."><svg class="environment-map deployment-map complete-map" style="--map-height:${o}px" viewBox="0 0 900 ${o}" aria-label="All ${Hi(l.workloadCount,"workload")}, ${Hi(l.connectionCount,"entry connection")}, and ${Hi(l.modelCount,"model")} in this scope"><g class="map-column-labels" aria-hidden="true"><text x="14" y="17">AGENTS / WORKLOADS</text><text x="310" y="17">ENTRY CONNECTION</text><text x="642" y="17">MODELS</text></g>${m}${l.columns.map(d=>d.map(u).join("")).join("")}</svg></div>`:'<div class="map-empty"><h3>Your environment will take shape here.</h3><p>Connect existing activity metadata to see workloads, connections, and models.</p><button class="text-button" data-page="sources">Connect a source \u2192</button></div>';return`<section class="panel environment-panel"><div class="panel-head"><div><h2>Environment map</h2><p>${Hi(l.workloadCount,"workload")} \xB7 ${Hi(l.connectionCount,"connection")} \xB7 ${Hi(l.modelCount,"model")}</p></div>${e?"":'<button class="panel-action" data-service-view="map" aria-label="Explore environment">\u2197</button>'}</div><div class="environment-toolbar"><label for="map-agent">Focus${tp({id:"map-agent",label:"Focus environment on an agent",value:Jn,options:[{value:"",label:"All agents & workloads"},...n.map(d=>({value:d.id,label:d.name}))]})}</label><div class="map-controls">${l.groups.length?`<button class="text-button" data-map-expand="${i?"collapse":"expand"}">${i?"Collapse all":"Expand all"}</button>`:""}<button class="text-button" data-inspect="deployment-list" data-key="all">Deployments \u2197</button></div></div>${f}<div class="map-foot">${f5()}<span>${rl(S.data)?`All ${Hi(l.requestCount,"request")} represented \xB7 ${ba(S.hours)}`:"Request coverage unavailable"}</span></div>${a.length?`<div class="map-coverage">${l.groups.length?"Select a stack to reveal its agents or models.":"Select a workload, connection, or model to inspect its recorded details."}</div>`:""}</section>`}function p5(e){let t=e.dataset.mapGroup,n=e.getBoundingClientRect().top;_r.set(t,!(_r.get(t)??ad)),St();let a=[...document.querySelectorAll("[data-map-group]")].find(l=>l.dataset.mapGroup===t);if(a){let l=a.closest(".map-scroll");l.scrollTop+=a.getBoundingClientRect().top-n,a.focus({preventScroll:!0})}}function ni(e){return jS(e,S.data.interval,Date.now())}function nd(e){let t=e.unit==="bytes"?dl:e.unit==="percent"?n=>n==null?"\u2014":`${Math.round(n)}%`:st;return`${t(e.value)}${e.limit!=null&&e.unit!=="percent"?` / ${t(e.limit)}`:""}`}function ns(e){let t=sp(e);return t.filter(a=>a.ratio!=null).sort((a,l)=>l.ratio-a.ratio)[0]??t[0]}function Dr(e){let t=ni(e),n=ns(e),a=li().usage.get(e.id);return`<button class="capacity-row" data-inspect="pool" data-key="${_(e.id)}"><span class="capacity-row-title"><strong>${Yi(e.name,gp(e))}</strong><span class="capacity-status ${t}">${t==="sampled"?"Sampled":t==="stale"?"Stale reading":"No reading"}</span></span><span class="capacity-row-reading"><span>${n?_(n.label):"Capacity unknown"}</span><strong>${n?nd(n):"\u2014"}</strong></span><span class="capacity-track ${t}" aria-hidden="true">${n?.ratio!=null?`<i style="transform:scaleX(${Math.min(1,n.ratio)})"></i>`:""}</span><span class="capacity-row-foot">${a.agents.size} observed agents \xB7 ${e.observedAt?`sample ${as(e.observedAt)}`:"awaiting a source"}</span></button>`}function i2(e=!1){let t=[...li().pools].sort((a,l)=>(ni(l)==="sampled"?ns(l)?.ratio??-1:-2)-(ni(a)==="sampled"?ns(a)?.ratio??-1:-2));return`<section class="panel capacity-panel"><div class="panel-head"><div><h2>Shared capacity</h2><p>${t.filter(a=>ni(a)==="sampled").length} of ${t.length} pools have recent readings</p></div><button class="panel-action" data-inspect="pool-list" data-key="all" aria-label="Inspect all shared capacity pools">\u2197</button></div>${t.length?`<div class="capacity-rows">${t.slice(0,e?t.length:3).map(Dr).join("")}</div>`:'<p class="empty-small">Declare shared pools to connect agents with their limits. Missing readings stay unknown.</p>'}<div class="capacity-foot">Pool totals include all consumers. Sampled independently of inference.</div></section>`}function zr(e=Ue(),t=!1){let n=li().deployments.filter(a=>t||e.some(l=>da(l,S.data)?.id===a.id));return n.length?`<div class="deployment-list">${n.map(a=>{let l=dt(e.filter(i=>da(i,S.data)?.id===a.id));return`<button class="deployment-row" data-inspect="deployment" data-key="${_(a.id)}"><span><strong>${Gi(a)}</strong><small>${_(a.name)} \xB7 ${_(a.location)}</small></span><span>${q(l)}<small>requests \u2197</small></span></button>`}).join("")}</div>`:'<p class="detail-note">No identified deployments in this selection. Supply a deployment ID that matches the declared model and provider.</p>'}function g5(e){let t=li().pools.filter(i=>li().usage.get(i.id).items.some(o=>e.includes(o))),n=dt(e.filter(i=>da(i,S.data))),a=[...new Map(e.map(i=>{let o=ca(i,S.data);return[JSON.stringify(o),o]})).entries()];t.sort((i,o)=>(ni(o)==="sampled"?ns(o)?.ratio??-1:-2)-(ni(i)==="sampled"?ns(i)?.ratio??-1:-2));let l=`<div class="inspector-tabs" role="group" aria-label="Explore agent environment">${[["deployments","Deployments"],["paths","Paths"],["capacity","Capacity"]].map(([i,o])=>`<button data-inspector-tab="${i}" aria-pressed="${wr===i}">${o}</button>`).join("")}</div>`;return wr==="paths"?`${l}<div class="detail-section-title"><h3>Execution paths</h3><span>${a.length} reported</span></div><div class="path-list">${a.map(([i,o])=>`<button class="path-row" data-inspect="path" data-key="${_(i)}">${o.map(s=>`<span class="path-hop" style="--route-color:${Me[s.kind].color}">${ul(s.kind)}${fa(s.name,14)}</span>`).join('<span class="path-arrow" aria-hidden="true">\u2192</span>')}</button>`).join("")}</div>`:wr==="capacity"?`${l}<div class="detail-section-title"><h3>Shared limits & pressure</h3><span>${t.length} pools</span></div>${t.length?t.map(Dr).join(""):'<p class="detail-note">No shared pools are linked by the available metadata.</p>'}<p class="detail-note">Pool readings include all consumers. Shared use does not establish which agent caused pressure.</p>`:`${l}<div class="detail-section-title"><h3>Model deployments</h3><span>${q(n)} / ${q(dt(e))} requests identified</span></div>${zr(e)}`}function o2(e=!1){let t=S.data.models.filter(n=>(S.filter==="all"||n.location===S.filter||S.filter==="local"&&n.location==="private")&&`${n.name} ${n.provider} ${n.modelCreator??""}`.toLowerCase().includes(S.search.toLowerCase()));return e&&(t=S.data.models.slice(0,12)),t.length?`<div class="table-wrap"><table class="data-table model-table"><thead><tr><th scope="col">Model / service</th><th class="state-column" scope="col">State</th><th scope="col">Requests</th><th class="trend-column" scope="col">Activity</th><th class="latency-column" scope="col">Median latency</th><th scope="col">Spend</th></tr></thead><tbody>${t.map(n=>{let a=Ue().filter(o=>o.model===n.name&&o.provider===n.provider),l=Po(a),i=rl(S.data);return`<tr><td><button class="model-name" data-inspect="model" data-key="${_(n.id)}">${Sr(xn(n))}<span><strong>${_(n.name)}</strong><small>${n.state==="declared"?`Declared \xB7 ${n.provider==="Unattributed"?"service not established":_(n.provider)}`:`Served by ${n2(n)} \xB7 ${_(n.location)}`}</small></span></button><div class="model-routes">${d5(a)}</div></td><td class="state-column">${pp(n.state)}</td><td>${sl(`model-requests-${n.id}`,a.length?q(dt(a)):i?"0":"\u2014")}</td><td class="trend-column">${t2(ld(a,18).map(o=>o.cloud+o.local+o.unknown),{className:"table-spark",color:Cr(a).length===1?Me[Cr(a)[0]].color:"var(--chart)"})}</td><td class="latency-column">${sl(`model-latency-${n.id}`,ki(l.latency))}</td><td>${sl(`model-cost-${n.id}`,hl(l.cost))}${l.estimated?'<span title="Includes estimated cost">*</span>':""}</td></tr>`}).join("")}</tbody></table></div><p class="table-foot">${e?`Showing ${t.length} of ${S.data.models.length} models. Configured, loaded, or observed.`:"Usage is limited to connected sources and the selected window. A dash means the measurement is unavailable."}</p>`:`<div class="empty-small">${S.search||S.filter!=="all"?"No models match this view. Try another filter.":"No models identified for this project. Connect its request logs or declare a model or runtime endpoint to bring them into view."}</div>`}function v5(){let e=[...Ue()].sort((t,n)=>Date.parse(n.occurredAt)-Date.parse(t.occurredAt)).slice(0,10);return`<section><div class="section-title"><h2>Recent activity</h2><span class="quiet" style="font-size:10px">${S.data.mode==="sample"?"Sample":"Observed"}</span></div>${e.length?`<ul class="activity-list">${e.map(t=>`<li class="activity-item"><span class="activity-mark route-mark" style="--route-color:${Me[ua(t,S.data)].color}" aria-hidden="true"></span><div class="activity-item-content"><strong>${_(t.workload)}</strong><p>${Gi(t,13)}${t.status==="failed"?" \xB7 failed":t.status==="running"?" \xB7 running":""}</p><div class="recent-route">${Br(ua(t,S.data))}<span>${fa(t.route,12)}</span></div></div><time datetime="${t.occurredAt}">${as(t.occurredAt)}</time></li>`).join("")}</ul><button class="text-button activity-link" data-page="activity">View activity <span>\u2192</span></button>`:`<p class="empty-small">${rl(S.data)?"No requests recorded in this window.":"Request activity is unknown. Connect a request source to see it here."}</p>`}</section>`}function y5(){let e=S.data.sources.filter(t=>["connected","partial"].includes(t.state));return`<footer class="footer"><div class="source-strip"><button class="text-button" data-page="sources"><i class="status-dot"></i>${e.length} ${e.length===1?"source":"sources"} connected</button><span>${S.data.mode==="sample"?"Fictional environment \xB7 no real inference":"Local view \xB7 passive collection"}</span></div><span class="footer-end">OPENMERIT / INFERENCE TERMINAL</span></footer>`}function b5(){let e=Ue();if(!rl(S.data))return'<div class="map-empty"><h3>Request activity is unknown.</h3><p>No readable request source is connected. Configuration and task summaries do not establish request volume.</p><button class="text-button" data-page="sources">View sources \u2192</button></div>';if(!e.length)return'<div class="map-empty"><h3>No activity in this window.</h3><p>Choose a longer window or connect an activity source.</p></div>';let t=ld(e,60),n=Xc(e,S.data),a=t.map(r=>Sn==="all"?Object.values(r.paths).reduce((c,u)=>c+u,0):r.paths[Sn]),l=Math.max(1,...a),i=Sn==="all"?"var(--chart)":Me[Sn].color,o=t.map((r,c)=>{let u=0,m=Object.entries(Me).filter(([d])=>Sn==="all"||Sn===d).map(([d,v])=>{let b=r.paths[d];return u+=b,b?`<rect class="volume-bar" data-path="${d}" x="${c*16+3}" y="${124-u/l*116}" width="10" height="${b/l*116}" fill="${v.color}"/>`:""}).join(""),f=Object.entries(Me).filter(([d])=>r.paths[d]&&(Sn==="all"||Sn===d)).map(([d,v])=>`${r.paths[d]} ${v.label}`).join(", ");return`<g>${m}<rect class="chart-hit" x="${c*16}" y="0" width="16" height="128" data-bin="${c}" tabindex="${c===0?"0":"-1"}" role="img" aria-label="${td(r.at,!0)}: ${a[c]} requests${f?`. ${f}`:""}. Use left and right arrows to inspect."/></g>`}).join(""),s=[["all",{label:"All paths",color:"var(--chart)"}],...Object.entries(Me)];return`<div class="volume-chart activity-chart" style="--chart-color:${i}"><div class="volume-scale" aria-hidden="true"><span>${q(l)}</span><span>${q(Math.round(l/2))}</span><span>0</span></div><div class="volume-plot"><svg viewBox="0 0 960 128" preserveAspectRatio="none" aria-label="${_(Sn==="all"?"All paths":Me[Sn].label)} requests per ${JS()} interval">${[8,66,124].map(r=>`<line class="chart-grid" x1="0" x2="960" y1="${r}" y2="${r}" vector-effect="non-scaling-stroke"/>`).join("")}${o}</svg><div class="volume-times" aria-hidden="true">${[0,15,30,45,59].map(r=>`<span>${td(r===59?Ur().end:t[r].at)}</span>`).join("")}</div></div><div class="chart-tooltip" hidden></div></div><div class="volume-paths" role="group" aria-label="Chart path">${s.map(([r,c])=>`<button data-activity-path="${r}" aria-pressed="${Sn===r}" style="--route-color:${c.color}"><span>${r==="all"?'<span class="all-paths-mark" aria-hidden="true">\u224B</span>':ul(r)}${c.label}</span><strong>${q(r==="all"?dt(e):n[r])}</strong></button>`).join("")}</div><p class="chart-caption">${JS()} intervals \xB7 select a path to isolate its volume</p>`}function S5(){return`${Vi("Your inference environment.",c5())}${h5()}${a2()}<div class="overview-top">${l2()}${i2()}</div><div class="lower-grid"><section><div class="section-title"><h2>Model inventory <span class="badge-count">${S.data.models.length}</span></h2><button class="text-button" data-page="models">All models <span>\u2192</span></button></div>${o2(!0)}</section>${v5()}</div>`}function A5(){return`${Vi("Model inventory","Declarations, runtime inventory, and recorded model use.")}${a2()}<div class="filter-bar"><div class="filter-tabs" role="group" aria-label="Filter models by location">${["all","local","cloud"].map(e=>`<button data-filter="${e}" aria-pressed="${S.filter===e}">${{all:"All models",local:"Self-hosted",cloud:"Cloud"}[e]}</button>`).join("")}</div><input class="filter-input" id="model-search" type="search" aria-label="Search models" placeholder="Find a model\u2026" value="${_(S.search)}"></div><div id="model-results">${o2()}</div>`}function E5(e){return e.types.map(t=>{let n=Er[t];return`<span class="route-badge" style="--route-color:${Me[n.path].color}">${ul(n.path)}${n.label}</span>`}).join("")}function s2(e){let t=[];return e.reported&&t.push("Activity"),e.evidence.some(n=>n.sourceId==="repository")&&t.push("Code & config"),e.evidence.some(n=>n.sourceId==="environment")&&t.push("Environment"),e.evidence.some(n=>n.sourceId==="inventory"||n.sourceId?.startsWith("project:"))&&t.push("Configuration"),!t.length&&e.evidence.length&&t.push("Inventory source"),t.join(" \xB7 ")||"Not reported"}function T5(){let e=hp(),t=e.filter(s=>s.records.length),n=`<div class="service-view-bar"><div class="segmented" role="group" aria-label="Services view">${[["inventory","Inventory"],["map","Environment map"]].map(([s,r])=>`<button data-ui-key="services-view-${s}" data-service-view="${s}" aria-pressed="${es===s}">${r}</button>`).join("")}</div><span class="quiet">${q(e.length)} services \xB7 ${q(t.length)} with activity</span></div>`,a=Vi("Services","Services declared by this project or identified in its recorded data.");if(es==="map")return`${a}${n}${l2(!0)}<div class="environment-detail-grid"><section><div class="section-title"><h2>Model deployments</h2><span class="quiet">Declared deployments and endpoint catalogs</span></div>${zr(Jn?Ue().filter(s=>s.agentId===Jn):Ue(),!Jn)}</section>${i2(!0)}</div>`;let l=e.filter(s=>(Wo==="all"||s.types.includes(Wo))&&[s.name,...s.aliases,...s.endpoints,...s.models.map(r=>r.name)].join(" ").toLowerCase().includes(Nr.toLowerCase())),i=`<div class="service-filter-bar"><div class="filter-tabs" role="group" aria-label="Filter services by type">${[["all","All services"],...Object.entries(Er).map(([s,r])=>[s,r.plural])].map(([s,r])=>`<button data-ui-key="service-filter-${s}" data-service-filter="${s}" aria-pressed="${Wo===s}">${r}<span>${s==="all"?e.length:e.filter(c=>c.types.includes(s)).length}</span></button>`).join("")}</div><input class="filter-input" id="service-search" type="search" aria-label="Search services" placeholder="Find a service or model\u2026" value="${_(Nr)}"></div>`,o=l.length?`<div class="table-wrap"><table class="data-table service-table"><thead><tr><th scope="col">Service</th><th scope="col">Type</th><th scope="col">Models</th><th scope="col">Requests</th><th scope="col">Last activity</th><th scope="col">Capacity</th><th scope="col">Evidence</th></tr></thead><tbody>${l.map(s=>{let r=s.pools,c=r.filter(d=>ni(d)==="sampled"),u=c.map(ns).find(Boolean),m=s.endpoints.join(" \xB7 "),f=s.locations.map(d=>({local:"Local",private:"Private",cloud:"Cloud"})[d]||d).join(" / ");return`<tr data-ui-key="service-row-${_(s.id)}"><td><button class="model-name" data-inspect="service" data-key="${_(s.id)}">${Sr(Ot(s.name),19)}<span><strong>${_(s.name)}</strong><small>${_([f,m].filter(Boolean).join(" \xB7 ")||"Location not reported")}</small></span></button></td><td><div class="service-types">${E5(s)}</div></td><td>${q(s.models.length)}</td><td>${s.records.length?sl(`service-requests-${s.id}`,q(dt(s.records))):"\u2014"}</td><td>${s.lastAt?`<time datetime="${_(s.lastAt)}" title="${_(new Date(s.lastAt).toLocaleString())}">${as(s.lastAt)}</time>`:"Not recorded"}</td><td class="service-capacity">${u?`<span>${nd(u)}</span><small>${_(u.label)}</small>`:`<span>${r.length?"No recent reading":"Not reported"}</span>`}</td><td class="service-evidence"><span>${_(s2(s))}</span><small>${s.records.length?"Recorded in this window":s.reported?"Outside this window":s.configured?"Configured only":s.declared?"Declared only":"Inventory only"}</small></td></tr>`}).join("")}</tbody></table></div>`:`<div class="empty-small"><strong>${e.length?"No services match this view.":"No services identified yet."}</strong><p>${e.length?"Try another type or search term.":"Services appear from configuration, runtime inventory, and recorded activity."}</p>${e.length?'<button class="text-button" data-service-reset>Clear filters \u2192</button>':'<button class="text-button" data-page="sources">View sources \u2192</button>'}</div>`;return`${a}${n}${i}${o}<p class="table-foot">Requests cover the selected window. A request can touch several services; row counts are not additive. Models include inventory and recorded paths. Configuration does not establish connectivity.</p>`}function M5(e){let t=hp().find(c=>c.id===e);if(!t){Ye("Service no longer in view","No matching identity in the latest snapshot.",'<p class="detail-note">Its configuration or recorded metadata may have changed.</p>',"Service");return}let n=Po(t.records),a=t.models.map(c=>S.data.models.find(u=>u.provider===c.provider&&u.name===c.name)??c),l=[["Evidence",s2(t)],["Activity",t.records.length?`${cs(S.hours)}`:t.reported?"Recorded outside this window":"No requests recorded"],["Last recorded activity",t.lastAt?new Date(t.lastAt).toLocaleString():"Not reported"],["Location",t.locations.join(" \xB7 ")||"Not reported"],["Endpoint identity",t.endpoints.join(" \xB7 ")||"Not reported"],["Reported names",t.aliases.join(" \xB7 ")],["Type basis",t.typeEvidence.join(" \xB7 ")]],i=a.length?`<div class="service-model-list">${a.map(c=>`<button class="service-model-row" data-inspect="model" data-key="${_(c.id)}" ${S.data.models.some(u=>u.id===c.id)?"":"disabled"}><span>${Gi(c,16)}<small>${c.state==="declared"?"Declared service":"Served by"} ${n2(c)}</small></span><span aria-hidden="true">\u2197</span></button>`).join("")}</div>`:'<p class="detail-note">No model inventory or recorded model use is available for this service.</p>',o=t.deployments.length?`<div class="deployment-list">${t.deployments.map(c=>`<button class="deployment-row" data-inspect="deployment" data-key="${_(c.id)}"><span><strong>${Gi(c)}</strong><small>${_(c.name)} \xB7 ${_(c.location)}</small></span><span aria-hidden="true">\u2197</span></button>`).join("")}</div>`:'<p class="detail-note">No matching deployments are identified.</p>',s=t.paths.length?`<div class="path-list">${t.paths.sort((c,u)=>u.count-c.count).slice(0,12).map(({path:c,count:u})=>`<button class="path-row" data-inspect="path" data-key="${_(JSON.stringify(c))}">${c.map(m=>`<span class="path-hop" style="--route-color:${Me[m.kind].color}">${ul(m.kind)}${fa(m.name,14)}</span>`).join('<span class="path-arrow" aria-hidden="true">\u2192</span>')}<span class="path-count">${q(u)} requests</span></button>`).join("")}</div>${t.paths.length>12?`<p class="detail-note">Showing the 12 most used of ${t.paths.length} reported paths.</p>`:""}`:'<p class="detail-note">No execution paths are reported in this window.</p>',r=`<details class="identity-evidence" open><summary>Where this identity comes from</summary><div class="service-evidence-list">${t.evidence.map(c=>`<div><strong>${_(c.field)}</strong><span>${_(c.detail)}</span>${c.referenceId?`<button class="text-button" data-inspect="reference" data-key="${_(c.referenceId)}">${_(c.file)}:${c.line} \u2197</button>`:""}${S.data.sources.some(u=>u.id===c.sourceId)?`<button class="text-button" data-inspect="source" data-key="${_(c.sourceId)}">${_(S.data.sources.find(u=>u.id===c.sourceId)?.name||c.sourceId)} \u2197</button>`:`<small>${_(ai(c.sourceId))}</small>`}</div>`).join("")}</div></details>`;Ye(t.name,t.types.map(c=>Er[c].label).join(" \xB7 "),`<div class="agent-metrics">${[["Requests",t.records.length?q(dt(t.records)):"\u2014"],["Models",q(t.models.length)],["Median latency",ki(n.latency)],["Request spend",hl(n.cost)]].map(([c,u])=>`<div><span>${c}</span><strong>${u}</strong></div>`).join("")}</div>${Fn(l)}<p class="detail-note">Usage describes recorded requests touching this service. Spend and latency are whole-request measurements, not this service\u2019s bill or added latency. ${t.records.length?`USD cost is supplied for ${q(n.costCount)} of ${q(dt(t.records))} requests${n.estimated?" and includes estimates":""}${n.unknownCostKind?"; some cost bases were not reported":""}.`:"No usage measurements are available in this window."}</p><div class="detail-section-title"><h3>Models</h3><span>${a.length}</span></div>${i}<div class="detail-section-title"><h3>Linked deployments</h3><span>${t.deployments.length}</span></div>${o}<div class="detail-section-title"><h3>Reported paths</h3><span>${t.paths.length}</span></div>${s}<div class="detail-section-title"><h3>Shared limits & capacity</h3><span>${t.pools.length} ${t.pools.length===1?"pool":"pools"}</span></div>${t.pools.length?t.pools.map(Dr).join(""):'<p class="detail-note">No capacity pools are explicitly linked to this service.</p>'}${r}<p class="detail-note">${S.data.mode==="sample"?"All identities and configuration evidence here are fictional. ":""}Configuration, inventory, and recorded usage do not establish current reachability or available capacity. Endpoint identities exclude credentials, resource paths, and queries. Code declarations may retain a structural API path.</p>`,"Service",{title:Ot(t.name)})}function w5(){let e=_S(S.data,Ue()),t=e.failures==null?e.unknownStatuses?`${e.reportedFailures} reported failed \xB7 ${e.unknownStatuses} ${e.unknownStatuses===1?"status":"statuses"} unknown`:"Failures unknown":`${e.failures} failed`,n=[...Ue()].sort((a,l)=>Date.parse(l.occurredAt)-Date.parse(a.occurredAt));return`${Vi("Inference activity","Usage across your applications, agents, and evaluations.")}<section class="panel activity-panel"><div class="panel-head"><div><h2>Request volume</h2><p>${e.known?`${q(dt(n))} recorded requests in this window`:"Request count unavailable"}</p></div><span class="panel-meta">${t}</span></div>${b5()}</section><div class="section-title"><h2>Recorded activity</h2><span class="quiet" style="font-size:10px">${e.known?n.length>100?"Most recent 100 requests":`${n.length} requests`:"No request coverage"}</span></div>${n.length?`<div class="table-wrap"><table class="data-table activity-table"><thead><tr><th>Workload / task</th><th>Request path</th><th>Scope</th><th>Time</th><th>Duration</th><th>Tokens in / out</th><th>Spend</th><th>Status</th></tr></thead><tbody>${n.slice(0,100).map(a=>`<tr><td><button class="model-name" data-inspect="record" data-key="${_(a.id)}"><span><strong>${_(a.task||a.taskId||a.workload)}</strong><small>${a.task||a.taskId?`${_(a.agent||a.agentId||a.workload)} \xB7 `:""}${Gi(a,14)}</small></span></button></td><td class="activity-route">${Br(ua(a,S.data))}<small>${fa(a.route,12)}</small></td><td>${_(a.scope)}</td><td>${td(a.occurredAt,!0)}</td><td>${ki(a.durationMs)}</td><td>${st(a.inputTokens)} / ${st(a.outputTokens)}</td><td>${a.currency==="USD"?hl(a.cost):"\u2014"}${a.cost!=null&&a.currency==="USD"?a.costKind==="estimated"?"*":a.costKind!=="reported"?'<span title="Cost basis not reported">?</span>':"":""}</td><td>${pp(a.status)}</td></tr>`).join("")}</tbody></table></div>`:'<p class="empty-small">Activity appears when a connected source records it.</p>'}<p class="table-foot">Metadata only. No prompts or responses. An asterisk marks estimated cost; a question mark means its basis was not reported. Amounts without an explicit USD currency are excluded from dollar totals.</p>`}function vp(){return S.data.hosts??[{...S.data.machine,id:"this-machine",observedAt:S.data.observedAt,accelerators:[],loadedModels:S.data.models.filter(e=>e.state==="loaded")}]}function cp(e){return S.error?"stale":Gc(e,S.data.interval)}function FS(e){let t=cp(e);return`<span class="hardware-status ${t}"><i class="status-dot ${t==="stale"?"warning":"dim"}"></i>${{sampled:"Recent",stale:"Stale reading",unknown:"Awaiting data"}[t]}</span>`}function $5(){let e=vp(),t=[...new Set(e.map(u=>u.site).filter(Boolean))],n=[...t,...t.length&&e.some(u=>!u.site)?["Site not supplied"]:[]];fl&&!n.includes(fl)&&(fl="");let a=e.filter(u=>!fl||(u.site||"Site not supplied")===fl),l=a.find(u=>u.id===Pc)??a[0];if(!l)return`${Vi("Local compute","No local compute is linked to this project.",!1)}<p class="detail-note">Host links must be supplied by this project. A localhost endpoint may be a proxy or tunnel; it does not identify the machine serving its models. Hardware exports and explicit runtime host IDs establish those links.</p><button class="text-button" data-page="sources">View sources \u2192</button>`;Pc=l.id;let i=e.filter(u=>cp(u)==="sampled"),o=new Map;for(let u of a){let m=[u.site||(t.length?"Site not supplied":""),u.rack].filter(Boolean).join(" / ");o.has(m)||o.set(m,[]),o.get(m).push(u)}let s=l.loadedModels??[],r=cp(l),c=[...o].map(([u,m])=>`<tbody aria-label="${_(u)}">${u?`<tr class="host-group"><th colspan="7" scope="rowgroup">${_(u)}<span>${m.length} ${m.length===1?"host":"hosts"}</span></th></tr>`:""}${m.map(f=>`<tr class="host-row ${f.id===l.id?"selected":""}"><td><button class="host-name" data-host="${_(f.id)}" aria-pressed="${f.id===l.id}">${_(f.name)}${f.id==="this-machine"?"<small>This machine</small>":""}</button></td><td>${_(f.chip||"Not reported")}</td><td>${f.cpuPercent==null?"\u2014":`${f.cpuPercent.toFixed(1)}%`}</td><td>${dl(f.memoryUsed)}<span class="quiet"> / ${dl(f.memoryTotal)}</span></td><td>${f.accelerators?.length?[...new Set(f.accelerators.map(d=>d.name))].map(d=>`${f.accelerators.filter(v=>v.name===d).length} \xD7 ${_(d)}`).join(" \xB7 "):"Not reported"}</td><td>${f.observedAt&&f.residencyReported!==!1?f.loadedModels?.length??0:"\u2014"}</td><td>${FS(f)}</td></tr>`).join("")}</tbody>`).join("");return`${Vi("Local compute","This machine and self-hosted servers from your exports.",!1)}<div class="fleet-summary"><div><strong>${e.length}</strong><span>${e.length===1?"host":"hosts"} in view</span></div><div><strong>${e.reduce((u,m)=>u+(m.accelerators?.length??0),0)}</strong><span>accelerators listed</span></div><div><strong>${i.length} <span>/ ${e.length}</span></strong><span>hosts with recent readings</span></div><p>Passively sampled \xB7 every ${S.data.interval}s<br>${t.length} reported sites \xB7 ${new Set(e.filter(u=>u.rack).map(u=>`${u.site}/${u.rack}`)).size} racks</p></div><div class="section-title host-inventory-heading"><div><h2>Host inventory</h2><p>Select a host to inspect its resources.</p></div>${n.length?tp({id:"host-location",label:"Filter hosts by reported site",value:fl,options:[{value:"",label:"All reported sites"},...n.map(u=>({value:u,label:u}))]}):""}</div><div class="table-wrap"><table class="data-table host-table"><thead><tr><th scope="col">Host</th><th scope="col">Processor</th><th scope="col">CPU</th><th scope="col">System RAM</th><th scope="col">Accelerators</th><th scope="col">Loaded</th><th scope="col">Reading</th></tr></thead>${c}</table></div><section class="host-detail" aria-label="Selected host"><div class="section-title"><div><h2>${_(l.name)}</h2><p>${_([l.site,l.rack].filter(Boolean).join(" / "))}${l.site||l.rack?" \xB7 ":""}${l.observedAt?`Last sample ${as(l.observedAt)}`:"No measurement received"}</p></div>${FS(l)}</div><div class="host-detail-grid"><section class="panel host-history"><div class="panel-head"><h2>Resource history</h2><span class="panel-meta">${r==="stale"?"Last reported readings":"Whole host"}</span></div><div class="history-chart"><div data-chart="machine-history" data-host-id="${_(l.id)}" data-ui-key="history-${_(l.id)}"></div><p>CPU and system RAM. Host usage is not attributed to inference.</p></div></section><section class="panel host-hardware"><div class="panel-head"><h2>Hardware</h2></div><dl class="host-facts"><div><dt>Name source</dt><dd>${l.id==="this-machine"?S.data.mode==="sample"?"Sample \xB7 hostname":"Operating system \xB7 hostname":`${_(ai(l.sourceId))} \xB7 ${_(l.nameField||"name / id")}`}</dd></div><div><dt>Site / rack</dt><dd>${_([l.site,l.rack].filter(Boolean).join(" / ")||"Not supplied")}</dd></div><div><dt>Processor</dt><dd>${_(l.chip||"Not reported")}</dd></div><div><dt>Cores / architecture</dt><dd>${l.cores??"\u2014"} / ${_(l.arch||"\u2014")}</dd></div><div><dt>System RAM</dt><dd>${dl(l.memoryUsed)} / ${dl(l.memoryTotal)}</dd></div><div><dt>Platform</dt><dd>${_({darwin:"macOS",win32:"Windows",linux:"Linux"}[l.platform]??(l.platform||"Not reported"))}</dd></div></dl><div class="accelerator-list">${(l.accelerators??[]).map(u=>`<div class="accelerator"><div><strong>${_(u.name)}</strong><span>${_([u.id,u.kind&&u.kind!=="unknown"?u.kind.toUpperCase():null].filter(Boolean).join(" \xB7 "))}</span></div>${u.vendor?`<p><span>Vendor</span><strong>${_(u.vendor)}</strong></p>`:""}<p><span>Device memory</span><strong>${dl(u.memoryUsed)} / ${dl(u.memoryTotal)}</strong></p><p><span>Utilization</span><strong>${u.utilization==null?"\u2014":`${u.utilization.toFixed(1)}%`}</strong></p></div>`).join("")||'<p class="empty-small">Accelerator readings not supplied.</p>'}</div></section></div><div class="section-title"><h2>${r==="stale"?"Last reported models":"Loaded models"} <span class="badge-count">${l.residencyReported===!1?"\u2014":s.length}</span></h2><span class="quiet">${_(l.name)}</span></div><div class="loaded-models">${s.map(u=>{let m=S.data.models.find(f=>f.name===u.name&&f.provider===u.provider);return`<article class="loaded-model"><div>${m?`<button class="model-name" data-inspect="model" data-key="${_(m.id)}">${Sr(xn(u))}<strong>${_(u.name)}</strong></button>`:`<strong>${Gi(u)}</strong>`}<p>${fa(u.runtime||u.provider||"Runtime unspecified")}</p></div><div><strong>${dl(u.memoryBytes)}</strong><p>${{accelerator:"Accelerator allocation",system:"System RAM allocation",unified:"Unified memory allocation"}[u.memoryKind]??"Allocation type unspecified"}</p></div></article>`}).join("")||`<p class="empty-small">${r==="unknown"||l.residencyReported===!1?"Model residency has not been reported.":"No loaded models in this host\u2019s latest report."}</p>`}</div><p class="table-foot">Loaded means resident; it does not imply an active request. Allocations are source-reported. Device and system memory can overlap on unified-memory hardware.</p>${R5(l.id)}</section><p class="table-foot">Additional hosts come from your hardware export. Collection stays passive; the terminal does not discover machines or manage workloads.</p>`}function R5(e){let t=(S.data.runtimeStats??[]).filter(n=>n.hostId===e);return t.length?`<div class="section-title"><h2>Runtime counters</h2></div><div class="inventory-grid">${t.map(n=>`<article class="inventory-card"><h3>${fa(n.name,18)}</h3>${Fn([["Running / waiting",`${st(n.running)} / ${st(n.waiting)}`],["Input / output tokens",`${st(n.inputTokens)} / ${st(n.outputTokens)}`],["Finished requests",st(n.finished)]])}<p>Lifetime counters since the runtime reset. Separate from the activity window.</p></article>`).join("")}</div>`:""}var yp={application:"Declaration",candidate:"Candidate",benchmark:"Benchmark",example:"Example",test:"Test",fallback:"Fallback",alias:"Model alias",unlinked:"Unlinked reference"},_5={"non-inference-endpoint":"Hub URL does not identify an inference service","syntax-error":"Could not parse this file","unresolved-expression":"Computed or ambiguous value","unresolved-environment":"Environment value not found in project files","ambiguous-environment":"Multiple environment declarations disagree","unresolved-alias":"YAML alias was not expanded","placeholder-endpoint":"Placeholder endpoint excluded","unsupported-endpoint":"Endpoint could not be safely indexed","unsupported-value":"Value is not a supported identifier","model-pattern":"Model pattern, not a concrete model","changed-during-read":"File changed while being read; retried next pass","scan-limit":"Scan reached its configured bounds","oversized-file":"File exceeds the read limit","unreadable-file":"File could not be read","unreadable-directory":"Directory could not be read","binary-file":"Binary content skipped","syntax-budget":"Syntax complexity limit reached"};function r2(e=[],t="Declaration evidence"){let n=(S.data.repository?.references??[]).filter(a=>e.includes(a.id));return n.length?`<div class="detail-section-title"><h3>${_(t)}</h3></div><div class="service-model-list">${n.map(a=>`<button class="service-model-row" data-inspect="reference" data-key="${_(a.id)}"><span>${_(a.file)}:${a.line}<small>${_(a.field)} \xB7 ${_(yp[a.context]||a.context)}</small></span><span aria-hidden="true">\u2197</span></button>`).join("")}</div><p class="detail-note">A declaration is not a request or proof that this model is available.</p>`:""}function N5(){let e=S.data.repository,t=e?.progress;if(!t||t.phase==="complete")return"";let n=t.phase==="failed",a=n?"Repository indexing interrupted":t.phase==="discovering"?"Finding project files":t.phase==="resolving"?"Linking declarations":t.phase==="queued"?"Preparing repository index":"Indexing code & configuration",l=n?"Showing the last available declarations. Retrying in 60s.":t.total!=null?`${q(t.processed)} of ${q(t.total)} files checked${t.reused?` \xB7 ${q(t.reused)} unchanged`:""}`:`${q(t.discovered)} supported files found`;return`<section class="index-progress${n?" interrupted":""}" aria-label="Repository indexing"><div class="index-progress-copy"><strong role="status">${a}</strong><span>${l}</span></div>${n?"":`<progress aria-label="Files checked" ${t.total!=null&&t.total>0?`max="${t.total}" value="${t.processed}"`:""}></progress>`}<button class="text-button" data-page="sources">Coverage \u2192</button><small>${e.checkedAt?"Available declarations remain usable while the index updates.":"Results appear as files are read. Request collection runs separately."}</small></section>`}function u2(e=!0){let t=S.data.repository;if(!t)return"";let n=t.summary;return`${Fn([["Files indexed",q(n.filesIndexed??n.filesRead)],["Files read this pass",q(n.filesRead)],...t.progress?[["Index state",{complete:"Up to date",queued:"Preparing",discovering:"Finding files",indexing:"Reading files",resolving:"Linking declarations",failed:"Interrupted"}[t.progress.phase]||t.progress.phase],["Files checked",`${q(t.progress.processed)} / ${t.progress.total==null?"discovering":q(t.progress.total)}`],["Parsed this pass",q(t.progress.parsed)],["Reused this pass",q(t.progress.reused)],["Elapsed",`${(t.progress.elapsedMs/1e3).toFixed(1)}s`]]:[],["Metadata references",q(n.declarations)],["Read this pass",`${(n.bytesRead/1024).toLocaleString(void 0,{maximumFractionDigits:1})} KiB`],...Object.entries(n.skipped).map(([a,l])=>[`Skipped \xB7 ${a}`,q(l)])])}${e?`<button class="text-button" data-inspect="index-issues" data-key="all">${q(n.unresolved)} coverage notes \u2197</button>`:""}<p class="detail-note">For a report containing only coverage counts, run <code>openmerit dash --diagnostics</code>. It contains no source paths, endpoint names, model names, or credentials.</p>`}function O5(){let e=S.data.repository;e&&Ye("Index coverage","What the static reader could not establish.",`${u2(!1)}<div class="service-evidence-list">${e.issues.map(t=>`<div><strong>${_(_5[t.code]||t.code)}</strong><span>${_(t.file||"Repository")}${t.file?`:${t.line}`:""}</span>${t.field?`<small>${_(t.field)}</small>`:""}</div>`).join("")}</div>${e.summary.unresolved>e.issues.length?`<p class="detail-note">Showing ${e.issues.length} of ${e.summary.unresolved} notes.</p>`:""}<p class="detail-note">Static reading cannot resolve imported values, arbitrary expressions, dynamic routes, or runtime environment overrides. Missing declarations do not mean the application uses no inference.</p>`)}function C5(e){let t=S.data.repository,n=t?.references.find(l=>l.id===e);if(!n)return;let a=t.references.filter(l=>n.endpointIds?.includes(l.id)||l.endpointIds?.includes(n.id)||n.kind==="task"&&l.kind==="model"&&l.file===n.file&&l.task===n.value);Ye(n.value,`${n.kind==="task"?"Call site / task declaration":n.kind==="model"?"Model declaration":"Endpoint declaration"} \xB7 ${yp[n.context]||n.context}`,`${Fn([["Source",`${n.file}:${n.line}`],["Field",n.field],["Basis",n.basis],...n.via?[["Referenced declaration",`${n.via.file}:${n.via.line}`]]:[],...n.task?[["Enclosing function",n.task]]:[],...n.endpoint?[["Service identity",n.endpoint.service],["Role",Er[n.endpoint.serviceType]?.label||"Unclassified"],["Path detail",n.endpoint.pathRedacted?"Resource path omitted":"Structural API path only"]]:[],...n.localLibrary?[["Declaration","Local model library; residency unknown"]]:[]])}${a.length?` ${r2(a.map(l=>l.id),"Linked declarations")}`:""}<p class="detail-note">Found by reading syntax, without executing this project. This is not evidence of a completed task, a running agent, a reachable endpoint, or a loaded model. Runtime overrides and unreported routing remain unknown.</p>`)}function D5(){let e=S.data.repository;if(!e)return"";let t=e.references,n=t.filter(i=>(Jc==="all"||i.kind===Jc)&&[i.value,i.file,i.field,i.context].join(" ").toLowerCase().includes(rp.toLowerCase())),a=Math.max(1,Math.ceil(n.length/25));Ln=Math.max(0,Math.min(Ln,a-1));let l=n.slice(Ln*25,Ln*25+25);return`<section class="repository-index"><div class="section-title"><div><h2>Code & configuration</h2><p class="quiet">${q(e.summary.filesIndexed??e.summary.filesRead)} files indexed \xB7 ${q(t.length)} references \xB7 no code executed</p></div><button class="text-button" data-inspect="index-issues" data-key="all">${q(e.summary.unresolved)} coverage notes \u2197</button></div><div class="service-filter-bar"><div class="filter-tabs" role="group" aria-label="Filter code references">${[["all","All references"],["endpoint","Endpoints"],["model","Models"],["task","Call sites & tasks"]].map(([i,o])=>`<button data-ui-key="reference-kind-${i}" data-reference-kind="${i}" aria-pressed="${Jc===i}">${o}<span>${i==="all"?t.length:t.filter(s=>s.kind===i).length}</span></button>`).join("")}</div><input class="filter-input" type="search" id="reference-search" aria-label="Search code references" placeholder="Find a declaration or file\u2026" value="${_(rp)}"></div>${l.length?`<div class="table-wrap"><table class="data-table reference-table"><thead><tr><th>Declaration</th><th>Context</th><th>Evidence</th></tr></thead><tbody>${l.map(i=>`<tr data-ui-key="reference-${_(i.id)}"><td><button class="model-name" data-inspect="reference" data-key="${_(i.id)}"><span><strong>${_(i.value)}</strong><small>${i.kind==="task"?"Call site / task":i.kind==="model"?"Model":"Endpoint"}</small></span></button></td><td>${_(yp[i.context]||i.context)}</td><td><button class="text-button reference-file" data-inspect="reference" data-key="${_(i.id)}">${_(i.file)}:${i.line} \u2197</button></td></tr>`).join("")}</tbody></table></div>`:`<p class="empty-small">${t.length?"No declarations match this view.":e.progress&&e.progress.phase!=="complete"?"The repository index is still incomplete. Declarations will appear here as they are read.":"No supported inference declarations found. Review coverage for skipped or unresolved files."}</p>`}<div class="reference-pagination"><span class="quiet">${n.length?`${Ln*25+1}\u2013${Ln*25+l.length} of ${n.length}`:"0 references"}</span>${a>1?`<button class="text-button" data-reference-page="${Ln-1}" ${Ln===0?"disabled":""}>\u2190 Previous</button><button class="text-button" data-reference-page="${Ln+1}" ${Ln===a-1?"disabled":""}>Next \u2192</button>`:""}</div><p class="table-foot">Declarations are separate from recorded usage. Examples, benchmarks, candidates, fallbacks, aliases and unlinked references are retained here; they do not add to application model or service inventory.</p></section>`}function z5(){let e=S.data.discovery,t=S.data.sources.filter(a=>a.state==="needs_access").length,n=e?`<div class="discovery-summary"><div><strong>${e.enabled?"Automatic discovery":"Automatic discovery off"}</strong><span>${e.enabled?"Code & configuration \xB7 saved request logs \xB7 linked runtimes":"Automatic discovery is disabled for this run."}</span></div><span>${t?`${t} source${t===1?" needs":"s need"} access`:e.enabled?`Checks every ${e.intervalSeconds}s`:"Read-only collection"}</span></div>`:"";return`${Vi("Sources & coverage","What your environment exposes, and what the terminal can read.",!1)}${n}${D5()}<div class="source-list">${S.data.sources.map(a=>`<button class="source-row" data-inspect="source" data-key="${_(a.id)}"><span><h3>${fa(a.name,18)}</h3><p>${_(a.detail)}</p>${a.coverage?`<span class="source-coverage">${a.coverage.map(_).join(" \xB7 ")}</span>`:""}${a.limits?.length?`<span class="source-coverage">${a.limits.map(l=>`${q(l.omitted)} ${_(l.collection)} omitted \xB7 limit ${q(l.limit)}`).join("; ")}</span>`:""}</span><span class="source-kind">${_(a.kind)}</span>${pp(a.state)}<span class="quiet">\u2197</span></button>`).join("")}</div><section class="panel instruction-panel"><h2>${S.data.mode==="sample"?"Discovery starts on your machine.":"Your existing data, connected."}</h2><p>Running <code>openmerit dash</code> indexes supported code/configuration and saved request logs. Static declarations remain separate from usage. Usage belongs to this application; coding-harness usage is excluded. Sources show which records contribute to totals and which could not be reconciled.</p><button class="button" data-action="connect">Source details ${mp("arrow")}</button><button class="text-button" data-action="api" style="margin-left:18px">Read from an agent \u2197</button></section>`}function x5(){if(S.data.loading)return`${S.error?`<div class="notice">${_(S.error)}</div>`:""}<section class="terminal-loading" role="status"><h1>${S.data.loadError?"Waiting for project sources":"Opening your inference terminal."}</h1><p>${S.data.loadError?"The first collection did not finish. Retrying automatically; your application is unaffected.":"Reading saved activity and configuration. Your application can keep running."}</p><progress aria-label="Reading project sources"></progress><span>Data appears as it becomes available.</span></section>`;let e=Date.now()-Date.parse(S.data.observedAt)>S.data.interval*3e3,t=S.data.mode==="sample",n=S.data.discovery?.reconciliation,a=S.data.sources.filter(s=>s.limits?.length),l=a.length?`<div class="notice" role="status">Inventory is incomplete. ${a.length} ${a.length===1?"source reached a collection limit":"sources reached collection limits"}. <button class="text-button" data-page="sources">Review omitted entries \u2192</button></div>`:"",i=!t&&(n?.excluded||n?.conflicts)?`<div class="notice" role="status">${n.excluded?`${q(n.excluded)} records are excluded from totals because source overlap is unresolved. `:""}${n.conflicts?`${q(n.conflicts)} requests have conflicting source records. `:""}<button class="text-button" data-page="sources">Review sources \u2192</button></div>`:"",o={overview:S5,models:A5,services:T5,activity:w5,compute:$5,sources:z5}[S.page]();return`${S.error?`<div class="notice" role="status">${_(S.error)}</div>`:e?'<div class="notice" role="status">Collection is delayed. Showing the last available snapshot.</div>':""}${t?`<div class="sample-disclosure"><span>Sample environment. Names, requests, and hardware are fictional.</span>${S.info.defaultMode!=="sample"?'<button data-action="live">View your environment \u2192</button>':""}</div>`:""}${i}${l}${N5()}${o}${y5()}`}function St({focusMain:e=!1,focusTab:t=!1}={}){try{return L5({focusMain:e,focusTab:t})}catch(n){throw Wn("terminal_error",{code:"render_error",...Tr(n)}),n}}function L5({focusMain:e=!1,focusTab:t=!1}={}){cl();let n=!Ce("#terminal-panel"),a=document.activeElement,l=a?.getAttribute("role")==="tab"?a.dataset.page:null,i=a?.dataset?.hours,o=a?.dataset?.filter,s=window.scrollY;if($S(m5(),S.data,S.error),n&&Rr(Ce(`#tab-${S.page}`)),t){let r=Ce(`#tab-${S.page}`);r?.focus({preventScroll:!0}),Rr(r),window.scrollTo(0,0)}else e?(Ce("#main").focus({preventScroll:!0}),Rr(Ce(`#tab-${S.page}`)),window.scrollTo(0,0)):(l&&(document.querySelectorAll('.terminal-tabs [role="tab"]').forEach(r=>{r.tabIndex=r.dataset.page===l?0:-1}),Ce(`#tab-${l}`)?.focus({preventScroll:!0})),i&&Ce(`[data-hours="${i}"]`)?.focus({preventScroll:!0}),o&&Ce(`[data-filter="${o}"]`)?.focus({preventScroll:!0}),window.scrollTo(0,s))}function c2(e){let t=new URLSearchParams;return e==="sample"&&t.set("sample","1"),t.size?`?${t}`:""}function ji(e,{focusTab:t=!1}={}){e==="connections"&&(e="services",es="map"),Lr.includes(e)&&(S.page=e,Wn("terminal_page_viewed",{page:e}),e==="services"&&es==="map"&&Wn("terminal_page_viewed",{page:"connections"}),S.filter="all",S.search="",history.replaceState(null,"",`${location.pathname}${c2(S.mode)}#${e}`),St({focusMain:!t,focusTab:t}))}function Rr(e){if(!e)return;let t=e.closest(".terminal-tabs"),n=e.offsetLeft,a=n+e.offsetWidth,l=parseFloat(getComputedStyle(t).paddingRight)||0;n<t.scrollLeft?t.scrollLeft=n:a>t.scrollLeft+t.clientWidth-l&&(t.scrollLeft=a-t.clientWidth+l)}window.addEventListener("resize",()=>Rr(document.activeElement?.matches('.terminal-tabs [role="tab"]')?document.activeElement:Ce(`#tab-${S.page}`)));function U5(){let e=[...S.data.taskSummaries??[]].sort((t,n)=>Date.parse(n.occurredAt)-Date.parse(t.occurredAt));return e.length?`<details class="identity-evidence"><summary>${q(e.length)} retained task ${e.length===1?"summary":"summaries"}</summary><p class="detail-note">Task-level evidence only. These values are excluded from request totals, charts, tokens, and spend.</p>${e.slice(0,100).map(t=>`<div class="detail-section-title"><h3>${_(t.workload)}</h3><span>${_(new Date(t.occurredAt).toLocaleString())}</span></div>${Fn([["Model reported by task",t.model],["Input / output tokens",`${st(t.inputTokens)} / ${st(t.outputTokens)}`],["Cost basis",["reported","estimated"].includes(t.costKind)?t.costKind:"Not supplied"],["Task cost",t.currency==="USD"?hl(t.cost):t.cost==null?"Not supplied":`${st(t.cost)} \xB7 currency unknown or unsupported`]])}`).join("")}${e.length>100?'<p class="detail-note">Showing the latest 100 summaries. The JSON snapshot contains all retained summaries.</p>':""}</details>`:""}function ai(e){return S.data.sources.find(t=>t.id===e)?.detail||e}function B5(e,t){let n=[...new Set(e.map(l=>l[t]).filter(Boolean))],a=[...new Set(e.map(l=>l[t]?t:`${t}Id`))];return`<details class="identity-evidence"><summary>Where this name comes from</summary>${Fn([[`${t==="agent"?"Agent":"Task"} ID`,e[0]?.[`${t}Id`]||"Not supplied"],["Display name",n.join(" \xB7 ")||"Not supplied; displaying the ID"],["Metadata fields",a.join(", ")],["Source",[...new Set(e.map(l=>ai(l.sourceId)))].join(" \xB7 ")]])}<p>${S.data.mode==="sample"?"Fictional example fields from the sample export. These are not files or agents discovered in your project.":"Copied from recorded metadata. The terminal does not infer a role or task description from code or prompts."}</p></details>`}function H5(){return`<p class="detail-note">${S.data.mode==="sample"?"Sample names are fictional export fields, not discovered agents. ":""}Names come from recorded metadata; missing names use the supplied ID. Only explicit agent IDs establish these links.</p>`}function dp(e){return[["Model creator",e.creatorConflict?"Conflicting reports":e.modelCreator||"Not reported"],...e.modelCreator||e.creatorConflict?[["Creator source",(e.creatorSources??[e.sourceId]).filter(Boolean).map(ai).join(" \xB7 ")||"Not supplied"]]:[]]}function Fn(e){return`<dl class="detail-list">${e.map(([t,n,a])=>`<div><dt>${_(t)}</dt><dd>${a==="models"?`<span class="identity-list">${n.map(l=>Gi(l,15)).join("")}</span>`:a==="services"?`<span class="identity-list">${n.map(l=>fa(l,15)).join("")}</span>`:["Provider","Provider / runtime","Served by","Model creator","Connection"].includes(t)?fa(n,15):_(n)}</dd></div>`).join("")}</dl>`}function Ye(e,t,n,a="",l={}){Or||(ed=null);let i=Ce("#inspector");i.classList.toggle("environment-inspector",["Agent environment","Deployment","Shared capacity","Reported path","Service"].includes(a));let o=`<div class="inspector-head"><button class="close-button" data-action="close" aria-label="Close details">\xD7</button><h2 id="inspector-title">${Yi(e,l.title,24)}</h2><p>${Yi(t,l.subtitle,15)}</p></div><div class="inspector-body">${n}</div>`;if(up){RS(o);return}i.open||(Wc=document.activeElement),i.innerHTML=o,i.showModal(),i.scrollTop=0}function fp(){if(!(!ed||!Ce("#inspector").open)){Or=!0,up=!0;try{bp(...ed)}finally{Or=!1,up=!1}}}function ti(e,t,n){qi("inspect",e==="map-model"?"model":e==="entry"?"path":e),ed=[e,t,n],wr="deployments",Or=!0;try{bp(e,t,n)}finally{Or=!1}}function bp(e,t,n){if(e==="map-model"){let a=S.data.models.find(l=>JSON.stringify([l.provider,l.name])===t);a?bp("model",a.id):Ye("Model no longer in view","Activity changed since the map was drawn.",'<p class="detail-note">Choose a model from the current inventory.</p>');return}if(e==="service"){M5(t);return}if(e==="reference"){C5(t);return}if(e==="index-issues"){O5();return}if(!q5(e,t))if(e==="agent-list"||e==="task-list"){let a=e==="agent-list"?"agent":"task",l=ts(a);Ye(a==="agent"?"Agents in view":"Tasks in view",`${q(l.length)} recorded \xB7 ${ba(S.hours)}`,`<div class="entity-head"><span>${a==="agent"?"Agent":"Task"}</span><span>Models</span><span>Requests</span></div><div class="entity-list">${l.map(i=>`<button class="entity-row" data-inspect="${a}" data-key="${_(i.id)}"><span><strong>${_(i.name)}</strong><small>${a==="agent"?`${i.related.size} ${i.related.size===1?"task":"tasks"} observed`:_([...i.related].join(", "))}</small></span><span>${i.models.size}</span><span>${q(i.count)}</span></button>`).join("")}</div><p class="detail-note">Only source-reported IDs in the selected window are counted. Names use exported labels or fall back to the ID; the terminal does not discover agent roles from code. Request activity does not establish task completion.</p>`,"Observed activity")}else if(e==="agent"||e==="task"){let a=Ue().filter(o=>o[`${e}Id`]===t);if(!a.length){Ye("No activity in this window",`${e} \xB7 ${t}`,'<p class="detail-note">This identity no longer has retained activity in the selected window.</p>',"Agent environment");return}let l=Po(a),i=a[0][e]||t;Ye(i,`Recorded ${e} \xB7 ${ba(S.hours)}`,`<button class="text-button" data-inspect="${e}-list" data-key="all">\u2190 All ${e==="agent"?"agents":"tasks"}</button>${e==="agent"?`<button class="text-button agent-map-link" data-focus-agent="${_(t)}">Focus on map \u2197</button>`:""}<div class="agent-metrics">${[["Requests",q(dt(a))],["Models",q(new Set(a.map(o=>`${o.provider}:${o.model}`)).size)],["Median latency",ki(l.latency)],["Recorded spend",hl(l.cost)]].map(([o,s])=>`<div><span>${o}</span><strong>${s}</strong></div>`).join("")}</div>${B5(a,e)}${g5(a)}<p class="detail-caption">${e==="agent"?"Tasks observed":"Agents observed"}</p><p class="muted">${_([...new Set(a.map(o=>e==="agent"?o.task||o.taskId:o.agent||o.agentId).filter(Boolean))].join(" \xB7 ")||"Not supplied")}</p><p class="detail-note">Reported inference metadata only. Task lifecycle and agent orchestration remain outside the terminal.</p>`,e==="agent"?"Agent environment":"Observed activity")}else if(e==="model"){let a=S.data.models.find(s=>s.id===t);if(!a)return;let l=Ue().filter(s=>s.model===a.name&&s.provider===a.provider),i=Po(l),o=rl(S.data);Ye(a.name,a.state==="declared"?"Declared in code or configuration":`Served by ${a.provider} \xB7 ${a.location}`,`${r2(a.declarationIds)}${Fn([[a.state==="declared"?"Declared service":"Served by",a.provider],...dp(a),["State",$r(a.state)],["Observed paths",Cr(l).map(s=>Me[s].label).join(", ")||(o?"Not observed":"Unavailable")],["Observed requests",o?q(dt(l)):"Unavailable"],["Window",cs(S.hours)],["Input / output tokens",`${st(i.input)} / ${st(i.output)}`],["Median latency",ki(i.latency)],["Recorded spend",hl(i.cost)],["Cost coverage",o?`${i.costCount} of ${dt(l)} requests`:"Unavailable"],...a.memoryBytes!=null?[["Reported VRAM allocation",dl(a.memoryBytes)]]:[],...a.parameters?[["Parameters",a.parameters]]:[],...a.quantization?[["Quantization",a.quantization]]:[]])}<div class="detail-section-title"><h3>Deployments</h3></div>${zr(l)}<p class="detail-caption">Used by</p><p class="muted">${_([...new Set(l.map(s=>s.workload))].join(", ")||(o?"No use observed in this window.":"Request activity is unavailable."))}</p><p class="detail-note">${a.state==="loaded"?"Loaded means resident in memory, not necessarily generating. ":""}Usage reflects connected sources only. Missing cost and timing measurements are not treated as zero.</p>`,"Model inventory",{title:xn(a),subtitle:Ot(a.provider)?.key!==xn(a)?.key?Ot(a.provider):null})}else if(e==="source"){let a=S.data.sources.find(l=>l.id===t);if(!a)return;Ye(a.name,a.kind,`${Fn([["Connection",$r(a.state)],["Location",a.detail],...a.coverage?[["Provides",a.coverage.join(" \xB7 ")]]:[],...a.access?[["Access",a.access]]:[],["Last checked",a.updatedAt?s5(a.updatedAt):"No successful check"],...a.records!=null?[["Records retained",q(a.records)]]:[],...a.summaries!=null?[["Task summaries retained",q(a.summaries)]]:[],...a.activity?[["Included in totals",q(a.activity.included)],["Matching records reconciled",q(a.activity.duplicates)],["Unresolved overlap",q(a.activity.excluded)]]:[]])}<p class="detail-note">${_(a.note)}</p>${a.id==="openmerit"?U5():a.id==="repository"?u2():""}<div class="modal-actions"><button class="button" data-action="connect">Source setup \u2192</button></div>`,"Source coverage",{title:Ot(a.name)})}else if(e==="record"){let a=Ue().find(l=>l.id===t);if(!a)return;Ye(a.workload,a.model,`${Fn([["Scope",a.scope],...a.agentId?[["Agent ID",a.agentId],["Agent name",a.agent||"Not supplied"]]:[],...a.taskId?[["Task ID",a.taskId],["Task name",a.task||"Not supplied"]]:[],["Served by",a.provider],...dp(a),["Connection",a.route],["Path type",Me[ua(a,S.data)].label],["Status",$r(a.status)],["Recorded at",new Date(a.occurredAt).toLocaleString()],["Duration",ki(a.durationMs)],["Input / output tokens",`${st(a.inputTokens)} / ${st(a.outputTokens)}`],["Cache read tokens",st(a.cacheReadTokens)],["Cost",a.cost==null?"Not supplied":a.currency==="USD"?hl(a.cost):`${st(a.cost)} \xB7 currency unknown or unsupported`],["Cost basis",a.cost==null||a.costKind==="unknown"?"Not supplied":a.costKind],["Sources",(a.sourceIds??[a.sourceId]).map(ai).join(" \xB7 ")],...a.requestId?[["Request ID",a.requestId]]:[],...a.evidenceFormat?[["Record format",a.evidenceFormat]]:[],...a.conflictingFields?.length?[["Conflicting fields",a.conflictingFields.join(", ")]]:[]])}<p class="detail-note">This is a metadata summary. Source files may contain prompts and responses. Only the displayed metadata is retained; conversation content is discarded.</p>`,"Recorded activity",{subtitle:xn(a)})}else{let a=Ue().filter(i=>i[e==="route"?"route":"workload"]===t&&(e!=="route"||!n||ua(i,S.data)===n)),l=Po(a);Ye(t,e==="route"?"Observed connection":"Observed workload",`${Fn([["Requests",q(dt(a))],["Path types",Cr(a).map(i=>Me[i].label).join(", ")||"Not observed"],["Models",[...new Map(a.map(i=>[`${i.provider}:${i.model}`,i])).values()],"models"],["Providers",[...new Set(a.map(i=>i.provider))],"services"],["Scope",[...new Set(a.map(i=>i.scope))].join(", ")],["Median latency",ki(l.latency)],["Recorded spend",hl(l.cost)]])}<p class="detail-note">Connections are taken from source metadata. They describe reported paths, not a network inspection or an enforced routing policy.</p>`,"Environment map",{title:e==="route"?Ot(t):null})}}function q5(e,t){let n=li();if(e==="deployment-list")Ye("Model deployments",`${n.deployments.length} declared or catalog entries`,`${zr(Ue(),!0)}<p class="detail-note">Catalog entries identify a model at an endpoint; physical placement requires explicit host metadata. Requests join only by an explicit deployment ID with a matching model and provider.</p>`,"Deployment");else if(e==="deployment"){let a=n.deployments.find(r=>r.id===t);if(!a)return Ye("Deployment unavailable",t,'<p class="detail-note">This deployment is absent from the latest inventory.</p>',"Deployment"),!0;let l=Ue().filter(r=>da(r,S.data)?.id===t),i=new Map(l.filter(r=>r.agentId).map(r=>[r.agentId,r.agent||r.agentId])),o=n.pools.filter(r=>a.poolIds.includes(r.id)),s=vp().find(r=>r.id===a.hostId);Ye(a.model,`${a.name} \xB7 ${a.location}`,`<button class="text-button" data-inspect="deployment-list" data-key="all">\u2190 All deployments</button>${Fn([["Deployment ID",a.id],["Served by",a.provider],...dp(a),["Serving mode",{shared:"Shared API",dedicated:"Dedicated deployment","self-hosted":"Self-hosted runtime"}[a.servingMode]||"Not reported"],["Inventory state",$r(a.state)],["Requests in window",q(dt(l))],["Observed agents",q(i.size)],["Identity source",ai(a.sourceId)],["Host",s?.name||a.hostId||"Not reported"],["Hardware",s?.accelerators?.length?s.accelerators.map(r=>r.name).join(" \xB7 "):"Not reported"]])}${s?`<button class="text-button activity-link" data-host="${_(s.id)}">Inspect ${_(s.name)} \u2192</button>`:""}<div class="detail-section-title"><h3>Shared capacity</h3><span>${o.length} linked pools</span></div>${o.length?o.map(Dr).join(""):'<p class="detail-note">No resource pool is declared for this deployment.</p>'}<div class="detail-section-title"><h3>Agents recorded on this deployment</h3></div>${WS(i)}${H5()}<p class="detail-note">A declared or loaded deployment does not guarantee readiness. Pool readings cover all consumers and are separate from request counts.</p>`,"Deployment",{title:xn(a)})}else if(e==="pool-list")Ye("Shared capacity",`${n.pools.length} declared or runtime-discovered pools`,`${n.pools.map(Dr).join("")}<p class="detail-note">Readings retain their source timestamps. No reading means capacity is unknown.</p>`,"Shared capacity");else if(e==="pool"){let a=n.pools.find(s=>s.id===t);if(!a)return Ye("Capacity unavailable",t,'<p class="detail-note">This pool is absent from the latest snapshot.</p>',"Shared capacity"),!0;let l=n.usage.get(t),i=ni(a),o=sp(a);Ye(a.name,`${a.kind==="quota"?"Shared quota":a.kind==="runtime"?"Inference runtime":"Shared connection"} \xB7 ${i==="sampled"?"Sampled":i==="stale"?"Reading is stale":"No capacity reading"}`,`<button class="text-button" data-inspect="pool-list" data-key="all">\u2190 All shared pools</button><div class="pool-sample-note ${i}">${a.observedAt?`Sampled ${_(new Date(a.observedAt).toLocaleString())} \xB7 ${as(a.observedAt)}`:"The source has not supplied a usable reading."}${i==="stale"?"<br>Older than three collection intervals. Current pressure is unknown.":""}</div><div class="pool-readings">${o.map(s=>`<div class="pool-reading"><div><span>${_(s.label)}</span><strong>${nd(s)}</strong></div>${s.ratio!=null?`<div class="capacity-track ${i}" role="meter" aria-label="${_(s.label)}" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${Math.min(100,Math.round(s.ratio*100))}" aria-valuetext="${_(nd(s))}"><i style="transform:scaleX(${Math.min(1,s.ratio)})"></i></div>`:""}</div>`).join("")}</div>${Fn([["Name source",a.id.startsWith("runtime:")?ai(a.sourceId):".openmerit/terminal.json \xB7 capacityPools"],["Readings source",ai(a.sourceId)],["Quota window",a.windowSeconds!=null?`${a.windowSeconds} seconds`:"Not supplied"],["Reported reset",a.resetAt?new Date(a.resetAt).toLocaleString():"Not supplied"],["Observed requests using pool",q(dt(l.items))],["Linked deployments",q(l.deployments.length)]])}<div class="detail-section-title"><h3>Agents sharing this pool</h3><span>${l.agents.size} observed \xB7 ${ba(S.hours)}</span></div>${WS(l.agents)}<p class="detail-note">These are whole-pool readings, including consumers outside this project. Agents are linked by reported deployment IDs and declared connection dependencies. The terminal does not attribute pool usage to individual agents or predict remaining capacity.</p>`,"Shared capacity",{title:gp(a)})}else if(e==="entry"){let a=Ue().filter(o=>JSON.stringify([ca(o,S.data)[0]])===t),l=a.length?ca(a[0],S.data)[0]:null,i=new Map;for(let o of a){let s=ca(o,S.data),r=JSON.stringify(s),c=i.get(r)??{path:s,count:0};c.count+=fn(o,S.data),i.set(r,c)}Ye(l?.name??"Connection no longer observed",`${q(dt(a))} requests across all observed agents \xB7 ${ba(S.hours)}`,`<div class="detail-section-title"><h3>Reported paths</h3><span>${i.size} sequences</span></div><div class="path-list">${[...i].sort((o,s)=>s[1].count-o[1].count).map(([o,{path:s,count:r}])=>`<button class="path-row" data-inspect="path" data-key="${_(o)}">${s.map(c=>`<span class="path-hop" style="--route-color:${Me[c.kind].color}">${ul(c.kind)}${fa(c.name,14)}</span>`).join('<span class="path-arrow" aria-hidden="true">\u2192</span>')}<span class="path-count">${q(r)} requests</span></button>`).join("")}</div><p class="detail-note">Each sequence contains only reported hops. Missing connection metadata does not establish an execution path.</p>`,"Reported path",{title:Ot(l?.name)})}else if(e==="path"){let a;try{a=JSON.parse(t)}catch{return!0}let l=Ue().filter(i=>JSON.stringify(ca(i,S.data))===t);Ye("Reported execution path",`${q(dt(l))} requests \xB7 ${cs(S.hours)}`,`<ol class="path-steps">${a.map(i=>`<li style="--route-color:${Me[i.kind].color}">${ul(i.kind)}<span><strong>${fa(i.name,16)}</strong><small>${Me[i.kind].label}</small></span></li>`).join("")}</ol><div class="detail-section-title"><h3>Reached deployments</h3></div>${zr(l)}<p class="detail-note">Only source-reported hops are shown. A one-hop record does not establish that no other intermediaries exist. Usage covers all agents reporting this path.</p>`,"Reported path")}else if(e==="unidentified")Ye("Deployment unidentified","The model is known; its execution instance is not.",'<p class="detail-note">These requests do not provide a matching deployment identity. A model name or connection alone does not identify an execution instance.</p>',"Deployment");else return!1;return!0}function WS(e){return e.size?`<div class="agent-links">${[...e].map(([t,n])=>`<button data-inspect="agent" data-key="${_(t)}">${_(n)}<span>\u2197</span></button>`).join("")}</div>`:'<p class="detail-note">No agent IDs were reported for this selection.</p>'}function ml(){let e=Ce("dialog[open]");e&&e.close()}function k5(){ml(),Ye("Connect your environment.","Read existing evidence. Keep inference independent.",`<p class="detail-note" style="margin-top:0">Supported JSONL request logs in <code>logs/</code>, <code>runs/</code>, and <code>results/</code>, project declarations, and project-linked local runtime APIs are discovered automatically. Coding-harness histories are not read. Only connect request logs belonging to this application. If an application does not save a supported log, it can export one metadata record per line to <code>.openmerit/inference.jsonl</code>. Do not include prompts, responses, or secrets.</p><pre class="detail-code">${_(JSON.stringify({id:"request-123",occurredAt:new Date().toISOString(),workload:"your-service-id",scope:"application",model:"your-model",provider:"your-provider",route:"your-gateway",routeKind:"gateway",location:"cloud",status:"completed",inputTokens:120,outputTokens:40,durationMs:850,cost:.002,costKind:"reported",currency:"USD"},null,2))}</pre><p class="detail-note">Use a stable ID to update an ongoing request. Keep retries under separate IDs. Missing fields stay unknown. Shared recorded IDs reconcile copied requests. Unresolved overlaps stay separate from totals. Task summaries remain separate from all request metrics.</p><p class="detail-caption">Other local servers</p><p class="detail-note" style="margin-top:0">For Ollama, declare its URL in the <code>ollama</code> field. For LM Studio or vLLM, add a local runtime to <code>.openmerit/terminal.json</code>. Only model inventory and supported counters are read.</p><pre class="detail-code">${_(JSON.stringify({ollama:"http://127.0.0.1:11434",runtimes:[{name:"LM Studio",type:"openai-compatible",url:"http://127.0.0.1:1234"},{name:"vLLM",type:"vllm",url:"http://127.0.0.1:8000"}]},null,2))}</pre><p class="detail-caption">Optional inventory</p><p class="detail-note" style="margin-top:0">Create <code>.openmerit/terminal.json</code> and restart the terminal:</p><pre class="detail-code">${_(JSON.stringify({inventory:[{name:"Your gateway",kind:"gateway",location:"cloud"},{name:"Your model",kind:"model",provider:"Your provider",location:"cloud"}]},null,2))}</pre>`,"Source setup")}function j5(){Ye("Choose your view.","Keep your environment and the example separate.",`<div class="workspace-options">${S.info.defaultMode!=="sample"?`<button class="workspace-option ${S.mode==="live"?"selected":""}" data-action="live"><strong>Your environment</strong><span>Real inventory and evidence from this project.</span></button>`:""}<button class="workspace-option ${S.mode==="sample"?"selected":""}" data-action="sample"><strong>Sample environment</strong><span>40 agents, 140 tasks, and 21 models in a fictional enterprise workspace.</span></button></div><p class="detail-note">The sample makes no inference calls and never contributes to your project's totals.</p>`,"Environment")}async function Y5(e){ml(),S.mode=e,S.error="",S.search="",S.filter="all",Jn="",ad=!1,_r.clear(),Nr="",Wo="all",es="inventory",await xr(!0),history.replaceState(null,"",`${location.pathname}${c2(e)}#${S.page}`),Ce("#announcement").textContent=e==="sample"?"Showing the fictional sample environment.":"Showing your project environment."}var Fc=[];function d2(e=""){Fc=[...Lr.map(t=>({title:e2[t],type:"Go to",action:()=>ji(t)})),...hp().map(t=>({title:t.name,type:"Service",identity:Ot(t.name),action:()=>ti("service",t.id)})),...S.data.models.map(t=>({title:t.name,type:t.provider,identity:xn(t),action:()=>ti("model",t.id)})),...vp().map(t=>({title:t.name,type:"Host",action:()=>{Pc=t.id,fl="",ji("compute")}})),...li().deployments.map(t=>({title:`${t.model} / ${t.name}`,type:"Deployment",identity:xn(t),action:()=>ti("deployment",t.id)})),...li().pools.map(t=>({title:t.name,type:"Shared capacity",identity:gp(t),action:()=>ti("pool",t.id)})),...S.data.sources.map(t=>({title:t.name,type:"Source",identity:Ot(t.name),action:()=>ti("source",t.id)})),...ts("agent").map(t=>({title:t.name,type:"Agent",action:()=>ti("agent",t.id)})),...ts("task").map(t=>({title:t.name,type:"Task",action:()=>ti("task",t.id)}))].filter(t=>`${t.title} ${t.type}`.toLowerCase().includes(e.toLowerCase())).slice(0,12),Ce("#command-results").innerHTML=Fc.length?Fc.map((t,n)=>`<button class="command-result ${n===0?"selected":""}" data-command="${n}">${Yi(t.title,t.identity,18)}<small>${_(t.type)}</small></button>`).join(""):'<p class="empty-small" style="padding:16px">No matches in this environment.</p>'}function f2(){ml(),Wc=document.activeElement,Ce("#command").innerHTML=`<div class="command-input-row">${mp("search")}<input id="command-input" type="search" placeholder="Find a service, model, agent, or source\u2026" aria-label="Search your environment" autocomplete="off"><kbd>esc</kbd></div><div id="command-results"></div><div class="command-footer">\u2191 \u2193 to move \xB7 enter to open</div>`,d2(),Ce("#command").showModal(),Ce("#command-input").focus()}document.addEventListener("click",e=>{let t=e.target.closest("[data-map-version],[data-map-group],[data-map-expand],[data-page],[data-hours],[data-filter],[data-inspect],[data-action],[data-command],[data-focus-agent],[data-inspector-tab],[data-host],[data-activity-path],[data-service-view],[data-service-filter],[data-service-reset],[data-reference-kind],[data-reference-page]");if(t)if((t.hasAttribute("data-map-group")||t.dataset.mapExpand)&&qi("map_expand"),(["hours","filter","serviceFilter","referenceKind","activityPath"].some(n=>t.dataset[n]!=null)||t.hasAttribute("data-service-reset"))&&qi("filter"),t.dataset.host&&qi("inspect","host"),t.dataset.serviceView==="map"&&Wn("terminal_page_viewed",{page:"connections"}),(t.dataset.action==="live"||t.dataset.action==="sample")&&Wn("terminal_interaction",{action:"mode",kind:"other",mode:S.mode}),(t.dataset.action==="search"||t.dataset.command!=null)&&qi("command"),t.hasAttribute("data-map-group"))p5(t);else if(t.dataset.mapExpand)ad=t.dataset.mapExpand==="expand",_r.clear(),St(),Ce("[data-map-expand]")?.focus({preventScroll:!0});else if(t.hasAttribute("data-service-reset"))Wo="all",Nr="",St(),Ce("#service-search")?.focus({preventScroll:!0});else if(t.dataset.serviceView)es=t.dataset.serviceView,S.page!=="services"?ji("services"):St();else if(t.dataset.referenceKind)Jc=t.dataset.referenceKind,Ln=0,St();else if(t.hasAttribute("data-reference-page"))Ln=Number(t.dataset.referencePage),St();else if(t.dataset.serviceFilter)Wo=t.dataset.serviceFilter,St();else if(t.dataset.host)Pc=t.dataset.host,S.page!=="compute"?(fl="",ml(),ji("compute")):St();else if(t.dataset.activityPath)Sn=t.dataset.activityPath,St();else if(t.dataset.inspectorTab)wr=t.dataset.inspectorTab,fp();else if(t.dataset.focusAgent)Jn=t.dataset.focusAgent,ml(),ji("connections");else if(t.dataset.page)ji(t.dataset.page,{focusTab:t.getAttribute("role")==="tab"});else if(t.dataset.hours)id.includes(Number(t.dataset.hours))&&(S.hours=Number(t.dataset.hours),St());else if(t.dataset.filter)S.filter=t.dataset.filter,St();else if(t.dataset.inspect)ti(t.dataset.inspect,t.dataset.key,t.dataset.routeKind);else if(t.dataset.command!=null){let n=Fc[Number(t.dataset.command)];ml(),n?.action()}else{let n=t.dataset.action;n==="close"&&ml(),n==="workspace"&&j5(),n==="search"&&f2(),n==="connect"&&k5(),(n==="live"||n==="sample")&&Y5(n),n==="api"&&(ml(),Ye("A view for your agent.","The same evidence, in a readable local snapshot.",`<pre class="detail-code">openmerit dash --json</pre><p class="detail-note">Or, while this terminal is running:</p><pre class="detail-code">GET ${_(location.origin)}/api/snapshot</pre><p class="detail-note">Schema version 1. Includes models, inventory, sources, request metadata, and machine measurements. Read-only. No inference or model changes.</p>`,"Agent access")),n==="about"&&Ye("Inference Terminal","Your inference environment, in one place.",'<p class="detail-note" style="margin-top:0">A local, passive view of your application\u2019s models, services, recorded activity, and linked compute. Your workloads never wait for it.</p><p class="detail-note">The terminal indexes supported code and configuration, reads existing application request logs and exports, and checks explicitly authorized local runtime endpoints. Declarations identify inventory; they do not establish past usage. Whole-machine readings are shared context.</p><p class="detail-note">No prompt or response storage. No inference calls or route changes. The terminal is separate from Pi\u2019s evaluation and model-change workflow.</p>',"OpenMerit")}});document.addEventListener("change",e=>{e.target.id==="host-location"&&(fl=e.target.value,St(),Ce("#host-location")?.focus({preventScroll:!0})),e.target.id==="map-agent"&&(Jn=e.target.value,St(),Ce("#map-agent")?.focus({preventScroll:!0}))});document.addEventListener("input",e=>{e.target.id==="reference-search"&&(rp=e.target.value,Ln=0,St(),Ce("#reference-search").focus({preventScroll:!0})),e.target.id==="service-search"&&(Nr=e.target.value,St(),Ce("#service-search").focus({preventScroll:!0})),e.target.id==="model-search"&&(S.search=e.target.value,St(),Ce("#model-search").focus({preventScroll:!0})),e.target.id==="command-input"&&d2(e.target.value)});document.addEventListener("pointerdown",()=>document.body.classList.remove("keyboard"));document.addEventListener("change",e=>{["host-location","map-agent"].includes(e.target.id)&&qi("filter")});var PS=0;document.addEventListener("input",e=>{["reference-search","service-search","model-search","command-input"].includes(e.target.id)&&Date.now()-PS>1e3&&(PS=Date.now(),qi("search"))});document.addEventListener("keydown",e=>{if(document.body.classList.add("keyboard"),e.target.matches('.terminal-tabs [role="tab"]')&&["ArrowLeft","ArrowRight","Home","End"].includes(e.key)){e.preventDefault();let t=[...document.querySelectorAll('.terminal-tabs [role="tab"]')],n=t.indexOf(e.target),a=e.key==="Home"?0:e.key==="End"?t.length-1:(n+(e.key==="ArrowLeft"?-1:1)+t.length)%t.length;t.forEach((l,i)=>{l.tabIndex=i===a?0:-1}),t[a].focus({preventScroll:!0}),Rr(t[a]);return}if(e.key==="Escape"&&document.querySelector("dialog[open]")){e.preventDefault(),ml();return}if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()==="k"){e.preventDefault(),f2();return}if(e.target.matches("[data-bin]")&&["ArrowLeft","ArrowRight","Home","End"].includes(e.key)){e.preventDefault();let t=[...document.querySelectorAll("[data-bin]")],n=Number(e.target.dataset.bin),a=e.key==="Home"?0:e.key==="End"?t.length-1:Math.max(0,Math.min(t.length-1,n+(e.key==="ArrowLeft"?-1:1)));t.forEach((l,i)=>l.setAttribute("tabindex",i===a?"0":"-1")),t[a]?.focus({preventScroll:!0})}if(e.target.matches(".map-node")&&["Enter"," "].includes(e.key)&&(e.preventDefault(),e.target.dispatchEvent(new MouseEvent("click",{bubbles:!0}))),Ce("#command").open&&["ArrowDown","ArrowUp","Enter"].includes(e.key)){e.preventDefault();let t=[...document.querySelectorAll(".command-result")],n=t.findIndex(a=>a.classList.contains("selected"));if(e.key==="Enter"){t[n]?.click();return}n=Math.min(t.length-1,Math.max(0,n+(e.key==="ArrowDown"?1:-1))),t.forEach((a,l)=>a.classList.toggle("selected",l===n)),t[n]?.scrollIntoView({block:"nearest"})}});for(let e of document.querySelectorAll("dialog"))e.addEventListener("click",t=>{if(t.target!==e)return;let n=e.getBoundingClientRect();(t.clientX<n.left||t.clientX>n.right||t.clientY<n.top||t.clientY>n.bottom)&&e.close()}),e.addEventListener("close",()=>{Wc?.isConnected&&Wc.focus({preventScroll:!0})});function m2(e){let t=e.dataset.mapNodeId;document.querySelectorAll(".map-edge").forEach(n=>{let a=JSON.parse(n.dataset.nodes??"[]").includes(t);n.classList.toggle("focused",a),n.classList.toggle("faded",!a)})}document.addEventListener("pointerover",e=>{let t=e.target.closest(".map-node");t&&m2(t);let n=e.target.closest("[data-bin]");n&&p2(n)});document.addEventListener("focusin",e=>{e.target.matches(".map-node")&&m2(e.target),e.target.matches("[data-bin]")&&p2(e.target)});function h2(){document.querySelectorAll(".map-edge").forEach(t=>t.classList.remove("focused","faded"));let e=Ce(".chart-tooltip");e&&(e.hidden=!0)}document.addEventListener("pointerout",e=>{e.target.closest(".map-node,[data-bin]")&&h2()});document.addEventListener("focusout",e=>{e.target.matches(".map-node,[data-bin]")&&h2()});function p2(e){let t=ld(Ue(),60)[Number(e.dataset.bin)],n=Ce(".chart-tooltip"),a=e.closest(".activity-chart");if(!t||!n||!a)return;n.textContent=`${td(t.at,!0)} \xB7 ${Object.entries(Me).filter(([o])=>t.paths[o]&&(Sn==="all"||Sn===o)).map(([o,s])=>`${t.paths[o]} ${s.short.toLowerCase()}`).join(" \xB7 ")||"0 requests"}`,n.hidden=!1;let l=e.getBoundingClientRect(),i=a.getBoundingClientRect();n.style.left=`${Math.min(i.width-n.offsetWidth-10,Math.max(10,l.left-i.left-n.offsetWidth/2))}px`,n.style.top="8px"}window.addEventListener("hashchange",()=>{let e=location.hash.slice(1);(Lr.includes(e)||e==="connections")&&ji(e)});async function xr(e=!1){if(S.fetching){e&&(S.pendingRefresh=!0);return}S.fetching=!0;let t=S.mode;try{let n=S.data?.mode==="live"?S.data.repository:null,a=n?.revision!=null?`/api/snapshot?repositoryRevision=${n.revision}`:"/api/snapshot",l=await fetch(t==="sample"?"/api/sample":a,{signal:AbortSignal.timeout(5e3)});if(!l.ok)throw new Error("Snapshot unavailable");let i=await l.json();if(t!==S.mode)return;i.repository&&!i.repository.references&&n?.revision===i.repository.revision&&(i.repository.references=n.references),S.data=i,S.error="",Wn("terminal_snapshot",{model_count:i.models?.length??0,record_count:i.records?.length??0,source_count:i.sources?.length??0,host_count:i.hosts?.length??0,deployment_count:i.deployments?.length??0,agent_count:new Set((i.records??[]).map(o=>o.agentId).filter(Boolean)).size}),fp(),(e||!document.querySelector("dialog[open]")&&!np()&&!document.activeElement?.matches("input"))&&St()}catch(n){Wn("terminal_error",{code:"snapshot_error",...Tr(n)}),S.error="The terminal is disconnected. Your inference is unaffected. Reopen the local command to reconnect.",fp(),S.data&&!document.querySelector("dialog[open]")&&!np()?St():S.data||(Ce("#app").innerHTML=`<div class="boot"><span class="wordmark">openmerit</span><p>${_(S.error)}</p><p><a href="/">Try again \u2192</a></p></div>`)}finally{S.fetching=!1,S.pendingRefresh?(S.pendingRefresh=!1,xr(!0)):g2()}}function g2(){clearTimeout(S.timer);let e=S.data?.repository?.progress,t=S.mode==="live"&&(S.data?.loading||e&&!["complete","failed"].includes(e.phase));S.timer=setTimeout(()=>{document.hidden?g2():xr()},t?1e3:Math.max(10,S.info.interval??15)*1e3)}async function G5(){try{let e=await fetch("/api/info");S.info=await e.json(),S.info.defaultMode==="sample"&&(S.mode="sample")}catch{}Wn("terminal_visited"),Wn("terminal_page_viewed",{page:S.page}),await xr(!0),document.addEventListener("visibilitychange",()=>{document.hidden||xr()})}G5();
|
|
154
|
-
/*! Third-party notices
|
|
155
|
-
|
|
156
|
-
torph
|
|
157
|
-
MIT License
|
|
158
|
-
|
|
159
|
-
Copyright (c) 2025 Lochie Axon
|
|
160
|
-
|
|
161
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
162
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
163
|
-
in the Software without restriction, including without limitation the rights
|
|
164
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
165
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
166
|
-
furnished to do so, subject to the following conditions:
|
|
167
|
-
|
|
168
|
-
The above copyright notice and this permission notice shall be included in all
|
|
169
|
-
copies or substantial portions of the Software.
|
|
170
|
-
|
|
171
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
172
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
173
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
174
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
175
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
176
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
177
|
-
SOFTWARE.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
liveline
|
|
181
|
-
MIT License
|
|
182
|
-
|
|
183
|
-
Copyright (c) 2025-2026 Benji Taylor
|
|
184
|
-
|
|
185
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
186
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
187
|
-
in the Software without restriction, including without limitation the rights
|
|
188
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
189
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
190
|
-
furnished to do so, subject to the following conditions:
|
|
191
|
-
|
|
192
|
-
The above copyright notice and this permission notice shall be included in all
|
|
193
|
-
copies or substantial portions of the Software.
|
|
194
|
-
|
|
195
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
196
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
197
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
198
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
199
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
200
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
201
|
-
SOFTWARE.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
morphdom
|
|
205
|
-
The MIT License (MIT)
|
|
206
|
-
|
|
207
|
-
Copyright (c) Patrick Steele-Idem <pnidem@gmail.com> (psteeleidem.com)
|
|
208
|
-
|
|
209
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
210
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
211
|
-
in the Software without restriction, including without limitation the rights
|
|
212
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
213
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
214
|
-
furnished to do so, subject to the following conditions:
|
|
215
|
-
|
|
216
|
-
The above copyright notice and this permission notice shall be included in
|
|
217
|
-
all copies or substantial portions of the Software.
|
|
218
|
-
|
|
219
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
220
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
221
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
222
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
223
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
224
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
225
|
-
THE SOFTWARE.
|
|
226
|
-
|
|
227
|
-
react
|
|
228
|
-
MIT License
|
|
229
|
-
|
|
230
|
-
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
231
|
-
|
|
232
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
233
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
234
|
-
in the Software without restriction, including without limitation the rights
|
|
235
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
236
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
237
|
-
furnished to do so, subject to the following conditions:
|
|
238
|
-
|
|
239
|
-
The above copyright notice and this permission notice shall be included in all
|
|
240
|
-
copies or substantial portions of the Software.
|
|
241
|
-
|
|
242
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
243
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
244
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
245
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
246
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
247
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
248
|
-
SOFTWARE.
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
react-dom
|
|
252
|
-
MIT License
|
|
253
|
-
|
|
254
|
-
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
255
|
-
|
|
256
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
257
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
258
|
-
in the Software without restriction, including without limitation the rights
|
|
259
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
260
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
261
|
-
furnished to do so, subject to the following conditions:
|
|
262
|
-
|
|
263
|
-
The above copyright notice and this permission notice shall be included in all
|
|
264
|
-
copies or substantial portions of the Software.
|
|
265
|
-
|
|
266
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
267
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
268
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
269
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
270
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
271
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
272
|
-
SOFTWARE.
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
scheduler
|
|
276
|
-
MIT License
|
|
277
|
-
|
|
278
|
-
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
279
|
-
|
|
280
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
281
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
282
|
-
in the Software without restriction, including without limitation the rights
|
|
283
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
284
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
285
|
-
furnished to do so, subject to the following conditions:
|
|
286
|
-
|
|
287
|
-
The above copyright notice and this permission notice shall be included in all
|
|
288
|
-
copies or substantial portions of the Software.
|
|
289
|
-
|
|
290
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
291
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
292
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
293
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
294
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
295
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
296
|
-
SOFTWARE.
|
|
297
|
-
|
|
298
|
-
*/
|