@perses-dev/prometheus-plugin 0.53.3 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/__mf/js/Prometheus.7a79b403.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.66fbbecd.js → main.d2018d3d.js} +5 -6
  16. package/mf-manifest.json +57 -57
  17. package/mf-stats.json +59 -59
  18. package/package.json +7 -7
  19. package/__mf/js/Prometheus.81a70cf0.js +0 -6
  20. package/__mf/js/async/1101.9cf067ee.js +0 -73
  21. package/__mf/js/async/4368.d32ad5d2.js +0 -2
  22. package/__mf/js/async/4421.39621b12.js +0 -1
  23. package/__mf/js/async/537.82230699.js +0 -1
  24. package/__mf/js/async/5876.1976752d.js +0 -2
  25. package/__mf/js/async/8706.a36614fb.js +0 -1
  26. package/__mf/js/async/__federation_expose_PrometheusDatasource.71aecfaf.js +0 -1
  27. package/__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js +0 -1
  28. package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.86bf76a6.js +0 -1
  29. package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e5e35f24.js +0 -1
  30. package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.b2270799.js +0 -1
  31. package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.baa5cd15.js +0 -1
  32. /package/__mf/js/async/{6441.38c30276.js.LICENSE.txt → 2275.95fa6219.js.LICENSE.txt} +0 -0
  33. /package/__mf/js/async/{1101.9cf067ee.js.LICENSE.txt → 3391.eced295d.js.LICENSE.txt} +0 -0
  34. /package/__mf/js/async/{4368.d32ad5d2.js.LICENSE.txt → 4368.38ebfc12.js.LICENSE.txt} +0 -0
  35. /package/__mf/js/async/{5876.1976752d.js.LICENSE.txt → 6714.fd02e782.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
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,{useExplorerManagerContext:()=>y,ExploreToolbar:()=>E,ExplorerManagerProvider:()=>s,ExplorerManagerProviderWithQueryParams:()=>h,explorerQueryConfig:()=>_,ExploreManager:()=>P,useExplorerQueryParams:()=>D,ViewExplore:()=>I});var o=r(24246),n=r(36372),i=r(59862),a=r(66694),l=r(27901),c=r(69488),p=r(54538),u=r(51564);let f=(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)(f.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 y(){let e=(0,p.useContext)(f);if(void 0===e)throw Error("No ExplorerManagerContext found. Did you forget a Provider?");return e}let d={explorer:(0,u.withDefault)(u.StringParam,void 0),data:(0,u.withDefault)(u.JsonParam,{})};function h({children:e}){let[t,r]=(0,u.useQueryParams)(d);return(0,o.jsx)(s,{store:[t,r],children:e})}var m=r(76439),g=r(25283),b=r(48565),v=r(51781),x=r(49408),S=r(84954),w=r(84974),j=r(12932),A=r(94776);let E=e=>{let{exploreTitleComponent:t}=e,r=(0,m.Z)((0,A.Z)().breakpoints.up("lg"));return(0,o.jsx)(g.Z,{"data-testid":"explore-toolbar",children:(0,o.jsxs)(n.Z,{sx:{display:"flex",width:"100%"},children:[t,(0,o.jsx)(g.Z,{direction:"row",spacing:1,ml:"auto",flexWrap:r?"nowrap":"wrap-reverse",justifyContent:"end",children:(0,o.jsx)(i.TimeRangeControls,{})})]})})};function P(e){let{exploreTitleComponent:t}=e,{explorer:r,setExplorer:a}=y(),l=(0,i.useListPluginMetadata)(["Explore"]),c=(0,m.Z)("(max-width: 768px)"),[u,f]=(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 d=r?s[r]:void 0;return r?(0,o.jsxs)(g.Z,{sx:{width:"100%"},px:2,pb:2,pt:1.5,gap:1,children:[(0,o.jsx)(E,{exploreTitleComponent:t}),(0,o.jsxs)(g.Z,{direction:c?"column":"row",gap:2,sx:{width:"100%"},children:[(0,o.jsxs)(g.Z,{sx:{borderRight:+!c,borderBottom:+!!c,borderColor:"divider",minWidth:u?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)(b.Z,{title:u?"Expand explorer tabs":"Collapse explorer tabs","aria-label":u?"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:()=>f(!u),children:u?(0,o.jsx)(w.default,{}):(0,o.jsx)(j.default,{})})}),(0,o.jsx)(v.Z,{orientation:c?"horizontal":"vertical",value:r,onChange:(e,t)=>a(t),variant:c?"fullWidth":"scrollable",sx:{display:u?"none":"flex"},children:l.data?.sort((e,t)=>e.spec.display.name.localeCompare(t.spec.display.name)).map(e=>(0,o.jsx)(x.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)(S.Z,{sx:{padding:"10px",width:"100%"},children:d&&(0,o.jsx)(i.PluginLoaderComponent,{plugin:{name:d.spec.name,moduleName:d.module.name}},`${d.module.name}-${d.spec.name}`)})]})]}):(0,o.jsx)("div",{children:"No explorer plugin available"})}function O(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)(h,{children:(0,o.jsx)(P,{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)(O,{exploreTitleComponent:u})})})})})})}var R=r(16955);let _={refresh:i.TimeRangeParam,start:i.TimeRangeParam,end:i.TimeRangeParam,explorer:u.StringParam,data:u.JsonParam};function D(e){let[t]=(0,u.useQueryParams)(_,{updateType:"replaceIn"});return(0,R.stringify)((0,u.encodeQueryParams)(_,{...t,...e}))}},75532: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}},16955:function(e,t,r){"use strict";var o=r(86928),n=r(98900);e.exports={formats:r(75532),parse:n,stringify:o}},98900:function(e,t,r){"use strict";var o=r(97561),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,throwOnLimitExceeded:!1},l=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return 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,t.throwOnLimitExceeded?p+1:p);if(t.throwOnLimitExceeded&&u.length>p)throw RangeError("Parameter limit exceeded. Only "+p+" parameter"+(1===p?"":"s")+" allowed.");var 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,i(r[d])?r[d].length:0),function(e){return t.decoder(e,a.decoder,s,"value")})),h&&t.interpretNumericEntities&&"iso-8859-1"===s&&(h=String(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,n){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var c=n?t:l(t,r,i),p=e.length-1;p>=0;--p){var u,f=e[p];if("[]"===f&&r.parseArrays)u=r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:o.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var s="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,y=r.decodeDotInKeys?s.replace(/%2E/g,"."):s,d=parseInt(y,10);r.parseArrays||""!==y?!isNaN(d)&&f!==y&&String(d)===y&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(u=[])[d]=c:"__proto__"!==y&&(u[y]=c):u={0:c}}c=u}return c},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");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");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,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var n="string"==typeof e?c(e,r):e,i=r.plainObjects?{__proto__: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)}},86928:function(e,t,r){"use strict";var o=r(95337),n=r(97561),i=r(75532),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,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,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 E,P,O=t,I=A,R=0,_=!1;void 0!==(I=I.get(d))&&!_;){var D=I.get(t);if(R+=1,void 0!==D)if(D===R)throw RangeError("Cyclic object value");else _=!0;void 0===I.get(d)&&(R=0)}if("function"==typeof m?O=m(r,O):O instanceof Date?O=v(O):"comma"===i&&c(O)&&(O=n.maybeMap(O,function(e){return e instanceof Date?v(e):e})),null===O){if(p)return h&&!w?h(r,y.encoder,j,"key",x):r;O=""}if("string"==typeof(E=O)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||n.isBuffer(O))return h?[S(w?r:h(r,y.encoder,j,"key",x))+"="+S(h(O,y.encoder,j,"value",x))]:[S(r)+"="+S(String(O))];var M=[];if(void 0===O)return M;if("comma"===i&&c(O))w&&h&&(O=n.maybeMap(O,h)),P=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(m))P=m;else{var k=Object.keys(O);P=g?k.sort(g):k}var F=s?String(r).replace(/\./g,"%2E"):String(r),T=a&&c(O)&&1===O.length?F+"[]":F;if(l&&c(O)&&0===O.length)return T+"[]";for(var N=0;N<P.length;++N){var C=P[N],L="object"==typeof C&&C&&void 0!==C.value?C.value:O[C];if(!f||null!==L){var U=b&&s?String(C).replace(/\./g,"%2E"):String(C),W=c(O)?"function"==typeof i?i(T,U):T:T+(b?"."+U:"["+U+"]");A.set(t,R);var B=o();B.set(d,A),u(M,e(L,W,i,a,l,p,f,s,"comma"===i&&w&&c(O)?null:h,m,g,b,v,x,S,w,j,B))}}return M},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],g=n[d];i.skipNulls&&null===g||u(a,h(g,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 b=a.join(i.delimiter),v=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:""}},97561:function(e,t,r){"use strict";var o=r(75532),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?{__proto__: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&&"function"!=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)}}},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,E=r(40679)(),P=r(87778),O=r(77819),I=r(84578),R=r(52453),_=r(31720),D={},M="undefined"!=typeof Uint8Array&&P?P(Uint8Array):o,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":E&&P?P([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%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%":D,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&P?P(P([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&P?P(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&&E&&P?P(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&P?P(""[Symbol.iterator]()):o,"%Symbol%":E?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":A,"%TypedArray%":M,"%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%":_,"%Function.prototype.apply%":R,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":O,"%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(P)try{null.error}catch(e){var F=P(P(e));k["%Error.prototype%"]=F}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&&P&&(r=P(n.prototype))}return k[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),L=r(71712),U=C.call(_,Array.prototype.concat),W=C.call(R,Array.prototype.splice),B=C.call(_,String.prototype.replace),$=C.call(_,String.prototype.slice),Z=C.call(_,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(L(N,o)&&(o="%"+(r=N[o])[0]+"%"),L(k,o)){var n=k[o];if(n===D&&(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,U([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,L(k,i="%"+o+"%"))a=k[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=L(a,y),a=a[y];s&&!l&&(k[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,E=Array.prototype.slice,P=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,D="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_?"object":"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function F(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?-P(-e):P(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,L={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function W(e,t,r){var o=L[r.quoteStyle||t];return o+e+o}function B(e){return!D||!("object"==typeof e&&(D in e||void 0!==e[D]))}function $(e){return"[object Array]"===H(e)&&B(e)}function Z(e){return"[object RegExp]"===H(e)&&B(e)}function K(e){if(_)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,P,I=o||{};if(G(I,"quoteStyle")&&!G(L,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=U[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?F(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return Q?F(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=E.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=_?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!=typeof t||_?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)||M.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||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return z(ei(O.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(P=t)&&B(P))&&!Z(t)){var eb=ee(t,ei),ev=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,ex=t instanceof Object?"":"null prototype",eS=!ev&&D&&Object(t)===t&&D 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(_){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(_&&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++)M.call(e,a[p])&&n.push("["+t(a[p])+"]: "+t(e[a[p]],e));return n}},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}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 6714.fd02e782.js.LICENSE.txt */
2
+ (self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["6714"],{12577:function(e,t,r){"use strict";r.d(t,{Z:()=>h});var n=r(54538),i=r(90496),o=r(82267),a=r(67488),s=r(52054),u=r(78849),l=r(12709),c=r(51751),f=r(14662),p=r(16351),d=r(24246);let g=(0,l.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}}]}),h=n.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiListItemText"}),{children:a,className:l,disableTypography:h=!1,inset:m=!1,primary:y,primaryTypographyProps:b,secondary:v,secondaryTypographyProps:x,slots:w={},slotProps:_={},...O}=r,{dense:$}=n.useContext(u.Z),B=null!=y?y:a,j=v,S={...r,disableTypography:h,inset:m,primary:!!B,secondary:!!j,dense:$},N=(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)})(S),D={slots:w,slotProps:{primary:b,secondary:x,..._}},[k,F]=(0,p.Z)("root",{className:(0,i.Z)(N.root,l),elementType:g,externalForwardedProps:{...D,...O},ownerState:S,ref:t}),[A,M]=(0,p.Z)("primary",{className:N.primary,elementType:s.Z,externalForwardedProps:D,ownerState:S}),[T,P]=(0,p.Z)("secondary",{className:N.secondary,elementType:s.Z,externalForwardedProps:D,ownerState:S});return null==B||B.type===s.Z||h||(B=(0,d.jsx)(A,{variant:$?"body2":"body1",component:M?.variant?void 0:"span",...M,children:B})),null==j||j.type===s.Z||h||(j=(0,d.jsx)(T,{variant:"body2",color:"textSecondary",...P,children:j})),(0,d.jsxs)(k,{...F,children:[B,j]})})},98346:function(e,t,r){"use strict";r.d(t,{Z:()=>v});var n=r(54538),i=r(90496),o=r(16819),a=r(82267),s=r(16838),u=r(14544),l=r(51640),c=r(12709),f=r(82319),p=r(90433),d=r(51751),g=r(87462),h=r(94996),m=r(19984),y=r(24246);let b=(0,c.ZP)(u.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`size${(0,l.Z)(r.size)}`]]}})((0,f.Z)(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${g.Z.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${g.Z.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.Fq)(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter((0,p.Z)()).map(([t])=>({props:{color:t},style:{[`&.${g.Z.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.Fq)(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.Fq)(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),v=n.forwardRef(function(e,t){var r;let{value:s,...u}=n.useContext(h.Z),c=n.useContext(m.Z),f=(0,o.Z)({...u,selected:(r=e.value,void 0!==s&&void 0!==r&&(Array.isArray(s)?s.includes(r):r===s))},e),p=(0,d.i)({props:f,name:"MuiToggleButton"}),{children:v,className:x,color:w="standard",disabled:_=!1,disableFocusRipple:O=!1,fullWidth:$=!1,onChange:B,onClick:j,selected:S,size:N="medium",value:D,...k}=p,F={...p,color:w,disabled:_,disableFocusRipple:O,fullWidth:$,size:N},A=(e=>{let{classes:t,fullWidth:r,selected:n,disabled:i,size:o,color:s}=e,u={root:["root",n&&"selected",i&&"disabled",r&&"fullWidth",`size${(0,l.Z)(o)}`,s]};return(0,a.Z)(u,g.a,t)})(F);return(0,y.jsx)(b,{className:(0,i.Z)(u.className,A.root,x,c||""),disabled:_,focusRipple:!O,ref:t,onClick:e=>{j&&(j(e,D),e.defaultPrevented)||B&&B(e,D)},onChange:B,value:D,ownerState:F,"aria-pressed":S,...k,children:v})})},87462:function(e,t,r){"use strict";r.d(t,{Z:()=>a,a:()=>o});var n=r(44124),i=r(6749);function o(e){return(0,i.ZP)("MuiToggleButton",e)}let a=(0,n.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"])},5404:function(e,t,r){"use strict";r.d(t,{Z:()=>x});var n=r(54538),i=r(90496),o=r(82267),a=r(65124),s=r(12709),u=r(82319),l=r(51751),c=r(51640),f=r(44124),p=r(6749);function d(e){return(0,p.ZP)("MuiToggleButtonGroup",e)}let g=(0,f.Z)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var h=r(94996),m=r(19984),y=r(87462),b=r(24246);let v=(0,s.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${g.grouped}`]:t.grouped},{[`& .${g.grouped}`]:t[`grouped${(0,c.Z)(r.orientation)}`]},{[`& .${g.firstButton}`]:t.firstButton},{[`& .${g.lastButton}`]:t.lastButton},{[`& .${g.middleButton}`]:t.middleButton},t.root,"vertical"===r.orientation&&t.vertical,r.fullWidth&&t.fullWidth]}})((0,u.Z)(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${g.grouped}`]:{[`&.${g.selected} + .${g.grouped}.${g.selected}`]:{borderTop:0,marginTop:0}},[`& .${g.firstButton},& .${g.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${g.lastButton},& .${g.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${g.lastButton}.${y.Z.disabled},& .${g.middleButton}.${y.Z.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${g.grouped}`]:{[`&.${g.selected} + .${g.grouped}.${g.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${g.firstButton},& .${g.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${g.lastButton},& .${g.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${g.lastButton}.${y.Z.disabled},& .${g.middleButton}.${y.Z.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),x=n.forwardRef(function(e,t){let r=(0,l.i)({props:e,name:"MuiToggleButtonGroup"}),{children:s,className:u,color:f="standard",disabled:p=!1,exclusive:g=!1,fullWidth:y=!1,onChange:x,orientation:w="horizontal",size:_="medium",value:O,...$}=r,B={...r,disabled:p,fullWidth:y,orientation:w,size:_},j=(e=>{let{classes:t,orientation:r,fullWidth:n,disabled:i}=e,a={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${(0,c.Z)(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,o.Z)(a,d,t)})(B),S=n.useCallback((e,t)=>{let r;if(!x)return;let n=O&&O.indexOf(t);O&&n>=0?(r=O.slice()).splice(n,1):r=O?O.concat(t):[t],x(e,r)},[x,O]),N=n.useCallback((e,t)=>{x&&x(e,O===t?null:t)},[x,O]),D=n.useMemo(()=>({className:j.grouped,onChange:g?N:S,value:O,size:_,fullWidth:y,color:f,disabled:p}),[j.grouped,g,N,S,O,_,y,f,p]),k=(0,a.Z)(s),F=k.length;return(0,b.jsx)(v,{role:"group",className:(0,i.Z)(j.root,u),ref:t,ownerState:B,...$,children:(0,b.jsx)(h.Z.Provider,{value:D,children:k.map((e,t)=>(0,b.jsx)(m.Z.Provider,{value:(e=>{let t=0===e,r=e===F-1;return t&&r?"":t?j.firstButton:r?j.lastButton:j.middleButton})(t),children:e},t))})})})},19984:function(e,t,r){"use strict";r.d(t,{Z:()=>n});let n=r(54538).createContext(void 0)},94996:function(e,t,r){"use strict";r.d(t,{Z:()=>n});let n=r(54538).createContext({})},65124:function(e,t,r){"use strict";r.d(t,{Z:()=>i});var n=r(54538);function i(e){return n.Children.toArray(e).filter(e=>n.isValidElement(e))}},8193:function(e,t,r){"use strict";r.d(t,{BL:()=>u,Jj:()=>c,Kd:()=>n,Ys:()=>i,bk:()=>f,dT:()=>p,kx:()=>s,qF:()=>o,vo:()=>a,zx:()=>l});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 l={position:"bottom",mode:"list",size:"medium"};function c(e){return void 0===e?l.position:a(e)?e:l.position}function f(e){return e&&s(e)?e:l.mode}function p(e){return e&&u(e)?e:l.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:()=>el,hv:()=>en,Yi:()=>eo,JZ:()=>ed,Fc:()=>eu,PX:()=>es,Bl:()=>et,M$:()=>ee,N9:()=>ei,Ay:()=>ep,__:()=>ec,Fp:()=>ef,mb:()=>ea});var n,i,o,a,s,u,l,c,f,p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function d(){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(),l=o.getZeroFormat(),c=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,l){if(!isNaN(+n))return+n;let c="",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 l=e[t];if((c=n.replace(RegExp(`([0-9 ])(${l.key})$`),"$1"))!==n)return r(c,i,o,a,s,u)*l.factor}if((c=n.replace("%",""))!==n)return r(c,i,o,a,s,u)/100;let p=parseFloat(n);if(isNaN(p))return;let d=a(p);if(d&&"."!==d&&(c=n.replace(RegExp(`${t(d)}$`),""))!==n)return r(c,i,o,a,s,u);let g={};Object.keys(u).forEach(e=>{g[u[e]]=e});let h=Object.keys(g).sort().reverse(),m=h.length;for(let e=0;e<m;e++){let t=h[e],l=g[t];if((c=n.replace(t,""))!==n){let e;switch(l){case"thousand":e=1e3;break;case"million":e=1e6;break;case"billion":e=1e9;break;case"trillion":e=1e12}return r(c,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,l,c);else{if("number"!=typeof r)return;i=r}if(void 0!==i)return i}}}function g(){if(l)return u;l=1;let e=d(),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 h=function(e,t={}){var r,n,i,o,a,s;let u,l,c,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=(l=n.match(/{([^}]*)}$/))?(t.postfix=l[1],n.slice(0,-l[0].length)):n,t),(c=e.match(/[1-9]+[0-9]*/))&&(t.totalLength=+c[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 d=e.split(".")[1];return d&&(t.trimMantissa=-1!==d.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 c;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 l(){return a[e]}return n.languages=()=>Object.assign({},a),n.currentLanguage=()=>e,n.currentBytes=()=>l().bytes||{},n.currentCurrency=()=>l().currency,n.currentAbbreviations=()=>l().abbreviations,n.currentDelimiters=()=>l().delimiters,n.currentOrdinal=()=>l().ordinal,n.currentDefaults=()=>Object.assign({},l().defaults,u),n.currentOrdinalDefaultFormat=()=>Object.assign({},n.currentDefaults(),l().ordinalFormat),n.currentByteDefaultFormat=()=>Object.assign({},n.currentDefaults(),l().byteFormat),n.currentPercentageDefaultFormat=()=>Object.assign({},n.currentDefaults(),l().percentageFormat),n.currentCurrencyDefaultFormat=()=>Object.assign({},n.currentDefaults(),l().currencyFormat),n.currentTimeDefaultFormat=()=>Object.assign({},n.currentDefaults(),l().timeFormat),n.setDefaults=e=>{e=h(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 l()},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,c=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 l(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 c(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,u=e.e,l=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==l,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>l^r?1:-1;for(a=0,s=(u=i.length)<(l=o.length)?u:l;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return u==l?0:u>l^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 d(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 h,m,y,b,v,x,w,_,O,$=R.prototype={constructor:R,toString:null,valueOf:null},B=new R(1),j=20,S=4,N=-7,D=21,k=-1e7,F=1e7,A=!1,M=1,T=0,P={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},C="0123456789abcdefghijklmnopqrstuvwxyz",E=!0;function R(e,t){var n,o,s,u,l,c,p,d,g=this;if(!(g instanceof R))return new R(e,t);if(null==t){if(e&&!0===e._isBigNumber){g.s=e.s,!e.c||e.e>F?g.c=g.e=null:e.e<k?g.c=[g.e=0]:(g.e=e.e,g.c=e.c.slice());return}if((c="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,l=e;l>=10;l/=10,u++);u>F?g.c=g.e=null:(g.e=u,g.c=[e]);return}d=String(e)}else{if(!r.test(d=String(e)))return O(g,d,c);g.s=45==d.charCodeAt(0)?(d=d.slice(1),-1):1}(u=d.indexOf("."))>-1&&(d=d.replace(".","")),(l=d.search(/e/i))>0?(u<0&&(u=l),u+=+d.slice(l+1),d=d.substring(0,l)):u<0&&(u=d.length)}else{if(f(t,2,C.length,"Base"),10==t&&E)return U(g=new R(e),j+g.e+1,S);if(d=String(e),c="number"==typeof e){if(0*e!=0)return O(g,d,c,t);if(g.s=1/e<0?(d=d.slice(1),-1):1,R.DEBUG&&d.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else g.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1;for(n=C.slice(0,t),u=l=0,p=d.length;l<p;l++)if(0>n.indexOf(o=d.charAt(l))){if("."==o){if(l>u){u=p;continue}}else if(!s&&(d==d.toUpperCase()&&(d=d.toLowerCase())||d==d.toLowerCase()&&(d=d.toUpperCase()))){s=!0,l=-1,u=0;continue}return O(g,String(e),c,t)}c=!1,(u=(d=_(d,t,10,g.s)).indexOf("."))>-1?d=d.replace(".",""):u=d.length}for(l=0;48===d.charCodeAt(l);l++);for(p=d.length;48===d.charCodeAt(--p););if(d=d.slice(l,++p)){if(p-=l,c&&R.DEBUG&&p>15&&(e>0x1fffffffffffff||e!==i(e)))throw Error(a+g.s*e);if((u=u-l-1)>F)g.c=g.e=null;else if(u<k)g.c=[g.e=0];else{if(g.e=u,g.c=[],l=(u+1)%14,u<0&&(l+=14),l<p){for(l&&g.c.push(+d.slice(0,l)),p-=14;l<p;)g.c.push(+d.slice(l,l+=14));l=14-(d=d.slice(l)).length}else l-=p;for(;l--;d+="0");g.c.push(+d)}}else g.c=[g.e=0]}function Z(e,t,r,n){var i,o,a,s,u;if(null==r?r=S:f(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)u=l(e.c),u=1==n||2==n&&(a<=N||a>=D)?d(u,a):g(u,a,"0");else if(o=(e=U(new R(e),t,r)).e,s=(u=l(e.c)).length,1==n||2==n&&(t<=o||o<=N)){for(;s<t;u+="0",s++);u=d(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 L(e,t){for(var r,n,i=1,o=new R(e[0]);i<e.length;i++)(n=new R(e[i])).s&&(r=c(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function z(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)>F?e.c=e.e=null:r<k?e.c=[e.e=0]:(e.e=r,e.c=t),e}function U(e,t,r,o){var a,u,l,c,f,p,d,g=e.c;if(g){e:{for(a=1,c=g[0];c>=10;c/=10,a++);if((u=t-a)<0)u+=14,l=t,d=i((f=g[p=0])/s[a-l-1]%10);else if((p=n((u+1)/14))>=g.length)if(o){for(;g.length<=p;g.push(0));f=d=0,a=1,u%=14,l=u-14+1}else break e;else{for(a=1,f=c=g[p];c>=10;c/=10,a++);u%=14,d=(l=u-14+a)<0?0:i(f/s[a-l-1]%10)}if(o=o||t<0||null!=g[p+1]||(l<0?f:f%s[a-l-1]),o=r<4?(d||o)&&(0==r||r==(e.s<0?3:2)):d>5||5==d&&(4==r||o||6==r&&(u>0?l>0?f/s[a-l]: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,c=1,p--):(g.length=p+1,c=s[14-u],g[p]=l>0?i(f/s[a-l]%s[l])*c:0),o)for(;;)if(0==p){for(u=1,l=g[0];l>=10;l/=10,u++);for(l=g[0]+=c,c=1;l>=10;l/=10,c++);u!=c&&(e.e++,1e14==g[0]&&(g[0]=1));break}else{if(g[p]+=c,1e14!=g[p])break;g[p--]=0,c=1}for(u=g.length;0===g[--u];g.pop());}e.e>F?e.c=e.e=null:e.e<k&&(e.c=[e.e=0])}return e}function I(e){var t,r=e.e;return null===r?e.toString():(t=l(e.c),t=r<=N||r>=D?d(t,r):g(t,r,"0"),e.s<0?"-"+t:t)}return R.clone=e,R.ROUND_UP=0,R.ROUND_DOWN=1,R.ROUND_CEIL=2,R.ROUND_FLOOR=3,R.ROUND_HALF_UP=4,R.ROUND_HALF_DOWN=5,R.ROUND_HALF_EVEN=6,R.ROUND_HALF_CEIL=7,R.ROUND_HALF_FLOOR=8,R.EUCLID=9,R.config=R.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),j=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(f(r=e[t],0,8,t),S=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(f(r[0],-1e9,0,t),f(r[1],0,1e9,t),N=r[0],D=r[1]):(f(r,-1e9,1e9,t),N=-(D=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],F=r[1];else if(f(r,-1e9,1e9,t),r)k=-(F=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))A=r;else throw A=!r,Error(o+"crypto unavailable");else A=r;else throw Error(o+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(f(r=e[t],0,9,t),M=r),e.hasOwnProperty(t="POW_PRECISION")&&(f(r=e[t],0,1e9,t),T=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);E="0123456789"==r.slice(0,10),C=r}}else throw Error(o+"Object expected: "+e);return{DECIMAL_PLACES:j,ROUNDING_MODE:S,EXPONENTIAL_AT:[N,D],RANGE:[k,F],CRYPTO:A,MODULO_MODE:M,POW_PRECISION:T,FORMAT:P,ALPHABET:C}},R.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!R.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)},R.maximum=R.max=function(){return L(arguments,-1)},R.minimum=R.min=function(){return L(arguments,1)},h=0x20000000000000*Math.random()&2097151?function(){return i(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},R.random=function(e){var t,r,a,u,l,c=0,p=[],d=new R(B);if(null==e?e=j:f(e,0,1e9),u=n(e/14),A)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(u*=2));c<u;)(l=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(p.push(l%1e14),c+=2);c=u/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(u*=7);c<u;)(l=(31&t[c])*0x1000000000000+0x10000000000*t[c+1]+0x100000000*t[c+2]+0x1000000*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(p.push(l%1e14),c+=7);c=u/7}else throw A=!1,Error(o+"crypto unavailable");if(!A)for(;c<u;)(l=h())<9e15&&(p[c++]=l%1e14);for(u=p[--c],e%=14,u&&e&&(l=s[14-e],p[c]=i(u/l)*l);0===p[c];p.pop(),c--);if(c<0)p=[a=0];else{for(a=-1;0===p[0];p.splice(0,1),a-=14);for(c=1,l=p[0];l>=10;l/=10,c++);c<14&&(a-=14-c)}return d.e=a,d.c=p,d},R.sum=function(){for(var e=1,t=arguments,r=new R(t[0]);e<t.length;)r=r.plus(t[e++]);return r},_=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,c,f,p,d,h,m,y=r.indexOf("."),b=j,v=S;for(y>=0&&(f=T,T=0,r=r.replace(".",""),d=(m=new R(n)).pow(r.length-y),T=f,m.c=t(g(l(d.c),d.e,"0"),10,i,e),m.e=m.c.length),c=f=(h=t(r,n,i,a?(s=C,e):(s=e,C))).length;0==h[--f];h.pop());if(!h[0])return s.charAt(0);if(y<0?--c:(d.c=h,d.e=c,d.s=o,h=(d=w(d,m,b,v,i)).c,p=d.r,c=d.e),y=h[u=c+b+1],f=i/2,p=p||u<0||null!=h[u+1],p=v<4?(null!=y||p)&&(0==v||v==(d.s<0?3:2)):y>f||y==f&&(4==v||p||6==v&&1&h[u-1]||v==(d.s<0?8:7)),u<1||!h[0])r=p?g(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(h.length=u,p)for(--i;++h[--u]>i;)h[u]=0,u||(++c,h=[1].concat(h));for(f=h.length;!h[--f];);for(y=0,r="";y<=f;r+=s.charAt(h[y++]));r=g(r,c,s.charAt(0))}return r}}(),w=function(){function e(e,t,r){var n,i,o,a,s=0,u=e.length,l=t%1e7,c=t/1e7|0;for(e=e.slice();u--;)n=c*(o=e[u]%1e7)+(a=e[u]/1e7|0)*l,s=((i=l*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*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,l){var c,f,p,d,g,h,m,y,b,v,x,w,_,O,$,B,j,S=n.s==o.s?1:-1,N=n.c,D=o.c;if(!N||!N[0]||!D||!D[0])return new R(!n.s||!o.s||(N?D&&N[0]==D[0]:!D)?NaN:N&&0==N[0]||!D?0*S:S/0);for(b=(y=new R(S)).c=[],S=a+(f=n.e-o.e)+1,l||(l=1e14,f=u(n.e/14)-u(o.e/14),S=S/14|0),p=0;D[p]==(N[p]||0);p++);if(D[p]>(N[p]||0)&&f--,S<0)b.push(1),d=!0;else{for(O=N.length,B=D.length,p=0,S+=2,(g=i(l/(D[0]+1)))>1&&(D=e(D,g,l),N=e(N,g,l),B=D.length,O=N.length),_=B,x=(v=N.slice(0,B)).length;x<B;v[x++]=0);j=[0].concat(j=D.slice()),$=D[0],D[1]>=l/2&&$++;do{if(g=0,(c=t(D,v,B,x))<0){if(w=v[0],B!=x&&(w=w*l+(v[1]||0)),(g=i(w/$))>1)for(g>=l&&(g=l-1),m=(h=e(D,g,l)).length,x=v.length;1==t(h,v,m,x);)g--,r(h,B<m?j:D,m,l),m=h.length,c=1;else 0==g&&(c=g=1),m=(h=D.slice()).length;if(m<x&&(h=[0].concat(h)),r(v,h,x,l),x=v.length,-1==c)for(;1>t(D,v,B,x);)g++,r(v,B<x?j:D,x,l),x=v.length}else 0===c&&(g++,v=[0]);b[p++]=g,v[0]?v[x++]=N[_]||0:(v=[N[_]],x=1)}while((_++<O||null!=v[0])&&S--);d=null!=v[0],b[0]||b.splice(0,1)}if(1e14==l){for(p=1,S=b[0];S>=10;S/=10,p++);U(y,a+(y.e=p+14*f-1)+1,s,d)}else y.e=f,y.r=+d;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 R(a,i);if(R.DEBUG)throw Error(o+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},$.absoluteValue=$.abs=function(){var e=new R(this);return e.s<0&&(e.s=1),e},$.comparedTo=function(e,t){return c(this,new R(e,t))},$.decimalPlaces=$.dp=function(e,t){var r,n,i;if(null!=e)return f(e,0,1e9),null==t?t=S:f(t,0,8),U(new R(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},$.dividedBy=$.div=function(e,t){return w(this,new R(e,t),j,S)},$.dividedToIntegerBy=$.idiv=function(e,t){return w(this,new R(e,t),0,1)},$.exponentiatedBy=$.pow=function(e,t){var r,a,s,u,l,c,f,d,g,h=this;if((e=new R(e)).c&&!e.isInteger())throw Error(o+"Exponent not an integer: "+I(e));if(null!=t&&(t=new R(t)),c=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return g=new R(Math.pow(+I(h),c?e.s*(2-p(e)):+I(e))),t?g.mod(t):g;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new R(NaN);(a=!f&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||c&&h.c[1]>=24e7:h.c[0]<8e13||c&&h.c[0]<=9999975e7)))return u=h.s<0&&p(e)?-0:0,h.e>-1&&(u=1/u),new R(f?1/u:u);T&&(u=n(T/14+2))}for(c?(r=new R(.5),f&&(e.s=1),d=p(e)):d=(s=Math.abs(+I(e)))%2,g=new R(B);;){if(d){if(!(g=g.times(h)).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;d=s%2}else if(U(e=e.times(r),e.e+1,1),e.e>14)d=p(e);else{if(0==(s=+I(e)))break;d=s%2}h=h.times(h),u?h.c&&h.c.length>u&&(h.c.length=u):a&&(h=h.mod(t))}return a?g:(f&&(g=B.div(g)),t?g.mod(t):u?U(g,T,S,l):g)},$.integerValue=function(e){var t=new R(this);return null==e?e=S:f(e,0,8),U(t,t.e+1,e)},$.isEqualTo=$.eq=function(e,t){return 0===c(this,new R(e,t))},$.isFinite=function(){return!!this.c},$.isGreaterThan=$.gt=function(e,t){return c(this,new R(e,t))>0},$.isGreaterThanOrEqualTo=$.gte=function(e,t){return 1===(t=c(this,new R(e,t)))||0===t},$.isInteger=function(){return!!this.c&&u(this.e/14)>this.c.length-2},$.isLessThan=$.lt=function(e,t){return 0>c(this,new R(e,t))},$.isLessThanOrEqualTo=$.lte=function(e,t){return -1===(t=c(this,new R(e,t)))||0===t},$.isNaN=function(){return!this.s},$.isNegative=function(){return this.s<0},$.isPositive=function(){return this.s>0},$.isZero=function(){return!!this.c&&0==this.c[0]},$.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new R(e,t)).s,!a||!t)return new R(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,c=this.c,f=e.c;if(!s||!l){if(!c||!f)return c?(e.s=-t,e):new R(f?this:NaN);if(!c[0]||!f[0])return f[0]?(e.s=-t,e):new R(c[0]?this:3==S?-0:0)}if(s=u(s),l=u(l),c=c.slice(),a=s-l){for((o=a<0)?(a=-a,i=c):(l=s,i=f),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=c.length)<(t=f.length))?a:t,a=t=0;t<n;t++)if(c[t]!=f[t]){o=c[t]<f[t];break}if(o&&(i=c,c=f,f=i,e.s=-e.s),(t=(n=f.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;n>a;){if(c[--n]<f[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=1e14}c[n]-=f[n]}for(;0==c[0];c.splice(0,1),--l);return c[0]?z(e,c,l):(e.s=3==S?-1:1,e.c=[e.e=0],e)},$.modulo=$.mod=function(e,t){var r,n;return(e=new R(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==M?(n=e.s,e.s=1,r=w(this,e,0,3),e.s=n,r.s*=n):r=w(this,e,0,M),(e=this.minus(r.times(e))).c[0]||1!=M||(e.s=this.s),e):new R(this):new R(NaN)},$.multipliedBy=$.times=function(e,t){var r,n,i,o,a,s,l,c,f,p,d,g,h,m=this.c,y=(e=new R(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,(l=m.length)<(p=y.length)&&(h=m,m=y,y=h,i=l,l=p,p=i),i=l+p,h=[];i--;h.push(0));for(i=p;--i>=0;){for(r=0,d=y[i]%1e7,g=y[i]/1e7|0,o=i+(a=l);o>i;)s=g*(c=m[--a]%1e7)+(f=m[a]/1e7|0)*d,r=((c=d*c+s%1e7*1e7+h[o]+r)/1e14|0)+(s/1e7|0)+g*f,h[o--]=c%1e14;h[o]=r}return r?++n:h.splice(0,1),z(e,h,n)},$.negated=function(){var e=new R(this);return e.s=-e.s||null,e},$.plus=function(e,t){var r,n=this.s;if(t=(e=new R(e,t)).s,!n||!t)return new R(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 R(n/0);if(!a[0]||!s[0])return s[0]?e:new R(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),z(e,a,o)},$.precision=$.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return f(e,1,1e9),null==t?t=S:f(t,0,8),U(new R(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},$.shiftedBy=function(e){return f(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},$.squareRoot=$.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,c=j+4,f=new R("0.5");if(1!==a||!o||!o[0])return new R(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+I(this)))||a==1/0?(((t=l(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=u((s+1)/2)-(s<0||s%2),r=new R(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new R(a+""),r.c[0]){for((a=(s=r.e)+c)<3&&(a=0);;)if(i=r,r=f.times(i.plus(w(this,i,c,1))),l(i.c).slice(0,a)===(t=l(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))||(U(r,r.e+j+2,1),e=!r.times(r).eq(this));break}if(!n&&(U(i,i.e+j+2,0),i.times(i).eq(this))){r=i;break}c+=4,a+=4,n=1}}return U(r,r.e+j+1,S,e)},$.toExponential=function(e,t){return null!=e&&(f(e,0,1e9),e++),Z(this,e,t,1)},$.toFixed=function(e,t){return null!=e&&(f(e,0,1e9),e=e+this.e+1),Z(this,e,t)},$.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,l=r.groupSeparator||"",c=a[0],f=a[1],p=this.s<0,d=p?c.slice(1):c,g=d.length;if(u&&(i=s,s=u,u=i,g-=i),s>0&&g>0){for(i=g%s||s,c=d.substr(0,i);i<g;i+=s)c+=l+d.substr(i,s);u>0&&(c+=l+d.slice(i)),p&&(c="-"+c)}n=f?c+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?f.replace(RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):c}return(r.prefix||"")+n+(r.suffix||"")},$.toFraction=function(e){var t,r,n,i,a,u,c,f,p,d,g,h,m=this.c;if(null!=e&&(!(c=new R(e)).isInteger()&&(c.c||1!==c.s)||c.lt(B)))throw Error(o+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+I(c));if(!m)return new R(this);for(t=new R(B),p=r=new R(B),n=f=new R(B),h=l(m),a=t.e=h.length-this.e-1,t.c[0]=s[(u=a%14)<0?14+u:u],e=!e||c.comparedTo(t)>0?a>0?t:p:c,u=F,F=1/0,c=new R(h),f.c[0]=0;d=w(c,t,0,1),1!=(i=r.plus(d.times(n))).comparedTo(e);)r=n,n=i,p=f.plus(d.times(i=p)),f=i,t=c.minus(d.times(i=t)),c=i;return i=w(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>w(p,n,a,S).minus(this).abs().comparedTo(w(f,r,a,S).minus(this).abs())?[p,n]:[f,r],F=u,g},$.toNumber=function(){return+I(this)},$.toPrecision=function(e,t){return null!=e&&f(e,1,1e9),Z(this,e,t,2)},$.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<=N||i>=D?d(l(r.c),i):g(l(r.c),i,"0"):10===e&&E?t=g(l((r=U(new R(r),j+i+1,S)).c),r.e,"0"):(f(e,2,C.length,"Base"),t=_(g(l(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},$.valueOf=$.toJSON=function(){return I(this)},$._isBigNumber=!0,null!=t&&R.set(t),R}()).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(),w={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},_={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:$}=v.currentBytes(),B={scale:1024,suffixes:$,marker:"bd"},j={scale:1024,suffixes:O,marker:"b"},S={scale:1e3,suffixes:$,marker:"d"};function N(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 D(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({},_,i,t),l=u.totalLength,c=l?0:u.characteristic,f=u.optionalCharacteristic,p=u.forceAverage,d=u.lowPrecision,g=!!l||!!p||u.average,h=l?-1:g&&void 0===t.mantissa?0:u.mantissa,m=!l&&(void 0===t.optionalMantissa?-1===h:u.optionalMantissa),y=u.trimMantissa,x=u.thousandSeparated,O=u.spaceSeparated,$=u.negative,B=u.forceSign,j=u.exponential,S=u.roundingFunction,N="";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),l=-1;if(t&&n[t]&&w[t]?(s=n[t],e/=w[t]):u>=w.trillion||r&&1===a(u/w.trillion)?(s=n.trillion,e/=w.trillion):u<w.trillion&&u>=w.billion||r&&1===a(u/w.billion)?(s=n.billion,e/=w.billion):u<w.billion&&u>=w.million||r&&1===a(u/w.million)?(s=n.million,e/=w.million):(u<w.million&&u>=w.thousand||r&&1===a(u/w.thousand))&&(s=n.thousand,e/=w.thousand),s&&(s=(i?" ":"")+s),o){let t=e<0,r=e.toString().split(".")[0];l=Math.max(o-(t?r.length-1:r.length),0)}return{value:e,abbreviation:s,mantissaPrecision:l}}({value:s,forceAverage:p,lowPrecision:d,abbreviations:r.currentAbbreviations(),spaceSeparated:O,roundingFunction:S,totalLength:l});s=e.value,N+=e.abbreviation,l&&(h=e.mantissaPrecision)}if(j){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:c});s=e.value,N=e.abbreviation+N}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+D(i-a.length);else{let e=".";e=0>+o?`-0${e}`:`0${e}`;let n=(D(-i-1)+Math.abs(o)+a).substr(0,t);n.length<t&&(n+=D(t-n.length)),r=e+n}return+i>0&&t>0&&(r+=`.${D(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 l=u.match(/0+$/);return i&&l?`${s}.${u.toString().slice(0,l.index)}`:a.toString()}(s.toString(),s,m,h,y,S);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(),l=u.split(".")[0],c=u.split(".")[1],f=t<0&&0===l.indexOf("-");return r&&(f&&(l=l.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})(l.length,s).forEach((e,t)=>{l=l.slice(0,e+t)+a+l.slice(e+t)}),f&&(l=`-${l}`)),u=c?l+i+c:l}(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,c),s,x,r,n),(g||j)&&(k+=N),(B||s<0)&&(o=k,k=0===(a=s)?o:0==+o?o.replace("-",""):a>0?`+${o}`:"sign"===$?o:`(${o.replace("-","")})`),k}function F(e,t){if(!e)return t;let r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}function A(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 M=m(),T=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&&z.registerLanguage(t)})}},C=d(),E={format:(...e)=>(function(e,t={},r){if("string"==typeof t&&(t=h(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({},_,o),s="",u=!!a.totalLength||!!a.forceAverage||a.average,l=o.currencyPosition||i.position,c=o.currencySymbol||i.symbol,f=void 0!==a.spaceSeparatedCurrency?a.spaceSeparatedCurrency:a.spaceSeparated;void 0===o.lowPrecision&&(o.lowPrecision=!1),f&&(s=" "),"infix"===l&&(n=s+c+s);let p=k({instance:e,providedFormat:o,state:r,decimalSeparator:n});return"prefix"===l&&(p=e._value<0&&"sign"===a.negative?`-${s}${c}${p.slice(1)}`:e._value>0&&a.forceSign?`+${s}${c}${p.slice(1)}`:c+s+p),l&&"postfix"!==l||(p=p+(s=!a.spaceSeparatedAbbreviation&&u?"":s)+c),p}(e,t=F(t,v.currentCurrencyDefaultFormat()),v);case"percent":let o,a,s;return n=t=F(t,v.currentPercentageDefaultFormat()),o=n.prefixSymbol,a=k({instance:r(100*e._value),providedFormat:n,state:v}),s=Object.assign({},_,n),o?`%${s.spaceSeparated?" ":""}${a}`:`${a}${s.spaceSeparated?" ":""}%`;case"byte":return function(e,t,r,n){let i=t.base||"binary",o=Object.assign({},_,t),{binarySuffixes:a,decimalSuffixes:s}=r.currentBytes(),u={general:{scale:1024,suffixes:s||$,marker:"bd"},binary:{scale:1024,suffixes:a||O,marker:"b"},decimal:{scale:1e3,suffixes:s||$,marker:"d"}}[i],{value:l,suffix:c}=N(e._value,u.suffixes,u.scale),f=k({instance:n(l),providedFormat:t,state:r,defaults:r.currentByteDefaultFormat()});return`${f}${o.spaceSeparated?" ":""}${c}`}(e,t=F(t,v.currentByteDefaultFormat()),v,r);case"time":let u,l,c;return t=F(t,v.currentTimeDefaultFormat()),u=Math.floor(e._value/60/60),l=Math.floor((e._value-60*u*60)/60),c=Math.round(e._value-60*u*60-60*l),`${u}:${l<10?"0":""}${l}:${c<10?"0":""}${c}`;case"ordinal":let f,p,d,g;return i=t=F(t,v.currentOrdinalDefaultFormat()),f=v.currentOrdinal(),p=Object.assign({},_,i),d=k({instance:e,providedFormat:i,state:v}),g=f(e._value),`${d}${p.spaceSeparated?" ":""}${g}`;default:return k({instance:e,providedFormat:t,numbro:r})}}(e,t,r);return(o=n+o)+i})(...e,z),getByteUnit:(...e)=>(function(e){return N(e._value,B.suffixes,B.scale).suffix})(...e,z),getBinaryByteUnit:(...e)=>(function(e){return N(e._value,j.suffixes,j.scale).suffix})(...e,z),getDecimalByteUnit:(...e)=>(function(e){return N(e._value,S.suffixes,S.scale).suffix})(...e,z),formatOrDefault:F},R={add:(e,t)=>{let r,n;return r=new b(e._value),n=t,z.isNumbro(t)&&(n=t._value),n=new b(n),e._value=r.plus(n).toNumber(),e},subtract:(e,t)=>A(e,t,z),multiply:(e,t)=>{let r,n;return r=new b(e._value),n=t,z.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,z.isNumbro(t)&&(n=t._value),n=new b(n),e._value=r.dividedBy(n).toNumber(),e},set:(e,t)=>{let r;return r=t,z.isNumbro(t)&&(r=t._value),e._value=r,e},difference:(e,t)=>{let r;return A(r=z(e._value),t,z),Math.abs(r._value)},BigNumber:b};class Z{constructor(e){this._value=e}clone(){return z(this._value)}format(e={}){return E.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=h(e)),(e=E.formatOrDefault(e,M.currentCurrencyDefaultFormat())).output="currency",E.format(this,e)}formatTime(e={}){return e.output="time",E.format(this,e)}binaryByteUnits(){return E.getBinaryByteUnit(this)}decimalByteUnits(){return E.getDecimalByteUnit(this)}byteUnits(){return E.getByteUnit(this)}difference(e){return R.difference(this,e)}add(e){return R.add(this,e)}subtract(e){return R.subtract(this,e)}multiply(e){return R.multiply(this,e)}divide(e){return R.divide(this,e)}set(e){return R.set(this,L(e))}value(){return this._value}valueOf(){return this._value}}function L(e){let t=e;return z.isNumbro(e)?t=e._value:"string"==typeof e?t=z.unformat(e):isNaN(e)&&(t=NaN),t}function z(e){return new Z(L(e))}z.version="2.5.0",z.isNumbro=function(e){return e instanceof Z},z.language=M.currentLanguage,z.registerLanguage=M.registerLanguage,z.setLanguage=M.setLanguage,z.languages=M.languages,z.languageData=M.languageData,z.zeroFormat=M.setZeroFormat,z.defaultFormat=M.currentDefaults,z.setDefaults=M.setDefaults,z.defaultCurrencyFormat=M.currentCurrencyDefaultFormat,z.validate=T.validate,z.loadLanguagesInNode=P.loadLanguagesInNode,z.unformat=C.unformat,z.BigNumber=R.BigNumber;var U=z&&z.__esModule&&Object.prototype.hasOwnProperty.call(z,"default")?z.default:z,I=r(20147),G=r(15418);function V(e,{shortValues:t,decimalPlaces:r}){if(!(0,G.lk)(t)||1e3>Math.abs(e)){let n={style:"unit",unit:"byte",unitDisplay:"long",useGrouping:!0};return(0,G.ej)(r)?(n.minimumFractionDigits=(0,G.Gs)(r),n.maximumFractionDigits=(0,G.Gs)(r)):(0,G.lk)(t)&&(n.maximumSignificantDigits=I.$),Intl.NumberFormat("en-US",n).format(e)}return U(e).format({output:"byte",base:"decimal",spaceSeparated:!0,mantissa:(0,G.ej)(r)?r:2,trimMantissa:!(0,G.ej)(r),optionalMantissa:!(0,G.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(el(t))return V(e,t);if(eu(t))return function(e,{shortValues:t,decimalPlaces:r}){let n={style:"decimal",useGrouping:!0};return(0,G.lk)(t)&&(n.notation="compact"),(0,G.ej)(r)?(n.minimumFractionDigits=(0,G.Gs)(r),n.maximumFractionDigits=(0,G.Gs)(r)):(0,G.lk)(t)&&(n.maximumSignificantDigits=I.$),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,G.ej)(r)?(n.minimumFractionDigits=(0,G.Gs)(r),n.maximumFractionDigits=(0,G.Gs)(r)):n.maximumSignificantDigits=I.$,"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,G.ej)(r)?(o.minimumFractionDigits=(0,G.Gs)(r),o.maximumFractionDigits=(0,G.Gs)(r)):o.maximumSignificantDigits=I.$,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,G.lk)(r)&&(i.notation="compact"),(0,G.ej)(n)?(i.minimumFractionDigits=(0,G.Gs)(n),i.maximumFractionDigits=(0,G.Gs)(n)):(0,G.lk)(r)&&(i.maximumSignificantDigits=I.$),Intl.NumberFormat("en-US",i).format(e)+" "+t}(e,t);if(ed(t))return function(e,{unit:t,decimalPlaces:r}){let n={style:"currency",currency:(0,X.toUpper)(t),currencyDisplay:"symbol"};return(0,G.ej)(r)?(n.minimumFractionDigits=(0,G.Gs)(r),n.maximumFractionDigits=(0,G.Gs)(r)):n.maximumSignificantDigits=I.$,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 el(e){return"Bytes"===ei(e)}function ec(e){return!!eo(e).decimalPlaces}function ef(e){return!!eo(e).shortValues}function ep(e){return"Throughput"===ei(e)}function ed(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 l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},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),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),c=!r&&i(e),f=!r&&!c&&a(e),p=!r&&!c&&!f&&u(e),d=r||c||f||p,g=d?n(e.length,String):[],h=g.length;for(var m in e)(t||l.call(e,m))&&!(d&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,h)))&&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),l=r(43854),c=r(48519),f="[object Arguments]",p="[object Array]",d="[object Object]",g=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,m,y){var b=u(e),v=u(t),x=b?p:s(e),w=v?p:s(t);x=x==f?d:x,w=w==f?d:w;var _=x==d,O=w==d,$=x==w;if($&&l(e)){if(!l(t))return!1;b=!0,_=!1}if($&&!_)return y||(y=new n),b||c(e)?i(e,t,r,h,m,y):o(e,t,x,r,h,m,y);if(!(1&r)){var B=_&&g.call(e,"__wrapped__"),j=O&&g.call(t,"__wrapped__");if(B||j){var S=B?e.value():e,N=j?t.value():t;return y||(y=new n),m(S,N,r,h,y)}}return!!$&&(y||(y=new n),a(e,t,r,h,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,l=Function.prototype.toString,c=u.hasOwnProperty,f=RegExp("^"+l.call(c).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 l=1&r,c=e.length,f=t.length;if(c!=f&&!(l&&f>c))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var g=-1,h=!0,m=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++g<c;){var y=e[g],b=t[g];if(a)var v=l?a(b,y,g,t,e,u):a(y,b,g,e,t,u);if(void 0!==v){if(v)continue;h=!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)})){h=!1;break}}else if(!(y===b||s(y,b,r,a,u))){h=!1;break}}return u.delete(e),u.delete(t),h}},370:function(e,t,r){var n=r(96539),i=r(59942),o=r(85638),a=r(27042),s=r(19383),u=r(43735),l=n?n.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,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 d=s;case"[object Set]":var g=1&n;if(d||(d=u),e.size!=t.size&&!g)break;var h=p.get(e);if(h)return h==t;n|=2,p.set(e,t);var m=a(d(e),d(t),n,l,f,p);return p.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.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,l=n(e),c=l.length;if(c!=n(t).length&&!u)return!1;for(var f=c;f--;){var p=l[f];if(!(u?p in t:i.call(t,p)))return!1}var d=s.get(e),g=s.get(t);if(d&&g)return d==t&&g==e;var h=!0;s.set(e,t),s.set(t,e);for(var m=u;++f<c;){var y=e[p=l[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)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(h=!1)}return s.delete(e),s.delete(t),h}},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),l=r(76532),c="[object Map]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",g="[object DataView]",h=l(n),m=l(i),y=l(o),b=l(a),v=l(s),x=u;(n&&x(new n(new ArrayBuffer(1)))!=g||i&&x(new i)!=c||o&&x(o.resolve())!=f||a&&x(new a)!=p||s&&x(new s)!=d)&&(x=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case h:return g;case m:return c;case y:return f;case b:return p;case v:return d}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")}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["7239"],{35015:function(e,t,i){async function a(...e){let t=await i.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 i=await t.clone().text();if(i)throw new s(i,t.status);throw new n(t)}return t}async function r(...e){let t=await a(...e);if(!t.ok)throw new n(t);return await t.json()}i.d(t,{he:()=>a,kp:()=>n,rd:()=>r,yh:()=>s});class n extends Error{status;constructor(e){super(`${e.status} ${e.statusText}`),this.status=e.status,Object.setPrototypeOf(this,n.prototype)}}class s extends Error{status;constructor(e,t){super(e),this.status=t,Object.setPrototypeOf(this,s.prototype)}}},91542:function(e,t,i){i.d(t,{q9:()=>en});var a,r,n,s,o,l,c,h,u=i(7749),d=i(94197);let p={inf:158,nan:159,bool:1,ignoring:2,on:3,group_left:4,group_right:5,offset:6},O=(e,t)=>p[e.toLowerCase()]||-1,f={avg:8,atan2:7,bottomk:9,count:10,count_values:11,group:12,max:13,min:14,quantile:15,limitk:16,limit_ratio:17,stddev:18,stdvar:19,sum:20,topk:21,by:22,without:23,and:24,or:25,unless:26,start:27,end:28},m=(e,t)=>f[e.toLowerCase()]||-1,v=(0,d.Gv)({LineComment:d.pJ.comment,LabelName:d.pJ.labelName,StringLiteral:d.pJ.string,NumberDurationLiteral:d.pJ.number,NumberDurationLiteralInDurationContext:d.pJ.number,Identifier:d.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 HistogramAvg HistogramCount HistogramFraction HistogramQuantile HistogramSum DoubleExponentialSmoothing 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 SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year":d.pJ.function(d.pJ.variableName),"Avg Bottomk Count Count_values Group LimitK LimitRatio Max Min Quantile Stddev Stdvar Sum Topk":d.pJ.operatorKeyword,"By Without Bool On Ignoring GroupLeft GroupRight Offset Start End":d.pJ.modifier,"And Unless Or":d.pJ.logicOperator,"Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At":d.pJ.operator,UnaryOp:d.pJ.arithmeticOperator,"( )":d.pJ.paren,"[ ]":d.pJ.squareBracket,"{ }":d.pJ.brace,"⚠":d.pJ.invalid}),g={__proto__:null,absent_over_time:335,absent:337,abs:339,acos:341,acosh:343,asin:345,asinh:347,atan:349,atanh:351,avg_over_time:353,ceil:355,changes:357,clamp:359,clamp_max:361,clamp_min:363,cos:365,cosh:367,count_over_time:369,days_in_month:371,day_of_month:373,day_of_week:375,day_of_year:377,deg:379,delta:381,deriv:383,exp:385,floor:387,histogram_count:389,histogram_fraction:391,histogram_quantile:393,histogram_stddev:395,histogram_stdvar:397,histogram_sum:399,histogram_avg:401,double_exponential_smoothing:403,hour:405,idelta:407,increase:409,info:411,irate:413,label_replace:415,label_join:417,last_over_time:419,ln:421,log10:423,log2:425,mad_over_time:427,max_over_time:429,min_over_time:431,minute:433,month:435,pi:437,predict_linear:439,present_over_time:441,quantile_over_time:443,rad:445,rate:447,resets:449,round:451,scalar:453,sgn:455,sin:457,sinh:459,sort:461,sort_desc:463,sort_by_label:465,sort_by_label_desc:467,sqrt:469,stddev_over_time:471,stdvar_over_time:473,sum_over_time:475,tan:477,tanh:479,timestamp:481,time:483,vector:485,year:487},$=u.WQ.deserialize({version:14,states:"9bOYQPOOO'tQPOOOOQO'#C|'#C|O'yQPO'#C{Q(UQQOOOOQO'#De'#DeO(PQPO'#DdOOQO'#FY'#FYO)cQPO'#F_OYQPO'#F[OYQPO'#F^O0WQSO'#FaO0cQQO'#F`OOQO'#F`'#F`OOQO'#Ft'#FtOOQO'#Df'#DfOOQO'#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'#EzOOQO'#E{'#E{OOQO'#E|'#E|OOQO'#E}'#E}OOQO'#FO'#FOOOQO'#FP'#FPOOQO'#FQ'#FQOOQO'#FR'#FROOQO'#FS'#FSOOQO'#FT'#FTOOQO'#FU'#FUOOQO'#FV'#FVQOQPOOO1|QPO'#C}O2RQPO'#DSO(PQPO,59gO2YQQO,59gO3vQPO,59oO3vQPO,59oO3vQPO,59oO3vQPO,59oO3vQPO,59oO:kQPO,5;rO:kQPO,5;uO:|QPO,5<SOOQO,5:O,5:OOOQO,5;t,5;tO;eQQO,5;vO;lQQO,5;xOOQO'#DQ'#DQO=SQPO'#FbO=bQPO,5;{OOQO,5;{,5;{O=nQPO,5;{OOQO,5;z,5;zO=vQSO'#DOOOQO,59i,59iOOQO,59n,59nO>RQQO,59nOOQO1G/R1G/ROOQO'#DV'#DVO1|QPO'#DWOOQO'#Fx'#FxO>]QPO'#FxOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOYQPO1G/ZOOQO'#FX'#FXOD}QPO'#FXOEYQSO1G1^OOQO1G1a1G1aOEbQPO'#FYOOQO'#Fj'#FjOOQO1G1n1G1nOEmQPO1G1nOOQO1G1b1G1bOOQO'#Fc'#FcOErQPO,5;|OEwQPO,5<ROE|QSO1G1gOFXQPO1G1gOOQO1G1g1G1gOOQO,59j,59jOFaQPO,59jOYQPO'#FmOFiQPO1G/YOOQO1G/Y1G/YOFqQPO,59rOOQO,5<d,5<dONmQQO7+$uON}QQO7+$uO!!cQQO7+$uO!!yQQO7+$uO!$bQQO7+$uOOQO,5;s,5;sOOQO7+&x7+&xO!${QPO7+&}O!%SQPO7+'YOOQO1G1h1G1hOOQO1G1m1G1mO!%XQPO,5<YOOQO,5<Y,5<YOOQO7+'R7+'RO!%mQSO7+'ROOQO-E9l-E9lO!%xQSO1G/UO!&TQPO1G/UOOQO1G/U1G/UO!&]QQO,5<XOOQO-E9k-E9kOOQO7+$t7+$tO!&gQPO1G/^OOQO<<Ji<<JiO!-RQPO<<JiOOQO<<Jt<<JtOOQO<<Jm<<JmP!-WQSO'#FnOOQO,5<W,5<WOOQO7+$p7+$pO!-`QSO7+$pOOQO-E9j-E9jOOQO7+$x7+$xOOQOAN@TAN@TOOQO<<H[<<H[P!-kQSO'#Fl",stateData:"!-s~O$gOSmOS~OWQOXQOYQOZQO[QO]QO^QO_QO`QOaQObQOcQOdQOeQOu^O!Z[O$dVO$eVO$iXO$m_O$n`O$oaO$pbO$qcO$rdO$seO$tfO$ugO$vhO$wiO$xjO$ykO$zlO${mO$|nO$}oO%OpO%PqO%QrO%RsO%StO%TuO%UvO%VwO%WxO%XyO%YzO%Z{O%[|O%]}O%^!OO%_!PO%`!QO%a!RO%b!SO%c!TO%d!UO%e!VO%f!WO%g!XO%h!YO%i!ZO%j![O%k!]O%l!^O%m!_O%n!`O%o!aO%p!bO%q!cO%r!dO%s!eO%t!fO%u!gO%v!hO%w!iO%x!jO%y!kO%z!lO%{!mO%|!nO%}!oO&O!pO&P!qO&Q!rO&R!sO&S!tO&T!uO&U!vO&V!wO&W!xO&X!yO&Y!zO&Z!{O&[!|O&]!}O&_WO&`WO&aVO&dZO~O!Z#OO~Of#POg#PO$i#QO~OU#ZOV#TOh#WOi#XOj#WOx#TO{#TO|#TO}#TO!O#UO!P#UO!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO$]#[O&^#YO~O$d#^O$e#^O&a#^OW$RXX$RXY$RXZ$RX[$RX]$RX^$RX_$RX`$RXa$RXb$RXc$RXd$RXe$RXu$RX!Z$RX$d$RX$e$RX$i$RX$m$RX$n$RX$o$RX$p$RX$q$RX$r$RX$s$RX$t$RX$u$RX$v$RX$w$RX$x$RX$y$RX$z$RX${$RX$|$RX$}$RX%O$RX%P$RX%Q$RX%R$RX%S$RX%T$RX%U$RX%V$RX%W$RX%X$RX%Y$RX%Z$RX%[$RX%]$RX%^$RX%_$RX%`$RX%a$RX%b$RX%c$RX%d$RX%e$RX%f$RX%g$RX%h$RX%i$RX%j$RX%k$RX%l$RX%m$RX%n$RX%o$RX%p$RX%q$RX%r$RX%s$RX%t$RX%u$RX%v$RX%w$RX%x$RX%y$RX%z$RX%{$RX%|$RX%}$RX&O$RX&P$RX&Q$RX&R$RX&S$RX&T$RX&U$RX&V$RX&W$RX&X$RX&Y$RX&Z$RX&[$RX&]$RX&_$RX&`$RX&a$RX&d$RX~Os#bOu#aO&e#dO~O&dZOU$SXV$SXh$SXi$SXj$SXx$SX{$SX|$SX}$SX!O$SX!P$SX!Q$SX!R$SX!S$SX!T$SX!U$SX!V$SX$]$SX$c$SX&^$SX$k$SX$j$SX~O$i#gO~O$k#iO~PYOf#POg#POUoaVoahoaioajoaxoa{oa|oa}oa!Ooa!Poa!Qoa!Roa!Soa!Toa!Uoa!Voa$]oa$coa&^oa$koa$joa~OP#lOQ#mOR#mOW$lPX$lPY$lPZ$lP[$lP]$lP^$lP_$lP`$lPa$lPb$lPc$lPd$lPe$lPu$lP!Z$lP$d$lP$e$lP$i$lP$m$lP$n$lP$o$lP$p$lP$q$lP$r$lP$s$lP$t$lP$u$lP$v$lP$w$lP$x$lP$y$lP$z$lP${$lP$|$lP$}$lP%O$lP%P$lP%Q$lP%R$lP%S$lP%T$lP%U$lP%V$lP%W$lP%X$lP%Y$lP%Z$lP%[$lP%]$lP%^$lP%_$lP%`$lP%a$lP%b$lP%c$lP%d$lP%e$lP%f$lP%g$lP%h$lP%i$lP%j$lP%k$lP%l$lP%m$lP%n$lP%o$lP%p$lP%q$lP%r$lP%s$lP%t$lP%u$lP%v$lP%w$lP%x$lP%y$lP%z$lP%{$lP%|$lP%}$lP&O$lP&P$lP&Q$lP&R$lP&S$lP&T$lP&U$lP&V$lP&W$lP&X$lP&Y$lP&Z$lP&[$lP&]$lP&_$lP&`$lP&a$lP&d$lP~O$d#uO$e#uO&_#vO&`#vO&a#uO~Ok#zOl#zO$dVO$eVO&_#yO&`#yO&aVO~O$k#}O~P(UOx#TOU$QaV$Qah$Qai$Qaj$Qa{$Qa|$Qa}$Qa!O$Qa!P$Qa!Q$Qa!R$Qa!S$Qa!T$Qa!U$Qa!V$Qa$]$Qa$c$Qa&^$Qa$k$Qa$j$Qa~O!V$OO$W$OO$X$OO$Y$OO~O!V$OO$W$OO$X$OO$Y$OO$j$RO&e$TO~Os$VOu#aO$k$UO~O$j$WO$k$YO~P(UOQ#mOR#mOW$lXX$lXY$lXZ$lX[$lX]$lX^$lX_$lX`$lXa$lXb$lXc$lXd$lXe$lXu$lX!Z$lX$d$lX$e$lX$i$lX$m$lX$n$lX$o$lX$p$lX$q$lX$r$lX$s$lX$t$lX$u$lX$v$lX$w$lX$x$lX$y$lX$z$lX${$lX$|$lX$}$lX%O$lX%P$lX%Q$lX%R$lX%S$lX%T$lX%U$lX%V$lX%W$lX%X$lX%Y$lX%Z$lX%[$lX%]$lX%^$lX%_$lX%`$lX%a$lX%b$lX%c$lX%d$lX%e$lX%f$lX%g$lX%h$lX%i$lX%j$lX%k$lX%l$lX%m$lX%n$lX%o$lX%p$lX%q$lX%r$lX%s$lX%t$lX%u$lX%v$lX%w$lX%x$lX%y$lX%z$lX%{$lX%|$lX%}$lX&O$lX&P$lX&Q$lX&R$lX&S$lX&T$lX&U$lX&V$lX&W$lX&X$lX&Y$lX&Z$lX&[$lX&]$lX&_$lX&`$lX&a$lX&d$lX~O$d$bO$e$bO&a$bO~O&b$cO&c$dO~O$d#^O$e#^O&a#^O~O$i$eO~Ou$fO~Ou$gO~Os#bOu#aO&e$jO~O$j$kO&e$jO~O$j$mO$k$oO~O$j$WO$k$rO~OS$sOT$sOWzaXzaYzaZza[za]za^za_za`zaazabzaczadzaezauza!Zza$dza$eza$iza$mza$nza$oza$pza$qza$rza$sza$tza$uza$vza$wza$xza$yza$zza${za$|za$}za%Oza%Pza%Qza%Rza%Sza%Tza%Uza%Vza%Wza%Xza%Yza%Zza%[za%]za%^za%_za%`za%aza%bza%cza%dza%eza%fza%gza%hza%iza%jza%kza%lza%mza%nza%oza%pza%qza%rza%sza%tza%uza%vza%wza%xza%yza%zza%{za%|za%}za&Oza&Pza&Qza&Rza&Sza&Tza&Uza&Vza&Wza&Xza&Yza&Zza&[za&]za&_za&`za&aza&dza~Ox#TOUwqhwqiwqjwq!Owq!Pwq!Qwq!Rwq!Swq!Twq!Uwq!Vwq$]wq$cwq&^wq$kwq$jwq~OVwq{wq|wq}wq~PMcOV#TO{#TO|#TO}#TO~PMcOV#TOx#TO{#TO|#TO}#TO!O#UO!P#UOUwqhwqiwqjwq$]wq$cwq&^wq$kwq$jwq~O!Qwq!Rwq!Swq!Twq!Uwq!Vwq~P! _O!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO~P! _OV#TOh#WOj#WOx#TO{#TO|#TO}#TO!O#UO!P#UO!Q#VO!R#VO!S#VO!T#VO!U#VO!V#VO~OUwqiwq$]wq$cwq&^wq$kwq$jwq~P!#aO&b$tO~P:kO$k$vO~O!V$OO$W$OO$X$OO$Y$OO$j$ba&e$ba~Os#bOu#aO&e$wO~Os$yOu#aO$k$zO~O$j${O$k$zO~O$j$aa$k$aa~P(UO$i#gOWziXziYziZzi[zi]zi^zi_zi`ziazibziczidzieziuzi!Zzi$dzi$ezi$mzi$nzi$ozi$pzi$qzi$rzi$szi$tzi$uzi$vzi$wzi$xzi$yzi$zzi${zi$|zi$}zi%Ozi%Pzi%Qzi%Rzi%Szi%Tzi%Uzi%Vzi%Wzi%Xzi%Yzi%Zzi%[zi%]zi%^zi%_zi%`zi%azi%bzi%czi%dzi%ezi%fzi%gzi%hzi%izi%jzi%kzi%lzi%mzi%nzi%ozi%pzi%qzi%rzi%szi%tzi%uzi%vzi%wzi%xzi%yzi%zzi%{zi%|zi%}zi&Ozi&Pzi&Qzi&Rzi&Szi&Tzi&Uzi&Vzi&Wzi&Xzi&Yzi&Zzi&[zi&]zi&_zi&`zi&azi&dzi~O&b%OO~Os#bOu#aO~Os$yOu#aO$k%PO~Os$yOu#aO~O",goto:")v$mPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP$n$z%W%^P%gP%w$nP&Q&XPPPPPPPPPPP$n&c&oP&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o$n&{'U$n$n$n$n'e$n'q(Q(YPPP(Q$nP(aP(d(j(pPPPPP(wPPP)ge^OXY#Q#p#q#r#s#t$WeROXY#Q#p#q#r#s#t$WQ#RRR#k#SQ#h#PQ$Z#mR$}$sQ#cZQ$V#gU$h$R$k$xV$y$m${%QQ#SRQ#]UR#k#RZ#o#T#U#V#W#XY#n#T#U#V#W#XR$[#oeUOXY#Q#p#q#r#s#t$WeTOXY#Q#p#q#r#s#t$WQ#w#YQ#x#ZR$u$dd^OXY#Q#p#q#r#s#t$WR#{#[eYOXY#Q#p#q#r#s#t$Wd]OXY#Q#p#q#r#s#t$WR#f[Q#eZV$i$R$k$xQ$P#bT$Q#c$hR#|#[Q$n$VR$|$nQ$X#jR$q$XS$S#c#eR$l$SQSOQ#_XQ#`YQ#j#QQ$]#pQ$^#qQ$_#rQ$`#sQ$a#tR$p$WQ#p#TQ#q#UQ#r#VQ#s#WR#t#X",nodeNames:"⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral 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 HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",maxTerm:251,nodeProps:[["group",-12,31,37,39,54,134,136,137,138,139,140,142,150,"Expr"]],propSources:[v],skippedNodes:[0,29],repeatNodeCount:3,tokenData:"4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2X!`!a2n!b!c2{!c!}3Q!}#O3h#P#Q3m#Q#R3r#R#S3Q#S#T3w#T#o3Q#o#p4a#q#r4f#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$g~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!V~~$tO$Y~~$yWu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f<%lO$t~%hOu~~%kRO;'S$t;'S;=`%t;=`O$t~%yXu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f;=`<%l$t<%lO$t~&iP;=`<%l$t~&qSm~OY&lZ;'S&l;'S;=`&}<%lO&l~'QP;=`<%l&l~'YO}~~'_Wu~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u<%lO'Y~'zRO;'S'Y;'S;=`(T;=`O'Y~(YXu~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u;=`<%l'Y<%lO'Y~(xP;=`<%l'Y~)QO$i~~)VO$k~~)[O{~R)cO&`P!OQ~)hO$j~R)oO&_P!PQ~)rP!Q![)u~)zS&a~!Q![)u!g!h*W#R#S)o#X#Y*W~*ZR{|*d}!O*d!Q![*j~*gP!Q![*j~*oQ&a~!Q![*j#R#S*d~*zO|~~+P[&a~!O!P)o!Q![+u!g!h*W#R#S,m#W#X-X#X#Y*W#[#]-p#a#b.U#g#h.x#k#l/Z#l#m0d#m#n/u~+zZ&a~!O!P)o!Q![+u!g!h*W#R#S,m#W#X-X#X#Y*W#[#]-p#a#b.U#g#h.x#k#l/Z#m#n/u~,pP!Q![,s~,xT&a~!O!P)o!Q![,s!g!h*W#R#S,m#X#Y*W~-^P&a~!Q![-a~-dS!Q![-a#[#]-p#a#b.U#g#h.x~-uP&a~!Q![-x~-{R!Q![-x#a#b.U#g#h.x~.ZQ&a~!Q![.a#g#h.s~.dR!Q![.a#a#b.m#g#h.x~.pP#g#h.s~.xO&a~~.}P&a~!Q![/Q~/TQ!Q![/Q#a#b.m~/`P&a~!Q![/c~/fT!Q![/c#W#X-X#[#]-p#a#b.U#g#h.x~/zP&a~!Q![/}~0QU!Q![/}#W#X-X#[#]-p#a#b.U#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR&a~!Q![0p!c!i0p#T#Z0pV1VT&cS!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!ZR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!U~!_!`2S~2XO!T~~2^Q$WP!_!`2d#r#s2iQ2iO!QQ~2nO$X~~2sP!S~!_!`2v~2{O!R~~3QO$]~V3XT!ZRsS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&^~~3rO&b~~3wOx~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&d~~4kO&e~",tokenizers:[0,1,2],topRules:{PromQL:[0,30],MetricName:[1,153]},specialized:[{term:57,get:(e,t)=>O(e)<<1,external:O},{term:57,get:(e,t)=>m(e)<<1|1,external:m,extend:!0},{term:57,get:e=>g[e]||-1}],tokenPrec:0});(a=o||(o={})).none="none",a.vector="vector",a.scalar="scalar",a.matrix="matrix",a.string="string";let y={59:{name:"abs",argTypes:[o.vector],variadic:0,returnType:o.vector},58:{name:"absent",argTypes:[o.vector],variadic:0,returnType:o.vector},56:{name:"absent_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},60:{name:"acos",argTypes:[o.vector],variadic:0,returnType:o.vector},61:{name:"acosh",argTypes:[o.vector],variadic:0,returnType:o.vector},62:{name:"asin",argTypes:[o.vector],variadic:0,returnType:o.vector},63:{name:"asinh",argTypes:[o.vector],variadic:0,returnType:o.vector},64:{name:"atan",argTypes:[o.vector],variadic:0,returnType:o.vector},65:{name:"atanh",argTypes:[o.vector],variadic:0,returnType:o.vector},66:{name:"avg_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},67:{name:"ceil",argTypes:[o.vector],variadic:0,returnType:o.vector},68:{name:"changes",argTypes:[o.matrix],variadic:0,returnType:o.vector},69:{name:"clamp",argTypes:[o.vector,o.scalar,o.scalar],variadic:0,returnType:o.vector},70:{name:"clamp_max",argTypes:[o.vector,o.scalar],variadic:0,returnType:o.vector},71:{name:"clamp_min",argTypes:[o.vector,o.scalar],variadic:0,returnType:o.vector},72:{name:"cos",argTypes:[o.vector],variadic:0,returnType:o.vector},73:{name:"Cosh",argTypes:[o.vector],variadic:0,returnType:o.vector},74:{name:"count_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},75:{name:"days_in_month",argTypes:[o.vector],variadic:1,returnType:o.vector},76:{name:"day_of_month",argTypes:[o.vector],variadic:1,returnType:o.vector},77:{name:"day_of_week",argTypes:[o.vector],variadic:1,returnType:o.vector},78:{name:"day_of_year",argTypes:[o.vector],variadic:1,returnType:o.vector},79:{name:"deg",argTypes:[o.vector],variadic:0,returnType:o.vector},80:{name:"delta",argTypes:[o.matrix],variadic:0,returnType:o.vector},81:{name:"deriv",argTypes:[o.matrix],variadic:0,returnType:o.vector},82:{name:"exp",argTypes:[o.vector],variadic:0,returnType:o.vector},83:{name:"floor",argTypes:[o.vector],variadic:0,returnType:o.vector},90:{name:"histogram_avg",argTypes:[o.vector],variadic:0,returnType:o.vector},84:{name:"histogram_count",argTypes:[o.vector],variadic:0,returnType:o.vector},85:{name:"histogram_fraction",argTypes:[o.scalar,o.scalar,o.vector],variadic:0,returnType:o.vector},86:{name:"histogram_quantile",argTypes:[o.scalar,o.vector],variadic:0,returnType:o.vector},87:{name:"histogram_stddev",argTypes:[o.vector],variadic:0,returnType:o.vector},88:{name:"histogram_stdvar",argTypes:[o.vector],variadic:0,returnType:o.vector},89:{name:"histogram_sum",argTypes:[o.vector],variadic:0,returnType:o.vector},91:{name:"double_exponential_smoothing",argTypes:[o.matrix,o.scalar,o.scalar],variadic:0,returnType:o.vector},92:{name:"hour",argTypes:[o.vector],variadic:1,returnType:o.vector},93:{name:"idelta",argTypes:[o.matrix],variadic:0,returnType:o.vector},94:{name:"increase",argTypes:[o.matrix],variadic:0,returnType:o.vector},95:{name:"info",argTypes:[o.vector,o.vector],variadic:1,returnType:o.vector},96:{name:"irate",argTypes:[o.matrix],variadic:0,returnType:o.vector},97:{name:"label_replace",argTypes:[o.vector,o.string,o.string,o.string,o.string],variadic:0,returnType:o.vector},98:{name:"label_join",argTypes:[o.vector,o.string,o.string,o.string],variadic:-1,returnType:o.vector},99:{name:"last_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},100:{name:"ln",argTypes:[o.vector],variadic:0,returnType:o.vector},101:{name:"log10",argTypes:[o.vector],variadic:0,returnType:o.vector},102:{name:"log2",argTypes:[o.vector],variadic:0,returnType:o.vector},103:{name:"mad_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},104:{name:"max_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},105:{name:"min_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},106:{name:"minute",argTypes:[o.vector],variadic:1,returnType:o.vector},107:{name:"month",argTypes:[o.vector],variadic:1,returnType:o.vector},108:{name:"pi",argTypes:[],variadic:0,returnType:o.vector},109:{name:"predict_linear",argTypes:[o.matrix,o.scalar],variadic:0,returnType:o.vector},110:{name:"present_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},111:{name:"quantile_over_time",argTypes:[o.scalar,o.matrix],variadic:0,returnType:o.vector},112:{name:"rad",argTypes:[o.vector],variadic:0,returnType:o.vector},113:{name:"rate",argTypes:[o.matrix],variadic:0,returnType:o.vector},114:{name:"resets",argTypes:[o.matrix],variadic:0,returnType:o.vector},115:{name:"round",argTypes:[o.vector,o.scalar],variadic:1,returnType:o.vector},116:{name:"scalar",argTypes:[o.vector],variadic:0,returnType:o.scalar},117:{name:"sgn",argTypes:[o.vector],variadic:0,returnType:o.vector},118:{name:"sin",argTypes:[o.vector],variadic:0,returnType:o.vector},119:{name:"Sinh",argTypes:[o.vector],variadic:0,returnType:o.vector},120:{name:"sort",argTypes:[o.vector],variadic:0,returnType:o.vector},121:{name:"sort_desc",argTypes:[o.vector],variadic:0,returnType:o.vector},122:{name:"sort_by_label",argTypes:[o.vector,o.string],variadic:-1,returnType:o.vector},123:{name:"sort_by_label_desc",argTypes:[o.vector,o.string],variadic:-1,returnType:o.vector},124:{name:"sqrt",argTypes:[o.vector],variadic:0,returnType:o.vector},125:{name:"stddev_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},126:{name:"stdvar_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},127:{name:"sum_over_time",argTypes:[o.matrix],variadic:0,returnType:o.vector},128:{name:"tan",argTypes:[o.vector],variadic:0,returnType:o.vector},129:{name:"tanh",argTypes:[o.vector],variadic:0,returnType:o.vector},131:{name:"time",argTypes:[],variadic:0,returnType:o.scalar},130:{name:"timestamp",argTypes:[o.vector],variadic:0,returnType:o.vector},132:{name:"vector",argTypes:[o.scalar],variadic:0,returnType:o.vector},133:{name:"year",argTypes:[o.vector],variadic:1,returnType:o.vector}};class b{constructor(e,t,i){this.type=e,this.name=t,this.value=i}matchesEmpty(){switch(this.type){case 146:return""===this.value;case 53:return""!==this.value;default:return!1}}}function _(e,t){let i=[];return e.forEach(e=>{i.push(function(e,t){let i=new b(0,"",""),a=e.cursor();switch(a.type.id){case 149:if(!a.next())break;do switch(a.type.id){case 36:i.name=t.sliceDoc(a.from,a.to).slice(1,-1);break;case 145:{let e=a.node.firstChild;e&&(i.type=e.type.id);break}case 37:i.value=t.sliceDoc(a.from,a.to).slice(1,-1)}while(a.nextSibling());break;case 144:if(!a.next())break;do switch(a.type.id){case 35:i.name=t.sliceDoc(a.from,a.to);break;case 145:{let e=a.node.firstChild;e&&(i.type=e.type.id);break}case 37:i.value=t.sliceDoc(a.from,a.to).slice(1,-1)}while(a.nextSibling());break;case 36:i.name="__name__",i.value=t.sliceDoc(a.from,a.to).slice(1,-1),i.type=146}return i}(e,t))}),i}function T(e,t){for(;;){if(!e||e.type.id===t)return e;e=e.parent}return null}function Q(e,...t){let i=e.cursor();if(!i.next())return!1;let a=!1;do a=t.some(e=>i.type.id===e||i.type.name===e);while(!a&&i.nextSibling());return a}function z(e,...t){let i=e.cursor();if(!i.next())return!1;let a=0;do i.type.is(t[a])&&a++;while(a<t.length&&i.nextSibling());return a>=t.length}(r=l||(l={})).CardOneToOne="one-to-one",r.CardManyToOne="many-to-one",r.CardOneToMany="one-to-many",r.CardManyToMany="many-to-many";var k=i(61262);class P{constructor(e){this.tree=(0,k.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 o.none;switch(e.type.id){case 31:this.checkAggregationExpr(e);break;case 39:this.checkBinaryExpr(e);break;case 54:this.checkCallFunction(e);break;case 138:case 134:this.checkAST(e.getChild("Expr"));break;case 140:{let t=this.checkAST(e.getChild("Expr"));t!==o.scalar&&t!==o.vector&&this.addDiagnostic(e,`unary expression only allowed on expressions of type scalar or instant vector, got ${t}`);break}case 139:{let t=this.checkAST(e.getChild("Expr"));t!==o.vector&&this.addDiagnostic(e,`subquery is only allowed on instant vector, got ${t} in ${e.name} instead`);break}case 142:this.checkVectorSelector(e);break;case 150:{let t=this.checkAST(e.getChild("Expr"));t!==o.vector&&t!==o.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 i;if(!t)return o.none;switch(t.type.id){case 31:case 142:return o.vector;case 137:return e(t.firstChild);case 37:return o.string;case 136:return o.scalar;case 134:case 139:return o.matrix;case 138:case 140:case 150:return e(t.getChild("Expr"));case 39:{let i=e(t.firstChild),a=e(t.lastChild);if(i===o.scalar&&a===o.scalar)return o.scalar;return o.vector}case 54:{let e=null==(i=t.firstChild)?void 0:i.firstChild;if(!e)return o.none;return y[e.type.id].returnType}default:return o.none}}(e)}checkAggregationExpr(e){var t;let i=null==(t=e.firstChild)?void 0:t.firstChild;if(!i)return void this.addDiagnostic(e,"aggregation operator expected in aggregation expression but got nothing");let a=e.getChild(38),r=a?a.getChildren("Expr"):[];if(!r.length)return void this.addDiagnostic(e,"unable to find the parameter for the expression");this.expectType(r[r.length-1],o.vector,"aggregation expression"),(21===i.type.id||9===i.type.id||16===i.type.id||17===i.type.id||15===i.type.id)&&this.expectType(r[0],o.scalar,"aggregation parameter"),11===i.type.id&&this.expectType(r[0],o.string,"aggregation parameter")}checkBinaryExpr(e){let t=e.firstChild,i=e.lastChild;if(!t||!i)return void this.addDiagnostic(e,"left or right expression is missing in binary expression");let a=this.checkAST(t),r=this.checkAST(i),n=e.getChild(41),s=Q(e,48,53,51,52,49,50),c=Q(e,24,25,26);n?s||this.addDiagnostic(e,"bool modifier can only be used on comparison operators"):s&&a===o.scalar&&r===o.scalar&&this.addDiagnostic(e,"comparisons between scalars must use BOOL modifier");let h=function(e,t){if(!t||39!==t.type.id)return null;let i={card:l.CardOneToOne,matchingLabels:[],on:!1,include:[]},a=t.getChild(42);if(a){i.on=null!==a.getChild(3);let t=a.getChild(34);for(let a of t?t.getChildren(35):[])i.matchingLabels.push(e.sliceDoc(a.from,a.to));let r=a.getChild(4),n=a.getChild(5),s=r||n;if(s){i.card=r?l.CardManyToOne:l.CardOneToMany;let t=s.nextSibling;for(let a of(null==t?void 0:t.getChildren(35))||[])i.include.push(e.sliceDoc(a.from,a.to))}}return Q(t,24,25,26)&&i.card===l.CardOneToOne&&(i.card=l.CardManyToMany),i}(this.state,e);if(null!==h&&h.on)for(let t of h.matchingLabels)for(let i of h.include)t===i&&this.addDiagnostic(e,`label "${t}" must not occur in ON and GROUP clause at once`);a!==o.scalar&&a!==o.vector&&this.addDiagnostic(t,"binary expression must contain only scalar and instant vector types"),r!==o.scalar&&r!==o.vector&&this.addDiagnostic(i,"binary expression must contain only scalar and instant vector types"),(a!==o.vector||r!==o.vector)&&null!==h?h.matchingLabels.length>0&&this.addDiagnostic(e,"vector matching only allowed between instant vectors"):c&&(((null==h?void 0:h.card)===l.CardOneToMany||(null==h?void 0:h.card)===l.CardManyToOne)&&this.addDiagnostic(e,"no grouping allowed for set operations"),(null==h?void 0:h.card)!==l.CardManyToMany&&this.addDiagnostic(e,"set operations must always be many-to-many")),(a===o.scalar||r===o.scalar)&&c&&this.addDiagnostic(e,"set operator not allowed in binary scalar expression")}checkCallFunction(e){var t;let i=null==(t=e.firstChild)?void 0:t.firstChild;if(!i)return void this.addDiagnostic(e,"function not defined");let a=e.getChild(38),r=a?a.getChildren("Expr"):[],n=y[i.type.id],s=n.argTypes.length;if(0===n.variadic)r.length!==s&&this.addDiagnostic(e,`expected ${s} argument(s) in call to "${n.name}", got ${r.length}`);else{let t=s-1;if(t>r.length)this.addDiagnostic(e,`expected at least ${t} argument(s) in call to "${n.name}", got ${r.length}`);else{let i=t+n.variadic;n.variadic>0&&i<r.length&&this.addDiagnostic(e,`expected at most ${i} argument(s) in call to "${n.name}", got ${r.length}`)}}"info"===n.name&&r.length>1&&r[1].getChild(57)&&this.addDiagnostic(e,`expected label selectors as the second argument to "info" function, got ${r[1].type}`);let o=0;for(let e=0;e<r.length;e++){if((o=e)>=n.argTypes.length){if(0===n.variadic)break;o=n.argTypes.length-1}this.expectType(r[e],n.argTypes[o],`call to function "${n.name}"`)}}checkVectorSelector(e){let t=e.getChild(143),i=[];for(let e of[36,149,144])i=i.concat(_(t?t.getChildren(e):[],this.state));let a="",r=e.getChild(57);if(r&&(a=this.state.sliceDoc(r.from,r.to)),""!==a){let t=i.find(e=>"__name__"===e.name);t&&this.addDiagnostic(e,`metric name must not be set twice: ${a} or ${t.value}`),i.push(new b(146,"__name__",a))}else{let t=i.filter(e=>"__name__"===e.name);t.length>1&&this.addDiagnostic(e,`metric name must not be set twice: ${t[0].value} or ${t[1].value}`)}i.every(e=>e.matchesEmpty())&&this.addDiagnostic(e,"vector selector must contain at least one non-empty matcher")}expectType(e,t,i){let a=this.checkAST(e);a!==t&&this.addDiagnostic(e,`expected type ${t} in ${i}, got ${a}`)}addDiagnostic(e,t){this.diagnostics.push({severity:"error",message:t,from:e.from,to:e.to})}}var S=i(13018);let x=[{label:"y"},{label:"w"},{label:"d"},{label:"h"},{label:"m"},{label:"s"},{label:"ms"}],X=[{label:"^"},{label:"*"},{label:"/"},{label:"%"},{label:"+"},{label:"-"},{label:"=="},{label:">="},{label:">"},{label:"<"},{label:"<="},{label:"!="},{label:"atan2"},{label:"and"},{label:"or"},{label:"unless"}],w=[{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:"limitk",detail:"aggregation",info:"Sample k elements",type:"keyword"},{label:"limit_ratio",detail:"aggregation",info:"Sample given ratio of elements",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"}],R=[{label:"sum(rate(__input_vector__[5m]))",type:"function",detail:"snippet",info:"Sum over rates of increase",apply:(0,S.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,S.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,S.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,S.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,S.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,S.DB)('count_values("${__label_name__}", ${__metric__})')}],E=[{label:"="},{label:"!="},{label:"=~"},{label:"!~"}],L=[{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"}],C=[{label:"start()",info:"resolve to the start of the query",type:"keyword"},{label:"end()",info:"resolve to the end of the query",type:"keyword"}],D=[{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_avg",detail:"function",info:"Return the average of observations from a native histogram (experimental feature)",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:"histogram_stddev",detail:"function",info:"Estimate the standard deviation of observations from a native histogram (experimental feature)",type:"function"},{label:"histogram_stdvar",detail:"function",info:"Estimate the standard variance of observations from a native histogram (experimental feature)",type:"function"},{label:"double_exponential_smoothing",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:"info",detail:"function",info:"Add data labels from corresponding info metrics",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:"mad_over_time",detail:"function",info:"Return the median absolute deviation over time for 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:"sort_by_label",detail:"function",info:"Sort input series ascendingly by label value",type:"function"},{label:"sort_by_label_desc",detail:"function",info:"Sort input series descendingly by value 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 variance 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"}],M=[{label:"nan",info:"Floating-point NaN value",type:"constant"},{label:"inf",info:"Floating-point infinity",type:"constant"}];function F(e,t){let i=T(e,142);return i&&(i=i.getChild(57))?t.sliceDoc(i.from,i.to):""}function q(e){var t;let i=e.parent;if(null!==i&&(null==(t=i.firstChild)?void 0:t.type.id)===32){let e=i.firstChild.firstChild;if(null!==e&&[21,9,16,17,11].includes(e.type.id))return!0}return!1}(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 V{constructor(e,t=1e4){this.prometheusClient=e,this.maxMetricsMetadata=t}getPrometheusClient(){return this.prometheusClient}promQL(e){let{state:t,pos:i}=e,a=(0,k.qz)(t).resolve(i,-1),r=function(e,t,i){var a,r,n,s,o,l,h,u,d,p,O,f,m,v,g,$,y,b,k,P,S;let x=[];switch(t.type.id){case 0:{if((null==(a=t.parent)?void 0:a.type.id)===137){x.push({kind:c.Duration});break}if((null==(r=t.parent)?void 0:r.type.id)===144||(null==(n=t.parent)?void 0:n.type.id)===149){x.push({kind:c.MatchOp});break}if((null==(s=t.parent)?void 0:s.type.id)===134||(null==(o=t.parent)?void 0:o.type.id)===139&&Q(t.parent,135)){x.push({kind:c.Duration});break}let i=e.sliceDoc(t.from,t.to);X.filter(e=>e.label.includes(i)).length>0&&x.push({kind:c.BinOp});break}case 57:{if((null==(l=t.parent)?void 0:l.type.id)===0){let i=t.parent.parent;if((null==i?void 0:i.type.id)===150){x.push({kind:c.AtModifiers});break}if((null==i?void 0:i.type.id)===31){x.push({kind:c.AggregateOpModifier},{kind:c.BinOp});break}if((null==i?void 0:i.type.id)===142){let i=F(t,e);w.filter(e=>e.label===i).length>0&&x.push({kind:c.AggregateOpModifier}),x.push({kind:c.BinOp},{kind:c.Offset});break}if(i&&z(i,"Expr")){x.push({kind:c.BinOp},{kind:c.Offset});break}}let i=null==(h=t.parent)?void 0:h.parent;if(!i){x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)});break}z(i,"Expr","Expr")&&38!==i.type.id?39!==i.type.id||Q(i,0)||(x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)},{kind:c.Function},{kind:c.Aggregation},{kind:c.BinOpModifier},{kind:c.Number}),Q(i,48,49,50,51,52,53)&&!Q(i,41)&&x.push({kind:c.Bool})):(x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to)},{kind:c.Function},{kind:c.Aggregation}),38!==i.type.id&&134!==i.type.id&&x.push({kind:c.Number}));break}case 30:null!==t.firstChild&&0===t.firstChild.type.id&&x.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation},{kind:c.Number});break;case 34:x.push({kind:c.LabelName,metricName:function(e,t){let i=T(e,31);if(!i)return"";let a="";return i.cursor().iterate(e=>{if(142===e.type.id&&(a=F(e.node,t)))return!1}),a}(t,e)});break;case 143:x.push({kind:c.LabelName,metricName:F(t,e)});break;case 35:(null==(u=t.parent)?void 0:u.type.id)===34?x.push({kind:c.LabelName}):(null==(d=t.parent)?void 0:d.type.id)===144&&x.push({kind:c.LabelName,metricName:F(t,e)});break;case 37:if((null==(p=t.parent)?void 0:p.type.id)===144||(null==(O=t.parent)?void 0:O.type.id)===149){let i="";(null==(f=t.parent.firstChild)?void 0:f.type.id)===35?i=e.sliceDoc(t.parent.firstChild.from,t.parent.firstChild.to):(null==(m=t.parent.firstChild)?void 0:m.type.id)===36&&(i=e.sliceDoc(t.parent.firstChild.from,t.parent.firstChild.to).slice(1,-1));let a=F(t,e),r=T(t,143),n=[];for(let t of[36,149,144])n=n.concat(_(r?r.getChildren(t):[],e));x.push({kind:c.LabelValue,metricName:a,labelName:i,matchers:n})}else(null==(g=null==(v=t.parent)?void 0:v.parent)?void 0:g.type.id)===34?x.push({kind:c.LabelName}):(null==(y=null==($=t.parent)?void 0:$.parent)?void 0:y.type.id)===143&&x.push({kind:c.MetricName,metricName:e.sliceDoc(t.from,t.to).slice(1,-1)});break;case 136:(null==(b=t.parent)?void 0:b.type.id)===0&&(null==(k=t.parent.parent)?void 0:k.type.id)===139?x.push({kind:c.Duration}):x.push({kind:c.Number});break;case 135:case 137:x.push({kind:c.Duration});break;case 38:if(q(t)){if(null===t.firstChild||t.firstChild.from<=i&&t.firstChild.to>=i){x.push({kind:c.Number});break}x.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation});break}x.push({kind:c.MetricName,metricName:""},{kind:c.Function},{kind:c.Aggregation});break;case 53:(null==(P=t.parent)?void 0:P.type.id)===145?x.push({kind:c.MatchOp}):(null==(S=t.parent)?void 0:S.type.id)===39&&x.push({kind:c.BinOp});break;case 146:case 147:case 148:case 145:x.push({kind:c.MatchOp});break;case 40:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 24:case 26:case 25:case 39:x.push({kind:c.BinOp})}return x}(t,a,i),n=Promise.resolve([]),s=!1,o=!0;for(let e of r)switch(e.kind){case c.Aggregation:s=!0,n=n.then(e=>e.concat(w));break;case c.Function:s=!0,n=n.then(e=>e.concat(D));break;case c.BinOpModifier:n=n.then(e=>e.concat(L));break;case c.BinOp:n=n.then(e=>e.concat(X));break;case c.MatchOp:n=n.then(e=>e.concat(E));break;case c.AggregateOpModifier:n=n.then(e=>e.concat(A));break;case c.Duration:o=!1,n=n.then(e=>e.concat(x));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(C));break;case c.Number:n=n.then(e=>e.concat(M));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,i,a=!1,r=!0){return a&&e.push(...R),{from:t,to:i,options:e,validFor:r?/^[a-zA-Z0-9_:]+$/:void 0}})(e,function(e,t,i){var a,r,n,s,o,l,c;let h=e.doc.slice(t.from,i).toString(),u=t.from;if(143===t.type.id||34===t.type.id){let e;e=t.from+1,null!==t.firstChild&&(e=i),u=e}else 38===t.type.id&&null===t.firstChild||37===t.type.id&&((null==(a=t.parent)?void 0:a.type.id)===144||(null==(r=t.parent)?void 0:r.type.id)===149)?u++:(137===t.type.id||135===t.type.id&&!x.map(e=>e.label).includes(h[h.length-1])||136===t.type.id&&(null==(n=t.parent)?void 0:n.type.id)===0&&(null==(s=t.parent.parent)?void 0:s.type.id)===139||38===t.type.id&&q(t)&&null!==t.firstChild||0===t.type.id&&((null==(o=t.parent)?void 0:o.type.id)===137||(null==(l=t.parent)?void 0:l.type.id)===134||(null==(c=t.parent)?void 0:c.type.id)===139&&Q(t.parent,135)))&&(u=i);return u}(t,a,i),i,s,o))}autocompleteMetricName(e,t){if(!this.prometheusClient)return e;let i=new Map;return this.prometheusClient.metricNames(t.metricName).then(e=>{var t;for(let t of e)i.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,a]of i){let i=t[e.replace(/(_count|_sum|_bucket)$/,"")];if(i){if(i.length>1)for(let e of i)""===a.detail?a.detail=e.type:a.detail!==e.type&&(a.detail="unknown",a.info="multiple different definitions for this metric"),""===a.info?a.info=e.help:a.info!==e.help&&(a.info="multiple different definitions for this metric");else if(1===i.length){let{type:t,help:r}=i[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}`)),a.detail=t,a.info=r}}}return e.concat(Array.from(i.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}}let N="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,W=new Set,U="object"==typeof process&&process?process:{},Y=(e,t,i,a)=>{"function"==typeof U.emitWarning?U.emitWarning(e,t,i,a):console.error(`[${i}] ${t}: ${e}`)},I=globalThis.AbortController,j=globalThis.AbortSignal;if(void 0===I){j=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(e,t){this._onabort.push(t)}},I=class{constructor(){t()}signal=new j;abort(e){if(!this.signal.aborted){for(let t of(this.signal.reason=e,this.signal.aborted=!0,this.signal._onabort))t(e);this.signal.onabort?.(e)}}};let e=U.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,Y("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}Symbol("type");let B=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Z=e=>B(e)?e<=256?Uint8Array:e<=65536?Uint16Array:e<=0x100000000?Uint32Array:e<=Number.MAX_SAFE_INTEGER?G:null:null;class G extends Array{constructor(e){super(e),this.fill(0)}}class H{heap;length;static #e=!1;static create(e){let t=Z(e);if(!t)return[];H.#e=!0;let i=new H(e,t);return H.#e=!1,i}constructor(e,t){if(!H.#e)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class J{#t;#i;#a;#r;#n;#s;#o;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#h;#u;#d;#p;#O;#f;#m;#v;#g;#$;#y;#b;#_;#T;#Q;#z;#k;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#_,sizes:e.#y,keyMap:e.#u,keyList:e.#d,valList:e.#p,next:e.#O,prev:e.#f,get head(){return e.#m},get tail(){return e.#v},free:e.#g,isBackgroundFetch:t=>e.#P(t),backgroundFetch:(t,i,a,r)=>e.#S(t,i,a,r),moveToTail:t=>e.#x(t),indexes:t=>e.#X(t),rindexes:t=>e.#w(t),isStale:t=>e.#R(t)}}get max(){return this.#t}get maxSize(){return this.#i}get calculatedSize(){return this.#h}get size(){return this.#c}get fetchMethod(){return this.#s}get memoMethod(){return this.#o}get dispose(){return this.#a}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:t=0,ttl:i,ttlResolution:a=1,ttlAutopurge:r,updateAgeOnGet:n,updateAgeOnHas:s,allowStale:o,dispose:l,onInsert:c,disposeAfter:h,noDisposeOnSet:u,noUpdateTTL:d,maxSize:p=0,maxEntrySize:O=0,sizeCalculation:f,fetchMethod:m,memoMethod:v,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:$,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:b,ignoreFetchAbort:_,perf:T}=e;if(void 0!==T&&"function"!=typeof T?.now)throw TypeError("perf option must have a now() method if specified");if(this.#l=T??N,0!==t&&!B(t))throw TypeError("max option must be a nonnegative integer");let Q=t?Z(t):Array;if(!Q)throw Error("invalid max value: "+t);if(this.#t=t,this.#i=p,this.maxEntrySize=O||this.#i,this.sizeCalculation=f,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==v&&"function"!=typeof v)throw TypeError("memoMethod must be a function if defined");if(this.#o=v,void 0!==m&&"function"!=typeof m)throw TypeError("fetchMethod must be a function if specified");if(this.#s=m,this.#Q=!!m,this.#u=new Map,this.#d=Array(t).fill(void 0),this.#p=Array(t).fill(void 0),this.#O=new Q(t),this.#f=new Q(t),this.#m=0,this.#v=0,this.#g=H.create(t),this.#c=0,this.#h=0,"function"==typeof l&&(this.#a=l),"function"==typeof c&&(this.#r=c),"function"==typeof h?(this.#n=h,this.#$=[]):(this.#n=void 0,this.#$=void 0),this.#T=!!this.#a,this.#k=!!this.#r,this.#z=!!this.#n,this.noDisposeOnSet=!!u,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!y,this.allowStaleOnFetchAbort=!!b,this.ignoreFetchAbort=!!_,0!==this.maxEntrySize){if(0!==this.#i&&!B(this.#i))throw TypeError("maxSize must be a positive integer if specified");if(!B(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#E()}if(this.allowStale=!!o,this.noDeleteOnStaleGet=!!$,this.updateAgeOnGet=!!n,this.updateAgeOnHas=!!s,this.ttlResolution=B(a)||0===a?a:1,this.ttlAutopurge=!!r,this.ttl=i||0,this.ttl){if(!B(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#L()}if(0===this.#t&&0===this.ttl&&0===this.#i)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#i){let e="LRU_CACHE_UNBOUNDED";W.has(e)||(W.add(e),Y("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,J))}}getRemainingTTL(e){return this.#u.has(e)?1/0:0}#L(){let e=new G(this.#t),t=new G(this.#t);this.#_=e,this.#b=t,this.#C=(i,a,r=this.#l.now())=>{if(t[i]=0!==a?r:0,e[i]=a,0!==a&&this.ttlAutopurge){let e=setTimeout(()=>{this.#R(i)&&this.#D(this.#d[i],"expire")},a+1);e.unref&&e.unref()}},this.#A=i=>{t[i]=0!==e[i]?this.#l.now():0},this.#M=(r,n)=>{if(e[n]){let s=e[n],o=t[n];if(!s||!o)return;r.ttl=s,r.start=o,r.now=i||a();let l=r.now-o;r.remainingTTL=s-l}};let i=0,a=()=>{let e=this.#l.now();if(this.ttlResolution>0){i=e;let t=setTimeout(()=>i=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=r=>{let n=this.#u.get(r);if(void 0===n)return 0;let s=e[n],o=t[n];return s&&o?s-((i||a())-o):1/0},this.#R=r=>{let n=t[r],s=e[r];return!!s&&!!n&&(i||a())-n>s}}#A=()=>{};#M=()=>{};#C=()=>{};#R=()=>!1;#E(){let e=new G(this.#t);this.#h=0,this.#y=e,this.#F=t=>{this.#h-=e[t],e[t]=0},this.#q=(e,t,i,a)=>{if(this.#P(t))return 0;if(!B(i))if(a){if("function"!=typeof a)throw TypeError("sizeCalculation must be a function");if(!B(i=a(t,e)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#V=(t,i,a)=>{if(e[t]=i,this.#i){let i=this.#i-e[t];for(;this.#h>i;)this.#N(!0)}this.#h+=e[t],a&&(a.entrySize=i,a.totalCalculatedSize=this.#h)}}#F=e=>{};#V=(e,t,i)=>{};#q=(e,t,i,a)=>{if(i||a)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#X({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#v;this.#W(t)&&((e||!this.#R(t))&&(yield t),t!==this.#m);)t=this.#f[t]}*#w({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#m;this.#W(t)&&((e||!this.#R(t))&&(yield t),t!==this.#v);)t=this.#O[t]}#W(e){return void 0!==e&&this.#u.get(this.#d[e])===e}*entries(){for(let e of this.#X())void 0===this.#p[e]||void 0===this.#d[e]||this.#P(this.#p[e])||(yield[this.#d[e],this.#p[e]])}*rentries(){for(let e of this.#w())void 0===this.#p[e]||void 0===this.#d[e]||this.#P(this.#p[e])||(yield[this.#d[e],this.#p[e]])}*keys(){for(let e of this.#X()){let t=this.#d[e];void 0===t||this.#P(this.#p[e])||(yield t)}}*rkeys(){for(let e of this.#w()){let t=this.#d[e];void 0===t||this.#P(this.#p[e])||(yield t)}}*values(){for(let e of this.#X())void 0===this.#p[e]||this.#P(this.#p[e])||(yield this.#p[e])}*rvalues(){for(let e of this.#w())void 0===this.#p[e]||this.#P(this.#p[e])||(yield this.#p[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let i of this.#X()){let a=this.#p[i],r=this.#P(a)?a.__staleWhileFetching:a;if(void 0!==r&&e(r,this.#d[i],this))return this.get(this.#d[i],t)}}forEach(e,t=this){for(let i of this.#X()){let a=this.#p[i],r=this.#P(a)?a.__staleWhileFetching:a;void 0!==r&&e.call(t,r,this.#d[i],this)}}rforEach(e,t=this){for(let i of this.#w()){let a=this.#p[i],r=this.#P(a)?a.__staleWhileFetching:a;void 0!==r&&e.call(t,r,this.#d[i],this)}}purgeStale(){let e=!1;for(let t of this.#w({allowStale:!0}))this.#R(t)&&(this.#D(this.#d[t],"expire"),e=!0);return e}info(e){let t=this.#u.get(e);if(void 0===t)return;let i=this.#p[t],a=this.#P(i)?i.__staleWhileFetching:i;if(void 0===a)return;let r={value:a};if(this.#_&&this.#b){let e=this.#_[t],i=this.#b[t];e&&i&&(r.ttl=e-(this.#l.now()-i),r.start=Date.now())}return this.#y&&(r.size=this.#y[t]),r}dump(){let e=[];for(let t of this.#X({allowStale:!0})){let i=this.#d[t],a=this.#p[t],r=this.#P(a)?a.__staleWhileFetching:a;if(void 0===r||void 0===i)continue;let n={value:r};if(this.#_&&this.#b){n.ttl=this.#_[t];let e=this.#l.now()-this.#b[t];n.start=Math.floor(Date.now()-e)}this.#y&&(n.size=this.#y[t]),e.unshift([i,n])}return e}load(e){for(let[t,i]of(this.clear(),e)){if(i.start){let e=Date.now()-i.start;i.start=this.#l.now()-e}this.set(t,i.value,i)}}set(e,t,i={}){if(void 0===t)return this.delete(e),this;let{ttl:a=this.ttl,start:r,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:o}=i,{noUpdateTTL:l=this.noUpdateTTL}=i,c=this.#q(e,t,i.size||0,s);if(this.maxEntrySize&&c>this.maxEntrySize)return o&&(o.set="miss",o.maxEntrySizeExceeded=!0),this.#D(e,"set"),this;let h=0===this.#c?void 0:this.#u.get(e);if(void 0===h)h=0===this.#c?this.#v:0!==this.#g.length?this.#g.pop():this.#c===this.#t?this.#N(!1):this.#c,this.#d[h]=e,this.#p[h]=t,this.#u.set(e,h),this.#O[this.#v]=h,this.#f[h]=this.#v,this.#v=h,this.#c++,this.#V(h,c,o),o&&(o.set="add"),l=!1,this.#k&&this.#r?.(t,e,"add");else{this.#x(h);let i=this.#p[h];if(t!==i){if(this.#Q&&this.#P(i)){i.__abortController.abort(Error("replaced"));let{__staleWhileFetching:t}=i;void 0!==t&&!n&&(this.#T&&this.#a?.(t,e,"set"),this.#z&&this.#$?.push([t,e,"set"]))}else!n&&(this.#T&&this.#a?.(i,e,"set"),this.#z&&this.#$?.push([i,e,"set"]));if(this.#F(h),this.#V(h,c,o),this.#p[h]=t,o){o.set="replace";let e=i&&this.#P(i)?i.__staleWhileFetching:i;void 0!==e&&(o.oldValue=e)}}else o&&(o.set="update");this.#k&&this.onInsert?.(t,e,t===i?"update":"replace")}if(0===a||this.#_||this.#L(),this.#_&&(l||this.#C(h,a,r),o&&this.#M(o,h)),!n&&this.#z&&this.#$){let e,t=this.#$;for(;e=t?.shift();)this.#n?.(...e)}return this}pop(){try{for(;this.#c;){let e=this.#p[this.#m];if(this.#N(!0),this.#P(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(void 0!==e)return e}}finally{if(this.#z&&this.#$){let e,t=this.#$;for(;e=t?.shift();)this.#n?.(...e)}}}#N(e){let t=this.#m,i=this.#d[t],a=this.#p[t];return this.#Q&&this.#P(a)?a.__abortController.abort(Error("evicted")):(this.#T||this.#z)&&(this.#T&&this.#a?.(a,i,"evict"),this.#z&&this.#$?.push([a,i,"evict"])),this.#F(t),e&&(this.#d[t]=void 0,this.#p[t]=void 0,this.#g.push(t)),1===this.#c?(this.#m=this.#v=0,this.#g.length=0):this.#m=this.#O[t],this.#u.delete(i),this.#c--,t}has(e,t={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:a}=t,r=this.#u.get(e);if(void 0!==r){let e=this.#p[r];if(this.#P(e)&&void 0===e.__staleWhileFetching)return!1;if(!this.#R(r))return i&&this.#A(r),a&&(a.has="hit",this.#M(a,r)),!0;a&&(a.has="stale",this.#M(a,r))}else a&&(a.has="miss");return!1}peek(e,t={}){let{allowStale:i=this.allowStale}=t,a=this.#u.get(e);if(void 0===a||!i&&this.#R(a))return;let r=this.#p[a];return this.#P(r)?r.__staleWhileFetching:r}#S(e,t,i,a){let r=void 0===t?void 0:this.#p[t];if(this.#P(r))return r;let n=new I,{signal:s}=i;s?.addEventListener("abort",()=>n.abort(s.reason),{signal:n.signal});let o={signal:n.signal,options:i,context:a},l=(a,r=!1)=>{let{aborted:s}=n.signal,l=i.ignoreFetchAbort&&void 0!==a;return(i.status&&(s&&!r?(i.status.fetchAborted=!0,i.status.fetchError=n.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),!s||l||r)?(this.#p[t]===u&&(void 0===a?void 0!==u.__staleWhileFetching?this.#p[t]=u.__staleWhileFetching:this.#D(e,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(e,a,o.options))),a):c(n.signal.reason)},c=a=>{let{aborted:r}=n.signal,s=r&&i.allowStaleOnFetchAbort,o=s||i.allowStaleOnFetchRejection,l=o||i.noDeleteOnFetchRejection;if(this.#p[t]===u&&(l&&void 0!==u.__staleWhileFetching?s||(this.#p[t]=u.__staleWhileFetching):this.#D(e,"fetch")),o)return i.status&&void 0!==u.__staleWhileFetching&&(i.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw a},h=(t,a)=>{let s=this.#s?.(e,r,o);s&&s instanceof Promise&&s.then(e=>t(void 0===e?void 0:e),a),n.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(t(void 0),i.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))})};i.status&&(i.status.fetchDispatched=!0);let u=new Promise(h).then(l,e=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=e),c(e))),d=Object.assign(u,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return void 0===t?(this.set(e,d,{...o.options,status:void 0}),t=this.#u.get(e)):this.#p[t]=d,d}#P(e){return!!this.#Q&&!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof I}async fetch(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:O,forceRefresh:f=!1,status:m,signal:v}=t;if(!this.#Q)return m&&(m.fetch="get"),this.get(e,{allowStale:i,updateAgeOnGet:a,noDeleteOnStaleGet:r,status:m});let g={allowStale:i,updateAgeOnGet:a,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:s,size:o,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:p,ignoreFetchAbort:d,status:m,signal:v},$=this.#u.get(e);if(void 0===$){m&&(m.fetch="miss");let t=this.#S(e,$,g,O);return t.__returned=t}{let t=this.#p[$];if(this.#P(t)){let e=i&&void 0!==t.__staleWhileFetching;return m&&(m.fetch="inflight",e&&(m.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let r=this.#R($);if(!f&&!r)return m&&(m.fetch="hit"),this.#x($),a&&this.#A($),m&&this.#M(m,$),t;let n=this.#S(e,$,g,O),s=void 0!==n.__staleWhileFetching&&i;return m&&(m.fetch=r?"stale":"refresh",s&&r&&(m.returnedStale=!0)),s?n.__staleWhileFetching:n.__returned=n}}async forceFetch(e,t={}){let i=await this.fetch(e,t);if(void 0===i)throw Error("fetch() returned undefined");return i}memo(e,t={}){let i=this.#o;if(!i)throw Error("no memoMethod provided to constructor");let{context:a,forceRefresh:r,...n}=t,s=this.get(e,n);if(!r&&void 0!==s)return s;let o=i(e,s,{options:n,context:a});return this.set(e,o,n),o}get(e,t={}){let{allowStale:i=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=t,s=this.#u.get(e);if(void 0!==s){let t=this.#p[s],o=this.#P(t);return(n&&this.#M(n,s),this.#R(s))?(n&&(n.get="stale"),o)?(n&&i&&void 0!==t.__staleWhileFetching&&(n.returnedStale=!0),i?t.__staleWhileFetching:void 0):(r||this.#D(e,"expire"),n&&i&&(n.returnedStale=!0),i?t:void 0):(n&&(n.get="hit"),o)?t.__staleWhileFetching:(this.#x(s),a&&this.#A(s),t)}n&&(n.get="miss")}#U(e,t){this.#f[t]=e,this.#O[e]=t}#x(e){e!==this.#v&&(e===this.#m?this.#m=this.#O[e]:this.#U(this.#f[e],this.#O[e]),this.#U(this.#v,e),this.#v=e)}delete(e){return this.#D(e,"delete")}#D(e,t){let i=!1;if(0!==this.#c){let a=this.#u.get(e);if(void 0!==a)if(i=!0,1===this.#c)this.#Y(t);else{this.#F(a);let i=this.#p[a];if(this.#P(i)?i.__abortController.abort(Error("deleted")):(this.#T||this.#z)&&(this.#T&&this.#a?.(i,e,t),this.#z&&this.#$?.push([i,e,t])),this.#u.delete(e),this.#d[a]=void 0,this.#p[a]=void 0,a===this.#v)this.#v=this.#f[a];else if(a===this.#m)this.#m=this.#O[a];else{let e=this.#f[a];this.#O[e]=this.#O[a];let t=this.#O[a];this.#f[t]=this.#f[a]}this.#c--,this.#g.push(a)}}if(this.#z&&this.#$?.length){let e,t=this.#$;for(;e=t?.shift();)this.#n?.(...e)}return i}clear(){return this.#Y("delete")}#Y(e){for(let t of this.#w({allowStale:!0})){let i=this.#p[t];if(this.#P(i))i.__abortController.abort(Error("deleted"));else{let a=this.#d[t];this.#T&&this.#a?.(i,a,e),this.#z&&this.#$?.push([i,a,e])}}if(this.#u.clear(),this.#p.fill(void 0),this.#d.fill(void 0),this.#_&&this.#b&&(this.#_.fill(0),this.#b.fill(0)),this.#y&&this.#y.fill(0),this.#m=0,this.#v=0,this.#g.length=0,this.#h=0,this.#c=0,this.#z&&this.#$){let e,t=this.#$;for(;e=t?.shift();)this.#n?.(...e)}}}class K{constructor(e){this.lookbackInterval=432e5,this.httpMethod="POST",this.apiPrefix="/api/v1",this.fetchFn=(e,t)=>fetch(e,t),this.requestHeaders=new Headers,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),e.requestHeaders&&(this.requestHeaders=e.requestHeaders)}labelNames(e){let t=new Date,i=new Date(t.getTime()-this.lookbackInterval);if(void 0===e||""===e){let e=this.buildRequest(this.labelsEndpoint(),new URLSearchParams({start:i.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 i of e)for(let[e]of Object.entries(i))"__name__"!==e&&t.add(e);return Array.from(t)})}labelValues(e,t,i){let a=new Date,r=new Date(a.getTime()-this.lookbackInterval);if(!t||0===t.length){let t=new URLSearchParams({start:r.toISOString(),end:a.toISOString()});return this.fetchAPI(`${this.labelValuesEndpoint().replace(/:name/gi,e)}?${t}`).catch(e=>(this.errorHandler&&this.errorHandler(e),[]))}return this.series(t,i,e).then(t=>{let i=new Set;for(let a of t)for(let[t,r]of Object.entries(a))"__name__"!==t&&t===e&&i.add(r);return Array.from(i)})}metricMetadata(){return this.fetchAPI(this.metricMetadataEndpoint()).catch(e=>(this.errorHandler&&this.errorHandler(e),{}))}series(e,t,i){let a=new Date,r=new Date(a.getTime()-this.lookbackInterval),n=this.buildRequest(this.seriesEndpoint(),new URLSearchParams({start:r.toISOString(),end:a.toISOString(),"match[]":function(e,t,i){if(!t||0===t.length)return e;let a="";for(let e of t){if(e.name===i||""===e.value)continue;let t="";switch(e.type){case 146:default:t="=";break;case 53:t="!=";break;case 148:t="!~";break;case 147:t="=~"}let r=`${e.name}${t}"${e.value}"`;a=""===a?r:`${a},${r}`}return`${e}{${a}}`}(e,t,i)}));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 t?t.headers=this.requestHeaders:t={headers:this.requestHeaders},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 i=e,a=t;return"GET"===this.httpMethod&&(i=`${i}?${t}`,a=null),{uri:i,body:a}}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 ee{constructor(e){let t={ttl:e&&e.maxAge?e.maxAge:3e5,ttlAutopurge:!0};this.completeAssociation=new J(t),this.metricMetadata={},this.labelValues=new J(t),this.labelNames=[],this.flags={},(null==e?void 0:e.initialMetricList)&&this.setLabelValues("__name__",e.initialMetricList)}setAssociations(e,t){t.forEach(t=>{let i=this.completeAssociation.get(e);for(let[a,r]of(i||(i=new Map,this.completeAssociation.set(e,i)),Object.entries(t))){if("__name__"===a)continue;let e=i.get(a);void 0===e?i.set(a,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 i=this.completeAssociation.get(t);if(i){let t=i.get(e);return t?Array.from(t):[]}return[]}}class et{constructor(e,t){this.client=e,this.cache=new ee(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 i=this.cache.getLabelValues(e,t);return i&&i.length>0?Promise.resolve(i):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 ei(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 V(e.remote,e.maxMetricsMetadata):new V(new et(new K(e.remote),e.remote.cache),e.maxMetricsMetadata)}return new V}var ea=i(68799);class er{promQL(){return e=>{let t=new P(e.state);return t.analyze(),t.getDiagnostics()}}}(s=h||(h={})).PromQL="PromQL",s.MetricName="MetricName";class en{constructor(){this.complete=ei(),this.lint=new er,this.enableLinter=!0,this.enableCompletion=!0}setComplete(e){return this.complete=ei(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=h.PromQL){var t,i;let a=k.qp.define({parser:$.configure({top:e}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}),r=[a];if(this.enableCompletion){let e=a.data.of({autocomplete:e=>this.complete.promQL(e)});r=r.concat(e)}return this.enableLinter&&(r=r.concat((t=this.lint.promQL,i=this.lint,(0,ea.ir)(t.call(i))))),r}}},78277:function(e,t,i){var a;t.default=void 0,t.default=(0,((a=i(30265))&&a.__esModule?a:{default:a}).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,i){var a;t.default=void 0,t.default=(0,((a=i(30265))&&a.__esModule?a:{default:a}).default)("M3,3H9V7H3V3M15,10H21V14H15V10M15,17H21V21H15V17M13,13H7V18H13V20H7L5,20V9H7V11H13V13Z","FileTree")}}]);
@@ -0,0 +1 @@
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(91542),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(64010),_=a(10763),f=a(87570),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(87570);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(87570),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)))}}}]);