@jeffjassky/telemetry 0.6.0 → 0.7.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.
@@ -1,4 +1,4 @@
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 ba={exports:{}},Ol={},Ka={exports:{}},M={};/**
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 ba={exports:{}},Ml={},Ka={exports:{}},M={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
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"),Ld=Symbol.for("react.strict_mode"),Od=Symbol.for("react.profiler"),Md=Symbol.for("react.provider"),Rd=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 me={current:null},br={transition:null},Wd={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:br,ReactCurrentOwner:wi};function tu(){throw Error("act(...) is not supported in production builds of React.")}M.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}};M.Component=Sn;M.Fragment=Pd;M.Profiler=Od;M.PureComponent=ji;M.StrictMode=Ld;M.Suspense=Fd;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wd;M.act=tu;M.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}};M.createContext=function(e){return e={$$typeof:Rd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Md,_context:e},e.Consumer=e};M.createElement=eu;M.createFactory=function(e){var t=eu.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:zd,render:e}};M.isValidElement=Ni;M.lazy=function(e){return{$$typeof:Id,_payload:{_status:-1,_result:e},_init:Vd}};M.memo=function(e,t){return{$$typeof:Dd,type:e,compare:t===void 0?null:t}};M.startTransition=function(e){var t=br.transition;br.transition={};try{e()}finally{br.transition=t}};M.unstable_act=tu;M.useCallback=function(e,t){return me.current.useCallback(e,t)};M.useContext=function(e){return me.current.useContext(e)};M.useDebugValue=function(){};M.useDeferredValue=function(e){return me.current.useDeferredValue(e)};M.useEffect=function(e,t){return me.current.useEffect(e,t)};M.useId=function(){return me.current.useId()};M.useImperativeHandle=function(e,t,n){return me.current.useImperativeHandle(e,t,n)};M.useInsertionEffect=function(e,t){return me.current.useInsertionEffect(e,t)};M.useLayoutEffect=function(e,t){return me.current.useLayoutEffect(e,t)};M.useMemo=function(e,t){return me.current.useMemo(e,t)};M.useReducer=function(e,t,n){return me.current.useReducer(e,t,n)};M.useRef=function(e){return me.current.useRef(e)};M.useState=function(e){return me.current.useState(e)};M.useSyncExternalStore=function(e,t,n){return me.current.useSyncExternalStore(e,t,n)};M.useTransition=function(){return me.current.useTransition()};M.version="18.3.1";Ka.exports=M;var Si=Ka.exports;const L=$d(Si);/**
9
+ */var yr=Symbol.for("react.element"),Td=Symbol.for("react.portal"),Pd=Symbol.for("react.fragment"),Od=Symbol.for("react.strict_mode"),Ld=Symbol.for("react.profiler"),Md=Symbol.for("react.provider"),Rd=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"),No=Symbol.iterator;function Ad(e){return e===null||typeof e!="object"?null:(e=No&&e[No]||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 ki(e,t,n){this.props=e,this.context=t,this.refs=Xa,this.updater=n||Ya}var wi=ki.prototype=new Ja;wi.constructor=ki;Ga(wi,Sn.prototype);wi.isPureReactComponent=!0;var So=Array.isArray,qa=Object.prototype.hasOwnProperty,Ni={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:Ni.current}}function Ud(e,t){return{$$typeof:yr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Si(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 Eo=/\/+/g;function Zl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Bd(""+e.key):t.toString(36)}function br(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===""?"."+Zl(i,0):r,So(l)?(n="",e!=null&&(n=e.replace(Eo,"$&/")+"/"),br(l,t,n,"",function(d){return d})):l!=null&&(Si(l)&&(l=Ud(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(Eo,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",So(e))for(var a=0;a<e.length;a++){s=e[a];var u=r+Zl(s,a);i+=br(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+Zl(s,a++),i+=br(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 br(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 me={current:null},Kr={transition:null},Wd={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:Kr,ReactCurrentOwner:Ni};function tu(){throw Error("act(...) is not supported in production builds of React.")}M.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(!Si(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};M.Component=Sn;M.Fragment=Pd;M.Profiler=Ld;M.PureComponent=ki;M.StrictMode=Od;M.Suspense=Fd;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wd;M.act=tu;M.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=Ni.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}};M.createContext=function(e){return e={$$typeof:Rd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Md,_context:e},e.Consumer=e};M.createElement=eu;M.createFactory=function(e){var t=eu.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:zd,render:e}};M.isValidElement=Si;M.lazy=function(e){return{$$typeof:Id,_payload:{_status:-1,_result:e},_init:Vd}};M.memo=function(e,t){return{$$typeof:Dd,type:e,compare:t===void 0?null:t}};M.startTransition=function(e){var t=Kr.transition;Kr.transition={};try{e()}finally{Kr.transition=t}};M.unstable_act=tu;M.useCallback=function(e,t){return me.current.useCallback(e,t)};M.useContext=function(e){return me.current.useContext(e)};M.useDebugValue=function(){};M.useDeferredValue=function(e){return me.current.useDeferredValue(e)};M.useEffect=function(e,t){return me.current.useEffect(e,t)};M.useId=function(){return me.current.useId()};M.useImperativeHandle=function(e,t,n){return me.current.useImperativeHandle(e,t,n)};M.useInsertionEffect=function(e,t){return me.current.useInsertionEffect(e,t)};M.useLayoutEffect=function(e,t){return me.current.useLayoutEffect(e,t)};M.useMemo=function(e,t){return me.current.useMemo(e,t)};M.useReducer=function(e,t,n){return me.current.useReducer(e,t,n)};M.useRef=function(e){return me.current.useRef(e)};M.useState=function(e){return me.current.useState(e)};M.useSyncExternalStore=function(e,t,n){return me.current.useSyncExternalStore(e,t,n)};M.useTransition=function(){return me.current.useTransition()};M.version="18.3.1";Ka.exports=M;var Ei=Ka.exports;const O=$d(Ei);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Hd=Si,Qd=Symbol.for("react.element"),bd=Symbol.for("react.fragment"),Kd=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)Kd.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}}Ol.Fragment=bd;Ol.jsx=nu;Ol.jsxs=nu;ba.exports=Ol;var o=ba.exports,ru={exports:{}},Se={},lu={exports:{}},su={};/**
17
+ */var Hd=Ei,Qd=Symbol.for("react.element"),bd=Symbol.for("react.fragment"),Kd=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)Kd.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=bd;Ml.jsx=nu;Ml.jsxs=nu;ba.exports=Ml;var o=ba.exports,ru={exports:{}},Se={},lu={exports:{}},su={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t($,P){var O=$.length;$.push(P);e:for(;0<O;){var K=O-1>>>1,Z=$[K];if(0<l(Z,P))$[K]=P,$[O]=Z,O=K;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var P=$[0],O=$.pop();if(O!==P){$[0]=O;e:for(var K=0,Z=$.length,Cr=Z>>>1;K<Cr;){var _t=2*(K+1)-1,Jl=$[_t],$t=_t+1,_r=$[$t];if(0>l(Jl,O))$t<Z&&0>l(_r,Jl)?($[K]=_r,$[$t]=O,K=$t):($[K]=Jl,$[_t]=O,K=_t);else if($t<Z&&0>l(_r,O))$[K]=_r,$[$t]=O,K=$t;else break e}}return P}function l($,P){var O=$.sortIndex-P.sortIndex;return O!==0?O:$.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,y=!1,x=!1,g=!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(g=!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,g&&(g=!1,f(C),C=-1),y=!0;var O=v;try{for(p(P),m=n(u);m!==null&&(!(m.expirationTime>P)||$&&!ie());){var K=m.callback;if(typeof K=="function"){m.callback=null,v=m.priorityLevel;var Z=K(m.expirationTime<=P);P=e.unstable_now(),typeof Z=="function"?m.callback=Z: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=O,y=!1}}var w=!1,N=null,C=-1,F=5,T=-1;function ie(){return!(e.unstable_now()-T<F)}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||y||(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"):F=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 O=v;v=P;try{return $()}finally{v=O}},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 O=v;v=$;try{return P()}finally{v=O}},e.unstable_scheduleCallback=function($,P,O){var K=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?K+O:K):O=K,$){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=O+Z,$={id:h++,callback:P,priorityLevel:$,startTime:O,expirationTime:Z,sortIndex:-1},O>K?($.sortIndex=O,t(d,$),n(u)===null&&$===n(d)&&(g?(f(C),C=-1):g=!0,Xl(j,O-K))):($.sortIndex=Z,t(u,$),x||y||(x=!0,Gl(E))),$},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function($){var P=v;return function(){var O=v;v=P;try{return $.apply(this,arguments)}finally{v=O}}}})(su);lu.exports=su;var Xd=lu.exports;/**
25
+ */(function(e){function t($,P){var L=$.length;$.push(P);e:for(;0<L;){var K=L-1>>>1,Z=$[K];if(0<l(Z,P))$[K]=P,$[L]=Z,L=K;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var P=$[0],L=$.pop();if(L!==P){$[0]=L;e:for(var K=0,Z=$.length,Cr=Z>>>1;K<Cr;){var _t=2*(K+1)-1,ql=$[_t],$t=_t+1,_r=$[$t];if(0>l(ql,L))$t<Z&&0>l(_r,ql)?($[K]=_r,$[$t]=L,K=$t):($[K]=ql,$[_t]=L,K=_t);else if($t<Z&&0>l(_r,L))$[K]=_r,$[$t]=L,K=$t;else break e}}return P}function l($,P){var L=$.sortIndex-P.sortIndex;return L!==0?L:$.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,y=!1,x=!1,g=!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(g=!1,p($),!x)if(n(u)!==null)x=!0,Xl(E);else{var P=n(d);P!==null&&Jl(j,P.startTime-$)}}function E($,P){x=!1,g&&(g=!1,f(C),C=-1),y=!0;var L=v;try{for(p(P),m=n(u);m!==null&&(!(m.expirationTime>P)||$&&!ie());){var K=m.callback;if(typeof K=="function"){m.callback=null,v=m.priorityLevel;var Z=K(m.expirationTime<=P);P=e.unstable_now(),typeof Z=="function"?m.callback=Z: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&&Jl(j,_t.startTime-P),Cr=!1}return Cr}finally{m=null,v=L,y=!1}}var w=!1,N=null,C=-1,F=5,T=-1;function ie(){return!(e.unstable_now()-T<F)}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 wo=new MessageChannel,_d=wo.port2;wo.port1.onmessage=Ye,Tn=function(){_d.postMessage(null)}}else Tn=function(){k(Ye,0)};function Xl($){N=$,w||(w=!0,Tn())}function Jl($,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||y||(x=!0,Xl(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"):F=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 L=v;v=P;try{return $()}finally{v=L}},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 L=v;v=$;try{return P()}finally{v=L}},e.unstable_scheduleCallback=function($,P,L){var K=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?K+L:K):L=K,$){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=L+Z,$={id:h++,callback:P,priorityLevel:$,startTime:L,expirationTime:Z,sortIndex:-1},L>K?($.sortIndex=L,t(d,$),n(u)===null&&$===n(d)&&(g?(f(C),C=-1):g=!0,Jl(j,L-K))):($.sortIndex=Z,t(u,$),x||y||(x=!0,Xl(E))),$},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function($){var P=v;return function(){var L=v;v=P;try{return $.apply(this,arguments)}finally{v=L}}}})(su);lu.exports=su;var Xd=lu.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,12 +30,12 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
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 pe(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 se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new pe(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){se[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new pe(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);se[t]=new pe(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);se[t]=new pe(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);se[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function _i(e,t,n,r){var l=se.hasOwnProperty(t)?se[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(`
33
+ */var Jd=Ei,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"),_s=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]*$/,Co={},_o={};function Zd(e){return _s.call(_o,e)?!0:_s.call(Co,e)?!1:qd.test(e)?_o[e]=!0:(Co[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 pe(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 se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new pe(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){se[e]=new pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ci=/[\-:]([a-z])/g;function _i(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(Ci,_i);se[t]=new pe(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(Ci,_i);se[t]=new pe(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(Ci,_i);se[t]=new pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new pe(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function $i(e,t,n,r){var l=se.hasOwnProperty(t)?se[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"),Ti=Symbol.for("react.strict_mode"),$s=Symbol.for("react.profiler"),ou=Symbol.for("react.provider"),au=Symbol.for("react.context"),Pi=Symbol.for("react.forward_ref"),Ts=Symbol.for("react.suspense"),Ps=Symbol.for("react.suspense_list"),Oi=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,es;function In(e){if(es===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);es=t&&t[1]||""}return`
34
+ `+es+e}var ts=!1;function ns(e,t){if(!e||ts)return"";ts=!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
35
  `),s=r.stack.split(`
36
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 Ls(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 Os(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")?Ms(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ms(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 Ms(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 Rs(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 Lo(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 Lr,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(Lr=Lr||document.createElement("div"),Lr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lr.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 Li(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 Oo(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,Oo(e),t)for(e=0;e<t.length;e++)Oo(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 Ln={};Object.defineProperty(Ln,"passive",{get:function(){Us=!0}}),window.addEventListener("test",Ln,Ln),window.removeEventListener("test",Ln,Ln)}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 bt(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 Mo(e){if(bt(e)!==e)throw Error(S(188))}function ff(e){var t=e.alternate;if(!t){if(t=bt(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 Mo(l),e;if(s===r)return Mo(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,Ro=Ne.unstable_cancelCallback,mf=Ne.unstable_shouldYield,pf=Ne.unstable_requestPaint,Y=Ne.unstable_now,hf=Ne.unstable_getCurrentPriorityLevel,Oi=Ne.unstable_ImmediatePriority,_u=Ne.unstable_UserBlockingPriority,ol=Ne.unstable_NormalPriority,vf=Ne.unstable_LowPriority,$u=Ne.unstable_IdlePriority,Ml=null,We=null;function yf(e){if(We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(Ml,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 Or=64,Mr=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=Or;return Or<<=1,!(Or&4194240)&&(Or=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 Mi(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 D=0;function Pu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Lu,Ri,Ou,Mu,Ru,Ws=!1,Rr=[],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 On(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&&Ri(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=On(mt,e,t,n,r,l),!0;case"dragenter":return pt=On(pt,e,t,n,r,l),!0;case"mouseover":return ht=On(ht,e,t,n,r,l),!0;case"pointerover":var s=l.pointerId;return nr.set(s,On(nr.get(s)||null,e,t,n,r,l)),!0;case"gotpointercapture":return s=l.pointerId,rr.set(s,On(rr.get(s)||null,e,t,n,r,l)),!0}return!1}function zu(e){var t=Lt(e.target);if(t!==null){var n=bt(t);if(n!==null){if(t=n.tag,t===13){if(t=Nu(n),t!==null){e.blockedOn=t,Ru(e.priority,function(){Ou(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 Kr(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&&Ri(t),e.blockedOn=n,!1;t.shift()}return!0}function Fo(e,t,n){Kr(e)&&n.delete(t)}function Cf(){Ws=!1,mt!==null&&Kr(mt)&&(mt=null),pt!==null&&Kr(pt)&&(pt=null),ht!==null&&Kr(ht)&&(ht=null),nr.forEach(Fo),rr.forEach(Fo)}function Mn(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 Mn(l,e)}if(0<Rr.length){Mn(Rr[0],e);for(var n=1;n<Rr.length;n++){var r=Rr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(mt!==null&&Mn(mt,e),pt!==null&&Mn(pt,e),ht!==null&&Mn(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=D,s=fn.transition;fn.transition=null;try{D=1,zi(e,t,n,r)}finally{D=l,fn.transition=s}}function $f(e,t,n,r){var l=D,s=fn.transition;fn.transition=null;try{D=4,zi(e,t,n,r)}finally{D=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&&Lu(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=Li(r),e=Lt(e),e!==null)if(t=bt(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 Oi: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,Rn,Rl=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!==Rn&&(Rn&&e.type==="mousemove"?(ls=e.screenX-Rn.screenX,ss=e.screenY-Rn.screenY):ss=ls=0,Rn=e),ls)},movementY:function(e){return"movementY"in e?e.movementY:ss}}),Io=Ee(Rl),Pf=Q({},Rl,{dataTransfer:0}),Lf=Ee(Pf),Of=Q({},xr,{relatedTarget:0}),is=Ee(Of),Mf=Q({},En,{animationName:0,elapsedTime:0,pseudoElement:0}),Rf=Ee(Mf),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({},Rl,{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}),bf=Ee(Qf),Kf=Q({},En,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yf=Ee(Kf),Gf=Q({},Rl,{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 bn=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(){bn&&(bn.detachEvent("onpropertychange",Wu),sr=bn=null)}function Wu(e){if(e.propertyName==="value"&&zl(sr)){var t=[];Bu(t,sr,e,Li(e)),wu(nm,t)}}function lm(e,t,n){e==="focusin"?(Qo(),bn=t,sr=n,bn.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 bo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ko(e,t){var n=bo(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=bo(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=Ko(n,s);var i=Ko(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,Kn=null,bs=!1;function Yo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bs||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}),Kn&&ir(Kn,r)||(Kn=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={},bu={};et&&(bu=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 bu)return us[e]=t[n];return e}var Ku=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(Ku,"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=Lt(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=Li(n),m=[];e:{var v=Ju.get(e);if(v!==void 0){var y=Di,x=e;switch(e){case"keypress":if(Gr(n)===0)break e;case"keydown":case"keyup":y=Wf;break;case"focusin":x="focus",y=is;break;case"focusout":x="blur",y=is;break;case"beforeblur":case"afterblur":y=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":y=Io;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Lf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=bf;break;case Ku:case Yu:case Gu:y=Rf;break;case Xu:y=Yf;break;case"scroll":y=Tf;break;case"wheel":y=Xf;break;case"copy":case"cut":case"paste":y=Ff;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Uo}var g=(t&4)!==0,k=!g&&e==="scroll",f=g?v!==null?v+"Capture":null:v;g=[];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&&g.push(ar(c,j,p)))),k)break;c=c.return}0<g.length&&(v=new y(v,x,null,n,h),m.push({event:v,listeners:g}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",v&&n!==Is&&(x=n.relatedTarget||n.fromElement)&&(Lt(x)||x[tt]))break e;if((y||v)&&(v=h.window===h?h:(v=h.ownerDocument)?v.defaultView||v.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=d,x=x?Lt(x):null,x!==null&&(k=bt(x),x!==k||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=d),y!==x)){if(g=Io,j="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(g=Uo,j="onPointerLeave",f="onPointerEnter",c="pointer"),k=y==null?v:tn(y),p=x==null?v:tn(x),v=new g(j,c+"leave",y,n,h),v.target=k,v.relatedTarget=p,j=null,Lt(h)===d&&(g=new g(f,c+"enter",x,n,h),g.target=p,g.relatedTarget=k,j=g),k=j,y&&x)t:{for(g=y,f=x,c=0,p=g;p;p=Gt(p))c++;for(p=0,j=f;j;j=Gt(j))p++;for(;0<c-p;)g=Gt(g),c--;for(;0<p-c;)f=Gt(f),p--;for(;c--;){if(g===f||f!==null&&g===f.alternate)break t;g=Gt(g),f=Gt(f)}g=null}else g=null;y!==null&&Jo(m,v,y,g,!1),x!==null&&k!==null&&Jo(m,k,x,g,!0)}}e:{if(v=d?tn(d):window,y=v.nodeName&&v.nodeName.toLowerCase(),y==="select"||y==="input"&&v.type==="file")var E=rm;else if(Wo(v))if(Vu)E=om;else{E=sm;var w=lm}else(y=v.nodeName)&&y.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"&&Ms(v,"number",v.value)}switch(w=d?tn(d):window,e){case"focusin":(Wo(w)||w.contentEditable==="true")&&(Zt=w,Qs=d,Kn=null);break;case"focusout":Kn=Qs=Zt=null;break;case"mousedown":bs=!0;break;case"contextmenu":case"mouseup":case"dragend":bs=!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 Ks=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 Lt(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={},ce=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(ce)}function ta(e,t,n){if(ce.current!==wt)throw Error(S(168));I(ce,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=ce.current,I(ce,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(ce),I(ce,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=D;try{var n=Xe;for(D=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(Oi,Ct),l}finally{D=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 y(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 y(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,F=null;N!==null&&C<p.length;C++){N.index>C?(F=N,N=null):F=N.sibling;var T=v(f,N,p[C],j);if(T===null){N===null&&(N=F);break}e&&N&&T.alternate===null&&t(f,N),c=s(T,c,C),w===null?E=T:w.sibling=T,w=T,N=F}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++)F=y(N,f,C,p[C],j),F!==null&&(e&&F.alternate!==null&&N.delete(F.key===null?C:F.key),c=s(F,c,C),w===null?E=F:w.sibling=F,w=F);return e&&N.forEach(function(ie){return t(f,ie)}),B&&Tt(f,C),E}function g(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,F=null,T=p.next();N!==null&&!T.done;C++,T=p.next()){N.index>C?(F=N,N=null):F=N.sibling;var ie=v(f,N,T.value,j);if(ie===null){N===null&&(N=F);break}e&&N&&ie.alternate===null&&t(f,N),c=s(ie,c,C),w===null?E=ie:w.sibling=ie,w=ie,N=F}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=y(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 g(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 bi(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 Le(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 Ot=null;function Ki(e){Ot===null?Ot=[e]:Ot.push(e)}function oc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ki(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,z&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,Ki(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,Mi(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,y=a.eventTime;if((r&v)===v){h!==null&&(h=h.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,g=a;switch(v=t,y=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){m=x.call(y,m,v);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,v=typeof x=="function"?x.call(y,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 y={eventTime:y,lane:v,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(d=h=y,u=m):h=h.next=y,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 Mt(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){Mt(dr.current);var t=Mt(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,J=null,ee=null,kl=!1,Yn=!1,fr=0,Nm=0;function oe(){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,ee=J=null,t.updateQueue=null,Jr.current=Tm,e=n(r,l)}while(Yn)}if(Jr.current=wl,t=J!==null&&J.next!==null,Ut=0,ee=J=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 ee===null?H.memoizedState=ee=e:ee=ee.next=e,ee}function Oe(){if(J===null){var e=H.alternate;e=e!==null?e.memoizedState:null}else e=J.next;var t=ee===null?H.memoizedState:ee.next;if(t!==null)ee=t,J=e;else{if(e===null)throw Error(S(310));J=e,e={memoizedState:J.memoizedState,baseState:J.baseState,baseQueue:J.baseQueue,queue:J.queue,next:null},ee===null?H.memoizedState=ee=e:ee=ee.next=e}return ee}function mr(e,t){return typeof t=="function"?t(e):t}function gs(e){var t=Oe(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=J,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=Oe(),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=Oe(),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||ee!==null&&ee.memoizedState.tag&1){if(n.flags|=2048,pr(9,mc.bind(null,n,r,l,t),void 0,null),ne===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 Oe().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=Oe();r=r===void 0?null:r;var s=void 0;if(J!==null){var i=J.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=Oe();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=Oe();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=D;D=n!==0&&4>n?n:4,e(!0);var r=ys.transition;ys.transition={};try{e(!1),t()}finally{D=n,ys.transition=r}}function Ec(){return Oe().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=fe();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,Ki(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=oc(e,t,l,r),n!==null&&(l=fe(),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,Mi(e,n)}}var wl={readContext:Le,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},_m={readContext:Le,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:Le,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(),ne===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=ne.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:Le,useCallback:wc,useContext:Le,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=Oe();return Sc(t,J.memoizedState,e)},useTransition:function(){var e=gs(mr)[0],t=Oe().memoizedState;return[e,t]},useMutableSource:cc,useSyncExternalStore:dc,useId:Ec,unstable_isNewReconciler:!1},Tm={readContext:Le,useCallback:wc,useContext:Le,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=Oe();return J===null?t.memoizedState=e:Sc(t,J.memoizedState,e)},useTransition:function(){var e=xs(mr)[0],t=Oe().memoizedState;return[e,t]},useMutableSource:cc,useSyncExternalStore:dc,useId:Ec,unstable_isNewReconciler:!1};function Re(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)?bt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fe(),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=fe(),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=fe(),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=Le(s):(l=ge(t)?It:ce.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=Le(s):(s=ge(t)?It:ce.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=`
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{ts=!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=ns(e.type,!1),e;case 11:return e=ns(e.type.render,!1),e;case 1:return e=ns(e.type,!0),e;default:return""}}function Os(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 Ti:return"StrictMode";case Ts:return"Suspense";case Ps: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 Pi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Oi:return t=e.displayName||null,t!==null?t:Os(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return Os(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 Os(t);case 8:return t===Ti?"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 sl(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 Ls(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function To(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 Po(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"||sl(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 zs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Oo(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 Lo(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 Fs(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 Ds(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 Is(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 As=null;function Li(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Us=null,cn=null,dn=null;function Mo(e){if(e=jr(e)){if(typeof Us!="function")throw Error(S(280));var t=e.stateNode;t&&(t=Il(t),Us(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 rs=!1;function wu(e,t,n){if(rs)return e(t,n);rs=!0;try{return ju(e,t,n)}finally{rs=!1,(cn!==null||dn!==null)&&(ku(),xu())}}function tr(e,t){var n=e.stateNode;if(n===null)return null;var r=Il(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 Bs=!1;if(et)try{var On={};Object.defineProperty(On,"passive",{get:function(){Bs=!0}}),window.addEventListener("test",On,On),window.removeEventListener("test",On,On)}catch{Bs=!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,il=null,ol=!1,Vs=null,uf={onError:function(e){Hn=!0,il=e}};function cf(e,t,n,r,l,s,i,a,u){Hn=!1,il=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=il;Hn=!1,il=null}else throw Error(S(198));ol||(ol=!0,Vs=d)}}function bt(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(bt(e)!==e)throw Error(S(188))}function ff(e){var t=e.alternate;if(!t){if(t=bt(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,zo=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,al=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 Lr=64,Mr=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 ul(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 Ws(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Tu(){var e=Lr;return Lr<<=1,!(Lr&4194240)&&(Lr=64),e}function ls(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 D=0;function Pu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ou,zi,Lu,Mu,Ru,Hs=!1,Rr=[],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 Fo(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 Ln(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&&zi(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=Ln(mt,e,t,n,r,l),!0;case"dragenter":return pt=Ln(pt,e,t,n,r,l),!0;case"mouseover":return ht=Ln(ht,e,t,n,r,l),!0;case"pointerover":var s=l.pointerId;return nr.set(s,Ln(nr.get(s)||null,e,t,n,r,l)),!0;case"gotpointercapture":return s=l.pointerId,rr.set(s,Ln(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=bt(t);if(n!==null){if(t=n.tag,t===13){if(t=Nu(n),t!==null){e.blockedOn=t,Ru(e.priority,function(){Lu(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 Yr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);As=r,n.target.dispatchEvent(r),As=null}else return t=jr(n),t!==null&&zi(t),e.blockedOn=n,!1;t.shift()}return!0}function Do(e,t,n){Yr(e)&&n.delete(t)}function Cf(){Hs=!1,mt!==null&&Yr(mt)&&(mt=null),pt!==null&&Yr(pt)&&(pt=null),ht!==null&&Yr(ht)&&(ht=null),nr.forEach(Do),rr.forEach(Do)}function Mn(e,t){e.blockedOn===t&&(e.blockedOn=null,Hs||(Hs=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,Cf)))}function lr(e){function t(l){return Mn(l,e)}if(0<Rr.length){Mn(Rr[0],e);for(var n=1;n<Rr.length;n++){var r=Rr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(mt!==null&&Mn(mt,e),pt!==null&&Mn(pt,e),ht!==null&&Mn(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,cl=!0;function _f(e,t,n,r){var l=D,s=fn.transition;fn.transition=null;try{D=1,Fi(e,t,n,r)}finally{D=l,fn.transition=s}}function $f(e,t,n,r){var l=D,s=fn.transition;fn.transition=null;try{D=4,Fi(e,t,n,r)}finally{D=l,fn.transition=s}}function Fi(e,t,n,r){if(cl){var l=Qs(e,t,n,r);if(l===null)ps(e,t,r,dl,n),Fo(e,r);else if(Ef(l,e,t,n,r))r.stopPropagation();else if(Fo(e,r),t&4&&-1<Sf.indexOf(e)){for(;l!==null;){var s=jr(l);if(s!==null&&Ou(s),s=Qs(e,t,n,r),s===null&&ps(e,t,r,dl,n),s===l)break;l=s}l!==null&&r.stopPropagation()}else ps(e,t,r,null,n)}}var dl=null;function Qs(e,t,n,r){if(dl=null,e=Li(r),e=Ot(e),e!==null)if(t=bt(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 dl=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 al:case vf:return 16;case $u:return 536870912;default:return 16}default:return 16}}var ct=null,Di=null,Gr=null;function Du(){if(Gr)return Gr;var e,t=Di,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 Gr=l.slice(e,1<r?1-r:void 0)}function Xr(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 Io(){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:Io,this.isPropagationStopped=Io,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},Ii=Ee(En),xr=Q({},En,{view:0,detail:0}),Tf=Ee(xr),ss,is,Rn,zl=Q({},xr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ai,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!==Rn&&(Rn&&e.type==="mousemove"?(ss=e.screenX-Rn.screenX,is=e.screenY-Rn.screenY):is=ss=0,Rn=e),ss)},movementY:function(e){return"movementY"in e?e.movementY:is}}),Ao=Ee(zl),Pf=Q({},zl,{dataTransfer:0}),Of=Ee(Pf),Lf=Q({},xr,{relatedTarget:0}),os=Ee(Lf),Mf=Q({},En,{animationName:0,elapsedTime:0,pseudoElement:0}),Rf=Ee(Mf),zf=Q({},En,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ff=Ee(zf),Df=Q({},En,{data:0}),Uo=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 Ai(){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=Xr(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:Ai,charCode:function(e){return e.type==="keypress"?Xr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wf=Ee(Vf),Hf=Q({},zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bo=Ee(Hf),Qf=Q({},xr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ai}),bf=Ee(Qf),Kf=Q({},En,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yf=Ee(Kf),Gf=Q({},zl,{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],Ui=et&&"CompositionEvent"in window,Qn=null;et&&"documentMode"in document&&(Qn=document.documentMode);var qf=et&&"TextEvent"in window&&!Qn,Iu=et&&(!Ui||Qn&&8<Qn&&11>=Qn),Vo=" ",Wo=!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:(Wo=!0,Vo);case"textInput":return e=t.data,e===Vo&&Wo?null:e;default:return null}}function em(e,t){if(qt)return e==="compositionend"||!Ui&&Au(e,t)?(e=Du(),Gr=Di=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 Ho(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=fl(t,"onChange"),0<t.length&&(n=new Ii("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var bn=null,sr=null;function nm(e){qu(e,0)}function Fl(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 as;if(et){var us="oninput"in document;if(!us){var Qo=document.createElement("div");Qo.setAttribute("oninput","return;"),us=typeof Qo.oninput=="function"}as=us}else as=!1;Vu=as&&(!document.documentMode||9<document.documentMode)}function bo(){bn&&(bn.detachEvent("onpropertychange",Wu),sr=bn=null)}function Wu(e){if(e.propertyName==="value"&&Fl(sr)){var t=[];Bu(t,sr,e,Li(e)),wu(nm,t)}}function lm(e,t,n){e==="focusin"?(bo(),bn=t,sr=n,bn.attachEvent("onpropertychange",Wu)):e==="focusout"&&bo()}function sm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fl(sr)}function im(e,t){if(e==="click")return Fl(t)}function om(e,t){if(e==="input"||e==="change")return Fl(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(!_s.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 Yo(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=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function Bi(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&&Bi(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=Yo(n,s);var i=Yo(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,bs=null,Kn=null,Ks=!1;function Go(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ks||Zt==null||Zt!==sl(r)||(r=Zt,"selectionStart"in r&&Bi(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}),Kn&&ir(Kn,r)||(Kn=r,r=fl(bs,"onSelect"),0<r.length&&(t=new Ii("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")},cs={},bu={};et&&(bu=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 Dl(e){if(cs[e])return cs[e];if(!en[e])return e;var t=en[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bu)return cs[e]=t[n];return e}var Ku=Dl("animationend"),Yu=Dl("animationiteration"),Gu=Dl("animationstart"),Xu=Dl("transitionend"),Ju=new Map,Xo="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 ds=0;ds<Xo.length;ds++){var fs=Xo[ds],dm=fs.toLowerCase(),fm=fs[0].toUpperCase()+fs.slice(1);St(dm,"on"+fm)}St(Ku,"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 Jo(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;Jo(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;Jo(l,a,d),s=u}}}if(ol)throw e=Vs,ol=!1,Vs=null,e}function A(e,t){var n=t[qs];n===void 0&&(n=t[qs]=new Set);var r=e+"__bubble";n.has(r)||(Zu(t,e,2,!1),n.add(r))}function ms(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)||ms(n,!1,e),ms(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dr]||(t[Dr]=!0,ms("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=Fi}n=l.bind(null,t,n,e),l=void 0,!Bs||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 ps(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=Li(n),m=[];e:{var v=Ju.get(e);if(v!==void 0){var y=Ii,x=e;switch(e){case"keypress":if(Xr(n)===0)break e;case"keydown":case"keyup":y=Wf;break;case"focusin":x="focus",y=os;break;case"focusout":x="blur",y=os;break;case"beforeblur":case"afterblur":y=os;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":y=Ao;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Of;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=bf;break;case Ku:case Yu:case Gu:y=Rf;break;case Xu:y=Yf;break;case"scroll":y=Tf;break;case"wheel":y=Xf;break;case"copy":case"cut":case"paste":y=Ff;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Bo}var g=(t&4)!==0,k=!g&&e==="scroll",f=g?v!==null?v+"Capture":null:v;g=[];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&&g.push(ar(c,j,p)))),k)break;c=c.return}0<g.length&&(v=new y(v,x,null,n,h),m.push({event:v,listeners:g}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",v&&n!==As&&(x=n.relatedTarget||n.fromElement)&&(Ot(x)||x[tt]))break e;if((y||v)&&(v=h.window===h?h:(v=h.ownerDocument)?v.defaultView||v.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=d,x=x?Ot(x):null,x!==null&&(k=bt(x),x!==k||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=d),y!==x)){if(g=Ao,j="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(g=Bo,j="onPointerLeave",f="onPointerEnter",c="pointer"),k=y==null?v:tn(y),p=x==null?v:tn(x),v=new g(j,c+"leave",y,n,h),v.target=k,v.relatedTarget=p,j=null,Ot(h)===d&&(g=new g(f,c+"enter",x,n,h),g.target=p,g.relatedTarget=k,j=g),k=j,y&&x)t:{for(g=y,f=x,c=0,p=g;p;p=Gt(p))c++;for(p=0,j=f;j;j=Gt(j))p++;for(;0<c-p;)g=Gt(g),c--;for(;0<p-c;)f=Gt(f),p--;for(;c--;){if(g===f||f!==null&&g===f.alternate)break t;g=Gt(g),f=Gt(f)}g=null}else g=null;y!==null&&qo(m,v,y,g,!1),x!==null&&k!==null&&qo(m,k,x,g,!0)}}e:{if(v=d?tn(d):window,y=v.nodeName&&v.nodeName.toLowerCase(),y==="select"||y==="input"&&v.type==="file")var E=rm;else if(Ho(v))if(Vu)E=om;else{E=sm;var w=lm}else(y=v.nodeName)&&y.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":(Ho(w)||w.contentEditable==="true")&&(Zt=w,bs=d,Kn=null);break;case"focusout":Kn=bs=Zt=null;break;case"mousedown":Ks=!0;break;case"contextmenu":case"mouseup":case"dragend":Ks=!1,Go(m,n,h);break;case"selectionchange":if(cm)break;case"keydown":case"keyup":Go(m,n,h)}var N;if(Ui)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,Di="value"in ct?ct.value:ct.textContent,qt=!0)),w=fl(d,C),0<w.length&&(C=new Uo(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=fl(d,"onBeforeInput"),0<d.length&&(h=new Uo("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 fl(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 qo(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 Zo(e){return(typeof e=="string"?e:""+e).replace(pm,`
38
+ `).replace(hm,"")}function Ir(e,t,n){if(t=Zo(t),Zo(e)!==t&&n)throw Error(S(425))}function ml(){}var Ys=null,Gs=null;function Xs(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 Js=typeof setTimeout=="function"?setTimeout:void 0,vm=typeof clearTimeout=="function"?clearTimeout:void 0,ea=typeof Promise=="function"?Promise:void 0,ym=typeof queueMicrotask=="function"?queueMicrotask:typeof ea<"u"?function(e){return ea.resolve(null).then(e).catch(gm)}:Js;function gm(e){setTimeout(function(){throw e})}function hs(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 ta(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,qs="__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=ta(e);e!==null;){if(n=e[Ve])return n;e=ta(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 Il(e){return e[ur]||null}var Zs=[],nn=-1;function Et(e){return{current:e}}function U(e){0>nn||(e.current=Zs[nn],Zs[nn]=null,nn--)}function I(e,t){nn++,Zs[nn]=e.current,e.current=t}var wt={},ce=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 pl(){U(ye),U(ce)}function na(e,t,n){if(ce.current!==wt)throw Error(S(168));I(ce,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 hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wt,It=ce.current,I(ce,e),I(ye,ye.current),!0}function ra(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(ce),I(ce,e)):U(ye),I(ye,n)}var Xe=null,Al=!1,vs=!1;function tc(e){Xe===null?Xe=[e]:Xe.push(e)}function km(e){Al=!0,tc(e)}function Ct(){if(!vs&&Xe!==null){vs=!0;var e=0,t=D;try{var n=Xe;for(D=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Xe=null,Al=!1}catch(l){throw Xe!==null&&(Xe=Xe.slice(e+1)),Cu(Mi,Ct),l}finally{D=t,vs=!1}}return null}var rn=[],ln=0,vl=null,yl=0,_e=[],$e=0,At=null,Je=1,qe="";function Tt(e,t){rn[ln++]=yl,rn[ln++]=vl,vl=e,yl=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 Vi(e){e.return!==null&&(Tt(e,1),nc(e,1,0))}function Wi(e){for(;e===vl;)vl=rn[--ln],rn[ln]=null,yl=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 la(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 ei(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ti(e){if(B){var t=ke;if(t){var n=t;if(!la(e,t)){if(ei(e))throw Error(S(418));t=vt(n.nextSibling);var r=we;t&&la(e,t)?rc(r,n):(e.flags=e.flags&-4097|2,B=!1,we=e)}}else{if(ei(e))throw Error(S(418));e.flags=e.flags&-4097|2,B=!1,we=e}}}function sa(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 sa(e),B=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Xs(e.type,e.memoizedProps)),t&&(t=ke)){if(ei(e))throw lc(),Error(S(418));for(;t;)rc(e,t),t=vt(t.nextSibling)}if(sa(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 Hi(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 ia(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=Ns(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&&ia(E)===c.type)?(j=l(c,p.props),j.ref=zn(f,c,p),j.return=f,j):(j=rl(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=Ss(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=Ns(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Tr:return p=rl(c.type,c.key,c.props,null,f.mode,p),p.ref=zn(f,null,c),p.return=f,p;case Xt:return c=Ss(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 y(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 y(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,F=null;N!==null&&C<p.length;C++){N.index>C?(F=N,N=null):F=N.sibling;var T=v(f,N,p[C],j);if(T===null){N===null&&(N=F);break}e&&N&&T.alternate===null&&t(f,N),c=s(T,c,C),w===null?E=T:w.sibling=T,w=T,N=F}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++)F=y(N,f,C,p[C],j),F!==null&&(e&&F.alternate!==null&&N.delete(F.key===null?C:F.key),c=s(F,c,C),w===null?E=F:w.sibling=F,w=F);return e&&N.forEach(function(ie){return t(f,ie)}),B&&Tt(f,C),E}function g(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,F=null,T=p.next();N!==null&&!T.done;C++,T=p.next()){N.index>C?(F=N,N=null):F=N.sibling;var ie=v(f,N,T.value,j);if(ie===null){N===null&&(N=F);break}e&&N&&ie.alternate===null&&t(f,N),c=s(ie,c,C),w===null?E=ie:w.sibling=ie,w=ie,N=F}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=y(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&&ia(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=rl(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=Ss(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 g(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=Ns(p,f.mode,j),c.return=f,f=c),i(f)):n(f,c)}return k}var gn=sc(!0),ic=sc(!1),gl=Et(null),xl=null,sn=null,Qi=null;function bi(){Qi=sn=xl=null}function Ki(e){var t=gl.current;U(gl),e._currentValue=t}function ni(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){xl=e,Qi=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(Qi!==e)if(e={context:e,memoizedValue:t,next:null},sn===null){if(xl===null)throw Error(S(308));sn=e,xl.dependencies={lanes:0,firstContext:e}}else sn=sn.next=e;return t}var Lt=null;function Yi(e){Lt===null?Lt=[e]:Lt.push(e)}function oc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Yi(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 Gi(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,z&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,Yi(r)):(t.next=l.next,l.next=t),r.interleaved=t,nt(e,n)}function Jr(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 oa(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 jl(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,y=a.eventTime;if((r&v)===v){h!==null&&(h=h.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,g=a;switch(v=t,y=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){m=x.call(y,m,v);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,v=typeof x=="function"?x.call(y,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 y={eventTime:y,lane:v,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(d=h=y,u=m):h=h.next=y,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 aa(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 Mt(e){if(e===kr)throw Error(S(174));return e}function Xi(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:Fs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fs(t,e)}U(He),I(He,t)}function xn(){U(He),U(cr),U(dr)}function uc(e){Mt(dr.current);var t=Mt(He.current),n=Fs(t,e.type);t!==n&&(I(cr,e),I(He,n))}function Ji(e){cr.current===e&&(U(He),U(cr))}var W=Et(0);function kl(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 ys=[];function qi(){for(var e=0;e<ys.length;e++)ys[e]._workInProgressVersionPrimary=null;ys.length=0}var qr=lt.ReactCurrentDispatcher,gs=lt.ReactCurrentBatchConfig,Ut=0,H=null,J=null,ee=null,wl=!1,Yn=!1,fr=0,Nm=0;function oe(){throw Error(S(321))}function Zi(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 eo(e,t,n,r,l,s){if(Ut=s,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qr.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,ee=J=null,t.updateQueue=null,qr.current=Tm,e=n(r,l)}while(Yn)}if(qr.current=Nl,t=J!==null&&J.next!==null,Ut=0,ee=J=H=null,wl=!1,t)throw Error(S(300));return e}function to(){var e=fr!==0;return fr=0,e}function Be(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ee===null?H.memoizedState=ee=e:ee=ee.next=e,ee}function Le(){if(J===null){var e=H.alternate;e=e!==null?e.memoizedState:null}else e=J.next;var t=ee===null?H.memoizedState:ee.next;if(t!==null)ee=t,J=e;else{if(e===null)throw Error(S(310));J=e,e={memoizedState:J.memoizedState,baseState:J.baseState,baseQueue:J.baseQueue,queue:J.queue,next:null},ee===null?H.memoizedState=ee=e:ee=ee.next=e}return ee}function mr(e,t){return typeof t=="function"?t(e):t}function xs(e){var t=Le(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=J,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 js(e){var t=Le(),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=Le(),l=t(),s=!Ae(r.memoizedState,l);if(s&&(r.memoizedState=l,ve=!0),r=r.queue,no(pc.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ee!==null&&ee.memoizedState.tag&1){if(n.flags|=2048,pr(9,mc.bind(null,n,r,l,t),void 0,null),ne===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 ua(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 Le().memoizedState}function Zr(e,t,n,r){var l=Be();H.flags|=e,l.memoizedState=pr(1|t,n,void 0,r===void 0?null:r)}function Ul(e,t,n,r){var l=Le();r=r===void 0?null:r;var s=void 0;if(J!==null){var i=J.memoizedState;if(s=i.destroy,r!==null&&Zi(r,i.deps)){l.memoizedState=pr(t,n,s,r);return}}H.flags|=e,l.memoizedState=pr(1|t,n,s,r)}function ca(e,t){return Zr(8390656,8,e,t)}function no(e,t){return Ul(2048,8,e,t)}function gc(e,t){return Ul(4,2,e,t)}function xc(e,t){return Ul(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,Ul(4,4,jc.bind(null,t,e),n)}function ro(){}function wc(e,t){var n=Le();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nc(e,t){var n=Le();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Zi(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=D;D=n!==0&&4>n?n:4,e(!0);var r=gs.transition;gs.transition={};try{e(!1),t()}finally{D=n,gs.transition=r}}function Ec(){return Le().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=fe();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,Yi(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=oc(e,t,l,r),n!==null&&(l=fe(),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=wl=!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 Nl={readContext:Oe,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},_m={readContext:Oe,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:Oe,useEffect:ca,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zr(4194308,4,jc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zr(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:ua,useDebugValue:ro,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=ua(!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(),ne===null)throw Error(S(349));Ut&30||fc(r,t,n)}l.memoizedState=n;var s={value:n,getSnapshot:t};return l.queue=s,ca(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=ne.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:no,useImperativeHandle:kc,useInsertionEffect:gc,useLayoutEffect:xc,useMemo:Nc,useReducer:xs,useRef:yc,useState:function(){return xs(mr)},useDebugValue:ro,useDeferredValue:function(e){var t=Le();return Sc(t,J.memoizedState,e)},useTransition:function(){var e=xs(mr)[0],t=Le().memoizedState;return[e,t]},useMutableSource:cc,useSyncExternalStore:dc,useId:Ec,unstable_isNewReconciler:!1},Tm={readContext:Oe,useCallback:wc,useContext:Oe,useEffect:no,useImperativeHandle:kc,useInsertionEffect:gc,useLayoutEffect:xc,useMemo:Nc,useReducer:js,useRef:yc,useState:function(){return js(mr)},useDebugValue:ro,useDeferredValue:function(e){var t=Le();return J===null?t.memoizedState=e:Sc(t,J.memoizedState,e)},useTransition:function(){var e=js(mr)[0],t=Le().memoizedState;return[e,t]},useMutableSource:cc,useSyncExternalStore:dc,useId:Ec,unstable_isNewReconciler:!1};function Re(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 ri(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 Bl={isMounted:function(e){return(e=e._reactInternals)?bt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fe(),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),Jr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fe(),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),Jr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fe(),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),Jr(t,e,r))}};function da(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:ce.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=Bl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=s),t}function fa(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&&Bl.enqueueReplaceState(t,t.state,null)}function li(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Gi(e);var s=t.contextType;typeof s=="object"&&s!==null?l.context=Oe(s):(s=ge(t)?It:ce.current,l.context=vn(e,s)),l.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ri(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&&Bl.enqueueReplaceState(l,l.state,null),jl(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
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 Lc(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 Lm=lt.ReactCurrentOwner,ve=!1;function de(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,de(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,Oc(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 Oc(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 Mc(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 de(e,t,l,n),t.child}function Rc(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:ce.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,de(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=Le(d):(d=ge(n)?It:ce.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:Re(t.type,a),i.props=d,m=t.pendingProps,v=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Le(u):(u=ge(n)?It:ce.current,u=vn(t,u));var y=n.getDerivedStateFromProps;(h=typeof y=="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 y=="function"&&(ni(t,n,y,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){Rc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&na(t,n,!1),rt(e,t,s);r=t.stateNode,Lm.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)):de(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,de(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 Om(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 Om(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=ne,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(de(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 Mm(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,Mc(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,Mt(He.current);var s=null;switch(n){case"input":l=Ls(e,l),r=Ls(e,r),s=[];break;case"select":l=Q({},l,{value:void 0}),r=Q({},r,{value:void 0}),s=[];break;case"textarea":l=Rs(e,l),r=Rs(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 ae(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 Rm(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 ae(t),null;case 1:return ge(t.type)&&ml(),ae(t),null;case 3:return r=t.stateNode,xn(),U(ye),U(ce),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),ae(t),null;case 5:Xi(t);var l=Mt(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 ae(t),null}if(e=Mt(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),Lo(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=Ls(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=Rs(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),Lo(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 ae(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=Mt(dr.current),Mt(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 ae(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;ae(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?q===0&&(q=3):uo())),t.updateQueue!==null&&(t.flags|=4),ae(t),null);case 4:return xn(),ui(e,t),e===null&&or(t.stateNode.containerInfo),ae(t),null;case 10:return bi(t.type._context),ae(t),null;case 17:return ge(t.type)&&ml(),ae(t),null;case 19:if(U(W),s=t.memoizedState,s===null)return ae(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Fn(s,!1);else{if(q!==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 ae(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):(ae(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&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(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(ce),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 bi(t.type._context),null;case 22:case 23:return ao(),null;case 24:return null;default:return null}}var Vr=!1,ue=!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){b(e,t,r)}else n.current=null}function ci(e,t,n){try{n()}catch(r){b(e,t,r)}}var ja=!1;function Dm(e,t){if(Ks=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 y;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),(y=m.firstChild)!==null;)v=m,m=y;for(;;){if(m===e)break t;if(v===n&&++d===l&&(a=i),v===s&&++h===r&&(u=i),(y=m.nextSibling)!==null)break;m=v,v=m.parentNode}m=y}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 g=x.memoizedProps,k=x.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Re(t.type,g),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){b(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 re=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(Ml,n)}catch{}switch(n.tag){case 5:ue||on(n,t);case 6:var r=re,l=ze;re=null,st(e,t,n),re=r,ze=l,re!==null&&(ze?(e=re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):re.removeChild(n.stateNode));break;case 18:re!==null&&(ze?(e=re,n=n.stateNode,e.nodeType===8?ps(e.parentNode,n):e.nodeType===1&&ps(e,n),lr(e)):ps(re,n.stateNode));break;case 4:r=re,l=ze,re=n.stateNode.containerInfo,ze=!0,st(e,t,n),re=r,ze=l;break;case 0:case 11:case 14:case 15:if(!ue&&(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(!ue&&(on(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){b(n,t,a)}st(e,t,n);break;case 21:st(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,st(e,t,n),ue=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=bm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Me(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:re=a.stateNode,ze=!1;break e;case 3:re=a.stateNode.containerInfo,ze=!0;break e;case 4:re=a.stateNode.containerInfo,ze=!0;break e}a=a.return}if(re===null)throw Error(S(160));Wc(s,i,l),re=null,ze=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){b(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(Me(t,e),Ue(e),r&4){try{Gn(3,e,e.return),Bl(3,e)}catch(g){b(e,e.return,g)}try{Gn(5,e,e.return)}catch(g){b(e,e.return,g)}}break;case 1:Me(t,e),Ue(e),r&512&&n!==null&&on(n,n.return);break;case 5:if(Me(t,e),Ue(e),r&512&&n!==null&&on(n,n.return),e.flags&32){var l=e.stateNode;try{er(l,"")}catch(g){b(e,e.return,g)}}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":Os(l,s);break;case"textarea":mu(l,s);break;case"select":var v=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?un(l,!!s.multiple,y,!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(g){b(e,e.return,g)}}break;case 6:if(Me(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(g){b(e,e.return,g)}}break;case 3:if(Me(t,e),Ue(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lr(t.containerInfo)}catch(g){b(e,e.return,g)}break;case 4:Me(t,e),Ue(e);break;case 13:Me(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?(ue=(d=ue)||h,Me(t,e),ue=d):Me(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=_,y=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(g){b(r,n,g)}}break;case 5:on(v,v.return);break;case 22:if(v.memoizedState!==null){Sa(m);continue}}y!==null?(y.return=v,_=y):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(g){b(e,e.return,g)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(g){b(e,e.return,g)}}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:Me(t,e),Ue(e),r&4&&wa(e);break;case 21:break;default:Me(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){b(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||ue;a=Vr;var d=ue;if(Vr=i,(ue=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,ue=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:ue||Bl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ue)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Re(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))}ue||t.flags&512&&di(t)}catch(v){b(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){b(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){b(t,l,u)}}var s=t.return;try{di(t)}catch(u){b(t,s,u)}break;case 5:var i=t.return;try{di(t)}catch(u){b(t,i,u)}}}catch(u){b(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,z=0,ne=null,X=null,le=0,je=0,an=Et(0),q=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 fe(){return z&6?Y():el!==-1?el:el=Y()}function xt(e){return e.mode&1?z&2&&le!==0?le&-le:wm.transition!==null?(tl===0&&(tl=Tu()),tl):(e=D,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),(!(z&2)||e!==ne)&&(e===ne&&(!(z&2)&&(Vl|=n),q===4&&ut(e,le)),xe(e,r),n===1&&z===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===ne?le:0);if(r===0)n!==null&&Ro(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ro(n),t===1)e.tag===0?km(Ca.bind(null,e)):tc(Ca.bind(null,e)),ym(function(){!(z&6)&&Ct()}),n=null;else{switch(Pu(r)){case 1:n=Oi;break;case 4:n=_u;break;case 16:n=ol;break;case 536870912:n=$u;break;default:n=ol}n=Zc(n,bc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bc(e,t){if(el=-1,tl=0,z&6)throw Error(S(327));var n=e.callbackNode;if(pn()&&e.callbackNode!==n)return null;var r=al(e,e===ne?le:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cl(e,r);else{t=r;var l=z;z|=2;var s=Yc();(ne!==e||le!==t)&&(Ge=null,kn=Y()+500,zt(e,t));do try{Vm();break}catch(a){Kc(e,a)}while(!0);Qi(),Nl.current=s,z=l,X!==null?t=0:(ne=null,le=0,t=q)}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){fe(),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?bc.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(z&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=z;z|=1;try{return e(t)}finally{z=n,z===0&&(kn=Y()+500,Il&&Ct())}}function Vt(e){dt!==null&&dt.tag===0&&!(z&6)&&pn();var t=z;z|=1;var n=Pe.transition,r=D;try{if(Pe.transition=null,D=1,e)return e()}finally{D=r,Pe.transition=n,z=t,!(z&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)),X!==null)for(n=X.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(ce),Ji();break;case 5:Xi(r);break;case 4:xn();break;case 13:U(W);break;case 19:U(W);break;case 10:bi(r.type._context);break;case 22:case 23:ao()}n=n.return}if(ne=e,X=e=jt(e.current,null),le=je=t,q=0,hr=null,so=Vl=Bt=0,he=Xn=null,Ot!==null){for(t=0;t<Ot.length;t++)if(n=Ot[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}Ot=null}return e}function Kc(e,t){do{var n=X;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,ee=J=H=null,Yn=!1,fr=0,lo.current=null,n===null||n.return===null){q=1,hr=t,X=null;break}e:{var s=e,i=n.return,a=n,u=t;if(t=le,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 y=ma(i);if(y!==null){y.flags&=-257,pa(y,i,a,s,t),y.mode&1&&fa(s,d,t),t=y,u=d;var x=t.updateQueue;if(x===null){var g=new Set;g.add(u),t.updateQueue=g}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),q!==4&&(q=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=Lc(s,a,t);ia(s,j);break e}}s=s.return}while(s!==null)}Xc(n)}catch(E){t=E,X===n&&n!==null&&(X=n=n.return);continue}break}while(!0)}function Yc(){var e=Nl.current;return Nl.current=wl,e===null?wl:e}function uo(){(q===0||q===3||q===2)&&(q=4),ne===null||!(Bt&268435455)&&!(Vl&268435455)||ut(ne,le)}function Cl(e,t){var n=z;z|=2;var r=Yc();(ne!==e||le!==t)&&(Ge=null,zt(e,t));do try{Bm();break}catch(l){Kc(e,l)}while(!0);if(Qi(),z=n,Nl.current=r,X!==null)throw Error(S(261));return ne=null,le=0,q}function Bm(){for(;X!==null;)Gc(X)}function Vm(){for(;X!==null&&!mf();)Gc(X)}function Gc(e){var t=qc(e.alternate,e,je);e.memoizedProps=e.pendingProps,t===null?Xc(e):X=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,X=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{q=6,X=null;return}}else if(n=Rm(n,t,je),n!==null){X=n;return}if(t=t.sibling,t!==null){X=t;return}X=t=e}while(t!==null);q===0&&(q=5)}function Pt(e,t,n){var r=D,l=Pe.transition;try{Pe.transition=null,D=1,Wm(e,t,n,r)}finally{Pe.transition=l,D=r}return null}function Wm(e,t,n,r){do pn();while(dt!==null);if(z&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===ne&&(X=ne=null,le=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=D;D=1;var a=z;z|=4,lo.current=null,Dm(e,n),Hc(n,e),um(Ys),ul=!!Ks,Ys=Ks=null,e.current=n,Im(n),pf(),z=a,D=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=D;try{if(Pe.transition=null,D=16>e?16:e,dt===null)var r=!1;else{if(e=dt,dt=null,El=0,z&6)throw Error(S(331));var l=z;for(z|=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,y=h.return;if(Bc(h),h===d){_=null;break}if(v!==null){v.return=y,_=v;break}_=y}}}var x=s.alternate;if(x!==null){var g=x.child;if(g!==null){x.child=null;do{var k=g.sibling;g.sibling=null,g=k}while(g!==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){b(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(z=l,Ct(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(Ml,e)}catch{}r=!0}return r}finally{D=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=fe(),e!==null&&(gr(e,1,t),xe(e,t))}function b(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=Lc(t,e,1),t=yt(t,e,1),e=fe(),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=fe(),e.pingedLanes|=e.suspendedLanes&n,ne===e&&(le&n)===n&&(q===4||q===3&&(le&130023424)===le&&500>Y()-io?zt(e,0):so|=n),xe(e,t)}function Jc(e,t){t===0&&(e.mode&1?(t=Mr,Mr<<=1,!(Mr&130023424)&&(Mr=4194304)):t=1);var n=fe();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 bm(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,Mm(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,ce.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),de(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=Re(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,Re(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:Re(r,l),si(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(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}de(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),Rc(e,t),de(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):de(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),ha(e,t,r,l,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(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}de(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,mn(t,n),l=Le(l),r=r(l),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,l=Re(r,t.pendingProps),l=Re(r.type,l),va(e,t,r,l,n);case 15:return Oc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(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 Mc(e,t,n)}throw Error(S(156,t.tag))};function Zc(e,t){return Cu(e,t)}function Km(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 Km(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(bt(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=fe(),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=fe(),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=Mu();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 bl(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 Kl(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)}Lu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Un(t.pendingLanes);n!==0&&(Mi(t,n|1),xe(t,Y()),!(z&6)&&(kn=Y()+500,Ct()))}break;case 13:Vt(function(){var r=nt(e,1);if(r!==null){var l=fe();Ie(r,e,1,l)}}),mo(e,1)}};Ri=function(e){if(e.tag===13){var t=nt(e,134217728);if(t!==null){var n=fe();Ie(t,e,134217728,n)}mo(e,134217728)}};Ou=function(e){if(e.tag===13){var t=xt(e),n=nt(e,t);if(n!==null){var r=fe();Ie(n,e,t,r)}mo(e,t)}};Mu=function(){return D};Ru=function(e,t){var n=D;try{return D=e,t()}finally{D=n}};As=function(e,t,n){switch(t){case"input":if(Os(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),Os(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:Lt,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{Ml=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(!bl(t))throw Error(S(200));return Kl(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(!bl(t))throw Error(S(200));return Kl(null,e,t,!1,n)};Se.unmountComponentAtNode=function(e){if(!bl(e))throw Error(S(40));return e._reactRootContainer?(Vt(function(){Kl(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(!bl(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return Kl(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 Kt(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}=Kt(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},La=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=Kt(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)}),g=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`):Rt(e,{primitive:"distribution",args:[m,h,{measure:u[2]}],exactness:k,why:`${i} is approximate by construction ($percentile t-digest over the matched records)${g}`});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(", ")}`):Rt(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${g}`})}if(!e.measure&&!e.interval)return Rt(e,{primitive:"records",args:[m,h,e.limit?{limit:Tl(e.limit,l.records)}:{}],exactness:k,why:`the matching records themselves, newest first${g}`});const f=e.interval??sd(e.range,r);return Rt(e,{primitive:"series",args:[m,h,{measure:i,interval:f}],exactness:k,why:`raw ${i} per ${f} over the range${g}`})}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:Kt(e.range,n),...e.subjectType?{subjectType:e.subjectType}:{},...e.interval?{interval:e.interval}:{},...e.limit?{limit:Tl(e.limit,r.funnel)}:{}};return Rt(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 Rt(e,{primitive:"distinctCount",args:[{as:u.as,subjectType:s,range:Kt(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 Oa=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=Oa(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=Oa(m),y=Kt(e.range,s),x=m.lifetime?"firstAt":"bucketAt",g=d.filter(f=>v.includes(f.dim));return Rt(e,{primitive:"rollups",args:[{as:m.as,on:x,range:y,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}:{},...g.length?{filters:g.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 Ma={"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=Ma[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(Ma).join(", ")}, \`attr:<key>\` and metric bounds`)}return(s=e.excludeActorTypes)!=null&&s.length&&(r.excludeActorTypes=[...e.excludeActorTypes]),r}function Rt(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,...La(i)}},...r]}}:t}return{...t,previous:{args:[La(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=F=>{const T=Array.isArray(e[F])?e[F][0]:e[F];return typeof T=="string"&&T?T:void 0},n=F=>(t(F)??"").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 y=t("sort");if(y&&!vp.has(y))throw Ce(`\`sort\` must be one of value, label, time — got "${y}"`);const x=t("compare");if(x&&x!=="previous")throw Ce(`\`compare\` takes only "previous" — got "${x}"`);const g=t("limit"),k=g==null?void 0:Number(g);if(k!=null&&(!Number.isInteger(k)||k<1))throw Ce(`\`limit\` must be a positive integer — got "${g}"`);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}:{},...y?{sort:y}:{},...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=y=>typeof y=="string"&&y?y: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[y,x]of Object.entries(n)){if(y===u||y==="rollup"||y==="excludeActorTypes")continue;if(y==="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 g=gp[y],k=r(x);g&&k&&d.push({dim:g,op:"eq",value:k})}const h=(t.groupBy??"").split(",").map(y=>y.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"},Ra={fatal:"red",error:"red",warn:"amber",info:"blue",debug:""},kp=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),cd=new Intl.NumberFormat;function R(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):R(t)}function dd(e,t){return _n(Ll(e),t)}function Ll(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}=Kt(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 te(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=L.createContext({platform:!1,scope:null});function G({label:e,value:t,delta:n,meta:r,deltaFormat:l=R}){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=R}){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),y=f=>a.t+(1-f/m)*(i-a.t-a.b),x=u.length===1&&!u[0].label,g=[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:y(m*f),y2:y(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)},${y(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:y(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:[g.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:y(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:R(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}=L.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 Lp({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,y)=>o.jsx("rect",{className:"chart-bar",x:y*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"},y)),[["p50",t,"var(--fg-subtle)"],["p95",n,"var(--amber)"],["p99",r,"var(--red)"]].filter(([,v])=>v!=null).map(([v,y,x])=>o.jsxs("g",{children:[o.jsx("line",{x1:h(y),x2:h(y),y1:0,y2:i-18,stroke:x,strokeDasharray:"3 2"}),o.jsxs("text",{x:h(y)+3,y:12,fontSize:"10",fill:x,children:[v," ",l(y)]})]},v))]})})}function md({kind:e}){return o.jsxs("span",{className:`pill ${jp[e]??""}`,children:[o.jsx("span",{className:"dot"}),e]})}function Op(e){return(e.subjectKeys??[]).join(" ")}function $n({items:e,onSelect:t,empty:n="No records in range"}){const{platform:r}=L.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:Op(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} × ${R(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 Mp({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 Rp({record:e,onClose:t,onTrace:n,onSubject:r}){const{platform:l}=L.useContext(Sr);if(!e)return null;const s=i=>Object.entries(i??{}).map(([a,u])=>o.jsxs(L.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&&Ra[e.severity]!==void 0&&o.jsx("span",{className:`pill ${Ra[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(Mp,{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:[R(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}=L.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:[R(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:[R(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}=Kt(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:R,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:R,meta:"in cohort"};case"distribution":return{value:n.n?n.p95:null,format:i=>_n(Ll(l),i),meta:`${R(n.n??0)} sampled`};case"distinctCount":return{value:n.distinct??null,format:R,meta:"distinct in range"};case"records":return{value:(n.items??[]).length,format:R,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?`${R(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(G,{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(G,{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 g;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:[R(l.cohortSubjects??0)," subjects anchored on"," ",o.jsx("span",{className:"mono",children:(g=l.cohort)==null?void 0:g.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:R})]})]}))}if(r.primitive==="distribution"){const k=Ll(a);return d(o.jsx(Lp,{...l,format:f=>_n(k,f)}),o.jsxs("span",{className:"tag",children:[R(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(G,{label:`Distinct ${Ll(a)}`,value:R(l.distinct??0),meta:"distinct in range"}),o.jsx(G,{label:`Peak per ${l.interval??"bucket"}`,value:R(Math.max(0,...(l.buckets??[]).map(k=>k.value)))})]}),o.jsx(Vn,{buckets:l.buckets,height:n,format:R})]}));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:"),y=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:y(l),before:y(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(G,{label:"Total",value:x.format(x.value),meta:x.meta}),o.jsx(G,{label:"Groups",value:R(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=L.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=>te(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(y=>o.jsx("option",{value:y,children:y},y))},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]=L.useState(null),[a,u]=L.useState({}),d=L.useMemo(()=>Yl(n,r),[n,r]),h=L.useMemo(()=>{var C,F;const w=new Map;for(const T of d)for(const ie of((F=(C=n==null?void 0:n.events)==null?void 0:C[T])==null?void 0:F.dims)??[]){const Ye=w.get(ie.key);w.set(ie.key,Ye?{...Ye,indexed:Ye.indexed&&ie.indexed}:ie)}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])),[y,x]=L.useState(!1),g=w=>te(t.page,_p(l,w),t.arg),k=(w,N)=>{const C=m.filter(F=>F.dim!==w);g(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=>y||v.has(w.key)).map(c),h.envelope.length>0&&o.jsx("button",{className:"filter-chip",onClick:()=>x(!y),children:y?"− 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:()=>te(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]=L.useState({loading:!0});return L.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 be(){return o.jsx("div",{className:"empty",children:"Loading…"})}function Ke({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]=L.useState(null);return{open:t,drawer:e&&o.jsx(Rp,{record:e,onClose:()=>t(null),onTrace:r=>{t(null),te("traces",{},r)},onSubject:r=>{t(null),te("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 bp(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 Kp(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(be,{}):h.error?o.jsx(Ke,{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=L.useMemo(()=>new Date,[u.range,u.from,u.to]),m=L.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,te(r,{...p,...j},n.arg)},y=d?bp(t,d):[],x=d?Kp(t,d):[],g=(m==null?void 0:m.groupBy)??[],k=c=>m?jo({...m,...c},t,h):null,f=(c,p)=>{const j=[...g];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:y.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:g[c]??"",onChange:p=>f(c,p.target.value||null),children:[o.jsx("option",{value:"",children:"—"}),x.map(p=>{const j=[...g];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&&te(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(g=>i.includes(g)),u=(n.exits??[]).filter(g=>i.includes(g)&&!a.includes(g)),[d,h]=L.useState(!1),m=(g,k={})=>r({...n,subjectType:s,stages:g,anchor:g[0],exits:u.filter(f=>!g.includes(f)),...k}),v=g=>m(a.includes(g)?a.filter(k=>k!==g):[...a,g]),y=(g,k)=>{const f=[...a],c=g+k;c<0||c>=f.length||([f[g],f[c]]=[f[c],f[g]],m(f))},x=async g=>{if(g==="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:g=>{const k=g.target.value;r({...n,subjectType:k,stages:Dt(t,k),anchor:Dt(t,k)[0],exits:void 0})},children:l.map(g=>o.jsx("option",{value:g,children:g},g))})]}),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((g,k)=>o.jsxs("div",{className:"hstack",children:[o.jsx("span",{className:"tag",children:k+1}),o.jsx("span",{className:"grow mono text-xs",children:g}),o.jsx("button",{className:"icon-btn",onClick:()=>y(k,-1),disabled:k===0,title:"earlier",children:"↑"}),o.jsx("button",{className:"icon-btn",onClick:()=>y(k,1),disabled:k===a.length-1,title:"later",children:"↓"}),o.jsx("button",{className:"icon-btn",onClick:()=>v(g),title:"remove",children:"✕"})]},g)),!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(g=>o.jsx("button",{className:`filter-chip ${a.includes(g)?"active":""}`,onClick:()=>v(g),children:g},g))]}),o.jsxs("div",{className:"hstack",style:{flexWrap:"wrap"},children:[o.jsx("span",{className:"subtle text-xs",children:"exits"}),i.filter(g=>!a.includes(g)).map(g=>o.jsx("button",{className:`filter-chip ${u.includes(g)?"active":""}`,onClick:()=>r({...n,subjectType:s,exits:u.includes(g)?u.filter(k=>k!==g):[...u,g]}),children:g},g)),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(G,{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=L.useMemo(()=>new Date,[l]),i=L.useMemo(()=>Jp(n,l,s),[n,l,s]),a=xd(n),u=Yt(),d=Qe(async()=>{const[v,y]=await Promise.all([a?e.rollups({as:a,sort:"lastAt",limit:8}):null,e.records(Er(r,{limit:12}))]);return{issues:v,recent:y}},[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(be,{}),d.error&&o.jsx(Ke,{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:()=>te("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=L.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(be,{}):u.error?o.jsx(Ke,{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=L.useMemo(()=>new Date,[l]),i=Yt(),a=Qe(()=>e.records(Er(r,{kind:"span",limit:50})),[JSON.stringify(r)]);return a.loading?o.jsx(be,{}):a.error?o.jsx(Ke,{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?te("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(be,{});if(r.error)return o.jsx(Ke,{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:()=>te("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(be,{}):s.error?o.jsx(Ke,{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=L.useMemo(()=>new Date,[l]),i=Object.keys(n.families),a=r.rollup??i[0],[u,d]=L.useState(""),h=xo(n),m=r.subjectType??h[0],v=String(r.stages??"").split(",").map(k=>k.trim()).filter(Boolean),y=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=L.useRef(!1);L.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=>{te("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 g=k=>{const f={...r};for(const c of kd)delete f[c];te("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(":")&&te("journeys",r,u)}),o.jsx("button",{className:"btn btn-primary btn-sm",disabled:!u.includes(":"),onClick:()=>te("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:y??{source:{family:Dt(n,m)[0]},range:l,measure:"funnel",subjectType:m},apply:g})})]}),y&&o.jsx(Nt,{api:e,catalog:n,now:s,title:`Funnel · ${m}`,sub:`anchored on ${y.anchor}`,report:y}),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(be,{});if(s.error)return o.jsx(Ke,{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(),y=h.get(v)??{at:m.bucketAt,value:0};return y.value+=a.length?((x=m.sums)==null?void 0:x[a[0]])??0:m.count,h.set(v,y)},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=>te("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&&te("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(be,{});if(s.error)return o.jsx(Ke,{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:()=>te("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=L.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,g]=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:g}},[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)),y={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(be,{}),m.error&&o.jsx(Ke,{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,g)=>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}];te("usage",{...r,filter:f.map(c=>`${c.dim}:${c.op}:${c.value}`)})},children:[x,m.data.meters.counts?` · ${R(m.data.meters.counts[g])}`:""]},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:{...y,...u?{groupBy:[u.key]}:{},interval:Nr(l)}}),d&&o.jsx(Nt,{api:e,catalog:n,now:s,title:"By billed-to",report:{...y,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]=L.useState(0),r=Qe(()=>e.system(),[t]);if(r.loading)return o.jsx(be,{});if(r.error)return o.jsx(Ke,{error:r.error});const{counters:l,quarantine:s,indexCount:i,indexBudget:a,keys:u,role:d,suggestions:h}=r.data,m=y=>l[y]??0,v=m("subjectsLinked")+m("subjectLinkMisses")+m("subjectLinkErrors")+m("subjectLinkTimeouts")+m("subjectLinkUndeclared")+m("subjectLinkCapped");return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"kpis",style:{gridTemplateColumns:"repeat(7, 1fr)"},children:[o.jsx(G,{label:"rejected",value:R(l.rejected),meta:"quarantined"}),o.jsx(G,{label:"sampled",value:R(l.sampled),meta:"dropped by rate"}),o.jsx(G,{label:"capped",value:R(l.capped),meta:"burst/rate caps"}),o.jsx(G,{label:"deduped",value:R(l.deduped),meta:"idempotent replays"}),o.jsx(G,{label:"truncated",value:R(l.truncated),meta:"body over cap"}),o.jsx(G,{label:"defaulted",value:R(l.defaulted),meta:"missing service/release"}),o.jsx(G,{label:"indexes",value:`${i}`,meta:`payload budget ${a}`})]}),v>0&&o.jsxs("div",{className:"kpis",style:{gridTemplateColumns:"repeat(6, 1fr)"},children:[o.jsx(G,{label:"linked",value:R(m("subjectsLinked")),meta:"subjects added on write"}),o.jsx(G,{label:"link misses",value:R(m("subjectLinkMisses")),meta:"host knew of no link"}),o.jsx(G,{label:"link errors",value:R(m("subjectLinkErrors")),meta:"threw or answered garbage"}),o.jsx(G,{label:"link timeouts",value:R(m("subjectLinkTimeouts")),meta:"written unlinked"}),o.jsx(G,{label:"link undeclared",value:R(m("subjectLinkUndeclared")),meta:"type not in the registry"}),o.jsx(G,{label:"link capped",value:R(m("subjectLinkCapped")),meta:"over the subject cap"})]}),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(y=>({...y,id:y._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:y=>y.revokedAt?o.jsx("span",{className:"pill red",children:"revoked"}):o.jsx("button",{className:"btn btn-danger btn-sm",onClick:x=>{x.stopPropagation(),window.confirm(`Revoke ${y._id}? Writers using it start dropping within 60s.`)&&e.revokeKey(y._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((y,x)=>({id:x,at:y.at,name:y.name,reason:y.reason})),columns:[{key:"at",label:"when",render:y=>Nn(y.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]=L.useState(za);return L.useEffect(()=>{const n=()=>t(za());return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]),e}function fh({config:e}){const t=L.useMemo(()=>np(e),[e]),n=dh(),[r,l]=L.useState(null),[s,i]=L.useState({platform:!1,scope:null}),[a,u]=L.useState([]),[d,h]=L.useState(null),[m,v]=L.useState(()=>localStorage.getItem("telemetry_theme")??"light");L.useEffect(()=>{document.documentElement.setAttribute("data-theme",m),localStorage.setItem("telemetry_theme",m)},[m]),L.useEffect(()=>{t.registry().then(g=>{l(g.catalog),i({platform:!!g.platform,scope:g.scope??null})},h),t.views().then(g=>u(g.views),()=>{})},[t]);const y=async()=>{const g=window.prompt("View name — it will appear in the sidebar:");if(!g)return;const k=window.confirm("Share with the whole tenant? (Cancel = private to you)"),f=Ep(n);await t.saveView({name:g,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:y,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(L.StrictMode,{children:o.jsx(fh,{config:mh})}));
41
- //# sourceMappingURL=index-kvwB9_3A.js.map
40
+ `+s.stack}return{value:e,source:t,stack:l,digest:null}}function ks(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function si(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(){El||(El=!0,hi=r),si(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(){si(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){si(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 ma(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 pa(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 ha(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 de(e,t,n,r){t.child=e===null?ic(t,null,n,r):gn(t,e.child,n,r)}function va(e,t,n,r,l){n=n.render;var s=t.ref;return mn(t,l),r=eo(e,t,n,r,s,l),n=to(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,rt(e,t,l)):(B&&n&&Vi(t),t.flags|=1,de(e,t,r,l),t.child)}function ya(e,t,n,r,l){if(e===null){var s=n.type;return typeof s=="function"&&!fo(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Lc(e,t,s,r,l)):(e=rl(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 Lc(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 ii(e,t,n,r,l)}function Mc(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 de(e,t,l,n),t.child}function Rc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ii(e,t,n,r,l){var s=ge(n)?It:ce.current;return s=vn(t,s),mn(t,l),n=eo(e,t,n,r,s,l),r=to(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,rt(e,t,l)):(B&&r&&Vi(t),t.flags|=1,de(e,t,n,l),t.child)}function ga(e,t,n,r,l){if(ge(n)){var s=!0;hl(t)}else s=!1;if(mn(t,l),t.stateNode===null)el(e,t),Tc(t,n,r),li(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:ce.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)&&fa(t,i,r,d),ot=!1;var v=t.memoizedState;i.state=v,jl(t,r,i,l),u=t.memoizedState,a!==r||v!==u||ye.current||ot?(typeof h=="function"&&(ri(t,n,h,r),u=t.memoizedState),(a=ot||da(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:Re(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:ce.current,u=vn(t,u));var y=n.getDerivedStateFromProps;(h=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==m||v!==u)&&fa(t,i,r,u),ot=!1,v=t.memoizedState,i.state=v,jl(t,r,i,l);var x=t.memoizedState;a!==m||v!==x||ye.current||ot?(typeof y=="function"&&(ri(t,n,y,r),x=t.memoizedState),(d=ot||da(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 oi(e,t,n,r,s,l)}function oi(e,t,n,r,l,s){Rc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&ra(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)):de(e,t,a,s),t.memoizedState=r.state,l&&ra(t,n,!0),t.child}function zc(e){var t=e.stateNode;t.pendingContext?na(e,t.pendingContext,t.pendingContext!==t.context):t.context&&na(e,t.context,!1),Xi(e,t.containerInfo)}function xa(e,t,n,r,l){return yn(),Hi(l),t.flags|=256,de(e,t,n,r),t.child}var ai={dehydrated:null,treeContext:null,retryLane:0};function ui(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 ti(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=Hl(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=ui(n),t.memoizedState=ai,e):lo(t,i));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Lm(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?ui(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=ai,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 lo(e,t){return t=Hl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Br(e,t,n,r){return r!==null&&Hi(r),gn(t,e.child,null,n),e=lo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lm(e,t,n,r,l,s,i){if(n)return t.flags&256?(t.flags&=-257,r=ks(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=Hl({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=ui(i),t.memoizedState=ai,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=ks(s,r,void 0),Br(e,t,i,r)}if(a=(i&e.childLanes)!==0,ve||a){if(r=ne,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 co(),r=ks(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=lo(t,r.children),t.flags|=4096,t)}function ja(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ni(e.return,t,n)}function ws(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(de(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&&ja(e,n,t);else if(e.tag===19)ja(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&&kl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ws(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&&kl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ws(t,!0,n,null,s);break;case"together":ws(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function el(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 Mm(e,t,n){switch(t.tag){case 3:zc(t),yn();break;case 5:uc(t);break;case 1:ge(t.type)&&hl(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;I(gl,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,Mc(e,t,n)}return rt(e,t,n)}var Ic,ci,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}};ci=function(){};Ac=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Mt(He.current);var s=null;switch(n){case"input":l=Ls(e,l),r=Ls(e,r),s=[];break;case"select":l=Q({},l,{value:void 0}),r=Q({},r,{value:void 0}),s=[];break;case"textarea":l=zs(e,l),r=zs(e,r),s=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ml)}Ds(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 ae(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 Rm(e,t,n){var r=t.pendingProps;switch(Wi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ae(t),null;case 1:return ge(t.type)&&pl(),ae(t),null;case 3:return r=t.stateNode,xn(),U(ye),U(ce),qi(),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&&(gi(Fe),Fe=null))),ci(e,t),ae(t),null;case 5:Ji(t);var l=Mt(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 ae(t),null}if(e=Mt(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":To(r,s),A("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},A("invalid",r);break;case"textarea":Oo(r,s),A("invalid",r)}Ds(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),Po(r,s,!0);break;case"textarea":Pr(r),Lo(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ml)}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=Is(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":To(e,r),l=Ls(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":Oo(e,r),l=zs(e,r),A("invalid",e);break;default:l=r}Ds(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),Po(e,r,!1);break;case"textarea":Pr(e),Lo(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=ml)}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 ae(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=Mt(dr.current),Mt(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 ae(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;ae(t),s=!1}else Fe!==null&&(gi(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?q===0&&(q=3):co())),t.updateQueue!==null&&(t.flags|=4),ae(t),null);case 4:return xn(),ci(e,t),e===null&&or(t.stateNode.containerInfo),ae(t),null;case 10:return Ki(t.type._context),ae(t),null;case 17:return ge(t.type)&&pl(),ae(t),null;case 19:if(U(W),s=t.memoizedState,s===null)return ae(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Fn(s,!1);else{if(q!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=kl(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=kl(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 ae(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):(ae(t),null);case 22:case 23:return uo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function zm(e,t){switch(Wi(t),t.tag){case 1:return ge(t.type)&&pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xn(),U(ye),U(ce),qi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ji(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 uo(),null;case 24:return null;default:return null}}var Vr=!1,ue=!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){b(e,t,r)}else n.current=null}function di(e,t,n){try{n()}catch(r){b(e,t,r)}}var ka=!1;function Dm(e,t){if(Ys=cl,e=Qu(),Bi(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 y;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),(y=m.firstChild)!==null;)v=m,m=y;for(;;){if(m===e)break t;if(v===n&&++d===l&&(a=i),v===s&&++h===r&&(u=i),(y=m.nextSibling)!==null)break;m=v,v=m.parentNode}m=y}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gs={focusedElem:e,selectionRange:n},cl=!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 g=x.memoizedProps,k=x.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?g:Re(t.type,g),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){b(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return x=ka,ka=!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&&di(t,n,s)}l=l.next}while(l!==r)}}function Vl(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 fi(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[qs],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 wa(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 mi(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=ml));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}function pi(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(pi(e,t,n),e=e.sibling;e!==null;)pi(e,t,n),e=e.sibling}var re=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:ue||on(n,t);case 6:var r=re,l=ze;re=null,st(e,t,n),re=r,ze=l,re!==null&&(ze?(e=re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):re.removeChild(n.stateNode));break;case 18:re!==null&&(ze?(e=re,n=n.stateNode,e.nodeType===8?hs(e.parentNode,n):e.nodeType===1&&hs(e,n),lr(e)):hs(re,n.stateNode));break;case 4:r=re,l=ze,re=n.stateNode.containerInfo,ze=!0,st(e,t,n),re=r,ze=l;break;case 0:case 11:case 14:case 15:if(!ue&&(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)&&di(n,t,i),l=l.next}while(l!==r)}st(e,t,n);break;case 1:if(!ue&&(on(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){b(n,t,a)}st(e,t,n);break;case 21:st(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,st(e,t,n),ue=r):st(e,t,n);break;default:st(e,t,n)}}function Na(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=bm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Me(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:re=a.stateNode,ze=!1;break e;case 3:re=a.stateNode.containerInfo,ze=!0;break e;case 4:re=a.stateNode.containerInfo,ze=!0;break e}a=a.return}if(re===null)throw Error(S(160));Wc(s,i,l),re=null,ze=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(d){b(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(Me(t,e),Ue(e),r&4){try{Gn(3,e,e.return),Vl(3,e)}catch(g){b(e,e.return,g)}try{Gn(5,e,e.return)}catch(g){b(e,e.return,g)}}break;case 1:Me(t,e),Ue(e),r&512&&n!==null&&on(n,n.return);break;case 5:if(Me(t,e),Ue(e),r&512&&n!==null&&on(n,n.return),e.flags&32){var l=e.stateNode;try{er(l,"")}catch(g){b(e,e.return,g)}}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),Is(a,i);var d=Is(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 y=s.value;y!=null?un(l,!!s.multiple,y,!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(g){b(e,e.return,g)}}break;case 6:if(Me(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(g){b(e,e.return,g)}}break;case 3:if(Me(t,e),Ue(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lr(t.containerInfo)}catch(g){b(e,e.return,g)}break;case 4:Me(t,e),Ue(e);break;case 13:Me(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||(oo=Y())),r&4&&Na(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(d=ue)||h,Me(t,e),ue=d):Me(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=_,y=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(g){b(r,n,g)}}break;case 5:on(v,v.return);break;case 22:if(v.memoizedState!==null){Ea(m);continue}}y!==null?(y.return=v,_=y):Ea(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(g){b(e,e.return,g)}}}else if(m.tag===6){if(h===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(g){b(e,e.return,g)}}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:Me(t,e),Ue(e),r&4&&Na(e);break;case 21:break;default:Me(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=wa(e);pi(e,s,l);break;case 3:case 4:var i=r.stateNode.containerInfo,a=wa(e);mi(e,a,i);break;default:throw Error(S(161))}}catch(u){b(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||ue;a=Vr;var d=ue;if(Vr=i,(ue=u)&&!d)for(_=l;_!==null;)i=_,u=i.child,i.tag===22&&i.memoizedState!==null?Ca(l):u!==null?(u.return=i,_=u):Ca(l);for(;s!==null;)_=s,Qc(s),s=s.sibling;_=l,Vr=a,ue=d}Sa(e)}else l.subtreeFlags&8772&&s!==null?(s.return=l,_=s):Sa(e)}}function Sa(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:ue||Vl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ue)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Re(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&aa(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}aa(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))}ue||t.flags&512&&fi(t)}catch(v){b(t,t.return,v)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function Ea(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 Ca(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vl(4,t)}catch(u){b(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){b(t,l,u)}}var s=t.return;try{fi(t)}catch(u){b(t,s,u)}break;case 5:var i=t.return;try{fi(t)}catch(u){b(t,i,u)}}}catch(u){b(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,Sl=lt.ReactCurrentDispatcher,so=lt.ReactCurrentOwner,Pe=lt.ReactCurrentBatchConfig,z=0,ne=null,X=null,le=0,je=0,an=Et(0),q=0,hr=null,Bt=0,Wl=0,io=0,Xn=null,he=null,oo=0,kn=1/0,Ge=null,El=!1,hi=null,gt=null,Wr=!1,dt=null,Cl=0,Jn=0,vi=null,tl=-1,nl=0;function fe(){return z&6?Y():tl!==-1?tl:tl=Y()}function xt(e){return e.mode&1?z&2&&le!==0?le&-le:wm.transition!==null?(nl===0&&(nl=Tu()),nl):(e=D,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,vi=null,Error(S(185));gr(e,n,r),(!(z&2)||e!==ne)&&(e===ne&&(!(z&2)&&(Wl|=n),q===4&&ut(e,le)),xe(e,r),n===1&&z===0&&!(t.mode&1)&&(kn=Y()+500,Al&&Ct()))}function xe(e,t){var n=e.callbackNode;wf(e,t);var r=ul(e,e===ne?le:0);if(r===0)n!==null&&zo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&zo(n),t===1)e.tag===0?km(_a.bind(null,e)):tc(_a.bind(null,e)),ym(function(){!(z&6)&&Ct()}),n=null;else{switch(Pu(r)){case 1:n=Mi;break;case 4:n=_u;break;case 16:n=al;break;case 536870912:n=$u;break;default:n=al}n=Zc(n,bc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bc(e,t){if(tl=-1,nl=0,z&6)throw Error(S(327));var n=e.callbackNode;if(pn()&&e.callbackNode!==n)return null;var r=ul(e,e===ne?le:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_l(e,r);else{t=r;var l=z;z|=2;var s=Yc();(ne!==e||le!==t)&&(Ge=null,kn=Y()+500,zt(e,t));do try{Vm();break}catch(a){Kc(e,a)}while(!0);bi(),Sl.current=s,z=l,X!==null?t=0:(ne=null,le=0,t=q)}if(t!==0){if(t===2&&(l=Ws(e),l!==0&&(r=l,t=yi(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=_l(e,r),t===2&&(s=Ws(e),s!==0&&(r=s,t=yi(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=oo+500-Y(),10<t)){if(ul(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){fe(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Js(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=Js(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?bc.bind(null,e):null}function yi(e,t){var n=Xn;return e.current.memoizedState.isDehydrated&&(zt(e,t).flags|=256),e=_l(e,t),e!==2&&(t=he,he=n,t!==null&&gi(t)),e}function gi(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&=~io,t&=~Wl,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 _a(e){if(z&6)throw Error(S(327));pn();var t=ul(e,0);if(!(t&1))return xe(e,Y()),null;var n=_l(e,t);if(e.tag!==0&&n===2){var r=Ws(e);r!==0&&(t=r,n=yi(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 ao(e,t){var n=z;z|=1;try{return e(t)}finally{z=n,z===0&&(kn=Y()+500,Al&&Ct())}}function Vt(e){dt!==null&&dt.tag===0&&!(z&6)&&pn();var t=z;z|=1;var n=Pe.transition,r=D;try{if(Pe.transition=null,D=1,e)return e()}finally{D=r,Pe.transition=n,z=t,!(z&6)&&Ct()}}function uo(){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)),X!==null)for(n=X.return;n!==null;){var r=n;switch(Wi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&pl();break;case 3:xn(),U(ye),U(ce),qi();break;case 5:Ji(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:uo()}n=n.return}if(ne=e,X=e=jt(e.current,null),le=je=t,q=0,hr=null,io=Wl=Bt=0,he=Xn=null,Lt!==null){for(t=0;t<Lt.length;t++)if(n=Lt[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}Lt=null}return e}function Kc(e,t){do{var n=X;try{if(bi(),qr.current=Nl,wl){for(var r=H.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}wl=!1}if(Ut=0,ee=J=H=null,Yn=!1,fr=0,so.current=null,n===null||n.return===null){q=1,hr=t,X=null;break}e:{var s=e,i=n.return,a=n,u=t;if(t=le,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 y=pa(i);if(y!==null){y.flags&=-257,ha(y,i,a,s,t),y.mode&1&&ma(s,d,t),t=y,u=d;var x=t.updateQueue;if(x===null){var g=new Set;g.add(u),t.updateQueue=g}else x.add(u);break e}else{if(!(t&1)){ma(s,d,t),co();break e}u=Error(S(426))}}else if(B&&a.mode&1){var k=pa(i);if(k!==null){!(k.flags&65536)&&(k.flags|=256),ha(k,i,a,s,t),Hi(jn(u,a));break e}}s=u=jn(u,a),q!==4&&(q=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);oa(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);oa(s,j);break e}}s=s.return}while(s!==null)}Xc(n)}catch(E){t=E,X===n&&n!==null&&(X=n=n.return);continue}break}while(!0)}function Yc(){var e=Sl.current;return Sl.current=Nl,e===null?Nl:e}function co(){(q===0||q===3||q===2)&&(q=4),ne===null||!(Bt&268435455)&&!(Wl&268435455)||ut(ne,le)}function _l(e,t){var n=z;z|=2;var r=Yc();(ne!==e||le!==t)&&(Ge=null,zt(e,t));do try{Bm();break}catch(l){Kc(e,l)}while(!0);if(bi(),z=n,Sl.current=r,X!==null)throw Error(S(261));return ne=null,le=0,q}function Bm(){for(;X!==null;)Gc(X)}function Vm(){for(;X!==null&&!mf();)Gc(X)}function Gc(e){var t=qc(e.alternate,e,je);e.memoizedProps=e.pendingProps,t===null?Xc(e):X=t,so.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,X=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{q=6,X=null;return}}else if(n=Rm(n,t,je),n!==null){X=n;return}if(t=t.sibling,t!==null){X=t;return}X=t=e}while(t!==null);q===0&&(q=5)}function Pt(e,t,n){var r=D,l=Pe.transition;try{Pe.transition=null,D=1,Wm(e,t,n,r)}finally{Pe.transition=l,D=r}return null}function Wm(e,t,n,r){do pn();while(dt!==null);if(z&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===ne&&(X=ne=null,le=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Wr||(Wr=!0,Zc(al,function(){return pn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Pe.transition,Pe.transition=null;var i=D;D=1;var a=z;z|=4,so.current=null,Dm(e,n),Hc(n,e),um(Gs),cl=!!Ys,Gs=Ys=null,e.current=n,Im(n),pf(),z=a,D=i,Pe.transition=s}else e.current=n;if(Wr&&(Wr=!1,dt=e,Cl=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(El)throw El=!1,e=hi,hi=null,e;return Cl&1&&e.tag!==0&&pn(),s=e.pendingLanes,s&1?e===vi?Jn++:(Jn=0,vi=e):Jn=0,Ct(),null}function pn(){if(dt!==null){var e=Pu(Cl),t=Pe.transition,n=D;try{if(Pe.transition=null,D=16>e?16:e,dt===null)var r=!1;else{if(e=dt,dt=null,Cl=0,z&6)throw Error(S(331));var l=z;for(z|=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,y=h.return;if(Bc(h),h===d){_=null;break}if(v!==null){v.return=y,_=v;break}_=y}}}var x=s.alternate;if(x!==null){var g=x.child;if(g!==null){x.child=null;do{var k=g.sibling;g.sibling=null,g=k}while(g!==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:Vl(9,a)}}catch(E){b(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(z=l,Ct(),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(Rl,e)}catch{}r=!0}return r}finally{D=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=fe(),e!==null&&(gr(e,1,t),xe(e,t))}function b(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=fe(),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=fe(),e.pingedLanes|=e.suspendedLanes&n,ne===e&&(le&n)===n&&(q===4||q===3&&(le&130023424)===le&&500>Y()-oo?zt(e,0):io|=n),xe(e,t)}function Jc(e,t){t===0&&(e.mode&1?(t=Mr,Mr<<=1,!(Mr&130023424)&&(Mr=4194304)):t=1);var n=fe();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 bm(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,Mm(e,t,n);ve=!!(e.flags&131072)}else ve=!1,B&&t.flags&1048576&&nc(t,yl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;el(e,t),e=t.pendingProps;var l=vn(t,ce.current);mn(t,n),l=eo(null,t,r,e,l,n);var s=to();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,hl(t)):s=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Gi(t),l.updater=Bl,t.stateNode=l,l._reactInternals=t,li(t,r,e,n),t=oi(null,t,r,!0,s,n)):(t.tag=0,B&&s&&Vi(t),de(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(el(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ym(r),e=Re(r,e),l){case 0:t=ii(null,t,r,e,n);break e;case 1:t=ga(null,t,r,e,n);break e;case 11:t=va(null,t,r,e,n);break e;case 14:t=ya(null,t,r,Re(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:Re(r,l),ii(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),ga(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),jl(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=xa(e,t,r,n,l);break e}else if(r!==l){l=jn(Error(S(424)),t),t=xa(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}de(e,t,r,n)}t=t.child}return t;case 5:return uc(t),e===null&&ti(t),r=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,i=l.children,Xs(r,l)?i=null:s!==null&&Xs(r,s)&&(t.flags|=32),Rc(e,t),de(e,t,i,n),t.child;case 6:return e===null&&ti(t),null;case 13:return Fc(e,t,n);case 4:return Xi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gn(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),va(e,t,r,l,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(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(gl,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),ni(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),ni(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}de(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,de(e,t,r,n),t.child;case 14:return r=t.type,l=Re(r,t.pendingProps),l=Re(r.type,l),ya(e,t,r,l,n);case 15:return Lc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Re(r,l),el(e,t),t.tag=1,ge(r)?(e=!0,hl(t)):e=!1,mn(t,n),Tc(t,r,l),li(t,r,l,n),oi(null,t,r,!0,e,n);case 19:return Dc(e,t,n);case 22:return Mc(e,t,n)}throw Error(S(156,t.tag))};function Zc(e,t){return Cu(e,t)}function Km(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 Km(e,t,n,r)}function fo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ym(e){if(typeof e=="function")return fo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pi)return 11;if(e===Oi)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 rl(e,t,n,r,l,s){var i=2;if(r=e,typeof e=="function")fo(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Jt:return Ft(n.children,l,s,t);case Ti:i=8,l|=8;break;case $s:return e=Te(12,n,t,l|2),e.elementType=$s,e.lanes=s,e;case Ts:return e=Te(13,n,t,l),e.elementType=Ts,e.lanes=s,e;case Ps:return e=Te(19,n,t,l),e.elementType=Ps,e.lanes=s,e;case uu:return Hl(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 Pi:i=11;break e;case Oi: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 Hl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=uu,e.lanes=n,e.stateNode={isHidden:!1},e}function Ns(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function Ss(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=ls(0),this.expirationTimes=ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ls(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function mo(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},Gi(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(bt(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=mo(n,r,!0,e,l,s,i,a,u),e.context=ed(null),n=e.current,r=fe(),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 Ql(e,t,n,r){var l=t.current,s=fe(),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),Jr(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 Ta(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function po(e,t){Ta(e,t),(e=e.alternate)&&Ta(e,t)}function Jm(){return null}var nd=typeof reportError=="function"?reportError:function(e){console.error(e)};function ho(e){this._internalRoot=e}bl.prototype.render=ho.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));Ql(e,t,null,null)};bl.prototype.unmount=ho.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vt(function(){Ql(null,e,null,null)}),t[tt]=null}};function bl(e){this._internalRoot=e}bl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mu();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 vo(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 Pa(){}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,"",Pa);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=mo(e,0,!1,null,null,!1,!1,"",Pa);return e._reactRootContainer=u,e[tt]=u.current,or(e.nodeType===8?e.parentNode:e),Vt(function(){Ql(t,u,n,r)}),u}function Yl(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)}}Ql(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()),!(z&6)&&(kn=Y()+500,Ct()))}break;case 13:Vt(function(){var r=nt(e,1);if(r!==null){var l=fe();Ie(r,e,1,l)}}),po(e,1)}};zi=function(e){if(e.tag===13){var t=nt(e,134217728);if(t!==null){var n=fe();Ie(t,e,134217728,n)}po(e,134217728)}};Lu=function(e){if(e.tag===13){var t=xt(e),n=nt(e,t);if(n!==null){var r=fe();Ie(n,e,t,r)}po(e,t)}};Mu=function(){return D};Ru=function(e,t){var n=D;try{return D=e,t()}finally{D=n}};Us=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=Il(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=ao;ku=Vt;var Zm={usingClientEntryPoint:!1,Events:[jr,tn,Il,gu,xu,ao]},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(!vo(t))throw Error(S(200));return Xm(e,t,null,n)};Se.createRoot=function(e,t){if(!vo(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=mo(e,1,!1,null,null,n,!1,r,l),e[tt]=t.current,or(e.nodeType===8?e.parentNode:e),new ho(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 Yl(null,e,t,!0,n)};Se.hydrateRoot=function(e,t,n){if(!vo(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 bl(t)};Se.render=function(e,t,n){if(!Kl(t))throw Error(S(200));return Yl(null,e,t,!1,n)};Se.unmountComponentAtNode=function(e){if(!Kl(e))throw Error(S(40));return e._reactRootContainer?(Vt(function(){Yl(null,null,e,!1,function(){e._reactRootContainer=null,e[tt]=null})}),!0):!1};Se.unstable_batchedUpdates=ao;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 Yl(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,Oa=tp;ld=Oa.createRoot,Oa.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 xi={"1h":36e5,"24h":864e5,"7d":7*864e5,"30d":30*864e5,"90d":90*864e5},Ce=e=>Object.assign(new Error(`telemetry: ${e}`),{status:400});function Kt(e,t=new Date){if(typeof e=="string"){const l=xi[e]??rp(e);if(l==null)throw Ce(`range "${e}" is not a known shorthand — use one of ${Object.keys(xi).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"&&xi[e]!=null)return e==="1h"||e==="24h"?"hour":e==="90d"?"week":"day";const{from:n,to:r}=Kt(e,t),l=r.getTime()-n.getTime();return l<=864e5?"hour":l<90*864e5?"day":"week"}const Tl={hour:0,day:1,week:2,month:3},La=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&&Tl[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=Kt(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)}),g=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`):Rt(e,{primitive:"distribution",args:[m,h,{measure:u[2]}],exactness:k,why:`${i} is approximate by construction ($percentile t-digest over the matched records)${g}`});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(", ")}`):Rt(e,{primitive:"breakdown",args:[m,h,{groupBy:a,measure:i,...e.interval?{interval:e.interval}:{},...e.limit?{limit:Pl(e.limit,l.breakdown)}:{}}],exactness:k,why:`raw ${i} by ${a.join(" × ")} over the range${g}`})}if(!e.measure&&!e.interval)return Rt(e,{primitive:"records",args:[m,h,e.limit?{limit:Pl(e.limit,l.records)}:{}],exactness:k,why:`the matching records themselves, newest first${g}`});const f=e.interval??sd(e.range,r);return Rt(e,{primitive:"series",args:[m,h,{measure:i,interval:f}],exactness:k,why:`raw ${i} per ${f} over the range${g}`})}const Pl=(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(!Ol(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:Kt(e.range,n),...e.subjectType?{subjectType:e.subjectType}:{},...e.interval?{interval:e.interval}:{},...e.limit?{limit:Pl(e.limit,r.funnel)}:{}};return Rt(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=>Ol(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=!Ol(u.feeders,[...i]);return Rt(e,{primitive:"distinctCount",args:[{as:u.as,subjectType:s,range:Kt(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=>Ol(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||Tl[f.bucket]>Tl[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),y=Kt(e.range,s),x=m.lifetime?"firstAt":"bucketAt",g=d.filter(f=>v.includes(f.dim));return Rt(e,{primitive:"rollups",args:[{as:m.as,on:x,range:y,sort:m.lifetime?"count":"bucketAt",...e.limit?{limit:Pl(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}:{},...g.length?{filters:g.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 Rt(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,...La(i)}},...r]}}:t}return{...t,previous:{args:[La(n),...r]}}}const Ol=(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 yo(e){const t=F=>{const T=Array.isArray(e[F])?e[F][0]:e[F];return typeof T=="string"&&T?T:void 0},n=F=>(t(F)??"").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&&Tl[v]==null)throw Ce(`\`interval\` must be one of hour, day, week, month — got "${v}"`);const y=t("sort");if(y&&!vp.has(y))throw Ce(`\`sort\` must be one of value, label, time — got "${y}"`);const x=t("compare");if(x&&x!=="previous")throw Ce(`\`compare\` takes only "previous" — got "${x}"`);const g=t("limit"),k=g==null?void 0:Number(g);if(k!=null&&(!Number.isInteger(k)||k<1))throw Ce(`\`limit\` must be a positive integer — got "${g}"`);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}:{},...y?{sort:y}:{},...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=y=>typeof y=="string"&&y?y: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[y,x]of Object.entries(n)){if(y===u||y==="rollup"||y==="excludeActorTypes")continue;if(y==="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 g=gp[y],k=r(x);g&&k&&d.push({dim:g,op:"eq",value:k})}const h=(t.groupBy??"").split(",").map(y=>y.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 ll={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"},za={fatal:"red",error:"red",warn:"amber",info:"blue",debug:""},kp=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),cd=new Intl.NumberFormat;function R(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):R(t)}function dd(e,t){return _n(Ll(e),t)}function Ll(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}=Kt(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 Fa(){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 te(e,t={},n=null){window.location.hash=qn(e,t,n)}function Da(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 Ia(e){if(!e)return null;try{return yo({source:e,range:"7d"}).source}catch{return null}}function Gl(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 yo(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 yo({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 G({label:e,value:t,delta:n,meta:r,deltaFormat:l=R}){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 Aa=["var(--blue)","var(--violet)","var(--green)","var(--amber)","var(--red)","var(--fg-subtle)"],Ua=["","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=R}){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),y=f=>a.t+(1-f/m)*(i-a.t-a.b),x=u.length===1&&!u[0].label,g=[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:Aa[c%Aa.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:y(m*f),y2:y(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)},${y(N.b.value).toFixed(1)}`).join(""),E=k(f,c),w=f.dashed?"5 3":Ua[c%Ua.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:y(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:[g.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:y(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 go({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:R(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,y)=>o.jsx("rect",{className:"chart-bar",x:y*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"},y)),[["p50",t,"var(--fg-subtle)"],["p95",n,"var(--amber)"],["p99",r,"var(--red)"]].filter(([,v])=>v!=null).map(([v,y,x])=>o.jsxs("g",{children:[o.jsx("line",{x1:h(y),x2:h(y),y1:0,y2:i-18,stroke:x,strokeDasharray:"3 2"}),o.jsxs("text",{x:h(y)+3,y:12,fontSize:"10",fill:x,children:[v," ",l(y)]})]},v))]})})}function md({kind:e}){return o.jsxs("span",{className:`pill ${jp[e]??""}`,children:[o.jsx("span",{className:"dot"}),e]})}function Lp(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:Lp(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} × ${R(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 Mp({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 Rp({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&&za[e.severity]!==void 0&&o.jsx("span",{className:`pill ${za[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(Mp,{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:[R(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:ll[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(e,t){return t===0?!1:e.pctOfPrevious!=null&&e.pctOfPrevious>100||e.medianDaysFromPrevious!=null&&e.medianDaysFromPrevious<0}function Fp({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:[R(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"]}),zp(r,l)&&o.jsx("span",{className:"pill amber",title:"This stage happens BEFORE the one above it, so its rate is measured against the wrong previous step. Reorder the stages.",children:"out of order"})]})]},r.key??r.label??l))})}function Dp({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:ll[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:ll[i.kind]}}):o.jsx("div",{className:"wf-dot",style:{left:`calc(${s(i)}% - 5px)`,background:ll[i.kind]}}),o.jsx("span",{className:"wf-dur",children:i.durationMs!=null?Wt(i.durationMs):""})]})]},i._id))})}function Ip({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:[R(i.n),i.avgMs!=null&&o.jsxs("span",{className:"dwell",children:[Wt(i.avgMs)," avg"]})]}):"·"},s)})]},l))})]})})}const Es=6,Ap=e=>String(e).replace(/^(attr|field):/,"");function Up(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(Ap)}function Bp(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<=Es)return n;const r=n.slice(Es),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,Es),{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 Vp(e){try{const{from:t,to:n}=Kt(e);return n.getTime()-t.getTime()}catch{return 0}}const ji=e=>(e??[]).reduce((t,n)=>t+n.value,0);function vd(e){if(!e)return{value:null,format:R,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:R,meta:"in cohort"};case"distribution":return{value:n.n?n.p95:null,format:i=>_n(Ll(l),i),meta:`${R(n.n??0)} sampled`};case"distinctCount":return{value:n.distinct??null,format:R,meta:"distinct in range"};case"records":return{value:(n.items??[]).length,format:R,meta:"latest page"};case"series":return{value:ji(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?`${R(n.groups??i.length)} groups`:"per group — see below"}}}}function Ba({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(G,{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(G,{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 Wp({data:e,onSelect:t,height:n}){var g;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(go,{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:[R(l.cohortSubjects??0)," subjects anchored on"," ",o.jsx("span",{className:"mono",children:(g=l.cohort)==null?void 0:g.anchor})]}),o.jsx(Fp,{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:R})]})]}))}if(r.primitive==="distribution"){const k=Ll(a);return d(o.jsx(Op,{...l,format:f=>_n(k,f)}),o.jsxs("span",{className:"tag",children:[R(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(G,{label:`Distinct ${Ll(a)}`,value:R(l.distinct??0),meta:"distinct in range"}),o.jsx(G,{label:`Peak per ${l.interval??"bucket"}`,value:R(Math.max(0,...(l.buckets??[]).map(k=>k.value)))})]}),o.jsx(Vn,{buckets:l.buckets,height:n,format:R})]}));if(r.primitive==="series"){const k=l.buckets??[],f=(s==null?void 0:s.buckets)??null,c=f?Vp(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(Ba,{now:ji(k),before:f?ji(f):null,fmt:u,plan:r}),o.jsx(Vn,{series:p,height:n,format:u})]}))}const h=l.rows??[],m=Up(e),v=a==="count"||a.startsWith("sum:"),y=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(Ba,{now:y(l),before:y(s),fmt:u,plan:r}),o.jsx(Vn,{series:Bp(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(G,{label:"Total",value:x.format(x.value),meta:x.meta}),o.jsx(G,{label:"Groups",value:R(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 Hp=[["overview","Overview","◎"],["errors","Errors","⚠"],["traces","Traces","⋔"],["events","Events","◷"],["explore","Explore","◈"],["journeys","Journeys","➾"],["usage","Usage","¤"],["system","System","⚙"]],Cs=12;function Qp({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:Hp.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,Cs).map(i),u.length>Cs&&o.jsxs("a",{className:"sidebar-link",href:qn("explore",{range:e.params.range??"7d"}),children:[o.jsx("span",{className:"icon",children:"…"}),"+",u.length-Cs," more"]})]})]},a)),o.jsxs("div",{className:"sidebar-footer",children:[o.jsx("span",{className:"dot"})," ",r?"live · all tenants":"live"]})]})}function bp({route:e,catalog:t,onSaveView:n,theme:r,onTheme:l,platform:s}){var d,h;const i=e.params,a=m=>te(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(y=>o.jsx("option",{value:y,children:y},y))},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 xo({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(()=>Gl(n,r),[n,r]),h=O.useMemo(()=>{var C,F;const w=new Map;for(const T of d)for(const ie of((F=(C=n==null?void 0:n.events)==null?void 0:C[T])==null?void 0:F.dims)??[]){const Ye=w.get(ie.key);w.set(ie.key,Ye?{...Ye,indexed:Ye.indexed&&ie.indexed}:ie)}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])),[y,x]=O.useState(!1),g=w=>te(t.page,_p(l,w),t.arg),k=(w,N)=>{const C=m.filter(F=>F.dim!==w);g(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=>y||v.has(w.key)).map(c),h.envelope.length>0&&o.jsx("button",{className:"filter-chip",onClick:()=>x(!y),children:y?"− 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:()=>te(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 Va={"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}`):Va[l.dim]&&(n[Va[l.dim]]=l.value));return{...n,...r.length?{attrs:r.join(",")}:{},...t}};function be(){return o.jsx("div",{className:"empty",children:"Loading…"})}function Ke({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(Rp,{record:e,onClose:()=>t(null),onTrace:r=>{t(null),te("traces",{},r)},onSubject:r=>{t(null),te("journeys",{},r)}})}}function Wa(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 Gl(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 Yp(e,t){var r;const n=new Map;for(const l of Gl(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 Ha(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)??jo(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),jo=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},Qa=(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 Gp(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 ko=(e,t,n)=>{const r=Gp(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?ko(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(be,{}):h.error?o.jsx(Ke,{error:h.error}):o.jsx(Wp,{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??Ia(u.source),h=O.useMemo(()=>new Date,[u.range,u.from,u.to]),m=O.useMemo(()=>d?Xp(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,te(r,{...p,...j},n.arg)},y=d?Kp(t,d):[],x=d?Yp(t,d):[],g=(m==null?void 0:m.groupBy)??[],k=c=>m?ko({...m,...c},t,h):null,f=(c,p)=>{const j=[...g];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:Da(d),onChange:c=>v({source:Ia(c.target.value),range:m.range,...m.interval?{interval:m.interval}:{}}),children:Wa(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,...Ha(t,m,c.target.value)}),children:y.map(c=>{const p=k(Ha(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:g[c]??"",onChange:p=>f(c,p.target.value||null),children:[o.jsx("option",{value:"",children:"—"}),x.map(p=>{const j=[...g];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(xo,{api:e,route:n,catalog:t,source:d}),o.jsx(Nt,{api:e,catalog:t,now:h,report:m,title:Da(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&&te(r,{range:u.range??"7d",source:c.target.value}),children:[o.jsx("option",{value:"",children:"choose a source…"}),Wa(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 Xp(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 Jp({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=jo(t),s=n.subjectType??l[0],i=Dt(t,s),a=(n.stages??[]).filter(g=>i.includes(g)),u=(n.exits??[]).filter(g=>i.includes(g)&&!a.includes(g)),[d,h]=O.useState(!1),m=(g,k={})=>r({...n,subjectType:s,stages:g,anchor:g[0],exits:u.filter(f=>!g.includes(f)),...k}),v=g=>m(a.includes(g)?a.filter(k=>k!==g):[...a,g]),y=(g,k)=>{const f=[...a],c=g+k;c<0||c>=f.length||([f[g],f[c]]=[f[c],f[g]],m(f))},x=async g=>{if(g==="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:g=>{const k=g.target.value;r({...n,subjectType:k,stages:Dt(t,k),anchor:Dt(t,k)[0],exits:void 0})},children:l.map(g=>o.jsx("option",{value:g,children:g},g))})]}),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((g,k)=>o.jsxs("div",{className:"hstack",children:[o.jsx("span",{className:"tag",children:k+1}),o.jsx("span",{className:"grow mono text-xs",children:g}),o.jsx("button",{className:"icon-btn",onClick:()=>y(k,-1),disabled:k===0,title:"earlier",children:"↑"}),o.jsx("button",{className:"icon-btn",onClick:()=>y(k,1),disabled:k===a.length-1,title:"later",children:"↓"}),o.jsx("button",{className:"icon-btn",onClick:()=>v(g),title:"remove",children:"✕"})]},g)),!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(g=>o.jsx("button",{className:`filter-chip ${a.includes(g)?"active":""}`,onClick:()=>v(g),children:g},g))]}),o.jsxs("div",{className:"hstack",style:{flexWrap:"wrap"},children:[o.jsx("span",{className:"subtle text-xs",children:"exits"}),i.filter(g=>!a.includes(g)).map(g=>o.jsx("button",{className:`filter-chip ${u.includes(g)?"active":""}`,onClick:()=>r({...n,subjectType:s,exits:u.includes(g)?u.filter(k=>k!==g):[...u,g]}),children:g},g)),i.length===a.length&&o.jsx("span",{className:"subtle text-xs",children:"every family is a stage"})]})]})}function qp(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)ko(d,e,n)||u.startsWith("Active ")&&a++||i.push({label:u,report:d});return i}function Zp({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(G,{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(()=>qp(n,l,s),[n,l,s]),a=xd(n),u=Yt(),d=Qe(async()=>{const[v,y]=await Promise.all([a?e.rollups({as:a,sort:"lastAt",limit:8}):null,e.records(Er(r,{limit:12}))]);return{issues:v,recent:y}},[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(Zp,{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(be,{}),d.error&&o.jsx(Ke,{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:()=>te("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 eh({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(be,{}):u.error?o.jsx(Ke,{error:u.error}):o.jsxs(o.Fragment,{children:[o.jsx(xo,{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(go,{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 th(e){return e.route.arg?o.jsx(rh,{api:e.api,traceId:e.route.arg}):o.jsx(nh,{...e})}function nh({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(be,{}):a.error?o.jsx(Ke,{error:a.error}):o.jsxs(o.Fragment,{children:[o.jsx(xo,{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?te("traces",{},u.traceId):i.open(u)})})]}),i.drawer]})}function rh({api:e,traceId:t}){const n=Yt(),r=Qe(()=>e.trace(t),[t]);if(r.loading)return o.jsx(be,{});if(r.error)return o.jsx(Ke,{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:()=>te("traces"),children:"← all traces"})})]}),o.jsx("div",{className:"card chart-card",children:o.jsx(Dp,{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 lh({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(be,{}):s.error?o.jsx(Ke,{error:s.error}):o.jsx($n,{items:s.data.items,onSelect:l.open})})]}),l.drawer]})}function sh(e){return e.route.arg?o.jsx(ah,{api:e.api,subjectRef:e.route.arg,route:e.route}):o.jsx(ih,{...e})}function ih({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=jo(n),m=r.subjectType??h[0],v=String(r.stages??"").split(",").map(k=>k.trim()).filter(Boolean),y=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=>{te("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 g=k=>{const f={...r};for(const c of kd)delete f[c];te("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(":")&&te("journeys",r,u)}),o.jsx("button",{className:"btn btn-primary btn-sm",disabled:!u.includes(":"),onClick:()=>te("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:y??{source:{family:Dt(n,m)[0]},range:l,measure:"funnel",subjectType:m},apply:g})})]}),y&&o.jsx(Nt,{api:e,catalog:n,now:s,title:`Funnel · ${m}`,sub:`anchored on ${y.anchor}`,report:y}),a&&o.jsx(oh,{api:e,route:t,family:a,families:i})]})}function oh({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(be,{});if(s.error)return o.jsx(Ke,{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(),y=h.get(v)??{at:m.bucketAt,value:0};return y.value+=a.length?((x=m.sums)==null?void 0:x[a[0]])??0:m.count,h.set(v,y)},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=>te("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(go,{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&&te("journeys",l,m)}})]})]})}function ah({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(be,{});if(s.error)return o.jsx(Ke,{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:()=>te("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(Ip,{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 uh({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=Qa(n,"usage",".meter"),d=Qa(n,"usage",".billedTo"),h=Gl(n,{kind:"usage"}),m=Qe(async()=>{const[x,g]=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:g}},[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)),y={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(be,{}),m.error&&o.jsx(Ke,{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,g)=>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}];te("usage",{...r,filter:f.map(c=>`${c.dim}:${c.op}:${c.value}`)})},children:[x,m.data.meters.counts?` · ${R(m.data.meters.counts[g])}`:""]},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:{...y,...u?{groupBy:[u.key]}:{},interval:Nr(l)}}),d&&o.jsx(Nt,{api:e,catalog:n,now:s,title:"By billed-to",report:{...y,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 ch({api:e}){const[t,n]=O.useState(0),r=Qe(()=>e.system(),[t]);if(r.loading)return o.jsx(be,{});if(r.error)return o.jsx(Ke,{error:r.error});const{counters:l,quarantine:s,indexCount:i,indexBudget:a,keys:u,role:d,suggestions:h}=r.data,m=y=>l[y]??0,v=m("subjectsLinked")+m("subjectLinkMisses")+m("subjectLinkErrors")+m("subjectLinkTimeouts")+m("subjectLinkUndeclared")+m("subjectLinkCapped");return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"kpis",style:{gridTemplateColumns:"repeat(7, 1fr)"},children:[o.jsx(G,{label:"rejected",value:R(l.rejected),meta:"quarantined"}),o.jsx(G,{label:"sampled",value:R(l.sampled),meta:"dropped by rate"}),o.jsx(G,{label:"capped",value:R(l.capped),meta:"burst/rate caps"}),o.jsx(G,{label:"deduped",value:R(l.deduped),meta:"idempotent replays"}),o.jsx(G,{label:"truncated",value:R(l.truncated),meta:"body over cap"}),o.jsx(G,{label:"defaulted",value:R(l.defaulted),meta:"missing service/release"}),o.jsx(G,{label:"indexes",value:`${i}`,meta:`payload budget ${a}`})]}),v>0&&o.jsxs("div",{className:"kpis",style:{gridTemplateColumns:"repeat(6, 1fr)"},children:[o.jsx(G,{label:"linked",value:R(m("subjectsLinked")),meta:"subjects added on write"}),o.jsx(G,{label:"link misses",value:R(m("subjectLinkMisses")),meta:"host knew of no link"}),o.jsx(G,{label:"link errors",value:R(m("subjectLinkErrors")),meta:"threw or answered garbage"}),o.jsx(G,{label:"link timeouts",value:R(m("subjectLinkTimeouts")),meta:"written unlinked"}),o.jsx(G,{label:"link undeclared",value:R(m("subjectLinkUndeclared")),meta:"type not in the registry"}),o.jsx(G,{label:"link capped",value:R(m("subjectLinkCapped")),meta:"over the subject cap"})]}),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(Qr,{title:"Rollups skipped",sub:"a dim was missing, so no aggregate was written",map:l.rollupSkippedBy,columns:["family","dim"]}),o.jsx(Qr,{title:"Undeclared attrs",sub:"sent, not declared — the key was stripped and the record kept",map:l.undeclaredAttrs,columns:["event","attr"]}),o.jsx(Qr,{title:"Dropped attrs",sub:"removed so the record could be written — undeclared, or a value outside the schema",map:l.attrsDropped,columns:["event","attr"]}),o.jsx(Qr,{title:"Dropped metrics",sub:"same, for metrics — a non-zero row here is the registry drifting behind a client",map:l.metricsDropped,columns:["event","metric"]})]}),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(y=>({...y,id:y._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:y=>y.revokedAt?o.jsx("span",{className:"pill red",children:"revoked"}):o.jsx("button",{className:"btn btn-danger btn-sm",onClick:x=>{x.stopPropagation(),window.confirm(`Revoke ${y._id}? Writers using it start dropping within 60s.`)&&e.revokeKey(y._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((y,x)=>({id:x,at:y.at,name:y.name,reason:y.reason})),columns:[{key:"at",label:"when",render:y=>Nn(y.at)},{key:"name",mono:!0},{key:"reason"}],empty:"Quarantine is empty"})})]})]})}function Qr({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 dh={overview:Ed,errors:eh,traces:th,events:lh,explore:Jp,journeys:sh,usage:uh,system:ch};function fh(){const[e,t]=O.useState(Fa);return O.useEffect(()=>{const n=()=>t(Fa());return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]),e}function mh({config:e}){const t=O.useMemo(()=>np(e),[e]),n=fh(),[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(g=>{l(g.catalog),i({platform:!!g.platform,scope:g.scope??null})},h),t.views().then(g=>u(g.views),()=>{})},[t]);const y=async()=>{const g=window.prompt("View name — it will appear in the sidebar:");if(!g)return;const k=window.confirm("Share with the whole tenant? (Cancel = private to you)"),f=Ep(n);await t.saveView({name:g,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=dh[n.page]??Ed;return o.jsx(Sr.Provider,{value:s,children:o.jsxs("div",{className:"app",children:[o.jsx(Qp,{route:n,views:a,title:e.title,platform:s.platform}),o.jsxs("div",{className:"main",children:[o.jsx(bp,{route:n,catalog:r,onSaveView:y,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 ph=window.__TELEMETRY__??{apiBase:"/telemetry/api",mountPath:"/telemetry",title:"Telemetry"};ld(document.getElementById("telemetry-root")).render(o.jsx(O.StrictMode,{children:o.jsx(mh,{config:ph})}));
41
+ //# sourceMappingURL=index-BksXA5iG.js.map