@genome-spy/app 0.85.0 → 0.87.0
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/README.md +28 -0
- package/dist/{agentApi-Cz0hCnVp.js → agentApi-BZ1JCo1N.js} +7174 -8484
- package/dist/agentApi.es.js +3312 -3575
- package/dist/agentShared.es.js +14 -13
- package/dist/canvas2d-B_PnIof-.js +620 -0
- package/dist/canvas2d-Cafq5v-N.js +620 -0
- package/dist/{arrayUtils-LJpQOu-U.js → clipOptions-D6eh9T-_.js} +1060 -634
- package/dist/{paramUtils-BYI4rwyL.js → clipOptions-H68pJyEZ.js} +940 -514
- package/dist/{debug-CgDtmspT.js → debug-BGzgZmyk.js} +8 -8
- package/dist/{debug-BvCZWumf.js → debug-UYKZLNh4.js} +8 -8
- package/dist/index.es.js +2983 -2916
- package/dist/index.js +2006 -1997
- package/dist/indexer-Di57GyxX.js +72 -0
- package/dist/indexer-o6Hpg4nN.js +72 -0
- package/dist/layoutResult-D50MSHXR.js +97 -0
- package/dist/nativeText-D9SoxpaD.js +934 -0
- package/dist/nativeText-DAjvkrzc.js +934 -0
- package/dist/performanceProfiler-CPLEjApa.js +20 -0
- package/dist/rasterExport-DzldLv6E.js +44 -0
- package/dist/rasterExport-IAbJwi8F.js +44 -0
- package/dist/rasterImage-B4rPLaW9.js +18 -0
- package/dist/rasterization-CFogVB3B.js +50 -0
- package/dist/rectangle-DKnrAmKs.js +142 -0
- package/dist/renderCanvas2D-BJ93Ptqj.js +277 -0
- package/dist/renderCanvas2D-yJ1IrDcX.js +277 -0
- package/dist/schema.json +11685 -4428
- package/dist/{svg-yFj875aX.js → svg-BRpl2Xub.js} +412 -449
- package/dist/{svg-CCu8kYy2.js → svg-DJuqHIyc.js} +399 -436
- package/dist/svgRasterizer-CGZQ5njV.js +40 -0
- package/dist/svgRasterizer-PAoqLn1j.js +40 -0
- package/dist/vega-scale-BGC53c22.js +2403 -0
- package/dist/vega-scale-DdW2NzQ3.js +2403 -0
- package/dist/viewError-BiR9VCgL.js +29 -0
- package/dist/{viewIdentityRegistry-BUdkK9zT.js → viewIdentityRegistry-D4p067HU.js} +1 -1
- package/dist/{viewIdentityRegistry-D3oPbN4O.js → viewIdentityRegistry-Dc2hXYsO.js} +1 -1
- package/dist/viewSelectors-DNXnGwEW.js +2015 -0
- package/dist/viewSelectors-DYYlOt91.js +2015 -0
- package/dist/viewUtils-EdhZTPrJ.js +6448 -0
- package/dist/webgl-C53DwzVT.js +4127 -0
- package/dist/webgl-CdgNFlJk.js +4127 -0
- package/package.json +7 -6
- package/dist/bmFontMetrics-CuNB-kNN.js +0 -31
- package/dist/canvas2d-DoAXEiF9.js +0 -309
- package/dist/canvas2d-f5jl4A5D.js +0 -310
- package/dist/clipOptions-gqdb3fvW.js +0 -43
- package/dist/color-W5zffv-z.js +0 -335
- package/dist/framebufferReadback-CCLOjStu.js +0 -148
- package/dist/framebufferReadback-THWwFqs8.js +0 -1994
- package/dist/nativeText-DMO8gLt7.js +0 -806
- package/dist/nativeText-m5AUINMq.js +0 -806
- package/dist/twgl-full.module-DB2UdP1k.js +0 -1849
- package/dist/viewRenderingContext-HtpqwS_x.js +0 -120
- package/dist/viewSelectors-DGCspRN3.js +0 -4198
- package/dist/viewSelectors-U5oLCLHV.js +0 -4195
- package/dist/viewUtils-Dg4RA40Q.js +0 -7503
- package/dist/warning-DRGdb6BF.js +0 -59
- package/dist/webgl-Ci6ZhCCf.js +0 -54
- package/dist/webgl-Dpz8a3TI.js +0 -53
|
@@ -356,11 +356,11 @@ function Oe(e, t, n) {
|
|
|
356
356
|
Oe("id");
|
|
357
357
|
var ke = S((e) => e, [], "identity");
|
|
358
358
|
S(() => 0, [], "zero"), S(() => 1, [], "one"), S(() => !0, [], "true"), S(() => !1, [], "false"), [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
|
|
359
|
-
var
|
|
360
|
-
function
|
|
359
|
+
var C = Array.isArray;
|
|
360
|
+
function Ae(e) {
|
|
361
361
|
return e === Object(e);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function je(e) {
|
|
364
364
|
return e[e.length - 1];
|
|
365
365
|
}
|
|
366
366
|
function Me(e) {
|
|
@@ -368,7 +368,7 @@ function Me(e) {
|
|
|
368
368
|
}
|
|
369
369
|
var Ne = (e) => (t) => e * Math.exp(t), Pe = (e) => (t) => Math.log(e * t), Fe = (e) => (t) => Math.sign(t) * Math.log1p(Math.abs(t / e)), Ie = (e) => (t) => Math.sign(t) * Math.expm1(Math.abs(t)) * e, Le = (e) => (t) => t < 0 ? -((-t) ** +e) : t ** +e;
|
|
370
370
|
function Re(e, t, n, r) {
|
|
371
|
-
let i = n(e[0]), a = n(
|
|
371
|
+
let i = n(e[0]), a = n(je(e)), o = (a - i) * t;
|
|
372
372
|
return [r(i - o), r(a - o)];
|
|
373
373
|
}
|
|
374
374
|
function ze(e, t) {
|
|
@@ -382,7 +382,7 @@ function Ve(e, t, n) {
|
|
|
382
382
|
return Re(e, t, Le(n), Le(1 / n));
|
|
383
383
|
}
|
|
384
384
|
function He(e, t, n, r, i) {
|
|
385
|
-
let a = r(e[0]), o = r(
|
|
385
|
+
let a = r(e[0]), o = r(je(e)), s = t == null ? (a + o) / 2 : r(t);
|
|
386
386
|
return [i(s + (a - s) * n), i(s + (o - s) * n)];
|
|
387
387
|
}
|
|
388
388
|
function Ue(e, t, n) {
|
|
@@ -399,7 +399,7 @@ function Ke(e, t, n, r) {
|
|
|
399
399
|
return He(e, t, n, Fe(r), Ie(r));
|
|
400
400
|
}
|
|
401
401
|
function qe(e) {
|
|
402
|
-
return e == null ? [] :
|
|
402
|
+
return e == null ? [] : C(e) ? e : [e];
|
|
403
403
|
}
|
|
404
404
|
function Je(e, t, n) {
|
|
405
405
|
let r = e[0], i = e[1], a;
|
|
@@ -436,14 +436,14 @@ function w(e) {
|
|
|
436
436
|
return typeof e == "string";
|
|
437
437
|
}
|
|
438
438
|
function at(e, t) {
|
|
439
|
-
let n = e[0], r =
|
|
439
|
+
let n = e[0], r = je(e), i = +t;
|
|
440
440
|
return i ? i === 1 ? r : n + i * (r - n) : n;
|
|
441
441
|
}
|
|
442
442
|
function ot(e) {
|
|
443
|
-
return e &&
|
|
443
|
+
return e && je(e) - e[0] || 0;
|
|
444
444
|
}
|
|
445
445
|
function st(e) {
|
|
446
|
-
return
|
|
446
|
+
return C(e) ? `[${e.map((e) => e === null ? "null" : st(e))}]` : Ae(e) || w(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
447
447
|
}
|
|
448
448
|
function ct(e) {
|
|
449
449
|
let t = {}, n = e.length;
|
|
@@ -451,8 +451,44 @@ function ct(e) {
|
|
|
451
451
|
return t;
|
|
452
452
|
}
|
|
453
453
|
//#endregion
|
|
454
|
-
//#region ../core/src/data/
|
|
454
|
+
//#region ../core/src/data/sideInputBinding.js
|
|
455
455
|
var lt = class {
|
|
456
|
+
#e;
|
|
457
|
+
#t;
|
|
458
|
+
#n = !1;
|
|
459
|
+
#r = !0;
|
|
460
|
+
#i = [];
|
|
461
|
+
constructor(e) {
|
|
462
|
+
this.#e = e, this.#t = Array.from(new Set(e.dataDependencies), (e) => ({
|
|
463
|
+
collector: e,
|
|
464
|
+
consumed: -1
|
|
465
|
+
}));
|
|
466
|
+
for (let t of this.#t) this.#i.push(t.collector.observe(() => {
|
|
467
|
+
e.parent && e.completed && !this.isReady() && e.areDataDependenciesAvailable() && e.requestRepropagate();
|
|
468
|
+
}));
|
|
469
|
+
}
|
|
470
|
+
dispose() {
|
|
471
|
+
for (let e of this.#i) e();
|
|
472
|
+
this.#i.length = 0;
|
|
473
|
+
}
|
|
474
|
+
reset() {
|
|
475
|
+
this.#n = !1, this.#r = !0;
|
|
476
|
+
for (let e of this.#t) e.consumed = -1;
|
|
477
|
+
}
|
|
478
|
+
consume() {
|
|
479
|
+
if (!this.#e.areDataDependenciesAvailable()) this.#r = !1;
|
|
480
|
+
else if (!this.#n) {
|
|
481
|
+
for (let e of this.#t) e.consumed = e.collector.dataRevision;
|
|
482
|
+
this.#n = !0;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
complete() {
|
|
486
|
+
this.#n || this.consume();
|
|
487
|
+
}
|
|
488
|
+
isReady() {
|
|
489
|
+
return this.#r && this.#n && this.#e.areDataDependenciesAvailable() && this.#t.every(({ collector: e, consumed: t }) => e.dataRevision === t);
|
|
490
|
+
}
|
|
491
|
+
}, ut = class {
|
|
456
492
|
stats = {
|
|
457
493
|
count: 0,
|
|
458
494
|
first: null
|
|
@@ -460,6 +496,8 @@ var lt = class {
|
|
|
460
496
|
#e = !1;
|
|
461
497
|
#t = !1;
|
|
462
498
|
#n = [];
|
|
499
|
+
#r;
|
|
500
|
+
#i;
|
|
463
501
|
paramRuntimeProvider = null;
|
|
464
502
|
get behavior() {
|
|
465
503
|
return 0;
|
|
@@ -467,6 +505,18 @@ var lt = class {
|
|
|
467
505
|
get domainSensitiveScaleChannels() {
|
|
468
506
|
return [];
|
|
469
507
|
}
|
|
508
|
+
get dataDependencies() {
|
|
509
|
+
return [];
|
|
510
|
+
}
|
|
511
|
+
isDataReady() {
|
|
512
|
+
return this.completed && !this.disposed && (!this.#i || this.#i.isReady());
|
|
513
|
+
}
|
|
514
|
+
areDataDependenciesAvailable() {
|
|
515
|
+
return this.dataDependencies.every((e) => e.completed && !e.disposed);
|
|
516
|
+
}
|
|
517
|
+
consumeDataDependencies() {
|
|
518
|
+
this.#i?.consume();
|
|
519
|
+
}
|
|
470
520
|
get label() {
|
|
471
521
|
return `(${this.constructor.name})`;
|
|
472
522
|
}
|
|
@@ -490,20 +540,20 @@ var lt = class {
|
|
|
490
540
|
initialized: this.#e,
|
|
491
541
|
disposed: this.#t,
|
|
492
542
|
params: "params" in e ? structuredClone(e.params) : void 0,
|
|
493
|
-
view:
|
|
543
|
+
view: dt(e, this.paramRuntimeProvider),
|
|
494
544
|
domainSensitiveScaleChannels: this.domainSensitiveScaleChannels
|
|
495
545
|
};
|
|
496
546
|
}
|
|
497
547
|
reset() {
|
|
498
|
-
this.completed = !1;
|
|
548
|
+
this.#i?.reset(), this.completed = !1;
|
|
499
549
|
for (let e of this.children) e.reset();
|
|
500
550
|
this.stats.count = 0, this.stats.first = null;
|
|
501
551
|
}
|
|
502
552
|
initialize() {}
|
|
503
553
|
initializeOnce() {
|
|
504
|
-
this.#e ||= (this.initialize(), !0);
|
|
554
|
+
this.#e ||= (this.dataDependencies.length && (this.#i = new lt(this)), this.initialize(), !0);
|
|
505
555
|
}
|
|
506
|
-
#
|
|
556
|
+
#a() {
|
|
507
557
|
this._propagate = Function("children", "stats", _(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
|
|
508
558
|
if (stats.count === 0) {
|
|
509
559
|
stats.first = structuredClone(datum);
|
|
@@ -517,7 +567,7 @@ var lt = class {
|
|
|
517
567
|
}
|
|
518
568
|
addChild(e) {
|
|
519
569
|
if (e.parent) throw Error("Cannot add the child! It already has a parent.");
|
|
520
|
-
return this.children.push(e), e.setParent(this), this.#
|
|
570
|
+
return this.children.push(e), e.setParent(this), this.#a(), this;
|
|
521
571
|
}
|
|
522
572
|
adopt(e) {
|
|
523
573
|
e.parent && e.parent.removeChild(e), this.addChild(e);
|
|
@@ -527,11 +577,11 @@ var lt = class {
|
|
|
527
577
|
}
|
|
528
578
|
insertAsParent(e) {
|
|
529
579
|
if (this.isRoot()) throw Error("Cannot insert a new parent for a root node!");
|
|
530
|
-
e.parent = this.parent, this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#
|
|
580
|
+
e.parent = this.parent, this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#a(), this.parent = void 0, e.addChild(this);
|
|
531
581
|
}
|
|
532
582
|
removeChild(e) {
|
|
533
583
|
let t = this.children.indexOf(e);
|
|
534
|
-
if (t > -1) this.children.splice(t, 1), e.parent = void 0, this.#
|
|
584
|
+
if (t > -1) this.children.splice(t, 1), e.parent = void 0, this.#a();
|
|
535
585
|
else throw Error("Trying to remove an unknown child node!");
|
|
536
586
|
}
|
|
537
587
|
excise() {
|
|
@@ -539,7 +589,7 @@ var lt = class {
|
|
|
539
589
|
if (this.isTerminal()) this.parent.removeChild(this);
|
|
540
590
|
else if (this.children.length == 1) {
|
|
541
591
|
let e = this.children[0];
|
|
542
|
-
e.setParent(this.parent), this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#
|
|
592
|
+
e.setParent(this.parent), this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#a(), this.setParent(void 0), this.children.length = 0;
|
|
543
593
|
} else throw Error("Cannot excise a node that has multiple children!");
|
|
544
594
|
}
|
|
545
595
|
isRoot() {
|
|
@@ -564,7 +614,7 @@ var lt = class {
|
|
|
564
614
|
this._propagate(e);
|
|
565
615
|
}
|
|
566
616
|
complete() {
|
|
567
|
-
this.completed = !0;
|
|
617
|
+
this.#i?.complete(), this.completed = !0;
|
|
568
618
|
for (let e of this.children) e.complete();
|
|
569
619
|
}
|
|
570
620
|
registerDisposer(e) {
|
|
@@ -572,7 +622,7 @@ var lt = class {
|
|
|
572
622
|
}
|
|
573
623
|
dispose() {
|
|
574
624
|
if (!this.#t) {
|
|
575
|
-
this.#t = !0;
|
|
625
|
+
this.#t = !0, this.#i?.dispose();
|
|
576
626
|
for (let e of this.#n) e();
|
|
577
627
|
this.#n.length = 0;
|
|
578
628
|
}
|
|
@@ -591,17 +641,41 @@ var lt = class {
|
|
|
591
641
|
if (!this.parent) throw Error("Cannot find paramRuntime!");
|
|
592
642
|
return this.parent.paramRuntime;
|
|
593
643
|
}
|
|
644
|
+
get replaySource() {
|
|
645
|
+
if (!this.parent) throw Error("Cannot replay data: no upstream replay source.");
|
|
646
|
+
return this.parent.replaySource;
|
|
647
|
+
}
|
|
648
|
+
get replaysSynchronously() {
|
|
649
|
+
return !1;
|
|
650
|
+
}
|
|
651
|
+
requestRepropagate() {
|
|
652
|
+
let e = this.replaySource, t = this.paramRuntime.updateScheduler;
|
|
653
|
+
e.#r ||= () => {
|
|
654
|
+
e.disposed || (e.replaysSynchronously && e.visit((e) => {
|
|
655
|
+
e.#r && t.cancelUpdate(e.#r);
|
|
656
|
+
}), e.repropagate());
|
|
657
|
+
};
|
|
658
|
+
let n = 0;
|
|
659
|
+
for (let t = e.parent; t; t = t.parent) n++;
|
|
660
|
+
t.requestUpdate(e.#r, n, void 0, () => e.#o());
|
|
661
|
+
}
|
|
662
|
+
#o() {
|
|
663
|
+
let e = /* @__PURE__ */ new Set();
|
|
664
|
+
return this.visit((t) => {
|
|
665
|
+
for (let n of t.dataDependencies) for (let t = n.parent; t; t = t.parent) t !== this && t.#r && e.add(t.#r);
|
|
666
|
+
}), e;
|
|
667
|
+
}
|
|
594
668
|
repropagate() {
|
|
595
669
|
if (this.parent) this.parent.repropagate();
|
|
596
670
|
else throw Error("Cannot repropagate data, no FlowNode with stored data found!");
|
|
597
671
|
}
|
|
598
672
|
_propagate(e) {}
|
|
599
673
|
};
|
|
600
|
-
function
|
|
674
|
+
function dt(e, t) {
|
|
601
675
|
if ("view" in e) return e.view;
|
|
602
676
|
if (t && "getPathString" in t) return t;
|
|
603
677
|
}
|
|
604
|
-
function
|
|
678
|
+
function ft(e) {
|
|
605
679
|
let t = /* @__PURE__ */ new Set();
|
|
606
680
|
for (; e;) {
|
|
607
681
|
for (let n of e.domainSensitiveScaleChannels) t.add(n);
|
|
@@ -609,15 +683,15 @@ function dt(e) {
|
|
|
609
683
|
}
|
|
610
684
|
return t;
|
|
611
685
|
}
|
|
612
|
-
function
|
|
686
|
+
function pt(e) {
|
|
613
687
|
return e.type == "file";
|
|
614
688
|
}
|
|
615
|
-
function
|
|
689
|
+
function mt(e) {
|
|
616
690
|
return e.type == "facet";
|
|
617
691
|
}
|
|
618
692
|
//#endregion
|
|
619
693
|
//#region ../core/src/data/transforms/transform.js
|
|
620
|
-
var
|
|
694
|
+
var ht = class extends ut {
|
|
621
695
|
#e;
|
|
622
696
|
constructor(e, t) {
|
|
623
697
|
super(t), this.#e = e.type;
|
|
@@ -626,7 +700,7 @@ var mt = class extends lt {
|
|
|
626
700
|
return this.#e;
|
|
627
701
|
}
|
|
628
702
|
watchExprRef(e, t) {
|
|
629
|
-
if (
|
|
703
|
+
if (G(e)) {
|
|
630
704
|
let n = e;
|
|
631
705
|
return this.paramRuntime.watchExpression(n.expr, t, {
|
|
632
706
|
scopeOwned: !1,
|
|
@@ -635,7 +709,7 @@ var mt = class extends lt {
|
|
|
635
709
|
}
|
|
636
710
|
return (() => e);
|
|
637
711
|
}
|
|
638
|
-
}, T = "__uniqueId",
|
|
712
|
+
}, T = "__uniqueId", gt = 1e4, _t = [null], vt = class extends ht {
|
|
639
713
|
get behavior() {
|
|
640
714
|
return 2;
|
|
641
715
|
}
|
|
@@ -650,19 +724,19 @@ var mt = class extends lt {
|
|
|
650
724
|
e[T] = this.#e(), this._propagate(e);
|
|
651
725
|
}
|
|
652
726
|
#e() {
|
|
653
|
-
return ++this._id % 1e4 == 0 && (this._id = this.#t() *
|
|
727
|
+
return ++this._id % 1e4 == 0 && (this._id = this.#t() * gt), this._id;
|
|
654
728
|
}
|
|
655
729
|
#t() {
|
|
656
730
|
return this._usedBlocks < this._blocks.length ? this._blocks[this._usedBlocks++] : this.#n();
|
|
657
731
|
}
|
|
658
732
|
#n() {
|
|
659
|
-
let e =
|
|
660
|
-
return
|
|
733
|
+
let e = _t.length;
|
|
734
|
+
return _t[e] = this, this._blocks.push(e), this._usedBlocks++, e;
|
|
661
735
|
}
|
|
662
736
|
};
|
|
663
737
|
//#endregion
|
|
664
738
|
//#region ../core/src/utils/field.js
|
|
665
|
-
function
|
|
739
|
+
function yt(e, t = e) {
|
|
666
740
|
return /^[A-Za-z0-9_]+$/.test(e) ? S(Function("validator", `
|
|
667
741
|
let validated = !validator;
|
|
668
742
|
return function accessField(datum) {
|
|
@@ -672,25 +746,25 @@ function vt(e, t = e) {
|
|
|
672
746
|
}
|
|
673
747
|
return datum[${JSON.stringify(e)}];
|
|
674
748
|
}`)(function(t) {
|
|
675
|
-
e in t ||
|
|
749
|
+
e in t || bt(t, e);
|
|
676
750
|
}), [e], t) : Oe(e);
|
|
677
751
|
}
|
|
678
|
-
function
|
|
752
|
+
function bt(e, t) {
|
|
679
753
|
throw Error(`Invalid field "${t}". Available fields or properties: ${Object.keys(e).join(", ")}`);
|
|
680
754
|
}
|
|
681
755
|
//#endregion
|
|
682
756
|
//#region ../core/src/encoder/accessor.js
|
|
683
|
-
function
|
|
757
|
+
function xt(e, t, n) {
|
|
684
758
|
if (!e) throw Error("Cannot create an accessor without a channel.");
|
|
685
759
|
function r(n) {
|
|
686
760
|
let r = n;
|
|
687
|
-
return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey =
|
|
761
|
+
return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = wt(t), r.scaleChannel = ((zt(t) && t.resolutionChannel) ?? (un(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Tt({
|
|
688
762
|
scaleChannel: r.scaleChannel,
|
|
689
|
-
source:
|
|
763
|
+
source: Ct(t)
|
|
690
764
|
}).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
|
|
691
765
|
}
|
|
692
766
|
function i(e) {
|
|
693
|
-
if (
|
|
767
|
+
if (G(e)) {
|
|
694
768
|
let t = r(n.createExpression(e.expr));
|
|
695
769
|
if (t.fields.length > 0) throw Error("Expression in DatumDef/ValueDef cannot access data fields: " + e.expr);
|
|
696
770
|
return t;
|
|
@@ -700,79 +774,79 @@ function bt(e, t, n) {
|
|
|
700
774
|
}
|
|
701
775
|
}
|
|
702
776
|
if (E(t)) try {
|
|
703
|
-
return r(
|
|
777
|
+
return r(yt(t.field));
|
|
704
778
|
} catch (e) {
|
|
705
779
|
throw Error(`Invalid field definition: ${e.message}`, { cause: e });
|
|
706
780
|
}
|
|
707
|
-
else if (
|
|
708
|
-
else if (
|
|
709
|
-
else if (
|
|
781
|
+
else if (Wt(t)) return r(n.createExpression(t.expr));
|
|
782
|
+
else if (Rt(t)) return i(t.datum);
|
|
783
|
+
else if (Lt(t)) return i(t.value);
|
|
710
784
|
else throw Error(`Invalid channel definition: "${e}": ${JSON.stringify(t)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`);
|
|
711
785
|
}
|
|
712
|
-
function
|
|
786
|
+
function St(e) {
|
|
713
787
|
return e.scaleChannel !== void 0;
|
|
714
788
|
}
|
|
715
|
-
function
|
|
789
|
+
function Ct(e) {
|
|
716
790
|
if (E(e)) return {
|
|
717
791
|
kind: "field",
|
|
718
792
|
value: e.field
|
|
719
793
|
};
|
|
720
|
-
if (
|
|
794
|
+
if (Wt(e)) return {
|
|
721
795
|
kind: "expr",
|
|
722
796
|
value: e.expr
|
|
723
797
|
};
|
|
724
|
-
if (
|
|
798
|
+
if (Rt(e)) return {
|
|
725
799
|
kind: "datum",
|
|
726
800
|
value: e.datum
|
|
727
801
|
};
|
|
728
|
-
if (
|
|
802
|
+
if (Lt(e)) return {
|
|
729
803
|
kind: "value",
|
|
730
804
|
value: e.value
|
|
731
805
|
};
|
|
732
806
|
throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
|
|
733
807
|
}
|
|
734
|
-
function
|
|
735
|
-
let t =
|
|
736
|
-
return t.kind === "datum" || t.kind === "value" ? "constant|" +
|
|
808
|
+
function wt(e) {
|
|
809
|
+
let t = Ct(e);
|
|
810
|
+
return t.kind === "datum" || t.kind === "value" ? "constant|" + Ot(t.value) : t.kind + "|" + Dt(t);
|
|
737
811
|
}
|
|
738
|
-
function
|
|
812
|
+
function Tt({ scaleChannel: e, source: t, type: n }) {
|
|
739
813
|
if (!e) throw Error("Cannot build a domain key without a scale channel.");
|
|
740
|
-
let r = e + "|" + t.kind + "|" +
|
|
814
|
+
let r = e + "|" + t.kind + "|" + Dt(t);
|
|
741
815
|
return {
|
|
742
816
|
domainKeyBase: r,
|
|
743
817
|
domainKey: n ? n + "|" + r : void 0
|
|
744
818
|
};
|
|
745
819
|
}
|
|
746
|
-
function
|
|
747
|
-
let { domainKey: n, domainKeyBase: r } =
|
|
820
|
+
function Et(e, t) {
|
|
821
|
+
let { domainKey: n, domainKeyBase: r } = Tt({
|
|
748
822
|
scaleChannel: e.scaleChannel,
|
|
749
|
-
source:
|
|
823
|
+
source: Ct(e.channelDef),
|
|
750
824
|
type: t
|
|
751
825
|
});
|
|
752
826
|
if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
|
|
753
827
|
return e.domainKeyBase = r, e.domainKey = n, n;
|
|
754
828
|
}
|
|
755
|
-
function
|
|
829
|
+
function Dt(e) {
|
|
756
830
|
switch (e.kind) {
|
|
757
831
|
case "field":
|
|
758
832
|
case "expr": return e.value;
|
|
759
833
|
case "datum":
|
|
760
|
-
case "value": return
|
|
834
|
+
case "value": return Ot(e.value);
|
|
761
835
|
default: throw Error("Unknown domain key source.");
|
|
762
836
|
}
|
|
763
837
|
}
|
|
764
|
-
function
|
|
765
|
-
return
|
|
838
|
+
function Ot(e) {
|
|
839
|
+
return G(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
|
|
766
840
|
}
|
|
767
841
|
//#endregion
|
|
768
842
|
//#region ../core/src/encoder/encoder.js
|
|
769
|
-
function
|
|
770
|
-
let i, a =
|
|
843
|
+
function kt(e, t, n, r) {
|
|
844
|
+
let i, a = Xi(!1), o = () => {
|
|
771
845
|
if (i) return i;
|
|
772
846
|
let o = n.findValue(e);
|
|
773
847
|
if (!o) return a;
|
|
774
848
|
let s = {};
|
|
775
|
-
if (
|
|
849
|
+
if (Ni(o)) {
|
|
776
850
|
let n = Object.keys(o.intervals);
|
|
777
851
|
for (let r of n) {
|
|
778
852
|
let n = t[r];
|
|
@@ -789,7 +863,7 @@ function Ot(e, t, n, r) {
|
|
|
789
863
|
throw Error(`Selection "${e}" has an interval for "${r}" channel, but could not find a fieldDef: ${JSON.stringify(t[r])}`);
|
|
790
864
|
}
|
|
791
865
|
}
|
|
792
|
-
let c =
|
|
866
|
+
let c = Mi({
|
|
793
867
|
type: "filter",
|
|
794
868
|
param: e,
|
|
795
869
|
fields: s,
|
|
@@ -802,148 +876,156 @@ function Ot(e, t, n, r) {
|
|
|
802
876
|
empty: r ?? !0
|
|
803
877
|
});
|
|
804
878
|
}
|
|
805
|
-
function
|
|
806
|
-
let i =
|
|
879
|
+
function At(e, t, n, r) {
|
|
880
|
+
let i = Gt(t) || Kt(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], a = [...i, t], o = a.map((t, o) => {
|
|
807
881
|
let s = i[o];
|
|
808
882
|
return {
|
|
809
|
-
accessor:
|
|
810
|
-
predicate: s?.param ?
|
|
883
|
+
accessor: xt(e, t, r),
|
|
884
|
+
predicate: s?.param ? kt(s.param, n, r, s.empty) : Object.assign(Xi(o === a.length - 1), { empty: !1 })
|
|
811
885
|
};
|
|
812
886
|
});
|
|
813
887
|
if (o.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
|
|
814
888
|
return o;
|
|
815
889
|
}
|
|
816
|
-
function
|
|
817
|
-
let n = {}, r = (t) => e.getScaleResolution(t)?.getScale()
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
890
|
+
function jt(e, t) {
|
|
891
|
+
let n = {}, r = (t) => e.getScaleResolution(t)?.getScale(), i = (t, n) => {
|
|
892
|
+
let r = e.getScaleResolution(t);
|
|
893
|
+
e.paramRuntime.operation("encoder scale", [r.getMappingRef()], () => r.getScale(), n);
|
|
894
|
+
};
|
|
895
|
+
for (let [a, o] of Object.entries(t)) {
|
|
896
|
+
if (!o) continue;
|
|
897
|
+
let s = a;
|
|
898
|
+
Mt(s) || (n[s] = Ft(At(s, o, t, e.paramRuntime), r, i));
|
|
822
899
|
}
|
|
823
900
|
return n;
|
|
824
901
|
}
|
|
825
|
-
function
|
|
902
|
+
function Mt(e) {
|
|
826
903
|
return e === "key" || e === "search" || e === "tooltip";
|
|
827
904
|
}
|
|
828
|
-
function
|
|
905
|
+
function Nt(e) {
|
|
829
906
|
return e.branches.map((e) => e.accessor);
|
|
830
907
|
}
|
|
831
|
-
function
|
|
908
|
+
function Pt(e) {
|
|
832
909
|
return e.branches.find((e) => !e.accessor.constant)?.accessor;
|
|
833
910
|
}
|
|
834
|
-
function
|
|
911
|
+
function Ft(e, t, n) {
|
|
835
912
|
if (e.length === 1) {
|
|
836
|
-
let
|
|
837
|
-
return Object.assign(
|
|
913
|
+
let r = It(e[0].accessor, t, n);
|
|
914
|
+
return Object.assign(r, { branches: e });
|
|
838
915
|
}
|
|
839
|
-
let
|
|
840
|
-
|
|
841
|
-
for (let t = 0; t < r.length; t++) if (n[t](e)) return r[t](e);
|
|
916
|
+
let r = e.map((e) => e.predicate), i = e.map((e) => It(e.accessor, t, n)), a = Object.assign((e) => {
|
|
917
|
+
for (let t = 0; t < i.length; t++) if (r[t](e)) return i[t](e);
|
|
842
918
|
}, {
|
|
843
919
|
constant: !1,
|
|
844
920
|
branches: e,
|
|
845
|
-
scale: r.map((e) => e.scale).find((e) => e),
|
|
846
921
|
channelDef: e.at(-1).accessor.channelDef
|
|
847
922
|
});
|
|
923
|
+
return Object.defineProperty(a, "scale", {
|
|
924
|
+
enumerable: !0,
|
|
925
|
+
get: () => i.find((e) => e.scale)?.scale
|
|
926
|
+
});
|
|
848
927
|
}
|
|
849
|
-
function
|
|
850
|
-
let { channel:
|
|
851
|
-
if (
|
|
852
|
-
|
|
853
|
-
scale:
|
|
928
|
+
function It(e, t, n) {
|
|
929
|
+
let { channel: r, scaleChannel: i, channelDef: a } = e, o = e.scaleChannel ? t(i) : void 0;
|
|
930
|
+
if (i && !o) throw Error(`Missing scale! "${r}": ${JSON.stringify(a)}`);
|
|
931
|
+
let s = Object.assign(o ? (t) => o(e(t)) : (t) => e(t), {
|
|
932
|
+
scale: o,
|
|
854
933
|
constant: e.constant,
|
|
855
934
|
branches: [{
|
|
856
935
|
accessor: e,
|
|
857
|
-
predicate:
|
|
936
|
+
predicate: Xi(!0)
|
|
858
937
|
}],
|
|
859
|
-
channelDef:
|
|
938
|
+
channelDef: a
|
|
860
939
|
});
|
|
940
|
+
return o && n?.(i, (e) => {
|
|
941
|
+
o = e, s.scale = e;
|
|
942
|
+
}), s;
|
|
861
943
|
}
|
|
862
|
-
function
|
|
944
|
+
function Lt(e) {
|
|
863
945
|
return e && "value" in e;
|
|
864
946
|
}
|
|
865
947
|
function E(e) {
|
|
866
948
|
return e && "field" in e;
|
|
867
949
|
}
|
|
868
|
-
function
|
|
950
|
+
function Rt(e) {
|
|
869
951
|
return e && "datum" in e;
|
|
870
952
|
}
|
|
871
|
-
function
|
|
872
|
-
return E(e) ||
|
|
953
|
+
function zt(e) {
|
|
954
|
+
return E(e) || Rt(e) || Wt(e) || Ut(e);
|
|
873
955
|
}
|
|
874
|
-
function
|
|
875
|
-
if (
|
|
956
|
+
function Bt(e) {
|
|
957
|
+
if (Kt(e)) {
|
|
876
958
|
let t = e.condition;
|
|
877
|
-
return (Array.isArray(t) ? t : [t]).find((e) =>
|
|
878
|
-
} else if (
|
|
959
|
+
return (Array.isArray(t) ? t : [t]).find((e) => zt(e));
|
|
960
|
+
} else if (zt(e)) return e;
|
|
879
961
|
}
|
|
880
|
-
function
|
|
881
|
-
let t = e &&
|
|
962
|
+
function Vt(e) {
|
|
963
|
+
let t = e && Bt(e);
|
|
882
964
|
return t != null && t.type != "quantitative" && t.scale !== null;
|
|
883
965
|
}
|
|
884
|
-
function
|
|
966
|
+
function Ht(e, t) {
|
|
885
967
|
let n = e.mark.encoding[t];
|
|
886
968
|
if (Array.isArray(n)) throw Error("Not a channel def with scale!");
|
|
887
969
|
{
|
|
888
|
-
let e =
|
|
970
|
+
let e = Bt(n);
|
|
889
971
|
if (e) return e;
|
|
890
972
|
}
|
|
891
973
|
throw Error("Not a channel def with scale!");
|
|
892
974
|
}
|
|
893
|
-
function Vt(e) {
|
|
894
|
-
return e && "chrom" in e;
|
|
895
|
-
}
|
|
896
|
-
function Ht(e) {
|
|
897
|
-
return e && "expr" in e;
|
|
898
|
-
}
|
|
899
975
|
function Ut(e) {
|
|
900
|
-
return
|
|
976
|
+
return e && "chrom" in e;
|
|
901
977
|
}
|
|
902
978
|
function Wt(e) {
|
|
903
|
-
return
|
|
979
|
+
return e && "expr" in e;
|
|
904
980
|
}
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
return Gt.includes(e);
|
|
981
|
+
function Gt(e) {
|
|
982
|
+
return (E(e) || Rt(e)) && "condition" in e;
|
|
908
983
|
}
|
|
909
|
-
function
|
|
910
|
-
return
|
|
984
|
+
function Kt(e) {
|
|
985
|
+
return Lt(e) && "condition" in e;
|
|
911
986
|
}
|
|
987
|
+
var qt = ["x", "y"], Jt = ["x2", "y2"], Yt = ["xOffset", "yOffset"], Xt = [...qt, ...Jt];
|
|
912
988
|
function Zt(e) {
|
|
913
989
|
return qt.includes(e);
|
|
914
990
|
}
|
|
915
991
|
function Qt(e) {
|
|
916
|
-
return
|
|
992
|
+
return Xt.includes(e);
|
|
993
|
+
}
|
|
994
|
+
function $t(e) {
|
|
995
|
+
return Yt.includes(e);
|
|
917
996
|
}
|
|
918
|
-
function
|
|
997
|
+
function en(e) {
|
|
998
|
+
return sn(e) == "x" ? "xOffset" : "yOffset";
|
|
999
|
+
}
|
|
1000
|
+
function tn(e, t, n) {
|
|
919
1001
|
return t ?? (n ? 0 : e);
|
|
920
1002
|
}
|
|
921
|
-
var
|
|
1003
|
+
var nn = {
|
|
922
1004
|
x: "x2",
|
|
923
1005
|
y: "y2"
|
|
924
|
-
},
|
|
925
|
-
function
|
|
926
|
-
return e in
|
|
1006
|
+
}, rn = Object.fromEntries(Object.entries(nn).map((e) => [e[1], e[0]]));
|
|
1007
|
+
function an(e) {
|
|
1008
|
+
return e in rn;
|
|
927
1009
|
}
|
|
928
|
-
function
|
|
929
|
-
let t =
|
|
1010
|
+
function on(e) {
|
|
1011
|
+
let t = nn[e];
|
|
930
1012
|
if (t) return t;
|
|
931
1013
|
throw Error(`${e} has no secondary channel!`);
|
|
932
1014
|
}
|
|
933
|
-
function
|
|
934
|
-
return
|
|
1015
|
+
function sn(e) {
|
|
1016
|
+
return rn[e] ?? e;
|
|
935
1017
|
}
|
|
936
|
-
function
|
|
1018
|
+
function cn(e) {
|
|
937
1019
|
return [
|
|
938
1020
|
"color",
|
|
939
1021
|
"fill",
|
|
940
1022
|
"stroke"
|
|
941
|
-
].includes(
|
|
1023
|
+
].includes(sn(e));
|
|
942
1024
|
}
|
|
943
|
-
function
|
|
1025
|
+
function ln(e) {
|
|
944
1026
|
return ["shape", "direction"].includes(e);
|
|
945
1027
|
}
|
|
946
|
-
function
|
|
1028
|
+
function un(e) {
|
|
947
1029
|
return [
|
|
948
1030
|
"x",
|
|
949
1031
|
"y",
|
|
@@ -967,7 +1049,7 @@ function cn(e) {
|
|
|
967
1049
|
"sample"
|
|
968
1050
|
].includes(e);
|
|
969
1051
|
}
|
|
970
|
-
function
|
|
1052
|
+
function dn(e) {
|
|
971
1053
|
switch (e) {
|
|
972
1054
|
case "shape": return [
|
|
973
1055
|
"circle",
|
|
@@ -989,9 +1071,9 @@ function ln(e) {
|
|
|
989
1071
|
default:
|
|
990
1072
|
}
|
|
991
1073
|
}
|
|
992
|
-
function
|
|
993
|
-
if (!
|
|
994
|
-
let t = new Map(
|
|
1074
|
+
function fn(e) {
|
|
1075
|
+
if (!ln(e)) throw Error("Not a discrete channel: " + e);
|
|
1076
|
+
let t = new Map(dn(e).map((e, t) => [e, t]));
|
|
995
1077
|
return (n) => {
|
|
996
1078
|
let r = t.get(n);
|
|
997
1079
|
if (r !== void 0) return r;
|
|
@@ -1000,53 +1082,53 @@ function un(e) {
|
|
|
1000
1082
|
}
|
|
1001
1083
|
//#endregion
|
|
1002
1084
|
//#region ../../node_modules/vega-expression/build/vega-expression.js
|
|
1003
|
-
var
|
|
1004
|
-
function
|
|
1085
|
+
var pn = "RawCode", mn = "Literal", hn = "Property", gn = "Identifier", _n = "ArrayExpression", vn = "BinaryExpression", yn = "CallExpression", bn = "ConditionalExpression", xn = "LogicalExpression", Sn = "MemberExpression", Cn = "ObjectExpression", wn = "UnaryExpression";
|
|
1086
|
+
function D(e) {
|
|
1005
1087
|
this.type = e;
|
|
1006
1088
|
}
|
|
1007
|
-
|
|
1089
|
+
D.prototype.visit = function(e) {
|
|
1008
1090
|
let t, n, r;
|
|
1009
1091
|
if (e(this)) return 1;
|
|
1010
|
-
for (t =
|
|
1092
|
+
for (t = Tn(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
|
|
1011
1093
|
};
|
|
1012
|
-
function
|
|
1094
|
+
function Tn(e) {
|
|
1013
1095
|
switch (e.type) {
|
|
1014
|
-
case
|
|
1015
|
-
case
|
|
1016
|
-
case
|
|
1017
|
-
case
|
|
1018
|
-
case
|
|
1096
|
+
case _n: return e.elements;
|
|
1097
|
+
case vn:
|
|
1098
|
+
case xn: return [e.left, e.right];
|
|
1099
|
+
case yn: return [e.callee].concat(e.arguments);
|
|
1100
|
+
case bn: return [
|
|
1019
1101
|
e.test,
|
|
1020
1102
|
e.consequent,
|
|
1021
1103
|
e.alternate
|
|
1022
1104
|
];
|
|
1023
|
-
case
|
|
1024
|
-
case
|
|
1025
|
-
case
|
|
1026
|
-
case
|
|
1105
|
+
case Sn: return [e.object, e.property];
|
|
1106
|
+
case Cn: return e.properties;
|
|
1107
|
+
case hn: return [e.key, e.value];
|
|
1108
|
+
case wn: return [e.argument];
|
|
1109
|
+
case gn:
|
|
1027
1110
|
case mn:
|
|
1028
|
-
case
|
|
1029
|
-
case dn:
|
|
1111
|
+
case pn:
|
|
1030
1112
|
default: return [];
|
|
1031
1113
|
}
|
|
1032
1114
|
}
|
|
1033
|
-
var k, A, j, M,
|
|
1034
|
-
|
|
1035
|
-
var Dn = "ArrayExpression", On = "BinaryExpression", kn = "CallExpression", An = "ConditionalExpression", jn = "Identifier", Mn = "Literal", Nn = "LogicalExpression", Pn = "MemberExpression", Fn = "ObjectExpression", In = "Property", Ln = "UnaryExpression", B = "Unexpected token %0", Rn = "Unexpected number", zn = "Unexpected string", Bn = "Unexpected identifier", Vn = "Unexpected reserved word", Hn = "Unexpected end of input", Un = "Invalid regular expression", Wn = "Invalid regular expression: missing /", Gn = "Octal literals are not allowed in strict mode.", Kn = "Duplicate data property in object literal not allowed in strict mode", V = "ILLEGAL", H = "Disabled.", qn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), Jn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
|
|
1036
|
-
function
|
|
1115
|
+
var O, k, A, j, M, En = 1, Dn = 2, N = 3, P = 4, On = 5, F = 6, I = 7, kn = 8, An = 9;
|
|
1116
|
+
O = {}, O[En] = "Boolean", O[Dn] = "<end>", O[N] = "Identifier", O[P] = "Keyword", O[On] = "Null", O[F] = "Numeric", O[I] = "Punctuator", O[kn] = "String", O[An] = "RegularExpression";
|
|
1117
|
+
var jn = "ArrayExpression", Mn = "BinaryExpression", Nn = "CallExpression", Pn = "ConditionalExpression", Fn = "Identifier", In = "Literal", Ln = "LogicalExpression", Rn = "MemberExpression", zn = "ObjectExpression", Bn = "Property", Vn = "UnaryExpression", L = "Unexpected token %0", Hn = "Unexpected number", Un = "Unexpected string", Wn = "Unexpected identifier", Gn = "Unexpected reserved word", Kn = "Unexpected end of input", qn = "Invalid regular expression", Jn = "Invalid regular expression: missing /", Yn = "Octal literals are not allowed in strict mode.", Xn = "Duplicate data property in object literal not allowed in strict mode", R = "ILLEGAL", Zn = "Disabled.", Qn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), $n = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
|
|
1118
|
+
function er(e, t) {
|
|
1037
1119
|
/* istanbul ignore next */
|
|
1038
1120
|
if (!e) throw Error("ASSERT: " + t);
|
|
1039
1121
|
}
|
|
1040
|
-
function
|
|
1122
|
+
function z(e) {
|
|
1041
1123
|
return e >= 48 && e <= 57;
|
|
1042
1124
|
}
|
|
1043
|
-
function
|
|
1125
|
+
function tr(e) {
|
|
1044
1126
|
return "0123456789abcdefABCDEF".includes(e);
|
|
1045
1127
|
}
|
|
1046
|
-
function
|
|
1128
|
+
function nr(e) {
|
|
1047
1129
|
return "01234567".includes(e);
|
|
1048
1130
|
}
|
|
1049
|
-
function
|
|
1131
|
+
function rr(e) {
|
|
1050
1132
|
return e === 32 || e === 9 || e === 11 || e === 12 || e === 160 || e >= 5760 && [
|
|
1051
1133
|
5760,
|
|
1052
1134
|
6158,
|
|
@@ -1067,16 +1149,16 @@ function Zn(e) {
|
|
|
1067
1149
|
65279
|
|
1068
1150
|
].includes(e);
|
|
1069
1151
|
}
|
|
1070
|
-
function
|
|
1152
|
+
function ir(e) {
|
|
1071
1153
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
1072
1154
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 &&
|
|
1155
|
+
function ar(e) {
|
|
1156
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && Qn.test(String.fromCharCode(e));
|
|
1075
1157
|
}
|
|
1076
|
-
function
|
|
1077
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 &&
|
|
1158
|
+
function or(e) {
|
|
1159
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && $n.test(String.fromCharCode(e));
|
|
1078
1160
|
}
|
|
1079
|
-
var
|
|
1161
|
+
var sr = {
|
|
1080
1162
|
if: 1,
|
|
1081
1163
|
in: 1,
|
|
1082
1164
|
do: 1,
|
|
@@ -1120,47 +1202,47 @@ var $n = {
|
|
|
1120
1202
|
instanceof: 1,
|
|
1121
1203
|
implements: 1
|
|
1122
1204
|
};
|
|
1123
|
-
function
|
|
1124
|
-
for (;
|
|
1125
|
-
let e =
|
|
1126
|
-
if (
|
|
1205
|
+
function cr() {
|
|
1206
|
+
for (; A < j;) {
|
|
1207
|
+
let e = k.charCodeAt(A);
|
|
1208
|
+
if (rr(e) || ir(e)) ++A;
|
|
1127
1209
|
else break;
|
|
1128
1210
|
}
|
|
1129
1211
|
}
|
|
1130
|
-
function
|
|
1212
|
+
function lr(e) {
|
|
1131
1213
|
var t, n, r, i = 0;
|
|
1132
|
-
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t)
|
|
1214
|
+
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) A < j && tr(k[A]) ? (r = k[A++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : V({}, L, R);
|
|
1133
1215
|
return String.fromCharCode(i);
|
|
1134
1216
|
}
|
|
1135
|
-
function
|
|
1136
|
-
var e = A
|
|
1137
|
-
for (e === "}" &&
|
|
1138
|
-
return (t > 1114111 || e !== "}") &&
|
|
1217
|
+
function ur() {
|
|
1218
|
+
var e = k[A], t = 0, n, r;
|
|
1219
|
+
for (e === "}" && V({}, L, R); A < j && (e = k[A++], tr(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
|
|
1220
|
+
return (t > 1114111 || e !== "}") && V({}, L, R), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
|
|
1139
1221
|
}
|
|
1140
|
-
function
|
|
1141
|
-
var e =
|
|
1142
|
-
for (e === 92 && (
|
|
1222
|
+
function dr() {
|
|
1223
|
+
var e = k.charCodeAt(A++), t = String.fromCharCode(e);
|
|
1224
|
+
for (e === 92 && (k.charCodeAt(A) !== 117 && V({}, L, R), ++A, e = lr("u"), (!e || e === "\\" || !ar(e.charCodeAt(0))) && V({}, L, R), t = e); A < j && (e = k.charCodeAt(A), or(e));) ++A, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), k.charCodeAt(A) !== 117 && V({}, L, R), ++A, e = lr("u"), (!e || e === "\\" || !or(e.charCodeAt(0))) && V({}, L, R), t += e);
|
|
1143
1225
|
return t;
|
|
1144
1226
|
}
|
|
1145
|
-
function
|
|
1146
|
-
for (var e =
|
|
1147
|
-
if (t =
|
|
1148
|
-
if (
|
|
1227
|
+
function fr() {
|
|
1228
|
+
for (var e = A++, t; A < j;) {
|
|
1229
|
+
if (t = k.charCodeAt(A), t === 92) return A = e, dr();
|
|
1230
|
+
if (or(t)) ++A;
|
|
1149
1231
|
else break;
|
|
1150
1232
|
}
|
|
1151
|
-
return
|
|
1233
|
+
return k.slice(e, A);
|
|
1152
1234
|
}
|
|
1153
|
-
function
|
|
1154
|
-
var e =
|
|
1235
|
+
function pr() {
|
|
1236
|
+
var e = A, t = k.charCodeAt(A) === 92 ? dr() : fr();
|
|
1155
1237
|
return {
|
|
1156
|
-
type: t.length === 1 ?
|
|
1238
|
+
type: t.length === 1 ? N : sr.hasOwnProperty(t) ? P : t === "null" ? On : t === "true" || t === "false" ? En : N,
|
|
1157
1239
|
value: t,
|
|
1158
1240
|
start: e,
|
|
1159
|
-
end:
|
|
1241
|
+
end: A
|
|
1160
1242
|
};
|
|
1161
1243
|
}
|
|
1162
|
-
function
|
|
1163
|
-
var e =
|
|
1244
|
+
function mr() {
|
|
1245
|
+
var e = A, t = k.charCodeAt(A), n, r = k[A], i, a, o;
|
|
1164
1246
|
switch (t) {
|
|
1165
1247
|
case 46:
|
|
1166
1248
|
case 40:
|
|
@@ -1173,13 +1255,13 @@ function or() {
|
|
|
1173
1255
|
case 93:
|
|
1174
1256
|
case 58:
|
|
1175
1257
|
case 63:
|
|
1176
|
-
case 126: return ++
|
|
1177
|
-
type:
|
|
1258
|
+
case 126: return ++A, {
|
|
1259
|
+
type: I,
|
|
1178
1260
|
value: String.fromCharCode(t),
|
|
1179
1261
|
start: e,
|
|
1180
|
-
end:
|
|
1262
|
+
end: A
|
|
1181
1263
|
};
|
|
1182
|
-
default: if (n =
|
|
1264
|
+
default: if (n = k.charCodeAt(A + 1), n === 61) switch (t) {
|
|
1183
1265
|
case 43:
|
|
1184
1266
|
case 45:
|
|
1185
1267
|
case 47:
|
|
@@ -1189,101 +1271,101 @@ function or() {
|
|
|
1189
1271
|
case 124:
|
|
1190
1272
|
case 37:
|
|
1191
1273
|
case 38:
|
|
1192
|
-
case 42: return
|
|
1193
|
-
type:
|
|
1274
|
+
case 42: return A += 2, {
|
|
1275
|
+
type: I,
|
|
1194
1276
|
value: String.fromCharCode(t) + String.fromCharCode(n),
|
|
1195
1277
|
start: e,
|
|
1196
|
-
end:
|
|
1278
|
+
end: A
|
|
1197
1279
|
};
|
|
1198
1280
|
case 33:
|
|
1199
|
-
case 61: return
|
|
1200
|
-
type:
|
|
1201
|
-
value:
|
|
1281
|
+
case 61: return A += 2, k.charCodeAt(A) === 61 && ++A, {
|
|
1282
|
+
type: I,
|
|
1283
|
+
value: k.slice(e, A),
|
|
1202
1284
|
start: e,
|
|
1203
|
-
end:
|
|
1285
|
+
end: A
|
|
1204
1286
|
};
|
|
1205
1287
|
}
|
|
1206
1288
|
}
|
|
1207
|
-
if (o =
|
|
1208
|
-
type:
|
|
1289
|
+
if (o = k.substr(A, 4), o === ">>>=") return A += 4, {
|
|
1290
|
+
type: I,
|
|
1209
1291
|
value: o,
|
|
1210
1292
|
start: e,
|
|
1211
|
-
end:
|
|
1293
|
+
end: A
|
|
1212
1294
|
};
|
|
1213
|
-
if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return
|
|
1214
|
-
type:
|
|
1295
|
+
if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return A += 3, {
|
|
1296
|
+
type: I,
|
|
1215
1297
|
value: a,
|
|
1216
1298
|
start: e,
|
|
1217
|
-
end:
|
|
1299
|
+
end: A
|
|
1218
1300
|
};
|
|
1219
|
-
if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return
|
|
1220
|
-
type:
|
|
1301
|
+
if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return A += 2, {
|
|
1302
|
+
type: I,
|
|
1221
1303
|
value: i,
|
|
1222
1304
|
start: e,
|
|
1223
|
-
end:
|
|
1305
|
+
end: A
|
|
1224
1306
|
};
|
|
1225
|
-
if (i === "//" &&
|
|
1226
|
-
type:
|
|
1307
|
+
if (i === "//" && V({}, L, R), "<>=!+-*%&|^/".includes(r)) return ++A, {
|
|
1308
|
+
type: I,
|
|
1227
1309
|
value: r,
|
|
1228
1310
|
start: e,
|
|
1229
|
-
end:
|
|
1311
|
+
end: A
|
|
1230
1312
|
};
|
|
1231
|
-
|
|
1313
|
+
V({}, L, R);
|
|
1232
1314
|
}
|
|
1233
|
-
function
|
|
1315
|
+
function hr(e) {
|
|
1234
1316
|
let t = "";
|
|
1235
|
-
for (;
|
|
1236
|
-
return t.length === 0 &&
|
|
1237
|
-
type:
|
|
1317
|
+
for (; A < j && tr(k[A]);) t += k[A++];
|
|
1318
|
+
return t.length === 0 && V({}, L, R), ar(k.charCodeAt(A)) && V({}, L, R), {
|
|
1319
|
+
type: F,
|
|
1238
1320
|
value: parseInt("0x" + t, 16),
|
|
1239
1321
|
start: e,
|
|
1240
|
-
end:
|
|
1322
|
+
end: A
|
|
1241
1323
|
};
|
|
1242
1324
|
}
|
|
1243
|
-
function
|
|
1244
|
-
let t = "0" + A
|
|
1245
|
-
for (;
|
|
1246
|
-
return (
|
|
1247
|
-
type:
|
|
1325
|
+
function gr(e) {
|
|
1326
|
+
let t = "0" + k[A++];
|
|
1327
|
+
for (; A < j && nr(k[A]);) t += k[A++];
|
|
1328
|
+
return (ar(k.charCodeAt(A)) || z(k.charCodeAt(A))) && V({}, L, R), {
|
|
1329
|
+
type: F,
|
|
1248
1330
|
value: parseInt(t, 8),
|
|
1249
1331
|
octal: !0,
|
|
1250
1332
|
start: e,
|
|
1251
|
-
end:
|
|
1333
|
+
end: A
|
|
1252
1334
|
};
|
|
1253
1335
|
}
|
|
1254
|
-
function
|
|
1255
|
-
var e, t, n = A
|
|
1256
|
-
if (
|
|
1257
|
-
if (e = A
|
|
1258
|
-
if (n === "x" || n === "X") return ++
|
|
1259
|
-
if (
|
|
1260
|
-
n &&
|
|
1336
|
+
function _r() {
|
|
1337
|
+
var e, t, n = k[A];
|
|
1338
|
+
if (er(z(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = A, e = "", n !== ".") {
|
|
1339
|
+
if (e = k[A++], n = k[A], e === "0") {
|
|
1340
|
+
if (n === "x" || n === "X") return ++A, hr(t);
|
|
1341
|
+
if (nr(n)) return gr(t);
|
|
1342
|
+
n && z(n.charCodeAt(0)) && V({}, L, R);
|
|
1261
1343
|
}
|
|
1262
|
-
for (;
|
|
1263
|
-
n = A
|
|
1344
|
+
for (; z(k.charCodeAt(A));) e += k[A++];
|
|
1345
|
+
n = k[A];
|
|
1264
1346
|
}
|
|
1265
1347
|
if (n === ".") {
|
|
1266
|
-
for (e += A
|
|
1267
|
-
n = A
|
|
1348
|
+
for (e += k[A++]; z(k.charCodeAt(A));) e += k[A++];
|
|
1349
|
+
n = k[A];
|
|
1268
1350
|
}
|
|
1269
|
-
if (n === "e" || n === "E") if (e += A
|
|
1270
|
-
else
|
|
1271
|
-
return
|
|
1272
|
-
type:
|
|
1351
|
+
if (n === "e" || n === "E") if (e += k[A++], n = k[A], (n === "+" || n === "-") && (e += k[A++]), z(k.charCodeAt(A))) for (; z(k.charCodeAt(A));) e += k[A++];
|
|
1352
|
+
else V({}, L, R);
|
|
1353
|
+
return ar(k.charCodeAt(A)) && V({}, L, R), {
|
|
1354
|
+
type: F,
|
|
1273
1355
|
value: parseFloat(e),
|
|
1274
1356
|
start: t,
|
|
1275
|
-
end:
|
|
1357
|
+
end: A
|
|
1276
1358
|
};
|
|
1277
1359
|
}
|
|
1278
|
-
function
|
|
1360
|
+
function vr() {
|
|
1279
1361
|
var e = "", t, n, r, i, a = !1;
|
|
1280
|
-
for (t = A
|
|
1362
|
+
for (t = k[A], er(t === "'" || t === "\"", "String literal must starts with a quote"), n = A, ++A; A < j;) if (r = k[A++], r === t) {
|
|
1281
1363
|
t = "";
|
|
1282
1364
|
break;
|
|
1283
|
-
} else if (r === "\\") if (r = A
|
|
1365
|
+
} else if (r === "\\") if (r = k[A++], !r || !ir(r.charCodeAt(0))) switch (r) {
|
|
1284
1366
|
case "u":
|
|
1285
1367
|
case "x":
|
|
1286
|
-
A
|
|
1368
|
+
k[A] === "{" ? (++A, e += ur()) : e += lr(r);
|
|
1287
1369
|
break;
|
|
1288
1370
|
case "n":
|
|
1289
1371
|
e += "\n";
|
|
@@ -1304,30 +1386,30 @@ function ur() {
|
|
|
1304
1386
|
e += "\v";
|
|
1305
1387
|
break;
|
|
1306
1388
|
default:
|
|
1307
|
-
|
|
1389
|
+
nr(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), A < j && nr(k[A]) && (a = !0, i = i * 8 + "01234567".indexOf(k[A++]), "0123".includes(r) && A < j && nr(k[A]) && (i = i * 8 + "01234567".indexOf(k[A++]))), e += String.fromCharCode(i)) : e += r;
|
|
1308
1390
|
break;
|
|
1309
1391
|
}
|
|
1310
|
-
else r === "\r" && A
|
|
1311
|
-
else if (
|
|
1392
|
+
else r === "\r" && k[A] === "\n" && ++A;
|
|
1393
|
+
else if (ir(r.charCodeAt(0))) break;
|
|
1312
1394
|
else e += r;
|
|
1313
|
-
return t !== "" &&
|
|
1314
|
-
type:
|
|
1395
|
+
return t !== "" && V({}, L, R), {
|
|
1396
|
+
type: kn,
|
|
1315
1397
|
value: e,
|
|
1316
1398
|
octal: a,
|
|
1317
1399
|
start: n,
|
|
1318
|
-
end:
|
|
1400
|
+
end: A
|
|
1319
1401
|
};
|
|
1320
1402
|
}
|
|
1321
|
-
function
|
|
1403
|
+
function yr(e, t) {
|
|
1322
1404
|
let n = e;
|
|
1323
1405
|
t.includes("u") && (n = n.replace(/\\u\{([0-9a-fA-F]+)\}/g, (e, t) => {
|
|
1324
1406
|
if (parseInt(t, 16) <= 1114111) return "x";
|
|
1325
|
-
|
|
1407
|
+
V({}, qn);
|
|
1326
1408
|
}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x"));
|
|
1327
1409
|
try {
|
|
1328
1410
|
new RegExp(n);
|
|
1329
1411
|
} catch {
|
|
1330
|
-
|
|
1412
|
+
V({}, qn);
|
|
1331
1413
|
}
|
|
1332
1414
|
try {
|
|
1333
1415
|
return new RegExp(e, t);
|
|
@@ -1335,30 +1417,30 @@ function dr(e, t) {
|
|
|
1335
1417
|
return null;
|
|
1336
1418
|
}
|
|
1337
1419
|
}
|
|
1338
|
-
function
|
|
1339
|
-
var e = A
|
|
1340
|
-
for (
|
|
1341
|
-
else if (
|
|
1420
|
+
function br() {
|
|
1421
|
+
var e = k[A], t, n, r, i;
|
|
1422
|
+
for (er(e === "/", "Regular expression literal must start with a slash"), t = k[A++], n = !1, r = !1; A < j;) if (e = k[A++], t += e, e === "\\") e = k[A++], ir(e.charCodeAt(0)) && V({}, Jn), t += e;
|
|
1423
|
+
else if (ir(e.charCodeAt(0))) V({}, Jn);
|
|
1342
1424
|
else if (n) e === "]" && (n = !1);
|
|
1343
1425
|
else if (e === "/") {
|
|
1344
1426
|
r = !0;
|
|
1345
1427
|
break;
|
|
1346
1428
|
} else e === "[" && (n = !0);
|
|
1347
|
-
return r ||
|
|
1429
|
+
return r || V({}, Jn), i = t.substr(1, t.length - 2), {
|
|
1348
1430
|
value: i,
|
|
1349
1431
|
literal: t
|
|
1350
1432
|
};
|
|
1351
1433
|
}
|
|
1352
|
-
function
|
|
1353
|
-
for (var e, t = "", n = "";
|
|
1354
|
-
return n.search(/[^gimuy]/g) >= 0 &&
|
|
1434
|
+
function xr() {
|
|
1435
|
+
for (var e, t = "", n = ""; A < j && (e = k[A], or(e.charCodeAt(0)));) ++A, e === "\\" && A < j ? V({}, L, R) : (n += e, t += e);
|
|
1436
|
+
return n.search(/[^gimuy]/g) >= 0 && V({}, qn, n), {
|
|
1355
1437
|
value: n,
|
|
1356
1438
|
literal: t
|
|
1357
1439
|
};
|
|
1358
1440
|
}
|
|
1359
|
-
function
|
|
1441
|
+
function Sr() {
|
|
1360
1442
|
var e, t, n, r;
|
|
1361
|
-
return
|
|
1443
|
+
return M = null, cr(), e = A, t = br(), n = xr(), r = yr(t.value, n.value), {
|
|
1362
1444
|
literal: t.literal + n.literal,
|
|
1363
1445
|
value: r,
|
|
1364
1446
|
regex: {
|
|
@@ -1366,166 +1448,166 @@ function mr() {
|
|
|
1366
1448
|
flags: n.value
|
|
1367
1449
|
},
|
|
1368
1450
|
start: e,
|
|
1369
|
-
end:
|
|
1451
|
+
end: A
|
|
1370
1452
|
};
|
|
1371
1453
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return e.type ===
|
|
1454
|
+
function Cr(e) {
|
|
1455
|
+
return e.type === N || e.type === P || e.type === En || e.type === On;
|
|
1374
1456
|
}
|
|
1375
|
-
function
|
|
1376
|
-
if (
|
|
1377
|
-
type:
|
|
1378
|
-
start:
|
|
1379
|
-
end:
|
|
1457
|
+
function wr() {
|
|
1458
|
+
if (cr(), A >= j) return {
|
|
1459
|
+
type: Dn,
|
|
1460
|
+
start: A,
|
|
1461
|
+
end: A
|
|
1380
1462
|
};
|
|
1381
|
-
let e =
|
|
1382
|
-
return
|
|
1463
|
+
let e = k.charCodeAt(A);
|
|
1464
|
+
return ar(e) ? pr() : e === 40 || e === 41 || e === 59 ? mr() : e === 39 || e === 34 ? vr() : e === 46 ? z(k.charCodeAt(A + 1)) ? _r() : mr() : z(e) ? _r() : mr();
|
|
1383
1465
|
}
|
|
1384
|
-
function
|
|
1385
|
-
let e =
|
|
1386
|
-
return
|
|
1466
|
+
function B() {
|
|
1467
|
+
let e = M;
|
|
1468
|
+
return A = e.end, M = wr(), A = e.end, e;
|
|
1387
1469
|
}
|
|
1388
|
-
function
|
|
1389
|
-
let e =
|
|
1390
|
-
|
|
1470
|
+
function Tr() {
|
|
1471
|
+
let e = A;
|
|
1472
|
+
M = wr(), A = e;
|
|
1391
1473
|
}
|
|
1392
|
-
function
|
|
1393
|
-
let t = new
|
|
1474
|
+
function Er(e) {
|
|
1475
|
+
let t = new D(jn);
|
|
1394
1476
|
return t.elements = e, t;
|
|
1395
1477
|
}
|
|
1396
|
-
function
|
|
1397
|
-
let r = new
|
|
1478
|
+
function Dr(e, t, n) {
|
|
1479
|
+
let r = new D(e === "||" || e === "&&" ? Ln : Mn);
|
|
1398
1480
|
return r.operator = e, r.left = t, r.right = n, r;
|
|
1399
1481
|
}
|
|
1400
|
-
function
|
|
1401
|
-
let n = new
|
|
1482
|
+
function Or(e, t) {
|
|
1483
|
+
let n = new D(Nn);
|
|
1402
1484
|
return n.callee = e, n.arguments = t, n;
|
|
1403
1485
|
}
|
|
1404
|
-
function
|
|
1405
|
-
let r = new
|
|
1486
|
+
function kr(e, t, n) {
|
|
1487
|
+
let r = new D(Pn);
|
|
1406
1488
|
return r.test = e, r.consequent = t, r.alternate = n, r;
|
|
1407
1489
|
}
|
|
1408
|
-
function
|
|
1409
|
-
let t = new
|
|
1490
|
+
function Ar(e) {
|
|
1491
|
+
let t = new D(Fn);
|
|
1410
1492
|
return t.name = e, t;
|
|
1411
1493
|
}
|
|
1412
|
-
function
|
|
1413
|
-
let t = new
|
|
1414
|
-
return t.value = e.value, t.raw =
|
|
1494
|
+
function jr(e) {
|
|
1495
|
+
let t = new D(In);
|
|
1496
|
+
return t.value = e.value, t.raw = k.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
|
|
1415
1497
|
}
|
|
1416
|
-
function
|
|
1417
|
-
let r = new
|
|
1498
|
+
function Mr(e, t, n) {
|
|
1499
|
+
let r = new D(Rn);
|
|
1418
1500
|
return r.computed = e === "[", r.object = t, r.property = n, r.computed || (n.member = !0), r;
|
|
1419
1501
|
}
|
|
1420
|
-
function
|
|
1421
|
-
let t = new
|
|
1502
|
+
function Nr(e) {
|
|
1503
|
+
let t = new D(zn);
|
|
1422
1504
|
return t.properties = e, t;
|
|
1423
1505
|
}
|
|
1424
|
-
function
|
|
1425
|
-
let r = new
|
|
1506
|
+
function Pr(e, t, n) {
|
|
1507
|
+
let r = new D(Bn);
|
|
1426
1508
|
return r.key = t, r.value = n, r.kind = e, r;
|
|
1427
1509
|
}
|
|
1428
|
-
function
|
|
1429
|
-
let n = new
|
|
1510
|
+
function Fr(e, t) {
|
|
1511
|
+
let n = new D(Vn);
|
|
1430
1512
|
return n.operator = e, n.argument = t, n.prefix = !0, n;
|
|
1431
1513
|
}
|
|
1432
|
-
function
|
|
1433
|
-
var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (
|
|
1434
|
-
throw n = Error(i), n.index =
|
|
1514
|
+
function V(e, t) {
|
|
1515
|
+
var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (er(t < r.length, "Message reference must be in range"), r[t]));
|
|
1516
|
+
throw n = Error(i), n.index = A, n.description = i, n;
|
|
1435
1517
|
}
|
|
1436
|
-
function
|
|
1437
|
-
e.type ===
|
|
1518
|
+
function Ir(e) {
|
|
1519
|
+
e.type === Dn && V(e, Kn), e.type === F && V(e, Hn), e.type === kn && V(e, Un), e.type === N && V(e, Wn), e.type === P && V(e, Gn), V(e, L, e.value);
|
|
1438
1520
|
}
|
|
1439
|
-
function
|
|
1440
|
-
let t =
|
|
1441
|
-
(t.type !==
|
|
1521
|
+
function H(e) {
|
|
1522
|
+
let t = B();
|
|
1523
|
+
(t.type !== I || t.value !== e) && Ir(t);
|
|
1442
1524
|
}
|
|
1443
|
-
function
|
|
1444
|
-
return
|
|
1525
|
+
function U(e) {
|
|
1526
|
+
return M.type === I && M.value === e;
|
|
1445
1527
|
}
|
|
1446
|
-
function
|
|
1447
|
-
return
|
|
1528
|
+
function Lr(e) {
|
|
1529
|
+
return M.type === P && M.value === e;
|
|
1448
1530
|
}
|
|
1449
|
-
function
|
|
1531
|
+
function Rr() {
|
|
1450
1532
|
let e = [];
|
|
1451
|
-
for (
|
|
1452
|
-
return
|
|
1533
|
+
for (A = M.start, H("["); !U("]");) U(",") ? (B(), e.push(null)) : (e.push(W()), U("]") || H(","));
|
|
1534
|
+
return B(), Er(e);
|
|
1453
1535
|
}
|
|
1454
|
-
function
|
|
1455
|
-
|
|
1456
|
-
let e =
|
|
1457
|
-
return e.type ===
|
|
1536
|
+
function zr() {
|
|
1537
|
+
A = M.start;
|
|
1538
|
+
let e = B();
|
|
1539
|
+
return e.type === kn || e.type === F ? (e.octal && V(e, Yn), jr(e)) : Ar(e.value);
|
|
1458
1540
|
}
|
|
1459
|
-
function
|
|
1541
|
+
function Br() {
|
|
1460
1542
|
var e, t, n, r;
|
|
1461
|
-
if (
|
|
1462
|
-
if (e.type ===
|
|
1463
|
-
else return t =
|
|
1543
|
+
if (A = M.start, e = M, e.type === N) return n = zr(), H(":"), r = W(), Pr("init", n, r);
|
|
1544
|
+
if (e.type === Dn || e.type === I) Ir(e);
|
|
1545
|
+
else return t = zr(), H(":"), r = W(), Pr("init", t, r);
|
|
1464
1546
|
}
|
|
1465
|
-
function
|
|
1547
|
+
function Vr() {
|
|
1466
1548
|
var e = [], t, n, r, i = {}, a = String;
|
|
1467
|
-
for (
|
|
1468
|
-
return
|
|
1549
|
+
for (A = M.start, H("{"); !U("}");) t = Br(), n = t.key.type === Fn ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? V({}, Xn) : i[r] = !0, e.push(t), U("}") || H(",");
|
|
1550
|
+
return H("}"), Nr(e);
|
|
1469
1551
|
}
|
|
1470
|
-
function
|
|
1471
|
-
|
|
1472
|
-
let e =
|
|
1473
|
-
return
|
|
1552
|
+
function Hr() {
|
|
1553
|
+
H("(");
|
|
1554
|
+
let e = ei();
|
|
1555
|
+
return H(")"), e;
|
|
1474
1556
|
}
|
|
1475
|
-
var
|
|
1476
|
-
function
|
|
1557
|
+
var Ur = { if: 1 };
|
|
1558
|
+
function Wr() {
|
|
1477
1559
|
var e, t, n;
|
|
1478
|
-
if (
|
|
1479
|
-
if (
|
|
1480
|
-
if (
|
|
1481
|
-
if (e =
|
|
1482
|
-
else if (e ===
|
|
1483
|
-
else if (e ===
|
|
1484
|
-
else e ===
|
|
1560
|
+
if (U("(")) return Hr();
|
|
1561
|
+
if (U("[")) return Rr();
|
|
1562
|
+
if (U("{")) return Vr();
|
|
1563
|
+
if (e = M.type, A = M.start, e === N || Ur[M.value]) n = Ar(B().value);
|
|
1564
|
+
else if (e === kn || e === F) M.octal && V(M, Yn), n = jr(B());
|
|
1565
|
+
else if (e === P) throw Error(Zn);
|
|
1566
|
+
else e === En ? (t = B(), t.value = t.value === "true", n = jr(t)) : e === On ? (t = B(), t.value = null, n = jr(t)) : U("/") || U("/=") ? (n = jr(Sr()), Tr()) : Ir(B());
|
|
1485
1567
|
return n;
|
|
1486
1568
|
}
|
|
1487
|
-
function
|
|
1569
|
+
function Gr() {
|
|
1488
1570
|
let e = [];
|
|
1489
|
-
if (
|
|
1490
|
-
return
|
|
1491
|
-
}
|
|
1492
|
-
function
|
|
1493
|
-
|
|
1494
|
-
let e =
|
|
1495
|
-
return
|
|
1496
|
-
}
|
|
1497
|
-
function
|
|
1498
|
-
return
|
|
1499
|
-
}
|
|
1500
|
-
function
|
|
1501
|
-
|
|
1502
|
-
let e =
|
|
1503
|
-
return
|
|
1504
|
-
}
|
|
1505
|
-
function
|
|
1506
|
-
for (var e =
|
|
1507
|
-
else if (
|
|
1508
|
-
else if (
|
|
1571
|
+
if (H("("), !U(")")) for (; A < j && (e.push(W()), !U(")"));) H(",");
|
|
1572
|
+
return H(")"), e;
|
|
1573
|
+
}
|
|
1574
|
+
function Kr() {
|
|
1575
|
+
A = M.start;
|
|
1576
|
+
let e = B();
|
|
1577
|
+
return Cr(e) || Ir(e), Ar(e.value);
|
|
1578
|
+
}
|
|
1579
|
+
function qr() {
|
|
1580
|
+
return H("."), Kr();
|
|
1581
|
+
}
|
|
1582
|
+
function Jr() {
|
|
1583
|
+
H("[");
|
|
1584
|
+
let e = ei();
|
|
1585
|
+
return H("]"), e;
|
|
1586
|
+
}
|
|
1587
|
+
function Yr() {
|
|
1588
|
+
for (var e = Wr(), t, n;;) if (U(".")) n = qr(), e = Mr(".", e, n);
|
|
1589
|
+
else if (U("(")) t = Gr(), e = Or(e, t);
|
|
1590
|
+
else if (U("[")) n = Jr(), e = Mr("[", e, n);
|
|
1509
1591
|
else break;
|
|
1510
1592
|
return e;
|
|
1511
1593
|
}
|
|
1512
|
-
function
|
|
1513
|
-
let e =
|
|
1514
|
-
if (
|
|
1594
|
+
function Xr() {
|
|
1595
|
+
let e = Yr();
|
|
1596
|
+
if (M.type === I && (U("++") || U("--"))) throw Error(Zn);
|
|
1515
1597
|
return e;
|
|
1516
1598
|
}
|
|
1517
|
-
function
|
|
1599
|
+
function Zr() {
|
|
1518
1600
|
var e, t;
|
|
1519
|
-
if (
|
|
1520
|
-
else if (
|
|
1521
|
-
else if (
|
|
1522
|
-
else if (
|
|
1523
|
-
else t =
|
|
1601
|
+
if (M.type !== I && M.type !== P) t = Xr();
|
|
1602
|
+
else if (U("++") || U("--")) throw Error(Zn);
|
|
1603
|
+
else if (U("+") || U("-") || U("~") || U("!")) e = B(), t = Zr(), t = Fr(e.value, t);
|
|
1604
|
+
else if (Lr("delete") || Lr("void") || Lr("typeof")) throw Error(Zn);
|
|
1605
|
+
else t = Xr();
|
|
1524
1606
|
return t;
|
|
1525
1607
|
}
|
|
1526
|
-
function
|
|
1608
|
+
function Qr(e) {
|
|
1527
1609
|
let t = 0;
|
|
1528
|
-
if (e.type !==
|
|
1610
|
+
if (e.type !== I && e.type !== P) return 0;
|
|
1529
1611
|
switch (e.value) {
|
|
1530
1612
|
case "||":
|
|
1531
1613
|
t = 1;
|
|
@@ -1573,36 +1655,36 @@ function Ur(e) {
|
|
|
1573
1655
|
}
|
|
1574
1656
|
return t;
|
|
1575
1657
|
}
|
|
1576
|
-
function
|
|
1577
|
-
var e =
|
|
1578
|
-
if (r =
|
|
1579
|
-
for (r.prec = i,
|
|
1658
|
+
function $r() {
|
|
1659
|
+
var e = M, t, n, r, i, a, o, s, c = Zr(), l;
|
|
1660
|
+
if (r = M, i = Qr(r), i === 0) return c;
|
|
1661
|
+
for (r.prec = i, B(), t = [e, M], o = Zr(), a = [
|
|
1580
1662
|
c,
|
|
1581
1663
|
r,
|
|
1582
1664
|
o
|
|
1583
|
-
]; (i =
|
|
1584
|
-
for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n =
|
|
1585
|
-
r =
|
|
1665
|
+
]; (i = Qr(M)) > 0;) {
|
|
1666
|
+
for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = Dr(s, c, o), a.push(n);
|
|
1667
|
+
r = B(), r.prec = i, a.push(r), t.push(M), n = Zr(), a.push(n);
|
|
1586
1668
|
}
|
|
1587
|
-
for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n =
|
|
1669
|
+
for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = Dr(a[l - 1].value, a[l - 2], n), l -= 2;
|
|
1588
1670
|
return n;
|
|
1589
1671
|
}
|
|
1590
|
-
function
|
|
1591
|
-
var e =
|
|
1592
|
-
return
|
|
1672
|
+
function W() {
|
|
1673
|
+
var e = $r(), t, n;
|
|
1674
|
+
return U("?") && (B(), t = W(), H(":"), n = W(), e = kr(e, t, n)), e;
|
|
1593
1675
|
}
|
|
1594
|
-
function
|
|
1595
|
-
let e =
|
|
1596
|
-
if (
|
|
1676
|
+
function ei() {
|
|
1677
|
+
let e = W();
|
|
1678
|
+
if (U(",")) throw Error(Zn);
|
|
1597
1679
|
return e;
|
|
1598
1680
|
}
|
|
1599
|
-
function
|
|
1600
|
-
|
|
1601
|
-
let t =
|
|
1602
|
-
if (
|
|
1681
|
+
function ti(e) {
|
|
1682
|
+
k = e, A = 0, j = k.length, M = null, Tr();
|
|
1683
|
+
let t = ei();
|
|
1684
|
+
if (M.type !== Dn) throw Error("Unexpect token after expression.");
|
|
1603
1685
|
return t;
|
|
1604
1686
|
}
|
|
1605
|
-
var
|
|
1687
|
+
var ni = {
|
|
1606
1688
|
NaN: "NaN",
|
|
1607
1689
|
E: "Math.E",
|
|
1608
1690
|
LN2: "Math.LN2",
|
|
@@ -1615,7 +1697,7 @@ var qr = {
|
|
|
1615
1697
|
MIN_VALUE: "Number.MIN_VALUE",
|
|
1616
1698
|
MAX_VALUE: "Number.MAX_VALUE"
|
|
1617
1699
|
};
|
|
1618
|
-
function
|
|
1700
|
+
function ri(e) {
|
|
1619
1701
|
function t(t, n, r, i) {
|
|
1620
1702
|
let a = e(n[0]);
|
|
1621
1703
|
return r && (a = r + "(" + a + ")", r.lastIndexOf("new ", 0) === 0 && (a = "(" + a + ")")), a + "." + t + (i < 0 ? "" : i === 0 ? "()" : "(" + n.slice(1).map(e).join(",") + ")");
|
|
@@ -1691,13 +1773,13 @@ function Jr(e) {
|
|
|
1691
1773
|
}
|
|
1692
1774
|
};
|
|
1693
1775
|
}
|
|
1694
|
-
function
|
|
1776
|
+
function ii(e) {
|
|
1695
1777
|
let t = e && e.length - 1;
|
|
1696
1778
|
return t && (e[0] === "\"" && e[t] === "\"" || e[0] === "'" && e[t] === "'") ? e.slice(1, -1) : e;
|
|
1697
1779
|
}
|
|
1698
|
-
function
|
|
1780
|
+
function ai(e) {
|
|
1699
1781
|
e ||= {};
|
|
1700
|
-
let t = e.allowed ? g(e.allowed) : {}, n = e.forbidden ? g(e.forbidden) : {}, r = e.constants ||
|
|
1782
|
+
let t = e.allowed ? g(e.allowed) : {}, n = e.forbidden ? g(e.forbidden) : {}, r = e.constants || ni, a = (e.functions || ri)(_), o = e.globalvar, s = e.fieldvar, l = f(o) ? o : (e) => `${o}["${e}"]`;
|
|
1701
1783
|
[...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
|
|
1702
1784
|
let u = {}, d = {}, h = 0;
|
|
1703
1785
|
function _(e) {
|
|
@@ -1715,7 +1797,7 @@ function Xr(e) {
|
|
|
1715
1797
|
let t = !e.computed, n = _(e.object);
|
|
1716
1798
|
t && (h += 1);
|
|
1717
1799
|
let r = _(e.property);
|
|
1718
|
-
return n === s && (d[
|
|
1800
|
+
return n === s && (d[ii(r)] = 1), t && --h, n + (t ? "." + r : "[" + r + "]");
|
|
1719
1801
|
},
|
|
1720
1802
|
CallExpression: (e) => {
|
|
1721
1803
|
e.callee.type !== "Identifier" && i("Illegal callee type: " + e.callee.type);
|
|
@@ -1752,89 +1834,94 @@ function Xr(e) {
|
|
|
1752
1834
|
}
|
|
1753
1835
|
//#endregion
|
|
1754
1836
|
//#region ../core/src/utils/smoothstep.js
|
|
1755
|
-
function
|
|
1837
|
+
function oi(e, t, n) {
|
|
1756
1838
|
return n = (n - e) / (t - e), n = Math.max(0, Math.min(1, n)), n * n * (3 - 2 * n);
|
|
1757
1839
|
}
|
|
1758
1840
|
//#endregion
|
|
1759
1841
|
//#region ../core/src/utils/clamp.js
|
|
1760
|
-
function
|
|
1842
|
+
function si(e, t = 0, n = 1) {
|
|
1761
1843
|
return Math.max(t, Math.min(n, e));
|
|
1762
1844
|
}
|
|
1763
1845
|
//#endregion
|
|
1764
1846
|
//#region ../core/src/utils/linearstep.js
|
|
1765
|
-
function
|
|
1766
|
-
return
|
|
1847
|
+
function ci(e, t, n) {
|
|
1848
|
+
return si((n - e) / (t - e), 0, 1);
|
|
1767
1849
|
}
|
|
1768
1850
|
//#endregion
|
|
1769
1851
|
//#region ../core/src/utils/expression.js
|
|
1770
|
-
function
|
|
1771
|
-
return
|
|
1852
|
+
function li(e) {
|
|
1853
|
+
return C(e) || ArrayBuffer.isView(e) ? e : null;
|
|
1772
1854
|
}
|
|
1773
|
-
function
|
|
1774
|
-
return
|
|
1855
|
+
function ui(e) {
|
|
1856
|
+
return li(e) || (w(e) ? e : null);
|
|
1775
1857
|
}
|
|
1776
|
-
var
|
|
1777
|
-
clamp:
|
|
1858
|
+
var di = {
|
|
1859
|
+
clamp: si,
|
|
1778
1860
|
format(e, t) {
|
|
1779
1861
|
return me(t)(e);
|
|
1780
1862
|
},
|
|
1781
1863
|
join(e, t) {
|
|
1782
|
-
return
|
|
1864
|
+
return li(e).join(t);
|
|
1783
1865
|
},
|
|
1784
1866
|
indexof(e, t, n) {
|
|
1785
|
-
return
|
|
1867
|
+
return ui(e).indexOf(t, n);
|
|
1786
1868
|
},
|
|
1787
1869
|
lastindexof(e, t, n) {
|
|
1788
|
-
return
|
|
1870
|
+
return ui(e).lastIndexOf(t, n);
|
|
1789
1871
|
},
|
|
1790
1872
|
reverse(e) {
|
|
1791
|
-
return w(e) ? Array.from(e).reverse().join("") :
|
|
1873
|
+
return w(e) ? Array.from(e).reverse().join("") : li(e).slice().reverse();
|
|
1792
1874
|
},
|
|
1793
1875
|
slice(e, t, n) {
|
|
1794
|
-
return
|
|
1876
|
+
return ui(e).slice(t, n);
|
|
1795
1877
|
},
|
|
1796
1878
|
mapHasKey(e, t) {
|
|
1797
1879
|
return e.has(t);
|
|
1798
1880
|
},
|
|
1799
|
-
isArray:
|
|
1881
|
+
isArray: C,
|
|
1800
1882
|
isBoolean: nt,
|
|
1801
1883
|
isDefined(e) {
|
|
1802
1884
|
return e !== void 0;
|
|
1803
1885
|
},
|
|
1804
1886
|
isNumber: rt,
|
|
1805
|
-
isObject:
|
|
1887
|
+
isObject: Ae,
|
|
1806
1888
|
isRegExp: it,
|
|
1807
1889
|
isString: w,
|
|
1808
1890
|
isValid(e) {
|
|
1809
1891
|
return e != null && e === e;
|
|
1810
1892
|
},
|
|
1811
1893
|
lerp: at,
|
|
1812
|
-
linearstep:
|
|
1894
|
+
linearstep: ci,
|
|
1813
1895
|
replace(e, t, n) {
|
|
1814
1896
|
return String(e).replace(t, n);
|
|
1815
1897
|
},
|
|
1816
1898
|
sort(e) {
|
|
1817
|
-
return
|
|
1899
|
+
return li(e).slice().sort(Qe);
|
|
1818
1900
|
},
|
|
1819
1901
|
center(e) {
|
|
1820
|
-
let t =
|
|
1902
|
+
let t = li(e);
|
|
1821
1903
|
return (t[0] + t[t.length - 1]) / 2;
|
|
1822
1904
|
},
|
|
1823
1905
|
span(e) {
|
|
1824
1906
|
return ot(e);
|
|
1825
1907
|
},
|
|
1826
|
-
smoothstep:
|
|
1908
|
+
smoothstep: oi
|
|
1827
1909
|
};
|
|
1828
|
-
function
|
|
1829
|
-
let t = !1, n =
|
|
1910
|
+
function fi(e) {
|
|
1911
|
+
let t = !1, n = bi(e, {}, { resolveScaleResolution: () => (t = !0, {
|
|
1912
|
+
channel: "analysis",
|
|
1913
|
+
getDomainRef: () => void 0,
|
|
1914
|
+
getMappingRef: () => void 0,
|
|
1915
|
+
getConfigurationRef: () => void 0
|
|
1916
|
+
}) });
|
|
1830
1917
|
return {
|
|
1831
1918
|
usesScaleHelper: t,
|
|
1832
1919
|
globals: n.globals
|
|
1833
1920
|
};
|
|
1834
1921
|
}
|
|
1835
|
-
function
|
|
1836
|
-
let n =
|
|
1837
|
-
for (let e in
|
|
1922
|
+
function pi(e, t) {
|
|
1923
|
+
let n = ri(e);
|
|
1924
|
+
for (let e in di) n[e] = `this.${e}`;
|
|
1838
1925
|
for (let r of [
|
|
1839
1926
|
"scale",
|
|
1840
1927
|
"invert",
|
|
@@ -1842,24 +1929,24 @@ function ii(e, t) {
|
|
|
1842
1929
|
"range",
|
|
1843
1930
|
"bandwidth",
|
|
1844
1931
|
"linearize"
|
|
1845
|
-
]) n[r] = (n) =>
|
|
1932
|
+
]) n[r] = (n) => mi(e, t, r, n);
|
|
1846
1933
|
return n;
|
|
1847
1934
|
}
|
|
1848
|
-
function
|
|
1935
|
+
function mi(e, t, n, r) {
|
|
1849
1936
|
if (r.length === 0) throw Error(`Scale helper "${n}" requires a literal channel name.`);
|
|
1850
1937
|
if ((n === "scale" || n === "invert" || n === "linearize") && r.length < 2) throw Error(`Scale helper "${n}" requires a channel name and a value.`);
|
|
1851
|
-
let i =
|
|
1938
|
+
let i = hi(r[0]);
|
|
1852
1939
|
if (!i) throw Error(`Scale helper "${n}" requires a literal channel name.`);
|
|
1853
1940
|
let a = t.resolveScaleResolution?.(i);
|
|
1854
1941
|
if (!a) throw Error(`Unknown scale channel "${i}" in expression helper "${n}".`);
|
|
1855
1942
|
let o = t.getScaleHelper(n, i, a), s = r.slice(1).map((t) => e(t)).join(",");
|
|
1856
1943
|
return `${t.globalvar}["${o.codeName}"](${s})`;
|
|
1857
1944
|
}
|
|
1858
|
-
function
|
|
1945
|
+
function hi(e) {
|
|
1859
1946
|
return e?.type === "Literal" && typeof e.value == "string" ? e.value : void 0;
|
|
1860
1947
|
}
|
|
1861
|
-
function
|
|
1862
|
-
let n = (n) =>
|
|
1948
|
+
function gi(e, t) {
|
|
1949
|
+
let n = (n) => vi(t, e, n);
|
|
1863
1950
|
if (e === "domain") return () => n(() => t.getDomain());
|
|
1864
1951
|
if (e === "range") return () => n(() => t.getScale().range());
|
|
1865
1952
|
if (e === "bandwidth") return () => n(() => {
|
|
@@ -1872,42 +1959,20 @@ function si(e, t) {
|
|
|
1872
1959
|
if (e === "linearize") return (e) => n(() => e == null ? null : typeof t.fromComplex == "function" ? t.fromComplex(e) : e);
|
|
1873
1960
|
throw Error("Unknown scale helper: " + e);
|
|
1874
1961
|
}
|
|
1875
|
-
var
|
|
1876
|
-
function
|
|
1877
|
-
if (
|
|
1878
|
-
|
|
1962
|
+
var _i = /* @__PURE__ */ new WeakSet();
|
|
1963
|
+
function vi(e, t, n) {
|
|
1964
|
+
if (_i.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
|
|
1965
|
+
_i.add(e);
|
|
1879
1966
|
try {
|
|
1880
1967
|
return n();
|
|
1881
1968
|
} finally {
|
|
1882
|
-
|
|
1969
|
+
_i.delete(e);
|
|
1883
1970
|
}
|
|
1884
1971
|
}
|
|
1885
|
-
function
|
|
1886
|
-
|
|
1887
|
-
for (let e of i) e();
|
|
1888
|
-
}, o = () => {
|
|
1889
|
-
e === "domain" ? n.addEventListener("domain", a) : (e === "range" || n.addEventListener("domain", a), n.addEventListener("range", a));
|
|
1890
|
-
}, s = () => {
|
|
1891
|
-
e === "domain" ? n.removeEventListener("domain", a) : (e === "range" || n.removeEventListener("domain", a), n.removeEventListener("range", a));
|
|
1892
|
-
};
|
|
1893
|
-
return {
|
|
1894
|
-
id: `scale:${t}:${r}`,
|
|
1895
|
-
name: `scale(${t})`,
|
|
1896
|
-
kind: "derived",
|
|
1897
|
-
rank: 0,
|
|
1898
|
-
propagation: "sync",
|
|
1899
|
-
get() {
|
|
1900
|
-
return n.getScale();
|
|
1901
|
-
},
|
|
1902
|
-
subscribe(e) {
|
|
1903
|
-
let t = i.size === 0;
|
|
1904
|
-
return i.add(e), t && o(), () => {
|
|
1905
|
-
i.delete(e) && i.size === 0 && s();
|
|
1906
|
-
};
|
|
1907
|
-
}
|
|
1908
|
-
};
|
|
1972
|
+
function yi(e, t) {
|
|
1973
|
+
return e === "domain" ? t.getDomainRef() : e === "linearize" ? t.getConfigurationRef() : t.getMappingRef();
|
|
1909
1974
|
}
|
|
1910
|
-
function
|
|
1975
|
+
function bi(e, t = {}, n = {}) {
|
|
1911
1976
|
try {
|
|
1912
1977
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = 1, o = {
|
|
1913
1978
|
...n,
|
|
@@ -1917,38 +1982,38 @@ function di(e, t = {}, n = {}) {
|
|
|
1917
1982
|
let s = e + ":" + n, c = i.get(s);
|
|
1918
1983
|
if (c) return c;
|
|
1919
1984
|
let l = r.get(s);
|
|
1920
|
-
l || (l =
|
|
1985
|
+
l || (l = yi(e, o), r.set(s, l));
|
|
1921
1986
|
let u = "__scale_helper_" + a++, d = {
|
|
1922
1987
|
codeName: u,
|
|
1923
1988
|
dependency: l
|
|
1924
1989
|
};
|
|
1925
|
-
return i.set(s, d), t[u] =
|
|
1990
|
+
return i.set(s, d), t[u] = gi(e, o), d;
|
|
1926
1991
|
}
|
|
1927
|
-
}, s =
|
|
1992
|
+
}, s = ai({
|
|
1928
1993
|
forbidden: [],
|
|
1929
1994
|
allowed: ["datum", "undefined"],
|
|
1930
1995
|
globalvar: "globalObject",
|
|
1931
1996
|
fieldvar: "datum",
|
|
1932
|
-
functions: (e) =>
|
|
1933
|
-
})(
|
|
1997
|
+
functions: (e) => pi(e, o)
|
|
1998
|
+
})(ti(e)), c = Function("datum", "globalObject", `"use strict";
|
|
1934
1999
|
try {
|
|
1935
2000
|
return (${s.code});
|
|
1936
2001
|
} catch (e) {
|
|
1937
2002
|
throw new Error("Error evaluating expression: " + ${JSON.stringify(e)} + ", " + e.message, e);
|
|
1938
|
-
}`).bind(
|
|
1939
|
-
return l.fields = s.fields, l.globals = s.globals, l.code = s.code, l.scaleDependencies = Array.from(r.values()), l;
|
|
2003
|
+
}`).bind(di), l = (e) => c(e, t);
|
|
2004
|
+
return l.fields = s.fields, l.globals = s.globals, l.code = s.code, l.scaleDependencies = Array.from(new Set(r.values())), l;
|
|
1940
2005
|
} catch (t) {
|
|
1941
2006
|
throw Error(`Invalid expression: ${e}, ${t.message}`, { cause: t });
|
|
1942
2007
|
}
|
|
1943
2008
|
}
|
|
1944
|
-
var
|
|
2009
|
+
var xi = ai({
|
|
1945
2010
|
forbidden: [],
|
|
1946
2011
|
allowed: ["event"],
|
|
1947
2012
|
globalvar: "globalObject"
|
|
1948
2013
|
});
|
|
1949
|
-
function
|
|
2014
|
+
function Si(e) {
|
|
1950
2015
|
try {
|
|
1951
|
-
let t =
|
|
2016
|
+
let t = xi(ti(e));
|
|
1952
2017
|
return Function("event", "globalObject", `"use strict";
|
|
1953
2018
|
try {
|
|
1954
2019
|
return !!(${t.code});
|
|
@@ -1961,7 +2026,7 @@ function pi(e) {
|
|
|
1961
2026
|
}
|
|
1962
2027
|
//#endregion
|
|
1963
2028
|
//#region ../core/src/utils/interactionConfig.js
|
|
1964
|
-
function
|
|
2029
|
+
function Ci(e) {
|
|
1965
2030
|
if (typeof e == "string") {
|
|
1966
2031
|
let t = e.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);
|
|
1967
2032
|
if (!t) throw Error(`Invalid event type string: ${e}`);
|
|
@@ -1969,36 +2034,36 @@ function mi(e) {
|
|
|
1969
2034
|
return r && (i.filter = r), i;
|
|
1970
2035
|
} else return e;
|
|
1971
2036
|
}
|
|
1972
|
-
function
|
|
1973
|
-
return e?.filter ?
|
|
2037
|
+
function wi(e) {
|
|
2038
|
+
return e?.filter ? Si(e.filter) : () => !0;
|
|
1974
2039
|
}
|
|
1975
|
-
function
|
|
2040
|
+
function Ti(e, t, n) {
|
|
1976
2041
|
if (!t.includes(e.type)) throw Error(n);
|
|
1977
2042
|
return e;
|
|
1978
2043
|
}
|
|
1979
2044
|
//#endregion
|
|
1980
2045
|
//#region ../core/src/selection/selection.js
|
|
1981
|
-
function
|
|
2046
|
+
function Ei(e) {
|
|
1982
2047
|
return {
|
|
1983
2048
|
type: "single",
|
|
1984
2049
|
datum: e,
|
|
1985
2050
|
uniqueId: e?.[T]
|
|
1986
2051
|
};
|
|
1987
2052
|
}
|
|
1988
|
-
function
|
|
2053
|
+
function Di(e) {
|
|
1989
2054
|
return e ??= [], {
|
|
1990
2055
|
type: "multi",
|
|
1991
2056
|
data: new Map(e.map((e) => [e[T], e]))
|
|
1992
2057
|
};
|
|
1993
2058
|
}
|
|
1994
|
-
function
|
|
2059
|
+
function Oi(e, t) {
|
|
1995
2060
|
if (!t || t.length === 0) return;
|
|
1996
|
-
let n = t.map((e) =>
|
|
1997
|
-
if (
|
|
1998
|
-
if (
|
|
2061
|
+
let n = t.map((e) => yt(e)), r = (e) => n.map((t) => t(e));
|
|
2062
|
+
if (Pi(e)) return e.datum ? [r(e.datum)] : [];
|
|
2063
|
+
if (Fi(e)) return [...e.data.values()].map(r);
|
|
1999
2064
|
throw Error(`Expected a point selection, got: ${JSON.stringify(e)}`);
|
|
2000
2065
|
}
|
|
2001
|
-
function
|
|
2066
|
+
function ki(e, t, n, r) {
|
|
2002
2067
|
if (!t || t.length === 0) return;
|
|
2003
2068
|
if (e === "single" && n.length > 1) throw Error("Single point selections expect at most one key tuple.");
|
|
2004
2069
|
let i = [], a = [];
|
|
@@ -2007,17 +2072,17 @@ function bi(e, t, n, r) {
|
|
|
2007
2072
|
n ? i.push(n) : a.push(e);
|
|
2008
2073
|
}
|
|
2009
2074
|
return {
|
|
2010
|
-
selection: e === "single" ?
|
|
2075
|
+
selection: e === "single" ? Ei(i[0] ?? null) : Di(i),
|
|
2011
2076
|
unresolved: a
|
|
2012
2077
|
};
|
|
2013
2078
|
}
|
|
2014
|
-
function
|
|
2079
|
+
function Ai(e) {
|
|
2015
2080
|
return {
|
|
2016
2081
|
type: "interval",
|
|
2017
2082
|
intervals: Object.fromEntries(e.map((e) => [e, null]))
|
|
2018
2083
|
};
|
|
2019
2084
|
}
|
|
2020
|
-
function
|
|
2085
|
+
function ji(e, { add: t, remove: n, toggle: r }) {
|
|
2021
2086
|
let i = e.data;
|
|
2022
2087
|
for (let e of t ?? []) i.set(e[T], e);
|
|
2023
2088
|
for (let e of n ?? []) i.delete(e[T]);
|
|
@@ -2030,49 +2095,49 @@ function Si(e, { add: t, remove: n, toggle: r }) {
|
|
|
2030
2095
|
data: i
|
|
2031
2096
|
};
|
|
2032
2097
|
}
|
|
2033
|
-
function
|
|
2034
|
-
let n = !!(e.empty ?? !0), r =
|
|
2035
|
-
if (
|
|
2036
|
-
if (
|
|
2037
|
-
if (
|
|
2038
|
-
let a = Object.keys(t.intervals), o = Object.keys(i).filter(
|
|
2098
|
+
function Mi(e, t) {
|
|
2099
|
+
let n = !!(e.empty ?? !0), r = Ki(e.param), i = e.fields ?? {};
|
|
2100
|
+
if (Pi(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(T)}]`;
|
|
2101
|
+
if (Fi(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(T)}])`;
|
|
2102
|
+
if (Ni(t)) {
|
|
2103
|
+
let a = Object.keys(t.intervals), o = Object.keys(i).filter(Zt);
|
|
2039
2104
|
if (o.length === 0) throw Error("Filtering using interval selections requires at least one primary positional channel in the config! " + JSON.stringify(e));
|
|
2040
2105
|
if (o.some((e) => !a.includes(e))) throw Error(`Selection channels (${a.join(", ")}) do not match the fields: ${JSON.stringify(e)}!`);
|
|
2041
2106
|
let s = (e) => `datum[${JSON.stringify(e)}]`;
|
|
2042
2107
|
return a.map((e) => {
|
|
2043
|
-
let t =
|
|
2108
|
+
let t = on(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
|
|
2044
2109
|
return `(${r}.intervals.${e} ? (${c} && ${l}) : ${n})`;
|
|
2045
2110
|
}).join(" && ");
|
|
2046
2111
|
} else throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
|
|
2047
2112
|
}
|
|
2048
|
-
function
|
|
2113
|
+
function Ni(e) {
|
|
2049
2114
|
return e.type === "interval";
|
|
2050
2115
|
}
|
|
2051
|
-
function
|
|
2116
|
+
function Pi(e) {
|
|
2052
2117
|
return e.type === "single";
|
|
2053
2118
|
}
|
|
2054
|
-
function
|
|
2119
|
+
function Fi(e) {
|
|
2055
2120
|
return e.type === "multi";
|
|
2056
2121
|
}
|
|
2057
|
-
function
|
|
2122
|
+
function Ii(e) {
|
|
2058
2123
|
let t = typeof e == "string" ? { type: e } : { ...e };
|
|
2059
|
-
return t.on = t.on ?
|
|
2124
|
+
return t.on = t.on ? Ci(t.on) : Li(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : Ci(t.clear), Li(t) && t.on.type === "click" && (t.toggle = !0), t;
|
|
2060
2125
|
}
|
|
2061
|
-
function
|
|
2126
|
+
function Li(e) {
|
|
2062
2127
|
return e && e.type == "point";
|
|
2063
2128
|
}
|
|
2064
|
-
function
|
|
2129
|
+
function Ri(e) {
|
|
2065
2130
|
return e && e.type == "interval";
|
|
2066
2131
|
}
|
|
2067
|
-
function
|
|
2132
|
+
function zi(e) {
|
|
2068
2133
|
return Object.values(e.intervals).some((e) => e && e.length === 2);
|
|
2069
2134
|
}
|
|
2070
|
-
function
|
|
2135
|
+
function Bi(e, t) {
|
|
2071
2136
|
return Object.entries(e.intervals).every(([e, n]) => (e == "x" || e == "y") && n && n[0] <= t[e] && n[1] >= t[e]);
|
|
2072
2137
|
}
|
|
2073
2138
|
//#endregion
|
|
2074
2139
|
//#region ../core/src/ruler/rulerValue.js
|
|
2075
|
-
function
|
|
2140
|
+
function Vi(e = ["x"], t = {}) {
|
|
2076
2141
|
let n = {};
|
|
2077
2142
|
for (let r of e) n[r] = t[r] ?? null;
|
|
2078
2143
|
return {
|
|
@@ -2082,37 +2147,37 @@ function Mi(e = ["x"], t = {}) {
|
|
|
2082
2147
|
}
|
|
2083
2148
|
//#endregion
|
|
2084
2149
|
//#region ../core/src/paramRuntime/paramUtils.js
|
|
2085
|
-
function
|
|
2150
|
+
function G(e) {
|
|
2086
2151
|
return typeof e == "object" && !!e && "expr" in e && w(e.expr);
|
|
2087
2152
|
}
|
|
2088
|
-
function
|
|
2089
|
-
if (
|
|
2153
|
+
function Hi(e) {
|
|
2154
|
+
if (G(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
|
|
2090
2155
|
return e;
|
|
2091
2156
|
}
|
|
2092
|
-
function
|
|
2157
|
+
function Ui(e) {
|
|
2093
2158
|
return ("expr" in e || "bind" in e) && !("select" in e) && !("ruler" in e);
|
|
2094
2159
|
}
|
|
2095
|
-
function
|
|
2160
|
+
function Wi(e) {
|
|
2096
2161
|
return !("expr" in e || "bind" in e) && "select" in e;
|
|
2097
2162
|
}
|
|
2098
|
-
function
|
|
2163
|
+
function Gi(e) {
|
|
2099
2164
|
return !("expr" in e || "bind" in e || "select" in e) && "ruler" in e;
|
|
2100
2165
|
}
|
|
2101
|
-
function
|
|
2166
|
+
function Ki(e) {
|
|
2102
2167
|
if (!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)) throw Error("Invalid parameter name: " + e + ". Must be a valid JavaScript identifier.");
|
|
2103
2168
|
return e;
|
|
2104
2169
|
}
|
|
2105
|
-
function
|
|
2170
|
+
function qi(e, t, n) {
|
|
2106
2171
|
if ("select" in e) {
|
|
2107
|
-
let t =
|
|
2108
|
-
if (
|
|
2109
|
-
if (
|
|
2172
|
+
let t = Ii(e.select);
|
|
2173
|
+
if (Li(t)) return t.toggle ? Di() : Ei(null);
|
|
2174
|
+
if (Ri(t)) {
|
|
2110
2175
|
if (!t.encodings) throw Error("Interval selection \"" + e.name + "\" must have encodings defined!");
|
|
2111
|
-
return
|
|
2176
|
+
return Ai(t.encodings);
|
|
2112
2177
|
}
|
|
2113
2178
|
throw Error("Unknown selection config for parameter \"" + e.name + "\".");
|
|
2114
2179
|
}
|
|
2115
|
-
if ("ruler" in e) return
|
|
2180
|
+
if ("ruler" in e) return Vi(e.ruler.encodings, e.value);
|
|
2116
2181
|
if ("expr" in e) {
|
|
2117
2182
|
let r = n ?? t?.createExpression(e.expr);
|
|
2118
2183
|
if (!r) throw Error("Cannot evaluate expression for parameter \"" + e.name + "\".");
|
|
@@ -2120,7 +2185,7 @@ function Ri(e, t, n) {
|
|
|
2120
2185
|
}
|
|
2121
2186
|
return "value" in e ? e.value : null;
|
|
2122
2187
|
}
|
|
2123
|
-
function
|
|
2188
|
+
function Ji(e, t, n, r, i = {}) {
|
|
2124
2189
|
let a = { ...t }, o = /* @__PURE__ */ new Set(), s = !1, c = !1, l = i.batchMode ?? "microtask";
|
|
2125
2190
|
r?.(() => {
|
|
2126
2191
|
c = !0, o.clear(), s = !1;
|
|
@@ -2140,7 +2205,7 @@ function zi(e, t, n, r, i = {}) {
|
|
|
2140
2205
|
}) : u());
|
|
2141
2206
|
})));
|
|
2142
2207
|
};
|
|
2143
|
-
for (let [i, o] of Object.entries(t)) if (
|
|
2208
|
+
for (let [i, o] of Object.entries(t)) if (G(o)) if (n) {
|
|
2144
2209
|
let t = () => d(i), n = e.watchExpression ? e.watchExpression(o.expr, t, {
|
|
2145
2210
|
scopeOwned: !r,
|
|
2146
2211
|
registerDisposer: r
|
|
@@ -2167,8 +2232,8 @@ function zi(e, t, n, r, i = {}) {
|
|
|
2167
2232
|
else a[i] = o;
|
|
2168
2233
|
return a;
|
|
2169
2234
|
}
|
|
2170
|
-
function
|
|
2171
|
-
if (
|
|
2235
|
+
function Yi(e, t, n, r) {
|
|
2236
|
+
if (!G(t)) return t;
|
|
2172
2237
|
let i = () => {
|
|
2173
2238
|
throw Error(n);
|
|
2174
2239
|
}, a = e.watchExpression ? e.watchExpression(t.expr, i, {
|
|
@@ -2181,7 +2246,7 @@ function Bi(e, t, n, r) {
|
|
|
2181
2246
|
}
|
|
2182
2247
|
return a();
|
|
2183
2248
|
}
|
|
2184
|
-
function
|
|
2249
|
+
function Xi(e) {
|
|
2185
2250
|
return Object.assign(() => e, {
|
|
2186
2251
|
subscribe: () => () => void 0,
|
|
2187
2252
|
invalidate: () => void 0,
|
|
@@ -2192,4 +2257,365 @@ function Vi(e) {
|
|
|
2192
2257
|
});
|
|
2193
2258
|
}
|
|
2194
2259
|
//#endregion
|
|
2195
|
-
|
|
2260
|
+
//#region ../../node_modules/d3-color/src/define.js
|
|
2261
|
+
function Zi(e, t, n) {
|
|
2262
|
+
e.prototype = t.prototype = n, n.constructor = e;
|
|
2263
|
+
}
|
|
2264
|
+
function Qi(e, t) {
|
|
2265
|
+
var n = Object.create(e.prototype);
|
|
2266
|
+
for (var r in t) n[r] = t[r];
|
|
2267
|
+
return n;
|
|
2268
|
+
}
|
|
2269
|
+
//#endregion
|
|
2270
|
+
//#region ../../node_modules/d3-color/src/color.js
|
|
2271
|
+
function K() {}
|
|
2272
|
+
var q = .7, $i = 1 / q, J = "\\s*([+-]?\\d+)\\s*", ea = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Y = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ta = /^#([0-9a-f]{3,8})$/, na = RegExp(`^rgb\\(${J},${J},${J}\\)$`), ra = RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`), ia = RegExp(`^rgba\\(${J},${J},${J},${ea}\\)$`), aa = RegExp(`^rgba\\(${Y},${Y},${Y},${ea}\\)$`), oa = RegExp(`^hsl\\(${ea},${Y},${Y}\\)$`), sa = RegExp(`^hsla\\(${ea},${Y},${Y},${ea}\\)$`), ca = {
|
|
2273
|
+
aliceblue: 15792383,
|
|
2274
|
+
antiquewhite: 16444375,
|
|
2275
|
+
aqua: 65535,
|
|
2276
|
+
aquamarine: 8388564,
|
|
2277
|
+
azure: 15794175,
|
|
2278
|
+
beige: 16119260,
|
|
2279
|
+
bisque: 16770244,
|
|
2280
|
+
black: 0,
|
|
2281
|
+
blanchedalmond: 16772045,
|
|
2282
|
+
blue: 255,
|
|
2283
|
+
blueviolet: 9055202,
|
|
2284
|
+
brown: 10824234,
|
|
2285
|
+
burlywood: 14596231,
|
|
2286
|
+
cadetblue: 6266528,
|
|
2287
|
+
chartreuse: 8388352,
|
|
2288
|
+
chocolate: 13789470,
|
|
2289
|
+
coral: 16744272,
|
|
2290
|
+
cornflowerblue: 6591981,
|
|
2291
|
+
cornsilk: 16775388,
|
|
2292
|
+
crimson: 14423100,
|
|
2293
|
+
cyan: 65535,
|
|
2294
|
+
darkblue: 139,
|
|
2295
|
+
darkcyan: 35723,
|
|
2296
|
+
darkgoldenrod: 12092939,
|
|
2297
|
+
darkgray: 11119017,
|
|
2298
|
+
darkgreen: 25600,
|
|
2299
|
+
darkgrey: 11119017,
|
|
2300
|
+
darkkhaki: 12433259,
|
|
2301
|
+
darkmagenta: 9109643,
|
|
2302
|
+
darkolivegreen: 5597999,
|
|
2303
|
+
darkorange: 16747520,
|
|
2304
|
+
darkorchid: 10040012,
|
|
2305
|
+
darkred: 9109504,
|
|
2306
|
+
darksalmon: 15308410,
|
|
2307
|
+
darkseagreen: 9419919,
|
|
2308
|
+
darkslateblue: 4734347,
|
|
2309
|
+
darkslategray: 3100495,
|
|
2310
|
+
darkslategrey: 3100495,
|
|
2311
|
+
darkturquoise: 52945,
|
|
2312
|
+
darkviolet: 9699539,
|
|
2313
|
+
deeppink: 16716947,
|
|
2314
|
+
deepskyblue: 49151,
|
|
2315
|
+
dimgray: 6908265,
|
|
2316
|
+
dimgrey: 6908265,
|
|
2317
|
+
dodgerblue: 2003199,
|
|
2318
|
+
firebrick: 11674146,
|
|
2319
|
+
floralwhite: 16775920,
|
|
2320
|
+
forestgreen: 2263842,
|
|
2321
|
+
fuchsia: 16711935,
|
|
2322
|
+
gainsboro: 14474460,
|
|
2323
|
+
ghostwhite: 16316671,
|
|
2324
|
+
gold: 16766720,
|
|
2325
|
+
goldenrod: 14329120,
|
|
2326
|
+
gray: 8421504,
|
|
2327
|
+
green: 32768,
|
|
2328
|
+
greenyellow: 11403055,
|
|
2329
|
+
grey: 8421504,
|
|
2330
|
+
honeydew: 15794160,
|
|
2331
|
+
hotpink: 16738740,
|
|
2332
|
+
indianred: 13458524,
|
|
2333
|
+
indigo: 4915330,
|
|
2334
|
+
ivory: 16777200,
|
|
2335
|
+
khaki: 15787660,
|
|
2336
|
+
lavender: 15132410,
|
|
2337
|
+
lavenderblush: 16773365,
|
|
2338
|
+
lawngreen: 8190976,
|
|
2339
|
+
lemonchiffon: 16775885,
|
|
2340
|
+
lightblue: 11393254,
|
|
2341
|
+
lightcoral: 15761536,
|
|
2342
|
+
lightcyan: 14745599,
|
|
2343
|
+
lightgoldenrodyellow: 16448210,
|
|
2344
|
+
lightgray: 13882323,
|
|
2345
|
+
lightgreen: 9498256,
|
|
2346
|
+
lightgrey: 13882323,
|
|
2347
|
+
lightpink: 16758465,
|
|
2348
|
+
lightsalmon: 16752762,
|
|
2349
|
+
lightseagreen: 2142890,
|
|
2350
|
+
lightskyblue: 8900346,
|
|
2351
|
+
lightslategray: 7833753,
|
|
2352
|
+
lightslategrey: 7833753,
|
|
2353
|
+
lightsteelblue: 11584734,
|
|
2354
|
+
lightyellow: 16777184,
|
|
2355
|
+
lime: 65280,
|
|
2356
|
+
limegreen: 3329330,
|
|
2357
|
+
linen: 16445670,
|
|
2358
|
+
magenta: 16711935,
|
|
2359
|
+
maroon: 8388608,
|
|
2360
|
+
mediumaquamarine: 6737322,
|
|
2361
|
+
mediumblue: 205,
|
|
2362
|
+
mediumorchid: 12211667,
|
|
2363
|
+
mediumpurple: 9662683,
|
|
2364
|
+
mediumseagreen: 3978097,
|
|
2365
|
+
mediumslateblue: 8087790,
|
|
2366
|
+
mediumspringgreen: 64154,
|
|
2367
|
+
mediumturquoise: 4772300,
|
|
2368
|
+
mediumvioletred: 13047173,
|
|
2369
|
+
midnightblue: 1644912,
|
|
2370
|
+
mintcream: 16121850,
|
|
2371
|
+
mistyrose: 16770273,
|
|
2372
|
+
moccasin: 16770229,
|
|
2373
|
+
navajowhite: 16768685,
|
|
2374
|
+
navy: 128,
|
|
2375
|
+
oldlace: 16643558,
|
|
2376
|
+
olive: 8421376,
|
|
2377
|
+
olivedrab: 7048739,
|
|
2378
|
+
orange: 16753920,
|
|
2379
|
+
orangered: 16729344,
|
|
2380
|
+
orchid: 14315734,
|
|
2381
|
+
palegoldenrod: 15657130,
|
|
2382
|
+
palegreen: 10025880,
|
|
2383
|
+
paleturquoise: 11529966,
|
|
2384
|
+
palevioletred: 14381203,
|
|
2385
|
+
papayawhip: 16773077,
|
|
2386
|
+
peachpuff: 16767673,
|
|
2387
|
+
peru: 13468991,
|
|
2388
|
+
pink: 16761035,
|
|
2389
|
+
plum: 14524637,
|
|
2390
|
+
powderblue: 11591910,
|
|
2391
|
+
purple: 8388736,
|
|
2392
|
+
rebeccapurple: 6697881,
|
|
2393
|
+
red: 16711680,
|
|
2394
|
+
rosybrown: 12357519,
|
|
2395
|
+
royalblue: 4286945,
|
|
2396
|
+
saddlebrown: 9127187,
|
|
2397
|
+
salmon: 16416882,
|
|
2398
|
+
sandybrown: 16032864,
|
|
2399
|
+
seagreen: 3050327,
|
|
2400
|
+
seashell: 16774638,
|
|
2401
|
+
sienna: 10506797,
|
|
2402
|
+
silver: 12632256,
|
|
2403
|
+
skyblue: 8900331,
|
|
2404
|
+
slateblue: 6970061,
|
|
2405
|
+
slategray: 7372944,
|
|
2406
|
+
slategrey: 7372944,
|
|
2407
|
+
snow: 16775930,
|
|
2408
|
+
springgreen: 65407,
|
|
2409
|
+
steelblue: 4620980,
|
|
2410
|
+
tan: 13808780,
|
|
2411
|
+
teal: 32896,
|
|
2412
|
+
thistle: 14204888,
|
|
2413
|
+
tomato: 16737095,
|
|
2414
|
+
turquoise: 4251856,
|
|
2415
|
+
violet: 15631086,
|
|
2416
|
+
wheat: 16113331,
|
|
2417
|
+
white: 16777215,
|
|
2418
|
+
whitesmoke: 16119285,
|
|
2419
|
+
yellow: 16776960,
|
|
2420
|
+
yellowgreen: 10145074
|
|
2421
|
+
};
|
|
2422
|
+
Zi(K, pa, {
|
|
2423
|
+
copy(e) {
|
|
2424
|
+
return Object.assign(new this.constructor(), this, e);
|
|
2425
|
+
},
|
|
2426
|
+
displayable() {
|
|
2427
|
+
return this.rgb().displayable();
|
|
2428
|
+
},
|
|
2429
|
+
hex: la,
|
|
2430
|
+
formatHex: la,
|
|
2431
|
+
formatHex8: ua,
|
|
2432
|
+
formatHsl: da,
|
|
2433
|
+
formatRgb: fa,
|
|
2434
|
+
toString: fa
|
|
2435
|
+
});
|
|
2436
|
+
function la() {
|
|
2437
|
+
return this.rgb().formatHex();
|
|
2438
|
+
}
|
|
2439
|
+
function ua() {
|
|
2440
|
+
return this.rgb().formatHex8();
|
|
2441
|
+
}
|
|
2442
|
+
function da() {
|
|
2443
|
+
return Ca(this).formatHsl();
|
|
2444
|
+
}
|
|
2445
|
+
function fa() {
|
|
2446
|
+
return this.rgb().formatRgb();
|
|
2447
|
+
}
|
|
2448
|
+
function pa(e) {
|
|
2449
|
+
var t, n;
|
|
2450
|
+
return e = (e + "").trim().toLowerCase(), (t = ta.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? ma(t) : n === 3 ? new X(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? ha(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? ha(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = na.exec(e)) ? new X(t[1], t[2], t[3], 1) : (t = ra.exec(e)) ? new X(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = ia.exec(e)) ? ha(t[1], t[2], t[3], t[4]) : (t = aa.exec(e)) ? ha(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = oa.exec(e)) ? Sa(t[1], t[2] / 100, t[3] / 100, 1) : (t = sa.exec(e)) ? Sa(t[1], t[2] / 100, t[3] / 100, t[4]) : ca.hasOwnProperty(e) ? ma(ca[e]) : e === "transparent" ? new X(NaN, NaN, NaN, 0) : null;
|
|
2451
|
+
}
|
|
2452
|
+
function ma(e) {
|
|
2453
|
+
return new X(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
2454
|
+
}
|
|
2455
|
+
function ha(e, t, n, r) {
|
|
2456
|
+
return r <= 0 && (e = t = n = NaN), new X(e, t, n, r);
|
|
2457
|
+
}
|
|
2458
|
+
function ga(e) {
|
|
2459
|
+
return e instanceof K || (e = pa(e)), e ? (e = e.rgb(), new X(e.r, e.g, e.b, e.opacity)) : new X();
|
|
2460
|
+
}
|
|
2461
|
+
function _a(e, t, n, r) {
|
|
2462
|
+
return arguments.length === 1 ? ga(e) : new X(e, t, n, r ?? 1);
|
|
2463
|
+
}
|
|
2464
|
+
function X(e, t, n, r) {
|
|
2465
|
+
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
2466
|
+
}
|
|
2467
|
+
Zi(X, _a, Qi(K, {
|
|
2468
|
+
brighter(e) {
|
|
2469
|
+
return e = e == null ? $i : $i ** +e, new X(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
2470
|
+
},
|
|
2471
|
+
darker(e) {
|
|
2472
|
+
return e = e == null ? q : q ** +e, new X(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
2473
|
+
},
|
|
2474
|
+
rgb() {
|
|
2475
|
+
return this;
|
|
2476
|
+
},
|
|
2477
|
+
clamp() {
|
|
2478
|
+
return new X(Z(this.r), Z(this.g), Z(this.b), xa(this.opacity));
|
|
2479
|
+
},
|
|
2480
|
+
displayable() {
|
|
2481
|
+
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
2482
|
+
},
|
|
2483
|
+
hex: va,
|
|
2484
|
+
formatHex: va,
|
|
2485
|
+
formatHex8: ya,
|
|
2486
|
+
formatRgb: ba,
|
|
2487
|
+
toString: ba
|
|
2488
|
+
}));
|
|
2489
|
+
function va() {
|
|
2490
|
+
return `#${Q(this.r)}${Q(this.g)}${Q(this.b)}`;
|
|
2491
|
+
}
|
|
2492
|
+
function ya() {
|
|
2493
|
+
return `#${Q(this.r)}${Q(this.g)}${Q(this.b)}${Q((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
2494
|
+
}
|
|
2495
|
+
function ba() {
|
|
2496
|
+
let e = xa(this.opacity);
|
|
2497
|
+
return `${e === 1 ? "rgb(" : "rgba("}${Z(this.r)}, ${Z(this.g)}, ${Z(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
2498
|
+
}
|
|
2499
|
+
function xa(e) {
|
|
2500
|
+
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
2501
|
+
}
|
|
2502
|
+
function Z(e) {
|
|
2503
|
+
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
2504
|
+
}
|
|
2505
|
+
function Q(e) {
|
|
2506
|
+
return e = Z(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
2507
|
+
}
|
|
2508
|
+
function Sa(e, t, n, r) {
|
|
2509
|
+
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new $(e, t, n, r);
|
|
2510
|
+
}
|
|
2511
|
+
function Ca(e) {
|
|
2512
|
+
if (e instanceof $) return new $(e.h, e.s, e.l, e.opacity);
|
|
2513
|
+
if (e instanceof K || (e = pa(e)), !e) return new $();
|
|
2514
|
+
if (e instanceof $) return e;
|
|
2515
|
+
e = e.rgb();
|
|
2516
|
+
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
|
|
2517
|
+
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new $(o, s, c, e.opacity);
|
|
2518
|
+
}
|
|
2519
|
+
function wa(e, t, n, r) {
|
|
2520
|
+
return arguments.length === 1 ? Ca(e) : new $(e, t, n, r ?? 1);
|
|
2521
|
+
}
|
|
2522
|
+
function $(e, t, n, r) {
|
|
2523
|
+
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
2524
|
+
}
|
|
2525
|
+
Zi($, wa, Qi(K, {
|
|
2526
|
+
brighter(e) {
|
|
2527
|
+
return e = e == null ? $i : $i ** +e, new $(this.h, this.s, this.l * e, this.opacity);
|
|
2528
|
+
},
|
|
2529
|
+
darker(e) {
|
|
2530
|
+
return e = e == null ? q : q ** +e, new $(this.h, this.s, this.l * e, this.opacity);
|
|
2531
|
+
},
|
|
2532
|
+
rgb() {
|
|
2533
|
+
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
|
|
2534
|
+
return new X(Da(e >= 240 ? e - 240 : e + 120, i, r), Da(e, i, r), Da(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
|
|
2535
|
+
},
|
|
2536
|
+
clamp() {
|
|
2537
|
+
return new $(Ta(this.h), Ea(this.s), Ea(this.l), xa(this.opacity));
|
|
2538
|
+
},
|
|
2539
|
+
displayable() {
|
|
2540
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
2541
|
+
},
|
|
2542
|
+
formatHsl() {
|
|
2543
|
+
let e = xa(this.opacity);
|
|
2544
|
+
return `${e === 1 ? "hsl(" : "hsla("}${Ta(this.h)}, ${Ea(this.s) * 100}%, ${Ea(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
2545
|
+
}
|
|
2546
|
+
}));
|
|
2547
|
+
function Ta(e) {
|
|
2548
|
+
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
2549
|
+
}
|
|
2550
|
+
function Ea(e) {
|
|
2551
|
+
return Math.max(0, Math.min(1, e || 0));
|
|
2552
|
+
}
|
|
2553
|
+
function Da(e, t, n) {
|
|
2554
|
+
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
2555
|
+
}
|
|
2556
|
+
//#endregion
|
|
2557
|
+
//#region ../core/src/view/renderingContext/clipOptions.js
|
|
2558
|
+
function Oa(e) {
|
|
2559
|
+
if (e.clip) return e.clip;
|
|
2560
|
+
if (e.clipRect) return {
|
|
2561
|
+
rect: e.clipRect,
|
|
2562
|
+
clipX: !0,
|
|
2563
|
+
clipY: !0
|
|
2564
|
+
};
|
|
2565
|
+
}
|
|
2566
|
+
function ka(e, t) {
|
|
2567
|
+
return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
|
|
2568
|
+
}
|
|
2569
|
+
function Aa(e, t, n) {
|
|
2570
|
+
return t || n ? {
|
|
2571
|
+
rect: e,
|
|
2572
|
+
clipX: t,
|
|
2573
|
+
clipY: n
|
|
2574
|
+
} : void 0;
|
|
2575
|
+
}
|
|
2576
|
+
function ja(e, t) {
|
|
2577
|
+
return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
|
|
2578
|
+
}
|
|
2579
|
+
function Ma(e, t) {
|
|
2580
|
+
if (!e) return t;
|
|
2581
|
+
if (!t) return e;
|
|
2582
|
+
let n = e.clipX || t.clipX, r = e.clipY || t.clipY, i = e.clipX && t.clipX ? e.rect.intersectX(t.rect) : t.clipX ? t.rect : e.rect, a = e.clipY && t.clipY ? e.rect.intersectY(t.rect) : t.clipY ? t.rect : e.rect;
|
|
2583
|
+
return Aa(e.rect.modify({
|
|
2584
|
+
x: () => i.x,
|
|
2585
|
+
y: () => a.y,
|
|
2586
|
+
width: () => i.width,
|
|
2587
|
+
height: () => a.height
|
|
2588
|
+
}), n, r);
|
|
2589
|
+
}
|
|
2590
|
+
function Na(e, t) {
|
|
2591
|
+
if (e === !0) return Aa(t, !0, !0);
|
|
2592
|
+
if (e === "x") return Aa(t, !0, !1);
|
|
2593
|
+
if (e === "y") return Aa(t, !1, !0);
|
|
2594
|
+
}
|
|
2595
|
+
function Pa(e) {
|
|
2596
|
+
let t = e.mark;
|
|
2597
|
+
if (t) {
|
|
2598
|
+
let e = t.properties.clip;
|
|
2599
|
+
return {
|
|
2600
|
+
clipX: e === !0 || e === "x",
|
|
2601
|
+
clipY: e === !0 || e === "y"
|
|
2602
|
+
};
|
|
2603
|
+
}
|
|
2604
|
+
let n = !1, r = !0, i = !0;
|
|
2605
|
+
return e.visit((e) => {
|
|
2606
|
+
let t = e.mark;
|
|
2607
|
+
if (t) {
|
|
2608
|
+
n = !0;
|
|
2609
|
+
let e = t.properties.clip;
|
|
2610
|
+
r &&= e === !0 || e === "x", i &&= e === !0 || e === "y";
|
|
2611
|
+
}
|
|
2612
|
+
}), {
|
|
2613
|
+
clipX: n && r,
|
|
2614
|
+
clipY: n && i
|
|
2615
|
+
};
|
|
2616
|
+
}
|
|
2617
|
+
function Fa(e, t, n) {
|
|
2618
|
+
if (t !== "never") return Ma(e, Na(t, n));
|
|
2619
|
+
}
|
|
2620
|
+
//#endregion
|
|
2621
|
+
export { Bt as $, Ue as $t, Ai as A, ut as At, Mi as B, nt as Bt, Ui as C, xt as Ct, Hi as D, vt as Dt, Ki as E, yt as Et, Ni as F, xe as Ft, wi as G, at as Gt, Bi as H, rt as Ht, Ri as I, Je as It, bi as J, Ve as Jt, Ti as K, ze as Kt, Fi as L, Ze as Lt, Ei as M, mt as Mt, Oi as N, pt as Nt, Vi as O, T as Ot, zi as P, st as Pt, jt as Q, ct as Qt, Li as R, Ee as Rt, Wi as S, i as Sn, tn as St, Yi as T, St as Tt, ji as U, Ae as Ut, ki as V, Ye as Vt, Ci as W, w as Wt, si as X, ot as Xt, ci as Y, je as Yt, oi as Z, De as Zt, Qi as _, d as _n, Qt as _t, Pa as a, ye as an, sn as at, G as b, s as bn, Lt as bt, K as c, he as cn, un as ct, pa as d, _ as dn, Rt as dt, We as en, Ht as et, q as f, g as fn, ln as ft, Zi as g, f as gn, $t as gt, ga as h, p as hn, Vt as ht, Aa as i, be as in, en as it, Di as j, ft as jt, Ii as k, ht as kt, X as l, y as ln, Ut as lt, _a as m, m as mn, E as mt, ka as n, Ke as nn, Nt as nt, Oa as o, _e as on, on as ot, wa as p, h as pn, Wt as pt, fi as q, Be as qt, Ma as r, ve as rn, Pt as rt, Fa as s, me as sn, zt as st, ja as t, Ge as tn, fn as tt, $i as u, te as un, cn as ut, Ji as v, u as vn, Zt as vt, Xi as w, Et as wt, Gi as x, o as xn, qt as xt, qi as y, l as yn, an as yt, Pi as z, C as zt };
|