randmarcomps 1.285.0 → 1.286.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,27 +76,27 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
76
76
  He(null), tt(null);
77
77
  return;
78
78
  }
79
- let Ft = Je.selectionStart, Ke = Je.selectionEnd, it = Je.selectionDirection, et = Je.maxLength, dt = Je.value, pt = je.current.prev, ft = -1, yt = -1, zt;
79
+ let Ft = Je.selectionStart, Ke = Je.selectionEnd, it = Je.selectionDirection, et = Je.maxLength, dt = Je.value, pt = je.current.prev, ft = -1, yt = -1, Ht;
80
80
  if (dt.length !== 0 && Ft !== null && Ke !== null) {
81
- let ct = Ft === Ke, qt = Ft === dt.length && dt.length < et;
82
- if (ct && !qt) {
81
+ let ct = Ft === Ke, Wt = Ft === dt.length && dt.length < et;
82
+ if (ct && !Wt) {
83
83
  let Kt = Ft;
84
- if (Kt === 0) ft = 0, yt = 1, zt = "forward";
85
- else if (Kt === et) ft = Kt - 1, yt = Kt, zt = "backward";
84
+ if (Kt === 0) ft = 0, yt = 1, Ht = "forward";
85
+ else if (Kt === et) ft = Kt - 1, yt = Kt, Ht = "backward";
86
86
  else if (et > 1 && dt.length > 1) {
87
- let Xt = 0;
87
+ let Jt = 0;
88
88
  if (pt[0] !== null && pt[1] !== null) {
89
- zt = Kt < pt[1] ? "backward" : "forward";
90
- let rr = pt[0] === pt[1] && pt[0] < et;
91
- zt === "backward" && !rr && (Xt = -1);
89
+ Ht = Kt < pt[1] ? "backward" : "forward";
90
+ let er = pt[0] === pt[1] && pt[0] < et;
91
+ Ht === "backward" && !er && (Jt = -1);
92
92
  }
93
- ft = Xt + Kt, yt = Xt + Kt + 1;
93
+ ft = Jt + Kt, yt = Jt + Kt + 1;
94
94
  }
95
95
  }
96
- ft !== -1 && yt !== -1 && ft !== yt && $e.current.setSelectionRange(ft, yt, zt);
96
+ ft !== -1 && yt !== -1 && ft !== yt && $e.current.setSelectionRange(ft, yt, Ht);
97
97
  }
98
- let Zt = ft !== -1 ? ft : Ft, Wt = yt !== -1 ? yt : Ke, cr = zt ?? it;
99
- He(Zt), tt(Wt), je.current.prev = [Zt, Wt, cr];
98
+ let Zt = ft !== -1 ? ft : Ft, zt = yt !== -1 ? yt : Ke, lr = Ht ?? it;
99
+ He(Zt), tt(zt), je.current.prev = [Zt, zt, lr];
100
100
  }
101
101
  if (document.addEventListener("selectionchange", $t, { capture: !0 }), $t(), document.activeElement === Je && qe(!0), !document.getElementById("input-otp-style")) {
102
102
  let Ft = document.createElement("style");
@@ -109,9 +109,9 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
109
109
  mt && mt.style.setProperty("--root-height", `${Je.clientHeight}px`);
110
110
  };
111
111
  Dt();
112
- let Ut = new ResizeObserver(Dt);
113
- return Ut.observe(Je), () => {
114
- document.removeEventListener("selectionchange", $t, { capture: !0 }), Ut.disconnect();
112
+ let qt = new ResizeObserver(Dt);
113
+ return qt.observe(Je), () => {
114
+ document.removeEventListener("selectionchange", $t, { capture: !0 }), qt.disconnect();
115
115
  };
116
116
  }, []);
117
117
  let [ze, Oe] = React.useState(!1), [Le, qe] = React.useState(!1), [Ge, He] = React.useState(null), [Ze, tt] = React.useState(null);
@@ -119,8 +119,8 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
119
119
  ht(() => {
120
120
  var Je, mt, $t, Dt;
121
121
  (Je = $e.current) == null || Je.dispatchEvent(new Event("input"));
122
- let Ut = (mt = $e.current) == null ? void 0 : mt.selectionStart, Ft = ($t = $e.current) == null ? void 0 : $t.selectionEnd, Ke = (Dt = $e.current) == null ? void 0 : Dt.selectionDirection;
123
- Ut !== null && Ft !== null && (He(Ut), tt(Ft), je.current.prev = [Ut, Ft, Ke]);
122
+ let qt = (mt = $e.current) == null ? void 0 : mt.selectionStart, Ft = ($t = $e.current) == null ? void 0 : $t.selectionEnd, Ke = (Dt = $e.current) == null ? void 0 : Dt.selectionDirection;
123
+ qt !== null && Ft !== null && (He(qt), tt(Ft), je.current.prev = [qt, Ft, Ke]);
124
124
  });
125
125
  }, [oe, Le]), React.useEffect(() => {
126
126
  ge !== void 0 && oe !== ge && ge.length < d && oe.length === d && (_ == null || _(oe));
@@ -143,7 +143,7 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
143
143
  var mt, $t;
144
144
  let Dt = $e.current;
145
145
  if (!E && (!Ve.current.isIOS || !Je.clipboardData || !Dt)) return;
146
- let Ut = Je.clipboardData.getData("text/plain"), Ft = E ? E(Ut) : Ut;
146
+ let qt = Je.clipboardData.getData("text/plain"), Ft = E ? E(qt) : qt;
147
147
  Je.preventDefault();
148
148
  let Ke = (mt = $e.current) == null ? void 0 : mt.selectionStart, it = ($t = $e.current) == null ? void 0 : $t.selectionEnd, et = (Ke !== it ? oe.slice(0, Ke) + Ft + oe.slice(it) : oe.slice(0, Ke) + Ft + oe.slice(Ke)).slice(0, d);
149
149
  if (et.length > 0 && Ae && !Ae.test(et)) return;
@@ -167,8 +167,8 @@ var jt = React.createContext({}), Lt = React.forwardRef((t, e) => {
167
167
  qe(!1), (mt = O.onBlur) == null || mt.call(O, Je);
168
168
  } })), [rt, Xe, ot, S, at, d, Ze, Ge, O, Ae == null ? void 0 : Ae.source, oe]), Ue = React.useMemo(() => ({ slots: Array.from({ length: d }).map((Je, mt) => {
169
169
  var $t;
170
- let Dt = Le && Ge !== null && Ze !== null && (Ge === Ze && mt === Ge || mt >= Ge && mt < Ze), Ut = oe[mt] !== void 0 ? oe[mt] : null, Ft = oe[0] !== void 0 ? null : ($t = b == null ? void 0 : b[mt]) != null ? $t : null;
171
- return { char: Ut, placeholderChar: Ft, isActive: Dt, hasFakeCaret: Dt && Ut === null };
170
+ let Dt = Le && Ge !== null && Ze !== null && (Ge === Ze && mt === Ge || mt >= Ge && mt < Ze), qt = oe[mt] !== void 0 ? oe[mt] : null, Ft = oe[0] !== void 0 ? null : ($t = b == null ? void 0 : b[mt]) != null ? $t : null;
171
+ return { char: qt, placeholderChar: Ft, isActive: Dt, hasFakeCaret: Dt && qt === null };
172
172
  }), isFocused: Le, isHovering: !O.disabled && ze }), [Le, ze, d, Ze, Ge, O.disabled, oe]), Ct = React.useMemo(() => I ? I(Ue) : React.createElement(jt.Provider, { value: Ue }, M), [M, Ue, I]);
173
173
  return React.createElement(React.Fragment, null, A !== null && React.createElement("noscript", null, React.createElement("style", null, A)), React.createElement("div", { ref: Ne, "data-input-otp-container": !0, style: Qe, className: R }, Ct, React.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, st)));
174
174
  });
@@ -7259,8 +7259,8 @@ var CONTENT_NAME$7 = "PopperContent", [PopperContentProvider, useContentContext]
7259
7259
  size({
7260
7260
  ...$e,
7261
7261
  apply: ({ elements: Ct, rects: Je, availableWidth: mt, availableHeight: $t }) => {
7262
- const { width: Dt, height: Ut } = Je.reference, Ft = Ct.floating.style;
7263
- Ft.setProperty("--radix-popper-available-width", `${mt}px`), Ft.setProperty("--radix-popper-available-height", `${$t}px`), Ft.setProperty("--radix-popper-anchor-width", `${Dt}px`), Ft.setProperty("--radix-popper-anchor-height", `${Ut}px`);
7262
+ const { width: Dt, height: qt } = Je.reference, Ft = Ct.floating.style;
7263
+ Ft.setProperty("--radix-popper-available-width", `${mt}px`), Ft.setProperty("--radix-popper-available-height", `${$t}px`), Ft.setProperty("--radix-popper-anchor-width", `${Dt}px`), Ft.setProperty("--radix-popper-anchor-height", `${qt}px`);
7264
7264
  }
7265
7265
  }),
7266
7266
  Q && arrow$2({ element: Q, padding: g }),
@@ -12273,21 +12273,21 @@ function buildThunks({
12273
12273
  "argSchema",
12274
12274
  {}
12275
12275
  // we don't have a meta yet, so we can't pass it
12276
- )), rt ? st = rt() : Le.query ? st = await e(Le.query(at), Ye, Ue) : st = await Le.queryFn(at, Ye, Ue, (Ut) => e(Ut, Ye, Ue)), typeof process < "u" && process.env.NODE_ENV === "development") {
12277
- const Ut = Le.query ? "`baseQuery`" : "`queryFn`";
12276
+ )), rt ? st = rt() : Le.query ? st = await e(Le.query(at), Ye, Ue) : st = await Le.queryFn(at, Ye, Ue, (qt) => e(qt, Ye, Ue)), typeof process < "u" && process.env.NODE_ENV === "development") {
12277
+ const qt = Le.query ? "`baseQuery`" : "`queryFn`";
12278
12278
  let Ft;
12279
12279
  if (!st)
12280
- Ft = `${Ut} did not return anything.`;
12280
+ Ft = `${qt} did not return anything.`;
12281
12281
  else if (typeof st != "object")
12282
- Ft = `${Ut} did not return an object.`;
12282
+ Ft = `${qt} did not return an object.`;
12283
12283
  else if (st.error && st.data)
12284
- Ft = `${Ut} returned an object containing both \`error\` and \`result\`.`;
12284
+ Ft = `${qt} returned an object containing both \`error\` and \`result\`.`;
12285
12285
  else if (st.error === void 0 && st.data === void 0)
12286
- Ft = `${Ut} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;
12286
+ Ft = `${qt} returned an object containing neither a valid \`error\` and \`result\`. At least one of them should not be \`undefined\``;
12287
12287
  else
12288
12288
  for (const Ke of Object.keys(st))
12289
12289
  if (Ke !== "error" && Ke !== "data" && Ke !== "meta") {
12290
- Ft = `The object returned by ${Ut} has the unknown property ${Ke}.`;
12290
+ Ft = `The object returned by ${qt} has the unknown property ${Ke}.`;
12291
12291
  break;
12292
12292
  }
12293
12293
  Ft && console.error(`Error encountered handling the endpoint ${se.endpointName}.
@@ -12323,7 +12323,7 @@ function buildThunks({
12323
12323
  } else {
12324
12324
  const {
12325
12325
  initialPageParam: Dt = at.initialPageParam
12326
- } = se, Ut = (Je == null ? void 0 : Je.pageParams) ?? [], Ft = Ut[0] ?? Dt, Ke = Ut.length;
12326
+ } = se, qt = (Je == null ? void 0 : Je.pageParams) ?? [], Ft = qt[0] ?? Dt, Ke = qt.length;
12327
12327
  Ue = await ot($t, Ft, st), rt && (Ue = {
12328
12328
  data: Ue.data.pages[0]
12329
12329
  });
@@ -24215,9 +24215,9 @@ function formatLocale(t) {
24215
24215
  z.x = F(n, z), z.X = F(o, z), z.c = F(e, z), Q.x = F(n, Q), Q.X = F(o, Q), Q.c = F(e, Q);
24216
24216
  function F(Qe, at) {
24217
24217
  return function(st) {
24218
- var Ue = [], Ct = -1, Je = 0, mt = Qe.length, $t, Dt, Ut;
24218
+ var Ue = [], Ct = -1, Je = 0, mt = Qe.length, $t, Dt, qt;
24219
24219
  for (st instanceof Date || (st = /* @__PURE__ */ new Date(+st)); ++Ct < mt; )
24220
- Qe.charCodeAt(Ct) === 37 && (Ue.push(Qe.slice(Je, Ct)), (Dt = pads[$t = Qe.charAt(++Ct)]) != null ? $t = Qe.charAt(++Ct) : Dt = $t === "e" ? " " : "0", (Ut = at[$t]) && ($t = Ut(st, Dt)), Ue.push($t), Je = Ct + 1);
24220
+ Qe.charCodeAt(Ct) === 37 && (Ue.push(Qe.slice(Je, Ct)), (Dt = pads[$t = Qe.charAt(++Ct)]) != null ? $t = Qe.charAt(++Ct) : Dt = $t === "e" ? " " : "0", (qt = at[$t]) && ($t = qt(st, Dt)), Ue.push($t), Je = Ct + 1);
24221
24221
  return Ue.push(Qe.slice(Je, Ct)), Ue.join("");
24222
24222
  };
24223
24223
  }
@@ -34327,21 +34327,21 @@ var getTooltipContent = function(e, n, o, l) {
34327
34327
  et.axisType,
34328
34328
  "Id on the targeted graphical component "
34329
34329
  ).concat((dt = Le == null || (pt = Le.type) === null || pt === void 0 ? void 0 : pt.displayName) !== null && dt !== void 0 ? dt : "")) : invariant$1());
34330
- var zt = ft[yt];
34331
- return _objectSpread(_objectSpread({}, it), {}, _defineProperty(_defineProperty({}, et.axisType, zt), "".concat(et.axisType, "Ticks"), getTicksOfAxis(zt)));
34330
+ var Ht = ft[yt];
34331
+ return _objectSpread(_objectSpread({}, it), {}, _defineProperty(_defineProperty({}, et.axisType, Ht), "".concat(et.axisType, "Ticks"), getTicksOfAxis(Ht)));
34332
34332
  }, Xe), Qe = ot[je], at = ot["".concat(je, "Ticks")], st = Q && Q[Ye] && Q[Ye].hasStack && getStackedDataOfItem(Le, Q[Ye].stackGroups), Ue = getDisplayName(Le.type).indexOf("Bar") >= 0, Ct = getBandSizeOfAxis(Qe, at), Je = [], mt = ze && getBarSizeList({
34333
34333
  barSize: oe,
34334
34334
  stackGroups: Q,
34335
34335
  totalSize: getCartesianAxisSize(ot, je)
34336
34336
  });
34337
34337
  if (Ue) {
34338
- var $t, Dt, Ut = isNil(tt) ? $e : tt, Ft = ($t = (Dt = getBandSizeOfAxis(Qe, at, !0)) !== null && Dt !== void 0 ? Dt : Ut) !== null && $t !== void 0 ? $t : 0;
34338
+ var $t, Dt, qt = isNil(tt) ? $e : tt, Ft = ($t = (Dt = getBandSizeOfAxis(Qe, at, !0)) !== null && Dt !== void 0 ? Dt : qt) !== null && $t !== void 0 ? $t : 0;
34339
34339
  Je = getBarPosition({
34340
34340
  barGap: se,
34341
34341
  barCategoryGap: Ae,
34342
34342
  bandSize: Ft !== Ct ? Ft : Ct,
34343
34343
  sizeList: mt[rt],
34344
- maxBarSize: Ut
34344
+ maxBarSize: qt
34345
34345
  }), Ft !== Ct && (Je = Je.map(function(it) {
34346
34346
  return _objectSpread(_objectSpread({}, it), {}, {
34347
34347
  position: _objectSpread(_objectSpread({}, it.position), {}, {
@@ -34740,7 +34740,7 @@ var getTooltipContent = function(e, n, o, l) {
34740
34740
  } else {
34741
34741
  var mt, $t = (mt = j.getItemByXY(j.state.activeCoordinate)) !== null && mt !== void 0 ? mt : {
34742
34742
  graphicalItem: Qe
34743
- }, Dt = $t.graphicalItem, Ut = Dt.item, Ft = Ut === void 0 ? F : Ut, Ke = Dt.childIndex, it = _objectSpread(_objectSpread(_objectSpread({}, oe.props), ot), {}, {
34743
+ }, Dt = $t.graphicalItem, qt = Dt.item, Ft = qt === void 0 ? F : qt, Ke = Dt.childIndex, it = _objectSpread(_objectSpread(_objectSpread({}, oe.props), ot), {}, {
34744
34744
  activeIndex: Ke
34745
34745
  });
34746
34746
  return [/* @__PURE__ */ cloneElement(Ft, it), null, null];
@@ -36800,8 +36800,8 @@ var lottie = createCommonjsModule(function(module, exports) {
36800
36800
  function I(Oe, Le, qe, Ge, He, Ze, tt, Ye, rt, Xe, ot, Qe, at, st, Ue, Ct) {
36801
36801
  var Je = this.props;
36802
36802
  if (Oe === 1 && Le === 0 && qe === 0 && Ge === 0 && He === 0 && Ze === 1 && tt === 0 && Ye === 0 && rt === 0 && Xe === 0 && ot === 1 && Qe === 0) return Je[12] = Je[12] * Oe + Je[15] * at, Je[13] = Je[13] * Ze + Je[15] * st, Je[14] = Je[14] * ot + Je[15] * Ue, Je[15] *= Ct, this._identityCalculated = !1, this;
36803
- var mt = Je[0], $t = Je[1], Dt = Je[2], Ut = Je[3], Ft = Je[4], Ke = Je[5], it = Je[6], et = Je[7], dt = Je[8], pt = Je[9], ft = Je[10], yt = Je[11], zt = Je[12], Zt = Je[13], Wt = Je[14], cr = Je[15];
36804
- return Je[0] = mt * Oe + $t * He + Dt * rt + Ut * at, Je[1] = mt * Le + $t * Ze + Dt * Xe + Ut * st, Je[2] = mt * qe + $t * tt + Dt * ot + Ut * Ue, Je[3] = mt * Ge + $t * Ye + Dt * Qe + Ut * Ct, Je[4] = Ft * Oe + Ke * He + it * rt + et * at, Je[5] = Ft * Le + Ke * Ze + it * Xe + et * st, Je[6] = Ft * qe + Ke * tt + it * ot + et * Ue, Je[7] = Ft * Ge + Ke * Ye + it * Qe + et * Ct, Je[8] = dt * Oe + pt * He + ft * rt + yt * at, Je[9] = dt * Le + pt * Ze + ft * Xe + yt * st, Je[10] = dt * qe + pt * tt + ft * ot + yt * Ue, Je[11] = dt * Ge + pt * Ye + ft * Qe + yt * Ct, Je[12] = zt * Oe + Zt * He + Wt * rt + cr * at, Je[13] = zt * Le + Zt * Ze + Wt * Xe + cr * st, Je[14] = zt * qe + Zt * tt + Wt * ot + cr * Ue, Je[15] = zt * Ge + Zt * Ye + Wt * Qe + cr * Ct, this._identityCalculated = !1, this;
36803
+ var mt = Je[0], $t = Je[1], Dt = Je[2], qt = Je[3], Ft = Je[4], Ke = Je[5], it = Je[6], et = Je[7], dt = Je[8], pt = Je[9], ft = Je[10], yt = Je[11], Ht = Je[12], Zt = Je[13], zt = Je[14], lr = Je[15];
36804
+ return Je[0] = mt * Oe + $t * He + Dt * rt + qt * at, Je[1] = mt * Le + $t * Ze + Dt * Xe + qt * st, Je[2] = mt * qe + $t * tt + Dt * ot + qt * Ue, Je[3] = mt * Ge + $t * Ye + Dt * Qe + qt * Ct, Je[4] = Ft * Oe + Ke * He + it * rt + et * at, Je[5] = Ft * Le + Ke * Ze + it * Xe + et * st, Je[6] = Ft * qe + Ke * tt + it * ot + et * Ue, Je[7] = Ft * Ge + Ke * Ye + it * Qe + et * Ct, Je[8] = dt * Oe + pt * He + ft * rt + yt * at, Je[9] = dt * Le + pt * Ze + ft * Xe + yt * st, Je[10] = dt * qe + pt * tt + ft * ot + yt * Ue, Je[11] = dt * Ge + pt * Ye + ft * Qe + yt * Ct, Je[12] = Ht * Oe + Zt * He + zt * rt + lr * at, Je[13] = Ht * Le + Zt * Ze + zt * Xe + lr * st, Je[14] = Ht * qe + Zt * tt + zt * ot + lr * Ue, Je[15] = Ht * Ge + Zt * Ye + zt * Qe + lr * Ct, this._identityCalculated = !1, this;
36805
36805
  }
36806
36806
  function M(Oe) {
36807
36807
  var Le = Oe.props;
@@ -38531,7 +38531,7 @@ var lottie = createCommonjsModule(function(module, exports) {
38531
38531
  d = se.length, n = 0, o = 0;
38532
38532
  var Ne, Ve, je, ze, Oe, Le = 1.2 * t.finalSize * 0.714, qe = !0;
38533
38533
  je = F.length;
38534
- var Ge, He, Ze, tt, Ye, rt, Xe, ot, Qe, at, st, Ue, Ct = -1, Je = g, mt = E, $t = C, Dt = -1, Ut = "", Ft = this.defaultPropsArray;
38534
+ var Ge, He, Ze, tt, Ye, rt, Xe, ot, Qe, at, st, Ue, Ct = -1, Je = g, mt = E, $t = C, Dt = -1, qt = "", Ft = this.defaultPropsArray;
38535
38535
  if (t.j === 2 || t.j === 1) {
38536
38536
  var Ke = 0, it = 0, et = t.j === 2 ? -0.5 : -1, dt = 0, pt = !0;
38537
38537
  for (l = 0; l < d; l += 1) if (se[l].n) {
@@ -38544,7 +38544,7 @@ var lottie = createCommonjsModule(function(module, exports) {
38544
38544
  for (Ke && (Ke += it); dt < l; ) se[dt].animatorJustifyOffset = Ke, dt += 1;
38545
38545
  }
38546
38546
  for (l = 0; l < d; l += 1) {
38547
- if (ne.reset(), tt = 1, se[l].n) n = 0, o += t.yOffset, o += qe ? 1 : 0, g = Je, qe = !1, this._hasMaskedPath && (C = $t, R = (A = I[E = mt].points)[C - 1], M = (b = A[C]).partialLength, S = 0), Ut = "", st = "", Qe = "", Ue = "", Ft = this.defaultPropsArray;
38547
+ if (ne.reset(), tt = 1, se[l].n) n = 0, o += t.yOffset, o += qe ? 1 : 0, g = Je, qe = !1, this._hasMaskedPath && (C = $t, R = (A = I[E = mt].points)[C - 1], M = (b = A[C]).partialLength, S = 0), qt = "", st = "", Qe = "", Ue = "", Ft = this.defaultPropsArray;
38548
38548
  else {
38549
38549
  if (this._hasMaskedPath) {
38550
38550
  if (Dt !== se[l].line) {
@@ -38591,9 +38591,9 @@ var lottie = createCommonjsModule(function(module, exports) {
38591
38591
  }
38592
38592
  ne.translate(0, -t.ls), ne.translate(Ge, 0, 0), ne.translate(j[0] * se[l].an * 5e-3, j[1] * Le * 0.01, 0), n += se[l].l + 1e-3 * t.tr * t.finalSize;
38593
38593
  }
38594
- oe === "html" ? Ut = ne.toCSS() : oe === "svg" ? Ut = ne.to2dCSS() : Ft = [ne.props[0], ne.props[1], ne.props[2], ne.props[3], ne.props[4], ne.props[5], ne.props[6], ne.props[7], ne.props[8], ne.props[9], ne.props[10], ne.props[11], ne.props[12], ne.props[13], ne.props[14], ne.props[15]], Ue = tt;
38594
+ oe === "html" ? qt = ne.toCSS() : oe === "svg" ? qt = ne.to2dCSS() : Ft = [ne.props[0], ne.props[1], ne.props[2], ne.props[3], ne.props[4], ne.props[5], ne.props[6], ne.props[7], ne.props[8], ne.props[9], ne.props[10], ne.props[11], ne.props[12], ne.props[13], ne.props[14], ne.props[15]], Ue = tt;
38595
38595
  }
38596
- ge <= l ? (ze = new LetterProps(Ue, Qe, at, st, Ut, Ft), this.renderedLetters.push(ze), ge += 1, this.lettersChangedFlag = !0) : (ze = this.renderedLetters[l], this.lettersChangedFlag = ze.update(Ue, Qe, at, st, Ut, Ft) || this.lettersChangedFlag);
38596
+ ge <= l ? (ze = new LetterProps(Ue, Qe, at, st, qt, Ft), this.renderedLetters.push(ze), ge += 1, this.lettersChangedFlag = !0) : (ze = this.renderedLetters[l], this.lettersChangedFlag = ze.update(Ue, Qe, at, st, qt, Ft) || this.lettersChangedFlag);
38597
38597
  }
38598
38598
  }
38599
38599
  }, TextAnimatorProperty.prototype.getValue = function() {
@@ -59907,28 +59907,28 @@ function createDOMPurify() {
59907
59907
  enumerable: !0,
59908
59908
  value: !1
59909
59909
  }
59910
- })), rt = null, Xe = null, ot = !0, Qe = !0, at = !1, st = !0, Ue = !1, Ct = !0, Je = !1, mt = !1, $t = !1, Dt = !1, Ut = !1, Ft = !1, Ke = !0, it = !1;
59910
+ })), rt = null, Xe = null, ot = !0, Qe = !0, at = !1, st = !0, Ue = !1, Ct = !0, Je = !1, mt = !1, $t = !1, Dt = !1, qt = !1, Ft = !1, Ke = !0, it = !1;
59911
59911
  const et = "user-content-";
59912
59912
  let dt = !0, pt = !1, ft = {}, yt = null;
59913
- const zt = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
59913
+ const Ht = addToSet({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
59914
59914
  let Zt = null;
59915
- const Wt = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
59916
- let cr = null;
59917
- const ct = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), qt = "http://www.w3.org/1998/Math/MathML", Kt = "http://www.w3.org/2000/svg", Xt = "http://www.w3.org/1999/xhtml";
59918
- let rr = Xt, lr = !1, wr = null;
59919
- const Fr = addToSet({}, [qt, Kt, Xt], stringToString);
59920
- let Rr = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), gr = addToSet({}, ["annotation-xml"]);
59915
+ const zt = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
59916
+ let lr = null;
59917
+ const ct = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Wt = "http://www.w3.org/1998/Math/MathML", Kt = "http://www.w3.org/2000/svg", Jt = "http://www.w3.org/1999/xhtml";
59918
+ let er = Jt, pr = !1, Ir = null;
59919
+ const Fr = addToSet({}, [Wt, Kt, Jt], stringToString);
59920
+ let Er = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), gr = addToSet({}, ["annotation-xml"]);
59921
59921
  const vr = addToSet({}, ["title", "style", "font", "a", "script"]);
59922
59922
  let ar = null;
59923
- const Nr = ["application/xhtml+xml", "text/html"], Jt = "text/html";
59924
- let dr = null, Er = null;
59923
+ const Nr = ["application/xhtml+xml", "text/html"], Xt = "text/html";
59924
+ let ur = null, wr = null;
59925
59925
  const hn = n.createElement("form"), Or = function(nt) {
59926
59926
  return nt instanceof RegExp || nt instanceof Function;
59927
59927
  }, Pr = function() {
59928
59928
  let nt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
59929
- if (!(Er && Er === nt)) {
59929
+ if (!(wr && wr === nt)) {
59930
59930
  if ((!nt || typeof nt != "object") && (nt = {}), nt = clone(nt), ar = // eslint-disable-next-line unicorn/prefer-includes
59931
- Nr.indexOf(nt.PARSER_MEDIA_TYPE) === -1 ? Jt : nt.PARSER_MEDIA_TYPE, dr = ar === "application/xhtml+xml" ? stringToString : stringToLowerCase, Ge = objectHasOwnProperty(nt, "ALLOWED_TAGS") ? addToSet({}, nt.ALLOWED_TAGS, dr) : He, Ze = objectHasOwnProperty(nt, "ALLOWED_ATTR") ? addToSet({}, nt.ALLOWED_ATTR, dr) : tt, wr = objectHasOwnProperty(nt, "ALLOWED_NAMESPACES") ? addToSet({}, nt.ALLOWED_NAMESPACES, stringToString) : Fr, cr = objectHasOwnProperty(nt, "ADD_URI_SAFE_ATTR") ? addToSet(clone(ct), nt.ADD_URI_SAFE_ATTR, dr) : ct, Zt = objectHasOwnProperty(nt, "ADD_DATA_URI_TAGS") ? addToSet(clone(Wt), nt.ADD_DATA_URI_TAGS, dr) : Wt, yt = objectHasOwnProperty(nt, "FORBID_CONTENTS") ? addToSet({}, nt.FORBID_CONTENTS, dr) : zt, rt = objectHasOwnProperty(nt, "FORBID_TAGS") ? addToSet({}, nt.FORBID_TAGS, dr) : clone({}), Xe = objectHasOwnProperty(nt, "FORBID_ATTR") ? addToSet({}, nt.FORBID_ATTR, dr) : clone({}), ft = objectHasOwnProperty(nt, "USE_PROFILES") ? nt.USE_PROFILES : !1, ot = nt.ALLOW_ARIA_ATTR !== !1, Qe = nt.ALLOW_DATA_ATTR !== !1, at = nt.ALLOW_UNKNOWN_PROTOCOLS || !1, st = nt.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ue = nt.SAFE_FOR_TEMPLATES || !1, Ct = nt.SAFE_FOR_XML !== !1, Je = nt.WHOLE_DOCUMENT || !1, Dt = nt.RETURN_DOM || !1, Ut = nt.RETURN_DOM_FRAGMENT || !1, Ft = nt.RETURN_TRUSTED_TYPE || !1, $t = nt.FORCE_BODY || !1, Ke = nt.SANITIZE_DOM !== !1, it = nt.SANITIZE_NAMED_PROPS || !1, dt = nt.KEEP_CONTENT !== !1, pt = nt.IN_PLACE || !1, qe = nt.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, rr = nt.NAMESPACE || Xt, Rr = nt.MATHML_TEXT_INTEGRATION_POINTS || Rr, gr = nt.HTML_INTEGRATION_POINTS || gr, Ye = nt.CUSTOM_ELEMENT_HANDLING || {}, nt.CUSTOM_ELEMENT_HANDLING && Or(nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Ye.tagNameCheck = nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), nt.CUSTOM_ELEMENT_HANDLING && Or(nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Ye.attributeNameCheck = nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), nt.CUSTOM_ELEMENT_HANDLING && typeof nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Ye.allowCustomizedBuiltInElements = nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ue && (Qe = !1), Ut && (Dt = !0), ft && (Ge = addToSet({}, text$1), Ze = [], ft.html === !0 && (addToSet(Ge, html$1), addToSet(Ze, html)), ft.svg === !0 && (addToSet(Ge, svg$1), addToSet(Ze, svg), addToSet(Ze, xml)), ft.svgFilters === !0 && (addToSet(Ge, svgFilters), addToSet(Ze, svg), addToSet(Ze, xml)), ft.mathMl === !0 && (addToSet(Ge, mathMl$1), addToSet(Ze, mathMl), addToSet(Ze, xml))), nt.ADD_TAGS && (Ge === He && (Ge = clone(Ge)), addToSet(Ge, nt.ADD_TAGS, dr)), nt.ADD_ATTR && (Ze === tt && (Ze = clone(Ze)), addToSet(Ze, nt.ADD_ATTR, dr)), nt.ADD_URI_SAFE_ATTR && addToSet(cr, nt.ADD_URI_SAFE_ATTR, dr), nt.FORBID_CONTENTS && (yt === zt && (yt = clone(yt)), addToSet(yt, nt.FORBID_CONTENTS, dr)), dt && (Ge["#text"] = !0), Je && addToSet(Ge, ["html", "head", "body"]), Ge.table && (addToSet(Ge, ["tbody"]), delete rt.tbody), nt.TRUSTED_TYPES_POLICY) {
59931
+ Nr.indexOf(nt.PARSER_MEDIA_TYPE) === -1 ? Xt : nt.PARSER_MEDIA_TYPE, ur = ar === "application/xhtml+xml" ? stringToString : stringToLowerCase, Ge = objectHasOwnProperty(nt, "ALLOWED_TAGS") ? addToSet({}, nt.ALLOWED_TAGS, ur) : He, Ze = objectHasOwnProperty(nt, "ALLOWED_ATTR") ? addToSet({}, nt.ALLOWED_ATTR, ur) : tt, Ir = objectHasOwnProperty(nt, "ALLOWED_NAMESPACES") ? addToSet({}, nt.ALLOWED_NAMESPACES, stringToString) : Fr, lr = objectHasOwnProperty(nt, "ADD_URI_SAFE_ATTR") ? addToSet(clone(ct), nt.ADD_URI_SAFE_ATTR, ur) : ct, Zt = objectHasOwnProperty(nt, "ADD_DATA_URI_TAGS") ? addToSet(clone(zt), nt.ADD_DATA_URI_TAGS, ur) : zt, yt = objectHasOwnProperty(nt, "FORBID_CONTENTS") ? addToSet({}, nt.FORBID_CONTENTS, ur) : Ht, rt = objectHasOwnProperty(nt, "FORBID_TAGS") ? addToSet({}, nt.FORBID_TAGS, ur) : clone({}), Xe = objectHasOwnProperty(nt, "FORBID_ATTR") ? addToSet({}, nt.FORBID_ATTR, ur) : clone({}), ft = objectHasOwnProperty(nt, "USE_PROFILES") ? nt.USE_PROFILES : !1, ot = nt.ALLOW_ARIA_ATTR !== !1, Qe = nt.ALLOW_DATA_ATTR !== !1, at = nt.ALLOW_UNKNOWN_PROTOCOLS || !1, st = nt.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ue = nt.SAFE_FOR_TEMPLATES || !1, Ct = nt.SAFE_FOR_XML !== !1, Je = nt.WHOLE_DOCUMENT || !1, Dt = nt.RETURN_DOM || !1, qt = nt.RETURN_DOM_FRAGMENT || !1, Ft = nt.RETURN_TRUSTED_TYPE || !1, $t = nt.FORCE_BODY || !1, Ke = nt.SANITIZE_DOM !== !1, it = nt.SANITIZE_NAMED_PROPS || !1, dt = nt.KEEP_CONTENT !== !1, pt = nt.IN_PLACE || !1, qe = nt.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, er = nt.NAMESPACE || Jt, Er = nt.MATHML_TEXT_INTEGRATION_POINTS || Er, gr = nt.HTML_INTEGRATION_POINTS || gr, Ye = nt.CUSTOM_ELEMENT_HANDLING || {}, nt.CUSTOM_ELEMENT_HANDLING && Or(nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Ye.tagNameCheck = nt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), nt.CUSTOM_ELEMENT_HANDLING && Or(nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Ye.attributeNameCheck = nt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), nt.CUSTOM_ELEMENT_HANDLING && typeof nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Ye.allowCustomizedBuiltInElements = nt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ue && (Qe = !1), qt && (Dt = !0), ft && (Ge = addToSet({}, text$1), Ze = [], ft.html === !0 && (addToSet(Ge, html$1), addToSet(Ze, html)), ft.svg === !0 && (addToSet(Ge, svg$1), addToSet(Ze, svg), addToSet(Ze, xml)), ft.svgFilters === !0 && (addToSet(Ge, svgFilters), addToSet(Ze, svg), addToSet(Ze, xml)), ft.mathMl === !0 && (addToSet(Ge, mathMl$1), addToSet(Ze, mathMl), addToSet(Ze, xml))), nt.ADD_TAGS && (Ge === He && (Ge = clone(Ge)), addToSet(Ge, nt.ADD_TAGS, ur)), nt.ADD_ATTR && (Ze === tt && (Ze = clone(Ze)), addToSet(Ze, nt.ADD_ATTR, ur)), nt.ADD_URI_SAFE_ATTR && addToSet(lr, nt.ADD_URI_SAFE_ATTR, ur), nt.FORBID_CONTENTS && (yt === Ht && (yt = clone(yt)), addToSet(yt, nt.FORBID_CONTENTS, ur)), dt && (Ge["#text"] = !0), Je && addToSet(Ge, ["html", "head", "body"]), Ge.table && (addToSet(Ge, ["tbody"]), delete rt.tbody), nt.TRUSTED_TYPES_POLICY) {
59932
59932
  if (typeof nt.TRUSTED_TYPES_POLICY.createHTML != "function")
59933
59933
  throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
59934
59934
  if (typeof nt.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -59936,16 +59936,16 @@ function createDOMPurify() {
59936
59936
  Q = nt.TRUSTED_TYPES_POLICY, j = Q.createHTML("");
59937
59937
  } else
59938
59938
  Q === void 0 && (Q = _createTrustedTypesPolicy(R, l)), Q !== null && typeof j == "string" && (j = Q.createHTML(""));
59939
- freeze && freeze(nt), Er = nt;
59939
+ freeze && freeze(nt), wr = nt;
59940
59940
  }
59941
59941
  }, Qr = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]), Mr = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), Vr = function(nt) {
59942
59942
  let Rt = z(nt);
59943
59943
  (!Rt || !Rt.tagName) && (Rt = {
59944
- namespaceURI: rr,
59944
+ namespaceURI: er,
59945
59945
  tagName: "template"
59946
59946
  });
59947
- const Ht = stringToLowerCase(nt.tagName), sr = stringToLowerCase(Rt.tagName);
59948
- return wr[nt.namespaceURI] ? nt.namespaceURI === Kt ? Rt.namespaceURI === Xt ? Ht === "svg" : Rt.namespaceURI === qt ? Ht === "svg" && (sr === "annotation-xml" || Rr[sr]) : !!Qr[Ht] : nt.namespaceURI === qt ? Rt.namespaceURI === Xt ? Ht === "math" : Rt.namespaceURI === Kt ? Ht === "math" && gr[sr] : !!Mr[Ht] : nt.namespaceURI === Xt ? Rt.namespaceURI === Kt && !gr[sr] || Rt.namespaceURI === qt && !Rr[sr] ? !1 : !Mr[Ht] && (vr[Ht] || !Qr[Ht]) : !!(ar === "application/xhtml+xml" && wr[nt.namespaceURI]) : !1;
59947
+ const Ut = stringToLowerCase(nt.tagName), sr = stringToLowerCase(Rt.tagName);
59948
+ return Ir[nt.namespaceURI] ? nt.namespaceURI === Kt ? Rt.namespaceURI === Jt ? Ut === "svg" : Rt.namespaceURI === Wt ? Ut === "svg" && (sr === "annotation-xml" || Er[sr]) : !!Qr[Ut] : nt.namespaceURI === Wt ? Rt.namespaceURI === Jt ? Ut === "math" : Rt.namespaceURI === Kt ? Ut === "math" && gr[sr] : !!Mr[Ut] : nt.namespaceURI === Jt ? Rt.namespaceURI === Kt && !gr[sr] || Rt.namespaceURI === Wt && !Er[sr] ? !1 : !Mr[Ut] && (vr[Ut] || !Qr[Ut]) : !!(ar === "application/xhtml+xml" && Ir[nt.namespaceURI]) : !1;
59949
59949
  }, xr = function(nt) {
59950
59950
  arrayPush(e.removed, {
59951
59951
  element: nt
@@ -59955,7 +59955,7 @@ function createDOMPurify() {
59955
59955
  } catch {
59956
59956
  M(nt);
59957
59957
  }
59958
- }, Ar = function(nt, Rt) {
59958
+ }, Rr = function(nt, Rt) {
59959
59959
  try {
59960
59960
  arrayPush(e.removed, {
59961
59961
  attribute: Rt.getAttributeNode(nt),
@@ -59968,7 +59968,7 @@ function createDOMPurify() {
59968
59968
  });
59969
59969
  }
59970
59970
  if (Rt.removeAttribute(nt), nt === "is")
59971
- if (Dt || Ut)
59971
+ if (Dt || qt)
59972
59972
  try {
59973
59973
  xr(Rt);
59974
59974
  } catch {
@@ -59979,29 +59979,29 @@ function createDOMPurify() {
59979
59979
  } catch {
59980
59980
  }
59981
59981
  }, Gr = function(nt) {
59982
- let Rt = null, Ht = null;
59982
+ let Rt = null, Ut = null;
59983
59983
  if ($t)
59984
59984
  nt = "<remove></remove>" + nt;
59985
59985
  else {
59986
- const ur = stringMatch(nt, /^[\r\n\t ]+/);
59987
- Ht = ur && ur[0];
59986
+ const cr = stringMatch(nt, /^[\r\n\t ]+/);
59987
+ Ut = cr && cr[0];
59988
59988
  }
59989
- ar === "application/xhtml+xml" && rr === Xt && (nt = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + nt + "</body></html>");
59989
+ ar === "application/xhtml+xml" && er === Jt && (nt = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + nt + "</body></html>");
59990
59990
  const sr = Q ? Q.createHTML(nt) : nt;
59991
- if (rr === Xt)
59991
+ if (er === Jt)
59992
59992
  try {
59993
59993
  Rt = new E().parseFromString(sr, ar);
59994
59994
  } catch {
59995
59995
  }
59996
59996
  if (!Rt || !Rt.documentElement) {
59997
- Rt = F.createDocument(rr, "template", null);
59997
+ Rt = F.createDocument(er, "template", null);
59998
59998
  try {
59999
- Rt.documentElement.innerHTML = lr ? j : sr;
59999
+ Rt.documentElement.innerHTML = pr ? j : sr;
60000
60000
  } catch {
60001
60001
  }
60002
60002
  }
60003
60003
  const mr = Rt.body || Rt.documentElement;
60004
- return nt && Ht && mr.insertBefore(n.createTextNode(Ht), mr.childNodes[0] || null), rr === Xt ? oe.call(Rt, Je ? "html" : "body")[0] : Je ? Rt.documentElement : mr;
60004
+ return nt && Ut && mr.insertBefore(n.createTextNode(Ut), mr.childNodes[0] || null), er === Jt ? oe.call(Rt, Je ? "html" : "body")[0] : Je ? Rt.documentElement : mr;
60005
60005
  }, Wr = function(nt) {
60006
60006
  return te.call(
60007
60007
  nt.ownerDocument || nt,
@@ -60016,28 +60016,28 @@ function createDOMPurify() {
60016
60016
  return typeof g == "function" && nt instanceof g;
60017
60017
  };
60018
60018
  function Tr(Yt, nt, Rt) {
60019
- arrayForEach(Yt, (Ht) => {
60020
- Ht.call(e, nt, Rt, Er);
60019
+ arrayForEach(Yt, (Ut) => {
60020
+ Ut.call(e, nt, Rt, wr);
60021
60021
  });
60022
60022
  }
60023
60023
  const en = function(nt) {
60024
60024
  let Rt = null;
60025
60025
  if (Tr(se.beforeSanitizeElements, nt, null), jr(nt))
60026
60026
  return xr(nt), !0;
60027
- const Ht = dr(nt.nodeName);
60027
+ const Ut = ur(nt.nodeName);
60028
60028
  if (Tr(se.uponSanitizeElement, nt, {
60029
- tagName: Ht,
60029
+ tagName: Ut,
60030
60030
  allowedTags: Ge
60031
60031
  }), Ct && nt.hasChildNodes() && !Kr(nt.firstElementChild) && regExpTest(/<[/\w!]/g, nt.innerHTML) && regExpTest(/<[/\w!]/g, nt.textContent) || nt.nodeType === NODE_TYPE.progressingInstruction || Ct && nt.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, nt.data))
60032
60032
  return xr(nt), !0;
60033
- if (!Ge[Ht] || rt[Ht]) {
60034
- if (!rt[Ht] && rn(Ht) && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, Ht) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(Ht)))
60033
+ if (!Ge[Ut] || rt[Ut]) {
60034
+ if (!rt[Ut] && rn(Ut) && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, Ut) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(Ut)))
60035
60035
  return !1;
60036
- if (dt && !yt[Ht]) {
60036
+ if (dt && !yt[Ut]) {
60037
60037
  const sr = z(nt) || nt.parentNode, mr = q(nt) || nt.childNodes;
60038
60038
  if (mr && sr) {
60039
- const ur = mr.length;
60040
- for (let yr = ur - 1; yr >= 0; --yr) {
60039
+ const cr = mr.length;
60040
+ for (let yr = cr - 1; yr >= 0; --yr) {
60041
60041
  const Sr = I(mr[yr], !0);
60042
60042
  Sr.__removalCount = (nt.__removalCount || 0) + 1, sr.insertBefore(Sr, O(nt));
60043
60043
  }
@@ -60045,13 +60045,13 @@ function createDOMPurify() {
60045
60045
  }
60046
60046
  return xr(nt), !0;
60047
60047
  }
60048
- return nt instanceof b && !Vr(nt) || (Ht === "noscript" || Ht === "noembed" || Ht === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, nt.innerHTML) ? (xr(nt), !0) : (Ue && nt.nodeType === NODE_TYPE.text && (Rt = nt.textContent, arrayForEach([Ae, $e, Ne], (sr) => {
60048
+ return nt instanceof b && !Vr(nt) || (Ut === "noscript" || Ut === "noembed" || Ut === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, nt.innerHTML) ? (xr(nt), !0) : (Ue && nt.nodeType === NODE_TYPE.text && (Rt = nt.textContent, arrayForEach([Ae, $e, Ne], (sr) => {
60049
60049
  Rt = stringReplace(Rt, sr, " ");
60050
60050
  }), nt.textContent !== Rt && (arrayPush(e.removed, {
60051
60051
  element: nt.cloneNode()
60052
60052
  }), nt.textContent = Rt)), Tr(se.afterSanitizeElements, nt, null), !1);
60053
- }, tn = function(nt, Rt, Ht) {
60054
- if (Ke && (Rt === "id" || Rt === "name") && (Ht in n || Ht in hn))
60053
+ }, tn = function(nt, Rt, Ut) {
60054
+ if (Ke && (Rt === "id" || Rt === "name") && (Ut in n || Ut in hn))
60055
60055
  return !1;
60056
60056
  if (!(Qe && !Xe[Rt] && regExpTest(Ve, Rt))) {
60057
60057
  if (!(ot && regExpTest(je, Rt))) {
@@ -60062,13 +60062,13 @@ function createDOMPurify() {
60062
60062
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
60063
60063
  !(rn(nt) && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, nt) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(nt)) && (Ye.attributeNameCheck instanceof RegExp && regExpTest(Ye.attributeNameCheck, Rt) || Ye.attributeNameCheck instanceof Function && Ye.attributeNameCheck(Rt)) || // Alternative, second condition checks if it's an `is`-attribute, AND
60064
60064
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
60065
- Rt === "is" && Ye.allowCustomizedBuiltInElements && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, Ht) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(Ht)))
60065
+ Rt === "is" && Ye.allowCustomizedBuiltInElements && (Ye.tagNameCheck instanceof RegExp && regExpTest(Ye.tagNameCheck, Ut) || Ye.tagNameCheck instanceof Function && Ye.tagNameCheck(Ut)))
60066
60066
  ) return !1;
60067
- } else if (!cr[Rt]) {
60068
- if (!regExpTest(qe, stringReplace(Ht, Oe, ""))) {
60069
- if (!((Rt === "src" || Rt === "xlink:href" || Rt === "href") && nt !== "script" && stringIndexOf(Ht, "data:") === 0 && Zt[nt])) {
60070
- if (!(at && !regExpTest(ze, stringReplace(Ht, Oe, "")))) {
60071
- if (Ht)
60067
+ } else if (!lr[Rt]) {
60068
+ if (!regExpTest(qe, stringReplace(Ut, Oe, ""))) {
60069
+ if (!((Rt === "src" || Rt === "xlink:href" || Rt === "href") && nt !== "script" && stringIndexOf(Ut, "data:") === 0 && Zt[nt])) {
60070
+ if (!(at && !regExpTest(ze, stringReplace(Ut, Oe, "")))) {
60071
+ if (Ut)
60072
60072
  return !1;
60073
60073
  }
60074
60074
  }
@@ -60086,7 +60086,7 @@ function createDOMPurify() {
60086
60086
  } = nt;
60087
60087
  if (!Rt || jr(nt))
60088
60088
  return;
60089
- const Ht = {
60089
+ const Ut = {
60090
60090
  attrName: "",
60091
60091
  attrValue: "",
60092
60092
  keepAttr: !0,
@@ -60096,31 +60096,31 @@ function createDOMPurify() {
60096
60096
  let sr = Rt.length;
60097
60097
  for (; sr--; ) {
60098
60098
  const mr = Rt[sr], {
60099
- name: ur,
60099
+ name: cr,
60100
60100
  namespaceURI: yr,
60101
60101
  value: Sr
60102
- } = mr, $r = dr(ur), Zr = Sr;
60103
- let Mt = ur === "value" ? Zr : stringTrim(Zr);
60104
- if (Ht.attrName = $r, Ht.attrValue = Mt, Ht.keepAttr = !0, Ht.forceKeepAttr = void 0, Tr(se.uponSanitizeAttribute, nt, Ht), Mt = Ht.attrValue, it && ($r === "id" || $r === "name") && (Ar(ur, nt), Mt = et + Mt), Ct && regExpTest(/((--!?|])>)|<\/(style|title)/i, Mt)) {
60105
- Ar(ur, nt);
60102
+ } = mr, $r = ur(cr), Zr = Sr;
60103
+ let Mt = cr === "value" ? Zr : stringTrim(Zr);
60104
+ if (Ut.attrName = $r, Ut.attrValue = Mt, Ut.keepAttr = !0, Ut.forceKeepAttr = void 0, Tr(se.uponSanitizeAttribute, nt, Ut), Mt = Ut.attrValue, it && ($r === "id" || $r === "name") && (Rr(cr, nt), Mt = et + Mt), Ct && regExpTest(/((--!?|])>)|<\/(style|title)/i, Mt)) {
60105
+ Rr(cr, nt);
60106
60106
  continue;
60107
60107
  }
60108
- if (Ht.forceKeepAttr)
60108
+ if (Ut.forceKeepAttr)
60109
60109
  continue;
60110
- if (!Ht.keepAttr) {
60111
- Ar(ur, nt);
60110
+ if (!Ut.keepAttr) {
60111
+ Rr(cr, nt);
60112
60112
  continue;
60113
60113
  }
60114
60114
  if (!st && regExpTest(/\/>/i, Mt)) {
60115
- Ar(ur, nt);
60115
+ Rr(cr, nt);
60116
60116
  continue;
60117
60117
  }
60118
60118
  Ue && arrayForEach([Ae, $e, Ne], (_r) => {
60119
60119
  Mt = stringReplace(Mt, _r, " ");
60120
60120
  });
60121
- const Dr = dr(nt.nodeName);
60121
+ const Dr = ur(nt.nodeName);
60122
60122
  if (!tn(Dr, $r, Mt)) {
60123
- Ar(ur, nt);
60123
+ Rr(cr, nt);
60124
60124
  continue;
60125
60125
  }
60126
60126
  if (Q && typeof R == "object" && typeof R.getAttributeType == "function" && !yr)
@@ -60136,22 +60136,22 @@ function createDOMPurify() {
60136
60136
  }
60137
60137
  if (Mt !== Zr)
60138
60138
  try {
60139
- yr ? nt.setAttributeNS(yr, ur, Mt) : nt.setAttribute(ur, Mt), jr(nt) ? xr(nt) : arrayPop(e.removed);
60139
+ yr ? nt.setAttributeNS(yr, cr, Mt) : nt.setAttribute(cr, Mt), jr(nt) ? xr(nt) : arrayPop(e.removed);
60140
60140
  } catch {
60141
- Ar(ur, nt);
60141
+ Rr(cr, nt);
60142
60142
  }
60143
60143
  }
60144
60144
  Tr(se.afterSanitizeAttributes, nt, null);
60145
60145
  }, nn = function Yt(nt) {
60146
60146
  let Rt = null;
60147
- const Ht = Wr(nt);
60148
- for (Tr(se.beforeSanitizeShadowDOM, nt, null); Rt = Ht.nextNode(); )
60147
+ const Ut = Wr(nt);
60148
+ for (Tr(se.beforeSanitizeShadowDOM, nt, null); Rt = Ut.nextNode(); )
60149
60149
  Tr(se.uponSanitizeShadowNode, Rt, null), en(Rt), Yr(Rt), Rt.content instanceof d && Yt(Rt.content);
60150
60150
  Tr(se.afterSanitizeShadowDOM, nt, null);
60151
60151
  };
60152
60152
  return e.sanitize = function(Yt) {
60153
- let nt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Rt = null, Ht = null, sr = null, mr = null;
60154
- if (lr = !Yt, lr && (Yt = "<!-->"), typeof Yt != "string" && !Kr(Yt))
60153
+ let nt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Rt = null, Ut = null, sr = null, mr = null;
60154
+ if (pr = !Yt, pr && (Yt = "<!-->"), typeof Yt != "string" && !Kr(Yt))
60155
60155
  if (typeof Yt.toString == "function") {
60156
60156
  if (Yt = Yt.toString(), typeof Yt != "string")
60157
60157
  throw typeErrorCreate("dirty is not a string, aborting");
@@ -60161,12 +60161,12 @@ function createDOMPurify() {
60161
60161
  return Yt;
60162
60162
  if (mt || Pr(nt), e.removed = [], typeof Yt == "string" && (pt = !1), pt) {
60163
60163
  if (Yt.nodeName) {
60164
- const Sr = dr(Yt.nodeName);
60164
+ const Sr = ur(Yt.nodeName);
60165
60165
  if (!Ge[Sr] || rt[Sr])
60166
60166
  throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
60167
60167
  }
60168
60168
  } else if (Yt instanceof g)
60169
- Rt = Gr("<!---->"), Ht = Rt.ownerDocument.importNode(Yt, !0), Ht.nodeType === NODE_TYPE.element && Ht.nodeName === "BODY" || Ht.nodeName === "HTML" ? Rt = Ht : Rt.appendChild(Ht);
60169
+ Rt = Gr("<!---->"), Ut = Rt.ownerDocument.importNode(Yt, !0), Ut.nodeType === NODE_TYPE.element && Ut.nodeName === "BODY" || Ut.nodeName === "HTML" ? Rt = Ut : Rt.appendChild(Ut);
60170
60170
  else {
60171
60171
  if (!Dt && !Ue && !Je && // eslint-disable-next-line unicorn/prefer-includes
60172
60172
  Yt.indexOf("<") === -1)
@@ -60175,13 +60175,13 @@ function createDOMPurify() {
60175
60175
  return Dt ? null : Ft ? j : "";
60176
60176
  }
60177
60177
  Rt && $t && xr(Rt.firstChild);
60178
- const ur = Wr(pt ? Yt : Rt);
60179
- for (; sr = ur.nextNode(); )
60178
+ const cr = Wr(pt ? Yt : Rt);
60179
+ for (; sr = cr.nextNode(); )
60180
60180
  en(sr), Yr(sr), sr.content instanceof d && nn(sr.content);
60181
60181
  if (pt)
60182
60182
  return Yt;
60183
60183
  if (Dt) {
60184
- if (Ut)
60184
+ if (qt)
60185
60185
  for (mr = ne.call(Rt.ownerDocument); Rt.firstChild; )
60186
60186
  mr.appendChild(Rt.firstChild);
60187
60187
  else
@@ -60197,11 +60197,11 @@ function createDOMPurify() {
60197
60197
  let Yt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
60198
60198
  Pr(Yt), mt = !0;
60199
60199
  }, e.clearConfig = function() {
60200
- Er = null, mt = !1;
60200
+ wr = null, mt = !1;
60201
60201
  }, e.isValidAttribute = function(Yt, nt, Rt) {
60202
- Er || Pr({});
60203
- const Ht = dr(Yt), sr = dr(nt);
60204
- return tn(Ht, sr, Rt);
60202
+ wr || Pr({});
60203
+ const Ut = ur(Yt), sr = ur(nt);
60204
+ return tn(Ut, sr, Rt);
60205
60205
  }, e.addHook = function(Yt, nt) {
60206
60206
  typeof nt == "function" && arrayPush(se[Yt], nt);
60207
60207
  }, e.removeHook = function(Yt, nt) {
@@ -60535,12 +60535,12 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60535
60535
  return;
60536
60536
  }
60537
60537
  if (!g) return;
60538
- const qt = g.map((Kt) => {
60539
- var Xt;
60538
+ const Wt = g.map((Kt) => {
60539
+ var Jt;
60540
60540
  return {
60541
60541
  partner1: Kt.Participant1,
60542
60542
  partner2: Kt.Participant2,
60543
- name: ((Xt = Kt.Participant) == null ? void 0 : Xt.PublicName) ?? "missing public name",
60543
+ name: ((Jt = Kt.Participant) == null ? void 0 : Jt.PublicName) ?? "missing public name",
60544
60544
  unread: 0,
60545
60545
  pending: Kt.Status != "Approved",
60546
60546
  historyFetched: !1,
@@ -60551,15 +60551,15 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60551
60551
  setTimeout(() => {
60552
60552
  var Kt;
60553
60553
  return (Kt = Ct.current) == null ? void 0 : Kt.focus();
60554
- }, 50), Le([ct, ...qt]);
60554
+ }, 50), Le([ct, ...Wt]);
60555
60555
  }, [g]);
60556
60556
  const [ge, se] = useState("approved"), [Ae, $e] = useState([t, ASSISTANT_ID]), [Ne, Ve] = useState(""), [je, ze] = useState(null), [Oe, Le] = useState([]), [qe, Ge] = useState(""), [He, Ze] = useState(null), [tt, Ye] = useState([]), [, rt] = useState(0), Xe = useRef(null), ot = useRef(null), [Qe, at] = useState(null), [st, Ue] = useState([]), Ct = n || ot, Je = useRef(null), { toast: mt } = useToast();
60557
60557
  useEffect(() => {
60558
- d && F && (M.current || isAssistantChat(Ae) && (M.current = !0, Ut(d, Ae, null)));
60558
+ d && F && (M.current || isAssistantChat(Ae) && (M.current = !0, qt(d, Ae, null)));
60559
60559
  }, [d, F, Ae, M]);
60560
60560
  const $t = Oe.filter((ct) => {
60561
- const qt = ct.name.toLowerCase().includes(qe.toLowerCase());
60562
- return ge === "approved" ? qt && !ct.pending : ge === "pending" ? qt && ct.pending : qt;
60561
+ const Wt = ct.name.toLowerCase().includes(qe.toLowerCase());
60562
+ return ge === "approved" ? Wt && !ct.pending : ge === "pending" ? Wt && ct.pending : Wt;
60563
60563
  });
60564
60564
  useEffect(() => {
60565
60565
  var ct;
@@ -60571,7 +60571,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60571
60571
  Ye((Kt) => [...Kt, ct.content]), rt(0);
60572
60572
  return;
60573
60573
  }
60574
- const qt = {
60574
+ const Wt = {
60575
60575
  id: ct.timestamp.toString(),
60576
60576
  fromPartnerID: ASSISTANT_ID,
60577
60577
  toPartnerID: t,
@@ -60579,16 +60579,12 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60579
60579
  timestamp: ct.timestamp.getTime(),
60580
60580
  content: ct.content
60581
60581
  };
60582
- Dt(qt);
60582
+ Dt(Wt);
60583
60583
  }), j());
60584
60584
  }, [Q]);
60585
60585
  function Dt(ct) {
60586
- const qt = [ct.fromPartnerID, ct.toPartnerID];
60587
- qt.sort(), Le((Kt) => {
60588
- let Xt = !1;
60589
- const rr = Kt.map((lr) => lr.partner1 !== qt[0] || lr.partner2 !== qt[1] || lr.messages.findIndex((wr) => wr.id == ct.id) !== -1 ? lr : (Xt = !0, { ...lr, unread: lr.unread + 1, messages: [...lr.messages, ct] }));
60590
- return Xt && ze([qt[0], qt[1]]), rr;
60591
- });
60586
+ const Wt = ct.fromPartnerID === t ? ct.toPartnerID : ct.fromPartnerID;
60587
+ Le((Kt) => Kt.map((er) => er.partner1 !== Wt && er.partner2 !== Wt || er.messages.findIndex((pr) => pr.id == ct.id) !== -1 ? er : (ze([er.partner1, er.partner2]), { ...er, unread: er.unread + 1, messages: [...er.messages, ct] })));
60592
60588
  }
60593
60589
  useEffect(() => {
60594
60590
  if (o === !0) return;
@@ -60596,11 +60592,11 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60596
60592
  accessTokenFactory: () => localStorage.getItem("access_token"),
60597
60593
  headers: { "X-Impersonated-Id": t }
60598
60594
  }).configureLogging(LogLevel.Information).withAutomaticReconnect().withHubProtocol(new JsonHubProtocol()).build();
60599
- return ct.on("ReceiveMessage", Dt), ct.start().catch((qt) => console.error("Error connecting to SignalR hub:", qt)), Ze(ct), () => {
60595
+ return ct.on("ReceiveMessage", Dt), ct.start().catch((Wt) => console.error("Error connecting to SignalR hub:", Wt)), Ze(ct), () => {
60600
60596
  ct && ct.stop();
60601
60597
  };
60602
60598
  }, [t, o]), useEffect(() => {
60603
- (je == null ? void 0 : je[0]) !== (Ae == null ? void 0 : Ae[0]) || (je == null ? void 0 : je[1]) !== (Ae == null ? void 0 : Ae[1]) || (Le((ct) => ct.map((qt) => qt.partner1 === (Ae == null ? void 0 : Ae[0]) && qt.partner2 === (Ae == null ? void 0 : Ae[1]) ? { ...qt, unread: 0 } : qt)), setTimeout(() => {
60599
+ (je == null ? void 0 : je[0]) !== (Ae == null ? void 0 : Ae[0]) || (je == null ? void 0 : je[1]) !== (Ae == null ? void 0 : Ae[1]) || (Le((ct) => ct.map((Wt) => Wt.partner1 === (Ae == null ? void 0 : Ae[0]) && Wt.partner2 === (Ae == null ? void 0 : Ae[1]) ? { ...Wt, unread: 0 } : Wt)), setTimeout(() => {
60604
60600
  var ct;
60605
60601
  return (ct = Xe.current) == null ? void 0 : ct.scrollIntoView({ behavior: "smooth" });
60606
60602
  }, 50));
@@ -60610,56 +60606,56 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60610
60606
  const ct = getActiveChatObject(Oe, Ae);
60611
60607
  if (ct) {
60612
60608
  if (ct.historyFetched) {
60613
- ct.unread > 0 && Le((qt) => qt.map((Kt) => Kt.partner1 === Ae[0] && Kt.partner2 === Ae[1] ? { ...Kt, unread: 0 } : Kt)), setTimeout(() => {
60614
- var qt;
60615
- return (qt = Xe.current) == null ? void 0 : qt.scrollIntoView({ behavior: "smooth" });
60609
+ ct.unread > 0 && Le((Wt) => Wt.map((Kt) => Kt.partner1 === Ae[0] && Kt.partner2 === Ae[1] ? { ...Kt, unread: 0 } : Kt)), setTimeout(() => {
60610
+ var Wt;
60611
+ return (Wt = Xe.current) == null ? void 0 : Wt.scrollIntoView({ behavior: "smooth" });
60616
60612
  }, 50);
60617
60613
  return;
60618
60614
  }
60619
60615
  q({
60620
60616
  routeApplicationId: t,
60621
60617
  conversationId: ct.conversationID
60622
- }).unwrap().then((qt) => {
60623
- const Kt = qt.map((Xt) => ({
60624
- id: "history" + Xt.MessageId,
60625
- fromPartnerID: Xt.SenderId,
60626
- toPartnerID: Xt.SenderId == Ae[0] ? Ae[1] : Ae[0],
60627
- senderName: Xt.SenderName ?? "missing name",
60628
- timestamp: (/* @__PURE__ */ new Date(Xt.SentDate + "Z")).getTime(),
60629
- content: Xt.Content ?? "no content"
60618
+ }).unwrap().then((Wt) => {
60619
+ const Kt = Wt.map((Jt) => ({
60620
+ id: "history" + Jt.MessageId,
60621
+ fromPartnerID: Jt.SenderId,
60622
+ toPartnerID: Jt.SenderId == Ae[0] ? Ae[1] : Ae[0],
60623
+ senderName: Jt.SenderName ?? "missing name",
60624
+ timestamp: (/* @__PURE__ */ new Date(Jt.SentDate + "Z")).getTime(),
60625
+ content: Jt.Content ?? "no content"
60630
60626
  }));
60631
- Le((Xt) => Xt.map((rr) => rr.partner1 === Ae[0] && rr.partner2 === Ae[1] ? {
60632
- ...rr,
60627
+ Le((Jt) => Jt.map((er) => er.partner1 === Ae[0] && er.partner2 === Ae[1] ? {
60628
+ ...er,
60633
60629
  messages: Kt,
60634
60630
  historyFetched: !0
60635
- } : rr));
60636
- }).catch((qt) => {
60637
- console.error("Error fetching conversation messages:", qt);
60631
+ } : er));
60632
+ }).catch((Wt) => {
60633
+ console.error("Error fetching conversation messages:", Wt);
60638
60634
  });
60639
60635
  }
60640
60636
  }, [Oe, Ae, q, t]), useEffect(() => {
60641
- var qt;
60637
+ var Wt;
60642
60638
  if (rt(tt.length), !Ae)
60643
60639
  return;
60644
60640
  const ct = getActiveChatObject(Oe, Ae);
60645
- ct && ((qt = Ct.current) == null || qt.focus(), S({ applicationId: ct.partner1 === t ? ct.partner2 : ct.partner1 }).then((Kt) => {
60646
- Kt.data && (Ye((Xt) => [...Xt, /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(PartnerCard, { account: Kt.data, action: /* @__PURE__ */ jsx(Fragment$1, {}), withVoice: !1 }) })]), rt(0));
60641
+ ct && ((Wt = Ct.current) == null || Wt.focus(), S({ applicationId: ct.partner1 === t ? ct.partner2 : ct.partner1 }).then((Kt) => {
60642
+ Kt.data && (Ye((Jt) => [...Jt, /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx(PartnerCard, { account: Kt.data, action: /* @__PURE__ */ jsx(Fragment$1, {}), withVoice: !1 }) })]), rt(0));
60647
60643
  }));
60648
60644
  }, [Ae, t]);
60649
- const Ut = (ct, qt, Kt) => {
60650
- const Xt = {
60645
+ const qt = (ct, Wt, Kt) => {
60646
+ const Jt = {
60651
60647
  id: crypto.randomUUID(),
60652
60648
  senderName: e,
60653
60649
  fromPartnerID: t,
60654
- toPartnerID: qt[0] === t ? qt[1] : qt[0],
60650
+ toPartnerID: Wt[0] === t ? Wt[1] : Wt[0],
60655
60651
  content: ct + (Qe ? ` (${Qe == null ? void 0 : Qe.name} attached)` : ""),
60656
60652
  timestamp: Date.now()
60657
60653
  };
60658
- Le((rr) => rr.map((lr) => lr.partner1 === qt[0] && lr.partner2 === qt[1] ? { ...lr, messages: [...lr.messages, Xt] } : lr)), ze([qt[0], qt[1]]), Xt.toPartnerID == ASSISTANT_ID ? (z(Xt.content, Qe ?? void 0), Qe && Ue((rr) => [...rr, Qe.name])) : Kt.invoke("NewMessage", Xt).catch((rr) => console.error("Error sending message:", rr)), Ve(""), at(null), Je.current && (Je.current.value = "");
60659
- }, Ft = (ct, qt) => {
60654
+ Le((er) => er.map((pr) => pr.partner1 === Wt[0] && pr.partner2 === Wt[1] ? { ...pr, messages: [...pr.messages, Jt] } : pr)), ze([Wt[0], Wt[1]]), Jt.toPartnerID == ASSISTANT_ID ? (z(Jt.content, Qe ?? void 0), Qe && Ue((er) => [...er, Qe.name])) : Kt.invoke("NewMessage", Jt).catch((er) => console.error("Error sending message:", er)), Ve(""), at(null), Je.current && (Je.current.value = "");
60655
+ }, Ft = (ct, Wt) => {
60660
60656
  if (!Oe.length || o !== !0 && !He || !F) return !1;
60661
- const Kt = Oe.find((Xt) => Xt.conversationID === ct);
60662
- return Kt ? (Kt.pending && setTimeout(() => se("pending"), 300), $e([Kt.partner1, Kt.partner2]), qt && setTimeout(() => Ut(qt, [Kt.partner1, Kt.partner2], He), 300), !0) : !1;
60657
+ const Kt = Oe.find((Jt) => Jt.conversationID === ct);
60658
+ return Kt ? (Kt.pending && setTimeout(() => se("pending"), 300), $e([Kt.partner1, Kt.partner2]), Wt && setTimeout(() => qt(Wt, [Kt.partner1, Kt.partner2], He), 300), !0) : !1;
60663
60659
  };
60664
60660
  if (useImperativeHandle(f, () => ({
60665
60661
  setActiveChatAndSendMessage: Ft
@@ -60671,19 +60667,19 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60671
60667
  const Ke = (ct) => {
60672
60668
  var Kt;
60673
60669
  if (!isAssistantChat(Ae)) return;
60674
- const qt = (Kt = ct.clipboardData) == null ? void 0 : Kt.items;
60675
- if (qt) {
60676
- for (let Xt = 0; Xt < qt.length; Xt++)
60677
- if (qt[Xt].type.indexOf("image") !== -1) {
60678
- const rr = qt[Xt].getAsFile();
60679
- if (rr) {
60680
- at(rr);
60670
+ const Wt = (Kt = ct.clipboardData) == null ? void 0 : Kt.items;
60671
+ if (Wt) {
60672
+ for (let Jt = 0; Jt < Wt.length; Jt++)
60673
+ if (Wt[Jt].type.indexOf("image") !== -1) {
60674
+ const er = Wt[Jt].getAsFile();
60675
+ if (er) {
60676
+ at(er);
60681
60677
  return;
60682
60678
  }
60683
60679
  }
60684
60680
  }
60685
60681
  }, it = () => {
60686
- !Ne.trim() || !Ae || o !== !0 && !He || (rt(tt.length), Ut(Ne, Ae, He));
60682
+ !Ne.trim() || !Ae || o !== !0 && !He || (rt(tt.length), qt(Ne, Ae, He));
60687
60683
  }, et = (ct) => {
60688
60684
  ct.target.files && ct.target.files[0] ? at(ct.target.files[0]) : at(null);
60689
60685
  }, dt = () => {
@@ -60693,24 +60689,24 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60693
60689
  var ct;
60694
60690
  at(null), mt({ title: "File removed", description: "No file will be sent to the assistant.", variant: "secondary" }), (ct = Ct.current) == null || ct.focus();
60695
60691
  }, ft = () => {
60696
- const qt = {
60692
+ const Wt = {
60697
60693
  messages: Oe.find((Kt) => Kt.partner1 === ASSISTANT_ID || Kt.partner2 === ASSISTANT_ID),
60698
60694
  debug: te
60699
60695
  };
60700
60696
  _({
60701
60697
  applicationId: t,
60702
60698
  emailAddress: e,
60703
- body: qt
60699
+ body: Wt
60704
60700
  });
60705
60701
  }, yt = async () => {
60706
60702
  I.current && (I.current.disabled = !0), await O({ routeApplicationId: t, partnerId: "2" }), await b();
60707
- }, zt = () => {
60703
+ }, Ht = () => {
60708
60704
  Le((ct) => ct.map((Kt) => Kt.partner1 !== ASSISTANT_ID && Kt.partner2 !== ASSISTANT_ID ? Kt : { ...Kt, messages: [] })), Ue([]), oe();
60709
60705
  }, Zt = () => {
60710
60706
  Ae && C({ routeApplicationId: t, partnerId: Ae[0] == t ? Ae[1] : Ae[0] }).then(() => {
60711
60707
  se("approved");
60712
60708
  });
60713
- }, Wt = getActiveChatObject(Oe, Ae), cr = Oe.filter((ct) => ct.pending).length;
60709
+ }, zt = getActiveChatObject(Oe, Ae), lr = Oe.filter((ct) => ct.pending).length;
60714
60710
  return /* @__PURE__ */ jsxs("div", { className: cn("flex overflow-hidden", l), children: [
60715
60711
  o !== !0 && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", { className: "w-[260px] p-4 pt-3 flex flex-col border-r", children: [
60716
60712
  /* @__PURE__ */ jsx("div", { className: "p-4 font-semibold border-b", children: "Communications" }),
@@ -60731,12 +60727,12 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60731
60727
  /* @__PURE__ */ jsx(TabsTrigger, { value: "approved", className: "text-xs col-span-3", children: "Approved" }),
60732
60728
  /* @__PURE__ */ jsxs(TabsTrigger, { value: "pending", className: "text-xs col-span-3", children: [
60733
60729
  "Pending ",
60734
- cr > 0 && `(${cr})`
60730
+ lr > 0 && `(${lr})`
60735
60731
  ] })
60736
60732
  ] }) })
60737
60733
  ] }),
60738
60734
  /* @__PURE__ */ jsx("div", { className: "mt-1 mb-1", children: Oe.findIndex((ct) => ct.partner1 === "2" || ct.partner2 === "2") < 0 ? /* @__PURE__ */ jsx(Button, { className: "w-full", ref: I, onClick: () => yt(), children: "Chat with Randmar" }, "b1") : /* @__PURE__ */ jsx("a", { target: "_blank", href: `https://dashboard.randmar.io/${t}/ExploreManufacturers`, children: /* @__PURE__ */ jsx(Button, { className: "w-full", children: "Explore manufacturers" }, "b2") }) }),
60739
- /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: Oe.length && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(ChatList, { userId: t, chats: $t.filter((ct) => ct.partner1 != ASSISTANT_ID && ct.partner2 != ASSISTANT_ID), activeChat: Wt ?? null, onSelectChat: $e, assistantChat: Oe.find((ct) => ct.partner1 == ASSISTANT_ID || ct.partner2 == ASSISTANT_ID) }) }) })
60735
+ /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: Oe.length && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(ChatList, { userId: t, chats: $t.filter((ct) => ct.partner1 != ASSISTANT_ID && ct.partner2 != ASSISTANT_ID), activeChat: zt ?? null, onSelectChat: $e, assistantChat: Oe.find((ct) => ct.partner1 == ASSISTANT_ID || ct.partner2 == ASSISTANT_ID) }) }) })
60740
60736
  ] }) }),
60741
60737
  /* @__PURE__ */ jsx("div", { className: "flex-5 flex flex-col", children: Ae ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
60742
60738
  /* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: Ae[0] == ASSISTANT_ID || Ae[1] == ASSISTANT_ID ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
@@ -60744,26 +60740,26 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60744
60740
  /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: "Randmar Assistant" }),
60745
60741
  /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 ml-auto", children: [
60746
60742
  /* @__PURE__ */ jsx(Switch, { id: "smartSwitch", disabled: !!ne, checked: R, onCheckedChange: (ct) => {
60747
- zt(), setTimeout(() => A(ct), 20);
60743
+ Ht(), setTimeout(() => A(ct), 20);
60748
60744
  } }),
60749
60745
  /* @__PURE__ */ jsx(Label$2, { htmlFor: "smartSwitch", children: "Think harder" })
60750
60746
  ] }),
60751
- /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-1", onClick: () => zt(), children: /* @__PURE__ */ jsx(MessageCircleX, { className: "h-5 w-5" }) }),
60747
+ /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-1", onClick: () => Ht(), children: /* @__PURE__ */ jsx(MessageCircleX, { className: "h-5 w-5" }) }),
60752
60748
  /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", className: "ml-1", confirmationDialog: { title: "Report Issue", content: "This action will send a copy of your chat to Randmar. Send it?", onConfirm: () => ft() }, children: /* @__PURE__ */ jsx(MessageSquareShare, { className: "h-5 w-5" }) })
60753
60749
  ] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
60754
60750
  /* @__PURE__ */ jsxs(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: [
60755
60751
  /* @__PURE__ */ jsx(AvatarImage, { src: `https://api.randmar.io/v4/Partner/${Ae[0] === t ? Ae[1] : Ae[0]}/Account/Logo?height=72&width=72`, className: " object-contain " }),
60756
60752
  /* @__PURE__ */ jsx(AvatarFallback, { children: /* @__PURE__ */ jsx(Handshake, { className: "text-primary fill-white min-h-full" }) })
60757
60753
  ] }),
60758
- /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: Wt == null ? void 0 : Wt.name }),
60754
+ /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: zt == null ? void 0 : zt.name }),
60759
60755
  /* @__PURE__ */ jsx("div", { className: "flex items-center space-x-2 ml-auto", children: /* @__PURE__ */ jsx("a", { href: `https://dashboard.randmar.io/${t}/Partner/${Ae[0] === t ? Ae[1] : Ae[0]}`, target: "_blank", children: /* @__PURE__ */ jsx(Button, { children: "View Partner" }) }) })
60760
60756
  ] }) }),
60761
- Wt != null && Wt.pending && Wt.partner1 == t ? /* @__PURE__ */ jsx("p", { className: "mt-8 p-2 mx-auto", children: "This conversation is awaiting approval by the other party — please check back later." }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
60757
+ zt != null && zt.pending && zt.partner1 == t ? /* @__PURE__ */ jsx("p", { className: "mt-8 p-2 mx-auto", children: "This conversation is awaiting approval by the other party — please check back later." }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
60762
60758
  /* @__PURE__ */ jsxs(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: [
60763
60759
  /* @__PURE__ */ jsx(
60764
60760
  ChatMessages,
60765
60761
  {
60766
- messages: (Wt == null ? void 0 : Wt.messages) ?? [],
60762
+ messages: (zt == null ? void 0 : zt.messages) ?? [],
60767
60763
  currentUserId: t,
60768
60764
  isAssistantChat: isAssistantChat(Ae),
60769
60765
  botStatus: isAssistantChat(Ae) ? ne : ""
@@ -60772,7 +60768,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60772
60768
  /* @__PURE__ */ jsx("div", { ref: Xe })
60773
60769
  ] }),
60774
60770
  /* @__PURE__ */ jsxs("div", { className: "p-4 border-t border-r flex", children: [
60775
- (Wt == null ? void 0 : Wt.pending) && /* @__PURE__ */ jsxs(Fragment$1, { children: [
60771
+ (zt == null ? void 0 : zt.pending) && /* @__PURE__ */ jsxs(Fragment$1, { children: [
60776
60772
  /* @__PURE__ */ jsxs(Button, { disabled: E, onClick: () => Zt(), children: [
60777
60773
  /* @__PURE__ */ jsx(Handshake, {}),
60778
60774
  "Accept Conversation Request"
@@ -60793,7 +60789,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60793
60789
  onKeyDown: (ct) => {
60794
60790
  ct.key !== "Enter" || ct.shiftKey || (ct.preventDefault(), it());
60795
60791
  },
60796
- className: Wt != null && Wt.pending ? "collapse" : "flex-1 resize-none"
60792
+ className: zt != null && zt.pending ? "collapse" : "flex-1 resize-none"
60797
60793
  }
60798
60794
  ),
60799
60795
  /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
@@ -60802,8 +60798,8 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60802
60798
  {
60803
60799
  size: "icon",
60804
60800
  variant: "default",
60805
- className: Wt != null && Wt.pending ? "collapse" : "ml-2 h-8 w-8",
60806
- disabled: !!ne || (Wt == null ? void 0 : Wt.pending),
60801
+ className: zt != null && zt.pending ? "collapse" : "ml-2 h-8 w-8",
60802
+ disabled: !!ne || (zt == null ? void 0 : zt.pending),
60807
60803
  onClick: it,
60808
60804
  children: /* @__PURE__ */ jsx(Send, { className: "h-6 w-6" })
60809
60805
  }
@@ -60824,8 +60820,8 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60824
60820
  size: "icon",
60825
60821
  variant: "default",
60826
60822
  onClick: dt,
60827
- className: Wt != null && Wt.pending ? "collapse" : "ml-2 h-8 w-8",
60828
- disabled: ne !== "" || (Wt == null ? void 0 : Wt.pending) || !!Qe,
60823
+ className: zt != null && zt.pending ? "collapse" : "ml-2 h-8 w-8",
60824
+ disabled: ne !== "" || (zt == null ? void 0 : zt.pending) || !!Qe,
60829
60825
  children: /* @__PURE__ */ jsx(Paperclip, { className: "h-5 w-5" })
60830
60826
  }
60831
60827
  ),
@@ -60835,8 +60831,8 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60835
60831
  size: "icon",
60836
60832
  variant: "default",
60837
60833
  onClick: pt,
60838
- className: Wt != null && Wt.pending ? "collapse" : "ml-2 h-8 w-8",
60839
- disabled: ne !== "" || (Wt == null ? void 0 : Wt.pending) || !Qe,
60834
+ className: zt != null && zt.pending ? "collapse" : "ml-2 h-8 w-8",
60835
+ disabled: ne !== "" || (zt == null ? void 0 : zt.pending) || !Qe,
60840
60836
  children: /* @__PURE__ */ jsx(Trash, { className: "h-5 w-5" })
60841
60837
  }
60842
60838
  )
@@ -61407,22 +61403,22 @@ function createFormControl(t = {}) {
61407
61403
  }
61408
61404
  }, j = (Ke, it, et, dt, pt) => {
61409
61405
  let ft = !1, yt = !1;
61410
- const zt = {
61406
+ const Ht = {
61411
61407
  name: Ke
61412
61408
  };
61413
61409
  if (!e.disabled) {
61414
61410
  if (!et || dt) {
61415
- (_.isDirty || C.isDirty) && (yt = n.isDirty, n.isDirty = zt.isDirty = se(), ft = yt !== zt.isDirty);
61411
+ (_.isDirty || C.isDirty) && (yt = n.isDirty, n.isDirty = Ht.isDirty = se(), ft = yt !== Ht.isDirty);
61416
61412
  const Zt = deepEqual$1(get(l, Ke), it);
61417
- yt = !!get(n.dirtyFields, Ke), Zt ? unset(n.dirtyFields, Ke) : set(n.dirtyFields, Ke, !0), zt.dirtyFields = n.dirtyFields, ft = ft || (_.dirtyFields || C.dirtyFields) && yt !== !Zt;
61413
+ yt = !!get(n.dirtyFields, Ke), Zt ? unset(n.dirtyFields, Ke) : set(n.dirtyFields, Ke, !0), Ht.dirtyFields = n.dirtyFields, ft = ft || (_.dirtyFields || C.dirtyFields) && yt !== !Zt;
61418
61414
  }
61419
61415
  if (et) {
61420
61416
  const Zt = get(n.touchedFields, Ke);
61421
- Zt || (set(n.touchedFields, Ke, et), zt.touchedFields = n.touchedFields, ft = ft || (_.touchedFields || C.touchedFields) && Zt !== et);
61417
+ Zt || (set(n.touchedFields, Ke, et), Ht.touchedFields = n.touchedFields, ft = ft || (_.touchedFields || C.touchedFields) && Zt !== et);
61422
61418
  }
61423
- ft && pt && E.state.next(zt);
61419
+ ft && pt && E.state.next(Ht);
61424
61420
  }
61425
- return ft ? zt : {};
61421
+ return ft ? Ht : {};
61426
61422
  }, F = (Ke, it, et, dt) => {
61427
61423
  const pt = get(n.errors, Ke), ft = (_.isValid || C.isValid) && isBoolean(it) && n.isValid !== it;
61428
61424
  if (e.delayError && et ? (b = A(() => q(Ke, et)), b(e.delayError)) : (clearTimeout(S), b = null, et ? set(n.errors, Ke, et) : unset(n.errors, Ke)), (et ? !deepEqual$1(pt, et) : pt) || !isEmptyObject$1(dt) || ft) {
@@ -61459,12 +61455,12 @@ function createFormControl(t = {}) {
61459
61455
  if (pt) {
61460
61456
  const { _f: ft, ...yt } = pt;
61461
61457
  if (ft) {
61462
- const zt = g.array.has(ft.name), Zt = pt._f && hasPromiseValidation(pt._f);
61458
+ const Ht = g.array.has(ft.name), Zt = pt._f && hasPromiseValidation(pt._f);
61463
61459
  Zt && _.validatingFields && M([dt], !0);
61464
- const Wt = await validateField(pt, g.disabled, d, R, e.shouldUseNativeValidation && !it, zt);
61465
- if (Zt && _.validatingFields && M([dt]), Wt[ft.name] && (et.valid = !1, it))
61460
+ const zt = await validateField(pt, g.disabled, d, R, e.shouldUseNativeValidation && !it, Ht);
61461
+ if (Zt && _.validatingFields && M([dt]), zt[ft.name] && (et.valid = !1, it))
61466
61462
  break;
61467
- !it && (get(Wt, ft.name) ? zt ? updateFieldArrayRootError(n.errors, Wt, ft.name) : set(n.errors, ft.name, Wt[ft.name]) : unset(n.errors, ft.name));
61463
+ !it && (get(zt, ft.name) ? Ht ? updateFieldArrayRootError(n.errors, zt, ft.name) : set(n.errors, ft.name, zt[ft.name]) : unset(n.errors, ft.name));
61468
61464
  }
61469
61465
  !isEmptyObject$1(yt) && await oe(yt, it, et);
61470
61466
  }
@@ -61484,7 +61480,7 @@ function createFormControl(t = {}) {
61484
61480
  if (dt) {
61485
61481
  const ft = dt._f;
61486
61482
  ft && (!ft.disabled && set(d, Ke, getFieldValueAs(it, ft)), pt = isHTMLElement(ft.ref) && isNullOrUndefined(it) ? "" : it, isMultipleSelect(ft.ref) ? [...ft.ref.options].forEach((yt) => yt.selected = pt.includes(yt.value)) : ft.refs ? isCheckBoxInput(ft.ref) ? ft.refs.forEach((yt) => {
61487
- (!yt.defaultChecked || !yt.disabled) && (Array.isArray(pt) ? yt.checked = !!pt.find((zt) => zt === yt.value) : yt.checked = pt === yt.value || !!pt);
61483
+ (!yt.defaultChecked || !yt.disabled) && (Array.isArray(pt) ? yt.checked = !!pt.find((Ht) => Ht === yt.value) : yt.checked = pt === yt.value || !!pt);
61488
61484
  }) : ft.refs.forEach((yt) => yt.checked = yt.value === pt) : isFileInput(ft.ref) ? ft.ref.value = "" : (ft.ref.value = pt, ft.ref.type || E.state.next({
61489
61485
  name: Ke,
61490
61486
  values: cloneObject(d)
@@ -61517,27 +61513,27 @@ function createFormControl(t = {}) {
61517
61513
  let et = it.name, dt = !0;
61518
61514
  const pt = get(o, et), ft = (Zt) => {
61519
61515
  dt = Number.isNaN(Zt) || isDateObject(Zt) && isNaN(Zt.getTime()) || deepEqual$1(Zt, get(d, et, Zt));
61520
- }, yt = getValidationModes(e.mode), zt = getValidationModes(e.reValidateMode);
61516
+ }, yt = getValidationModes(e.mode), Ht = getValidationModes(e.reValidateMode);
61521
61517
  if (pt) {
61522
- let Zt, Wt;
61523
- const cr = it.type ? getFieldValue(pt._f) : getEventValue(Ke), ct = Ke.type === EVENTS.BLUR || Ke.type === EVENTS.FOCUS_OUT, qt = !hasValidation(pt._f) && !e.resolver && !get(n.errors, et) && !pt._f.deps || skipValidation(ct, get(n.touchedFields, et), n.isSubmitted, zt, yt), Kt = isWatched(et, g, ct);
61524
- set(d, et, cr), ct ? (pt._f.onBlur && pt._f.onBlur(Ke), b && b(0)) : pt._f.onChange && pt._f.onChange(Ke);
61525
- const Xt = j(et, cr, ct), rr = !isEmptyObject$1(Xt) || Kt;
61518
+ let Zt, zt;
61519
+ const lr = it.type ? getFieldValue(pt._f) : getEventValue(Ke), ct = Ke.type === EVENTS.BLUR || Ke.type === EVENTS.FOCUS_OUT, Wt = !hasValidation(pt._f) && !e.resolver && !get(n.errors, et) && !pt._f.deps || skipValidation(ct, get(n.touchedFields, et), n.isSubmitted, Ht, yt), Kt = isWatched(et, g, ct);
61520
+ set(d, et, lr), ct ? (pt._f.onBlur && pt._f.onBlur(Ke), b && b(0)) : pt._f.onChange && pt._f.onChange(Ke);
61521
+ const Jt = j(et, lr, ct), er = !isEmptyObject$1(Jt) || Kt;
61526
61522
  if (!ct && E.state.next({
61527
61523
  name: et,
61528
61524
  type: Ke.type,
61529
61525
  values: cloneObject(d)
61530
- }), qt)
61531
- return (_.isValid || C.isValid) && (e.mode === "onBlur" ? ct && I() : ct || I()), rr && E.state.next({ name: et, ...Kt ? {} : Xt });
61526
+ }), Wt)
61527
+ return (_.isValid || C.isValid) && (e.mode === "onBlur" ? ct && I() : ct || I()), er && E.state.next({ name: et, ...Kt ? {} : Jt });
61532
61528
  if (!ct && Kt && E.state.next({ ...n }), e.resolver) {
61533
- const { errors: lr } = await te([et]);
61534
- if (ft(cr), dt) {
61535
- const wr = schemaErrorLookup(n.errors, o, et), Fr = schemaErrorLookup(lr, o, wr.name || et);
61536
- Zt = Fr.error, et = Fr.name, Wt = isEmptyObject$1(lr);
61529
+ const { errors: pr } = await te([et]);
61530
+ if (ft(lr), dt) {
61531
+ const Ir = schemaErrorLookup(n.errors, o, et), Fr = schemaErrorLookup(pr, o, Ir.name || et);
61532
+ Zt = Fr.error, et = Fr.name, zt = isEmptyObject$1(pr);
61537
61533
  }
61538
61534
  } else
61539
- M([et], !0), Zt = (await validateField(pt, g.disabled, d, R, e.shouldUseNativeValidation))[et], M([et]), ft(cr), dt && (Zt ? Wt = !1 : (_.isValid || C.isValid) && (Wt = await oe(o, !0)));
61540
- dt && (pt._f.deps && Le(pt._f.deps), F(et, Wt, Zt, Xt));
61535
+ M([et], !0), Zt = (await validateField(pt, g.disabled, d, R, e.shouldUseNativeValidation))[et], M([et]), ft(lr), dt && (Zt ? zt = !1 : (_.isValid || C.isValid) && (zt = await oe(o, !0)));
61536
+ dt && (pt._f.deps && Le(pt._f.deps), F(et, zt, Zt, Jt));
61541
61537
  }
61542
61538
  }, Oe = (Ke, it) => {
61543
61539
  if (get(n.errors, it) && Ke.focus)
@@ -61573,7 +61569,7 @@ function createFormControl(t = {}) {
61573
61569
  errors: Ke ? n.errors : {}
61574
61570
  });
61575
61571
  }, Ze = (Ke, it, et) => {
61576
- const dt = (get(o, Ke, { _f: {} })._f || {}).ref, pt = get(n.errors, Ke) || {}, { ref: ft, message: yt, type: zt, ...Zt } = pt;
61572
+ const dt = (get(o, Ke, { _f: {} })._f || {}).ref, pt = get(n.errors, Ke) || {}, { ref: ft, message: yt, type: Ht, ...Zt } = pt;
61577
61573
  set(n.errors, Ke, {
61578
61574
  ...Zt,
61579
61575
  ...it,
@@ -61640,15 +61636,15 @@ function createFormControl(t = {}) {
61640
61636
  ref: (pt) => {
61641
61637
  if (pt) {
61642
61638
  Qe(Ke, it), et = get(o, Ke);
61643
- const ft = isUndefined(pt.value) && pt.querySelectorAll && pt.querySelectorAll("input,select,textarea")[0] || pt, yt = isRadioOrCheckbox(ft), zt = et._f.refs || [];
61644
- if (yt ? zt.find((Zt) => Zt === ft) : ft === et._f.ref)
61639
+ const ft = isUndefined(pt.value) && pt.querySelectorAll && pt.querySelectorAll("input,select,textarea")[0] || pt, yt = isRadioOrCheckbox(ft), Ht = et._f.refs || [];
61640
+ if (yt ? Ht.find((Zt) => Zt === ft) : ft === et._f.ref)
61645
61641
  return;
61646
61642
  set(o, Ke, {
61647
61643
  _f: {
61648
61644
  ...et._f,
61649
61645
  ...yt ? {
61650
61646
  refs: [
61651
- ...zt.filter(live),
61647
+ ...Ht.filter(live),
61652
61648
  ft,
61653
61649
  ...Array.isArray(get(l, Ke)) ? [{}] : []
61654
61650
  ],
@@ -61710,18 +61706,18 @@ function createFormControl(t = {}) {
61710
61706
  ...g.mount,
61711
61707
  ...Object.keys(getDirtyFields(l, d))
61712
61708
  ]);
61713
- for (const zt of Array.from(yt))
61714
- get(n.dirtyFields, zt) ? set(ft, zt, get(d, zt)) : je(zt, get(ft, zt));
61709
+ for (const Ht of Array.from(yt))
61710
+ get(n.dirtyFields, Ht) ? set(ft, Ht, get(d, Ht)) : je(Ht, get(ft, Ht));
61715
61711
  } else {
61716
61712
  if (isWeb && isUndefined(Ke))
61717
61713
  for (const yt of g.mount) {
61718
- const zt = get(o, yt);
61719
- if (zt && zt._f) {
61720
- const Zt = Array.isArray(zt._f.refs) ? zt._f.refs[0] : zt._f.ref;
61714
+ const Ht = get(o, yt);
61715
+ if (Ht && Ht._f) {
61716
+ const Zt = Array.isArray(Ht._f.refs) ? Ht._f.refs[0] : Ht._f.ref;
61721
61717
  if (isHTMLElement(Zt)) {
61722
- const Wt = Zt.closest("form");
61723
- if (Wt) {
61724
- Wt.reset();
61718
+ const zt = Zt.closest("form");
61719
+ if (zt) {
61720
+ zt.reset();
61725
61721
  break;
61726
61722
  }
61727
61723
  }
@@ -67684,7 +67680,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67684
67680
  V.locations && (Vt.loc = new Ze(this, ut, It)), V.ranges && (Vt.range = [We, lt]), ae.push(Vt);
67685
67681
  };
67686
67682
  }
67687
- var Qe = 1, at = 2, st = 4, Ue = 8, Ct = 16, Je = 32, mt = 64, $t = 128, Dt = 256, Ut = Qe | at | Dt;
67683
+ var Qe = 1, at = 2, st = 4, Ue = 8, Ct = 16, Je = 32, mt = 64, $t = 128, Dt = 256, qt = Qe | at | Dt;
67688
67684
  function Ft(V, ae) {
67689
67685
  return at | (V ? st : 0) | (ae ? Ue : 0);
67690
67686
  }
@@ -67695,17 +67691,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67695
67691
  var lt = (We ? We + " " : "") + g.strict;
67696
67692
  this.reservedWordsStrict = Le(lt), this.reservedWordsStrictBind = Le(lt + " " + g.strictBind), this.input = String(Be), this.containsEsc = !1, Fe ? (this.pos = Fe, this.lineStart = this.input.lastIndexOf(`
67697
67693
  `, Fe - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(te).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = F.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = ae.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && ae.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Qe), this.regexpState = null, this.privateNameStack = [];
67698
- }, zt = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
67694
+ }, Ht = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
67699
67695
  yt.prototype.parse = function() {
67700
67696
  var ae = this.options.program || this.startNode();
67701
67697
  return this.nextToken(), this.parseTopLevel(ae);
67702
- }, zt.inFunction.get = function() {
67698
+ }, Ht.inFunction.get = function() {
67703
67699
  return (this.currentVarScope().flags & at) > 0;
67704
- }, zt.inGenerator.get = function() {
67700
+ }, Ht.inGenerator.get = function() {
67705
67701
  return (this.currentVarScope().flags & Ue) > 0 && !this.currentVarScope().inClassFieldInit;
67706
- }, zt.inAsync.get = function() {
67702
+ }, Ht.inAsync.get = function() {
67707
67703
  return (this.currentVarScope().flags & st) > 0 && !this.currentVarScope().inClassFieldInit;
67708
- }, zt.canAwait.get = function() {
67704
+ }, Ht.canAwait.get = function() {
67709
67705
  for (var V = this.scopeStack.length - 1; V >= 0; V--) {
67710
67706
  var ae = this.scopeStack[V];
67711
67707
  if (ae.inClassFieldInit || ae.flags & Dt)
@@ -67714,17 +67710,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67714
67710
  return (ae.flags & st) > 0;
67715
67711
  }
67716
67712
  return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
67717
- }, zt.allowSuper.get = function() {
67713
+ }, Ht.allowSuper.get = function() {
67718
67714
  var V = this.currentThisScope(), ae = V.flags, Be = V.inClassFieldInit;
67719
67715
  return (ae & mt) > 0 || Be || this.options.allowSuperOutsideMethod;
67720
- }, zt.allowDirectSuper.get = function() {
67716
+ }, Ht.allowDirectSuper.get = function() {
67721
67717
  return (this.currentThisScope().flags & $t) > 0;
67722
- }, zt.treatFunctionsAsVar.get = function() {
67718
+ }, Ht.treatFunctionsAsVar.get = function() {
67723
67719
  return this.treatFunctionsAsVarInScope(this.currentScope());
67724
- }, zt.allowNewDotTarget.get = function() {
67720
+ }, Ht.allowNewDotTarget.get = function() {
67725
67721
  var V = this.currentThisScope(), ae = V.flags, Be = V.inClassFieldInit;
67726
67722
  return (ae & (at | Dt)) > 0 || Be;
67727
- }, zt.inClassStaticBlock.get = function() {
67723
+ }, Ht.inClassStaticBlock.get = function() {
67728
67724
  return (this.currentVarScope().flags & Dt) > 0;
67729
67725
  }, yt.extend = function() {
67730
67726
  for (var ae = [], Be = arguments.length; Be--; )
@@ -67739,14 +67735,14 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67739
67735
  return We.nextToken(), We.parseExpression();
67740
67736
  }, yt.tokenizer = function(ae, Be) {
67741
67737
  return new this(Be, ae);
67742
- }, Object.defineProperties(yt.prototype, zt);
67743
- var Zt = yt.prototype, Wt = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
67738
+ }, Object.defineProperties(yt.prototype, Ht);
67739
+ var Zt = yt.prototype, zt = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
67744
67740
  Zt.strictDirective = function(V) {
67745
67741
  if (this.options.ecmaVersion < 5)
67746
67742
  return !1;
67747
67743
  for (; ; ) {
67748
67744
  Ae.lastIndex = V, V += Ae.exec(this.input)[0].length;
67749
- var ae = Wt.exec(this.input.slice(V));
67745
+ var ae = zt.exec(this.input.slice(V));
67750
67746
  if (!ae)
67751
67747
  return !1;
67752
67748
  if ((ae[1] || ae[2]) === "use strict") {
@@ -67779,7 +67775,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67779
67775
  }, Zt.unexpected = function(V) {
67780
67776
  this.raise(V ?? this.start, "Unexpected token");
67781
67777
  };
67782
- var cr = function() {
67778
+ var lr = function() {
67783
67779
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
67784
67780
  };
67785
67781
  Zt.checkPatternErrors = function(V, ae) {
@@ -67814,7 +67810,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67814
67810
  }
67815
67811
  return this.adaptDirectivePrologue(V.body), this.next(), V.sourceType = this.options.sourceType, this.finishNode(V, "Program");
67816
67812
  };
67817
- var qt = { kind: "loop" }, Kt = { kind: "switch" };
67813
+ var Wt = { kind: "loop" }, Kt = { kind: "switch" };
67818
67814
  ct.isLet = function(V) {
67819
67815
  if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
67820
67816
  return !1;
@@ -67891,8 +67887,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67891
67887
  default:
67892
67888
  if (this.isAsyncFunction())
67893
67889
  return V && this.unexpected(), this.next(), this.parseFunctionStatement(We, !0, !V);
67894
- var er = this.value, Qt = this.parseExpression();
67895
- return Fe === F.name && Qt.type === "Identifier" && this.eat(F.colon) ? this.parseLabeledStatement(We, er, Qt, V) : this.parseExpressionStatement(We, Qt);
67890
+ var tr = this.value, Qt = this.parseExpression();
67891
+ return Fe === F.name && Qt.type === "Identifier" && this.eat(F.colon) ? this.parseLabeledStatement(We, tr, Qt, V) : this.parseExpressionStatement(We, Qt);
67896
67892
  }
67897
67893
  }, ct.parseBreakContinueStatement = function(V, ae) {
67898
67894
  var Be = ae === "break";
@@ -67906,21 +67902,21 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67906
67902
  }, ct.parseDebuggerStatement = function(V) {
67907
67903
  return this.next(), this.semicolon(), this.finishNode(V, "DebuggerStatement");
67908
67904
  }, ct.parseDoStatement = function(V) {
67909
- return this.next(), this.labels.push(qt), V.body = this.parseStatement("do"), this.labels.pop(), this.expect(F._while), V.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(F.semi) : this.semicolon(), this.finishNode(V, "DoWhileStatement");
67905
+ return this.next(), this.labels.push(Wt), V.body = this.parseStatement("do"), this.labels.pop(), this.expect(F._while), V.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(F.semi) : this.semicolon(), this.finishNode(V, "DoWhileStatement");
67910
67906
  }, ct.parseForStatement = function(V) {
67911
67907
  this.next();
67912
67908
  var ae = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
67913
- if (this.labels.push(qt), this.enterScope(0), this.expect(F.parenL), this.type === F.semi)
67909
+ if (this.labels.push(Wt), this.enterScope(0), this.expect(F.parenL), this.type === F.semi)
67914
67910
  return ae > -1 && this.unexpected(ae), this.parseFor(V, null);
67915
67911
  var Be = this.isLet();
67916
67912
  if (this.type === F._var || this.type === F._const || Be) {
67917
67913
  var Fe = this.startNode(), We = Be ? "let" : this.value;
67918
67914
  return this.next(), this.parseVar(Fe, !0, We), this.finishNode(Fe, "VariableDeclaration"), (this.type === F._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && Fe.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === F._in ? ae > -1 && this.unexpected(ae) : V.await = ae > -1), this.parseForIn(V, Fe)) : (ae > -1 && this.unexpected(ae), this.parseFor(V, Fe));
67919
67915
  }
67920
- var lt = this.isContextual("let"), ut = !1, It = this.containsEsc, Vt = new cr(), er = this.start, Qt = ae > -1 ? this.parseExprSubscripts(Vt, "await") : this.parseExpression(!0, Vt);
67921
- return this.type === F._in || (ut = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (ae > -1 ? (this.type === F._in && this.unexpected(ae), V.await = !0) : ut && this.options.ecmaVersion >= 8 && (Qt.start === er && !It && Qt.type === "Identifier" && Qt.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (V.await = !1)), lt && ut && this.raise(Qt.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(Qt, !1, Vt), this.checkLValPattern(Qt), this.parseForIn(V, Qt)) : (this.checkExpressionErrors(Vt, !0), ae > -1 && this.unexpected(ae), this.parseFor(V, Qt));
67916
+ var lt = this.isContextual("let"), ut = !1, It = this.containsEsc, Vt = new lr(), tr = this.start, Qt = ae > -1 ? this.parseExprSubscripts(Vt, "await") : this.parseExpression(!0, Vt);
67917
+ return this.type === F._in || (ut = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (ae > -1 ? (this.type === F._in && this.unexpected(ae), V.await = !0) : ut && this.options.ecmaVersion >= 8 && (Qt.start === tr && !It && Qt.type === "Identifier" && Qt.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (V.await = !1)), lt && ut && this.raise(Qt.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(Qt, !1, Vt), this.checkLValPattern(Qt), this.parseForIn(V, Qt)) : (this.checkExpressionErrors(Vt, !0), ae > -1 && this.unexpected(ae), this.parseFor(V, Qt));
67922
67918
  }, ct.parseFunctionStatement = function(V, ae, Be) {
67923
- return this.next(), this.parseFunction(V, rr | (Be ? 0 : lr), !1, ae);
67919
+ return this.next(), this.parseFunction(V, er | (Be ? 0 : pr), !1, ae);
67924
67920
  }, ct.parseIfStatement = function(V) {
67925
67921
  return this.next(), V.test = this.parseParenExpression(), V.consequent = this.parseStatement("if"), V.alternate = this.eat(F._else) ? this.parseStatement("if") : null, this.finishNode(V, "IfStatement");
67926
67922
  }, ct.parseReturnStatement = function(V) {
@@ -67937,7 +67933,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67937
67933
  }, ct.parseThrowStatement = function(V) {
67938
67934
  return this.next(), te.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), V.argument = this.parseExpression(), this.semicolon(), this.finishNode(V, "ThrowStatement");
67939
67935
  };
67940
- var Xt = [];
67936
+ var Jt = [];
67941
67937
  ct.parseCatchClauseParam = function() {
67942
67938
  var V = this.parseBindingAtom(), ae = V.type === "Identifier";
67943
67939
  return this.enterScope(ae ? Je : 0), this.checkLValPattern(V, ae ? pt : et), this.expect(F.parenR), V;
@@ -67950,7 +67946,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67950
67946
  }, ct.parseVarStatement = function(V, ae, Be) {
67951
67947
  return this.next(), this.parseVar(V, !1, ae, Be), this.semicolon(), this.finishNode(V, "VariableDeclaration");
67952
67948
  }, ct.parseWhileStatement = function(V) {
67953
- return this.next(), V.test = this.parseParenExpression(), this.labels.push(qt), V.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(V, "WhileStatement");
67949
+ return this.next(), V.test = this.parseParenExpression(), this.labels.push(Wt), V.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(V, "WhileStatement");
67954
67950
  }, ct.parseWithStatement = function(V) {
67955
67951
  return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), V.object = this.parseParenExpression(), V.body = this.parseStatement("with"), this.finishNode(V, "WithStatement");
67956
67952
  }, ct.parseEmptyStatement = function(V) {
@@ -67961,9 +67957,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67961
67957
  ut.name === ae && this.raise(Be.start, "Label '" + ae + "' is already declared");
67962
67958
  }
67963
67959
  for (var It = this.type.isLoop ? "loop" : this.type === F._switch ? "switch" : null, Vt = this.labels.length - 1; Vt >= 0; Vt--) {
67964
- var er = this.labels[Vt];
67965
- if (er.statementStart === V.start)
67966
- er.statementStart = this.start, er.kind = It;
67960
+ var tr = this.labels[Vt];
67961
+ if (tr.statementStart === V.start)
67962
+ tr.statementStart = this.start, tr.kind = It;
67967
67963
  else
67968
67964
  break;
67969
67965
  }
@@ -67991,11 +67987,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
67991
67987
  }, ct.parseVarId = function(V, ae) {
67992
67988
  V.id = this.parseBindingAtom(), this.checkLValPattern(V.id, ae === "var" ? it : et, !1);
67993
67989
  };
67994
- var rr = 1, lr = 2, wr = 4;
67990
+ var er = 1, pr = 2, Ir = 4;
67995
67991
  ct.parseFunction = function(V, ae, Be, Fe, We) {
67996
- this.initFunction(V), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !Fe) && (this.type === F.star && ae & lr && this.unexpected(), V.generator = this.eat(F.star)), this.options.ecmaVersion >= 8 && (V.async = !!Fe), ae & rr && (V.id = ae & wr && this.type !== F.name ? null : this.parseIdent(), V.id && !(ae & lr) && this.checkLValSimple(V.id, this.strict || V.generator || V.async ? this.treatFunctionsAsVar ? it : et : dt));
67992
+ this.initFunction(V), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !Fe) && (this.type === F.star && ae & pr && this.unexpected(), V.generator = this.eat(F.star)), this.options.ecmaVersion >= 8 && (V.async = !!Fe), ae & er && (V.id = ae & Ir && this.type !== F.name ? null : this.parseIdent(), V.id && !(ae & pr) && this.checkLValSimple(V.id, this.strict || V.generator || V.async ? this.treatFunctionsAsVar ? it : et : dt));
67997
67993
  var lt = this.yieldPos, ut = this.awaitPos, It = this.awaitIdentPos;
67998
- return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ft(V.async, V.generator)), ae & rr || (V.id = this.type === F.name ? this.parseIdent() : null), this.parseFunctionParams(V), this.parseFunctionBody(V, Be, !1, We), this.yieldPos = lt, this.awaitPos = ut, this.awaitIdentPos = It, this.finishNode(V, ae & rr ? "FunctionDeclaration" : "FunctionExpression");
67994
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ft(V.async, V.generator)), ae & er || (V.id = this.type === F.name ? this.parseIdent() : null), this.parseFunctionParams(V), this.parseFunctionBody(V, Be, !1, We), this.yieldPos = lt, this.awaitPos = ut, this.awaitIdentPos = It, this.finishNode(V, ae & er ? "FunctionDeclaration" : "FunctionExpression");
67999
67995
  }, ct.parseFunctionParams = function(V) {
68000
67996
  this.expect(F.parenL), V.params = this.parseBindingList(F.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
68001
67997
  }, ct.parseClass = function(V, ae) {
@@ -68022,8 +68018,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68022
68018
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? ut = Vt : Fe = Vt);
68023
68019
  }
68024
68020
  if (Fe ? (Be.computed = !1, Be.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), Be.key.name = Fe, this.finishNode(Be.key, "Identifier")) : this.parseClassElementName(Be), ae < 13 || this.type === F.parenL || ut !== "method" || We || lt) {
68025
- var er = !Be.static && Rr(Be, "constructor"), Qt = er && V;
68026
- er && ut !== "method" && this.raise(Be.key.start, "Constructor can't have get/set modifier"), Be.kind = er ? "constructor" : ut, this.parseClassMethod(Be, We, lt, Qt);
68021
+ var tr = !Be.static && Er(Be, "constructor"), Qt = tr && V;
68022
+ tr && ut !== "method" && this.raise(Be.key.start, "Constructor can't have get/set modifier"), Be.kind = tr ? "constructor" : ut, this.parseClassMethod(Be, We, lt, Qt);
68027
68023
  } else
68028
68024
  this.parseClassField(Be);
68029
68025
  return Be;
@@ -68033,11 +68029,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68033
68029
  this.type === F.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), V.computed = !1, V.key = this.parsePrivateIdent()) : this.parsePropertyName(V);
68034
68030
  }, ct.parseClassMethod = function(V, ae, Be, Fe) {
68035
68031
  var We = V.key;
68036
- V.kind === "constructor" ? (ae && this.raise(We.start, "Constructor can't be a generator"), Be && this.raise(We.start, "Constructor can't be an async method")) : V.static && Rr(V, "prototype") && this.raise(We.start, "Classes may not have a static property named prototype");
68032
+ V.kind === "constructor" ? (ae && this.raise(We.start, "Constructor can't be a generator"), Be && this.raise(We.start, "Constructor can't be an async method")) : V.static && Er(V, "prototype") && this.raise(We.start, "Classes may not have a static property named prototype");
68037
68033
  var lt = V.value = this.parseMethod(ae, Be, Fe);
68038
68034
  return V.kind === "get" && lt.params.length !== 0 && this.raiseRecoverable(lt.start, "getter should have no params"), V.kind === "set" && lt.params.length !== 1 && this.raiseRecoverable(lt.start, "setter should have exactly one param"), V.kind === "set" && lt.params[0].type === "RestElement" && this.raiseRecoverable(lt.params[0].start, "Setter cannot use rest params"), this.finishNode(V, "MethodDefinition");
68039
68035
  }, ct.parseClassField = function(V) {
68040
- if (Rr(V, "constructor") ? this.raise(V.key.start, "Classes can't have a field named 'constructor'") : V.static && Rr(V, "prototype") && this.raise(V.key.start, "Classes can't have a static field named 'prototype'"), this.eat(F.eq)) {
68036
+ if (Er(V, "constructor") ? this.raise(V.key.start, "Classes can't have a field named 'constructor'") : V.static && Er(V, "prototype") && this.raise(V.key.start, "Classes can't have a static field named 'prototype'"), this.eat(F.eq)) {
68041
68037
  var ae = this.currentThisScope(), Be = ae.inClassFieldInit;
68042
68038
  ae.inClassFieldInit = !0, V.value = this.parseMaybeAssign(), ae.inClassFieldInit = Be;
68043
68039
  } else
@@ -68070,7 +68066,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68070
68066
  var Be = ae.key.name, Fe = V[Be], We = "true";
68071
68067
  return ae.type === "MethodDefinition" && (ae.kind === "get" || ae.kind === "set") && (We = (ae.static ? "s" : "i") + ae.kind), Fe === "iget" && We === "iset" || Fe === "iset" && We === "iget" || Fe === "sget" && We === "sset" || Fe === "sset" && We === "sget" ? (V[Be] = "true", !1) : Fe ? !0 : (V[Be] = We, !1);
68072
68068
  }
68073
- function Rr(V, ae) {
68069
+ function Er(V, ae) {
68074
68070
  var Be = V.computed, Fe = V.key;
68075
68071
  return !Be && (Fe.type === "Identifier" && Fe.name === ae || Fe.type === "Literal" && Fe.value === ae);
68076
68072
  }
@@ -68102,7 +68098,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68102
68098
  var V;
68103
68099
  if (this.type === F._function || (V = this.isAsyncFunction())) {
68104
68100
  var ae = this.startNode();
68105
- return this.next(), V && this.next(), this.parseFunction(ae, rr | wr, !1, V);
68101
+ return this.next(), V && this.next(), this.parseFunction(ae, er | Ir, !1, V);
68106
68102
  } else if (this.type === F._class) {
68107
68103
  var Be = this.startNode();
68108
68104
  return this.parseClass(Be, "nullableID");
@@ -68149,7 +68145,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68149
68145
  }
68150
68146
  return ae;
68151
68147
  }, ct.parseImport = function(V) {
68152
- return this.next(), this.type === F.string ? (V.specifiers = Xt, V.source = this.parseExprAtom()) : (V.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), V.source = this.type === F.string ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(V, "ImportDeclaration");
68148
+ return this.next(), this.type === F.string ? (V.specifiers = Jt, V.source = this.parseExprAtom()) : (V.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), V.source = this.type === F.string ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(V, "ImportDeclaration");
68153
68149
  }, ct.parseImportSpecifier = function() {
68154
68150
  var V = this.startNode();
68155
68151
  return V.imported = this.parseModuleExportName(), this.eatContextual("as") ? V.local = this.parseIdent() : (this.checkUnreserved(V.imported), V.local = V.imported), this.checkLValSimple(V.local, et), this.finishNode(V, "ImportSpecifier");
@@ -68397,8 +68393,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68397
68393
  var ae = !1;
68398
68394
  this.options.ecmaVersion >= 6 && V !== F.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (ae = !0), this.exprAllowed = ae;
68399
68395
  };
68400
- var Jt = yt.prototype;
68401
- Jt.checkPropClash = function(V, ae, Be) {
68396
+ var Xt = yt.prototype;
68397
+ Xt.checkPropClash = function(V, ae, Be) {
68402
68398
  if (!(this.options.ecmaVersion >= 9 && V.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (V.computed || V.method || V.shorthand))) {
68403
68399
  var Fe = V.key, We;
68404
68400
  switch (Fe.type) {
@@ -68429,7 +68425,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68429
68425
  };
68430
68426
  ut[lt] = !0;
68431
68427
  }
68432
- }, Jt.parseExpression = function(V, ae) {
68428
+ }, Xt.parseExpression = function(V, ae) {
68433
68429
  var Be = this.start, Fe = this.startLoc, We = this.parseMaybeAssign(V, ae);
68434
68430
  if (this.type === F.comma) {
68435
68431
  var lt = this.startNodeAt(Be, Fe);
@@ -68438,24 +68434,24 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68438
68434
  return this.finishNode(lt, "SequenceExpression");
68439
68435
  }
68440
68436
  return We;
68441
- }, Jt.parseMaybeAssign = function(V, ae, Be) {
68437
+ }, Xt.parseMaybeAssign = function(V, ae, Be) {
68442
68438
  if (this.isContextual("yield")) {
68443
68439
  if (this.inGenerator)
68444
68440
  return this.parseYield(V);
68445
68441
  this.exprAllowed = !1;
68446
68442
  }
68447
68443
  var Fe = !1, We = -1, lt = -1, ut = -1;
68448
- ae ? (We = ae.parenthesizedAssign, lt = ae.trailingComma, ut = ae.doubleProto, ae.parenthesizedAssign = ae.trailingComma = -1) : (ae = new cr(), Fe = !0);
68444
+ ae ? (We = ae.parenthesizedAssign, lt = ae.trailingComma, ut = ae.doubleProto, ae.parenthesizedAssign = ae.trailingComma = -1) : (ae = new lr(), Fe = !0);
68449
68445
  var It = this.start, Vt = this.startLoc;
68450
68446
  (this.type === F.parenL || this.type === F.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = V === "await");
68451
- var er = this.parseMaybeConditional(V, ae);
68452
- if (Be && (er = Be.call(this, er, It, Vt)), this.type.isAssign) {
68447
+ var tr = this.parseMaybeConditional(V, ae);
68448
+ if (Be && (tr = Be.call(this, tr, It, Vt)), this.type.isAssign) {
68453
68449
  var Qt = this.startNodeAt(It, Vt);
68454
- return Qt.operator = this.value, this.type === F.eq && (er = this.toAssignable(er, !1, ae)), Fe || (ae.parenthesizedAssign = ae.trailingComma = ae.doubleProto = -1), ae.shorthandAssign >= er.start && (ae.shorthandAssign = -1), this.type === F.eq ? this.checkLValPattern(er) : this.checkLValSimple(er), Qt.left = er, this.next(), Qt.right = this.parseMaybeAssign(V), ut > -1 && (ae.doubleProto = ut), this.finishNode(Qt, "AssignmentExpression");
68450
+ return Qt.operator = this.value, this.type === F.eq && (tr = this.toAssignable(tr, !1, ae)), Fe || (ae.parenthesizedAssign = ae.trailingComma = ae.doubleProto = -1), ae.shorthandAssign >= tr.start && (ae.shorthandAssign = -1), this.type === F.eq ? this.checkLValPattern(tr) : this.checkLValSimple(tr), Qt.left = tr, this.next(), Qt.right = this.parseMaybeAssign(V), ut > -1 && (ae.doubleProto = ut), this.finishNode(Qt, "AssignmentExpression");
68455
68451
  } else
68456
68452
  Fe && this.checkExpressionErrors(ae, !0);
68457
- return We > -1 && (ae.parenthesizedAssign = We), lt > -1 && (ae.trailingComma = lt), er;
68458
- }, Jt.parseMaybeConditional = function(V, ae) {
68453
+ return We > -1 && (ae.parenthesizedAssign = We), lt > -1 && (ae.trailingComma = lt), tr;
68454
+ }, Xt.parseMaybeConditional = function(V, ae) {
68459
68455
  var Be = this.start, Fe = this.startLoc, We = this.parseExprOps(V, ae);
68460
68456
  if (this.checkExpressionErrors(ae))
68461
68457
  return We;
@@ -68464,39 +68460,39 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68464
68460
  return lt.test = We, lt.consequent = this.parseMaybeAssign(), this.expect(F.colon), lt.alternate = this.parseMaybeAssign(V), this.finishNode(lt, "ConditionalExpression");
68465
68461
  }
68466
68462
  return We;
68467
- }, Jt.parseExprOps = function(V, ae) {
68463
+ }, Xt.parseExprOps = function(V, ae) {
68468
68464
  var Be = this.start, Fe = this.startLoc, We = this.parseMaybeUnary(ae, !1, !1, V);
68469
68465
  return this.checkExpressionErrors(ae) || We.start === Be && We.type === "ArrowFunctionExpression" ? We : this.parseExprOp(We, Be, Fe, -1, V);
68470
- }, Jt.parseExprOp = function(V, ae, Be, Fe, We) {
68466
+ }, Xt.parseExprOp = function(V, ae, Be, Fe, We) {
68471
68467
  var lt = this.type.binop;
68472
68468
  if (lt != null && (!We || this.type !== F._in) && lt > Fe) {
68473
68469
  var ut = this.type === F.logicalOR || this.type === F.logicalAND, It = this.type === F.coalesce;
68474
68470
  It && (lt = F.logicalAND.binop);
68475
68471
  var Vt = this.value;
68476
68472
  this.next();
68477
- var er = this.start, Qt = this.startLoc, pr = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, We), er, Qt, lt, We), Br = this.buildBinary(ae, Be, V, pr, Vt, ut || It);
68473
+ var tr = this.start, Qt = this.startLoc, dr = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, We), tr, Qt, lt, We), Br = this.buildBinary(ae, Be, V, dr, Vt, ut || It);
68478
68474
  return (ut && this.type === F.coalesce || It && (this.type === F.logicalOR || this.type === F.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(Br, ae, Be, Fe, We);
68479
68475
  }
68480
68476
  return V;
68481
- }, Jt.buildBinary = function(V, ae, Be, Fe, We, lt) {
68477
+ }, Xt.buildBinary = function(V, ae, Be, Fe, We, lt) {
68482
68478
  Fe.type === "PrivateIdentifier" && this.raise(Fe.start, "Private identifier can only be left side of binary expression");
68483
68479
  var ut = this.startNodeAt(V, ae);
68484
68480
  return ut.left = Be, ut.operator = We, ut.right = Fe, this.finishNode(ut, lt ? "LogicalExpression" : "BinaryExpression");
68485
- }, Jt.parseMaybeUnary = function(V, ae, Be, Fe) {
68481
+ }, Xt.parseMaybeUnary = function(V, ae, Be, Fe) {
68486
68482
  var We = this.start, lt = this.startLoc, ut;
68487
68483
  if (this.isContextual("await") && this.canAwait)
68488
68484
  ut = this.parseAwait(Fe), ae = !0;
68489
68485
  else if (this.type.prefix) {
68490
68486
  var It = this.startNode(), Vt = this.type === F.incDec;
68491
- It.operator = this.value, It.prefix = !0, this.next(), It.argument = this.parseMaybeUnary(null, !0, Vt, Fe), this.checkExpressionErrors(V, !0), Vt ? this.checkLValSimple(It.argument) : this.strict && It.operator === "delete" && dr(It.argument) ? this.raiseRecoverable(It.start, "Deleting local variable in strict mode") : It.operator === "delete" && Er(It.argument) ? this.raiseRecoverable(It.start, "Private fields can not be deleted") : ae = !0, ut = this.finishNode(It, Vt ? "UpdateExpression" : "UnaryExpression");
68487
+ It.operator = this.value, It.prefix = !0, this.next(), It.argument = this.parseMaybeUnary(null, !0, Vt, Fe), this.checkExpressionErrors(V, !0), Vt ? this.checkLValSimple(It.argument) : this.strict && It.operator === "delete" && ur(It.argument) ? this.raiseRecoverable(It.start, "Deleting local variable in strict mode") : It.operator === "delete" && wr(It.argument) ? this.raiseRecoverable(It.start, "Private fields can not be deleted") : ae = !0, ut = this.finishNode(It, Vt ? "UpdateExpression" : "UnaryExpression");
68492
68488
  } else if (!ae && this.type === F.privateId)
68493
68489
  (Fe || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), ut = this.parsePrivateIdent(), this.type !== F._in && this.unexpected();
68494
68490
  else {
68495
68491
  if (ut = this.parseExprSubscripts(V, Fe), this.checkExpressionErrors(V))
68496
68492
  return ut;
68497
68493
  for (; this.type.postfix && !this.canInsertSemicolon(); ) {
68498
- var er = this.startNodeAt(We, lt);
68499
- er.operator = this.value, er.prefix = !1, er.argument = ut, this.checkLValSimple(ut), this.next(), ut = this.finishNode(er, "UpdateExpression");
68494
+ var tr = this.startNodeAt(We, lt);
68495
+ tr.operator = this.value, tr.prefix = !1, tr.argument = ut, this.checkLValSimple(ut), this.next(), ut = this.finishNode(tr, "UpdateExpression");
68500
68496
  }
68501
68497
  }
68502
68498
  if (!Be && this.eat(F.starstar))
@@ -68507,19 +68503,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68507
68503
  else
68508
68504
  return ut;
68509
68505
  };
68510
- function dr(V) {
68511
- return V.type === "Identifier" || V.type === "ParenthesizedExpression" && dr(V.expression);
68506
+ function ur(V) {
68507
+ return V.type === "Identifier" || V.type === "ParenthesizedExpression" && ur(V.expression);
68512
68508
  }
68513
- function Er(V) {
68514
- return V.type === "MemberExpression" && V.property.type === "PrivateIdentifier" || V.type === "ChainExpression" && Er(V.expression) || V.type === "ParenthesizedExpression" && Er(V.expression);
68509
+ function wr(V) {
68510
+ return V.type === "MemberExpression" && V.property.type === "PrivateIdentifier" || V.type === "ChainExpression" && wr(V.expression) || V.type === "ParenthesizedExpression" && wr(V.expression);
68515
68511
  }
68516
- Jt.parseExprSubscripts = function(V, ae) {
68512
+ Xt.parseExprSubscripts = function(V, ae) {
68517
68513
  var Be = this.start, Fe = this.startLoc, We = this.parseExprAtom(V, ae);
68518
68514
  if (We.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
68519
68515
  return We;
68520
68516
  var lt = this.parseSubscripts(We, Be, Fe, !1, ae);
68521
68517
  return V && lt.type === "MemberExpression" && (V.parenthesizedAssign >= lt.start && (V.parenthesizedAssign = -1), V.parenthesizedBind >= lt.start && (V.parenthesizedBind = -1), V.trailingComma >= lt.start && (V.trailingComma = -1)), lt;
68522
- }, Jt.parseSubscripts = function(V, ae, Be, Fe, We) {
68518
+ }, Xt.parseSubscripts = function(V, ae, Be, Fe, We) {
68523
68519
  for (var lt = this.options.ecmaVersion >= 8 && V.type === "Identifier" && V.name === "async" && this.lastTokEnd === V.end && !this.canInsertSemicolon() && V.end - V.start === 5 && this.potentialArrowAt === V.start, ut = !1; ; ) {
68524
68520
  var It = this.parseSubscript(V, ae, Be, Fe, lt, ut, We);
68525
68521
  if (It.optional && (ut = !0), It === V || It.type === "ArrowFunctionExpression") {
@@ -68531,24 +68527,24 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68531
68527
  }
68532
68528
  V = It;
68533
68529
  }
68534
- }, Jt.shouldParseAsyncArrow = function() {
68530
+ }, Xt.shouldParseAsyncArrow = function() {
68535
68531
  return !this.canInsertSemicolon() && this.eat(F.arrow);
68536
- }, Jt.parseSubscriptAsyncArrow = function(V, ae, Be, Fe) {
68532
+ }, Xt.parseSubscriptAsyncArrow = function(V, ae, Be, Fe) {
68537
68533
  return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !0, Fe);
68538
- }, Jt.parseSubscript = function(V, ae, Be, Fe, We, lt, ut) {
68534
+ }, Xt.parseSubscript = function(V, ae, Be, Fe, We, lt, ut) {
68539
68535
  var It = this.options.ecmaVersion >= 11, Vt = It && this.eat(F.questionDot);
68540
68536
  Fe && Vt && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
68541
- var er = this.eat(F.bracketL);
68542
- if (er || Vt && this.type !== F.parenL && this.type !== F.backQuote || this.eat(F.dot)) {
68537
+ var tr = this.eat(F.bracketL);
68538
+ if (tr || Vt && this.type !== F.parenL && this.type !== F.backQuote || this.eat(F.dot)) {
68543
68539
  var Qt = this.startNodeAt(ae, Be);
68544
- Qt.object = V, er ? (Qt.property = this.parseExpression(), this.expect(F.bracketR)) : this.type === F.privateId && V.type !== "Super" ? Qt.property = this.parsePrivateIdent() : Qt.property = this.parseIdent(this.options.allowReserved !== "never"), Qt.computed = !!er, It && (Qt.optional = Vt), V = this.finishNode(Qt, "MemberExpression");
68540
+ Qt.object = V, tr ? (Qt.property = this.parseExpression(), this.expect(F.bracketR)) : this.type === F.privateId && V.type !== "Super" ? Qt.property = this.parsePrivateIdent() : Qt.property = this.parseIdent(this.options.allowReserved !== "never"), Qt.computed = !!tr, It && (Qt.optional = Vt), V = this.finishNode(Qt, "MemberExpression");
68545
68541
  } else if (!Fe && this.eat(F.parenL)) {
68546
- var pr = new cr(), Br = this.yieldPos, Xr = this.awaitPos, qr = this.awaitIdentPos;
68542
+ var dr = new lr(), Br = this.yieldPos, Xr = this.awaitPos, qr = this.awaitIdentPos;
68547
68543
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
68548
- var sn = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1, pr);
68544
+ var sn = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1, dr);
68549
68545
  if (We && !Vt && this.shouldParseAsyncArrow())
68550
- return this.checkPatternErrors(pr, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = Br, this.awaitPos = Xr, this.awaitIdentPos = qr, this.parseSubscriptAsyncArrow(ae, Be, sn, ut);
68551
- this.checkExpressionErrors(pr, !0), this.yieldPos = Br || this.yieldPos, this.awaitPos = Xr || this.awaitPos, this.awaitIdentPos = qr || this.awaitIdentPos;
68546
+ return this.checkPatternErrors(dr, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = Br, this.awaitPos = Xr, this.awaitIdentPos = qr, this.parseSubscriptAsyncArrow(ae, Be, sn, ut);
68547
+ this.checkExpressionErrors(dr, !0), this.yieldPos = Br || this.yieldPos, this.awaitPos = Xr || this.awaitPos, this.awaitIdentPos = qr || this.awaitIdentPos;
68552
68548
  var Ur = this.startNodeAt(ae, Be);
68553
68549
  Ur.callee = V, Ur.arguments = sn, It && (Ur.optional = Vt), V = this.finishNode(Ur, "CallExpression");
68554
68550
  } else if (this.type === F.backQuote) {
@@ -68557,7 +68553,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68557
68553
  Hr.tag = V, Hr.quasi = this.parseTemplate({ isTagged: !0 }), V = this.finishNode(Hr, "TaggedTemplateExpression");
68558
68554
  }
68559
68555
  return V;
68560
- }, Jt.parseExprAtom = function(V, ae, Be) {
68556
+ }, Xt.parseExprAtom = function(V, ae, Be) {
68561
68557
  this.type === F.slash && this.readRegexp();
68562
68558
  var Fe, We = this.potentialArrowAt === this.start;
68563
68559
  switch (this.type) {
@@ -68577,8 +68573,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68577
68573
  }
68578
68574
  return Vt;
68579
68575
  case F.regexp:
68580
- var er = this.value;
68581
- return Fe = this.parseLiteral(er.value), Fe.regex = { pattern: er.pattern, flags: er.flags }, Fe;
68576
+ var tr = this.value;
68577
+ return Fe = this.parseLiteral(tr.value), Fe.regex = { pattern: tr.pattern, flags: tr.flags }, Fe;
68582
68578
  case F.num:
68583
68579
  case F.string:
68584
68580
  return this.parseLiteral(this.value);
@@ -68587,8 +68583,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68587
68583
  case F._false:
68588
68584
  return Fe = this.startNode(), Fe.value = this.type === F._null ? null : this.type === F._true, Fe.raw = this.type.keyword, this.next(), this.finishNode(Fe, "Literal");
68589
68585
  case F.parenL:
68590
- var Qt = this.start, pr = this.parseParenAndDistinguishExpression(We, ae);
68591
- return V && (V.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(pr) && (V.parenthesizedAssign = Qt), V.parenthesizedBind < 0 && (V.parenthesizedBind = Qt)), pr;
68586
+ var Qt = this.start, dr = this.parseParenAndDistinguishExpression(We, ae);
68587
+ return V && (V.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(dr) && (V.parenthesizedAssign = Qt), V.parenthesizedBind < 0 && (V.parenthesizedBind = Qt)), dr;
68592
68588
  case F.bracketL:
68593
68589
  return Fe = this.startNode(), this.next(), Fe.elements = this.parseExprList(F.bracketR, !0, !0, V), this.finishNode(Fe, "ArrayExpression");
68594
68590
  case F.braceL:
@@ -68606,9 +68602,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68606
68602
  default:
68607
68603
  return this.parseExprAtomDefault();
68608
68604
  }
68609
- }, Jt.parseExprAtomDefault = function() {
68605
+ }, Xt.parseExprAtomDefault = function() {
68610
68606
  this.unexpected();
68611
- }, Jt.parseExprImport = function(V) {
68607
+ }, Xt.parseExprImport = function(V) {
68612
68608
  var ae = this.startNode();
68613
68609
  if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === F.parenL && !V)
68614
68610
  return this.parseDynamicImport(ae);
@@ -68617,43 +68613,43 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68617
68613
  return Be.name = "import", ae.meta = this.finishNode(Be, "Identifier"), this.parseImportMeta(ae);
68618
68614
  } else
68619
68615
  this.unexpected();
68620
- }, Jt.parseDynamicImport = function(V) {
68616
+ }, Xt.parseDynamicImport = function(V) {
68621
68617
  if (this.next(), V.source = this.parseMaybeAssign(), !this.eat(F.parenR)) {
68622
68618
  var ae = this.start;
68623
68619
  this.eat(F.comma) && this.eat(F.parenR) ? this.raiseRecoverable(ae, "Trailing comma is not allowed in import()") : this.unexpected(ae);
68624
68620
  }
68625
68621
  return this.finishNode(V, "ImportExpression");
68626
- }, Jt.parseImportMeta = function(V) {
68622
+ }, Xt.parseImportMeta = function(V) {
68627
68623
  this.next();
68628
68624
  var ae = this.containsEsc;
68629
68625
  return V.property = this.parseIdent(!0), V.property.name !== "meta" && this.raiseRecoverable(V.property.start, "The only valid meta property for import is 'import.meta'"), ae && this.raiseRecoverable(V.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere && this.raiseRecoverable(V.start, "Cannot use 'import.meta' outside a module"), this.finishNode(V, "MetaProperty");
68630
- }, Jt.parseLiteral = function(V) {
68626
+ }, Xt.parseLiteral = function(V) {
68631
68627
  var ae = this.startNode();
68632
68628
  return ae.value = V, ae.raw = this.input.slice(this.start, this.end), ae.raw.charCodeAt(ae.raw.length - 1) === 110 && (ae.bigint = ae.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(ae, "Literal");
68633
- }, Jt.parseParenExpression = function() {
68629
+ }, Xt.parseParenExpression = function() {
68634
68630
  this.expect(F.parenL);
68635
68631
  var V = this.parseExpression();
68636
68632
  return this.expect(F.parenR), V;
68637
- }, Jt.shouldParseArrow = function(V) {
68633
+ }, Xt.shouldParseArrow = function(V) {
68638
68634
  return !this.canInsertSemicolon();
68639
- }, Jt.parseParenAndDistinguishExpression = function(V, ae) {
68635
+ }, Xt.parseParenAndDistinguishExpression = function(V, ae) {
68640
68636
  var Be = this.start, Fe = this.startLoc, We, lt = this.options.ecmaVersion >= 8;
68641
68637
  if (this.options.ecmaVersion >= 6) {
68642
68638
  this.next();
68643
- var ut = this.start, It = this.startLoc, Vt = [], er = !0, Qt = !1, pr = new cr(), Br = this.yieldPos, Xr = this.awaitPos, qr;
68639
+ var ut = this.start, It = this.startLoc, Vt = [], tr = !0, Qt = !1, dr = new lr(), Br = this.yieldPos, Xr = this.awaitPos, qr;
68644
68640
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== F.parenR; )
68645
- if (er ? er = !1 : this.expect(F.comma), lt && this.afterTrailingComma(F.parenR, !0)) {
68641
+ if (tr ? tr = !1 : this.expect(F.comma), lt && this.afterTrailingComma(F.parenR, !0)) {
68646
68642
  Qt = !0;
68647
68643
  break;
68648
68644
  } else if (this.type === F.ellipsis) {
68649
68645
  qr = this.start, Vt.push(this.parseParenItem(this.parseRestBinding())), this.type === F.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
68650
68646
  break;
68651
68647
  } else
68652
- Vt.push(this.parseMaybeAssign(!1, pr, this.parseParenItem));
68648
+ Vt.push(this.parseMaybeAssign(!1, dr, this.parseParenItem));
68653
68649
  var sn = this.lastTokEnd, Ur = this.lastTokEndLoc;
68654
68650
  if (this.expect(F.parenR), V && this.shouldParseArrow(Vt) && this.eat(F.arrow))
68655
- return this.checkPatternErrors(pr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = Br, this.awaitPos = Xr, this.parseParenArrowList(Be, Fe, Vt, ae);
68656
- (!Vt.length || Qt) && this.unexpected(this.lastTokStart), qr && this.unexpected(qr), this.checkExpressionErrors(pr, !0), this.yieldPos = Br || this.yieldPos, this.awaitPos = Xr || this.awaitPos, Vt.length > 1 ? (We = this.startNodeAt(ut, It), We.expressions = Vt, this.finishNodeAt(We, "SequenceExpression", sn, Ur)) : We = Vt[0];
68651
+ return this.checkPatternErrors(dr, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = Br, this.awaitPos = Xr, this.parseParenArrowList(Be, Fe, Vt, ae);
68652
+ (!Vt.length || Qt) && this.unexpected(this.lastTokStart), qr && this.unexpected(qr), this.checkExpressionErrors(dr, !0), this.yieldPos = Br || this.yieldPos, this.awaitPos = Xr || this.awaitPos, Vt.length > 1 ? (We = this.startNodeAt(ut, It), We.expressions = Vt, this.finishNodeAt(We, "SequenceExpression", sn, Ur)) : We = Vt[0];
68657
68653
  } else
68658
68654
  We = this.parseParenExpression();
68659
68655
  if (this.options.preserveParens) {
@@ -68661,13 +68657,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68661
68657
  return Hr.expression = We, this.finishNode(Hr, "ParenthesizedExpression");
68662
68658
  } else
68663
68659
  return We;
68664
- }, Jt.parseParenItem = function(V) {
68660
+ }, Xt.parseParenItem = function(V) {
68665
68661
  return V;
68666
- }, Jt.parseParenArrowList = function(V, ae, Be, Fe) {
68662
+ }, Xt.parseParenArrowList = function(V, ae, Be, Fe) {
68667
68663
  return this.parseArrowExpression(this.startNodeAt(V, ae), Be, !1, Fe);
68668
68664
  };
68669
68665
  var hn = [];
68670
- Jt.parseNew = function() {
68666
+ Xt.parseNew = function() {
68671
68667
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
68672
68668
  var V = this.startNode();
68673
68669
  if (this.next(), this.options.ecmaVersion >= 6 && this.type === F.dot) {
@@ -68678,7 +68674,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68678
68674
  }
68679
68675
  var Fe = this.start, We = this.startLoc;
68680
68676
  return V.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), Fe, We, !0, !1), this.eat(F.parenL) ? V.arguments = this.parseExprList(F.parenR, this.options.ecmaVersion >= 8, !1) : V.arguments = hn, this.finishNode(V, "NewExpression");
68681
- }, Jt.parseTemplateElement = function(V) {
68677
+ }, Xt.parseTemplateElement = function(V) {
68682
68678
  var ae = V.isTagged, Be = this.startNode();
68683
68679
  return this.type === F.invalidTemplate ? (ae || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), Be.value = {
68684
68680
  raw: this.value.replace(/\r\n?/g, `
@@ -68689,7 +68685,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68689
68685
  `),
68690
68686
  cooked: this.value
68691
68687
  }, this.next(), Be.tail = this.type === F.backQuote, this.finishNode(Be, "TemplateElement");
68692
- }, Jt.parseTemplate = function(V) {
68688
+ }, Xt.parseTemplate = function(V) {
68693
68689
  V === void 0 && (V = {});
68694
68690
  var ae = V.isTagged;
68695
68691
  ae === void 0 && (ae = !1);
@@ -68699,9 +68695,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68699
68695
  for (Be.quasis = [Fe]; !Fe.tail; )
68700
68696
  this.type === F.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(F.dollarBraceL), Be.expressions.push(this.parseExpression()), this.expect(F.braceR), Be.quasis.push(Fe = this.parseTemplateElement({ isTagged: ae }));
68701
68697
  return this.next(), this.finishNode(Be, "TemplateLiteral");
68702
- }, Jt.isAsyncProp = function(V) {
68698
+ }, Xt.isAsyncProp = function(V) {
68703
68699
  return !V.computed && V.key.type === "Identifier" && V.key.name === "async" && (this.type === F.name || this.type === F.num || this.type === F.string || this.type === F.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === F.star) && !te.test(this.input.slice(this.lastTokEnd, this.start));
68704
- }, Jt.parseObj = function(V, ae) {
68700
+ }, Xt.parseObj = function(V, ae) {
68705
68701
  var Be = this.startNode(), Fe = !0, We = {};
68706
68702
  for (Be.properties = [], this.next(); !this.eat(F.braceR); ) {
68707
68703
  if (Fe)
@@ -68712,14 +68708,14 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68712
68708
  V || this.checkPropClash(lt, We, ae), Be.properties.push(lt);
68713
68709
  }
68714
68710
  return this.finishNode(Be, V ? "ObjectPattern" : "ObjectExpression");
68715
- }, Jt.parseProperty = function(V, ae) {
68711
+ }, Xt.parseProperty = function(V, ae) {
68716
68712
  var Be = this.startNode(), Fe, We, lt, ut;
68717
68713
  if (this.options.ecmaVersion >= 9 && this.eat(F.ellipsis))
68718
68714
  return V ? (Be.argument = this.parseIdent(!1), this.type === F.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(Be, "RestElement")) : (Be.argument = this.parseMaybeAssign(!1, ae), this.type === F.comma && ae && ae.trailingComma < 0 && (ae.trailingComma = this.start), this.finishNode(Be, "SpreadElement"));
68719
68715
  this.options.ecmaVersion >= 6 && (Be.method = !1, Be.shorthand = !1, (V || ae) && (lt = this.start, ut = this.startLoc), V || (Fe = this.eat(F.star)));
68720
68716
  var It = this.containsEsc;
68721
68717
  return this.parsePropertyName(Be), !V && !It && this.options.ecmaVersion >= 8 && !Fe && this.isAsyncProp(Be) ? (We = !0, Fe = this.options.ecmaVersion >= 9 && this.eat(F.star), this.parsePropertyName(Be)) : We = !1, this.parsePropertyValue(Be, V, Fe, We, lt, ut, ae, It), this.finishNode(Be, "Property");
68722
- }, Jt.parseGetterSetter = function(V) {
68718
+ }, Xt.parseGetterSetter = function(V) {
68723
68719
  V.kind = V.key.name, this.parsePropertyName(V), V.value = this.parseMethod(!1);
68724
68720
  var ae = V.kind === "get" ? 0 : 1;
68725
68721
  if (V.value.params.length !== ae) {
@@ -68727,24 +68723,24 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68727
68723
  V.kind === "get" ? this.raiseRecoverable(Be, "getter should have no params") : this.raiseRecoverable(Be, "setter should have exactly one param");
68728
68724
  } else
68729
68725
  V.kind === "set" && V.value.params[0].type === "RestElement" && this.raiseRecoverable(V.value.params[0].start, "Setter cannot use rest params");
68730
- }, Jt.parsePropertyValue = function(V, ae, Be, Fe, We, lt, ut, It) {
68726
+ }, Xt.parsePropertyValue = function(V, ae, Be, Fe, We, lt, ut, It) {
68731
68727
  (Be || Fe) && this.type === F.colon && this.unexpected(), this.eat(F.colon) ? (V.value = ae ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, ut), V.kind = "init") : this.options.ecmaVersion >= 6 && this.type === F.parenL ? (ae && this.unexpected(), V.kind = "init", V.method = !0, V.value = this.parseMethod(Be, Fe)) : !ae && !It && this.options.ecmaVersion >= 5 && !V.computed && V.key.type === "Identifier" && (V.key.name === "get" || V.key.name === "set") && this.type !== F.comma && this.type !== F.braceR && this.type !== F.eq ? ((Be || Fe) && this.unexpected(), this.parseGetterSetter(V)) : this.options.ecmaVersion >= 6 && !V.computed && V.key.type === "Identifier" ? ((Be || Fe) && this.unexpected(), this.checkUnreserved(V.key), V.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = We), V.kind = "init", ae ? V.value = this.parseMaybeDefault(We, lt, this.copyNode(V.key)) : this.type === F.eq && ut ? (ut.shorthandAssign < 0 && (ut.shorthandAssign = this.start), V.value = this.parseMaybeDefault(We, lt, this.copyNode(V.key))) : V.value = this.copyNode(V.key), V.shorthand = !0) : this.unexpected();
68732
- }, Jt.parsePropertyName = function(V) {
68728
+ }, Xt.parsePropertyName = function(V) {
68733
68729
  if (this.options.ecmaVersion >= 6) {
68734
68730
  if (this.eat(F.bracketL))
68735
68731
  return V.computed = !0, V.key = this.parseMaybeAssign(), this.expect(F.bracketR), V.key;
68736
68732
  V.computed = !1;
68737
68733
  }
68738
68734
  return V.key = this.type === F.num || this.type === F.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
68739
- }, Jt.initFunction = function(V) {
68735
+ }, Xt.initFunction = function(V) {
68740
68736
  V.id = null, this.options.ecmaVersion >= 6 && (V.generator = V.expression = !1), this.options.ecmaVersion >= 8 && (V.async = !1);
68741
- }, Jt.parseMethod = function(V, ae, Be) {
68737
+ }, Xt.parseMethod = function(V, ae, Be) {
68742
68738
  var Fe = this.startNode(), We = this.yieldPos, lt = this.awaitPos, ut = this.awaitIdentPos;
68743
68739
  return this.initFunction(Fe), this.options.ecmaVersion >= 6 && (Fe.generator = V), this.options.ecmaVersion >= 8 && (Fe.async = !!ae), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ft(ae, Fe.generator) | mt | (Be ? $t : 0)), this.expect(F.parenL), Fe.params = this.parseBindingList(F.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(Fe, !1, !0, !1), this.yieldPos = We, this.awaitPos = lt, this.awaitIdentPos = ut, this.finishNode(Fe, "FunctionExpression");
68744
- }, Jt.parseArrowExpression = function(V, ae, Be, Fe) {
68740
+ }, Xt.parseArrowExpression = function(V, ae, Be, Fe) {
68745
68741
  var We = this.yieldPos, lt = this.awaitPos, ut = this.awaitIdentPos;
68746
68742
  return this.enterScope(Ft(Be, !1) | Ct), this.initFunction(V), this.options.ecmaVersion >= 8 && (V.async = !!Be), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, V.params = this.toAssignableList(ae, !0), this.parseFunctionBody(V, !0, !1, Fe), this.yieldPos = We, this.awaitPos = lt, this.awaitIdentPos = ut, this.finishNode(V, "ArrowFunctionExpression");
68747
- }, Jt.parseFunctionBody = function(V, ae, Be, Fe) {
68743
+ }, Xt.parseFunctionBody = function(V, ae, Be, Fe) {
68748
68744
  var We = ae && this.type !== F.braceL, lt = this.strict, ut = !1;
68749
68745
  if (We)
68750
68746
  V.body = this.parseMaybeAssign(Fe), V.expression = !0, this.checkParams(V, !1);
@@ -68755,19 +68751,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68755
68751
  this.labels = [], ut && (this.strict = !0), this.checkParams(V, !lt && !ut && !ae && !Be && this.isSimpleParamList(V.params)), this.strict && V.id && this.checkLValSimple(V.id, ft), V.body = this.parseBlock(!1, void 0, ut && !lt), V.expression = !1, this.adaptDirectivePrologue(V.body.body), this.labels = Vt;
68756
68752
  }
68757
68753
  this.exitScope();
68758
- }, Jt.isSimpleParamList = function(V) {
68754
+ }, Xt.isSimpleParamList = function(V) {
68759
68755
  for (var ae = 0, Be = V; ae < Be.length; ae += 1) {
68760
68756
  var Fe = Be[ae];
68761
68757
  if (Fe.type !== "Identifier")
68762
68758
  return !1;
68763
68759
  }
68764
68760
  return !0;
68765
- }, Jt.checkParams = function(V, ae) {
68761
+ }, Xt.checkParams = function(V, ae) {
68766
68762
  for (var Be = /* @__PURE__ */ Object.create(null), Fe = 0, We = V.params; Fe < We.length; Fe += 1) {
68767
68763
  var lt = We[Fe];
68768
68764
  this.checkLValInnerPattern(lt, it, ae ? null : Be);
68769
68765
  }
68770
- }, Jt.parseExprList = function(V, ae, Be, Fe) {
68766
+ }, Xt.parseExprList = function(V, ae, Be, Fe) {
68771
68767
  for (var We = [], lt = !0; !this.eat(V); ) {
68772
68768
  if (lt)
68773
68769
  lt = !1;
@@ -68777,26 +68773,26 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68777
68773
  Be && this.type === F.comma ? ut = null : this.type === F.ellipsis ? (ut = this.parseSpread(Fe), Fe && this.type === F.comma && Fe.trailingComma < 0 && (Fe.trailingComma = this.start)) : ut = this.parseMaybeAssign(!1, Fe), We.push(ut);
68778
68774
  }
68779
68775
  return We;
68780
- }, Jt.checkUnreserved = function(V) {
68776
+ }, Xt.checkUnreserved = function(V) {
68781
68777
  var ae = V.start, Be = V.end, Fe = V.name;
68782
68778
  if (this.inGenerator && Fe === "yield" && this.raiseRecoverable(ae, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && Fe === "await" && this.raiseRecoverable(ae, "Cannot use 'await' as identifier inside an async function"), this.currentThisScope().inClassFieldInit && Fe === "arguments" && this.raiseRecoverable(ae, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (Fe === "arguments" || Fe === "await") && this.raise(ae, "Cannot use " + Fe + " in class static initialization block"), this.keywords.test(Fe) && this.raise(ae, "Unexpected keyword '" + Fe + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(ae, Be).indexOf("\\") !== -1)) {
68783
68779
  var We = this.strict ? this.reservedWordsStrict : this.reservedWords;
68784
68780
  We.test(Fe) && (!this.inAsync && Fe === "await" && this.raiseRecoverable(ae, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(ae, "The keyword '" + Fe + "' is reserved"));
68785
68781
  }
68786
- }, Jt.parseIdent = function(V) {
68782
+ }, Xt.parseIdent = function(V) {
68787
68783
  var ae = this.parseIdentNode();
68788
68784
  return this.next(!!V), this.finishNode(ae, "Identifier"), V || (this.checkUnreserved(ae), ae.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = ae.start)), ae;
68789
- }, Jt.parseIdentNode = function() {
68785
+ }, Xt.parseIdentNode = function() {
68790
68786
  var V = this.startNode();
68791
68787
  return this.type === F.name ? V.name = this.value : this.type.keyword ? (V.name = this.type.keyword, (V.name === "class" || V.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type = F.name) : this.unexpected(), V;
68792
- }, Jt.parsePrivateIdent = function() {
68788
+ }, Xt.parsePrivateIdent = function() {
68793
68789
  var V = this.startNode();
68794
68790
  return this.type === F.privateId ? V.name = this.value : this.unexpected(), this.next(), this.finishNode(V, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(V.start, "Private field '#" + V.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(V)), V;
68795
- }, Jt.parseYield = function(V) {
68791
+ }, Xt.parseYield = function(V) {
68796
68792
  this.yieldPos || (this.yieldPos = this.start);
68797
68793
  var ae = this.startNode();
68798
68794
  return this.next(), this.type === F.semi || this.canInsertSemicolon() || this.type !== F.star && !this.type.startsExpr ? (ae.delegate = !1, ae.argument = null) : (ae.delegate = this.eat(F.star), ae.argument = this.parseMaybeAssign(V)), this.finishNode(ae, "YieldExpression");
68799
- }, Jt.parseAwait = function(V) {
68795
+ }, Xt.parseAwait = function(V) {
68800
68796
  this.awaitPos || (this.awaitPos = this.start);
68801
68797
  var ae = this.startNode();
68802
68798
  return this.next(), ae.argument = this.parseMaybeUnary(null, !0, !1, V), this.finishNode(ae, "AwaitExpression");
@@ -68838,7 +68834,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68838
68834
  Fe = !0;
68839
68835
  break;
68840
68836
  }
68841
- if (Vt.var.push(V), this.inModule && Vt.flags & Qe && delete this.undefinedExports[V], Vt.flags & Ut)
68837
+ if (Vt.var.push(V), this.inModule && Vt.flags & Qe && delete this.undefinedExports[V], Vt.flags & qt)
68842
68838
  break;
68843
68839
  }
68844
68840
  Fe && this.raiseRecoverable(Be, "Identifier '" + V + "' has already been declared");
@@ -68849,13 +68845,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68849
68845
  }, Pr.currentVarScope = function() {
68850
68846
  for (var V = this.scopeStack.length - 1; ; V--) {
68851
68847
  var ae = this.scopeStack[V];
68852
- if (ae.flags & Ut)
68848
+ if (ae.flags & qt)
68853
68849
  return ae;
68854
68850
  }
68855
68851
  }, Pr.currentThisScope = function() {
68856
68852
  for (var V = this.scopeStack.length - 1; ; V--) {
68857
68853
  var ae = this.scopeStack[V];
68858
- if (ae.flags & Ut && !(ae.flags & Ct))
68854
+ if (ae.flags & qt && !(ae.flags & Ct))
68859
68855
  return ae;
68860
68856
  }
68861
68857
  };
@@ -68880,8 +68876,8 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68880
68876
  ae[Be] = V[Be];
68881
68877
  return ae;
68882
68878
  };
68883
- var Ar = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Gr = Ar + " Extended_Pictographic", Wr = Gr, jr = Wr + " EBase EComp EMod EPres ExtPict", Kr = jr, Tr = Kr, en = {
68884
- 9: Ar,
68879
+ var Rr = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Gr = Rr + " Extended_Pictographic", Wr = Gr, jr = Wr + " EBase EComp EMod EPres ExtPict", Kr = jr, Tr = Kr, en = {
68880
+ 9: Rr,
68885
68881
  10: Gr,
68886
68882
  11: Wr,
68887
68883
  12: jr,
@@ -68894,16 +68890,16 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68894
68890
  12: "",
68895
68891
  13: "",
68896
68892
  14: tn
68897
- }, Yr = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", nn = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Yt = nn + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", nt = Yt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Rt = nt + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Ht = Rt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", sr = Ht + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", mr = {
68893
+ }, Yr = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", nn = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Yt = nn + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", nt = Yt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Rt = nt + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Ut = Rt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", sr = Ut + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz", mr = {
68898
68894
  9: nn,
68899
68895
  10: Yt,
68900
68896
  11: nt,
68901
68897
  12: Rt,
68902
- 13: Ht,
68898
+ 13: Ut,
68903
68899
  14: sr
68904
- }, ur = {};
68900
+ }, cr = {};
68905
68901
  function yr(V) {
68906
- var ae = ur[V] = {
68902
+ var ae = cr[V] = {
68907
68903
  binary: Le(en[V] + " " + Yr),
68908
68904
  binaryOfStrings: Le(rn[V]),
68909
68905
  nonBinary: {
@@ -68930,7 +68926,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
68930
68926
  return new Dr(this.parent, this.base);
68931
68927
  };
68932
68928
  var _r = function(ae) {
68933
- this.parser = ae, this.validFlags = "gim" + (ae.options.ecmaVersion >= 6 ? "uy" : "") + (ae.options.ecmaVersion >= 9 ? "s" : "") + (ae.options.ecmaVersion >= 13 ? "d" : "") + (ae.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = ur[ae.options.ecmaVersion >= 14 ? 14 : ae.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
68929
+ this.parser = ae, this.validFlags = "gim" + (ae.options.ecmaVersion >= 6 ? "uy" : "") + (ae.options.ecmaVersion >= 9 ? "s" : "") + (ae.options.ecmaVersion >= 13 ? "d" : "") + (ae.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = cr[ae.options.ecmaVersion >= 14 ? 14 : ae.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
68934
68930
  };
68935
68931
  _r.prototype.reset = function(ae, Be, Fe) {
68936
68932
  var We = Fe.indexOf("v") !== -1, lt = Fe.indexOf("u") !== -1;
@@ -69201,11 +69197,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69201
69197
  }
69202
69198
  return !1;
69203
69199
  };
69204
- var Pn = 0, Ir = 1, Cr = 2;
69200
+ var Pn = 0, Ar = 1, Cr = 2;
69205
69201
  Mt.regexp_eatCharacterClassEscape = function(V) {
69206
69202
  var ae = V.current();
69207
69203
  if (Dn(ae))
69208
- return V.lastIntValue = -1, V.advance(), Ir;
69204
+ return V.lastIntValue = -1, V.advance(), Ar;
69209
69205
  var Be = !1;
69210
69206
  if (V.switchU && this.options.ecmaVersion >= 9 && ((Be = ae === 80) || ae === 112)) {
69211
69207
  V.lastIntValue = -1, V.advance();
@@ -69225,7 +69221,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69225
69221
  var Be = V.lastStringValue;
69226
69222
  if (this.regexp_eatUnicodePropertyValue(V)) {
69227
69223
  var Fe = V.lastStringValue;
69228
- return this.regexp_validateUnicodePropertyNameAndValue(V, Be, Fe), Ir;
69224
+ return this.regexp_validateUnicodePropertyNameAndValue(V, Be, Fe), Ar;
69229
69225
  }
69230
69226
  }
69231
69227
  if (V.pos = ae, this.regexp_eatLoneUnicodePropertyNameOrValue(V)) {
@@ -69237,7 +69233,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69237
69233
  je(V.unicodeProperties.nonBinary, ae) || V.raise("Invalid property name"), V.unicodeProperties.nonBinary[ae].test(Be) || V.raise("Invalid property value");
69238
69234
  }, Mt.regexp_validateUnicodePropertyNameOrValue = function(V, ae) {
69239
69235
  if (V.unicodeProperties.binary.test(ae))
69240
- return Ir;
69236
+ return Ar;
69241
69237
  if (V.switchV && V.unicodeProperties.binaryOfStrings.test(ae))
69242
69238
  return Cr;
69243
69239
  V.raise("Invalid property name");
@@ -69268,7 +69264,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69268
69264
  }
69269
69265
  return !1;
69270
69266
  }, Mt.regexp_classContents = function(V) {
69271
- return V.current() === 93 ? Ir : V.switchV ? this.regexp_classSetExpression(V) : (this.regexp_nonEmptyClassRanges(V), Ir);
69267
+ return V.current() === 93 ? Ar : V.switchV ? this.regexp_classSetExpression(V) : (this.regexp_nonEmptyClassRanges(V), Ar);
69272
69268
  }, Mt.regexp_nonEmptyClassRanges = function(V) {
69273
69269
  for (; this.regexp_eatClassAtom(V); ) {
69274
69270
  var ae = V.lastIntValue;
@@ -69303,13 +69299,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69303
69299
  }
69304
69300
  return this.regexp_eatCharacterClassEscape(V) || this.regexp_eatCharacterEscape(V);
69305
69301
  }, Mt.regexp_classSetExpression = function(V) {
69306
- var ae = Ir, Be;
69302
+ var ae = Ar, Be;
69307
69303
  if (!this.regexp_eatClassSetRange(V))
69308
69304
  if (Be = this.regexp_eatClassSetOperand(V)) {
69309
69305
  Be === Cr && (ae = Cr);
69310
69306
  for (var Fe = V.pos; V.eatChars([38, 38]); ) {
69311
69307
  if (V.current() !== 38 && (Be = this.regexp_eatClassSetOperand(V))) {
69312
- Be !== Cr && (ae = Ir);
69308
+ Be !== Cr && (ae = Ar);
69313
69309
  continue;
69314
69310
  }
69315
69311
  V.raise("Invalid character in character class");
@@ -69340,7 +69336,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69340
69336
  }
69341
69337
  return !1;
69342
69338
  }, Mt.regexp_eatClassSetOperand = function(V) {
69343
- return this.regexp_eatClassSetCharacter(V) ? Ir : this.regexp_eatClassStringDisjunction(V) || this.regexp_eatNestedClass(V);
69339
+ return this.regexp_eatClassSetCharacter(V) ? Ar : this.regexp_eatClassStringDisjunction(V) || this.regexp_eatNestedClass(V);
69344
69340
  }, Mt.regexp_eatNestedClass = function(V) {
69345
69341
  var ae = V.pos;
69346
69342
  if (V.eat(91)) {
@@ -69375,7 +69371,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69375
69371
  }, Mt.regexp_classString = function(V) {
69376
69372
  for (var ae = 0; this.regexp_eatClassSetCharacter(V); )
69377
69373
  ae++;
69378
- return ae === 1 ? Ir : Cr;
69374
+ return ae === 1 ? Ar : Cr;
69379
69375
  }, Mt.regexp_eatClassSetCharacter = function(V) {
69380
69376
  var ae = V.pos;
69381
69377
  if (V.eat(92))
@@ -69459,12 +69455,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69459
69455
  };
69460
69456
  var on = function(ae) {
69461
69457
  this.type = ae.type, this.value = ae.value, this.start = ae.start, this.end = ae.end, ae.options.locations && (this.loc = new Ze(ae, ae.startLoc, ae.endLoc)), ae.options.ranges && (this.range = [ae.start, ae.end]);
69462
- }, tr = yt.prototype;
69463
- tr.next = function(V) {
69458
+ }, rr = yt.prototype;
69459
+ rr.next = function(V) {
69464
69460
  !V && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new on(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
69465
- }, tr.getToken = function() {
69461
+ }, rr.getToken = function() {
69466
69462
  return this.next(), new on(this);
69467
- }, typeof Symbol < "u" && (tr[Symbol.iterator] = function() {
69463
+ }, typeof Symbol < "u" && (rr[Symbol.iterator] = function() {
69468
69464
  var V = this;
69469
69465
  return {
69470
69466
  next: function() {
@@ -69475,32 +69471,32 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69475
69471
  };
69476
69472
  }
69477
69473
  };
69478
- }), tr.nextToken = function() {
69474
+ }), rr.nextToken = function() {
69479
69475
  var V = this.curContext();
69480
69476
  if ((!V || !V.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
69481
69477
  return this.finishToken(F.eof);
69482
69478
  if (V.override)
69483
69479
  return V.override(this);
69484
69480
  this.readToken(this.fullCharCodeAtPos());
69485
- }, tr.readToken = function(V) {
69481
+ }, rr.readToken = function(V) {
69486
69482
  return A(V, this.options.ecmaVersion >= 6) || V === 92 ? this.readWord() : this.getTokenFromCode(V);
69487
- }, tr.fullCharCodeAtPos = function() {
69483
+ }, rr.fullCharCodeAtPos = function() {
69488
69484
  var V = this.input.charCodeAt(this.pos);
69489
69485
  if (V <= 55295 || V >= 56320)
69490
69486
  return V;
69491
69487
  var ae = this.input.charCodeAt(this.pos + 1);
69492
69488
  return ae <= 56319 || ae >= 57344 ? V : (V << 10) + ae - 56613888;
69493
- }, tr.skipBlockComment = function() {
69489
+ }, rr.skipBlockComment = function() {
69494
69490
  var V = this.options.onComment && this.curPosition(), ae = this.pos, Be = this.input.indexOf("*/", this.pos += 2);
69495
69491
  if (Be === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = Be + 2, this.options.locations)
69496
69492
  for (var Fe = void 0, We = ae; (Fe = ge(this.input, We, this.pos)) > -1; )
69497
69493
  ++this.curLine, We = this.lineStart = Fe;
69498
69494
  this.options.onComment && this.options.onComment(!0, this.input.slice(ae + 2, Be), ae, this.pos, V, this.curPosition());
69499
- }, tr.skipLineComment = function(V) {
69495
+ }, rr.skipLineComment = function(V) {
69500
69496
  for (var ae = this.pos, Be = this.options.onComment && this.curPosition(), Fe = this.input.charCodeAt(this.pos += V); this.pos < this.input.length && !oe(Fe); )
69501
69497
  Fe = this.input.charCodeAt(++this.pos);
69502
69498
  this.options.onComment && this.options.onComment(!1, this.input.slice(ae + V, this.pos), ae, this.pos, Be, this.curPosition());
69503
- }, tr.skipSpace = function() {
69499
+ }, rr.skipSpace = function() {
69504
69500
  e:
69505
69501
  for (; this.pos < this.input.length; ) {
69506
69502
  var V = this.input.charCodeAt(this.pos);
@@ -69535,23 +69531,23 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69535
69531
  break e;
69536
69532
  }
69537
69533
  }
69538
- }, tr.finishToken = function(V, ae) {
69534
+ }, rr.finishToken = function(V, ae) {
69539
69535
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
69540
69536
  var Be = this.type;
69541
69537
  this.type = V, this.value = ae, this.updateContext(Be);
69542
- }, tr.readToken_dot = function() {
69538
+ }, rr.readToken_dot = function() {
69543
69539
  var V = this.input.charCodeAt(this.pos + 1);
69544
69540
  if (V >= 48 && V <= 57)
69545
69541
  return this.readNumber(!0);
69546
69542
  var ae = this.input.charCodeAt(this.pos + 2);
69547
69543
  return this.options.ecmaVersion >= 6 && V === 46 && ae === 46 ? (this.pos += 3, this.finishToken(F.ellipsis)) : (++this.pos, this.finishToken(F.dot));
69548
- }, tr.readToken_slash = function() {
69544
+ }, rr.readToken_slash = function() {
69549
69545
  var V = this.input.charCodeAt(this.pos + 1);
69550
69546
  return this.exprAllowed ? (++this.pos, this.readRegexp()) : V === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.slash, 1);
69551
- }, tr.readToken_mult_modulo_exp = function(V) {
69547
+ }, rr.readToken_mult_modulo_exp = function(V) {
69552
69548
  var ae = this.input.charCodeAt(this.pos + 1), Be = 1, Fe = V === 42 ? F.star : F.modulo;
69553
69549
  return this.options.ecmaVersion >= 7 && V === 42 && ae === 42 && (++Be, Fe = F.starstar, ae = this.input.charCodeAt(this.pos + 2)), ae === 61 ? this.finishOp(F.assign, Be + 1) : this.finishOp(Fe, Be);
69554
- }, tr.readToken_pipe_amp = function(V) {
69550
+ }, rr.readToken_pipe_amp = function(V) {
69555
69551
  var ae = this.input.charCodeAt(this.pos + 1);
69556
69552
  if (ae === V) {
69557
69553
  if (this.options.ecmaVersion >= 12) {
@@ -69562,19 +69558,19 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69562
69558
  return this.finishOp(V === 124 ? F.logicalOR : F.logicalAND, 2);
69563
69559
  }
69564
69560
  return ae === 61 ? this.finishOp(F.assign, 2) : this.finishOp(V === 124 ? F.bitwiseOR : F.bitwiseAND, 1);
69565
- }, tr.readToken_caret = function() {
69561
+ }, rr.readToken_caret = function() {
69566
69562
  var V = this.input.charCodeAt(this.pos + 1);
69567
69563
  return V === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.bitwiseXOR, 1);
69568
- }, tr.readToken_plus_min = function(V) {
69564
+ }, rr.readToken_plus_min = function(V) {
69569
69565
  var ae = this.input.charCodeAt(this.pos + 1);
69570
69566
  return ae === V ? ae === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || te.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(F.incDec, 2) : ae === 61 ? this.finishOp(F.assign, 2) : this.finishOp(F.plusMin, 1);
69571
- }, tr.readToken_lt_gt = function(V) {
69567
+ }, rr.readToken_lt_gt = function(V) {
69572
69568
  var ae = this.input.charCodeAt(this.pos + 1), Be = 1;
69573
69569
  return ae === V ? (Be = V === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + Be) === 61 ? this.finishOp(F.assign, Be + 1) : this.finishOp(F.bitShift, Be)) : ae === 33 && V === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (ae === 61 && (Be = 2), this.finishOp(F.relational, Be));
69574
- }, tr.readToken_eq_excl = function(V) {
69570
+ }, rr.readToken_eq_excl = function(V) {
69575
69571
  var ae = this.input.charCodeAt(this.pos + 1);
69576
69572
  return ae === 61 ? this.finishOp(F.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : V === 61 && ae === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(F.arrow)) : this.finishOp(V === 61 ? F.eq : F.prefix, 1);
69577
- }, tr.readToken_question = function() {
69573
+ }, rr.readToken_question = function() {
69578
69574
  var V = this.options.ecmaVersion;
69579
69575
  if (V >= 11) {
69580
69576
  var ae = this.input.charCodeAt(this.pos + 1);
@@ -69593,12 +69589,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69593
69589
  }
69594
69590
  }
69595
69591
  return this.finishOp(F.question, 1);
69596
- }, tr.readToken_numberSign = function() {
69592
+ }, rr.readToken_numberSign = function() {
69597
69593
  var V = this.options.ecmaVersion, ae = 35;
69598
69594
  if (V >= 13 && (++this.pos, ae = this.fullCharCodeAtPos(), A(ae, !0) || ae === 92))
69599
69595
  return this.finishToken(F.privateId, this.readWord1());
69600
69596
  this.raise(this.pos, "Unexpected character '" + qe(ae) + "'");
69601
- }, tr.getTokenFromCode = function(V) {
69597
+ }, rr.getTokenFromCode = function(V) {
69602
69598
  switch (V) {
69603
69599
  case 46:
69604
69600
  return this.readToken_dot();
@@ -69674,10 +69670,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69674
69670
  return this.readToken_numberSign();
69675
69671
  }
69676
69672
  this.raise(this.pos, "Unexpected character '" + qe(V) + "'");
69677
- }, tr.finishOp = function(V, ae) {
69673
+ }, rr.finishOp = function(V, ae) {
69678
69674
  var Be = this.input.slice(this.pos, this.pos + ae);
69679
69675
  return this.pos += ae, this.finishToken(V, Be);
69680
- }, tr.readRegexp = function() {
69676
+ }, rr.readRegexp = function() {
69681
69677
  for (var V, ae, Be = this.pos; ; ) {
69682
69678
  this.pos >= this.input.length && this.raise(Be, "Unterminated regular expression");
69683
69679
  var Fe = this.input.charAt(this.pos);
@@ -69706,16 +69702,16 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69706
69702
  } catch {
69707
69703
  }
69708
69704
  return this.finishToken(F.regexp, { pattern: We, flags: ut, value: Vt });
69709
- }, tr.readInt = function(V, ae, Be) {
69710
- for (var Fe = this.options.ecmaVersion >= 12 && ae === void 0, We = Be && this.input.charCodeAt(this.pos) === 48, lt = this.pos, ut = 0, It = 0, Vt = 0, er = ae ?? 1 / 0; Vt < er; ++Vt, ++this.pos) {
69711
- var Qt = this.input.charCodeAt(this.pos), pr = void 0;
69705
+ }, rr.readInt = function(V, ae, Be) {
69706
+ for (var Fe = this.options.ecmaVersion >= 12 && ae === void 0, We = Be && this.input.charCodeAt(this.pos) === 48, lt = this.pos, ut = 0, It = 0, Vt = 0, tr = ae ?? 1 / 0; Vt < tr; ++Vt, ++this.pos) {
69707
+ var Qt = this.input.charCodeAt(this.pos), dr = void 0;
69712
69708
  if (Fe && Qt === 95) {
69713
69709
  We && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), It === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), Vt === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), It = Qt;
69714
69710
  continue;
69715
69711
  }
69716
- if (Qt >= 97 ? pr = Qt - 97 + 10 : Qt >= 65 ? pr = Qt - 65 + 10 : Qt >= 48 && Qt <= 57 ? pr = Qt - 48 : pr = 1 / 0, pr >= V)
69712
+ if (Qt >= 97 ? dr = Qt - 97 + 10 : Qt >= 65 ? dr = Qt - 65 + 10 : Qt >= 48 && Qt <= 57 ? dr = Qt - 48 : dr = 1 / 0, dr >= V)
69717
69713
  break;
69718
- It = Qt, ut = ut * V + pr;
69714
+ It = Qt, ut = ut * V + dr;
69719
69715
  }
69720
69716
  return Fe && It === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === lt || ae != null && this.pos - lt !== ae ? null : ut;
69721
69717
  };
@@ -69725,12 +69721,12 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69725
69721
  function Rn(V) {
69726
69722
  return typeof BigInt != "function" ? null : BigInt(V.replace(/_/g, ""));
69727
69723
  }
69728
- tr.readRadixNumber = function(V) {
69724
+ rr.readRadixNumber = function(V) {
69729
69725
  var ae = this.pos;
69730
69726
  this.pos += 2;
69731
69727
  var Be = this.readInt(V);
69732
69728
  return Be == null && this.raise(this.start + 2, "Expected number in radix " + V), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (Be = Rn(this.input.slice(ae, this.pos)), ++this.pos) : A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(F.num, Be);
69733
- }, tr.readNumber = function(V) {
69729
+ }, rr.readNumber = function(V) {
69734
69730
  var ae = this.pos;
69735
69731
  !V && this.readInt(10, void 0, !0) === null && this.raise(ae, "Invalid number");
69736
69732
  var Be = this.pos - ae >= 2 && this.input.charCodeAt(ae) === 48;
@@ -69743,7 +69739,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69743
69739
  Be && /[89]/.test(this.input.slice(ae, this.pos)) && (Be = !1), Fe === 46 && !Be && (++this.pos, this.readInt(10), Fe = this.input.charCodeAt(this.pos)), (Fe === 69 || Fe === 101) && !Be && (Fe = this.input.charCodeAt(++this.pos), (Fe === 43 || Fe === 45) && ++this.pos, this.readInt(10) === null && this.raise(ae, "Invalid number")), A(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
69744
69740
  var lt = qn(this.input.slice(ae, this.pos), Be);
69745
69741
  return this.finishToken(F.num, lt);
69746
- }, tr.readCodePoint = function() {
69742
+ }, rr.readCodePoint = function() {
69747
69743
  var V = this.input.charCodeAt(this.pos), ae;
69748
69744
  if (V === 123) {
69749
69745
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -69752,7 +69748,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69752
69748
  } else
69753
69749
  ae = this.readHexChar(4);
69754
69750
  return ae;
69755
- }, tr.readString = function(V) {
69751
+ }, rr.readString = function(V) {
69756
69752
  for (var ae = "", Be = ++this.pos; ; ) {
69757
69753
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
69758
69754
  var Fe = this.input.charCodeAt(this.pos);
@@ -69763,7 +69759,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69763
69759
  return ae += this.input.slice(Be, this.pos++), this.finishToken(F.string, ae);
69764
69760
  };
69765
69761
  var An = {};
69766
- tr.tryReadTemplateToken = function() {
69762
+ rr.tryReadTemplateToken = function() {
69767
69763
  this.inTemplateElement = !0;
69768
69764
  try {
69769
69765
  this.readTmplToken();
@@ -69774,11 +69770,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69774
69770
  throw V;
69775
69771
  }
69776
69772
  this.inTemplateElement = !1;
69777
- }, tr.invalidStringToken = function(V, ae) {
69773
+ }, rr.invalidStringToken = function(V, ae) {
69778
69774
  if (this.inTemplateElement && this.options.ecmaVersion >= 9)
69779
69775
  throw An;
69780
69776
  this.raise(V, ae);
69781
- }, tr.readTmplToken = function() {
69777
+ }, rr.readTmplToken = function() {
69782
69778
  for (var V = "", ae = this.pos; ; ) {
69783
69779
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
69784
69780
  var Be = this.input.charCodeAt(this.pos);
@@ -69802,7 +69798,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69802
69798
  } else
69803
69799
  ++this.pos;
69804
69800
  }
69805
- }, tr.readInvalidTemplateToken = function() {
69801
+ }, rr.readInvalidTemplateToken = function() {
69806
69802
  for (; this.pos < this.input.length; this.pos++)
69807
69803
  switch (this.input[this.pos]) {
69808
69804
  case "\\":
@@ -69824,7 +69820,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69824
69820
  break;
69825
69821
  }
69826
69822
  this.raise(this.start, "Unterminated template");
69827
- }, tr.readEscapedChar = function(V) {
69823
+ }, rr.readEscapedChar = function(V) {
69828
69824
  var ae = this.input.charCodeAt(++this.pos);
69829
69825
  switch (++this.pos, ae) {
69830
69826
  case 110:
@@ -69861,10 +69857,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69861
69857
  }
69862
69858
  return oe(ae) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(ae);
69863
69859
  }
69864
- }, tr.readHexChar = function(V) {
69860
+ }, rr.readHexChar = function(V) {
69865
69861
  var ae = this.pos, Be = this.readInt(16, V);
69866
69862
  return Be === null && this.invalidStringToken(ae, "Bad character escape sequence"), Be;
69867
- }, tr.readWord1 = function() {
69863
+ }, rr.readWord1 = function() {
69868
69864
  this.containsEsc = !1;
69869
69865
  for (var V = "", ae = !0, Be = this.pos, Fe = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
69870
69866
  var We = this.fullCharCodeAtPos();
@@ -69881,7 +69877,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
69881
69877
  ae = !1;
69882
69878
  }
69883
69879
  return V + this.input.slice(Be, this.pos);
69884
- }, tr.readWord = function() {
69880
+ }, rr.readWord = function() {
69885
69881
  var V = this.readWord1(), ae = F.name;
69886
69882
  return this.keywords.test(V) && (ae = Q[V]), this.finishToken(ae, V);
69887
69883
  };
@@ -73224,7 +73220,7 @@ function ProductCard({
73224
73220
  shopifyHostname: f,
73225
73221
  customAction: g = /* @__PURE__ */ jsx(Fragment$1, {})
73226
73222
  }) {
73227
- var at, st, Ue, Ct, Je, mt, $t, Dt, Ut, Ft, Ke, it;
73223
+ var at, st, Ue, Ct, Je, mt, $t, Dt, qt, Ft, Ke, it;
73228
73224
  const b = useRef(null), S = useIntersectionObserver({
73229
73225
  elementRef: b,
73230
73226
  threshold: 0.1,
@@ -73572,7 +73568,7 @@ function ProductCard({
73572
73568
  /* @__PURE__ */ jsx(Eye, { className: "mr-2" }),
73573
73569
  "View Product"
73574
73570
  ] }) }),
73575
- ((Ut = e.Distribution) == null ? void 0 : Ut.Inventory) && /* @__PURE__ */ jsx("div", { className: "mt-4", children: se != null && se.IsReseller && rt <= 0 && ze <= 0 ? /* @__PURE__ */ jsxs(Dialog, { open: j, onOpenChange: F, children: [
73571
+ ((qt = e.Distribution) == null ? void 0 : qt.Inventory) && /* @__PURE__ */ jsx("div", { className: "mt-4", children: se != null && se.IsReseller && rt <= 0 && ze <= 0 ? /* @__PURE__ */ jsxs(Dialog, { open: j, onOpenChange: F, children: [
73576
73572
  /* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Button, { variant: "ghost", className: "flex products-center text-sm reseller-theme text-primary", children: [
73577
73573
  /* @__PURE__ */ jsx(Warehouse, { size: "16", className: "mr-2" }),
73578
73574
  "Request to stock"