PageSourceSearch

https://simplifyingcalculation.com/static/js/3.8c3f4e72.chunk.js

js simplifyingcalculation.com collected 2026-10-09 21:39:04 UTC 30,747 bytes, 1 lines download raw bytes

1(this["webpackJsonpsimplifying-calculations"]=this["webpackJsonpsimplifying-calculations"]||[]).push([[3],{1888:function(e,t,i){"use strict";i.d(t,"a",(function(){return u}));var a=i(1806),r=i(1811),n=i(1842),l=i(1889),s=i(1815),o=i(1813),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"_flipped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),t}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"_afterNew",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._textKeys.push("textType","kerning"),e.prototype._afterNew.call(this)}}),Object.defineProperty(t.prototype,"_makeText",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._text=this.children.push(l.a.new(this._root,{}))}}),Object.defineProperty(t.prototype,"baseRadius",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.getPrivate("radius",0),t=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return t+o.z(i,e-t)}}),Object.defineProperty(t.prototype,"radius",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(e?-1:1)}}),Object.defineProperty(t.prototype,"_updateChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(e.prototype._updateChildren.call(this),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){var t=this.get("textType","adjusted"),i=this.get("inside",!1),a=this.get("orientation"),n=s.k(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",i);var l=s.m(n),o=s.e(n),u=this.baseRadius(),c=this.radius();if(this._display.angle=0,"circular"==t)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this._text.set("orientation",a),this._text.set("radius",c);else{0==u&&(n=0,c=0);var p=c*o,h=c*l;"radial"==t?(this.setRaw("x",p),this.setRaw("y",h),n<90||n>270||"auto"!=a?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==t?(this.setRaw("centerX",r.d),this.setRaw("centerY",r.d),this.setRaw("x",p),this.setRaw("y",h)):"regular"==t&&(this.setRaw("x",p),this.setRaw("y",h))}this.markDirtyPosition(),this.markDirtyBounds()}}}),Object.defineProperty(t.prototype,"_updatePosition",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this.get("textType","regular"),i=this.get("inside",!1),a=0,n=0,l=this.get("labelAngle",0),o=this.localBounds(),u=o.right-o.left,c=o.bottom-o.top;if("radial"==t){if(this._flipped){var p=this.get("centerX");p instanceof r.a&&(u*=1-2*p.value),a=u*s.e(l),n=u*s.m(l)}}else i||"adjusted"!=t||(a=u/2*s.e(l),n=c/2*s.m(l));this.setRaw("dx",a),this.setRaw("dy",n),e.prototype._updatePosition.call(this)}}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},enumerable:!1,configurable:!0}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialLabel"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:n.a.classNames.concat([t.className])}),t}(n.a)},1889:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var a=i(1806),r=i(1864),n=i(1815),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"_display",{enumerable:!0,configurable:!0,writable:!0,value:t._root._renderer.makeRadialText("",t.textStyle)}),t}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"_afterNew",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._afterNew.call(this)}}),Object.defineProperty(t.prototype,"_beforeChanged",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._beforeChanged.call(this),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*n.c,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialText"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.a.classNames.c
vendor: 2,378 bytes, line 1
1oncat([t.className])}),t}(r.a)},1925:function(e,t,i){"use strict";i.d(t,"a",(function(){return L}));var a=i(1806),r=i(1819),n=i(1810),l=i(1811),s=i(1771),o=function(e){return function(){return e}},u=Math.abs,c=Math.atan2,p=Math.cos,h=Math.max,b=Math.min,d=Math.sin,f=Math.sqrt,y=1e-12,g=Math.PI,v=g/2,m=2*g;function w(e){return e>1?0:e<-1?g:Math.acos(e)}function _(e){return e>=1?v:e<=-1?-v:Math.asin(e)}function P(e){return e.innerRadius}function x(e){return e.outerRadius}function j(e){return e.startAngle}function O(e){return e.endAngle}function k(e){return e&&e.padAngle}function R(e,t,i,a,r,n,l,s){var o=i-e,u=a-t,c=l-r,p=s-n,h=p*o-c*u;if(!(h*h<y))return[e+(h=(c*(t-n)-p*(e-r))/h)*o,t+h*u]}function A(e,t,i,a,r,n,l){var s=e-i,o=t-a,u=(l?n:-n)/f(s*s+o*o),c=u*o,p=-u*s,b=e+c,d=t+p,y=i+c,g=a+p,v=(b+y)/2,m=(d+g)/2,w=y-b,_=g-d,P=w*w+_*_,x=r-n,j=b*g-y*d,O=(_<0?-1:1)*f(h(0,x*x*P-j*j)),k=(j*_-w*O)/P,R=(-j*w-_*O)/P,A=(j*_+w*O)/P,D=(-j*w+_*O)/P,T=k-v,L=R-m,N=A-v,C=D-m;return T*T+L*L>N*N+C*C&&(k=A,R=D),{cx:k,cy:R,x01:-c,y01:-p,x11:k*(r/x-1),y11:R*(r/x-1)}}var D=function(){var e=P,t=x,i=o(0),a=null,r=j,n=O,l=k,h=null;function D(){var o,P,x=+e.apply(this,arguments),j=+t.apply(this,arguments),O=r.apply(this,arguments)-v,k=n.apply(this,arguments)-v,D=u(k-O),T=k>O;if(h||(h=o=Object(s.a)()),j<x&&(P=j,j=x,x=P),j>y)if(D>m-y)h.moveTo(j*p(O),j*d(O)),h.arc(0,0,j,O,k,!T),x>y&&(h.moveTo(x*p(k),x*d(k)),h.arc(0,0,x,k,O,T));else{var L,N,C=O,S=k,I=O,M=k,B=D,F=D,z=l.apply(this,arguments)/2,H=z>y&&(a?+a.apply(this,arguments):f(x*x+j*j)),X=b(u(j-x)/2,+i.apply(this,arguments)),Y=X,W=X;if(H>y){var U=_(H/x*d(z)),V=_(H/j*d(z));(B-=2*U)>y?(I+=U*=T?1:-1,M-=U):(B=0,I=M=(O+k)/2),(F-=2*V)>y?(C+=V*=T?1:-1,S-=V):(F=0,C=S=(O+k)/2)}var q=j*p(C),E=j*d(C),K=x*p(M),J=x*d(M);if(X>y){var G,Q=j*p(S),Z=j*d(S),$=x*p(I),ee=x*d(I);if(D<g&&(G=R(q,E,$,ee,Q,Z,K,J))){var te=q-G[0],ie=E-G[1],ae=Q-G[0],re=Z-G[1],ne=1/d(w((te*ae+ie*re)/(f(te*te+ie*ie)*f(ae*ae+re*re)))/2),le=f(G[0]*G[0]+G[1]*G[1]);Y=b(X,(x-le)/(ne-1)),W=b(X,(j-le)/(ne+1))}}F>y?W>y?(L=A($,ee,q,E,j,W,T),N=A(Q,Z,K,J,j,W,T),h.moveTo(L.cx+L.x01,L.cy+L.y01),W<X?h.arc(L.cx,L.cy,W,c(L.y01,L.x01),c(N.y01,N.x01),!T):(h.arc(L.cx,L.cy,W,c(L.y01,L.x01),c(L.y11,L.x11),!T),h.arc(0,0,j,c(L.cy+L.y11,L.cx+L.x11),c(N.cy+N.y11,N.cx+N.x11),!T),h.arc(N.cx,N.cy,W,c(N.y11,N.x11),c(N.y01,N.x01),!T))):(h.moveTo(q,E),h.arc(0,0,j,C,S,!T)):h.moveTo(q,E),x>y&&B>y?Y>
1y?(L=A(K,J,Q,Z,x,-Y,T),N=A(q,E,$,ee,x,-Y,T),h.lineTo(L.cx+L.x01,L.cy+L.y01),Y<X?h.arc(L.cx,L.cy,Y,c(L.y01,L.x01),c(N.y01,N.x01),!T):(h.arc(L.cx,L.cy,Y,c(L.y01,L.x01),c(L.y11,L.x11),!T),h.arc(0,0,x,c(L.cy+L.y11,L.cx+L.x11),c(N.cy+N.y11,N.cx+N.x11),T),h.arc(N.cx,N.cy,Y,c(N.y11,N.x11),c(N.y01,N.x01),!T))):h.arc(0,0,x,M,I,T):h.lineTo(K,J)}else h.moveTo(0,0);if(h.closePath(),o)return h=null,o+""||null}return D.centroid=function(){var i=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,a=(+r.apply(this,arguments)+ +n.apply(this,arguments))/2-g/2;return[p(a)*i,d(a)*i]},D.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:o(+t),D):e},D.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:o(+e),D):t},D.cornerRadius=function(e){return arguments.length?(i="function"===typeof e?e:o(+e),D):i},D.padRadius=function(e){return arguments.length?(a=null==e?null:"function"===typeof e?e:o(+e),D):a},D.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:o(+e),D):r},D.endAngle=function(e){return arguments.length?(n="function"===typeof e?e:o(+e),D):n},D.padAngle=function(e){return arguments.length?(l="function"===typeof e?e:o(+e),D):l},D.context=function(e){return arguments.length?(h=null==e?null:e,D):h},D},T=i(1815),L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"ix",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(t,"iy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(t,"_generator",{enumerable:!0,configurable:!0,writable:!0,value:D()}),t}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"_getTooltipPoint",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("tooltipX"),t=this.get("tooltipY"),i=0,a=0;n.e(e)&&(i=e),n.e(t)&&(a=t);var r=this.get("radius",0),s=this.get("innerRadius",0);return r+=this.get("dRadius",0),(s+=this.get("dInnerRadius",0))<0&&(s=r+s),e instanceof l.a&&(i=this.ix*(s+(r-s)*e.value)),t instanceof l.a&&(a=this.iy*(s+(r-s)*t.value)),this.get("arc")>=360&&0==s&&(i=0,a=0),{x:i,y:a}}}),Object.defineProperty(t.prototype,"_beforeChanged",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._beforeChanged.call(this),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius"))&&(this._clear=!0)}}),Object.defineProperty(t.prototype,"_changed",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(e.prototype._changed.call(this),this._clear){var t=this.get("startAngle",0),i=this.get("arc",0),a=this._generator;i<0&&(t+=i,i*=-1),i>.1&&a.cornerRadius(this.get("cornerRadius",0)),a.context(this._display);var r=this.get("radius",0),n=this.get("innerRadius",0);r+=this.get("dRadius",0),(n+=this.get("dInnerRadius",0))<0&&(n=r+n),a({innerRadius:n,outerRadius:r,startAngle:(t+90)*T.c,endAngle:(t+i+90)*T.c});var l=t+i/2;this.ix=T.e(l),this.iy=T.m(l)}if(this.isDirty("shiftRadius")){var s=this.get("shiftRadius",0);this.setRaw("dx",this.ix*s),this.setRaw("dy",this.iy*s),this.markDirtyPosition()}}}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Slice"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.a.classNames.concat([t.className])}),t}(r.a)},2090:function(e,t,i){"use strict";i.d(t,"a",(function(){return b}));var a=i(1806),r=i(1811),n=i(1962),l=i(1838),s=i(1865),o=i(1887),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"setupDefaultRules",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype.setupDefaultRules.call(this);var t=this._root.interfaceColors,i=this.rule.bind(this);i("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00')}%",colors:s.a.new(this._root,{}),width:r.c,height:r.c}),i("PieChart").setAll({radius:Object(r.e)(80),startAngle:-90,endAngle:270}),i("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),i("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}
1),i("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00')}%",strokeWidth:1,strokeOpacity:1,role:"figure"}),i("Slice",["pie"]).states.create("active",{shiftRadius:20}),i("Slice",["pie"]).states.create("hover",{scale:1.04}),i("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00')}%",paddingTop:5,paddingBottom:5,populateText:!0}),i("Tick",["pie"]).setAll({location:1}),i("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),i("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),i("FunnelSlice").setAll({interactive:!0,expandDistance:0}),i("FunnelSlice").states.create("hover",{expandDistance:.15}),i("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00')}%",centerY:r.d}),i("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:r.d,rotation:-90}),i("Label",["funnel","vertical"]).setAll({centerY:r.d,centerX:0}),i("Tick",["funnel"]).setAll({location:1}),i("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),i("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),i("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),i("PyramidSeries").setAll({valueIs:"area"}),i("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),i("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),i("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),i("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),i("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),i("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00')}%",centerY:r.d}),i("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:r.d,rotation:-90}),i("Label",["pyramid","vertical"]).setAll({centerY:r.d,centerX:0}),i("Tick",["pyramid"]).setAll({location:1}),i("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00')}%"}),i("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00')}%",centerY:r.d}),i("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:r.d,rotation:-90}),i("Label",["pictorial","vertical"]).setAll({centerY:r.d,centerX:0}),i("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),i("Tick",["pictorial"]).setAll({location:.5});var a=i("Graphics",["pictorial","background"]);a.setAll({fillOpacity:.2}),Object(o.b)(a,"fill",t,"alternativeBackground")}}),t}(l.a),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"_afterNew",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._defaultThemes.push(u.new(this._root)),e.prototype._afterNew.call(this),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentChart"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:n.a.classNames.concat([t.className])}),t}(n.a),p=i(1813),h=i(1815),b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"_maxRadius",{enumerable:!0,configurable:!0,writable:!0,value:1}),t}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"_afterNew",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._afterNew.call(this),this.seriesContainer.setAll({x:r.d,y:r.d})}}),Object.defineProperty(t.prototype,"_prepareChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._prepareChildren.call(this);
1var t=this.chartContainer,i=t.innerWidth(),a=t.innerHeight(),n=this.get("startAngle",0),l=this.get("endAngle",0),s=this.get("innerRadius"),o=h.g(0,0,n,l,1),u=i/(o.right-o.left),c=a/(o.bottom-o.top),b={left:0,right:0,top:0,bottom:0};if(s instanceof r.a){var d=s.value,f=Math.min(u,c);d=Math.max(f*d,f-Math.min(a,i))/f,b=h.g(0,0,n,l,d),this.setPrivateRaw("irModifyer",d/s.value)}o=h.j([o,b]);var y=this._maxRadius;this._maxRadius=Math.min(u,c);var g=p.z(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-g*(o.bottom+o.top)/2,dx:-g*(o.right+o.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||y!=this._maxRadius)&&this.series.each((function(e){e._markDirtyKey("startAngle")}))}}),Object.defineProperty(t.prototype,"radius",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=p.z(this.get("radius",0),this._maxRadius),i=p.z(this.get("innerRadius",0),t);if(e){var a=this.series.indexOf(e),r=this.series.length,n=e.get("radius");return null!=n?i+p.z(n,t-i):i+(t-i)/r*(a+1)}return t}}),Object.defineProperty(t.prototype,"innerRadius",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.radius(),i=p.z(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){var a=this.series.indexOf(e),r=this.series.length,n=e.get("innerRadius");return null!=n?i+p.z(n,t-i):i+(t-i)/r*a}return i}}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieChart"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:c.classNames.concat([t.className])}),t}(c)},2099:function(e,t,i){"use strict";i.d(t,"a",(function(){return v}));var a=i(1806),r=i(1933),n=i(1818),l=i(1819),s=i(1809),o=i(1810),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"slicesContainer",{enumerable:!0,configurable:!0,writable:!0,value:t.children.push(n.a.new(t._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(t,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:t.children.push(n.a.new(t._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(t,"ticksContainer",{enumerable:!0,configurable:!0,writable:!0,value:t.children.push(n.a.new(t._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(t,"_lLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(t,"_rLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(t,"_hLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(t,"slices",{enumerable:!0,configurable:!0,writable:!0,value:t._makeSlices()}),Object.defineProperty(t,"labels",{enumerable:!0,configurable:!0,writable:!0,value:t._makeLabels()}),Object.defineProperty(t,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:t._makeTicks()}),t}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"makeSlice",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,i=this.slicesContainer.children.push(this.slices.make());return i.on("fill",(function(){t.updateLegendMarker(e)})),i.on("stroke",(function(){t.updateLegendMarker(e)})),i._setDataItem(e),e.set("slice",i),this.slices.push(i),i}}),Object.defineProperty(t.prototype,"makeLabel",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}}),Object.defineProperty(t.prototype,"_shouldMakeBullet",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return null!=e.get("value")}}),Object.defineProperty(t.prototype,"makeTick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}}),Object.defineProperty(t.prototype,"_afterNew",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.fields.push("category","fill"),e.prototype._afterNew.call(this)}}),Object.defineProperty(t.prototype,"_onDataClear",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("colors");e&&e.reset()}}),Object.defineProperty(t.prototype,"_prepareChildren",{enumerable:!1,
1configurable:!0,writable:!0,value:function(){if(e.prototype._prepareChildren.call(this),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){var t=0,i=0,a=0,r=1/0,n=0;s.each(this._dataItems,(function(e){var a=e.get("valueWorking",0);t+=a,i+=Math.abs(a)})),s.each(this._dataItems,(function(e){var l=e.get("valueWorking",0);l>=i&&(t=e.get("value",0)),l>a&&(a=l),l<r&&(r=l),n++;var s=l/i;0==i&&(s=0),e.setRaw("valuePercentTotal",100*s)})),this.setPrivateRaw("valueLow",r),this.setPrivateRaw("valueHigh",a),this.setPrivateRaw("valueSum",t),this.setPrivateRaw("valueAverage",t/n),this.setPrivateRaw("valueAbsoluteSum",i)}}}),Object.defineProperty(t.prototype,"show",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return Object(a.b)(this,void 0,void 0,(function(){var i;return Object(a.d)(this,(function(a){switch(a.label){case 0:return(i=[]).push(e.prototype.show.call(this,t)),i.push(this._sequencedShowHide(!0,t)),[4,Promise.all(i)];case 1:return a.sent(),[2]}}))}))}}),Object.defineProperty(t.prototype,"hide",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return Object(a.b)(this,void 0,void 0,(function(){var i;return Object(a.d)(this,(function(a){switch(a.label){case 0:return(i=[]).push(e.prototype.hide.call(this,t)),i.push(this._sequencedShowHide(!1,t)),[4,Promise.all(i)];case 1:return a.sent(),[2]}}))}))}}),Object.defineProperty(t.prototype,"_updateChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._updateChildren.call(this),this._valuesDirty&&s.each(this._dataItems,(function(e){e.get("label").text.markDirtyText()})),this._arrange()}}),Object.defineProperty(t.prototype,"_arrange",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),s.each(this.dataItems,(function(t){e._updateTick(t)}))}}),Object.defineProperty(t.prototype,"_afterChanged",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._afterChanged.call(this),this._arrange()}}),Object.defineProperty(t.prototype,"processDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(e.prototype.processDataItem.call(this,t),null==t.get("fill")){var i=this.get("colors");i&&t.setRaw("fill",i.next())}}}),Object.defineProperty(t.prototype,"showDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(t,i){return Object(a.b)(this,void 0,void 0,(function(){var r,n,l,s,u,c,p;return Object(a.d)(this,(function(a){switch(a.label){case 0:return r=[e.prototype.showDataItem.call(this,t,i)],o.e(i)||(i=this.get("stateAnimationDuration",0)),n=this.get("stateAnimationEasing"),l=t.get("value"),(s=t.animate({key:"valueWorking",to:l,duration:i,easing:n}))&&r.push(s.waitForStop()),(u=t.get("tick"))&&r.push(u.show(i)),(c=t.get("label"))&&r.push(c.show(i)),(p=t.get("slice"))&&r.push(p.show(i)),[4,Promise.all(r)];case 1:return a.sent(),[2]}}))}))}}),Object.defineProperty(t.prototype,"hideDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(t,i){return Object(a.b)(this,void 0,void 0,(function(){var r,n,l,s,u,c,p;return Object(a.d)(this,(function(a){switch(a.label){case 0:return r=[e.prototype.hideDataItem.call(this,t,i)],n=this.states.create("hidden",{}),o.e(i)||(i=n.get("stateAnimationDuration",this.get("stateAnimationDuration",0))),l=n.get("stateAnimationEasing",this.get("stateAnimationEasing")),(s=t.animate({key:"valueWorking",to:0,duration:i,easing:l}))&&r.push(s.waitForStop()),(u=t.get("tick"))&&r.push(u.hide(i)),(c=t.get("label"))&&r.push(c.hide(i)),(p=t.get("slice")).hideTooltip(),p&&r.push(p.hide(i)),[4,Promise.all(r)];case 1:return a.sent(),[2]}}))}))}}),Object.defineProperty(t.prototype,"disposeDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(t){e.prototype.disposeDataItem.call(this,t);var i=t.get("label");i&&(this.labels.removeValue(i),i.dispose());var a=t.get("tick");a&&(this.ticks.removeValue(a),a.dispose());var r=t.get("slice");
1r&&(this.slices.removeValue(r),r.dispose())}}),Object.defineProperty(t.prototype,"hoverDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.get("slice");t&&!t.isHidden()&&t.hover()}}),Object.defineProperty(t.prototype,"unhoverDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.get("slice");t&&t.unhover()}}),Object.defineProperty(t.prototype,"updateLegendMarker",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.get("slice");if(t){var i=e.get("legendDataItem");if(i){var a=i.get("markerRectangle");s.each(l.b,(function(e){null!=t.get(e)&&a.set(e,t.get(e))}))}}}}),Object.defineProperty(t.prototype,"_arrangeDown",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e){var t=this._getNextDown();e.sort((function(e,t){return e.y>t.y?1:e.y<t.y?-1:0})),s.each(e,(function(e){var i=e.label.adjustedLocalBounds(),a=i.top;e.y+a<t&&(e.y=t-a),e.label.set("y",e.y),t=e.y+i.bottom}))}}}),Object.defineProperty(t.prototype,"_getNextUp",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.labelsContainer.maxHeight()}}),Object.defineProperty(t.prototype,"_getNextDown",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0}}),Object.defineProperty(t.prototype,"_arrangeUp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e){var t=this._getNextUp();e.sort((function(e,t){return e.y<t.y?1:e.y>t.y?-1:0})),s.each(e,(function(e){var i=e.label.adjustedLocalBounds(),a=i.bottom;e.y+a>t&&(e.y=t-a),e.label.set("y",e.y),t=e.y+i.top}))}}}),Object.defineProperty(t.prototype,"_arrangeRight",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e){var t=0;e.sort((function(e,t){return e.y>t.y?1:e.y<t.y?-1:0})),s.each(e,(function(e){var i=e.label.adjustedLocalBounds(),a=i.left;e.y+a<t&&(e.y=t-a),e.label.set("x",e.y),t=e.y+i.right}))}}}),Object.defineProperty(t.prototype,"_arrangeLeft",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e){var t=this.labelsContainer.maxWidth();e.sort((function(e,t){return e.y<t.y?1:e.y>t.y?-1:0})),s.each(e,(function(e){var i=e.label.adjustedLocalBounds(),a=i.right;e.y+a>t&&(e.y=t-a),e.label.set("x",e.y),t=e.y+i.left}))}}}),Object.defineProperty(t.prototype,"_updateSize",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._updateSize.call(this),this.markDirty()}}),Object.defineProperty(t.prototype,"_updateTick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"_dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._dispose.call(this);var t=this.chart;t&&t.series.removeValue(this)}}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentSeries"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.a.classNames.concat([t.className])}),t}(r.a),c=i(1833),p=i(1925),h=i(1866),b=i(1888),d=i(1823),f=i(1811),y=i(1815),g=i(1813),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"_makeSlices",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return new d.c(c.a.new({}),(function(){return p.a._new(e._root,{themeTags:g.x(e.slices.template.get("themeTags",[]),["pie","series"])},[e.slices.template])}))}}),Object.defineProperty(t.prototype,"_makeLabels",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return new d.c(c.a.new({}),(function(){return b.a._new(e._root,{themeTags:g.x(e.labels.template.get("themeTags",[]),["pie","series"])},[e.labels.template])}))}}),Object.defineProperty(t.prototype,"_makeTicks",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return new d.c(c.a.new({}),(function(){return h.a._new(e._root,{themeTags:g.x(e.ticks.template.get("themeTags",[]),["pie","series"])},[e.ticks.template])}))}}),Object.defineProperty(t.prototype,"processDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var i=this;e.prototype.processDataItem.call(this,t);var a=this.makeSlice(t);a.on("scale",(function(){i._updateTick(t)})),a.on("shiftRadius",(function(){i._updateTick(t)})),a.events.on("positionchanged",(function(){i._updateTick(t)}));var r=this.makeLabel(t);r.events.on("positionchanged",(function(){i._updateTick(t)})),this.makeTick(t),a.events.on("positionchanged",(function(){r.markDirty()}))}}),Object.defineProperty(t.prototype,"_getNextUp",{enumerable:!1,
1configurable:!0,writable:!0,value:function(){return this.labelsContainer.maxHeight()/2}}),Object.defineProperty(t.prototype,"_getNextDown",{enumerable:!1,configurable:!0,writable:!0,value:function(){return-this.labelsContainer.maxHeight()/2}}),Object.defineProperty(t.prototype,"_prepareChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;e.prototype._prepareChildren.call(this);var i=this.chart;if(i){if(this.isDirty("alignLabels")){var a=this.labels.template;this.get("alignLabels")?a.set("textType","aligned"):null==a.get("textType")&&a.set("textType","adjusted")}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")){this.markDirtyBounds();var r=this.get("startAngle",i.get("startAngle",-90)),n=this.get("endAngle",i.get("endAngle",270))-r,l=r,o=i.radius(this);this.setPrivateRaw("radius",o);var u=i.innerRadius(this)*i.getPrivate("irModifyer",1);u<0&&(u=o+u),o>0&&s.each(this._dataItems,(function(e){t.updateLegendValue(e);var i=n*e.get("valuePercentTotal")/100,a=e.get("slice");if(a){a.set("radius",o),a.set("innerRadius",u),a.set("startAngle",l),a.set("arc",i);var r=e.get("fill");a._setDefault("fill",r),a._setDefault("stroke",r)}var s=y.k(l+i/2),c=e.get("label");if(c&&(c.setPrivate("radius",o),c.setPrivate("innerRadius",u),c.set("labelAngle",s),"aligned"==c.get("textType"))){var p=o+c.get("radius",0),h=o*y.m(s);s>90&&s<=270?(c.isHidden()||c.isHiding()||t._lLabels.push({label:c,y:h}),p*=-1,p-=t.labelsContainer.get("paddingLeft",0),c.set("centerX",f.c),c.setPrivateRaw("left",!0)):(c.isHidden()||c.isHiding()||t._rLabels.push({label:c,y:h}),p+=t.labelsContainer.get("paddingRight",0),c.set("centerX",0),c.setPrivateRaw("left",!1)),c.set("x",p),c.set("y",o*y.m(s))}l+=i,t._updateTick(e)}))}}}}),Object.defineProperty(t.prototype,"_updateTick",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.get("tick"),i=e.get("label"),a=e.get("slice"),r=t.get("location",1);if(t&&i&&a){var n=(a.get("shiftRadius",0)+a.get("radius",0))*a.get("scale",1)*r,l=i.get("labelAngle",0),s=y.e(l),o=y.m(l),u=this.labelsContainer,c=u.get("paddingLeft",0),p=u.get("paddingRight",0),h=0,b=0;if(h=i.x(),b=i.y(),"circular"==i.get("textType")){var d=i.radius()-i.get("paddingBottom",0),f=i.get("labelAngle",0);h=d*y.e(f),b=d*y.m(f)}var g=-p;i.getPrivate("left")&&(g=c),t.set("points",[{x:a.x()+n*s,y:a.y()+n*o},{x:h+g,y:b},{x:h,y:b}])}}}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieSeries"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:u.classNames.concat([t.className])}),t}(u)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.