@tempots/beatui 0.78.0 → 0.78.2

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.
Files changed (36) hide show
  1. package/dist/auth/index.cjs.js +1 -1
  2. package/dist/auth/index.es.js +3 -3
  3. package/dist/{deep-merge-Cjm-tFVT.js → deep-merge-Bsqkvp9-.js} +2 -2
  4. package/dist/{deep-merge-BoJqJNah.cjs → deep-merge-cQgRrtGF.cjs} +1 -1
  5. package/dist/{duration-input-DfdE7_V9.js → duration-input-DcZf0Dyd.js} +2 -2
  6. package/dist/{duration-input-COTlyMwv.cjs → duration-input-Dt6riwzu.cjs} +1 -1
  7. package/dist/hls.light.min-Bhrf47iR.cjs +27 -0
  8. package/dist/{hls.light.min-BHW1Af0w.js → hls.light.min-C6VwviEa.js} +1095 -1087
  9. package/dist/{index-ByWYsYVI.cjs → index-BGwNJNop.cjs} +19 -19
  10. package/dist/{index-DKl26ILa.js → index-CCMjK4fD.js} +1 -1
  11. package/dist/{index-D5kPtj3r.cjs → index-CdVc1Y2V.cjs} +1 -1
  12. package/dist/{index-BSl-AmDV.js → index-Dbu1ZPpw.js} +1095 -1044
  13. package/dist/{index-wPyoqxuj.js → index-DiEcd7ZV.js} +2 -6
  14. package/dist/{index-Ck1DAzZ9.js → index-mPVib4v9.js} +1 -1
  15. package/dist/index.cjs.js +2 -2
  16. package/dist/index.es.js +12 -12
  17. package/dist/index.esm-C6lZ02yY.cjs +1 -0
  18. package/dist/{index.esm-DPNh6inz.js → index.esm-ChUrm4xR.js} +80 -80
  19. package/dist/json-schema/index.cjs.js +8 -8
  20. package/dist/json-schema/index.es.js +3969 -3922
  21. package/dist/json-structure/index.cjs.js +1 -1
  22. package/dist/json-structure/index.es.js +3 -3
  23. package/dist/markdown/index.es.js +1 -1
  24. package/dist/{modal-CwDATZfz.cjs → modal-D3NQ6ZgO.cjs} +1 -1
  25. package/dist/{modal-CkcwBTk2.js → modal-oWbT46Rc.js} +1 -1
  26. package/dist/{notice-CQ1Vx-z1.js → notice-C0Brmeyi.js} +1 -1
  27. package/dist/{notice-Bs90dF7k.cjs → notice-DYBLXglS.cjs} +1 -1
  28. package/dist/prosemirror/index.cjs.js +1 -1
  29. package/dist/prosemirror/index.es.js +1 -1
  30. package/dist/{use-form-D3EXhCfe.js → use-form-DMiCxK26.js} +2 -2
  31. package/dist/{use-form-C5eF9ALX.cjs → use-form-pSErMD6z.cjs} +1 -1
  32. package/dist/{widget-customization-Czt9chmX.cjs → widget-customization-WNWmH_gX.cjs} +1 -1
  33. package/dist/{widget-customization-BB1gYtwq.js → widget-customization-nxbAoCx5.js} +3 -3
  34. package/package.json +5 -5
  35. package/dist/hls.light.min-D3hUMpII.cjs +0 -27
  36. package/dist/index.esm-DJRz9AE-.cjs +0 -1
@@ -1064,7 +1064,7 @@ const de = globalThis[jr];
1064
1064
  function Dt(n, ...t) {
1065
1065
  if (!n || typeof n != "object") return !1;
1066
1066
  const e = mr(n);
1067
- return !!e && t.every((r) => r in e);
1067
+ return !!e && t.every(((r) => r in e));
1068
1068
  }
1069
1069
  function h(n, t) {
1070
1070
  const e = mr(n)?.[t];
@@ -1237,11 +1237,11 @@ function Zt(n) {
1237
1237
  const t = yr(n);
1238
1238
  if (Number.isNaN(t)) throw new RangeError("not a number");
1239
1239
  if (t === 1 / 0 || t === -1 / 0) throw new RangeError("infinity is out of range");
1240
- if (!function(e) {
1240
+ if (!(function(e) {
1241
1241
  if (typeof e != "number" || Number.isNaN(e) || e === 1 / 0 || e === -1 / 0) return !1;
1242
1242
  const r = Math.abs(e);
1243
1243
  return Math.floor(r) === r;
1244
- }(t)) throw new RangeError(`unsupported fractional value ${n}`);
1244
+ })(t)) throw new RangeError(`unsupported fractional value ${n}`);
1245
1245
  return t === 0 ? 0 : t;
1246
1246
  }
1247
1247
  function Rn(n, t) {
@@ -1266,7 +1266,7 @@ const zr = ["era", "eraYear", "year", "month", "monthCode", "day", "hour", "minu
1266
1266
  }, day: Eo, hour: $, minute: $, second: $, millisecond: $, microsecond: $, nanosecond: $, offset: function(n) {
1267
1267
  const t = V(Ur(n));
1268
1268
  return sn(t), t;
1269
- }, timeZone: bt }, Ma = { hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0 }, Qe = [["years", "year", "date"], ["months", "month", "date"], ["weeks", "week", "date"], ["days", "day", "date"], ["hours", "hour", "time"], ["minutes", "minute", "time"], ["seconds", "second", "time"], ["milliseconds", "millisecond", "time"], ["microseconds", "microsecond", "time"], ["nanoseconds", "nanosecond", "time"]], Mo = Object.fromEntries(Qe.map((n) => [n[0], n[1]])), Ta = Object.fromEntries(Qe.map(([n, t]) => [t, n])), En = Qe.map(([, n]) => n), Be = { day: rr, hour: 36e11, minute: 6e10, second: 1e9, millisecond: 1e6, microsecond: 1e3, nanosecond: 1 }, or = ["days", "hours", "microseconds", "milliseconds", "minutes", "months", "nanoseconds", "seconds", "weeks", "years"], Ca = Intl.DateTimeFormat, To = /* @__PURE__ */ new Map();
1269
+ }, timeZone: bt }, Ma = { hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0 }, Qe = [["years", "year", "date"], ["months", "month", "date"], ["weeks", "week", "date"], ["days", "day", "date"], ["hours", "hour", "time"], ["minutes", "minute", "time"], ["seconds", "second", "time"], ["milliseconds", "millisecond", "time"], ["microseconds", "microsecond", "time"], ["nanoseconds", "nanosecond", "time"]], Mo = Object.fromEntries(Qe.map(((n) => [n[0], n[1]]))), Ta = Object.fromEntries(Qe.map((([n, t]) => [t, n]))), En = Qe.map((([, n]) => n)), Be = { day: rr, hour: 36e11, minute: 6e10, second: 1e9, millisecond: 1e6, microsecond: 1e3, nanosecond: 1 }, or = ["days", "hours", "microseconds", "milliseconds", "minutes", "months", "nanoseconds", "seconds", "weeks", "years"], Ca = Intl.DateTimeFormat, To = /* @__PURE__ */ new Map();
1270
1270
  function yi(n) {
1271
1271
  const t = xn(n);
1272
1272
  let e = To.get(t);
@@ -1632,11 +1632,11 @@ function yn(n, t) {
1632
1632
  function Ut(n) {
1633
1633
  const t = et("%Temporal.Duration%");
1634
1634
  if (z(n)) return new t(h(n, ut), h(n, lt), h(n, Mt), h(n, ht), h(n, dt), h(n, mt), h(n, ft), h(n, gt), h(n, yt), h(n, Tt));
1635
- if (!q(n)) return function(o) {
1636
- const { years: i, months: a, weeks: s, days: c, hours: u, minutes: d, seconds: m, milliseconds: f, microseconds: g, nanoseconds: y } = function(p) {
1635
+ if (!q(n)) return (function(o) {
1636
+ const { years: i, months: a, weeks: s, days: c, hours: u, minutes: d, seconds: m, milliseconds: f, microseconds: g, nanoseconds: y } = (function(p) {
1637
1637
  const w = ya.exec(p);
1638
1638
  if (!w) throw new RangeError(`invalid duration: ${p}`);
1639
- if (w.every((ra, oa) => oa < 2 || ra === void 0)) throw new RangeError(`invalid duration: ${p}`);
1639
+ if (w.every(((ra, oa) => oa < 2 || ra === void 0))) throw new RangeError(`invalid duration: ${p}`);
1640
1640
  const v = w[1] === "-" ? -1 : 1, _ = w[2] === void 0 ? 0 : $(w[2]) * v, E = w[3] === void 0 ? 0 : $(w[3]) * v, O = w[4] === void 0 ? 0 : $(w[4]) * v, R = w[5] === void 0 ? 0 : $(w[5]) * v, W = w[6] === void 0 ? 0 : $(w[6]) * v, K = w[7], G = w[8], U = w[9], Et = w[10], Q = w[11];
1641
1641
  let P = 0, it = 0, kt = 0;
1642
1642
  if (K !== void 0) {
@@ -1648,9 +1648,9 @@ function Ut(n) {
1648
1648
  } else it = Et === void 0 ? 0 : $(Et) * v, Q !== void 0 && (kt = $((Q + "000000000").slice(0, 9)) * v);
1649
1649
  const fe = kt % 1e3, Ae = Math.trunc(kt / 1e3) % 1e3, Ue = Math.trunc(kt / 1e6) % 1e3;
1650
1650
  return it += Math.trunc(kt / 1e9) % 60, P += Math.trunc(kt / 6e10), Er(_, E, O, R, W, P, it, Ue, Ae, fe), { years: _, months: E, weeks: O, days: R, hours: W, minutes: P, seconds: it, milliseconds: Ue, microseconds: Ae, nanoseconds: fe };
1651
- }(o);
1651
+ })(o);
1652
1652
  return new (et("%Temporal.Duration%"))(i, a, s, c, u, d, m, f, g, y);
1653
- }(V(n));
1653
+ })(V(n));
1654
1654
  const e = { years: 0, months: 0, weeks: 0, days: 0, hours: 0, minutes: 0, seconds: 0, milliseconds: 0, microseconds: 0, nanoseconds: 0 };
1655
1655
  let r = Di(n);
1656
1656
  for (let o = 0; o < or.length; o++) {
@@ -1665,11 +1665,11 @@ function pn(n) {
1665
1665
  if (B(n) || Y(n)) return Vt(h(n, T));
1666
1666
  t = Ur(n);
1667
1667
  } else t = n;
1668
- const { year: e, month: r, day: o, time: i, offset: a, z: s } = function(p) {
1668
+ const { year: e, month: r, day: o, time: i, offset: a, z: s } = (function(p) {
1669
1669
  const w = te(p);
1670
1670
  if (!w.z && !w.offset) throw new RangeError("Temporal.Instant requires a time zone offset");
1671
1671
  return w;
1672
- }(V(t)), { hour: c = 0, minute: u = 0, second: d = 0, millisecond: m = 0, microsecond: f = 0, nanosecond: g = 0 } = i === "start-of-day" ? {} : i, y = Ln(e, r, o, c, u, d, m, f, g - (s ? 0 : sn(a)));
1672
+ })(V(t)), { hour: c = 0, minute: u = 0, second: d = 0, millisecond: m = 0, microsecond: f = 0, nanosecond: g = 0 } = i === "start-of-day" ? {} : i, y = Ln(e, r, o, c, u, d, m, f, g - (s ? 0 : sn(a)));
1673
1673
  return Xe(y.isoDate), Vt(tt(y));
1674
1674
  }
1675
1675
  function Co(n, t) {
@@ -1749,11 +1749,11 @@ function bn(n, t) {
1749
1749
  ({ isoDate: e, time: r } = Hn(a, f, y));
1750
1750
  } else {
1751
1751
  let f, g, y, p, w;
1752
- ({ year: y, month: p, day: w, time: r, tzAnnotation: f, offset: i, z: g, calendar: a } = function(_) {
1752
+ ({ year: y, month: p, day: w, time: r, tzAnnotation: f, offset: i, z: g, calendar: a } = (function(_) {
1753
1753
  const E = te(_);
1754
1754
  if (!E.tzAnnotation) throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");
1755
1755
  return E;
1756
- }(V(n))), o = bt(f), g ? d = "exact" : i || (d = "wall"), a || (a = "iso8601"), a = _t(a), u = !0;
1756
+ })(V(n))), o = bt(f), g ? d = "exact" : i || (d = "wall"), a || (a = "iso8601"), a = _t(a), u = !0;
1757
1757
  const v = M(t);
1758
1758
  s = Tn(v), c = tr(v, "reject"), L(v), e = { year: y, month: p, day: w };
1759
1759
  }
@@ -1810,7 +1810,7 @@ function nt(n, t, e = "iso8601") {
1810
1810
  return Ri(o, n, t, e), o;
1811
1811
  }
1812
1812
  function Oo(n) {
1813
- return zr.filter((t) => n[t] !== void 0);
1813
+ return zr.filter(((t) => n[t] !== void 0));
1814
1814
  }
1815
1815
  function Re(n, t, e) {
1816
1816
  const r = Oo(e), o = Ee(n).fieldKeysToIgnore(r), i = /* @__PURE__ */ Object.create(null), a = Oo(t);
@@ -1881,8 +1881,8 @@ function bt(n) {
1881
1881
  if (q(n) && Y(n)) return h(n, j);
1882
1882
  const t = V(n);
1883
1883
  if (t === "UTC") return "UTC";
1884
- const { tzName: e, offsetMinutes: r } = function(i) {
1885
- const { tzAnnotation: a, offset: s, z: c } = function(u) {
1884
+ const { tzName: e, offsetMinutes: r } = (function(i) {
1885
+ const { tzAnnotation: a, offset: s, z: c } = (function(u) {
1886
1886
  if (wi.test(u)) return { tzAnnotation: u, offset: void 0, z: !1 };
1887
1887
  try {
1888
1888
  const { tzAnnotation: d, offset: m, z: f } = te(u);
@@ -1890,9 +1890,9 @@ function bt(n) {
1890
1890
  } catch {
1891
1891
  }
1892
1892
  vi(u);
1893
- }(i);
1893
+ })(i);
1894
1894
  return a ? be(a) : c ? be("UTC") : s ? be(s) : void 0;
1895
- }(t);
1895
+ })(t);
1896
1896
  if (r !== void 0) return eo(r);
1897
1897
  const o = sr(e);
1898
1898
  if (!o) throw new RangeError(`Unrecognized time zone ${e}`);
@@ -1964,20 +1964,20 @@ function Yn(n, t) {
1964
1964
  const o = tt(r);
1965
1965
  return Bt(o), [o];
1966
1966
  }
1967
- return Xe(t.isoDate), function(r, o) {
1967
+ return Xe(t.isoDate), (function(r, o) {
1968
1968
  let i = tt(o), a = l.subtract(i, ve);
1969
1969
  l.lessThan(a, $n) && (a = i);
1970
1970
  let s = l.add(i, ve);
1971
1971
  l.greaterThan(s, Ke) && (s = i);
1972
1972
  const c = qr(r, a), u = qr(r, s);
1973
- return (c === u ? [c] : [c, u]).map((m) => {
1974
- const f = l.subtract(i, l.BigInt(m)), g = function(y, p) {
1973
+ return (c === u ? [c] : [c, u]).map(((m) => {
1974
+ const f = l.subtract(i, l.BigInt(m)), g = (function(y, p) {
1975
1975
  const { epochMilliseconds: w, time: { millisecond: v, microsecond: _, nanosecond: E } } = xi(p), { year: O, month: R, day: W, hour: K, minute: G, second: U } = ji(y, w);
1976
1976
  return Ln(O, R, W, K, G, U, v, _, E);
1977
- }(r, f);
1977
+ })(r, f);
1978
1978
  if (tn(o, g) === 0) return Bt(f), f;
1979
- }).filter((m) => m !== void 0);
1980
- }(n, t);
1979
+ })).filter(((m) => m !== void 0));
1980
+ })(n, t);
1981
1981
  }
1982
1982
  function ge(n, t) {
1983
1983
  const e = x(t, { deltaDays: 0, hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0 }), r = Yn(n, e);
@@ -2092,7 +2092,7 @@ function sr(n) {
2092
2092
  return;
2093
2093
  }
2094
2094
  if (t === "antarctica/south_pole" && (e = "Antarctica/McMurdo"), _a.has(n)) throw new RangeError(`${n} is a legacy time zone identifier from ICU. Use ${e} instead`);
2095
- const r = [...t].map((i, a) => a === 0 || Oa[t[a - 1]] ? i.toUpperCase() : i).join("").split("/");
2095
+ const r = [...t].map(((i, a) => a === 0 || Oa[t[a - 1]] ? i.toUpperCase() : i)).join("").split("/");
2096
2096
  if (r.length === 1) return t === "gb-eire" ? { identifier: "GB-Eire", primaryIdentifier: e } : { identifier: t.length <= 3 || /[-0-9]/.test(t) ? t.toUpperCase() : r[0], primaryIdentifier: e };
2097
2097
  if (r[0] === "Etc") return { identifier: `Etc/${["Zulu", "Greenwich", "Universal"].includes(r[1]) ? r[1] : r[1].toUpperCase()}`, primaryIdentifier: e };
2098
2098
  if (r[0] === "Us") return { identifier: `US/${r[1]}`, primaryIdentifier: e };
@@ -2138,7 +2138,7 @@ function ro(n, t) {
2138
2138
  if (s = i + 2 * De * 7, s > gi) return null;
2139
2139
  c = Oe(n, s), a === c && (i = s);
2140
2140
  }
2141
- return a === c ? null : St(Wi((u) => Oe(n, u), i, s, a, c));
2141
+ return a === c ? null : St(Wi(((u) => Oe(n, u)), i, s, a, c));
2142
2142
  }
2143
2143
  function Hr(n, t) {
2144
2144
  if (n === "UTC") return null;
@@ -2158,10 +2158,10 @@ function Hr(n, t) {
2158
2158
  if (s = i - 2 * De * 7, s < _n) return null;
2159
2159
  c = Oe(n, s), a === c && (i = s);
2160
2160
  }
2161
- return a === c ? null : St(Wi((u) => Oe(n, u), s, i, c, a));
2161
+ return a === c ? null : St(Wi(((u) => Oe(n, u)), s, i, c, a));
2162
2162
  }
2163
2163
  function ji(n, t) {
2164
- return function(e) {
2164
+ return (function(e) {
2165
2165
  const r = e.split(/[^\w]+/);
2166
2166
  if (r.length !== 7) throw new RangeError(`expected 7 parts in "${e}`);
2167
2167
  const o = +r[0], i = +r[1];
@@ -2172,7 +2172,7 @@ function ji(n, t) {
2172
2172
  const c = r[4] === "24" ? 0 : +r[4], u = +r[5], d = +r[6];
2173
2173
  if (!(Number.isFinite(a) && Number.isFinite(o) && Number.isFinite(i) && Number.isFinite(c) && Number.isFinite(u) && Number.isFinite(d))) throw new RangeError(`Invalid number in "${e}`);
2174
2174
  return { year: a, month: o, day: i, hour: c, minute: u, second: d };
2175
- }(yi(n).format(t));
2175
+ })(yi(n).format(t));
2176
2176
  }
2177
2177
  function cr(n) {
2178
2178
  return n !== void 0 && !(n % 4 != 0 || n % 100 == 0 && n % 400 != 0);
@@ -2406,7 +2406,7 @@ function Mr(n, t, e, r, o, i, a, s, c) {
2406
2406
  let u = n;
2407
2407
  const d = Wt(s) || r && s === "day", m = Ii(u) < 0 ? -1 : 1;
2408
2408
  let f;
2409
- return d ? { nudgeResult: f } = Fi(m, u, t, e, r, o, a, s, c) : f = r ? function(g, y, p, w, v, _, E, O) {
2409
+ return d ? { nudgeResult: f } = Fi(m, u, t, e, r, o, a, s, c) : f = r ? (function(g, y, p, w, v, _, E, O) {
2410
2410
  let R = y;
2411
2411
  const W = Lt(v, p.isoDate, R.date, "constrain"), K = x(W, p.time), G = x($t(W.year, W.month, W.day + g), p.time), U = ot(w, K, "compatible"), Et = ot(w, G, "compatible"), Q = N.fromEpochNsDiff(Et, U);
2412
2412
  if (Q.sign() !== g) throw new RangeError("time zone returned inconsistent Instants");
@@ -2415,12 +2415,12 @@ function Mr(n, t, e, r, o, i, a, s, c) {
2415
2415
  const kt = it.subtract(Q), fe = kt.sign() !== -g;
2416
2416
  let Ae, Ue;
2417
2417
  return fe ? (Ae = g, it = kt.round(P, O), Ue = it.addToEpochNs(Et)) : (Ae = 0, Ue = it.addToEpochNs(U)), { duration: ce(rt(R.date, R.date.days + Ae), it), nudgedEpochNs: Ue, didExpandCalendarUnit: fe };
2418
- }(m, u, e, r, o, a, s, c) : function(g, y, p, w, v, _) {
2418
+ })(m, u, e, r, o, a, s, c) : (function(g, y, p, w, v, _) {
2419
2419
  let E = g;
2420
2420
  const O = E.time.add24HourDays(E.date.days), R = O.round(l.BigInt(w * Be[v]), _), W = R.subtract(O), { quotient: K } = O.divmod(rr), { quotient: G } = R.divmod(rr), U = Math.sign(G - K) === O.sign(), Et = W.addToEpochNs(y);
2421
2421
  let Q = 0, P = R;
2422
2422
  return oe(p) === "date" && (Q = G, P = R.add(N.fromComponents(24 * -G, 0, 0, 0, 0, 0))), { duration: { date: rt(E.date, Q), time: P }, nudgedEpochNs: Et, didExpandCalendarUnit: U };
2423
- }(u, t, i, a, s, c), u = f.duration, f.didExpandCalendarUnit && s !== "week" && (u = function(g, y, p, w, v, _, E, O) {
2423
+ })(u, t, i, a, s, c), u = f.duration, f.didExpandCalendarUnit && s !== "week" && (u = (function(g, y, p, w, v, _, E, O) {
2424
2424
  let R = y;
2425
2425
  if (O === E) return R;
2426
2426
  const W = En.indexOf(E);
@@ -2449,7 +2449,7 @@ function Mr(n, t, e, r, o, i, a, s, c) {
2449
2449
  R = { date: U, time: N.ZERO };
2450
2450
  }
2451
2451
  return R;
2452
- }(m, u, f.nudgedEpochNs, e, r, o, i, se(s, "day"))), u;
2452
+ })(m, u, f.nudgedEpochNs, e, r, o, i, se(s, "day"))), u;
2453
2453
  }
2454
2454
  function Io(n, t, e, r, o, i) {
2455
2455
  return Wt(i) || r && i === "day" ? Fi(Ii(n) < 0 ? -1 : 1, n, t, e, r, o, 1, i, "trunc").total : Cn(n.time.add24HourDays(n.date.days), i);
@@ -2466,15 +2466,15 @@ function qi(n, t, e, r, o, i, a, s) {
2466
2466
  return a === "nanosecond" && i === 1 ? c : Mr(c, t, zt(e, n), e, r, o, i, a, s);
2467
2467
  }
2468
2468
  function cn(n, t, e, r, o, i) {
2469
- const a = Qe.reduce((g, y) => {
2469
+ const a = Qe.reduce(((g, y) => {
2470
2470
  const p = y[0], w = y[1], v = y[2];
2471
2471
  return e !== "datetime" && v !== e || r.includes(w) || g.push(w, p), g;
2472
- }, []);
2472
+ }), []);
2473
2473
  let s = Ot(t, "largestUnit", e, "auto");
2474
2474
  if (r.includes(s)) throw new RangeError(`largestUnit must be one of ${a.join(", ")}, not ${s}`);
2475
2475
  const c = on(t);
2476
2476
  let u = qt(t, "trunc");
2477
- n === "since" && (u = function(g) {
2477
+ n === "since" && (u = (function(g) {
2478
2478
  switch (g) {
2479
2479
  case "ceil":
2480
2480
  return "floor";
@@ -2487,7 +2487,7 @@ function cn(n, t, e, r, o, i) {
2487
2487
  default:
2488
2488
  return g;
2489
2489
  }
2490
- }(u));
2490
+ })(u));
2491
2491
  const d = Ot(t, "smallestUnit", e, o);
2492
2492
  if (r.includes(d)) throw new RangeError(`smallestUnit must be one of ${a.join(", ")}, not ${d}`);
2493
2493
  const m = se(i, d);
@@ -2633,13 +2633,13 @@ function we(n, t, e) {
2633
2633
  }
2634
2634
  function Vr(n, t, e, r) {
2635
2635
  const o = Be[e] * t;
2636
- return function(i, a, s) {
2636
+ return (function(i, a, s) {
2637
2637
  const c = ne(i), u = ne(a), d = l.divide(c, u), m = l.remainder(c, u), f = fr(s, "positive");
2638
2638
  let g, y;
2639
2639
  l.lessThan(c, Nt) ? (g = l.subtract(d, On), y = d) : (g = d, y = l.add(d, On));
2640
2640
  const p = er(Te(l.multiply(m, Br)), u) * (l.lessThan(c, Nt) ? -1 : 1) + 0, w = l.equal(m, Nt) ? d : gr(g, y, p, Jo(g), f);
2641
2641
  return l.multiply(w, u);
2642
- }(n, l.BigInt(o), r);
2642
+ })(n, l.BigInt(o), r);
2643
2643
  }
2644
2644
  function Xr(n, t, e, r) {
2645
2645
  Wr(n);
@@ -2800,12 +2800,12 @@ function Vi(n, t) {
2800
2800
  let r = t.year;
2801
2801
  const { dayOfWeek: o, dayOfYear: i, daysInYear: a } = e.isoToDate(t, { dayOfWeek: !0, dayOfYear: !0, daysInYear: !0 }), s = e.getFirstDayOfWeek(), c = e.getMinimalDaysInFirstWeek();
2802
2802
  let u = (o + 7 - s) % 7, d = (o - i + 7001 - s) % 7, m = Math.floor((i - 1 + d) / 7);
2803
- if (7 - d >= c && ++m, m == 0) m = function(f, g, y, p) {
2803
+ if (7 - d >= c && ++m, m == 0) m = (function(f, g, y, p) {
2804
2804
  let w = (p - f - y + 1) % 7;
2805
2805
  w < 0 && (w += 7);
2806
2806
  let v = Math.floor((y + w - 1) / 7);
2807
2807
  return 7 - w >= g && ++v, v;
2808
- }(s, c, i + e.isoToDate(e.dateAdd(t, { years: -1 }, "constrain"), { daysInYear: !0 }).daysInYear, o), r--;
2808
+ })(s, c, i + e.isoToDate(e.dateAdd(t, { years: -1 }, "constrain"), { daysInYear: !0 }).daysInYear, o), r--;
2809
2809
  else if (i >= a - 5) {
2810
2810
  let f = (u + a - i) % 7;
2811
2811
  f < 0 && (f += 7), 6 - f >= c && i + 7 - u > a && (m = 1, r++);
@@ -2959,7 +2959,7 @@ class Pe {
2959
2959
  }
2960
2960
  if (this.hasEra && d.eraYear === void 0) throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);
2961
2961
  if (this.hasEra) {
2962
- const f = this.eras.find((g) => d.era === g.genericName);
2962
+ const f = this.eras.find(((g) => d.era === g.genericName));
2963
2963
  f && (d.era = f.code);
2964
2964
  }
2965
2965
  if (this.reviseIntlEra) {
@@ -2971,10 +2971,10 @@ class Pe {
2971
2971
  if (m.year === void 0) throw new RangeError(`Missing year converting ${JSON.stringify(t)}`);
2972
2972
  if (m.month === void 0) throw new RangeError(`Missing month converting ${JSON.stringify(t)}`);
2973
2973
  if (m.day === void 0) throw new RangeError(`Missing day converting ${JSON.stringify(t)}`);
2974
- return e.set(a, m), ["constrain", "reject"].forEach((f) => {
2974
+ return e.set(a, m), ["constrain", "reject"].forEach(((f) => {
2975
2975
  const g = JSON.stringify({ func: "calendarToIsoDate", year: m.year, month: m.month, day: m.day, overflow: f, id: this.id });
2976
2976
  e.set(g, t);
2977
- }), m;
2977
+ })), m;
2978
2978
  }
2979
2979
  validateCalendarDate(t) {
2980
2980
  const { month: e, year: r, day: o, eraYear: i, monthCode: a, monthExtra: s } = t;
@@ -3175,7 +3175,7 @@ class ka extends Pe {
3175
3175
  return this.minMaxMonthLength(t, "max");
3176
3176
  }
3177
3177
  minMaxMonthLength(t, e) {
3178
- const { month: r, year: o } = t, i = this.getMonthCode(o, r), a = Object.entries(this.months).find((c) => c[1].monthCode === i);
3178
+ const { month: r, year: o } = t, i = this.getMonthCode(o, r), a = Object.entries(this.months).find(((c) => c[1].monthCode === i));
3179
3179
  if (a === void 0) throw new RangeError(`unmatched Hebrew month: ${r}`);
3180
3180
  const s = a[1].days;
3181
3181
  return typeof s == "number" ? s : s[e];
@@ -3365,37 +3365,37 @@ class Si extends Pe {
3365
3365
  class Ki extends Pe {
3366
3366
  constructor(t, e) {
3367
3367
  super(), this.hasEra = !0, this.calendarType = "solar", this.id = t;
3368
- const { eras: r, anchorEra: o } = function(i) {
3368
+ const { eras: r, anchorEra: o } = (function(i) {
3369
3369
  let a, s = i;
3370
3370
  if (s.length === 0) throw new RangeError("Invalid era data: eras are required");
3371
3371
  if (s.length === 1 && s[0].reverseOf) throw new RangeError("Invalid era data: anchor era cannot count years backwards");
3372
3372
  if (s.length === 1 && !s[0].code) throw new RangeError("Invalid era data: at least one named era is required");
3373
- if (s.filter((u) => u.reverseOf != null).length > 1) throw new RangeError("Invalid era data: only one era can count years backwards");
3374
- s.forEach((u) => {
3373
+ if (s.filter(((u) => u.reverseOf != null)).length > 1) throw new RangeError("Invalid era data: only one era can count years backwards");
3374
+ s.forEach(((u) => {
3375
3375
  if (u.isAnchor || !u.anchorEpoch && !u.reverseOf) {
3376
3376
  if (a) throw new RangeError("Invalid era data: cannot have multiple anchor eras");
3377
3377
  a = u, u.anchorEpoch = { year: u.hasYearZero ? 0 : 1 };
3378
3378
  } else if (!u.code) throw new RangeError("If era name is blank, it must be the anchor era");
3379
- }), s = s.filter((u) => u.code), s.forEach((u) => {
3379
+ })), s = s.filter(((u) => u.code)), s.forEach(((u) => {
3380
3380
  const { reverseOf: d } = u;
3381
3381
  if (d) {
3382
- const m = s.find((f) => f.code === d);
3382
+ const m = s.find(((f) => f.code === d));
3383
3383
  if (m === void 0) throw new RangeError(`Invalid era data: unmatched reverseOf era: ${d}`);
3384
3384
  u.reverseOf = m, u.anchorEpoch = m.anchorEpoch, u.isoEpoch = m.isoEpoch;
3385
3385
  }
3386
3386
  u.anchorEpoch.month === void 0 && (u.anchorEpoch.month = 1), u.anchorEpoch.day === void 0 && (u.anchorEpoch.day = 1);
3387
- }), s.sort((u, d) => {
3387
+ })), s.sort(((u, d) => {
3388
3388
  if (u.reverseOf) return 1;
3389
3389
  if (d.reverseOf) return -1;
3390
3390
  if (!u.isoEpoch || !d.isoEpoch) throw new RangeError("Invalid era data: missing ISO epoch");
3391
3391
  return d.isoEpoch.year - u.isoEpoch.year;
3392
- });
3392
+ }));
3393
3393
  const c = s[s.length - 1].reverseOf;
3394
3394
  if (c && c !== s[s.length - 2]) throw new RangeError("Invalid era data: invalid reverse-sign era");
3395
- return s.forEach((u, d) => {
3395
+ return s.forEach(((u, d) => {
3396
3396
  u.genericName = "era" + (s.length - 1 - d);
3397
- }), { eras: s, anchorEra: a || s[0] };
3398
- }(e);
3397
+ })), { eras: s, anchorEra: a || s[0] };
3398
+ })(e);
3399
3399
  this.anchorEra = o, this.eras = r;
3400
3400
  }
3401
3401
  inLeapYear(t) {
@@ -3424,7 +3424,7 @@ class Ki extends Pe {
3424
3424
  }
3425
3425
  }, r = (s) => {
3426
3426
  let c;
3427
- const u = { ...t, year: s }, d = this.eras.find((m, f) => {
3427
+ const u = { ...t, year: s }, d = this.eras.find(((m, f) => {
3428
3428
  if (f === this.eras.length - 1) {
3429
3429
  if (m.reverseOf) {
3430
3430
  if (s > 0) throw new RangeError(`Signed year ${s} is invalid for era ${m.code}`);
@@ -3433,7 +3433,7 @@ class Ki extends Pe {
3433
3433
  return c = s - m.anchorEpoch.year + (m.hasYearZero ? 0 : 1), !0;
3434
3434
  }
3435
3435
  return this.compareCalendarDates(u, m.anchorEpoch) >= 0 && (c = s - m.anchorEpoch.year + (m.hasYearZero ? 0 : 1), !0);
3436
- });
3436
+ }));
3437
3437
  if (!d) throw new RangeError(`Year ${s} was not matched by any era`);
3438
3438
  return { eraYear: c, era: d.code, eraNames: d.names };
3439
3439
  };
@@ -3445,7 +3445,7 @@ class Ki extends Pe {
3445
3445
  if (i == null) throw new RangeError("Either year or eraYear and era are required");
3446
3446
  {
3447
3447
  if (a === void 0) throw new RangeError("era and eraYear must be provided together");
3448
- const s = this.eras.find(({ code: c, names: u = [] }) => c === a || u.includes(a));
3448
+ const s = this.eras.find((({ code: c, names: u = [] }) => c === a || u.includes(a)));
3449
3449
  if (!s) throw new RangeError(`Era ${a} (ISO year ${i}) was not matched by any era`);
3450
3450
  o = s.reverseOf ? s.anchorEpoch.year - i : i + s.anchorEpoch.year - (s.hasYearZero ? 0 : 1), e("year", o), { eraYear: i, era: a } = r(o);
3451
3451
  }
@@ -3536,7 +3536,7 @@ class Ga extends lo {
3536
3536
  }
3537
3537
  reviseIntlEra(t, e) {
3538
3538
  const { era: r, eraYear: o } = t, { year: i } = e;
3539
- return this.eras.find((a) => a.code === r) ? { era: r, eraYear: o } : i < 1 ? { era: "japanese-inverse", eraYear: 1 - i } : { era: "japanese", eraYear: i };
3539
+ return this.eras.find(((a) => a.code === r)) ? { era: r, eraYear: o } : i < 1 ? { era: "japanese-inverse", eraYear: 1 - i } : { era: "japanese", eraYear: i };
3540
3540
  }
3541
3541
  }
3542
3542
  class Bi extends Pe {
@@ -3570,7 +3570,7 @@ class Bi extends Pe {
3570
3570
  const i = this.getFormatter(), a = (w, v) => {
3571
3571
  const _ = Xi({ isoYear: w, isoMonth: 2, isoDay: 1 }), E = new Date(_);
3572
3572
  E.setUTCDate(v + 1);
3573
- const O = i.formatToParts(E), R = O.find((U) => U.type === "month").value, W = +O.find((U) => U.type === "day").value, K = O.find((U) => U.type === "relatedYear");
3573
+ const O = i.formatToParts(E), R = O.find(((U) => U.type === "month")).value, W = +O.find(((U) => U.type === "day")).value, K = O.find(((U) => U.type === "relatedYear"));
3574
3574
  let G;
3575
3575
  if (K === void 0) throw new RangeError(`Intl.DateTimeFormat.formatToParts lacks relatedYear in ${this.id} calendar. Try Node 14+ or modern browsers.`);
3576
3576
  return G = +K.value, { calendarMonthString: R, calendarDay: W, calendarYearToVerify: G };
@@ -3599,7 +3599,7 @@ class Bi extends Pe {
3599
3599
  }
3600
3600
  if (this.validateCalendarDate(t), a === void 0) {
3601
3601
  const d = this.getMonthList(i, e);
3602
- let m = u.replace(/^M|L$/g, (g) => g === "L" ? "bis" : "");
3602
+ let m = u.replace(/^M|L$/g, ((g) => g === "L" ? "bis" : ""));
3603
3603
  m[0] === "0" && (m = m.slice(1));
3604
3604
  let f = d[m];
3605
3605
  if (a = f && f.monthIndex, a === void 0 && u.endsWith("L") && u != "M13L" && r === "constrain") {
@@ -3610,12 +3610,12 @@ class Bi extends Pe {
3610
3610
  } else if (u === void 0) {
3611
3611
  const d = this.getMonthList(i, e), m = Object.entries(d), f = m.length;
3612
3612
  r === "reject" ? (S(a, 1, f), S(c, 1, this.maximumMonthLength())) : (a = pt(a, 1, f), c = pt(c, 1, this.maximumMonthLength()));
3613
- const g = m.find((y) => y[1].monthIndex === a);
3613
+ const g = m.find(((y) => y[1].monthIndex === a));
3614
3614
  if (g === void 0) throw new RangeError(`Invalid month ${a} in Chinese year ${i}`);
3615
3615
  u = Kt(+g[0].replace("bis", ""), g[0].indexOf("bis") !== -1);
3616
3616
  } else {
3617
3617
  const d = this.getMonthList(i, e);
3618
- let m = u.replace(/^M|L$/g, (g) => g === "L" ? "bis" : "");
3618
+ let m = u.replace(/^M|L$/g, ((g) => g === "L" ? "bis" : ""));
3619
3619
  m[0] === "0" && (m = m.slice(1));
3620
3620
  const f = d[m];
3621
3621
  if (!f) throw new RangeError(`Unmatched monthCode ${u} in Chinese year ${i}`);
@@ -3712,18 +3712,18 @@ for (const n of [ka, Pa, Za, za, Fa, Va, Xa, qa, Aa, Ha, Wa, Ga, Ya, Na, La, xa,
3712
3712
  const t = new n();
3713
3713
  Sn[t.id] = new Sa(t);
3714
3714
  }
3715
- Pr("calendarImpl", function(n) {
3715
+ Pr("calendarImpl", (function(n) {
3716
3716
  return Sn[n];
3717
- });
3717
+ }));
3718
3718
  const jn = Intl.DateTimeFormat;
3719
3719
  function ze(n, t) {
3720
3720
  let e = h(n, t);
3721
- return typeof e == "function" && (e = new jn(h(n, ui), e(h(n, Lr))), function(r, o, i) {
3721
+ return typeof e == "function" && (e = new jn(h(n, ui), e(h(n, Lr))), (function(r, o, i) {
3722
3722
  const a = mr(r);
3723
3723
  if (a === void 0) throw new TypeError("Missing slots for the given container");
3724
3724
  if (a[o] === void 0) throw new TypeError(`tried to reset ${o} which was not set`);
3725
3725
  a[o] = i;
3726
- }(n, t, e)), e;
3726
+ })(n, t, e)), e;
3727
3727
  }
3728
3728
  function dn(n) {
3729
3729
  return Dt(n, je);
@@ -3735,10 +3735,10 @@ class In {
3735
3735
  let s;
3736
3736
  if (a) {
3737
3737
  const m = ["localeMatcher", "calendar", "numberingSystem", "hour12", "hourCycle", "timeZone", "weekday", "era", "year", "month", "day", "dayPeriod", "hour", "minute", "second", "fractionalSecondDigits", "timeZoneName", "formatMatcher", "dateStyle", "timeStyle"];
3738
- s = function(g) {
3738
+ s = (function(g) {
3739
3739
  if (g == null) throw new TypeError(`Expected object not ${g}`);
3740
3740
  return Object(g);
3741
- }(i);
3741
+ })(i);
3742
3742
  const f = /* @__PURE__ */ Object.create(null);
3743
3743
  for (let g = 0; g < m.length; g++) {
3744
3744
  const y = m[g];
@@ -4404,20 +4404,20 @@ class nn {
4404
4404
  const i = Ot(e, "unit", "datetime", he);
4405
4405
  if (o) {
4406
4406
  const s = He(this), c = h(o, j), u = h(o, D), d = h(o, T);
4407
- return function(m, f, g, y, p) {
4407
+ return (function(m, f, g, y, p) {
4408
4408
  return oe(p) === "time" ? Cn(N.fromEpochNsDiff(f, m), p) : Io(zi(m, f, g, y, p), f, zt(g, m), g, y, p);
4409
- }(d, vn(d, c, u, s), c, u, i);
4409
+ })(d, vn(d, c, u, s), c, u, i);
4410
4410
  }
4411
4411
  if (r) {
4412
4412
  const s = Xt(this);
4413
4413
  let c = Je({ hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0 }, s.time);
4414
4414
  const u = h(r, C), d = h(r, D), m = Lt(d, u, rt(s.date, c.deltaDays), "constrain");
4415
- return function(f, g, y, p) {
4415
+ return (function(f, g, y, p) {
4416
4416
  if (tn(f, g) == 0) return 0;
4417
4417
  Ye(f), Ye(g);
4418
4418
  const w = Ui(f, g, y, p);
4419
4419
  return p === "nanosecond" ? l.toNumber(w.time.totalNs) : Io(w, tt(g), f, null, y, p);
4420
- }(x(u, { deltaDays: 0, hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0 }), x(m, c), d, i);
4420
+ })(x(u, { deltaDays: 0, hour: 0, minute: 0, second: 0, millisecond: 0, microsecond: 0, nanosecond: 0 }), x(m, c), d, i);
4421
4421
  }
4422
4422
  const a = re(this);
4423
4423
  if (Wt(a)) throw new RangeError(`a starting point is required for ${a}s total`);
@@ -4857,29 +4857,29 @@ class po {
4857
4857
  }
4858
4858
  toString(t = void 0) {
4859
4859
  b(this, Y);
4860
- const e = M(t), r = zn(e), o = Fn(e), i = function(f) {
4860
+ const e = M(t), r = zn(e), o = Fn(e), i = (function(f) {
4861
4861
  return ue(f, "offset", ["auto", "never"], "auto");
4862
- }(e), a = qt(e, "trunc"), s = Ot(e, "smallestUnit", "time", void 0);
4862
+ })(e), a = qt(e, "trunc"), s = Ot(e, "smallestUnit", "time", void 0);
4863
4863
  if (s === "hour") throw new RangeError('smallestUnit must be a time unit other than "hour"');
4864
- const c = function(f) {
4864
+ const c = (function(f) {
4865
4865
  return ue(f, "timeZoneName", ["auto", "never", "critical"], "auto");
4866
- }(e), { precision: u, unit: d, increment: m } = Zn(s, o);
4866
+ })(e), { precision: u, unit: d, increment: m } = Zn(s, o);
4867
4867
  return Lo(this, u, r, c, i, { unit: d, increment: m, roundingMode: a });
4868
4868
  }
4869
4869
  toLocaleString(t = void 0, e = void 0) {
4870
4870
  b(this, Y);
4871
4871
  const r = M(e), o = /* @__PURE__ */ Object.create(null);
4872
- if (function(c, u, d, m) {
4872
+ if ((function(c, u, d, m) {
4873
4873
  if (u == null) return;
4874
4874
  const f = Reflect.ownKeys(u);
4875
4875
  for (let g = 0; g < f.length; g++) {
4876
4876
  const y = f[g];
4877
- if (!d.some((p) => Object.is(p, y)) && Object.prototype.propertyIsEnumerable.call(u, y)) {
4877
+ if (!d.some(((p) => Object.is(p, y))) && Object.prototype.propertyIsEnumerable.call(u, y)) {
4878
4878
  const p = u[y];
4879
4879
  c[y] = p;
4880
4880
  }
4881
4881
  }
4882
- }(o, r, ["timeZone"]), r.timeZone !== void 0) throw new TypeError("ZonedDateTime toLocaleString does not accept a timeZone option");
4882
+ })(o, r, ["timeZone"]), r.timeZone !== void 0) throw new TypeError("ZonedDateTime toLocaleString does not accept a timeZone option");
4883
4883
  if (o.year === void 0 && o.month === void 0 && o.day === void 0 && o.era === void 0 && o.weekday === void 0 && o.dateStyle === void 0 && o.hour === void 0 && o.minute === void 0 && o.second === void 0 && o.fractionalSecondDigits === void 0 && o.timeStyle === void 0 && o.dayPeriod === void 0 && o.timeZoneName === void 0 && (o.timeZoneName = "short"), o.timeZone = h(this, j), xo(o.timeZone)) throw new RangeError("toLocaleString does not currently support offset time zones");
4884
4884
  const i = new At(t, o), a = us.call(i).calendar, s = h(this, D);
4885
4885
  if (s !== "iso8601" && a !== "iso8601" && !Qt(a, s)) throw new RangeError(`cannot format ZonedDateTime with calendar ${s} in locale with calendar ${a}`);