@genspectrum/dashboard-components 1.18.0 → 1.18.1

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.
@@ -254,7 +254,7 @@ const gd = (n) => {
254
254
  message: a
255
255
  };
256
256
  }, RM = [];
257
- function ce(n, e) {
257
+ function ue(n, e) {
258
258
  const t = pd(), i = gd({
259
259
  issueData: e,
260
260
  data: n.data,
@@ -613,7 +613,7 @@ class Hi extends Ze {
613
613
  _parse(e) {
614
614
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== ge.string) {
615
615
  const o = this._getOrReturnCtx(e);
616
- return ce(o, {
616
+ return ue(o, {
617
617
  code: X.invalid_type,
618
618
  expected: ge.string,
619
619
  received: o.parsedType
@@ -623,7 +623,7 @@ class Hi extends Ze {
623
623
  let r;
624
624
  for (const o of this._def.checks)
625
625
  if (o.kind === "min")
626
- e.data.length < o.value && (r = this._getOrReturnCtx(e, r), ce(r, {
626
+ e.data.length < o.value && (r = this._getOrReturnCtx(e, r), ue(r, {
627
627
  code: X.too_small,
628
628
  minimum: o.value,
629
629
  type: "string",
@@ -632,7 +632,7 @@ class Hi extends Ze {
632
632
  message: o.message
633
633
  }), i.dirty());
634
634
  else if (o.kind === "max")
635
- e.data.length > o.value && (r = this._getOrReturnCtx(e, r), ce(r, {
635
+ e.data.length > o.value && (r = this._getOrReturnCtx(e, r), ue(r, {
636
636
  code: X.too_big,
637
637
  maximum: o.value,
638
638
  type: "string",
@@ -642,14 +642,14 @@ class Hi extends Ze {
642
642
  }), i.dirty());
643
643
  else if (o.kind === "length") {
644
644
  const s = e.data.length > o.value, a = e.data.length < o.value;
645
- (s || a) && (r = this._getOrReturnCtx(e, r), s ? ce(r, {
645
+ (s || a) && (r = this._getOrReturnCtx(e, r), s ? ue(r, {
646
646
  code: X.too_big,
647
647
  maximum: o.value,
648
648
  type: "string",
649
649
  inclusive: !0,
650
650
  exact: !0,
651
651
  message: o.message
652
- }) : a && ce(r, {
652
+ }) : a && ue(r, {
653
653
  code: X.too_small,
654
654
  minimum: o.value,
655
655
  type: "string",
@@ -658,43 +658,43 @@ class Hi extends Ze {
658
658
  message: o.message
659
659
  }), i.dirty());
660
660
  } else if (o.kind === "email")
661
- VM.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
661
+ VM.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
662
662
  validation: "email",
663
663
  code: X.invalid_string,
664
664
  message: o.message
665
665
  }), i.dirty());
666
666
  else if (o.kind === "emoji")
667
- vf || (vf = new RegExp(WM, "u")), vf.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
667
+ vf || (vf = new RegExp(WM, "u")), vf.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
668
668
  validation: "emoji",
669
669
  code: X.invalid_string,
670
670
  message: o.message
671
671
  }), i.dirty());
672
672
  else if (o.kind === "uuid")
673
- $M.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
673
+ $M.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
674
674
  validation: "uuid",
675
675
  code: X.invalid_string,
676
676
  message: o.message
677
677
  }), i.dirty());
678
678
  else if (o.kind === "nanoid")
679
- jM.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
679
+ jM.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
680
680
  validation: "nanoid",
681
681
  code: X.invalid_string,
682
682
  message: o.message
683
683
  }), i.dirty());
684
684
  else if (o.kind === "cuid")
685
- NM.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
685
+ NM.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
686
686
  validation: "cuid",
687
687
  code: X.invalid_string,
688
688
  message: o.message
689
689
  }), i.dirty());
690
690
  else if (o.kind === "cuid2")
691
- zM.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
691
+ zM.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
692
692
  validation: "cuid2",
693
693
  code: X.invalid_string,
694
694
  message: o.message
695
695
  }), i.dirty());
696
696
  else if (o.kind === "ulid")
697
- FM.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
697
+ FM.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
698
698
  validation: "ulid",
699
699
  code: X.invalid_string,
700
700
  message: o.message
@@ -703,61 +703,61 @@ class Hi extends Ze {
703
703
  try {
704
704
  new URL(e.data);
705
705
  } catch {
706
- r = this._getOrReturnCtx(e, r), ce(r, {
706
+ r = this._getOrReturnCtx(e, r), ue(r, {
707
707
  validation: "url",
708
708
  code: X.invalid_string,
709
709
  message: o.message
710
710
  }), i.dirty();
711
711
  }
712
- else o.kind === "regex" ? (o.regex.lastIndex = 0, o.regex.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
712
+ else o.kind === "regex" ? (o.regex.lastIndex = 0, o.regex.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
713
713
  validation: "regex",
714
714
  code: X.invalid_string,
715
715
  message: o.message
716
- }), i.dirty())) : o.kind === "trim" ? e.data = e.data.trim() : o.kind === "includes" ? e.data.includes(o.value, o.position) || (r = this._getOrReturnCtx(e, r), ce(r, {
716
+ }), i.dirty())) : o.kind === "trim" ? e.data = e.data.trim() : o.kind === "includes" ? e.data.includes(o.value, o.position) || (r = this._getOrReturnCtx(e, r), ue(r, {
717
717
  code: X.invalid_string,
718
718
  validation: { includes: o.value, position: o.position },
719
719
  message: o.message
720
- }), i.dirty()) : o.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : o.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : o.kind === "startsWith" ? e.data.startsWith(o.value) || (r = this._getOrReturnCtx(e, r), ce(r, {
720
+ }), i.dirty()) : o.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : o.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : o.kind === "startsWith" ? e.data.startsWith(o.value) || (r = this._getOrReturnCtx(e, r), ue(r, {
721
721
  code: X.invalid_string,
722
722
  validation: { startsWith: o.value },
723
723
  message: o.message
724
- }), i.dirty()) : o.kind === "endsWith" ? e.data.endsWith(o.value) || (r = this._getOrReturnCtx(e, r), ce(r, {
724
+ }), i.dirty()) : o.kind === "endsWith" ? e.data.endsWith(o.value) || (r = this._getOrReturnCtx(e, r), ue(r, {
725
725
  code: X.invalid_string,
726
726
  validation: { endsWith: o.value },
727
727
  message: o.message
728
- }), i.dirty()) : o.kind === "datetime" ? q0(o).test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
728
+ }), i.dirty()) : o.kind === "datetime" ? q0(o).test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
729
729
  code: X.invalid_string,
730
730
  validation: "datetime",
731
731
  message: o.message
732
- }), i.dirty()) : o.kind === "date" ? XM.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
732
+ }), i.dirty()) : o.kind === "date" ? XM.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
733
733
  code: X.invalid_string,
734
734
  validation: "date",
735
735
  message: o.message
736
- }), i.dirty()) : o.kind === "time" ? JM(o).test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
736
+ }), i.dirty()) : o.kind === "time" ? JM(o).test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
737
737
  code: X.invalid_string,
738
738
  validation: "time",
739
739
  message: o.message
740
- }), i.dirty()) : o.kind === "duration" ? HM.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
740
+ }), i.dirty()) : o.kind === "duration" ? HM.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
741
741
  validation: "duration",
742
742
  code: X.invalid_string,
743
743
  message: o.message
744
- }), i.dirty()) : o.kind === "ip" ? QM(e.data, o.version) || (r = this._getOrReturnCtx(e, r), ce(r, {
744
+ }), i.dirty()) : o.kind === "ip" ? QM(e.data, o.version) || (r = this._getOrReturnCtx(e, r), ue(r, {
745
745
  validation: "ip",
746
746
  code: X.invalid_string,
747
747
  message: o.message
748
- }), i.dirty()) : o.kind === "jwt" ? eC(e.data, o.alg) || (r = this._getOrReturnCtx(e, r), ce(r, {
748
+ }), i.dirty()) : o.kind === "jwt" ? eC(e.data, o.alg) || (r = this._getOrReturnCtx(e, r), ue(r, {
749
749
  validation: "jwt",
750
750
  code: X.invalid_string,
751
751
  message: o.message
752
- }), i.dirty()) : o.kind === "cidr" ? tC(e.data, o.version) || (r = this._getOrReturnCtx(e, r), ce(r, {
752
+ }), i.dirty()) : o.kind === "cidr" ? tC(e.data, o.version) || (r = this._getOrReturnCtx(e, r), ue(r, {
753
753
  validation: "cidr",
754
754
  code: X.invalid_string,
755
755
  message: o.message
756
- }), i.dirty()) : o.kind === "base64" ? GM.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
756
+ }), i.dirty()) : o.kind === "base64" ? GM.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
757
757
  validation: "base64",
758
758
  code: X.invalid_string,
759
759
  message: o.message
760
- }), i.dirty()) : o.kind === "base64url" ? KM.test(e.data) || (r = this._getOrReturnCtx(e, r), ce(r, {
760
+ }), i.dirty()) : o.kind === "base64url" ? KM.test(e.data) || (r = this._getOrReturnCtx(e, r), ue(r, {
761
761
  validation: "base64url",
762
762
  code: X.invalid_string,
763
763
  message: o.message
@@ -1003,7 +1003,7 @@ class $o extends Ze {
1003
1003
  _parse(e) {
1004
1004
  if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== ge.number) {
1005
1005
  const o = this._getOrReturnCtx(e);
1006
- return ce(o, {
1006
+ return ue(o, {
1007
1007
  code: X.invalid_type,
1008
1008
  expected: ge.number,
1009
1009
  received: o.parsedType
@@ -1012,30 +1012,30 @@ class $o extends Ze {
1012
1012
  let i;
1013
1013
  const r = new wn();
1014
1014
  for (const o of this._def.checks)
1015
- o.kind === "int" ? Qe.isInteger(e.data) || (i = this._getOrReturnCtx(e, i), ce(i, {
1015
+ o.kind === "int" ? Qe.isInteger(e.data) || (i = this._getOrReturnCtx(e, i), ue(i, {
1016
1016
  code: X.invalid_type,
1017
1017
  expected: "integer",
1018
1018
  received: "float",
1019
1019
  message: o.message
1020
- }), r.dirty()) : o.kind === "min" ? (o.inclusive ? e.data < o.value : e.data <= o.value) && (i = this._getOrReturnCtx(e, i), ce(i, {
1020
+ }), r.dirty()) : o.kind === "min" ? (o.inclusive ? e.data < o.value : e.data <= o.value) && (i = this._getOrReturnCtx(e, i), ue(i, {
1021
1021
  code: X.too_small,
1022
1022
  minimum: o.value,
1023
1023
  type: "number",
1024
1024
  inclusive: o.inclusive,
1025
1025
  exact: !1,
1026
1026
  message: o.message
1027
- }), r.dirty()) : o.kind === "max" ? (o.inclusive ? e.data > o.value : e.data >= o.value) && (i = this._getOrReturnCtx(e, i), ce(i, {
1027
+ }), r.dirty()) : o.kind === "max" ? (o.inclusive ? e.data > o.value : e.data >= o.value) && (i = this._getOrReturnCtx(e, i), ue(i, {
1028
1028
  code: X.too_big,
1029
1029
  maximum: o.value,
1030
1030
  type: "number",
1031
1031
  inclusive: o.inclusive,
1032
1032
  exact: !1,
1033
1033
  message: o.message
1034
- }), r.dirty()) : o.kind === "multipleOf" ? nC(e.data, o.value) !== 0 && (i = this._getOrReturnCtx(e, i), ce(i, {
1034
+ }), r.dirty()) : o.kind === "multipleOf" ? nC(e.data, o.value) !== 0 && (i = this._getOrReturnCtx(e, i), ue(i, {
1035
1035
  code: X.not_multiple_of,
1036
1036
  multipleOf: o.value,
1037
1037
  message: o.message
1038
- }), r.dirty()) : o.kind === "finite" ? Number.isFinite(e.data) || (i = this._getOrReturnCtx(e, i), ce(i, {
1038
+ }), r.dirty()) : o.kind === "finite" ? Number.isFinite(e.data) || (i = this._getOrReturnCtx(e, i), ue(i, {
1039
1039
  code: X.not_finite,
1040
1040
  message: o.message
1041
1041
  }), r.dirty()) : Qe.assertNever(o);
@@ -1184,19 +1184,19 @@ class jo extends Ze {
1184
1184
  let i;
1185
1185
  const r = new wn();
1186
1186
  for (const o of this._def.checks)
1187
- o.kind === "min" ? (o.inclusive ? e.data < o.value : e.data <= o.value) && (i = this._getOrReturnCtx(e, i), ce(i, {
1187
+ o.kind === "min" ? (o.inclusive ? e.data < o.value : e.data <= o.value) && (i = this._getOrReturnCtx(e, i), ue(i, {
1188
1188
  code: X.too_small,
1189
1189
  type: "bigint",
1190
1190
  minimum: o.value,
1191
1191
  inclusive: o.inclusive,
1192
1192
  message: o.message
1193
- }), r.dirty()) : o.kind === "max" ? (o.inclusive ? e.data > o.value : e.data >= o.value) && (i = this._getOrReturnCtx(e, i), ce(i, {
1193
+ }), r.dirty()) : o.kind === "max" ? (o.inclusive ? e.data > o.value : e.data >= o.value) && (i = this._getOrReturnCtx(e, i), ue(i, {
1194
1194
  code: X.too_big,
1195
1195
  type: "bigint",
1196
1196
  maximum: o.value,
1197
1197
  inclusive: o.inclusive,
1198
1198
  message: o.message
1199
- }), r.dirty()) : o.kind === "multipleOf" ? e.data % o.value !== BigInt(0) && (i = this._getOrReturnCtx(e, i), ce(i, {
1199
+ }), r.dirty()) : o.kind === "multipleOf" ? e.data % o.value !== BigInt(0) && (i = this._getOrReturnCtx(e, i), ue(i, {
1200
1200
  code: X.not_multiple_of,
1201
1201
  multipleOf: o.value,
1202
1202
  message: o.message
@@ -1205,7 +1205,7 @@ class jo extends Ze {
1205
1205
  }
1206
1206
  _getInvalidInput(e) {
1207
1207
  const t = this._getOrReturnCtx(e);
1208
- return ce(t, {
1208
+ return ue(t, {
1209
1209
  code: X.invalid_type,
1210
1210
  expected: ge.bigint,
1211
1211
  received: t.parsedType
@@ -1305,7 +1305,7 @@ class lc extends Ze {
1305
1305
  _parse(e) {
1306
1306
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== ge.boolean) {
1307
1307
  const i = this._getOrReturnCtx(e);
1308
- return ce(i, {
1308
+ return ue(i, {
1309
1309
  code: X.invalid_type,
1310
1310
  expected: ge.boolean,
1311
1311
  received: i.parsedType
@@ -1323,7 +1323,7 @@ class Fs extends Ze {
1323
1323
  _parse(e) {
1324
1324
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== ge.date) {
1325
1325
  const o = this._getOrReturnCtx(e);
1326
- return ce(o, {
1326
+ return ue(o, {
1327
1327
  code: X.invalid_type,
1328
1328
  expected: ge.date,
1329
1329
  received: o.parsedType
@@ -1331,21 +1331,21 @@ class Fs extends Ze {
1331
1331
  }
1332
1332
  if (Number.isNaN(e.data.getTime())) {
1333
1333
  const o = this._getOrReturnCtx(e);
1334
- return ce(o, {
1334
+ return ue(o, {
1335
1335
  code: X.invalid_date
1336
1336
  }), Te;
1337
1337
  }
1338
1338
  const i = new wn();
1339
1339
  let r;
1340
1340
  for (const o of this._def.checks)
1341
- o.kind === "min" ? e.data.getTime() < o.value && (r = this._getOrReturnCtx(e, r), ce(r, {
1341
+ o.kind === "min" ? e.data.getTime() < o.value && (r = this._getOrReturnCtx(e, r), ue(r, {
1342
1342
  code: X.too_small,
1343
1343
  message: o.message,
1344
1344
  inclusive: !0,
1345
1345
  exact: !1,
1346
1346
  minimum: o.value,
1347
1347
  type: "date"
1348
- }), i.dirty()) : o.kind === "max" ? e.data.getTime() > o.value && (r = this._getOrReturnCtx(e, r), ce(r, {
1348
+ }), i.dirty()) : o.kind === "max" ? e.data.getTime() > o.value && (r = this._getOrReturnCtx(e, r), ue(r, {
1349
1349
  code: X.too_big,
1350
1350
  message: o.message,
1351
1351
  inclusive: !0,
@@ -1401,7 +1401,7 @@ class md extends Ze {
1401
1401
  _parse(e) {
1402
1402
  if (this._getType(e) !== ge.symbol) {
1403
1403
  const i = this._getOrReturnCtx(e);
1404
- return ce(i, {
1404
+ return ue(i, {
1405
1405
  code: X.invalid_type,
1406
1406
  expected: ge.symbol,
1407
1407
  received: i.parsedType
@@ -1418,7 +1418,7 @@ class cc extends Ze {
1418
1418
  _parse(e) {
1419
1419
  if (this._getType(e) !== ge.undefined) {
1420
1420
  const i = this._getOrReturnCtx(e);
1421
- return ce(i, {
1421
+ return ue(i, {
1422
1422
  code: X.invalid_type,
1423
1423
  expected: ge.undefined,
1424
1424
  received: i.parsedType
@@ -1435,7 +1435,7 @@ class uc extends Ze {
1435
1435
  _parse(e) {
1436
1436
  if (this._getType(e) !== ge.null) {
1437
1437
  const i = this._getOrReturnCtx(e);
1438
- return ce(i, {
1438
+ return ue(i, {
1439
1439
  code: X.invalid_type,
1440
1440
  expected: ge.null,
1441
1441
  received: i.parsedType
@@ -1475,7 +1475,7 @@ Ps.create = (n) => new Ps({
1475
1475
  class oo extends Ze {
1476
1476
  _parse(e) {
1477
1477
  const t = this._getOrReturnCtx(e);
1478
- return ce(t, {
1478
+ return ue(t, {
1479
1479
  code: X.invalid_type,
1480
1480
  expected: ge.never,
1481
1481
  received: t.parsedType
@@ -1490,7 +1490,7 @@ class vd extends Ze {
1490
1490
  _parse(e) {
1491
1491
  if (this._getType(e) !== ge.undefined) {
1492
1492
  const i = this._getOrReturnCtx(e);
1493
- return ce(i, {
1493
+ return ue(i, {
1494
1494
  code: X.invalid_type,
1495
1495
  expected: ge.void,
1496
1496
  received: i.parsedType
@@ -1507,14 +1507,14 @@ class Wi extends Ze {
1507
1507
  _parse(e) {
1508
1508
  const { ctx: t, status: i } = this._processInputParams(e), r = this._def;
1509
1509
  if (t.parsedType !== ge.array)
1510
- return ce(t, {
1510
+ return ue(t, {
1511
1511
  code: X.invalid_type,
1512
1512
  expected: ge.array,
1513
1513
  received: t.parsedType
1514
1514
  }), Te;
1515
1515
  if (r.exactLength !== null) {
1516
1516
  const s = t.data.length > r.exactLength.value, a = t.data.length < r.exactLength.value;
1517
- (s || a) && (ce(t, {
1517
+ (s || a) && (ue(t, {
1518
1518
  code: s ? X.too_big : X.too_small,
1519
1519
  minimum: a ? r.exactLength.value : void 0,
1520
1520
  maximum: s ? r.exactLength.value : void 0,
@@ -1524,14 +1524,14 @@ class Wi extends Ze {
1524
1524
  message: r.exactLength.message
1525
1525
  }), i.dirty());
1526
1526
  }
1527
- if (r.minLength !== null && t.data.length < r.minLength.value && (ce(t, {
1527
+ if (r.minLength !== null && t.data.length < r.minLength.value && (ue(t, {
1528
1528
  code: X.too_small,
1529
1529
  minimum: r.minLength.value,
1530
1530
  type: "array",
1531
1531
  inclusive: !0,
1532
1532
  exact: !1,
1533
1533
  message: r.minLength.message
1534
- }), i.dirty()), r.maxLength !== null && t.data.length > r.maxLength.value && (ce(t, {
1534
+ }), i.dirty()), r.maxLength !== null && t.data.length > r.maxLength.value && (ue(t, {
1535
1535
  code: X.too_big,
1536
1536
  maximum: r.maxLength.value,
1537
1537
  type: "array",
@@ -1605,7 +1605,7 @@ class Tt extends Ze {
1605
1605
  _parse(e) {
1606
1606
  if (this._getType(e) !== ge.object) {
1607
1607
  const u = this._getOrReturnCtx(e);
1608
- return ce(u, {
1608
+ return ue(u, {
1609
1609
  code: X.invalid_type,
1610
1610
  expected: ge.object,
1611
1611
  received: u.parsedType
@@ -1633,7 +1633,7 @@ class Tt extends Ze {
1633
1633
  value: { status: "valid", value: r.data[h] }
1634
1634
  });
1635
1635
  else if (u === "strict")
1636
- a.length > 0 && (ce(r, {
1636
+ a.length > 0 && (ue(r, {
1637
1637
  code: X.unrecognized_keys,
1638
1638
  keys: a
1639
1639
  }), i.dirty());
@@ -1891,7 +1891,7 @@ class dc extends Ze {
1891
1891
  if (a.result.status === "dirty")
1892
1892
  return t.common.issues.push(...a.ctx.common.issues), a.result;
1893
1893
  const s = o.map((a) => new di(a.ctx.common.issues));
1894
- return ce(t, {
1894
+ return ue(t, {
1895
1895
  code: X.invalid_union,
1896
1896
  unionErrors: s
1897
1897
  }), Te;
@@ -1938,7 +1938,7 @@ class dc extends Ze {
1938
1938
  if (o)
1939
1939
  return t.common.issues.push(...o.ctx.common.issues), o.result;
1940
1940
  const a = s.map((c) => new di(c));
1941
- return ce(t, {
1941
+ return ue(t, {
1942
1942
  code: X.invalid_union,
1943
1943
  unionErrors: a
1944
1944
  }), Te;
@@ -1958,7 +1958,7 @@ class Xd extends Ze {
1958
1958
  _parse(e) {
1959
1959
  const { ctx: t } = this._processInputParams(e);
1960
1960
  if (t.parsedType !== ge.object)
1961
- return ce(t, {
1961
+ return ue(t, {
1962
1962
  code: X.invalid_type,
1963
1963
  expected: ge.object,
1964
1964
  received: t.parsedType
@@ -1972,7 +1972,7 @@ class Xd extends Ze {
1972
1972
  data: t.data,
1973
1973
  path: t.path,
1974
1974
  parent: t
1975
- }) : (ce(t, {
1975
+ }) : (ue(t, {
1976
1976
  code: X.invalid_union_discriminator,
1977
1977
  options: Array.from(this.optionsMap.keys()),
1978
1978
  path: [i]
@@ -2048,7 +2048,7 @@ class hc extends Ze {
2048
2048
  if (yp(o) || yp(s))
2049
2049
  return Te;
2050
2050
  const a = bp(o.value, s.value);
2051
- return a.valid ? ((_p(o) || _p(s)) && t.dirty(), { status: t.value, value: a.data }) : (ce(i, {
2051
+ return a.valid ? ((_p(o) || _p(s)) && t.dirty(), { status: t.value, value: a.data }) : (ue(i, {
2052
2052
  code: X.invalid_intersection_types
2053
2053
  }), Te);
2054
2054
  };
@@ -2084,20 +2084,20 @@ class vr extends Ze {
2084
2084
  _parse(e) {
2085
2085
  const { status: t, ctx: i } = this._processInputParams(e);
2086
2086
  if (i.parsedType !== ge.array)
2087
- return ce(i, {
2087
+ return ue(i, {
2088
2088
  code: X.invalid_type,
2089
2089
  expected: ge.array,
2090
2090
  received: i.parsedType
2091
2091
  }), Te;
2092
2092
  if (i.data.length < this._def.items.length)
2093
- return ce(i, {
2093
+ return ue(i, {
2094
2094
  code: X.too_small,
2095
2095
  minimum: this._def.items.length,
2096
2096
  inclusive: !0,
2097
2097
  exact: !1,
2098
2098
  type: "array"
2099
2099
  }), Te;
2100
- !this._def.rest && i.data.length > this._def.items.length && (ce(i, {
2100
+ !this._def.rest && i.data.length > this._def.items.length && (ue(i, {
2101
2101
  code: X.too_big,
2102
2102
  maximum: this._def.items.length,
2103
2103
  inclusive: !0,
@@ -2140,7 +2140,7 @@ class fc extends Ze {
2140
2140
  _parse(e) {
2141
2141
  const { status: t, ctx: i } = this._processInputParams(e);
2142
2142
  if (i.parsedType !== ge.object)
2143
- return ce(i, {
2143
+ return ue(i, {
2144
2144
  code: X.invalid_type,
2145
2145
  expected: ge.object,
2146
2146
  received: i.parsedType
@@ -2181,7 +2181,7 @@ class yd extends Ze {
2181
2181
  _parse(e) {
2182
2182
  const { status: t, ctx: i } = this._processInputParams(e);
2183
2183
  if (i.parsedType !== ge.map)
2184
- return ce(i, {
2184
+ return ue(i, {
2185
2185
  code: X.invalid_type,
2186
2186
  expected: ge.map,
2187
2187
  received: i.parsedType
@@ -2223,20 +2223,20 @@ class $s extends Ze {
2223
2223
  _parse(e) {
2224
2224
  const { status: t, ctx: i } = this._processInputParams(e);
2225
2225
  if (i.parsedType !== ge.set)
2226
- return ce(i, {
2226
+ return ue(i, {
2227
2227
  code: X.invalid_type,
2228
2228
  expected: ge.set,
2229
2229
  received: i.parsedType
2230
2230
  }), Te;
2231
2231
  const r = this._def;
2232
- r.minSize !== null && i.data.size < r.minSize.value && (ce(i, {
2232
+ r.minSize !== null && i.data.size < r.minSize.value && (ue(i, {
2233
2233
  code: X.too_small,
2234
2234
  minimum: r.minSize.value,
2235
2235
  type: "set",
2236
2236
  inclusive: !0,
2237
2237
  exact: !1,
2238
2238
  message: r.minSize.message
2239
- }), t.dirty()), r.maxSize !== null && i.data.size > r.maxSize.value && (ce(i, {
2239
+ }), t.dirty()), r.maxSize !== null && i.data.size > r.maxSize.value && (ue(i, {
2240
2240
  code: X.too_big,
2241
2241
  maximum: r.maxSize.value,
2242
2242
  type: "set",
@@ -2290,7 +2290,7 @@ class Sa extends Ze {
2290
2290
  _parse(e) {
2291
2291
  const { ctx: t } = this._processInputParams(e);
2292
2292
  if (t.parsedType !== ge.function)
2293
- return ce(t, {
2293
+ return ue(t, {
2294
2294
  code: X.invalid_type,
2295
2295
  expected: ge.function,
2296
2296
  received: t.parsedType
@@ -2392,7 +2392,7 @@ class gc extends Ze {
2392
2392
  _parse(e) {
2393
2393
  if (e.data !== this._def.value) {
2394
2394
  const t = this._getOrReturnCtx(e);
2395
- return ce(t, {
2395
+ return ue(t, {
2396
2396
  received: t.data,
2397
2397
  code: X.invalid_literal,
2398
2398
  expected: this._def.value
@@ -2420,7 +2420,7 @@ class Bo extends Ze {
2420
2420
  _parse(e) {
2421
2421
  if (typeof e.data != "string") {
2422
2422
  const t = this._getOrReturnCtx(e), i = this._def.values;
2423
- return ce(t, {
2423
+ return ue(t, {
2424
2424
  expected: Qe.joinValues(i),
2425
2425
  received: t.parsedType,
2426
2426
  code: X.invalid_type
@@ -2428,7 +2428,7 @@ class Bo extends Ze {
2428
2428
  }
2429
2429
  if (this._cache || (this._cache = new Set(this._def.values)), !this._cache.has(e.data)) {
2430
2430
  const t = this._getOrReturnCtx(e), i = this._def.values;
2431
- return ce(t, {
2431
+ return ue(t, {
2432
2432
  received: t.data,
2433
2433
  code: X.invalid_enum_value,
2434
2434
  options: i
@@ -2476,7 +2476,7 @@ class mc extends Ze {
2476
2476
  const t = Qe.getValidEnumValues(this._def.values), i = this._getOrReturnCtx(e);
2477
2477
  if (i.parsedType !== ge.string && i.parsedType !== ge.number) {
2478
2478
  const r = Qe.objectValues(t);
2479
- return ce(i, {
2479
+ return ue(i, {
2480
2480
  expected: Qe.joinValues(r),
2481
2481
  received: i.parsedType,
2482
2482
  code: X.invalid_type
@@ -2484,7 +2484,7 @@ class mc extends Ze {
2484
2484
  }
2485
2485
  if (this._cache || (this._cache = new Set(Qe.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
2486
2486
  const r = Qe.objectValues(t);
2487
- return ce(i, {
2487
+ return ue(i, {
2488
2488
  received: i.data,
2489
2489
  code: X.invalid_enum_value,
2490
2490
  options: r
@@ -2508,7 +2508,7 @@ class Oa extends Ze {
2508
2508
  _parse(e) {
2509
2509
  const { ctx: t } = this._processInputParams(e);
2510
2510
  if (t.parsedType !== ge.promise && t.common.async === !1)
2511
- return ce(t, {
2511
+ return ue(t, {
2512
2512
  code: X.invalid_type,
2513
2513
  expected: ge.promise,
2514
2514
  received: t.parsedType
@@ -2535,7 +2535,7 @@ class Ui extends Ze {
2535
2535
  _parse(e) {
2536
2536
  const { status: t, ctx: i } = this._processInputParams(e), r = this._def.effect || null, o = {
2537
2537
  addIssue: (s) => {
2538
- ce(i, s), s.fatal ? t.abort() : t.dirty();
2538
+ ue(i, s), s.fatal ? t.abort() : t.dirty();
2539
2539
  },
2540
2540
  get path() {
2541
2541
  return i.path;
@@ -2710,7 +2710,7 @@ class _d extends Ze {
2710
2710
  _parse(e) {
2711
2711
  if (this._getType(e) !== ge.nan) {
2712
2712
  const i = this._getOrReturnCtx(e);
2713
- return ce(i, {
2713
+ return ue(i, {
2714
2714
  code: X.invalid_type,
2715
2715
  expected: ge.nan,
2716
2716
  received: i.parsedType
@@ -2884,7 +2884,7 @@ const oC = (n, e = {
2884
2884
  ZodUnion: dc,
2885
2885
  ZodUnknown: Ps,
2886
2886
  ZodVoid: vd,
2887
- addIssueToContext: ce,
2887
+ addIssueToContext: ue,
2888
2888
  any: hC,
2889
2889
  array: mC,
2890
2890
  bigint: aC,
@@ -3953,7 +3953,7 @@ const k2 = { attribute: !0, type: String, converter: bd, reflect: !1, hasChanged
3953
3953
  }
3954
3954
  throw Error("Unsupported decorator location: " + i);
3955
3955
  };
3956
- function U(n) {
3956
+ function Z(n) {
3957
3957
  return (e, t) => typeof t == "object" ? S2(n, e, t) : ((i, r, o) => {
3958
3958
  const s = r.hasOwnProperty(o);
3959
3959
  return r.constructor.createProperty(o, i), s ? Object.getOwnPropertyDescriptor(r, o) : void 0;
@@ -4382,15 +4382,15 @@ function _y(n) {
4382
4382
  };
4383
4383
  }
4384
4384
  function Pg(n, e, t, i, r, o, s, a, c, u) {
4385
- var h, f, g, v, _, b, w, k, C, T, P, I, O, F, N, V, q, H = e.type;
4385
+ var h, f, g, v, _, b, w, k, C, T, P, I, O, F, N, V, U, H = e.type;
4386
4386
  if (e.constructor != null) return null;
4387
4387
  128 & t.__u && (c = !!(32 & t.__u), o = [a = e.__e = t.__e]), (h = He.__b) && h(e);
4388
4388
  e: if (typeof H == "function") try {
4389
4389
  if (k = e.props, C = "prototype" in H && H.prototype.render, T = (h = H.contextType) && i[h.__c], P = h ? T ? T.props.value : h.__ : i, t.__c ? w = (f = e.__c = t.__c).__ = f.__E : (C ? e.__c = f = new H(k, P) : (e.__c = f = new dr(k, P), f.constructor = H, f.render = pT), T && T.sub(f), f.props = k, f.state || (f.state = {}), f.context = P, f.__n = i, g = f.__d = !0, f.__h = [], f._sb = []), C && f.__s == null && (f.__s = f.state), C && H.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = lr({}, f.__s)), lr(f.__s, H.getDerivedStateFromProps(k, f.__s))), v = f.props, _ = f.state, f.__v = e, g) C && H.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), C && f.componentDidMount != null && f.__h.push(f.componentDidMount);
4390
4390
  else {
4391
4391
  if (C && H.getDerivedStateFromProps == null && k !== v && f.componentWillReceiveProps != null && f.componentWillReceiveProps(k, P), !f.__e && f.shouldComponentUpdate != null && f.shouldComponentUpdate(k, f.__s, P) === !1 || e.__v == t.__v) {
4392
- for (e.__v != t.__v && (f.props = k, f.state = f.__s, f.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.some(function(B) {
4393
- B && (B.__ = e);
4392
+ for (e.__v != t.__v && (f.props = k, f.state = f.__s, f.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.some(function(Y) {
4393
+ Y && (Y.__ = e);
4394
4394
  }), I = 0; I < f._sb.length; I++) f.__h.push(f._sb[I]);
4395
4395
  f._sb = [], f.__h.length && s.push(f);
4396
4396
  break e;
@@ -4406,13 +4406,13 @@ function Pg(n, e, t, i, r, o, s, a, c, u) {
4406
4406
  f.__d = !1, O && O(e), h = f.render(f.props, f.state, f.context), f.state = f.__s;
4407
4407
  while (f.__d && ++F < 25);
4408
4408
  f.state = f.__s, f.getChildContext != null && (i = lr(lr({}, i), f.getChildContext())), C && !g && f.getSnapshotBeforeUpdate != null && (b = f.getSnapshotBeforeUpdate(v, _)), V = h, h != null && h.type === xe && h.key == null && (V = Mx(h.props.children)), a = wx(n, Zc(V) ? V : [V], e, t, i, r, o, s, a, c, u), f.base = e.__e, e.__u &= -161, f.__h.length && s.push(f), w && (f.__E = f.__ = null);
4409
- } catch (B) {
4410
- if (e.__v = null, c || o != null) if (B.then) {
4409
+ } catch (Y) {
4410
+ if (e.__v = null, c || o != null) if (Y.then) {
4411
4411
  for (e.__u |= c ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
4412
4412
  o[o.indexOf(a)] = null, e.__e = a;
4413
- } else for (q = o.length; q--; ) Dg(o[q]);
4413
+ } else for (U = o.length; U--; ) Dg(o[U]);
4414
4414
  else e.__e = t.__e, e.__k = t.__k;
4415
- He.__e(B, e, t);
4415
+ He.__e(Y, e, t);
4416
4416
  }
4417
4417
  else o == null && e.__v == t.__v ? (e.__k = t.__k, e.__e = t.__e) : a = e.__e = fT(t.__e, e, t, i, r, o, s, c, u);
4418
4418
  return (h = He.diffed) && h(e), 128 & e.__u ? void 0 : a;
@@ -4578,15 +4578,15 @@ let $a = class extends Ul {
4578
4578
  };
4579
4579
  Uc([
4580
4580
  eh({ context: cx }),
4581
- U()
4581
+ Z()
4582
4582
  ], $a.prototype, "lapis", 2);
4583
4583
  Uc([
4584
4584
  eh({ context: Hc }),
4585
- U({ type: Array })
4585
+ Z({ type: Array })
4586
4586
  ], $a.prototype, "mutationAnnotations", 2);
4587
4587
  Uc([
4588
4588
  eh({ context: Vc }),
4589
- U({ type: Object })
4589
+ Z({ type: Object })
4590
4590
  ], $a.prototype, "mutationLinkTemplate", 2);
4591
4591
  Uc([
4592
4592
  eh({ context: ux })
@@ -5742,13 +5742,13 @@ let kc = class extends Fn {
5742
5742
  }
5743
5743
  };
5744
5744
  sh([
5745
- U({ type: String })
5745
+ Z({ type: String })
5746
5746
  ], kc.prototype, "gff3Source", 2);
5747
5747
  sh([
5748
- U({ type: Number })
5748
+ Z({ type: Number })
5749
5749
  ], kc.prototype, "genomeLength", 2);
5750
5750
  sh([
5751
- U({ type: String })
5751
+ Z({ type: String })
5752
5752
  ], kc.prototype, "width", 2);
5753
5753
  kc = sh([
5754
5754
  Xt("gs-genome-data-viewer")
@@ -6060,24 +6060,24 @@ function sw() {
6060
6060
  createDocumentFragment: N,
6061
6061
  getElementsByTagName: V
6062
6062
  } = t, {
6063
- importNode: q
6063
+ importNode: U
6064
6064
  } = i;
6065
6065
  let H = Ky();
6066
6066
  e.isSupported = typeof nw == "function" && typeof T == "function" && O && O.createHTMLDocument !== void 0;
6067
6067
  const {
6068
- MUSTACHE_EXPR: B,
6069
- ERB_EXPR: Y,
6070
- TMPLIT_EXPR: W,
6071
- DATA_ATTR: de,
6072
- ARIA_ATTR: pe,
6068
+ MUSTACHE_EXPR: Y,
6069
+ ERB_EXPR: q,
6070
+ TMPLIT_EXPR: B,
6071
+ DATA_ATTR: ae,
6072
+ ARIA_ATTR: he,
6073
6073
  IS_SCRIPT_OR_DATA: Me,
6074
6074
  ATTR_WHITESPACE: J,
6075
6075
  CUSTOM_ELEMENT: Ne
6076
6076
  } = Gy;
6077
6077
  let {
6078
- IS_ALLOWED_URI: he
6079
- } = Gy, ue = null;
6080
- const ae = Ge({}, [...Zy, ...Tf, ...Df, ...Pf, ...Uy]);
6078
+ IS_ALLOWED_URI: fe
6079
+ } = Gy, de = null;
6080
+ const le = Ge({}, [...Zy, ...Tf, ...Df, ...Pf, ...Uy]);
6081
6081
  let ee = null;
6082
6082
  const ie = Ge({}, [...qy, ...Af, ...Yy, ...Tu]);
6083
6083
  let K = Object.seal(iw(null, {
@@ -6114,13 +6114,13 @@ function sw() {
6114
6114
  let nr = null;
6115
6115
  const ul = ["application/xhtml+xml", "text/html"], D = "text/html";
6116
6116
  let A = null, z = null;
6117
- const Z = t.createElement("form"), te = function(R) {
6117
+ const W = t.createElement("form"), te = function(R) {
6118
6118
  return R instanceof RegExp || R instanceof Function;
6119
6119
  }, se = function() {
6120
6120
  let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6121
6121
  if (!(z && z === R)) {
6122
6122
  if ((!R || typeof R != "object") && (R = {}), R = Wr(R), nr = // eslint-disable-next-line unicorn/prefer-includes
6123
- ul.indexOf(R.PARSER_MEDIA_TYPE) === -1 ? D : R.PARSER_MEDIA_TYPE, A = nr === "application/xhtml+xml" ? Cf : nd, ue = $i(R, "ALLOWED_TAGS") ? Ge({}, R.ALLOWED_TAGS, A) : ae, ee = $i(R, "ALLOWED_ATTR") ? Ge({}, R.ALLOWED_ATTR, A) : ie, oi = $i(R, "ALLOWED_NAMESPACES") ? Ge({}, R.ALLOWED_NAMESPACES, Cf) : cl, bo = $i(R, "ADD_URI_SAFE_ATTR") ? Ge(Wr(ls), R.ADD_URI_SAFE_ATTR, A) : ls, ri = $i(R, "ADD_DATA_URI_TAGS") ? Ge(Wr(Lr), R.ADD_DATA_URI_TAGS, A) : Lr, $t = $i(R, "FORBID_CONTENTS") ? Ge({}, R.FORBID_CONTENTS, A) : tr, oe = $i(R, "FORBID_TAGS") ? Ge({}, R.FORBID_TAGS, A) : Wr({}), Ue = $i(R, "FORBID_ATTR") ? Ge({}, R.FORBID_ATTR, A) : Wr({}), Et = $i(R, "USE_PROFILES") ? R.USE_PROFILES : !1, Ye = R.ALLOW_ARIA_ATTR !== !1, Mt = R.ALLOW_DATA_ATTR !== !1, At = R.ALLOW_UNKNOWN_PROTOCOLS || !1, It = R.ALLOW_SELF_CLOSE_IN_ATTR !== !1, at = R.SAFE_FOR_TEMPLATES || !1, cn = R.SAFE_FOR_XML !== !1, Qt = R.WHOLE_DOCUMENT || !1, tn = R.RETURN_DOM || !1, un = R.RETURN_DOM_FRAGMENT || !1, hn = R.RETURN_TRUSTED_TYPE || !1, en = R.FORCE_BODY || !1, Ii = R.SANITIZE_DOM !== !1, nn = R.SANITIZE_NAMED_PROPS || !1, Yt = R.KEEP_CONTENT !== !1, rn = R.IN_PLACE || !1, he = R.ALLOWED_URI_REGEXP || rw, nt = R.NAMESPACE || Pn, Ei = R.MATHML_TEXT_INTEGRATION_POINTS || Ei, Li = R.HTML_INTEGRATION_POINTS || Li, K = R.CUSTOM_ELEMENT_HANDLING || {}, R.CUSTOM_ELEMENT_HANDLING && te(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (K.tagNameCheck = R.CUSTOM_ELEMENT_HANDLING.tagNameCheck), R.CUSTOM_ELEMENT_HANDLING && te(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (K.attributeNameCheck = R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), R.CUSTOM_ELEMENT_HANDLING && typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (K.allowCustomizedBuiltInElements = R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), at && (Mt = !1), un && (tn = !0), Et && (ue = Ge({}, Uy), ee = [], Et.html === !0 && (Ge(ue, Zy), Ge(ee, qy)), Et.svg === !0 && (Ge(ue, Tf), Ge(ee, Af), Ge(ee, Tu)), Et.svgFilters === !0 && (Ge(ue, Df), Ge(ee, Af), Ge(ee, Tu)), Et.mathMl === !0 && (Ge(ue, Pf), Ge(ee, Yy), Ge(ee, Tu))), R.ADD_TAGS && (ue === ae && (ue = Wr(ue)), Ge(ue, R.ADD_TAGS, A)), R.ADD_ATTR && (ee === ie && (ee = Wr(ee)), Ge(ee, R.ADD_ATTR, A)), R.ADD_URI_SAFE_ATTR && Ge(bo, R.ADD_URI_SAFE_ATTR, A), R.FORBID_CONTENTS && ($t === tr && ($t = Wr($t)), Ge($t, R.FORBID_CONTENTS, A)), Yt && (ue["#text"] = !0), Qt && Ge(ue, ["html", "head", "body"]), ue.table && (Ge(ue, ["tbody"]), delete oe.tbody), R.TRUSTED_TYPES_POLICY) {
6123
+ ul.indexOf(R.PARSER_MEDIA_TYPE) === -1 ? D : R.PARSER_MEDIA_TYPE, A = nr === "application/xhtml+xml" ? Cf : nd, de = $i(R, "ALLOWED_TAGS") ? Ge({}, R.ALLOWED_TAGS, A) : le, ee = $i(R, "ALLOWED_ATTR") ? Ge({}, R.ALLOWED_ATTR, A) : ie, oi = $i(R, "ALLOWED_NAMESPACES") ? Ge({}, R.ALLOWED_NAMESPACES, Cf) : cl, bo = $i(R, "ADD_URI_SAFE_ATTR") ? Ge(Wr(ls), R.ADD_URI_SAFE_ATTR, A) : ls, ri = $i(R, "ADD_DATA_URI_TAGS") ? Ge(Wr(Lr), R.ADD_DATA_URI_TAGS, A) : Lr, $t = $i(R, "FORBID_CONTENTS") ? Ge({}, R.FORBID_CONTENTS, A) : tr, oe = $i(R, "FORBID_TAGS") ? Ge({}, R.FORBID_TAGS, A) : Wr({}), Ue = $i(R, "FORBID_ATTR") ? Ge({}, R.FORBID_ATTR, A) : Wr({}), Et = $i(R, "USE_PROFILES") ? R.USE_PROFILES : !1, Ye = R.ALLOW_ARIA_ATTR !== !1, Mt = R.ALLOW_DATA_ATTR !== !1, At = R.ALLOW_UNKNOWN_PROTOCOLS || !1, It = R.ALLOW_SELF_CLOSE_IN_ATTR !== !1, at = R.SAFE_FOR_TEMPLATES || !1, cn = R.SAFE_FOR_XML !== !1, Qt = R.WHOLE_DOCUMENT || !1, tn = R.RETURN_DOM || !1, un = R.RETURN_DOM_FRAGMENT || !1, hn = R.RETURN_TRUSTED_TYPE || !1, en = R.FORCE_BODY || !1, Ii = R.SANITIZE_DOM !== !1, nn = R.SANITIZE_NAMED_PROPS || !1, Yt = R.KEEP_CONTENT !== !1, rn = R.IN_PLACE || !1, fe = R.ALLOWED_URI_REGEXP || rw, nt = R.NAMESPACE || Pn, Ei = R.MATHML_TEXT_INTEGRATION_POINTS || Ei, Li = R.HTML_INTEGRATION_POINTS || Li, K = R.CUSTOM_ELEMENT_HANDLING || {}, R.CUSTOM_ELEMENT_HANDLING && te(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (K.tagNameCheck = R.CUSTOM_ELEMENT_HANDLING.tagNameCheck), R.CUSTOM_ELEMENT_HANDLING && te(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (K.attributeNameCheck = R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), R.CUSTOM_ELEMENT_HANDLING && typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (K.allowCustomizedBuiltInElements = R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), at && (Mt = !1), un && (tn = !0), Et && (de = Ge({}, Uy), ee = [], Et.html === !0 && (Ge(de, Zy), Ge(ee, qy)), Et.svg === !0 && (Ge(de, Tf), Ge(ee, Af), Ge(ee, Tu)), Et.svgFilters === !0 && (Ge(de, Df), Ge(ee, Af), Ge(ee, Tu)), Et.mathMl === !0 && (Ge(de, Pf), Ge(ee, Yy), Ge(ee, Tu))), R.ADD_TAGS && (de === le && (de = Wr(de)), Ge(de, R.ADD_TAGS, A)), R.ADD_ATTR && (ee === ie && (ee = Wr(ee)), Ge(ee, R.ADD_ATTR, A)), R.ADD_URI_SAFE_ATTR && Ge(bo, R.ADD_URI_SAFE_ATTR, A), R.FORBID_CONTENTS && ($t === tr && ($t = Wr($t)), Ge($t, R.FORBID_CONTENTS, A)), Yt && (de["#text"] = !0), Qt && Ge(de, ["html", "head", "body"]), de.table && (Ge(de, ["tbody"]), delete oe.tbody), R.TRUSTED_TYPES_POLICY) {
6124
6124
  if (typeof R.TRUSTED_TYPES_POLICY.createHTML != "function")
6125
6125
  throw Dl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
6126
6126
  if (typeof R.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -6138,7 +6138,7 @@ function sw() {
6138
6138
  });
6139
6139
  const ye = nd(R.tagName), ct = nd(Q.tagName);
6140
6140
  return oi[R.namespaceURI] ? R.namespaceURI === Rr ? Q.namespaceURI === Pn ? ye === "svg" : Q.namespaceURI === Or ? ye === "svg" && (ct === "annotation-xml" || Ei[ct]) : !!Le[ye] : R.namespaceURI === Or ? Q.namespaceURI === Pn ? ye === "math" : Q.namespaceURI === Rr ? ye === "math" && Li[ct] : !!me[ye] : R.namespaceURI === Pn ? Q.namespaceURI === Rr && !Li[ct] || Q.namespaceURI === Or && !Ei[ct] ? !1 : !me[ye] && (Zn[ye] || !Le[ye]) : !!(nr === "application/xhtml+xml" && oi[R.namespaceURI]) : !1;
6141
- }, le = function(R) {
6141
+ }, ce = function(R) {
6142
6142
  Cl(e.removed, {
6143
6143
  element: R
6144
6144
  });
@@ -6162,7 +6162,7 @@ function sw() {
6162
6162
  if (Q.removeAttribute(R), R === "is")
6163
6163
  if (tn || un)
6164
6164
  try {
6165
- le(Q);
6165
+ ce(Q);
6166
6166
  } catch {
6167
6167
  }
6168
6168
  else
@@ -6215,14 +6215,14 @@ function sw() {
6215
6215
  const xo = function(R) {
6216
6216
  let Q = null;
6217
6217
  if (Gt(H.beforeSanitizeElements, R, null), jt(R))
6218
- return le(R), !0;
6218
+ return ce(R), !0;
6219
6219
  const ye = A(R.nodeName);
6220
6220
  if (Gt(H.uponSanitizeElement, R, {
6221
6221
  tagName: ye,
6222
- allowedTags: ue
6222
+ allowedTags: de
6223
6223
  }), cn && R.hasChildNodes() && !Oi(R.firstElementChild) && In(/<[/\w!]/g, R.innerHTML) && In(/<[/\w!]/g, R.textContent) || R.nodeType === Al.progressingInstruction || cn && R.nodeType === Al.comment && In(/<[/\w]/g, R.data))
6224
- return le(R), !0;
6225
- if (!ue[ye] || oe[ye]) {
6224
+ return ce(R), !0;
6225
+ if (!de[ye] || oe[ye]) {
6226
6226
  if (!oe[ye] && Ri(ye) && (K.tagNameCheck instanceof RegExp && In(K.tagNameCheck, ye) || K.tagNameCheck instanceof Function && K.tagNameCheck(ye)))
6227
6227
  return !1;
6228
6228
  if (Yt && !$t[ye]) {
@@ -6235,18 +6235,18 @@ function sw() {
6235
6235
  }
6236
6236
  }
6237
6237
  }
6238
- return le(R), !0;
6238
+ return ce(R), !0;
6239
6239
  }
6240
- return R instanceof c && !$e(R) || (ye === "noscript" || ye === "noembed" || ye === "noframes") && In(/<\/no(script|embed|frames)/i, R.innerHTML) ? (le(R), !0) : (at && R.nodeType === Al.text && (Q = R.textContent, Cu([B, Y, W], (ct) => {
6240
+ return R instanceof c && !$e(R) || (ye === "noscript" || ye === "noembed" || ye === "noframes") && In(/<\/no(script|embed|frames)/i, R.innerHTML) ? (ce(R), !0) : (at && R.nodeType === Al.text && (Q = R.textContent, Cu([Y, q, B], (ct) => {
6241
6241
  Q = Tl(Q, ct, " ");
6242
6242
  }), R.textContent !== Q && (Cl(e.removed, {
6243
6243
  element: R.cloneNode()
6244
6244
  }), R.textContent = Q)), Gt(H.afterSanitizeElements, R, null), !1);
6245
6245
  }, zr = function(R, Q, ye) {
6246
- if (Ii && (Q === "id" || Q === "name") && (ye in t || ye in Z))
6246
+ if (Ii && (Q === "id" || Q === "name") && (ye in t || ye in W))
6247
6247
  return !1;
6248
- if (!(Mt && !Ue[Q] && In(de, Q))) {
6249
- if (!(Ye && In(pe, Q))) {
6248
+ if (!(Mt && !Ue[Q] && In(ae, Q))) {
6249
+ if (!(Ye && In(he, Q))) {
6250
6250
  if (!ee[Q] || Ue[Q]) {
6251
6251
  if (
6252
6252
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
@@ -6257,7 +6257,7 @@ function sw() {
6257
6257
  Q === "is" && K.allowCustomizedBuiltInElements && (K.tagNameCheck instanceof RegExp && In(K.tagNameCheck, ye) || K.tagNameCheck instanceof Function && K.tagNameCheck(ye)))
6258
6258
  ) return !1;
6259
6259
  } else if (!bo[Q]) {
6260
- if (!In(he, Tl(ye, J, ""))) {
6260
+ if (!In(fe, Tl(ye, J, ""))) {
6261
6261
  if (!((Q === "src" || Q === "xlink:href" || Q === "href") && R !== "script" && BD(ye, "data:") === 0 && ri[R])) {
6262
6262
  if (!(At && !In(Me, Tl(ye, J, "")))) {
6263
6263
  if (ye)
@@ -6307,7 +6307,7 @@ function sw() {
6307
6307
  ve(Rt, R);
6308
6308
  continue;
6309
6309
  }
6310
- at && Cu([B, Y, W], (fl) => {
6310
+ at && Cu([Y, q, B], (fl) => {
6311
6311
  Bt = Tl(Bt, fl, " ");
6312
6312
  });
6313
6313
  const wo = A(R.nodeName);
@@ -6328,7 +6328,7 @@ function sw() {
6328
6328
  }
6329
6329
  if (Bt !== hl)
6330
6330
  try {
6331
- pn ? R.setAttributeNS(pn, Rt, Bt) : R.setAttribute(Rt, Bt), jt(R) ? le(R) : Vy(e.removed);
6331
+ pn ? R.setAttributeNS(pn, Rt, Bt) : R.setAttribute(Rt, Bt), jt(R) ? ce(R) : Vy(e.removed);
6332
6332
  } catch {
6333
6333
  ve(Rt, R);
6334
6334
  }
@@ -6354,7 +6354,7 @@ function sw() {
6354
6354
  if (ii || se(R), e.removed = [], typeof ke == "string" && (rn = !1), rn) {
6355
6355
  if (ke.nodeName) {
6356
6356
  const Ni = A(ke.nodeName);
6357
- if (!ue[Ni] || oe[Ni])
6357
+ if (!de[Ni] || oe[Ni])
6358
6358
  throw Dl("root node is forbidden and cannot be sanitized in-place");
6359
6359
  }
6360
6360
  } else if (ke instanceof a)
@@ -6366,7 +6366,7 @@ function sw() {
6366
6366
  if (Q = ne(ke), !Q)
6367
6367
  return tn ? null : hn ? I : "";
6368
6368
  }
6369
- Q && en && le(Q.firstChild);
6369
+ Q && en && ce(Q.firstChild);
6370
6370
  const Rt = fn(rn ? ke : Q);
6371
6371
  for (; ct = Rt.nextNode(); )
6372
6372
  xo(ct), cs(ct), ct.content instanceof o && dl(ct.content);
@@ -6378,11 +6378,11 @@ function sw() {
6378
6378
  Ot.appendChild(Q.firstChild);
6379
6379
  else
6380
6380
  Ot = Q;
6381
- return (ee.shadowroot || ee.shadowrootmode) && (Ot = q.call(i, Ot, !0)), Ot;
6381
+ return (ee.shadowroot || ee.shadowrootmode) && (Ot = U.call(i, Ot, !0)), Ot;
6382
6382
  }
6383
6383
  let pn = Qt ? Q.outerHTML : Q.innerHTML;
6384
- return Qt && ue["!doctype"] && Q.ownerDocument && Q.ownerDocument.doctype && Q.ownerDocument.doctype.name && In(ow, Q.ownerDocument.doctype.name) && (pn = "<!DOCTYPE " + Q.ownerDocument.doctype.name + `>
6385
- ` + pn), at && Cu([B, Y, W], (Ni) => {
6384
+ return Qt && de["!doctype"] && Q.ownerDocument && Q.ownerDocument.doctype && Q.ownerDocument.doctype.name && In(ow, Q.ownerDocument.doctype.name) && (pn = "<!DOCTYPE " + Q.ownerDocument.doctype.name + `>
6385
+ ` + pn), at && Cu([Y, q, B], (Ni) => {
6386
6386
  pn = Tl(pn, Ni, " ");
6387
6387
  }), P && hn ? P.createHTML(pn) : pn;
6388
6388
  }, e.setConfig = function() {
@@ -7120,41 +7120,41 @@ var f_ = /* @__PURE__ */ function(n) {
7120
7120
  function gP() {
7121
7121
  var n = Hn(), e = n.pagination, t = e.server, i = e.summary, r = i === void 0 || i, o = e.nextButton, s = o === void 0 || o, a = e.prevButton, c = a === void 0 || a, u = e.buttonsCount, h = u === void 0 ? 3 : u, f = e.limit, g = f === void 0 ? 10 : f, v = e.page, _ = v === void 0 ? 0 : v, b = e.resetPageOnUpdate, w = b === void 0 || b, k = Qa(null), C = Vo(_), T = C[0], P = C[1], I = Vo(0), O = I[0], F = I[1], N = fh();
7122
7122
  Jn(function() {
7123
- return t ? (k.current = new p_({ limit: g, page: T, url: t.url, body: t.body }), n.pipeline.register(k.current)) : (k.current = new f_({ limit: g, page: T }), n.pipeline.register(k.current)), k.current instanceof p_ ? n.pipeline.on("afterProcess", function(B) {
7124
- return F(B.length);
7125
- }) : k.current instanceof f_ && k.current.on("beforeProcess", function(B) {
7126
- return F(B.length);
7123
+ return t ? (k.current = new p_({ limit: g, page: T, url: t.url, body: t.body }), n.pipeline.register(k.current)) : (k.current = new f_({ limit: g, page: T }), n.pipeline.register(k.current)), k.current instanceof p_ ? n.pipeline.on("afterProcess", function(Y) {
7124
+ return F(Y.length);
7125
+ }) : k.current instanceof f_ && k.current.on("beforeProcess", function(Y) {
7126
+ return F(Y.length);
7127
7127
  }), n.pipeline.on("updated", V), n.pipeline.on("error", function() {
7128
7128
  F(0), P(0);
7129
7129
  }), function() {
7130
7130
  n.pipeline.unregister(k.current), n.pipeline.off("updated", V);
7131
7131
  };
7132
7132
  }, []);
7133
- var V = function(B) {
7134
- w && B !== k.current && (P(0), k.current.props.page !== 0 && k.current.setProps({ page: 0 }));
7135
- }, q = function() {
7133
+ var V = function(Y) {
7134
+ w && Y !== k.current && (P(0), k.current.props.page !== 0 && k.current.setProps({ page: 0 }));
7135
+ }, U = function() {
7136
7136
  return Math.ceil(O / g);
7137
- }, H = function(B) {
7138
- if (B >= q() || B < 0 || B === T) return null;
7139
- P(B), k.current.setProps({ page: B });
7137
+ }, H = function(Y) {
7138
+ if (Y >= U() || Y < 0 || Y === T) return null;
7139
+ P(Y), k.current.setProps({ page: Y });
7140
7140
  };
7141
- return _e("div", { className: _t(et("pagination"), n.className.pagination) }, _e(cr, null, r && O > 0 && _e("div", { role: "status", "aria-live": "polite", className: _t(et("summary"), n.className.paginationSummary), title: N("pagination.navigate", T + 1, q()) }, N("pagination.showing"), " ", _e("b", null, N("" + (T * g + 1))), " ", N("pagination.to"), " ", _e("b", null, N("" + Math.min((T + 1) * g, O))), " ", N("pagination.of"), " ", _e("b", null, N("" + O)), " ", N("pagination.results"))), _e("div", { className: et("pages") }, c && _e("button", { tabIndex: 0, role: "button", disabled: T === 0, onClick: function() {
7141
+ return _e("div", { className: _t(et("pagination"), n.className.pagination) }, _e(cr, null, r && O > 0 && _e("div", { role: "status", "aria-live": "polite", className: _t(et("summary"), n.className.paginationSummary), title: N("pagination.navigate", T + 1, U()) }, N("pagination.showing"), " ", _e("b", null, N("" + (T * g + 1))), " ", N("pagination.to"), " ", _e("b", null, N("" + Math.min((T + 1) * g, O))), " ", N("pagination.of"), " ", _e("b", null, N("" + O)), " ", N("pagination.results"))), _e("div", { className: et("pages") }, c && _e("button", { tabIndex: 0, role: "button", disabled: T === 0, onClick: function() {
7142
7142
  return H(T - 1);
7143
7143
  }, title: N("pagination.previous"), "aria-label": N("pagination.previous"), className: _t(n.className.paginationButton, n.className.paginationButtonPrev) }, N("pagination.previous")), function() {
7144
7144
  if (h <= 0) return null;
7145
- var B = Math.min(q(), h), Y = Math.min(T, Math.floor(B / 2));
7146
- return T + Math.floor(B / 2) >= q() && (Y = B - (q() - T)), _e(cr, null, q() > B && T - Y > 0 && _e(cr, null, _e("button", { tabIndex: 0, role: "button", onClick: function() {
7145
+ var Y = Math.min(U(), h), q = Math.min(T, Math.floor(Y / 2));
7146
+ return T + Math.floor(Y / 2) >= U() && (q = Y - (U() - T)), _e(cr, null, U() > Y && T - q > 0 && _e(cr, null, _e("button", { tabIndex: 0, role: "button", onClick: function() {
7147
7147
  return H(0);
7148
- }, title: N("pagination.firstPage"), "aria-label": N("pagination.firstPage"), className: n.className.paginationButton }, N("1")), _e("button", { tabIndex: -1, className: _t(et("spread"), n.className.paginationButton) }, "...")), Array.from(Array(B).keys()).map(function(W) {
7149
- return T + (W - Y);
7150
- }).map(function(W) {
7148
+ }, title: N("pagination.firstPage"), "aria-label": N("pagination.firstPage"), className: n.className.paginationButton }, N("1")), _e("button", { tabIndex: -1, className: _t(et("spread"), n.className.paginationButton) }, "...")), Array.from(Array(Y).keys()).map(function(B) {
7149
+ return T + (B - q);
7150
+ }).map(function(B) {
7151
7151
  return _e("button", { tabIndex: 0, role: "button", onClick: function() {
7152
- return H(W);
7153
- }, className: _t(T === W ? _t(et("currentPage"), n.className.paginationButtonCurrent) : null, n.className.paginationButton), title: N("pagination.page", W + 1), "aria-label": N("pagination.page", W + 1) }, N("" + (W + 1)));
7154
- }), q() > B && q() > T + Y + 1 && _e(cr, null, _e("button", { tabIndex: -1, className: _t(et("spread"), n.className.paginationButton) }, "..."), _e("button", { tabIndex: 0, role: "button", onClick: function() {
7155
- return H(q() - 1);
7156
- }, title: N("pagination.page", q()), "aria-label": N("pagination.page", q()), className: n.className.paginationButton }, N("" + q()))));
7157
- }(), s && _e("button", { tabIndex: 0, role: "button", disabled: q() === T + 1 || q() === 0, onClick: function() {
7152
+ return H(B);
7153
+ }, className: _t(T === B ? _t(et("currentPage"), n.className.paginationButtonCurrent) : null, n.className.paginationButton), title: N("pagination.page", B + 1), "aria-label": N("pagination.page", B + 1) }, N("" + (B + 1)));
7154
+ }), U() > Y && U() > T + q + 1 && _e(cr, null, _e("button", { tabIndex: -1, className: _t(et("spread"), n.className.paginationButton) }, "..."), _e("button", { tabIndex: 0, role: "button", onClick: function() {
7155
+ return H(U() - 1);
7156
+ }, title: N("pagination.page", U()), "aria-label": N("pagination.page", U()), className: n.className.paginationButton }, N("" + U()))));
7157
+ }(), s && _e("button", { tabIndex: 0, role: "button", disabled: U() === T + 1 || U() === 0, onClick: function() {
7158
7158
  return H(T + 1);
7159
7159
  }, title: N("pagination.next"), "aria-label": N("pagination.next"), className: _t(n.className.paginationButton, n.className.paginationButtonNext) }, N("pagination.next"))));
7160
7160
  }
@@ -7513,18 +7513,18 @@ var bP = /* @__PURE__ */ function(n) {
7513
7513
  if (!("length" in v)) throw new TypeError("Object is not iterable");
7514
7514
  for (var I = [], O = 0; O < v.length; O++) I.push(v[O]);
7515
7515
  return function(F, N, V) {
7516
- var q, H, B = -1;
7517
- return function Y(W) {
7516
+ var U, H, Y = -1;
7517
+ return function q(B) {
7518
7518
  try {
7519
- for (; ++B < F.length; ) if ((W = N(B)) && W.then) {
7520
- if (!y_(W)) return void W.then(Y, H || (H = On.bind(null, q = new pa(), 2)));
7521
- W = W.v;
7519
+ for (; ++Y < F.length; ) if ((B = N(Y)) && B.then) {
7520
+ if (!y_(B)) return void B.then(q, H || (H = On.bind(null, U = new pa(), 2)));
7521
+ B = B.v;
7522
7522
  }
7523
- q ? On(q, 1, W) : q = W;
7524
- } catch (de) {
7525
- On(q || (q = new pa()), 2, de);
7523
+ U ? On(U, 1, B) : U = B;
7524
+ } catch (ae) {
7525
+ On(U || (U = new pa()), 2, ae);
7526
7526
  }
7527
- }(), q;
7527
+ }(), U;
7528
7528
  }(I, function(F) {
7529
7529
  return _(I[F]);
7530
7530
  });
@@ -11515,8 +11515,8 @@ class io extends Mi {
11515
11515
  F.skip = !0;
11516
11516
  continue;
11517
11517
  }
11518
- const N = this.getParsed(I), V = Ke(N[v]), q = F[g] = s.getPixelForValue(N[g], I), H = F[v] = o || V ? a.getBasePixel() : a.getPixelForValue(c ? this.applyStack(a, N, c) : N[v], I);
11519
- F.skip = isNaN(q) || isNaN(H) || V, F.stop = I > 0 && Math.abs(N[g] - P[g]) > w, b && (F.parsed = N, F.raw = u.data[I]), f && (F.options = h || this.resolveDataElementOptions(I, O.active ? "active" : r)), k || this.updateElement(O, I, F, r), P = N;
11518
+ const N = this.getParsed(I), V = Ke(N[v]), U = F[g] = s.getPixelForValue(N[g], I), H = F[v] = o || V ? a.getBasePixel() : a.getPixelForValue(c ? this.applyStack(a, N, c) : N[v], I);
11519
+ F.skip = isNaN(U) || isNaN(H) || V, F.stop = I > 0 && Math.abs(N[g] - P[g]) > w, b && (F.parsed = N, F.raw = u.data[I]), f && (F.options = h || this.resolveDataElementOptions(I, O.active ? "active" : r)), k || this.updateElement(O, I, F, r), P = N;
11520
11520
  }
11521
11521
  }
11522
11522
  getMaxOverflow() {
@@ -11776,8 +11776,8 @@ class Ls extends Mi {
11776
11776
  const o = r === "reset", { iScale: s, vScale: a, _stacked: c, _dataset: u } = this._cachedMeta, h = this.resolveDataElementOptions(t, r), f = this.getSharedOptions(h), g = this.includeOptions(r, f), v = s.axis, _ = a.axis, { spanGaps: b, segment: w } = this.options, k = Ba(b) ? b : Number.POSITIVE_INFINITY, C = this.chart._animationsDisabled || o || r === "none";
11777
11777
  let T = t > 0 && this.getParsed(t - 1);
11778
11778
  for (let P = t; P < t + i; ++P) {
11779
- const I = e[P], O = this.getParsed(P), F = C ? I : {}, N = Ke(O[_]), V = F[v] = s.getPixelForValue(O[v], P), q = F[_] = o || N ? a.getBasePixel() : a.getPixelForValue(c ? this.applyStack(a, O, c) : O[_], P);
11780
- F.skip = isNaN(V) || isNaN(q) || N, F.stop = P > 0 && Math.abs(O[v] - T[v]) > k, w && (F.parsed = O, F.raw = u.data[P]), g && (F.options = f || this.resolveDataElementOptions(P, I.active ? "active" : r)), C || this.updateElement(I, P, F, r), T = O;
11779
+ const I = e[P], O = this.getParsed(P), F = C ? I : {}, N = Ke(O[_]), V = F[v] = s.getPixelForValue(O[v], P), U = F[_] = o || N ? a.getBasePixel() : a.getPixelForValue(c ? this.applyStack(a, O, c) : O[_], P);
11780
+ F.skip = isNaN(V) || isNaN(U) || N, F.stop = P > 0 && Math.abs(O[v] - T[v]) > k, w && (F.parsed = O, F.raw = u.data[P]), g && (F.options = f || this.resolveDataElementOptions(P, I.active ? "active" : r)), C || this.updateElement(I, P, F, r), T = O;
11781
11781
  }
11782
11782
  this.updateSharedOptions(f, r, h);
11783
11783
  }
@@ -12932,51 +12932,51 @@ class ts extends Mr {
12932
12932
  return e !== "auto" ? !!e : this.getMatchingVisibleMetas().length > 0;
12933
12933
  }
12934
12934
  _computeGridLineItems(e) {
12935
- const t = this.axis, i = this.chart, r = this.options, { grid: o, position: s, border: a } = r, c = o.offset, u = this.isHorizontal(), f = this.ticks.length + (c ? 1 : 0), g = Ol(o), v = [], _ = a.setContext(this.getContext()), b = _.display ? _.width : 0, w = b / 2, k = function(pe) {
12936
- return ys(i, pe, b);
12935
+ const t = this.axis, i = this.chart, r = this.options, { grid: o, position: s, border: a } = r, c = o.offset, u = this.isHorizontal(), f = this.ticks.length + (c ? 1 : 0), g = Ol(o), v = [], _ = a.setContext(this.getContext()), b = _.display ? _.width : 0, w = b / 2, k = function(he) {
12936
+ return ys(i, he, b);
12937
12937
  };
12938
- let C, T, P, I, O, F, N, V, q, H, B, Y;
12938
+ let C, T, P, I, O, F, N, V, U, H, Y, q;
12939
12939
  if (s === "top")
12940
- C = k(this.bottom), F = this.bottom - g, V = C - w, H = k(e.top) + w, Y = e.bottom;
12940
+ C = k(this.bottom), F = this.bottom - g, V = C - w, H = k(e.top) + w, q = e.bottom;
12941
12941
  else if (s === "bottom")
12942
- C = k(this.top), H = e.top, Y = k(e.bottom) - w, F = C + w, V = this.top + g;
12942
+ C = k(this.top), H = e.top, q = k(e.bottom) - w, F = C + w, V = this.top + g;
12943
12943
  else if (s === "left")
12944
- C = k(this.right), O = this.right - g, N = C - w, q = k(e.left) + w, B = e.right;
12944
+ C = k(this.right), O = this.right - g, N = C - w, U = k(e.left) + w, Y = e.right;
12945
12945
  else if (s === "right")
12946
- C = k(this.left), q = e.left, B = k(e.right) - w, O = C + w, N = this.left + g;
12946
+ C = k(this.left), U = e.left, Y = k(e.right) - w, O = C + w, N = this.left + g;
12947
12947
  else if (t === "x") {
12948
12948
  if (s === "center")
12949
12949
  C = k((e.top + e.bottom) / 2 + 0.5);
12950
12950
  else if (Xe(s)) {
12951
- const pe = Object.keys(s)[0], Me = s[pe];
12952
- C = k(this.chart.scales[pe].getPixelForValue(Me));
12951
+ const he = Object.keys(s)[0], Me = s[he];
12952
+ C = k(this.chart.scales[he].getPixelForValue(Me));
12953
12953
  }
12954
- H = e.top, Y = e.bottom, F = C + w, V = F + g;
12954
+ H = e.top, q = e.bottom, F = C + w, V = F + g;
12955
12955
  } else if (t === "y") {
12956
12956
  if (s === "center")
12957
12957
  C = k((e.left + e.right) / 2);
12958
12958
  else if (Xe(s)) {
12959
- const pe = Object.keys(s)[0], Me = s[pe];
12960
- C = k(this.chart.scales[pe].getPixelForValue(Me));
12959
+ const he = Object.keys(s)[0], Me = s[he];
12960
+ C = k(this.chart.scales[he].getPixelForValue(Me));
12961
12961
  }
12962
- O = C - w, N = O - g, q = e.left, B = e.right;
12962
+ O = C - w, N = O - g, U = e.left, Y = e.right;
12963
12963
  }
12964
- const W = ze(r.ticks.maxTicksLimit, f), de = Math.max(1, Math.ceil(f / W));
12965
- for (T = 0; T < f; T += de) {
12966
- const pe = this.getContext(T), Me = o.setContext(pe), J = a.setContext(pe), Ne = Me.lineWidth, he = Me.color, ue = J.dash || [], ae = J.dashOffset, ee = Me.tickWidth, ie = Me.tickColor, K = Me.tickBorderDash || [], oe = Me.tickBorderDashOffset;
12967
- P = RE(this, T, c), P !== void 0 && (I = ys(i, P, Ne), u ? O = N = q = B = I : F = V = H = Y = I, v.push({
12964
+ const B = ze(r.ticks.maxTicksLimit, f), ae = Math.max(1, Math.ceil(f / B));
12965
+ for (T = 0; T < f; T += ae) {
12966
+ const he = this.getContext(T), Me = o.setContext(he), J = a.setContext(he), Ne = Me.lineWidth, fe = Me.color, de = J.dash || [], le = J.dashOffset, ee = Me.tickWidth, ie = Me.tickColor, K = Me.tickBorderDash || [], oe = Me.tickBorderDashOffset;
12967
+ P = RE(this, T, c), P !== void 0 && (I = ys(i, P, Ne), u ? O = N = U = Y = I : F = V = H = q = I, v.push({
12968
12968
  tx1: O,
12969
12969
  ty1: F,
12970
12970
  tx2: N,
12971
12971
  ty2: V,
12972
- x1: q,
12972
+ x1: U,
12973
12973
  y1: H,
12974
- x2: B,
12975
- y2: Y,
12974
+ x2: Y,
12975
+ y2: q,
12976
12976
  width: Ne,
12977
- color: he,
12978
- borderDash: ue,
12979
- borderDashOffset: ae,
12977
+ color: fe,
12978
+ borderDash: de,
12979
+ borderDashOffset: le,
12980
12980
  tickWidth: ee,
12981
12981
  tickColor: ie,
12982
12982
  tickBorderDash: K,
@@ -12987,48 +12987,48 @@ class ts extends Mr {
12987
12987
  }
12988
12988
  _computeLabelItems(e) {
12989
12989
  const t = this.axis, i = this.options, { position: r, ticks: o } = i, s = this.isHorizontal(), a = this.ticks, { align: c, crossAlign: u, padding: h, mirror: f } = o, g = Ol(i.grid), v = g + h, _ = f ? -h : v, b = -Vi(this.labelRotation), w = [];
12990
- let k, C, T, P, I, O, F, N, V, q, H, B, Y = "middle";
12990
+ let k, C, T, P, I, O, F, N, V, U, H, Y, q = "middle";
12991
12991
  if (r === "top")
12992
12992
  O = this.bottom - _, F = this._getXAxisLabelAlignment();
12993
12993
  else if (r === "bottom")
12994
12994
  O = this.top + _, F = this._getXAxisLabelAlignment();
12995
12995
  else if (r === "left") {
12996
- const de = this._getYAxisLabelAlignment(g);
12997
- F = de.textAlign, I = de.x;
12996
+ const ae = this._getYAxisLabelAlignment(g);
12997
+ F = ae.textAlign, I = ae.x;
12998
12998
  } else if (r === "right") {
12999
- const de = this._getYAxisLabelAlignment(g);
13000
- F = de.textAlign, I = de.x;
12999
+ const ae = this._getYAxisLabelAlignment(g);
13000
+ F = ae.textAlign, I = ae.x;
13001
13001
  } else if (t === "x") {
13002
13002
  if (r === "center")
13003
13003
  O = (e.top + e.bottom) / 2 + v;
13004
13004
  else if (Xe(r)) {
13005
- const de = Object.keys(r)[0], pe = r[de];
13006
- O = this.chart.scales[de].getPixelForValue(pe) + v;
13005
+ const ae = Object.keys(r)[0], he = r[ae];
13006
+ O = this.chart.scales[ae].getPixelForValue(he) + v;
13007
13007
  }
13008
13008
  F = this._getXAxisLabelAlignment();
13009
13009
  } else if (t === "y") {
13010
13010
  if (r === "center")
13011
13011
  I = (e.left + e.right) / 2 - v;
13012
13012
  else if (Xe(r)) {
13013
- const de = Object.keys(r)[0], pe = r[de];
13014
- I = this.chart.scales[de].getPixelForValue(pe);
13013
+ const ae = Object.keys(r)[0], he = r[ae];
13014
+ I = this.chart.scales[ae].getPixelForValue(he);
13015
13015
  }
13016
13016
  F = this._getYAxisLabelAlignment(g).textAlign;
13017
13017
  }
13018
- t === "y" && (c === "start" ? Y = "top" : c === "end" && (Y = "bottom"));
13019
- const W = this._getLabelSizes();
13018
+ t === "y" && (c === "start" ? q = "top" : c === "end" && (q = "bottom"));
13019
+ const B = this._getLabelSizes();
13020
13020
  for (k = 0, C = a.length; k < C; ++k) {
13021
13021
  T = a[k], P = T.label;
13022
- const de = o.setContext(this.getContext(k));
13023
- N = this.getPixelForTick(k) + o.labelOffset, V = this._resolveTickFontOptions(k), q = V.lineHeight, H = wt(P) ? P.length : 1;
13024
- const pe = H / 2, Me = de.color, J = de.textStrokeColor, Ne = de.textStrokeWidth;
13025
- let he = F;
13026
- s ? (I = N, F === "inner" && (k === C - 1 ? he = this.options.reverse ? "left" : "right" : k === 0 ? he = this.options.reverse ? "right" : "left" : he = "center"), r === "top" ? u === "near" || b !== 0 ? B = -H * q + q / 2 : u === "center" ? B = -W.highest.height / 2 - pe * q + q : B = -W.highest.height + q / 2 : u === "near" || b !== 0 ? B = q / 2 : u === "center" ? B = W.highest.height / 2 - pe * q : B = W.highest.height - H * q, f && (B *= -1), b !== 0 && !de.showLabelBackdrop && (I += q / 2 * Math.sin(b))) : (O = N, B = (1 - H) * q / 2);
13027
- let ue;
13028
- if (de.showLabelBackdrop) {
13029
- const ae = Sn(de.backdropPadding), ee = W.heights[k], ie = W.widths[k];
13030
- let K = B - ae.top, oe = 0 - ae.left;
13031
- switch (Y) {
13022
+ const ae = o.setContext(this.getContext(k));
13023
+ N = this.getPixelForTick(k) + o.labelOffset, V = this._resolveTickFontOptions(k), U = V.lineHeight, H = wt(P) ? P.length : 1;
13024
+ const he = H / 2, Me = ae.color, J = ae.textStrokeColor, Ne = ae.textStrokeWidth;
13025
+ let fe = F;
13026
+ s ? (I = N, F === "inner" && (k === C - 1 ? fe = this.options.reverse ? "left" : "right" : k === 0 ? fe = this.options.reverse ? "right" : "left" : fe = "center"), r === "top" ? u === "near" || b !== 0 ? Y = -H * U + U / 2 : u === "center" ? Y = -B.highest.height / 2 - he * U + U : Y = -B.highest.height + U / 2 : u === "near" || b !== 0 ? Y = U / 2 : u === "center" ? Y = B.highest.height / 2 - he * U : Y = B.highest.height - H * U, f && (Y *= -1), b !== 0 && !ae.showLabelBackdrop && (I += U / 2 * Math.sin(b))) : (O = N, Y = (1 - H) * U / 2);
13027
+ let de;
13028
+ if (ae.showLabelBackdrop) {
13029
+ const le = Sn(ae.backdropPadding), ee = B.heights[k], ie = B.widths[k];
13030
+ let K = Y - le.top, oe = 0 - le.left;
13031
+ switch (q) {
13032
13032
  case "middle":
13033
13033
  K -= ee / 2;
13034
13034
  break;
@@ -13047,30 +13047,30 @@ class ts extends Mr {
13047
13047
  k === C - 1 ? oe -= ie : k > 0 && (oe -= ie / 2);
13048
13048
  break;
13049
13049
  }
13050
- ue = {
13050
+ de = {
13051
13051
  left: oe,
13052
13052
  top: K,
13053
- width: ie + ae.width,
13054
- height: ee + ae.height,
13055
- color: de.backdropColor
13053
+ width: ie + le.width,
13054
+ height: ee + le.height,
13055
+ color: ae.backdropColor
13056
13056
  };
13057
13057
  }
13058
13058
  w.push({
13059
13059
  label: P,
13060
13060
  font: V,
13061
- textOffset: B,
13061
+ textOffset: Y,
13062
13062
  options: {
13063
13063
  rotation: b,
13064
13064
  color: Me,
13065
13065
  strokeColor: J,
13066
13066
  strokeWidth: Ne,
13067
- textAlign: he,
13068
- textBaseline: Y,
13067
+ textAlign: fe,
13068
+ textBaseline: q,
13069
13069
  translation: [
13070
13070
  I,
13071
13071
  O
13072
13072
  ],
13073
- backdrop: ue
13073
+ backdrop: de
13074
13074
  }
13075
13075
  });
13076
13076
  }
@@ -14274,25 +14274,25 @@ function Rd(n, e, t, i, r, o) {
14274
14274
  let v = 0;
14275
14275
  const _ = r - c;
14276
14276
  if (i) {
14277
- const de = h > 0 ? h - i : 0, pe = f > 0 ? f - i : 0, Me = (de + pe) / 2, J = Me !== 0 ? _ * Me / (Me + i) : _;
14277
+ const ae = h > 0 ? h - i : 0, he = f > 0 ? f - i : 0, Me = (ae + he) / 2, J = Me !== 0 ? _ * Me / (Me + i) : _;
14278
14278
  v = (_ - J) / 2;
14279
14279
  }
14280
- const b = Math.max(1e-3, _ * f - t / rt) / f, w = (_ - b) / 2, k = c + w + v, C = r - w - v, { outerStart: T, outerEnd: P, innerStart: I, innerEnd: O } = fL(e, g, f, C - k), F = f - T, N = f - P, V = k + T / F, q = C - P / N, H = g + I, B = g + O, Y = k + I / H, W = C - O / B;
14280
+ const b = Math.max(1e-3, _ * f - t / rt) / f, w = (_ - b) / 2, k = c + w + v, C = r - w - v, { outerStart: T, outerEnd: P, innerStart: I, innerEnd: O } = fL(e, g, f, C - k), F = f - T, N = f - P, V = k + T / F, U = C - P / N, H = g + I, Y = g + O, q = k + I / H, B = C - O / Y;
14281
14281
  if (n.beginPath(), o) {
14282
- const de = (V + q) / 2;
14283
- if (n.arc(s, a, f, V, de), n.arc(s, a, f, de, q), P > 0) {
14284
- const Ne = da(N, q, s, a);
14285
- n.arc(Ne.x, Ne.y, P, q, C + Ft);
14282
+ const ae = (V + U) / 2;
14283
+ if (n.arc(s, a, f, V, ae), n.arc(s, a, f, ae, U), P > 0) {
14284
+ const Ne = da(N, U, s, a);
14285
+ n.arc(Ne.x, Ne.y, P, U, C + Ft);
14286
14286
  }
14287
- const pe = da(B, C, s, a);
14288
- if (n.lineTo(pe.x, pe.y), O > 0) {
14289
- const Ne = da(B, W, s, a);
14290
- n.arc(Ne.x, Ne.y, O, C + Ft, W + Math.PI);
14287
+ const he = da(Y, C, s, a);
14288
+ if (n.lineTo(he.x, he.y), O > 0) {
14289
+ const Ne = da(Y, B, s, a);
14290
+ n.arc(Ne.x, Ne.y, O, C + Ft, B + Math.PI);
14291
14291
  }
14292
14292
  const Me = (C - O / g + (k + I / g)) / 2;
14293
14293
  if (n.arc(s, a, g, C - O / g, Me, !0), n.arc(s, a, g, Me, k + I / g, !0), I > 0) {
14294
- const Ne = da(H, Y, s, a);
14295
- n.arc(Ne.x, Ne.y, I, Y + Math.PI, k - Ft);
14294
+ const Ne = da(H, q, s, a);
14295
+ n.arc(Ne.x, Ne.y, I, q + Math.PI, k - Ft);
14296
14296
  }
14297
14297
  const J = da(F, k, s, a);
14298
14298
  if (n.lineTo(J.x, J.y), T > 0) {
@@ -14301,9 +14301,9 @@ function Rd(n, e, t, i, r, o) {
14301
14301
  }
14302
14302
  } else {
14303
14303
  n.moveTo(s, a);
14304
- const de = Math.cos(V) * f + s, pe = Math.sin(V) * f + a;
14305
- n.lineTo(de, pe);
14306
- const Me = Math.cos(q) * f + s, J = Math.sin(q) * f + a;
14304
+ const ae = Math.cos(V) * f + s, he = Math.sin(V) * f + a;
14305
+ n.lineTo(ae, he);
14306
+ const Me = Math.cos(U) * f + s, J = Math.sin(U) * f + a;
14307
14307
  n.lineTo(Me, J);
14308
14308
  }
14309
14309
  n.closePath();
@@ -15448,22 +15448,22 @@ class Cb extends Mr {
15448
15448
  r.save();
15449
15449
  const V = ze(N.lineWidth, 1);
15450
15450
  if (r.fillStyle = ze(N.fillStyle, a), r.lineCap = ze(N.lineCap, "butt"), r.lineDashOffset = ze(N.lineDashOffset, 0), r.lineJoin = ze(N.lineJoin, "miter"), r.lineWidth = V, r.strokeStyle = ze(N.strokeStyle, a), r.setLineDash(ze(N.lineDash, [])), s.usePointStyle) {
15451
- const q = {
15451
+ const U = {
15452
15452
  radius: b * Math.SQRT2 / 2,
15453
15453
  pointStyle: N.pointStyle,
15454
15454
  rotation: N.rotation,
15455
15455
  borderWidth: V
15456
- }, H = c.xPlus(O, _ / 2), B = F + g;
15457
- Gw(r, q, H, B, s.pointStyleWidth && _);
15456
+ }, H = c.xPlus(O, _ / 2), Y = F + g;
15457
+ Gw(r, U, H, Y, s.pointStyleWidth && _);
15458
15458
  } else {
15459
- const q = F + Math.max((f - b) / 2, 0), H = c.leftForLtr(O, _), B = Is(N.borderRadius);
15460
- r.beginPath(), Object.values(B).some((Y) => Y !== 0) ? Pc(r, {
15459
+ const U = F + Math.max((f - b) / 2, 0), H = c.leftForLtr(O, _), Y = Is(N.borderRadius);
15460
+ r.beginPath(), Object.values(Y).some((q) => q !== 0) ? Pc(r, {
15461
15461
  x: H,
15462
- y: q,
15462
+ y: U,
15463
15463
  w: _,
15464
15464
  h: b,
15465
- radius: B
15466
- }) : r.rect(H, q, _, b), r.fill(), V !== 0 && r.stroke();
15465
+ radius: Y
15466
+ }) : r.rect(H, U, _, b), r.fill(), V !== 0 && r.stroke();
15467
15467
  }
15468
15468
  r.restore();
15469
15469
  }, C = function(O, F, N) {
@@ -15484,15 +15484,15 @@ class Cb extends Mr {
15484
15484
  const I = w + h;
15485
15485
  this.legendItems.forEach((O, F) => {
15486
15486
  r.strokeStyle = O.fontColor, r.fillStyle = O.fontColor;
15487
- const N = r.measureText(O.text).width, V = c.textAlign(O.textAlign || (O.textAlign = s.textAlign)), q = _ + g + N;
15488
- let H = v.x, B = v.y;
15489
- c.setWidth(this.width), T ? F > 0 && H + q + h > this.right && (B = v.y += I, v.line++, H = v.x = mn(o, this.left + h, this.right - i[v.line])) : F > 0 && B + I > this.bottom && (H = v.x = H + t[v.line].width + h, v.line++, B = v.y = mn(o, this.top + P + h, this.bottom - t[v.line].height));
15490
- const Y = c.x(H);
15491
- if (k(Y, B, O), H = DA(V, H + _ + g, T ? H + q : this.right, e.rtl), C(c.x(H), B, O), T)
15492
- v.x += q + h;
15487
+ const N = r.measureText(O.text).width, V = c.textAlign(O.textAlign || (O.textAlign = s.textAlign)), U = _ + g + N;
15488
+ let H = v.x, Y = v.y;
15489
+ c.setWidth(this.width), T ? F > 0 && H + U + h > this.right && (Y = v.y += I, v.line++, H = v.x = mn(o, this.left + h, this.right - i[v.line])) : F > 0 && Y + I > this.bottom && (H = v.x = H + t[v.line].width + h, v.line++, Y = v.y = mn(o, this.top + P + h, this.bottom - t[v.line].height));
15490
+ const q = c.x(H);
15491
+ if (k(q, Y, O), H = DA(V, H + _ + g, T ? H + U : this.right, e.rtl), C(c.x(H), Y, O), T)
15492
+ v.x += U + h;
15493
15493
  else if (typeof O.text != "string") {
15494
- const W = u.lineHeight;
15495
- v.y += P1(O, W) + h;
15494
+ const B = u.lineHeight;
15495
+ v.y += P1(O, B) + h;
15496
15496
  } else
15497
15497
  v.y += I;
15498
15498
  }), r1(this.ctx, e.textDirection);
@@ -16422,17 +16422,17 @@ function DO(n, e) {
16422
16422
  }
16423
16423
  ];
16424
16424
  V = Math.ceil(w / I) - Math.floor(b / I), V > _ && (I = D_(V * I / _ / v) * v), Ke(c) || (O = Math.pow(10, c), I = Math.ceil(I * O) / O), r === "ticks" ? (F = Math.floor(b / I) * I, N = Math.ceil(w / I) * I) : (F = b, N = w), k && C && o && xA((a - s) / o, I / 1e3) ? (V = Math.round(Math.min((a - s) / I, h)), I = (a - s) / V, F = s, N = a) : T ? (F = k ? s : F, N = C ? a : N, V = u - 1, I = (N - F) / V) : (V = (N - F) / I, Xl(V, Math.round(V), I / 1e3) ? V = Math.round(V) : V = Math.ceil(V));
16425
- const q = Math.max(P_(I), P_(F));
16426
- O = Math.pow(10, Ke(c) ? q : c), F = Math.round(F * O) / O, N = Math.round(N * O) / O;
16425
+ const U = Math.max(P_(I), P_(F));
16426
+ O = Math.pow(10, Ke(c) ? U : c), F = Math.round(F * O) / O, N = Math.round(N * O) / O;
16427
16427
  let H = 0;
16428
16428
  for (k && (g && F !== s ? (t.push({
16429
16429
  value: s
16430
16430
  }), F < s && H++, Xl(Math.round((F + H * I) * O) / O, s, Lb(s, P, n)) && H++) : F < s && H++); H < V; ++H) {
16431
- const B = Math.round((F + H * I) * O) / O;
16432
- if (C && B > a)
16431
+ const Y = Math.round((F + H * I) * O) / O;
16432
+ if (C && Y > a)
16433
16433
  break;
16434
16434
  t.push({
16435
- value: B
16435
+ value: Y
16436
16436
  });
16437
16437
  }
16438
16438
  return C && g && N !== a ? t.length && Xl(t[t.length - 1].value, a, Lb(a, P, n)) ? t[t.length - 1].value = a : t.push({
@@ -21582,35 +21582,35 @@ const TN = function(n) {
21582
21582
  const k = Zs(r), C = Lo(a), T = Zs(a) === a, P = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), I = g || (T || !b ? [$d(a)] : _N(a)), O = _ !== "none";
21583
21583
  !g && O && I.push(...kN(a, b, _, P));
21584
21584
  const F = [a, ...I], N = await X1(e, w), V = [];
21585
- let q = ((i = o.flip) == null ? void 0 : i.overflows) || [];
21585
+ let U = ((i = o.flip) == null ? void 0 : i.overflows) || [];
21586
21586
  if (h && V.push(N[k]), f) {
21587
- const W = yN(r, s, P);
21588
- V.push(N[W[0]], N[W[1]]);
21587
+ const B = yN(r, s, P);
21588
+ V.push(N[B[0]], N[B[1]]);
21589
21589
  }
21590
- if (q = [...q, {
21590
+ if (U = [...U, {
21591
21591
  placement: r,
21592
21592
  overflows: V
21593
- }], !V.every((W) => W <= 0)) {
21594
- var H, B;
21595
- const W = (((H = o.flip) == null ? void 0 : H.index) || 0) + 1, de = F[W];
21596
- if (de && (!(f === "alignment" ? C !== Lo(de) : !1) || // We leave the current main axis only if every placement on that axis
21593
+ }], !V.every((B) => B <= 0)) {
21594
+ var H, Y;
21595
+ const B = (((H = o.flip) == null ? void 0 : H.index) || 0) + 1, ae = F[B];
21596
+ if (ae && (!(f === "alignment" ? C !== Lo(ae) : !1) || // We leave the current main axis only if every placement on that axis
21597
21597
  // overflows the main axis.
21598
- q.every((J) => J.overflows[0] > 0 && Lo(J.placement) === C)))
21598
+ U.every((J) => J.overflows[0] > 0 && Lo(J.placement) === C)))
21599
21599
  return {
21600
21600
  data: {
21601
- index: W,
21602
- overflows: q
21601
+ index: B,
21602
+ overflows: U
21603
21603
  },
21604
21604
  reset: {
21605
- placement: de
21605
+ placement: ae
21606
21606
  }
21607
21607
  };
21608
- let pe = (B = q.filter((Me) => Me.overflows[0] <= 0).sort((Me, J) => Me.overflows[1] - J.overflows[1])[0]) == null ? void 0 : B.placement;
21609
- if (!pe)
21608
+ let he = (Y = U.filter((Me) => Me.overflows[0] <= 0).sort((Me, J) => Me.overflows[1] - J.overflows[1])[0]) == null ? void 0 : Y.placement;
21609
+ if (!he)
21610
21610
  switch (v) {
21611
21611
  case "bestFit": {
21612
- var Y;
21613
- const Me = (Y = q.filter((J) => {
21612
+ var q;
21613
+ const Me = (q = U.filter((J) => {
21614
21614
  if (O) {
21615
21615
  const Ne = Lo(J.placement);
21616
21616
  return Ne === C || // Create a bias to the `y` side axis due to horizontal
@@ -21618,18 +21618,18 @@ const TN = function(n) {
21618
21618
  Ne === "y";
21619
21619
  }
21620
21620
  return !0;
21621
- }).map((J) => [J.placement, J.overflows.filter((Ne) => Ne > 0).reduce((Ne, he) => Ne + he, 0)]).sort((J, Ne) => J[1] - Ne[1])[0]) == null ? void 0 : Y[0];
21622
- Me && (pe = Me);
21621
+ }).map((J) => [J.placement, J.overflows.filter((Ne) => Ne > 0).reduce((Ne, fe) => Ne + fe, 0)]).sort((J, Ne) => J[1] - Ne[1])[0]) == null ? void 0 : q[0];
21622
+ Me && (he = Me);
21623
21623
  break;
21624
21624
  }
21625
21625
  case "initialPlacement":
21626
- pe = a;
21626
+ he = a;
21627
21627
  break;
21628
21628
  }
21629
- if (r !== pe)
21629
+ if (r !== he)
21630
21630
  return {
21631
21631
  reset: {
21632
- placement: pe
21632
+ placement: he
21633
21633
  }
21634
21634
  };
21635
21635
  }
@@ -22679,22 +22679,22 @@ let _r = class extends pi {
22679
22679
  }
22680
22680
  };
22681
22681
  yo([
22682
- U({ type: Array })
22682
+ Z({ type: Array })
22683
22683
  ], _r.prototype, "lapisFilters", 2);
22684
22684
  yo([
22685
- U({ type: String })
22685
+ Z({ type: String })
22686
22686
  ], _r.prototype, "sequenceType", 2);
22687
22687
  yo([
22688
- U({ type: Array })
22688
+ Z({ type: Array })
22689
22689
  ], _r.prototype, "views", 2);
22690
22690
  yo([
22691
- U({ type: String })
22691
+ Z({ type: String })
22692
22692
  ], _r.prototype, "width", 2);
22693
22693
  yo([
22694
- U({ type: String })
22694
+ Z({ type: String })
22695
22695
  ], _r.prototype, "height", 2);
22696
22696
  yo([
22697
- U({ type: Object })
22697
+ Z({ type: Object })
22698
22698
  ], _r.prototype, "pageSize", 2);
22699
22699
  yo([
22700
22700
  xr({ context: Hc, subscribe: !0 })
@@ -23119,25 +23119,25 @@ let Gi = class extends pi {
23119
23119
  }
23120
23120
  };
23121
23121
  Pr([
23122
- U({ type: Object })
23122
+ Z({ type: Object })
23123
23123
  ], Gi.prototype, "lapisFilter", 2);
23124
23124
  Pr([
23125
- U({ type: Object })
23125
+ Z({ type: Object })
23126
23126
  ], Gi.prototype, "baselineLapisFilter", 2);
23127
23127
  Pr([
23128
- U({ type: String })
23128
+ Z({ type: String })
23129
23129
  ], Gi.prototype, "sequenceType", 2);
23130
23130
  Pr([
23131
- U({ type: Array })
23131
+ Z({ type: Array })
23132
23132
  ], Gi.prototype, "views", 2);
23133
23133
  Pr([
23134
- U({ type: String })
23134
+ Z({ type: String })
23135
23135
  ], Gi.prototype, "width", 2);
23136
23136
  Pr([
23137
- U({ type: String })
23137
+ Z({ type: String })
23138
23138
  ], Gi.prototype, "height", 2);
23139
23139
  Pr([
23140
- U({ type: Object })
23140
+ Z({ type: Object })
23141
23141
  ], Gi.prototype, "pageSize", 2);
23142
23142
  Pr([
23143
23143
  xr({ context: Hc, subscribe: !0 })
@@ -25027,40 +25027,40 @@ let ei = class extends pi {
25027
25027
  }
25028
25028
  };
25029
25029
  vi([
25030
- U({ type: Object })
25030
+ Z({ type: Object })
25031
25031
  ], ei.prototype, "numeratorFilters", 2);
25032
25032
  vi([
25033
- U({ type: Object })
25033
+ Z({ type: Object })
25034
25034
  ], ei.prototype, "denominatorFilter", 2);
25035
25035
  vi([
25036
- U({ type: String })
25036
+ Z({ type: String })
25037
25037
  ], ei.prototype, "granularity", 2);
25038
25038
  vi([
25039
- U({ type: Number })
25039
+ Z({ type: Number })
25040
25040
  ], ei.prototype, "smoothingWindow", 2);
25041
25041
  vi([
25042
- U({ type: Array })
25042
+ Z({ type: Array })
25043
25043
  ], ei.prototype, "views", 2);
25044
25044
  vi([
25045
- U({ type: Array })
25045
+ Z({ type: Array })
25046
25046
  ], ei.prototype, "confidenceIntervalMethods", 2);
25047
25047
  vi([
25048
- U({ type: String })
25048
+ Z({ type: String })
25049
25049
  ], ei.prototype, "width", 2);
25050
25050
  vi([
25051
- U({ type: String })
25051
+ Z({ type: String })
25052
25052
  ], ei.prototype, "height", 2);
25053
25053
  vi([
25054
- U({ type: String })
25054
+ Z({ type: String })
25055
25055
  ], ei.prototype, "lapisDateField", 2);
25056
25056
  vi([
25057
- U({ type: Object })
25057
+ Z({ type: Object })
25058
25058
  ], ei.prototype, "pageSize", 2);
25059
25059
  vi([
25060
- U({ type: String })
25060
+ Z({ type: String })
25061
25061
  ], ei.prototype, "yAxisMaxLinear", 2);
25062
25062
  vi([
25063
- U({ type: String })
25063
+ Z({ type: String })
25064
25064
  ], ei.prototype, "yAxisMaxLogarithmic", 2);
25065
25065
  ei = vi([
25066
25066
  Xt("gs-prevalence-over-time")
@@ -25404,31 +25404,31 @@ let Xi = class extends Fn {
25404
25404
  }
25405
25405
  };
25406
25406
  Ir([
25407
- U({ type: Object })
25407
+ Z({ type: Object })
25408
25408
  ], Xi.prototype, "numeratorFilter", 2);
25409
25409
  Ir([
25410
- U({ type: Object })
25410
+ Z({ type: Object })
25411
25411
  ], Xi.prototype, "denominatorFilter", 2);
25412
25412
  Ir([
25413
- U({ type: Number })
25413
+ Z({ type: Number })
25414
25414
  ], Xi.prototype, "generationTime", 2);
25415
25415
  Ir([
25416
- U({ type: Array })
25416
+ Z({ type: Array })
25417
25417
  ], Xi.prototype, "views", 2);
25418
25418
  Ir([
25419
- U({ type: String })
25419
+ Z({ type: String })
25420
25420
  ], Xi.prototype, "width", 2);
25421
25421
  Ir([
25422
- U({ type: String })
25422
+ Z({ type: String })
25423
25423
  ], Xi.prototype, "height", 2);
25424
25424
  Ir([
25425
- U({ type: String })
25425
+ Z({ type: String })
25426
25426
  ], Xi.prototype, "lapisDateField", 2);
25427
25427
  Ir([
25428
- U({ type: String })
25428
+ Z({ type: String })
25429
25429
  ], Xi.prototype, "yAxisMaxLinear", 2);
25430
25430
  Ir([
25431
- U({ type: String })
25431
+ Z({ type: String })
25432
25432
  ], Xi.prototype, "yAxisMaxLogarithmic", 2);
25433
25433
  Xi = Ir([
25434
25434
  Xt("gs-relative-growth-advantage")
@@ -25708,31 +25708,31 @@ let Ji = class extends pi {
25708
25708
  }
25709
25709
  };
25710
25710
  Er([
25711
- U({ type: Array })
25711
+ Z({ type: Array })
25712
25712
  ], Ji.prototype, "fields", 2);
25713
25713
  Er([
25714
- U({ type: Array })
25714
+ Z({ type: Array })
25715
25715
  ], Ji.prototype, "views", 2);
25716
25716
  Er([
25717
- U({ type: Object })
25717
+ Z({ type: Object })
25718
25718
  ], Ji.prototype, "lapisFilter", 2);
25719
25719
  Er([
25720
- U({ type: String })
25720
+ Z({ type: String })
25721
25721
  ], Ji.prototype, "width", 2);
25722
25722
  Er([
25723
- U({ type: String })
25723
+ Z({ type: String })
25724
25724
  ], Ji.prototype, "height", 2);
25725
25725
  Er([
25726
- U({ type: String })
25726
+ Z({ type: String })
25727
25727
  ], Ji.prototype, "initialSortField", 2);
25728
25728
  Er([
25729
- U({ type: String })
25729
+ Z({ type: String })
25730
25730
  ], Ji.prototype, "initialSortDirection", 2);
25731
25731
  Er([
25732
- U({ type: Object })
25732
+ Z({ type: Object })
25733
25733
  ], Ji.prototype, "pageSize", 2);
25734
25734
  Er([
25735
- U({ type: Object })
25735
+ Z({ type: Object })
25736
25736
  ], Ji.prototype, "maxNumberOfBars", 2);
25737
25737
  Ji = Er([
25738
25738
  Xt("gs-aggregate")
@@ -26039,28 +26039,28 @@ let br = class extends pi {
26039
26039
  }
26040
26040
  };
26041
26041
  _o([
26042
- U({ type: Object })
26042
+ Z({ type: Object })
26043
26043
  ], br.prototype, "lapisFilters", 2);
26044
26044
  _o([
26045
- U({ type: String })
26045
+ Z({ type: String })
26046
26046
  ], br.prototype, "lapisDateField", 2);
26047
26047
  _o([
26048
- U({ type: Array })
26048
+ Z({ type: Array })
26049
26049
  ], br.prototype, "views", 2);
26050
26050
  _o([
26051
- U({ type: String })
26051
+ Z({ type: String })
26052
26052
  ], br.prototype, "width", 2);
26053
26053
  _o([
26054
- U({ type: String })
26054
+ Z({ type: String })
26055
26055
  ], br.prototype, "height", 2);
26056
26056
  _o([
26057
- U({ type: String })
26057
+ Z({ type: String })
26058
26058
  ], br.prototype, "granularity", 2);
26059
26059
  _o([
26060
- U({ type: Number })
26060
+ Z({ type: Number })
26061
26061
  ], br.prototype, "smoothingWindow", 2);
26062
26062
  _o([
26063
- U({ type: Object })
26063
+ Z({ type: Object })
26064
26064
  ], br.prototype, "pageSize", 2);
26065
26065
  br = _o([
26066
26066
  Xt("gs-number-sequences-over-time")
@@ -27319,8 +27319,8 @@ const Zu = {
27319
27319
  var P, I;
27320
27320
  const O = e.options.columnResizeDirection === "rtl" ? -1 : 1, F = (C - ((P = T == null ? void 0 : T.startOffset) != null ? P : 0)) * O, N = Math.max(F / ((I = T == null ? void 0 : T.startSize) != null ? I : 0), -0.999999);
27321
27321
  return T.columnSizingStart.forEach((V) => {
27322
- let [q, H] = V;
27323
- u[q] = Math.round(Math.max(H + H * N, 0) * 100) / 100;
27322
+ let [U, H] = V;
27323
+ u[U] = Math.round(Math.max(H + H * N, 0) * 100) / 100;
27324
27324
  }), {
27325
27325
  ...T,
27326
27326
  deltaOffset: F,
@@ -28841,9 +28841,9 @@ const M5 = S.literal(vt.grid), C5 = S.object({
28841
28841
  }), k = Gc(), [C, T] = be(e.initialMeanProportionInterval), [P, I] = be({ min: 0, max: 1, color: "indigo" }), [O, F] = mm(e.sequenceType), [N, V] = be([
28842
28842
  { label: "Substitutions", checked: !0, type: "substitution" },
28843
28843
  { label: "Deletions", checked: !0, type: "deletion" }
28844
- ]), [q, H] = be(e.hideGaps ?? !1);
28844
+ ]), [U, H] = be(e.hideGaps ?? !1);
28845
28845
  Re(() => H(e.hideGaps ?? !1), [e.hideGaps]);
28846
- const B = Ee(
28846
+ const Y = Ee(
28847
28847
  () => e3({
28848
28848
  overallMutationData: c,
28849
28849
  displayedSegments: O,
@@ -28865,13 +28865,13 @@ const M5 = S.literal(vt.grid), C5 = S.object({
28865
28865
  );
28866
28866
  Re(() => {
28867
28867
  i(0);
28868
- }, [B, i]);
28869
- const Y = B.length, {
28870
- isLoading: W,
28871
- data: de,
28872
- pageMutationCodes: pe
28868
+ }, [Y, i]);
28869
+ const q = Y.length, {
28870
+ isLoading: B,
28871
+ data: ae,
28872
+ pageMutationCodes: he
28873
28873
  } = S5(
28874
- B,
28874
+ Y,
28875
28875
  t,
28876
28876
  h,
28877
28877
  o,
@@ -28879,16 +28879,16 @@ const M5 = S.literal(vt.grid), C5 = S.object({
28879
28879
  a,
28880
28880
  s,
28881
28881
  u,
28882
- q
28882
+ U
28883
28883
  ), Me = Ee(
28884
28884
  () => ({
28885
- asString: (ue) => ue.code,
28886
- renderRowLabel: (ue) => /* @__PURE__ */ m("div", { className: "text-center", children: /* @__PURE__ */ m(Vg, { mutation: ue, sequenceType: e.sequenceType }) }),
28887
- renderTooltip: (ue, ae, ee) => /* @__PURE__ */ m(Rk, { mutation: ue, date: ae, value: ee })
28885
+ asString: (de) => de.code,
28886
+ renderRowLabel: (de) => /* @__PURE__ */ m("div", { className: "text-center", children: /* @__PURE__ */ m(Vg, { mutation: de, sequenceType: e.sequenceType }) }),
28887
+ renderTooltip: (de, le, ee) => /* @__PURE__ */ m(Rk, { mutation: de, date: le, value: ee })
28888
28888
  }),
28889
28889
  [e.sequenceType]
28890
- ), J = (ue) => {
28891
- switch (ue) {
28890
+ ), J = (de) => {
28891
+ switch (de) {
28892
28892
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- for extensibility
28893
28893
  case "grid":
28894
28894
  return {
@@ -28897,14 +28897,14 @@ const M5 = S.literal(vt.grid), C5 = S.object({
28897
28897
  m5,
28898
28898
  {
28899
28899
  rowLabelHeader: "Mutation",
28900
- data: de,
28901
- isLoading: W,
28902
- loadingRowLabels: pe,
28900
+ data: ae,
28901
+ isLoading: B,
28902
+ loadingRowLabels: he,
28903
28903
  requestedDateRanges: u,
28904
28904
  colorScale: P,
28905
28905
  pageSizes: e.pageSizes,
28906
28906
  pageIndex: t,
28907
- totalRows: Y,
28907
+ totalRows: q,
28908
28908
  onPageChange: i,
28909
28909
  customColumns: e.customColumns,
28910
28910
  featureRenderer: Me,
@@ -28913,25 +28913,25 @@ const M5 = S.literal(vt.grid), C5 = S.object({
28913
28913
  )
28914
28914
  };
28915
28915
  }
28916
- }, Ne = e.views.map((ue) => J(ue));
28917
- return /* @__PURE__ */ m("div", { ref: g, children: /* @__PURE__ */ m(Dr, { ref: f, tabs: Ne, toolbar: (ue) => /* @__PURE__ */ m(
28916
+ }, Ne = e.views.map((de) => J(de));
28917
+ return /* @__PURE__ */ m("div", { ref: g, children: /* @__PURE__ */ m(Dr, { ref: f, tabs: Ne, toolbar: (de) => /* @__PURE__ */ m(
28918
28918
  I5,
28919
28919
  {
28920
- activeTab: ue,
28920
+ activeTab: de,
28921
28921
  displayedSegments: O,
28922
28922
  setDisplayedSegments: F,
28923
28923
  displayedMutationTypes: N,
28924
28924
  setDisplayedMutationTypes: V,
28925
28925
  proportionInterval: C,
28926
28926
  setProportionInterval: T,
28927
- hideGaps: q,
28927
+ hideGaps: U,
28928
28928
  setHideGaps: H,
28929
28929
  colorScale: P,
28930
28930
  setColorScale: I,
28931
28931
  originalComponentProps: e,
28932
28932
  setFilterValue: w,
28933
28933
  mutationFilterValue: b,
28934
- filteredMutationCodes: B,
28934
+ filteredMutationCodes: Y,
28935
28935
  metadata: n
28936
28936
  }
28937
28937
  ) }) });
@@ -29070,40 +29070,40 @@ let Mn = class extends pi {
29070
29070
  }
29071
29071
  };
29072
29072
  Vn([
29073
- U({ type: Object })
29073
+ Z({ type: Object })
29074
29074
  ], Mn.prototype, "lapisFilter", 2);
29075
29075
  Vn([
29076
- U({ type: String })
29076
+ Z({ type: String })
29077
29077
  ], Mn.prototype, "sequenceType", 2);
29078
29078
  Vn([
29079
- U({ type: Array })
29079
+ Z({ type: Array })
29080
29080
  ], Mn.prototype, "views", 2);
29081
29081
  Vn([
29082
- U({ type: String })
29082
+ Z({ type: String })
29083
29083
  ], Mn.prototype, "width", 2);
29084
29084
  Vn([
29085
- U({ type: String })
29085
+ Z({ type: String })
29086
29086
  ], Mn.prototype, "height", 2);
29087
29087
  Vn([
29088
- U({ type: String })
29088
+ Z({ type: String })
29089
29089
  ], Mn.prototype, "granularity", 2);
29090
29090
  Vn([
29091
- U({ type: String })
29091
+ Z({ type: String })
29092
29092
  ], Mn.prototype, "lapisDateField", 2);
29093
29093
  Vn([
29094
- U({ type: Array })
29094
+ Z({ type: Array })
29095
29095
  ], Mn.prototype, "displayMutations", 2);
29096
29096
  Vn([
29097
- U({ type: Object })
29097
+ Z({ type: Object })
29098
29098
  ], Mn.prototype, "initialMeanProportionInterval", 2);
29099
29099
  Vn([
29100
- U({ type: Boolean })
29100
+ Z({ type: Boolean })
29101
29101
  ], Mn.prototype, "hideGaps", 2);
29102
29102
  Vn([
29103
- U({ type: Array })
29103
+ Z({ type: Array })
29104
29104
  ], Mn.prototype, "pageSizes", 2);
29105
29105
  Vn([
29106
- U({ type: Array })
29106
+ Z({ type: Array })
29107
29107
  ], Mn.prototype, "customColumns", 2);
29108
29108
  Vn([
29109
29109
  xr({ context: Hc, subscribe: !0 })
@@ -29547,37 +29547,37 @@ let mi = class extends pi {
29547
29547
  }
29548
29548
  };
29549
29549
  Pi([
29550
- U({ type: Object })
29550
+ Z({ type: Object })
29551
29551
  ], mi.prototype, "lapisFilter", 2);
29552
29552
  Pi([
29553
- U({ type: Array })
29553
+ Z({ type: Array })
29554
29554
  ], mi.prototype, "queries", 2);
29555
29555
  Pi([
29556
- U({ type: Array })
29556
+ Z({ type: Array })
29557
29557
  ], mi.prototype, "views", 2);
29558
29558
  Pi([
29559
- U({ type: String })
29559
+ Z({ type: String })
29560
29560
  ], mi.prototype, "width", 2);
29561
29561
  Pi([
29562
- U({ type: String })
29562
+ Z({ type: String })
29563
29563
  ], mi.prototype, "height", 2);
29564
29564
  Pi([
29565
- U({ type: String })
29565
+ Z({ type: String })
29566
29566
  ], mi.prototype, "granularity", 2);
29567
29567
  Pi([
29568
- U({ type: String })
29568
+ Z({ type: String })
29569
29569
  ], mi.prototype, "lapisDateField", 2);
29570
29570
  Pi([
29571
- U({ type: Object })
29571
+ Z({ type: Object })
29572
29572
  ], mi.prototype, "initialMeanProportionInterval", 2);
29573
29573
  Pi([
29574
- U({ type: Boolean })
29574
+ Z({ type: Boolean })
29575
29575
  ], mi.prototype, "hideGaps", 2);
29576
29576
  Pi([
29577
- U({ type: Array })
29577
+ Z({ type: Array })
29578
29578
  ], mi.prototype, "pageSizes", 2);
29579
29579
  Pi([
29580
- U({ type: Array })
29580
+ Z({ type: Array })
29581
29581
  ], mi.prototype, "customColumns", 2);
29582
29582
  mi = Pi([
29583
29583
  Xt("gs-queries-over-time")
@@ -29693,7 +29693,7 @@ function cj() {
29693
29693
  var d = +/* @__PURE__ */ new Date(), p = Math.max(0, 16 - (d - F));
29694
29694
  return F = d + p, window.setTimeout(l, p);
29695
29695
  }
29696
- var V = window.requestAnimationFrame || O("RequestAnimationFrame") || N, q = window.cancelAnimationFrame || O("CancelAnimationFrame") || O("CancelRequestAnimationFrame") || function(l) {
29696
+ var V = window.requestAnimationFrame || O("RequestAnimationFrame") || N, U = window.cancelAnimationFrame || O("CancelAnimationFrame") || O("CancelRequestAnimationFrame") || function(l) {
29697
29697
  window.clearTimeout(l);
29698
29698
  };
29699
29699
  function H(l, d, p) {
@@ -29702,10 +29702,10 @@ function cj() {
29702
29702
  else
29703
29703
  return V.call(window, s(l, d));
29704
29704
  }
29705
- function B(l) {
29706
- l && q.call(window, l);
29705
+ function Y(l) {
29706
+ l && U.call(window, l);
29707
29707
  }
29708
- var Y = {
29708
+ var q = {
29709
29709
  __proto__: null,
29710
29710
  extend: r,
29711
29711
  create: o,
@@ -29727,45 +29727,45 @@ function cj() {
29727
29727
  indexOf: P,
29728
29728
  emptyImageUrl: I,
29729
29729
  requestFn: V,
29730
- cancelFn: q,
29730
+ cancelFn: U,
29731
29731
  requestAnimFrame: H,
29732
- cancelAnimFrame: B
29732
+ cancelAnimFrame: Y
29733
29733
  };
29734
- function W() {
29734
+ function B() {
29735
29735
  }
29736
- W.extend = function(l) {
29736
+ B.extend = function(l) {
29737
29737
  var d = function() {
29738
29738
  b(this), this.initialize && this.initialize.apply(this, arguments), this.callInitHooks();
29739
29739
  }, p = d.__super__ = this.prototype, y = o(p);
29740
29740
  y.constructor = d, d.prototype = y;
29741
29741
  for (var x in this)
29742
29742
  Object.prototype.hasOwnProperty.call(this, x) && x !== "prototype" && x !== "__super__" && (d[x] = this[x]);
29743
- return l.statics && r(d, l.statics), l.includes && (de(l.includes), r.apply(null, [y].concat(l.includes))), r(y, l), delete y.statics, delete y.includes, y.options && (y.options = p.options ? o(p.options) : {}, r(y.options, l.options)), y._initHooks = [], y.callInitHooks = function() {
29743
+ return l.statics && r(d, l.statics), l.includes && (ae(l.includes), r.apply(null, [y].concat(l.includes))), r(y, l), delete y.statics, delete y.includes, y.options && (y.options = p.options ? o(p.options) : {}, r(y.options, l.options)), y._initHooks = [], y.callInitHooks = function() {
29744
29744
  if (!this._initHooksCalled) {
29745
29745
  p.callInitHooks && p.callInitHooks.call(this), this._initHooksCalled = !0;
29746
29746
  for (var M = 0, E = y._initHooks.length; M < E; M++)
29747
29747
  y._initHooks[M].call(this);
29748
29748
  }
29749
29749
  }, d;
29750
- }, W.include = function(l) {
29750
+ }, B.include = function(l) {
29751
29751
  var d = this.prototype.options;
29752
29752
  return r(this.prototype, l), l.options && (this.prototype.options = d, this.mergeOptions(l.options)), this;
29753
- }, W.mergeOptions = function(l) {
29753
+ }, B.mergeOptions = function(l) {
29754
29754
  return r(this.prototype.options, l), this;
29755
- }, W.addInitHook = function(l) {
29755
+ }, B.addInitHook = function(l) {
29756
29756
  var d = Array.prototype.slice.call(arguments, 1), p = typeof l == "function" ? l : function() {
29757
29757
  this[l].apply(this, d);
29758
29758
  };
29759
29759
  return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(p), this;
29760
29760
  };
29761
- function de(l) {
29761
+ function ae(l) {
29762
29762
  if (!(typeof L > "u" || !L || !L.Mixin)) {
29763
29763
  l = T(l) ? l : [l];
29764
29764
  for (var d = 0; d < l.length; d++)
29765
29765
  l[d] === L.Mixin.Events && console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.", new Error().stack);
29766
29766
  }
29767
29767
  }
29768
- var pe = {
29768
+ var he = {
29769
29769
  /* @method on(type: String, fn: Function, context?: Object): this
29770
29770
  * Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).
29771
29771
  *
@@ -29928,8 +29928,8 @@ function cj() {
29928
29928
  }, l), !0);
29929
29929
  }
29930
29930
  };
29931
- pe.addEventListener = pe.on, pe.removeEventListener = pe.clearAllEventListeners = pe.off, pe.addOneTimeEventListener = pe.once, pe.fireEvent = pe.fire, pe.hasEventListeners = pe.listens;
29932
- var Me = W.extend(pe);
29931
+ he.addEventListener = he.on, he.removeEventListener = he.clearAllEventListeners = he.off, he.addOneTimeEventListener = he.once, he.fireEvent = he.fire, he.hasEventListeners = he.listens;
29932
+ var Me = B.extend(he);
29933
29933
  function J(l, d, p) {
29934
29934
  this.x = p ? Math.round(l) : l, this.y = p ? Math.round(d) : d;
29935
29935
  }
@@ -29945,7 +29945,7 @@ function cj() {
29945
29945
  // @method add(otherPoint: Point): Point
29946
29946
  // Returns the result of addition of the current and the given points.
29947
29947
  add: function(l) {
29948
- return this.clone()._add(he(l));
29948
+ return this.clone()._add(fe(l));
29949
29949
  },
29950
29950
  _add: function(l) {
29951
29951
  return this.x += l.x, this.y += l.y, this;
@@ -29953,7 +29953,7 @@ function cj() {
29953
29953
  // @method subtract(otherPoint: Point): Point
29954
29954
  // Returns the result of subtraction of the given point from the current.
29955
29955
  subtract: function(l) {
29956
- return this.clone()._subtract(he(l));
29956
+ return this.clone()._subtract(fe(l));
29957
29957
  },
29958
29958
  _subtract: function(l) {
29959
29959
  return this.x -= l.x, this.y -= l.y, this;
@@ -30023,19 +30023,19 @@ function cj() {
30023
30023
  // @method distanceTo(otherPoint: Point): Number
30024
30024
  // Returns the cartesian distance between the current and the given points.
30025
30025
  distanceTo: function(l) {
30026
- l = he(l);
30026
+ l = fe(l);
30027
30027
  var d = l.x - this.x, p = l.y - this.y;
30028
30028
  return Math.sqrt(d * d + p * p);
30029
30029
  },
30030
30030
  // @method equals(otherPoint: Point): Boolean
30031
30031
  // Returns `true` if the given point has the same coordinates.
30032
30032
  equals: function(l) {
30033
- return l = he(l), l.x === this.x && l.y === this.y;
30033
+ return l = fe(l), l.x === this.x && l.y === this.y;
30034
30034
  },
30035
30035
  // @method contains(otherPoint: Point): Boolean
30036
30036
  // Returns `true` if both coordinates of the given point are less than the corresponding current point coordinates (in absolute values).
30037
30037
  contains: function(l) {
30038
- return l = he(l), Math.abs(l.x) <= Math.abs(this.x) && Math.abs(l.y) <= Math.abs(this.y);
30038
+ return l = fe(l), Math.abs(l.x) <= Math.abs(this.x) && Math.abs(l.y) <= Math.abs(this.y);
30039
30039
  },
30040
30040
  // @method toString(): String
30041
30041
  // Returns a string representation of the point for debugging purposes.
@@ -30043,15 +30043,15 @@ function cj() {
30043
30043
  return "Point(" + g(this.x) + ", " + g(this.y) + ")";
30044
30044
  }
30045
30045
  };
30046
- function he(l, d, p) {
30046
+ function fe(l, d, p) {
30047
30047
  return l instanceof J ? l : T(l) ? new J(l[0], l[1]) : l == null ? l : typeof l == "object" && "x" in l && "y" in l ? new J(l.x, l.y) : new J(l, d, p);
30048
30048
  }
30049
- function ue(l, d) {
30049
+ function de(l, d) {
30050
30050
  if (l)
30051
30051
  for (var p = d ? [l, d] : l, y = 0, x = p.length; y < x; y++)
30052
30052
  this.extend(p[y]);
30053
30053
  }
30054
- ue.prototype = {
30054
+ de.prototype = {
30055
30055
  // @method extend(point: Point): this
30056
30056
  // Extends the bounds to contain the given point.
30057
30057
  // @alternative
@@ -30062,15 +30062,15 @@ function cj() {
30062
30062
  if (!l)
30063
30063
  return this;
30064
30064
  if (l instanceof J || typeof l[0] == "number" || "x" in l)
30065
- d = p = he(l);
30066
- else if (l = ae(l), d = l.min, p = l.max, !d || !p)
30065
+ d = p = fe(l);
30066
+ else if (l = le(l), d = l.min, p = l.max, !d || !p)
30067
30067
  return this;
30068
30068
  return !this.min && !this.max ? (this.min = d.clone(), this.max = p.clone()) : (this.min.x = Math.min(d.x, this.min.x), this.max.x = Math.max(p.x, this.max.x), this.min.y = Math.min(d.y, this.min.y), this.max.y = Math.max(p.y, this.max.y)), this;
30069
30069
  },
30070
30070
  // @method getCenter(round?: Boolean): Point
30071
30071
  // Returns the center point of the bounds.
30072
30072
  getCenter: function(l) {
30073
- return he(
30073
+ return fe(
30074
30074
  (this.min.x + this.max.x) / 2,
30075
30075
  (this.min.y + this.max.y) / 2,
30076
30076
  l
@@ -30079,12 +30079,12 @@ function cj() {
30079
30079
  // @method getBottomLeft(): Point
30080
30080
  // Returns the bottom-left point of the bounds.
30081
30081
  getBottomLeft: function() {
30082
- return he(this.min.x, this.max.y);
30082
+ return fe(this.min.x, this.max.y);
30083
30083
  },
30084
30084
  // @method getTopRight(): Point
30085
30085
  // Returns the top-right point of the bounds.
30086
30086
  getTopRight: function() {
30087
- return he(this.max.x, this.min.y);
30087
+ return fe(this.max.x, this.min.y);
30088
30088
  },
30089
30089
  // @method getTopLeft(): Point
30090
30090
  // Returns the top-left point of the bounds (i.e. [`this.min`](#bounds-min)).
@@ -30108,13 +30108,13 @@ function cj() {
30108
30108
  // Returns `true` if the rectangle contains the given point.
30109
30109
  contains: function(l) {
30110
30110
  var d, p;
30111
- return typeof l[0] == "number" || l instanceof J ? l = he(l) : l = ae(l), l instanceof ue ? (d = l.min, p = l.max) : d = p = l, d.x >= this.min.x && p.x <= this.max.x && d.y >= this.min.y && p.y <= this.max.y;
30111
+ return typeof l[0] == "number" || l instanceof J ? l = fe(l) : l = le(l), l instanceof de ? (d = l.min, p = l.max) : d = p = l, d.x >= this.min.x && p.x <= this.max.x && d.y >= this.min.y && p.y <= this.max.y;
30112
30112
  },
30113
30113
  // @method intersects(otherBounds: Bounds): Boolean
30114
30114
  // Returns `true` if the rectangle intersects the given bounds. Two bounds
30115
30115
  // intersect if they have at least one point in common.
30116
30116
  intersects: function(l) {
30117
- l = ae(l);
30117
+ l = le(l);
30118
30118
  var d = this.min, p = this.max, y = l.min, x = l.max, M = x.x >= d.x && y.x <= p.x, E = x.y >= d.y && y.y <= p.y;
30119
30119
  return M && E;
30120
30120
  },
@@ -30122,7 +30122,7 @@ function cj() {
30122
30122
  // Returns `true` if the rectangle overlaps the given bounds. Two bounds
30123
30123
  // overlap if their intersection is an area.
30124
30124
  overlaps: function(l) {
30125
- l = ae(l);
30125
+ l = le(l);
30126
30126
  var d = this.min, p = this.max, y = l.min, x = l.max, M = x.x > d.x && y.x < p.x, E = x.y > d.y && y.y < p.y;
30127
30127
  return M && E;
30128
30128
  },
@@ -30137,19 +30137,19 @@ function cj() {
30137
30137
  // Negative values will retract the bounds.
30138
30138
  pad: function(l) {
30139
30139
  var d = this.min, p = this.max, y = Math.abs(d.x - p.x) * l, x = Math.abs(d.y - p.y) * l;
30140
- return ae(
30141
- he(d.x - y, d.y - x),
30142
- he(p.x + y, p.y + x)
30140
+ return le(
30141
+ fe(d.x - y, d.y - x),
30142
+ fe(p.x + y, p.y + x)
30143
30143
  );
30144
30144
  },
30145
30145
  // @method equals(otherBounds: Bounds): Boolean
30146
30146
  // Returns `true` if the rectangle is equivalent to the given bounds.
30147
30147
  equals: function(l) {
30148
- return l ? (l = ae(l), this.min.equals(l.getTopLeft()) && this.max.equals(l.getBottomRight())) : !1;
30148
+ return l ? (l = le(l), this.min.equals(l.getTopLeft()) && this.max.equals(l.getBottomRight())) : !1;
30149
30149
  }
30150
30150
  };
30151
- function ae(l, d) {
30152
- return !l || l instanceof ue ? l : new ue(l, d);
30151
+ function le(l, d) {
30152
+ return !l || l instanceof de ? l : new de(l, d);
30153
30153
  }
30154
30154
  function ee(l, d) {
30155
30155
  if (l)
@@ -30369,7 +30369,7 @@ function cj() {
30369
30369
  if (this.infinite)
30370
30370
  return null;
30371
30371
  var d = this.projection.bounds, p = this.scale(l), y = this.transformation.transform(d.min, p), x = this.transformation.transform(d.max, p);
30372
- return new ue(y, x);
30372
+ return new de(y, x);
30373
30373
  },
30374
30374
  // @method distance(latlng1: LatLng, latlng2: LatLng): Number
30375
30375
  // Returns the distance between two geographical coordinates.
@@ -30436,7 +30436,7 @@ function cj() {
30436
30436
  },
30437
30437
  bounds: function() {
30438
30438
  var l = Mt * Math.PI;
30439
- return new ue([-l, -l], [l, l]);
30439
+ return new de([-l, -l], [l, l]);
30440
30440
  }()
30441
30441
  };
30442
30442
  function It(l, d, p, y) {
@@ -30492,7 +30492,7 @@ function cj() {
30492
30492
  }
30493
30493
  return p || "M0 0";
30494
30494
  }
30495
- var tn = document.documentElement.style, un = "ActiveXObject" in window, hn = un && !document.addEventListener, Ii = "msLaunchUri" in navigator && !("documentMode" in document), nn = ve("webkit"), Wn = ve("android"), Yt = ve("android 2") || ve("android 3"), rn = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), Et = Wn && ve("Google") && rn < 537 && !("AudioNode" in window), $t = !!window.opera, tr = !Ii && ve("chrome"), ri = ve("gecko") && !nn && !$t && !un, Lr = !tr && ve("safari"), bo = ve("phantom"), ls = "OTransition" in tn, Or = navigator.platform.indexOf("Win") === 0, Rr = un && "transition" in tn, Pn = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Yt, nt = "MozPerspective" in tn, Nr = !window.L_DISABLE_3D && (Rr || Pn || nt) && !ls && !bo, oi = typeof orientation < "u" || ve("mobile"), cl = oi && nn, Ei = oi && Pn, Li = !window.PointerEvent && window.MSPointerEvent, Zn = !!(window.PointerEvent || Li), nr = "ontouchstart" in window || !!window.TouchEvent, ul = !window.L_NO_TOUCH && (nr || Zn), D = oi && $t, A = oi && ri, z = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, Z = function() {
30495
+ var tn = document.documentElement.style, un = "ActiveXObject" in window, hn = un && !document.addEventListener, Ii = "msLaunchUri" in navigator && !("documentMode" in document), nn = ve("webkit"), Wn = ve("android"), Yt = ve("android 2") || ve("android 3"), rn = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), Et = Wn && ve("Google") && rn < 537 && !("AudioNode" in window), $t = !!window.opera, tr = !Ii && ve("chrome"), ri = ve("gecko") && !nn && !$t && !un, Lr = !tr && ve("safari"), bo = ve("phantom"), ls = "OTransition" in tn, Or = navigator.platform.indexOf("Win") === 0, Rr = un && "transition" in tn, Pn = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !Yt, nt = "MozPerspective" in tn, Nr = !window.L_DISABLE_3D && (Rr || Pn || nt) && !ls && !bo, oi = typeof orientation < "u" || ve("mobile"), cl = oi && nn, Ei = oi && Pn, Li = !window.PointerEvent && window.MSPointerEvent, Zn = !!(window.PointerEvent || Li), nr = "ontouchstart" in window || !!window.TouchEvent, ul = !window.L_NO_TOUCH && (nr || Zn), D = oi && $t, A = oi && ri, z = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, W = function() {
30496
30496
  var l = !1;
30497
30497
  try {
30498
30498
  var d = Object.defineProperty({}, "passive", {
@@ -30518,7 +30518,7 @@ function cj() {
30518
30518
  } catch {
30519
30519
  return !1;
30520
30520
  }
30521
- }(), $e = navigator.platform.indexOf("Mac") === 0, le = navigator.platform.indexOf("Linux") === 0;
30521
+ }(), $e = navigator.platform.indexOf("Mac") === 0, ce = navigator.platform.indexOf("Linux") === 0;
30522
30522
  function ve(l) {
30523
30523
  return navigator.userAgent.toLowerCase().indexOf(l) >= 0;
30524
30524
  }
@@ -30551,13 +30551,13 @@ function cj() {
30551
30551
  mobileOpera: D,
30552
30552
  mobileGecko: A,
30553
30553
  retina: z,
30554
- passiveEvents: Z,
30554
+ passiveEvents: W,
30555
30555
  canvas: te,
30556
30556
  svg: se,
30557
30557
  vml: me,
30558
30558
  inlineSvg: Le,
30559
30559
  mac: $e,
30560
- linux: le
30560
+ linux: ce
30561
30561
  }, fn = ne.msPointer ? "MSPointerDown" : "pointerdown", jt = ne.msPointer ? "MSPointerMove" : "pointermove", Oi = ne.msPointer ? "MSPointerUp" : "pointerup", Gt = ne.msPointer ? "MSPointerCancel" : "pointercancel", xo = {
30562
30562
  touchstart: fn,
30563
30563
  touchmove: jt,
@@ -30980,7 +30980,7 @@ function cj() {
30980
30980
  d && p._round(), Ht(this._el, p), this.fire("step");
30981
30981
  },
30982
30982
  _complete: function() {
30983
- B(this._animId), this._inProgress = !1, this.fire("end");
30983
+ Y(this._animId), this._inProgress = !1, this.fire("end");
30984
30984
  },
30985
30985
  _easeOut: function(l) {
30986
30986
  return 1 - Math.pow(1 - l, this._easeOutPower);
@@ -31105,7 +31105,7 @@ function cj() {
31105
31105
  },
31106
31106
  _getBoundsCenterZoom: function(l, d) {
31107
31107
  d = d || {}, l = l.getBounds ? l.getBounds() : ie(l);
31108
- var p = he(d.paddingTopLeft || d.padding || [0, 0]), y = he(d.paddingBottomRight || d.padding || [0, 0]), x = this.getBoundsZoom(l, !1, p.add(y));
31108
+ var p = fe(d.paddingTopLeft || d.padding || [0, 0]), y = fe(d.paddingBottomRight || d.padding || [0, 0]), x = this.getBoundsZoom(l, !1, p.add(y));
31109
31109
  if (x = typeof d.maxZoom == "number" ? Math.min(d.maxZoom, x) : x, x === 1 / 0)
31110
31110
  return {
31111
31111
  center: l.getCenter(),
@@ -31140,7 +31140,7 @@ function cj() {
31140
31140
  // @method panBy(offset: Point, options?: Pan options): this
31141
31141
  // Pans the map by a given number of pixels (animated).
31142
31142
  panBy: function(l, d) {
31143
- if (l = he(l).round(), d = d || {}, !l.x && !l.y)
31143
+ if (l = fe(l).round(), d = d || {}, !l.x && !l.y)
31144
31144
  return this.fire("moveend");
31145
31145
  if (d.animate !== !0 && !this.getSize().contains(l))
31146
31146
  return this._resetView(this.unproject(this.project(this.getCenter()).add(l)), this.getZoom()), this;
@@ -31164,7 +31164,7 @@ function cj() {
31164
31164
  this._stop();
31165
31165
  var y = this.project(this.getCenter()), x = this.project(l), M = this.getSize(), E = this._zoom;
31166
31166
  l = oe(l), d = d === void 0 ? E : d;
31167
- var $ = Math.max(M.x, M.y), j = $ * this.getZoomScale(E, d), G = x.distanceTo(y) || 1, fe = 1.42, De = fe * fe;
31167
+ var $ = Math.max(M.x, M.y), j = $ * this.getZoomScale(E, d), G = x.distanceTo(y) || 1, pe = 1.42, De = pe * pe;
31168
31168
  function qe(Vt) {
31169
31169
  var xu = Vt ? -1 : 1, TM = Vt ? j : $, DM = j * j - $ * $ + xu * De * De * G * G, PM = 2 * TM * De * G, mf = DM / PM, Qv = Math.sqrt(mf * mf + 1) - mf, AM = Qv < 1e-9 ? -18 : Math.log(Qv);
31170
31170
  return AM;
@@ -31180,15 +31180,15 @@ function cj() {
31180
31180
  }
31181
31181
  var Un = qe(0);
31182
31182
  function ca(Vt) {
31183
- return $ * (on(Un) / on(Un + fe * Vt));
31183
+ return $ * (on(Un) / on(Un + pe * Vt));
31184
31184
  }
31185
31185
  function kM(Vt) {
31186
- return $ * (on(Un) * bi(Un + fe * Vt) - An(Un)) / De;
31186
+ return $ * (on(Un) * bi(Un + pe * Vt) - An(Un)) / De;
31187
31187
  }
31188
31188
  function SM(Vt) {
31189
31189
  return 1 - Math.pow(1 - Vt, 1.5);
31190
31190
  }
31191
- var MM = Date.now(), Xv = (qe(1) - Un) / fe, CM = p.duration ? 1e3 * p.duration : 1e3 * Xv * 0.8;
31191
+ var MM = Date.now(), Xv = (qe(1) - Un) / pe, CM = p.duration ? 1e3 * p.duration : 1e3 * Xv * 0.8;
31192
31192
  function Jv() {
31193
31193
  var Vt = (Date.now() - MM) / CM, xu = SM(Vt) * Xv;
31194
31194
  Vt <= 1 ? (this._flyToFrame = H(Jv, this), this._move(
@@ -31237,11 +31237,11 @@ function cj() {
31237
31237
  // the map will not be panned.
31238
31238
  panInside: function(l, d) {
31239
31239
  d = d || {};
31240
- var p = he(d.paddingTopLeft || d.padding || [0, 0]), y = he(d.paddingBottomRight || d.padding || [0, 0]), x = this.project(this.getCenter()), M = this.project(l), E = this.getPixelBounds(), $ = ae([E.min.add(p), E.max.subtract(y)]), j = $.getSize();
31240
+ var p = fe(d.paddingTopLeft || d.padding || [0, 0]), y = fe(d.paddingBottomRight || d.padding || [0, 0]), x = this.project(this.getCenter()), M = this.project(l), E = this.getPixelBounds(), $ = le([E.min.add(p), E.max.subtract(y)]), j = $.getSize();
31241
31241
  if (!$.contains(M)) {
31242
31242
  this._enforcingBounds = !0;
31243
- var G = M.subtract($.getCenter()), fe = $.extend(M).getSize().subtract(j);
31244
- x.x += G.x < 0 ? -fe.x : fe.x, x.y += G.y < 0 ? -fe.y : fe.y, this.panTo(this.unproject(x), d), this._enforcingBounds = !1;
31243
+ var G = M.subtract($.getCenter()), pe = $.extend(M).getSize().subtract(j);
31244
+ x.x += G.x < 0 ? -pe.x : pe.x, x.y += G.y < 0 ? -pe.y : pe.y, this.panTo(this.unproject(x), d), this._enforcingBounds = !1;
31245
31245
  }
31246
31246
  return this;
31247
31247
  },
@@ -31356,7 +31356,7 @@ function cj() {
31356
31356
  } catch {
31357
31357
  this._container._leaflet_id = void 0, this._containerId = void 0;
31358
31358
  }
31359
- this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), Ct(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (B(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
31359
+ this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), Ct(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (Y(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
31360
31360
  var l;
31361
31361
  for (l in this._layers)
31362
31362
  this._layers[l].remove();
@@ -31406,9 +31406,9 @@ function cj() {
31406
31406
  // instead returns the minimum zoom level on which the map view fits into
31407
31407
  // the given bounds in its entirety.
31408
31408
  getBoundsZoom: function(l, d, p) {
31409
- l = ie(l), p = he(p || [0, 0]);
31410
- var y = this.getZoom() || 0, x = this.getMinZoom(), M = this.getMaxZoom(), E = l.getNorthWest(), $ = l.getSouthEast(), j = this.getSize().subtract(p), G = ae(this.project($, y), this.project(E, y)).getSize(), fe = ne.any3d ? this.options.zoomSnap : 1, De = j.x / G.x, qe = j.y / G.y, An = d ? Math.max(De, qe) : Math.min(De, qe);
31411
- return y = this.getScaleZoom(An, y), fe && (y = Math.round(y / (fe / 100)) * (fe / 100), y = d ? Math.ceil(y / fe) * fe : Math.floor(y / fe) * fe), Math.max(x, Math.min(M, y));
31409
+ l = ie(l), p = fe(p || [0, 0]);
31410
+ var y = this.getZoom() || 0, x = this.getMinZoom(), M = this.getMaxZoom(), E = l.getNorthWest(), $ = l.getSouthEast(), j = this.getSize().subtract(p), G = le(this.project($, y), this.project(E, y)).getSize(), pe = ne.any3d ? this.options.zoomSnap : 1, De = j.x / G.x, qe = j.y / G.y, An = d ? Math.max(De, qe) : Math.min(De, qe);
31411
+ return y = this.getScaleZoom(An, y), pe && (y = Math.round(y / (pe / 100)) * (pe / 100), y = d ? Math.ceil(y / pe) * pe : Math.floor(y / pe) * pe), Math.max(x, Math.min(M, y));
31412
31412
  },
31413
31413
  // @method getSize(): Point
31414
31414
  // Returns the current size of the map container (in pixels).
@@ -31423,7 +31423,7 @@ function cj() {
31423
31423
  // coordinates (sometimes useful in layer and overlay implementations).
31424
31424
  getPixelBounds: function(l, d) {
31425
31425
  var p = this._getTopLeftPoint(l, d);
31426
- return new ue(p, p.add(this.getSize()));
31426
+ return new de(p, p.add(this.getSize()));
31427
31427
  },
31428
31428
  // TODO: Check semantics - isn't the pixel origin the 0,0 coord relative to
31429
31429
  // the map pane? "left point of the map layer" can be confusing, specially
@@ -31486,13 +31486,13 @@ function cj() {
31486
31486
  // @method unproject(point: Point, zoom: Number): LatLng
31487
31487
  // Inverse of [`project`](#map-project).
31488
31488
  unproject: function(l, d) {
31489
- return d = d === void 0 ? this._zoom : d, this.options.crs.pointToLatLng(he(l), d);
31489
+ return d = d === void 0 ? this._zoom : d, this.options.crs.pointToLatLng(fe(l), d);
31490
31490
  },
31491
31491
  // @method layerPointToLatLng(point: Point): LatLng
31492
31492
  // Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
31493
31493
  // returns the corresponding geographical coordinate (for the current zoom level).
31494
31494
  layerPointToLatLng: function(l) {
31495
- var d = he(l).add(this.getPixelOrigin());
31495
+ var d = fe(l).add(this.getPixelOrigin());
31496
31496
  return this.unproject(d);
31497
31497
  },
31498
31498
  // @method latLngToLayerPoint(latlng: LatLng): Point
@@ -31530,19 +31530,19 @@ function cj() {
31530
31530
  // Given a pixel coordinate relative to the map container, returns the corresponding
31531
31531
  // pixel coordinate relative to the [origin pixel](#map-getpixelorigin).
31532
31532
  containerPointToLayerPoint: function(l) {
31533
- return he(l).subtract(this._getMapPanePos());
31533
+ return fe(l).subtract(this._getMapPanePos());
31534
31534
  },
31535
31535
  // @method layerPointToContainerPoint(point: Point): Point
31536
31536
  // Given a pixel coordinate relative to the [origin pixel](#map-getpixelorigin),
31537
31537
  // returns the corresponding pixel coordinate relative to the map container.
31538
31538
  layerPointToContainerPoint: function(l) {
31539
- return he(l).add(this._getMapPanePos());
31539
+ return fe(l).add(this._getMapPanePos());
31540
31540
  },
31541
31541
  // @method containerPointToLatLng(point: Point): LatLng
31542
31542
  // Given a pixel coordinate relative to the map container, returns
31543
31543
  // the corresponding geographical coordinate (for the current zoom level).
31544
31544
  containerPointToLatLng: function(l) {
31545
- var d = this.containerPointToLayerPoint(he(l));
31545
+ var d = this.containerPointToLayerPoint(fe(l));
31546
31546
  return this.layerPointToLatLng(d);
31547
31547
  },
31548
31548
  // @method latLngToContainerPoint(latlng: LatLng): Point
@@ -31609,7 +31609,7 @@ function cj() {
31609
31609
  return l && this.fire("zoomend"), this.fire("moveend");
31610
31610
  },
31611
31611
  _stop: function() {
31612
- return B(this._flyToFrame), this._panAnim && this._panAnim.stop(), this;
31612
+ return Y(this._flyToFrame), this._panAnim && this._panAnim.stop(), this;
31613
31613
  },
31614
31614
  _rawPanBy: function(l) {
31615
31615
  Ht(this._mapPane, this._getMapPanePos().subtract(l));
@@ -31632,7 +31632,7 @@ function cj() {
31632
31632
  d(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && d(window, "resize", this._onResize, this), ne.any3d && this.options.transform3DLimit && (l ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
31633
31633
  },
31634
31634
  _onResize: function() {
31635
- B(this._resizeRequest), this._resizeRequest = H(
31635
+ Y(this._resizeRequest), this._resizeRequest = H(
31636
31636
  function() {
31637
31637
  this.invalidateSize({ debounceMoveend: !0 });
31638
31638
  },
@@ -31735,7 +31735,7 @@ function cj() {
31735
31735
  },
31736
31736
  _latLngBoundsToNewLayerBounds: function(l, d, p) {
31737
31737
  var y = this._getNewPixelOrigin(p, d);
31738
- return ae([
31738
+ return le([
31739
31739
  this.project(l.getSouthWest(), d)._subtract(y),
31740
31740
  this.project(l.getNorthWest(), d)._subtract(y),
31741
31741
  this.project(l.getSouthEast(), d)._subtract(y),
@@ -31754,19 +31754,19 @@ function cj() {
31754
31754
  _limitCenter: function(l, d, p) {
31755
31755
  if (!p)
31756
31756
  return l;
31757
- var y = this.project(l, d), x = this.getSize().divideBy(2), M = new ue(y.subtract(x), y.add(x)), E = this._getBoundsOffset(M, p, d);
31757
+ var y = this.project(l, d), x = this.getSize().divideBy(2), M = new de(y.subtract(x), y.add(x)), E = this._getBoundsOffset(M, p, d);
31758
31758
  return Math.abs(E.x) <= 1 && Math.abs(E.y) <= 1 ? l : this.unproject(y.add(E), d);
31759
31759
  },
31760
31760
  // adjust offset for view to get inside bounds
31761
31761
  _limitOffset: function(l, d) {
31762
31762
  if (!d)
31763
31763
  return l;
31764
- var p = this.getPixelBounds(), y = new ue(p.min.add(l), p.max.add(l));
31764
+ var p = this.getPixelBounds(), y = new de(p.min.add(l), p.max.add(l));
31765
31765
  return l.add(this._getBoundsOffset(y, d));
31766
31766
  },
31767
31767
  // returns offset needed for pxBounds to get inside maxBounds at a specified zoom
31768
31768
  _getBoundsOffset: function(l, d, p) {
31769
- var y = ae(
31769
+ var y = le(
31770
31770
  this.project(d.getNorthEast(), p),
31771
31771
  this.project(d.getSouthWest(), p)
31772
31772
  ), x = y.min.subtract(l.min), M = y.max.subtract(l.max), E = this._rebound(x.x, -M.x), $ = this._rebound(x.y, -M.y);
@@ -31833,7 +31833,7 @@ function cj() {
31833
31833
  function jS(l, d) {
31834
31834
  return new Je(l, d);
31835
31835
  }
31836
- var zi = W.extend({
31836
+ var zi = B.extend({
31837
31837
  // @section
31838
31838
  // @aka Control Options
31839
31839
  options: {
@@ -32257,7 +32257,7 @@ function cj() {
32257
32257
  return new af(l);
32258
32258
  };
32259
32259
  zi.Layers = bv, zi.Zoom = sf, zi.Scale = xv, zi.Attribution = af, _l.layers = BS, _l.zoom = HS, _l.scale = VS, _l.attribution = ZS;
32260
- var rr = W.extend({
32260
+ var rr = B.extend({
32261
32261
  initialize: function(l) {
32262
32262
  this._map = l;
32263
32263
  },
@@ -32286,7 +32286,7 @@ function cj() {
32286
32286
  rr.addTo = function(l, d) {
32287
32287
  return l.addHandler(d, this), this;
32288
32288
  };
32289
- var US = { Events: pe }, wv = ne.touch ? "touchstart mousedown" : "mousedown", ko = Me.extend({
32289
+ var US = { Events: he }, wv = ne.touch ? "touchstart mousedown" : "mousedown", ko = Me.extend({
32290
32290
  options: {
32291
32291
  // @section
32292
32292
  // @aka Draggable options
@@ -32352,18 +32352,18 @@ function cj() {
32352
32352
  }
32353
32353
  });
32354
32354
  function kv(l, d, p) {
32355
- var y, x = [1, 4, 2, 8], M, E, $, j, G, fe, De, qe;
32356
- for (M = 0, fe = l.length; M < fe; M++)
32355
+ var y, x = [1, 4, 2, 8], M, E, $, j, G, pe, De, qe;
32356
+ for (M = 0, pe = l.length; M < pe; M++)
32357
32357
  l[M]._code = gs(l[M], d);
32358
32358
  for ($ = 0; $ < 4; $++) {
32359
- for (De = x[$], y = [], M = 0, fe = l.length, E = fe - 1; M < fe; E = M++)
32359
+ for (De = x[$], y = [], M = 0, pe = l.length, E = pe - 1; M < pe; E = M++)
32360
32360
  j = l[M], G = l[E], j._code & De ? G._code & De || (qe = uu(G, j, De, d, p), qe._code = gs(qe, d), y.push(qe)) : (G._code & De && (qe = uu(G, j, De, d, p), qe._code = gs(qe, d), y.push(qe)), y.push(j));
32361
32361
  l = y;
32362
32362
  }
32363
32363
  return l;
32364
32364
  }
32365
32365
  function Sv(l, d) {
32366
- var p, y, x, M, E, $, j, G, fe;
32366
+ var p, y, x, M, E, $, j, G, pe;
32367
32367
  if (!l || l.length === 0)
32368
32368
  throw new Error("latlngs not passed");
32369
32369
  _i(l) || (console.warn("latlngs are not flat! Only the first ring will be used"), l = l[0]);
@@ -32376,8 +32376,8 @@ function cj() {
32376
32376
  }
32377
32377
  for ($ = j = G = 0, p = 0, y = on - 1; p < on; y = p++)
32378
32378
  x = bi[p], M = bi[y], E = x.y * M.x - M.y * x.x, j += (x.x + M.x) * E, G += (x.y + M.y) * E, $ += E * 3;
32379
- $ === 0 ? fe = bi[0] : fe = [j / $, G / $];
32380
- var ca = d.unproject(he(fe));
32379
+ $ === 0 ? pe = bi[0] : pe = [j / $, G / $];
32380
+ var ca = d.unproject(fe(pe));
32381
32381
  return oe([ca.lat + De.lat, ca.lng + De.lng]);
32382
32382
  }
32383
32383
  function lf(l) {
@@ -32436,8 +32436,8 @@ function cj() {
32436
32436
  }
32437
32437
  }
32438
32438
  function uu(l, d, p, y, x) {
32439
- var M = d.x - l.x, E = d.y - l.y, $ = y.min, j = y.max, G, fe;
32440
- return p & 8 ? (G = l.x + M * (j.y - l.y) / E, fe = j.y) : p & 4 ? (G = l.x + M * ($.y - l.y) / E, fe = $.y) : p & 2 ? (G = j.x, fe = l.y + E * (j.x - l.x) / M) : p & 1 && (G = $.x, fe = l.y + E * ($.x - l.x) / M), new J(G, fe, x);
32439
+ var M = d.x - l.x, E = d.y - l.y, $ = y.min, j = y.max, G, pe;
32440
+ return p & 8 ? (G = l.x + M * (j.y - l.y) / E, pe = j.y) : p & 4 ? (G = l.x + M * ($.y - l.y) / E, pe = $.y) : p & 2 ? (G = j.x, pe = l.y + E * (j.x - l.x) / M) : p & 1 && (G = $.x, pe = l.y + E * ($.x - l.x) / M), new J(G, pe, x);
32441
32441
  }
32442
32442
  function gs(l, d) {
32443
32443
  var p = 0;
@@ -32462,12 +32462,12 @@ function cj() {
32462
32462
  if (!l || l.length === 0)
32463
32463
  throw new Error("latlngs not passed");
32464
32464
  _i(l) || (console.warn("latlngs are not flat! Only the first ring will be used"), l = l[0]);
32465
- var fe = oe([0, 0]), De = ie(l), qe = De.getNorthWest().distanceTo(De.getSouthWest()) * De.getNorthEast().distanceTo(De.getNorthWest());
32466
- qe < 1700 && (fe = lf(l));
32465
+ var pe = oe([0, 0]), De = ie(l), qe = De.getNorthWest().distanceTo(De.getSouthWest()) * De.getNorthEast().distanceTo(De.getNorthWest());
32466
+ qe < 1700 && (pe = lf(l));
32467
32467
  var An = l.length, on = [];
32468
32468
  for (p = 0; p < An; p++) {
32469
32469
  var bi = oe(l[p]);
32470
- on.push(d.project(oe([bi.lat - fe.lat, bi.lng - fe.lng])));
32470
+ on.push(d.project(oe([bi.lat - pe.lat, bi.lng - pe.lng])));
32471
32471
  }
32472
32472
  for (p = 0, y = 0; p < An - 1; p++)
32473
32473
  y += on[p].distanceTo(on[p + 1]) / 2;
@@ -32482,8 +32482,8 @@ function cj() {
32482
32482
  ];
32483
32483
  break;
32484
32484
  }
32485
- var Un = d.unproject(he(G));
32486
- return oe([Un.lat + fe.lat, Un.lng + fe.lng]);
32485
+ var Un = d.unproject(fe(G));
32486
+ return oe([Un.lat + pe.lat, Un.lng + pe.lng]);
32487
32487
  }
32488
32488
  var JS = {
32489
32489
  __proto__: null,
@@ -32504,11 +32504,11 @@ function cj() {
32504
32504
  unproject: function(l) {
32505
32505
  return new K(l.y, l.x);
32506
32506
  },
32507
- bounds: new ue([-180, -90], [180, 90])
32507
+ bounds: new de([-180, -90], [180, 90])
32508
32508
  }, df = {
32509
32509
  R: 6378137,
32510
32510
  R_MINOR: 6356752314245179e-9,
32511
- bounds: new ue([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
32511
+ bounds: new de([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
32512
32512
  project: function(l) {
32513
32513
  var d = Math.PI / 180, p = this.R, y = l.lat * d, x = this.R_MINOR / p, M = Math.sqrt(1 - x * x), E = M * Math.sin(y), $ = Math.tan(Math.PI / 4 - y / 2) / Math.pow((1 - E) / (1 + E), M / 2);
32514
32514
  return y = -p * Math.log(Math.max($, 1e-10)), new J(l.lng * d * p, y);
@@ -32789,7 +32789,7 @@ function cj() {
32789
32789
  }
32790
32790
  }), iM = function(l, d) {
32791
32791
  return new Fr(l, d);
32792
- }, oa = W.extend({
32792
+ }, oa = B.extend({
32793
32793
  /* @section
32794
32794
  * @aka Icon options
32795
32795
  *
@@ -32865,7 +32865,7 @@ function cj() {
32865
32865
  _setIconStyles: function(l, d) {
32866
32866
  var p = this.options, y = p[d + "Size"];
32867
32867
  typeof y == "number" && (y = [y, y]);
32868
- var x = he(y), M = he(d === "shadow" && p.shadowAnchor || p.iconAnchor || x && x.divideBy(2, !0));
32868
+ var x = fe(y), M = fe(d === "shadow" && p.shadowAnchor || p.iconAnchor || x && x.divideBy(2, !0));
32869
32869
  l.className = "leaflet-marker-" + d + " " + (p.className || ""), M && (l.style.marginLeft = -M.x + "px", l.style.marginTop = -M.y + "px"), x && (l.style.width = x.x + "px", l.style.height = x.y + "px");
32870
32870
  },
32871
32871
  _createImg: function(l, d) {
@@ -32931,12 +32931,12 @@ function cj() {
32931
32931
  return this._draggable && this._draggable._moved;
32932
32932
  },
32933
32933
  _adjustPan: function(l) {
32934
- var d = this._marker, p = d._map, y = this._marker.options.autoPanSpeed, x = this._marker.options.autoPanPadding, M = hs(d._icon), E = p.getPixelBounds(), $ = p.getPixelOrigin(), j = ae(
32934
+ var d = this._marker, p = d._map, y = this._marker.options.autoPanSpeed, x = this._marker.options.autoPanPadding, M = hs(d._icon), E = p.getPixelBounds(), $ = p.getPixelOrigin(), j = le(
32935
32935
  E.min._subtract($).add(x),
32936
32936
  E.max._subtract($).subtract(x)
32937
32937
  );
32938
32938
  if (!j.contains(M)) {
32939
- var G = he(
32939
+ var G = fe(
32940
32940
  (Math.max(j.max.x, M.x) - j.max.x) / (E.max.x - j.max.x) - (Math.min(j.min.x, M.x) - j.min.x) / (E.min.x - j.min.x),
32941
32941
  (Math.max(j.max.y, M.y) - j.max.y) / (E.max.y - j.max.y) - (Math.min(j.min.y, M.y) - j.min.y) / (E.min.y - j.min.y)
32942
32942
  ).multiplyBy(y);
@@ -32947,14 +32947,14 @@ function cj() {
32947
32947
  this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup && this._marker.closePopup(), this._marker.fire("movestart").fire("dragstart");
32948
32948
  },
32949
32949
  _onPreDrag: function(l) {
32950
- this._marker.options.autoPan && (B(this._panRequest), this._panRequest = H(this._adjustPan.bind(this, l)));
32950
+ this._marker.options.autoPan && (Y(this._panRequest), this._panRequest = H(this._adjustPan.bind(this, l)));
32951
32951
  },
32952
32952
  _onDrag: function(l) {
32953
32953
  var d = this._marker, p = d._shadow, y = hs(d._icon), x = d._map.layerPointToLatLng(y);
32954
32954
  p && Ht(p, y), d._latlng = x, l.latlng = x, l.oldLatLng = this._oldLatLng, d.fire("move", l).fire("drag", l);
32955
32955
  },
32956
32956
  _onDragEnd: function(l) {
32957
- B(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", l);
32957
+ Y(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", l);
32958
32958
  }
32959
32959
  }), du = Fi.extend({
32960
32960
  // @section
@@ -33127,7 +33127,7 @@ function cj() {
33127
33127
  _panOnFocus: function() {
33128
33128
  var l = this._map;
33129
33129
  if (l) {
33130
- var d = this.options.icon.options, p = d.iconSize ? he(d.iconSize) : he(0, 0), y = d.iconAnchor ? he(d.iconAnchor) : he(0, 0);
33130
+ var d = this.options.icon.options, p = d.iconSize ? fe(d.iconSize) : fe(0, 0), y = d.iconAnchor ? fe(d.iconAnchor) : fe(0, 0);
33131
33131
  l.panInside(this._latlng, {
33132
33132
  paddingTopLeft: y,
33133
33133
  paddingBottomRight: p.subtract(y)
@@ -33272,7 +33272,7 @@ function cj() {
33272
33272
  },
33273
33273
  _updateBounds: function() {
33274
33274
  var l = this._radius, d = this._radiusY || l, p = this._clickTolerance(), y = [l + p, d + p];
33275
- this._pxBounds = new ue(this._point.subtract(y), this._point.add(y));
33275
+ this._pxBounds = new de(this._point.subtract(y), this._point.add(y));
33276
33276
  },
33277
33277
  _update: function() {
33278
33278
  this._map && this._updatePath();
@@ -33320,8 +33320,8 @@ function cj() {
33320
33320
  _project: function() {
33321
33321
  var l = this._latlng.lng, d = this._latlng.lat, p = this._map, y = p.options.crs;
33322
33322
  if (y.distance === Ye.distance) {
33323
- var x = Math.PI / 180, M = this._mRadius / Ye.R / x, E = p.project([d + M, l]), $ = p.project([d - M, l]), j = E.add($).divideBy(2), G = p.unproject(j).lat, fe = Math.acos((Math.cos(M * x) - Math.sin(d * x) * Math.sin(G * x)) / (Math.cos(d * x) * Math.cos(G * x))) / x;
33324
- (isNaN(fe) || fe === 0) && (fe = M / Math.cos(Math.PI / 180 * d)), this._point = j.subtract(p.getPixelOrigin()), this._radius = isNaN(fe) ? 0 : j.x - p.project([G, l - fe]).x, this._radiusY = j.y - E.y;
33323
+ var x = Math.PI / 180, M = this._mRadius / Ye.R / x, E = p.project([d + M, l]), $ = p.project([d - M, l]), j = E.add($).divideBy(2), G = p.unproject(j).lat, pe = Math.acos((Math.cos(M * x) - Math.sin(d * x) * Math.sin(G * x)) / (Math.cos(d * x) * Math.cos(G * x))) / x;
33324
+ (isNaN(pe) || pe === 0) && (pe = M / Math.cos(Math.PI / 180 * d)), this._point = j.subtract(p.getPixelOrigin()), this._radius = isNaN(pe) ? 0 : j.x - p.project([G, l - pe]).x, this._radiusY = j.y - E.y;
33325
33325
  } else {
33326
33326
  var De = y.unproject(y.project(this._latlng).subtract([this._mRadius, 0]));
33327
33327
  this._point = p.latLngToLayerPoint(this._latlng), this._radius = this._point.x - p.latLngToLayerPoint(De).x;
@@ -33366,7 +33366,7 @@ function cj() {
33366
33366
  // Returns the point closest to `p` on the Polyline.
33367
33367
  closestLayerPoint: function(l) {
33368
33368
  for (var d = 1 / 0, p = null, y = bl, x, M, E = 0, $ = this._parts.length; E < $; E++)
33369
- for (var j = this._parts[E], G = 1, fe = j.length; G < fe; G++) {
33369
+ for (var j = this._parts[E], G = 1, pe = j.length; G < pe; G++) {
33370
33370
  x = j[G - 1], M = j[G];
33371
33371
  var De = y(l, x, M, !0);
33372
33372
  De < d && (d = De, p = y(l, x, M));
@@ -33405,12 +33405,12 @@ function cj() {
33405
33405
  return d;
33406
33406
  },
33407
33407
  _project: function() {
33408
- var l = new ue();
33408
+ var l = new de();
33409
33409
  this._rings = [], this._projectLatlngs(this._latlngs, this._rings, l), this._bounds.isValid() && l.isValid() && (this._rawPxBounds = l, this._updateBounds());
33410
33410
  },
33411
33411
  _updateBounds: function() {
33412
33412
  var l = this._clickTolerance(), d = new J(l, l);
33413
- this._rawPxBounds && (this._pxBounds = new ue([
33413
+ this._rawPxBounds && (this._pxBounds = new de([
33414
33414
  this._rawPxBounds.min.subtract(d),
33415
33415
  this._rawPxBounds.max.add(d)
33416
33416
  ]));
@@ -33493,7 +33493,7 @@ function cj() {
33493
33493
  },
33494
33494
  _clipPoints: function() {
33495
33495
  var l = this._renderer._bounds, d = this.options.weight, p = new J(d, d);
33496
- if (l = new ue(l.min.subtract(p), l.max.add(p)), this._parts = [], !(!this._pxBounds || !this._pxBounds.intersects(l))) {
33496
+ if (l = new de(l.min.subtract(p), l.max.add(p)), this._parts = [], !(!this._pxBounds || !this._pxBounds.intersects(l))) {
33497
33497
  if (this.options.noClip) {
33498
33498
  this._parts = this._rings;
33499
33499
  return;
@@ -33605,14 +33605,14 @@ function cj() {
33605
33605
  }
33606
33606
  });
33607
33607
  function fu(l, d) {
33608
- var p = l.type === "Feature" ? l.geometry : l, y = p ? p.coordinates : null, x = [], M = d && d.pointToLayer, E = d && d.coordsToLatLng || ff, $, j, G, fe;
33608
+ var p = l.type === "Feature" ? l.geometry : l, y = p ? p.coordinates : null, x = [], M = d && d.pointToLayer, E = d && d.coordsToLatLng || ff, $, j, G, pe;
33609
33609
  if (!y && !p)
33610
33610
  return null;
33611
33611
  switch (p.type) {
33612
33612
  case "Point":
33613
33613
  return $ = E(y), Lv(M, l, $, d);
33614
33614
  case "MultiPoint":
33615
- for (G = 0, fe = y.length; G < fe; G++)
33615
+ for (G = 0, pe = y.length; G < pe; G++)
33616
33616
  $ = E(y[G]), x.push(Lv(M, l, $, d));
33617
33617
  return new Fr(x);
33618
33618
  case "LineString":
@@ -33622,7 +33622,7 @@ function cj() {
33622
33622
  case "MultiPolygon":
33623
33623
  return j = pu(y, p.type === "Polygon" ? 1 : 2, E), new sa(j, d);
33624
33624
  case "GeometryCollection":
33625
- for (G = 0, fe = p.geometries.length; G < fe; G++) {
33625
+ for (G = 0, pe = p.geometries.length; G < pe; G++) {
33626
33626
  var De = fu({
33627
33627
  geometry: p.geometries[G],
33628
33628
  type: "Feature",
@@ -33632,7 +33632,7 @@ function cj() {
33632
33632
  }
33633
33633
  return new Fr(x);
33634
33634
  case "FeatureCollection":
33635
- for (G = 0, fe = p.features.length; G < fe; G++) {
33635
+ for (G = 0, pe = p.features.length; G < pe; G++) {
33636
33636
  var qe = fu(p.features[G], d);
33637
33637
  qe && x.push(qe);
33638
33638
  }
@@ -33835,7 +33835,7 @@ function cj() {
33835
33835
  ds(this._image, p, d);
33836
33836
  },
33837
33837
  _reset: function() {
33838
- var l = this._image, d = new ue(
33838
+ var l = this._image, d = new de(
33839
33839
  this._map.latLngToLayerPoint(this._bounds.getNorthWest()),
33840
33840
  this._map.latLngToLayerPoint(this._bounds.getSouthEast())
33841
33841
  ), p = d.getSize();
@@ -34061,7 +34061,7 @@ function cj() {
34061
34061
  },
34062
34062
  _updatePosition: function() {
34063
34063
  if (this._map) {
34064
- var l = this._map.latLngToLayerPoint(this._latlng), d = he(this.options.offset), p = this._getAnchor();
34064
+ var l = this._map.latLngToLayerPoint(this._latlng), d = fe(this.options.offset), p = this._getAnchor();
34065
34065
  this._zoomAnimated ? Ht(this._container, l.add(p)) : d = d.add(l).add(p);
34066
34066
  var y = this._containerBottom = -d.y, x = this._containerLeft = -Math.round(this._containerWidth / 2) + d.x;
34067
34067
  this._container.style.bottom = y + "px", this._container.style.left = x + "px";
@@ -34190,12 +34190,12 @@ function cj() {
34190
34190
  }
34191
34191
  var l = this._map, d = parseInt(pl(this._container, "marginBottom"), 10) || 0, p = this._container.offsetHeight + d, y = this._containerWidth, x = new J(this._containerLeft, -p - this._containerBottom);
34192
34192
  x._add(hs(this._container));
34193
- var M = l.layerPointToContainerPoint(x), E = he(this.options.autoPanPadding), $ = he(this.options.autoPanPaddingTopLeft || E), j = he(this.options.autoPanPaddingBottomRight || E), G = l.getSize(), fe = 0, De = 0;
34194
- M.x + y + j.x > G.x && (fe = M.x + y - G.x + j.x), M.x - fe - $.x < 0 && (fe = M.x - $.x), M.y + p + j.y > G.y && (De = M.y + p - G.y + j.y), M.y - De - $.y < 0 && (De = M.y - $.y), (fe || De) && (this.options.keepInView && (this._autopanning = !0), l.fire("autopanstart").panBy([fe, De]));
34193
+ var M = l.layerPointToContainerPoint(x), E = fe(this.options.autoPanPadding), $ = fe(this.options.autoPanPaddingTopLeft || E), j = fe(this.options.autoPanPaddingBottomRight || E), G = l.getSize(), pe = 0, De = 0;
34194
+ M.x + y + j.x > G.x && (pe = M.x + y - G.x + j.x), M.x - pe - $.x < 0 && (pe = M.x - $.x), M.y + p + j.y > G.y && (De = M.y + p - G.y + j.y), M.y - De - $.y < 0 && (De = M.y - $.y), (pe || De) && (this.options.keepInView && (this._autopanning = !0), l.fire("autopanstart").panBy([pe, De]));
34195
34195
  }
34196
34196
  },
34197
34197
  _getAnchor: function() {
34198
- return he(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
34198
+ return fe(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
34199
34199
  }
34200
34200
  }), pM = function(l, d) {
34201
34201
  return new yu(l, d);
@@ -34332,8 +34332,8 @@ function cj() {
34332
34332
  _adjustPan: function() {
34333
34333
  },
34334
34334
  _setPosition: function(l) {
34335
- var d, p, y = this._map, x = this._container, M = y.latLngToContainerPoint(y.getCenter()), E = y.layerPointToContainerPoint(l), $ = this.options.direction, j = x.offsetWidth, G = x.offsetHeight, fe = he(this.options.offset), De = this._getAnchor();
34336
- $ === "top" ? (d = j / 2, p = G) : $ === "bottom" ? (d = j / 2, p = 0) : $ === "center" ? (d = j / 2, p = G / 2) : $ === "right" ? (d = 0, p = G / 2) : $ === "left" ? (d = j, p = G / 2) : E.x < M.x ? ($ = "right", d = 0, p = G / 2) : ($ = "left", d = j + (fe.x + De.x) * 2, p = G / 2), l = l.subtract(he(d, p, !0)).add(fe).add(De), Nt(x, "leaflet-tooltip-right"), Nt(x, "leaflet-tooltip-left"), Nt(x, "leaflet-tooltip-top"), Nt(x, "leaflet-tooltip-bottom"), Ve(x, "leaflet-tooltip-" + $), Ht(x, l);
34335
+ var d, p, y = this._map, x = this._container, M = y.latLngToContainerPoint(y.getCenter()), E = y.layerPointToContainerPoint(l), $ = this.options.direction, j = x.offsetWidth, G = x.offsetHeight, pe = fe(this.options.offset), De = this._getAnchor();
34336
+ $ === "top" ? (d = j / 2, p = G) : $ === "bottom" ? (d = j / 2, p = 0) : $ === "center" ? (d = j / 2, p = G / 2) : $ === "right" ? (d = 0, p = G / 2) : $ === "left" ? (d = j, p = G / 2) : E.x < M.x ? ($ = "right", d = 0, p = G / 2) : ($ = "left", d = j + (pe.x + De.x) * 2, p = G / 2), l = l.subtract(fe(d, p, !0)).add(pe).add(De), Nt(x, "leaflet-tooltip-right"), Nt(x, "leaflet-tooltip-left"), Nt(x, "leaflet-tooltip-top"), Nt(x, "leaflet-tooltip-bottom"), Ve(x, "leaflet-tooltip-" + $), Ht(x, l);
34337
34337
  },
34338
34338
  _updatePosition: function() {
34339
34339
  var l = this._map.latLngToLayerPoint(this._latlng);
@@ -34347,7 +34347,7 @@ function cj() {
34347
34347
  this._setPosition(d);
34348
34348
  },
34349
34349
  _getAnchor: function() {
34350
- return he(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
34350
+ return fe(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
34351
34351
  }
34352
34352
  }), gM = function(l, d) {
34353
34353
  return new _u(l, d);
@@ -34470,7 +34470,7 @@ function cj() {
34470
34470
  createIcon: function(l) {
34471
34471
  var d = l && l.tagName === "DIV" ? l : document.createElement("div"), p = this.options;
34472
34472
  if (p.html instanceof Element ? (ou(d), d.appendChild(p.html)) : d.innerHTML = p.html !== !1 ? p.html : "", p.bgPos) {
34473
- var y = he(p.bgPos);
34473
+ var y = fe(p.bgPos);
34474
34474
  d.style.backgroundPosition = -y.x + "px " + -y.y + "px";
34475
34475
  }
34476
34476
  return this._setIconStyles(d, "icon"), d;
@@ -34640,7 +34640,7 @@ function cj() {
34640
34640
  yi(x.el, M), M < 1 ? d = !0 : (x.active ? p = !0 : this._onOpaqueTile(x), x.active = !0);
34641
34641
  }
34642
34642
  }
34643
- p && !this._noPrune && this._pruneTiles(), d && (B(this._fadeFrame), this._fadeFrame = H(this._updateOpacity, this));
34643
+ p && !this._noPrune && this._pruneTiles(), d && (Y(this._fadeFrame), this._fadeFrame = H(this._updateOpacity, this));
34644
34644
  }
34645
34645
  },
34646
34646
  _onOpaqueTile: f,
@@ -34749,7 +34749,7 @@ function cj() {
34749
34749
  },
34750
34750
  _getTiledPixelBounds: function(l) {
34751
34751
  var d = this._map, p = d._animatingZoom ? Math.max(d._animateToZoom, d.getZoom()) : d.getZoom(), y = d.getZoomScale(p, this._tileZoom), x = d.project(l, this._tileZoom).floor(), M = d.getSize().divideBy(y * 2);
34752
- return new ue(x.subtract(M), x.add(M));
34752
+ return new de(x.subtract(M), x.add(M));
34753
34753
  },
34754
34754
  // Private method to load tiles in the grid's active zoom level according to map bounds
34755
34755
  _update: function(l) {
@@ -34757,15 +34757,15 @@ function cj() {
34757
34757
  if (d) {
34758
34758
  var p = this._clampZoom(d.getZoom());
34759
34759
  if (l === void 0 && (l = d.getCenter()), this._tileZoom !== void 0) {
34760
- var y = this._getTiledPixelBounds(l), x = this._pxBoundsToTileRange(y), M = x.getCenter(), E = [], $ = this.options.keepBuffer, j = new ue(
34760
+ var y = this._getTiledPixelBounds(l), x = this._pxBoundsToTileRange(y), M = x.getCenter(), E = [], $ = this.options.keepBuffer, j = new de(
34761
34761
  x.getBottomLeft().subtract([$, -$]),
34762
34762
  x.getTopRight().add([$, -$])
34763
34763
  );
34764
34764
  if (!(isFinite(x.min.x) && isFinite(x.min.y) && isFinite(x.max.x) && isFinite(x.max.y)))
34765
34765
  throw new Error("Attempted to load an infinite number of tiles");
34766
34766
  for (var G in this._tiles) {
34767
- var fe = this._tiles[G].coords;
34768
- (fe.z !== this._tileZoom || !j.contains(new J(fe.x, fe.y))) && (this._tiles[G].current = !1);
34767
+ var pe = this._tiles[G].coords;
34768
+ (pe.z !== this._tileZoom || !j.contains(new J(pe.x, pe.y))) && (this._tiles[G].current = !1);
34769
34769
  }
34770
34770
  if (Math.abs(p - this._tileZoom) > 1) {
34771
34771
  this._setView(l, p);
@@ -34854,7 +34854,7 @@ function cj() {
34854
34854
  coords: l
34855
34855
  });
34856
34856
  var y = this._tileCoordsToKey(l);
34857
- p = this._tiles[y], p && (p.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (yi(p.el, 0), B(this._fadeFrame), this._fadeFrame = H(this._updateOpacity, this)) : (p.active = !0, this._pruneTiles()), d || (Ve(p.el, "leaflet-tile-loaded"), this.fire("tileload", {
34857
+ p = this._tiles[y], p && (p.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (yi(p.el, 0), Y(this._fadeFrame), this._fadeFrame = H(this._updateOpacity, this)) : (p.active = !0, this._pruneTiles()), d || (Ve(p.el, "leaflet-tile-loaded"), this.fire("tileload", {
34858
34858
  tile: p.el,
34859
34859
  coords: l
34860
34860
  })), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), ne.ielt9 || !this._map._fadeAnimated ? H(this._pruneTiles, this) : setTimeout(s(this._pruneTiles, this), 250)));
@@ -34871,7 +34871,7 @@ function cj() {
34871
34871
  },
34872
34872
  _pxBoundsToTileRange: function(l) {
34873
34873
  var d = this.getTileSize();
34874
- return new ue(
34874
+ return new de(
34875
34875
  l.min.unscaleBy(d).floor(),
34876
34876
  l.max.unscaleBy(d).ceil().subtract([1, 1])
34877
34877
  );
@@ -35058,7 +35058,7 @@ function cj() {
35058
35058
  this.wmsParams[d] = this._crs.code, la.prototype.onAdd.call(this, l);
35059
35059
  },
35060
35060
  getTileUrl: function(l) {
35061
- var d = this._tileCoordsToNwSe(l), p = this._crs, y = ae(p.project(d[0]), p.project(d[1])), x = y.min, M = y.max, E = (this._wmsVersion >= 1.3 && this._crs === Iv ? [x.y, x.x, M.y, M.x] : [x.x, x.y, M.x, M.y]).join(","), $ = la.prototype.getTileUrl.call(this, l);
35061
+ var d = this._tileCoordsToNwSe(l), p = this._crs, y = le(p.project(d[0]), p.project(d[1])), x = y.min, M = y.max, E = (this._wmsVersion >= 1.3 && this._crs === Iv ? [x.y, x.x, M.y, M.x] : [x.x, x.y, M.x, M.y]).join(","), $ = la.prototype.getTileUrl.call(this, l);
35062
35062
  return $ + w(this.wmsParams, $, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + E;
35063
35063
  },
35064
35064
  // @method setParams(params: Object, noRedraw?: Boolean): this
@@ -35123,7 +35123,7 @@ function cj() {
35123
35123
  },
35124
35124
  _update: function() {
35125
35125
  var l = this.options.padding, d = this._map.getSize(), p = this._map.containerPointToLayerPoint(d.multiplyBy(-l)).round();
35126
- this._bounds = new ue(p, p.add(d.multiplyBy(1 + l * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
35126
+ this._bounds = new de(p, p.add(d.multiplyBy(1 + l * 2)).round()), this._center = this._map.getCenter(), this._zoom = this._map.getZoom();
35127
35127
  }
35128
35128
  }), jv = Br.extend({
35129
35129
  // @section
@@ -35148,7 +35148,7 @@ function cj() {
35148
35148
  je(l, "mousemove", this._onMouseMove, this), je(l, "click dblclick mousedown mouseup contextmenu", this._onClick, this), je(l, "mouseout", this._handleMouseOut, this), l._leaflet_disable_events = !0, this._ctx = l.getContext("2d");
35149
35149
  },
35150
35150
  _destroyContainer: function() {
35151
- B(this._redrawRequest), delete this._ctx, Ct(this._container), gt(this._container), delete this._container;
35151
+ Y(this._redrawRequest), delete this._ctx, Ct(this._container), gt(this._container), delete this._container;
35152
35152
  },
35153
35153
  _updatePaths: function() {
35154
35154
  if (!this._postponeUpdatePaths) {
@@ -35209,7 +35209,7 @@ function cj() {
35209
35209
  _extendRedrawBounds: function(l) {
35210
35210
  if (l._pxBounds) {
35211
35211
  var d = (l.options.weight || 0) + 1;
35212
- this._redrawBounds = this._redrawBounds || new ue(), this._redrawBounds.extend(l._pxBounds.min.subtract([d, d])), this._redrawBounds.extend(l._pxBounds.max.add([d, d]));
35212
+ this._redrawBounds = this._redrawBounds || new de(), this._redrawBounds.extend(l._pxBounds.min.subtract([d, d])), this._redrawBounds.extend(l._pxBounds.max.add([d, d]));
35213
35213
  }
35214
35214
  },
35215
35215
  _redraw: function() {
@@ -35492,7 +35492,7 @@ function cj() {
35492
35492
  },
35493
35493
  _onMouseMove: function(l) {
35494
35494
  this._moved || (this._moved = !0, this._box = it("div", "leaflet-zoom-box", this._container), Ve(this._container, "leaflet-crosshair"), this._map.fire("boxzoomstart")), this._point = this._map.mouseEventToContainerPoint(l);
35495
- var d = new ue(this._point, this._startPoint), p = d.getSize();
35495
+ var d = new de(this._point, this._startPoint), p = d.getSize();
35496
35496
  Ht(this._box, d.min), this._box.style.width = p.x + "px", this._box.style.height = p.y + "px";
35497
35497
  },
35498
35498
  _finish: function() {
@@ -35597,7 +35597,7 @@ function cj() {
35597
35597
  var l = this._map;
35598
35598
  if (l._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
35599
35599
  var d = ie(this._map.options.maxBounds);
35600
- this._offsetLimit = ae(
35600
+ this._offsetLimit = le(
35601
35601
  this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),
35602
35602
  this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())
35603
35603
  ), this._viscosity = Math.min(1, Math.max(0, this._map.options.maxBoundsViscosity));
@@ -35639,7 +35639,7 @@ function cj() {
35639
35639
  d.fire("moveend");
35640
35640
  else {
35641
35641
  this._prunePositions(+/* @__PURE__ */ new Date());
35642
- var x = this._lastPos.subtract(this._positions[0]), M = (this._lastTime - this._times[0]) / 1e3, E = p.easeLinearity, $ = x.multiplyBy(E / M), j = $.distanceTo([0, 0]), G = Math.min(p.inertiaMaxSpeed, j), fe = $.multiplyBy(G / j), De = G / (p.inertiaDeceleration * E), qe = fe.multiplyBy(-De / 2).round();
35642
+ var x = this._lastPos.subtract(this._positions[0]), M = (this._lastTime - this._times[0]) / 1e3, E = p.easeLinearity, $ = x.multiplyBy(E / M), j = $.distanceTo([0, 0]), G = Math.min(p.inertiaMaxSpeed, j), pe = $.multiplyBy(G / j), De = G / (p.inertiaDeceleration * E), qe = pe.multiplyBy(-De / 2).round();
35643
35643
  !qe.x && !qe.y ? d.fire("moveend") : (qe = d._limitOffset(qe, d.options.maxBounds), H(function() {
35644
35644
  d.panBy(qe, {
35645
35645
  duration: De,
@@ -35734,7 +35734,7 @@ function cj() {
35734
35734
  var d = l.keyCode, p = this._map, y;
35735
35735
  if (d in this._panKeys) {
35736
35736
  if (!p._panAnim || !p._panAnim._inProgress)
35737
- if (y = this._panKeys[d], l.shiftKey && (y = he(y).multiplyBy(3)), p.options.maxBounds && (y = p._limitOffset(he(y), p.options.maxBounds)), p.options.worldCopyJump) {
35737
+ if (y = this._panKeys[d], l.shiftKey && (y = fe(y).multiplyBy(3)), p.options.maxBounds && (y = p._limitOffset(fe(y), p.options.maxBounds)), p.options.worldCopyJump) {
35738
35738
  var x = p.wrapLatLng(p.unproject(p.project(p.getCenter()).add(y)));
35739
35739
  p.panTo(x);
35740
35740
  } else
@@ -35880,7 +35880,7 @@ function cj() {
35880
35880
  return;
35881
35881
  this._center = d.unproject(d.project(this._pinchStartLatLng, this._zoom).subtract(M), this._zoom);
35882
35882
  }
35883
- this._moved || (d._moveStart(!0, !1), this._moved = !0), B(this._animRequest);
35883
+ this._moved || (d._moveStart(!0, !1), this._moved = !0), Y(this._animRequest);
35884
35884
  var E = s(d._move, d, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
35885
35885
  this._animRequest = H(E, this, !0), dn(l);
35886
35886
  }
@@ -35890,10 +35890,10 @@ function cj() {
35890
35890
  this._zooming = !1;
35891
35891
  return;
35892
35892
  }
35893
- this._zooming = !1, B(this._animRequest), gt(document, "touchmove", this._onTouchMove, this), gt(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
35893
+ this._zooming = !1, Y(this._animRequest), gt(document, "touchmove", this._onTouchMove, this), gt(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
35894
35894
  }
35895
35895
  });
35896
- Je.addInitHook("addHandler", "touchZoom", Kv), Je.BoxZoom = Wv, Je.DoubleClickZoom = Zv, Je.Drag = Uv, Je.Keyboard = qv, Je.ScrollWheelZoom = Yv, Je.TapHold = Gv, Je.TouchZoom = Kv, t.Bounds = ue, t.Browser = ne, t.CRS = Ue, t.Canvas = jv, t.Circle = hf, t.CircleMarker = hu, t.Class = W, t.Control = zi, t.DivIcon = zv, t.DivOverlay = or, t.DomEvent = $S, t.DomUtil = zS, t.Draggable = ko, t.Evented = Me, t.FeatureGroup = Fr, t.GeoJSON = jr, t.GridLayer = wl, t.Handler = rr, t.Icon = oa, t.ImageOverlay = vu, t.LatLng = K, t.LatLngBounds = ee, t.Layer = Fi, t.LayerGroup = ra, t.LineUtil = JS, t.Map = Je, t.Marker = du, t.Mixin = US, t.Path = So, t.Point = J, t.PolyUtil = qS, t.Polygon = sa, t.Polyline = $r, t.Popup = yu, t.PosAnimation = _v, t.Projection = QS, t.Rectangle = Vv, t.Renderer = Br, t.SVG = Sl, t.SVGOverlay = Nv, t.TileLayer = la, t.Tooltip = _u, t.Transformation = It, t.Util = Y, t.VideoOverlay = Rv, t.bind = s, t.bounds = ae, t.canvas = Bv, t.circle = aM, t.circleMarker = sM, t.control = _l, t.divIcon = mM, t.extend = r, t.featureGroup = iM, t.geoJSON = Ov, t.geoJson = uM, t.gridLayer = vM, t.icon = rM, t.imageOverlay = dM, t.latLng = oe, t.latLngBounds = ie, t.layerGroup = nM, t.map = jS, t.marker = oM, t.point = he, t.polygon = cM, t.polyline = lM, t.popup = pM, t.rectangle = bM, t.setOptions = b, t.stamp = c, t.svg = Hv, t.svgOverlay = fM, t.tileLayer = Fv, t.tooltip = gM, t.transformation = at, t.version = i, t.videoOverlay = hM;
35896
+ Je.addInitHook("addHandler", "touchZoom", Kv), Je.BoxZoom = Wv, Je.DoubleClickZoom = Zv, Je.Drag = Uv, Je.Keyboard = qv, Je.ScrollWheelZoom = Yv, Je.TapHold = Gv, Je.TouchZoom = Kv, t.Bounds = de, t.Browser = ne, t.CRS = Ue, t.Canvas = jv, t.Circle = hf, t.CircleMarker = hu, t.Class = B, t.Control = zi, t.DivIcon = zv, t.DivOverlay = or, t.DomEvent = $S, t.DomUtil = zS, t.Draggable = ko, t.Evented = Me, t.FeatureGroup = Fr, t.GeoJSON = jr, t.GridLayer = wl, t.Handler = rr, t.Icon = oa, t.ImageOverlay = vu, t.LatLng = K, t.LatLngBounds = ee, t.Layer = Fi, t.LayerGroup = ra, t.LineUtil = JS, t.Map = Je, t.Marker = du, t.Mixin = US, t.Path = So, t.Point = J, t.PolyUtil = qS, t.Polygon = sa, t.Polyline = $r, t.Popup = yu, t.PosAnimation = _v, t.Projection = QS, t.Rectangle = Vv, t.Renderer = Br, t.SVG = Sl, t.SVGOverlay = Nv, t.TileLayer = la, t.Tooltip = _u, t.Transformation = It, t.Util = q, t.VideoOverlay = Rv, t.bind = s, t.bounds = le, t.canvas = Bv, t.circle = aM, t.circleMarker = sM, t.control = _l, t.divIcon = mM, t.extend = r, t.featureGroup = iM, t.geoJSON = Ov, t.geoJson = uM, t.gridLayer = vM, t.icon = rM, t.imageOverlay = dM, t.latLng = oe, t.latLngBounds = ie, t.layerGroup = nM, t.map = jS, t.marker = oM, t.point = fe, t.polygon = cM, t.polyline = lM, t.popup = pM, t.rectangle = bM, t.setOptions = b, t.stamp = c, t.svg = Hv, t.svgOverlay = fM, t.tileLayer = Fv, t.tooltip = gM, t.transformation = at, t.version = i, t.videoOverlay = hM;
35897
35897
  var wM = window.L;
35898
35898
  t.noConflict = function() {
35899
35899
  return window.L = wM, this;
@@ -36362,37 +36362,37 @@ let ti = class extends pi {
36362
36362
  };
36363
36363
  ti.styles = [...pi.styles, $j, jj];
36364
36364
  Ai([
36365
- U({ type: Object })
36365
+ Z({ type: Object })
36366
36366
  ], ti.prototype, "lapisFilter", 2);
36367
36367
  Ai([
36368
- U({ type: String })
36368
+ Z({ type: String })
36369
36369
  ], ti.prototype, "lapisLocationField", 2);
36370
36370
  Ai([
36371
- U({ type: Object })
36371
+ Z({ type: Object })
36372
36372
  ], ti.prototype, "mapSource", 2);
36373
36373
  Ai([
36374
- U({ type: Boolean })
36374
+ Z({ type: Boolean })
36375
36375
  ], ti.prototype, "enableMapNavigation", 2);
36376
36376
  Ai([
36377
- U({ type: String })
36377
+ Z({ type: String })
36378
36378
  ], ti.prototype, "width", 2);
36379
36379
  Ai([
36380
- U({ type: String })
36380
+ Z({ type: String })
36381
36381
  ], ti.prototype, "height", 2);
36382
36382
  Ai([
36383
- U({ type: Array })
36383
+ Z({ type: Array })
36384
36384
  ], ti.prototype, "views", 2);
36385
36385
  Ai([
36386
- U({ type: Number })
36386
+ Z({ type: Number })
36387
36387
  ], ti.prototype, "zoom", 2);
36388
36388
  Ai([
36389
- U({ type: Number })
36389
+ Z({ type: Number })
36390
36390
  ], ti.prototype, "offsetX", 2);
36391
36391
  Ai([
36392
- U({ type: Number })
36392
+ Z({ type: Number })
36393
36393
  ], ti.prototype, "offsetY", 2);
36394
36394
  Ai([
36395
- U({ type: Object })
36395
+ Z({ type: Object })
36396
36396
  ], ti.prototype, "pageSize", 2);
36397
36397
  ti = Ai([
36398
36398
  Xt("gs-sequences-by-location")
@@ -36455,16 +36455,16 @@ let Ga = class extends pi {
36455
36455
  }
36456
36456
  };
36457
36457
  ru([
36458
- U({ type: Object })
36458
+ Z({ type: Object })
36459
36459
  ], Ga.prototype, "numeratorFilter", 2);
36460
36460
  ru([
36461
- U({ type: Object })
36461
+ Z({ type: Object })
36462
36462
  ], Ga.prototype, "denominatorFilter", 2);
36463
36463
  ru([
36464
- U({ type: String })
36464
+ Z({ type: String })
36465
36465
  ], Ga.prototype, "width", 2);
36466
36466
  ru([
36467
- U({ type: String })
36467
+ Z({ type: String })
36468
36468
  ], Ga.prototype, "height", 2);
36469
36469
  Ga = ru([
36470
36470
  Xt("gs-statistics")
@@ -36736,19 +36736,19 @@ let go = class extends pi {
36736
36736
  }
36737
36737
  };
36738
36738
  ss([
36739
- U({ type: Object })
36739
+ Z({ type: Object })
36740
36740
  ], go.prototype, "lapisFilter", 2);
36741
36741
  ss([
36742
- U({ type: String })
36742
+ Z({ type: String })
36743
36743
  ], go.prototype, "sequenceType", 2);
36744
36744
  ss([
36745
- U({ type: String })
36745
+ Z({ type: String })
36746
36746
  ], go.prototype, "width", 2);
36747
36747
  ss([
36748
- U({ type: String })
36748
+ Z({ type: String })
36749
36749
  ], go.prototype, "height", 2);
36750
36750
  ss([
36751
- U({ type: Array })
36751
+ Z({ type: Array })
36752
36752
  ], go.prototype, "pageSizes", 2);
36753
36753
  ss([
36754
36754
  xr({ context: Hc, subscribe: !0 })
@@ -37267,7 +37267,7 @@ function v4(n, e) {
37267
37267
  config: vn(vn({}, Pa), Zt.defaultConfig),
37268
37268
  l10n: Fc
37269
37269
  };
37270
- t.parseDate = mg({ config: t.config, l10n: t.l10n }), t._handlers = [], t.pluginElements = [], t.loadedPlugins = [], t._bind = b, t._setHoursFromDate = g, t._positionCalendar = hn, t.changeMonth = ue, t.changeYear = Ue, t.clear = ae, t.close = ee, t.onMouseOver = at, t._createElement = ot, t.createDay = O, t.destroy = ie, t.isEnabled = Ye, t.jumpToDate = C, t.updateValue = Zn, t.open = Qt, t.redraw = Wn, t.set = $t, t.setDate = ri, t.toggle = Pn;
37270
+ t.parseDate = mg({ config: t.config, l10n: t.l10n }), t._handlers = [], t.pluginElements = [], t.loadedPlugins = [], t._bind = b, t._setHoursFromDate = g, t._positionCalendar = hn, t.changeMonth = de, t.changeYear = Ue, t.clear = le, t.close = ee, t.onMouseOver = at, t._createElement = ot, t.createDay = O, t.destroy = ie, t.isEnabled = Ye, t.jumpToDate = C, t.updateValue = Zn, t.open = Qt, t.redraw = Wn, t.set = $t, t.setDate = ri, t.toggle = Pn;
37271
37271
  function i() {
37272
37272
  t.utils = {
37273
37273
  getDaysInMonth: function(D, A) {
@@ -37302,8 +37302,8 @@ function v4(n, e) {
37302
37302
  A.setHours(z.hours, z.minutes, z.seconds, A.getMilliseconds()), t.selectedDates = [A], t.latestSelectedDateObj = A;
37303
37303
  }
37304
37304
  D !== void 0 && D.type !== "blur" && ul(D);
37305
- var Z = t._input.value;
37306
- f(), Zn(), t._input.value !== Z && t._debouncedChange();
37305
+ var W = t._input.value;
37306
+ f(), Zn(), t._input.value !== W && t._debouncedChange();
37307
37307
  }
37308
37308
  function u(D, A) {
37309
37309
  return D % 12 + 12 * wi(A === t.l10n.amPM[1]);
@@ -37321,7 +37321,7 @@ function v4(n, e) {
37321
37321
  if (!(t.hourElement === void 0 || t.minuteElement === void 0)) {
37322
37322
  var D = (parseInt(t.hourElement.value.slice(-2), 10) || 0) % 24, A = (parseInt(t.minuteElement.value, 10) || 0) % 60, z = t.secondElement !== void 0 ? (parseInt(t.secondElement.value, 10) || 0) % 60 : 0;
37323
37323
  t.amPM !== void 0 && (D = u(D, t.amPM.textContent));
37324
- var Z = t.config.minTime !== void 0 || t.config.minDate && t.minDateHasTime && t.latestSelectedDateObj && ai(t.latestSelectedDateObj, t.config.minDate, !0) === 0, te = t.config.maxTime !== void 0 || t.config.maxDate && t.maxDateHasTime && t.latestSelectedDateObj && ai(t.latestSelectedDateObj, t.config.maxDate, !0) === 0;
37324
+ var W = t.config.minTime !== void 0 || t.config.minDate && t.minDateHasTime && t.latestSelectedDateObj && ai(t.latestSelectedDateObj, t.config.minDate, !0) === 0, te = t.config.maxTime !== void 0 || t.config.maxDate && t.maxDateHasTime && t.latestSelectedDateObj && ai(t.latestSelectedDateObj, t.config.maxDate, !0) === 0;
37325
37325
  if (t.config.maxTime !== void 0 && t.config.minTime !== void 0 && t.config.minTime > t.config.maxTime) {
37326
37326
  var se = lp(t.config.minTime.getHours(), t.config.minTime.getMinutes(), t.config.minTime.getSeconds()), Le = lp(t.config.maxTime.getHours(), t.config.maxTime.getMinutes(), t.config.maxTime.getSeconds()), me = lp(D, A, z);
37327
37327
  if (me > Le && me < se) {
@@ -37330,10 +37330,10 @@ function v4(n, e) {
37330
37330
  }
37331
37331
  } else {
37332
37332
  if (te) {
37333
- var le = t.config.maxTime !== void 0 ? t.config.maxTime : t.config.maxDate;
37334
- D = Math.min(D, le.getHours()), D === le.getHours() && (A = Math.min(A, le.getMinutes())), A === le.getMinutes() && (z = Math.min(z, le.getSeconds()));
37333
+ var ce = t.config.maxTime !== void 0 ? t.config.maxTime : t.config.maxDate;
37334
+ D = Math.min(D, ce.getHours()), D === ce.getHours() && (A = Math.min(A, ce.getMinutes())), A === ce.getMinutes() && (z = Math.min(z, ce.getSeconds()));
37335
37335
  }
37336
- if (Z) {
37336
+ if (W) {
37337
37337
  var ve = t.config.minTime !== void 0 ? t.config.minTime : t.config.minDate;
37338
37338
  D = Math.max(D, ve.getHours()), D === ve.getHours() && A < ve.getMinutes() && (A = ve.getMinutes()), A === ve.getMinutes() && (z = Math.max(z, ve.getSeconds()));
37339
37339
  }
@@ -37352,18 +37352,18 @@ function v4(n, e) {
37352
37352
  var A = si(D), z = parseInt(A.value) + (D.delta || 0);
37353
37353
  (z / 1e3 > 1 || D.key === "Enter" && !/[^\d]/.test(z.toString())) && Ue(z);
37354
37354
  }
37355
- function b(D, A, z, Z) {
37355
+ function b(D, A, z, W) {
37356
37356
  if (A instanceof Array)
37357
37357
  return A.forEach(function(te) {
37358
- return b(D, te, z, Z);
37358
+ return b(D, te, z, W);
37359
37359
  });
37360
37360
  if (D instanceof Array)
37361
37361
  return D.forEach(function(te) {
37362
- return b(te, A, z, Z);
37362
+ return b(te, A, z, W);
37363
37363
  });
37364
- D.addEventListener(A, z, Z), t._handlers.push({
37364
+ D.addEventListener(A, z, W), t._handlers.push({
37365
37365
  remove: function() {
37366
- return D.removeEventListener(A, z, Z);
37366
+ return D.removeEventListener(A, z, W);
37367
37367
  }
37368
37368
  });
37369
37369
  }
@@ -37372,8 +37372,8 @@ function v4(n, e) {
37372
37372
  }
37373
37373
  function k() {
37374
37374
  if (t.config.wrap && ["open", "close", "toggle", "clear"].forEach(function(z) {
37375
- Array.prototype.forEach.call(t.element.querySelectorAll("[data-" + z + "]"), function(Z) {
37376
- return b(Z, "click", t[z]);
37375
+ Array.prototype.forEach.call(t.element.querySelectorAll("[data-" + z + "]"), function(W) {
37376
+ return b(W, "click", t[z]);
37377
37377
  });
37378
37378
  }), t.isMobile) {
37379
37379
  Rr();
@@ -37395,30 +37395,30 @@ function v4(n, e) {
37395
37395
  t.config.allowInput && b(t._input, "blur", At);
37396
37396
  }
37397
37397
  function C(D, A) {
37398
- var z = D !== void 0 ? t.parseDate(D) : t.latestSelectedDateObj || (t.config.minDate && t.config.minDate > t.now ? t.config.minDate : t.config.maxDate && t.config.maxDate < t.now ? t.config.maxDate : t.now), Z = t.currentYear, te = t.currentMonth;
37398
+ var z = D !== void 0 ? t.parseDate(D) : t.latestSelectedDateObj || (t.config.minDate && t.config.minDate > t.now ? t.config.minDate : t.config.maxDate && t.config.maxDate < t.now ? t.config.maxDate : t.now), W = t.currentYear, te = t.currentMonth;
37399
37399
  try {
37400
37400
  z !== void 0 && (t.currentYear = z.getFullYear(), t.currentMonth = z.getMonth());
37401
37401
  } catch (se) {
37402
37402
  se.message = "Invalid date supplied: " + z, t.config.errorHandler(se);
37403
37403
  }
37404
- A && t.currentYear !== Z && (nt("onYearChange"), Y()), A && (t.currentYear !== Z || t.currentMonth !== te) && nt("onMonthChange"), t.redraw();
37404
+ A && t.currentYear !== W && (nt("onYearChange"), q()), A && (t.currentYear !== W || t.currentMonth !== te) && nt("onMonthChange"), t.redraw();
37405
37405
  }
37406
37406
  function T(D) {
37407
37407
  var A = si(D);
37408
37408
  ~A.className.indexOf("arrow") && P(D, A.classList.contains("arrowUp") ? 1 : -1);
37409
37409
  }
37410
37410
  function P(D, A, z) {
37411
- var Z = D && si(D), te = z || Z && Z.parentNode && Z.parentNode.firstChild, se = Nr("increment");
37411
+ var W = D && si(D), te = z || W && W.parentNode && W.parentNode.firstChild, se = Nr("increment");
37412
37412
  se.delta = A, te && te.dispatchEvent(se);
37413
37413
  }
37414
37414
  function I() {
37415
37415
  var D = window.document.createDocumentFragment();
37416
37416
  if (t.calendarContainer = ot("div", "flatpickr-calendar"), t.calendarContainer.tabIndex = -1, !t.config.noCalendar) {
37417
- if (D.appendChild(pe()), t.innerContainer = ot("div", "flatpickr-innerContainer"), t.config.weekNumbers) {
37418
- var A = he(), z = A.weekWrapper, Z = A.weekNumbers;
37419
- t.innerContainer.appendChild(z), t.weekNumbers = Z, t.weekWrapper = z;
37417
+ if (D.appendChild(he()), t.innerContainer = ot("div", "flatpickr-innerContainer"), t.config.weekNumbers) {
37418
+ var A = fe(), z = A.weekWrapper, W = A.weekNumbers;
37419
+ t.innerContainer.appendChild(z), t.weekNumbers = W, t.weekWrapper = z;
37420
37420
  }
37421
- t.rContainer = ot("div", "flatpickr-rContainer"), t.rContainer.appendChild(J()), t.daysContainer || (t.daysContainer = ot("div", "flatpickr-days"), t.daysContainer.tabIndex = -1), B(), t.rContainer.appendChild(t.daysContainer), t.innerContainer.appendChild(t.rContainer), D.appendChild(t.innerContainer);
37421
+ t.rContainer = ot("div", "flatpickr-rContainer"), t.rContainer.appendChild(J()), t.daysContainer || (t.daysContainer = ot("div", "flatpickr-days"), t.daysContainer.tabIndex = -1), Y(), t.rContainer.appendChild(t.daysContainer), t.innerContainer.appendChild(t.rContainer), D.appendChild(t.innerContainer);
37422
37422
  }
37423
37423
  t.config.enableTime && D.appendChild(Me()), En(t.calendarContainer, "rangeMode", t.config.mode === "range"), En(t.calendarContainer, "animate", t.config.animate === !0), En(t.calendarContainer, "multiMonth", t.config.showMonths > 1), t.calendarContainer.appendChild(D);
37424
37424
  var te = t.config.appendTo !== void 0 && t.config.appendTo.nodeType !== void 0;
@@ -37428,45 +37428,45 @@ function v4(n, e) {
37428
37428
  }
37429
37429
  !t.config.static && !t.config.inline && (t.config.appendTo !== void 0 ? t.config.appendTo : window.document.body).appendChild(t.calendarContainer);
37430
37430
  }
37431
- function O(D, A, z, Z) {
37431
+ function O(D, A, z, W) {
37432
37432
  var te = Ye(A, !0), se = ot("span", D, A.getDate().toString());
37433
- return se.dateObj = A, se.$i = Z, se.setAttribute("aria-label", t.formatDate(A, t.config.ariaDateFormat)), D.indexOf("hidden") === -1 && ai(A, t.now) === 0 && (t.todayDateElem = se, se.classList.add("today"), se.setAttribute("aria-current", "date")), te ? (se.tabIndex = -1, oi(A) && (se.classList.add("selected"), t.selectedDateElem = se, t.config.mode === "range" && (En(se, "startRange", t.selectedDates[0] && ai(A, t.selectedDates[0], !0) === 0), En(se, "endRange", t.selectedDates[1] && ai(A, t.selectedDates[1], !0) === 0), D === "nextMonthDay" && se.classList.add("inRange")))) : se.classList.add("flatpickr-disabled"), t.config.mode === "range" && cl(A) && !oi(A) && se.classList.add("inRange"), t.weekNumbers && t.config.showMonths === 1 && D !== "prevMonthDay" && Z % 7 === 6 && t.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + t.config.getWeek(A) + "</span>"), nt("onDayCreate", se), se;
37433
+ return se.dateObj = A, se.$i = W, se.setAttribute("aria-label", t.formatDate(A, t.config.ariaDateFormat)), D.indexOf("hidden") === -1 && ai(A, t.now) === 0 && (t.todayDateElem = se, se.classList.add("today"), se.setAttribute("aria-current", "date")), te ? (se.tabIndex = -1, oi(A) && (se.classList.add("selected"), t.selectedDateElem = se, t.config.mode === "range" && (En(se, "startRange", t.selectedDates[0] && ai(A, t.selectedDates[0], !0) === 0), En(se, "endRange", t.selectedDates[1] && ai(A, t.selectedDates[1], !0) === 0), D === "nextMonthDay" && se.classList.add("inRange")))) : se.classList.add("flatpickr-disabled"), t.config.mode === "range" && cl(A) && !oi(A) && se.classList.add("inRange"), t.weekNumbers && t.config.showMonths === 1 && D !== "prevMonthDay" && W % 7 === 6 && t.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + t.config.getWeek(A) + "</span>"), nt("onDayCreate", se), se;
37434
37434
  }
37435
37435
  function F(D) {
37436
37436
  D.focus(), t.config.mode === "range" && at(D);
37437
37437
  }
37438
37438
  function N(D) {
37439
- for (var A = D > 0 ? 0 : t.config.showMonths - 1, z = D > 0 ? t.config.showMonths : -1, Z = A; Z != z; Z += D)
37440
- for (var te = t.daysContainer.children[Z], se = D > 0 ? 0 : te.children.length - 1, Le = D > 0 ? te.children.length : -1, me = se; me != Le; me += D) {
37439
+ for (var A = D > 0 ? 0 : t.config.showMonths - 1, z = D > 0 ? t.config.showMonths : -1, W = A; W != z; W += D)
37440
+ for (var te = t.daysContainer.children[W], se = D > 0 ? 0 : te.children.length - 1, Le = D > 0 ? te.children.length : -1, me = se; me != Le; me += D) {
37441
37441
  var $e = te.children[me];
37442
37442
  if ($e.className.indexOf("hidden") === -1 && Ye($e.dateObj))
37443
37443
  return $e;
37444
37444
  }
37445
37445
  }
37446
37446
  function V(D, A) {
37447
- for (var z = D.className.indexOf("Month") === -1 ? D.dateObj.getMonth() : t.currentMonth, Z = A > 0 ? t.config.showMonths : -1, te = A > 0 ? 1 : -1, se = z - t.currentMonth; se != Z; se += te)
37448
- for (var Le = t.daysContainer.children[se], me = z - t.currentMonth === se ? D.$i + A : A < 0 ? Le.children.length - 1 : 0, $e = Le.children.length, le = me; le >= 0 && le < $e && le != (A > 0 ? $e : -1); le += te) {
37449
- var ve = Le.children[le];
37450
- if (ve.className.indexOf("hidden") === -1 && Ye(ve.dateObj) && Math.abs(D.$i - le) >= Math.abs(A))
37447
+ for (var z = D.className.indexOf("Month") === -1 ? D.dateObj.getMonth() : t.currentMonth, W = A > 0 ? t.config.showMonths : -1, te = A > 0 ? 1 : -1, se = z - t.currentMonth; se != W; se += te)
37448
+ for (var Le = t.daysContainer.children[se], me = z - t.currentMonth === se ? D.$i + A : A < 0 ? Le.children.length - 1 : 0, $e = Le.children.length, ce = me; ce >= 0 && ce < $e && ce != (A > 0 ? $e : -1); ce += te) {
37449
+ var ve = Le.children[ce];
37450
+ if (ve.className.indexOf("hidden") === -1 && Ye(ve.dateObj) && Math.abs(D.$i - ce) >= Math.abs(A))
37451
37451
  return F(ve);
37452
37452
  }
37453
- t.changeMonth(te), q(N(te), 0);
37453
+ t.changeMonth(te), U(N(te), 0);
37454
37454
  }
37455
- function q(D, A) {
37456
- var z = o(), Z = Mt(z || document.body), te = D !== void 0 ? D : Z ? z : t.selectedDateElem !== void 0 && Mt(t.selectedDateElem) ? t.selectedDateElem : t.todayDateElem !== void 0 && Mt(t.todayDateElem) ? t.todayDateElem : N(A > 0 ? 1 : -1);
37457
- te === void 0 ? t._input.focus() : Z ? V(te, A) : F(te);
37455
+ function U(D, A) {
37456
+ var z = o(), W = Mt(z || document.body), te = D !== void 0 ? D : W ? z : t.selectedDateElem !== void 0 && Mt(t.selectedDateElem) ? t.selectedDateElem : t.todayDateElem !== void 0 && Mt(t.todayDateElem) ? t.todayDateElem : N(A > 0 ? 1 : -1);
37457
+ te === void 0 ? t._input.focus() : W ? V(te, A) : F(te);
37458
37458
  }
37459
37459
  function H(D, A) {
37460
- for (var z = (new Date(D, A, 1).getDay() - t.l10n.firstDayOfWeek + 7) % 7, Z = t.utils.getDaysInMonth((A - 1 + 12) % 12, D), te = t.utils.getDaysInMonth(A, D), se = window.document.createDocumentFragment(), Le = t.config.showMonths > 1, me = Le ? "prevMonthDay hidden" : "prevMonthDay", $e = Le ? "nextMonthDay hidden" : "nextMonthDay", le = Z + 1 - z, ve = 0; le <= Z; le++, ve++)
37461
- se.appendChild(O("flatpickr-day " + me, new Date(D, A - 1, le), le, ve));
37462
- for (le = 1; le <= te; le++, ve++)
37463
- se.appendChild(O("flatpickr-day", new Date(D, A, le), le, ve));
37460
+ for (var z = (new Date(D, A, 1).getDay() - t.l10n.firstDayOfWeek + 7) % 7, W = t.utils.getDaysInMonth((A - 1 + 12) % 12, D), te = t.utils.getDaysInMonth(A, D), se = window.document.createDocumentFragment(), Le = t.config.showMonths > 1, me = Le ? "prevMonthDay hidden" : "prevMonthDay", $e = Le ? "nextMonthDay hidden" : "nextMonthDay", ce = W + 1 - z, ve = 0; ce <= W; ce++, ve++)
37461
+ se.appendChild(O("flatpickr-day " + me, new Date(D, A - 1, ce), ce, ve));
37462
+ for (ce = 1; ce <= te; ce++, ve++)
37463
+ se.appendChild(O("flatpickr-day", new Date(D, A, ce), ce, ve));
37464
37464
  for (var ne = te + 1; ne <= 42 - z && (t.config.showMonths === 1 || ve % 7 !== 0); ne++, ve++)
37465
37465
  se.appendChild(O("flatpickr-day " + $e, new Date(D, A + 1, ne % te), ne, ve));
37466
37466
  var fn = ot("div", "dayContainer");
37467
37467
  return fn.appendChild(se), fn;
37468
37468
  }
37469
- function B() {
37469
+ function Y() {
37470
37470
  if (t.daysContainer !== void 0) {
37471
37471
  Yu(t.daysContainer), t.weekNumbers && Yu(t.weekNumbers);
37472
37472
  for (var D = document.createDocumentFragment(), A = 0; A < t.config.showMonths; A++) {
@@ -37476,10 +37476,10 @@ function v4(n, e) {
37476
37476
  t.daysContainer.appendChild(D), t.days = t.daysContainer.firstChild, t.config.mode === "range" && t.selectedDates.length === 1 && at();
37477
37477
  }
37478
37478
  }
37479
- function Y() {
37479
+ function q() {
37480
37480
  if (!(t.config.showMonths > 1 || t.config.monthSelectorType !== "dropdown")) {
37481
- var D = function(Z) {
37482
- return t.config.minDate !== void 0 && t.currentYear === t.config.minDate.getFullYear() && Z < t.config.minDate.getMonth() ? !1 : !(t.config.maxDate !== void 0 && t.currentYear === t.config.maxDate.getFullYear() && Z > t.config.maxDate.getMonth());
37481
+ var D = function(W) {
37482
+ return t.config.minDate !== void 0 && t.currentYear === t.config.minDate.getFullYear() && W < t.config.minDate.getMonth() ? !1 : !(t.config.maxDate !== void 0 && t.currentYear === t.config.maxDate.getFullYear() && W > t.config.maxDate.getMonth());
37483
37483
  };
37484
37484
  t.monthsDropdownContainer.tabIndex = -1, t.monthsDropdownContainer.innerHTML = "";
37485
37485
  for (var A = 0; A < 12; A++)
@@ -37489,31 +37489,31 @@ function v4(n, e) {
37489
37489
  }
37490
37490
  }
37491
37491
  }
37492
- function W() {
37492
+ function B() {
37493
37493
  var D = ot("div", "flatpickr-month"), A = window.document.createDocumentFragment(), z;
37494
37494
  t.config.showMonths > 1 || t.config.monthSelectorType === "static" ? z = ot("span", "cur-month") : (t.monthsDropdownContainer = ot("select", "flatpickr-monthDropdown-months"), t.monthsDropdownContainer.setAttribute("aria-label", t.l10n.monthAriaLabel), b(t.monthsDropdownContainer, "change", function(Le) {
37495
37495
  var me = si(Le), $e = parseInt(me.value, 10);
37496
37496
  t.changeMonth($e - t.currentMonth), nt("onMonthChange");
37497
- }), Y(), z = t.monthsDropdownContainer);
37498
- var Z = Gu("cur-year", { tabindex: "-1" }), te = Z.getElementsByTagName("input")[0];
37497
+ }), q(), z = t.monthsDropdownContainer);
37498
+ var W = Gu("cur-year", { tabindex: "-1" }), te = W.getElementsByTagName("input")[0];
37499
37499
  te.setAttribute("aria-label", t.l10n.yearAriaLabel), t.config.minDate && te.setAttribute("min", t.config.minDate.getFullYear().toString()), t.config.maxDate && (te.setAttribute("max", t.config.maxDate.getFullYear().toString()), te.disabled = !!t.config.minDate && t.config.minDate.getFullYear() === t.config.maxDate.getFullYear());
37500
37500
  var se = ot("div", "flatpickr-current-month");
37501
- return se.appendChild(z), se.appendChild(Z), A.appendChild(se), D.appendChild(A), {
37501
+ return se.appendChild(z), se.appendChild(W), A.appendChild(se), D.appendChild(A), {
37502
37502
  container: D,
37503
37503
  yearElement: te,
37504
37504
  monthElement: z
37505
37505
  };
37506
37506
  }
37507
- function de() {
37507
+ function ae() {
37508
37508
  Yu(t.monthNav), t.monthNav.appendChild(t.prevMonthNav), t.config.showMonths && (t.yearElements = [], t.monthElements = []);
37509
37509
  for (var D = t.config.showMonths; D--; ) {
37510
- var A = W();
37510
+ var A = B();
37511
37511
  t.yearElements.push(A.yearElement), t.monthElements.push(A.monthElement), t.monthNav.appendChild(A.container);
37512
37512
  }
37513
37513
  t.monthNav.appendChild(t.nextMonthNav);
37514
37514
  }
37515
- function pe() {
37516
- return t.monthNav = ot("div", "flatpickr-months"), t.yearElements = [], t.monthElements = [], t.prevMonthNav = ot("span", "flatpickr-prev-month"), t.prevMonthNav.innerHTML = t.config.prevArrow, t.nextMonthNav = ot("span", "flatpickr-next-month"), t.nextMonthNav.innerHTML = t.config.nextArrow, de(), Object.defineProperty(t, "_hidePrevMonthArrow", {
37515
+ function he() {
37516
+ return t.monthNav = ot("div", "flatpickr-months"), t.yearElements = [], t.monthElements = [], t.prevMonthNav = ot("span", "flatpickr-prev-month"), t.prevMonthNav.innerHTML = t.config.prevArrow, t.nextMonthNav = ot("span", "flatpickr-next-month"), t.nextMonthNav.innerHTML = t.config.nextArrow, ae(), Object.defineProperty(t, "_hidePrevMonthArrow", {
37517
37517
  get: function() {
37518
37518
  return t.__hidePrevMonthArrow;
37519
37519
  },
@@ -37537,10 +37537,10 @@ function v4(n, e) {
37537
37537
  "aria-label": t.l10n.hourAriaLabel
37538
37538
  });
37539
37539
  t.hourElement = z.getElementsByTagName("input")[0];
37540
- var Z = Gu("flatpickr-minute", {
37540
+ var W = Gu("flatpickr-minute", {
37541
37541
  "aria-label": t.l10n.minuteAriaLabel
37542
37542
  });
37543
- if (t.minuteElement = Z.getElementsByTagName("input")[0], t.hourElement.tabIndex = t.minuteElement.tabIndex = -1, t.hourElement.value = Gn(t.latestSelectedDateObj ? t.latestSelectedDateObj.getHours() : t.config.time_24hr ? D.hours : h(D.hours)), t.minuteElement.value = Gn(t.latestSelectedDateObj ? t.latestSelectedDateObj.getMinutes() : D.minutes), t.hourElement.setAttribute("step", t.config.hourIncrement.toString()), t.minuteElement.setAttribute("step", t.config.minuteIncrement.toString()), t.hourElement.setAttribute("min", t.config.time_24hr ? "0" : "1"), t.hourElement.setAttribute("max", t.config.time_24hr ? "23" : "12"), t.hourElement.setAttribute("maxlength", "2"), t.minuteElement.setAttribute("min", "0"), t.minuteElement.setAttribute("max", "59"), t.minuteElement.setAttribute("maxlength", "2"), t.timeContainer.appendChild(z), t.timeContainer.appendChild(A), t.timeContainer.appendChild(Z), t.config.time_24hr && t.timeContainer.classList.add("time24hr"), t.config.enableSeconds) {
37543
+ if (t.minuteElement = W.getElementsByTagName("input")[0], t.hourElement.tabIndex = t.minuteElement.tabIndex = -1, t.hourElement.value = Gn(t.latestSelectedDateObj ? t.latestSelectedDateObj.getHours() : t.config.time_24hr ? D.hours : h(D.hours)), t.minuteElement.value = Gn(t.latestSelectedDateObj ? t.latestSelectedDateObj.getMinutes() : D.minutes), t.hourElement.setAttribute("step", t.config.hourIncrement.toString()), t.minuteElement.setAttribute("step", t.config.minuteIncrement.toString()), t.hourElement.setAttribute("min", t.config.time_24hr ? "0" : "1"), t.hourElement.setAttribute("max", t.config.time_24hr ? "23" : "12"), t.hourElement.setAttribute("maxlength", "2"), t.minuteElement.setAttribute("min", "0"), t.minuteElement.setAttribute("max", "59"), t.minuteElement.setAttribute("maxlength", "2"), t.timeContainer.appendChild(z), t.timeContainer.appendChild(A), t.timeContainer.appendChild(W), t.config.time_24hr && t.timeContainer.classList.add("time24hr"), t.config.enableSeconds) {
37544
37544
  t.timeContainer.classList.add("hasSeconds");
37545
37545
  var te = Gu("flatpickr-second");
37546
37546
  t.secondElement = te.getElementsByTagName("input")[0], t.secondElement.value = Gn(t.latestSelectedDateObj ? t.latestSelectedDateObj.getSeconds() : D.seconds), t.secondElement.setAttribute("step", t.minuteElement.getAttribute("step")), t.secondElement.setAttribute("min", "0"), t.secondElement.setAttribute("max", "59"), t.secondElement.setAttribute("maxlength", "2"), t.timeContainer.appendChild(ot("span", "flatpickr-time-separator", ":")), t.timeContainer.appendChild(te);
@@ -37567,7 +37567,7 @@ function v4(n, e) {
37567
37567
  `;
37568
37568
  }
37569
37569
  }
37570
- function he() {
37570
+ function fe() {
37571
37571
  t.calendarContainer.classList.add("hasWeeks");
37572
37572
  var D = ot("div", "flatpickr-weekwrapper");
37573
37573
  D.appendChild(ot("span", "flatpickr-weekday", t.l10n.weekAbbreviation));
@@ -37577,15 +37577,15 @@ function v4(n, e) {
37577
37577
  weekNumbers: A
37578
37578
  };
37579
37579
  }
37580
- function ue(D, A) {
37580
+ function de(D, A) {
37581
37581
  A === void 0 && (A = !0);
37582
37582
  var z = A ? D : D - t.currentMonth;
37583
- z < 0 && t._hidePrevMonthArrow === !0 || z > 0 && t._hideNextMonthArrow === !0 || (t.currentMonth += z, (t.currentMonth < 0 || t.currentMonth > 11) && (t.currentYear += t.currentMonth > 11 ? 1 : -1, t.currentMonth = (t.currentMonth + 12) % 12, nt("onYearChange"), Y()), B(), nt("onMonthChange"), Ei());
37583
+ z < 0 && t._hidePrevMonthArrow === !0 || z > 0 && t._hideNextMonthArrow === !0 || (t.currentMonth += z, (t.currentMonth < 0 || t.currentMonth > 11) && (t.currentYear += t.currentMonth > 11 ? 1 : -1, t.currentMonth = (t.currentMonth + 12) % 12, nt("onYearChange"), q()), Y(), nt("onMonthChange"), Ei());
37584
37584
  }
37585
- function ae(D, A) {
37585
+ function le(D, A) {
37586
37586
  if (D === void 0 && (D = !0), A === void 0 && (A = !0), t.input.value = "", t.altInput !== void 0 && (t.altInput.value = ""), t.mobileInput !== void 0 && (t.mobileInput.value = ""), t.selectedDates = [], t.latestSelectedDateObj = void 0, A === !0 && (t.currentYear = t._initialDate.getFullYear(), t.currentMonth = t._initialDate.getMonth()), t.config.enableTime === !0) {
37587
- var z = cp(t.config), Z = z.hours, te = z.minutes, se = z.seconds;
37588
- v(Z, te, se);
37587
+ var z = cp(t.config), W = z.hours, te = z.minutes, se = z.seconds;
37588
+ v(W, te, se);
37589
37589
  }
37590
37590
  t.redraw(), D && nt("onChange");
37591
37591
  }
@@ -37650,7 +37650,7 @@ function v4(n, e) {
37650
37650
  }
37651
37651
  function oe(D) {
37652
37652
  if (t.isOpen && !t.config.inline) {
37653
- var A = si(D), z = K(A), Z = A === t.input || A === t.altInput || t.element.contains(A) || D.path && D.path.indexOf && (~D.path.indexOf(t.input) || ~D.path.indexOf(t.altInput)), te = !Z && !z && !K(D.relatedTarget), se = !t.config.ignoredFocusElements.some(function(Le) {
37653
+ var A = si(D), z = K(A), W = A === t.input || A === t.altInput || t.element.contains(A) || D.path && D.path.indexOf && (~D.path.indexOf(t.input) || ~D.path.indexOf(t.altInput)), te = !W && !z && !K(D.relatedTarget), se = !t.config.ignoredFocusElements.some(function(Le) {
37654
37654
  return Le.contains(A);
37655
37655
  });
37656
37656
  te && se && (t.config.allowInput && t.setDate(t._input.value, !1, t.config.altInput ? t.config.altFormat : t.config.dateFormat), t.timeContainer !== void 0 && t.minuteElement !== void 0 && t.hourElement !== void 0 && t.input.value !== "" && t.input.value !== void 0 && c(), t.close(), t.config && t.config.mode === "range" && t.selectedDates.length === 1 && t.clear(!1));
@@ -37659,28 +37659,28 @@ function v4(n, e) {
37659
37659
  function Ue(D) {
37660
37660
  if (!(!D || t.config.minDate && D < t.config.minDate.getFullYear() || t.config.maxDate && D > t.config.maxDate.getFullYear())) {
37661
37661
  var A = D, z = t.currentYear !== A;
37662
- t.currentYear = A || t.currentYear, t.config.maxDate && t.currentYear === t.config.maxDate.getFullYear() ? t.currentMonth = Math.min(t.config.maxDate.getMonth(), t.currentMonth) : t.config.minDate && t.currentYear === t.config.minDate.getFullYear() && (t.currentMonth = Math.max(t.config.minDate.getMonth(), t.currentMonth)), z && (t.redraw(), nt("onYearChange"), Y());
37662
+ t.currentYear = A || t.currentYear, t.config.maxDate && t.currentYear === t.config.maxDate.getFullYear() ? t.currentMonth = Math.min(t.config.maxDate.getMonth(), t.currentMonth) : t.config.minDate && t.currentYear === t.config.minDate.getFullYear() && (t.currentMonth = Math.max(t.config.minDate.getMonth(), t.currentMonth)), z && (t.redraw(), nt("onYearChange"), q());
37663
37663
  }
37664
37664
  }
37665
37665
  function Ye(D, A) {
37666
37666
  var z;
37667
37667
  A === void 0 && (A = !0);
37668
- var Z = t.parseDate(D, void 0, A);
37669
- if (t.config.minDate && Z && ai(Z, t.config.minDate, A !== void 0 ? A : !t.minDateHasTime) < 0 || t.config.maxDate && Z && ai(Z, t.config.maxDate, A !== void 0 ? A : !t.maxDateHasTime) > 0)
37668
+ var W = t.parseDate(D, void 0, A);
37669
+ if (t.config.minDate && W && ai(W, t.config.minDate, A !== void 0 ? A : !t.minDateHasTime) < 0 || t.config.maxDate && W && ai(W, t.config.maxDate, A !== void 0 ? A : !t.maxDateHasTime) > 0)
37670
37670
  return !1;
37671
37671
  if (!t.config.enable && t.config.disable.length === 0)
37672
37672
  return !0;
37673
- if (Z === void 0)
37673
+ if (W === void 0)
37674
37674
  return !1;
37675
37675
  for (var te = !!t.config.enable, se = (z = t.config.enable) !== null && z !== void 0 ? z : t.config.disable, Le = 0, me = void 0; Le < se.length; Le++) {
37676
- if (me = se[Le], typeof me == "function" && me(Z))
37676
+ if (me = se[Le], typeof me == "function" && me(W))
37677
37677
  return te;
37678
- if (me instanceof Date && Z !== void 0 && me.getTime() === Z.getTime())
37678
+ if (me instanceof Date && W !== void 0 && me.getTime() === W.getTime())
37679
37679
  return te;
37680
37680
  if (typeof me == "string") {
37681
37681
  var $e = t.parseDate(me, void 0, !0);
37682
- return $e && $e.getTime() === Z.getTime() ? te : !te;
37683
- } else if (typeof me == "object" && Z !== void 0 && me.from && me.to && Z.getTime() >= me.from.getTime() && Z.getTime() <= me.to.getTime())
37682
+ return $e && $e.getTime() === W.getTime() ? te : !te;
37683
+ } else if (typeof me == "object" && W !== void 0 && me.from && me.to && W.getTime() >= me.from.getTime() && W.getTime() <= me.to.getTime())
37684
37684
  return te;
37685
37685
  }
37686
37686
  return !te;
@@ -37693,9 +37693,9 @@ function v4(n, e) {
37693
37693
  A && z && !(D.relatedTarget && K(D.relatedTarget)) && t.setDate(t._input.value, !0, D.target === t.altInput ? t.config.altFormat : t.config.dateFormat);
37694
37694
  }
37695
37695
  function It(D) {
37696
- var A = si(D), z = t.config.wrap ? n.contains(A) : A === t._input, Z = t.config.allowInput, te = t.isOpen && (!Z || !z), se = t.config.inline && z && !Z;
37696
+ var A = si(D), z = t.config.wrap ? n.contains(A) : A === t._input, W = t.config.allowInput, te = t.isOpen && (!W || !z), se = t.config.inline && z && !W;
37697
37697
  if (D.keyCode === 13 && z) {
37698
- if (Z)
37698
+ if (W)
37699
37699
  return t.setDate(t._input.value, !0, A === t.altInput ? t.config.altFormat : t.config.dateFormat), t.close(), A.blur();
37700
37700
  t.open();
37701
37701
  } else if (K(A) || te || se) {
@@ -37716,17 +37716,17 @@ function v4(n, e) {
37716
37716
  if (!Le && !z) {
37717
37717
  D.preventDefault();
37718
37718
  var me = o();
37719
- if (t.daysContainer !== void 0 && (Z === !1 || me && Mt(me))) {
37719
+ if (t.daysContainer !== void 0 && (W === !1 || me && Mt(me))) {
37720
37720
  var $e = D.keyCode === 39 ? 1 : -1;
37721
- D.ctrlKey ? (D.stopPropagation(), ue($e), q(N(1), 0)) : q(void 0, $e);
37721
+ D.ctrlKey ? (D.stopPropagation(), de($e), U(N(1), 0)) : U(void 0, $e);
37722
37722
  }
37723
37723
  } else t.hourElement && t.hourElement.focus();
37724
37724
  break;
37725
37725
  case 38:
37726
37726
  case 40:
37727
37727
  D.preventDefault();
37728
- var le = D.keyCode === 40 ? 1 : -1;
37729
- t.daysContainer && A.$i !== void 0 || A === t.input || A === t.altInput ? D.ctrlKey ? (D.stopPropagation(), Ue(t.currentYear - le), q(N(1), 0)) : Le || q(void 0, le * 7) : A === t.currentYearElement ? Ue(t.currentYear - le) : t.config.enableTime && (!Le && t.hourElement && t.hourElement.focus(), c(D), t._debouncedChange());
37728
+ var ce = D.keyCode === 40 ? 1 : -1;
37729
+ t.daysContainer && A.$i !== void 0 || A === t.input || A === t.altInput ? D.ctrlKey ? (D.stopPropagation(), Ue(t.currentYear - ce), U(N(1), 0)) : Le || U(void 0, ce * 7) : A === t.currentYearElement ? Ue(t.currentYear - ce) : t.config.enableTime && (!Le && t.hourElement && t.hourElement.focus(), c(D), t._debouncedChange());
37730
37730
  break;
37731
37731
  case 9:
37732
37732
  if (Le) {
@@ -37761,8 +37761,8 @@ function v4(n, e) {
37761
37761
  }
37762
37762
  function at(D, A) {
37763
37763
  if (A === void 0 && (A = "flatpickr-day"), !(t.selectedDates.length !== 1 || D && (!D.classList.contains(A) || D.classList.contains("flatpickr-disabled")))) {
37764
- for (var z = D ? D.dateObj.getTime() : t.days.firstElementChild.dateObj.getTime(), Z = t.parseDate(t.selectedDates[0], void 0, !0).getTime(), te = Math.min(z, t.selectedDates[0].getTime()), se = Math.max(z, t.selectedDates[0].getTime()), Le = !1, me = 0, $e = 0, le = te; le < se; le += g4.DAY)
37765
- Ye(new Date(le), !0) || (Le = Le || le > te && le < se, le < Z && (!me || le > me) ? me = le : le > Z && (!$e || le < $e) && ($e = le));
37764
+ for (var z = D ? D.dateObj.getTime() : t.days.firstElementChild.dateObj.getTime(), W = t.parseDate(t.selectedDates[0], void 0, !0).getTime(), te = Math.min(z, t.selectedDates[0].getTime()), se = Math.max(z, t.selectedDates[0].getTime()), Le = !1, me = 0, $e = 0, ce = te; ce < se; ce += g4.DAY)
37765
+ Ye(new Date(ce), !0) || (Le = Le || ce > te && ce < se, ce < W && (!me || ce > me) ? me = ce : ce > W && (!$e || ce < $e) && ($e = ce));
37766
37766
  var ve = Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+" + t.config.showMonths + ") > ." + A));
37767
37767
  ve.forEach(function(ne) {
37768
37768
  var fn = ne.dateObj, jt = fn.getTime(), Oi = me > 0 && jt < me || $e > 0 && jt > $e;
@@ -37775,7 +37775,7 @@ function v4(n, e) {
37775
37775
  return;
37776
37776
  ["startRange", "inRange", "endRange", "notAllowed"].forEach(function(Gt) {
37777
37777
  ne.classList.remove(Gt);
37778
- }), D !== void 0 && (D.classList.add(z <= t.selectedDates[0].getTime() ? "startRange" : "endRange"), Z < z && jt === Z ? ne.classList.add("startRange") : Z > z && jt === Z && ne.classList.add("endRange"), jt >= me && ($e === 0 || jt <= $e) && f4(jt, Z, z) && ne.classList.add("inRange"));
37778
+ }), D !== void 0 && (D.classList.add(z <= t.selectedDates[0].getTime() ? "startRange" : "endRange"), W < z && jt === W ? ne.classList.add("startRange") : W > z && jt === W && ne.classList.add("endRange"), jt >= me && ($e === 0 || jt <= $e) && f4(jt, W, z) && ne.classList.add("inRange"));
37779
37779
  });
37780
37780
  }
37781
37781
  }
@@ -37793,17 +37793,17 @@ function v4(n, e) {
37793
37793
  return;
37794
37794
  } else if (t._input.disabled || t.config.inline)
37795
37795
  return;
37796
- var Z = t.isOpen;
37797
- t.isOpen = !0, Z || (t.calendarContainer.classList.add("open"), t._input.classList.add("active"), nt("onOpen"), hn(A)), t.config.enableTime === !0 && t.config.noCalendar === !0 && t.config.allowInput === !1 && (D === void 0 || !t.timeContainer.contains(D.relatedTarget)) && setTimeout(function() {
37796
+ var W = t.isOpen;
37797
+ t.isOpen = !0, W || (t.calendarContainer.classList.add("open"), t._input.classList.add("active"), nt("onOpen"), hn(A)), t.config.enableTime === !0 && t.config.noCalendar === !0 && t.config.allowInput === !1 && (D === void 0 || !t.timeContainer.contains(D.relatedTarget)) && setTimeout(function() {
37798
37798
  return t.hourElement.select();
37799
37799
  }, 50);
37800
37800
  }
37801
37801
  function ii(D) {
37802
37802
  return function(A) {
37803
- var z = t.config["_" + D + "Date"] = t.parseDate(A, t.config.dateFormat), Z = t.config["_" + (D === "min" ? "max" : "min") + "Date"];
37803
+ var z = t.config["_" + D + "Date"] = t.parseDate(A, t.config.dateFormat), W = t.config["_" + (D === "min" ? "max" : "min") + "Date"];
37804
37804
  z !== void 0 && (t[D === "min" ? "minDateHasTime" : "maxDateHasTime"] = z.getHours() > 0 || z.getMinutes() > 0 || z.getSeconds() > 0), t.selectedDates && (t.selectedDates = t.selectedDates.filter(function(te) {
37805
37805
  return Ye(te);
37806
- }), !t.selectedDates.length && D === "min" && g(z), Zn()), t.daysContainer && (Wn(), z !== void 0 ? t.currentYearElement[D] = z.getFullYear().toString() : t.currentYearElement.removeAttribute(D), t.currentYearElement.disabled = !!Z && z !== void 0 && Z.getFullYear() === z.getFullYear());
37806
+ }), !t.selectedDates.length && D === "min" && g(z), Zn()), t.daysContainer && (Wn(), z !== void 0 ? t.currentYearElement[D] = z.getFullYear().toString() : t.currentYearElement.removeAttribute(D), t.currentYearElement.disabled = !!W && z !== void 0 && W.getFullYear() === z.getFullYear());
37807
37807
  };
37808
37808
  }
37809
37809
  function en() {
@@ -37838,14 +37838,14 @@ function v4(n, e) {
37838
37838
  t.config._disable = Lr(ve);
37839
37839
  }
37840
37840
  });
37841
- var Z = A.mode === "time";
37842
- if (!A.dateFormat && (A.enableTime || Z)) {
37841
+ var W = A.mode === "time";
37842
+ if (!A.dateFormat && (A.enableTime || W)) {
37843
37843
  var te = Zt.defaultConfig.dateFormat || Pa.dateFormat;
37844
- z.dateFormat = A.noCalendar || Z ? "H:i" + (A.enableSeconds ? ":S" : "") : te + " H:i" + (A.enableSeconds ? ":S" : "");
37844
+ z.dateFormat = A.noCalendar || W ? "H:i" + (A.enableSeconds ? ":S" : "") : te + " H:i" + (A.enableSeconds ? ":S" : "");
37845
37845
  }
37846
- if (A.altInput && (A.enableTime || Z) && !A.altFormat) {
37846
+ if (A.altInput && (A.enableTime || W) && !A.altFormat) {
37847
37847
  var se = Zt.defaultConfig.altFormat || Pa.altFormat;
37848
- z.altFormat = A.noCalendar || Z ? "h:i" + (A.enableSeconds ? ":S K" : " K") : se + (" h:i" + (A.enableSeconds ? ":S" : "") + " K");
37848
+ z.altFormat = A.noCalendar || W ? "h:i" + (A.enableSeconds ? ":S K" : " K") : se + (" h:i" + (A.enableSeconds ? ":S" : "") + " K");
37849
37849
  }
37850
37850
  Object.defineProperty(t.config, "minDate", {
37851
37851
  get: function() {
@@ -37883,8 +37883,8 @@ function v4(n, e) {
37883
37883
  }), t.isMobile = !t.config.disableMobile && !t.config.inline && t.config.mode === "single" && !t.config.disable.length && !t.config.enable && !t.config.weekNumbers && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
37884
37884
  for (var me = 0; me < t.config.plugins.length; me++) {
37885
37885
  var $e = t.config.plugins[me](t) || {};
37886
- for (var le in $e)
37887
- op.indexOf(le) > -1 ? t.config[le] = sp($e[le]).map(s).concat(t.config[le]) : typeof A[le] > "u" && (t.config[le] = $e[le]);
37886
+ for (var ce in $e)
37887
+ op.indexOf(ce) > -1 ? t.config[ce] = sp($e[ce]).map(s).concat(t.config[ce]) : typeof A[ce] > "u" && (t.config[ce] = $e[ce]);
37888
37888
  }
37889
37889
  A.altInputClass || (t.config.altInputClass = tn().className + " " + t.config.altInputClass), nt("onParseConfig");
37890
37890
  }
@@ -37903,11 +37903,11 @@ function v4(n, e) {
37903
37903
  nt("onPreCalendarPosition");
37904
37904
  var A = D || t._positionElement, z = Array.prototype.reduce.call(t.calendarContainer.children, function(ye, ct) {
37905
37905
  return ye + ct.offsetHeight;
37906
- }, 0), Z = t.calendarContainer.offsetWidth, te = t.config.position.split(" "), se = te[0], Le = te.length > 1 ? te[1] : null, me = A.getBoundingClientRect(), $e = window.innerHeight - me.bottom, le = se === "above" || se !== "below" && $e < z && me.top > z, ve = window.pageYOffset + me.top + (le ? -z - 2 : A.offsetHeight + 2);
37907
- if (En(t.calendarContainer, "arrowTop", !le), En(t.calendarContainer, "arrowBottom", le), !t.config.inline) {
37906
+ }, 0), W = t.calendarContainer.offsetWidth, te = t.config.position.split(" "), se = te[0], Le = te.length > 1 ? te[1] : null, me = A.getBoundingClientRect(), $e = window.innerHeight - me.bottom, ce = se === "above" || se !== "below" && $e < z && me.top > z, ve = window.pageYOffset + me.top + (ce ? -z - 2 : A.offsetHeight + 2);
37907
+ if (En(t.calendarContainer, "arrowTop", !ce), En(t.calendarContainer, "arrowBottom", ce), !t.config.inline) {
37908
37908
  var ne = window.pageXOffset + me.left, fn = !1, jt = !1;
37909
- Le === "center" ? (ne -= (Z - me.width) / 2, fn = !0) : Le === "right" && (ne -= Z - me.width, jt = !0), En(t.calendarContainer, "arrowLeft", !fn && !jt), En(t.calendarContainer, "arrowCenter", fn), En(t.calendarContainer, "arrowRight", jt);
37910
- var Oi = window.document.body.offsetWidth - (window.pageXOffset + me.right), Gt = ne + Z > window.document.body.offsetWidth, xo = Oi + Z > window.document.body.offsetWidth;
37909
+ Le === "center" ? (ne -= (W - me.width) / 2, fn = !0) : Le === "right" && (ne -= W - me.width, jt = !0), En(t.calendarContainer, "arrowLeft", !fn && !jt), En(t.calendarContainer, "arrowCenter", fn), En(t.calendarContainer, "arrowRight", jt);
37910
+ var Oi = window.document.body.offsetWidth - (window.pageXOffset + me.right), Gt = ne + W > window.document.body.offsetWidth, xo = Oi + W > window.document.body.offsetWidth;
37911
37911
  if (En(t.calendarContainer, "rightMost", Gt), !t.config.static)
37912
37912
  if (t.calendarContainer.style.top = ve + "px", !Gt)
37913
37913
  t.calendarContainer.style.left = ne + "px", t.calendarContainer.style.right = "auto";
@@ -37917,7 +37917,7 @@ function v4(n, e) {
37917
37917
  var zr = Ii();
37918
37918
  if (zr === void 0)
37919
37919
  return;
37920
- var Ri = window.document.body.offsetWidth, cs = Math.max(0, Ri / 2 - Z / 2), dl = ".flatpickr-calendar.centerMost:before", ke = ".flatpickr-calendar.centerMost:after", R = zr.cssRules.length, Q = "{left:" + me.left + "px;right:auto;}";
37920
+ var Ri = window.document.body.offsetWidth, cs = Math.max(0, Ri / 2 - W / 2), dl = ".flatpickr-calendar.centerMost:before", ke = ".flatpickr-calendar.centerMost:after", R = zr.cssRules.length, Q = "{left:" + me.left + "px;right:auto;}";
37921
37921
  En(t.calendarContainer, "rightMost", !1), En(t.calendarContainer, "centerMost", !0), zr.insertRule(dl + "," + ke + Q, R), t.calendarContainer.style.left = cs + "px", t.calendarContainer.style.right = "auto";
37922
37922
  }
37923
37923
  }
@@ -37943,7 +37943,7 @@ function v4(n, e) {
37943
37943
  return document.head.appendChild(D), D.sheet;
37944
37944
  }
37945
37945
  function Wn() {
37946
- t.config.noCalendar || t.isMobile || (Y(), Ei(), B());
37946
+ t.config.noCalendar || t.isMobile || (q(), Ei(), Y());
37947
37947
  }
37948
37948
  function Yt() {
37949
37949
  t._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(t.close, 0) : t.close();
@@ -37954,8 +37954,8 @@ function v4(n, e) {
37954
37954
  return ve.classList && ve.classList.contains("flatpickr-day") && !ve.classList.contains("flatpickr-disabled") && !ve.classList.contains("notAllowed");
37955
37955
  }, z = oS(si(D), A);
37956
37956
  if (z !== void 0) {
37957
- var Z = z, te = t.latestSelectedDateObj = new Date(Z.dateObj.getTime()), se = (te.getMonth() < t.currentMonth || te.getMonth() > t.currentMonth + t.config.showMonths - 1) && t.config.mode !== "range";
37958
- if (t.selectedDateElem = Z, t.config.mode === "single")
37957
+ var W = z, te = t.latestSelectedDateObj = new Date(W.dateObj.getTime()), se = (te.getMonth() < t.currentMonth || te.getMonth() > t.currentMonth + t.config.showMonths - 1) && t.config.mode !== "range";
37958
+ if (t.selectedDateElem = W, t.config.mode === "single")
37959
37959
  t.selectedDates = [te];
37960
37960
  else if (t.config.mode === "multiple") {
37961
37961
  var Le = oi(te);
@@ -37965,18 +37965,18 @@ function v4(n, e) {
37965
37965
  }));
37966
37966
  if (f(), se) {
37967
37967
  var me = t.currentYear !== te.getFullYear();
37968
- t.currentYear = te.getFullYear(), t.currentMonth = te.getMonth(), me && (nt("onYearChange"), Y()), nt("onMonthChange");
37968
+ t.currentYear = te.getFullYear(), t.currentMonth = te.getMonth(), me && (nt("onYearChange"), q()), nt("onMonthChange");
37969
37969
  }
37970
- if (Ei(), B(), Zn(), !se && t.config.mode !== "range" && t.config.showMonths === 1 ? F(Z) : t.selectedDateElem !== void 0 && t.hourElement === void 0 && t.selectedDateElem && t.selectedDateElem.focus(), t.hourElement !== void 0 && t.hourElement !== void 0 && t.hourElement.focus(), t.config.closeOnSelect) {
37971
- var $e = t.config.mode === "single" && !t.config.enableTime, le = t.config.mode === "range" && t.selectedDates.length === 2 && !t.config.enableTime;
37972
- ($e || le) && Yt();
37970
+ if (Ei(), Y(), Zn(), !se && t.config.mode !== "range" && t.config.showMonths === 1 ? F(W) : t.selectedDateElem !== void 0 && t.hourElement === void 0 && t.selectedDateElem && t.selectedDateElem.focus(), t.hourElement !== void 0 && t.hourElement !== void 0 && t.hourElement.focus(), t.config.closeOnSelect) {
37971
+ var $e = t.config.mode === "single" && !t.config.enableTime, ce = t.config.mode === "range" && t.selectedDates.length === 2 && !t.config.enableTime;
37972
+ ($e || ce) && Yt();
37973
37973
  }
37974
37974
  w();
37975
37975
  }
37976
37976
  }
37977
37977
  var Et = {
37978
37978
  locale: [un, Ne],
37979
- showMonths: [de, a, J],
37979
+ showMonths: [ae, a, J],
37980
37980
  minDate: [C],
37981
37981
  maxDate: [C],
37982
37982
  positionElement: [Or],
@@ -37990,20 +37990,20 @@ function v4(n, e) {
37990
37990
  if (D !== null && typeof D == "object") {
37991
37991
  Object.assign(t.config, D);
37992
37992
  for (var z in D)
37993
- Et[z] !== void 0 && Et[z].forEach(function(Z) {
37994
- return Z();
37993
+ Et[z] !== void 0 && Et[z].forEach(function(W) {
37994
+ return W();
37995
37995
  });
37996
37996
  } else
37997
- t.config[D] = A, Et[D] !== void 0 ? Et[D].forEach(function(Z) {
37998
- return Z();
37997
+ t.config[D] = A, Et[D] !== void 0 ? Et[D].forEach(function(W) {
37998
+ return W();
37999
37999
  }) : op.indexOf(D) > -1 && (t.config[D] = sp(A));
38000
38000
  t.redraw(), Zn(!0);
38001
38001
  }
38002
38002
  function tr(D, A) {
38003
38003
  var z = [];
38004
38004
  if (D instanceof Array)
38005
- z = D.map(function(Z) {
38006
- return t.parseDate(Z, A);
38005
+ z = D.map(function(W) {
38006
+ return t.parseDate(W, A);
38007
38007
  });
38008
38008
  else if (D instanceof Date || typeof D == "number")
38009
38009
  z = [t.parseDate(D, A)];
@@ -38014,22 +38014,22 @@ function v4(n, e) {
38014
38014
  z = [t.parseDate(D, A)];
38015
38015
  break;
38016
38016
  case "multiple":
38017
- z = D.split(t.config.conjunction).map(function(Z) {
38018
- return t.parseDate(Z, A);
38017
+ z = D.split(t.config.conjunction).map(function(W) {
38018
+ return t.parseDate(W, A);
38019
38019
  });
38020
38020
  break;
38021
38021
  case "range":
38022
- z = D.split(t.l10n.rangeSeparator).map(function(Z) {
38023
- return t.parseDate(Z, A);
38022
+ z = D.split(t.l10n.rangeSeparator).map(function(W) {
38023
+ return t.parseDate(W, A);
38024
38024
  });
38025
38025
  break;
38026
38026
  }
38027
38027
  else
38028
38028
  t.config.errorHandler(new Error("Invalid date supplied: " + JSON.stringify(D)));
38029
- t.selectedDates = t.config.allowInvalidPreload ? z : z.filter(function(Z) {
38030
- return Z instanceof Date && Ye(Z, !1);
38031
- }), t.config.mode === "range" && t.selectedDates.sort(function(Z, te) {
38032
- return Z.getTime() - te.getTime();
38029
+ t.selectedDates = t.config.allowInvalidPreload ? z : z.filter(function(W) {
38030
+ return W instanceof Date && Ye(W, !1);
38031
+ }), t.config.mode === "range" && t.selectedDates.sort(function(W, te) {
38032
+ return W.getTime() - te.getTime();
38033
38033
  });
38034
38034
  }
38035
38035
  function ri(D, A, z) {
@@ -38082,8 +38082,8 @@ function v4(n, e) {
38082
38082
  if (t.config !== void 0) {
38083
38083
  var z = t.config[D];
38084
38084
  if (z !== void 0 && z.length > 0)
38085
- for (var Z = 0; z[Z] && Z < z.length; Z++)
38086
- z[Z](t.selectedDates, t.input.value, t, A);
38085
+ for (var W = 0; z[W] && W < z.length; W++)
38086
+ z[W](t.selectedDates, t.input.value, t, A);
38087
38087
  D === "onChange" && (t.input.dispatchEvent(Nr("change")), t.input.dispatchEvent(Nr("input")));
38088
38088
  }
38089
38089
  }
@@ -38112,25 +38112,25 @@ function v4(n, e) {
38112
38112
  var A = D || (t.config.altInput ? t.config.altFormat : t.config.dateFormat);
38113
38113
  return t.selectedDates.map(function(z) {
38114
38114
  return t.formatDate(z, A);
38115
- }).filter(function(z, Z, te) {
38116
- return t.config.mode !== "range" || t.config.enableTime || te.indexOf(z) === Z;
38115
+ }).filter(function(z, W, te) {
38116
+ return t.config.mode !== "range" || t.config.enableTime || te.indexOf(z) === W;
38117
38117
  }).join(t.config.mode !== "range" ? t.config.conjunction : t.l10n.rangeSeparator);
38118
38118
  }
38119
38119
  function Zn(D) {
38120
38120
  D === void 0 && (D = !0), t.mobileInput !== void 0 && t.mobileFormatStr && (t.mobileInput.value = t.latestSelectedDateObj !== void 0 ? t.formatDate(t.latestSelectedDateObj, t.mobileFormatStr) : ""), t.input.value = Li(t.config.dateFormat), t.altInput !== void 0 && (t.altInput.value = Li(t.config.altFormat)), D !== !1 && nt("onValueUpdate");
38121
38121
  }
38122
38122
  function nr(D) {
38123
- var A = si(D), z = t.prevMonthNav.contains(A), Z = t.nextMonthNav.contains(A);
38124
- z || Z ? ue(z ? -1 : 1) : t.yearElements.indexOf(A) >= 0 ? A.select() : A.classList.contains("arrowUp") ? t.changeYear(t.currentYear + 1) : A.classList.contains("arrowDown") && t.changeYear(t.currentYear - 1);
38123
+ var A = si(D), z = t.prevMonthNav.contains(A), W = t.nextMonthNav.contains(A);
38124
+ z || W ? de(z ? -1 : 1) : t.yearElements.indexOf(A) >= 0 ? A.select() : A.classList.contains("arrowUp") ? t.changeYear(t.currentYear + 1) : A.classList.contains("arrowDown") && t.changeYear(t.currentYear - 1);
38125
38125
  }
38126
38126
  function ul(D) {
38127
38127
  D.preventDefault();
38128
- var A = D.type === "keydown", z = si(D), Z = z;
38128
+ var A = D.type === "keydown", z = si(D), W = z;
38129
38129
  t.amPM !== void 0 && z === t.amPM && (t.amPM.textContent = t.l10n.amPM[wi(t.amPM.textContent === t.l10n.amPM[0])]);
38130
- var te = parseFloat(Z.getAttribute("min")), se = parseFloat(Z.getAttribute("max")), Le = parseFloat(Z.getAttribute("step")), me = parseInt(Z.value, 10), $e = D.delta || (A ? D.which === 38 ? 1 : -1 : 0), le = me + Le * $e;
38131
- if (typeof Z.value < "u" && Z.value.length === 2) {
38132
- var ve = Z === t.hourElement, ne = Z === t.minuteElement;
38133
- le < te ? (le = se + le + wi(!ve) + (wi(ve) && wi(!t.amPM)), ne && P(void 0, -1, t.hourElement)) : le > se && (le = Z === t.hourElement ? le - se - wi(!t.amPM) : te, ne && P(void 0, 1, t.hourElement)), t.amPM && ve && (Le === 1 ? le + me === 23 : Math.abs(le - me) > Le) && (t.amPM.textContent = t.l10n.amPM[wi(t.amPM.textContent === t.l10n.amPM[0])]), Z.value = Gn(le);
38130
+ var te = parseFloat(W.getAttribute("min")), se = parseFloat(W.getAttribute("max")), Le = parseFloat(W.getAttribute("step")), me = parseInt(W.value, 10), $e = D.delta || (A ? D.which === 38 ? 1 : -1 : 0), ce = me + Le * $e;
38131
+ if (typeof W.value < "u" && W.value.length === 2) {
38132
+ var ve = W === t.hourElement, ne = W === t.minuteElement;
38133
+ ce < te ? (ce = se + ce + wi(!ve) + (wi(ve) && wi(!t.amPM)), ne && P(void 0, -1, t.hourElement)) : ce > se && (ce = W === t.hourElement ? ce - se - wi(!t.amPM) : te, ne && P(void 0, 1, t.hourElement)), t.amPM && ve && (Le === 1 ? ce + me === 23 : Math.abs(ce - me) > Le) && (t.amPM.textContent = t.l10n.amPM[wi(t.amPM.textContent === t.l10n.amPM[0])]), W.value = Gn(ce);
38134
38134
  }
38135
38135
  }
38136
38136
  return r(), t;
@@ -38412,10 +38412,10 @@ let Go = class extends Fn {
38412
38412
  };
38413
38413
  Go.styles = [...Fn.styles, M4];
38414
38414
  ll([
38415
- U({ type: Array })
38415
+ Z({ type: Array })
38416
38416
  ], Go.prototype, "dateRangeOptions", 2);
38417
38417
  ll([
38418
- U({
38418
+ Z({
38419
38419
  converter: (n) => {
38420
38420
  if (n === null)
38421
38421
  return null;
@@ -38429,13 +38429,13 @@ ll([
38429
38429
  })
38430
38430
  ], Go.prototype, "value", 2);
38431
38431
  ll([
38432
- U({ type: String })
38432
+ Z({ type: String })
38433
38433
  ], Go.prototype, "width", 2);
38434
38434
  ll([
38435
- U({ type: String })
38435
+ Z({ type: String })
38436
38436
  ], Go.prototype, "placeholder", 2);
38437
38437
  ll([
38438
- U({ type: String })
38438
+ Z({ type: String })
38439
38439
  ], Go.prototype, "lapisDateField", 2);
38440
38440
  Go = ll([
38441
38441
  Xt("gs-date-range-filter")
@@ -38608,7 +38608,7 @@ const D0 = (n) => typeof n == "object" && n != null && n.nodeType === 1, P0 = (n
38608
38608
  }, E4 = (n, e) => {
38609
38609
  var t, i, r, o;
38610
38610
  if (typeof document > "u") return [];
38611
- const { inline: s, boundary: a, skipOverflowHiddenElements: c } = e, u = typeof a == "function" ? a : (Y) => Y !== a;
38611
+ const { inline: s, boundary: a, skipOverflowHiddenElements: c } = e, u = typeof a == "function" ? a : (q) => q !== a;
38612
38612
  if (!D0(n)) throw new TypeError("Invalid target");
38613
38613
  const h = document.scrollingElement || document.documentElement, f = [];
38614
38614
  let g = n;
@@ -38619,27 +38619,27 @@ const D0 = (n) => typeof n == "object" && n != null && n.nodeType === 1, P0 = (n
38619
38619
  }
38620
38620
  g != null && g === document.body && dp(g) && !dp(document.documentElement) || g != null && dp(g, c) && f.push(g);
38621
38621
  }
38622
- const v = (i = (t = window.visualViewport) == null ? void 0 : t.width) != null ? i : innerWidth, _ = (o = (r = window.visualViewport) == null ? void 0 : r.height) != null ? o : innerHeight, { scrollX: b, scrollY: w } = window, { height: k, width: C, top: T, right: P, bottom: I, left: O } = n.getBoundingClientRect(), { top: F, right: N, left: V } = ((Y) => {
38623
- const W = window.getComputedStyle(Y);
38624
- return { top: parseFloat(W.scrollMarginTop) || 0, right: parseFloat(W.scrollMarginRight) || 0, bottom: parseFloat(W.scrollMarginBottom) || 0, left: parseFloat(W.scrollMarginLeft) || 0 };
38622
+ const v = (i = (t = window.visualViewport) == null ? void 0 : t.width) != null ? i : innerWidth, _ = (o = (r = window.visualViewport) == null ? void 0 : r.height) != null ? o : innerHeight, { scrollX: b, scrollY: w } = window, { height: k, width: C, top: T, right: P, bottom: I, left: O } = n.getBoundingClientRect(), { top: F, right: N, left: V } = ((q) => {
38623
+ const B = window.getComputedStyle(q);
38624
+ return { top: parseFloat(B.scrollMarginTop) || 0, right: parseFloat(B.scrollMarginRight) || 0, bottom: parseFloat(B.scrollMarginBottom) || 0, left: parseFloat(B.scrollMarginLeft) || 0 };
38625
38625
  })(n);
38626
- let q = T - F, H = s === "center" ? O + C / 2 - V + N : s === "end" ? P + N : O - V;
38627
- const B = [];
38628
- for (let Y = 0; Y < f.length; Y++) {
38629
- const W = f[Y], { height: de, width: pe, top: Me, right: J, bottom: Ne, left: he } = W.getBoundingClientRect();
38630
- if (T >= 0 && O >= 0 && I <= _ && P <= v && T >= Me && I <= Ne && O >= he && P <= J) return B;
38631
- const ue = getComputedStyle(W), ae = parseInt(ue.borderLeftWidth, 10), ee = parseInt(ue.borderTopWidth, 10), ie = parseInt(ue.borderRightWidth, 10), K = parseInt(ue.borderBottomWidth, 10);
38626
+ let U = T - F, H = s === "center" ? O + C / 2 - V + N : s === "end" ? P + N : O - V;
38627
+ const Y = [];
38628
+ for (let q = 0; q < f.length; q++) {
38629
+ const B = f[q], { height: ae, width: he, top: Me, right: J, bottom: Ne, left: fe } = B.getBoundingClientRect();
38630
+ if (T >= 0 && O >= 0 && I <= _ && P <= v && T >= Me && I <= Ne && O >= fe && P <= J) return Y;
38631
+ const de = getComputedStyle(B), le = parseInt(de.borderLeftWidth, 10), ee = parseInt(de.borderTopWidth, 10), ie = parseInt(de.borderRightWidth, 10), K = parseInt(de.borderBottomWidth, 10);
38632
38632
  let oe = 0, Ue = 0;
38633
- const Ye = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - ae - ie : 0, Mt = "offsetHeight" in W ? W.offsetHeight - W.clientHeight - ee - K : 0, At = "offsetWidth" in W ? W.offsetWidth === 0 ? 0 : pe / W.offsetWidth : 0, It = "offsetHeight" in W ? W.offsetHeight === 0 ? 0 : de / W.offsetHeight : 0;
38634
- if (h === W) oe = Ku(w, w + _, _, ee, K, w + q, w + q + k, k), Ue = s === "start" ? H : s === "center" ? H - v / 2 : s === "end" ? H - v : Ku(b, b + v, v, ae, ie, b + H, b + H + C, C), oe = Math.max(0, oe + w), Ue = Math.max(0, Ue + b);
38633
+ const Ye = "offsetWidth" in B ? B.offsetWidth - B.clientWidth - le - ie : 0, Mt = "offsetHeight" in B ? B.offsetHeight - B.clientHeight - ee - K : 0, At = "offsetWidth" in B ? B.offsetWidth === 0 ? 0 : he / B.offsetWidth : 0, It = "offsetHeight" in B ? B.offsetHeight === 0 ? 0 : ae / B.offsetHeight : 0;
38634
+ if (h === B) oe = Ku(w, w + _, _, ee, K, w + U, w + U + k, k), Ue = s === "start" ? H : s === "center" ? H - v / 2 : s === "end" ? H - v : Ku(b, b + v, v, le, ie, b + H, b + H + C, C), oe = Math.max(0, oe + w), Ue = Math.max(0, Ue + b);
38635
38635
  else {
38636
- oe = Ku(Me, Ne, de, ee, K + Mt, q, q + k, k), Ue = s === "start" ? H - he - ae : s === "center" ? H - (he + pe / 2) + Ye / 2 : s === "end" ? H - J + ie + Ye : Ku(he, J, pe, ae, ie + Ye, H, H + C, C);
38637
- const { scrollLeft: at, scrollTop: cn } = W;
38638
- oe = It === 0 ? 0 : Math.max(0, Math.min(cn + oe / It, W.scrollHeight - de / It + Mt)), Ue = At === 0 ? 0 : Math.max(0, Math.min(at + Ue / At, W.scrollWidth - pe / At + Ye)), q += cn - oe, H += at - Ue;
38636
+ oe = Ku(Me, Ne, ae, ee, K + Mt, U, U + k, k), Ue = s === "start" ? H - fe - le : s === "center" ? H - (fe + he / 2) + Ye / 2 : s === "end" ? H - J + ie + Ye : Ku(fe, J, he, le, ie + Ye, H, H + C, C);
38637
+ const { scrollLeft: at, scrollTop: cn } = B;
38638
+ oe = It === 0 ? 0 : Math.max(0, Math.min(cn + oe / It, B.scrollHeight - ae / It + Mt)), Ue = At === 0 ? 0 : Math.max(0, Math.min(at + Ue / At, B.scrollWidth - he / At + Ye)), U += cn - oe, H += at - Ue;
38639
38639
  }
38640
- B.push({ el: W, top: oe, left: Ue });
38640
+ Y.push({ el: B, top: oe, left: Ue });
38641
38641
  }
38642
- return B;
38642
+ return Y;
38643
38643
  };
38644
38644
  var hp = { exports: {} }, fp, A0;
38645
38645
  function L4() {
@@ -39314,8 +39314,8 @@ function ui(n) {
39314
39314
  var e = ht({}, iB, n), t = e.items, i = e.scrollIntoView, r = e.environment, o = e.getA11yStatusMessage, s = nB(rB, e, tB, J4), a = s[0], c = s[1], u = a.isOpen, h = a.highlightedIndex, f = a.selectedItem, g = a.inputValue, v = Oe(null), _ = Oe({}), b = Oe(null), w = Oe(null), k = Wh(), C = q4(e), T = Oe(), P = Nm({
39315
39315
  state: a,
39316
39316
  props: e
39317
- }), I = dt(function(ae) {
39318
- return _.current[C.getItemId(ae)];
39317
+ }), I = dt(function(le) {
39318
+ return _.current[C.getItemId(le)];
39319
39319
  }, [C]);
39320
39320
  gS(o, a, [u, h, f, g], r);
39321
39321
  var O = X4({
@@ -39327,8 +39327,8 @@ function ui(n) {
39327
39327
  getItemNodeFromIndex: I
39328
39328
  });
39329
39329
  Re(function() {
39330
- var ae = Ia(e, "isOpen");
39331
- ae && b.current && b.current.focus();
39330
+ var le = Ia(e, "isOpen");
39331
+ le && b.current && b.current.focus();
39332
39332
  }, []), Re(function() {
39333
39333
  k || (T.current = t.length);
39334
39334
  });
@@ -39343,8 +39343,8 @@ function ui(n) {
39343
39343
  Re(function() {
39344
39344
  u || (_.current = {});
39345
39345
  }, [u]), Re(function() {
39346
- var ae;
39347
- !u || !(r != null && r.document) || !(b != null && (ae = b.current) != null && ae.focus) || r.document.activeElement !== b.current && b.current.focus();
39346
+ var le;
39347
+ !u || !(r != null && r.document) || !(b != null && (le = b.current) != null && le.focus) || r.document.activeElement !== b.current && b.current.focus();
39348
39348
  }, [u, r]);
39349
39349
  var V = Ee(function() {
39350
39350
  return {
@@ -39393,13 +39393,13 @@ function ui(n) {
39393
39393
  }));
39394
39394
  }
39395
39395
  };
39396
- }, [c, P]), q = dt(function(ae) {
39396
+ }, [c, P]), U = dt(function(le) {
39397
39397
  return ht({
39398
39398
  id: C.labelId,
39399
39399
  htmlFor: C.inputId
39400
- }, ae);
39401
- }, [C]), H = dt(function(ae, ee) {
39402
- var ie, K = ae === void 0 ? {} : ae, oe = K.onMouseLeave, Ue = K.refKey, Ye = Ue === void 0 ? "ref" : Ue, Mt = K.ref, At = xa(K, oB), It = ee === void 0 ? {} : ee;
39400
+ }, le);
39401
+ }, [C]), H = dt(function(le, ee) {
39402
+ var ie, K = le === void 0 ? {} : le, oe = K.onMouseLeave, Ue = K.refKey, Ye = Ue === void 0 ? "ref" : Ue, Mt = K.ref, At = xa(K, oB), It = ee === void 0 ? {} : ee;
39403
39403
  return It.suppressRefError, ht((ie = {}, ie[Ye] = wa(Mt, function(at) {
39404
39404
  v.current = at;
39405
39405
  }), ie.id = C.menuId, ie.role = "listbox", ie["aria-labelledby"] = At && At["aria-label"] ? void 0 : "" + C.labelId, ie.onMouseLeave = ci(oe, function() {
@@ -39407,8 +39407,8 @@ function ui(n) {
39407
39407
  type: vS
39408
39408
  });
39409
39409
  }), ie), At);
39410
- }, [c, N, C]), B = dt(function(ae) {
39411
- var ee, ie, K = ae === void 0 ? {} : ae, oe = K.item, Ue = K.index, Ye = K.refKey, Mt = Ye === void 0 ? "ref" : Ye, At = K.ref, It = K.onMouseMove, at = K.onMouseDown, cn = K.onClick;
39410
+ }, [c, N, C]), Y = dt(function(le) {
39411
+ var ee, ie, K = le === void 0 ? {} : le, oe = K.item, Ue = K.index, Ye = K.refKey, Mt = Ye === void 0 ? "ref" : Ye, At = K.ref, It = K.onMouseMove, at = K.onMouseDown, cn = K.onClick;
39412
39412
  K.onPress;
39413
39413
  var Qt = K.disabled, ii = xa(K, sB);
39414
39414
  Qt !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
@@ -39432,8 +39432,8 @@ function ui(n) {
39432
39432
  onMouseMove: ci(It, Et),
39433
39433
  onMouseDown: ci(at, tr)
39434
39434
  }, ii);
39435
- }, [c, C, P, F, O]), Y = dt(function(ae) {
39436
- var ee, ie = ae === void 0 ? {} : ae, K = ie.onClick;
39435
+ }, [c, C, P, F, O]), q = dt(function(le) {
39436
+ var ee, ie = le === void 0 ? {} : le, K = ie.onClick;
39437
39437
  ie.onPress;
39438
39438
  var oe = ie.refKey, Ue = oe === void 0 ? "ref" : oe, Ye = ie.ref, Mt = xa(ie, aB), At = P.current.state, It = function() {
39439
39439
  c({
@@ -39445,8 +39445,8 @@ function ui(n) {
39445
39445
  }), ee["aria-controls"] = C.menuId, ee["aria-expanded"] = At.isOpen, ee.id = C.toggleButtonId, ee.tabIndex = -1, ee), !Mt.disabled && ht({}, {
39446
39446
  onClick: ci(K, It)
39447
39447
  }), Mt);
39448
- }, [c, P, C]), W = dt(function(ae, ee) {
39449
- var ie, K = ae === void 0 ? {} : ae, oe = K.onKeyDown, Ue = K.onChange, Ye = K.onInput, Mt = K.onBlur;
39448
+ }, [c, P, C]), B = dt(function(le, ee) {
39449
+ var ie, K = le === void 0 ? {} : le, oe = K.onKeyDown, Ue = K.onChange, Ye = K.onInput, Mt = K.onBlur;
39450
39450
  K.onChangeText;
39451
39451
  var At = K.onClick, It = K.refKey, at = It === void 0 ? "ref" : It, cn = K.ref, Qt = xa(K, lB), ii = ee === void 0 ? {} : ee;
39452
39452
  ii.suppressRefError;
@@ -39478,11 +39478,11 @@ function ui(n) {
39478
39478
  return ht((ie = {}, ie[at] = wa(cn, function(rn) {
39479
39479
  b.current = rn;
39480
39480
  }), ie["aria-activedescendant"] = en.isOpen && en.highlightedIndex > -1 ? C.getItemId(en.highlightedIndex) : "", ie["aria-autocomplete"] = "list", ie["aria-controls"] = C.menuId, ie["aria-expanded"] = en.isOpen, ie["aria-labelledby"] = Qt && Qt["aria-label"] ? void 0 : C.labelId, ie.autoComplete = "off", ie.id = C.inputId, ie.role = "combobox", ie.value = en.inputValue, ie), Wn, Qt);
39481
- }, [c, C, r, V, P, F, N]), de = dt(function() {
39481
+ }, [c, C, r, V, P, F, N]), ae = dt(function() {
39482
39482
  c({
39483
39483
  type: bS
39484
39484
  });
39485
- }, [c]), pe = dt(function() {
39485
+ }, [c]), he = dt(function() {
39486
39486
  c({
39487
39487
  type: wS
39488
39488
  });
@@ -39490,41 +39490,41 @@ function ui(n) {
39490
39490
  c({
39491
39491
  type: xS
39492
39492
  });
39493
- }, [c]), J = dt(function(ae) {
39493
+ }, [c]), J = dt(function(le) {
39494
39494
  c({
39495
39495
  type: kS,
39496
- highlightedIndex: ae
39496
+ highlightedIndex: le
39497
39497
  });
39498
- }, [c]), Ne = dt(function(ae) {
39498
+ }, [c]), Ne = dt(function(le) {
39499
39499
  c({
39500
39500
  type: Ym,
39501
- selectedItem: ae
39501
+ selectedItem: le
39502
39502
  });
39503
- }, [c]), he = dt(function(ae) {
39503
+ }, [c]), fe = dt(function(le) {
39504
39504
  c({
39505
39505
  type: SS,
39506
- inputValue: ae
39506
+ inputValue: le
39507
39507
  });
39508
- }, [c]), ue = dt(function() {
39508
+ }, [c]), de = dt(function() {
39509
39509
  c({
39510
39510
  type: MS
39511
39511
  });
39512
39512
  }, [c]);
39513
39513
  return {
39514
39514
  // prop getters.
39515
- getItemProps: B,
39516
- getLabelProps: q,
39515
+ getItemProps: Y,
39516
+ getLabelProps: U,
39517
39517
  getMenuProps: H,
39518
- getInputProps: W,
39519
- getToggleButtonProps: Y,
39518
+ getInputProps: B,
39519
+ getToggleButtonProps: q,
39520
39520
  // actions.
39521
- toggleMenu: de,
39521
+ toggleMenu: ae,
39522
39522
  openMenu: Me,
39523
- closeMenu: pe,
39523
+ closeMenu: he,
39524
39524
  setHighlightedIndex: J,
39525
- setInputValue: he,
39525
+ setInputValue: fe,
39526
39526
  selectItem: Ne,
39527
- reset: ue,
39527
+ reset: de,
39528
39528
  // state.
39529
39529
  highlightedIndex: h,
39530
39530
  isOpen: u,
@@ -39705,8 +39705,8 @@ function $c(n) {
39705
39705
  }, V;
39706
39706
  }, [c, r, o]), k = Ee(function() {
39707
39707
  var V;
39708
- return V = {}, V[o] = function(q) {
39709
- $0(q) && c({
39708
+ return V = {}, V[o] = function(U) {
39709
+ $0(U) && c({
39710
39710
  type: tv
39711
39711
  });
39712
39712
  }, V.Backspace = function(H) {
@@ -39715,22 +39715,22 @@ function $c(n) {
39715
39715
  });
39716
39716
  }, V;
39717
39717
  }, [c, o]), C = dt(function(V) {
39718
- var q, H = V === void 0 ? {} : V, B = H.refKey, Y = B === void 0 ? "ref" : B, W = H.ref, de = H.onClick, pe = H.onKeyDown, Me = H.selectedItem, J = H.index, Ne = xa(H, pB), he = _.current.state, ue = hS(Me, J, he.selectedItems, "Pass either item or index to getSelectedItemProps!"), ae = ue[1], ee = ae > -1 && ae === he.activeIndex, ie = function() {
39718
+ var U, H = V === void 0 ? {} : V, Y = H.refKey, q = Y === void 0 ? "ref" : Y, B = H.ref, ae = H.onClick, he = H.onKeyDown, Me = H.selectedItem, J = H.index, Ne = xa(H, pB), fe = _.current.state, de = hS(Me, J, fe.selectedItems, "Pass either item or index to getSelectedItemProps!"), le = de[1], ee = le > -1 && le === fe.activeIndex, ie = function() {
39719
39719
  c({
39720
39720
  type: Km,
39721
- index: ae
39721
+ index: le
39722
39722
  });
39723
39723
  }, K = function(Ue) {
39724
39724
  var Ye = vg(Ue);
39725
39725
  Ye && w[Ye] && w[Ye](Ue);
39726
39726
  };
39727
- return ht((q = {}, q[Y] = wa(W, function(oe) {
39727
+ return ht((U = {}, U[q] = wa(B, function(oe) {
39728
39728
  oe && v.current.push(oe);
39729
- }), q.tabIndex = ee ? 0 : -1, q.onClick = ci(de, ie), q.onKeyDown = ci(pe, K), q), Ne);
39730
- }, [c, _, w]), T = dt(function(V, q) {
39731
- var H, B = V === void 0 ? {} : V, Y = B.refKey, W = Y === void 0 ? "ref" : Y, de = B.ref, pe = B.onKeyDown, Me = B.onClick, J = B.preventKeyAction, Ne = J === void 0 ? !1 : J, he = xa(B, gB), ue = q === void 0 ? {} : q;
39732
- ue.suppressRefError;
39733
- var ae = function(K) {
39729
+ }), U.tabIndex = ee ? 0 : -1, U.onClick = ci(ae, ie), U.onKeyDown = ci(he, K), U), Ne);
39730
+ }, [c, _, w]), T = dt(function(V, U) {
39731
+ var H, Y = V === void 0 ? {} : V, q = Y.refKey, B = q === void 0 ? "ref" : q, ae = Y.ref, he = Y.onKeyDown, Me = Y.onClick, J = Y.preventKeyAction, Ne = J === void 0 ? !1 : J, fe = xa(Y, gB), de = U === void 0 ? {} : U;
39732
+ de.suppressRefError;
39733
+ var le = function(K) {
39734
39734
  var oe = vg(K);
39735
39735
  oe && k[oe] && k[oe](K);
39736
39736
  }, ee = function() {
@@ -39738,12 +39738,12 @@ function $c(n) {
39738
39738
  type: iv
39739
39739
  });
39740
39740
  };
39741
- return ht((H = {}, H[W] = wa(de, function(ie) {
39741
+ return ht((H = {}, H[B] = wa(ae, function(ie) {
39742
39742
  ie && (g.current = ie);
39743
39743
  }), H), !Ne && {
39744
- onKeyDown: ci(pe, ae),
39744
+ onKeyDown: ci(he, le),
39745
39745
  onClick: ci(Me, ee)
39746
- }, he);
39746
+ }, fe);
39747
39747
  }, [c, k, b]), P = dt(function(V) {
39748
39748
  c({
39749
39749
  type: rv,
@@ -39796,11 +39796,11 @@ function cv({
39796
39796
  u(e), f(r(e));
39797
39797
  }, [r, e]);
39798
39798
  const g = Ee(
39799
- () => n.filter((W) => t(W, h)),
39799
+ () => n.filter((B) => t(B, h)),
39800
39800
  [n, t, h]
39801
- ), v = Oe(null), [_, b] = be(!1), w = (W) => {
39802
- var de;
39803
- u(W), (de = v.current) == null || de.dispatchEvent(i(W));
39801
+ ), v = Oe(null), [_, b] = be(!1), w = (B) => {
39802
+ var ae;
39803
+ u(B), (ae = v.current) == null || ae.dispatchEvent(i(B));
39804
39804
  }, k = DS(v), {
39805
39805
  isOpen: C,
39806
39806
  getToggleButtonProps: T,
@@ -39810,17 +39810,17 @@ function cv({
39810
39810
  getItemProps: F,
39811
39811
  inputValue: N,
39812
39812
  closeMenu: V,
39813
- reset: q
39813
+ reset: U
39814
39814
  } = ui({
39815
- onInputValueChange({ inputValue: W }) {
39816
- b(!1), f(W.trim());
39815
+ onInputValueChange({ inputValue: B }) {
39816
+ b(!1), f(B.trim());
39817
39817
  },
39818
- onSelectedItemChange({ selectedItem: W }) {
39819
- w(W);
39818
+ onSelectedItemChange({ selectedItem: B }) {
39819
+ w(B);
39820
39820
  },
39821
39821
  items: g,
39822
- itemToString(W) {
39823
- return r(W);
39822
+ itemToString(B) {
39823
+ return r(B);
39824
39824
  },
39825
39825
  selectedItem: c,
39826
39826
  environment: k
@@ -39829,22 +39829,22 @@ function cv({
39829
39829
  w(null);
39830
39830
  return;
39831
39831
  }
39832
- const W = N.trim(), de = g.find((pe) => r(pe) === W);
39833
- if (de !== void 0) {
39834
- w(de);
39832
+ const B = N.trim(), ae = g.find((he) => r(he) === B);
39833
+ if (ae !== void 0) {
39834
+ w(ae);
39835
39835
  return;
39836
39836
  }
39837
39837
  b(!0);
39838
- }, B = () => {
39839
- q();
39840
- }, Y = Oe(null);
39838
+ }, Y = () => {
39839
+ U();
39840
+ }, q = Oe(null);
39841
39841
  return /* @__PURE__ */ m("div", { ref: v, className: "relative w-full", children: [
39842
39842
  /* @__PURE__ */ m("div", { className: "w-full flex flex-col gap-1", children: /* @__PURE__ */ m(
39843
39843
  "div",
39844
39844
  {
39845
39845
  className: `flex gap-0.5 input min-w-32 w-full ${a} ${_ ? "input-error" : ""}`,
39846
- onBlur: (W) => {
39847
- W.relatedTarget != Y.current && V();
39846
+ onBlur: (B) => {
39847
+ B.relatedTarget != q.current && V();
39848
39848
  },
39849
39849
  children: [
39850
39850
  /* @__PURE__ */ m(
@@ -39856,8 +39856,8 @@ function cv({
39856
39856
  onBlur: H
39857
39857
  }
39858
39858
  ),
39859
- /* @__PURE__ */ m(AS, { onClick: B, isHidden: N === "" }),
39860
- /* @__PURE__ */ m(PS, { isOpen: C, buttonRef: Y, getToggleButtonProps: T })
39859
+ /* @__PURE__ */ m(AS, { onClick: Y, isHidden: N === "" }),
39860
+ /* @__PURE__ */ m(PS, { isOpen: C, buttonRef: q, getToggleButtonProps: T })
39861
39861
  ]
39862
39862
  }
39863
39863
  ) }),
@@ -39892,89 +39892,100 @@ function mB({
39892
39892
  Re(() => {
39893
39893
  h(e);
39894
39894
  }, [e]);
39895
- const v = Ee(() => n.filter((B) => {
39896
- const Y = !u.find(
39897
- (de) => r(de) === r(B)
39898
- ), W = t(B, f);
39899
- return Y && W;
39900
- }), [n, u, t, f, r]), _ = Oe(null), b = (B) => {
39901
- var Y;
39902
- h(B), (Y = _.current) == null || Y.dispatchEvent(i(B));
39895
+ const v = Ee(() => n.filter((q) => {
39896
+ const B = !u.find(
39897
+ (he) => r(he) === r(q)
39898
+ ), ae = t(q, f);
39899
+ return B && ae;
39900
+ }), [n, u, t, f, r]), _ = Oe(null), b = (q) => {
39901
+ var B;
39902
+ h(q), (B = _.current) == null || B.dispatchEvent(i(q));
39903
39903
  }, w = DS(_), { getDropdownProps: k, removeSelectedItem: C } = $c({
39904
39904
  selectedItems: u,
39905
- onStateChange({ selectedItems: B, type: Y }) {
39906
- switch (Y) {
39905
+ onStateChange({ selectedItems: q, type: B }) {
39906
+ switch (B) {
39907
39907
  case $c.stateChangeTypes.FunctionRemoveSelectedItem:
39908
- b(B ?? []);
39908
+ b(q ?? []);
39909
39909
  break;
39910
39910
  }
39911
39911
  },
39912
39912
  environment: w
39913
- }), { isOpen: T, getToggleButtonProps: P, getMenuProps: I, getInputProps: O, highlightedIndex: F, getItemProps: N, closeMenu: V } = ui({
39913
+ }), {
39914
+ isOpen: T,
39915
+ getToggleButtonProps: P,
39916
+ getMenuProps: I,
39917
+ getInputProps: O,
39918
+ highlightedIndex: F,
39919
+ getItemProps: N,
39920
+ closeMenu: V,
39921
+ selectItem: U
39922
+ } = ui({
39914
39923
  items: v,
39915
- itemToString(B) {
39916
- return r(B);
39924
+ itemToString(q) {
39925
+ return r(q);
39917
39926
  },
39918
39927
  inputValue: f,
39919
- onStateChange({ inputValue: B, type: Y, selectedItem: W }) {
39920
- switch (Y) {
39928
+ onStateChange({ inputValue: q, type: B, selectedItem: ae }) {
39929
+ switch (B) {
39921
39930
  case ui.stateChangeTypes.InputKeyDownEnter:
39922
39931
  case ui.stateChangeTypes.ItemClick:
39923
- W && (b([...u, W]), g(""));
39932
+ ae && (b([...u, ae]), g(""));
39924
39933
  break;
39925
39934
  case ui.stateChangeTypes.InputChange:
39926
- g((B == null ? void 0 : B.trim()) ?? "");
39935
+ g((q == null ? void 0 : q.trim()) ?? "");
39927
39936
  break;
39928
39937
  }
39929
39938
  },
39930
- stateReducer(B, Y) {
39931
- const { changes: W, type: de } = Y;
39932
- switch (de) {
39939
+ stateReducer(q, B) {
39940
+ const { changes: ae, type: he } = B;
39941
+ switch (he) {
39933
39942
  case ui.stateChangeTypes.InputKeyDownEnter:
39934
39943
  case ui.stateChangeTypes.ItemClick:
39935
39944
  return {
39936
- ...W,
39945
+ ...ae,
39937
39946
  isOpen: !0,
39938
- highlightedIndex: B.highlightedIndex,
39947
+ highlightedIndex: q.highlightedIndex,
39939
39948
  inputValue: ""
39940
39949
  };
39941
39950
  default:
39942
- return W;
39951
+ return ae;
39943
39952
  }
39944
39953
  },
39945
39954
  environment: w
39946
- }), q = () => {
39947
- b([]), g("");
39948
- }, H = Oe(null);
39955
+ }), H = () => {
39956
+ b([]), g(""), U(null);
39957
+ }, Y = Oe(null);
39949
39958
  return /* @__PURE__ */ m("div", { ref: _, className: "relative w-full", children: [
39950
39959
  /* @__PURE__ */ m("div", { className: "w-full flex flex-col gap-1", children: /* @__PURE__ */ m(
39951
39960
  "div",
39952
39961
  {
39953
39962
  className: `flex gap-1 flex-wrap p-1.5 input min-w-24 h-fit w-full ${c}`,
39954
- onBlur: (B) => {
39955
- B.relatedTarget != H.current && V();
39963
+ onBlur: (q) => {
39964
+ q.relatedTarget != Y.current && V();
39956
39965
  },
39957
39966
  children: [
39958
- u.map((B, Y) => /* @__PURE__ */ m(
39967
+ u.map((q, B) => /* @__PURE__ */ m(
39959
39968
  "span",
39960
39969
  {
39961
39970
  className: "inline-flex items-center gap-1 px-2 py-0.5 bg-blue-100 text-black rounded",
39962
39971
  children: [
39963
- a ? a(B) : r(B),
39972
+ a ? a(q) : r(q),
39964
39973
  /* @__PURE__ */ m(
39965
39974
  "button",
39966
39975
  {
39967
- "aria-label": `remove ${r(B)}`,
39976
+ "aria-label": `remove ${r(q)}`,
39968
39977
  className: "cursor-pointer hover:text-red-600",
39969
39978
  type: "button",
39970
- onClick: () => C(B),
39979
+ onClick: () => {
39980
+ C(q), U(null);
39981
+ },
39971
39982
  tabIndex: -1,
39972
39983
  children: "×"
39973
39984
  }
39974
39985
  )
39975
39986
  ]
39976
39987
  },
39977
- `${r(B)}-${Y}`
39988
+ `${r(q)}-${B}`
39978
39989
  )),
39979
39990
  /* @__PURE__ */ m("div", { className: "flex gap-0.5 grow min-w-32", children: [
39980
39991
  /* @__PURE__ */ m(
@@ -39985,12 +39996,12 @@ function mB({
39985
39996
  ...O(k({ preventKeyAction: T }))
39986
39997
  }
39987
39998
  ),
39988
- /* @__PURE__ */ m(AS, { onClick: q, isHidden: u.length === 0 }),
39999
+ /* @__PURE__ */ m(AS, { onClick: H, isHidden: u.length === 0 }),
39989
40000
  /* @__PURE__ */ m(
39990
40001
  PS,
39991
40002
  {
39992
40003
  isOpen: T,
39993
- buttonRef: H,
40004
+ buttonRef: Y,
39994
40005
  getToggleButtonProps: P
39995
40006
  }
39996
40007
  )
@@ -40185,22 +40196,22 @@ let Ko = class extends Fn {
40185
40196
  }
40186
40197
  };
40187
40198
  Qs([
40188
- U({ type: Object })
40199
+ Z({ type: Object })
40189
40200
  ], Ko.prototype, "value", 2);
40190
40201
  Qs([
40191
- U({ type: Array })
40202
+ Z({ type: Array })
40192
40203
  ], Ko.prototype, "fields", 2);
40193
40204
  Qs([
40194
- U({ type: Object })
40205
+ Z({ type: Object })
40195
40206
  ], Ko.prototype, "lapisFilter", 2);
40196
40207
  Qs([
40197
- U({ type: String })
40208
+ Z({ type: String })
40198
40209
  ], Ko.prototype, "width", 2);
40199
40210
  Qs([
40200
- U({ type: String })
40211
+ Z({ type: String })
40201
40212
  ], Ko.prototype, "placeholderText", 2);
40202
40213
  Qs([
40203
- U({ type: Boolean })
40214
+ Z({ type: Boolean })
40204
40215
  ], Ko.prototype, "hideCounts", 2);
40205
40216
  Ko = Qs([
40206
40217
  Xt("gs-location-filter")
@@ -40305,22 +40316,22 @@ let Xo = class extends Fn {
40305
40316
  }
40306
40317
  };
40307
40318
  ea([
40308
- U()
40319
+ Z()
40309
40320
  ], Xo.prototype, "value", 2);
40310
40321
  ea([
40311
- U()
40322
+ Z()
40312
40323
  ], Xo.prototype, "lapisField", 2);
40313
40324
  ea([
40314
- U({ type: Object })
40325
+ Z({ type: Object })
40315
40326
  ], Xo.prototype, "lapisFilter", 2);
40316
40327
  ea([
40317
- U()
40328
+ Z()
40318
40329
  ], Xo.prototype, "placeholderText", 2);
40319
40330
  ea([
40320
- U({ type: Boolean })
40331
+ Z({ type: Boolean })
40321
40332
  ], Xo.prototype, "hideCounts", 2);
40322
40333
  ea([
40323
- U({ type: String })
40334
+ Z({ type: String })
40324
40335
  ], Xo.prototype, "width", 2);
40325
40336
  Xo = ea([
40326
40337
  Xt("gs-text-filter")
@@ -40733,71 +40744,71 @@ function eH({
40733
40744
  initialValue: n,
40734
40745
  enabledMutationTypes: e = Object.values(pt)
40735
40746
  }) {
40736
- var B;
40747
+ var Y;
40737
40748
  const t = Cn(wr), i = Oe(null), [r, o] = be(""), s = Ee(() => nH(n, t, e), [n, t, e]), [a, c] = be(s), [u, h] = be(null), [f, g] = be(!1), v = u ? [u] : [];
40738
40749
  Re(() => {
40739
40750
  c(
40740
- (Y) => Y.filter((W) => e.includes(W.type))
40751
+ (q) => q.filter((B) => e.includes(B.type))
40741
40752
  );
40742
40753
  }, [e, a]);
40743
- const _ = (Y) => {
40744
- var de;
40745
- const W = oH(Y);
40746
- (de = i.current) == null || de.dispatchEvent(
40754
+ const _ = (q) => {
40755
+ var ae;
40756
+ const B = oH(q);
40757
+ (ae = i.current) == null || ae.dispatchEvent(
40747
40758
  new CustomEvent(Qi.mutationFilterChanged, {
40748
- detail: W,
40759
+ detail: B,
40749
40760
  bubbles: !0,
40750
40761
  composed: !0
40751
40762
  })
40752
40763
  );
40753
- }, b = (Y) => {
40754
- _(Y), c(Y);
40755
- }, w = (Y) => {
40756
- Y && (b([...a, Y]), o(""), h(null), g(!1));
40757
- }, k = (Y) => {
40758
- if (g(!1), Y != null && Y.includes(",")) {
40759
- const W = Y.split(",").map((J) => ({ value: J, parsedValue: bg(J.trim(), t) })), de = [], pe = [];
40760
- for (const J of W)
40761
- J.parsedValue === null ? pe.push(J.value.trim()) : e.includes(J.parsedValue.type) ? de.push(J.parsedValue) : pe.push(J.parsedValue.value.code);
40762
- const Me = [...a, ...de];
40763
- b(tH(Me)), o(pe.join(",")), h(null);
40764
- } else if (o(Y ?? ""), Y !== void 0) {
40765
- const W = bg(Y, t), de = a.find(
40766
- (Me) => Me.value.code === (W == null ? void 0 : W.value.code)
40767
- ), pe = W !== null && e.includes(W.type);
40768
- !de && pe && h(W);
40769
- }
40770
- }, C = ((B = i.current) == null ? void 0 : B.shadowRoot) ?? void 0, T = C !== void 0 ? {
40764
+ }, b = (q) => {
40765
+ _(q), c(q);
40766
+ }, w = (q) => {
40767
+ q && (b([...a, q]), o(""), h(null), g(!1));
40768
+ }, k = (q) => {
40769
+ if (g(!1), q != null && q.includes(",")) {
40770
+ const B = q.split(",").map((J) => ({ value: J, parsedValue: bg(J.trim(), t) })), ae = [], he = [];
40771
+ for (const J of B)
40772
+ J.parsedValue === null ? he.push(J.value.trim()) : e.includes(J.parsedValue.type) ? ae.push(J.parsedValue) : he.push(J.parsedValue.value.code);
40773
+ const Me = [...a, ...ae];
40774
+ b(tH(Me)), o(he.join(",")), h(null);
40775
+ } else if (o(q ?? ""), q !== void 0) {
40776
+ const B = bg(q, t), ae = a.find(
40777
+ (Me) => Me.value.code === (B == null ? void 0 : B.value.code)
40778
+ ), he = B !== null && e.includes(B.type);
40779
+ !ae && he && h(B);
40780
+ }
40781
+ }, C = ((Y = i.current) == null ? void 0 : Y.shadowRoot) ?? void 0, T = C !== void 0 ? {
40771
40782
  addEventListener: window.addEventListener.bind(window),
40772
40783
  removeEventListener: window.removeEventListener.bind(window),
40773
40784
  document: C.ownerDocument,
40774
40785
  Node: window.Node
40775
40786
  } : void 0, { getDropdownProps: P, removeSelectedItem: I } = $c({
40776
40787
  selectedItems: a,
40777
- onStateChange({ selectedItems: Y, type: W }) {
40778
- switch (W) {
40788
+ onStateChange({ selectedItems: q, type: B }) {
40789
+ switch (B) {
40779
40790
  case $c.stateChangeTypes.FunctionRemoveSelectedItem:
40780
- b(Y ?? []);
40791
+ b(q ?? []);
40781
40792
  break;
40782
40793
  }
40783
40794
  },
40784
40795
  environment: T
40785
- }), { isOpen: O, getMenuProps: F, getInputProps: N, highlightedIndex: V, getItemProps: q, selectedItem: H } = ui({
40796
+ }), { isOpen: O, getMenuProps: F, getInputProps: N, highlightedIndex: V, getItemProps: U, selectedItem: H } = ui({
40786
40797
  items: v,
40787
- itemToString(Y) {
40788
- return Y ? Y.value.code : "";
40798
+ itemToString(q) {
40799
+ return q ? q.value.code : "";
40789
40800
  },
40790
40801
  defaultHighlightedIndex: 0,
40791
40802
  inputValue: r,
40792
- onStateChange({ inputValue: Y, type: W, selectedItem: de }) {
40793
- switch (W) {
40803
+ onStateChange({ inputValue: q, type: B, selectedItem: ae }) {
40804
+ switch (B) {
40794
40805
  case ui.stateChangeTypes.InputKeyDownEnter:
40795
40806
  case ui.stateChangeTypes.ItemClick:
40796
40807
  case ui.stateChangeTypes.InputBlur:
40797
- w(de);
40808
+ w(ae);
40798
40809
  break;
40799
40810
  case ui.stateChangeTypes.InputChange: {
40800
- k(Y);
40811
+ k(q);
40801
40812
  break;
40802
40813
  }
40803
40814
  }
@@ -40811,15 +40822,15 @@ function eH({
40811
40822
  );
40812
40823
  return /* @__PURE__ */ m("div", { className: "w-full", ref: i, children: [
40813
40824
  /* @__PURE__ */ m("div", { className: `flex gap-x-1 flex-wrap p-1 input h-fit w-full ${f ? "input-error" : ""}`, children: [
40814
- a.map((Y, W) => /* @__PURE__ */ m("div", { className: "my-1", children: /* @__PURE__ */ m(
40825
+ a.map((q, B) => /* @__PURE__ */ m("div", { className: "my-1", children: /* @__PURE__ */ m(
40815
40826
  rH,
40816
40827
  {
40817
40828
  handleRemoveValue: () => {
40818
- I(Y);
40829
+ I(q);
40819
40830
  },
40820
- mutationFilter: Y
40831
+ mutationFilter: q
40821
40832
  }
40822
- ) }, `selected-item-${W}`)),
40833
+ ) }, `selected-item-${B}`)),
40823
40834
  /* @__PURE__ */ m("div", { className: "flex gap-0.5 grow p-1", children: [
40824
40835
  /* @__PURE__ */ m(
40825
40836
  "input",
@@ -40841,17 +40852,17 @@ function eH({
40841
40852
  {
40842
40853
  className: `absolute w-inherit bg-white mt-1 shadow-md max-h-80 overflow-scroll p-0 z-10 ${!O && "hidden"}`,
40843
40854
  ...F(),
40844
- children: v.map((Y, W) => /* @__PURE__ */ m(
40855
+ children: v.map((q, B) => /* @__PURE__ */ m(
40845
40856
  "li",
40846
40857
  {
40847
- className: `${V === W && "bg-blue-300"} ${H === Y && "font-bold"} py-2 px-3 shadow-sm flex flex-col cursor-pointer`,
40848
- ...q({ item: Y, index: W }),
40858
+ className: `${V === B && "bg-blue-300"} ${H === q && "font-bold"} py-2 px-3 shadow-sm flex flex-col cursor-pointer`,
40859
+ ...U({ item: q, index: B }),
40849
40860
  style: {
40850
- backgroundColor: OS(Y, V === W ? 0.4 : 0.2)
40861
+ backgroundColor: OS(q, V === B ? 0.4 : 0.2)
40851
40862
  },
40852
- children: /* @__PURE__ */ m("span", { children: Y.value.code })
40863
+ children: /* @__PURE__ */ m("span", { children: q.value.code })
40853
40864
  },
40854
- `${Y.value.code}${W}`
40865
+ `${q.value.code}${B}`
40855
40866
  ))
40856
40867
  }
40857
40868
  )
@@ -40946,13 +40957,13 @@ let jc = class extends Fn {
40946
40957
  }
40947
40958
  };
40948
40959
  Zh([
40949
- U({ type: Object })
40960
+ Z({ type: Object })
40950
40961
  ], jc.prototype, "initialValue", 2);
40951
40962
  Zh([
40952
- U({ type: String })
40963
+ Z({ type: String })
40953
40964
  ], jc.prototype, "width", 2);
40954
40965
  Zh([
40955
- U({ type: Object })
40966
+ Z({ type: Object })
40956
40967
  ], jc.prototype, "enabledMutationTypes", 2);
40957
40968
  jc = Zh([
40958
40969
  Xt("gs-mutation-filter")
@@ -41161,7 +41172,7 @@ let mo = class extends Fn {
41161
41172
  }
41162
41173
  };
41163
41174
  as([
41164
- U({
41175
+ Z({
41165
41176
  converter: (n) => {
41166
41177
  if (n === null)
41167
41178
  return n;
@@ -41175,22 +41186,22 @@ as([
41175
41186
  })
41176
41187
  ], mo.prototype, "value", 2);
41177
41188
  as([
41178
- U()
41189
+ Z()
41179
41190
  ], mo.prototype, "lapisField", 2);
41180
41191
  as([
41181
- U({ type: Boolean })
41192
+ Z({ type: Boolean })
41182
41193
  ], mo.prototype, "multiSelect", 2);
41183
41194
  as([
41184
- U({ type: Object })
41195
+ Z({ type: Object })
41185
41196
  ], mo.prototype, "lapisFilter", 2);
41186
41197
  as([
41187
- U()
41198
+ Z()
41188
41199
  ], mo.prototype, "placeholderText", 2);
41189
41200
  as([
41190
- U({ type: String })
41201
+ Z({ type: String })
41191
41202
  ], mo.prototype, "width", 2);
41192
41203
  as([
41193
- U({ type: Boolean })
41204
+ Z({ type: Boolean })
41194
41205
  ], mo.prototype, "hideCounts", 2);
41195
41206
  mo = as([
41196
41207
  Xt("gs-lineage-filter")
@@ -41420,22 +41431,22 @@ let Jo = class extends Fn {
41420
41431
  }
41421
41432
  };
41422
41433
  ta([
41423
- U({ type: Object })
41434
+ Z({ type: Object })
41424
41435
  ], Jo.prototype, "value", 2);
41425
41436
  ta([
41426
- U()
41437
+ Z()
41427
41438
  ], Jo.prototype, "lapisField", 2);
41428
41439
  ta([
41429
- U({ type: Number })
41440
+ Z({ type: Number })
41430
41441
  ], Jo.prototype, "sliderMin", 2);
41431
41442
  ta([
41432
- U({ type: Number })
41443
+ Z({ type: Number })
41433
41444
  ], Jo.prototype, "sliderMax", 2);
41434
41445
  ta([
41435
- U({ type: Number })
41446
+ Z({ type: Number })
41436
41447
  ], Jo.prototype, "sliderStep", 2);
41437
41448
  ta([
41438
- U({ type: String })
41449
+ Z({ type: String })
41439
41450
  ], Jo.prototype, "width", 2);
41440
41451
  Jo = ta([
41441
41452
  Xt("gs-number-range-filter")