%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/suporte.iigd.com.br/public/lib/
Upload File :
Create Path :
Current File : /var/www/projetos/suporte.iigd.com.br/public/lib/chartist.min.js

(()=>{var e={478:function(e,t,i){var n,s;(function(r,a){if(true){!(n=[i(476)],s=function(e){return r.returnExportsGlobal=a(e)}.apply(t,n),s!==undefined&&(e.exports=s))}else{}})(this,(function(e){"use strict";var t={className:"",classNames:false,removeAll:false,legendNames:false,clickable:true,onClick:null,position:"top"};e.plugins=e.plugins||{};e.plugins.legend=function(i){function n(e,t){return e-t}if(i&&i.position){if(!(i.position==="top"||i.position==="bottom"||i.position instanceof HTMLElement)){throw Error("The position you entered is not a valid position")}if(i.position instanceof HTMLElement){var s=i.position;delete i.position}}i=e.extend({},t,i);if(s){i.position=s}return function t(s){var r=s.container.querySelector(".ct-legend");if(r){r.parentNode.removeChild(r)}if(i.clickable){var a=s.data.series.map((function(t,i){if(typeof t!=="object"){t={value:t}}t.className=t.className||s.options.classNames.series+"-"+e.alphaNumerate(i);return t}));s.data.series=a}var o=document.createElement("ul"),l=s instanceof e.Pie;o.className="ct-legend";if(s instanceof e.Pie){o.classList.add("ct-legend-inside")}if(typeof i.className==="string"&&i.className.length>0){o.classList.add(i.className)}if(s.options.width){o.style.cssText="width: "+s.options.width+"px;margin: 0 auto;"}var u=[],c=s.data.series.slice(0);var h=s.data.series,f=l&&s.data.labels&&s.data.labels.length;if(f){var d=s.data.labels.slice(0);h=s.data.labels}h=i.legendNames||h;var p=Array.isArray(i.classNames)&&i.classNames.length===h.length;h.forEach((function(e,t){var n=document.createElement("li");n.className="ct-series-"+t;if(p){n.className+=" "+i.classNames[t]}n.setAttribute("data-legend",t);n.textContent=e.name||e;o.appendChild(n)}));s.on("created",(function(e){if(!(i.position instanceof HTMLElement)){switch(i.position){case"top":s.container.insertBefore(o,s.container.childNodes[0]);break;case"bottom":s.container.insertBefore(o,null);break}}else{i.position.insertBefore(o,null)}}));if(i.clickable){o.addEventListener("click",(function(e){var t=e.target;if(t.parentNode!==o||!t.hasAttribute("data-legend"))return;e.preventDefault();var r=parseInt(t.getAttribute("data-legend")),a=u.indexOf(r);if(a>-1){u.splice(a,1);t.classList.remove("inactive")}else{if(!i.removeAll){if(s.data.series.length>1){u.push(r);t.classList.add("inactive")}else{u=[];var l=Array.prototype.slice.call(o.childNodes);l.forEach((function(e){e.classList.remove("inactive")}))}}else{u.push(r);t.classList.add("inactive")}}var h=c.slice(0);if(f){var p=d.slice(0)}u.sort(n).reverse();u.forEach((function(e){h.splice(e,1);if(f){p.splice(e,1)}}));if(i.onClick){i.onClick(s,e)}s.data.series=h;if(f){s.data.labels=p}s.update()}))}}};return e.plugins.legend}))},480:function(e,t,i){var n,s;(function(r,a){if(true){!(n=[i(476)],s=function(e){return r.returnExportsGlobal=a(e)}.apply(t,n),s!==undefined&&(e.exports=s))}else{}})(this,(function(e){(function(e,t,i){"use strict";var n={labelClass:"ct-label",labelOffset:{x:0,y:-10},textAnchor:"middle",align:"center",labelInterpolationFnc:i.noop};var s={point:function(e){return{x:e.x,y:e.y}},bar:{left:function(e){return{x:e.x1,y:e.y1}},center:function(e){return{x:e.x1+(e.x2-e.x1)/2,y:e.y1}},right:function(e){return{x:e.x2,y:e.y1}}}};i.plugins=i.plugins||{};i.plugins.ctPointLabels=function(e){e=i.extend({},n,e);function t(t,i){var n=i.value.x!==undefined&&i.value.y?i.value.x+", "+i.value.y:i.value.y||i.value.x;i.group.elem("text",{x:t.x+e.labelOffset.x,y:t.y+e.labelOffset.y,style:"text-anchor: "+e.textAnchor},e.labelClass).text(e.labelInterpolationFnc(n))}return function n(r){if(r instanceof i.Line||r instanceof i.Bar){r.on("draw",(function(i){var n=s[i.type]&&s[i.type][e.align]||s[i.type];if(n){t(n(i),i)}}))}}}})(window,document,e);return e.plugins.ctPointLabels}))},479:function(e,t,i){var n,s;(function(r,a){if(r===undefined&&window!==undefined)r=window;if(true){!(n=[i(476)],s=function(e){return r["Chartist.plugins.tooltip"]=a(e)}.apply(t,n),s!==undefined&&(e.exports=s))}else{}})(this,(function(e){(function(e,t,i){"use strict";var n={currency:undefined,currencyFormatCallback:undefined,tooltipOffset:{x:0,y:-20},anchorToPoint:false,appendToBody:true,class:undefined,pointClass:"ct-point"};i.plugins=i.plugins||{};i.plugins.tooltip=function(l){l=i.extend({},n,l);return function n(u){var c=l.pointClass;if(u instanceof i.Bar){c="ct-bar"}else if(u instanceof i.Pie){if(u.options.donut){c=u.options.donutSolid?"ct-slice-donut-solid":"ct-slice-donut"}else{c="ct-slice-pie"}}var h=u.container;var f=false;var d=o(h);var p;if(!l.appendToBody){p=h.querySelector(".chartist-tooltip")}else{p=t.querySelector(".chartist-tooltip")}if(!p){p=t.createElement("div");p.className=!l.class?"chartist-tooltip":"chartist-tooltip "+l.class;if(!l.appendToBody){h.appendChild(p)}else{t.body.appendChild(p)}}var m=p.offsetHeight;var v=p.offsetWidth;b(p);function g(e,t,i){h.addEventListener(e,(function(e){if(!t||s(e.target,t))i(e)}))}g("mouseover",c,(function(e){var n=e.target;var s="";var c=u instanceof i.Pie?n:n.parentNode;var f=c?n.parentNode.getAttribute("ct:meta")||n.parentNode.getAttribute("ct:series-name"):"";var g=n.getAttribute("ct:meta")||f||"";var b=!!g;var w=n.getAttribute("ct:value");if(l.transformTooltipTextFnc&&typeof l.transformTooltipTextFnc==="function"){w=l.transformTooltipTextFnc(w)}if(l.tooltipFnc&&typeof l.tooltipFnc==="function"){s=l.tooltipFnc(g,w)}else{if(l.metaIsHTML){var E=t.createElement("textarea");E.innerHTML=g;g=E.value}g='<span class="chartist-tooltip-meta">'+g+"</span>";if(b){s+=g+"<br>"}else{if(u instanceof i.Pie){var S=r(n,"ct-label");if(S){s+=a(S)+"<br>"}}}if(w){if(l.currency){if(l.currencyFormatCallback!=undefined){w=l.currencyFormatCallback(w,l)}else{w=l.currency+w.replace(/(\d)(?=(\d{3})+(?:\.\d+)?$)/g,"$1,")}}w='<span class="chartist-tooltip-value">'+w+"</span>";s+=w}}if(s){p.innerHTML=s;m=p.offsetHeight;v=p.offsetWidth;if(l.appendToBody!==true){d=o(h)}if(p.style.display!=="absolute"){p.style.display="absolute"}x(e);y(p);m=p.offsetHeight;v=p.offsetWidth}}));g("mouseout",c,(function(){b(p)}));g("mousemove",null,(function(e){if(l.anchorToPoint===false&&f){x(e)}}));function x(t){m=m||p.offsetHeight;v=v||p.offsetWidth;var i=-v/2+l.tooltipOffset.x;var n=-m+l.tooltipOffset.y;var s=l.anchorToPoint===true&&t.target.x2&&t.target.y2;if(l.appendToBody===true){if(s){var r=h.getBoundingClientRect();var a=t.target.x2.baseVal.value+r.left+e.pageXOffset;var o=t.target.y2.baseVal.value+r.top+e.pageYOffset;p.style.left=a+i+"px";p.style.top=o+n+"px"}else{p.style.left=t.pageX+i+"px";p.style.top=t.pageY+n+"px"}}else{var u=d.getBoundingClientRect();var c=-u.left-e.pageXOffset+i;var f=-u.top-e.pageYOffset+n;if(s){var r=h.getBoundingClientRect();var a=t.target.x2.baseVal.value+r.left+e.pageXOffset;var o=t.target.y2.baseVal.value+r.top+e.pageYOffset;p.style.left=a+c+"px";p.style.top=o+f+"px"}else{p.style.left=t.pageX+c+"px";p.style.top=t.pageY+f+"px"}}}function y(e){f=true;if(!s(e,"tooltip-show")){e.className=e.className+" tooltip-show"}}function b(e){f=false;var t=new RegExp("tooltip-show"+"\\s*","gi");e.className=e.className.replace(t,"").trim()}}};function s(e,t){return(" "+e.getAttribute("class")+" ").indexOf(" "+t+" ")>-1}function r(e,t){do{e=e.nextSibling}while(e&&!s(e,t));return e}function a(e){return e.innerText||e.textContent}function o(i){if(o in i){var n=i.offsetParent;if(!n){n=t.body.parentElement}return n}var n=i.parentNode;if(!n){return t.body.parentElement}if(e.getComputedStyle(n).position!=="static"){return n}else if(n.tagName==="BODY"){return n.parentElement}else{return o(n)}}})(window,document,e);return e.plugins.tooltip}))},476:function(e,t,i){var n,s;(function(i,r){if(true){!(n=[],s=function(){return i["Chartist"]=r()}.apply(t,n),s!==undefined&&(e.exports=s))}else{}})(this,(function(){var e={version:"0.11.4"};(function(e,t){"use strict";var i=e.window;var n=e.document;t.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"};t.noop=function(e){return e};t.alphaNumerate=function(e){return String.fromCharCode(97+e%26)};t.extend=function(e){var i,n,s;e=e||{};for(i=1;i<arguments.length;i++){n=arguments[i];for(var r in n){s=n[r];if(typeof s==="object"&&s!==null&&!(s instanceof Array)){e[r]=t.extend(e[r],s)}else{e[r]=s}}}return e};t.replaceAll=function(e,t,i){return e.replace(new RegExp(t,"g"),i)};t.ensureUnit=function(e,t){if(typeof e==="number"){e=e+t}return e};t.quantity=function(e){if(typeof e==="string"){var t=/^(\d+)\s*(.*)$/g.exec(e);return{value:+t[1],unit:t[2]||undefined}}return{value:e}};t.querySelector=function(e){return e instanceof Node?e:n.querySelector(e)};t.times=function(e){return Array.apply(null,new Array(e))};t.sum=function(e,t){return e+(t?t:0)};t.mapMultiply=function(e){return function(t){return t*e}};t.mapAdd=function(e){return function(t){return t+e}};t.serialMap=function(e,i){var n=[],s=Math.max.apply(null,e.map((function(e){return e.length})));t.times(s).forEach((function(t,s){var r=e.map((function(e){return e[s]}));n[s]=i.apply(null,r)}));return n};t.roundWithPrecision=function(e,i){var n=Math.pow(10,i||t.precision);return Math.round(e*n)/n};t.precision=8;t.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};t.serialize=function(e){if(e===null||e===undefined){return e}else if(typeof e==="number"){e=""+e}else if(typeof e==="object"){e=JSON.stringify({data:e})}return Object.keys(t.escapingMap).reduce((function(e,i){return t.replaceAll(e,i,t.escapingMap[i])}),e)};t.deserialize=function(e){if(typeof e!=="string"){return e}e=Object.keys(t.escapingMap).reduce((function(e,i){return t.replaceAll(e,t.escapingMap[i],i)}),e);try{e=JSON.parse(e);e=e.data!==undefined?e.data:e}catch(e){}return e};t.createSvg=function(e,i,n,s){var r;i=i||"100%";n=n||"100%";Array.prototype.slice.call(e.querySelectorAll("svg")).filter((function e(i){return i.getAttributeNS(t.namespaces.xmlns,"ct")})).forEach((function t(i){e.removeChild(i)}));r=new t.Svg("svg").attr({width:i,height:n}).addClass(s);r._node.style.width=i;r._node.style.height=n;e.appendChild(r._node);return r};t.normalizeData=function(e,i,n){var s;var r={raw:e,normalized:{}};r.normalized.series=t.getDataArray({series:e.series||[]},i,n);if(r.normalized.series.every((function(e){return e instanceof Array}))){s=Math.max.apply(null,r.normalized.series.map((function(e){return e.length})))}else{s=r.normalized.series.length}r.normalized.labels=(e.labels||[]).slice();Array.prototype.push.apply(r.normalized.labels,t.times(Math.max(0,s-r.normalized.labels.length)).map((function(){return""})));if(i){t.reverseData(r.normalized)}return r};t.safeHasProperty=function(e,t){return e!==null&&typeof e==="object"&&e.hasOwnProperty(t)};t.isDataHoleValue=function(e){return e===null||e===undefined||typeof e==="number"&&isNaN(e)};t.reverseData=function(e){e.labels.reverse();e.series.reverse();for(var t=0;t<e.series.length;t++){if(typeof e.series[t]==="object"&&e.series[t].data!==undefined){e.series[t].data.reverse()}else if(e.series[t]instanceof Array){e.series[t].reverse()}}};t.getDataArray=function(e,i,n){function s(e){if(t.safeHasProperty(e,"value")){return s(e.value)}else if(t.safeHasProperty(e,"data")){return s(e.data)}else if(e instanceof Array){return e.map(s)}else if(t.isDataHoleValue(e)){return undefined}else{if(n){var i={};if(typeof n==="string"){i[n]=t.getNumberOrUndefined(e)}else{i.y=t.getNumberOrUndefined(e)}i.x=e.hasOwnProperty("x")?t.getNumberOrUndefined(e.x):i.x;i.y=e.hasOwnProperty("y")?t.getNumberOrUndefined(e.y):i.y;return i}else{return t.getNumberOrUndefined(e)}}}return e.series.map(s)};t.normalizePadding=function(e,t){t=t||0;return typeof e==="number"?{top:e,right:e,bottom:e,left:e}:{top:typeof e.top==="number"?e.top:t,right:typeof e.right==="number"?e.right:t,bottom:typeof e.bottom==="number"?e.bottom:t,left:typeof e.left==="number"?e.left:t}};t.getMetaData=function(e,t){var i=e.data?e.data[t]:e[t];return i?i.meta:undefined};t.orderOfMagnitude=function(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)};t.projectLength=function(e,t,i){return t/i.range*e};t.getAvailableHeight=function(e,i){return Math.max((t.quantity(i.height).value||e.height())-(i.chartPadding.top+i.chartPadding.bottom)-i.axisX.offset,0)};t.getHighLow=function(e,i,n){i=t.extend({},i,n?i["axis"+n.toUpperCase()]:{});var s={high:i.high===undefined?-Number.MAX_VALUE:+i.high,low:i.low===undefined?Number.MAX_VALUE:+i.low};var r=i.high===undefined;var a=i.low===undefined;function o(e){if(e===undefined){return undefined}else if(e instanceof Array){for(var t=0;t<e.length;t++){o(e[t])}}else{var i=n?+e[n]:+e;if(r&&i>s.high){s.high=i}if(a&&i<s.low){s.low=i}}}if(r||a){o(e)}if(i.referenceValue||i.referenceValue===0){s.high=Math.max(i.referenceValue,s.high);s.low=Math.min(i.referenceValue,s.low)}if(s.high<=s.low){if(s.low===0){s.high=1}else if(s.low<0){s.high=0}else if(s.high>0){s.low=0}else{s.high=1;s.low=0}}return s};t.isNumeric=function(e){return e===null?false:isFinite(e)};t.isFalseyButZero=function(e){return!e&&e!==0};t.getNumberOrUndefined=function(e){return t.isNumeric(e)?+e:undefined};t.isMultiValue=function(e){return typeof e==="object"&&("x"in e||"y"in e)};t.getMultiValue=function(e,i){if(t.isMultiValue(e)){return t.getNumberOrUndefined(e[i||"y"])}else{return t.getNumberOrUndefined(e)}};t.rho=function(e){if(e===1){return e}function t(e,i){if(e%i===0){return i}else{return t(i,e%i)}}function i(e){return e*e+1}var n=2,s=2,r;if(e%2===0){return 2}do{n=i(n)%e;s=i(i(s))%e;r=t(Math.abs(n-s),e)}while(r===1);return r};t.getBounds=function(e,i,n,s){var r,a=0,o,l,u={high:i.high,low:i.low};u.valueRange=u.high-u.low;u.oom=t.orderOfMagnitude(u.valueRange);u.step=Math.pow(10,u.oom);u.min=Math.floor(u.low/u.step)*u.step;u.max=Math.ceil(u.high/u.step)*u.step;u.range=u.max-u.min;u.numberOfSteps=Math.round(u.range/u.step);var c=t.projectLength(e,u.step,u);var h=c<n;var f=s?t.rho(u.range):0;if(s&&t.projectLength(e,1,u)>=n){u.step=1}else if(s&&f<u.step&&t.projectLength(e,f,u)>=n){u.step=f}else{while(true){if(h&&t.projectLength(e,u.step,u)<=n){u.step*=2}else if(!h&&t.projectLength(e,u.step/2,u)>=n){u.step/=2;if(s&&u.step%1!==0){u.step*=2;break}}else{break}if(a++>1e3){throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}}var d=2221e-19;u.step=Math.max(u.step,d);function p(e,t){if(e===(e+=t)){e*=1+(t>0?d:-d)}return e}o=u.min;l=u.max;while(o+u.step<=u.low){o=p(o,u.step)}while(l-u.step>=u.high){l=p(l,-u.step)}u.min=o;u.max=l;u.range=u.max-u.min;var m=[];for(r=u.min;r<=u.max;r=p(r,u.step)){var v=t.roundWithPrecision(r);if(v!==m[m.length-1]){m.push(v)}}u.values=m;return u};t.polarToCartesian=function(e,t,i,n){var s=(n-90)*Math.PI/180;return{x:e+i*Math.cos(s),y:t+i*Math.sin(s)}};t.createChartRect=function(e,i,n){var s=!!(i.axisX||i.axisY);var r=s?i.axisY.offset:0;var a=s?i.axisX.offset:0;var o=e.width()||t.quantity(i.width).value||0;var l=e.height()||t.quantity(i.height).value||0;var u=t.normalizePadding(i.chartPadding,n);o=Math.max(o,r+u.left+u.right);l=Math.max(l,a+u.top+u.bottom);var c={padding:u,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};if(s){if(i.axisX.position==="start"){c.y2=u.top+a;c.y1=Math.max(l-u.bottom,c.y2+1)}else{c.y2=u.top;c.y1=Math.max(l-u.bottom-a,c.y2+1)}if(i.axisY.position==="start"){c.x1=u.left+r;c.x2=Math.max(o-u.right,c.x1+1)}else{c.x1=u.left;c.x2=Math.max(o-u.right-r,c.x1+1)}}else{c.x1=u.left;c.x2=Math.max(o-u.right,c.x1+1);c.y2=u.top;c.y1=Math.max(l-u.bottom,c.y2+1)}return c};t.createGrid=function(e,i,n,s,r,a,o,l){var u={};u[n.units.pos+"1"]=e;u[n.units.pos+"2"]=e;u[n.counterUnits.pos+"1"]=s;u[n.counterUnits.pos+"2"]=s+r;var c=a.elem("line",u,o.join(" "));l.emit("draw",t.extend({type:"grid",axis:n,index:i,group:a,element:c},u))};t.createGridBackground=function(e,t,i,n){var s=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},i,true);n.emit("draw",{type:"gridBackground",group:e,element:s})};t.createLabel=function(e,i,s,r,a,o,l,u,c,h,f){var d;var p={};p[a.units.pos]=e+l[a.units.pos];p[a.counterUnits.pos]=l[a.counterUnits.pos];p[a.units.len]=i;p[a.counterUnits.len]=Math.max(0,o-10);if(h){var m=n.createElement("span");m.className=c.join(" ");m.setAttribute("xmlns",t.namespaces.xhtml);m.innerText=r[s];m.style[a.units.len]=Math.round(p[a.units.len])+"px";m.style[a.counterUnits.len]=Math.round(p[a.counterUnits.len])+"px";d=u.foreignObject(m,t.extend({style:"overflow: visible;"},p))}else{d=u.elem("text",p,c.join(" ")).text(r[s])}f.emit("draw",t.extend({type:"label",axis:a,index:s,group:u,element:d,text:r[s]},p))};t.getSeriesOption=function(e,t,i){if(e.name&&t.series&&t.series[e.name]){var n=t.series[e.name];return n.hasOwnProperty(i)?n[i]:t[i]}else{return t[i]}};t.optionsProvider=function(e,n,s){var r=t.extend({},e),a,o=[],l;function u(e){var o=a;a=t.extend({},r);if(n){for(l=0;l<n.length;l++){var u=i.matchMedia(n[l][0]);if(u.matches){a=t.extend(a,n[l][1])}}}if(s&&e){s.emit("optionsChanged",{previousOptions:o,currentOptions:a})}}function c(){o.forEach((function(e){e.removeListener(u)}))}if(!i.matchMedia){throw"window.matchMedia not found! Make sure you're using a polyfill."}else if(n){for(l=0;l<n.length;l++){var h=i.matchMedia(n[l][0]);h.addListener(u);o.push(h)}}u();return{removeMediaQueryListeners:c,getCurrentOptions:function e(){return t.extend({},a)}}};t.splitIntoSegments=function(e,i,n){var s={increasingX:false,fillHoles:false};n=t.extend({},s,n);var r=[];var a=true;for(var o=0;o<e.length;o+=2){if(t.getMultiValue(i[o/2].value)===undefined){if(!n.fillHoles){a=true}}else{if(n.increasingX&&o>=2&&e[o]<=e[o-2]){a=true}if(a){r.push({pathCoordinates:[],valueData:[]});a=false}r[r.length-1].pathCoordinates.push(e[o],e[o+1]);r[r.length-1].valueData.push(i[o/2])}}return r}})(this||i.g,e);(function(e,t){"use strict";t.Interpolation={};t.Interpolation.none=function(e){var i={fillHoles:false};e=t.extend({},i,e);return function i(n,s){var r=new t.Svg.Path;var a=true;for(var o=0;o<n.length;o+=2){var l=n[o];var u=n[o+1];var c=s[o/2];if(t.getMultiValue(c.value)!==undefined){if(a){r.move(l,u,false,c)}else{r.line(l,u,false,c)}a=false}else if(!e.fillHoles){a=true}}return r}};t.Interpolation.simple=function(e){var i={divisor:2,fillHoles:false};e=t.extend({},i,e);var n=1/Math.max(1,e.divisor);return function i(s,r){var a=new t.Svg.Path;var o,l,u;for(var c=0;c<s.length;c+=2){var h=s[c];var f=s[c+1];var d=(h-o)*n;var p=r[c/2];if(p.value!==undefined){if(u===undefined){a.move(h,f,false,p)}else{a.curve(o+d,l,h-d,f,h,f,false,p)}o=h;l=f;u=p}else if(!e.fillHoles){o=h=u=undefined}}return a}};t.Interpolation.cardinal=function(e){var i={tension:1,fillHoles:false};e=t.extend({},i,e);var n=Math.min(1,Math.max(0,e.tension)),s=1-n;return function i(r,a){var o=t.splitIntoSegments(r,a,{fillHoles:e.fillHoles});if(!o.length){return t.Interpolation.none()([])}else if(o.length>1){var l=[];o.forEach((function(e){l.push(i(e.pathCoordinates,e.valueData))}));return t.Svg.Path.join(l)}else{r=o[0].pathCoordinates;a=o[0].valueData;if(r.length<=4){return t.Interpolation.none()(r,a)}var u=(new t.Svg.Path).move(r[0],r[1],false,a[0]),c;for(var h=0,f=r.length;f-2*!c>h;h+=2){var d=[{x:+r[h-2],y:+r[h-1]},{x:+r[h],y:+r[h+1]},{x:+r[h+2],y:+r[h+3]},{x:+r[h+4],y:+r[h+5]}];if(c){if(!h){d[0]={x:+r[f-2],y:+r[f-1]}}else if(f-4===h){d[3]={x:+r[0],y:+r[1]}}else if(f-2===h){d[2]={x:+r[0],y:+r[1]};d[3]={x:+r[2],y:+r[3]}}}else{if(f-4===h){d[3]=d[2]}else if(!h){d[0]={x:+r[h],y:+r[h+1]}}}u.curve(n*(-d[0].x+6*d[1].x+d[2].x)/6+s*d[2].x,n*(-d[0].y+6*d[1].y+d[2].y)/6+s*d[2].y,n*(d[1].x+6*d[2].x-d[3].x)/6+s*d[2].x,n*(d[1].y+6*d[2].y-d[3].y)/6+s*d[2].y,d[2].x,d[2].y,false,a[(h+2)/2])}return u}}};t.Interpolation.monotoneCubic=function(e){var i={fillHoles:false};e=t.extend({},i,e);return function i(n,s){var r=t.splitIntoSegments(n,s,{fillHoles:e.fillHoles,increasingX:true});if(!r.length){return t.Interpolation.none()([])}else if(r.length>1){var a=[];r.forEach((function(e){a.push(i(e.pathCoordinates,e.valueData))}));return t.Svg.Path.join(a)}else{n=r[0].pathCoordinates;s=r[0].valueData;if(n.length<=4){return t.Interpolation.none()(n,s)}var o=[],l=[],u,c=n.length/2,h=[],f=[],d=[],p=[],m;for(u=0;u<c;u++){o[u]=n[u*2];l[u]=n[u*2+1]}for(u=0;u<c-1;u++){d[u]=l[u+1]-l[u];p[u]=o[u+1]-o[u];f[u]=d[u]/p[u]}h[0]=f[0];h[c-1]=f[c-2];for(u=1;u<c-1;u++){if(f[u]===0||f[u-1]===0||f[u-1]>0!==f[u]>0){h[u]=0}else{h[u]=3*(p[u-1]+p[u])/((2*p[u]+p[u-1])/f[u-1]+(p[u]+2*p[u-1])/f[u]);if(!isFinite(h[u])){h[u]=0}}}m=(new t.Svg.Path).move(o[0],l[0],false,s[0]);for(u=0;u<c-1;u++){m.curve(o[u]+p[u]/3,l[u]+h[u]*p[u]/3,o[u+1]-p[u]/3,l[u+1]-h[u+1]*p[u]/3,o[u+1],l[u+1],false,s[u+1])}return m}}};t.Interpolation.step=function(e){var i={postpone:true,fillHoles:false};e=t.extend({},i,e);return function i(n,s){var r=new t.Svg.Path;var a,o,l;for(var u=0;u<n.length;u+=2){var c=n[u];var h=n[u+1];var f=s[u/2];if(f.value!==undefined){if(l===undefined){r.move(c,h,false,f)}else{if(e.postpone){r.line(c,o,false,l)}else{r.line(a,h,false,f)}r.line(c,h,false,f)}a=c;o=h;l=f}else if(!e.fillHoles){a=o=l=undefined}}return r}}})(this||i.g,e);(function(e,t){"use strict";t.EventEmitter=function(){var e=[];function t(t,i){e[t]=e[t]||[];e[t].push(i)}function i(t,i){if(e[t]){if(i){e[t].splice(e[t].indexOf(i),1);if(e[t].length===0){delete e[t]}}else{delete e[t]}}}function n(t,i){if(e[t]){e[t].forEach((function(e){e(i)}))}if(e["*"]){e["*"].forEach((function(e){e(t,i)}))}}return{addEventHandler:t,removeEventHandler:i,emit:n}}})(this||i.g,e);(function(e,t){"use strict";function i(e){var t=[];if(e.length){for(var i=0;i<e.length;i++){t.push(e[i])}}return t}function n(e,i){var n=i||this.prototype||t.Class;var s=Object.create(n);t.Class.cloneDefinitions(s,e);var r=function(){var e=s.constructor||function(){},i;i=this===t?Object.create(s):this;e.apply(i,Array.prototype.slice.call(arguments,0));return i};r.prototype=s;r.super=n;r.extend=this.extend;return r}function s(){var e=i(arguments);var t=e[0];e.splice(1,e.length-1).forEach((function(e){Object.getOwnPropertyNames(e).forEach((function(i){delete t[i];Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}));return t}t.Class={extend:n,cloneDefinitions:s}})(this||i.g,e);(function(e,t){"use strict";var i=e.window;function n(e,i,n){if(e){this.data=e||{};this.data.labels=this.data.labels||[];this.data.series=this.data.series||[];this.eventEmitter.emit("data",{type:"update",data:this.data})}if(i){this.options=t.extend({},n?this.options:this.defaultOptions,i);if(!this.initializeTimeoutId){this.optionsProvider.removeMediaQueryListeners();this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter)}}if(!this.initializeTimeoutId){this.createChart(this.optionsProvider.getCurrentOptions())}return this}function s(){if(!this.initializeTimeoutId){i.removeEventListener("resize",this.resizeListener);this.optionsProvider.removeMediaQueryListeners()}else{i.clearTimeout(this.initializeTimeoutId)}return this}function r(e,t){this.eventEmitter.addEventHandler(e,t);return this}function a(e,t){this.eventEmitter.removeEventHandler(e,t);return this}function o(){i.addEventListener("resize",this.resizeListener);this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter);this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this));if(this.options.plugins){this.options.plugins.forEach(function(e){if(e instanceof Array){e[0](this,e[1])}else{e(this)}}.bind(this))}this.eventEmitter.emit("data",{type:"initial",data:this.data});this.createChart(this.optionsProvider.getCurrentOptions());this.initializeTimeoutId=undefined}function l(e,i,n,s,r){this.container=t.querySelector(e);this.data=i||{};this.data.labels=this.data.labels||[];this.data.series=this.data.series||[];this.defaultOptions=n;this.options=s;this.responsiveOptions=r;this.eventEmitter=t.EventEmitter();this.supportsForeignObject=t.Svg.isSupported("Extensibility");this.supportsAnimations=t.Svg.isSupported("AnimationEventsAttribute");this.resizeListener=function e(){this.update()}.bind(this);if(this.container){if(this.container.__chartist__){this.container.__chartist__.detach()}this.container.__chartist__=this}this.initializeTimeoutId=setTimeout(o.bind(this),0)}t.Base=t.Class.extend({constructor:l,optionsProvider:undefined,container:undefined,svg:undefined,eventEmitter:undefined,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:n,detach:s,on:r,off:a,version:t.version,supportsForeignObject:false})})(this||i.g,e);(function(e,t){"use strict";var i=e.document;function n(e,n,s,r,a){if(e instanceof Element){this._node=e}else{this._node=i.createElementNS(t.namespaces.svg,e);if(e==="svg"){this.attr({"xmlns:ct":t.namespaces.ct})}}if(n){this.attr(n)}if(s){this.addClass(s)}if(r){if(a&&r._node.firstChild){r._node.insertBefore(this._node,r._node.firstChild)}else{r._node.appendChild(this._node)}}}function s(e,i){if(typeof e==="string"){if(i){return this._node.getAttributeNS(i,e)}else{return this._node.getAttribute(e)}}Object.keys(e).forEach(function(i){if(e[i]===undefined){return}if(i.indexOf(":")!==-1){var n=i.split(":");this._node.setAttributeNS(t.namespaces[n[0]],i,e[i])}else{this._node.setAttribute(i,e[i])}}.bind(this));return this}function r(e,i,n,s){return new t.Svg(e,i,n,this,s)}function a(){return this._node.parentNode instanceof SVGElement?new t.Svg(this._node.parentNode):null}function o(){var e=this._node;while(e.nodeName!=="svg"){e=e.parentNode}return new t.Svg(e)}function l(e){var i=this._node.querySelector(e);return i?new t.Svg(i):null}function u(e){var i=this._node.querySelectorAll(e);return i.length?new t.Svg.List(i):null}function c(){return this._node}function h(e,n,s,r){if(typeof e==="string"){var a=i.createElement("div");a.innerHTML=e;e=a.firstChild}e.setAttribute("xmlns",t.namespaces.xmlns);var o=this.elem("foreignObject",n,s,r);o._node.appendChild(e);return o}function f(e){this._node.appendChild(i.createTextNode(e));return this}function d(){while(this._node.firstChild){this._node.removeChild(this._node.firstChild)}return this}function p(){this._node.parentNode.removeChild(this._node);return this.parent()}function m(e){this._node.parentNode.replaceChild(e._node,this._node);return e}function v(e,t){if(t&&this._node.firstChild){this._node.insertBefore(e._node,this._node.firstChild)}else{this._node.appendChild(e._node)}return this}function g(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]}function x(e){this._node.setAttribute("class",this.classes(this._node).concat(e.trim().split(/\s+/)).filter((function(e,t,i){return i.indexOf(e)===t})).join(" "));return this}function y(e){var t=e.trim().split(/\s+/);this._node.setAttribute("class",this.classes(this._node).filter((function(e){return t.indexOf(e)===-1})).join(" "));return this}function b(){this._node.setAttribute("class","");return this}function w(){return this._node.getBoundingClientRect().height}function E(){return this._node.getBoundingClientRect().width}function S(e,i,n){if(i===undefined){i=true}Object.keys(e).forEach(function s(r){function a(e,i){var s={},a,o,l;if(e.easing){l=e.easing instanceof Array?e.easing:t.Svg.Easing[e.easing];delete e.easing}e.begin=t.ensureUnit(e.begin,"ms");e.dur=t.ensureUnit(e.dur,"ms");if(l){e.calcMode="spline";e.keySplines=l.join(" ");e.keyTimes="0;1"}if(i){e.fill="freeze";s[r]=e.from;this.attr(s);o=t.quantity(e.begin||0).value;e.begin="indefinite"}a=this.elem("animate",t.extend({attributeName:r},e));if(i){setTimeout(function(){try{a._node.beginElement()}catch(t){s[r]=e.to;this.attr(s);a.remove()}}.bind(this),o)}if(n){a._node.addEventListener("beginEvent",function t(){n.emit("animationBegin",{element:this,animate:a._node,params:e})}.bind(this))}a._node.addEventListener("endEvent",function t(){if(n){n.emit("animationEnd",{element:this,animate:a._node,params:e})}if(i){s[r]=e.to;this.attr(s);a.remove()}}.bind(this))}if(e[r]instanceof Array){e[r].forEach(function(e){a.bind(this)(e,false)}.bind(this))}else{a.bind(this)(e[r],i)}}.bind(this));return this}t.Svg=t.Class.extend({constructor:n,attr:s,elem:r,parent:a,root:o,querySelector:l,querySelectorAll:u,getNode:c,foreignObject:h,text:f,empty:d,remove:p,replace:m,append:v,classes:g,addClass:x,removeClass:y,removeAllClasses:b,height:w,width:E,animate:S});t.Svg.isSupported=function(e){return i.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+e,"1.1")};var A={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};t.Svg.Easing=A;function C(e){var i=this;this.svgElements=[];for(var n=0;n<e.length;n++){this.svgElements.push(new t.Svg(e[n]))}Object.keys(t.Svg.prototype).filter((function(e){return["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(e)===-1})).forEach((function(e){i[e]=function(){var n=Array.prototype.slice.call(arguments,0);i.svgElements.forEach((function(i){t.Svg.prototype[e].apply(i,n)}));return i}}))}t.Svg.List=t.Class.extend({constructor:C})})(this||i.g,e);(function(e,t){"use strict";var i={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]};var n={accuracy:3};function s(e,i,n,s,r,a){var o=t.extend({command:r?e.toLowerCase():e.toUpperCase()},i,a?{data:a}:{});n.splice(s,0,o)}function r(e,t){e.forEach((function(n,s){i[n.command.toLowerCase()].forEach((function(i,r){t(n,i,s,r,e)}))}))}function a(e,i){this.pathElements=[];this.pos=0;this.close=e;this.options=t.extend({},n,i)}function o(e){if(e!==undefined){this.pos=Math.max(0,Math.min(this.pathElements.length,e));return this}else{return this.pos}}function l(e){this.pathElements.splice(this.pos,e);return this}function u(e,t,i,n){s("M",{x:+e,y:+t},this.pathElements,this.pos++,i,n);return this}function c(e,t,i,n){s("L",{x:+e,y:+t},this.pathElements,this.pos++,i,n);return this}function h(e,t,i,n,r,a,o,l){s("C",{x1:+e,y1:+t,x2:+i,y2:+n,x:+r,y:+a},this.pathElements,this.pos++,o,l);return this}function f(e,t,i,n,r,a,o,l,u){s("A",{rx:+e,ry:+t,xAr:+i,lAf:+n,sf:+r,x:+a,y:+o},this.pathElements,this.pos++,l,u);return this}function d(e){var n=e.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce((function(e,t){if(t.match(/[A-Za-z]/)){e.push([])}e[e.length-1].push(t);return e}),[]);if(n[n.length-1][0].toUpperCase()==="Z"){n.pop()}var s=n.map((function(e){var n=e.shift(),s=i[n.toLowerCase()];return t.extend({command:n},s.reduce((function(t,i,n){t[i]=+e[n];return t}),{}))}));var r=[this.pos,0];Array.prototype.push.apply(r,s);Array.prototype.splice.apply(this.pathElements,r);this.pos+=s.length;return this}function p(){var e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(t,n){var s=i[n.command.toLowerCase()].map(function(t){return this.options.accuracy?Math.round(n[t]*e)/e:n[t]}.bind(this));return t+n.command+s.join(",")}.bind(this),"")+(this.close?"Z":"")}function m(e,t){r(this.pathElements,(function(i,n){i[n]*=n[0]==="x"?e:t}));return this}function v(e,t){r(this.pathElements,(function(i,n){i[n]+=n[0]==="x"?e:t}));return this}function g(e){r(this.pathElements,(function(t,i,n,s,r){var a=e(t,i,n,s,r);if(a||a===0){t[i]=a}}));return this}function x(e){var i=new t.Svg.Path(e||this.close);i.pos=this.pos;i.pathElements=this.pathElements.slice().map((function e(i){return t.extend({},i)}));i.options=t.extend({},this.options);return i}function y(e){var i=[new t.Svg.Path];this.pathElements.forEach((function(n){if(n.command===e.toUpperCase()&&i[i.length-1].pathElements.length!==0){i.push(new t.Svg.Path)}i[i.length-1].pathElements.push(n)}));return i}function b(e,i,n){var s=new t.Svg.Path(i,n);for(var r=0;r<e.length;r++){var a=e[r];for(var o=0;o<a.pathElements.length;o++){s.pathElements.push(a.pathElements[o])}}return s}t.Svg.Path=t.Class.extend({constructor:a,position:o,remove:l,move:u,line:c,curve:h,arc:f,scale:m,translate:v,transform:g,parse:d,stringify:p,clone:x,splitByCommand:y});t.Svg.Path.elementDescriptions=i;t.Svg.Path.join=b})(this||i.g,e);(function(e,t){"use strict";var i=e.window;var n=e.document;var s={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};function r(e,t,i,n){this.units=e;this.counterUnits=e===s.x?s.y:s.x;this.chartRect=t;this.axisLength=t[e.rectEnd]-t[e.rectStart];this.gridOffset=t[e.rectOffset];this.ticks=i;this.options=n}function a(e,i,n,s,r){var a=s["axis"+this.units.pos.toUpperCase()];var o=this.ticks.map(this.projectValue.bind(this));var l=this.ticks.map(a.labelInterpolationFnc);o.forEach(function(u,c){var h={x:0,y:0};var f;if(o[c+1]){f=o[c+1]-u}else{f=Math.max(this.axisLength-u,30)}if(t.isFalseyButZero(l[c])&&l[c]!==""){return}if(this.units.pos==="x"){u=this.chartRect.x1+u;h.x=s.axisX.labelOffset.x;if(s.axisX.position==="start"){h.y=this.chartRect.padding.top+s.axisX.labelOffset.y+(n?5:20)}else{h.y=this.chartRect.y1+s.axisX.labelOffset.y+(n?5:20)}}else{u=this.chartRect.y1-u;h.y=s.axisY.labelOffset.y-(n?f:0);if(s.axisY.position==="start"){h.x=n?this.chartRect.padding.left+s.axisY.labelOffset.x:this.chartRect.x1-10}else{h.x=this.chartRect.x2+s.axisY.labelOffset.x+10}}if(a.showGrid){t.createGrid(u,c,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[s.classNames.grid,s.classNames[this.units.dir]],r)}if(a.showLabel){t.createLabel(u,f,c,l,this,a.offset,h,i,[s.classNames.label,s.classNames[this.units.dir],a.position==="start"?s.classNames[a.position]:s.classNames["end"]],n,r)}}.bind(this))}t.Axis=t.Class.extend({constructor:r,createGridAndLabels:a,projectValue:function(e,t,i){throw new Error("Base axis can't be instantiated!")}});t.Axis.units=s})(this||i.g,e);(function(e,t){"use strict";var i=e.window;var n=e.document;function s(e,i,n,s){var r=s.highLow||t.getHighLow(i,s,e.pos);this.bounds=t.getBounds(n[e.rectEnd]-n[e.rectStart],r,s.scaleMinSpace||20,s.onlyInteger);this.range={min:this.bounds.min,max:this.bounds.max};t.AutoScaleAxis.super.constructor.call(this,e,n,this.bounds.values,s)}function r(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.bounds.min)/this.bounds.range}t.AutoScaleAxis=t.Axis.extend({constructor:s,projectValue:r})})(this||i.g,e);(function(e,t){"use strict";var i=e.window;var n=e.document;function s(e,i,n,s){var r=s.highLow||t.getHighLow(i,s,e.pos);this.divisor=s.divisor||1;this.ticks=s.ticks||t.times(this.divisor).map(function(e,t){return r.low+(r.high-r.low)/this.divisor*t}.bind(this));this.ticks.sort((function(e,t){return e-t}));this.range={min:r.low,max:r.high};t.FixedScaleAxis.super.constructor.call(this,e,n,this.ticks,s);this.stepLength=this.axisLength/this.divisor}function r(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}t.FixedScaleAxis=t.Axis.extend({constructor:s,projectValue:r})})(this||i.g,e);(function(e,t){"use strict";var i=e.window;var n=e.document;function s(e,i,n,s){t.StepAxis.super.constructor.call(this,e,n,s.ticks,s);var r=Math.max(1,s.ticks.length-(s.stretch?1:0));this.stepLength=this.axisLength/r}function r(e,t){return this.stepLength*t}t.StepAxis=t.Axis.extend({constructor:s,projectValue:r})})(this||i.g,e);(function(e,t){"use strict";var i=e.window;var n=e.document;var s={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:true,showGrid:true,labelInterpolationFnc:t.noop,type:undefined},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:true,showGrid:true,labelInterpolationFnc:t.noop,type:undefined,scaleMinSpace:20,onlyInteger:false},width:undefined,height:undefined,showLine:true,showPoint:true,showArea:false,areaBase:0,lineSmooth:true,showGridBackground:false,low:undefined,high:undefined,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:false,reverseData:false,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};function r(e){var i=t.normalizeData(this.data,e.reverseData,true);this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart);var n=this.svg.elem("g").addClass(e.classNames.gridGroup);var r=this.svg.elem("g");var a=this.svg.elem("g").addClass(e.classNames.labelGroup);var o=t.createChartRect(this.svg,e,s.padding);var l,u;if(e.axisX.type===undefined){l=new t.StepAxis(t.Axis.units.x,i.normalized.series,o,t.extend({},e.axisX,{ticks:i.normalized.labels,stretch:e.fullWidth}))}else{l=e.axisX.type.call(t,t.Axis.units.x,i.normalized.series,o,e.axisX)}if(e.axisY.type===undefined){u=new t.AutoScaleAxis(t.Axis.units.y,i.normalized.series,o,t.extend({},e.axisY,{high:t.isNumeric(e.high)?e.high:e.axisY.high,low:t.isNumeric(e.low)?e.low:e.axisY.low}))}else{u=e.axisY.type.call(t,t.Axis.units.y,i.normalized.series,o,e.axisY)}l.createGridAndLabels(n,a,this.supportsForeignObject,e,this.eventEmitter);u.createGridAndLabels(n,a,this.supportsForeignObject,e,this.eventEmitter);if(e.showGridBackground){t.createGridBackground(n,o,e.classNames.gridBackground,this.eventEmitter)}i.raw.series.forEach(function(n,s){var a=r.elem("g");a.attr({"ct:series-name":n.name,"ct:meta":t.serialize(n.meta)});a.addClass([e.classNames.series,n.className||e.classNames.series+"-"+t.alphaNumerate(s)].join(" "));var c=[],h=[];i.normalized.series[s].forEach(function(e,r){var a={x:o.x1+l.projectValue(e,r,i.normalized.series[s]),y:o.y1-u.projectValue(e,r,i.normalized.series[s])};c.push(a.x,a.y);h.push({value:e,valueIndex:r,meta:t.getMetaData(n,r)})}.bind(this));var f={lineSmooth:t.getSeriesOption(n,e,"lineSmooth"),showPoint:t.getSeriesOption(n,e,"showPoint"),showLine:t.getSeriesOption(n,e,"showLine"),showArea:t.getSeriesOption(n,e,"showArea"),areaBase:t.getSeriesOption(n,e,"areaBase")};var d=typeof f.lineSmooth==="function"?f.lineSmooth:f.lineSmooth?t.Interpolation.monotoneCubic():t.Interpolation.none();var p=d(c,h);if(f.showPoint){p.pathElements.forEach(function(i){var r=a.elem("line",{x1:i.x,y1:i.y,x2:i.x+.01,y2:i.y},e.classNames.point).attr({"ct:value":[i.data.value.x,i.data.value.y].filter(t.isNumeric).join(","),"ct:meta":t.serialize(i.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:i.data.value,index:i.data.valueIndex,meta:i.data.meta,series:n,seriesIndex:s,axisX:l,axisY:u,group:a,element:r,x:i.x,y:i.y})}.bind(this))}if(f.showLine){var m=a.elem("path",{d:p.stringify()},e.classNames.line,true);this.eventEmitter.emit("draw",{type:"line",values:i.normalized.series[s],path:p.clone(),chartRect:o,index:s,series:n,seriesIndex:s,seriesMeta:n.meta,axisX:l,axisY:u,group:a,element:m})}if(f.showArea&&u.range){var v=Math.max(Math.min(f.areaBase,u.range.max),u.range.min);var g=o.y1-u.projectValue(v);p.splitByCommand("M").filter((function e(t){return t.pathElements.length>1})).map((function e(t){var i=t.pathElements[0];var n=t.pathElements[t.pathElements.length-1];return t.clone(true).position(0).remove(1).move(i.x,g).line(i.x,i.y).position(t.pathElements.length+1).line(n.x,g)})).forEach(function t(r){var c=a.elem("path",{d:r.stringify()},e.classNames.area,true);this.eventEmitter.emit("draw",{type:"area",values:i.normalized.series[s],path:r.clone(),series:n,seriesIndex:s,axisX:l,axisY:u,chartRect:o,index:s,group:a,element:c})}.bind(this))}}.bind(this));this.eventEmitter.emit("created",{bounds:u.bounds,chartRect:o,axisX:l,axisY:u,svg:this.svg,options:e})}function a(e,i,n,r){t.Line.super.constructor.call(this,e,i,s,t.extend({},s,n),r)}t.Line=t.Base.extend({constructor:a,createChart:r})})(this||i.g,e);(function(e,t){"use strict";var i=e.window;var n=e.document;var s={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:true,showGrid:true,labelInterpolationFnc:t.noop,scaleMinSpace:30,onlyInteger:false},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:true,showGrid:true,labelInterpolationFnc:t.noop,scaleMinSpace:20,onlyInteger:false},width:undefined,height:undefined,high:undefined,low:undefined,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:false,stackMode:"accumulate",horizontalBars:false,distributeSeries:false,reverseData:false,showGridBackground:false,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};function r(e){var i;var n;if(e.distributeSeries){i=t.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y");i.normalized.series=i.normalized.series.map((function(e){return[e]}))}else{i=t.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y")}this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart+(e.horizontalBars?" "+e.classNames.horizontalBars:""));var r=this.svg.elem("g").addClass(e.classNames.gridGroup);var a=this.svg.elem("g");var o=this.svg.elem("g").addClass(e.classNames.labelGroup);if(e.stackBars&&i.normalized.series.length!==0){var l=t.serialMap(i.normalized.series,(function e(){return Array.prototype.slice.call(arguments).map((function(e){return e})).reduce((function(e,t){return{x:e.x+(t&&t.x)||0,y:e.y+(t&&t.y)||0}}),{x:0,y:0})}));n=t.getHighLow([l],e,e.horizontalBars?"x":"y")}else{n=t.getHighLow(i.normalized.series,e,e.horizontalBars?"x":"y")}n.high=+e.high||(e.high===0?0:n.high);n.low=+e.low||(e.low===0?0:n.low);var u=t.createChartRect(this.svg,e,s.padding);var c,h,f,d,p;if(e.distributeSeries&&e.stackBars){h=i.normalized.labels.slice(0,1)}else{h=i.normalized.labels}if(e.horizontalBars){if(e.axisX.type===undefined){c=d=new t.AutoScaleAxis(t.Axis.units.x,i.normalized.series,u,t.extend({},e.axisX,{highLow:n,referenceValue:0}))}else{c=d=e.axisX.type.call(t,t.Axis.units.x,i.normalized.series,u,t.extend({},e.axisX,{highLow:n,referenceValue:0}))}if(e.axisY.type===undefined){f=p=new t.StepAxis(t.Axis.units.y,i.normalized.series,u,{ticks:h})}else{f=p=e.axisY.type.call(t,t.Axis.units.y,i.normalized.series,u,e.axisY)}}else{if(e.axisX.type===undefined){f=d=new t.StepAxis(t.Axis.units.x,i.normalized.series,u,{ticks:h})}else{f=d=e.axisX.type.call(t,t.Axis.units.x,i.normalized.series,u,e.axisX)}if(e.axisY.type===undefined){c=p=new t.AutoScaleAxis(t.Axis.units.y,i.normalized.series,u,t.extend({},e.axisY,{highLow:n,referenceValue:0}))}else{c=p=e.axisY.type.call(t,t.Axis.units.y,i.normalized.series,u,t.extend({},e.axisY,{highLow:n,referenceValue:0}))}}var m=e.horizontalBars?u.x1+c.projectValue(0):u.y1-c.projectValue(0);var v=[];f.createGridAndLabels(r,o,this.supportsForeignObject,e,this.eventEmitter);c.createGridAndLabels(r,o,this.supportsForeignObject,e,this.eventEmitter);if(e.showGridBackground){t.createGridBackground(r,u,e.classNames.gridBackground,this.eventEmitter)}i.raw.series.forEach(function(n,s){var r=s-(i.raw.series.length-1)/2;var o;var l;if(e.distributeSeries&&!e.stackBars){o=f.axisLength/i.normalized.series.length/2}else if(e.distributeSeries&&e.stackBars){o=f.axisLength/2}else{o=f.axisLength/i.normalized.series[s].length/2}l=a.elem("g");l.attr({"ct:series-name":n.name,"ct:meta":t.serialize(n.meta)});l.addClass([e.classNames.series,n.className||e.classNames.series+"-"+t.alphaNumerate(s)].join(" "));i.normalized.series[s].forEach(function(a,h){var g,x,y,b;if(e.distributeSeries&&!e.stackBars){b=s}else if(e.distributeSeries&&e.stackBars){b=0}else{b=h}if(e.horizontalBars){g={x:u.x1+c.projectValue(a&&a.x?a.x:0,h,i.normalized.series[s]),y:u.y1-f.projectValue(a&&a.y?a.y:0,b,i.normalized.series[s])}}else{g={x:u.x1+f.projectValue(a&&a.x?a.x:0,b,i.normalized.series[s]),y:u.y1-c.projectValue(a&&a.y?a.y:0,h,i.normalized.series[s])}}if(f instanceof t.StepAxis){if(!f.options.stretch){g[f.units.pos]+=o*(e.horizontalBars?-1:1)}g[f.units.pos]+=e.stackBars||e.distributeSeries?0:r*e.seriesBarDistance*(e.horizontalBars?-1:1)}y=v[h]||m;v[h]=y-(m-g[f.counterUnits.pos]);if(a===undefined){return}var w={};w[f.units.pos+"1"]=g[f.units.pos];w[f.units.pos+"2"]=g[f.units.pos];if(e.stackBars&&(e.stackMode==="accumulate"||!e.stackMode)){w[f.counterUnits.pos+"1"]=y;w[f.counterUnits.pos+"2"]=v[h]}else{w[f.counterUnits.pos+"1"]=m;w[f.counterUnits.pos+"2"]=g[f.counterUnits.pos]}w.x1=Math.min(Math.max(w.x1,u.x1),u.x2);w.x2=Math.min(Math.max(w.x2,u.x1),u.x2);w.y1=Math.min(Math.max(w.y1,u.y2),u.y1);w.y2=Math.min(Math.max(w.y2,u.y2),u.y1);var E=t.getMetaData(n,h);x=l.elem("line",w,e.classNames.bar).attr({"ct:value":[a.x,a.y].filter(t.isNumeric).join(","),"ct:meta":t.serialize(E)});this.eventEmitter.emit("draw",t.extend({type:"bar",value:a,index:h,meta:E,series:n,seriesIndex:s,axisX:d,axisY:p,chartRect:u,group:l,element:x},w))}.bind(this))}.bind(this));this.eventEmitter.emit("created",{bounds:c.bounds,chartRect:u,axisX:d,axisY:p,svg:this.svg,options:e})}function a(e,i,n,r){t.Bar.super.constructor.call(this,e,i,s,t.extend({},s,n),r)}t.Bar=t.Base.extend({constructor:a,createChart:r})})(this||i.g,e);(function(e,t){"use strict";var i=e.window;var n=e.document;var s={width:undefined,height:undefined,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:undefined,donut:false,donutSolid:false,donutWidth:60,showLabel:true,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:t.noop,labelDirection:"neutral",reverseData:false,ignoreEmptyValues:false};function r(e,t,i){var n=t.x>e.x;if(n&&i==="explode"||!n&&i==="implode"){return"start"}else if(n&&i==="implode"||!n&&i==="explode"){return"end"}else{return"middle"}}function a(e){var i=t.normalizeData(this.data);var n=[],a,o,l,u,c,h=e.startAngle;this.svg=t.createSvg(this.container,e.width,e.height,e.donut?e.classNames.chartDonut:e.classNames.chartPie);o=t.createChartRect(this.svg,e,s.padding);l=Math.min(o.width()/2,o.height()/2);c=e.total||i.normalized.series.reduce((function(e,t){return e+t}),0);var f=t.quantity(e.donutWidth);if(f.unit==="%"){f.value*=l/100}l-=e.donut&&!e.donutSolid?f.value/2:0;if(e.labelPosition==="outside"||e.donut&&!e.donutSolid){u=l}else if(e.labelPosition==="center"){u=0}else if(e.donutSolid){u=l-f.value/2}else{u=l/2}u+=e.labelOffset;var d={x:o.x1+o.width()/2,y:o.y2+o.height()/2};var p=i.raw.series.filter((function(e){return e.hasOwnProperty("value")?e.value!==0:e!==0})).length===1;i.raw.series.forEach(function(e,t){n[t]=this.svg.elem("g",null,null)}.bind(this));if(e.showLabel){a=this.svg.elem("g",null,null)}i.raw.series.forEach(function(s,o){if(i.normalized.series[o]===0&&e.ignoreEmptyValues)return;n[o].attr({"ct:series-name":s.name});n[o].addClass([e.classNames.series,s.className||e.classNames.series+"-"+t.alphaNumerate(o)].join(" "));var m=c>0?h+i.normalized.series[o]/c*360:0;var v=Math.max(0,h-(o===0||p?0:.2));if(m-v>=359.99){m=v+359.99}var g=t.polarToCartesian(d.x,d.y,l,v),x=t.polarToCartesian(d.x,d.y,l,m);var y,b,w;var E=new t.Svg.Path(!e.donut||e.donutSolid).move(x.x,x.y).arc(l,l,0,m-h>180,0,g.x,g.y);if(!e.donut){E.line(d.x,d.y)}else if(e.donutSolid){w=l-f.value;y=t.polarToCartesian(d.x,d.y,w,h-(o===0||p?0:.2));b=t.polarToCartesian(d.x,d.y,w,m);E.line(y.x,y.y);E.arc(w,w,0,m-h>180,1,b.x,b.y)}var S=e.classNames.slicePie;if(e.donut){S=e.classNames.sliceDonut;if(e.donutSolid){S=e.classNames.sliceDonutSolid}}var A=n[o].elem("path",{d:E.stringify()},S);A.attr({"ct:value":i.normalized.series[o],"ct:meta":t.serialize(s.meta)});if(e.donut&&!e.donutSolid){A._node.style.strokeWidth=f.value+"px"}this.eventEmitter.emit("draw",{type:"slice",value:i.normalized.series[o],totalDataSum:c,index:o,meta:s.meta,series:s,group:n[o],element:A,path:E.clone(),center:d,radius:l,startAngle:h,endAngle:m});if(e.showLabel){var C;if(i.raw.series.length===1){C={x:d.x,y:d.y}}else{C=t.polarToCartesian(d.x,d.y,u,h+(m-h)/2)}var O;if(i.normalized.labels&&!t.isFalseyButZero(i.normalized.labels[o])){O=i.normalized.labels[o]}else{O=i.normalized.series[o]}var N=e.labelInterpolationFnc(O,o);if(N||N===0){var M=a.elem("text",{dx:C.x,dy:C.y,"text-anchor":r(d,C,e.labelDirection)},e.classNames.label).text(""+N);this.eventEmitter.emit("draw",{type:"label",index:o,group:a,element:M,text:""+N,x:C.x,y:C.y})}}h=m}.bind(this));this.eventEmitter.emit("created",{chartRect:o,svg:this.svg,options:e})}function o(e,i,n,r){t.Pie.super.constructor.call(this,e,i,s,t.extend({},s,n),r)}t.Pie=t.Base.extend({constructor:o,createChart:a,determineAnchorPosition:r})})(this||i.g,e);return e}))},481:(e,t,i)=>{"use strict";i.r(t)},477:(e,t,i)=>{"use strict";i.r(t)}};var t={};function i(n){var s=t[n];if(s!==undefined){return s.exports}var r=t[n]={exports:{}};e[n].call(r.exports,r,r.exports,i);return r.exports}(()=>{i.g=function(){if(typeof globalThis==="object")return globalThis;try{return this||new Function("return this")()}catch(e){if(typeof window==="object")return window}}()})();(()=>{i.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();var n={};
/**
 * ---------------------------------------------------------------------
 *
 * GLPI - Gestionnaire Libre de Parc Informatique
 *
 * http://glpi-project.org
 *
 * @copyright 2015-2024 Teclib' and contributors.
 * @copyright 2003-2014 by the INDEPNET Development Team.
 * @licence   https://www.gnu.org/licenses/gpl-3.0.html
 *
 * ---------------------------------------------------------------------
 *
 * LICENSE
 *
 * This file is part of GLPI.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 * ---------------------------------------------------------------------
 */window.Chartist=i(476);i(477);i(478);i(479);i(480);i(481)})();

Zerion Mini Shell 1.0