@jeffjassky/telemetry 0.2.0 → 0.4.0

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.
@@ -0,0 +1,41 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function $d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ka={exports:{}},Ml={},ba={exports:{}},R={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its 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 yr=Symbol.for("react.element"),Td=Symbol.for("react.portal"),Pd=Symbol.for("react.fragment"),Od=Symbol.for("react.strict_mode"),Md=Symbol.for("react.profiler"),Rd=Symbol.for("react.provider"),Ld=Symbol.for("react.context"),zd=Symbol.for("react.forward_ref"),Fd=Symbol.for("react.suspense"),Dd=Symbol.for("react.memo"),Id=Symbol.for("react.lazy"),wo=Symbol.iterator;function Ad(e){return e===null||typeof e!="object"?null:(e=wo&&e[wo]||e["@@iterator"],typeof e=="function"?e:null)}var Ya={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ga=Object.assign,Xa={};function Sn(e,t,n){this.props=e,this.context=t,this.refs=Xa,this.updater=n||Ya}Sn.prototype.isReactComponent={};Sn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};Sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ja(){}Ja.prototype=Sn.prototype;function ji(e,t,n){this.props=e,this.context=t,this.refs=Xa,this.updater=n||Ya}var ki=ji.prototype=new Ja;ki.constructor=ji;Ga(ki,Sn.prototype);ki.isPureReactComponent=!0;var No=Array.isArray,qa=Object.prototype.hasOwnProperty,wi={current:null},Za={key:!0,ref:!0,__self:!0,__source:!0};function eu(e,t,n){var r,l={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)qa.call(t,r)&&!Za.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),d=0;d<a;d++)u[d]=arguments[d+2];l.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:yr,type:e,key:s,ref:i,props:l,_owner:wi.current}}function Ud(e,t){return{$$typeof:yr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ni(e){return typeof e=="object"&&e!==null&&e.$$typeof===yr}function Bd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var So=/\/+/g;function ql(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Bd(""+e.key):t.toString(36)}function Qr(e,t,n,r,l){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case yr:case Td:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+ql(i,0):r,No(l)?(n="",e!=null&&(n=e.replace(So,"$&/")+"/"),Qr(l,t,n,"",function(d){return d})):l!=null&&(Ni(l)&&(l=Ud(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(So,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",No(e))for(var a=0;a<e.length;a++){s=e[a];var u=r+ql(s,a);i+=Qr(s,t,n,u,l)}else if(u=Ad(e),typeof u=="function")for(e=u.call(e),a=0;!(s=e.next()).done;)s=s.value,u=r+ql(s,a++),i+=Qr(s,t,n,u,l);else if(s==="object")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 i}function $r(e,t,n){if(e==null)return e;var r=[],l=0;return Qr(e,r,"","",function(s){return t.call(n,s,l++)}),r}function Vd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var fe={current:null},Kr={transition:null},Wd={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:Kr,ReactCurrentOwner:wi};function tu(){throw Error("act(...) is not supported in production builds of React.")}R.Children={map:$r,forEach:function(e,t,n){$r(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $r(e,function(){t++}),t},toArray:function(e){return $r(e,function(t){return t})||[]},only:function(e){if(!Ni(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};R.Component=Sn;R.Fragment=Pd;R.Profiler=Md;R.PureComponent=ji;R.StrictMode=Od;R.Suspense=Fd;R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wd;R.act=tu;R.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ga({},e.props),l=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=wi.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)qa.call(t,u)&&!Za.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var d=0;d<u;d++)a[d]=arguments[d+2];r.children=a}return{$$typeof:yr,type:e.type,key:l,ref:s,props:r,_owner:i}};R.createContext=function(e){return e={$$typeof:Ld,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Rd,_context:e},e.Consumer=e};R.createElement=eu;R.createFactory=function(e){var t=eu.bind(null,e);return t.type=e,t};R.createRef=function(){return{current:null}};R.forwardRef=function(e){return{$$typeof:zd,render:e}};R.isValidElement=Ni;R.lazy=function(e){return{$$typeof:Id,_payload:{_status:-1,_result:e},_init:Vd}};R.memo=function(e,t){return{$$typeof:Dd,type:e,compare:t===void 0?null:t}};R.startTransition=function(e){var t=Kr.transition;Kr.transition={};try{e()}finally{Kr.transition=t}};R.unstable_act=tu;R.useCallback=function(e,t){return fe.current.useCallback(e,t)};R.useContext=function(e){return fe.current.useContext(e)};R.useDebugValue=function(){};R.useDeferredValue=function(e){return fe.current.useDeferredValue(e)};R.useEffect=function(e,t){return fe.current.useEffect(e,t)};R.useId=function(){return fe.current.useId()};R.useImperativeHandle=function(e,t,n){return fe.current.useImperativeHandle(e,t,n)};R.useInsertionEffect=function(e,t){return fe.current.useInsertionEffect(e,t)};R.useLayoutEffect=function(e,t){return fe.current.useLayoutEffect(e,t)};R.useMemo=function(e,t){return fe.current.useMemo(e,t)};R.useReducer=function(e,t,n){return fe.current.useReducer(e,t,n)};R.useRef=function(e){return fe.current.useRef(e)};R.useState=function(e){return fe.current.useState(e)};R.useSyncExternalStore=function(e,t,n){return fe.current.useSyncExternalStore(e,t,n)};R.useTransition=function(){return fe.current.useTransition()};R.version="18.3.1";ba.exports=R;var Si=ba.exports;const O=$d(Si);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Hd=Si,Qd=Symbol.for("react.element"),Kd=Symbol.for("react.fragment"),bd=Object.prototype.hasOwnProperty,Yd=Hd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gd={key:!0,ref:!0,__self:!0,__source:!0};function nu(e,t,n){var r,l={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)bd.call(t,r)&&!Gd.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Qd,type:e,key:s,ref:i,props:l,_owner:Yd.current}}Ml.Fragment=Kd;Ml.jsx=nu;Ml.jsxs=nu;Ka.exports=Ml;var o=Ka.exports,ru={exports:{}},Se={},lu={exports:{}},su={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its 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
+ */(function(e){function t($,P){var M=$.length;$.push(P);e:for(;0<M;){var b=M-1>>>1,q=$[b];if(0<l(q,P))$[b]=P,$[M]=q,M=b;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var P=$[0],M=$.pop();if(M!==P){$[0]=M;e:for(var b=0,q=$.length,Cr=q>>>1;b<Cr;){var _t=2*(b+1)-1,Jl=$[_t],$t=_t+1,_r=$[$t];if(0>l(Jl,M))$t<q&&0>l(_r,Jl)?($[b]=_r,$[$t]=M,b=$t):($[b]=Jl,$[_t]=M,b=_t);else if($t<q&&0>l(_r,M))$[b]=_r,$[$t]=M,b=$t;else break e}}return P}function l($,P){var M=$.sortIndex-P.sortIndex;return M!==0?M:$.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],d=[],h=1,m=null,v=3,g=!1,x=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p($){for(var P=n(d);P!==null;){if(P.callback===null)r(d);else if(P.startTime<=$)r(d),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(d)}}function j($){if(y=!1,p($),!x)if(n(u)!==null)x=!0,Gl(E);else{var P=n(d);P!==null&&Xl(j,P.startTime-$)}}function E($,P){x=!1,y&&(y=!1,f(C),C=-1),g=!0;var M=v;try{for(p(P),m=n(u);m!==null&&(!(m.expirationTime>P)||$&&!se());){var b=m.callback;if(typeof b=="function"){m.callback=null,v=m.priorityLevel;var q=b(m.expirationTime<=P);P=e.unstable_now(),typeof q=="function"?m.callback=q:m===n(u)&&r(u),p(P)}else r(u);m=n(u)}if(m!==null)var Cr=!0;else{var _t=n(d);_t!==null&&Xl(j,_t.startTime-P),Cr=!1}return Cr}finally{m=null,v=M,g=!1}}var w=!1,N=null,C=-1,z=5,T=-1;function se(){return!(e.unstable_now()-T<z)}function Ye(){if(N!==null){var $=e.unstable_now();T=$;var P=!0;try{P=N(!0,$)}finally{P?Tn():(w=!1,N=null)}}else w=!1}var Tn;if(typeof c=="function")Tn=function(){c(Ye)};else if(typeof MessageChannel<"u"){var ko=new MessageChannel,_d=ko.port2;ko.port1.onmessage=Ye,Tn=function(){_d.postMessage(null)}}else Tn=function(){k(Ye,0)};function Gl($){N=$,w||(w=!0,Tn())}function Xl($,P){C=k(function(){$(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){x||g||(x=!0,Gl(E))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function($){switch(v){case 1:case 2:case 3:var P=3;break;default:P=v}var M=v;v=P;try{return $()}finally{v=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,P){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var M=v;v=$;try{return P()}finally{v=M}},e.unstable_scheduleCallback=function($,P,M){var b=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?b+M:b):M=b,$){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=M+q,$={id:h++,callback:P,priorityLevel:$,startTime:M,expirationTime:q,sortIndex:-1},M>b?($.sortIndex=M,t(d,$),n(u)===null&&$===n(d)&&(y?(f(C),C=-1):y=!0,Xl(j,M-b))):($.sortIndex=q,t(u,$),x||g||(x=!0,Gl(E))),$},e.unstable_shouldYield=se,e.unstable_wrapCallback=function($){var P=v;return function(){var M=v;v=P;try{return $.apply(this,arguments)}finally{v=M}}}})(su);lu.exports=su;var Xd=lu.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its 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 Jd=Si,Ne=Xd;function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var iu=new Set,Zn={};function Qt(e,t){hn(e,t),hn(e+"Capture",t)}function hn(e,t){for(Zn[e]=t,e=0;e<t.length;e++)iu.add(t[e])}var et=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=Object.prototype.hasOwnProperty,qd=/^[: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]*$/,Eo={},Co={};function Zd(e){return Cs.call(Co,e)?!0:Cs.call(Eo,e)?!1:qd.test(e)?Co[e]=!0:(Eo[e]=!0,!1)}function ef(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tf(e,t,n,r){if(t===null||typeof t>"u"||ef(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function me(e,t,n,r,l,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new me(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){le[e]=new me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new me(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ei=/[\-:]([a-z])/g;function Ci(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ei,Ci);le[t]=new me(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ei,Ci);le[t]=new me(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ei,Ci);le[t]=new me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new me(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new me(e,1,!1,e.toLowerCase(),null,!0,!0)});function _i(e,t,n,r){var l=le.hasOwnProperty(t)?le[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(tf(t,n,l,r)&&(n=null),r||l===null?Zd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var lt=Jd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Tr=Symbol.for("react.element"),Xt=Symbol.for("react.portal"),Jt=Symbol.for("react.fragment"),$i=Symbol.for("react.strict_mode"),_s=Symbol.for("react.profiler"),ou=Symbol.for("react.provider"),au=Symbol.for("react.context"),Ti=Symbol.for("react.forward_ref"),$s=Symbol.for("react.suspense"),Ts=Symbol.for("react.suspense_list"),Pi=Symbol.for("react.memo"),it=Symbol.for("react.lazy"),uu=Symbol.for("react.offscreen"),_o=Symbol.iterator;function Pn(e){return e===null||typeof e!="object"?null:(e=_o&&e[_o]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,Zl;function In(e){if(Zl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zl=t&&t[1]||""}return`
34
+ `+Zl+e}var es=!1;function ts(e,t){if(!e||es)return"";es=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
35
+ `),s=r.stack.split(`
36
+ `),i=l.length-1,a=s.length-1;1<=i&&0<=a&&l[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(l[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||l[i]!==s[a]){var u=`
37
+ `+l[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{es=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?In(e):""}function nf(e){switch(e.tag){case 5:return In(e.type);case 16:return In("Lazy");case 13:return In("Suspense");case 19:return In("SuspenseList");case 0:case 2:case 15:return e=ts(e.type,!1),e;case 11:return e=ts(e.type.render,!1),e;case 1:return e=ts(e.type,!0),e;default:return""}}function Ps(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Jt:return"Fragment";case Xt:return"Portal";case _s:return"Profiler";case $i:return"StrictMode";case $s:return"Suspense";case Ts:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case au:return(e.displayName||"Context")+".Consumer";case ou:return(e._context.displayName||"Context")+".Provider";case Ti:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pi:return t=e.displayName||null,t!==null?t:Ps(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return Ps(e(t))}catch{}}return null}function rf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ps(t);case 8:return t===$i?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lf(e){var t=cu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pr(e){e._valueTracker||(e._valueTracker=lf(e))}function du(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ll(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 Os(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $o(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fu(e,t){t=t.checked,t!=null&&_i(e,"checked",t,!1)}function Ms(e,t){fu(e,t);var n=kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rs(e,t.type,kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function To(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Rs(e,t,n){(t!=="number"||ll(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var An=Array.isArray;function un(e,t,n,r){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&&r&&(e[n].defaultSelected=!0)}else{for(n=""+kt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Ls(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Po(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(S(92));if(An(n)){if(1<n.length)throw Error(S(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:kt(n)}}function mu(e,t){var n=kt(t.value),r=kt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Oo(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function pu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function zs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?pu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Or,hu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Or=Or||document.createElement("div"),Or.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function er(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sf=["Webkit","ms","Moz","O"];Object.keys(Wn).forEach(function(e){sf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wn[t]=Wn[e]})});function vu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wn.hasOwnProperty(e)&&Wn[e]?(""+t).trim():t+"px"}function yu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=vu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var of=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fs(e,t){if(t){if(of[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function Ds(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Is=null;function Oi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var As=null,cn=null,dn=null;function Mo(e){if(e=jr(e)){if(typeof As!="function")throw Error(S(280));var t=e.stateNode;t&&(t=Dl(t),As(e.stateNode,e.type,t))}}function gu(e){cn?dn?dn.push(e):dn=[e]:cn=e}function xu(){if(cn){var e=cn,t=dn;if(dn=cn=null,Mo(e),t)for(e=0;e<t.length;e++)Mo(t[e])}}function ju(e,t){return e(t)}function ku(){}var ns=!1;function wu(e,t,n){if(ns)return e(t,n);ns=!0;try{return ju(e,t,n)}finally{ns=!1,(cn!==null||dn!==null)&&(ku(),xu())}}function tr(e,t){var n=e.stateNode;if(n===null)return null;var r=Dl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(S(231,t,typeof n));return n}var Us=!1;if(et)try{var On={};Object.defineProperty(On,"passive",{get:function(){Us=!0}}),window.addEventListener("test",On,On),window.removeEventListener("test",On,On)}catch{Us=!1}function af(e,t,n,r,l,s,i,a,u){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(h){this.onError(h)}}var Hn=!1,sl=null,il=!1,Bs=null,uf={onError:function(e){Hn=!0,sl=e}};function cf(e,t,n,r,l,s,i,a,u){Hn=!1,sl=null,af.apply(uf,arguments)}function df(e,t,n,r,l,s,i,a,u){if(cf.apply(this,arguments),Hn){if(Hn){var d=sl;Hn=!1,sl=null}else throw Error(S(198));il||(il=!0,Bs=d)}}function Kt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Nu(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 Ro(e){if(Kt(e)!==e)throw Error(S(188))}function ff(e){var t=e.alternate;if(!t){if(t=Kt(e),t===null)throw Error(S(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var s=l.alternate;if(s===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===s.child){for(s=l.child;s;){if(s===n)return Ro(l),e;if(s===r)return Ro(l),t;s=s.sibling}throw Error(S(188))}if(n.return!==r.return)n=l,r=s;else{for(var i=!1,a=l.child;a;){if(a===n){i=!0,n=l,r=s;break}if(a===r){i=!0,r=l,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=l;break}if(a===r){i=!0,r=s,n=l;break}a=a.sibling}if(!i)throw Error(S(189))}}if(n.alternate!==r)throw Error(S(190))}if(n.tag!==3)throw Error(S(188));return n.stateNode.current===n?e:t}function Su(e){return e=ff(e),e!==null?Eu(e):null}function Eu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Eu(e);if(t!==null)return t;e=e.sibling}return null}var Cu=Ne.unstable_scheduleCallback,Lo=Ne.unstable_cancelCallback,mf=Ne.unstable_shouldYield,pf=Ne.unstable_requestPaint,Y=Ne.unstable_now,hf=Ne.unstable_getCurrentPriorityLevel,Mi=Ne.unstable_ImmediatePriority,_u=Ne.unstable_UserBlockingPriority,ol=Ne.unstable_NormalPriority,vf=Ne.unstable_LowPriority,$u=Ne.unstable_IdlePriority,Rl=null,We=null;function yf(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(Rl,e,void 0,(e.current.flags&128)===128)}catch{}}var De=Math.clz32?Math.clz32:jf,gf=Math.log,xf=Math.LN2;function jf(e){return e>>>=0,e===0?32:31-(gf(e)/xf|0)|0}var Mr=64,Rr=4194304;function Un(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function al(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~l;a!==0?r=Un(a):(s&=i,s!==0&&(r=Un(s)))}else i=n&~l,i!==0?r=Un(i):s!==0&&(r=Un(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,s=t&-t,l>=s||l===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-De(t),l=1<<n,r|=e[n],t&=~l;return r}function kf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-De(s),a=1<<i,u=l[i];u===-1?(!(a&n)||a&r)&&(l[i]=kf(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function Vs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Tu(){var e=Mr;return Mr<<=1,!(Mr&4194240)&&(Mr=64),e}function rs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-De(t),e[t]=n}function Nf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-De(n),s=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~s}}function Ri(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-De(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var F=0;function Pu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ou,Li,Mu,Ru,Lu,Ws=!1,Lr=[],mt=null,pt=null,ht=null,nr=new Map,rr=new Map,at=[],Sf="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 submit".split(" ");function zo(e,t){switch(e){case"focusin":case"focusout":mt=null;break;case"dragenter":case"dragleave":pt=null;break;case"mouseover":case"mouseout":ht=null;break;case"pointerover":case"pointerout":nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rr.delete(t.pointerId)}}function Mn(e,t,n,r,l,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[l]},t!==null&&(t=jr(t),t!==null&&Li(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Ef(e,t,n,r,l){switch(t){case"focusin":return mt=Mn(mt,e,t,n,r,l),!0;case"dragenter":return pt=Mn(pt,e,t,n,r,l),!0;case"mouseover":return ht=Mn(ht,e,t,n,r,l),!0;case"pointerover":var s=l.pointerId;return nr.set(s,Mn(nr.get(s)||null,e,t,n,r,l)),!0;case"gotpointercapture":return s=l.pointerId,rr.set(s,Mn(rr.get(s)||null,e,t,n,r,l)),!0}return!1}function zu(e){var t=Ot(e.target);if(t!==null){var n=Kt(t);if(n!==null){if(t=n.tag,t===13){if(t=Nu(n),t!==null){e.blockedOn=t,Lu(e.priority,function(){Mu(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 br(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Is=r,n.target.dispatchEvent(r),Is=null}else return t=jr(n),t!==null&&Li(t),e.blockedOn=n,!1;t.shift()}return!0}function Fo(e,t,n){br(e)&&n.delete(t)}function Cf(){Ws=!1,mt!==null&&br(mt)&&(mt=null),pt!==null&&br(pt)&&(pt=null),ht!==null&&br(ht)&&(ht=null),nr.forEach(Fo),rr.forEach(Fo)}function Rn(e,t){e.blockedOn===t&&(e.blockedOn=null,Ws||(Ws=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,Cf)))}function lr(e){function t(l){return Rn(l,e)}if(0<Lr.length){Rn(Lr[0],e);for(var n=1;n<Lr.length;n++){var r=Lr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(mt!==null&&Rn(mt,e),pt!==null&&Rn(pt,e),ht!==null&&Rn(ht,e),nr.forEach(t),rr.forEach(t),n=0;n<at.length;n++)r=at[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<at.length&&(n=at[0],n.blockedOn===null);)zu(n),n.blockedOn===null&&at.shift()}var fn=lt.ReactCurrentBatchConfig,ul=!0;function _f(e,t,n,r){var l=F,s=fn.transition;fn.transition=null;try{F=1,zi(e,t,n,r)}finally{F=l,fn.transition=s}}function $f(e,t,n,r){var l=F,s=fn.transition;fn.transition=null;try{F=4,zi(e,t,n,r)}finally{F=l,fn.transition=s}}function zi(e,t,n,r){if(ul){var l=Hs(e,t,n,r);if(l===null)ms(e,t,r,cl,n),zo(e,r);else if(Ef(l,e,t,n,r))r.stopPropagation();else if(zo(e,r),t&4&&-1<Sf.indexOf(e)){for(;l!==null;){var s=jr(l);if(s!==null&&Ou(s),s=Hs(e,t,n,r),s===null&&ms(e,t,r,cl,n),s===l)break;l=s}l!==null&&r.stopPropagation()}else ms(e,t,r,null,n)}}var cl=null;function Hs(e,t,n,r){if(cl=null,e=Oi(r),e=Ot(e),e!==null)if(t=Kt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Nu(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 cl=e,null}function Fu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hf()){case Mi:return 1;case _u:return 4;case ol:case vf:return 16;case $u:return 536870912;default:return 16}default:return 16}}var ct=null,Fi=null,Yr=null;function Du(){if(Yr)return Yr;var e,t=Fi,n=t.length,r,l="value"in ct?ct.value:ct.textContent,s=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[s-r];r++);return Yr=l.slice(e,1<r?1-r:void 0)}function Gr(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 zr(){return!0}function Do(){return!1}function Ee(e){function t(n,r,l,s,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?zr:Do,this.isPropagationStopped=Do,this}return Q(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=zr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zr)},persist:function(){},isPersistent:zr}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=Ee(En),xr=Q({},En,{view:0,detail:0}),Tf=Ee(xr),ls,ss,Ln,Ll=Q({},xr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ii,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!==Ln&&(Ln&&e.type==="mousemove"?(ls=e.screenX-Ln.screenX,ss=e.screenY-Ln.screenY):ss=ls=0,Ln=e),ls)},movementY:function(e){return"movementY"in e?e.movementY:ss}}),Io=Ee(Ll),Pf=Q({},Ll,{dataTransfer:0}),Of=Ee(Pf),Mf=Q({},xr,{relatedTarget:0}),is=Ee(Mf),Rf=Q({},En,{animationName:0,elapsedTime:0,pseudoElement:0}),Lf=Ee(Rf),zf=Q({},En,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ff=Ee(zf),Df=Q({},En,{data:0}),Ao=Ee(Df),If={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Af={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"},Uf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uf[e])?!!t[e]:!1}function Ii(){return Bf}var Vf=Q({},xr,{key:function(e){if(e.key){var t=If[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Af[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ii,charCode:function(e){return e.type==="keypress"?Gr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wf=Ee(Vf),Hf=Q({},Ll,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uo=Ee(Hf),Qf=Q({},xr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ii}),Kf=Ee(Qf),bf=Q({},En,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yf=Ee(bf),Gf=Q({},Ll,{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}),Xf=Ee(Gf),Jf=[9,13,27,32],Ai=et&&"CompositionEvent"in window,Qn=null;et&&"documentMode"in document&&(Qn=document.documentMode);var qf=et&&"TextEvent"in window&&!Qn,Iu=et&&(!Ai||Qn&&8<Qn&&11>=Qn),Bo=" ",Vo=!1;function Au(e,t){switch(e){case"keyup":return Jf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qt=!1;function Zf(e,t){switch(e){case"compositionend":return Uu(t);case"keypress":return t.which!==32?null:(Vo=!0,Bo);case"textInput":return e=t.data,e===Bo&&Vo?null:e;default:return null}}function em(e,t){if(qt)return e==="compositionend"||!Ai&&Au(e,t)?(e=Du(),Yr=Fi=ct=null,qt=!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 Iu&&t.locale!=="ko"?null:t.data;default:return null}}var tm={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 Wo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tm[e.type]:t==="textarea"}function Bu(e,t,n,r){gu(r),t=dl(t,"onChange"),0<t.length&&(n=new Di("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,sr=null;function nm(e){qu(e,0)}function zl(e){var t=tn(e);if(du(t))return e}function rm(e,t){if(e==="change")return t}var Vu=!1;if(et){var os;if(et){var as="oninput"in document;if(!as){var Ho=document.createElement("div");Ho.setAttribute("oninput","return;"),as=typeof Ho.oninput=="function"}os=as}else os=!1;Vu=os&&(!document.documentMode||9<document.documentMode)}function Qo(){Kn&&(Kn.detachEvent("onpropertychange",Wu),sr=Kn=null)}function Wu(e){if(e.propertyName==="value"&&zl(sr)){var t=[];Bu(t,sr,e,Oi(e)),wu(nm,t)}}function lm(e,t,n){e==="focusin"?(Qo(),Kn=t,sr=n,Kn.attachEvent("onpropertychange",Wu)):e==="focusout"&&Qo()}function sm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zl(sr)}function im(e,t){if(e==="click")return zl(t)}function om(e,t){if(e==="input"||e==="change")return zl(t)}function am(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ae=typeof Object.is=="function"?Object.is:am;function ir(e,t){if(Ae(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!Cs.call(t,l)||!Ae(e[l],t[l]))return!1}return!0}function Ko(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bo(e,t){var n=Ko(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ko(n)}}function Hu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qu(){for(var e=window,t=ll();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ll(e.document)}return t}function Ui(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")}function um(e){var t=Qu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Hu(n.ownerDocument.documentElement,n)){if(r!==null&&Ui(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,s=Math.min(r.start,l);r=r.end===void 0?s:Math.min(r.end,l),!e.extend&&s>r&&(l=r,r=s,s=l),l=bo(n,s);var i=bo(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var cm=et&&"documentMode"in document&&11>=document.documentMode,Zt=null,Qs=null,bn=null,Ks=!1;function Yo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ks||Zt==null||Zt!==ll(r)||(r=Zt,"selectionStart"in r&&Ui(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),bn&&ir(bn,r)||(bn=r,r=dl(Qs,"onSelect"),0<r.length&&(t=new Di("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Zt)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var en={animationend:Fr("Animation","AnimationEnd"),animationiteration:Fr("Animation","AnimationIteration"),animationstart:Fr("Animation","AnimationStart"),transitionend:Fr("Transition","TransitionEnd")},us={},Ku={};et&&(Ku=document.createElement("div").style,"AnimationEvent"in window||(delete en.animationend.animation,delete en.animationiteration.animation,delete en.animationstart.animation),"TransitionEvent"in window||delete en.transitionend.transition);function Fl(e){if(us[e])return us[e];if(!en[e])return e;var t=en[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ku)return us[e]=t[n];return e}var bu=Fl("animationend"),Yu=Fl("animationiteration"),Gu=Fl("animationstart"),Xu=Fl("transitionend"),Ju=new Map,Go="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function St(e,t){Ju.set(e,t),Qt(t,[e])}for(var cs=0;cs<Go.length;cs++){var ds=Go[cs],dm=ds.toLowerCase(),fm=ds[0].toUpperCase()+ds.slice(1);St(dm,"on"+fm)}St(bu,"onAnimationEnd");St(Yu,"onAnimationIteration");St(Gu,"onAnimationStart");St("dblclick","onDoubleClick");St("focusin","onFocus");St("focusout","onBlur");St(Xu,"onTransitionEnd");hn("onMouseEnter",["mouseout","mouseover"]);hn("onMouseLeave",["mouseout","mouseover"]);hn("onPointerEnter",["pointerout","pointerover"]);hn("onPointerLeave",["pointerout","pointerover"]);Qt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bn="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(" "),mm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bn));function Xo(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,df(r,t,void 0,e),e.currentTarget=null}function qu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],u=a.instance,d=a.currentTarget;if(a=a.listener,u!==s&&l.isPropagationStopped())break e;Xo(l,a,d),s=u}else for(i=0;i<r.length;i++){if(a=r[i],u=a.instance,d=a.currentTarget,a=a.listener,u!==s&&l.isPropagationStopped())break e;Xo(l,a,d),s=u}}}if(il)throw e=Bs,il=!1,Bs=null,e}function A(e,t){var n=t[Js];n===void 0&&(n=t[Js]=new Set);var r=e+"__bubble";n.has(r)||(Zu(t,e,2,!1),n.add(r))}function fs(e,t,n){var r=0;t&&(r|=4),Zu(n,e,r,t)}var Dr="_reactListening"+Math.random().toString(36).slice(2);function or(e){if(!e[Dr]){e[Dr]=!0,iu.forEach(function(n){n!=="selectionchange"&&(mm.has(n)||fs(n,!1,e),fs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dr]||(t[Dr]=!0,fs("selectionchange",!1,t))}}function Zu(e,t,n,r){switch(Fu(t)){case 1:var l=_f;break;case 4:l=$f;break;default:l=zi}n=l.bind(null,t,n,e),l=void 0,!Us||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?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 ms(e,t,n,r,l){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;i=i.return}for(;a!==null;){if(i=Ot(a),i===null)return;if(u=i.tag,u===5||u===6){r=s=i;continue e}a=a.parentNode}}r=r.return}wu(function(){var d=s,h=Oi(n),m=[];e:{var v=Ju.get(e);if(v!==void 0){var g=Di,x=e;switch(e){case"keypress":if(Gr(n)===0)break e;case"keydown":case"keyup":g=Wf;break;case"focusin":x="focus",g=is;break;case"focusout":x="blur",g=is;break;case"beforeblur":case"afterblur":g=is;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":g=Io;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Of;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Kf;break;case bu:case Yu:case Gu:g=Lf;break;case Xu:g=Yf;break;case"scroll":g=Tf;break;case"wheel":g=Xf;break;case"copy":case"cut":case"paste":g=Ff;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Uo}var y=(t&4)!==0,k=!y&&e==="scroll",f=y?v!==null?v+"Capture":null:v;y=[];for(var c=d,p;c!==null;){p=c;var j=p.stateNode;if(p.tag===5&&j!==null&&(p=j,f!==null&&(j=tr(c,f),j!=null&&y.push(ar(c,j,p)))),k)break;c=c.return}0<y.length&&(v=new g(v,x,null,n,h),m.push({event:v,listeners:y}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",v&&n!==Is&&(x=n.relatedTarget||n.fromElement)&&(Ot(x)||x[tt]))break e;if((g||v)&&(v=h.window===h?h:(v=h.ownerDocument)?v.defaultView||v.parentWindow:window,g?(x=n.relatedTarget||n.toElement,g=d,x=x?Ot(x):null,x!==null&&(k=Kt(x),x!==k||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=d),g!==x)){if(y=Io,j="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(y=Uo,j="onPointerLeave",f="onPointerEnter",c="pointer"),k=g==null?v:tn(g),p=x==null?v:tn(x),v=new y(j,c+"leave",g,n,h),v.target=k,v.relatedTarget=p,j=null,Ot(h)===d&&(y=new y(f,c+"enter",x,n,h),y.target=p,y.relatedTarget=k,j=y),k=j,g&&x)t:{for(y=g,f=x,c=0,p=y;p;p=Gt(p))c++;for(p=0,j=f;j;j=Gt(j))p++;for(;0<c-p;)y=Gt(y),c--;for(;0<p-c;)f=Gt(f),p--;for(;c--;){if(y===f||f!==null&&y===f.alternate)break t;y=Gt(y),f=Gt(f)}y=null}else y=null;g!==null&&Jo(m,v,g,y,!1),x!==null&&k!==null&&Jo(m,k,x,y,!0)}}e:{if(v=d?tn(d):window,g=v.nodeName&&v.nodeName.toLowerCase(),g==="select"||g==="input"&&v.type==="file")var E=rm;else if(Wo(v))if(Vu)E=om;else{E=sm;var w=lm}else(g=v.nodeName)&&g.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(E=im);if(E&&(E=E(e,d))){Bu(m,E,n,h);break e}w&&w(e,v,d),e==="focusout"&&(w=v._wrapperState)&&w.controlled&&v.type==="number"&&Rs(v,"number",v.value)}switch(w=d?tn(d):window,e){case"focusin":(Wo(w)||w.contentEditable==="true")&&(Zt=w,Qs=d,bn=null);break;case"focusout":bn=Qs=Zt=null;break;case"mousedown":Ks=!0;break;case"contextmenu":case"mouseup":case"dragend":Ks=!1,Yo(m,n,h);break;case"selectionchange":if(cm)break;case"keydown":case"keyup":Yo(m,n,h)}var N;if(Ai)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else qt?Au(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Iu&&n.locale!=="ko"&&(qt||C!=="onCompositionStart"?C==="onCompositionEnd"&&qt&&(N=Du()):(ct=h,Fi="value"in ct?ct.value:ct.textContent,qt=!0)),w=dl(d,C),0<w.length&&(C=new Ao(C,e,null,n,h),m.push({event:C,listeners:w}),N?C.data=N:(N=Uu(n),N!==null&&(C.data=N)))),(N=qf?Zf(e,n):em(e,n))&&(d=dl(d,"onBeforeInput"),0<d.length&&(h=new Ao("onBeforeInput","beforeinput",null,n,h),m.push({event:h,listeners:d}),h.data=N))}qu(m,t)})}function ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function dl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,s=l.stateNode;l.tag===5&&s!==null&&(l=s,s=tr(e,n),s!=null&&r.unshift(ar(e,s,l)),s=tr(e,t),s!=null&&r.push(ar(e,s,l))),e=e.return}return r}function Gt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Jo(e,t,n,r,l){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,u=a.alternate,d=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&d!==null&&(a=d,l?(u=tr(n,s),u!=null&&i.unshift(ar(n,u,a))):l||(u=tr(n,s),u!=null&&i.push(ar(n,u,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var pm=/\r\n?/g,hm=/\u0000|\uFFFD/g;function qo(e){return(typeof e=="string"?e:""+e).replace(pm,`
38
+ `).replace(hm,"")}function Ir(e,t,n){if(t=qo(t),qo(e)!==t&&n)throw Error(S(425))}function fl(){}var bs=null,Ys=null;function Gs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xs=typeof setTimeout=="function"?setTimeout:void 0,vm=typeof clearTimeout=="function"?clearTimeout:void 0,Zo=typeof Promise=="function"?Promise:void 0,ym=typeof queueMicrotask=="function"?queueMicrotask:typeof Zo<"u"?function(e){return Zo.resolve(null).then(e).catch(gm)}:Xs;function gm(e){setTimeout(function(){throw e})}function ps(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),lr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);lr(t)}function vt(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==="$?")break;if(t==="/$")return null}}return e}function ea(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),Ve="__reactFiber$"+Cn,ur="__reactProps$"+Cn,tt="__reactContainer$"+Cn,Js="__reactEvents$"+Cn,xm="__reactListeners$"+Cn,jm="__reactHandles$"+Cn;function Ot(e){var t=e[Ve];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[Ve]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ea(e);e!==null;){if(n=e[Ve])return n;e=ea(e)}return t}e=n,n=e.parentNode}return null}function jr(e){return e=e[Ve]||e[tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function tn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function Dl(e){return e[ur]||null}var qs=[],nn=-1;function Et(e){return{current:e}}function U(e){0>nn||(e.current=qs[nn],qs[nn]=null,nn--)}function I(e,t){nn++,qs[nn]=e.current,e.current=t}var wt={},ue=Et(wt),ye=Et(!1),It=wt;function vn(e,t){var n=e.type.contextTypes;if(!n)return wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},s;for(s in n)l[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ge(e){return e=e.childContextTypes,e!=null}function ml(){U(ye),U(ue)}function ta(e,t,n){if(ue.current!==wt)throw Error(S(168));I(ue,t),I(ye,n)}function ec(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(S(108,rf(e)||"Unknown",l));return Q({},n,r)}function pl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wt,It=ue.current,I(ue,e),I(ye,ye.current),!0}function na(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=ec(e,t,It),r.__reactInternalMemoizedMergedChildContext=e,U(ye),U(ue),I(ue,e)):U(ye),I(ye,n)}var Xe=null,Il=!1,hs=!1;function tc(e){Xe===null?Xe=[e]:Xe.push(e)}function km(e){Il=!0,tc(e)}function Ct(){if(!hs&&Xe!==null){hs=!0;var e=0,t=F;try{var n=Xe;for(F=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Xe=null,Il=!1}catch(l){throw Xe!==null&&(Xe=Xe.slice(e+1)),Cu(Mi,Ct),l}finally{F=t,hs=!1}}return null}var rn=[],ln=0,hl=null,vl=0,_e=[],$e=0,At=null,Je=1,qe="";function Tt(e,t){rn[ln++]=vl,rn[ln++]=hl,hl=e,vl=t}function nc(e,t,n){_e[$e++]=Je,_e[$e++]=qe,_e[$e++]=At,At=e;var r=Je;e=qe;var l=32-De(r)-1;r&=~(1<<l),n+=1;var s=32-De(t)+l;if(30<s){var i=l-l%5;s=(r&(1<<i)-1).toString(32),r>>=i,l-=i,Je=1<<32-De(t)+l|n<<l|r,qe=s+e}else Je=1<<s|n<<l|r,qe=e}function Bi(e){e.return!==null&&(Tt(e,1),nc(e,1,0))}function Vi(e){for(;e===hl;)hl=rn[--ln],rn[ln]=null,vl=rn[--ln],rn[ln]=null;for(;e===At;)At=_e[--$e],_e[$e]=null,qe=_e[--$e],_e[$e]=null,Je=_e[--$e],_e[$e]=null}var we=null,ke=null,B=!1,Fe=null;function rc(e,t){var n=Te(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ra(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,we=e,ke=vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=At!==null?{id:Je,overflow:qe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Te(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,ke=null,!0):!1;default:return!1}}function Zs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ei(e){if(B){var t=ke;if(t){var n=t;if(!ra(e,t)){if(Zs(e))throw Error(S(418));t=vt(n.nextSibling);var r=we;t&&ra(e,t)?rc(r,n):(e.flags=e.flags&-4097|2,B=!1,we=e)}}else{if(Zs(e))throw Error(S(418));e.flags=e.flags&-4097|2,B=!1,we=e}}}function la(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function Ar(e){if(e!==we)return!1;if(!B)return la(e),B=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Gs(e.type,e.memoizedProps)),t&&(t=ke)){if(Zs(e))throw lc(),Error(S(418));for(;t;)rc(e,t),t=vt(t.nextSibling)}if(la(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(S(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ke=vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ke=null}}else ke=we?vt(e.stateNode.nextSibling):null;return!0}function lc(){for(var e=ke;e;)e=vt(e.nextSibling)}function yn(){ke=we=null,B=!1}function Wi(e){Fe===null?Fe=[e]:Fe.push(e)}var wm=lt.ReactCurrentBatchConfig;function zn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(S(309));var r=n.stateNode}if(!r)throw Error(S(147,e));var l=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=l.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(S(284));if(!n._owner)throw Error(S(290,e))}return e}function Ur(e,t){throw e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sa(e){var t=e._init;return t(e._payload)}function sc(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function l(f,c){return f=jt(f,c),f.index=0,f.sibling=null,f}function s(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function i(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,c,p,j){return c===null||c.tag!==6?(c=ws(p,f.mode,j),c.return=f,c):(c=l(c,p),c.return=f,c)}function u(f,c,p,j){var E=p.type;return E===Jt?h(f,c,p.props.children,j,p.key):c!==null&&(c.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===it&&sa(E)===c.type)?(j=l(c,p.props),j.ref=zn(f,c,p),j.return=f,j):(j=nl(p.type,p.key,p.props,null,f.mode,j),j.ref=zn(f,c,p),j.return=f,j)}function d(f,c,p,j){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=Ns(p,f.mode,j),c.return=f,c):(c=l(c,p.children||[]),c.return=f,c)}function h(f,c,p,j,E){return c===null||c.tag!==7?(c=Ft(p,f.mode,j,E),c.return=f,c):(c=l(c,p),c.return=f,c)}function m(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=ws(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Tr:return p=nl(c.type,c.key,c.props,null,f.mode,p),p.ref=zn(f,null,c),p.return=f,p;case Xt:return c=Ns(c,f.mode,p),c.return=f,c;case it:var j=c._init;return m(f,j(c._payload),p)}if(An(c)||Pn(c))return c=Ft(c,f.mode,p,null),c.return=f,c;Ur(f,c)}return null}function v(f,c,p,j){var E=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return E!==null?null:a(f,c,""+p,j);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Tr:return p.key===E?u(f,c,p,j):null;case Xt:return p.key===E?d(f,c,p,j):null;case it:return E=p._init,v(f,c,E(p._payload),j)}if(An(p)||Pn(p))return E!==null?null:h(f,c,p,j,null);Ur(f,p)}return null}function g(f,c,p,j,E){if(typeof j=="string"&&j!==""||typeof j=="number")return f=f.get(p)||null,a(c,f,""+j,E);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Tr:return f=f.get(j.key===null?p:j.key)||null,u(c,f,j,E);case Xt:return f=f.get(j.key===null?p:j.key)||null,d(c,f,j,E);case it:var w=j._init;return g(f,c,p,w(j._payload),E)}if(An(j)||Pn(j))return f=f.get(p)||null,h(c,f,j,E,null);Ur(c,j)}return null}function x(f,c,p,j){for(var E=null,w=null,N=c,C=c=0,z=null;N!==null&&C<p.length;C++){N.index>C?(z=N,N=null):z=N.sibling;var T=v(f,N,p[C],j);if(T===null){N===null&&(N=z);break}e&&N&&T.alternate===null&&t(f,N),c=s(T,c,C),w===null?E=T:w.sibling=T,w=T,N=z}if(C===p.length)return n(f,N),B&&Tt(f,C),E;if(N===null){for(;C<p.length;C++)N=m(f,p[C],j),N!==null&&(c=s(N,c,C),w===null?E=N:w.sibling=N,w=N);return B&&Tt(f,C),E}for(N=r(f,N);C<p.length;C++)z=g(N,f,C,p[C],j),z!==null&&(e&&z.alternate!==null&&N.delete(z.key===null?C:z.key),c=s(z,c,C),w===null?E=z:w.sibling=z,w=z);return e&&N.forEach(function(se){return t(f,se)}),B&&Tt(f,C),E}function y(f,c,p,j){var E=Pn(p);if(typeof E!="function")throw Error(S(150));if(p=E.call(p),p==null)throw Error(S(151));for(var w=E=null,N=c,C=c=0,z=null,T=p.next();N!==null&&!T.done;C++,T=p.next()){N.index>C?(z=N,N=null):z=N.sibling;var se=v(f,N,T.value,j);if(se===null){N===null&&(N=z);break}e&&N&&se.alternate===null&&t(f,N),c=s(se,c,C),w===null?E=se:w.sibling=se,w=se,N=z}if(T.done)return n(f,N),B&&Tt(f,C),E;if(N===null){for(;!T.done;C++,T=p.next())T=m(f,T.value,j),T!==null&&(c=s(T,c,C),w===null?E=T:w.sibling=T,w=T);return B&&Tt(f,C),E}for(N=r(f,N);!T.done;C++,T=p.next())T=g(N,f,C,T.value,j),T!==null&&(e&&T.alternate!==null&&N.delete(T.key===null?C:T.key),c=s(T,c,C),w===null?E=T:w.sibling=T,w=T);return e&&N.forEach(function(Ye){return t(f,Ye)}),B&&Tt(f,C),E}function k(f,c,p,j){if(typeof p=="object"&&p!==null&&p.type===Jt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Tr:e:{for(var E=p.key,w=c;w!==null;){if(w.key===E){if(E=p.type,E===Jt){if(w.tag===7){n(f,w.sibling),c=l(w,p.props.children),c.return=f,f=c;break e}}else if(w.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===it&&sa(E)===w.type){n(f,w.sibling),c=l(w,p.props),c.ref=zn(f,w,p),c.return=f,f=c;break e}n(f,w);break}else t(f,w);w=w.sibling}p.type===Jt?(c=Ft(p.props.children,f.mode,j,p.key),c.return=f,f=c):(j=nl(p.type,p.key,p.props,null,f.mode,j),j.ref=zn(f,c,p),j.return=f,f=j)}return i(f);case Xt:e:{for(w=p.key;c!==null;){if(c.key===w)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=Ns(p,f.mode,j),c.return=f,f=c}return i(f);case it:return w=p._init,k(f,c,w(p._payload),j)}if(An(p))return x(f,c,p,j);if(Pn(p))return y(f,c,p,j);Ur(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=ws(p,f.mode,j),c.return=f,f=c),i(f)):n(f,c)}return k}var gn=sc(!0),ic=sc(!1),yl=Et(null),gl=null,sn=null,Hi=null;function Qi(){Hi=sn=gl=null}function Ki(e){var t=yl.current;U(yl),e._currentValue=t}function ti(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function mn(e,t){gl=e,Hi=sn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ve=!0),e.firstContext=null)}function Oe(e){var t=e._currentValue;if(Hi!==e)if(e={context:e,memoizedValue:t,next:null},sn===null){if(gl===null)throw Error(S(308));sn=e,gl.dependencies={lanes:0,firstContext:e}}else sn=sn.next=e;return t}var Mt=null;function bi(e){Mt===null?Mt=[e]:Mt.push(e)}function oc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,bi(t)):(n.next=l.next,l.next=n),t.interleaved=n,nt(e,r)}function nt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ot=!1;function Yi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ac(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ze(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,L&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,nt(e,n)}return l=r.interleaved,l===null?(t.next=t,bi(r)):(t.next=l.next,l.next=t),r.interleaved=t,nt(e,n)}function Xr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ri(e,n)}}function ia(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?l=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?l=s=t:s=s.next=t}else l=s=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xl(e,t,n,r){var l=e.updateQueue;ot=!1;var s=l.firstBaseUpdate,i=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,d=u.next;u.next=null,i===null?s=d:i.next=d,i=u;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==i&&(a===null?h.firstBaseUpdate=d:a.next=d,h.lastBaseUpdate=u))}if(s!==null){var m=l.baseState;i=0,h=d=u=null,a=s;do{var v=a.lane,g=a.eventTime;if((r&v)===v){h!==null&&(h=h.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(v=t,g=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){m=x.call(g,m,v);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,v=typeof x=="function"?x.call(g,m,v):x,v==null)break e;m=Q({},m,v);break e;case 2:ot=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,v=l.effects,v===null?l.effects=[a]:v.push(a))}else g={eventTime:g,lane:v,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(d=h=g,u=m):h=h.next=g,i|=v;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;v=a,a=v.next,v.next=null,l.lastBaseUpdate=v,l.shared.pending=null}}while(!0);if(h===null&&(u=m),l.baseState=u,l.firstBaseUpdate=d,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else s===null&&(l.shared.lanes=0);Bt|=i,e.lanes=i,e.memoizedState=m}}function oa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(S(191,l));l.call(r)}}}var kr={},He=Et(kr),cr=Et(kr),dr=Et(kr);function Rt(e){if(e===kr)throw Error(S(174));return e}function Gi(e,t){switch(I(dr,t),I(cr,e),I(He,kr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zs(t,e)}U(He),I(He,t)}function xn(){U(He),U(cr),U(dr)}function uc(e){Rt(dr.current);var t=Rt(He.current),n=zs(t,e.type);t!==n&&(I(cr,e),I(He,n))}function Xi(e){cr.current===e&&(U(He),U(cr))}var W=Et(0);function jl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 vs=[];function Ji(){for(var e=0;e<vs.length;e++)vs[e]._workInProgressVersionPrimary=null;vs.length=0}var Jr=lt.ReactCurrentDispatcher,ys=lt.ReactCurrentBatchConfig,Ut=0,H=null,X=null,Z=null,kl=!1,Yn=!1,fr=0,Nm=0;function ie(){throw Error(S(321))}function qi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ae(e[n],t[n]))return!1;return!0}function Zi(e,t,n,r,l,s){if(Ut=s,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Jr.current=e===null||e.memoizedState===null?_m:$m,e=n(r,l),Yn){s=0;do{if(Yn=!1,fr=0,25<=s)throw Error(S(301));s+=1,Z=X=null,t.updateQueue=null,Jr.current=Tm,e=n(r,l)}while(Yn)}if(Jr.current=wl,t=X!==null&&X.next!==null,Ut=0,Z=X=H=null,kl=!1,t)throw Error(S(300));return e}function eo(){var e=fr!==0;return fr=0,e}function Be(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Z===null?H.memoizedState=Z=e:Z=Z.next=e,Z}function Me(){if(X===null){var e=H.alternate;e=e!==null?e.memoizedState:null}else e=X.next;var t=Z===null?H.memoizedState:Z.next;if(t!==null)Z=t,X=e;else{if(e===null)throw Error(S(310));X=e,e={memoizedState:X.memoizedState,baseState:X.baseState,baseQueue:X.baseQueue,queue:X.queue,next:null},Z===null?H.memoizedState=Z=e:Z=Z.next=e}return Z}function mr(e,t){return typeof t=="function"?t(e):t}function gs(e){var t=Me(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=X,l=r.baseQueue,s=n.pending;if(s!==null){if(l!==null){var i=l.next;l.next=s.next,s.next=i}r.baseQueue=l=s,n.pending=null}if(l!==null){s=l.next,r=r.baseState;var a=i=null,u=null,d=s;do{var h=d.lane;if((Ut&h)===h)u!==null&&(u=u.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var m={lane:h,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};u===null?(a=u=m,i=r):u=u.next=m,H.lanes|=h,Bt|=h}d=d.next}while(d!==null&&d!==s);u===null?i=r:u.next=a,Ae(r,t.memoizedState)||(ve=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do s=l.lane,H.lanes|=s,Bt|=s,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xs(e){var t=Me(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,s=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do s=e(s,i.action),i=i.next;while(i!==l);Ae(s,t.memoizedState)||(ve=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function cc(){}function dc(e,t){var n=H,r=Me(),l=t(),s=!Ae(r.memoizedState,l);if(s&&(r.memoizedState=l,ve=!0),r=r.queue,to(pc.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Z!==null&&Z.memoizedState.tag&1){if(n.flags|=2048,pr(9,mc.bind(null,n,r,l,t),void 0,null),te===null)throw Error(S(349));Ut&30||fc(n,t,l)}return l}function fc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t={lastEffect:null,stores:null},H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mc(e,t,n,r){t.value=n,t.getSnapshot=r,hc(t)&&vc(e)}function pc(e,t,n){return n(function(){hc(t)&&vc(e)})}function hc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ae(e,n)}catch{return!0}}function vc(e){var t=nt(e,1);t!==null&&Ie(t,e,1,-1)}function aa(e){var t=Be();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:e},t.queue=e,e=e.dispatch=Cm.bind(null,H,e),[t.memoizedState,e]}function pr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=H.updateQueue,t===null?(t={lastEffect:null,stores:null},H.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function yc(){return Me().memoizedState}function qr(e,t,n,r){var l=Be();H.flags|=e,l.memoizedState=pr(1|t,n,void 0,r===void 0?null:r)}function Al(e,t,n,r){var l=Me();r=r===void 0?null:r;var s=void 0;if(X!==null){var i=X.memoizedState;if(s=i.destroy,r!==null&&qi(r,i.deps)){l.memoizedState=pr(t,n,s,r);return}}H.flags|=e,l.memoizedState=pr(1|t,n,s,r)}function ua(e,t){return qr(8390656,8,e,t)}function to(e,t){return Al(2048,8,e,t)}function gc(e,t){return Al(4,2,e,t)}function xc(e,t){return Al(4,4,e,t)}function jc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kc(e,t,n){return n=n!=null?n.concat([e]):null,Al(4,4,jc.bind(null,t,e),n)}function no(){}function wc(e,t){var n=Me();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nc(e,t){var n=Me();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Sc(e,t,n){return Ut&21?(Ae(n,t)||(n=Tu(),H.lanes|=n,Bt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ve=!0),e.memoizedState=n)}function Sm(e,t){var n=F;F=n!==0&&4>n?n:4,e(!0);var r=ys.transition;ys.transition={};try{e(!1),t()}finally{F=n,ys.transition=r}}function Ec(){return Me().memoizedState}function Em(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Cc(e))_c(t,n);else if(n=oc(e,t,n,r),n!==null){var l=de();Ie(n,e,r,l),$c(n,t,r)}}function Cm(e,t,n){var r=xt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cc(e))_c(t,l);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(l.hasEagerState=!0,l.eagerState=a,Ae(a,i)){var u=t.interleaved;u===null?(l.next=l,bi(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=oc(e,t,l,r),n!==null&&(l=de(),Ie(n,e,r,l),$c(n,t,r))}}function Cc(e){var t=e.alternate;return e===H||t!==null&&t===H}function _c(e,t){Yn=kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $c(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ri(e,n)}}var wl={readContext:Oe,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useInsertionEffect:ie,useLayoutEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useMutableSource:ie,useSyncExternalStore:ie,useId:ie,unstable_isNewReconciler:!1},_m={readContext:Oe,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:Oe,useEffect:ua,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qr(4194308,4,jc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qr(4194308,4,e,t)},useInsertionEffect:function(e,t){return qr(4,2,e,t)},useMemo:function(e,t){var n=Be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Be();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Em.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Be();return e={current:e},t.memoizedState=e},useState:aa,useDebugValue:no,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=aa(!1),t=e[0];return e=Sm.bind(null,e[1]),Be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=Be();if(B){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),te===null)throw Error(S(349));Ut&30||fc(r,t,n)}l.memoizedState=n;var s={value:n,getSnapshot:t};return l.queue=s,ua(pc.bind(null,r,s,e),[e]),r.flags|=2048,pr(9,mc.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Be(),t=te.identifierPrefix;if(B){var n=qe,r=Je;n=(r&~(1<<32-De(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Nm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$m={readContext:Oe,useCallback:wc,useContext:Oe,useEffect:to,useImperativeHandle:kc,useInsertionEffect:gc,useLayoutEffect:xc,useMemo:Nc,useReducer:gs,useRef:yc,useState:function(){return gs(mr)},useDebugValue:no,useDeferredValue:function(e){var t=Me();return Sc(t,X.memoizedState,e)},useTransition:function(){var e=gs(mr)[0],t=Me().memoizedState;return[e,t]},useMutableSource:cc,useSyncExternalStore:dc,useId:Ec,unstable_isNewReconciler:!1},Tm={readContext:Oe,useCallback:wc,useContext:Oe,useEffect:to,useImperativeHandle:kc,useInsertionEffect:gc,useLayoutEffect:xc,useMemo:Nc,useReducer:xs,useRef:yc,useState:function(){return xs(mr)},useDebugValue:no,useDeferredValue:function(e){var t=Me();return X===null?t.memoizedState=e:Sc(t,X.memoizedState,e)},useTransition:function(){var e=xs(mr)[0],t=Me().memoizedState;return[e,t]},useMutableSource:cc,useSyncExternalStore:dc,useId:Ec,unstable_isNewReconciler:!1};function Le(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ni(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ul={isMounted:function(e){return(e=e._reactInternals)?Kt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=de(),l=xt(e),s=Ze(r,l);s.payload=t,n!=null&&(s.callback=n),t=yt(e,s,l),t!==null&&(Ie(t,e,l,r),Xr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=de(),l=xt(e),s=Ze(r,l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=yt(e,s,l),t!==null&&(Ie(t,e,l,r),Xr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=de(),r=xt(e),l=Ze(n,r);l.tag=2,t!=null&&(l.callback=t),t=yt(e,l,r),t!==null&&(Ie(t,e,r,n),Xr(t,e,r))}};function ca(e,t,n,r,l,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!ir(n,r)||!ir(l,s):!0}function Tc(e,t,n){var r=!1,l=wt,s=t.contextType;return typeof s=="object"&&s!==null?s=Oe(s):(l=ge(t)?It:ue.current,r=t.contextTypes,s=(r=r!=null)?vn(e,l):wt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ul,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=s),t}function da(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ul.enqueueReplaceState(t,t.state,null)}function ri(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Yi(e);var s=t.contextType;typeof s=="object"&&s!==null?l.context=Oe(s):(s=ge(t)?It:ue.current,l.context=vn(e,s)),l.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ni(e,t,s,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Ul.enqueueReplaceState(l,l.state,null),xl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function jn(e,t){try{var n="",r=t;do n+=nf(r),r=r.return;while(r);var l=n}catch(s){l=`
39
+ Error generating stack: `+s.message+`
40
+ `+s.stack}return{value:e,source:t,stack:l,digest:null}}function js(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function li(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pm=typeof WeakMap=="function"?WeakMap:Map;function Pc(e,t,n){n=Ze(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sl||(Sl=!0,pi=r),li(e,t)},n}function Oc(e,t,n){n=Ze(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){li(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){li(e,t),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function fa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pm;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Hm.bind(null,e,t,n),t.then(e,e))}function ma(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function pa(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ze(-1,1),t.tag=2,yt(n,t,1))),n.lanes|=1),e)}var Om=lt.ReactCurrentOwner,ve=!1;function ce(e,t,n,r){t.child=e===null?ic(t,null,n,r):gn(t,e.child,n,r)}function ha(e,t,n,r,l){n=n.render;var s=t.ref;return mn(t,l),r=Zi(e,t,n,r,s,l),n=eo(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,rt(e,t,l)):(B&&n&&Bi(t),t.flags|=1,ce(e,t,r,l),t.child)}function va(e,t,n,r,l){if(e===null){var s=n.type;return typeof s=="function"&&!co(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Mc(e,t,s,r,l)):(e=nl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&l)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:ir,n(i,r)&&e.ref===t.ref)return rt(e,t,l)}return t.flags|=1,e=jt(s,r),e.ref=t.ref,e.return=t,t.child=e}function Mc(e,t,n,r,l){if(e!==null){var s=e.memoizedProps;if(ir(s,r)&&e.ref===t.ref)if(ve=!1,t.pendingProps=r=s,(e.lanes&l)!==0)e.flags&131072&&(ve=!0);else return t.lanes=e.lanes,rt(e,t,l)}return si(e,t,n,r,l)}function Rc(e,t,n){var r=t.pendingProps,l=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},I(an,je),je|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,I(an,je),je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,I(an,je),je|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,I(an,je),je|=r;return ce(e,t,l,n),t.child}function Lc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function si(e,t,n,r,l){var s=ge(n)?It:ue.current;return s=vn(t,s),mn(t,l),n=Zi(e,t,n,r,s,l),r=eo(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,rt(e,t,l)):(B&&r&&Bi(t),t.flags|=1,ce(e,t,n,l),t.child)}function ya(e,t,n,r,l){if(ge(n)){var s=!0;pl(t)}else s=!1;if(mn(t,l),t.stateNode===null)Zr(e,t),Tc(t,n,r),ri(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var u=i.context,d=n.contextType;typeof d=="object"&&d!==null?d=Oe(d):(d=ge(n)?It:ue.current,d=vn(t,d));var h=n.getDerivedStateFromProps,m=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||u!==d)&&da(t,i,r,d),ot=!1;var v=t.memoizedState;i.state=v,xl(t,r,i,l),u=t.memoizedState,a!==r||v!==u||ye.current||ot?(typeof h=="function"&&(ni(t,n,h,r),u=t.memoizedState),(a=ot||ca(t,n,a,r,v,u,d))?(m||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=r,t.memoizedState=u),i.props=r,i.state=u,i.context=d,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ac(e,t),a=t.memoizedProps,d=t.type===t.elementType?a:Le(t.type,a),i.props=d,m=t.pendingProps,v=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Oe(u):(u=ge(n)?It:ue.current,u=vn(t,u));var g=n.getDerivedStateFromProps;(h=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==m||v!==u)&&da(t,i,r,u),ot=!1,v=t.memoizedState,i.state=v,xl(t,r,i,l);var x=t.memoizedState;a!==m||v!==x||ye.current||ot?(typeof g=="function"&&(ni(t,n,g,r),x=t.memoizedState),(d=ot||ca(t,n,d,r,v,x,u)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,x,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,x,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),i.props=r,i.state=x,i.context=u,r=d):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return ii(e,t,n,r,s,l)}function ii(e,t,n,r,l,s){Lc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&na(t,n,!1),rt(e,t,s);r=t.stateNode,Om.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=gn(t,e.child,null,s),t.child=gn(t,null,a,s)):ce(e,t,a,s),t.memoizedState=r.state,l&&na(t,n,!0),t.child}function zc(e){var t=e.stateNode;t.pendingContext?ta(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ta(e,t.context,!1),Gi(e,t.containerInfo)}function ga(e,t,n,r,l){return yn(),Wi(l),t.flags|=256,ce(e,t,n,r),t.child}var oi={dehydrated:null,treeContext:null,retryLane:0};function ai(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fc(e,t,n){var r=t.pendingProps,l=W.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),I(W,l&1),e===null)return ei(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Wl(i,r,0,null),e=Ft(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ai(n),t.memoizedState=oi,e):ro(t,i));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Mm(e,t,i,r,a,l,n);if(s){s=r.fallback,i=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=jt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?s=jt(a,s):(s=Ft(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?ai(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=oi,r}return s=e.child,e=s.sibling,r=jt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ro(e,t){return t=Wl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Br(e,t,n,r){return r!==null&&Wi(r),gn(t,e.child,null,n),e=ro(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mm(e,t,n,r,l,s,i){if(n)return t.flags&256?(t.flags&=-257,r=js(Error(S(422))),Br(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,l=t.mode,r=Wl({mode:"visible",children:r.children},l,0,null),s=Ft(s,l,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&gn(t,e.child,null,i),t.child.memoizedState=ai(i),t.memoizedState=oi,s);if(!(t.mode&1))return Br(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(S(419)),r=js(s,r,void 0),Br(e,t,i,r)}if(a=(i&e.childLanes)!==0,ve||a){if(r=te,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==s.retryLane&&(s.retryLane=l,nt(e,l),Ie(r,e,l,-1))}return uo(),r=js(Error(S(421))),Br(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Qm.bind(null,e),l._reactRetry=t,null):(e=s.treeContext,ke=vt(l.nextSibling),we=t,B=!0,Fe=null,e!==null&&(_e[$e++]=Je,_e[$e++]=qe,_e[$e++]=At,Je=e.id,qe=e.overflow,At=t),t=ro(t,r.children),t.flags|=4096,t)}function xa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ti(e.return,t,n)}function ks(e,t,n,r,l){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=l)}function Dc(e,t,n){var r=t.pendingProps,l=r.revealOrder,s=r.tail;if(ce(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xa(e,n,t);else if(e.tag===19)xa(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}r&=1}if(I(W,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&jl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ks(t,!1,l,n,s);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&jl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ks(t,!0,n,null,s);break;case"together":ks(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=jt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Rm(e,t,n){switch(t.tag){case 3:zc(t),yn();break;case 5:uc(t);break;case 1:ge(t.type)&&pl(t);break;case 4:Gi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;I(yl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(I(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?Fc(e,t,n):(I(W,W.current&1),e=rt(e,t,n),e!==null?e.sibling:null);I(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Dc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),I(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,Rc(e,t,n)}return rt(e,t,n)}var Ic,ui,Ac,Uc;Ic=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ui=function(){};Ac=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Rt(He.current);var s=null;switch(n){case"input":l=Os(e,l),r=Os(e,r),s=[];break;case"select":l=Q({},l,{value:void 0}),r=Q({},r,{value:void 0}),s=[];break;case"textarea":l=Ls(e,l),r=Ls(e,r),s=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=fl)}Fs(n,r);var i;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var a=l[d];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Zn.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(a=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&u!==a&&(u!=null||a!=null))if(d==="style")if(a){for(i in a)!a.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&a[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(d,n)),n=u;else d==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(d,u)):d==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(d,""+u):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Zn.hasOwnProperty(d)?(u!=null&&d==="onScroll"&&A("scroll",e),s||a===u||(s=[])):(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};Uc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fn(e,t){if(!B)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lm(e,t,n){var r=t.pendingProps;switch(Vi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oe(t),null;case 1:return ge(t.type)&&ml(),oe(t),null;case 3:return r=t.stateNode,xn(),U(ye),U(ue),Ji(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ar(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fe!==null&&(yi(Fe),Fe=null))),ui(e,t),oe(t),null;case 5:Xi(t);var l=Rt(dr.current);if(n=t.type,e!==null&&t.stateNode!=null)Ac(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return oe(t),null}if(e=Rt(He.current),Ar(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ve]=t,r[ur]=s,e=(t.mode&1)!==0,n){case"dialog":A("cancel",r),A("close",r);break;case"iframe":case"object":case"embed":A("load",r);break;case"video":case"audio":for(l=0;l<Bn.length;l++)A(Bn[l],r);break;case"source":A("error",r);break;case"img":case"image":case"link":A("error",r),A("load",r);break;case"details":A("toggle",r);break;case"input":$o(r,s),A("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},A("invalid",r);break;case"textarea":Po(r,s),A("invalid",r)}Fs(n,s),l=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ir(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ir(r.textContent,a,e),l=["children",""+a]):Zn.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&A("scroll",r)}switch(n){case"input":Pr(r),To(r,s,!0);break;case"textarea":Pr(r),Oo(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=fl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=pu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ve]=t,e[ur]=r,Ic(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ds(n,r),n){case"dialog":A("cancel",e),A("close",e),l=r;break;case"iframe":case"object":case"embed":A("load",e),l=r;break;case"video":case"audio":for(l=0;l<Bn.length;l++)A(Bn[l],e);l=r;break;case"source":A("error",e),l=r;break;case"img":case"image":case"link":A("error",e),A("load",e),l=r;break;case"details":A("toggle",e),l=r;break;case"input":$o(e,r),l=Os(e,r),A("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=Q({},r,{value:void 0}),A("invalid",e);break;case"textarea":Po(e,r),l=Ls(e,r),A("invalid",e);break;default:l=r}Fs(n,l),a=l;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?yu(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&hu(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&er(e,u):typeof u=="number"&&er(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Zn.hasOwnProperty(s)?u!=null&&s==="onScroll"&&A("scroll",e):u!=null&&_i(e,s,u,i))}switch(n){case"input":Pr(e),To(e,r,!1);break;case"textarea":Pr(e),Oo(e);break;case"option":r.value!=null&&e.setAttribute("value",""+kt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?un(e,!!r.multiple,s,!1):r.defaultValue!=null&&un(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=fl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return oe(t),null;case 6:if(e&&t.stateNode!=null)Uc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=Rt(dr.current),Rt(He.current),Ar(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ve]=t,(s=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:Ir(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ir(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ve]=t,t.stateNode=r}return oe(t),null;case 13:if(U(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(B&&ke!==null&&t.mode&1&&!(t.flags&128))lc(),yn(),t.flags|=98560,s=!1;else if(s=Ar(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(S(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(S(317));s[Ve]=t}else yn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;oe(t),s=!1}else Fe!==null&&(yi(Fe),Fe=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||W.current&1?J===0&&(J=3):uo())),t.updateQueue!==null&&(t.flags|=4),oe(t),null);case 4:return xn(),ui(e,t),e===null&&or(t.stateNode.containerInfo),oe(t),null;case 10:return Ki(t.type._context),oe(t),null;case 17:return ge(t.type)&&ml(),oe(t),null;case 19:if(U(W),s=t.memoizedState,s===null)return oe(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Fn(s,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=jl(e),i!==null){for(t.flags|=128,Fn(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return I(W,W.current&1|2),t.child}e=e.sibling}s.tail!==null&&Y()>kn&&(t.flags|=128,r=!0,Fn(s,!1),t.lanes=4194304)}else{if(!r)if(e=jl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fn(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!B)return oe(t),null}else 2*Y()-s.renderingStartTime>kn&&n!==1073741824&&(t.flags|=128,r=!0,Fn(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Y(),t.sibling=null,n=W.current,I(W,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return ao(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function zm(e,t){switch(Vi(t),t.tag){case 1:return ge(t.type)&&ml(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xn(),U(ye),U(ue),Ji(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xi(t),null;case 13:if(U(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));yn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(W),null;case 4:return xn(),null;case 10:return Ki(t.type._context),null;case 22:case 23:return ao(),null;case 24:return null;default:return null}}var Vr=!1,ae=!1,Fm=typeof WeakSet=="function"?WeakSet:Set,_=null;function on(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){K(e,t,r)}else n.current=null}function ci(e,t,n){try{n()}catch(r){K(e,t,r)}}var ja=!1;function Dm(e,t){if(bs=ul,e=Qu(),Ui(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,u=-1,d=0,h=0,m=e,v=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(a=i+l),m!==s||r!==0&&m.nodeType!==3||(u=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)v=m,m=g;for(;;){if(m===e)break t;if(v===n&&++d===l&&(a=i),v===s&&++h===r&&(u=i),(g=m.nextSibling)!==null)break;m=v,v=m.parentNode}m=g}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ys={focusedElem:e,selectionRange:n},ul=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,k=x.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:Le(t.type,y),k);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(j){K(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return x=ja,ja=!1,x}function Gn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,s!==void 0&&ci(t,n,s)}l=l.next}while(l!==r)}}function Bl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function di(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Bc(e){var t=e.alternate;t!==null&&(e.alternate=null,Bc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ve],delete t[ur],delete t[Js],delete t[xm],delete t[jm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Vc(e){return e.tag===5||e.tag===3||e.tag===4}function ka(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vc(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.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 fi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fl));else if(r!==4&&(e=e.child,e!==null))for(fi(e,t,n),e=e.sibling;e!==null;)fi(e,t,n),e=e.sibling}function mi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(mi(e,t,n),e=e.sibling;e!==null;)mi(e,t,n),e=e.sibling}var ne=null,ze=!1;function st(e,t,n){for(n=n.child;n!==null;)Wc(e,t,n),n=n.sibling}function Wc(e,t,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(Rl,n)}catch{}switch(n.tag){case 5:ae||on(n,t);case 6:var r=ne,l=ze;ne=null,st(e,t,n),ne=r,ze=l,ne!==null&&(ze?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&(ze?(e=ne,n=n.stateNode,e.nodeType===8?ps(e.parentNode,n):e.nodeType===1&&ps(e,n),lr(e)):ps(ne,n.stateNode));break;case 4:r=ne,l=ze,ne=n.stateNode.containerInfo,ze=!0,st(e,t,n),ne=r,ze=l;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var s=l,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&ci(n,t,i),l=l.next}while(l!==r)}st(e,t,n);break;case 1:if(!ae&&(on(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){K(n,t,a)}st(e,t,n);break;case 21:st(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,st(e,t,n),ae=r):st(e,t,n);break;default:st(e,t,n)}}function wa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fm),t.forEach(function(r){var l=Km.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Re(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:ne=a.stateNode,ze=!1;break e;case 3:ne=a.stateNode.containerInfo,ze=!0;break e;case 4:ne=a.stateNode.containerInfo,ze=!0;break e}a=a.return}if(ne===null)throw Error(S(160));Wc(s,i,l),ne=null,ze=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){K(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hc(t,e),t=t.sibling}function Hc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Re(t,e),Ue(e),r&4){try{Gn(3,e,e.return),Bl(3,e)}catch(y){K(e,e.return,y)}try{Gn(5,e,e.return)}catch(y){K(e,e.return,y)}}break;case 1:Re(t,e),Ue(e),r&512&&n!==null&&on(n,n.return);break;case 5:if(Re(t,e),Ue(e),r&512&&n!==null&&on(n,n.return),e.flags&32){var l=e.stateNode;try{er(l,"")}catch(y){K(e,e.return,y)}}if(r&4&&(l=e.stateNode,l!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&fu(l,s),Ds(a,i);var d=Ds(a,s);for(i=0;i<u.length;i+=2){var h=u[i],m=u[i+1];h==="style"?yu(l,m):h==="dangerouslySetInnerHTML"?hu(l,m):h==="children"?er(l,m):_i(l,h,m,d)}switch(a){case"input":Ms(l,s);break;case"textarea":mu(l,s);break;case"select":var v=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?un(l,!!s.multiple,g,!1):v!==!!s.multiple&&(s.defaultValue!=null?un(l,!!s.multiple,s.defaultValue,!0):un(l,!!s.multiple,s.multiple?[]:"",!1))}l[ur]=s}catch(y){K(e,e.return,y)}}break;case 6:if(Re(t,e),Ue(e),r&4){if(e.stateNode===null)throw Error(S(162));l=e.stateNode,s=e.memoizedProps;try{l.nodeValue=s}catch(y){K(e,e.return,y)}}break;case 3:if(Re(t,e),Ue(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lr(t.containerInfo)}catch(y){K(e,e.return,y)}break;case 4:Re(t,e),Ue(e);break;case 13:Re(t,e),Ue(e),l=e.child,l.flags&8192&&(s=l.memoizedState!==null,l.stateNode.isHidden=s,!s||l.alternate!==null&&l.alternate.memoizedState!==null||(io=Y())),r&4&&wa(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(ae=(d=ae)||h,Re(t,e),ae=d):Re(t,e),Ue(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!h&&e.mode&1)for(_=e,h=e.child;h!==null;){for(m=_=h;_!==null;){switch(v=_,g=v.child,v.tag){case 0:case 11:case 14:case 15:Gn(4,v,v.return);break;case 1:on(v,v.return);var x=v.stateNode;if(typeof x.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){K(r,n,y)}}break;case 5:on(v,v.return);break;case 22:if(v.memoizedState!==null){Sa(m);continue}}g!==null?(g.return=v,_=g):Sa(m)}h=h.sibling}e:for(h=null,m=e;;){if(m.tag===5){if(h===null){h=m;try{l=m.stateNode,d?(s=l.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=m.stateNode,u=m.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=vu("display",i))}catch(y){K(e,e.return,y)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(y){K(e,e.return,y)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Re(t,e),Ue(e),r&4&&wa(e);break;case 21:break;default:Re(t,e),Ue(e)}}function Ue(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vc(n)){var r=n;break e}n=n.return}throw Error(S(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(er(l,""),r.flags&=-33);var s=ka(e);mi(e,s,l);break;case 3:case 4:var i=r.stateNode.containerInfo,a=ka(e);fi(e,a,i);break;default:throw Error(S(161))}}catch(u){K(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Im(e,t,n){_=e,Qc(e)}function Qc(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var l=_,s=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||Vr;if(!i){var a=l.alternate,u=a!==null&&a.memoizedState!==null||ae;a=Vr;var d=ae;if(Vr=i,(ae=u)&&!d)for(_=l;_!==null;)i=_,u=i.child,i.tag===22&&i.memoizedState!==null?Ea(l):u!==null?(u.return=i,_=u):Ea(l);for(;s!==null;)_=s,Qc(s),s=s.sibling;_=l,Vr=a,ae=d}Na(e)}else l.subtreeFlags&8772&&s!==null?(s.return=l,_=s):Na(e)}}function Na(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ae||Bl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ae)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&oa(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}oa(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var h=d.memoizedState;if(h!==null){var m=h.dehydrated;m!==null&&lr(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}ae||t.flags&512&&di(t)}catch(v){K(t,t.return,v)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function Sa(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function Ea(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bl(4,t)}catch(u){K(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){K(t,l,u)}}var s=t.return;try{di(t)}catch(u){K(t,s,u)}break;case 5:var i=t.return;try{di(t)}catch(u){K(t,i,u)}}}catch(u){K(t,t.return,u)}if(t===e){_=null;break}var a=t.sibling;if(a!==null){a.return=t.return,_=a;break}_=t.return}}var Am=Math.ceil,Nl=lt.ReactCurrentDispatcher,lo=lt.ReactCurrentOwner,Pe=lt.ReactCurrentBatchConfig,L=0,te=null,G=null,re=0,je=0,an=Et(0),J=0,hr=null,Bt=0,Vl=0,so=0,Xn=null,he=null,io=0,kn=1/0,Ge=null,Sl=!1,pi=null,gt=null,Wr=!1,dt=null,El=0,Jn=0,hi=null,el=-1,tl=0;function de(){return L&6?Y():el!==-1?el:el=Y()}function xt(e){return e.mode&1?L&2&&re!==0?re&-re:wm.transition!==null?(tl===0&&(tl=Tu()),tl):(e=F,e!==0||(e=window.event,e=e===void 0?16:Fu(e.type)),e):1}function Ie(e,t,n,r){if(50<Jn)throw Jn=0,hi=null,Error(S(185));gr(e,n,r),(!(L&2)||e!==te)&&(e===te&&(!(L&2)&&(Vl|=n),J===4&&ut(e,re)),xe(e,r),n===1&&L===0&&!(t.mode&1)&&(kn=Y()+500,Il&&Ct()))}function xe(e,t){var n=e.callbackNode;wf(e,t);var r=al(e,e===te?re:0);if(r===0)n!==null&&Lo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Lo(n),t===1)e.tag===0?km(Ca.bind(null,e)):tc(Ca.bind(null,e)),ym(function(){!(L&6)&&Ct()}),n=null;else{switch(Pu(r)){case 1:n=Mi;break;case 4:n=_u;break;case 16:n=ol;break;case 536870912:n=$u;break;default:n=ol}n=Zc(n,Kc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Kc(e,t){if(el=-1,tl=0,L&6)throw Error(S(327));var n=e.callbackNode;if(pn()&&e.callbackNode!==n)return null;var r=al(e,e===te?re:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cl(e,r);else{t=r;var l=L;L|=2;var s=Yc();(te!==e||re!==t)&&(Ge=null,kn=Y()+500,zt(e,t));do try{Vm();break}catch(a){bc(e,a)}while(!0);Qi(),Nl.current=s,L=l,G!==null?t=0:(te=null,re=0,t=J)}if(t!==0){if(t===2&&(l=Vs(e),l!==0&&(r=l,t=vi(e,l))),t===1)throw n=hr,zt(e,0),ut(e,r),xe(e,Y()),n;if(t===6)ut(e,r);else{if(l=e.current.alternate,!(r&30)&&!Um(l)&&(t=Cl(e,r),t===2&&(s=Vs(e),s!==0&&(r=s,t=vi(e,s))),t===1))throw n=hr,zt(e,0),ut(e,r),xe(e,Y()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:Pt(e,he,Ge);break;case 3:if(ut(e,r),(r&130023424)===r&&(t=io+500-Y(),10<t)){if(al(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){de(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Xs(Pt.bind(null,e,he,Ge),t);break}Pt(e,he,Ge);break;case 4:if(ut(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-De(r);s=1<<i,i=t[i],i>l&&(l=i),r&=~s}if(r=l,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Am(r/1960))-r,10<r){e.timeoutHandle=Xs(Pt.bind(null,e,he,Ge),r);break}Pt(e,he,Ge);break;case 5:Pt(e,he,Ge);break;default:throw Error(S(329))}}}return xe(e,Y()),e.callbackNode===n?Kc.bind(null,e):null}function vi(e,t){var n=Xn;return e.current.memoizedState.isDehydrated&&(zt(e,t).flags|=256),e=Cl(e,t),e!==2&&(t=he,he=n,t!==null&&yi(t)),e}function yi(e){he===null?he=e:he.push.apply(he,e)}function Um(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],s=l.getSnapshot;l=l.value;try{if(!Ae(s(),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 ut(e,t){for(t&=~so,t&=~Vl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-De(t),r=1<<n;e[n]=-1,t&=~r}}function Ca(e){if(L&6)throw Error(S(327));pn();var t=al(e,0);if(!(t&1))return xe(e,Y()),null;var n=Cl(e,t);if(e.tag!==0&&n===2){var r=Vs(e);r!==0&&(t=r,n=vi(e,r))}if(n===1)throw n=hr,zt(e,0),ut(e,t),xe(e,Y()),n;if(n===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pt(e,he,Ge),xe(e,Y()),null}function oo(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(kn=Y()+500,Il&&Ct())}}function Vt(e){dt!==null&&dt.tag===0&&!(L&6)&&pn();var t=L;L|=1;var n=Pe.transition,r=F;try{if(Pe.transition=null,F=1,e)return e()}finally{F=r,Pe.transition=n,L=t,!(L&6)&&Ct()}}function ao(){je=an.current,U(an)}function zt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vm(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(Vi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ml();break;case 3:xn(),U(ye),U(ue),Ji();break;case 5:Xi(r);break;case 4:xn();break;case 13:U(W);break;case 19:U(W);break;case 10:Ki(r.type._context);break;case 22:case 23:ao()}n=n.return}if(te=e,G=e=jt(e.current,null),re=je=t,J=0,hr=null,so=Vl=Bt=0,he=Xn=null,Mt!==null){for(t=0;t<Mt.length;t++)if(n=Mt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=l,r.next=i}n.pending=r}Mt=null}return e}function bc(e,t){do{var n=G;try{if(Qi(),Jr.current=wl,kl){for(var r=H.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}kl=!1}if(Ut=0,Z=X=H=null,Yn=!1,fr=0,lo.current=null,n===null||n.return===null){J=1,hr=t,G=null;break}e:{var s=e,i=n.return,a=n,u=t;if(t=re,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=u,h=a,m=h.tag;if(!(h.mode&1)&&(m===0||m===11||m===15)){var v=h.alternate;v?(h.updateQueue=v.updateQueue,h.memoizedState=v.memoizedState,h.lanes=v.lanes):(h.updateQueue=null,h.memoizedState=null)}var g=ma(i);if(g!==null){g.flags&=-257,pa(g,i,a,s,t),g.mode&1&&fa(s,d,t),t=g,u=d;var x=t.updateQueue;if(x===null){var y=new Set;y.add(u),t.updateQueue=y}else x.add(u);break e}else{if(!(t&1)){fa(s,d,t),uo();break e}u=Error(S(426))}}else if(B&&a.mode&1){var k=ma(i);if(k!==null){!(k.flags&65536)&&(k.flags|=256),pa(k,i,a,s,t),Wi(jn(u,a));break e}}s=u=jn(u,a),J!==4&&(J=2),Xn===null?Xn=[s]:Xn.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var f=Pc(s,u,t);ia(s,f);break e;case 1:a=u;var c=s.type,p=s.stateNode;if(!(s.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(gt===null||!gt.has(p)))){s.flags|=65536,t&=-t,s.lanes|=t;var j=Oc(s,a,t);ia(s,j);break e}}s=s.return}while(s!==null)}Xc(n)}catch(E){t=E,G===n&&n!==null&&(G=n=n.return);continue}break}while(!0)}function Yc(){var e=Nl.current;return Nl.current=wl,e===null?wl:e}function uo(){(J===0||J===3||J===2)&&(J=4),te===null||!(Bt&268435455)&&!(Vl&268435455)||ut(te,re)}function Cl(e,t){var n=L;L|=2;var r=Yc();(te!==e||re!==t)&&(Ge=null,zt(e,t));do try{Bm();break}catch(l){bc(e,l)}while(!0);if(Qi(),L=n,Nl.current=r,G!==null)throw Error(S(261));return te=null,re=0,J}function Bm(){for(;G!==null;)Gc(G)}function Vm(){for(;G!==null&&!mf();)Gc(G)}function Gc(e){var t=qc(e.alternate,e,je);e.memoizedProps=e.pendingProps,t===null?Xc(e):G=t,lo.current=null}function Xc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=zm(n,t),n!==null){n.flags&=32767,G=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{J=6,G=null;return}}else if(n=Lm(n,t,je),n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);J===0&&(J=5)}function Pt(e,t,n){var r=F,l=Pe.transition;try{Pe.transition=null,F=1,Wm(e,t,n,r)}finally{Pe.transition=l,F=r}return null}function Wm(e,t,n,r){do pn();while(dt!==null);if(L&6)throw Error(S(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(S(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Nf(e,s),e===te&&(G=te=null,re=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Wr||(Wr=!0,Zc(ol,function(){return pn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Pe.transition,Pe.transition=null;var i=F;F=1;var a=L;L|=4,lo.current=null,Dm(e,n),Hc(n,e),um(Ys),ul=!!bs,Ys=bs=null,e.current=n,Im(n),pf(),L=a,F=i,Pe.transition=s}else e.current=n;if(Wr&&(Wr=!1,dt=e,El=l),s=e.pendingLanes,s===0&&(gt=null),yf(n.stateNode),xe(e,Y()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Sl)throw Sl=!1,e=pi,pi=null,e;return El&1&&e.tag!==0&&pn(),s=e.pendingLanes,s&1?e===hi?Jn++:(Jn=0,hi=e):Jn=0,Ct(),null}function pn(){if(dt!==null){var e=Pu(El),t=Pe.transition,n=F;try{if(Pe.transition=null,F=16>e?16:e,dt===null)var r=!1;else{if(e=dt,dt=null,El=0,L&6)throw Error(S(331));var l=L;for(L|=4,_=e.current;_!==null;){var s=_,i=s.child;if(_.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var d=a[u];for(_=d;_!==null;){var h=_;switch(h.tag){case 0:case 11:case 15:Gn(8,h,s)}var m=h.child;if(m!==null)m.return=h,_=m;else for(;_!==null;){h=_;var v=h.sibling,g=h.return;if(Bc(h),h===d){_=null;break}if(v!==null){v.return=g,_=v;break}_=g}}}var x=s.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var k=y.sibling;y.sibling=null,y=k}while(y!==null)}}_=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,_=i;else e:for(;_!==null;){if(s=_,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Gn(9,s,s.return)}var f=s.sibling;if(f!==null){f.return=s.return,_=f;break e}_=s.return}}var c=e.current;for(_=c;_!==null;){i=_;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,_=p;else e:for(i=c;_!==null;){if(a=_,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Bl(9,a)}}catch(E){K(a,a.return,E)}if(a===i){_=null;break e}var j=a.sibling;if(j!==null){j.return=a.return,_=j;break e}_=a.return}}if(L=l,Ct(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(Rl,e)}catch{}r=!0}return r}finally{F=n,Pe.transition=t}}return!1}function _a(e,t,n){t=jn(n,t),t=Pc(e,t,1),e=yt(e,t,1),t=de(),e!==null&&(gr(e,1,t),xe(e,t))}function K(e,t,n){if(e.tag===3)_a(e,e,n);else for(;t!==null;){if(t.tag===3){_a(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))){e=jn(n,e),e=Oc(t,e,1),t=yt(t,e,1),e=de(),t!==null&&(gr(t,1,e),xe(t,e));break}}t=t.return}}function Hm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=de(),e.pingedLanes|=e.suspendedLanes&n,te===e&&(re&n)===n&&(J===4||J===3&&(re&130023424)===re&&500>Y()-io?zt(e,0):so|=n),xe(e,t)}function Jc(e,t){t===0&&(e.mode&1?(t=Rr,Rr<<=1,!(Rr&130023424)&&(Rr=4194304)):t=1);var n=de();e=nt(e,t),e!==null&&(gr(e,t,n),xe(e,n))}function Qm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jc(e,n)}function Km(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),Jc(e,n)}var qc;qc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ve=!1,Rm(e,t,n);ve=!!(e.flags&131072)}else ve=!1,B&&t.flags&1048576&&nc(t,vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zr(e,t),e=t.pendingProps;var l=vn(t,ue.current);mn(t,n),l=Zi(null,t,r,e,l,n);var s=eo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ge(r)?(s=!0,pl(t)):s=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Yi(t),l.updater=Ul,t.stateNode=l,l._reactInternals=t,ri(t,r,e,n),t=ii(null,t,r,!0,s,n)):(t.tag=0,B&&s&&Bi(t),ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ym(r),e=Le(r,e),l){case 0:t=si(null,t,r,e,n);break e;case 1:t=ya(null,t,r,e,n);break e;case 11:t=ha(null,t,r,e,n);break e;case 14:t=va(null,t,r,Le(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),si(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),ya(e,t,r,l,n);case 3:e:{if(zc(t),e===null)throw Error(S(387));r=t.pendingProps,s=t.memoizedState,l=s.element,ac(e,t),xl(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){l=jn(Error(S(423)),t),t=ga(e,t,r,n,l);break e}else if(r!==l){l=jn(Error(S(424)),t),t=ga(e,t,r,n,l);break e}else for(ke=vt(t.stateNode.containerInfo.firstChild),we=t,B=!0,Fe=null,n=ic(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yn(),r===l){t=rt(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return uc(t),e===null&&ei(t),r=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,i=l.children,Gs(r,l)?i=null:s!==null&&Gs(r,s)&&(t.flags|=32),Lc(e,t),ce(e,t,i,n),t.child;case 6:return e===null&&ei(t),null;case 13:return Fc(e,t,n);case 4:return Gi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gn(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),ha(e,t,r,l,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,s=t.memoizedProps,i=l.value,I(yl,r._currentValue),r._currentValue=i,s!==null)if(Ae(s.value,i)){if(s.children===l.children&&!ye.current){t=rt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=Ze(-1,n&-n),u.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var h=d.pending;h===null?u.next=u:(u.next=h.next,h.next=u),d.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),ti(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(S(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ti(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}ce(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,mn(t,n),l=Oe(l),r=r(l),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,l=Le(r,t.pendingProps),l=Le(r.type,l),va(e,t,r,l,n);case 15:return Mc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Zr(e,t),t.tag=1,ge(r)?(e=!0,pl(t)):e=!1,mn(t,n),Tc(t,r,l),ri(t,r,l,n),ii(null,t,r,!0,e,n);case 19:return Dc(e,t,n);case 22:return Rc(e,t,n)}throw Error(S(156,t.tag))};function Zc(e,t){return Cu(e,t)}function bm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(e,t,n,r){return new bm(e,t,n,r)}function co(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ym(e){if(typeof e=="function")return co(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ti)return 11;if(e===Pi)return 14}return 2}function jt(e,t){var n=e.alternate;return n===null?(n=Te(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&14680064,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}function nl(e,t,n,r,l,s){var i=2;if(r=e,typeof e=="function")co(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Jt:return Ft(n.children,l,s,t);case $i:i=8,l|=8;break;case _s:return e=Te(12,n,t,l|2),e.elementType=_s,e.lanes=s,e;case $s:return e=Te(13,n,t,l),e.elementType=$s,e.lanes=s,e;case Ts:return e=Te(19,n,t,l),e.elementType=Ts,e.lanes=s,e;case uu:return Wl(n,l,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ou:i=10;break e;case au:i=9;break e;case Ti:i=11;break e;case Pi:i=14;break e;case it:i=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Te(i,n,t,l),t.elementType=e,t.type=r,t.lanes=s,t}function Ft(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function Wl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=uu,e.lanes=n,e.stateNode={isHidden:!1},e}function ws(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function Ns(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rs(0),this.expirationTimes=rs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rs(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function fo(e,t,n,r,l,s,i,a,u){return e=new Gm(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Te(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yi(s),e}function Xm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ed(e){if(!e)return wt;e=e._reactInternals;e:{if(Kt(e)!==e||e.tag!==1)throw Error(S(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(S(171))}if(e.tag===1){var n=e.type;if(ge(n))return ec(e,n,t)}return t}function td(e,t,n,r,l,s,i,a,u){return e=fo(n,r,!0,e,l,s,i,a,u),e.context=ed(null),n=e.current,r=de(),l=xt(n),s=Ze(r,l),s.callback=t??null,yt(n,s,l),e.current.lanes=l,gr(e,l,r),xe(e,r),e}function Hl(e,t,n,r){var l=t.current,s=de(),i=xt(l);return n=ed(n),t.context===null?t.context=n:t.pendingContext=n,t=Ze(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=yt(l,t,i),e!==null&&(Ie(e,l,i,s),Xr(e,l,i)),i}function _l(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function $a(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mo(e,t){$a(e,t),(e=e.alternate)&&$a(e,t)}function Jm(){return null}var nd=typeof reportError=="function"?reportError:function(e){console.error(e)};function po(e){this._internalRoot=e}Ql.prototype.render=po.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));Hl(e,t,null,null)};Ql.prototype.unmount=po.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vt(function(){Hl(null,e,null,null)}),t[tt]=null}};function Ql(e){this._internalRoot=e}Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ru();e={blockedOn:null,target:e,priority:t};for(var n=0;n<at.length&&t!==0&&t<at[n].priority;n++);at.splice(n,0,e),n===0&&zu(e)}};function ho(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ta(){}function qm(e,t,n,r,l){if(l){if(typeof r=="function"){var s=r;r=function(){var d=_l(i);s.call(d)}}var i=td(t,r,e,0,null,!1,!1,"",Ta);return e._reactRootContainer=i,e[tt]=i.current,or(e.nodeType===8?e.parentNode:e),Vt(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var d=_l(u);a.call(d)}}var u=fo(e,0,!1,null,null,!1,!1,"",Ta);return e._reactRootContainer=u,e[tt]=u.current,or(e.nodeType===8?e.parentNode:e),Vt(function(){Hl(t,u,n,r)}),u}function bl(e,t,n,r,l){var s=n._reactRootContainer;if(s){var i=s;if(typeof l=="function"){var a=l;l=function(){var u=_l(i);a.call(u)}}Hl(t,i,e,l)}else i=qm(n,t,e,l,r);return _l(i)}Ou=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Un(t.pendingLanes);n!==0&&(Ri(t,n|1),xe(t,Y()),!(L&6)&&(kn=Y()+500,Ct()))}break;case 13:Vt(function(){var r=nt(e,1);if(r!==null){var l=de();Ie(r,e,1,l)}}),mo(e,1)}};Li=function(e){if(e.tag===13){var t=nt(e,134217728);if(t!==null){var n=de();Ie(t,e,134217728,n)}mo(e,134217728)}};Mu=function(e){if(e.tag===13){var t=xt(e),n=nt(e,t);if(n!==null){var r=de();Ie(n,e,t,r)}mo(e,t)}};Ru=function(){return F};Lu=function(e,t){var n=F;try{return F=e,t()}finally{F=n}};As=function(e,t,n){switch(t){case"input":if(Ms(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Dl(r);if(!l)throw Error(S(90));du(r),Ms(r,l)}}}break;case"textarea":mu(e,n);break;case"select":t=n.value,t!=null&&un(e,!!n.multiple,t,!1)}};ju=oo;ku=Vt;var Zm={usingClientEntryPoint:!1,Events:[jr,tn,Dl,gu,xu,oo]},Dn={findFiberByHostInstance:Ot,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ep={bundleType:Dn.bundleType,version:Dn.version,rendererPackageName:Dn.rendererPackageName,rendererConfig:Dn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:lt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Su(e),e===null?null:e.stateNode},findFiberByHostInstance:Dn.findFiberByHostInstance||Jm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hr.isDisabled&&Hr.supportsFiber)try{Rl=Hr.inject(ep),We=Hr}catch{}}Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zm;Se.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ho(t))throw Error(S(200));return Xm(e,t,null,n)};Se.createRoot=function(e,t){if(!ho(e))throw Error(S(299));var n=!1,r="",l=nd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=fo(e,1,!1,null,null,n,!1,r,l),e[tt]=t.current,or(e.nodeType===8?e.parentNode:e),new po(t)};Se.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(S(188)):(e=Object.keys(e).join(","),Error(S(268,e)));return e=Su(t),e=e===null?null:e.stateNode,e};Se.flushSync=function(e){return Vt(e)};Se.hydrate=function(e,t,n){if(!Kl(t))throw Error(S(200));return bl(null,e,t,!0,n)};Se.hydrateRoot=function(e,t,n){if(!ho(e))throw Error(S(405));var r=n!=null&&n.hydratedSources||null,l=!1,s="",i=nd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=td(t,null,e,1,n??null,l,!1,s,i),e[tt]=t.current,or(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Ql(t)};Se.render=function(e,t,n){if(!Kl(t))throw Error(S(200));return bl(null,e,t,!1,n)};Se.unmountComponentAtNode=function(e){if(!Kl(e))throw Error(S(40));return e._reactRootContainer?(Vt(function(){bl(null,null,e,!1,function(){e._reactRootContainer=null,e[tt]=null})}),!0):!1};Se.unstable_batchedUpdates=oo;Se.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Kl(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return bl(e,t,n,!1,r)};Se.version="18.3.1-next-f1338f8080-20240426";function rd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rd)}catch(e){console.error(e)}}rd(),ru.exports=Se;var tp=ru.exports,ld,Pa=tp;ld=Pa.createRoot,Pa.hydrateRoot;function np(e){const t=(e.apiBase??"/telemetry/api").replace(/\/$/,"");async function n(r,l={}){const s=new URLSearchParams;for(const[a,u]of Object.entries(l))if(!(u==null||u===""))if(Array.isArray(u))for(const d of u)d!=null&&d!==""&&s.append(a,String(d));else s.set(a,String(u));const i=await fetch(`${t}${r}${s.size?`?${s}`:""}`,{headers:{accept:"application/json"},credentials:"same-origin"});if(!i.ok){const a=await i.json().catch(()=>({})),u=new Error(a.error??`HTTP ${i.status}`);throw u.status=i.status,u}return i.json()}return{call:n,registry:()=>n("/registry"),records:r=>n("/records",r),series:r=>n("/series",r),distribution:r=>n("/distribution",r),breakdown:r=>n("/breakdown",r),rollups:r=>n("/rollups",r),report:r=>n("/report",r),plan:r=>n("/report/plan",r),values:r=>n("/values",r),funnel:r=>n("/funnel",r),distinct:r=>n("/distinct",r),trace:r=>n(`/trace/${encodeURIComponent(r)}`),journey:(r,l)=>n(`/journey/${encodeURIComponent(r)}`,l),views:()=>n("/views"),saveView:(r,l)=>fetch(`${t}/views`,{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({spec:r,shared:l})}).then(s=>s.json()),deleteView:r=>fetch(`${t}/views/${encodeURIComponent(r)}`,{method:"DELETE",credentials:"same-origin"}).then(l=>l.json()),system:()=>n("/system"),revokeKey:r=>fetch(`${t}/system/keys/${encodeURIComponent(r)}/revoke`,{method:"POST",credentials:"same-origin"}).then(l=>l.json())}}const gi={"1h":36e5,"24h":864e5,"7d":7*864e5,"30d":30*864e5,"90d":90*864e5},Ce=e=>Object.assign(new Error(`telemetry: ${e}`),{status:400});function bt(e,t=new Date){if(typeof e=="string"){const l=gi[e]??rp(e);if(l==null)throw Ce(`range "${e}" is not a known shorthand — use one of ${Object.keys(gi).join(", ")}, an \`<n>h\`/\`<n>d\` form, or an explicit { from, to } ISO pair`);return{from:new Date(t.getTime()-l),to:t}}const n=new Date(e.from),r=new Date(e.to);if(Number.isNaN(n.getTime())||Number.isNaN(r.getTime())||n>=r)throw Ce(`range { from: "${e.from}", to: "${e.to}" } is not valid — \`from\` must be a valid ISO time strictly before \`to\` (the package is half-open everywhere)`);return{from:n,to:r}}function rp(e){const t=/^(\d+)([hd])$/.exec(e);return t?Number(t[1])*(t[2]==="h"?36e5:864e5):null}function sd(e,t=new Date){if(typeof e=="string"&&gi[e]!=null)return e==="1h"||e==="24h"?"hour":e==="90d"?"week":"day";const{from:n,to:r}=bt(e,t),l=r.getTime()-n.getTime();return l<=864e5?"hour":l<90*864e5?"day":"week"}const $l={hour:0,day:1,week:2,month:3},Oa=e=>({from:new Date(e.from.getTime()-(e.to.getTime()-e.from.getTime())),to:e.from});function lp(e,t){if("event"in e)return t.events[e.event]?{form:"event",events:[e.event]}:V(`no event named "${e.event}" is registered — the catalog knows ${ud(Object.keys(t.events).length,"event")}, so either the name is a typo or the registry never declared it`);if("namespace"in e){const r=t.namespaces[e.namespace];return r!=null&&r.length?{form:"namespace",events:[...r]}:V(`no event name starts with "${e.namespace}." — the registered namespaces are ${Object.keys(t.namespaces).join(", ")}`)}if("kind"in e){const r=Object.keys(t.events).filter(l=>t.events[l].kind===e.kind);return r.length?{form:"kind",events:r,kind:e.kind}:V(`no event is registered with kind "${e.kind}" — declare one, or pick a kind the registry uses`)}const n=t.families[e.family];return n?{form:"family",events:[...n.feeders],family:n}:V(`no rollup family "${e.family}" is declared — add a \`rollups: [{ as: '${e.family}', by: [...] }]\` block to the event that should feed it`)}const id={"field:subject":"subject","field:traceId":"traceId"};function sp(e,t){var r;const n=new Map;for(const l of e.envelope)n.set(l.key,l);for(const l of t)for(const s of((r=e.events[l])==null?void 0:r.dims)??[]){const i=n.get(s.key);n.set(s.key,i?{...i,indexed:i.indexed&&s.indexed}:s)}return n}const od=(e,t,n)=>n==="count"||t.some(r=>{var l;return(l=e.events[r])==null?void 0:l.measures.some(s=>s.key===n)}),ad=/^(sum|avg|p50|p90|p95|p99):(.+)$/,V=e=>({unavailable:!0,why:e}),ud=(e,t)=>`${e} ${t}${e===1?"":"s"}`;function ip(e,t,n={}){const r=n.now??new Date,l=n.limits??{},s=lp(e.source,t);if("unavailable"in s)return s;const i=e.measure??"count",a=e.groupBy??[];if(a.length>2)return V(`groupBy takes at most 2 dimensions, got ${a.length} (${a.join(", ")}) — three dims is a pivot table nobody can read and a group count that multiplies`);if(e.interval&&$l[e.interval]==null)return V(`interval "${e.interval}" is not one of hour, day, week, month`);if(i==="funnel")return up(e,t,r,l);if(i.startsWith("distinct:"))return dp(e,t,s,i,r);const u=ad.exec(i);if(i!=="count"&&!u)return V(`measure "${i}" is not a measure — use 'count', 'sum:<metric>', 'avg:<metric>', 'p50|p95|p99:<metric>', 'distinct:<subjectType>' or 'funnel'`);if(u&&!od(t,s.events,i))return V(`"${i}" names a metric no source event declares — add \`${u[2]}\` to the \`metrics\` object of ${s.events.join(", ")}, or pick one of ${ap(t,s.events)}`);const d=fp(e,t,s,i,a,r,l);if(d)return d;const h=pp(e,t,s);if("unavailable"in h)return h;const m=bt(e.range,r),v=sp(t,s.events),x=[...a,...(e.filters??[]).map(c=>c.dim)].find(c=>{var p;return!(((p=v.get(c))==null?void 0:p.indexed)??id[c]!=null)}),y=x?` — "${x}" has no index behind it, so this is a collection scan bounded only by the range`+(x.startsWith("attr:")?`; add "${x.slice(5)}" to \`indexedAttrs\` to make it a lookup`:""):"",k=x!=null?"scan":"raw";if(u&&u[1]!=="sum"&&u[1]!=="avg")return a.length?V(`percentiles per group are not offered yet (reports §13) — "${i}" with groupBy ${a.join(", ")} would be one distribution() read per group. Drop the groupBy, or filter to one group and ask again`):Lt(e,{primitive:"distribution",args:[m,h,{measure:u[2]}],exactness:k,why:`${i} is approximate by construction ($percentile t-digest over the matched records)${y}`});if(a.length){const c=a.find(p=>!v.has(p));return c?V(`"${c}" is not a dimension of ${op(s)} — group by one of ${[...v.keys()].join(", ")}`):Lt(e,{primitive:"breakdown",args:[m,h,{groupBy:a,measure:i,...e.interval?{interval:e.interval}:{},...e.limit?{limit:Tl(e.limit,l.breakdown)}:{}}],exactness:k,why:`raw ${i} by ${a.join(" × ")} over the range${y}`})}if(!e.measure&&!e.interval)return Lt(e,{primitive:"records",args:[m,h,e.limit?{limit:Tl(e.limit,l.records)}:{}],exactness:k,why:`the matching records themselves, newest first${y}`});const f=e.interval??sd(e.range,r);return Lt(e,{primitive:"series",args:[m,h,{measure:i,interval:f}],exactness:k,why:`raw ${i} per ${f} over the range${y}`})}const Tl=(e,t)=>t==null?e:Math.max(1,Math.min(e,t)),op=e=>e.form==="family"?`family "${e.family.as}"`:e.events.join(", "),ap=(e,t)=>{var r;const n=new Set;for(const l of t)for(const s of((r=e.events[l])==null?void 0:r.measures)??[])n.add(s.key);return n.size?[...n].join(", "):"nothing but count"};function up(e,t,n,r){const l=e.stages??[];if(!l.length)return V("`measure: 'funnel'` needs `stages` — one or more lifetime `by: ['subject']` rollup family names, in the order a subject reaches them");const s=e.anchor??l[0],i=e.exits??[];for(const d of[...l,s,...i]){const h=cp(t,d);if(h)return V(h)}const a=t.families[l[0]];for(const d of[...l.slice(1),s]){const h=t.families[d];if(!Pl(h.subjectTypes,a.subjectTypes))return V(`funnel stages must share one subject type: "${l[0]}" is declared \`subjects: [${a.subjectTypes.join(", ")}]\` and "${d}" is \`subjects: [${h.subjectTypes.join(", ")}]\` — two populations cannot convert into each other`)}if(e.subjectType&&!a.subjectTypes.includes(e.subjectType))return V(`subjectType "${e.subjectType}" is not one of the stages' subjects (${a.subjectTypes.join(", ")}) — the cohort would be empty`);if(e.interval==="hour")return V("funnel slices are day, week or month — an hourly cohort slice is not offered, because a cohort is assembled from lifetime milestones with no hourly grain to slice on");const u={stages:l.map(d=>({as:d})),anchor:s,...i.length?{exits:i.map(d=>({as:d}))}:{},cohort:bt(e.range,n),...e.subjectType?{subjectType:e.subjectType}:{},...e.interval?{interval:e.interval}:{},...e.limit?{limit:Tl(e.limit,r.funnel)}:{}};return Lt(e,{primitive:"funnel",args:[u],exactness:"exact",via:s,why:`cohort funnel over ${ud(l.length,"lifetime milestone family")}, anchored on "${s}" — rollups only, no raw scan`})}function cp(e,t){const n=e.families[t];if(!n)return`no rollup family "${t}" is declared. Add a \`rollups: [{ as: '${t}', by: ['subject'], subjects: [...] }]\` block to the event that marks it`;const r=`by: [${n.by.map(l=>`'${l}'`).join(", ")}]${n.bucket?`, bucket: '${n.bucket}'`:""}`;return n.lifetime?n.by.length!==1||n.by[0]!=="subject"?`rollup family "${t}" (declared on "${n.feeders[0]}") is keyed ${r}, but a milestone must be keyed by exactly one subject dim (\`by: ['subject']\`). Extra dims split one subject across several docs, which would over-count every stage`:null:`rollup family "${t}" (declared on "${n.feeders[0]}") is BUCKETED (${r}). A milestone needs a lifetime family so \`firstAt\` is the one moment the subject reached it; a bucketed family has one doc per period and would count the same subject repeatedly`}function dp(e,t,n,r,l){var h;const s=r.slice(9);if(!s)return V(`"${r}" needs a subject type — 'distinct:account', one of ${t.subjectTypes.join(", ")}`);if(!t.subjectTypes.includes(s))return V(`no event or rollup declares the subject type "${s}" — the registry knows ${t.subjectTypes.join(", ")||"no subject types at all"}`);if((h=e.groupBy)!=null&&h.length)return V(`distinct counts take no groupBy: distinctCount() answers one series per family, and "${e.groupBy.join(", ")}" would need a family keyed by those dims AND \`by: ['subject']\`, which cannot count subjects exactly`);const i=new Set(n.events),a=Object.values(t.families).filter(m=>m.bucket!=null&&m.by.length===1&&m.by[0]==="subject"&&m.subjectTypes.includes(s)&&n.events.every(v=>m.feeders.includes(v))),u=a.find(m=>Pl(m.feeders,[...i]))??a[0];if(!u)return V(`no bucketed \`by: ['subject']\` family covers ${n.events.join(", ")} for subject type "${s}" — declare \`rollups: [{ as: 'activity', by: ['subject'], subjects: ['${s}'], bucket: 'day' }]\` on the events that count as activity`);const d=!Pl(u.feeders,[...i]);return Lt(e,{primitive:"distinctCount",args:[{as:u.as,subjectType:s,range:bt(e.range,l),...e.interval?{interval:e.interval}:{}}],exactness:"exact",via:u.as,why:`"${u.as}" writes exactly one doc per (subject, ${u.bucket}), so distinct subjects IS the doc count — exact, no sketch`+(d?`. Its feeders (${u.feeders.join(", ")}) are a SUPERSET of the source (${n.events.join(", ")}), so the count includes subjects who only did the others`:"")})}const Ma=e=>e.by.map(t=>t==="subject"?"subjectType":t);function fp(e,t,n,r,l,s,i){var k;if((k=e.excludeActorTypes)!=null&&k.length)return null;const a=n.family?[n.family]:Object.values(t.families).filter(f=>Pl(f.feeders,n.events)),u=ad.exec(r),d=e.filters??[],m=a.filter(f=>{const c=Ma(f);return!l.every(p=>c.includes(p))||e.interval&&(!f.bucket||$l[f.bucket]>$l[e.interval])||u&&(u[1]!=="sum"&&u[1]!=="avg"||!f.sums.includes(u[2]))?!1:d.every(p=>c.includes(p.dim)&&(p.op==="eq"||p.op==="in")||mp(p,f))}).sort((f,c)=>f.by.length-c.by.length)[0];if(!m)return null;const v=Ma(m),g=bt(e.range,s),x=m.lifetime?"firstAt":"bucketAt",y=d.filter(f=>v.includes(f.dim));return Lt(e,{primitive:"rollups",args:[{as:m.as,on:x,range:g,sort:m.lifetime?"count":"bucketAt",...e.limit?{limit:Tl(e.limit,i.rollups)}:{}}],exactness:"exact",via:m.as,shape:{groupBy:l,labels:l.map(f=>m.labels[v.indexOf(f)]),measure:r,...e.interval?{interval:e.interval}:{},...y.length?{filters:y.map(f=>({...f,label:m.labels[v.indexOf(f.dim)]}))}:{}},why:`family "${m.as}" is keyed by ${v.join(", ")||"nothing but its feeders"} and maintained on write, so this is one indexed rollup read over \`${x}\` instead of a raw scan`+((u==null?void 0:u[1])==="avg"?`. avg:${u[2]} is exact off a rollup: the executor divides sums.${u[2]} by count`:"")+(e.interval&&m.bucket!==e.interval?`. Its ${m.bucket} buckets roll up into ${e.interval} without splitting one`:"")})}function mp(e,t){if(e.dim!=="field:name")return!1;const n=e.op==="eq"?[String(e.value)]:e.op==="in"?[...e.value].map(String):null;return n!=null&&t.feeders.every(r=>n.includes(r))}const Ra={"field:kind":"kind","field:name":"name","field:severity":"severity","field:env":"env","field:service":"service","field:release":"release",...id};function pp(e,t,n){var l,s;const r={};n.events.length===1?r.name=n.events[0]:n.kind?r.kind=n.kind:r.name=[...n.events];for(const i of e.filters??[]){const a=Ra[i.dim];if(a){if(i.op!=="eq")return V(`"${i.dim}" supports equality only on the raw path — RecordFilter.${String(a)} is one string, and "${i.op}" would need a term query.ts does not build`);r[a]=String(i.value);continue}if(i.dim.startsWith("attr:")){const u=i.dim.slice(5);if(i.op==="eq"){(r.attrs??(r.attrs={}))[u]=String(i.value);continue}if(i.op==="gte"||i.op==="lte"){if(!od(t,n.events,`sum:${u}`))return V(`"${i.dim} ${i.op}" is a numeric bound, which only a declared metric can carry — add \`${u}\` to the \`metrics\` object of ${n.events.join(", ")}, or filter it as an equality`);const d=(l=r.metrics??(r.metrics={}))[u]??(l[u]={});d[i.op]=Number(i.value);continue}return V(`"${i.dim}" supports equality (or a gte/lte bound on a metric) — an \`in\` over attrs would need a \`$in\` term buildMatch does not write`)}return i.dim==="subjectType"||i.dim==="actorType"?V(`"${i.dim}" is derived at query time from ${i.dim==="subjectType"?"`subjectKeys`":"`actor`"} and RecordFilter has no term for it — group by it instead, pin one subject with \`field:subject\``+(i.dim==="actorType"?", or use `excludeActorTypes`":"")):V(`"${i.dim}" is not filterable on the raw path — RecordFilter carries ${Object.keys(Ra).join(", ")}, \`attr:<key>\` and metric bounds`)}return(s=e.excludeActorTypes)!=null&&s.length&&(r.excludeActorTypes=[...e.excludeActorTypes]),r}function Lt(e,t){if(e.compare!=="previous")return t;const[n,...r]=t.args;if(t.primitive==="rollups"||t.primitive==="distinctCount"||t.primitive==="funnel"){const l=n,s=t.primitive==="funnel"?"cohort":"range",i=l[s];return i?{...t,previous:{args:[{...l,[s]:{...i,...Oa(i)}},...r]}}:t}return{...t,previous:{args:[Oa(n),...r]}}}const Pl=(e,t)=>e.length===t.length&&e.every(n=>t.includes(n)),hp=new Set(["eq","in","gte","lte"]),vp=new Set(["value","label","time"]);function vo(e){const t=z=>{const T=Array.isArray(e[z])?e[z][0]:e[z];return typeof T=="string"&&T?T:void 0},n=z=>(t(z)??"").split(",").map(T=>T.trim()).filter(Boolean),r=t("source");if(!r)throw Ce("`source` is required — one of source=event:<name>, namespace:<ns>, kind:<kind>, family:<as>");const l=r.indexOf(":"),s=l>0?r.slice(0,l):"",i=l>0?r.slice(l+1):"";if(!i||!["event","namespace","kind","family"].includes(s))throw Ce(`\`source\` must be "event:<name>", "namespace:<ns>", "kind:<kind>" or "family:<as>" — got "${r}"`);const a=s==="event"?{event:i}:s==="namespace"?{namespace:i}:s==="kind"?{kind:i}:{family:i},u=t("range"),d=t("from"),h=t("to");if(!u&&!(d&&h))throw Ce("a range is required — either `range=7d` or both `from` and `to` as ISO times");const m=u??{from:d,to:h},v=t("interval");if(v&&$l[v]==null)throw Ce(`\`interval\` must be one of hour, day, week, month — got "${v}"`);const g=t("sort");if(g&&!vp.has(g))throw Ce(`\`sort\` must be one of value, label, time — got "${g}"`);const x=t("compare");if(x&&x!=="previous")throw Ce(`\`compare\` takes only "previous" — got "${x}"`);const y=t("limit"),k=y==null?void 0:Number(y);if(k!=null&&(!Number.isInteger(k)||k<1))throw Ce(`\`limit\` must be a positive integer — got "${y}"`);const f=t("measure"),c=n("groupBy"),p=n("excludeActors"),j=n("stages"),E=n("exits"),w=t("anchor"),N=t("subjectType"),C=(e.filter==null?[]:Array.isArray(e.filter)?e.filter.map(String):[String(e.filter)]).map(yp);return{source:a,range:m,...v?{interval:v}:{},...f?{measure:f}:{},...c.length?{groupBy:c}:{},...C.length?{filters:C}:{},...p.length?{excludeActorTypes:p}:{},...g?{sort:g}:{},...k!=null?{limit:k}:{},...x?{compare:"previous"}:{},...j.length?{stages:j}:{},...w?{anchor:w}:{},...E.length?{exits:E}:{},...N?{subjectType:N}:{}}}function yp(e){const t=e.split(":"),n=t.findIndex(i=>hp.has(i)),r=n<0?"":t.slice(n+1).join(":");if(n<1||!r)throw Ce(`\`filter\` must be "<dim>:<op>:<value>" with op one of eq, in, gte, lte — got "${e}"`);const l=t.slice(0,n).join(":"),s=t[n];if(s==="in"){const i=r.split(",").map(a=>a.trim()).filter(Boolean);if(!i.length)throw Ce(`\`filter\` "${e}" has an empty \`in\` list`);return{dim:l,op:s,value:i}}if(s==="gte"||s==="lte"){const i=Number(r);if(Number.isNaN(i))throw Ce(`\`filter\` bound "${e}" is not a number`);return{dim:l,op:s,value:i}}return{dim:l,op:s,value:r}}function wn(e){var r,l,s,i,a;const t=e.source,n={source:"event"in t?`event:${t.event}`:"namespace"in t?`namespace:${t.namespace}`:"kind"in t?`kind:${t.kind}`:`family:${t.family}`};if(typeof e.range=="string"?n.range=e.range:(n.from=e.range.from,n.to=e.range.to),e.interval&&(n.interval=e.interval),e.measure&&(n.measure=e.measure),(r=e.groupBy)!=null&&r.length&&(n.groupBy=e.groupBy.join(",")),(l=e.filters)!=null&&l.length){const u=e.filters.map(d=>`${d.dim}:${d.op}:${Array.isArray(d.value)?d.value.join(","):String(d.value)}`);n.filter=u.length===1?u[0]:u}return(s=e.excludeActorTypes)!=null&&s.length&&(n.excludeActors=e.excludeActorTypes.join(",")),e.sort&&(n.sort=e.sort),e.limit!=null&&(n.limit=String(e.limit)),e.compare&&(n.compare=e.compare),(i=e.stages)!=null&&i.length&&(n.stages=e.stages.join(",")),e.anchor&&(n.anchor=e.anchor),(a=e.exits)!=null&&a.length&&(n.exits=e.exits.join(",")),e.subjectType&&(n.subjectType=e.subjectType),n}const gp={kind:"field:kind",name:"field:name",severity:"field:severity",env:"field:env",service:"field:service",release:"field:release",subject:"field:subject",traceId:"field:traceId"};function xp(e){if(!e||typeof e!="object")return null;if("source"in e&&e.source)return e;const t=e,n=t.filters??{},r=g=>typeof g=="string"&&g?g:null,l=r(n.name),s=r(n.rollup),i=r(n.kind),a=l?{event:l}:s?{family:s}:i?{kind:i}:null;if(!a)return null;const u=l?"name":s?"rollup":"kind",d=[];for(const[g,x]of Object.entries(n)){if(g===u||g==="rollup"||g==="excludeActorTypes")continue;if(g==="attrs"){const f=typeof x=="string"?x.split(",").map(c=>c.split(":").map(p=>p.trim())):Object.entries(x??{}).map(([c,p])=>[c,String(p)]);for(const[c,p]of f)c&&p!=null&&d.push({dim:`attr:${c}`,op:"eq",value:String(p)});continue}const y=gp[g],k=r(x);y&&k&&d.push({dim:y,op:"eq",value:k})}const h=(t.groupBy??"").split(",").map(g=>g.trim()).filter(Boolean),m=t.sort==="value"||t.sort==="label"||t.sort==="time"?t.sort:void 0,v=n.excludeActorTypes;return{source:a,range:t.range??"7d",...d.length?{filters:d}:{},...h.length?{groupBy:h}:{},...m?{sort:m}:{},...Array.isArray(v)&&v.length?{excludeActorTypes:v.map(String)}:{}}}const rl={error:"var(--red)",state:"var(--amber)",event:"var(--blue)",span:"var(--violet)",usage:"var(--green)"},jp={error:"red",state:"amber",event:"blue",span:"violet",usage:"green"},La={fatal:"red",error:"red",warn:"amber",info:"blue",debug:""},kp=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),cd=new Intl.NumberFormat;function D(e){return e==null||Number.isNaN(e)?"—":Math.abs(e)>=1e4?kp.format(e):cd.format(Math.round(e*100)/100)}function wp(e){return e==null?"—":e===0?"$0":e<1?`$${e.toFixed(e<.01?4:2)}`:`$${cd.format(Math.round(e*100)/100)}`}function Wt(e){return e==null?"—":e<1e3?`${Math.round(e)}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:e<36e5?`${(e/6e4).toFixed(1)}m`:e<864e5?`${(e/36e5).toFixed(1)}h`:`${(e/864e5).toFixed(1)}d`}function _n(e,t){return/_usd$/.test(e)?wp(t):/_ms$/.test(e)||/^duration/.test(e)?Wt(t):D(t)}function dd(e,t){return _n(Ol(e),t)}function Ol(e="count"){const t=e.indexOf(":");return t===-1?e:e.slice(t+1)}function Nn(e){const t=new Date(e),n=Date.now()-t.getTime();return n<6e4?"just now":n<36e5?`${Math.floor(n/6e4)}m ago`:n<864e5?`${Math.floor(n/36e5)}h ago`:t.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function vr(e){return new Date(e).toISOString().replace("T"," ").slice(0,19)}function fd(e){return e==null?"—":`${Math.abs(e)>=10?Math.round(e):Math.round(e*10)/10}%`}function Np(e){return e==null?"—":Math.abs(e)<1?`${Math.round(e*24*10)/10}h`:`${Math.round(e*10)/10}d`}function wr(e){const t=n=>{const{from:r,to:l}=bt(n);return{from:r.toISOString(),to:l.toISOString()}};try{return t(e)}catch{return t("7d")}}const Sp=["1h","24h","7d","30d","90d"];function Nr(e){try{return sd(e)}catch{return"day"}}function za(){const e=window.location.hash.replace(/^#\/?/,""),[t,n]=e.split("?"),r={};for(const[i,a]of new URLSearchParams(n??""))i in r?r[i]=Array.isArray(r[i])?[...r[i],a]:[r[i],a]:r[i]=a;const[l,...s]=(t||"overview").split("/");return{page:l||"overview",arg:s.length?decodeURIComponent(s.join("/")):null,params:r}}function qn(e,t={},n=null){const r=new URLSearchParams;for(const[l,s]of Object.entries(t))if(!(s==null||s===""))if(Array.isArray(s))for(const i of s)i!=null&&i!==""&&r.append(l,String(i));else r.set(l,String(s));return`#/${e}${n?`/${encodeURIComponent(n)}`:""}${r.size?`?${r}`:""}`}function ee(e,t={},n=null){window.location.hash=qn(e,t,n)}function Fa(e){if(e){if(e.event)return`event:${e.event}`;if(e.namespace)return`namespace:${e.namespace}`;if(e.kind)return`kind:${e.kind}`;if(e.family)return`family:${e.family}`}}function Da(e){if(!e)return null;try{return vo({source:e,range:"7d"}).source}catch{return null}}function Yl(e,t){var n;return!e||!t?[]:t.event?e.events[t.event]?[t.event]:[]:t.namespace?[...e.namespaces[t.namespace]??[]]:t.kind?Object.keys(e.events).filter(r=>e.events[r].kind===t.kind):t.family?[...((n=e.families[t.family])==null?void 0:n.feeders)??[]]:[]}function Ep(e){try{return vo(e.params??{})}catch{return null}}function Cp(e,t,n=null){return qn(e,wn(t),n)}function ft(e={}){if(e.filter==null)return[];try{return vo({source:"kind:event",range:"7d",filter:e.filter}).filters??[]}catch{return[]}}function _p(e,t){const n=t.map(r=>`${r.dim}:${r.op}:${Array.isArray(r.value)?r.value.join(","):String(r.value)}`);return{...e,filter:n.length?n:void 0}}const Sr=O.createContext({platform:!1,scope:null});function pe({label:e,value:t,delta:n,meta:r,deltaFormat:l=D}){return o.jsxs("div",{className:"kpi",children:[o.jsx("div",{className:"kpi-label",children:e}),o.jsx("div",{className:"kpi-value",children:t}),(n!=null||r)&&o.jsxs("div",{className:"kpi-meta",children:[n!=null&&o.jsxs("span",{className:`kpi-delta ${n>=0?"up":"down"}`,children:[n>=0?"▲":"▼"," ",l(Math.abs(n))]}),r]})]})}const Ia=["var(--blue)","var(--violet)","var(--green)","var(--amber)","var(--red)","var(--fg-subtle)"],Aa=["","5 3","2 2","8 3 2 3","1 3","6 2 1 2"],$p=120;function Vn({buckets:e,series:t,height:n=160,color:r="var(--accent)",format:l=D}){const i=n,a={l:8,r:8,t:10,b:20},u=(t!=null&&t.length?t:[{buckets:e,color:r}]).filter(f=>{var c;return(c=f==null?void 0:f.buckets)==null?void 0:c.length});if(!u.length)return o.jsx("div",{className:"empty",children:"No data in range"});const d=[...new Set(u.flatMap(f=>f.buckets.map(c=>new Date(c.at).getTime())))].sort((f,c)=>f-c),h=new Map(d.map((f,c)=>[f,c])),m=Math.max(...u.flatMap(f=>f.buckets.map(c=>c.value)),1),v=f=>a.l+f/Math.max(d.length-1,1)*(720-a.l-a.r),g=f=>a.t+(1-f/m)*(i-a.t-a.b),x=u.length===1&&!u[0].label,y=[0,Math.floor((d.length-1)/2),d.length-1].filter((f,c,p)=>p.indexOf(f)===c&&f>=0),k=(f,c)=>f.color??(x?r:Ia[c%Ia.length]);return o.jsxs(o.Fragment,{children:[!x&&o.jsx("div",{className:"hstack",style:{flexWrap:"wrap",marginBottom:8},children:u.map((f,c)=>o.jsxs("span",{className:"pill",style:{color:k(f,c)},title:f.label,children:[o.jsx("span",{className:"dot"}),f.label??"—"]},f.label??c))}),o.jsxs("svg",{viewBox:`0 0 720 ${i}`,className:"chart-svg",role:"img",children:[o.jsx("g",{className:"chart-grid",children:[.25,.5,.75].map(f=>o.jsx("line",{x1:a.l,x2:720-a.r,y1:g(m*f),y2:g(m*f)},f))}),u.map((f,c)=>{const p=f.buckets.map(N=>({i:h.get(new Date(N.at).getTime())??0,b:N})).sort((N,C)=>N.i-C.i),j=p.map((N,C)=>`${C?"L":"M"}${v(N.i).toFixed(1)},${g(N.b.value).toFixed(1)}`).join(""),E=k(f,c),w=f.dashed?"5 3":Aa[c%Aa.length];return o.jsxs("g",{children:[x&&o.jsx("path",{className:"chart-area",fill:E,d:`${j}L${v(p[p.length-1].i)},${i-a.b}L${v(p[0].i)},${i-a.b}Z`}),o.jsx("path",{d:j,stroke:E,className:"chart-line",...w?{strokeDasharray:w}:{}}),d.length<=$p&&p.map(N=>o.jsx("circle",{cx:v(N.i),cy:g(N.b.value),r:"2.5",fill:E,children:o.jsx("title",{children:`${f.label?`${f.label} · `:""}${vr(N.b.at).slice(0,16)} · ${l(N.b.value)}`})},N.i))]},f.label??c)}),o.jsxs("g",{className:"chart-axis",children:[y.map(f=>o.jsx("text",{x:v(f),y:i-6,textAnchor:"middle",children:new Date(d[f]).toLocaleDateString(void 0,{month:"short",day:"numeric"})},f)),o.jsx("text",{x:a.l,y:g(m)-2,children:l(m)})]})]})]})}function Tp({plan:e}){var l;if(!(e!=null&&e.exactness))return null;const t={exact:"green",raw:"blue",scan:"amber"}[e.exactness]??"",n=e.exactness==="scan"?(l=/"([^"]+)" has no index/.exec(e.why??""))==null?void 0:l[1]:null,r=e.exactness==="exact"?`exact — from rollups${e.via?` · ${e.via}`:""}`:e.exactness==="raw"?"raw scan, indexed":`unindexed dim${n?`: ${n}`:""}`;return o.jsx("span",{className:`pill ${t}`,title:e.why,children:r})}function yo({result:e}){return!(e!=null&&e.truncated)&&!(e!=null&&e.bucketsTruncated)?null:o.jsxs("div",{className:"card-sub",style:{margin:"8px 0",color:"var(--amber)"},children:[e.truncated&&o.jsx("div",{children:"cut off at a query cap — the top groups are kept, so every number here is a lower bound and the tail is missing"}),e.bucketsTruncated&&o.jsx("div",{children:"some groups lost their later buckets at the per-group bucket cap — narrow the range or the groups rather than reading the ends of these lines"})]})}function Pp({suggestions:e}){return e!=null&&e.length?o.jsx("div",{className:"vstack",style:{gap:14},children:e.map((t,n)=>o.jsxs("div",{children:[o.jsxs("div",{className:"hstack",style:{marginBottom:6,flexWrap:"wrap"},children:[o.jsx("span",{className:"tag",children:t.kind}),o.jsx("span",{className:"grow",children:t.message}),o.jsx("span",{className:"pill",children:D(t.count)})]}),o.jsx("pre",{className:"code",children:t.fix})]},`${t.kind}:${t.target}:${t.key??n}`))}):o.jsx("div",{className:"empty",children:"Nothing to suggest — the registry and the data agree"})}function Ht({rows:e,columns:t,onRow:n,empty:r="Nothing to group"}){const{platform:l}=O.useContext(Sr);if(!(e!=null&&e.length))return o.jsx("div",{className:"empty",children:r});const s=l&&e.some(i=>i.tenantId!=null)?[{key:"tenantId",label:"tenant",mono:!0},...t]:t;return o.jsxs("table",{className:"table",children:[o.jsx("thead",{children:o.jsx("tr",{children:s.map(i=>o.jsx("th",{className:i.num?"num":"",children:i.label??i.key},i.key))})}),o.jsx("tbody",{children:e.map((i,a)=>o.jsx("tr",{onClick:n?()=>n(i):void 0,children:s.map(u=>o.jsx("td",{className:`${u.num?"num":""} ${u.mono?"mono":""}`,children:u.render?u.render(i):u.num?_n(u.key,i[u.key]):String(i[u.key]??"—")},u.key))},i.id??a))})]})}function Op({histogram:e,p50:t,p95:n,p99:r,format:l=Wt}){if(!(e!=null&&e.length))return o.jsx("div",{className:"empty",children:"No distribution in range"});const s=720,i=140,a=Math.max(...e.map(v=>v.n),1),u=e[0].min,d=e[e.length-1].max||u+1,h=v=>(v-u)/(d-u)*s,m=s/e.length-2;return o.jsx("div",{children:o.jsxs("svg",{viewBox:`0 0 ${s} ${i}`,className:"chart-svg",role:"img",children:[e.map((v,g)=>o.jsx("rect",{className:"chart-bar",x:g*s/e.length+1,width:Math.max(m,1),y:(1-v.n/a)*(i-18),height:v.n/a*(i-18),rx:"2",fill:"var(--violet)",opacity:"0.7"},g)),[["p50",t,"var(--fg-subtle)"],["p95",n,"var(--amber)"],["p99",r,"var(--red)"]].filter(([,v])=>v!=null).map(([v,g,x])=>o.jsxs("g",{children:[o.jsx("line",{x1:h(g),x2:h(g),y1:0,y2:i-18,stroke:x,strokeDasharray:"3 2"}),o.jsxs("text",{x:h(g)+3,y:12,fontSize:"10",fill:x,children:[v," ",l(g)]})]},v))]})})}function md({kind:e}){return o.jsxs("span",{className:`pill ${jp[e]??""}`,children:[o.jsx("span",{className:"dot"}),e]})}function Mp(e){return(e.subjectKeys??[]).join(" ")}function $n({items:e,onSelect:t,empty:n="No records in range"}){const{platform:r}=O.useContext(Sr);return e!=null&&e.length?o.jsxs("table",{className:"table",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"when"}),r&&o.jsx("th",{children:"tenant"}),o.jsx("th",{children:"kind"}),o.jsx("th",{children:"name"}),o.jsx("th",{children:"subjects"}),o.jsx("th",{children:"summary"})]})}),o.jsx("tbody",{children:e.map(l=>o.jsxs("tr",{onClick:()=>t==null?void 0:t(l),children:[o.jsx("td",{className:"mono",title:vr(l.occurredAt),children:Nn(l.occurredAt)}),r&&o.jsx("td",{className:"mono f500",children:l.tenantId}),o.jsx("td",{children:o.jsx(md,{kind:l.kind})}),o.jsx("td",{className:"f500",children:l.name}),o.jsx("td",{className:"mono subtle",children:Mp(l)}),o.jsx("td",{className:"subtle",children:pd(l)})]},l._id))})]}):o.jsx("div",{className:"empty",children:n})}function pd(e){return e.error?`${e.error.type}: ${e.error.message}`.slice(0,80):e.state?`${e.state.key}: ${e.state.from??"∅"} → ${e.state.to}`:e.usage?`${e.usage.meter} × ${D(e.usage.quantity)} ${e.usage.unit}`:e.durationMs!=null?Wt(e.durationMs):Object.entries(e.attrs??{}).slice(0,3).map(([n,r])=>`${n}=${r}`).join(" ")||""}function Rp({frames:e}){return e!=null&&e.length?o.jsx("div",{className:"frames",children:e.map((t,n)=>o.jsxs("div",{className:`frame ${t.inApp?"in-app":""}`,children:[o.jsx("span",{className:"fn",children:t.fn??"<anonymous>"})," ",o.jsxs("span",{className:"loc",children:[t.filename,":",t.lineno,":",t.colno]})]},n))}):o.jsx("div",{className:"subtle text-xs",children:"no frames captured"})}function Lp({record:e,onClose:t,onTrace:n,onSubject:r}){const{platform:l}=O.useContext(Sr);if(!e)return null;const s=i=>Object.entries(i??{}).map(([a,u])=>o.jsxs(O.Fragment,{children:[o.jsx("dt",{children:a}),o.jsx("dd",{children:typeof u=="number"?_n(a,u):String(u)})]},a));return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"drawer-veil",onClick:t}),o.jsxs("aside",{className:"drawer",children:[o.jsxs("div",{className:"hstack",style:{marginBottom:12},children:[o.jsx(md,{kind:e.kind}),o.jsx("h2",{className:"grow",children:e.name}),o.jsx("button",{className:"icon-btn",onClick:t,children:"✕"})]}),e.severity&&La[e.severity]!==void 0&&o.jsx("span",{className:`pill ${La[e.severity]}`,children:e.severity}),o.jsx("div",{className:"divider"}),o.jsxs("dl",{className:"kv",children:[l&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"tenant"}),o.jsx("dd",{className:"mono",children:e.tenantId})]}),o.jsx("dt",{children:"occurred"}),o.jsx("dd",{children:vr(e.occurredAt)}),o.jsx("dt",{children:"received"}),o.jsx("dd",{children:e.receivedAt?vr(e.receivedAt):"—"}),o.jsx("dt",{children:"service / env"}),o.jsxs("dd",{children:[e.service," · ",e.env]}),o.jsx("dt",{children:"release"}),o.jsx("dd",{children:e.release}),o.jsx("dt",{children:"origin"}),o.jsx("dd",{children:e.origin}),e.actor&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"actor"}),o.jsx("dd",{children:e.actor})]}),e.traceId&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"trace"}),o.jsx("dd",{children:o.jsx("a",{onClick:()=>n==null?void 0:n(e.traceId),style:{color:"var(--accent)",cursor:"pointer"},children:e.traceId})})]}),e.durationMs!=null&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"duration"}),o.jsx("dd",{children:Wt(e.durationMs)})]}),o.jsx("dt",{children:"id"}),o.jsx("dd",{children:e._id})]}),(e.subjectKeys??[]).length>0&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"divider"}),o.jsx("div",{className:"hstack",style:{flexWrap:"wrap"},children:e.subjectKeys.map(i=>o.jsx("button",{className:"filter-chip",onClick:()=>r==null?void 0:r(i),children:i},i))})]}),Object.keys(e.attrs??{}).length>0&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"divider"}),o.jsx("div",{className:"f600 text-xs",style:{marginBottom:6},children:"attrs"}),o.jsx("dl",{className:"kv",children:s(e.attrs)})]}),Object.keys(e.metrics??{}).length>0&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"divider"}),o.jsx("div",{className:"f600 text-xs",style:{marginBottom:6},children:"metrics"}),o.jsx("dl",{className:"kv",children:s(e.metrics)})]}),e.error&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"divider"}),o.jsxs("div",{className:"f600 text-xs",style:{marginBottom:6},children:[e.error.type,": ",e.error.message," ",o.jsx("span",{className:"tag",children:e.error.handled?"handled":"unhandled"})," ",o.jsx("span",{className:"tag",children:e.error.fingerprint})]}),o.jsx(Rp,{frames:e.error.frames})]}),e.state&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"divider"}),o.jsxs("dl",{className:"kv",children:[o.jsx("dt",{children:"state key"}),o.jsx("dd",{children:e.state.key}),o.jsx("dt",{children:"transition"}),o.jsxs("dd",{children:[e.state.from??"∅"," → ",e.state.to]}),e.state.previousSinceMs!=null&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"dwelled"}),o.jsx("dd",{children:Wt(e.state.previousSinceMs)})]})]})]}),e.usage&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"divider"}),o.jsxs("dl",{className:"kv",children:[o.jsx("dt",{children:"meter"}),o.jsx("dd",{children:e.usage.meter}),o.jsx("dt",{children:"quantity"}),o.jsxs("dd",{children:[D(e.usage.quantity)," ",e.usage.unit]}),o.jsx("dt",{children:"billed to"}),o.jsx("dd",{children:e.usage.billedTo}),o.jsx("dt",{children:"idempotency"}),o.jsx("dd",{children:e.usage.idempotencyKey}),e.usage.reverses&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"reverses"}),o.jsx("dd",{children:e.usage.reverses})]})]})]}),e.data&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"divider"}),o.jsx("pre",{className:"code",children:JSON.stringify(e.data,null,2)})]})]})]})}function hd({items:e,markers:t=[],onSelect:n}){const{platform:r}=O.useContext(Sr),l=[...e.map(s=>({at:s.occurredAt,record:s})),...t.map(s=>({at:s.at,marker:s}))].sort((s,i)=>new Date(i.at)-new Date(s.at));return l.length?o.jsx("div",{className:"stream",children:l.map((s,i)=>s.marker?o.jsxs("div",{className:"stream-marker",children:["⛳ ",s.marker.label," · ",Nn(s.at)]},`m${i}`):o.jsxs("div",{className:"stream-item",onClick:()=>n==null?void 0:n(s.record),children:[o.jsx("span",{className:"stream-time",children:vr(s.at).slice(5)}),o.jsx("span",{className:"stream-kind status-dot",style:{background:rl[s.record.kind]}}),r&&o.jsx("span",{className:"tag",children:s.record.tenantId}),o.jsx("span",{className:"stream-name",children:s.record.name}),o.jsx("span",{className:"stream-meta",children:pd(s.record)})]},s.record._id))}):o.jsx("div",{className:"empty",children:"Nothing here in range"})}function zp({steps:e}){if(!(e!=null&&e.length))return o.jsx("div",{className:"empty",children:"No funnel data"});const t=r=>r.subjects??r.count??0,n=Math.max(...e.map(t),1);return o.jsx("div",{children:e.map((r,l)=>o.jsxs("div",{className:"funnel-step",children:[o.jsx("span",{className:"f500",title:r.description??"",children:r.label??r.key}),o.jsx("div",{className:"funnel-bar",style:{width:`${t(r)/n*100}%`},title:String(t(r))}),o.jsxs("span",{className:"funnel-conv",children:[D(t(r)),l>0&&r.pctOfPrevious!=null&&` · ${fd(r.pctOfPrevious)}`,l>0&&"pctOfPrevious"in r&&r.pctOfPrevious==null&&o.jsx("span",{className:"dwell",title:"the previous step has no subjects, so conversion is undefined",children:"n/a"}),r.medianDaysFromPrevious!=null&&o.jsxs("span",{className:"dwell",children:[Np(r.medianDaysFromPrevious)," median"]})]})]},r.key??r.label??l))})}function Fp({items:e,onSelect:t}){if(!(e!=null&&e.length))return o.jsx("div",{className:"empty",children:"Empty trace"});const n=Math.min(...e.map(i=>new Date(i.occurredAt).getTime())),r=Math.max(...e.map(i=>new Date(i.occurredAt).getTime()+(i.durationMs??0))),l=Math.max(r-n,1),s=i=>(new Date(i.occurredAt).getTime()-n)/l*100;return o.jsx("div",{children:e.map(i=>o.jsxs("div",{className:"wf-row",children:[o.jsxs("span",{className:"wf-label",onClick:()=>t==null?void 0:t(i),title:i.name,children:[o.jsx("span",{className:"status-dot",style:{background:rl[i.kind],marginRight:6}}),i.name]}),o.jsxs("div",{className:"wf-track",children:[i.durationMs!=null?o.jsx("div",{className:"wf-bar",style:{left:`${s(i)}%`,width:`${Math.max(i.durationMs/l*100,.4)}%`,background:rl[i.kind]}}):o.jsx("div",{className:"wf-dot",style:{left:`calc(${s(i)}% - 5px)`,background:rl[i.kind]}}),o.jsx("span",{className:"wf-dur",children:i.durationMs!=null?Wt(i.durationMs):""})]})]},i._id))})}function Dp({transitions:e}){if(!(e!=null&&e.length))return o.jsx("div",{className:"empty",children:"No transitions in range"});const t=[...new Set(e.map(l=>l.from??"∅"))],n=[...new Set(e.map(l=>l.to))],r=(l,s)=>e.find(i=>(i.from??"∅")===l&&i.to===s);return o.jsx("div",{style:{overflowX:"auto"},children:o.jsxs("table",{className:"matrix",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"from \\ to"}),n.map(l=>o.jsx("th",{children:l},l))]})}),o.jsx("tbody",{children:t.map(l=>o.jsxs("tr",{children:[o.jsx("th",{children:l}),n.map(s=>{const i=r(l,s);return o.jsx("td",{style:i?{background:"color-mix(in oklab, var(--amber) 12%, transparent)"}:{},children:i?o.jsxs(o.Fragment,{children:[D(i.n),i.avgMs!=null&&o.jsxs("span",{className:"dwell",children:[Wt(i.avgMs)," avg"]})]}):"·"},s)})]},l))})]})})}const Ss=6,Ip=e=>String(e).replace(/^(attr|field):/,"");function Ap(e){var n,r,l;const t=(r=(n=e.plan)==null?void 0:n.shape)==null?void 0:r.labels;return t!=null&&t.length?t:(((l=e.report)==null?void 0:l.groupBy)??[]).map(Ip)}function Up(e){const t=new Map;for(const s of e){const i=(s.dims??[]).map(u=>u??"∅").join(" · "),a=t.get(i)??{label:i,buckets:[],total:0};a.buckets.push({at:s.at,value:s.value}),a.total+=s.value,t.set(i,a)}const n=[...t.values()].sort((s,i)=>i.total-s.total);if(n.length<=Ss)return n;const r=n.slice(Ss),l=new Map;for(const s of r)for(const i of s.buckets){const a=new Date(i.at).getTime();l.set(a,(l.get(a)??0)+i.value)}return[...n.slice(0,Ss),{label:`other (${r.length})`,total:r.reduce((s,i)=>s+i.total,0),buckets:[...l.entries()].sort((s,i)=>s[0]-i[0]).map(([s,i])=>({at:s,value:i}))}]}function Bp(e){try{const{from:t,to:n}=bt(e);return n.getTime()-t.getTime()}catch{return 0}}const xi=e=>(e??[]).reduce((t,n)=>t+n.value,0);function vd(e){if(!e)return{value:null,format:D,meta:null};const{plan:t={},result:n={},report:r={}}=e,l=r.measure??"count",s=i=>dd(l,i);switch(t.primitive){case"funnel":return{value:n.cohortSubjects??null,format:D,meta:"in cohort"};case"distribution":return{value:n.n?n.p95:null,format:i=>_n(Ol(l),i),meta:`${D(n.n??0)} sampled`};case"distinctCount":return{value:n.distinct??null,format:D,meta:"distinct in range"};case"records":return{value:(n.items??[]).length,format:D,meta:"latest page"};case"series":return{value:xi(n.buckets),format:s,meta:"in range"};default:{const i=n.rows??[],a=l==="count"||l.startsWith("sum:");return{value:a?i.reduce((u,d)=>u+d.value,0):null,format:s,meta:a?`${D(n.groups??i.length)} groups`:"per group — see below"}}}}function Ua({now:e,before:t,fmt:n,plan:r}){return t==null?null:o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"kpis",style:{gridTemplateColumns:"repeat(2, 1fr)"},children:[o.jsx(pe,{label:"This window",value:n(e),delta:e-t,deltaFormat:n,meta:t?`${fd((e-t)/t*100)} vs previous`:"no previous data"}),o.jsx(pe,{label:"Previous window",value:n(t),meta:"same length, immediately before"})]}),(r==null?void 0:r.exactness)==="exact"&&o.jsx("div",{className:"card-sub",style:{marginBottom:8,color:"var(--amber)"},children:"this is an exact read off pre-aggregated buckets — if the previous window does not start on one, its first bucket is partial and the comparison is off by that much"})]})}function Vp({data:e,onSelect:t,height:n}){var y;if(!e)return null;const{plan:r={},result:l={},previous:s,report:i={}}=e,a=i.measure??"count",u=k=>dd(a,k),d=(k,f=null)=>o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"hstack",style:{flexWrap:"wrap",marginBottom:8},children:[o.jsx(Tp,{plan:r}),f]}),o.jsx(yo,{result:l}),k]});if(r.primitive==="funnel"){const k=l.slices??[],f=k.length>1?(l.stages??[]).map(c=>({label:c.label??c.key,buckets:k.map(p=>{var j,E;return{at:p.at,value:((E=(j=p.stages)==null?void 0:j.find(w=>w.key===c.key))==null?void 0:E.subjects)??0}})})):null;return d(o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"card-sub",style:{marginBottom:8},children:[D(l.cohortSubjects??0)," subjects anchored on"," ",o.jsx("span",{className:"mono",children:(y=l.cohort)==null?void 0:y.anchor})]}),o.jsx(zp,{steps:l.stages}),(l.exits??[]).length>0&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"divider"}),o.jsx("div",{className:"f600 text-xs",style:{marginBottom:6},children:"Exits"}),o.jsx(Ht,{rows:l.exits.map(c=>({id:c.key,exit:c.label??c.key,subjects:c.subjects})),columns:[{key:"exit"},{key:"subjects",num:!0}]})]}),f&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"divider"}),o.jsx("div",{className:"f600 text-xs",style:{marginBottom:6},children:"Cohorts over time"}),o.jsx(Vn,{series:f,height:n??140,format:D})]})]}))}if(r.primitive==="distribution"){const k=Ol(a);return d(o.jsx(Op,{...l,format:f=>_n(k,f)}),o.jsxs("span",{className:"tag",children:[D(l.n??0)," sampled"]}))}if(r.primitive==="records")return d(o.jsx($n,{items:l.items,onSelect:t}));if(r.primitive==="distinctCount")return d(o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"kpis",style:{gridTemplateColumns:"repeat(2, 1fr)"},children:[o.jsx(pe,{label:`Distinct ${Ol(a)}`,value:D(l.distinct??0),meta:"distinct in range"}),o.jsx(pe,{label:`Peak per ${l.interval??"bucket"}`,value:D(Math.max(0,...(l.buckets??[]).map(k=>k.value)))})]}),o.jsx(Vn,{buckets:l.buckets,height:n,format:D})]}));if(r.primitive==="series"){const k=l.buckets??[],f=(s==null?void 0:s.buckets)??null,c=f?Bp(i.range):0,p=[{label:f?"this window":null,buckets:k,color:"var(--accent)"},...f?[{label:"previous window",buckets:f.map(j=>({at:new Date(j.at).getTime()+c,value:j.value})),color:"var(--fg-subtle)",dashed:!0}]:[]];return d(o.jsxs(o.Fragment,{children:[o.jsx(Ua,{now:xi(k),before:f?xi(f):null,fmt:u,plan:r}),o.jsx(Vn,{series:p,height:n,format:u})]}))}const h=l.rows??[],m=Ap(e),v=a==="count"||a.startsWith("sum:"),g=k=>((k==null?void 0:k.rows)??[]).reduce((f,c)=>f+c.value,0);if(h.some(k=>k.at))return d(o.jsxs(o.Fragment,{children:[s&&v&&o.jsx(Ua,{now:g(l),before:g(s),fmt:u,plan:r}),o.jsx(Vn,{series:Up(h),height:n,format:u})]}));const x=vd(e);return d(o.jsxs(o.Fragment,{children:[x.value!=null&&o.jsxs("div",{className:"kpis",style:{gridTemplateColumns:"repeat(2, 1fr)"},children:[o.jsx(pe,{label:"Total",value:x.format(x.value),meta:x.meta}),o.jsx(pe,{label:"Groups",value:D(l.groups??h.length)})]}),o.jsx(Ht,{rows:h.map((k,f)=>({id:f,...Object.fromEntries((k.dims??[]).map((c,p)=>[`d${p}`,c??"∅"])),value:k.value})),columns:[...(m.length?m:["group"]).map((k,f)=>({key:`d${f}`,label:k,mono:!0})),{key:"value",label:a,num:!0,render:k=>u(k.value)}],onRow:t,empty:"No groups in range"})]}))}const Wp=[["overview","Overview","◎"],["errors","Errors","⚠"],["traces","Traces","⋔"],["events","Events","◷"],["explore","Explore","◈"],["journeys","Journeys","➾"],["usage","Usage","¤"],["system","System","⚙"]],Es=12;function Hp({route:e,views:t,title:n,platform:r}){const l=O.useMemo(()=>{var h;const a=(t??[]).filter(m=>m.origin!=="derived"),u=(t??[]).filter(m=>m.origin==="derived"),d={};for(const m of u)(d[h=m.page]??(d[h]=[])).push(m);return{custom:a,byPage:d}},[t]),s=a=>{const u=xp(a.query);if(u)return Cp(a.page,u);const d=a.query??{};return qn(a.page,{range:d.range??"7d",...d.filters??{}})},i=a=>o.jsxs("a",{className:"sidebar-link",href:s(a),title:a.name,children:[o.jsx("span",{className:"icon",children:a.icon||(a.origin==="saved"?"★":a.origin==="configured"?"◆":"·")}),a.name]},`${a.origin}:${a.name}`);return o.jsxs("nav",{className:"sidebar",children:[o.jsxs("div",{className:"sidebar-brand",children:[o.jsx("div",{className:"sidebar-brand-logo",children:"◬"}),o.jsx("div",{className:"sidebar-brand-name",children:n??"Telemetry"})]}),o.jsx("div",{className:"sidebar-section",children:o.jsx("div",{className:"sidebar-nav",children:Wp.map(([a,u,d])=>o.jsxs("a",{className:`sidebar-link ${e.page===a?"active":""}`,href:qn(a,{range:e.params.range??"7d"}),children:[o.jsx("span",{className:"icon",children:d}),u]},a))})}),l.custom.length>0&&o.jsxs("div",{className:"sidebar-section",children:[o.jsx("div",{className:"sidebar-section-title",children:"Views"}),o.jsx("div",{className:"sidebar-nav",children:l.custom.map(i)})]}),Object.entries(l.byPage).map(([a,u])=>o.jsxs("div",{className:"sidebar-section",children:[o.jsx("div",{className:"sidebar-section-title",children:a}),o.jsxs("div",{className:"sidebar-nav",children:[u.slice(0,Es).map(i),u.length>Es&&o.jsxs("a",{className:"sidebar-link",href:qn("explore",{range:e.params.range??"7d"}),children:[o.jsx("span",{className:"icon",children:"…"}),"+",u.length-Es," more"]})]})]},a)),o.jsxs("div",{className:"sidebar-footer",children:[o.jsx("span",{className:"dot"})," ",r?"live · all tenants":"live"]})]})}function Qp({route:e,catalog:t,onSaveView:n,theme:r,onTheme:l,platform:s}){var d,h;const i=e.params,a=m=>ee(e.page,{...i,...m},e.arg),u=Object.entries((t==null?void 0:t.namespaces)??{});return o.jsxs("header",{className:"topbar",children:[o.jsx("div",{className:"crumb",children:o.jsx("span",{className:"crumb-current",style:{textTransform:"capitalize"},children:e.page})}),s&&o.jsxs("span",{className:"pill violet",title:"Platform scope — reads span every tenant",children:[o.jsx("span",{className:"dot"}),"all tenants"]}),o.jsx("div",{className:"topbar-spacer"}),o.jsx("div",{className:"seg",children:Sp.map(m=>o.jsx("button",{className:`seg-item ${(i.range??"7d")===m?"active":""}`,onClick:()=>a({range:m}),children:m},m))}),o.jsxs("select",{className:"select",value:i.name??"",onChange:m=>a({name:m.target.value||void 0}),children:[o.jsx("option",{value:"",children:"all names"}),u.map(([m,v])=>o.jsx("optgroup",{label:m,children:v.map(g=>o.jsx("option",{value:g,children:g},g))},m))]}),o.jsxs("select",{className:"select",value:i.env??"",onChange:m=>a({env:m.target.value||void 0}),children:[o.jsx("option",{value:"",children:"all envs"}),(((h=(d=t==null?void 0:t.envelope)==null?void 0:d.find(m=>m.key==="field:env"))==null?void 0:h.values)??[]).map(m=>o.jsx("option",{value:m,children:m},m))]}),o.jsx("button",{className:"btn btn-sm",onClick:n,title:"Save the current URL state as a view",children:"save view"}),o.jsx("button",{className:"icon-btn",onClick:l,title:"theme",children:r==="dark"?"☾":"☀"})]})}function go({api:e,route:t,catalog:n,source:r}){var E;const l=t.params,[s,i]=O.useState(null),[a,u]=O.useState({}),d=O.useMemo(()=>Yl(n,r),[n,r]),h=O.useMemo(()=>{var C,z;const w=new Map;for(const T of d)for(const se of((z=(C=n==null?void 0:n.events)==null?void 0:C[T])==null?void 0:z.dims)??[]){const Ye=w.get(se.key);w.set(se.key,Ye?{...Ye,indexed:Ye.indexed&&se.indexed}:se)}const N=((n==null?void 0:n.envelope)??[]).filter(T=>!w.has(T.key));return{own:[...w.values()],envelope:N}},[n,d]),m=ft(l),v=new Map(m.map(w=>[w.dim,w])),[g,x]=O.useState(!1),y=w=>ee(t.page,_p(l,w),t.arg),k=(w,N)=>{const C=m.filter(z=>z.dim!==w);y(N==null?C:[...C,{dim:w,op:"eq",value:N}]),i(null)},f=async w=>{if(v.has(w.key))return k(w.key,null);if(i(w.key),!a[w.key]){u(N=>({...N,[w.key]:{loading:!0}}));try{const N=await e.values({dim:w.key,names:d.join(","),...wr(l.range??"7d")});if(u(C=>({...C,[w.key]:N})),N.source==="none"||!N.values.length){i(null);const C=window.prompt(`${w.label} equals…`);C&&k(w.key,C)}}catch{u(N=>({...N,[w.key]:{values:[],source:"none",truncated:!1}})),i(null)}}},c=w=>{const N=v.get(w.key);return o.jsxs("button",{className:`filter-chip ${N?"active":""} ${s===w.key?"active":""}`,onClick:()=>f(w),title:N?`${w.key} = ${N.value} — click to clear`:w.key,children:[w.label,N?`: ${N.value}`:"",!w.indexed&&o.jsx("span",{className:"scan-badge",children:"scan"})]},w.key)},p=s&&a[s],j=s&&[...h.own,...h.envelope].find(w=>w.key===s);return o.jsxs("div",{className:"filter-bar",children:[h.own.map(c),h.envelope.filter(w=>g||v.has(w.key)).map(c),h.envelope.length>0&&o.jsx("button",{className:"filter-chip",onClick:()=>x(!g),children:g?"− envelope":`+ ${h.envelope.length} envelope dims`}),(p==null?void 0:p.loading)&&o.jsx("span",{className:"tag",children:"reading…"}),p&&!p.loading&&((E=p.values)==null?void 0:E.length)>0&&o.jsxs(o.Fragment,{children:[o.jsxs("select",{className:"select",autoFocus:!0,defaultValue:"",onChange:w=>w.target.value&&k(s,w.target.value),children:[o.jsxs("option",{value:"",children:[(j==null?void 0:j.label)??s," equals…"]}),p.values.map((w,N)=>o.jsxs("option",{value:w,children:[w,p.counts?` · ${p.counts[N]}`:""]},w))]}),o.jsx("span",{className:"tag",title:p.via?`via ${p.via}`:void 0,children:p.source}),p.truncated&&o.jsxs("span",{className:"tag",style:{color:"var(--amber)"},children:["top ",p.values.length]}),o.jsx("button",{className:"filter-chip",onClick:()=>i(null),children:"✕"})]}),o.jsx("button",{className:`filter-chip ${l.excludeActors?"active":""}`,onClick:()=>ee(t.page,{...l,excludeActors:l.excludeActors?void 0:"admin"},t.arg),title:"Exclude non-customer actors from every number on this page",children:"customers only"})]})}function Qe(e,t){const[n,r]=O.useState({loading:!0});return O.useEffect(()=>{let l=!0;return r(s=>({...s,loading:!0})),e().then(s=>l&&r({loading:!1,data:s}),s=>l&&r({loading:!1,error:s})),()=>{l=!1}},t),n}const Ba={"field:kind":"kind","field:name":"name","field:severity":"severity","field:env":"env","field:service":"service","field:release":"release","field:subject":"subject","field:traceId":"traceId"},Er=(e,t={})=>{const n={...wr(e.range??"7d"),name:e.name,env:e.env,service:e.service,severity:e.severity,subject:e.subject,metrics:e.metrics,excludeActors:e.excludeActors},r=[];for(const l of ft(e))l.op==="eq"&&(l.dim.startsWith("attr:")?r.push(`${l.dim.slice(5)}:${l.value}`):Ba[l.dim]&&(n[Ba[l.dim]]=l.value));return{...n,...r.length?{attrs:r.join(",")}:{},...t}};function Ke(){return o.jsx("div",{className:"empty",children:"Loading…"})}function be({error:e}){return o.jsxs("div",{className:"empty",children:[o.jsx("h3",{children:e.status===401?"Session expired":"Query failed"}),String(e.message)]})}function Yt(){const[e,t]=O.useState(null);return{open:t,drawer:e&&o.jsx(Lp,{record:e,onClose:()=>t(null),onTrace:r=>{t(null),ee("traces",{},r)},onSubject:r=>{t(null),ee("journeys",{},r)}})}}function Va(e){const t=[];for(const n of Object.values(e.events))t.includes(n.kind)||t.push(n.kind);return[["kinds",t.map(n=>({term:`kind:${n}`,label:n}))],["namespaces",Object.keys(e.namespaces).map(n=>({term:`namespace:${n}`,label:`${n}.*`}))],["events",Object.keys(e.events).map(n=>({term:`event:${n}`,label:n}))],["rollup families",Object.keys(e.families).map(n=>({term:`family:${n}`,label:n}))]]}function Kp(e,t){var l;const n=[{key:"count",label:"count"}];for(const s of e.subjectTypes)n.push({key:`distinct:${s}`,label:`distinct ${s}`});const r=new Set(["count"]);for(const s of Yl(e,t))for(const i of((l=e.events[s])==null?void 0:l.measures)??[])r.has(i.key)||(r.add(i.key),n.push({key:i.key,label:i.exactVia.length?`${i.key} · exact`:i.key}));return yd(e.families[t==null?void 0:t.family])&&n.push({key:"funnel",label:"funnel"}),n}function bp(e,t){var r;const n=new Map;for(const l of Yl(e,t))for(const s of((r=e.events[l])==null?void 0:r.dims)??[]){const i=n.get(s.key);n.set(s.key,i?{...i,indexed:i.indexed&&s.indexed}:s)}for(const l of e.envelope)n.has(l.key)||n.set(l.key,l);return[...n.values()]}function Wa(e,t,n){var s;if(n!=="funnel")return{measure:n,stages:void 0,anchor:void 0,exits:void 0,subjectType:void 0};if((s=t==null?void 0:t.stages)!=null&&s.length)return{measure:n};const r=(t==null?void 0:t.subjectType)??xo(e)[0],l=Dt(e,r);return{measure:n,stages:l,anchor:l[0],subjectType:r}}const yd=e=>!!e&&e.lifetime&&e.by.length===1&&e.by[0]==="subject",Dt=(e,t)=>Object.values(e.families).filter(n=>yd(n)&&(!t||n.subjectTypes.includes(t))).map(n=>n.as),xo=e=>e.subjectTypes.filter(t=>Dt(e,t).length>0);function gd(e){const t=[];for(const[n,r]of Object.entries(e.events))if(r.kind==="usage")for(const l of r.measures)l.key.startsWith("sum:")&&l.key.endsWith("_usd")&&t.push({name:n,key:l.key,exact:l.exactVia.length>0});return t.find(n=>n.exact)??t[0]??null}const xd=e=>{var t;return((t=Object.values(e.families).find(n=>String(n.by[0]??"").startsWith("field:error.")))==null?void 0:t.as)??null},Ha=(e,t,n)=>{for(const r of Object.values(e.events)){if(r.kind!==t)continue;const l=r.dims.find(s=>s.key.startsWith("field:")&&s.key.endsWith(n));if(l)return l}return null};function Yp(e,t,n){if(!e)return{unavailable:!0,why:"no report yet"};try{return ip(e,t,{now:n})}catch(r){return{unavailable:!0,why:String((r==null?void 0:r.message)??r)}}}const jo=(e,t,n)=>{const r=Yp(e,t,n);return"unavailable"in r?r.why:null};function jd(e,t){const n=t?JSON.stringify(wn(t)):null;return Qe(()=>t?e.report(wn(t)):Promise.resolve(null),[n])}function Nt({api:e,report:t,title:n,sub:r,actions:l,height:s,onSelect:i,catalog:a,now:u}){const d=a?jo(t,a,u):null,h=jd(e,d?null:t);return o.jsxs("div",{className:"card chart-card",children:[o.jsxs("div",{className:"hstack",style:{marginBottom:8,flexWrap:"wrap"},children:[o.jsx("span",{className:"card-title",children:n}),r&&o.jsx("span",{className:"card-sub",children:r}),o.jsx("div",{className:"topbar-spacer"}),l]}),d?o.jsx("div",{className:"empty",children:d}):h.loading?o.jsx(Ke,{}):h.error?o.jsx(be,{error:h.error}):o.jsx(Vp,{data:h.data,onSelect:i,height:s})]})}const kd=["source","range","from","to","interval","measure","groupBy","filter","excludeActors","sort","limit","compare","stages","anchor","exits","subjectType"];function wd({api:e,catalog:t,route:n,page:r,fixedSource:l,title:s,sub:i,defaults:a}){const u=n.params,d=l??Da(u.source),h=O.useMemo(()=>new Date,[u.range,u.from,u.to]),m=O.useMemo(()=>d?Gp(u,d,a):null,[JSON.stringify(u),JSON.stringify(d),JSON.stringify(a)]),v=c=>{const p={...u};for(const E of kd)delete p[E];const j=wn(c);l&&delete j.source,ee(r,{...p,...j},n.arg)},g=d?Kp(t,d):[],x=d?bp(t,d):[],y=(m==null?void 0:m.groupBy)??[],k=c=>m?jo({...m,...c},t,h):null,f=(c,p)=>{const j=[...y];p?j[c]=p:j.splice(c,1),v({...m,groupBy:j.filter(Boolean)})};return d?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"card",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:s??"Report"}),i&&o.jsx("span",{className:"card-sub",children:i})]}),o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"hstack",style:{flexWrap:"wrap",gap:10},children:[!l&&o.jsxs("label",{className:"hstack text-xs",children:[o.jsx("span",{className:"subtle",children:"source"}),o.jsx("select",{className:"select",value:Fa(d),onChange:c=>v({source:Da(c.target.value),range:m.range,...m.interval?{interval:m.interval}:{}}),children:Va(t).map(([c,p])=>o.jsx("optgroup",{label:c,children:p.map(j=>o.jsx("option",{value:j.term,children:j.label},j.term))},c))})]}),o.jsxs("label",{className:"hstack text-xs",children:[o.jsx("span",{className:"subtle",children:"measure"}),o.jsx("select",{className:"select",value:(m==null?void 0:m.measure)??"count",onChange:c=>v({...m,...Wa(t,m,c.target.value)}),children:g.map(c=>{const p=k(Wa(t,m,c.key));return o.jsxs("option",{value:c.key,disabled:!!p,title:p??"",children:[c.label,p?" — unavailable":""]},c.key)})})]}),[0,1].map(c=>o.jsxs("label",{className:"hstack text-xs",children:[o.jsx("span",{className:"subtle",children:c?"then by":"group by"}),o.jsxs("select",{className:"select",value:y[c]??"",onChange:p=>f(c,p.target.value||null),children:[o.jsx("option",{value:"",children:"—"}),x.map(p=>{const j=[...y];j[c]=p.key;const E=k({groupBy:j.filter(Boolean)});return o.jsxs("option",{value:p.key,disabled:!!E,title:E??"",children:[p.label,p.indexed?"":" (scan)",E?" — unavailable":""]},p.key)})]})]},c)),o.jsxs("label",{className:"hstack text-xs",children:[o.jsx("span",{className:"subtle",children:"interval"}),o.jsxs("select",{className:"select",value:(m==null?void 0:m.interval)??"",onChange:c=>v({...m,interval:c.target.value||void 0}),children:[o.jsxs("option",{value:"",children:["auto · ",Nr(u.range??"7d")]}),["hour","day","week","month"].map(c=>{const p=k({interval:c});return o.jsxs("option",{value:c,disabled:!!p,title:p??"",children:[c,p?" — unavailable":""]},c)})]})]}),o.jsx("button",{className:`filter-chip ${m!=null&&m.compare?"active":""}`,disabled:!!k({compare:"previous"}),title:k({compare:"previous"})??"the window of the same length immediately before",onClick:()=>v({...m,compare:m!=null&&m.compare?void 0:"previous"}),children:"compare previous"})]}),(m==null?void 0:m.measure)==="funnel"&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"divider"}),o.jsx(Sd,{api:e,catalog:t,report:m,apply:v})]})]})]}),o.jsx(go,{api:e,route:n,catalog:t,source:d}),o.jsx(Nt,{api:e,catalog:t,now:h,report:m,title:Fa(d),sub:m!=null&&m.measure&&m.measure!=="count"?m.measure:void 0})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"card",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Explore"}),o.jsx("span",{className:"card-sub",children:"pick something to read — the rest of the builder follows from it"})]}),o.jsx("div",{className:"card-body hstack",children:o.jsxs("select",{className:"select",value:"",onChange:c=>c.target.value&&ee(r,{range:u.range??"7d",source:c.target.value}),children:[o.jsx("option",{value:"",children:"choose a source…"}),Va(t).map(([c,p])=>o.jsx("optgroup",{label:c,children:p.map(j=>o.jsx("option",{value:j.term,children:j.label},j.term))},c))]})})]}),o.jsxs("div",{className:"empty",children:[o.jsx("h3",{children:"Nothing asked yet"}),"A report is a URL: pick a source and this page becomes a link you can save, share or pin to the sidebar."]})]})}function Gp(e,t,n={}){const r=e.from&&e.to?{from:e.from,to:e.to}:e.range??"7d",l=a=>String(a??"").split(",").map(u=>u.trim()).filter(Boolean),s=e.interval??n.interval,i=e.measure??n.measure;return{source:t,range:r,...s?{interval:s}:{},...i?{measure:i}:{},...l(e.groupBy).length?{groupBy:l(e.groupBy)}:{},...ft(e).length?{filters:ft(e)}:{},...l(e.excludeActors).length?{excludeActorTypes:l(e.excludeActors)}:{},...e.sort?{sort:e.sort}:{},...e.compare?{compare:"previous"}:{},...l(e.stages).length?{stages:l(e.stages)}:{},...e.anchor?{anchor:e.anchor}:{},...l(e.exits).length?{exits:l(e.exits)}:{},...e.subjectType?{subjectType:e.subjectType}:{}}}function Xp({api:e,route:t,catalog:n}){return o.jsx(wd,{api:e,catalog:n,route:t,page:"explore"})}async function Nd(e,t,n){const r=s=>s.length%2?s[(s.length-1)/2]:(s[s.length/2-1]+s[s.length/2])/2;return(await Promise.all(t.map(async s=>{try{const a=((await e.rollups({as:s,subjectType:n,sort:"firstAt",limit:500})).rows??[]).map(u=>new Date(u.firstAt).getTime()).filter(u=>Number.isFinite(u)).sort((u,d)=>u-d);return{as:s,median:a.length?r(a):null}}catch{return{as:s,median:null}}}))).sort((s,i)=>(s.median==null)-(i.median==null)||(s.median??0)-(i.median??0)||s.as.localeCompare(i.as)).map(s=>s.as)}function Sd({api:e,catalog:t,report:n,apply:r}){const l=xo(t),s=n.subjectType??l[0],i=Dt(t,s),a=(n.stages??[]).filter(y=>i.includes(y)),u=(n.exits??[]).filter(y=>i.includes(y)&&!a.includes(y)),[d,h]=O.useState(!1),m=(y,k={})=>r({...n,subjectType:s,stages:y,anchor:y[0],exits:u.filter(f=>!y.includes(f)),...k}),v=y=>m(a.includes(y)?a.filter(k=>k!==y):[...a,y]),g=(y,k)=>{const f=[...a],c=y+k;c<0||c>=f.length||([f[y],f[c]]=[f[c],f[y]],m(f))},x=async y=>{if(y==="registry")return m(i.filter(f=>a.includes(f)));h(!0);const k=await Nd(e,a.length?a:i,s);h(!1),m(k.filter(f=>a.length?a.includes(f):!0))};return o.jsxs("div",{className:"vstack",style:{gap:10},children:[o.jsxs("div",{className:"hstack",style:{flexWrap:"wrap"},children:[o.jsxs("label",{className:"hstack text-xs",children:[o.jsx("span",{className:"subtle",children:"subject type"}),o.jsx("select",{className:"select",value:s??"",onChange:y=>{const k=y.target.value;r({...n,subjectType:k,stages:Dt(t,k),anchor:Dt(t,k)[0],exits:void 0})},children:l.map(y=>o.jsx("option",{value:y,children:y},y))})]}),o.jsx("div",{className:"topbar-spacer"}),o.jsx("span",{className:"subtle text-xs",children:"order"}),o.jsx("button",{className:"btn btn-sm",onClick:()=>x("registry"),children:"registry"}),o.jsx("button",{className:"btn btn-sm",onClick:()=>x("observed"),disabled:d,title:"median first arrival per stage, read from the rollups",children:d?"reading…":"observed"})]}),o.jsxs("div",{className:"vstack",style:{gap:4},children:[a.map((y,k)=>o.jsxs("div",{className:"hstack",children:[o.jsx("span",{className:"tag",children:k+1}),o.jsx("span",{className:"grow mono text-xs",children:y}),o.jsx("button",{className:"icon-btn",onClick:()=>g(k,-1),disabled:k===0,title:"earlier",children:"↑"}),o.jsx("button",{className:"icon-btn",onClick:()=>g(k,1),disabled:k===a.length-1,title:"later",children:"↓"}),o.jsx("button",{className:"icon-btn",onClick:()=>v(y),title:"remove",children:"✕"})]},y)),!a.length&&o.jsx("div",{className:"subtle text-xs",children:"no stages — pick at least one below"})]}),o.jsxs("div",{className:"hstack",style:{flexWrap:"wrap"},children:[o.jsx("span",{className:"subtle text-xs",children:"stages"}),i.map(y=>o.jsx("button",{className:`filter-chip ${a.includes(y)?"active":""}`,onClick:()=>v(y),children:y},y))]}),o.jsxs("div",{className:"hstack",style:{flexWrap:"wrap"},children:[o.jsx("span",{className:"subtle text-xs",children:"exits"}),i.filter(y=>!a.includes(y)).map(y=>o.jsx("button",{className:`filter-chip ${u.includes(y)?"active":""}`,onClick:()=>r({...n,subjectType:s,exits:u.includes(y)?u.filter(k=>k!==y):[...u,y]}),children:y},y)),i.length===a.length&&o.jsx("span",{className:"subtle text-xs",children:"every family is a stage"})]})]})}function Jp(e,t,n){const r=gd(e),l=Nr(t),s=[["Errors",{source:{kind:"error"},range:t,measure:"count",interval:l}],["Events",{source:{kind:"event"},range:t,measure:"count",interval:l}],["p95 span",{source:{kind:"span"},range:t,measure:"p95:durationMs"}],...Object.values(e.families).filter(u=>u.bucket&&u.by.length===1&&u.by[0]==="subject"&&u.subjectTypes.length).map(u=>[`Active ${u.subjectTypes[0]}`,{source:{family:u.as},range:t,measure:`distinct:${u.subjectTypes[0]}`}]),...r?[["Spend",{source:{kind:"usage"},range:t,measure:r.key,interval:l}]]:[]],i=[];let a=0;for(const[u,d]of s)jo(d,e,n)||u.startsWith("Active ")&&a++||i.push({label:u,report:d});return i}function qp({api:e,catalog:t,now:n,label:r,report:l}){const s=jd(e,l),i=s.data?vd(s.data):null;return o.jsx(pe,{label:r,value:s.loading?"…":(i==null?void 0:i.value)!=null?i.format(i.value):"—",meta:s.error?"unavailable":i==null?void 0:i.meta})}function Ed({api:e,route:t,catalog:n}){var m;const r=t.params,l=r.range??"7d",s=O.useMemo(()=>new Date,[l]),i=O.useMemo(()=>Jp(n,l,s),[n,l,s]),a=xd(n),u=Yt(),d=Qe(async()=>{const[v,g]=await Promise.all([a?e.rollups({as:a,sort:"lastAt",limit:8}):null,e.records(Er(r,{limit:12}))]);return{issues:v,recent:g}},[JSON.stringify(r),a]),h=v=>({source:{kind:v},range:l,measure:"count",interval:Nr(l)});return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"kpis",style:{gridTemplateColumns:`repeat(${Math.max(i.length,1)}, 1fr)`},children:i.map(v=>o.jsx(qp,{api:e,catalog:n,now:s,...v},v.label))}),o.jsxs("div",{className:"split split-2",children:[o.jsx(Nt,{api:e,catalog:n,now:s,title:"Events",report:h("event")}),o.jsx(Nt,{api:e,catalog:n,now:s,title:"Errors",report:h("error")})]}),d.loading&&o.jsx(Ke,{}),d.error&&o.jsx(be,{error:d.error}),((m=d.data)==null?void 0:m.issues)&&o.jsxs("div",{className:"card card-pad-0",style:{marginTop:16},children:[o.jsx("div",{className:"card-head",children:o.jsx("span",{className:"card-title",children:"Recent issues"})}),o.jsx("div",{className:"card-body",children:o.jsx(Cd,{rows:d.data.issues.rows,onRow:()=>ee("errors",r)})})]}),d.data&&o.jsxs("div",{className:"card card-pad-0",style:{marginTop:16},children:[o.jsx("div",{className:"card-head",children:o.jsx("span",{className:"card-title",children:"Latest records"})}),o.jsx("div",{className:"card-body",children:o.jsx($n,{items:d.data.recent.items,onSelect:u.open})})]}),u.drawer]})}function Cd({rows:e,onRow:t}){return o.jsx(Ht,{rows:e.map(n=>{var r,l,s;return{id:n._id,tenantId:n.tenantId,fingerprint:(r=n.dims[0])==null?void 0:r.replace(/^.*=/,""),type:((l=n.firstCapture)==null?void 0:l["error.type"])??"",firstRelease:((s=n.firstCapture)==null?void 0:s.release)??"",count:n.count,lastAt:n.lastAt,dims:n.dims}}),columns:[{key:"fingerprint",label:"issue",mono:!0},{key:"type",label:"type"},{key:"firstRelease",label:"first release"},{key:"count",label:"count",num:!0},{key:"lastAt",label:"last seen",render:n=>Nn(n.lastAt)}],onRow:t,empty:"No issues — a rare and beautiful state"})}function Zp({api:e,route:t,catalog:n}){const r=t.params,l=r.range??"7d",s=O.useMemo(()=>new Date,[l]),i=Yt(),a=xd(n),u=Qe(async()=>{const[d,h]=await Promise.all([a?e.rollups({as:a,sort:r.sort??"lastAt",limit:50}):null,e.records(Er(r,{kind:"error",limit:25}))]);return{issues:d,recent:h}},[JSON.stringify(r),a]);return u.loading?o.jsx(Ke,{}):u.error?o.jsx(be,{error:u.error}):o.jsxs(o.Fragment,{children:[o.jsx(go,{api:e,route:t,catalog:n,source:{kind:"error"}}),o.jsx(Nt,{api:e,catalog:n,now:s,title:"Error volume",report:{source:{kind:"error"},range:l,measure:"count",interval:Nr(l)}}),u.data.issues&&o.jsxs("div",{className:"card card-pad-0",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Issues"}),o.jsx("span",{className:"card-sub",children:"first seen · last seen · exact counts (rollup, burst-proof)"})]}),o.jsxs("div",{className:"card-body",children:[o.jsx(yo,{result:u.data.issues}),o.jsx(Cd,{rows:u.data.issues.rows,onRow:()=>{}})]})]}),o.jsxs("div",{className:"card card-pad-0",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Recent raw errors"}),o.jsx("span",{className:"card-sub",children:"evidence, 90d retention"})]}),o.jsx("div",{className:"card-body",children:o.jsx($n,{items:u.data.recent.items,onSelect:i.open})})]}),i.drawer]})}function eh(e){return e.route.arg?o.jsx(nh,{api:e.api,traceId:e.route.arg}):o.jsx(th,{...e})}function th({api:e,route:t,catalog:n}){const r=t.params,l=r.range??"7d",s=O.useMemo(()=>new Date,[l]),i=Yt(),a=Qe(()=>e.records(Er(r,{kind:"span",limit:50})),[JSON.stringify(r)]);return a.loading?o.jsx(Ke,{}):a.error?o.jsx(be,{error:a.error}):o.jsxs(o.Fragment,{children:[o.jsx(go,{api:e,route:t,catalog:n,source:{kind:"span"}}),o.jsx(Nt,{api:e,catalog:n,now:s,title:"Duration distribution",report:{source:{kind:"span"},range:l,measure:"p95:durationMs"}}),o.jsxs("div",{className:"card card-pad-0",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Recent spans"}),o.jsx("span",{className:"card-sub",children:"click a row → its whole trace"})]}),o.jsx("div",{className:"card-body",children:o.jsx($n,{items:a.data.items,onSelect:u=>u.traceId?ee("traces",{},u.traceId):i.open(u)})})]}),i.drawer]})}function nh({api:e,traceId:t}){const n=Yt(),r=Qe(()=>e.trace(t),[t]);if(r.loading)return o.jsx(Ke,{});if(r.error)return o.jsx(be,{error:r.error});const l=r.data.items.filter(i=>i.kind==="span"),s=r.data.items.filter(i=>i.kind!=="span");return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"page-head",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"mono text-sm",children:t}),o.jsxs("div",{className:"page-desc",children:[r.data.items.length," records — every kind, one time axis"]})]}),o.jsx("div",{className:"right",children:o.jsx("button",{className:"btn btn-sm",onClick:()=>ee("traces"),children:"← all traces"})})]}),o.jsx("div",{className:"card chart-card",children:o.jsx(Fp,{items:r.data.items,onSelect:n.open})}),s.length>0&&o.jsxs("div",{className:"card card-pad-0",children:[o.jsx("div",{className:"card-head",children:o.jsx("span",{className:"card-title",children:"Non-span records in this trace"})}),o.jsx("div",{className:"card-body",children:o.jsx(hd,{items:s,onSelect:n.open})})]}),l.length===0&&o.jsx("div",{className:"empty",children:"No spans — this trace is events/errors only"}),n.drawer]})}function rh({api:e,route:t,catalog:n}){const r=t.params,l=Yt(),s=Qe(()=>e.records(Er(r,{kind:r.name?void 0:"event",limit:50})),[JSON.stringify(r)]);return o.jsxs(o.Fragment,{children:[o.jsx(wd,{api:e,catalog:n,route:t,page:"events",fixedSource:r.name?{event:r.name}:{kind:"event"},defaults:{measure:"count"},title:"Volume",sub:"every control below comes from the catalog"}),o.jsxs("div",{className:"card card-pad-0",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Records"}),o.jsx("span",{className:"card-sub",children:"newest first"})]}),o.jsx("div",{className:"card-body",children:s.loading?o.jsx(Ke,{}):s.error?o.jsx(be,{error:s.error}):o.jsx($n,{items:s.data.items,onSelect:l.open})})]}),l.drawer]})}function lh(e){return e.route.arg?o.jsx(oh,{api:e.api,subjectRef:e.route.arg,route:e.route}):o.jsx(sh,{...e})}function sh({api:e,route:t,catalog:n}){const r=t.params,l=r.range??"30d",s=O.useMemo(()=>new Date,[l]),i=Object.keys(n.families),a=r.rollup??i[0],[u,d]=O.useState(""),h=xo(n),m=r.subjectType??h[0],v=String(r.stages??"").split(",").map(k=>k.trim()).filter(Boolean),g=v.length?{source:{family:v[0]},range:l,interval:r.interval??"week",measure:"funnel",stages:v,anchor:r.anchor??v[0],...String(r.exits??"")?{exits:String(r.exits).split(",").filter(Boolean)}:{},...m?{subjectType:m}:{}}:null,x=O.useRef(!1);O.useEffect(()=>{if(x.current||v.length||!m)return;const k=Dt(n,m);k.length<2||(x.current=!0,Nd(e,k,m).then(f=>{ee("journeys",{...r,...wn({source:{family:f[0]},range:l,interval:"week",measure:"funnel",stages:f,anchor:f[0],subjectType:m})})},()=>{}))},[e,n,m,v.length]);const y=k=>{const f={...r};for(const c of kd)delete f[c];ee("journeys",{...f,...wn(k)})};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"card",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Subject lookup"}),o.jsx("span",{className:"card-sub",children:"every kind, one story — 'user:u_1', 'account:a_9'"})]}),o.jsxs("div",{className:"card-body hstack",children:[o.jsx("input",{className:"input",style:{maxWidth:340},placeholder:"type:id",value:u,onChange:k=>d(k.target.value),onKeyDown:k=>k.key==="Enter"&&u.includes(":")&&ee("journeys",r,u)}),o.jsx("button",{className:"btn btn-primary btn-sm",disabled:!u.includes(":"),onClick:()=>ee("journeys",r,u),children:"open journey"})]})]}),h.length>0&&o.jsxs("div",{className:"card",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Cohort funnel"}),o.jsx("span",{className:"card-sub",children:"stages are lifetime milestone families — the picker is the Report"})]}),o.jsx("div",{className:"card-body",children:o.jsx(Sd,{api:e,catalog:n,report:g??{source:{family:Dt(n,m)[0]},range:l,measure:"funnel",subjectType:m},apply:y})})]}),g&&o.jsx(Nt,{api:e,catalog:n,now:s,title:`Funnel · ${m}`,sub:`anchored on ${g.anchor}`,report:g}),a&&o.jsx(ih,{api:e,route:t,family:a,families:i})]})}function ih({api:e,route:t,family:n,families:r}){const l=t.params,s=Qe(()=>e.rollups({as:n,...wr(l.range??"30d"),limit:200}),[n,l.range]);if(s.loading)return o.jsx(Ke,{});if(s.error)return o.jsx(be,{error:s.error});const i=s.data.rows,a=[...new Set(i.flatMap(h=>Object.keys(h.sums??{})))],u=s.data.bucketed,d=u?[...i.reduce((h,m)=>{var x;const v=new Date(m.bucketAt).toISOString(),g=h.get(v)??{at:m.bucketAt,value:0};return g.value+=a.length?((x=m.sums)==null?void 0:x[a[0]])??0:m.count,h.set(v,g)},new Map).values()].sort((h,m)=>new Date(h.at)-new Date(m.at)):null;return o.jsxs("div",{className:"card card-pad-0",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Rollups"}),o.jsx("div",{className:"card-actions",children:o.jsx("select",{className:"select",value:n,onChange:h=>ee("journeys",{...l,rollup:h.target.value}),children:r.map(h=>o.jsx("option",{value:h,children:h},h))})})]}),o.jsxs("div",{className:"card-body",children:[o.jsx(yo,{result:s.data}),u&&o.jsx(Vn,{buckets:d,color:"var(--accent)",format:h=>_n(a[0]??"count",h)}),o.jsx(Ht,{rows:i.slice(0,50).map(h=>({id:h._id,tenantId:h.tenantId,dims:h.dims.join(" · "),count:h.count,...Object.fromEntries(a.map(m=>{var v;return[m,(v=h.sums)==null?void 0:v[m]]})),firstAt:h.firstAt,lastAt:h.lastAt,_dims:h.dims})),columns:[{key:"dims",mono:!0},{key:"count",num:!0},...a.map(h=>({key:h,num:!0})),{key:"firstAt",label:"first",render:h=>Nn(h.firstAt)},{key:"lastAt",label:"last",render:h=>Nn(h.lastAt)}],onRow:h=>{const m=h._dims.find(v=>/^[\w-]+:[\w-]+$/.test(v)&&!v.includes("="));m&&ee("journeys",l,m)}})]})]})}function oh({api:e,subjectRef:t,route:n}){const r=Yt(),l=n.params,s=Qe(()=>e.journey(t,{...wr(l.range??"30d"),limit:200}),[t,l.range]);if(s.loading)return o.jsx(Ke,{});if(s.error)return o.jsx(be,{error:s.error});const i=s.data.milestones.map(u=>({at:u.firstAt,label:`${u.as} · first`})),a=s.data.records.filter(u=>u.kind==="state");return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"page-head",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"mono text-sm",children:t}),o.jsxs("div",{className:"page-desc",children:[s.data.records.length," records · ",s.data.milestones.length," milestones"]})]}),o.jsx("div",{className:"right",children:o.jsx("button",{className:"btn btn-sm",onClick:()=>ee("journeys",l),children:"← journeys"})})]}),a.length>0&&o.jsxs("div",{className:"card chart-card",children:[o.jsx("div",{className:"card-title",style:{marginBottom:8},children:"State transitions"}),o.jsx(Dp,{transitions:Object.values(a.reduce((u,d)=>{const h=`${d.state.from??"∅"}→${d.state.to}`;return u[h]??(u[h]={from:d.state.from,to:d.state.to,n:0,avgMs:d.state.previousSinceMs}),u[h].n++,u},{}))})]}),o.jsxs("div",{className:"card card-pad-0",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Timeline"}),o.jsx("span",{className:"card-sub",children:"milestones as chapter markers"})]}),o.jsx("div",{className:"card-body",children:o.jsx(hd,{items:s.data.records,markers:i,onSelect:r.open})})]}),r.drawer]})}function ah({api:e,route:t,catalog:n}){const r=t.params,l=r.range??"30d",s=O.useMemo(()=>new Date,[l]),i=Yt(),a=gd(n),u=Ha(n,"usage",".meter"),d=Ha(n,"usage",".billedTo"),h=Yl(n,{kind:"usage"}),m=Qe(async()=>{const[x,y]=await Promise.all([u?e.values({dim:u.key,names:h.join(","),...wr(l)}):Promise.resolve({values:[],source:"none"}),e.records(Er(r,{kind:"usage",limit:50}))]);return{meters:x,recent:y}},[JSON.stringify(r),u==null?void 0:u.key]);if(!h.length)return o.jsxs("div",{className:"empty",children:[o.jsx("h3",{children:"No usage events"}),"Nothing in this registry declares `kind: 'usage'`."]});const v=ft(r).find(x=>x.dim===(u==null?void 0:u.key)),g={source:{kind:"usage"},range:l,...a?{measure:a.key}:{measure:"count"},...ft(r).length?{filters:ft(r)}:{}};return o.jsxs(o.Fragment,{children:[m.loading&&o.jsx(Ke,{}),m.error&&o.jsx(be,{error:m.error}),m.data&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"filter-bar",children:[o.jsx("span",{className:"subtle text-xs",children:"meters"}),m.data.meters.values.map((x,y)=>o.jsxs("button",{className:`filter-chip ${(v==null?void 0:v.value)===x?"active":""}`,onClick:()=>{const k=ft(r).filter(c=>c.dim!==u.key),f=(v==null?void 0:v.value)===x?k:[...k,{dim:u.key,op:"eq",value:x}];ee("usage",{...r,filter:f.map(c=>`${c.dim}:${c.op}:${c.value}`)})},children:[x,m.data.meters.counts?` · ${D(m.data.meters.counts[y])}`:""]},x)),!m.data.meters.values.length&&o.jsx("span",{className:"subtle text-xs",children:"none recorded in range"}),o.jsx("span",{className:"tag",children:m.data.meters.source})]}),o.jsx(Nt,{api:e,catalog:n,now:s,title:a?"Spend by meter":"Usage by meter",sub:a?a.key:"count — no `*_usd` metric is declared",report:{...g,...u?{groupBy:[u.key]}:{},interval:Nr(l)}}),d&&o.jsx(Nt,{api:e,catalog:n,now:s,title:"By billed-to",report:{...g,groupBy:[d.key]}}),o.jsxs("div",{className:"card card-pad-0",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Rows"}),o.jsx("span",{className:"card-sub",children:"reversals render linked"})]}),o.jsx("div",{className:"card-body",children:o.jsx($n,{items:m.data.recent.items,onSelect:i.open})})]})]}),i.drawer]})}function uh({api:e}){const[t,n]=O.useState(0),r=Qe(()=>e.system(),[t]);if(r.loading)return o.jsx(Ke,{});if(r.error)return o.jsx(be,{error:r.error});const{counters:l,quarantine:s,indexCount:i,indexBudget:a,keys:u,role:d,suggestions:h}=r.data;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"kpis",style:{gridTemplateColumns:"repeat(7, 1fr)"},children:[o.jsx(pe,{label:"rejected",value:D(l.rejected),meta:"quarantined"}),o.jsx(pe,{label:"sampled",value:D(l.sampled),meta:"dropped by rate"}),o.jsx(pe,{label:"capped",value:D(l.capped),meta:"burst/rate caps"}),o.jsx(pe,{label:"deduped",value:D(l.deduped),meta:"idempotent replays"}),o.jsx(pe,{label:"truncated",value:D(l.truncated),meta:"body over cap"}),o.jsx(pe,{label:"defaulted",value:D(l.defaulted),meta:"missing service/release"}),o.jsx(pe,{label:"indexes",value:`${i}`,meta:`payload budget ${a}`})]}),o.jsxs("div",{className:"card",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Suggestions"}),o.jsx("span",{className:"card-sub",children:"the registry change each one needs — nothing here is applied for you"})]}),o.jsx("div",{className:"card-body",children:o.jsx(Pp,{suggestions:h})})]}),o.jsxs("div",{className:"split split-2",children:[o.jsx(Qa,{title:"Rollups skipped",sub:"a dim was missing, so no aggregate was written",map:l.rollupSkippedBy,columns:["family","dim"]}),o.jsx(Qa,{title:"Undeclared attrs",sub:"sent, not declared — the record was rejected, not stripped",map:l.undeclaredAttrs,columns:["event","attr"]})]}),d==="admin"&&o.jsxs("div",{className:"card card-pad-0",children:[o.jsx("div",{className:"card-head",children:o.jsx("span",{className:"card-title",children:"Ingest keys"})}),o.jsx("div",{className:"card-body",children:o.jsx(Ht,{rows:u.map(m=>({...m,id:m._id})),columns:[{key:"_id",label:"key id",mono:!0},{key:"kind"},{key:"tenantMode",label:"tenant"},{key:"service"},{key:"env"},{key:"maxPerMinute",label:"rate",num:!0},{key:"revokedAt",label:"status",render:m=>m.revokedAt?o.jsx("span",{className:"pill red",children:"revoked"}):o.jsx("button",{className:"btn btn-danger btn-sm",onClick:v=>{v.stopPropagation(),window.confirm(`Revoke ${m._id}? Writers using it start dropping within 60s.`)&&e.revokeKey(m._id).then(()=>n(g=>g+1))},children:"revoke"})}],empty:"No keys minted yet"})})]}),o.jsxs("div",{className:"card card-pad-0",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:"Quarantine"}),o.jsx("span",{className:"card-sub",children:"latest 50 — every one of these was a write someone attempted"})]}),o.jsx("div",{className:"card-body",children:o.jsx(Ht,{rows:s.map((m,v)=>({id:v,at:m.at,name:m.name,reason:m.reason})),columns:[{key:"at",label:"when",render:m=>Nn(m.at)},{key:"name",mono:!0},{key:"reason"}],empty:"Quarantine is empty"})})]})]})}function Qa({title:e,sub:t,map:n,columns:r}){const l=Object.entries(n??{}).map(([s,i])=>{const a=s.indexOf("|");return{id:s,a:a===-1?s:s.slice(0,a),b:a===-1?"":s.slice(a+1),count:i}}).sort((s,i)=>i.count-s.count);return o.jsxs("div",{className:"card card-pad-0",children:[o.jsxs("div",{className:"card-head",children:[o.jsx("span",{className:"card-title",children:e}),o.jsx("span",{className:"card-sub",children:t})]}),o.jsx("div",{className:"card-body",children:o.jsx(Ht,{rows:l,columns:[{key:"a",label:r[0],mono:!0},{key:"b",label:r[1],mono:!0},{key:"count",num:!0}],empty:"Nothing skipped"})})]})}const ch={overview:Ed,errors:Zp,traces:eh,events:rh,explore:Xp,journeys:lh,usage:ah,system:uh};function dh(){const[e,t]=O.useState(za);return O.useEffect(()=>{const n=()=>t(za());return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]),e}function fh({config:e}){const t=O.useMemo(()=>np(e),[e]),n=dh(),[r,l]=O.useState(null),[s,i]=O.useState({platform:!1,scope:null}),[a,u]=O.useState([]),[d,h]=O.useState(null),[m,v]=O.useState(()=>localStorage.getItem("telemetry_theme")??"light");O.useEffect(()=>{document.documentElement.setAttribute("data-theme",m),localStorage.setItem("telemetry_theme",m)},[m]),O.useEffect(()=>{t.registry().then(y=>{l(y.catalog),i({platform:!!y.platform,scope:y.scope??null})},h),t.views().then(y=>u(y.views),()=>{})},[t]);const g=async()=>{const y=window.prompt("View name — it will appear in the sidebar:");if(!y)return;const k=window.confirm("Share with the whole tenant? (Cancel = private to you)"),f=Ep(n);await t.saveView({name:y,page:n.page,query:f??{range:n.params.range??"7d",filters:n.params}},k),t.views().then(c=>u(c.views),()=>{})};if(d)return o.jsxs("div",{className:"empty",style:{paddingTop:"20vh"},children:[o.jsx("h3",{children:d.status===401?"Sign in required":"Dashboard unavailable"}),String(d.message)]});const x=ch[n.page]??Ed;return o.jsx(Sr.Provider,{value:s,children:o.jsxs("div",{className:"app",children:[o.jsx(Hp,{route:n,views:a,title:e.title,platform:s.platform}),o.jsxs("div",{className:"main",children:[o.jsx(Qp,{route:n,catalog:r,onSaveView:g,theme:m,onTheme:()=>v(m==="dark"?"light":"dark"),platform:s.platform}),o.jsx("div",{className:"content",children:o.jsx("div",{className:"content-inner",children:r?o.jsx(x,{api:t,route:n,catalog:r}):o.jsx("div",{className:"empty",children:"Loading…"})})})]})]})})}const mh=window.__TELEMETRY__??{apiBase:"/telemetry/api",mountPath:"/telemetry",title:"Telemetry"};ld(document.getElementById("telemetry-root")).render(o.jsx(O.StrictMode,{children:o.jsx(fh,{config:mh})}));
41
+ //# sourceMappingURL=index-Deqhu-hT.js.map