UNPKG

@devexperts/dxcharts-lite

Version:
8 lines 368 kB
/* * Copyright (C) 2019 - 2026 Devexperts Solutions IE Limited * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. * If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. */ (()=>{var rt=Math.pow;(()=>{var Pa={165(j,it,N){const q=N(877),z={};for(const b of Object.keys(q))z[q[b]]=b;const O={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};j.exports=O;for(const b of Object.keys(O)){if(!("channels"in O[b]))throw new Error("missing channels property: "+b);if(!("labels"in O[b]))throw new Error("missing channel labels property: "+b);if(O[b].labels.length!==O[b].channels)throw new Error("channel and label counts mismatch: "+b);const{channels:y,labels:C}=O[b];delete O[b].channels,delete O[b].labels,Object.defineProperty(O[b],"channels",{value:y}),Object.defineProperty(O[b],"labels",{value:C})}O.rgb.hsl=function(b){const y=b[0]/255,C=b[1]/255,w=b[2]/255,g=Math.min(y,C,w),S=Math.max(y,C,w),P=S-g;let D,v;S===g?D=0:y===S?D=(C-w)/P:C===S?D=2+(w-y)/P:w===S&&(D=4+(y-C)/P),D=Math.min(D*60,360),D<0&&(D+=360);const T=(g+S)/2;return S===g?v=0:T<=.5?v=P/(S+g):v=P/(2-S-g),[D,v*100,T*100]},O.rgb.hsv=function(b){let y,C,w,g,S;const P=b[0]/255,D=b[1]/255,v=b[2]/255,T=Math.max(P,D,v),I=T-Math.min(P,D,v),L=function(F){return(T-F)/6/I+1/2};return I===0?(g=0,S=0):(S=I/T,y=L(P),C=L(D),w=L(v),P===T?g=w-C:D===T?g=.3333333333333333+y-w:v===T&&(g=.6666666666666666+C-y),g<0?g+=1:g>1&&(g-=1)),[g*360,S*100,T*100]},O.rgb.hwb=function(b){const y=b[0],C=b[1];let w=b[2];const g=O.rgb.hsl(b)[0],S=1/255*Math.min(y,Math.min(C,w));return w=1-.00392156862745098*Math.max(y,Math.max(C,w)),[g,S*100,w*100]},O.rgb.cmyk=function(b){const y=b[0]/255,C=b[1]/255,w=b[2]/255,g=Math.min(1-y,1-C,1-w),S=(1-y-g)/(1-g)||0,P=(1-C-g)/(1-g)||0,D=(1-w-g)/(1-g)||0;return[S*100,P*100,D*100,g*100]};function ht(b,y){return rt(b[0]-y[0],2)+rt(b[1]-y[1],2)+rt(b[2]-y[2],2)}O.rgb.keyword=function(b){const y=z[b];if(y)return y;let C=1/0,w;for(const g of Object.keys(q)){const S=q[g],P=ht(b,S);P<C&&(C=P,w=g)}return w},O.keyword.rgb=function(b){return q[b]},O.rgb.xyz=function(b){let y=b[0]/255,C=b[1]/255,w=b[2]/255;y=y>.04045?rt((y+.055)/1.055,2.4):y/12.92,C=C>.04045?rt((C+.055)/1.055,2.4):C/12.92,w=w>.04045?rt((w+.055)/1.055,2.4):w/12.92;const g=y*.4124+C*.3576+w*.1805,S=y*.2126+C*.7152+w*.0722,P=y*.0193+C*.1192+w*.9505;return[g*100,S*100,P*100]},O.rgb.lab=function(b){const y=O.rgb.xyz(b);let C=y[0],w=y[1],g=y[2];C/=95.047,w/=100,g/=108.883,C=C>.008856?rt(C,.3333333333333333):7.787*C+.13793103448275862,w=w>.008856?rt(w,.3333333333333333):7.787*w+.13793103448275862,g=g>.008856?rt(g,.3333333333333333):7.787*g+.13793103448275862;const S=116*w-16,P=500*(C-w),D=200*(w-g);return[S,P,D]},O.hsl.rgb=function(b){const y=b[0]/360,C=b[1]/100,w=b[2]/100;let g,S,P;if(C===0)return P=w*255,[P,P,P];w<.5?g=w*(1+C):g=w+C-w*C;const D=2*w-g,v=[0,0,0];for(let T=0;T<3;T++)S=y+.3333333333333333*-(T-1),S<0&&S++,S>1&&S--,6*S<1?P=D+(g-D)*6*S:2*S<1?P=g:3*S<2?P=D+(g-D)*(.6666666666666666-S)*6:P=D,v[T]=P*255;return v},O.hsl.hsv=function(b){const y=b[0];let C=b[1]/100,w=b[2]/100,g=C;const S=Math.max(w,.01);w*=2,C*=w<=1?w:2-w,g*=S<=1?S:2-S;const P=(w+C)/2,D=w===0?2*g/(S+g):2*C/(w+C);return[y,D*100,P*100]},O.hsv.rgb=function(b){const y=b[0]/60,C=b[1]/100;let w=b[2]/100;const g=Math.floor(y)%6,S=y-Math.floor(y),P=255*w*(1-C),D=255*w*(1-C*S),v=255*w*(1-C*(1-S));switch(w*=255,g){case 0:return[w,v,P];case 1:return[D,w,P];case 2:return[P,w,v];case 3:return[P,D,w];case 4:return[v,P,w];case 5:return[w,P,D]}},O.hsv.hsl=function(b){const y=b[0],C=b[1]/100,w=b[2]/100,g=Math.max(w,.01);let S,P;P=(2-C)*w;const D=(2-C)*g;return S=C*g,S/=D<=1?D:2-D,S=S||0,P/=2,[y,S*100,P*100]},O.hwb.rgb=function(b){const y=b[0]/360;let C=b[1]/100,w=b[2]/100;const g=C+w;let S;g>1&&(C/=g,w/=g);const P=Math.floor(6*y),D=1-w;S=6*y-P,(P&1)!==0&&(S=1-S);const v=C+S*(D-C);let T,I,L;switch(P){default:case 6:case 0:T=D,I=v,L=C;break;case 1:T=v,I=D,L=C;break;case 2:T=C,I=D,L=v;break;case 3:T=C,I=v,L=D;break;case 4:T=v,I=C,L=D;break;case 5:T=D,I=C,L=v;break}return[T*255,I*255,L*255]},O.cmyk.rgb=function(b){const y=b[0]/100,C=b[1]/100,w=b[2]/100,g=b[3]/100,S=1-Math.min(1,y*(1-g)+g),P=1-Math.min(1,C*(1-g)+g),D=1-Math.min(1,w*(1-g)+g);return[S*255,P*255,D*255]},O.xyz.rgb=function(b){const y=b[0]/100,C=b[1]/100,w=b[2]/100;let g,S,P;return g=y*3.2406+C*-1.5372+w*-.4986,S=y*-.9689+C*1.8758+w*.0415,P=y*.0557+C*-.204+w*1.057,g=g>.0031308?1.055*rt(g,.4166666666666667)-.055:g*12.92,S=S>.0031308?1.055*rt(S,.4166666666666667)-.055:S*12.92,P=P>.0031308?1.055*rt(P,.4166666666666667)-.055:P*12.92,g=Math.min(Math.max(0,g),1),S=Math.min(Math.max(0,S),1),P=Math.min(Math.max(0,P),1),[g*255,S*255,P*255]},O.xyz.lab=function(b){let y=b[0],C=b[1],w=b[2];y/=95.047,C/=100,w/=108.883,y=y>.008856?rt(y,.3333333333333333):7.787*y+.13793103448275862,C=C>.008856?rt(C,.3333333333333333):7.787*C+.13793103448275862,w=w>.008856?rt(w,.3333333333333333):7.787*w+.13793103448275862;const g=116*C-16,S=500*(y-C),P=200*(C-w);return[g,S,P]},O.lab.xyz=function(b){const y=b[0],C=b[1],w=b[2];let g,S,P;S=(y+16)/116,g=C/500+S,P=S-w/200;const D=rt(S,3),v=rt(g,3),T=rt(P,3);return S=D>.008856?D:(S-.13793103448275862)/7.787,g=v>.008856?v:(g-.13793103448275862)/7.787,P=T>.008856?T:(P-.13793103448275862)/7.787,g*=95.047,S*=100,P*=108.883,[g,S,P]},O.lab.lch=function(b){const y=b[0],C=b[1],w=b[2];let g;g=Math.atan2(w,C)*360/2/Math.PI,g<0&&(g+=360);const P=Math.sqrt(C*C+w*w);return[y,P,g]},O.lch.lab=function(b){const y=b[0],C=b[1],g=b[2]/360*2*Math.PI,S=C*Math.cos(g),P=C*Math.sin(g);return[y,S,P]},O.rgb.ansi16=function(b,y=null){const[C,w,g]=b;let S=y===null?O.rgb.hsv(b)[2]:y;if(S=Math.round(S/50),S===0)return 30;let P=30+(Math.round(g/255)<<2|Math.round(w/255)<<1|Math.round(C/255));return S===2&&(P+=60),P},O.hsv.ansi16=function(b){return O.rgb.ansi16(O.hsv.rgb(b),b[2])},O.rgb.ansi256=function(b){const y=b[0],C=b[1],w=b[2];return y===C&&C===w?y<8?16:y>248?231:Math.round((y-8)/247*24)+232:16+36*Math.round(y/255*5)+6*Math.round(C/255*5)+Math.round(w/255*5)},O.ansi16.rgb=function(b){let y=b%10;if(y===0||y===7)return b>50&&(y+=3.5),y=y/10.5*255,[y,y,y];const C=(~~(b>50)+1)*.5,w=(y&1)*C*255,g=(y>>1&1)*C*255,S=(y>>2&1)*C*255;return[w,g,S]},O.ansi256.rgb=function(b){if(b>=232){const S=(b-232)*10+8;return[S,S,S]}b-=16;let y;const C=Math.floor(b/36)/5*255,w=Math.floor((y=b%36)/6)/5*255,g=y%6/5*255;return[C,w,g]},O.rgb.hex=function(b){const C=(((Math.round(b[0])&255)<<16)+((Math.round(b[1])&255)<<8)+(Math.round(b[2])&255)).toString(16).toUpperCase();return"000000".substring(C.length)+C},O.hex.rgb=function(b){const y=b.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!y)return[0,0,0];let C=y[0];y[0].length===3&&(C=C.split("").map(D=>D+D).join(""));const w=parseInt(C,16),g=w>>16&255,S=w>>8&255,P=w&255;return[g,S,P]},O.rgb.hcg=function(b){const y=b[0]/255,C=b[1]/255,w=b[2]/255,g=Math.max(Math.max(y,C),w),S=Math.min(Math.min(y,C),w),P=g-S;let D,v;return P<1?D=S/(1-P):D=0,P<=0?v=0:g===y?v=(C-w)/P%6:g===C?v=2+(w-y)/P:v=4+(y-C)/P,v/=6,v%=1,[v*360,P*100,D*100]},O.hsl.hcg=function(b){const y=b[1]/100,C=b[2]/100,w=C<.5?2*y*C:2*y*(1-C);let g=0;return w<1&&(g=(C-.5*w)/(1-w)),[b[0],w*100,g*100]},O.hsv.hcg=function(b){const y=b[1]/100,C=b[2]/100,w=y*C;let g=0;return w<1&&(g=(C-w)/(1-w)),[b[0],w*100,g*100]},O.hcg.rgb=function(b){const y=b[0]/360,C=b[1]/100,w=b[2]/100;if(C===0)return[w*255,w*255,w*255];const g=[0,0,0],S=y%1*6,P=S%1,D=1-P;let v=0;switch(Math.floor(S)){case 0:g[0]=1,g[1]=P,g[2]=0;break;case 1:g[0]=D,g[1]=1,g[2]=0;break;case 2:g[0]=0,g[1]=1,g[2]=P;break;case 3:g[0]=0,g[1]=D,g[2]=1;break;case 4:g[0]=P,g[1]=0,g[2]=1;break;default:g[0]=1,g[1]=0,g[2]=D}return v=(1-C)*w,[(C*g[0]+v)*255,(C*g[1]+v)*255,(C*g[2]+v)*255]},O.hcg.hsv=function(b){const y=b[1]/100,C=b[2]/100,w=y+C*(1-y);let g=0;return w>0&&(g=y/w),[b[0],g*100,w*100]},O.hcg.hsl=function(b){const y=b[1]/100,w=b[2]/100*(1-y)+.5*y;let g=0;return w>0&&w<.5?g=y/(2*w):w>=.5&&w<1&&(g=y/(2*(1-w))),[b[0],g*100,w*100]},O.hcg.hwb=function(b){const y=b[1]/100,C=b[2]/100,w=y+C*(1-y);return[b[0],(w-y)*100,(1-w)*100]},O.hwb.hcg=function(b){const y=b[1]/100,w=1-b[2]/100,g=w-y;let S=0;return g<1&&(S=(w-g)/(1-g)),[b[0],g*100,S*100]},O.apple.rgb=function(b){return[b[0]/65535*255,b[1]/65535*255,b[2]/65535*255]},O.rgb.apple=function(b){return[b[0]/255*65535,b[1]/255*65535,b[2]/255*65535]},O.gray.rgb=function(b){return[b[0]/100*255,b[0]/100*255,b[0]/100*255]},O.gray.hsl=function(b){return[0,0,b[0]]},O.gray.hsv=O.gray.hsl,O.gray.hwb=function(b){return[0,100,b[0]]},O.gray.cmyk=function(b){return[0,0,0,b[0]]},O.gray.lab=function(b){return[b[0],0,0]},O.gray.hex=function(b){const y=Math.round(b[0]/100*255)&255,w=((y<<16)+(y<<8)+y).toString(16).toUpperCase();return"000000".substring(w.length)+w},O.rgb.gray=function(b){return[(b[0]+b[1]+b[2])/3/255*100]}},880(j,it,N){const q=N(165),z=N(985),O={},ht=Object.keys(q);function b(C){const w=function(...g){const S=g[0];return S==null?S:(S.length>1&&(g=S),C(g))};return"conversion"in C&&(w.conversion=C.conversion),w}function y(C){const w=function(...g){const S=g[0];if(S==null)return S;S.length>1&&(g=S);const P=C(g);if(typeof P=="object")for(let D=P.length,v=0;v<D;v++)P[v]=Math.round(P[v]);return P};return"conversion"in C&&(w.conversion=C.conversion),w}ht.forEach(C=>{O[C]={},Object.defineProperty(O[C],"channels",{value:q[C].channels}),Object.defineProperty(O[C],"labels",{value:q[C].labels});const w=z(C);Object.keys(w).forEach(S=>{const P=w[S];O[C][S]=y(P),O[C][S].raw=b(P)})}),j.exports=O},985(j,it,N){const q=N(165);function z(){const y={},C=Object.keys(q);for(let w=C.length,g=0;g<w;g++)y[C[g]]={distance:-1,parent:null};return y}function O(y){const C=z(),w=[y];for(C[y].distance=0;w.length;){const g=w.pop(),S=Object.keys(q[g]);for(let P=S.length,D=0;D<P;D++){const v=S[D],T=C[v];T.distance===-1&&(T.distance=C[g].distance+1,T.parent=g,w.unshift(v))}}return C}function ht(y,C){return function(w){return C(y(w))}}function b(y,C){const w=[C[y].parent,y];let g=q[C[y].parent][y],S=C[y].parent;for(;C[S].parent;)w.unshift(C[S].parent),g=ht(q[C[S].parent][S],g),S=C[S].parent;return g.conversion=w,g}j.exports=function(y){const C=O(y),w={},g=Object.keys(C);for(let S=g.length,P=0;P<S;P++){const D=g[P];C[D].parent!==null&&(w[D]=b(D,C))}return w}},877(j){"use strict";j.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},138(j,it,N){var q=N(877),z=N(403),O=Object.hasOwnProperty,ht=Object.create(null);for(var b in q)O.call(q,b)&&(ht[q[b]]=b);var y=j.exports={to:{},get:{}};y.get=function(g){var S=g.substring(0,3).toLowerCase(),P,D;switch(S){case"hsl":P=y.get.hsl(g),D="hsl";break;case"hwb":P=y.get.hwb(g),D="hwb";break;default:P=y.get.rgb(g),D="rgb";break}return P?{model:D,value:P}:null},y.get.rgb=function(g){if(!g)return null;var S=/^#([a-f0-9]{3,4})$/i,P=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,D=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,v=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,T=/^(\w+)$/,I=[0,0,0,1],L,F,dt;if(L=g.match(P)){for(dt=L[2],L=L[1],F=0;F<3;F++){var Dt=F*2;I[F]=parseInt(L.slice(Dt,Dt+2),16)}dt&&(I[3]=parseInt(dt,16)/255)}else if(L=g.match(S)){for(L=L[1],dt=L[3],F=0;F<3;F++)I[F]=parseInt(L[F]+L[F],16);dt&&(I[3]=parseInt(dt+dt,16)/255)}else if(L=g.match(D)){for(F=0;F<3;F++)I[F]=parseInt(L[F+1],0);L[4]&&(L[5]?I[3]=parseFloat(L[4])*.01:I[3]=parseFloat(L[4]))}else if(L=g.match(v)){for(F=0;F<3;F++)I[F]=Math.round(parseFloat(L[F+1])*2.55);L[4]&&(L[5]?I[3]=parseFloat(L[4])*.01:I[3]=parseFloat(L[4]))}else return(L=g.match(T))?L[1]==="transparent"?[0,0,0,0]:O.call(q,L[1])?(I=q[L[1]],I[3]=1,I):null:null;for(F=0;F<3;F++)I[F]=C(I[F],0,255);return I[3]=C(I[3],0,1),I},y.get.hsl=function(g){if(!g)return null;var S=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,P=g.match(S);if(P){var D=parseFloat(P[4]),v=(parseFloat(P[1])%360+360)%360,T=C(parseFloat(P[2]),0,100),I=C(parseFloat(P[3]),0,100),L=C(isNaN(D)?1:D,0,1);return[v,T,I,L]}return null},y.get.hwb=function(g){if(!g)return null;var S=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,P=g.match(S);if(P){var D=parseFloat(P[4]),v=(parseFloat(P[1])%360+360)%360,T=C(parseFloat(P[2]),0,100),I=C(parseFloat(P[3]),0,100),L=C(isNaN(D)?1:D,0,1);return[v,T,I,L]}return null},y.to.hex=function(){var g=z(arguments);return"#"+w(g[0])+w(g[1])+w(g[2])+(g[3]<1?w(Math.round(g[3]*255)):"")},y.to.rgb=function(){var g=z(arguments);return g.length<4||g[3]===1?"rgb("+Math.round(g[0])+", "+Math.round(g[1])+", "+Math.round(g[2])+")":"rgba("+Math.round(g[0])+", "+Math.round(g[1])+", "+Math.round(g[2])+", "+g[3]+")"},y.to.rgb.percent=function(){var g=z(arguments),S=Math.round(g[0]/255*100),P=Math.round(g[1]/255*100),D=Math.round(g[2]/255*100);return g.length<4||g[3]===1?"rgb("+S+"%, "+P+"%, "+D+"%)":"rgba("+S+"%, "+P+"%, "+D+"%, "+g[3]+")"},y.to.hsl=function(){var g=z(arguments);return g.length<4||g[3]===1?"hsl("+g[0]+", "+g[1]+"%, "+g[2]+"%)":"hsla("+g[0]+", "+g[1]+"%, "+g[2]+"%, "+g[3]+")"},y.to.hwb=function(){var g=z(arguments),S="";return g.length>=4&&g[3]!==1&&(S=", "+g[3]),"hwb("+g[0]+", "+g[1]+"%, "+g[2]+"%"+S+")"},y.to.keyword=function(g){return ht[g.slice(0,3)]};function C(g,S,P){return Math.min(Math.max(S,g),P)}function w(g){var S=Math.round(g).toString(16).toUpperCase();return S.length<2?"0"+S:S}},742(j,it,N){const q=N(138),z=N(880),O=["keyword","gray","hex"],ht={};for(const v of Object.keys(z))ht[[...z[v].labels].sort().join("")]=v;const b={};function y(v,T){if(!(this instanceof y))return new y(v,T);if(T&&T in O&&(T=null),T&&!(T in z))throw new Error("Unknown model: "+T);let I,L;if(v==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(v instanceof y)this.model=v.model,this.color=[...v.color],this.valpha=v.valpha;else if(typeof v=="string"){const F=q.get(v);if(F===null)throw new Error("Unable to parse color from string: "+v);this.model=F.model,L=z[this.model].channels,this.color=F.value.slice(0,L),this.valpha=typeof F.value[L]=="number"?F.value[L]:1}else if(v.length>0){this.model=T||"rgb",L=z[this.model].channels;const F=Array.prototype.slice.call(v,0,L);this.color=D(F,L),this.valpha=typeof v[L]=="number"?v[L]:1}else if(typeof v=="number")this.model="rgb",this.color=[v>>16&255,v>>8&255,v&255],this.valpha=1;else{this.valpha=1;const F=Object.keys(v);"alpha"in v&&(F.splice(F.indexOf("alpha"),1),this.valpha=typeof v.alpha=="number"?v.alpha:0);const dt=F.sort().join("");if(!(dt in ht))throw new Error("Unable to parse color from object: "+JSON.stringify(v));this.model=ht[dt];const{labels:Dt}=z[this.model],ot=[];for(I=0;I<Dt.length;I++)ot.push(v[Dt[I]]);this.color=D(ot)}if(b[this.model])for(L=z[this.model].channels,I=0;I<L;I++){const F=b[this.model][I];F&&(this.color[I]=F(this.color[I]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}y.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(v){let T=this.model in q.to?this:this.rgb();T=T.round(typeof v=="number"?v:1);const I=T.valpha===1?T.color:[...T.color,this.valpha];return q.to[T.model](I)},percentString(v){const T=this.rgb().round(typeof v=="number"?v:1),I=T.valpha===1?T.color:[...T.color,this.valpha];return q.to.rgb.percent(I)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const v={},{channels:T}=z[this.model],{labels:I}=z[this.model];for(let L=0;L<T;L++)v[I[L]]=this.color[L];return this.valpha!==1&&(v.alpha=this.valpha),v},unitArray(){const v=this.rgb().color;return v[0]/=255,v[1]/=255,v[2]/=255,this.valpha!==1&&v.push(this.valpha),v},unitObject(){const v=this.rgb().object();return v.r/=255,v.g/=255,v.b/=255,this.valpha!==1&&(v.alpha=this.valpha),v},round(v){return v=Math.max(v||0,0),new y([...this.color.map(w(v)),this.valpha],this.model)},alpha(v){return v!==void 0?new y([...this.color,Math.max(0,Math.min(1,v))],this.model):this.valpha},red:g("rgb",0,S(255)),green:g("rgb",1,S(255)),blue:g("rgb",2,S(255)),hue:g(["hsl","hsv","hsl","hwb","hcg"],0,v=>(v%360+360)%360),saturationl:g("hsl",1,S(100)),lightness:g("hsl",2,S(100)),saturationv:g("hsv",1,S(100)),value:g("hsv",2,S(100)),chroma:g("hcg",1,S(100)),gray:g("hcg",2,S(100)),white:g("hwb",1,S(100)),wblack:g("hwb",2,S(100)),cyan:g("cmyk",0,S(100)),magenta:g("cmyk",1,S(100)),yellow:g("cmyk",2,S(100)),black:g("cmyk",3,S(100)),x:g("xyz",0,S(95.047)),y:g("xyz",1,S(100)),z:g("xyz",2,S(108.833)),l:g("lab",0,S(100)),a:g("lab",1),b:g("lab",2),keyword(v){return v!==void 0?new y(v):z[this.model].keyword(this.color)},hex(v){return v!==void 0?new y(v):q.to.hex(this.rgb().round().color)},hexa(v){if(v!==void 0)return new y(v);const T=this.rgb().round().color;let I=Math.round(this.valpha*255).toString(16).toUpperCase();return I.length===1&&(I="0"+I),q.to.hex(T)+I},rgbNumber(){const v=this.rgb().color;return(v[0]&255)<<16|(v[1]&255)<<8|v[2]&255},luminosity(){const v=this.rgb().color,T=[];for(const[I,L]of v.entries()){const F=L/255;T[I]=F<=.04045?F/12.92:rt((F+.055)/1.055,2.4)}return .2126*T[0]+.7152*T[1]+.0722*T[2]},contrast(v){const T=this.luminosity(),I=v.luminosity();return T>I?(T+.05)/(I+.05):(I+.05)/(T+.05)},level(v){const T=this.contrast(v);return T>=7?"AAA":T>=4.5?"AA":""},isDark(){const v=this.rgb().color;return(v[0]*2126+v[1]*7152+v[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const v=this.rgb();for(let T=0;T<3;T++)v.color[T]=255-v.color[T];return v},lighten(v){const T=this.hsl();return T.color[2]+=T.color[2]*v,T},darken(v){const T=this.hsl();return T.color[2]-=T.color[2]*v,T},saturate(v){const T=this.hsl();return T.color[1]+=T.color[1]*v,T},desaturate(v){const T=this.hsl();return T.color[1]-=T.color[1]*v,T},whiten(v){const T=this.hwb();return T.color[1]+=T.color[1]*v,T},blacken(v){const T=this.hwb();return T.color[2]+=T.color[2]*v,T},grayscale(){const v=this.rgb().color,T=v[0]*.3+v[1]*.59+v[2]*.11;return y.rgb(T,T,T)},fade(v){return this.alpha(this.valpha-this.valpha*v)},opaquer(v){return this.alpha(this.valpha+this.valpha*v)},rotate(v){const T=this.hsl();let I=T.color[0];return I=(I+v)%360,I=I<0?360+I:I,T.color[0]=I,T},mix(v,T){if(!v||!v.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof v);const I=v.rgb(),L=this.rgb(),F=T===void 0?.5:T,dt=2*F-1,Dt=I.alpha()-L.alpha(),ot=((dt*Dt===-1?dt:(dt+Dt)/(1+dt*Dt))+1)/2,Tt=1-ot;return y.rgb(ot*I.red()+Tt*L.red(),ot*I.green()+Tt*L.green(),ot*I.blue()+Tt*L.blue(),I.alpha()*F+L.alpha()*(1-F))}};for(const v of Object.keys(z)){if(O.includes(v))continue;const{channels:T}=z[v];y.prototype[v]=function(...I){return this.model===v?new y(this):I.length>0?new y(I,v):new y([...P(z[this.model][v].raw(this.color)),this.valpha],v)},y[v]=function(...I){let L=I[0];return typeof L=="number"&&(L=D(I,T)),new y(L,v)}}function C(v,T){return Number(v.toFixed(T))}function w(v){return function(T){return C(T,v)}}function g(v,T,I){v=Array.isArray(v)?v:[v];for(const L of v)(b[L]||(b[L]=[]))[T]=I;return v=v[0],function(L){let F;return L!==void 0?(I&&(L=I(L)),F=this[v](),F.color[T]=L,F):(F=this[v]().color[T],I&&(F=I(F)),F)}}function S(v){return function(T){return Math.max(0,Math.min(v,T))}}function P(v){return Array.isArray(v)?v:[v]}function D(v,T){for(let I=0;I<T;I++)typeof v[I]!="number"&&(v[I]=0);return v}j.exports=y},94(j){j.exports=function(N){return!N||typeof N=="string"?!1:N instanceof Array||Array.isArray(N)||N.length>=0&&(N.splice instanceof Function||Object.getOwnPropertyDescriptor(N,N.length-1)&&N.constructor.name!=="String")}},403(j,it,N){"use strict";var q=N(94),z=Array.prototype.concat,O=Array.prototype.slice,ht=j.exports=function(y){for(var C=[],w=0,g=y.length;w<g;w++){var S=y[w];q(S)?C=z.call(C,O.call(S)):C.push(S)}return C};ht.wrap=function(b){return function(){return b(ht(arguments))}}}},An={};function Pt(j){var it=An[j];if(it!==void 0)return it.exports;var N=An[j]={exports:{}};return Pa[j](N,N.exports,Pt),N.exports}Pt.n=j=>{var it=j&&j.__esModule?()=>j.default:()=>j;return Pt.d(it,{a:it}),it},Pt.d=(j,it)=>{for(var N in it)Pt.o(it,N)&&!Pt.o(j,N)&&Object.defineProperty(j,N,{enumerable:!0,get:it[N]})},Pt.o=(j,it)=>Object.prototype.hasOwnProperty.call(j,it),Pt.r=j=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(j,"__esModule",{value:!0})};var Ms={};(()=>{"use strict";Pt.r(Ms),Pt.d(Ms,{Chart:()=>Ca,createChart:()=>Am,generateCandlesData:()=>Mm});function j(n){return typeof n=="function"}function it(n){return j(n==null?void 0:n.lift)}function N(n){return function(t){if(it(t))return t.lift(function(e){try{return n(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}var q=function(n,t){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])},q(n,t)};function z(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");q(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var O=function(){return O=Object.assign||function(t){for(var e,s=1,i=arguments.length;s<i;s++){e=arguments[s];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},O.apply(this,arguments)};function ht(n,t){var e={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&t.indexOf(s)<0&&(e[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(n);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(n,s[i])&&(e[s[i]]=n[s[i]]);return e}function b(n,t,e,s){var i=arguments.length,r=i<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,t,e,s);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(r=(i<3?o(r):i>3?o(t,e,r):o(t,e))||r);return i>3&&r&&Object.defineProperty(t,e,r),r}function y(n,t){return function(e,s){t(e,s,n)}}function C(n,t,e,s,i,r){function o(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var a=s.kind,l=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&n?s.static?n:n.prototype:null,h=t||(c?Object.getOwnPropertyDescriptor(c,s.name):{}),d,u=!1,f=e.length-1;f>=0;f--){var p={};for(var m in s)p[m]=m==="access"?{}:s[m];for(var m in s.access)p.access[m]=s.access[m];p.addInitializer=function(x){if(u)throw new TypeError("Cannot add initializers after decoration has completed");r.push(o(x||null))};var _=(0,e[f])(a==="accessor"?{get:h.get,set:h.set}:h[l],p);if(a==="accessor"){if(_===void 0)continue;if(_===null||typeof _!="object")throw new TypeError("Object expected");(d=o(_.get))&&(h.get=d),(d=o(_.set))&&(h.set=d),(d=o(_.init))&&i.unshift(d)}else(d=o(_))&&(a==="field"?i.unshift(d):h[l]=d)}c&&Object.defineProperty(c,s.name,h),u=!0}function w(n,t,e){for(var s=arguments.length>2,i=0;i<t.length;i++)e=s?t[i].call(n,e):t[i].call(n);return s?e:void 0}function g(n){return typeof n=="symbol"?n:"".concat(n)}function S(n,t,e){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:e?"".concat(e," ",t):t})}function P(n,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,t)}function D(n,t,e,s){function i(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function a(h){try{c(s.next(h))}catch(d){o(d)}}function l(h){try{c(s.throw(h))}catch(d){o(d)}}function c(h){h.done?r(h.value):i(h.value).then(a,l)}c((s=s.apply(n,t||[])).next())})}function v(n,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,i,r,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(h){return l([c,h])}}function l(c){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(s=1,i&&(r=c[0]&2?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,i=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(n,e)}catch(h){c=[6,h],i=0}finally{s=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var T=Object.create?(function(n,t,e,s){s===void 0&&(s=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,s,i)}):(function(n,t,e,s){s===void 0&&(s=e),n[s]=t[e]});function I(n,t){for(var e in n)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&T(t,n,e)}function L(n){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&n[t],s=0;if(e)return e.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var s=e.call(n),i,r=[],o;try{for(;(t===void 0||t-- >0)&&!(i=s.next()).done;)r.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return r}function dt(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(F(arguments[t]));return n}function Dt(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var s=Array(n),i=0,t=0;t<e;t++)for(var r=arguments[t],o=0,a=r.length;o<a;o++,i++)s[i]=r[o];return s}function ot(n,t,e){if(e||arguments.length===2)for(var s=0,i=t.length,r;s<i;s++)(r||!(s in t))&&(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return n.concat(r||Array.prototype.slice.call(t))}function Tt(n){return this instanceof Tt?(this.v=n,this):new Tt(n)}function En(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e.apply(n,t||[]),i,r=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){s[f]&&(i[f]=function(m){return new Promise(function(_,x){r.push([f,m,_,x])>1||l(f,m)})},p&&(i[f]=p(i[f])))}function l(f,p){try{c(s[f](p))}catch(m){u(r[0][3],m)}}function c(f){f.value instanceof Tt?Promise.resolve(f.value.v).then(h,d):u(r[0][2],f)}function h(f){l("next",f)}function d(f){l("throw",f)}function u(f,p){f(p),r.shift(),r.length&&l(r[0][0],r[0][1])}}function Ta(n){var t,e;return t={},s("next"),s("throw",function(i){throw i}),s("return"),t[Symbol.iterator]=function(){return this},t;function s(i,r){t[i]=n[i]?function(o){return(e=!e)?{value:Tt(n[i](o)),done:!1}:r?r(o):o}:r}}function In(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=n[Symbol.asyncIterator],e;return t?t.call(n):(n=typeof L=="function"?L(n):n[Symbol.iterator](),e={},s("next"),s("throw"),s("return"),e[Symbol.asyncIterator]=function(){return this},e);function s(r){e[r]=n[r]&&function(o){return new Promise(function(a,l){o=n[r](o),i(a,l,o.done,o.value)})}}function i(r,o,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},o)}}function Ma(n,t){return Object.defineProperty?Object.defineProperty(n,"raw",{value:t}):n.raw=t,n}var Aa=Object.create?(function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}):function(n,t){n.default=t},As=function(n){return As=Object.getOwnPropertyNames||function(t){var e=[];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[e.length]=s);return e},As(n)};function Ea(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e=As(n),s=0;s<e.length;s++)e[s]!=="default"&&T(t,n,e[s]);return Aa(t,n),t}function Ia(n){return n&&n.__esModule?n:{default:n}}function Da(n,t,e,s){if(e==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!s:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?s:e==="a"?s.call(n):s?s.value:t.get(n)}function La(n,t,e,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!i:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(n,e):i?i.value=e:t.set(n,e),e}function Oa(n,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?t===n:n.has(t)}function Ba(n,t,e){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var s,i;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");s=t[Symbol.asyncDispose]}if(s===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");s=t[Symbol.dispose],e&&(i=s)}if(typeof s!="function")throw new TypeError("Object not disposable.");i&&(s=function(){try{i.call(this)}catch(r){return Promise.reject(r)}}),n.stack.push({value:t,dispose:s,async:e})}else e&&n.stack.push({async:!0});return t}var Ra=typeof SuppressedError=="function"?SuppressedError:function(n,t,e){var s=new Error(e);return s.name="SuppressedError",s.error=n,s.suppressed=t,s};function Fa(n){function t(r){n.error=n.hasError?new Ra(r,n.error,"An error was suppressed during disposal."):r,n.hasError=!0}var e,s=0;function i(){for(;e=n.stack.pop();)try{if(!e.async&&s===1)return s=0,n.stack.push(e),Promise.resolve().then(i);if(e.dispose){var r=e.dispose.call(e.value);if(e.async)return s|=2,Promise.resolve(r).then(i,function(o){return t(o),i()})}else s|=1}catch(o){t(o)}if(s===1)return n.hasError?Promise.reject(n.error):Promise.resolve();if(n.hasError)throw n.error}return i()}function Ha(n,t){return typeof n=="string"&&/^\.\.?\//.test(n)?n.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,s,i,r,o){return s?t?".jsx":".js":i&&(!r||!o)?e:i+r+"."+o.toLowerCase()+"js"}):n}const Em={__extends:z,__assign:O,__rest:ht,__decorate:b,__param:y,__esDecorate:C,__runInitializers:w,__propKey:g,__setFunctionName:S,__metadata:P,__awaiter:D,__generator:v,__createBinding:T,__exportStar:I,__values:L,__read:F,__spread:dt,__spreadArrays:Dt,__spreadArray:ot,__await:Tt,__asyncGenerator:En,__asyncDelegator:Ta,__asyncValues:In,__makeTemplateObject:Ma,__importStar:Ea,__importDefault:Ia,__classPrivateFieldGet:Da,__classPrivateFieldSet:La,__classPrivateFieldIn:Oa,__addDisposableResource:Ba,__disposeResources:Fa,__rewriteRelativeImportExtension:Ha};function Dn(n){var t=function(s){Error.call(s),s.stack=new Error().stack},e=n(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Es=Dn(function(n){return function(e){n(this),this.message=e?e.length+` errors occurred during unsubscription: `+e.map(function(s,i){return i+1+") "+s.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=e}});function We(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var fe=(function(){function n(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var t,e,s,i,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=L(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(m){t={error:m}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var h=this.initialTeardown;if(j(h))try{h()}catch(m){r=m instanceof Es?m.errors:[m]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var u=L(d),f=u.next();!f.done;f=u.next()){var p=f.value;try{Bn(p)}catch(m){r=r!=null?r:[],m instanceof Es?r=ot(ot([],F(r)),F(m.errors)):r.push(m)}}}catch(m){s={error:m}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(s)throw s.error}}}if(r)throw new Es(r)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Bn(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},n.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},n.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},n.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&We(e,t)},n.prototype.remove=function(t){var e=this._finalizers;e&&We(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=(function(){var t=new n;return t.closed=!0,t})(),n})(),Ln=fe.EMPTY;function On(n){return n instanceof fe||n&&"closed"in n&&j(n.remove)&&j(n.add)&&j(n.unsubscribe)}function Bn(n){j(n)?n():n.unsubscribe()}var te={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ze={setTimeout:function(n,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];var i=ze.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,ot([n,t],F(e))):setTimeout.apply(void 0,ot([n,t],F(e)))},clearTimeout:function(n){var t=ze.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function Rn(n){ze.setTimeout(function(){var t=te.onUnhandledError;if(t)t(n);else throw n})}function Fn(){}var ka=(function(){return Is("C",void 0,void 0)})();function ja(n){return Is("E",void 0,n)}function Ya(n){return Is("N",n,void 0)}function Is(n,t,e){return{kind:n,value:t,error:e}}var ee=null;function Ve(n){if(te.useDeprecatedSynchronousErrorHandling){var t=!ee;if(t&&(ee={errorThrown:!1,error:null}),n(),t){var e=ee,s=e.errorThrown,i=e.error;if(ee=null,s)throw i}}else n()}function Na(n){te.useDeprecatedSynchronousErrorHandling&&ee&&(ee.errorThrown=!0,ee.error=n)}var Ds=(function(n){z(t,n);function t(e){var s=n.call(this)||this;return s.isStopped=!1,e?(s.destination=e,On(e)&&e.add(s)):s.destination=Va,s}return t.create=function(e,s,i){return new Pe(e,s,i)},t.prototype.next=function(e){this.isStopped?Os(Ya(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?Os(ja(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?Os(ka,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(fe),Xa=Function.prototype.bind;function Ls(n,t){return Xa.call(n,t)}var Wa=(function(){function n(t){this.partialObserver=t}return n.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(s){Ue(s)}},n.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){Ue(s)}else Ue(t)},n.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Ue(e)}},n})(),Pe=(function(n){z(t,n);function t(e,s,i){var r=n.call(this)||this,o;if(j(e)||!e)o={next:e!=null?e:void 0,error:s!=null?s:void 0,complete:i!=null?i:void 0};else{var a;r&&te.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return r.unsubscribe()},o={next:e.next&&Ls(e.next,a),error:e.error&&Ls(e.error,a),complete:e.complete&&Ls(e.complete,a)}):o=e}return r.destination=new Wa(o),r}return t})(Ds);function Ue(n){te.useDeprecatedSynchronousErrorHandling?Na(n):Rn(n)}function za(n){throw n}function Os(n,t){var e=te.onStoppedNotification;e&&ze.setTimeout(function(){return e(n,t)})}var Va={closed:!0,next:Fn,error:za,complete:Fn};function yt(n,t,e,s,i){return new Ua(n,t,e,s,i)}var Ua=(function(n){z(t,n);function t(e,s,i,r,o,a){var l=n.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=s?function(c){try{s(c)}catch(h){e.error(h)}}:n.prototype._next,l._error=r?function(c){try{r(c)}catch(h){e.error(h)}finally{this.unsubscribe()}}:n.prototype._error,l._complete=i?function(){try{i()}catch(c){e.error(c)}finally{this.unsubscribe()}}:n.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;n.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t})(Ds);function at(n,t){return N(function(e,s){var i=0;e.subscribe(yt(s,function(r){s.next(n.call(t,r,i++))}))})}var Bs=(function(n){return n&&typeof n.length=="number"&&typeof n!="function"});function Hn(n){return j(n==null?void 0:n.then)}var Rs=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function se(n){return n}function Im(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return kn(n)}function kn(n){return n.length===0?se:n.length===1?n[0]:function(e){return n.reduce(function(s,i){return i(s)},e)}}var gt=(function(){function n(t){t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,s){var i=this,r=Za(t)?t:new Pe(t,e,s);return Ve(function(){var o=i,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?i._subscribe(r):i._trySubscribe(r))}),r},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},n.prototype.forEach=function(t,e){var s=this;return e=jn(e),new e(function(i,r){var o=new Pe({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:i});s.subscribe(o)})},n.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},n.prototype[Rs]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return kn(t)(this)},n.prototype.toPromise=function(t){var e=this;return t=jn(t),new t(function(s,i){var r;e.subscribe(function(o){return r=o},function(o){return i(o)},function(){return s(r)})})},n.create=function(t){return new n(t)},n})();function jn(n){var t;return(t=n!=null?n:te.Promise)!==null&&t!==void 0?t:Promise}function Ga(n){return n&&j(n.next)&&j(n.error)&&j(n.complete)}function Za(n){return n&&n instanceof Ds||Ga(n)&&On(n)}function Yn(n){return j(n[Rs])}function Nn(n){return Symbol.asyncIterator&&j(n==null?void 0:n[Symbol.asyncIterator])}function Xn(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function $a(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Wn=$a();function zn(n){return j(n==null?void 0:n[Wn])}function Vn(n){return En(this,arguments,function(){var e,s,i,r;return v(this,function(o){switch(o.label){case 0:e=n.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Tt(e.read())];case 3:return s=o.sent(),i=s.value,r=s.done,r?[4,Tt(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Tt(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function Un(n){return j(n==null?void 0:n.getReader)}function Lt(n){if(n instanceof gt)return n;if(n!=null){if(Yn(n))return Ka(n);if(Bs(n))return qa(n);if(Hn(n))return Ja(n);if(Nn(n))return Gn(n);if(zn(n))return Qa(n);if(Un(n))return tl(n)}throw Xn(n)}function Ka(n){return new gt(function(t){var e=n[Rs]();if(j(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function qa(n){return new gt(function(t){for(var e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}function Ja(n){return new gt(function(t){n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Rn)})}function Qa(n){return new gt(function(t){var e,s;try{for(var i=L(n),r=i.next();!r.done;r=i.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(s=i.return)&&s.call(i)}finally{if(e)throw e.error}}t.complete()})}function Gn(n){return new gt(function(t){el(n,t).catch(function(e){return t.error(e)})})}function tl(n){return Gn(Vn(n))}function el(n,t){var e,s,i,r;return D(this,void 0,void 0,function(){var o,a;return v(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=In(n),l.label=1;case 1:return[4,e.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Yt(n,t,e,s,i){s===void 0&&(s=0),i===void 0&&(i=!1);var r=t.schedule(function(){e(),i?n.add(this.schedule(null,s)):this.unsubscribe()},s);if(n.add(r),!i)return r}function sl(n,t,e,s,i,r,o,a){var l=[],c=0,h=0,d=!1,u=function(){d&&!l.length&&!c&&t.complete()},f=function(m){return c<s?p(m):l.push(m)},p=function(m){r&&t.next(m),c++;var _=!1;Lt(e(m,h++)).subscribe(yt(t,function(x){i==null||i(x),r?f(x):t.next(x)},function(){_=!0},void 0,function(){if(_)try{c--;for(var x=function(){var A=l.shift();o?Yt(t,o,function(){return p(A)}):p(A)};l.length&&c<s;)x();u()}catch(A){t.error(A)}}))};return n.subscribe(yt(t,f,function(){d=!0,u()})),function(){a==null||a()}}function Fs(n,t,e){return e===void 0&&(e=1/0),j(t)?Fs(function(s,i){return at(function(r,o){return t(s,r,i,o)})(Lt(n(s,i)))},e):(typeof t=="number"&&(e=t),N(function(s,i){return sl(s,i,n,e)}))}function Zn(n){return n===void 0&&(n=1/0),Fs(se,n)}var nl,$n=new gt(function(n){return n.complete()});function Dm(n){return n?il(n):$n}function il(n){return new nl(function(t){return n.schedule(function(){return t.complete()})})}function Kn(n){return n&&j(n.schedule)}function Hs(n){return n[n.length-1]}function rl(n){return j(Hs(n))?n.pop():void 0}function Ge(n){return Kn(Hs(n))?n.pop():void 0}function ol(n,t){return typeof Hs(n)=="number"?n.pop():t}function qn(n,t){return t===void 0&&(t=0),N(function(e,s){e.subscribe(yt(s,function(i){return Yt(s,n,function(){return s.next(i)},t)},function(){return Yt(s,n,function(){return s.complete()},t)},function(i){return Yt(s,n,function(){return s.error(i)},t)}))})}function Jn(n,t){return t===void 0&&(t=0),N(function(e,s){s.add(n.schedule(function(){return e.subscribe(s)},t))})}function al(n,t){return Lt(n).pipe(Jn(t),qn(t))}function ll(n,t){return Lt(n).pipe(Jn(t),qn(t))}function cl(n,t){return new gt(function(e){var s=0;return t.schedule(function(){s===n.length?e.complete():(e.next(n[s++]),e.closed||this.schedule())})})}function hl(n,t){return new gt(function(e){var s;return Yt(e,t,function(){s=n[Wn](),Yt(e,t,function(){var i,r,o;try{i=s.next(),r=i.value,o=i.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return j(s==null?void 0:s.return)&&s.return()}})}function Qn(n,t){if(!n)throw new Error("Iterable cannot be null");return new gt(function(e){Yt(e,t,function(){var s=n[Symbol.asyncIterator]();Yt(e,t,function(){s.next().then(function(i){i.done?e.complete():e.next(i.value)})},0,!0)})})}function dl(n,t){return Qn(Vn(n),t)}function ul(n,t){if(n!=null){if(Yn(n))return al(n,t);if(Bs(n))return cl(n,t);if(Hn(n))return ll(n,t);if(Nn(n))return Qn(n,t);if(zn(n))return hl(n,t);if(Un(n))return dl(n,t)}throw Xn(n)}function Ze(n,t){return t?ul(n,t):Lt(n)}function wt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=Ge(n),s=ol(n,1/0),i=n;return i.length?i.length===1?Lt(i[0]):Zn(s)(Ze(i,e)):$n}var fl=Dn(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),H=(function(n){z(t,n);function t(){var e=n.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var s=new ti(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new fl},t.prototype.next=function(e){var s=this;Ve(function(){var i,r;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=L(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){i={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(e){var s=this;Ve(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var i=s.observers;i.length;)i.shift().error(e)}})},t.prototype.complete=function(){var e=this;Ve(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,e)},t.prototype._subscrib