@perses-dev/prometheus-plugin 0.53.2 → 0.53.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/__mf/js/Prometheus.780ccd9b.js +5 -0
  2. package/__mf/js/async/{6441.38c30276.js → 2275.95fa6219.js} +5 -5
  3. package/__mf/js/async/3391.eced295d.js +73 -0
  4. package/__mf/js/async/4368.38ebfc12.js +2 -0
  5. package/__mf/js/async/4421.b5492f46.js +1 -0
  6. package/__mf/js/async/6714.fd02e782.js +2 -0
  7. package/__mf/js/async/7239.2619666a.js +1 -0
  8. package/__mf/js/async/8706.70f829fc.js +1 -0
  9. package/__mf/js/async/__federation_expose_PrometheusDatasource.8b4b16ca.js +1 -0
  10. package/__mf/js/async/__federation_expose_PrometheusExplorer.8faab52f.js +1 -0
  11. package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.baed70be.js +1 -0
  12. package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.86fed903.js +1 -0
  13. package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.8eb55b7f.js +1 -0
  14. package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.66df70ad.js +1 -0
  15. package/__mf/js/main.34d1997e.js +5 -0
  16. package/lib/cjs/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js +8 -6
  17. package/lib/cjs/explore/PrometheusMetricsFinder/filter/FilterInputs.js +16 -0
  18. package/lib/cjs/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js +20 -9
  19. package/lib/cjs/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +16 -2
  20. package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.d.ts.map +1 -1
  21. package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js +8 -6
  22. package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js.map +1 -1
  23. package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.d.ts.map +1 -1
  24. package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js +16 -0
  25. package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js.map +1 -1
  26. package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.d.ts.map +1 -1
  27. package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js +20 -9
  28. package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js.map +1 -1
  29. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.d.ts.map +1 -1
  30. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +16 -2
  31. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js.map +1 -1
  32. package/mf-manifest.json +57 -57
  33. package/mf-stats.json +59 -59
  34. package/package.json +8 -8
  35. package/__mf/js/Prometheus.7d2f1afa.js +0 -5
  36. package/__mf/js/async/1101.9cf067ee.js +0 -73
  37. package/__mf/js/async/4368.5aeca58a.js +0 -2
  38. package/__mf/js/async/4421.39621b12.js +0 -1
  39. package/__mf/js/async/537.82230699.js +0 -1
  40. package/__mf/js/async/5876.1976752d.js +0 -2
  41. package/__mf/js/async/8706.a36614fb.js +0 -1
  42. package/__mf/js/async/__federation_expose_PrometheusDatasource.71aecfaf.js +0 -1
  43. package/__mf/js/async/__federation_expose_PrometheusExplorer.80dd9b47.js +0 -1
  44. package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.86bf76a6.js +0 -1
  45. package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e5e35f24.js +0 -1
  46. package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.b2270799.js +0 -1
  47. package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.82b19cf2.js +0 -1
  48. package/__mf/js/main.b9fe0e65.js +0 -5
  49. /package/__mf/js/async/{6441.38c30276.js.LICENSE.txt → 2275.95fa6219.js.LICENSE.txt} +0 -0
  50. /package/__mf/js/async/{1101.9cf067ee.js.LICENSE.txt → 3391.eced295d.js.LICENSE.txt} +0 -0
  51. /package/__mf/js/async/{4368.5aeca58a.js.LICENSE.txt → 4368.38ebfc12.js.LICENSE.txt} +0 -0
  52. /package/__mf/js/async/{5876.1976752d.js.LICENSE.txt → 6714.fd02e782.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- (self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["4421"],{76439:function(e,t,r){"use strict";r.d(t,{Z:()=>p});var o=r(54538),n=r(96858),i=r(49267),a=r(24105);let l={...o}.useSyncExternalStore;function c(e={}){let{themeId:t}=e;return function(e,r={}){let c=(0,a.Z)();c&&t&&(c=c[t]||c);let p="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:u=!1,matchMedia:f=p?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:y=!1}=(0,i.Z)({name:"MuiUseMediaQuery",props:r,theme:c}),d="function"==typeof e?e(c):e;return(void 0!==l?function(e,t,r,n,i){let a=o.useCallback(()=>t,[t]),c=o.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(null!==n){let{matches:t}=n(e);return()=>t}return a},[a,e,n,i,r]),[p,u]=o.useMemo(()=>{if(null===r)return[a,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[a,r,e]);return l(u,p,c)}:function(e,t,r,i,a){let[l,c]=o.useState(()=>a&&r?r(e).matches:i?i(e).matches:t);return(0,n.Z)(()=>{if(!r)return;let t=r(e),o=()=>{c(t.matches)};return o(),t.addEventListener("change",o),()=>{t.removeEventListener("change",o)}},[e,r]),l})(d=d.replace(/^@media( ?)/m,""),u,f,s,y)}}c();let p=c({themeId:r(92994).Z})},73223:function(e,t,r){"use strict";r.r(t),r.d(t,{ExplorerManagerProvider:()=>S,explorerQueryConfig:()=>D,useExplorerQueryParams:()=>M,ExploreManager:()=>j,ViewExplore:()=>I,useExplorerManagerContext:()=>w,ExploreToolbar:()=>v});var o=r(24246),n=r(36372),i=r(86720),a=r(66694),l=r(95417),c=r(11269),p=r(54538),u=r(76439),f=r(25283),s=r(48565),y=r(51781),d=r(49408),h=r(84954),m=r(84974),g=r(12932),b=r(94776);let v=e=>{let{exploreTitleComponent:t}=e,r=(0,u.Z)((0,b.Z)().breakpoints.up("lg"));return(0,o.jsx)(f.Z,{"data-testid":"explore-toolbar",children:(0,o.jsxs)(n.Z,{sx:{display:"flex",width:"100%"},children:[t,(0,o.jsx)(f.Z,{direction:"row",spacing:1,ml:"auto",flexWrap:r?"nowrap":"wrap-reverse",justifyContent:"end",children:(0,o.jsx)(i.TimeRangeControls,{})})]})})},x=(0,p.createContext)(void 0);function S({children:e,store:t}){let[r,n]=(0,p.useState)({}),i=(0,p.useState)({explorer:void 0,data:{}}),[a,l]=t||i,{explorer:c,data:u}=a;return(0,o.jsx)(x.Provider,{value:{explorer:c,data:u,setExplorer:function(e){c&&(r[c]={data:u},n(r));let t=r[e]??{data:{}};l({explorer:e,data:t.data})},setData:function(e){l({explorer:c,data:e})}},children:e})}function w(){let e=(0,p.useContext)(x);if(void 0===e)throw Error("No ExplorerManagerContext found. Did you forget a Provider?");return e}function j(e){let{exploreTitleComponent:t}=e,{explorer:r,setExplorer:a}=w(),l=(0,i.useListPluginMetadata)(["Explore"]),c=(0,u.Z)("(max-width: 768px)"),[b,x]=(0,p.useState)(!1),S=(0,p.useMemo)(()=>Object.fromEntries(l.data?.map(e=>[`${e.module.name}-${e.spec.name}`,e])??[]),[l.data]);(0,p.useEffect)(()=>{let e=Object.keys(S);!r&&e?.[0]&&a(e[0])},[S,r,a]);let j=r?S[r]:void 0;return r?(0,o.jsxs)(f.Z,{sx:{width:"100%"},px:2,pb:2,pt:1.5,gap:1,children:[(0,o.jsx)(v,{exploreTitleComponent:t}),(0,o.jsxs)(f.Z,{direction:c?"column":"row",gap:2,sx:{width:"100%"},children:[(0,o.jsxs)(f.Z,{sx:{borderRight:+!c,borderBottom:+!!c,borderColor:"divider",minWidth:b?15:100},children:[(0,o.jsx)(n.Z,{sx:{position:"relative",height:30,display:c?"none":void 0},"test-id":"qdqwd",children:(0,o.jsx)(s.Z,{title:b?"Expand explorer tabs":"Collapse explorer tabs","aria-label":b?"Expand explorer tabs":"Collapse explorer tabs",variant:"text",sx:{position:"absolute",right:-15,zIndex:1,padding:.5,minWidth:"auto",backgroundColor:e=>e.palette.background.default},onClick:()=>x(!b),children:b?(0,o.jsx)(m.default,{}):(0,o.jsx)(g.default,{})})}),(0,o.jsx)(y.Z,{orientation:c?"horizontal":"vertical",value:r,onChange:(e,t)=>a(t),variant:c?"fullWidth":"scrollable",sx:{display:b?"none":"flex"},children:l.data?.sort((e,t)=>e.spec.display.name.localeCompare(t.spec.display.name)).map(e=>(0,o.jsx)(d.Z,{value:`${e.module.name}-${e.spec.name}`,label:e.spec.display.name,sx:{padding:.5}},`${e.module.name}-${e.spec.name}`))})]}),(0,o.jsx)(h.Z,{sx:{padding:"10px",width:"100%"},children:j&&(0,o.jsx)(i.PluginLoaderComponent,{plugin:{name:j.spec.name,moduleName:j.module.name}},`${j.module.name}-${j.spec.name}`)})]})]}):(0,o.jsx)("div",{children:"No explorer plugin available"})}var A=r(51564);let P={explorer:(0,A.withDefault)(A.StringParam,void 0),data:(0,A.withDefault)(A.JsonParam,{})};function O({children:e}){let[t,r]=(0,A.useQueryParams)(P);return(0,o.jsx)(S,{store:[t,r],children:e})}function E(e){let{exploreTitleComponent:t}=e,r=(0,l.useChartsTheme)();return(0,o.jsx)(n.Z,{sx:{flexGrow:1,overflowX:"hidden",overflowY:"auto",display:"flex",flexDirection:"column"},children:(0,o.jsx)(l.ChartsProvider,{chartsTheme:r,enablePinning:!1,children:(0,o.jsx)(O,{children:(0,o.jsx)(j,{exploreTitleComponent:t})})})})}function I(e){let{datasourceApi:t,externalVariableDefinitions:r,sx:p,exploreTitleComponent:u,...f}=e,s=(0,i.useInitialTimeRange)(a.U),y=(0,i.useInitialRefreshInterval)(a.Q);return(0,o.jsx)(c.DatasourceStoreProvider,{datasourceApi:t,children:(0,o.jsx)(i.TimeRangeProviderWithQueryParams,{initialTimeRange:s,initialRefreshInterval:y,children:(0,o.jsx)(c.VariableProvider,{externalVariableDefinitions:r,children:(0,o.jsx)(n.Z,{sx:(0,l.combineSx)({display:"flex",width:"100%",height:"100%",position:"relative",overflow:"hidden"},p),...f,children:(0,o.jsx)(l.ErrorBoundary,{FallbackComponent:l.ErrorAlert,children:(0,o.jsx)(E,{exploreTitleComponent:u})})})})})})}var R=r(8139);let D={refresh:i.TimeRangeParam,start:i.TimeRangeParam,end:i.TimeRangeParam,explorer:A.StringParam,data:A.JsonParam};function M(e){let[t]=(0,A.useQueryParams)(D,{updateType:"replaceIn"});return(0,R.stringify)((0,A.encodeQueryParams)(D,{...t,...e}))}},6088:function(e,t,r){"use strict";var o=r(20132),n=r(52453),i=r(31720);e.exports=r(68273)||o.call(i,n)},52453:function(e){"use strict";e.exports=Function.prototype.apply},31720:function(e){"use strict";e.exports=Function.prototype.call},11519:function(e,t,r){"use strict";var o=r(20132),n=r(31805),i=r(31720),a=r(6088);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return a(o,i,e)}},68273:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},75343:function(e,t,r){"use strict";var o=r(68750),n=r(11519),i=n([o("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=o(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?n([r]):r}},97755:function(e,t,r){"use strict";var o,n=r(11519),i=r(77502);try{o=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!o&&i&&i(Object.prototype,"__proto__"),l=Object,c=l.getPrototypeOf;e.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof c&&function(e){return c(null==e?e:l(e))}},51544:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},73573:function(e){"use strict";e.exports=EvalError},85513:function(e){"use strict";e.exports=Error},77679:function(e){"use strict";e.exports=RangeError},39269:function(e){"use strict";e.exports=ReferenceError},74329:function(e){"use strict";e.exports=SyntaxError},31805:function(e){"use strict";e.exports=TypeError},99491:function(e){"use strict";e.exports=URIError},19767:function(e){"use strict";e.exports=Object},68458:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,o=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},n=function(e,t){for(var r=[],o=t||0,n=0;o<e.length;o+=1,n+=1)r[n]=e[o];return r},i=function(e,t){for(var r="",o=0;o<e.length;o+=1)r+=e[o],o+1<e.length&&(r+=t);return r};e.exports=function(e){var a,l=this;if("function"!=typeof l||"[object Function]"!==t.apply(l))throw TypeError("Function.prototype.bind called on incompatible "+l);for(var c=n(arguments,1),p=r(0,l.length-c.length),u=[],f=0;f<p;f++)u[f]="$"+f;if(a=Function("binder","return function ("+i(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=l.apply(this,o(c,arguments));return Object(t)===t?t:this}return l.apply(e,o(c,arguments))}),l.prototype){var s=function(){};s.prototype=l.prototype,a.prototype=new s,s.prototype=null}return a}},20132:function(e,t,r){"use strict";var o=r(68458);e.exports=Function.prototype.bind||o},68750:function(e,t,r){"use strict";var o,n=r(19767),i=r(85513),a=r(73573),l=r(77679),c=r(39269),p=r(74329),u=r(31805),f=r(99491),s=r(36354),y=r(72244),d=r(24268),h=r(55139),m=r(89544),g=r(56298),b=r(87558),v=Function,x=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(77502),w=r(51544),j=function(){throw new u},A=S?function(){try{return arguments.callee,j}catch(e){try{return S(arguments,"callee").get}catch(e){return j}}}():j,P=r(40679)(),O=r(87778),E=r(77819),I=r(84578),R=r(52453),D=r(31720),M={},k="undefined"!=typeof Uint8Array&&O?O(Uint8Array):o,F={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":P&&O?O([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":M,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&O?O(O([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&P&&O?O(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":l,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&P&&O?O(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&O?O(""[Symbol.iterator]()):o,"%Symbol%":P?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":A,"%TypedArray%":k,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":R,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":E,"%Math.abs%":s,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(O)try{null.error}catch(e){var _=O(O(e));F["%Error.prototype%"]=_}var T=function e(t){var r;if("%AsyncFunction%"===t)r=x("async function () {}");else if("%GeneratorFunction%"===t)r=x("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=x("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&O&&(r=O(n.prototype))}return F[t]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=r(20132),U=r(71712),L=C.call(D,Array.prototype.concat),W=C.call(R,Array.prototype.splice),B=C.call(D,String.prototype.replace),$=C.call(D,String.prototype.slice),Z=C.call(D,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q=/\\(\\)?/g,G=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return B(e,K,function(e,t,r,n){o[o.length]=r?B(n,Q,"$1"):t||e}),o},H=function(e,t){var r,o=e;if(U(N,o)&&(o="%"+(r=N[o])[0]+"%"),U(F,o)){var n=F[o];if(n===M&&(n=T(o)),void 0===n&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===Z(/^%?[^%]*%?$/,e))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G(e),o=r.length>0?r[0]:"",n=H("%"+o+"%",t),i=n.name,a=n.value,l=!1,c=n.alias;c&&(o=c[0],W(r,L([0,1],c)));for(var f=1,s=!0;f<r.length;f+=1){var y=r[f],d=$(y,0,1),h=$(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&s||(l=!0),o+="."+y,U(F,i="%"+o+"%"))a=F[i];else if(null!=a){if(!(y in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&f+1>=r.length){var m=S(a,y);a=(s=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[y]}else s=U(a,y),a=a[y];s&&!l&&(F[i]=a)}}return a}},77819:function(e,t,r){"use strict";e.exports=r(19767).getPrototypeOf||null},84578:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},87778:function(e,t,r){"use strict";var o=r(84578),n=r(77819),i=r(97755);e.exports=o?function(e){return o(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:i?function(e){return i(e)}:null},76158:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},77502:function(e,t,r){"use strict";var o=r(76158);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},40679:function(e,t,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(8186);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},8186:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},71712:function(e,t,r){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty;e.exports=r(20132).call(o,n)},36354:function(e){"use strict";e.exports=Math.abs},72244:function(e){"use strict";e.exports=Math.floor},77890:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},24268:function(e){"use strict";e.exports=Math.max},55139:function(e){"use strict";e.exports=Math.min},89544:function(e){"use strict";e.exports=Math.pow},56298:function(e){"use strict";e.exports=Math.round},87558:function(e,t,r){"use strict";var o=r(77890);e.exports=function(e){return o(e)||0===e?e:e<0?-1:1}},12932:function(e,t,r){"use strict";var o;t.default=void 0,t.default=(0,((o=r(30265))&&o.__esModule?o:{default:o}).default)("M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z","ChevronLeft")},86524:function(e,t,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=l&&c&&"function"==typeof c.get?c.get:null,u=l&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,x=String.prototype.toUpperCase,S=String.prototype.toLowerCase,w=RegExp.prototype.test,j=Array.prototype.concat,A=Array.prototype.join,P=Array.prototype.slice,O=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,M="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D?"object":"symbol")?Symbol.toStringTag:null,k=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function _(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var o=e<0?-O(-e):O(e);if(o!==e){var n=String(o),i=b.call(t,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var T=r(56050),N=T.custom,C=K(N)?N:null,U={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function W(e,t,r){var o=U[r.quoteStyle||t];return o+e+o}function B(e){return!M||!("object"==typeof e&&(M in e||void 0!==e[M]))}function $(e){return"[object Array]"===H(e)&&B(e)}function Z(e){return"[object RegExp]"===H(e)&&B(e)}function K(e){if(D)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,n,l){var c,h,x,w,O,I=o||{};if(G(I,"quoteStyle")&&!G(U,I.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(G(I,"maxStringLength")&&("number"==typeof I.maxStringLength?I.maxStringLength<0&&I.maxStringLength!==1/0:null!==I.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!G(I,"customInspect")||I.customInspect;if("boolean"!=typeof N&&"symbol"!==N)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(I,"indent")&&null!==I.indent&&" "!==I.indent&&!(parseInt(I.indent,10)===I.indent&&I.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(I,"numericSeparator")&&"boolean"!=typeof I.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Q=I.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var o=t.length-r.maxStringLength;return e(b.call(t,0,r.maxStringLength),r)+("... "+o)+" more character"+(o>1?"s":"")}var n=L[r.quoteStyle||"single"];return n.lastIndex=0,W(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,q),"single",r)}(t,I);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return Q?_(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return Q?_(t,er):er}var eo=void 0===I.depth?5:I.depth;if(void 0===n&&(n=0),n>=eo&&eo>0&&"object"==typeof t)return $(t)?"[Array]":"[Object]";var en=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(I,n);if(void 0===l)l=[];else if(V(l,t)>=0)return"[Circular]";function ei(t,r,o){if(r&&(l=P.call(l)).push(r),o){var i={depth:I.depth};return G(I,"quoteStyle")&&(i.quoteStyle=I.quoteStyle),e(t,i,n+1,l)}return e(t,I,n+1,l)}if("function"==typeof t&&!Z(t)){var ea=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),el=ee(t,ei);return"[Function"+(ea?": "+ea:" (anonymous)")+"]"+(el.length>0?" { "+A.call(el,", ")+" }":"")}if(K(t)){var ec=D?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!=typeof t||D?ec:z(ec)}if((ep=t)&&"object"==typeof ep&&("undefined"!=typeof HTMLElement&&ep instanceof HTMLElement||"string"==typeof ep.nodeName&&"function"==typeof ep.getAttribute)){for(var ep,eu,ef="<"+S.call(String(t.nodeName)),es=t.attributes||[],ey=0;ey<es.length;ey++){ef+=" "+es[ey].name+"="+W((eu=es[ey].value,v.call(String(eu),/"/g,"&quot;")),"double",I)}return ef+=">",t.childNodes&&t.childNodes.length&&(ef+="..."),ef+="</"+S.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";var ed=ee(t,ei);return en&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ed)?"["+Y(ed,en)+"]":"[ "+A.call(ed,", ")+" ]"}if("[object Error]"===H(c=t)&&B(c)){var eh=ee(t,ei);return"cause"in Error.prototype||!("cause"in t)||k.call(t,"cause")?0===eh.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(eh,", ")+" }":"{ ["+String(t)+"] "+A.call(j.call("[cause]: "+ei(t.cause),eh),", ")+" }"}if("object"==typeof t&&N){if(C&&"function"==typeof t[C]&&T)return T(t,{depth:eo-n});else if("symbol"!==N&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{p.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var em=[];return a&&a.call(t,function(e,r){em.push(ei(r,t,!0)+" => "+ei(e,t))}),X("Map",i.call(t),em,en)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eg=[];return u&&u.call(t,function(e){eg.push(ei(e,t))}),X("Set",p.call(t),eg,en)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if("[object Number]"===H(h=t)&&B(h))return z(ei(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return z(ei(E.call(t)));if("[object Boolean]"===H(x=t)&&B(x))return z(d.call(t));if("[object String]"===H(w=t)&&B(w))return z(ei(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===H(O=t)&&B(O))&&!Z(t)){var eb=ee(t,ei),ev=F?F(t)===Object.prototype:t instanceof Object||t.constructor===Object,ex=t instanceof Object?"":"null prototype",eS=!ev&&M&&Object(t)===t&&M in t?b.call(H(t),8,-1):ex?"Object":"",ew=(ev||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eS||ex?"["+A.call(j.call([],eS||[],ex||[]),": ")+"] ":"");return 0===eb.length?ew+"{}":en?ew+"{"+Y(eb,en)+"}":ew+"{ "+A.call(eb,", ")+" }"}return String(t)};var Q=Object.prototype.hasOwnProperty||function(e){return e in this};function G(e,t){return Q.call(e,t)}function H(e){return h.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return -1}function q(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function z(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function X(e,t,r,o){return e+" ("+t+") {"+(o?Y(r,o):A.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,o=$(e),n=[];if(o){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=G(e,i)?t(e[i],e):""}var a="function"==typeof I?I(e):[];if(D){r={};for(var l=0;l<a.length;l++)r["$"+a[l]]=a[l]}for(var c in e)if(G(e,c)&&(!o||String(Number(c))!==c||!(c<e.length)))if(D&&r["$"+c]instanceof Symbol)continue;else w.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e));if("function"==typeof I)for(var p=0;p<a.length;p++)k.call(e,a[p])&&n.push("["+t(a[p])+"]: "+t(e[a[p]],e));return n}},69771:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}},8139:function(e,t,r){"use strict";var o=r(56360),n=r(19520);e.exports={formats:r(69771),parse:n,stringify:o}},19520:function(e,t,r){"use strict";var o=r(54330),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p=t.parameterLimit===1/0?void 0:t.parameterLimit,u=c.split(t.delimiter,p),f=-1,s=t.charset;if(t.charsetSentinel)for(y=0;y<u.length;++y)0===u[y].indexOf("utf8=")&&("utf8=%E2%9C%93"===u[y]?s="utf-8":"utf8=%26%2310003%3B"===u[y]&&(s="iso-8859-1"),f=y,y=u.length);for(y=0;y<u.length;++y)if(y!==f){var y,d,h,m=u[y],g=m.indexOf("]="),b=-1===g?m.indexOf("="):g+1;-1===b?(d=t.decoder(m,a.decoder,s,"key"),h=t.strictNullHandling?null:""):(d=t.decoder(m.slice(0,b),a.decoder,s,"key"),h=o.maybeMap(l(m.slice(b+1),t),function(e){return t.decoder(e,a.decoder,s,"value")})),h&&t.interpretNumericEntities&&"iso-8859-1"===s&&(h=h.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(h=i(h)?[h]:h);var v=n.call(r,d);v&&"combine"===t.duplicates?r[d]=o.combine(r[d],h):v&&"last"!==t.duplicates||(r[d]=h)}return r},p=function(e,t,r,o){for(var n=o?t:l(t,r),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&r.parseArrays)a=r.allowEmptyArrays&&(""===n||r.strictNullHandling&&null===n)?[]:[].concat(n);else{a=r.plainObjects?Object.create(null):{};var p="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=r.decodeDotInKeys?p.replace(/%2E/g,"."):p,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&c!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=n:"__proto__"!==u&&(a[u]=n):a={0:n}}n=a}return n},u=function(e,t,r,o){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=l?i.slice(0,l.index):i,u=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&null!==(l=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&n.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(l[1])}if(l){if(!0===r.strictDepth)throw RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(l.index)+"]")}return p(u,t,r,o)}},f=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?c(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),l=0;l<a.length;++l){var p=a[l],s=u(p,n[p],r,"string"==typeof e);i=o.merge(i,s,r)}return!0===r.allowSparse?i:o.compact(i)}},56360:function(e,t,r){"use strict";var o=r(95337),n=r(54330),i=r(69771),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,p=Array.prototype.push,u=function(e,t){p.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},d={},h=function e(t,r,i,a,l,p,f,s,h,m,g,b,v,x,S,w,j,A){for(var P,O,E=t,I=A,R=0,D=!1;void 0!==(I=I.get(d))&&!D;){var M=I.get(t);if(R+=1,void 0!==M)if(M===R)throw RangeError("Cyclic object value");else D=!0;void 0===I.get(d)&&(R=0)}if("function"==typeof m?E=m(r,E):E instanceof Date?E=v(E):"comma"===i&&c(E)&&(E=n.maybeMap(E,function(e){return e instanceof Date?v(e):e})),null===E){if(p)return h&&!w?h(r,y.encoder,j,"key",x):r;E=""}if("string"==typeof(P=E)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||n.isBuffer(E))return h?[S(w?r:h(r,y.encoder,j,"key",x))+"="+S(h(E,y.encoder,j,"value",x))]:[S(r)+"="+S(String(E))];var k=[];if(void 0===E)return k;if("comma"===i&&c(E))w&&h&&(E=n.maybeMap(E,h)),O=[{value:E.length>0?E.join(",")||null:void 0}];else if(c(m))O=m;else{var F=Object.keys(E);O=g?F.sort(g):F}var _=s?r.replace(/\./g,"%2E"):r,T=a&&c(E)&&1===E.length?_+"[]":_;if(l&&c(E)&&0===E.length)return T+"[]";for(var N=0;N<O.length;++N){var C=O[N],U="object"==typeof C&&void 0!==C.value?C.value:E[C];if(!f||null!==U){var L=b&&s?C.replace(/\./g,"%2E"):C,W=c(E)?"function"==typeof i?i(T,L):T:T+(b?"."+L:"["+L+"]");A.set(t,R);var B=o();B.set(d,A),u(k,e(U,W,i,a,l,p,f,s,"comma"===i&&w&&c(E)?null:h,m,g,b,v,x,S,w,j,B))}}return k},m=function(e){if(!e)return y;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");o=e.format}var n=i.formatters[o],p=y.filter;if(("function"==typeof e.filter||c(e.filter))&&(p=e.filter),t=e.arrayFormat in l?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||y.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:p,format:o,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}};e.exports=function(e,t){var r,n=e,i=m(t);"function"==typeof i.filter?n=(0,i.filter)("",n):c(i.filter)&&(r=i.filter);var a=[];if("object"!=typeof n||null===n)return"";var p=l[i.arrayFormat],f="comma"===p&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var s=o(),y=0;y<r.length;++y){var d=r[y];i.skipNulls&&null===n[d]||u(a,h(n[d],d,p,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,s))}var g=a.join(i.delimiter),b=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),g.length>0?b+g:""}},54330:function(e,t,r){"use strict";var o=r(69771),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);t.obj[t.prop]=o}}},c=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(r[o]=e[o]);return r};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o<t.length;++o)for(var n=t[o],i=n.obj[n.prop],a=Object.keys(i),c=0;c<a.length;++c){var p=a[c],u=i[p];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:p}),r.push(u))}return l(t),e},decode:function(e,t,r){var o=e.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,r,n,i){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",p=0;p<l.length;p+=1024){for(var u=l.length>=1024?l.slice(p,p+1024):l,f=[],s=0;s<u.length;++s){var y=u.charCodeAt(s);if(45===y||46===y||95===y||126===y||y>=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===o.RFC1738&&(40===y||41===y)){f[f.length]=u.charAt(s);continue}if(y<128){f[f.length]=a[y];continue}if(y<2048){f[f.length]=a[192|y>>6]+a[128|63&y];continue}if(y<55296||y>=57344){f[f.length]=a[224|y>>12]+a[128|y>>6&63]+a[128|63&y];continue}s+=1,y=65536+((1023&y)<<10|1023&u.charCodeAt(s)),f[f.length]=a[240|y>>18]+a[128|y>>12&63]+a[128|y>>6&63]+a[128|63&y]}c+=f.join("")}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=c(t,o)),i(t)&&i(r))?(r.forEach(function(r,i){if(n.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,o):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},a)}}},98842:function(e,t,r){"use strict";var o=r(86524),n=r(31805),i=function(e,t,r){for(var o,n=e;null!=(o=n.next);n=o)if(o.key===t)return n.next=o.next,r||(o.next=e.next,e.next=o),o},a=function(e,t){if(e){var r=i(e,t);return r&&r.value}},l=function(e,t,r){var o=i(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}},c=function(e,t){if(e)return i(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){var r=e&&e.next,o=c(e,t);return o&&r&&r===o&&(e=void 0),!!o},get:function(t){return a(e,t)},has:function(t){var r;return!!(r=e)&&!!i(r,t)},set:function(t,r){e||(e={next:void 0}),l(e,t,r)}};return t}},4249:function(e,t,r){"use strict";var o=r(68750),n=r(75343),i=r(86524),a=r(31805),l=o("%Map%",!0),c=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),f=n("Map.prototype.delete",!0),s=n("Map.prototype.size",!0);e.exports=!!l&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=f(e,t);return 0===s(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,r){e||(e=new l),p(e,t,r)}};return t}},16725:function(e,t,r){"use strict";var o=r(68750),n=r(75343),i=r(86524),a=r(4249),l=r(31805),c=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),f=n("WeakMap.prototype.has",!0),s=n("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new l("Side channel does not contain "+i(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return s(e,r)}else if(a&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?p(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):!!t&&t.has(r)},set:function(r,o){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),u(e,r,o)):a&&(t||(t=a()),t.set(r,o))}};return r}:a},95337:function(e,t,r){"use strict";var o=r(31805),n=r(86524),i=r(98842),a=r(4249),l=r(16725)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=l()),e.set(t,r)}};return t}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["537"],{35015:function(e,t,a){async function i(...e){let t=await a.g.fetch(...e);if(!1===t.ok){let e=t.headers.get("content-type");if(e?.includes("application/json")){let e=await t.clone().json();if(e.error)throw new o(e.error,t.status);if(e.message)throw new o(e.message,t.status)}let a=await t.clone().text();if(a)throw new o(a,t.status);throw new n(t)}return t}async function r(...e){let t=await i(...e);if(!t.ok)throw new n(t);return await t.json()}a.d(t,{he:()=>i,kp:()=>n,rd:()=>r,yh:()=>o});class n extends Error{status;constructor(e){super(`${e.status} ${e.statusText}`),this.status=e.status,Object.setPrototypeOf(this,n.prototype)}}class o extends Error{status;constructor(e,t){super(e),this.status=t,Object.setPrototypeOf(this,o.prototype)}}},51217:function(e,t,a){a.d(t,{q9:()=>I});var i,r,n,o,l,s,c,u,h=a(7749),p=a(94197);let O={inf:147,nan:148,bool:1,ignoring:2,on:3,group_left:4,group_right:5,offset:6},d=(e,t)=>O[e.toLowerCase()]||-1,v={avg:8,atan2:7,bottomk:9,count:10,count_values:11,group:12,max:13,min:14,quantile:15,stddev:16,stdvar:17,sum:18,topk:19,by:20,without:21,and:22,or:23,unless:24,start:25,end:26},m=(e,t)=>v[e.toLowerCase()]||-1,f=(0,p.Gv)({LineComment:p.pJ.comment,LabelName:p.pJ.labelName,StringLiteral:p.pJ.string,NumberLiteral:p.pJ.number,Duration:p.pJ.number,Identifier:p.pJ.variableName,"Abs Absent AbsentOverTime Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramCount HistogramFraction HistogramQuantile HistogramSum HoltWinters Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year":p.pJ.function(p.pJ.variableName),"Avg Bottomk Count Count_values Group Max Min Quantile Stddev Stdvar Sum Topk":p.pJ.operatorKeyword,"By Without Bool On Ignoring GroupLeft GroupRight Offset Start End":p.pJ.modifier,"And Unless Or":p.pJ.logicOperator,"Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At":p.pJ.operator,UnaryOp:p.pJ.arithmeticOperator,"( )":p.pJ.paren,"[ ]":p.pJ.squareBracket,"{ }":p.pJ.brace,"⚠":p.pJ.invalid}),g={__proto__:null,absent_over_time:313,absent:315,abs:317,acos:319,acosh:321,asin:323,asinh:325,atan:327,atanh:329,avg_over_time:331,ceil:333,changes:335,clamp:337,clamp_max:339,clamp_min:341,cos:343,cosh:345,count_over_time:347,days_in_month:349,day_of_month:351,day_of_week:353,day_of_year:355,deg:357,delta:359,deriv:361,exp:363,floor:365,histogram_count:367,histogram_fraction:369,histogram_quantile:371,histogram_sum:373,holt_winters:375,hour:377,idelta:379,increase:381,irate:383,label_replace:385,label_join:387,last_over_time:389,ln:391,log10:393,log2:395,max_over_time:397,min_over_time:399,minute:401,month:403,pi:405,predict_linear:407,present_over_time:409,quantile_over_time:411,rad:413,rate:415,resets:417,round:419,scalar:421,sgn:423,sin:425,sinh:427,sort:429,sort_desc:431,sqrt:433,stddev_over_time:435,stdvar_over_time:437,sum_over_time:439,tan:441,tanh:443,timestamp:445,time:447,vector:449,year:451},$=h.WQ.deserialize({version:14,states:"7pOYQPOOO'XQPOOOOQO'#Cz'#CzO'^QPO'#CyQ'iQQOOOOQO'#Da'#DaO'dQPO'#D`OOQO'#E}'#E}O(vQPO'#FTOYQPO'#FPOYQPO'#FSO/OQSO'#FVO/WQQO'#FUOOQO'#FU'#FUOOQO'#Fi'#FiOOQO'#Db'#DbOOQO'#Dd'#DdOOQO'#De'#DeOOQO'#Df'#DfOOQO'#Dg'#DgOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#Ed'#EdOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOOQO'#Ei'#EiOOQO'#Ej'#EjOOQO'#Ek'#EkOOQO'#El'#ElOOQO'#Em'#EmOOQO'#En'#EnOOQO'#Eo'#EoOOQO'#Ep'#EpOOQO'#Eq'#EqOOQO'#Er'#ErOOQO'#Es'#EsOOQO'#Et'#EtOOQO'#Eu'#EuOOQO'#Ev'#EvOOQO'#Ew'#EwOOQO'#Ex'#ExOOQO'#Ey'#EyOOQO'#Ez'#EzQOQPOOO0qQPO'#C{O0vQPO'#DOO'dQPO,59eO0}QQO,59eO2kQPO,59kO2kQPO,59kO2kQPO,59kO2kQPO,59kO2kQPO,59kO8sQQO,5;gO8xQQO,5;jO9QQPO,5;wOOQO,59z,59zOOQO,5;i,5;iO9iQQO,5;kO9pQQO,5;nO;WQPO'#FWOOQO,5;q,5;qO;fQPO,5;qOOQO,5;p,5;pO;nQSO'#C|OOQO,59g,59gOOQO,59j,59jO;vQQO,59jOOQO1G/P1G/POOQO'#DR'#DRO0qQPO'#DSOOQO'#Fm'#FmO<QQPO'#FmOYQPO1G/VOYQPO1G/VOYQPO1G/VOYQPO1G/VOYQPO1G/VOBVQSO1G1ROOQO1G1U1G1UOB_QQO1G1UOBdQPO'#E}OOQO'#F_'#F_OOQO1G1c1G1cOBoQPO1G1cOOQO1G1V1G1VOOQO'#FX'#FXOBtQPO,5;rOByQSO1G1]OCRQPO1G1]OOQO1G1]1G1]OOQO,59h,59hOCZQPO,59hOYQPO'#FbOCcQPO1G/UOOQO1G/U1G/UOCkQPO,59nOOQO,5<X,5<XOJzQQO7+$qOK[QQO7+$qOLpQQO7+$qOMWQQO7+$qONoQQO7+$qOOQO7+&m7+&mO! YQQO7+&sOOQO7+&p7+&pO! bQPO7+&}OOQO1G1^1G1^OOQO,5;},5;}OOQO7+&w7+&wO! gQSO7+&wOOQO-E9a-E9aO! oQSO1G/SO! wQPO1G/SOOQO1G/S1G/SO!!PQQO,5;|OOQO-E9`-E9`OOQO7+$p7+$pO!!ZQPO1G/YOOQO<<J_<<J_O!(YQPO<<J_OOQO<<Ji<<JiOOQO<<Jc<<JcP!(_QSO'#FcOOQO,5;{,5;{OOQO7+$n7+$nO!(dQSO7+$nOOQO-E9_-E9_OOQO7+$t7+$tOOQOAN?yAN?yOOQO<<HY<<HYP!(lQSO'#Fa",stateData:"!(q~O$[OSkOS~OWQOXQOYQOZQO[QO]QO^QO_QO`QOaQObQOcQO!V[O#t^O$XVO$YVO$^XO$b_O$c`O$daO$ebO$fcO$gdO$heO$ifO$jgO$khO$liO$mjO$nkO$olO$pmO$qnO$roO$spO$tqO$urO$vsO$wtO$xuO$yvO$zwO${xO$|yO$}zO%O{O%P|O%Q}O%R!OO%S!PO%T!QO%U!RO%V!SO%W!TO%X!UO%Y!VO%Z!WO%[!XO%]!YO%^!ZO%_![O%`!]O%a!^O%b!_O%c!`O%d!aO%e!bO%f!cO%g!dO%h!eO%i!fO%j!gO%k!hO%l!iO%m!jO%n!kO%o!lO%p!mO%q!nO%r!oO%s!pO%t!qO%u!rO%v!sO%w!tO%x!uO%y!vO%|WO%}WO&OVO&QZO~O!V!wO~Od!xOe!xO$^!yO~OU#SOV!|Of#POg#QOh#POt!|Ow!|Ox!|Oy!|Oz!}O{!}O|#OO}#OO!O#OO!P#OO!Q#OO!R#OO$Q#TO%z#RO~O$X#VO$Y#VO&O#VOW#wXX#wXY#wXZ#wX[#wX]#wX^#wX_#wX`#wXa#wXb#wXc#wX!V#wX#t#wX$X#wX$Y#wX$^#wX$b#wX$c#wX$d#wX$e#wX$f#wX$g#wX$h#wX$i#wX$j#wX$k#wX$l#wX$m#wX$n#wX$o#wX$p#wX$q#wX$r#wX$s#wX$t#wX$u#wX$v#wX$w#wX$x#wX$y#wX$z#wX${#wX$|#wX$}#wX%O#wX%P#wX%Q#wX%R#wX%S#wX%T#wX%U#wX%V#wX%W#wX%X#wX%Y#wX%Z#wX%[#wX%]#wX%^#wX%_#wX%`#wX%a#wX%b#wX%c#wX%d#wX%e#wX%f#wX%g#wX%h#wX%i#wX%j#wX%k#wX%l#wX%m#wX%n#wX%o#wX%p#wX%q#wX%r#wX%s#wX%t#wX%u#wX%v#wX%w#wX%x#wX%y#wX%|#wX%}#wX&O#wX&Q#wX~Oq#YO&R#ZO~O&QZOU#xXV#xXf#xXg#xXh#xXt#xXw#xXx#xXy#xXz#xX{#xX|#xX}#xX!O#xX!P#xX!Q#xX!R#xX$Q#xX$W#xX%z#xX$`#xX$_#xX~O$^#^O~O$`#`O~PYOd!xOe!xOUmaVmafmagmahmatmawmaxmaymazma{ma|ma}ma!Oma!Pma!Qma!Rma$Qma$Wma%zma$`ma$_ma~OP#cOQ#dOR#dOW$aPX$aPY$aPZ$aP[$aP]$aP^$aP_$aP`$aPa$aPb$aPc$aP!V$aP#t$aP$X$aP$Y$aP$^$aP$b$aP$c$aP$d$aP$e$aP$f$aP$g$aP$h$aP$i$aP$j$aP$k$aP$l$aP$m$aP$n$aP$o$aP$p$aP$q$aP$r$aP$s$aP$t$aP$u$aP$v$aP$w$aP$x$aP$y$aP$z$aP${$aP$|$aP$}$aP%O$aP%P$aP%Q$aP%R$aP%S$aP%T$aP%U$aP%V$aP%W$aP%X$aP%Y$aP%Z$aP%[$aP%]$aP%^$aP%_$aP%`$aP%a$aP%b$aP%c$aP%d$aP%e$aP%f$aP%g$aP%h$aP%i$aP%j$aP%k$aP%l$aP%m$aP%n$aP%o$aP%p$aP%q$aP%r$aP%s$aP%t$aP%u$aP%v$aP%w$aP%x$aP%y$aP%|$aP%}$aP&O$aP&Q$aP~O#p#lO~O{#nO#p#mO~Oi#pOj#pO$XVO$YVO%|#oO%}#oO&OVO~O$`#sO~P'iOt!|OU#vaV#vaf#vag#vah#vaw#vax#vay#vaz#va{#va|#va}#va!O#va!P#va!Q#va!R#va$Q#va$W#va%z#va$`#va$_#va~O!R#tO#|#tO#}#tO$O#tO~O$_#vO&R#xO~Oq#zO$`#yO~O$_#{O$`#}O~P'iOQ#dOR#dOW$aXX$aXY$aXZ$aX[$aX]$aX^$aX_$aX`$aXa$aXb$aXc$aX!V$aX#t$aX$X$aX$Y$aX$^$aX$b$aX$c$aX$d$aX$e$aX$f$aX$g$aX$h$aX$i$aX$j$aX$k$aX$l$aX$m$aX$n$aX$o$aX$p$aX$q$aX$r$aX$s$aX$t$aX$u$aX$v$aX$w$aX$x$aX$y$aX$z$aX${$aX$|$aX$}$aX%O$aX%P$aX%Q$aX%R$aX%S$aX%T$aX%U$aX%V$aX%W$aX%X$aX%Y$aX%Z$aX%[$aX%]$aX%^$aX%_$aX%`$aX%a$aX%b$aX%c$aX%d$aX%e$aX%f$aX%g$aX%h$aX%i$aX%j$aX%k$aX%l$aX%m$aX%n$aX%o$aX%p$aX%q$aX%r$aX%s$aX%t$aX%u$aX%v$aX%w$aX%x$aX%y$aX%|$aX%}$aX&O$aX&Q$aX~O%{$VO&P$WO~O#p$XO~O$X#VO$Y#VO&O#VO~O$^$YO~O#t$ZO~Oq#YO&R$]O~O$_$^O&R$]O~O$_$`O$`$bO~O$_#{O$`$eO~OS$fOT$fOWvaXvaYvaZva[va]va^va_va`vaavabvacva!Vva#tva$Xva$Yva$^va$bva$cva$dva$eva$fva$gva$hva$iva$jva$kva$lva$mva$nva$ova$pva$qva$rva$sva$tva$uva$vva$wva$xva$yva$zva${va$|va$}va%Ova%Pva%Qva%Rva%Sva%Tva%Uva%Vva%Wva%Xva%Yva%Zva%[va%]va%^va%_va%`va%ava%bva%cva%dva%eva%fva%gva%hva%iva%jva%kva%lva%mva%nva%ova%pva%qva%rva%sva%tva%uva%vva%wva%xva%yva%|va%}va&Ova&Qva~Ot!|OUsqfsqgsqhsqzsq{sq|sq}sq!Osq!Psq!Qsq!Rsq$Qsq$Wsq%zsq$`sq$_sq~OVsqwsqxsqysq~PIpOV!|Ow!|Ox!|Oy!|O~PIpOV!|Ot!|Ow!|Ox!|Oy!|Oz!}O{!}OUsqfsqgsqhsq$Qsq$Wsq%zsq$`sq$_sq~O|sq}sq!Osq!Psq!Qsq!Rsq~PKlO|#OO}#OO!O#OO!P#OO!Q#OO!R#OO~PKlOV!|Of#POh#POt!|Ow!|Ox!|Oy!|Oz!}O{!}O|#OO}#OO!O#OO!P#OO!Q#OO!R#OO~OUsqgsq$Qsq$Wsq%zsq$`sq$_sq~PMnO#p$hO%{$gO~O$`$iO~Oq#YO&R$jO~Oq$lO$`$mO~O$_$nO$`$mO~O$_$Ua$`$Ua~P'iO$^#^OWviXviYviZvi[vi]vi^vi_vi`viavibvicvi!Vvi#tvi$Xvi$Yvi$bvi$cvi$dvi$evi$fvi$gvi$hvi$ivi$jvi$kvi$lvi$mvi$nvi$ovi$pvi$qvi$rvi$svi$tvi$uvi$vvi$wvi$xvi$yvi$zvi${vi$|vi$}vi%Ovi%Pvi%Qvi%Rvi%Svi%Tvi%Uvi%Vvi%Wvi%Xvi%Yvi%Zvi%[vi%]vi%^vi%_vi%`vi%avi%bvi%cvi%dvi%evi%fvi%gvi%hvi%ivi%jvi%kvi%lvi%mvi%nvi%ovi%pvi%qvi%rvi%svi%tvi%uvi%vvi%wvi%xvi%yvi%|vi%}vi&Ovi&Qvi~O%{$qO~Oq#YO~Oq$lO$`$rO~Oq$lO~O",goto:"({$bPPPPPPPPPPPPPPPPPPPPPPPPPPPPP$c$o${%RP%[$cP%e%lPPPPPPPPPPP$c%v&SP&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S&S$cP&`$c$cP$c$c&o$c&{'['dPPP$cP'gP'j'p'vPPPPP'|PPP(le^OXY!y#g#h#i#j#k#{eROXY!y#g#h#i#j#k#{Q!zRR#b!{Q#_!xQ$O#dR$p$fQ!{RQ#UUR#b!zZ#f!|!}#O#P#QY#e!|!}#O#P#QR$P#feUOXY!y#g#h#i#j#k#{eTOXY!y#g#h#i#j#k#{d^OXY!y#g#h#i#j#k#{R#q#TeYOXY!y#g#h#i#j#k#{d]OXY!y#g#h#i#j#k#{R#][Q#[ZV$[#v$^$kR#u#YR#r#TQ$a#zR$o$aQ#|#aR$d#|Q#w#[R$_#wQSOQ#WXQ#XYQ#a!yQ$Q#gQ$R#hQ$S#iQ$T#jQ$U#kR$c#{Q#g!|Q#h!}Q#i#OQ#j#PR#k#Q",nodeNames:"⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramCount HistogramFraction HistogramQuantile HistogramSum HoltWinters Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector Duration NumberLiteral OffsetExpr ParenExpr StringLiteral SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers LabelMatcher MatchOp EqlSingle EqlRegex NeqRegex StepInvariantExpr At AtModifierPreprocessors MetricName",maxTerm:233,nodeProps:[["group",-12,29,35,50,123,125,126,127,128,129,130,132,139,"Expr"]],propSources:[f],skippedNodes:[0,27],repeatNodeCount:3,tokenData:"3s~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*o!Q!R*t!R![+l![!]0W!^!_1S!_!`1a!`!a1v!b!c2T!c!}2Y!}#O2p#P#Q2u#Q#R2z#R#S2Y#S#T3P#T#o2Y#o#p3i#q#r3n#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$[~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!R~~$tO$O~~$yW#t~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f<%lO$t~%hO#t~~%kRO;'S$t;'S;=`%t;=`O$t~%yX#t~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f;=`<%l$t<%lO$t~&iP;=`<%l$t~&qSk~OY&lZ;'S&l;'S;=`&}<%lO&l~'QP;=`<%l&l~'YOy~~'_W#t~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u<%lO'Y~'zRO;'S'Y;'S;=`(T;=`O'Y~(YX#t~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u;=`<%l'Y<%lO'Y~(xP;=`<%l'Y~)QO$^~~)VO$`~~)[Ow~R)cO%}PzQ~)hO$_~R)oO%|P{QP)rP!Q![)uP)zR&OP!Q![)u!g!h*T#X#Y*TP*WR{|*a}!O*a!Q![*gP*dP!Q![*gP*lP&OP!Q![*g~*tOx~R*yZ&OP!O!P)u!Q![+l!g!h*T#W#X,a#X#Y*T#[#],x#a#b-^#g#h.Q#k#l.c#l#m/l#m#n.}R+qY&OP!O!P)u!Q![+l!g!h*T#W#X,a#X#Y*T#[#],x#a#b-^#g#h.Q#k#l.c#m#n.}Q,fP#pQ!Q![,iQ,lS!Q![,i#[#],x#a#b-^#g#h.QQ,}P#pQ!Q![-QQ-TR!Q![-Q#a#b-^#g#h.QQ-cQ#pQ!Q![-i#g#h-{Q-lR!Q![-i#a#b-u#g#h.QQ-xP#g#h-{Q.QO#pQQ.VP#pQ!Q![.YQ.]Q!Q![.Y#a#b-uQ.hP#pQ!Q![.kQ.nT!Q![.k#W#X,a#[#],x#a#b-^#g#h.QQ/SP#pQ!Q![/VQ/YU!Q![/V#W#X,a#[#],x#a#b-^#g#h.Q#k#l.cP/oR!Q![/x!c!i/x#T#Z/xP/}R&OP!Q![/x!c!i/x#T#Z/xV0_T&PS!VR!Q![0n![!]0n!c!}0n#R#S0n#T#o0nR0sT!VR!Q![0n![!]0n!c!}0n#R#S0n#T#o0n~1XP!Q~!_!`1[~1aO!P~~1fQ#|P!_!`1l#r#s1qQ1qO|Q~1vO#}~~1{P!O~!_!`2O~2TO}~~2YO$Q~V2aT!VRqS!Q![2Y![!]0n!c!}2Y#R#S2Y#T#o2Y~2uO%z~~2zO%{~~3POt~~3STO#S3P#S#T%c#T;'S3P;'S;=`3c<%lO3P~3fP;=`<%l3P~3nO&Q~~3sO&R~",tokenizers:[0,1,2],topRules:{PromQL:[0,28],MetricName:[1,142]},specialized:[{term:53,get:(e,t)=>d(e)<<1,external:d},{term:53,get:(e,t)=>m(e)<<1|1,external:m,extend:!0},{term:53,get:e=>g[e]||-1}],tokenPrec:0});(i=l||(l={})).none="none",i.vector="vector",i.scalar="scalar",i.matrix="matrix",i.string="string";let y={55:{name:"abs",argTypes:[l.vector],variadic:0,returnType:l.vector},54:{name:"absent",argTypes:[l.vector],variadic:0,returnType:l.vector},52:{name:"absent_over_time",argTypes:[l.matrix],variadic:0,returnType:l.vector},56:{name:"acos",argTypes:[l.vector],variadic:0,returnType:l.vector},57:{name:"acosh",argTypes:[l.vector],variadic:0,returnType:l.vector},58:{name:"asin",argTypes:[l.vector],variadic:0,returnType:l.vector},59:{name:"asinh",argTypes:[l.vector],variadic:0,returnType:l.vector},60:{name:"atan",argTypes:[l.vector],variadic:0,returnType:l.vector},61:{name:"atanh",argTypes:[l.vector],variadic:0,returnType:l.vector},62:{name:"avg_over_time",argTypes:[l.matrix],variadic:0,returnType:l.vector},63:{name:"ceil",argTypes:[l.vector],variadic:0,returnType:l.vector},64:{name:"changes",argTypes:[l.matrix],variadic:0,returnType:l.vector},65:{name:"clamp",argTypes:[l.vector,l.scalar,l.scalar],variadic:0,returnType:l.vector},66:{name:"clamp_max",argTypes:[l.vector,l.scalar],variadic:0,returnType:l.vector},67:{name:"clamp_min",argTypes:[l.vector,l.scalar],variadic:0,returnType:l.vector},68:{name:"cos",argTypes:[l.vector],variadic:0,returnType:l.vector},69:{name:"Cosh",argTypes:[l.vector],variadic:0,returnType:l.vector},70:{name:"count_over_time",argTypes:[l.matrix],variadic:0,returnType:l.vector},71:{name:"days_in_month",argTypes:[l.vector],variadic:1,returnType:l.vector},72:{name:"day_of_month",argTypes:[l.vector],variadic:1,returnType:l.vector},73:{name:"day_of_week",argTypes:[l.vector],variadic:1,returnType:l.vector},74:{name:"day_of_year",argTypes:[l.vector],variadic:1,returnType:l.vector},75:{name:"deg",argTypes:[l.vector],variadic:0,returnType:l.vector},76:{name:"delta",argTypes:[l.matrix],variadic:0,returnType:l.vector},77:{name:"deriv",argTypes:[l.matrix],variadic:0,returnType:l.vector},78:{name:"exp",argTypes:[l.vector],variadic:0,returnType:l.vector},79:{name:"floor",argTypes:[l.vector],variadic:0,returnType:l.vector},80:{name:"histogram_count",argTypes:[l.vector],variadic:0,returnType:l.vector},81:{name:"histogram_fraction",argTypes:[l.scalar,l.scalar,l.vector],variadic:0,returnType:l.vector},82:{name:"histogram_quantile",argTypes:[l.scalar,l.vector],variadic:0,returnType:l.vector},83:{name:"histogram_sum",argTypes:[l.vector],variadic:0,returnType:l.vector},84:{name:"holt_winters",argTypes:[l.matrix,l.scalar,l.scalar],variadic:0,returnType:l.vector},85:{name:"hour",argTypes:[l.vector],variadic:1,returnType:l.vector},86:{name:"idelta",argTypes:[l.matrix],variadic:0,returnType:l.vector},87:{name:"increase",argTypes:[l.matrix],variadic:0,returnType:l.vector},88:{name:"irate",argTypes:[l.matrix],variadic:0,returnType:l.vector},89:{name:"label_replace",argTypes:[l.vector,l.string,l.string,l.string,l.string],variadic:0,returnType:l.vector},90:{name:"label_join",argTypes:[l.vector,l.string,l.string,l.string],variadic:-1,returnType:l.vector},91:{name:"last_over_time",argTypes:[l.matrix],variadic:0,returnType:l.vector},92:{name:"ln",argTypes:[l.vector],variadic:0,returnType:l.vector},93:{name:"log10",argTypes:[l.vector],variadic:0,returnType:l.vector},94:{name:"log2",argTypes:[l.vector],variadic:0,returnType:l.vector},95:{name:"max_over_time",argTypes:[l.matrix],variadic:0,returnType:l.vector},96:{name:"min_over_time",argTypes:[l.matrix],variadic:0,returnType:l.vector},97:{name:"minute",argTypes:[l.vector],variadic:1,returnType:l.vector},98:{name:"month",argTypes:[l.vector],variadic:1,returnType:l.vector},99:{name:"pi",argTypes:[],variadic:0,returnType:l.vector},100:{name:"predict_linear",argTypes:[l.matrix,l.scalar],variadic:0,returnType:l.vector},101:{name:"present_over_time",argTypes:[l.matrix],variadic:0,returnType:l.vector},102:{name:"quantile_over_time",argTypes:[l.scalar,l.matrix],variadic:0,returnType:l.vector},103:{name:"rad",argTypes:[l.vector],variadic:0,returnType:l.vector},104:{name:"rate",argTypes:[l.matrix],variadic:0,returnType:l.vector},105:{name:"resets",argTypes:[l.matrix],variadic:0,returnType:l.vector},106:{name:"round",argTypes:[l.vector,l.scalar],variadic:1,returnType:l.vector},107:{name:"scalar",argTypes:[l.vector],variadic:0,returnType:l.scalar},108:{name:"sgn",argTypes:[l.vector],variadic:0,returnType:l.vector},109:{name:"sin",argTypes:[l.vector],variadic:0,returnType:l.vector},110:{name:"Sinh",argTypes:[l.vector],variadic:0,returnType:l.vector},111:{name:"sort",argTypes:[l.vector],variadic:0,returnType:l.vector},112:{name:"sort_desc",argTypes:[l.vector],variadic:0,returnType:l.vector},113:{name:"sqrt",argTypes:[l.vector],variadic:0,returnType:l.vector},114:{name:"stddev_over_time",argTypes:[l.matrix],variadic:0,returnType:l.vector},115:{name:"stdvar_over_time",argTypes:[l.matrix],variadic:0,returnType:l.vector},116:{name:"sum_over_time",argTypes:[l.matrix],variadic:0,returnType:l.vector},117:{name:"tan",argTypes:[l.vector],variadic:0,returnType:l.vector},118:{name:"tanh",argTypes:[l.vector],variadic:0,returnType:l.vector},120:{name:"time",argTypes:[],variadic:0,returnType:l.scalar},119:{name:"timestamp",argTypes:[l.vector],variadic:0,returnType:l.vector},121:{name:"vector",argTypes:[l.scalar],variadic:0,returnType:l.vector},122:{name:"year",argTypes:[l.vector],variadic:1,returnType:l.vector}};class b{constructor(e,t,a){this.type=e,this.name=t,this.value=a}matchesEmpty(){switch(this.type){case 136:return""===this.value;case 49:return""!==this.value;default:return!1}}}function _(e,t){let a=[];return e.forEach(e=>{a.push(function(e,t){let a=new b(0,"",""),i=e.cursor();if(!i.next())return a;do switch(i.type.id){case 33:a.name=t.sliceDoc(i.from,i.to);break;case 135:let r=i.node.firstChild;r&&(a.type=r.type.id);break;case 128:a.value=t.sliceDoc(i.from,i.to).slice(1,-1)}while(i.nextSibling());return a}(e,t))}),a}function Q(e,t){for(;;){if(!e||e.type.id===t)return e;e=e.parent}return null}function P(e,...t){let a=e.cursor();if(!a.next())return!1;let i=!1;do i=t.some(e=>a.type.id===e||a.type.name===e);while(!i&&a.nextSibling());return i}function w(e,...t){let a=e.cursor();if(!a.next())return!1;let i=0;do a.type.is(t[i])&&i++;while(i<t.length&&a.nextSibling());return i>=t.length}(r=s||(s={})).CardOneToOne="one-to-one",r.CardManyToOne="many-to-one",r.CardOneToMany="one-to-many",r.CardManyToMany="many-to-many";var x=a(61262);class T{constructor(e){this.tree=(0,x.qz)(e),this.state=e,this.diagnostics=[]}getDiagnostics(){return this.diagnostics.sort((e,t)=>e.from-t.from)}analyze(){this.checkAST(this.tree.topNode.firstChild),this.diagnoseAllErrorNodes()}diagnoseAllErrorNodes(){let e=this.tree.cursor();for(;e.next();)if(0===e.type.id&&e.to!==this.tree.topNode.to){let t=e.node.parent;this.diagnostics.push({severity:"error",message:"unexpected expression",from:t?t.from:e.from,to:t?t.to:e.to})}}checkAST(e){if(!e)return l.none;switch(e.type.id){case 29:this.checkAggregationExpr(e);break;case 35:this.checkBinaryExpr(e);break;case 50:this.checkCallFunction(e);break;case 127:case 123:this.checkAST(e.getChild("Expr"));break;case 130:let t=this.checkAST(e.getChild("Expr"));t!==l.scalar&&t!==l.vector&&this.addDiagnostic(e,`unary expression only allowed on expressions of type scalar or instant vector, got ${t}`);break;case 129:let a=this.checkAST(e.getChild("Expr"));a!==l.vector&&this.addDiagnostic(e,`subquery is only allowed on instant vector, got ${a} in ${e.name} instead`);break;case 132:this.checkVectorSelector(e);break;case 139:let i=this.checkAST(e.getChild("Expr"));i!==l.vector&&i!==l.matrix&&this.addDiagnostic(e,"@ modifier must be preceded by an instant selector vector or range vector selector or a subquery")}return function e(t){var a;if(!t)return l.none;switch(t.type.id){case 29:case 132:return l.vector;case 126:return e(t.firstChild);case 128:return l.string;case 125:return l.scalar;case 123:case 129:return l.matrix;case 127:case 130:case 139:return e(t.getChild("Expr"));case 35:let i=e(t.firstChild),r=e(t.lastChild);if(i===l.scalar&&r===l.scalar)return l.scalar;return l.vector;case 50:let n=null==(a=t.firstChild)?void 0:a.firstChild;if(!n)return l.none;return y[n.type.id].returnType;default:return l.none}}(e)}checkAggregationExpr(e){var t;let a=null==(t=e.firstChild)?void 0:t.firstChild;if(!a)return void this.addDiagnostic(e,"aggregation operator expected in aggregation expression but got nothing");let i=e.getChild(34),r=i?i.getChildren("Expr"):[];if(!r.length)return void this.addDiagnostic(e,"unable to find the parameter for the expression");this.expectType(r[r.length-1],l.vector,"aggregation expression"),(19===a.type.id||9===a.type.id||15===a.type.id)&&this.expectType(r[0],l.scalar,"aggregation parameter"),11===a.type.id&&this.expectType(r[0],l.string,"aggregation parameter")}checkBinaryExpr(e){let t=e.firstChild,a=e.lastChild;if(!t||!a)return void this.addDiagnostic(e,"left or right expression is missing in binary expression");let i=this.checkAST(t),r=this.checkAST(a),n=e.getChild(37),o=P(e,44,49,47,48,45,46),c=P(e,22,23,24);n?o||this.addDiagnostic(e,"bool modifier can only be used on comparison operators"):o&&i===l.scalar&&r===l.scalar&&this.addDiagnostic(e,"comparisons between scalars must use BOOL modifier");let u=function(e,t){if(!t||35!==t.type.id)return null;let a={card:s.CardOneToOne,matchingLabels:[],on:!1,include:[]},i=t.getChild(38);if(i){a.on=null!==i.getChild(3);let t=i.getChild(32);for(let i of t?t.getChildren(33):[])a.matchingLabels.push(e.sliceDoc(i.from,i.to));let r=i.getChild(4),n=i.getChild(5),o=r||n;if(o){a.card=r?s.CardManyToOne:s.CardOneToMany;let t=o.nextSibling;for(let i of(null==t?void 0:t.getChildren(33))||[])a.include.push(e.sliceDoc(i.from,i.to))}}return P(t,22,23,24)&&a.card===s.CardOneToOne&&(a.card=s.CardManyToMany),a}(this.state,e);if(null!==u&&u.on)for(let t of u.matchingLabels)for(let a of u.include)t===a&&this.addDiagnostic(e,`label "${t}" must not occur in ON and GROUP clause at once`);i!==l.scalar&&i!==l.vector&&this.addDiagnostic(t,"binary expression must contain only scalar and instant vector types"),r!==l.scalar&&r!==l.vector&&this.addDiagnostic(a,"binary expression must contain only scalar and instant vector types"),(i!==l.vector||r!==l.vector)&&null!==u?u.matchingLabels.length>0&&this.addDiagnostic(e,"vector matching only allowed between instant vectors"):c&&(((null==u?void 0:u.card)===s.CardOneToMany||(null==u?void 0:u.card)===s.CardManyToOne)&&this.addDiagnostic(e,"no grouping allowed for set operations"),(null==u?void 0:u.card)!==s.CardManyToMany&&this.addDiagnostic(e,"set operations must always be many-to-many")),(i===l.scalar||r===l.scalar)&&c&&this.addDiagnostic(e,"set operator not allowed in binary scalar expression")}checkCallFunction(e){var t;let a=null==(t=e.firstChild)?void 0:t.firstChild;if(!a)return void this.addDiagnostic(e,"function not defined");let i=e.getChild(34),r=i?i.getChildren("Expr"):[],n=y[a.type.id],o=n.argTypes.length;if(0===n.variadic)r.length!==o&&this.addDiagnostic(e,`expected ${o} argument(s) in call to "${n.name}", got ${r.length}`);else{let t=o-1;if(t>r.length)this.addDiagnostic(e,`expected at least ${t} argument(s) in call to "${n.name}", got ${r.length}`);else{let a=t+n.variadic;n.variadic>0&&a<r.length&&this.addDiagnostic(e,`expected at most ${a} argument(s) in call to "${n.name}", got ${r.length}`)}}let l=0;for(let e=0;e<r.length;e++){if((l=e)>=n.argTypes.length){if(0===n.variadic)break;l=n.argTypes.length-1}this.expectType(r[e],n.argTypes[l],`call to function "${n.name}"`)}}checkVectorSelector(e){let t=e.getChild(133),a=_(t?t.getChildren(134):[],this.state),i="",r=e.getChild(53);if(r&&(i=this.state.sliceDoc(r.from,r.to)),""!==i){let t=a.find(e=>"__name__"===e.name);t&&this.addDiagnostic(e,`metric name must not be set twice: ${i} or ${t.value}`),a.push(new b(136,"__name__",i))}a.every(e=>e.matchesEmpty())&&this.addDiagnostic(e,"vector selector must contain at least one non-empty matcher")}expectType(e,t,a){let i=this.checkAST(e);i!==t&&this.addDiagnostic(e,`expected type ${t} in ${a}, got ${i}`)}addDiagnostic(e,t){this.diagnostics.push({severity:"error",message:t,from:e.from,to:e.to})}}var X=a(13018);let k=[{label:"^"},{label:"*"},{label:"/"},{label:"%"},{label:"+"},{label:"-"},{label:"=="},{label:">="},{label:">"},{label:"<"},{label:"<="},{label:"!="},{label:"atan2"},{label:"and"},{label:"or"},{label:"unless"}],S=[{label:"avg",detail:"aggregation",info:"Calculate the average over dimensions",type:"keyword"},{label:"bottomk",detail:"aggregation",info:"Smallest k elements by sample value",type:"keyword"},{label:"count",detail:"aggregation",info:"Count number of elements in the vector",type:"keyword"},{label:"count_values",detail:"aggregation",info:"Count number of elements with the same value",type:"keyword"},{label:"group",detail:"aggregation",info:"Group series, while setting the sample value to 1",type:"keyword"},{label:"max",detail:"aggregation",info:"Select maximum over dimensions",type:"keyword"},{label:"min",detail:"aggregation",info:"Select minimum over dimensions",type:"keyword"},{label:"quantile",detail:"aggregation",info:"Calculate φ-quantile (0 ≤ φ ≤ 1) over dimensions",type:"keyword"},{label:"stddev",detail:"aggregation",info:"Calculate population standard deviation over dimensions",type:"keyword"},{label:"stdvar",detail:"aggregation",info:"Calculate population standard variance over dimensions",type:"keyword"},{label:"sum",detail:"aggregation",info:"Calculate sum over dimensions",type:"keyword"},{label:"topk",detail:"aggregation",info:"Largest k elements by sample value",type:"keyword"}],E=[{label:"sum(rate(__input_vector__[5m]))",type:"function",detail:"snippet",info:"Sum over rates of increase",apply:(0,X.DB)("sum(rate(${__input_vector__}[5m]))")},{label:"histogram_quantile(__quantile__, sum by(le) (rate(__histogram_metric__[5m])))",type:"function",detail:"snippet",info:"Approximate a quantile value from an aggregated histogram",apply:(0,X.DB)("histogram_quantile(${__quantile__}, sum by(le) (rate(${__histogram_metric__}[5m])))")},{label:'label_replace(__input_vector__, "__dst__", "__replacement__", "__src__", "__regex__")',type:"function",detail:"snippet",info:"Set or replace a label value in an input vector",apply:(0,X.DB)('label_replace(${__input_vector__}, "${__dst__}", "${__replacement__}", "${__src__}", "${__regex__}")')},{label:"topk(__rank_number__, __input_vector__)",type:"function",detail:"snippet",info:"Largest k elements by sample value",apply:(0,X.DB)("topk(${__rank_number__}, ${__input_vector__})")},{label:"bottomk(__rank_number__, __input_vector__)",type:"function",detail:"snippet",info:"Smallest k elements by sample value",apply:(0,X.DB)("bottomk(${__rank_number__}, ${__input_vector__})")},{label:'count_values("__label_name__", __input_vector__)',type:"function",detail:"snippet",info:"Count the number of series per distinct sample value",apply:(0,X.DB)('count_values("${__label_name__}", ${__metric__})')}],C=[{label:"="},{label:"!="},{label:"=~"},{label:"!~"}],D=[{label:"y"},{label:"w"},{label:"d"},{label:"h"},{label:"m"},{label:"s"},{label:"ms"}],q=[{label:"on",info:"Match only on specified labels",type:"keyword"},{label:"ignoring",info:"Ignore specified labels for matching",type:"keyword"},{label:"group_left",info:"Allow many-to-one matching",type:"keyword"},{label:"group_right",info:"Allow one-to-many matching",type:"keyword"}],R=[{label:"start()",info:"resolve to the start of the query",type:"keyword"},{label:"end()",info:"resolve to the end of the query",type:"keyword"}],M=[{label:"abs",detail:"function",info:"Return absolute values of input series",type:"function"},{label:"absent",detail:"function",info:"Determine whether input vector is empty",type:"function"},{label:"absent_over_time",detail:"function",info:"Determine whether input range vector is empty",type:"function"},{label:"acos",detail:"function",info:"Calculate the arccosine, in radians, for input series",type:"function"},{label:"acosh",detail:"function",info:"Calculate the inverse hyperbolic cosine, in radians, for input series",type:"function"},{label:"asin",detail:"function",info:"Calculate the arcsine, in radians, for input series",type:"function"},{label:"asinh",detail:"function",info:"Calculate the inverse hyperbolic sine, in radians, for input series",type:"function"},{label:"atan",detail:"function",info:"Calculate the arctangent, in radians, for input series",type:"function"},{label:"atanh",detail:"function",info:"Calculate the inverse hyperbolic tangent, in radians, for input series",type:"function"},{label:"avg_over_time",detail:"function",info:"Average series values over time",type:"function"},{label:"ceil",detail:"function",info:"Round up values of input series to nearest integer",type:"function"},{label:"changes",detail:"function",info:"Return number of value changes in input series over time",type:"function"},{label:"clamp",detail:"function",info:"Limit the value of input series between a minimum and a maximum",type:"function"},{label:"clamp_max",detail:"function",info:"Limit the value of input series to a maximum",type:"function"},{label:"clamp_min",detail:"function",info:"Limit the value of input series to a minimum",type:"function"},{label:"cos",detail:"function",info:"Calculate the cosine, in radians, for input series",type:"function",boost:-1},{label:"cosh",detail:"function",info:"Calculate the hyperbolic cosine, in radians, for input series",type:"function",boost:-1},{label:"count_over_time",detail:"function",info:"Count the number of values for each input series",type:"function"},{label:"days_in_month",detail:"function",info:"Return the number of days in current month for provided timestamps",type:"function"},{label:"day_of_month",detail:"function",info:"Return the day of the month for provided timestamps",type:"function"},{label:"day_of_week",detail:"function",info:"Return the day of the week for provided timestamps",type:"function"},{label:"day_of_year",detail:"function",info:"Return the day of the year for provided timestamps",type:"function"},{label:"deg",detail:"function",info:"Convert radians to degrees for input series",type:"function",boost:-1},{label:"delta",detail:"function",info:"Calculate the difference between beginning and end of a range vector (for gauges)",type:"function"},{label:"deriv",detail:"function",info:"Calculate the per-second derivative over series in a range vector (for gauges)",type:"function"},{label:"exp",detail:"function",info:"Calculate exponential function for input vector values",type:"function"},{label:"floor",detail:"function",info:"Round down values of input series to nearest integer",type:"function"},{label:"histogram_count",detail:"function",info:"Return the count of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_fraction",detail:"function",info:"Calculate fractions of observations within an interval from a native histogram (experimental feature)",type:"function"},{label:"histogram_quantile",detail:"function",info:"Calculate quantiles from native histograms (experimental) and from conventional histogram buckets",type:"function"},{label:"histogram_sum",detail:"function",info:"Return the sum of observations from a native histogram (experimental feature)",type:"function"},{label:"holt_winters",detail:"function",info:"Calculate smoothed value of input series",type:"function"},{label:"hour",detail:"function",info:"Return the hour of the day for provided timestamps",type:"function"},{label:"idelta",detail:"function",info:"Calculate the difference between the last two samples of a range vector (for counters)",type:"function"},{label:"increase",detail:"function",info:"Calculate the increase in value over a range of time (for counters)",type:"function"},{label:"irate",detail:"function",info:"Calculate the per-second increase over the last two samples of a range vector (for counters)",type:"function"},{label:"label_replace",detail:"function",info:"Set or replace label values",type:"function"},{label:"label_join",detail:"function",info:"Join together label values into new label",type:"function"},{label:"last_over_time",detail:"function",info:"The most recent point value in specified interval.",type:"function"},{label:"ln",detail:"function",info:"Calculate natural logarithm of input series",type:"function"},{label:"log10",detail:"function",info:"Calulcate base-10 logarithm of input series",type:"function"},{label:"log2",detail:"function",info:"Calculate base-2 logarithm of input series",type:"function"},{label:"max_over_time",detail:"function",info:"Return the maximum value over time for input series",type:"function"},{label:"min_over_time",detail:"function",info:"Return the minimum value over time for input series",type:"function"},{label:"minute",detail:"function",info:"Return the minute of the hour for provided timestamps",type:"function"},{label:"month",detail:"function",info:"Return the month for provided timestamps",type:"function"},{label:"pi",detail:"function",info:"Return pi",type:"function"},{label:"predict_linear",detail:"function",info:"Predict the value of a gauge into the future",type:"function"},{label:"present_over_time",detail:"function",info:"the value 1 for any series in the specified interval",type:"function"},{label:"quantile_over_time",detail:"function",info:"Calculate value quantiles over time for input series",type:"function"},{label:"rad",detail:"function",info:"Convert degrees to radians for input series",type:"function",boost:-1},{label:"rate",detail:"function",info:"Calculate per-second increase over a range vector (for counters)",type:"function"},{label:"resets",detail:"function",info:"Return number of value decreases (resets) in input series of time",type:"function"},{label:"round",detail:"function",info:"Round values of input series to nearest integer",type:"function"},{label:"scalar",detail:"function",info:"Convert single-element series vector into scalar value",type:"function"},{label:"sgn",detail:"function",info:"Returns the sign of the instant vector",type:"function"},{label:"sin",detail:"function",info:"Calculate the sine, in radians, for input series",type:"function"},{label:"sinh",detail:"function",info:"Calculate the hyperbolic sine, in radians, for input series",type:"function"},{label:"sort",detail:"function",info:"Sort input series ascendingly by value",type:"function"},{label:"sort_desc",detail:"function",info:"Sort input series descendingly by value",type:"function"},{label:"sqrt",detail:"function",info:"Return the square root for input series",type:"function"},{label:"stddev_over_time",detail:"function",info:"Calculate the standard deviation within input series over time",type:"function"},{label:"stdvar_over_time",detail:"function",info:"Calculate the standard variation within input series over time",type:"function"},{label:"sum_over_time",detail:"function",info:"Calculate the sum over the values of input series over time",type:"function"},{label:"tan",detail:"function",info:"Calculate the tangent, in radians, for input series",type:"function"},{label:"tanh",detail:"function",info:"Calculate the hyperbolic tangent, in radians, for input series",type:"function"},{label:"time",detail:"function",info:"Return the Unix timestamp at the current evaluation time",type:"function"},{label:"timestamp",detail:"function",info:"Return the Unix timestamp for the samples in the input vector",type:"function"},{label:"vector",detail:"function",info:"Convert a scalar value into a single-element series vector",type:"function"},{label:"year",detail:"function",info:"Return the year for provided timestamps",type:"function"}],A=[{label:"by",info:"Keep the listed labels, remove all others.",type:"keyword"},{label:"without",info:"Remove the listed labels, preserve all others.",type:"keyword"}],V=[{label:"nan",info:"Floating-point NaN value",type:"constant"},{label:"inf",info:"Floating-point infinity",type:"constant"}];function Y(e,t){let a=Q(e,132);return a&&(a=a.getChild(53))?t.sliceDoc(a.from,a.to):""}(n=c||(c={}))[n.MetricName=0]="MetricName",n[n.LabelName=1]="LabelName",n[n.LabelValue=2]="LabelValue",n[n.Function=3]="Function",n[n.Aggregation=4]="Aggregation",n[n.BinOpModifier=5]="BinOpModifier",n[n.BinOp=6]="BinOp",n[n.MatchOp=7]="MatchOp",n[n.AggregateOpModifier=8]="AggregateOpModifier",n[n.Duration=9]="Duration",n[n.Offset=10]="Offset",n[n.Bool=11]="Bool",n[n.AtModifiers=12]="AtModifiers",n[n.Number=13]="Number";class N{constructor(e,t=1e4){this.prometheusClient=e,this.maxMetricsMetadata=t}getPrometheusClient(){return this.prometheusClient}promQL(e){let{state:t,pos:a}=e,i=(0,x.qz)(t).resolve(a,-1),r=function(e,t){var a,i,r,n,o,l,s,u,h,p,O,d,v,m;let f=[];switch(t.type.id){case 0:if((null==(a=t.parent)?void 0:a.type.id)===126){f.push({kind:c.Duration});break}if((null==(i=t.parent)?void 0:i.type.id)===134){f.push({kind:c.MatchOp});break}if((null==(r=t.parent)?void 0:r.type.id)===123||(null==(n=t.parent)?void 0:n.type.id)===129&&P(t.parent,124)){f.push({kind:c.Duration});break}let g=e.sliceDoc(t.from,t.to);k.filter(e=>e.label.includes(g)).length>0&&f.push({kind:c.BinOp});break;case 53:if((null==(o=t.parent)?void 0:o.type.id)===0){let a=t.parent.parent;if((null==a?void 0:a.type.id)===139){f.push({kind:c.AtModifiers});break}if((null==a?void 0:a.type.id)===29){f.push({kind:c.AggregateOpModifier},{kind:c.BinOp});break}if((null==a?void 0:a.type.id)===132){let a=Y(t,e);S.filter(e=>e.label===a).length>0&&f.push({kind:c.AggregateOpModifier}),f.push({kind:c.BinOp},{kind:c.Offset});break}if(a&&w(a,"Expr")){f.push({kind:c.BinOp},{kind:c.Offset});break}}let $=null==(l=t.parent)?void 0:l.parent;if(!$){f.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)});break}w($,"Expr","Expr")?35!==$.type.id||P($,0)||(f.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)},{kind:c.Function},{kind:c.Aggregation},{kind:c.BinOpModifier},{kind:c.Number}),P($,44,45,46,47,48,49)&&!P($,37)&&f.push({kind:c.Bool})):(f.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)},{kind:c.Function},{kind:c.Aggregation}),34!==$.type.id&&123!==$.type.id&&f.push({kind:c.Number}));break;case 28:null!==t.firstChild&&0===t.firstChild.type.id&&f.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation},{kind:c.Number});break;case 32:f.push({kind:c.LabelName,metricName:function(e,t){let a=Q(e,29);if(!a)return"";let i="";return a.cursor().iterate(e=>{if(132===e.type.id&&(i=Y(e.node,t)))return!1}),i}(t,e)});break;case 133:f.push({kind:c.LabelName,metricName:Y(t,e)});break;case 33:(null==(s=t.parent)?void 0:s.type.id)===32?f.push({kind:c.LabelName}):(null==(u=t.parent)?void 0:u.type.id)===134&&f.push({kind:c.LabelName,metricName:Y(t,e)});break;case 128:if((null==(h=t.parent)?void 0:h.type.id)===134){let a="";(null==(p=t.parent.firstChild)?void 0:p.type.id)===33&&(a=e.sliceDoc(t.parent.firstChild.from,t.parent.firstChild.to));let i=Y(t,e),r=Q(t,133),n=_(r?r.getChildren(134):[],e);f.push({kind:c.LabelValue,metricName:i,labelName:a,matchers:n})}break;case 125:(null==(O=t.parent)?void 0:O.type.id)===0&&(null==(d=t.parent.parent)?void 0:d.type.id)===129?f.push({kind:c.Duration}):f.push({kind:c.Number});break;case 124:case 126:f.push({kind:c.Duration});break;case 34:f.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation});break;case 49:(null==(v=t.parent)?void 0:v.type.id)===135?f.push({kind:c.MatchOp}):(null==(m=t.parent)?void 0:m.type.id)===35&&f.push({kind:c.BinOp});break;case 136:case 137:case 138:case 135:f.push({kind:c.MatchOp});break;case 36:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 48:case 22:case 24:case 23:case 35:f.push({kind:c.BinOp})}return f}(t,i),n=Promise.resolve([]),o=!1,l=!0;for(let e of r)switch(e.kind){case c.Aggregation:o=!0,n=n.then(e=>e.concat(S));break;case c.Function:o=!0,n=n.then(e=>e.concat(M));break;case c.BinOpModifier:n=n.then(e=>e.concat(q));break;case c.BinOp:n=n.then(e=>e.concat(k));break;case c.MatchOp:n=n.then(e=>e.concat(C));break;case c.AggregateOpModifier:n=n.then(e=>e.concat(A));break;case c.Duration:l=!1,n=n.then(e=>e.concat(D));break;case c.Offset:n=n.then(e=>e.concat([{label:"offset"}]));break;case c.Bool:n=n.then(e=>e.concat([{label:"bool"}]));break;case c.AtModifiers:n=n.then(e=>e.concat(R));break;case c.Number:n=n.then(e=>e.concat(V));break;case c.MetricName:n=n.then(t=>this.autocompleteMetricName(t,e));break;case c.LabelName:n=n.then(t=>this.autocompleteLabelName(t,e));break;case c.LabelValue:n=n.then(t=>this.autocompleteLabelValue(t,e))}return n.then(e=>(function(e,t,a,i=!1,r=!0){return i&&e.push(...E),{from:t,to:a,options:e,validFor:r?/^[a-zA-Z0-9_:]+$/:void 0}})(e,function(e,t){var a,i,r,n,o,l;let s=e.from;if(133===e.type.id||32===e.type.id){let a;a=e.from+1,null!==e.firstChild&&(a=t),s=a}else 34===e.type.id||128===e.type.id&&(null==(a=e.parent)?void 0:a.type.id)===134?s++:(126===e.type.id||125===e.type.id&&(null==(i=e.parent)?void 0:i.type.id)===0&&(null==(r=e.parent.parent)?void 0:r.type.id)===129||0===e.type.id&&((null==(n=e.parent)?void 0:n.type.id)===126||(null==(o=e.parent)?void 0:o.type.id)===123||(null==(l=e.parent)?void 0:l.type.id)===129&&P(e.parent,124)))&&(s=t);return s}(i,a),a,o,l))}autocompleteMetricName(e,t){if(!this.prometheusClient)return e;let a=new Map;return this.prometheusClient.metricNames(t.metricName).then(e=>{var t;for(let t of e)a.set(t,{label:t,type:"constant"});if(e.length<=this.maxMetricsMetadata)return null==(t=this.prometheusClient)?void 0:t.metricMetadata()}).then(t=>{if(t)for(let[e,i]of a){let a=t[e.replace(/(_count|_sum|_bucket)$/,"")];if(a){if(a.length>1)for(let e of a)""===i.detail?i.detail=e.type:i.detail!==e.type&&(i.detail="unknown",i.info="multiple different definitions for this metric"),""===i.info?i.info=e.help:i.info!==e.help&&(i.info="multiple different definitions for this metric");else if(1===a.length){let{type:t,help:r}=a[0];("histogram"===t||"summary"===t)&&(e.endsWith("_count")&&(t="counter",r=`The total number of observations for: ${r}`),e.endsWith("_sum")&&(t="counter",r=`The total sum of observations for: ${r}`),e.endsWith("_bucket")&&(t="counter",r=`The total count of observations for a bucket in the histogram: ${r}`)),i.detail=t,i.info=r}}}return e.concat(Array.from(a.values()))})}autocompleteLabelName(e,t){return this.prometheusClient?this.prometheusClient.labelNames(t.metricName).then(t=>e.concat(t.map(e=>({label:e,type:"constant"})))):e}autocompleteLabelValue(e,t){return this.prometheusClient&&t.labelName?this.prometheusClient.labelValues(t.labelName,t.metricName,t.matchers).then(t=>e.concat(t.map(e=>({label:e,type:"text"})))):e}}var L=a(54685),F=a.n(L);class z{constructor(e){this.lookbackInterval=432e5,this.httpMethod="POST",this.apiPrefix="/api/v1",this.fetchFn=(e,t)=>fetch(e,t),this.url=e.url?e.url:"",this.errorHandler=e.httpErrorHandler,e.lookbackInterval&&(this.lookbackInterval=e.lookbackInterval),e.fetchFn&&(this.fetchFn=e.fetchFn),e.httpMethod&&(this.httpMethod=e.httpMethod),e.apiPrefix&&(this.apiPrefix=e.apiPrefix)}labelNames(e){let t=new Date,a=new Date(t.getTime()-this.lookbackInterval);if(void 0===e||""===e){let e=this.buildRequest(this.labelsEndpoint(),new URLSearchParams({start:a.toISOString(),end:t.toISOString()}));return this.fetchAPI(e.uri,{method:this.httpMethod,body:e.body}).catch(e=>(this.errorHandler&&this.errorHandler(e),[]))}return this.series(e).then(e=>{let t=new Set;for(let a of e)for(let[e]of Object.entries(a))"__name__"!==e&&t.add(e);return Array.from(t)})}labelValues(e,t,a){let i=new Date,r=new Date(i.getTime()-this.lookbackInterval);if(!t||0===t.length){let t=new URLSearchParams({start:r.toISOString(),end:i.toISOString()});return this.fetchAPI(`${this.labelValuesEndpoint().replace(/:name/gi,e)}?${t}`).catch(e=>(this.errorHandler&&this.errorHandler(e),[]))}return this.series(t,a,e).then(t=>{let a=new Set;for(let i of t)for(let[t,r]of Object.entries(i))"__name__"!==t&&t===e&&a.add(r);return Array.from(a)})}metricMetadata(){return this.fetchAPI(this.metricMetadataEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}series(e,t,a){let i=new Date,r=new Date(i.getTime()-this.lookbackInterval),n=this.buildRequest(this.seriesEndpoint(),new URLSearchParams({start:r.toISOString(),end:i.toISOString(),"match[]":function(e,t,a){if(!t||0===t.length)return e;let i="";for(let e of t){if(e.name===a||""===e.value)continue;let t="";switch(e.type){case 136:default:t="=";break;case 49:t="!=";break;case 138:t="!~";break;case 137:t="=~"}let r=`${e.name}${t}"${e.value}"`;i=""===i?r:`${i},${r}`}return`${e}{${i}}`}(e,t,a)}));return this.fetchAPI(n.uri,{method:this.httpMethod,body:n.body}).catch(e=>(this.errorHandler&&this.errorHandler(e),[]))}metricNames(){return this.labelValues("__name__")}flags(){return this.fetchAPI(this.flagsEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}fetchAPI(e,t){return this.fetchFn(this.url+e,t).then(e=>{if(!e.ok&&![400,422,503].includes(e.status))throw Error(e.statusText);return e}).then(e=>e.json()).then(e=>{if("error"===e.status)throw Error(void 0!==e.error?e.error:'missing "error" field in response JSON');if(void 0===e.data)throw Error('missing "data" field in response JSON');return e.data})}buildRequest(e,t){let a=e,i=t;return"GET"===this.httpMethod&&(a=`${a}?${t}`,i=null),{uri:a,body:i}}labelsEndpoint(){return`${this.apiPrefix}/labels`}labelValuesEndpoint(){return`${this.apiPrefix}/label/:name/values`}seriesEndpoint(){return`${this.apiPrefix}/series`}metricMetadataEndpoint(){return`${this.apiPrefix}/metadata`}flagsEndpoint(){return`${this.apiPrefix}/status/flags`}}class j{constructor(e){let t=e&&e.maxAge?e.maxAge:3e5;this.completeAssociation=new(F())(t),this.metricMetadata={},this.labelValues=new(F())(t),this.labelNames=[],this.flags={},(null==e?void 0:e.initialMetricList)&&this.setLabelValues("__name__",e.initialMetricList)}setAssociations(e,t){t.forEach(t=>{let a=this.completeAssociation.get(e);for(let[i,r]of(a||(a=new Map,this.completeAssociation.set(e,a)),Object.entries(t))){if("__name__"===i)continue;let e=a.get(i);void 0===e?a.set(i,new Set([r])):e.add(r)}})}setFlags(e){this.flags=e}getFlags(){return this.flags}setMetricMetadata(e){this.metricMetadata=e}getMetricMetadata(){return this.metricMetadata}setLabelNames(e){this.labelNames=e}getLabelNames(e){if(!e||0===e.length)return this.labelNames;let t=this.completeAssociation.get(e);return t?Array.from(t.keys()):[]}setLabelValues(e,t){this.labelValues.set(e,t)}getLabelValues(e,t){if(!t||0===t.length)return this.labelValues.get(e)||[];let a=this.completeAssociation.get(t);if(a){let t=a.get(e);return t?Array.from(t):[]}return[]}}class W{constructor(e,t){this.client=e,this.cache=new j(t)}labelNames(e){let t=this.cache.getLabelNames(e);return t&&t.length>0?Promise.resolve(t):void 0===e||""===e?this.client.labelNames().then(e=>(this.cache.setLabelNames(e),e)):this.series(e).then(()=>this.cache.getLabelNames(e))}labelValues(e,t){let a=this.cache.getLabelValues(e,t);return a&&a.length>0?Promise.resolve(a):void 0===t||""===t?this.client.labelValues(e).then(t=>(this.cache.setLabelValues(e,t),t)):this.series(t).then(()=>this.cache.getLabelValues(e,t))}metricMetadata(){let e=this.cache.getMetricMetadata();return e&&Object.keys(e).length>0?Promise.resolve(e):this.client.metricMetadata().then(e=>(this.cache.setMetricMetadata(e),e))}series(e){return this.client.series(e).then(t=>(this.cache.setAssociations(e,t),t))}metricNames(){return this.labelValues("__name__")}flags(){let e=this.cache.getFlags();return e&&Object.keys(e).length>0?Promise.resolve(e):this.client.flags().then(e=>(this.cache.setFlags(e),e))}}function B(e){if(null==e?void 0:e.completeStrategy)return e.completeStrategy;if(null==e?void 0:e.remote){var t;return"function"==typeof(t=e.remote).labelNames&&"function"==typeof t.labelValues&&"function"==typeof t.metricMetadata&&"function"==typeof t.series&&"function"==typeof t.metricNames?new N(e.remote,e.maxMetricsMetadata):new N(new W(new z(e.remote),e.remote.cache),e.maxMetricsMetadata)}return new N}var G=a(68799);class U{promQL(){return e=>{let t=new T(e.state);return t.analyze(),t.getDiagnostics()}}}(o=u||(u={})).PromQL="PromQL",o.MetricName="MetricName";class I{constructor(){this.complete=B(),this.lint=new U,this.enableLinter=!0,this.enableCompletion=!0}setComplete(e){return this.complete=B(e),this}getComplete(){return this.complete}activateCompletion(e){return this.enableCompletion=e,this}setLinter(e){return this.lint=e,this}getLinter(){return this.lint}activateLinter(e){return this.enableLinter=e,this}asExtension(e=u.PromQL){var t,a;let i=x.qp.define({parser:$.configure({top:e}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}),r=[i];if(this.enableCompletion){let e=i.data.of({autocomplete:e=>this.complete.promQL(e)});r=r.concat(e)}return this.enableLinter&&(r=r.concat((t=this.lint.promQL,a=this.lint,(0,G.ir)(t.call(a))))),r}}},54685:function(e,t,a){let i=a(94403),r=Symbol("max"),n=Symbol("length"),o=Symbol("lengthCalculator"),l=Symbol("allowStale"),s=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),h=Symbol("lruList"),p=Symbol("cache"),O=Symbol("updateAgeOnGet"),d=()=>1,v=(e,t,a)=>{let i=e[p].get(t);if(i){let t=i.value;if(m(e,t)){if(g(e,i),!e[l])return}else a&&(e[O]&&(i.value.now=Date.now()),e[h].unshiftNode(i));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[s])return!1;let a=Date.now()-t.now;return t.maxAge?a>t.maxAge:e[s]&&a>e[s]},f=e=>{if(e[n]>e[r])for(let t=e[h].tail;e[n]>e[r]&&null!==t;){let a=t.prev;g(e,t),t=a}},g=(e,t)=>{if(t){let a=t.value;e[c]&&e[c](a.key,a.value),e[n]-=a.length,e[p].delete(a.key),e[h].removeNode(t)}};class ${constructor(e,t,a,i,r){this.key=e,this.value=t,this.length=a,this.now=i,this.maxAge=r||0}}let y=(e,t,a,i)=>{let r=a.value;m(e,r)&&(g(e,a),e[l]||(r=void 0)),r&&t.call(i,r.value,r.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[r]=e.max||1/0;let t=e.length||d;if(this[o]="function"!=typeof t?d:t,this[l]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[s]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[O]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[r]=e||1/0,f(this)}get max(){return this[r]}set allowStale(e){this[l]=!!e}get allowStale(){return this[l]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[s]=e,f(this)}get maxAge(){return this[s]}set lengthCalculator(e){"function"!=typeof e&&(e=d),e!==this[o]&&(this[o]=e,this[n]=0,this[h].forEach(e=>{e.length=this[o](e.value,e.key),this[n]+=e.length})),f(this)}get lengthCalculator(){return this[o]}get length(){return this[n]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let a=this[h].tail;null!==a;){let i=a.prev;y(this,e,a,t),a=i}}forEach(e,t){t=t||this;for(let a=this[h].head;null!==a;){let i=a.next;y(this,e,a,t),a=i}}keys(){return this[h].toArray().map(e=>e.key)}values(){return this[h].toArray().map(e=>e.value)}reset(){this[c]&&this[h]&&this[h].length&&this[h].forEach(e=>this[c](e.key,e.value)),this[p]=new Map,this[h]=new i,this[n]=0}dump(){return this[h].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[h]}set(e,t,a){if((a=a||this[s])&&"number"!=typeof a)throw TypeError("maxAge must be a number");let i=a?Date.now():0,l=this[o](t,e);if(this[p].has(e)){if(l>this[r])return g(this,this[p].get(e)),!1;let o=this[p].get(e).value;return this[c]&&!this[u]&&this[c](e,o.value),o.now=i,o.maxAge=a,o.value=t,this[n]+=l-o.length,o.length=l,this.get(e),f(this),!0}let O=new $(e,t,l,i,a);return O.length>this[r]?(this[c]&&this[c](e,t),!1):(this[n]+=O.length,this[h].unshift(O),this[p].set(e,this[h].head),f(this),!0)}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value)}get(e){return v(this,e,!0)}peek(e){return v(this,e,!1)}pop(){let e=this[h].tail;return e?(g(this,e),e.value):null}del(e){g(this,this[p].get(e))}load(e){this.reset();let t=Date.now();for(let a=e.length-1;a>=0;a--){let i=e[a],r=i.e||0;if(0===r)this.set(i.k,i.v);else{let e=r-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[p].forEach((e,t)=>v(this,t,!1))}}},80663:function(e){e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},94403:function(e,t,a){function i(e){var t=this;if(t instanceof i||(t=new i),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var a=0,r=arguments.length;a<r;a++)t.push(arguments[a]);return t}function r(e,t,a,i){if(!(this instanceof r))return new r(e,t,a,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,a?(a.prev=this,this.next=a):this.next=null}e.exports=i,i.Node=r,i.create=i,i.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,a=e.prev;return t&&(t.prev=a),a&&(a.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=a),e.list.length--,e.next=null,e.prev=null,e.list=null,t},i.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},i.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},i.prototype.push=function(){for(var e,t,a=0,i=arguments.length;a<i;a++){e=this,t=arguments[a],e.tail=new r(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}return this.length},i.prototype.unshift=function(){for(var e,t,a=0,i=arguments.length;a<i;a++){e=this,t=arguments[a],e.head=new r(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}return this.length},i.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},i.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},i.prototype.forEach=function(e,t){t=t||this;for(var a=this.head,i=0;null!==a;i++)e.call(t,a.value,i,this),a=a.next},i.prototype.forEachReverse=function(e,t){t=t||this;for(var a=this.tail,i=this.length-1;null!==a;i--)e.call(t,a.value,i,this),a=a.prev},i.prototype.get=function(e){for(var t=0,a=this.head;null!==a&&t<e;t++)a=a.next;if(t===e&&null!==a)return a.value},i.prototype.getReverse=function(e){for(var t=0,a=this.tail;null!==a&&t<e;t++)a=a.prev;if(t===e&&null!==a)return a.value},i.prototype.map=function(e,t){t=t||this;for(var a=new i,r=this.head;null!==r;)a.push(e.call(t,r.value,this)),r=r.next;return a},i.prototype.mapReverse=function(e,t){t=t||this;for(var a=new i,r=this.tail;null!==r;)a.push(e.call(t,r.value,this)),r=r.prev;return a},i.prototype.reduce=function(e,t){var a,i=this.head;if(arguments.length>1)a=t;else if(this.head)i=this.head.next,a=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var r=0;null!==i;r++)a=e(a,i.value,r),i=i.next;return a},i.prototype.reduceReverse=function(e,t){var a,i=this.tail;if(arguments.length>1)a=t;else if(this.tail)i=this.tail.prev,a=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var r=this.length-1;null!==i;r--)a=e(a,i.value,r),i=i.prev;return a},i.prototype.toArray=function(){for(var e=Array(this.length),t=0,a=this.head;null!==a;t++)e[t]=a.value,a=a.next;return e},i.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,a=this.tail;null!==a;t++)e[t]=a.value,a=a.prev;return e},i.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var a=new i;if(t<e||t<0)return a;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,n=this.head;null!==n&&r<e;r++)n=n.next;for(;null!==n&&r<t;r++,n=n.next)a.push(n.value);return a},i.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var a=new i;if(t<e||t<0)return a;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,n=this.tail;null!==n&&r>t;r--)n=n.prev;for(;null!==n&&r>e;r--,n=n.prev)a.push(n.value);return a},i.prototype.splice=function(e,t,...a){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,n=this.head;null!==n&&i<e;i++)n=n.next;for(var o=[],i=0;n&&i<t;i++)o.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(var i=0;i<a.length;i++)n=function(e,t,a){var i=t===e.head?new r(a,null,t,e):new r(a,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i}(this,n,a[i]);return o},i.prototype.reverse=function(){for(var e=this.head,t=this.tail,a=e;null!==a;a=a.prev){var i=a.prev;a.prev=a.next,a.next=i}return this.head=t,this.tail=e,this};try{a(80663)(i)}catch(e){}},78277:function(e,t,a){var i;t.default=void 0,t.default=(0,((i=a(30265))&&i.__esModule?i:{default:i}).default)("M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z","AlertCircle")},96402:function(e,t,a){var i;t.default=void 0,t.default=(0,((i=a(30265))&&i.__esModule?i:{default:i}).default)("M3,3H9V7H3V3M15,10H21V14H15V10M15,17H21V21H15V17M13,13H7V18H13V20H7L5,20V9H7V11H13V13Z","FileTree")}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 5876.1976752d.js.LICENSE.txt */
2
- (self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["5876"],{12577:function(e,t,r){"use strict";r.d(t,{Z:()=>d});var n=r(54538),i=r(90496),o=r(82267),a=r(67488),s=r(52054),u=r(78849),c=r(12709),l=r(51751),f=r(14662),p=r(16351),h=r(24246);let g=(0,c.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${f.Z.primary}`]:t.primary},{[`& .${f.Z.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${a.Z.root}:where(& .${f.Z.primary})`]:{display:"block"},[`.${a.Z.root}:where(& .${f.Z.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),d=n.forwardRef(function(e,t){let r=(0,l.i)({props:e,name:"MuiListItemText"}),{children:a,className:c,disableTypography:d=!1,inset:m=!1,primary:y,primaryTypographyProps:b,secondary:v,secondaryTypographyProps:x,slots:_={},slotProps:w={},...O}=r,{dense:j}=n.useContext(u.Z),S=null!=y?y:a,$=v,N={...r,disableTypography:d,inset:m,primary:!!S,secondary:!!$,dense:j},D=(e=>{let{classes:t,inset:r,primary:n,secondary:i,dense:a}=e;return(0,o.Z)({root:["root",r&&"inset",a&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},f.L,t)})(N),B={slots:_,slotProps:{primary:b,secondary:x,...w}},[k,A]=(0,p.Z)("root",{className:(0,i.Z)(D.root,c),elementType:g,externalForwardedProps:{...B,...O},ownerState:N,ref:t}),[F,E]=(0,p.Z)("primary",{className:D.primary,elementType:s.Z,externalForwardedProps:B,ownerState:N}),[M,P]=(0,p.Z)("secondary",{className:D.secondary,elementType:s.Z,externalForwardedProps:B,ownerState:N});return null==S||S.type===s.Z||d||(S=(0,h.jsx)(F,{variant:j?"body2":"body1",component:E?.variant?void 0:"span",...E,children:S})),null==$||$.type===s.Z||d||($=(0,h.jsx)(M,{variant:"body2",color:"textSecondary",...P,children:$})),(0,h.jsxs)(k,{...A,children:[S,$]})})},8193:function(e,t,r){"use strict";r.d(t,{BL:()=>u,Jj:()=>l,Kd:()=>n,Ys:()=>i,bk:()=>f,dT:()=>p,kx:()=>s,qF:()=>o,vo:()=>a,zx:()=>c});let n=["bottom","right"],i=["list","table"],o=["small","medium"];function a(e){return n.includes(e)}function s(e){return i.includes(e)}function u(e){return o.includes(e)}let c={position:"bottom",mode:"list",size:"medium"};function l(e){return void 0===e?c.position:a(e)?e:c.position}function f(e){return e&&s(e)?e:c.mode}function p(e){return e&&u(e)?e:c.size}},78737:function(e,t,r){"use strict";r.d(t,{R:()=>n});let n={JoinByColumnValue:"Join by column value",MergeColumns:"Merge columns",MergeIndexedColumns:"Merge indexed columns",MergeSeries:"Merge series"}},20147:function(e,t,r){"use strict";r.d(t,{$:()=>n});let n=3},1148:function(e,t,r){"use strict";r.d(t,{Bw:()=>er,lO:()=>ec,hv:()=>en,Yi:()=>eo,JZ:()=>eh,Fc:()=>eu,PX:()=>es,Bl:()=>et,M$:()=>ee,N9:()=>ei,Ay:()=>ep,__:()=>el,Fp:()=>ef,mb:()=>ea});var n,i,o,a,s,u,c,l,f,p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function h(){if(s)return a;s=1;let e=[{key:"ZiB",factor:11805916207174113e5},{key:"ZB",factor:1e21},{key:"YiB",factor:12089258196146292e8},{key:"YB",factor:1e24},{key:"TiB",factor:0x10000000000},{key:"TB",factor:1e12},{key:"PiB",factor:0x4000000000000},{key:"PB",factor:1e15},{key:"MiB",factor:1048576},{key:"MB",factor:1e6},{key:"KiB",factor:1024},{key:"KB",factor:1e3},{key:"GiB",factor:0x40000000},{key:"GB",factor:1e9},{key:"EiB",factor:0x1000000000000000},{key:"EB",factor:1e18},{key:"B",factor:1}];function t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}return a={unformat:function(r,n){let i,o=m(),a=o.currentDelimiters(),s=o.currentCurrency().symbol,u=o.currentOrdinal(),c=o.getZeroFormat(),l=o.currentAbbreviations();if("string"==typeof r)if(function(e,t){if(!(e.indexOf(":")&&":"!==t.thousands))return!1;let r=e.split(":");if(3!==r.length)return!1;let n=+r[0],i=+r[1],o=+r[2];return!isNaN(n)&&!isNaN(i)&&!isNaN(o)}(r,a)){let e,t,n;t=+(e=r.split(":"))[0],n=+e[1],i=+e[2]+60*n+3600*t}else i=function(r,n,i="",o,a,s,u){if(""!==r)return r===a?0:function r(n,i,o,a,s,u,c){if(!isNaN(+n))return+n;let l="",f=n.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(f!==n)return -1*r(f,i,o,a,s,u);for(let t=0;t<e.length;t++){let c=e[t];if((l=n.replace(RegExp(`([0-9 ])(${c.key})$`),"$1"))!==n)return r(l,i,o,a,s,u)*c.factor}if((l=n.replace("%",""))!==n)return r(l,i,o,a,s,u)/100;let p=parseFloat(n);if(isNaN(p))return;let h=a(p);if(h&&"."!==h&&(l=n.replace(RegExp(`${t(h)}$`),""))!==n)return r(l,i,o,a,s,u);let g={};Object.keys(u).forEach(e=>{g[u[e]]=e});let d=Object.keys(g).sort().reverse(),m=d.length;for(let e=0;e<m;e++){let t=d[e],c=g[t];if((l=n.replace(t,""))!==n){let e;switch(c){case"thousand":e=1e3;break;case"million":e=1e6;break;case"billion":e=1e9;break;case"trillion":e=1e12}return r(l,i,o,a,s,u)*e}}}(r.replace(i,"").replace(RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2").replace(n.decimal,"."),n,i,o,a,s)}(r,a,s,u,c,l);else{if("number"!=typeof r)return;i=r}if(void 0!==i)return i}}}function g(){if(c)return u;c=1;let e=h(),t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,r={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:(e,t)=>"byte"===t.output,message:"`base` must be provided only when the output is `byte`",mandatory:e=>"byte"===e.output},characteristic:{type:"number",restriction:e=>e>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:(e,t)=>!0===t.average,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:e=>e>=0,message:"value must be positive"},{restriction:(e,t)=>!t.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:e=>e>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(e,t)=>"percent"===t.output,message:"`prefixSymbol` can be provided only when the output is `percent`"}},n={languageTag:{type:"string",mandatory:!0,restriction:e=>e.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function i(t){return void 0!==e.unformat(t)}function o(e,t,n,i=!1){let a=Object.keys(e).map(i=>{if(!t[i])return console.error(`${n} Invalid key: ${i}`),!1;let a=e[i],s=t[i];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!o(a,r,`[Validate ${i}]`,!0))return!1}else if(typeof a!==s.type)return console.error(`${n} ${i} type mismatched: "${s.type}" expected, "${typeof a}" provided`),!1;if(s.restrictions&&s.restrictions.length){let t=s.restrictions.length;for(let r=0;r<t;r++){let{restriction:t,message:o}=s.restrictions[r];if(!t(a,e))return console.error(`${n} ${i} invalid value: ${o}`),!1}}return s.restriction&&!s.restriction(a,e)?(console.error(`${n} ${i} invalid value: ${s.message}`),!1):s.validValues&&-1===s.validValues.indexOf(a)?(console.error(`${n} ${i} invalid value: must be among ${JSON.stringify(s.validValues)}, "${a}" provided`),!1):(!s.children||!!o(a,s.children,`[Validate ${i}]`))&&!0});return i||a.push(...Object.keys(t).map(r=>{let i=t[r];if("string"==typeof i&&(i={type:i}),i.mandatory){let t=i.mandatory;if("function"==typeof t&&(t=t(e)),t&&void 0===e[r])return console.error(`${n} Missing mandatory key "${r}"`),!1}return!0})),a.reduce((e,t)=>e&&t,!0)}function a(e){return o(e,r,"[Validate format]")}return u={validate:function(e,t){let r=i(e),n=a(t);return r&&n},validateFormat:a,validateInput:i,validateLanguage:function(e){return o(e,n,"[Validate language]")}}}var d=function(e,t={}){var r,n,i,o,a,s;let u,c,l,f;if("string"!=typeof e)return e;n=e=(u=(r=e).match(/^{([^}]*)}/))?(t.prefix=u[1],r.slice(u[0].length)):r,function(e,t){if(-1!==e.indexOf("$")){t.output="currency";return}if(-1!==e.indexOf("%")){t.output="percent";return}if(-1!==e.indexOf("bd")){t.output="byte",t.base="general";return}if(-1!==e.indexOf("b")){t.output="byte",t.base="binary";return}if(-1!==e.indexOf("d")){t.output="byte",t.base="decimal";return}if(-1!==e.indexOf(":")){t.output="time";return}-1!==e.indexOf("o")&&(t.output="ordinal")}(e=(c=n.match(/{([^}]*)}$/))?(t.postfix=c[1],n.slice(0,-c[0].length)):n,t),(l=e.match(/[1-9]+[0-9]*/))&&(t.totalLength=+l[0]),(f=e.split(".")[0].match(/0+/))&&(t.characteristic=f[0].length),-1!==(i=e).indexOf(".")&&(t.optionalCharacteristic=-1===i.split(".")[0].indexOf("0")),-1!==e.indexOf("a")&&(t.average=!0),-1!==(o=e).indexOf("K")?t.forceAverage="thousand":-1!==o.indexOf("M")?t.forceAverage="million":-1!==o.indexOf("B")?t.forceAverage="billion":-1!==o.indexOf("T")&&(t.forceAverage="trillion");let p=e.split(".")[1];if(p){let e=p.match(/0+/);e&&(t.mantissa=e[0].length)}(a=e).match(/\[\.]/)?t.optionalMantissa=!0:a.match(/\./)&&(t.optionalMantissa=!1);let h=e.split(".")[1];return h&&(t.trimMantissa=-1!==h.indexOf("[")),-1!==e.indexOf(",")&&(t.thousandSeparated=!0),-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0)),(s=e).match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),s.match(/^\+?-/)&&(t.negative="sign"),e.match(/^\+/)&&(t.forceSign=!0),t};function m(){let e;if(f)return l;f=1;let t=o?i:(o=1,i={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}),r=g(),n={},a={},s=null,u={};function c(){return a[e]}return n.languages=()=>Object.assign({},a),n.currentLanguage=()=>e,n.currentBytes=()=>c().bytes||{},n.currentCurrency=()=>c().currency,n.currentAbbreviations=()=>c().abbreviations,n.currentDelimiters=()=>c().delimiters,n.currentOrdinal=()=>c().ordinal,n.currentDefaults=()=>Object.assign({},c().defaults,u),n.currentOrdinalDefaultFormat=()=>Object.assign({},n.currentDefaults(),c().ordinalFormat),n.currentByteDefaultFormat=()=>Object.assign({},n.currentDefaults(),c().byteFormat),n.currentPercentageDefaultFormat=()=>Object.assign({},n.currentDefaults(),c().percentageFormat),n.currentCurrencyDefaultFormat=()=>Object.assign({},n.currentDefaults(),c().currencyFormat),n.currentTimeDefaultFormat=()=>Object.assign({},n.currentDefaults(),c().timeFormat),n.setDefaults=e=>{e=d(e),r.validateFormat(e)&&(u=e)},n.getZeroFormat=()=>s,n.setZeroFormat=e=>s="string"==typeof e?e:null,n.hasZeroFormat=()=>null!==s,n.languageData=e=>{if(e){if(a[e])return a[e];throw Error(`Unknown tag "${e}"`)}return c()},n.registerLanguage=(t,n=!1)=>{if(!r.validateLanguage(t))throw Error("Invalid language data");a[t.languageTag]=t,n&&(e=t.languageTag)},n.setLanguage=(r,n=t.languageTag)=>{if(!a[r]){let t=r.split("-")[0],i=Object.keys(a).find(e=>e.split("-")[0]===t);return a[i]?void(e=i):void(e=n)}e=r},n.registerLanguage(t),e=t.languageTag,l=n}var y={exports:{}};(function(e){var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,o="[BigNumber Error] ",a=o+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function u(e){var t=0|e;return e>0||e===t?t:t-1}function c(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function l(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,u=e.e,c=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=u==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>c^r?1:-1;for(a=0,s=(u=i.length)<(c=o.length)?u:c;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return u==c?0:u>c^r?1:-1}function f(e,t,r,n){if(e<t||e>r||e!==i(e))throw Error(o+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function p(e){var t=e.c.length-1;return u(e.e/14)==t&&e.c[t]%2!=0}function h(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function g(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(t=function e(t){var d,m,y,b,v,x,_,w,O,j=L.prototype={constructor:L,toString:null,valueOf:null},S=new L(1),$=20,N=4,D=-7,B=21,k=-1e7,A=1e7,F=!1,E=1,M=0,P={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},T="0123456789abcdefghijklmnopqrstuvwxyz",C=!0;function L(e,t){var n,o,s,u,c,l,p,h,g=this;if(!(g instanceof L))return new L(e,t);if(null==t){if(e&&!0===e._isBigNumber){g.s=e.s,!e.c||e.e>A?g.c=g.e=null:e.e<k?g.c=[g.e=0]:(g.e=e.e,g.c=e.c.slice());return}if((l="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,c=e;c>=10;c/=10,u++);u>A?g.c=g.e=null:(g.e=u,g.c=[e]);return}h=String(e)}else{if(!r.test(h=String(e)))return O(g,h,l);g.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}(u=h.indexOf("."))>-1&&(h=h.replace(".","")),(c=h.search(/e/i))>0?(u<0&&(u=c),u+=+h.slice(c+1),h=h.substring(0,c)):u<0&&(u=h.length)}else{if(f(t,2,T.length,"Base"),10==t&&C)return z(g=new L(e),$+g.e+1,N);if(h=String(e),l="number"==typeof e){if(0*e!=0)return O(g,h,l,t);if(g.s=1/e<0?(h=h.slice(1),-1):1,L.DEBUG&&h.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else g.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(n=T.slice(0,t),u=c=0,p=h.length;c<p;c++)if(0>n.indexOf(o=h.charAt(c))){if("."==o){if(c>u){u=p;continue}}else if(!s&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){s=!0,c=-1,u=0;continue}return O(g,String(e),l,t)}l=!1,(u=(h=w(h,t,10,g.s)).indexOf("."))>-1?h=h.replace(".",""):u=h.length}for(c=0;48===h.charCodeAt(c);c++);for(p=h.length;48===h.charCodeAt(--p););if(h=h.slice(c,++p)){if(p-=c,l&&L.DEBUG&&p>15&&(e>0x1fffffffffffff||e!==i(e)))throw Error(a+g.s*e);if((u=u-c-1)>A)g.c=g.e=null;else if(u<k)g.c=[g.e=0];else{if(g.e=u,g.c=[],c=(u+1)%14,u<0&&(c+=14),c<p){for(c&&g.c.push(+h.slice(0,c)),p-=14;c<p;)g.c.push(+h.slice(c,c+=14));c=14-(h=h.slice(c)).length}else c-=p;for(;c--;h+="0");g.c.push(+h)}}else g.c=[g.e=0]}function U(e,t,r,n){var i,o,a,s,u;if(null==r?r=N:f(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)u=c(e.c),u=1==n||2==n&&(a<=D||a>=B)?h(u,a):g(u,a,"0");else if(o=(e=z(new L(e),t,r)).e,s=(u=c(e.c)).length,1==n||2==n&&(t<=o||o<=D)){for(;s<t;u+="0",s++);u=h(u,o)}else if(t-=a,u=g(u,o,"0"),o+1>s){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-s)>0)for(o+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function R(e,t){for(var r,n,i=1,o=new L(e[0]);i<e.length;i++)(n=new L(e[i])).s&&(r=l(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function I(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>A?e.c=e.e=null:r<k?e.c=[e.e=0]:(e.e=r,e.c=t),e}function z(e,t,r,o){var a,u,c,l,f,p,h,g=e.c;if(g){e:{for(a=1,l=g[0];l>=10;l/=10,a++);if((u=t-a)<0)u+=14,c=t,h=i((f=g[p=0])/s[a-c-1]%10);else if((p=n((u+1)/14))>=g.length)if(o){for(;g.length<=p;g.push(0));f=h=0,a=1,u%=14,c=u-14+1}else break e;else{for(a=1,f=l=g[p];l>=10;l/=10,a++);u%=14,h=(c=u-14+a)<0?0:i(f/s[a-c-1]%10)}if(o=o||t<0||null!=g[p+1]||(c<0?f:f%s[a-c-1]),o=r<4?(h||o)&&(0==r||r==(e.s<0?3:2)):h>5||5==h&&(4==r||o||6==r&&(u>0?c>0?f/s[a-c]:0:g[p-1])%10&1||r==(e.s<0?8:7)),t<1||!g[0])return g.length=0,o?(t-=e.e+1,g[0]=s[(14-t%14)%14],e.e=-t||0):g[0]=e.e=0,e;if(0==u?(g.length=p,l=1,p--):(g.length=p+1,l=s[14-u],g[p]=c>0?i(f/s[a-c]%s[c])*l:0),o)for(;;)if(0==p){for(u=1,c=g[0];c>=10;c/=10,u++);for(c=g[0]+=l,l=1;c>=10;c/=10,l++);u!=l&&(e.e++,1e14==g[0]&&(g[0]=1));break}else{if(g[p]+=l,1e14!=g[p])break;g[p--]=0,l=1}for(u=g.length;0===g[--u];g.pop());}e.e>A?e.c=e.e=null:e.e<k&&(e.c=[e.e=0])}return e}function G(e){var t,r=e.e;return null===r?e.toString():(t=c(e.c),t=r<=D||r>=B?h(t,r):g(t,r,"0"),e.s<0?"-"+t:t)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(f(r=e[t],0,1e9,t),$=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(f(r=e[t],0,8,t),N=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(f(r[0],-1e9,0,t),f(r[1],0,1e9,t),D=r[0],B=r[1]):(f(r,-1e9,1e9,t),D=-(B=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)f(r[0],-1e9,-1,t),f(r[1],1,1e9,t),k=r[0],A=r[1];else if(f(r,-1e9,1e9,t),r)k=-(A=r<0?-r:r);else throw Error(o+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))F=r;else throw F=!r,Error(o+"crypto unavailable");else F=r;else throw Error(o+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(f(r=e[t],0,9,t),E=r),e.hasOwnProperty(t="POW_PRECISION")&&(f(r=e[t],0,1e9,t),M=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))P=r;else throw Error(o+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(o+t+" invalid: "+r);C="0123456789"==r.slice(0,10),T=r}}else throw Error(o+"Object expected: "+e);return{DECIMAL_PLACES:$,ROUNDING_MODE:N,EXPONENTIAL_AT:[D,B],RANGE:[k,A],CRYPTO:F,MODULO_MODE:E,POW_PRECISION:M,FORMAT:P,ALPHABET:T}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var t,r,n=e.c,a=e.e,s=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===s||-1===s)&&a>=-1e9&&a<=1e9&&a===i(a)){if(0===n[0]){if(0===a&&1===n.length)return!0;break e}if((t=(a+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==i(r))break e;if(0!==r)return!0}}}else if(null===n&&null===a&&(null===s||1===s||-1===s))return!0;throw Error(o+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return R(arguments,-1)},L.minimum=L.min=function(){return R(arguments,1)},d=0x20000000000000*Math.random()&2097151?function(){return i(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},L.random=function(e){var t,r,a,u,c,l=0,p=[],h=new L(S);if(null==e?e=$:f(e,0,1e9),u=n(e/14),F)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(u*=2));l<u;)(c=131072*t[l]+(t[l+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(p.push(c%1e14),l+=2);l=u/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(u*=7);l<u;)(c=(31&t[l])*0x1000000000000+0x10000000000*t[l+1]+0x100000000*t[l+2]+0x1000000*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?crypto.randomBytes(7).copy(t,l):(p.push(c%1e14),l+=7);l=u/7}else throw F=!1,Error(o+"crypto unavailable");if(!F)for(;l<u;)(c=d())<9e15&&(p[l++]=c%1e14);for(u=p[--l],e%=14,u&&e&&(c=s[14-e],p[l]=i(u/c)*c);0===p[l];p.pop(),l--);if(l<0)p=[a=0];else{for(a=-1;0===p[0];p.splice(0,1),a-=14);for(l=1,c=p[0];c>=10;c/=10,l++);l<14&&(a-=14-l)}return h.e=a,h.c=p,h},L.sum=function(){for(var e=1,t=arguments,r=new L(t[0]);e<t.length;)r=r.plus(t[e++]);return r},w=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,u=e.length;s<u;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,u,l,f,p,h,d,m,y=r.indexOf("."),b=$,v=N;for(y>=0&&(f=M,M=0,r=r.replace(".",""),h=(m=new L(n)).pow(r.length-y),M=f,m.c=t(g(c(h.c),h.e,"0"),10,i,e),m.e=m.c.length),l=f=(d=t(r,n,i,a?(s=T,e):(s=e,T))).length;0==d[--f];d.pop());if(!d[0])return s.charAt(0);if(y<0?--l:(h.c=d,h.e=l,h.s=o,d=(h=_(h,m,b,v,i)).c,p=h.r,l=h.e),y=d[u=l+b+1],f=i/2,p=p||u<0||null!=d[u+1],p=v<4?(null!=y||p)&&(0==v||v==(h.s<0?3:2)):y>f||y==f&&(4==v||p||6==v&&1&d[u-1]||v==(h.s<0?8:7)),u<1||!d[0])r=p?g(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(d.length=u,p)for(--i;++d[--u]>i;)d[u]=0,u||(++l,d=[1].concat(d));for(f=d.length;!d[--f];);for(y=0,r="";y<=f;r+=s.charAt(d[y++]));r=g(r,l,s.charAt(0))}return r}}(),_=function(){function e(e,t,r){var n,i,o,a,s=0,u=e.length,c=t%1e7,l=t/1e7|0;for(e=e.slice();u--;)n=l*(o=e[u]%1e7)+(a=e[u]/1e7|0)*c,s=((i=c*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+l*a,e[u]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,o,a,s,c){var l,f,p,h,g,d,m,y,b,v,x,_,w,O,j,S,$,N=n.s==o.s?1:-1,D=n.c,B=o.c;if(!D||!D[0]||!B||!B[0])return new L(!n.s||!o.s||(D?B&&D[0]==B[0]:!B)?NaN:D&&0==D[0]||!B?0*N:N/0);for(b=(y=new L(N)).c=[],N=a+(f=n.e-o.e)+1,c||(c=1e14,f=u(n.e/14)-u(o.e/14),N=N/14|0),p=0;B[p]==(D[p]||0);p++);if(B[p]>(D[p]||0)&&f--,N<0)b.push(1),h=!0;else{for(O=D.length,S=B.length,p=0,N+=2,(g=i(c/(B[0]+1)))>1&&(B=e(B,g,c),D=e(D,g,c),S=B.length,O=D.length),w=S,x=(v=D.slice(0,S)).length;x<S;v[x++]=0);$=[0].concat($=B.slice()),j=B[0],B[1]>=c/2&&j++;do{if(g=0,(l=t(B,v,S,x))<0){if(_=v[0],S!=x&&(_=_*c+(v[1]||0)),(g=i(_/j))>1)for(g>=c&&(g=c-1),m=(d=e(B,g,c)).length,x=v.length;1==t(d,v,m,x);)g--,r(d,S<m?$:B,m,c),m=d.length,l=1;else 0==g&&(l=g=1),m=(d=B.slice()).length;if(m<x&&(d=[0].concat(d)),r(v,d,x,c),x=v.length,-1==l)for(;1>t(B,v,S,x);)g++,r(v,S<x?$:B,x,c),x=v.length}else 0===l&&(g++,v=[0]);b[p++]=g,v[0]?v[x++]=D[w]||0:(v=[D[w]],x=1)}while((w++<O||null!=v[0])&&N--);h=null!=v[0],b[0]||b.splice(0,1)}if(1e14==c){for(p=1,N=b[0];N>=10;N/=10,p++);z(y,a+(y.e=p+14*f-1)+1,s,h)}else y.e=f,y.r=+h;return y}}(),m=/^(-?)0([xbo])(?=\w[\w.]*$)/i,y=/^([^.]+)\.$/,b=/^\.([^.]+)$/,v=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,O=function(e,t,r,n){var i,a=r?t:t.replace(x,"");if(v.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!r&&(a=a.replace(m,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,a=a.replace(y,"$1").replace(b,"0.$1")),t!=a))return new L(a,i);if(L.DEBUG)throw Error(o+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},j.absoluteValue=j.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},j.comparedTo=function(e,t){return l(this,new L(e,t))},j.decimalPlaces=j.dp=function(e,t){var r,n,i;if(null!=e)return f(e,0,1e9),null==t?t=N:f(t,0,8),z(new L(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-u(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},j.dividedBy=j.div=function(e,t){return _(this,new L(e,t),$,N)},j.dividedToIntegerBy=j.idiv=function(e,t){return _(this,new L(e,t),0,1)},j.exponentiatedBy=j.pow=function(e,t){var r,a,s,u,c,l,f,h,g,d=this;if((e=new L(e)).c&&!e.isInteger())throw Error(o+"Exponent not an integer: "+G(e));if(null!=t&&(t=new L(t)),l=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return g=new L(Math.pow(+G(d),l?e.s*(2-p(e)):+G(e))),t?g.mod(t):g;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new L(NaN);(a=!f&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||l&&d.c[1]>=24e7:d.c[0]<8e13||l&&d.c[0]<=9999975e7)))return u=d.s<0&&p(e)?-0:0,d.e>-1&&(u=1/u),new L(f?1/u:u);M&&(u=n(M/14+2))}for(l?(r=new L(.5),f&&(e.s=1),h=p(e)):h=(s=Math.abs(+G(e)))%2,g=new L(S);;){if(h){if(!(g=g.times(d)).c)break;u?g.c.length>u&&(g.c.length=u):a&&(g=g.mod(t))}if(s){if(0===(s=i(s/2)))break;h=s%2}else if(z(e=e.times(r),e.e+1,1),e.e>14)h=p(e);else{if(0==(s=+G(e)))break;h=s%2}d=d.times(d),u?d.c&&d.c.length>u&&(d.c.length=u):a&&(d=d.mod(t))}return a?g:(f&&(g=S.div(g)),t?g.mod(t):u?z(g,M,N,c):g)},j.integerValue=function(e){var t=new L(this);return null==e?e=N:f(e,0,8),z(t,t.e+1,e)},j.isEqualTo=j.eq=function(e,t){return 0===l(this,new L(e,t))},j.isFinite=function(){return!!this.c},j.isGreaterThan=j.gt=function(e,t){return l(this,new L(e,t))>0},j.isGreaterThanOrEqualTo=j.gte=function(e,t){return 1===(t=l(this,new L(e,t)))||0===t},j.isInteger=function(){return!!this.c&&u(this.e/14)>this.c.length-2},j.isLessThan=j.lt=function(e,t){return 0>l(this,new L(e,t))},j.isLessThanOrEqualTo=j.lte=function(e,t){return -1===(t=l(this,new L(e,t)))||0===t},j.isNaN=function(){return!this.s},j.isNegative=function(){return this.s<0},j.isPositive=function(){return this.s>0},j.isZero=function(){return!!this.c&&0==this.c[0]},j.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new L(e,t)).s,!a||!t)return new L(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,c=e.e/14,l=this.c,f=e.c;if(!s||!c){if(!l||!f)return l?(e.s=-t,e):new L(f?this:NaN);if(!l[0]||!f[0])return f[0]?(e.s=-t,e):new L(l[0]?this:3==N?-0:0)}if(s=u(s),c=u(c),l=l.slice(),a=s-c){for((o=a<0)?(a=-a,i=l):(c=s,i=f),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=l.length)<(t=f.length))?a:t,a=t=0;t<n;t++)if(l[t]!=f[t]){o=l[t]<f[t];break}if(o&&(i=l,l=f,f=i,e.s=-e.s),(t=(n=f.length)-(r=l.length))>0)for(;t--;l[r++]=0);for(t=1e14-1;n>a;){if(l[--n]<f[n]){for(r=n;r&&!l[--r];l[r]=t);--l[r],l[n]+=1e14}l[n]-=f[n]}for(;0==l[0];l.splice(0,1),--c);return l[0]?I(e,l,c):(e.s=3==N?-1:1,e.c=[e.e=0],e)},j.modulo=j.mod=function(e,t){var r,n;return(e=new L(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==E?(n=e.s,e.s=1,r=_(this,e,0,3),e.s=n,r.s*=n):r=_(this,e,0,E),(e=this.minus(r.times(e))).c[0]||1!=E||(e.s=this.s),e):new L(this):new L(NaN)},j.multipliedBy=j.times=function(e,t){var r,n,i,o,a,s,c,l,f,p,h,g,d,m=this.c,y=(e=new L(e,t)).c;if(!m||!y||!m[0]||!y[0])return this.s&&e.s&&(!m||m[0]||y)&&(!y||y[0]||m)?(e.s*=this.s,m&&y?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=u(this.e/14)+u(e.e/14),e.s*=this.s,(c=m.length)<(p=y.length)&&(d=m,m=y,y=d,i=c,c=p,p=i),i=c+p,d=[];i--;d.push(0));for(i=p;--i>=0;){for(r=0,h=y[i]%1e7,g=y[i]/1e7|0,o=i+(a=c);o>i;)s=g*(l=m[--a]%1e7)+(f=m[a]/1e7|0)*h,r=((l=h*l+s%1e7*1e7+d[o]+r)/1e14|0)+(s/1e7|0)+g*f,d[o--]=l%1e14;d[o]=r}return r?++n:d.splice(0,1),I(e,d,n)},j.negated=function(){var e=new L(this);return e.s=-e.s||null,e},j.plus=function(e,t){var r,n=this.s;if(t=(e=new L(e,t)).s,!n||!t)return new L(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new L(n/0);if(!a[0]||!s[0])return s[0]?e:new L(a[0]?this:0*n)}if(i=u(i),o=u(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),I(e,a,o)},j.precision=j.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return f(e,1,1e9),null==t?t=N:f(t,0,8),z(new L(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},j.shiftedBy=function(e){return f(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},j.squareRoot=j.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,l=$+4,f=new L("0.5");if(1!==a||!o||!o[0])return new L(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+G(this)))||a==1/0?(((t=c(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=u((s+1)/2)-(s<0||s%2),r=new L(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new L(a+""),r.c[0]){for((a=(s=r.e)+l)<3&&(a=0);;)if(i=r,r=f.times(i.plus(_(this,i,l,1))),c(i.c).slice(0,a)===(t=c(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(z(r,r.e+$+2,1),e=!r.times(r).eq(this));break}if(!n&&(z(i,i.e+$+2,0),i.times(i).eq(this))){r=i;break}l+=4,a+=4,n=1}}return z(r,r.e+$+1,N,e)},j.toExponential=function(e,t){return null!=e&&(f(e,0,1e9),e++),U(this,e,t,1)},j.toFixed=function(e,t){return null!=e&&(f(e,0,1e9),e=e+this.e+1),U(this,e,t)},j.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=P;else if("object"!=typeof r)throw Error(o+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,a=n.split("."),s=+r.groupSize,u=+r.secondaryGroupSize,c=r.groupSeparator||"",l=a[0],f=a[1],p=this.s<0,h=p?l.slice(1):l,g=h.length;if(u&&(i=s,s=u,u=i,g-=i),s>0&&g>0){for(i=g%s||s,l=h.substr(0,i);i<g;i+=s)l+=c+h.substr(i,s);u>0&&(l+=c+h.slice(i)),p&&(l="-"+l)}n=f?l+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?f.replace(RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):l}return(r.prefix||"")+n+(r.suffix||"")},j.toFraction=function(e){var t,r,n,i,a,u,l,f,p,h,g,d,m=this.c;if(null!=e&&(!(l=new L(e)).isInteger()&&(l.c||1!==l.s)||l.lt(S)))throw Error(o+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+G(l));if(!m)return new L(this);for(t=new L(S),p=r=new L(S),n=f=new L(S),d=c(m),a=t.e=d.length-this.e-1,t.c[0]=s[(u=a%14)<0?14+u:u],e=!e||l.comparedTo(t)>0?a>0?t:p:l,u=A,A=1/0,l=new L(d),f.c[0]=0;h=_(l,t,0,1),1!=(i=r.plus(h.times(n))).comparedTo(e);)r=n,n=i,p=f.plus(h.times(i=p)),f=i,t=l.minus(h.times(i=t)),l=i;return i=_(e.minus(r),n,0,1),f=f.plus(i.times(p)),r=r.plus(i.times(n)),f.s=p.s=this.s,a*=2,g=1>_(p,n,a,N).minus(this).abs().comparedTo(_(f,r,a,N).minus(this).abs())?[p,n]:[f,r],A=u,g},j.toNumber=function(){return+G(this)},j.toPrecision=function(e,t){return null!=e&&f(e,1,1e9),U(this,e,t,2)},j.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=D||i>=B?h(c(r.c),i):g(c(r.c),i,"0"):10===e&&C?t=g(c((r=z(new L(r),$+i+1,N)).c),r.e,"0"):(f(e,2,T.length,"Base"),t=w(g(c(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},j.valueOf=j.toJSON=function(){return G(this)},j._isBigNumber=!0,null!=t&&L.set(t),L}()).default=t.BigNumber=t,y.exports?y.exports=t:(e||(e="undefined"!=typeof self&&self?self:window),e.BigNumber=t)})(p);var b=y.exports;let v=m(),x=g(),_={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},w={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:O,decimalSuffixes:j}=v.currentBytes(),S={scale:1024,suffixes:j,marker:"bd"},$={scale:1024,suffixes:O,marker:"b"},N={scale:1e3,suffixes:j,marker:"d"};function D(e,t,r){let n=t[0],i=Math.abs(e);if(i>=r){for(let o=1;o<t.length;++o){let a=Math.pow(r,o),s=Math.pow(r,o+1);if(i>=a&&i<s){n=t[o],e/=a;break}}n===t[0]&&(e/=Math.pow(r,t.length-1),n=t[t.length-1])}return{value:e,suffix:n}}function B(e){let t="";for(let r=0;r<e;r++)t+="0";return t}function k({instance:e,providedFormat:t,state:r=v,decimalSeparator:n,defaults:i=r.currentDefaults()}){var o,a;let s=e._value;if(0===s&&r.hasZeroFormat())return r.getZeroFormat();if(!isFinite(s))return s.toString();let u=Object.assign({},w,i,t),c=u.totalLength,l=c?0:u.characteristic,f=u.optionalCharacteristic,p=u.forceAverage,h=u.lowPrecision,g=!!c||!!p||u.average,d=c?-1:g&&void 0===t.mantissa?0:u.mantissa,m=!c&&(void 0===t.optionalMantissa?-1===d:u.optionalMantissa),y=u.trimMantissa,x=u.thousandSeparated,O=u.spaceSeparated,j=u.negative,S=u.forceSign,$=u.exponential,N=u.roundingFunction,D="";if(g){let e=function({value:e,forceAverage:t,lowPrecision:r=!0,abbreviations:n,spaceSeparated:i=!1,totalLength:o=0,roundingFunction:a=Math.round}){let s="",u=Math.abs(e),c=-1;if(t&&n[t]&&_[t]?(s=n[t],e/=_[t]):u>=_.trillion||r&&1===a(u/_.trillion)?(s=n.trillion,e/=_.trillion):u<_.trillion&&u>=_.billion||r&&1===a(u/_.billion)?(s=n.billion,e/=_.billion):u<_.billion&&u>=_.million||r&&1===a(u/_.million)?(s=n.million,e/=_.million):(u<_.million&&u>=_.thousand||r&&1===a(u/_.thousand))&&(s=n.thousand,e/=_.thousand),s&&(s=(i?" ":"")+s),o){let t=e<0,r=e.toString().split(".")[0];c=Math.max(o-(t?r.length-1:r.length),0)}return{value:e,abbreviation:s,mantissaPrecision:c}}({value:s,forceAverage:p,lowPrecision:h,abbreviations:r.currentAbbreviations(),spaceSeparated:O,roundingFunction:N,totalLength:c});s=e.value,D+=e.abbreviation,c&&(d=e.mantissaPrecision)}if($){let e=function({value:e,characteristicPrecision:t}){let[r,n]=e.toExponential().split("e"),i=+r;return t&&1<t&&(i*=Math.pow(10,t-1),n-=t-1,n=n>=0?`+${n}`:n),{value:i,abbreviation:`e${n}`}}({value:s,characteristicPrecision:l});s=e.value,D=e.abbreviation+D}let k=function(e,t,r,n,i,o){if(-1===n)return e;let a=function(e,t,r=Math.round){return -1!==e.toString().indexOf("e")?function(e,t){let r=e.toString(),[n,i]=r.split("e"),[o,a=""]=n.split(".");if(+i>0)r=o+a+B(i-a.length);else{let e=".";e=0>+o?`-0${e}`:`0${e}`;let n=(B(-i-1)+Math.abs(o)+a).substr(0,t);n.length<t&&(n+=B(t-n.length)),r=e+n}return+i>0&&t>0&&(r+=`.${B(t)}`),r}(e,t):new b(r(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,n,o),[s,u=""]=a.toString().split(".");if(u.match(/^0+$/)&&(r||i))return s;let c=u.match(/0+$/);return i&&c?`${s}.${u.toString().slice(0,c.index)}`:a.toString()}(s.toString(),s,m,d,y,N);return k=function(e,t,r,n,i){let o=n.currentDelimiters(),a=o.thousands;i=i||o.decimal;let s=o.thousandsSize||3,u=e.toString(),c=u.split(".")[0],l=u.split(".")[1],f=t<0&&0===c.indexOf("-");return r&&(f&&(c=c.slice(1)),(function(e,t){let r=[],n=0;for(let i=e;i>0;i--)n===t&&(r.unshift(i),n=0),n++;return r})(c.length,s).forEach((e,t)=>{c=c.slice(0,e+t)+a+c.slice(e+t)}),f&&(c=`-${c}`)),u=l?c+i+l:c}(k=function(e,t,r,n){let i=e,[o,a]=i.toString().split(".");if(o.match(/^-?0$/)&&r)return a?`${o.replace("0","")}.${a}`:o.replace("0","");let s=t<0&&0===o.indexOf("-");if(s&&(o=o.slice(1),i=i.slice(1)),o.length<n){let e=n-o.length;for(let t=0;t<e;t++)i=`0${i}`}return s&&(i=`-${i}`),i.toString()}(k,s,f,l),s,x,r,n),(g||$)&&(k+=D),(S||s<0)&&(o=k,k=0===(a=s)?o:0==+o?o.replace("-",""):a>0?`+${o}`:"sign"===j?o:`(${o.replace("-","")})`),k}function A(e,t){if(!e)return t;let r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}function F(e,t,r){let n=new b(e._value),i=t;return r.isNumbro(t)&&(i=t._value),i=new b(i),e._value=n.minus(i).toNumber(),e}let E=m(),M=g(),P={loadLanguagesInNode:e=>{e.forEach(e=>{let t;try{t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../languages/${e}`)}catch(t){console.error(`Unable to load "${e}". No matching language file found.`)}t&&I.registerLanguage(t)})}},T=h(),C={format:(...e)=>(function(e,t={},r){if("string"==typeof t&&(t=d(t)),!x.validateFormat(t))return"ERROR: invalid format";let n=t.prefix||"",i=t.postfix||"",o=function(e,t,r){var n,i;switch(t.output){case"currency":return function(e,t,r){let n,i=r.currentCurrency(),o=Object.assign({},t),a=Object.assign({},w,o),s="",u=!!a.totalLength||!!a.forceAverage||a.average,c=o.currencyPosition||i.position,l=o.currencySymbol||i.symbol,f=void 0!==a.spaceSeparatedCurrency?a.spaceSeparatedCurrency:a.spaceSeparated;void 0===o.lowPrecision&&(o.lowPrecision=!1),f&&(s=" "),"infix"===c&&(n=s+l+s);let p=k({instance:e,providedFormat:o,state:r,decimalSeparator:n});return"prefix"===c&&(p=e._value<0&&"sign"===a.negative?`-${s}${l}${p.slice(1)}`:e._value>0&&a.forceSign?`+${s}${l}${p.slice(1)}`:l+s+p),c&&"postfix"!==c||(p=p+(s=!a.spaceSeparatedAbbreviation&&u?"":s)+l),p}(e,t=A(t,v.currentCurrencyDefaultFormat()),v);case"percent":let o,a,s;return n=t=A(t,v.currentPercentageDefaultFormat()),o=n.prefixSymbol,a=k({instance:r(100*e._value),providedFormat:n,state:v}),s=Object.assign({},w,n),o?`%${s.spaceSeparated?" ":""}${a}`:`${a}${s.spaceSeparated?" ":""}%`;case"byte":return function(e,t,r,n){let i=t.base||"binary",o=Object.assign({},w,t),{binarySuffixes:a,decimalSuffixes:s}=r.currentBytes(),u={general:{scale:1024,suffixes:s||j,marker:"bd"},binary:{scale:1024,suffixes:a||O,marker:"b"},decimal:{scale:1e3,suffixes:s||j,marker:"d"}}[i],{value:c,suffix:l}=D(e._value,u.suffixes,u.scale),f=k({instance:n(c),providedFormat:t,state:r,defaults:r.currentByteDefaultFormat()});return`${f}${o.spaceSeparated?" ":""}${l}`}(e,t=A(t,v.currentByteDefaultFormat()),v,r);case"time":let u,c,l;return t=A(t,v.currentTimeDefaultFormat()),u=Math.floor(e._value/60/60),c=Math.floor((e._value-60*u*60)/60),l=Math.round(e._value-60*u*60-60*c),`${u}:${c<10?"0":""}${c}:${l<10?"0":""}${l}`;case"ordinal":let f,p,h,g;return i=t=A(t,v.currentOrdinalDefaultFormat()),f=v.currentOrdinal(),p=Object.assign({},w,i),h=k({instance:e,providedFormat:i,state:v}),g=f(e._value),`${h}${p.spaceSeparated?" ":""}${g}`;default:return k({instance:e,providedFormat:t,numbro:r})}}(e,t,r);return(o=n+o)+i})(...e,I),getByteUnit:(...e)=>(function(e){return D(e._value,S.suffixes,S.scale).suffix})(...e,I),getBinaryByteUnit:(...e)=>(function(e){return D(e._value,$.suffixes,$.scale).suffix})(...e,I),getDecimalByteUnit:(...e)=>(function(e){return D(e._value,N.suffixes,N.scale).suffix})(...e,I),formatOrDefault:A},L={add:(e,t)=>{let r,n;return r=new b(e._value),n=t,I.isNumbro(t)&&(n=t._value),n=new b(n),e._value=r.plus(n).toNumber(),e},subtract:(e,t)=>F(e,t,I),multiply:(e,t)=>{let r,n;return r=new b(e._value),n=t,I.isNumbro(t)&&(n=t._value),n=new b(n),e._value=r.times(n).toNumber(),e},divide:(e,t)=>{let r,n;return r=new b(e._value),n=t,I.isNumbro(t)&&(n=t._value),n=new b(n),e._value=r.dividedBy(n).toNumber(),e},set:(e,t)=>{let r;return r=t,I.isNumbro(t)&&(r=t._value),e._value=r,e},difference:(e,t)=>{let r;return F(r=I(e._value),t,I),Math.abs(r._value)},BigNumber:b};class U{constructor(e){this._value=e}clone(){return I(this._value)}format(e={}){return C.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=d(e)),(e=C.formatOrDefault(e,E.currentCurrencyDefaultFormat())).output="currency",C.format(this,e)}formatTime(e={}){return e.output="time",C.format(this,e)}binaryByteUnits(){return C.getBinaryByteUnit(this)}decimalByteUnits(){return C.getDecimalByteUnit(this)}byteUnits(){return C.getByteUnit(this)}difference(e){return L.difference(this,e)}add(e){return L.add(this,e)}subtract(e){return L.subtract(this,e)}multiply(e){return L.multiply(this,e)}divide(e){return L.divide(this,e)}set(e){return L.set(this,R(e))}value(){return this._value}valueOf(){return this._value}}function R(e){let t=e;return I.isNumbro(e)?t=e._value:"string"==typeof e?t=I.unformat(e):isNaN(e)&&(t=NaN),t}function I(e){return new U(R(e))}I.version="2.5.0",I.isNumbro=function(e){return e instanceof U},I.language=E.currentLanguage,I.registerLanguage=E.registerLanguage,I.setLanguage=E.setLanguage,I.languages=E.languages,I.languageData=E.languageData,I.zeroFormat=E.setZeroFormat,I.defaultFormat=E.currentDefaults,I.setDefaults=E.setDefaults,I.defaultCurrencyFormat=E.currentCurrencyDefaultFormat,I.validate=M.validate,I.loadLanguagesInNode=P.loadLanguagesInNode,I.unformat=T.unformat,I.BigNumber=L.BigNumber;var z=I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I,G=r(20147),Z=r(15418);function V(e,{shortValues:t,decimalPlaces:r}){if(!(0,Z.lk)(t)||1e3>Math.abs(e)){let n={style:"unit",unit:"byte",unitDisplay:"long",useGrouping:!0};return(0,Z.ej)(r)?(n.minimumFractionDigits=(0,Z.Gs)(r),n.maximumFractionDigits=(0,Z.Gs)(r)):(0,Z.lk)(t)&&(n.maximumSignificantDigits=G.$),Intl.NumberFormat("en-US",n).format(e)}return z(e).format({output:"byte",base:"decimal",spaceSeparated:!0,mantissa:(0,Z.ej)(r)?r:2,trimMantissa:!(0,Z.ej)(r),optionalMantissa:!(0,Z.ej)(r)})}let q="Percent",W="Time";var H=((n={}).milliseconds="millisecond",n.seconds="second",n.minutes="minute",n.hours="hour",n.days="day",n.weeks="week",n.months="month",n.years="year",n);let K={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001},Y=["years","months","weeks","days","hours","minutes","seconds","milliseconds"],J="Throughput";var X=r(93098);let Q="Currency",ee={Time:{label:"Time",decimalPlaces:!0},Percent:{label:"percent",decimalPlaces:!0},Decimal:{label:"Decimal",decimalPlaces:!0,shortValues:!0},Bytes:{label:"Bytes",decimalPlaces:!0,shortValues:!0},Throughput:{label:"Throughput",decimalPlaces:!0},Currency:{label:"Currency",decimalPlaces:!0}},et={milliseconds:{group:W,label:"Milliseconds"},seconds:{group:W,label:"Seconds"},minutes:{group:W,label:"Minutes"},hours:{group:W,label:"Hours"},days:{group:W,label:"Days"},weeks:{group:W,label:"Weeks"},months:{group:W,label:"Months"},years:{group:W,label:"Years"},percent:{group:q,label:"Percent (0-100)"},"percent-decimal":{group:q,label:"Percent (0.0-1.0)"},"%":{disableSelectorOption:!0,group:q,label:"%"},decimal:{group:"Decimal",label:"Decimal"},bytes:{group:"Bytes",label:"Bytes"},"bits/sec":{group:J,label:"Bits/sec"},"bytes/sec":{group:J,label:"Bytes/sec"},"counts/sec":{group:J,label:"Counts/sec"},"events/sec":{group:J,label:"Events/sec"},"messages/sec":{group:J,label:"Messages/sec"},"ops/sec":{group:J,label:"Ops/sec"},"packets/sec":{group:J,label:"Packets/sec"},"reads/sec":{group:J,label:"Reads/sec"},"requests/sec":{group:J,label:"Requests/sec"},"records/sec":{group:J,label:"Records/sec"},"rows/sec":{group:J,label:"Rows/sec"},"writes/sec":{group:J,label:"Writes/sec"},aud:{group:Q,label:"Australian Dollar (A$)"},cad:{group:Q,label:"Canadian Dollar (CA$)"},chf:{group:Q,label:"Swiss Franc (CHF)"},cny:{group:Q,label:"Renminbi (CN\xa5)"},eur:{group:Q,label:"Euro (€)"},gbp:{group:Q,label:"Pound (\xa3)"},hkd:{group:Q,label:"Hong Kong Dollar (HK$)"},inr:{group:Q,label:"Indian Rupee (₹)"},jpy:{group:Q,label:"Yen (\xa5)"},krw:{group:Q,label:"South Korean Won (₩)"},nok:{group:Q,label:"Norwegian Krone (NOK)"},nzd:{group:Q,label:"New Zealand Dollar (NZ$)"},sek:{group:Q,label:"Swedish Krona (SEK)"},sgd:{group:Q,label:"Singapore Dollar (S$)"},usd:{group:Q,label:"US Dollar ($)"}};function er(e,t){if(void 0===t)return e.toString();if(ec(t))return V(e,t);if(eu(t))return function(e,{shortValues:t,decimalPlaces:r}){let n={style:"decimal",useGrouping:!0};return(0,Z.lk)(t)&&(n.notation="compact"),(0,Z.ej)(r)?(n.minimumFractionDigits=(0,Z.Gs)(r),n.maximumFractionDigits=(0,Z.Gs)(r)):(0,Z.lk)(t)&&(n.maximumSignificantDigits=G.$),Intl.NumberFormat("en-US",n).format(e)}(e,t);if(es(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"percent",useGrouping:!0};return(0,Z.ej)(r)?(n.minimumFractionDigits=(0,Z.Gs)(r),n.maximumFractionDigits=(0,Z.Gs)(r)):n.maximumSignificantDigits=G.$,"percent"===t&&(e/=100),Intl.NumberFormat("en-US",n).format(e)}(e,t);if(ea(t))return function(e,{unit:t,decimalPlaces:r}){var n;if(0===e)return"0s";let i=function(e,t){let r=e*K[t],n=Y[0]||"years",i=n,o=r/K[n];for(i of Y)if((o=r/K[i])>=1)break;return{value:o,unit:i}}(e,t??"seconds"),o={style:"unit",unit:H[i.unit],unitDisplay:"months"===(n=i.unit)||"years"===n?"long":"narrow"};return(0,Z.ej)(r)?(o.minimumFractionDigits=(0,Z.Gs)(r),o.maximumFractionDigits=(0,Z.Gs)(r)):o.maximumSignificantDigits=G.$,Intl.NumberFormat("en-US",o).format(i.value)}(e,t);if(ep(t))return function(e,{unit:t,shortValues:r,decimalPlaces:n}){if("bytes/sec"===t){let t=1e3>Math.abs(e)?"sec":"s";return V(e,{unit:"bytes",shortValues:r,decimalPlaces:n})+"/"+t}let i={style:"decimal",useGrouping:!0};return(0,Z.lk)(r)&&(i.notation="compact"),(0,Z.ej)(n)?(i.minimumFractionDigits=(0,Z.Gs)(n),i.maximumFractionDigits=(0,Z.Gs)(n)):(0,Z.lk)(r)&&(i.maximumSignificantDigits=G.$),Intl.NumberFormat("en-US",i).format(e)+" "+t}(e,t);if(eh(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"currency",currency:(0,X.toUpper)(t),currencyDisplay:"symbol"};return(0,Z.ej)(r)?(n.minimumFractionDigits=(0,Z.Gs)(r),n.maximumFractionDigits=(0,Z.Gs)(r)):n.maximumSignificantDigits=G.$,Intl.NumberFormat("en-US",n).format(e)}(e,t);throw Error(`Unknown unit options ${t}`)}function en(e){return et[e.unit??"decimal"]}function ei(e){return en(e).group??"Decimal"}function eo(e){return ee[en(e).group??"Decimal"]}function ea(e){return"Time"===ei(e)}function es(e){return"Percent"===ei(e)}function eu(e){return"Decimal"===ei(e)}function ec(e){return"Bytes"===ei(e)}function el(e){return!!eo(e).decimalPlaces}function ef(e){return!!eo(e).shortValues}function ep(e){return"Throughput"===ei(e)}function eh(e){return"Currency"===ei(e)}},15418:function(e,t,r){"use strict";function n(e){return!1!==e}function i(e){return"number"==typeof e}function o(e){return e&&(e<0?e=0:e>20&&(e=20)),e}r.d(t,{Gs:()=>o,ej:()=>i,lk:()=>n})},82545:function(e,t,r){e.exports=r(81822)(r(77400),"DataView")},96586:function(e,t,r){var n=r(57753),i=r(82452),o=r(22115),a=r(38256),s=r(67426);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},36301:function(e,t,r){var n=r(69417),i=r(72470),o=r(66165),a=r(71873),s=r(52556);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},44538:function(e,t,r){e.exports=r(81822)(r(77400),"Map")},74554:function(e,t,r){var n=r(39448),i=r(7738),o=r(66575),a=r(7238),s=r(38738);function u(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},64825:function(e,t,r){e.exports=r(81822)(r(77400),"Promise")},46151:function(e,t,r){e.exports=r(81822)(r(77400),"Set")},52485:function(e,t,r){var n=r(74554),i=r(38639),o=r(88379);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},23694:function(e,t,r){var n=r(36301),i=r(7354),o=r(5863),a=r(12367),s=r(90748),u=r(97569);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},96539:function(e,t,r){e.exports=r(77400).Symbol},59942:function(e,t,r){e.exports=r(77400).Uint8Array},66902:function(e,t,r){e.exports=r(81822)(r(77400),"WeakMap")},10263:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},98213:function(e,t,r){var n=r(24701),i=r(2900),o=r(19785),a=r(43854),s=r(42383),u=r(48519),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),l=!r&&i(e),f=!r&&!l&&a(e),p=!r&&!l&&!f&&u(e),h=r||l||f||p,g=h?n(e.length,String):[],d=g.length;for(var m in e)(t||c.call(e,m))&&!(h&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,d)))&&g.push(m);return g}},97141:function(e){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},90756:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},93382:function(e,t,r){var n=r(85638);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},11324:function(e,t,r){var n=r(97141),i=r(19785);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},99736:function(e,t,r){var n=r(96539),i=r(34840),o=r(21258),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},55829:function(e,t,r){var n=r(99736),i=r(92360);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},32866:function(e,t,r){var n=r(12772),i=r(92360);e.exports=function e(t,r,o,a,s){return t===r||(null!=t&&null!=r&&(i(t)||i(r))?n(t,r,o,a,e,s):t!=t&&r!=r)}},12772:function(e,t,r){var n=r(23694),i=r(27042),o=r(370),a=r(39584),s=r(3533),u=r(19785),c=r(43854),l=r(48519),f="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,m,y){var b=u(e),v=u(t),x=b?p:s(e),_=v?p:s(t);x=x==f?h:x,_=_==f?h:_;var w=x==h,O=_==h,j=x==_;if(j&&c(e)){if(!c(t))return!1;b=!0,w=!1}if(j&&!w)return y||(y=new n),b||l(e)?i(e,t,r,d,m,y):o(e,t,x,r,d,m,y);if(!(1&r)){var S=w&&g.call(e,"__wrapped__"),$=O&&g.call(t,"__wrapped__");if(S||$){var N=S?e.value():e,D=$?t.value():t;return y||(y=new n),m(N,D,r,d,y)}}return!!j&&(y||(y=new n),a(e,t,r,d,m,y))}},46729:function(e,t,r){var n=r(28338),i=r(99678),o=r(11611),a=r(76532),s=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,l=u.hasOwnProperty,f=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?f:s).test(a(e))}},26972:function(e,t,r){var n=r(99736),i=r(84194),o=r(92360),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},20186:function(e,t,r){var n=r(56016),i=r(50962),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},24701:function(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},39334:function(e){e.exports=function(e){return function(t){return e(t)}}},65581:function(e){e.exports=function(e,t){return e.has(t)}},64937:function(e,t,r){e.exports=r(77400)["__core-js_shared__"]},27042:function(e,t,r){var n=r(52485),i=r(90756),o=r(65581);e.exports=function(e,t,r,a,s,u){var c=1&r,l=e.length,f=t.length;if(l!=f&&!(c&&f>l))return!1;var p=u.get(e),h=u.get(t);if(p&&h)return p==t&&h==e;var g=-1,d=!0,m=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++g<l;){var y=e[g],b=t[g];if(a)var v=c?a(b,y,g,t,e,u):a(y,b,g,e,t,u);if(void 0!==v){if(v)continue;d=!1;break}if(m){if(!i(t,function(e,t){if(!o(m,t)&&(y===e||s(y,e,r,a,u)))return m.push(t)})){d=!1;break}}else if(!(y===b||s(y,b,r,a,u))){d=!1;break}}return u.delete(e),u.delete(t),d}},370:function(e,t,r){var n=r(96539),i=r(59942),o=r(85638),a=r(27042),s=r(19383),u=r(43735),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,f,p){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var g=1&n;if(h||(h=u),e.size!=t.size&&!g)break;var d=p.get(e);if(d)return d==t;n|=2,p.set(e,t);var m=a(h(e),h(t),n,c,f,p);return p.delete(e),m;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},39584:function(e,t,r){var n=r(51385),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,s){var u=1&r,c=n(e),l=c.length;if(l!=n(t).length&&!u)return!1;for(var f=l;f--;){var p=c[f];if(!(u?p in t:i.call(t,p)))return!1}var h=s.get(e),g=s.get(t);if(h&&g)return h==t&&g==e;var d=!0;s.set(e,t),s.set(t,e);for(var m=u;++f<l;){var y=e[p=c[f]],b=t[p];if(o)var v=u?o(b,y,p,t,e,s):o(y,b,p,e,t,s);if(!(void 0===v?y===b||a(y,b,r,o,s):v)){d=!1;break}m||(m="constructor"==p)}if(d&&!m){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _)&&(d=!1)}return s.delete(e),s.delete(t),d}},39120:function(e,t,r){e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},51385:function(e,t,r){var n=r(11324),i=r(83080),o=r(50098);e.exports=function(e){return n(e,o,i)}},95899:function(e,t,r){var n=r(54479);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},81822:function(e,t,r){var n=r(46729),i=r(15371);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},34840:function(e,t,r){var n=r(96539),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},83080:function(e,t,r){var n=r(10263),i=r(15937),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return o.call(e,t)})}:i},3533:function(e,t,r){var n=r(82545),i=r(44538),o=r(64825),a=r(46151),s=r(66902),u=r(99736),c=r(76532),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",g="[object DataView]",d=c(n),m=c(i),y=c(o),b=c(a),v=c(s),x=u;(n&&x(new n(new ArrayBuffer(1)))!=g||i&&x(new i)!=l||o&&x(o.resolve())!=f||a&&x(new a)!=p||s&&x(new s)!=h)&&(x=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case d:return g;case m:return l;case y:return f;case b:return p;case v:return h}return t}),e.exports=x},15371:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},57753:function(e,t,r){var n=r(35718);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},82452:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},22115:function(e,t,r){var n=r(35718),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},38256:function(e,t,r){var n=r(35718),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},67426:function(e,t,r){var n=r(35718);e.exports=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},42383:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},54479:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},99678:function(e,t,r){var n,i=r(64937),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},56016:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},69417:function(e){e.exports=function(){this.__data__=[],this.size=0}},72470:function(e,t,r){var n=r(93382),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},66165:function(e,t,r){var n=r(93382);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},71873:function(e,t,r){var n=r(93382);e.exports=function(e){return n(this.__data__,e)>-1}},52556:function(e,t,r){var n=r(93382);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},39448:function(e,t,r){var n=r(96586),i=r(36301),o=r(44538);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},7738:function(e,t,r){var n=r(95899);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=!!t,t}},66575:function(e,t,r){var n=r(95899);e.exports=function(e){return n(this,e).get(e)}},7238:function(e,t,r){var n=r(95899);e.exports=function(e){return n(this,e).has(e)}},38738:function(e,t,r){var n=r(95899);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=+(r.size!=i),this}},19383:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},35718:function(e,t,r){e.exports=r(81822)(Object,"create")},50962:function(e,t,r){e.exports=r(58023)(Object.keys,Object)},18125:function(e,t,r){e=r.nmd(e);var n=r(39120),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},21258:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},58023:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},77400:function(e,t,r){var n=r(39120),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},38639:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},88379:function(e){e.exports=function(e){return this.__data__.has(e)}},43735:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},7354:function(e,t,r){var n=r(36301);e.exports=function(){this.__data__=new n,this.size=0}},5863:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},12367:function(e){e.exports=function(e){return this.__data__.get(e)}},90748:function(e){e.exports=function(e){return this.__data__.has(e)}},97569:function(e,t,r){var n=r(36301),i=r(44538),o=r(74554);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},76532:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},85638:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2900:function(e,t,r){var n=r(55829),i=r(92360),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable;e.exports=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},19785:function(e){e.exports=Array.isArray},80068:function(e,t,r){var n=r(28338),i=r(84194);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},43854:function(e,t,r){e=r.nmd(e);var n=r(77400),i=r(57714),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||i},56141:function(e,t,r){var n=r(32866);e.exports=function(e,t){return n(e,t)}},28338:function(e,t,r){var n=r(99736),i=r(11611);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},84194:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},92360:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},48519:function(e,t,r){var n=r(26972),i=r(39334),o=r(18125),a=o&&o.isTypedArray;e.exports=a?i(a):n},50098:function(e,t,r){var n=r(98213),i=r(20186),o=r(80068);e.exports=function(e){return o(e)?n(e):i(e)}},15937:function(e){e.exports=function(){return[]}},57714:function(e){e.exports=function(){return!1}},86396:function(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(30265))&&n.__esModule?n:{default:n}).default)("M19,13H5V11H19V13Z","Minus")}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["8706"],{64001:function(e,r,a){a.d(r,{P:()=>ep});var t,n,i,s,o,c=a(24246),l=a(46359),d=a(51217),p=a(69485),u=a(94776),m=a(25283),v=a(68808),g=a(32964),y=a(75094),x=a(50898),h=a(96402),T=a(54538),j=a(95700),_=a(10763),f=a(8887),b=a(17197),$=a(91909),w=a(36372),S=a(52054),Z=a(71852),E=a(2259),L=a(20791),k=a(78277),F=((t={}).aggregation="aggregation",t.binaryExpr="binaryExpr",t.call="call",t.matrixSelector="matrixSelector",t.subquery="subquery",t.numberLiteral="numberLiteral",t.parenExpr="parenExpr",t.stringLiteral="stringLiteral",t.unaryExpr="unaryExpr",t.vectorSelector="vectorSelector",t.placeholder="placeholder",t),q=((n={}).add="+",n.sub="-",n.mul="*",n.div="/",n.mod="%",n.pow="^",n.eql="==",n.neq="!=",n.gtr=">",n.lss="<",n.gte=">=",n.lte="<=",n.and="and",n.or="or",n.unless="unless",n.atan2="atan2",n),C=((i={}).oneToOne="one-to-one",i.manyToOne="many-to-one",i.oneToMany="one-to-many",i.manyToMany="many-to-many",i),P=((s={}).none="none",s.vector="vector",s.scalar="scalar",s.matrix="matrix",s.string="string",s),O=((o={}).equal="=",o.notEqual="!=",o.matchRegexp="=~",o.matchNotRegexp="!~",o);let R={[q.add]:3,[q.sub]:3,[q.mul]:2,[q.div]:2,[q.mod]:2,[q.pow]:1,[q.eql]:4,[q.neq]:4,[q.gtr]:4,[q.lss]:4,[q.gte]:4,[q.lte]:4,[q.and]:5,[q.or]:6,[q.unless]:5,[q.atan2]:2},M=(e,r)=>r.type!==F.binaryExpr||R[e]>R[r.op]?r:{type:F.parenExpr,expr:r},U=["topk","bottomk","quantile","count_values","limitk","limit_ratio"],K=e=>e.replace(/([\\"])/g,"\\$1");var B=a(12709),I=a(29085);let z=(0,B.ZP)("span")(()=>({fontFamily:'"DejaVu Sans Mono", monospace'})),V=(0,B.ZP)("span")(e=>{let{theme:r}=e;return{color:"dark"===r.palette.mode?"#e5c07b":"#708"}}),Q=(0,B.ZP)("span")(e=>{let{theme:r}=e;return{color:"dark"===r.palette.mode?"#61afef":"#2a2e42"}}),D=(0,B.ZP)("span")(e=>{let{theme:r}=e;return{color:"dark"===r.palette.mode?"#e06c75":"#2a2e42"}}),N=(0,B.ZP)("span")(e=>{let{theme:r}=e;return{color:"dark"===r.palette.mode?"#61afef":"#219"}}),A=(0,B.ZP)("span")(e=>{let{theme:r}=e;return{color:"dark"===r.palette.mode?"#98c379":"#a31515"}}),G=(0,B.ZP)("span")(()=>({color:"#aaaaaa"})),Y=(0,B.ZP)("span")(e=>{let{theme:r}=e;return{color:"dark"===r.palette.mode?"#e5c07b":"#09885a"}}),W=(0,B.ZP)("span")(e=>{let{theme:r}=e;return{color:"dark"===r.palette.mode?"#e5c07b":"#164"}}),X=(0,B.ZP)("span")(e=>{let{theme:r}=e;return{color:"dark"===r.palette.mode?"#56b6c2":"#708"}}),J=e=>e.map((e,r)=>(0,c.jsxs)("span",{children:[0!==r&&", ",(0,c.jsx)(N,{children:e})]},r)),H=(e,r,a)=>(0,c.jsxs)(c.Fragment,{children:[null!==e?(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)(X,{children:"@"})," ",(0,c.jsx)(W,{children:(e/1e3).toFixed(3)})]}):null!==r?(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)(X,{children:"@"})," ",(0,c.jsx)(V,{children:r}),(0,c.jsx)("span",{children:"("}),(0,c.jsx)("span",{children:")"})]}):(0,c.jsx)(c.Fragment,{}),0===a?(0,c.jsx)(c.Fragment,{}):a>0?(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)(V,{children:"offset"})," ",(0,c.jsx)(Y,{children:(0,I.LU)((0,I.oK)(a))})]}):(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)(V,{children:"offset"})," ",(0,c.jsxs)(Y,{children:["-",(0,I.LU)((0,I.oK)(-a))]})]})]}),ee=(0,c.jsx)(G,{children:"…"}),er=(e,r,a)=>(0,c.jsx)(z,{children:((e,r,a)=>{if(0===a)return ee;let t=void 0===a?void 0:a-1;switch(e.type){case F.aggregation:return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(X,{children:e.op}),e.without?(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)(V,{children:"without"}),(0,c.jsx)("span",{children:"("}),J(e.grouping),(0,c.jsx)("span",{children:")"})," "]}):e.grouping.length>0&&(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)(V,{children:"by"}),(0,c.jsx)("span",{children:"("}),J(e.grouping),(0,c.jsx)("span",{children:")"})," "]}),r&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{children:"("}),null!==e.param&&(0,c.jsxs)(c.Fragment,{children:[er(e.param,r,t),", "]}),er(e.expr,r,t),(0,c.jsx)("span",{children:")"})]})]});case F.subquery:return(0,c.jsxs)(c.Fragment,{children:[r&&er(e.expr,r,t),"[",(0,c.jsx)(Y,{children:(0,I.LU)((0,I.oK)(e.range))}),":",0!==e.step&&(0,c.jsx)(Y,{children:(0,I.LU)((0,I.oK)(e.step))}),"]",H(e.timestamp,e.startOrEnd,e.offset)]});case F.parenExpr:return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{children:"("}),r&&er(e.expr,r,t),(0,c.jsx)("span",{children:")"})]});case F.call:{let a=void 0===t||t>0?e.args.map((e,a)=>(0,c.jsxs)("span",{children:[0!==a&&", ",er(e,r)]},a)):e.args.length>0?ee:"";return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Q,{children:e.func.name}),r&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{children:"("}),a,(0,c.jsx)("span",{children:")"})]})]})}case F.matrixSelector:case F.vectorSelector:let n=e.matchers.filter(r=>"__name__"!==r.name||r.type!==O.equal||r.value!==e.name).map((e,r)=>(0,c.jsxs)("span",{children:[0!==r&&",",(0,c.jsx)(N,{children:e.name}),e.type,(0,c.jsxs)(A,{children:['"',K(e.value),'"']})]},r));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(D,{children:e.name}),n.length>0&&(0,c.jsxs)(c.Fragment,{children:["{",(0,c.jsx)("span",{children:n}),"}"]}),e.type===F.matrixSelector&&(0,c.jsxs)(c.Fragment,{children:["[",(0,c.jsx)(Y,{children:(0,I.LU)((0,I.oK)(e.range))}),"]"]}),H(e.timestamp,e.startOrEnd,e.offset)]});case F.numberLiteral:return(0,c.jsx)(W,{children:e.val});case F.stringLiteral:return(0,c.jsxs)(A,{children:['"',K(e.val),'"']});case F.unaryExpr:return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(X,{children:e.op}),r&&er(e.expr,r,t)]});case F.binaryExpr:{let a=(0,c.jsx)(c.Fragment,{}),n=(0,c.jsx)(c.Fragment,{}),i=e.matching;return null!==i&&(i.labels.length>0||i.on)&&(a=i.on?(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)(V,{children:"on"}),(0,c.jsx)("span",{children:"("}),J(i.labels),(0,c.jsx)("span",{children:")"})]}):(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)(V,{children:"ignoring"}),(0,c.jsx)("span",{children:"("}),J(i.labels),(0,c.jsx)("span",{children:")"})]}),(i.card===C.manyToOne||i.card===C.oneToMany)&&(n=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(V,{children:[" ","group_",i.card===C.manyToOne?"left":"right"]}),(0,c.jsx)("span",{children:"("}),J(i.include),(0,c.jsx)("span",{children:")"})]}))),(0,c.jsxs)(c.Fragment,{children:[r&&er(M(e.op,e.lhs),r,t)," ",(["atan2","and","or","unless"].includes(e.op),(0,c.jsx)(X,{children:e.op})),e.bool&&(0,c.jsxs)(c.Fragment,{children:[" ",(0,c.jsx)(V,{children:"bool"})]}),a,n," ",r&&er(M(e.op,e.rhs),r,t)]})}case F.placeholder:return ee;default:throw Error("unsupported node type")}})(e,r,a)}),ea=(e,r,a)=>`${null!==e?` @ ${(e/1e3).toFixed(3)}`:null!==r?` @ ${r}()`:""}${0===a?"":a>0?` offset ${(0,I.LU)((0,I.oK)(a))}`:` offset -${(0,I.LU)((0,I.oK)(-a))}`}`,et=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],t=!(arguments.length>3)||void 0===arguments[3]||arguments[3],n=a?"\n":"",i=a?"\n":" ",s=r+2,o=a?" ".repeat(r):"",c=t?o:"";switch(e.type){case F.aggregation:return`${c}${e.op}${e.without?` without(${e.grouping.join(", ")}) `:e.grouping.length>0?` by(${e.grouping.join(", ")}) `:""}(${n}${U.includes(e.op)&&null!==e.param?`${et(e.param,s,a)},${i}`:""}${et(e.expr,s,a)}${n}${o})`;case F.subquery:return`${c}${et(e.expr,r,a)}[${(0,I.LU)((0,I.oK)(e.range))}:${0!==e.step?(0,I.LU)((0,I.oK)(e.step)):""}]${ea(e.timestamp,e.startOrEnd,e.offset)}`;case F.parenExpr:return`${c}(${n}${et(e.expr,s,a)}${n}${o})`;case F.call:{let r=e.args.length>0?n:"";return`${c}${e.func.name}(${r}${e.args.map(e=>et(e,s,a)).join(","+i)}${r}${e.args.length>0?o:""})`}case F.matrixSelector:case F.vectorSelector:return`${c}${(e=>{let r=e.matchers.filter(r=>"__name__"!==r.name||r.type!==O.equal||r.value!==e.name).map(e=>`${e.name}${e.type}"${K(e.value)}"`),a=e.type===F.matrixSelector?`[${(0,I.LU)((0,I.oK)(e.range))}]`:"",t=ea(e.timestamp,e.startOrEnd,e.offset);return`${e.name}${r.length>0?`{${r.join(",")}}`:""}${a}${t}`})(e)}`;case F.numberLiteral:return`${c}${e.val}`;case F.stringLiteral:return`${c}"${K(e.val)}"`;case F.unaryExpr:return`${c}${e.op}${et(e.expr,r,a,!1)}`;case F.binaryExpr:{let r="",t="",n=e.matching;return null!==n&&(n.labels.length>0||n.on)&&(r=n.on?` on(${n.labels.join(", ")})`:` ignoring(${n.labels.join(", ")})`,(n.card===C.manyToOne||n.card===C.oneToMany)&&(t=` group_${n.card===C.manyToOne?"left":"right"}(${n.include.join(",")})`)),`${et(M(e.op,e.lhs),s,a)}${i}${o}${e.op}${e.bool?" bool":""}${r}${t}${i}${et(M(e.op,e.rhs),s,a)}`}case F.placeholder:return`${c}\u{2026}${e.children.length>0?`(${n}${e.children.map(e=>et(e,s,a)).join(","+i)}${n}${o})`:""}`;default:throw Error("unsupported node type")}},en={abs:{name:"abs",argTypes:[P.vector],variadic:0,returnType:P.vector},absent:{name:"absent",argTypes:[P.vector],variadic:0,returnType:P.vector},absent_over_time:{name:"absent_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},acos:{name:"acos",argTypes:[P.vector],variadic:0,returnType:P.vector},acosh:{name:"acosh",argTypes:[P.vector],variadic:0,returnType:P.vector},asin:{name:"asin",argTypes:[P.vector],variadic:0,returnType:P.vector},asinh:{name:"asinh",argTypes:[P.vector],variadic:0,returnType:P.vector},atan:{name:"atan",argTypes:[P.vector],variadic:0,returnType:P.vector},atanh:{name:"atanh",argTypes:[P.vector],variadic:0,returnType:P.vector},avg_over_time:{name:"avg_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},ceil:{name:"ceil",argTypes:[P.vector],variadic:0,returnType:P.vector},changes:{name:"changes",argTypes:[P.matrix],variadic:0,returnType:P.vector},clamp:{name:"clamp",argTypes:[P.vector,P.scalar,P.scalar],variadic:0,returnType:P.vector},clamp_max:{name:"clamp_max",argTypes:[P.vector,P.scalar],variadic:0,returnType:P.vector},clamp_min:{name:"clamp_min",argTypes:[P.vector,P.scalar],variadic:0,returnType:P.vector},cos:{name:"cos",argTypes:[P.vector],variadic:0,returnType:P.vector},cosh:{name:"cosh",argTypes:[P.vector],variadic:0,returnType:P.vector},count_over_time:{name:"count_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},day_of_month:{name:"day_of_month",argTypes:[P.vector],variadic:1,returnType:P.vector},day_of_week:{name:"day_of_week",argTypes:[P.vector],variadic:1,returnType:P.vector},day_of_year:{name:"day_of_year",argTypes:[P.vector],variadic:1,returnType:P.vector},days_in_month:{name:"days_in_month",argTypes:[P.vector],variadic:1,returnType:P.vector},deg:{name:"deg",argTypes:[P.vector],variadic:0,returnType:P.vector},delta:{name:"delta",argTypes:[P.matrix],variadic:0,returnType:P.vector},deriv:{name:"deriv",argTypes:[P.matrix],variadic:0,returnType:P.vector},exp:{name:"exp",argTypes:[P.vector],variadic:0,returnType:P.vector},floor:{name:"floor",argTypes:[P.vector],variadic:0,returnType:P.vector},histogram_avg:{name:"histogram_avg",argTypes:[P.vector],variadic:0,returnType:P.vector},histogram_count:{name:"histogram_count",argTypes:[P.vector],variadic:0,returnType:P.vector},histogram_fraction:{name:"histogram_fraction",argTypes:[P.scalar,P.scalar,P.vector],variadic:0,returnType:P.vector},histogram_quantile:{name:"histogram_quantile",argTypes:[P.scalar,P.vector],variadic:0,returnType:P.vector},histogram_stddev:{name:"histogram_stddev",argTypes:[P.vector],variadic:0,returnType:P.vector},histogram_stdvar:{name:"histogram_stdvar",argTypes:[P.vector],variadic:0,returnType:P.vector},histogram_sum:{name:"histogram_sum",argTypes:[P.vector],variadic:0,returnType:P.vector},double_exponential_smoothing:{name:"double_exponential_smoothing",argTypes:[P.matrix,P.scalar,P.scalar],variadic:0,returnType:P.vector},hour:{name:"hour",argTypes:[P.vector],variadic:1,returnType:P.vector},idelta:{name:"idelta",argTypes:[P.matrix],variadic:0,returnType:P.vector},increase:{name:"increase",argTypes:[P.matrix],variadic:0,returnType:P.vector},irate:{name:"irate",argTypes:[P.matrix],variadic:0,returnType:P.vector},label_join:{name:"label_join",argTypes:[P.vector,P.string,P.string,P.string],variadic:-1,returnType:P.vector},label_replace:{name:"label_replace",argTypes:[P.vector,P.string,P.string,P.string,P.string],variadic:0,returnType:P.vector},last_over_time:{name:"last_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},ln:{name:"ln",argTypes:[P.vector],variadic:0,returnType:P.vector},log10:{name:"log10",argTypes:[P.vector],variadic:0,returnType:P.vector},log2:{name:"log2",argTypes:[P.vector],variadic:0,returnType:P.vector},mad_over_time:{name:"mad_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},max_over_time:{name:"max_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},min_over_time:{name:"min_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},minute:{name:"minute",argTypes:[P.vector],variadic:1,returnType:P.vector},month:{name:"month",argTypes:[P.vector],variadic:1,returnType:P.vector},pi:{name:"pi",argTypes:[],variadic:0,returnType:P.scalar},predict_linear:{name:"predict_linear",argTypes:[P.matrix,P.scalar],variadic:0,returnType:P.vector},present_over_time:{name:"present_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},quantile_over_time:{name:"quantile_over_time",argTypes:[P.scalar,P.matrix],variadic:0,returnType:P.vector},rad:{name:"rad",argTypes:[P.vector],variadic:0,returnType:P.vector},rate:{name:"rate",argTypes:[P.matrix],variadic:0,returnType:P.vector},resets:{name:"resets",argTypes:[P.matrix],variadic:0,returnType:P.vector},round:{name:"round",argTypes:[P.vector,P.scalar],variadic:1,returnType:P.vector},scalar:{name:"scalar",argTypes:[P.vector],variadic:0,returnType:P.scalar},sgn:{name:"sgn",argTypes:[P.vector],variadic:0,returnType:P.vector},sin:{name:"sin",argTypes:[P.vector],variadic:0,returnType:P.vector},sinh:{name:"sinh",argTypes:[P.vector],variadic:0,returnType:P.vector},sort:{name:"sort",argTypes:[P.vector],variadic:0,returnType:P.vector},sort_by_label:{name:"sort_by_label",argTypes:[P.vector,P.string],variadic:-1,returnType:P.vector},sort_by_label_desc:{name:"sort_by_label_desc",argTypes:[P.vector,P.string],variadic:-1,returnType:P.vector},sort_desc:{name:"sort_desc",argTypes:[P.vector],variadic:0,returnType:P.vector},sqrt:{name:"sqrt",argTypes:[P.vector],variadic:0,returnType:P.vector},stddev_over_time:{name:"stddev_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},stdvar_over_time:{name:"stdvar_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},sum_over_time:{name:"sum_over_time",argTypes:[P.matrix],variadic:0,returnType:P.vector},tan:{name:"tan",argTypes:[P.vector],variadic:0,returnType:P.vector},tanh:{name:"tanh",argTypes:[P.vector],variadic:0,returnType:P.vector},time:{name:"time",argTypes:[],variadic:0,returnType:P.scalar},timestamp:{name:"timestamp",argTypes:[P.vector],variadic:0,returnType:P.vector},vector:{name:"vector",argTypes:[P.scalar],variadic:0,returnType:P.vector},year:{name:"year",argTypes:[P.vector],variadic:1,returnType:P.vector}};function ei(e){let{node:r,parentEl:a,reverse:t,datasource:n,childIdx:i,reportNodeState:s}=e,o=(0,u.Z)(),l=(e=>{switch(e.type){case F.aggregation:return null===e.param?[e.expr]:[e.param,e.expr];case F.subquery:case F.parenExpr:return[e.expr];case F.call:return e.args;case F.matrixSelector:case F.vectorSelector:case F.numberLiteral:case F.stringLiteral:return[];case F.placeholder:return e.children;case F.unaryExpr:return[e.expr];case F.binaryExpr:return[e.lhs,e.rhs];default:throw Error("unsupported node type")}})(r),[d,p]=(0,T.useState)(null),v=(0,T.useCallback)(e=>p(e),[]),[g,y]=(0,T.useState)({numSeries:0,labelExamples:{},sortedLabelCards:[]}),[x,h]=(0,T.useState)({borderColor:o.palette.grey["500"],borderLeftStyle:"solid",borderLeftWidth:2,width:25,left:-25}),[j,_]=(0,T.useState)(l.map(()=>"waiting")),b=(0,T.useMemo)(()=>j.includes("error")?"error":j.includes("waiting")?"waiting":j.includes("running")?"running":"success",[j]),S=r;S.type===F.matrixSelector&&(S={type:F.call,func:en.last_over_time,args:[r]});let{data:Z,isFetching:E,error:L}=function(e,r,a){let{data:t}=(0,f.useDatasourceClient)(r);return(0,$.useQuery)({enabled:!!t&&a,queryKey:["instantQuery",e,"datasource",r.kind],queryFn:async()=>{let r=performance.now(),a=await t.instantQuery({query:e}),n=performance.now()-r;return{...a,responseTime:n}}})}(et(S)??"",n,"success"===b);(0,T.useEffect)(()=>{s&&("error"===b||L?s(i,"error"):E&&s(i,"running"))},[b,L,E,s,i]);let k=(0,T.useCallback)((e,r)=>{_(a=>{let t=[...a];return t[e]=r,t})},[_]);(0,T.useLayoutEffect)(()=>{if(void 0===a||null===a||null===d)return;let e=a.getBoundingClientRect(),r=d.getBoundingClientRect();t?h(a=>({...a,top:"calc(50% - 1px)",bottom:r.bottom-e.top,borderTopLeftRadius:10,borderTopStyle:"solid",borderBottomLeftRadius:void 0})):h(a=>({...a,top:e.bottom-r.top,bottom:"calc(50% - 1px)",borderBottomLeftRadius:10,borderBottomStyle:"solid",borderTopLeftRadius:void 0}))},[a,d,t,v,h]),(0,T.useEffect)(()=>{if((null==Z?void 0:Z.status)!=="success")return;s&&s(i,"success");let e=0,r={},{resultType:a,result:t}=Z.data;"scalar"===a||"string"===a?e=1:t&&t.length>0&&(e=t.length,t.forEach(e=>{Object.entries(e.metric).forEach(e=>{let[a,t]=e;"__name__"!==a&&(r[a]=r[a]??{},r[a][t]=(r[a][t]??0)+1)})}));let n={},o={};Object.entries(r).forEach(e=>{let[r,a]=e;n[r]=Object.keys(a).length,o[r]=Object.entries(a).sort((e,r)=>{let[,a]=e,[,t]=r;return t-a}).slice(0,10).map(e=>{let[r,a]=e;return{value:r,count:a}})}),y({numSeries:e,sortedLabelCards:Object.entries(n).sort((e,r)=>r[1]-e[1]),labelExamples:o})},[Z,s,i]);let q=(0,c.jsxs)(m.Z,{direction:"row",gap:2,children:[(0,c.jsxs)(w.Z,{ref:v,sx:{position:"relative",display:"inline-block",padding:1,marginBottom:1.5,borderRadius:2,backgroundColor:o.palette.background.code},children:[void 0!==a&&(0,c.jsx)(w.Z,{sx:{position:"absolute",display:"inline-block",...x}}),er(r,!1,1)]}),(0,c.jsx)(es,{mergedChildState:b,isFetching:E,error:L,resultStats:g,responseTime:null==Z?void 0:Z.responseTime})]});return r.type===F.binaryExpr?(0,c.jsxs)("div",{children:[(0,c.jsx)(w.Z,{ml:5,children:(0,c.jsx)(ei,{node:l[0],parentEl:d,reverse:!0,datasource:n,childIdx:0,reportNodeState:k})}),q,(0,c.jsx)(w.Z,{ml:5,children:(0,c.jsx)(ei,{node:l[1],parentEl:d,reverse:!1,datasource:n,childIdx:1,reportNodeState:k})})]}):(0,c.jsxs)("div",{children:[q,l.map((e,r)=>(0,c.jsx)(w.Z,{ml:5,children:(0,c.jsx)(ei,{node:e,parentEl:d,reverse:!1,datasource:n,childIdx:r,reportNodeState:k})},r))]})}function es(e){let{mergedChildState:r,isFetching:a,error:t,resultStats:n,responseTime:i}=e;return"waiting"===r?(0,c.jsx)(eo,{text:"Waiting for child query"}):"running"===r?(0,c.jsx)(eo,{text:"Running"}):"error"===r?(0,c.jsxs)(m.Z,{children:[(0,c.jsx)(k.default,{}),"Blocked on child query error"]}):a?(0,c.jsx)(eo,{text:"Loading"}):t?(0,c.jsxs)(w.Z,{display:"flex",alignItems:"center",gap:1,sx:{color:e=>e.palette.error.main},marginBottom:1.5,children:[(0,c.jsx)(k.default,{}),(0,c.jsxs)(S.Z,{variant:"body2",children:[(0,c.jsx)("strong",{children:"Error executing query:"})," ",t.message]})]}):(0,c.jsxs)(m.Z,{direction:"row",gap:1,alignItems:"center",marginBottom:1.5,children:[(0,c.jsxs)(S.Z,{variant:"body2",component:"span",sx:{color:e=>e.palette.grey[500]},children:[n.numSeries," result",1!==n.numSeries&&"s","\xa0\xa0–\xa0\xa0",i?`${Math.round(i)}ms`:"? ms",n.sortedLabelCards.length>0&&(0,c.jsx)(c.Fragment,{children:"\xa0\xa0–"})]}),n.sortedLabelCards.slice(0,10).map(e=>{var r;let[a,t]=e;return(0,c.jsx)(g.Z,{title:(0,c.jsx)(w.Z,{children:(0,c.jsxs)(Z.Z,{dense:!0,children:[null==(r=n.labelExamples[a])?void 0:r.map(e=>{let{value:r,count:a}=e;return(0,c.jsxs)(E.ZP,{sx:{display:"flex",gap:1,py:0,px:.5},children:[(0,c.jsx)(L.default,{sx:{fontSize:8}}),(0,c.jsx)(S.Z,{variant:"body2",component:"span",sx:{color:e=>"dark"===e.palette.mode?e.palette.warning.dark:e.palette.warning.main,fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:K(r)}),(0,c.jsxs)(S.Z,{variant:"body2",component:"span",sx:{whiteSpace:"nowrap",flexShrink:0},children:["(",a,"x)"]})]},r)}),t>10&&(0,c.jsxs)(E.ZP,{sx:{display:"flex",gap:1,py:0,px:.5},children:[(0,c.jsx)(L.default,{sx:{fontSize:8}}),(0,c.jsx)(S.Z,{variant:"body2",children:". . ."})]})]})}),arrow:!0,children:(0,c.jsxs)("span",{style:{cursor:"pointer",whiteSpace:"nowrap"},children:[(0,c.jsx)(S.Z,{variant:"body2",component:"span",sx:{fontFamily:"monospace",color:e=>e.palette.success.main},children:a}),(0,c.jsxs)(S.Z,{variant:"body2",component:"span",sx:{color:e=>e.palette.grey[500]},children:[": ",t]})]})},a)}),n.sortedLabelCards.length>10?(0,c.jsxs)(S.Z,{variant:"body2",children:["...",n.sortedLabelCards.length-10," more..."]}):null]})}function eo(e){let{text:r}=e;return(0,c.jsxs)(w.Z,{display:"flex",alignItems:"center",gap:1,marginBottom:1.5,children:[(0,c.jsx)(x.Z,{size:16,color:"secondary"}),(0,c.jsxs)(S.Z,{variant:"body2",color:"text.secondary",children:[r,"..."]})]})}let ec="Tree View",el="Open "+ec,ed="Close "+ec;function ep(e){let{completeConfig:r,datasource:a,isReadOnly:t,...n}=e,i=(0,u.Z)(),s="dark"===i.palette.mode,[o,w]=(0,T.useState)(!1),S=(0,T.useMemo)(()=>new d.q9().activateLinter(!1).setComplete(r).asExtension(),[r]),Z=(0,f.useReplaceVariablesInString)(n.value);Z&&(Z=(0,b.d)(Z,12345,12345));let{data:E,isLoading:L,error:k}=function(e,r,a){let{data:t}=(0,f.useDatasourceClient)(r);return(0,$.useQuery)({enabled:!!t&&a,queryKey:["parseQuery",e,"datasource",r],queryFn:async()=>await t.parseQuery({query:e})})}(Z??"",a,o);return(0,c.jsxs)(m.Z,{position:"relative",children:[(0,c.jsx)(v.Z,{shrink:!0,sx:{position:"absolute",top:"-12px",left:"10px",padding:"0 4px",color:i.palette.text.primary,zIndex:1},children:"PromQL Expression"}),(0,c.jsx)(l.ZP,{"data-testid":"promql_expression_editor",...n,style:{border:`1px solid ${i.palette.divider}`},theme:s?"dark":"light",readOnly:t??!1,basicSetup:{highlightActiveLine:!1,highlightActiveLineGutter:!1,foldGutter:!1},extensions:[p.tk.lineWrapping,S,p.tk.theme({".cm-content":{paddingTop:"8px",paddingBottom:"8px",paddingRight:"40px"}})],placeholder:"Example: sum(rate(http_requests_total[5m]))"}),Z&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(g.Z,{title:o?ed:el,children:(0,c.jsx)(y.Z,{"aria-label":o?ed:el,onClick:()=>{w(!o)},sx:{position:"absolute",right:"5px",top:"5px"},size:"small",children:(0,c.jsx)(h.default,{sx:{fontSize:"18px"}})},"tree-view-button")}),o&&(0,c.jsxs)("div",{style:{border:`1px solid ${i.palette.divider}`,position:"relative"},children:[(0,c.jsx)(g.Z,{title:ed,children:(0,c.jsx)(y.Z,{"aria-label":ed,onClick:()=>w(!1),sx:{position:"absolute",top:"5px",right:"5px"},size:"small",children:(0,c.jsx)(_.default,{sx:{fontSize:"18px"}})},"tree-view-close-button")}),k?(0,c.jsx)(j.ErrorAlert,{error:{name:`${ec} not available`,message:k.message}}):(0,c.jsx)("div",{style:{padding:`${i.spacing(1.5)} ${i.spacing(1.5)} 0 ${i.spacing(1.5)}`,overflowX:"auto",backgroundColor:i.palette.background.default},children:L?(0,c.jsx)(x.Z,{}):(null==E?void 0:E.data)?(0,c.jsx)(ei,{node:E.data,reverse:!1,childIdx:0,datasource:a}):null})]})]})]})}},99176:function(e,r,a){function t(e){let[r,a]=e;return[1e3*r,function(e){let r;switch(e){case"+Inf":r=1/0;break;case"-Inf":r=-1/0;break;default:r=parseFloat(e)}return r}(a)]}a.d(r,{Mm:()=>x.Mm,nY:()=>x.nY,k7:()=>f,wd:()=>_,Nr:()=>s,mB:()=>u,Bf:()=>j,PL:()=>l,c4:()=>i,Fp:()=>o,Rv:()=>x.Rv,sv:()=>x.sv,ac:()=>p,mY:()=>c,qJ:()=>t,X2:()=>d});var n=a(35015);function i(e){return async()=>{let r=`${e.datasourceUrl}/-/healthy`;try{let a=await (0,n.he)(r,{headers:e.headers});return 200===a.status}catch{return!1}}}function s(e,r){return v("/api/v1/query",e,r)}function o(e,r){return v("/api/v1/query_range",e,r)}function c(e,r){return v("/api/v1/labels",e,r)}function l(e,r){let{labelName:a,...t}=e;return 0===a.length?new Promise(e=>{e({data:[]})}):m(`/api/v1/label/${encodeURIComponent(a)}/values`,t,r)}function d(e,r){return m("/api/v1/metadata",e,r)}function p(e,r){return v("/api/v1/series",e,r)}function u(e,r){return v("/api/v1/parse_query",e,r)}function m(e,r,a){let{datasourceUrl:t,headers:i}=a,s=`${t}${e}`,o=g(r).toString();return""!==o&&(s+=`?${o}`),(0,n.rd)(s,{method:"GET",headers:i})}function v(e,r,a){let{datasourceUrl:t,headers:n}=a;return y(`${t}${e}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",...n},body:g(r)})}function g(e){let r=new URLSearchParams;for(let a in e){let t=e[a];if(void 0!==t){if("string"==typeof t){r.append(a,t);continue}if("number"==typeof t){r.append(a,t.toString());continue}for(let e of t)r.append(a,e)}}return r}async function y(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];let t=await (0,n.he)(...r);return{...await t.json(),rawResponse:t}}var x=a(21969),h=a(29085),T=a(20461);function j(e){let{start:r,end:a}=e;return{start:Math.ceil((0,T.getUnixTime)(r)),end:Math.ceil((0,T.getUnixTime)(a))}}function _(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=(e.end-e.start)/1e4;return n>1&&(n=Math.ceil(n)),Math.max(t/1e3*a,r,n)}function f(e){if(!e)return;let r=(0,h.Ib)(e);return Math.floor((0,T.milliseconds)(r)/1e3)}},21969:function(e,r,a){a.d(r,{Mm:()=>i,Rv:()=>s,nY:()=>n,sv:()=>o});var t=a(8887);let n="PrometheusDatasource",i={kind:n};function s(e){return!(0,t.isVariableDatasource)(e)&&void 0===e.name}function o(e){return(0,t.isVariableDatasource)(e)||e.kind===n}},17197:function(e,r,a){a.d(r,{d:()=>i});var t=a(8887),n=a(29085);function i(e,r,a){let i=(0,t.replaceVariable)(e,"__interval_ms",a.toString());i=(0,t.replaceVariable)(i,"__interval",(0,n.LU)((0,n.oK)(a)));let s=Math.max(a+r,4*r);return(0,t.replaceVariable)(i,"__rate_interval",(0,n.LU)((0,n.oK)(s)))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["1301"],{35015:function(e,t,n){async function a(...e){let t=await n.g.fetch(...e);if(!1===t.ok){let e=t.headers.get("content-type");if(e?.includes("application/json")){let e=await t.clone().json();if(e.error)throw new s(e.error,t.status);if(e.message)throw new s(e.message,t.status)}let n=await t.clone().text();if(n)throw new s(n,t.status);throw new i(t)}return t}async function r(...e){let t=await a(...e);if(!t.ok)throw new i(t);return await t.json()}n.d(t,{he:()=>a,kp:()=>i,rd:()=>r,yh:()=>s});class i extends Error{status;constructor(e){super(`${e.status} ${e.statusText}`),this.status=e.status,Object.setPrototypeOf(this,i.prototype)}}class s extends Error{status;constructor(e,t){super(e),this.status=t,Object.setPrototypeOf(this,s.prototype)}}},99176:function(e,t,n){function a(e){let[t,n]=e;return[1e3*t,function(e){let t;switch(e){case"+Inf":t=1/0;break;case"-Inf":t=-1/0;break;default:t=parseFloat(e)}return t}(n)]}n.d(t,{Mm:()=>_.Mm,nY:()=>_.nY,k7:()=>b,wd:()=>g,Nr:()=>s,mB:()=>h,Bf:()=>P,PL:()=>u,c4:()=>i,Fp:()=>o,Rv:()=>_.Rv,sv:()=>_.sv,ac:()=>d,mY:()=>l,qJ:()=>a,X2:()=>c});var r=n(35015);function i(e){return async()=>{let t=`${e.datasourceUrl}/-/healthy`;try{let n=await (0,r.he)(t,{headers:e.headers});return 200===n.status}catch{return!1}}}function s(e,t){return f("/api/v1/query",e,t)}function o(e,t){return f("/api/v1/query_range",e,t)}function l(e,t){return f("/api/v1/labels",e,t)}function u(e,t){let{labelName:n,...a}=e;return 0===n.length?new Promise(e=>{e({data:[]})}):p(`/api/v1/label/${encodeURIComponent(n)}/values`,a,t)}function c(e,t){return p("/api/v1/metadata",e,t)}function d(e,t){return f("/api/v1/series",e,t)}function h(e,t){return f("/api/v1/parse_query",e,t)}function p(e,t,n){let{datasourceUrl:a,headers:i}=n,s=`${a}${e}`,o=v(t).toString();return""!==o&&(s+=`?${o}`),(0,r.rd)(s,{method:"GET",headers:i})}function f(e,t,n){let{datasourceUrl:a,headers:r}=n;return m(`${a}${e}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",...r},body:v(t)})}function v(e){let t=new URLSearchParams;for(let n in e){let a=e[n];if(void 0!==a){if("string"==typeof a){t.append(n,a);continue}if("number"==typeof a){t.append(n,a.toString());continue}for(let e of a)t.append(n,e)}}return t}async function m(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=await (0,r.he)(...t);return{...await a.json(),rawResponse:a}}var _=n(21969),y=n(29085),w=n(20461);function P(e){let{start:t,end:n}=e;return{start:Math.ceil((0,w.getUnixTime)(t)),end:Math.ceil((0,w.getUnixTime)(n))}}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=(e.end-e.start)/1e4;return r>1&&(r=Math.ceil(r)),Math.max(a/1e3*n,t,r)}function b(e){if(!e)return;let t=(0,y.Ib)(e);return Math.floor((0,w.milliseconds)(t)/1e3)}},21969:function(e,t,n){n.d(t,{Mm:()=>i,Rv:()=>s,nY:()=>r,sv:()=>o});var a=n(8887);let r="PrometheusDatasource",i={kind:r};function s(e){return!(0,a.isVariableDatasource)(e)&&void 0===e.name}function o(e){return(0,a.isVariableDatasource)(e)||e.kind===r}},46595:function(e,t,n){n.r(t),n.d(t,{PrometheusDatasource:()=>u});var a=n(99176),r=n(24246),i=n(8887),s=n(52054),o=n(8695);n(54538);var l=n(16146);let u={createClient:(e,t)=>{let{directUrl:n,proxy:r}=e,{proxyUrl:i}=t,s=n??i;if(void 0===s)throw Error("No URL specified for Prometheus client. You can use directUrl in the spec to configure it.");let o=null==r?void 0:r.spec.headers;return{options:{datasourceUrl:s},healthCheck:(0,a.c4)({datasourceUrl:s,headers:o}),instantQuery:(e,t)=>(0,a.Nr)(e,{datasourceUrl:s,headers:t??o}),rangeQuery:(e,t)=>(0,a.Fp)(e,{datasourceUrl:s,headers:t??o}),labelNames:(e,t)=>(0,a.mY)(e,{datasourceUrl:s,headers:t??o}),labelValues:(e,t)=>(0,a.PL)(e,{datasourceUrl:s,headers:t??o}),metricMetadata:(e,t)=>(0,a.X2)(e,{datasourceUrl:s,headers:t??o}),series:(e,t)=>(0,a.ac)(e,{datasourceUrl:s,headers:t??o}),parseQuery:(e,t)=>(0,a.mB)(e,{datasourceUrl:s,headers:t??o})}},getBuiltinVariableDefinitions:()=>[{kind:"BuiltinVariable",spec:{name:"__interval",value:()=>"$__interval",source:"Prometheus",display:{name:"__interval",description:'For dynamic queries that adapt across different time ranges, use $__interval instead of hardcoded intervals. It represents the actual spacing between data points: it’s calculated based on the current time range and the panel pixel width (taking the "Min step" as a lower bound).',hidden:!0}}},{kind:"BuiltinVariable",spec:{name:"__interval_ms",value:()=>"$__interval_ms",source:"Prometheus",display:{name:"__interval_ms",description:"Same as $__interval but in milliseconds.",hidden:!0}}},{kind:"BuiltinVariable",spec:{name:"__rate_interval",value:()=>"$__rate_interval",source:"Prometheus",display:{name:"__rate_interval",description:"Use this one rather than $__interval as the range parameter of functions like rate, increase, etc. With such function it is advised to choose a range that is at least 4x the scrape interval (this is to allow for various races, and to be resilient to a failed scrape). $__rate_interval provides that, as it is defined as `max($__interval + Min Step, 4 * Min Step)`, where Min Step value should represent the scrape interval of the metrics.",hidden:!0}}}],OptionsEditorComponent:function(e){let{value:t,onChange:n,isReadonly:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{variant:"h4",mb:2,children:"General Settings"}),(0,r.jsx)(o.Z,{fullWidth:!0,label:"Scrape Interval",value:t.scrapeInterval||"",placeholder:`Default: ${l.v}`,InputProps:{readOnly:a},InputLabelProps:{shrink:!!a||void 0},onChange:e=>n({...t,scrapeInterval:e.target.value})}),(0,r.jsx)(i.HTTPSettingsEditor,{value:t,onChange:n,isReadonly:a,initialSpecDirect:{directUrl:""},initialSpecProxy:{proxy:{kind:"HTTPProxy",spec:{allowedEndpoints:[{endpointPattern:"/api/v1/labels",method:"POST"},{endpointPattern:"/api/v1/series",method:"POST"},{endpointPattern:"/api/v1/metadata",method:"GET"},{endpointPattern:"/api/v1/query",method:"POST"},{endpointPattern:"/api/v1/query_range",method:"POST"},{endpointPattern:"/api/v1/label/([a-zA-Z0-9_-]+)/values",method:"GET"},{endpointPattern:"/api/v1/parse_query",method:"POST"}],url:""}}}})]})},createInitialOptions:()=>({directUrl:""})}},16146:function(e,t,n){n.d(t,{v:()=>a});let a="1m"}}]);