@umijs/utils 4.0.0-beta.9 → 4.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/axios/index.d.ts +29 -14
- package/compiled/axios/index.js +1 -1
- package/compiled/chalk/LICENSE +1 -1
- package/compiled/chalk/index.js +1 -1
- package/compiled/chalk/package.json +1 -1
- package/compiled/chalk/source/index.d.ts +318 -0
- package/compiled/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/compiled/color/color-convert/conversions.d.ts +87 -87
- package/compiled/color/color-convert/index.d.ts +75 -60
- package/compiled/color/color-convert/route.d.ts +271 -271
- package/compiled/color/index.d.ts +118 -121
- package/compiled/color/index.js +1 -1
- package/compiled/color/package.json +1 -4
- package/compiled/debug/LICENSE +10 -9
- package/compiled/debug/index.js +1 -1
- package/compiled/debug/package.json +1 -1
- package/compiled/execa/index.d.ts +467 -445
- package/compiled/execa/index.js +1 -1
- package/compiled/globby/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/compiled/globby/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/compiled/globby/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/compiled/globby/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/compiled/globby/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/compiled/globby/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/compiled/globby/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/compiled/globby/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/compiled/globby/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/compiled/globby/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/compiled/globby/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/compiled/globby/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/compiled/globby/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/compiled/globby/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/compiled/globby/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/compiled/globby/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/compiled/globby/LICENSE +9 -0
- package/compiled/globby/fast-glob/out/index.d.ts +27 -0
- package/compiled/globby/fast-glob/out/managers/tasks.d.ts +22 -0
- package/compiled/globby/fast-glob/out/settings.d.ts +164 -0
- package/compiled/globby/fast-glob/out/types/index.d.ts +31 -0
- package/compiled/globby/index.d.ts +206 -0
- package/compiled/globby/index.js +37 -0
- package/compiled/globby/package.json +1 -0
- package/compiled/pirates/LICENSE +21 -0
- package/compiled/pirates/index.d.ts +82 -0
- package/compiled/pirates/index.js +1 -0
- package/compiled/pirates/package.json +1 -0
- package/compiled/pkg-up/LICENSE +1 -1
- package/compiled/pkg-up/index.d.ts +55 -44
- package/compiled/pkg-up/index.js +1 -1
- package/compiled/pkg-up/package.json +1 -1
- package/compiled/resolve/index.js +1 -1
- package/compiled/strip-ansi/LICENSE +1 -1
- package/compiled/strip-ansi/index.d.ts +2 -4
- package/compiled/strip-ansi/index.js +1 -1
- package/compiled/strip-ansi/package.json +1 -1
- package/compiled/yargs-parser/index.js +1 -1
- package/dist/getCorejsVersion.d.ts +1 -0
- package/dist/getCorejsVersion.js +11 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +6 -5
- package/dist/installDeps.js +20 -4
- package/dist/isStyleFile.d.ts +5 -0
- package/dist/isStyleFile.js +16 -0
- package/dist/logger.d.ts +8 -6
- package/dist/logger.js +8 -1
- package/dist/register.js +21 -22
- package/dist/tryPaths.d.ts +1 -0
- package/dist/tryPaths.js +11 -0
- package/package.json +19 -18
|
@@ -8,133 +8,130 @@
|
|
|
8
8
|
|
|
9
9
|
import convert = require('./color-convert');
|
|
10
10
|
|
|
11
|
-
type ColorParam =
|
|
12
|
-
| Color
|
|
13
|
-
| string
|
|
14
|
-
| ArrayLike<number>
|
|
15
|
-
| number
|
|
16
|
-
| { [key: string]: any };
|
|
11
|
+
type ColorParam = Color | string | ArrayLike<number> | number | { [key: string]: any };
|
|
17
12
|
|
|
18
13
|
interface Color<T extends ColorParam = ColorParam> {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
14
|
+
toString(): string;
|
|
15
|
+
toJSON(): Color<T>;
|
|
16
|
+
string(places?: number): string;
|
|
17
|
+
percentString(places?: number): string;
|
|
18
|
+
array(): number[];
|
|
19
|
+
object(): { alpha?: number | undefined } & { [key: string]: number };
|
|
20
|
+
unitArray(): number[];
|
|
21
|
+
unitObject(): { r: number, g: number, b: number, alpha?: number | undefined };
|
|
22
|
+
round(places?: number): Color;
|
|
23
|
+
alpha(): number;
|
|
24
|
+
alpha(val: number): Color;
|
|
25
|
+
red(): number;
|
|
26
|
+
red(val: number): Color;
|
|
27
|
+
green(): number;
|
|
28
|
+
green(val: number): Color;
|
|
29
|
+
blue(): number;
|
|
30
|
+
blue(val: number): Color;
|
|
31
|
+
hue(): number;
|
|
32
|
+
hue(val: number): Color;
|
|
33
|
+
saturationl(): number;
|
|
34
|
+
saturationl(val: number): Color;
|
|
35
|
+
lightness(): number;
|
|
36
|
+
lightness(val: number): Color;
|
|
37
|
+
saturationv(): number;
|
|
38
|
+
saturationv(val: number): Color;
|
|
39
|
+
value(): number;
|
|
40
|
+
value(val: number): Color;
|
|
41
|
+
chroma(): number;
|
|
42
|
+
chroma(val: number): Color;
|
|
43
|
+
gray(): number;
|
|
44
|
+
gray(val: number): Color;
|
|
45
|
+
white(): number;
|
|
46
|
+
white(val: number): Color;
|
|
47
|
+
wblack(): number;
|
|
48
|
+
wblack(val: number): Color;
|
|
49
|
+
cyan(): number;
|
|
50
|
+
cyan(val: number): Color;
|
|
51
|
+
magenta(): number;
|
|
52
|
+
magenta(val: number): Color;
|
|
53
|
+
yellow(): number;
|
|
54
|
+
yellow(val: number): Color;
|
|
55
|
+
black(): number;
|
|
56
|
+
black(val: number): Color;
|
|
57
|
+
x(): number;
|
|
58
|
+
x(val: number): Color;
|
|
59
|
+
y(): number;
|
|
60
|
+
y(val: number): Color;
|
|
61
|
+
z(): number;
|
|
62
|
+
z(val: number): Color;
|
|
63
|
+
l(): number;
|
|
64
|
+
l(val: number): Color;
|
|
65
|
+
a(): number;
|
|
66
|
+
a(val: number): Color;
|
|
67
|
+
b(): number;
|
|
68
|
+
b(val: number): Color;
|
|
69
|
+
keyword(): string;
|
|
70
|
+
keyword<V extends string>(val: V): Color<V>;
|
|
71
|
+
hex(): string;
|
|
72
|
+
hex<V extends string>(val: V): Color<V>;
|
|
73
|
+
hexa(): string;
|
|
74
|
+
hexa<V extends string>(val: V): Color<V>;
|
|
75
|
+
rgbNumber(): number;
|
|
76
|
+
luminosity(): number;
|
|
77
|
+
contrast(color2: Color): number;
|
|
78
|
+
level(color2: Color): 'AAA' | 'AA' | '';
|
|
79
|
+
isDark(): boolean;
|
|
80
|
+
isLight(): boolean;
|
|
81
|
+
negate(): Color;
|
|
82
|
+
lighten(ratio: number): Color;
|
|
83
|
+
darken(ratio: number): Color;
|
|
84
|
+
saturate(ratio: number): Color;
|
|
85
|
+
desaturate(ratio: number): Color;
|
|
86
|
+
whiten(ratio: number): Color;
|
|
87
|
+
blacken(ratio: number): Color;
|
|
88
|
+
grayscale(): Color;
|
|
89
|
+
fade(ratio: number): Color;
|
|
90
|
+
opaquer(ratio: number): Color;
|
|
91
|
+
rotate(degrees: number): Color;
|
|
92
|
+
mix(mixinColor: Color, weight?: number): Color;
|
|
96
93
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
94
|
+
rgb(...args: number[]): Color;
|
|
95
|
+
hsl(...args: number[]): Color;
|
|
96
|
+
hsv(...args: number[]): Color;
|
|
97
|
+
hwb(...args: number[]): Color;
|
|
98
|
+
cmyk(...args: number[]): Color;
|
|
99
|
+
xyz(...args: number[]): Color;
|
|
100
|
+
lab(...args: number[]): Color;
|
|
101
|
+
lch(...args: number[]): Color;
|
|
102
|
+
ansi16(...args: number[]): Color;
|
|
103
|
+
ansi256(...args: number[]): Color;
|
|
104
|
+
hcg(...args: number[]): Color;
|
|
105
|
+
apple(...args: number[]): Color;
|
|
109
106
|
}
|
|
110
107
|
|
|
111
108
|
interface ColorConstructor {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
109
|
+
<T extends ColorParam>(obj?: T, model?: keyof (typeof convert)): Color<T>;
|
|
110
|
+
new<T extends ColorParam>(obj?: T, model?: keyof (typeof convert)): Color<T>;
|
|
111
|
+
rgb(...val: number[]): Color;
|
|
112
|
+
rgb(color: ColorParam): Color;
|
|
113
|
+
hsl(...val: number[]): Color;
|
|
114
|
+
hsl(color: ColorParam): Color;
|
|
115
|
+
hsv(...val: number[]): Color;
|
|
116
|
+
hsv(color: ColorParam): Color;
|
|
117
|
+
hwb(...val: number[]): Color;
|
|
118
|
+
hwb(color: ColorParam): Color;
|
|
119
|
+
cmyk(...val: number[]): Color;
|
|
120
|
+
cmyk(color: ColorParam): Color;
|
|
121
|
+
xyz(...val: number[]): Color;
|
|
122
|
+
xyz(color: ColorParam): Color;
|
|
123
|
+
lab(...val: number[]): Color;
|
|
124
|
+
lab(color: ColorParam): Color;
|
|
125
|
+
lch(...val: number[]): Color;
|
|
126
|
+
lch(color: ColorParam): Color;
|
|
127
|
+
ansi16(...val: number[]): Color;
|
|
128
|
+
ansi16(color: ColorParam): Color;
|
|
129
|
+
ansi256(...val: number[]): Color;
|
|
130
|
+
ansi256(color: ColorParam): Color;
|
|
131
|
+
hcg(...val: number[]): Color;
|
|
132
|
+
hcg(color: ColorParam): Color;
|
|
133
|
+
apple(...val: number[]): Color;
|
|
134
|
+
apple(color: ColorParam): Color;
|
|
138
135
|
}
|
|
139
136
|
|
|
140
137
|
declare const Color: ColorConstructor;
|
package/compiled/color/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var t={348:function(t,n,e){const r=e(702);const o={};for(const t of Object.keys(r)){o[r[t]]=t}const s={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"]}};t.exports=s;for(const t of Object.keys(s)){if(!("channels"in s[t])){throw new Error("missing channels property: "+t)}if(!("labels"in s[t])){throw new Error("missing channel labels property: "+t)}if(s[t].labels.length!==s[t].channels){throw new Error("channel and label counts mismatch: "+t)}const{channels:n,labels:e}=s[t];delete s[t].channels;delete s[t].labels;Object.defineProperty(s[t],"channels",{value:n});Object.defineProperty(s[t],"labels",{value:e})}s.rgb.hsl=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.min(n,e,r);const s=Math.max(n,e,r);const a=s-o;let l;let c;if(s===o){l=0}else if(n===s){l=(e-r)/a}else if(e===s){l=2+(r-n)/a}else if(r===s){l=4+(n-e)/a}l=Math.min(l*60,360);if(l<0){l+=360}const i=(o+s)/2;if(s===o){c=0}else if(i<=.5){c=a/(s+o)}else{c=a/(2-s-o)}return[l,c*100,i*100]};s.rgb.hsv=function(t){let n;let e;let r;let o;let s;const a=t[0]/255;const l=t[1]/255;const c=t[2]/255;const i=Math.max(a,l,c);const h=i-Math.min(a,l,c);const diffc=function(t){return(i-t)/6/h+1/2};if(h===0){o=0;s=0}else{s=h/i;n=diffc(a);e=diffc(l);r=diffc(c);if(a===i){o=r-e}else if(l===i){o=1/3+n-r}else if(c===i){o=2/3+e-n}if(o<0){o+=1}else if(o>1){o-=1}}return[o*360,s*100,i*100]};s.rgb.hwb=function(t){const n=t[0];const e=t[1];let r=t[2];const o=s.rgb.hsl(t)[0];const a=1/255*Math.min(n,Math.min(e,r));r=1-1/255*Math.max(n,Math.max(e,r));return[o,a*100,r*100]};s.rgb.cmyk=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.min(1-n,1-e,1-r);const s=(1-n-o)/(1-o)||0;const a=(1-e-o)/(1-o)||0;const l=(1-r-o)/(1-o)||0;return[s*100,a*100,l*100,o*100]};function comparativeDistance(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}s.rgb.keyword=function(t){const n=o[t];if(n){return n}let e=Infinity;let s;for(const n of Object.keys(r)){const o=r[n];const a=comparativeDistance(t,o);if(a<e){e=a;s=n}}return s};s.keyword.rgb=function(t){return r[t]};s.rgb.xyz=function(t){let n=t[0]/255;let e=t[1]/255;let r=t[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=n*.4124+e*.3576+r*.1805;const s=n*.2126+e*.7152+r*.0722;const a=n*.0193+e*.1192+r*.9505;return[o*100,s*100,a*100]};s.rgb.lab=function(t){const n=s.rgb.xyz(t);let e=n[0];let r=n[1];let o=n[2];e/=95.047;r/=100;o/=108.883;e=e>.008856?e**(1/3):7.787*e+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16;const l=500*(e-r);const c=200*(r-o);return[a,l,c]};s.hsl.rgb=function(t){const n=t[0]/360;const e=t[1]/100;const r=t[2]/100;let o;let s;let a;if(e===0){a=r*255;return[a,a,a]}if(r<.5){o=r*(1+e)}else{o=r+e-r*e}const l=2*r-o;const c=[0,0,0];for(let t=0;t<3;t++){s=n+1/3*-(t-1);if(s<0){s++}if(s>1){s--}if(6*s<1){a=l+(o-l)*6*s}else if(2*s<1){a=o}else if(3*s<2){a=l+(o-l)*(2/3-s)*6}else{a=l}c[t]=a*255}return c};s.hsl.hsv=function(t){const n=t[0];let e=t[1]/100;let r=t[2]/100;let o=e;const s=Math.max(r,.01);r*=2;e*=r<=1?r:2-r;o*=s<=1?s:2-s;const a=(r+e)/2;const l=r===0?2*o/(s+o):2*e/(r+e);return[n,l*100,a*100]};s.hsv.rgb=function(t){const n=t[0]/60;const e=t[1]/100;let r=t[2]/100;const o=Math.floor(n)%6;const s=n-Math.floor(n);const a=255*r*(1-e);const l=255*r*(1-e*s);const c=255*r*(1-e*(1-s));r*=255;switch(o){case 0:return[r,c,a];case 1:return[l,r,a];case 2:return[a,r,c];case 3:return[a,l,r];case 4:return[c,a,r];case 5:return[r,a,l]}};s.hsv.hsl=function(t){const n=t[0];const e=t[1]/100;const r=t[2]/100;const o=Math.max(r,.01);let s;let a;a=(2-e)*r;const l=(2-e)*o;s=e*o;s/=l<=1?l:2-l;s=s||0;a/=2;return[n,s*100,a*100]};s.hwb.rgb=function(t){const n=t[0]/360;let e=t[1]/100;let r=t[2]/100;const o=e+r;let s;if(o>1){e/=o;r/=o}const a=Math.floor(6*n);const l=1-r;s=6*n-a;if((a&1)!==0){s=1-s}const c=e+s*(l-e);let i;let h;let u;switch(a){default:case 6:case 0:i=l;h=c;u=e;break;case 1:i=c;h=l;u=e;break;case 2:i=e;h=l;u=c;break;case 3:i=e;h=c;u=l;break;case 4:i=c;h=e;u=l;break;case 5:i=l;h=e;u=c;break}return[i*255,h*255,u*255]};s.cmyk.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;const o=t[3]/100;const s=1-Math.min(1,n*(1-o)+o);const a=1-Math.min(1,e*(1-o)+o);const l=1-Math.min(1,r*(1-o)+o);return[s*255,a*255,l*255]};s.xyz.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;let o;let s;let a;o=n*3.2406+e*-1.5372+r*-.4986;s=n*-.9689+e*1.8758+r*.0415;a=n*.0557+e*-.204+r*1.057;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92;o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);a=Math.min(Math.max(0,a),1);return[o*255,s*255,a*255]};s.xyz.lab=function(t){let n=t[0];let e=t[1];let r=t[2];n/=95.047;e/=100;r/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;e=e>.008856?e**(1/3):7.787*e+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*e-16;const s=500*(n-e);const a=200*(e-r);return[o,s,a]};s.lab.xyz=function(t){const n=t[0];const e=t[1];const r=t[2];let o;let s;let a;s=(n+16)/116;o=e/500+s;a=s-r/200;const l=s**3;const c=o**3;const i=a**3;s=l>.008856?l:(s-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;a=i>.008856?i:(a-16/116)/7.787;o*=95.047;s*=100;a*=108.883;return[o,s,a]};s.lab.lch=function(t){const n=t[0];const e=t[1];const r=t[2];let o;const s=Math.atan2(r,e);o=s*360/2/Math.PI;if(o<0){o+=360}const a=Math.sqrt(e*e+r*r);return[n,a,o]};s.lch.lab=function(t){const n=t[0];const e=t[1];const r=t[2];const o=r/360*2*Math.PI;const s=e*Math.cos(o);const a=e*Math.sin(o);return[n,s,a]};s.rgb.ansi16=function(t,n=null){const[e,r,o]=t;let a=n===null?s.rgb.hsv(t)[2]:n;a=Math.round(a/50);if(a===0){return 30}let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(e/255));if(a===2){l+=60}return l};s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])};s.rgb.ansi256=function(t){const n=t[0];const e=t[1];const r=t[2];if(n===e&&e===r){if(n<8){return 16}if(n>248){return 231}return Math.round((n-8)/247*24)+232}const o=16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5);return o};s.ansi16.rgb=function(t){let n=t%10;if(n===0||n===7){if(t>50){n+=3.5}n=n/10.5*255;return[n,n,n]}const e=(~~(t>50)+1)*.5;const r=(n&1)*e*255;const o=(n>>1&1)*e*255;const s=(n>>2&1)*e*255;return[r,o,s]};s.ansi256.rgb=function(t){if(t>=232){const n=(t-232)*10+8;return[n,n,n]}t-=16;let n;const e=Math.floor(t/36)/5*255;const r=Math.floor((n=t%36)/6)/5*255;const o=n%6/5*255;return[e,r,o]};s.rgb.hex=function(t){const n=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const e=n.toString(16).toUpperCase();return"000000".substring(e.length)+e};s.hex.rgb=function(t){const n=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n){return[0,0,0]}let e=n[0];if(n[0].length===3){e=e.split("").map((t=>t+t)).join("")}const r=parseInt(e,16);const o=r>>16&255;const s=r>>8&255;const a=r&255;return[o,s,a]};s.rgb.hcg=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.max(Math.max(n,e),r);const s=Math.min(Math.min(n,e),r);const a=o-s;let l;let c;if(a<1){l=s/(1-a)}else{l=0}if(a<=0){c=0}else if(o===n){c=(e-r)/a%6}else if(o===e){c=2+(r-n)/a}else{c=4+(n-e)/a}c/=6;c%=1;return[c*360,a*100,l*100]};s.hsl.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=e<.5?2*n*e:2*n*(1-e);let o=0;if(r<1){o=(e-.5*r)/(1-r)}return[t[0],r*100,o*100]};s.hsv.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=n*e;let o=0;if(r<1){o=(e-r)/(1-r)}return[t[0],r*100,o*100]};s.hcg.rgb=function(t){const n=t[0]/360;const e=t[1]/100;const r=t[2]/100;if(e===0){return[r*255,r*255,r*255]}const o=[0,0,0];const s=n%1*6;const a=s%1;const l=1-a;let c=0;switch(Math.floor(s)){case 0:o[0]=1;o[1]=a;o[2]=0;break;case 1:o[0]=l;o[1]=1;o[2]=0;break;case 2:o[0]=0;o[1]=1;o[2]=a;break;case 3:o[0]=0;o[1]=l;o[2]=1;break;case 4:o[0]=a;o[1]=0;o[2]=1;break;default:o[0]=1;o[1]=0;o[2]=l}c=(1-e)*r;return[(e*o[0]+c)*255,(e*o[1]+c)*255,(e*o[2]+c)*255]};s.hcg.hsv=function(t){const n=t[1]/100;const e=t[2]/100;const r=n+e*(1-n);let o=0;if(r>0){o=n/r}return[t[0],o*100,r*100]};s.hcg.hsl=function(t){const n=t[1]/100;const e=t[2]/100;const r=e*(1-n)+.5*n;let o=0;if(r>0&&r<.5){o=n/(2*r)}else if(r>=.5&&r<1){o=n/(2*(1-r))}return[t[0],o*100,r*100]};s.hcg.hwb=function(t){const n=t[1]/100;const e=t[2]/100;const r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};s.hwb.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=1-e;const o=r-n;let s=0;if(o<1){s=(r-o)/(1-o)}return[t[0],o*100,s*100]};s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};s.gray.hsl=function(t){return[0,0,t[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(t){return[0,100,t[0]]};s.gray.cmyk=function(t){return[0,0,0,t[0]]};s.gray.lab=function(t){return[t[0],0,0]};s.gray.hex=function(t){const n=Math.round(t[0]/100*255)&255;const e=(n<<16)+(n<<8)+n;const r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(t){const n=(t[0]+t[1]+t[2])/3;return[n/255*100]}},808:function(t,n,e){const r=e(348);const o=e(682);const s={};const a=Object.keys(r);function wrapRaw(t){const wrappedFn=function(...n){const e=n[0];if(e===undefined||e===null){return e}if(e.length>1){n=e}return t(n)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){const wrappedFn=function(...n){const e=n[0];if(e===undefined||e===null){return e}if(e.length>1){n=e}const r=t(n);if(typeof r==="object"){for(let t=r.length,n=0;n<t;n++){r[n]=Math.round(r[n])}}return r};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}a.forEach((t=>{s[t]={};Object.defineProperty(s[t],"channels",{value:r[t].channels});Object.defineProperty(s[t],"labels",{value:r[t].labels});const n=o(t);const e=Object.keys(n);e.forEach((e=>{const r=n[e];s[t][e]=wrapRounded(r);s[t][e].raw=wrapRaw(r)}))}));t.exports=s},682:function(t,n,e){const r=e(348);function buildGraph(){const t={};const n=Object.keys(r);for(let e=n.length,r=0;r<e;r++){t[n[r]]={distance:-1,parent:null}}return t}function deriveBFS(t){const n=buildGraph();const e=[t];n[t].distance=0;while(e.length){const t=e.pop();const o=Object.keys(r[t]);for(let r=o.length,s=0;s<r;s++){const r=o[s];const a=n[r];if(a.distance===-1){a.distance=n[t].distance+1;a.parent=t;e.unshift(r)}}}return n}function link(t,n){return function(e){return n(t(e))}}function wrapConversion(t,n){const e=[n[t].parent,t];let o=r[n[t].parent][t];let s=n[t].parent;while(n[s].parent){e.unshift(n[s].parent);o=link(r[n[s].parent][s],o);s=n[s].parent}o.conversion=e;return o}t.exports=function(t){const n=deriveBFS(t);const e={};const r=Object.keys(n);for(let t=r.length,o=0;o<t;o++){const t=r[o];const s=n[t];if(s.parent===null){continue}e[t]=wrapConversion(t,n)}return e}},702:function(t){"use strict";t.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]}},49:function(t,n,e){var r=e(702);var o=e(534);var s={};for(var a in r){if(r.hasOwnProperty(a)){s[r[a]]=a}}var l=t.exports={to:{},get:{}};l.get=function(t){var n=t.substring(0,3).toLowerCase();var e;var r;switch(n){case"hsl":e=l.get.hsl(t);r="hsl";break;case"hwb":e=l.get.hwb(t);r="hwb";break;default:e=l.get.rgb(t);r="rgb";break}if(!e){return null}return{model:r,value:e}};l.get.rgb=function(t){if(!t){return null}var n=/^#([a-f0-9]{3,4})$/i;var e=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;var o=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;var s=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;var a=/(\D+)/;var l=[0,0,0,1];var c;var i;var h;if(c=t.match(e)){h=c[2];c=c[1];for(i=0;i<3;i++){var u=i*2;l[i]=parseInt(c.slice(u,u+2),16)}if(h){l[3]=parseInt(h,16)/255}}else if(c=t.match(n)){c=c[1];h=c[3];for(i=0;i<3;i++){l[i]=parseInt(c[i]+c[i],16)}if(h){l[3]=parseInt(h+h,16)/255}}else if(c=t.match(o)){for(i=0;i<3;i++){l[i]=parseInt(c[i+1],0)}if(c[4]){l[3]=parseFloat(c[4])}}else if(c=t.match(s)){for(i=0;i<3;i++){l[i]=Math.round(parseFloat(c[i+1])*2.55)}if(c[4]){l[3]=parseFloat(c[4])}}else if(c=t.match(a)){if(c[1]==="transparent"){return[0,0,0,0]}l=r[c[1]];if(!l){return null}l[3]=1;return l}else{return null}for(i=0;i<3;i++){l[i]=clamp(l[i],0,255)}l[3]=clamp(l[3],0,1);return l};l.get.hsl=function(t){if(!t){return null}var n=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?[\d\.]+)\s*)?\)$/;var e=t.match(n);if(e){var r=parseFloat(e[4]);var o=(parseFloat(e[1])+360)%360;var s=clamp(parseFloat(e[2]),0,100);var a=clamp(parseFloat(e[3]),0,100);var l=clamp(isNaN(r)?1:r,0,1);return[o,s,a,l]}return null};l.get.hwb=function(t){if(!t){return null}var n=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;var e=t.match(n);if(e){var r=parseFloat(e[4]);var o=(parseFloat(e[1])%360+360)%360;var s=clamp(parseFloat(e[2]),0,100);var a=clamp(parseFloat(e[3]),0,100);var l=clamp(isNaN(r)?1:r,0,1);return[o,s,a,l]}return null};l.to.hex=function(){var t=o(arguments);return"#"+hexDouble(t[0])+hexDouble(t[1])+hexDouble(t[2])+(t[3]<1?hexDouble(Math.round(t[3]*255)):"")};l.to.rgb=function(){var t=o(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};l.to.rgb.percent=function(){var t=o(arguments);var n=Math.round(t[0]/255*100);var e=Math.round(t[1]/255*100);var r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};l.to.hsl=function(){var t=o(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};l.to.hwb=function(){var t=o(arguments);var n="";if(t.length>=4&&t[3]!==1){n=", "+t[3]}return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};l.to.keyword=function(t){return s[t.slice(0,3)]};function clamp(t,n,e){return Math.min(Math.max(n,t),e)}function hexDouble(t){var n=t.toString(16).toUpperCase();return n.length<2?"0"+n:n}},990:function(t,n,e){const r=e(49);const o=e(808);const s=[].slice;const a=["keyword","gray","hex"];const l={};for(const t of Object.keys(o)){l[s.call(o[t].labels).sort().join("")]=t}const c={};function Color(t,n){if(!(this instanceof Color)){return new Color(t,n)}if(n&&n in a){n=null}if(n&&!(n in o)){throw new Error("Unknown model: "+n)}let e;let i;if(t==null){this.model="rgb";this.color=[0,0,0];this.valpha=1}else if(t instanceof Color){this.model=t.model;this.color=t.color.slice();this.valpha=t.valpha}else if(typeof t==="string"){const n=r.get(t);if(n===null){throw new Error("Unable to parse color from string: "+t)}this.model=n.model;i=o[this.model].channels;this.color=n.value.slice(0,i);this.valpha=typeof n.value[i]==="number"?n.value[i]:1}else if(t.length>0){this.model=n||"rgb";i=o[this.model].channels;const e=s.call(t,0,i);this.color=zeroArray(e,i);this.valpha=typeof t[i]==="number"?t[i]:1}else if(typeof t==="number"){this.model="rgb";this.color=[t>>16&255,t>>8&255,t&255];this.valpha=1}else{this.valpha=1;const n=Object.keys(t);if("alpha"in t){n.splice(n.indexOf("alpha"),1);this.valpha=typeof t.alpha==="number"?t.alpha:0}const r=n.sort().join("");if(!(r in l)){throw new Error("Unable to parse color from object: "+JSON.stringify(t))}this.model=l[r];const s=o[this.model].labels;const a=[];for(e=0;e<s.length;e++){a.push(t[s[e]])}this.color=zeroArray(a)}if(c[this.model]){i=o[this.model].channels;for(e=0;e<i;e++){const t=c[this.model][e];if(t){this.color[e]=t(this.color[e])}}}this.valpha=Math.max(0,Math.min(1,this.valpha));if(Object.freeze){Object.freeze(this)}}Color.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let n=this.model in r.to?this:this.rgb();n=n.round(typeof t==="number"?t:1);const e=n.valpha===1?n.color:n.color.concat(this.valpha);return r.to[n.model](e)},percentString(t){const n=this.rgb().round(typeof t==="number"?t:1);const e=n.valpha===1?n.color:n.color.concat(this.valpha);return r.to.rgb.percent(e)},array(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object(){const t={};const n=o[this.model].channels;const e=o[this.model].labels;for(let r=0;r<n;r++){t[e[r]]=this.color[r]}if(this.valpha!==1){t.alpha=this.valpha}return t},unitArray(){const t=this.rgb().color;t[0]/=255;t[1]/=255;t[2]/=255;if(this.valpha!==1){t.push(this.valpha)}return t},unitObject(){const t=this.rgb().object();t.r/=255;t.g/=255;t.b/=255;if(this.valpha!==1){t.alpha=this.valpha}return t},round(t){t=Math.max(t||0,0);return new Color(this.color.map(roundToPlace(t)).concat(this.valpha),this.model)},alpha(t){if(arguments.length>0){return new Color(this.color.concat(Math.max(0,Math.min(1,t))),this.model)}return this.valpha},red:getset("rgb",0,maxfn(255)),green:getset("rgb",1,maxfn(255)),blue:getset("rgb",2,maxfn(255)),hue:getset(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:getset("hsl",1,maxfn(100)),lightness:getset("hsl",2,maxfn(100)),saturationv:getset("hsv",1,maxfn(100)),value:getset("hsv",2,maxfn(100)),chroma:getset("hcg",1,maxfn(100)),gray:getset("hcg",2,maxfn(100)),white:getset("hwb",1,maxfn(100)),wblack:getset("hwb",2,maxfn(100)),cyan:getset("cmyk",0,maxfn(100)),magenta:getset("cmyk",1,maxfn(100)),yellow:getset("cmyk",2,maxfn(100)),black:getset("cmyk",3,maxfn(100)),x:getset("xyz",0,maxfn(100)),y:getset("xyz",1,maxfn(100)),z:getset("xyz",2,maxfn(100)),l:getset("lab",0,maxfn(100)),a:getset("lab",1),b:getset("lab",2),keyword(t){if(arguments.length>0){return new Color(t)}return o[this.model].keyword(this.color)},hex(t){if(arguments.length>0){return new Color(t)}return r.to.hex(this.rgb().round().color)},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color;const n=[];for(const[e,r]of t.entries()){const t=r/255;n[e]=t<=.03928?t/12.92:((t+.055)/1.055)**2.4}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){const n=this.luminosity();const e=t.luminosity();if(n>e){return(n+.05)/(e+.05)}return(e+.05)/(n+.05)},level(t){const n=this.contrast(t);if(n>=7.1){return"AAA"}return n>=4.5?"AA":""},isDark(){const t=this.rgb().color;const n=(t[0]*299+t[1]*587+t[2]*114)/1e3;return n<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let n=0;n<3;n++){t.color[n]=255-t.color[n]}return t},lighten(t){const n=this.hsl();n.color[2]+=n.color[2]*t;return n},darken(t){const n=this.hsl();n.color[2]-=n.color[2]*t;return n},saturate(t){const n=this.hsl();n.color[1]+=n.color[1]*t;return n},desaturate(t){const n=this.hsl();n.color[1]-=n.color[1]*t;return n},whiten(t){const n=this.hwb();n.color[1]+=n.color[1]*t;return n},blacken(t){const n=this.hwb();n.color[2]+=n.color[2]*t;return n},grayscale(){const t=this.rgb().color;const n=t[0]*.3+t[1]*.59+t[2]*.11;return Color.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const n=this.hsl();let e=n.color[0];e=(e+t)%360;e=e<0?360+e:e;n.color[0]=e;return n},mix(t,n){if(!t||!t.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t)}const e=t.rgb();const r=this.rgb();const o=n===undefined?.5:n;const s=2*o-1;const a=e.alpha()-r.alpha();const l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2;const c=1-l;return Color.rgb(l*e.red()+c*r.red(),l*e.green()+c*r.green(),l*e.blue()+c*r.blue(),e.alpha()*o+r.alpha()*(1-o))}};for(const t of Object.keys(o)){if(a.includes(t)){continue}const n=o[t].channels;Color.prototype[t]=function(){if(this.model===t){return new Color(this)}if(arguments.length>0){return new Color(arguments,t)}const e=typeof arguments[n]==="number"?n:this.valpha;return new Color(assertArray(o[this.model][t].raw(this.color)).concat(e),t)};Color[t]=function(e){if(typeof e==="number"){e=zeroArray(s.call(arguments),n)}return new Color(e,t)}}function roundTo(t,n){return Number(t.toFixed(n))}function roundToPlace(t){return function(n){return roundTo(n,t)}}function getset(t,n,e){t=Array.isArray(t)?t:[t];for(const r of t){(c[r]||(c[r]=[]))[n]=e}t=t[0];return function(r){let o;if(arguments.length>0){if(e){r=e(r)}o=this[t]();o.color[n]=r;return o}o=this[t]().color[n];if(e){o=e(o)}return o}}function maxfn(t){return function(n){return Math.max(0,Math.min(t,n))}}function assertArray(t){return Array.isArray(t)?t:[t]}function zeroArray(t,n){for(let e=0;e<n;e++){if(typeof t[e]!=="number"){t[e]=0}}return t}t.exports=Color},503:function(t){t.exports=function isArrayish(t){if(!t||typeof t==="string"){return false}return t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}},534:function(t,n,e){"use strict";var r=e(503);var o=Array.prototype.concat;var s=Array.prototype.slice;var a=t.exports=function swizzle(t){var n=[];for(var e=0,a=t.length;e<a;e++){var l=t[e];if(r(l)){n=o.call(n,s.call(l))}else{n.push(l)}}return n};a.wrap=function(t){return function(){return t(a(arguments))}}}};var n={};function __nccwpck_require__(e){var r=n[e];if(r!==undefined){return r.exports}var o=n[e]={exports:{}};var s=true;try{t[e](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete n[e]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var e=__nccwpck_require__(990);module.exports=e})();
|
|
1
|
+
(function(){var t={928:function(t,n,e){const r=e(91);const o={};for(const t of Object.keys(r)){o[r[t]]=t}const s={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"]}};t.exports=s;for(const t of Object.keys(s)){if(!("channels"in s[t])){throw new Error("missing channels property: "+t)}if(!("labels"in s[t])){throw new Error("missing channel labels property: "+t)}if(s[t].labels.length!==s[t].channels){throw new Error("channel and label counts mismatch: "+t)}const{channels:n,labels:e}=s[t];delete s[t].channels;delete s[t].labels;Object.defineProperty(s[t],"channels",{value:n});Object.defineProperty(s[t],"labels",{value:e})}s.rgb.hsl=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.min(n,e,r);const s=Math.max(n,e,r);const a=s-o;let l;let c;if(s===o){l=0}else if(n===s){l=(e-r)/a}else if(e===s){l=2+(r-n)/a}else if(r===s){l=4+(n-e)/a}l=Math.min(l*60,360);if(l<0){l+=360}const i=(o+s)/2;if(s===o){c=0}else if(i<=.5){c=a/(s+o)}else{c=a/(2-s-o)}return[l,c*100,i*100]};s.rgb.hsv=function(t){let n;let e;let r;let o;let s;const a=t[0]/255;const l=t[1]/255;const c=t[2]/255;const i=Math.max(a,l,c);const h=i-Math.min(a,l,c);const diffc=function(t){return(i-t)/6/h+1/2};if(h===0){o=0;s=0}else{s=h/i;n=diffc(a);e=diffc(l);r=diffc(c);if(a===i){o=r-e}else if(l===i){o=1/3+n-r}else if(c===i){o=2/3+e-n}if(o<0){o+=1}else if(o>1){o-=1}}return[o*360,s*100,i*100]};s.rgb.hwb=function(t){const n=t[0];const e=t[1];let r=t[2];const o=s.rgb.hsl(t)[0];const a=1/255*Math.min(n,Math.min(e,r));r=1-1/255*Math.max(n,Math.max(e,r));return[o,a*100,r*100]};s.rgb.cmyk=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.min(1-n,1-e,1-r);const s=(1-n-o)/(1-o)||0;const a=(1-e-o)/(1-o)||0;const l=(1-r-o)/(1-o)||0;return[s*100,a*100,l*100,o*100]};function comparativeDistance(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}s.rgb.keyword=function(t){const n=o[t];if(n){return n}let e=Infinity;let s;for(const n of Object.keys(r)){const o=r[n];const a=comparativeDistance(t,o);if(a<e){e=a;s=n}}return s};s.keyword.rgb=function(t){return r[t]};s.rgb.xyz=function(t){let n=t[0]/255;let e=t[1]/255;let r=t[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=n*.4124+e*.3576+r*.1805;const s=n*.2126+e*.7152+r*.0722;const a=n*.0193+e*.1192+r*.9505;return[o*100,s*100,a*100]};s.rgb.lab=function(t){const n=s.rgb.xyz(t);let e=n[0];let r=n[1];let o=n[2];e/=95.047;r/=100;o/=108.883;e=e>.008856?e**(1/3):7.787*e+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16;const l=500*(e-r);const c=200*(r-o);return[a,l,c]};s.hsl.rgb=function(t){const n=t[0]/360;const e=t[1]/100;const r=t[2]/100;let o;let s;let a;if(e===0){a=r*255;return[a,a,a]}if(r<.5){o=r*(1+e)}else{o=r+e-r*e}const l=2*r-o;const c=[0,0,0];for(let t=0;t<3;t++){s=n+1/3*-(t-1);if(s<0){s++}if(s>1){s--}if(6*s<1){a=l+(o-l)*6*s}else if(2*s<1){a=o}else if(3*s<2){a=l+(o-l)*(2/3-s)*6}else{a=l}c[t]=a*255}return c};s.hsl.hsv=function(t){const n=t[0];let e=t[1]/100;let r=t[2]/100;let o=e;const s=Math.max(r,.01);r*=2;e*=r<=1?r:2-r;o*=s<=1?s:2-s;const a=(r+e)/2;const l=r===0?2*o/(s+o):2*e/(r+e);return[n,l*100,a*100]};s.hsv.rgb=function(t){const n=t[0]/60;const e=t[1]/100;let r=t[2]/100;const o=Math.floor(n)%6;const s=n-Math.floor(n);const a=255*r*(1-e);const l=255*r*(1-e*s);const c=255*r*(1-e*(1-s));r*=255;switch(o){case 0:return[r,c,a];case 1:return[l,r,a];case 2:return[a,r,c];case 3:return[a,l,r];case 4:return[c,a,r];case 5:return[r,a,l]}};s.hsv.hsl=function(t){const n=t[0];const e=t[1]/100;const r=t[2]/100;const o=Math.max(r,.01);let s;let a;a=(2-e)*r;const l=(2-e)*o;s=e*o;s/=l<=1?l:2-l;s=s||0;a/=2;return[n,s*100,a*100]};s.hwb.rgb=function(t){const n=t[0]/360;let e=t[1]/100;let r=t[2]/100;const o=e+r;let s;if(o>1){e/=o;r/=o}const a=Math.floor(6*n);const l=1-r;s=6*n-a;if((a&1)!==0){s=1-s}const c=e+s*(l-e);let i;let h;let u;switch(a){default:case 6:case 0:i=l;h=c;u=e;break;case 1:i=c;h=l;u=e;break;case 2:i=e;h=l;u=c;break;case 3:i=e;h=c;u=l;break;case 4:i=c;h=e;u=l;break;case 5:i=l;h=e;u=c;break}return[i*255,h*255,u*255]};s.cmyk.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;const o=t[3]/100;const s=1-Math.min(1,n*(1-o)+o);const a=1-Math.min(1,e*(1-o)+o);const l=1-Math.min(1,r*(1-o)+o);return[s*255,a*255,l*255]};s.xyz.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;let o;let s;let a;o=n*3.2406+e*-1.5372+r*-.4986;s=n*-.9689+e*1.8758+r*.0415;a=n*.0557+e*-.204+r*1.057;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92;o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);a=Math.min(Math.max(0,a),1);return[o*255,s*255,a*255]};s.xyz.lab=function(t){let n=t[0];let e=t[1];let r=t[2];n/=95.047;e/=100;r/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;e=e>.008856?e**(1/3):7.787*e+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*e-16;const s=500*(n-e);const a=200*(e-r);return[o,s,a]};s.lab.xyz=function(t){const n=t[0];const e=t[1];const r=t[2];let o;let s;let a;s=(n+16)/116;o=e/500+s;a=s-r/200;const l=s**3;const c=o**3;const i=a**3;s=l>.008856?l:(s-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;a=i>.008856?i:(a-16/116)/7.787;o*=95.047;s*=100;a*=108.883;return[o,s,a]};s.lab.lch=function(t){const n=t[0];const e=t[1];const r=t[2];let o;const s=Math.atan2(r,e);o=s*360/2/Math.PI;if(o<0){o+=360}const a=Math.sqrt(e*e+r*r);return[n,a,o]};s.lch.lab=function(t){const n=t[0];const e=t[1];const r=t[2];const o=r/360*2*Math.PI;const s=e*Math.cos(o);const a=e*Math.sin(o);return[n,s,a]};s.rgb.ansi16=function(t,n=null){const[e,r,o]=t;let a=n===null?s.rgb.hsv(t)[2]:n;a=Math.round(a/50);if(a===0){return 30}let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(e/255));if(a===2){l+=60}return l};s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])};s.rgb.ansi256=function(t){const n=t[0];const e=t[1];const r=t[2];if(n===e&&e===r){if(n<8){return 16}if(n>248){return 231}return Math.round((n-8)/247*24)+232}const o=16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5);return o};s.ansi16.rgb=function(t){let n=t%10;if(n===0||n===7){if(t>50){n+=3.5}n=n/10.5*255;return[n,n,n]}const e=(~~(t>50)+1)*.5;const r=(n&1)*e*255;const o=(n>>1&1)*e*255;const s=(n>>2&1)*e*255;return[r,o,s]};s.ansi256.rgb=function(t){if(t>=232){const n=(t-232)*10+8;return[n,n,n]}t-=16;let n;const e=Math.floor(t/36)/5*255;const r=Math.floor((n=t%36)/6)/5*255;const o=n%6/5*255;return[e,r,o]};s.rgb.hex=function(t){const n=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const e=n.toString(16).toUpperCase();return"000000".substring(e.length)+e};s.hex.rgb=function(t){const n=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n){return[0,0,0]}let e=n[0];if(n[0].length===3){e=e.split("").map((t=>t+t)).join("")}const r=parseInt(e,16);const o=r>>16&255;const s=r>>8&255;const a=r&255;return[o,s,a]};s.rgb.hcg=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.max(Math.max(n,e),r);const s=Math.min(Math.min(n,e),r);const a=o-s;let l;let c;if(a<1){l=s/(1-a)}else{l=0}if(a<=0){c=0}else if(o===n){c=(e-r)/a%6}else if(o===e){c=2+(r-n)/a}else{c=4+(n-e)/a}c/=6;c%=1;return[c*360,a*100,l*100]};s.hsl.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=e<.5?2*n*e:2*n*(1-e);let o=0;if(r<1){o=(e-.5*r)/(1-r)}return[t[0],r*100,o*100]};s.hsv.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=n*e;let o=0;if(r<1){o=(e-r)/(1-r)}return[t[0],r*100,o*100]};s.hcg.rgb=function(t){const n=t[0]/360;const e=t[1]/100;const r=t[2]/100;if(e===0){return[r*255,r*255,r*255]}const o=[0,0,0];const s=n%1*6;const a=s%1;const l=1-a;let c=0;switch(Math.floor(s)){case 0:o[0]=1;o[1]=a;o[2]=0;break;case 1:o[0]=l;o[1]=1;o[2]=0;break;case 2:o[0]=0;o[1]=1;o[2]=a;break;case 3:o[0]=0;o[1]=l;o[2]=1;break;case 4:o[0]=a;o[1]=0;o[2]=1;break;default:o[0]=1;o[1]=0;o[2]=l}c=(1-e)*r;return[(e*o[0]+c)*255,(e*o[1]+c)*255,(e*o[2]+c)*255]};s.hcg.hsv=function(t){const n=t[1]/100;const e=t[2]/100;const r=n+e*(1-n);let o=0;if(r>0){o=n/r}return[t[0],o*100,r*100]};s.hcg.hsl=function(t){const n=t[1]/100;const e=t[2]/100;const r=e*(1-n)+.5*n;let o=0;if(r>0&&r<.5){o=n/(2*r)}else if(r>=.5&&r<1){o=n/(2*(1-r))}return[t[0],o*100,r*100]};s.hcg.hwb=function(t){const n=t[1]/100;const e=t[2]/100;const r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};s.hwb.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=1-e;const o=r-n;let s=0;if(o<1){s=(r-o)/(1-o)}return[t[0],o*100,s*100]};s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};s.gray.hsl=function(t){return[0,0,t[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(t){return[0,100,t[0]]};s.gray.cmyk=function(t){return[0,0,0,t[0]]};s.gray.lab=function(t){return[t[0],0,0]};s.gray.hex=function(t){const n=Math.round(t[0]/100*255)&255;const e=(n<<16)+(n<<8)+n;const r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(t){const n=(t[0]+t[1]+t[2])/3;return[n/255*100]}},501:function(t,n,e){const r=e(928);const o=e(914);const s={};const a=Object.keys(r);function wrapRaw(t){const wrappedFn=function(...n){const e=n[0];if(e===undefined||e===null){return e}if(e.length>1){n=e}return t(n)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){const wrappedFn=function(...n){const e=n[0];if(e===undefined||e===null){return e}if(e.length>1){n=e}const r=t(n);if(typeof r==="object"){for(let t=r.length,n=0;n<t;n++){r[n]=Math.round(r[n])}}return r};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}a.forEach((t=>{s[t]={};Object.defineProperty(s[t],"channels",{value:r[t].channels});Object.defineProperty(s[t],"labels",{value:r[t].labels});const n=o(t);const e=Object.keys(n);e.forEach((e=>{const r=n[e];s[t][e]=wrapRounded(r);s[t][e].raw=wrapRaw(r)}))}));t.exports=s},914:function(t,n,e){const r=e(928);function buildGraph(){const t={};const n=Object.keys(r);for(let e=n.length,r=0;r<e;r++){t[n[r]]={distance:-1,parent:null}}return t}function deriveBFS(t){const n=buildGraph();const e=[t];n[t].distance=0;while(e.length){const t=e.pop();const o=Object.keys(r[t]);for(let r=o.length,s=0;s<r;s++){const r=o[s];const a=n[r];if(a.distance===-1){a.distance=n[t].distance+1;a.parent=t;e.unshift(r)}}}return n}function link(t,n){return function(e){return n(t(e))}}function wrapConversion(t,n){const e=[n[t].parent,t];let o=r[n[t].parent][t];let s=n[t].parent;while(n[s].parent){e.unshift(n[s].parent);o=link(r[n[s].parent][s],o);s=n[s].parent}o.conversion=e;return o}t.exports=function(t){const n=deriveBFS(t);const e={};const r=Object.keys(n);for(let t=r.length,o=0;o<t;o++){const t=r[o];const s=n[t];if(s.parent===null){continue}e[t]=wrapConversion(t,n)}return e}},91:function(t){"use strict";t.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]}},531:function(t,n,e){var r=e(91);var o=e(690);var s=Object.hasOwnProperty;var a={};for(var l in r){if(s.call(r,l)){a[r[l]]=l}}var c=t.exports={to:{},get:{}};c.get=function(t){var n=t.substring(0,3).toLowerCase();var e;var r;switch(n){case"hsl":e=c.get.hsl(t);r="hsl";break;case"hwb":e=c.get.hwb(t);r="hwb";break;default:e=c.get.rgb(t);r="rgb";break}if(!e){return null}return{model:r,value:e}};c.get.rgb=function(t){if(!t){return null}var n=/^#([a-f0-9]{3,4})$/i;var e=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;var o=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var l=/^(\w+)$/;var c=[0,0,0,1];var i;var h;var u;if(i=t.match(e)){u=i[2];i=i[1];for(h=0;h<3;h++){var f=h*2;c[h]=parseInt(i.slice(f,f+2),16)}if(u){c[3]=parseInt(u,16)/255}}else if(i=t.match(n)){i=i[1];u=i[3];for(h=0;h<3;h++){c[h]=parseInt(i[h]+i[h],16)}if(u){c[3]=parseInt(u+u,16)/255}}else if(i=t.match(o)){for(h=0;h<3;h++){c[h]=parseInt(i[h+1],0)}if(i[4]){if(i[5]){c[3]=parseFloat(i[4])*.01}else{c[3]=parseFloat(i[4])}}}else if(i=t.match(a)){for(h=0;h<3;h++){c[h]=Math.round(parseFloat(i[h+1])*2.55)}if(i[4]){if(i[5]){c[3]=parseFloat(i[4])*.01}else{c[3]=parseFloat(i[4])}}}else if(i=t.match(l)){if(i[1]==="transparent"){return[0,0,0,0]}if(!s.call(r,i[1])){return null}c=r[i[1]];c[3]=1;return c}else{return null}for(h=0;h<3;h++){c[h]=clamp(c[h],0,255)}c[3]=clamp(c[3],0,1);return c};c.get.hsl=function(t){if(!t){return null}var n=/^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*)?\)$/;var e=t.match(n);if(e){var r=parseFloat(e[4]);var o=(parseFloat(e[1])%360+360)%360;var s=clamp(parseFloat(e[2]),0,100);var a=clamp(parseFloat(e[3]),0,100);var l=clamp(isNaN(r)?1:r,0,1);return[o,s,a,l]}return null};c.get.hwb=function(t){if(!t){return null}var n=/^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*)?\)$/;var e=t.match(n);if(e){var r=parseFloat(e[4]);var o=(parseFloat(e[1])%360+360)%360;var s=clamp(parseFloat(e[2]),0,100);var a=clamp(parseFloat(e[3]),0,100);var l=clamp(isNaN(r)?1:r,0,1);return[o,s,a,l]}return null};c.to.hex=function(){var t=o(arguments);return"#"+hexDouble(t[0])+hexDouble(t[1])+hexDouble(t[2])+(t[3]<1?hexDouble(Math.round(t[3]*255)):"")};c.to.rgb=function(){var t=o(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};c.to.rgb.percent=function(){var t=o(arguments);var n=Math.round(t[0]/255*100);var e=Math.round(t[1]/255*100);var r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};c.to.hsl=function(){var t=o(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};c.to.hwb=function(){var t=o(arguments);var n="";if(t.length>=4&&t[3]!==1){n=", "+t[3]}return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};c.to.keyword=function(t){return a[t.slice(0,3)]};function clamp(t,n,e){return Math.min(Math.max(n,t),e)}function hexDouble(t){var n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}},116:function(t,n,e){const r=e(531);const o=e(501);const s=[].slice;const a=["keyword","gray","hex"];const l={};for(const t of Object.keys(o)){l[s.call(o[t].labels).sort().join("")]=t}const c={};function Color(t,n){if(!(this instanceof Color)){return new Color(t,n)}if(n&&n in a){n=null}if(n&&!(n in o)){throw new Error("Unknown model: "+n)}let e;let i;if(t==null){this.model="rgb";this.color=[0,0,0];this.valpha=1}else if(t instanceof Color){this.model=t.model;this.color=t.color.slice();this.valpha=t.valpha}else if(typeof t==="string"){const n=r.get(t);if(n===null){throw new Error("Unable to parse color from string: "+t)}this.model=n.model;i=o[this.model].channels;this.color=n.value.slice(0,i);this.valpha=typeof n.value[i]==="number"?n.value[i]:1}else if(t.length>0){this.model=n||"rgb";i=o[this.model].channels;const e=s.call(t,0,i);this.color=zeroArray(e,i);this.valpha=typeof t[i]==="number"?t[i]:1}else if(typeof t==="number"){this.model="rgb";this.color=[t>>16&255,t>>8&255,t&255];this.valpha=1}else{this.valpha=1;const n=Object.keys(t);if("alpha"in t){n.splice(n.indexOf("alpha"),1);this.valpha=typeof t.alpha==="number"?t.alpha:0}const r=n.sort().join("");if(!(r in l)){throw new Error("Unable to parse color from object: "+JSON.stringify(t))}this.model=l[r];const s=o[this.model].labels;const a=[];for(e=0;e<s.length;e++){a.push(t[s[e]])}this.color=zeroArray(a)}if(c[this.model]){i=o[this.model].channels;for(e=0;e<i;e++){const t=c[this.model][e];if(t){this.color[e]=t(this.color[e])}}}this.valpha=Math.max(0,Math.min(1,this.valpha));if(Object.freeze){Object.freeze(this)}}Color.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let n=this.model in r.to?this:this.rgb();n=n.round(typeof t==="number"?t:1);const e=n.valpha===1?n.color:n.color.concat(this.valpha);return r.to[n.model](e)},percentString(t){const n=this.rgb().round(typeof t==="number"?t:1);const e=n.valpha===1?n.color:n.color.concat(this.valpha);return r.to.rgb.percent(e)},array(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object(){const t={};const n=o[this.model].channels;const e=o[this.model].labels;for(let r=0;r<n;r++){t[e[r]]=this.color[r]}if(this.valpha!==1){t.alpha=this.valpha}return t},unitArray(){const t=this.rgb().color;t[0]/=255;t[1]/=255;t[2]/=255;if(this.valpha!==1){t.push(this.valpha)}return t},unitObject(){const t=this.rgb().object();t.r/=255;t.g/=255;t.b/=255;if(this.valpha!==1){t.alpha=this.valpha}return t},round(t){t=Math.max(t||0,0);return new Color(this.color.map(roundToPlace(t)).concat(this.valpha),this.model)},alpha(t){if(arguments.length>0){return new Color(this.color.concat(Math.max(0,Math.min(1,t))),this.model)}return this.valpha},red:getset("rgb",0,maxfn(255)),green:getset("rgb",1,maxfn(255)),blue:getset("rgb",2,maxfn(255)),hue:getset(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:getset("hsl",1,maxfn(100)),lightness:getset("hsl",2,maxfn(100)),saturationv:getset("hsv",1,maxfn(100)),value:getset("hsv",2,maxfn(100)),chroma:getset("hcg",1,maxfn(100)),gray:getset("hcg",2,maxfn(100)),white:getset("hwb",1,maxfn(100)),wblack:getset("hwb",2,maxfn(100)),cyan:getset("cmyk",0,maxfn(100)),magenta:getset("cmyk",1,maxfn(100)),yellow:getset("cmyk",2,maxfn(100)),black:getset("cmyk",3,maxfn(100)),x:getset("xyz",0,maxfn(100)),y:getset("xyz",1,maxfn(100)),z:getset("xyz",2,maxfn(100)),l:getset("lab",0,maxfn(100)),a:getset("lab",1),b:getset("lab",2),keyword(t){if(arguments.length>0){return new Color(t)}return o[this.model].keyword(this.color)},hex(t){if(arguments.length>0){return new Color(t)}return r.to.hex(this.rgb().round().color)},hexa(t){if(arguments.length>0){return new Color(t)}const n=this.rgb().round().color;let e=Math.round(this.valpha*255).toString(16).toUpperCase();if(e.length===1){e="0"+e}return r.to.hex(n)+e},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color;const n=[];for(const[e,r]of t.entries()){const t=r/255;n[e]=t<=.03928?t/12.92:((t+.055)/1.055)**2.4}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){const n=this.luminosity();const e=t.luminosity();if(n>e){return(n+.05)/(e+.05)}return(e+.05)/(n+.05)},level(t){const n=this.contrast(t);if(n>=7.1){return"AAA"}return n>=4.5?"AA":""},isDark(){const t=this.rgb().color;const n=(t[0]*299+t[1]*587+t[2]*114)/1e3;return n<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let n=0;n<3;n++){t.color[n]=255-t.color[n]}return t},lighten(t){const n=this.hsl();n.color[2]+=n.color[2]*t;return n},darken(t){const n=this.hsl();n.color[2]-=n.color[2]*t;return n},saturate(t){const n=this.hsl();n.color[1]+=n.color[1]*t;return n},desaturate(t){const n=this.hsl();n.color[1]-=n.color[1]*t;return n},whiten(t){const n=this.hwb();n.color[1]+=n.color[1]*t;return n},blacken(t){const n=this.hwb();n.color[2]+=n.color[2]*t;return n},grayscale(){const t=this.rgb().color;const n=t[0]*.3+t[1]*.59+t[2]*.11;return Color.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const n=this.hsl();let e=n.color[0];e=(e+t)%360;e=e<0?360+e:e;n.color[0]=e;return n},mix(t,n){if(!t||!t.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t)}const e=t.rgb();const r=this.rgb();const o=n===undefined?.5:n;const s=2*o-1;const a=e.alpha()-r.alpha();const l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2;const c=1-l;return Color.rgb(l*e.red()+c*r.red(),l*e.green()+c*r.green(),l*e.blue()+c*r.blue(),e.alpha()*o+r.alpha()*(1-o))}};for(const t of Object.keys(o)){if(a.includes(t)){continue}const n=o[t].channels;Color.prototype[t]=function(){if(this.model===t){return new Color(this)}if(arguments.length>0){return new Color(arguments,t)}const e=typeof arguments[n]==="number"?n:this.valpha;return new Color(assertArray(o[this.model][t].raw(this.color)).concat(e),t)};Color[t]=function(e){if(typeof e==="number"){e=zeroArray(s.call(arguments),n)}return new Color(e,t)}}function roundTo(t,n){return Number(t.toFixed(n))}function roundToPlace(t){return function(n){return roundTo(n,t)}}function getset(t,n,e){t=Array.isArray(t)?t:[t];for(const r of t){(c[r]||(c[r]=[]))[n]=e}t=t[0];return function(r){let o;if(arguments.length>0){if(e){r=e(r)}o=this[t]();o.color[n]=r;return o}o=this[t]().color[n];if(e){o=e(o)}return o}}function maxfn(t){return function(n){return Math.max(0,Math.min(t,n))}}function assertArray(t){return Array.isArray(t)?t:[t]}function zeroArray(t,n){for(let e=0;e<n;e++){if(typeof t[e]!=="number"){t[e]=0}}return t}t.exports=Color},833:function(t){t.exports=function isArrayish(t){if(!t||typeof t==="string"){return false}return t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}},690:function(t,n,e){"use strict";var r=e(833);var o=Array.prototype.concat;var s=Array.prototype.slice;var a=t.exports=function swizzle(t){var n=[];for(var e=0,a=t.length;e<a;e++){var l=t[e];if(r(l)){n=o.call(n,s.call(l))}else{n.push(l)}}return n};a.wrap=function(t){return function(){return t(a(arguments))}}}};var n={};function __nccwpck_require__(e){var r=n[e];if(r!==undefined){return r.exports}var o=n[e]={exports:{}};var s=true;try{t[e](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete n[e]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var e=__nccwpck_require__(116);module.exports=e})();
|
package/compiled/debug/LICENSE
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
(The MIT License)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>
|
|
3
|
+
Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
|
|
4
|
+
Copyright (c) 2018-2021 Josh Junon
|
|
4
5
|
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
6
|
-
and associated documentation files (the 'Software'), to deal in the Software without restriction,
|
|
7
|
-
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
7
|
+
and associated documentation files (the 'Software'), to deal in the Software without restriction,
|
|
8
|
+
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
8
9
|
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
10
|
subject to the following conditions:
|
|
10
11
|
|
|
11
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12
13
|
portions of the Software.
|
|
13
14
|
|
|
14
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
15
|
-
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
16
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
17
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
15
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
16
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
18
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
18
19
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
19
20
|
|
package/compiled/debug/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var e={739:function(e,t,r){t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0;let n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}s++;if(e==="%c"){n=s}}));t.splice(n,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(849)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},849:function(e,t,r){function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(273);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;let s;let n;function debug(...e){if(!debug.enabled){return}const r=debug;const s=Number(new Date);const n=s-(t||s);r.diff=n;r.prev=t;r.curr=s;t=s;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,s)=>{if(t==="%%"){return"%"}o++;const n=createDebug.formatters[s];if(typeof n==="function"){const s=e[o];t=n.call(r,s);e.splice(o,1);o--}return t}));createDebug.formatArgs.call(r,e);const a=r.log||createDebug.log;a.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(s!==createDebug.namespaces){s=createDebug.namespaces;n=createDebug.enabled(e)}return n},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const s=r.length;for(t=0;t<s;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t<r;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,r=createDebug.names.length;t<r;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},783:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(739)}else{e.exports=r(875)}},875:function(e,t,r){const s=r(867);const n=r(669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(821);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];if(/^(yes|on|true|enabled)$/i.test(s)){s=true}else if(/^(no|off|false|disabled)$/i.test(s)){s=false}else if(s==="null"){s=null}else{s=Number(s)}e[r]=s;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:s}=this;if(s){const s=this.color;const n="[3"+(s<8?s:"8;5;"+s);const o=` ${n};1m${r} [0m`;t[0]=o+t[0].split("\n").join("\n"+o);t.push(n+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(n.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let s=0;s<r.length;s++){e.inspectOpts[r[s]]=t.inspectOpts[r[s]]}}e.exports=r(849)(t);const{formatters:o}=e.exports;o.o=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};o.O=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts)}},419:function(e){"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(r+e);const n=t.indexOf("--");return s!==-1&&(n===-1||s<n)}},273:function(e){var t=1e3;var r=t*60;var s=r*60;var n=s*24;var o=n*7;var a=n*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c){return}var u=parseFloat(c[1]);var i=(c[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return u*a;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*n;case"hours":case"hour":case"hrs":case"hr":case"h":return u*s;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=n){return Math.round(e/n)+"d"}if(o>=s){return Math.round(e/s)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=n){return plural(e,o,n,"day")}if(o>=s){return plural(e,o,s,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,s){var n=t>=r*1.5;return Math.round(e/r)+" "+s+(n?"s":"")}},821:function(e,t,r){"use strict";const s=r(87);const n=r(867);const o=r(419);const{env:a}=process;let c;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){c=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){c=1}if("FORCE_COLOR"in a){if(a.FORCE_COLOR==="true"){c=1}else if(a.FORCE_COLOR==="false"){c=0}else{c=a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(c===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&c===undefined){return 0}const r=c||0;if(a.TERM==="dumb"){return r}if(process.platform==="win32"){const e=s.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in a){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in a))||a.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in a){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0}if(a.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(a.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)){return 1}if("COLORTERM"in a){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,n.isatty(1))),stderr:translateLevel(supportsColor(true,n.isatty(2)))}},87:function(e){"use strict";e.exports=require("os")},867:function(e){"use strict";e.exports=require("tty")},669:function(e){"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={exports:{}};var o=true;try{e[r](n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(783);module.exports=r})();
|
|
1
|
+
(function(){var e={704:function(e,t,r){t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0;let n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}s++;if(e==="%c"){n=s}}));t.splice(n,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(191)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},191:function(e,t,r){function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(403);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;let s;let n;function debug(...e){if(!debug.enabled){return}const r=debug;const s=Number(new Date);const n=s-(t||s);r.diff=n;r.prev=t;r.curr=s;t=s;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,s)=>{if(t==="%%"){return"%"}o++;const n=createDebug.formatters[s];if(typeof n==="function"){const s=e[o];t=n.call(r,s);e.splice(o,1);o--}return t}));createDebug.formatArgs.call(r,e);const a=r.log||createDebug.log;a.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(s!==createDebug.namespaces){s=createDebug.namespaces;n=createDebug.enabled(e)}return n},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const s=r.length;for(t=0;t<s;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t<r;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,r=createDebug.names.length;t<r;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},642:function(e,t,r){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(704)}else{e.exports=r(404)}},404:function(e,t,r){const s=r(224);const n=r(837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(974);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];if(/^(yes|on|true|enabled)$/i.test(s)){s=true}else if(/^(no|off|false|disabled)$/i.test(s)){s=false}else if(s==="null"){s=null}else{s=Number(s)}e[r]=s;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:s}=this;if(s){const s=this.color;const n="[3"+(s<8?s:"8;5;"+s);const o=` ${n};1m${r} [0m`;t[0]=o+t[0].split("\n").join("\n"+o);t.push(n+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(n.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let s=0;s<r.length;s++){e.inspectOpts[r[s]]=t.inspectOpts[r[s]]}}e.exports=r(191)(t);const{formatters:o}=e.exports;o.o=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};o.O=function(e){this.inspectOpts.colors=this.useColors;return n.inspect(e,this.inspectOpts)}},122:function(e){"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(r+e);const n=t.indexOf("--");return s!==-1&&(n===-1||s<n)}},403:function(e){var t=1e3;var r=t*60;var s=r*60;var n=s*24;var o=n*7;var a=n*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c){return}var u=parseFloat(c[1]);var i=(c[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return u*a;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*n;case"hours":case"hour":case"hrs":case"hr":case"h":return u*s;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=n){return Math.round(e/n)+"d"}if(o>=s){return Math.round(e/s)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=n){return plural(e,o,n,"day")}if(o>=s){return plural(e,o,s,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,s){var n=t>=r*1.5;return Math.round(e/r)+" "+s+(n?"s":"")}},974:function(e,t,r){"use strict";const s=r(37);const n=r(224);const o=r(122);const{env:a}=process;let c;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){c=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){c=1}if("FORCE_COLOR"in a){if(a.FORCE_COLOR==="true"){c=1}else if(a.FORCE_COLOR==="false"){c=0}else{c=a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(c===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&c===undefined){return 0}const r=c||0;if(a.TERM==="dumb"){return r}if(process.platform==="win32"){const e=s.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in a){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in a))||a.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in a){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0}if(a.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(a.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)){return 1}if("COLORTERM"in a){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,n.isatty(1))),stderr:translateLevel(supportsColor(true,n.isatty(2)))}},37:function(e){"use strict";e.exports=require("os")},224:function(e){"use strict";e.exports=require("tty")},837:function(e){"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={exports:{}};var o=true;try{e[r](n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(642);module.exports=r})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"debug","author":"
|
|
1
|
+
{"name":"debug","author":"Josh Junon <josh.junon@protonmail.com>","license":"MIT"}
|