/*! * ApexCharts v7.4.0 * (c) 2018-2026 ApexCharts */ !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).ApexUnitShapes={})}(this,function(t){"use strict";var n=Object.defineProperty,e=Object.defineProperties,o=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,i=(t,e,o)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,c=(t,n)=>{for(var e in n||(n={}))a.call(n,e)&&i(t,e,n[e]);if(r)for(var e of r(n))s.call(n,e)&&i(t,e,n[e]);return t},l=(t,n)=>e(t,o(n));const h=/[MmLlHhVvCcSsQqTtAaZz]/;function u(t,n=.6,e=!1){const o=n>0?n:.6,r=t.length;let a=0;const s=[];let i=[],c=0,l=0,u=0,L=0,f=0,g=0,m="";const p=t=>" "===t||","===t||"\t"===t||"\n"===t||"\r"===t;function y(){for(;a="0"&&t[a]<="9";)a++;if("."===t[a])for(a++;a="0"&&t[a]<="9";)a++;if("e"===t[a]||"E"===t[a])for(a++,"+"!==t[a]&&"-"!==t[a]||a++;a="0"&&t[a]<="9";)a++;if(a===n)return null;const e=parseFloat(t.slice(n,a));return isFinite(e)?e:null}function x(){y();const n=t[a];return"0"===n||"1"===n?(a++,"1"===n):null}function d(){i.length>(e?1:2)&&s.push(i),i=[]}function b(t,n){d(),c=u=t,l=L=n,i=[{x:t,y:n}]}function w(t,n){i.push({x:t,y:n}),c=t,l=n}function C(t,n,e,r,a,s){const h=Math.hypot(t-c,n-l)+Math.hypot(e-t,r-n)+Math.hypot(a-e,s-r),u=Math.max(2,Math.min(160,Math.ceil(h/o))),L=c,m=l;for(let o=1;o<=u;o++){const c=o/u,l=1-c,h=l*l*l,f=3*l*l*c,g=3*l*c*c,p=c*c*c;i.push({x:h*L+f*t+g*e+p*a,y:h*m+f*n+g*r+p*s})}f=e,g=r,c=a,l=s}function Z(t,n,e,o){const r=t,a=n;C(c+2/3*(t-c),l+2/3*(n-l),e+2/3*(t-e),o+2/3*(n-o),e,o),f=r,g=a}function A(t,n,e,r,a,s,h){if(!t||!n)return void w(s,h);const u=c,L=l;t=Math.abs(t),n=Math.abs(n);const m=e*Math.PI/180,p=Math.cos(m),y=Math.sin(m),M=(u-s)/2,x=(L-h)/2,d=p*M+y*x,b=-y*M+p*x,C=d*d/(t*t)+b*b/(n*n);if(C>1){const e=Math.sqrt(C);t*=e,n*=e}const Z=t*t*n*n-t*t*b*b-n*n*d*d,A=t*t*b*b+n*n*d*d,U=(r===a?-1:1)*Math.sqrt(Math.max(0,Z/(A||1))),$=U*t*b/n,k=-U*n*d/t,v=p*$-y*k+(u+s)/2,O=y*$+p*k+(L+h)/2,q=(d-$)/t,j=(b-k)/n,E=(-d-$)/t,P=(-b-k)/n,Y=Math.atan2(j,q);let I=Math.atan2(P,E)-Y;!a&&I>0&&(I-=2*Math.PI),a&&I<0&&(I+=2*Math.PI);const S=Math.max(2,Math.min(320,Math.ceil(Math.abs(I)*Math.max(t,n)/o)));for(let e=1;e<=S;e++){const o=Y+I*e/S,r=Math.cos(o),a=Math.sin(o);i.push({x:v+t*r*p-n*a*y,y:O+t*r*y+n*a*p})}f=s,g=h,c=s,l=h}for(;a=r));){let n=t[a];if(h.test(n))a++;else{if(!m)break;n="M"===m?"L":"m"===m?"l":m}const e=n>="a"&&n<="z",o=n.toUpperCase();if("Z"===o){i.length&&i.push({x:u,y:L}),d(),c=u,l=L,m=n;continue}const r=t=>null==t?NaN:t,p=r(M());if(isNaN(p))break;switch(o){case"M":{const t=r(M());if(isNaN(t))return s;b(e?c+p:p,e?l+t:t);break}case"L":{const t=r(M());if(isNaN(t))return s;w(e?c+p:p,e?l+t:t);break}case"H":w(e?c+p:p,l);break;case"V":w(c,e?l+p:p);break;case"C":{const t=[p,M(),M(),M(),M(),M()];if(t.some(t=>null==t))return s;const n=t;C(e?c+n[0]:n[0],e?l+n[1]:n[1],e?c+n[2]:n[2],e?l+n[3]:n[3],e?c+n[4]:n[4],e?l+n[5]:n[5]);break}case"S":{const t=[p,M(),M(),M()];if(t.some(t=>null==t))return s;const n=t,o=m&&"CcSs".indexOf(m)>=0;C(o?2*c-f:c,o?2*l-g:l,e?c+n[0]:n[0],e?l+n[1]:n[1],e?c+n[2]:n[2],e?l+n[3]:n[3]);break}case"Q":{const t=[p,M(),M(),M()];if(t.some(t=>null==t))return s;const n=t;Z(e?c+n[0]:n[0],e?l+n[1]:n[1],e?c+n[2]:n[2],e?l+n[3]:n[3]);break}case"T":{const t=r(M());if(isNaN(t))return s;const n=m&&"QqTt".indexOf(m)>=0;Z(n?2*c-f:c,n?2*l-g:l,e?c+p:p,e?l+t:t);break}case"A":{const t=p,n=M(),o=M(),r=x(),a=x(),i=M(),h=M();if(null==n||null==o||null==r||null==a||null==i||null==h)return s;A(t,n,o,r,a,e?c+i:i,e?l+h:h);break}default:return s}"C"!==o&&"S"!==o&&"Q"!==o&&"T"!==o&&(f=c,g=l),m=n}return d(),s}function L(t){const n={x0:1/0,y0:1/0,x1:-1/0,y1:-1/0};return t.forEach(t=>{t.forEach(t=>{t.xn.x1&&(n.x1=t.x),t.y>n.y1&&(n.y1=t.y)})}),n}const f=128;function g(t,n,e){const o=Math.max(1e-6,t.x1-t.x0),r=Math.max(1e-6,t.y1-t.y0),a=Math.min(n.width*e/o,n.height*e/r);return{scale:a,offX:n.x+n.width/2-(t.x0+o/2)*a,offY:n.y+n.height/2-(t.y0+r/2)*a}}function m(t,n,e){const o=.42*n,r=.45*n,a=t.maxY-t.minY,s=Math.max(1,Math.floor(a/e)),i=t.minY+(a-s*e)/2,c=[];let l=0;for(let a=0;a=2*o?Math.floor((e-2*o)/n)+1:e>=r?1:0,i&&(c.push({y:s,x0:h[t].x0,x1:h[t].x1,cap:i,row:a}),l+=i)}}return{cells:c,capacity:l,inset:o}}function p(t,n){const e=new Array(t.length).fill(0);let o=0;for(let n=0;nn.frac-t.frac);for(let t=0;r=n?o=a:r=a}return o}function M(t,n){return Math.min(Math.max(t,n/3.2),n/2.3)}const x={rows:null,rowsUp:(t,n)=>n.y-t.y||t.x-n.x,cols:(t,n)=>(t.qx||0)-(n.qx||0)||t.y-n.y,colsRev:(t,n)=>(n.qx||0)-(t.qx||0)||t.y-n.y,centerOut:(t,n)=>(t.qd||0)-(n.qd||0)||t.y-n.y,centerIn:(t,n)=>(n.qd||0)-(t.qd||0)||t.y-n.y};function d(t,n,e,o){const r=void 0!==x[e]?x[e]:null;let a=n;if(r){let t=0,e=0;n.forEach(n=>{t+=n.x,e+=n.y}),t/=n.length||1,e/=n.length||1;const s=o>0?o:1;n.forEach(n=>{n.qx=Math.round(n.x/s),n.qd=Math.round(Math.hypot(n.x-t,n.y-e)/s)}),a=n.slice().sort(r)}const s=[];for(let n=0;n1.5*e&&(i=e,s=(t.x0+t.x1)/2-i*(n-1)/2);for(let e=0;e{if(o&&n.length&&n.lengthC(c(c({},t),e),n),r}const Z=new Map;function A(t){const n=t.path||"",e=t.order||"rows",o=null==t.padding?.94:t.padding,r=null==t.rowRatio?.88:t.rowRatio,a="evenodd"===t.fillRule,s=null==t.sampling?.6:t.sampling;return(t,i)=>{if(!t.length||!n)return[];const{polys:c,bounds:l}=function(t,n){const e=`${n}|${t}`;let o=Z.get(e);if(!o){const r=u(t,n);o={polys:r,bounds:L(r)},Z.set(e,o)}return o}(n,s);if(!c.length)return[];const h=function(t,n,e={}){const o=!!e.evenOdd,r=[];let a=1/0,s=-1/0,i=1/0,c=-1/0;if(t.forEach(t=>{for(let e=0;ec&&(c=h),L>c&&(c=L),us&&(s=u),f>s&&(s=f),u!==f&&r.push({x0:h,y0:u,x1:L,y1:f})}}),!r.length)return{minY:0,maxY:0,minX:0,maxX:0,spansAt:()=>[]};const l=Math.max(1e-6,s-a),h=[];for(let t=0;t{const n=Math.min(t.y0,t.y1),e=Math.max(t.y0,t.y1);let o=Math.floor((n-a)/l*f),r=Math.floor((e-a)/l*f);o=Math.max(0,Math.min(127,o)),r=Math.max(0,Math.min(127,r));for(let n=o;n<=r;n++)h[n].push(t)}),{minY:a,maxY:s,minX:i,maxX:c,spansAt:t=>{const n=Math.floor((t-a)/l*f);if(n<0||n>127)return[];const e=h[n],r=[];for(let n=0;no.y0,s=a?o.y0:o.y1,i=a?o.y1:o.y0;t=i||r.push({x:o.x0+(t-o.y0)/(o.y1-o.y0)*(o.x1-o.x0),dir:a?1:-1})}if(r.length<2)return[];r.sort((t,n)=>t.x-n.x);const s=[];if(o){for(let t=0;t+1t.cap),t.length),A=M(t[0].r>0?t[0].r:3,x),U=[];return w.cells.forEach((t,n)=>{b(t,C[n],x,w.inset,A,U)}),d(t,U,e,x)}}function U(t){return C(l(c({},t),{kind:"silhouette"}),A)}const $=U({name:"heart",category:"symbols",minUnits:40,source:"original",path:"M 50 93 C 20 71 5 53 5 34 C 5 17 18 6 32 6 C 41 6 47 11 50 19 C 53 11 59 6 68 6 C 82 6 95 17 95 34 C 95 53 80 71 50 93 Z"}),k=U({name:"droplet",category:"nature",minUnits:40,source:"original",path:"M 50 3 C 50 3 13 46 13 66 A 37 37 0 0 0 87 66 C 87 46 50 3 50 3 Z"}),v=U({name:"human",category:"people",minUnits:80,source:"original",path:"M 39 13 A 11 11 0 0 1 61 13 A 11 11 0 0 1 39 13 Z M 38 30 C 33 31 29 34 27 40 L 19 64 L 26 67 L 33 48 L 34 58 L 31 96 L 44 96 L 46 64 L 54 64 L 56 96 L 69 96 L 66 58 L 67 48 L 74 67 L 81 64 L 73 40 C 71 34 67 31 62 30 Z"}),O=U({name:"tree",category:"nature",minUnits:80,source:"original",path:"M 50 3 C 62 3 70 11 70 19 C 81 16 91 24 91 34 C 97 39 97 51 89 56 C 87 62 77 66 67 63 C 63 68 55 70 50 68 C 45 70 37 68 33 63 C 23 66 13 62 11 56 C 3 51 3 39 9 34 C 9 24 19 16 30 19 C 30 11 38 3 50 3 Z M 41 58 L 59 58 L 60 88 C 61 92 63 94 67 96 L 33 96 C 37 94 39 92 40 88 Z"}),q=U({name:"house",category:"objects",minUnits:120,order:"rows",source:"original",path:"M 50 4 L 97 44 L 97 50 L 84 50 L 84 95 L 16 95 L 16 50 L 3 50 L 3 44 Z M 44 95 L 56 95 L 56 70 L 44 70 Z M 25 58 L 25 69 L 37 69 L 37 58 Z M 63 58 L 63 69 L 75 69 L 75 58 Z"}),j=U({name:"battery",category:"objects",minUnits:40,order:"cols",source:"original",path:"M 14 22 L 72 22 C 78 22 82 26 82 32 L 82 38 L 93 38 L 93 62 L 82 62 L 82 68 C 82 74 78 78 72 78 L 14 78 C 8 78 4 74 4 68 L 4 32 C 4 26 8 22 14 22 Z"}),E=U({name:"shield",category:"technology",minUnits:40,source:"original",path:"M 6 8 L 94 8 L 94 38 C 94 60 82 81 50 97 C 18 81 6 60 6 38 Z"}),P=U({name:"rocket",category:"objects",minUnits:120,source:"original",path:"M 50 2 C 59 13 65 28 66 45 L 66 76 L 58 88 L 42 88 L 34 76 L 34 45 C 35 28 41 13 50 2 Z M 65 56 L 85 86 L 85 95 L 65 82 Z M 35 56 L 15 86 L 15 95 L 35 82 Z M 43.5 34 A 6.5 6.5 0 0 0 56.5 34 A 6.5 6.5 0 0 0 43.5 34 Z"}),Y=t=>t.reduce((t,n)=>t+n,0);function I(t){const n=null==t.padding?.94:t.padding,e="centerIn"===t.order,o=null==t.twist?2.399963:t.twist;return(t,r)=>{const a=t.length;if(!a)return[];const s=Math.min(r.width,r.height)/2*n,i=r.x+r.width/2,c=r.y+r.height/2,l=t=>{const n=[];for(let e=0;e0?t[0].r:3,u),g=[];for(let t=0;t{const a=t.length;if(!a)return[];const s=Math.min(r.width,r.height)/2*n,i=r.x+r.width/2,c=r.y+r.height/2,l=Math.cos(e),h=Math.sin(e),u=(t,n,e)=>{const o=n*Math.cos(e);return{x:s*n*Math.sin(e),y:s*(t*l+o*h),depth:o*l-t*h}},L=t=>{const n=Math.max(3,Math.ceil(Math.PI*s/t)),e=Math.PI/n,o=.95*t,r=o,a=new Map,L=[];let f=0;const g=t=>{const n=Math.floor(t.x/r),e=Math.floor(t.y/r);for(let r=-1;r<=1;r++)for(let s=-1;s<=1;s++){const i=a.get(`${n+r},${e+s}`);if(i)for(let n=0;n=1)continue;const m=s<=-1?Math.PI:Math.acos(s),p=m>=Math.PI-1e-9,y=[],M=[0];for(let t=0;t<=40;t++){const n=u(a,r,2*m*t/40-m);if(y.push(n),t>0){const e=y[t-1];M.push(M[t-1]+Math.hypot(n.x-e.x,n.y-e.y))}}const x=M[M.length-1],d=p?0:Math.min(.42*t,x/2),b=x-2*d;let w;if(w=p?Math.max(1,Math.round(x/t)):b>0?Math.floor(b/t)+1:x>=.45*t?1:0,!w)continue;const C=p?x/w:w>1?b/(w-1):0,Z=[];let A=0;for(let t=0;t1?d+t*C:x/2;for(;Ae?(n-e)/(o-e):0,a=y[A],s=y[A+1],l={x:i+a.x+(s.x-a.x)*r,y:c+a.y+(s.y-a.y)*r,depth:a.depth+(s.depth-a.depth)*r};g(l)&&Z.push(l)}Z.length&&(L.push(Z),f+=Z.length)}return{rows:L,total:f}};let f=1,g=2*s;for(let t=0;t<30;t++){const t=(f+g)/2;L(t).total>=a?f=t:g=t}const m=f,{rows:y}=L(m),x=p(y.map(t=>t.length),a),b=M(t[0].r>0?t[0].r:3,m),w=[];return y.forEach((t,n)=>{const e=x[n];if(e)for(let o=0;ot.y-n.y||t.x-n.x),d(t,w,o,m)}}function X(t){const n=null==t.padding?.94:t.padding,e=null==t.rowRatio?.9:t.rowRatio,o=t.order||"rowsUp";return(t,r)=>{const a=t.length;if(!a)return[];const s=Math.max(1,Math.round((Math.sqrt(8*a+1)-1)/2)),i=[];for(let t=0;t0?t[0].r:3,h),m=[];for(let t=0;t{if(!t.length||!n)return[];const{polys:c,bounds:l}=function(t,n){const e=`${n}|${t}`;let o=Lt.get(e);if(!o){const r=u(t,n,!0);o={polys:r,bounds:L(r)},Lt.set(e,o)}return o}(n,a);if(!c.length)return[];const h=function(t,n,e){const o=Math.max(1e-6,e*n.scale),r=[];let a=1/0,s=-1/0,i=1/0,c=-1/0;if(t.forEach(t=>{for(let e=0;e+11e-9?-(L-h)/f*o:o,m=f>1e-9?(u-l)/f*o:0;r.push({ax:l,ay:h,bx:u,by:L,nx:g,ny:m}),Math.min(l,u)-oc&&(c=Math.max(l,u)+o),Math.min(h,L)-os&&(s=Math.max(h,L)+o)}}),!r.length)return{minY:0,maxY:0,minX:0,maxX:0,spansAt:()=>[]};const l=Math.max(1e-6,s-a),h=[];for(let t=0;t{const n=Math.min(t.ay,t.by)-o,e=Math.max(t.ay,t.by)+o;let r=Math.floor((n-a)/l*f),s=Math.floor((e-a)/l*f);r=Math.max(0,Math.min(127,r)),s=Math.max(0,Math.min(127,s));for(let n=r;n<=s;n++)h[n].push(t)});const u=(t,n,e)=>{const r=e-n;if(r<=-o||r>=o)return null;const a=Math.sqrt(o*o-r*r);return{x0:t-a,x1:t+a}};return{minY:a,maxY:s,minX:i,maxX:c,spansAt:t=>{const n=Math.floor((t-a)/l*f);if(n<0||n>127)return[];const e=h[n],o=[];for(let n=0;n=h)continue;const u=a[n]+(t-o)/(r-o)*(a[e]-a[n]);uc&&(c=u)}c>i&&o.push({x0:i,x1:c});const l=u(r.ax,r.ay,t);l&&o.push(l);const h=u(r.bx,r.by,t);h&&o.push(h)}if(!o.length)return[];o.sort((t,n)=>t.x0-n.x0);const r=[o[0]];for(let t=1;tn.x1&&(n.x1=o[t].x1):r.push(o[t])}return r}}}(c,g({x0:l.x0-s,y0:l.y0-s,x1:l.x1+s,y1:l.y1+s},i,o),s),x=y(h,t.length,r),w=m(h,x,x*r);if(!w.cells.length)return[];const C=p(w.cells.map(t=>t.cap),t.length),Z=M(t[0].r>0?t[0].r:3,x),A=[];return w.cells.forEach((t,n)=>{b(t,C[n],x,w.inset,Z,A)}),d(t,A,e,x)}}function gt(t){return C(l(c({},t),{kind:"stroke"}),ft)}const mt=gt({name:"check",category:"symbols",minUnits:40,width:19,source:"original",path:"M 13 55 L 37 79 L 87 22"}),pt=gt({name:"wifi",category:"technology",minUnits:120,width:8,source:"original",path:"M 11.9 62 A 44 44 0 0 1 88.1 62 M 24 69 A 30 30 0 0 1 76 69 M 36.1 76 A 16 16 0 0 1 63.9 76 M 50 86 L 50 86"}),yt=gt({name:"pulse",category:"technology",minUnits:60,width:11,source:"original",path:"M 4 58 L 26 58 L 35 30 L 47 84 L 59 44 L 68 58 L 96 58"}),Mt=gt({name:"xmark",category:"symbols",minUnits:40,width:18,source:"original",path:"M 18 18 L 82 82 M 82 18 L 18 82"}),xt=gt({name:"percent",category:"symbols",minUnits:150,width:9,source:"original",path:"M 12 24 A 12 12 0 0 1 36 24 A 12 12 0 0 1 12 24 Z M 64 76 A 12 12 0 0 1 88 76 A 12 12 0 0 1 64 76 Z M 80 14 L 20 86"}),dt=gt({name:"question",category:"symbols",minUnits:90,width:14,source:"original",path:"M 25 32 C 25 8 76 8 76 33 C 76 52 50 54 50 70 M 50 90 L 50 90"}),bt=gt({name:"spiral",category:"symbols",minUnits:140,width:9,source:"generated",path:"M 56.0 50.0 L 56.4 51.4 L 56.5 52.9 L 56.2 54.5 L 55.5 56.1 L 54.3 57.5 L 52.9 58.8 L 51.0 59.7 L 48.9 60.3 L 46.6 60.3 L 44.3 59.9 L 42.0 58.9 L 39.9 57.3 L 38.1 55.3 L 36.8 52.8 L 35.9 50.0 L 35.7 47.0 L 36.2 43.8 L 37.3 40.8 L 39.1 37.9 L 41.6 35.5 L 44.7 33.5 L 48.1 32.3 L 51.9 31.7 L 55.8 32.0 L 59.7 33.1 L 63.4 35.1 L 66.6 37.9 L 69.3 41.4 L 71.1 45.5 L 72.2 50.0 L 72.2 54.7 L 71.2 59.4 L 69.2 64.0 L 66.3 68.1 L 62.4 71.5 L 57.8 74.1 L 52.7 75.8 L 47.2 76.3 L 41.7 75.7 L 36.2 73.8 L 31.2 70.9 L 26.8 66.8 L 23.4 61.9 L 21.0 56.2 L 19.8 50.0 L 19.9 43.6 L 21.4 37.3 L 24.2 31.3 L 28.3 25.9 L 33.5 21.5 L 39.7 18.2 L 46.4 16.2 L 53.6 15.7 L 60.8 16.6 L 67.8 19.2 L 74.2 23.1 L 79.7 28.4 L 84.0 34.9 L 86.9 42.1 L 88.3 50.0 L 88.0 58.1 L 86.0 66.0 L 82.3 73.5 L 77.1 80.1 L 70.5 85.5 L 62.8 89.5 L 54.4 91.8 L 45.5 92.4 L 36.7 91.0 L 28.2 87.8 L 20.4 82.9 L 13.8 76.3 L 8.6 68.4 L 5.2 59.5 L 3.6 50.0 L 4.1 40.2 L 6.6 30.7 L 11.2 21.8"}),wt=[$,k,v,O,q,j,E,P,R,_,D,Q,z,B,V,H,G,J,K,W,tt,nt,et,ot,rt,at,st,it,ct,lt,ht,ut,mt,pt,yt,Mt,xt,dt,bt],Ct="__apexcharts_unit_layouts__";function Zt(){const t=globalThis;return t[Ct]||(t[Ct]={}),t[Ct]}function At(t){const n=Zt(),e=[];return(Array.isArray(t)?t.map(t=>[t.shape?t.shape.name:"",t]):Object.entries(t)).forEach(([t,o])=>{const r=String(t),a=o;r&&"function"==typeof a&&(n[r]=a,e.push(r))}),e}const Ut=46,$t=48,kt=88,vt={a:[8,8,38,8],b:[40,11,40,45],c:[40,51,40,85],d:[8,kt,38,kt],e:[6,51,6,85],f:[6,11,6,45],g:[8,$t,38,$t]},Ot={0:"abcdef",2:"abdeg",3:"abcdg",4:"bcfg",5:"acdfg",6:"acdefg",7:"abc",8:"abcdefg",9:"abcdfg","-":"g"},qt={1:t=>`M ${t+17} 11 L ${t+17} 45 M ${t+17} 51 L ${t+17} 85 `,".":t=>`M ${t+20} 88 L ${t+20} 88 `,",":t=>`M ${t+21} 86 L ${t+15} 98 `,":":t=>`M ${t+20} 34 L ${t+20} 34 M ${t+20} 62 L ${t+20} 62 `},jt={1:23,".":19.32,",":19.32,":":19.32," ":23};function Et(t,n=10){let e="",o=0;for(const r of String(t)){if(" "===r){o+=jt[" "]+n;continue}const t=qt[r];if(t){e+=t(o),o+=(jt[r]||Ut)+n;continue}const a=Ot[r];if(!a)throw new Error(`[ApexCharts] glyphs(): no seven-segment form for "${r}". Digits, "-", ".", "," and ":" are available.`);for(const t of a){const n=vt[t];e+=`M ${o+n[0]} ${n[1]} L ${o+n[2]} ${n[3]} `}o+=(jt[r]||Ut)+n}return e.trim()}const Pt=["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"];function Yt(t,n){let e=0;for(let o=0;o{var e={};for(var o in t)a.call(t,o)&&n.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&r)for(var o of r(t))n.indexOf(o)<0&&s.call(t,o)&&(e[o]=t[o]);return e})(o,["gap"]);return gt(l(c({name:`glyphs-${e}`,category:"symbols",minUnits:Math.max(60,180*e.replace(/[^0-9]/g,"").length),source:"generated",width:13},h),{path:Et(e,i)}))},t.group=rt,t.heart=$,t.house=q,t.human=v,t.leaf=Q,t.moneybag=st,t.mountain=ut,t.outlined=function(t,n=14){const e=t.shape;if(!e.path)throw new Error(`[ApexCharts] outlined(): "${e.name}" has no outline to trace. The generated shapes (rings, globe, tiers) compute positions directly, so there is no path to stroke.`);return gt(l(c({},e),{name:`${e.name}-outline`,width:n,minUnits:Math.max(e.minUnits||0,120)}))},t.percent=xt,t.pin=ht,t.plane=ot,t.preview=function(t,n={}){const e=n.series&&n.series.length?n.series:null,o=e?e.reduce((t,n)=>t+Math.max(0,n),0):0,r=Math.max(1,Math.round(n.count||o||t.shape.minUnits||220)),a=n.width||300,s=n.height||a,i=n.padding||0,c=(Array.isArray(n.fill)?n.fill:n.fill?[n.fill]:null)||(e?Pt:["#008FFB"]),l=e?function(t,n){const e=t.map(t=>Math.max(0,t)),o=p(e,n);for(let t=0;to[n]&&(n=t);o[n]>1&&(o[n]--,o[t]=1)}return o}(e,r):null,h=[],u=[],L=n.r||Math.max(1.2,Math.sqrt(a*s/r)/2.6);for(let t=0;t{const e=l?u[n]%c.length:Math.floor(n/f.length*c.length),o=c[e]||c[0],r=``,a=g.get(o);a?a.push(r):g.set(o,[r])});let m="";return g.forEach((t,n)=>{m+=`${t.join("")}`}),!1===n.svg?m:`${m}`},t.pulse=yt,t.pyramid=D,t.question=dt,t.registerShapes=At,t.registeredShapeNames=function(){return Object.keys(Zt())},t.rings=F,t.robot=lt,t.rocket=P,t.shapeFrom=function(t,n={}){return U(l(c({name:"custom"},n),{path:t}))},t.shield=E,t.silhouette=U,t.sphere=N,t.spiral=bt,t.star=H,t.stroke=gt,t.strokeFrom=function(t,n={}){return gt(l(c({name:"custom-stroke"},n),{path:t}))},t.sun=z,t.target=R,t.tiers=T,t.tree=O,t.trophy=at,t.unregisterShapes=function(t){const n=Zt();(Array.isArray(t)?t:[t]).forEach(t=>{delete n[t]})},t.wifi=pt,t.xmark=Mt,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});