diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 1f76e09..0193df4 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -45,7 +45,7 @@ jobs: - name: Test uses: magefile/mage-action@v3 with: - version: latest + version: v1.14.0 args: test - name: Upload Coverage diff --git a/.golangci.yml b/.golangci.yml index cdd1054..b8b20f5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,7 @@ -# v1.55.2 +# v1.57.2 # Please don't remove the first line. It uses in CI to determine the golangci version run: - deadline: 5m + timeout: 5m issues: # Maximum issues count per one linter. Set to 0 to disable. Default is 50. @@ -24,6 +24,11 @@ issues: - gocognit - funlen - lll + - forcetypeassert + - path: js\/modules\/k6\/html\/.*\.go + text: "exported: exported " + linters: + - revive - path: js\/modules\/k6\/http\/.*_test\.go linters: # k6/http module's tests are quite complex because they often have several nested levels. @@ -38,17 +43,10 @@ issues: text: 'use of `os\.(SyscallError|Signal|Interrupt)` forbidden' linters-settings: - nolintlint: - # Disable to ensure that nolint directives don't have a leading space. Default is true. - allow-leading-space: false exhaustive: default-signifies-exhaustive: true - govet: - check-shadowing: true cyclop: max-complexity: 25 - maligned: - suggest-new: true dupl: threshold: 150 goconst: diff --git a/dashboard/assets/packages/ui/dist/assets/index-5a43f090.js b/dashboard/assets/packages/ui/dist/assets/index-5a43f090.js deleted file mode 100644 index b632b8b..0000000 --- a/dashboard/assets/packages/ui/dist/assets/index-5a43f090.js +++ /dev/null @@ -1,50 +0,0 @@ -var Qv=Object.defineProperty;var Zv=(e,t,n)=>t in e?Qv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>(Zv(e,typeof t!="symbol"?t+"":t,n),n);(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 i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var Jv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var oh={exports:{}},ha={},sh={exports:{}},we={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Mo=Symbol.for("react.element"),eg=Symbol.for("react.portal"),tg=Symbol.for("react.fragment"),ng=Symbol.for("react.strict_mode"),rg=Symbol.for("react.profiler"),lg=Symbol.for("react.provider"),ig=Symbol.for("react.context"),og=Symbol.for("react.forward_ref"),sg=Symbol.for("react.suspense"),ag=Symbol.for("react.memo"),ug=Symbol.for("react.lazy"),$d=Symbol.iterator;function cg(e){return e===null||typeof e!="object"?null:(e=$d&&e[$d]||e["@@iterator"],typeof e=="function"?e:null)}var ah={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uh=Object.assign,ch={};function ci(e,t,n){this.props=e,this.context=t,this.refs=ch,this.updater=n||ah}ci.prototype.isReactComponent={};ci.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")};ci.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fh(){}fh.prototype=ci.prototype;function Yc(e,t,n){this.props=e,this.context=t,this.refs=ch,this.updater=n||ah}var Qc=Yc.prototype=new fh;Qc.constructor=Yc;uh(Qc,ci.prototype);Qc.isPureReactComponent=!0;var Hd=Array.isArray,dh=Object.prototype.hasOwnProperty,Zc={current:null},ph={key:!0,ref:!0,__self:!0,__source:!0};function hh(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)dh.call(t,r)&&!ph.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,Y=q[re];if(0>>1;rel(pe,G))Lel(Ue,pe)?(q[re]=Ue,q[Le]=G,re=Le):(q[re]=pe,q[X]=G,re=X);else if(Lel(Ue,G))q[re]=Ue,q[Le]=G,re=Le;else break e}}return J}function l(q,J){var G=q.sortIndex-J.sortIndex;return G!==0?G:q.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],c=1,p=null,d=3,g=!1,_=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(q){for(var J=n(a);J!==null;){if(J.callback===null)r(a);else if(J.startTime<=q)r(a),J.sortIndex=J.expirationTime,t(u,J);else break;J=n(a)}}function T(q){if(x=!1,w(q),!_)if(n(u)!==null)_=!0,fe(O);else{var J=n(a);J!==null&&ne(T,J.startTime-q)}}function O(q,J){_=!1,x&&(x=!1,y(L),L=-1),g=!0;var G=d;try{for(w(J),p=n(u);p!==null&&(!(p.expirationTime>J)||q&&!z());){var re=p.callback;if(typeof re=="function"){p.callback=null,d=p.priorityLevel;var Y=re(p.expirationTime<=J);J=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(u)&&r(u),w(J)}else r(u);p=n(u)}if(p!==null)var me=!0;else{var X=n(a);X!==null&&ne(T,X.startTime-J),me=!1}return me}finally{p=null,d=G,g=!1}}var R=!1,M=null,L=-1,I=5,b=-1;function z(){return!(e.unstable_now()-bq||125re?(q.sortIndex=G,t(a,q),n(u)===null&&q===n(a)&&(x?(y(L),L=-1):x=!0,ne(T,G-re))):(q.sortIndex=Y,t(u,q),_||g||(_=!0,fe(O))),q},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(q){var J=d;return function(){var G=d;d=J;try{return q.apply(this,arguments)}finally{d=G}}}})(yh);gh.exports=yh;var xg=gh.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var wh=U,sn=xg;function $(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=Object.prototype.hasOwnProperty,kg=/^[: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]*$/,Ud={},Wd={};function Sg(e){return Uu.call(Wd,e)?!0:Uu.call(Ud,e)?!1:kg.test(e)?Wd[e]=!0:(Ud[e]=!0,!1)}function Eg(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 Cg(e,t,n,r){if(t===null||typeof t>"u"||Eg(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 Ut(e,t,n,r,l,i,o){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=i,this.removeEmptyString=o}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new Ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Lt[t]=new Ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new Ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new Ut(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){Lt[e]=new Ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new Ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new Ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new Ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new Ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xc=/[\-:]([a-z])/g;function ef(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(Xc,ef);Lt[t]=new Ut(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(Xc,ef);Lt[t]=new Ut(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(Xc,ef);Lt[t]=new Ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new Ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new Ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new Ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function tf(e,t,n,r){var l=Lt.hasOwnProperty(t)?Lt[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var u=` -`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{cu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hi(e):""}function Tg(e){switch(e.tag){case 5:return Hi(e.type);case 16:return Hi("Lazy");case 13:return Hi("Suspense");case 19:return Hi("SuspenseList");case 0:case 2:case 15:return e=fu(e.type,!1),e;case 11:return e=fu(e.type.render,!1),e;case 1:return e=fu(e.type,!0),e;default:return""}}function Gu(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 Ol:return"Fragment";case Pl:return"Portal";case Wu:return"Profiler";case nf:return"StrictMode";case qu:return"Suspense";case Ku:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kh:return(e.displayName||"Context")+".Consumer";case xh:return(e._context.displayName||"Context")+".Provider";case rf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lf:return t=e.displayName||null,t!==null?t:Gu(e.type)||"Memo";case _r:t=e._payload,e=e._init;try{return Gu(e(t))}catch{}}return null}function Pg(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 Gu(t);case 8:return t===nf?"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 br(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Og(e){var t=Eh(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function es(e){e._valueTracker||(e._valueTracker=Og(e))}function Ch(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Eh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fs(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 Yu(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Kd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=br(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 Th(e,t){t=t.checked,t!=null&&tf(e,"checked",t,!1)}function Qu(e,t){Th(e,t);var n=br(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")?Zu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zu(e,t.type,br(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gd(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 Zu(e,t,n){(t!=="number"||Fs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vi=Array.isArray;function Il(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ts.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yi={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},Ng=["Webkit","ms","Moz","O"];Object.keys(Yi).forEach(function(e){Ng.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yi[t]=Yi[e]})});function Mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yi.hasOwnProperty(e)&&Yi[e]?(""+t).trim():t+"px"}function Rh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Mg=Ye({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 ec(e,t){if(t){if(Mg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function tc(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 nc=null;function of(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rc=null,Bl=null,$l=null;function Zd(e){if(e=jo(e)){if(typeof rc!="function")throw Error($(280));var t=e.stateNode;t&&(t=wa(t),rc(e.stateNode,e.type,t))}}function Lh(e){Bl?$l?$l.push(e):$l=[e]:Bl=e}function jh(){if(Bl){var e=Bl,t=$l;if($l=Bl=null,Zd(e),t)for(e=0;e>>=0,e===0?32:31-($g(e)/Hg|0)|0}var ns=64,rs=4194304;function Ui(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 Hs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=Ui(s):(i&=o,i!==0&&(r=Ui(i)))}else o=n&~l,o!==0?r=Ui(o):i!==0&&(r=Ui(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ro(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bn(t),e[t]=n}function qg(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=Zi),op=String.fromCharCode(32),sp=!1;function Xh(e,t){switch(e){case"keyup":return _y.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function ky(e,t){switch(e){case"compositionend":return em(t);case"keypress":return t.which!==32?null:(sp=!0,op);case"textInput":return e=t.data,e===op&&sp?null:e;default:return null}}function Sy(e,t){if(Nl)return e==="compositionend"||!hf&&Xh(e,t)?(e=Zh(),Cs=ff=Cr=null,Nl=!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)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=fp(n)}}function lm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(){for(var e=window,t=Fs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fs(e.document)}return t}function mf(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 Ly(e){var t=im(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lm(n.ownerDocument.documentElement,n)){if(r!==null&&mf(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,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=dp(n,i);var o=dp(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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=document.documentMode,Ml=null,uc=null,Xi=null,cc=!1;function pp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cc||Ml==null||Ml!==Fs(r)||(r=Ml,"selectionStart"in r&&mf(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}),Xi&&vo(Xi,r)||(Xi=r,r=Ws(uc,"onSelect"),0jl||(e.current=vc[jl],vc[jl]=null,jl--)}function Ae(e,t){jl++,vc[jl]=e.current,e.current=t}var Dr={},zt=Fr(Dr),Gt=Fr(!1),ll=Dr;function Kl(e,t){var n=e.type.contextTypes;if(!n)return Dr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Yt(e){return e=e.childContextTypes,e!=null}function Ks(){Ie(Gt),Ie(zt)}function _p(e,t,n){if(zt.current!==Dr)throw Error($(168));Ae(zt,t),Ae(Gt,n)}function hm(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($(108,Pg(e)||"Unknown",l));return Ye({},n,r)}function Gs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dr,ll=zt.current,Ae(zt,e),Ae(Gt,Gt.current),!0}function xp(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=hm(e,t,ll),r.__reactInternalMemoizedMergedChildContext=e,Ie(Gt),Ie(zt),Ae(zt,e)):Ie(Gt),Ae(Gt,n)}var tr=null,_a=!1,Cu=!1;function mm(e){tr===null?tr=[e]:tr.push(e)}function Uy(e){_a=!0,mm(e)}function Ir(){if(!Cu&&tr!==null){Cu=!0;var e=0,t=Re;try{var n=tr;for(Re=1;e>=o,l-=o,nr=1<<32-bn(t)+l|n<L?(I=M,M=null):I=M.sibling;var b=d(y,M,w[L],T);if(b===null){M===null&&(M=I);break}e&&M&&b.alternate===null&&t(y,M),v=i(b,v,L),R===null?O=b:R.sibling=b,R=b,M=I}if(L===w.length)return n(y,M),Ve&&Wr(y,L),O;if(M===null){for(;LL?(I=M,M=null):I=M.sibling;var z=d(y,M,b.value,T);if(z===null){M===null&&(M=I);break}e&&M&&z.alternate===null&&t(y,M),v=i(z,v,L),R===null?O=z:R.sibling=z,R=z,M=I}if(b.done)return n(y,M),Ve&&Wr(y,L),O;if(M===null){for(;!b.done;L++,b=w.next())b=p(y,b.value,T),b!==null&&(v=i(b,v,L),R===null?O=b:R.sibling=b,R=b);return Ve&&Wr(y,L),O}for(M=r(y,M);!b.done;L++,b=w.next())b=g(M,y,L,b.value,T),b!==null&&(e&&b.alternate!==null&&M.delete(b.key===null?L:b.key),v=i(b,v,L),R===null?O=b:R.sibling=b,R=b);return e&&M.forEach(function(H){return t(y,H)}),Ve&&Wr(y,L),O}function P(y,v,w,T){if(typeof w=="object"&&w!==null&&w.type===Ol&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Xo:e:{for(var O=w.key,R=v;R!==null;){if(R.key===O){if(O=w.type,O===Ol){if(R.tag===7){n(y,R.sibling),v=l(R,w.props.children),v.return=y,y=v;break e}}else if(R.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===_r&&Op(O)===R.type){n(y,R.sibling),v=l(R,w.props),v.ref=Di(y,R,w),v.return=y,y=v;break e}n(y,R);break}else t(y,R);R=R.sibling}w.type===Ol?(v=el(w.props.children,y.mode,T,w.key),v.return=y,y=v):(T=js(w.type,w.key,w.props,null,y.mode,T),T.ref=Di(y,v,w),T.return=y,y=T)}return o(y);case Pl:e:{for(R=w.key;v!==null;){if(v.key===R)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(y,v.sibling),v=l(v,w.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=ju(w,y.mode,T),v.return=y,y=v}return o(y);case _r:return R=w._init,P(y,v,R(w._payload),T)}if(Vi(w))return _(y,v,w,T);if(Ri(w))return x(y,v,w,T);cs(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(y,v.sibling),v=l(v,w),v.return=y,y=v):(n(y,v),v=Lu(w,y.mode,T),v.return=y,y=v),o(y)):n(y,v)}return P}var Yl=Sm(!0),Em=Sm(!1),Ao={},Wn=Fr(Ao),_o=Fr(Ao),xo=Fr(Ao);function Jr(e){if(e===Ao)throw Error($(174));return e}function Ef(e,t){switch(Ae(xo,t),Ae(_o,e),Ae(Wn,Ao),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xu(t,e)}Ie(Wn),Ae(Wn,t)}function Ql(){Ie(Wn),Ie(_o),Ie(xo)}function Cm(e){Jr(xo.current);var t=Jr(Wn.current),n=Xu(t,e.type);t!==n&&(Ae(_o,e),Ae(Wn,n))}function Cf(e){_o.current===e&&(Ie(Wn),Ie(_o))}var Ke=Fr(0);function ea(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 Tu=[];function Tf(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{Re=n,Pu.transition=r}}function $m(){return kn().memoizedState}function Gy(e,t,n){var r=jr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hm(e))Vm(t,n);else if(n=wm(e,t,n,r),n!==null){var l=Ht();Dn(n,e,r,l),Um(n,t,r)}}function Yy(e,t,n){var r=jr(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hm(e))Vm(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,zn(s,o)){var u=t.interleaved;u===null?(l.next=l,kf(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=wm(e,t,l,r),n!==null&&(l=Ht(),Dn(n,e,r,l),Um(n,t,r))}}function Hm(e){var t=e.alternate;return e===Ge||t!==null&&t===Ge}function Vm(e,t){eo=ta=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Um(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}var na={readContext:xn,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},Qy={readContext:xn,useCallback:function(e,t){return Hn().memoizedState=[e,t===void 0?null:t],e},useContext:xn,useEffect:Mp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ns(4194308,4,Dm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ns(4,2,e,t)},useMemo:function(e,t){var n=Hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Hn();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=Gy.bind(null,Ge,e),[r.memoizedState,e]},useRef:function(e){var t=Hn();return e={current:e},t.memoizedState=e},useState:Np,useDebugValue:Rf,useDeferredValue:function(e){return Hn().memoizedState=e},useTransition:function(){var e=Np(!1),t=e[0];return e=Ky.bind(null,e[1]),Hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ge,l=Hn();if(Ve){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),kt===null)throw Error($(349));ol&30||Om(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Mp(Mm.bind(null,r,i,e),[e]),r.flags|=2048,Eo(9,Nm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Hn(),t=kt.identifierPrefix;if(Ve){var n=rr,r=nr;n=(r&~(1<<32-bn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ko++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Vn]=t,e[wo]=r,Xm(e,t,!1,!1),t.stateNode=e;e:{switch(o=tc(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),l=r;break;case"iframe":case"object":case"embed":Fe("load",e),l=r;break;case"video":case"audio":for(l=0;lJl&&(t.flags|=128,r=!0,zi(i,!1),t.lanes=4194304)}else{if(!r)if(e=ea(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ve)return bt(t),null}else 2*et()-i.renderingStartTime>Jl&&n!==1073741824&&(t.flags|=128,r=!0,zi(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=et(),t.sibling=null,n=Ke.current,Ae(Ke,r?n&1|2:n&1),t):(bt(t),null);case 22:case 23:return zf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tn&1073741824&&(bt(t),t.subtreeFlags&6&&(t.flags|=8192)):bt(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function l2(e,t){switch(gf(t),t.tag){case 1:return Yt(t.type)&&Ks(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ql(),Ie(Gt),Ie(zt),Tf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cf(t),null;case 13:if(Ie(Ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ie(Ke),null;case 4:return Ql(),null;case 10:return xf(t.type._context),null;case 22:case 23:return zf(),null;case 24:return null;default:return null}}var ds=!1,Dt=!1,i2=typeof WeakSet=="function"?WeakSet:Set,ee=null;function zl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Je(e,t,r)}else n.current=null}function Oc(e,t,n){try{n()}catch(r){Je(e,t,r)}}var Ip=!1;function o2(e,t){if(fc=Vs,e=im(),mf(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,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,a=0,c=0,p=e,d=null;t:for(;;){for(var g;p!==n||l!==0&&p.nodeType!==3||(s=o+l),p!==i||r!==0&&p.nodeType!==3||(u=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(g=p.firstChild)!==null;)d=p,p=g;for(;;){if(p===e)break t;if(d===n&&++a===l&&(s=o),d===i&&++c===r&&(u=o),(g=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(dc={focusedElem:e,selectionRange:n},Vs=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var x=_.memoizedProps,P=_.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ln(t.type,x),P);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(T){Je(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return _=Ip,Ip=!1,_}function to(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 i=l.destroy;l.destroy=void 0,i!==void 0&&Oc(t,n,i)}l=l.next}while(l!==r)}}function Sa(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 Nc(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 n1(e){var t=e.alternate;t!==null&&(e.alternate=null,n1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vn],delete t[wo],delete t[mc],delete t[Hy],delete t[Vy])),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 r1(e){return e.tag===5||e.tag===3||e.tag===4}function Bp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||r1(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 Mc(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=qs));else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}function Rc(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(Rc(e,t,n),e=e.sibling;e!==null;)Rc(e,t,n),e=e.sibling}var Mt=null,jn=!1;function yr(e,t,n){for(n=n.child;n!==null;)l1(e,t,n),n=n.sibling}function l1(e,t,n){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(ma,n)}catch{}switch(n.tag){case 5:Dt||zl(n,t);case 6:var r=Mt,l=jn;Mt=null,yr(e,t,n),Mt=r,jn=l,Mt!==null&&(jn?(e=Mt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Mt.removeChild(n.stateNode));break;case 18:Mt!==null&&(jn?(e=Mt,n=n.stateNode,e.nodeType===8?Eu(e.parentNode,n):e.nodeType===1&&Eu(e,n),ho(e)):Eu(Mt,n.stateNode));break;case 4:r=Mt,l=jn,Mt=n.stateNode.containerInfo,jn=!0,yr(e,t,n),Mt=r,jn=l;break;case 0:case 11:case 14:case 15:if(!Dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Oc(n,t,o),l=l.next}while(l!==r)}yr(e,t,n);break;case 1:if(!Dt&&(zl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Je(n,t,s)}yr(e,t,n);break;case 21:yr(e,t,n);break;case 22:n.mode&1?(Dt=(r=Dt)||n.memoizedState!==null,yr(e,t,n),Dt=r):yr(e,t,n);break;default:yr(e,t,n)}}function $p(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new i2),t.forEach(function(r){var l=m2.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Mn(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*a2(r/1960))-r,10e?16:e,Tr===null)var r=!1;else{if(e=Tr,Tr=null,ia=0,Se&6)throw Error($(331));var l=Se;for(Se|=4,ee=e.current;ee!==null;){var i=ee,o=i.child;if(ee.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uet()-bf?Xr(e,0):Af|=n),Qt(e,t)}function d1(e,t){t===0&&(e.mode&1?(t=rs,rs<<=1,!(rs&130023424)&&(rs=4194304)):t=1);var n=Ht();e=ur(e,t),e!==null&&(Ro(e,t,n),Qt(e,n))}function h2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),d1(e,n)}function m2(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($(314))}r!==null&&r.delete(t),d1(e,n)}var p1;p1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)Kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kt=!1,n2(e,t,n);Kt=!!(e.flags&131072)}else Kt=!1,Ve&&t.flags&1048576&&vm(t,Qs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ms(e,t),e=t.pendingProps;var l=Kl(t,zt.current);Vl(t,n),l=Of(null,t,r,e,l,n);var i=Nf();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,Yt(r)?(i=!0,Gs(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Sf(t),l.updater=xa,t.stateNode=l,l._reactInternals=t,xc(t,r,e,n),t=Ec(null,t,r,!0,i,n)):(t.tag=0,Ve&&i&&vf(t),$t(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ms(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=g2(r),e=Ln(r,e),l){case 0:t=Sc(null,t,r,e,n);break e;case 1:t=Dp(null,t,r,e,n);break e;case 11:t=Ap(null,t,r,e,n);break e;case 14:t=bp(null,t,r,Ln(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Sc(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Dp(e,t,r,l,n);case 3:e:{if(Qm(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,l=i.element,_m(e,t),Xs(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Zl(Error($(423)),t),t=zp(e,t,r,n,l);break e}else if(r!==l){l=Zl(Error($(424)),t),t=zp(e,t,r,n,l);break e}else for(rn=Mr(t.stateNode.containerInfo.firstChild),ln=t,Ve=!0,An=null,n=Em(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gl(),r===l){t=cr(e,t,n);break e}$t(e,t,r,n)}t=t.child}return t;case 5:return Cm(t),e===null&&yc(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,pc(r,l)?o=null:i!==null&&pc(r,i)&&(t.flags|=32),Ym(e,t),$t(e,t,o,n),t.child;case 6:return e===null&&yc(t),null;case 13:return Zm(e,t,n);case 4:return Ef(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yl(t,null,r,n):$t(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Ap(e,t,r,l,n);case 7:return $t(e,t,t.pendingProps,n),t.child;case 8:return $t(e,t,t.pendingProps.children,n),t.child;case 12:return $t(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,Ae(Zs,r._currentValue),r._currentValue=o,i!==null)if(zn(i.value,o)){if(i.children===l.children&&!Gt.current){t=cr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=lr(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),wc(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error($(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),wc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}$t(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Vl(t,n),l=xn(l),r=r(l),t.flags|=1,$t(e,t,r,n),t.child;case 14:return r=t.type,l=Ln(r,t.pendingProps),l=Ln(r.type,l),bp(e,t,r,l,n);case 15:return Km(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ln(r,l),Ms(e,t),t.tag=1,Yt(r)?(e=!0,Gs(t)):e=!1,Vl(t,n),km(t,r,l),xc(t,r,l,n),Ec(null,t,r,!0,e,n);case 19:return Jm(e,t,n);case 22:return Gm(e,t,n)}throw Error($(156,t.tag))};function h1(e,t){return Bh(e,t)}function v2(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 yn(e,t,n,r){return new v2(e,t,n,r)}function If(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g2(e){if(typeof e=="function")return If(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rf)return 11;if(e===lf)return 14}return 2}function Ar(e,t){var n=e.alternate;return n===null?(n=yn(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 js(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")If(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ol:return el(n.children,l,i,t);case nf:o=8,l|=8;break;case Wu:return e=yn(12,n,t,l|2),e.elementType=Wu,e.lanes=i,e;case qu:return e=yn(13,n,t,l),e.elementType=qu,e.lanes=i,e;case Ku:return e=yn(19,n,t,l),e.elementType=Ku,e.lanes=i,e;case Sh:return Ca(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xh:o=10;break e;case kh:o=9;break e;case rf:o=11;break e;case lf:o=14;break e;case _r:o=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=yn(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function el(e,t,n,r){return e=yn(7,e,r,t),e.lanes=n,e}function Ca(e,t,n,r){return e=yn(22,e,r,t),e.elementType=Sh,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return e=yn(6,e,null,t),e.lanes=n,e}function ju(e,t,n){return t=yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y2(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=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bf(e,t,n,r,l,i,o,s,u){return e=new y2(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sf(i),e}function w2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(y1)}catch(e){console.error(e)}}y1(),vh.exports=un;var w1=vh.exports,Yp=w1;Vu.createRoot=Yp.createRoot,Vu.hydrateRoot=Yp.hydrateRoot;const E2="k6 dashboard",C2=[{sections:[{panels:[{series:[{query:"iterations[?!tags && rate]"}],title:"Iteration Rate",kind:"stat",id:"tab-0.section-0.panel-0",summary:"The iteration rate represents the number of times a VU has executed a test script (the `default` function) over a period of time. The panel can help you ensure that your test iteration rate matches the configuration you have specified in your test script, and that the number of VUs you have allocated matches the test capacity."},{series:[{query:"http_reqs[?!tags && rate]"}],title:"HTTP Request Rate",kind:"stat",id:"tab-0.section-0.panel-1",summary:"The HTTP request rate represents the number of requests over a period of time."},{series:[{query:"http_req_duration[?!tags && avg]"}],title:"HTTP Request Duration",kind:"stat",id:"tab-0.section-0.panel-2",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test."},{series:[{query:"http_req_failed[?!tags && rate ]"}],title:"HTTP Request Failed",kind:"stat",id:"tab-0.section-0.panel-3",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details."},{series:[{query:"data_received[?!tags && rate]"}],title:"Received Rate",kind:"stat",id:"tab-0.section-0.panel-4",summary:"The amount of data received over a period of time."},{series:[{query:"data_sent[?!tags && rate]"}],title:"Sent Rate",kind:"stat",id:"tab-0.section-0.panel-5",summary:"The amount of data sent to the system under test. "}],id:"tab-0.section-0"},{panels:[{series:[{query:"http_reqs[?!tags && rate]",legend:"Request Rate"},{query:"http_req_duration[?!tags && p95]",legend:"Request Duration p(95)"},{query:"http_req_failed[?!tags && rate]",legend:"Request Failed"}],title:"HTTP Performance overview",id:"tab-0.section-1.panel-0",summary:"The HTTP request rate represents the number of requests over a period of time. The HTTP request duration 95 percentile represents the total time for 95% of the requests observed. The HTTP request failed rate represents the rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",fullWidth:!0,kind:"chart"}],id:"tab-0.section-1"},{panels:[{series:[{query:"vus[?!tags && value]"},{query:"http_reqs[?!tags && rate ]"}],title:"VUs",id:"tab-0.section-2.panel-0",summary:"The number of VUs and the number of requests throughout the test run. This is an indication of how the two metrics correlate, and can help you visualize if you need to increase or decrease the number of VUs for your test.",kind:"chart"},{series:[{query:"data_received[?!tags && rate]"},{query:"data_sent[?!tags && rate]"}],title:"Transfer Rate",id:"tab-0.section-2.panel-1",summary:"The rate at which data is sent to and received from the system under test.",kind:"chart"},{series:[{query:"http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"HTTP Request Duration",id:"tab-0.section-2.panel-2",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"iteration_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Iteration Duration",id:"tab-0.section-2.panel-3",summary:"The time to complete one full iteration of the test, including time spent in setup and teardown.",kind:"chart"}],id:"tab-0.section-2"}],title:"Overview",summary:"This chapter provides an overview of the most important metrics of the test run. Graphs plot the value of metrics over time.",id:"tab-0"},{sections:[{panels:[{series:[{query:"http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-0.panel-0",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"http_req_failed[?!tags && rate ]"}],title:"Request Failed Rate",id:"tab-1.section-0.panel-1",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",kind:"chart"},{series:[{query:"http_reqs[?!tags && rate]"}],title:"Request Rate",id:"tab-1.section-0.panel-2",summary:"The HTTP request rate represents the number of requests over a period of time.",kind:"chart"},{series:[{query:"http_req_waiting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Waiting",id:"tab-1.section-0.panel-3",summary:"The time between k6 sending a request and receiving the first byte of information from the remote host. Also known as 'time to first byte' or 'TTFB'.",kind:"chart"},{series:[{query:"http_req_tls_handshaking[?!tags && (avg || p90 || p95 || p99)]"}],title:"TLS handshaking",id:"tab-1.section-0.panel-4",summary:"The time it takes to complete the TLS handshake for the requests.",kind:"chart"},{series:[{query:"http_req_sending[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Sending",id:"tab-1.section-0.panel-5",summary:"The time k6 spends sending data to the remote host.",kind:"chart"},{series:[{query:"http_req_connecting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Connecting",id:"tab-1.section-0.panel-6",summary:"The time k6 spends establishing a TCP connection to the remote host.",kind:"chart"},{series:[{query:"http_req_receiving[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Receiving",id:"tab-1.section-0.panel-7",summary:"The time k6 spends receiving data from the remote host.",kind:"chart"},{series:[{query:"http_req_blocked[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Blocked",id:"tab-1.section-0.panel-8",summary:"The time k6 spends waiting for a free TCP connection slot before initiating a request.",kind:"chart"}],title:"HTTP",summary:"These metrics are generated only when the test makes HTTP requests.",id:"tab-1.section-0"},{panels:[{series:[{query:"browser_http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-1.panel-0",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"browser_http_req_failed[?!tags && rate ]"}],title:"Request Failed Rate",id:"tab-1.section-1.panel-1",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",kind:"chart"},{series:[{query:"browser_web_vital_lcp[?!tags && (avg || p90 || p95 || p99)]"}],title:"Largest Contentful Paint",id:"tab-1.section-1.panel-2",summary:"Largest Contentful Paint (LCP) measures the time it takes for the largest content element on a page to become visible.",kind:"chart"},{series:[{query:"browser_web_vital_fid[?!tags && (avg || p90 || p95 || p99)]"}],title:"First Input Delay",id:"tab-1.section-1.panel-3",summary:"First Input Delay (FID) measures the responsiveness of a web page by quantifying the delay between a user's first interaction, such as clicking a button, and the browser's response.",kind:"chart"},{series:[{query:"browser_web_vital_cls[?!tags && (avg || p90 || p95 || p99)]"}],title:"Cumulative Layout Shift",id:"tab-1.section-1.panel-4",summary:"Cumulative Layout Shift (CLS) measures visual stability on a webpage by quantifying the amount of unexpected layout shift of visible page content.",kind:"chart"},{series:[{query:"browser_web_vital_ttfb[?!tags && (avg || p90 || p95 || p99)]"}],title:"Time to First Byte",id:"tab-1.section-1.panel-5",summary:"Time to First Byte (TTFB) measures the time between the request for a resource and when the first byte of a response begins to arrive.",kind:"chart"},{series:[{query:"browser_web_vital_fcp[?!tags && (avg || p90 || p95 || p99)]"}],title:"First Contentful Paint",id:"tab-1.section-1.panel-6",summary:"First Contentful Paint (FCP) measures the time it takes for the first content element to be painted on the screen.",kind:"chart"},{series:[{query:"browser_web_vital_inp[?!tags && (avg || p90 || p95 || p99)]"}],title:"Interaction to Next Paint",id:"tab-1.section-1.panel-7",summary:"Interaction to Next Paint (INP) measures a page's overall responsiveness to user interactions by observing the latency of all click, tap, and keyboard interactions that occur throughout the lifespan of a user's visit to a page.",kind:"chart"}],title:"Browser",summary:"The k6 browser module emits its own metrics based on the Core Web Vitals and Other Web Vitals.",id:"tab-1.section-1"},{panels:[{series:[{query:"ws_connecting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Connect Duration",id:"tab-1.section-2.panel-0",summary:"The duration of the WebSocket connection request. This is an indication of the latency experienced when connecting to a WebSocket server.",kind:"chart"},{series:[{query:"ws_session_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Session Duration",id:"tab-1.section-2.panel-1",summary:"The time between the start of the connection and the end of the VU execution.",kind:"chart"},{series:[{query:"ws_ping[?!tags && (avg || p90 || p95 || p99)]"}],title:"Ping Duration",id:"tab-1.section-2.panel-2",summary:"The duration between a ping request and its pong reception. This is an indication of the latency experienced during the roundtrip of sending a ping message to a WebSocket server, and waiting for the pong response message to come back.",kind:"chart"},{series:[{query:"ws_msgs_sent[?!tags && rate]"},{query:"ws_msgs_received[?!tags && rate]"}],title:"Transfer Rate",id:"tab-1.section-2.panel-3",summary:"The total number of WebSocket messages sent, and the total number of WebSocket messages received.",kind:"chart"},{series:[{query:"ws_sessions[?!tags && rate]"}],title:"Sessions Rate",id:"tab-1.section-2.panel-4",summary:"The total number of WebSocket sessions started.",kind:"chart"}],title:"WebSocket",summary:"k6 emits the following metrics when interacting with a WebSocket service through the experimental or legacy websockets API.",id:"tab-1.section-2"},{panels:[{series:[{query:"grpc_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-3.panel-0",summary:"The gRPC request duration represents the total time for a gRPC request. This is an indication of the latency experienced when making gRPC requests against the system under test.",kind:"chart"},{series:[{query:"grpc_streams_msgs_sent[?!tags && rate]"},{query:"grpc_streams_msgs_received[?!tags && rate]"}],title:"Transfer Rate",id:"tab-1.section-3.panel-1",summary:"The total number of messages sent to gRPC streams, and the total number of messages received from a gRPC stream.",kind:"chart"},{series:[{query:"grpc_streams[?!tags && rate]"}],title:"Streams Rate",id:"tab-1.section-3.panel-2",summary:"The total number of gRPC streams started.",kind:"chart"}],title:"gRPC",summary:"k6 emits the following metrics when it interacts with a service through the gRPC API.",id:"tab-1.section-3"}],title:"Timings",summary:"This chapter provides an overview of test run HTTP timing metrics. Graphs plot the value of metrics over time.",id:"tab-1"},{sections:[{panels:[{series:[{query:"[?!tags && trend]"}],title:"Trends",kind:"summary",id:"tab-2.section-0.panel-0"}],title:"",id:"tab-2.section-0"},{panels:[{series:[{query:"[?!tags && counter]"}],title:"Counters",kind:"summary",id:"tab-2.section-1.panel-0"},{series:[{query:"[?!tags && rate]"}],title:"Rates",kind:"summary",id:"tab-2.section-1.panel-1"},{series:[{query:"[?!tags && gauge]"}],title:"Gauges",kind:"summary",id:"tab-2.section-1.panel-2"}],title:"",id:"tab-2.section-1"}],title:"Summary",summary:"This chapter provides a summary of the test run metrics. The tables contains the aggregated values of the metrics for the entire test run.",id:"tab-2"}],_1={title:E2,tabs:C2};var x1={};(function(e){(function(t){function n(h){return h!==null?Object.prototype.toString.call(h)==="[object Array]":!1}function r(h){return h!==null?Object.prototype.toString.call(h)==="[object Object]":!1}function l(h,S){if(h===S)return!0;var C=Object.prototype.toString.call(h);if(C!==Object.prototype.toString.call(S))return!1;if(n(h)===!0){if(h.length!==S.length)return!1;for(var j=0;j",9:"Array"},w="EOF",T="UnquotedIdentifier",O="QuotedIdentifier",R="Rbracket",M="Rparen",L="Comma",I="Colon",b="Rbrace",z="Number",H="Current",K="Expref",oe="Pipe",se="Or",fe="And",ne="EQ",q="GT",J="LT",G="GTE",re="LTE",Y="NE",me="Flatten",X="Star",pe="Filter",Le="Dot",Ue="Not",Be="Lbrace",tt="Lbracket",Ct="Lparen",st="Literal",dn={".":Le,"*":X,",":L,":":I,"{":Be,"}":b,"]":R,"(":Ct,")":M,"@":H},Qn={"<":!0,">":!0,"=":!0,"!":!0},pn={" ":!0," ":!0,"\n":!0};function Zn(h){return h>="a"&&h<="z"||h>="A"&&h<="Z"||h==="_"}function Cn(h){return h>="0"&&h<="9"||h==="-"}function hn(h){return h>="a"&&h<="z"||h>="A"&&h<="Z"||h>="0"&&h<="9"||h==="_"}function pt(){}pt.prototype={tokenize:function(h){var S=[];this._current=0;for(var C,j,F;this._current")return h[this._current]==="="?(this._current++,{type:G,value:">=",start:S}):{type:q,value:">",start:S};if(C==="="&&h[this._current]==="=")return this._current++,{type:ne,value:"==",start:S}},_consumeLiteral:function(h){this._current++;for(var S=this._current,C=h.length,j;h[this._current]!=="`"&&this._current=0)return!0;if(C.indexOf(h)>=0)return!0;if(j.indexOf(h[0])>=0)try{return JSON.parse(h),!0}catch{return!1}else return!1}};var ue={};ue[w]=0,ue[T]=0,ue[O]=0,ue[R]=0,ue[M]=0,ue[L]=0,ue[b]=0,ue[z]=0,ue[H]=0,ue[K]=0,ue[oe]=1,ue[se]=2,ue[fe]=3,ue[ne]=5,ue[q]=5,ue[J]=5,ue[G]=5,ue[re]=5,ue[Y]=5,ue[me]=9,ue[X]=20,ue[pe]=21,ue[Le]=40,ue[Ue]=45,ue[Be]=50,ue[tt]=55,ue[Ct]=60;function nt(){}nt.prototype={parse:function(h){this._loadTokens(h),this.index=0;var S=this.expression(0);if(this._lookahead(0)!==w){var C=this._lookaheadToken(0),j=new Error("Unexpected token type: "+C.type+", value: "+C.value);throw j.name="ParserError",j}return S},_loadTokens:function(h){var S=new pt,C=S.tokenize(h);C.push({type:w,value:"",start:h.length}),this.tokens=C},expression:function(h){var S=this._lookaheadToken(0);this._advance();for(var C=this.nud(S),j=this._lookahead(0);h=0)return this.expression(h);if(S===tt)return this._match(tt),this._parseMultiselectList();if(S===Be)return this._match(Be),this._parseMultiselectHash()},_parseProjectionRHS:function(h){var S;if(ue[this._lookahead(0)]<10)S={type:"Identity"};else if(this._lookahead(0)===tt)S=this.expression(h);else if(this._lookahead(0)===pe)S=this.expression(h);else if(this._lookahead(0)===Le)this._match(Le),S=this._parseDotRHS(h);else{var C=this._lookaheadToken(0),j=new Error("Sytanx error, unexpected token: "+C.value+"("+C.type+")");throw j.name="ParserError",j}return S},_parseMultiselectList:function(){for(var h=[];this._lookahead(0)!==R;){var S=this.expression(0);if(h.push(S),this._lookahead(0)===L&&(this._match(L),this._lookahead(0)===R))throw new Error("Unexpected token Rbracket")}return this._match(R),{type:"MultiSelectList",children:h}},_parseMultiselectHash:function(){for(var h=[],S=[T,O],C,j,F,Q;;){if(C=this._lookaheadToken(0),S.indexOf(C.type)<0)throw new Error("Expecting an identifier token, got: "+C.type);if(j=C.value,this._advance(),this._match(I),F=this.expression(0),Q={type:"KeyValuePair",name:j,value:F},h.push(Q),this._lookahead(0)===L)this._match(L);else if(this._lookahead(0)===b){this._match(b);break}}return{type:"MultiSelectHash",children:h}}};function Ft(h){this.runtime=h}Ft.prototype={search:function(h,S){return this.visit(h,S)},visit:function(h,S){var C,j,F,Q,ae,he,at,Qe,We,ce;switch(h.type){case"Field":return S!==null&&r(S)?(he=S[h.name],he===void 0?null:he):null;case"Subexpression":for(F=this.visit(h.children[0],S),ce=1;ce0)for(ce=Fo;ceIo;ce+=de)F.push(S[ce]);return F;case"Projection":var ut=this.visit(h.children[0],S);if(!n(ut))return null;for(We=[],ce=0;ceae;break;case G:F=Q>=ae;break;case J:F=Q=h&&(S=C<0?h-1:h),S}};function ye(h){this._interpreter=h,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[u]}]},avg:{_func:this._functionAvg,_signature:[{types:[P]}]},ceil:{_func:this._functionCeil,_signature:[{types:[u]}]},contains:{_func:this._functionContains,_signature:[{types:[c,p]},{types:[a]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[c]},{types:[c]}]},floor:{_func:this._functionFloor,_signature:[{types:[u]}]},length:{_func:this._functionLength,_signature:[{types:[c,p,d]}]},map:{_func:this._functionMap,_signature:[{types:[_]},{types:[p]}]},max:{_func:this._functionMax,_signature:[{types:[P,y]}]},merge:{_func:this._functionMerge,_signature:[{types:[d],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[p]},{types:[_]}]},sum:{_func:this._functionSum,_signature:[{types:[P]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[c]},{types:[c]}]},min:{_func:this._functionMin,_signature:[{types:[P,y]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[p]},{types:[_]}]},type:{_func:this._functionType,_signature:[{types:[a]}]},keys:{_func:this._functionKeys,_signature:[{types:[d]}]},values:{_func:this._functionValues,_signature:[{types:[d]}]},sort:{_func:this._functionSort,_signature:[{types:[y,P]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[p]},{types:[_]}]},join:{_func:this._functionJoin,_signature:[{types:[c]},{types:[y]}]},reverse:{_func:this._functionReverse,_signature:[{types:[c,p]}]},to_array:{_func:this._functionToArray,_signature:[{types:[a]}]},to_string:{_func:this._functionToString,_signature:[{types:[a]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[a]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[a],variadic:!0}]}}}ye.prototype={callFunction:function(h,S){var C=this.functionTable[h];if(C===void 0)throw new Error("Unknown function: "+h+"()");return this._validateArgs(h,S,C._signature),C._func.call(this,S)},_validateArgs:function(h,S,C){var j;if(C[C.length-1].variadic){if(S.length=0;F--)j+=C[F];return j}else{var Q=h[0].slice(0);return Q.reverse(),Q}},_functionAbs:function(h){return Math.abs(h[0])},_functionCeil:function(h){return Math.ceil(h[0])},_functionAvg:function(h){for(var S=0,C=h[0],j=0;j=0},_functionFloor:function(h){return Math.floor(h[0])},_functionLength:function(h){return r(h[0])?Object.keys(h[0]).length:h[0].length},_functionMap:function(h){for(var S=[],C=this._interpreter,j=h[0],F=h[1],Q=0;Q0){var S=this._getTypeName(h[0][0]);if(S===u)return Math.max.apply(Math,h[0]);for(var C=h[0],j=C[0],F=1;F0){var S=this._getTypeName(h[0][0]);if(S===u)return Math.min.apply(Math,h[0]);for(var C=h[0],j=C[0],F=1;FTn?1:ceF&&(F=ae,Q=C[he]);return Q},_functionMinBy:function(h){for(var S=h[1],C=h[0],j=this.createKeyFunction(S,[u,c]),F=1/0,Q,ae,he=0;he(e.bytes="bytes",e.bps="bps",e.counter="counter",e.rps="rps",e.duration="duration",e.timestamp="timestamp",e.unknown="",e))(Kr||{}),k1=class{constructor(e){ve(this,"name");ve(this,"aggregate");const[t,n]=e.split(".",2);this.aggregate=n,this.name=t}},Qp="time",Uf=class{constructor({values:e={},names:t=[]}={}){ve(this,"values");ve(this,"names");ve(this,"_aggregates");this.values=e,this.names=t,this._aggregates={}}set aggregates(e){for(const t in e){const n=t;this._aggregates[n]=e[n].map(r=>r.replaceAll("(","").replaceAll(")",""))}}onEvent(e){for(const t in e)this.values[t]={...e[t],name:t};this.names=Object.keys(this.values),this.names.sort()}toAggregate(e){const t={};for(let n=0;n(e.config="config",e.param="param",e.start="start",e.stop="stop",e.metric="metric",e.snapshot="snapshot",e.cumulative="cumulative",e.threshold="threshold",e))(S1||{}),ms="time",vs=class{constructor({length:e=0,capacity:t=1e4,values:n=new Array,aggregate:r="value",metric:l=void 0,unit:i="",name:o="",tags:s={},group:u=void 0}={}){ve(this,"capacity");ve(this,"aggregate");ve(this,"metric");ve(this,"unit");ve(this,"empty");ve(this,"name");ve(this,"tags");ve(this,"group");ve(this,"values");this.values=e==0?n:new Array(e),this.capacity=t,this.aggregate=r,this.metric=l,this.unit=i,this.empty=this.values.length==0,this.name=o,this.tags=s,this.group=u,Object.defineProperty(this,r,{value:!0,configurable:!0,enumerable:!0,writable:!0})}hasTags(){return this.tags!=null&&Object.keys(this.tags).length!=0}formatTags(){if(!this.hasTags())return"";let e="{";for(const t in this.tags)e+=`${t}:${this.tags[t]}`;return e+="}",e}get legend(){let e=this.aggregate;return this.metric&&this.metric.type!="trend"&&this.name.length!=0&&(e=this.name+this.formatTags()),e}grow(e){this.values[e-1]=void 0}push(...e){let t=!1;if(e.forEach(n=>{this.values.push(n),this.empty=!1,this.values.length==this.capacity&&(this.values.shift(),t=!0)}),t){this.empty=!0;for(let n=0;n{t.unit&&!e.includes(t.unit)&&e.push(t.unit)}),e}},P2=class{constructor({capacity:e=1e4,metrics:t=new Uf}={}){ve(this,"capacity");ve(this,"metrics");ve(this,"values");ve(this,"vectors");ve(this,"lookup");this.capacity=e,this.metrics=t,this.lookup={},this.vectors={},this.values={}}get length(){return this.values[ms]?this.values[ms].values.length:0}_push(e,t,n=void 0){const r=n?e+"."+n:e;let l=this.vectors[r];if(l)l.values.length0){r=e.substring(l),r=r.substring(1,r.length-1);const i=r.indexOf(":"),o=r.substring(0,i),s=r.substring(i+1);n.tags={[o]:s},o=="group"&&(n.group=s.substring(2)),e=e.substring(0,l)}return n.name=e,n.metric=this.metrics.find(e),n.unit=this.metrics.unit(e,t),new vs(n)}onEvent(e){for(const t in e){if(t==ms){this._push(t,Math.floor(e[t].value/1e3));continue}for(const n in e[t]){const r=n;this._push(t,e[t][r],r)}}}annotate(e){this.metrics=e;for(const t in this.values){this.values[t].metric=e.find(t);const n=new k1(t);this.values[t].unit=e.unit(n.name,n.aggregate)}}select(e){const t=new T2(this.values[ms]);if(t.length==0)return t;for(const n of e){const r=this.queryAll(n);r.length>0&&t.push(...r)}return t}query(e){const t=Dc.search(this.lookup,e);if(Array.isArray(t)){const r=t.at(0);return r instanceof vs?r:void 0}return t instanceof vs?t:void 0}queryAll(e){const t=Dc.search(this.lookup,e);if(!Array.isArray(t)||t.length==0)return new Array;const n=t;return n.at(0)instanceof vs?n:new Array}},Zp=class{constructor({values:e,metric:t,name:n}={}){ve(this,"values");ve(this,"metric");ve(this,"name");ve(this,"tags");ve(this,"group");this.values=e,this.metric=t,this.name=n,t&&t.type&&Object.defineProperty(this,t.type,{value:!0,configurable:!0,enumerable:!0,writable:!0});let r="";const l=n.indexOf("{");if(l&&l>0){r=n.substring(l),r=r.substring(1,r.length-1);const i=r.indexOf(":"),o=r.substring(0,i),s=r.substring(i+1);this.tags={[o]:s},o=="group"&&(this.group=s.substring(2)),n=n.substring(0,l)}}},O2="time",N2=class extends Array{constructor(t){super();ve(this,"aggregates");this.aggregates=new Array;for(let n=0;nl))}}get empty(){return this.length==0}},M2=class{constructor({values:t={},metrics:n=new Uf,time:r=0}={}){ve(this,"values");ve(this,"lookup");ve(this,"metrics");ve(this,"time");this.values=t,this.lookup=new Array,this.metrics=n,this.time=r}onEvent(t){const n={};let r=0;for(const i in t){if(i==O2){r=Math.floor(t[i].value/1e3);continue}const o=this.newSummaryRow(i,t[i]);n[i]=o}this.values=n,this.time=r;const l=Array();for(const i in this.values)l.push(this.values[i]);this.lookup=l}newSummaryRow(t,n){const r={};return r.name=t,r.metric=this.metrics.find(t),r.values=n,new Zp(r)}annotate(t){this.metrics=t;for(const n in this.values)this.values[n].metric=t.find(n)}select(t){const n=new Array;for(const r of t){const l=this.queryAll(r);l.length>0&&n.push(...l)}return new N2(n)}queryAll(t){const n=Dc.search(this.lookup,t);if(!Array.isArray(n)||n.length==0)return new Array;const r=n;return r.at(0)instanceof Zp?r:new Array}},R2=class{constructor(e={}){Object.assign(this,e)}},L2=class{constructor(e={}){Object.assign(this,e)}},zc=class{constructor({config:e={},param:t={},start:n=void 0,stop:r=void 0,metrics:l=new Uf,samples:i=new P2,summary:o=new M2,thresholds:s=new L2}={}){ve(this,"config");ve(this,"param");ve(this,"start");ve(this,"stop");ve(this,"metrics");ve(this,"samples");ve(this,"summary");ve(this,"thresholds");this.config=e,this.param=t,this.start=n,this.stop=r,this.metrics=l,this.samples=i,this.summary=o,this.thresholds=s}handleEvent(e){const t=e.type,n=JSON.parse(e.data);this.onEvent({type:t,data:n})}onEvent(e){switch(e.type){case"config":this.onConfig(e.data);break;case"param":this.onParam(e.data);break;case"start":this.onStart(this.metrics.toAggregate(e.data));break;case"stop":this.onStop(this.metrics.toAggregate(e.data));break;case"metric":this.onMetric(e.data);break;case"snapshot":this.onSnapshot(this.metrics.toAggregate(e.data));break;case"cumulative":this.onCumulative(this.metrics.toAggregate(e.data));break;case"threshold":this.onThreshold(e.data);break}}onConfig(e){Object.assign(this.config,e)}onParam(e){Object.assign(this.param,e),this.metrics.aggregates=e.aggregates}onStart(e){e.time&&e.time.value&&(this.start=new Date(e.time.value))}onStop(e){e.time&&e.time.value&&(this.stop=new Date(e.time.value))}onMetric(e){this.metrics.onEvent(e),this.samples.annotate(this.metrics),this.summary.annotate(this.metrics)}onSnapshot(e){this.samples.onEvent(e),this.samples.annotate(this.metrics)}onCumulative(e){this.summary.onEvent(e),this.summary.annotate(this.metrics)}onThreshold(e){Object.assign(this.thresholds,e)}};const Wf=U.createContext(()=>new zc({config:_1}));Wf.displayName="Digest";function j2({endpoint:e="/events",children:t}){const[n,r]=U.useState(new zc({config:new R2(_1)}));return U.useEffect(()=>{const l=new EventSource(e),i=o=>{n.handleEvent(o),r(new zc(n))};for(const o in S1)l.addEventListener(o,i)},[]),D.jsx(Wf.Provider,{value:()=>n,children:t})}function pl(){const e=U.useContext(Wf);if(e===void 0)throw new Error("useDigest must be used within a DigestProvider");return e()}var A2="_1dwurlb25",b2="_1dwurlb24";globalThis&&globalThis.__awaiter;function E1(){const[e,t]=U.useState(null),[n,r]=U.useState({width:0,height:0}),l=U.useCallback(()=>{r({width:(e==null?void 0:e.offsetWidth)||0,height:(e==null?void 0:e.offsetHeight)||0})},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]);return To("resize",l),qf(()=>{l()},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]),[t,n]}function C1(e){const t=U.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return qf(()=>{t.current=e},[e]),U.useCallback((...n)=>t.current(...n),[t])}function To(e,t,n,r){const l=U.useRef(t);qf(()=>{l.current=t},[t]),U.useEffect(()=>{var i;const o=(i=n==null?void 0:n.current)!==null&&i!==void 0?i:window;if(!(o&&o.addEventListener))return;const s=u=>l.current(u);return o.addEventListener(e,s,r),()=>{o.removeEventListener(e,s,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;const qf=typeof window<"u"?U.useLayoutEffect:U.useEffect;function D2(e){const t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[n,r]=U.useState(t(e));function l(){r(t(e))}return U.useEffect(()=>{const i=window.matchMedia(e);return l(),i.addListener?i.addListener(l):i.addEventListener("change",l),()=>{i.removeListener?i.removeListener(l):i.removeEventListener("change",l)}},[e]),n}function z2(e,t){const n=U.useCallback(()=>{if(typeof window>"u")return t;try{const s=window.sessionStorage.getItem(e);return s?F2(s):t}catch(s){return console.warn(`Error reading sessionStorage key “${e}”:`,s),t}},[t,e]),[r,l]=U.useState(n),i=C1(s=>{typeof window>"u"&&console.warn(`Tried setting sessionStorage key “${e}” even though environment is not a client`);try{const u=s instanceof Function?s(r):s;window.sessionStorage.setItem(e,JSON.stringify(u)),l(u),window.dispatchEvent(new Event("session-storage"))}catch(u){console.warn(`Error setting sessionStorage key “${e}”:`,u)}});U.useEffect(()=>{l(n())},[]);const o=U.useCallback(s=>{s!=null&&s.key&&s.key!==e||l(n())},[e,n]);return To("storage",o),To("session-storage",o),[r,i]}function F2(e){try{return e==="undefined"?void 0:JSON.parse(e??"")}catch{console.log("parsing error on",{value:e});return}}const T1=U.createContext({});function I2({children:e}){const t=D2("(prefers-color-scheme: dark)"),[n,r]=z2("theme",t?"dark":"light"),l={theme:n,themeClassName:n==="light"?b2:A2,setTheme:r};return D.jsx(T1.Provider,{value:l,children:e})}function pi(){const e=U.useContext(T1);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}var B2={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},$2={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},H2={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},V2={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},Au={black:"#000000",white:"#ffffff"},U2={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},W2={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},q2={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},K2={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},P1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},G2={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Y2={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Q2={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},Z2={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},Jp={50:"#ffffff",100:"#D6DCFF",200:"#CED4EF",300:"#C2CAEF",400:"#B6C0EF",500:"#AAB6EF",600:"#3f486b",700:"#394160",800:"#2c324b",900:"#1F2537"},J2={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},X2={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},ew={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},tw={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},nw={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},rw={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"};const gs={red:tw,pink:X2,purple:ew,deepPurple:q2,indigo:G2,blue:$2,lightBlue:Y2,cyan:U2,teal:nw,green:K2,lightGreen:Q2,lime:Z2,yellow:rw,amber:B2,orange:J2,deepOrange:W2,brown:V2,grey:P1,blueGrey:H2},lw=["grey","teal","blue","purple","indigo","orange","pink","green","cyan","amber","lime","brown","lightGreen","red","deepPurple","lightBlue","yellow","deepOrange","blueGrey"],O1=e=>lw.map(t=>({stroke:e=="dark"?gs[t][500]:gs[t][800],fill:(e=="dark"?gs[t][300]:gs[t][600])+"20"})),iw=e=>Object.entries(e).reduce((t,[n,r])=>r===void 0?t:{...t,[n]:r},{}),ow=(e,t)=>Object.entries(t).reduce((n,[r,l])=>(e.includes(r)&&(n[r]=l),n),{}),sw=(e,t)=>({...e,...t}),aw=e=>(t,n)=>sw(t,ow(e,n));function Xp(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function uw(e,t){var n=e;for(var r of t){if(!(r in n))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}function N1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=e.constructor();for(var l in e){var i=e[l],o=[...n,l];typeof i=="string"||typeof i=="number"||i==null?r[l]=t(i,o):typeof i=="object"&&!Array.isArray(i)?r[l]=N1(i,t,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return r}function cw(e,t){var n={};if(typeof t=="object"){var r=e;N1(t,(o,s)=>{var u=uw(r,s);n[Xp(u)]=String(o)})}else{var l=e;for(var i in l)n[Xp(i)]=l[i]}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(s=>"".concat(s,":").concat(this[s])).join(";")},writable:!1}),n}const Yn=(...e)=>e.filter(Boolean).join(" "),fw=(e,t)=>cw(e,iw(t));function dw(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pw(e){var t=dw(e,"string");return typeof t=="symbol"?t:String(t)}function hw(e,t,n){return t=pw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function bu(e){for(var t=1;tfunction(){for(var t=arguments.length,n=new Array(t),r=0;ru.styles)),i=Object.keys(l),o=i.filter(u=>"mappings"in l[u]),s=u=>{var a=[],c={},p=bu({},u),d=!1;for(var g of o){var _=u[g];if(_!=null){var x=l[g];d=!0;for(var P of x.mappings)c[P]=_,p[P]==null&&delete p[P]}}var y=d?bu(bu({},c),p):u,v=function(){var R=y[w],M=l[w];try{if(M.mappings)return"continue";if(typeof R=="string"||typeof R=="number")a.push(M.values[R].defaultClass);else if(Array.isArray(R))for(var L=0;Le,bo=function(){return mw(vw)(...arguments)},gw="wy7gkc15",yw={flexGrow:"var(--wy7gkc10)",flexShrink:"var(--wy7gkc11)",flexBasis:"var(--wy7gkc12)",height:"var(--wy7gkc13)",width:"var(--wy7gkc14)"},ww=bo({conditions:void 0,styles:{flexDirection:{values:{row:{defaultClass:"wy7gkc0"},column:{defaultClass:"wy7gkc1"}}},flexWrap:{values:{nowrap:{defaultClass:"wy7gkc2"},wrap:{defaultClass:"wy7gkc3"},"wrap-reverse":{defaultClass:"wy7gkc4"}}},alignItems:{values:{"flex-start":{defaultClass:"wy7gkc5"},"flex-end":{defaultClass:"wy7gkc6"},stretch:{defaultClass:"wy7gkc7"},center:{defaultClass:"wy7gkc8"},baseline:{defaultClass:"wy7gkc9"},start:{defaultClass:"wy7gkca"},end:{defaultClass:"wy7gkcb"},"self-start":{defaultClass:"wy7gkcc"},"self-end":{defaultClass:"wy7gkcd"}}},justifyContent:{values:{"flex-start":{defaultClass:"wy7gkce"},"flex-end":{defaultClass:"wy7gkcf"},start:{defaultClass:"wy7gkcg"},end:{defaultClass:"wy7gkch"},left:{defaultClass:"wy7gkci"},right:{defaultClass:"wy7gkcj"},center:{defaultClass:"wy7gkck"},"space-between":{defaultClass:"wy7gkcl"},"space-around":{defaultClass:"wy7gkcm"},"space-evenly":{defaultClass:"wy7gkcn"}}},gap:{values:{0:{defaultClass:"wy7gkco"},1:{defaultClass:"wy7gkcp"},2:{defaultClass:"wy7gkcq"},3:{defaultClass:"wy7gkcr"},4:{defaultClass:"wy7gkcs"},5:{defaultClass:"wy7gkct"}}},padding:{values:{0:{defaultClass:"wy7gkcu"},1:{defaultClass:"wy7gkcv"},2:{defaultClass:"wy7gkcw"},3:{defaultClass:"wy7gkcx"},4:{defaultClass:"wy7gkcy"},5:{defaultClass:"wy7gkcz"}}}}});function _w({as:e="div",align:t,basis:n,children:r,className:l,direction:i,gap:o=3,grow:s,height:u,justify:a,padding:c,shrink:p,width:d,wrap:g,..._},x){const P=ww({alignItems:t,flexDirection:i,flexWrap:g,gap:o,justifyContent:a,padding:c}),y=Yn(gw,P,l),v=fw(yw,{flexBasis:n,flexGrow:s,flexShrink:p,height:u,width:d});return D.jsx(e,{ref:x,className:y,style:v,..._,children:r})}const St=U.forwardRef(_w);var xw={fill:"_17y8ldl1 _17y8ldl0",text:"_17y8ldl0"};const kw=({as:e="button",children:t,className:n,variant:r="fill",...l},i)=>D.jsx(e,{ref:i,className:Yn(xw[r],n),...l,children:t}),Ma=U.forwardRef(kw);var Sw="_17unuvp0";const Ew=({className:e,...t})=>D.jsx("div",{className:Yn(Sw,e),...t}),Cw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},U.createElement("rect",{fill:"none",height:24,width:24}),U.createElement("path",{d:"M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36c-0.98,1.37-2.58,2.26-4.4,2.26 c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})),Tw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},U.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),U.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),Pw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},U.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),U.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),Ow=e=>U.createElement("svg",{fill:"currentColor",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"24px",viewBox:"796 796 200 200",enableBackground:"new 796 796 200 200",xmlSpace:"preserve",...e},U.createElement("g",null,U.createElement("path",{d:"M939.741,830.286c0.203-1.198-0.133-2.426-0.918-3.354s-1.938-1.461-3.153-1.461h-79.338c-1.214,0-2.365,0.536-3.149,1.463 c-0.784,0.928-1.124,2.155-0.92,3.352c2.866,16.875,12.069,32.797,25.945,42.713c7.737,5.529,13.827,8.003,17.793,8.003 c3.965,0,10.055-2.474,17.793-8.003C927.67,863.083,936.874,847.162,939.741,830.286z"}),U.createElement("path",{d:"M966.478,980.009h-5.074v-11.396c0-23.987-13.375-48.914-35.775-66.679l-7.485-5.936l7.485-5.934 c22.4-17.762,35.775-42.688,35.775-66.678v-11.396h5.074c4.416,0,7.996-3.58,7.996-7.995c0-4.416-3.58-7.996-7.996-7.996H825.521 c-4.415,0-7.995,3.58-7.995,7.996c0,4.415,3.58,7.995,7.995,7.995h5.077v9.202c0,27.228,13.175,53.007,35.243,68.962l8.085,5.843 l-8.085,5.847c-22.068,15.952-35.243,41.732-35.243,68.962v9.202h-5.077c-4.415,0-7.995,3.58-7.995,7.996 c0,4.415,3.58,7.995,7.995,7.995h140.956c4.416,0,7.996-3.58,7.996-7.995C974.474,983.589,970.894,980.009,966.478,980.009z M842.592,970.807c0-23.392,11.318-45.538,30.277-59.242l8.429-6.097c3.03-2.19,4.839-5.729,4.839-9.47 c0-3.739-1.809-7.279-4.84-9.471l-8.429-6.091c-18.958-13.707-30.276-35.853-30.276-59.243v-3.349c0-3.232,2.62-5.853,5.853-5.853 h95.112c3.232,0,5.854,2.621,5.854,5.853v5.543c0,20.36-11.676,41.774-31.232,57.279l-7.792,6.177 c-2.811,2.232-4.422,5.568-4.422,9.155c0,3.588,1.611,6.926,4.425,9.157l7.788,6.177c19.558,15.508,31.233,36.921,31.233,57.28 v5.544c0,3.232-2.621,5.854-5.854,5.854h-95.112c-3.232,0-5.853-2.621-5.853-5.854V970.807z"}))),Nw=e=>U.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},U.createElement("path",{d:"M12 11V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),U.createElement("circle",{cx:12,cy:7.5,r:1,fill:"currentColor"})),Mw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},U.createElement("rect",{fill:"none",height:24,width:24}),U.createElement("path",{d:"M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0 c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2 c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1 C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06 c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41 l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41 c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36 c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})),Rw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:37,height:34,viewBox:"0 0 37 34",fill:"currentColor",...e},U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9129 12.4547L29.0217 0L36.6667 33.1967H0L12.2687 6.86803L19.9129 12.4547ZM15.1741 24.4166L17.3529 27.4205L19.6915 27.4198L17.1351 23.8957L19.3864 20.7907L17.8567 19.6768L15.1741 23.3764V17.7248L13.1575 16.2575V27.4205H15.1741V24.4166ZM20.0105 24.1067C20.0105 26.0056 21.5468 27.5452 23.4425 27.5452C25.3396 27.5452 26.8759 26.0056 26.8759 24.1075C26.8746 23.2903 26.5844 22.5003 26.0573 21.8786C25.5301 21.2569 24.8003 20.8441 23.9983 20.714L25.6403 18.45L24.1105 17.3361L20.6675 22.0832C20.2395 22.6699 20.0093 23.379 20.0105 24.1067ZM24.9179 24.1067C24.9179 24.9226 24.2579 25.5843 23.4432 25.5843C23.2499 25.5848 23.0583 25.547 22.8795 25.473C22.7007 25.399 22.5382 25.2903 22.4011 25.153C22.2641 25.0158 22.1553 24.8528 22.081 24.6733C22.0066 24.4937 21.9681 24.3012 21.9677 24.1067C21.9677 23.2908 22.6277 22.6291 23.4432 22.6291C24.2572 22.6291 24.9179 23.2908 24.9179 24.1067Z",fill:"#7D64FF"})),Lw=e=>U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",...e},U.createElement("path",{d:"M12 2C12 0.89544 11.1046 0 10 0C8.8954 0 8 0.89544 8 2C8 3.10456 8.8954 4 10 4C11.1046 4 12 3.10456 12 2Z",fill:"currentColor"}),U.createElement("path",{d:"M12 9.33337C12 8.22881 11.1046 7.33337 10 7.33337C8.8954 7.33337 8 8.22881 8 9.33337C8 10.4379 8.8954 11.3334 10 11.3334C11.1046 11.3334 12 10.4379 12 9.33337Z",fill:"currentColor"}),U.createElement("path",{d:"M12 16.6666C12 15.5621 11.1046 14.6666 10 14.6666C8.8954 14.6666 8 15.5621 8 16.6666C8 17.7712 8.8954 18.6666 10 18.6666C11.1046 18.6666 12 17.7712 12 16.6666Z",fill:"currentColor"})),jw=e=>U.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},U.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},U.createElement("g",{id:"add",fill:"currentColor",transform:"translate(42.666667, 42.666667)"},U.createElement("path",{d:"M291.76704,163.504 C291.76704,177.01952 288.33216,188.82176 281.479253,198.90112 C275.828267,207.371093 266.358187,216.549547 253.042987,226.434987 C245.378987,231.682347 240.331947,236.618667 237.916587,241.257813 C234.87744,246.90624 233.376213,255.371093 233.376213,266.666667 L190.710827,266.666667 C190.710827,249.530027 192.53504,237.027413 196.165333,229.162667 C200.394453,219.679573 209.571627,210.098773 223.686187,200.42048 C230.350293,195.374933 235.188693,190.2368 238.214827,184.994773 C241.839787,179.143253 243.664,172.49216 243.664,165.028693 C243.664,153.13024 240.125013,144.26304 233.070293,138.404907 C227.4336,134.177067 220.56768,132.059947 212.501333,132.059947 C199.39328,132.059947 189.911467,136.398507 184.065067,145.069013 C179.829333,151.518293 177.7056,159.787733 177.7056,169.868587 L177.7056,170.173227 L132.34368,170.173227 C132.34368,143.751253 140.703147,123.790507 157.43488,110.274773 C171.554773,98.9922133 189.007787,93.3346133 209.77344,93.3346133 C227.933653,93.3346133 243.865813,96.86848 257.571627,103.9232 C280.37504,115.62624 291.76704,135.494827 291.76704,163.504 Z M426.666667,213.333333 C426.666667,331.153707 331.153707,426.666667 213.333333,426.666667 C95.51296,426.666667 3.55271368e-14,331.153707 3.55271368e-14,213.333333 C3.55271368e-14,95.51168 95.51296,3.55271368e-14 213.333333,3.55271368e-14 C331.153707,3.55271368e-14 426.666667,95.51168 426.666667,213.333333 Z M384,213.333333 C384,119.226667 307.43872,42.6666667 213.333333,42.6666667 C119.227947,42.6666667 42.6666667,119.226667 42.6666667,213.333333 C42.6666667,307.43872 119.227947,384 213.333333,384 C307.43872,384 384,307.43872 384,213.333333 Z M213.332053,282.666667 C198.60416,282.666667 186.665387,294.60544 186.665387,309.333333 C186.665387,324.061227 198.60416,336 213.332053,336 C228.059947,336 239.99872,324.061227 239.99872,309.333333 C239.99872,294.60544 228.059947,282.666667 213.332053,282.666667 Z",id:"Shape"})))),Aw=e=>U.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},U.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"}),U.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12H19C19 15.866 15.866 19 12 19V22Z",fill:"currentColor"}),U.createElement("path",{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"})),bw=e=>U.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"bi bi-stopwatch",...e},U.createElement("path",{d:"M8.5 5.6a.5.5 0 1 0-1 0v2.9h-3a.5.5 0 0 0 0 1H8a.5.5 0 0 0 .5-.5V5.6z"}),U.createElement("path",{d:"M6.5 1A.5.5 0 0 1 7 .5h2a.5.5 0 0 1 0 1v.57c1.36.196 2.594.78 3.584 1.64a.715.715 0 0 1 .012-.013l.354-.354-.354-.353a.5.5 0 0 1 .707-.708l1.414 1.415a.5.5 0 1 1-.707.707l-.353-.354-.354.354a.512.512 0 0 1-.013.012A7 7 0 1 1 7 2.071V1.5a.5.5 0 0 1-.5-.5zM8 3a6 6 0 1 0 .001 12A6 6 0 0 0 8 3z"}));function Dw({className:e,name:t,title:n,...r},l){const i=zw[t];return D.jsx("span",{ref:l,children:D.jsx(i,{"aria-hidden":"true",className:e,title:n,...r})})}const zw={"chevron-down":Pw,"chevron-up":Tw,"hour-glass":Ow,info:Nw,options:Lw,logo:Rw,moon:Cw,question:jw,spinner:Aw,"stop-watch":bw,sun:Mw},Kn=U.forwardRef(Dw);var t0=function(t){return t.reduce(function(n,r){var l=r[0],i=r[1];return n[l]=i,n},{})},n0=typeof window<"u"&&window.document&&window.document.createElement?U.useLayoutEffect:U.useEffect,Zt="top",Sn="bottom",En="right",Jt="left",Kf="auto",Do=[Zt,Sn,En,Jt],Xl="start",Po="end",Fw="clippingParents",M1="viewport",Ii="popper",Iw="reference",r0=Do.reduce(function(e,t){return e.concat([t+"-"+Xl,t+"-"+Po])},[]),R1=[].concat(Do,[Kf]).reduce(function(e,t){return e.concat([t,t+"-"+Xl,t+"-"+Po])},[]),Bw="beforeRead",$w="read",Hw="afterRead",Vw="beforeMain",Uw="main",Ww="afterMain",qw="beforeWrite",Kw="write",Gw="afterWrite",Yw=[Bw,$w,Hw,Vw,Uw,Ww,qw,Kw,Gw];function Gn(e){return e?(e.nodeName||"").toLowerCase():null}function an(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ul(e){var t=an(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=an(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gf(e){if(typeof ShadowRoot>"u")return!1;var t=an(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qw(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},l=t.attributes[n]||{},i=t.elements[n];!_n(i)||!Gn(i)||(Object.assign(i.style,r),Object.keys(l).forEach(function(o){var s=l[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Zw(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var l=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(u,a){return u[a]="",u},{});!_n(l)||!Gn(l)||(Object.assign(l.style,s),Object.keys(i).forEach(function(u){l.removeAttribute(u)}))})}}const Jw={name:"applyStyles",enabled:!0,phase:"write",fn:Qw,effect:Zw,requires:["computeStyles"]};function qn(e){return e.split("-")[0]}var tl=Math.max,aa=Math.min,ei=Math.round;function Fc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function L1(){return!/^((?!chrome|android).)*safari/i.test(Fc())}function ti(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),l=1,i=1;t&&_n(e)&&(l=e.offsetWidth>0&&ei(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ei(r.height)/e.offsetHeight||1);var o=ul(e)?an(e):window,s=o.visualViewport,u=!L1()&&n,a=(r.left+(u&&s?s.offsetLeft:0))/l,c=(r.top+(u&&s?s.offsetTop:0))/i,p=r.width/l,d=r.height/i;return{width:p,height:d,top:c,right:a+p,bottom:c+d,left:a,x:a,y:c}}function Yf(e){var t=ti(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function j1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fr(e){return an(e).getComputedStyle(e)}function Xw(e){return["table","td","th"].indexOf(Gn(e))>=0}function Br(e){return((ul(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ra(e){return Gn(e)==="html"?e:e.assignedSlot||e.parentNode||(Gf(e)?e.host:null)||Br(e)}function l0(e){return!_n(e)||fr(e).position==="fixed"?null:e.offsetParent}function e_(e){var t=/firefox/i.test(Fc()),n=/Trident/i.test(Fc());if(n&&_n(e)){var r=fr(e);if(r.position==="fixed")return null}var l=Ra(e);for(Gf(l)&&(l=l.host);_n(l)&&["html","body"].indexOf(Gn(l))<0;){var i=fr(l);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return l;l=l.parentNode}return null}function zo(e){for(var t=an(e),n=l0(e);n&&Xw(n)&&fr(n).position==="static";)n=l0(n);return n&&(Gn(n)==="html"||Gn(n)==="body"&&fr(n).position==="static")?t:n||e_(e)||t}function Qf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lo(e,t,n){return tl(e,aa(t,n))}function t_(e,t,n){var r=lo(e,t,n);return r>n?n:r}function A1(){return{top:0,right:0,bottom:0,left:0}}function b1(e){return Object.assign({},A1(),e)}function D1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var n_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,b1(typeof t!="number"?t:D1(t,Do))};function r_(e){var t,n=e.state,r=e.name,l=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=qn(n.placement),u=Qf(s),a=[Jt,En].indexOf(s)>=0,c=a?"height":"width";if(!(!i||!o)){var p=n_(l.padding,n),d=Yf(i),g=u==="y"?Zt:Jt,_=u==="y"?Sn:En,x=n.rects.reference[c]+n.rects.reference[u]-o[u]-n.rects.popper[c],P=o[u]-n.rects.reference[u],y=zo(i),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=x/2-P/2,T=p[g],O=v-d[c]-p[_],R=v/2-d[c]/2+w,M=lo(T,R,O),L=u;n.modifiersData[r]=(t={},t[L]=M,t.centerOffset=M-R,t)}}function l_(e){var t=e.state,n=e.options,r=n.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||j1(t.elements.popper,l)&&(t.elements.arrow=l))}const i_={name:"arrow",enabled:!0,phase:"main",fn:r_,effect:l_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ni(e){return e.split("-")[1]}var o_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s_(e,t){var n=e.x,r=e.y,l=t.devicePixelRatio||1;return{x:ei(n*l)/l||0,y:ei(r*l)/l||0}}function i0(e){var t,n=e.popper,r=e.popperRect,l=e.placement,i=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,a=e.adaptive,c=e.roundOffsets,p=e.isFixed,d=o.x,g=d===void 0?0:d,_=o.y,x=_===void 0?0:_,P=typeof c=="function"?c({x:g,y:x}):{x:g,y:x};g=P.x,x=P.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),w=Jt,T=Zt,O=window;if(a){var R=zo(n),M="clientHeight",L="clientWidth";if(R===an(n)&&(R=Br(n),fr(R).position!=="static"&&s==="absolute"&&(M="scrollHeight",L="scrollWidth")),R=R,l===Zt||(l===Jt||l===En)&&i===Po){T=Sn;var I=p&&R===O&&O.visualViewport?O.visualViewport.height:R[M];x-=I-r.height,x*=u?1:-1}if(l===Jt||(l===Zt||l===Sn)&&i===Po){w=En;var b=p&&R===O&&O.visualViewport?O.visualViewport.width:R[L];g-=b-r.width,g*=u?1:-1}}var z=Object.assign({position:s},a&&o_),H=c===!0?s_({x:g,y:x},an(n)):{x:g,y:x};if(g=H.x,x=H.y,u){var K;return Object.assign({},z,(K={},K[T]=v?"0":"",K[w]=y?"0":"",K.transform=(O.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",K))}return Object.assign({},z,(t={},t[T]=v?x+"px":"",t[w]=y?g+"px":"",t.transform="",t))}function a_(e){var t=e.state,n=e.options,r=n.gpuAcceleration,l=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,u=s===void 0?!0:s,a={placement:qn(t.placement),variation:ni(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,i0(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,i0(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const u_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:a_,data:{}};var ys={passive:!0};function c_(e){var t=e.state,n=e.instance,r=e.options,l=r.scroll,i=l===void 0?!0:l,o=r.resize,s=o===void 0?!0:o,u=an(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&a.forEach(function(c){c.addEventListener("scroll",n.update,ys)}),s&&u.addEventListener("resize",n.update,ys),function(){i&&a.forEach(function(c){c.removeEventListener("scroll",n.update,ys)}),s&&u.removeEventListener("resize",n.update,ys)}}const f_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:c_,data:{}};var d_={left:"right",right:"left",bottom:"top",top:"bottom"};function As(e){return e.replace(/left|right|bottom|top/g,function(t){return d_[t]})}var p_={start:"end",end:"start"};function o0(e){return e.replace(/start|end/g,function(t){return p_[t]})}function Zf(e){var t=an(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Jf(e){return ti(Br(e)).left+Zf(e).scrollLeft}function h_(e,t){var n=an(e),r=Br(e),l=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,u=0;if(l){i=l.width,o=l.height;var a=L1();(a||!a&&t==="fixed")&&(s=l.offsetLeft,u=l.offsetTop)}return{width:i,height:o,x:s+Jf(e),y:u}}function m_(e){var t,n=Br(e),r=Zf(e),l=(t=e.ownerDocument)==null?void 0:t.body,i=tl(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),o=tl(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),s=-r.scrollLeft+Jf(e),u=-r.scrollTop;return fr(l||n).direction==="rtl"&&(s+=tl(n.clientWidth,l?l.clientWidth:0)-i),{width:i,height:o,x:s,y:u}}function Xf(e){var t=fr(e),n=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+r)}function z1(e){return["html","body","#document"].indexOf(Gn(e))>=0?e.ownerDocument.body:_n(e)&&Xf(e)?e:z1(Ra(e))}function io(e,t){var n;t===void 0&&(t=[]);var r=z1(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),i=an(r),o=l?[i].concat(i.visualViewport||[],Xf(r)?r:[]):r,s=t.concat(o);return l?s:s.concat(io(Ra(o)))}function Ic(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function v_(e,t){var n=ti(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function s0(e,t,n){return t===M1?Ic(h_(e,n)):ul(t)?v_(t,n):Ic(m_(Br(e)))}function g_(e){var t=io(Ra(e)),n=["absolute","fixed"].indexOf(fr(e).position)>=0,r=n&&_n(e)?zo(e):e;return ul(r)?t.filter(function(l){return ul(l)&&j1(l,r)&&Gn(l)!=="body"}):[]}function y_(e,t,n,r){var l=t==="clippingParents"?g_(e):[].concat(t),i=[].concat(l,[n]),o=i[0],s=i.reduce(function(u,a){var c=s0(e,a,r);return u.top=tl(c.top,u.top),u.right=aa(c.right,u.right),u.bottom=aa(c.bottom,u.bottom),u.left=tl(c.left,u.left),u},s0(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function F1(e){var t=e.reference,n=e.element,r=e.placement,l=r?qn(r):null,i=r?ni(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(l){case Zt:u={x:o,y:t.y-n.height};break;case Sn:u={x:o,y:t.y+t.height};break;case En:u={x:t.x+t.width,y:s};break;case Jt:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var a=l?Qf(l):null;if(a!=null){var c=a==="y"?"height":"width";switch(i){case Xl:u[a]=u[a]-(t[c]/2-n[c]/2);break;case Po:u[a]=u[a]+(t[c]/2-n[c]/2);break}}return u}function Oo(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,s=n.boundary,u=s===void 0?Fw:s,a=n.rootBoundary,c=a===void 0?M1:a,p=n.elementContext,d=p===void 0?Ii:p,g=n.altBoundary,_=g===void 0?!1:g,x=n.padding,P=x===void 0?0:x,y=b1(typeof P!="number"?P:D1(P,Do)),v=d===Ii?Iw:Ii,w=e.rects.popper,T=e.elements[_?v:d],O=y_(ul(T)?T:T.contextElement||Br(e.elements.popper),u,c,o),R=ti(e.elements.reference),M=F1({reference:R,element:w,strategy:"absolute",placement:l}),L=Ic(Object.assign({},w,M)),I=d===Ii?L:R,b={top:O.top-I.top+y.top,bottom:I.bottom-O.bottom+y.bottom,left:O.left-I.left+y.left,right:I.right-O.right+y.right},z=e.modifiersData.offset;if(d===Ii&&z){var H=z[l];Object.keys(b).forEach(function(K){var oe=[En,Sn].indexOf(K)>=0?1:-1,se=[Zt,Sn].indexOf(K)>=0?"y":"x";b[K]+=H[se]*oe})}return b}function w_(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,a=u===void 0?R1:u,c=ni(r),p=c?s?r0:r0.filter(function(_){return ni(_)===c}):Do,d=p.filter(function(_){return a.indexOf(_)>=0});d.length===0&&(d=p);var g=d.reduce(function(_,x){return _[x]=Oo(e,{placement:x,boundary:l,rootBoundary:i,padding:o})[qn(x)],_},{});return Object.keys(g).sort(function(_,x){return g[_]-g[x]})}function __(e){if(qn(e)===Kf)return[];var t=As(e);return[o0(e),t,o0(t)]}function x_(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,s=o===void 0?!0:o,u=n.fallbackPlacements,a=n.padding,c=n.boundary,p=n.rootBoundary,d=n.altBoundary,g=n.flipVariations,_=g===void 0?!0:g,x=n.allowedAutoPlacements,P=t.options.placement,y=qn(P),v=y===P,w=u||(v||!_?[As(P)]:__(P)),T=[P].concat(w).reduce(function(X,pe){return X.concat(qn(pe)===Kf?w_(t,{placement:pe,boundary:c,rootBoundary:p,padding:a,flipVariations:_,allowedAutoPlacements:x}):pe)},[]),O=t.rects.reference,R=t.rects.popper,M=new Map,L=!0,I=T[0],b=0;b=0,se=oe?"width":"height",fe=Oo(t,{placement:z,boundary:c,rootBoundary:p,altBoundary:d,padding:a}),ne=oe?K?En:Jt:K?Sn:Zt;O[se]>R[se]&&(ne=As(ne));var q=As(ne),J=[];if(i&&J.push(fe[H]<=0),s&&J.push(fe[ne]<=0,fe[q]<=0),J.every(function(X){return X})){I=z,L=!1;break}M.set(z,J)}if(L)for(var G=_?3:1,re=function(pe){var Le=T.find(function(Ue){var Be=M.get(Ue);if(Be)return Be.slice(0,pe).every(function(tt){return tt})});if(Le)return I=Le,"break"},Y=G;Y>0;Y--){var me=re(Y);if(me==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const k_={name:"flip",enabled:!0,phase:"main",fn:x_,requiresIfExists:["offset"],data:{_skip:!1}};function a0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function u0(e){return[Zt,En,Sn,Jt].some(function(t){return e[t]>=0})}function S_(e){var t=e.state,n=e.name,r=t.rects.reference,l=t.rects.popper,i=t.modifiersData.preventOverflow,o=Oo(t,{elementContext:"reference"}),s=Oo(t,{altBoundary:!0}),u=a0(o,r),a=a0(s,l,i),c=u0(u),p=u0(a);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:a,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}const E_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S_};function C_(e,t,n){var r=qn(e),l=[Jt,Zt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*l,[Jt,En].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function T_(e){var t=e.state,n=e.options,r=e.name,l=n.offset,i=l===void 0?[0,0]:l,o=R1.reduce(function(c,p){return c[p]=C_(p,t.rects,i),c},{}),s=o[t.placement],u=s.x,a=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=a),t.modifiersData[r]=o}const P_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:T_};function O_(e){var t=e.state,n=e.name;t.modifiersData[n]=F1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const N_={name:"popperOffsets",enabled:!0,phase:"read",fn:O_,data:{}};function M_(e){return e==="x"?"y":"x"}function R_(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,s=o===void 0?!1:o,u=n.boundary,a=n.rootBoundary,c=n.altBoundary,p=n.padding,d=n.tether,g=d===void 0?!0:d,_=n.tetherOffset,x=_===void 0?0:_,P=Oo(t,{boundary:u,rootBoundary:a,padding:p,altBoundary:c}),y=qn(t.placement),v=ni(t.placement),w=!v,T=Qf(y),O=M_(T),R=t.modifiersData.popperOffsets,M=t.rects.reference,L=t.rects.popper,I=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,b=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(R){if(i){var K,oe=T==="y"?Zt:Jt,se=T==="y"?Sn:En,fe=T==="y"?"height":"width",ne=R[T],q=ne+P[oe],J=ne-P[se],G=g?-L[fe]/2:0,re=v===Xl?M[fe]:L[fe],Y=v===Xl?-L[fe]:-M[fe],me=t.elements.arrow,X=g&&me?Yf(me):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:A1(),Le=pe[oe],Ue=pe[se],Be=lo(0,M[fe],X[fe]),tt=w?M[fe]/2-G-Be-Le-b.mainAxis:re-Be-Le-b.mainAxis,Ct=w?-M[fe]/2+G+Be+Ue+b.mainAxis:Y+Be+Ue+b.mainAxis,st=t.elements.arrow&&zo(t.elements.arrow),dn=st?T==="y"?st.clientTop||0:st.clientLeft||0:0,Qn=(K=z==null?void 0:z[T])!=null?K:0,pn=ne+tt-Qn-dn,Zn=ne+Ct-Qn,Cn=lo(g?aa(q,pn):q,ne,g?tl(J,Zn):J);R[T]=Cn,H[T]=Cn-ne}if(s){var hn,pt=T==="x"?Zt:Jt,ue=T==="x"?Sn:En,nt=R[O],Ft=O==="y"?"height":"width",ye=nt+P[pt],te=nt-P[ue],Oe=[Zt,Jt].indexOf(y)!==-1,$e=(hn=z==null?void 0:z[O])!=null?hn:0,h=Oe?ye:nt-M[Ft]-L[Ft]-$e+b.altAxis,S=Oe?nt+M[Ft]+L[Ft]-$e-b.altAxis:te,C=g&&Oe?t_(h,nt,S):lo(g?h:ye,nt,g?S:te);R[O]=C,H[O]=C-nt}t.modifiersData[r]=H}}const L_={name:"preventOverflow",enabled:!0,phase:"main",fn:R_,requiresIfExists:["offset"]};function j_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function A_(e){return e===an(e)||!_n(e)?Zf(e):j_(e)}function b_(e){var t=e.getBoundingClientRect(),n=ei(t.width)/e.offsetWidth||1,r=ei(t.height)/e.offsetHeight||1;return n!==1||r!==1}function D_(e,t,n){n===void 0&&(n=!1);var r=_n(t),l=_n(t)&&b_(t),i=Br(t),o=ti(e,l,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Gn(t)!=="body"||Xf(i))&&(s=A_(t)),_n(t)?(u=ti(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Jf(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function z_(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function l(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&l(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||l(i)}),r}function F_(e){var t=z_(e);return Yw.reduce(function(n,r){return n.concat(t.filter(function(l){return l.phase===r}))},[])}function I_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function B_(e){var t=e.reduce(function(n,r){var l=n[r.name];return n[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var c0={placement:"bottom",modifiers:[],strategy:"absolute"};function f0(){for(var e=arguments.length,t=new Array(e),n=0;ne===null&&t===null?null:n=>{d0(e,n),d0(t,n)},[e,t])}const J_=({children:e,onClickAway:t})=>{const n=U.useRef(document),r=U.useRef(null),l=Z_(r,e.ref),i=C1(o=>{if(!r.current)throw new Error("ClickAwayListener: missing ref");const s=!n.current.contains(o.target)||r.current.contains(o.target);o.type==="keyup"&&"key"in o&&(!["Escape","Tab"].includes(o.key)||o.key==="Tab"&&s)||o.type==="mouseup"&&s||t(o)});return To("mouseup",i,n),To("keyup",i,n),D.jsx(D.Fragment,{children:U.cloneElement(e,{ref:l})})};var X_="iy2n4g0",e3={fill:"iy2n4g1",text:"iy2n4g2"};function t3({className:e,name:t,title:n,variant:r="fill",...l},i){return D.jsx(Ma,{ref:i,className:Yn(X_,e),variant:r,...l,children:D.jsx(Kn,{className:e3[r],name:t,title:n})})}const n3=U.forwardRef(t3);var r3="_1sxwks00";function l3({children:e,className:t,...n},r){return D.jsx("div",{ref:r,className:Yn(r3,t),...n,children:e})}const La=U.forwardRef(l3);var i3="_1x45rmb3",o3={light:"_1x45rmb1 _1x45rmb0",dark:"_1x45rmb2 _1x45rmb0"};function s3({children:e}){const{theme:t}=pi(),[n,r]=U.useState(!1),[l,i]=U.useState(null),[o,s]=U.useState(null),{styles:u,attributes:a}=I1(l,o,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,10]}}]});return D.jsxs(D.Fragment,{children:[D.jsx(n3,{ref:i,"aria-expanded":n?"true":"false","aria-label":"Menu",name:"options",variant:"text",onClick:()=>r(!n)}),n&&D.jsx(J_,{onClickAway:()=>r(!1),children:D.jsx(La,{...a.popper,ref:s,className:o3[t],style:u.popper,onMouseLeave:()=>r(!1),children:D.jsx(St,{direction:"column",gap:0,children:e})})})]})}function a3({children:e,onClick:t}){return D.jsx(Ma,{variant:"text",onClick:t,children:D.jsx(St,{className:i3,align:"center",gap:2,children:e})})}const Du=Object.assign(s3,{Item:a3});var u3={active:"tz5dd56 tz5dd55",inactive:"tz5dd57 tz5dd55"},c3=bo({conditions:{defaultCondition:"mobile",conditionNames:["mobile","desktop"],responsiveArray:void 0},styles:{display:{values:{none:{conditions:{mobile:"tz5dd51",desktop:"tz5dd52"},defaultClass:"tz5dd51"},block:{conditions:{mobile:"tz5dd53",desktop:"tz5dd54"},defaultClass:"tz5dd53"}}}}}),f3="tz5dd50";function p0({isMobile:e=!1,options:t,value:n,onChange:r}){return D.jsx("nav",{className:Yn(f3,c3({display:{desktop:e?"none":"block",mobile:e?"block":"none"}})),children:D.jsx(St,{gap:2,children:t.map((l,i)=>D.jsx(d3,{label:l.title,index:i,value:n,onChange:r},l.id))})})}function d3({index:e,label:t,value:n,onChange:r,...l}){const i=e===n,o=i?"active":"inactive";return D.jsx(Ma,{"aria-current":i,className:u3[o],variant:"text",onClick:()=>r(e),...l,children:t})}var p3={loading:"_1e0qizf1",default:"_1e0qizf3 _1e0qizf1"},h3="_1e0qizf4",m3="_1e0qizf5";const v3=({children:e,isLoading:t=!1,max:n="100",value:r,...l})=>{const i=t?"loading":"default";return D.jsxs("div",{className:h3,children:[D.jsx("progress",{className:p3[i],max:n,value:r,...l}),e?D.jsx("div",{className:m3,children:e}):null]})},h0=e=>e&&new Date(e).getTime(),B1=(e,t)=>e&&new Date(e.getTime()+t),g3=(e,t,n)=>{const r=h0(e)||0,l=h0(t)||0,i=n.getTime()-r,o=l-r;return i/o*100},y3=(e,t)=>{if(e.stop)return 100;const n=e.param.endOffset,r=B1(e.start,n),l=g3(e.start,r,t);return Math.round(l)},$1=(e=0)=>{const t=Math.round(e),n=Math.round(t%60);return t<0?"-":t<60?`${t}s`:n>0?`${Math.round((e-n)/60)}min ${n}s`:`${Math.round(t/60)}min`},w3=e=>{const t=e.param.period||0;return $1(t/1e3)},_3=e=>{const t=e.start,n=e.param.endOffset||0,r=e.stop||B1(e.start,n);if(!(!t||!r))return $1((r.getTime()-t.getTime())/1e3)};var x3="kfrms71",k3="kfrms73",S3="kfrms70",E3="kfrms74";const C3=e=>{var t;return(t=e==null?void 0:e.popper)==null?void 0:t["data-popper-placement"]},T3=e=>e?e.startsWith("top")?"top":e.startsWith("bottom")?"bottom":e.startsWith("right")?"right":"left":"left";var P3={top:"_1lpb9zp4 _1lpb9zp3",bottom:"_1lpb9zp5 _1lpb9zp3",left:"_1lpb9zp6 _1lpb9zp3",right:"_1lpb9zp7 _1lpb9zp3"},O3={light:"_1lpb9zp1 _1lpb9zp0",dark:"_1lpb9zp2 _1lpb9zp0"};function Bc({children:e,placement:t="bottom-start",title:n}){const[r,l]=U.useState(!1),{theme:i}=pi(),[o,s]=U.useState(null),[u,a]=U.useState(null),[c,p]=U.useState(null),{styles:d,attributes:g}=I1(u,c,{placement:t,modifiers:[{name:"arrow",options:{element:o}},{name:"offset",options:{offset:[0,5]}}]}),_=T3(C3(g));return n?D.jsxs(D.Fragment,{children:[D.jsx("div",{ref:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:e}),r&&D.jsxs("div",{ref:p,className:O3[i],style:d.popper,...g.popper,children:[n,D.jsx("div",{ref:s,className:P3[_],style:d.arrow})]})]}):e}function N3({config:e,tab:t,onTabChange:n}){const r=pl(),l=!r.stop&&y3(r,new Date);return D.jsx(D.Fragment,{children:D.jsxs("header",{className:S3,children:[D.jsxs(St,{className:x3,align:"center",justify:"space-between",children:[D.jsxs(St,{align:"center",gap:4,children:[D.jsx(Kn,{name:"logo"}),D.jsx(p0,{options:e.tabs,value:t,onChange:n})]}),D.jsxs(St,{align:"center",children:[D.jsx(M3,{}),D.jsx(Ma,{onClick:()=>window.open("../report","k6-report"),children:"Report"}),D.jsx(R3,{})]})]}),l?D.jsx(v3,{value:l}):D.jsx(Ew,{className:k3}),D.jsx(p0,{isMobile:!0,options:e.tabs,value:t,onChange:n})]})})}const M3=()=>{const e=pl();return D.jsx("div",{className:E3,children:D.jsxs(St,{align:"center",gap:3,children:[D.jsx(Bc,{placement:"bottom",title:"Refresh rate",children:D.jsxs(St,{align:"center",gap:2,children:[D.jsx(Kn,{name:"stop-watch",width:"12px",height:"12px"}),D.jsx("span",{children:w3(e)})]})}),D.jsx(Bc,{placement:"bottom",title:"Duration",children:D.jsxs(St,{align:"center",gap:2,children:[D.jsx(Kn,{name:"hour-glass",width:"12px",height:"12px"}),D.jsx("span",{children:_3(e)})]})})]})})},R3=()=>{const{theme:e,setTheme:t}=pi();function n(){window.open("https://github.com/grafana/k6/blob/master/SUPPORT.md","_blank")}function r(){t(e==="light"?"dark":"light")}return D.jsxs(Du,{children:[D.jsxs(Du.Item,{onClick:n,children:[D.jsx(Kn,{name:"question"}),D.jsx("span",{children:"Help"})]}),D.jsxs(Du.Item,{onClick:r,children:[D.jsx(Kn,{name:e==="dark"?"sun":"moon"}),D.jsxs("span",{children:[e==="dark"?"Light":"Dark"," mode"]})]})]})};var L3="_1isundr0";function j3({children:e,message:t,isLoading:n}){return n?D.jsxs(St,{align:"center",justify:"center",children:[D.jsx(Kn,{className:L3,name:"spinner"}),D.jsx("h2",{children:t})]}):e}var H1={exports:{}};/*! @preserve - * numeral.js - * version : 2.0.6 - * author : Adam Draper - * license : MIT - * http://adamwdraper.github.com/Numeral-js/ - */(function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(Jv,function(){var t,n,r="2.0.6",l={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(a,c){this._input=a,this._value=c}return t=function(a){var c,p,d,g;if(t.isNumeral(a))c=a.value();else if(a===0||typeof a>"u")c=0;else if(a===null||n.isNaN(a))c=null;else if(typeof a=="string")if(s.zeroFormat&&a===s.zeroFormat)c=0;else if(s.nullFormat&&a===s.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(p in l)if(g=typeof l[p].regexps.unformat=="function"?l[p].regexps.unformat():l[p].regexps.unformat,g&&a.match(g)){d=l[p].unformat;break}d=d||t._.stringToNumber,c=d(a)}else c=Number(a)||null;return new u(a,c)},t.version=r,t.isNumeral=function(a){return a instanceof u},t._=n={numberToFormat:function(a,c,p){var d=i[t.options.currentLocale],g=!1,_=!1,x=0,P="",y=1e12,v=1e9,w=1e6,T=1e3,O="",R=!1,M,L,I,b,z,H,K;if(a=a||0,L=Math.abs(a),t._.includes(c,"(")?(g=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(z=t._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(M=c.match(/a(k|m|b|t)?/),M=M?M[1]:!1,t._.includes(c," a")&&(P=" "),c=c.replace(new RegExp(P+"a[kmbt]?"),""),L>=y&&!M||M==="t"?(P+=d.abbreviations.trillion,a=a/y):L=v&&!M||M==="b"?(P+=d.abbreviations.billion,a=a/v):L=w&&!M||M==="m"?(P+=d.abbreviations.million,a=a/w):(L=T&&!M||M==="k")&&(P+=d.abbreviations.thousand,a=a/T)),t._.includes(c,"[.]")&&(_=!0,c=c.replace("[.]",".")),I=a.toString().split(".")[0],b=c.split(".")[1],H=c.indexOf(","),x=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,b?(t._.includes(b,"[")?(b=b.replace("]",""),b=b.split("["),O=t._.toFixed(a,b[0].length+b[1].length,p,b[1].length)):O=t._.toFixed(a,b.length,p),I=O.split(".")[0],t._.includes(O,".")?O=d.delimiters.decimal+O.split(".")[1]:O="",_&&Number(O.slice(1))===0&&(O="")):I=t._.toFixed(a,0,p),P&&!M&&Number(I)>=1e3&&P!==d.abbreviations.trillion)switch(I=String(Number(I)/1e3),P){case d.abbreviations.thousand:P=d.abbreviations.million;break;case d.abbreviations.million:P=d.abbreviations.billion;break;case d.abbreviations.billion:P=d.abbreviations.trillion;break}if(t._.includes(I,"-")&&(I=I.slice(1),R=!0),I.length0;oe--)I="0"+I;return H>-1&&(I=I.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(I=""),K=I+O+(P||""),g?K=(g&&R?"(":"")+K+(g&&R?")":""):z>=0?K=z===0?(R?"-":"+")+K:K+(R?"-":"+"):R&&(K="-"+K),K},stringToNumber:function(a){var c=i[s.currentLocale],p=a,d={thousand:3,million:6,billion:9,trillion:12},g,_,x;if(s.zeroFormat&&a===s.zeroFormat)_=0;else if(s.nullFormat&&a===s.nullFormat||!a.replace(/[^0-9]+/g,"").length)_=null;else{_=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(g in d)if(x=new RegExp("[^a-zA-Z]"+c.abbreviations[g]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),p.match(x)){_*=Math.pow(10,d[g]);break}_*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),_*=Number(a)}return _},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,p){return a.slice(0,p)+c+a.slice(p)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var p=Object(a),d=p.length>>>0,g=0,_;if(arguments.length===3)_=arguments[2];else{for(;g=d)throw new TypeError("Reduce of empty array with no initial value");_=p[g++]}for(;gd?c:d},1)},toFixed:function(a,c,p,d){var g=a.toString().split("."),_=c-(d||0),x,P,y,v;return g.length===2?x=Math.min(Math.max(g[1].length,_),c):x=_,y=Math.pow(10,x),v=(p(a+"e+"+x)/y).toFixed(x),d>c-x&&(P=new RegExp("\\.?0{1,"+(d-(c-x))+"}$"),v=v.replace(P,"")),v}},t.options=s,t.formats=l,t.locales=i,t.locale=function(a){return a&&(s.currentLocale=a.toLowerCase()),s.currentLocale},t.localeData=function(a){if(!a)return i[s.currentLocale];if(a=a.toLowerCase(),!i[a])throw new Error("Unknown locale : "+a);return i[a]},t.reset=function(){for(var a in o)s[a]=o[a]},t.zeroFormat=function(a){s.zeroFormat=typeof a=="string"?a:null},t.nullFormat=function(a){s.nullFormat=typeof a=="string"?a:null},t.defaultFormat=function(a){s.defaultFormat=typeof a=="string"?a:"0.0"},t.register=function(a,c,p){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=p,p},t.validate=function(a,c){var p,d,g,_,x,P,y,v;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{y=t.localeData(c)}catch{y=t.localeData(t.locale())}return g=y.currency.symbol,x=y.abbreviations,p=y.delimiters.decimal,y.delimiters.thousands==="."?d="\\.":d=y.delimiters.thousands,v=a.match(/^[^\d]+/),v!==null&&(a=a.substr(1),v[0]!==g)||(v=a.match(/[^\d]+$/),v!==null&&(a=a.slice(0,-1),v[0]!==x.thousand&&v[0]!==x.million&&v[0]!==x.billion&&v[0]!==x.trillion))?!1:(P=new RegExp(d+"{2}"),a.match(/[^\d.,]/g)?!1:(_=a.split(p),_.length>2?!1:_.length<2?!!_[0].match(/^\d+.*\d$/)&&!_[0].match(P):_[0].length===1?!!_[0].match(/^\d+$/)&&!_[0].match(P)&&!!_[1].match(/^\d+$/):!!_[0].match(/^\d+.*\d$/)&&!_[0].match(P)&&!!_[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(a,c){var p=this._value,d=a||s.defaultFormat,g,_,x;if(c=c||Math.round,p===0&&s.zeroFormat!==null)_=s.zeroFormat;else if(p===null&&s.nullFormat!==null)_=s.nullFormat;else{for(g in l)if(d.match(l[g].regexps.format)){x=l[g].format;break}x=x||t._.numberToFormat,_=x(p,d,c)}return _},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=n.correctionFactor.call(null,this._value,a);function p(d,g,_,x){return d+Math.round(c*g)}return this._value=n.reduce([this._value,a],p,0)/c,this},subtract:function(a){var c=n.correctionFactor.call(null,this._value,a);function p(d,g,_,x){return d-Math.round(c*g)}return this._value=n.reduce([a],p,Math.round(this._value*c))/c,this},multiply:function(a){function c(p,d,g,_){var x=n.correctionFactor(p,d);return Math.round(p*x)*Math.round(d*x)/Math.round(x*x)}return this._value=n.reduce([this._value,a],c,1),this},divide:function(a){function c(p,d,g,_){var x=n.correctionFactor(p,d);return Math.round(p*x)/Math.round(d*x)}return this._value=n.reduce([this._value,a],c),this},difference:function(a){return Math.abs(t(this._value).subtract(a).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,p){var d=t._.includes(c," BPS")?" ":"",g;return a=a*1e4,c=c.replace(/\s?BPS/,""),g=t._.numberToFormat(a,c,p),t._.includes(g,")")?(g=g.split(""),g.splice(-1,0,d+"BPS"),g=g.join("")):g=g+d+"BPS",g},unformat:function(a){return+(t._.stringToNumber(a)*1e-4).toFixed(15)}})}(),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=a.suffixes.concat(c.suffixes.filter(function(g){return a.suffixes.indexOf(g)<0})),d=p.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(g,_,x){var P,y=t._.includes(_,"ib")?c:a,v=t._.includes(_," b")||t._.includes(_," ib")?" ":"",w,T,O;for(_=_.replace(/\s?i?b/,""),w=0;w<=y.suffixes.length;w++)if(T=Math.pow(y.base,w),O=Math.pow(y.base,w+1),g===null||g===0||g>=T&&g0&&(g=g/T);break}return P=t._.numberToFormat(g,_,x),P+v},unformat:function(g){var _=t._.stringToNumber(g),x,P;if(_){for(x=a.suffixes.length-1;x>=0;x--){if(t._.includes(g,a.suffixes[x])){P=Math.pow(a.base,x);break}if(t._.includes(g,c.suffixes[x])){P=Math.pow(c.base,x);break}}_*=P||1}return _}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,p){var d=t.locales[t.options.currentLocale],g={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},_,x,P;for(c=c.replace(/\s?\$\s?/,""),_=t._.numberToFormat(a,c,p),a>=0?(g.before=g.before.replace(/[\-\(]/,""),g.after=g.after.replace(/[\-\)]/,"")):a<0&&!t._.includes(g.before,"-")&&!t._.includes(g.before,"(")&&(g.before="-"+g.before),P=0;P=0;P--)switch(x=g.after[P],x){case"$":_=P===g.after.length-1?_+d.currency.symbol:t._.insert(_,d.currency.symbol,-(g.after.length-(1+P)));break;case" ":_=P===g.after.length-1?_+" ":t._.insert(_," ",-(g.after.length-(1+P)+d.currency.symbol.length-1));break}return _}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,p){var d,g=typeof a=="number"&&!t._.isNaN(a)?a.toExponential():"0e+0",_=g.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(_[0]),c,p),d+"e"+_[1]},unformat:function(a){var c=t._.includes(a,"e+")?a.split("e+"):a.split("e-"),p=Number(c[0]),d=Number(c[1]);d=t._.includes(a,"e-")?d*=-1:d;function g(_,x,P,y){var v=t._.correctionFactor(_,x),w=_*v*(x*v)/(v*v);return w}return t._.reduce([p,Math.pow(10,d)],g,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,p){var d=t.locales[t.options.currentLocale],g,_=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),_+=d.ordinal(a),g=t._.numberToFormat(a,c,p),g+_}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,p){var d=t._.includes(c," %")?" ":"",g;return t.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),g=t._.numberToFormat(a,c,p),t._.includes(g,")")?(g=g.split(""),g.splice(-1,0,d+"%"),g=g.join("")):g=g+d+"%",g},unformat:function(a){var c=t._.stringToNumber(a);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,p){var d=Math.floor(a/60/60),g=Math.floor((a-d*60*60)/60),_=Math.round(a-d*60*60-g*60);return d+":"+(g<10?"0"+g:g)+":"+(_<10?"0"+_:_)},unformat:function(a){var c=a.split(":"),p=0;return c.length===3?(p=p+Number(c[0])*60*60,p=p+Number(c[1])*60,p=p+Number(c[2])):c.length===2&&(p=p+Number(c[0])*60,p=p+Number(c[1])),Number(p)}})}(),t})})(H1);var A3=H1.exports;const m0=pa(A3),b3=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],D3=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],z3=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],F3=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],v0=(e,t,n)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function I3(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const n=t.bits?t.binary?F3:z3:t.binary?D3:b3,r=t.space?" ":"";if(t.signed&&e===0)return` 0${r}${n[0]}`;const l=e<0,i=l?"-":t.signed?"+":"";l&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1){const c=v0(e,t.locale,o);return i+c+r+n[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));const u=v0(Number(e),t.locale,o),a=n[s];return i+u+r+a}function B3(e){if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}const $3=(e,t)=>t===1?e:`${e}s`,H3=1e-7;function V3(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=[],r=(o,s)=>{const u=Math.floor(o*10**s+H3);return(Math.round(u)/10**s).toFixed(s)},l=(o,s,u,a)=>{if((n.length===0||!t.colonNotation)&&o===0&&!(t.colonNotation&&u==="m"))return;a=(a||o||"0").toString();let c,p;if(t.colonNotation){c=n.length>0?":":"",p="";const d=a.includes(".")?a.split(".")[0].length:a.length,g=n.length>0?2:1;a="0".repeat(Math.max(0,g-d))+a}else c="",p=t.verbose?" "+$3(s,o):u;n.push(c+a+p)},i=B3(e);if(l(Math.trunc(i.days/365),"year","y"),l(i.days%365,"day","d"),l(i.hours,"hour","h"),l(i.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(l(i.seconds,"second","s"),t.formatSubMilliseconds)l(i.milliseconds,"millisecond","ms"),l(i.microseconds,"microsecond","µs"),l(i.nanoseconds,"nanosecond","ns");else{const o=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,s=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=o>=1?Math.round(o):Math.ceil(o),a=s?o.toFixed(s):u;l(Number.parseFloat(a),"millisecond","ms",a)}else{const o=e/1e3%60,s=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=r(o,s),a=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");l(Number.parseFloat(a),"second","s",a)}if(n.length===0)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return n[0];if(typeof t.unitCount=="number"){const o=t.colonNotation?"":" ";return n.slice(0,Math.max(t.unitCount,1)).join(o)}return t.colonNotation?n.join(""):n.join(" ")}const U3=!0,dt="u-",W3="uplot",q3=dt+"hz",K3=dt+"vt",G3=dt+"title",Y3=dt+"wrap",Q3=dt+"under",Z3=dt+"over",J3=dt+"axis",Yr=dt+"off",X3=dt+"select",ex=dt+"cursor-x",tx=dt+"cursor-y",nx=dt+"cursor-pt",rx=dt+"legend",lx=dt+"live",ix=dt+"inline",ox=dt+"series",sx=dt+"marker",g0=dt+"label",ax=dt+"value",qi="width",Ki="height",Bi="top",y0="bottom",El="left",zu="right",ed="#000",w0=ed+"0",_0="mousemove",x0="mousedown",Fu="mouseup",k0="mouseenter",S0="mouseleave",E0="dblclick",ux="resize",cx="scroll",C0="change",ua="dppxchange",td="--",hi=typeof window<"u",$c=hi?document:null,Wl=hi?window:null,fx=hi?navigator:null;let Te,ws;function Hc(){let e=devicePixelRatio;Te!=e&&(Te=e,ws&&Uc(C0,ws,Hc),ws=matchMedia(`(min-resolution: ${Te-.001}dppx) and (max-resolution: ${Te+.001}dppx)`),nl(C0,ws,Hc),Wl.dispatchEvent(new CustomEvent(ua)))}function en(e,t){if(t!=null){let n=e.classList;!n.contains(t)&&n.add(t)}}function Vc(e,t){let n=e.classList;n.contains(t)&&n.remove(t)}function He(e,t,n){e.style[t]=n+"px"}function Rn(e,t,n,r){let l=$c.createElement(e);return t!=null&&en(l,t),n!=null&&n.insertBefore(l,r),l}function mn(e,t){return Rn("div",e,t)}const T0=new WeakMap;function Cl(e,t,n,r,l){let i="translate("+t+"px,"+n+"px)",o=T0.get(e);i!=o&&(e.style.transform=i,T0.set(e,i),t<0||n<0||t>r||n>l?en(e,Yr):Vc(e,Yr))}const P0=new WeakMap;function dx(e,t,n){let r=t+n,l=P0.get(e);r!=l&&(P0.set(e,r),e.style.background=t,e.style.borderColor=n)}const O0=new WeakMap;function px(e,t,n,r){let l=t+""+n,i=O0.get(e);l!=i&&(O0.set(e,l),e.style.height=n+"px",e.style.width=t+"px",e.style.marginLeft=r?-t/2+"px":0,e.style.marginTop=r?-n/2+"px":0)}const nd={passive:!0},V1={...nd,capture:!0};function nl(e,t,n,r){t.addEventListener(e,n,r?V1:nd)}function Uc(e,t,n,r){t.removeEventListener(e,n,r?V1:nd)}hi&&Hc();function wr(e,t,n,r){let l;n=n||0,r=r||t.length-1;let i=r<=2147483647;for(;r-n>1;)l=i?n+r>>1:on((n+r)/2),t[l]=t&&l<=n;l+=r)if(e[l]!=null)return l;return-1}function hx(e,t,n,r){let l=ke,i=-ke;if(r==1)l=e[t],i=e[n];else if(r==-1)l=e[n],i=e[t];else for(let o=t;o<=n;o++){let s=e[o];s!=null&&(si&&(i=s))}return[l,i]}function mx(e,t,n){let r=ke,l=-ke;for(let i=t;i<=n;i++){let o=e[i];o!=null&&o>0&&(ol&&(l=o))}return[r==ke?1:r,l==-ke?10:l]}function ja(e,t,n,r){let l=R0(e),i=R0(t),o=n==10?ir:U1;e==t&&(l==-1?(e*=n,t/=n):(e/=n,t*=n));let s=l==1?on:li,u=i==1?li:on,a=s(o(_t(e))),c=u(o(_t(t))),p=ii(n,a),d=ii(n,c);return n==10&&(a<0&&(p=je(p,-a)),c<0&&(d=je(d,-c))),r||n==2?(e=p*l,t=d*i):(e=q1(e,p),t=si(t,d)),[e,t]}function rd(e,t,n,r){let l=ja(e,t,n,r);return e==0&&(l[0]=0),t==0&&(l[1]=0),l}const ld=.1,N0={mode:3,pad:ld},oo={pad:0,soft:null,mode:0},vx={min:oo,max:oo};function ca(e,t,n,r){return Aa(n)?M0(e,t,n):(oo.pad=n,oo.soft=r?0:null,oo.mode=r?3:0,M0(e,t,vx))}function Pe(e,t){return e??t}function gx(e,t,n){for(t=Pe(t,0),n=Pe(n,e.length-1);t<=n;){if(e[t]!=null)return!0;t++}return!1}function M0(e,t,n){let r=n.min,l=n.max,i=Pe(r.pad,0),o=Pe(l.pad,0),s=Pe(r.hard,-ke),u=Pe(l.hard,ke),a=Pe(r.soft,ke),c=Pe(l.soft,-ke),p=Pe(r.mode,0),d=Pe(l.mode,0),g=t-e,_=ir(g),x=xt(_t(e),_t(t)),P=ir(x),y=_t(P-_);(g<1e-9||y>10)&&(g=0,(e==0||t==0)&&(g=1e-9,p==2&&a!=ke&&(i=0),d==2&&c!=-ke&&(o=0)));let v=g||x||1e3,w=ir(v),T=ii(10,on(w)),O=v*(g==0?e==0?.1:1:i),R=je(q1(e-O,T/10),9),M=e>=a&&(p==1||p==3&&R<=a||p==2&&R>=a)?a:ke,L=xt(s,R=M?M:nn(M,R)),I=v*(g==0?t==0?.1:1:o),b=je(si(t+I,T/10),9),z=t<=c&&(d==1||d==3&&b>=c||d==2&&b<=c)?c:-ke,H=nn(u,b>z&&t<=z?z:xt(z,b));return L==H&&L==0&&(H=100),[L,H]}const yx=new Intl.NumberFormat(hi?fx.language:"en-US"),id=e=>yx.format(e),fn=Math,Ds=fn.PI,_t=fn.abs,on=fn.floor,Nt=fn.round,li=fn.ceil,nn=fn.min,xt=fn.max,ii=fn.pow,R0=fn.sign,ir=fn.log10,U1=fn.log2,wx=(e,t=1)=>fn.sinh(e)*t,Iu=(e,t=1)=>fn.asinh(e/t),ke=1/0;function L0(e){return(ir((e^e>>31)-(e>>31))|0)+1}function j0(e,t,n){return nn(xt(e,t),n)}function xe(e){return typeof e=="function"?e:()=>e}const _x=()=>{},xx=e=>e,W1=(e,t)=>t,kx=e=>null,A0=e=>!0,b0=(e,t)=>e==t,oi=e=>je(e,14);function Gr(e,t){return oi(je(oi(e/t))*t)}function si(e,t){return oi(li(oi(e/t))*t)}function q1(e,t){return oi(on(oi(e/t))*t)}function je(e,t=0){if(Sx(e))return e;let n=10**t,r=e*n*(1+Number.EPSILON);return Nt(r)/n}const ai=new Map;function K1(e){return((""+e).split(".")[1]||"").length}function No(e,t,n,r){let l=[],i=r.map(K1);for(let o=t;o=0&&o>=0?0:s)+(o>=i[a]?0:i[a]),d=je(c,p);l.push(d),ai.set(d,p)}}return l}const so={},G1=[],ui=[null,null],kr=Array.isArray,Sx=Number.isInteger,Ex=e=>e===void 0;function D0(e){return typeof e=="string"}function Aa(e){let t=!1;if(e!=null){let n=e.constructor;t=n==null||n==Object}return t}function z0(e){return e!=null&&typeof e=="object"}const Cx=Object.getPrototypeOf(Uint8Array);function rl(e,t=Aa){let n;if(kr(e)){let r=e.find(l=>l!=null);if(kr(r)||t(r)){n=Array(e.length);for(let l=0;li){for(l=o-1;l>=0&&e[l]==null;)e[l--]=null;for(l=o+1;lo-s)],l=r[0].length,i=new Map;for(let o=0;o"u"?e=>Promise.resolve().then(e):queueMicrotask;function Lx(e){let t=e[0],n=t.length,r=Array(n);for(let i=0;it[i]-t[o]);let l=[];for(let i=0;i=r&&e[l]==null;)l--;if(l<=r)return!0;const i=xt(1,on((l-r+1)/t));for(let o=e[r],s=r+i;s<=l;s+=i){const u=e[s];if(u!=null){if(u<=o)return!1;o=u}}return!0}const Y1=["January","February","March","April","May","June","July","August","September","October","November","December"],Q1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Z1(e){return e.slice(0,3)}const bx=Q1.map(Z1),Dx=Y1.map(Z1),zx={MMMM:Y1,MMM:Dx,WWWW:Q1,WWW:bx};function $i(e){return(e<10?"0":"")+e}function Fx(e){return(e<10?"00":e<100?"0":"")+e}const Ix={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>$i(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>$i(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>$i(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return t==0?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>$i(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>$i(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>Fx(e.getMilliseconds())};function od(e,t){t=t||zx;let n=[],r=/\{([a-z]+)\}|[^{]+/gi,l;for(;l=r.exec(e);)n.push(l[0][0]=="{"?Ix[l[1]]:l[0]);return i=>{let o="";for(let s=0;se%1==0,fa=[1,2,2.5,5],Hx=No(10,-16,0,fa),X1=No(10,0,16,fa),Vx=X1.filter(J1),Ux=Hx.concat(X1),sd=` -`,ev="{YYYY}",F0=sd+ev,tv="{M}/{D}",Gi=sd+tv,_s=Gi+"/{YY}",nv="{aa}",Wx="{h}:{mm}",Tl=Wx+nv,I0=sd+Tl,B0=":{ss}",Ne=null;function rv(e){let t=e*1e3,n=t*60,r=n*60,l=r*24,i=l*30,o=l*365,u=(e==1?No(10,0,3,fa).filter(J1):No(10,-3,0,fa)).concat([t,t*5,t*10,t*15,t*30,n,n*5,n*10,n*15,n*30,r,r*2,r*3,r*4,r*6,r*8,r*12,l,l*2,l*3,l*4,l*5,l*6,l*7,l*8,l*9,l*10,l*15,i,i*2,i*3,i*4,i*6,o,o*2,o*5,o*10,o*25,o*50,o*100]);const a=[[o,ev,Ne,Ne,Ne,Ne,Ne,Ne,1],[l*28,"{MMM}",F0,Ne,Ne,Ne,Ne,Ne,1],[l,tv,F0,Ne,Ne,Ne,Ne,Ne,1],[r,"{h}"+nv,_s,Ne,Gi,Ne,Ne,Ne,1],[n,Tl,_s,Ne,Gi,Ne,Ne,Ne,1],[t,B0,_s+" "+Tl,Ne,Gi+" "+Tl,Ne,I0,Ne,1],[e,B0+".{fff}",_s+" "+Tl,Ne,Gi+" "+Tl,Ne,I0,Ne,1]];function c(p){return(d,g,_,x,P,y)=>{let v=[],w=P>=o,T=P>=i&&P=l?l:P,b=on(_)-on(R),z=L+b+si(R-L,I);v.push(z);let H=p(z),K=H.getHours()+H.getMinutes()/n+H.getSeconds()/r,oe=P/r,se=d.axes[g]._space,fe=y/se;for(;z=je(z+P,e==1?0:3),!(z>x);)if(oe>1){let ne=on(je(K+oe,6))%24,G=p(z).getHours()-ne;G>1&&(G=-1),z-=G*r,K=(K+oe)%24;let re=v[v.length-1];je((z-re)/P,3)*fe>=.7&&v.push(z)}else v.push(z)}return v}}return[u,a,c]}const[qx,Kx,Gx]=rv(1),[Yx,Qx,Zx]=rv(.001);No(2,-53,53,[1]);function $0(e,t){return e.map(n=>n.map((r,l)=>l==0||l==8||r==null?r:t(l==1||n[8]==0?r:n[1]+r)))}function H0(e,t){return(n,r,l,i,o)=>{let s=t.find(_=>o>=_[0])||t[t.length-1],u,a,c,p,d,g;return r.map(_=>{let x=e(_),P=x.getFullYear(),y=x.getMonth(),v=x.getDate(),w=x.getHours(),T=x.getMinutes(),O=x.getSeconds(),R=P!=u&&s[2]||y!=a&&s[3]||v!=c&&s[4]||w!=p&&s[5]||T!=d&&s[6]||O!=g&&s[7]||s[1];return u=P,a=y,c=v,p=w,d=T,g=O,R(x)})}}function Jx(e,t){let n=od(t);return(r,l,i,o,s)=>l.map(u=>n(e(u)))}function Bu(e,t,n){return new Date(e,t,n)}function V0(e,t){return t(e)}const Xx="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function U0(e,t){return(n,r,l,i)=>i==null?td:t(e(r))}function ek(e,t){let n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null}function tk(e,t){return e.series[t].fill(e,t)}const nk={show:!0,live:!0,isolate:!1,mount:_x,markers:{show:!0,width:2,stroke:ek,fill:tk,dash:"solid"},idx:null,idxs:null,values:[]};function rk(e,t){let n=e.cursor.points,r=mn(),l=n.size(e,t);He(r,qi,l),He(r,Ki,l);let i=l/-2;He(r,"marginLeft",i),He(r,"marginTop",i);let o=n.width(e,t,l);return o&&He(r,"borderWidth",o),r}function lk(e,t){let n=e.series[t].points;return n._fill||n._stroke}function ik(e,t){let n=e.series[t].points;return n._stroke||n._fill}function ok(e,t){return e.series[t].points.size}function sk(e,t,n){return n}const $u=[0,0];function ak(e,t,n){return $u[0]=t,$u[1]=n,$u}function xs(e,t,n,r=!0){return l=>{l.button==0&&(!r||l.target==t)&&n(l)}}function Hu(e,t,n,r=!0){return l=>{(!r||l.target==t)&&n(l)}}const uk={show:!0,x:!0,y:!0,lock:!1,move:ak,points:{show:rk,size:ok,width:0,stroke:ik,fill:lk},bind:{mousedown:xs,mouseup:xs,click:xs,dblclick:xs,mousemove:Hu,mouseleave:Hu,mouseenter:Hu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{prox:-1,bias:0},left:-10,top:-10,idx:null,dataIdx:sk,idxs:null,event:null},lv={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},ad=it({},lv,{filter:W1}),iv=it({},ad,{size:10}),ov=it({},lv,{show:!1}),ud='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',sv="bold "+ud,av=1.5,W0={show:!0,scale:"x",stroke:ed,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:sv,side:2,grid:ad,ticks:iv,border:ov,font:ud,lineGap:av,rotate:0},ck="Value",fk="Time",q0={show:!0,scale:"x",auto:!1,sorted:1,min:ke,max:-ke,idxs:[]};function dk(e,t,n,r,l){return t.map(i=>i==null?"":id(i))}function pk(e,t,n,r,l,i,o){let s=[],u=ai.get(l)||0;n=o?n:je(si(n,l),u);for(let a=n;a<=r;a=je(a+l,u))s.push(Object.is(a,-0)?0:a);return s}function Wc(e,t,n,r,l,i,o){const s=[],u=e.scales[e.axes[t].scale].log,a=u==10?ir:U1,c=on(a(n));l=ii(u,c),u==10&&c<0&&(l=je(l,-c));let p=n;do s.push(p),p=p+l,u==10&&(p=je(p,ai.get(l))),p>=l*u&&(l=p);while(p<=r);return s}function hk(e,t,n,r,l,i,o){let u=e.scales[e.axes[t].scale].asinh,a=r>u?Wc(e,t,xt(u,n),r,l):[u],c=r>=0&&n<=0?[0]:[];return(n<-u?Wc(e,t,xt(u,-r),-n,l):[u]).reverse().map(d=>-d).concat(c,a)}const uv=/./,mk=/[12357]/,vk=/[125]/,K0=/1/,qc=(e,t,n,r)=>e.map((l,i)=>t==4&&l==0||i%r==0&&n.test(l.toExponential()[l<0?1:0])?l:null);function gk(e,t,n,r,l){let i=e.axes[n],o=i.scale,s=e.scales[o],u=e.valToPos,a=i._space,c=u(10,o),p=u(9,o)-c>=a?uv:u(7,o)-c>=a?mk:u(5,o)-c>=a?vk:K0;if(p==K0){let d=_t(u(1,o)-c);if(dl,Q0={show:!0,auto:!0,sorted:0,gaps:cv,alpha:1,facets:[it({},Y0,{scale:"x"}),it({},Y0,{scale:"y"})]},Z0={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:cv,alpha:1,points:{show:xk,filter:null},values:null,min:ke,max:-ke,idxs:[],path:null,clip:null};function kk(e,t,n,r,l){return n/10}const fv={time:U3,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Sk=it({},fv,{time:!1,ori:1}),J0={};function dv(e,t){let n=J0[e];return n||(n={key:e,plots:[],sub(r){n.plots.push(r)},unsub(r){n.plots=n.plots.filter(l=>l!=r)},pub(r,l,i,o,s,u,a){for(let c=0;c{let y=o.pxRound;const v=a.dir*(a.ori==0?1:-1),w=a.ori==0?mi:vi;let T,O;v==1?(T=n,O=r):(T=r,O=n);let R=y(p(s[T],a,x,g)),M=y(d(u[T],c,P,_)),L=y(p(s[O],a,x,g)),I=y(d(i==1?c.max:c.min,c,P,_)),b=new Path2D(l);return w(b,L,I),w(b,R,I),w(b,R,M),b})}function Da(e,t,n,r,l,i){let o=null;if(e.length>0){o=new Path2D;const s=t==0?Ia:fd;let u=n;for(let p=0;pd[0]){let g=d[0]-u;g>0&&s(o,u,r,g,r+i),u=d[1]}}let a=n+l-u,c=10;a>0&&s(o,u,r-c/2,a,r+i+c)}return o}function Ck(e,t,n){let r=e[e.length-1];r&&r[0]==t?r[1]=n:e.push([t,n])}function cd(e,t,n,r,l,i,o){let s=[],u=e.length;for(let a=l==1?n:r;a>=n&&a<=r;a+=l)if(t[a]===null){let p=a,d=a;if(l==1)for(;++a<=r&&t[a]===null;)d=a;else for(;--a>=n&&t[a]===null;)d=a;let g=i(e[p]),_=d==p?g:i(e[d]),x=p-l;g=o<=0&&x>=0&&x=0&&y>=0&&y=g&&s.push([g,_])}return s}function X0(e){return e==0?xx:e==1?Nt:t=>Gr(t,e)}function pv(e){let t=e==0?za:Fa,n=e==0?(l,i,o,s,u,a)=>{l.arcTo(i,o,s,u,a)}:(l,i,o,s,u,a)=>{l.arcTo(o,i,u,s,a)},r=e==0?(l,i,o,s,u)=>{l.rect(i,o,s,u)}:(l,i,o,s,u)=>{l.rect(o,i,u,s)};return(l,i,o,s,u,a=0,c=0)=>{a==0&&c==0?r(l,i,o,s,u):(a=nn(a,s/2,u/2),c=nn(c,s/2,u/2),t(l,i+a,o),n(l,i+s,o,i+s,o+u,a),n(l,i+s,o+u,i,o+u,c),n(l,i,o+u,i,o,c),n(l,i,o,i+s,o,a),l.closePath())}}const za=(e,t,n)=>{e.moveTo(t,n)},Fa=(e,t,n)=>{e.moveTo(n,t)},mi=(e,t,n)=>{e.lineTo(t,n)},vi=(e,t,n)=>{e.lineTo(n,t)},Ia=pv(0),fd=pv(1),hv=(e,t,n,r,l,i)=>{e.arc(t,n,r,l,i)},mv=(e,t,n,r,l,i)=>{e.arc(n,t,r,l,i)},vv=(e,t,n,r,l,i,o)=>{e.bezierCurveTo(t,n,r,l,i,o)},gv=(e,t,n,r,l,i,o)=>{e.bezierCurveTo(n,t,l,r,o,i)};function yv(e){return(t,n,r,l,i)=>hl(t,n,(o,s,u,a,c,p,d,g,_,x,P)=>{let{pxRound:y,points:v}=o,w,T;a.ori==0?(w=za,T=hv):(w=Fa,T=mv);const O=je(v.width*Te,3);let R=(v.size-v.width)/2*Te,M=je(R*2,3),L=new Path2D,I=new Path2D,{left:b,top:z,width:H,height:K}=t.bbox;Ia(I,b-M,z-M,H+M*2,K+M*2);const oe=se=>{if(u[se]!=null){let fe=y(p(s[se],a,x,g)),ne=y(d(u[se],c,P,_));w(L,fe+R,ne),T(L,fe,ne,R,0,Ds*2)}};if(i)i.forEach(oe);else for(let se=r;se<=l;se++)oe(se);return{stroke:O>0?L:null,fill:L,clip:I,flags:cl|da}})}function wv(e){return(t,n,r,l,i,o)=>{r!=l&&(i!=r&&o!=r&&e(t,n,r),i!=l&&o!=l&&e(t,n,l),e(t,n,o))}}const Tk=wv(mi),Pk=wv(vi);function _v(e){const t=Pe(e==null?void 0:e.alignGaps,0);return(n,r,l,i)=>hl(n,r,(o,s,u,a,c,p,d,g,_,x,P)=>{let y=o.pxRound,v=Y=>y(p(Y,a,x,g)),w=Y=>y(d(Y,c,P,_)),T,O;a.ori==0?(T=mi,O=Tk):(T=vi,O=Pk);const R=a.dir*(a.ori==0?1:-1),M={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:cl},L=M.stroke;let I=ke,b=-ke,z,H,K,oe=v(s[R==1?l:i]),se=ri(u,l,i,1*R),fe=ri(u,l,i,-1*R),ne=v(s[se]),q=v(s[fe]),J=!1;for(let Y=R==1?l:i;Y>=l&&Y<=i;Y+=R){let me=v(s[Y]),X=u[Y];me==oe?X!=null?(H=w(X),I==ke&&(T(L,me,H),z=H),I=nn(H,I),b=xt(H,b)):X===null&&(J=!0):(I!=ke&&(O(L,oe,I,b,z,H),K=oe),X!=null?(H=w(X),T(L,me,H),I=b=z=H):(I=ke,b=-ke,X===null&&(J=!0)),oe=me)}I!=ke&&I!=b&&K!=oe&&O(L,oe,I,b,z,H);let[G,re]=ba(n,r);if(o.fill!=null||G!=0){let Y=M.fill=new Path2D(L),me=o.fillTo(n,r,o.min,o.max,G),X=w(me);T(Y,q,X),T(Y,ne,X)}if(!o.spanGaps){let Y=[];J&&Y.push(...cd(s,u,l,i,R,v,t)),M.gaps=Y=o.gaps(n,r,l,i,Y),M.clip=Da(Y,a.ori,g,_,x,P)}return re!=0&&(M.band=re==2?[or(n,r,l,i,L,-1),or(n,r,l,i,L,1)]:or(n,r,l,i,L,re)),M})}function Ok(e){const t=Pe(e.align,1),n=Pe(e.ascDesc,!1),r=Pe(e.alignGaps,0),l=Pe(e.extend,!1);return(i,o,s,u)=>hl(i,o,(a,c,p,d,g,_,x,P,y,v,w)=>{let T=a.pxRound,{left:O,width:R}=i.bbox,M=G=>T(_(G,d,v,P)),L=G=>T(x(G,g,w,y)),I=d.ori==0?mi:vi;const b={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:cl},z=b.stroke,H=d.dir*(d.ori==0?1:-1);s=ri(p,s,u,1),u=ri(p,s,u,-1);let K=L(p[H==1?s:u]),oe=M(c[H==1?s:u]),se=oe,fe=oe;l&&t==-1&&(fe=O,I(z,fe,K)),I(z,oe,K);for(let G=H==1?s:u;G>=s&&G<=u;G+=H){let re=p[G];if(re==null)continue;let Y=M(c[G]),me=L(re);t==1?I(z,Y,K):I(z,se,me),I(z,Y,me),K=me,se=Y}let ne=se;l&&t==1&&(ne=O+R,I(z,ne,K));let[q,J]=ba(i,o);if(a.fill!=null||q!=0){let G=b.fill=new Path2D(z),re=a.fillTo(i,o,a.min,a.max,q),Y=L(re);I(G,ne,Y),I(G,fe,Y)}if(!a.spanGaps){let G=[];G.push(...cd(c,p,s,u,H,M,r));let re=a.width*Te/2,Y=n||t==1?re:-re,me=n||t==-1?-re:re;G.forEach(X=>{X[0]+=Y,X[1]+=me}),b.gaps=G=a.gaps(i,o,s,u,G),b.clip=Da(G,d.ori,P,y,v,w)}return J!=0&&(b.band=J==2?[or(i,o,s,u,z,-1),or(i,o,s,u,z,1)]:or(i,o,s,u,z,J)),b})}function Nk(e){e=e||so;const t=Pe(e.size,[.6,ke,1]),n=e.align||0,r=(e.gap||0)*Te;let l=e.radius;l=l==null?[0,0]:typeof l=="number"?[l,0]:l;const i=xe(l),o=1-t[0],s=Pe(t[1],ke)*Te,u=Pe(t[2],1)*Te,a=Pe(e.disp,so),c=Pe(e.each,g=>{}),{fill:p,stroke:d}=a;return(g,_,x,P)=>hl(g,_,(y,v,w,T,O,R,M,L,I,b,z)=>{let H=y.pxRound,K,oe;T.ori==0?[K,oe]=i(g,_):[oe,K]=i(g,_);const se=T.dir*(T.ori==0?1:-1),fe=O.dir*(O.ori==1?1:-1);let ne=T.ori==0?Ia:fd,q=T.ori==0?c:(te,Oe,$e,h,S,C,j)=>{c(te,Oe,$e,S,h,j,C)},[J,G]=ba(g,_),re=O.distr==3?J==1?O.max:O.min:0,Y=M(re,O,z,I),me,X,pe=H(y.width*Te),Le=!1,Ue=null,Be=null,tt=null,Ct=null;p!=null&&(pe==0||d!=null)&&(Le=!0,Ue=p.values(g,_,x,P),Be=new Map,new Set(Ue).forEach(te=>{te!=null&&Be.set(te,new Path2D)}),pe>0&&(tt=d.values(g,_,x,P),Ct=new Map,new Set(tt).forEach(te=>{te!=null&&Ct.set(te,new Path2D)})));let{x0:st,size:dn}=a,Qn=!0;if(st!=null&&dn!=null){v=st.values(g,_,x,P),st.unit==2&&(v=v.map(Oe=>g.posToVal(L+Oe*b,T.key,!0)));let te=dn.values(g,_,x,P);dn.unit==2?X=te[0]*b:X=R(te[0],T,b,L)-R(0,T,b,L),X=H(X-pe),me=se==1?-pe/2:X+pe/2}else{let te=b;if(v.length>1){let $e=null;for(let h=0,S=1/0;hte&&(Qn=!1)}const pn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:cl|da};let Zn;G!=0&&(pn.band=new Path2D,Zn=H(M(G==1?O.max:O.min,O,z,I)));const Cn=Le?null:new Path2D,hn=pn.band;let{y0:pt,y1:ue}=a,nt=null;pt!=null&&ue!=null&&(w=ue.values(g,_,x,P),nt=pt.values(g,_,x,P));let Ft=K*X,ye=oe*X;for(let te=se==1?x:P;te>=x&&te<=P;te+=se){let Oe=w[te];if(Oe===void 0)continue;let $e=T.distr!=2||a!=null?v[te]:te,h=R($e,T,b,L),S=M(Pe(Oe,re),O,z,I);nt!=null&&Oe!=null&&(Y=M(nt[te],O,z,I));let C=H(h-me),j=H(xt(S,Y)),F=H(nn(S,Y)),Q=j-F;if(Oe!=null){let ae=Oe<0?ye:Ft,he=Oe<0?Ft:ye;Le?(pe>0&&tt[te]!=null&&ne(Ct.get(tt[te]),C,F+on(pe/2),X,xt(0,Q-pe),ae,he),Ue[te]!=null&&ne(Be.get(Ue[te]),C,F+on(pe/2),X,xt(0,Q-pe),ae,he)):ne(Cn,C,F+on(pe/2),X,xt(0,Q-pe),ae,he),q(g,_,te,C-pe/2,F,X+pe,Q)}G!=0&&(Oe!=null||Qn)&&(fe*G==1?(j=F,F=Zn):(F=j,j=Zn),Q=j-F,ne(hn,C-pe/2,F,X+pe,xt(0,Q),0,0))}return pe>0&&(pn.stroke=Le?Ct:Cn),pn.fill=Le?Be:Cn,pn})}function Mk(e,t){const n=Pe(t==null?void 0:t.alignGaps,0);return(r,l,i,o)=>hl(r,l,(s,u,a,c,p,d,g,_,x,P,y)=>{let v=s.pxRound,w=ne=>v(d(ne,c,P,_)),T=ne=>v(g(ne,p,y,x)),O,R,M;c.ori==0?(O=za,M=mi,R=vv):(O=Fa,M=vi,R=gv);const L=c.dir*(c.ori==0?1:-1);i=ri(a,i,o,1),o=ri(a,i,o,-1);let I=w(u[L==1?i:o]),b=I,z=[],H=[];for(let ne=L==1?i:o;ne>=i&&ne<=o;ne+=L)if(a[ne]!=null){let J=u[ne],G=w(J);z.push(b=G),H.push(T(a[ne]))}const K={stroke:e(z,H,O,M,R,v),fill:null,clip:null,band:null,gaps:null,flags:cl},oe=K.stroke;let[se,fe]=ba(r,l);if(s.fill!=null||se!=0){let ne=K.fill=new Path2D(oe),q=s.fillTo(r,l,s.min,s.max,se),J=T(q);M(ne,b,J),M(ne,I,J)}if(!s.spanGaps){let ne=[];ne.push(...cd(u,a,i,o,L,w,n)),K.gaps=ne=s.gaps(r,l,i,o,ne),K.clip=Da(ne,c.ori,_,x,P,y)}return fe!=0&&(K.band=fe==2?[or(r,l,i,o,oe,-1),or(r,l,i,o,oe,1)]:or(r,l,i,o,oe,fe)),K})}function Rk(e){return Mk(Lk,e)}function Lk(e,t,n,r,l,i){const o=e.length;if(o<2)return null;const s=new Path2D;if(n(s,e[0],t[0]),o==2)r(s,e[1],t[1]);else{let u=Array(o),a=Array(o-1),c=Array(o-1),p=Array(o-1);for(let d=0;d0!=a[d]>0?u[d]=0:(u[d]=3*(p[d-1]+p[d])/((2*p[d]+p[d-1])/a[d-1]+(p[d]+2*p[d-1])/a[d]),isFinite(u[d])||(u[d]=0));u[o-1]=a[o-2];for(let d=0;d{Et.pxRatio=Te}));const jk=_v(),Ak=yv();function th(e,t,n,r){return(r?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((i,o)=>Gc(i,o,t,n))}function bk(e,t){return e.map((n,r)=>r==0?null:it({},t,n))}function Gc(e,t,n,r){return it({},t==0?n:r,e)}function xv(e,t,n){return t==null?ui:[t,n]}const Dk=xv;function zk(e,t,n){return t==null?ui:ca(t,n,ld,!0)}function kv(e,t,n,r){return t==null?ui:ja(t,n,e.scales[r].log,!1)}const Fk=kv;function Sv(e,t,n,r){return t==null?ui:rd(t,n,e.scales[r].log,!1)}const Ik=Sv;function Bk(e,t,n,r,l){let i=xt(L0(e),L0(t)),o=t-e,s=wr(l/r*o,n);do{let u=n[s],a=r*u/o;if(a>=l&&i+(u<5?ai.get(u):0)<=17)return[u,a]}while(++s(t=Nt((n=+l)*Te))+"px"),[e,t,n]}function $k(e){e.show&&[e.font,e.labelFont].forEach(t=>{let n=je(t[2]*Te,1);t[0]=t[0].replace(/[0-9.]+px/,n+"px"),t[1]=n})}function Et(e,t,n){const r={mode:Pe(e.mode,1)},l=r.mode;function i(f,m){return((m.distr==3?ir(f>0?f:m.clamp(r,f,m.min,m.max,m.key)):m.distr==4?Iu(f,m.asinh):f)-m._min)/(m._max-m._min)}function o(f,m,k,E){let N=i(f,m);return E+k*(m.dir==-1?1-N:N)}function s(f,m,k,E){let N=i(f,m);return E+k*(m.dir==-1?N:1-N)}function u(f,m,k,E){return m.ori==0?o(f,m,k,E):s(f,m,k,E)}r.valToPosH=o,r.valToPosV=s;let a=!1;r.status=0;const c=r.root=mn(W3);if(e.id!=null&&(c.id=e.id),en(c,e.class),e.title){let f=mn(G3,c);f.textContent=e.title}const p=Rn("canvas"),d=r.ctx=p.getContext("2d"),g=mn(Y3,c);nl("click",g,f=>{f.target===x&&(be!=vl||De!=gl)&&Pt.click(r,f)},!0);const _=r.under=mn(Q3,g);g.appendChild(p);const x=r.over=mn(Z3,g);e=rl(e);const P=+Pe(e.pxAlign,1),y=X0(P);(e.plugins||[]).forEach(f=>{f.opts&&(e=f.opts(r,e)||e)});const v=e.ms||.001,w=r.series=l==1?th(e.series||[],q0,Z0,!1):bk(e.series||[null],Q0),T=r.axes=th(e.axes||[],W0,G0,!0),O=r.scales={},R=r.bands=e.bands||[];R.forEach(f=>{f.fill=xe(f.fill||null),f.dir=Pe(f.dir,-1)});const M=l==2?w[1].facets[0].scale:w[0].scale,L={axes:bv,series:Mv},I=(e.drawOrder||["axes","series"]).map(f=>L[f]);function b(f){let m=O[f];if(m==null){let k=(e.scales||so)[f]||so;if(k.from!=null)b(k.from),O[f]=it({},O[k.from],k,{key:f});else{m=O[f]=it({},f==M?fv:Sk,k),m.key=f;let E=m.time,N=m.range,A=kr(N);if((f!=M||l==2&&!E)&&(A&&(N[0]==null||N[1]==null)&&(N={min:N[0]==null?N0:{mode:1,hard:N[0],soft:N[0]},max:N[1]==null?N0:{mode:1,hard:N[1],soft:N[1]}},A=!1),!A&&Aa(N))){let B=N;N=(W,Z,ie)=>Z==null?ui:ca(Z,ie,B)}m.range=xe(N||(E?Dk:f==M?m.distr==3?Fk:m.distr==4?Ik:xv:m.distr==3?kv:m.distr==4?Sv:zk)),m.auto=xe(A?!1:m.auto),m.clamp=xe(m.clamp||kk),m._min=m._max=null}}}b("x"),b("y"),l==1&&w.forEach(f=>{b(f.scale)}),T.forEach(f=>{b(f.scale)});for(let f in e.scales)b(f);const z=O[M],H=z.distr;let K,oe;z.ori==0?(en(c,q3),K=o,oe=s):(en(c,K3),K=s,oe=o);const se={};for(let f in O){let m=O[f];(m.min!=null||m.max!=null)&&(se[f]={min:m.min,max:m.max},m.min=m.max=null)}const fe=e.tzDate||(f=>new Date(Nt(f/v))),ne=e.fmtDate||od,q=v==1?Gx(fe):Zx(fe),J=H0(fe,$0(v==1?Kx:Qx,ne)),G=U0(fe,V0(Xx,ne)),re=[],Y=r.legend=it({},nk,e.legend),me=Y.show,X=Y.markers;Y.idxs=re,X.width=xe(X.width),X.dash=xe(X.dash),X.stroke=xe(X.stroke),X.fill=xe(X.fill);let pe,Le,Ue,Be=[],tt=[],Ct,st=!1,dn={};if(Y.live){const f=w[1]?w[1].values:null;st=f!=null,Ct=st?f(r,1,0):{_:0};for(let m in Ct)dn[m]=td}if(me)if(pe=Rn("table",rx,c),Ue=Rn("tbody",null,pe),Y.mount(r,pe),st){Le=Rn("thead",null,pe,Ue);let f=Rn("tr",null,Le);Rn("th",null,f);for(var Qn in Ct)Rn("th",g0,f).textContent=Qn}else en(pe,ix),Y.live&&en(pe,lx);const pn={show:!0},Zn={show:!1};function Cn(f,m){if(m==0&&(st||!Y.live||l==2))return ui;let k=[],E=Rn("tr",ox,Ue,Ue.childNodes[m]);en(E,f.class),f.show||en(E,Yr);let N=Rn("th",null,E);if(X.show){let W=mn(sx,N);if(m>0){let Z=X.width(r,m);Z&&(W.style.border=Z+"px "+X.dash(r,m)+" "+X.stroke(r,m)),W.style.background=X.fill(r,m)}}let A=mn(g0,N);A.textContent=f.label,m>0&&(X.show||(A.style.color=f.width>0?X.stroke(r,m):X.fill(r,m)),pt("click",N,W=>{if(de._lock)return;ut(W);let Z=w.indexOf(f);if((W.ctrlKey||W.metaKey)!=Y.isolate){let ie=w.some((V,le)=>le>0&&le!=Z&&V.show);w.forEach((V,le)=>{le>0&&In(le,ie?le==Z?pn:Zn:pn,!0,rt.setSeries)})}else In(Z,{show:!f.show},!0,rt.setSeries)},!1),pr&&pt(k0,N,W=>{de._lock||(ut(W),In(w.indexOf(f),_l,!0,rt.setSeries))},!1));for(var B in Ct){let W=Rn("td",ax,E);W.textContent="--",k.push(W)}return[E,k]}const hn=new Map;function pt(f,m,k,E=!0){const N=hn.get(m)||{},A=de.bind[f](r,m,k,E);A&&(nl(f,m,N[f]=A),hn.set(m,N))}function ue(f,m,k){const E=hn.get(m)||{};for(let N in E)(f==null||N==f)&&(Uc(N,m,E[N]),delete E[N]);f==null&&hn.delete(m)}let nt=0,Ft=0,ye=0,te=0,Oe=0,$e=0,h=0,S=0,C=0,j=0;r.bbox={};let F=!1,Q=!1,ae=!1,he=!1,at=!1,Qe=!1;function We(f,m,k){(k||f!=r.width||m!=r.height)&&ce(f,m),ki(!1),ae=!0,Q=!0,de.left>=0&&(he=Qe=!0),Hr()}function ce(f,m){r.width=nt=ye=f,r.height=Ft=te=m,Oe=$e=0,Fo(),Io();let k=r.bbox;h=k.left=Gr(Oe*Te,.5),S=k.top=Gr($e*Te,.5),C=k.width=Gr(ye*Te,.5),j=k.height=Gr(te*Te,.5)}const Tn=3;function Ha(){let f=!1,m=0;for(;!f;){m++;let k=jv(m),E=Av(m);f=m==Tn||k&&E,f||(ce(r.width,r.height),Q=!0)}}function gi({width:f,height:m}){We(f,m)}r.setSize=gi;function Fo(){let f=!1,m=!1,k=!1,E=!1;T.forEach((N,A)=>{if(N.show&&N._show){let{side:B,_size:W}=N,Z=B%2,ie=N.label!=null?N.labelSize:0,V=W+ie;V>0&&(Z?(ye-=V,B==3?(Oe+=V,E=!0):k=!0):(te-=V,B==0?($e+=V,f=!0):m=!0))}}),Fn[0]=f,Fn[1]=k,Fn[2]=m,Fn[3]=E,ye-=hr[1]+hr[3],Oe+=hr[3],te-=hr[2]+hr[0],$e+=hr[0]}function Io(){let f=Oe+ye,m=$e+te,k=Oe,E=$e;function N(A,B){switch(A){case 1:return f+=B,f-B;case 2:return m+=B,m-B;case 3:return k-=B,k+B;case 0:return E-=B,E+B}}T.forEach((A,B)=>{if(A.show&&A._show){let W=A.side;A._pos=N(W,A._size),A.label!=null&&(A._lpos=N(W,A.labelSize))}})}const de=r.cursor=it({},uk,{drag:{y:l==2}},e.cursor),ut=f=>{de.event=f};de.idxs=re,de._lock=!1;let Xt=de.points;Xt.show=xe(Xt.show),Xt.size=xe(Xt.size),Xt.stroke=xe(Xt.stroke),Xt.width=xe(Xt.width),Xt.fill=xe(Xt.fill);const Jn=r.focus=it({},e.focus||{alpha:.3},de.focus),pr=Jn.prox>=0;let ht=[null];function yi(f,m){if(m>0){let k=de.points.show(r,m);if(k)return en(k,nx),en(k,f.class),Cl(k,-10,-10,ye,te),x.insertBefore(k,ht[m]),k}}function $r(f,m){if(l==1||m>0){let k=l==1&&O[f.scale].time,E=f.value;f.value=k?D0(E)?U0(fe,V0(E,ne)):E||G:E||wk,f.label=f.label||(k?fk:ck)}if(m>0){f.width=f.width==null?1:f.width,f.paths=f.paths||jk||kx,f.fillTo=xe(f.fillTo||Ek),f.pxAlign=+Pe(f.pxAlign,P),f.pxRound=X0(f.pxAlign),f.stroke=xe(f.stroke||null),f.fill=xe(f.fill||null),f._stroke=f._fill=f._paths=f._focus=null;let k=_k(xt(1,f.width),1),E=f.points=it({},{size:k,width:xt(1,k*.2),stroke:f.stroke,space:k*2,paths:Ak,_stroke:null,_fill:null},f.points);E.show=xe(E.show),E.filter=xe(E.filter),E.fill=xe(E.fill),E.stroke=xe(E.stroke),E.paths=xe(E.paths),E.pxAlign=f.pxAlign}if(me){let k=Cn(f,m);Be.splice(m,0,k[0]),tt.splice(m,0,k[1]),Y.values.push(null)}if(de.show){re.splice(m,0,null);let k=yi(f,m);k&&ht.splice(m,0,k)}Ot("addSeries",m)}function wi(f,m){m=m??w.length,f=l==1?Gc(f,m,q0,Z0):Gc(f,m,null,Q0),w.splice(m,0,f),$r(w[m],m)}r.addSeries=wi;function Bo(f){if(w.splice(f,1),me){Y.values.splice(f,1),tt.splice(f,1);let m=Be.splice(f,1)[0];ue(null,m.firstChild),m.remove()}de.show&&(re.splice(f,1),ht.length>1&&ht.splice(f,1)[0].remove()),Ot("delSeries",f)}r.delSeries=Bo;const Fn=[!1,!1,!1,!1];function Pv(f,m){if(f._show=f.show,f.show){let k=f.side%2,E=O[f.scale];E==null&&(f.scale=k?w[1].scale:M,E=O[f.scale]);let N=E.time;f.size=xe(f.size),f.space=xe(f.space),f.rotate=xe(f.rotate),kr(f.incrs)&&f.incrs.forEach(B=>{!ai.has(B)&&ai.set(B,K1(B))}),f.incrs=xe(f.incrs||(E.distr==2?Vx:N?v==1?qx:Yx:Ux)),f.splits=xe(f.splits||(N&&E.distr==1?q:E.distr==3?Wc:E.distr==4?hk:pk)),f.stroke=xe(f.stroke),f.grid.stroke=xe(f.grid.stroke),f.ticks.stroke=xe(f.ticks.stroke),f.border.stroke=xe(f.border.stroke);let A=f.values;f.values=kr(A)&&!kr(A[0])?xe(A):N?kr(A)?H0(fe,$0(A,ne)):D0(A)?Jx(fe,A):A||J:A||dk,f.filter=xe(f.filter||(E.distr>=3&&E.log==10?gk:E.distr==3&&E.log==2?yk:W1)),f.font=nh(f.font),f.labelFont=nh(f.labelFont),f._size=f.size(r,null,m,0),f._space=f._rotate=f._incrs=f._found=f._splits=f._values=null,f._size>0&&(Fn[m]=!0,f._el=mn(J3,g))}}function _i(f,m,k,E){let[N,A,B,W]=k,Z=m%2,ie=0;return Z==0&&(W||A)&&(ie=m==0&&!N||m==2&&!B?Nt(W0.size/3):0),Z==1&&(N||B)&&(ie=m==1&&!A||m==3&&!W?Nt(G0.size/2):0),ie}const dd=r.padding=(e.padding||[_i,_i,_i,_i]).map(f=>xe(Pe(f,_i))),hr=r._padding=dd.map((f,m)=>f(r,m,Fn,0));let Tt,mt=null,vt=null;const $o=l==1?w[0].idxs:null;let Pn=null,Ho=!1;function pd(f,m){if(t=f==null?[]:rl(f,z0),l==2){Tt=0;for(let k=1;k=0,Qe=!0,Hr()}}r.setData=pd;function Va(){Ho=!0;let f,m;l==1&&(Tt>0?(mt=$o[0]=0,vt=$o[1]=Tt-1,f=t[0][mt],m=t[0][vt],H==2?(f=mt,m=vt):f==m&&(H==3?[f,m]=ja(f,f,z.log,!1):H==4?[f,m]=rd(f,f,z.log,!1):z.time?m=f+Nt(86400/v):[f,m]=ca(f,m,ld,!0))):(mt=$o[0]=f=null,vt=$o[1]=m=null)),yl(M,f,m)}let Vo,ml,Ua,Wa,qa,Ka,Ga,Ya,Qa,xi;function hd(f,m,k,E,N,A){f??(f=w0),k??(k=G1),E??(E="butt"),N??(N=w0),A??(A="round"),f!=Vo&&(d.strokeStyle=Vo=f),N!=ml&&(d.fillStyle=ml=N),m!=Ua&&(d.lineWidth=Ua=m),A!=qa&&(d.lineJoin=qa=A),E!=Ka&&(d.lineCap=Ka=E),k!=Wa&&d.setLineDash(Wa=k)}function md(f,m,k,E){m!=ml&&(d.fillStyle=ml=m),f!=Ga&&(d.font=Ga=f),k!=Ya&&(d.textAlign=Ya=k),E!=Qa&&(d.textBaseline=Qa=E)}function Za(f,m,k,E,N=0){if(E.length>0&&f.auto(r,Ho)&&(m==null||m.min==null)){let A=Pe(mt,0),B=Pe(vt,E.length-1),W=k.min==null?f.distr==3?mx(E,A,B):hx(E,A,B,N):[k.min,k.max];f.min=nn(f.min,k.min=W[0]),f.max=xt(f.max,k.max=W[1])}}function Ov(){let f=rl(O,z0);for(let E in f){let N=f[E],A=se[E];if(A!=null&&A.min!=null)it(N,A),E==M&&ki(!0);else if(E!=M||l==2)if(Tt==0&&N.from==null){let B=N.range(r,null,null,E);N.min=B[0],N.max=B[1]}else N.min=ke,N.max=-ke}if(Tt>0){w.forEach((E,N)=>{if(l==1){let A=E.scale,B=f[A],W=se[A];if(N==0){let Z=B.range(r,B.min,B.max,A);B.min=Z[0],B.max=Z[1],mt=wr(B.min,t[0]),vt=wr(B.max,t[0]),vt-mt>1&&(t[0][mt]B.max&&vt--),E.min=Pn[mt],E.max=Pn[vt]}else E.show&&E.auto&&Za(B,W,E,t[N],E.sorted);E.idxs[0]=mt,E.idxs[1]=vt}else if(N>0&&E.show&&E.auto){let[A,B]=E.facets,W=A.scale,Z=B.scale,[ie,V]=t[N];Za(f[W],se[W],A,ie,A.sorted),Za(f[Z],se[Z],B,V,B.sorted),E.min=B.min,E.max=B.max}});for(let E in f){let N=f[E],A=se[E];if(N.from==null&&(A==null||A.min==null)){let B=N.range(r,N.min==ke?null:N.min,N.max==-ke?null:N.max,E);N.min=B[0],N.max=B[1]}}}for(let E in f){let N=f[E];if(N.from!=null){let A=f[N.from];if(A.min==null)N.min=N.max=null;else{let B=N.range(r,A.min,A.max,E);N.min=B[0],N.max=B[1]}}}let m={},k=!1;for(let E in f){let N=f[E],A=O[E];if(A.min!=N.min||A.max!=N.max){A.min=N.min,A.max=N.max;let B=A.distr;A._min=B==3?ir(A.min):B==4?Iu(A.min,A.asinh):A.min,A._max=B==3?ir(A.max):B==4?Iu(A.max,A.asinh):A.max,m[E]=k=!0}}if(k){w.forEach((E,N)=>{l==2?N>0&&m.y&&(E._paths=null):m[E.scale]&&(E._paths=null)});for(let E in m)ae=!0,Ot("setScale",E);de.show&&de.left>=0&&(he=Qe=!0)}for(let E in se)se[E]=null}function Nv(f){let m=j0(mt-1,0,Tt-1),k=j0(vt+1,0,Tt-1);for(;f[m]==null&&m>0;)m--;for(;f[k]==null&&k0&&(w.forEach((f,m)=>{if(m>0&&f.show&&f._paths==null){let k=l==2?[0,t[m][0].length-1]:Nv(t[m]);f._paths=f.paths(r,m,k[0],k[1])}}),w.forEach((f,m)=>{if(m>0&&f.show){xi!=f.alpha&&(d.globalAlpha=xi=f.alpha),vd(m,!1),f._paths&&gd(m,!1);{vd(m,!0);let k=f._paths?f._paths.gaps:null,E=f.points.show(r,m,mt,vt,k),N=f.points.filter(r,m,E,k);(E||N)&&(f.points._paths=f.points.paths(r,m,mt,vt,N),gd(m,!0))}xi!=1&&(d.globalAlpha=xi=1),Ot("drawSeries",m)}}))}function vd(f,m){let k=m?w[f].points:w[f];k._stroke=k.stroke(r,f),k._fill=k.fill(r,f)}function gd(f,m){let k=m?w[f].points:w[f],E=k._stroke,N=k._fill,{stroke:A,fill:B,clip:W,flags:Z}=k._paths,ie=null,V=je(k.width*Te,3),le=V%2/2;m&&N==null&&(N=V>0?"#fff":E);let ge=k.pxAlign==1&&le>0;if(ge&&d.translate(le,le),!m){let Ze=h-V/2,_e=S-V/2,Ce=C+V,Ee=j+V;ie=new Path2D,ie.rect(Ze,_e,Ce,Ee)}m?Ja(E,V,k.dash,k.cap,N,A,B,Z,W):Rv(f,E,V,k.dash,k.cap,N,A,B,Z,ie,W),ge&&d.translate(-le,-le)}function Rv(f,m,k,E,N,A,B,W,Z,ie,V){let le=!1;R.forEach((ge,Ze)=>{if(ge.series[0]==f){let _e=w[ge.series[1]],Ce=t[ge.series[1]],Ee=(_e._paths||so).band;kr(Ee)&&(Ee=ge.dir==1?Ee[0]:Ee[1]);let Me,qe=null;_e.show&&Ee&&gx(Ce,mt,vt)?(qe=ge.fill(r,Ze)||A,Me=_e._paths.clip):Ee=null,Ja(m,k,E,N,qe,B,W,Z,ie,V,Me,Ee),le=!0}}),le||Ja(m,k,E,N,A,B,W,Z,ie,V)}const yd=cl|da;function Ja(f,m,k,E,N,A,B,W,Z,ie,V,le){hd(f,m,k,E,N),(Z||ie||le)&&(d.save(),Z&&d.clip(Z),ie&&d.clip(ie)),le?(W&yd)==yd?(d.clip(le),V&&d.clip(V),Wo(N,B),Uo(f,A,m)):W&da?(Wo(N,B),d.clip(le),Uo(f,A,m)):W&cl&&(d.save(),d.clip(le),V&&d.clip(V),Wo(N,B),d.restore(),Uo(f,A,m)):(Wo(N,B),Uo(f,A,m)),(Z||ie||le)&&d.restore()}function Uo(f,m,k){k>0&&(m instanceof Map?m.forEach((E,N)=>{d.strokeStyle=Vo=N,d.stroke(E)}):m!=null&&f&&d.stroke(m))}function Wo(f,m){m instanceof Map?m.forEach((k,E)=>{d.fillStyle=ml=E,d.fill(k)}):m!=null&&f&&d.fill(m)}function Lv(f,m,k,E){let N=T[f],A;if(E<=0)A=[0,0];else{let B=N._space=N.space(r,f,m,k,E),W=N._incrs=N.incrs(r,f,m,k,E,B);A=Bk(m,k,W,E,B)}return N._found=A}function Xa(f,m,k,E,N,A,B,W,Z,ie){let V=B%2/2;P==1&&d.translate(V,V),hd(W,B,Z,ie,W),d.beginPath();let le,ge,Ze,_e,Ce=N+(E==0||E==3?-A:A);k==0?(ge=N,_e=Ce):(le=N,Ze=Ce);for(let Ee=0;Ee{if(!k.show)return;let N=O[k.scale];if(N.min==null){k._show&&(m=!1,k._show=!1,ki(!1));return}else k._show||(m=!1,k._show=!0,ki(!1));let A=k.side,B=A%2,{min:W,max:Z}=N,[ie,V]=Lv(E,W,Z,B==0?ye:te);if(V==0)return;let le=N.distr==2,ge=k._splits=k.splits(r,E,W,Z,ie,V,le),Ze=N.distr==2?ge.map(Me=>Pn[Me]):ge,_e=N.distr==2?Pn[ge[1]]-Pn[ge[0]]:ie,Ce=k._values=k.values(r,k.filter(r,Ze,E,V,_e),E,V,_e);k._rotate=A==2?k.rotate(r,Ce,E,V):0;let Ee=k._size;k._size=li(k.size(r,Ce,E,f)),Ee!=null&&k._size!=Ee&&(m=!1)}),m}function Av(f){let m=!0;return dd.forEach((k,E)=>{let N=k(r,E,Fn,f);N!=hr[E]&&(m=!1),hr[E]=N}),m}function bv(){for(let f=0;fPn[Nn]):_e,Ee=V.distr==2?Pn[_e[1]]-Pn[_e[0]]:Z,Me=m.ticks,qe=m.border,Wt=Me.show?Nt(Me.size*Te):0,ze=m._rotate*-Ds/180,lt=y(m._pos*Te),jt=(Wt+Ze)*W,Xe=lt+jt;A=E==0?Xe:0,N=E==1?Xe:0;let Bt=m.font[0],On=m.align==1?El:m.align==2?zu:ze>0?El:ze<0?zu:E==0?"center":k==3?zu:El,gr=ze||E==1?"middle":k==2?Bi:y0;md(Bt,B,On,gr);let zd=m.font[1]*m.lineGap,Zo=_e.map(Nn=>y(u(Nn,V,le,ge))),Fd=m._values;for(let Nn=0;Nn{k>0&&(m._paths=null,f&&(l==1?(m.min=null,m.max=null):m.facets.forEach(E=>{E.min=null,E.max=null})))})}let eu=!1;function Hr(){eu||(Rx(Dv),eu=!0)}function Dv(){F&&(Ov(),F=!1),ae&&(Ha(),ae=!1),Q&&(He(_,El,Oe),He(_,Bi,$e),He(_,qi,ye),He(_,Ki,te),He(x,El,Oe),He(x,Bi,$e),He(x,qi,ye),He(x,Ki,te),He(g,qi,nt),He(g,Ki,Ft),p.width=Nt(nt*Te),p.height=Nt(Ft*Te),T.forEach(({_el:f,_show:m,_size:k,_pos:E,side:N})=>{if(f!=null)if(m){let A=N===3||N===0?k:0,B=N%2==1;He(f,B?"left":"top",E-A),He(f,B?"width":"height",k),He(f,B?"top":"left",B?$e:Oe),He(f,B?"height":"width",B?te:ye),Vc(f,Yr)}else en(f,Yr)}),Vo=ml=Ua=qa=Ka=Ga=Ya=Qa=Wa=null,xi=1,Oi(!0),Ot("setSize"),Q=!1),nt>0&&Ft>0&&(d.clearRect(0,0,p.width,p.height),Ot("drawClear"),I.forEach(f=>f()),Ot("draw")),It.show&&at&&(Go(It),at=!1),de.show&&he&&(Vr(null,!0,!1),he=!1),Y.show&&Y.live&&Qe&&(lu(),Qe=!1),a||(a=!0,r.status=1,Ot("ready")),Ho=!1,eu=!1}r.redraw=(f,m)=>{ae=m||!1,f!==!1?yl(M,z.min,z.max):Hr()};function tu(f,m){let k=O[f];if(k.from==null){if(Tt==0){let E=k.range(r,m.min,m.max,f);m.min=E[0],m.max=E[1]}if(m.min>m.max){let E=m.min;m.min=m.max,m.max=E}if(Tt>1&&m.min!=null&&m.max!=null&&m.max-m.min<1e-16)return;f==M&&k.distr==2&&Tt>0&&(m.min=wr(m.min,t[0]),m.max=wr(m.max,t[0]),m.min==m.max&&m.max++),se[f]=m,F=!0,Hr()}}r.setScale=tu;let nu,ru,qo,Ko,wd,_d,vl,gl,xd,kd,be,De,mr=!1;const Pt=de.drag;let gt=Pt.x,yt=Pt.y;de.show&&(de.x&&(nu=mn(ex,x)),de.y&&(ru=mn(tx,x)),z.ori==0?(qo=nu,Ko=ru):(qo=ru,Ko=nu),be=de.left,De=de.top);const It=r.select=it({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),Si=It.show?mn(X3,It.over?x:_):null;function Go(f,m){if(It.show){for(let k in f)It[k]=f[k],k in Td&&He(Si,k,f[k]);m!==!1&&Ot("setSelect")}}r.setSelect=Go;function zv(f,m){let k=w[f],E=me?Be[f]:null;k.show?E&&Vc(E,Yr):(E&&en(E,Yr),ht.length>1&&Cl(ht[f],-10,-10,ye,te))}function yl(f,m,k){tu(f,{min:m,max:k})}function In(f,m,k,E){m.focus!=null&&Hv(f),m.show!=null&&w.forEach((N,A)=>{A>0&&(f==A||f==null)&&(N.show=m.show,zv(A,m.show),yl(l==2?N.facets[1].scale:N.scale,null,null),Hr())}),k!==!1&&Ot("setSeries",f,m),E&&Ni("setSeries",r,f,m)}r.setSeries=In;function Fv(f,m){it(R[f],m)}function Iv(f,m){f.fill=xe(f.fill||null),f.dir=Pe(f.dir,-1),m=m??R.length,R.splice(m,0,f)}function Bv(f){f==null?R.length=0:R.splice(f,1)}r.addBand=Iv,r.setBand=Fv,r.delBand=Bv;function $v(f,m){w[f].alpha=m,de.show&&ht[f]&&(ht[f].style.opacity=m),me&&Be[f]&&(Be[f].style.opacity=m)}let wl,Ei,Ci;const _l={focus:!0};function Hv(f){if(f!=Ci){let m=f==null,k=Jn.alpha!=1;w.forEach((E,N)=>{let A=m||N==0||N==f;E._focus=m?null:A,k&&$v(N,A?1:Jn.alpha)}),Ci=f,k&&Hr()}}me&&pr&&pt(S0,pe,f=>{de._lock||(ut(f),Ci!=null&&In(null,_l,!0,rt.setSeries))});function Bn(f,m,k){let E=O[m];k&&(f=f/Te-(E.ori==1?$e:Oe));let N=ye;E.ori==1&&(N=te,f=N-f),E.dir==-1&&(f=N-f);let A=E._min,B=E._max,W=f/N,Z=A+(B-A)*W,ie=E.distr;return ie==3?ii(10,Z):ie==4?wx(Z,E.asinh):Z}function Vv(f,m){let k=Bn(f,M,m);return wr(k,t[0],mt,vt)}r.valToIdx=f=>wr(f,t[0]),r.posToIdx=Vv,r.posToVal=Bn,r.valToPos=(f,m,k)=>O[m].ori==0?o(f,O[m],k?C:ye,k?h:0):s(f,O[m],k?j:te,k?S:0);function Uv(f){f(r),Hr()}r.batch=Uv,r.setCursor=(f,m,k)=>{be=f.left,De=f.top,Vr(null,m,k)};function Sd(f,m){He(Si,El,It.left=f),He(Si,qi,It.width=m)}function Ed(f,m){He(Si,Bi,It.top=f),He(Si,Ki,It.height=m)}let Ti=z.ori==0?Sd:Ed,Pi=z.ori==1?Sd:Ed;function Wv(){if(me&&Y.live)for(let f=l==2?1:0;f{re[E]=k}):Ex(f.idx)||re.fill(f.idx),Y.idx=re[0]);for(let k=0;k0||l==1&&!st)&&qv(k,re[k]);me&&Y.live&&Wv(),Qe=!1,m!==!1&&Ot("setLegend")}r.setLegend=lu;function qv(f,m){let k=w[f],E=f==0&&H==2?Pn:t[f],N;st?N=k.values(r,f,m)??dn:(N=k.value(r,m==null?null:E[m],f,m),N=N==null?dn:{_:N}),Y.values[f]=N}function Vr(f,m,k){xd=be,kd=De,[be,De]=de.move(r,be,De),de.show&&(qo&&Cl(qo,Nt(be),0,ye,te),Ko&&Cl(Ko,0,Nt(De),ye,te));let E,N=mt>vt;wl=ke;let A=z.ori==0?ye:te,B=z.ori==1?ye:te;if(be<0||Tt==0||N){E=null;for(let W=0;W0&&ht.length>1&&Cl(ht[W],-10,-10,ye,te);pr&&In(null,_l,!0,f==null&&rt.setSeries),Y.live&&(re.fill(E),Qe=!0)}else{let W,Z,ie;l==1&&(W=z.ori==0?be:De,Z=Bn(W,M),E=wr(Z,t[0],mt,vt),ie=K(t[0][E],z,A,0));for(let V=l==2?1:0;V0&&le.show){let Me=Ce==null?-10:si(oe(Ce,l==1?O[le.scale]:O[le.facets[1].scale],B,0),1);if(pr&&Me>=0&&l==1){let ze=_t(Me-De);if(ze=0?1:-1,On=Xe>=0?1:-1;On==Bt&&(On==1?lt==1?Ce>=Xe:Ce<=Xe:lt==1?Ce<=Xe:Ce>=Xe)&&(wl=ze,Ei=V)}else wl=ze,Ei=V}}let qe,Wt;if(z.ori==0?(qe=Ee,Wt=Me):(qe=Me,Wt=Ee),Qe&&ht.length>1){dx(ht[V],de.points.fill(r,V),de.points.stroke(r,V));let ze,lt,jt,Xe,Bt=!0,On=de.points.bbox;if(On!=null){Bt=!1;let gr=On(r,V);jt=gr.left,Xe=gr.top,ze=gr.width,lt=gr.height}else jt=qe,Xe=Wt,ze=lt=de.points.size(r,V);px(ht[V],ze,lt,Bt),Cl(ht[V],jt,Xe,ye,te)}}}}if(de.idx=E,de.left=be,de.top=De,Qe&&(Y.idx=E,lu()),It.show&&mr)if(f!=null){let[W,Z]=rt.scales,[ie,V]=rt.match,[le,ge]=f.cursor.sync.scales,Ze=f.cursor.drag;if(gt=Ze._x,yt=Ze._y,gt||yt){let{left:_e,top:Ce,width:Ee,height:Me}=f.select,qe=f.scales[W].ori,Wt=f.posToVal,ze,lt,jt,Xe,Bt,On=W!=null&&ie(W,le),gr=Z!=null&&V(Z,ge);On&>?(qe==0?(ze=_e,lt=Ee):(ze=Ce,lt=Me),jt=O[W],Xe=K(Wt(ze,le),jt,A,0),Bt=K(Wt(ze+lt,le),jt,A,0),Ti(nn(Xe,Bt),_t(Bt-Xe))):Ti(0,A),gr&&yt?(qe==1?(ze=_e,lt=Ee):(ze=Ce,lt=Me),jt=O[Z],Xe=oe(Wt(ze,ge),jt,B,0),Bt=oe(Wt(ze+lt,ge),jt,B,0),Pi(nn(Xe,Bt),_t(Bt-Xe))):Pi(0,B)}else Yo()}else{let W=_t(xd-wd),Z=_t(kd-_d);if(z.ori==1){let ge=W;W=Z,Z=ge}gt=Pt.x&&W>=Pt.dist,yt=Pt.y&&Z>=Pt.dist;let ie=Pt.uni;ie!=null?gt&&yt&&(gt=W>=ie,yt=Z>=ie,!gt&&!yt&&(Z>W?yt=!0:gt=!0)):Pt.x&&Pt.y&&(gt||yt)&&(gt=yt=!0);let V,le;gt&&(z.ori==0?(V=vl,le=be):(V=gl,le=De),Ti(nn(V,le),_t(le-V)),yt||Pi(0,B)),yt&&(z.ori==1?(V=vl,le=be):(V=gl,le=De),Pi(nn(V,le),_t(le-V)),gt||Ti(0,A)),!gt&&!yt&&(Ti(0,0),Pi(0,0))}if(Pt._x=gt,Pt._y=yt,f==null){if(k){if(Dd!=null){let[W,Z]=rt.scales;rt.values[0]=W!=null?Bn(z.ori==0?be:De,W):null,rt.values[1]=Z!=null?Bn(z.ori==1?be:De,Z):null}Ni(_0,r,be,De,ye,te,E)}if(pr){let W=k&&rt.setSeries,Z=Jn.prox;Ci==null?wl<=Z&&In(Ei,_l,!0,W):wl>Z?In(null,_l,!0,W):Ei!=Ci&&In(Ei,_l,!0,W)}}m!==!1&&Ot("setCursor")}let vr=null;Object.defineProperty(r,"rect",{get(){return vr==null&&Oi(!1),vr}});function Oi(f=!1){f?vr=null:(vr=x.getBoundingClientRect(),Ot("syncRect",vr))}function Cd(f,m,k,E,N,A,B){de._lock||mr&&f!=null&&f.movementX==0&&f.movementY==0||(iu(f,m,k,E,N,A,B,!1,f!=null),f!=null?Vr(null,!0,!0):Vr(m,!0,!1))}function iu(f,m,k,E,N,A,B,W,Z){if(vr==null&&Oi(!1),ut(f),f!=null)k=f.clientX-vr.left,E=f.clientY-vr.top;else{if(k<0||E<0){be=-10,De=-10;return}let[ie,V]=rt.scales,le=m.cursor.sync,[ge,Ze]=le.values,[_e,Ce]=le.scales,[Ee,Me]=rt.match,qe=m.axes[0].side%2==1,Wt=z.ori==0?ye:te,ze=z.ori==1?ye:te,lt=qe?A:N,jt=qe?N:A,Xe=qe?E:k,Bt=qe?k:E;if(_e!=null?k=Ee(ie,_e)?u(ge,O[ie],Wt,0):-10:k=Wt*(Xe/lt),Ce!=null?E=Me(V,Ce)?u(Ze,O[V],ze,0):-10:E=ze*(Bt/jt),z.ori==1){let On=k;k=E,E=On}}Z&&((k<=1||k>=ye-1)&&(k=Gr(k,ye)),(E<=1||E>=te-1)&&(E=Gr(E,te))),W?(wd=k,_d=E,[vl,gl]=de.move(r,k,E)):(be=k,De=E)}const Td={width:0,height:0,left:0,top:0};function Yo(){Go(Td,!1)}let Pd,Od,Nd,Md;function Rd(f,m,k,E,N,A,B){mr=!0,gt=yt=Pt._x=Pt._y=!1,iu(f,m,k,E,N,A,B,!0,!1),f!=null&&(pt(Fu,$c,Ld,!1),Ni(x0,r,vl,gl,ye,te,null));let{left:W,top:Z,width:ie,height:V}=It;Pd=W,Od=Z,Nd=ie,Md=V,Yo()}function Ld(f,m,k,E,N,A,B){mr=Pt._x=Pt._y=!1,iu(f,m,k,E,N,A,B,!1,!0);let{left:W,top:Z,width:ie,height:V}=It,le=ie>0||V>0,ge=Pd!=W||Od!=Z||Nd!=ie||Md!=V;if(le&&ge&&Go(It),Pt.setScale&&le&&ge){let Ze=W,_e=ie,Ce=Z,Ee=V;if(z.ori==1&&(Ze=Z,_e=V,Ce=W,Ee=ie),gt&&yl(M,Bn(Ze,M),Bn(Ze+_e,M)),yt)for(let Me in O){let qe=O[Me];Me!=M&&qe.from==null&&qe.min!=ke&&yl(Me,Bn(Ce+Ee,Me),Bn(Ce,Me))}Yo()}else de.lock&&(de._lock=!de._lock,de._lock||Vr(null,!0,!1));f!=null&&(ue(Fu,$c),Ni(Fu,r,be,De,ye,te,null))}function Kv(f,m,k,E,N,A,B){if(de._lock)return;ut(f);let W=mr;if(mr){let Z=!0,ie=!0,V=10,le,ge;z.ori==0?(le=gt,ge=yt):(le=yt,ge=gt),le&&ge&&(Z=be<=V||be>=ye-V,ie=De<=V||De>=te-V),le&&Z&&(be=be{let N=rt.match[2];k=N(r,m,k),k!=-1&&In(k,E,!0,!1)},de.show&&(pt(x0,x,Rd),pt(_0,x,Cd),pt(k0,x,f=>{ut(f),Oi(!1)}),pt(S0,x,Kv),pt(E0,x,jd),Kc.add(r),r.syncRect=Oi);const Qo=r.hooks=e.hooks||{};function Ot(f,m,k){f in Qo&&Qo[f].forEach(E=>{E.call(null,r,m,k)})}(e.plugins||[]).forEach(f=>{for(let m in f.hooks)Qo[m]=(Qo[m]||[]).concat(f.hooks[m])});const bd=(f,m,k)=>k,rt=it({key:null,setSeries:!1,filters:{pub:A0,sub:A0},scales:[M,w[1]?w[1].scale:null],match:[b0,b0,bd],values:[null,null]},de.sync);rt.match.length==2&&rt.match.push(bd),de.sync=rt;const Dd=rt.key,ou=dv(Dd);function Ni(f,m,k,E,N,A,B){rt.filters.pub(f,m,k,E,N,A,B)&&ou.pub(f,m,k,E,N,A,B)}ou.sub(r);function Gv(f,m,k,E,N,A,B){rt.filters.sub(f,m,k,E,N,A,B)&&xl[f](null,m,k,E,N,A,B)}r.pub=Gv;function Yv(){ou.unsub(r),Kc.delete(r),hn.clear(),Uc(ua,Wl,Ad),c.remove(),pe==null||pe.remove(),Ot("destroy")}r.destroy=Yv;function su(){Ot("init",e,t),pd(t||e.data,!1),se[M]?tu(M,se[M]):Va(),at=It.show,he=Qe=!0,We(e.width,e.height)}return w.forEach($r),T.forEach(Pv),n?n instanceof HTMLElement?(n.appendChild(c),su()):n(r,su):su(),r}Et.assign=it;Et.fmtNum=id;Et.rangeNum=ca;Et.rangeLog=ja;Et.rangeAsinh=rd;Et.orient=hl;Et.pxRatio=Te;Et.join=Mx;Et.fmtDate=od,Et.tzDate=$x;Et.sync=dv;{Et.addGap=Ck,Et.clipGaps=Da;let e=Et.paths={points:yv};e.linear=_v,e.stepped=Ok,e.bars=Nk,e.spline=Rk}const Hk=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"}));function Vk(e,t){let[n,r]=V3(e,{formatSubMilliseconds:!0,compact:t}).split(" ").slice(0,2);return n.match(/[0-9]+s/)&&!t?(n=n.replace("s","."),r?r=r.substring(0,1):r="0",n+r+"s"):(r&&(n+=" "+r),n)}function rh(e){return I3(e)}var Uk=Et.fmtDate("{YYYY}-{MM}-{DD} {HH}:{mm}:{ss}");function Ba(e,t,n=!1){switch(e){case Kr.duration:return Vk(t,n);case Kr.bytes:return rh(t);case Kr.bps:return rh(t)+"/s";case Kr.counter:return m0(t).format("0.[0]a");case Kr.rps:return m0(t).format("0.[00]a")+"/s";case Kr.timestamp:return Uk(new Date(t*1e3));default:return isNaN(t)||t==null?"0":t.toFixed(2)}}function Wk(e){return function(t,n,r,l){return l==null?"--":n==null?"":Ba(e,n)}}var Ev=class{constructor(e,t,n){ve(this,"samples");ve(this,"series");const r=t.series.map(l=>l.query);this.samples=e.samples.select(r),this.samples.empty||(this.series=this.buildSeries(t.series,n))}get empty(){return this.samples.empty}get data(){const e=new Array;for(let t=0;t0&&(i=e[r].legend),n.push({stroke:t[l].stroke,fill:t[l].fill,value:Wk(this.samples[r].unit),points:{show:!1},label:i,scale:this.samples[r].unit})}return n}};function qk(e){let t;function n(i){t=document.createElement("div");const o={display:"none",position:"absolute",padding:"1rem",border:"1px solid #7b65fa",zIndex:"10",pointerEvents:"none",fontSize:"1.25rem"};Object.assign(t.style,o),i.over.appendChild(t),i.over.onmouseleave=()=>{t.style.display="none"},i.over.onmouseenter=()=>{t.style.display="block"}}function r(i){l(i)}function l(i){const o=i.over.getBoundingClientRect();t.style.background=e;const s=Kk(i);if(!s){t.style.display="none";return}t.innerHTML=s;const{left:u,top:a}=i.cursor,c=u??0,p=a??0;t.innerHTML=s,ci.over.focus()}}}function Kk(e){const{idx:t}=e.cursor;if(t==null)return"";let n;e.legend.values?n=e.legend.values[0]._:n="";let r=``;for(let l=1;l`}return r+="
${n}
${Gk(i,o)}${s}${u}
",r}function Gk(e,t){return``}var zs=(e=>(e.chart="chart",e.stat="stat",e.summary="summary",e))(zs||{}),Yk=class{constructor(e,t){ve(this,"view");ve(this,"metrics");this.metrics=t.metrics;const n=e.series.map(r=>r.query);this.view=t.summary.select(n)}get empty(){return this.view.empty}get cols(){return this.view.aggregates.length}get header(){return new Array("metric",...this.view.aggregates.map(e=>e))}get body(){const e=new Array;for(let t=0;tthis.format(this.view[t],r))),e.push(n)}return e}format(e,t){var n;const r=this.metrics.unit(((n=e.metric)==null?void 0:n.name)??"",t);return Ba(r,e.values[t],!0)}};function Qk(e,t){for(let n=0;nr.query)).empty}function Xk(e,t){return t.summary.select(e.series.map(r=>r.query)).empty}var eS=bo({conditions:void 0,styles:{borderRadius:{values:{true:{defaultClass:"_1c9nzq10"},false:{defaultClass:"_1c9nzq11"}}}}}),tS="_1c9nzq14",nS="_1c9nzq12",rS="_1c9nzq13";const lS=({children:e,title:t,isOpen:n,onClick:r})=>D.jsxs("div",{children:[D.jsxs(St,{as:"button",align:"center","aria-expanded":n,className:Yn(nS,eS({borderRadius:String(n)})),width:"100%",onClick:r,children:[n?D.jsx(Kn,{name:"chevron-up"}):D.jsx(Kn,{name:"chevron-down"}),D.jsx("h2",{className:rS,children:t})]}),n&&D.jsx("div",{className:tS,children:e})]});var iS=bo({conditions:{defaultCondition:"xs",conditionNames:["xs","sm","md","lg","xl","xxl"],responsiveArray:void 0},styles:{gridColumn:{values:{1:{conditions:{xs:"ag5hlo6",sm:"ag5hlo7",md:"ag5hlo8",lg:"ag5hlo9",xl:"ag5hloa",xxl:"ag5hlob"},defaultClass:"ag5hlo6"},2:{conditions:{xs:"ag5hloc",sm:"ag5hlod",md:"ag5hloe",lg:"ag5hlof",xl:"ag5hlog",xxl:"ag5hloh"},defaultClass:"ag5hloc"},3:{conditions:{xs:"ag5hloi",sm:"ag5hloj",md:"ag5hlok",lg:"ag5hlol",xl:"ag5hlom",xxl:"ag5hlon"},defaultClass:"ag5hloi"},4:{conditions:{xs:"ag5hloo",sm:"ag5hlop",md:"ag5hloq",lg:"ag5hlor",xl:"ag5hlos",xxl:"ag5hlot"},defaultClass:"ag5hloo"},5:{conditions:{xs:"ag5hlou",sm:"ag5hlov",md:"ag5hlow",lg:"ag5hlox",xl:"ag5hloy",xxl:"ag5hloz"},defaultClass:"ag5hlou"},6:{conditions:{xs:"ag5hlo10",sm:"ag5hlo11",md:"ag5hlo12",lg:"ag5hlo13",xl:"ag5hlo14",xxl:"ag5hlo15"},defaultClass:"ag5hlo10"},7:{conditions:{xs:"ag5hlo16",sm:"ag5hlo17",md:"ag5hlo18",lg:"ag5hlo19",xl:"ag5hlo1a",xxl:"ag5hlo1b"},defaultClass:"ag5hlo16"},8:{conditions:{xs:"ag5hlo1c",sm:"ag5hlo1d",md:"ag5hlo1e",lg:"ag5hlo1f",xl:"ag5hlo1g",xxl:"ag5hlo1h"},defaultClass:"ag5hlo1c"},9:{conditions:{xs:"ag5hlo1i",sm:"ag5hlo1j",md:"ag5hlo1k",lg:"ag5hlo1l",xl:"ag5hlo1m",xxl:"ag5hlo1n"},defaultClass:"ag5hlo1i"},10:{conditions:{xs:"ag5hlo1o",sm:"ag5hlo1p",md:"ag5hlo1q",lg:"ag5hlo1r",xl:"ag5hlo1s",xxl:"ag5hlo1t"},defaultClass:"ag5hlo1o"},11:{conditions:{xs:"ag5hlo1u",sm:"ag5hlo1v",md:"ag5hlo1w",lg:"ag5hlo1x",xl:"ag5hlo1y",xxl:"ag5hlo1z"},defaultClass:"ag5hlo1u"},12:{conditions:{xs:"ag5hlo20",sm:"ag5hlo21",md:"ag5hlo22",lg:"ag5hlo23",xl:"ag5hlo24",xxl:"ag5hlo25"},defaultClass:"ag5hlo20"}}}}}),lh={root:"ag5hlo1",variants:bo({conditions:void 0,styles:{gap:{values:{1:{defaultClass:"ag5hlo2"},2:{defaultClass:"ag5hlo3"},3:{defaultClass:"ag5hlo4"},4:{defaultClass:"ag5hlo5"}}}}})};function oS({as:e="div",gap:t=3,children:n,className:r,...l},i){return D.jsx(e,{ref:i,className:Yn(r,lh.root,lh.variants({gap:t})),...l,children:n})}function sS({children:e,as:t="div",className:n,xs:r=12,sm:l,md:i,lg:o,xl:s,xxl:u,...a},c){return D.jsx(t,{ref:c,className:Yn(n,iS({gridColumn:{xs:r,sm:l,md:i,lg:o,xl:s,xxl:u}})),...a,children:e})}const $a=Object.assign(U.forwardRef(oS),{Column:U.forwardRef(sS)});var Cv={exports:{}};const aS=Xv(Hk);(function(e,t){(function(r,l){e.exports=l(U,aS)})(self,(n,r)=>(()=>{var l={"./common/index.ts":(u,a,c)=>{c.r(a),c.d(a,{dataMatch:()=>g,optionsUpdateState:()=>d});var p=function(_,x){var P={};for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&x.indexOf(y)<0&&(P[y]=_[y]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,y=Object.getOwnPropertySymbols(_);v{u.exports=n},uplot:u=>{u.exports=r}},i={};function o(u){var a=i[u];if(a!==void 0)return a.exports;var c=i[u]={exports:{}};return l[u](c,c.exports,o),c.exports}o.n=u=>{var a=u&&u.__esModule?()=>u.default:()=>u;return o.d(a,{a}),a},o.d=(u,a)=>{for(var c in a)o.o(a,c)&&!o.o(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:a[c]})},o.o=(u,a)=>Object.prototype.hasOwnProperty.call(u,a),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var s={};return(()=>{/*!*******************************!*\ - !*** ./react/uplot-react.tsx ***! - \*******************************/o.r(s),o.d(s,{default:()=>g});var u=o("react"),a=o.n(u),c=o("uplot"),p=o.n(c),d=o("./common/index.ts");function g(_){var x=_.options,P=_.data,y=_.target,v=_.onDelete,w=v===void 0?function(){}:v,T=_.onCreate,O=T===void 0?function(){}:T,R=_.resetScales,M=R===void 0?!0:R,L=(0,u.useRef)(null),I=(0,u.useRef)(null);function b(K){K&&(w(K),K.destroy(),L.current=null)}function z(){var K=new(p())(x,P,y||I.current);L.current=K,O(K)}(0,u.useEffect)(function(){return z(),function(){b(L.current)}},[]);var H=(0,u.useRef)({options:x,data:P,target:y}).current;return(0,u.useEffect)(function(){if(H.options!==x){var K=(0,d.optionsUpdateState)(H.options,x);!L.current||K==="create"?(b(L.current),z()):K==="update"&&L.current.setSize({width:x.width,height:x.height})}return H.data!==P&&(L.current?(0,d.dataMatch)(H.data,P)||(M?L.current.setData(P,!0):(L.current.setData(P,!1),L.current.redraw())):z()),H.target!==y&&(b(L.current),z()),function(){H.options=x,H.data=P,H.target=y}},[x,P,y,M]),y?null:a().createElement("div",{ref:I})}})(),s=s.default,s})())})(Cv);var uS=Cv.exports;const Tv=pa(uS);var cS="_14dhllh0",fS="_14dhllh1",dS="_14dhllh3",pS="_14dhllh2";const hS=1,mS=70,vS=250,gS=Et.sync("chart"),yS=[[3600*24*365,"0",null,null,null,null,null,null,1],[3600*24*28,"0",null,null,null,null,null,null,1],[3600*24,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[3600,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[60,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[1,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[.001,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1]],wS=e=>({tooltip:e==="dark"?Jp[900]:Au.white,grid:e==="dark"?Jp[700]:P1[300],axes:e==="dark"?Au.white:Au.black}),_S=(e,t)=>t===0?yS:(n,r)=>r.map(l=>Ba(e,l)),xS=(e,t)=>(n,r)=>{const l={stroke:e.axes,grid:{stroke:e.grid,width:1},ticks:{stroke:e.grid},values:_S(n,r),scale:n,space:n==="timestamp"?60:40};return r===2&&t>2&&(l.side=hS),r!==0&&(l.size=mS),l},kS=({hooks:e,plot:t,theme:n,width:r})=>{const l=wS(n),i=t.samples.units,o=i.map(xS(l,i.length));return{class:pS,width:r,height:vS,hooks:e,cursor:{sync:{key:gS.key}},legend:{live:!1},series:t.series,axes:o,plugins:[qk(l.tooltip)]}},SS=aw(["show"]),ES=(e=[],t=[])=>e.map((n,r)=>SS(n,t[r])),CS=({plot:e,theme:t,width:n})=>{const[r,l]=U.useState(e.series),i={...e,series:ES(e.series,r)};return kS({hooks:{setSeries:[s=>l(s.series)]},plot:i,theme:t,width:n})};function TS({panel:e,container:t}){const n=pl(),{theme:r}=pi(),[l,{width:i}]=E1(),o=new Ev(n,e,O1(r)),s=!o.empty&&o.data[0].length>1,u=s?o.data:[],a=CS({plot:o,theme:r,width:i}),c=t?U.Fragment:La;function p(d){const g=r=="dark"?"#60606080":"#d0d0d080",_=d.root.querySelector(".u-select");_&&(_.style.background=g)}return D.jsx($a.Column,{xs:12,lg:e.fullWidth?12:6,children:D.jsx(c,{children:D.jsxs("div",{ref:l,children:[D.jsxs(St,{align:"center",gap:1,children:[D.jsx("h3",{className:dS,children:e.title}),D.jsx(Bc,{title:e.summary,children:D.jsx(Kn,{name:"info",width:"20px",height:"20px"})})]}),D.jsxs("div",{className:cS,children:[!s&&D.jsx("p",{className:fS,children:"no data"}),D.jsx(Tv,{options:a,data:u,onCreate:p})]})]})})})}var PS="ova0r31",OS="ova0r32",NS="ova0r30";const MS=32,RS=({digest:e,panel:t,plot:n,width:r})=>{const l=t.series[0].query,i=e.samples.query(l);let o;return i&&Array.isArray(i.values)&&i.values.length!==0&&(o=Ba(i.unit,Number(i.values.slice(-1)),!0)),{class:NS,width:r,height:MS,title:o,series:n.series,axes:[{show:!1},{show:!1}],legend:{show:!1},cursor:{show:!1}}};function LS({panel:e}){const t=pl(),{theme:n}=pi(),[r,{width:l}]=E1(),i=new Ev(t,e,O1(n));if(i.empty)return null;const o=RS({digest:t,panel:e,plot:i,width:l});return D.jsx($a.Column,{xs:6,md:4,lg:2,children:D.jsx(La,{className:PS,children:D.jsxs(St,{direction:"column",justify:"end",gap:0,height:"100%",children:[D.jsx("p",{className:OS,children:e.title}),D.jsx("div",{ref:r,children:D.jsx(Tv,{options:o,data:i.data})})]})})})}var jS="_12owwid0",AS="_12owwid4",bS="_12owwid1",DS={thead:"_12owwid2",tbody:"_12owwid3"};function zS({children:e,...t}){return D.jsx("table",{className:jS,...t,children:e})}function FS({children:e,...t}){return D.jsx("thead",{...t,children:e})}function IS({children:e,...t}){return D.jsx("tbody",{...t,children:e})}function BS({children:e,...t}){return D.jsx("th",{className:bS,...t,children:e})}function $S({children:e,isHead:t=!1,...n}){return D.jsx("tr",{className:DS[t?"thead":"tbody"],...n,children:e})}function HS({children:e,...t}){return D.jsx("td",{className:AS,...t,children:e})}function VS({children:e,...t}){return D.jsx("tfoot",{...t,children:e})}const Ur=Object.assign(zS,{Body:IS,Cell:HS,Footer:VS,Head:FS,Header:BS,Row:$S});var US="_57i9sh1",WS="_57i9sh0";var qS="_1jb2mvv0",KS="_1jb2mvv2",GS="_1jb2mvv1";function YS({children:e,className:t,title:n,...r},l){return D.jsxs(La,{ref:l,className:Yn(qS,t),...r,children:[n&&D.jsx("h3",{className:GS,children:n}),D.jsx("div",{className:KS,children:e})]})}const QS=U.forwardRef(YS);function ZS({panel:e}){const t=pl(),n=new Yk(e,t);if(n.empty)return D.jsx("div",{});const r=n.view.aggregates.length,l=r>6?12:r>1?6:3,i=r>6||r>1?12:6;return D.jsx($a.Column,{xs:12,md:i,lg:l,children:D.jsx(QS,{className:WS,title:e.title,children:D.jsx("div",{className:US,children:D.jsxs(Ur,{children:[D.jsx(Ur.Head,{children:D.jsx(Ur.Row,{isHead:!0,children:n.header.map((o,s)=>D.jsx(Ur.Header,{align:s==0?"left":"right",children:o},e.id+"header"+o))})}),D.jsx(Ur.Body,{children:n.body.map((o,s)=>D.jsx(Ur.Row,{children:o.map((u,a)=>D.jsx(Ur.Cell,{align:a==0?"left":"right",children:u},e.id+"_value_"+s+"_"+a))},e.id+"row"+s))})]})})},e.id)})}function JS({container:e,panel:t}){switch(t.kind){case zs.chart:return D.jsx(TS,{panel:t,container:e});case zs.stat:return D.jsx(LS,{panel:t});case zs.summary:return D.jsx(ZS,{panel:t});default:return null}}var XS="_1ls5syl0";function ih({container:e,section:t}){return D.jsx($a,{gap:e?4:3,children:t.panels.map(n=>D.jsx(JS,{panel:n,container:e},n.id))})}function e5({section:e}){const[t,n]=U.useState(!0),r=pl();return Qk(e,r)?null:e.title?D.jsx(St,{direction:"column",children:D.jsx(lS,{title:e.title,isOpen:t,onClick:()=>n(!t),children:D.jsx(ih,{container:!0,section:e})})}):D.jsxs(St,{direction:"column",children:[e.summary&&D.jsx("p",{className:XS,children:e.summary}),D.jsx(ih,{section:e})]})}var t5="_1t22owt0",n5="_1t22owt1";function r5(){const e=pl(),{themeClassName:t}=pi(),[n,r]=U.useState(0),l=!!e.samples.length;return D.jsxs(St,{className:`${t} ${t5}`,direction:"column",gap:0,children:[D.jsx(N3,{config:e.config,tab:n,onTabChange:r}),D.jsx(St,{as:"main",className:n5,direction:"column",grow:l?0:1,children:D.jsx(j3,{isLoading:!l,message:"Loading...",children:e.config.tabs.map((i,o)=>D.jsx(l5,{active:n,idx:o,children:i.sections.map(s=>D.jsx(e5,{section:s},s.id))},i.id))})})]})}function l5({children:e,active:t,idx:n}){return t!==n?null:D.jsx(St,{direction:"column",gap:3,children:e})}const i5=new URLSearchParams(window.location.search).get("endpoint")||"http://localhost:5665/",o5=document.getElementById("root");Vu.createRoot(o5).render(D.jsx(j2,{endpoint:i5+"events",children:D.jsx(I2,{children:D.jsx(r5,{})})})); diff --git a/dashboard/assets/packages/ui/dist/assets/index-8105e2d0.css b/dashboard/assets/packages/ui/dist/assets/index-8105e2d0.css new file mode 100644 index 0000000..4709b7f --- /dev/null +++ b/dashboard/assets/packages/ui/dist/assets/index-8105e2d0.css @@ -0,0 +1 @@ +*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}*{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}html{font-size:62.5%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{letter-spacing:.075em;line-height:1.5;text-rendering:optimizeLegibility}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{font-size:1.25rem}#root{isolation:isolate}@keyframes ughkw70{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--_1dwurlb0: 3px;--_1dwurlb1: 5px;--_1dwurlb2: 10px;--_1dwurlb3: 25px;--_1dwurlb4: .25rem;--_1dwurlb5: .5rem;--_1dwurlb6: .75rem;--_1dwurlb7: 1rem;--_1dwurlb8: 1.25rem;--_1dwurlb9: 1.5rem;--_1dwurlba: 1.75rem;--_1dwurlbb: 2rem;--_1dwurlbc: 3rem;--_1dwurlbd: 4rem;--_1dwurlbe: 5rem;--_1dwurlbf: 0px;--_1dwurlbg: 480px;--_1dwurlbh: 768px;--_1dwurlbi: 1024px;--_1dwurlbj: 1440px;--_1dwurlbk: 1920px;--_1dwurlbl: ughkw70;--_1dwurlbm: .5rem;--_1dwurlbn: .75rem;--_1dwurlbo: 1rem;--_1dwurlbp: 1.1rem;--_1dwurlbq: 1.25rem;--_1dwurlbr: 1.5rem;--_1dwurlbs: 2rem;--_1dwurlbt: 2.5rem;--_1dwurlbu: 3rem;--_1dwurlbv: 3.5rem;--_1dwurlbw: 100;--_1dwurlbx: 200;--_1dwurlby: 300;--_1dwurlbz: 400;--_1dwurlb10: 500;--_1dwurlb11: 600;--_1dwurlb12: 700;--_1dwurlb13: 800;--_1dwurlb14: 900;--_1dwurlb15: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;--_1dwurlb16: ui-serif,serif;--_1dwurlb17: Dank Mono,Operator Mono,Inconsolata,Fira Mono,ui-monospace,SF Mono,Monaco,Droid Sans Mono,Source Code Pro,monospace;--_1dwurlb18: -.05em;--_1dwurlb19: .025em;--_1dwurlb1a: .05em;--_1dwurlb1b: .075em;--_1dwurlb1c: .15em;--_1dwurlb1d: .5em;--_1dwurlb1e: .75em;--_1dwurlb1f: 1em;--_1dwurlb1g: .95;--_1dwurlb1h: 1.1;--_1dwurlb1i: 1.25;--_1dwurlb1j: 1.375;--_1dwurlb1k: 1.5;--_1dwurlb1l: 1.75;--_1dwurlb1m: 2}._1dwurlb27{--_1dwurlb1n: #000000;--_1dwurlb1o: #ffffff;--_1dwurlb1p: #8e7de5;--_1dwurlb1q: #6e59de;--_1dwurlb1r: #604ec2;--_1dwurlb1s: #ffffff;--_1dwurlb1t: #fafafa;--_1dwurlb1u: #eeeeee;--_1dwurlb1v: #212121;--_1dwurlb1w: #616161;--_1dwurlb1x: #bdbdbd;--_1dwurlb1y: #9e9e9e;--_1dwurlb1z: #e0e0e0;--_1dwurlb20: #eeeeee;--_1dwurlb21: #e0e0e0;--_1dwurlb22: #e0e0e0;--_1dwurlb23: #6e59de;--_1dwurlb24: #6e59de;--_1dwurlb25: #edeafb;--_1dwurlb26: #eeeeee}._1dwurlb28{--_1dwurlb1n: #000000;--_1dwurlb1o: #ffffff;--_1dwurlb1p: #8e7de5;--_1dwurlb1q: #6e59de;--_1dwurlb1r: #604ec2;--_1dwurlb1s: #394160;--_1dwurlb1t: #2c324b;--_1dwurlb1u: #1F2537;--_1dwurlb1v: #ffffff;--_1dwurlb1w: #D6DCFF;--_1dwurlb1x: #3f486b;--_1dwurlb1y: #ffffff;--_1dwurlb1z: #3f486b;--_1dwurlb20: #394160;--_1dwurlb21: #1F2537;--_1dwurlb22: #394160;--_1dwurlb23: #8e7de5;--_1dwurlb24: #8e7de5;--_1dwurlb25: #372c6f;--_1dwurlb26: #3f486b}.wy7gkc0{flex-direction:row}.wy7gkc1{flex-direction:column}.wy7gkc2{flex-wrap:nowrap}.wy7gkc3{flex-wrap:wrap}.wy7gkc4{flex-wrap:wrap-reverse}.wy7gkc5{align-items:flex-start}.wy7gkc6{align-items:flex-end}.wy7gkc7{align-items:stretch}.wy7gkc8{align-items:center}.wy7gkc9{align-items:baseline}.wy7gkca{align-items:start}.wy7gkcb{align-items:end}.wy7gkcc{align-items:self-start}.wy7gkcd{align-items:self-end}.wy7gkce{justify-content:flex-start}.wy7gkcf{justify-content:flex-end}.wy7gkcg{justify-content:start}.wy7gkch{justify-content:end}.wy7gkci{justify-content:left}.wy7gkcj{justify-content:right}.wy7gkck{justify-content:center}.wy7gkcl{justify-content:space-between}.wy7gkcm{justify-content:space-around}.wy7gkcn{justify-content:space-evenly}.wy7gkco{gap:0}.wy7gkcp{gap:var(--_1dwurlb4)}.wy7gkcq{gap:var(--_1dwurlb5)}.wy7gkcr{gap:var(--_1dwurlb9)}.wy7gkcs{gap:var(--_1dwurlbc)}.wy7gkct{gap:var(--_1dwurlbe)}.wy7gkcu{padding:0}.wy7gkcv{padding:var(--_1dwurlb4)}.wy7gkcw{padding:var(--_1dwurlb5)}.wy7gkcx{padding:var(--_1dwurlb9)}.wy7gkcy{padding:var(--_1dwurlbc)}.wy7gkcz{padding:var(--_1dwurlbe)}.wy7gkc15{display:flex;flex-grow:var(--wy7gkc10);flex-shrink:var(--wy7gkc11);flex-basis:var(--wy7gkc12);height:var(--wy7gkc13);width:var(--wy7gkc14)}._17y8ldl0{background-color:transparent;border:none;color:var(--_1dwurlb1v);font-size:var(--_1dwurlbq);font-weight:var(--_1dwurlb10)}._17y8ldl0:is(:disabled){opacity:.5;cursor:not-allowed}._17y8ldl0:not(:disabled){cursor:pointer}._17y8ldl1{border-radius:var(--_1dwurlb0);font-weight:var(--_1dwurlb11);letter-spacing:var(--_1dwurlb1c);padding:var(--_1dwurlb6) var(--_1dwurlbb);text-transform:uppercase}._17y8ldl2{background-color:var(--_1dwurlb1q);color:var(--_1dwurlb1o)}._17y8ldl2:hover:not(:active){background-color:var(--_1dwurlb1p)}._17y8ldl2:active{background-color:var(--_1dwurlb1r)}._17y8ldl3{outline:2px solid var(--_1dwurlb23);outline-offset:-2px;color:var(--_1dwurlb24)}._17y8ldl3:hover{background-color:var(--_1dwurlb25)}._6j0qom0{position:sticky;bottom:0;left:0;padding:var(--_1dwurlb8) var(--_1dwurlb9);background-color:var(--_1dwurlb1u);text-align:right}._17unuvp0{background-color:var(--_1dwurlb22);height:3px}.iy2n4g0{padding:var(--_1dwurlb4) var(--_1dwurlb4);position:relative}.iy2n4g0:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:100%;transform:scale(0);transition:transform .2s ease-in-out;z-index:-1}.iy2n4g0:hover:before{background-color:var(--_1dwurlb20);transform:scale(1)}.iy2n4g0:active:before{background-color:var(--_1dwurlb1z)}.iy2n4g3{color:var(--_1dwurlb1v)}._1sxwks00{background-color:var(--_1dwurlb1t);border-radius:var(--_1dwurlb1);padding:var(--_1dwurlbb)}._1x45rmb0{background-color:var(--_1dwurlb1t);border:1px solid var(--_1dwurlb1q);padding:0;min-width:150px;overflow:hidden;z-index:10}._1x45rmb1{box-shadow:0 0 8px #00000026}._1x45rmb2{box-shadow:0 0 8px #000c}._1x45rmb3{cursor:pointer;font-size:var(--_1dwurlb8);padding:var(--_1dwurlb6)}._1x45rmb3:hover{background-color:var(--_1dwurlb20)}.tz5dd50{background:var(--_1dwurlb1t);overflow:auto;padding:var(--_1dwurlb5) var(--_1dwurlb9)}.tz5dd51{display:none}.tz5dd53{display:block}.tz5dd55{padding:var(--_1dwurlb6) var(--_1dwurlba);font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb10);position:relative;cursor:pointer;z-index:1}.tz5dd55:before{content:"";position:absolute;left:0;top:0;bottom:0;margin:auto;width:100%;height:80%;border-radius:var(--_1dwurlb1);z-index:-1}.tz5dd56{color:var(--_1dwurlb1v)}.tz5dd56:before{background:var(--_1dwurlb20)}.tz5dd57{color:var(--_1dwurlb1w)}.tz5dd57:hover:before{color:var(--_1dwurlb1v);background:var(--_1dwurlb20);opacity:.7}@media screen and (min-width: 1024px){.tz5dd50{padding:0 var(--_1dwurlba)}}@media (min-width: 1024px){.tz5dd52{display:none}.tz5dd54{display:block}}@keyframes _1e0qizf0{0%{background-position:200% 0}to{background-position:-200% 0}}._1e0qizf1{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;overflow:hidden;width:100%;height:100%;top:0;left:0;z-index:0}._1e0qizf1::-webkit-progress-bar{background-color:var(--_1dwurlb22)}._1e0qizf1::-webkit-progress-value{background-color:var(--_1dwurlb1q);transition:1s width}._1e0qizf1:indeterminate{animation:_1e0qizf0 1.5s linear infinite;background-color:var(--_1dwurlb22);background-image:linear-gradient(to right,var(--_1dwurlb1q) 30%,var(--_1dwurlb22) 30%);background-position:top left;background-repeat:no-repeat;background-size:150% 150%}._1e0qizf1:indeterminate._1e0qizf1::-webkit-progress-bar{background-color:transparent}._1e0qizf3:indeterminate{background-image:none}._1e0qizf4{position:relative;bottom:0;left:0;height:3px;width:100%}._1e0qizf5{color:#fff;position:relative;padding:calc(var(--_1dwurlb8) / 2);z-index:1;text-align:center;font-size:var(--_1dwurlbq)}._1lpb9zp0{border:1px solid var(--_1dwurlb1q);border-radius:0;font-size:var(--_1dwurlbq);max-width:600px;padding:var(--_1dwurlb7);z-index:10}._1lpb9zp1{background-color:var(--_1dwurlb1s)}._1lpb9zp2{background-color:var(--_1dwurlb1u)}._1lpb9zp3{position:absolute;width:8px;height:8px;background:inherit;visibility:hidden}._1lpb9zp3:before{content:"";position:absolute;border:1px solid transparent;width:8px;height:8px;background:inherit;visibility:visible;transform:rotate(45deg)}._1lpb9zp4{bottom:-4px}._1lpb9zp4:before{border-bottom-color:var(--_1dwurlb1q);border-right-color:var(--_1dwurlb1q)}._1lpb9zp5{top:-4px}._1lpb9zp5:before{border-top-color:var(--_1dwurlb1q);border-left-color:var(--_1dwurlb1q)}._1lpb9zp6{right:-4px}._1lpb9zp6:before{border-top-color:var(--_1dwurlb1q);border-right-color:var(--_1dwurlb1q)}._1lpb9zp7{left:-4px}._1lpb9zp7:before{border-bottom-color:var(--_1dwurlb1q);border-left-color:var(--_1dwurlb1q)}.kfrms70{background-color:var(--_1dwurlb1t);box-shadow:0 0 10px var(--_1dwurlb21);position:sticky;top:0;z-index:1}.kfrms71{padding:var(--_1dwurlb6) var(--_1dwurlb9)}.kfrms72{padding:0}.kfrms74{border:2px solid var(--_1dwurlb22);padding:var(--_1dwurlb6) var(--_1dwurlb8);border-radius:var(--_1dwurlb1)}@media (min-width: 1024px){.kfrms73{display:none}}._1isundr0{animation:var(--_1dwurlbl) 1s linear infinite;color:var(--_1dwurlb1w)}._1c9nzq10{border-radius:var(--_1dwurlb1) var(--_1dwurlb1) 0 0}._1c9nzq11{border-radius:var(--_1dwurlb1)}._1c9nzq12{color:var(--_1dwurlb1w);padding:var(--_1dwurlb9);background-color:var(--_1dwurlb1s);cursor:pointer;border:none}._1c9nzq13{font-size:var(--_1dwurlbs);font-weight:var(--_1dwurlb10)}._1c9nzq14{padding:var(--_1dwurlbb);background-color:var(--_1dwurlb1t)}.ag5hlo1{container-name:ag5hlo0;container-type:inline-size;display:grid;grid-template-rows:auto;grid-template-columns:repeat(12,1fr)}.ag5hlo2{gap:var(--_1dwurlb4)}.ag5hlo3{gap:clamp(var(--_1dwurlb4),4vw,var(--_1dwurlb5))}.ag5hlo4{gap:clamp(var(--_1dwurlb4),4vw,var(--_1dwurlb9))}.ag5hlo5{gap:clamp(var(--_1dwurlb4),4vw,var(--_1dwurlbe))}@container ag5hlo0 (min-width: 0px){.ag5hlo6{grid-column:span 1}.ag5hloc{grid-column:span 2}.ag5hloi{grid-column:span 3}.ag5hloo{grid-column:span 4}.ag5hlou{grid-column:span 5}.ag5hlo10{grid-column:span 6}.ag5hlo16{grid-column:span 7}.ag5hlo1c{grid-column:span 8}.ag5hlo1i{grid-column:span 9}.ag5hlo1o{grid-column:span 10}.ag5hlo1u{grid-column:span 11}.ag5hlo20{grid-column:span 12}}@container ag5hlo0 (min-width: 480px){.ag5hlo7{grid-column:span 1}.ag5hlod{grid-column:span 2}.ag5hloj{grid-column:span 3}.ag5hlop{grid-column:span 4}.ag5hlov{grid-column:span 5}.ag5hlo11{grid-column:span 6}.ag5hlo17{grid-column:span 7}.ag5hlo1d{grid-column:span 8}.ag5hlo1j{grid-column:span 9}.ag5hlo1p{grid-column:span 10}.ag5hlo1v{grid-column:span 11}.ag5hlo21{grid-column:span 12}}@container ag5hlo0 (min-width: 768px){.ag5hlo8{grid-column:span 1}.ag5hloe{grid-column:span 2}.ag5hlok{grid-column:span 3}.ag5hloq{grid-column:span 4}.ag5hlow{grid-column:span 5}.ag5hlo12{grid-column:span 6}.ag5hlo18{grid-column:span 7}.ag5hlo1e{grid-column:span 8}.ag5hlo1k{grid-column:span 9}.ag5hlo1q{grid-column:span 10}.ag5hlo1w{grid-column:span 11}.ag5hlo22{grid-column:span 12}}@container ag5hlo0 (min-width: 1024px){.ag5hlo9{grid-column:span 1}.ag5hlof{grid-column:span 2}.ag5hlol{grid-column:span 3}.ag5hlor{grid-column:span 4}.ag5hlox{grid-column:span 5}.ag5hlo13{grid-column:span 6}.ag5hlo19{grid-column:span 7}.ag5hlo1f{grid-column:span 8}.ag5hlo1l{grid-column:span 9}.ag5hlo1r{grid-column:span 10}.ag5hlo1x{grid-column:span 11}.ag5hlo23{grid-column:span 12}}@container ag5hlo0 (min-width: 1440px){.ag5hloa{grid-column:span 1}.ag5hlog{grid-column:span 2}.ag5hlom{grid-column:span 3}.ag5hlos{grid-column:span 4}.ag5hloy{grid-column:span 5}.ag5hlo14{grid-column:span 6}.ag5hlo1a{grid-column:span 7}.ag5hlo1g{grid-column:span 8}.ag5hlo1m{grid-column:span 9}.ag5hlo1s{grid-column:span 10}.ag5hlo1y{grid-column:span 11}.ag5hlo24{grid-column:span 12}}@container ag5hlo0 (min-width: 1920px){.ag5hlob{grid-column:span 1}.ag5hloh{grid-column:span 2}.ag5hlon{grid-column:span 3}.ag5hlot{grid-column:span 4}.ag5hloz{grid-column:span 5}.ag5hlo15{grid-column:span 6}.ag5hlo1b{grid-column:span 7}.ag5hlo1h{grid-column:span 8}.ag5hlo1n{grid-column:span 9}.ag5hlo1t{grid-column:span 10}.ag5hlo1z{grid-column:span 11}.ag5hlo25{grid-column:span 12}}.uplot,.uplot *,.uplot *:before,.uplot *:after{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:rgba(0,0,0,.07);position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607D8B}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607D8B}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}._14dhllh0{position:relative}._14dhllh1{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb10);padding:var(--_1dwurlb5) var(--_1dwurlbb);border:1px dashed var(--_1dwurlb22)}._14dhllh2{break-inside:avoid}._14dhllh3{color:var(--_1dwurlb1w);font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb10)}._14dhllh2>.u-title{font-size:var(--_1dwurlbs);font-weight:var(--_1dwurlby)!important}._14dhllh2 .u-label{font-weight:var(--_1dwurlby)!important}.ova0r30{min-height:100%}.ova0r30>.u-title{color:var(--_1dwurlb1v);font-size:var(--_1dwurlbt);font-weight:var(--_1dwurlbz)!important;white-space:nowrap}.ova0r31{padding:var(--_1dwurlb8);height:100%}.ova0r32{font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb10);color:var(--_1dwurlb1w);padding-top:var(--_1dwurlb8);text-align:center}._12owwid0{border-collapse:collapse;width:100%}._12owwid1{padding:var(--_1dwurlb6);font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb11)}._12owwid3:hover{background-color:var(--_1dwurlb26)}._12owwid3:nth-child(odd):not(:hover){background-color:var(--_1dwurlb1s)}._12owwid3:nth-child(2n):not(:hover){background-color:var(--_1dwurlb1t)}._12owwid4{padding:var(--_1dwurlb6);font-size:var(--_1dwurlbq)}._57i9sh0{min-height:100%}._57i9sh1{overflow-x:auto}._1jb2mvv0{padding:0}._1jb2mvv1{background-color:var(--_1dwurlb1s);border-radius:var(--_1dwurlb1) var(--_1dwurlb1) 0 0;color:var(--_1dwurlb1w);padding:var(--_1dwurlb9) var(--_1dwurlbb);font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb10)}._1jb2mvv2{padding:var(--_1dwurlb8)}._1ls5syl0{margin-bottom:var(--_1dwurlb9)}._1t22owt0{background-color:var(--_1dwurlb1u);color:var(--_1dwurlb1v);min-height:100vh}._1t22owt1{padding:var(--_1dwurlb9)} diff --git a/dashboard/assets/packages/ui/dist/assets/index-98e3ee4e.css b/dashboard/assets/packages/ui/dist/assets/index-98e3ee4e.css deleted file mode 100644 index 1cf777f..0000000 --- a/dashboard/assets/packages/ui/dist/assets/index-98e3ee4e.css +++ /dev/null @@ -1 +0,0 @@ -*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}*{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}html{font-size:62.5%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{letter-spacing:.075em;line-height:1.5;text-rendering:optimizeLegibility}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{overflow-wrap:break-word}p{font-size:1.25rem}#root{isolation:isolate}@keyframes ughkw70{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:root{--_1dwurlb0: 3px;--_1dwurlb1: 5px;--_1dwurlb2: 10px;--_1dwurlb3: 25px;--_1dwurlb4: .25rem;--_1dwurlb5: .5rem;--_1dwurlb6: .75rem;--_1dwurlb7: 1rem;--_1dwurlb8: 1.25rem;--_1dwurlb9: 1.5rem;--_1dwurlba: 1.75rem;--_1dwurlbb: 2rem;--_1dwurlbc: 3rem;--_1dwurlbd: 4rem;--_1dwurlbe: 5rem;--_1dwurlbf: 0px;--_1dwurlbg: 480px;--_1dwurlbh: 768px;--_1dwurlbi: 1024px;--_1dwurlbj: 1440px;--_1dwurlbk: 1920px;--_1dwurlbl: ughkw70;--_1dwurlbm: .5rem;--_1dwurlbn: .75rem;--_1dwurlbo: 1rem;--_1dwurlbp: 1.1rem;--_1dwurlbq: 1.25rem;--_1dwurlbr: 1.5rem;--_1dwurlbs: 2rem;--_1dwurlbt: 2.5rem;--_1dwurlbu: 3rem;--_1dwurlbv: 3.5rem;--_1dwurlbw: 100;--_1dwurlbx: 200;--_1dwurlby: 300;--_1dwurlbz: 400;--_1dwurlb10: 500;--_1dwurlb11: 600;--_1dwurlb12: 700;--_1dwurlb13: 800;--_1dwurlb14: 900;--_1dwurlb15: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;--_1dwurlb16: ui-serif,serif;--_1dwurlb17: Dank Mono,Operator Mono,Inconsolata,Fira Mono,ui-monospace,SF Mono,Monaco,Droid Sans Mono,Source Code Pro,monospace;--_1dwurlb18: -.05em;--_1dwurlb19: .025em;--_1dwurlb1a: .05em;--_1dwurlb1b: .075em;--_1dwurlb1c: .15em;--_1dwurlb1d: .5em;--_1dwurlb1e: .75em;--_1dwurlb1f: 1em;--_1dwurlb1g: .95;--_1dwurlb1h: 1.1;--_1dwurlb1i: 1.25;--_1dwurlb1j: 1.375;--_1dwurlb1k: 1.5;--_1dwurlb1l: 1.75;--_1dwurlb1m: 2}._1dwurlb24{--_1dwurlb1n: #000000;--_1dwurlb1o: #ffffff;--_1dwurlb1p: #8e7de5;--_1dwurlb1q: #6e59de;--_1dwurlb1r: #604ec2;--_1dwurlb1s: #ffffff;--_1dwurlb1t: #fafafa;--_1dwurlb1u: #eeeeee;--_1dwurlb1v: #212121;--_1dwurlb1w: #616161;--_1dwurlb1x: #bdbdbd;--_1dwurlb1y: #9e9e9e;--_1dwurlb1z: #e0e0e0;--_1dwurlb20: #eeeeee;--_1dwurlb21: #e0e0e0;--_1dwurlb22: #e0e0e0;--_1dwurlb23: #eeeeee}._1dwurlb25{--_1dwurlb1n: #000000;--_1dwurlb1o: #ffffff;--_1dwurlb1p: #8e7de5;--_1dwurlb1q: #6e59de;--_1dwurlb1r: #604ec2;--_1dwurlb1s: #394160;--_1dwurlb1t: #2c324b;--_1dwurlb1u: #1F2537;--_1dwurlb1v: #ffffff;--_1dwurlb1w: #D6DCFF;--_1dwurlb1x: #3f486b;--_1dwurlb1y: #ffffff;--_1dwurlb1z: #3f486b;--_1dwurlb20: #394160;--_1dwurlb21: #1F2537;--_1dwurlb22: #394160;--_1dwurlb23: #3f486b}.wy7gkc0{flex-direction:row}.wy7gkc1{flex-direction:column}.wy7gkc2{flex-wrap:nowrap}.wy7gkc3{flex-wrap:wrap}.wy7gkc4{flex-wrap:wrap-reverse}.wy7gkc5{align-items:flex-start}.wy7gkc6{align-items:flex-end}.wy7gkc7{align-items:stretch}.wy7gkc8{align-items:center}.wy7gkc9{align-items:baseline}.wy7gkca{align-items:start}.wy7gkcb{align-items:end}.wy7gkcc{align-items:self-start}.wy7gkcd{align-items:self-end}.wy7gkce{justify-content:flex-start}.wy7gkcf{justify-content:flex-end}.wy7gkcg{justify-content:start}.wy7gkch{justify-content:end}.wy7gkci{justify-content:left}.wy7gkcj{justify-content:right}.wy7gkck{justify-content:center}.wy7gkcl{justify-content:space-between}.wy7gkcm{justify-content:space-around}.wy7gkcn{justify-content:space-evenly}.wy7gkco{gap:0}.wy7gkcp{gap:var(--_1dwurlb4)}.wy7gkcq{gap:var(--_1dwurlb5)}.wy7gkcr{gap:var(--_1dwurlb9)}.wy7gkcs{gap:var(--_1dwurlbc)}.wy7gkct{gap:var(--_1dwurlbe)}.wy7gkcu{padding:0}.wy7gkcv{padding:var(--_1dwurlb4)}.wy7gkcw{padding:var(--_1dwurlb5)}.wy7gkcx{padding:var(--_1dwurlb9)}.wy7gkcy{padding:var(--_1dwurlbc)}.wy7gkcz{padding:var(--_1dwurlbe)}.wy7gkc15{display:flex;flex-grow:var(--wy7gkc10);flex-shrink:var(--wy7gkc11);flex-basis:var(--wy7gkc12);height:var(--wy7gkc13);width:var(--wy7gkc14)}._17y8ldl0{background-color:transparent;border:none;color:var(--_1dwurlb1v);font-size:var(--_1dwurlbq);font-weight:var(--_1dwurlb10)}._17y8ldl0:is(:disabled){opacity:.5;cursor:not-allowed}._17y8ldl0:not(:disabled){cursor:pointer}._17y8ldl1{background-color:var(--_1dwurlb1q);border-radius:var(--_1dwurlb0);color:var(--_1dwurlb1o);font-weight:var(--_1dwurlb11);letter-spacing:var(--_1dwurlb1c);padding:var(--_1dwurlb6) var(--_1dwurlbc);text-transform:uppercase}._17y8ldl1:hover:not(:active){background-color:var(--_1dwurlb1p)}._17y8ldl1:active{background-color:var(--_1dwurlb1r)}._17unuvp0{background-color:var(--_1dwurlb22);height:3px}.iy2n4g0{padding:var(--_1dwurlb4) var(--_1dwurlb4);position:relative}.iy2n4g0:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:100%;transform:scale(0);transition:transform .2s ease-in-out;z-index:-1}.iy2n4g0:hover:before{background-color:var(--_1dwurlb20);transform:scale(1)}.iy2n4g0:active:before{background-color:var(--_1dwurlb1z)}.iy2n4g2{color:var(--_1dwurlb1v)}._1sxwks00{background-color:var(--_1dwurlb1t);border-radius:var(--_1dwurlb1);padding:var(--_1dwurlbb)}._1x45rmb0{background-color:var(--_1dwurlb1t);border:1px solid var(--_1dwurlb1q);padding:0;min-width:150px;overflow:hidden;z-index:10}._1x45rmb1{box-shadow:0 0 8px #00000026}._1x45rmb2{box-shadow:0 0 8px #000c}._1x45rmb3{cursor:pointer;font-size:var(--_1dwurlb8);padding:var(--_1dwurlb6)}._1x45rmb3:hover{background-color:var(--_1dwurlb20)}.tz5dd50{background:var(--_1dwurlb1t);overflow:auto;padding:var(--_1dwurlb5) var(--_1dwurlb9)}.tz5dd51{display:none}.tz5dd53{display:block}.tz5dd55{padding:var(--_1dwurlb6) var(--_1dwurlba);font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb10);position:relative;cursor:pointer;z-index:1}.tz5dd55:before{content:"";position:absolute;left:0;top:0;bottom:0;margin:auto;width:100%;height:80%;border-radius:var(--_1dwurlb1);z-index:-1}.tz5dd56{color:var(--_1dwurlb1v)}.tz5dd56:before{background:var(--_1dwurlb20)}.tz5dd57{color:var(--_1dwurlb1w)}.tz5dd57:hover:before{color:var(--_1dwurlb1v);background:var(--_1dwurlb20);opacity:.7}@media screen and (min-width: 1024px){.tz5dd50{padding:0 var(--_1dwurlba)}}@media (min-width: 1024px){.tz5dd52{display:none}.tz5dd54{display:block}}@keyframes _1e0qizf0{0%{background-position:200% 0}to{background-position:-200% 0}}._1e0qizf1{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;overflow:hidden;width:100%;height:100%;top:0;left:0;z-index:0}._1e0qizf1::-webkit-progress-bar{background-color:var(--_1dwurlb22)}._1e0qizf1::-webkit-progress-value{background-color:var(--_1dwurlb1q);transition:1s width}._1e0qizf1:indeterminate{animation:_1e0qizf0 1.5s linear infinite;background-color:var(--_1dwurlb22);background-image:linear-gradient(to right,var(--_1dwurlb1q) 30%,var(--_1dwurlb22) 30%);background-position:top left;background-repeat:no-repeat;background-size:150% 150%}._1e0qizf1:indeterminate._1e0qizf1::-webkit-progress-bar{background-color:transparent}._1e0qizf3:indeterminate{background-image:none}._1e0qizf4{position:relative;bottom:0;left:0;height:3px;width:100%}._1e0qizf5{color:#fff;position:relative;padding:calc(var(--_1dwurlb8) / 2);z-index:1;text-align:center;font-size:var(--_1dwurlbq)}.kfrms70{background-color:var(--_1dwurlb1t);box-shadow:0 0 10px var(--_1dwurlb21);position:sticky;top:0;z-index:1}.kfrms71{padding:var(--_1dwurlb6) var(--_1dwurlb9)}.kfrms72{padding:0}.kfrms74{border:2px solid var(--_1dwurlb22);padding:var(--_1dwurlb6) var(--_1dwurlb8);border-radius:var(--_1dwurlb1)}@media (min-width: 1024px){.kfrms73{display:none}}._1lpb9zp0{border:1px solid var(--_1dwurlb1q);border-radius:0;font-size:var(--_1dwurlbq);max-width:600px;padding:var(--_1dwurlb7);z-index:10}._1lpb9zp1{background-color:var(--_1dwurlb1s)}._1lpb9zp2{background-color:var(--_1dwurlb1u)}._1lpb9zp3{position:absolute;width:8px;height:8px;background:inherit;visibility:hidden}._1lpb9zp3:before{content:"";position:absolute;border:1px solid transparent;width:8px;height:8px;background:inherit;visibility:visible;transform:rotate(45deg)}._1lpb9zp4{bottom:-4px}._1lpb9zp4:before{border-bottom-color:var(--_1dwurlb1q);border-right-color:var(--_1dwurlb1q)}._1lpb9zp5{top:-4px}._1lpb9zp5:before{border-top-color:var(--_1dwurlb1q);border-left-color:var(--_1dwurlb1q)}._1lpb9zp6{right:-4px}._1lpb9zp6:before{border-top-color:var(--_1dwurlb1q);border-right-color:var(--_1dwurlb1q)}._1lpb9zp7{left:-4px}._1lpb9zp7:before{border-bottom-color:var(--_1dwurlb1q);border-left-color:var(--_1dwurlb1q)}._1isundr0{animation:var(--_1dwurlbl) 1s linear infinite;color:var(--_1dwurlb1w)}._1c9nzq10{border-radius:var(--_1dwurlb1) var(--_1dwurlb1) 0 0}._1c9nzq11{border-radius:var(--_1dwurlb1)}._1c9nzq12{color:var(--_1dwurlb1w);padding:var(--_1dwurlb9);background-color:var(--_1dwurlb1s);cursor:pointer;border:none}._1c9nzq13{font-size:var(--_1dwurlbs);font-weight:var(--_1dwurlb10)}._1c9nzq14{padding:var(--_1dwurlbb);background-color:var(--_1dwurlb1t)}.ag5hlo1{container-name:ag5hlo0;container-type:inline-size;display:grid;grid-template-rows:auto;grid-template-columns:repeat(12,1fr)}.ag5hlo2{gap:var(--_1dwurlb4)}.ag5hlo3{gap:clamp(var(--_1dwurlb4),4vw,var(--_1dwurlb5))}.ag5hlo4{gap:clamp(var(--_1dwurlb4),4vw,var(--_1dwurlb9))}.ag5hlo5{gap:clamp(var(--_1dwurlb4),4vw,var(--_1dwurlbe))}@container ag5hlo0 (min-width: 0px){.ag5hlo6{grid-column:span 1}.ag5hloc{grid-column:span 2}.ag5hloi{grid-column:span 3}.ag5hloo{grid-column:span 4}.ag5hlou{grid-column:span 5}.ag5hlo10{grid-column:span 6}.ag5hlo16{grid-column:span 7}.ag5hlo1c{grid-column:span 8}.ag5hlo1i{grid-column:span 9}.ag5hlo1o{grid-column:span 10}.ag5hlo1u{grid-column:span 11}.ag5hlo20{grid-column:span 12}}@container ag5hlo0 (min-width: 480px){.ag5hlo7{grid-column:span 1}.ag5hlod{grid-column:span 2}.ag5hloj{grid-column:span 3}.ag5hlop{grid-column:span 4}.ag5hlov{grid-column:span 5}.ag5hlo11{grid-column:span 6}.ag5hlo17{grid-column:span 7}.ag5hlo1d{grid-column:span 8}.ag5hlo1j{grid-column:span 9}.ag5hlo1p{grid-column:span 10}.ag5hlo1v{grid-column:span 11}.ag5hlo21{grid-column:span 12}}@container ag5hlo0 (min-width: 768px){.ag5hlo8{grid-column:span 1}.ag5hloe{grid-column:span 2}.ag5hlok{grid-column:span 3}.ag5hloq{grid-column:span 4}.ag5hlow{grid-column:span 5}.ag5hlo12{grid-column:span 6}.ag5hlo18{grid-column:span 7}.ag5hlo1e{grid-column:span 8}.ag5hlo1k{grid-column:span 9}.ag5hlo1q{grid-column:span 10}.ag5hlo1w{grid-column:span 11}.ag5hlo22{grid-column:span 12}}@container ag5hlo0 (min-width: 1024px){.ag5hlo9{grid-column:span 1}.ag5hlof{grid-column:span 2}.ag5hlol{grid-column:span 3}.ag5hlor{grid-column:span 4}.ag5hlox{grid-column:span 5}.ag5hlo13{grid-column:span 6}.ag5hlo19{grid-column:span 7}.ag5hlo1f{grid-column:span 8}.ag5hlo1l{grid-column:span 9}.ag5hlo1r{grid-column:span 10}.ag5hlo1x{grid-column:span 11}.ag5hlo23{grid-column:span 12}}@container ag5hlo0 (min-width: 1440px){.ag5hloa{grid-column:span 1}.ag5hlog{grid-column:span 2}.ag5hlom{grid-column:span 3}.ag5hlos{grid-column:span 4}.ag5hloy{grid-column:span 5}.ag5hlo14{grid-column:span 6}.ag5hlo1a{grid-column:span 7}.ag5hlo1g{grid-column:span 8}.ag5hlo1m{grid-column:span 9}.ag5hlo1s{grid-column:span 10}.ag5hlo1y{grid-column:span 11}.ag5hlo24{grid-column:span 12}}@container ag5hlo0 (min-width: 1920px){.ag5hlob{grid-column:span 1}.ag5hloh{grid-column:span 2}.ag5hlon{grid-column:span 3}.ag5hlot{grid-column:span 4}.ag5hloz{grid-column:span 5}.ag5hlo15{grid-column:span 6}.ag5hlo1b{grid-column:span 7}.ag5hlo1h{grid-column:span 8}.ag5hlo1n{grid-column:span 9}.ag5hlo1t{grid-column:span 10}.ag5hlo1z{grid-column:span 11}.ag5hlo25{grid-column:span 12}}.uplot,.uplot *,.uplot *:before,.uplot *:after{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:rgba(0,0,0,.07);position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607D8B}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607D8B}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}._14dhllh0{position:relative}._14dhllh1{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb10);padding:var(--_1dwurlb5) var(--_1dwurlbb);border:1px dashed var(--_1dwurlb22)}._14dhllh2{break-inside:avoid}._14dhllh3{color:var(--_1dwurlb1w);font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb10)}._14dhllh2>.u-title{font-size:var(--_1dwurlbs);font-weight:var(--_1dwurlby)!important}._14dhllh2 .u-label{font-weight:var(--_1dwurlby)!important}.ova0r30{min-height:100%}.ova0r30>.u-title{color:var(--_1dwurlb1v);font-size:var(--_1dwurlbt);font-weight:var(--_1dwurlbz)!important;white-space:nowrap}.ova0r31{padding:var(--_1dwurlb8);height:100%}.ova0r32{font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb10);color:var(--_1dwurlb1w);padding-top:var(--_1dwurlb8);text-align:center}._12owwid0{border-collapse:collapse;width:100%}._12owwid1{padding:var(--_1dwurlb6);font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb11)}._12owwid3:hover{background-color:var(--_1dwurlb23)}._12owwid3:nth-child(odd):not(:hover){background-color:var(--_1dwurlb1s)}._12owwid3:nth-child(2n):not(:hover){background-color:var(--_1dwurlb1t)}._12owwid4{padding:var(--_1dwurlb6);font-size:var(--_1dwurlbq)}._57i9sh0{min-height:100%}._57i9sh1{overflow-x:auto}._1jb2mvv0{padding:0}._1jb2mvv1{background-color:var(--_1dwurlb1s);border-radius:var(--_1dwurlb1) var(--_1dwurlb1) 0 0;color:var(--_1dwurlb1w);padding:var(--_1dwurlb9) var(--_1dwurlbb);font-size:var(--_1dwurlbr);font-weight:var(--_1dwurlb10)}._1jb2mvv2{padding:var(--_1dwurlb8)}._1ls5syl0{margin-bottom:var(--_1dwurlb9)}._1t22owt0{background-color:var(--_1dwurlb1u);color:var(--_1dwurlb1v);min-height:100vh}._1t22owt1{padding:var(--_1dwurlb9)} diff --git a/dashboard/assets/packages/ui/dist/assets/index-beb72b0a.js b/dashboard/assets/packages/ui/dist/assets/index-beb72b0a.js new file mode 100644 index 0000000..ab3b443 --- /dev/null +++ b/dashboard/assets/packages/ui/dist/assets/index-beb72b0a.js @@ -0,0 +1,50 @@ +var tg=Object.defineProperty;var ng=(e,t,n)=>t in e?tg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>(ng(e,typeof t!="symbol"?t+"":t,n),n);(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 i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var rg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ha(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lg(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var ah={exports:{}},ma={},uh={exports:{}},we={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var No=Symbol.for("react.element"),ig=Symbol.for("react.portal"),og=Symbol.for("react.fragment"),sg=Symbol.for("react.strict_mode"),ag=Symbol.for("react.profiler"),ug=Symbol.for("react.provider"),cg=Symbol.for("react.context"),fg=Symbol.for("react.forward_ref"),dg=Symbol.for("react.suspense"),pg=Symbol.for("react.memo"),hg=Symbol.for("react.lazy"),Vd=Symbol.iterator;function mg(e){return e===null||typeof e!="object"?null:(e=Vd&&e[Vd]||e["@@iterator"],typeof e=="function"?e:null)}var ch={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fh=Object.assign,dh={};function ci(e,t,n){this.props=e,this.context=t,this.refs=dh,this.updater=n||ch}ci.prototype.isReactComponent={};ci.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")};ci.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ph(){}ph.prototype=ci.prototype;function Yc(e,t,n){this.props=e,this.context=t,this.refs=dh,this.updater=n||ch}var Qc=Yc.prototype=new ph;Qc.constructor=Yc;fh(Qc,ci.prototype);Qc.isPureReactComponent=!0;var Ud=Array.isArray,hh=Object.prototype.hasOwnProperty,Zc={current:null},mh={key:!0,ref:!0,__self:!0,__source:!0};function vh(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)hh.call(t,r)&&!mh.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,Y=q[re];if(0>>1;rel(pe,G))Rel(Ue,pe)?(q[re]=Ue,q[Re]=G,re=Re):(q[re]=pe,q[X]=G,re=X);else if(Rel(Ue,G))q[re]=Ue,q[Re]=G,re=Re;else break e}}return J}function l(q,J){var G=q.sortIndex-J.sortIndex;return G!==0?G:q.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var u=[],a=[],c=1,p=null,d=3,g=!1,_=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(q){for(var J=n(a);J!==null;){if(J.callback===null)r(a);else if(J.startTime<=q)r(a),J.sortIndex=J.expirationTime,t(u,J);else break;J=n(a)}}function T(q){if(x=!1,w(q),!_)if(n(u)!==null)_=!0,fe(O);else{var J=n(a);J!==null&&ne(T,J.startTime-q)}}function O(q,J){_=!1,x&&(x=!1,y(R),R=-1),g=!0;var G=d;try{for(w(J),p=n(u);p!==null&&(!(p.expirationTime>J)||q&&!D());){var re=p.callback;if(typeof re=="function"){p.callback=null,d=p.priorityLevel;var Y=re(p.expirationTime<=J);J=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===n(u)&&r(u),w(J)}else r(u);p=n(u)}if(p!==null)var me=!0;else{var X=n(a);X!==null&&ne(T,X.startTime-J),me=!1}return me}finally{p=null,d=G,g=!1}}var M=!1,N=null,R=-1,I=5,A=-1;function D(){return!(e.unstable_now()-Aq||125re?(q.sortIndex=G,t(a,q),n(u)===null&&q===n(a)&&(x?(y(R),R=-1):x=!0,ne(T,G-re))):(q.sortIndex=Y,t(u,q),_||g||(_=!0,fe(O))),q},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(q){var J=d;return function(){var G=d;d=J;try{return q.apply(this,arguments)}finally{d=G}}}})(_h);wh.exports=_h;var Tg=wh.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xh=$,sn=Tg;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=Object.prototype.hasOwnProperty,Pg=/^[: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]*$/,qd={},Kd={};function Og(e){return Uu.call(Kd,e)?!0:Uu.call(qd,e)?!1:Pg.test(e)?Kd[e]=!0:(qd[e]=!0,!1)}function bg(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 Ng(e,t,n,r){if(t===null||typeof t>"u"||bg(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 Ut(e,t,n,r,l,i,o){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=i,this.removeEmptyString=o}var Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new Ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new Ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new Ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new Ut(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){Rt[e]=new Ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new Ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new Ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new Ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new Ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Xc=/[\-:]([a-z])/g;function ef(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(Xc,ef);Rt[t]=new Ut(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(Xc,ef);Rt[t]=new Ut(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(Xc,ef);Rt[t]=new Ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new Ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new Ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new Ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function tf(e,t,n,r){var l=Rt.hasOwnProperty(t)?Rt[t]:null;(l!==null?l.type!==0:r||!(2s||l[o]!==i[s]){var u=` +`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=s);break}}}finally{cu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hi(e):""}function Mg(e){switch(e.tag){case 5:return Hi(e.type);case 16:return Hi("Lazy");case 13:return Hi("Suspense");case 19:return Hi("SuspenseList");case 0:case 2:case 15:return e=fu(e.type,!1),e;case 11:return e=fu(e.type.render,!1),e;case 1:return e=fu(e.type,!0),e;default:return""}}function Gu(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 Ol:return"Fragment";case Pl:return"Portal";case Wu:return"Profiler";case nf:return"StrictMode";case qu:return"Suspense";case Ku:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Eh:return(e.displayName||"Context")+".Consumer";case Sh:return(e._context.displayName||"Context")+".Provider";case rf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lf:return t=e.displayName||null,t!==null?t:Gu(e.type)||"Memo";case _r:t=e._payload,e=e._init;try{return Gu(e(t))}catch{}}return null}function Rg(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 Gu(t);case 8:return t===nf?"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 zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Th(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lg(e){var t=Th(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ts(e){e._valueTracker||(e._valueTracker=Lg(e))}function Ph(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Th(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Is(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 Yu(e,t){var n=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zr(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 Oh(e,t){t=t.checked,t!=null&&tf(e,"checked",t,!1)}function Qu(e,t){Oh(e,t);var n=zr(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")?Zu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zu(e,t.type,zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qd(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 Zu(e,t,n){(t!=="number"||Is(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vi=Array.isArray;function Il(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ns.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yi={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},jg=["Webkit","ms","Moz","O"];Object.keys(Yi).forEach(function(e){jg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yi[t]=Yi[e]})});function Rh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yi.hasOwnProperty(e)&&Yi[e]?(""+t).trim():t+"px"}function Lh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Rh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var zg=Ye({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 ec(e,t){if(t){if(zg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function tc(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 nc=null;function of(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rc=null,Bl=null,$l=null;function Xd(e){if(e=Lo(e)){if(typeof rc!="function")throw Error(H(280));var t=e.stateNode;t&&(t=_a(t),rc(e.stateNode,e.type,t))}}function jh(e){Bl?$l?$l.push(e):$l=[e]:Bl=e}function zh(){if(Bl){var e=Bl,t=$l;if($l=Bl=null,Xd(e),t)for(e=0;e>>=0,e===0?32:31-(qg(e)/Kg|0)|0}var rs=64,ls=4194304;function Ui(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 Vs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~l;s!==0?r=Ui(s):(i&=o,i!==0&&(r=Ui(i)))}else o=n&~l,o!==0?r=Ui(o):i!==0&&(r=Ui(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Mo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-zn(t),e[t]=n}function Zg(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=Zi),ap=String.fromCharCode(32),up=!1;function tm(e,t){switch(e){case"keyup":return Cy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bl=!1;function Py(e,t){switch(e){case"compositionend":return nm(t);case"keypress":return t.which!==32?null:(up=!0,ap);case"textInput":return e=t.data,e===ap&&up?null:e;default:return null}}function Oy(e,t){if(bl)return e==="compositionend"||!hf&&tm(e,t)?(e=Xh(),Ts=ff=Cr=null,bl=!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)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=pp(n)}}function om(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?om(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sm(){for(var e=window,t=Is();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Is(e.document)}return t}function mf(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 Dy(e){var t=sm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&om(n.ownerDocument.documentElement,n)){if(r!==null&&mf(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,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=hp(n,i);var o=hp(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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=document.documentMode,Nl=null,uc=null,Xi=null,cc=!1;function mp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cc||Nl==null||Nl!==Is(r)||(r=Nl,"selectionStart"in r&&mf(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}),Xi&&vo(Xi,r)||(Xi=r,r=qs(uc,"onSelect"),0Ll||(e.current=vc[Ll],vc[Ll]=null,Ll--)}function je(e,t){Ll++,vc[Ll]=e.current,e.current=t}var Ar={},Dt=Fr(Ar),Gt=Fr(!1),ll=Ar;function Kl(e,t){var n=e.type.contextTypes;if(!n)return Ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Yt(e){return e=e.childContextTypes,e!=null}function Gs(){Ie(Gt),Ie(Dt)}function kp(e,t,n){if(Dt.current!==Ar)throw Error(H(168));je(Dt,t),je(Gt,n)}function vm(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(H(108,Rg(e)||"Unknown",l));return Ye({},n,r)}function Ys(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ar,ll=Dt.current,je(Dt,e),je(Gt,Gt.current),!0}function Sp(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=vm(e,t,ll),r.__reactInternalMemoizedMergedChildContext=e,Ie(Gt),Ie(Dt),je(Dt,e)):Ie(Gt),je(Gt,n)}var tr=null,xa=!1,Cu=!1;function gm(e){tr===null?tr=[e]:tr.push(e)}function Yy(e){xa=!0,gm(e)}function Ir(){if(!Cu&&tr!==null){Cu=!0;var e=0,t=Me;try{var n=tr;for(Me=1;e>=o,l-=o,nr=1<<32-zn(t)+l|n<R?(I=N,N=null):I=N.sibling;var A=d(y,N,w[R],T);if(A===null){N===null&&(N=I);break}e&&N&&A.alternate===null&&t(y,N),v=i(A,v,R),M===null?O=A:M.sibling=A,M=A,N=I}if(R===w.length)return n(y,N),Ve&&Wr(y,R),O;if(N===null){for(;RR?(I=N,N=null):I=N.sibling;var D=d(y,N,A.value,T);if(D===null){N===null&&(N=I);break}e&&N&&D.alternate===null&&t(y,N),v=i(D,v,R),M===null?O=D:M.sibling=D,M=D,N=I}if(A.done)return n(y,N),Ve&&Wr(y,R),O;if(N===null){for(;!A.done;R++,A=w.next())A=p(y,A.value,T),A!==null&&(v=i(A,v,R),M===null?O=A:M.sibling=A,M=A);return Ve&&Wr(y,R),O}for(N=r(y,N);!A.done;R++,A=w.next())A=g(N,y,R,A.value,T),A!==null&&(e&&A.alternate!==null&&N.delete(A.key===null?R:A.key),v=i(A,v,R),M===null?O=A:M.sibling=A,M=A);return e&&N.forEach(function(V){return t(y,V)}),Ve&&Wr(y,R),O}function P(y,v,w,T){if(typeof w=="object"&&w!==null&&w.type===Ol&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case es:e:{for(var O=w.key,M=v;M!==null;){if(M.key===O){if(O=w.type,O===Ol){if(M.tag===7){n(y,M.sibling),v=l(M,w.props.children),v.return=y,y=v;break e}}else if(M.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===_r&&Np(O)===M.type){n(y,M.sibling),v=l(M,w.props),v.ref=Ai(y,M,w),v.return=y,y=v;break e}n(y,M);break}else t(y,M);M=M.sibling}w.type===Ol?(v=el(w.props.children,y.mode,T,w.key),v.return=y,y=v):(T=js(w.type,w.key,w.props,null,y.mode,T),T.ref=Ai(y,v,w),T.return=y,y=T)}return o(y);case Pl:e:{for(M=w.key;v!==null;){if(v.key===M)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(y,v.sibling),v=l(v,w.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=Lu(w,y.mode,T),v.return=y,y=v}return o(y);case _r:return M=w._init,P(y,v,M(w._payload),T)}if(Vi(w))return _(y,v,w,T);if(Mi(w))return x(y,v,w,T);fs(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(y,v.sibling),v=l(v,w),v.return=y,y=v):(n(y,v),v=Ru(w,y.mode,T),v.return=y,y=v),o(y)):n(y,v)}return P}var Yl=Cm(!0),Tm=Cm(!1),jo={},qn=Fr(jo),_o=Fr(jo),xo=Fr(jo);function Jr(e){if(e===jo)throw Error(H(174));return e}function Ef(e,t){switch(je(xo,t),je(_o,e),je(qn,jo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xu(t,e)}Ie(qn),je(qn,t)}function Ql(){Ie(qn),Ie(_o),Ie(xo)}function Pm(e){Jr(xo.current);var t=Jr(qn.current),n=Xu(t,e.type);t!==n&&(je(_o,e),je(qn,n))}function Cf(e){_o.current===e&&(Ie(qn),Ie(_o))}var Ke=Fr(0);function ta(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 Tu=[];function Tf(){for(var e=0;en?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{Me=n,Pu.transition=r}}function Vm(){return kn().memoizedState}function Xy(e,t,n){var r=Lr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Um(e))Wm(t,n);else if(n=xm(e,t,n,r),n!==null){var l=Ht();An(n,e,r,l),qm(n,t,r)}}function ew(e,t,n){var r=Lr(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Um(e))Wm(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,n);if(l.hasEagerState=!0,l.eagerState=s,Dn(s,o)){var u=t.interleaved;u===null?(l.next=l,kf(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=xm(e,t,l,r),n!==null&&(l=Ht(),An(n,e,r,l),qm(n,t,r))}}function Um(e){var t=e.alternate;return e===Ge||t!==null&&t===Ge}function Wm(e,t){eo=na=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}var ra={readContext:xn,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useInsertionEffect:jt,useLayoutEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useMutableSource:jt,useSyncExternalStore:jt,useId:jt,unstable_isNewReconciler:!1},tw={readContext:xn,useCallback:function(e,t){return Vn().memoizedState=[e,t===void 0?null:t],e},useContext:xn,useEffect:Rp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ns(4194308,4,Fm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ns(4,2,e,t)},useMemo:function(e,t){var n=Vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vn();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=Xy.bind(null,Ge,e),[r.memoizedState,e]},useRef:function(e){var t=Vn();return e={current:e},t.memoizedState=e},useState:Mp,useDebugValue:Mf,useDeferredValue:function(e){return Vn().memoizedState=e},useTransition:function(){var e=Mp(!1),t=e[0];return e=Jy.bind(null,e[1]),Vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ge,l=Vn();if(Ve){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),St===null)throw Error(H(349));ol&30||Nm(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Rp(Rm.bind(null,r,i,e),[e]),r.flags|=2048,Eo(9,Mm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Vn(),t=St.identifierPrefix;if(Ve){var n=rr,r=nr;n=(r&~(1<<32-zn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ko++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Un]=t,e[wo]=r,t1(e,t,!1,!1),t.stateNode=e;e:{switch(o=tc(n,r),n){case"dialog":Fe("cancel",e),Fe("close",e),l=r;break;case"iframe":case"object":case"embed":Fe("load",e),l=r;break;case"video":case"audio":for(l=0;lJl&&(t.flags|=128,r=!0,Di(i,!1),t.lanes=4194304)}else{if(!r)if(e=ta(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ve)return zt(t),null}else 2*et()-i.renderingStartTime>Jl&&n!==1073741824&&(t.flags|=128,r=!0,Di(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=et(),t.sibling=null,n=Ke.current,je(Ke,r?n&1|2:n&1),t):(zt(t),null);case 22:case 23:return Df(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tn&1073741824&&(zt(t),t.subtreeFlags&6&&(t.flags|=8192)):zt(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function uw(e,t){switch(gf(t),t.tag){case 1:return Yt(t.type)&&Gs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ql(),Ie(Gt),Ie(Dt),Tf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Cf(t),null;case 13:if(Ie(Ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ie(Ke),null;case 4:return Ql(),null;case 10:return xf(t.type._context),null;case 22:case 23:return Df(),null;case 24:return null;default:return null}}var ps=!1,At=!1,cw=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Dl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Je(e,t,r)}else n.current=null}function Oc(e,t,n){try{n()}catch(r){Je(e,t,r)}}var $p=!1;function fw(e,t){if(fc=Us,e=sm(),mf(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,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,a=0,c=0,p=e,d=null;t:for(;;){for(var g;p!==n||l!==0&&p.nodeType!==3||(s=o+l),p!==i||r!==0&&p.nodeType!==3||(u=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(g=p.firstChild)!==null;)d=p,p=g;for(;;){if(p===e)break t;if(d===n&&++a===l&&(s=o),d===i&&++c===r&&(u=o),(g=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(dc={focusedElem:e,selectionRange:n},Us=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var x=_.memoizedProps,P=_.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:Rn(t.type,x),P);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(T){Je(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return _=$p,$p=!1,_}function to(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 i=l.destroy;l.destroy=void 0,i!==void 0&&Oc(t,n,i)}l=l.next}while(l!==r)}}function Ea(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 bc(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 l1(e){var t=e.alternate;t!==null&&(e.alternate=null,l1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Un],delete t[wo],delete t[mc],delete t[Ky],delete t[Gy])),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 i1(e){return e.tag===5||e.tag===3||e.tag===4}function Hp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||i1(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 Nc(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=Ks));else if(r!==4&&(e=e.child,e!==null))for(Nc(e,t,n),e=e.sibling;e!==null;)Nc(e,t,n),e=e.sibling}function Mc(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(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}var Nt=null,Ln=!1;function yr(e,t,n){for(n=n.child;n!==null;)o1(e,t,n),n=n.sibling}function o1(e,t,n){if(Wn&&typeof Wn.onCommitFiberUnmount=="function")try{Wn.onCommitFiberUnmount(va,n)}catch{}switch(n.tag){case 5:At||Dl(n,t);case 6:var r=Nt,l=Ln;Nt=null,yr(e,t,n),Nt=r,Ln=l,Nt!==null&&(Ln?(e=Nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nt.removeChild(n.stateNode));break;case 18:Nt!==null&&(Ln?(e=Nt,n=n.stateNode,e.nodeType===8?Eu(e.parentNode,n):e.nodeType===1&&Eu(e,n),ho(e)):Eu(Nt,n.stateNode));break;case 4:r=Nt,l=Ln,Nt=n.stateNode.containerInfo,Ln=!0,yr(e,t,n),Nt=r,Ln=l;break;case 0:case 11:case 14:case 15:if(!At&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Oc(n,t,o),l=l.next}while(l!==r)}yr(e,t,n);break;case 1:if(!At&&(Dl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Je(n,t,s)}yr(e,t,n);break;case 21:yr(e,t,n);break;case 22:n.mode&1?(At=(r=At)||n.memoizedState!==null,yr(e,t,n),At=r):yr(e,t,n);break;default:yr(e,t,n)}}function Vp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cw),t.forEach(function(r){var l=_w.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Nn(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pw(r/1960))-r,10e?16:e,Tr===null)var r=!1;else{if(e=Tr,Tr=null,oa=0,Se&6)throw Error(H(331));var l=Se;for(Se|=4,ee=e.current;ee!==null;){var i=ee,o=i.child;if(ee.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uet()-zf?Xr(e,0):jf|=n),Qt(e,t)}function h1(e,t){t===0&&(e.mode&1?(t=ls,ls<<=1,!(ls&130023424)&&(ls=4194304)):t=1);var n=Ht();e=ur(e,t),e!==null&&(Mo(e,t,n),Qt(e,n))}function ww(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),h1(e,n)}function _w(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(H(314))}r!==null&&r.delete(t),h1(e,n)}var m1;m1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)Kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Kt=!1,sw(e,t,n);Kt=!!(e.flags&131072)}else Kt=!1,Ve&&t.flags&1048576&&ym(t,Zs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ms(e,t),e=t.pendingProps;var l=Kl(t,Dt.current);Vl(t,n),l=Of(null,t,r,e,l,n);var i=bf();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,Yt(r)?(i=!0,Ys(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Sf(t),l.updater=ka,t.stateNode=l,l._reactInternals=t,xc(t,r,e,n),t=Ec(null,t,r,!0,i,n)):(t.tag=0,Ve&&i&&vf(t),$t(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ms(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=kw(r),e=Rn(r,e),l){case 0:t=Sc(null,t,r,e,n);break e;case 1:t=Fp(null,t,r,e,n);break e;case 11:t=Ap(null,t,r,e,n);break e;case 14:t=Dp(null,t,r,Rn(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Rn(r,l),Sc(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Rn(r,l),Fp(e,t,r,l,n);case 3:e:{if(Jm(t),e===null)throw Error(H(387));r=t.pendingProps,i=t.memoizedState,l=i.element,km(e,t),ea(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Zl(Error(H(423)),t),t=Ip(e,t,r,n,l);break e}else if(r!==l){l=Zl(Error(H(424)),t),t=Ip(e,t,r,n,l);break e}else for(rn=Nr(t.stateNode.containerInfo.firstChild),ln=t,Ve=!0,jn=null,n=Tm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gl(),r===l){t=cr(e,t,n);break e}$t(e,t,r,n)}t=t.child}return t;case 5:return Pm(t),e===null&&yc(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,pc(r,l)?o=null:i!==null&&pc(r,i)&&(t.flags|=32),Zm(e,t),$t(e,t,o,n),t.child;case 6:return e===null&&yc(t),null;case 13:return Xm(e,t,n);case 4:return Ef(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yl(t,null,r,n):$t(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Rn(r,l),Ap(e,t,r,l,n);case 7:return $t(e,t,t.pendingProps,n),t.child;case 8:return $t(e,t,t.pendingProps.children,n),t.child;case 12:return $t(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,je(Js,r._currentValue),r._currentValue=o,i!==null)if(Dn(i.value,o)){if(i.children===l.children&&!Gt.current){t=cr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=lr(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),wc(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(H(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),wc(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}$t(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Vl(t,n),l=xn(l),r=r(l),t.flags|=1,$t(e,t,r,n),t.child;case 14:return r=t.type,l=Rn(r,t.pendingProps),l=Rn(r.type,l),Dp(e,t,r,l,n);case 15:return Ym(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Rn(r,l),Ms(e,t),t.tag=1,Yt(r)?(e=!0,Ys(t)):e=!1,Vl(t,n),Em(t,r,l),xc(t,r,l,n),Ec(null,t,r,!0,e,n);case 19:return e1(e,t,n);case 22:return Qm(e,t,n)}throw Error(H(156,t.tag))};function v1(e,t){return Hh(e,t)}function xw(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 yn(e,t,n,r){return new xw(e,t,n,r)}function If(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kw(e){if(typeof e=="function")return If(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rf)return 11;if(e===lf)return 14}return 2}function jr(e,t){var n=e.alternate;return n===null?(n=yn(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 js(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")If(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ol:return el(n.children,l,i,t);case nf:o=8,l|=8;break;case Wu:return e=yn(12,n,t,l|2),e.elementType=Wu,e.lanes=i,e;case qu:return e=yn(13,n,t,l),e.elementType=qu,e.lanes=i,e;case Ku:return e=yn(19,n,t,l),e.elementType=Ku,e.lanes=i,e;case Ch:return Ta(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Sh:o=10;break e;case Eh:o=9;break e;case rf:o=11;break e;case lf:o=14;break e;case _r:o=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=yn(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function el(e,t,n,r){return e=yn(7,e,r,t),e.lanes=n,e}function Ta(e,t,n,r){return e=yn(22,e,r,t),e.elementType=Ch,e.lanes=n,e.stateNode={isHidden:!1},e}function Ru(e,t,n){return e=yn(6,e,null,t),e.lanes=n,e}function Lu(e,t,n){return t=yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sw(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=pu(0),this.expirationTimes=pu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bf(e,t,n,r,l,i,o,s,u){return e=new Sw(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sf(i),e}function Ew(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_1)}catch(e){console.error(e)}}_1(),yh.exports=un;var x1=yh.exports,Zp=x1;Vu.createRoot=Zp.createRoot,Vu.hydrateRoot=Zp.hydrateRoot;const bw="k6 dashboard",Nw=[{sections:[{panels:[{series:[{query:"iterations[?!tags && rate]"}],title:"Iteration Rate",kind:"stat",id:"tab-0.section-0.panel-0",summary:"The iteration rate represents the number of times a VU has executed a test script (the `default` function) over a period of time. The panel can help you ensure that your test iteration rate matches the configuration you have specified in your test script, and that the number of VUs you have allocated matches the test capacity."},{series:[{query:"http_reqs[?!tags && rate]"}],title:"HTTP Request Rate",kind:"stat",id:"tab-0.section-0.panel-1",summary:"The HTTP request rate represents the number of requests over a period of time."},{series:[{query:"http_req_duration[?!tags && avg]"}],title:"HTTP Request Duration",kind:"stat",id:"tab-0.section-0.panel-2",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test."},{series:[{query:"http_req_failed[?!tags && rate ]"}],title:"HTTP Request Failed",kind:"stat",id:"tab-0.section-0.panel-3",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details."},{series:[{query:"data_received[?!tags && rate]"}],title:"Received Rate",kind:"stat",id:"tab-0.section-0.panel-4",summary:"The amount of data received over a period of time."},{series:[{query:"data_sent[?!tags && rate]"}],title:"Sent Rate",kind:"stat",id:"tab-0.section-0.panel-5",summary:"The amount of data sent to the system under test. "}],id:"tab-0.section-0"},{panels:[{series:[{query:"http_reqs[?!tags && rate]",legend:"Request Rate"},{query:"http_req_duration[?!tags && p95]",legend:"Request Duration p(95)"},{query:"http_req_failed[?!tags && rate]",legend:"Request Failed"}],title:"HTTP Performance overview",id:"tab-0.section-1.panel-0",summary:"The HTTP request rate represents the number of requests over a period of time. The HTTP request duration 95 percentile represents the total time for 95% of the requests observed. The HTTP request failed rate represents the rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",fullWidth:!0,kind:"chart"}],id:"tab-0.section-1"},{panels:[{series:[{query:"vus[?!tags && value]"},{query:"http_reqs[?!tags && rate ]"}],title:"VUs",id:"tab-0.section-2.panel-0",summary:"The number of VUs and the number of requests throughout the test run. This is an indication of how the two metrics correlate, and can help you visualize if you need to increase or decrease the number of VUs for your test.",kind:"chart"},{series:[{query:"data_received[?!tags && rate]"},{query:"data_sent[?!tags && rate]"}],title:"Transfer Rate",id:"tab-0.section-2.panel-1",summary:"The rate at which data is sent to and received from the system under test.",kind:"chart"},{series:[{query:"http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"HTTP Request Duration",id:"tab-0.section-2.panel-2",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"iteration_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Iteration Duration",id:"tab-0.section-2.panel-3",summary:"The time to complete one full iteration of the test, including time spent in setup and teardown.",kind:"chart"}],id:"tab-0.section-2"}],title:"Overview",summary:"This chapter provides an overview of the most important metrics of the test run. Graphs plot the value of metrics over time.",id:"tab-0"},{sections:[{panels:[{series:[{query:"http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-0.panel-0",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"http_req_failed[?!tags && rate ]"}],title:"Request Failed Rate",id:"tab-1.section-0.panel-1",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",kind:"chart"},{series:[{query:"http_reqs[?!tags && rate]"}],title:"Request Rate",id:"tab-1.section-0.panel-2",summary:"The HTTP request rate represents the number of requests over a period of time.",kind:"chart"},{series:[{query:"http_req_waiting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Waiting",id:"tab-1.section-0.panel-3",summary:"The time between k6 sending a request and receiving the first byte of information from the remote host. Also known as 'time to first byte' or 'TTFB'.",kind:"chart"},{series:[{query:"http_req_tls_handshaking[?!tags && (avg || p90 || p95 || p99)]"}],title:"TLS handshaking",id:"tab-1.section-0.panel-4",summary:"The time it takes to complete the TLS handshake for the requests.",kind:"chart"},{series:[{query:"http_req_sending[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Sending",id:"tab-1.section-0.panel-5",summary:"The time k6 spends sending data to the remote host.",kind:"chart"},{series:[{query:"http_req_connecting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Connecting",id:"tab-1.section-0.panel-6",summary:"The time k6 spends establishing a TCP connection to the remote host.",kind:"chart"},{series:[{query:"http_req_receiving[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Receiving",id:"tab-1.section-0.panel-7",summary:"The time k6 spends receiving data from the remote host.",kind:"chart"},{series:[{query:"http_req_blocked[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Blocked",id:"tab-1.section-0.panel-8",summary:"The time k6 spends waiting for a free TCP connection slot before initiating a request.",kind:"chart"}],title:"HTTP",summary:"These metrics are generated only when the test makes HTTP requests.",id:"tab-1.section-0"},{panels:[{series:[{query:"browser_http_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-1.panel-0",summary:"The HTTP request duration represents the total time for a request. This is an indication of the latency experienced when making HTTP requests against the system under test.",kind:"chart"},{series:[{query:"browser_http_req_failed[?!tags && rate ]"}],title:"Request Failed Rate",id:"tab-1.section-1.panel-1",summary:"The rate of failed requests according to the test configuration. Failed requests can include any number of status codes depending on your test. Refer to setResponseCallback for more details.",kind:"chart"},{series:[{query:"browser_web_vital_lcp[?!tags && (avg || p90 || p95 || p99)]"}],title:"Largest Contentful Paint",id:"tab-1.section-1.panel-2",summary:"Largest Contentful Paint (LCP) measures the time it takes for the largest content element on a page to become visible.",kind:"chart"},{series:[{query:"browser_web_vital_fid[?!tags && (avg || p90 || p95 || p99)]"}],title:"First Input Delay",id:"tab-1.section-1.panel-3",summary:"First Input Delay (FID) measures the responsiveness of a web page by quantifying the delay between a user's first interaction, such as clicking a button, and the browser's response.",kind:"chart"},{series:[{query:"browser_web_vital_cls[?!tags && (avg || p90 || p95 || p99)]"}],title:"Cumulative Layout Shift",id:"tab-1.section-1.panel-4",summary:"Cumulative Layout Shift (CLS) measures visual stability on a webpage by quantifying the amount of unexpected layout shift of visible page content.",kind:"chart"},{series:[{query:"browser_web_vital_ttfb[?!tags && (avg || p90 || p95 || p99)]"}],title:"Time to First Byte",id:"tab-1.section-1.panel-5",summary:"Time to First Byte (TTFB) measures the time between the request for a resource and when the first byte of a response begins to arrive.",kind:"chart"},{series:[{query:"browser_web_vital_fcp[?!tags && (avg || p90 || p95 || p99)]"}],title:"First Contentful Paint",id:"tab-1.section-1.panel-6",summary:"First Contentful Paint (FCP) measures the time it takes for the first content element to be painted on the screen.",kind:"chart"},{series:[{query:"browser_web_vital_inp[?!tags && (avg || p90 || p95 || p99)]"}],title:"Interaction to Next Paint",id:"tab-1.section-1.panel-7",summary:"Interaction to Next Paint (INP) measures a page's overall responsiveness to user interactions by observing the latency of all click, tap, and keyboard interactions that occur throughout the lifespan of a user's visit to a page.",kind:"chart"}],title:"Browser",summary:"The k6 browser module emits its own metrics based on the Core Web Vitals and Other Web Vitals.",id:"tab-1.section-1"},{panels:[{series:[{query:"ws_connecting[?!tags && (avg || p90 || p95 || p99)]"}],title:"Connect Duration",id:"tab-1.section-2.panel-0",summary:"The duration of the WebSocket connection request. This is an indication of the latency experienced when connecting to a WebSocket server.",kind:"chart"},{series:[{query:"ws_session_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Session Duration",id:"tab-1.section-2.panel-1",summary:"The time between the start of the connection and the end of the VU execution.",kind:"chart"},{series:[{query:"ws_ping[?!tags && (avg || p90 || p95 || p99)]"}],title:"Ping Duration",id:"tab-1.section-2.panel-2",summary:"The duration between a ping request and its pong reception. This is an indication of the latency experienced during the roundtrip of sending a ping message to a WebSocket server, and waiting for the pong response message to come back.",kind:"chart"},{series:[{query:"ws_msgs_sent[?!tags && rate]"},{query:"ws_msgs_received[?!tags && rate]"}],title:"Transfer Rate",id:"tab-1.section-2.panel-3",summary:"The total number of WebSocket messages sent, and the total number of WebSocket messages received.",kind:"chart"},{series:[{query:"ws_sessions[?!tags && rate]"}],title:"Sessions Rate",id:"tab-1.section-2.panel-4",summary:"The total number of WebSocket sessions started.",kind:"chart"}],title:"WebSocket",summary:"k6 emits the following metrics when interacting with a WebSocket service through the experimental or legacy websockets API.",id:"tab-1.section-2"},{panels:[{series:[{query:"grpc_req_duration[?!tags && (avg || p90 || p95 || p99)]"}],title:"Request Duration",id:"tab-1.section-3.panel-0",summary:"The gRPC request duration represents the total time for a gRPC request. This is an indication of the latency experienced when making gRPC requests against the system under test.",kind:"chart"},{series:[{query:"grpc_streams_msgs_sent[?!tags && rate]"},{query:"grpc_streams_msgs_received[?!tags && rate]"}],title:"Transfer Rate",id:"tab-1.section-3.panel-1",summary:"The total number of messages sent to gRPC streams, and the total number of messages received from a gRPC stream.",kind:"chart"},{series:[{query:"grpc_streams[?!tags && rate]"}],title:"Streams Rate",id:"tab-1.section-3.panel-2",summary:"The total number of gRPC streams started.",kind:"chart"}],title:"gRPC",summary:"k6 emits the following metrics when it interacts with a service through the gRPC API.",id:"tab-1.section-3"}],title:"Timings",summary:"This chapter provides an overview of test run HTTP timing metrics. Graphs plot the value of metrics over time.",id:"tab-1"},{sections:[{panels:[{series:[{query:"[?!tags && trend]"}],title:"Trends",kind:"summary",id:"tab-2.section-0.panel-0"}],title:"",id:"tab-2.section-0"},{panels:[{series:[{query:"[?!tags && counter]"}],title:"Counters",kind:"summary",id:"tab-2.section-1.panel-0"},{series:[{query:"[?!tags && rate]"}],title:"Rates",kind:"summary",id:"tab-2.section-1.panel-1"},{series:[{query:"[?!tags && gauge]"}],title:"Gauges",kind:"summary",id:"tab-2.section-1.panel-2"}],title:"",id:"tab-2.section-1"}],title:"Summary",summary:"This chapter provides a summary of the test run metrics. The tables contains the aggregated values of the metrics for the entire test run.",id:"tab-2"}],k1={title:bw,tabs:Nw};var S1={};(function(e){(function(t){function n(h){return h!==null?Object.prototype.toString.call(h)==="[object Array]":!1}function r(h){return h!==null?Object.prototype.toString.call(h)==="[object Object]":!1}function l(h,S){if(h===S)return!0;var C=Object.prototype.toString.call(h);if(C!==Object.prototype.toString.call(S))return!1;if(n(h)===!0){if(h.length!==S.length)return!1;for(var L=0;L",9:"Array"},w="EOF",T="UnquotedIdentifier",O="QuotedIdentifier",M="Rbracket",N="Rparen",R="Comma",I="Colon",A="Rbrace",D="Number",V="Current",K="Expref",oe="Pipe",se="Or",fe="And",ne="EQ",q="GT",J="LT",G="GTE",re="LTE",Y="NE",me="Flatten",X="Star",pe="Filter",Re="Dot",Ue="Not",Be="Lbrace",tt="Lbracket",Ct="Lparen",at="Literal",dn={".":Re,"*":X,",":R,":":I,"{":Be,"}":A,"]":M,"(":Ct,")":N,"@":V},Qn={"<":!0,">":!0,"=":!0,"!":!0},pn={" ":!0," ":!0,"\n":!0};function Zn(h){return h>="a"&&h<="z"||h>="A"&&h<="Z"||h==="_"}function Cn(h){return h>="0"&&h<="9"||h==="-"}function hn(h){return h>="a"&&h<="z"||h>="A"&&h<="Z"||h>="0"&&h<="9"||h==="_"}function ht(){}ht.prototype={tokenize:function(h){var S=[];this._current=0;for(var C,L,F;this._current")return h[this._current]==="="?(this._current++,{type:G,value:">=",start:S}):{type:q,value:">",start:S};if(C==="="&&h[this._current]==="=")return this._current++,{type:ne,value:"==",start:S}},_consumeLiteral:function(h){this._current++;for(var S=this._current,C=h.length,L;h[this._current]!=="`"&&this._current=0)return!0;if(C.indexOf(h)>=0)return!0;if(L.indexOf(h[0])>=0)try{return JSON.parse(h),!0}catch{return!1}else return!1}};var ue={};ue[w]=0,ue[T]=0,ue[O]=0,ue[M]=0,ue[N]=0,ue[R]=0,ue[A]=0,ue[D]=0,ue[V]=0,ue[K]=0,ue[oe]=1,ue[se]=2,ue[fe]=3,ue[ne]=5,ue[q]=5,ue[J]=5,ue[G]=5,ue[re]=5,ue[Y]=5,ue[me]=9,ue[X]=20,ue[pe]=21,ue[Re]=40,ue[Ue]=45,ue[Be]=50,ue[tt]=55,ue[Ct]=60;function nt(){}nt.prototype={parse:function(h){this._loadTokens(h),this.index=0;var S=this.expression(0);if(this._lookahead(0)!==w){var C=this._lookaheadToken(0),L=new Error("Unexpected token type: "+C.type+", value: "+C.value);throw L.name="ParserError",L}return S},_loadTokens:function(h){var S=new ht,C=S.tokenize(h);C.push({type:w,value:"",start:h.length}),this.tokens=C},expression:function(h){var S=this._lookaheadToken(0);this._advance();for(var C=this.nud(S),L=this._lookahead(0);h=0)return this.expression(h);if(S===tt)return this._match(tt),this._parseMultiselectList();if(S===Be)return this._match(Be),this._parseMultiselectHash()},_parseProjectionRHS:function(h){var S;if(ue[this._lookahead(0)]<10)S={type:"Identity"};else if(this._lookahead(0)===tt)S=this.expression(h);else if(this._lookahead(0)===pe)S=this.expression(h);else if(this._lookahead(0)===Re)this._match(Re),S=this._parseDotRHS(h);else{var C=this._lookaheadToken(0),L=new Error("Sytanx error, unexpected token: "+C.value+"("+C.type+")");throw L.name="ParserError",L}return S},_parseMultiselectList:function(){for(var h=[];this._lookahead(0)!==M;){var S=this.expression(0);if(h.push(S),this._lookahead(0)===R&&(this._match(R),this._lookahead(0)===M))throw new Error("Unexpected token Rbracket")}return this._match(M),{type:"MultiSelectList",children:h}},_parseMultiselectHash:function(){for(var h=[],S=[T,O],C,L,F,Q;;){if(C=this._lookaheadToken(0),S.indexOf(C.type)<0)throw new Error("Expecting an identifier token, got: "+C.type);if(L=C.value,this._advance(),this._match(I),F=this.expression(0),Q={type:"KeyValuePair",name:L,value:F},h.push(Q),this._lookahead(0)===R)this._match(R);else if(this._lookahead(0)===A){this._match(A);break}}return{type:"MultiSelectHash",children:h}}};function Ft(h){this.runtime=h}Ft.prototype={search:function(h,S){return this.visit(h,S)},visit:function(h,S){var C,L,F,Q,ae,he,ut,Qe,We,ce;switch(h.type){case"Field":return S!==null&&r(S)?(he=S[h.name],he===void 0?null:he):null;case"Subexpression":for(F=this.visit(h.children[0],S),ce=1;ce0)for(ce=Io;ceBo;ce+=de)F.push(S[ce]);return F;case"Projection":var ct=this.visit(h.children[0],S);if(!n(ct))return null;for(We=[],ce=0;ceae;break;case G:F=Q>=ae;break;case J:F=Q=h&&(S=C<0?h-1:h),S}};function ye(h){this._interpreter=h,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[u]}]},avg:{_func:this._functionAvg,_signature:[{types:[P]}]},ceil:{_func:this._functionCeil,_signature:[{types:[u]}]},contains:{_func:this._functionContains,_signature:[{types:[c,p]},{types:[a]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[c]},{types:[c]}]},floor:{_func:this._functionFloor,_signature:[{types:[u]}]},length:{_func:this._functionLength,_signature:[{types:[c,p,d]}]},map:{_func:this._functionMap,_signature:[{types:[_]},{types:[p]}]},max:{_func:this._functionMax,_signature:[{types:[P,y]}]},merge:{_func:this._functionMerge,_signature:[{types:[d],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[p]},{types:[_]}]},sum:{_func:this._functionSum,_signature:[{types:[P]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[c]},{types:[c]}]},min:{_func:this._functionMin,_signature:[{types:[P,y]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[p]},{types:[_]}]},type:{_func:this._functionType,_signature:[{types:[a]}]},keys:{_func:this._functionKeys,_signature:[{types:[d]}]},values:{_func:this._functionValues,_signature:[{types:[d]}]},sort:{_func:this._functionSort,_signature:[{types:[y,P]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[p]},{types:[_]}]},join:{_func:this._functionJoin,_signature:[{types:[c]},{types:[y]}]},reverse:{_func:this._functionReverse,_signature:[{types:[c,p]}]},to_array:{_func:this._functionToArray,_signature:[{types:[a]}]},to_string:{_func:this._functionToString,_signature:[{types:[a]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[a]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[a],variadic:!0}]}}}ye.prototype={callFunction:function(h,S){var C=this.functionTable[h];if(C===void 0)throw new Error("Unknown function: "+h+"()");return this._validateArgs(h,S,C._signature),C._func.call(this,S)},_validateArgs:function(h,S,C){var L;if(C[C.length-1].variadic){if(S.length=0;F--)L+=C[F];return L}else{var Q=h[0].slice(0);return Q.reverse(),Q}},_functionAbs:function(h){return Math.abs(h[0])},_functionCeil:function(h){return Math.ceil(h[0])},_functionAvg:function(h){for(var S=0,C=h[0],L=0;L=0},_functionFloor:function(h){return Math.floor(h[0])},_functionLength:function(h){return r(h[0])?Object.keys(h[0]).length:h[0].length},_functionMap:function(h){for(var S=[],C=this._interpreter,L=h[0],F=h[1],Q=0;Q0){var S=this._getTypeName(h[0][0]);if(S===u)return Math.max.apply(Math,h[0]);for(var C=h[0],L=C[0],F=1;F0){var S=this._getTypeName(h[0][0]);if(S===u)return Math.min.apply(Math,h[0]);for(var C=h[0],L=C[0],F=1;FTn?1:ceF&&(F=ae,Q=C[he]);return Q},_functionMinBy:function(h){for(var S=h[1],C=h[0],L=this.createKeyFunction(S,[u,c]),F=1/0,Q,ae,he=0;he(e.bytes="bytes",e.bps="bps",e.counter="counter",e.rps="rps",e.duration="duration",e.timestamp="timestamp",e.unknown="",e))(Kr||{}),E1=class{constructor(e){ve(this,"name");ve(this,"aggregate");const[t,n]=e.split(".",2);this.aggregate=n,this.name=t}},Jp="time",Uf=class{constructor({values:e={},names:t=[]}={}){ve(this,"values");ve(this,"names");ve(this,"_aggregates");this.values=e,this.names=t,this._aggregates={}}set aggregates(e){for(const t in e){const n=t;this._aggregates[n]=e[n].map(r=>r.replaceAll("(","").replaceAll(")",""))}}onEvent(e){for(const t in e)this.values[t]={...e[t],name:t};this.names=Object.keys(this.values),this.names.sort()}toAggregate(e){const t={};for(let n=0;n(e.config="config",e.param="param",e.start="start",e.stop="stop",e.metric="metric",e.snapshot="snapshot",e.cumulative="cumulative",e.threshold="threshold",e))(C1||{}),vs="time",gs=class{constructor({length:e=0,capacity:t=1e4,values:n=new Array,aggregate:r="value",metric:l=void 0,unit:i="",name:o="",tags:s={},group:u=void 0}={}){ve(this,"capacity");ve(this,"aggregate");ve(this,"metric");ve(this,"unit");ve(this,"empty");ve(this,"name");ve(this,"tags");ve(this,"group");ve(this,"values");this.values=e==0?n:new Array(e),this.capacity=t,this.aggregate=r,this.metric=l,this.unit=i,this.empty=this.values.length==0,this.name=o,this.tags=s,this.group=u,Object.defineProperty(this,r,{value:!0,configurable:!0,enumerable:!0,writable:!0})}hasTags(){return this.tags!=null&&Object.keys(this.tags).length!=0}formatTags(){if(!this.hasTags())return"";let e="{";for(const t in this.tags)e+=`${t}:${this.tags[t]}`;return e+="}",e}get legend(){let e=this.aggregate;return this.metric&&this.metric.type!="trend"&&this.name.length!=0&&(e=this.name+this.formatTags()),e}grow(e){this.values[e-1]=void 0}push(...e){let t=!1;if(e.forEach(n=>{this.values.push(n),this.empty=!1,this.values.length==this.capacity&&(this.values.shift(),t=!0)}),t){this.empty=!0;for(let n=0;n{t.unit&&!e.includes(t.unit)&&e.push(t.unit)}),e}},Rw=class{constructor({capacity:e=1e4,metrics:t=new Uf}={}){ve(this,"capacity");ve(this,"metrics");ve(this,"values");ve(this,"vectors");ve(this,"lookup");this.capacity=e,this.metrics=t,this.lookup={},this.vectors={},this.values={}}get length(){return this.values[vs]?this.values[vs].values.length:0}_push(e,t,n=void 0){const r=n?e+"."+n:e;let l=this.vectors[r];if(l)l.values.length0){r=e.substring(l),r=r.substring(1,r.length-1);const i=r.indexOf(":"),o=r.substring(0,i),s=r.substring(i+1);n.tags={[o]:s},o=="group"&&(n.group=s.substring(2)),e=e.substring(0,l)}return n.name=e,n.metric=this.metrics.find(e),n.unit=this.metrics.unit(e,t),new gs(n)}onEvent(e){for(const t in e){if(t==vs){this._push(t,Math.floor(e[t].value/1e3));continue}for(const n in e[t]){const r=n;this._push(t,e[t][r],r)}}}annotate(e){this.metrics=e;for(const t in this.values){this.values[t].metric=e.find(t);const n=new E1(t);this.values[t].unit=e.unit(n.name,n.aggregate)}}select(e){const t=new Mw(this.values[vs]);if(t.length==0)return t;for(const n of e){const r=this.queryAll(n);r.length>0&&t.push(...r)}return t}query(e){const t=Ac.search(this.lookup,e);if(Array.isArray(t)){const r=t.at(0);return r instanceof gs?r:void 0}return t instanceof gs?t:void 0}queryAll(e){const t=Ac.search(this.lookup,e);if(!Array.isArray(t)||t.length==0)return new Array;const n=t;return n.at(0)instanceof gs?n:new Array}},Xp=class{constructor({values:e,metric:t,name:n}={}){ve(this,"values");ve(this,"metric");ve(this,"name");ve(this,"tags");ve(this,"group");this.values=e,this.metric=t,this.name=n,t&&t.type&&Object.defineProperty(this,t.type,{value:!0,configurable:!0,enumerable:!0,writable:!0});let r="";const l=n.indexOf("{");if(l&&l>0){r=n.substring(l),r=r.substring(1,r.length-1);const i=r.indexOf(":"),o=r.substring(0,i),s=r.substring(i+1);this.tags={[o]:s},o=="group"&&(this.group=s.substring(2)),n=n.substring(0,l)}}},Lw="time",jw=class extends Array{constructor(t){super();ve(this,"aggregates");this.aggregates=new Array;for(let n=0;nl))}}get empty(){return this.length==0}},zw=class{constructor({values:t={},metrics:n=new Uf,time:r=0}={}){ve(this,"values");ve(this,"lookup");ve(this,"metrics");ve(this,"time");this.values=t,this.lookup=new Array,this.metrics=n,this.time=r}onEvent(t){const n={};let r=0;for(const i in t){if(i==Lw){r=Math.floor(t[i].value/1e3);continue}const o=this.newSummaryRow(i,t[i]);n[i]=o}this.values=n,this.time=r;const l=Array();for(const i in this.values)l.push(this.values[i]);this.lookup=l}newSummaryRow(t,n){const r={};return r.name=t,r.metric=this.metrics.find(t),r.values=n,new Xp(r)}annotate(t){this.metrics=t;for(const n in this.values)this.values[n].metric=t.find(n)}select(t){const n=new Array;for(const r of t){const l=this.queryAll(r);l.length>0&&n.push(...l)}return new jw(n)}queryAll(t){const n=Ac.search(this.lookup,t);if(!Array.isArray(n)||n.length==0)return new Array;const r=n;return r.at(0)instanceof Xp?r:new Array}},Aw=class{constructor(e={}){Object.assign(this,e)}},Dw=class{constructor(e={}){Object.assign(this,e)}},Dc=class{constructor({config:e={},param:t={},start:n=void 0,stop:r=void 0,metrics:l=new Uf,samples:i=new Rw,summary:o=new zw,thresholds:s=new Dw}={}){ve(this,"config");ve(this,"param");ve(this,"start");ve(this,"stop");ve(this,"metrics");ve(this,"samples");ve(this,"summary");ve(this,"thresholds");this.config=e,this.param=t,this.start=n,this.stop=r,this.metrics=l,this.samples=i,this.summary=o,this.thresholds=s}handleEvent(e){const t=e.type,n=JSON.parse(e.data);this.onEvent({type:t,data:n})}onEvent(e){switch(e.type){case"config":this.onConfig(e.data);break;case"param":this.onParam(e.data);break;case"start":this.onStart(this.metrics.toAggregate(e.data));break;case"stop":this.onStop(this.metrics.toAggregate(e.data));break;case"metric":this.onMetric(e.data);break;case"snapshot":this.onSnapshot(this.metrics.toAggregate(e.data));break;case"cumulative":this.onCumulative(this.metrics.toAggregate(e.data));break;case"threshold":this.onThreshold(e.data);break}}onConfig(e){Object.assign(this.config,e)}onParam(e){Object.assign(this.param,e),this.metrics.aggregates=e.aggregates}onStart(e){e.time&&e.time.value&&(this.start=new Date(e.time.value))}onStop(e){e.time&&e.time.value&&(this.stop=new Date(e.time.value))}onMetric(e){this.metrics.onEvent(e),this.samples.annotate(this.metrics),this.summary.annotate(this.metrics)}onSnapshot(e){this.samples.onEvent(e),this.samples.annotate(this.metrics)}onCumulative(e){this.summary.onEvent(e),this.summary.annotate(this.metrics)}onThreshold(e){Object.assign(this.thresholds,e)}};const Wf=$.createContext(()=>new Dc({config:k1}));Wf.displayName="Digest";function Fw({endpoint:e="/events",children:t}){const[n,r]=$.useState(new Dc({config:new Aw(k1)}));return $.useEffect(()=>{const l=new EventSource(e),i=o=>{n.handleEvent(o),r(new Dc(n))};for(const o in C1)l.addEventListener(o,i)},[]),j.jsx(Wf.Provider,{value:()=>n,children:t})}function pl(){const e=$.useContext(Wf);if(e===void 0)throw new Error("useDigest must be used within a DigestProvider");return e()}var Iw="_1dwurlb28",Bw="_1dwurlb27",T1={borderRadius:{sm:"var(--_1dwurlb0)",md:"var(--_1dwurlb1)",lg:"var(--_1dwurlb2)",xl:"var(--_1dwurlb3)"},sizes:{size1:"var(--_1dwurlb4)",size2:"var(--_1dwurlb5)",size3:"var(--_1dwurlb6)",size4:"var(--_1dwurlb7)",size5:"var(--_1dwurlb8)",size6:"var(--_1dwurlb9)",size7:"var(--_1dwurlba)",size8:"var(--_1dwurlbb)",size9:"var(--_1dwurlbc)",size10:"var(--_1dwurlbd)",size11:"var(--_1dwurlbe)",xs:"var(--_1dwurlbf)",sm:"var(--_1dwurlbg)",md:"var(--_1dwurlbh)",lg:"var(--_1dwurlbi)",xl:"var(--_1dwurlbj)",xxl:"var(--_1dwurlbk)"},animation:{spin:"var(--_1dwurlbl)"},fontSizes:{size0:"var(--_1dwurlbm)",size1:"var(--_1dwurlbn)",size2:"var(--_1dwurlbo)",size3:"var(--_1dwurlbp)",size4:"var(--_1dwurlbq)",size5:"var(--_1dwurlbr)",size6:"var(--_1dwurlbs)",size7:"var(--_1dwurlbt)",size8:"var(--_1dwurlbu)",size9:"var(--_1dwurlbv)"},fontWeights:{weight100:"var(--_1dwurlbw)",weight200:"var(--_1dwurlbx)",weight300:"var(--_1dwurlby)",weight400:"var(--_1dwurlbz)",weight500:"var(--_1dwurlb10)",weight600:"var(--_1dwurlb11)",weight700:"var(--_1dwurlb12)",weight800:"var(--_1dwurlb13)",weight900:"var(--_1dwurlb14)"},fonts:{sans:"var(--_1dwurlb15)",serif:"var(--_1dwurlb16)",mono:"var(--_1dwurlb17)"},letterSpacings:{size0:"var(--_1dwurlb18)",size1:"var(--_1dwurlb19)",size2:"var(--_1dwurlb1a)",size3:"var(--_1dwurlb1b)",size4:"var(--_1dwurlb1c)",size5:"var(--_1dwurlb1d)",size6:"var(--_1dwurlb1e)",size7:"var(--_1dwurlb1f)"},lineHeights:{size0:"var(--_1dwurlb1g)",size1:"var(--_1dwurlb1h)",size2:"var(--_1dwurlb1i)",size3:"var(--_1dwurlb1j)",size4:"var(--_1dwurlb1k)",size5:"var(--_1dwurlb1l)",size6:"var(--_1dwurlb1m)"},breakpoints:{header:"1024px"},colors:{common:{black:"var(--_1dwurlb1n)",white:"var(--_1dwurlb1o)"},primary:{light:"var(--_1dwurlb1p)",main:"var(--_1dwurlb1q)",dark:"var(--_1dwurlb1r)"},secondary:{light:"var(--_1dwurlb1s)",main:"var(--_1dwurlb1t)",dark:"var(--_1dwurlb1u)"},text:{primary:"var(--_1dwurlb1v)",secondary:"var(--_1dwurlb1w)",disabled:"var(--_1dwurlb1x)",hover:"var(--_1dwurlb1y)"},action:{active:"var(--_1dwurlb1z)",hover:"var(--_1dwurlb20)"},shadow:"var(--_1dwurlb21)",border:"var(--_1dwurlb22)",components:{button:{outline:{border:"var(--_1dwurlb23)",text:"var(--_1dwurlb24)",background:"var(--_1dwurlb25)"}},table:{row:{hover:"var(--_1dwurlb26)"}}}}};globalThis&&globalThis.__awaiter;function P1(){const[e,t]=$.useState(null),[n,r]=$.useState({width:0,height:0}),l=$.useCallback(()=>{r({width:(e==null?void 0:e.offsetWidth)||0,height:(e==null?void 0:e.offsetHeight)||0})},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]);return To("resize",l),qf(()=>{l()},[e==null?void 0:e.offsetHeight,e==null?void 0:e.offsetWidth]),[t,n]}function O1(e){const t=$.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return qf(()=>{t.current=e},[e]),$.useCallback((...n)=>t.current(...n),[t])}function To(e,t,n,r){const l=$.useRef(t);qf(()=>{l.current=t},[t]),$.useEffect(()=>{var i;const o=(i=n==null?void 0:n.current)!==null&&i!==void 0?i:window;if(!(o&&o.addEventListener))return;const s=u=>l.current(u);return o.addEventListener(e,s,r),()=>{o.removeEventListener(e,s,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;const qf=typeof window<"u"?$.useLayoutEffect:$.useEffect;function Kf(e){const t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[n,r]=$.useState(t(e));function l(){r(t(e))}return $.useEffect(()=>{const i=window.matchMedia(e);return l(),i.addListener?i.addListener(l):i.addEventListener("change",l),()=>{i.removeListener?i.removeListener(l):i.removeEventListener("change",l)}},[e]),n}function $w(e,t){const n=$.useCallback(()=>{if(typeof window>"u")return t;try{const s=window.sessionStorage.getItem(e);return s?Hw(s):t}catch(s){return console.warn(`Error reading sessionStorage key “${e}”:`,s),t}},[t,e]),[r,l]=$.useState(n),i=O1(s=>{typeof window>"u"&&console.warn(`Tried setting sessionStorage key “${e}” even though environment is not a client`);try{const u=s instanceof Function?s(r):s;window.sessionStorage.setItem(e,JSON.stringify(u)),l(u),window.dispatchEvent(new Event("session-storage"))}catch(u){console.warn(`Error setting sessionStorage key “${e}”:`,u)}});$.useEffect(()=>{l(n())},[]);const o=$.useCallback(s=>{s!=null&&s.key&&s.key!==e||l(n())},[e,n]);return To("storage",o),To("session-storage",o),[r,i]}function Hw(e){try{return e==="undefined"?void 0:JSON.parse(e??"")}catch{console.log("parsing error on",{value:e});return}}const b1=$.createContext({});function Vw({children:e}){const t=Kf("(prefers-color-scheme: dark)"),[n,r]=$w("theme",t?"dark":"light"),l={theme:n,themeClassName:n==="light"?Bw:Iw,setTheme:r};return j.jsx(b1.Provider,{value:l,children:e})}function pi(){const e=$.useContext(b1);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}const N1=$.createContext(void 0);function Uw({children:e}){const[t,n]=$.useState(),r={timeRange:t,setTimeRange:n};return j.jsx(N1.Provider,{value:r,children:e})}function Gf(){const e=$.useContext(N1);if(e===void 0)throw new Error("useTimeRange must be used within a TimeRangeProvider");return e}var Ww={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},qw={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Kw={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},Gw={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},ju={black:"#000000",white:"#ffffff"},Yw={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},Qw={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},Zw={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},Jw={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},M1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Xw={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},e2={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},t2={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},n2={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},e0={50:"#ffffff",100:"#D6DCFF",200:"#CED4EF",300:"#C2CAEF",400:"#B6C0EF",500:"#AAB6EF",600:"#3f486b",700:"#394160",800:"#2c324b",900:"#1F2537"},r2={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},l2={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},i2={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},o2={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},s2={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},a2={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"};const ys={red:o2,pink:l2,purple:i2,deepPurple:Zw,indigo:Xw,blue:qw,lightBlue:e2,cyan:Yw,teal:s2,green:Jw,lightGreen:t2,lime:n2,yellow:a2,amber:Ww,orange:r2,deepOrange:Qw,brown:Gw,grey:M1,blueGrey:Kw},u2=["grey","teal","blue","purple","indigo","orange","pink","green","cyan","amber","lime","brown","lightGreen","red","deepPurple","lightBlue","yellow","deepOrange","blueGrey"],R1=e=>u2.map(t=>({stroke:e=="dark"?ys[t][500]:ys[t][800],fill:(e=="dark"?ys[t][300]:ys[t][600])+"20"})),c2=e=>Object.entries(e).reduce((t,[n,r])=>r===void 0?t:{...t,[n]:r},{}),f2=(e,t)=>Object.entries(t).reduce((n,[r,l])=>(e.includes(r)&&(n[r]=l),n),{}),d2=(e,t)=>({...e,...t}),p2=e=>(t,n)=>d2(t,f2(e,n));function t0(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function h2(e,t){var n=e;for(var r of t){if(!(r in n))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}function L1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=e.constructor();for(var l in e){var i=e[l],o=[...n,l];typeof i=="string"||typeof i=="number"||i==null?r[l]=t(i,o):typeof i=="object"&&!Array.isArray(i)?r[l]=L1(i,t,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return r}function m2(e,t){var n={};if(typeof t=="object"){var r=e;L1(t,(o,s)=>{var u=h2(r,s);n[t0(u)]=String(o)})}else{var l=e;for(var i in l)n[t0(i)]=l[i]}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(s=>"".concat(s,":").concat(this[s])).join(";")},writable:!1}),n}const Yn=(...e)=>e.filter(Boolean).join(" "),v2=(e,t)=>m2(e,c2(t));function g2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y2(e){var t=g2(e,"string");return typeof t=="symbol"?t:String(t)}function w2(e,t,n){return t=y2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function zu(e){for(var t=1;tfunction(){for(var t=arguments.length,n=new Array(t),r=0;ru.styles)),i=Object.keys(l),o=i.filter(u=>"mappings"in l[u]),s=u=>{var a=[],c={},p=zu({},u),d=!1;for(var g of o){var _=u[g];if(_!=null){var x=l[g];d=!0;for(var P of x.mappings)c[P]=_,p[P]==null&&delete p[P]}}var y=d?zu(zu({},c),p):u,v=function(){var M=y[w],N=l[w];try{if(N.mappings)return"continue";if(typeof M=="string"||typeof M=="number")a.push(N.values[M].defaultClass);else if(Array.isArray(M))for(var R=0;Re,zo=function(){return _2(x2)(...arguments)},k2="wy7gkc15",S2={flexGrow:"var(--wy7gkc10)",flexShrink:"var(--wy7gkc11)",flexBasis:"var(--wy7gkc12)",height:"var(--wy7gkc13)",width:"var(--wy7gkc14)"},E2=zo({conditions:void 0,styles:{flexDirection:{values:{row:{defaultClass:"wy7gkc0"},column:{defaultClass:"wy7gkc1"}}},flexWrap:{values:{nowrap:{defaultClass:"wy7gkc2"},wrap:{defaultClass:"wy7gkc3"},"wrap-reverse":{defaultClass:"wy7gkc4"}}},alignItems:{values:{"flex-start":{defaultClass:"wy7gkc5"},"flex-end":{defaultClass:"wy7gkc6"},stretch:{defaultClass:"wy7gkc7"},center:{defaultClass:"wy7gkc8"},baseline:{defaultClass:"wy7gkc9"},start:{defaultClass:"wy7gkca"},end:{defaultClass:"wy7gkcb"},"self-start":{defaultClass:"wy7gkcc"},"self-end":{defaultClass:"wy7gkcd"}}},justifyContent:{values:{"flex-start":{defaultClass:"wy7gkce"},"flex-end":{defaultClass:"wy7gkcf"},start:{defaultClass:"wy7gkcg"},end:{defaultClass:"wy7gkch"},left:{defaultClass:"wy7gkci"},right:{defaultClass:"wy7gkcj"},center:{defaultClass:"wy7gkck"},"space-between":{defaultClass:"wy7gkcl"},"space-around":{defaultClass:"wy7gkcm"},"space-evenly":{defaultClass:"wy7gkcn"}}},gap:{values:{0:{defaultClass:"wy7gkco"},1:{defaultClass:"wy7gkcp"},2:{defaultClass:"wy7gkcq"},3:{defaultClass:"wy7gkcr"},4:{defaultClass:"wy7gkcs"},5:{defaultClass:"wy7gkct"}}},padding:{values:{0:{defaultClass:"wy7gkcu"},1:{defaultClass:"wy7gkcv"},2:{defaultClass:"wy7gkcw"},3:{defaultClass:"wy7gkcx"},4:{defaultClass:"wy7gkcy"},5:{defaultClass:"wy7gkcz"}}}}});function C2({as:e="div",align:t,basis:n,children:r,className:l,direction:i,gap:o=3,grow:s,height:u,justify:a,padding:c,shrink:p,width:d,wrap:g,..._},x){const P=E2({alignItems:t,flexDirection:i,flexWrap:g,gap:o,justifyContent:a,padding:c}),y=Yn(k2,P,l),v=v2(S2,{flexBasis:n,flexGrow:s,flexShrink:p,height:u,width:d});return j.jsx(e,{ref:x,className:y,style:v,..._,children:r})}const st=$.forwardRef(C2);var T2={fill:"_17y8ldl2 _17y8ldl1 _17y8ldl0",outline:"_17y8ldl3 _17y8ldl1 _17y8ldl0",text:"_17y8ldl0"};const P2=({as:e="button",children:t,className:n,variant:r="fill",...l},i)=>j.jsx(e,{ref:i,className:Yn(T2[r],n),...l,children:t}),Ao=$.forwardRef(P2),O2=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},$.createElement("rect",{fill:"none",height:24,width:24}),$.createElement("path",{d:"M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36c-0.98,1.37-2.58,2.26-4.4,2.26 c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})),b2=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},$.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),$.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),N2=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},$.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),$.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})),M2=e=>$.createElement("svg",{fill:"currentColor",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"24px",viewBox:"796 796 200 200",enableBackground:"new 796 796 200 200",xmlSpace:"preserve",...e},$.createElement("g",null,$.createElement("path",{d:"M939.741,830.286c0.203-1.198-0.133-2.426-0.918-3.354s-1.938-1.461-3.153-1.461h-79.338c-1.214,0-2.365,0.536-3.149,1.463 c-0.784,0.928-1.124,2.155-0.92,3.352c2.866,16.875,12.069,32.797,25.945,42.713c7.737,5.529,13.827,8.003,17.793,8.003 c3.965,0,10.055-2.474,17.793-8.003C927.67,863.083,936.874,847.162,939.741,830.286z"}),$.createElement("path",{d:"M966.478,980.009h-5.074v-11.396c0-23.987-13.375-48.914-35.775-66.679l-7.485-5.936l7.485-5.934 c22.4-17.762,35.775-42.688,35.775-66.678v-11.396h5.074c4.416,0,7.996-3.58,7.996-7.995c0-4.416-3.58-7.996-7.996-7.996H825.521 c-4.415,0-7.995,3.58-7.995,7.996c0,4.415,3.58,7.995,7.995,7.995h5.077v9.202c0,27.228,13.175,53.007,35.243,68.962l8.085,5.843 l-8.085,5.847c-22.068,15.952-35.243,41.732-35.243,68.962v9.202h-5.077c-4.415,0-7.995,3.58-7.995,7.996 c0,4.415,3.58,7.995,7.995,7.995h140.956c4.416,0,7.996-3.58,7.996-7.995C974.474,983.589,970.894,980.009,966.478,980.009z M842.592,970.807c0-23.392,11.318-45.538,30.277-59.242l8.429-6.097c3.03-2.19,4.839-5.729,4.839-9.47 c0-3.739-1.809-7.279-4.84-9.471l-8.429-6.091c-18.958-13.707-30.276-35.853-30.276-59.243v-3.349c0-3.232,2.62-5.853,5.853-5.853 h95.112c3.232,0,5.854,2.621,5.854,5.853v5.543c0,20.36-11.676,41.774-31.232,57.279l-7.792,6.177 c-2.811,2.232-4.422,5.568-4.422,9.155c0,3.588,1.611,6.926,4.425,9.157l7.788,6.177c19.558,15.508,31.233,36.921,31.233,57.28 v5.544c0,3.232-2.621,5.854-5.854,5.854h-95.112c-3.232,0-5.853-2.621-5.853-5.854V970.807z"}))),R2=e=>$.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{d:"M12 11V16M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),$.createElement("circle",{cx:12,cy:7.5,r:1,fill:"currentColor"})),L2=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",...e},$.createElement("rect",{fill:"none",height:24,width:24}),$.createElement("path",{d:"M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0 c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2 c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1 C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06 c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41 l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41 c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36 c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})),j2=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:37,height:34,viewBox:"0 0 37 34",fill:"currentColor",...e},$.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9129 12.4547L29.0217 0L36.6667 33.1967H0L12.2687 6.86803L19.9129 12.4547ZM15.1741 24.4166L17.3529 27.4205L19.6915 27.4198L17.1351 23.8957L19.3864 20.7907L17.8567 19.6768L15.1741 23.3764V17.7248L13.1575 16.2575V27.4205H15.1741V24.4166ZM20.0105 24.1067C20.0105 26.0056 21.5468 27.5452 23.4425 27.5452C25.3396 27.5452 26.8759 26.0056 26.8759 24.1075C26.8746 23.2903 26.5844 22.5003 26.0573 21.8786C25.5301 21.2569 24.8003 20.8441 23.9983 20.714L25.6403 18.45L24.1105 17.3361L20.6675 22.0832C20.2395 22.6699 20.0093 23.379 20.0105 24.1067ZM24.9179 24.1067C24.9179 24.9226 24.2579 25.5843 23.4432 25.5843C23.2499 25.5848 23.0583 25.547 22.8795 25.473C22.7007 25.399 22.5382 25.2903 22.4011 25.153C22.2641 25.0158 22.1553 24.8528 22.081 24.6733C22.0066 24.4937 21.9681 24.3012 21.9677 24.1067C21.9677 23.2908 22.6277 22.6291 23.4432 22.6291C24.2572 22.6291 24.9179 23.2908 24.9179 24.1067Z",fill:"#7D64FF"})),z2=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"currentColor",...e},$.createElement("path",{d:"M12 2C12 0.89544 11.1046 0 10 0C8.8954 0 8 0.89544 8 2C8 3.10456 8.8954 4 10 4C11.1046 4 12 3.10456 12 2Z",fill:"currentColor"}),$.createElement("path",{d:"M12 9.33337C12 8.22881 11.1046 7.33337 10 7.33337C8.8954 7.33337 8 8.22881 8 9.33337C8 10.4379 8.8954 11.3334 10 11.3334C11.1046 11.3334 12 10.4379 12 9.33337Z",fill:"currentColor"}),$.createElement("path",{d:"M12 16.6666C12 15.5621 11.1046 14.6666 10 14.6666C8.8954 14.6666 8 15.5621 8 16.6666C8 17.7712 8.8954 18.6666 10 18.6666C11.1046 18.6666 12 17.7712 12 16.6666Z",fill:"currentColor"})),A2=e=>$.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},$.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},$.createElement("g",{id:"add",fill:"currentColor",transform:"translate(42.666667, 42.666667)"},$.createElement("path",{d:"M291.76704,163.504 C291.76704,177.01952 288.33216,188.82176 281.479253,198.90112 C275.828267,207.371093 266.358187,216.549547 253.042987,226.434987 C245.378987,231.682347 240.331947,236.618667 237.916587,241.257813 C234.87744,246.90624 233.376213,255.371093 233.376213,266.666667 L190.710827,266.666667 C190.710827,249.530027 192.53504,237.027413 196.165333,229.162667 C200.394453,219.679573 209.571627,210.098773 223.686187,200.42048 C230.350293,195.374933 235.188693,190.2368 238.214827,184.994773 C241.839787,179.143253 243.664,172.49216 243.664,165.028693 C243.664,153.13024 240.125013,144.26304 233.070293,138.404907 C227.4336,134.177067 220.56768,132.059947 212.501333,132.059947 C199.39328,132.059947 189.911467,136.398507 184.065067,145.069013 C179.829333,151.518293 177.7056,159.787733 177.7056,169.868587 L177.7056,170.173227 L132.34368,170.173227 C132.34368,143.751253 140.703147,123.790507 157.43488,110.274773 C171.554773,98.9922133 189.007787,93.3346133 209.77344,93.3346133 C227.933653,93.3346133 243.865813,96.86848 257.571627,103.9232 C280.37504,115.62624 291.76704,135.494827 291.76704,163.504 Z M426.666667,213.333333 C426.666667,331.153707 331.153707,426.666667 213.333333,426.666667 C95.51296,426.666667 3.55271368e-14,331.153707 3.55271368e-14,213.333333 C3.55271368e-14,95.51168 95.51296,3.55271368e-14 213.333333,3.55271368e-14 C331.153707,3.55271368e-14 426.666667,95.51168 426.666667,213.333333 Z M384,213.333333 C384,119.226667 307.43872,42.6666667 213.333333,42.6666667 C119.227947,42.6666667 42.6666667,119.226667 42.6666667,213.333333 C42.6666667,307.43872 119.227947,384 213.333333,384 C307.43872,384 384,307.43872 384,213.333333 Z M213.332053,282.666667 C198.60416,282.666667 186.665387,294.60544 186.665387,309.333333 C186.665387,324.061227 198.60416,336 213.332053,336 C228.059947,336 239.99872,324.061227 239.99872,309.333333 C239.99872,294.60544 228.059947,282.666667 213.332053,282.666667 Z",id:"Shape"})))),D2=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,fill:"currentColor",...e},$.createElement("path",{d:"M12,2A10,10,0,0,0,5.12,4.77V3a1,1,0,0,0-2,0V7.5a1,1,0,0,0,1,1H8.62a1,1,0,0,0,0-2H6.22A8,8,0,1,1,4,12a1,1,0,0,0-2,0A10,10,0,1,0,12,2Zm0,6a1,1,0,0,0-1,1v3a1,1,0,0,0,1,1h2a1,1,0,0,0,0-2H13V9A1,1,0,0,0,12,8Z"})),F2=e=>$.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},$.createElement("path",{opacity:.2,fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"}),$.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12H19C19 15.866 15.866 19 12 19V22Z",fill:"currentColor"}),$.createElement("path",{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"})),I2=e=>$.createElement("svg",{width:"24px",height:"24px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"bi bi-stopwatch",...e},$.createElement("path",{d:"M8.5 5.6a.5.5 0 1 0-1 0v2.9h-3a.5.5 0 0 0 0 1H8a.5.5 0 0 0 .5-.5V5.6z"}),$.createElement("path",{d:"M6.5 1A.5.5 0 0 1 7 .5h2a.5.5 0 0 1 0 1v.57c1.36.196 2.594.78 3.584 1.64a.715.715 0 0 1 .012-.013l.354-.354-.354-.353a.5.5 0 0 1 .707-.708l1.414 1.415a.5.5 0 1 1-.707.707l-.353-.354-.354.354a.512.512 0 0 1-.013.012A7 7 0 1 1 7 2.071V1.5a.5.5 0 0 1-.5-.5zM8 3a6 6 0 1 0 .001 12A6 6 0 0 0 8 3z"}));function B2({className:e,name:t,title:n,...r},l){const i=$2[t];return j.jsx("span",{ref:l,children:j.jsx(i,{"aria-hidden":"true",className:e,title:n,...r})})}const $2={"chevron-down":N2,"chevron-up":b2,"hour-glass":M2,info:R2,options:z2,logo:j2,moon:O2,question:A2,"rewind-time":D2,spinner:F2,"stop-watch":I2,sun:L2},Fn=$.forwardRef(B2),j1=()=>{const{timeRange:e,setTimeRange:t}=Gf();return e?j.jsx(Ao,{variant:"outline",onClick:()=>t(void 0),children:j.jsxs(st,{align:"center",gap:2,children:[j.jsx(Fn,{name:"rewind-time"}),j.jsx("span",{children:"Reset"})]})}):null};var H2="_6j0qom0";const V2=()=>{const e=Kf(`(max-width: ${T1.breakpoints.header})`),{timeRange:t}=Gf();return!t||!e?null:j.jsx("footer",{className:H2,children:j.jsx(j1,{})})};var U2="_17unuvp0";const W2=({className:e,...t})=>j.jsx("div",{className:Yn(U2,e),...t});var r0=function(t){return t.reduce(function(n,r){var l=r[0],i=r[1];return n[l]=i,n},{})},l0=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,Zt="top",Sn="bottom",En="right",Jt="left",Yf="auto",Do=[Zt,Sn,En,Jt],Xl="start",Po="end",q2="clippingParents",z1="viewport",Ii="popper",K2="reference",i0=Do.reduce(function(e,t){return e.concat([t+"-"+Xl,t+"-"+Po])},[]),A1=[].concat(Do,[Yf]).reduce(function(e,t){return e.concat([t,t+"-"+Xl,t+"-"+Po])},[]),G2="beforeRead",Y2="read",Q2="afterRead",Z2="beforeMain",J2="main",X2="afterMain",e_="beforeWrite",t_="write",n_="afterWrite",r_=[G2,Y2,Q2,Z2,J2,X2,e_,t_,n_];function Gn(e){return e?(e.nodeName||"").toLowerCase():null}function an(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ul(e){var t=an(e).Element;return e instanceof t||e instanceof Element}function _n(e){var t=an(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qf(e){if(typeof ShadowRoot>"u")return!1;var t=an(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function l_(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},l=t.attributes[n]||{},i=t.elements[n];!_n(i)||!Gn(i)||(Object.assign(i.style,r),Object.keys(l).forEach(function(o){var s=l[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function i_(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var l=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(u,a){return u[a]="",u},{});!_n(l)||!Gn(l)||(Object.assign(l.style,s),Object.keys(i).forEach(function(u){l.removeAttribute(u)}))})}}const o_={name:"applyStyles",enabled:!0,phase:"write",fn:l_,effect:i_,requires:["computeStyles"]};function Kn(e){return e.split("-")[0]}var tl=Math.max,ua=Math.min,ei=Math.round;function Fc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function D1(){return!/^((?!chrome|android).)*safari/i.test(Fc())}function ti(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),l=1,i=1;t&&_n(e)&&(l=e.offsetWidth>0&&ei(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ei(r.height)/e.offsetHeight||1);var o=ul(e)?an(e):window,s=o.visualViewport,u=!D1()&&n,a=(r.left+(u&&s?s.offsetLeft:0))/l,c=(r.top+(u&&s?s.offsetTop:0))/i,p=r.width/l,d=r.height/i;return{width:p,height:d,top:c,right:a+p,bottom:c+d,left:a,x:a,y:c}}function Zf(e){var t=ti(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function F1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fr(e){return an(e).getComputedStyle(e)}function s_(e){return["table","td","th"].indexOf(Gn(e))>=0}function Br(e){return((ul(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ma(e){return Gn(e)==="html"?e:e.assignedSlot||e.parentNode||(Qf(e)?e.host:null)||Br(e)}function o0(e){return!_n(e)||fr(e).position==="fixed"?null:e.offsetParent}function a_(e){var t=/firefox/i.test(Fc()),n=/Trident/i.test(Fc());if(n&&_n(e)){var r=fr(e);if(r.position==="fixed")return null}var l=Ma(e);for(Qf(l)&&(l=l.host);_n(l)&&["html","body"].indexOf(Gn(l))<0;){var i=fr(l);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return l;l=l.parentNode}return null}function Fo(e){for(var t=an(e),n=o0(e);n&&s_(n)&&fr(n).position==="static";)n=o0(n);return n&&(Gn(n)==="html"||Gn(n)==="body"&&fr(n).position==="static")?t:n||a_(e)||t}function Jf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lo(e,t,n){return tl(e,ua(t,n))}function u_(e,t,n){var r=lo(e,t,n);return r>n?n:r}function I1(){return{top:0,right:0,bottom:0,left:0}}function B1(e){return Object.assign({},I1(),e)}function $1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var c_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,B1(typeof t!="number"?t:$1(t,Do))};function f_(e){var t,n=e.state,r=e.name,l=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Kn(n.placement),u=Jf(s),a=[Jt,En].indexOf(s)>=0,c=a?"height":"width";if(!(!i||!o)){var p=c_(l.padding,n),d=Zf(i),g=u==="y"?Zt:Jt,_=u==="y"?Sn:En,x=n.rects.reference[c]+n.rects.reference[u]-o[u]-n.rects.popper[c],P=o[u]-n.rects.reference[u],y=Fo(i),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=x/2-P/2,T=p[g],O=v-d[c]-p[_],M=v/2-d[c]/2+w,N=lo(T,M,O),R=u;n.modifiersData[r]=(t={},t[R]=N,t.centerOffset=N-M,t)}}function d_(e){var t=e.state,n=e.options,r=n.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||F1(t.elements.popper,l)&&(t.elements.arrow=l))}const p_={name:"arrow",enabled:!0,phase:"main",fn:f_,effect:d_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ni(e){return e.split("-")[1]}var h_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m_(e,t){var n=e.x,r=e.y,l=t.devicePixelRatio||1;return{x:ei(n*l)/l||0,y:ei(r*l)/l||0}}function s0(e){var t,n=e.popper,r=e.popperRect,l=e.placement,i=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,a=e.adaptive,c=e.roundOffsets,p=e.isFixed,d=o.x,g=d===void 0?0:d,_=o.y,x=_===void 0?0:_,P=typeof c=="function"?c({x:g,y:x}):{x:g,y:x};g=P.x,x=P.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),w=Jt,T=Zt,O=window;if(a){var M=Fo(n),N="clientHeight",R="clientWidth";if(M===an(n)&&(M=Br(n),fr(M).position!=="static"&&s==="absolute"&&(N="scrollHeight",R="scrollWidth")),M=M,l===Zt||(l===Jt||l===En)&&i===Po){T=Sn;var I=p&&M===O&&O.visualViewport?O.visualViewport.height:M[N];x-=I-r.height,x*=u?1:-1}if(l===Jt||(l===Zt||l===Sn)&&i===Po){w=En;var A=p&&M===O&&O.visualViewport?O.visualViewport.width:M[R];g-=A-r.width,g*=u?1:-1}}var D=Object.assign({position:s},a&&h_),V=c===!0?m_({x:g,y:x},an(n)):{x:g,y:x};if(g=V.x,x=V.y,u){var K;return Object.assign({},D,(K={},K[T]=v?"0":"",K[w]=y?"0":"",K.transform=(O.devicePixelRatio||1)<=1?"translate("+g+"px, "+x+"px)":"translate3d("+g+"px, "+x+"px, 0)",K))}return Object.assign({},D,(t={},t[T]=v?x+"px":"",t[w]=y?g+"px":"",t.transform="",t))}function v_(e){var t=e.state,n=e.options,r=n.gpuAcceleration,l=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,u=s===void 0?!0:s,a={placement:Kn(t.placement),variation:ni(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,s0(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,s0(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const g_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:v_,data:{}};var ws={passive:!0};function y_(e){var t=e.state,n=e.instance,r=e.options,l=r.scroll,i=l===void 0?!0:l,o=r.resize,s=o===void 0?!0:o,u=an(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&a.forEach(function(c){c.addEventListener("scroll",n.update,ws)}),s&&u.addEventListener("resize",n.update,ws),function(){i&&a.forEach(function(c){c.removeEventListener("scroll",n.update,ws)}),s&&u.removeEventListener("resize",n.update,ws)}}const w_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:y_,data:{}};var __={left:"right",right:"left",bottom:"top",top:"bottom"};function zs(e){return e.replace(/left|right|bottom|top/g,function(t){return __[t]})}var x_={start:"end",end:"start"};function a0(e){return e.replace(/start|end/g,function(t){return x_[t]})}function Xf(e){var t=an(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ed(e){return ti(Br(e)).left+Xf(e).scrollLeft}function k_(e,t){var n=an(e),r=Br(e),l=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,u=0;if(l){i=l.width,o=l.height;var a=D1();(a||!a&&t==="fixed")&&(s=l.offsetLeft,u=l.offsetTop)}return{width:i,height:o,x:s+ed(e),y:u}}function S_(e){var t,n=Br(e),r=Xf(e),l=(t=e.ownerDocument)==null?void 0:t.body,i=tl(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),o=tl(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),s=-r.scrollLeft+ed(e),u=-r.scrollTop;return fr(l||n).direction==="rtl"&&(s+=tl(n.clientWidth,l?l.clientWidth:0)-i),{width:i,height:o,x:s,y:u}}function td(e){var t=fr(e),n=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+r)}function H1(e){return["html","body","#document"].indexOf(Gn(e))>=0?e.ownerDocument.body:_n(e)&&td(e)?e:H1(Ma(e))}function io(e,t){var n;t===void 0&&(t=[]);var r=H1(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),i=an(r),o=l?[i].concat(i.visualViewport||[],td(r)?r:[]):r,s=t.concat(o);return l?s:s.concat(io(Ma(o)))}function Ic(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function E_(e,t){var n=ti(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function u0(e,t,n){return t===z1?Ic(k_(e,n)):ul(t)?E_(t,n):Ic(S_(Br(e)))}function C_(e){var t=io(Ma(e)),n=["absolute","fixed"].indexOf(fr(e).position)>=0,r=n&&_n(e)?Fo(e):e;return ul(r)?t.filter(function(l){return ul(l)&&F1(l,r)&&Gn(l)!=="body"}):[]}function T_(e,t,n,r){var l=t==="clippingParents"?C_(e):[].concat(t),i=[].concat(l,[n]),o=i[0],s=i.reduce(function(u,a){var c=u0(e,a,r);return u.top=tl(c.top,u.top),u.right=ua(c.right,u.right),u.bottom=ua(c.bottom,u.bottom),u.left=tl(c.left,u.left),u},u0(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function V1(e){var t=e.reference,n=e.element,r=e.placement,l=r?Kn(r):null,i=r?ni(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(l){case Zt:u={x:o,y:t.y-n.height};break;case Sn:u={x:o,y:t.y+t.height};break;case En:u={x:t.x+t.width,y:s};break;case Jt:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var a=l?Jf(l):null;if(a!=null){var c=a==="y"?"height":"width";switch(i){case Xl:u[a]=u[a]-(t[c]/2-n[c]/2);break;case Po:u[a]=u[a]+(t[c]/2-n[c]/2);break}}return u}function Oo(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,s=n.boundary,u=s===void 0?q2:s,a=n.rootBoundary,c=a===void 0?z1:a,p=n.elementContext,d=p===void 0?Ii:p,g=n.altBoundary,_=g===void 0?!1:g,x=n.padding,P=x===void 0?0:x,y=B1(typeof P!="number"?P:$1(P,Do)),v=d===Ii?K2:Ii,w=e.rects.popper,T=e.elements[_?v:d],O=T_(ul(T)?T:T.contextElement||Br(e.elements.popper),u,c,o),M=ti(e.elements.reference),N=V1({reference:M,element:w,strategy:"absolute",placement:l}),R=Ic(Object.assign({},w,N)),I=d===Ii?R:M,A={top:O.top-I.top+y.top,bottom:I.bottom-O.bottom+y.bottom,left:O.left-I.left+y.left,right:I.right-O.right+y.right},D=e.modifiersData.offset;if(d===Ii&&D){var V=D[l];Object.keys(A).forEach(function(K){var oe=[En,Sn].indexOf(K)>=0?1:-1,se=[Zt,Sn].indexOf(K)>=0?"y":"x";A[K]+=V[se]*oe})}return A}function P_(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,a=u===void 0?A1:u,c=ni(r),p=c?s?i0:i0.filter(function(_){return ni(_)===c}):Do,d=p.filter(function(_){return a.indexOf(_)>=0});d.length===0&&(d=p);var g=d.reduce(function(_,x){return _[x]=Oo(e,{placement:x,boundary:l,rootBoundary:i,padding:o})[Kn(x)],_},{});return Object.keys(g).sort(function(_,x){return g[_]-g[x]})}function O_(e){if(Kn(e)===Yf)return[];var t=zs(e);return[a0(e),t,a0(t)]}function b_(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,s=o===void 0?!0:o,u=n.fallbackPlacements,a=n.padding,c=n.boundary,p=n.rootBoundary,d=n.altBoundary,g=n.flipVariations,_=g===void 0?!0:g,x=n.allowedAutoPlacements,P=t.options.placement,y=Kn(P),v=y===P,w=u||(v||!_?[zs(P)]:O_(P)),T=[P].concat(w).reduce(function(X,pe){return X.concat(Kn(pe)===Yf?P_(t,{placement:pe,boundary:c,rootBoundary:p,padding:a,flipVariations:_,allowedAutoPlacements:x}):pe)},[]),O=t.rects.reference,M=t.rects.popper,N=new Map,R=!0,I=T[0],A=0;A=0,se=oe?"width":"height",fe=Oo(t,{placement:D,boundary:c,rootBoundary:p,altBoundary:d,padding:a}),ne=oe?K?En:Jt:K?Sn:Zt;O[se]>M[se]&&(ne=zs(ne));var q=zs(ne),J=[];if(i&&J.push(fe[V]<=0),s&&J.push(fe[ne]<=0,fe[q]<=0),J.every(function(X){return X})){I=D,R=!1;break}N.set(D,J)}if(R)for(var G=_?3:1,re=function(pe){var Re=T.find(function(Ue){var Be=N.get(Ue);if(Be)return Be.slice(0,pe).every(function(tt){return tt})});if(Re)return I=Re,"break"},Y=G;Y>0;Y--){var me=re(Y);if(me==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const N_={name:"flip",enabled:!0,phase:"main",fn:b_,requiresIfExists:["offset"],data:{_skip:!1}};function c0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function f0(e){return[Zt,En,Sn,Jt].some(function(t){return e[t]>=0})}function M_(e){var t=e.state,n=e.name,r=t.rects.reference,l=t.rects.popper,i=t.modifiersData.preventOverflow,o=Oo(t,{elementContext:"reference"}),s=Oo(t,{altBoundary:!0}),u=c0(o,r),a=c0(s,l,i),c=f0(u),p=f0(a);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:a,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}const R_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:M_};function L_(e,t,n){var r=Kn(e),l=[Jt,Zt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*l,[Jt,En].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function j_(e){var t=e.state,n=e.options,r=e.name,l=n.offset,i=l===void 0?[0,0]:l,o=A1.reduce(function(c,p){return c[p]=L_(p,t.rects,i),c},{}),s=o[t.placement],u=s.x,a=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=a),t.modifiersData[r]=o}const z_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j_};function A_(e){var t=e.state,n=e.name;t.modifiersData[n]=V1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const D_={name:"popperOffsets",enabled:!0,phase:"read",fn:A_,data:{}};function F_(e){return e==="x"?"y":"x"}function I_(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,s=o===void 0?!1:o,u=n.boundary,a=n.rootBoundary,c=n.altBoundary,p=n.padding,d=n.tether,g=d===void 0?!0:d,_=n.tetherOffset,x=_===void 0?0:_,P=Oo(t,{boundary:u,rootBoundary:a,padding:p,altBoundary:c}),y=Kn(t.placement),v=ni(t.placement),w=!v,T=Jf(y),O=F_(T),M=t.modifiersData.popperOffsets,N=t.rects.reference,R=t.rects.popper,I=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(M){if(i){var K,oe=T==="y"?Zt:Jt,se=T==="y"?Sn:En,fe=T==="y"?"height":"width",ne=M[T],q=ne+P[oe],J=ne-P[se],G=g?-R[fe]/2:0,re=v===Xl?N[fe]:R[fe],Y=v===Xl?-R[fe]:-N[fe],me=t.elements.arrow,X=g&&me?Zf(me):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:I1(),Re=pe[oe],Ue=pe[se],Be=lo(0,N[fe],X[fe]),tt=w?N[fe]/2-G-Be-Re-A.mainAxis:re-Be-Re-A.mainAxis,Ct=w?-N[fe]/2+G+Be+Ue+A.mainAxis:Y+Be+Ue+A.mainAxis,at=t.elements.arrow&&Fo(t.elements.arrow),dn=at?T==="y"?at.clientTop||0:at.clientLeft||0:0,Qn=(K=D==null?void 0:D[T])!=null?K:0,pn=ne+tt-Qn-dn,Zn=ne+Ct-Qn,Cn=lo(g?ua(q,pn):q,ne,g?tl(J,Zn):J);M[T]=Cn,V[T]=Cn-ne}if(s){var hn,ht=T==="x"?Zt:Jt,ue=T==="x"?Sn:En,nt=M[O],Ft=O==="y"?"height":"width",ye=nt+P[ht],te=nt-P[ue],Oe=[Zt,Jt].indexOf(y)!==-1,$e=(hn=D==null?void 0:D[O])!=null?hn:0,h=Oe?ye:nt-N[Ft]-R[Ft]-$e+A.altAxis,S=Oe?nt+N[Ft]+R[Ft]-$e-A.altAxis:te,C=g&&Oe?u_(h,nt,S):lo(g?h:ye,nt,g?S:te);M[O]=C,V[O]=C-nt}t.modifiersData[r]=V}}const B_={name:"preventOverflow",enabled:!0,phase:"main",fn:I_,requiresIfExists:["offset"]};function $_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function H_(e){return e===an(e)||!_n(e)?Xf(e):$_(e)}function V_(e){var t=e.getBoundingClientRect(),n=ei(t.width)/e.offsetWidth||1,r=ei(t.height)/e.offsetHeight||1;return n!==1||r!==1}function U_(e,t,n){n===void 0&&(n=!1);var r=_n(t),l=_n(t)&&V_(t),i=Br(t),o=ti(e,l,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Gn(t)!=="body"||td(i))&&(s=H_(t)),_n(t)?(u=ti(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=ed(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function W_(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function l(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&l(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||l(i)}),r}function q_(e){var t=W_(e);return r_.reduce(function(n,r){return n.concat(t.filter(function(l){return l.phase===r}))},[])}function K_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function G_(e){var t=e.reduce(function(n,r){var l=n[r.name];return n[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var d0={placement:"bottom",modifiers:[],strategy:"absolute"};function p0(){for(var e=arguments.length,t=new Array(e),n=0;ne===null&&t===null?null:n=>{h0(e,n),h0(t,n)},[e,t])}const o3=({children:e,onClickAway:t})=>{const n=$.useRef(document),r=$.useRef(null),l=i3(r,e.ref),i=O1(o=>{if(!r.current)throw new Error("ClickAwayListener: missing ref");const s=!n.current.contains(o.target)||r.current.contains(o.target);o.type==="keyup"&&"key"in o&&(!["Escape","Tab"].includes(o.key)||o.key==="Tab"&&s)||o.type==="mouseup"&&s||t(o)});return To("mouseup",i,n),To("keyup",i,n),j.jsx(j.Fragment,{children:$.cloneElement(e,{ref:l})})};var s3="iy2n4g0",a3={fill:"iy2n4g1",outline:"iy2n4g2",text:"iy2n4g3"};function u3({className:e,name:t,title:n,variant:r="fill",...l},i){return j.jsx(Ao,{ref:i,className:Yn(s3,e),variant:r,...l,children:j.jsx(Fn,{className:a3[r],name:t,title:n})})}const c3=$.forwardRef(u3);var f3="_1sxwks00";function d3({children:e,className:t,...n},r){return j.jsx("div",{ref:r,className:Yn(f3,t),...n,children:e})}const Ra=$.forwardRef(d3);var p3="_1x45rmb3",h3={light:"_1x45rmb1 _1x45rmb0",dark:"_1x45rmb2 _1x45rmb0"};function m3({children:e}){const{theme:t}=pi(),[n,r]=$.useState(!1),[l,i]=$.useState(null),[o,s]=$.useState(null),{styles:u,attributes:a}=U1(l,o,{placement:"bottom-end",modifiers:[{name:"offset",options:{offset:[0,10]}}]});return j.jsxs(j.Fragment,{children:[j.jsx(c3,{ref:i,"aria-expanded":n?"true":"false","aria-label":"Menu",name:"options",variant:"text",onClick:()=>r(!n)}),n&&j.jsx(o3,{onClickAway:()=>r(!1),children:j.jsx(Ra,{...a.popper,ref:s,className:h3[t],style:u.popper,onMouseLeave:()=>r(!1),children:j.jsx(st,{direction:"column",gap:0,children:e})})})]})}function v3({children:e,onClick:t}){return j.jsx(Ao,{variant:"text",onClick:t,children:j.jsx(st,{className:p3,align:"center",gap:2,children:e})})}const Au=Object.assign(m3,{Item:v3});var g3={active:"tz5dd56 tz5dd55",inactive:"tz5dd57 tz5dd55"};zo({conditions:{defaultCondition:"mobile",conditionNames:["mobile","desktop"],responsiveArray:void 0},styles:{display:{values:{none:{conditions:{mobile:"tz5dd51",desktop:"tz5dd52"},defaultClass:"tz5dd51"},block:{conditions:{mobile:"tz5dd53",desktop:"tz5dd54"},defaultClass:"tz5dd53"}}}}});var y3="tz5dd50";function w3({options:e,value:t,onChange:n}){return j.jsx("nav",{className:Yn(y3),children:j.jsx(st,{gap:2,children:e.map((r,l)=>j.jsx(_3,{label:r.title,index:l,value:t,onChange:n},r.id))})})}function _3({index:e,label:t,value:n,onChange:r,...l}){const i=e===n,o=i?"active":"inactive";return j.jsx(Ao,{"aria-current":i,className:g3[o],variant:"text",onClick:()=>r(e),...l,children:t})}var x3={loading:"_1e0qizf1",default:"_1e0qizf3 _1e0qizf1"},k3="_1e0qizf4",S3="_1e0qizf5";const E3=({children:e,isLoading:t=!1,max:n="100",value:r,...l})=>{const i=t?"loading":"default";return j.jsxs("div",{className:k3,children:[j.jsx("progress",{className:x3[i],max:n,value:r,...l}),e?j.jsx("div",{className:S3,children:e}):null]})},C3=e=>{var t;return(t=e==null?void 0:e.popper)==null?void 0:t["data-popper-placement"]},T3=e=>e?e.startsWith("top")?"top":e.startsWith("bottom")?"bottom":e.startsWith("right")?"right":"left":"left";var P3={top:"_1lpb9zp4 _1lpb9zp3",bottom:"_1lpb9zp5 _1lpb9zp3",left:"_1lpb9zp6 _1lpb9zp3",right:"_1lpb9zp7 _1lpb9zp3"},O3={light:"_1lpb9zp1 _1lpb9zp0",dark:"_1lpb9zp2 _1lpb9zp0"};function Bc({children:e,placement:t="bottom-start",title:n}){const[r,l]=$.useState(!1),{theme:i}=pi(),[o,s]=$.useState(null),[u,a]=$.useState(null),[c,p]=$.useState(null),{styles:d,attributes:g}=U1(u,c,{placement:t,modifiers:[{name:"arrow",options:{element:o}},{name:"offset",options:{offset:[0,5]}}]}),_=T3(C3(g));return n?j.jsxs(j.Fragment,{children:[j.jsx("div",{ref:a,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:e}),r&&j.jsxs("div",{ref:p,className:O3[i],style:d.popper,...g.popper,children:[n,j.jsx("div",{ref:s,className:P3[_],style:d.arrow})]})]}):e}const m0=e=>e&&new Date(e).getTime(),W1=(e,t)=>e&&new Date(e.getTime()+t),b3=(e,t,n)=>{const r=m0(e)||0,l=m0(t)||0,i=n.getTime()-r,o=l-r;return i/o*100},N3=(e,t)=>{if(e.stop)return 100;const n=e.param.endOffset,r=W1(e.start,n),l=b3(e.start,r,t);return Math.round(l)},q1=(e=0)=>{const t=Math.round(e),n=Math.round(t%60);return t<0?"-":t<60?`${t}s`:n>0?`${Math.round((e-n)/60)}min ${n}s`:`${Math.round(t/60)}min`},M3=e=>{const t=e.param.period||0;return q1(t/1e3)},R3=e=>{const t=e.start,n=e.param.endOffset||0,r=e.stop||W1(e.start,n);if(!(!t||!r))return q1((r.getTime()-t.getTime())/1e3)};var L3="kfrms71",j3="kfrms73",z3="kfrms70",A3="kfrms74";function D3({config:e,tab:t,onTabChange:n}){const r=pl(),l=Kf(`(max-width: ${T1.breakpoints.header})`),i=!r.stop&&N3(r,new Date);return j.jsx(j.Fragment,{children:j.jsxs("header",{className:z3,children:[j.jsxs(st,{className:L3,align:"center",justify:"space-between",children:[j.jsxs(st,{align:"center",gap:4,children:[j.jsx(Fn,{name:"logo"}),j.jsx(w3,{options:e.tabs,value:t,onChange:n})]}),j.jsxs(st,{align:"center",children:[!l&&j.jsx(v0,{tab:t}),j.jsx(I3,{})]})]}),i?j.jsx(E3,{value:i}):j.jsx(W2,{className:j3}),l&&j.jsx(st,{align:"center",gap:3,justify:"end",padding:3,children:j.jsx(v0,{tab:t})})]})})}const F3=()=>{const e=pl();return j.jsx("div",{className:A3,children:j.jsxs(st,{align:"center",gap:3,children:[j.jsx(Bc,{placement:"bottom",title:"Refresh rate",children:j.jsxs(st,{align:"center",gap:2,children:[j.jsx(Fn,{name:"stop-watch",width:"12px",height:"12px"}),j.jsx("span",{children:M3(e)})]})}),j.jsx(Bc,{placement:"bottom",title:"Duration",children:j.jsxs(st,{align:"center",gap:2,children:[j.jsx(Fn,{name:"hour-glass",width:"12px",height:"12px"}),j.jsx("span",{children:R3(e)})]})})]})})},v0=({tab:e})=>{const t=e===2;return j.jsxs(j.Fragment,{children:[!t&&j.jsx(j1,{}),j.jsx(Ao,{onClick:()=>window.open("../report","k6-report"),children:"Report"}),j.jsx(F3,{})]})},I3=()=>{const{theme:e,setTheme:t}=pi();function n(){window.open("https://github.com/grafana/k6/blob/master/SUPPORT.md","_blank")}function r(){t(e==="light"?"dark":"light")}return j.jsxs(Au,{children:[j.jsxs(Au.Item,{onClick:n,children:[j.jsx(Fn,{name:"question"}),j.jsx("span",{children:"Help"})]}),j.jsxs(Au.Item,{onClick:r,children:[j.jsx(Fn,{name:e==="dark"?"sun":"moon"}),j.jsxs("span",{children:[e==="dark"?"Light":"Dark"," mode"]})]})]})};var B3="_1isundr0";function $3({children:e,message:t,isLoading:n}){return n?j.jsxs(st,{align:"center",justify:"center",children:[j.jsx(Fn,{className:B3,name:"spinner"}),j.jsx("h2",{children:t})]}):e}var K1={exports:{}};/*! @preserve + * numeral.js + * version : 2.0.6 + * author : Adam Draper + * license : MIT + * http://adamwdraper.github.com/Numeral-js/ + */(function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(rg,function(){var t,n,r="2.0.6",l={},i={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(a,c){this._input=a,this._value=c}return t=function(a){var c,p,d,g;if(t.isNumeral(a))c=a.value();else if(a===0||typeof a>"u")c=0;else if(a===null||n.isNaN(a))c=null;else if(typeof a=="string")if(s.zeroFormat&&a===s.zeroFormat)c=0;else if(s.nullFormat&&a===s.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{for(p in l)if(g=typeof l[p].regexps.unformat=="function"?l[p].regexps.unformat():l[p].regexps.unformat,g&&a.match(g)){d=l[p].unformat;break}d=d||t._.stringToNumber,c=d(a)}else c=Number(a)||null;return new u(a,c)},t.version=r,t.isNumeral=function(a){return a instanceof u},t._=n={numberToFormat:function(a,c,p){var d=i[t.options.currentLocale],g=!1,_=!1,x=0,P="",y=1e12,v=1e9,w=1e6,T=1e3,O="",M=!1,N,R,I,A,D,V,K;if(a=a||0,R=Math.abs(a),t._.includes(c,"(")?(g=!0,c=c.replace(/[\(|\)]/g,"")):(t._.includes(c,"+")||t._.includes(c,"-"))&&(D=t._.includes(c,"+")?c.indexOf("+"):a<0?c.indexOf("-"):-1,c=c.replace(/[\+|\-]/g,"")),t._.includes(c,"a")&&(N=c.match(/a(k|m|b|t)?/),N=N?N[1]:!1,t._.includes(c," a")&&(P=" "),c=c.replace(new RegExp(P+"a[kmbt]?"),""),R>=y&&!N||N==="t"?(P+=d.abbreviations.trillion,a=a/y):R=v&&!N||N==="b"?(P+=d.abbreviations.billion,a=a/v):R=w&&!N||N==="m"?(P+=d.abbreviations.million,a=a/w):(R=T&&!N||N==="k")&&(P+=d.abbreviations.thousand,a=a/T)),t._.includes(c,"[.]")&&(_=!0,c=c.replace("[.]",".")),I=a.toString().split(".")[0],A=c.split(".")[1],V=c.indexOf(","),x=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length,A?(t._.includes(A,"[")?(A=A.replace("]",""),A=A.split("["),O=t._.toFixed(a,A[0].length+A[1].length,p,A[1].length)):O=t._.toFixed(a,A.length,p),I=O.split(".")[0],t._.includes(O,".")?O=d.delimiters.decimal+O.split(".")[1]:O="",_&&Number(O.slice(1))===0&&(O="")):I=t._.toFixed(a,0,p),P&&!N&&Number(I)>=1e3&&P!==d.abbreviations.trillion)switch(I=String(Number(I)/1e3),P){case d.abbreviations.thousand:P=d.abbreviations.million;break;case d.abbreviations.million:P=d.abbreviations.billion;break;case d.abbreviations.billion:P=d.abbreviations.trillion;break}if(t._.includes(I,"-")&&(I=I.slice(1),M=!0),I.length0;oe--)I="0"+I;return V>-1&&(I=I.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),c.indexOf(".")===0&&(I=""),K=I+O+(P||""),g?K=(g&&M?"(":"")+K+(g&&M?")":""):D>=0?K=D===0?(M?"-":"+")+K:K+(M?"-":"+"):M&&(K="-"+K),K},stringToNumber:function(a){var c=i[s.currentLocale],p=a,d={thousand:3,million:6,billion:9,trillion:12},g,_,x;if(s.zeroFormat&&a===s.zeroFormat)_=0;else if(s.nullFormat&&a===s.nullFormat||!a.replace(/[^0-9]+/g,"").length)_=null;else{_=1,c.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(c.delimiters.decimal,"."));for(g in d)if(x=new RegExp("[^a-zA-Z]"+c.abbreviations[g]+"(?:\\)|(\\"+c.currency.symbol+")?(?:\\))?)?$"),p.match(x)){_*=Math.pow(10,d[g]);break}_*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),_*=Number(a)}return _},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,c){return a.indexOf(c)!==-1},insert:function(a,c,p){return a.slice(0,p)+c+a.slice(p)},reduce:function(a,c){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof c!="function")throw new TypeError(c+" is not a function");var p=Object(a),d=p.length>>>0,g=0,_;if(arguments.length===3)_=arguments[2];else{for(;g=d)throw new TypeError("Reduce of empty array with no initial value");_=p[g++]}for(;gd?c:d},1)},toFixed:function(a,c,p,d){var g=a.toString().split("."),_=c-(d||0),x,P,y,v;return g.length===2?x=Math.min(Math.max(g[1].length,_),c):x=_,y=Math.pow(10,x),v=(p(a+"e+"+x)/y).toFixed(x),d>c-x&&(P=new RegExp("\\.?0{1,"+(d-(c-x))+"}$"),v=v.replace(P,"")),v}},t.options=s,t.formats=l,t.locales=i,t.locale=function(a){return a&&(s.currentLocale=a.toLowerCase()),s.currentLocale},t.localeData=function(a){if(!a)return i[s.currentLocale];if(a=a.toLowerCase(),!i[a])throw new Error("Unknown locale : "+a);return i[a]},t.reset=function(){for(var a in o)s[a]=o[a]},t.zeroFormat=function(a){s.zeroFormat=typeof a=="string"?a:null},t.nullFormat=function(a){s.nullFormat=typeof a=="string"?a:null},t.defaultFormat=function(a){s.defaultFormat=typeof a=="string"?a:"0.0"},t.register=function(a,c,p){if(c=c.toLowerCase(),this[a+"s"][c])throw new TypeError(c+" "+a+" already registered.");return this[a+"s"][c]=p,p},t.validate=function(a,c){var p,d,g,_,x,P,y,v;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{y=t.localeData(c)}catch{y=t.localeData(t.locale())}return g=y.currency.symbol,x=y.abbreviations,p=y.delimiters.decimal,y.delimiters.thousands==="."?d="\\.":d=y.delimiters.thousands,v=a.match(/^[^\d]+/),v!==null&&(a=a.substr(1),v[0]!==g)||(v=a.match(/[^\d]+$/),v!==null&&(a=a.slice(0,-1),v[0]!==x.thousand&&v[0]!==x.million&&v[0]!==x.billion&&v[0]!==x.trillion))?!1:(P=new RegExp(d+"{2}"),a.match(/[^\d.,]/g)?!1:(_=a.split(p),_.length>2?!1:_.length<2?!!_[0].match(/^\d+.*\d$/)&&!_[0].match(P):_[0].length===1?!!_[0].match(/^\d+$/)&&!_[0].match(P)&&!!_[1].match(/^\d+$/):!!_[0].match(/^\d+.*\d$/)&&!_[0].match(P)&&!!_[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(a,c){var p=this._value,d=a||s.defaultFormat,g,_,x;if(c=c||Math.round,p===0&&s.zeroFormat!==null)_=s.zeroFormat;else if(p===null&&s.nullFormat!==null)_=s.nullFormat;else{for(g in l)if(d.match(l[g].regexps.format)){x=l[g].format;break}x=x||t._.numberToFormat,_=x(p,d,c)}return _},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var c=n.correctionFactor.call(null,this._value,a);function p(d,g,_,x){return d+Math.round(c*g)}return this._value=n.reduce([this._value,a],p,0)/c,this},subtract:function(a){var c=n.correctionFactor.call(null,this._value,a);function p(d,g,_,x){return d-Math.round(c*g)}return this._value=n.reduce([a],p,Math.round(this._value*c))/c,this},multiply:function(a){function c(p,d,g,_){var x=n.correctionFactor(p,d);return Math.round(p*x)*Math.round(d*x)/Math.round(x*x)}return this._value=n.reduce([this._value,a],c,1),this},divide:function(a){function c(p,d,g,_){var x=n.correctionFactor(p,d);return Math.round(p*x)/Math.round(d*x)}return this._value=n.reduce([this._value,a],c),this},difference:function(a){return Math.abs(t(this._value).subtract(a).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var c=a%10;return~~(a%100/10)===1?"th":c===1?"st":c===2?"nd":c===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,c,p){var d=t._.includes(c," BPS")?" ":"",g;return a=a*1e4,c=c.replace(/\s?BPS/,""),g=t._.numberToFormat(a,c,p),t._.includes(g,")")?(g=g.split(""),g.splice(-1,0,d+"BPS"),g=g.join("")):g=g+d+"BPS",g},unformat:function(a){return+(t._.stringToNumber(a)*1e-4).toFixed(15)}})}(),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},p=a.suffixes.concat(c.suffixes.filter(function(g){return a.suffixes.indexOf(g)<0})),d=p.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(g,_,x){var P,y=t._.includes(_,"ib")?c:a,v=t._.includes(_," b")||t._.includes(_," ib")?" ":"",w,T,O;for(_=_.replace(/\s?i?b/,""),w=0;w<=y.suffixes.length;w++)if(T=Math.pow(y.base,w),O=Math.pow(y.base,w+1),g===null||g===0||g>=T&&g0&&(g=g/T);break}return P=t._.numberToFormat(g,_,x),P+v},unformat:function(g){var _=t._.stringToNumber(g),x,P;if(_){for(x=a.suffixes.length-1;x>=0;x--){if(t._.includes(g,a.suffixes[x])){P=Math.pow(a.base,x);break}if(t._.includes(g,c.suffixes[x])){P=Math.pow(c.base,x);break}}_*=P||1}return _}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,p){var d=t.locales[t.options.currentLocale],g={before:c.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:c.match(/([\+|\-|\)|\s|\$]*)$/)[0]},_,x,P;for(c=c.replace(/\s?\$\s?/,""),_=t._.numberToFormat(a,c,p),a>=0?(g.before=g.before.replace(/[\-\(]/,""),g.after=g.after.replace(/[\-\)]/,"")):a<0&&!t._.includes(g.before,"-")&&!t._.includes(g.before,"(")&&(g.before="-"+g.before),P=0;P=0;P--)switch(x=g.after[P],x){case"$":_=P===g.after.length-1?_+d.currency.symbol:t._.insert(_,d.currency.symbol,-(g.after.length-(1+P)));break;case" ":_=P===g.after.length-1?_+" ":t._.insert(_," ",-(g.after.length-(1+P)+d.currency.symbol.length-1));break}return _}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,p){var d,g=typeof a=="number"&&!t._.isNaN(a)?a.toExponential():"0e+0",_=g.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(_[0]),c,p),d+"e"+_[1]},unformat:function(a){var c=t._.includes(a,"e+")?a.split("e+"):a.split("e-"),p=Number(c[0]),d=Number(c[1]);d=t._.includes(a,"e-")?d*=-1:d;function g(_,x,P,y){var v=t._.correctionFactor(_,x),w=_*v*(x*v)/(v*v);return w}return t._.reduce([p,Math.pow(10,d)],g,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,p){var d=t.locales[t.options.currentLocale],g,_=t._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),_+=d.ordinal(a),g=t._.numberToFormat(a,c,p),g+_}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,p){var d=t._.includes(c," %")?" ":"",g;return t.options.scalePercentBy100&&(a=a*100),c=c.replace(/\s?\%/,""),g=t._.numberToFormat(a,c,p),t._.includes(g,")")?(g=g.split(""),g.splice(-1,0,d+"%"),g=g.join("")):g=g+d+"%",g},unformat:function(a){var c=t._.stringToNumber(a);return t.options.scalePercentBy100?c*.01:c}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,c,p){var d=Math.floor(a/60/60),g=Math.floor((a-d*60*60)/60),_=Math.round(a-d*60*60-g*60);return d+":"+(g<10?"0"+g:g)+":"+(_<10?"0"+_:_)},unformat:function(a){var c=a.split(":"),p=0;return c.length===3?(p=p+Number(c[0])*60*60,p=p+Number(c[1])*60,p=p+Number(c[2])):c.length===2&&(p=p+Number(c[0])*60,p=p+Number(c[1])),Number(p)}})}(),t})})(K1);var H3=K1.exports;const g0=ha(H3),V3=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],U3=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],W3=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],q3=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],y0=(e,t,n)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function K3(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const n=t.bits?t.binary?q3:W3:t.binary?U3:V3,r=t.space?" ":"";if(t.signed&&e===0)return` 0${r}${n[0]}`;const l=e<0,i=l?"-":t.signed?"+":"";l&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1){const c=y0(e,t.locale,o);return i+c+r+n[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));const u=y0(Number(e),t.locale,o),a=n[s];return i+u+r+a}function G3(e){if(typeof e!="number")throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}const Y3=(e,t)=>t===1?e:`${e}s`,Q3=1e-7;function Z3(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const n=[],r=(o,s)=>{const u=Math.floor(o*10**s+Q3);return(Math.round(u)/10**s).toFixed(s)},l=(o,s,u,a)=>{if((n.length===0||!t.colonNotation)&&o===0&&!(t.colonNotation&&u==="m"))return;a=(a||o||"0").toString();let c,p;if(t.colonNotation){c=n.length>0?":":"",p="";const d=a.includes(".")?a.split(".")[0].length:a.length,g=n.length>0?2:1;a="0".repeat(Math.max(0,g-d))+a}else c="",p=t.verbose?" "+Y3(s,o):u;n.push(c+a+p)},i=G3(e);if(l(Math.trunc(i.days/365),"year","y"),l(i.days%365,"day","d"),l(i.hours,"hour","h"),l(i.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(l(i.seconds,"second","s"),t.formatSubMilliseconds)l(i.milliseconds,"millisecond","ms"),l(i.microseconds,"microsecond","µs"),l(i.nanoseconds,"nanosecond","ns");else{const o=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,s=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,u=o>=1?Math.round(o):Math.ceil(o),a=s?o.toFixed(s):u;l(Number.parseFloat(a),"millisecond","ms",a)}else{const o=e/1e3%60,s=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,u=r(o,s),a=t.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");l(Number.parseFloat(a),"second","s",a)}if(n.length===0)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return n[0];if(typeof t.unitCount=="number"){const o=t.colonNotation?"":" ";return n.slice(0,Math.max(t.unitCount,1)).join(o)}return t.colonNotation?n.join(""):n.join(" ")}const J3=!0,pt="u-",X3="uplot",ex=pt+"hz",tx=pt+"vt",nx=pt+"title",rx=pt+"wrap",lx=pt+"under",ix=pt+"over",ox=pt+"axis",Yr=pt+"off",sx=pt+"select",ax=pt+"cursor-x",ux=pt+"cursor-y",cx=pt+"cursor-pt",fx=pt+"legend",dx=pt+"live",px=pt+"inline",hx=pt+"series",mx=pt+"marker",w0=pt+"label",vx=pt+"value",qi="width",Ki="height",Bi="top",_0="bottom",El="left",Du="right",nd="#000",x0=nd+"0",k0="mousemove",S0="mousedown",Fu="mouseup",E0="mouseenter",C0="mouseleave",T0="dblclick",gx="resize",yx="scroll",P0="change",ca="dppxchange",rd="--",hi=typeof window<"u",$c=hi?document:null,Wl=hi?window:null,wx=hi?navigator:null;let Te,_s;function Hc(){let e=devicePixelRatio;Te!=e&&(Te=e,_s&&Uc(P0,_s,Hc),_s=matchMedia(`(min-resolution: ${Te-.001}dppx) and (max-resolution: ${Te+.001}dppx)`),nl(P0,_s,Hc),Wl.dispatchEvent(new CustomEvent(ca)))}function en(e,t){if(t!=null){let n=e.classList;!n.contains(t)&&n.add(t)}}function Vc(e,t){let n=e.classList;n.contains(t)&&n.remove(t)}function He(e,t,n){e.style[t]=n+"px"}function Mn(e,t,n,r){let l=$c.createElement(e);return t!=null&&en(l,t),n!=null&&n.insertBefore(l,r),l}function mn(e,t){return Mn("div",e,t)}const O0=new WeakMap;function Cl(e,t,n,r,l){let i="translate("+t+"px,"+n+"px)",o=O0.get(e);i!=o&&(e.style.transform=i,O0.set(e,i),t<0||n<0||t>r||n>l?en(e,Yr):Vc(e,Yr))}const b0=new WeakMap;function _x(e,t,n){let r=t+n,l=b0.get(e);r!=l&&(b0.set(e,r),e.style.background=t,e.style.borderColor=n)}const N0=new WeakMap;function xx(e,t,n,r){let l=t+""+n,i=N0.get(e);l!=i&&(N0.set(e,l),e.style.height=n+"px",e.style.width=t+"px",e.style.marginLeft=r?-t/2+"px":0,e.style.marginTop=r?-n/2+"px":0)}const ld={passive:!0},G1={...ld,capture:!0};function nl(e,t,n,r){t.addEventListener(e,n,r?G1:ld)}function Uc(e,t,n,r){t.removeEventListener(e,n,r?G1:ld)}hi&&Hc();function wr(e,t,n,r){let l;n=n||0,r=r||t.length-1;let i=r<=2147483647;for(;r-n>1;)l=i?n+r>>1:on((n+r)/2),t[l]=t&&l<=n;l+=r)if(e[l]!=null)return l;return-1}function kx(e,t,n,r){let l=ke,i=-ke;if(r==1)l=e[t],i=e[n];else if(r==-1)l=e[n],i=e[t];else for(let o=t;o<=n;o++){let s=e[o];s!=null&&(si&&(i=s))}return[l,i]}function Sx(e,t,n){let r=ke,l=-ke;for(let i=t;i<=n;i++){let o=e[i];o!=null&&o>0&&(ol&&(l=o))}return[r==ke?1:r,l==-ke?10:l]}function La(e,t,n,r){let l=L0(e),i=L0(t),o=n==10?ir:Y1;e==t&&(l==-1?(e*=n,t/=n):(e/=n,t*=n));let s=l==1?on:li,u=i==1?li:on,a=s(o(xt(e))),c=u(o(xt(t))),p=ii(n,a),d=ii(n,c);return n==10&&(a<0&&(p=Le(p,-a)),c<0&&(d=Le(d,-c))),r||n==2?(e=p*l,t=d*i):(e=Z1(e,p),t=si(t,d)),[e,t]}function id(e,t,n,r){let l=La(e,t,n,r);return e==0&&(l[0]=0),t==0&&(l[1]=0),l}const od=.1,M0={mode:3,pad:od},oo={pad:0,soft:null,mode:0},Ex={min:oo,max:oo};function fa(e,t,n,r){return ja(n)?R0(e,t,n):(oo.pad=n,oo.soft=r?0:null,oo.mode=r?3:0,R0(e,t,Ex))}function Pe(e,t){return e??t}function Cx(e,t,n){for(t=Pe(t,0),n=Pe(n,e.length-1);t<=n;){if(e[t]!=null)return!0;t++}return!1}function R0(e,t,n){let r=n.min,l=n.max,i=Pe(r.pad,0),o=Pe(l.pad,0),s=Pe(r.hard,-ke),u=Pe(l.hard,ke),a=Pe(r.soft,ke),c=Pe(l.soft,-ke),p=Pe(r.mode,0),d=Pe(l.mode,0),g=t-e,_=ir(g),x=kt(xt(e),xt(t)),P=ir(x),y=xt(P-_);(g<1e-9||y>10)&&(g=0,(e==0||t==0)&&(g=1e-9,p==2&&a!=ke&&(i=0),d==2&&c!=-ke&&(o=0)));let v=g||x||1e3,w=ir(v),T=ii(10,on(w)),O=v*(g==0?e==0?.1:1:i),M=Le(Z1(e-O,T/10),9),N=e>=a&&(p==1||p==3&&M<=a||p==2&&M>=a)?a:ke,R=kt(s,M=N?N:nn(N,M)),I=v*(g==0?t==0?.1:1:o),A=Le(si(t+I,T/10),9),D=t<=c&&(d==1||d==3&&A>=c||d==2&&A<=c)?c:-ke,V=nn(u,A>D&&t<=D?D:kt(D,A));return R==V&&R==0&&(V=100),[R,V]}const Tx=new Intl.NumberFormat(hi?wx.language:"en-US"),sd=e=>Tx.format(e),fn=Math,Ds=fn.PI,xt=fn.abs,on=fn.floor,bt=fn.round,li=fn.ceil,nn=fn.min,kt=fn.max,ii=fn.pow,L0=fn.sign,ir=fn.log10,Y1=fn.log2,Px=(e,t=1)=>fn.sinh(e)*t,Iu=(e,t=1)=>fn.asinh(e/t),ke=1/0;function j0(e){return(ir((e^e>>31)-(e>>31))|0)+1}function z0(e,t,n){return nn(kt(e,t),n)}function xe(e){return typeof e=="function"?e:()=>e}const Ox=()=>{},bx=e=>e,Q1=(e,t)=>t,Nx=e=>null,A0=e=>!0,D0=(e,t)=>e==t,oi=e=>Le(e,14);function Gr(e,t){return oi(Le(oi(e/t))*t)}function si(e,t){return oi(li(oi(e/t))*t)}function Z1(e,t){return oi(on(oi(e/t))*t)}function Le(e,t=0){if(Mx(e))return e;let n=10**t,r=e*n*(1+Number.EPSILON);return bt(r)/n}const ai=new Map;function J1(e){return((""+e).split(".")[1]||"").length}function bo(e,t,n,r){let l=[],i=r.map(J1);for(let o=t;o=0&&o>=0?0:s)+(o>=i[a]?0:i[a]),d=Le(c,p);l.push(d),ai.set(d,p)}}return l}const so={},X1=[],ui=[null,null],kr=Array.isArray,Mx=Number.isInteger,Rx=e=>e===void 0;function F0(e){return typeof e=="string"}function ja(e){let t=!1;if(e!=null){let n=e.constructor;t=n==null||n==Object}return t}function I0(e){return e!=null&&typeof e=="object"}const Lx=Object.getPrototypeOf(Uint8Array);function rl(e,t=ja){let n;if(kr(e)){let r=e.find(l=>l!=null);if(kr(r)||t(r)){n=Array(e.length);for(let l=0;li){for(l=o-1;l>=0&&e[l]==null;)e[l--]=null;for(l=o+1;lo-s)],l=r[0].length,i=new Map;for(let o=0;o"u"?e=>Promise.resolve().then(e):queueMicrotask;function Bx(e){let t=e[0],n=t.length,r=Array(n);for(let i=0;it[i]-t[o]);let l=[];for(let i=0;i=r&&e[l]==null;)l--;if(l<=r)return!0;const i=kt(1,on((l-r+1)/t));for(let o=e[r],s=r+i;s<=l;s+=i){const u=e[s];if(u!=null){if(u<=o)return!1;o=u}}return!0}const ev=["January","February","March","April","May","June","July","August","September","October","November","December"],tv=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function nv(e){return e.slice(0,3)}const Vx=tv.map(nv),Ux=ev.map(nv),Wx={MMMM:ev,MMM:Ux,WWWW:tv,WWW:Vx};function $i(e){return(e<10?"0":"")+e}function qx(e){return(e<10?"00":e<100?"0":"")+e}const Kx={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>$i(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>$i(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>$i(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return t==0?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>$i(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>$i(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>qx(e.getMilliseconds())};function ad(e,t){t=t||Wx;let n=[],r=/\{([a-z]+)\}|[^{]+/gi,l;for(;l=r.exec(e);)n.push(l[0][0]=="{"?Kx[l[1]]:l[0]);return i=>{let o="";for(let s=0;se%1==0,da=[1,2,2.5,5],Qx=bo(10,-16,0,da),lv=bo(10,0,16,da),Zx=lv.filter(rv),Jx=Qx.concat(lv),ud=` +`,iv="{YYYY}",B0=ud+iv,ov="{M}/{D}",Gi=ud+ov,xs=Gi+"/{YY}",sv="{aa}",Xx="{h}:{mm}",Tl=Xx+sv,$0=ud+Tl,H0=":{ss}",be=null;function av(e){let t=e*1e3,n=t*60,r=n*60,l=r*24,i=l*30,o=l*365,u=(e==1?bo(10,0,3,da).filter(rv):bo(10,-3,0,da)).concat([t,t*5,t*10,t*15,t*30,n,n*5,n*10,n*15,n*30,r,r*2,r*3,r*4,r*6,r*8,r*12,l,l*2,l*3,l*4,l*5,l*6,l*7,l*8,l*9,l*10,l*15,i,i*2,i*3,i*4,i*6,o,o*2,o*5,o*10,o*25,o*50,o*100]);const a=[[o,iv,be,be,be,be,be,be,1],[l*28,"{MMM}",B0,be,be,be,be,be,1],[l,ov,B0,be,be,be,be,be,1],[r,"{h}"+sv,xs,be,Gi,be,be,be,1],[n,Tl,xs,be,Gi,be,be,be,1],[t,H0,xs+" "+Tl,be,Gi+" "+Tl,be,$0,be,1],[e,H0+".{fff}",xs+" "+Tl,be,Gi+" "+Tl,be,$0,be,1]];function c(p){return(d,g,_,x,P,y)=>{let v=[],w=P>=o,T=P>=i&&P=l?l:P,A=on(_)-on(M),D=R+A+si(M-R,I);v.push(D);let V=p(D),K=V.getHours()+V.getMinutes()/n+V.getSeconds()/r,oe=P/r,se=d.axes[g]._space,fe=y/se;for(;D=Le(D+P,e==1?0:3),!(D>x);)if(oe>1){let ne=on(Le(K+oe,6))%24,G=p(D).getHours()-ne;G>1&&(G=-1),D-=G*r,K=(K+oe)%24;let re=v[v.length-1];Le((D-re)/P,3)*fe>=.7&&v.push(D)}else v.push(D)}return v}}return[u,a,c]}const[ek,tk,nk]=av(1),[rk,lk,ik]=av(.001);bo(2,-53,53,[1]);function V0(e,t){return e.map(n=>n.map((r,l)=>l==0||l==8||r==null?r:t(l==1||n[8]==0?r:n[1]+r)))}function U0(e,t){return(n,r,l,i,o)=>{let s=t.find(_=>o>=_[0])||t[t.length-1],u,a,c,p,d,g;return r.map(_=>{let x=e(_),P=x.getFullYear(),y=x.getMonth(),v=x.getDate(),w=x.getHours(),T=x.getMinutes(),O=x.getSeconds(),M=P!=u&&s[2]||y!=a&&s[3]||v!=c&&s[4]||w!=p&&s[5]||T!=d&&s[6]||O!=g&&s[7]||s[1];return u=P,a=y,c=v,p=w,d=T,g=O,M(x)})}}function ok(e,t){let n=ad(t);return(r,l,i,o,s)=>l.map(u=>n(e(u)))}function Bu(e,t,n){return new Date(e,t,n)}function W0(e,t){return t(e)}const sk="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function q0(e,t){return(n,r,l,i)=>i==null?rd:t(e(r))}function ak(e,t){let n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null}function uk(e,t){return e.series[t].fill(e,t)}const ck={show:!0,live:!0,isolate:!1,mount:Ox,markers:{show:!0,width:2,stroke:ak,fill:uk,dash:"solid"},idx:null,idxs:null,values:[]};function fk(e,t){let n=e.cursor.points,r=mn(),l=n.size(e,t);He(r,qi,l),He(r,Ki,l);let i=l/-2;He(r,"marginLeft",i),He(r,"marginTop",i);let o=n.width(e,t,l);return o&&He(r,"borderWidth",o),r}function dk(e,t){let n=e.series[t].points;return n._fill||n._stroke}function pk(e,t){let n=e.series[t].points;return n._stroke||n._fill}function hk(e,t){return e.series[t].points.size}function mk(e,t,n){return n}const $u=[0,0];function vk(e,t,n){return $u[0]=t,$u[1]=n,$u}function ks(e,t,n,r=!0){return l=>{l.button==0&&(!r||l.target==t)&&n(l)}}function Hu(e,t,n,r=!0){return l=>{(!r||l.target==t)&&n(l)}}const gk={show:!0,x:!0,y:!0,lock:!1,move:vk,points:{show:fk,size:hk,width:0,stroke:pk,fill:dk},bind:{mousedown:ks,mouseup:ks,click:ks,dblclick:ks,mousemove:Hu,mouseleave:Hu,mouseenter:Hu},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{prox:-1,bias:0},left:-10,top:-10,idx:null,dataIdx:mk,idxs:null,event:null},uv={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},cd=it({},uv,{filter:Q1}),cv=it({},cd,{size:10}),fv=it({},uv,{show:!1}),fd='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',dv="bold "+fd,pv=1.5,K0={show:!0,scale:"x",stroke:nd,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:dv,side:2,grid:cd,ticks:cv,border:fv,font:fd,lineGap:pv,rotate:0},yk="Value",wk="Time",G0={show:!0,scale:"x",auto:!1,sorted:1,min:ke,max:-ke,idxs:[]};function _k(e,t,n,r,l){return t.map(i=>i==null?"":sd(i))}function xk(e,t,n,r,l,i,o){let s=[],u=ai.get(l)||0;n=o?n:Le(si(n,l),u);for(let a=n;a<=r;a=Le(a+l,u))s.push(Object.is(a,-0)?0:a);return s}function Wc(e,t,n,r,l,i,o){const s=[],u=e.scales[e.axes[t].scale].log,a=u==10?ir:Y1,c=on(a(n));l=ii(u,c),u==10&&c<0&&(l=Le(l,-c));let p=n;do s.push(p),p=p+l,u==10&&(p=Le(p,ai.get(l))),p>=l*u&&(l=p);while(p<=r);return s}function kk(e,t,n,r,l,i,o){let u=e.scales[e.axes[t].scale].asinh,a=r>u?Wc(e,t,kt(u,n),r,l):[u],c=r>=0&&n<=0?[0]:[];return(n<-u?Wc(e,t,kt(u,-r),-n,l):[u]).reverse().map(d=>-d).concat(c,a)}const hv=/./,Sk=/[12357]/,Ek=/[125]/,Y0=/1/,qc=(e,t,n,r)=>e.map((l,i)=>t==4&&l==0||i%r==0&&n.test(l.toExponential()[l<0?1:0])?l:null);function Ck(e,t,n,r,l){let i=e.axes[n],o=i.scale,s=e.scales[o],u=e.valToPos,a=i._space,c=u(10,o),p=u(9,o)-c>=a?hv:u(7,o)-c>=a?Sk:u(5,o)-c>=a?Ek:Y0;if(p==Y0){let d=xt(u(1,o)-c);if(dl,J0={show:!0,auto:!0,sorted:0,gaps:mv,alpha:1,facets:[it({},Z0,{scale:"x"}),it({},Z0,{scale:"y"})]},X0={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:mv,alpha:1,points:{show:bk,filter:null},values:null,min:ke,max:-ke,idxs:[],path:null,clip:null};function Nk(e,t,n,r,l){return n/10}const vv={time:J3,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Mk=it({},vv,{time:!1,ori:1}),eh={};function gv(e,t){let n=eh[e];return n||(n={key:e,plots:[],sub(r){n.plots.push(r)},unsub(r){n.plots=n.plots.filter(l=>l!=r)},pub(r,l,i,o,s,u,a){for(let c=0;c{let y=o.pxRound;const v=a.dir*(a.ori==0?1:-1),w=a.ori==0?mi:vi;let T,O;v==1?(T=n,O=r):(T=r,O=n);let M=y(p(s[T],a,x,g)),N=y(d(u[T],c,P,_)),R=y(p(s[O],a,x,g)),I=y(d(i==1?c.max:c.min,c,P,_)),A=new Path2D(l);return w(A,R,I),w(A,M,I),w(A,M,N),A})}function Aa(e,t,n,r,l,i){let o=null;if(e.length>0){o=new Path2D;const s=t==0?Ia:pd;let u=n;for(let p=0;pd[0]){let g=d[0]-u;g>0&&s(o,u,r,g,r+i),u=d[1]}}let a=n+l-u,c=10;a>0&&s(o,u,r-c/2,a,r+i+c)}return o}function Lk(e,t,n){let r=e[e.length-1];r&&r[0]==t?r[1]=n:e.push([t,n])}function dd(e,t,n,r,l,i,o){let s=[],u=e.length;for(let a=l==1?n:r;a>=n&&a<=r;a+=l)if(t[a]===null){let p=a,d=a;if(l==1)for(;++a<=r&&t[a]===null;)d=a;else for(;--a>=n&&t[a]===null;)d=a;let g=i(e[p]),_=d==p?g:i(e[d]),x=p-l;g=o<=0&&x>=0&&x=0&&y>=0&&y=g&&s.push([g,_])}return s}function th(e){return e==0?bx:e==1?bt:t=>Gr(t,e)}function yv(e){let t=e==0?Da:Fa,n=e==0?(l,i,o,s,u,a)=>{l.arcTo(i,o,s,u,a)}:(l,i,o,s,u,a)=>{l.arcTo(o,i,u,s,a)},r=e==0?(l,i,o,s,u)=>{l.rect(i,o,s,u)}:(l,i,o,s,u)=>{l.rect(o,i,u,s)};return(l,i,o,s,u,a=0,c=0)=>{a==0&&c==0?r(l,i,o,s,u):(a=nn(a,s/2,u/2),c=nn(c,s/2,u/2),t(l,i+a,o),n(l,i+s,o,i+s,o+u,a),n(l,i+s,o+u,i,o+u,c),n(l,i,o+u,i,o,c),n(l,i,o,i+s,o,a),l.closePath())}}const Da=(e,t,n)=>{e.moveTo(t,n)},Fa=(e,t,n)=>{e.moveTo(n,t)},mi=(e,t,n)=>{e.lineTo(t,n)},vi=(e,t,n)=>{e.lineTo(n,t)},Ia=yv(0),pd=yv(1),wv=(e,t,n,r,l,i)=>{e.arc(t,n,r,l,i)},_v=(e,t,n,r,l,i)=>{e.arc(n,t,r,l,i)},xv=(e,t,n,r,l,i,o)=>{e.bezierCurveTo(t,n,r,l,i,o)},kv=(e,t,n,r,l,i,o)=>{e.bezierCurveTo(n,t,l,r,o,i)};function Sv(e){return(t,n,r,l,i)=>hl(t,n,(o,s,u,a,c,p,d,g,_,x,P)=>{let{pxRound:y,points:v}=o,w,T;a.ori==0?(w=Da,T=wv):(w=Fa,T=_v);const O=Le(v.width*Te,3);let M=(v.size-v.width)/2*Te,N=Le(M*2,3),R=new Path2D,I=new Path2D,{left:A,top:D,width:V,height:K}=t.bbox;Ia(I,A-N,D-N,V+N*2,K+N*2);const oe=se=>{if(u[se]!=null){let fe=y(p(s[se],a,x,g)),ne=y(d(u[se],c,P,_));w(R,fe+M,ne),T(R,fe,ne,M,0,Ds*2)}};if(i)i.forEach(oe);else for(let se=r;se<=l;se++)oe(se);return{stroke:O>0?R:null,fill:R,clip:I,flags:cl|pa}})}function Ev(e){return(t,n,r,l,i,o)=>{r!=l&&(i!=r&&o!=r&&e(t,n,r),i!=l&&o!=l&&e(t,n,l),e(t,n,o))}}const jk=Ev(mi),zk=Ev(vi);function Cv(e){const t=Pe(e==null?void 0:e.alignGaps,0);return(n,r,l,i)=>hl(n,r,(o,s,u,a,c,p,d,g,_,x,P)=>{let y=o.pxRound,v=Y=>y(p(Y,a,x,g)),w=Y=>y(d(Y,c,P,_)),T,O;a.ori==0?(T=mi,O=jk):(T=vi,O=zk);const M=a.dir*(a.ori==0?1:-1),N={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:cl},R=N.stroke;let I=ke,A=-ke,D,V,K,oe=v(s[M==1?l:i]),se=ri(u,l,i,1*M),fe=ri(u,l,i,-1*M),ne=v(s[se]),q=v(s[fe]),J=!1;for(let Y=M==1?l:i;Y>=l&&Y<=i;Y+=M){let me=v(s[Y]),X=u[Y];me==oe?X!=null?(V=w(X),I==ke&&(T(R,me,V),D=V),I=nn(V,I),A=kt(V,A)):X===null&&(J=!0):(I!=ke&&(O(R,oe,I,A,D,V),K=oe),X!=null?(V=w(X),T(R,me,V),I=A=D=V):(I=ke,A=-ke,X===null&&(J=!0)),oe=me)}I!=ke&&I!=A&&K!=oe&&O(R,oe,I,A,D,V);let[G,re]=za(n,r);if(o.fill!=null||G!=0){let Y=N.fill=new Path2D(R),me=o.fillTo(n,r,o.min,o.max,G),X=w(me);T(Y,q,X),T(Y,ne,X)}if(!o.spanGaps){let Y=[];J&&Y.push(...dd(s,u,l,i,M,v,t)),N.gaps=Y=o.gaps(n,r,l,i,Y),N.clip=Aa(Y,a.ori,g,_,x,P)}return re!=0&&(N.band=re==2?[or(n,r,l,i,R,-1),or(n,r,l,i,R,1)]:or(n,r,l,i,R,re)),N})}function Ak(e){const t=Pe(e.align,1),n=Pe(e.ascDesc,!1),r=Pe(e.alignGaps,0),l=Pe(e.extend,!1);return(i,o,s,u)=>hl(i,o,(a,c,p,d,g,_,x,P,y,v,w)=>{let T=a.pxRound,{left:O,width:M}=i.bbox,N=G=>T(_(G,d,v,P)),R=G=>T(x(G,g,w,y)),I=d.ori==0?mi:vi;const A={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:cl},D=A.stroke,V=d.dir*(d.ori==0?1:-1);s=ri(p,s,u,1),u=ri(p,s,u,-1);let K=R(p[V==1?s:u]),oe=N(c[V==1?s:u]),se=oe,fe=oe;l&&t==-1&&(fe=O,I(D,fe,K)),I(D,oe,K);for(let G=V==1?s:u;G>=s&&G<=u;G+=V){let re=p[G];if(re==null)continue;let Y=N(c[G]),me=R(re);t==1?I(D,Y,K):I(D,se,me),I(D,Y,me),K=me,se=Y}let ne=se;l&&t==1&&(ne=O+M,I(D,ne,K));let[q,J]=za(i,o);if(a.fill!=null||q!=0){let G=A.fill=new Path2D(D),re=a.fillTo(i,o,a.min,a.max,q),Y=R(re);I(G,ne,Y),I(G,fe,Y)}if(!a.spanGaps){let G=[];G.push(...dd(c,p,s,u,V,N,r));let re=a.width*Te/2,Y=n||t==1?re:-re,me=n||t==-1?-re:re;G.forEach(X=>{X[0]+=Y,X[1]+=me}),A.gaps=G=a.gaps(i,o,s,u,G),A.clip=Aa(G,d.ori,P,y,v,w)}return J!=0&&(A.band=J==2?[or(i,o,s,u,D,-1),or(i,o,s,u,D,1)]:or(i,o,s,u,D,J)),A})}function Dk(e){e=e||so;const t=Pe(e.size,[.6,ke,1]),n=e.align||0,r=(e.gap||0)*Te;let l=e.radius;l=l==null?[0,0]:typeof l=="number"?[l,0]:l;const i=xe(l),o=1-t[0],s=Pe(t[1],ke)*Te,u=Pe(t[2],1)*Te,a=Pe(e.disp,so),c=Pe(e.each,g=>{}),{fill:p,stroke:d}=a;return(g,_,x,P)=>hl(g,_,(y,v,w,T,O,M,N,R,I,A,D)=>{let V=y.pxRound,K,oe;T.ori==0?[K,oe]=i(g,_):[oe,K]=i(g,_);const se=T.dir*(T.ori==0?1:-1),fe=O.dir*(O.ori==1?1:-1);let ne=T.ori==0?Ia:pd,q=T.ori==0?c:(te,Oe,$e,h,S,C,L)=>{c(te,Oe,$e,S,h,L,C)},[J,G]=za(g,_),re=O.distr==3?J==1?O.max:O.min:0,Y=N(re,O,D,I),me,X,pe=V(y.width*Te),Re=!1,Ue=null,Be=null,tt=null,Ct=null;p!=null&&(pe==0||d!=null)&&(Re=!0,Ue=p.values(g,_,x,P),Be=new Map,new Set(Ue).forEach(te=>{te!=null&&Be.set(te,new Path2D)}),pe>0&&(tt=d.values(g,_,x,P),Ct=new Map,new Set(tt).forEach(te=>{te!=null&&Ct.set(te,new Path2D)})));let{x0:at,size:dn}=a,Qn=!0;if(at!=null&&dn!=null){v=at.values(g,_,x,P),at.unit==2&&(v=v.map(Oe=>g.posToVal(R+Oe*A,T.key,!0)));let te=dn.values(g,_,x,P);dn.unit==2?X=te[0]*A:X=M(te[0],T,A,R)-M(0,T,A,R),X=V(X-pe),me=se==1?-pe/2:X+pe/2}else{let te=A;if(v.length>1){let $e=null;for(let h=0,S=1/0;hte&&(Qn=!1)}const pn={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:cl|pa};let Zn;G!=0&&(pn.band=new Path2D,Zn=V(N(G==1?O.max:O.min,O,D,I)));const Cn=Re?null:new Path2D,hn=pn.band;let{y0:ht,y1:ue}=a,nt=null;ht!=null&&ue!=null&&(w=ue.values(g,_,x,P),nt=ht.values(g,_,x,P));let Ft=K*X,ye=oe*X;for(let te=se==1?x:P;te>=x&&te<=P;te+=se){let Oe=w[te];if(Oe===void 0)continue;let $e=T.distr!=2||a!=null?v[te]:te,h=M($e,T,A,R),S=N(Pe(Oe,re),O,D,I);nt!=null&&Oe!=null&&(Y=N(nt[te],O,D,I));let C=V(h-me),L=V(kt(S,Y)),F=V(nn(S,Y)),Q=L-F;if(Oe!=null){let ae=Oe<0?ye:Ft,he=Oe<0?Ft:ye;Re?(pe>0&&tt[te]!=null&&ne(Ct.get(tt[te]),C,F+on(pe/2),X,kt(0,Q-pe),ae,he),Ue[te]!=null&&ne(Be.get(Ue[te]),C,F+on(pe/2),X,kt(0,Q-pe),ae,he)):ne(Cn,C,F+on(pe/2),X,kt(0,Q-pe),ae,he),q(g,_,te,C-pe/2,F,X+pe,Q)}G!=0&&(Oe!=null||Qn)&&(fe*G==1?(L=F,F=Zn):(F=L,L=Zn),Q=L-F,ne(hn,C-pe/2,F,X+pe,kt(0,Q),0,0))}return pe>0&&(pn.stroke=Re?Ct:Cn),pn.fill=Re?Be:Cn,pn})}function Fk(e,t){const n=Pe(t==null?void 0:t.alignGaps,0);return(r,l,i,o)=>hl(r,l,(s,u,a,c,p,d,g,_,x,P,y)=>{let v=s.pxRound,w=ne=>v(d(ne,c,P,_)),T=ne=>v(g(ne,p,y,x)),O,M,N;c.ori==0?(O=Da,N=mi,M=xv):(O=Fa,N=vi,M=kv);const R=c.dir*(c.ori==0?1:-1);i=ri(a,i,o,1),o=ri(a,i,o,-1);let I=w(u[R==1?i:o]),A=I,D=[],V=[];for(let ne=R==1?i:o;ne>=i&&ne<=o;ne+=R)if(a[ne]!=null){let J=u[ne],G=w(J);D.push(A=G),V.push(T(a[ne]))}const K={stroke:e(D,V,O,N,M,v),fill:null,clip:null,band:null,gaps:null,flags:cl},oe=K.stroke;let[se,fe]=za(r,l);if(s.fill!=null||se!=0){let ne=K.fill=new Path2D(oe),q=s.fillTo(r,l,s.min,s.max,se),J=T(q);N(ne,A,J),N(ne,I,J)}if(!s.spanGaps){let ne=[];ne.push(...dd(u,a,i,o,R,w,n)),K.gaps=ne=s.gaps(r,l,i,o,ne),K.clip=Aa(ne,c.ori,_,x,P,y)}return fe!=0&&(K.band=fe==2?[or(r,l,i,o,oe,-1),or(r,l,i,o,oe,1)]:or(r,l,i,o,oe,fe)),K})}function Ik(e){return Fk(Bk,e)}function Bk(e,t,n,r,l,i){const o=e.length;if(o<2)return null;const s=new Path2D;if(n(s,e[0],t[0]),o==2)r(s,e[1],t[1]);else{let u=Array(o),a=Array(o-1),c=Array(o-1),p=Array(o-1);for(let d=0;d0!=a[d]>0?u[d]=0:(u[d]=3*(p[d-1]+p[d])/((2*p[d]+p[d-1])/a[d-1]+(p[d]+2*p[d-1])/a[d]),isFinite(u[d])||(u[d]=0));u[o-1]=a[o-2];for(let d=0;d{Et.pxRatio=Te}));const $k=Cv(),Hk=Sv();function rh(e,t,n,r){return(r?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((i,o)=>Gc(i,o,t,n))}function Vk(e,t){return e.map((n,r)=>r==0?null:it({},t,n))}function Gc(e,t,n,r){return it({},t==0?n:r,e)}function Tv(e,t,n){return t==null?ui:[t,n]}const Uk=Tv;function Wk(e,t,n){return t==null?ui:fa(t,n,od,!0)}function Pv(e,t,n,r){return t==null?ui:La(t,n,e.scales[r].log,!1)}const qk=Pv;function Ov(e,t,n,r){return t==null?ui:id(t,n,e.scales[r].log,!1)}const Kk=Ov;function Gk(e,t,n,r,l){let i=kt(j0(e),j0(t)),o=t-e,s=wr(l/r*o,n);do{let u=n[s],a=r*u/o;if(a>=l&&i+(u<5?ai.get(u):0)<=17)return[u,a]}while(++s(t=bt((n=+l)*Te))+"px"),[e,t,n]}function Yk(e){e.show&&[e.font,e.labelFont].forEach(t=>{let n=Le(t[2]*Te,1);t[0]=t[0].replace(/[0-9.]+px/,n+"px"),t[1]=n})}function Et(e,t,n){const r={mode:Pe(e.mode,1)},l=r.mode;function i(f,m){return((m.distr==3?ir(f>0?f:m.clamp(r,f,m.min,m.max,m.key)):m.distr==4?Iu(f,m.asinh):f)-m._min)/(m._max-m._min)}function o(f,m,k,E){let b=i(f,m);return E+k*(m.dir==-1?1-b:b)}function s(f,m,k,E){let b=i(f,m);return E+k*(m.dir==-1?b:1-b)}function u(f,m,k,E){return m.ori==0?o(f,m,k,E):s(f,m,k,E)}r.valToPosH=o,r.valToPosV=s;let a=!1;r.status=0;const c=r.root=mn(X3);if(e.id!=null&&(c.id=e.id),en(c,e.class),e.title){let f=mn(nx,c);f.textContent=e.title}const p=Mn("canvas"),d=r.ctx=p.getContext("2d"),g=mn(rx,c);nl("click",g,f=>{f.target===x&&(ze!=vl||Ae!=gl)&&Pt.click(r,f)},!0);const _=r.under=mn(lx,g);g.appendChild(p);const x=r.over=mn(ix,g);e=rl(e);const P=+Pe(e.pxAlign,1),y=th(P);(e.plugins||[]).forEach(f=>{f.opts&&(e=f.opts(r,e)||e)});const v=e.ms||.001,w=r.series=l==1?rh(e.series||[],G0,X0,!1):Vk(e.series||[null],J0),T=r.axes=rh(e.axes||[],K0,Q0,!0),O=r.scales={},M=r.bands=e.bands||[];M.forEach(f=>{f.fill=xe(f.fill||null),f.dir=Pe(f.dir,-1)});const N=l==2?w[1].facets[0].scale:w[0].scale,R={axes:Bv,series:zv},I=(e.drawOrder||["axes","series"]).map(f=>R[f]);function A(f){let m=O[f];if(m==null){let k=(e.scales||so)[f]||so;if(k.from!=null)A(k.from),O[f]=it({},O[k.from],k,{key:f});else{m=O[f]=it({},f==N?vv:Mk,k),m.key=f;let E=m.time,b=m.range,z=kr(b);if((f!=N||l==2&&!E)&&(z&&(b[0]==null||b[1]==null)&&(b={min:b[0]==null?M0:{mode:1,hard:b[0],soft:b[0]},max:b[1]==null?M0:{mode:1,hard:b[1],soft:b[1]}},z=!1),!z&&ja(b))){let B=b;b=(W,Z,ie)=>Z==null?ui:fa(Z,ie,B)}m.range=xe(b||(E?Uk:f==N?m.distr==3?qk:m.distr==4?Kk:Tv:m.distr==3?Pv:m.distr==4?Ov:Wk)),m.auto=xe(z?!1:m.auto),m.clamp=xe(m.clamp||Nk),m._min=m._max=null}}}A("x"),A("y"),l==1&&w.forEach(f=>{A(f.scale)}),T.forEach(f=>{A(f.scale)});for(let f in e.scales)A(f);const D=O[N],V=D.distr;let K,oe;D.ori==0?(en(c,ex),K=o,oe=s):(en(c,tx),K=s,oe=o);const se={};for(let f in O){let m=O[f];(m.min!=null||m.max!=null)&&(se[f]={min:m.min,max:m.max},m.min=m.max=null)}const fe=e.tzDate||(f=>new Date(bt(f/v))),ne=e.fmtDate||ad,q=v==1?nk(fe):ik(fe),J=U0(fe,V0(v==1?tk:lk,ne)),G=q0(fe,W0(sk,ne)),re=[],Y=r.legend=it({},ck,e.legend),me=Y.show,X=Y.markers;Y.idxs=re,X.width=xe(X.width),X.dash=xe(X.dash),X.stroke=xe(X.stroke),X.fill=xe(X.fill);let pe,Re,Ue,Be=[],tt=[],Ct,at=!1,dn={};if(Y.live){const f=w[1]?w[1].values:null;at=f!=null,Ct=at?f(r,1,0):{_:0};for(let m in Ct)dn[m]=rd}if(me)if(pe=Mn("table",fx,c),Ue=Mn("tbody",null,pe),Y.mount(r,pe),at){Re=Mn("thead",null,pe,Ue);let f=Mn("tr",null,Re);Mn("th",null,f);for(var Qn in Ct)Mn("th",w0,f).textContent=Qn}else en(pe,px),Y.live&&en(pe,dx);const pn={show:!0},Zn={show:!1};function Cn(f,m){if(m==0&&(at||!Y.live||l==2))return ui;let k=[],E=Mn("tr",hx,Ue,Ue.childNodes[m]);en(E,f.class),f.show||en(E,Yr);let b=Mn("th",null,E);if(X.show){let W=mn(mx,b);if(m>0){let Z=X.width(r,m);Z&&(W.style.border=Z+"px "+X.dash(r,m)+" "+X.stroke(r,m)),W.style.background=X.fill(r,m)}}let z=mn(w0,b);z.textContent=f.label,m>0&&(X.show||(z.style.color=f.width>0?X.stroke(r,m):X.fill(r,m)),ht("click",b,W=>{if(de._lock)return;ct(W);let Z=w.indexOf(f);if((W.ctrlKey||W.metaKey)!=Y.isolate){let ie=w.some((U,le)=>le>0&&le!=Z&&U.show);w.forEach((U,le)=>{le>0&&Bn(le,ie?le==Z?pn:Zn:pn,!0,rt.setSeries)})}else Bn(Z,{show:!f.show},!0,rt.setSeries)},!1),pr&&ht(E0,b,W=>{de._lock||(ct(W),Bn(w.indexOf(f),_l,!0,rt.setSeries))},!1));for(var B in Ct){let W=Mn("td",vx,E);W.textContent="--",k.push(W)}return[E,k]}const hn=new Map;function ht(f,m,k,E=!0){const b=hn.get(m)||{},z=de.bind[f](r,m,k,E);z&&(nl(f,m,b[f]=z),hn.set(m,b))}function ue(f,m,k){const E=hn.get(m)||{};for(let b in E)(f==null||b==f)&&(Uc(b,m,E[b]),delete E[b]);f==null&&hn.delete(m)}let nt=0,Ft=0,ye=0,te=0,Oe=0,$e=0,h=0,S=0,C=0,L=0;r.bbox={};let F=!1,Q=!1,ae=!1,he=!1,ut=!1,Qe=!1;function We(f,m,k){(k||f!=r.width||m!=r.height)&&ce(f,m),ki(!1),ae=!0,Q=!0,de.left>=0&&(he=Qe=!0),Hr()}function ce(f,m){r.width=nt=ye=f,r.height=Ft=te=m,Oe=$e=0,Io(),Bo();let k=r.bbox;h=k.left=Gr(Oe*Te,.5),S=k.top=Gr($e*Te,.5),C=k.width=Gr(ye*Te,.5),L=k.height=Gr(te*Te,.5)}const Tn=3;function Ha(){let f=!1,m=0;for(;!f;){m++;let k=Fv(m),E=Iv(m);f=m==Tn||k&&E,f||(ce(r.width,r.height),Q=!0)}}function gi({width:f,height:m}){We(f,m)}r.setSize=gi;function Io(){let f=!1,m=!1,k=!1,E=!1;T.forEach((b,z)=>{if(b.show&&b._show){let{side:B,_size:W}=b,Z=B%2,ie=b.label!=null?b.labelSize:0,U=W+ie;U>0&&(Z?(ye-=U,B==3?(Oe+=U,E=!0):k=!0):(te-=U,B==0?($e+=U,f=!0):m=!0))}}),In[0]=f,In[1]=k,In[2]=m,In[3]=E,ye-=hr[1]+hr[3],Oe+=hr[3],te-=hr[2]+hr[0],$e+=hr[0]}function Bo(){let f=Oe+ye,m=$e+te,k=Oe,E=$e;function b(z,B){switch(z){case 1:return f+=B,f-B;case 2:return m+=B,m-B;case 3:return k-=B,k+B;case 0:return E-=B,E+B}}T.forEach((z,B)=>{if(z.show&&z._show){let W=z.side;z._pos=b(W,z._size),z.label!=null&&(z._lpos=b(W,z.labelSize))}})}const de=r.cursor=it({},gk,{drag:{y:l==2}},e.cursor),ct=f=>{de.event=f};de.idxs=re,de._lock=!1;let Xt=de.points;Xt.show=xe(Xt.show),Xt.size=xe(Xt.size),Xt.stroke=xe(Xt.stroke),Xt.width=xe(Xt.width),Xt.fill=xe(Xt.fill);const Jn=r.focus=it({},e.focus||{alpha:.3},de.focus),pr=Jn.prox>=0;let mt=[null];function yi(f,m){if(m>0){let k=de.points.show(r,m);if(k)return en(k,cx),en(k,f.class),Cl(k,-10,-10,ye,te),x.insertBefore(k,mt[m]),k}}function $r(f,m){if(l==1||m>0){let k=l==1&&O[f.scale].time,E=f.value;f.value=k?F0(E)?q0(fe,W0(E,ne)):E||G:E||Pk,f.label=f.label||(k?wk:yk)}if(m>0){f.width=f.width==null?1:f.width,f.paths=f.paths||$k||Nx,f.fillTo=xe(f.fillTo||Rk),f.pxAlign=+Pe(f.pxAlign,P),f.pxRound=th(f.pxAlign),f.stroke=xe(f.stroke||null),f.fill=xe(f.fill||null),f._stroke=f._fill=f._paths=f._focus=null;let k=Ok(kt(1,f.width),1),E=f.points=it({},{size:k,width:kt(1,k*.2),stroke:f.stroke,space:k*2,paths:Hk,_stroke:null,_fill:null},f.points);E.show=xe(E.show),E.filter=xe(E.filter),E.fill=xe(E.fill),E.stroke=xe(E.stroke),E.paths=xe(E.paths),E.pxAlign=f.pxAlign}if(me){let k=Cn(f,m);Be.splice(m,0,k[0]),tt.splice(m,0,k[1]),Y.values.push(null)}if(de.show){re.splice(m,0,null);let k=yi(f,m);k&&mt.splice(m,0,k)}Ot("addSeries",m)}function wi(f,m){m=m??w.length,f=l==1?Gc(f,m,G0,X0):Gc(f,m,null,J0),w.splice(m,0,f),$r(w[m],m)}r.addSeries=wi;function $o(f){if(w.splice(f,1),me){Y.values.splice(f,1),tt.splice(f,1);let m=Be.splice(f,1)[0];ue(null,m.firstChild),m.remove()}de.show&&(re.splice(f,1),mt.length>1&&mt.splice(f,1)[0].remove()),Ot("delSeries",f)}r.delSeries=$o;const In=[!1,!1,!1,!1];function Rv(f,m){if(f._show=f.show,f.show){let k=f.side%2,E=O[f.scale];E==null&&(f.scale=k?w[1].scale:N,E=O[f.scale]);let b=E.time;f.size=xe(f.size),f.space=xe(f.space),f.rotate=xe(f.rotate),kr(f.incrs)&&f.incrs.forEach(B=>{!ai.has(B)&&ai.set(B,J1(B))}),f.incrs=xe(f.incrs||(E.distr==2?Zx:b?v==1?ek:rk:Jx)),f.splits=xe(f.splits||(b&&E.distr==1?q:E.distr==3?Wc:E.distr==4?kk:xk)),f.stroke=xe(f.stroke),f.grid.stroke=xe(f.grid.stroke),f.ticks.stroke=xe(f.ticks.stroke),f.border.stroke=xe(f.border.stroke);let z=f.values;f.values=kr(z)&&!kr(z[0])?xe(z):b?kr(z)?U0(fe,V0(z,ne)):F0(z)?ok(fe,z):z||J:z||_k,f.filter=xe(f.filter||(E.distr>=3&&E.log==10?Ck:E.distr==3&&E.log==2?Tk:Q1)),f.font=lh(f.font),f.labelFont=lh(f.labelFont),f._size=f.size(r,null,m,0),f._space=f._rotate=f._incrs=f._found=f._splits=f._values=null,f._size>0&&(In[m]=!0,f._el=mn(ox,g))}}function _i(f,m,k,E){let[b,z,B,W]=k,Z=m%2,ie=0;return Z==0&&(W||z)&&(ie=m==0&&!b||m==2&&!B?bt(K0.size/3):0),Z==1&&(b||B)&&(ie=m==1&&!z||m==3&&!W?bt(Q0.size/2):0),ie}const hd=r.padding=(e.padding||[_i,_i,_i,_i]).map(f=>xe(Pe(f,_i))),hr=r._padding=hd.map((f,m)=>f(r,m,In,0));let Tt,vt=null,gt=null;const Ho=l==1?w[0].idxs:null;let Pn=null,Vo=!1;function md(f,m){if(t=f==null?[]:rl(f,I0),l==2){Tt=0;for(let k=1;k=0,Qe=!0,Hr()}}r.setData=md;function Va(){Vo=!0;let f,m;l==1&&(Tt>0?(vt=Ho[0]=0,gt=Ho[1]=Tt-1,f=t[0][vt],m=t[0][gt],V==2?(f=vt,m=gt):f==m&&(V==3?[f,m]=La(f,f,D.log,!1):V==4?[f,m]=id(f,f,D.log,!1):D.time?m=f+bt(86400/v):[f,m]=fa(f,m,od,!0))):(vt=Ho[0]=f=null,gt=Ho[1]=m=null)),yl(N,f,m)}let Uo,ml,Ua,Wa,qa,Ka,Ga,Ya,Qa,xi;function vd(f,m,k,E,b,z){f??(f=x0),k??(k=X1),E??(E="butt"),b??(b=x0),z??(z="round"),f!=Uo&&(d.strokeStyle=Uo=f),b!=ml&&(d.fillStyle=ml=b),m!=Ua&&(d.lineWidth=Ua=m),z!=qa&&(d.lineJoin=qa=z),E!=Ka&&(d.lineCap=Ka=E),k!=Wa&&d.setLineDash(Wa=k)}function gd(f,m,k,E){m!=ml&&(d.fillStyle=ml=m),f!=Ga&&(d.font=Ga=f),k!=Ya&&(d.textAlign=Ya=k),E!=Qa&&(d.textBaseline=Qa=E)}function Za(f,m,k,E,b=0){if(E.length>0&&f.auto(r,Vo)&&(m==null||m.min==null)){let z=Pe(vt,0),B=Pe(gt,E.length-1),W=k.min==null?f.distr==3?Sx(E,z,B):kx(E,z,B,b):[k.min,k.max];f.min=nn(f.min,k.min=W[0]),f.max=kt(f.max,k.max=W[1])}}function Lv(){let f=rl(O,I0);for(let E in f){let b=f[E],z=se[E];if(z!=null&&z.min!=null)it(b,z),E==N&&ki(!0);else if(E!=N||l==2)if(Tt==0&&b.from==null){let B=b.range(r,null,null,E);b.min=B[0],b.max=B[1]}else b.min=ke,b.max=-ke}if(Tt>0){w.forEach((E,b)=>{if(l==1){let z=E.scale,B=f[z],W=se[z];if(b==0){let Z=B.range(r,B.min,B.max,z);B.min=Z[0],B.max=Z[1],vt=wr(B.min,t[0]),gt=wr(B.max,t[0]),gt-vt>1&&(t[0][vt]B.max&>--),E.min=Pn[vt],E.max=Pn[gt]}else E.show&&E.auto&&Za(B,W,E,t[b],E.sorted);E.idxs[0]=vt,E.idxs[1]=gt}else if(b>0&&E.show&&E.auto){let[z,B]=E.facets,W=z.scale,Z=B.scale,[ie,U]=t[b];Za(f[W],se[W],z,ie,z.sorted),Za(f[Z],se[Z],B,U,B.sorted),E.min=B.min,E.max=B.max}});for(let E in f){let b=f[E],z=se[E];if(b.from==null&&(z==null||z.min==null)){let B=b.range(r,b.min==ke?null:b.min,b.max==-ke?null:b.max,E);b.min=B[0],b.max=B[1]}}}for(let E in f){let b=f[E];if(b.from!=null){let z=f[b.from];if(z.min==null)b.min=b.max=null;else{let B=b.range(r,z.min,z.max,E);b.min=B[0],b.max=B[1]}}}let m={},k=!1;for(let E in f){let b=f[E],z=O[E];if(z.min!=b.min||z.max!=b.max){z.min=b.min,z.max=b.max;let B=z.distr;z._min=B==3?ir(z.min):B==4?Iu(z.min,z.asinh):z.min,z._max=B==3?ir(z.max):B==4?Iu(z.max,z.asinh):z.max,m[E]=k=!0}}if(k){w.forEach((E,b)=>{l==2?b>0&&m.y&&(E._paths=null):m[E.scale]&&(E._paths=null)});for(let E in m)ae=!0,Ot("setScale",E);de.show&&de.left>=0&&(he=Qe=!0)}for(let E in se)se[E]=null}function jv(f){let m=z0(vt-1,0,Tt-1),k=z0(gt+1,0,Tt-1);for(;f[m]==null&&m>0;)m--;for(;f[k]==null&&k0&&(w.forEach((f,m)=>{if(m>0&&f.show&&f._paths==null){let k=l==2?[0,t[m][0].length-1]:jv(t[m]);f._paths=f.paths(r,m,k[0],k[1])}}),w.forEach((f,m)=>{if(m>0&&f.show){xi!=f.alpha&&(d.globalAlpha=xi=f.alpha),yd(m,!1),f._paths&&wd(m,!1);{yd(m,!0);let k=f._paths?f._paths.gaps:null,E=f.points.show(r,m,vt,gt,k),b=f.points.filter(r,m,E,k);(E||b)&&(f.points._paths=f.points.paths(r,m,vt,gt,b),wd(m,!0))}xi!=1&&(d.globalAlpha=xi=1),Ot("drawSeries",m)}}))}function yd(f,m){let k=m?w[f].points:w[f];k._stroke=k.stroke(r,f),k._fill=k.fill(r,f)}function wd(f,m){let k=m?w[f].points:w[f],E=k._stroke,b=k._fill,{stroke:z,fill:B,clip:W,flags:Z}=k._paths,ie=null,U=Le(k.width*Te,3),le=U%2/2;m&&b==null&&(b=U>0?"#fff":E);let ge=k.pxAlign==1&&le>0;if(ge&&d.translate(le,le),!m){let Ze=h-U/2,_e=S-U/2,Ce=C+U,Ee=L+U;ie=new Path2D,ie.rect(Ze,_e,Ce,Ee)}m?Ja(E,U,k.dash,k.cap,b,z,B,Z,W):Av(f,E,U,k.dash,k.cap,b,z,B,Z,ie,W),ge&&d.translate(-le,-le)}function Av(f,m,k,E,b,z,B,W,Z,ie,U){let le=!1;M.forEach((ge,Ze)=>{if(ge.series[0]==f){let _e=w[ge.series[1]],Ce=t[ge.series[1]],Ee=(_e._paths||so).band;kr(Ee)&&(Ee=ge.dir==1?Ee[0]:Ee[1]);let Ne,qe=null;_e.show&&Ee&&Cx(Ce,vt,gt)?(qe=ge.fill(r,Ze)||z,Ne=_e._paths.clip):Ee=null,Ja(m,k,E,b,qe,B,W,Z,ie,U,Ne,Ee),le=!0}}),le||Ja(m,k,E,b,z,B,W,Z,ie,U)}const _d=cl|pa;function Ja(f,m,k,E,b,z,B,W,Z,ie,U,le){vd(f,m,k,E,b),(Z||ie||le)&&(d.save(),Z&&d.clip(Z),ie&&d.clip(ie)),le?(W&_d)==_d?(d.clip(le),U&&d.clip(U),qo(b,B),Wo(f,z,m)):W&pa?(qo(b,B),d.clip(le),Wo(f,z,m)):W&cl&&(d.save(),d.clip(le),U&&d.clip(U),qo(b,B),d.restore(),Wo(f,z,m)):(qo(b,B),Wo(f,z,m)),(Z||ie||le)&&d.restore()}function Wo(f,m,k){k>0&&(m instanceof Map?m.forEach((E,b)=>{d.strokeStyle=Uo=b,d.stroke(E)}):m!=null&&f&&d.stroke(m))}function qo(f,m){m instanceof Map?m.forEach((k,E)=>{d.fillStyle=ml=E,d.fill(k)}):m!=null&&f&&d.fill(m)}function Dv(f,m,k,E){let b=T[f],z;if(E<=0)z=[0,0];else{let B=b._space=b.space(r,f,m,k,E),W=b._incrs=b.incrs(r,f,m,k,E,B);z=Gk(m,k,W,E,B)}return b._found=z}function Xa(f,m,k,E,b,z,B,W,Z,ie){let U=B%2/2;P==1&&d.translate(U,U),vd(W,B,Z,ie,W),d.beginPath();let le,ge,Ze,_e,Ce=b+(E==0||E==3?-z:z);k==0?(ge=b,_e=Ce):(le=b,Ze=Ce);for(let Ee=0;Ee{if(!k.show)return;let b=O[k.scale];if(b.min==null){k._show&&(m=!1,k._show=!1,ki(!1));return}else k._show||(m=!1,k._show=!0,ki(!1));let z=k.side,B=z%2,{min:W,max:Z}=b,[ie,U]=Dv(E,W,Z,B==0?ye:te);if(U==0)return;let le=b.distr==2,ge=k._splits=k.splits(r,E,W,Z,ie,U,le),Ze=b.distr==2?ge.map(Ne=>Pn[Ne]):ge,_e=b.distr==2?Pn[ge[1]]-Pn[ge[0]]:ie,Ce=k._values=k.values(r,k.filter(r,Ze,E,U,_e),E,U,_e);k._rotate=z==2?k.rotate(r,Ce,E,U):0;let Ee=k._size;k._size=li(k.size(r,Ce,E,f)),Ee!=null&&k._size!=Ee&&(m=!1)}),m}function Iv(f){let m=!0;return hd.forEach((k,E)=>{let b=k(r,E,In,f);b!=hr[E]&&(m=!1),hr[E]=b}),m}function Bv(){for(let f=0;fPn[bn]):_e,Ee=U.distr==2?Pn[_e[1]]-Pn[_e[0]]:Z,Ne=m.ticks,qe=m.border,Wt=Ne.show?bt(Ne.size*Te):0,De=m._rotate*-Ds/180,lt=y(m._pos*Te),Lt=(Wt+Ze)*W,Xe=lt+Lt;z=E==0?Xe:0,b=E==1?Xe:0;let Bt=m.font[0],On=m.align==1?El:m.align==2?Du:De>0?El:De<0?Du:E==0?"center":k==3?Du:El,gr=De||E==1?"middle":k==2?Bi:_0;gd(Bt,B,On,gr);let Id=m.font[1]*m.lineGap,Jo=_e.map(bn=>y(u(bn,U,le,ge))),Bd=m._values;for(let bn=0;bn{k>0&&(m._paths=null,f&&(l==1?(m.min=null,m.max=null):m.facets.forEach(E=>{E.min=null,E.max=null})))})}let eu=!1;function Hr(){eu||(Ix($v),eu=!0)}function $v(){F&&(Lv(),F=!1),ae&&(Ha(),ae=!1),Q&&(He(_,El,Oe),He(_,Bi,$e),He(_,qi,ye),He(_,Ki,te),He(x,El,Oe),He(x,Bi,$e),He(x,qi,ye),He(x,Ki,te),He(g,qi,nt),He(g,Ki,Ft),p.width=bt(nt*Te),p.height=bt(Ft*Te),T.forEach(({_el:f,_show:m,_size:k,_pos:E,side:b})=>{if(f!=null)if(m){let z=b===3||b===0?k:0,B=b%2==1;He(f,B?"left":"top",E-z),He(f,B?"width":"height",k),He(f,B?"top":"left",B?$e:Oe),He(f,B?"height":"width",B?te:ye),Vc(f,Yr)}else en(f,Yr)}),Uo=ml=Ua=qa=Ka=Ga=Ya=Qa=Wa=null,xi=1,Oi(!0),Ot("setSize"),Q=!1),nt>0&&Ft>0&&(d.clearRect(0,0,p.width,p.height),Ot("drawClear"),I.forEach(f=>f()),Ot("draw")),It.show&&ut&&(Yo(It),ut=!1),de.show&&he&&(Vr(null,!0,!1),he=!1),Y.show&&Y.live&&Qe&&(lu(),Qe=!1),a||(a=!0,r.status=1,Ot("ready")),Vo=!1,eu=!1}r.redraw=(f,m)=>{ae=m||!1,f!==!1?yl(N,D.min,D.max):Hr()};function tu(f,m){let k=O[f];if(k.from==null){if(Tt==0){let E=k.range(r,m.min,m.max,f);m.min=E[0],m.max=E[1]}if(m.min>m.max){let E=m.min;m.min=m.max,m.max=E}if(Tt>1&&m.min!=null&&m.max!=null&&m.max-m.min<1e-16)return;f==N&&k.distr==2&&Tt>0&&(m.min=wr(m.min,t[0]),m.max=wr(m.max,t[0]),m.min==m.max&&m.max++),se[f]=m,F=!0,Hr()}}r.setScale=tu;let nu,ru,Ko,Go,xd,kd,vl,gl,Sd,Ed,ze,Ae,mr=!1;const Pt=de.drag;let yt=Pt.x,wt=Pt.y;de.show&&(de.x&&(nu=mn(ax,x)),de.y&&(ru=mn(ux,x)),D.ori==0?(Ko=nu,Go=ru):(Ko=ru,Go=nu),ze=de.left,Ae=de.top);const It=r.select=it({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),Si=It.show?mn(sx,It.over?x:_):null;function Yo(f,m){if(It.show){for(let k in f)It[k]=f[k],k in Od&&He(Si,k,f[k]);m!==!1&&Ot("setSelect")}}r.setSelect=Yo;function Hv(f,m){let k=w[f],E=me?Be[f]:null;k.show?E&&Vc(E,Yr):(E&&en(E,Yr),mt.length>1&&Cl(mt[f],-10,-10,ye,te))}function yl(f,m,k){tu(f,{min:m,max:k})}function Bn(f,m,k,E){m.focus!=null&&Kv(f),m.show!=null&&w.forEach((b,z)=>{z>0&&(f==z||f==null)&&(b.show=m.show,Hv(z,m.show),yl(l==2?b.facets[1].scale:b.scale,null,null),Hr())}),k!==!1&&Ot("setSeries",f,m),E&&bi("setSeries",r,f,m)}r.setSeries=Bn;function Vv(f,m){it(M[f],m)}function Uv(f,m){f.fill=xe(f.fill||null),f.dir=Pe(f.dir,-1),m=m??M.length,M.splice(m,0,f)}function Wv(f){f==null?M.length=0:M.splice(f,1)}r.addBand=Uv,r.setBand=Vv,r.delBand=Wv;function qv(f,m){w[f].alpha=m,de.show&&mt[f]&&(mt[f].style.opacity=m),me&&Be[f]&&(Be[f].style.opacity=m)}let wl,Ei,Ci;const _l={focus:!0};function Kv(f){if(f!=Ci){let m=f==null,k=Jn.alpha!=1;w.forEach((E,b)=>{let z=m||b==0||b==f;E._focus=m?null:z,k&&qv(b,z?1:Jn.alpha)}),Ci=f,k&&Hr()}}me&&pr&&ht(C0,pe,f=>{de._lock||(ct(f),Ci!=null&&Bn(null,_l,!0,rt.setSeries))});function $n(f,m,k){let E=O[m];k&&(f=f/Te-(E.ori==1?$e:Oe));let b=ye;E.ori==1&&(b=te,f=b-f),E.dir==-1&&(f=b-f);let z=E._min,B=E._max,W=f/b,Z=z+(B-z)*W,ie=E.distr;return ie==3?ii(10,Z):ie==4?Px(Z,E.asinh):Z}function Gv(f,m){let k=$n(f,N,m);return wr(k,t[0],vt,gt)}r.valToIdx=f=>wr(f,t[0]),r.posToIdx=Gv,r.posToVal=$n,r.valToPos=(f,m,k)=>O[m].ori==0?o(f,O[m],k?C:ye,k?h:0):s(f,O[m],k?L:te,k?S:0);function Yv(f){f(r),Hr()}r.batch=Yv,r.setCursor=(f,m,k)=>{ze=f.left,Ae=f.top,Vr(null,m,k)};function Cd(f,m){He(Si,El,It.left=f),He(Si,qi,It.width=m)}function Td(f,m){He(Si,Bi,It.top=f),He(Si,Ki,It.height=m)}let Ti=D.ori==0?Cd:Td,Pi=D.ori==1?Cd:Td;function Qv(){if(me&&Y.live)for(let f=l==2?1:0;f{re[E]=k}):Rx(f.idx)||re.fill(f.idx),Y.idx=re[0]);for(let k=0;k0||l==1&&!at)&&Zv(k,re[k]);me&&Y.live&&Qv(),Qe=!1,m!==!1&&Ot("setLegend")}r.setLegend=lu;function Zv(f,m){let k=w[f],E=f==0&&V==2?Pn:t[f],b;at?b=k.values(r,f,m)??dn:(b=k.value(r,m==null?null:E[m],f,m),b=b==null?dn:{_:b}),Y.values[f]=b}function Vr(f,m,k){Sd=ze,Ed=Ae,[ze,Ae]=de.move(r,ze,Ae),de.show&&(Ko&&Cl(Ko,bt(ze),0,ye,te),Go&&Cl(Go,0,bt(Ae),ye,te));let E,b=vt>gt;wl=ke;let z=D.ori==0?ye:te,B=D.ori==1?ye:te;if(ze<0||Tt==0||b){E=null;for(let W=0;W0&&mt.length>1&&Cl(mt[W],-10,-10,ye,te);pr&&Bn(null,_l,!0,f==null&&rt.setSeries),Y.live&&(re.fill(E),Qe=!0)}else{let W,Z,ie;l==1&&(W=D.ori==0?ze:Ae,Z=$n(W,N),E=wr(Z,t[0],vt,gt),ie=K(t[0][E],D,z,0));for(let U=l==2?1:0;U0&&le.show){let Ne=Ce==null?-10:si(oe(Ce,l==1?O[le.scale]:O[le.facets[1].scale],B,0),1);if(pr&&Ne>=0&&l==1){let De=xt(Ne-Ae);if(De=0?1:-1,On=Xe>=0?1:-1;On==Bt&&(On==1?lt==1?Ce>=Xe:Ce<=Xe:lt==1?Ce<=Xe:Ce>=Xe)&&(wl=De,Ei=U)}else wl=De,Ei=U}}let qe,Wt;if(D.ori==0?(qe=Ee,Wt=Ne):(qe=Ne,Wt=Ee),Qe&&mt.length>1){_x(mt[U],de.points.fill(r,U),de.points.stroke(r,U));let De,lt,Lt,Xe,Bt=!0,On=de.points.bbox;if(On!=null){Bt=!1;let gr=On(r,U);Lt=gr.left,Xe=gr.top,De=gr.width,lt=gr.height}else Lt=qe,Xe=Wt,De=lt=de.points.size(r,U);xx(mt[U],De,lt,Bt),Cl(mt[U],Lt,Xe,ye,te)}}}}if(de.idx=E,de.left=ze,de.top=Ae,Qe&&(Y.idx=E,lu()),It.show&&mr)if(f!=null){let[W,Z]=rt.scales,[ie,U]=rt.match,[le,ge]=f.cursor.sync.scales,Ze=f.cursor.drag;if(yt=Ze._x,wt=Ze._y,yt||wt){let{left:_e,top:Ce,width:Ee,height:Ne}=f.select,qe=f.scales[W].ori,Wt=f.posToVal,De,lt,Lt,Xe,Bt,On=W!=null&&ie(W,le),gr=Z!=null&&U(Z,ge);On&&yt?(qe==0?(De=_e,lt=Ee):(De=Ce,lt=Ne),Lt=O[W],Xe=K(Wt(De,le),Lt,z,0),Bt=K(Wt(De+lt,le),Lt,z,0),Ti(nn(Xe,Bt),xt(Bt-Xe))):Ti(0,z),gr&&wt?(qe==1?(De=_e,lt=Ee):(De=Ce,lt=Ne),Lt=O[Z],Xe=oe(Wt(De,ge),Lt,B,0),Bt=oe(Wt(De+lt,ge),Lt,B,0),Pi(nn(Xe,Bt),xt(Bt-Xe))):Pi(0,B)}else Qo()}else{let W=xt(Sd-xd),Z=xt(Ed-kd);if(D.ori==1){let ge=W;W=Z,Z=ge}yt=Pt.x&&W>=Pt.dist,wt=Pt.y&&Z>=Pt.dist;let ie=Pt.uni;ie!=null?yt&&wt&&(yt=W>=ie,wt=Z>=ie,!yt&&!wt&&(Z>W?wt=!0:yt=!0)):Pt.x&&Pt.y&&(yt||wt)&&(yt=wt=!0);let U,le;yt&&(D.ori==0?(U=vl,le=ze):(U=gl,le=Ae),Ti(nn(U,le),xt(le-U)),wt||Pi(0,B)),wt&&(D.ori==1?(U=vl,le=ze):(U=gl,le=Ae),Pi(nn(U,le),xt(le-U)),yt||Ti(0,z)),!yt&&!wt&&(Ti(0,0),Pi(0,0))}if(Pt._x=yt,Pt._y=wt,f==null){if(k){if(Fd!=null){let[W,Z]=rt.scales;rt.values[0]=W!=null?$n(D.ori==0?ze:Ae,W):null,rt.values[1]=Z!=null?$n(D.ori==1?ze:Ae,Z):null}bi(k0,r,ze,Ae,ye,te,E)}if(pr){let W=k&&rt.setSeries,Z=Jn.prox;Ci==null?wl<=Z&&Bn(Ei,_l,!0,W):wl>Z?Bn(null,_l,!0,W):Ei!=Ci&&Bn(Ei,_l,!0,W)}}m!==!1&&Ot("setCursor")}let vr=null;Object.defineProperty(r,"rect",{get(){return vr==null&&Oi(!1),vr}});function Oi(f=!1){f?vr=null:(vr=x.getBoundingClientRect(),Ot("syncRect",vr))}function Pd(f,m,k,E,b,z,B){de._lock||mr&&f!=null&&f.movementX==0&&f.movementY==0||(iu(f,m,k,E,b,z,B,!1,f!=null),f!=null?Vr(null,!0,!0):Vr(m,!0,!1))}function iu(f,m,k,E,b,z,B,W,Z){if(vr==null&&Oi(!1),ct(f),f!=null)k=f.clientX-vr.left,E=f.clientY-vr.top;else{if(k<0||E<0){ze=-10,Ae=-10;return}let[ie,U]=rt.scales,le=m.cursor.sync,[ge,Ze]=le.values,[_e,Ce]=le.scales,[Ee,Ne]=rt.match,qe=m.axes[0].side%2==1,Wt=D.ori==0?ye:te,De=D.ori==1?ye:te,lt=qe?z:b,Lt=qe?b:z,Xe=qe?E:k,Bt=qe?k:E;if(_e!=null?k=Ee(ie,_e)?u(ge,O[ie],Wt,0):-10:k=Wt*(Xe/lt),Ce!=null?E=Ne(U,Ce)?u(Ze,O[U],De,0):-10:E=De*(Bt/Lt),D.ori==1){let On=k;k=E,E=On}}Z&&((k<=1||k>=ye-1)&&(k=Gr(k,ye)),(E<=1||E>=te-1)&&(E=Gr(E,te))),W?(xd=k,kd=E,[vl,gl]=de.move(r,k,E)):(ze=k,Ae=E)}const Od={width:0,height:0,left:0,top:0};function Qo(){Yo(Od,!1)}let bd,Nd,Md,Rd;function Ld(f,m,k,E,b,z,B){mr=!0,yt=wt=Pt._x=Pt._y=!1,iu(f,m,k,E,b,z,B,!0,!1),f!=null&&(ht(Fu,$c,jd,!1),bi(S0,r,vl,gl,ye,te,null));let{left:W,top:Z,width:ie,height:U}=It;bd=W,Nd=Z,Md=ie,Rd=U,Qo()}function jd(f,m,k,E,b,z,B){mr=Pt._x=Pt._y=!1,iu(f,m,k,E,b,z,B,!1,!0);let{left:W,top:Z,width:ie,height:U}=It,le=ie>0||U>0,ge=bd!=W||Nd!=Z||Md!=ie||Rd!=U;if(le&&ge&&Yo(It),Pt.setScale&&le&&ge){let Ze=W,_e=ie,Ce=Z,Ee=U;if(D.ori==1&&(Ze=Z,_e=U,Ce=W,Ee=ie),yt&&yl(N,$n(Ze,N),$n(Ze+_e,N)),wt)for(let Ne in O){let qe=O[Ne];Ne!=N&&qe.from==null&&qe.min!=ke&&yl(Ne,$n(Ce+Ee,Ne),$n(Ce,Ne))}Qo()}else de.lock&&(de._lock=!de._lock,de._lock||Vr(null,!0,!1));f!=null&&(ue(Fu,$c),bi(Fu,r,ze,Ae,ye,te,null))}function Jv(f,m,k,E,b,z,B){if(de._lock)return;ct(f);let W=mr;if(mr){let Z=!0,ie=!0,U=10,le,ge;D.ori==0?(le=yt,ge=wt):(le=wt,ge=yt),le&&ge&&(Z=ze<=U||ze>=ye-U,ie=Ae<=U||Ae>=te-U),le&&Z&&(ze=ze{let b=rt.match[2];k=b(r,m,k),k!=-1&&Bn(k,E,!0,!1)},de.show&&(ht(S0,x,Ld),ht(k0,x,Pd),ht(E0,x,f=>{ct(f),Oi(!1)}),ht(C0,x,Jv),ht(T0,x,zd),Kc.add(r),r.syncRect=Oi);const Zo=r.hooks=e.hooks||{};function Ot(f,m,k){f in Zo&&Zo[f].forEach(E=>{E.call(null,r,m,k)})}(e.plugins||[]).forEach(f=>{for(let m in f.hooks)Zo[m]=(Zo[m]||[]).concat(f.hooks[m])});const Dd=(f,m,k)=>k,rt=it({key:null,setSeries:!1,filters:{pub:A0,sub:A0},scales:[N,w[1]?w[1].scale:null],match:[D0,D0,Dd],values:[null,null]},de.sync);rt.match.length==2&&rt.match.push(Dd),de.sync=rt;const Fd=rt.key,ou=gv(Fd);function bi(f,m,k,E,b,z,B){rt.filters.pub(f,m,k,E,b,z,B)&&ou.pub(f,m,k,E,b,z,B)}ou.sub(r);function Xv(f,m,k,E,b,z,B){rt.filters.sub(f,m,k,E,b,z,B)&&xl[f](null,m,k,E,b,z,B)}r.pub=Xv;function eg(){ou.unsub(r),Kc.delete(r),hn.clear(),Uc(ca,Wl,Ad),c.remove(),pe==null||pe.remove(),Ot("destroy")}r.destroy=eg;function su(){Ot("init",e,t),md(t||e.data,!1),se[N]?tu(N,se[N]):Va(),ut=It.show,he=Qe=!0,We(e.width,e.height)}return w.forEach($r),T.forEach(Rv),n?n instanceof HTMLElement?(n.appendChild(c),su()):n(r,su):su(),r}Et.assign=it;Et.fmtNum=sd;Et.rangeNum=fa;Et.rangeLog=La;Et.rangeAsinh=id;Et.orient=hl;Et.pxRatio=Te;Et.join=Fx;Et.fmtDate=ad,Et.tzDate=Yx;Et.sync=gv;{Et.addGap=Lk,Et.clipGaps=Aa;let e=Et.paths={points:Sv};e.linear=Cv,e.stepped=Ak,e.bars=Dk,e.spline=Ik}const Qk=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"}));function Zk(e,t){let[n,r]=Z3(e,{formatSubMilliseconds:!0,compact:t}).split(" ").slice(0,2);return n.match(/[0-9]+s/)&&!t?(n=n.replace("s","."),r?r=r.substring(0,1):r="0",n+r+"s"):(r&&(n+=" "+r),n)}function ih(e){return K3(e)}var Jk=Et.fmtDate("{YYYY}-{MM}-{DD} {HH}:{mm}:{ss}");function Ba(e,t,n=!1){switch(e){case Kr.duration:return Zk(t,n);case Kr.bytes:return ih(t);case Kr.bps:return ih(t)+"/s";case Kr.counter:return g0(t).format("0.[0]a");case Kr.rps:return g0(t).format("0.[00]a")+"/s";case Kr.timestamp:return Jk(new Date(t*1e3));default:return isNaN(t)||t==null?"0":t.toFixed(2)}}function Xk(e){return function(t,n,r,l){return l==null?"--":n==null?"":Ba(e,n)}}var bv=class{constructor(e,t,n){ve(this,"samples");ve(this,"series");const r=t.series.map(l=>l.query);this.samples=e.samples.select(r),this.samples.empty||(this.series=this.buildSeries(t.series,n))}get empty(){return this.samples.empty}get data(){const e=new Array;for(let t=0;t0&&(i=e[r].legend),n.push({stroke:t[l].stroke,fill:t[l].fill,value:Xk(this.samples[r].unit),points:{show:!1},label:i,scale:this.samples[r].unit})}return n}};function eS(e){let t;function n(i){t=document.createElement("div");const o={display:"none",position:"absolute",padding:"1rem",border:"1px solid #7b65fa",zIndex:"10",pointerEvents:"none",fontSize:"1.25rem"};Object.assign(t.style,o),i.over.appendChild(t),i.over.onmouseleave=()=>{t.style.display="none"},i.over.onmouseenter=()=>{t.style.display="block"}}function r(i){l(i)}function l(i){const o=i.over.getBoundingClientRect();t.style.background=e;const s=tS(i);if(!s){t.style.display="none";return}t.innerHTML=s;const{left:u,top:a}=i.cursor,c=u??0,p=a??0;t.innerHTML=s,ci.over.focus()}}}function tS(e){const{idx:t}=e.cursor;if(t==null)return"";let n;e.legend.values?n=e.legend.values[0]._:n="";let r=``;for(let l=1;l`}return r+="
${n}
${nS(i,o)}${s}${u}
",r}function nS(e,t){return``}var Fs=(e=>(e.chart="chart",e.stat="stat",e.summary="summary",e))(Fs||{}),rS=class{constructor(e,t){ve(this,"view");ve(this,"metrics");this.metrics=t.metrics;const n=e.series.map(r=>r.query);this.view=t.summary.select(n)}get empty(){return this.view.empty}get cols(){return this.view.aggregates.length}get header(){return new Array("metric",...this.view.aggregates.map(e=>e))}get body(){const e=new Array;for(let t=0;tthis.format(this.view[t],r))),e.push(n)}return e}format(e,t){var n;const r=this.metrics.unit(((n=e.metric)==null?void 0:n.name)??"",t);return Ba(r,e.values[t],!0)}};function lS(e,t){for(let n=0;nr.query)).empty}function sS(e,t){return t.summary.select(e.series.map(r=>r.query)).empty}var aS=zo({conditions:void 0,styles:{borderRadius:{values:{true:{defaultClass:"_1c9nzq10"},false:{defaultClass:"_1c9nzq11"}}}}}),uS="_1c9nzq14",cS="_1c9nzq12",fS="_1c9nzq13";const dS=({children:e,title:t,isOpen:n,onClick:r})=>j.jsxs("div",{children:[j.jsxs(st,{as:"button",align:"center","aria-expanded":n,className:Yn(cS,aS({borderRadius:String(n)})),width:"100%",onClick:r,children:[n?j.jsx(Fn,{name:"chevron-up"}):j.jsx(Fn,{name:"chevron-down"}),j.jsx("h2",{className:fS,children:t})]}),n&&j.jsx("div",{className:uS,children:e})]});var pS=zo({conditions:{defaultCondition:"xs",conditionNames:["xs","sm","md","lg","xl","xxl"],responsiveArray:void 0},styles:{gridColumn:{values:{1:{conditions:{xs:"ag5hlo6",sm:"ag5hlo7",md:"ag5hlo8",lg:"ag5hlo9",xl:"ag5hloa",xxl:"ag5hlob"},defaultClass:"ag5hlo6"},2:{conditions:{xs:"ag5hloc",sm:"ag5hlod",md:"ag5hloe",lg:"ag5hlof",xl:"ag5hlog",xxl:"ag5hloh"},defaultClass:"ag5hloc"},3:{conditions:{xs:"ag5hloi",sm:"ag5hloj",md:"ag5hlok",lg:"ag5hlol",xl:"ag5hlom",xxl:"ag5hlon"},defaultClass:"ag5hloi"},4:{conditions:{xs:"ag5hloo",sm:"ag5hlop",md:"ag5hloq",lg:"ag5hlor",xl:"ag5hlos",xxl:"ag5hlot"},defaultClass:"ag5hloo"},5:{conditions:{xs:"ag5hlou",sm:"ag5hlov",md:"ag5hlow",lg:"ag5hlox",xl:"ag5hloy",xxl:"ag5hloz"},defaultClass:"ag5hlou"},6:{conditions:{xs:"ag5hlo10",sm:"ag5hlo11",md:"ag5hlo12",lg:"ag5hlo13",xl:"ag5hlo14",xxl:"ag5hlo15"},defaultClass:"ag5hlo10"},7:{conditions:{xs:"ag5hlo16",sm:"ag5hlo17",md:"ag5hlo18",lg:"ag5hlo19",xl:"ag5hlo1a",xxl:"ag5hlo1b"},defaultClass:"ag5hlo16"},8:{conditions:{xs:"ag5hlo1c",sm:"ag5hlo1d",md:"ag5hlo1e",lg:"ag5hlo1f",xl:"ag5hlo1g",xxl:"ag5hlo1h"},defaultClass:"ag5hlo1c"},9:{conditions:{xs:"ag5hlo1i",sm:"ag5hlo1j",md:"ag5hlo1k",lg:"ag5hlo1l",xl:"ag5hlo1m",xxl:"ag5hlo1n"},defaultClass:"ag5hlo1i"},10:{conditions:{xs:"ag5hlo1o",sm:"ag5hlo1p",md:"ag5hlo1q",lg:"ag5hlo1r",xl:"ag5hlo1s",xxl:"ag5hlo1t"},defaultClass:"ag5hlo1o"},11:{conditions:{xs:"ag5hlo1u",sm:"ag5hlo1v",md:"ag5hlo1w",lg:"ag5hlo1x",xl:"ag5hlo1y",xxl:"ag5hlo1z"},defaultClass:"ag5hlo1u"},12:{conditions:{xs:"ag5hlo20",sm:"ag5hlo21",md:"ag5hlo22",lg:"ag5hlo23",xl:"ag5hlo24",xxl:"ag5hlo25"},defaultClass:"ag5hlo20"}}}}}),oh={root:"ag5hlo1",variants:zo({conditions:void 0,styles:{gap:{values:{1:{defaultClass:"ag5hlo2"},2:{defaultClass:"ag5hlo3"},3:{defaultClass:"ag5hlo4"},4:{defaultClass:"ag5hlo5"}}}}})};function hS({as:e="div",gap:t=3,children:n,className:r,...l},i){return j.jsx(e,{ref:i,className:Yn(r,oh.root,oh.variants({gap:t})),...l,children:n})}function mS({children:e,as:t="div",className:n,xs:r=12,sm:l,md:i,lg:o,xl:s,xxl:u,...a},c){return j.jsx(t,{ref:c,className:Yn(n,pS({gridColumn:{xs:r,sm:l,md:i,lg:o,xl:s,xxl:u}})),...a,children:e})}const $a=Object.assign($.forwardRef(hS),{Column:$.forwardRef(mS)});var Nv={exports:{}};const vS=lg(Qk);(function(e,t){(function(r,l){e.exports=l($,vS)})(self,(n,r)=>(()=>{var l={"./common/index.ts":(u,a,c)=>{c.r(a),c.d(a,{dataMatch:()=>g,optionsUpdateState:()=>d});var p=function(_,x){var P={};for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&x.indexOf(y)<0&&(P[y]=_[y]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,y=Object.getOwnPropertySymbols(_);v{u.exports=n},uplot:u=>{u.exports=r}},i={};function o(u){var a=i[u];if(a!==void 0)return a.exports;var c=i[u]={exports:{}};return l[u](c,c.exports,o),c.exports}o.n=u=>{var a=u&&u.__esModule?()=>u.default:()=>u;return o.d(a,{a}),a},o.d=(u,a)=>{for(var c in a)o.o(a,c)&&!o.o(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:a[c]})},o.o=(u,a)=>Object.prototype.hasOwnProperty.call(u,a),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var s={};return(()=>{/*!*******************************!*\ + !*** ./react/uplot-react.tsx ***! + \*******************************/o.r(s),o.d(s,{default:()=>g});var u=o("react"),a=o.n(u),c=o("uplot"),p=o.n(c),d=o("./common/index.ts");function g(_){var x=_.options,P=_.data,y=_.target,v=_.onDelete,w=v===void 0?function(){}:v,T=_.onCreate,O=T===void 0?function(){}:T,M=_.resetScales,N=M===void 0?!0:M,R=(0,u.useRef)(null),I=(0,u.useRef)(null);function A(K){K&&(w(K),K.destroy(),R.current=null)}function D(){var K=new(p())(x,P,y||I.current);R.current=K,O(K)}(0,u.useEffect)(function(){return D(),function(){A(R.current)}},[]);var V=(0,u.useRef)({options:x,data:P,target:y}).current;return(0,u.useEffect)(function(){if(V.options!==x){var K=(0,d.optionsUpdateState)(V.options,x);!R.current||K==="create"?(A(R.current),D()):K==="update"&&R.current.setSize({width:x.width,height:x.height})}return V.data!==P&&(R.current?(0,d.dataMatch)(V.data,P)||(N?R.current.setData(P,!0):(R.current.setData(P,!1),R.current.redraw())):D()),V.target!==y&&(A(R.current),D()),function(){V.options=x,V.data=P,V.target=y}},[x,P,y,N]),y?null:a().createElement("div",{ref:I})}})(),s=s.default,s})())})(Nv);var gS=Nv.exports;const Mv=ha(gS);var yS="_14dhllh0",wS="_14dhllh1",_S="_14dhllh3",xS="_14dhllh2";const kS=1,SS=70,ES=250,CS=Et.sync("chart"),TS=[[3600*24*365,"0",null,null,null,null,null,null,1],[3600*24*28,"0",null,null,null,null,null,null,1],[3600*24,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[3600,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[60,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[1,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1],[.001,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1]],PS=e=>({tooltip:e==="dark"?e0[900]:ju.white,grid:e==="dark"?e0[700]:M1[300],axes:e==="dark"?ju.white:ju.black}),OS=(e,t)=>t===0?TS:(n,r)=>r.map(l=>Ba(e,l)),bS=(e,t)=>(n,r)=>{const l={stroke:e.axes,grid:{stroke:e.grid,width:1},ticks:{stroke:e.grid},values:OS(n,r),scale:n,space:n==="timestamp"?60:40};return r===2&&t>2&&(l.side=kS),r!==0&&(l.size=SS),l},NS=({height:e=ES,hooks:t,plot:n,scales:r,theme:l,width:i})=>{const o=PS(l),s=n.samples.units,u=s.map(bS(o,s.length));return{class:xS,width:i,height:e,hooks:t,cursor:{sync:{key:CS.key}},legend:{live:!1},scales:r,series:n.series,axes:u,plugins:[eS(o.tooltip)]}},MS=p2(["show"]),RS=(e=[],t=[])=>e.map((n,r)=>MS(n,t[r])),LS=e=>(e==null?void 0:e.type)==="dblclick",jS=e=>e!=null&&!e.ctrlKey&&!e.metaKey,zS=e=>{const[t,n]=$.useState(e);return[RS(e,t),i=>{n(i.series)}]},AS=({plot:e,theme:t,width:n})=>{const{timeRange:r,setTimeRange:l}=Gf(),[i,o]=zS(e.series),s={...e,series:i},u={timestamp:{min:r==null?void 0:r.from,max:r==null?void 0:r.to}};return NS({hooks:{setCursor:[d=>{LS(d.cursor.event)&&l(void 0)}],setSelect:[d=>{if(!jS(d.cursor.event))return;const g=d.posToVal(d.select.left,"timestamp"),_=d.posToVal(d.select.left+d.select.width,"timestamp");l({from:g,to:_})}],setSeries:[o]},plot:s,scales:u,theme:t,width:n})};function DS({panel:e,container:t}){const n=pl(),{theme:r}=pi(),[l,{width:i}]=P1(),o=new bv(n,e,R1(r)),s=!o.empty&&o.data[0].length>1,u=s?o.data:[],a=AS({plot:o,theme:r,width:i}),c=t?$.Fragment:Ra;function p(d){const g=r=="dark"?"#60606080":"#d0d0d080",_=d.root.querySelector(".u-select");_&&(_.style.background=g)}return j.jsx($a.Column,{xs:12,lg:e.fullWidth?12:6,children:j.jsx(c,{children:j.jsxs("div",{ref:l,children:[j.jsxs(st,{align:"center",gap:1,children:[j.jsx("h3",{className:_S,children:e.title}),j.jsx(Bc,{title:e.summary,children:j.jsx(Fn,{name:"info",width:"20px",height:"20px"})})]}),j.jsxs("div",{className:yS,children:[!s&&j.jsx("p",{className:wS,children:"no data"}),j.jsx(Mv,{options:a,data:u,onCreate:p})]})]})})})}var FS="ova0r31",IS="ova0r32",BS="ova0r30";const $S=32,HS=({digest:e,panel:t,plot:n,width:r})=>{const l=t.series[0].query,i=e.samples.query(l);let o;return i&&Array.isArray(i.values)&&i.values.length!==0&&(o=Ba(i.unit,Number(i.values.slice(-1)),!0)),{class:BS,width:r,height:$S,title:o,series:n.series,axes:[{show:!1},{show:!1}],legend:{show:!1},cursor:{show:!1}}};function VS({panel:e}){const t=pl(),{theme:n}=pi(),[r,{width:l}]=P1(),i=new bv(t,e,R1(n));if(i.empty)return null;const o=HS({digest:t,panel:e,plot:i,width:l});return j.jsx($a.Column,{xs:6,md:4,lg:2,children:j.jsx(Ra,{className:FS,children:j.jsxs(st,{direction:"column",justify:"end",gap:0,height:"100%",children:[j.jsx("p",{className:IS,children:e.title}),j.jsx("div",{ref:r,children:j.jsx(Mv,{options:o,data:i.data})})]})})})}var US="_12owwid0",WS="_12owwid4",qS="_12owwid1",KS={thead:"_12owwid2",tbody:"_12owwid3"};function GS({children:e,...t}){return j.jsx("table",{className:US,...t,children:e})}function YS({children:e,...t}){return j.jsx("thead",{...t,children:e})}function QS({children:e,...t}){return j.jsx("tbody",{...t,children:e})}function ZS({children:e,...t}){return j.jsx("th",{className:qS,...t,children:e})}function JS({children:e,isHead:t=!1,...n}){return j.jsx("tr",{className:KS[t?"thead":"tbody"],...n,children:e})}function XS({children:e,...t}){return j.jsx("td",{className:WS,...t,children:e})}function e5({children:e,...t}){return j.jsx("tfoot",{...t,children:e})}const Ur=Object.assign(GS,{Body:QS,Cell:XS,Footer:e5,Head:YS,Header:ZS,Row:JS});var t5="_57i9sh1",n5="_57i9sh0";var r5="_1jb2mvv0",l5="_1jb2mvv2",i5="_1jb2mvv1";function o5({children:e,className:t,title:n,...r},l){return j.jsxs(Ra,{ref:l,className:Yn(r5,t),...r,children:[n&&j.jsx("h3",{className:i5,children:n}),j.jsx("div",{className:l5,children:e})]})}const s5=$.forwardRef(o5);function a5({panel:e}){const t=pl(),n=new rS(e,t);if(n.empty)return j.jsx("div",{});const r=n.view.aggregates.length,l=r>6?12:r>1?6:3,i=r>6||r>1?12:6;return j.jsx($a.Column,{xs:12,md:i,lg:l,children:j.jsx(s5,{className:n5,title:e.title,children:j.jsx("div",{className:t5,children:j.jsxs(Ur,{children:[j.jsx(Ur.Head,{children:j.jsx(Ur.Row,{isHead:!0,children:n.header.map((o,s)=>j.jsx(Ur.Header,{align:s==0?"left":"right",children:o},e.id+"header"+o))})}),j.jsx(Ur.Body,{children:n.body.map((o,s)=>j.jsx(Ur.Row,{children:o.map((u,a)=>j.jsx(Ur.Cell,{align:a==0?"left":"right",children:u},e.id+"_value_"+s+"_"+a))},e.id+"row"+s))})]})})},e.id)})}function u5({container:e,panel:t}){switch(t.kind){case Fs.chart:return j.jsx(DS,{panel:t,container:e});case Fs.stat:return j.jsx(VS,{panel:t});case Fs.summary:return j.jsx(a5,{panel:t});default:return null}}var c5="_1ls5syl0";function sh({container:e,section:t}){return j.jsx($a,{gap:e?4:3,children:t.panels.map(n=>j.jsx(u5,{panel:n,container:e},n.id))})}function f5({section:e}){const[t,n]=$.useState(!0),r=pl();return lS(e,r)?null:e.title?j.jsx(st,{direction:"column",children:j.jsx(dS,{title:e.title,isOpen:t,onClick:()=>n(!t),children:j.jsx(sh,{container:!0,section:e})})}):j.jsxs(st,{direction:"column",children:[e.summary&&j.jsx("p",{className:c5,children:e.summary}),j.jsx(sh,{section:e})]})}var d5="_1t22owt0",p5="_1t22owt1";function h5(){const e=pl(),{themeClassName:t}=pi(),[n,r]=$.useState(0),l=!!e.samples.length;return j.jsxs(st,{className:`${t} ${d5}`,direction:"column",gap:0,children:[j.jsx(D3,{config:e.config,tab:n,onTabChange:r}),j.jsx(st,{as:"main",className:p5,direction:"column",grow:l?0:1,children:j.jsx($3,{isLoading:!l,message:"Loading...",children:e.config.tabs.map((i,o)=>j.jsx(m5,{active:n,idx:o,children:i.sections.map(s=>j.jsx(f5,{section:s},s.id))},i.id))})}),j.jsx(V2,{})]})}function m5({children:e,active:t,idx:n}){return t!==n?null:j.jsx(st,{direction:"column",gap:3,children:e})}const v5=new URLSearchParams(window.location.search).get("endpoint")||"http://localhost:5665/",g5=document.getElementById("root");Vu.createRoot(g5).render(j.jsx(Fw,{endpoint:v5+"events",children:j.jsx(Vw,{children:j.jsx(Uw,{children:j.jsx(h5,{})})})})); diff --git a/dashboard/assets/packages/ui/dist/assets/rewind_time-def68db1.svg b/dashboard/assets/packages/ui/dist/assets/rewind_time-def68db1.svg new file mode 100644 index 0000000..b9d8d29 --- /dev/null +++ b/dashboard/assets/packages/ui/dist/assets/rewind_time-def68db1.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/dashboard/assets/packages/ui/dist/index.html b/dashboard/assets/packages/ui/dist/index.html index 3ea1590..9fafd4c 100644 --- a/dashboard/assets/packages/ui/dist/index.html +++ b/dashboard/assets/packages/ui/dist/index.html @@ -11,8 +11,8 @@ k6 dashboard - - + + diff --git a/dashboard/assets/packages/ui/src/App/App.tsx b/dashboard/assets/packages/ui/src/App/App.tsx index 275269b..682da72 100644 --- a/dashboard/assets/packages/ui/src/App/App.tsx +++ b/dashboard/assets/packages/ui/src/App/App.tsx @@ -8,6 +8,7 @@ import "theme/global.css" import { useDigest } from "store/digest" import { useTheme } from "store/theme" import { Flex } from "components/Flex" +import { Footer } from "components/Footer/Footer" import { Header } from "components/Header" import { LoadingContainer } from "components/LoadingContainer" import { Section } from "components/Section/Section" @@ -35,6 +36,7 @@ export default function App() { ))} +