/*! For license information please see 376.9a81f019e3c71e29c4e1.js.LICENSE.txt */ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c0708bd3-2985-40d2-874a-e4b713cbd258",e._sentryDebugIdIdentifier="sentry-dbid-c0708bd3-2985-40d2-874a-e4b713cbd258")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"d3c83511ea495cef1d9f8179d5492b454e88bcc8"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[376],{78081:function(e,t,n){var r=n(82215),o=n(82584),i=n(20609),a=n(98420),s=n(20738),u=n(18923),l=Date.prototype.getTime;function c(e,t,n){var p=n||{};return!!(p.strict?i(e,t):e===t)||(!e||!t||"object"!==typeof e&&"object"!==typeof t?p.strict?i(e,t):e==t:function(e,t,n){var i,p;if(typeof e!==typeof t)return!1;if(f(e)||f(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e)!==o(t))return!1;var h=a(e),g=a(t);if(h!==g)return!1;if(h||g)return e.source===t.source&&s(e)===s(t);if(u(e)&&u(t))return l.call(e)===l.call(t);var v=d(e),m=d(t);if(v!==m)return!1;if(v||m){if(e.length!==t.length)return!1;for(i=0;i=0;i--)if(y[i]!=b[i])return!1;for(i=y.length-1;i>=0;i--)if(!c(e[p=y[i]],t[p],n))return!1;return!0}(e,t,p))}function f(e){return null===e||void 0===e}function d(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}e.exports=c},21782:function(e,t,n){"use strict";var r=n(82215),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=n(31044)(),l=s&&u,c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;l?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},f=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s-1?e.split(","):e},l=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,c=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}for(var f=0;n.depth>0&&null!==(s=a.exec(i))&&f=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=o:"__proto__"!==l&&(a[l]=o):a={0:o}}o=a}return o}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var n,l={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(v=i(v)?[v]:v),o.call(l,g)?l[g]=r.combine(l[g],v):l[g]=v}return l}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p0?O.join(",")||null:void 0}];else if(u(d))k=d;else{var R=Object.keys(O);k=g?R.sort(g):R}for(var T=a&&u(O)&&1===O.length?n+"[]":n,I=0;I0?x+w:""}},74872:function(e,t,n){"use strict";var r=n(34474),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===r.RFC1738&&(40===c||41===c)?u+=s.charAt(l):c<128?u+=a[c]:c<2048?u+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?u+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(l)),u+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;re.x+e.w||t.x+t.we.y+e.h)},getColorShade:function(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;for(var n="#",r=0;r<3;r++){var o=parseInt(e.substr(2*r,2),16);n+=("00"+(o=Math.round(Math.min(Math.max(0,o+o*t),255)).toString(16))).substr(o.length)}return n},initSegmentColors:function(e){for(var t=e.options.data.content,n=e.options.misc.colors.segments,r=[],o=0;o=t.value?(r.push(e[c]),o+=e[c].value,i++):(e[c].isGrouped=!1,n.push(e[c]))}else if("percentage"===t.valueType){var f=u.getTotalPieSize(e);for(c=0;c99?99:a)<0?0:a;var u=r0&&(u-=l)}s=Math.floor(u/100*a)/2}else s=parseInt(t.pieOuterRadius,10);/%/.test(t.pieInnerRadius)?(a=(a=(a=parseInt(t.pieInnerRadius.replace(/[\D]/,""),10))>99?99:a)<0?0:a,i=Math.floor(s/100*a)):i=parseInt(t.pieInnerRadius,10),e.innerRadius=i,e.outerRadius=s},getTotalPieSize:function(e){for(var t=0,n=0;nt.label.toLowerCase()?1:-1}));break;case"label-desc":t.sort((function(e,t){return e.label.toLowerCase()o.truncation.truncateLength&&(n=e.label.substring(0,o.truncation.truncateLength)+"..."),n})).style("font-size",o.mainLabel.fontSize).style("font-family",o.mainLabel.font).style("font-weight",o.mainLabel.fontWeight).style("fill",(function(t,n){return"segment"===o.mainLabel.color?e.options.colors[n]:o.mainLabel.color})),r.percentage&&a.append("text").attr("id",(function(n,r){return e.cssPrefix+"segmentPercentage"+r+"-"+t})).attr("class",e.cssPrefix+"segmentPercentage-"+t).text((function(e,t){var n=e.percentage;return o.formatter?(s.index=t,s.part="percentage",s.value=e.value,s.label=e.percentage,n=o.formatter(s)):n+="%",n})).style("font-size",o.percentage.fontSize).style("font-family",o.percentage.font).style("font-weight",o.percentage.fontWeight).style("fill",o.percentage.color),r.value&&a.append("text").attr("id",(function(n,r){return e.cssPrefix+"segmentValue"+r+"-"+t})).attr("class",e.cssPrefix+"segmentValue-"+t).text((function(e,t){return s.index=t,s.part="value",s.value=e.value,s.label=e.value,s.realLabel=e.label,o.formatter?o.formatter(s,e.value):e.value})).style("font-size",o.value.fontSize).style("font-family",o.value.font).style("font-weight",o.value.fontWeight).style("fill",o.value.color)},positionLabelElements:function(e,t,n){c["dimensions-"+t]=[],e.__labels[t].each((function(n,r){var o=a.select(this).selectAll("."+e.cssPrefix+"segmentMainLabel-"+t),i=a.select(this).selectAll("."+e.cssPrefix+"segmentPercentage-"+t),s=a.select(this).selectAll("."+e.cssPrefix+"segmentValue-"+t);c["dimensions-"+t].push({mainLabel:null!==o.node()?o.node().getBBox():null,percentage:null!==i.node()?i.node().getBBox():null,value:null!==s.node()?s.node().getBBox():null})}));var r=5,o=c["dimensions-"+t];switch(n){case"label-value1":e.svg.selectAll("."+e.cssPrefix+"segmentValue-"+t).attr("dx",(function(e,t){return o[t].mainLabel.width+r}));break;case"label-value2":e.svg.selectAll("."+e.cssPrefix+"segmentValue-"+t).attr("dy",(function(e,t){return o[t].mainLabel.height}));break;case"label-percentage1":e.svg.selectAll("."+e.cssPrefix+"segmentPercentage-"+t).attr("dx",(function(e,t){return o[t].mainLabel.width+r}));break;case"label-percentage2":e.svg.selectAll("."+e.cssPrefix+"segmentPercentage-"+t).attr("dx",(function(e,t){return o[t].mainLabel.width/2-o[t].percentage.width/2})).attr("dy",(function(e,t){return o[t].mainLabel.height}))}},computeLabelLinePositions:function(e){e.lineCoordGroups=[],e.__labels.outer.each((function(t,n){return c.computeLinePosition(e,n)}))},computeLinePosition:function(e,t){var n,r,o,i,a=f.getSegmentAngle(t,e.options.data.content,e.totalSize,{midpoint:!0}),s=u.rotate(e.pieCenter.x,e.pieCenter.y-e.outerRadius,e.pieCenter.x,e.pieCenter.y,a),l=e.outerLabelGroupData[t].h/5,c=6,d=Math.floor(a/90),p=4;switch(2===d&&180===a&&(d=1),d){case 0:n=e.outerLabelGroupData[t].x-c-(e.outerLabelGroupData[t].x-c-s.x)/2,r=e.outerLabelGroupData[t].y+(s.y-e.outerLabelGroupData[t].y)/p,o=e.outerLabelGroupData[t].x-c,i=e.outerLabelGroupData[t].y-l;break;case 1:n=s.x+(e.outerLabelGroupData[t].x-s.x)/p,r=s.y+(e.outerLabelGroupData[t].y-s.y)/p,o=e.outerLabelGroupData[t].x-c,i=e.outerLabelGroupData[t].y-l;break;case 2:var h=e.outerLabelGroupData[t].x+e.outerLabelGroupData[t].w+c;n=s.x-(s.x-h)/p,r=s.y+(e.outerLabelGroupData[t].y-s.y)/p,o=e.outerLabelGroupData[t].x+e.outerLabelGroupData[t].w+c,i=e.outerLabelGroupData[t].y-l;break;case 3:var g=e.outerLabelGroupData[t].x+e.outerLabelGroupData[t].w+c;n=g+(s.x-g)/p,r=e.outerLabelGroupData[t].y+(s.y-e.outerLabelGroupData[t].y)/p,o=e.outerLabelGroupData[t].x+e.outerLabelGroupData[t].w+c,i=e.outerLabelGroupData[t].y-l}"straight"===e.options.labels.lines.style?e.lineCoordGroups[t]=[{x:s.x,y:s.y},{x:o,y:i}]:e.lineCoordGroups[t]=[{x:s.x,y:s.y},{x:n,y:r},{x:o,y:i}]},addLabelLines:function(e){var t=e.svg.insert("g","."+e.cssPrefix+"pieChart").attr("class",e.cssPrefix+"lineGroups").style("opacity",1).selectAll("."+e.cssPrefix+"lineGroup").data(e.lineCoordGroups).enter().append("g").attr("class",e.cssPrefix+"lineGroup"),n=a.line().curve(a.curveBasis).x((function(e){return e.x})).y((function(e){return e.y}));t.append("path").attr("d",n).attr("stroke",(function(t,n){return"segment"===e.options.labels.lines.color?e.options.colors[n]:e.options.labels.lines.color})).attr("stroke-width",1).attr("fill","none").style("opacity",(function(t,n){var r=e.options.labels.outer.hideWhenLessThanPercentage;return null!==r&&t.percentage0){var c=f.getSegmentAngle(r,e.options.data.content,e.totalSize,{midpoint:!0}),d=u.translate(e.pieCenter.x,e.pieCenter.y,e.innerRadius,c);l.x=d.x,l.y=d.y}var p=i.getDimensions(e.cssPrefix+"labelGroup"+r+"-inner"),h=p.w/2,g=p.h/4;o=l.x+(e.lineCoordGroups[r][0].x-l.x)/1.8,a=l.y+(e.lineCoordGroups[r][0].y-l.y)/1.8,o-=h,a+=g}return"translate("+o+","+a+")"}))},getIncludes:function(e){var t=!1,n=!1,r=!1;switch(e){case"label":t=!0;break;case"value":n=!0;break;case"percentage":r=!0;break;case"label-value1":case"label-value2":t=!0,n=!0;break;case"label-percentage1":case"label-percentage2":t=!0,r=!0}return{mainLabel:t,value:n,percentage:r}},computeOuterLabelCoords:function(e){e.__labels.outer.each((function(t,n){return c.getIdealOuterLabelPositions(e,n)})),c.resolveOuterLabelCollisions(e)},resolveOuterLabelCollisions:function(e){if("none"!==e.options.labels.outer.format){var t=e.options.data.content.length;c.checkConflict(e,0,"clockwise",t),c.checkConflict(e,t-1,"anticlockwise",t)}},checkConflict:function(e,t,n,r){var o,a;if(!(r<=1)){var s=e.outerLabelGroupData[t].hs;if(("clockwise"!==n||"right"===s)&&("anticlockwise"!==n||"left"===s)){var u="clockwise"===n?t+1:t-1,l=e.outerLabelGroupData[t],f=e.outerLabelGroupData[u],d={labelHeights:e.outerLabelGroupData[0].h,center:e.pieCenter,lineLength:e.outerRadius+e.options.labels.outer.pieDistance,heightChange:e.outerLabelGroupData[0].h+1};if("clockwise"===n){for(o=0;o<=t;o++)if(a=e.outerLabelGroupData[o],!c.isLabelHidden(e,o)&&i.rectIntersect(a,f)){c.adjustLabelPos(e,u,l,d);break}}else for(o=r-1;o>=t;o--)if(a=e.outerLabelGroupData[o],!c.isLabelHidden(e,o)&&i.rectIntersect(a,f)){c.adjustLabelPos(e,u,l,d);break}c.checkConflict(e,u,n,r)}}},isLabelHidden:function(e,t){var n=e.options.labels.outer.hideWhenLessThanPercentage;return null!==n&&d.percentageMath.abs(i)?Math.sqrt(r.lineLength*r.lineLength-i*i):Math.sqrt(i*i-r.lineLength*r.lineLength),a="right"===n.hs?r.center.x+o:r.center.x-o-e.outerLabelGroupData[t].w,e.outerLabelGroupData[t].x=a,e.outerLabelGroupData[t].y=s},getIdealOuterLabelPositions:function(e,t){var n=e.svg.select("#"+e.cssPrefix+"labelGroup"+t+"-outer").node();if(n){var r=n.getBBox(),o=f.getSegmentAngle(t,e.options.data.content,e.totalSize,{midpoint:!0}),i=e.pieCenter.x,a=e.pieCenter.y-(e.outerRadius+e.options.labels.outer.pieDistance),s=u.rotate(i,a,e.pieCenter.x,e.pieCenter.y,o),l="right";o>180?(s.x-=r.width+8,l="left"):s.x+=8,e.outerLabelGroupData[t]={x:s.x,y:s.y,w:r.width,h:r.height,hs:l}}}},f={effectMap:{none:a.easeLinear,bounce:a.easeBounce,linear:a.easeLinear,sin:a.easeSin,elastic:a.easeElastic,back:a.easeBack,quad:a.easeQuad,circle:a.easeCircle,exp:a.easeExp},create:function(e){var t=e.pieCenter,n=e.options.colors,r=(e.options.effects.load,e.options.misc.colors.segmentStroke),o=e.svg.insert("g","#"+e.cssPrefix+"title").attr("transform",(function(){return u.getPieTranslateCenter(t)})).attr("class",e.cssPrefix+"pieChart"),i=a.arc().innerRadius(e.innerRadius).outerRadius(e.outerRadius).startAngle(0).endAngle((function(t){return t.value/e.totalSize*2*Math.PI}));o.selectAll("."+e.cssPrefix+"arc").data(e.options.data.content).enter().append("g").attr("class",e.cssPrefix+"arc").append("path").attr("id",(function(t,n){return e.cssPrefix+"segment"+n})).attr("fill",(function(t,r){var o=n[r];return e.options.misc.gradient.enabled&&(o="url(#"+e.cssPrefix+"grad"+r+")"),o})).style("stroke",r).style("stroke-width",1).attr("data-index",(function(e,t){return t})).attr("d",i),e.svg.selectAll("g."+e.cssPrefix+"arc").attr("transform",(function(t,n){var r=0;return n>0&&(r=f.getSegmentAngle(n-1,e.options.data.content,e.totalSize)),"rotate("+r+")"})),e.arc=i},addGradients:function(e){var t=e.svg.append("defs").selectAll("radialGradient").data(e.options.data.content).enter().append("radialGradient").attr("gradientUnits","userSpaceOnUse").attr("cx",0).attr("cy",0).attr("r","120%").attr("id",(function(t,n){return e.cssPrefix+"grad"+n}));t.append("stop").attr("offset","0%").style("stop-color",(function(t,n){return e.options.colors[n]})),t.append("stop").attr("offset",e.options.misc.gradient.percentage+"%").style("stop-color",e.options.misc.gradient.color)},addSegmentEventHandlers:function(e){var t=e.svg.selectAll("."+e.cssPrefix+"arc");(t=t.merge(e.__labels.inner.merge(e.__labels.outer))).on("click",(function(){var t,n=a.select(this);if(n.attr("class")===e.cssPrefix+"arc")t=n.select("path");else{var r=n.attr("data-index");t=a.select("#"+e.cssPrefix+"segment"+r)}var o=t.attr("class")===e.cssPrefix+"expanded";f.onSegmentEvent(e,e.options.callbacks.onClickSegment,t,o),"none"!==e.options.effects.pullOutSegmentOnClick.effect&&(o?f.closeSegment(e,t.node()):f.openSegment(e,t.node()))})),t.on("mouseover",(function(){var t,n,r=a.select(this);if(r.attr("class")===e.cssPrefix+"arc"?t=r.select("path"):(n=r.attr("data-index"),t=a.select("#"+e.cssPrefix+"segment"+n)),e.options.effects.highlightSegmentOnMouseover){n=t.attr("data-index");var o=e.options.colors[n];t.style("fill",i.getColorShade(o,e.options.effects.highlightLuminosity))}e.options.tooltips.enabled&&(n=t.attr("data-index"),h.showTooltip(e,n));var s=t.attr("class")===e.cssPrefix+"expanded";f.onSegmentEvent(e,e.options.callbacks.onMouseoverSegment,t,s)})),t.on("mousemove",(function(){h.moveTooltip(e)})),t.on("mouseout",(function(){var t,n,r=a.select(this);if(r.attr("class")===e.cssPrefix+"arc"?t=r.select("path"):(n=r.attr("data-index"),t=a.select("#"+e.cssPrefix+"segment"+n)),e.options.effects.highlightSegmentOnMouseover){n=t.attr("data-index");var o=e.options.colors[n];e.options.misc.gradient.enabled&&(o="url(#"+e.cssPrefix+"grad"+n+")"),t.style("fill",o)}e.options.tooltips.enabled&&(n=t.attr("data-index"),h.hideTooltip(e,n));var i=t.attr("class")===e.cssPrefix+"expanded";f.onSegmentEvent(e,e.options.callbacks.onMouseoutSegment,t,i)}))},onSegmentEvent:function(e,t,n,r){if(i.isFunction(t)){var o=parseInt(n.attr("data-index"),10);t({segment:n.node(),index:o,expanded:r,data:e.options.data.content[o]})}},openSegment:function(e,t){e.isOpeningSegment||(e.isOpeningSegment=!0,f.maybeCloseOpenSegment(e),a.select(t).transition().ease(f.effectMap[e.options.effects.pullOutSegmentOnClick.effect]).duration(e.options.effects.pullOutSegmentOnClick.speed).attr("transform",(function(t,n){var r=e.arc.centroid(t),o=r[0],i=r[1],a=Math.sqrt(o*o+i*i),s=parseInt(e.options.effects.pullOutSegmentOnClick.size,10);return"translate("+o/a*s+","+i/a*s+")"})).on("end",(function(n,r){e.currentlyOpenSegment=t,e.isOpeningSegment=!1,a.select(t).attr("class",e.cssPrefix+"expanded")})))},maybeCloseOpenSegment:function(e){"undefined"!==typeof e&&e.svg.selectAll("."+e.cssPrefix+"expanded").size()>0&&f.closeSegment(e,e.svg.select("."+e.cssPrefix+"expanded").node())},closeSegment:function(e,t){a.select(t).transition().duration(400).attr("transform","translate(0,0)").on("end",(function(n,r){a.select(t).attr("class",""),e.currentlyOpenSegment=null}))},getCentroid:function(e){var t=e.getBBox();return{x:t.x+t.width/2,y:t.y+t.height/2}},getSegmentAngle:function(e,t,n,r){var o,i=s({compounded:!0,midpoint:!1},r),a=t[e].value;if(i.compounded){o=0;for(var u=0;u<=e;u++)o+=t[u].value}"undefined"===typeof o&&(o=a);var l=o/n*360;return i.midpoint&&(l-=a/n*360/2),l}},p={offscreenCoord:-1e4,addTitle:function(e){e.__title=e.svg.selectAll("."+e.cssPrefix+"title").data([e.options.header.title]).enter().append("text").text((function(e){return e.text})).attr("id",e.cssPrefix+"title").attr("class",e.cssPrefix+"title").attr("x",p.offscreenCoord).attr("y",p.offscreenCoord).attr("text-anchor",(function(){return"top-center"===e.options.header.location||"pie-center"===e.options.header.location?"middle":"left"})).attr("fill",(function(e){return e.color})).style("font-size",(function(e){return e.fontSize})).style("font-weight",(function(e){return e.fontWeight})).style("font-family",(function(e){return e.font}))},positionTitle:function(e){var t,n=e.textComponents,r=e.options.header.location,o=e.options.misc.canvasPadding,i=e.options.size.canvasWidth,a=e.options.header.titleSubtitlePadding;t="top-left"===r?o.left:(i-o.right)/2+o.left,t+=e.options.misc.pieCenterOffset.x;var s=o.top+n.title.h;"pie-center"===r&&(s=e.pieCenter.y,n.subtitle.exists?s=s-(n.title.h+a+n.subtitle.h)/2+n.title.h:s+=n.title.h/4),e.__title.attr("x",t).attr("y",s)},addSubtitle:function(e){var t=e.options.header.location;e.__subtitle=e.svg.selectAll("."+e.cssPrefix+"subtitle").data([e.options.header.subtitle]).enter().append("text").text((function(e){return e.text})).attr("x",p.offscreenCoord).attr("y",p.offscreenCoord).attr("id",e.cssPrefix+"subtitle").attr("class",e.cssPrefix+"subtitle").attr("text-anchor",(function(){return"top-center"===t||"pie-center"===t?"middle":"left"})).attr("fill",(function(e){return e.color})).style("font-size",(function(e){return e.fontSize})).style("font-weight",(function(e){return e.fontWeight})).style("font-family",(function(e){return e.font}))},positionSubtitle:function(e){var t,n=e.options.misc.canvasPadding,r=e.options.size.canvasWidth;t="top-left"===e.options.header.location?n.left:(r-n.right)/2+n.left,t+=e.options.misc.pieCenterOffset.x;var o=p.getHeaderHeight(e);e.__subtitle.attr("x",t).attr("y",o)},addFooter:function(e){e.__footer=e.svg.selectAll("."+e.cssPrefix+"footer").data([e.options.footer]).enter().append("text").text((function(e){return e.text})).attr("x",p.offscreenCoord).attr("y",p.offscreenCoord).attr("id",e.cssPrefix+"footer").attr("class",e.cssPrefix+"footer").attr("text-anchor",(function(){var t="left";return"bottom-center"===e.options.footer.location?t="middle":"bottom-right"===e.options.footer.location&&(t="left"),t})).attr("fill",(function(e){return e.color})).style("font-size",(function(e){return e.fontSize})).style("font-weight",(function(e){return e.fontWeight})).style("font-family",(function(e){return e.font}))},positionFooter:function(e){var t,n=e.options.footer.location,r=e.textComponents.footer.w,o=e.options.size.canvasWidth,i=e.options.size.canvasHeight,a=e.options.misc.canvasPadding;t="bottom-left"===n?a.left:"bottom-right"===n?o-r-a.right:o/2,e.__footer.attr("x",t).attr("y",i-a.bottom)},getHeaderHeight:function(e){var t;if(e.textComponents.title.exists){var n=e.textComponents.title.h+e.options.header.titleSubtitlePadding+e.textComponents.subtitle.h;t="pie-center"===e.options.header.location?e.pieCenter.y-n/2+n:n+e.options.misc.canvasPadding.top}else if("pie-center"===e.options.header.location){var r=e.options.misc.canvasPadding.bottom+e.textComponents.footer.h;t=(e.options.size.canvasHeight-r)/2+e.options.misc.canvasPadding.top+e.textComponents.subtitle.h/2}else t=e.options.misc.canvasPadding.top+e.textComponents.subtitle.h;return t}},h={addTooltips:function(e){var t=e.svg.insert("g").attr("class",e.cssPrefix+"tooltips");t.selectAll("."+e.cssPrefix+"tooltip").data(e.options.data.content).enter().append("g").attr("class",e.cssPrefix+"tooltip").attr("id",(function(t,n){return e.cssPrefix+"tooltip"+n})).style("opacity",0).append("rect").attr("rx",e.options.tooltips.styles.borderRadius).attr("ry",e.options.tooltips.styles.borderRadius).attr("x",-e.options.tooltips.styles.padding).attr("opacity",e.options.tooltips.styles.backgroundOpacity).style("fill",e.options.tooltips.styles.backgroundColor),t.selectAll("."+e.cssPrefix+"tooltip").data(e.options.data.content).append("text").attr("fill",(function(t){return e.options.tooltips.styles.color})).style("font-size",(function(t){return e.options.tooltips.styles.fontSize})).style("font-weight",(function(t){return e.options.tooltips.styles.fontWeight})).style("font-family",(function(t){return e.options.tooltips.styles.font})).text((function(t,n){var r=e.options.tooltips.string;return"caption"===e.options.tooltips.type&&(r=t.caption),h.replacePlaceholders(e,r,n,{label:t.label,value:t.value,percentage:t.percentage})})),t.selectAll("."+e.cssPrefix+"tooltip rect").attr("width",(function(t,n){return i.getDimensions(e.cssPrefix+"tooltip"+n).w+2*e.options.tooltips.styles.padding})).attr("height",(function(t,n){return i.getDimensions(e.cssPrefix+"tooltip"+n).h+2*e.options.tooltips.styles.padding})).attr("y",(function(t,n){return-i.getDimensions(e.cssPrefix+"tooltip"+n).h/2+1}))},showTooltip:function(e,t){var n=e.options.tooltips.styles.fadeInSpeed;h.currentTooltip===t&&(n=1),h.currentTooltip=t,a.select("#"+e.cssPrefix+"tooltip"+t).transition().duration(n).style("opacity",(function(){return 1})),h.moveTooltip(e)},moveTooltip:function(e){a.selectAll("#"+e.cssPrefix+"tooltip"+h.currentTooltip).attr("transform",(function(t){var n=a.pointer(this.parentNode);return"translate("+(n[0]+e.options.tooltips.styles.padding+2)+","+(n[1]-2*e.options.tooltips.styles.padding-2)+")"}))},hideTooltip:function(e,t){a.select("#"+e.cssPrefix+"tooltip"+t).style("opacity",(function(){return 0})),a.select("#"+e.cssPrefix+"tooltip"+h.currentTooltip).attr("transform",(function(t,n){return"translate("+(e.options.size.canvasWidth+1e3)+","+(e.options.size.canvasHeight+1e3)+")"}))},replacePlaceholders:function(e,t,n,r){i.isFunction(e.options.tooltips.placeholderParser)&&e.options.tooltips.placeholderParser(n,r);var o=function(){return function(e){var t=arguments[1];return r.hasOwnProperty(t)?r[arguments[1]]:arguments[0]}};return t.replace(/\{(\w+)\}/g,o(r))}},g=function(i,u){if(this.element=i,"string"===typeof i){var l=i.replace(/^#/,"");this.element=document.getElementById(l)}var c={};s(!0,c,r,u),this.options=c,null!==this.options.misc.cssPrefix?this.cssPrefix=this.options.misc.cssPrefix:(this.cssPrefix="p"+n+"_",n++),o.initialCheck(this)&&(a.select(this.element).attr(e,t),v.call(this),m.call(this))};g.prototype.recreate=function(){o.initialCheck(this)&&(v.call(this),m.call(this))},g.prototype.redraw=function(){this.element.innerHTML="",m.call(this)},g.prototype.destroy=function(){this.element.innerHTML="",a.select(this.element).attr(e,null)},g.prototype.getOpenSegment=function(){var e=this.currentlyOpenSegment;if(null!==e&&"undefined"!==typeof e){var t=parseInt(a.select(e).attr("data-index"),10);return{element:e,index:t,data:this.options.data.content[t]}}return null},g.prototype.openSegment=function(e){(e=parseInt(e,10))<0||e>this.options.data.content.length-1||f.openSegment(this,a.select("#"+this.cssPrefix+"segment"+e).node())},g.prototype.closeSegment=function(){f.maybeCloseOpenSegment(this)},g.prototype.updateProp=function(e,t){switch(e){case"header.title.text":var n=i.processObj(this.options,e);i.processObj(this.options,e,t),a.select("#"+this.cssPrefix+"title").html(t),(""===n&&""!==t||""!==n&&""===t)&&this.redraw();break;case"header.subtitle.text":var r=i.processObj(this.options,e);i.processObj(this.options,e,t),a.select("#"+this.cssPrefix+"subtitle").html(t),(""===r&&""!==t||""!==r&&""===t)&&this.redraw();break;case"callbacks.onload":case"callbacks.onMouseoverSegment":case"callbacks.onMouseoutSegment":case"callbacks.onClickSegment":case"effects.pullOutSegmentOnClick.effect":case"effects.pullOutSegmentOnClick.speed":case"effects.pullOutSegmentOnClick.size":case"effects.highlightSegmentOnMouseover":case"effects.highlightLuminosity":i.processObj(this.options,e,t);break;default:i.processObj(this.options,e,t),this.destroy(),this.recreate()}};var v=function(){this.options.data.content=u.sortPieData(this),this.options.data.smallSegmentGrouping.enabled&&(this.options.data.content=i.applySmallSegmentGrouping(this.options.data.content,this.options.data.smallSegmentGrouping)),this.options.colors=i.initSegmentColors(this),this.totalSize=u.getTotalPieSize(this.options.data.content);for(var e=this.options.labels.percentage.decimalPlaces,t=0;te.getDygraph().getArea().h-10)return"ANNOTATIONS";if(r<15)return"ANOMALY_RATE";for(var o=n[0],i=Math.abs(n[0].canvasy-r),a=1;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&E.length>1,stackedGraphNaNFill:"none",plotter:c,errorBars:b,axes:{x:a?{ticker:r.default.dateTicker,axisLabelFormatter:t.formatXAxis,axisLabelWidth:60}:{drawAxis:!1},y:u?y(y(y({},O&&{ticker:O}),{},{axisLabelFormatter:S},l&&{axisLabelWidth:l}),{},{pixelsPerLabel:15}):{drawAxis:!1}},ylabel:t.getAttribute("hasYlabel")&&t.getUnitSign({long:!0,real:(0,s.isHeatmap)(o)})}},k=function(){var e=m.chart.getThemeAttribute("themeGridColor");return{axisLineColor:e,gridLineColor:e}},P=function(){var e=t.getPayloadDimensionIds(),n=t.getPayload().labels;if(null==e||!e.length||null==n||!n.length)return{visibility:!1};var r=n.length-e.length,o=Array(r>0?r:0).fill(!0),i=t.getAttribute("selectedLegendDimensions");return{visibility:[].concat(g(e.map(i.length?t.isDimensionVisible:function(){return!0})),g(o))}},R=function(){var e=t.getAttributes(),n=e.outOfLimits,r=e.getValueRange,o=e.staticValueRange,i=e.chartType,a=t.getPayload(),u=a.data,l=a.labels,c=t.getDateWindow(),f=n||0===u.length;return{file:f?[[0]]:u,labels:f?["X"]:l,dateWindow:c,valueRange:o||((0,s.isHeatmap)(i)?[0,t.getVisibleDimensionIds().length]:r(t,{dygraph:!0}))}},T=function(){return t.isSparkline()?{drawGrid:!1,drawAxis:!1,ylabel:void 0,yLabelWidth:0,highlightCircleSize:3,fillAlpha:1,strokeWidth:0}:null},I=function(){var e=t.getPayloadDimensionIds();return e.length?{colors:e.map(t.selectDimensionColor)}:{}},B=y(y({},m),{},{getChartWidth:function(){return b?b.getArea().w:m.getChartWidth()},getChartHeight:function(){return b?b.getArea().h:100},getPreceded:function(){if(!b)return-1;if(1e3*t.getFirstEntry()l+c)){r.zoomMoved=!0,r.dragEndX=(0,i.dragGetX_)(e,r);var f=r.dragStartX,d=r.dragEndX;o.clearRect(0,0,a.width,a.height),o.fillStyle="rgba(128,128,128,0.3)",o.fillRect(Math.min(f,d),s.y,Math.abs(d-f),s.h),r.prevEndX=d,n=d}}},a=function o(i,a,s){if(s.isZooming){a.clearZoomRect_(),s.destroy();var u=function(e){return-1===n||Math.abs(t-n)<5?null:[Math.round(e.toDataXCoord(t)/1e3),Math.round(e.toDataXCoord(n)/1e3)].sort((function(e,t){return e-t}))}(a);e.sdk.trigger("highlightEnd",e.chart,u)}e.off("mousemove",r),e.off("mouseup",o)};return e.on("mousedown",(function(i,s,u){e.sdk.trigger("highlightStart",e.chart),u.initializeMouseDown(i,s,u),o.default.startZoom(i,s,u),t=u.dragStartX,n=-1,e.on("mousemove",r).on("mouseup",a)}))}},37108:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(7494))&&r.__esModule?r:{default:r},i=n(72247);t.default=function(e){var t,n,r=function(e,t,r){if(r.isZooming){var o=t.canvas_ctx_,a=t.canvas_,s=a.getBoundingClientRect();if(!(e.pageYs.bottom)){r.zoomMoved=!0,r.dragEndY=(0,i.dragGetY_)(e,r);var u=r.dragStartY,l=r.dragEndY,c=t.getArea();o.clearRect(0,0,a.width,a.height),o.fillStyle="rgba(128,128,128,0.3)",o.fillRect(c.x,Math.min(u,l),c.w,Math.abs(l-u)),r.prevEndY=l,n=l}}},a=function o(i,a,s){if(s.isZooming){a.clearZoomRect_(),s.destroy();var u=-1===n||Math.abs(t-n)<5?null:[a.toDataYCoord(t),a.toDataYCoord(n)].sort((function(e,t){return e-t}));e.sdk.trigger("highlightVerticalEnd",e.chart,u)}e.off("mousemove",r),e.off("mouseup",o)};return e.on("mousedown",(function(i,s,u){e.sdk.trigger("highlightVerticalStart",e.chart),u.initializeMouseDown(i,s,u),o.default.startZoom(i,s,u),t=u.dragStartY,n=-1,e.on("mousemove",r).on("mouseup",a)}))}},1991:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(41062),o={warning:"#F9A825",critical:"#FF4136",clear:"#00AB44"};t.default=function(e,t){var n=e.chart.getAttribute("overlays")[t],i=n.when,a=n.status,s=e.getDygraph(),u=s.getArea().h,l=s.hidden_ctx_,c=(0,r.getArea)(s,[i,i]);if(!c)return(0,r.trigger)(e,t);var f=c.from;(0,r.trigger)(e,t,c),l.save(),l.beginPath(),l.moveTo(f-1,0),l.lineTo(f-1,u),l.globalAlpha=1,l.lineWidth=2,l.setLineDash([4,4]),l.strokeStyle=o[a],l.stroke(),l.closePath(),l.restore()}},3288:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(41062),o={warning:"#FFF8E1",critical:"#FFEBEF",clear:"#E5F5E8"},i={warning:"#FFC300",critical:"#F59B9B",clear:"#68C47D"},a={warning:"#F9A825",critical:"#FF4136",clear:"#00AB44"};t.default=function(e,t){var n=e.chart.getAttribute("overlays")[t],s=n.whenTriggered,u=n.whenLast,l=void 0===u?Math.floor((new Date).getTime()/1e3):u,c=n.status,f=e.getDygraph(),d=f.getArea().h,p=f.hidden_ctx_,h=(0,r.getArea)(f,[s,l]);if(!h)return(0,r.trigger)(e,t);var g=h.from,v=h.width,m=h.to;(0,r.trigger)(e,t,h),p.save(),p.beginPath(),p.rect(g,0,v,d-1),p.fillStyle=i[c],p.globalAlpha=.1,p.fill();p.beginPath(),p.moveTo(g,0),p.lineTo(g,d),p.globalAlpha=1,p.lineWidth=2,p.setLineDash([4,4]),p.strokeStyle=o[c],p.stroke(),p.beginPath(),p.moveTo(m-2,0),p.lineTo(m-2,d),p.strokeStyle=a[c],p.stroke(),p.closePath(),p.restore()}},41062:function(e,t){"use strict";t.__esModule=!0,t.trigger=t.getArea=void 0;t.getArea=function(e,t){var n=e.xAxisRange(),r=n[0],o=n[1],i=1e3*t[0],a=1e3*t[1];if(ao)return null;var s=Math.max(r,i),u=Math.min(o,a),l=e.toDomXCoord(s),c=e.toDomXCoord(u);return{from:l,to:c,width:c-l}};t.trigger=function(e,t,n){return requestAnimationFrame((function(){return e.trigger("overlayedAreaChanged:"+t,n)}))}},4241:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(41062);t.default=function(e,t){var n=e.chart.getAttribute("overlays")[t].range;if(n){var o=e.getDygraph(),i=o.getArea().h,a=o.hidden_ctx_,s=(0,r.getArea)(o,n);if(!s)return(0,r.trigger)(e,t);var u=s.from,l=s.width;(0,r.trigger)(e,t,s),a.save(),a.beginPath(),a.rect(u,0,l,i-1),a.fillStyle="rgba(207, 213, 218, 0.12)",a.fill(),a.beginPath(),a.rect(u,0,0,i-1),a.rect(u+l,0,0,i-1),a.fill(),a.setLineDash([2,7]),a.lineWidth=1,a.strokeStyle="#CFD5DA",a.stroke(),a.stroke(),a.closePath(),a.restore()}}},34613:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(82415))&&r.__esModule?r:{default:r};t.default=function(e){var t=null,n=function(t){var n=e.chart.getAttribute("overlays")[t].type,r=o.default[n];r&&r(e,t)},r=function(){var t=e.chart.getAttribute("overlays");Object.keys(t).forEach(n)},i=function(){var t=e.getDygraph();t&&t.renderGraph_(!1)},a=function(){t&&(i(),t(),t=null)};return{toggle:function(){var n=e.chart.getAttribute("overlays");if(!Object.keys(n).length)return a();t?i():t=e.on("underlayCallback",r)},destroy:a}}},85362:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(41062);t.default=function(e,t){var n=e.getDygraph(),o=n.xAxisRange()[1],i=o/1e3,a=e.chart.getFirstEntry(),s=e.chart.getAttributes(),u=s.outOfLimits,l=s.error;if(u||a&&!(a>i)||l){var c=u||l?[o,o]:[a,a],f=(0,r.getArea)(n,c);(0,r.trigger)(e,t,f)}}},82415:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(1991)),o=s(n(3288)),i=s(n(4241)),a=s(n(85362));function s(e){return e&&e.__esModule?e:{default:e}}var u={alarm:r.default,alarmRange:o.default,highlight:i.default,proceeded:a.default};t.default=u},9806:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(35890);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n(r||0)?e:r||0:e}),0);n.strokeStyle=n.fillStyle=s(i),n.fillRect(r-a/2,0,a,15),n.strokeRect(r-a/2,0,a,15)}))}}}},43492:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(93501);t.default=function(e){return function(t){if(e&&0===t.seriesIndex){var n=e.chart.getVisibleDimensionIds(),o=e.chart.getVisibleDimensionIndexesById(),i=t.dygraph,a=t.drawingContext,s=t.allSeriesPoints,u=i.layout_.setNames,l=1/0;s.forEach((function(e){var t=e[1].canvasx-e[0].canvasx;t1?o.length-1:1));n.fillRect(r,e.canvasy,s/o.length,i-e.canvasy),n.strokeRect(r,e.canvasy,s/o.length,i-e.canvasy)}))}))}}}},60810:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(96556);t.default=function(){return function(e){var t=e.drawingContext,n=e.points,o=e.dygraph.toDomYCoord(0);t.fillStyle=(0,r.darkenColor)(e.color);var i=n[1].canvasx-n[0].canvasx,a=Math.floor(2/3*i);n.forEach((function(e){var n=e.canvasx;t.fillRect(n-a/2,e.canvasy,a,o-e.canvasy),t.strokeRect(n-a/2,e.canvasy,a,o-e.canvasy)}))}}},35484:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(93501);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nf));u++);for(h>g&&(p*=-1),s=0;s<=c;s++)l=h+s*p,d.push({v:l})}var x=o("axisLabelFormatter");for(s=0;s.08}))),[{label_v:S+C,label:"i"}])}},76081:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(26712)),o=s(n(58960)),i=n(24298),a=s(n(93492));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nt?t:e.clientHeight);e.firstChild.G__height=n,e.firstChild.style.height=n+"px";var r=t;e.firstChild.G__width=r,e.firstChild.style.width=r+"px",p.setOptions({}),p.update(!0),d.trigger("resize")}));var m=t.getAttributes().loaded;n=(0,i.unregister)(t.onAttributeChange("hoverX",v),!m&&t.onceAttributeChange("loaded",v),t.onAttributeChange("theme",(function(){var e=h(),t=e.color,n=e.strokeColor;p.setOptions({strokeColor:n,pointer:{color:t}})})));var y=e.clientWidth,b=.9*(e.clientHeight>y?y:e.clientHeight);e.firstChild.G__height=b,e.firstChild.style.height=b+"px";var w=y;e.firstChild.G__width=w,e.firstChild.style.width=w+"px",p.setOptions({}),d.trigger("resize"),v()}},unmount:function(){n&&n(),c&&c(),p=null,s=null,l=null,d.unmount()},render:v,getMinMax:g})}},63902:function(e,t){"use strict";t.__esModule=!0,t.default=void 0;var n=function(e,t){for(var n in t.prototype)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},r=function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return n},o=function(e){return"#"===e.charAt(0)?e.substring(1,7):e};function i(e,t){null==e&&(e=!0),this.clear=null==t||t,e&&l.add(this)}function a(){return a.__super__.constructor.apply(this,arguments)}function s(e){if(this.gauge=e,void 0===this.gauge)throw new Error("The element isn't defined.");this.ctx=this.gauge.ctx,this.canvas=this.gauge.canvas,s.__super__.constructor.call(this,!1,!1),this.setOptions()}function u(e){var t,n;this.canvas=e,u.__super__.constructor.call(this),this.percentColors=null,"undefined"!==typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas)),this.ctx=this.canvas.getContext("2d"),t=this.canvas.clientHeight,n=this.canvas.clientWidth,this.canvas.height=t,this.canvas.width=n,this.gp=[new s(this)],this.setOptions()}i.prototype.animationSpeed=32,i.prototype.update=function(e){var t;return null==e&&(e=!1),!(!e&&this.displayedValue===this.value)&&(this.ctx&&this.clear&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),t=this.value-this.displayedValue,Math.abs(t/this.animationSpeed)<=.001?this.displayedValue=this.value:this.displayedValue=this.displayedValue+t/this.animationSpeed,this.render(),!0)},n(a,i),a.prototype.displayScale=1,a.prototype.forceUpdate=!0,a.prototype.setMinValue=function(e,t){var n,r,o,i,a;if(this.minValue=e,null==t&&(t=!0),t){for(this.displayedValue=this.minValue,a=[],r=0,o=(i=this.gp||[]).length;r.5&&(this.options.angle=.5),this.configDisplayScale(),this},a.prototype.configDisplayScale=function(){var e,t,n,r;return!1===this.options.highDpiSupport?delete this.displayScale:(t=window.devicePixelRatio||1,e=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,this.displayScale=t/e),r=this.canvas.G__width||this.canvas.width,n=this.canvas.G__height||this.canvas.height,this.canvas.width=r*this.displayScale,this.canvas.height=n*this.displayScale,this.canvas.style.width=r+"px",this.canvas.style.height=n+"px",this.canvas.G__width=r,this.canvas.G__height=n,this},a.prototype.parseValue=function(e){return e=parseFloat(e)||Number(e),isFinite(e)?e:0},n(s,i),s.prototype.displayedValue=0,s.prototype.value=0,s.prototype.options={strokeWidth:.035,length:.1,color:"#000000",iconPath:null,iconScale:1,iconAngle:0},s.prototype.img=null,s.prototype.setOptions=function(e){if(null==e&&(e=null),this.options=r(this.options,e),this.length=2*this.gauge.radius*this.gauge.options.radiusScale*this.options.length,this.strokeWidth=this.canvas.height*this.options.strokeWidth,this.maxValue=this.gauge.maxValue,this.minValue=this.gauge.minValue,this.animationSpeed=this.gauge.animationSpeed,this.options.angle=this.gauge.options.angle,this.options.iconPath)return this.img=new Image,this.img.src=this.options.iconPath},s.prototype.render=function(){var e,t,n,r,o,i,a,s,u;if(e=this.gauge.getAngle.call(this,this.displayedValue),s=Math.round(this.length*Math.cos(e)),u=Math.round(this.length*Math.sin(e)),i=Math.round(this.strokeWidth*Math.cos(e-Math.PI/2)),a=Math.round(this.strokeWidth*Math.sin(e-Math.PI/2)),t=Math.round(this.strokeWidth*Math.cos(e+Math.PI/2)),n=Math.round(this.strokeWidth*Math.sin(e+Math.PI/2)),this.ctx.beginPath(),this.ctx.fillStyle=this.options.color,this.ctx.arc(0,0,this.strokeWidth,0,2*Math.PI,!1),this.ctx.fill(),this.ctx.beginPath(),this.ctx.moveTo(i,a),this.ctx.lineTo(s,u),this.ctx.lineTo(t,n),this.ctx.fill(),this.img)return r=Math.round(this.img.width*this.options.iconScale),o=Math.round(this.img.height*this.options.iconScale),this.ctx.save(),this.ctx.translate(s,u),this.ctx.rotate(e+Math.PI/180*(90+this.options.iconAngle)),this.ctx.drawImage(this.img,-r/2,-o/2,r,o),this.ctx.restore()},n(u,a),u.prototype.elem=null,u.prototype.value=[20],u.prototype.maxValue=80,u.prototype.minValue=0,u.prototype.displayedAngle=0,u.prototype.displayedValue=0,u.prototype.lineWidth=40,u.prototype.paddingTop=.1,u.prototype.paddingBottom=.1,u.prototype.percentColors=null,u.prototype.options={colorStart:"#6fadcf",colorStop:void 0,gradientType:0,strokeColor:"#e0e0e0",pointer:{length:.8,strokeWidth:.035,iconScale:1},angle:.15,lineWidth:.44,radiusScale:1,limitMax:!1,limitMin:!1},u.prototype.setOptions=function(e){var t,n,r,o,i;for(null==e&&(e=null),u.__super__.setOptions.call(this,e),this.configPercentColors(),this.extraPadding=0,this.options.angle<0&&(o=Math.PI*(1+this.options.angle),this.extraPadding=Math.sin(o)),this.availableHeight=this.canvas.height*(1-this.paddingTop-this.paddingBottom),this.lineWidth=this.availableHeight*this.options.lineWidth,this.radius=(this.availableHeight-this.lineWidth/2)/(1+this.extraPadding),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),n=0,r=(i=this.gp).length;n=i;n=0<=i?++r:--r)s=parseInt(o(this.options.percentColors[n][1]).substring(0,2),16),t=parseInt(o(this.options.percentColors[n][1]).substring(2,4),16),e=parseInt(o(this.options.percentColors[n][1]).substring(4,6),16),a.push(this.percentColors[n]={pct:this.options.percentColors[n][0],color:{r:s,g:t,b:e}});return a}},u.prototype.set=function(e){var t,n,r,o,i,a,u,c,f;for(e instanceof Array||(e=[e]),n=r=0,u=e.length-1;0<=u?r<=u:r>=u;n=0<=u?++r:--r)e[n]=this.parseValue(e[n]);if(e.length>this.gp.length)for(n=o=0,c=e.length-this.gp.length;0<=c?oc;n=0<=c?++o:--o)(t=new s(this)).setOptions(this.options.pointer),this.gp.push(t);else e.lengththis.maxValue?this.options.limitMax?f=this.maxValue:this.maxValue=f+1:f=s;o=0<=s?++i:--i)if(e<=this.percentColors[o].pct){!0===t?(u=this.percentColors[o-1]||this.percentColors[0],r=this.percentColors[o],a=(e-u.pct)/(r.pct-u.pct),n={r:Math.floor(u.color.r*(1-a)+r.color.r*a),g:Math.floor(u.color.g*(1-a)+r.color.g*a),b:Math.floor(u.color.b*(1-a)+r.color.b*a)}):n=this.percentColors[o].color;break}return"rgb("+[n.r,n.g,n.b].join(",")+")"},u.prototype.getColorForValue=function(e,t){var n;return n=(e-this.minValue)/(this.maxValue-this.minValue),this.getColorForPercentage(n,t)},u.prototype.renderTicks=function(e,t,n,r){var o,i,a,s,u,l,c,f,d,p,h,g,v,m,y,b,w,x,_,S;if(e!=={}){for(l=e.divisions||0,x=e.subDivisions||0,a=e.divColor||"#fff",m=e.subColor||"#fff",s=e.divLength||.7,b=e.subLength||.2,d=parseFloat(this.maxValue)-parseFloat(this.minValue),p=parseFloat(d)/parseFloat(e.divisions),y=parseFloat(p)/parseFloat(e.subDivisions),o=parseFloat(this.minValue),i=0+y,u=(f=d/400)*(e.divWidth||1),w=f*(e.subWidth||1),g=[],_=c=0,h=l+1;c0?g.push(function(){var e,t,n;for(n=[],e=0,t=x-1;ethis.maxValue&&(s=this.maxValue),p=this.radius*this.options.radiusScale,g.height&&(this.ctx.lineWidth=this.lineWidth*g.height,d=this.lineWidth/2*(g.offset||1-g.height),p=this.radius*this.options.radiusScale+d),this.ctx.strokeStyle=g.strokeStyle,this.ctx.beginPath(),this.ctx.arc(0,0,p,this.getAngle(u),this.getAngle(s),!1),this.ctx.stroke();else void 0!==this.options.customFillStyle?t=this.options.customFillStyle(this):null!==this.percentColors?t=this.getColorForValue(this.displayedValue,this.options.generateGradient):void 0!==this.options.colorStop?((t=0===this.options.gradientType?this.ctx.createRadialGradient(h,n,9,h,n,70):this.ctx.createLinearGradient(0,0,h,0)).addColorStop(0,this.options.colorStart),t.addColorStop(1,this.options.colorStop)):t=this.options.colorStart,this.ctx.strokeStyle=t,this.ctx.beginPath(),this.ctx.arc(h,n,l,(1+this.options.angle)*Math.PI,e,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.stroke(),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(h,n,l,e,(2-this.options.angle)*Math.PI,!1),this.ctx.stroke(),this.ctx.save(),this.ctx.translate(h,n);for(this.options.renderTicks&&this.renderTicks(this.options.renderTicks,h,n,l),this.ctx.restore(),this.ctx.translate(h,n),o=0,a=(f=this.gp).length;o=0;o+=-1)r=s[o],l.elements.splice(r,1);return l.animId=t?null:requestAnimationFrame(l.run)}if(!1===e)return!0===l.animId&&cancelAnimationFrame(l.animId),l.animId=requestAnimationFrame(l.run)}},c=u;t.default=c},1271:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=n(24298),i=(r=n(58960))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,s);return l(l({},a),{},{children:t,active:a.active||a["aria-expanded"],hoverIndicator:r,padding:i})})).withConfig({displayName:"button__Button",componentId:"sc-oqiqxn-0"})(["border:initial;padding:",";height:fit-content;line-height:0;background:",";cursor:pointer;svg{fill:",";stroke:",";}"," &:hover{",";svg{fill:",";stroke:",";}}"],(function(e){return e.padding}),(function(e){var t=e.theme;return e.active?(0,i.getColor)("borderSecondary")({theme:t}):"initial"}),(function(e){var t=e.active,n=e.disabled,r=e.theme;return e.stroked?"none":(0,i.getColor)(f({active:t,disabled:n}))({theme:r})}),(function(e){var t=e.active,n=e.disabled,r=e.theme;return e.stroked?(0,i.getColor)(f({active:t,disabled:n}))({theme:r}):"none"}),(function(e){var t=e.active,n=e.hoverIndicator;return(t||n)&&"\n border-radius: 4px;\n "}),(function(e){var t=e.theme,n=e.hoverIndicator,r=e.disabled;return n&&!r&&"background: "+(0,i.getColor)("borderSecondary")({theme:t})+";"}),(function(e){var t=e.theme,n=e.stroked,r=e.disabled;return n?"none":(0,i.getColor)(f({defaultColor:"textDescription",disabled:r}))({theme:t})}),(function(e){var t=e.theme,n=e.stroked,r=e.disabled;return n?(0,i.getColor)(f({defaultColor:"textDescription",disabled:r}))({theme:t}):"none"})),p=(0,a.withTooltip)(d);t.default=p},3701:function(e,t,n){"use strict";t.__esModule=!0,t.default=t.Button=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(67294)),o=u(n(2568)),i=n(10114),a=u(n(71896));t.Button=a.default;var s=["svg","size","width","height"];function u(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t