@micro-lc/preview 0.5.1 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +27 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -0
- package/package.json +11 -11
- package/website/.vite/manifest.json +15 -0
- package/website/assets/errors-xGUFKyGs.js +1 -0
- package/website/assets/index-eRjzhw12.js +25 -0
- package/website/development/.vite/manifest.json +15 -0
- package/website/development/assets/errors-PsWGnPGW.js +23 -0
- package/website/development/assets/{index-ea7e80d3.js → index-Im8nnmAE.js} +617 -516
- package/website/development/index.html +1 -2
- package/website/development/service-worker.js +54 -54
- package/website/index.html +1 -2
- package/website/service-worker.js +2 -2
- package/website/assets/errors-af3a2945.js +0 -1
- package/website/assets/index-c372c995.js +0 -15
- package/website/development/assets/errors-5a0ccde7.js +0 -23
- package/website/development/manifest.json +0 -15
- package/website/manifest.json +0 -15
@@ -87,6 +87,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
87
87
|
} else if (typeof skip === "string") {
|
88
88
|
const r3 = new RegExp(skip);
|
89
89
|
skip = (s3) => r3.test(s3);
|
90
|
+
} else if (skip instanceof RegExp) {
|
91
|
+
skip = (s3) => skip.test(s3);
|
90
92
|
}
|
91
93
|
const eoop = (err) => setTimeout(() => {
|
92
94
|
throw err;
|
@@ -118,18 +120,15 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
118
120
|
}
|
119
121
|
}
|
120
122
|
const backslashRegEx = /\\/g;
|
121
|
-
function
|
122
|
-
if (url.indexOf(":") === -1)
|
123
|
-
return false;
|
123
|
+
function asURL(url) {
|
124
124
|
try {
|
125
|
-
|
126
|
-
|
125
|
+
if (url.indexOf(":") !== -1)
|
126
|
+
return new URL(url).href;
|
127
127
|
} catch (_2) {
|
128
|
-
return false;
|
129
128
|
}
|
130
129
|
}
|
131
130
|
function resolveUrl(relUrl, parentUrl) {
|
132
|
-
return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (
|
131
|
+
return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (asURL(relUrl) || resolveIfNotPlainOrUrl("./" + relUrl, parentUrl));
|
133
132
|
}
|
134
133
|
function resolveIfNotPlainOrUrl(relUrl, parentUrl) {
|
135
134
|
const hIdx = parentUrl.indexOf("#"), qIdx = parentUrl.indexOf("?");
|
@@ -141,6 +140,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
141
140
|
return parentUrl.slice(0, parentUrl.indexOf(":") + 1) + relUrl;
|
142
141
|
} else if (relUrl[0] === "." && (relUrl[1] === "/" || relUrl[1] === "." && (relUrl[2] === "/" || relUrl.length === 2 && (relUrl += "/")) || relUrl.length === 1 && (relUrl += "/")) || relUrl[0] === "/") {
|
143
142
|
const parentProtocol = parentUrl.slice(0, parentUrl.indexOf(":") + 1);
|
143
|
+
if (parentProtocol === "blob:") {
|
144
|
+
throw new TypeError(`Failed to resolve module specifier "${relUrl}". Invalid relative url or base scheme isn't hierarchical.`);
|
145
|
+
}
|
144
146
|
let pathname;
|
145
147
|
if (parentUrl[parentProtocol.length + 1] === "/") {
|
146
148
|
if (parentProtocol !== "file:") {
|
@@ -358,30 +360,31 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
358
360
|
a3[i3++] = (255 & r4) << 8 | r4 >>> 8;
|
359
361
|
}
|
360
362
|
}, t2 = "xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";
|
361
|
-
let c$1,
|
363
|
+
let f2, c$1, n2;
|
362
364
|
function parse2(l3, k3 = "@") {
|
363
|
-
|
364
|
-
const u3 = 2 *
|
365
|
+
f2 = l3, c$1 = k3;
|
366
|
+
const u3 = 2 * f2.length + (2 << 18);
|
365
367
|
if (u3 > i2 || !e2) {
|
366
368
|
for (; u3 > i2; )
|
367
369
|
i2 *= 2;
|
368
370
|
a2 = new ArrayBuffer(i2), s2(t2, new Uint16Array(a2, 16, 105)), e2 = function(e3, a3, r3) {
|
369
371
|
;
|
370
|
-
var i3 = new e3.Int8Array(r3), s3 = new e3.Int16Array(r3), t3 = new e3.Int32Array(r3),
|
372
|
+
var i3 = new e3.Int8Array(r3), s3 = new e3.Int16Array(r3), t3 = new e3.Int32Array(r3), f3 = new e3.Uint8Array(r3), c3 = new e3.Uint16Array(r3), n3 = 1024;
|
371
373
|
function b2() {
|
372
|
-
var e4 = 0, a4 = 0, r4 = 0,
|
373
|
-
|
374
|
+
var e4 = 0, a4 = 0, r4 = 0, f4 = 0, b3 = 0, u5 = 0;
|
375
|
+
u5 = n3;
|
374
376
|
n3 = n3 + 10240 | 0;
|
375
|
-
i3[
|
377
|
+
i3[796] = 1;
|
378
|
+
i3[795] = 0;
|
376
379
|
s3[395] = 0;
|
377
380
|
s3[396] = 0;
|
378
381
|
t3[67] = t3[2];
|
379
|
-
i3[
|
382
|
+
i3[797] = 0;
|
380
383
|
t3[66] = 0;
|
381
384
|
i3[794] = 0;
|
382
|
-
t3[68] =
|
383
|
-
t3[69] =
|
384
|
-
i3[
|
385
|
+
t3[68] = u5 + 2048;
|
386
|
+
t3[69] = u5;
|
387
|
+
i3[798] = 0;
|
385
388
|
e4 = (t3[3] | 0) + -2 | 0;
|
386
389
|
t3[70] = e4;
|
387
390
|
a4 = e4 + (t3[64] << 1) | 0;
|
@@ -405,7 +408,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
405
408
|
case 32:
|
406
409
|
break;
|
407
410
|
case 101: {
|
408
|
-
if ((((s3[396] | 0) == 0 ? H2(r4) | 0 : 0) ? (m2(e4 + 4 | 0, 16, 10) | 0) == 0 : 0) ? (l4(), (i3[
|
411
|
+
if ((((s3[396] | 0) == 0 ? H2(r4) | 0 : 0) ? (m2(e4 + 4 | 0, 16, 10) | 0) == 0 : 0) ? (l4(), (i3[796] | 0) == 0) : 0) {
|
409
412
|
b3 = 9;
|
410
413
|
break e;
|
411
414
|
} else
|
@@ -457,7 +460,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
457
460
|
t3[67] = e4;
|
458
461
|
b3 = 19;
|
459
462
|
} else if ((b3 | 0) == 16) {
|
460
|
-
i3[
|
463
|
+
i3[796] = 0;
|
461
464
|
t3[70] = e4;
|
462
465
|
b3 = 19;
|
463
466
|
} else if ((b3 | 0) == 18)
|
@@ -472,7 +475,6 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
472
475
|
while (1) {
|
473
476
|
a4 = e4 + 2 | 0;
|
474
477
|
t3[70] = a4;
|
475
|
-
c4 = a4;
|
476
478
|
if (e4 >>> 0 >= (t3[71] | 0) >>> 0) {
|
477
479
|
b3 = 82;
|
478
480
|
break;
|
@@ -505,20 +507,20 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
505
507
|
}
|
506
508
|
case 99: {
|
507
509
|
if ((H2(a4) | 0 ? (m2(e4 + 4 | 0, 36, 8) | 0) == 0 : 0) ? V2(s3[e4 + 12 >> 1] | 0) | 0 : 0) {
|
508
|
-
i3[
|
510
|
+
i3[798] = 1;
|
509
511
|
b3 = 81;
|
510
512
|
} else
|
511
513
|
b3 = 81;
|
512
514
|
break;
|
513
515
|
}
|
514
516
|
case 40: {
|
515
|
-
|
517
|
+
f4 = t3[68] | 0;
|
516
518
|
a4 = s3[396] | 0;
|
517
519
|
b3 = a4 & 65535;
|
518
|
-
t3[
|
520
|
+
t3[f4 + (b3 << 3) >> 2] = 1;
|
519
521
|
r4 = t3[67] | 0;
|
520
522
|
s3[396] = a4 + 1 << 16 >> 16;
|
521
|
-
t3[
|
523
|
+
t3[f4 + (b3 << 3) + 4 >> 2] = r4;
|
522
524
|
b3 = 81;
|
523
525
|
break;
|
524
526
|
}
|
@@ -528,15 +530,17 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
528
530
|
b3 = 36;
|
529
531
|
break e;
|
530
532
|
}
|
531
|
-
|
532
|
-
s3[396] =
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
t3[
|
539
|
-
|
533
|
+
b3 = a4 + -1 << 16 >> 16;
|
534
|
+
s3[396] = b3;
|
535
|
+
f4 = s3[395] | 0;
|
536
|
+
a4 = f4 & 65535;
|
537
|
+
if (f4 << 16 >> 16 != 0 ? (t3[(t3[68] | 0) + ((b3 & 65535) << 3) >> 2] | 0) == 5 : 0) {
|
538
|
+
a4 = t3[(t3[69] | 0) + (a4 + -1 << 2) >> 2] | 0;
|
539
|
+
r4 = a4 + 4 | 0;
|
540
|
+
if (!(t3[r4 >> 2] | 0))
|
541
|
+
t3[r4 >> 2] = (t3[67] | 0) + 2;
|
542
|
+
t3[a4 + 12 >> 2] = e4 + 4;
|
543
|
+
s3[395] = f4 + -1 << 16 >> 16;
|
540
544
|
b3 = 81;
|
541
545
|
} else
|
542
546
|
b3 = 81;
|
@@ -544,10 +548,10 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
544
548
|
}
|
545
549
|
case 123: {
|
546
550
|
b3 = t3[67] | 0;
|
547
|
-
|
551
|
+
f4 = t3[61] | 0;
|
548
552
|
e4 = b3;
|
549
553
|
do {
|
550
|
-
if ((s3[b3 >> 1] | 0) == 41 & (
|
554
|
+
if ((s3[b3 >> 1] | 0) == 41 & (f4 | 0) != 0 ? (t3[f4 + 4 >> 2] | 0) == (b3 | 0) : 0) {
|
551
555
|
a4 = t3[62] | 0;
|
552
556
|
t3[61] = a4;
|
553
557
|
if (!a4) {
|
@@ -559,13 +563,13 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
559
563
|
}
|
560
564
|
}
|
561
565
|
} while (0);
|
562
|
-
|
566
|
+
f4 = t3[68] | 0;
|
563
567
|
r4 = s3[396] | 0;
|
564
568
|
b3 = r4 & 65535;
|
565
|
-
t3[
|
569
|
+
t3[f4 + (b3 << 3) >> 2] = (i3[798] | 0) == 0 ? 2 : 6;
|
566
570
|
s3[396] = r4 + 1 << 16 >> 16;
|
567
|
-
t3[
|
568
|
-
i3[
|
571
|
+
t3[f4 + (b3 << 3) + 4 >> 2] = e4;
|
572
|
+
i3[798] = 0;
|
569
573
|
b3 = 81;
|
570
574
|
break;
|
571
575
|
}
|
@@ -575,10 +579,10 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
575
579
|
b3 = 49;
|
576
580
|
break e;
|
577
581
|
}
|
578
|
-
|
582
|
+
f4 = t3[68] | 0;
|
579
583
|
b3 = e4 + -1 << 16 >> 16;
|
580
584
|
s3[396] = b3;
|
581
|
-
if ((t3[
|
585
|
+
if ((t3[f4 + ((b3 & 65535) << 3) >> 2] | 0) == 4) {
|
582
586
|
h3();
|
583
587
|
b3 = 81;
|
584
588
|
} else
|
@@ -607,13 +611,13 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
607
611
|
}
|
608
612
|
default: {
|
609
613
|
e4 = t3[67] | 0;
|
610
|
-
|
614
|
+
f4 = s3[e4 >> 1] | 0;
|
611
615
|
r:
|
612
616
|
do {
|
613
|
-
if (!(U(
|
614
|
-
switch (
|
617
|
+
if (!(U(f4) | 0)) {
|
618
|
+
switch (f4 << 16 >> 16) {
|
615
619
|
case 41:
|
616
|
-
if (
|
620
|
+
if (D2(t3[(t3[68] | 0) + (c3[396] << 3) + 4 >> 2] | 0) | 0) {
|
617
621
|
b3 = 69;
|
618
622
|
break r;
|
619
623
|
} else {
|
@@ -628,13 +632,13 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
628
632
|
}
|
629
633
|
}
|
630
634
|
a4 = t3[68] | 0;
|
631
|
-
r4 =
|
635
|
+
r4 = c3[396] | 0;
|
632
636
|
if (!(p3(t3[a4 + (r4 << 3) + 4 >> 2] | 0) | 0) ? (t3[a4 + (r4 << 3) >> 2] | 0) != 6 : 0)
|
633
637
|
b3 = 66;
|
634
638
|
else
|
635
639
|
b3 = 69;
|
636
640
|
} else
|
637
|
-
switch (
|
641
|
+
switch (f4 << 16 >> 16) {
|
638
642
|
case 46:
|
639
643
|
if (((s3[e4 + -2 >> 1] | 0) + -48 & 65535) < 10) {
|
640
644
|
b3 = 66;
|
@@ -670,13 +674,13 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
670
674
|
if ((b3 | 0) == 66) {
|
671
675
|
b3 = 0;
|
672
676
|
if (!(o3(e4) | 0)) {
|
673
|
-
switch (
|
677
|
+
switch (f4 << 16 >> 16) {
|
674
678
|
case 0: {
|
675
679
|
b3 = 69;
|
676
680
|
break r;
|
677
681
|
}
|
678
682
|
case 47: {
|
679
|
-
if (i3[
|
683
|
+
if (i3[797] | 0) {
|
680
684
|
b3 = 69;
|
681
685
|
break r;
|
682
686
|
}
|
@@ -686,7 +690,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
686
690
|
}
|
687
691
|
}
|
688
692
|
r4 = t3[3] | 0;
|
689
|
-
a4 =
|
693
|
+
a4 = f4;
|
690
694
|
do {
|
691
695
|
if (e4 >>> 0 <= r4 >>> 0)
|
692
696
|
break;
|
@@ -701,9 +705,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
701
705
|
e4 = e4 + -2 | 0;
|
702
706
|
t3[67] = e4;
|
703
707
|
} while (F(s3[e4 >> 1] | 0) | 0);
|
704
|
-
if (
|
708
|
+
if (j(e4) | 0) {
|
705
709
|
g2();
|
706
|
-
i3[
|
710
|
+
i3[797] = 0;
|
707
711
|
b3 = 81;
|
708
712
|
break a;
|
709
713
|
} else
|
@@ -718,18 +722,18 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
718
722
|
g2();
|
719
723
|
e4 = 0;
|
720
724
|
}
|
721
|
-
i3[
|
725
|
+
i3[797] = e4;
|
722
726
|
b3 = 81;
|
723
727
|
break a;
|
724
728
|
}
|
725
729
|
}
|
726
730
|
case 96: {
|
727
|
-
|
731
|
+
f4 = t3[68] | 0;
|
728
732
|
r4 = s3[396] | 0;
|
729
733
|
b3 = r4 & 65535;
|
730
|
-
t3[
|
734
|
+
t3[f4 + (b3 << 3) + 4 >> 2] = t3[67];
|
731
735
|
s3[396] = r4 + 1 << 16 >> 16;
|
732
|
-
t3[
|
736
|
+
t3[f4 + (b3 << 3) >> 2] = 3;
|
733
737
|
h3();
|
734
738
|
b3 = 81;
|
735
739
|
break;
|
@@ -758,11 +762,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
758
762
|
}
|
759
763
|
}
|
760
764
|
} while (0);
|
761
|
-
n3 =
|
765
|
+
n3 = u5;
|
762
766
|
return e4 | 0;
|
763
767
|
}
|
764
768
|
function l4() {
|
765
|
-
var e4 = 0, a4 = 0, r4 = 0,
|
769
|
+
var e4 = 0, a4 = 0, r4 = 0, f4 = 0, c4 = 0, n4 = 0, b3 = 0, l5 = 0, k5 = 0, o4 = 0, h4 = 0, v3 = 0, C3 = 0, g3 = 0;
|
766
770
|
l5 = t3[70] | 0;
|
767
771
|
k5 = t3[63] | 0;
|
768
772
|
g3 = l5 + 12 | 0;
|
@@ -780,7 +784,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
780
784
|
case 123: {
|
781
785
|
t3[70] = e4 + 2;
|
782
786
|
e4 = w3(1) | 0;
|
783
|
-
|
787
|
+
a4 = t3[70] | 0;
|
784
788
|
while (1) {
|
785
789
|
if (W(e4) | 0) {
|
786
790
|
d3(e4);
|
@@ -791,22 +795,22 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
791
795
|
e4 = t3[70] | 0;
|
792
796
|
}
|
793
797
|
w3(1) | 0;
|
794
|
-
e4 =
|
798
|
+
e4 = A2(a4, e4) | 0;
|
795
799
|
if (e4 << 16 >> 16 == 44) {
|
796
800
|
t3[70] = (t3[70] | 0) + 2;
|
797
801
|
e4 = w3(1) | 0;
|
798
802
|
}
|
799
|
-
a4 = r4;
|
800
|
-
r4 = t3[70] | 0;
|
801
803
|
if (e4 << 16 >> 16 == 125) {
|
802
804
|
C3 = 15;
|
803
805
|
break;
|
804
806
|
}
|
805
|
-
|
807
|
+
g3 = a4;
|
808
|
+
a4 = t3[70] | 0;
|
809
|
+
if ((a4 | 0) == (g3 | 0)) {
|
806
810
|
C3 = 12;
|
807
811
|
break;
|
808
812
|
}
|
809
|
-
if (
|
813
|
+
if (a4 >>> 0 > (t3[71] | 0) >>> 0) {
|
810
814
|
C3 = 14;
|
811
815
|
break;
|
812
816
|
}
|
@@ -818,7 +822,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
818
822
|
T2();
|
819
823
|
break e;
|
820
824
|
} else if ((C3 | 0) == 15) {
|
821
|
-
|
825
|
+
i3[795] = 1;
|
826
|
+
t3[70] = (t3[70] | 0) + 2;
|
822
827
|
break a;
|
823
828
|
}
|
824
829
|
break;
|
@@ -827,11 +832,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
827
832
|
t3[70] = e4 + 2;
|
828
833
|
w3(1) | 0;
|
829
834
|
g3 = t3[70] | 0;
|
830
|
-
|
835
|
+
A2(g3, g3) | 0;
|
831
836
|
break;
|
832
837
|
}
|
833
838
|
default: {
|
834
|
-
i3[
|
839
|
+
i3[796] = 0;
|
835
840
|
switch (r4 << 16 >> 16) {
|
836
841
|
case 100: {
|
837
842
|
l5 = e4 + 14 | 0;
|
@@ -839,8 +844,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
839
844
|
switch ((w3(1) | 0) << 16 >> 16) {
|
840
845
|
case 97: {
|
841
846
|
a4 = t3[70] | 0;
|
842
|
-
if ((m2(a4 + 2 | 0, 56, 8) | 0) == 0 ? (
|
843
|
-
t3[70] =
|
847
|
+
if ((m2(a4 + 2 | 0, 56, 8) | 0) == 0 ? (c4 = a4 + 10 | 0, F(s3[c4 >> 1] | 0) | 0) : 0) {
|
848
|
+
t3[70] = c4;
|
844
849
|
w3(0) | 0;
|
845
850
|
C3 = 22;
|
846
851
|
}
|
@@ -852,8 +857,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
852
857
|
}
|
853
858
|
case 99: {
|
854
859
|
a4 = t3[70] | 0;
|
855
|
-
if (((m2(a4 + 2 | 0, 36, 8) | 0) == 0 ? (
|
856
|
-
|
860
|
+
if (((m2(a4 + 2 | 0, 36, 8) | 0) == 0 ? (f4 = a4 + 10 | 0, g3 = s3[f4 >> 1] | 0, V2(g3) | 0 | g3 << 16 >> 16 == 123) : 0) ? (t3[70] = f4, n4 = w3(1) | 0, n4 << 16 >> 16 != 123) : 0) {
|
861
|
+
v3 = n4;
|
857
862
|
C3 = 31;
|
858
863
|
}
|
859
864
|
break;
|
@@ -881,17 +886,17 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
881
886
|
a4 = w3(1) | 0;
|
882
887
|
}
|
883
888
|
if (a4 << 16 >> 16 != 40) {
|
884
|
-
|
889
|
+
v3 = a4;
|
885
890
|
C3 = 31;
|
886
891
|
}
|
887
892
|
}
|
888
893
|
} while (0);
|
889
|
-
if ((C3 | 0) == 31 ? (o4 = t3[70] | 0, q(
|
890
|
-
|
894
|
+
if ((C3 | 0) == 31 ? (o4 = t3[70] | 0, q(v3) | 0, h4 = t3[70] | 0, h4 >>> 0 > o4 >>> 0) : 0) {
|
895
|
+
O(e4, l5, o4, h4);
|
891
896
|
t3[70] = (t3[70] | 0) + -2;
|
892
897
|
break e;
|
893
898
|
}
|
894
|
-
|
899
|
+
O(e4, l5, 0, 0);
|
895
900
|
t3[70] = e4 + 12;
|
896
901
|
break e;
|
897
902
|
}
|
@@ -913,7 +918,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
913
918
|
C3 = t3[70] | 0;
|
914
919
|
q(g3) | 0;
|
915
920
|
g3 = t3[70] | 0;
|
916
|
-
|
921
|
+
O(C3, g3, C3, g3);
|
917
922
|
t3[70] = (t3[70] | 0) + -2;
|
918
923
|
break e;
|
919
924
|
}
|
@@ -937,34 +942,61 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
937
942
|
C3 = t3[70] | 0;
|
938
943
|
q(e4) | 0;
|
939
944
|
g3 = t3[70] | 0;
|
940
|
-
|
945
|
+
O(C3, g3, C3, g3);
|
941
946
|
t3[70] = (t3[70] | 0) + -2;
|
942
947
|
break e;
|
943
948
|
}
|
944
|
-
|
945
|
-
|
946
|
-
|
949
|
+
t3[70] = e4 + 6;
|
950
|
+
i3[796] = 0;
|
951
|
+
r4 = w3(1) | 0;
|
952
|
+
e4 = t3[70] | 0;
|
953
|
+
r4 = (q(r4) | 0 | 32) << 16 >> 16 == 123;
|
954
|
+
f4 = t3[70] | 0;
|
955
|
+
if (r4) {
|
956
|
+
t3[70] = f4 + 2;
|
957
|
+
g3 = w3(1) | 0;
|
958
|
+
e4 = t3[70] | 0;
|
959
|
+
q(g3) | 0;
|
960
|
+
}
|
947
961
|
r:
|
948
962
|
while (1) {
|
963
|
+
a4 = t3[70] | 0;
|
964
|
+
if ((a4 | 0) == (e4 | 0))
|
965
|
+
break;
|
966
|
+
O(e4, a4, e4, a4);
|
967
|
+
a4 = w3(1) | 0;
|
968
|
+
if (r4)
|
969
|
+
switch (a4 << 16 >> 16) {
|
970
|
+
case 93:
|
971
|
+
case 125:
|
972
|
+
break e;
|
973
|
+
default: {
|
974
|
+
}
|
975
|
+
}
|
976
|
+
e4 = t3[70] | 0;
|
977
|
+
if (a4 << 16 >> 16 != 44) {
|
978
|
+
C3 = 51;
|
979
|
+
break;
|
980
|
+
}
|
949
981
|
t3[70] = e4 + 2;
|
950
|
-
|
982
|
+
a4 = w3(1) | 0;
|
951
983
|
e4 = t3[70] | 0;
|
952
|
-
switch (
|
984
|
+
switch (a4 << 16 >> 16) {
|
953
985
|
case 91:
|
954
|
-
case 123:
|
986
|
+
case 123: {
|
987
|
+
C3 = 51;
|
955
988
|
break r;
|
989
|
+
}
|
956
990
|
default: {
|
957
991
|
}
|
958
992
|
}
|
959
|
-
a4
|
960
|
-
if ((a4 | 0) == (e4 | 0))
|
961
|
-
break e;
|
962
|
-
$2(e4, a4, e4, a4);
|
963
|
-
if ((w3(1) | 0) << 16 >> 16 != 44)
|
964
|
-
break;
|
965
|
-
e4 = t3[70] | 0;
|
993
|
+
q(a4) | 0;
|
966
994
|
}
|
967
|
-
|
995
|
+
if ((C3 | 0) == 51)
|
996
|
+
t3[70] = e4 + -2;
|
997
|
+
if (!r4)
|
998
|
+
break e;
|
999
|
+
t3[70] = f4 + -2;
|
968
1000
|
break e;
|
969
1001
|
}
|
970
1002
|
}
|
@@ -990,9 +1022,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
990
1022
|
return;
|
991
1023
|
}
|
992
1024
|
function k4() {
|
993
|
-
var e4 = 0, a4 = 0, r4 = 0,
|
994
|
-
|
995
|
-
e4 =
|
1025
|
+
var e4 = 0, a4 = 0, r4 = 0, f4 = 0, c4 = 0, n4 = 0;
|
1026
|
+
c4 = t3[70] | 0;
|
1027
|
+
e4 = c4 + 12 | 0;
|
996
1028
|
t3[70] = e4;
|
997
1029
|
e:
|
998
1030
|
do {
|
@@ -1008,12 +1040,12 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1008
1040
|
if ((s3[t3[67] >> 1] | 0) != 46) {
|
1009
1041
|
t3[70] = e4 + 2;
|
1010
1042
|
n4 = w3(1) | 0;
|
1011
|
-
|
1043
|
+
v2(c4, t3[70] | 0, 0, e4);
|
1012
1044
|
a4 = t3[61] | 0;
|
1013
1045
|
r4 = t3[69] | 0;
|
1014
|
-
|
1015
|
-
s3[395] =
|
1016
|
-
t3[r4 + ((
|
1046
|
+
c4 = s3[395] | 0;
|
1047
|
+
s3[395] = c4 + 1 << 16 >> 16;
|
1048
|
+
t3[r4 + ((c4 & 65535) << 2) >> 2] = a4;
|
1017
1049
|
switch (n4 << 16 >> 16) {
|
1018
1050
|
case 39: {
|
1019
1051
|
d3(39);
|
@@ -1034,11 +1066,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1034
1066
|
case 44: {
|
1035
1067
|
t3[70] = (t3[70] | 0) + 2;
|
1036
1068
|
w3(1) | 0;
|
1037
|
-
|
1038
|
-
t3[
|
1069
|
+
c4 = t3[61] | 0;
|
1070
|
+
t3[c4 + 4 >> 2] = e4;
|
1039
1071
|
n4 = t3[70] | 0;
|
1040
|
-
t3[
|
1041
|
-
i3[
|
1072
|
+
t3[c4 + 16 >> 2] = n4;
|
1073
|
+
i3[c4 + 24 >> 0] = 1;
|
1042
1074
|
t3[70] = n4 + -2;
|
1043
1075
|
break e;
|
1044
1076
|
}
|
@@ -1065,14 +1097,14 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1065
1097
|
e4 = t3[67] | 0;
|
1066
1098
|
if (!(G(e4) | 0) ? (s3[e4 >> 1] | 0) == 46 : 0)
|
1067
1099
|
break e;
|
1068
|
-
|
1100
|
+
v2(c4, c4, a4 + 8 | 0, 2);
|
1069
1101
|
}
|
1070
1102
|
break;
|
1071
1103
|
}
|
1072
1104
|
case 42:
|
1073
1105
|
case 39:
|
1074
1106
|
case 34: {
|
1075
|
-
|
1107
|
+
f4 = 18;
|
1076
1108
|
break;
|
1077
1109
|
}
|
1078
1110
|
case 123: {
|
@@ -1087,7 +1119,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1087
1119
|
e4 = w3(1) | 0;
|
1088
1120
|
if (!(W(e4) | 0)) {
|
1089
1121
|
if (e4 << 16 >> 16 == 125) {
|
1090
|
-
|
1122
|
+
f4 = 33;
|
1091
1123
|
break;
|
1092
1124
|
}
|
1093
1125
|
} else
|
@@ -1095,7 +1127,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1095
1127
|
e4 = (t3[70] | 0) + 2 | 0;
|
1096
1128
|
t3[70] = e4;
|
1097
1129
|
}
|
1098
|
-
if ((
|
1130
|
+
if ((f4 | 0) == 33)
|
1099
1131
|
t3[70] = (t3[70] | 0) + 2;
|
1100
1132
|
n4 = (w3(1) | 0) << 16 >> 16 == 102;
|
1101
1133
|
e4 = t3[70] | 0;
|
@@ -1106,7 +1138,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1106
1138
|
t3[70] = e4 + 8;
|
1107
1139
|
e4 = w3(1) | 0;
|
1108
1140
|
if (W(e4) | 0) {
|
1109
|
-
u4(
|
1141
|
+
u4(c4, e4);
|
1110
1142
|
break e;
|
1111
1143
|
} else {
|
1112
1144
|
T2();
|
@@ -1115,13 +1147,13 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1115
1147
|
}
|
1116
1148
|
default:
|
1117
1149
|
if ((t3[70] | 0) == (e4 | 0))
|
1118
|
-
t3[70] =
|
1150
|
+
t3[70] = c4 + 10;
|
1119
1151
|
else
|
1120
|
-
|
1152
|
+
f4 = 18;
|
1121
1153
|
}
|
1122
1154
|
} while (0);
|
1123
1155
|
do {
|
1124
|
-
if ((
|
1156
|
+
if ((f4 | 0) == 18) {
|
1125
1157
|
if (s3[396] | 0) {
|
1126
1158
|
t3[70] = (t3[70] | 0) + -2;
|
1127
1159
|
break;
|
@@ -1130,22 +1162,22 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1130
1162
|
a4 = t3[70] | 0;
|
1131
1163
|
while (1) {
|
1132
1164
|
if (a4 >>> 0 >= e4 >>> 0) {
|
1133
|
-
|
1165
|
+
f4 = 25;
|
1134
1166
|
break;
|
1135
1167
|
}
|
1136
1168
|
r4 = s3[a4 >> 1] | 0;
|
1137
1169
|
if (W(r4) | 0) {
|
1138
|
-
|
1170
|
+
f4 = 23;
|
1139
1171
|
break;
|
1140
1172
|
}
|
1141
1173
|
n4 = a4 + 2 | 0;
|
1142
1174
|
t3[70] = n4;
|
1143
1175
|
a4 = n4;
|
1144
1176
|
}
|
1145
|
-
if ((
|
1146
|
-
u4(
|
1177
|
+
if ((f4 | 0) == 23) {
|
1178
|
+
u4(c4, r4);
|
1147
1179
|
break;
|
1148
|
-
} else if ((
|
1180
|
+
} else if ((f4 | 0) == 25) {
|
1149
1181
|
T2();
|
1150
1182
|
break;
|
1151
1183
|
}
|
@@ -1174,7 +1206,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1174
1206
|
}
|
1175
1207
|
do {
|
1176
1208
|
if ((i4 | 0) == 5) {
|
1177
|
-
|
1209
|
+
v2(e4, r4, t3[70] | 0, 1);
|
1178
1210
|
t3[70] = (t3[70] | 0) + 2;
|
1179
1211
|
a4 = w3(0) | 0;
|
1180
1212
|
e4 = a4 << 16 >> 16 == 97;
|
@@ -1284,11 +1316,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1284
1316
|
case 100:
|
1285
1317
|
switch (s3[e4 + -2 >> 1] | 0) {
|
1286
1318
|
case 105: {
|
1287
|
-
e4 =
|
1319
|
+
e4 = $2(e4 + -4 | 0, 88, 2) | 0;
|
1288
1320
|
break e;
|
1289
1321
|
}
|
1290
1322
|
case 108: {
|
1291
|
-
e4 =
|
1323
|
+
e4 = $2(e4 + -4 | 0, 92, 3) | 0;
|
1292
1324
|
break e;
|
1293
1325
|
}
|
1294
1326
|
default: {
|
@@ -1314,11 +1346,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1314
1346
|
}
|
1315
1347
|
}
|
1316
1348
|
case 116: {
|
1317
|
-
e4 =
|
1349
|
+
e4 = $2(e4 + -4 | 0, 98, 4) | 0;
|
1318
1350
|
break e;
|
1319
1351
|
}
|
1320
1352
|
case 117: {
|
1321
|
-
e4 =
|
1353
|
+
e4 = $2(e4 + -4 | 0, 106, 6) | 0;
|
1322
1354
|
break e;
|
1323
1355
|
}
|
1324
1356
|
default: {
|
@@ -1330,11 +1362,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1330
1362
|
if ((s3[e4 + -2 >> 1] | 0) == 111 ? (s3[e4 + -4 >> 1] | 0) == 101 : 0)
|
1331
1363
|
switch (s3[e4 + -6 >> 1] | 0) {
|
1332
1364
|
case 99: {
|
1333
|
-
e4 =
|
1365
|
+
e4 = $2(e4 + -8 | 0, 118, 6) | 0;
|
1334
1366
|
break e;
|
1335
1367
|
}
|
1336
1368
|
case 112: {
|
1337
|
-
e4 =
|
1369
|
+
e4 = $2(e4 + -8 | 0, 130, 2) | 0;
|
1338
1370
|
break e;
|
1339
1371
|
}
|
1340
1372
|
default: {
|
@@ -1347,7 +1379,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1347
1379
|
break;
|
1348
1380
|
}
|
1349
1381
|
case 107: {
|
1350
|
-
e4 =
|
1382
|
+
e4 = $2(e4 + -2 | 0, 134, 4) | 0;
|
1351
1383
|
break;
|
1352
1384
|
}
|
1353
1385
|
case 110: {
|
@@ -1355,7 +1387,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1355
1387
|
if (B2(e4, 105) | 0)
|
1356
1388
|
e4 = 1;
|
1357
1389
|
else
|
1358
|
-
e4 =
|
1390
|
+
e4 = $2(e4, 142, 5) | 0;
|
1359
1391
|
break;
|
1360
1392
|
}
|
1361
1393
|
case 111: {
|
@@ -1363,11 +1395,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1363
1395
|
break;
|
1364
1396
|
}
|
1365
1397
|
case 114: {
|
1366
|
-
e4 =
|
1398
|
+
e4 = $2(e4 + -2 | 0, 152, 7) | 0;
|
1367
1399
|
break;
|
1368
1400
|
}
|
1369
1401
|
case 116: {
|
1370
|
-
e4 =
|
1402
|
+
e4 = $2(e4 + -2 | 0, 166, 4) | 0;
|
1371
1403
|
break;
|
1372
1404
|
}
|
1373
1405
|
case 119:
|
@@ -1377,7 +1409,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1377
1409
|
break e;
|
1378
1410
|
}
|
1379
1411
|
case 111: {
|
1380
|
-
e4 =
|
1412
|
+
e4 = $2(e4 + -4 | 0, 174, 3) | 0;
|
1381
1413
|
break e;
|
1382
1414
|
}
|
1383
1415
|
default: {
|
@@ -1488,12 +1520,12 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1488
1520
|
}
|
1489
1521
|
function d3(e4) {
|
1490
1522
|
e4 = e4 | 0;
|
1491
|
-
var a4 = 0, r4 = 0, i4 = 0,
|
1492
|
-
|
1523
|
+
var a4 = 0, r4 = 0, i4 = 0, f4 = 0;
|
1524
|
+
f4 = t3[71] | 0;
|
1493
1525
|
a4 = t3[70] | 0;
|
1494
1526
|
while (1) {
|
1495
1527
|
i4 = a4 + 2 | 0;
|
1496
|
-
if (a4 >>> 0 >=
|
1528
|
+
if (a4 >>> 0 >= f4 >>> 0) {
|
1497
1529
|
a4 = 9;
|
1498
1530
|
break;
|
1499
1531
|
}
|
@@ -1509,7 +1541,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1509
1541
|
a4 = (s3[a4 >> 1] | 0) == 10 ? a4 : r4;
|
1510
1542
|
} else
|
1511
1543
|
a4 = r4;
|
1512
|
-
} else if (
|
1544
|
+
} else if (Z2(r4) | 0) {
|
1513
1545
|
a4 = 9;
|
1514
1546
|
break;
|
1515
1547
|
} else
|
@@ -1522,15 +1554,44 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1522
1554
|
t3[70] = i4;
|
1523
1555
|
return;
|
1524
1556
|
}
|
1525
|
-
function v2(e4, a4) {
|
1557
|
+
function v2(e4, a4, r4, s4) {
|
1558
|
+
e4 = e4 | 0;
|
1559
|
+
a4 = a4 | 0;
|
1560
|
+
r4 = r4 | 0;
|
1561
|
+
s4 = s4 | 0;
|
1562
|
+
var f4 = 0, c4 = 0;
|
1563
|
+
f4 = t3[65] | 0;
|
1564
|
+
t3[65] = f4 + 32;
|
1565
|
+
c4 = t3[61] | 0;
|
1566
|
+
t3[((c4 | 0) == 0 ? 228 : c4 + 28 | 0) >> 2] = f4;
|
1567
|
+
t3[62] = c4;
|
1568
|
+
t3[61] = f4;
|
1569
|
+
t3[f4 + 8 >> 2] = e4;
|
1570
|
+
if (2 == (s4 | 0))
|
1571
|
+
e4 = r4;
|
1572
|
+
else
|
1573
|
+
e4 = 1 == (s4 | 0) ? r4 + 2 | 0 : 0;
|
1574
|
+
t3[f4 + 12 >> 2] = e4;
|
1575
|
+
t3[f4 >> 2] = a4;
|
1576
|
+
t3[f4 + 4 >> 2] = r4;
|
1577
|
+
t3[f4 + 16 >> 2] = 0;
|
1578
|
+
t3[f4 + 20 >> 2] = s4;
|
1579
|
+
c4 = 1 == (s4 | 0);
|
1580
|
+
i3[f4 + 24 >> 0] = c4 & 1;
|
1581
|
+
t3[f4 + 28 >> 2] = 0;
|
1582
|
+
if (c4 | 2 == (s4 | 0))
|
1583
|
+
i3[795] = 1;
|
1584
|
+
return;
|
1585
|
+
}
|
1586
|
+
function A2(e4, a4) {
|
1526
1587
|
e4 = e4 | 0;
|
1527
1588
|
a4 = a4 | 0;
|
1528
|
-
var r4 = 0, i4 = 0,
|
1589
|
+
var r4 = 0, i4 = 0, f4 = 0, c4 = 0;
|
1529
1590
|
r4 = t3[70] | 0;
|
1530
1591
|
i4 = s3[r4 >> 1] | 0;
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1592
|
+
c4 = (e4 | 0) == (a4 | 0);
|
1593
|
+
f4 = c4 ? 0 : e4;
|
1594
|
+
c4 = c4 ? 0 : a4;
|
1534
1595
|
if (i4 << 16 >> 16 == 97) {
|
1535
1596
|
t3[70] = r4 + 4;
|
1536
1597
|
r4 = w3(1) | 0;
|
@@ -1547,35 +1608,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1547
1608
|
r4 = t3[70] | 0;
|
1548
1609
|
}
|
1549
1610
|
if ((r4 | 0) != (e4 | 0))
|
1550
|
-
|
1611
|
+
O(e4, a4, f4, c4);
|
1551
1612
|
return i4 | 0;
|
1552
1613
|
}
|
1553
|
-
function A2(e4, a4, r4, s4) {
|
1554
|
-
e4 = e4 | 0;
|
1555
|
-
a4 = a4 | 0;
|
1556
|
-
r4 = r4 | 0;
|
1557
|
-
s4 = s4 | 0;
|
1558
|
-
var c4 = 0, f4 = 0;
|
1559
|
-
c4 = t3[65] | 0;
|
1560
|
-
t3[65] = c4 + 32;
|
1561
|
-
f4 = t3[61] | 0;
|
1562
|
-
t3[((f4 | 0) == 0 ? 228 : f4 + 28 | 0) >> 2] = c4;
|
1563
|
-
t3[62] = f4;
|
1564
|
-
t3[61] = c4;
|
1565
|
-
t3[c4 + 8 >> 2] = e4;
|
1566
|
-
if (2 == (s4 | 0))
|
1567
|
-
e4 = r4;
|
1568
|
-
else
|
1569
|
-
e4 = 1 == (s4 | 0) ? r4 + 2 | 0 : 0;
|
1570
|
-
t3[c4 + 12 >> 2] = e4;
|
1571
|
-
t3[c4 >> 2] = a4;
|
1572
|
-
t3[c4 + 4 >> 2] = r4;
|
1573
|
-
t3[c4 + 16 >> 2] = 0;
|
1574
|
-
t3[c4 + 20 >> 2] = s4;
|
1575
|
-
i3[c4 + 24 >> 0] = 1 == (s4 | 0) & 1;
|
1576
|
-
t3[c4 + 28 >> 2] = 0;
|
1577
|
-
return;
|
1578
|
-
}
|
1579
1614
|
function C2() {
|
1580
1615
|
var e4 = 0, a4 = 0, r4 = 0;
|
1581
1616
|
r4 = t3[71] | 0;
|
@@ -1664,15 +1699,15 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1664
1699
|
break;
|
1665
1700
|
}
|
1666
1701
|
case 104: {
|
1667
|
-
e4 =
|
1702
|
+
e4 = $2(e4 + -2 | 0, 200, 4) | 0;
|
1668
1703
|
break;
|
1669
1704
|
}
|
1670
1705
|
case 121: {
|
1671
|
-
e4 =
|
1706
|
+
e4 = $2(e4 + -2 | 0, 208, 6) | 0;
|
1672
1707
|
break;
|
1673
1708
|
}
|
1674
1709
|
case 101: {
|
1675
|
-
e4 =
|
1710
|
+
e4 = $2(e4 + -2 | 0, 220, 3) | 0;
|
1676
1711
|
break;
|
1677
1712
|
}
|
1678
1713
|
default:
|
@@ -1682,26 +1717,26 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1682
1717
|
}
|
1683
1718
|
function y2(e4) {
|
1684
1719
|
e4 = e4 | 0;
|
1685
|
-
var a4 = 0, r4 = 0, i4 = 0,
|
1686
|
-
|
1687
|
-
t3[70] =
|
1720
|
+
var a4 = 0, r4 = 0, i4 = 0, f4 = 0, c4 = 0;
|
1721
|
+
f4 = (t3[70] | 0) + 2 | 0;
|
1722
|
+
t3[70] = f4;
|
1688
1723
|
r4 = t3[71] | 0;
|
1689
1724
|
while (1) {
|
1690
|
-
a4 =
|
1691
|
-
if (
|
1725
|
+
a4 = f4 + 2 | 0;
|
1726
|
+
if (f4 >>> 0 >= r4 >>> 0)
|
1692
1727
|
break;
|
1693
1728
|
i4 = s3[a4 >> 1] | 0;
|
1694
|
-
if (!e4 ?
|
1729
|
+
if (!e4 ? Z2(i4) | 0 : 0)
|
1695
1730
|
break;
|
1696
|
-
if (i4 << 16 >> 16 == 42 ? (s3[
|
1697
|
-
|
1731
|
+
if (i4 << 16 >> 16 == 42 ? (s3[f4 + 4 >> 1] | 0) == 47 : 0) {
|
1732
|
+
c4 = 8;
|
1698
1733
|
break;
|
1699
1734
|
}
|
1700
|
-
|
1735
|
+
f4 = a4;
|
1701
1736
|
}
|
1702
|
-
if ((
|
1737
|
+
if ((c4 | 0) == 8) {
|
1703
1738
|
t3[70] = a4;
|
1704
|
-
a4 =
|
1739
|
+
a4 = f4 + 4 | 0;
|
1705
1740
|
}
|
1706
1741
|
t3[70] = a4;
|
1707
1742
|
return;
|
@@ -1817,16 +1852,16 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1817
1852
|
}
|
1818
1853
|
function S2(e4) {
|
1819
1854
|
e4 = e4 | 0;
|
1820
|
-
var a4 = 0, r4 = 0, i4 = 0,
|
1855
|
+
var a4 = 0, r4 = 0, i4 = 0, f4 = 0;
|
1821
1856
|
r4 = n3;
|
1822
1857
|
n3 = n3 + 16 | 0;
|
1823
1858
|
i4 = r4;
|
1824
1859
|
t3[i4 >> 2] = 0;
|
1825
1860
|
t3[64] = e4;
|
1826
1861
|
a4 = t3[3] | 0;
|
1827
|
-
|
1828
|
-
e4 =
|
1829
|
-
s3[
|
1862
|
+
f4 = a4 + (e4 << 1) | 0;
|
1863
|
+
e4 = f4 + 2 | 0;
|
1864
|
+
s3[f4 >> 1] = 0;
|
1830
1865
|
t3[i4 >> 2] = e4;
|
1831
1866
|
t3[65] = e4;
|
1832
1867
|
t3[57] = 0;
|
@@ -1838,7 +1873,26 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1838
1873
|
n3 = r4;
|
1839
1874
|
return a4 | 0;
|
1840
1875
|
}
|
1841
|
-
function O(e4, a4, r4) {
|
1876
|
+
function O(e4, a4, r4, s4) {
|
1877
|
+
e4 = e4 | 0;
|
1878
|
+
a4 = a4 | 0;
|
1879
|
+
r4 = r4 | 0;
|
1880
|
+
s4 = s4 | 0;
|
1881
|
+
var f4 = 0, c4 = 0;
|
1882
|
+
f4 = t3[65] | 0;
|
1883
|
+
t3[65] = f4 + 20;
|
1884
|
+
c4 = t3[63] | 0;
|
1885
|
+
t3[((c4 | 0) == 0 ? 232 : c4 + 16 | 0) >> 2] = f4;
|
1886
|
+
t3[63] = f4;
|
1887
|
+
t3[f4 >> 2] = e4;
|
1888
|
+
t3[f4 + 4 >> 2] = a4;
|
1889
|
+
t3[f4 + 8 >> 2] = r4;
|
1890
|
+
t3[f4 + 12 >> 2] = s4;
|
1891
|
+
t3[f4 + 16 >> 2] = 0;
|
1892
|
+
i3[795] = 1;
|
1893
|
+
return;
|
1894
|
+
}
|
1895
|
+
function $2(e4, a4, r4) {
|
1842
1896
|
e4 = e4 | 0;
|
1843
1897
|
a4 = a4 | 0;
|
1844
1898
|
r4 = r4 | 0;
|
@@ -1855,34 +1909,16 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1855
1909
|
e4 = 0;
|
1856
1910
|
return e4 | 0;
|
1857
1911
|
}
|
1858
|
-
function
|
1859
|
-
e4 = e4 | 0;
|
1860
|
-
a4 = a4 | 0;
|
1861
|
-
r4 = r4 | 0;
|
1862
|
-
i4 = i4 | 0;
|
1863
|
-
var s4 = 0, c4 = 0;
|
1864
|
-
s4 = t3[65] | 0;
|
1865
|
-
t3[65] = s4 + 20;
|
1866
|
-
c4 = t3[63] | 0;
|
1867
|
-
t3[((c4 | 0) == 0 ? 232 : c4 + 16 | 0) >> 2] = s4;
|
1868
|
-
t3[63] = s4;
|
1869
|
-
t3[s4 >> 2] = e4;
|
1870
|
-
t3[s4 + 4 >> 2] = a4;
|
1871
|
-
t3[s4 + 8 >> 2] = r4;
|
1872
|
-
t3[s4 + 12 >> 2] = i4;
|
1873
|
-
t3[s4 + 16 >> 2] = 0;
|
1874
|
-
return;
|
1875
|
-
}
|
1876
|
-
function j2(e4) {
|
1912
|
+
function j(e4) {
|
1877
1913
|
e4 = e4 | 0;
|
1878
1914
|
switch (s3[e4 >> 1] | 0) {
|
1879
1915
|
case 107: {
|
1880
|
-
e4 =
|
1916
|
+
e4 = $2(e4 + -2 | 0, 134, 4) | 0;
|
1881
1917
|
break;
|
1882
1918
|
}
|
1883
1919
|
case 101: {
|
1884
1920
|
if ((s3[e4 + -2 >> 1] | 0) == 117)
|
1885
|
-
e4 =
|
1921
|
+
e4 = $2(e4 + -4 | 0, 106, 6) | 0;
|
1886
1922
|
else
|
1887
1923
|
e4 = 0;
|
1888
1924
|
break;
|
@@ -1981,10 +2017,10 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
1981
2017
|
}
|
1982
2018
|
return e4 | 0;
|
1983
2019
|
}
|
1984
|
-
function
|
2020
|
+
function D2(e4) {
|
1985
2021
|
e4 = e4 | 0;
|
1986
|
-
if (!(
|
1987
|
-
e4 =
|
2022
|
+
if (!($2(e4, 180, 5) | 0) ? !($2(e4, 190, 3) | 0) : 0)
|
2023
|
+
e4 = $2(e4, 196, 2) | 0;
|
1988
2024
|
else
|
1989
2025
|
e4 = 1;
|
1990
2026
|
return e4 | 0;
|
@@ -2100,7 +2136,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2100
2136
|
function Y() {
|
2101
2137
|
return (t3[(t3[60] | 0) + 4 >> 2] | 0) - (t3[3] | 0) >> 1 | 0;
|
2102
2138
|
}
|
2103
|
-
function
|
2139
|
+
function Z2(e4) {
|
2104
2140
|
e4 = e4 | 0;
|
2105
2141
|
return e4 << 16 >> 16 == 13 | e4 << 16 >> 16 == 10 | 0;
|
2106
2142
|
}
|
@@ -2111,7 +2147,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2111
2147
|
return (t3[t3[60] >> 2] | 0) - (t3[3] | 0) >> 1 | 0;
|
2112
2148
|
}
|
2113
2149
|
function ae() {
|
2114
|
-
return
|
2150
|
+
return f3[(t3[59] | 0) + 24 >> 0] | 0 | 0;
|
2115
2151
|
}
|
2116
2152
|
function re(e4) {
|
2117
2153
|
e4 = e4 | 0;
|
@@ -2122,44 +2158,47 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2122
2158
|
return (i3[795] | 0) != 0 | 0;
|
2123
2159
|
}
|
2124
2160
|
function se() {
|
2161
|
+
return (i3[796] | 0) != 0 | 0;
|
2162
|
+
}
|
2163
|
+
function te() {
|
2125
2164
|
return t3[66] | 0;
|
2126
2165
|
}
|
2127
|
-
function
|
2166
|
+
function fe(e4) {
|
2128
2167
|
e4 = e4 | 0;
|
2129
2168
|
n3 = e4 + 992 + 15 & -16;
|
2130
2169
|
return 992;
|
2131
2170
|
}
|
2132
|
-
return { su:
|
2171
|
+
return { su: fe, ai: M2, e: te, ee: Y, ele: J, els: L2, es: ee, f: se, id: z2, ie: N2, ip: ae, is: _2, ms: ie, p: b2, re: R2, ri: Q, sa: S2, se: K, ses: re, ss: X };
|
2133
2172
|
}("undefined" != typeof self ? self : commonjsGlobal, {}, a2), r2 = e2.su(i2 - (2 << 17));
|
2134
2173
|
}
|
2135
|
-
const h2 =
|
2136
|
-
e2.ses(r2), e2.sa(h2 - 1), s2(
|
2174
|
+
const h2 = f2.length + 1;
|
2175
|
+
e2.ses(r2), e2.sa(h2 - 1), s2(f2, new Uint16Array(a2, r2, h2)), e2.p() || (n2 = e2.e(), o2());
|
2137
2176
|
const w2 = [], d2 = [];
|
2138
2177
|
for (; e2.ri(); ) {
|
2139
|
-
const a3 = e2.is(), r3 = e2.ie(), i3 = e2.ai(), s3 = e2.id(), t3 = e2.ss(),
|
2178
|
+
const a3 = e2.is(), r3 = e2.ie(), i3 = e2.ai(), s3 = e2.id(), t3 = e2.ss(), c3 = e2.se();
|
2140
2179
|
let n3;
|
2141
|
-
e2.ip() && (n3 = b(-1 === s3 ? a3 : a3 + 1,
|
2180
|
+
e2.ip() && (n3 = b(-1 === s3 ? a3 : a3 + 1, f2.charCodeAt(-1 === s3 ? a3 - 1 : a3))), w2.push({ n: n3, s: a3, e: r3, ss: t3, se: c3, d: s3, a: i3 });
|
2142
2181
|
}
|
2143
2182
|
for (; e2.re(); ) {
|
2144
|
-
const a3 = e2.es(), r3 = e2.ee(), i3 = e2.els(), s3 = e2.ele(), t3 =
|
2145
|
-
d2.push({ s: a3, e: r3, ls: i3, le: s3, n: 34 === t3 || 39 === t3 ? b(a3 + 1, t3) :
|
2183
|
+
const a3 = e2.es(), r3 = e2.ee(), i3 = e2.els(), s3 = e2.ele(), t3 = f2.charCodeAt(a3), c3 = i3 >= 0 ? f2.charCodeAt(i3) : -1;
|
2184
|
+
d2.push({ s: a3, e: r3, ls: i3, le: s3, n: 34 === t3 || 39 === t3 ? b(a3 + 1, t3) : f2.slice(a3, r3), ln: i3 < 0 ? void 0 : 34 === c3 || 39 === c3 ? b(i3 + 1, c3) : f2.slice(i3, s3) });
|
2146
2185
|
}
|
2147
|
-
return [w2, d2, !!e2.f()];
|
2186
|
+
return [w2, d2, !!e2.f(), !!e2.ms()];
|
2148
2187
|
}
|
2149
2188
|
function b(e3, a3) {
|
2150
2189
|
n2 = e3;
|
2151
2190
|
let r3 = "", i3 = n2;
|
2152
2191
|
for (; ; ) {
|
2153
|
-
n2 >=
|
2154
|
-
const e4 =
|
2192
|
+
n2 >= f2.length && o2();
|
2193
|
+
const e4 = f2.charCodeAt(n2);
|
2155
2194
|
if (e4 === a3)
|
2156
2195
|
break;
|
2157
|
-
92 === e4 ? (r3 +=
|
2196
|
+
92 === e4 ? (r3 += f2.slice(i3, n2), r3 += l2(), i3 = n2) : (8232 === e4 || 8233 === e4 || u2(e4) && o2(), ++n2);
|
2158
2197
|
}
|
2159
|
-
return r3 +=
|
2198
|
+
return r3 += f2.slice(i3, n2++), r3;
|
2160
2199
|
}
|
2161
2200
|
function l2() {
|
2162
|
-
let e3 =
|
2201
|
+
let e3 = f2.charCodeAt(++n2);
|
2163
2202
|
switch (++n2, e3) {
|
2164
2203
|
case 110:
|
2165
2204
|
return "\n";
|
@@ -2169,9 +2208,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2169
2208
|
return String.fromCharCode(k2(2));
|
2170
2209
|
case 117:
|
2171
2210
|
return function() {
|
2172
|
-
const e4 =
|
2211
|
+
const e4 = f2.charCodeAt(n2);
|
2173
2212
|
let a3;
|
2174
|
-
123 === e4 ? (++n2, a3 = k2(
|
2213
|
+
123 === e4 ? (++n2, a3 = k2(f2.indexOf("}", n2) - n2), ++n2, a3 > 1114111 && o2()) : a3 = k2(4);
|
2175
2214
|
return a3 <= 65535 ? String.fromCharCode(a3) : (a3 -= 65536, String.fromCharCode(55296 + (a3 >> 10), 56320 + (1023 & a3)));
|
2176
2215
|
}();
|
2177
2216
|
case 116:
|
@@ -2183,7 +2222,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2183
2222
|
case 102:
|
2184
2223
|
return "\f";
|
2185
2224
|
case 13:
|
2186
|
-
10 ===
|
2225
|
+
10 === f2.charCodeAt(n2) && ++n2;
|
2187
2226
|
case 10:
|
2188
2227
|
return "";
|
2189
2228
|
case 56:
|
@@ -2191,8 +2230,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2191
2230
|
o2();
|
2192
2231
|
default:
|
2193
2232
|
if (e3 >= 48 && e3 <= 55) {
|
2194
|
-
let a3 =
|
2195
|
-
return r3 > 255 && (a3 = a3.slice(0, -1), r3 = parseInt(a3, 8)), n2 += a3.length - 1, e3 =
|
2233
|
+
let a3 = f2.substr(n2 - 1, 3).match(/^[0-7]+/)[0], r3 = parseInt(a3, 8);
|
2234
|
+
return r3 > 255 && (a3 = a3.slice(0, -1), r3 = parseInt(a3, 8)), n2 += a3.length - 1, e3 = f2.charCodeAt(n2), "0" === a3 && 56 !== e3 && 57 !== e3 || o2(), String.fromCharCode(r3);
|
2196
2235
|
}
|
2197
2236
|
return u2(e3) ? "" : String.fromCharCode(e3);
|
2198
2237
|
}
|
@@ -2201,7 +2240,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2201
2240
|
const a3 = n2;
|
2202
2241
|
let r3 = 0, i3 = 0;
|
2203
2242
|
for (let a4 = 0; a4 < e3; ++a4, ++n2) {
|
2204
|
-
let e4, s3 =
|
2243
|
+
let e4, s3 = f2.charCodeAt(n2);
|
2205
2244
|
if (95 !== s3) {
|
2206
2245
|
if (s3 >= 97)
|
2207
2246
|
e4 = s3 - 97 + 10;
|
@@ -2224,21 +2263,21 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2224
2263
|
return 13 === e3 || 10 === e3;
|
2225
2264
|
}
|
2226
2265
|
function o2() {
|
2227
|
-
throw Object.assign(Error(`Parse error ${
|
2266
|
+
throw Object.assign(Error(`Parse error ${c$1}:${f2.slice(0, n2).split("\n").length}:${n2 - f2.lastIndexOf("\n", n2 - 1)}`), { idx: n2 });
|
2228
2267
|
}
|
2229
2268
|
async function _resolve(id, parentUrl) {
|
2230
|
-
const urlResolved = resolveIfNotPlainOrUrl(id, parentUrl);
|
2269
|
+
const urlResolved = resolveIfNotPlainOrUrl(id, parentUrl) || asURL(id);
|
2231
2270
|
return {
|
2232
2271
|
r: resolveImportMap(importMap, urlResolved || id, parentUrl) || throwUnresolved(id, parentUrl),
|
2233
2272
|
// b = bare specifier
|
2234
|
-
b: !urlResolved && !
|
2273
|
+
b: !urlResolved && !asURL(id)
|
2235
2274
|
};
|
2236
2275
|
}
|
2237
2276
|
const resolve = resolveHook ? async (id, parentUrl) => {
|
2238
2277
|
let result = resolveHook(id, parentUrl, defaultResolve);
|
2239
2278
|
if (result && result.then)
|
2240
2279
|
result = await result;
|
2241
|
-
return result ? { r: result, b: !resolveIfNotPlainOrUrl(id, parentUrl) && !
|
2280
|
+
return result ? { r: result, b: !resolveIfNotPlainOrUrl(id, parentUrl) && !asURL(id) } : _resolve(id, parentUrl);
|
2242
2281
|
} : _resolve;
|
2243
2282
|
async function importShim(id, ...args) {
|
2244
2283
|
let parentUrl = args[args.length - 1];
|
@@ -2279,6 +2318,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2279
2318
|
importMap = resolveAndComposeImportMap(importMapIn, baseUrl, importMap);
|
2280
2319
|
};
|
2281
2320
|
const registry = importShim._r = {};
|
2321
|
+
importShim._w = {};
|
2282
2322
|
async function loadAll(load, seen2) {
|
2283
2323
|
if (load.b || seen2[load.u])
|
2284
2324
|
return;
|
@@ -2480,6 +2520,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2480
2520
|
const sourceURLCommentPrefix = "\n//# sourceURL=";
|
2481
2521
|
const sourceMapURLCommentPrefix = "\n//# sourceMappingURL=";
|
2482
2522
|
const jsContentType = /^(text|application)\/(x-)?javascript(;|$)/;
|
2523
|
+
const wasmContentType = /^(application)\/wasm(;|$)/;
|
2483
2524
|
const jsonContentType = /^(text|application)\/json(;|$)/;
|
2484
2525
|
const cssContentType = /^(text|application)\/css(;|$)/;
|
2485
2526
|
const cssUrlRegEx = /url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g;
|
@@ -2509,8 +2550,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2509
2550
|
} finally {
|
2510
2551
|
popFetchPool();
|
2511
2552
|
}
|
2512
|
-
if (!res.ok)
|
2513
|
-
|
2553
|
+
if (!res.ok) {
|
2554
|
+
const error2 = new TypeError(`${res.status} ${res.statusText} ${res.url}${fromParent(parent)}`);
|
2555
|
+
error2.response = res;
|
2556
|
+
throw error2;
|
2557
|
+
}
|
2514
2558
|
return res;
|
2515
2559
|
}
|
2516
2560
|
async function fetchModule(url, fetchOpts, parent) {
|
@@ -2518,7 +2562,25 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
2518
2562
|
const contentType = res.headers.get("content-type");
|
2519
2563
|
if (jsContentType.test(contentType))
|
2520
2564
|
return { r: res.url, s: await res.text(), t: "js" };
|
2521
|
-
else if (
|
2565
|
+
else if (wasmContentType.test(contentType)) {
|
2566
|
+
const module = importShim._w[url] = await WebAssembly.compileStreaming(res);
|
2567
|
+
let s3 = "", i3 = 0, importObj = "";
|
2568
|
+
for (const impt of WebAssembly.Module.imports(module)) {
|
2569
|
+
s3 += `import * as impt${i3} from '${impt.module}';
|
2570
|
+
`;
|
2571
|
+
importObj += `'${impt.module}':impt${i3++},`;
|
2572
|
+
}
|
2573
|
+
i3 = 0;
|
2574
|
+
s3 += `const instance = await WebAssembly.instantiate(importShim._w['${url}'], {${importObj}});
|
2575
|
+
`;
|
2576
|
+
for (const expt of WebAssembly.Module.exports(module)) {
|
2577
|
+
s3 += `const expt${i3} = instance['${expt.name}'];
|
2578
|
+
`;
|
2579
|
+
s3 += `export { expt${i3++} as "${expt.name}" };
|
2580
|
+
`;
|
2581
|
+
}
|
2582
|
+
return { r: res.url, s: s3, t: "wasm" };
|
2583
|
+
} else if (jsonContentType.test(contentType))
|
2522
2584
|
return { r: res.url, s: `export default ${await res.text()}`, t: "json" };
|
2523
2585
|
else if (cssContentType.test(contentType)) {
|
2524
2586
|
return { r: res.url, s: `var s=new CSSStyleSheet();s.replaceSync(${JSON.stringify((await res.text()).replace(cssUrlRegEx, (_match, quotes = "", relUrl1, relUrl2) => `url(${quotes}${resolveUrl(relUrl1 || relUrl2, url)}${quotes})`))});export default s;`, t: "css" };
|
@@ -2925,6 +2987,10 @@ function __asyncValues(o2) {
|
|
2925
2987
|
}, reject);
|
2926
2988
|
}
|
2927
2989
|
}
|
2990
|
+
typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message) {
|
2991
|
+
var e2 = new Error(message);
|
2992
|
+
return e2.name = "SuppressedError", e2.error = error2, e2.suppressed = suppressed, e2;
|
2993
|
+
};
|
2928
2994
|
function isFunction(value) {
|
2929
2995
|
return typeof value === "function";
|
2930
2996
|
}
|
@@ -4837,27 +4903,27 @@ function focus(document2, obs$, mode$) {
|
|
4837
4903
|
});
|
4838
4904
|
return () => subscription.unsubscribe();
|
4839
4905
|
}
|
4840
|
-
var __defProp$
|
4841
|
-
var __defNormalProp$
|
4842
|
-
var __publicField$
|
4843
|
-
__defNormalProp$
|
4906
|
+
var __defProp$2 = Object.defineProperty;
|
4907
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4908
|
+
var __publicField$2 = (obj, key, value) => {
|
4909
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
4844
4910
|
return value;
|
4845
4911
|
};
|
4846
|
-
|
4912
|
+
class Lexer {
|
4847
4913
|
constructor(input) {
|
4848
|
-
__publicField$
|
4849
|
-
__publicField$
|
4850
|
-
__publicField$
|
4851
|
-
__publicField$
|
4914
|
+
__publicField$2(this, "_input");
|
4915
|
+
__publicField$2(this, "_length");
|
4916
|
+
__publicField$2(this, "_idx", 0);
|
4917
|
+
__publicField$2(
|
4852
4918
|
this,
|
4853
4919
|
"_mode",
|
4854
4920
|
0
|
4855
4921
|
/* Literal */
|
4856
4922
|
);
|
4857
|
-
__publicField$
|
4858
|
-
__publicField$
|
4859
|
-
__publicField$
|
4860
|
-
__publicField$
|
4923
|
+
__publicField$2(this, "_literals", []);
|
4924
|
+
__publicField$2(this, "_variables", []);
|
4925
|
+
__publicField$2(this, "_braketCount", 0);
|
4926
|
+
__publicField$2(this, "_done", false);
|
4861
4927
|
this._input = input;
|
4862
4928
|
this._length = input.length;
|
4863
4929
|
}
|
@@ -4910,11 +4976,11 @@ let Lexer$1 = class Lexer {
|
|
4910
4976
|
}
|
4911
4977
|
if (this._mode === 1) {
|
4912
4978
|
this._literals.pop();
|
4913
|
-
this.concatToLastLiteral(
|
4979
|
+
this.concatToLastLiteral("{{".concat(this._variables.pop()));
|
4914
4980
|
}
|
4915
4981
|
this._done = true;
|
4916
4982
|
}
|
4917
|
-
}
|
4983
|
+
}
|
4918
4984
|
const isSquareBrakets = (field) => {
|
4919
4985
|
const trimmed = field.trim();
|
4920
4986
|
if (!(trimmed.startsWith("[") && trimmed.endsWith("]"))) {
|
@@ -4931,7 +4997,7 @@ const getNumber = (field) => {
|
|
4931
4997
|
};
|
4932
4998
|
function interpolate$1(context, path, preserveUnknown) {
|
4933
4999
|
if (!path.trim()) {
|
4934
|
-
return preserveUnknown ?
|
5000
|
+
return preserveUnknown ? "{{".concat(path, "}}") : "";
|
4935
5001
|
}
|
4936
5002
|
const result = path.trim().split(".").reduce((superctx, field) => {
|
4937
5003
|
if (Array.isArray(superctx) && isSquareBrakets(field)) {
|
@@ -4945,10 +5011,10 @@ function interpolate$1(context, path, preserveUnknown) {
|
|
4945
5011
|
if (typeof result === "string") {
|
4946
5012
|
return result;
|
4947
5013
|
}
|
4948
|
-
return preserveUnknown ?
|
5014
|
+
return preserveUnknown ? "{{".concat(path, "}}") : "";
|
4949
5015
|
}
|
4950
5016
|
function parse(input, context, preserveUnknown = false) {
|
4951
|
-
const lexer2 = new Lexer
|
5017
|
+
const lexer2 = new Lexer(input);
|
4952
5018
|
lexer2.run();
|
4953
5019
|
const template = lexer2.get();
|
4954
5020
|
let [acc] = template.literals;
|
@@ -4977,35 +5043,39 @@ const keys = {
|
|
4977
5043
|
"request-resource": 0,
|
4978
5044
|
"set-source-map": 0,
|
4979
5045
|
"tag-info": 0,
|
5046
|
+
unload: 0,
|
4980
5047
|
update: 0,
|
4981
5048
|
updated: 0
|
4982
5049
|
/* Default */
|
4983
5050
|
};
|
4984
5051
|
var t;
|
4985
|
-
const i = window, s = i.trustedTypes, e = s ? s.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o = "$lit$", n = `lit$${(Math.random() + "").slice(9)}$`, l = "?" + n, h = `<${l}>`, r = document,
|
4986
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), g = /'/g, $ = /"/g, y = /^(?:script|style|textarea|title)$/i, w = (t2) => (i2, ...s2) => ({ _$litType$: t2, strings: i2, values: s2 }), x = w(1), T = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), E = /* @__PURE__ */ new WeakMap(), C = r.createTreeWalker(r, 129, null, false)
|
4987
|
-
|
4988
|
-
|
5052
|
+
const i = window, s = i.trustedTypes, e = s ? s.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o = "$lit$", n = `lit$${(Math.random() + "").slice(9)}$`, l = "?" + n, h = `<${l}>`, r = document, u = () => r.createComment(""), d = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, c = Array.isArray, v = (t2) => c(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), a = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _ = /-->/g, m = />/g, p = RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^
|
5053
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), g = /'/g, $ = /"/g, y = /^(?:script|style|textarea|title)$/i, w = (t2) => (i2, ...s2) => ({ _$litType$: t2, strings: i2, values: s2 }), x = w(1), T = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), E = /* @__PURE__ */ new WeakMap(), C = r.createTreeWalker(r, 129, null, false);
|
5054
|
+
function P(t2, i2) {
|
5055
|
+
if (!Array.isArray(t2) || !t2.hasOwnProperty("raw"))
|
5056
|
+
throw Error("invalid template strings array");
|
5057
|
+
return void 0 !== e ? e.createHTML(i2) : i2;
|
5058
|
+
}
|
5059
|
+
const V = (t2, i2) => {
|
5060
|
+
const s2 = t2.length - 1, e2 = [];
|
5061
|
+
let l2, r2 = 2 === i2 ? "<svg>" : "", u2 = f;
|
4989
5062
|
for (let i3 = 0; i3 < s2; i3++) {
|
4990
5063
|
const s3 = t2[i3];
|
4991
|
-
let
|
4992
|
-
for (; a2 < s3.length && (u2.lastIndex = a2,
|
4993
|
-
a2 = u2.lastIndex, u2 === f ? "!--" ===
|
5064
|
+
let d2, c2, v2 = -1, a2 = 0;
|
5065
|
+
for (; a2 < s3.length && (u2.lastIndex = a2, c2 = u2.exec(s3), null !== c2); )
|
5066
|
+
a2 = u2.lastIndex, u2 === f ? "!--" === c2[1] ? u2 = _ : void 0 !== c2[1] ? u2 = m : void 0 !== c2[2] ? (y.test(c2[2]) && (l2 = RegExp("</" + c2[2], "g")), u2 = p) : void 0 !== c2[3] && (u2 = p) : u2 === p ? ">" === c2[0] ? (u2 = null != l2 ? l2 : f, v2 = -1) : void 0 === c2[1] ? v2 = -2 : (v2 = u2.lastIndex - c2[2].length, d2 = c2[1], u2 = void 0 === c2[3] ? p : '"' === c2[3] ? $ : g) : u2 === $ || u2 === g ? u2 = p : u2 === _ || u2 === m ? u2 = f : (u2 = p, l2 = void 0);
|
4994
5067
|
const w2 = u2 === p && t2[i3 + 1].startsWith("/>") ? " " : "";
|
4995
|
-
|
5068
|
+
r2 += u2 === f ? s3 + h : v2 >= 0 ? (e2.push(d2), s3.slice(0, v2) + o + s3.slice(v2) + n + w2) : s3 + n + (-2 === v2 ? (e2.push(void 0), i3) : w2);
|
4996
5069
|
}
|
4997
|
-
|
4998
|
-
if (!Array.isArray(t2) || !t2.hasOwnProperty("raw"))
|
4999
|
-
throw Error("invalid template strings array");
|
5000
|
-
return [void 0 !== e ? e.createHTML(c2) : c2, l2];
|
5070
|
+
return [P(t2, r2 + (t2[s2] || "<?>") + (2 === i2 ? "</svg>" : "")), e2];
|
5001
5071
|
};
|
5002
|
-
class
|
5072
|
+
class N {
|
5003
5073
|
constructor({ strings: t2, _$litType$: i2 }, e2) {
|
5004
5074
|
let h2;
|
5005
5075
|
this.parts = [];
|
5006
|
-
let r2 = 0,
|
5007
|
-
const c2 = t2.length - 1, v2 = this.parts, [a2, f2] =
|
5008
|
-
if (this.el =
|
5076
|
+
let r2 = 0, d2 = 0;
|
5077
|
+
const c2 = t2.length - 1, v2 = this.parts, [a2, f2] = V(t2, i2);
|
5078
|
+
if (this.el = N.createElement(a2, e2), C.currentNode = this.el.content, 2 === i2) {
|
5009
5079
|
const t3 = this.el.content, i3 = t3.firstChild;
|
5010
5080
|
i3.remove(), t3.append(...i3.childNodes);
|
5011
5081
|
}
|
@@ -5015,10 +5085,10 @@ class V {
|
|
5015
5085
|
const t3 = [];
|
5016
5086
|
for (const i3 of h2.getAttributeNames())
|
5017
5087
|
if (i3.endsWith(o) || i3.startsWith(n)) {
|
5018
|
-
const s2 = f2[
|
5088
|
+
const s2 = f2[d2++];
|
5019
5089
|
if (t3.push(i3), void 0 !== s2) {
|
5020
5090
|
const t4 = h2.getAttribute(s2.toLowerCase() + o).split(n), i4 = /([.?@])?(.*)/.exec(s2);
|
5021
|
-
v2.push({ type: 1, index: r2, name: i4[2], strings: t4, ctor: "." === i4[1] ?
|
5091
|
+
v2.push({ type: 1, index: r2, name: i4[2], strings: t4, ctor: "." === i4[1] ? H : "?" === i4[1] ? L : "@" === i4[1] ? z : k });
|
5022
5092
|
} else
|
5023
5093
|
v2.push({ type: 6, index: r2 });
|
5024
5094
|
}
|
@@ -5030,8 +5100,8 @@ class V {
|
|
5030
5100
|
if (i3 > 0) {
|
5031
5101
|
h2.textContent = s ? s.emptyScript : "";
|
5032
5102
|
for (let s2 = 0; s2 < i3; s2++)
|
5033
|
-
h2.append(t3[s2],
|
5034
|
-
h2.append(t3[i3],
|
5103
|
+
h2.append(t3[s2], u()), C.nextNode(), v2.push({ type: 2, index: ++r2 });
|
5104
|
+
h2.append(t3[i3], u());
|
5035
5105
|
}
|
5036
5106
|
}
|
5037
5107
|
} else if (8 === h2.nodeType)
|
@@ -5050,15 +5120,15 @@ class V {
|
|
5050
5120
|
return s2.innerHTML = t2, s2;
|
5051
5121
|
}
|
5052
5122
|
}
|
5053
|
-
function
|
5123
|
+
function S(t2, i2, s2 = t2, e2) {
|
5054
5124
|
var o2, n2, l2, h2;
|
5055
5125
|
if (i2 === T)
|
5056
5126
|
return i2;
|
5057
5127
|
let r2 = void 0 !== e2 ? null === (o2 = s2._$Co) || void 0 === o2 ? void 0 : o2[e2] : s2._$Cl;
|
5058
|
-
const
|
5059
|
-
return (null == r2 ? void 0 : r2.constructor) !==
|
5128
|
+
const u2 = d(i2) ? void 0 : i2._$litDirective$;
|
5129
|
+
return (null == r2 ? void 0 : r2.constructor) !== u2 && (null === (n2 = null == r2 ? void 0 : r2._$AO) || void 0 === n2 || n2.call(r2, false), void 0 === u2 ? r2 = void 0 : (r2 = new u2(t2), r2._$AT(t2, s2, e2)), void 0 !== e2 ? (null !== (l2 = (h2 = s2)._$Co) && void 0 !== l2 ? l2 : h2._$Co = [])[e2] = r2 : s2._$Cl = r2), void 0 !== r2 && (i2 = S(t2, r2._$AS(t2, i2.values), r2, e2)), i2;
|
5060
5130
|
}
|
5061
|
-
class
|
5131
|
+
class M {
|
5062
5132
|
constructor(t2, i2) {
|
5063
5133
|
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i2;
|
5064
5134
|
}
|
@@ -5072,13 +5142,13 @@ class S {
|
|
5072
5142
|
var i2;
|
5073
5143
|
const { el: { content: s2 }, parts: e2 } = this._$AD, o2 = (null !== (i2 = null == t2 ? void 0 : t2.creationScope) && void 0 !== i2 ? i2 : r).importNode(s2, true);
|
5074
5144
|
C.currentNode = o2;
|
5075
|
-
let n2 = C.nextNode(), l2 = 0, h2 = 0,
|
5076
|
-
for (; void 0 !==
|
5077
|
-
if (l2 ===
|
5145
|
+
let n2 = C.nextNode(), l2 = 0, h2 = 0, u2 = e2[0];
|
5146
|
+
for (; void 0 !== u2; ) {
|
5147
|
+
if (l2 === u2.index) {
|
5078
5148
|
let i3;
|
5079
|
-
2 ===
|
5149
|
+
2 === u2.type ? i3 = new R(n2, n2.nextSibling, this, t2) : 1 === u2.type ? i3 = new u2.ctor(n2, u2.name, u2.strings, this, t2) : 6 === u2.type && (i3 = new Z(n2, this, t2)), this._$AV.push(i3), u2 = e2[++h2];
|
5080
5150
|
}
|
5081
|
-
l2 !== (null ==
|
5151
|
+
l2 !== (null == u2 ? void 0 : u2.index) && (n2 = C.nextNode(), l2++);
|
5082
5152
|
}
|
5083
5153
|
return C.currentNode = r, o2;
|
5084
5154
|
}
|
@@ -5088,7 +5158,7 @@ class S {
|
|
5088
5158
|
void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i2), i2 += s2.strings.length - 2) : s2._$AI(t2[i2])), i2++;
|
5089
5159
|
}
|
5090
5160
|
}
|
5091
|
-
class
|
5161
|
+
class R {
|
5092
5162
|
constructor(t2, i2, s2, e2) {
|
5093
5163
|
var o2;
|
5094
5164
|
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t2, this._$AB = i2, this._$AM = s2, this.options = e2, this._$Cp = null === (o2 = null == e2 ? void 0 : e2.isConnected) || void 0 === o2 || o2;
|
@@ -5109,7 +5179,7 @@ class M {
|
|
5109
5179
|
return this._$AB;
|
5110
5180
|
}
|
5111
5181
|
_$AI(t2, i2 = this) {
|
5112
|
-
t2 =
|
5182
|
+
t2 = S(this, t2, i2), d(t2) ? t2 === A || null == t2 || "" === t2 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t2 !== this._$AH && t2 !== T && this._(t2) : void 0 !== t2._$litType$ ? this.g(t2) : void 0 !== t2.nodeType ? this.$(t2) : v(t2) ? this.T(t2) : this._(t2);
|
5113
5183
|
}
|
5114
5184
|
k(t2) {
|
5115
5185
|
return this._$AA.parentNode.insertBefore(t2, this._$AB);
|
@@ -5118,28 +5188,28 @@ class M {
|
|
5118
5188
|
this._$AH !== t2 && (this._$AR(), this._$AH = this.k(t2));
|
5119
5189
|
}
|
5120
5190
|
_(t2) {
|
5121
|
-
this._$AH !== A &&
|
5191
|
+
this._$AH !== A && d(this._$AH) ? this._$AA.nextSibling.data = t2 : this.$(r.createTextNode(t2)), this._$AH = t2;
|
5122
5192
|
}
|
5123
5193
|
g(t2) {
|
5124
5194
|
var i2;
|
5125
|
-
const { values: s2, _$litType$: e2 } = t2, o2 = "number" == typeof e2 ? this._$AC(t2) : (void 0 === e2.el && (e2.el =
|
5195
|
+
const { values: s2, _$litType$: e2 } = t2, o2 = "number" == typeof e2 ? this._$AC(t2) : (void 0 === e2.el && (e2.el = N.createElement(P(e2.h, e2.h[0]), this.options)), e2);
|
5126
5196
|
if ((null === (i2 = this._$AH) || void 0 === i2 ? void 0 : i2._$AD) === o2)
|
5127
5197
|
this._$AH.v(s2);
|
5128
5198
|
else {
|
5129
|
-
const t3 = new
|
5199
|
+
const t3 = new M(o2, this), i3 = t3.u(this.options);
|
5130
5200
|
t3.v(s2), this.$(i3), this._$AH = t3;
|
5131
5201
|
}
|
5132
5202
|
}
|
5133
5203
|
_$AC(t2) {
|
5134
5204
|
let i2 = E.get(t2.strings);
|
5135
|
-
return void 0 === i2 && E.set(t2.strings, i2 = new
|
5205
|
+
return void 0 === i2 && E.set(t2.strings, i2 = new N(t2)), i2;
|
5136
5206
|
}
|
5137
5207
|
T(t2) {
|
5138
5208
|
c(this._$AH) || (this._$AH = [], this._$AR());
|
5139
5209
|
const i2 = this._$AH;
|
5140
5210
|
let s2, e2 = 0;
|
5141
5211
|
for (const o2 of t2)
|
5142
|
-
e2 === i2.length ? i2.push(s2 = new
|
5212
|
+
e2 === i2.length ? i2.push(s2 = new R(this.k(u()), this.k(u()), this, this.options)) : s2 = i2[e2], s2._$AI(o2), e2++;
|
5143
5213
|
e2 < i2.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i2.length = e2);
|
5144
5214
|
}
|
5145
5215
|
_$AR(t2 = this._$AA.nextSibling, i2) {
|
@@ -5154,7 +5224,7 @@ class M {
|
|
5154
5224
|
void 0 === this._$AM && (this._$Cp = t2, null === (i2 = this._$AP) || void 0 === i2 || i2.call(this, t2));
|
5155
5225
|
}
|
5156
5226
|
}
|
5157
|
-
class
|
5227
|
+
class k {
|
5158
5228
|
constructor(t2, i2, s2, e2, o2) {
|
5159
5229
|
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t2, this.name = i2, this._$AM = e2, this.options = o2, s2.length > 2 || "" !== s2[0] || "" !== s2[1] ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = A;
|
5160
5230
|
}
|
@@ -5168,12 +5238,12 @@ class R {
|
|
5168
5238
|
const o2 = this.strings;
|
5169
5239
|
let n2 = false;
|
5170
5240
|
if (void 0 === o2)
|
5171
|
-
t2 =
|
5241
|
+
t2 = S(this, t2, i2, 0), n2 = !d(t2) || t2 !== this._$AH && t2 !== T, n2 && (this._$AH = t2);
|
5172
5242
|
else {
|
5173
5243
|
const e3 = t2;
|
5174
5244
|
let l2, h2;
|
5175
5245
|
for (t2 = o2[0], l2 = 0; l2 < o2.length - 1; l2++)
|
5176
|
-
h2 =
|
5246
|
+
h2 = S(this, e3[s2 + l2], i2, l2), h2 === T && (h2 = this._$AH[l2]), n2 || (n2 = !d(h2) || h2 !== this._$AH[l2]), h2 === A ? t2 = A : t2 !== A && (t2 += (null != h2 ? h2 : "") + o2[l2 + 1]), this._$AH[l2] = h2;
|
5177
5247
|
}
|
5178
5248
|
n2 && !e2 && this.j(t2);
|
5179
5249
|
}
|
@@ -5181,7 +5251,7 @@ class R {
|
|
5181
5251
|
t2 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t2 ? t2 : "");
|
5182
5252
|
}
|
5183
5253
|
}
|
5184
|
-
class
|
5254
|
+
class H extends k {
|
5185
5255
|
constructor() {
|
5186
5256
|
super(...arguments), this.type = 3;
|
5187
5257
|
}
|
@@ -5189,22 +5259,22 @@ class k extends R {
|
|
5189
5259
|
this.element[this.name] = t2 === A ? void 0 : t2;
|
5190
5260
|
}
|
5191
5261
|
}
|
5192
|
-
const
|
5193
|
-
class
|
5262
|
+
const I = s ? s.emptyScript : "";
|
5263
|
+
class L extends k {
|
5194
5264
|
constructor() {
|
5195
5265
|
super(...arguments), this.type = 4;
|
5196
5266
|
}
|
5197
5267
|
j(t2) {
|
5198
|
-
t2 && t2 !== A ? this.element.setAttribute(this.name,
|
5268
|
+
t2 && t2 !== A ? this.element.setAttribute(this.name, I) : this.element.removeAttribute(this.name);
|
5199
5269
|
}
|
5200
5270
|
}
|
5201
|
-
class
|
5271
|
+
class z extends k {
|
5202
5272
|
constructor(t2, i2, s2, e2, o2) {
|
5203
5273
|
super(t2, i2, s2, e2, o2), this.type = 5;
|
5204
5274
|
}
|
5205
5275
|
_$AI(t2, i2 = this) {
|
5206
5276
|
var s2;
|
5207
|
-
if ((t2 = null !== (s2 =
|
5277
|
+
if ((t2 = null !== (s2 = S(this, t2, i2, 0)) && void 0 !== s2 ? s2 : A) === T)
|
5208
5278
|
return;
|
5209
5279
|
const e2 = this._$AH, o2 = t2 === A && e2 !== A || t2.capture !== e2.capture || t2.once !== e2.once || t2.passive !== e2.passive, n2 = t2 !== A && (e2 === A || o2);
|
5210
5280
|
o2 && this.element.removeEventListener(this.name, this, e2), n2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
@@ -5214,7 +5284,7 @@ class L extends R {
|
|
5214
5284
|
"function" == typeof this._$AH ? this._$AH.call(null !== (s2 = null === (i2 = this.options) || void 0 === i2 ? void 0 : i2.host) && void 0 !== s2 ? s2 : this.element, t2) : this._$AH.handleEvent(t2);
|
5215
5285
|
}
|
5216
5286
|
}
|
5217
|
-
class
|
5287
|
+
class Z {
|
5218
5288
|
constructor(t2, i2, s2) {
|
5219
5289
|
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i2, this.options = s2;
|
5220
5290
|
}
|
@@ -5222,18 +5292,18 @@ class z {
|
|
5222
5292
|
return this._$AM._$AU;
|
5223
5293
|
}
|
5224
5294
|
_$AI(t2) {
|
5225
|
-
|
5295
|
+
S(this, t2);
|
5226
5296
|
}
|
5227
5297
|
}
|
5228
|
-
const
|
5229
|
-
null ==
|
5230
|
-
const
|
5298
|
+
const B = i.litHtmlPolyfillSupport;
|
5299
|
+
null == B || B(N, R), (null !== (t = i.litHtmlVersions) && void 0 !== t ? t : i.litHtmlVersions = []).push("2.8.0");
|
5300
|
+
const D = (t2, i2, s2) => {
|
5231
5301
|
var e2, o2;
|
5232
5302
|
const n2 = null !== (e2 = null == s2 ? void 0 : s2.renderBefore) && void 0 !== e2 ? e2 : i2;
|
5233
5303
|
let l2 = n2._$litPart$;
|
5234
5304
|
if (void 0 === l2) {
|
5235
5305
|
const t3 = null !== (o2 = null == s2 ? void 0 : s2.renderBefore) && void 0 !== o2 ? o2 : null;
|
5236
|
-
n2._$litPart$ = l2 = new
|
5306
|
+
n2._$litPart$ = l2 = new R(i2.insertBefore(u(), t3), t3, void 0, null != s2 ? s2 : {});
|
5237
5307
|
}
|
5238
5308
|
return l2._$AI(t2), l2;
|
5239
5309
|
};
|
@@ -5324,12 +5394,12 @@ function contentToArrayOfNodes(rawContent) {
|
|
5324
5394
|
}
|
5325
5395
|
function parseContent(buffer, content, extraProperties) {
|
5326
5396
|
if (typeof content !== "object") {
|
5327
|
-
buffer.push(
|
5397
|
+
buffer.push("".concat(content));
|
5328
5398
|
return;
|
5329
5399
|
}
|
5330
5400
|
contentToArrayOfNodes(content).forEach((el) => {
|
5331
5401
|
if (typeof el !== "object") {
|
5332
|
-
buffer.push(
|
5402
|
+
buffer.push("".concat(el));
|
5333
5403
|
return;
|
5334
5404
|
}
|
5335
5405
|
const {
|
@@ -5340,11 +5410,11 @@ function parseContent(buffer, content, extraProperties) {
|
|
5340
5410
|
// content: nextContent,
|
5341
5411
|
} = el;
|
5342
5412
|
const isVoid = isVoidTag(el);
|
5343
|
-
const initialTagOpen =
|
5413
|
+
const initialTagOpen = "<".concat(tag);
|
5344
5414
|
const initialTagClose = isVoid ? "/>" : ">";
|
5345
|
-
const finalTag =
|
5415
|
+
const finalTag = "</".concat(tag, ">");
|
5346
5416
|
const initialTagAttributes = Object.entries(attributes).reduce((acc, [name, value]) => {
|
5347
|
-
acc.push(
|
5417
|
+
acc.push("".concat(name, '="').concat(value, '"'));
|
5348
5418
|
return acc;
|
5349
5419
|
}, []);
|
5350
5420
|
const initialTagBooleanAttributes = toArray(booleanAttributes);
|
@@ -5354,17 +5424,17 @@ function parseContent(buffer, content, extraProperties) {
|
|
5354
5424
|
}, { override: {}, props: {} });
|
5355
5425
|
const initialTagExtraProperties = Array.from(extraProperties.keys()).map((prop) => {
|
5356
5426
|
var _a2;
|
5357
|
-
return
|
5427
|
+
return ".".concat(prop, "=${").concat((_a2 = override[prop]) != null ? _a2 : prop, "}");
|
5358
5428
|
});
|
5359
5429
|
const initialTagProperties = Object.entries(props).reduce((acc, [name, value]) => {
|
5360
5430
|
switch (typeof value) {
|
5361
5431
|
case "object":
|
5362
5432
|
case "number":
|
5363
5433
|
case "boolean":
|
5364
|
-
acc.push(
|
5434
|
+
acc.push(".".concat(name, "=${").concat(JSON.stringify(value), "}"));
|
5365
5435
|
break;
|
5366
5436
|
case "string":
|
5367
|
-
acc.push(
|
5437
|
+
acc.push(".".concat(name, '=${"').concat(value, '"}'));
|
5368
5438
|
break;
|
5369
5439
|
}
|
5370
5440
|
return acc;
|
@@ -5395,216 +5465,193 @@ const assetsURL = function(dep, importerUrl) {
|
|
5395
5465
|
};
|
5396
5466
|
const seen = {};
|
5397
5467
|
const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
5398
|
-
|
5399
|
-
|
5400
|
-
|
5401
|
-
|
5402
|
-
|
5403
|
-
|
5404
|
-
|
5405
|
-
|
5406
|
-
|
5407
|
-
|
5408
|
-
|
5409
|
-
|
5410
|
-
|
5411
|
-
|
5412
|
-
|
5413
|
-
|
5414
|
-
|
5468
|
+
let promise = Promise.resolve();
|
5469
|
+
if (deps && deps.length > 0) {
|
5470
|
+
const links = document.getElementsByTagName("link");
|
5471
|
+
promise = Promise.all(deps.map((dep) => {
|
5472
|
+
dep = assetsURL(dep, importerUrl);
|
5473
|
+
if (dep in seen)
|
5474
|
+
return;
|
5475
|
+
seen[dep] = true;
|
5476
|
+
const isCss = dep.endsWith(".css");
|
5477
|
+
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
|
5478
|
+
const isBaseRelative = !!importerUrl;
|
5479
|
+
if (isBaseRelative) {
|
5480
|
+
for (let i2 = links.length - 1; i2 >= 0; i2--) {
|
5481
|
+
const link2 = links[i2];
|
5482
|
+
if (link2.href === dep && (!isCss || link2.rel === "stylesheet")) {
|
5483
|
+
return;
|
5484
|
+
}
|
5415
5485
|
}
|
5486
|
+
} else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
|
5487
|
+
return;
|
5416
5488
|
}
|
5417
|
-
|
5418
|
-
|
5419
|
-
|
5420
|
-
|
5421
|
-
|
5422
|
-
|
5423
|
-
link.
|
5424
|
-
link
|
5425
|
-
|
5426
|
-
|
5427
|
-
|
5428
|
-
|
5429
|
-
|
5430
|
-
|
5431
|
-
|
5432
|
-
|
5489
|
+
const link = document.createElement("link");
|
5490
|
+
link.rel = isCss ? "stylesheet" : scriptRel;
|
5491
|
+
if (!isCss) {
|
5492
|
+
link.as = "script";
|
5493
|
+
link.crossOrigin = "";
|
5494
|
+
}
|
5495
|
+
link.href = dep;
|
5496
|
+
document.head.appendChild(link);
|
5497
|
+
if (isCss) {
|
5498
|
+
return new Promise((res, rej) => {
|
5499
|
+
link.addEventListener("load", res);
|
5500
|
+
link.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`)));
|
5501
|
+
});
|
5502
|
+
}
|
5503
|
+
}));
|
5504
|
+
}
|
5505
|
+
return promise.then(() => baseModule()).catch((err) => {
|
5506
|
+
const e2 = new Event("vite:preloadError", { cancelable: true });
|
5507
|
+
e2.payload = err;
|
5508
|
+
window.dispatchEvent(e2);
|
5509
|
+
if (!e2.defaultPrevented) {
|
5510
|
+
throw err;
|
5433
5511
|
}
|
5434
|
-
})
|
5512
|
+
});
|
5435
5513
|
};
|
5436
|
-
|
5437
|
-
__vitePreload(() => import("./errors-
|
5514
|
+
const error = (message, ...args) => {
|
5515
|
+
__vitePreload(() => import("./errors-PsWGnPGW.js"), true ? __vite__mapDeps([]) : void 0, import.meta.url).then(({ default: errorMap }) => {
|
5438
5516
|
const handler2 = errorMap[message];
|
5439
5517
|
handler2 ? console.error(handler2(...args)) : console.error(...args);
|
5440
5518
|
}).catch((err) => {
|
5441
5519
|
console.error(
|
5442
|
-
|
5520
|
+
"[micro-lc][composer]: Dynamic import error while importing logger utils - ".concat(err.message)
|
5443
5521
|
);
|
5444
5522
|
});
|
5445
|
-
}
|
5446
|
-
|
5447
|
-
|
5448
|
-
|
5449
|
-
|
5450
|
-
}
|
5451
|
-
const logger = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
5452
|
-
__proto__: null,
|
5523
|
+
};
|
5524
|
+
const dynamicImportError = (name) => (err) => {
|
5525
|
+
error("0", name, err.message);
|
5526
|
+
};
|
5527
|
+
const logger = {
|
5453
5528
|
dynamicImportError,
|
5454
5529
|
error
|
5530
|
+
};
|
5531
|
+
const logger$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
5532
|
+
__proto__: null,
|
5533
|
+
logger
|
5455
5534
|
}, Symbol.toStringTag, { value: "Module" }));
|
5456
|
-
var logger_default = logger;
|
5457
|
-
|
5458
|
-
|
5459
|
-
|
5460
|
-
|
5461
|
-
|
5535
|
+
var logger_default = logger$1;
|
5536
|
+
const createBuffer = () => {
|
5537
|
+
const buffer = [];
|
5538
|
+
return Object.assign(
|
5539
|
+
buffer,
|
5540
|
+
{
|
5541
|
+
append: (char) => {
|
5542
|
+
buffer[buffer.length - 1] += char;
|
5543
|
+
},
|
5544
|
+
flush: () => {
|
5545
|
+
buffer.push("");
|
5546
|
+
}
|
5547
|
+
}
|
5548
|
+
);
|
5462
5549
|
};
|
5463
|
-
|
5464
|
-
|
5465
|
-
|
5466
|
-
|
5467
|
-
|
5468
|
-
|
5469
|
-
|
5470
|
-
|
5471
|
-
|
5472
|
-
|
5473
|
-
/* String */
|
5474
|
-
);
|
5475
|
-
__publicField$2(this, "_st", []);
|
5476
|
-
__publicField$2(this, "_n", 0);
|
5477
|
-
__publicField$2(this, "_li", []);
|
5478
|
-
__publicField$2(this, "_v", []);
|
5479
|
-
this._s = input;
|
5480
|
-
this._l = input.length;
|
5481
|
-
if (input.length === 0) {
|
5482
|
-
this._d = true;
|
5483
|
-
}
|
5484
|
-
}
|
5485
|
-
_sw(mode) {
|
5486
|
-
this._m = mode;
|
5487
|
-
}
|
5488
|
-
_fst() {
|
5489
|
-
this._st = [];
|
5490
|
-
}
|
5491
|
-
_fn() {
|
5492
|
-
this._v.push(this._st.join(""));
|
5493
|
-
this._fst();
|
5494
|
-
}
|
5495
|
-
_fs() {
|
5496
|
-
this._li.push(this._st.join(""));
|
5497
|
-
this._fst();
|
5498
|
-
}
|
5499
|
-
_fpn() {
|
5500
|
-
this._li.push(this._st.slice(0, -1).join(""));
|
5501
|
-
this._fst();
|
5502
|
-
}
|
5503
|
-
_nx() {
|
5504
|
-
const current = this._s.charAt(this._i);
|
5505
|
-
switch (this._m) {
|
5506
|
-
case 1: {
|
5507
|
-
if (current === "{") {
|
5508
|
-
this._n += 1;
|
5509
|
-
this._st.push(current);
|
5510
|
-
} else if (current === "}" && this._n === 0) {
|
5511
|
-
this._fn();
|
5512
|
-
this._sw(
|
5513
|
-
0
|
5514
|
-
/* String */
|
5515
|
-
);
|
5516
|
-
} else if (current === "}" && this._n > 0) {
|
5517
|
-
this._st.push(current);
|
5518
|
-
this._n -= 1;
|
5519
|
-
} else {
|
5520
|
-
this._st.push(current);
|
5521
|
-
}
|
5522
|
-
break;
|
5550
|
+
const createLiteralBuffer = () => {
|
5551
|
+
const buffer = [""];
|
5552
|
+
return Object.assign(
|
5553
|
+
buffer,
|
5554
|
+
{
|
5555
|
+
append: (char) => {
|
5556
|
+
buffer[buffer.length - 1] += char;
|
5557
|
+
},
|
5558
|
+
flush: () => {
|
5559
|
+
buffer.push("");
|
5523
5560
|
}
|
5524
|
-
|
5525
|
-
|
5526
|
-
|
5527
|
-
|
5528
|
-
|
5529
|
-
|
5530
|
-
|
5531
|
-
|
5532
|
-
|
5533
|
-
|
5534
|
-
|
5535
|
-
|
5536
|
-
|
5561
|
+
}
|
5562
|
+
);
|
5563
|
+
};
|
5564
|
+
const createLiteralsTemplate = (li, variables) => {
|
5565
|
+
const value = [...li];
|
5566
|
+
return {
|
5567
|
+
literals: Object.defineProperty(value, "raw", { get: () => value }),
|
5568
|
+
variables: [...variables]
|
5569
|
+
};
|
5570
|
+
};
|
5571
|
+
const createContext = () => ({
|
5572
|
+
braceCnt: 0,
|
5573
|
+
literals: createLiteralBuffer(),
|
5574
|
+
mode: 0,
|
5575
|
+
variables: createBuffer()
|
5576
|
+
});
|
5577
|
+
const createLexer = (input) => {
|
5578
|
+
const parse2 = () => {
|
5579
|
+
const parsed = Array.from(input).reduce((acc, next) => {
|
5580
|
+
switch (acc.mode) {
|
5581
|
+
case 2: {
|
5582
|
+
if (next === "}" && acc.braceCnt === 0) {
|
5583
|
+
acc.mode = 0;
|
5584
|
+
break;
|
5585
|
+
}
|
5586
|
+
if (next === "{") {
|
5587
|
+
acc.braceCnt += 1;
|
5588
|
+
} else if (next === "}" && acc.braceCnt > 0) {
|
5589
|
+
acc.braceCnt -= 1;
|
5590
|
+
}
|
5591
|
+
acc.variables.append(next);
|
5592
|
+
break;
|
5537
5593
|
}
|
5538
|
-
|
5539
|
-
|
5540
|
-
|
5541
|
-
|
5542
|
-
|
5543
|
-
|
5544
|
-
|
5545
|
-
|
5546
|
-
|
5594
|
+
case 1: {
|
5595
|
+
acc.literals.append(next);
|
5596
|
+
if (next === "{") {
|
5597
|
+
acc.literals.flush();
|
5598
|
+
acc.variables.flush();
|
5599
|
+
acc.mode = 2;
|
5600
|
+
} else {
|
5601
|
+
acc.mode = 0;
|
5602
|
+
}
|
5603
|
+
break;
|
5604
|
+
}
|
5605
|
+
case 0:
|
5606
|
+
default: {
|
5607
|
+
if (next === "$") {
|
5608
|
+
acc.mode = 1;
|
5609
|
+
}
|
5610
|
+
acc.literals.append(next);
|
5547
5611
|
}
|
5548
|
-
this._st.push(current);
|
5549
|
-
break;
|
5550
5612
|
}
|
5551
|
-
|
5552
|
-
|
5553
|
-
if (
|
5554
|
-
|
5555
|
-
|
5556
|
-
|
5557
|
-
|
5558
|
-
|
5559
|
-
|
5560
|
-
throw new TypeError("41", { cause: `${this._i}` });
|
5613
|
+
return acc;
|
5614
|
+
}, createContext());
|
5615
|
+
if (parsed.mode === 2) {
|
5616
|
+
parsed.literals.pop();
|
5617
|
+
parsed.literals.append(parsed.variables.pop());
|
5618
|
+
}
|
5619
|
+
parsed.literals.forEach((value, index, literals) => {
|
5620
|
+
if (index < literals.length - 1) {
|
5621
|
+
literals[index] = value.slice(0, -2);
|
5561
5622
|
}
|
5562
|
-
|
5563
|
-
|
5564
|
-
|
5565
|
-
|
5566
|
-
|
5567
|
-
|
5568
|
-
|
5569
|
-
|
5570
|
-
|
5571
|
-
|
5572
|
-
|
5573
|
-
|
5574
|
-
|
5575
|
-
run() {
|
5576
|
-
while (!this._d) {
|
5577
|
-
this._nx();
|
5623
|
+
});
|
5624
|
+
return parsed;
|
5625
|
+
};
|
5626
|
+
let done = input.length === 0;
|
5627
|
+
return {
|
5628
|
+
run: () => {
|
5629
|
+
let context;
|
5630
|
+
if (!done) {
|
5631
|
+
context = parse2();
|
5632
|
+
done = true;
|
5633
|
+
}
|
5634
|
+
const { literals, variables } = context != null ? context : createContext();
|
5635
|
+
return createLiteralsTemplate(literals, variables);
|
5578
5636
|
}
|
5579
|
-
|
5580
|
-
|
5581
|
-
}
|
5637
|
+
};
|
5638
|
+
};
|
5582
5639
|
const digest = async (input, algorithm = "SHA-1") => window.crypto.subtle.digest(
|
5583
5640
|
algorithm,
|
5584
5641
|
new TextEncoder().encode(input)
|
5585
5642
|
);
|
5586
5643
|
const cache = /* @__PURE__ */ new Map();
|
5587
|
-
async
|
5644
|
+
const lexer = async (input) => {
|
5588
5645
|
const hash = await digest(input).catch((err) => {
|
5589
|
-
logger_default.error("40", input, err.message);
|
5646
|
+
logger_default.logger.error("40", input, err.message);
|
5590
5647
|
});
|
5591
5648
|
if (!hash || !cache.has(hash)) {
|
5592
|
-
|
5593
|
-
|
5594
|
-
result = new Lexer2(input).run();
|
5595
|
-
hash && cache.set(hash, result);
|
5596
|
-
} catch (err) {
|
5597
|
-
if (err instanceof TypeError) {
|
5598
|
-
logger_default.error(err.message, input, err.cause);
|
5599
|
-
}
|
5600
|
-
const literals = [];
|
5601
|
-
Object.defineProperty(literals, "raw", { value: literals, writable: false });
|
5602
|
-
result = { literals, variables: [] };
|
5603
|
-
}
|
5649
|
+
const result = createLexer(input).run();
|
5650
|
+
hash && cache.set(hash, result);
|
5604
5651
|
return result;
|
5605
5652
|
}
|
5606
5653
|
return cache.get(hash);
|
5607
|
-
}
|
5654
|
+
};
|
5608
5655
|
class Bus extends ReplaySubject {
|
5609
5656
|
}
|
5610
5657
|
function createPool() {
|
@@ -5639,12 +5686,13 @@ async function createComposerContext(content, { extraProperties, context = {} }
|
|
5639
5686
|
const template = await lexer(htmlBuffer);
|
5640
5687
|
const variables = interpolate(template.variables, context);
|
5641
5688
|
const htmlTemplate = x(template.literals, ...variables);
|
5642
|
-
return (container, options) =>
|
5689
|
+
return (container, options) => D(htmlTemplate, container, options);
|
5643
5690
|
}
|
5644
5691
|
async function premount(config2, proxyWindow = window, reporter2 = console.error) {
|
5645
5692
|
var _a2;
|
5646
5693
|
let uris = [];
|
5647
5694
|
let importmap;
|
5695
|
+
let modules = {};
|
5648
5696
|
let done = Promise.resolve();
|
5649
5697
|
if (config2.sources) {
|
5650
5698
|
const { sources } = config2;
|
@@ -5657,13 +5705,18 @@ async function premount(config2, proxyWindow = window, reporter2 = console.error
|
|
5657
5705
|
uris = parseSources(sources);
|
5658
5706
|
if (uris.length > 0) {
|
5659
5707
|
done = Promise.all(uris.map(
|
5660
|
-
(uri) => proxyWindow.importShim(uri).
|
5708
|
+
(uri) => proxyWindow.importShim(uri).then((module) => {
|
5709
|
+
modules = {
|
5710
|
+
...modules,
|
5711
|
+
[uri]: module
|
5712
|
+
};
|
5713
|
+
}).catch(reporter2)
|
5661
5714
|
));
|
5662
5715
|
}
|
5663
5716
|
}
|
5664
5717
|
return done.then(() => ({
|
5665
5718
|
...config2,
|
5666
|
-
sources: { importmap, uris }
|
5719
|
+
sources: { importmap, modules, uris }
|
5667
5720
|
}));
|
5668
5721
|
}
|
5669
5722
|
async function render(config2, container, context = {}) {
|
@@ -5720,7 +5773,7 @@ const mouseOnElementFactory = (self2, postChannel, channels) => {
|
|
5720
5773
|
if (isControlledElement(channels.uppercaseTags, next)) {
|
5721
5774
|
const id = next.getAttribute(MIA_PREVIEW_ID);
|
5722
5775
|
acc.ids.push(id);
|
5723
|
-
acc.selectors.push(
|
5776
|
+
acc.selectors.push("[".concat(MIA_PREVIEW_ID, '="').concat(id, '"]'));
|
5724
5777
|
}
|
5725
5778
|
return acc;
|
5726
5779
|
}, { ids: [], selectors: [] });
|
@@ -6017,8 +6070,8 @@ const registerParent = (self2, channels) => new src_default(
|
|
6017
6070
|
}
|
6018
6071
|
if (keys[message.type] !== DebugMessage.Skip) {
|
6019
6072
|
const style = { background: this.colors.bg, color: this.colors.fg };
|
6020
|
-
console.groupCollapsed(
|
6021
|
-
console.info(
|
6073
|
+
console.groupCollapsed("%c Msg from ".concat(self2.origin, " (inner) "), Object.entries(style).map(([key, val]) => "".concat(key, ": ").concat(val)).join("; "));
|
6074
|
+
console.info("window '".concat(self2.origin, "' is sending a message of type %c ").concat(message.type, " "), "background: lightgreen; color: darkgreen");
|
6022
6075
|
console.log(message.content);
|
6023
6076
|
console.groupEnd();
|
6024
6077
|
}
|
@@ -6034,12 +6087,13 @@ const ctrlSpaceFactory = (channels) => {
|
|
6034
6087
|
}
|
6035
6088
|
};
|
6036
6089
|
};
|
6090
|
+
const isValidModule = (module) => typeof module === "object" && module !== null && "libraryName" in module && typeof module.libraryName === "string" && "components" in module && Array.isArray(module.components);
|
6037
6091
|
const extractConstructor = ([tag, promise]) => from(promise.then((constructor) => [tag, constructor]));
|
6038
6092
|
const extractManifest = ([
|
6039
6093
|
tag,
|
6040
6094
|
extras
|
6041
6095
|
]) => {
|
6042
|
-
const defaultManifest = { label: tag, properties: {}, type: "layout" };
|
6096
|
+
const defaultManifest = { label: tag.name, properties: {}, type: "layout" };
|
6043
6097
|
const {
|
6044
6098
|
__manifest = Promise.resolve(defaultManifest)
|
6045
6099
|
} = extras;
|
@@ -6050,7 +6104,7 @@ const extractManifest = ([
|
|
6050
6104
|
});
|
6051
6105
|
return from(promise);
|
6052
6106
|
};
|
6053
|
-
const requireInfo = (registry, tags) => from(tags.map((tag) => [tag, registry.whenDefined(tag)])).pipe(
|
6107
|
+
const requireInfo = (registry, tags) => from(tags.map((tag) => [tag, registry.whenDefined(tag.name)])).pipe(
|
6054
6108
|
mergeMap(extractConstructor),
|
6055
6109
|
mergeMap(extractManifest)
|
6056
6110
|
);
|
@@ -6061,9 +6115,9 @@ const reporter = (postChannel, err) => {
|
|
6061
6115
|
}
|
6062
6116
|
};
|
6063
6117
|
const collectInfos = (postChannel, info$, addInfo) => info$.pipe(
|
6064
|
-
mergeMap(([, { __manifest: { label, description, ...rest }, tag }]) => {
|
6118
|
+
mergeMap(([, { __manifest: { label, description, descriptionLong, ...rest }, tag }]) => {
|
6065
6119
|
delete rest.mocks;
|
6066
|
-
return of({ info: { ...translateObject({ description, label }), ...rest }, tag });
|
6120
|
+
return of({ info: { libraryName: tag.libraryName, source: tag.source, ...translateObject({ description, descriptionLong, label }), ...rest }, tag: tag.name });
|
6067
6121
|
}),
|
6068
6122
|
bufferTime(BUFFER_TIME),
|
6069
6123
|
filter((newInfos) => newInfos.length > 0)
|
@@ -6073,7 +6127,7 @@ const collectInfos = (postChannel, info$, addInfo) => info$.pipe(
|
|
6073
6127
|
});
|
6074
6128
|
const collectMocks = (postChannel, subjects, info$) => info$.pipe(
|
6075
6129
|
map(
|
6076
|
-
([, { __manifest: { mocks = {} }, tag }]) => [tag, mocks]
|
6130
|
+
([, { __manifest: { mocks = {} }, tag }]) => [tag.name, mocks]
|
6077
6131
|
)
|
6078
6132
|
).subscribe({
|
6079
6133
|
error: (error2) => reporter(postChannel, error2),
|
@@ -6087,7 +6141,6 @@ async function bootstrap(postChannel, channels, config2, {
|
|
6087
6141
|
}) {
|
6088
6142
|
const { subscription } = this;
|
6089
6143
|
if (config2) {
|
6090
|
-
const info$ = requireInfo(this.customElements, tags);
|
6091
6144
|
return premount(
|
6092
6145
|
config2,
|
6093
6146
|
this,
|
@@ -6095,7 +6148,21 @@ async function bootstrap(postChannel, channels, config2, {
|
|
6095
6148
|
reporter(postChannel, err);
|
6096
6149
|
addInfo([]);
|
6097
6150
|
}
|
6098
|
-
).then(() => {
|
6151
|
+
).then((resolvedConfig) => {
|
6152
|
+
const allTags = Object.entries(resolvedConfig.sources.modules).reduce((acc, [uri, module]) => {
|
6153
|
+
if (isValidModule(module.default)) {
|
6154
|
+
const { components, libraryName } = module.default;
|
6155
|
+
const libTags = components.map((component) => ({ libraryName, name: component, source: uri }));
|
6156
|
+
acc.push(...libTags);
|
6157
|
+
}
|
6158
|
+
return acc;
|
6159
|
+
}, []);
|
6160
|
+
tags.forEach((tag) => {
|
6161
|
+
if (allTags.find((currTag) => currTag.name === tag) === void 0) {
|
6162
|
+
allTags.push({ name: tag, source: "" });
|
6163
|
+
}
|
6164
|
+
});
|
6165
|
+
const info$ = requireInfo(this.customElements, allTags);
|
6099
6166
|
subscription.add(collectInfos(postChannel, info$, addInfo));
|
6100
6167
|
subscription.add(collectMocks(postChannel, channels, info$));
|
6101
6168
|
});
|
@@ -6115,7 +6182,7 @@ const getPreviewContainer = (frame, root) => {
|
|
6115
6182
|
async function update(content, container) {
|
6116
6183
|
const eventBus = createPool();
|
6117
6184
|
const { proxyWindow = this } = this;
|
6118
|
-
return render({ content, sources: { importmap: {}, uris: [] } }, getPreviewContainer(this, container), { eventBus, proxyWindow });
|
6185
|
+
return render({ content, sources: { importmap: {}, modules: {}, uris: [] } }, getPreviewContainer(this, container), { eventBus, proxyWindow });
|
6119
6186
|
}
|
6120
6187
|
function unmount(root) {
|
6121
6188
|
getPreviewContainer(this, root).remove();
|
@@ -6147,11 +6214,11 @@ function fetchMockFactory(instance, fetchFactory, windowHref) {
|
|
6147
6214
|
const isExactUpToQuery = (url, next) => {
|
6148
6215
|
const { href, search } = url;
|
6149
6216
|
const requestUrlWithoutQuery = href.replace(/\?$/, "").substring(0, href.length - search.length);
|
6150
|
-
return requestUrlWithoutQuery.match(new RegExp(
|
6217
|
+
return requestUrlWithoutQuery.match(new RegExp("^".concat(next, "$"))) !== null;
|
6151
6218
|
};
|
6152
6219
|
const isExactUpToTrailingSlash = (url, next) => {
|
6153
6220
|
const { href } = url;
|
6154
|
-
return href.match(new RegExp(
|
6221
|
+
return href.match(new RegExp("^".concat(next.replace(/\/$/, ""), "/"))) !== null;
|
6155
6222
|
};
|
6156
6223
|
class FetchMockStore extends Map {
|
6157
6224
|
constructor(notify) {
|
@@ -6217,9 +6284,9 @@ const printHeaders = (headers) => {
|
|
6217
6284
|
const fetchPrint = (window2, url, init, resHeaders = new Headers()) => {
|
6218
6285
|
var _a2;
|
6219
6286
|
const style = window2.origin === "null" ? { background: "antiquewhite", color: "brown" } : { background: "cyan", color: "blue" };
|
6220
|
-
console.groupCollapsed(
|
6287
|
+
console.groupCollapsed("%c Fetching from ".concat(window2.origin, " "), Object.entries(style).map(([key, val]) => "".concat(key, ": ").concat(val)).join("; "));
|
6221
6288
|
console.info(
|
6222
|
-
|
6289
|
+
"a component fetched with method " + "".concat((_a2 = init == null ? void 0 : init.method) != null ? _a2 : "GET", " resource at %c ").concat(url.href, " got a response with headers ").concat(printHeaders(resHeaders)),
|
6223
6290
|
"background: lightgreen; color: darkgreen"
|
6224
6291
|
);
|
6225
6292
|
console.groupEnd();
|
@@ -6305,7 +6372,7 @@ function open(url, target) {
|
|
6305
6372
|
const { href, origin, pathname } = new URL(url != null ? url : "", this.location.href);
|
6306
6373
|
let next = href;
|
6307
6374
|
if (origin === this.location.origin) {
|
6308
|
-
next =
|
6375
|
+
next = "{ your domain }".concat(pathname);
|
6309
6376
|
}
|
6310
6377
|
this.notify({
|
6311
6378
|
data: { nextUrl: next, target: target != null ? target : "[undefined]" },
|
@@ -6319,7 +6386,7 @@ function pushState(_1, _2, url) {
|
|
6319
6386
|
const { href, origin, pathname } = new URL(url);
|
6320
6387
|
let next = href;
|
6321
6388
|
if (origin === this.location.origin) {
|
6322
|
-
next =
|
6389
|
+
next = "".concat(pathname);
|
6323
6390
|
}
|
6324
6391
|
this.notify({
|
6325
6392
|
data: { nextUrl: next },
|
@@ -6332,7 +6399,7 @@ function replaceState(_1, _2, url) {
|
|
6332
6399
|
const { href, origin, pathname, search } = new URL(url);
|
6333
6400
|
let next = href;
|
6334
6401
|
if (origin === this.location.origin) {
|
6335
|
-
next =
|
6402
|
+
next = "".concat(pathname).concat(search);
|
6336
6403
|
}
|
6337
6404
|
this.notify({
|
6338
6405
|
data: { nextUrl: next },
|
@@ -6423,6 +6490,28 @@ function wrap(frame, notification) {
|
|
6423
6490
|
if (property === "history") {
|
6424
6491
|
return createHistoryProxy.call(target, target.history);
|
6425
6492
|
}
|
6493
|
+
if (property === "location") {
|
6494
|
+
return Object.entries(window.location).reduce((proxy, [key, val]) => {
|
6495
|
+
Object.defineProperty(
|
6496
|
+
proxy,
|
6497
|
+
key,
|
6498
|
+
{
|
6499
|
+
get: () => val,
|
6500
|
+
set: (nextUrl) => {
|
6501
|
+
if (key === "href" && typeof nextUrl === "string") {
|
6502
|
+
target.notify({
|
6503
|
+
data: { nextUrl, target: "_self" },
|
6504
|
+
description: "preview.notifications.navigation-event.description.location.href",
|
6505
|
+
message: "preview.notifications.navigation-event.message",
|
6506
|
+
status: "info"
|
6507
|
+
});
|
6508
|
+
}
|
6509
|
+
}
|
6510
|
+
}
|
6511
|
+
);
|
6512
|
+
return proxy;
|
6513
|
+
}, {});
|
6514
|
+
}
|
6426
6515
|
if (property === "open") {
|
6427
6516
|
return open.bind(target);
|
6428
6517
|
}
|
@@ -6468,7 +6557,7 @@ function appendOverlay(self2, mode$) {
|
|
6468
6557
|
overlay.style.width = "100vw";
|
6469
6558
|
overlay.style.height = "100%";
|
6470
6559
|
overlay.style.backgroundColor = "rgba(0, 0, 0, 0.05)";
|
6471
|
-
overlay.style.zIndex =
|
6560
|
+
overlay.style.zIndex = "".concat(OVERLAY_Z_INDEX);
|
6472
6561
|
const isVisible = () => overlay.style.display === visibleOverlayDisplay;
|
6473
6562
|
const swap = () => isVisible() ? overlay.style.display = "none" : overlay.style.display = visibleOverlayDisplay;
|
6474
6563
|
const subscription = mode$.pipe(
|
@@ -6670,7 +6759,13 @@ function registerParentWindowSenders(chs) {
|
|
6670
6759
|
type: "ctrl-space"
|
6671
6760
|
}))
|
6672
6761
|
);
|
6673
|
-
return () =>
|
6762
|
+
return () => {
|
6763
|
+
this.send({
|
6764
|
+
content: {},
|
6765
|
+
type: "unload"
|
6766
|
+
});
|
6767
|
+
subscription.unsubscribe();
|
6768
|
+
};
|
6674
6769
|
}
|
6675
6770
|
function registerServiceWorkerSenders(channels) {
|
6676
6771
|
const subscription = new Subscription();
|
@@ -6728,6 +6823,12 @@ function registerCleanups(window2, fns) {
|
|
6728
6823
|
]
|
6729
6824
|
);
|
6730
6825
|
})(window).catch((err) => {
|
6731
|
-
console.error(
|
6826
|
+
console.error("[preview] Error Boundary: ".concat(String(err)));
|
6732
6827
|
throw err;
|
6733
6828
|
});
|
6829
|
+
function __vite__mapDeps(indexes) {
|
6830
|
+
if (!__vite__mapDeps.viteFileDeps) {
|
6831
|
+
__vite__mapDeps.viteFileDeps = []
|
6832
|
+
}
|
6833
|
+
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
6834
|
+
}
|