@builder.io/sdk-react-nextjs 0.12.7 → 0.12.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-456ca2b5.js → USE_CLIENT_BUNDLE-164b0828.js} +169 -175
  2. package/lib/browser/USE_CLIENT_BUNDLE-a350a268.cjs +21 -0
  3. package/lib/{edge/USE_SERVER_BUNDLE-dffaa191.js → browser/USE_SERVER_BUNDLE-5219d3fc.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-dbf92938.cjs → browser/USE_SERVER_BUNDLE-b1e8364e.cjs} +1 -1
  5. package/lib/browser/{bundle-a408994f.cjs → bundle-f375f07b.cjs} +19 -19
  6. package/lib/browser/{bundle-56e0b400.js → bundle-f83a1ca5.js} +345 -298
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +20 -19
  9. package/lib/{node/USE_CLIENT_BUNDLE-499aeaa2.js → edge/USE_CLIENT_BUNDLE-b8d07605.js} +169 -175
  10. package/lib/edge/USE_CLIENT_BUNDLE-f1ccd54b.cjs +21 -0
  11. package/lib/{node/USE_SERVER_BUNDLE-b3ad9a89.cjs → edge/USE_SERVER_BUNDLE-2e4c0a0a.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-e3da6caa.js → edge/USE_SERVER_BUNDLE-cd7a6238.js} +1 -1
  13. package/lib/edge/{bundle-4bf88f38.js → bundle-3da03df6.js} +386 -339
  14. package/lib/edge/{bundle-97ad81d1.cjs → bundle-5b207761.cjs} +25 -25
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +20 -19
  17. package/lib/{edge/USE_CLIENT_BUNDLE-789e694f.js → node/USE_CLIENT_BUNDLE-e0108fb4.js} +169 -175
  18. package/lib/node/USE_CLIENT_BUNDLE-e31c74cc.cjs +21 -0
  19. package/lib/{browser/USE_SERVER_BUNDLE-ee4a5d19.cjs → node/USE_SERVER_BUNDLE-29398256.cjs} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-e0f1c15b.js → node/USE_SERVER_BUNDLE-3e951ab1.js} +1 -1
  21. package/lib/node/{bundle-d3f89e99.js → bundle-6c5cef2d.js} +62 -15
  22. package/lib/node/{bundle-97b4832a.cjs → bundle-83186530.cjs} +9 -9
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +20 -19
  25. package/package.json +1 -1
  26. package/types/cjs/components/content-variants/helpers.d.ts +1 -1
  27. package/types/cjs/constants/sdk-version.d.ts +1 -1
  28. package/types/cjs/helpers/preview-lru-cache/get.d.ts +1 -1
  29. package/types/cjs/helpers/subscribe-to-editor.d.ts +35 -0
  30. package/types/cjs/server-index.d.ts +18 -3
  31. package/types/esm/components/content-variants/helpers.d.ts +1 -1
  32. package/types/esm/constants/sdk-version.d.ts +1 -1
  33. package/types/esm/helpers/preview-lru-cache/get.d.ts +1 -1
  34. package/types/esm/helpers/subscribe-to-editor.d.ts +35 -0
  35. package/types/esm/server-index.d.ts +18 -3
  36. package/lib/browser/USE_CLIENT_BUNDLE-9d2b983d.cjs +0 -21
  37. package/lib/edge/USE_CLIENT_BUNDLE-a6a0becc.cjs +0 -21
  38. package/lib/node/USE_CLIENT_BUNDLE-b2f9be29.cjs +0 -21
@@ -1,9 +1,9 @@
1
- import { LRUCache as eo } from "lru-cache";
1
+ import { LRUCache as to } from "lru-cache";
2
2
  import { jsx as C, Fragment as L, jsxs as xe } from "react/jsx-runtime";
3
- import { I as to, B as no, a as ro, D as oo, b as io, C as ao, E as so, F as lo, c as co, d as uo, S as fo, V as po, e as ho } from "./USE_CLIENT_BUNDLE-789e694f.js";
3
+ import { I as no, B as ro, a as oo, D as io, b as ao, C as so, E as lo, F as co, c as uo, d as fo, S as po, V as ho, e as mo } from "./USE_CLIENT_BUNDLE-b8d07605.js";
4
4
  import "react";
5
5
  import "next/navigation";
6
- const mo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Da = (e) => typeof e == "string" && mo.has(e.toLowerCase()), he = "rsc", Xt = () => {
6
+ const go = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), _a = (e) => typeof e == "string" && go.has(e.toLowerCase()), he = "rsc", Xt = () => {
7
7
  switch (he) {
8
8
  case "react":
9
9
  case "reactNative":
@@ -16,7 +16,7 @@ const mo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
16
16
  return "class";
17
17
  }
18
18
  };
19
- function go(e) {
19
+ function yo(e) {
20
20
  var t;
21
21
  return {
22
22
  ...(t = e.component) == null ? void 0 : t.options,
@@ -27,7 +27,7 @@ function go(e) {
27
27
  builderBlock: e
28
28
  };
29
29
  }
30
- const at = "[Builder.io]: ", z = {
30
+ const at = "[Builder.io]: ", X = {
31
31
  log: (...e) => console.log(at, ...e),
32
32
  error: (...e) => console.error(at, ...e),
33
33
  warn: (...e) => console.warn(at, ...e),
@@ -36,20 +36,20 @@ const at = "[Builder.io]: ", z = {
36
36
  function G() {
37
37
  return typeof window < "u" && typeof document < "u";
38
38
  }
39
- function yo() {
39
+ function vo() {
40
40
  return G() && window.self !== window.top;
41
41
  }
42
- function Yt() {
43
- return yo() && window.location.search.indexOf("builder.frameEditing=") !== -1;
42
+ function Jt() {
43
+ return vo() && window.location.search.indexOf("builder.frameEditing=") !== -1;
44
44
  }
45
- const vo = () => {
45
+ const bo = () => {
46
46
  if (G()) {
47
47
  const e = new URL(location.href);
48
48
  return e.pathname === "" && (e.pathname = "/"), e;
49
49
  } else
50
50
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
51
- }, bo = () => typeof navigator == "object" && navigator.userAgent || "", lr = () => {
52
- const e = bo(), t = {
51
+ }, So = () => typeof navigator == "object" && navigator.userAgent || "", lr = () => {
52
+ const e = So(), t = {
53
53
  Android() {
54
54
  return e.match(/Android/i);
55
55
  },
@@ -68,7 +68,7 @@ const vo = () => {
68
68
  any() {
69
69
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || he === "reactNative";
70
70
  }
71
- }, n = e.match(/Tablet|iPad/i), r = vo();
71
+ }, n = e.match(/Tablet|iPad/i), r = bo();
72
72
  return {
73
73
  urlPath: r == null ? void 0 : r.pathname,
74
74
  host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
@@ -86,14 +86,14 @@ const vo = () => {
86
86
  builder: e,
87
87
  context: t,
88
88
  event: n
89
- }), So = () => ({
90
- isEditing: Yt(),
89
+ }), wo = () => ({
90
+ isEditing: Jt(),
91
91
  isBrowser: G(),
92
92
  isServer: !G(),
93
93
  getUserAttributes: () => lr()
94
- }), wo = (e, {
94
+ }), xo = (e, {
95
95
  isExpression: t = !0
96
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, xo = ({
96
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ko = ({
97
97
  code: e,
98
98
  builder: t,
99
99
  context: n,
@@ -145,9 +145,9 @@ const fr = (e, t, n) => {
145
145
  const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
146
146
  return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
147
147
  };
148
- var N, ko = function(e) {
148
+ var N, Co = function(e) {
149
149
  function t(a) {
150
- return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Zr.test(String.fromCharCode(a));
150
+ return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Qr.test(String.fromCharCode(a));
151
151
  }
152
152
  function n(a) {
153
153
  return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Ln.test(String.fromCharCode(a));
@@ -210,7 +210,7 @@ var N, ko = function(e) {
210
210
  break;
211
211
  else if (a === 160)
212
212
  ++f;
213
- else if (5760 <= a && qr.test(String.fromCharCode(a)))
213
+ else if (5760 <= a && Zr.test(String.fromCharCode(a)))
214
214
  ++f;
215
215
  else
216
216
  break;
@@ -327,22 +327,22 @@ var N, ko = function(e) {
327
327
  return;
328
328
  case 124:
329
329
  case 38:
330
- l = g.charCodeAt(f + 1), l === a ? S(a === 124 ? Dn : Vn, 2) : l === 61 ? S(we, 2) : S(a === 124 ? Lr : $r, 1);
330
+ l = g.charCodeAt(f + 1), l === a ? S(a === 124 ? Dn : Vn, 2) : l === 61 ? S(we, 2) : S(a === 124 ? Wr : Hr, 1);
331
331
  return;
332
332
  case 94:
333
- g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Wr, 1);
333
+ g.charCodeAt(f + 1) === 61 ? S(we, 2) : S($r, 1);
334
334
  return;
335
335
  case 43:
336
336
  case 45:
337
- l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && ot.test(g.slice(ge, f)) ? (f += 3, u(), d(), E()) : S(_r, 2) : l === 61 ? S(we, 2) : S(Xr, 1);
337
+ l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && ot.test(g.slice(ge, f)) ? (f += 3, u(), d(), E()) : S(Lr, 2) : l === 61 ? S(we, 2) : S(Jr, 1);
338
338
  return;
339
339
  case 60:
340
340
  case 62:
341
- l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? S(we, c + 1) : S(Gr, c)) : l === 33 && a === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), E()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), S(Kr, c));
341
+ l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? S(we, c + 1) : S(Xr, c)) : l === 33 && a === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), E()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), S(Gr, c));
342
342
  return;
343
343
  case 61:
344
344
  case 33:
345
- g.charCodeAt(f + 1) === 61 ? S(Hr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : S(a === 61 ? Mn : Fn, 1);
345
+ g.charCodeAt(f + 1) === 61 ? S(Kr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : S(a === 61 ? Mn : Fn, 1);
346
346
  return;
347
347
  case 126:
348
348
  return S(Fn, 1);
@@ -393,10 +393,10 @@ var N, ko = function(e) {
393
393
  }
394
394
  function j(a, l) {
395
395
  for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l, _ = 0; _ < T; ++_) {
396
- var X = g.charCodeAt(f);
397
- if (X = 97 <= X ? X - 97 + 10 : 65 <= X ? X - 65 + 10 : 48 <= X && 57 >= X ? X - 48 : 1 / 0, X >= a)
396
+ var J = g.charCodeAt(f);
397
+ if (J = 97 <= J ? J - 97 + 10 : 65 <= J ? J - 65 + 10 : 48 <= J && 57 >= J ? J - 48 : 1 / 0, J >= a)
398
398
  break;
399
- ++f, p = p * a + X;
399
+ ++f, p = p * a + J;
400
400
  }
401
401
  return f === c || l !== void 0 && f - c !== l ? null : p;
402
402
  }
@@ -427,7 +427,7 @@ var N, ko = function(e) {
427
427
  }
428
428
  function $() {
429
429
  var a = B(), l = Ee;
430
- !Te && zr(a) && (l = Vr[a]), s(l, a);
430
+ !Te && qr(a) && (l = _r[a]), s(l, a);
431
431
  }
432
432
  function m() {
433
433
  It = V, ge = Ce, Tt = Et, E();
@@ -505,7 +505,7 @@ var N, ko = function(e) {
505
505
  case Cn:
506
506
  return Fe || O.Ib || r(V, "'return' outside of function"), m(), M(ce) || Ze() ? l.K = null : (l.K = K(), be()), A(l, "ReturnStatement");
507
507
  case Pt:
508
- for (m(), l.Qb = Ne(), l.tb = [], F(Ve), D.push(Qr); I !== Ie; )
508
+ for (m(), l.Qb = Ne(), l.tb = [], F(Ve), D.push(eo); I !== Ie; )
509
509
  I === jt || I === vn ? (a = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = U()), p.da = [], m(), a ? p.test = K() : (c && r(It, "Multiple default clauses"), c = !0, p.test = null), F(_e)) : (p || ie(), p.da.push(ne()));
510
510
  return p && A(p, "SwitchCase"), m(), D.pop(), A(l, "SwitchStatement");
511
511
  case En:
@@ -643,8 +643,8 @@ var N, ko = function(e) {
643
643
  } else
644
644
  p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ie() : (T = c = !0, _ = p.kind = p.key.name, p.key = I === De || I === tt ? et() : ae(!0), I !== le && ie(), p.value = wt(U(), !1));
645
645
  if (p.key.type === "Identifier" && (q || c))
646
- for (var X = 0; X < a.h.length; ++X) {
647
- var Ae = a.h[X];
646
+ for (var J = 0; J < a.h.length; ++J) {
647
+ var Ae = a.h[J];
648
648
  if (Ae.key.name === p.key.name) {
649
649
  var Dt = _ === Ae.kind || T && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
650
650
  Dt && !q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(p.key.start, "Redefinition of property");
@@ -656,7 +656,7 @@ var N, ko = function(e) {
656
656
  case Rt:
657
657
  return a = U(), m(), wt(a, !1);
658
658
  case An:
659
- return a = U(), m(), a.callee = Ue(et(), !0), a.arguments = M(le) ? xt(re, !1) : Dr, A(a, "NewExpression");
659
+ return a = U(), m(), a.callee = Ue(et(), !0), a.arguments = M(le) ? xt(re, !1) : Vr, A(a, "NewExpression");
660
660
  }
661
661
  ie();
662
662
  }
@@ -687,7 +687,7 @@ var N, ko = function(e) {
687
687
  }
688
688
  function ae(a) {
689
689
  var l = U();
690
- return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && Jr(Q) || q && _n(Q)) && g.slice(V, Ce).indexOf("\\") === -1 && r(V, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ie(), Me = !1, m(), A(l, "Identifier");
690
+ return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && zr(Q) || q && _n(Q)) && g.slice(V, Ce).indexOf("\\") === -1 && r(V, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ie(), Me = !1, m(), A(l, "Identifier");
691
691
  }
692
692
  e.version = "0.5.0";
693
693
  var O, g = "", ke, kt;
@@ -710,7 +710,7 @@ var N, ko = function(e) {
710
710
  dc: null,
711
711
  sourceFile: null,
712
712
  vb: null
713
- }, f = 0, V = 0, Ce = 0, Ct, Et, I, Q, Me, Se, se, It = 0, ge = 0, Tt, Fe, D, q, Dr = [], De = {
713
+ }, f = 0, V = 0, Ce = 0, Ct, Et, I, Q, Me, Se, se, It = 0, ge = 0, Tt, Fe, D, q, Vr = [], De = {
714
714
  type: "num"
715
715
  }, hn = {
716
716
  type: "regexp"
@@ -783,7 +783,7 @@ var N, ko = function(e) {
783
783
  l: "in",
784
784
  L: 7,
785
785
  m: !0
786
- }, Vr = {
786
+ }, _r = {
787
787
  break: Ot,
788
788
  case: jt,
789
789
  catch: mn,
@@ -867,7 +867,7 @@ var N, ko = function(e) {
867
867
  }, we = {
868
868
  Cb: !0,
869
869
  m: !0
870
- }, _r = {
870
+ }, Lr = {
871
871
  cc: !0,
872
872
  prefix: !0,
873
873
  $b: !0
@@ -880,38 +880,38 @@ var N, ko = function(e) {
880
880
  }, Vn = {
881
881
  L: 2,
882
882
  m: !0
883
- }, Lr = {
883
+ }, Wr = {
884
884
  L: 3,
885
885
  m: !0
886
- }, Wr = {
886
+ }, $r = {
887
887
  L: 4,
888
888
  m: !0
889
- }, $r = {
889
+ }, Hr = {
890
890
  L: 5,
891
891
  m: !0
892
- }, Hr = {
892
+ }, Kr = {
893
893
  L: 6,
894
894
  m: !0
895
- }, Kr = {
895
+ }, Gr = {
896
896
  L: 7,
897
897
  m: !0
898
- }, Gr = {
898
+ }, Xr = {
899
899
  L: 8,
900
900
  m: !0
901
- }, Xr = {
901
+ }, Jr = {
902
902
  L: 9,
903
903
  prefix: !0,
904
904
  m: !0
905
905
  }, Yr = {
906
906
  L: 10,
907
907
  m: !0
908
- }, Jr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), zr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), qr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Zr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ft = {
908
+ }, zr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), qr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Zr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Qr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ft = {
909
909
  kind: "loop"
910
- }, Qr = {
910
+ }, eo = {
911
911
  kind: "switch"
912
912
  };
913
913
  }, Lt = Lt = typeof globalThis > "u" ? void 0 : globalThis;
914
- ko(Lt.j || (Lt.j = {}));
914
+ Co(Lt.j || (Lt.j = {}));
915
915
  function h(e, t) {
916
916
  typeof e == "string" && (e = je(e, "code"));
917
917
  var n = e.constructor;
@@ -933,7 +933,7 @@ function h(e, t) {
933
933
  var Wn = {
934
934
  C: !0,
935
935
  kc: 5
936
- }, Jt = {
936
+ }, Yt = {
937
937
  configurable: !0,
938
938
  enumerable: !0,
939
939
  writable: !1
@@ -941,7 +941,7 @@ var Wn = {
941
941
  configurable: !0,
942
942
  enumerable: !1,
943
943
  writable: !0
944
- }, J = {
944
+ }, z = {
945
945
  configurable: !0,
946
946
  enumerable: !1,
947
947
  writable: !1
@@ -957,11 +957,11 @@ var Wn = {
957
957
  STEP_ERROR: !0
958
958
  }, Pe = {
959
959
  SCOPE_REFERENCE: !0
960
- }, Ye = {
960
+ }, Je = {
961
961
  VALUE_IN_DESCRIPTOR: !0
962
962
  }, Oe = {
963
963
  REGEXP_TIMEOUT: !0
964
- }, Hn = [], fe = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Co = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
964
+ }, Hn = [], fe = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Eo = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
965
965
  function zt(e) {
966
966
  var t = e >>> 0;
967
967
  return t === Number(e) ? t : NaN;
@@ -998,7 +998,7 @@ N.Jb = function(e) {
998
998
  throw Error("Expecting original AST to start with a Program node");
999
999
  if (typeof e == "string" && (e = je(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
1000
1000
  throw Error("Expecting new AST to start with a Program node");
1001
- Je(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
1001
+ Ye(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
1002
1002
  };
1003
1003
  N.lb = function() {
1004
1004
  var e = this.o, t;
@@ -1043,8 +1043,8 @@ N.Eb = function() {
1043
1043
  ;
1044
1044
  return this.za;
1045
1045
  };
1046
- function Eo(e, t) {
1047
- e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Jt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), Io(e, t), To(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Bo(e, t), Uo(e, t), Mo(e, t);
1046
+ function Io(e, t) {
1047
+ e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Yt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), To(e, t), Ao(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Bo(e, t), Uo(e, t), Mo(e, t), Fo(e, t);
1048
1048
  var n = e.i(function() {
1049
1049
  throw EvalError("Can't happen");
1050
1050
  }, !1);
@@ -1070,7 +1070,7 @@ function Eo(e, t) {
1070
1070
  }, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
1071
1071
  }
1072
1072
  N.Wb = 0;
1073
- function Io(e, t) {
1073
+ function To(e, t) {
1074
1074
  var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
1075
1075
  var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1076
1076
  if (s) {
@@ -1089,7 +1089,7 @@ function Io(e, t) {
1089
1089
  return k.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Qt(e, k.body[0].la, e.N, "anonymous");
1090
1090
  };
1091
1091
  e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
1092
- }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(o, i) {
1092
+ }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, z), e.Z.H = "Function", r = function(o, i) {
1093
1093
  var s = e.o[e.o.length - 1];
1094
1094
  s.U = this, s.B = o, s.F = [], i != null && (i instanceof R ? s.F = dr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
1095
1095
  }, W(e, e.O, "apply", r), r = function(o) {
@@ -1104,7 +1104,7 @@ function Io(e, t) {
1104
1104
  return this.valueOf();
1105
1105
  }, W(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
1106
1106
  }
1107
- function To(e, t) {
1107
+ function Ao(e, t) {
1108
1108
  function n(o) {
1109
1109
  o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
1110
1110
  }
@@ -1124,7 +1124,7 @@ function To(e, t) {
1124
1124
  }, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
1125
1125
  return o === null ? e.s(null) : (o instanceof R || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
1126
1126
  }, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
1127
- return i = String(i), o instanceof R || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof R || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Ye, s.h), o;
1127
+ return i = String(i), o instanceof R || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof R || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Je, s.h), o;
1128
1128
  }, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
1129
1129
  if (o instanceof R || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
1130
1130
  var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
@@ -1149,7 +1149,7 @@ function To(e, t) {
1149
1149
  }
1150
1150
  }, W(e, e.v, "isPrototypeOf", r);
1151
1151
  }
1152
- function Ao(e, t) {
1152
+ function Oo(e, t) {
1153
1153
  var n = function(r) {
1154
1154
  var o = de(e) ? this : Re(e), i = arguments[0];
1155
1155
  if (arguments.length === 1 && typeof i == "number")
@@ -1169,7 +1169,7 @@ function Ao(e, t) {
1169
1169
  writable: !0
1170
1170
  }), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
1171
1171
  }
1172
- function Oo(e, t) {
1172
+ function jo(e, t) {
1173
1173
  var n = function(r) {
1174
1174
  return r = arguments.length ? ve.String(r) : "", de(e) ? (this.data = r, this) : r;
1175
1175
  };
@@ -1252,12 +1252,12 @@ function Oo(e, t) {
1252
1252
  i(s.replace(r, o));
1253
1253
  }, Ke(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
1254
1254
  }
1255
- function jo(e, t) {
1255
+ function Ro(e, t) {
1256
1256
  e.mb = e.i(function(n) {
1257
1257
  return n = ve.Boolean(n), de(e) ? (this.data = n, this) : n;
1258
1258
  }, !0), e.g(t, "Boolean", e.mb, y);
1259
1259
  }
1260
- function Ro(e, t) {
1260
+ function Po(e, t) {
1261
1261
  var n = function(r) {
1262
1262
  return r = arguments.length ? ve.Number(r) : 0, de(e) ? (this.data = r, this) : r;
1263
1263
  };
@@ -1296,7 +1296,7 @@ function Ro(e, t) {
1296
1296
  }
1297
1297
  }, W(e, e.aa, "toLocaleString", n);
1298
1298
  }
1299
- function Po(e, t) {
1299
+ function No(e, t) {
1300
1300
  var n = function(o, i) {
1301
1301
  if (!de(e))
1302
1302
  return ve.Date();
@@ -1315,7 +1315,7 @@ function Po(e, t) {
1315
1315
  };
1316
1316
  }(t[r]), W(e, e.$, t[r], n);
1317
1317
  }
1318
- function No(e, t) {
1318
+ function Bo(e, t) {
1319
1319
  var n = function(r, o) {
1320
1320
  if (de(e))
1321
1321
  var i = this;
@@ -1332,7 +1332,7 @@ function No(e, t) {
1332
1332
  }
1333
1333
  return qt(e, i, s), i;
1334
1334
  };
1335
- e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
1335
+ e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, z), e.g(e.I.h.prototype, "ignoreCase", void 0, z), e.g(e.I.h.prototype, "multiline", void 0, z), e.g(e.I.h.prototype, "source", "(?:)", z), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
1336
1336
  function i(E) {
1337
1337
  if (E) {
1338
1338
  var S = ue(e, E);
@@ -1357,7 +1357,7 @@ function No(e, t) {
1357
1357
  r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
1358
1358
  }, Ke(e, e.I, "exec", n);
1359
1359
  }
1360
- function Bo(e, t) {
1360
+ function Uo(e, t) {
1361
1361
  function n(r) {
1362
1362
  var o = e.i(function(i) {
1363
1363
  var s = de(e) ? this : e.Aa(o);
@@ -1370,16 +1370,16 @@ function Bo(e, t) {
1370
1370
  return Wt(e, o, r), o;
1371
1371
  }, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
1372
1372
  }
1373
- function Uo(e, t) {
1373
+ function Mo(e, t) {
1374
1374
  var n = e.s(e.M);
1375
1375
  e.g(t, "Math", n, y);
1376
1376
  var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
1377
1377
  for (t = 0; t < r.length; t++)
1378
- e.g(n, r[t], Math[r[t]], J);
1378
+ e.g(n, r[t], Math[r[t]], z);
1379
1379
  for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
1380
1380
  e.g(n, r[t], e.i(Math[r[t]], !1), y);
1381
1381
  }
1382
- function Mo(e, t) {
1382
+ function Fo(e, t) {
1383
1383
  var n = e.s(e.M);
1384
1384
  e.g(t, "JSON", n, y), t = function(r) {
1385
1385
  try {
@@ -1413,7 +1413,7 @@ function H(e, t, n) {
1413
1413
  return !1;
1414
1414
  }
1415
1415
  function qt(e, t, n) {
1416
- t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, J), e.g(t, "global", n.global, J), e.g(t, "ignoreCase", n.ignoreCase, J), e.g(t, "multiline", n.multiline, J);
1416
+ t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, z), e.g(t, "global", n.global, z), e.g(t, "ignoreCase", n.ignoreCase, z), e.g(t, "multiline", n.multiline, z);
1417
1417
  }
1418
1418
  function Wt(e, t, n) {
1419
1419
  n && e.g(t, "message", String(n), y), n = [];
@@ -1434,7 +1434,7 @@ function Wt(e, t, n) {
1434
1434
  }
1435
1435
  N.ha = function() {
1436
1436
  var e = this.ha.Mb;
1437
- return e || (e = new Blob([Co.join(`
1437
+ return e || (e = new Blob([Eo.join(`
1438
1438
  `)], {
1439
1439
  type: "application/javascript"
1440
1440
  }), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
@@ -1496,18 +1496,18 @@ function Re(e) {
1496
1496
  }
1497
1497
  function Zt(e, t, n) {
1498
1498
  var r = e.s(e.Z);
1499
- return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, J), r.H = "Function", r;
1499
+ return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, z), r.H = "Function", r;
1500
1500
  }
1501
1501
  function Qt(e, t, n, r) {
1502
1502
  var o = Zt(e, t.oa.length, !0);
1503
- return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", J), o;
1503
+ return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", z), o;
1504
1504
  }
1505
1505
  N.i = function(e, t) {
1506
- return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
1506
+ return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
1507
1507
  };
1508
1508
  N.ub = function(e) {
1509
1509
  var t = Zt(this, e.length, !0);
1510
- return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
1510
+ return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
1511
1511
  };
1512
1512
  N.Ia = function(e) {
1513
1513
  if (e instanceof R)
@@ -1657,7 +1657,7 @@ N.g = function(e, t, n, r) {
1657
1657
  isNaN(s = Xe(t)) || (e.h.length = Math.max(i, s + 1));
1658
1658
  if (!e.preventExtensions || t in e.h)
1659
1659
  if (r) {
1660
- o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Ye && (o.value = n, delete e.V[t], delete e.Y[t]);
1660
+ o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Je && (o.value = n, delete e.V[t], delete e.Y[t]);
1661
1661
  try {
1662
1662
  Object.defineProperty(e.h, t, o);
1663
1663
  } catch {
@@ -1665,7 +1665,7 @@ N.g = function(e, t, n, r) {
1665
1665
  }
1666
1666
  "get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
1667
1667
  } else {
1668
- if (n === Ye)
1668
+ if (n === Je)
1669
1669
  throw ReferenceError("Value not specified");
1670
1670
  for (r = e; !(t in r.h); )
1671
1671
  if (r = pe(this, r), !r) {
@@ -1713,7 +1713,7 @@ function $t(e, t, n) {
1713
1713
  var o = t.body && t.body[0];
1714
1714
  o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
1715
1715
  }
1716
- return o = e.s(null), r = new gr(n, r, o), n || Eo(e, r.object), Je(e, t, r), r;
1716
+ return o = e.s(null), r = new gr(n, r, o), n || Io(e, r.object), Ye(e, t, r), r;
1717
1717
  }
1718
1718
  function tn(e, t, n) {
1719
1719
  if (!t)
@@ -1746,7 +1746,7 @@ function hr(e, t, n) {
1746
1746
  return e.g(r.object, t, n);
1747
1747
  w(e, e.pb, t + " is not defined");
1748
1748
  }
1749
- function Je(e, t, n) {
1749
+ function Ye(e, t, n) {
1750
1750
  if (t.jb)
1751
1751
  var r = t.jb;
1752
1752
  else {
@@ -1779,12 +1779,12 @@ function Je(e, t, n) {
1779
1779
  if (Array.isArray(u)) {
1780
1780
  for (o = 0; o < u.length; o++)
1781
1781
  if (u[o] && u[o].constructor === i) {
1782
- var d = Je(e, u[o], n);
1782
+ var d = Ye(e, u[o], n);
1783
1783
  for (s in d)
1784
1784
  r[s] = d[s];
1785
1785
  }
1786
1786
  } else if (u.constructor === i)
1787
- for (s in d = Je(e, u, n), d)
1787
+ for (s in d = Ye(e, u, n), d)
1788
1788
  r[s] = d[s];
1789
1789
  }
1790
1790
  }
@@ -1898,7 +1898,7 @@ function Kn(e, t, n) {
1898
1898
  }
1899
1899
  s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
1900
1900
  }
1901
- return t = new Fo(u, o, r, s, t ? n : -1), mr(e, t, n), t.Db;
1901
+ return t = new Do(u, o, r, s, t ? n : -1), mr(e, t, n), t.Db;
1902
1902
  }
1903
1903
  function mr(e, t, n) {
1904
1904
  t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
@@ -2002,10 +2002,10 @@ N.toString = function() {
2002
2002
  N.valueOf = function() {
2003
2003
  return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
2004
2004
  };
2005
- function Fo(e, t, n, r, o) {
2006
- this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Do, this.time = 0;
2005
+ function Do(e, t, n, r, o) {
2006
+ this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Vo, this.time = 0;
2007
2007
  }
2008
- var Do = 0;
2008
+ var Vo = 0;
2009
2009
  h.prototype.stepArrayExpression = function(e, t, n) {
2010
2010
  n = n.elements;
2011
2011
  var r = t.A || 0;
@@ -2194,7 +2194,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
2194
2194
  this.g(r, o, t.F[o]);
2195
2195
  for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
2196
2196
  this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
2197
- return n.S || (t.B = Vt(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new b(e.body, n);
2197
+ return n.S || (t.B = Vt(this, t.B)), this.g(n.object, "this", t.B, Yt), t.value = void 0, new b(e.body, n);
2198
2198
  }
2199
2199
  if (o.eval)
2200
2200
  if (o = t.F[0], typeof o != "string")
@@ -2205,7 +2205,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
2205
2205
  } catch (u) {
2206
2206
  w(this, this.T, "Invalid code: " + u.message);
2207
2207
  }
2208
- return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Je(this, r, n), this.value = void 0, new b(o, n);
2208
+ return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Ye(this, r, n), this.value = void 0, new b(o, n);
2209
2209
  }
2210
2210
  else if (o.Ta)
2211
2211
  t.scope.S || (t.B = Vt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
@@ -2324,7 +2324,7 @@ h.prototype.stepFunctionDeclaration = function(e) {
2324
2324
  e.pop();
2325
2325
  };
2326
2326
  h.prototype.stepFunctionExpression = function(e, t, n) {
2327
- e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = tn(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Jt);
2327
+ e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = tn(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Yt);
2328
2328
  };
2329
2329
  h.prototype.stepIdentifier = function(e, t, n) {
2330
2330
  if (e.pop(), t.sa)
@@ -2391,7 +2391,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
2391
2391
  return t.Pa = i, new b(o.value, t.scope);
2392
2392
  }
2393
2393
  for (s in t.Ja)
2394
- n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Ye, {
2394
+ n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Je, {
2395
2395
  configurable: !0,
2396
2396
  enumerable: !0,
2397
2397
  get: n.get,
@@ -2552,8 +2552,8 @@ h.prototype.pseudoToNative = h.prototype.R;
2552
2552
  h.prototype.getGlobalScope = h.prototype.Xb;
2553
2553
  h.prototype.getStateStack = h.prototype.Yb;
2554
2554
  h.prototype.setStateStack = h.prototype.ec;
2555
- h.VALUE_IN_DESCRIPTOR = Ye;
2556
- const Vo = (e) => e.split(`
2555
+ h.VALUE_IN_DESCRIPTOR = Je;
2556
+ const _o = (e) => e.split(`
2557
2557
  `).map((t) => {
2558
2558
  const n = t.trim();
2559
2559
  if (t.includes("__awaiter"))
@@ -2566,7 +2566,7 @@ const Vo = (e) => e.split(`
2566
2566
  ${u}
2567
2567
  `;
2568
2568
  }).filter(Boolean).join(`
2569
- `), Xn = (e) => e + "JSON", _o = ({
2569
+ `), Xn = (e) => e + "JSON", Lo = ({
2570
2570
  builder: e,
2571
2571
  context: t,
2572
2572
  event: n,
@@ -2587,9 +2587,9 @@ const Vo = (e) => e.split(`
2587
2587
  const x = Xn(v);
2588
2588
  return `var ${v} = ${x} === undefined ? undefined : JSON.parse(${x});`;
2589
2589
  }).join(`
2590
- `), E = Vo(s);
2590
+ `), E = _o(s);
2591
2591
  if (E === "") {
2592
- z.warn("Skipping evaluation of empty code block.");
2592
+ X.warn("Skipping evaluation of empty code block.");
2593
2593
  return;
2594
2594
  }
2595
2595
  const S = `
@@ -2612,23 +2612,23 @@ theFunction();
2612
2612
  const v = new h(S, j);
2613
2613
  return v.run(), v.pseudoToNative(v.value);
2614
2614
  } catch (v) {
2615
- z.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
2615
+ X.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
2616
2616
  e: v
2617
2617
  });
2618
2618
  return;
2619
2619
  }
2620
2620
  }, oe = (e) => e != null;
2621
- function Lo() {
2621
+ function Wo() {
2622
2622
  var e;
2623
2623
  return typeof process < "u" && oe((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
2624
2624
  }
2625
- const Wo = () => {
2625
+ const $o = () => {
2626
2626
  var r;
2627
- if (!Lo())
2627
+ if (!Wo())
2628
2628
  return !1;
2629
2629
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
2630
- return e && t && !n ? (z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
2631
- }, $o = (e) => G() || Wo() ? xo(e) : _o(e);
2630
+ return e && t && !n ? (X.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
2631
+ }, Ho = (e) => G() || $o() ? ko(e) : Lo(e);
2632
2632
  function sn({
2633
2633
  code: e,
2634
2634
  context: t,
@@ -2639,14 +2639,14 @@ function sn({
2639
2639
  isExpression: s = !0
2640
2640
  }) {
2641
2641
  if (e === "") {
2642
- z.warn("Skipping evaluation of empty code block.");
2642
+ X.warn("Skipping evaluation of empty code block.");
2643
2643
  return;
2644
2644
  }
2645
2645
  const u = {
2646
- code: wo(e, {
2646
+ code: xo(e, {
2647
2647
  isExpression: s
2648
2648
  }),
2649
- builder: So(),
2649
+ builder: wo(),
2650
2650
  context: t,
2651
2651
  event: i,
2652
2652
  rootSetState: o,
@@ -2654,16 +2654,16 @@ function sn({
2654
2654
  localState: n
2655
2655
  };
2656
2656
  try {
2657
- return $o(u);
2657
+ return Ho(u);
2658
2658
  } catch (d) {
2659
- z.error("Failed code evaluation: " + d.message, {
2659
+ X.error("Failed code evaluation: " + d.message, {
2660
2660
  code: e
2661
2661
  });
2662
2662
  return;
2663
2663
  }
2664
2664
  }
2665
2665
  const pt = (e) => JSON.parse(JSON.stringify(e));
2666
- const Ho = ({
2666
+ const Ko = ({
2667
2667
  block: e,
2668
2668
  context: t,
2669
2669
  localState: n,
@@ -2702,7 +2702,7 @@ function ct({
2702
2702
  rootSetState: i
2703
2703
  }) {
2704
2704
  const s = e;
2705
- return n ? Ho({
2705
+ return n ? Ko({
2706
2706
  block: s,
2707
2707
  localState: r,
2708
2708
  rootState: o,
@@ -2710,7 +2710,7 @@ function ct({
2710
2710
  context: t
2711
2711
  }) : s;
2712
2712
  }
2713
- const Ko = ({
2713
+ const Go = ({
2714
2714
  block: e,
2715
2715
  context: t,
2716
2716
  registeredComponents: n
@@ -2732,7 +2732,7 @@ const Ko = ({
2732
2732
  console.warn(`
2733
2733
  Could not find a registered component named "${r}".
2734
2734
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
2735
- }, Go = ({
2735
+ }, Xo = ({
2736
2736
  block: e,
2737
2737
  context: t
2738
2738
  }) => {
@@ -2781,7 +2781,7 @@ const Ko = ({
2781
2781
  default: 991,
2782
2782
  max: 1200
2783
2783
  }
2784
- }, Yn = (e, t = yr) => `@media (max-width: ${t[e].max}px)`, vr = ({
2784
+ }, Jn = (e, t = yr) => `@media (max-width: ${t[e].max}px)`, vr = ({
2785
2785
  small: e,
2786
2786
  medium: t
2787
2787
  }) => {
@@ -2807,9 +2807,9 @@ const Ko = ({
2807
2807
  min: i,
2808
2808
  default: i + 1
2809
2809
  }, n;
2810
- }, Xo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), br = (e) => Object.entries(e).map(([n, r]) => {
2810
+ }, Jo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), br = (e) => Object.entries(e).map(([n, r]) => {
2811
2811
  if (typeof r == "string")
2812
- return `${Xo(n)}: ${r};`;
2812
+ return `${Jo(n)}: ${r};`;
2813
2813
  }).filter(oe), Yo = (e) => br(e).join(`
2814
2814
  `), _t = ({
2815
2815
  mediaQuery: e,
@@ -2826,7 +2826,7 @@ const Ko = ({
2826
2826
  function dt(e) {
2827
2827
  return /* @__PURE__ */ C("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
2828
2828
  }
2829
- function Jo(e) {
2829
+ function zo(e) {
2830
2830
  const t = function() {
2831
2831
  const o = ct({
2832
2832
  block: e.block,
@@ -2857,14 +2857,14 @@ function Jo(e) {
2857
2857
  }) : "", j = k ? _t({
2858
2858
  className: S,
2859
2859
  styles: k,
2860
- mediaQuery: Yn(
2860
+ mediaQuery: Jn(
2861
2861
  "medium",
2862
2862
  u
2863
2863
  )
2864
2864
  }) : "", v = E ? _t({
2865
2865
  className: S,
2866
2866
  styles: E,
2867
- mediaQuery: Yn(
2867
+ mediaQuery: Jn(
2868
2868
  "small",
2869
2869
  u
2870
2870
  )
@@ -2873,10 +2873,10 @@ function Jo(e) {
2873
2873
  };
2874
2874
  return /* @__PURE__ */ C(L, { children: n() && t() ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
2875
2875
  }
2876
- function zo(e) {
2876
+ function qo(e) {
2877
2877
  return e.charAt(0).toUpperCase() + e.slice(1);
2878
2878
  }
2879
- const qo = (e) => `on${zo(e)}`, Zo = (e, t) => (n) => sn({
2879
+ const Zo = (e) => `on${qo(e)}`, Qo = (e, t) => (n) => sn({
2880
2880
  code: e,
2881
2881
  context: t.context,
2882
2882
  localState: t.localState,
@@ -2885,13 +2885,13 @@ const qo = (e) => `on${zo(e)}`, Zo = (e, t) => (n) => sn({
2885
2885
  event: n,
2886
2886
  isExpression: !1
2887
2887
  });
2888
- function Va(e) {
2888
+ function La(e) {
2889
2889
  const t = {}, n = e.block.actions ?? {};
2890
2890
  for (const r in n) {
2891
2891
  if (!n.hasOwnProperty(r))
2892
2892
  continue;
2893
2893
  const o = n[r];
2894
- let i = qo(r);
2894
+ let i = Zo(r);
2895
2895
  if (e.stripPrefix)
2896
2896
  switch (he) {
2897
2897
  case "vue":
@@ -2901,19 +2901,19 @@ function Va(e) {
2901
2901
  i = i.replace("on:", "");
2902
2902
  break;
2903
2903
  }
2904
- t[i] = Zo(o, e);
2904
+ t[i] = Qo(o, e);
2905
2905
  }
2906
2906
  return t;
2907
2907
  }
2908
- function Qo({
2908
+ function ei({
2909
2909
  style: e
2910
2910
  }) {
2911
2911
  return e;
2912
2912
  }
2913
- const ei = ({
2913
+ const ti = ({
2914
2914
  block: e,
2915
2915
  context: t
2916
- }) => Sr(Qo({
2916
+ }) => Sr(ei({
2917
2917
  style: e.style || {},
2918
2918
  context: t,
2919
2919
  block: e
@@ -2931,36 +2931,36 @@ function Sr(e) {
2931
2931
  return e;
2932
2932
  }
2933
2933
  }
2934
- function ti({
2934
+ function ni({
2935
2935
  properties: e
2936
2936
  }) {
2937
2937
  return e;
2938
2938
  }
2939
- const ni = (e) => ({
2939
+ const ri = (e) => ({
2940
2940
  href: e.href
2941
2941
  });
2942
- function ri({
2942
+ function oi({
2943
2943
  block: e,
2944
2944
  context: t
2945
2945
  }) {
2946
2946
  var r;
2947
2947
  const n = {
2948
- ...ni(e),
2948
+ ...ri(e),
2949
2949
  ...e.properties,
2950
2950
  "builder-id": e.id,
2951
- style: ei({
2951
+ style: ti({
2952
2952
  block: e,
2953
2953
  context: t
2954
2954
  }),
2955
2955
  [Xt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
2956
2956
  };
2957
- return ti({
2957
+ return ni({
2958
2958
  properties: n,
2959
2959
  context: t,
2960
2960
  block: e
2961
2961
  });
2962
2962
  }
2963
- const oi = ({
2963
+ const ii = ({
2964
2964
  componentOptions: e,
2965
2965
  builderBlock: t,
2966
2966
  context: n,
@@ -2976,7 +2976,7 @@ const oi = ({
2976
2976
  * component itself directly. Otherwise, they are provided to the wrapper element.
2977
2977
  */
2978
2978
  ...o ? {
2979
- attributes: ri({
2979
+ attributes: oi({
2980
2980
  block: t,
2981
2981
  context: s
2982
2982
  })
@@ -2990,13 +2990,13 @@ const oi = ({
2990
2990
  includeBlockProps: o
2991
2991
  } : u;
2992
2992
  };
2993
- function Jn(e) {
2993
+ function Yn(e) {
2994
2994
  var n;
2995
- const t = e.isInteractive ? to : e.componentRef;
2995
+ const t = e.isInteractive ? no : e.componentRef;
2996
2996
  return /* @__PURE__ */ C(L, { children: e.componentRef ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
2997
2997
  t,
2998
2998
  {
2999
- ...oi({
2999
+ ...ii({
3000
3000
  componentOptions: e.componentOptions,
3001
3001
  builderBlock: e.builderBlock,
3002
3002
  context: e.context,
@@ -3019,7 +3019,7 @@ function Jn(e) {
3019
3019
  }
3020
3020
  ) }) : null });
3021
3021
  }
3022
- function ii(e) {
3022
+ function ai(e) {
3023
3023
  const t = e.repeatContext;
3024
3024
  return /* @__PURE__ */ C(
3025
3025
  ht,
@@ -3034,13 +3034,13 @@ function ii(e) {
3034
3034
  function ht(e) {
3035
3035
  var k, E, S;
3036
3036
  const t = function() {
3037
- return Ko({
3037
+ return Go({
3038
3038
  block: e.block,
3039
3039
  context: e.context,
3040
3040
  registeredComponents: e.registeredComponents
3041
3041
  });
3042
3042
  }, n = function() {
3043
- return Go({
3043
+ return Xo({
3044
3044
  block: e.block,
3045
3045
  context: e.context
3046
3046
  });
@@ -3072,7 +3072,7 @@ function ht(e) {
3072
3072
  blockChildren: r().children ?? [],
3073
3073
  componentRef: (j = t()) == null ? void 0 : j.component,
3074
3074
  componentOptions: {
3075
- ...go(r()),
3075
+ ...yo(r()),
3076
3076
  builderContext: e.context,
3077
3077
  ...((v = t()) == null ? void 0 : v.name) === "Core:Button" || ((x = t()) == null ? void 0 : x.name) === "Symbol" || ((B = t()) == null ? void 0 : B.name) === "Columns" ? {
3078
3078
  builderLinkComponent: e.linkComponent
@@ -3090,9 +3090,9 @@ function ht(e) {
3090
3090
  };
3091
3091
  }, d = e.context;
3092
3092
  return /* @__PURE__ */ C(L, { children: i() ? /* @__PURE__ */ xe(L, { children: [
3093
- /* @__PURE__ */ C(Jo, { block: e.block, context: e.context }),
3093
+ /* @__PURE__ */ C(zo, { block: e.block, context: e.context }),
3094
3094
  (k = t()) != null && k.noWrap ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
3095
- Jn,
3095
+ Yn,
3096
3096
  {
3097
3097
  componentRef: u().componentRef,
3098
3098
  componentOptions: u().componentOptions,
@@ -3105,7 +3105,7 @@ function ht(e) {
3105
3105
  isInteractive: u().isInteractive
3106
3106
  }
3107
3107
  ) }) : /* @__PURE__ */ C(L, { children: n() ? /* @__PURE__ */ C(L, { children: (S = n()) == null ? void 0 : S.map((P, j) => /* @__PURE__ */ C(
3108
- ii,
3108
+ ai,
3109
3109
  {
3110
3110
  repeatContext: P.context,
3111
3111
  block: P.block,
@@ -3114,7 +3114,7 @@ function ht(e) {
3114
3114
  },
3115
3115
  j
3116
3116
  )) }) : /* @__PURE__ */ C(L, { children: /* @__PURE__ */ xe(
3117
- no,
3117
+ ro,
3118
3118
  {
3119
3119
  Wrapper: o(),
3120
3120
  block: r(),
@@ -3122,7 +3122,7 @@ function ht(e) {
3122
3122
  linkComponent: e.linkComponent,
3123
3123
  children: [
3124
3124
  /* @__PURE__ */ C(
3125
- Jn,
3125
+ Yn,
3126
3126
  {
3127
3127
  componentRef: u().componentRef,
3128
3128
  componentOptions: u().componentOptions,
@@ -3153,7 +3153,7 @@ function ht(e) {
3153
3153
  function mt(e) {
3154
3154
  var t, n, r;
3155
3155
  return /* @__PURE__ */ C(
3156
- ro,
3156
+ oo,
3157
3157
  {
3158
3158
  blocks: e.blocks,
3159
3159
  parent: e.parent,
@@ -3174,7 +3174,7 @@ function mt(e) {
3174
3174
  }
3175
3175
  );
3176
3176
  }
3177
- function ai(e) {
3177
+ function si(e) {
3178
3178
  var j;
3179
3179
  const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(x) {
3180
3180
  var B;
@@ -3268,7 +3268,7 @@ function ai(e) {
3268
3268
  children: [
3269
3269
  /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(dt, { styles: P() }) }),
3270
3270
  (j = e.columns) == null ? void 0 : j.map((v, x) => /* @__PURE__ */ C(
3271
- oo,
3271
+ io,
3272
3272
  {
3273
3273
  TagName: v.link ? e.builderLinkComponent || "a" : "div",
3274
3274
  actionAttributes: {},
@@ -3308,11 +3308,11 @@ function ai(e) {
3308
3308
  function zn(e) {
3309
3309
  return e.replace(/http(s)?:/, "");
3310
3310
  }
3311
- function si(e = "", t, n) {
3311
+ function li(e = "", t, n) {
3312
3312
  const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
3313
3313
  return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
3314
3314
  }
3315
- function li(e, t) {
3315
+ function ci(e, t) {
3316
3316
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
3317
3317
  return e;
3318
3318
  if (t === "master")
@@ -3324,18 +3324,18 @@ function li(e, t) {
3324
3324
  }
3325
3325
  return null;
3326
3326
  }
3327
- function _a(e) {
3327
+ function Wa(e) {
3328
3328
  if (!e)
3329
3329
  return e;
3330
3330
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
3331
3331
  if (e.match(/builder\.io/)) {
3332
3332
  let n = e;
3333
3333
  const r = Number(e.split("?width=")[1]);
3334
- return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${si(e, "width", o)} ${o}w`).concat([n]).join(", ");
3334
+ return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${li(e, "width", o)} ${o}w`).concat([n]).join(", ");
3335
3335
  }
3336
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [li(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
3336
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [ci(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
3337
3337
  }
3338
- const ci = (e) => {
3338
+ const ui = (e) => {
3339
3339
  if (e === "localhost" || e === "127.0.0.1")
3340
3340
  return e;
3341
3341
  const t = e.split(".");
@@ -3348,16 +3348,16 @@ const ci = (e) => {
3348
3348
  try {
3349
3349
  return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
3350
3350
  } catch (r) {
3351
- z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
3351
+ X.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
3352
3352
  return;
3353
3353
  }
3354
- }, xr = async (e) => wr(e), ui = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), fi = [["secure", ""], ["SameSite", "None"]], pi = ({
3354
+ }, xr = async (e) => wr(e), fi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), pi = [["secure", ""], ["SameSite", "None"]], di = ({
3355
3355
  name: e,
3356
3356
  value: t,
3357
3357
  expires: n
3358
3358
  }) => {
3359
- const o = (G() ? location.protocol === "https:" : !0) ? fi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", ci(window.location.hostname)], ...o];
3360
- return ui(s);
3359
+ const o = (G() ? location.protocol === "https:" : !0) ? pi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", ui(window.location.hostname)], ...o];
3360
+ return fi(s);
3361
3361
  }, kr = async ({
3362
3362
  name: e,
3363
3363
  value: t,
@@ -3367,33 +3367,33 @@ const ci = (e) => {
3367
3367
  try {
3368
3368
  if (!r)
3369
3369
  return;
3370
- const o = pi({
3370
+ const o = di({
3371
3371
  name: e,
3372
3372
  value: t,
3373
3373
  expires: n
3374
3374
  });
3375
3375
  document.cookie = o;
3376
3376
  } catch (o) {
3377
- z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
3377
+ X.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
3378
3378
  }
3379
- }, di = "builder.tests", ln = (e) => `${di}.${e}`, hi = ({
3379
+ }, hi = "builder.tests", ln = (e) => `${hi}.${e}`, mi = ({
3380
3380
  contentId: e
3381
3381
  }) => xr({
3382
3382
  name: ln(e),
3383
3383
  canTrack: !0
3384
- }), mi = ({
3384
+ }), gi = ({
3385
3385
  contentId: e
3386
3386
  }) => wr({
3387
3387
  name: ln(e),
3388
3388
  canTrack: !0
3389
- }), gi = ({
3389
+ }), yi = ({
3390
3390
  contentId: e,
3391
3391
  value: t
3392
3392
  }) => kr({
3393
3393
  name: ln(e),
3394
3394
  value: t,
3395
3395
  canTrack: !0
3396
- }), Cr = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, yi = ({
3396
+ }), Cr = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, vi = ({
3397
3397
  id: e,
3398
3398
  variations: t
3399
3399
  }) => {
@@ -3407,12 +3407,12 @@ const ci = (e) => {
3407
3407
  }
3408
3408
  return e;
3409
3409
  }, Er = (e) => {
3410
- const t = yi(e);
3411
- return gi({
3410
+ const t = vi(e);
3411
+ return yi({
3412
3412
  contentId: e.id,
3413
3413
  value: t
3414
3414
  }).catch((n) => {
3415
- z.error("could not store A/B test variation: ", n);
3415
+ X.error("could not store A/B test variation: ", n);
3416
3416
  }), t;
3417
3417
  }, Ir = ({
3418
3418
  item: e,
@@ -3428,7 +3428,7 @@ const ci = (e) => {
3428
3428
  testVariationId: n.id,
3429
3429
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
3430
3430
  };
3431
- }, vi = ({
3431
+ }, bi = ({
3432
3432
  item: e,
3433
3433
  canTrack: t
3434
3434
  }) => {
@@ -3438,7 +3438,7 @@ const ci = (e) => {
3438
3438
  return;
3439
3439
  if (!Cr(e))
3440
3440
  return e;
3441
- const n = mi({
3441
+ const n = gi({
3442
3442
  contentId: e.id
3443
3443
  }) || Er({
3444
3444
  variations: e.variations,
@@ -3451,13 +3451,13 @@ const ci = (e) => {
3451
3451
  ...e,
3452
3452
  ...r
3453
3453
  };
3454
- }, bi = async ({
3454
+ }, Si = async ({
3455
3455
  item: e,
3456
3456
  canTrack: t
3457
3457
  }) => {
3458
3458
  if (!t || !Cr(e))
3459
3459
  return e;
3460
- const r = await hi({
3460
+ const r = await mi({
3461
3461
  contentId: e.id
3462
3462
  }) || Er({
3463
3463
  variations: e.variations,
@@ -3470,7 +3470,7 @@ const ci = (e) => {
3470
3470
  ...e,
3471
3471
  ...o
3472
3472
  };
3473
- }, Ht = (e) => oe(e) ? e : !0, Si = {
3473
+ }, Ht = (e) => oe(e) ? e : !0, wi = {
3474
3474
  name: "Core:Button",
3475
3475
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
3476
3476
  defaultStyles: {
@@ -3503,7 +3503,7 @@ const ci = (e) => {
3503
3503
  }],
3504
3504
  static: !0,
3505
3505
  noWrap: !0
3506
- }, wi = {
3506
+ }, xi = {
3507
3507
  // TODO: ways to statically preprocess JSON for references, functions, etc
3508
3508
  name: "Columns",
3509
3509
  isRSC: !0,
@@ -3704,7 +3704,7 @@ const ci = (e) => {
3704
3704
  helperText: "When stacking columns for mobile devices, reverse the ordering",
3705
3705
  advanced: !0
3706
3706
  }]
3707
- }, xi = {
3707
+ }, ki = {
3708
3708
  name: "Custom Code",
3709
3709
  static: !0,
3710
3710
  requiredPermissions: ["editCode"],
@@ -3726,7 +3726,7 @@ const ci = (e) => {
3726
3726
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3727
3727
  advanced: !0
3728
3728
  }]
3729
- }, ki = {
3729
+ }, Ci = {
3730
3730
  name: "Embed",
3731
3731
  static: !0,
3732
3732
  inputs: [{
@@ -3751,13 +3751,13 @@ const ci = (e) => {
3751
3751
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3752
3752
  hideFromUI: !0
3753
3753
  }]
3754
- }, Ci = ["text/javascript", "application/javascript", "application/ecmascript"], La = (e) => Ci.includes(e.type), Ei = {
3754
+ }, Ei = ["text/javascript", "application/javascript", "application/ecmascript"], $a = (e) => Ei.includes(e.type), Ii = {
3755
3755
  name: "Fragment",
3756
3756
  static: !0,
3757
3757
  hidden: !0,
3758
3758
  canHaveChildren: !0,
3759
3759
  noWrap: !0
3760
- }, Ii = {
3760
+ }, Ti = {
3761
3761
  name: "Image",
3762
3762
  static: !0,
3763
3763
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -3857,7 +3857,7 @@ const ci = (e) => {
3857
3857
  advanced: !0,
3858
3858
  defaultValue: 0.7041
3859
3859
  }]
3860
- }, Ti = {
3860
+ }, Ai = {
3861
3861
  // friendlyName?
3862
3862
  name: "Raw:Img",
3863
3863
  hideFromInsertMenu: !0,
@@ -3871,7 +3871,7 @@ const ci = (e) => {
3871
3871
  }],
3872
3872
  noWrap: !0,
3873
3873
  static: !0
3874
- }, Ai = {
3874
+ }, Oi = {
3875
3875
  name: "Core:Section",
3876
3876
  static: !0,
3877
3877
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3910,7 +3910,7 @@ const ci = (e) => {
3910
3910
  }
3911
3911
  }
3912
3912
  }]
3913
- }, Oi = {
3913
+ }, ji = {
3914
3914
  name: "Slot",
3915
3915
  isRSC: !0,
3916
3916
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3924,7 +3924,7 @@ const ci = (e) => {
3924
3924
  defaultValue: "children"
3925
3925
  }]
3926
3926
  };
3927
- function ji(e) {
3927
+ function Ri(e) {
3928
3928
  var t, n, r;
3929
3929
  return /* @__PURE__ */ C(
3930
3930
  "div",
@@ -3947,7 +3947,7 @@ function ji(e) {
3947
3947
  }
3948
3948
  );
3949
3949
  }
3950
- const Ri = {
3950
+ const Pi = {
3951
3951
  name: "Symbol",
3952
3952
  noWrap: !0,
3953
3953
  static: !0,
@@ -3980,7 +3980,7 @@ const Ri = {
3980
3980
  hideFromUI: !0,
3981
3981
  type: "boolean"
3982
3982
  }]
3983
- }, Pi = {
3983
+ }, Ni = {
3984
3984
  name: "Text",
3985
3985
  static: !0,
3986
3986
  isRSC: !0,
@@ -3999,7 +3999,7 @@ const Ri = {
3999
3999
  textAlign: "center"
4000
4000
  }
4001
4001
  };
4002
- function Ni(e) {
4002
+ function Bi(e) {
4003
4003
  var t;
4004
4004
  return /* @__PURE__ */ C(
4005
4005
  "div",
@@ -4012,7 +4012,7 @@ function Ni(e) {
4012
4012
  }
4013
4013
  );
4014
4014
  }
4015
- const Bi = {
4015
+ const Ui = {
4016
4016
  name: "Video",
4017
4017
  canHaveChildren: !0,
4018
4018
  defaultStyles: {
@@ -4094,20 +4094,17 @@ const Bi = {
4094
4094
  advanced: !0
4095
4095
  }]
4096
4096
  }, qn = () => [{
4097
- component: io,
4098
- ...Si
4099
- }, {
4100
- component: ai,
4097
+ component: ao,
4101
4098
  ...wi
4102
4099
  }, {
4103
- component: ao,
4100
+ component: si,
4104
4101
  ...xi
4105
4102
  }, {
4106
4103
  component: so,
4107
4104
  ...ki
4108
4105
  }, {
4109
4106
  component: lo,
4110
- ...Ei
4107
+ ...Ci
4111
4108
  }, {
4112
4109
  component: co,
4113
4110
  ...Ii
@@ -4118,33 +4115,36 @@ const Bi = {
4118
4115
  component: fo,
4119
4116
  ...Ai
4120
4117
  }, {
4121
- component: Pa,
4122
- ...Ri
4118
+ component: po,
4119
+ ...Oi
4123
4120
  }, {
4124
- component: Ni,
4121
+ component: Ba,
4125
4122
  ...Pi
4126
4123
  }, {
4127
- component: po,
4128
- ...Bi
4124
+ component: Bi,
4125
+ ...Ni
4129
4126
  }, {
4130
- component: ji,
4131
- ...Oi
4132
- }], Zn = [], Wa = (e) => ({
4127
+ component: ho,
4128
+ ...Ui
4129
+ }, {
4130
+ component: Ri,
4131
+ ...ji
4132
+ }], Zn = [], Ha = (e) => ({
4133
4133
  type: "builder.registerComponent",
4134
4134
  data: Kt(e)
4135
- }), Ui = (e) => {
4135
+ }), Mi = (e) => {
4136
4136
  const t = e.toString().trim();
4137
4137
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
4138
- }, Mi = (e) => typeof e == "function" ? Ui(e) : pt(e), Kt = ({
4138
+ }, Fi = (e) => typeof e == "function" ? Mi(e) : pt(e), Kt = ({
4139
4139
  inputs: e,
4140
4140
  ...t
4141
4141
  }) => ({
4142
4142
  ...pt(t),
4143
4143
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
4144
4144
  ...r,
4145
- [o]: Mi(i)
4145
+ [o]: Fi(i)
4146
4146
  }), {}))
4147
- }), Fi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4147
+ }), Di = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4148
4148
  function getAndSetVariantId() {
4149
4149
  function setCookie(name, value, days) {
4150
4150
  let expires = '';
@@ -4200,7 +4200,7 @@ const Bi = {
4200
4200
  }).join('');
4201
4201
  styleEl.innerHTML = newStyleStr;
4202
4202
  }
4203
- }`, Di = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4203
+ }`, Vi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4204
4204
  if (!navigator.cookieEnabled) {
4205
4205
  return;
4206
4206
  }
@@ -4238,16 +4238,16 @@ const Bi = {
4238
4238
  ...t,
4239
4239
  testVariationId: t.id,
4240
4240
  id: e == null ? void 0 : e.id
4241
- })), Vi = ({
4241
+ })), _i = ({
4242
4242
  canTrack: e,
4243
4243
  content: t
4244
- }) => !(!(st(t).length > 0) || !e || G()), _i = (e) => e === "react" || e === "reactNative", Or = _i(he), Li = () => `
4245
- window.${Tr} = ${Fi}
4246
- window.${Ar} = ${Di}
4247
- `, Wi = (e, t) => `
4244
+ }) => !(!(st(t).length > 0) || !e || G()), Li = (e) => e === "react" || e === "reactNative", Or = Li(he), Wi = () => `
4245
+ window.${Tr} = ${Di}
4246
+ window.${Ar} = ${Vi}
4247
+ `, $i = (e, t) => `
4248
4248
  window.${Tr}(
4249
4249
  "${t}",${JSON.stringify(e)}, ${Or}
4250
- )`, $i = ({
4250
+ )`, Hi = ({
4251
4251
  contentId: e,
4252
4252
  variationId: t
4253
4253
  }) => `window.${Ar}(
@@ -4262,33 +4262,33 @@ function Gt(e) {
4262
4262
  }
4263
4263
  );
4264
4264
  }
4265
- const Hi = (e) => {
4265
+ const Ki = (e) => {
4266
4266
  const t = e.get("preview"), n = e.get("overrides." + t);
4267
- return n || z.warn("No previewed ID found in search params."), n;
4267
+ return n || X.warn("No previewed ID found in search params."), n;
4268
4268
  };
4269
- function Ki() {
4270
- globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new eo({
4269
+ function Gi() {
4270
+ globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new to({
4271
4271
  max: 500,
4272
4272
  // how long to live in ms
4273
4273
  ttl: 1e3 * 60 * 5
4274
4274
  }));
4275
4275
  }
4276
- function Gi(e) {
4277
- Ki();
4278
- const t = Hi(e);
4276
+ function Xi(e) {
4277
+ Gi();
4278
+ const t = Ki(e);
4279
4279
  return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
4280
4280
  }
4281
- function Xi() {
4281
+ function Ji() {
4282
4282
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
4283
4283
  }
4284
4284
  function Yi() {
4285
- const e = Xi().fetch;
4285
+ const e = Ji().fetch;
4286
4286
  if (typeof e > "u")
4287
4287
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
4288
4288
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
4289
4289
  return e;
4290
4290
  }
4291
- const Ji = Yi();
4291
+ const zi = Yi();
4292
4292
  function lt(e, t = null, n = ".") {
4293
4293
  return Object.keys(e).reduce((r, o) => {
4294
4294
  const i = e[o], s = [t, o].filter(Boolean).join(n);
@@ -4301,7 +4301,7 @@ function lt(e, t = null, n = ".") {
4301
4301
  };
4302
4302
  }, {});
4303
4303
  }
4304
- const zi = "v3", Qn = "builder.", qi = "options.", Zi = (e) => {
4304
+ const qi = "v3", Qn = "builder.", Zi = "options.", Qi = (e) => {
4305
4305
  const t = {};
4306
4306
  return e.forEach((n, r) => {
4307
4307
  t[r] = n;
@@ -4312,16 +4312,16 @@ const zi = "v3", Qn = "builder.", qi = "options.", Zi = (e) => {
4312
4312
  const t = Rr(e), n = {};
4313
4313
  return Object.keys(t).forEach((r) => {
4314
4314
  if (r.startsWith(Qn)) {
4315
- const o = r.replace(Qn, "").replace(qi, "");
4315
+ const o = r.replace(Qn, "").replace(Zi, "");
4316
4316
  n[o] = t[r];
4317
4317
  }
4318
4318
  }), n;
4319
- }, Qi = () => {
4319
+ }, ea = () => {
4320
4320
  if (!G())
4321
4321
  return {};
4322
4322
  const e = new URLSearchParams(window.location.search);
4323
4323
  return jr(e);
4324
- }, Rr = (e) => e instanceof URLSearchParams ? Zi(e) : e, er = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
4324
+ }, Rr = (e) => e instanceof URLSearchParams ? Qi(e) : e, er = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
4325
4325
  let {
4326
4326
  noTraverse: t = !1
4327
4327
  } = e;
@@ -4334,7 +4334,7 @@ const zi = "v3", Qn = "builder.", qi = "options.", Zi = (e) => {
4334
4334
  includeRefs: u = !0,
4335
4335
  enrich: d,
4336
4336
  locale: k,
4337
- apiVersion: E = zi,
4337
+ apiVersion: E = qi,
4338
4338
  fields: S,
4339
4339
  omit: P,
4340
4340
  offset: j,
@@ -4357,7 +4357,7 @@ const zi = "v3", Qn = "builder.", qi = "options.", Zi = (e) => {
4357
4357
  m.searchParams.set(U, JSON.stringify(Z[U]));
4358
4358
  }
4359
4359
  const ee = {
4360
- ...Qi(),
4360
+ ...ea(),
4361
4361
  ...Rr(e.options || {})
4362
4362
  }, te = lt(ee);
4363
4363
  for (const Z in te)
@@ -4370,7 +4370,7 @@ const zi = "v3", Qn = "builder.", qi = "options.", Zi = (e) => {
4370
4370
  m.searchParams.set(U, JSON.stringify(Z[U]));
4371
4371
  }
4372
4372
  return m;
4373
- }, ea = (e) => "results" in e;
4373
+ }, ta = (e) => "results" in e;
4374
4374
  async function un(e) {
4375
4375
  const t = await Pr({
4376
4376
  ...e,
@@ -4378,15 +4378,15 @@ async function un(e) {
4378
4378
  });
4379
4379
  return t && t[0] || null;
4380
4380
  }
4381
- const $a = un, ta = async (e) => {
4381
+ const Ka = un, na = async (e) => {
4382
4382
  const t = cn(e);
4383
- return await (await Ji(t.href)).json();
4384
- }, na = async (e, t, n = cn(e)) => {
4383
+ return await (await zi(t.href)).json();
4384
+ }, ra = async (e, t, n = cn(e)) => {
4385
4385
  const r = Ht(e.canTrack);
4386
4386
  if (n.search.includes("preview=")) {
4387
4387
  const i = [];
4388
4388
  for (const s of t.results) {
4389
- const u = Gi(n.searchParams);
4389
+ const u = Xi(n.searchParams);
4390
4390
  i.push(u || s);
4391
4391
  }
4392
4392
  t.results = i;
@@ -4396,46 +4396,42 @@ const $a = un, ta = async (e) => {
4396
4396
  try {
4397
4397
  const i = [];
4398
4398
  for (const s of t.results)
4399
- i.push(await bi({
4399
+ i.push(await Si({
4400
4400
  item: s,
4401
4401
  canTrack: r
4402
4402
  }));
4403
4403
  t.results = i;
4404
4404
  } catch (i) {
4405
- z.error("Could not process A/B tests. ", i);
4405
+ X.error("Could not process A/B tests. ", i);
4406
4406
  }
4407
4407
  return t.results;
4408
4408
  };
4409
4409
  async function Pr(e) {
4410
4410
  try {
4411
- const t = cn(e), n = await ta(e);
4412
- return ea(n) ? na(e, n) : (z.error("Error fetching data. ", {
4411
+ const t = cn(e), n = await na(e);
4412
+ return ta(n) ? ra(e, n) : (X.error("Error fetching data. ", {
4413
4413
  url: t,
4414
4414
  content: n,
4415
4415
  options: e
4416
4416
  }), null);
4417
4417
  } catch (t) {
4418
- return z.error("Error fetching data. ", t), null;
4418
+ return X.error("Error fetching data. ", t), null;
4419
4419
  }
4420
4420
  }
4421
- const Ha = Pr, ra = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
4422
- function oa(e, t) {
4423
- const n = new URL(t.origin), r = n.hostname;
4424
- return (e || ra).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
4425
- }
4426
- function Ka() {
4427
- return !G() || Yt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
4421
+ const Ga = Pr;
4422
+ function Xa() {
4423
+ return !G() || Jt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
4428
4424
  }
4429
- function ia() {
4425
+ function oa() {
4430
4426
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
4431
4427
  const t = Math.random() * 16 | 0;
4432
4428
  return (e == "x" ? t : t & 3 | 8).toString(16);
4433
4429
  });
4434
4430
  }
4435
4431
  function Nr() {
4436
- return ia().replace(/-/g, "");
4432
+ return oa().replace(/-/g, "");
4437
4433
  }
4438
- const Br = "builderSessionId", aa = async ({
4434
+ const Br = "builderSessionId", ia = async ({
4439
4435
  canTrack: e
4440
4436
  }) => {
4441
4437
  if (!e)
@@ -4447,20 +4443,20 @@ const Br = "builderSessionId", aa = async ({
4447
4443
  if (oe(t))
4448
4444
  return t;
4449
4445
  {
4450
- const n = sa();
4451
- return la({
4446
+ const n = aa();
4447
+ return sa({
4452
4448
  id: n,
4453
4449
  canTrack: e
4454
4450
  }), n;
4455
4451
  }
4456
- }, sa = () => Nr(), la = ({
4452
+ }, aa = () => Nr(), sa = ({
4457
4453
  id: e,
4458
4454
  canTrack: t
4459
4455
  }) => kr({
4460
4456
  name: Br,
4461
4457
  value: e,
4462
4458
  canTrack: t
4463
- }), Ur = () => G() && typeof localStorage < "u" ? localStorage : void 0, ca = ({
4459
+ }), Ur = () => G() && typeof localStorage < "u" ? localStorage : void 0, la = ({
4464
4460
  key: e,
4465
4461
  canTrack: t
4466
4462
  }) => {
@@ -4471,7 +4467,7 @@ const Br = "builderSessionId", aa = async ({
4471
4467
  console.debug("[LocalStorage] GET error: ", r);
4472
4468
  return;
4473
4469
  }
4474
- }, ua = ({
4470
+ }, ca = ({
4475
4471
  key: e,
4476
4472
  canTrack: t,
4477
4473
  value: n
@@ -4482,32 +4478,32 @@ const Br = "builderSessionId", aa = async ({
4482
4478
  } catch (o) {
4483
4479
  console.debug("[LocalStorage] SET error: ", o);
4484
4480
  }
4485
- }, Mr = "builderVisitorId", fa = ({
4481
+ }, Mr = "builderVisitorId", ua = ({
4486
4482
  canTrack: e
4487
4483
  }) => {
4488
4484
  if (!e)
4489
4485
  return;
4490
- const t = ca({
4486
+ const t = la({
4491
4487
  key: Mr,
4492
4488
  canTrack: e
4493
4489
  });
4494
4490
  if (oe(t))
4495
4491
  return t;
4496
4492
  {
4497
- const n = pa();
4498
- return da({
4493
+ const n = fa();
4494
+ return pa({
4499
4495
  id: n,
4500
4496
  canTrack: e
4501
4497
  }), n;
4502
4498
  }
4503
- }, pa = () => Nr(), da = ({
4499
+ }, fa = () => Nr(), pa = ({
4504
4500
  id: e,
4505
4501
  canTrack: t
4506
- }) => ua({
4502
+ }) => ca({
4507
4503
  key: Mr,
4508
4504
  value: e,
4509
4505
  canTrack: t
4510
- }), ha = async ({
4506
+ }), da = async ({
4511
4507
  canTrack: e
4512
4508
  }) => {
4513
4509
  if (!e)
@@ -4515,16 +4511,16 @@ const Br = "builderSessionId", aa = async ({
4515
4511
  visitorId: void 0,
4516
4512
  sessionId: void 0
4517
4513
  };
4518
- const t = await aa({
4514
+ const t = await ia({
4519
4515
  canTrack: e
4520
- }), n = fa({
4516
+ }), n = ua({
4521
4517
  canTrack: e
4522
4518
  });
4523
4519
  return {
4524
4520
  sessionId: t,
4525
4521
  visitorId: n
4526
4522
  };
4527
- }, ma = async ({
4523
+ }, ha = async ({
4528
4524
  type: e,
4529
4525
  canTrack: t,
4530
4526
  apiKey: n,
@@ -4538,23 +4534,23 @@ const Br = "builderSessionId", aa = async ({
4538
4534
  url: location.href,
4539
4535
  ...r
4540
4536
  },
4541
- ...await ha({
4537
+ ...await da({
4542
4538
  canTrack: t
4543
4539
  }),
4544
4540
  userAttributes: lr(),
4545
4541
  ownerId: n
4546
4542
  }
4547
4543
  });
4548
- async function ga(e) {
4544
+ async function ma(e) {
4549
4545
  if (!e.apiKey) {
4550
- z.error("Missing API key for track call. Please provide your API key.");
4546
+ X.error("Missing API key for track call. Please provide your API key.");
4551
4547
  return;
4552
4548
  }
4553
- if (e.canTrack && !Yt() && (G() || he === "reactNative"))
4549
+ if (e.canTrack && !Jt() && (G() || he === "reactNative"))
4554
4550
  return fetch("https://cdn.builder.io/api/v1/track", {
4555
4551
  method: "POST",
4556
4552
  body: JSON.stringify({
4557
- events: [await ma(e)]
4553
+ events: [await ha(e)]
4558
4554
  }),
4559
4555
  headers: {
4560
4556
  "content-type": "application/json"
@@ -4564,14 +4560,14 @@ async function ga(e) {
4564
4560
  console.error("Failed to track: ", t);
4565
4561
  });
4566
4562
  }
4567
- const Ga = (e) => ga({
4563
+ const Ja = (e) => ma({
4568
4564
  ...e,
4569
4565
  canTrack: !0
4570
4566
  });
4571
4567
  function tr(e) {
4572
4568
  return Math.round(e * 1e3) / 1e3;
4573
4569
  }
4574
- const ya = (e, t, n = !0) => {
4570
+ const ga = (e, t, n = !0) => {
4575
4571
  if (!(e instanceof HTMLElement))
4576
4572
  return null;
4577
4573
  let r = n ? e : e.parentElement;
@@ -4582,7 +4578,7 @@ const ya = (e, t, n = !0) => {
4582
4578
  return r;
4583
4579
  } while (r = r.parentElement);
4584
4580
  return null;
4585
- }, va = (e) => ya(e, (t) => {
4581
+ }, ya = (e) => ga(e, (t) => {
4586
4582
  const n = t.getAttribute("builder-id") || t.id;
4587
4583
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4588
4584
  }), nr = ({
@@ -4594,8 +4590,8 @@ const ya = (e, t, n = !0) => {
4594
4590
  x: i,
4595
4591
  y: s
4596
4592
  };
4597
- }, Xa = (e) => {
4598
- const t = e.target, n = t && va(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4593
+ }, Ya = (e) => {
4594
+ const t = e.target, n = t && ya(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4599
4595
  return {
4600
4596
  targetBuilderElement: r || void 0,
4601
4597
  metadata: {
@@ -4610,7 +4606,12 @@ const ya = (e, t, n = !0) => {
4610
4606
  builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
4611
4607
  }
4612
4608
  };
4613
- }, ba = "0.12.7", rr = {};
4609
+ }, va = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
4610
+ function Fr(e, t) {
4611
+ const n = new URL(t.origin), r = n.hostname;
4612
+ return (e || va).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
4613
+ }
4614
+ const ba = "0.12.8", rr = {};
4614
4615
  function Sa(e, t) {
4615
4616
  let n = rr[e];
4616
4617
  if (n || (n = rr[e] = []), n.push(t), G()) {
@@ -4628,7 +4629,7 @@ function Sa(e, t) {
4628
4629
  }
4629
4630
  }
4630
4631
  }
4631
- const Ya = () => {
4632
+ const za = () => {
4632
4633
  Sa("insertMenu", {
4633
4634
  name: "_default",
4634
4635
  default: !0,
@@ -4652,7 +4653,7 @@ const Ya = () => {
4652
4653
  });
4653
4654
  };
4654
4655
  let or = !1;
4655
- const Ja = (e = {}) => {
4656
+ const wa = (e = {}) => {
4656
4657
  var t, n;
4657
4658
  or || (or = !0, G() && ((t = window.parent) == null || t.postMessage({
4658
4659
  type: "builder.sdkInfo",
@@ -4672,7 +4673,7 @@ const Ja = (e = {}) => {
4672
4673
  }
4673
4674
  }, "*"), window.addEventListener("message", (r) => {
4674
4675
  var i, s;
4675
- if (!oa(e.trustedHosts, r))
4676
+ if (!Fr(e.trustedHosts, r))
4676
4677
  return;
4677
4678
  const {
4678
4679
  data: o
@@ -4713,6 +4714,51 @@ const Ja = (e = {}) => {
4713
4714
  }
4714
4715
  }
4715
4716
  })));
4717
+ }, xa = ({
4718
+ model: e,
4719
+ trustedHosts: t,
4720
+ callbacks: n
4721
+ }) => (r) => {
4722
+ if (!Fr(t, r))
4723
+ return;
4724
+ const {
4725
+ data: o
4726
+ } = r;
4727
+ if (o)
4728
+ switch (o.type) {
4729
+ case "builder.configureSdk": {
4730
+ n.configureSdk(o.data);
4731
+ break;
4732
+ }
4733
+ case "builder.triggerAnimation": {
4734
+ n.animation(o.data);
4735
+ break;
4736
+ }
4737
+ case "builder.contentUpdate": {
4738
+ const i = o.data, s = i.key || i.alias || i.entry || i.modelName, u = i.data;
4739
+ s === e && n.contentUpdate(u);
4740
+ break;
4741
+ }
4742
+ }
4743
+ }, qa = (e, t, n) => {
4744
+ if (!G)
4745
+ return X.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
4746
+ };
4747
+ wa();
4748
+ const r = xa({
4749
+ callbacks: {
4750
+ contentUpdate: t,
4751
+ animation: () => {
4752
+ },
4753
+ configureSdk: () => {
4754
+ }
4755
+ },
4756
+ model: e,
4757
+ trustedHosts: n == null ? void 0 : n.trustedHosts
4758
+ });
4759
+ return window.addEventListener("message", r), () => {
4760
+ window.removeEventListener("message", r);
4761
+ };
4716
4762
  };
4717
4763
  function ir(e, ...t) {
4718
4764
  const n = Object(e);
@@ -4724,38 +4770,38 @@ function ir(e, ...t) {
4724
4770
  }
4725
4771
  return n;
4726
4772
  }
4727
- const wa = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
4728
- function xa(e) {
4773
+ const ka = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
4774
+ function Ca(e) {
4729
4775
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
4730
4776
  }
4731
- function ka(e, t) {
4732
- const n = Ca(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
4777
+ function Ea(e, t) {
4778
+ const n = Ia(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
4733
4779
  for (const u of s)
4734
4780
  for (const d of n)
4735
4781
  d in u || (u[d] = r[d]);
4736
4782
  }
4737
- function Ca(e) {
4783
+ function Ia(e) {
4738
4784
  const t = [];
4739
4785
  for (const n of e.steps)
4740
4786
  for (const r in n.styles)
4741
4787
  t.indexOf(r) === -1 && t.push(r);
4742
4788
  return t;
4743
4789
  }
4744
- function za(e) {
4790
+ function Za(e) {
4745
4791
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
4746
4792
  if (!t.length) {
4747
- xa(e.elementId || e.id || "");
4793
+ Ca(e.elementId || e.id || "");
4748
4794
  return;
4749
4795
  }
4750
4796
  Array.from(t).forEach((n) => {
4751
- ka(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ir(n.style, e.steps[0].styles), setTimeout(() => {
4752
- n.style.transition = `all ${e.duration}s ${wa(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ir(n.style, e.steps[1].styles), setTimeout(() => {
4797
+ Ea(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ir(n.style, e.steps[0].styles), setTimeout(() => {
4798
+ n.style.transition = `all ${e.duration}s ${ka(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ir(n.style, e.steps[1].styles), setTimeout(() => {
4753
4799
  n.style.transition = "", n.style.transitionDelay = "";
4754
4800
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
4755
4801
  });
4756
4802
  });
4757
4803
  }
4758
- const Ea = (e) => {
4804
+ const Ta = (e) => {
4759
4805
  var i;
4760
4806
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4761
4807
  let o = "";
@@ -4781,22 +4827,22 @@ font-weight: ${s};
4781
4827
  `.trim());
4782
4828
  }
4783
4829
  return o;
4784
- }, Ia = ({
4830
+ }, Aa = ({
4785
4831
  customFonts: e
4786
4832
  }) => {
4787
4833
  var t;
4788
- return ((t = e == null ? void 0 : e.map((n) => Ea(n))) == null ? void 0 : t.join(" ")) || "";
4789
- }, Ta = ({
4834
+ return ((t = e == null ? void 0 : e.map((n) => Ta(n))) == null ? void 0 : t.join(" ")) || "";
4835
+ }, Oa = ({
4790
4836
  cssCode: e,
4791
4837
  contentId: t
4792
4838
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
4793
- function Aa(e) {
4839
+ function ja(e) {
4794
4840
  const t = `
4795
- ${Ta({
4841
+ ${Oa({
4796
4842
  cssCode: e.cssCode,
4797
4843
  contentId: e.contentId
4798
4844
  })}
4799
- ${Ia({
4845
+ ${Aa({
4800
4846
  customFonts: e.customFonts
4801
4847
  })}
4802
4848
 
@@ -4819,7 +4865,7 @@ ${Ia({
4819
4865
  `.trim();
4820
4866
  return /* @__PURE__ */ C(dt, { styles: t });
4821
4867
  }
4822
- const Oa = ({
4868
+ const Ra = ({
4823
4869
  content: e,
4824
4870
  data: t,
4825
4871
  locale: n
@@ -4836,7 +4882,7 @@ const Oa = ({
4836
4882
  locale: n
4837
4883
  } : {}
4838
4884
  };
4839
- }, ja = ({
4885
+ }, Pa = ({
4840
4886
  content: e,
4841
4887
  data: t
4842
4888
  }) => e ? {
@@ -4849,7 +4895,7 @@ const Oa = ({
4849
4895
  } : void 0;
4850
4896
  function ar(e) {
4851
4897
  var o, i, s, u, d, k, E, S, P;
4852
- const t = $i({
4898
+ const t = Hi({
4853
4899
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4854
4900
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
4855
4901
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4873,12 +4919,12 @@ function ar(e) {
4873
4919
  }),
4874
4920
  {}
4875
4921
  ), r = {
4876
- content: ja({
4922
+ content: Pa({
4877
4923
  content: e.content,
4878
4924
  data: e.data
4879
4925
  }),
4880
4926
  localState: void 0,
4881
- rootState: Oa({
4927
+ rootState: Ra({
4882
4928
  content: e.content,
4883
4929
  data: e.data,
4884
4930
  locale: e.locale
@@ -4908,7 +4954,7 @@ function ar(e) {
4908
4954
  BlocksWrapperProps: e.blocksWrapperProps || {}
4909
4955
  };
4910
4956
  return /* @__PURE__ */ xe(
4911
- ho,
4957
+ mo,
4912
4958
  {
4913
4959
  content: e.content,
4914
4960
  data: e.data,
@@ -4928,7 +4974,7 @@ function ar(e) {
4928
4974
  children: [
4929
4975
  e.isSsrAbTest ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: t }) }) : null,
4930
4976
  /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
4931
- Aa,
4977
+ ja,
4932
4978
  {
4933
4979
  contentId: (s = r.content) == null ? void 0 : s.id,
4934
4980
  cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
@@ -4948,14 +4994,14 @@ function ar(e) {
4948
4994
  }
4949
4995
  );
4950
4996
  }
4951
- function Fr(e) {
4997
+ function Dr(e) {
4952
4998
  var i, s;
4953
- const t = Vi({
4999
+ const t = _i({
4954
5000
  canTrack: Ht(e.canTrack),
4955
5001
  content: e.content
4956
5002
  }), n = function() {
4957
5003
  var d;
4958
- return Wi(
5004
+ return $i(
4959
5005
  st(e.content).map((k) => ({
4960
5006
  id: k.testVariationId,
4961
5007
  testRatio: k.testRatio
@@ -4969,13 +5015,13 @@ function Fr(e) {
4969
5015
  return t ? {
4970
5016
  ...e.content,
4971
5017
  testVariationId: (d = e.content) == null ? void 0 : d.id
4972
- } : vi({
5018
+ } : bi({
4973
5019
  item: e.content,
4974
5020
  canTrack: Ht(e.canTrack)
4975
5021
  });
4976
5022
  };
4977
5023
  return /* @__PURE__ */ xe(L, { children: [
4978
- !e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: Li() }) }) : null,
5024
+ !e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: Wi() }) }) : null,
4979
5025
  t ? /* @__PURE__ */ xe(L, { children: [
4980
5026
  /* @__PURE__ */ C(
4981
5027
  dt,
@@ -5037,7 +5083,7 @@ function Fr(e) {
5037
5083
  )
5038
5084
  ] });
5039
5085
  }
5040
- const Ra = async ({
5086
+ const Na = async ({
5041
5087
  builderContextValue: e,
5042
5088
  symbol: t
5043
5089
  }) => {
@@ -5053,10 +5099,10 @@ const Ra = async ({
5053
5099
  }
5054
5100
  }
5055
5101
  }).catch((n) => {
5056
- z.error("Could not fetch symbol content: ", n);
5102
+ X.error("Could not fetch symbol content: ", n);
5057
5103
  });
5058
5104
  };
5059
- async function Pa(e) {
5105
+ async function Ba(e) {
5060
5106
  var r, o, i, s, u;
5061
5107
  const t = function() {
5062
5108
  var k, E;
@@ -5066,12 +5112,12 @@ async function Pa(e) {
5066
5112
  (k = e.symbol) != null && k.inline ? "builder-inline-symbol" : void 0,
5067
5113
  (E = e.symbol) != null && E.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
5068
5114
  ].filter(Boolean).join(" ");
5069
- }, n = ((r = e.symbol) == null ? void 0 : r.content) || await Ra({
5115
+ }, n = ((r = e.symbol) == null ? void 0 : r.content) || await Na({
5070
5116
  symbol: e.symbol,
5071
5117
  builderContextValue: e.builderContext
5072
5118
  });
5073
5119
  return /* @__PURE__ */ C("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ C(
5074
- Fr,
5120
+ Dr,
5075
5121
  {
5076
5122
  __isNestedRender: !0,
5077
5123
  apiVersion: e.builderContext.apiVersion,
@@ -5092,8 +5138,8 @@ async function Pa(e) {
5092
5138
  }
5093
5139
  ) });
5094
5140
  }
5095
- const qa = mt, Za = Fr, sr = {};
5096
- function Qa(e) {
5141
+ const Qa = mt, es = Dr, sr = {};
5142
+ function ts(e) {
5097
5143
  if (G()) {
5098
5144
  Object.assign(sr, e);
5099
5145
  const t = {
@@ -5103,7 +5149,7 @@ function Qa(e) {
5103
5149
  parent.postMessage(t, "*");
5104
5150
  }
5105
5151
  }
5106
- const es = async (e) => {
5152
+ const ns = async (e) => {
5107
5153
  var r, o, i;
5108
5154
  const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
5109
5155
  ...e,
@@ -5124,43 +5170,44 @@ const es = async (e) => {
5124
5170
  };
5125
5171
  };
5126
5172
  export {
5127
- na as A,
5173
+ jr as A,
5128
5174
  mt as B,
5129
- Fr as C,
5130
- Pr as D,
5131
- Ha as E,
5132
- $a as F,
5133
- jr as G,
5134
- Ga as H,
5135
- es as I,
5136
- qa as R,
5137
- Pa as S,
5138
- Ni as T,
5139
- ga as _,
5140
- ri as a,
5141
- Va as b,
5142
- Yt as c,
5143
- _a as d,
5144
- La as e,
5175
+ Dr as C,
5176
+ Ja as D,
5177
+ qa as E,
5178
+ ns as F,
5179
+ ra as G,
5180
+ Pr as H,
5181
+ Ga as I,
5182
+ Ka as J,
5183
+ Qa as R,
5184
+ Ba as S,
5185
+ Bi as T,
5186
+ ma as _,
5187
+ oi as a,
5188
+ La as b,
5189
+ Jt as c,
5190
+ Wa as d,
5191
+ $a as e,
5145
5192
  G as f,
5146
5193
  Xt as g,
5147
5194
  Ht as h,
5148
- Da as i,
5149
- Ka as j,
5150
- oa as k,
5151
- z as l,
5195
+ _a as i,
5196
+ Xa as j,
5197
+ xa as k,
5198
+ X as l,
5152
5199
  sn as m,
5153
- Xa as n,
5200
+ Ya as n,
5154
5201
  pt as o,
5155
- Wa as p,
5202
+ Ha as p,
5156
5203
  un as q,
5157
- Ya as r,
5158
- Ja as s,
5159
- za as t,
5160
- Ji as u,
5161
- Ki as v,
5162
- Za as w,
5163
- ai as x,
5204
+ za as r,
5205
+ wa as s,
5206
+ Za as t,
5207
+ zi as u,
5208
+ Gi as v,
5209
+ es as w,
5210
+ si as x,
5164
5211
  Sa as y,
5165
- Qa as z
5212
+ ts as z
5166
5213
  };