diff --git a/ui_src/src/domain/overview/index.js b/ui_src/src/domain/overview/index.js
index 7d9b87693..ae2d28ab5 100644
--- a/ui_src/src/domain/overview/index.js
+++ b/ui_src/src/domain/overview/index.js
@@ -219,7 +219,7 @@ function OverView() {
Broker Hostname :
+Broker hostname :
{host}No schemas yet!
- +No schemas yet
+ diff --git a/ui_src/src/domain/overview/tags/index.js b/ui_src/src/domain/overview/tags/index.js index 61b349da9..4d60e0392 100644 --- a/ui_src/src/domain/overview/tags/index.js +++ b/ui_src/src/domain/overview/tags/index.js @@ -51,8 +51,8 @@ const Tags = () => { ) : (No tags yet!
- +No tags yet
+Data format
Each format has its own syntax rules. Once chosen, only that format will be allowed to pass the schema validation. - + Learn more
diff --git a/ui_static_files/build/asset-manifest.json b/ui_static_files/build/asset-manifest.json index cfb9099a6..2ebd8acf9 100644 --- a/ui_static_files/build/asset-manifest.json +++ b/ui_static_files/build/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/static/css/main.dd4147a9.css", - "main.js": "/static/js/main.0f42c0dc.js", + "main.js": "/static/js/main.bd8a8d16.js", "static/js/617.a5f8c4fc.chunk.js": "/static/js/617.a5f8c4fc.chunk.js", "static/js/2542.27de8743.chunk.js": "/static/js/2542.27de8743.chunk.js", "static/js/1737.e134cfd4.chunk.js": "/static/js/1737.e134cfd4.chunk.js", @@ -287,6 +287,6 @@ }, "entrypoints": [ "static/css/main.dd4147a9.css", - "static/js/main.0f42c0dc.js" + "static/js/main.bd8a8d16.js" ] } \ No newline at end of file diff --git a/ui_static_files/build/index.html b/ui_static_files/build/index.html index f35e6e316..c9b3d7d62 100644 --- a/ui_static_files/build/index.html +++ b/ui_static_files/build/index.html @@ -1 +1 @@ -0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;It&&yn&&yn[0]&&yn[1]&&w.isAfter(yn[1],yn[0])&&(r=yn);var o=T;if(T&&"object"===(0,L.Z)(T)&&T.defaultValue){var a=T.defaultValue;o=(0,p.Z)((0,p.Z)({},T),{},{defaultValue:Ae(a,Ge)||void 0})}var s=null;return H&&(s=function(e,t){return H(e,t,{range:Ge?"end":"start"})}),i.createElement(Oe.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:pn||pt,hoverRangedValue:r}},i.createElement(st,(0,c.Z)({},e,n,{dateRender:s,showTime:o,mode:wt[Ge],generateConfig:w,style:void 0,direction:De,disabledDate:0===Ge?Nt:Tt,disabledTime:function(e){return!!z&&z(e,0===Ge?"start":"end")},className:A()((0,f.Z)({},"".concat(u,"-panel-focused"),0===Ge?!Zn:!zn)),value:Ae(pt,Ge),locale:k,tabIndex:-1,onPanelChange:function(e,n){0===Ge&&Cn(!0),1===Ge&&Tn(!0),St(Ne(wt,n,Ge),Ne(pt,e,Ge));var r=e;"right"===t&&wt[Ge]===n&&(r=me(r,n,w,-1)),ut(r,Ge)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Ae(pt,0===Ge?1:0)})))}var Kn=0,Gn=0;if(Ge&&Fe.current&&Ve.current&&je.current){Kn=Fe.current.offsetWidth+Ve.current.offsetWidth;var Xn=We.current.offsetLeft>Kn?We.current.offsetLeft-Kn:We.current.offsetLeft;je.current.offsetWidth&&We.current.offsetWidth&&Kn>je.current.offsetWidth-We.current.offsetWidth-("rtl"===De?0:Xn)&&(Gn=Kn)}var Yn="rtl"===De?{right:Kn}:{left:Kn};var Qn,Jn,$n=i.createElement("div",{className:A()("".concat(u,"-range-wrapper"),"".concat(u,"-").concat(N,"-range-wrapper")),style:{minWidth:jt}},i.createElement("div",{ref:We,className:"".concat(u,"-range-arrow"),style:Yn}),function(){var e,t=ot(u,wt[Ge],te),n=at({prefixCls:u,components:Ce,needConfirmButton:Me,okDisabled:!Ae(pt,Ge)||V&&V(pt[Ge]),locale:k,rangeList:Un,onOk:function(){Ae(pt,Ge)&&(Ht(pt,Ge),_e&&_e(pt))}});if("time"===N||T)e=qn();else{var r=it(Ge),o=me(r,N,w),a=wt[Ge]===N,s=qn(!!a&&"left",{pickerValue:r,onPickerValueChange:function(e){ut(e,Ge)}}),c=qn("right",{pickerValue:o,onPickerValueChange:function(e){ut(me(e,N,w,-1),Ge)}});e="rtl"===De?i.createElement(i.Fragment,null,c,a&&s):i.createElement(i.Fragment,null,s,a&&c)}var l=i.createElement(i.Fragment,null,i.createElement("div",{className:"".concat(u,"-panels")},e),(t||n)&&i.createElement("div",{className:"".concat(u,"-footer")},t,n));return W&&(l=W(l)),i.createElement("div",{className:"".concat(u,"-panel-container"),style:{marginLeft:Gn},ref:je,onMouseDown:function(e){e.preventDefault()}},l)}());G&&(Qn=i.createElement("span",{className:"".concat(u,"-suffix")},G)),K&&(Ae(et,0)&&!Qe[0]||Ae(et,1)&&!Qe[1])&&(Jn=i.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=et;Qe[0]||(t=Ne(t,null,0)),Qe[1]||(t=Ne(t,null,1)),Ht(t,null),Vt(!1,Ge)},className:"".concat(u,"-clear")},X||i.createElement("span",{className:"".concat(u,"-clear-btn")})));var er={size:$(N,Ue[0],w)},tr=0,nr=0;Fe.current&&Be.current&&Ve.current&&(0===Ge?nr=Fe.current.offsetWidth:(tr=Kn,nr=Be.current.offsetWidth));var rr="rtl"===De?{right:tr}:{left:tr};return i.createElement(M.Provider,{value:{operationRef:Ye,hideHeader:"time"===N,onDateMouseEnter:function(e){bn(Ne(pt,e,Ge)),0===Ge?xn(e):Nn(e)},onDateMouseLeave:function(){bn(Ne(pt,null,Ge)),0===Ge?Cn():Tn()},hideRanges:!0,onSelect:function(e,t){var n=Ne(pt,e,Ge);"submit"===t||"key"!==t&&!Me?(Ht(n,Ge),0===Ge?Cn():Tn()):mt(n)},open:It}},i.createElement(lt,{visible:It,popupElement:$n,popupStyle:v,prefixCls:u,dropdownClassName:g,dropdownAlign:y,getPopupContainer:b,transitionName:m,range:!0,direction:De},i.createElement("div",(0,c.Z)({ref:Re,className:A()(u,"".concat(u,"-range"),h,(t={},(0,f.Z)(t,"".concat(u,"-disabled"),Qe[0]&&Qe[1]),(0,f.Z)(t,"".concat(u,"-focused"),0===Ge?Mn:Vn),(0,f.Z)(t,"".concat(u,"-rtl"),"rtl"===De),t)),style:d,onClick:function(e){ke&&ke(e),It||ze.current.contains(e.target)||He.current.contains(e.target)||(Qe[0]?Qe[1]||zt(1):zt(0))},onMouseEnter:ge,onMouseLeave:we,onMouseDown:function(e){ce&&ce(e),!It||!Mn&&!Vn||ze.current.contains(e.target)||He.current.contains(e.target)||e.preventDefault()},onMouseUp:he},Ee(e)),i.createElement("div",{className:A()("".concat(u,"-input"),(n={},(0,f.Z)(n,"".concat(u,"-input-active"),0===Ge),(0,f.Z)(n,"".concat(u,"-input-placeholder"),!!_n),n)),ref:Fe},i.createElement("input",(0,c.Z)({id:l,disabled:Qe[0],readOnly:Q||"function"===typeof Ue[0]||!Zn,value:_n||rn,onChange:function(e){on(e.target.value)},autoFocus:x,placeholder:Ae(_,0)||"",ref:ze},Ln,er,{autoComplete:Le}))),i.createElement("div",{className:"".concat(u,"-range-separator"),ref:Ve},O),i.createElement("div",{className:A()("".concat(u,"-input"),(o={},(0,f.Z)(o,"".concat(u,"-input-active"),1===Ge),(0,f.Z)(o,"".concat(u,"-input-placeholder"),!!An),o)),ref:Be},i.createElement("input",(0,c.Z)({disabled:Qe[1],readOnly:Q||"function"===typeof Ue[0]||!zn,value:An||cn,onChange:function(e){ln(e.target.value)},placeholder:Ae(_,1)||"",ref:He},Fn,er,{autoComplete:Le}))),i.createElement("div",{className:"".concat(u,"-active-bar"),style:(0,p.Z)((0,p.Z)({},rr),{},{width:nr,position:"absolute"})}),Qn,Jn)))}var St=function(e){(0,D.Z)(n,e);var t=(0,P.Z)(n);function n(){var e;(0,N.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a 3&&void 0!==arguments[3]?arguments[3]:{},i=r.axis||"y";return{measure:function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0;if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e)for(var r=t;r&&r!=e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent;n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}(e,r.target,n)},update:function(t){!function(e,t,n){je(e,"x",t,n),je(e,"y",t,n),t.time=n}(e,n,t),(r.offset||r.target)&&qe(e,n,r)},notify:"function"===typeof t?function(){return t(n)}:Ge(t,n[i])}}function Ge(e,t){return e.pause(),e.forEachNative((function(e,t){var n,r,i=t.easing;if(e.updateDuration)i||(e.easing=s.V),e.updateDuration(1);else{var o={duration:1e3};i||(o.easing="linear"),null===(r=null===(n=e.effect)||void 0===n?void 0:n.updateTiming)||void 0===r||r.call(n,o)}})),function(){e.currentTime=t.progress}}var Xe=new WeakMap,Ye=new WeakMap,Qe=new WeakMap,Je=function(e){return e===document.documentElement?window:e};function $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.container,r=void 0===n?document.documentElement:n,i=ne(t,["container"]),o=Qe.get(r);o||(o=new Set,Qe.set(r,o));var a=Ze(),s=Ke(r,e,a,i);if(o.add(s),!Xe.has(r)){var u=function(){var e,t=performance.now(),n=(0,Le.Z)(o);try{for(n.s();!(e=n.n()).done;){e.value.measure()}}catch(u){n.e(u)}finally{n.f()}var r,i=(0,Le.Z)(o);try{for(i.s();!(r=i.n()).done;){r.value.update(t)}}catch(u){i.e(u)}finally{i.f()}var a,s=(0,Le.Z)(o);try{for(s.s();!(a=s.n()).done;){a.value.notify()}}catch(u){s.e(u)}finally{s.f()}};Xe.set(r,u);var c=Je(r);window.addEventListener("resize",u,{passive:!0}),r!==document.documentElement&&Ye.set(r,Ie(r,u)),c.addEventListener("scroll",u,{passive:!0})}var l=Xe.get(r),d=requestAnimationFrame(l);return function(){var t;"function"!==typeof e&&e.stop(),cancelAnimationFrame(d);var n=Qe.get(r);if(n&&(n.delete(s),!n.size)){var i=Xe.get(r);Xe.delete(r),i&&(Je(r).removeEventListener("scroll",i),null===(t=Ye.get(r))||void 0===t||t(),window.removeEventListener("resize",i))}}}var et=n(74165);function tt(e,t){return function(e){return"object"===typeof e}(e)?e:e&&t?t[e]:void 0}var nt=void 0;function rt(){if(nt){var e=nt.sort(ot).map(at);e.forEach(st),e.forEach(st),nt=void 0}}function it(e){nt?(0,u.y)(nt,e):(nt=[e],requestAnimationFrame(rt))}var ot=function(e,t){return e.getDepth()-t.getDepth()},at=function(e){return e.animateUpdates()},st=function(e){return e.next()},ut=function(e,t){return new CustomEvent(e,{detail:{target:t}})};function ct(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:n}}))}function lt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:n}}))}var dt=function(e,t,n){return function(r){r.pointerType&&"mouse"!==r.pointerType||(n(),ct(e,t,r))}},ht={inView:{isActive:function(e){return Boolean(e.inView)},subscribe:function(e,t,n){var r=t.enable,i=t.disable,o=n.inViewOptions,a=void 0===o?{}:o,s=a.once,u=ne(a,["once"]);return xe(e,(function(t){if(r(),lt(e,"viewenter",t),!s)return function(t){i(),lt(e,"viewleave",t)}}),u)}},hover:{isActive:function(e){return Boolean(e.hover)},subscribe:function(e,t){var n=t.enable,r=t.disable,i=dt(e,"hoverstart",n),o=dt(e,"hoverend",r);return e.addEventListener("pointerenter",i),e.addEventListener("pointerleave",o),function(){e.removeEventListener("pointerenter",i),e.removeEventListener("pointerleave",o)}}},press:{isActive:function(e){return Boolean(e.press)},subscribe:function(e,t){var n=t.enable,r=t.disable,i=function t(n){r(),ct(e,"pressend",n),window.removeEventListener("pointerup",t)},o=function(t){n(),ct(e,"pressstart",t),window.addEventListener("pointerup",i)};return e.addEventListener("pointerdown",o),function(){e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",i)}}}},ft=["initial","animate"].concat((0,te.Z)(Object.keys(ht)),["exit"]),pt=new WeakMap;function vt(){var e,t,n=(0,et.Z)().mark(g),r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,o=i?i.getDepth()+1:0,a={initial:!0,animate:!0},c={},l={},d=(0,Le.Z)(ft);try{for(d.s();!(t=d.n()).done;){var h=t.value;l[h]="string"===typeof r[h]?r[h]:null===i||void 0===i?void 0:i.getContext()[h]}}catch(w){d.e(w)}finally{d.f()}var f=!1===r.initial?"animate":"initial",p=ne(tt(r[f]||l[f],r.variants)||{},["transition"]),v=Object.assign({},p);function g(){var t,i,o,u,c,l,d,h,f,g,m,y,b;return(0,et.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=p,p={},u={},c=(0,Le.Z)(ft),n.prev=4,c.s();case 6:if((l=c.n()).done){n.next=24;break}if(d=l.value,a[d]){n.next=10;break}return n.abrupt("continue",22);case 10:if(h=tt(r[d])){n.next=13;break}return n.abrupt("continue",22);case 13:n.t0=(0,et.Z)().keys(h);case 14:if((n.t1=n.t0()).done){n.next=22;break}if("transition"!==(f=n.t1.value)){n.next=18;break}return n.abrupt("continue",14);case 18:p[f]=h[f],u[f]=U(null!==(i=null!==(t=h.transition)&&void 0!==t?t:r.transition)&&void 0!==i?i:{},f),n.next=14;break;case 22:n.next=6;break;case 24:n.next=29;break;case 26:n.prev=26,n.t2=n.catch(4),c.e(n.t2);case 29:return n.prev=29,c.f(),n.finish(29);case 32:return g=new Set([].concat((0,te.Z)(Object.keys(p)),(0,te.Z)(Object.keys(o)))),m=[],g.forEach((function(t){var n,r,i;void 0===p[t]&&(p[t]=v[t]),r=o[t],i=p[t],typeof r===typeof i&&(Array.isArray(r)&&Array.isArray(i)?function(e,t){var n=t.length;if(n!==e.length)return!1;for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"end";return function(n){var r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,i="end"===t?Math.floor(r):Math.ceil(r);return(0,c.u)(0,1,i/e)}},d=n(36896),h=n(53416),f={ease:u(.25,.1,.25,1),"ease-in":u(.42,0,1,1),"ease-in-out":u(.42,0,.58,1),"ease-out":u(0,0,.58,1)},p=/\((.*?)\)/;function v(e){if((0,d.m)(e))return e;if((0,h.U)(e))return u.apply(void 0,(0,r.Z)(e));if(f[e])return f[e];if(e.startsWith("steps")){var t=p.exec(e);if(t){var n=t[1].split(",");return l(parseFloat(n[0]),n[1].trim())}}return i.V}},88518:function(e,t,n){"use strict";n.r(t),n.d(t,{ScrollOffset:function(){return Be},animate:function(){return ee},animateStyle:function(){return W},createMotionState:function(){return vt},createStyleString:function(){return bt},createStyles:function(){return gt},getAnimationData:function(){return a},getStyleName:function(){return V},glide:function(){return ke},inView:function(){return xe},mountedStates:function(){return pt},resize:function(){return Ie},scroll:function(){return $e},spring:function(){return we},stagger:function(){return J},style:function(){return z},timeline:function(){return he},withControls:function(){return G}});var r=n(4942),i=n(96653),o=new WeakMap;function a(e){return o.has(e)||o.set(e,{transforms:[],values:new Map}),o.get(e)}var s=n(52924),u=n(88069),c=["","X","Y","Z"],l={x:"translateX",y:"translateY",z:"translateZ"},d={syntax:"0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var i,o,a=[],s=t;ss&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o,a=t.length;for(r>a/2&&(r=a/2),o=0;o>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return A(this,e,t,n);case"base64":return N(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i=t[e].length&&t[e].push({}),!t[e][i].type||a.type&&a.type!==t[e][i].type?oe.merge(t[e][i],[wn.getScaleDefaults(o),a]):oe.merge(t[e][i],a)}else oe._merger(e,t,n,r)}})}function jn(){return oe.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,r){var i=t[e]||Object.create(null),o=n[e];"scales"===e?t[e]=Rn(i,o):"scale"===e?t[e]=oe.merge(i,[wn.getScaleDefaults(o.type),o]):oe._merger(e,t,n,r)}})}function Fn(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=jn(Q.global,Q[e.type],e.options||{}),e}function Bn(e){var t=e.options;oe.each(e.scales,(function(t){Ht.removeBox(e,t)})),t=jn(Q.global,Q[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Vn(e,t,n){var r,i=function(e){return e.id===r};do{r=t+n++}while(oe.findIndex(e,i)>=0);return r}function zn(e){return"top"===e||"bottom"===e}function Hn(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}Q._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Wn=function(e,t){return this.construct(e,t),this};oe.extend(Wn.prototype,{construct:function(e,t){var n=this;t=Fn(t);var r=yn.acquireContext(e,t),i=r&&r.canvas,o=i&&i.height,a=i&&i.width;n.id=oe.uid(),n.ctx=r,n.canvas=i,n.config=t,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Wn.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return bn.notify(e,"beforeInit"),oe.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),bn.notify(e,"afterInit"),e},clear:function(){return oe.canvas.clear(this),this},stop:function(){return ge.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,i=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(oe.getMaximumWidth(r))),a=Math.max(0,Math.floor(i?o/i:oe.getMaximumHeight(r)));if((t.width!==o||t.height!==a)&&(r.width=t.width=o,r.height=t.height=a,r.style.width=o+"px",r.style.height=a+"px",oe.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:a};bn.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;oe.each(t.xAxes,(function(e,n){e.id||(e.id=Vn(t.xAxes,"x-axis-",n))})),oe.each(t.yAxes,(function(e,n){e.id||(e.id=Vn(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],i=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),oe.each(r,(function(t){var r=t.options,o=r.id,a=Zn(r.type,t.dtype);zn(r.position)!==zn(t.dposition)&&(r.position=t.dposition),i[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=r,s.ctx=e.ctx,s.chart=e;else{var u=wn.getScaleConstructor(a);if(!u)return;s=new u({id:o,type:a,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),oe.each(i,(function(e,t){e||delete n[t]})),e.scales=n,wn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],i=n.data.datasets;for(e=0,t=i.length;e=0&&(a=e),void 0!==o&&(e=n.indexOf(o))>=0&&(s=e),t.minIndex=a,t.maxIndex=s,t.min=n[a],t.max=n[s]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,r=e.maxIndex;e.ticks=0===n&&r===t.length-1?t:t.slice(n,r+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;gr.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,i,o,a=this;return mr(t)||mr(n)||(e=a.chart.data.datasets[n].data[t]),mr(e)||(r=a.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(i=a._getLabels(),e=oe.valueOrDefault(r,e),t=-1!==(o=i.indexOf(e))?o:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),wr=yr;br._defaults=wr;var kr=oe.noop,_r=oe.isNullOrUndef;function xr(e,t){var n,r,i,o,a=[],s=1e-14,u=e.stepSize,c=u||1,l=e.maxTicks-1,d=e.min,h=e.max,f=e.precision,p=t.min,v=t.max,g=oe.niceNum((v-p)/l/c)*c;if(gl&&(g=oe.niceNum(o*g/l/c)*c),u||_r(f)?n=Math.pow(10,oe._decimalPlaces(g)):(n=Math.pow(10,f),g=Math.ceil(g*n)/n),r=Math.floor(p/g)*g,i=Math.ceil(v/g)*g,u&&(!_r(d)&&oe.almostWhole(d/g,g/1e3)&&(r=d),!_r(h)&&oe.almostWhole(h/g,g/1e3)&&(i=h)),o=(i-r)/g,o=oe.almostEquals(o,Math.round(o),g/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,i=Math.round(i*n)/n,a.push(_r(d)?r:d);for(var m=1;mo.r&&(o.r=l.end,a.r=u),d.start0&&r>0?n:0)},_drawGrid:function(){var e,t,n,r=this,i=r.ctx,o=r.options,a=o.gridLines,s=o.angleLines,u=Br(s.lineWidth,a.lineWidth),c=Br(s.color,a.color);if(o.pointLabels.display&&Qr(r),a.display&&oe.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),Jr(r,a,t,n))})),s.display&&u&&c){for(i.save(),i.lineWidth=u,i.strokeStyle=c,i.setLineDash&&(i.setLineDash(zr([s.borderDash,a.borderDash,[]])),i.lineDashOffset=zr([s.borderDashOffset,a.borderDashOffset,0])),e=r.chart.data.labels.length-1;e>=0;e--)t=r.getDistanceFromCenterForValue(o.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),i.beginPath(),i.moveTo(r.xCenter,r.yCenter),i.lineTo(n.x,n.y),i.stroke();i.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,i,o=e.getIndexAngle(0),a=oe.options._parseFont(n),s=Br(n.fontColor,Q.global.defaultFontColor);t.save(),t.font=a.string,t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",oe.each(e.ticks,(function(o,u){(0!==u||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[u]),n.showLabelBackdrop&&(i=t.measureText(o).width,t.fillStyle=n.backdropColor,t.fillRect(-i/2-n.backdropPaddingX,-r-a.size/2-n.backdropPaddingY,i+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(o,0,-r))})),t.restore()}},_drawTitle:oe.noop}),ti=Hr;ei._defaults=ti;var ni=oe._deprecated,ri=oe.options.resolve,ii=oe.valueOrDefault,oi=Number.MIN_SAFE_INTEGER||-9007199254740991,ai=Number.MAX_SAFE_INTEGER||9007199254740991,si={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ui=Object.keys(si);function ci(e,t){return e-t}function li(e){var t,n,r,i={},o=[];for(t=0,n=e.length;t1?li(p).sort(ci):p.sort(ci),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=mi(s,di(l))||h,f=mi(s,hi(l))||f,h=h===ai?+c.startOf(Date.now(),d):h,f=f===oi?+c.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:v,labels:g}},buildTicks:function(){var e,t,n,r=this,i=r.min,o=r.max,a=r.options,s=a.ticks,u=a.time,c=r._timestamps,l=[],d=r.getLabelCapacity(i),h=s.source,f=a.distribution;for(c="data"===h||"auto"===h&&"series"===f?c.data:"labels"===h?c.labels:ki(r,i,o,d),"ticks"===a.bounds&&c.length&&(i=c[0],o=c[c.length-1]),i=mi(r,di(a))||i,o=mi(r,hi(a))||o,e=0,t=c.length;e=0;--n)(t=u[n].$filler)&&t.visible&&(i=(r=t.el)._view,o=r._children||[],a=t.mapper,s=i.backgroundColor||Q.global.defaultColor,a&&s&&o.length&&(oe.canvas.clipArea(c,e.chartArea),Fi(c,o,a,i,s,r._loop),oe.canvas.unclipArea(c)))}},Vi=oe.rtl.getRtlAdapter,zi=oe.noop,Hi=oe.valueOrDefault;function Wi(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}Q._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var i=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,i=document.createElement("ul"),o=e.data.datasets;for(i.setAttribute("class",e.id+"-legend"),t=0,n=o.length;t0;--i)c[s++]=0;for(i=h.length;i>a;){if(c[--i]