7846.b323e600ed179be1fd21.js 71 KB

12
  1. "use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[7846],{64230:(e,t,n)=>{n.d(t,{J:()=>u});var i=n(82897),r=n(35853),a=n.n(r),s=n(76132),o=n(36613),l=n(36865),d=n(19991);const u=(e,t)=>(0,d.v9)(e)?e:"string"==typeof e?c(e,t):m(e,t),c=(e,t)=>{var n;if(-1!==e.indexOf("now")){if(!(0,o.isValid)(e))return a()();return(0,o.parse)(e,null==t?void 0:t.roundUp,null==t?void 0:t.timeZone,null==t?void 0:t.fiscalYearStartMonth)||a()()}const r=(0,s.Z)(t),d=a().tz.zone(r),u=null!==(n=null==t?void 0:t.format)&&void 0!==n?n:l.U6.fullDate;return d&&d.name?a().tz(e,u,d.name):"utc"===(0,i.lowerCase)(r)?a().utc(e,u):a()(e,u)},m=(e,t)=>{const n=e,r=(0,s.Z)(t),o=a().tz.zone(r);return o&&o.name?a().tz(n,o.name):"utc"===(0,i.lowerCase)(r)?a().utc(n):a()(n)}},72413:(e,t,n)=>{n.d(t,{X:()=>r});const i=new Set;function r(e){if(i.has(e))throw new Error(`There is already an event defined with type '${e}'`);return i.add(e),{name:e}}},35090:(e,t,n)=>{function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{R:()=>a,m:()=>r});class r{constructor(){i(this,"type",void 0),i(this,"payload",void 0),i(this,"origin",void 0),this.type=this.__proto__.constructor.type}}class a extends r{constructor(e){super(),i(this,"payload",void 0),this.payload=e}}},23227:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(94956);class r extends i.B{}},46804:(e,t,n)=>{n.d(t,{Mo:()=>s});var i=n(82897),r=n(93349),a=n(86208);const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.values;switch(e.type){case a.fS.number:return h(n,t);case a.fS.string:return p(n,t);case a.fS.boolean:return f(n,t);case a.fS.time:return m(n,t);default:return g(t)}},o=(e,t)=>e&&t?(0,i.isNumber)(e)&&(0,i.isNumber)(t)?l(e,t):(0,r.CQ)(e).isBefore(t)?-1:(0,r.CQ)(t).isBefore(e)?1:0:c(e,t),l=(e,t)=>e-t,d=(e,t)=>e&&t?e.localeCompare(t):c(e,t),u=(e,t)=>c(e,t),c=(e,t)=>!e&&t?1:e&&!t?-1:0,m=(e,t)=>(n,i)=>{const r=e.get(n),a=e.get(i);return t?o(a,r):o(r,a)},f=(e,t)=>(n,i)=>{const r=e.get(n),a=e.get(i);return t?u(a,r):u(r,a)},h=(e,t)=>(n,i)=>{const r=e.get(n),a=e.get(i);return t?l(a,r):l(r,a)},p=(e,t)=>(n,i)=>{const r=e.get(n),a=e.get(i);return t?d(a,r):d(r,a)},g=e=>(t,n)=>e?l(n,t):l(t,n)},65407:(e,t,n)=>{n.d(t,{C:()=>s,n:()=>a});var i=n(78689),r=n(14557);function a(e,t){if(e.name)return e.name;const n=[];for(const t of e.fields)t.labels&&Object.keys(t.labels).length>0&&n.push(t);return 1===n.length?(0,r.aA)(n[0].labels):void 0===t?e.fields.filter((e=>e.type!==i.fS.time)).map((t=>s(t,e))).join(", "):e.refId?`Series (${e.refId})`:`Series (${t})`}function s(e,t,n){var a,s;const o=null===(a=e.state)||void 0===a?void 0:a.displayName,l=Boolean(n&&n.length>1);if(o&&l===(null===(s=e.state)||void 0===s?void 0:s.multipleFrames))return o;const d=function(e,t,n){var a,s,o;const l=(null===(a=e.config)||void 0===a?void 0:a.displayName)&&(null===(s=e.config)||void 0===s?void 0:s.displayName.length);let d=l?e.config.displayName:e.name;if(l)return d;if(t&&null!==(o=e.config)&&void 0!==o&&o.displayNameFromDS)return e.config.displayNameFromDS;var u;if(e.type===i.fS.time&&!e.labels)return null!==(u=d)&&void 0!==u?u:i.Ls;let c=[],m=!1;if(n&&n.length>1)for(let e=1;e<n.length;e++){if(n[e].name!==n[e-1].name){m=!0;break}}let f=!1,h=!1;m&&null!=t&&t.name&&(c.push(t.name),f=!0);e.name&&e.name!==i.M5&&c.push(e.name);if(e.labels&&t){let i=function(e){let t=null;for(let n=0;n<e.length;n++){const i=e[n];for(const e of i.fields)if(e.labels)for(const n in e.labels)if(null===t)t=n;else if(n!==t)return null}return t}(null!=n?n:[t]);if(i)e.labels[i]&&(c.push(e.labels[i]),h=!0);else{let t=(0,r.aA)(e.labels);t&&(c.push(t),h=!0)}}!t||f||h||e.name!==i.M5||t.name&&t.name.length>0&&(c.push(t.name),f=!0);d=c.length?c.join(" "):e.name?e.name:i.M5;d===e.name&&(d=function(e,t){let n=0,i=!1;if(t)for(let r=0;r<t.fields.length;r++){const a=t.fields[r];if(e===a){if(i=!0,n>0){n++;break}}else if(e.name===a.name&&(n++,i))break}if(n)return`${e.name} ${n}`;return e.name}(e,t));return d}(e,t,n);return e.state=e.state||{},e.state.displayName=d,e.state.multipleFrames=l,d}},95943:(e,t,n)=>{n.d(t,{Nm:()=>u,Nw:()=>l,Xv:()=>m,he:()=>d,oT:()=>c});var i=n(58720),r=n(82440);const a=Object.keys(r.whiteList).reduce(((e,t)=>{var n;return e[t]=null===(n=r.whiteList[t])||void 0===n?void 0:n.concat(["class","style"]),e}),{}),s=new r.FilterXSS({whiteList:a}),o=new r.FilterXSS({whiteList:a,css:{whiteList:Object.assign({},r.getDefaultCSSWhiteList(),{"flex-direction":!0,"flex-wrap":!0,"flex-basis":!0,"flex-grow":!0,"flex-shrink":!0,"flex-flow":!0,gap:!0,order:!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"align-items":!0,"align-content":!0,"align-self":!0})}});function l(e){try{return s.process(e)}catch(t){return console.error("String could not be sanitized",e),e}}function d(e){try{return o.process(e)}catch(t){return console.error("String could not be sanitized",e),"Text string could not be sanitized"}}function u(e){return(0,i.N)(e)}function c(e){return/\u001b\[\d{1,2}m/.test(e)}function m(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}},41177:(e,t,n)=>{n.d(t,{j:()=>g});var i=n(16535),r=n(28038);function a(e,t){const n={padding:1,headerHeight:4,background:e.background.primary,borderColor:e.border.weak,boxShadow:"none"},i={borderColor:e.border.medium,borderHover:e.border.strong,text:e.text.primary,background:"dark"===e.mode?e.background.canvas:e.background.primary};return{height:{sm:3,md:4,lg:6},input:i,panel:n,dropdown:{background:i.background},tooltip:{background:e.background.secondary,text:e.text.primary},dashboard:{background:e.background.canvas,padding:1},overlay:{background:"dark"===e.mode?"rgba(63, 62, 62, 0.45)":"rgba(208, 209, 211, 0.24)"},sidemenu:{width:57},menuTabs:{height:41},textHighlight:{text:e.warning.contrastText,background:e.warning.main},horizontalDrawer:{defaultHeight:400}}}var s=n(51496),o=n(81128),l=n(23157),d=n(54197),u=n(56545),c=n(78689);function m(e){const t={name:"Grafana Default",typography:{fontFamily:{sansSerif:e.typography.fontFamily,monospace:e.typography.fontFamilyMonospace},size:{base:`${e.typography.fontSize}px`,xs:e.typography.size.xs,sm:e.typography.size.sm,md:e.typography.size.md,lg:e.typography.size.lg},heading:{h1:e.typography.h1.fontSize,h2:e.typography.h2.fontSize,h3:e.typography.h3.fontSize,h4:e.typography.h4.fontSize,h5:e.typography.h5.fontSize,h6:e.typography.h6.fontSize},weight:{light:e.typography.fontWeightLight,regular:e.typography.fontWeightRegular,semibold:e.typography.fontWeightMedium,bold:e.typography.fontWeightBold},lineHeight:{xs:e.typography.bodySmall.lineHeight,sm:e.typography.bodySmall.lineHeight,md:e.typography.body.lineHeight,lg:e.typography.h2.lineHeight},link:{decoration:"none",hoverDecoration:"none"}},breakpoints:{xs:`${e.breakpoints.values.xs}px`,sm:`${e.breakpoints.values.sm}px`,md:`${e.breakpoints.values.md}px`,lg:`${e.breakpoints.values.lg}px`,xl:`${e.breakpoints.values.xl}px`,xxl:`${e.breakpoints.values.xxl}px`},spacing:{base:e.spacing.gridSize,insetSquishMd:e.spacing(.5,1),d:e.spacing(2),xxs:e.spacing(.25),xs:e.spacing(.5),sm:e.spacing(1),md:e.spacing(2),lg:e.spacing(3),xl:e.spacing(4),gutter:e.spacing(4),formSpacingBase:e.spacing.gridSize,formMargin:4*e.spacing.gridSize+"px",formFieldsetMargin:2*e.spacing.gridSize+"px",formInputHeight:4*e.spacing.gridSize,formButtonHeight:4*e.spacing.gridSize,formInputPaddingHorizontal:`${e.spacing.gridSize}px`,formInputAffixPaddingHorizontal:e.spacing.gridSize/2+"px",formInputMargin:2*e.spacing.gridSize+"px",formLabelPadding:"0 0 0 2px",formLabelMargin:`0 0 ${e.spacing.gridSize/2+"px"} 0`,formValidationMessagePadding:"4px 8px",formValidationMessageMargin:"4px 0 0 0",inlineFormMargin:"4px"},border:{radius:{sm:e.shape.borderRadius(1),md:e.shape.borderRadius(2),lg:e.shape.borderRadius(3)},width:{sm:"1px"}},height:{sm:e.spacing.gridSize*e.components.height.sm,md:e.spacing.gridSize*e.components.height.md,lg:e.spacing.gridSize*e.components.height.lg},panelPadding:e.components.panel.padding*e.spacing.gridSize,panelHeaderHeight:e.spacing.gridSize*e.components.panel.headerHeight,zIndex:e.zIndex},n=Object.assign({},f,{black:"#000000",white:"#ffffff",dark1:"#141414",dark2:"#161719",dark3:"#1f1f20",dark4:"#212124",dark5:"#222426",dark6:"#262628",dark7:"#292a2d",dark8:"#2f2f32",dark9:"#343436",dark10:"#424345",gray1:"#555555",gray2:"#8e8e8e",gray3:"#b3b3b3",gray4:"#d8d9da",gray5:"#ececec",gray6:"#f4f5f8",gray7:"#fbfbfb",redBase:"#e02f44",redShade:"#c4162a",greenBase:"#299c46",greenShade:"#23843b",red:"#d44a3a",yellow:"#ecbb13",purple:"#9933cc",variable:"#32d1df",orange:"#eb7b18",orangeDark:"#ff780a"}),i={bg1:e.colors.background.primary,bg2:e.colors.background.secondary,bg3:e.colors.action.hover,dashboardBg:e.colors.background.canvas,bgBlue1:e.colors.primary.main,bgBlue2:e.colors.primary.shade},r={border1:e.colors.border.weak,border2:e.colors.border.medium,border3:e.colors.border.strong},a={textStrong:e.colors.text.maxContrast,textHeading:e.colors.text.primary,text:e.colors.text.primary,textSemiWeak:e.colors.text.secondary,textWeak:e.colors.text.secondary,textFaint:e.colors.text.disabled,textBlue:e.colors.primary.text},s={formLabel:e.colors.text.primary,formDescription:e.colors.text.secondary,formInputBg:e.components.input.background,formInputBgDisabled:e.colors.action.disabledBackground,formInputBorder:e.components.input.borderColor,formInputBorderHover:e.components.input.borderHover,formInputBorderActive:e.colors.primary.border,formInputBorderInvalid:e.colors.error.border,formInputPlaceholderText:e.colors.text.disabled,formInputText:e.components.input.text,formInputDisabledText:e.colors.action.disabledText,formFocusOutline:e.colors.primary.main,formValidationMessageText:e.colors.error.contrastText,formValidationMessageBg:e.colors.error.main};return Object.assign({},t,{type:"dark"===e.colors.mode?c.Qu.Dark:c.Qu.Light,isDark:e.isDark,isLight:e.isLight,name:e.name,palette:Object.assign({},n,{brandPrimary:n.orange,brandSuccess:e.colors.success.main,brandWarning:e.colors.warning.main,brandDanger:e.colors.error.main,queryRed:e.colors.error.text,queryGreen:e.colors.success.text,queryPurple:"#fe85fc",queryOrange:n.orange,online:e.colors.success.main,warn:e.colors.success.main,critical:e.colors.success.main}),colors:Object.assign({},i,r,s,a,{bodyBg:e.colors.background.canvas,panelBg:e.components.panel.background,panelBorder:e.components.panel.borderColor,pageHeaderBg:e.colors.background.canvas,pageHeaderBorder:e.colors.background.canvas,dropdownBg:s.formInputBg,dropdownShadow:n.black,dropdownOptionHoverBg:i.bg2,link:e.colors.text.primary,linkDisabled:e.colors.text.disabled,linkHover:e.colors.text.maxContrast,linkExternal:e.colors.text.link}),shadows:{listItem:"none"},visualization:e.visualization})}const f={gray98:"#f7f8fa",gray97:"#f1f5f9",gray95:"#e9edf2",gray90:"#dce1e6",gray85:"#c7d0d9",gray70:"#9fa7b3",gray60:"#7b8087",gray33:"#464c54",gray25:"#2c3235",gray15:"#202226",gray10:"#141619",gray05:"#0b0c0e",blue95:"#5794f2",blue85:"#33a2e5",blue80:"#3274d9",blue77:"#1f60c4",red88:"#e02f44"};var h=n(51407),p=n(56077);function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{colors:t={},spacing:n={},shape:c={},typography:f={}}=e,g=(0,r.i)(t),b=(0,i._)(),y=(0,l._)(n),v=(0,o.r)(c),x=(0,u.f)(g,f),S=(0,s.G)(g),w=(0,d.ig)(),N=a(g),M=(0,h.x)(g),k={name:"dark"===g.mode?"Dark":"Light",isDark:"dark"===g.mode,isLight:"light"===g.mode,colors:g,breakpoints:b,spacing:y,shape:v,components:N,typography:x,shadows:S,transitions:w,visualization:M,zIndex:Object.assign({},p.W)};return Object.assign({},k,{v1:m(k)})}},28090:(e,t,n)=>{n.d(t,{D:()=>i});const i={white:"#FFFFFF",black:"#000000",gray25:"#2c3235",gray15:"#22252b",gray10:"#181b1f",gray05:"#111217",darkLayer0:"#18181A",darkLayer1:"#212124",darkLayer2:"#2a2a2f",darkBorder1:"#34343B",darkBorder2:"#64646B",gray90:"#F4F5F5",gray100:"#F4F5F5",gray80:"#D0D1D3",lightBorder1:"#E4E7E7",blueDarkMain:"#3D71D9",blueDarkText:"#6E9FFF",redDarkMain:"#D10E5C",redDarkText:"#FF5286",greenDarkMain:"#1A7F4B",greenDarkText:"#6CCF8E",orangeDarkMain:"#F5B73D",orangeDarkText:"#F8D06B",blueLightMain:"#3871DC",blueLightText:"#1F62E0",redLightMain:"#E0226E",redLightText:"#CF0E5B",greenLightMain:"#1B855E",greenLightText:"#0A764E",orangeLightMain:"#FAD34A",orangeLightText:"#8A6C00"}},92809:(e,t,n)=>{n.d(t,{Kx:()=>o,TB:()=>l,gz:()=>s,uP:()=>d});var i=n(82897),r=n(78689),a=n(94956);let s;function o(e){var t;const{field:n,reducers:i}=e;if(!n||!i||i.length<1)return{};if(null!==(t=n.state)&&void 0!==t&&t.calcs){const e=[];for(const t of i)n.state.calcs.hasOwnProperty(t)||e.push(t);if(e.length<1)return Object.assign({},n.state.calcs)}n.state||(n.state={});const a=l.list(i);if(n.values.length<1){const e=Object.assign({},n.state.calcs);for(const t of a)e[t.id]=null!==t.emptyInputResult?t.emptyInputResult:null;return n.state.calcs=e}const{nullValueMode:s}=n.config,o=s===r.Gl.Ignore,u=s===r.Gl.AsZero;if(1===a.length&&a[0].reduce){const e=a[0].reduce(n,o,u);return n.state.calcs=Object.assign({},n.state.calcs,e),e}let c=d(n,o,u);for(const e of a)!c.hasOwnProperty(e.id)&&e.reduce&&(c=Object.assign({},c,e.reduce(n,o,u)));return n.state.calcs=Object.assign({},n.state.calcs,c),c}!function(e){e.sum="sum",e.max="max",e.min="min",e.logmin="logmin",e.mean="mean",e.last="last",e.first="first",e.count="count",e.range="range",e.diff="diff",e.diffperc="diffperc",e.delta="delta",e.step="step",e.firstNotNull="firstNotNull",e.lastNotNull="lastNotNull",e.changeCount="changeCount",e.distinctCount="distinctCount",e.allIsZero="allIsZero",e.allIsNull="allIsNull",e.allValues="allValues",e.uniqueValues="uniqueValues"}(s||(s={}));const l=new a.B((()=>[{id:s.lastNotNull,name:"Last *",description:"Last non-null value",standard:!0,aliasIds:["current"],reduce:f},{id:s.last,name:"Last",description:"Last value",standard:!0,reduce:m},{id:s.firstNotNull,name:"First *",description:"First non-null value",standard:!0,reduce:c},{id:s.first,name:"First",description:"First Value",standard:!0,reduce:u},{id:s.min,name:"Min",description:"Minimum Value",standard:!0},{id:s.max,name:"Max",description:"Maximum Value",standard:!0},{id:s.mean,name:"Mean",description:"Average Value",standard:!0,aliasIds:["avg"]},{id:s.sum,name:"Total",description:"The sum of all values",emptyInputResult:0,standard:!0,aliasIds:["total"]},{id:s.count,name:"Count",description:"Number of values in response",emptyInputResult:0,standard:!0},{id:s.range,name:"Range",description:"Difference between minimum and maximum values",standard:!0},{id:s.delta,name:"Delta",description:"Cumulative change in value",standard:!0},{id:s.step,name:"Step",description:"Minimum interval between values",standard:!0},{id:s.diff,name:"Difference",description:"Difference between first and last values",standard:!0},{id:s.logmin,name:"Min (above zero)",description:"Used for log min scale",standard:!0},{id:s.allIsZero,name:"All Zeros",description:"All values are zero",emptyInputResult:!1,standard:!0},{id:s.allIsNull,name:"All Nulls",description:"All values are null",emptyInputResult:!0,standard:!0},{id:s.changeCount,name:"Change Count",description:"Number of times the value changes",standard:!1,reduce:h},{id:s.distinctCount,name:"Distinct Count",description:"Number of distinct values",standard:!1,reduce:p},{id:s.diffperc,name:"Difference percent",description:"Percentage difference between first and last values",standard:!0},{id:s.allValues,name:"All values",description:"Returns an array with all values",standard:!1,reduce:e=>({allValues:e.values.toArray()})},{id:s.uniqueValues,name:"All unique values",description:"Returns an array with all unique values",standard:!1,reduce:e=>({uniqueValues:[...new Set(e.values.toArray())]})}]));function d(e,t,n){const a={sum:0,max:-Number.MAX_VALUE,min:Number.MAX_VALUE,logmin:Number.MAX_VALUE,mean:null,last:null,first:null,lastNotNull:null,firstNotNull:null,count:0,nonNullCount:0,allIsNull:!0,allIsZero:!0,range:null,diff:null,delta:0,step:Number.MAX_VALUE,diffperc:0,previousDeltaUp:!0},s=e.values;a.count=s.length;const o=e.type===r.fS.number||r.fS.time;for(let e=0;e<s.length;e++){let i=s.get(e);if(0===e&&(a.first=i),a.last=i,null===i){if(t)continue;n&&(i=0)}if(null!=i){const t=null===a.firstNotNull;if(t&&(a.firstNotNull=i),o){if(a.sum+=i,a.allIsNull=!1,a.nonNullCount++,!t){const t=i-a.lastNotNull;a.step>t&&(a.step=t),a.lastNotNull>i?(a.previousDeltaUp=!1,e===s.length-1&&(a.delta+=i)):(a.previousDeltaUp?a.delta+=t:a.delta+=i,a.previousDeltaUp=!0)}i>a.max&&(a.max=i),i<a.min&&(a.min=i),i<a.logmin&&i>0&&(a.logmin=i)}0!==i&&(a.allIsZero=!1),a.lastNotNull=i}}return a.max===-Number.MAX_VALUE&&(a.max=null),a.min===Number.MAX_VALUE&&(a.min=null),a.step===Number.MAX_VALUE&&(a.step=null),a.nonNullCount>0&&(a.mean=a.sum/a.nonNullCount),a.allIsNull&&(a.allIsZero=!1),null!==a.max&&null!==a.min&&(a.range=a.max-a.min),(0,i.isNumber)(a.firstNotNull)&&(0,i.isNumber)(a.lastNotNull)&&(a.diff=a.lastNotNull-a.firstNotNull),(0,i.isNumber)(a.firstNotNull)&&(0,i.isNumber)(a.diff)&&(a.diffperc=a.diff/a.firstNotNull),a}function u(e,t,n){return{first:e.values.get(0)}}function c(e,t,n){const i=e.values;for(let e=0;e<i.length;e++){const t=i.get(e);if(null!=t&&void 0!==t)return{firstNotNull:t}}return{firstNotNull:null}}function m(e,t,n){const i=e.values;return{last:i.get(i.length-1)}}function f(e,t,n){const i=e.values;let r=i.length-1;for(;r>=0;){const e=i.get(r--);if(null!=e&&void 0!==e)return{lastNotNull:e}}return{lastNotNull:null}}function h(e,t,n){const i=e.values;let r=0,a=!0,s=null;for(let e=0;e<i.length;e++){let o=i.get(e);if(null===o){if(t)continue;n&&(o=0)}a||s===o||r++,a=!1,s=o}return{changeCount:r}}function p(e,t,n){const i=e.values,r=new Set;for(let e=0;e<i.length;e++){let a=i.get(e);if(null===a){if(t)continue;n&&(a=0)}r.add(a)}return{distinctCount:r.size}}},29843:(e,t,n)=>{n.d(t,{N:()=>l});var i=n(86208),r=n(14054);const a={id:r.mi.byType,name:"Field Type",description:"match based on the field type",defaultOptions:i.fS.number,get:e=>(t,n,i)=>e===t.type,getOptionsDisplayText:e=>`Field type: ${e}`},s={id:r.mi.numeric,name:"Numeric Fields",description:"Fields with type number",get:()=>a.get(i.fS.number),getOptionsDisplayText:()=>"Numeric Fields"},o={id:r.mi.time,name:"Time Fields",description:"Fields with type time",get:()=>a.get(i.fS.time),getOptionsDisplayText:()=>"Time Fields"};function l(){return[a,s,o]}},14054:(e,t,n)=>{let i,r,a,s;n.d(t,{E4:()=>a,Ff:()=>i,mE:()=>s,mi:()=>r}),function(e){e.anyMatch="anyMatch",e.allMatch="allMatch",e.invertMatch="invertMatch",e.alwaysMatch="alwaysMatch",e.neverMatch="neverMatch"}(i||(i={})),function(e){e.numeric="numeric",e.time="time",e.first="first",e.firstTimeField="firstTimeField",e.byType="byType",e.byName="byName",e.byNames="byNames",e.byRegexp="byRegexp",e.byRegexpOrNames="byRegexpOrNames",e.byFrameRefID="byFrameRefID"}(r||(r={})),function(e){e.byName="byName",e.byRefId="byRefId",e.byIndex="byIndex",e.byLabel="byLabel"}(a||(a={})),function(e){e.regex="regex",e.isNull="isNull",e.isNotNull="isNotNull",e.greater="greater",e.greaterOrEqual="greaterOrEqual",e.lower="lower",e.lowerOrEqual="lowerOrEqual",e.equal="equal",e.notEqual="notEqual",e.between="between"}(s||(s={}))},67490:(e,t,n)=>{n.d(t,{Qw:()=>p,Ty:()=>S,fX:()=>w,m3:()=>m});var i=n(86208),r=n(73244),a=n(14054);const s={id:a.Ff.anyMatch,name:"Any",description:"Any child matches (OR)",excludeFromPicker:!0,defaultOptions:[],get:e=>{const t=e.map((e=>(0,r.sq)(e)));return(e,n,i)=>{for(const r of t)if(r(e,n,i))return!0;return!1}},getOptionsDisplayText:e=>{let t="";for(const n of e){t.length>0&&(t+=" OR ");const e=r.Ls.get(n.id);t+=e.getOptionsDisplayText?e.getOptionsDisplayText(n):e.name}return t}},o={id:a.Ff.anyMatch,name:"Any",description:"Any child matches (OR)",excludeFromPicker:!0,defaultOptions:[],get:e=>{const t=e.map((e=>(0,r.b9)(e)));return e=>{for(const n of t)if(n(e))return!0;return!1}},getOptionsDisplayText:e=>{let t="";for(const n of e){t.length>0&&(t+=" OR ");const e=r.Ac.get(n.id);t+=e.getOptionsDisplayText?e.getOptionsDisplayText(n):e.name}return t}},l={id:a.Ff.allMatch,name:"All",description:"Everything matches (AND)",excludeFromPicker:!0,defaultOptions:[],get:e=>{const t=e.map((e=>(0,r.sq)(e)));return(e,n,i)=>{for(const r of t)if(!r(e,n,i))return!1;return!0}},getOptionsDisplayText:e=>{let t="";for(const n of e){t.length>0&&(t+=" AND ");const e=r.Ls.get(n.id);t+=e.getOptionsDisplayText?e.getOptionsDisplayText(n):e.name}return t}},d={id:a.Ff.allMatch,name:"All",description:"Everything matches (AND)",excludeFromPicker:!0,defaultOptions:[],get:e=>{const t=e.map((e=>(0,r.b9)(e)));return e=>{for(const n of t)if(!n(e))return!1;return!0}},getOptionsDisplayText:e=>{let t="";for(const n of e){t.length>0&&(t+=" AND ");const e=r.Ac.get(n.id);t+=e.getOptionsDisplayText?e.getOptionsDisplayText(n):e.name}return t}},u={id:a.Ff.invertMatch,name:"NOT",description:"Inverts other matchers",excludeFromPicker:!0,get:e=>{const t=(0,r.sq)(e);return(e,n,i)=>!t(e,n,i)},getOptionsDisplayText:e=>{const t=r.Ls.get(e.id);return"NOT "+(t.getOptionsDisplayText?t.getOptionsDisplayText(e.options):t.name)}},c={id:a.Ff.invertMatch,name:"NOT",description:"Inverts other matchers",excludeFromPicker:!0,get:e=>{const t=(0,r.b9)(e);return e=>!t(e)},getOptionsDisplayText:e=>{const t=r.Ac.get(e.id);return"NOT "+(t.getOptionsDisplayText?t.getOptionsDisplayText(e.options):t.name)}},m=e=>!0,f=e=>!0,h=e=>!1,p=e=>e.type!==i.fS.time,g=e=>!1,b={id:a.Ff.alwaysMatch,name:"All Fields",description:"Always Match",get:e=>m,getOptionsDisplayText:e=>"Always"},y={id:a.Ff.alwaysMatch,name:"All Frames",description:"Always Match",get:e=>f,getOptionsDisplayText:e=>"Always"},v={id:a.Ff.neverMatch,name:"No Fields",description:"Never Match",excludeFromPicker:!0,get:e=>h,getOptionsDisplayText:e=>"Never"},x={id:a.Ff.neverMatch,name:"No Frames",description:"Never Match",get:e=>g,getOptionsDisplayText:e=>"Never"};function S(){return[s,l,u,b,v]}function w(){return[o,d,c,y,x]}},91435:(e,t,n)=>{n.d(t,{n:()=>a});var i=n(29787);const r={id:n(14054).E4.byRefId,name:"Query refId",description:"match the refId",defaultOptions:"A",get:e=>{const t=(0,i.jO)(e);return e=>t.test(e.refId||"")},getOptionsDisplayText:e=>`RefID: ${e}`};function a(){return[r]}},13387:(e,t,n)=>{n.d(t,{z:()=>o});var i=n(86208),r=n(14054);const a={id:r.mi.first,name:"First Field",description:"The first field in the frame",get:e=>(e,t,n)=>e===t.fields[0],getOptionsDisplayText:()=>"First field"},s={id:r.mi.firstTimeField,name:"First time field",description:"The first field of type time in a frame",get:e=>(e,t,n)=>e.type===i.fS.time&&e===t.fields.find((e=>e.type===i.fS.time)),getOptionsDisplayText:()=>"First time field"};function o(){return[a,s]}},14716:(e,t,n)=>{n.d(t,{T:()=>s});var i=n(14054);const r={id:i.mE.equal,name:"Is equal",description:"Match where value for given field is equal to options value.",get:e=>(t,n)=>n.values.get(t)==e.value,getOptionsDisplayText:()=>"Matches all rows where field is null.",isApplicable:()=>!0,getDefaultOptions:()=>({value:""})},a={id:i.mE.notEqual,name:"Is not equal",description:"Match where value for given field is not equal to options value.",get:e=>(t,n)=>n.values.get(t)!=e.value,getOptionsDisplayText:()=>"Matches all rows where field is not null.",isApplicable:()=>!0,getDefaultOptions:()=>({value:""})},s=()=>[r,a]},84230:(e,t,n)=>{n.d(t,{a:()=>s});var i=n(14054);const r={id:i.mE.isNull,name:"Is null",description:"Match where value for given field is null.",get:()=>(e,t)=>null==t.values.get(e),getOptionsDisplayText:()=>"Matches all rows where field is null.",isApplicable:()=>!0,getDefaultOptions:()=>({})},a={id:i.mE.isNotNull,name:"Is not null",description:"Match where value for given field is not null.",get:()=>(e,t)=>null!=t.values.get(e),getOptionsDisplayText:()=>"Matches all rows where field is not null.",isApplicable:()=>!0,getDefaultOptions:()=>({})},s=()=>[r,a]},49397:(e,t,n)=>{n.d(t,{H:()=>d});var i=n(86208),r=n(14054);const a={id:r.mE.greater,name:"Is greater",description:"Match when field value is greater than option.",get:e=>(t,n)=>{const i=n.values.get(t);return!isNaN(i)&&i>e.value},getOptionsDisplayText:e=>`Matches all rows where field value is greater than: ${e.value}.`,isApplicable:e=>e.type===i.fS.number,getDefaultOptions:()=>({value:0})},s={id:r.mE.greaterOrEqual,name:"Is greater or equal",description:"Match when field value is greater than or equal to option.",get:e=>(t,n)=>{const i=n.values.get(t);return!isNaN(i)&&i>=e.value},getOptionsDisplayText:e=>`Matches all rows where field value is greater than or equal to: ${e.value}.`,isApplicable:e=>e.type===i.fS.number,getDefaultOptions:()=>({value:0})},o={id:r.mE.lower,name:"Is lower",description:"Match when field value is lower than option.",get:e=>(t,n)=>{const i=n.values.get(t);return!isNaN(i)&&i<e.value},getOptionsDisplayText:e=>`Matches all rows where field value is lower than: ${e.value}.`,isApplicable:e=>e.type===i.fS.number,getDefaultOptions:()=>({value:0})},l={id:r.mE.lowerOrEqual,name:"Is lower or equal",description:"Match when field value is lower or equal than option.",get:e=>(t,n)=>{const i=n.values.get(t);return!isNaN(i)&&i<=e.value},getOptionsDisplayText:e=>`Matches all rows where field value is lower or equal than: ${e.value}.`,isApplicable:e=>e.type===i.fS.number,getDefaultOptions:()=>({value:0})},d=()=>[a,s,o,l]},25876:(e,t,n)=>{n.d(t,{G:()=>a});var i=n(86208);const r={id:n(14054).mE.between,name:"Is between",description:"Match when field value is between given option values.",get:e=>(t,n)=>{const i=n.values.get(t);return!isNaN(i)&&(i>e.from&&i<e.to)},getOptionsDisplayText:e=>`Matches all rows where field value is between ${e.from} and ${e.to}.`,isApplicable:e=>e.type===i.fS.number,getDefaultOptions:()=>({from:0,to:100})},a=()=>[r]},34393:(e,t,n)=>{n.d(t,{G:()=>r});const i={id:n(14054).mE.regex,name:"Regex",description:"Match when field value is matching regex.",get:e=>{const t=new RegExp(e.value);return(e,n)=>{const i=n.values.get(e);return t.test(i)}},getOptionsDisplayText:e=>`Matches all rows where field value is matching regex: ${e.value}`,isApplicable:()=>!0,getDefaultOptions:()=>({value:".*"})},r=()=>[i]},70513:(e,t,n)=>{n.d(t,{W:()=>o});var i=n(10010),r=n(39056),a=n(90),s=n(52223);const o={id:a.W.ensureColumns,name:"Ensure Columns Transformer",description:"Will check if current data frames is series or columns. If in series it will convert to columns.",operator:e=>t=>t.pipe((0,i.U)((t=>o.transformer(e)(t)))),transformer:e=>e=>{const t=function(e){let t;for(const n of e){const{timeField:e}=(0,r.sV)(n);if(!e)return;if(t){if(t!==e.name)return}else t=e.name}return t}(e);return e.length>1&&t?s.u.transformer({byField:t})(e):e}}},13930:(e,t,n)=>{n.d(t,{P:()=>o,u:()=>l});var i=n(10010),r=n(73244),a=n(90),s=n(813);const o={id:a.W.filterFields,name:"Filter Fields",description:"select a subset of fields",defaultOptions:{},operator:e=>t=>e.include||e.exclude?t.pipe((0,i.U)((t=>{const n=e.include?(0,r.sq)(e.include):null,i=e.exclude?(0,r.sq)(e.exclude):null,a=[];for(const e of t){const r=[];for(let a=0;a<e.fields.length;a++){const s=e.fields[a];if(i){if(i(s,e,t))continue;n||r.push(s)}n&&n(s,e,t)&&r.push(s)}if(!r.length)continue;const s=Object.assign({},e,{fields:r});a.push(s)}return a}))):t.pipe(s.d.operator({}))},l={id:a.W.filterFrames,name:"Filter Frames",description:"select a subset of frames",defaultOptions:{},operator:e=>t=>e.include||e.exclude?t.pipe((0,i.U)((t=>{const n=e.include?(0,r.b9)(e.include):null,i=e.exclude?(0,r.b9)(e.exclude):null,a=[];for(const e of t){if(i){if(i(e))continue;n||a.push(e)}n&&n(e)&&a.push(e)}return a}))):t.pipe(s.d.operator({}))}},78117:(e,t,n)=>{n.d(t,{w:()=>a});var i=n(14054),r=n(13930);const a={id:n(90).W.filterFieldsByName,name:"Filter fields by name",description:"select a subset of fields",defaultOptions:{},operator:e=>t=>t.pipe(r.P.operator({include:s(e.include),exclude:s(e.exclude)}))},s=e=>{if(!e)return;const{names:t,pattern:n}=e;return Array.isArray(t)&&0!==t.length||n?n?Array.isArray(t)&&0!==t.length?{id:i.mi.byRegexpOrNames,options:e}:{id:i.mi.byRegexp,options:n}:{id:i.mi.byNames,options:{names:t}}:void 0}},48901:(e,t,n)=>{n.d(t,{J:()=>a});var i=n(14054),r=n(13930);const a={id:n(90).W.filterByRefId,name:"Filter data by query refId",description:"select a subset of results",defaultOptions:{},operator:e=>t=>{const n={};return e.include&&(n.include={id:i.E4.byRefId,options:e.include}),e.exclude&&(n.exclude={id:i.E4.byRefId,options:e.exclude}),t.pipe(r.u.operator(n))}}},90:(e,t,n)=>{let i;n.d(t,{W:()=>i}),function(e){e.append="append",e.reduce="reduce",e.order="order",e.organize="organize",e.rename="rename",e.calculateField="calculateField",e.seriesToColumns="seriesToColumns",e.seriesToRows="seriesToRows",e.merge="merge",e.concatenate="concatenate",e.labelsToFields="labelsToFields",e.filterFields="filterFields",e.filterFieldsByName="filterFieldsByName",e.filterFrames="filterFrames",e.filterByRefId="filterByRefId",e.renameByRegex="renameByRegex",e.filterByValue="filterByValue",e.noop="noop",e.ensureColumns="ensureColumns",e.groupBy="groupBy",e.sortBy="sortBy",e.histogram="histogram",e.configFromData="configFromData",e.rowsToFields="rowsToFields",e.prepareTimeSeries="prepareTimeSeries",e.convertFieldType="convertFieldType",e.fieldLookup="fieldLookup",e.heatmap="heatmap",e.spatial="spatial",e.extractFields="extractFields",e.groupingToMatrix="groupingToMatrix"}(i||(i={}))},58988:(e,t,n)=>{n.d(t,{R:()=>o});var i=n(82897),r=n(10010),a=n(64421),s=n(23569);const o={id:n(90).W.merge,name:"Merge series/tables",description:"Merges multiple series/tables into a single serie/table",defaultOptions:{},operator:e=>e=>e.pipe((0,r.U)((e=>{if(!Array.isArray(e)||e.length<=1)return e;const t=e.filter((e=>e.fields.length>0));if(0===t.length)return[e[0]];const n=new Set,i={},r=[],s=new a.vA;for(let e=0;e<t.length;e++){const a=t[e];for(let o=0;o<a.fields.length;o++){const d=a.fields[o];n.has(d.name)||(s.addField(l(d)),n.add(d.name)),i[d.name]=i[d.name]||{},i[d.name][e]=o,t.length-1===e&&(m(i,d,t)&&r.push(d.name))}}if(0===r.length)return e;const o={},h=[],p=d(t,i,r),g=u(t,n,i);for(let e=0;e<t.length;e++){const n=t[e];for(let t=0;t<n.length;t++){const n=p(e,t),i=g(e,t);if(!Array.isArray(o[n])){o[n]=[i],h.push(f(n,o));continue}let r=!1;o[n]=o[n].map((e=>c(e,i)?(r=!0,Object.assign({},e,i)):e)),r||(o[n].push(i),h.push(f(n,o)))}}for(const e of h){const t=o[e.key][e.index];t&&s.add(t)}return[s]})))},l=e=>Object.assign({},(0,i.omit)(e,["values","state","labels","config"]),{values:new s.G,config:Object.assign({},(0,i.omit)(e.config,"displayName"))}),d=(e,t,n)=>{const i=n.reduce(((e,n)=>Object.keys(t[n]).reduce(((e,i)=>(e[i]=e[i]||[],e[i].push(t[n][i]),e)),e)),{});return(t,n)=>i[t].reduce(((i,r)=>i+e[t].fields[r].values.get(n)),"")},u=(e,t,n)=>(i,r)=>{const a={},s=Array.from(t);for(const t of s){const s=n[t];if(!s)continue;const o=s[i];if("number"!=typeof o)continue;const l=e[i];if(!l||!l.fields)continue;const d=l.fields[o];d&&d.values&&(a[t]=d.values.get(r))}return a},c=(e,t)=>{let n=!0;for(const i in t)if(void 0!==e[i]&&null!==e[i]&&e[i]!==t[i]){n=!1;break}return n},m=(e,t,n)=>Object.keys(e[t.name]).length===n.length,f=(e,t)=>({key:e,index:t[e].length-1})},813:(e,t,n)=>{n.d(t,{d:()=>i});const i={id:n(90).W.noop,name:"noop",description:"No-operation transformer",defaultOptions:{},operator:e=>e=>e}},16975:(e,t,n)=>{n.d(t,{u:()=>o});var i=n(78117),r=n(90),a=n(64073),s=n(94749);const o={id:r.W.organize,name:"Organize fields by name",description:"Order, filter and rename fields based on configuration given by user",defaultOptions:{excludeByName:{},indexByName:{},renameByName:{}},operator:e=>t=>t.pipe(i.w.operator({exclude:{names:l(e.excludeByName)}}),a.t.operator(e),s.M.operator(e))},l=e=>e?Object.keys(e).filter((t=>e[t])):[]},94749:(e,t,n)=>{n.d(t,{M:()=>a});var i=n(10010),r=n(65407);const a={id:n(90).W.rename,name:"Rename fields by name",description:"Rename fields based on configuration given by user",defaultOptions:{renameByName:{}},operator:e=>t=>t.pipe((0,i.U)((t=>{const n=s(e.renameByName);return Array.isArray(t)&&0!==t.length?t.map((e=>Object.assign({},e,{fields:n(e)}))):t})))},s=e=>t=>e&&0!==Object.keys(e).length?t.fields.map((n=>{const i=(0,r.C)(n,t),a=e[i];return"string"!=typeof a||0===a.length?n:Object.assign({},n,{config:Object.assign({},n.config,{displayName:a}),state:Object.assign({},n.state,{displayName:a})})})):t.fields},52223:(e,t,n)=>{n.d(t,{u:()=>l});var i=n(10010),r=n(73244),a=n(14054),s=n(90),o=n(76714);const l={id:s.W.seriesToColumns,name:"Series as columns",description:"Groups series by field and returns values as columns",defaultOptions:{byField:void 0},operator:e=>t=>t.pipe((0,i.U)((t=>l.transformer(e)(t)))),transformer:e=>{let t;return n=>{if(n.length>1){e.byField&&!t&&(t=r.Ls.get(a.mi.byName).get(e.byField));const i=(0,o.JP)({frames:n,joinBy:t});if(i)return[i]}return n}}}},7029:(e,t,n)=>{n.d(t,{D:()=>u});var i=n(82897),r=n(10010),a=n(64421),s=n(79004),o=n(65407),l=n(86208),d=n(15449);const u={id:n(90).W.seriesToRows,name:"Series to rows",description:"Combines multiple series into a single serie and appends a column with metric name per value.",defaultOptions:{},operator:e=>e=>e.pipe((0,r.U)((e=>{if(!Array.isArray(e)||e.length<=1)return e;if(!(0,s.hZ)(e))return e;const t={},n=new Set,i=new a.vA,r={name:l.rN,values:new d.Gt,config:{},type:l.fS.string};for(let a=0;a<e.length;a++){const s=e[a];for(let e=0;e<s.fields.length;e++){const o=s.fields[e];o.type!==l.fS.time?n.has(l.M5)||(i.addField(c(o,l.M5)),n.add(l.M5)):(t[a]=e,n.has(l.Ls)||(i.addField(c(o,l.Ls)),i.addField(r),n.add(l.Ls)))}}for(let n=0;n<e.length;n++){const r=e[n];for(let e=0;e<r.length;e++){const a=t[n],s=0===a?1:0;i.add({[l.Ls]:r.fields[a].values.get(e),[l.rN]:(0,o.n)(r),[l.M5]:r.fields[s].values.get(e)})}}return[(0,a.aK)(i,0,!0)]})))},c=(e,t)=>Object.assign({},(0,i.omit)(e,["values","state","labels","config","name"]),{name:t,values:new d.Gt,config:Object.assign({},(0,i.omit)(e.config,["displayName","displayNameFromDS"]))})},51222:(e,t,n)=>{n.d(t,{t:()=>s});var i=n(10010),r=n(64421),a=n(22754);const s={id:n(90).W.sortBy,name:"Sort by",description:"Sort fields in a frame",defaultOptions:{fields:{}},operator:e=>t=>t.pipe((0,i.U)((t=>{var n;return Array.isArray(t)&&0!==t.length&&null!=e&&null!==(n=e.sort)&&void 0!==n&&n.length?function(e,t){return e.map((e=>{const n=function(e,t){return t.map((t=>null!=t.index?t:Object.assign({},t,{index:e.fields.findIndex((n=>t.field===(0,a.CZ)(n,e)))})))}(e,t);return n.length&&null!=n[0].index?(0,r.aK)(e,n[0].index,n[0].desc):e}))}(t,e.sort):t})))}},86208:(e,t,n)=>{let i;n.d(t,{Ls:()=>a,M5:()=>r,fS:()=>i,rN:()=>s}),function(e){e.time="time",e.number="number",e.string="string",e.boolean="boolean",e.trace="trace",e.geo="geo",e.other="other"}(i||(i={}));const r="Value",a="Time",s="Metric"},11926:(e,t,n)=>{let i;n.d(t,{R:()=>r,S:()=>i}),function(e){e.Thresholds="thresholds",e.PaletteClassic="palette-classic",e.PaletteSaturated="palette-saturated",e.ContinuousGrYlRd="continuous-GrYlRd",e.Fixed="fixed"}(i||(i={}));const r="gray"},95390:(e,t,n)=>{let i;n.d(t,{Q:()=>i}),function(e){e.Light="light",e.Dark="dark"}(i||(i={}))},60419:(e,t,n)=>{let i;n.d(t,{H:()=>i}),function(e){e.Absolute="absolute",e.Percentage="percentage"}(i||(i={}))},70709:(e,t,n)=>{let i,r;n.d(t,{H:()=>i,e:()=>r}),function(e){e.ValueToText="value",e.RangeToText="range",e.RegexToText="regex",e.SpecialValue="special"}(i||(i={})),function(e){e.True="true",e.False="false",e.Null="null",e.NaN="nan",e.NullAndNaN="null+nan",e.Empty="empty"}(r||(r={}))},94956:(e,t,n)=>{n.d(t,{B:()=>a});var i=n(78689);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a{constructor(e){r(this,"ordered",[]),r(this,"byId",new Map),r(this,"initialized",!1),r(this,"setInit",(e=>{if(this.initialized)throw new Error("Registry already initialized");this.init=e})),this.init=e}getIfExists(e){if(this.initialized||this.initialize(),e)return this.byId.get(e)}initialize(){if(this.init)for(const e of this.init())this.register(e);this.sort(),this.initialized=!0}get(e){const t=this.getIfExists(e);if(!t)throw new Error(`"${e}" not found in: ${this.list().map((e=>e.id))}`);return t}selectOptions(e,t){this.initialized||this.initialize();const n={options:[],current:[]},r={};if(e)for(const t of e)r[t]={};for(const e of this.ordered){if(e.excludeFromPicker)continue;if(t&&!t(e))continue;const a={value:e.id,label:e.name,description:e.description};e.state===i.BV.alpha&&(a.label+=" (alpha)"),n.options.push(a),r[e.id]&&(r[e.id]=a)}return e&&(n.current=Object.values(r)),n}list(e){if(this.initialized||this.initialize(),e){const t=[];for(const n of e){const e=this.getIfExists(n);e&&t.push(e)}return t}return this.ordered}isEmpty(){return this.initialized||this.initialize(),0===this.ordered.length}register(e){if(this.byId.has(e.id))throw new Error("Duplicate Key:"+e.id);if(this.byId.set(e.id,e),this.ordered.push(e),e.aliasIds)for(const t of e.aliasIds)this.byId.has(t)||this.byId.set(t,e);this.initialized&&this.sort()}sort(){}}},11449:(e,t,n)=>{n.d(t,{I:()=>r});var i=n(82897);function r(e){return"number"==typeof e?e:""===e||null==e||Array.isArray(e)?NaN:"boolean"==typeof e?e?1:0:(0,i.toNumber)(e)}},27002:(e,t,n)=>{n.d(t,{L:()=>r,n:()=>a});var i=n(94956);let r;!function(e){e.Add="+",e.Subtract="-",e.Divide="/",e.Multiply="*"}(r||(r={}));const a=new i.B((()=>[{id:r.Add,name:"Add",operation:(e,t)=>e+t},{id:r.Subtract,name:"Subtract",operation:(e,t)=>e-t},{id:r.Multiply,name:"Multiply",operation:(e,t)=>e*t},{id:r.Divide,name:"Divide",operation:(e,t)=>e/t}]))},95714:(e,t,n)=>{n.d(t,{d:()=>a});var i=n(39056),r=n(86208);function a(e,t){return t.type||("time"===t.name||"Time"===t.name?t.type=r.fS.time:t.type=(0,i.LI)(e)),t.type===r.fS.number?e=>parseFloat(e):t.type===r.fS.boolean?e=>!("F"===e[0]||"f"===e[0]||"0"===e[0]):e=>e}},44991:(e,t,n)=>{function i(e){return new Proxy(e,{apply:(e,t,n)=>("undefined"!=typeof Reflect&&Reflect.construct||alert("Browser is too old"),Reflect.construct(e,n,t.constructor))})}n.d(t,{s:()=>i})},41717:(e,t,n)=>{n.d(t,{C:()=>c});var i=n(51130);function r(e,t){return null===e?{text:""}:{text:(0,i.FH)(e,t),suffix:"%"}}function a(e,t){return null===e?{text:""}:{text:(0,i.FH)(100*e,t),suffix:"%"}}function s(e,t){if(null==e)return{text:""};const n=o(e,t);return"-"===n.text.substring(0,1)?n.text="-0x"+n.text.substring(1):n.text="0x"+n.text,n}function o(e,t){return null==e?{text:""}:{text:parseFloat((0,i.FH)(e,t)).toString(16).toUpperCase()}}function l(e,t){return null==e?{text:""}:{text:e.toExponential(t)}}var d=n(60915),u=n(67670);const c=()=>[{name:"Misc",formats:[{name:"Number",id:"none",fn:(0,i.q2)("")},{name:"String",id:"string",fn:i.vb},{name:"short",id:"short",fn:(0,i.Qj)(1e3,[""," K"," Mil"," Bil"," Tri"," Quadr"," Quint"," Sext"," Sept"])},{name:"Percent (0-100)",id:"percent",fn:r},{name:"Percent (0.0-1.0)",id:"percentunit",fn:a},{name:"Humidity (%H)",id:"humidity",fn:(0,i.q2)("%H")},{name:"Decibel",id:"dB",fn:(0,i.q2)("dB")},{name:"Hexadecimal (0x)",id:"hex0x",fn:s},{name:"Hexadecimal",id:"hex",fn:o},{name:"Scientific notation",id:"sci",fn:l},{name:"Locale format",id:"locale",fn:i.SP},{name:"Pixels",id:"pixel",fn:(0,i.q2)("px")}]},{name:"Acceleration",formats:[{name:"Meters/sec²",id:"accMS2",fn:(0,i.q2)("m/sec²")},{name:"Feet/sec²",id:"accFS2",fn:(0,i.q2)("f/sec²")},{name:"G unit",id:"accG",fn:(0,i.q2)("g")}]},{name:"Angle",formats:[{name:"Degrees (°)",id:"degree",fn:(0,i.q2)("°")},{name:"Radians",id:"radian",fn:(0,i.q2)("rad")},{name:"Gradian",id:"grad",fn:(0,i.q2)("grad")},{name:"Arc Minutes",id:"arcmin",fn:(0,i.q2)("arcmin")},{name:"Arc Seconds",id:"arcsec",fn:(0,i.q2)("arcsec")}]},{name:"Area",formats:[{name:"Square Meters (m²)",id:"areaM2",fn:(0,i.q2)("m²")},{name:"Square Feet (ft²)",id:"areaF2",fn:(0,i.q2)("ft²")},{name:"Square Miles (mi²)",id:"areaMI2",fn:(0,i.q2)("mi²")}]},{name:"Computation",formats:[{name:"FLOP/s",id:"flops",fn:(0,u.i7)("FLOPS")},{name:"MFLOP/s",id:"mflops",fn:(0,u.i7)("FLOPS",2)},{name:"GFLOP/s",id:"gflops",fn:(0,u.i7)("FLOPS",3)},{name:"TFLOP/s",id:"tflops",fn:(0,u.i7)("FLOPS",4)},{name:"PFLOP/s",id:"pflops",fn:(0,u.i7)("FLOPS",5)},{name:"EFLOP/s",id:"eflops",fn:(0,u.i7)("FLOPS",6)},{name:"ZFLOP/s",id:"zflops",fn:(0,u.i7)("FLOPS",7)},{name:"YFLOP/s",id:"yflops",fn:(0,u.i7)("FLOPS",8)}]},{name:"Concentration",formats:[{name:"parts-per-million (ppm)",id:"ppm",fn:(0,i.q2)("ppm")},{name:"parts-per-billion (ppb)",id:"conppb",fn:(0,i.q2)("ppb")},{name:"nanogram per cubic meter (ng/m³)",id:"conngm3",fn:(0,i.q2)("ng/m³")},{name:"nanogram per normal cubic meter (ng/Nm³)",id:"conngNm3",fn:(0,i.q2)("ng/Nm³")},{name:"microgram per cubic meter (μg/m³)",id:"conμgm3",fn:(0,i.q2)("μg/m³")},{name:"microgram per normal cubic meter (μg/Nm³)",id:"conμgNm3",fn:(0,i.q2)("μg/Nm³")},{name:"milligram per cubic meter (mg/m³)",id:"conmgm3",fn:(0,i.q2)("mg/m³")},{name:"milligram per normal cubic meter (mg/Nm³)",id:"conmgNm3",fn:(0,i.q2)("mg/Nm³")},{name:"gram per cubic meter (g/m³)",id:"congm3",fn:(0,i.q2)("g/m³")},{name:"gram per normal cubic meter (g/Nm³)",id:"congNm3",fn:(0,i.q2)("g/Nm³")},{name:"milligrams per decilitre (mg/dL)",id:"conmgdL",fn:(0,i.q2)("mg/dL")},{name:"millimoles per litre (mmol/L)",id:"conmmolL",fn:(0,i.q2)("mmol/L")}]},{name:"Currency",formats:[{name:"Dollars ($)",id:"currencyUSD",fn:(0,u.Aq)("$")},{name:"Pounds (£)",id:"currencyGBP",fn:(0,u.Aq)("£")},{name:"Euro (€)",id:"currencyEUR",fn:(0,u.Aq)("€")},{name:"Yen (¥)",id:"currencyJPY",fn:(0,u.Aq)("¥")},{name:"Rubles (₽)",id:"currencyRUB",fn:(0,u.Aq)("₽")},{name:"Hryvnias (₴)",id:"currencyUAH",fn:(0,u.Aq)("₴")},{name:"Real (R$)",id:"currencyBRL",fn:(0,u.Aq)("R$")},{name:"Danish Krone (kr)",id:"currencyDKK",fn:(0,u.Aq)("kr",!0)},{name:"Icelandic Króna (kr)",id:"currencyISK",fn:(0,u.Aq)("kr",!0)},{name:"Norwegian Krone (kr)",id:"currencyNOK",fn:(0,u.Aq)("kr",!0)},{name:"Swedish Krona (kr)",id:"currencySEK",fn:(0,u.Aq)("kr",!0)},{name:"Czech koruna (czk)",id:"currencyCZK",fn:(0,u.Aq)("czk")},{name:"Swiss franc (CHF)",id:"currencyCHF",fn:(0,u.Aq)("CHF")},{name:"Polish Złoty (PLN)",id:"currencyPLN",fn:(0,u.Aq)("PLN")},{name:"Bitcoin (฿)",id:"currencyBTC",fn:(0,u.Aq)("฿")},{name:"Milli Bitcoin (฿)",id:"currencymBTC",fn:(0,u.Aq)("mBTC")},{name:"Micro Bitcoin (฿)",id:"currencyμBTC",fn:(0,u.Aq)("μBTC")},{name:"South African Rand (R)",id:"currencyZAR",fn:(0,u.Aq)("R")},{name:"Indian Rupee (₹)",id:"currencyINR",fn:(0,u.Aq)("₹")},{name:"South Korean Won (₩)",id:"currencyKRW",fn:(0,u.Aq)("₩")},{name:"Indonesian Rupiah (Rp)",id:"currencyIDR",fn:(0,u.Aq)("Rp")},{name:"Philippine Peso (PHP)",id:"currencyPHP",fn:(0,u.Aq)("PHP")},{name:"Vietnamese Dong (VND)",id:"currencyVND",fn:(0,u.Aq)("đ",!0)}]},{name:"Data",formats:[{name:"bytes(IEC)",id:"bytes",fn:(0,u.Yh)("B")},{name:"bytes(SI)",id:"decbytes",fn:(0,u.i7)("B")},{name:"bits(IEC)",id:"bits",fn:(0,u.Yh)("b")},{name:"bits(SI)",id:"decbits",fn:(0,u.i7)("b")},{name:"kibibytes",id:"kbytes",fn:(0,u.Yh)("B",1)},{name:"kilobytes",id:"deckbytes",fn:(0,u.i7)("B",1)},{name:"mebibytes",id:"mbytes",fn:(0,u.Yh)("B",2)},{name:"megabytes",id:"decmbytes",fn:(0,u.i7)("B",2)},{name:"gibibytes",id:"gbytes",fn:(0,u.Yh)("B",3)},{name:"gigabytes",id:"decgbytes",fn:(0,u.i7)("B",3)},{name:"tebibytes",id:"tbytes",fn:(0,u.Yh)("B",4)},{name:"terabytes",id:"dectbytes",fn:(0,u.i7)("B",4)},{name:"pebibytes",id:"pbytes",fn:(0,u.Yh)("B",5)},{name:"petabytes",id:"decpbytes",fn:(0,u.i7)("B",5)}]},{name:"Data rate",formats:[{name:"packets/sec",id:"pps",fn:(0,u.i7)("p/s")},{name:"bytes/sec(IEC)",id:"binBps",fn:(0,u.Yh)("B/s")},{name:"bytes/sec(SI)",id:"Bps",fn:(0,u.i7)("B/s")},{name:"bits/sec(IEC)",id:"binbps",fn:(0,u.Yh)("b/s")},{name:"bits/sec(SI)",id:"bps",fn:(0,u.i7)("b/s")},{name:"kibibytes/sec",id:"KiBs",fn:(0,u.Yh)("B/s",1)},{name:"kibibits/sec",id:"Kibits",fn:(0,u.Yh)("b/s",1)},{name:"kilobytes/sec",id:"KBs",fn:(0,u.i7)("B/s",1)},{name:"kilobits/sec",id:"Kbits",fn:(0,u.i7)("b/s",1)},{name:"mebibytes/sec",id:"MiBs",fn:(0,u.Yh)("B/s",2)},{name:"mebibits/sec",id:"Mibits",fn:(0,u.Yh)("b/s",2)},{name:"megabytes/sec",id:"MBs",fn:(0,u.i7)("B/s",2)},{name:"megabits/sec",id:"Mbits",fn:(0,u.i7)("b/s",2)},{name:"gibibytes/sec",id:"GiBs",fn:(0,u.Yh)("B/s",3)},{name:"gibibits/sec",id:"Gibits",fn:(0,u.Yh)("b/s",3)},{name:"gigabytes/sec",id:"GBs",fn:(0,u.i7)("B/s",3)},{name:"gigabits/sec",id:"Gbits",fn:(0,u.i7)("b/s",3)},{name:"tebibytes/sec",id:"TiBs",fn:(0,u.Yh)("B/s",4)},{name:"tebibits/sec",id:"Tibits",fn:(0,u.Yh)("b/s",4)},{name:"terabytes/sec",id:"TBs",fn:(0,u.i7)("B/s",4)},{name:"terabits/sec",id:"Tbits",fn:(0,u.i7)("b/s",4)},{name:"pebibytes/sec",id:"PiBs",fn:(0,u.Yh)("B/s",5)},{name:"pebibits/sec",id:"Pibits",fn:(0,u.Yh)("b/s",5)},{name:"petabytes/sec",id:"PBs",fn:(0,u.i7)("B/s",5)},{name:"petabits/sec",id:"Pbits",fn:(0,u.i7)("b/s",5)}]},{name:"Date & time",formats:[{name:"Datetime ISO",id:"dateTimeAsIso",fn:d.Qm},{name:"Datetime ISO (No date if today)",id:"dateTimeAsIsoNoDateIfToday",fn:d.QO},{name:"Datetime US",id:"dateTimeAsUS",fn:d.DW},{name:"Datetime US (No date if today)",id:"dateTimeAsUSNoDateIfToday",fn:d.y},{name:"Datetime local",id:"dateTimeAsLocal",fn:(0,d.VS)()},{name:"Datetime local (No date if today)",id:"dateTimeAsLocalNoDateIfToday",fn:(0,d.rV)()},{name:"Datetime default",id:"dateTimeAsSystem",fn:d.Hr},{name:"From Now",id:"dateTimeFromNow",fn:d.Xg}]},{name:"Energy",formats:[{name:"Watt (W)",id:"watt",fn:(0,u.i7)("W")},{name:"Kilowatt (kW)",id:"kwatt",fn:(0,u.i7)("W",1)},{name:"Megawatt (MW)",id:"megwatt",fn:(0,u.i7)("W",2)},{name:"Gigawatt (GW)",id:"gwatt",fn:(0,u.i7)("W",3)},{name:"Milliwatt (mW)",id:"mwatt",fn:(0,u.i7)("W",-1)},{name:"Watt per square meter (W/m²)",id:"Wm2",fn:(0,i.q2)("W/m²")},{name:"Volt-Ampere (VA)",id:"voltamp",fn:(0,u.i7)("VA")},{name:"Kilovolt-Ampere (kVA)",id:"kvoltamp",fn:(0,u.i7)("VA",1)},{name:"Volt-Ampere reactive (VAr)",id:"voltampreact",fn:(0,u.i7)("VAr")},{name:"Kilovolt-Ampere reactive (kVAr)",id:"kvoltampreact",fn:(0,u.i7)("VAr",1)},{name:"Watt-hour (Wh)",id:"watth",fn:(0,u.i7)("Wh")},{name:"Watt-hour per Kilogram (Wh/kg)",id:"watthperkg",fn:(0,u.i7)("Wh/kg")},{name:"Kilowatt-hour (kWh)",id:"kwatth",fn:(0,u.i7)("Wh",1)},{name:"Kilowatt-min (kWm)",id:"kwattm",fn:(0,u.i7)("W-Min",1)},{name:"Ampere-hour (Ah)",id:"amph",fn:(0,u.i7)("Ah")},{name:"Kiloampere-hour (kAh)",id:"kamph",fn:(0,u.i7)("Ah",1)},{name:"Milliampere-hour (mAh)",id:"mamph",fn:(0,u.i7)("Ah",-1)},{name:"Joule (J)",id:"joule",fn:(0,u.i7)("J")},{name:"Electron volt (eV)",id:"ev",fn:(0,u.i7)("eV")},{name:"Ampere (A)",id:"amp",fn:(0,u.i7)("A")},{name:"Kiloampere (kA)",id:"kamp",fn:(0,u.i7)("A",1)},{name:"Milliampere (mA)",id:"mamp",fn:(0,u.i7)("A",-1)},{name:"Volt (V)",id:"volt",fn:(0,u.i7)("V")},{name:"Kilovolt (kV)",id:"kvolt",fn:(0,u.i7)("V",1)},{name:"Millivolt (mV)",id:"mvolt",fn:(0,u.i7)("V",-1)},{name:"Decibel-milliwatt (dBm)",id:"dBm",fn:(0,u.i7)("dBm")},{name:"Ohm (Ω)",id:"ohm",fn:(0,u.i7)("Ω")},{name:"Kiloohm (kΩ)",id:"kohm",fn:(0,u.i7)("Ω",1)},{name:"Megaohm (MΩ)",id:"Mohm",fn:(0,u.i7)("Ω",2)},{name:"Farad (F)",id:"farad",fn:(0,u.i7)("F")},{name:"Microfarad (µF)",id:"µfarad",fn:(0,u.i7)("F",-2)},{name:"Nanofarad (nF)",id:"nfarad",fn:(0,u.i7)("F",-3)},{name:"Picofarad (pF)",id:"pfarad",fn:(0,u.i7)("F",-4)},{name:"Femtofarad (fF)",id:"ffarad",fn:(0,u.i7)("F",-5)},{name:"Henry (H)",id:"henry",fn:(0,u.i7)("H")},{name:"Millihenry (mH)",id:"mhenry",fn:(0,u.i7)("H",-1)},{name:"Microhenry (µH)",id:"µhenry",fn:(0,u.i7)("H",-2)},{name:"Lumens (Lm)",id:"lumens",fn:(0,u.i7)("Lm")}]},{name:"Flow",formats:[{name:"Gallons/min (gpm)",id:"flowgpm",fn:(0,i.q2)("gpm")},{name:"Cubic meters/sec (cms)",id:"flowcms",fn:(0,i.q2)("cms")},{name:"Cubic feet/sec (cfs)",id:"flowcfs",fn:(0,i.q2)("cfs")},{name:"Cubic feet/min (cfm)",id:"flowcfm",fn:(0,i.q2)("cfm")},{name:"Litre/hour",id:"litreh",fn:(0,i.q2)("L/h")},{name:"Litre/min (L/min)",id:"flowlpm",fn:(0,i.q2)("L/min")},{name:"milliLitre/min (mL/min)",id:"flowmlpm",fn:(0,i.q2)("mL/min")},{name:"Lux (lx)",id:"lux",fn:(0,i.q2)("lux")}]},{name:"Force",formats:[{name:"Newton-meters (Nm)",id:"forceNm",fn:(0,u.i7)("Nm")},{name:"Kilonewton-meters (kNm)",id:"forcekNm",fn:(0,u.i7)("Nm",1)},{name:"Newtons (N)",id:"forceN",fn:(0,u.i7)("N")},{name:"Kilonewtons (kN)",id:"forcekN",fn:(0,u.i7)("N",1)}]},{name:"Hash rate",formats:[{name:"hashes/sec",id:"Hs",fn:(0,u.i7)("H/s")},{name:"kilohashes/sec",id:"KHs",fn:(0,u.i7)("H/s",1)},{name:"megahashes/sec",id:"MHs",fn:(0,u.i7)("H/s",2)},{name:"gigahashes/sec",id:"GHs",fn:(0,u.i7)("H/s",3)},{name:"terahashes/sec",id:"THs",fn:(0,u.i7)("H/s",4)},{name:"petahashes/sec",id:"PHs",fn:(0,u.i7)("H/s",5)},{name:"exahashes/sec",id:"EHs",fn:(0,u.i7)("H/s",6)}]},{name:"Mass",formats:[{name:"milligram (mg)",id:"massmg",fn:(0,u.i7)("g",-1)},{name:"gram (g)",id:"massg",fn:(0,u.i7)("g")},{name:"pound (lb)",id:"masslb",fn:(0,i.q2)("lb")},{name:"kilogram (kg)",id:"masskg",fn:(0,u.i7)("g",1)},{name:"metric ton (t)",id:"masst",fn:(0,i.q2)("t")}]},{name:"Length",formats:[{name:"millimeter (mm)",id:"lengthmm",fn:(0,u.i7)("m",-1)},{name:"inch (in)",id:"lengthin",fn:(0,i.q2)("in")},{name:"feet (ft)",id:"lengthft",fn:(0,i.q2)("ft")},{name:"meter (m)",id:"lengthm",fn:(0,u.i7)("m")},{name:"kilometer (km)",id:"lengthkm",fn:(0,u.i7)("m",1)},{name:"mile (mi)",id:"lengthmi",fn:(0,i.q2)("mi")}]},{name:"Pressure",formats:[{name:"Millibars",id:"pressurembar",fn:(0,u.i7)("bar",-1)},{name:"Bars",id:"pressurebar",fn:(0,u.i7)("bar")},{name:"Kilobars",id:"pressurekbar",fn:(0,u.i7)("bar",1)},{name:"Pascals",id:"pressurepa",fn:(0,u.i7)("Pa")},{name:"Hectopascals",id:"pressurehpa",fn:(0,i.q2)("hPa")},{name:"Kilopascals",id:"pressurekpa",fn:(0,i.q2)("kPa")},{name:"Inches of mercury",id:"pressurehg",fn:(0,i.q2)('"Hg')},{name:"PSI",id:"pressurepsi",fn:(0,i.Qj)(1e3,["psi","ksi","Mpsi"])}]},{name:"Radiation",formats:[{name:"Becquerel (Bq)",id:"radbq",fn:(0,u.i7)("Bq")},{name:"curie (Ci)",id:"radci",fn:(0,u.i7)("Ci")},{name:"Gray (Gy)",id:"radgy",fn:(0,u.i7)("Gy")},{name:"rad",id:"radrad",fn:(0,u.i7)("rad")},{name:"Sievert (Sv)",id:"radsv",fn:(0,u.i7)("Sv")},{name:"milliSievert (mSv)",id:"radmsv",fn:(0,u.i7)("Sv",-1)},{name:"microSievert (µSv)",id:"radusv",fn:(0,u.i7)("Sv",-2)},{name:"rem",id:"radrem",fn:(0,u.i7)("rem")},{name:"Exposure (C/kg)",id:"radexpckg",fn:(0,u.i7)("C/kg")},{name:"roentgen (R)",id:"radr",fn:(0,u.i7)("R")},{name:"Sievert/hour (Sv/h)",id:"radsvh",fn:(0,u.i7)("Sv/h")},{name:"milliSievert/hour (mSv/h)",id:"radmsvh",fn:(0,u.i7)("Sv/h",-1)},{name:"microSievert/hour (µSv/h)",id:"radusvh",fn:(0,u.i7)("Sv/h",-2)}]},{name:"Rotational Speed",formats:[{name:"Revolutions per minute (rpm)",id:"rotrpm",fn:(0,i.q2)("rpm")},{name:"Hertz (Hz)",id:"rothz",fn:(0,u.i7)("Hz")},{name:"Radians per second (rad/s)",id:"rotrads",fn:(0,i.q2)("rad/s")},{name:"Degrees per second (°/s)",id:"rotdegs",fn:(0,i.q2)("°/s")}]},{name:"Temperature",formats:[{name:"Celsius (°C)",id:"celsius",fn:(0,i.q2)("°C")},{name:"Fahrenheit (°F)",id:"fahrenheit",fn:(0,i.q2)("°F")},{name:"Kelvin (K)",id:"kelvin",fn:(0,i.q2)("K")}]},{name:"Time",formats:[{name:"Hertz (1/s)",id:"hertz",fn:(0,u.i7)("Hz")},{name:"nanoseconds (ns)",id:"ns",fn:d.wf},{name:"microseconds (µs)",id:"µs",fn:d.dJ},{name:"milliseconds (ms)",id:"ms",fn:d.Gz},{name:"seconds (s)",id:"s",fn:d.my},{name:"minutes (m)",id:"m",fn:d.xM},{name:"hours (h)",id:"h",fn:d.bT},{name:"days (d)",id:"d",fn:d.rP},{name:"duration (ms)",id:"dtdurationms",fn:d.zp},{name:"duration (s)",id:"dtdurations",fn:d.Xq},{name:"duration (hh:mm:ss)",id:"dthms",fn:d.FH},{name:"duration (d hh:mm:ss)",id:"dtdhms",fn:d.DT},{name:"Timeticks (s/100)",id:"timeticks",fn:d.sD},{name:"clock (ms)",id:"clockms",fn:d.rd},{name:"clock (s)",id:"clocks",fn:d.gh}]},{name:"Throughput",formats:[{name:"counts/sec (cps)",id:"cps",fn:(0,i.SR)("c/s")},{name:"ops/sec (ops)",id:"ops",fn:(0,i.SR)("ops/s")},{name:"requests/sec (rps)",id:"reqps",fn:(0,i.SR)("req/s")},{name:"reads/sec (rps)",id:"rps",fn:(0,i.SR)("rd/s")},{name:"writes/sec (wps)",id:"wps",fn:(0,i.SR)("wr/s")},{name:"I/O ops/sec (iops)",id:"iops",fn:(0,i.SR)("io/s")},{name:"counts/min (cpm)",id:"cpm",fn:(0,i.SR)("c/m")},{name:"ops/min (opm)",id:"opm",fn:(0,i.SR)("ops/m")},{name:"reads/min (rpm)",id:"rpm",fn:(0,i.SR)("rd/m")},{name:"writes/min (wpm)",id:"wpm",fn:(0,i.SR)("wr/m")}]},{name:"Velocity",formats:[{name:"meters/second (m/s)",id:"velocityms",fn:(0,i.q2)("m/s")},{name:"kilometers/hour (km/h)",id:"velocitykmh",fn:(0,i.q2)("km/h")},{name:"miles/hour (mph)",id:"velocitymph",fn:(0,i.q2)("mph")},{name:"knot (kn)",id:"velocityknot",fn:(0,i.q2)("kn")}]},{name:"Volume",formats:[{name:"millilitre (mL)",id:"mlitre",fn:(0,u.i7)("L",-1)},{name:"litre (L)",id:"litre",fn:(0,u.i7)("L")},{name:"cubic meter",id:"m3",fn:(0,i.q2)("m³")},{name:"Normal cubic meter",id:"Nm3",fn:(0,i.q2)("Nm³")},{name:"cubic decimeter",id:"dm3",fn:(0,i.q2)("dm³")},{name:"gallons",id:"gallons",fn:(0,i.q2)("gal")}]},{name:"Boolean",formats:[{name:"True / False",id:"bool",fn:(0,i.IR)("True","False")},{name:"Yes / No",id:"bool_yes_no",fn:(0,i.IR)("Yes","No")},{name:"On / Off",id:"bool_on_off",fn:(0,i.IR)("On","Off")}]}]},60915:(e,t,n)=>{n.d(t,{DT:()=>S,DW:()=>O,FH:()=>x,Gz:()=>c,Hr:()=>I,QO:()=>D,Qm:()=>F,VS:()=>T,Xg:()=>C,Xq:()=>v,bT:()=>h,cN:()=>k,dJ:()=>u,gh:()=>M,my:()=>m,rP:()=>p,rV:()=>B,rd:()=>N,sD:()=>w,wf:()=>d,xM:()=>f,y:()=>A,zp:()=>y});var i=n(93349),r=n(19991),a=n(51130);let s;!function(e){e.Year="year",e.Month="month",e.Week="week",e.Day="day",e.Hour="hour",e.Minute="minute",e.Second="second",e.Millisecond="millisecond"}(s||(s={}));const o=[s.Year,s.Month,s.Week,s.Day,s.Hour,s.Minute,s.Second,s.Millisecond],l={[s.Year]:31536e3,[s.Month]:2592e3,[s.Week]:604800,[s.Day]:86400,[s.Hour]:3600,[s.Minute]:60,[s.Second]:1,[s.Millisecond]:.001};function d(e,t){return null===e?{text:""}:Math.abs(e)<1e3?{text:(0,a.FH)(e,t),suffix:" ns"}:Math.abs(e)<1e6?(0,a.bn)(e/1e3,t," µs"):Math.abs(e)<1e9?(0,a.bn)(e/1e6,t," ms"):Math.abs(e)<6e10?(0,a.bn)(e/1e9,t," s"):Math.abs(e)<36e11?(0,a.bn)(e/6e10,t," min"):Math.abs(e)<864e11?(0,a.bn)(e/36e11,t," hour"):(0,a.bn)(e/864e11,t," day")}function u(e,t){return null===e?{text:""}:Math.abs(e)<1e3?{text:(0,a.FH)(e,t),suffix:" µs"}:Math.abs(e)<1e6?(0,a.bn)(e/1e3,t," ms"):(0,a.bn)(e/1e6,t," s")}function c(e,t,n){return null===e?{text:""}:Math.abs(e)<1e3?{text:(0,a.FH)(e,t),suffix:" ms"}:Math.abs(e)<6e4?(0,a.bn)(e/1e3,t," s"):Math.abs(e)<36e5?(0,a.bn)(e/6e4,t," min"):Math.abs(e)<864e5?(0,a.bn)(e/36e5,t," hour"):Math.abs(e)<31536e6?(0,a.bn)(e/864e5,t," day"):(0,a.bn)(e/31536e6,t," year")}function m(e,t){return null===e?{text:""}:0===e?{text:"0",suffix:" s"}:Math.abs(e)<1e-6?(0,a.bn)(1e9*e,t," ns"):Math.abs(e)<.001?(0,a.bn)(1e6*e,t," µs"):Math.abs(e)<1?(0,a.bn)(1e3*e,t," ms"):Math.abs(e)<60?{text:(0,a.FH)(e,t),suffix:" s"}:Math.abs(e)<3600?(0,a.bn)(e/60,t," min"):Math.abs(e)<86400?(0,a.bn)(e/3600,t," hour"):Math.abs(e)<604800?(0,a.bn)(e/86400,t," day"):Math.abs(e)<31536e3?(0,a.bn)(e/604800,t," week"):(0,a.bn)(e/31556900,t," year")}function f(e,t){return null===e?{text:""}:Math.abs(e)<60?{text:(0,a.FH)(e,t),suffix:" min"}:Math.abs(e)<1440?(0,a.bn)(e/60,t," hour"):Math.abs(e)<10080?(0,a.bn)(e/1440,t," day"):Math.abs(e)<604800?(0,a.bn)(e/10080,t," week"):(0,a.bn)(e/525948,t," year")}function h(e,t){return null===e?{text:""}:Math.abs(e)<24?{text:(0,a.FH)(e,t),suffix:" hour"}:Math.abs(e)<168?(0,a.bn)(e/24,t," day"):Math.abs(e)<8760?(0,a.bn)(e/168,t," week"):(0,a.bn)(e/8760,t," year")}function p(e,t){return null===e?{text:""}:Math.abs(e)<7?{text:(0,a.FH)(e,t),suffix:" day"}:Math.abs(e)<365?(0,a.bn)(e/7,t," week"):(0,a.bn)(e/365,t," year")}function g(e,t,n){if(null===e)return{text:""};if(0===e)return{text:"0",suffix:" "+n+"s"};if(e<0){const i=g(-e,t,n);return i.suffix||(i.suffix=""),i.suffix+=" ago",i}e*=1e3*l[n];const i=[];let r=!1,a=0;null!=t&&(a=t);for(let t=0;t<o.length&&a>=0;t++){const n=1e3*l[o[t]],s=e/n;if(s>=1||r){r=!0;const l=Math.floor(s),d=o[t]+(1!==l?"s":"");i.push(l+" "+d),e%=n,a--}}return{text:i.join(", ")}}function b(e,t){if(null===e)return{text:""};if(e<1e3)return{text:(0,r.zh)(e).format("SSS\\m\\s")};if(e<6e4){let n="ss\\s:SSS\\m\\s";return 0===t&&(n="ss\\s"),{text:(0,r.zh)(e).format(n)}}if(e<36e5){let n="mm\\m:ss\\s:SSS\\m\\s";return 0===t?n="mm\\m":1===t&&(n="mm\\m:ss\\s"),{text:(0,r.zh)(e).format(n)}}let n="mm\\m:ss\\s:SSS\\m\\s";const i=`${("0"+Math.floor((0,r.Ks)(e,"milliseconds").asHours())).slice(-2)}h`;0===t?n="":1===t?n="mm\\m":2===t&&(n="mm\\m:ss\\s");return{text:n?`${i}:${(0,r.zh)(e).format(n)}`:i}}function y(e,t){return g(e,t,s.Millisecond)}function v(e,t){return g(e,t,s.Second)}function x(e){if(e<0){const t=x(-e);return t.suffix||(t.suffix=""),t.suffix+=" ago",t}const t=[],n=Math.floor(e/3600),i=Math.floor(e%3600/60),r=Math.floor(e%3600%60);return n>9?t.push(""+n):t.push("0"+n),i>9?t.push(""+i):t.push("0"+i),r>9?t.push(""+r):t.push("0"+r),{text:t.join(":")}}function S(e){if(e<0){const t=S(-e);return t.suffix||(t.suffix=""),t.suffix+=" ago",t}let t="";const n=Math.floor(e/86400);n>0&&(t=n+" d ");return{text:t+x(e-24*n*3600).text}}function w(e,t){return m(e/100,t)}function N(e,t){return b(e,t)}function M(e,t){return b(1e3*e,t)}function k(e,t){return(n,a,s,o)=>t&&(0,r.CQ)().isSame(n,"day")?{text:(0,i.dq)(n,{format:t,timeZone:o})}:{text:(0,i.dq)(n,{format:e,timeZone:o})}}const F=k("YYYY-MM-DD HH:mm:ss"),D=k("YYYY-MM-DD HH:mm:ss","HH:mm:ss"),O=k("MM/DD/YYYY h:mm:ss a"),A=k("MM/DD/YYYY h:mm:ss a","h:mm:ss a");function T(){return k((0,i.Ji)({year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}))}function B(){return k((0,i.Ji)({year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),(0,i.Ji)({hour:"2-digit",minute:"2-digit",second:"2-digit"}))}function I(e,t,n,r,a){return{text:(0,i.dq)(e,{format:a?i.U6.fullDateMS:i.U6.fullDate,timeZone:r})}}function C(e,t,n,r){return{text:(0,i.E8)(e,{timeZone:r})}}},67670:(e,t,n)=>{n.d(t,{Aq:()=>r,Yh:()=>d,dT:()=>o,i7:()=>u});var i=n(51130);function r(e,t){const n=(0,i.Qj)(1e3,["","K","M","B","T"]);return(i,r,a)=>{if(null===i)return{text:""};const s=n(i,r,a);return t?s.suffix=void 0!==s.suffix?`${s.suffix}${e}`:void 0:s.prefix=e,s}}const a=["f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],s=a.indexOf("");function o(e){const t=a.findIndex((t=>t.normalize("NFKD")===e.normalize("NFKD")));return t<0?0:t-s}const l=["","Ki","Mi","Gi","Ti","Pi","Ei","Zi","Yi"];function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=l.map((t=>" "+t+e));return(0,i.Qj)(1024,n,t)}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=a.map((t=>" "+t+e));return(0,i.Qj)(1e3,n,s+t)}},23569:(e,t,n)=>{n.d(t,{G:()=>r});var i=n(33071);class r extends i.G{constructor(e){var t,n,i;super(),i=void 0,(n="buffer")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,this.buffer=e||[]}get length(){return this.buffer.length}add(e){this.buffer.push(e)}get(e){return this.buffer[e]}set(e,t){this.buffer[e]=t}reverse(){this.buffer.reverse()}toArray(){return this.buffer}toJSON(){return this.buffer}}},98070:(e,t,n)=>{n.d(t,{s:()=>r});var i=n(33071);class r extends i.G{constructor(e){super(),this.field=e}get length(){return this.field.length}get(e){return+this.field.get(e)}}},96469:(e,t,n)=>{n.d(t,{r:()=>r});var i=n(54573);class r{constructor(e,t,n){this.left=e,this.right=t,this.operation=n}get length(){return this.left.length}get(e){return this.operation(this.left.get(e),this.right.get(e))}toArray(){return(0,i.n)(this)}toJSON(){return(0,i.n)(this)}}},30538:(e,t,n)=>{n.d(t,{u:()=>i});class i{constructor(e,t){this.value=e,this.len=t}get length(){return this.len}get(e){return this.value}toArray(){return new Array(this.length).fill(this.value)}toJSON(){return this.toArray()}}},63317:(e,t,n)=>{n.d(t,{C:()=>r});var i=n(54573);class r{constructor(e){var t,n,i;i=0,(n="rowIndex")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,this.columns=e}get length(){return this.columns.length}get(e){return this.columns[e].get(this.rowIndex)}toArray(){return(0,i.n)(this)}toJSON(){return(0,i.n)(this)}}},60158:(e,t,n)=>{n.d(t,{o:()=>r});var i=n(54573);class r{constructor(e,t){this.source=e,this.order=t}get length(){return this.source.length}get(e){return this.source.get(this.order[e])}toArray(){return(0,i.n)(this)}toJSON(){return(0,i.n)(this)}}},54573:(e,t,n)=>{function i(e){const t=Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.get(n);return t}n.d(t,{n:()=>i})},17462:(e,t,n)=>{function i(e){const t=e||{};if(!t.message){var n,i,r;if("string"==typeof e||e instanceof String)return{message:e};let a="Query error";t.message?a=t.message:t.data&&t.data.message&&"Query data error"!==(null===(n=t.data)||void 0===n?void 0:n.message)?a=t.data.message:"Query data error"===(null==t||null===(i=t.data)||void 0===i?void 0:i.message)&&null!=t&&null!==(r=t.data)&&void 0!==r&&r.error||t.data&&t.data.error?a=t.data.error:t.status&&(a=`Query error: ${t.status} ${t.statusText}`),t.message=a}return t}n.d(t,{P:()=>i})},57684:(e,t,n)=>{n.d(t,{R:()=>k});var i=n(62301),r=n.n(i),a=n(7392),s=n(54209),o=n(98298),l=n(43215),d=n(82961),u=n(21132),c=n(61928),m=n(10010),f=n(17462),h=n(19323),p=n(91681);function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b;!function(e){e[e.Error=0]="Error",e[e.NewValuesSameSchema=1]="NewValuesSameSchema",e[e.ChangedSchema=2]="ChangedSchema"}(b||(b={}));const y=(e,t)=>e.filter((e=>e.type===t));class v{constructor(e){g(this,"frameBuffer",void 0),g(this,"liveEventsSubscription",void 0),g(this,"stream",new c.t(1)),g(this,"shutdownTimeoutId",void 0),g(this,"shutdown",(()=>{this.stream.complete(),this.liveEventsSubscription.unsubscribe(),this.deps.onShutdown()})),g(this,"shutdownIfNoSubscribers",(()=>{this.stream.observed||this.shutdown()})),g(this,"onError",(e=>{console.log("LiveQuery [error]",{err:e},this.deps.channelId),this.stream.next({type:b.Error,error:(0,f.P)(e)}),this.shutdown()})),g(this,"onComplete",(()=>{console.log("LiveQuery [complete]",this.deps.channelId),this.shutdown()})),g(this,"onNext",(e=>{if((0,l.isLiveChannelMessageEvent)(e))return void this.process(e.message);const t=(0,l.isLiveChannelStatusEvent)(e);t&&e.error?this.stream.next({type:b.Error,error:Object.assign({},(0,f.P)(e.error),{message:`Streaming channel error: ${e.error.message}`})}):t&&(e.state===l.LiveChannelConnectionState.Connected||e.state===l.LiveChannelConnectionState.Pending)&&e.message&&this.process(e.message)})),g(this,"process",(e=>{this.frameBuffer.push(e).schemaChanged?this.stream.next({type:b.ChangedSchema}):this.stream.next({type:b.NewValuesSameSchema,values:this.frameBuffer.getValuesFromLastPacket()})})),g(this,"resizeBuffer",(e=>{e&&this.frameBuffer.needsResizing(e)&&this.frameBuffer.resize(e)})),g(this,"prepareInternalStreamForNewSubscription",(e=>{!this.frameBuffer.hasAtLeastOnePacket()&&e.frame&&this.process(e.frame)})),g(this,"clearShutdownTimeout",(()=>{this.shutdownTimeoutId&&(clearTimeout(this.shutdownTimeoutId),this.shutdownTimeoutId=void 0)})),g(this,"get",((e,t)=>{var n,i;this.clearShutdownTimeout();const r=(0,h._A)(e.buffer);this.resizeBuffer(r),this.prepareInternalStreamForNewSubscription(e);const a=(null==e||null===(n=e.buffer)||void 0===n?void 0:n.action)===d.T0.Replace,s=null===(i=e.filter)||void 0===i?void 0:i.fields,o=(null==s?void 0:s.length)?e=>{let{name:t}=e;return s.includes(t)}:void 0;let c;const f=(e,n)=>(c=o?this.frameBuffer.getMatchingFieldIndexes(o):void 0,a?n?{key:t,state:l.LoadingState.Error,data:[{type:p.g0.FullFrame,frame:this.frameBuffer.serialize(o,r,{maxLength:0})}],error:n}:e.length?{key:t,state:l.LoadingState.Streaming,data:[{type:p.g0.FullFrame,frame:this.frameBuffer.serialize(o,r,{maxLength:this.frameBuffer.packetInfo.length})}],error:n}:(console.warn(`expected to find at least one non error message ${e.map((e=>{let{type:t}=e;return t}))}`),{key:t,state:l.LoadingState.Streaming,data:[{type:p.g0.FullFrame,frame:this.frameBuffer.serialize(o,r,{maxLength:0})}],error:n}):{key:t,state:n?l.LoadingState.Error:l.LoadingState.Streaming,data:[{type:p.g0.FullFrame,frame:this.frameBuffer.serialize(o,r)}],error:n}),g=e=>{const n=e.length?e[e.length-1]:void 0,i=a&&n?n.values:(r=e,{values:r.reduce(((e,t)=>{let{values:n}=t;for(let t=0;t<n.length;t++){e[t]||(e[t]=[]);for(let i=0;i<n[t].length;i++)e[t].push(n[t][i])}return e}),[]),type:b.NewValuesSameSchema}).values;var r;const s=c?i.filter(((e,t)=>c.includes(t))):i;return{key:t,state:l.LoadingState.Streaming,data:[{type:p.g0.NewValuesSameSchema,values:s}]}};let v=!0;const x=this.stream.pipe((S=this.deps.subscriberReadiness,e=>new u.y((t=>{let n=[],i=!0;const r=()=>{t.next(n),n=[]},a=S.subscribe({next:e=>{i=e,i&&n.length&&r()}}),s=e.subscribe({next(e){i?n.length?r():t.next([e]):n.push(e)},error(e){t.error(e)},complete(){t.complete()}});return()=>{s.unsubscribe(),a.unsubscribe()}}))),(0,m.U)(((e,t)=>{const n=y(e,b.Error),i=n.length?n[n.length-1].error:void 0;if(v)return v=!1,f(e,i);if(n.length)return f(e,i);if(e.some((e=>e.type===b.ChangedSchema)))return f(e,void 0);const r=y(e,b.NewValuesSameSchema);return r.length!==e.length&&console.warn(`unsupported message type ${e.map((e=>{let{type:t}=e;return t}))}`),g(r)})));var S;return new u.y((e=>{const t=x.subscribe({next:t=>{e.next(t)},error:t=>{e.error(t)},complete:()=>{e.complete()}});return()=>{t.unsubscribe(),this.stream.observed||(this.clearShutdownTimeout(),this.shutdownTimeoutId=setTimeout(this.shutdownIfNoSubscribers,this.deps.shutdownDelayInMs))}}))})),this.deps=e,this.frameBuffer=h.Av.empty(e.defaultStreamingFrameOptions),this.liveEventsSubscription=e.liveEventsObservable.subscribe({error:this.onError,complete:this.onComplete,next:this.onNext})}}var x=n(80574);function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class w{constructor(e,t){S(this,"currentStatus",void 0),S(this,"opened",Date.now()),S(this,"id",void 0),S(this,"addr",void 0),S(this,"stream",new x.x),S(this,"lastMessageWithSchema",void 0),S(this,"subscription",void 0),S(this,"shutdownCallback",void 0),S(this,"initalized",void 0),S(this,"disconnectIfNoListeners",(()=>{0===this.stream.observers.length&&this.disconnect()})),this.id=e,this.addr=t,this.currentStatus={type:l.LiveChannelEventType.Status,id:e,timestamp:this.opened,state:l.LiveChannelConnectionState.Pending},(0,l.isValidLiveChannelAddress)(t)||(this.currentStatus.state=l.LiveChannelConnectionState.Invalid,this.currentStatus.error="invalid channel address")}initalize(){if(this.initalized)throw new Error("Channel already initalized: "+this.id);this.initalized=!0;const e={publish:e=>{try{e.data&&(e.data.schema&&(this.lastMessageWithSchema=e.data),this.stream.next({type:l.LiveChannelEventType.Message,message:e.data})),this.currentStatus.error&&(this.currentStatus.timestamp=Date.now(),delete this.currentStatus.error,this.sendStatus())}catch(e){console.log("publish error",this.addr,e),this.currentStatus.error=e,this.currentStatus.timestamp=Date.now(),this.sendStatus()}},error:e=>{this.currentStatus.timestamp=Date.now(),this.currentStatus.error=e.message,this.sendStatus()},subscribe:e=>{var t;this.currentStatus.timestamp=Date.now(),this.currentStatus.state=l.LiveChannelConnectionState.Connected,delete this.currentStatus.error,null!==(t=e.data)&&void 0!==t&&t.schema&&(this.lastMessageWithSchema=e.data),this.sendStatus(e.data)},unsubscribe:e=>{this.currentStatus.timestamp=Date.now(),this.currentStatus.state=l.LiveChannelConnectionState.Disconnected,this.sendStatus()}};return e.join=e=>{this.stream.next({type:l.LiveChannelEventType.Join,user:e.info.user})},e.leave=e=>{this.stream.next({type:l.LiveChannelEventType.Leave,user:e.info.user})},e}sendStatus(e){const t=Object.assign({},this.currentStatus);e&&(t.message=e),this.stream.next(t)}getStream(){return new u.y((e=>{var t;const n=Object.assign({},this.currentStatus);var i;null!==(t=this.lastMessageWithSchema)&&void 0!==t&&t.schema&&(n.message={schema:null===(i=this.lastMessageWithSchema)||void 0===i?void 0:i.schema});e.next(Object.assign({},this.currentStatus,{message:this.lastMessageWithSchema}));const r=this.stream.subscribe(e);return()=>{r.unsubscribe();0===this.stream.observers.length&&setTimeout(this.disconnectIfNoListeners,250)}}))}async getPresence(){return this.subscription?this.subscription.presence().then((e=>({users:Object.keys(e.presence)}))):Promise.reject("not subscribed")}disconnect(){this.currentStatus.state=l.LiveChannelConnectionState.Shutdown,this.currentStatus.timestamp=Date.now(),this.subscription&&(this.subscription.unsubscribe(),this.subscription.removeAllListeners(),this.subscription=void 0),this.stream.complete(),this.stream.next(Object.assign({},this.currentStatus)),this.stream.complete(),this.shutdownCallback&&this.shutdownCallback()}shutdownWithError(e){this.currentStatus.error=e,this.sendStatus(),this.disconnect()}}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const M={maxLength:100,maxDelta:1/0,action:d.T0.Append};class k{constructor(e){N(this,"open",new Map),N(this,"liveDataStreamByChannelId",{}),N(this,"centrifuge",void 0),N(this,"connectionState",void 0),N(this,"connectionBlocker",void 0),N(this,"dataStreamSubscriberReadiness",void 0),N(this,"onConnect",(e=>{this.connectionState.next(!0)})),N(this,"onDisconnect",(e=>{this.connectionState.next(!1)})),N(this,"onServerSideMessage",(e=>{console.log("Publication from server-side channel",e)})),N(this,"getConnectionState",(()=>this.connectionState.asObservable())),N(this,"getStream",(e=>this.getChannel(e).getStream())),N(this,"createSubscriptionKey",(e=>{var t;return null!==(t=e.key)&&void 0!==t?t:"xstr/"+F++})),N(this,"getLiveDataStream",(e=>{const t=(0,l.toLiveChannelId)(e.addr),n=this.liveDataStreamByChannelId[t];if(n)return n;const i=this.getChannel(e.addr);return this.liveDataStreamByChannelId[t]=new v({channelId:t,onShutdown:()=>{delete this.liveDataStreamByChannelId[t]},liveEventsObservable:i.getStream(),subscriberReadiness:this.dataStreamSubscriberReadiness,defaultStreamingFrameOptions:M,shutdownDelayInMs:5e3}),this.liveDataStreamByChannelId[t]})),N(this,"getDataStream",(e=>{const t=this.createSubscriptionKey(e);return this.getLiveDataStream(e).get(e,t)})),N(this,"getQueryData",(async e=>(this.centrifuge.isConnected()||await this.connectionBlocker,this.centrifuge.namedRPC("grafana.query",e.body)))),N(this,"getPresence",(e=>this.getChannel(e).getPresence())),this.deps=e,this.dataStreamSubscriberReadiness=e.dataStreamSubscriberReadiness.pipe((0,a.B)(),(0,s.O)(!0));const t=`${e.appUrl.replace(/^http/,"ws")}/api/live/ws`;this.centrifuge=new(r())(t,{timeout:3e4}),this.centrifuge.setConnectData({sessionId:e.sessionId,orgId:e.orgId}),e.liveEnabled&&""!==e.orgRole&&this.centrifuge.connect(),this.connectionState=new o.X(this.centrifuge.isConnected()),this.connectionBlocker=new Promise((e=>{if(this.centrifuge.isConnected())return e();const t=()=>{e(),this.centrifuge.removeListener("connect",t)};this.centrifuge.addListener("connect",t)})),this.centrifuge.on("connect",this.onConnect),this.centrifuge.on("disconnect",this.onDisconnect),this.centrifuge.on("publish",this.onServerSideMessage)}getChannel(e){const t=`${this.deps.orgId}/${e.scope}/${e.namespace}/${e.path}`;let n=this.open.get(t);return null!=n?n:(n=new w(t,e),n.currentStatus.state===l.LiveChannelConnectionState.Invalid||(n.shutdownCallback=()=>{this.open.delete(t)},this.open.set(t,n),this.initChannel(n).catch((e=>{n&&(n.currentStatus.state=l.LiveChannelConnectionState.Invalid,n.shutdownWithError(e)),this.open.delete(t)}))),n)}async initChannel(e){const t=e.initalize();this.centrifuge.isConnected()||await this.connectionBlocker,e.subscription=this.centrifuge.subscribe(e.id,t,{data:e.addr.data})}}let F=0},25799:(e,t,n)=>{var i=n(79702),r=n(75273);const a={canHandle:e=>e&&e instanceof r.Lv,serialize(e){const t=i.sj(e),{port1:n,port2:r}=new MessageChannel;return i.Jj(t,n),[r,[r]]},deserialize:e=>(e.start(),i.Ud(e))};i.Y6.set("SubscriberHandler",a)},18887:(e,t,n)=>{function i(e,t){return e.replace(/\{\{\s*(.+?)\s*\}\}/g,((e,n)=>t[n]?t[n]:n))}n.d(t,{W:()=>i})}}]);
  2. //# sourceMappingURL=7846.b323e600ed179be1fd21.js.map