PageSourceSearch

https://ghostfol.io/en/chunk-CIyTSC-22.js

js ghostfol.io collected 2026-09-25 20:41:17 UTC 19,027 bytes, 2 lines download raw bytes

vendor: 1,915 bytes, line 1
1import{a as w,o as x,t as A$1}from"./chunk-JAOQM8Cn.js";import{$t as WE,Ai as yy,Ir as oB,Jn as ev,Oi as xT,Qr as rb,Ti as vy,Tn as a_,hn as Zy,jr as nb,k as G_,li as tB,m as Bw,yt as OM}from"./chunk-CURRVo-b.js";import{G as Kc,N as HB,Nn as mw,Ot as WB,br as yv,dn as fv,i as Ape,ir as vl,sn as fee,x as Epe}from"./chunk-BibJlzT8.js";import{n as K,r as U,t as B}from"./chunk-ChUOWPps.js";import{n as rt$1,t as _t$1}from"./chunk-BMwlEQ682.js";import{n as c,t as a}from"./chunk-Ca-ZNuF12.js";import{$ as nh,C as Sl,F as ah,J as jn,O as W$1,T as U$1,U as ie,Y as kn,Z as lh,a as C,at as zc,b as P$1,d as Ft,f as G,m as Hc,r as B$1,rt as sh,s as D,v as O$1,w as To}from"./chunk-Bb6HVS-M2.js";import{t}from"./chunk-B181-Klw2.js";function F(e,r){var t=r.x,a=r.y;if(t===null)return{x:0,y:-1};if(a===null)return{x:1,y:0};var i=e.x-t,o=e.y-a,n=Math.sqrt(i*i+o*o);return{x:n?i/n:0,y:n?o/n:-1}}function Ue(e,r,t,a,i){switch(i){case`center`:t=a=0;break;case`bottom`:t=0,a=1;break;case`right`:t=1,a=0;break;case`left`:t=-1,a=0;break;case`top`:t=0,a=-1;break;case`start`:t=-t,a=-a;break;case`end`:break;default:i*=Math.PI/180,t=Math.cos(i),a=Math.sin(i);break}return{x:e,y:r,vx:t,vy:a}}function R(e,r,t){var a=Ye;return e<t.left?a|=Ie:e>t.right&&(a|=Pe),r<t.top?a|=Te:r>t.bottom&&(a|=Se),a}function Ve(e,r){for(var t=e.x0,a=e.y0,i=e.x1,o=e.y1,n=R(t,a,r),s=R(i,o,r),u,d,l;!(!(n|s)||n&s);)u=n||s,u&Te?(d=t+(i-t)*(r.top-a)/(o-a),l=r.top):u&Se?(d=t+(i-t)*(r.bottom-a)/(o-a),l=r.bottom):u&Pe?(l=a+(o-a)*(r.right-t)/(i-t),d=r.right):u&Ie&&(l=a+(o-a)*(r.left-t)/(i-t),d=r.left),u===n?(t=d,a=l,n=R(t,a,r)):(i=d,o=l,s=R(i,o,r));return{x0:t,x1:i,y0:a,y1:o}}function $(e,r){var t=r.anchor,a=e,i,o;return r.clamp&&(a=Ve(a,r.area)),t===`start`?(i=a.x0,o=a.y0):t===`end`?(i=a.x1,o=a.y1):(i=(a.x0+a.x1)/2,o=(a.y0+a.y1)/2),Ue(i,o,e.vx,e.vy,r.align)}function Xe(e){var r=e.borderWidth||0,t=e.padding,a=e.size.height,i=e.size.width,o=-i/2,n=-a/2;
vendor: 1,097 bytes, line 1
1return{frame:{x:o-t.left-r,y:n-t.top-r,w:i+t.width+r*2,h:a+t.height+r*2},text:{x:o,y:n,w:i,h:a}}}function qe(e,r){var t=r.chart.getDatasetMeta(r.datasetIndex).vScale;if(!t)return null;if(t.xCenter!==void 0&&t.yCenter!==void 0)return{x:t.xCenter,y:t.yCenter};var a=t.getBasePixel();return e.horizontal?{x:a,y:null}:{x:null,y:a}}function Qe(e){return e instanceof jn?O.arc:e instanceof sh?O.point:e instanceof nh?O.bar:O.fallback}function Je(e,r,t,a,i,o){var n=Math.PI/2;if(o){var s=Math.min(o,i/2,a/2),u=r+s,d=t+s,l=r+a-s,h=t+i-s;e.moveTo(r,d),u<l&&d<h?(e.arc(u,d,s,-Math.PI,-n),e.arc(l,d,s,-n,0),e.arc(l,h,s,0,n),e.arc(u,h,s,n,Math.PI)):u<l?(e.moveTo(u,t),e.arc(l,d,s,-n,n),e.arc(u,d,s,n,Math.PI+n)):d<h?(e.arc(u,d,s,-Math.PI,0),e.arc(u,h,s,0,Math.PI)):e.arc(u,d,s,-Math.PI,Math.PI),e.closePath(),e.moveTo(r,t)}else e.rect(r,t,a,i)}function Ze(e,r,t){var a=t.backgroundColor,i=t.borderColor,o=t.borderWidth;!a&&(!i||!o)||(e.beginPath(),Je(e,_(r.x)+o/2,_(r.y)+o/2,_(r.w)-o,_(r.h)-o,t.borderRadius),e.closePath(),a&&(e.fillStyle=a,e.fill()),i&&o&&(e.strokeStyle=i,e.lineWidth=o,e.lineJoin=`miter`,e.
vendor: 4,526 bytes, lines 1-2
1stroke()))}function et(e,r,t){var a=t.lineHeight,i=e.w,o=e.x,n=e.y+a/2;return r===`center`?o+=i/2:(r===`end`||r===`right`)&&(o+=i),{h:a,w:i,x:o,y:n}}function tt(e,r,t){var a=e.shadowBlur,i=t.stroked,o=_(t.x),n=_(t.y),s=_(t.w);i&&e.strokeText(r,o,n,s),t.filled&&(a&&i&&(e.shadowBlur=0),e.fillText(r,o,n,s),a&&i&&(e.shadowBlur=a))}function at(e,r,t,a){var i=a.textAlign,o=a.color,n=!!o,s=a.font,u=r.length,d=a.textStrokeColor,l=a.textStrokeWidth,h=d&&l,f;if(!(!u||!n&&!h))for(t=et(t,i,s),e.font=s.string,e.textAlign=i,e.textBaseline=`middle`,e.shadowBlur=a.textShadowBlur,e.shadowColor=a.textShadowColor,n&&(e.fillStyle=o),h&&(e.lineJoin=`round`,e.lineWidth=l,e.strokeStyle=d),f=0,u=r.length;f<u;++f)tt(e,r[f],{stroked:h,filled:n,w:t.w,x:t.x,y:t.y+t.h*f})}function E(e,r,t){var a=Math.cos(t),i=Math.sin(t),o=r.x,n=r.y;return{x:o+a*(e.x-o)-i*(e.y-n),y:n+i*(e.x-o)+a*(e.y-n)}}function Ee(e,r){var t=it,a=rt,i=r.origin,o,n,s,u,d;for(o=0;o<e.length;++o)n=e[o],s=n.x-i.x,u=n.y-i.y,d=r.vx*s+r.vy*u,t=Math.min(t,d),a=Math.max(a,d);return{min:t,max:a}}function A(e,r){var t=r.x-e.x,a=r.y-e.y,i=Math.sqrt(t*t+a*a);return{vx:(r.x-e.x)/i,vy:(r.y-e.y)/i,origin:e,ln:i}}function Oe(e,r,t){var a=r.positioner(e,r),i=a.vx,o=a.vy;if(!i&&!o)return{x:a.x,y:a.y};var n=t.w,s=t.h,u=r.rotation,d=Math.abs(n/2*Math.cos(u))+Math.abs(s/2*Math.sin(u)),l=Math.abs(n/2*Math.sin(u))+Math.abs(s/2*Math.cos(u)),h=1/Math.max(Math.abs(i),Math.abs(o));return d*=i*h,l*=o*h,d+=r.offset*i,l+=r.offset*o,{x:a.x+d,y:a.y+l}}function ot(e,r){var t,a,i,o;for(t=e.length-1;t>=0;--t)for(i=e[t].$layout,a=t-1;a>=0&&i._visible;--a)o=e[a].$layout,o._visible&&i._box.intersects(o._box)&&r(i,o);return e}function nt(e){var r,t,a,i,o,n,s;for(r=0,t=e.length;r<t;++r)a=e[r],i=a.$layout,i._visible&&(s=new Proxy(a._el,{get:(u,d)=>u.getProps([d],!0)[d]}),o=a.geometry(),n=Oe(s,a.model(),o),i._box.update(n,o,a.rotation()));return ot(e,function(u,d){var l=u._hidable,h=d._hidable;l&&h||h?d._visible=!1:l&&(u._visible=!1)})}function ut(e,r){var t=e.datalabels,a={},i=[],o,n;return t===!1?null:(t===!0&&(t={}),r=Ft({},[r,t]),o=r.labels||{},n=Object.keys(o),delete r.labels,n.length?n.forEach(function(s){o[s]&&i.push(Ft({},[r,o[s],{_key:s}]))}):i.push(r),a=i.reduce(function(s,u){return O$1(u.listeners||{},function(d,l){s[l]=s[l]||{},s[l][u._key||Ae]=d}),delete u.listeners,s},{}),{labels:i,listeners:a})}function W(e,r,t,a){if(r){var i=t.$context,o=t.$groups,n;r[o._set]&&(n=r[o._set][o._key],n&&B$1(n,[i,a])===!0&&(e[m]._dirty=!0,t.update(i)))}}function dt(e,r,t,a,i){var o,n;!t&&!a||(t?a?t!==a&&(n=o=!0):n=!0:o=!0,n&&W(e,r.leave,t,i),o&&W(e,r.enter,a,i))}function ht(e,r){var t=e[m],a=t._listeners,i,o;if(!(!a.enter&&!a.leave)){if(r.type===`mousemove`)o=P.lookup(t._labels,r);else if(r.type!==`mouseout`)return;i=t._hovered,t._hovered=o,dt(e,a,i,o,r)}}function ft(e,r){var t=e[m],a=t._listeners.click,i=a&&P.lookup(t._labels,r);i&&W(e,a,i,r)}var Me;var I;var Ye;var Ie;var Pe;var Se;var Te;var O;var _;var Re;var rt;var it;var $e;var P;var st;var lt;var m;var Ae;var Ne;var De=A$1(()=>{t();zc();Me=(function(){if(typeof window<`u`){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1})(),I={toTextLines:function(e){var r=[],t;for(e=[].concat(e);e.length;)t=e.pop(),typeof t==`string`?r.unshift.apply(r,t.split(`
2`)):Array.isArray(t)?e.push.apply(e,t):D(e)||r.unshift(``+t);return r},textSize:function(e,r,t){var a=[].concat(r),i=a.length,o=e.font,n=0,s;for(e.font=t.string,s=0;s<i;++s)n=Math.max(e.measureText(a[s]).width,n);return e.font=o,{height:i*t.lineHeight,width:n}},bound:function(e,r,t){return Math.max(e,Math.min(r,t))},arrayDiff:function(e,r){var t=e.slice(),a=[],i,o,n,s;for(i=0,n=r.length;i<n;++i)s=r[i],o=t.indexOf(s),o===-1?a.push([s,1]):t.splice(o,1);for(i=0,n=t.length;i<n;++i)a.push([t[i],-1]);return a},rasterize:function(e){return Math.round(e*Me)/Me}};Ye=0,Ie=1,Pe=2,Se=4,Te=8;O={arc:function(e,r){var t=(e.startAngle+e.endAngle)/2,a=Math.cos(t),i=Math.sin(t),o=e.innerRadius,n=e.outerRadius;return $({x0:e.x+a*o,y0:e.y+i*o,x1:e.x+a*n,y1:e.y+i*n,vx:a,vy:i},r)},point:function(e,r){var t=F(e,r.origin),a=t.x*e.options.radius,i=t.y*e.options.radius;return $({x0:e.x-a,y0:e.y-i,x1:e.x+a,y1:e.y+i,vx:t.x,vy:t.y},r)},bar:function(e,r){var t=F(e,r.origin),a=e.x,i=e.y,o=0,n=0;return e.horizontal?(a=Math.min(e.x,e.base),o=Math.abs(e.base-e.x)):(i=Math.min(e.y,e.base),n=Math.abs(e.base-e.y)),$({x0:a,y0:i+n,x1:a+o,y1:i,vx:t.x,vy:t.y},r)},fallback:function(e,r){var t=F(e,r.origin);
vendor: 4,911 bytes, line 2
2return $({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:t.x,vy:t.y},r)}},_=I.rasterize;Re=function(e,r,t,a){var i=this;i._config=e,i._index=a,i._model=null,i._rects=null,i._ctx=r,i._el=t};Ft(Re.prototype,{_modelize:function(e,r,t,a){var i=this,o=i._index,n=U$1(ie([t.font,{}],a,o)),s=ie([t.color,W$1.color],a,o);return{align:ie([t.align,`center`],a,o),anchor:ie([t.anchor,`center`],a,o),area:a.chart.chartArea,backgroundColor:ie([t.backgroundColor,null],a,o),borderColor:ie([t.borderColor,null],a,o),borderRadius:ie([t.borderRadius,0],a,o),borderWidth:ie([t.borderWidth,0],a,o),clamp:ie([t.clamp,!1],a,o),clip:ie([t.clip,!1],a,o),color:s,display:e,font:n,lines:r,offset:ie([t.offset,4],a,o),opacity:ie([t.opacity,1],a,o),origin:qe(i._el,a),padding:G(ie([t.padding,4],a,o)),positioner:Qe(i._el),rotation:ie([t.rotation,0],a,o)*(Math.PI/180),size:I.textSize(i._ctx,r,n),textAlign:ie([t.textAlign,`start`],a,o),textShadowBlur:ie([t.textShadowBlur,0],a,o),textShadowColor:ie([t.textShadowColor,s],a,o),textStrokeColor:ie([t.textStrokeColor,s],a,o),textStrokeWidth:ie([t.textStrokeWidth,0],a,o)}},update:function(e){var r=this,t=null,a=null,i=r._index,o=r._config,n,s,u,d=ie([o.display,!0],e,i);d&&(n=e.dataset.data[i],s=C(B$1(o.formatter,[n,e]),n),u=D(s)?[]:I.toTextLines(s),u.length&&(t=r._modelize(d,u,o,e),a=Xe(t))),r._model=t,r._rects=a},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,r){var t=this,a=e.ctx,i=t._model,o=t._rects,n;this.visible()&&(a.save(),i.clip&&(n=i.area,a.beginPath(),a.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),a.clip()),a.globalAlpha=I.bound(0,i.opacity,1),a.translate(_(r.x),_(r.y)),a.rotate(i.rotation),Ze(a,o.frame,i),at(a,i.lines,o.text,i),a.restore())}});rt=Number.MIN_SAFE_INTEGER||-9007199254740991,it=Number.MAX_SAFE_INTEGER||9007199254740991;$e=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};Ft($e.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,r,t){this._rotation=t,this._rect={x:r.x+e.x,y:r.y+e.y,w:r.w,h:r.h}},contains:function(e){var r=this,t=1,a=r._rect;return e=E(e,r.center(),-r._rotation),!(e.x<a.x-t||e.y<a.y-t||e.x>a.x+a.w+t*2||e.y>a.y+a.h+t*2)},intersects:function(e){var r=this._points(),t=e._points(),a=[A(r[0],r[1]),A(r[0],r[3])],i,o,n;for(this._rotation!==e._rotation&&a.push(A(t[0],t[1]),A(t[0],t[3])),i=0;i<a.length;++i)if(o=Ee(r,a[i]),n=Ee(t,a[i]),o.max<n.min||n.max<o.min)return!1;return!0},_points:function(){var e=this,r=e._rect,t=e._rotation,a=e.center();return[E({x:r.x,y:r.y},a,t),E({x:r.x+r.w,y:r.y},a,t),E({x:r.x+r.w,y:r.y+r.h},a,t),E({x:r.x,y:r.y+r.h},a,t)]}});P={prepare:function(e){var r=[],t,a,i,o,n;for(t=0,i=e.length;t<i;++t)for(a=0,o=e[t].length;a<o;++a)n=e[t][a],r.push(n),n.$layout={_box:new $e,_hidable:!1,_visible:!0,_set:t,_idx:n._index};return r.sort(function(s,u){var d=s.$layout,l=u.$layout;return d._idx===l._idx?l._set-d._set:l._idx-d._idx}),this.update(r),r},update:function(e){var r=!1,t,a,i,o,n;for(t=0,a=e.length;t<a;++t)i=e[t],o=i.model(),n=i.$layout,n._hidable=o&&o.display===`auto`,n._visible=i.visible(),r|=n._hidable;r&&nt(e)},lookup:function(e,r){var t,a;for(t=e.length-1;t>=0;--t)if(a=e[t].$layout,a&&a._visible&&a._box.contains(r))return e[t];return null},draw:function(e,r){var t,a,i,o,n,s;for(t=0,a=r.length;t<a;++t)i=r[t],o=i.$layout,o._visible&&(n=i.geometry(),s=Oe(i._el,i.model(),n),o._box.update(s,n,i.rotation()),i.draw(e,s))}},st=function(e){if(D(e))return null;var r=e,t,a,i;if(P$1(e))if(!D(e.label))r=e.label;else if(!D(e.r))r=e.r;else for(r=``,t=Object.keys(e),i=0,a=t.length;i<a;++i)r+=(i!==0?`, `:``)+t[i]+`: `+e[t[i]];return``+r},lt={align:`center`,anchor:`center`,backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:st,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:`start`,textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},m=`$datalabels`,Ae=`$default`;Ne={id:`datalabels`,defaults:lt,beforeInit:function(e){e[m]={_actives:[]}},beforeUpdate:function(e){var r=e[m];r._listened=!1,r._listeners={},r._datasets=[],r._labels=[]},afterDatasetUpdate:function(e,r,t){var a=r.index,i=e[m],o=i._datasets[a]=[],n=e.isDatasetVisible(a),s=e.data.datasets[a],u=ut(s,t),d=r.meta.data||[],l=e.ctx,h,f,p,b,c,C,g,w;for(l.save(),h=0,p=d.length;h<p;++h)if(g=d[h],g[m]=[],n&&g&&e.getDataVisibility(h)&&!g.skip)for(f=0,b=u.labels.length;f<b;++f)c=u.labels[f],C=c._key,w=new Re(c,l,g,h),w.$groups={_set:a,_key:C||Ae},w.$context={active:!1,chart:e,dataIndex:h,dataset:s,datasetIndex:a},w.update(w.$context),g[m].push(w),o.push(w);
2l.restore(),Ft(i._listeners,u.listeners,{merger:function(S,N,Le){N[S]=N[S]||{},N[S][r.index]=Le[S],i._listened=!0}})},afterUpdate:function(e){e[m]._labels=P.prepare(e[m]._datasets)},afterDatasetsDraw:function(e){P.draw(e,e[m]._labels)},beforeEvent:function(e,r){if(e[m]._listened){var t=r.event;switch(t.type){case`mousemove`:case`mouseout`:ht(e,t);break;case`click`:ft(e,t);break}}},afterEvent:function(e){var r=e[m],t=r._actives,a=r._actives=e.getActiveElements(),i=I.arrayDiff(t,a),o,n,s,u,d,l,h;for(o=0,n=i.length;o<n;++o)if(d=i[o],d[1])for(h=d[0].element[m]||[],s=0,u=h.length;s<u;++s)l=h[s],l.$context.active=d[1]===1,l.update(l.$context);(r._dirty||i.length)&&(P.update(r._labels),e.render()),delete r._dirty}}});function yt(e,r){e&1&&vy(0,`ngx-skeleton-loader`,1),e&2&&yy(`theme`,G_(1,ct))}var vt;var ct;var pt;var bt;var mt;var gt;var xt;var _t;var Ct;var wt;var kt;var Mt;var Et;var It;var Vt;var Pt=A$1(()=>{To();fv();HB();OM();yv();zc();De();mw();rt$1();U();c();OM();U();vt=[`chartCanvas`],ct=()=>({height:`100%`});({blue:pt,cyan:bt,grape:mt,green:gt,indigo:xt,lime:_t,orange:Ct,pink:wt,red:kt,teal:Mt,violet:Et,yellow:It}=a),Vt=(()=>{class e{constructor(){this.data={},this.isInPercentage=!1,this.keys=[],this.locale=WB(),this.showLabels=!1,this.isLoading=!0,this.proportionChartClicked=tB(),this.OTHER_KEY=`OTHER`,this.chartCanvas=oB.required(`chartCanvas`),this.colorMap={},Sl.register(jn,kn,lh,ah)}ngAfterViewInit(){this.data&&this.initialize()}ngOnChanges(){this.data&&this.initialize()}ngOnDestroy(){this.chart?.destroy()}initialize(){this.isLoading=!0;let t={};if(this.colorMap={[this.OTHER_KEY]:`rgba(${Epe(this.colorScheme)}, 0.24)`,[fee]:`rgba(${Epe(this.colorScheme)}, 0.12)`},this.keys.length>0){let l=this.keys[0],h=this.keys[1];Object.keys(this.data).forEach(f=>{let p=this.data[f],b=p.value||0,c=p[l]?.toUpperCase(),C=p[h];if(c)if(t[c]){t[c].value=t[c].value.plus(b);let g=t[c].subCategory?.[C];g?g.value=g.value.plus(b):t[c].subCategory&&(t[c].subCategory[C??fee]={value:new Kc(b)})}else t[c]={name:p[l],subCategory:{},value:new Kc(b)},C&&(t[c].subCategory={[C]:{value:new Kc(b)}});else t[fee]?t[fee].value=t[fee].value.plus(this.data[f].value||0):t[fee]={name:this.data[f].name,subCategory:h?{[h]:{value:new Kc(0)}}:void 0,value:new Kc(b)}})}else Object.keys(this.data).forEach(l=>{t[l]={name:this.data[l].name,value:new Kc(this.data[l].value||0)}});if(this.isInPercentage){let l=Ape(Object.values(t).map(({value:f})=>f)),h=new Kc(1).minus(l);h.gt(1e-4)&&(t[fee]?t[fee].value=t[fee].value.plus(h):t[fee]={name:fee,value:h})}let a=Object.entries(t).sort((l,h)=>l[1].value.minus(h[1].value).toNumber()).reverse();if(this.maxItems&&a.length>this.maxItems){let l=a.splice(this.maxItems,a.length-1);a.push([this.OTHER_KEY,{name:this.OTHER_KEY,subCategory:{},value:new Kc(0)}]);let h=a[a.length-1];l.forEach(f=>{h?.[1]&&(h[1]={name:this.OTHER_KEY,subCategory:{},value:h[1].value.plus(f[1].value)})}),a=a.sort((f,p)=>f[1].value.minus(p[1].value).toNumber()).reverse()}a.forEach(([l,h],f)=>{this.colorMap[l]?h.color=this.colorMap[l]:h.color=this.getColorPalette()[f%this.getColorPalette().length]});let i=[],o=[],n=[];a.forEach(([,l])=>{let h=.2;Object.keys(l.subCategory??{}).forEach(f=>{l.name===fee?i.push(l.color??``):i.push(_t$1(l.color).lighten(h).hex()),o.push(l.subCategory?.[f].value.toNumber()??0),n.push(f),h+=.1})});let s=[{backgroundColor:a.map(([,l])=>l.color),borderWidth:0,data:a.map(([,l])=>l.value.toNumber())}],u=a.map(([,{name:l}])=>l);this.keys[1]&&(s.unshift({backgroundColor:i,borderWidth:0,data:o}),u=n.concat(u)),(s[0]?.data?.length===0||s[0]?.data?.[0]===0)&&(u=[``],s[0].backgroundColor=[this.colorMap[fee]],s[0].data[0]=Number.MAX_SAFE_INTEGER),(s[1]?.data?.length===0||s[1]?.data?.[1]===0)&&(u=[``],s[1].backgroundColor=[this.colorMap[fee]],s[1].data[1]=Number.MAX_SAFE_INTEGER);let d={datasets:s,labels:u};this.chartCanvas()&&(this.chart?(this.chart.data=d,this.chart.options.plugins??={},this.chart.options.plugins.tooltip=this.getTooltipPluginConfiguration(d),this.chart.update()):this.chart=new Sl(this.chartCanvas().nativeElement,{data:d,options:{animation:!1,cutout:`70%`,layout:{padding:this.showLabels===!0?100:0},onClick:(l,h,f)=>{try{let p=h[0].index,b=f.data.labels?.[p];if(this.data[b]?.isClickable===!1)return;let c=this.data[b]?.dataSource;
2this.proportionChartClicked.emit(c?{dataSource:c,symbol:b}:{accountId:b})}catch(p){}},onHover:(l,h,f)=>{if(this.cursor){let p=h[0]?f.data.labels?.[h[0].index]:void 0;(l.native?.target).style.cursor=p&&this.data[p]?.isClickable!==!1?this.cursor:`default`}},plugins:{datalabels:{color:l=>this.getColorPalette()[l.dataIndex%this.getColorPalette().length],display:this.showLabels===!0?`auto`:!1,labels:{index:{align:`end`,anchor:`end`,formatter:(l,h)=>{let f=h.chart.data.labels?.[h.dataIndex];return l<=0?``:vl(f)?this.data[f]?.name??f:f},offset:8}}},legend:{display:!1},tooltip:this.getTooltipPluginConfiguration(d)}},plugins:[Ne],type:`doughnut`})),this.isLoading=!1}getColorPalette(){return[pt[5],Mt[5],_t[5],Ct[5],wt[5],Et[5],xt[5],bt[5],gt[5],It[5],kt[5],mt[5]]}getTooltipPluginConfiguration(t){return x(w({},Hc({colorScheme:this.colorScheme,currency:this.baseCurrency,locale:this.locale})),{callbacks:{label:a=>{let i=(t.datasets[a.datasetIndex-1]?.data?.length??0)+a.dataIndex,o=a.chart.data.labels?.[i]??``;o===this.OTHER_KEY?o="Other":o===fee&&(o="No data available");let n=this.data[o]?.name,s=0;for(let d of a.dataset.data)s+=d;let u=a.parsed*100/s;if(a.raw===Number.MAX_SAFE_INTEGER)return "No data available";if(this.isInPercentage)return[`${n??o}`,`${u.toFixed(2)}%`];{let d=a.raw;return[`${n??o}`,`${d.toLocaleString(this.locale,{maximumFractionDigits:2,minimumFractionDigits:2})} ${this.baseCurrency} (${u.toFixed(2)}%)`]}},title:()=>``}})}static{this.ɵfac=function(a){return new(a||e)}}static{this.ɵcmp=xT({type:e,selectors:[[`gf-portfolio-proportion-chart`]],viewQuery:function(a,i){a&1&&Zy(i.chartCanvas,vt,5),a&2&&a_()},inputs:{baseCurrency:`baseCurrency`,colorScheme:`colorScheme`,cursor:`cursor`,data:`data`,isInPercentage:`isInPercentage`,keys:`keys`,locale:`locale`,maxItems:`maxItems`,showLabels:`showLabels`},outputs:{proportionChartClicked:`proportionChartClicked`},features:[WE],decls:3,vars:3,consts:[[`chartCanvas`,``],[`animation`,`pulse`,1,`h-100`,3,`theme`]],template:function(a,i){a&1&&(nb(0,yt,1,2,`ngx-skeleton-loader`,1),vy(1,`canvas`,null,0)),a&2&&(rb(i.isLoading?0:-1),Bw(),ev(`display`,i.isLoading?`none`:`block`))},dependencies:[K,B],styles:[`[_nghost-%COMP%]{aspect-ratio:1;display:block}`]})}}return e})()});export{Vt as n,Pt as t};

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.