@opengis/admin 0.2.138 → 0.2.140

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.
@@ -1,4 +1,4 @@
1
- import { ref as wt, getCurrentInstance as $s, onMounted as rl, resolveComponent as qe, openBlock as K, createBlock as Bt, withCtx as $t, createElementVNode as L, unref as wo, createVNode as je, createCommentVNode as xt, createElementBlock as ie, Fragment as Tt, shallowRef as wz, shallowReactive as Sz, inject as mu, nextTick as Ex, defineComponent as Hs, reactive as kz, computed as Oi, h as Eo, provide as qv, watch as aa, watchEffect as t2, normalizeClass as cn, toDisplayString as We, renderSlot as n2, withDirectives as Jr, vModelText as i2, renderList as en, normalizeStyle as ea, vModelCheckbox as gu, resolveDynamicComponent as zs, vModelRadio as Ez, createStaticVNode as Qa, vShow as Cp, withModifiers as Rg, onBeforeUnmount as Tp, markRaw as Cz, customRef as Tz, Transition as Ap, createTextVNode as _r, Teleport as r2, mergeModels as Az, useModel as Mz, mergeProps as Of, createApp as Cx, defineCustomElement as Dz } from "vue";
1
+ import { ref as wt, getCurrentInstance as $s, onMounted as rl, resolveComponent as qe, openBlock as K, createBlock as Bt, withCtx as $t, createElementVNode as L, unref as wo, createVNode as je, createCommentVNode as xt, createElementBlock as ie, Fragment as Tt, shallowRef as wz, shallowReactive as Sz, inject as mu, nextTick as Ex, defineComponent as Hs, reactive as kz, computed as Oi, h as Eo, provide as qv, watch as oa, watchEffect as t2, normalizeClass as cn, toDisplayString as We, renderSlot as n2, withDirectives as Jr, vModelText as i2, renderList as en, normalizeStyle as Ja, vModelCheckbox as gu, resolveDynamicComponent as zs, vModelRadio as Ez, createStaticVNode as Qa, vShow as Cp, withModifiers as Rg, onBeforeUnmount as Tp, markRaw as Cz, customRef as Tz, Transition as Ap, createTextVNode as _r, Teleport as r2, mergeModels as Az, useModel as Mz, mergeProps as Of, createApp as Cx, defineCustomElement as Dz } from "vue";
2
2
  function s2(n, e) {
3
3
  return function() {
4
4
  return n.apply(e, arguments);
@@ -1897,7 +1897,7 @@ function bN(n, e) {
1897
1897
  * (c) 2024 Eduardo San Martin Morote
1898
1898
  * @license MIT
1899
1899
  */
1900
- const Va = typeof document < "u";
1900
+ const $a = typeof document < "u";
1901
1901
  function D2(n) {
1902
1902
  return typeof n == "object" || "displayName" in n || "props" in n || "__vccOpts" in n;
1903
1903
  }
@@ -2028,7 +2028,7 @@ var Vf;
2028
2028
  })(Vf || (Vf = {}));
2029
2029
  function FN(n) {
2030
2030
  if (!n)
2031
- if (Va) {
2031
+ if ($a) {
2032
2032
  const e = document.querySelector("base");
2033
2033
  n = e && e.getAttribute("href") || "/", n = n.replace(/^\w+:\/\/[^\/]+/, "");
2034
2034
  } else
@@ -2277,7 +2277,7 @@ function Xd(n, e) {
2277
2277
  [v_]: !0
2278
2278
  }, e);
2279
2279
  }
2280
- function Ra(n, e) {
2280
+ function Pa(n, e) {
2281
2281
  return n instanceof Error && v_ in n && (e == null || !!(n.type & e));
2282
2282
  }
2283
2283
  const KN = ["params", "query", "hash"];
@@ -2876,7 +2876,7 @@ function Dk(n) {
2876
2876
  }
2877
2877
  return Promise.resolve();
2878
2878
  }
2879
- if (process.env.NODE_ENV !== "production" && Va) {
2879
+ if (process.env.NODE_ENV !== "production" && $a) {
2880
2880
  const g = $s();
2881
2881
  if (g) {
2882
2882
  const _ = {
@@ -2993,7 +2993,7 @@ const Pk = (n, e, t) => n ?? e ?? t, EB = /* @__PURE__ */ Hs({
2993
2993
  }), o = Oi(() => r.value.matched[a.value]);
2994
2994
  qv(Mk, Oi(() => a.value + 1)), qv(vB, o), qv(__, r);
2995
2995
  const f = wt();
2996
- return aa(() => [f.value, o.value, n.name], ([m, g, _], [k, C, D]) => {
2996
+ return oa(() => [f.value, o.value, n.name], ([m, g, _], [k, C, D]) => {
2997
2997
  g && (g.instances[_] = m, C && C !== g && m && m === k && (g.leaveGuards.size || (g.leaveGuards = C.leaveGuards), g.updateGuards.size || (g.updateGuards = C.updateGuards))), m && g && // if there is no instance but to and from are the same this might be
2998
2998
  // the first visit
2999
2999
  (!C || !Jl(g, C) || !k) && (g.enterCallbacks[_] || []).forEach((z) => z(m));
@@ -3007,7 +3007,7 @@ const Pk = (n, e, t) => n ?? e ?? t, EB = /* @__PURE__ */ Hs({
3007
3007
  },
3008
3008
  ref: f
3009
3009
  }));
3010
- if (process.env.NODE_ENV !== "production" && Va && O.ref) {
3010
+ if (process.env.NODE_ENV !== "production" && $a && O.ref) {
3011
3011
  const F = {
3012
3012
  depth: a.value,
3013
3013
  name: _.name,
@@ -3110,7 +3110,7 @@ function MB(n, e, t) {
3110
3110
  backgroundColor: D
3111
3111
  });
3112
3112
  }));
3113
- }), aa(e.currentRoute, () => {
3113
+ }), oa(e.currentRoute, () => {
3114
3114
  f(), r.notifyComponentUpdate(), r.sendInspectorTree(o), r.sendInspectorState(o);
3115
3115
  });
3116
3116
  const s = "router:navigations:" + i;
@@ -3321,7 +3321,7 @@ function FB(n) {
3321
3321
  throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
3322
3322
  const s = Ef(), a = Ef(), o = Ef(), f = wz(Il);
3323
3323
  let m = Il;
3324
- Va && n.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
3324
+ $a && n.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
3325
3325
  const g = Kv.bind(null, (De) => "" + De), _ = Kv.bind(null, RN), k = (
3326
3326
  // @ts-expect-error: intentionally avoid the type check
3327
3327
  Kv.bind(null, Zd)
@@ -3451,9 +3451,9 @@ ${JSON.stringify(vt, null, 2)}
3451
3451
  // This cannot be the first navigation because the initial location
3452
3452
  // cannot be manually navigated to
3453
3453
  !1
3454
- )), (Ae ? Promise.resolve(Ae) : mt(Tn, vt)).catch((qn) => Ra(qn) ? (
3454
+ )), (Ae ? Promise.resolve(Ae) : mt(Tn, vt)).catch((qn) => Pa(qn) ? (
3455
3455
  // navigation redirects still mark the router as ready
3456
- Ra(
3456
+ Pa(
3457
3457
  qn,
3458
3458
  2
3459
3459
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
@@ -3463,7 +3463,7 @@ ${JSON.stringify(vt, null, 2)}
3463
3463
  Jt(qn, Tn, vt)
3464
3464
  )).then((qn) => {
3465
3465
  if (qn) {
3466
- if (Ra(
3466
+ if (Pa(
3467
3467
  qn,
3468
3468
  2
3469
3469
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
@@ -3536,7 +3536,7 @@ ${JSON.stringify(vt, null, 2)}
3536
3536
  for (const Ht of a.list())
3537
3537
  it.push(Ol(Ht, De, Ze));
3538
3538
  return it.push(qt), ni(it);
3539
- }).catch((Ht) => Ra(
3539
+ }).catch((Ht) => Pa(
3540
3540
  Ht,
3541
3541
  8
3542
3542
  /* ErrorTypes.NAVIGATION_CANCELLED */
@@ -3549,7 +3549,7 @@ ${JSON.stringify(vt, null, 2)}
3549
3549
  const Sn = ee(De, Ze);
3550
3550
  if (Sn)
3551
3551
  return Sn;
3552
- const qt = Ze === Il, Ht = Va ? history.state : {};
3552
+ const qt = Ze === Il, Ht = $a ? history.state : {};
3553
3553
  it && (vt || qt ? r.replace(De.fullPath, jn({
3554
3554
  scroll: qt && Ht && Ht.scroll
3555
3555
  }, nn)) : r.push(De.fullPath, nn)), f.value = De, xn(De, Ze, it, qt), dn();
@@ -3566,11 +3566,11 @@ ${JSON.stringify(vt, null, 2)}
3566
3566
  }
3567
3567
  m = vt;
3568
3568
  const Sn = f.value;
3569
- Va && UN(bk(Sn.fullPath, it.delta), qy()), mt(vt, Sn).catch((qt) => Ra(
3569
+ $a && UN(bk(Sn.fullPath, it.delta), qy()), mt(vt, Sn).catch((qt) => Pa(
3570
3570
  qt,
3571
3571
  12
3572
3572
  /* ErrorTypes.NAVIGATION_CANCELLED */
3573
- ) ? qt : Ra(
3573
+ ) ? qt : Pa(
3574
3574
  qt,
3575
3575
  2
3576
3576
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
@@ -3581,7 +3581,7 @@ ${JSON.stringify(vt, null, 2)}
3581
3581
  vt
3582
3582
  // avoid an uncaught rejection, let push call triggerError
3583
3583
  ).then((Ht) => {
3584
- Ra(
3584
+ Pa(
3585
3585
  Ht,
3586
3586
  20
3587
3587
  /* ErrorTypes.NAVIGATION_DUPLICATED */
@@ -3594,11 +3594,11 @@ ${JSON.stringify(vt, null, 2)}
3594
3594
  !1
3595
3595
  ), qt && (it.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
3596
3596
  // entry while a different route is displayed
3597
- !Ra(
3597
+ !Pa(
3598
3598
  qt,
3599
3599
  8
3600
3600
  /* ErrorTypes.NAVIGATION_CANCELLED */
3601
- ) ? r.go(-it.delta, !1) : it.type === rp.pop && Ra(
3601
+ ) ? r.go(-it.delta, !1) : it.type === rp.pop && Pa(
3602
3602
  qt,
3603
3603
  20
3604
3604
  /* ErrorTypes.NAVIGATION_DUPLICATED */
@@ -3622,7 +3622,7 @@ ${JSON.stringify(vt, null, 2)}
3622
3622
  }
3623
3623
  function xn(De, Ze, it, vt) {
3624
3624
  const { scrollBehavior: nn } = n;
3625
- if (!Va || !nn)
3625
+ if (!$a || !nn)
3626
3626
  return Promise.resolve();
3627
3627
  const Sn = !it && WN(bk(De.fullPath, 0)) || (vt || !it) && history.state && history.state.scroll || null;
3628
3628
  return Ex().then(() => nn(De, Ze, Sn)).then((qt) => qt && HN(qt)).catch((qt) => Jt(qt, De, Ze));
@@ -3654,7 +3654,7 @@ ${JSON.stringify(vt, null, 2)}
3654
3654
  De.component("RouterLink", wB), De.component("RouterView", CB), De.config.globalProperties.$router = Ze, Object.defineProperty(De.config.globalProperties, "$route", {
3655
3655
  enumerable: !0,
3656
3656
  get: () => wo(f)
3657
- }), Va && // used for the initial navigation client side to avoid pushing
3657
+ }), $a && // used for the initial navigation client side to avoid pushing
3658
3658
  // multiple times when the router is used in multiple apps
3659
3659
  !ei && f.value === Il && (ei = !0, Z(r.location).catch((nn) => {
3660
3660
  process.env.NODE_ENV !== "production" && _n("Unexpected error when starting the router:", nn);
@@ -3669,7 +3669,7 @@ ${JSON.stringify(vt, null, 2)}
3669
3669
  const vt = De.unmount;
3670
3670
  On.add(De), De.unmount = function() {
3671
3671
  On.delete(De), On.size < 1 && (m = Il, ct && ct(), ct = null, f.value = Il, ei = !1, jt = !1), vt();
3672
- }, process.env.NODE_ENV !== "production" && Va && MB(De, Ze, e);
3672
+ }, process.env.NODE_ENV !== "production" && $a && MB(De, Ze, e);
3673
3673
  }
3674
3674
  };
3675
3675
  function ni(De) {
@@ -3698,27 +3698,27 @@ const jB = [
3698
3698
  {
3699
3699
  name: "edit",
3700
3700
  path: "/edit",
3701
- component: () => import("./edit-page-BLq1tsDB.js")
3701
+ component: () => import("./edit-page-BTCh_Gvu.js")
3702
3702
  },
3703
3703
  {
3704
3704
  name: "add",
3705
3705
  path: "/add",
3706
- component: () => import("./add-page-fg8ciELA.js")
3706
+ component: () => import("./add-page-B_Q03qZm.js")
3707
3707
  },
3708
3708
  {
3709
3709
  path: "/profile",
3710
3710
  name: "profile",
3711
- component: () => import("./profile-page-BN5OMKCo.js")
3711
+ component: () => import("./profile-page-C3Aq_lhq.js")
3712
3712
  },
3713
3713
  {
3714
3714
  name: "card-view",
3715
3715
  path: "/card",
3716
- component: () => import("./card-view-BKf52Mrm.js"),
3716
+ component: () => import("./card-view-BbOtMYjf.js"),
3717
3717
  children: [
3718
3718
  {
3719
3719
  name: "table",
3720
3720
  path: ":table",
3721
- component: () => import("./card-view-BKf52Mrm.js"),
3721
+ component: () => import("./card-view-BbOtMYjf.js"),
3722
3722
  children: [
3723
3723
  {
3724
3724
  name: "card",
@@ -3779,14 +3779,14 @@ const GB = /* @__PURE__ */ pt(HB, [["render", qB]]), YB = (n) => {
3779
3779
  {
3780
3780
  path: "/",
3781
3781
  name: "home",
3782
- component: () => import("./admin-view-CduZWbau.js"),
3782
+ component: () => import("./admin-view-DUWblwKD.js"),
3783
3783
  children: [
3784
3784
  ...e,
3785
3785
  ...n,
3786
3786
  // { path: '/', redirect: '/home' },
3787
3787
  {
3788
3788
  path: "/:catchAll(.*)",
3789
- component: () => import("./admin-interface-C7D4mjAz.js")
3789
+ component: () => import("./admin-interface-CDobnB79.js")
3790
3790
  }
3791
3791
  ]
3792
3792
  }
@@ -3892,7 +3892,7 @@ const w_ = /* @__PURE__ */ pt(JB, [["render", eF]]), tF = { class: "w-[170px]" }
3892
3892
  if (document.body.click(), _.stopPropagation(), o.value)
3893
3893
  a.value.togglePopover();
3894
3894
  else {
3895
- const k = aa(
3895
+ const k = oa(
3896
3896
  () => o.value,
3897
3897
  (C) => {
3898
3898
  C && (k(), a.value.togglePopover());
@@ -3935,7 +3935,7 @@ const w_ = /* @__PURE__ */ pt(JB, [["render", eF]]), tF = { class: "w-[170px]" }
3935
3935
  value: O == null ? void 0 : O.id,
3936
3936
  type: "checkbox",
3937
3937
  class: "w-1 h-3 border-0 rounded-full appearance-none shrink-0 checked:bg-none",
3938
- style: ea({ backgroundColor: (O == null ? void 0 : O.color) || "#ffffff" }),
3938
+ style: Ja({ backgroundColor: (O == null ? void 0 : O.color) || "#ffffff" }),
3939
3939
  onChange: (F) => m(O == null ? void 0 : O.id)
3940
3940
  }, null, 44, rF), [
3941
3941
  [gu, r.value]
@@ -4054,7 +4054,7 @@ function dF(n, e, t, i, r, s) {
4054
4054
  s.getData ? (K(), ie("div", {
4055
4055
  key: 0,
4056
4056
  class: "py-1 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium bg-green-100 text-green-800 rounded-full",
4057
- style: ea({
4057
+ style: Ja({
4058
4058
  backgroundColor: s.getBGColor((g = s.getData) == null ? void 0 : g.color),
4059
4059
  color: (_ = s.getData) == null ? void 0 : _.color
4060
4060
  })
@@ -4067,7 +4067,7 @@ function dF(n, e, t, i, r, s) {
4067
4067
  s.getData ? (K(), ie("div", {
4068
4068
  key: 0,
4069
4069
  class: "py-1 px-2.5 inline-flex items-center gap-x-1.5 text-xs font-medium bg-green-100 text-green-800 rounded-full",
4070
- style: ea({
4070
+ style: Ja({
4071
4071
  backgroundColor: s.getBGColor((o = s.getData) == null ? void 0 : o.color),
4072
4072
  color: (f = s.getData) == null ? void 0 : f.color
4073
4073
  })
@@ -4326,7 +4326,7 @@ function Bl(n, e) {
4326
4326
  Hn(e, t) && (n[t] = e[t]);
4327
4327
  return Hn(e, "toString") && (n.toString = e.toString), Hn(e, "valueOf") && (n.valueOf = e.valueOf), n;
4328
4328
  }
4329
- function la(n, e, t, i) {
4329
+ function aa(n, e, t, i) {
4330
4330
  return SA(n, e, t, i, !0).utc();
4331
4331
  }
4332
4332
  function PF() {
@@ -4371,7 +4371,7 @@ function Ox(n) {
4371
4371
  return n._isValid;
4372
4372
  }
4373
4373
  function Yy(n) {
4374
- var e = la(NaN);
4374
+ var e = aa(NaN);
4375
4375
  return n != null ? Bl(gn(e), n) : gn(e).userInvalidated = !0, e;
4376
4376
  }
4377
4377
  var Ok = _t.momentProperties = [], eb = !1;
@@ -4422,13 +4422,13 @@ function nA(n, e) {
4422
4422
  }
4423
4423
  _t.suppressDeprecationWarnings = !1;
4424
4424
  _t.deprecationHandler = null;
4425
- function ca(n) {
4425
+ function la(n) {
4426
4426
  return typeof Function < "u" && n instanceof Function || Object.prototype.toString.call(n) === "[object Function]";
4427
4427
  }
4428
4428
  function RF(n) {
4429
4429
  var e, t;
4430
4430
  for (t in n)
4431
- Hn(n, t) && (e = n[t], ca(e) ? this[t] = e : this["_" + t] = e);
4431
+ Hn(n, t) && (e = n[t], la(e) ? this[t] = e : this["_" + t] = e);
4432
4432
  this._config = n, this._dayOfMonthOrdinalParseLenient = new RegExp(
4433
4433
  (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source
4434
4434
  );
@@ -4461,9 +4461,9 @@ var OF = {
4461
4461
  };
4462
4462
  function zF(n, e, t) {
4463
4463
  var i = this._calendar[n] || this._calendar.sameElse;
4464
- return ca(i) ? i.call(e, t) : i;
4464
+ return la(i) ? i.call(e, t) : i;
4465
4465
  }
4466
- function ta(n, e, t) {
4466
+ function ea(n, e, t) {
4467
4467
  var i = "" + Math.abs(n), r = e - i.length, s = n >= 0;
4468
4468
  return (s ? t ? "+" : "" : "-") + Math.pow(10, Math.max(0, r)).toString().substr(1) + i;
4469
4469
  }
@@ -4473,7 +4473,7 @@ function Vt(n, e, t, i) {
4473
4473
  typeof i == "string" && (r = function() {
4474
4474
  return this[i]();
4475
4475
  }), n && (Fd[n] = r), e && (Fd[e[0]] = function() {
4476
- return ta(r.apply(this, arguments), e[1], e[2]);
4476
+ return ea(r.apply(this, arguments), e[1], e[2]);
4477
4477
  }), t && (Fd[t] = function() {
4478
4478
  return this.localeData().ordinal(
4479
4479
  r.apply(this, arguments),
@@ -4491,7 +4491,7 @@ function NF(n) {
4491
4491
  return function(r) {
4492
4492
  var s = "", a;
4493
4493
  for (a = 0; a < i; a++)
4494
- s += ca(e[a]) ? e[a].call(r, n) : e[a];
4494
+ s += la(e[a]) ? e[a].call(r, n) : e[a];
4495
4495
  return s;
4496
4496
  };
4497
4497
  }
@@ -4552,11 +4552,11 @@ var WF = {
4552
4552
  };
4553
4553
  function qF(n, e, t, i) {
4554
4554
  var r = this._relativeTime[t];
4555
- return ca(r) ? r(n, e, t, i) : r.replace(/%d/i, n);
4555
+ return la(r) ? r(n, e, t, i) : r.replace(/%d/i, n);
4556
4556
  }
4557
4557
  function GF(n, e) {
4558
4558
  var t = this._relativeTime[n > 0 ? "future" : "past"];
4559
- return ca(t) ? t(e) : t.replace(/%s/i, e);
4559
+ return la(t) ? t(e) : t.replace(/%s/i, e);
4560
4560
  }
4561
4561
  var Lk = {
4562
4562
  D: "date",
@@ -4646,7 +4646,7 @@ function ZF(n) {
4646
4646
  var rA = /\d/, Us = /\d\d/, sA = /\d{3}/, Fx = /\d{4}/, Zy = /[+-]?\d{6}/, bi = /\d\d?/, oA = /\d\d\d\d?/, aA = /\d\d\d\d\d\d?/, Xy = /\d{1,3}/, $x = /\d{1,4}/, Ky = /[+-]?\d{1,6}/, ph = /\d+/, Jy = /[+-]?\d+/, XF = /Z|[+-]\d\d:?\d\d/gi, Qy = /Z|[+-]\d\d(?::?\d\d)?/gi, KF = /[+-]?\d+(\.\d{1,3})?/, Op = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, mh = /^[1-9]\d?/, Vx = /^([1-9]\d|\d)/, ey;
4647
4647
  ey = {};
4648
4648
  function Dt(n, e, t) {
4649
- ey[n] = ca(e) ? e : function(i, r) {
4649
+ ey[n] = la(e) ? e : function(i, r) {
4650
4650
  return i && t ? t : e;
4651
4651
  };
4652
4652
  }
@@ -4654,7 +4654,7 @@ function JF(n, e) {
4654
4654
  return Hn(ey, n) ? ey[n](e._strict, e._locale) : new RegExp(QF(n));
4655
4655
  }
4656
4656
  function QF(n) {
4657
- return Ya(
4657
+ return Ga(
4658
4658
  n.replace("\\", "").replace(
4659
4659
  /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
4660
4660
  function(e, t, i, r, s) {
@@ -4663,7 +4663,7 @@ function QF(n) {
4663
4663
  )
4664
4664
  );
4665
4665
  }
4666
- function Ya(n) {
4666
+ function Ga(n) {
4667
4667
  return n.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
4668
4668
  }
4669
4669
  function so(n) {
@@ -4692,10 +4692,10 @@ function e4(n, e, t) {
4692
4692
  function e0(n) {
4693
4693
  return n % 4 === 0 && n % 100 !== 0 || n % 400 === 0;
4694
4694
  }
4695
- var Vr = 0, ja = 1, Zo = 2, Zi = 3, So = 4, Ha = 5, tu = 6, t4 = 7, n4 = 8;
4695
+ var Vr = 0, Va = 1, Zo = 2, Zi = 3, So = 4, ja = 5, tu = 6, t4 = 7, n4 = 8;
4696
4696
  Vt("Y", 0, 0, function() {
4697
4697
  var n = this.year();
4698
- return n <= 9999 ? ta(n, 4) : "+" + n;
4698
+ return n <= 9999 ? ea(n, 4) : "+" + n;
4699
4699
  });
4700
4700
  Vt(0, ["YY", 2], 0, function() {
4701
4701
  return this.year() % 100;
@@ -4781,7 +4781,7 @@ function cA(n, e, t) {
4781
4781
  }
4782
4782
  }
4783
4783
  function r4(n) {
4784
- return n = fo(n), ca(this[n]) ? this[n]() : this;
4784
+ return n = fo(n), la(this[n]) ? this[n]() : this;
4785
4785
  }
4786
4786
  function s4(n, e) {
4787
4787
  if (typeof n == "object") {
@@ -4789,7 +4789,7 @@ function s4(n, e) {
4789
4789
  var t = ZF(n), i, r = t.length;
4790
4790
  for (i = 0; i < r; i++)
4791
4791
  this[t[i].unit](n[t[i].unit]);
4792
- } else if (n = fo(n), ca(this[n]))
4792
+ } else if (n = fo(n), la(this[n]))
4793
4793
  return this[n](e);
4794
4794
  return this;
4795
4795
  }
@@ -4828,11 +4828,11 @@ Dt("MMMM", function(n, e) {
4828
4828
  return e.monthsRegex(n);
4829
4829
  });
4830
4830
  ci(["M", "MM"], function(n, e) {
4831
- e[ja] = Dn(n) - 1;
4831
+ e[Va] = Dn(n) - 1;
4832
4832
  });
4833
4833
  ci(["MMM", "MMMM"], function(n, e, t, i) {
4834
4834
  var r = t._locale.monthsParse(n, i, t._strict);
4835
- r != null ? e[ja] = r : gn(t).invalidMonth = n;
4835
+ r != null ? e[Va] = r : gn(t).invalidMonth = n;
4836
4836
  });
4837
4837
  var a4 = "January_February_March_April_May_June_July_August_September_October_November_December".split(
4838
4838
  "_"
@@ -4847,7 +4847,7 @@ function h4(n, e, t) {
4847
4847
  var i, r, s, a = n.toLocaleLowerCase();
4848
4848
  if (!this._monthsParse)
4849
4849
  for (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = [], i = 0; i < 12; ++i)
4850
- s = la([2e3, i]), this._shortMonthsParse[i] = this.monthsShort(
4850
+ s = aa([2e3, i]), this._shortMonthsParse[i] = this.monthsShort(
4851
4851
  s,
4852
4852
  ""
4853
4853
  ).toLocaleLowerCase(), this._longMonthsParse[i] = this.months(s, "").toLocaleLowerCase();
@@ -4858,7 +4858,7 @@ function f4(n, e, t) {
4858
4858
  if (this._monthsParseExact)
4859
4859
  return h4.call(this, n, e, t);
4860
4860
  for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), i = 0; i < 12; i++) {
4861
- if (r = la([2e3, i]), t && !this._longMonthsParse[i] && (this._longMonthsParse[i] = new RegExp(
4861
+ if (r = aa([2e3, i]), t && !this._longMonthsParse[i] && (this._longMonthsParse[i] = new RegExp(
4862
4862
  "^" + this.months(r, "").replace(".", "") + "$",
4863
4863
  "i"
4864
4864
  ), this._shortMonthsParse[i] = new RegExp(
@@ -4902,7 +4902,7 @@ function pA() {
4902
4902
  }
4903
4903
  var e = [], t = [], i = [], r, s, a, o;
4904
4904
  for (r = 0; r < 12; r++)
4905
- s = la([2e3, r]), a = Ya(this.monthsShort(s, "")), o = Ya(this.months(s, "")), e.push(a), t.push(o), i.push(o), i.push(a);
4905
+ s = aa([2e3, r]), a = Ga(this.monthsShort(s, "")), o = Ga(this.months(s, "")), e.push(a), t.push(o), i.push(o), i.push(a);
4906
4906
  e.sort(n), t.sort(n), i.sort(n), this._monthsRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
4907
4907
  "^(" + t.join("|") + ")",
4908
4908
  "i"
@@ -4932,12 +4932,12 @@ function mA(n, e, t, i, r) {
4932
4932
  }
4933
4933
  function ap(n, e, t) {
4934
4934
  var i = ty(n.year(), e, t), r = Math.floor((n.dayOfYear() - i - 1) / 7) + 1, s, a;
4935
- return r < 1 ? (a = n.year() - 1, s = r + Za(a, e, t)) : r > Za(n.year(), e, t) ? (s = r - Za(n.year(), e, t), a = n.year() + 1) : (a = n.year(), s = r), {
4935
+ return r < 1 ? (a = n.year() - 1, s = r + Ya(a, e, t)) : r > Ya(n.year(), e, t) ? (s = r - Ya(n.year(), e, t), a = n.year() + 1) : (a = n.year(), s = r), {
4936
4936
  week: s,
4937
4937
  year: a
4938
4938
  };
4939
4939
  }
4940
- function Za(n, e, t) {
4940
+ function Ya(n, e, t) {
4941
4941
  var i = ty(n, e, t), r = ty(n + 1, e, t);
4942
4942
  return (jf(n) - i + r) / 7;
4943
4943
  }
@@ -5031,7 +5031,7 @@ function O4(n, e, t) {
5031
5031
  var i, r, s, a = n.toLocaleLowerCase();
5032
5032
  if (!this._weekdaysParse)
5033
5033
  for (this._weekdaysParse = [], this._shortWeekdaysParse = [], this._minWeekdaysParse = [], i = 0; i < 7; ++i)
5034
- s = la([2e3, 1]).day(i), this._minWeekdaysParse[i] = this.weekdaysMin(
5034
+ s = aa([2e3, 1]).day(i), this._minWeekdaysParse[i] = this.weekdaysMin(
5035
5035
  s,
5036
5036
  ""
5037
5037
  ).toLocaleLowerCase(), this._shortWeekdaysParse[i] = this.weekdaysShort(
@@ -5045,7 +5045,7 @@ function z4(n, e, t) {
5045
5045
  if (this._weekdaysParseExact)
5046
5046
  return O4.call(this, n, e, t);
5047
5047
  for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), i = 0; i < 7; i++) {
5048
- if (r = la([2e3, 1]).day(i), t && !this._fullWeekdaysParse[i] && (this._fullWeekdaysParse[i] = new RegExp(
5048
+ if (r = aa([2e3, 1]).day(i), t && !this._fullWeekdaysParse[i] && (this._fullWeekdaysParse[i] = new RegExp(
5049
5049
  "^" + this.weekdays(r, "").replace(".", "\\.?") + "$",
5050
5050
  "i"
5051
5051
  ), this._shortWeekdaysParse[i] = new RegExp(
@@ -5100,7 +5100,7 @@ function Ux() {
5100
5100
  }
5101
5101
  var e = [], t = [], i = [], r = [], s, a, o, f, m;
5102
5102
  for (s = 0; s < 7; s++)
5103
- a = la([2e3, 1]).day(s), o = Ya(this.weekdaysMin(a, "")), f = Ya(this.weekdaysShort(a, "")), m = Ya(this.weekdays(a, "")), e.push(o), t.push(f), i.push(m), r.push(o), r.push(f), r.push(m);
5103
+ a = aa([2e3, 1]).day(s), o = Ga(this.weekdaysMin(a, "")), f = Ga(this.weekdaysShort(a, "")), m = Ga(this.weekdays(a, "")), e.push(o), t.push(f), i.push(m), r.push(o), r.push(f), r.push(m);
5104
5104
  e.sort(n), t.sort(n), i.sort(n), r.sort(n), this._weekdaysRegex = new RegExp("^(" + r.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
5105
5105
  "^(" + i.join("|") + ")",
5106
5106
  "i"
@@ -5122,16 +5122,16 @@ Vt("H", ["HH", 2], 0, "hour");
5122
5122
  Vt("h", ["hh", 2], 0, Wx);
5123
5123
  Vt("k", ["kk", 2], 0, j4);
5124
5124
  Vt("hmm", 0, 0, function() {
5125
- return "" + Wx.apply(this) + ta(this.minutes(), 2);
5125
+ return "" + Wx.apply(this) + ea(this.minutes(), 2);
5126
5126
  });
5127
5127
  Vt("hmmss", 0, 0, function() {
5128
- return "" + Wx.apply(this) + ta(this.minutes(), 2) + ta(this.seconds(), 2);
5128
+ return "" + Wx.apply(this) + ea(this.minutes(), 2) + ea(this.seconds(), 2);
5129
5129
  });
5130
5130
  Vt("Hmm", 0, 0, function() {
5131
- return "" + this.hours() + ta(this.minutes(), 2);
5131
+ return "" + this.hours() + ea(this.minutes(), 2);
5132
5132
  });
5133
5133
  Vt("Hmmss", 0, 0, function() {
5134
- return "" + this.hours() + ta(this.minutes(), 2) + ta(this.seconds(), 2);
5134
+ return "" + this.hours() + ea(this.minutes(), 2) + ea(this.seconds(), 2);
5135
5135
  });
5136
5136
  function yA(n, e) {
5137
5137
  Vt(n, 0, 0, function() {
@@ -5176,7 +5176,7 @@ ci("hmm", function(n, e, t) {
5176
5176
  });
5177
5177
  ci("hmmss", function(n, e, t) {
5178
5178
  var i = n.length - 4, r = n.length - 2;
5179
- e[Zi] = Dn(n.substr(0, i)), e[So] = Dn(n.substr(i, 2)), e[Ha] = Dn(n.substr(r)), gn(t).bigHour = !0;
5179
+ e[Zi] = Dn(n.substr(0, i)), e[So] = Dn(n.substr(i, 2)), e[ja] = Dn(n.substr(r)), gn(t).bigHour = !0;
5180
5180
  });
5181
5181
  ci("Hmm", function(n, e, t) {
5182
5182
  var i = n.length - 2;
@@ -5184,7 +5184,7 @@ ci("Hmm", function(n, e, t) {
5184
5184
  });
5185
5185
  ci("Hmmss", function(n, e, t) {
5186
5186
  var i = n.length - 4, r = n.length - 2;
5187
- e[Zi] = Dn(n.substr(0, i)), e[So] = Dn(n.substr(i, 2)), e[Ha] = Dn(n.substr(r));
5187
+ e[Zi] = Dn(n.substr(0, i)), e[So] = Dn(n.substr(i, 2)), e[ja] = Dn(n.substr(r));
5188
5188
  });
5189
5189
  function H4(n) {
5190
5190
  return (n + "").toLowerCase().charAt(0) === "p";
@@ -5298,7 +5298,7 @@ function K4() {
5298
5298
  }
5299
5299
  function Gx(n) {
5300
5300
  var e, t = n._a;
5301
- return t && gn(n).overflow === -2 && (e = t[ja] < 0 || t[ja] > 11 ? ja : t[Zo] < 1 || t[Zo] > jx(t[Vr], t[ja]) ? Zo : t[Zi] < 0 || t[Zi] > 24 || t[Zi] === 24 && (t[So] !== 0 || t[Ha] !== 0 || t[tu] !== 0) ? Zi : t[So] < 0 || t[So] > 59 ? So : t[Ha] < 0 || t[Ha] > 59 ? Ha : t[tu] < 0 || t[tu] > 999 ? tu : -1, gn(n)._overflowDayOfYear && (e < Vr || e > Zo) && (e = Zo), gn(n)._overflowWeeks && e === -1 && (e = t4), gn(n)._overflowWeekday && e === -1 && (e = n4), gn(n).overflow = e), n;
5301
+ return t && gn(n).overflow === -2 && (e = t[Va] < 0 || t[Va] > 11 ? Va : t[Zo] < 1 || t[Zo] > jx(t[Vr], t[Va]) ? Zo : t[Zi] < 0 || t[Zi] > 24 || t[Zi] === 24 && (t[So] !== 0 || t[ja] !== 0 || t[tu] !== 0) ? Zi : t[So] < 0 || t[So] > 59 ? So : t[ja] < 0 || t[ja] > 59 ? ja : t[tu] < 0 || t[tu] > 999 ? tu : -1, gn(n)._overflowDayOfYear && (e < Vr || e > Zo) && (e = Zo), gn(n)._overflowWeeks && e === -1 && (e = t4), gn(n)._overflowWeekday && e === -1 && (e = n4), gn(n).overflow = e), n;
5302
5302
  }
5303
5303
  var J4 = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, Q4 = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, e5 = /Z|[+-]\d\d(?::?\d\d)?/, ng = [
5304
5304
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -5463,11 +5463,11 @@ function u5(n) {
5463
5463
  function Yx(n) {
5464
5464
  var e, t, i = [], r, s, a;
5465
5465
  if (!n._d) {
5466
- for (r = u5(n), n._w && n._a[Zo] == null && n._a[ja] == null && d5(n), n._dayOfYear != null && (a = Dd(n._a[Vr], r[Vr]), (n._dayOfYear > jf(a) || n._dayOfYear === 0) && (gn(n)._overflowDayOfYear = !0), t = op(a, 0, n._dayOfYear), n._a[ja] = t.getUTCMonth(), n._a[Zo] = t.getUTCDate()), e = 0; e < 3 && n._a[e] == null; ++e)
5466
+ for (r = u5(n), n._w && n._a[Zo] == null && n._a[Va] == null && d5(n), n._dayOfYear != null && (a = Dd(n._a[Vr], r[Vr]), (n._dayOfYear > jf(a) || n._dayOfYear === 0) && (gn(n)._overflowDayOfYear = !0), t = op(a, 0, n._dayOfYear), n._a[Va] = t.getUTCMonth(), n._a[Zo] = t.getUTCDate()), e = 0; e < 3 && n._a[e] == null; ++e)
5467
5467
  n._a[e] = i[e] = r[e];
5468
5468
  for (; e < 7; e++)
5469
5469
  n._a[e] = i[e] = n._a[e] == null ? e === 2 ? 1 : 0 : n._a[e];
5470
- n._a[Zi] === 24 && n._a[So] === 0 && n._a[Ha] === 0 && n._a[tu] === 0 && (n._nextDay = !0, n._a[Zi] = 0), n._d = (n._useUTC ? op : y4).apply(
5470
+ n._a[Zi] === 24 && n._a[So] === 0 && n._a[ja] === 0 && n._a[tu] === 0 && (n._nextDay = !0, n._a[Zi] = 0), n._d = (n._useUTC ? op : y4).apply(
5471
5471
  null,
5472
5472
  i
5473
5473
  ), s = n._useUTC ? n._d.getUTCDay() : n._d.getDay(), n._tzm != null && n._d.setUTCMinutes(n._d.getUTCMinutes() - n._tzm), n._nextDay && (n._a[Zi] = 24), n._w && typeof n._w.d < "u" && n._w.d !== s && (gn(n).weekdayMismatch = !0);
@@ -5479,7 +5479,7 @@ function d5(n) {
5479
5479
  e.GG,
5480
5480
  n._a[Vr],
5481
5481
  ap(vi(), 1, 4).year
5482
- ), i = Dd(e.W, 1), r = Dd(e.E, 1), (r < 1 || r > 7) && (f = !0)) : (s = n._locale._week.dow, a = n._locale._week.doy, m = ap(vi(), s, a), t = Dd(e.gg, n._a[Vr], m.year), i = Dd(e.w, m.week), e.d != null ? (r = e.d, (r < 0 || r > 6) && (f = !0)) : e.e != null ? (r = e.e + s, (e.e < 0 || e.e > 6) && (f = !0)) : r = s), i < 1 || i > Za(t, s, a) ? gn(n)._overflowWeeks = !0 : f != null ? gn(n)._overflowWeekday = !0 : (o = mA(t, i, r, s, a), n._a[Vr] = o.year, n._dayOfYear = o.dayOfYear);
5482
+ ), i = Dd(e.W, 1), r = Dd(e.E, 1), (r < 1 || r > 7) && (f = !0)) : (s = n._locale._week.dow, a = n._locale._week.doy, m = ap(vi(), s, a), t = Dd(e.gg, n._a[Vr], m.year), i = Dd(e.w, m.week), e.d != null ? (r = e.d, (r < 0 || r > 6) && (f = !0)) : e.e != null ? (r = e.e + s, (e.e < 0 || e.e > 6) && (f = !0)) : r = s), i < 1 || i > Ya(t, s, a) ? gn(n)._overflowWeeks = !0 : f != null ? gn(n)._overflowWeekday = !0 : (o = mA(t, i, r, s, a), n._a[Vr] = o.year, n._dayOfYear = o.dayOfYear);
5483
5483
  }
5484
5484
  _t.ISO_8601 = function() {
5485
5485
  };
@@ -5634,7 +5634,7 @@ function E5(n, e, t) {
5634
5634
  function EA(n, e) {
5635
5635
  Vt(n, 0, 0, function() {
5636
5636
  var t = this.utcOffset(), i = "+";
5637
- return t < 0 && (t = -t, i = "-"), i + ta(~~(t / 60), 2) + e + ta(~~t % 60, 2);
5637
+ return t < 0 && (t = -t, i = "-"), i + ea(~~(t / 60), 2) + e + ea(~~t % 60, 2);
5638
5638
  });
5639
5639
  }
5640
5640
  EA("Z", ":");
@@ -5704,7 +5704,7 @@ function O5() {
5704
5704
  if (!us(this._isDSTShifted))
5705
5705
  return this._isDSTShifted;
5706
5706
  var n = {}, e;
5707
- return zx(n, this), n = wA(n), n._a ? (e = n._isUTC ? la(n._a) : vi(n._a), this._isDSTShifted = this.isValid() && E5(n._a, e.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
5707
+ return zx(n, this), n = wA(n), n._a ? (e = n._isUTC ? aa(n._a) : vi(n._a), this._isDSTShifted = this.isValid() && E5(n._a, e.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted;
5708
5708
  }
5709
5709
  function z5() {
5710
5710
  return this.isValid() ? !this._isUTC : !1;
@@ -5727,7 +5727,7 @@ function Io(n, e) {
5727
5727
  d: Dn(i[Zo]) * r,
5728
5728
  h: Dn(i[Zi]) * r,
5729
5729
  m: Dn(i[So]) * r,
5730
- s: Dn(i[Ha]) * r,
5730
+ s: Dn(i[ja]) * r,
5731
5731
  ms: Dn(T_(i[tu] * 1e3)) * r
5732
5732
  // the millisecond decimal point is included in the match
5733
5733
  }) : (i = B5.exec(n)) ? (r = i[1] === "-" ? -1 : 1, t = {
@@ -5833,7 +5833,7 @@ function q5(n, e) {
5833
5833
  }
5834
5834
  function G5(n, e) {
5835
5835
  arguments.length === 1 && (arguments[0] ? j5(arguments[0]) ? (n = arguments[0], e = void 0) : W5(arguments[0]) && (e = arguments[0], n = void 0) : (n = void 0, e = void 0));
5836
- var t = n || vi(), i = Kx(t, this).startOf("day"), r = _t.calendarFormat(this, i) || "sameElse", s = e && (ca(e[r]) ? e[r].call(this, t) : e[r]);
5836
+ var t = n || vi(), i = Kx(t, this).startOf("day"), r = _t.calendarFormat(this, i) || "sameElse", s = e && (la(e[r]) ? e[r].call(this, t) : e[r]);
5837
5837
  return this.format(
5838
5838
  s || this.localeData().calendar(r, this, vi(t))
5839
5839
  );
@@ -5917,7 +5917,7 @@ function i3(n) {
5917
5917
  return t.year() < 0 || t.year() > 9999 ? Ng(
5918
5918
  t,
5919
5919
  e ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"
5920
- ) : ca(Date.prototype.toISOString) ? e ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Ng(t, "Z")) : Ng(
5920
+ ) : la(Date.prototype.toISOString) ? e ? this.toDate().toISOString() : new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", Ng(t, "Z")) : Ng(
5921
5921
  t,
5922
5922
  e ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"
5923
5923
  );
@@ -6253,7 +6253,7 @@ function O3(n, e) {
6253
6253
  function Qx() {
6254
6254
  var n = [], e = [], t = [], i = [], r, s, a, o, f, m = this.eras();
6255
6255
  for (r = 0, s = m.length; r < s; ++r)
6256
- a = Ya(m[r].name), o = Ya(m[r].abbr), f = Ya(m[r].narrow), e.push(a), n.push(o), t.push(f), i.push(a), i.push(o), i.push(f);
6256
+ a = Ga(m[r].name), o = Ga(m[r].abbr), f = Ga(m[r].narrow), e.push(a), n.push(o), t.push(f), i.push(a), i.push(o), i.push(f);
6257
6257
  this._erasRegex = new RegExp("^(" + i.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + e.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + n.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
6258
6258
  "^(" + t.join("|") + ")",
6259
6259
  "i"
@@ -6310,22 +6310,22 @@ function L3(n) {
6310
6310
  );
6311
6311
  }
6312
6312
  function N3() {
6313
- return Za(this.year(), 1, 4);
6313
+ return Ya(this.year(), 1, 4);
6314
6314
  }
6315
6315
  function B3() {
6316
- return Za(this.isoWeekYear(), 1, 4);
6316
+ return Ya(this.isoWeekYear(), 1, 4);
6317
6317
  }
6318
6318
  function F3() {
6319
6319
  var n = this.localeData()._week;
6320
- return Za(this.year(), n.dow, n.doy);
6320
+ return Ya(this.year(), n.dow, n.doy);
6321
6321
  }
6322
6322
  function $3() {
6323
6323
  var n = this.localeData()._week;
6324
- return Za(this.weekYear(), n.dow, n.doy);
6324
+ return Ya(this.weekYear(), n.dow, n.doy);
6325
6325
  }
6326
6326
  function LA(n, e, t, i, r) {
6327
6327
  var s;
6328
- return n == null ? ap(this, i, r).year : (s = Za(n, i, r), e > s && (e = s), V3.call(this, n, e, t, i, r));
6328
+ return n == null ? ap(this, i, r).year : (s = Ya(n, i, r), e > s && (e = s), V3.call(this, n, e, t, i, r));
6329
6329
  }
6330
6330
  function V3(n, e, t, i, r) {
6331
6331
  var s = mA(n, e, t, i, r), a = op(s.year, 0, s.dayOfYear);
@@ -6334,7 +6334,7 @@ function V3(n, e, t, i, r) {
6334
6334
  Vt("Q", 0, "Qo", "quarter");
6335
6335
  Dt("Q", rA);
6336
6336
  ci("Q", function(n, e) {
6337
- e[ja] = (Dn(n) - 1) * 3;
6337
+ e[Va] = (Dn(n) - 1) * 3;
6338
6338
  });
6339
6339
  function j3(n) {
6340
6340
  return n == null ? Math.ceil((this.month() + 1) / 3) : this.month((n - 1) * 3 + this.month() % 3);
@@ -6370,7 +6370,7 @@ var U3 = gh("Minutes", !1);
6370
6370
  Vt("s", ["ss", 2], 0, "second");
6371
6371
  Dt("s", bi, Vx);
6372
6372
  Dt("ss", bi, Us);
6373
- ci(["s", "ss"], Ha);
6373
+ ci(["s", "ss"], ja);
6374
6374
  var W3 = gh("Seconds", !1);
6375
6375
  Vt("S", 0, 0, function() {
6376
6376
  return ~~(this.millisecond() / 100);
@@ -6560,7 +6560,7 @@ Un.weekdaysMinRegex = V4;
6560
6560
  Un.isPM = H4;
6561
6561
  Un.meridiem = q4;
6562
6562
  function ry(n, e, t, i) {
6563
- var r = sl(), s = la().set(i, e);
6563
+ var r = sl(), s = aa().set(i, e);
6564
6564
  return r[t](s, n);
6565
6565
  }
6566
6566
  function $A(n, e, t) {
@@ -6628,10 +6628,10 @@ _t.langData = ho(
6628
6628
  "moment.langData is deprecated. Use moment.localeData instead.",
6629
6629
  sl
6630
6630
  );
6631
- var Oa = Math.abs;
6631
+ var Ra = Math.abs;
6632
6632
  function n$() {
6633
6633
  var n = this._data;
6634
- return this._milliseconds = Oa(this._milliseconds), this._days = Oa(this._days), this._months = Oa(this._months), n.milliseconds = Oa(n.milliseconds), n.seconds = Oa(n.seconds), n.minutes = Oa(n.minutes), n.hours = Oa(n.hours), n.months = Oa(n.months), n.years = Oa(n.years), this;
6634
+ return this._milliseconds = Ra(this._milliseconds), this._days = Ra(this._days), this._months = Ra(this._months), n.milliseconds = Ra(n.milliseconds), n.seconds = Ra(n.seconds), n.minutes = Ra(n.minutes), n.hours = Ra(n.hours), n.months = Ra(n.months), n.years = Ra(n.years), this;
6635
6635
  }
6636
6636
  function VA(n, e, t, i) {
6637
6637
  var r = Io(e, t);
@@ -6708,7 +6708,7 @@ var v$ = ku("milliseconds"), b$ = ku("seconds"), _$ = ku("minutes"), x$ = ku("ho
6708
6708
  function E$() {
6709
6709
  return so(this.days() / 7);
6710
6710
  }
6711
- var Ba = Math.round, zd = {
6711
+ var Na = Math.round, zd = {
6712
6712
  ss: 44,
6713
6713
  // a few seconds to seconds
6714
6714
  s: 45,
@@ -6728,11 +6728,11 @@ function C$(n, e, t, i, r) {
6728
6728
  return r.relativeTime(e || 1, !!t, n, i);
6729
6729
  }
6730
6730
  function T$(n, e, t, i) {
6731
- var r = Io(n).abs(), s = Ba(r.as("s")), a = Ba(r.as("m")), o = Ba(r.as("h")), f = Ba(r.as("d")), m = Ba(r.as("M")), g = Ba(r.as("w")), _ = Ba(r.as("y")), k = s <= t.ss && ["s", s] || s < t.s && ["ss", s] || a <= 1 && ["m"] || a < t.m && ["mm", a] || o <= 1 && ["h"] || o < t.h && ["hh", o] || f <= 1 && ["d"] || f < t.d && ["dd", f];
6731
+ var r = Io(n).abs(), s = Na(r.as("s")), a = Na(r.as("m")), o = Na(r.as("h")), f = Na(r.as("d")), m = Na(r.as("M")), g = Na(r.as("w")), _ = Na(r.as("y")), k = s <= t.ss && ["s", s] || s < t.s && ["ss", s] || a <= 1 && ["m"] || a < t.m && ["mm", a] || o <= 1 && ["h"] || o < t.h && ["hh", o] || f <= 1 && ["d"] || f < t.d && ["dd", f];
6732
6732
  return t.w != null && (k = k || g <= 1 && ["w"] || g < t.w && ["ww", g]), k = k || m <= 1 && ["M"] || m < t.M && ["MM", m] || _ <= 1 && ["y"] || ["yy", _], k[2] = e, k[3] = +n > 0, k[4] = i, C$.apply(null, k);
6733
6733
  }
6734
6734
  function A$(n) {
6735
- return n === void 0 ? Ba : typeof n == "function" ? (Ba = n, !0) : !1;
6735
+ return n === void 0 ? Na : typeof n == "function" ? (Na = n, !0) : !1;
6736
6736
  }
6737
6737
  function M$(n, e) {
6738
6738
  return zd[n] === void 0 ? !1 : e === void 0 ? zd[n] : (zd[n] = e, n === "s" && (zd.ss = e - 1), !0);
@@ -6808,7 +6808,7 @@ _t.fn = Je;
6808
6808
  _t.min = b5;
6809
6809
  _t.max = _5;
6810
6810
  _t.now = x5;
6811
- _t.utc = la;
6811
+ _t.utc = aa;
6812
6812
  _t.unix = Z3;
6813
6813
  _t.months = K3;
6814
6814
  _t.isDate = Pp;
@@ -7658,14 +7658,14 @@ var GA = { exports: {} };
7658
7658
  function cl(u, c, d, p) {
7659
7659
  return typeof u == "number" && u >= 0 && u <= 255 && typeof c == "number" && c >= 0 && c <= 255 && typeof d == "number" && d >= 0 && d <= 255 ? p === void 0 || typeof p == "number" && p >= 0 && p <= 1 ? null : `Invalid rgba value [${[u, c, d, p].join(", ")}]: 'a' must be between 0 and 1.` : `Invalid rgba value [${(typeof p == "number" ? [u, c, d, p] : [u, c, d]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`;
7660
7660
  }
7661
- function da(u) {
7661
+ function ua(u) {
7662
7662
  if (u === null || typeof u == "string" || typeof u == "boolean" || typeof u == "number" || u instanceof Vn || u instanceof xh || u instanceof Wr || u instanceof qr || u instanceof as || u instanceof Gr) return !0;
7663
7663
  if (Array.isArray(u)) {
7664
- for (const c of u) if (!da(c)) return !1;
7664
+ for (const c of u) if (!ua(c)) return !1;
7665
7665
  return !0;
7666
7666
  }
7667
7667
  if (typeof u == "object") {
7668
- for (const c in u) if (!da(u[c])) return !1;
7668
+ for (const c in u) if (!ua(u[c])) return !1;
7669
7669
  return !0;
7670
7670
  }
7671
7671
  return !1;
@@ -7707,7 +7707,7 @@ var GA = { exports: {} };
7707
7707
  }
7708
7708
  static parse(c, d) {
7709
7709
  if (c.length !== 2) return d.error(`'literal' expression requires exactly one argument, but found ${c.length - 1} instead.`);
7710
- if (!da(c[1])) return d.error("invalid value");
7710
+ if (!ua(c[1])) return d.error("invalid value");
7711
7711
  const p = c[1];
7712
7712
  let b = Mi(p);
7713
7713
  const S = d.expectedType;
@@ -7878,7 +7878,7 @@ var GA = { exports: {} };
7878
7878
  return d || (d = this._parseColorCache[c] = Vn.parse(c)), d;
7879
7879
  }
7880
7880
  }
7881
- class ha {
7881
+ class da {
7882
7882
  constructor(c, d, p = [], b, S = new ss(), E = []) {
7883
7883
  this.registry = c, this.path = p, this.key = p.map((T) => `[${T}]`).join(""), this.scope = S, this.errors = E, this.expectedType = b, this._isConstant = d;
7884
7884
  }
@@ -7922,7 +7922,7 @@ var GA = { exports: {} };
7922
7922
  }
7923
7923
  concat(c, d, p) {
7924
7924
  const b = typeof c == "number" ? this.path.concat(c) : this.path, S = p ? this.scope.concat(p) : this.scope;
7925
- return new ha(this.registry, this._isConstant, b, d || null, S, this.errors);
7925
+ return new da(this.registry, this._isConstant, b, d || null, S, this.errors);
7926
7926
  }
7927
7927
  error(c, ...d) {
7928
7928
  const p = `${this.key}${d.map((b) => `[${b}]`).join("")}`;
@@ -8249,13 +8249,13 @@ var GA = { exports: {} };
8249
8249
  return this.sampleCurveY(this.solveCurveX(u, c));
8250
8250
  } };
8251
8251
  var R0 = Gp(P0);
8252
- function fa(u, c, d) {
8252
+ function ha(u, c, d) {
8253
8253
  return u + d * (c - u);
8254
8254
  }
8255
8255
  function dc(u, c, d) {
8256
- return u.map((p, b) => fa(p, c[b], d));
8256
+ return u.map((p, b) => ha(p, c[b], d));
8257
8257
  }
8258
- const Cr = { number: fa, color: function(u, c, d, p = "rgb") {
8258
+ const Cr = { number: ha, color: function(u, c, d, p = "rgb") {
8259
8259
  switch (p) {
8260
8260
  case "rgb": {
8261
8261
  const [b, S, E, T] = dc(u.rgb, c.rgb, d);
@@ -8271,7 +8271,7 @@ var GA = { exports: {} };
8271
8271
  }
8272
8272
  const [X, Q, oe, ce] = function([ke, ye, we, Ie]) {
8273
8273
  return ke = isNaN(ke) ? 0 : ke * Lt, pi([we, Math.cos(ke) * ye, Math.sin(ke) * ye, Ie]);
8274
- }([H, q ?? fa(S, R, d), fa(E, N, d), fa(T, $, d)]);
8274
+ }([H, q ?? ha(S, R, d), ha(E, N, d), ha(T, $, d)]);
8275
8275
  return new Vn(X, Q, oe, ce, !1);
8276
8276
  }
8277
8277
  case "lab": {
@@ -8289,7 +8289,7 @@ var GA = { exports: {} };
8289
8289
  if (p[E] !== b[E]) throw new Ci(`Cannot interpolate values containing mismatched anchors. from[${E}]: ${p[E]}, to[${E}]: ${b[E]}`);
8290
8290
  S.push(p[E]);
8291
8291
  const [T, M] = p[E + 1], [R, N] = b[E + 1];
8292
- S.push([fa(T, R, d), fa(M, N, d)]);
8292
+ S.push([ha(T, R, d), ha(M, N, d)]);
8293
8293
  }
8294
8294
  return new as(S);
8295
8295
  } };
@@ -8624,7 +8624,7 @@ var GA = { exports: {} };
8624
8624
  return [(b = (u[0] / Zs + c.x) / d, 360 * b - 180), (p = (u[1] / Zs + c.y) / d, 360 / Math.PI * Math.atan(Math.exp((180 - 360 * p) * Math.PI / 180)) - 90)];
8625
8625
  var p, b;
8626
8626
  }
8627
- function pa(u, c) {
8627
+ function fa(u, c) {
8628
8628
  u[0] = Math.min(u[0], c[0]), u[1] = Math.min(u[1], c[1]), u[2] = Math.max(u[2], c[0]), u[3] = Math.max(u[3], c[1]);
8629
8629
  }
8630
8630
  function zo(u, c) {
@@ -8674,7 +8674,7 @@ var GA = { exports: {} };
8674
8674
  const S = [];
8675
8675
  for (let E = 0; E < u[b].length; E++) {
8676
8676
  const T = N0(u[b][E], d);
8677
- pa(c, T), S.push(T);
8677
+ fa(c, T), S.push(T);
8678
8678
  }
8679
8679
  p.push(S);
8680
8680
  }
@@ -8694,7 +8694,7 @@ var GA = { exports: {} };
8694
8694
  let S = u[0] - d[0] > b ? -p : d[0] - u[0] > b ? p : 0;
8695
8695
  S === 0 && (S = u[0] - d[2] > b ? -p : d[2] - u[0] > b ? p : 0), u[0] += S;
8696
8696
  }
8697
- pa(c, u);
8697
+ fa(c, u);
8698
8698
  }
8699
8699
  function im(u, c, d, p) {
8700
8700
  const b = Math.pow(2, p.z) * Zs, S = [p.x * Zs, p.y * Zs], E = [];
@@ -8710,7 +8710,7 @@ var GA = { exports: {} };
8710
8710
  const R = [];
8711
8711
  for (const N of M) {
8712
8712
  const $ = [N.x + S[0], N.y + S[1]];
8713
- pa(c, $), R.push($);
8713
+ fa(c, $), R.push($);
8714
8714
  }
8715
8715
  E.push(R);
8716
8716
  }
@@ -8721,13 +8721,13 @@ var GA = { exports: {} };
8721
8721
  var T;
8722
8722
  return E;
8723
8723
  }
8724
- class ma {
8724
+ class pa {
8725
8725
  constructor(c, d) {
8726
8726
  this.type = $e, this.geojson = c, this.geometries = d;
8727
8727
  }
8728
8728
  static parse(c, d) {
8729
8729
  if (c.length !== 2) return d.error(`'within' expression requires exactly one argument, but found ${c.length - 1} instead.`);
8730
- if (da(c[1])) {
8730
+ if (ua(c[1])) {
8731
8731
  const p = c[1];
8732
8732
  if (p.type === "FeatureCollection") {
8733
8733
  const b = [];
@@ -8735,11 +8735,11 @@ var GA = { exports: {} };
8735
8735
  const { type: E, coordinates: T } = S.geometry;
8736
8736
  E === "Polygon" && b.push(T), E === "MultiPolygon" && b.push(...T);
8737
8737
  }
8738
- if (b.length) return new ma(p, { type: "MultiPolygon", coordinates: b });
8738
+ if (b.length) return new pa(p, { type: "MultiPolygon", coordinates: b });
8739
8739
  } else if (p.type === "Feature") {
8740
8740
  const b = p.geometry.type;
8741
- if (b === "Polygon" || b === "MultiPolygon") return new ma(p, p.geometry);
8742
- } else if (p.type === "Polygon" || p.type === "MultiPolygon") return new ma(p, p);
8741
+ if (b === "Polygon" || b === "MultiPolygon") return new pa(p, p.geometry);
8742
+ } else if (p.type === "Polygon" || p.type === "MultiPolygon") return new pa(p, p);
8743
8743
  }
8744
8744
  return d.error("'within' expression requires valid geojson object that contains polygon geometry type.");
8745
8745
  }
@@ -8907,12 +8907,12 @@ var GA = { exports: {} };
8907
8907
  function Oh(u, c) {
8908
8908
  if (!mo(c, u.length)) return [1 / 0, 1 / 0, -1 / 0, -1 / 0];
8909
8909
  const d = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
8910
- for (let p = c[0]; p <= c[1]; ++p) pa(d, u[p]);
8910
+ for (let p = c[0]; p <= c[1]; ++p) fa(d, u[p]);
8911
8911
  return d;
8912
8912
  }
8913
8913
  function zh(u) {
8914
8914
  const c = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
8915
- for (const d of u) for (const p of d) pa(c, p);
8915
+ for (const d of u) for (const p of d) fa(c, p);
8916
8916
  return c;
8917
8917
  }
8918
8918
  function dm(u) {
@@ -8923,12 +8923,12 @@ var GA = { exports: {} };
8923
8923
  let p = 0, b = 0;
8924
8924
  return u[2] < c[0] && (p = c[0] - u[2]), u[0] > c[2] && (p = u[0] - c[2]), u[1] > c[3] && (b = u[1] - c[3]), u[3] < c[1] && (b = c[1] - u[3]), d.distance([0, 0], [p, b]);
8925
8925
  }
8926
- function ga(u, c, d) {
8926
+ function ma(u, c, d) {
8927
8927
  const p = d.pointOnLine(c, u);
8928
8928
  return d.distance(u, p.point);
8929
8929
  }
8930
8930
  function Lh(u, c, d, p, b) {
8931
- const S = Math.min(ga(u, [d, p], b), ga(c, [d, p], b)), E = Math.min(ga(d, [u, c], b), ga(p, [u, c], b));
8931
+ const S = Math.min(ma(u, [d, p], b), ma(c, [d, p], b)), E = Math.min(ma(d, [u, c], b), ma(p, [u, c], b));
8932
8932
  return Math.min(S, E);
8933
8933
  }
8934
8934
  function U0(u, c, d, p, b) {
@@ -8955,7 +8955,7 @@ var GA = { exports: {} };
8955
8955
  let p = 1 / 0;
8956
8956
  for (const b of c) {
8957
8957
  const S = b[0], E = b[b.length - 1];
8958
- if (S !== E && (p = Math.min(p, ga(u, [E, S], d)), p === 0)) return p;
8958
+ if (S !== E && (p = Math.min(p, ma(u, [E, S], d)), p === 0)) return p;
8959
8959
  const T = d.pointOnLine(b, u);
8960
8960
  if (p = Math.min(p, d.distance(u, T.point)), p === 0) return p;
8961
8961
  }
@@ -9006,7 +9006,7 @@ var GA = { exports: {} };
9006
9006
  const T = pc(Oh(p, S), Oh(b, E), d);
9007
9007
  T < c && u.push([T, S, E]);
9008
9008
  }
9009
- function ya(u, c, d, p, b = 1 / 0) {
9009
+ function ga(u, c, d, p, b = 1 / 0) {
9010
9010
  let S = Math.min(p.distance(u[0], d[0][0]), b);
9011
9011
  if (S === 0) return S;
9012
9012
  const E = new sm([[0, [0, u.length - 1], [0, 0]]], um), T = zh(d);
@@ -9045,10 +9045,10 @@ var GA = { exports: {} };
9045
9045
  if (c && p) q = U0(u, R, d, N, b), E = Math.min(E, q);
9046
9046
  else if (c && !p) {
9047
9047
  const X = u.slice(R[0], R[1] + 1);
9048
- for (let Q = N[0]; Q <= N[1]; ++Q) if (q = ga(d[Q], X, b), E = Math.min(E, q), E === 0) return E;
9048
+ for (let Q = N[0]; Q <= N[1]; ++Q) if (q = ma(d[Q], X, b), E = Math.min(E, q), E === 0) return E;
9049
9049
  } else if (!c && p) {
9050
9050
  const X = d.slice(N[0], N[1] + 1);
9051
- for (let Q = R[0]; Q <= R[1]; ++Q) if (q = ga(u[Q], X, b), E = Math.min(E, q), E === 0) return E;
9051
+ for (let Q = R[0]; Q <= R[1]; ++Q) if (q = ma(u[Q], X, b), E = Math.min(E, q), E === 0) return E;
9052
9052
  } else q = W0(u, R, d, N, b), E = Math.min(E, q);
9053
9053
  } else {
9054
9054
  const q = Rh(R, c), X = Rh(N, p);
@@ -9060,17 +9060,17 @@ var GA = { exports: {} };
9060
9060
  function Fu(u) {
9061
9061
  return u.type === "MultiPolygon" ? u.coordinates.map((c) => ({ type: "Polygon", coordinates: c })) : u.type === "MultiLineString" ? u.coordinates.map((c) => ({ type: "LineString", coordinates: c })) : u.type === "MultiPoint" ? u.coordinates.map((c) => ({ type: "Point", coordinates: c })) : [u];
9062
9062
  }
9063
- class va {
9063
+ class ya {
9064
9064
  constructor(c, d) {
9065
9065
  this.type = Qe, this.geojson = c, this.geometries = d;
9066
9066
  }
9067
9067
  static parse(c, d) {
9068
9068
  if (c.length !== 2) return d.error(`'distance' expression requires exactly one argument, but found ${c.length - 1} instead.`);
9069
- if (da(c[1])) {
9069
+ if (ua(c[1])) {
9070
9070
  const p = c[1];
9071
- if (p.type === "FeatureCollection") return new va(p, p.features.map((b) => Fu(b.geometry)).flat());
9072
- if (p.type === "Feature") return new va(p, Fu(p.geometry));
9073
- if ("type" in p && "coordinates" in p) return new va(p, Fu(p));
9071
+ if (p.type === "FeatureCollection") return new ya(p, p.features.map((b) => Fu(b.geometry)).flat());
9072
+ if (p.type === "Feature") return new ya(p, Fu(p.geometry));
9073
+ if ("type" in p && "coordinates" in p) return new ya(p, Fu(p));
9074
9074
  }
9075
9075
  return d.error("'distance' expression requires valid geojson object that contains polygon geometry type.");
9076
9076
  }
@@ -9090,7 +9090,7 @@ var GA = { exports: {} };
9090
9090
  T = Math.min(T, mc(S, !1, M.coordinates, !0, E, T));
9091
9091
  break;
9092
9092
  case "Polygon":
9093
- T = Math.min(T, ya(S, !1, M.coordinates, E, T));
9093
+ T = Math.min(T, ga(S, !1, M.coordinates, E, T));
9094
9094
  }
9095
9095
  if (T === 0) return T;
9096
9096
  }
@@ -9110,7 +9110,7 @@ var GA = { exports: {} };
9110
9110
  T = Math.min(T, mc(S, !0, M.coordinates, !0, E, T));
9111
9111
  break;
9112
9112
  case "Polygon":
9113
- T = Math.min(T, ya(S, !0, M.coordinates, E, T));
9113
+ T = Math.min(T, ga(S, !0, M.coordinates, E, T));
9114
9114
  }
9115
9115
  if (T === 0) return T;
9116
9116
  }
@@ -9124,10 +9124,10 @@ var GA = { exports: {} };
9124
9124
  for (const M of p) for (const R of S) {
9125
9125
  switch (M.type) {
9126
9126
  case "Point":
9127
- T = Math.min(T, ya([M.coordinates], !1, R, E, T));
9127
+ T = Math.min(T, ga([M.coordinates], !1, R, E, T));
9128
9128
  break;
9129
9129
  case "LineString":
9130
- T = Math.min(T, ya(M.coordinates, !0, R, E, T));
9130
+ T = Math.min(T, ga(M.coordinates, !0, R, E, T));
9131
9131
  break;
9132
9132
  case "Polygon":
9133
9133
  T = Math.min(T, Nh(R, M.coordinates, E, T));
@@ -9145,7 +9145,7 @@ var GA = { exports: {} };
9145
9145
  return !0;
9146
9146
  }
9147
9147
  }
9148
- const pl = { "==": O0, "!=": Xp, ">": z0, "<": Kp, ">=": Jp, "<=": L0, array: _s, at: kh, boolean: _s, case: Du, coalesce: Ru, collator: hc, format: zu, image: Ah, in: Eh, "index-of": ul, interpolate: Tr, "interpolate-hcl": Tr, "interpolate-lab": Tr, length: Mh, let: Oo, literal: bs, match: Ch, number: _s, "number-format": Th, object: _s, slice: uc, step: dl, string: _s, "to-boolean": xs, "to-color": xs, "to-number": xs, "to-string": xs, var: Pn, within: ma, distance: va };
9148
+ const pl = { "==": O0, "!=": Xp, ">": z0, "<": Kp, ">=": Jp, "<=": L0, array: _s, at: kh, boolean: _s, case: Du, coalesce: Ru, collator: hc, format: zu, image: Ah, in: Eh, "index-of": ul, interpolate: Tr, "interpolate-hcl": Tr, "interpolate-lab": Tr, length: Mh, let: Oo, literal: bs, match: Ch, number: _s, "number-format": Th, object: _s, slice: uc, step: dl, string: _s, "to-boolean": xs, "to-color": xs, "to-number": xs, "to-string": xs, var: Pn, within: pa, distance: ya };
9149
9149
  class ls {
9150
9150
  constructor(c, d, p, b) {
9151
9151
  this.name = c, this.type = d, this._evaluate = p, this.args = b;
@@ -9165,7 +9165,7 @@ var GA = { exports: {} };
9165
9165
  const S = Array.isArray(b) ? b[0] : b.type, E = Array.isArray(b) ? [[b[1], b[2]]] : b.overloads, T = E.filter(([R]) => !Array.isArray(R) || R.length === c.length - 1);
9166
9166
  let M = null;
9167
9167
  for (const [R, N] of T) {
9168
- M = new ha(d.registry, Vu, d.path, null, d.scope);
9168
+ M = new da(d.registry, Vu, d.path, null, d.scope);
9169
9169
  const $ = [];
9170
9170
  let H = !1;
9171
9171
  for (let q = 1; q < c.length; q++) {
@@ -9218,12 +9218,12 @@ var GA = { exports: {} };
9218
9218
  const d = c[u];
9219
9219
  return d === void 0 ? null : d;
9220
9220
  }
9221
- function ba(u) {
9221
+ function va(u) {
9222
9222
  return { type: u };
9223
9223
  }
9224
9224
  function Vu(u) {
9225
9225
  if (u instanceof Pn) return Vu(u.boundExpression);
9226
- if (u instanceof ls && u.name === "error" || u instanceof hc || u instanceof ma || u instanceof va) return !1;
9226
+ if (u instanceof ls && u.name === "error" || u instanceof hc || u instanceof pa || u instanceof ya) return !1;
9227
9227
  const c = u instanceof xs || u instanceof _s;
9228
9228
  let d = !0;
9229
9229
  return u.eachChild((p) => {
@@ -9231,7 +9231,7 @@ var GA = { exports: {} };
9231
9231
  }), !!d && gc(u) && yc(u, ["zoom", "heatmap-density", "line-progress", "accumulated", "is-supported-script"]);
9232
9232
  }
9233
9233
  function gc(u) {
9234
- if (u instanceof ls && (u.name === "get" && u.args.length === 1 || u.name === "feature-state" || u.name === "has" && u.args.length === 1 || u.name === "properties" || u.name === "geometry-type" || u.name === "id" || /^filter-/.test(u.name)) || u instanceof ma || u instanceof va) return !1;
9234
+ if (u instanceof ls && (u.name === "get" && u.args.length === 1 || u.name === "feature-state" || u.name === "has" && u.args.length === 1 || u.name === "properties" || u.name === "geometry-type" || u.name === "id" || /^filter-/.test(u.name)) || u instanceof pa || u instanceof ya) return !1;
9235
9235
  let c = !0;
9236
9236
  return u.eachChild((d) => {
9237
9237
  c && !gc(d) && (c = !1);
@@ -9367,15 +9367,15 @@ var GA = { exports: {} };
9367
9367
  }], typeof: [Te, [ot], (u, [c]) => U(Mi(c.evaluate(u)))], "to-rgba": [W(Qe, 4), [Pt], (u, [c]) => {
9368
9368
  const [d, p, b, S] = c.evaluate(u).rgb;
9369
9369
  return [255 * d, 255 * p, 255 * b, S];
9370
- }], rgb: [Pt, [Qe, Qe, Qe], hm], rgba: [Pt, [Qe, Qe, Qe, Qe], hm], has: { type: $e, overloads: [[[Te], (u, [c]) => Bh(c.evaluate(u), u.properties())], [[Te, ln], (u, [c, d]) => Bh(c.evaluate(u), d.evaluate(u))]] }, get: { type: ot, overloads: [[[Te], (u, [c]) => $u(c.evaluate(u), u.properties())], [[Te, ln], (u, [c, d]) => $u(c.evaluate(u), d.evaluate(u))]] }, "feature-state": [ot, [Te], (u, [c]) => $u(c.evaluate(u), u.featureState || {})], properties: [ln, [], (u) => u.properties()], "geometry-type": [Te, [], (u) => u.geometryType()], id: [ot, [], (u) => u.id()], zoom: [Qe, [], (u) => u.globals.zoom], "heatmap-density": [Qe, [], (u) => u.globals.heatmapDensity || 0], "line-progress": [Qe, [], (u) => u.globals.lineProgress || 0], accumulated: [ot, [], (u) => u.globals.accumulated === void 0 ? null : u.globals.accumulated], "+": [Qe, ba(Qe), (u, c) => {
9370
+ }], rgb: [Pt, [Qe, Qe, Qe], hm], rgba: [Pt, [Qe, Qe, Qe, Qe], hm], has: { type: $e, overloads: [[[Te], (u, [c]) => Bh(c.evaluate(u), u.properties())], [[Te, ln], (u, [c, d]) => Bh(c.evaluate(u), d.evaluate(u))]] }, get: { type: ot, overloads: [[[Te], (u, [c]) => $u(c.evaluate(u), u.properties())], [[Te, ln], (u, [c, d]) => $u(c.evaluate(u), d.evaluate(u))]] }, "feature-state": [ot, [Te], (u, [c]) => $u(c.evaluate(u), u.featureState || {})], properties: [ln, [], (u) => u.properties()], "geometry-type": [Te, [], (u) => u.geometryType()], id: [ot, [], (u) => u.id()], zoom: [Qe, [], (u) => u.globals.zoom], "heatmap-density": [Qe, [], (u) => u.globals.heatmapDensity || 0], "line-progress": [Qe, [], (u) => u.globals.lineProgress || 0], accumulated: [ot, [], (u) => u.globals.accumulated === void 0 ? null : u.globals.accumulated], "+": [Qe, va(Qe), (u, c) => {
9371
9371
  let d = 0;
9372
9372
  for (const p of c) d += p.evaluate(u);
9373
9373
  return d;
9374
- }], "*": [Qe, ba(Qe), (u, c) => {
9374
+ }], "*": [Qe, va(Qe), (u, c) => {
9375
9375
  let d = 1;
9376
9376
  for (const p of c) d *= p.evaluate(u);
9377
9377
  return d;
9378
- }], "-": { type: Qe, overloads: [[[Qe, Qe], (u, [c, d]) => c.evaluate(u) - d.evaluate(u)], [[Qe], (u, [c]) => -c.evaluate(u)]] }, "/": [Qe, [Qe, Qe], (u, [c, d]) => c.evaluate(u) / d.evaluate(u)], "%": [Qe, [Qe, Qe], (u, [c, d]) => c.evaluate(u) % d.evaluate(u)], ln2: [Qe, [], () => Math.LN2], pi: [Qe, [], () => Math.PI], e: [Qe, [], () => Math.E], "^": [Qe, [Qe, Qe], (u, [c, d]) => Math.pow(c.evaluate(u), d.evaluate(u))], sqrt: [Qe, [Qe], (u, [c]) => Math.sqrt(c.evaluate(u))], log10: [Qe, [Qe], (u, [c]) => Math.log(c.evaluate(u)) / Math.LN10], ln: [Qe, [Qe], (u, [c]) => Math.log(c.evaluate(u))], log2: [Qe, [Qe], (u, [c]) => Math.log(c.evaluate(u)) / Math.LN2], sin: [Qe, [Qe], (u, [c]) => Math.sin(c.evaluate(u))], cos: [Qe, [Qe], (u, [c]) => Math.cos(c.evaluate(u))], tan: [Qe, [Qe], (u, [c]) => Math.tan(c.evaluate(u))], asin: [Qe, [Qe], (u, [c]) => Math.asin(c.evaluate(u))], acos: [Qe, [Qe], (u, [c]) => Math.acos(c.evaluate(u))], atan: [Qe, [Qe], (u, [c]) => Math.atan(c.evaluate(u))], min: [Qe, ba(Qe), (u, c) => Math.min(...c.map((d) => d.evaluate(u)))], max: [Qe, ba(Qe), (u, c) => Math.max(...c.map((d) => d.evaluate(u)))], abs: [Qe, [Qe], (u, [c]) => Math.abs(c.evaluate(u))], round: [Qe, [Qe], (u, [c]) => {
9378
+ }], "-": { type: Qe, overloads: [[[Qe, Qe], (u, [c, d]) => c.evaluate(u) - d.evaluate(u)], [[Qe], (u, [c]) => -c.evaluate(u)]] }, "/": [Qe, [Qe, Qe], (u, [c, d]) => c.evaluate(u) / d.evaluate(u)], "%": [Qe, [Qe, Qe], (u, [c, d]) => c.evaluate(u) % d.evaluate(u)], ln2: [Qe, [], () => Math.LN2], pi: [Qe, [], () => Math.PI], e: [Qe, [], () => Math.E], "^": [Qe, [Qe, Qe], (u, [c, d]) => Math.pow(c.evaluate(u), d.evaluate(u))], sqrt: [Qe, [Qe], (u, [c]) => Math.sqrt(c.evaluate(u))], log10: [Qe, [Qe], (u, [c]) => Math.log(c.evaluate(u)) / Math.LN10], ln: [Qe, [Qe], (u, [c]) => Math.log(c.evaluate(u))], log2: [Qe, [Qe], (u, [c]) => Math.log(c.evaluate(u)) / Math.LN2], sin: [Qe, [Qe], (u, [c]) => Math.sin(c.evaluate(u))], cos: [Qe, [Qe], (u, [c]) => Math.cos(c.evaluate(u))], tan: [Qe, [Qe], (u, [c]) => Math.tan(c.evaluate(u))], asin: [Qe, [Qe], (u, [c]) => Math.asin(c.evaluate(u))], acos: [Qe, [Qe], (u, [c]) => Math.acos(c.evaluate(u))], atan: [Qe, [Qe], (u, [c]) => Math.atan(c.evaluate(u))], min: [Qe, va(Qe), (u, c) => Math.min(...c.map((d) => d.evaluate(u)))], max: [Qe, va(Qe), (u, c) => Math.max(...c.map((d) => d.evaluate(u)))], abs: [Qe, [Qe], (u, [c]) => Math.abs(c.evaluate(u))], round: [Qe, [Qe], (u, [c]) => {
9379
9379
  const d = c.evaluate(u);
9380
9380
  return d < 0 ? -Math.round(-d) : Math.round(d);
9381
9381
  }], floor: [Qe, [Qe], (u, [c]) => Math.floor(c.evaluate(u))], ceil: [Qe, [Qe], (u, [c]) => Math.ceil(c.evaluate(u))], "filter-==": [$e, [Te, ot], (u, [c, d]) => u.properties()[c.value] === d.value], "filter-id-==": [$e, [ot], (u, [c]) => u.id() === c.value], "filter-type-==": [$e, [Te], (u, [c]) => u.geometryType() === c.value], "filter-<": [$e, [Te, ot], (u, [c, d]) => {
@@ -9409,16 +9409,16 @@ var GA = { exports: {} };
9409
9409
  b[T] > p ? E = T - 1 : S = T + 1;
9410
9410
  }
9411
9411
  return !1;
9412
- }(u.properties()[c.value], d.value, 0, d.value.length - 1)], all: { type: $e, overloads: [[[$e, $e], (u, [c, d]) => c.evaluate(u) && d.evaluate(u)], [ba($e), (u, c) => {
9412
+ }(u.properties()[c.value], d.value, 0, d.value.length - 1)], all: { type: $e, overloads: [[[$e, $e], (u, [c, d]) => c.evaluate(u) && d.evaluate(u)], [va($e), (u, c) => {
9413
9413
  for (const d of c) if (!d.evaluate(u)) return !1;
9414
9414
  return !0;
9415
- }]] }, any: { type: $e, overloads: [[[$e, $e], (u, [c, d]) => c.evaluate(u) || d.evaluate(u)], [ba($e), (u, c) => {
9415
+ }]] }, any: { type: $e, overloads: [[[$e, $e], (u, [c, d]) => c.evaluate(u) || d.evaluate(u)], [va($e), (u, c) => {
9416
9416
  for (const d of c) if (d.evaluate(u)) return !0;
9417
9417
  return !1;
9418
9418
  }]] }, "!": [$e, [$e], (u, [c]) => !c.evaluate(u)], "is-supported-script": [$e, [Te], (u, [c]) => {
9419
9419
  const d = u.globals && u.globals.isSupportedScript;
9420
9420
  return !d || d(c.evaluate(u));
9421
- }], upcase: [Te, [Te], (u, [c]) => c.evaluate(u).toUpperCase()], downcase: [Te, [Te], (u, [c]) => c.evaluate(u).toLowerCase()], concat: [Te, ba(ot), (u, c) => c.map((d) => cc(d.evaluate(u))).join("")], "resolved-locale": [Te, [ii], (u, [c]) => c.evaluate(u).resolvedLocale()] });
9421
+ }], upcase: [Te, [Te], (u, [c]) => c.evaluate(u).toUpperCase()], downcase: [Te, [Te], (u, [c]) => c.evaluate(u).toLowerCase()], concat: [Te, va(ot), (u, c) => c.map((d) => cc(d.evaluate(u))).join("")], "resolved-locale": [Te, [ii], (u, [c]) => c.evaluate(u).resolvedLocale()] });
9422
9422
  class Hu {
9423
9423
  constructor(c, d) {
9424
9424
  var p;
@@ -9443,7 +9443,7 @@ var GA = { exports: {} };
9443
9443
  return Array.isArray(u) && u.length > 0 && typeof u[0] == "string" && u[0] in pl;
9444
9444
  }
9445
9445
  function Uu(u, c) {
9446
- const d = new ha(pl, Vu, [], c ? function(b) {
9446
+ const d = new da(pl, Vu, [], c ? function(b) {
9447
9447
  const S = { color: Pt, string: Te, number: Qe, enum: Te, boolean: $e, formatted: _i, padding: ur, resolvedImage: Ur, variableAnchorOffsetCollection: le };
9448
9448
  return b.type === "array" ? W(S[b.value] || ot, b.length) : S[b.type];
9449
9449
  }(c) : void 0), p = d.parse(u, void 0, void 0, void 0, c && c.type === "string" ? { typeAnnotation: "coerce" } : void 0);
@@ -9553,7 +9553,7 @@ var GA = { exports: {} };
9553
9553
  function qu(u) {
9554
9554
  if (!u) return !0;
9555
9555
  const c = u[0];
9556
- return u.length <= 1 ? c !== "any" : c === "==" ? Vh(u[1], u[2], "==") : c === "!=" ? _a(Vh(u[1], u[2], "==")) : c === "<" || c === ">" || c === "<=" || c === ">=" ? Vh(u[1], u[2], c) : c === "any" ? (d = u.slice(1), ["any"].concat(d.map(qu))) : c === "all" ? ["all"].concat(u.slice(1).map(qu)) : c === "none" ? ["all"].concat(u.slice(1).map(qu).map(_a)) : c === "in" ? bm(u[1], u.slice(2)) : c === "!in" ? _a(bm(u[1], u.slice(2))) : c === "has" ? kc(u[1]) : c !== "!has" || _a(kc(u[1]));
9556
+ return u.length <= 1 ? c !== "any" : c === "==" ? Vh(u[1], u[2], "==") : c === "!=" ? ba(Vh(u[1], u[2], "==")) : c === "<" || c === ">" || c === "<=" || c === ">=" ? Vh(u[1], u[2], c) : c === "any" ? (d = u.slice(1), ["any"].concat(d.map(qu))) : c === "all" ? ["all"].concat(u.slice(1).map(qu)) : c === "none" ? ["all"].concat(u.slice(1).map(qu).map(ba)) : c === "in" ? bm(u[1], u.slice(2)) : c === "!in" ? ba(bm(u[1], u.slice(2))) : c === "has" ? kc(u[1]) : c !== "!has" || ba(kc(u[1]));
9557
9557
  var d;
9558
9558
  }
9559
9559
  function Vh(u, c, d) {
@@ -9587,7 +9587,7 @@ var GA = { exports: {} };
9587
9587
  return ["filter-has", u];
9588
9588
  }
9589
9589
  }
9590
- function _a(u) {
9590
+ function ba(u) {
9591
9591
  return ["!", u];
9592
9592
  }
9593
9593
  function hr(u) {
@@ -9615,11 +9615,11 @@ var GA = { exports: {} };
9615
9615
  function wi(u) {
9616
9616
  return u instanceof Number || u instanceof String || u instanceof Boolean ? u.valueOf() : u;
9617
9617
  }
9618
- function xa(u) {
9619
- if (Array.isArray(u)) return u.map(xa);
9618
+ function _a(u) {
9619
+ if (Array.isArray(u)) return u.map(_a);
9620
9620
  if (u instanceof Object && !(u instanceof Number || u instanceof String || u instanceof Boolean)) {
9621
9621
  const c = {};
9622
- for (const d in u) c[d] = xa(u[d]);
9622
+ for (const d in u) c[d] = _a(u[d]);
9623
9623
  return c;
9624
9624
  }
9625
9625
  return wi(u);
@@ -9687,7 +9687,7 @@ var GA = { exports: {} };
9687
9687
  if (S && S > wi(Q[0].zoom)) return [new Ge(oe, Q[0].zoom, "stop zoom values must appear in ascending order")];
9688
9688
  wi(Q[0].zoom) !== S && (S = wi(Q[0].zoom), b = void 0, E = {}), X = X.concat(Xi({ key: `${oe}[0]`, value: Q[0], valueSpec: { zoom: {} }, validateSpec: q.validateSpec, style: q.style, styleSpec: q.styleSpec, objectElementValidators: { zoom: Cc, value: H } }));
9689
9689
  } else X = X.concat(H({ key: `${oe}[0]`, value: Q[0], valueSpec: {}, validateSpec: q.validateSpec, style: q.style, styleSpec: q.styleSpec }, Q));
9690
- return _c(xa(Q[1])) ? X.concat([new Ge(`${oe}[1]`, Q[1], "expressions are not allowed in function stops.")]) : X.concat(q.validateSpec({ key: `${oe}[1]`, value: Q[1], valueSpec: c, validateSpec: q.validateSpec, style: q.style, styleSpec: q.styleSpec }));
9690
+ return _c(_a(Q[1])) ? X.concat([new Ge(`${oe}[1]`, Q[1], "expressions are not allowed in function stops.")]) : X.concat(q.validateSpec({ key: `${oe}[1]`, value: Q[1], valueSpec: c, validateSpec: q.validateSpec, style: q.style, styleSpec: q.styleSpec }));
9691
9691
  }
9692
9692
  function H(q, X) {
9693
9693
  const Q = An(q.value), oe = wi(q.value), ce = q.value !== null ? q.value : X;
@@ -9703,7 +9703,7 @@ var GA = { exports: {} };
9703
9703
  }
9704
9704
  }
9705
9705
  function No(u) {
9706
- const c = (u.expressionContext === "property" ? wc : Uu)(xa(u.value), u.valueSpec);
9706
+ const c = (u.expressionContext === "property" ? wc : Uu)(_a(u.value), u.valueSpec);
9707
9707
  if (c.result === "error") return c.value.map((p) => new Ge(`${u.key}${p.key}`, u.value, p.message));
9708
9708
  const d = c.value.expression || c.value._styleExpression.expression;
9709
9709
  if (u.expressionContext === "property" && u.propertyKey === "text-font" && !d.outputDefined()) return [new Ge(u.key, u.value, `Invalid data expression for "${u.propertyKey}". Output values must be contained as literals within the expression.`)];
@@ -9719,8 +9719,8 @@ var GA = { exports: {} };
9719
9719
  const c = u.key, d = u.value, p = u.valueSpec, b = [];
9720
9720
  return Array.isArray(p.values) ? p.values.indexOf(wi(d)) === -1 && b.push(new Ge(c, d, `expected one of [${p.values.join(", ")}], ${JSON.stringify(d)} found`)) : Object.keys(p.values).indexOf(wi(d)) === -1 && b.push(new Ge(c, d, `expected one of [${Object.keys(p.values).join(", ")}], ${JSON.stringify(d)} found`)), b;
9721
9721
  }
9722
- function wa(u) {
9723
- return Wu(xa(u.value)) ? No(rs({}, u, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : xm(u);
9722
+ function xa(u) {
9723
+ return Wu(_a(u.value)) ? No(rs({}, u, { expressionContext: "filter", valueSpec: { value: "boolean" } })) : xm(u);
9724
9724
  }
9725
9725
  function xm(u) {
9726
9726
  const c = u.value, d = u.key;
@@ -9764,7 +9764,7 @@ var GA = { exports: {} };
9764
9764
  if (An(E) === "string" && gl(N) && !N.tokens && ($ = /^{([^}]+)}$/.exec(E))) return [new Ge(d, E, `"${T}" does not support interpolation syntax
9765
9765
  Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify($[1])} }\`.`)];
9766
9766
  const H = [];
9767
- return u.layerType === "symbol" && (T === "text-field" && b && !b.glyphs && H.push(new Ge(d, E, 'use of "text-field" requires a style "glyphs" property')), T === "text-font" && ju(xa(E)) && wi(E.type) === "identity" && H.push(new Ge(d, E, '"text-font" does not support identity functions'))), H.concat(p({ key: u.key, value: E, valueSpec: N, style: b, styleSpec: S, expressionContext: "property", propertyType: c, propertyKey: T }));
9767
+ return u.layerType === "symbol" && (T === "text-field" && b && !b.glyphs && H.push(new Ge(d, E, 'use of "text-field" requires a style "glyphs" property')), T === "text-font" && ju(_a(E)) && wi(E.type) === "identity" && H.push(new Ge(d, E, '"text-font" does not support identity functions'))), H.concat(p({ key: u.key, value: E, valueSpec: N, style: b, styleSpec: S, expressionContext: "property", propertyType: c, propertyKey: T }));
9768
9768
  }
9769
9769
  function Hh(u) {
9770
9770
  return Yu(u, "paint");
@@ -9796,7 +9796,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9796
9796
  const M = b.sources && b.sources[d.source], R = M && wi(M.type);
9797
9797
  M ? R === "vector" && E === "raster" ? c.push(new Ge(p, d.source, `layer "${d.id}" requires a raster source`)) : R !== "raster-dem" && E === "hillshade" ? c.push(new Ge(p, d.source, `layer "${d.id}" requires a raster-dem source`)) : R === "raster" && E !== "raster" ? c.push(new Ge(p, d.source, `layer "${d.id}" requires a vector source`)) : R !== "vector" || d["source-layer"] ? R === "raster-dem" && E !== "hillshade" ? c.push(new Ge(p, d.source, "raster-dem source can only be used with layer type 'hillshade'.")) : E !== "line" || !d.paint || !d.paint["line-gradient"] || R === "geojson" && M.lineMetrics || c.push(new Ge(p, d, `layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : c.push(new Ge(p, d, `layer "${d.id}" must specify a "source-layer"`)) : c.push(new Ge(p, d.source, `source "${d.source}" not found`));
9798
9798
  } else c.push(new Ge(p, d, 'missing required property "source"'));
9799
- return c = c.concat(Xi({ key: p, value: d, valueSpec: S.layer, style: u.style, styleSpec: u.styleSpec, validateSpec: u.validateSpec, objectElementValidators: { "*": () => [], type: () => u.validateSpec({ key: `${p}.type`, value: d.type, valueSpec: S.layer.type, style: u.style, styleSpec: u.styleSpec, validateSpec: u.validateSpec, object: d, objectKey: "type" }), filter: wa, layout: (M) => Xi({ layer: d, key: M.key, value: M.value, style: M.style, styleSpec: M.styleSpec, validateSpec: M.validateSpec, objectElementValidators: { "*": (R) => Zu(rs({ layerType: E }, R)) } }), paint: (M) => Xi({ layer: d, key: M.key, value: M.value, style: M.style, styleSpec: M.styleSpec, validateSpec: M.validateSpec, objectElementValidators: { "*": (R) => Hh(rs({ layerType: E }, R)) } }) } })), c;
9799
+ return c = c.concat(Xi({ key: p, value: d, valueSpec: S.layer, style: u.style, styleSpec: u.styleSpec, validateSpec: u.validateSpec, objectElementValidators: { "*": () => [], type: () => u.validateSpec({ key: `${p}.type`, value: d.type, valueSpec: S.layer.type, style: u.style, styleSpec: u.styleSpec, validateSpec: u.validateSpec, object: d, objectKey: "type" }), filter: xa, layout: (M) => Xi({ layer: d, key: M.key, value: M.value, style: M.style, styleSpec: M.styleSpec, validateSpec: M.validateSpec, objectElementValidators: { "*": (R) => Zu(rs({ layerType: E }, R)) } }), paint: (M) => Xi({ layer: d, key: M.key, value: M.value, style: M.style, styleSpec: M.styleSpec, validateSpec: M.validateSpec, objectElementValidators: { "*": (R) => Hh(rs({ layerType: E }, R)) } }) } })), c;
9800
9800
  }
9801
9801
  function Bo(u) {
9802
9802
  const c = u.value, d = u.key, p = An(c);
@@ -9892,7 +9892,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9892
9892
  }, number: Cc, color: function(u) {
9893
9893
  const c = u.key, d = u.value, p = An(d);
9894
9894
  return p !== "string" ? [new Ge(c, d, `color expected, ${p} found`)] : Vn.parse(String(d)) ? [] : [new Ge(c, d, `color expected, "${d}" found`)];
9895
- }, constants: jh, enum: Tc, filter: wa, function: _m, layer: Uh, object: Xi, source: Xu, light: Ac, sky: Wh, terrain: qh, projection: function(u) {
9895
+ }, constants: jh, enum: Tc, filter: xa, function: _m, layer: Uh, object: Xi, source: Xu, light: Ac, sky: Wh, terrain: qh, projection: function(u) {
9896
9896
  const c = u.value, d = u.styleSpec, p = d.projection, b = u.style, S = An(c);
9897
9897
  if (c === void 0) return [];
9898
9898
  if (S !== "object") return [new Ge("projection", c, `object expected, ${S} found`)];
@@ -9920,9 +9920,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9920
9920
  for (let E = 0; E < d.length; E += 2) S = S.concat(Tc({ key: `${c}[${E}]`, value: d[E], valueSpec: b.layout_symbol["text-anchor"] })), S = S.concat(Gu({ key: `${c}[${E + 1}]`, value: d[E + 1], valueSpec: { length: 2, value: "number" }, validateSpec: u.validateSpec, style: u.style, styleSpec: b }));
9921
9921
  return S;
9922
9922
  }, sprite: Gh };
9923
- function Sa(u) {
9923
+ function wa(u) {
9924
9924
  const c = u.value, d = u.valueSpec, p = u.styleSpec;
9925
- return u.validateSpec = Sa, d.expression && ju(wi(c)) ? _m(u) : d.expression && _c(xa(c)) ? No(u) : d.type && Yh[d.type] ? Yh[d.type](u) : Xi(rs({}, u, { valueSpec: d.type ? p[d.type] : d }));
9925
+ return u.validateSpec = wa, d.expression && ju(wi(c)) ? _m(u) : d.expression && _c(_a(c)) ? No(u) : d.type && Yh[d.type] ? Yh[d.type](u) : Xi(rs({}, u, { valueSpec: d.type ? p[d.type] : d }));
9926
9926
  }
9927
9927
  function Zh(u) {
9928
9928
  const c = u.value, d = u.key, p = Bo(u);
@@ -9930,11 +9930,11 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9930
9930
  }
9931
9931
  function ws(u, c = Ae) {
9932
9932
  let d = [];
9933
- return d = d.concat(Sa({ key: "", value: u, valueSpec: c.$root, styleSpec: c, style: u, validateSpec: Sa, objectElementValidators: { glyphs: Zh, "*": () => [] } })), u.constants && (d = d.concat(jh({ key: "constants", value: u.constants, style: u, styleSpec: c, validateSpec: Sa }))), Sm(d);
9933
+ return d = d.concat(wa({ key: "", value: u, valueSpec: c.$root, styleSpec: c, style: u, validateSpec: wa, objectElementValidators: { glyphs: Zh, "*": () => [] } })), u.constants && (d = d.concat(jh({ key: "constants", value: u.constants, style: u, styleSpec: c, validateSpec: wa }))), Sm(d);
9934
9934
  }
9935
9935
  function Ss(u) {
9936
9936
  return function(c) {
9937
- return u({ ...c, validateSpec: Sa });
9937
+ return u({ ...c, validateSpec: wa });
9938
9938
  };
9939
9939
  }
9940
9940
  function Sm(u) {
@@ -9945,8 +9945,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9945
9945
  return Sm(u.apply(this, c));
9946
9946
  };
9947
9947
  }
9948
- ws.source = ks(Ss(Xu)), ws.sprite = ks(Ss(Gh)), ws.glyphs = ks(Ss(Zh)), ws.light = ks(Ss(Ac)), ws.sky = ks(Ss(Wh)), ws.terrain = ks(Ss(qh)), ws.layer = ks(Ss(Uh)), ws.filter = ks(Ss(wa)), ws.paintProperty = ks(Ss(Hh)), ws.layoutProperty = ks(Ss(Zu));
9949
- const ka = ws, km = ka.light, X0 = ka.sky, K0 = ka.paintProperty, Em = ka.layoutProperty;
9948
+ ws.source = ks(Ss(Xu)), ws.sprite = ks(Ss(Gh)), ws.glyphs = ks(Ss(Zh)), ws.light = ks(Ss(Ac)), ws.sky = ks(Ss(Wh)), ws.terrain = ks(Ss(qh)), ws.layer = ks(Ss(Uh)), ws.filter = ks(Ss(xa)), ws.paintProperty = ks(Ss(Hh)), ws.layoutProperty = ks(Ss(Zu));
9949
+ const Sa = ws, km = Sa.light, X0 = Sa.sky, K0 = Sa.paintProperty, Em = Sa.layoutProperty;
9950
9950
  function Xh(u, c) {
9951
9951
  let d = !1;
9952
9952
  if (c && c.length) for (const p of c) u.fire(new Ht(new Error(p.message))), d = !0;
@@ -10133,9 +10133,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10133
10133
  function ev(u) {
10134
10134
  return !Q0.test(String.fromCodePoint(u));
10135
10135
  }
10136
- const Ea = Qh(["Bopo", "Hani", "Hira", "Kana", "Kits", "Nshu", "Tang", "Yiii"]);
10136
+ const ka = Qh(["Bopo", "Hani", "Hira", "Kana", "Kits", "Nshu", "Tang", "Yiii"]);
10137
10137
  function ef(u) {
10138
- return !(u !== 746 && u !== 747 && (u < 4352 || !(pn["CJK Compatibility Forms"](u) && !(u >= 65097 && u <= 65103) || pn["CJK Compatibility"](u) || pn["CJK Strokes"](u) || !(!pn["CJK Symbols and Punctuation"](u) || u >= 12296 && u <= 12305 || u >= 12308 && u <= 12319 || u === 12336) || pn["Enclosed CJK Letters and Months"](u) || pn["Ideographic Description Characters"](u) || pn.Kanbun(u) || pn.Katakana(u) && u !== 12540 || !(!pn["Halfwidth and Fullwidth Forms"](u) || u === 65288 || u === 65289 || u === 65293 || u >= 65306 && u <= 65310 || u === 65339 || u === 65341 || u === 65343 || u >= 65371 && u <= 65503 || u === 65507 || u >= 65512 && u <= 65519) || !(!pn["Small Form Variants"](u) || u >= 65112 && u <= 65118 || u >= 65123 && u <= 65126) || pn["Vertical Forms"](u) || pn["Yijing Hexagram Symbols"](u) || new RegExp("\\p{sc=Cans}", "u").test(String.fromCodePoint(u)) || new RegExp("\\p{sc=Hang}", "u").test(String.fromCodePoint(u)) || Ea.test(String.fromCodePoint(u)))));
10138
+ return !(u !== 746 && u !== 747 && (u < 4352 || !(pn["CJK Compatibility Forms"](u) && !(u >= 65097 && u <= 65103) || pn["CJK Compatibility"](u) || pn["CJK Strokes"](u) || !(!pn["CJK Symbols and Punctuation"](u) || u >= 12296 && u <= 12305 || u >= 12308 && u <= 12319 || u === 12336) || pn["Enclosed CJK Letters and Months"](u) || pn["Ideographic Description Characters"](u) || pn.Kanbun(u) || pn.Katakana(u) && u !== 12540 || !(!pn["Halfwidth and Fullwidth Forms"](u) || u === 65288 || u === 65289 || u === 65293 || u >= 65306 && u <= 65310 || u === 65339 || u === 65341 || u === 65343 || u >= 65371 && u <= 65503 || u === 65507 || u >= 65512 && u <= 65519) || !(!pn["Small Form Variants"](u) || u >= 65112 && u <= 65118 || u >= 65123 && u <= 65126) || pn["Vertical Forms"](u) || pn["Yijing Hexagram Symbols"](u) || new RegExp("\\p{sc=Cans}", "u").test(String.fromCodePoint(u)) || new RegExp("\\p{sc=Hang}", "u").test(String.fromCodePoint(u)) || ka.test(String.fromCodePoint(u)))));
10139
10139
  }
10140
10140
  function Am(u) {
10141
10141
  return !(ef(u) || function(c) {
@@ -10153,7 +10153,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10153
10153
  for (const c of u) if (Mm(c.charCodeAt(0))) return !0;
10154
10154
  return !1;
10155
10155
  }
10156
- const Ca = new class {
10156
+ const Ea = new class {
10157
10157
  constructor() {
10158
10158
  this.applyArabicShaping = null, this.processBidirectionalText = null, this.processStyledBidirectionalText = null, this.pluginStatus = "unavailable", this.pluginURL = null;
10159
10159
  }
@@ -10184,7 +10184,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10184
10184
  return function(d, p) {
10185
10185
  for (const b of d) if (!Dm(b.charCodeAt(0), p)) return !1;
10186
10186
  return !0;
10187
- }(c, Ca.getRTLTextPluginStatus() === "loaded");
10187
+ }(c, Ea.getRTLTextPluginStatus() === "loaded");
10188
10188
  }
10189
10189
  crossFadingFactor() {
10190
10190
  return this.fadeDuration === 0 ? 1 : Math.min((this.now - this.zoomHistory.lastIntegerZoomTime) / this.fadeDuration, 1);
@@ -10508,7 +10508,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10508
10508
  return this.visibility && (c.layout = c.layout || {}, c.layout.visibility = this.visibility), mt(c, (d, p) => !(d === void 0 || p === "layout" && !Object.keys(d).length || p === "paint" && !Object.keys(d).length));
10509
10509
  }
10510
10510
  _validate(c, d, p, b, S = {}) {
10511
- return (!S || S.validate !== !1) && Xh(this, c.call(ka, { key: d, layerType: this.type, objectKey: p, value: b, styleSpec: Ae, style: { glyphs: !0, sprite: !0 } }));
10511
+ return (!S || S.validate !== !1) && Xh(this, c.call(Sa, { key: d, layerType: this.type, objectKey: p, value: b, styleSpec: Ae, style: { glyphs: !0, sprite: !0 } }));
10512
10512
  }
10513
10513
  is3D() {
10514
10514
  return !1;
@@ -11167,7 +11167,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11167
11167
  }
11168
11168
  class Cs extends te {
11169
11169
  }
11170
- class Ta extends ne {
11170
+ class Ca extends ne {
11171
11171
  }
11172
11172
  class id extends ae {
11173
11173
  }
@@ -11232,8 +11232,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11232
11232
  }
11233
11233
  return b = 1540483477 * (65535 & (b ^= b >>> 13)) + ((1540483477 * (b >>> 16) & 65535) << 16), (b ^= b >>> 15) >>> 0;
11234
11234
  };
11235
- var Rm = iv, Aa = Pm.exports;
11236
- Sl.exports = Rm, Sl.exports.murmur3 = Rm, Sl.exports.murmur2 = Aa;
11235
+ var Rm = iv, Ta = Pm.exports;
11236
+ Sl.exports = Rm, Sl.exports.murmur3 = Rm, Sl.exports.murmur2 = Ta;
11237
11237
  var sd = f(Sl.exports);
11238
11238
  class Rc {
11239
11239
  constructor() {
@@ -11348,7 +11348,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11348
11348
  return p.substr(0, 9) === "u_pattern" ? new b1(c, d) : new Om(c, d);
11349
11349
  }
11350
11350
  }
11351
- class Ma {
11351
+ class Aa {
11352
11352
  constructor(c, d, p, b) {
11353
11353
  this.expression = c, this.type = p, this.maxValue = 0, this.paintVertexAttributes = d.map((S) => ({ name: `a_${S}`, type: "Float32", components: p === "color" ? 2 : 1, offset: 0 })), this.paintVertexArray = new b();
11354
11354
  }
@@ -11446,7 +11446,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11446
11446
  if (M.kind === "constant") this.binders[S] = H ? new od(M.value, T) : new of(M.value, T, R), b.push(`/u_${S}`);
11447
11447
  else if (M.kind === "source" || H) {
11448
11448
  const q = w1(S, R, "source");
11449
- this.binders[S] = H ? new kl(M, R, N, d, q, c.id) : new Ma(M, T, R, q), b.push(`/a_${S}`);
11449
+ this.binders[S] = H ? new kl(M, R, N, d, q, c.id) : new Aa(M, T, R, q), b.push(`/a_${S}`);
11450
11450
  } else {
11451
11451
  const q = w1(S, R, "composite");
11452
11452
  this.binders[S] = new vo(M, T, R, N, d, q), b.push(`/z_${S}`);
@@ -11456,12 +11456,12 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11456
11456
  }
11457
11457
  getMaxValue(c) {
11458
11458
  const d = this.binders[c];
11459
- return d instanceof Ma || d instanceof vo ? d.maxValue : 0;
11459
+ return d instanceof Aa || d instanceof vo ? d.maxValue : 0;
11460
11460
  }
11461
11461
  populatePaintArrays(c, d, p, b, S) {
11462
11462
  for (const E in this.binders) {
11463
11463
  const T = this.binders[E];
11464
- (T instanceof Ma || T instanceof vo || T instanceof kl) && T.populatePaintArray(c, d, p, b, S);
11464
+ (T instanceof Aa || T instanceof vo || T instanceof kl) && T.populatePaintArray(c, d, p, b, S);
11465
11465
  }
11466
11466
  }
11467
11467
  setConstantPatternPositions(c, d) {
@@ -11478,7 +11478,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11478
11478
  const N = p.feature(R.index);
11479
11479
  for (const $ in this.binders) {
11480
11480
  const H = this.binders[$];
11481
- if ((H instanceof Ma || H instanceof vo || H instanceof kl) && H.expression.isStateDependent === !0) {
11481
+ if ((H instanceof Aa || H instanceof vo || H instanceof kl) && H.expression.isStateDependent === !0) {
11482
11482
  const q = b.paint.get($);
11483
11483
  H.expression = q.value, H.updatePaintArray(R.start, R.end, N, c[T], S), E = !0;
11484
11484
  }
@@ -11499,7 +11499,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11499
11499
  const c = [];
11500
11500
  for (const d in this.binders) {
11501
11501
  const p = this.binders[d];
11502
- if (p instanceof Ma || p instanceof vo) for (let b = 0; b < p.paintVertexAttributes.length; b++) c.push(p.paintVertexAttributes[b].name);
11502
+ if (p instanceof Aa || p instanceof vo) for (let b = 0; b < p.paintVertexAttributes.length; b++) c.push(p.paintVertexAttributes[b].name);
11503
11503
  else if (p instanceof kl) for (let b = 0; b < go.members.length; b++) c.push(go.members[b].name);
11504
11504
  }
11505
11505
  return c;
@@ -11538,20 +11538,20 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11538
11538
  if (c && p instanceof kl) {
11539
11539
  const b = c.fromScale === 2 ? p.zoomInPaintVertexBuffer : p.zoomOutPaintVertexBuffer;
11540
11540
  b && this._buffers.push(b);
11541
- } else (p instanceof Ma || p instanceof vo) && p.paintVertexBuffer && this._buffers.push(p.paintVertexBuffer);
11541
+ } else (p instanceof Aa || p instanceof vo) && p.paintVertexBuffer && this._buffers.push(p.paintVertexBuffer);
11542
11542
  }
11543
11543
  }
11544
11544
  upload(c) {
11545
11545
  for (const d in this.binders) {
11546
11546
  const p = this.binders[d];
11547
- (p instanceof Ma || p instanceof vo || p instanceof kl) && p.upload(c);
11547
+ (p instanceof Aa || p instanceof vo || p instanceof kl) && p.upload(c);
11548
11548
  }
11549
11549
  this.updatePaintBuffers();
11550
11550
  }
11551
11551
  destroy() {
11552
11552
  for (const c in this.binders) {
11553
11553
  const d = this.binders[c];
11554
- (d instanceof Ma || d instanceof vo || d instanceof kl) && d.destroy();
11554
+ (d instanceof Aa || d instanceof vo || d instanceof kl) && d.destroy();
11555
11555
  }
11556
11556
  }
11557
11557
  }
@@ -11590,7 +11590,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11590
11590
  }(u);
11591
11591
  return b && b[d] || p[c][d];
11592
11592
  }
11593
- ht("ConstantBinder", of), ht("CrossFadedConstantBinder", od), ht("SourceExpressionBinder", Ma), ht("CrossFadedCompositeBinder", kl), ht("CompositeExpressionBinder", vo), ht("ProgramConfiguration", x1, { omit: ["_buffers"] }), ht("ProgramConfigurationSet", Lc);
11593
+ ht("ConstantBinder", of), ht("CrossFadedConstantBinder", od), ht("SourceExpressionBinder", Aa), ht("CrossFadedCompositeBinder", kl), ht("CompositeExpressionBinder", vo), ht("ProgramConfiguration", x1, { omit: ["_buffers"] }), ht("ProgramConfigurationSet", Lc);
11594
11594
  const Di = 8192, sv = Math.pow(2, 14) - 1, S1 = -sv - 1;
11595
11595
  function Nc(u) {
11596
11596
  const c = Di / u.extent, d = u.loadGeometry();
@@ -12742,7 +12742,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12742
12742
  return u.sections.forEach((p) => {
12743
12743
  p.text = function(b, S, E) {
12744
12744
  const T = S.layout.get("text-transform").evaluate(E, {});
12745
- return T === "uppercase" ? b = b.toLocaleUpperCase() : T === "lowercase" && (b = b.toLocaleLowerCase()), Ca.applyArabicShaping && (b = Ca.applyArabicShaping(b)), b;
12745
+ return T === "uppercase" ? b = b.toLocaleUpperCase() : T === "lowercase" && (b = b.toLocaleLowerCase()), Ea.applyArabicShaping && (b = Ea.applyArabicShaping(b)), b;
12746
12746
  }(p.text, c, d);
12747
12747
  }), u;
12748
12748
  }
@@ -12769,7 +12769,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12769
12769
  }
12770
12770
  Yn.Varint = 0, Yn.Fixed64 = 1, Yn.Bytes = 2, Yn.Fixed32 = 5;
12771
12771
  var xv = 4294967296, rS = 1 / xv, sS = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8");
12772
- function Da(u) {
12772
+ function Ma(u) {
12773
12773
  return u.type === Yn.Bytes ? u.readVarint() + u.pos : u.pos + 1;
12774
12774
  }
12775
12775
  function dd(u, c, d) {
@@ -12875,47 +12875,47 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12875
12875
  return this.pos = u, c;
12876
12876
  }, readPackedVarint: function(u, c) {
12877
12877
  if (this.type !== Yn.Bytes) return u.push(this.readVarint(c));
12878
- var d = Da(this);
12878
+ var d = Ma(this);
12879
12879
  for (u = u || []; this.pos < d; ) u.push(this.readVarint(c));
12880
12880
  return u;
12881
12881
  }, readPackedSVarint: function(u) {
12882
12882
  if (this.type !== Yn.Bytes) return u.push(this.readSVarint());
12883
- var c = Da(this);
12883
+ var c = Ma(this);
12884
12884
  for (u = u || []; this.pos < c; ) u.push(this.readSVarint());
12885
12885
  return u;
12886
12886
  }, readPackedBoolean: function(u) {
12887
12887
  if (this.type !== Yn.Bytes) return u.push(this.readBoolean());
12888
- var c = Da(this);
12888
+ var c = Ma(this);
12889
12889
  for (u = u || []; this.pos < c; ) u.push(this.readBoolean());
12890
12890
  return u;
12891
12891
  }, readPackedFloat: function(u) {
12892
12892
  if (this.type !== Yn.Bytes) return u.push(this.readFloat());
12893
- var c = Da(this);
12893
+ var c = Ma(this);
12894
12894
  for (u = u || []; this.pos < c; ) u.push(this.readFloat());
12895
12895
  return u;
12896
12896
  }, readPackedDouble: function(u) {
12897
12897
  if (this.type !== Yn.Bytes) return u.push(this.readDouble());
12898
- var c = Da(this);
12898
+ var c = Ma(this);
12899
12899
  for (u = u || []; this.pos < c; ) u.push(this.readDouble());
12900
12900
  return u;
12901
12901
  }, readPackedFixed32: function(u) {
12902
12902
  if (this.type !== Yn.Bytes) return u.push(this.readFixed32());
12903
- var c = Da(this);
12903
+ var c = Ma(this);
12904
12904
  for (u = u || []; this.pos < c; ) u.push(this.readFixed32());
12905
12905
  return u;
12906
12906
  }, readPackedSFixed32: function(u) {
12907
12907
  if (this.type !== Yn.Bytes) return u.push(this.readSFixed32());
12908
- var c = Da(this);
12908
+ var c = Ma(this);
12909
12909
  for (u = u || []; this.pos < c; ) u.push(this.readSFixed32());
12910
12910
  return u;
12911
12911
  }, readPackedFixed64: function(u) {
12912
12912
  if (this.type !== Yn.Bytes) return u.push(this.readFixed64());
12913
- var c = Da(this);
12913
+ var c = Ma(this);
12914
12914
  for (u = u || []; this.pos < c; ) u.push(this.readFixed64());
12915
12915
  return u;
12916
12916
  }, readPackedSFixed64: function(u) {
12917
12917
  if (this.type !== Yn.Bytes) return u.push(this.readSFixed64());
12918
- var c = Da(this);
12918
+ var c = Ma(this);
12919
12919
  for (u = u || []; this.pos < c; ) u.push(this.readSFixed64());
12920
12920
  return u;
12921
12921
  }, skip: function(u) {
@@ -13210,7 +13210,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13210
13210
  const Q = fd.fromFeature(u, b);
13211
13211
  let oe;
13212
13212
  $ === a.ah.vertical && Q.verticalizePunctuation();
13213
- const { processBidirectionalText: ce, processStyledBidirectionalText: ke } = Ca;
13213
+ const { processBidirectionalText: ce, processStyledBidirectionalText: ke } = Ea;
13214
13214
  if (ce && Q.sections.length === 1) {
13215
13215
  oe = [];
13216
13216
  const Ie = ce(Q.toString(), Ev(Q, R, S, c, p, q));
@@ -13258,13 +13258,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13258
13258
  Vo = Mn.imageName, Ie.iconsInText = Ie.iconsInText || !0, yd = Is.paddedRect;
13259
13259
  const Gi = Is.displaySize;
13260
13260
  Mn.scale = Mn.scale * Pi / Et, gi = { width: Gi[0], height: Gi[1], left: Xr, top: -lS, advance: Qs ? Gi[1] : Gi[0] }, cs = yr + (Pi - Gi[1] * Mn.scale), jo = gi.advance;
13261
- const Ia = Qs ? Gi[0] * Mn.scale - Pi * Fi : Gi[1] * Mn.scale - Pi * Fi;
13262
- Ia > 0 && Ia > nr && (nr = Ia);
13261
+ const Da = Qs ? Gi[0] * Mn.scale - Pi * Fi : Gi[1] * Mn.scale - Pi * Fi;
13262
+ Da > 0 && Da > nr && (nr = Da);
13263
13263
  } else {
13264
13264
  const Is = dt[Mn.fontStack], Gi = Is && Is[ai];
13265
13265
  if (Gi && Gi.rect) yd = Gi.rect, gi = Gi.metrics;
13266
13266
  else {
13267
- const Ia = He[Mn.fontStack], Sf = Ia && Ia[ai];
13267
+ const Da = He[Mn.fontStack], Sf = Da && Da[ai];
13268
13268
  if (!Sf) continue;
13269
13269
  gi = Sf.metrics;
13270
13270
  }
@@ -13333,7 +13333,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13333
13333
  for (let $ = 0; $ < u.length(); $++) {
13334
13334
  const H = u.getSection($), q = u.getCharCode($);
13335
13335
  if (Wm[q] || (R += dS(q, H, p, b, c, S)), $ < u.length() - 1) {
13336
- const X = !((N = q) < 11904) && (!!pn["CJK Compatibility Forms"](N) || !!pn["CJK Compatibility"](N) || !!pn["CJK Strokes"](N) || !!pn["CJK Symbols and Punctuation"](N) || !!pn["Enclosed CJK Letters and Months"](N) || !!pn["Halfwidth and Fullwidth Forms"](N) || !!pn["Ideographic Description Characters"](N) || !!pn["Vertical Forms"](N) || Ea.test(String.fromCodePoint(N)));
13336
+ const X = !((N = q) < 11904) && (!!pn["CJK Compatibility Forms"](N) || !!pn["CJK Compatibility"](N) || !!pn["CJK Strokes"](N) || !!pn["CJK Symbols and Punctuation"](N) || !!pn["Enclosed CJK Letters and Months"](N) || !!pn["Halfwidth and Fullwidth Forms"](N) || !!pn["Ideographic Description Characters"](N) || !!pn["Vertical Forms"](N) || ka.test(String.fromCodePoint(N)));
13337
13337
  (jO[q] || X || H.imageName || $ !== u.length() - 2 && HO[u.getCharCode($ + 1)]) && E.push(fS($ + 1, R, T, E, UO(q, u.getCharCode($ + 1), X && M), !1));
13338
13338
  }
13339
13339
  }
@@ -13439,7 +13439,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13439
13439
  }
13440
13440
  class Mv {
13441
13441
  constructor(c) {
13442
- this.layoutVertexArray = new Ta(), this.indexArray = new Zr(), this.programConfigurations = c, this.segments = new Gn(), this.dynamicLayoutVertexArray = new id(), this.opacityVertexArray = new rf(), this.hasVisibleVertices = !1, this.placedSymbolArray = new Ut();
13442
+ this.layoutVertexArray = new Ca(), this.indexArray = new Zr(), this.programConfigurations = c, this.segments = new Gn(), this.dynamicLayoutVertexArray = new id(), this.opacityVertexArray = new rf(), this.hasVisibleVertices = !1, this.placedSymbolArray = new Ut();
13443
13443
  }
13444
13444
  isEmpty() {
13445
13445
  return this.layoutVertexArray.length === 0 && this.indexArray.length === 0 && this.dynamicLayoutVertexArray.length === 0 && this.opacityVertexArray.length === 0;
@@ -13491,7 +13491,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
13491
13491
  let He, dt;
13492
13492
  if (we || (Ie.geometry = Nc(oe)), R) {
13493
13493
  const at = b.getValueAndResolveTokens("text-field", Ie, p, X), nt = Wr.factory(at), Ct = this.hasRTLText = this.hasRTLText || ZO(nt);
13494
- (!Ct || Ca.getRTLTextPluginStatus() === "unavailable" || Ct && Ca.isParsed()) && (He = MO(nt, b, Ie));
13494
+ (!Ct || Ea.getRTLTextPluginStatus() === "unavailable" || Ct && Ea.isParsed()) && (He = MO(nt, b, Ie));
13495
13495
  }
13496
13496
  if (N) {
13497
13497
  const at = b.getValueAndResolveTokens("icon-image", Ie, p, X);
@@ -14532,8 +14532,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14532
14532
  const gt = (Ne, Mt) => {
14533
14533
  Mt.x < 0 || Mt.x >= Di || Mt.y < 0 || Mt.y >= Di || function(Et, Wt, Jn, Zn, Ni, Js, er, Bi, Pr, Rr, Or, Si, Fi, yr, tr, zr, nr, Ds, Kr, Mn, ti, ai, cs, gi, yd) {
14534
14534
  const Vo = Et.addToLineVertexArray(Wt, Jn);
14535
- let jo, Qs, Is, Gi, Ia = 0, Sf = 0, KS = 0, JS = 0, Uv = -1, Wv = -1;
14536
- const Pa = {};
14535
+ let jo, Qs, Is, Gi, Da = 0, Sf = 0, KS = 0, JS = 0, Uv = -1, Wv = -1;
14536
+ const Ia = {};
14537
14537
  let QS = sd("");
14538
14538
  if (Et.allowVerticalPlacement && Zn.vertical) {
14539
14539
  const vr = Bi.layout.get("text-rotate").evaluate(ti, {}, gi) + 90;
@@ -14541,7 +14541,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14541
14541
  }
14542
14542
  if (Ni) {
14543
14543
  const vr = Bi.layout.get("icon-rotate").evaluate(ti, {}), Ps = Bi.layout.get("icon-text-fit") !== "none", $c = jS(Ni, vr, cs, Ps), _o = er ? jS(er, vr, cs, Ps) : void 0;
14544
- Qs = new Km(Pr, Wt, Rr, Or, Si, Ni, nr, Ds, !1, vr), Ia = 4 * $c.length;
14544
+ Qs = new Km(Pr, Wt, Rr, Or, Si, Ni, nr, Ds, !1, vr), Da = 4 * $c.length;
14545
14545
  const Vc = Et.iconSizeData;
14546
14546
  let Ho = null;
14547
14547
  Vc.kind === "source" ? (Ho = [$o * Bi.layout.get("icon-size").evaluate(ti, {})], Ho[0] > Tl && ct(`${Et.layerIds[0]}: Value for "icon-size" is >= ${vf}. Reduce your "icon-size".`)) : Vc.kind === "composite" && (Ho = [$o * ai.compositeIconSizes[0].evaluate(ti, {}, gi), $o * ai.compositeIconSizes[1].evaluate(ti, {}, gi)], (Ho[0] > Tl || Ho[1] > Tl) && ct(`${Et.layerIds[0]}: Value for "icon-size" is >= ${vf}. Reduce your "icon-size".`)), Et.addSymbols(Et.icon, $c, Ho, Mn, Kr, ti, a.ah.none, Wt, Vo.lineStartIndex, Vo.lineLength, -1, gi), Uv = Et.icon.placedSymbolArray.length - 1, _o && (Sf = 4 * _o.length, Et.addSymbols(Et.icon, _o, Ho, Mn, Kr, ti, a.ah.vertical, Wt, Vo.lineStartIndex, Vo.lineLength, -1, gi), Wv = Et.icon.placedSymbolArray.length - 1);
@@ -14555,9 +14555,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14555
14555
  jo = new Km(Pr, Wt, Rr, Or, Si, Ps, Fi, yr, tr, _o);
14556
14556
  }
14557
14557
  const $c = Ps.positionedLines.length === 1;
14558
- if (KS += qS(Et, Wt, Ps, Js, Bi, tr, ti, zr, Vo, Zn.vertical ? a.ah.horizontal : a.ah.horizontalOnly, $c ? ek : [vr], Pa, Uv, ai, gi), $c) break;
14558
+ if (KS += qS(Et, Wt, Ps, Js, Bi, tr, ti, zr, Vo, Zn.vertical ? a.ah.horizontal : a.ah.horizontalOnly, $c ? ek : [vr], Ia, Uv, ai, gi), $c) break;
14559
14559
  }
14560
- Zn.vertical && (JS += qS(Et, Wt, Zn.vertical, Js, Bi, tr, ti, zr, Vo, a.ah.vertical, ["vertical"], Pa, Wv, ai, gi));
14560
+ Zn.vertical && (JS += qS(Et, Wt, Zn.vertical, Js, Bi, tr, ti, zr, Vo, a.ah.vertical, ["vertical"], Ia, Wv, ai, gi));
14561
14561
  const dz = jo ? jo.boxStartIndex : Et.collisionBoxArray.length, hz = jo ? jo.boxEndIndex : Et.collisionBoxArray.length, fz = Is ? Is.boxStartIndex : Et.collisionBoxArray.length, pz = Is ? Is.boxEndIndex : Et.collisionBoxArray.length, mz = Qs ? Qs.boxStartIndex : Et.collisionBoxArray.length, gz = Qs ? Qs.boxEndIndex : Et.collisionBoxArray.length, yz = Gi ? Gi.boxStartIndex : Et.collisionBoxArray.length, vz = Gi ? Gi.boxEndIndex : Et.collisionBoxArray.length;
14562
14562
  let bo = -1;
14563
14563
  const Qm = (vr, Ps) => vr && vr.circleDiameter ? Math.max(vr.circleDiameter, Ps) : Ps;
@@ -14572,7 +14572,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
14572
14572
  }
14573
14573
  return [$c, vr.length];
14574
14574
  }(Et.textAnchorOffsets, bz);
14575
- Et.symbolInstances.emplaceBack(Wt.x, Wt.y, Pa.right >= 0 ? Pa.right : -1, Pa.center >= 0 ? Pa.center : -1, Pa.left >= 0 ? Pa.left : -1, Pa.vertical || -1, Uv, Wv, QS, dz, hz, fz, pz, mz, gz, yz, vz, Rr, KS, JS, Ia, Sf, tk, 0, Fi, bo, _z, xz);
14575
+ Et.symbolInstances.emplaceBack(Wt.x, Wt.y, Ia.right >= 0 ? Ia.right : -1, Ia.center >= 0 ? Ia.center : -1, Ia.left >= 0 ? Ia.left : -1, Ia.vertical || -1, Uv, Wv, QS, dz, hz, fz, pz, mz, gz, yz, vz, Rr, KS, JS, Da, Sf, tk, 0, Fi, bo, _z, xz);
14576
14576
  }(u, Mt, Ne, d, p, b, bt, u.layers[0], u.collisionBoxArray, c.index, c.sourceLayerIndex, u.index, oe, [we, we, we, we], dt, M, ke, Ie, Nt, q, c, S, R, N, E);
14577
14577
  };
14578
14578
  if (at === "line") for (const Ne of LS(c.geometry, 0, 0, Di, Di)) {
@@ -15031,7 +15031,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15031
15031
  return c !== u && (u[0] = c[0], u[1] = c[1], u[2] = c[2], u[3] = c[3], u[12] = c[12], u[13] = c[13], u[14] = c[14], u[15] = c[15]), u[4] = S * b + R * p, u[5] = E * b + N * p, u[6] = T * b + $ * p, u[7] = M * b + H * p, u[8] = R * b - S * p, u[9] = N * b - E * p, u[10] = $ * b - T * p, u[11] = H * b - M * p, u;
15032
15032
  }, a.b8 = ee, a.b9 = Z, a.bA = tS, a.bB = function(u) {
15033
15033
  return u.message === hn;
15034
- }, a.bC = Uu, a.bD = Ca, a.ba = function(u) {
15034
+ }, a.bC = Uu, a.bD = Ea, a.ba = function(u) {
15035
15035
  return u * Math.PI / 180;
15036
15036
  }, a.bb = function(u, c) {
15037
15037
  const { x: d, y: p } = bf.fromLngLat(c);
@@ -15146,7 +15146,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
15146
15146
  p.src = u.byteLength ? URL.createObjectURL(b) : Jt;
15147
15147
  }), a.g = Cn, a.h = (u, c) => it(Re(u, { type: "json" }), c), a.i = Gt, a.j = Ht, a.k = qt, a.l = (u, c) => it(Re(u, { type: "arrayBuffer" }), c), a.m = it, a.n = function(u) {
15148
15148
  return new wv(u).readFields(FO, []);
15149
- }, a.o = cf, a.p = cS, a.q = Mr, a.r = km, a.s = vt, a.t = Xh, a.u = ka, a.v = Ae, a.w = ct, a.x = function([u, c, d]) {
15149
+ }, a.o = cf, a.p = cS, a.q = Mr, a.r = km, a.s = vt, a.t = Xh, a.u = Sa, a.v = Ae, a.w = ct, a.x = function([u, c, d]) {
15150
15150
  return c += 90, c *= Math.PI / 180, d *= Math.PI / 180, { x: u * Math.cos(c) * Math.sin(d), y: u * Math.sin(c) * Math.sin(d), z: u * Math.cos(d) };
15151
15151
  }, a.y = Cr, a.z = Fn;
15152
15152
  }), r("worker", ["./shared"], function(a) {
@@ -18666,18 +18666,18 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18666
18666
  let gr = o.aq[(rn = (ri = this.prevPlacement) === null || ri === void 0 ? void 0 : ri.variableOffsets[tt.crossTileID]) === null || rn === void 0 ? void 0 : rn.anchor];
18667
18667
  const Ji = (mi, go, Sl) => {
18668
18668
  const rd = mi.x2 - mi.x1, iv = mi.y2 - mi.y1, Pm = tt.textBoxScale, Rm = rt && xe === "never" ? go : null;
18669
- let Aa = null, sd = re === "never" ? 1 : 2, Rc = "never";
18669
+ let Ta = null, sd = re === "never" ? 1 : 2, Rc = "never";
18670
18670
  gr && sd++;
18671
18671
  for (let sf = 0; sf < sd; sf++) {
18672
18672
  for (let Oc = Zr; Oc < Fo; Oc++) {
18673
18673
  const zc = v.textAnchorOffsets.get(Oc);
18674
18674
  if (gr && zc.textAnchor !== gr) continue;
18675
18675
  const yo = this.attemptAnchorPlacement(zc, mi, rd, iv, Pm, Be, Ue, Y, P, B, ue, Rc, tt, v, Sl, A, I, Rm, St);
18676
- if (yo && (Aa = yo.placedGlyphBoxes, Aa && Aa.placeable)) return mn = !0, Es = yo.shift, Aa;
18676
+ if (yo && (Ta = yo.placedGlyphBoxes, Ta && Ta.placeable)) return mn = !0, Es = yo.shift, Ta;
18677
18677
  }
18678
18678
  gr ? gr = null : Rc = re;
18679
18679
  }
18680
- return y && !Aa && (Aa = { box: this.collisionIndex.placeCollisionBox(Cs, "always", Y, P, B, Ue, Be, A, ue.predicate, St, new o.P(0, 0)).box, offscreen: !1, placeable: !1 }), Aa;
18680
+ return y && !Ta && (Ta = { box: this.collisionIndex.placeCollisionBox(Cs, "always", Y, P, B, Ue, Be, A, ue.predicate, St, new o.P(0, 0)).box, offscreen: !1, placeable: !1 }), Ta;
18681
18681
  };
18682
18682
  Ts(() => Ji(Cs, ut.iconBox, o.ah.horizontal), () => {
18683
18683
  const mi = ut.verticalTextBox;
@@ -18698,8 +18698,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18698
18698
  const Yr = (Ts) => this.collisionIndex.placeCollisionBox(Ts, xe, Y, P, B, Ue, Be, I, ue.predicate, St, rt && Es ? Es : void 0);
18699
18699
  Dr && Dr.placeable && ut.verticalIconBox ? (mr = Yr(ut.verticalIconBox), si = mr.placeable) : (mr = Yr(ut.iconBox), si = mr.placeable), Ki = Ki && mr.offscreen;
18700
18700
  }
18701
- const Ta = he || tt.numHorizontalGlyphVertices === 0 && tt.numVerticalGlyphVertices === 0, id = pe || tt.numIconVertices === 0;
18702
- Ta || id ? id ? Ta || (si = si && mn) : mn = si && mn : si = mn = si && mn;
18701
+ const Ca = he || tt.numHorizontalGlyphVertices === 0 && tt.numVerticalGlyphVertices === 0, id = pe || tt.numIconVertices === 0;
18702
+ Ca || id ? id ? Ca || (si = si && mn) : mn = si && mn : si = mn = si && mn;
18703
18703
  const rf = si && mr.placeable;
18704
18704
  if (mn && fr.placeable && this.collisionIndex.insertCollisionBox(fr.box, re, x.get("text-ignore-placement"), v.bucketInstanceId, Dr && Dr.placeable && wl ? wl : Ks, ue.ID), rf && this.collisionIndex.insertCollisionBox(mr.box, xe, x.get("icon-ignore-placement"), v.bucketInstanceId, nd, ue.ID), pr && mn && this.collisionIndex.insertCollisionCircles(pr.circles, re, x.get("text-ignore-placement"), v.bucketInstanceId, Ks, ue.ID), y && this.storeCollisionData(v.bucketInstanceId, Ut, ut, fr, mr, pr), tt.crossTileID === 0) throw new Error("symbolInstance.crossTileID can't be 0");
18705
18705
  if (v.bucketInstanceId === 0) throw new Error("bucket.bucketInstanceId can't be 0");
@@ -18860,7 +18860,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18860
18860
  return h * Vn + l * xh + h * wh + l * Wr + h * qr + l * D0 + h * as + l;
18861
18861
  }
18862
18862
  const cl = 0;
18863
- function da() {
18863
+ function ua() {
18864
18864
  return { isOccluded: (w, l, h) => !1, getPitchedTextCorrection: (w, l, h) => 1, get useSpecialProjectionForSymbols() {
18865
18865
  return !1;
18866
18866
  }, projectTileCoordinates(w, l, h, y) {
@@ -18888,7 +18888,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
18888
18888
  }
18889
18889
  class cc {
18890
18890
  constructor(l, h, y, v, x, A, I, P) {
18891
- this.placement = new dr(l, da(), h, A, I, P), this._currentPlacementIndex = y.length - 1, this._forceFullPlacement = v, this._showCollisionBoxes = x, this._done = !1;
18891
+ this.placement = new dr(l, ua(), h, A, I, P), this._currentPlacementIndex = y.length - 1, this._forceFullPlacement = v, this._showCollisionBoxes = x, this._done = !1;
18892
18892
  }
18893
18893
  isDone() {
18894
18894
  return this._done;
@@ -19669,7 +19669,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
19669
19669
  this._checkLoaded(), l && this._validate(o.u.sprite, "sprite", l, null, h) || (this.stylesheet.sprite = l, l ? this._loadSprite(l, !0, y) : (this._unloadSprite(), y && y(null)));
19670
19670
  }
19671
19671
  }
19672
- var ha = o.Y([{ name: "a_pos", type: "Int16", components: 2 }]);
19672
+ var da = o.Y([{ name: "a_pos", type: "Int16", components: 2 }]);
19673
19673
  const Oo = { prelude: Pn(`#ifdef GL_ES
19674
19674
  precision mediump float;
19675
19675
  #else
@@ -20367,7 +20367,7 @@ uniform ${V} ${j} u_${Y};
20367
20367
  x = !0, A = [I, I];
20368
20368
  } else x = !1, A = v.pixelsToGLUnits;
20369
20369
  return { u_camera_to_center_distance: v.cameraToCenterDistance, u_scale_with_map: +(y.paint.get("circle-pitch-scale") === "map"), u_matrix: w.translatePosMatrix(l.posMatrix, h, y.paint.get("circle-translate"), y.paint.get("circle-translate-anchor")), u_pitch_with_map: +x, u_device_pixel_ratio: w.pixelRatio, u_extrude_scale: A };
20370
- }, fa = (w, l, h) => ({ u_matrix: w, u_inv_matrix: l, u_camera_to_center_distance: h.cameraToCenterDistance, u_viewport_size: [h.width, h.height] }), dc = (w, l, h = 1) => ({ u_matrix: w, u_color: l, u_overlay: 0, u_overlay_scale: h }), Cr = (w) => ({ u_matrix: w }), Tr = (w, l, h, y) => ({ u_matrix: w, u_extrude_scale: fn(l, 1, h), u_intensity: y }), Pu = (w, l, h, y) => {
20370
+ }, ha = (w, l, h) => ({ u_matrix: w, u_inv_matrix: l, u_camera_to_center_distance: h.cameraToCenterDistance, u_viewport_size: [h.width, h.height] }), dc = (w, l, h = 1) => ({ u_matrix: w, u_color: l, u_overlay: 0, u_overlay_scale: h }), Cr = (w) => ({ u_matrix: w }), Tr = (w, l, h, y) => ({ u_matrix: w, u_extrude_scale: fn(l, 1, h), u_intensity: y }), Pu = (w, l, h, y) => {
20371
20371
  const v = o.H();
20372
20372
  o.aP(v, 0, w.width, w.height, 0, 0, 1);
20373
20373
  const x = w.context.gl;
@@ -20461,13 +20461,13 @@ uniform ${V} ${j} u_${Y};
20461
20461
  this.buffer && (this.context.gl.deleteBuffer(this.buffer), delete this.buffer);
20462
20462
  }
20463
20463
  }
20464
- const pa = /* @__PURE__ */ new WeakMap();
20464
+ const fa = /* @__PURE__ */ new WeakMap();
20465
20465
  function zo(w) {
20466
20466
  var l;
20467
- if (pa.has(w)) return pa.get(w);
20467
+ if (fa.has(w)) return fa.get(w);
20468
20468
  {
20469
20469
  const h = (l = w.getParameter(w.VERSION)) === null || l === void 0 ? void 0 : l.startsWith("WebGL 2.0");
20470
- return pa.set(w, h), h;
20470
+ return fa.set(w, h), h;
20471
20471
  }
20472
20472
  }
20473
20473
  class zn {
@@ -20592,7 +20592,7 @@ uniform ${V} ${j} u_${Y};
20592
20592
  (l !== this.current || this.dirty) && (this.gl.depthFunc(l), this.current = l, this.dirty = !1);
20593
20593
  }
20594
20594
  }
20595
- class ma extends zn {
20595
+ class pa extends zn {
20596
20596
  getDefault() {
20597
20597
  return !1;
20598
20598
  }
@@ -20779,7 +20779,7 @@ uniform ${V} ${j} u_${Y};
20779
20779
  return null;
20780
20780
  }
20781
20781
  }
20782
- class ga extends pc {
20782
+ class ma extends pc {
20783
20783
  setDirty() {
20784
20784
  this.dirty = !0;
20785
20785
  }
@@ -20810,7 +20810,7 @@ uniform ${V} ${j} u_${Y};
20810
20810
  constructor(l, h, y, v, x) {
20811
20811
  this.context = l, this.width = h, this.height = y;
20812
20812
  const A = l.gl, I = this.framebuffer = A.createFramebuffer();
20813
- if (this.colorAttachment = new ga(l, I), v) this.depthAttachment = x ? new U0(l, I) : new Lh(l, I);
20813
+ if (this.colorAttachment = new ma(l, I), v) this.depthAttachment = x ? new U0(l, I) : new Lh(l, I);
20814
20814
  else if (x) throw new Error("Stencil cannot be set without depth");
20815
20815
  if (A.checkFramebufferStatus(A.FRAMEBUFFER) !== A.FRAMEBUFFER_COMPLETE) throw new Error("Framebuffer is not complete");
20816
20816
  }
@@ -20832,7 +20832,7 @@ uniform ${V} ${j} u_${Y};
20832
20832
  class q0 {
20833
20833
  constructor(l) {
20834
20834
  var h, y;
20835
- if (this.gl = l, this.clearColor = new Lu(this), this.clearDepth = new B0(this), this.clearStencil = new fl(this), this.colorMask = new F0(this), this.depthMask = new Qp(this), this.stencilMask = new $0(this), this.stencilFunc = new em(this), this.stencilOp = new Ih(this), this.stencilTest = new tm(this), this.depthRange = new nm(this), this.depthTest = new im(this), this.depthFunc = new rm(this), this.blend = new ma(this), this.blendFunc = new sm(this), this.blendColor = new V0(this), this.blendEquation = new om(this), this.cullFace = new fc(this), this.cullFaceSide = new Nu(this), this.frontFace = new j0(this), this.program = new H0(this), this.activeTexture = new am(this), this.viewport = new lm(this), this.bindFramebuffer = new cm(this), this.bindRenderbuffer = new Ph(this), this.bindTexture = new um(this), this.bindVertexBuffer = new Bu(this), this.bindElementBuffer = new mo(this), this.bindVertexArray = new Rh(this), this.pixelStoreUnpack = new Oh(this), this.pixelStoreUnpackPremultiplyAlpha = new zh(this), this.pixelStoreUnpackFlipY = new dm(this), this.extTextureFilterAnisotropic = l.getExtension("EXT_texture_filter_anisotropic") || l.getExtension("MOZ_EXT_texture_filter_anisotropic") || l.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = l.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = l.getParameter(l.MAX_TEXTURE_SIZE), zo(l)) {
20835
+ if (this.gl = l, this.clearColor = new Lu(this), this.clearDepth = new B0(this), this.clearStencil = new fl(this), this.colorMask = new F0(this), this.depthMask = new Qp(this), this.stencilMask = new $0(this), this.stencilFunc = new em(this), this.stencilOp = new Ih(this), this.stencilTest = new tm(this), this.depthRange = new nm(this), this.depthTest = new im(this), this.depthFunc = new rm(this), this.blend = new pa(this), this.blendFunc = new sm(this), this.blendColor = new V0(this), this.blendEquation = new om(this), this.cullFace = new fc(this), this.cullFaceSide = new Nu(this), this.frontFace = new j0(this), this.program = new H0(this), this.activeTexture = new am(this), this.viewport = new lm(this), this.bindFramebuffer = new cm(this), this.bindRenderbuffer = new Ph(this), this.bindTexture = new um(this), this.bindVertexBuffer = new Bu(this), this.bindElementBuffer = new mo(this), this.bindVertexArray = new Rh(this), this.pixelStoreUnpack = new Oh(this), this.pixelStoreUnpackPremultiplyAlpha = new zh(this), this.pixelStoreUnpackFlipY = new dm(this), this.extTextureFilterAnisotropic = l.getExtension("EXT_texture_filter_anisotropic") || l.getExtension("MOZ_EXT_texture_filter_anisotropic") || l.getExtension("WEBKIT_EXT_texture_filter_anisotropic"), this.extTextureFilterAnisotropic && (this.extTextureFilterAnisotropicMax = l.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)), this.maxTextureSize = l.getParameter(l.MAX_TEXTURE_SIZE), zo(l)) {
20836
20836
  this.HALF_FLOAT = l.HALF_FLOAT;
20837
20837
  const v = l.getExtension("EXT_color_buffer_half_float");
20838
20838
  this.RGBA16F = (h = l.RGBA16F) !== null && h !== void 0 ? h : v == null ? void 0 : v.RGBA16F_EXT, this.RGB16F = (y = l.RGB16F) !== null && y !== void 0 ? y : v == null ? void 0 : v.RGB16F_EXT, l.getExtension("EXT_color_buffer_float");
@@ -20908,7 +20908,7 @@ uniform ${V} ${j} u_${Y};
20908
20908
  this.enable = l, this.mode = h, this.frontFace = y;
20909
20909
  }
20910
20910
  }
20911
- let ya;
20911
+ let ga;
20912
20912
  function mc(w, l, h, y, v) {
20913
20913
  const x = w.context, A = x.gl, I = w.useProgram("collisionBox"), P = [];
20914
20914
  let B = 0, V = 0;
@@ -20931,7 +20931,7 @@ uniform ${V} ${j} u_${Y};
20931
20931
  const re = 4 * pe, be = he.circleArray[re + 0], xe = he.circleArray[re + 1], Ce = he.circleArray[re + 2], Be = he.circleArray[re + 3];
20932
20932
  te.emplace(ne++, be, xe, Ce, Be, 0), te.emplace(ne++, be, xe, Ce, Be, 1), te.emplace(ne++, be, xe, Ce, Be, 2), te.emplace(ne++, be, xe, Ce, Be, 3);
20933
20933
  }
20934
- (!ya || ya.length < 2 * B) && (ya = function(he) {
20934
+ (!ga || ga.length < 2 * B) && (ga = function(he) {
20935
20935
  const pe = 2 * he, re = new o.aT();
20936
20936
  re.resize(pe), re._trim();
20937
20937
  for (let be = 0; be < pe; be++) {
@@ -20940,16 +20940,16 @@ uniform ${V} ${j} u_${Y};
20940
20940
  }
20941
20941
  return re;
20942
20942
  }(B));
20943
- const ae = x.createIndexBuffer(ya, !0), ue = x.createVertexBuffer(te, o.aS.members, !0);
20943
+ const ae = x.createIndexBuffer(ga, !0), ue = x.createVertexBuffer(te, o.aS.members, !0);
20944
20944
  for (const he of P) {
20945
- const pe = fa(he.transform, he.invTransform, w.transform);
20945
+ const pe = ha(he.transform, he.invTransform, w.transform);
20946
20946
  Y.draw(x, A.TRIANGLES, on.disabled, Kn.disabled, w.colorModeForRenderPass(), Bn.disabled, pe, w.style.map.terrain && w.style.map.terrain.getTerrainData(he.coord), h.id, ue, ae, o.a0.simpleSegment(0, 2 * he.circleOffset, he.circleArray.length, he.circleArray.length / 2), null, w.transform.zoom, null, null, null);
20947
20947
  }
20948
20948
  ue.destroy(), ae.destroy();
20949
20949
  }
20950
20950
  Bn.disabled = new Bn(!1, 1029, 2305), Bn.backCCW = new Bn(!0, 1029, 2305);
20951
20951
  const Fu = o.an(new Float32Array(16));
20952
- function va(w, l, h, y, v, x) {
20952
+ function ya(w, l, h, y, v, x) {
20953
20953
  const { horizontalAlign: A, verticalAlign: I } = o.au(w);
20954
20954
  return new o.P((-(A - 0.5) * l / v + y[0]) * x, (-(I - 0.5) * h / v + y[1]) * x);
20955
20955
  }
@@ -20976,7 +20976,7 @@ uniform ${V} ${j} u_${Y};
20976
20976
  const xe = new o.P(re.anchorX, re.anchorY), Ce = { getElevation: te, width: v.width, height: v.height, labelPlaneMatrix: x, lineVertexArray: null, pitchWithMap: h, projection: V, projectionCache: null, tileAnchorPoint: xe, translation: j, unwrappedTileID: Y }, Be = h ? le(xe.x, xe.y, A, te) : ze(xe.x, xe.y, Ce), Ue = W(v.cameraToCenterDistance, Be.signedDistanceFromCamera);
20977
20977
  let rt = o.ai(w.textSizeData, P, re) * Ue / o.ap;
20978
20978
  h && (rt *= w.tilePixelRatio / I);
20979
- const { width: ft, height: et, anchor: Ke, textOffset: St, textBoxScale: Yt } = be, tt = va(Ke, ft, et, St, Yt, rt), ut = V.getPitchedTextCorrection(v, xe.add(new o.P(j[0], j[1])), Y), Ut = pl(Be.point, Ce, l, tt, v.angle, ut), ri = w.allowVerticalPlacement && re.placedOrientation === o.ah.vertical ? Math.PI / 2 : 0;
20979
+ const { width: ft, height: et, anchor: Ke, textOffset: St, textBoxScale: Yt } = be, tt = ya(Ke, ft, et, St, Yt, rt), ut = V.getPitchedTextCorrection(v, xe.add(new o.P(j[0], j[1])), Y), Ut = pl(Be.point, Ce, l, tt, v.angle, ut), ri = w.allowVerticalPlacement && re.placedOrientation === o.ah.vertical ? Math.PI / 2 : 0;
20980
20980
  for (let rn = 0; rn < re.numGlyphs; rn++) o.aj(ae, Ut, ri);
20981
20981
  B && re.associatedIconIndex >= 0 && (he[re.associatedIconIndex] = { shiftedAnchor: Ut, angle: ri });
20982
20982
  } else Lt(re.numGlyphs, ae);
@@ -21001,7 +21001,7 @@ uniform ${V} ${j} u_${Y};
21001
21001
  return h.iconsInText && l ? "symbolTextAndIcon" : w ? "symbolSDF" : "symbolIcon";
21002
21002
  }
21003
21003
  function Bh(w, l, h, y, v, x, A, I, P, B, V, j) {
21004
- const Y = w.context, te = Y.gl, ne = w.transform, ae = da(), ue = I === "map", he = P === "map", pe = I !== "viewport" && h.layout.get("symbol-placement") !== "point", re = ue && !he && !pe, be = !he && pe, xe = !h.layout.get("symbol-sort-key").isConstant();
21004
+ const Y = w.context, te = Y.gl, ne = w.transform, ae = ua(), ue = I === "map", he = P === "map", pe = I !== "viewport" && h.layout.get("symbol-placement") !== "point", re = ue && !he && !pe, be = !he && pe, xe = !h.layout.get("symbol-sort-key").isConstant();
21005
21005
  let Ce = !1;
21006
21006
  const Be = w.depthModeForSublayer(0, on.ReadOnly), Ue = h._unevaluatedLayout.hasValue("text-variable-anchor") || h._unevaluatedLayout.hasValue("text-variable-anchor-offset"), rt = [], ft = ae.getCircleRadiusCorrection(ne);
21007
21007
  for (const et of y) {
@@ -21016,14 +21016,14 @@ uniform ${V} ${j} u_${Y};
21016
21016
  const mi = h.layout.get("icon-size").constantOr(0) !== 1 || St.iconsNeedLinear;
21017
21017
  Es = Ke.imageAtlasTexture, oi = ut || w.options.rotating || w.options.zooming || mi || ri ? te.LINEAR : te.NEAREST, Ki = Ke.imageAtlasTexture.size;
21018
21018
  }
21019
- const mr = fn(Ke, 1, w.transform.zoom), Ks = be ? et.posMatrix : Fu, wl = ur(Ks, he, ue, w.transform, mr), nd = Ur(Ks, he, ue, w.transform, mr), Cs = Ur(et.posMatrix, he, ue, w.transform, mr), Ta = ae.translatePosition(w.transform, Ke, x, A), id = Ue && St.hasTextData(), rf = h.layout.get("icon-text-fit") !== "none" && id && St.hasIconData();
21019
+ const mr = fn(Ke, 1, w.transform.zoom), Ks = be ? et.posMatrix : Fu, wl = ur(Ks, he, ue, w.transform, mr), nd = Ur(Ks, he, ue, w.transform, mr), Cs = Ur(et.posMatrix, he, ue, w.transform, mr), Ca = ae.translatePosition(w.transform, Ke, x, A), id = Ue && St.hasTextData(), rf = h.layout.get("icon-text-fit") !== "none" && id && St.hasIconData();
21020
21020
  if (pe) {
21021
21021
  const mi = w.style.map.terrain ? (Sl, rd) => w.style.map.terrain.getElevation(et, Sl, rd) : null, go = h.layout.get("text-rotation-alignment") === "map";
21022
- J(St, et.posMatrix, w, v, wl, Cs, he, B, go, ae, et.toUnwrapped(), ne.width, ne.height, Ta, mi);
21022
+ J(St, et.posMatrix, w, v, wl, Cs, he, B, go, ae, et.toUnwrapped(), ne.width, ne.height, Ca, mi);
21023
21023
  }
21024
21024
  const Yr = et.posMatrix, Ts = v && Ue || rf, Zr = pe || Ts ? Fu : wl, Fo = nd, gr = ut && h.paint.get(v ? "text-halo-width" : "icon-halo-width").constantOr(1) !== 0;
21025
21025
  let Ji;
21026
- Ji = ut ? St.iconsInText ? Th(Ut.kind, mn, re, he, pe, Ts, w, Yr, Zr, Fo, Ta, Ki, fr, ft) : hc(Ut.kind, mn, re, he, pe, Ts, w, Yr, Zr, Fo, Ta, v, Ki, !0, ft) : Jp(Ut.kind, mn, re, he, pe, Ts, w, Yr, Zr, Fo, Ta, v, Ki, ft);
21026
+ Ji = ut ? St.iconsInText ? Th(Ut.kind, mn, re, he, pe, Ts, w, Yr, Zr, Fo, Ca, Ki, fr, ft) : hc(Ut.kind, mn, re, he, pe, Ts, w, Yr, Zr, Fo, Ca, v, Ki, !0, ft) : Jp(Ut.kind, mn, re, he, pe, Ts, w, Yr, Zr, Fo, Ca, v, Ki, ft);
21027
21027
  const Gn = { program: rn, buffers: Yt, uniformValues: Ji, atlasTexture: Es, atlasTextureIcon: pr, atlasInterpolation: oi, atlasInterpolationIcon: Dr, isSDF: ut, hasHalo: gr };
21028
21028
  if (xe && St.canOverlap) {
21029
21029
  Ce = !0;
@@ -21045,7 +21045,7 @@ uniform ${V} ${j} u_${Y};
21045
21045
  const V = y.context;
21046
21046
  v.draw(V, V.gl.TRIANGLES, x, A, I, Bn.disabled, P, B, h.id, w.layoutVertexBuffer, w.indexBuffer, l, h.paint, y.transform.zoom, w.programConfigurations.get(h.id), w.dynamicLayoutVertexBuffer, w.opacityVertexBuffer);
21047
21047
  }
21048
- function ba(w, l, h, y) {
21048
+ function va(w, l, h, y) {
21049
21049
  const v = w.context, x = v.gl, A = Kn.disabled, I = new xi([x.ONE, x.ONE], o.aM.transparent, [!0, !0, !0, !0]), P = l.getBucket(h);
21050
21050
  if (!P) return;
21051
21051
  const B = y.key;
@@ -21203,13 +21203,13 @@ uniform ${V} ${j} u_${Y};
21203
21203
  }
21204
21204
  setup() {
21205
21205
  const l = this.context, h = new o.aX();
21206
- h.emplaceBack(0, 0), h.emplaceBack(o.X, 0), h.emplaceBack(0, o.X), h.emplaceBack(o.X, o.X), this.tileExtentBuffer = l.createVertexBuffer(h, ha.members), this.tileExtentSegments = o.a0.simpleSegment(0, 0, 4, 2);
21206
+ h.emplaceBack(0, 0), h.emplaceBack(o.X, 0), h.emplaceBack(0, o.X), h.emplaceBack(o.X, o.X), this.tileExtentBuffer = l.createVertexBuffer(h, da.members), this.tileExtentSegments = o.a0.simpleSegment(0, 0, 4, 2);
21207
21207
  const y = new o.aX();
21208
- y.emplaceBack(0, 0), y.emplaceBack(o.X, 0), y.emplaceBack(0, o.X), y.emplaceBack(o.X, o.X), this.debugBuffer = l.createVertexBuffer(y, ha.members), this.debugSegments = o.a0.simpleSegment(0, 0, 4, 5);
21208
+ y.emplaceBack(0, 0), y.emplaceBack(o.X, 0), y.emplaceBack(0, o.X), y.emplaceBack(o.X, o.X), this.debugBuffer = l.createVertexBuffer(y, da.members), this.debugSegments = o.a0.simpleSegment(0, 0, 4, 5);
21209
21209
  const v = new o.$();
21210
21210
  v.emplaceBack(0, 0, 0, 0), v.emplaceBack(o.X, 0, o.X, 0), v.emplaceBack(0, o.X, 0, o.X), v.emplaceBack(o.X, o.X, o.X, o.X), this.rasterBoundsBuffer = l.createVertexBuffer(v, Er.members), this.rasterBoundsSegments = o.a0.simpleSegment(0, 0, 4, 2);
21211
21211
  const x = new o.aX();
21212
- x.emplaceBack(0, 0), x.emplaceBack(1, 0), x.emplaceBack(0, 1), x.emplaceBack(1, 1), this.viewportBuffer = l.createVertexBuffer(x, ha.members), this.viewportSegments = o.a0.simpleSegment(0, 0, 4, 2);
21212
+ x.emplaceBack(0, 0), x.emplaceBack(1, 0), x.emplaceBack(0, 1), x.emplaceBack(1, 1), this.viewportBuffer = l.createVertexBuffer(x, da.members), this.viewportSegments = o.a0.simpleSegment(0, 0, 4, 2);
21213
21213
  const A = new o.aZ();
21214
21214
  A.emplaceBack(0), A.emplaceBack(1), A.emplaceBack(3), A.emplaceBack(2), A.emplaceBack(0), this.tileBorderIndexBuffer = l.createIndexBuffer(A);
21215
21215
  const I = new o.aY();
@@ -21291,7 +21291,7 @@ uniform ${V} ${j} u_${Y};
21291
21291
  const he = new o.aX();
21292
21292
  he.emplaceBack(-1, -1), he.emplaceBack(1, -1), he.emplaceBack(1, 1), he.emplaceBack(-1, 1);
21293
21293
  const pe = new o.aY();
21294
- pe.emplaceBack(0, 1, 2), pe.emplaceBack(0, 2, 3), B.mesh = new _c(V.createVertexBuffer(he, ha.members), V.createIndexBuffer(pe), o.a0.simpleSegment(0, 0, he.length, pe.length));
21294
+ pe.emplaceBack(0, 1, 2), pe.emplaceBack(0, 2, 3), B.mesh = new _c(V.createVertexBuffer(he, da.members), V.createIndexBuffer(pe), o.a0.simpleSegment(0, 0, he.length, pe.length));
21295
21295
  }
21296
21296
  ue.draw(V, j.TRIANGLES, te, ne, ae, Bn.disabled, Y, void 0, "sky", B.mesh.vertexBuffer, B.mesh.indexBuffer, B.mesh.segments);
21297
21297
  }(this, this.style.sky), this._showOverdrawInspector = h.showOverdrawInspector, this.depthRangeFor3D = [0, 1 - (l._order.length + 2) * this.numSublayers * this.depthEpsilon], !this.renderToTexture) for (this.renderPass = "opaque", this.currentLayer = y.length - 1; this.currentLayer >= 0; this.currentLayer--) {
@@ -21356,7 +21356,7 @@ uniform ${V} ${j} u_${Y};
21356
21356
  if (x.renderPass !== "translucent") return;
21357
21357
  const V = Kn.disabled, j = x.colorModeForRenderPass();
21358
21358
  (I._unevaluatedLayout.hasValue("text-variable-anchor") || I._unevaluatedLayout.hasValue("text-variable-anchor-offset")) && function(Y, te, ne, ae, ue, he, pe, re, be) {
21359
- const xe = te.transform, Ce = da(), Be = ue === "map", Ue = he === "map";
21359
+ const xe = te.transform, Ce = ua(), Be = ue === "map", Ue = he === "map";
21360
21360
  for (const rt of Y) {
21361
21361
  const ft = ae.getTile(rt), et = ft.getBucket(ne);
21362
21362
  if (!et || !et.text || !et.text.segments.get().length) continue;
@@ -21398,7 +21398,7 @@ uniform ${V} ${j} u_${Y};
21398
21398
  if (x.style.map.terrain) {
21399
21399
  for (const V of P) {
21400
21400
  const j = A.getTile(V);
21401
- A.hasRenderableParent(V) || (x.renderPass === "offscreen" ? ba(x, j, I, V) : x.renderPass === "translucent" && Vu(x, I, V));
21401
+ A.hasRenderableParent(V) || (x.renderPass === "offscreen" ? va(x, j, I, V) : x.renderPass === "translucent" && Vu(x, I, V));
21402
21402
  }
21403
21403
  B.viewport.set([0, 0, x.width, x.height]);
21404
21404
  } else x.renderPass === "offscreen" ? function(V, j, Y, te) {
@@ -22095,19 +22095,19 @@ uniform ${V} ${j} u_${Y};
22095
22095
  for (const { settings: x } of this._inertiaBuffer) h.zoom += x.zoomDelta || 0, h.bearing += x.bearingDelta || 0, h.pitch += x.pitchDelta || 0, x.panDelta && h.pan._add(x.panDelta), x.around && (h.around = x.around), x.pinchAround && (h.pinchAround = x.pinchAround);
22096
22096
  const y = this._inertiaBuffer[this._inertiaBuffer.length - 1].time - this._inertiaBuffer[0].time, v = {};
22097
22097
  if (h.pan.mag()) {
22098
- const x = _a(h.pan.mag(), y, o.e({}, Z0, l || {}));
22098
+ const x = ba(h.pan.mag(), y, o.e({}, Z0, l || {}));
22099
22099
  v.offset = h.pan.mult(x.amount / h.pan.mag()), v.center = this._map.transform.center, kc(v, x);
22100
22100
  }
22101
22101
  if (h.zoom) {
22102
- const x = _a(h.zoom, y, vm);
22102
+ const x = ba(h.zoom, y, vm);
22103
22103
  v.zoom = this._map.transform.zoom + x.amount, kc(v, x);
22104
22104
  }
22105
22105
  if (h.bearing) {
22106
- const x = _a(h.bearing, y, qu);
22106
+ const x = ba(h.bearing, y, qu);
22107
22107
  v.bearing = this._map.transform.bearing + o.ac(x.amount, -179, 179), kc(v, x);
22108
22108
  }
22109
22109
  if (h.pitch) {
22110
- const x = _a(h.pitch, y, Vh);
22110
+ const x = ba(h.pitch, y, Vh);
22111
22111
  v.pitch = this._map.transform.pitch + x.amount, kc(v, x);
22112
22112
  }
22113
22113
  if (v.zoom || v.bearing) {
@@ -22120,7 +22120,7 @@ uniform ${V} ${j} u_${Y};
22120
22120
  function kc(w, l) {
22121
22121
  (!w.duration || w.duration < l.duration) && (w.duration = l.duration, w.easing = l.easing);
22122
22122
  }
22123
- function _a(w, l, h) {
22123
+ function ba(w, l, h) {
22124
22124
  const { maxSpeed: y, linearity: v, deceleration: x } = h, A = o.ac(w * v / (l / 1e3), -y, y), I = Math.abs(A) / (x * v);
22125
22125
  return { easing: h.easing, duration: 1e3 * I, amount: A * (I / 2) };
22126
22126
  }
@@ -22213,7 +22213,7 @@ uniform ${V} ${j} u_${Y};
22213
22213
  disable() {
22214
22214
  }
22215
22215
  }
22216
- class xa {
22216
+ class _a {
22217
22217
  constructor(l) {
22218
22218
  this._map = l;
22219
22219
  }
@@ -22399,7 +22399,7 @@ uniform ${V} ${j} u_${Y};
22399
22399
  return this._active;
22400
22400
  }
22401
22401
  }
22402
- class wa {
22402
+ class xa {
22403
22403
  constructor(l) {
22404
22404
  this._enabled = !!l.enable, this._moveStateManager = l.moveStateManager, this._clickTolerance = l.clickTolerance || 1, this._moveFunction = l.move, this._activateOnStart = !!l.activateOnStart, l.assignEvents(this), this.reset();
22405
22405
  }
@@ -22497,10 +22497,10 @@ uniform ${V} ${j} u_${Y};
22497
22497
  };
22498
22498
  }, Uh = ({ enable: w, clickTolerance: l, bearingDegreesPerPixelMoved: h = 0.8 }) => {
22499
22499
  const y = new Yu({ checkCorrectEvent: (v) => k.mouseButton(v) === 0 && v.ctrlKey || k.mouseButton(v) === 2 });
22500
- return new wa({ clickTolerance: l, move: (v, x) => ({ bearingDelta: (x.x - v.x) * h }), moveStateManager: y, enable: w, assignEvents: Zu });
22500
+ return new xa({ clickTolerance: l, move: (v, x) => ({ bearingDelta: (x.x - v.x) * h }), moveStateManager: y, enable: w, assignEvents: Zu });
22501
22501
  }, Bo = ({ enable: w, clickTolerance: l, pitchDegreesPerPixelMoved: h = -0.5 }) => {
22502
22502
  const y = new Yu({ checkCorrectEvent: (v) => k.mouseButton(v) === 0 && v.ctrlKey || k.mouseButton(v) === 2 });
22503
- return new wa({ clickTolerance: l, move: (v, x) => ({ pitchDelta: (x.y - v.y) * h }), moveStateManager: y, enable: w, assignEvents: Zu });
22503
+ return new xa({ clickTolerance: l, move: (v, x) => ({ pitchDelta: (x.y - v.y) * h }), moveStateManager: y, enable: w, assignEvents: Zu });
22504
22504
  };
22505
22505
  class wm {
22506
22506
  constructor(l, h) {
@@ -22629,7 +22629,7 @@ uniform ${V} ${j} u_${Y};
22629
22629
  return Math.abs(y) < h;
22630
22630
  }
22631
22631
  }
22632
- function Sa(w) {
22632
+ function wa(w) {
22633
22633
  return Math.abs(w.y) > Math.abs(w.x);
22634
22634
  }
22635
22635
  class Zh extends Xu {
@@ -22643,7 +22643,7 @@ uniform ${V} ${j} u_${Y};
22643
22643
  super.touchstart(l, h, y), this._currentTouchCount = y.length;
22644
22644
  }
22645
22645
  _start(l) {
22646
- this._lastPoints = l, Sa(l[0].sub(l[1])) && (this._valid = !1);
22646
+ this._lastPoints = l, wa(l[0].sub(l[1])) && (this._valid = !1);
22647
22647
  }
22648
22648
  _move(l, h, y) {
22649
22649
  if (this._map.cooperativeGestures.isEnabled() && this._currentTouchCount < 3) return;
@@ -22656,7 +22656,7 @@ uniform ${V} ${j} u_${Y};
22656
22656
  if (!v && !x) return;
22657
22657
  if (!v || !x) return this._firstMove === void 0 && (this._firstMove = y), y - this._firstMove < 100 && void 0;
22658
22658
  const A = l.y > 0 == h.y > 0;
22659
- return Sa(l) && Sa(h) && A;
22659
+ return wa(l) && wa(h) && A;
22660
22660
  }
22661
22661
  }
22662
22662
  const ws = { panStep: 100, bearingStep: 15, pitchStep: 10 };
@@ -22727,7 +22727,7 @@ uniform ${V} ${j} u_${Y};
22727
22727
  return w * (2 - w);
22728
22728
  }
22729
22729
  const ks = 4.000244140625;
22730
- class ka {
22730
+ class Sa {
22731
22731
  constructor(l, h) {
22732
22732
  this._onTimeout = (y) => {
22733
22733
  this._type = "wheel", this._delta -= this._lastValue, this._active || this._start(y);
@@ -23037,15 +23037,15 @@ uniform ${V} ${j} u_${Y};
23037
23037
  h.dragRotate = new Xh(l, V, j), this._add("mouseRotate", V, ["mousePitch"]), this._add("mousePitch", j, ["mouseRotate"]), l.interactive && l.dragRotate && h.dragRotate.enable();
23038
23038
  const Y = (({ enable: pe, clickTolerance: re }) => {
23039
23039
  const be = new Yu({ checkCorrectEvent: (xe) => k.mouseButton(xe) === 0 && !xe.ctrlKey });
23040
- return new wa({ clickTolerance: re, move: (xe, Ce) => ({ around: Ce, panDelta: Ce.sub(xe) }), activateOnStart: !0, moveStateManager: be, enable: pe, assignEvents: Zu });
23040
+ return new xa({ clickTolerance: re, move: (xe, Ce) => ({ around: Ce, panDelta: Ce.sub(xe) }), activateOnStart: !0, moveStateManager: be, enable: pe, assignEvents: Zu });
23041
23041
  })(l), te = new wm(l, h);
23042
23042
  h.dragPan = new Em(y, Y, te), this._add("mousePan", Y), this._add("touchPan", te, ["touchZoom", "touchRotate"]), l.interactive && l.dragPan && h.dragPan.enable(l.dragPan);
23043
23043
  const ne = new Yh(), ae = new qh();
23044
23044
  h.touchZoomRotate = new _l(y, ae, ne, P), this._add("touchRotate", ne, ["touchPan", "touchZoom"]), this._add("touchZoom", ae, ["touchPan", "touchRotate"]), l.interactive && l.touchZoomRotate && h.touchZoomRotate.enable(l.touchZoomRotate);
23045
- const ue = h.scrollZoom = new ka(h, () => this._triggerRenderFrame());
23045
+ const ue = h.scrollZoom = new Sa(h, () => this._triggerRenderFrame());
23046
23046
  this._add("scrollZoom", ue, ["mousePan"]), l.interactive && l.scrollZoom && h.scrollZoom.enable(l.scrollZoom);
23047
23047
  const he = h.keyboard = new Ss(h);
23048
- this._add("keyboard", he), l.interactive && l.keyboard && h.keyboard.enable(), this._add("blockableMapEvent", new xa(h));
23048
+ this._add("keyboard", he), l.interactive && l.keyboard && h.keyboard.enable(), this._add("blockableMapEvent", new _a(h));
23049
23049
  }
23050
23050
  _add(l, h, y) {
23051
23051
  this._handlers.push({ handlerName: l, handler: h, allowed: y }), this._handlersById[l] = h;
@@ -23685,7 +23685,7 @@ uniform ${V} ${j} u_${Y};
23685
23685
  return !(this._objects.length < this._size) && this._objects.some((l) => !l.inUse) === !1;
23686
23686
  }
23687
23687
  }
23688
- const Ea = { background: !0, fill: !0, line: !0, raster: !0, hillshade: !0 };
23688
+ const ka = { background: !0, fill: !0, line: !0, raster: !0, hillshade: !0 };
23689
23689
  class ef {
23690
23690
  constructor(l, h) {
23691
23691
  this.painter = l, this.terrain = h, this.pool = new ev(l.context, 30, h.sourceCache.tileSize * h.qualityFactor);
@@ -23709,7 +23709,7 @@ uniform ${V} ${j} u_${Y};
23709
23709
  this._coordsDescendingInvStr = {};
23710
23710
  for (const y of l._order) {
23711
23711
  const v = l._layers[y], x = v.source;
23712
- if (Ea[v.type] && !this._coordsDescendingInvStr[x]) {
23712
+ if (ka[v.type] && !this._coordsDescendingInvStr[x]) {
23713
23713
  this._coordsDescendingInvStr[x] = {};
23714
23714
  for (const A in this._coordsDescendingInv[x]) this._coordsDescendingInvStr[x][A] = this._coordsDescendingInv[x][A].map((I) => I.key).sort().join();
23715
23715
  }
@@ -23722,8 +23722,8 @@ uniform ${V} ${j} u_${Y};
23722
23722
  renderLayer(l) {
23723
23723
  if (l.isHidden(this.painter.transform.zoom)) return !1;
23724
23724
  const h = l.type, y = this.painter, v = this._renderableLayerIds[this._renderableLayerIds.length - 1] === l.id;
23725
- if (Ea[h] && (this._prevType && Ea[this._prevType] || this._stacks.push([]), this._prevType = h, this._stacks[this._stacks.length - 1].push(l.id), !v)) return !0;
23726
- if (Ea[this._prevType] || Ea[h] && v) {
23725
+ if (ka[h] && (this._prevType && ka[this._prevType] || this._stacks.push([]), this._prevType = h, this._stacks[this._stacks.length - 1].push(l.id), !v)) return !0;
23726
+ if (ka[this._prevType] || ka[h] && v) {
23727
23727
  this._prevType = h;
23728
23728
  const x = this._stacks.length - 1, A = this._stacks[x] || [];
23729
23729
  for (const I of this._renderableTiles) {
@@ -23741,7 +23741,7 @@ uniform ${V} ${j} u_${Y};
23741
23741
  y.context.viewport.set([0, 0, P.fbo.width, P.fbo.height]), y._renderTileClippingMasks(V, j), y.renderLayer(y, y.style.sourceCaches[V.source], V, j), V.source && (I.rttCoords[V.source] = this._coordsDescendingInvStr[V.source][I.tileID.key]);
23742
23742
  }
23743
23743
  }
23744
- return Hu(this.painter, this.terrain, this._rttTiles), this._rttTiles = [], this.pool.freeAllObjects(), Ea[h];
23744
+ return Hu(this.painter, this.terrain, this._rttTiles), this._rttTiles = [], this.pool.freeAllObjects(), ka[h];
23745
23745
  }
23746
23746
  return !1;
23747
23747
  }
@@ -23749,7 +23749,7 @@ uniform ${V} ${j} u_${Y};
23749
23749
  const Am = { "AttributionControl.ToggleAttribution": "Toggle attribution", "AttributionControl.MapFeedback": "Map feedback", "FullscreenControl.Enter": "Enter fullscreen", "FullscreenControl.Exit": "Exit fullscreen", "GeolocateControl.FindMyLocation": "Find my location", "GeolocateControl.LocationNotAvailable": "Location not available", "LogoControl.Title": "MapLibre logo", "Map.Title": "Map", "Marker.Title": "Map marker", "NavigationControl.ResetBearing": "Reset bearing to north", "NavigationControl.ZoomIn": "Zoom in", "NavigationControl.ZoomOut": "Zoom out", "Popup.Close": "Close popup", "ScaleControl.Feet": "ft", "ScaleControl.Meters": "m", "ScaleControl.Kilometers": "km", "ScaleControl.Miles": "mi", "ScaleControl.NauticalMiles": "nm", "TerrainControl.Enable": "Enable terrain", "TerrainControl.Disable": "Disable terrain", "CooperativeGesturesHandler.WindowsHelpText": "Use Ctrl + scroll to zoom the map", "CooperativeGesturesHandler.MacHelpText": "Use ⌘ + scroll to zoom the map", "CooperativeGesturesHandler.MobileHelpText": "Use two fingers to move the map" }, tv = f, Mm = { hash: !1, interactive: !0, bearingSnap: 7, attributionControl: xl, maplibreLogo: !1, failIfMajorPerformanceCaveat: !1, preserveDrawingBuffer: !1, refreshExpiredTiles: !0, scrollZoom: !0, minZoom: -2, maxZoom: 22, minPitch: 0, maxPitch: 60, boxZoom: !0, dragRotate: !0, dragPan: !0, keyboard: !0, doubleClickZoom: !0, touchZoomRotate: !0, touchPitch: !0, cooperativeGestures: !1, trackResize: !0, center: [0, 0], zoom: 0, bearing: 0, pitch: 0, renderWorldCopies: !0, maxTileCacheSize: null, maxTileCacheZoomLevels: o.a.MAX_TILE_CACHE_ZOOM_LEVELS, transformRequest: null, transformCameraUpdate: null, fadeDuration: 300, crossSourceCollisions: !0, clickTolerance: 3, localIdeographFontFamily: "sans-serif", pitchWithRotate: !0, validateStyle: !0, maxCanvasSize: [4096, 4096], cancelPendingTileRequestsWhileZooming: !0 }, Dm = (w) => {
23750
23750
  w.touchstart = w.dragStart, w.touchmoveWindow = w.dragMove, w.touchend = w.dragEnd;
23751
23751
  }, nv = { showCompass: !0, showZoom: !0, visualizePitch: !1 };
23752
- class Ca {
23752
+ class Ea {
23753
23753
  constructor(l, h, y = !1) {
23754
23754
  this.mousedown = (A) => {
23755
23755
  this.startMouse(o.e({}, A, { ctrlKey: !0, preventDefault: () => A.preventDefault() }), k.mousePos(this.element, A)), k.addEventListener(window, "mousemove", this.mousemove), k.addEventListener(window, "mouseup", this.mouseup);
@@ -23769,10 +23769,10 @@ uniform ${V} ${j} u_${Y};
23769
23769
  const v = l.dragRotate._mouseRotate.getClickTolerance(), x = l.dragRotate._mousePitch.getClickTolerance();
23770
23770
  this.element = h, this.mouseRotate = Uh({ clickTolerance: v, enable: !0 }), this.touchRotate = (({ enable: A, clickTolerance: I, bearingDegreesPerPixelMoved: P = 0.8 }) => {
23771
23771
  const B = new Hh();
23772
- return new wa({ clickTolerance: I, move: (V, j) => ({ bearingDelta: (j.x - V.x) * P }), moveStateManager: B, enable: A, assignEvents: Dm });
23772
+ return new xa({ clickTolerance: I, move: (V, j) => ({ bearingDelta: (j.x - V.x) * P }), moveStateManager: B, enable: A, assignEvents: Dm });
23773
23773
  })({ clickTolerance: v, enable: !0 }), this.map = l, y && (this.mousePitch = Bo({ clickTolerance: x, enable: !0 }), this.touchPitch = (({ enable: A, clickTolerance: I, pitchDegreesPerPixelMoved: P = -0.5 }) => {
23774
23774
  const B = new Hh();
23775
- return new wa({ clickTolerance: I, move: (V, j) => ({ pitchDelta: (j.y - V.y) * P }), moveStateManager: B, enable: A, assignEvents: Dm });
23775
+ return new xa({ clickTolerance: I, move: (V, j) => ({ pitchDelta: (j.y - V.y) * P }), moveStateManager: B, enable: A, assignEvents: Dm });
23776
23776
  })({ clickTolerance: x, enable: !0 })), k.addEventListener(h, "mousedown", this.mousedown), k.addEventListener(h, "touchstart", this.touchstart, { passive: !1 }), k.addEventListener(h, "touchcancel", this.reset);
23777
23777
  }
23778
23778
  startMouse(l, h) {
@@ -24790,7 +24790,7 @@ uniform ${V} ${j} u_${Y};
24790
24790
  }), this._compassIcon = k.create("span", "maplibregl-ctrl-icon", this._compass), this._compassIcon.setAttribute("aria-hidden", "true"));
24791
24791
  }
24792
24792
  onAdd(w) {
24793
- return this._map = w, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, "ZoomIn"), this._setButtonTitle(this._zoomOutButton, "ZoomOut"), this._map.on("zoom", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, "ResetBearing"), this.options.visualizePitch && this._map.on("pitch", this._rotateCompassArrow), this._map.on("rotate", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new Ca(this._map, this._compass, this.options.visualizePitch)), this._container;
24793
+ return this._map = w, this.options.showZoom && (this._setButtonTitle(this._zoomInButton, "ZoomIn"), this._setButtonTitle(this._zoomOutButton, "ZoomOut"), this._map.on("zoom", this._updateZoomButtons), this._updateZoomButtons()), this.options.showCompass && (this._setButtonTitle(this._compass, "ResetBearing"), this.options.visualizePitch && this._map.on("pitch", this._rotateCompassArrow), this._map.on("rotate", this._rotateCompassArrow), this._rotateCompassArrow(), this._handler = new Ea(this._map, this._compass, this.options.visualizePitch)), this._container;
24794
24794
  }
24795
24795
  onRemove() {
24796
24796
  k.remove(this._container), this.options.showZoom && this._map.off("zoom", this._updateZoomButtons), this.options.showCompass && (this.options.visualizePitch && this._map.off("pitch", this._rotateCompassArrow), this._map.off("rotate", this._rotateCompassArrow), this._handler.off(), delete this._handler), delete this._map;
@@ -24909,7 +24909,7 @@ uniform ${V} ${j} u_${Y};
24909
24909
  onRemove() {
24910
24910
  k.remove(this._container), this._map.off("move", this._onMove), this._map = void 0;
24911
24911
  }
24912
- }, a.ScrollZoomHandler = ka, a.Style = Mu, a.TerrainControl = class {
24912
+ }, a.ScrollZoomHandler = Sa, a.Style = Mu, a.TerrainControl = class {
24913
24913
  constructor(w) {
24914
24914
  this._toggleTerrain = () => {
24915
24915
  this._map.getTerrain() ? this._map.setTerrain(null) : this._map.setTerrain(this.options), this._updateTerrainIcon();
@@ -25713,7 +25713,7 @@ function yV(n, e, t, i, r, s) {
25713
25713
  }, " Шари ")),
25714
25714
  L("div", {
25715
25715
  id: r.mapId,
25716
- style: ea({ height: t.height })
25716
+ style: Ja({ height: t.height })
25717
25717
  }, null, 12, gV)
25718
25718
  ]);
25719
25719
  }
@@ -25890,7 +25890,7 @@ var Qn;
25890
25890
  (function(n) {
25891
25891
  n[n.Init = 0] = "Init", n[n.Error = 1] = "Error", n[n.Ready = 2] = "Ready", n[n.Panning = 3] = "Panning", n[n.Mousemove = 4] = "Mousemove", n[n.Destroy = 5] = "Destroy";
25892
25892
  })(Qn || (Qn = {}));
25893
- const za = ["a", "b", "c", "d", "e", "f"], KA = { PANUP: "Move up", PANDOWN: "Move down", PANLEFT: "Move left", PANRIGHT: "Move right", ZOOMIN: "Zoom in", ZOOMOUT: "Zoom out", TOGGLEZOOM: "Toggle zoom level", TOGGLE1TO1: "Toggle zoom level", ITERATEZOOM: "Toggle zoom level", ROTATECCW: "Rotate counterclockwise", ROTATECW: "Rotate clockwise", FLIPX: "Flip horizontally", FLIPY: "Flip vertically", FITX: "Fit horizontally", FITY: "Fit vertically", RESET: "Reset", TOGGLEFS: "Toggle fullscreen" }, bV = { content: null, width: "auto", height: "auto", panMode: "drag", touch: !0, dragMinThreshold: 3, lockAxis: !1, mouseMoveFactor: 1, mouseMoveFriction: 0.12, zoom: !0, pinchToZoom: !0, panOnlyZoomed: "auto", minScale: 1, maxScale: 2, friction: 0.25, dragFriction: 0.35, decelFriction: 0.05, click: "toggleZoom", dblClick: !1, wheel: "zoom", wheelLimit: 7, spinner: !0, bounds: "auto", infinite: !1, rubberband: !0, bounce: !0, maxVelocity: 75, transformParent: !1, classes: { content: "f-panzoom__content", isLoading: "is-loading", canZoomIn: "can-zoom_in", canZoomOut: "can-zoom_out", isDraggable: "is-draggable", isDragging: "is-dragging", inFullscreen: "in-fullscreen", htmlHasFullscreen: "with-panzoom-in-fullscreen" }, l10n: KA }, Wk = '<circle cx="25" cy="25" r="20"></circle>', rw = '<div class="f-spinner"><svg viewBox="0 0 50 50">' + Wk + Wk + "</svg></div>", ds = (n) => n && n !== null && n instanceof Element && "nodeType" in n, Xn = (n, e) => {
25893
+ const Oa = ["a", "b", "c", "d", "e", "f"], KA = { PANUP: "Move up", PANDOWN: "Move down", PANLEFT: "Move left", PANRIGHT: "Move right", ZOOMIN: "Zoom in", ZOOMOUT: "Zoom out", TOGGLEZOOM: "Toggle zoom level", TOGGLE1TO1: "Toggle zoom level", ITERATEZOOM: "Toggle zoom level", ROTATECCW: "Rotate counterclockwise", ROTATECW: "Rotate clockwise", FLIPX: "Flip horizontally", FLIPY: "Flip vertically", FITX: "Fit horizontally", FITY: "Fit vertically", RESET: "Reset", TOGGLEFS: "Toggle fullscreen" }, bV = { content: null, width: "auto", height: "auto", panMode: "drag", touch: !0, dragMinThreshold: 3, lockAxis: !1, mouseMoveFactor: 1, mouseMoveFriction: 0.12, zoom: !0, pinchToZoom: !0, panOnlyZoomed: "auto", minScale: 1, maxScale: 2, friction: 0.25, dragFriction: 0.35, decelFriction: 0.05, click: "toggleZoom", dblClick: !1, wheel: "zoom", wheelLimit: 7, spinner: !0, bounds: "auto", infinite: !1, rubberband: !0, bounce: !0, maxVelocity: 75, transformParent: !1, classes: { content: "f-panzoom__content", isLoading: "is-loading", canZoomIn: "can-zoom_in", canZoomOut: "can-zoom_out", isDraggable: "is-draggable", isDragging: "is-dragging", inFullscreen: "in-fullscreen", htmlHasFullscreen: "with-panzoom-in-fullscreen" }, l10n: KA }, Wk = '<circle cx="25" cy="25" r="20"></circle>', rw = '<div class="f-spinner"><svg viewBox="0 0 50 50">' + Wk + Wk + "</svg></div>", ds = (n) => n && n !== null && n instanceof Element && "nodeType" in n, Xn = (n, e) => {
25894
25894
  n && nw(e).forEach((t) => {
25895
25895
  n.classList.remove(t);
25896
25896
  });
@@ -25956,7 +25956,7 @@ let ob = null, ab = null, Kd = class JA extends iw {
25956
25956
  }
25957
25957
  get isResting() {
25958
25958
  if (this.isBouncingX || this.isBouncingY) return !1;
25959
- for (const e of za) {
25959
+ for (const e of Oa) {
25960
25960
  const t = e == "e" || e === "f" ? 1e-4 : 1e-5;
25961
25961
  if (Math.abs(this.target[e] - this.current[e]) > t) return !1;
25962
25962
  }
@@ -26038,11 +26038,11 @@ let ob = null, ab = null, Kd = class JA extends iw {
26038
26038
  animate() {
26039
26039
  this.setTargetForce();
26040
26040
  const e = this.friction, t = this.option("maxVelocity");
26041
- for (const i of za) e ? (this.velocity[i] *= 1 - e, t && !this.isScaling && (this.velocity[i] = Math.max(Math.min(this.velocity[i], t), -1 * t)), this.current[i] += this.velocity[i]) : this.current[i] = this.target[i];
26041
+ for (const i of Oa) e ? (this.velocity[i] *= 1 - e, t && !this.isScaling && (this.velocity[i] = Math.max(Math.min(this.velocity[i], t), -1 * t)), this.current[i] += this.velocity[i]) : this.current[i] = this.target[i];
26042
26042
  this.setTransform(), this.setEdgeForce(), !this.isResting || this.isDragging ? this.rAF = requestAnimationFrame(() => this.animate()) : this.stop("current");
26043
26043
  }
26044
26044
  setTargetForce() {
26045
- for (const e of za) e === "e" && this.isBouncingX || e === "f" && this.isBouncingY || (this.velocity[e] = (1 / (1 - this.friction) - 1) * (this.target[e] - this.current[e]));
26045
+ for (const e of Oa) e === "e" && this.isBouncingX || e === "f" && this.isBouncingY || (this.velocity[e] = (1 / (1 - this.friction) - 1) * (this.target[e] - this.current[e]));
26046
26046
  }
26047
26047
  checkBounds(e = 0, t = 0) {
26048
26048
  const { current: i } = this, r = i.e + e, s = i.f + t, a = this.getBounds(), { x: o, y: f } = a, m = o.min, g = o.max, _ = f.min, k = f.max;
@@ -26070,7 +26070,7 @@ let ob = null, ab = null, Kd = class JA extends iw {
26070
26070
  }
26071
26071
  enable() {
26072
26072
  const { content: e } = this, t = new DOMMatrixReadOnly(window.getComputedStyle(e).transform);
26073
- for (const i of za) this.current[i] = this.target[i] = t[i];
26073
+ for (const i of Oa) this.current[i] = this.target[i] = t[i];
26074
26074
  this.updateMetrics(), this.attachObserver(), this.attachEvents(), this.state = Qn.Ready, this.emit("ready");
26075
26075
  }
26076
26076
  onClick(e) {
@@ -26162,7 +26162,7 @@ let ob = null, ab = null, Kd = class JA extends iw {
26162
26162
  var e;
26163
26163
  const t = this.isScaling;
26164
26164
  this.rAF && (cancelAnimationFrame(this.rAF), this.rAF = null), this.isBouncingX = !1, this.isBouncingY = !1;
26165
- for (const ee of za) this.velocity[ee] = 0;
26165
+ for (const ee of Oa) this.velocity[ee] = 0;
26166
26166
  this.target.e = this.current.e, this.target.f = this.current.f, Xn(this.container, "is-scaling"), Xn(this.container, "is-animating"), this.isTicking = !1;
26167
26167
  const { trackingPoints: i } = this, r = i[0], s = i[i.length - 1];
26168
26168
  let a = 0, o = 0, f = 0;
@@ -26201,7 +26201,7 @@ let ob = null, ab = null, Kd = class JA extends iw {
26201
26201
  setTransform() {
26202
26202
  this.emit("beforeTransform");
26203
26203
  const { current: e, target: t, content: i, contentRect: r } = this, s = Object.assign({}, ig);
26204
- for (const O of za) {
26204
+ for (const O of Oa) {
26205
26205
  const F = O == "e" || O === "f" ? rg : _V;
26206
26206
  s[O] = yt(e[O], F), Math.abs(t[O] - e[O]) < (O == "e" || O === "f" ? 0.51 : 1e-3) && (e[O] = t[O]);
26207
26207
  }
@@ -26309,14 +26309,14 @@ let ob = null, ab = null, Kd = class JA extends iw {
26309
26309
  F = F.scale(i);
26310
26310
  }
26311
26311
  F = F.translate(-s, -a).translate(-D, -z).multiply(O), r && (F = F.rotate(r)), f && (F = F.scale(-1, 1)), m && (F = F.scale(1, -1));
26312
- for (const G of za) G !== "e" && G !== "f" && (F[G] > this.minScale + 1e-5 || F[G] < this.minScale - 1e-5) ? this.target[G] = F[G] : this.target[G] = yt(F[G], rg);
26312
+ for (const G of Oa) G !== "e" && G !== "f" && (F[G] > this.minScale + 1e-5 || F[G] < this.minScale - 1e-5) ? this.target[G] = F[G] : this.target[G] = yt(F[G], rg);
26313
26313
  (this.targetScale < this.scale || Math.abs(i - 1) > 0.1 || this.panMode === eo || _ === !1) && !g && this.clampTargetBounds(), k === Qn.Init ? this.animate() : this.isResting || (this.state = Qn.Panning, this.requestTick());
26314
26314
  }
26315
26315
  stop(e = !1) {
26316
26316
  if (this.state === Qn.Init || this.state === Qn.Destroy) return;
26317
26317
  const t = this.isTicking;
26318
26318
  this.rAF && (cancelAnimationFrame(this.rAF), this.rAF = null), this.isBouncingX = !1, this.isBouncingY = !1;
26319
- for (const i of za) this.velocity[i] = 0, e === "current" ? this.current[i] = this.target[i] : e === "target" && (this.target[i] = this.current[i]);
26319
+ for (const i of Oa) this.velocity[i] = 0, e === "current" ? this.current[i] = this.target[i] : e === "target" && (this.target[i] = this.current[i]);
26320
26320
  this.setTransform(), Xn(this.container, "is-scaling"), Xn(this.container, "is-animating"), this.isTicking = !1, this.state = Qn.Ready, t && (this.emit("endAnimation"), this.updateControls());
26321
26321
  }
26322
26322
  requestTick() {
@@ -26427,7 +26427,7 @@ let ob = null, ab = null, Kd = class JA extends iw {
26427
26427
  reset(e) {
26428
26428
  if (this.state !== Qn.Init && this.state !== Qn.Destroy) {
26429
26429
  this.stop("current");
26430
- for (const t of za) this.target[t] = ig[t];
26430
+ for (const t of Oa) this.target[t] = ig[t];
26431
26431
  this.target.a = this.minScale, this.target.d = this.minScale, this.clampTargetBounds(), this.isResting || (this.friction = e === void 0 ? this.option("friction") : e, this.state = Qn.Panning, this.requestTick());
26432
26432
  }
26433
26433
  }
@@ -27336,7 +27336,7 @@ class lM extends Po {
27336
27336
  }
27337
27337
  }
27338
27338
  Object.defineProperty(lM, "defaults", { enumerable: !0, configurable: !0, writable: !0, value: { initialSize: "fit", Panzoom: { maxScale: 1 }, protected: !1, zoom: !0, zoomOpacity: "auto" } }), typeof SuppressedError == "function" && SuppressedError;
27339
- const db = "html", tE = "image", hb = "map", La = "youtube", Hc = "vimeo", Mf = "html5video", nE = (n, e = {}) => {
27339
+ const db = "html", tE = "image", hb = "map", za = "youtube", Hc = "vimeo", Mf = "html5video", nE = (n, e = {}) => {
27340
27340
  const t = new URL(n), i = new URLSearchParams(t.search), r = new URLSearchParams();
27341
27341
  for (const [o, f] of [...i, ...Object.entries(e)]) {
27342
27342
  let m = f + "";
@@ -27379,7 +27379,7 @@ class cM extends Po {
27379
27379
  return;
27380
27380
  }
27381
27381
  let a;
27382
- i.type === Hc ? a = { method: "pause", value: "true" } : i.type === La && (a = { event: "command", func: "pauseVideo" }), a && i.iframeEl && i.iframeEl.contentWindow && i.iframeEl.contentWindow.postMessage(JSON.stringify(a), "*"), i.poller && clearTimeout(i.poller);
27382
+ i.type === Hc ? a = { method: "pause", value: "true" } : i.type === za && (a = { event: "command", func: "pauseVideo" }), a && i.iframeEl && i.iframeEl.contentWindow && i.iframeEl.contentWindow.postMessage(JSON.stringify(a), "*"), i.poller && clearTimeout(i.poller);
27383
27383
  }
27384
27384
  onDone(e, t) {
27385
27385
  e.isCurrentSlide(t) && !e.isClosing() && this.playVideo();
@@ -27452,7 +27452,7 @@ class cM extends Po {
27452
27452
  }
27453
27453
  resizeIframe(e) {
27454
27454
  const { type: t, iframeEl: i } = e;
27455
- if (t === La || t === Hc) return;
27455
+ if (t === za || t === Hc) return;
27456
27456
  const r = i == null ? void 0 : i.parentElement;
27457
27457
  if (!i || !r) return;
27458
27458
  let s = e.autoSize;
@@ -27489,12 +27489,12 @@ class cM extends Po {
27489
27489
  }
27490
27490
  } catch {
27491
27491
  }
27492
- if (e.type !== La && e.type !== Hc) return;
27492
+ if (e.type !== za && e.type !== Hc) return;
27493
27493
  const i = () => {
27494
27494
  if (e.iframeEl && e.iframeEl.contentWindow) {
27495
27495
  let r;
27496
- if (e.iframeEl.dataset.ready === "true") return r = e.type === La ? { event: "command", func: "playVideo" } : { method: "play", value: "true" }, r && e.iframeEl.contentWindow.postMessage(JSON.stringify(r), "*"), void (e.poller = void 0);
27497
- e.type === La && (r = { event: "listening", id: e.iframeEl.getAttribute("id") }, e.iframeEl.contentWindow.postMessage(JSON.stringify(r), "*"));
27496
+ if (e.iframeEl.dataset.ready === "true") return r = e.type === za ? { event: "command", func: "playVideo" } : { method: "play", value: "true" }, r && e.iframeEl.contentWindow.postMessage(JSON.stringify(r), "*"), void (e.poller = void 0);
27497
+ e.type === za && (r = { event: "listening", id: e.iframeEl.getAttribute("id") }, e.iframeEl.contentWindow.postMessage(JSON.stringify(r), "*"));
27498
27498
  }
27499
27499
  e.poller = setTimeout(i, 250);
27500
27500
  };
@@ -27506,7 +27506,7 @@ class cM extends Po {
27506
27506
  if (!t || typeof t != "string") return;
27507
27507
  let i = e.type, r = null;
27508
27508
  if (r = t.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)) {
27509
- const s = this.optionFor(e, La), { nocookie: a } = s, o = function(_, k) {
27509
+ const s = this.optionFor(e, za), { nocookie: a } = s, o = function(_, k) {
27510
27510
  var C = {};
27511
27511
  for (var D in _) Object.prototype.hasOwnProperty.call(_, D) && k.indexOf(D) < 0 && (C[D] = _[D]);
27512
27512
  if (_ != null && typeof Object.getOwnPropertySymbols == "function") {
@@ -27515,7 +27515,7 @@ class cM extends Po {
27515
27515
  }
27516
27516
  return C;
27517
27517
  }(s, ["nocookie"]), f = `www.youtube${a ? "-nocookie" : ""}.com`, m = nE(t, o), g = encodeURIComponent(r[2]);
27518
- e.videoId = g, e.src = `https://${f}/embed/${g}?${m}`, e.thumbSrc = e.thumbSrc || `https://i.ytimg.com/vi/${g}/mqdefault.jpg`, i = La;
27518
+ e.videoId = g, e.src = `https://${f}/embed/${g}?${m}`, e.thumbSrc = e.thumbSrc || `https://i.ytimg.com/vi/${g}/mqdefault.jpg`, i = za;
27519
27519
  } else if (r = t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)) {
27520
27520
  const s = nE(t, this.optionFor(e, Hc)), a = encodeURIComponent(r[1]), o = r[4] || "";
27521
27521
  e.videoId = a, e.src = `https://player.vimeo.com/video/${a}?${o ? `h=${o}${s ? "&" : ""}` : ""}${s}`, i = Hc;
@@ -27546,7 +27546,7 @@ class cM extends Po {
27546
27546
  break;
27547
27547
  case "pdf":
27548
27548
  case hb:
27549
- case La:
27549
+ case za:
27550
27550
  case Hc:
27551
27551
  e.preload = !1;
27552
27552
  case "iframe":
@@ -27557,7 +27557,7 @@ class cM extends Po {
27557
27557
  }
27558
27558
  setAspectRatio(e) {
27559
27559
  const t = e.contentEl;
27560
- if (!(e.el && t && e.type && [La, Hc, Mf].includes(e.type))) return;
27560
+ if (!(e.el && t && e.type && [za, Hc, Mf].includes(e.type))) return;
27561
27561
  let i, r = e.width || "auto", s = e.height || "auto";
27562
27562
  if (r === "auto" || s === "auto") {
27563
27563
  i = this.optionFor(e, "videoRatio");
@@ -27729,14 +27729,14 @@ Object.defineProperty(dM, "defaults", { enumerable: !0, configurable: !0, writab
27729
27729
  return ((e = n.instance.container) === null || e === void 0 ? void 0 : e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]")) || n.instance.container;
27730
27730
  }, timeout: 3e3 } });
27731
27731
  const hM = { classes: { container: "f-thumbs f-carousel__thumbs", viewport: "f-thumbs__viewport", track: "f-thumbs__track", slide: "f-thumbs__slide", isResting: "is-resting", isSelected: "is-selected", isLoading: "is-loading", hasThumbs: "has-thumbs" }, minCount: 2, parentEl: null, thumbTpl: '<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>', type: "modern" };
27732
- var Ua;
27732
+ var Ha;
27733
27733
  (function(n) {
27734
27734
  n[n.Init = 0] = "Init", n[n.Ready = 1] = "Ready", n[n.Hidden = 2] = "Hidden";
27735
- })(Ua || (Ua = {}));
27735
+ })(Ha || (Ha = {}));
27736
27736
  const iE = "isResting", fg = "thumbWidth", Sd = "thumbHeight", Wo = "thumbClipWidth";
27737
27737
  let fM = class extends Po {
27738
27738
  constructor() {
27739
- super(...arguments), Object.defineProperty(this, "type", { enumerable: !0, configurable: !0, writable: !0, value: "modern" }), Object.defineProperty(this, "container", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "track", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "carousel", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "thumbWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "thumbClipWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "thumbHeight", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "thumbGap", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "thumbExtraGap", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "state", { enumerable: !0, configurable: !0, writable: !0, value: Ua.Init });
27739
+ super(...arguments), Object.defineProperty(this, "type", { enumerable: !0, configurable: !0, writable: !0, value: "modern" }), Object.defineProperty(this, "container", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "track", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "carousel", { enumerable: !0, configurable: !0, writable: !0, value: null }), Object.defineProperty(this, "thumbWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "thumbClipWidth", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "thumbHeight", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "thumbGap", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "thumbExtraGap", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(this, "state", { enumerable: !0, configurable: !0, writable: !0, value: Ha.Init });
27740
27740
  }
27741
27741
  get isModern() {
27742
27742
  return this.type === "modern";
@@ -27803,7 +27803,7 @@ let fM = class extends Po {
27803
27803
  }
27804
27804
  build() {
27805
27805
  const n = this;
27806
- if (n.state !== Ua.Init) return;
27806
+ if (n.state !== Ha.Init) return;
27807
27807
  if (n.isDisabled()) return void n.emit("disabled");
27808
27808
  const e = n.instance, t = e.container, i = n.getSlides(), r = n.option("type");
27809
27809
  n.type = r;
@@ -27821,7 +27821,7 @@ let fM = class extends Po {
27821
27821
  n.shiftModern();
27822
27822
  }), _.on("Panzoom.click", (k, C, D) => {
27823
27823
  n.onClick(D);
27824
- }), n.carousel = _, n.state = Ua.Ready;
27824
+ }), n.carousel = _, n.state = Ha.Ready;
27825
27825
  }
27826
27826
  onClick(n) {
27827
27827
  n.preventDefault(), n.stopPropagation();
@@ -27876,7 +27876,7 @@ let fM = class extends Po {
27876
27876
  }
27877
27877
  cleanup() {
27878
27878
  const n = this;
27879
- n.carousel && n.carousel.destroy(), n.carousel = null, n.container && n.container.remove(), n.container = null, n.track && n.track.remove(), n.track = null, n.state = Ua.Init, Xn(n.instance.container, n.cn("hasThumbs"));
27879
+ n.carousel && n.carousel.destroy(), n.carousel = null, n.container && n.container.remove(), n.container = null, n.track && n.track.remove(), n.track = null, n.state = Ha.Init, Xn(n.instance.container, n.cn("hasThumbs"));
27880
27880
  }
27881
27881
  attach() {
27882
27882
  const n = this, e = n.instance;
@@ -27923,7 +27923,7 @@ class pM extends Po {
27923
27923
  f.style.transition = "", t.show();
27924
27924
  }));
27925
27925
  } } });
27926
- a.Carousel = a.Carousel || {}, a.Carousel.on = hs(((e = t.options.Carousel) === null || e === void 0 ? void 0 : e.on) || {}, { click: this.onClick, createSlide: this.onCreateSlide }), r.options.Thumbs = a, r.attachPlugins({ Thumbs: fM }), t.ref = r.plugins.Thumbs, t.option("showOnStart") || (t.ref.state = Ua.Hidden, t.hidden = !0);
27926
+ a.Carousel = a.Carousel || {}, a.Carousel.on = hs(((e = t.options.Carousel) === null || e === void 0 ? void 0 : e.on) || {}, { click: this.onClick, createSlide: this.onCreateSlide }), r.options.Thumbs = a, r.attachPlugins({ Thumbs: fM }), t.ref = r.plugins.Thumbs, t.option("showOnStart") || (t.ref.state = Ha.Hidden, t.hidden = !0);
27927
27927
  }
27928
27928
  onResize() {
27929
27929
  var e;
@@ -27936,7 +27936,7 @@ class pM extends Po {
27936
27936
  }
27937
27937
  toggle() {
27938
27938
  const e = this.ref;
27939
- if (e && !e.isDisabled()) return e.state === Ua.Hidden ? (e.state = Ua.Init, void e.build()) : void (this.hidden ? this.show() : this.hide());
27939
+ if (e && !e.isDisabled()) return e.state === Ha.Hidden ? (e.state = Ha.Init, void e.build()) : void (this.hidden ? this.show() : this.hide());
27940
27940
  }
27941
27941
  show() {
27942
27942
  const e = this.ref;
@@ -29239,7 +29239,7 @@ const Rj = /* @__PURE__ */ pt(bj, [["render", Pj]]), Oj = { class: "flex flex-co
29239
29239
  };
29240
29240
  return new Date(z).toLocaleDateString("uk-UA", O);
29241
29241
  };
29242
- return aa(() => t.id, o), rl(o), (z, O) => {
29242
+ return oa(() => t.id, o), rl(o), (z, O) => {
29243
29243
  const F = qe("VsDialog");
29244
29244
  return K(), ie("div", Oj, [
29245
29245
  L("div", zj, [
@@ -34470,7 +34470,7 @@ const xr = function(n) {
34470
34470
  return e && e.nodeType == 11 ? e.host : e;
34471
34471
  };
34472
34472
  let V_ = null;
34473
- const Fa = function(n, e, t) {
34473
+ const Ba = function(n, e, t) {
34474
34474
  let i = V_ || (V_ = document.createRange());
34475
34475
  return i.setEnd(n, t ?? n.nodeValue.length), i.setStart(n, e || 0), i;
34476
34476
  }, K6 = function() {
@@ -34569,9 +34569,9 @@ function iH(n, e, t) {
34569
34569
  return { node: i.startContainer, offset: Math.min(oo(i.startContainer), i.startOffset) };
34570
34570
  }
34571
34571
  }
34572
- const na = typeof navigator < "u" ? navigator : null, BE = typeof document < "u" ? document : null, rc = na && na.userAgent || "", j_ = /Edge\/(\d+)/.exec(rc), eD = /MSIE \d/.exec(rc), H_ = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rc), ms = !!(eD || H_ || j_), Yl = eD ? document.documentMode : H_ ? +H_[1] : j_ ? +j_[1] : 0, Mo = !ms && /gecko\/(\d+)/i.test(rc);
34572
+ const ta = typeof navigator < "u" ? navigator : null, BE = typeof document < "u" ? document : null, rc = ta && ta.userAgent || "", j_ = /Edge\/(\d+)/.exec(rc), eD = /MSIE \d/.exec(rc), H_ = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rc), ms = !!(eD || H_ || j_), Yl = eD ? document.documentMode : H_ ? +H_[1] : j_ ? +j_[1] : 0, Mo = !ms && /gecko\/(\d+)/i.test(rc);
34573
34573
  Mo && +(/Firefox\/(\d+)/.exec(rc) || [0, 0])[1];
34574
- const U_ = !ms && /Chrome\/(\d+)/.exec(rc), $r = !!U_, tD = U_ ? +U_[1] : 0, es = !ms && !!na && /Apple Computer/.test(na.vendor), eh = es && (/Mobile\/\w+/.test(rc) || !!na && na.maxTouchPoints > 2), ro = eh || (na ? /Mac/.test(na.platform) : !1), rH = na ? /Win/.test(na.platform) : !1, Wa = /Android \d/.test(rc), Np = !!BE && "webkitFontSmoothing" in BE.documentElement.style, sH = Np ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
34574
+ const U_ = !ms && /Chrome\/(\d+)/.exec(rc), $r = !!U_, tD = U_ ? +U_[1] : 0, es = !ms && !!ta && /Apple Computer/.test(ta.vendor), eh = es && (/Mobile\/\w+/.test(rc) || !!ta && ta.maxTouchPoints > 2), ro = eh || (ta ? /Mac/.test(ta.platform) : !1), rH = ta ? /Win/.test(ta.platform) : !1, Ua = /Android \d/.test(rc), Np = !!BE && "webkitFontSmoothing" in BE.documentElement.style, sH = Np ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
34575
34575
  function oH(n) {
34576
34576
  let e = n.defaultView && n.defaultView.visualViewport;
34577
34577
  return e ? {
@@ -34586,7 +34586,7 @@ function oH(n) {
34586
34586
  bottom: n.documentElement.clientHeight
34587
34587
  };
34588
34588
  }
34589
- function Na(n, e) {
34589
+ function La(n, e) {
34590
34590
  return typeof n == "number" ? n : n[e];
34591
34591
  }
34592
34592
  function aH(n) {
@@ -34604,7 +34604,7 @@ function FE(n, e, t) {
34604
34604
  if (a.nodeType != 1)
34605
34605
  continue;
34606
34606
  let o = a, f = o == s.body, m = f ? oH(s) : aH(o), g = 0, _ = 0;
34607
- if (e.top < m.top + Na(i, "top") ? _ = -(m.top - e.top + Na(r, "top")) : e.bottom > m.bottom - Na(i, "bottom") && (_ = e.bottom - e.top > m.bottom - m.top ? e.top + Na(r, "top") - m.top : e.bottom - m.bottom + Na(r, "bottom")), e.left < m.left + Na(i, "left") ? g = -(m.left - e.left + Na(r, "left")) : e.right > m.right - Na(i, "right") && (g = e.right - m.right + Na(r, "right")), g || _)
34607
+ if (e.top < m.top + La(i, "top") ? _ = -(m.top - e.top + La(r, "top")) : e.bottom > m.bottom - La(i, "bottom") && (_ = e.bottom - e.top > m.bottom - m.top ? e.top + La(r, "top") - m.top : e.bottom - m.bottom + La(r, "bottom")), e.left < m.left + La(i, "left") ? g = -(m.left - e.left + La(r, "left")) : e.right > m.right - La(i, "right") && (g = e.right - m.right + La(r, "right")), g || _)
34608
34608
  if (f)
34609
34609
  s.defaultView.scrollBy(g, _);
34610
34610
  else {
@@ -34667,7 +34667,7 @@ function rD(n, e) {
34667
34667
  if (g.nodeType == 1)
34668
34668
  k = g.getClientRects();
34669
34669
  else if (g.nodeType == 3)
34670
- k = Fa(g).getClientRects();
34670
+ k = Ba(g).getClientRects();
34671
34671
  else
34672
34672
  continue;
34673
34673
  for (let C = 0; C < k.length; C++) {
@@ -34785,11 +34785,11 @@ function oD(n, e, t) {
34785
34785
  let { node: i, offset: r, atom: s } = n.docView.domFromPos(e, t < 0 ? -1 : 1), a = Np || Mo;
34786
34786
  if (i.nodeType == 3)
34787
34787
  if (a && (gH.test(i.nodeValue) || (t < 0 ? !r : r == i.nodeValue.length))) {
34788
- let f = Rl(Fa(i, r, r), t);
34788
+ let f = Rl(Ba(i, r, r), t);
34789
34789
  if (Mo && r && /\s/.test(i.nodeValue[r - 1]) && r < i.nodeValue.length) {
34790
- let m = Rl(Fa(i, r - 1, r - 1), -1);
34790
+ let m = Rl(Ba(i, r - 1, r - 1), -1);
34791
34791
  if (m.top == f.top) {
34792
- let g = Rl(Fa(i, r, r + 1), -1);
34792
+ let g = Rl(Ba(i, r, r + 1), -1);
34793
34793
  if (g.top != f.top)
34794
34794
  return If(g, g.left < m.left);
34795
34795
  }
@@ -34797,7 +34797,7 @@ function oD(n, e, t) {
34797
34797
  return f;
34798
34798
  } else {
34799
34799
  let f = r, m = r, g = t < 0 ? 1 : -1;
34800
- return t < 0 && !r ? (m++, g = -1) : t >= 0 && r == i.nodeValue.length ? (f--, g = 1) : t < 0 ? f-- : m++, If(Rl(Fa(i, f, m), g), g < 0);
34800
+ return t < 0 && !r ? (m++, g = -1) : t >= 0 && r == i.nodeValue.length ? (f--, g = 1) : t < 0 ? f-- : m++, If(Rl(Ba(i, f, m), g), g < 0);
34801
34801
  }
34802
34802
  if (!n.state.doc.resolve(e - (s || 0)).parent.inlineContent) {
34803
34803
  if (s == null && r && (t < 0 || r == oo(i))) {
@@ -34813,7 +34813,7 @@ function oD(n, e, t) {
34813
34813
  return Mb(i.getBoundingClientRect(), t >= 0);
34814
34814
  }
34815
34815
  if (s == null && r && (t < 0 || r == oo(i))) {
34816
- let f = i.childNodes[r - 1], m = f.nodeType == 3 ? Fa(f, oo(f) - (a ? 0 : 1)) : f.nodeType == 1 && (f.nodeName != "BR" || !f.nextSibling) ? f : null;
34816
+ let f = i.childNodes[r - 1], m = f.nodeType == 3 ? Ba(f, oo(f) - (a ? 0 : 1)) : f.nodeType == 1 && (f.nodeName != "BR" || !f.nextSibling) ? f : null;
34817
34817
  if (m)
34818
34818
  return If(Rl(m, 1), !1);
34819
34819
  }
@@ -34821,11 +34821,11 @@ function oD(n, e, t) {
34821
34821
  let f = i.childNodes[r];
34822
34822
  for (; f.pmViewDesc && f.pmViewDesc.ignoreForCoords; )
34823
34823
  f = f.nextSibling;
34824
- let m = f ? f.nodeType == 3 ? Fa(f, 0, a ? 0 : 1) : f.nodeType == 1 ? f : null : null;
34824
+ let m = f ? f.nodeType == 3 ? Ba(f, 0, a ? 0 : 1) : f.nodeType == 1 ? f : null : null;
34825
34825
  if (m)
34826
34826
  return If(Rl(m, -1), !0);
34827
34827
  }
34828
- return If(Rl(i.nodeType == 3 ? Fa(i) : i, -t), t >= 0);
34828
+ return If(Rl(i.nodeType == 3 ? Ba(i) : i, -t), t >= 0);
34829
34829
  }
34830
34830
  function If(n, e) {
34831
34831
  if (n.width == 0)
@@ -34868,7 +34868,7 @@ function yH(n, e, t) {
34868
34868
  if (o.nodeType == 1)
34869
34869
  f = o.getClientRects();
34870
34870
  else if (o.nodeType == 3)
34871
- f = Fa(o, 0, o.nodeValue.length).getClientRects();
34871
+ f = Ba(o, 0, o.nodeValue.length).getClientRects();
34872
34872
  else
34873
34873
  continue;
34874
34874
  for (let m = 0; m < f.length; m++) {
@@ -34901,7 +34901,7 @@ let VE = null, jE = null, HE = !1;
34901
34901
  function _H(n, e, t) {
34902
34902
  return VE == e && jE == t ? HE : (VE = e, jE = t, HE = t == "up" || t == "down" ? yH(n, e, t) : bH(n, e, t));
34903
34903
  }
34904
- const ao = 0, UE = 1, iu = 2, ia = 3;
34904
+ const ao = 0, UE = 1, iu = 2, na = 3;
34905
34905
  class Bp {
34906
34906
  constructor(e, t, i, r) {
34907
34907
  this.parent = e, this.children = t, this.dom = i, this.contentDOM = r, this.dirty = ao, i.pmViewDesc = this;
@@ -35211,10 +35211,10 @@ class Bp {
35211
35211
  if (i == a ? e <= a && t >= i : e < a && t > i) {
35212
35212
  let o = i + s.border, f = a - s.border;
35213
35213
  if (e >= o && t <= f) {
35214
- this.dirty = e == i || t == a ? iu : UE, e == o && t == f && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = ia : s.markDirty(e - o, t - o);
35214
+ this.dirty = e == i || t == a ? iu : UE, e == o && t == f && (s.contentLost || s.dom.parentNode != this.contentDOM) ? s.dirty = na : s.markDirty(e - o, t - o);
35215
35215
  return;
35216
35216
  } else
35217
- s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ? iu : ia;
35217
+ s.dirty = s.dom == s.contentDOM && s.dom.parentNode == this.contentDOM && !s.children.length ? iu : na;
35218
35218
  }
35219
35219
  i = a;
35220
35220
  }
@@ -35303,10 +35303,10 @@ class _u extends Bp {
35303
35303
  return (!a || !a.dom) && (a = Eu.renderSpec(document, t.type.spec.toDOM(t, i), null, t.attrs)), new _u(e, t, a.dom, a.contentDOM || a.dom, a);
35304
35304
  }
35305
35305
  parseRule() {
35306
- return this.dirty & ia || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
35306
+ return this.dirty & na || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
35307
35307
  }
35308
35308
  matchesMark(e) {
35309
- return this.dirty != ia && this.mark.eq(e);
35309
+ return this.dirty != na && this.mark.eq(e);
35310
35310
  }
35311
35311
  markDirty(e, t) {
35312
35312
  if (super.markDirty(e, t), this.dirty != ao) {
@@ -35433,7 +35433,7 @@ class Zl extends Bp {
35433
35433
  // If this desc must be updated to match the given node decoration,
35434
35434
  // do so and return true.
35435
35435
  update(e, t, i, r) {
35436
- return this.dirty == ia || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, i, r), !0);
35436
+ return this.dirty == na || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, i, r), !0);
35437
35437
  }
35438
35438
  updateInner(e, t, i, r) {
35439
35439
  this.updateOuterDeco(t), this.node = e, this.innerDeco = i, this.contentDOM && this.updateChildren(r, this.posAtStart), this.dirty = ao;
@@ -35472,7 +35472,7 @@ class d0 extends Zl {
35472
35472
  return { skip: e || !0 };
35473
35473
  }
35474
35474
  update(e, t, i, r) {
35475
- return this.dirty == ia || this.dirty != ao && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != ao || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, r.trackWrites == this.nodeDOM && (r.trackWrites = null)), this.node = e, this.dirty = ao, !0);
35475
+ return this.dirty == na || this.dirty != ao && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != ao || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, r.trackWrites == this.nodeDOM && (r.trackWrites = null)), this.node = e, this.dirty = ao, !0);
35476
35476
  }
35477
35477
  inParent() {
35478
35478
  let e = this.parent.contentDOM;
@@ -35495,7 +35495,7 @@ class d0 extends Zl {
35495
35495
  return new d0(this.parent, r, this.outerDeco, this.innerDeco, s, s, i);
35496
35496
  }
35497
35497
  markDirty(e, t) {
35498
- super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = ia);
35498
+ super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = na);
35499
35499
  }
35500
35500
  get domAtom() {
35501
35501
  return !1;
@@ -35526,7 +35526,7 @@ class wH extends Zl {
35526
35526
  // through. If it does, and there's a `contentDOM` node, our logic
35527
35527
  // updates the children.
35528
35528
  update(e, t, i, r) {
35529
- if (this.dirty == ia)
35529
+ if (this.dirty == na)
35530
35530
  return !1;
35531
35531
  if (this.spec.update && (this.node.type == e.type || this.spec.multiType)) {
35532
35532
  let s = this.spec.update(e, t, i);
@@ -35705,7 +35705,7 @@ class kH {
35705
35705
  }
35706
35706
  updateNodeAt(e, t, i, r, s) {
35707
35707
  let a = this.top.children[r];
35708
- return a.dirty == ia && a.dom == a.contentDOM && (a.dirty = iu), a.update(e, t, i, s) ? (this.destroyBetween(this.index, r), this.index++, !0) : !1;
35708
+ return a.dirty == na && a.dom == a.contentDOM && (a.dirty = iu), a.update(e, t, i, s) ? (this.destroyBetween(this.index, r), this.index++, !0) : !1;
35709
35709
  }
35710
35710
  findIndexWithChild(e) {
35711
35711
  for (; ; ) {
@@ -35733,7 +35733,7 @@ class kH {
35733
35733
  let m = this.preMatch.matched.get(f);
35734
35734
  if (m != null && m != s)
35735
35735
  return !1;
35736
- let g = f.dom, _, k = this.isLocked(g) && !(e.isText && f.node && f.node.isText && f.nodeDOM.nodeValue == e.text && f.dirty != ia && fy(t, f.outerDeco));
35736
+ let g = f.dom, _, k = this.isLocked(g) && !(e.isText && f.node && f.node.isText && f.nodeDOM.nodeValue == e.text && f.dirty != na && fy(t, f.outerDeco));
35737
35737
  if (!k && f.update(e, t, i, r))
35738
35738
  return this.destroyBetween(this.index, o), f.dom != g && (this.changed = !0), this.index++, !0;
35739
35739
  if (!k && (_ = this.recreateWrapper(f, e, t, i, r, a)))
@@ -35950,7 +35950,7 @@ function uw(n, e = null) {
35950
35950
  function fD(n) {
35951
35951
  return n.editable ? n.hasFocus() : mD(n) && document.activeElement && document.activeElement.contains(n.dom);
35952
35952
  }
35953
- function Xa(n, e = !1) {
35953
+ function Za(n, e = !1) {
35954
35954
  let t = n.state.selection;
35955
35955
  if (pD(n, t), !!fD(n)) {
35956
35956
  if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && $r) {
@@ -36192,7 +36192,7 @@ function Y_(n, e, t) {
36192
36192
  n.domObserver.setCurSelection();
36193
36193
  let { state: r } = n;
36194
36194
  setTimeout(() => {
36195
- n.state == r && Xa(n);
36195
+ n.state == r && Za(n);
36196
36196
  }, 50);
36197
36197
  }
36198
36198
  function QE(n, e) {
@@ -36525,7 +36525,7 @@ function KH(n, e) {
36525
36525
  }
36526
36526
  ns.keydown = (n, e) => {
36527
36527
  let t = e;
36528
- if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !ED(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Wa && $r && t.keyCode == 13)))
36528
+ if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !ED(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Ua && $r && t.keyCode == 13)))
36529
36529
  if (t.keyCode != 229 && n.domObserver.forceFlush(), eh && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
36530
36530
  let i = Date.now();
36531
36531
  n.input.lastIOSEnter = i, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -36655,7 +36655,7 @@ class sU {
36655
36655
  }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), jl(e, "pointer");
36656
36656
  }
36657
36657
  done() {
36658
- this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => Xa(this.view)), this.view.input.mouseDown = null;
36658
+ this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => Za(this.view)), this.view.input.mouseDown = null;
36659
36659
  }
36660
36660
  up(e) {
36661
36661
  if (this.done(), !this.view.dom.contains(e.target))
@@ -36688,7 +36688,7 @@ ts.contextmenu = (n) => pw(n);
36688
36688
  function ED(n, e) {
36689
36689
  return n.composing ? !0 : es && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
36690
36690
  }
36691
- const oU = Wa ? 5e3 : -1;
36691
+ const oU = Ua ? 5e3 : -1;
36692
36692
  ns.compositionstart = ns.compositionupdate = (n) => {
36693
36693
  if (!n.composing) {
36694
36694
  n.domObserver.flush();
@@ -36747,7 +36747,7 @@ function lU() {
36747
36747
  return n.initEvent("event", !0, !0), n.timeStamp;
36748
36748
  }
36749
36749
  function my(n, e = !1) {
36750
- if (!(Wa && n.domObserver.flushingSoon >= 0)) {
36750
+ if (!(Ua && n.domObserver.flushingSoon >= 0)) {
36751
36751
  if (n.domObserver.forceFlush(), TD(n), e || n.docView && n.docView.dirty) {
36752
36752
  let t = uw(n);
36753
36753
  return t && !t.eq(n.state.selection) ? n.dispatch(n.state.tr.setSelection(t)) : (n.markCursor || e) && !n.state.selection.empty ? n.dispatch(n.state.tr.deleteSelection()) : n.updateState(n.state), !0;
@@ -36804,7 +36804,7 @@ function AD(n) {
36804
36804
  }
36805
36805
  ns.paste = (n, e) => {
36806
36806
  let t = e;
36807
- if (n.composing && !Wa)
36807
+ if (n.composing && !Ua)
36808
36808
  return;
36809
36809
  let i = fp ? null : t.clipboardData, r = n.input.shiftKey && n.input.lastKeyCode != 45;
36810
36810
  i && pp(n, AD(i), i.getData("text/html"), r, t) ? t.preventDefault() : dU(n, t);
@@ -36878,7 +36878,7 @@ ns.drop = (n, e) => {
36878
36878
  };
36879
36879
  ts.focus = (n) => {
36880
36880
  n.input.lastFocus = Date.now(), n.focused || (n.domObserver.stop(), n.dom.classList.add("ProseMirror-focused"), n.domObserver.start(), n.focused = !0, setTimeout(() => {
36881
- n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && Xa(n);
36881
+ n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && Za(n);
36882
36882
  }, 20));
36883
36883
  };
36884
36884
  ts.blur = (n, e) => {
@@ -36886,7 +36886,7 @@ ts.blur = (n, e) => {
36886
36886
  n.focused && (n.domObserver.stop(), n.dom.classList.remove("ProseMirror-focused"), n.domObserver.start(), t.relatedTarget && n.dom.contains(t.relatedTarget) && n.domObserver.currentSelection.clear(), n.focused = !1);
36887
36887
  };
36888
36888
  ts.beforeinput = (n, e) => {
36889
- if ($r && Wa && e.inputType == "deleteContentBackward") {
36889
+ if ($r && Ua && e.inputType == "deleteContentBackward") {
36890
36890
  n.domObserver.flushSoon();
36891
36891
  let { domChangeCount: i } = n.input;
36892
36892
  setTimeout(() => {
@@ -37474,7 +37474,7 @@ class yU {
37474
37474
  onSelectionChange() {
37475
37475
  if (KE(this.view)) {
37476
37476
  if (this.suppressingSelectionUpdates)
37477
- return Xa(this.view);
37477
+ return Za(this.view);
37478
37478
  if (ms && Yl <= 11 && !this.view.state.selection.empty) {
37479
37479
  let e = this.view.domSelectionRange();
37480
37480
  if (e.focusNode && bu(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
@@ -37536,7 +37536,7 @@ class yU {
37536
37536
  }
37537
37537
  }
37538
37538
  let m = null;
37539
- s < 0 && r && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && u0(i) && (m = uw(e)) && m.eq(yn.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Xa(e), this.currentSelection.set(i), e.scrollToSelection()) : (s > -1 || r) && (s > -1 && (e.docView.markDirty(s, a), vU(e)), this.handleDOMChange(s, a, o, f), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(i) || Xa(e), this.currentSelection.set(i));
37539
+ s < 0 && r && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && u0(i) && (m = uw(e)) && m.eq(yn.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Za(e), this.currentSelection.set(i), e.scrollToSelection()) : (s > -1 || r) && (s > -1 && (e.docView.markDirty(s, a), vU(e)), this.handleDOMChange(s, a, o, f), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(i) || Za(e), this.currentSelection.set(i));
37540
37540
  }
37541
37541
  registerMutation(e, t) {
37542
37542
  if (t.indexOf(e.target) > -1)
@@ -37652,7 +37652,7 @@ function kU(n, e, t, i, r) {
37652
37652
  if (n.input.compositionPendingChanges = 0, e < 0) {
37653
37653
  let Oe = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, mt = uw(n, Oe);
37654
37654
  if (mt && !n.state.selection.eq(mt)) {
37655
- if ($r && Wa && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (me) => me(n, Xc(13, "Enter"))))
37655
+ if ($r && Ua && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (me) => me(n, Xc(13, "Enter"))))
37656
37656
  return;
37657
37657
  let st = n.state.tr.setSelection(mt);
37658
37658
  Oe == "pointer" ? st.setMeta("pointer", !0) : Oe == "key" && st.scrollIntoView(), s && st.setMeta("composition", s), n.dispatch(st);
@@ -37664,7 +37664,7 @@ function kU(n, e, t, i, r) {
37664
37664
  let f = n.state.selection, m = xU(n, e, t), g = n.state.doc, _ = g.slice(m.from, m.to), k, C;
37665
37665
  n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (k = n.state.selection.to, C = "end") : (k = n.state.selection.from, C = "start"), n.input.lastKeyCode = null;
37666
37666
  let D = TU(_.content, m.doc.content, m.from, k, C);
37667
- if (D && n.input.domChangeCount++, (eh && n.input.lastIOSEnter > Date.now() - 225 || Wa) && r.some((Oe) => Oe.nodeType == 1 && !SU.test(Oe.nodeName)) && (!D || D.endA >= D.endB) && n.someProp("handleKeyDown", (Oe) => Oe(n, Xc(13, "Enter")))) {
37667
+ if (D && n.input.domChangeCount++, (eh && n.input.lastIOSEnter > Date.now() - 225 || Ua) && r.some((Oe) => Oe.nodeType == 1 && !SU.test(Oe.nodeName)) && (!D || D.endA >= D.endB) && n.someProp("handleKeyDown", (Oe) => Oe(n, Xc(13, "Enter")))) {
37668
37668
  n.input.lastIOSEnter = 0;
37669
37669
  return;
37670
37670
  }
@@ -37688,10 +37688,10 @@ function kU(n, e, t, i, r) {
37688
37688
  return;
37689
37689
  }
37690
37690
  if (n.state.selection.anchor > D.start && CU(g, D.start, D.endA, z, O) && n.someProp("handleKeyDown", (Oe) => Oe(n, Xc(8, "Backspace")))) {
37691
- Wa && $r && n.domObserver.suppressSelectionUpdates();
37691
+ Ua && $r && n.domObserver.suppressSelectionUpdates();
37692
37692
  return;
37693
37693
  }
37694
- $r && D.endB == D.start && (n.input.lastChromeDelete = Date.now()), Wa && !G && z.start() != O.start() && O.parentOffset == 0 && z.depth == O.depth && m.sel && m.sel.anchor == m.sel.head && m.sel.head == D.endA && (D.endB -= 2, O = m.doc.resolveNoCache(D.endB - m.from), setTimeout(() => {
37694
+ $r && D.endB == D.start && (n.input.lastChromeDelete = Date.now()), Ua && !G && z.start() != O.start() && O.parentOffset == 0 && z.depth == O.depth && m.sel && m.sel.anchor == m.sel.head && m.sel.head == D.endA && (D.endB -= 2, O = m.doc.resolveNoCache(D.endB - m.from), setTimeout(() => {
37695
37695
  n.someProp("handleKeyDown", function(Oe) {
37696
37696
  return Oe(n, Xc(13, "Enter"));
37697
37697
  });
@@ -37699,7 +37699,7 @@ function kU(n, e, t, i, r) {
37699
37699
  let Z = D.start, Ee = D.endA, _e, Re, Ve;
37700
37700
  if (G) {
37701
37701
  if (z.pos == O.pos)
37702
- ms && Yl <= 11 && z.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Xa(n), 20)), _e = n.state.tr.delete(Z, Ee), Re = g.resolve(D.start).marksAcross(g.resolve(D.endA));
37702
+ ms && Yl <= 11 && z.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => Za(n), 20)), _e = n.state.tr.delete(Z, Ee), Re = g.resolve(D.start).marksAcross(g.resolve(D.endA));
37703
37703
  else if (
37704
37704
  // Adding or removing a mark
37705
37705
  D.endA == D.endB && (Ve = EU(z.parent.content.cut(z.parentOffset, O.parentOffset), F.parent.content.cut(F.parentOffset, D.endA - F.start())))
@@ -37873,7 +37873,7 @@ class AU {
37873
37873
  let D = $r ? this.trackWrites = this.domSelectionRange().focusNode : null;
37874
37874
  this.composing && (this.input.compositionNode = aU(this)), (s || !this.docView.update(e.doc, m, f, this)) && (this.docView.updateOuterDeco(m), this.docView.destroy(), this.docView = WE(e.doc, m, f, this.dom, this)), D && !this.trackWrites && (C = !0);
37875
37875
  }
37876
- C || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && PH(this)) ? Xa(this, C) : (pD(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
37876
+ C || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && PH(this)) ? Za(this, C) : (pD(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
37877
37877
  }
37878
37878
  this.updatePluginViews(r), !((i = this.dragging) === null || i === void 0) && i.node && !r.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, r), g == "reset" ? this.dom.scrollTop = 0 : g == "to selection" ? this.scrollToSelection() : k && cH(k);
37879
37879
  }
@@ -37960,7 +37960,7 @@ class AU {
37960
37960
  Focus the editor.
37961
37961
  */
37962
37962
  focus() {
37963
- this.domObserver.stop(), this.editable && uH(this.dom), Xa(this), this.domObserver.start();
37963
+ this.domObserver.stop(), this.editable && uH(this.dom), Za(this), this.domObserver.start();
37964
37964
  }
37965
37965
  /**
37966
37966
  Get the document root in which the editor exists. This will
@@ -39210,7 +39210,7 @@ function y0(n, e) {
39210
39210
  _g(e[i]) && _g(n[i]) ? t[i] = y0(n[i], e[i]) : t[i] = e[i];
39211
39211
  }), t;
39212
39212
  }
39213
- class ra {
39213
+ class ia {
39214
39214
  constructor(e = {}) {
39215
39215
  this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
39216
39216
  name: this.name,
@@ -39226,7 +39226,7 @@ class ra {
39226
39226
  })) || {};
39227
39227
  }
39228
39228
  static create(e = {}) {
39229
- return new ra(e);
39229
+ return new ia(e);
39230
39230
  }
39231
39231
  configure(e = {}) {
39232
39232
  const t = this.extend({
@@ -39236,7 +39236,7 @@ class ra {
39236
39236
  return t.name = this.name, t.parent = this.parent, t;
39237
39237
  }
39238
39238
  extend(e = {}) {
39239
- const t = new ra(e);
39239
+ const t = new ia(e);
39240
39240
  return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = bn(Ot(t, "addOptions", {
39241
39241
  name: t.name
39242
39242
  })), t.storage = bn(Ot(t, "addStorage", {
@@ -39467,7 +39467,7 @@ class Nd {
39467
39467
  type: Lb(a.name, this.schema)
39468
39468
  }, f = [], m = Ot(a, "addKeyboardShortcuts", o);
39469
39469
  let g = {};
39470
- if (a.type === "mark" && Ot(a, "exitable", o) && (g.ArrowRight = () => ra.handleExit({ editor: e, mark: a })), m) {
39470
+ if (a.type === "mark" && Ot(a, "exitable", o) && (g.ArrowRight = () => ia.handleExit({ editor: e, mark: a })), m) {
39471
39471
  const z = Object.fromEntries(Object.entries(m()).map(([O, F]) => [O, () => F({ editor: e })]));
39472
39472
  g = { ...g, ...z };
39473
39473
  }
@@ -39752,7 +39752,7 @@ const B8 = (n, e = {}) => ({ tr: t, state: i, dispatch: r }) => {
39752
39752
  function ww(n) {
39753
39753
  return n instanceof an;
39754
39754
  }
39755
- function qa(n = 0, e = 0, t = 0) {
39755
+ function Wa(n = 0, e = 0, t = 0) {
39756
39756
  return Math.min(Math.max(n, e), t);
39757
39757
  }
39758
39758
  function qD(n, e = null) {
@@ -39764,7 +39764,7 @@ function qD(n, e = null) {
39764
39764
  if (e === "end")
39765
39765
  return i;
39766
39766
  const r = t.from, s = i.to;
39767
- return e === "all" ? an.create(n, qa(0, r, s), qa(n.content.size, r, s)) : an.create(n, qa(e, r, s), qa(e, r, s));
39767
+ return e === "all" ? an.create(n, Wa(0, r, s), Wa(n.content.size, r, s)) : an.create(n, Wa(e, r, s), Wa(e, r, s));
39768
39768
  }
39769
39769
  function Sw() {
39770
39770
  return [
@@ -40176,7 +40176,7 @@ function XD(n) {
40176
40176
  return n instanceof Kt;
40177
40177
  }
40178
40178
  function KD(n, e, t) {
40179
- const r = n.state.doc.content.size, s = qa(e, 0, r), a = qa(t, 0, r), o = n.coordsAtPos(s), f = n.coordsAtPos(a, -1), m = Math.min(o.top, f.top), g = Math.max(o.bottom, f.bottom), _ = Math.min(o.left, f.left), k = Math.max(o.right, f.right), C = k - _, D = g - m, F = {
40179
+ const r = n.state.doc.content.size, s = Wa(e, 0, r), a = Wa(t, 0, r), o = n.coordsAtPos(s), f = n.coordsAtPos(a, -1), m = Math.min(o.top, f.top), g = Math.max(o.bottom, f.bottom), _ = Math.min(o.left, f.left), k = Math.max(o.right, f.right), C = k - _, D = g - m, F = {
40180
40180
  top: m,
40181
40181
  bottom: g,
40182
40182
  left: _,
@@ -40242,13 +40242,13 @@ const wW = (n, e = {}) => ({ tr: t, state: i, dispatch: r }) => {
40242
40242
  return t.selection.$anchor.sameParent(t.selection.$head) && (a = t.selection.$anchor.parent.attrs), s.isTextblock ? r().command(({ commands: o }) => gC(s, { ...a, ...e })(t) ? !0 : o.clearNodes()).command(({ state: o }) => gC(s, { ...a, ...e })(o, i)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
40243
40243
  }, EW = (n) => ({ tr: e, dispatch: t }) => {
40244
40244
  if (t) {
40245
- const { doc: i } = e, r = qa(n, 0, i.content.size), s = Kt.create(i, r);
40245
+ const { doc: i } = e, r = Wa(n, 0, i.content.size), s = Kt.create(i, r);
40246
40246
  e.setSelection(s);
40247
40247
  }
40248
40248
  return !0;
40249
40249
  }, CW = (n) => ({ tr: e, dispatch: t }) => {
40250
40250
  if (t) {
40251
- const { doc: i } = e, { from: r, to: s } = typeof n == "number" ? { from: n, to: n } : n, a = an.atStart(i).from, o = an.atEnd(i).to, f = qa(r, a, o), m = qa(s, a, o), g = an.create(i, f, m);
40251
+ const { doc: i } = e, { from: r, to: s } = typeof n == "number" ? { from: n, to: n } : n, a = an.atStart(i).from, o = an.atEnd(i).to, f = Wa(r, a, o), m = Wa(s, a, o), g = an.create(i, f, m);
40252
40252
  e.setSelection(g);
40253
40253
  }
40254
40254
  return !0;
@@ -41380,7 +41380,7 @@ var gs = "top", co = "bottom", uo = "right", ys = "left", Tw = "auto", Fp = [gs,
41380
41380
  }, []), QD = /* @__PURE__ */ [].concat(Fp, [Tw]).reduce(function(n, e) {
41381
41381
  return n.concat([e, e + "-" + rh, e + "-" + vp]);
41382
41382
  }, []), tq = "beforeRead", nq = "read", iq = "afterRead", rq = "beforeMain", sq = "main", oq = "afterMain", aq = "beforeWrite", lq = "write", cq = "afterWrite", uq = [tq, nq, iq, rq, sq, oq, aq, lq, cq];
41383
- function sa(n) {
41383
+ function ra(n) {
41384
41384
  return n ? (n.nodeName || "").toLowerCase() : null;
41385
41385
  }
41386
41386
  function js(n) {
@@ -41410,7 +41410,7 @@ function dq(n) {
41410
41410
  var e = n.state;
41411
41411
  Object.keys(e.elements).forEach(function(t) {
41412
41412
  var i = e.styles[t] || {}, r = e.attributes[t] || {}, s = e.elements[t];
41413
- !lo(s) || !sa(s) || (Object.assign(s.style, i), Object.keys(r).forEach(function(a) {
41413
+ !lo(s) || !ra(s) || (Object.assign(s.style, i), Object.keys(r).forEach(function(a) {
41414
41414
  var o = r[a];
41415
41415
  o === !1 ? s.removeAttribute(a) : s.setAttribute(a, o === !0 ? "" : o);
41416
41416
  }));
@@ -41434,7 +41434,7 @@ function hq(n) {
41434
41434
  var r = e.elements[i], s = e.attributes[i] || {}, a = Object.keys(e.styles.hasOwnProperty(i) ? e.styles[i] : t[i]), o = a.reduce(function(f, m) {
41435
41435
  return f[m] = "", f;
41436
41436
  }, {});
41437
- !lo(r) || !sa(r) || (Object.assign(r.style, o), Object.keys(s).forEach(function(f) {
41437
+ !lo(r) || !ra(r) || (Object.assign(r.style, o), Object.keys(s).forEach(function(f) {
41438
41438
  r.removeAttribute(f);
41439
41439
  }));
41440
41440
  });
@@ -41504,7 +41504,7 @@ function tl(n) {
41504
41504
  return js(n).getComputedStyle(n);
41505
41505
  }
41506
41506
  function fq(n) {
41507
- return ["table", "td", "th"].indexOf(sa(n)) >= 0;
41507
+ return ["table", "td", "th"].indexOf(ra(n)) >= 0;
41508
41508
  }
41509
41509
  function oc(n) {
41510
41510
  return ((xu(n) ? n.ownerDocument : (
@@ -41513,7 +41513,7 @@ function oc(n) {
41513
41513
  )) || window.document).documentElement;
41514
41514
  }
41515
41515
  function b0(n) {
41516
- return sa(n) === "html" ? n : (
41516
+ return ra(n) === "html" ? n : (
41517
41517
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
41518
41518
  // $FlowFixMe[incompatible-return]
41519
41519
  // $FlowFixMe[prop-missing]
@@ -41536,7 +41536,7 @@ function pq(n) {
41536
41536
  return null;
41537
41537
  }
41538
41538
  var r = b0(n);
41539
- for (Aw(r) && (r = r.host); lo(r) && ["html", "body"].indexOf(sa(r)) < 0; ) {
41539
+ for (Aw(r) && (r = r.host); lo(r) && ["html", "body"].indexOf(ra(r)) < 0; ) {
41540
41540
  var s = tl(r);
41541
41541
  if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || e && s.willChange === "filter" || e && s.filter && s.filter !== "none")
41542
41542
  return r;
@@ -41547,7 +41547,7 @@ function pq(n) {
41547
41547
  function $p(n) {
41548
41548
  for (var e = js(n), t = EC(n); t && fq(t) && tl(t).position === "static"; )
41549
41549
  t = EC(t);
41550
- return t && (sa(t) === "html" || sa(t) === "body" && tl(t).position === "static") ? e : t || pq(n) || e;
41550
+ return t && (ra(t) === "html" || ra(t) === "body" && tl(t).position === "static") ? e : t || pq(n) || e;
41551
41551
  }
41552
41552
  function Dw(n) {
41553
41553
  return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
@@ -41770,7 +41770,7 @@ function Rw(n) {
41770
41770
  return /auto|scroll|overlay|hidden/.test(t + r + i);
41771
41771
  }
41772
41772
  function oI(n) {
41773
- return ["html", "body", "#document"].indexOf(sa(n)) >= 0 ? n.ownerDocument.body : lo(n) && Rw(n) ? n : oI(b0(n));
41773
+ return ["html", "body", "#document"].indexOf(ra(n)) >= 0 ? n.ownerDocument.body : lo(n) && Rw(n) ? n : oI(b0(n));
41774
41774
  }
41775
41775
  function Kf(n, e) {
41776
41776
  var t;
@@ -41799,7 +41799,7 @@ function AC(n, e, t) {
41799
41799
  function Iq(n) {
41800
41800
  var e = Kf(b0(n)), t = ["absolute", "fixed"].indexOf(tl(n).position) >= 0, i = t && lo(n) ? $p(n) : n;
41801
41801
  return xu(i) ? e.filter(function(r) {
41802
- return xu(r) && nI(r, i) && sa(r) !== "body";
41802
+ return xu(r) && nI(r, i) && ra(r) !== "body";
41803
41803
  }) : [];
41804
41804
  }
41805
41805
  function Pq(n, e, t, i) {
@@ -42107,7 +42107,7 @@ function Xq(n, e, t) {
42107
42107
  x: 0,
42108
42108
  y: 0
42109
42109
  };
42110
- return (i || !i && !t) && ((sa(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
42110
+ return (i || !i && !t) && ((ra(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
42111
42111
  Rw(s)) && (o = Yq(e)), lo(e) ? (f = oh(e, !0), f.x += e.clientLeft, f.y += e.clientTop) : s && (f.x = Pw(s))), {
42112
42112
  x: a.left + o.scrollLeft - f.x,
42113
42113
  y: a.top + o.scrollTop - f.y,
@@ -42457,7 +42457,7 @@ process.env.NODE_ENV !== "production" && S7();
42457
42457
  function S7() {
42458
42458
  xp = /* @__PURE__ */ new Set();
42459
42459
  }
42460
- function $a(n, e) {
42460
+ function Fa(n, e) {
42461
42461
  if (n && !xp.has(e)) {
42462
42462
  var t;
42463
42463
  xp.add(e), (t = console).warn.apply(t, pI(e));
@@ -42589,7 +42589,7 @@ function yI(n, e) {
42589
42589
  var r = a7(Os, Object.keys(mI)), s = !o7(r, i);
42590
42590
  s && (s = e.filter(function(a) {
42591
42591
  return a.name === i;
42592
- }).length === 0), $a(s, ["`" + i + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
42592
+ }).length === 0), Fa(s, ["`" + i + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
42593
42593
 
42594
42594
  `, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
42595
42595
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
@@ -42934,7 +42934,7 @@ function I7(n, e) {
42934
42934
  }
42935
42935
  function In() {
42936
42936
  var Te = Z.props.appendTo, $e, Pt = ct();
42937
- Z.props.interactive && Te === dI || Te === "parent" ? $e = Pt.parentNode : $e = hI(Te, [Pt]), $e.contains(_e) || $e.appendChild(_e), Z.state.isMounted = !0, Ws(), process.env.NODE_ENV !== "production" && $a(Z.props.interactive && Te === Os.appendTo && Pt.nextElementSibling !== _e, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
42937
+ Z.props.interactive && Te === dI || Te === "parent" ? $e = Pt.parentNode : $e = hI(Te, [Pt]), $e.contains(_e) || $e.appendChild(_e), Z.state.isMounted = !0, Ws(), process.env.NODE_ENV !== "production" && Fa(Z.props.interactive && Te === Os.appendTo && Pt.nextElementSibling !== _e, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
42938
42938
 
42939
42939
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
42940
42940
 
@@ -42976,7 +42976,7 @@ function I7(n, e) {
42976
42976
  clearTimeout(i), clearTimeout(r), cancelAnimationFrame(s);
42977
42977
  }
42978
42978
  function Gs(Te) {
42979
- if (process.env.NODE_ENV !== "production" && $a(Z.state.isDestroyed, Md("setProps")), !Z.state.isDestroyed) {
42979
+ if (process.env.NODE_ENV !== "production" && Fa(Z.state.isDestroyed, Md("setProps")), !Z.state.isDestroyed) {
42980
42980
  Jt("onBeforeUpdate", [Z, Te]), Sn();
42981
42981
  var $e = Z.props, Pt = $C(n, Object.assign({}, $e, zC(Te), {
42982
42982
  ignoreAttributes: !0
@@ -42994,7 +42994,7 @@ function I7(n, e) {
42994
42994
  });
42995
42995
  }
42996
42996
  function rs() {
42997
- process.env.NODE_ENV !== "production" && $a(Z.state.isDestroyed, Md("show"));
42997
+ process.env.NODE_ENV !== "production" && Fa(Z.state.isDestroyed, Md("show"));
42998
42998
  var Te = Z.state.isVisible, $e = Z.state.isDestroyed, Pt = !Z.state.isEnabled, ln = Go.isTouch && !Z.props.touch, ot = Fb(Z.props.duration, 0, Os.duration);
42999
42999
  if (!(Te || $e || Pt || ln) && !ct().hasAttribute("disabled") && (Jt("onShow", [Z], !1), Z.props.onShow(Z) !== !1)) {
43000
43000
  if (Z.state.isVisible = !0, me() && (_e.style.visibility = "visible"), jt(), Cn(), Z.state.isMounted || (_e.style.transition = "none"), me()) {
@@ -43016,7 +43016,7 @@ function I7(n, e) {
43016
43016
  }
43017
43017
  }
43018
43018
  function Wi() {
43019
- process.env.NODE_ENV !== "production" && $a(Z.state.isDestroyed, Md("hide"));
43019
+ process.env.NODE_ENV !== "production" && Fa(Z.state.isDestroyed, Md("hide"));
43020
43020
  var Te = !Z.state.isVisible, $e = Z.state.isDestroyed, Pt = !Z.state.isEnabled, ln = Fb(Z.props.duration, 1, Os.duration);
43021
43021
  if (!(Te || $e || Pt) && (Jt("onHide", [Z], !1), Z.props.onHide(Z) !== !1)) {
43022
43022
  if (Z.state.isVisible = !1, Z.state.isShown = !1, m = !1, a = !1, me() && (_e.style.visibility = "hidden"), xn(), ni(), jt(!0), me()) {
@@ -43027,17 +43027,17 @@ function I7(n, e) {
43027
43027
  }
43028
43028
  }
43029
43029
  function ss(Te) {
43030
- process.env.NODE_ENV !== "production" && $a(Z.state.isDestroyed, Md("hideWithInteractivity")), zt().addEventListener("mousemove", D), OC(Sg, D), D(Te);
43030
+ process.env.NODE_ENV !== "production" && Fa(Z.state.isDestroyed, Md("hideWithInteractivity")), zt().addEventListener("mousemove", D), OC(Sg, D), D(Te);
43031
43031
  }
43032
43032
  function Ys() {
43033
- process.env.NODE_ENV !== "production" && $a(Z.state.isDestroyed, Md("unmount")), Z.state.isVisible && Z.hide(), Z.state.isMounted && (vn(), kr().forEach(function(Te) {
43033
+ process.env.NODE_ENV !== "production" && Fa(Z.state.isDestroyed, Md("unmount")), Z.state.isVisible && Z.hide(), Z.state.isMounted && (vn(), kr().forEach(function(Te) {
43034
43034
  Te._tippy.unmount();
43035
43035
  }), _e.parentNode && _e.parentNode.removeChild(_e), jb = jb.filter(function(Te) {
43036
43036
  return Te !== Z;
43037
43037
  }), Z.state.isMounted = !1, Jt("onHidden", [Z]));
43038
43038
  }
43039
43039
  function Qe() {
43040
- process.env.NODE_ENV !== "production" && $a(Z.state.isDestroyed, Md("destroy")), !Z.state.isDestroyed && (Z.clearDelayTimeouts(), Z.unmount(), Sn(), delete n._tippy, Z.state.isDestroyed = !0, Jt("onDestroy", [Z]));
43040
+ process.env.NODE_ENV !== "production" && Fa(Z.state.isDestroyed, Md("destroy")), !Z.state.isDestroyed && (Z.clearDelayTimeouts(), Z.unmount(), Sn(), delete n._tippy, Z.state.isDestroyed = !0, Jt("onDestroy", [Z]));
43041
43041
  }
43042
43042
  }
43043
43043
  function vh(n, e) {
@@ -43049,7 +43049,7 @@ function vh(n, e) {
43049
43049
  }), r = p7(n);
43050
43050
  if (process.env.NODE_ENV !== "production") {
43051
43051
  var s = _p(i.content), a = r.length > 1;
43052
- $a(s && a, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
43052
+ Fa(s && a, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
43053
43053
 
43054
43054
  `, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
43055
43055
 
@@ -43542,7 +43542,7 @@ const L7 = /^\s*>\s$/, N7 = po.create({
43542
43542
  })
43543
43543
  ];
43544
43544
  }
43545
- }), B7 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, F7 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, $7 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, V7 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, j7 = ra.create({
43545
+ }), B7 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, F7 = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, $7 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, V7 = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, j7 = ia.create({
43546
43546
  name: "bold",
43547
43547
  addOptions() {
43548
43548
  return {
@@ -43656,7 +43656,7 @@ const L7 = /^\s*>\s$/, N7 = po.create({
43656
43656
  n
43657
43657
  ];
43658
43658
  }
43659
- }), W7 = new RegExp("(?<!`)`([^`]+)`(?!`)"), q7 = new RegExp("(?<!`)`([^`]+)`(?!`)", "g"), G7 = ra.create({
43659
+ }), W7 = new RegExp("(?<!`)`([^`]+)`(?!`)"), q7 = new RegExp("(?<!`)`([^`]+)`(?!`)", "g"), G7 = ia.create({
43660
43660
  name: "code",
43661
43661
  addOptions() {
43662
43662
  return {
@@ -44654,7 +44654,7 @@ const kI = SI(!1, !0), EI = SI(!0, !0), bG = cr.create({
44654
44654
  })
44655
44655
  ];
44656
44656
  }
44657
- }), xG = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, wG = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, SG = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, kG = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, EG = ra.create({
44657
+ }), xG = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, wG = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, SG = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, kG = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, EG = ia.create({
44658
44658
  name: "italic",
44659
44659
  addOptions() {
44660
44660
  return {
@@ -44841,7 +44841,7 @@ const kI = SI(!1, !0), EI = SI(!0, !0), bG = cr.create({
44841
44841
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
44842
44842
  };
44843
44843
  }
44844
- }), DG = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, IG = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, PG = ra.create({
44844
+ }), DG = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, IG = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, PG = ia.create({
44845
44845
  name: "strike",
44846
44846
  addOptions() {
44847
44847
  return {
@@ -44907,7 +44907,7 @@ const kI = SI(!1, !0), EI = SI(!0, !0), bG = cr.create({
44907
44907
  const G = [];
44908
44908
  return this.options.bold !== !1 && G.push(j7.configure((n = this.options) === null || n === void 0 ? void 0 : n.bold)), this.options.blockquote !== !1 && G.push(N7.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && G.push(U7.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && G.push(G7.configure((i = this.options) === null || i === void 0 ? void 0 : i.code)), this.options.codeBlock !== !1 && G.push(xI.configure((r = this.options) === null || r === void 0 ? void 0 : r.codeBlock)), this.options.document !== !1 && G.push(X7.configure((s = this.options) === null || s === void 0 ? void 0 : s.document)), this.options.dropcursor !== !1 && G.push(Q7.configure((a = this.options) === null || a === void 0 ? void 0 : a.dropcursor)), this.options.gapcursor !== !1 && G.push(aG.configure((o = this.options) === null || o === void 0 ? void 0 : o.gapcursor)), this.options.hardBreak !== !1 && G.push(lG.configure((f = this.options) === null || f === void 0 ? void 0 : f.hardBreak)), this.options.heading !== !1 && G.push(cG.configure((m = this.options) === null || m === void 0 ? void 0 : m.heading)), this.options.history !== !1 && G.push(bG.configure((g = this.options) === null || g === void 0 ? void 0 : g.history)), this.options.horizontalRule !== !1 && G.push(_G.configure((_ = this.options) === null || _ === void 0 ? void 0 : _.horizontalRule)), this.options.italic !== !1 && G.push(EG.configure((k = this.options) === null || k === void 0 ? void 0 : k.italic)), this.options.listItem !== !1 && G.push(CG.configure((C = this.options) === null || C === void 0 ? void 0 : C.listItem)), this.options.orderedList !== !1 && G.push(AG.configure((D = this.options) === null || D === void 0 ? void 0 : D.orderedList)), this.options.paragraph !== !1 && G.push(MG.configure((z = this.options) === null || z === void 0 ? void 0 : z.paragraph)), this.options.strike !== !1 && G.push(PG.configure((O = this.options) === null || O === void 0 ? void 0 : O.strike)), this.options.text !== !1 && G.push(CI.configure((F = this.options) === null || F === void 0 ? void 0 : F.text)), G;
44909
44909
  }
44910
- }), OG = ra.create({
44910
+ }), OG = ia.create({
44911
44911
  name: "textStyle",
44912
44912
  priority: 101,
44913
44913
  addOptions() {
@@ -45214,7 +45214,7 @@ const FG = new vs("mention"), $G = po.create({
45214
45214
  })
45215
45215
  ];
45216
45216
  }
45217
- }), VG = ra.create({
45217
+ }), VG = ia.create({
45218
45218
  name: "underline",
45219
45219
  addOptions() {
45220
45220
  return {
@@ -45492,7 +45492,7 @@ function p9(n, e, t, i, r, s) {
45492
45492
  }),
45493
45493
  L("span", {
45494
45494
  class: "absolute h-[4px] w-[80%] bottom-[2px] left-[2px]",
45495
- style: ea({ backgroundColor: r.color })
45495
+ style: Ja({ backgroundColor: r.color })
45496
45496
  }, null, 4)
45497
45497
  ])
45498
45498
  ]),
@@ -45501,7 +45501,7 @@ function p9(n, e, t, i, r, s) {
45501
45501
  L("ul", h9, [
45502
45502
  (K(!0), ie(Tt, null, en(r.colors, (f) => (K(), ie("li", {
45503
45503
  class: "h-[37px] w-[37px] rounded",
45504
- style: ea({ backgroundColor: f }),
45504
+ style: Ja({ backgroundColor: f }),
45505
45505
  onClick: (m) => s.setColor(f),
45506
45506
  key: f
45507
45507
  }, null, 12, f9))), 128))
@@ -46693,7 +46693,8 @@ const MI = /* @__PURE__ */ pt(SZ, [["render", CZ]]), TZ = { class: "hs-dropdown
46693
46693
  default: () => ""
46694
46694
  },
46695
46695
  id: { type: String, default: () => "" },
46696
- form: { type: String, default: () => "" }
46696
+ form: { type: String, default: () => "" },
46697
+ apiDelete: { type: String, default: () => "" }
46697
46698
  },
46698
46699
  emits: ["update-table"],
46699
46700
  setup(n, { emit: e }) {
@@ -46710,7 +46711,9 @@ const MI = /* @__PURE__ */ pt(SZ, [["render", CZ]]), TZ = { class: "hs-dropdown
46710
46711
  }
46711
46712
  }, g = async () => {
46712
46713
  try {
46713
- await lt.delete(`/api/table/${t.table}/${t.id}`), await i("update-table");
46714
+ await lt.delete(
46715
+ `${t.apiDelete || "/api/table"}/${t.table}/${t.id}`
46716
+ ), await i("update-table"), r.value = !1;
46714
46717
  } catch (k) {
46715
46718
  console.log(k);
46716
46719
  }
@@ -47025,7 +47028,7 @@ const XZ = /* @__PURE__ */ pt(qZ, [["render", ZZ]]), KZ = { class: "h-full" }, J
47025
47028
  class: "w-[70px] bg-white text-center sticky right-[-1px] px-[10px]"
47026
47029
  }, oX = {
47027
47030
  key: 0,
47028
- class: "h-[60px] flex items-center justify-center"
47031
+ class: "h-[60px] flex relative items-center justify-center"
47029
47032
  }, aX = {
47030
47033
  __name: "vs-widget-table",
47031
47034
  props: {
@@ -47035,6 +47038,7 @@ const XZ = /* @__PURE__ */ pt(qZ, [["render", ZZ]]), KZ = { class: "h-full" }, J
47035
47038
  table: { type: String, default: () => "" },
47036
47039
  id: { type: String, default: () => "" },
47037
47040
  api: { type: String, default: () => "" },
47041
+ apiDelete: { type: String, default: () => "" },
47038
47042
  data: { type: Object, default: () => null },
47039
47043
  filter: { type: Array, default: () => [] }
47040
47044
  },
@@ -47065,7 +47069,7 @@ const XZ = /* @__PURE__ */ pt(qZ, [["render", ZZ]]), KZ = { class: "h-full" }, J
47065
47069
  var D;
47066
47070
  o.value = k !== "no-url" ? k : null, f.value = (D = Object.entries(C)) == null ? void 0 : D.length, r.value = 1, await m();
47067
47071
  };
47068
- return aa(s, m), rl(() => {
47072
+ return oa(s, m), rl(() => {
47069
47073
  m();
47070
47074
  }), (k, C) => {
47071
47075
  var O, F, G, ee, Z, Ee, _e, Re, Ve, Oe, mt, st;
@@ -47095,10 +47099,9 @@ const XZ = /* @__PURE__ */ pt(qZ, [["render", ZZ]]), KZ = { class: "h-full" }, J
47095
47099
  ])
47096
47100
  ]),
47097
47101
  L("div", {
47098
- class: "overflow-x-auto w-full [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500",
47099
- style: ea({
47100
- height: ((Ee = (Z = t.value) == null ? void 0 : Z.rows) == null ? void 0 : Ee.length) > k.limit ? "calc(100% - 60px)" : "100%"
47101
- })
47102
+ class: cn(["overflow-x-auto w-full admin-widget-table [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500", [
47103
+ ((Ee = (Z = t.value) == null ? void 0 : Z.rows) == null ? void 0 : Ee.length) > k.limit ? "h-[calc(100%-60px)]" : "h-[100%]"
47104
+ ]])
47102
47105
  }, [
47103
47106
  L("div", eX, [
47104
47107
  L("table", tX, [
@@ -47131,10 +47134,11 @@ const XZ = /* @__PURE__ */ pt(qZ, [["render", ZZ]]), KZ = { class: "h-full" }, J
47131
47134
  je(OZ, {
47132
47135
  id: me == null ? void 0 : me.id,
47133
47136
  table: n.table,
47137
+ apiDelete: n.apiDelete,
47134
47138
  token: me == null ? void 0 : me.token,
47135
47139
  form: (Qt = t.value) == null ? void 0 : Qt.form,
47136
47140
  onUpdateTable: m
47137
- }, null, 8, ["id", "table", "token", "form"])
47141
+ }, null, 8, ["id", "table", "apiDelete", "token", "form"])
47138
47142
  ])) : xt("", !0)
47139
47143
  ]);
47140
47144
  }), 128))
@@ -47142,13 +47146,13 @@ const XZ = /* @__PURE__ */ pt(qZ, [["render", ZZ]]), KZ = { class: "h-full" }, J
47142
47146
  ], 64)) : xt("", !0)
47143
47147
  ])
47144
47148
  ])
47145
- ], 4),
47149
+ ], 2),
47146
47150
  ((mt = t.value) == null ? void 0 : mt.filtered) > 20 ? (K(), ie("div", oX, [
47147
47151
  je(z, {
47148
47152
  goTo: !1,
47149
47153
  "default-page": r.value,
47150
47154
  total: (st = t.value) == null ? void 0 : st.filtered,
47151
- class: "w-fit",
47155
+ class: "absolute w-fit",
47152
47156
  pageSize: 10,
47153
47157
  onPageChange: g,
47154
47158
  backgroundColor: "#F3F4F6"
@@ -47357,7 +47361,7 @@ const II = /* @__PURE__ */ pt(BX, [["render", UX]]), WX = {
47357
47361
  const e = wt(0), t = wt([]), i = wt(!1), r = wt(null), { $notify: s } = $s().proxy, a = (m) => {
47358
47362
  r.value && !r.value.contains(m.target) && (i.value = !1);
47359
47363
  };
47360
- aa(i, (m) => {
47364
+ oa(i, (m) => {
47361
47365
  m ? window.addEventListener("click", a) : window.removeEventListener("click", a);
47362
47366
  }), Tp(() => {
47363
47367
  window.removeEventListener("click", a);
@@ -48485,7 +48489,7 @@ function Zt(n, e, t) {
48485
48489
  }
48486
48490
  function Yg(n, e, t) {
48487
48491
  let i, r;
48488
- return (s) => (i ? oa(i, s) || (r = n.call(this, s)) : r = n.call(this, s), i = s, r);
48492
+ return (s) => (i ? sa(i, s) || (r = n.call(this, s)) : r = n.call(this, s), i = s, r);
48489
48493
  }
48490
48494
  const ET = {
48491
48495
  week: 3,
@@ -48932,7 +48936,7 @@ const AT = {
48932
48936
  resources: Tg
48933
48937
  };
48934
48938
  function Yc(n, e) {
48935
- return typeof n == "object" && typeof e == "object" && n && e ? oa(n, e) : n === e;
48939
+ return typeof n == "object" && typeof e == "object" && n && e ? sa(n, e) : n === e;
48936
48940
  }
48937
48941
  function Tg(n, e) {
48938
48942
  return Array.isArray(n) && Array.isArray(e) ? ec(n, e) : n === e;
@@ -49013,7 +49017,7 @@ function Gw(n) {
49013
49017
  e.push(n[t]);
49014
49018
  return e;
49015
49019
  }
49016
- function oa(n, e) {
49020
+ function sa(n, e) {
49017
49021
  if (n === e)
49018
49022
  return !0;
49019
49023
  for (let t in n)
@@ -49446,9 +49450,9 @@ class Yw extends Wn {
49446
49450
  }
49447
49451
  Yw.addPropsEquality({
49448
49452
  elClasses: ec,
49449
- elStyle: oa,
49453
+ elStyle: sa,
49450
49454
  elAttrs: EJ,
49451
- renderProps: oa
49455
+ renderProps: sa
49452
49456
  });
49453
49457
  function px(n, e) {
49454
49458
  var t;
@@ -49535,7 +49539,7 @@ function Zw(n, e) {
49535
49539
  function S0(n, e) {
49536
49540
  return (n.start === null || e.start !== null && e.start >= n.start) && (n.end === null || e.end !== null && e.end <= n.end);
49537
49541
  }
49538
- function Ka(n, e) {
49542
+ function Xa(n, e) {
49539
49543
  return (n.start === null || e >= n.start) && (n.end === null || e < n.end);
49540
49544
  }
49541
49545
  function WJ(n, e) {
@@ -49605,7 +49609,7 @@ class fP {
49605
49609
  // from its previous value. decremented = -1, incremented = 1 (default).
49606
49610
  build(e, t, i = !0) {
49607
49611
  let { props: r } = this, s, a, o, f, m, g;
49608
- return s = this.buildValidRange(), s = this.trimHiddenDays(s), i && (e = WJ(e, s)), a = this.buildCurrentRangeInfo(e, t), o = /^(year|month|week|day)$/.test(a.unit), f = this.buildRenderRange(this.trimHiddenDays(a.range), a.unit, o), f = this.trimHiddenDays(f), m = f, r.showNonCurrentDates || (m = nc(m, a.range)), m = this.adjustActiveRange(m), m = nc(m, s), g = Zw(a.range, s), Ka(f, e) || (e = f.start), {
49612
+ return s = this.buildValidRange(), s = this.trimHiddenDays(s), i && (e = WJ(e, s)), a = this.buildCurrentRangeInfo(e, t), o = /^(year|month|week|day)$/.test(a.unit), f = this.buildRenderRange(this.trimHiddenDays(a.range), a.unit, o), f = this.trimHiddenDays(f), m = f, r.showNonCurrentDates || (m = nc(m, a.range)), m = this.adjustActiveRange(m), m = nc(m, s), g = Zw(a.range, s), Xa(f, e) || (e = f.start), {
49609
49613
  currentDate: e,
49610
49614
  // constraint for where prev/next operations can go and where events can be dragged/resized to.
49611
49615
  // an object with optional start and end properties.
@@ -50590,12 +50594,12 @@ function np(n, e, t, i, r, s, a) {
50590
50594
  // nooooo, same
50591
50595
  })) : "";
50592
50596
  }
50593
- function Ja(n, e, t) {
50597
+ function Ka(n, e, t) {
50594
50598
  let i = n.eventRange.range;
50595
50599
  return {
50596
50600
  isPast: i.end <= (t || e.start),
50597
50601
  isFuture: i.start >= (t || e.end),
50598
- isToday: e && Ka(e, i.start)
50602
+ isToday: e && Xa(e, i.start)
50599
50603
  };
50600
50604
  }
50601
50605
  function CQ(n) {
@@ -51181,9 +51185,9 @@ function WQ(n, e, t) {
51181
51185
  function o1(n, e, t, i) {
51182
51186
  return {
51183
51187
  dow: n.getUTCDay(),
51184
- isDisabled: !!(i && !Ka(i.activeRange, n)),
51185
- isOther: !!(i && !Ka(i.currentRange, n)),
51186
- isToday: !!(e && Ka(e, n)),
51188
+ isDisabled: !!(i && !Xa(i.activeRange, n)),
51189
+ isOther: !!(i && !Xa(i.currentRange, n)),
51190
+ isToday: !!(e && Xa(e, n)),
51187
51191
  isPast: !!(t ? n < t : e && n < e.start),
51188
51192
  isFuture: !!(t ? n > t : e && n >= e.end)
51189
51193
  };
@@ -52021,7 +52025,7 @@ class jP extends Wn {
52021
52025
  return Dg.test(this.props.overflowY) ? 0 : this.el.offsetWidth - this.el.clientWidth;
52022
52026
  }
52023
52027
  }
52024
- class Ga {
52028
+ class qa {
52025
52029
  constructor(e) {
52026
52030
  this.masterCallback = e, this.currentMap = {}, this.depths = {}, this.callbackMap = {}, this.handleValue = (t, i) => {
52027
52031
  let { depths: r, currentMap: s } = this, a = !1, o = !1;
@@ -52076,7 +52080,7 @@ function bee(n, e, t, i) {
52076
52080
  }, typeof e.rowContent == "function" ? e.rowContent(t) : e.rowContent));
52077
52081
  }
52078
52082
  function _ee(n, e) {
52079
- return ec(n, e, oa);
52083
+ return ec(n, e, sa);
52080
52084
  }
52081
52085
  function xee(n, e) {
52082
52086
  let t = [];
@@ -52131,7 +52135,7 @@ function UP(n) {
52131
52135
  }
52132
52136
  class d1 extends Wn {
52133
52137
  constructor() {
52134
- super(...arguments), this.processCols = Zt((e) => e, _ee), this.renderMicroColGroup = Zt(xee), this.scrollerRefs = new Ga(), this.scrollerElRefs = new Ga(this._handleScrollerEl.bind(this)), this.state = {
52138
+ super(...arguments), this.processCols = Zt((e) => e, _ee), this.renderMicroColGroup = Zt(xee), this.scrollerRefs = new qa(), this.scrollerElRefs = new qa(this._handleScrollerEl.bind(this)), this.state = {
52135
52139
  shrinkWidth: null,
52136
52140
  forceYScrollbars: !1,
52137
52141
  scrollerClientWidths: {},
@@ -52220,8 +52224,8 @@ class d1 extends Wn {
52220
52224
  }
52221
52225
  }
52222
52226
  d1.addStateEquality({
52223
- scrollerClientWidths: oa,
52224
- scrollerClientHeights: oa
52227
+ scrollerClientWidths: sa,
52228
+ scrollerClientHeights: sa
52225
52229
  });
52226
52230
  function Cee(n, e) {
52227
52231
  for (let t of n)
@@ -52647,7 +52651,7 @@ function eR(n, e, t) {
52647
52651
  options: i
52648
52652
  };
52649
52653
  }
52650
- function ua(n) {
52654
+ function ca(n) {
52651
52655
  return {
52652
52656
  id: Cu(),
52653
52657
  name: n.name,
@@ -53164,7 +53168,7 @@ let vte = {
53164
53168
  });
53165
53169
  }
53166
53170
  };
53167
- const bte = ua({
53171
+ const bte = ca({
53168
53172
  name: "array-event-source",
53169
53173
  eventSourceDefs: [vte]
53170
53174
  });
@@ -53177,7 +53181,7 @@ let _te = {
53177
53181
  OQ(r.bind(null, CP(n.range, i)), (s) => e({ rawEvents: s }), t);
53178
53182
  }
53179
53183
  };
53180
- const xte = ua({
53184
+ const xte = ca({
53181
53185
  name: "func-event-source",
53182
53186
  eventSourceDefs: [_te]
53183
53187
  }), wte = {
@@ -53206,7 +53210,7 @@ let Ste = {
53206
53210
  }, t);
53207
53211
  }
53208
53212
  };
53209
- const kte = ua({
53213
+ const kte = ca({
53210
53214
  name: "json-event-source",
53211
53215
  eventSourceRefiners: wte,
53212
53216
  eventSourceDefs: [Ste]
@@ -53247,7 +53251,7 @@ let Tte = {
53247
53251
  return i ? Mte(n.daysOfWeek, n.startTime, i, t) : [];
53248
53252
  }
53249
53253
  };
53250
- const Ate = ua({
53254
+ const Ate = ca({
53251
53255
  name: "simple-recurring-event",
53252
53256
  recurringTypes: [Tte],
53253
53257
  eventRefiners: Cte
@@ -53260,7 +53264,7 @@ function Mte(n, e, t, i) {
53260
53264
  }
53261
53265
  return o;
53262
53266
  }
53263
- const Dte = ua({
53267
+ const Dte = ca({
53264
53268
  name: "change-handler",
53265
53269
  optionChangeHandlers: {
53266
53270
  events(n, e) {
@@ -53310,7 +53314,7 @@ const Rte = [
53310
53314
  kte,
53311
53315
  Ate,
53312
53316
  Dte,
53313
- ua({
53317
+ ca({
53314
53318
  name: "misc",
53315
53319
  isLoadingFuncs: [
53316
53320
  (n) => tR(n.eventSources)
@@ -53368,13 +53372,13 @@ function Lte(n) {
53368
53372
  }
53369
53373
  class Nte {
53370
53374
  constructor(e) {
53371
- this.computeCurrentViewData = Zt(this._computeCurrentViewData), this.organizeRawLocales = Zt(Vee), this.buildLocale = Zt(QP), this.buildPluginHooks = Wee(), this.buildDateEnv = Zt(Bte), this.buildTheme = Zt(Fte), this.parseToolbars = Zt(mte), this.buildViewSpecs = Zt(Kee), this.buildDateProfileGenerator = Yg($te), this.buildViewApi = Zt(Vte), this.buildViewUiProps = Yg(Ute), this.buildEventUiBySource = Zt(jte, oa), this.buildEventUiBases = Zt(Hte), this.parseContextBusinessHours = Yg(Wte), this.buildTitle = Zt(zte), this.emitter = new E0(), this.actionRunner = new Ote(this._handleAction.bind(this), this.updateData.bind(this)), this.currentCalendarOptionsInput = {}, this.currentCalendarOptionsRefined = {}, this.currentViewOptionsInput = {}, this.currentViewOptionsRefined = {}, this.currentCalendarOptionsRefiners = {}, this.optionsForRefining = [], this.optionsForHandling = [], this.getCurrentData = () => this.data, this.dispatch = (k) => {
53375
+ this.computeCurrentViewData = Zt(this._computeCurrentViewData), this.organizeRawLocales = Zt(Vee), this.buildLocale = Zt(QP), this.buildPluginHooks = Wee(), this.buildDateEnv = Zt(Bte), this.buildTheme = Zt(Fte), this.parseToolbars = Zt(mte), this.buildViewSpecs = Zt(Kee), this.buildDateProfileGenerator = Yg($te), this.buildViewApi = Zt(Vte), this.buildViewUiProps = Yg(Ute), this.buildEventUiBySource = Zt(jte, sa), this.buildEventUiBases = Zt(Hte), this.parseContextBusinessHours = Yg(Wte), this.buildTitle = Zt(zte), this.emitter = new E0(), this.actionRunner = new Ote(this._handleAction.bind(this), this.updateData.bind(this)), this.currentCalendarOptionsInput = {}, this.currentCalendarOptionsRefined = {}, this.currentViewOptionsInput = {}, this.currentViewOptionsRefined = {}, this.currentCalendarOptionsRefiners = {}, this.optionsForRefining = [], this.optionsForHandling = [], this.getCurrentData = () => this.data, this.dispatch = (k) => {
53372
53376
  this.actionRunner.request(k);
53373
53377
  }, this.props = e, this.actionRunner.pause();
53374
53378
  let t = {}, i = this.computeOptionsData(e.optionOverrides, t, e.calendarApi), r = i.calendarOptions.initialView || i.pluginHooks.initialView, s = this.computeCurrentViewData(r, i, e.optionOverrides, t);
53375
53379
  e.calendarApi.currentDataManager = this, this.emitter.setThisContext(e.calendarApi), this.emitter.setOptions(s.options);
53376
53380
  let a = YJ(i.calendarOptions, i.dateEnv), o = s.dateProfileGenerator.build(a);
53377
- Ka(o.activeRange, a) || (a = o.currentRange.start);
53381
+ Xa(o.activeRange, a) || (a = o.currentRange.start);
53378
53382
  let f = {
53379
53383
  dateEnv: i.dateEnv,
53380
53384
  options: i.calendarOptions,
@@ -53426,7 +53430,7 @@ class Nte {
53426
53430
  }, { currentDate: g, dateProfile: _ } = i;
53427
53431
  this.data && this.data.dateProfileGenerator !== f.dateProfileGenerator && (_ = f.dateProfileGenerator.build(g)), g = GJ(g, e), _ = nte(_, e, g, f.dateProfileGenerator), (e.type === "PREV" || // TODO: move this logic into DateProfileGenerator
53428
53432
  e.type === "NEXT" || // "
53429
- !Ka(_.currentRange, g)) && (g = _.currentRange.start);
53433
+ !Xa(_.currentRange, g)) && (g = _.currentRange.start);
53430
53434
  let k = rte(i.eventSources, e, _, m), C = aQ(i.eventStore, e, k, _, m), z = tR(k) && !f.options.progressiveEventRendering && i.renderableEventStore || C, { eventUiSingleBase: O, selectionConfig: F } = this.buildViewUiProps(m), G = this.buildEventUiBySource(k), ee = this.buildEventUiBases(z.defs, O, G), Z = {
53431
53435
  dynamicOptionOverrides: s,
53432
53436
  currentViewType: o,
@@ -53840,7 +53844,7 @@ function Kte(n, e, t, i, r, s) {
53840
53844
  title: s,
53841
53845
  activeButton: n.type,
53842
53846
  navUnit: n.singleUnit,
53843
- isTodayEnabled: a.isValid && !Ka(e.currentRange, r),
53847
+ isTodayEnabled: a.isValid && !Xa(e.currentRange, r),
53844
53848
  isPrevEnabled: o.isValid,
53845
53849
  isNextEnabled: f.isValid
53846
53850
  };
@@ -54166,7 +54170,7 @@ class cne extends Wn {
54166
54170
  let a = s.eventRange.instance.instanceId;
54167
54171
  return de("div", { className: "fc-daygrid-event-harness", key: a, style: {
54168
54172
  visibility: r[a] ? "hidden" : ""
54169
- } }, aR(s) ? de(cR, Object.assign({ seg: s, isDragging: !1, isSelected: a === e.eventSelection, defaultDisplayEventEnd: !1 }, Ja(s, e.todayRange))) : de(lR, Object.assign({ seg: s, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: a === e.eventSelection, defaultDisplayEventEnd: !1 }, Ja(s, e.todayRange))));
54173
+ } }, aR(s) ? de(cR, Object.assign({ seg: s, isDragging: !1, isSelected: a === e.eventSelection, defaultDisplayEventEnd: !1 }, Ka(s, e.todayRange))) : de(lR, Object.assign({ seg: s, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: a === e.eventSelection, defaultDisplayEventEnd: !1 }, Ka(s, e.todayRange))));
54170
54174
  }));
54171
54175
  } });
54172
54176
  }
@@ -54385,7 +54389,7 @@ class vne extends PP {
54385
54389
  }
54386
54390
  class hR extends Ro {
54387
54391
  constructor() {
54388
- super(...arguments), this.cellElRefs = new Ga(), this.frameElRefs = new Ga(), this.fgElRefs = new Ga(), this.segHarnessRefs = new Ga(), this.rootElRef = Qr(), this.state = {
54392
+ super(...arguments), this.cellElRefs = new qa(), this.frameElRefs = new qa(), this.fgElRefs = new qa(), this.segHarnessRefs = new qa(), this.rootElRef = Qr(), this.state = {
54389
54393
  framePositions: null,
54390
54394
  maxContentHeight: null,
54391
54395
  segHeights: {}
@@ -54430,7 +54434,7 @@ class hR extends Ro {
54430
54434
  }
54431
54435
  componentDidUpdate(e, t) {
54432
54436
  let i = this.props;
54433
- this.updateSizing(!oa(e, i));
54437
+ this.updateSizing(!sa(e, i));
54434
54438
  }
54435
54439
  componentWillUnmount() {
54436
54440
  this.context.removeResizeHandler(this.handleResize);
@@ -54454,7 +54458,7 @@ class hR extends Ro {
54454
54458
  top: G ? D.absoluteTop : "",
54455
54459
  left: ee,
54456
54460
  right: Z
54457
- } }, aR(z) ? de(cR, Object.assign({ seg: z, isDragging: s, isSelected: O === m, defaultDisplayEventEnd: _ }, Ja(z, i))) : de(lR, Object.assign({ seg: z, isDragging: s, isResizing: a, isDateSelecting: o, isSelected: O === m, defaultDisplayEventEnd: _ }, Ja(z, i)))));
54461
+ } }, aR(z) ? de(cR, Object.assign({ seg: z, isDragging: s, isSelected: O === m, defaultDisplayEventEnd: _ }, Ka(z, i))) : de(lR, Object.assign({ seg: z, isDragging: s, isResizing: a, isDateSelecting: o, isSelected: O === m, defaultDisplayEventEnd: _ }, Ka(z, i)))));
54458
54462
  }
54459
54463
  return C;
54460
54464
  }
@@ -54469,7 +54473,7 @@ class hR extends Ro {
54469
54473
  left: 0,
54470
54474
  right: s.rights[o.firstCol] - s.rights[o.lastCol]
54471
54475
  };
54472
- a.push(de("div", { key: EP(o.eventRange), className: "fc-daygrid-bg-harness", style: f }, t === "bg-event" ? de(qP, Object.assign({ seg: o }, Ja(o, r))) : GP(t)));
54476
+ a.push(de("div", { key: EP(o.eventRange), className: "fc-daygrid-bg-harness", style: f }, t === "bg-event" ? de(qP, Object.assign({ seg: o }, Ka(o, r))) : GP(t)));
54473
54477
  }
54474
54478
  return de(hi, {}, ...a);
54475
54479
  }
@@ -54525,7 +54529,7 @@ class hR extends Ro {
54525
54529
  }
54526
54530
  }
54527
54531
  hR.addStateEquality({
54528
- segHeights: oa
54532
+ segHeights: sa
54529
54533
  });
54530
54534
  function bne(n, e) {
54531
54535
  if (!n.length)
@@ -54548,7 +54552,7 @@ function _ne(n) {
54548
54552
  }
54549
54553
  class xne extends Ro {
54550
54554
  constructor() {
54551
- super(...arguments), this.splitBusinessHourSegs = Zt(Ig), this.splitBgEventSegs = Zt(Ig), this.splitFgEventSegs = Zt(Ig), this.splitDateSelectionSegs = Zt(Ig), this.splitEventDrag = Zt(GT), this.splitEventResize = Zt(GT), this.rowRefs = new Ga();
54555
+ super(...arguments), this.splitBusinessHourSegs = Zt(Ig), this.splitBgEventSegs = Zt(Ig), this.splitFgEventSegs = Zt(Ig), this.splitDateSelectionSegs = Zt(Ig), this.splitEventDrag = Zt(GT), this.splitEventResize = Zt(GT), this.rowRefs = new qa();
54552
54556
  }
54553
54557
  render() {
54554
54558
  let { props: e, context: t } = this, i = e.cells.length, r = this.splitBusinessHourSegs(e.businessHourSegs, i), s = this.splitBgEventSegs(e.bgEventSegs, i), a = this.splitFgEventSegs(e.fgEventSegs, i), o = this.splitDateSelectionSegs(e.dateSelectionSegs, i), f = this.splitEventDrag(e.eventDrag, i), m = this.splitEventResize(e.eventResize, i), g = i >= 7 && e.clientWidth ? e.clientWidth / t.options.aspectRatio / 6 : null;
@@ -54758,7 +54762,7 @@ function Mne(n) {
54758
54762
  }
54759
54763
  var Dne = ':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';
54760
54764
  x0(Dne);
54761
- var Ine = ua({
54765
+ var Ine = ca({
54762
54766
  name: "@fullcalendar/daygrid",
54763
54767
  initialView: "dayGridMonth",
54764
54768
  views: {
@@ -55084,7 +55088,7 @@ class $ne {
55084
55088
  }
55085
55089
  safeComputeTop(e) {
55086
55090
  let { dateProfile: t } = this;
55087
- if (Ka(t.currentRange, e)) {
55091
+ if (Xa(t.currentRange, e)) {
55088
55092
  let i = fi(e), r = e.valueOf() - i.valueOf();
55089
55093
  if (r >= ko(t.slotMinTime) && r < ko(t.slotMaxTime))
55090
55094
  return this.computeTimeTop(Rn(r));
@@ -55130,7 +55134,7 @@ class Vne extends Wn {
55130
55134
  }
55131
55135
  class jne extends Wn {
55132
55136
  constructor() {
55133
- super(...arguments), this.rootElRef = Qr(), this.slatElRefs = new Ga();
55137
+ super(...arguments), this.rootElRef = Qr(), this.slatElRefs = new qa();
55134
55138
  }
55135
55139
  render() {
55136
55140
  let { props: e, context: t } = this;
@@ -55398,7 +55402,7 @@ class tie extends Wn {
55398
55402
  return de(
55399
55403
  "div",
55400
55404
  { className: "fc-timegrid-event-harness" + (st ? " fc-timegrid-event-harness-inset" : ""), key: a || Re, style: Object.assign(Object.assign({ visibility: Ve ? "" : "hidden" }, Oe), mt) },
55401
- de(mR, Object.assign({ seg: Ee, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: Re === C, isShort: me }, Ja(Ee, D, z)))
55405
+ de(mR, Object.assign({ seg: Ee, isDragging: i, isResizing: r, isDateSelecting: s, isSelected: Re === C, isShort: me }, Ka(Ee, D, z)))
55402
55406
  );
55403
55407
  })
55404
55408
  );
@@ -55414,7 +55418,7 @@ class tie extends Wn {
55414
55418
  renderFillSegs(e, t) {
55415
55419
  let { props: i, context: r } = this, a = XT(e, i.date, i.slatCoords, r.options.eventMinHeight).map((o, f) => {
55416
55420
  let m = e[f];
55417
- return de("div", { key: EP(m.eventRange), className: "fc-timegrid-bg-harness", style: o_(o) }, t === "bg-event" ? de(qP, Object.assign({ seg: m }, Ja(m, i.todayRange, i.nowDate))) : GP(t));
55421
+ return de("div", { key: EP(m.eventRange), className: "fc-timegrid-bg-harness", style: o_(o) }, t === "bg-event" ? de(qP, Object.assign({ seg: m }, Ka(m, i.todayRange, i.nowDate))) : GP(t));
55418
55422
  });
55419
55423
  return de(hi, null, a);
55420
55424
  }
@@ -55452,7 +55456,7 @@ function gR(n, { todayRange: e, nowDate: t, eventSelection: i, eventDrag: r, eve
55452
55456
  return de(
55453
55457
  "div",
55454
55458
  { key: f, style: { visibility: a[f] ? "hidden" : "" } },
55455
- de(mR, Object.assign({ seg: o, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: f === i, isShort: !1 }, Ja(o, e, t)))
55459
+ de(mR, Object.assign({ seg: o, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: f === i, isShort: !1 }, Ka(o, e, t)))
55456
55460
  );
55457
55461
  }));
55458
55462
  }
@@ -55467,7 +55471,7 @@ function nie(n, e) {
55467
55471
  }
55468
55472
  class iie extends Wn {
55469
55473
  constructor() {
55470
- super(...arguments), this.splitFgEventSegs = Zt(Rf), this.splitBgEventSegs = Zt(Rf), this.splitBusinessHourSegs = Zt(Rf), this.splitNowIndicatorSegs = Zt(Rf), this.splitDateSelectionSegs = Zt(Rf), this.splitEventDrag = Zt(YT), this.splitEventResize = Zt(YT), this.rootElRef = Qr(), this.cellElRefs = new Ga();
55474
+ super(...arguments), this.splitFgEventSegs = Zt(Rf), this.splitBgEventSegs = Zt(Rf), this.splitBusinessHourSegs = Zt(Rf), this.splitNowIndicatorSegs = Zt(Rf), this.splitDateSelectionSegs = Zt(Rf), this.splitEventDrag = Zt(YT), this.splitEventResize = Zt(YT), this.rootElRef = Qr(), this.cellElRefs = new qa();
55471
55475
  }
55472
55476
  render() {
55473
55477
  let { props: e, context: t } = this, i = t.options.nowIndicator && e.slatCoords && e.slatCoords.safeComputeTop(e.nowDate), r = e.cells.length, s = this.splitFgEventSegs(e.fgEventSegs, r), a = this.splitBgEventSegs(e.bgEventSegs, r), o = this.splitBusinessHourSegs(e.businessHourSegs, r), f = this.splitNowIndicatorSegs(e.nowIndicatorSegs, r), m = this.splitDateSelectionSegs(e.dateSelectionSegs, r), g = this.splitEventDrag(e.eventDrag, r), _ = this.splitEventResize(e.eventResize, r);
@@ -55674,7 +55678,7 @@ x0(pie);
55674
55678
  const mie = {
55675
55679
  allDaySlot: Boolean
55676
55680
  };
55677
- var gie = ua({
55681
+ var gie = ca({
55678
55682
  name: "@fullcalendar/timegrid",
55679
55683
  initialView: "timeGridWeek",
55680
55684
  optionRefiners: mie,
@@ -55831,7 +55835,7 @@ class kie extends Ro {
55831
55835
  let D = Vp(t[k]), z = o + "-" + D;
55832
55836
  _.push(de(yie, { key: D, cellId: z, dayDate: t[k], todayRange: g })), C = i1(C, r.eventOrder);
55833
55837
  for (let O of C)
55834
- _.push(de(_ie, Object.assign({ key: D + ":" + O.eventRange.instance.instanceId, seg: O, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, timeHeaderId: s, eventHeaderId: a, dateHeaderId: z }, Ja(O, g, m))));
55838
+ _.push(de(_ie, Object.assign({ key: D + ":" + O.eventRange.instance.instanceId, seg: O, isDragging: !1, isResizing: !1, isDateSelecting: !1, isSelected: !1, timeHeaderId: s, eventHeaderId: a, dateHeaderId: z }, Ka(O, g, m))));
55835
55839
  }
55836
55840
  }
55837
55841
  return de(
@@ -55911,7 +55915,7 @@ const Mie = {
55911
55915
  function JT(n) {
55912
55916
  return n === !1 ? null : yi(n);
55913
55917
  }
55914
- var Die = ua({
55918
+ var Die = ca({
55915
55919
  name: "@fullcalendar/list",
55916
55920
  optionRefiners: Mie,
55917
55921
  views: {
@@ -56776,7 +56780,7 @@ const Xie = {
56776
56780
  eventLeave: Pe
56777
56781
  };
56778
56782
  u1.dataAttrPrefix = "";
56779
- var Jie = ua({
56783
+ var Jie = ca({
56780
56784
  name: "@fullcalendar/interaction",
56781
56785
  componentInteractions: [Vie, jie, Wp, Gie],
56782
56786
  calendarInteractions: [Zie],
@@ -57859,7 +57863,7 @@ function wse(n, e, t, i, r, s) {
57859
57863
  reference: $t(() => [
57860
57864
  L("button", {
57861
57865
  class: "h-[37px] w-[37px] rounded-lg flex items-center justify-center",
57862
- style: ea({ backgroundColor: t.modelValue })
57866
+ style: Ja({ backgroundColor: t.modelValue })
57863
57867
  }, null, 4)
57864
57868
  ]),
57865
57869
  default: $t(() => [
@@ -57867,7 +57871,7 @@ function wse(n, e, t, i, r, s) {
57867
57871
  L("ul", _se, [
57868
57872
  (K(!0), ie(Tt, null, en(t.colors, (o) => (K(), ie("li", {
57869
57873
  class: "h-[37px] w-[37px] rounded",
57870
- style: ea({ backgroundColor: o }),
57874
+ style: Ja({ backgroundColor: o }),
57871
57875
  onClick: (f) => s.updateColor(o),
57872
57876
  key: o
57873
57877
  }, null, 12, xse))), 128))
@@ -58451,7 +58455,7 @@ const kR = /* @__PURE__ */ pt(roe, [["render", ooe]]), aoe = { class: "px-2.5 h-
58451
58455
  }
58452
58456
  }, hoe = {
58453
58457
  style: { height: "calc(100vh - 60px)" },
58454
- class: "p-4 overflow-y-auto bg-gray-50 lg:w-[calc(100vw-260px)] w-[100vw]"
58458
+ class: "p-4 overflow-y-auto bg-gray-50 lg:w-[calc(100vw-260px)] w-[100vw] text-[13px]"
58455
58459
  }, foe = { class: "flex gap-[20px]" }, poe = {
58456
58460
  key: 0,
58457
58461
  class: "p-[10px] pl-[20px] text-md font-[500]"
@@ -58503,7 +58507,7 @@ function Noe(n, e, t, i, r, s) {
58503
58507
  (F) => (F == null ? void 0 : F.type) === "pin"
58504
58508
  ), (F, G) => (K(), ie("div", {
58505
58509
  key: G,
58506
- class: cn(["col-span-12", s.columnClass(F.col)])
58510
+ class: cn(["col-span-12 shrink-0", s.columnClass(F.col)])
58507
58511
  }, [
58508
58512
  (K(!0), ie(Tt, null, en(F.items, (ee, Z) => {
58509
58513
  var Ee, _e, Re, Ve, Oe, mt, st, me, ct, zt, Gt, Qt, jt, Jt;
@@ -58715,7 +58719,7 @@ function Noe(n, e, t, i, r, s) {
58715
58719
  ])
58716
58720
  ]);
58717
58721
  }
58718
- const v1 = /* @__PURE__ */ pt(doe, [["render", Noe], ["__scopeId", "data-v-7df7f898"]]), Boe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58722
+ const v1 = /* @__PURE__ */ pt(doe, [["render", Noe], ["__scopeId", "data-v-33219290"]]), Boe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58719
58723
  __proto__: null,
58720
58724
  default: v1
58721
58725
  }, Symbol.toStringTag, { value: "Module" })), Foe = {
@@ -58810,7 +58814,7 @@ const v1 = /* @__PURE__ */ pt(doe, [["render", Noe], ["__scopeId", "data-v-7df7f
58810
58814
  editableValue: m.ua !== void 0 ? m.ua : m.title
58811
58815
  }))
58812
58816
  );
58813
- aa(
58817
+ oa(
58814
58818
  () => i.columns,
58815
58819
  (m) => {
58816
58820
  s.value = m.map((g) => ({
@@ -59238,7 +59242,7 @@ function Sae(n, e, t, i, r, s) {
59238
59242
  s.activeForm.body ? (K(), Bt(a, {
59239
59243
  key: s.activeForm,
59240
59244
  scheme: s.activeForm.body,
59241
- style: ea(n.style),
59245
+ style: Ja(n.style),
59242
59246
  modelValue: r.formValues,
59243
59247
  "onUpdate:modelValue": e[1] || (e[1] = (f) => r.formValues = f)
59244
59248
  }, null, 8, ["scheme", "style", "modelValue"])) : xt("", !0)
@@ -59445,7 +59449,7 @@ const Aae = /* @__PURE__ */ pt(Eae, [["render", Tae]]), Mae = { class: "h-full w
59445
59449
  const G = m.value.join(",");
59446
59450
  a.value = `/api/print-template/${t.value}/${G}`;
59447
59451
  }, F = TR(g, 300);
59448
- return aa(f, () => g()), rl(async () => {
59452
+ return oa(f, () => g()), rl(async () => {
59449
59453
  await g(), await _();
59450
59454
  }), (G, ee) => {
59451
59455
  var _e, Re, Ve;
@@ -59613,7 +59617,7 @@ const Aae = /* @__PURE__ */ pt(Eae, [["render", Tae]]), Mae = { class: "h-full w
59613
59617
  console.log(f);
59614
59618
  }
59615
59619
  };
59616
- return rl(o), aa(i, () => o()), (f, m) => (K(), ie("div", nle, [
59620
+ return rl(o), oa(i, () => o()), (f, m) => (K(), ie("div", nle, [
59617
59621
  L("div", ile, [
59618
59622
  (K(), ie(Tt, null, en(e, (g, _) => L("button", {
59619
59623
  key: _,
@@ -59883,7 +59887,7 @@ const Aae = /* @__PURE__ */ pt(Eae, [["render", Tae]]), Mae = { class: "h-full w
59883
59887
  }, k = (C) => {
59884
59888
  a.value = C == null ? void 0 : C.period, m();
59885
59889
  };
59886
- return aa(f, () => {
59890
+ return oa(f, () => {
59887
59891
  o.value = !1, setTimeout(() => o.value = !0), s.value = null, a.value = null, m();
59888
59892
  }), rl(m), (C, D) => {
59889
59893
  var F, G, ee;