UNPKG

apexcharts

Version:

A JavaScript Chart Library

6 lines (5 loc) 27.3 kB
/*! * ApexCharts v7.0.0 * (c) 2018-2026 ApexCharts */ "use strict";var t=Object.defineProperty,n=Object.defineProperties,e=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(n,e,o)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[e]=o,i=(t,n)=>{for(var e in n||(n={}))r.call(n,e)&&s(t,e,n[e]);if(o)for(var e of o(n))a.call(n,e)&&s(t,e,n[e]);return t},c=(t,o)=>n(t,e(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=/[MmLlHhVvCcSsQqTtAaZz]/;function h(t,n=.6,e=!1){const o=n>0?n:.6,r=t.length;let a=0;const s=[];let i=[],c=0,h=0,L=0,u=0,p=0,f=0,g="";const x=t=>" "===t||","===t||"\t"===t||"\n"===t||"\r"===t;function m(){for(;a<r&&x(t[a]);)a++}function M(){m();const n=a;for("+"!==t[a]&&"-"!==t[a]||a++;a<r&&t[a]>="0"&&t[a]<="9";)a++;if("."===t[a])for(a++;a<r&&t[a]>="0"&&t[a]<="9";)a++;if("e"===t[a]||"E"===t[a])for(a++,"+"!==t[a]&&"-"!==t[a]||a++;a<r&&t[a]>="0"&&t[a]<="9";)a++;if(a===n)return null;const e=parseFloat(t.slice(n,a));return isFinite(e)?e:null}function y(){m();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=L=t,h=u=n,i=[{x:t,y:n}]}function C(t,n){i.push({x:t,y:n}),c=t,h=n}function w(t,n,e,r,a,s){const l=Math.hypot(t-c,n-h)+Math.hypot(e-t,r-n)+Math.hypot(a-e,s-r),L=Math.max(2,Math.min(160,Math.ceil(l/o))),u=c,g=h;for(let o=1;o<=L;o++){const c=o/L,l=1-c,h=l*l*l,p=3*l*l*c,f=3*l*c*c,x=c*c*c;i.push({x:h*u+p*t+f*e+x*a,y:h*g+p*n+f*r+x*s})}p=e,f=r,c=a,h=s}function Z(t,n,e,o){const r=t,a=n;w(c+2/3*(t-c),h+2/3*(n-h),e+2/3*(t-e),o+2/3*(n-o),e,o),p=r,f=a}function A(t,n,e,r,a,s,l){if(!t||!n)return void C(s,l);const L=c,u=h;t=Math.abs(t),n=Math.abs(n);const g=e*Math.PI/180,x=Math.cos(g),m=Math.sin(g),M=(L-s)/2,y=(u-l)/2,d=x*M+m*y,b=-m*M+x*y,w=d*d/(t*t)+b*b/(n*n);if(w>1){const e=Math.sqrt(w);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=x*$-m*k+(L+s)/2,q=m*$+x*k+(u+l)/2,O=(d-$)/t,E=(b-k)/n,P=(-d-$)/t,j=(-b-k)/n,Y=Math.atan2(E,O);let I=Math.atan2(j,P)-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*x-n*a*m,y:q+t*r*m+n*a*x})}p=s,f=l,c=s,h=l}for(;a<r&&(m(),!(a>=r));){let n=t[a];if(l.test(n))a++;else{if(!g)break;n="M"===g?"L":"m"===g?"l":g}const e=n>="a"&&n<="z",o=n.toUpperCase();if("Z"===o){i.length&&i.push({x:L,y:u}),d(),c=L,h=u,g=n;continue}const r=t=>null==t?NaN:t,x=r(M());if(isNaN(x))break;switch(o){case"M":{const t=r(M());if(isNaN(t))return s;b(e?c+x:x,e?h+t:t);break}case"L":{const t=r(M());if(isNaN(t))return s;C(e?c+x:x,e?h+t:t);break}case"H":C(e?c+x:x,h);break;case"V":C(c,e?h+x:x);break;case"C":{const t=[x,M(),M(),M(),M(),M()];if(t.some(t=>null==t))return s;const n=t;w(e?c+n[0]:n[0],e?h+n[1]:n[1],e?c+n[2]:n[2],e?h+n[3]:n[3],e?c+n[4]:n[4],e?h+n[5]:n[5]);break}case"S":{const t=[x,M(),M(),M()];if(t.some(t=>null==t))return s;const n=t,o=g&&"CcSs".indexOf(g)>=0;w(o?2*c-p:c,o?2*h-f:h,e?c+n[0]:n[0],e?h+n[1]:n[1],e?c+n[2]:n[2],e?h+n[3]:n[3]);break}case"Q":{const t=[x,M(),M(),M()];if(t.some(t=>null==t))return s;const n=t;Z(e?c+n[0]:n[0],e?h+n[1]:n[1],e?c+n[2]:n[2],e?h+n[3]:n[3]);break}case"T":{const t=r(M());if(isNaN(t))return s;const n=g&&"QqTt".indexOf(g)>=0;Z(n?2*c-p:c,n?2*h-f:h,e?c+x:x,e?h+t:t);break}case"A":{const t=x,n=M(),o=M(),r=y(),a=y(),i=M(),l=M();if(null==n||null==o||null==r||null==a||null==i||null==l)return s;A(t,n,o,r,a,e?c+i:i,e?h+l:l);break}default:return s}"C"!==o&&"S"!==o&&"Q"!==o&&"T"!==o&&(p=c,f=h),g=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.x<n.x0&&(n.x0=t.x),t.y<n.y0&&(n.y0=t.y),t.x>n.x1&&(n.x1=t.x),t.y>n.y1&&(n.y1=t.y)})}),n}const u=128;function p(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 f(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<s;a++){const s=i+(a+.5)*e,h=t.spansAt(s);for(let t=0;t<h.length;t++){const e=h[t].x1-h[t].x0;let i;i=e>=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 g(t,n){const e=new Array(t.length).fill(0);let o=0;for(let n=0;n<t.length;n++)o+=t[n];if(!o||n<=0)return e;let r=0;const a=[];for(let s=0;s<t.length;s++){const i=n*t[s]/o;e[s]=Math.floor(i),r+=e[s],a.push({i:s,frac:i-e[s]})}a.sort((t,n)=>n.frac-t.frac);for(let t=0;r<n;t++,r++)e[a[t%a.length].i]++;return e}function x(t,n,e){let o=1,r=Math.max(t.maxY-t.minY,8);for(let a=0;a<34;a++){const a=(o+r)/2;f(t,a,a*e).capacity>=n?o=a:r=a}return o}function m(t,n){return Math.min(Math.max(t,n/3.2),n/2.3)}const M={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 y(t,n,e,o){const r=void 0!==M[e]?M[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;n<t.length&&n<a.length;n++)s.push({id:t[n].id,x:a[n].x,y:a[n].y,r:a[n].r});return s}function d(t,n,e,o,r,a){if(n<=0)return;if(1===n)return void a.push({x:(t.x0+t.x1)/2,y:t.y,r:r,row:t.row});let s=t.x0+o;let i=(t.x1-o-s)/(n-1);i>1.5*e&&(i=e,s=(t.x0+t.x1)/2-i*(n-1)/2);for(let e=0;e<n;e++)a.push({x:s+e*i,y:t.y,r:r,row:t.row})}const b=new Set;function C(t,n){const e=n(t),o=t.minUnits||0,r=(n,r)=>{if(o&&n.length&&n.length<o&&!b.has(t.name)){b.add(t.name);t.kind}return e(n,r)};return r.shape=Object.freeze(i({},t)),r.with=e=>C(i(i({},t),e),n),r}const w=new Map;function Z(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=w.get(e);if(!o){const r=h(t,n);o={polys:r,bounds:L(r)},w.set(e,o)}return o}(n,s);if(!c.length)return[];const M=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;e<t.length;e++){const o=t[e],l=t[(e+1)%t.length],h=n.offX+o.x*n.scale,L=n.offY+o.y*n.scale,u=n.offX+l.x*n.scale,p=n.offY+l.y*n.scale;h<i&&(i=h),u<i&&(i=u),h>c&&(c=h),u>c&&(c=u),L<a&&(a=L),p<a&&(a=p),L>s&&(s=L),p>s&&(s=p),L!==p&&r.push({x0:h,y0:L,x1:u,y1:p})}}),!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<u;t++)h.push([]);return r.forEach(t=>{const n=Math.min(t.y0,t.y1),e=Math.max(t.y0,t.y1);let o=Math.floor((n-a)/l*u),r=Math.floor((e-a)/l*u);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*u);if(n<0||n>127)return[];const e=h[n],r=[];for(let n=0;n<e.length;n++){const o=e[n],a=o.y1>o.y0,s=a?o.y0:o.y1,i=a?o.y1:o.y0;t<s||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+1<r.length;t+=2)s.push({x0:r[t].x,x1:r[t+1].x});return s}let i=0,c=0;for(let t=0;t<r.length;t++){const n=i;i+=r[t].dir,0===n&&0!==i?c=r[t].x:0!==n&&0===i&&s.push({x0:c,x1:r[t].x})}return s}}}(c,p(l,i,o),{evenOdd:a}),b=x(M,t.length,r),C=f(M,b,b*r);if(!C.cells.length)return[];const Z=g(C.cells.map(t=>t.cap),t.length),A=m(t[0].r>0?t[0].r:3,b),U=[];return C.cells.forEach((t,n)=>{d(t,Z[n],b,C.inset,A,U)}),y(t,U,e,b)}}function A(t){return C(c(i({},t),{kind:"silhouette"}),Z)}const U=A({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"}),$=A({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"}),k=A({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"}),v=A({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=A({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"}),O=A({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=A({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=A({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"}),j=t=>t.reduce((t,n)=>t+n,0);function Y(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;e<t;e++)n.push(Math.max(1,Math.round(2*Math.PI*(e+.5))));return n};let h=1;for(;h<400&&j(l(h))<a;)h++;const L=s/h,u=g(l(h),a),p=m(t[0].r>0?t[0].r:3,L),f=[];for(let t=0;t<h;t++){const n=e?h-1-t:t,r=(n+.5)*L,a=u[n],s=o*n;for(let n=0;n<a;n++){const e=s+n/a*2*Math.PI;f.push({x:i+r*Math.cos(e),y:c+r*Math.sin(e),r:p,row:t})}}return y(t,f,"rows",L)}}function I(t){const n=null==t.padding?.94:t.padding,e=(null==t.tilt?15:t.tilt)*Math.PI/180,o=t.order||"rows";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=Math.cos(e),h=Math.sin(e),L=(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}},u=t=>{const n=Math.max(3,Math.ceil(Math.PI*s/t)),e=Math.PI/n,o=.95*t,r=o,a=new Map,u=[];let p=0;const f=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<i.length;n++)if(Math.hypot(i[n].x-t.x,i[n].y-t.y)<o)return!1}const s=`${n},${e}`,i=a.get(s);return i?i.push(t):a.set(s,[t]),!0};for(let o=0;o<n;o++){const n=-Math.PI/2+(o+.5)*e,r=Math.cos(n),a=Math.sin(n),s=a*h/(r*l||1e-9);if(s>=1)continue;const g=s<=-1?Math.PI:Math.acos(s),x=g>=Math.PI-1e-9,m=[],M=[0];for(let t=0;t<=40;t++){const n=L(a,r,2*g*t/40-g);if(m.push(n),t>0){const e=m[t-1];M.push(M[t-1]+Math.hypot(n.x-e.x,n.y-e.y))}}const y=M[M.length-1],d=x?0:Math.min(.42*t,y/2),b=y-2*d;let C;if(C=x?Math.max(1,Math.round(y/t)):b>0?Math.floor(b/t)+1:y>=.45*t?1:0,!C)continue;const w=x?y/C:C>1?b/(C-1):0,Z=[];let A=0;for(let t=0;t<C;t++){const n=x?t*w:C>1?d+t*w:y/2;for(;A<M.length-2&&M[A+1]<n;)A++;const e=M[A],o=M[A+1],r=o>e?(n-e)/(o-e):0,a=m[A],s=m[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};f(l)&&Z.push(l)}Z.length&&(u.push(Z),p+=Z.length)}return{rows:u,total:p}};let p=1,f=2*s;for(let t=0;t<30;t++){const t=(p+f)/2;u(t).total>=a?p=t:f=t}const x=p,{rows:M}=u(x),d=g(M.map(t=>t.length),a),b=m(t[0].r>0?t[0].r:3,x),C=[];return M.forEach((t,n)=>{const e=d[n];if(e)for(let o=0;o<e;o++){const r=t[Math.min(t.length-1,Math.floor(o*t.length/e))];C.push({x:r.x,y:r.y,r:b*(.62+.38*Math.sqrt(Math.max(0,r.depth))),row:n})}}),C.sort((t,n)=>t.y-n.y||t.x-n.x),y(t,C,o,x)}}function S(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;t<s;t++)i.push(t+1);const c=g(i,a),l=Math.max(...c),h=Math.min(r.width*n/Math.max(1,l-1+1.6),r.height*n/(s*e)),L=h*e,u=r.x+r.width/2,p=r.y+(r.height-s*L)/2,f=m(t[0].r>0?t[0].r:3,h),x=[];for(let t=0;t<s;t++)for(let n=0;n<c[t];n++)x.push({x:u+(n-(c[t]-1)/2)*h,y:p+(t+.5)*L,r:f,row:t});return y(t,x,o,h)}}function X(t){return C(c(i({},t),{kind:"rings"}),Y)}function F(t){return C(c(i({},t),{kind:"globe"}),I)}function N(t){return C(c(i({},t),{kind:"tiers"}),S)}const R=X({name:"target",category:"business",minUnits:40,order:"centerIn",source:"generated"}),T=F({name:"globe",category:"geography",minUnits:60,tilt:15,source:"generated"}),_=N({name:"pyramid",category:"symbols",minUnits:20,order:"rowsUp",source:"generated"}),D=A({name:"leaf",category:"nature",minUnits:60,source:"original",path:"M 27.5 7.6 C 22.6 28.3 17.8 49 26.2 64.9 C 35.6 82.6 55.5 90.1 71.6 90.6 C 80.2 77 85.1 56.3 75.7 38.6 C 67.2 22.7 47.3 15.2 27.5 7.6 Z M 67.1 88.5 L 71.9 101.8 L 80.7 97.1 L 72.4 85.7 Z"}),Q=A({name:"sun",category:"nature",minUnits:140,source:"original",path:"M 75.5 41.2 L 98 50 L 75.5 58.8 L 74.3 61.8 L 83.9 83.9 L 61.8 74.3 L 58.8 75.5 L 50 98 L 41.2 75.5 L 38.2 74.3 L 16.1 83.9 L 25.7 61.8 L 24.5 58.8 L 2 50 L 24.5 41.2 L 25.7 38.2 L 16.1 16.1 L 38.2 25.7 L 41.2 24.5 L 50 2 L 58.8 24.5 L 61.8 25.7 L 83.9 16.1 L 74.3 38.2 Z"}),z=A({name:"flame",category:"nature",minUnits:60,source:"original",path:"M 56 2 C 52 24 34 30 30 50 C 27 64 33 70 34 78 C 24 72 20 60 21 50 C 12 62 10 76 16 86 C 24 95 38 98 52 98 C 72 98 84 84 82 64 C 80 46 68 40 66 26 C 64 38 60 42 58 44 C 62 30 60 14 56 2 Z"}),B=A({name:"fish",category:"nature",minUnits:80,source:"original",path:"M 20 50 C 34 26 58 20 76 30 C 86 36 92 44 94 50 C 92 56 86 64 76 70 C 58 80 34 74 20 50 Z M 26 50 L 4 74 L 12 50 L 4 26 Z"}),H=A({name:"star",category:"symbols",minUnits:80,source:"original",path:"M 50 2 L 61.8 33.8 L 95.7 35.2 L 69 56.2 L 78.2 88.8 L 50 70 L 21.8 88.8 L 31 56.2 L 4.3 35.2 L 38.2 33.8 Z"}),V=A({name:"arrow",category:"symbols",minUnits:60,source:"original",path:"M 50 4 L 92 46 L 70 46 L 70 96 L 30 96 L 30 46 L 8 46 Z"}),G=A({name:"crown",category:"symbols",minUnits:90,source:"original",path:"M 8 84 L 14 26 L 32 52 L 50 16 L 68 52 L 86 26 L 92 84 Z"}),J=A({name:"cross",category:"symbols",minUnits:40,source:"original",path:"M 36 6 L 64 6 L 64 36 L 94 36 L 94 64 L 64 64 L 64 94 L 36 94 L 36 64 L 6 64 L 6 36 L 36 36 Z"}),K=A({name:"bolt",category:"symbols",minUnits:70,source:"original",path:"M 62 3 L 20 56 L 44 56 L 38 97 L 80 40 L 54 40 Z"}),W=A({name:"bulb",category:"objects",minUnits:90,source:"original",path:"M 50 4 C 29 4 14 21 14 39 C 14 54 25 62 30 72 L 70 72 C 75 62 86 54 86 39 C 86 21 71 4 50 4 Z M 34 74 L 36 96 L 64 96 L 66 74 Z"}),tt=A({name:"flask",category:"objects",minUnits:60,source:"original",path:"M 40 4 L 60 4 L 60 36 L 92 92 L 8 92 L 40 36 Z"}),nt=A({name:"car",category:"objects",minUnits:120,source:"original",path:"M 4 78 L 4 56 L 20 52 L 32 30 L 68 30 L 82 52 L 96 56 L 96 78 Z M 13 78 A 13 13 0 0 1 39 78 A 13 13 0 0 1 13 78 Z M 61 78 A 13 13 0 0 1 87 78 A 13 13 0 0 1 61 78 Z"}),et=A({name:"plane",category:"objects",minUnits:160,source:"original",path:"M 50 2 C 54 2 57 9 58 19 L 58 35 L 95 57 L 95 67 L 58 57 L 58 76 L 70 86 L 70 95 L 50 89 L 30 95 L 30 86 L 42 76 L 42 57 L 5 67 L 5 57 L 42 35 L 42 19 C 43 9 46 2 50 2 Z"}),ot=A({name:"group",category:"people",minUnits:160,source:"original",path:"M 8 94 L 8 57 C 8 48 14.6 48 14.6 48 L 23.4 48 C 23.4 48 30 48 30 57 L 30 94 Z M 9.5 34 A 9.5 9.5 0 0 1 28.5 34 A 9.5 9.5 0 0 1 9.5 34 Z M 36 94 L 36 47 C 36 38 44.4 38 44.4 38 L 55.6 38 C 55.6 38 64 38 64 47 L 64 94 Z M 38.5 23 A 11.5 11.5 0 0 1 61.5 23 A 11.5 11.5 0 0 1 38.5 23 Z M 70 94 L 70 57 C 70 48 76.6 48 76.6 48 L 85.4 48 C 85.4 48 92 48 92 57 L 92 94 Z M 71.5 34 A 9.5 9.5 0 0 1 90.5 34 A 9.5 9.5 0 0 1 71.5 34 Z"}),rt=A({name:"trophy",category:"business",minUnits:110,source:"original",path:"M 30 8 L 70 8 L 68 40 C 68 54 58 62 50 62 C 42 62 32 54 32 40 Z M 45 60 L 55 60 L 55 78 L 45 78 Z M 30 78 L 70 78 L 74 92 L 26 92 Z"}),at=A({name:"moneybag",category:"business",minUnits:80,source:"original",path:"M 36 8 L 64 8 L 59 24 C 80 32 90 48 90 65 C 90 83 73 94 50 94 C 27 94 10 83 10 65 C 10 48 20 32 41 24 Z"}),st=A({name:"funnel",category:"business",minUnits:80,source:"original",path:"M 6 10 L 94 10 L 58 56 L 58 92 L 42 92 L 42 56 Z"}),it=A({name:"gear",category:"technology",minUnits:260,source:"original",path:"M 82 50.9 L 96.8 54.3 L 93.2 68.5 L 78.6 64.4 L 73.9 71.2 L 83.1 83.3 L 71.2 92 L 62.6 79.4 L 54.7 81.7 L 53.9 96.8 L 39.3 95.8 L 40.8 80.6 L 33.2 77.3 L 22.9 88.4 L 12.4 78.2 L 23.2 67.5 L 19.6 60.1 L 4.6 62 L 3.1 47.4 L 18.2 46.2 L 20.2 38.2 L 7.5 30 L 15.7 17.8 L 28.1 26.7 L 34.8 21.9 L 30.3 7.3 L 44.4 3.3 L 48.2 18 L 56.4 18.7 L 62.3 4.6 L 75.7 10.7 L 69.2 24.4 L 75.1 30.1 L 88.6 23.2 L 95 36.4 L 81.2 42.7 Z M 37 50 A 13 13 0 0 0 63 50 A 13 13 0 0 0 37 50 Z"}),ct=A({name:"robot",category:"technology",minUnits:220,source:"original",path:"M 18 40 C 18 30 26 26 36 26 L 64 26 C 74 26 82 30 82 40 L 82 72 C 82 82 74 86 64 86 L 36 86 C 26 86 18 82 18 72 Z M 46 14 L 54 14 L 54 28 L 46 28 Z M 44 12 A 6 6 0 0 1 56 12 A 6 6 0 0 1 44 12 Z M 29 50 A 7 7 0 0 0 43 50 A 7 7 0 0 0 29 50 Z M 57 50 A 7 7 0 0 0 71 50 A 7 7 0 0 0 57 50 Z"}),lt=A({name:"pin",category:"geography",minUnits:120,source:"original",path:"M 50 96 C 50 96 16 56 16 38 C 16 20 31 6 50 6 C 69 6 84 20 84 38 C 84 56 50 96 50 96 Z M 39 37 A 11 11 0 0 0 61 37 A 11 11 0 0 0 39 37 Z"}),ht=A({name:"mountain",category:"geography",minUnits:60,source:"original",path:"M 2 90 L 34 26 L 50 56 L 64 18 L 98 90 Z"}),Lt=new Map;function ut(t){const n=t.path||"",e=t.order||"rows",o=null==t.padding?.94:t.padding,r=null==t.rowRatio?.88:t.rowRatio,a=null==t.sampling?.6:t.sampling,s=Math.max(.5,(null==t.width?16:t.width)/2);return(t,i)=>{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=h(t,n,!0);o={polys:r,bounds:L(r)},Lt.set(e,o)}return o}(n,a);if(!c.length)return[];const M=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+1<t.length;e++){const l=n.offX+t[e].x*n.scale,h=n.offY+t[e].y*n.scale,L=n.offX+t[e+1].x*n.scale,u=n.offY+t[e+1].y*n.scale,p=Math.hypot(L-l,u-h),f=p>1e-9?-(u-h)/p*o:o,g=p>1e-9?(L-l)/p*o:0;r.push({ax:l,ay:h,bx:L,by:u,nx:f,ny:g}),Math.min(l,L)-o<i&&(i=Math.min(l,L)-o),Math.max(l,L)+o>c&&(c=Math.max(l,L)+o),Math.min(h,u)-o<a&&(a=Math.min(h,u)-o),Math.max(h,u)+o>s&&(s=Math.max(h,u)+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<u;t++)h.push([]);r.forEach(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*u),s=Math.floor((e-a)/l*u);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 L=(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*u);if(n<0||n>127)return[];const e=h[n],o=[];for(let n=0;n<e.length;n++){const r=e[n],a=[r.ax+r.nx,r.bx+r.nx,r.bx-r.nx,r.ax-r.nx],s=[r.ay+r.ny,r.by+r.ny,r.by-r.ny,r.ay-r.ny];let i=1/0,c=-1/0;for(let n=0;n<4;n++){const e=(n+1)%4,o=s[n],r=s[e];if(o===r)continue;const l=Math.min(o,r),h=Math.max(o,r);if(t<l||t>=h)continue;const L=a[n]+(t-o)/(r-o)*(a[e]-a[n]);L<i&&(i=L),L>c&&(c=L)}c>i&&o.push({x0:i,x1:c});const l=L(r.ax,r.ay,t);l&&o.push(l);const h=L(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;t<o.length;t++){const n=r[r.length-1];o[t].x0<=n.x1?o[t].x1>n.x1&&(n.x1=o[t].x1):r.push(o[t])}return r}}}(c,p({x0:l.x0-s,y0:l.y0-s,x1:l.x1+s,y1:l.y1+s},i,o),s),b=x(M,t.length,r),C=f(M,b,b*r);if(!C.cells.length)return[];const w=g(C.cells.map(t=>t.cap),t.length),Z=m(t[0].r>0?t[0].r:3,b),A=[];return C.cells.forEach((t,n)=>{d(t,w[n],b,C.inset,Z,A)}),y(t,A,e,b)}}function pt(t){return C(c(i({},t),{kind:"stroke"}),ut)}const ft=pt({name:"check",category:"symbols",minUnits:40,width:19,source:"original",path:"M 13 55 L 37 79 L 87 22"}),gt=pt({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"}),xt=pt({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=pt({name:"xmark",category:"symbols",minUnits:40,width:18,source:"original",path:"M 18 18 L 82 82 M 82 18 L 18 82"}),Mt=pt({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"}),yt=pt({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"}),dt=pt({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"}),bt=[U,$,k,v,q,O,E,P,R,T,_,D,Q,z,B,H,V,G,J,K,W,tt,nt,et,ot,rt,at,st,it,ct,lt,ht,ft,gt,xt,mt,Mt,yt,dt],Ct="__apexcharts_unit_layouts__";function wt(){const t=globalThis;return t[Ct]||(t[Ct]={}),t[Ct]}const Zt=46,At=48,Ut=88,$t={a:[8,8,38,8],b:[40,11,40,45],c:[40,51,40,85],d:[8,Ut,38,Ut],e:[6,51,6,85],f:[6,11,6,45],g:[8,At,38,At]},kt={0:"abcdef",2:"abdeg",3:"abcdg",4:"bcfg",5:"acdfg",6:"acdefg",7:"abc",8:"abcdefg",9:"abcdfg","-":"g"},vt={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 `},qt={1:23,".":19.32,",":19.32,":":19.32," ":23};function Ot(t,n=10){let e="",o=0;for(const r of String(t)){if(" "===r){o+=qt[" "]+n;continue}const t=vt[r];if(t){e+=t(o),o+=(qt[r]||Zt)+n;continue}const a=kt[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=$t[t];e+=`M ${o+n[0]} ${n[1]} L ${o+n[2]} ${n[3]} `}o+=(qt[r]||Zt)+n}return e.trim()}const Et=["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"];function Pt(t,n){let e=0;for(let o=0;o<t.length;o++)if(e+=t[o],n<e)return o;return t.length-1}function jt(t){return Math.round(10*t)/10}exports.arrow=V,exports.battery=O,exports.bolt=K,exports.bulb=W,exports.car=nt,exports.catalog=bt,exports.check=ft,exports.cross=J,exports.crown=G,exports.digitsPath=Ot,exports.droplet=$,exports.fish=B,exports.flame=z,exports.flask=tt,exports.funnel=st,exports.gear=it,exports.globe=T,exports.glyphs=function(t,n={}){const e=String(t),s=n,{gap:l}=s,h=((t,n)=>{var e={};for(var s in t)r.call(t,s)&&n.indexOf(s)<0&&(e[s]=t[s]);if(null!=t&&o)for(var s of o(t))n.indexOf(s)<0&&a.call(t,s)&&(e[s]=t[s]);return e})(s,["gap"]);return pt(c(i({name:`glyphs-${e}`,category:"symbols",minUnits:Math.max(60,180*e.replace(/[^0-9]/g,"").length),source:"generated",width:13},h),{path:Ot(e,l)}))},exports.group=ot,exports.heart=U,exports.house=q,exports.human=k,exports.leaf=D,exports.moneybag=at,exports.mountain=ht,exports.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 pt(c(i({},e),{name:`${e.name}-outline`,width:n,minUnits:Math.max(e.minUnits||0,120)}))},exports.percent=Mt,exports.pin=lt,exports.plane=et,exports.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?Et:["#008FFB"]),l=e?function(t,n){const e=t.map(t=>Math.max(0,t)),o=g(e,n);for(let t=0;t<o.length;t++){if(o[t]||!e[t])continue;let n=0;for(let t=1;t<o.length;t++)o[t]>o[n]&&(n=t);o[n]>1&&(o[n]--,o[t]=1)}return o}(e,r):null,h=[],L=[],u=n.r||Math.max(1.2,Math.sqrt(a*s/r)/2.6);for(let t=0;t<r;t++){const n=l?Pt(l,t):0;L.push(n),h.push({id:`p:${t}`,index:t,seriesIndex:n,dataPointIndex:t,label:l?`series-${n+1}`:"preview",value:1,datum:void 0,r:u})}const p=t(h,{x:i,y:i,width:Math.max(1,a-2*i),height:Math.max(1,s-2*i)}),f=new Map;p.forEach((t,n)=>{const e=l?L[n]%c.length:Math.floor(n/p.length*c.length),o=c[e]||c[0],r=`<circle cx="${jt(t.x)}" cy="${jt(t.y)}" r="${jt(t.r||3)}"/>`,a=f.get(o);a?a.push(r):f.set(o,[r])});let x="";return f.forEach((t,n)=>{x+=`<g fill="${n}">${t.join("")}</g>`}),!1===n.svg?x:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${a} ${s}" width="${a}" height="${s}" role="img" aria-label="${t.shape.name} drawn with ${p.length} dots">${x}</svg>`},exports.pulse=xt,exports.pyramid=_,exports.question=yt,exports.registerShapes=function(t){const n=wt(),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},exports.registeredShapeNames=function(){return Object.keys(wt())},exports.rings=X,exports.robot=ct,exports.rocket=P,exports.shapeFrom=function(t,n={}){return A(c(i({name:"custom"},n),{path:t}))},exports.shield=E,exports.silhouette=A,exports.sphere=F,exports.spiral=dt,exports.star=H,exports.stroke=pt,exports.strokeFrom=function(t,n={}){return pt(c(i({name:"custom-stroke"},n),{path:t}))},exports.sun=Q,exports.target=R,exports.tiers=N,exports.tree=v,exports.trophy=rt,exports.unregisterShapes=function(t){const n=wt();(Array.isArray(t)?t:[t]).forEach(t=>{delete n[t]})},exports.wifi=gt,exports.xmark=mt;