@builder.io/sdk-react-nextjs 0.12.6 → 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 (42) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-4d4e23b4.js → USE_CLIENT_BUNDLE-164b0828.js} +193 -195
  2. package/lib/browser/USE_CLIENT_BUNDLE-a350a268.cjs +21 -0
  3. package/lib/{edge/USE_SERVER_BUNDLE-fda604b6.js → browser/USE_SERVER_BUNDLE-5219d3fc.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-19879780.cjs → browser/USE_SERVER_BUNDLE-b1e8364e.cjs} +1 -1
  5. package/lib/browser/{bundle-6e21e129.cjs → bundle-f375f07b.cjs} +21 -21
  6. package/lib/browser/{bundle-b3104268.js → bundle-f83a1ca5.js} +537 -447
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +23 -22
  9. package/lib/{node/USE_CLIENT_BUNDLE-aa8ab44a.js → edge/USE_CLIENT_BUNDLE-b8d07605.js} +193 -195
  10. package/lib/edge/USE_CLIENT_BUNDLE-f1ccd54b.cjs +21 -0
  11. package/lib/{node/USE_SERVER_BUNDLE-cbcb1baf.cjs → edge/USE_SERVER_BUNDLE-2e4c0a0a.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-2fdc522e.js → edge/USE_SERVER_BUNDLE-cd7a6238.js} +1 -1
  13. package/lib/edge/{bundle-ee1ebe27.js → bundle-3da03df6.js} +574 -484
  14. package/lib/edge/{bundle-f2d4a6db.cjs → bundle-5b207761.cjs} +29 -29
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +23 -22
  17. package/lib/{edge/USE_CLIENT_BUNDLE-41ee32e4.js → node/USE_CLIENT_BUNDLE-e0108fb4.js} +193 -195
  18. package/lib/node/USE_CLIENT_BUNDLE-e31c74cc.cjs +21 -0
  19. package/lib/{browser/USE_SERVER_BUNDLE-ccca985e.cjs → node/USE_SERVER_BUNDLE-29398256.cjs} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-2bf0dc28.js → node/USE_SERVER_BUNDLE-3e951ab1.js} +1 -1
  21. package/lib/node/{bundle-99e5b33f.js → bundle-6c5cef2d.js} +268 -178
  22. package/lib/node/{bundle-c799b7fc.cjs → bundle-83186530.cjs} +9 -9
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +23 -22
  25. package/package.json +1 -1
  26. package/types/cjs/components/block/animator.d.ts +5 -0
  27. package/types/cjs/components/content-variants/helpers.d.ts +1 -1
  28. package/types/cjs/constants/sdk-version.d.ts +1 -1
  29. package/types/cjs/helpers/preview-lru-cache/get.d.ts +1 -1
  30. package/types/cjs/helpers/subscribe-to-editor.d.ts +35 -0
  31. package/types/cjs/server-index.d.ts +18 -3
  32. package/types/cjs/types/builder-block.d.ts +18 -1
  33. package/types/esm/components/block/animator.d.ts +5 -0
  34. package/types/esm/components/content-variants/helpers.d.ts +1 -1
  35. package/types/esm/constants/sdk-version.d.ts +1 -1
  36. package/types/esm/helpers/preview-lru-cache/get.d.ts +1 -1
  37. package/types/esm/helpers/subscribe-to-editor.d.ts +35 -0
  38. package/types/esm/server-index.d.ts +18 -3
  39. package/types/esm/types/builder-block.d.ts +18 -1
  40. package/lib/browser/USE_CLIENT_BUNDLE-e5d64246.cjs +0 -21
  41. package/lib/edge/USE_CLIENT_BUNDLE-cc55e91d.cjs +0 -21
  42. package/lib/node/USE_CLIENT_BUNDLE-343cb348.cjs +0 -21
@@ -1,9 +1,9 @@
1
- import { LRUCache as Qr } 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 eo, B as to, a as no, D as ro, b as oo, C as io, E as ao, F as so, c as lo, d as co, S as uo, V as fo, e as po } from "./USE_CLIENT_BUNDLE-41ee32e4.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 ho = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Na = (e) => typeof e == "string" && ho.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 ho = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
16
16
  return "class";
17
17
  }
18
18
  };
19
- function mo(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 mo(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 go() {
39
+ function vo() {
40
40
  return G() && window.self !== window.top;
41
41
  }
42
- function Yt() {
43
- return go() && window.location.search.indexOf("builder.frameEditing=") !== -1;
42
+ function Jt() {
43
+ return vo() && window.location.search.indexOf("builder.frameEditing=") !== -1;
44
44
  }
45
- const yo = () => {
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
- }, vo = () => typeof navigator == "object" && navigator.userAgent || "", sr = () => {
52
- const e = vo(), 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,13 +68,13 @@ const yo = () => {
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 = yo();
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),
75
75
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
76
76
  };
77
- }, lr = ({
77
+ }, cr = ({
78
78
  builder: e,
79
79
  context: t,
80
80
  event: n,
@@ -86,14 +86,14 @@ const yo = () => {
86
86
  builder: e,
87
87
  context: t,
88
88
  event: n
89
- }), bo = () => ({
90
- isEditing: Yt(),
89
+ }), wo = () => ({
90
+ isEditing: Jt(),
91
91
  isBrowser: G(),
92
92
  isServer: !G(),
93
- getUserAttributes: () => sr()
94
- }), So = (e, {
93
+ getUserAttributes: () => lr()
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, wo = ({
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,
@@ -102,11 +102,11 @@ const yo = () => {
102
102
  rootSetState: i,
103
103
  rootState: s
104
104
  }) => {
105
- const u = lr({
105
+ const u = cr({
106
106
  builder: t,
107
107
  context: n,
108
108
  event: r,
109
- state: cr({
109
+ state: ur({
110
110
  rootState: s,
111
111
  localState: o,
112
112
  rootSetState: i
@@ -114,7 +114,7 @@ const yo = () => {
114
114
  });
115
115
  return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
116
116
  };
117
- function cr({
117
+ function ur({
118
118
  rootState: e,
119
119
  localState: t,
120
120
  rootSetState: n
@@ -124,7 +124,7 @@ function cr({
124
124
  if (t && o in t)
125
125
  return t[o];
126
126
  const i = r[o];
127
- return typeof i == "object" ? cr({
127
+ return typeof i == "object" ? ur({
128
128
  rootState: i,
129
129
  localState: void 0,
130
130
  rootSetState: n ? (s) => {
@@ -139,15 +139,15 @@ function cr({
139
139
  }
140
140
  });
141
141
  }
142
- const ur = (e, t, n) => {
142
+ const fr = (e, t, n) => {
143
143
  if (Object(e) !== e)
144
144
  return e;
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, xo = 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 && qr.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));
@@ -178,7 +178,7 @@ var N, xo = function(e) {
178
178
  this.line = Se, this.ab = f - se;
179
179
  }
180
180
  function s(a, l) {
181
- Ce = f, O.C && (Et = new i()), I = a, d(), Q = l, Ue = a.m;
181
+ Ce = f, O.C && (Et = new i()), I = a, d(), Q = l, Me = a.m;
182
182
  }
183
183
  function u() {
184
184
  for (var a = f, l = O.va && O.C && new i(), c = g.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
@@ -210,7 +210,7 @@ var N, xo = function(e) {
210
210
  break;
211
211
  else if (a === 160)
212
212
  ++f;
213
- else if (5760 <= a && zr.test(String.fromCharCode(a)))
213
+ else if (5760 <= a && Zr.test(String.fromCharCode(a)))
214
214
  ++f;
215
215
  else
216
216
  break;
@@ -230,11 +230,11 @@ var N, xo = function(e) {
230
230
  case 44:
231
231
  return ++f, s(ye);
232
232
  case 91:
233
- return ++f, s(Mt);
234
- case 93:
235
233
  return ++f, s(Ut);
234
+ case 93:
235
+ return ++f, s(Mt);
236
236
  case 123:
237
- return ++f, s(De);
237
+ return ++f, s(Ve);
238
238
  case 125:
239
239
  return ++f, s(Ie);
240
240
  case 58:
@@ -243,7 +243,7 @@ var N, xo = function(e) {
243
243
  return ++f, s(Bn);
244
244
  case 48:
245
245
  if (a = g.charCodeAt(f + 1), a === 120 || a === 88) {
246
- f += 2, a = j(16), a === null && r(D + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(Ve, a);
246
+ f += 2, a = j(16), a === null && r(V + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
247
247
  return;
248
248
  }
249
249
  case 49:
@@ -260,7 +260,7 @@ var N, xo = function(e) {
260
260
  case 39:
261
261
  f++;
262
262
  for (var l = ""; ; ) {
263
- f >= ke && r(D, "Unterminated string constant");
263
+ f >= ke && r(V, "Unterminated string constant");
264
264
  var c = g.charCodeAt(f);
265
265
  if (c === a) {
266
266
  ++f, s(tt, l);
@@ -315,34 +315,34 @@ var N, xo = function(e) {
315
315
  l += String.fromCharCode(c);
316
316
  }
317
317
  } else
318
- c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(D, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
318
+ c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(V, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
319
319
  }
320
320
  return;
321
321
  case 47:
322
- a = g.charCodeAt(f + 1), Ue ? (++f, P()) : a === 61 ? S(we, 2) : S(Mn, 1);
322
+ a = g.charCodeAt(f + 1), Me ? (++f, P()) : a === 61 ? S(we, 2) : S(Un, 1);
323
323
  return;
324
324
  case 37:
325
325
  case 42:
326
- g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Xr, 1);
326
+ g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Yr, 1);
327
327
  return;
328
328
  case 124:
329
329
  case 38:
330
- l = g.charCodeAt(f + 1), l === a ? S(a === 124 ? Vn : Dn, 2) : l === 61 ? S(we, 2) : S(a === 124 ? _r : Wr, 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(Lr, 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(Dr, 2) : l === 61 ? S(we, 2) : S(Gr, 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(Kr, 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(Hr, 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($r, g.charCodeAt(f + 2) === 61 ? 3 : 2) : S(a === 61 ? Un : 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);
@@ -350,7 +350,7 @@ var N, xo = function(e) {
350
350
  return !1;
351
351
  }
352
352
  function E(a) {
353
- if (a ? f = D + 1 : D = f, O.C && (Ct = new i()), a)
353
+ if (a ? f = V + 1 : V = f, O.C && (Ct = new i()), a)
354
354
  return P();
355
355
  if (f >= ke)
356
356
  return s(At);
@@ -393,10 +393,10 @@ var N, xo = 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
  }
@@ -404,10 +404,10 @@ var N, xo = function(e) {
404
404
  var l = f, c = !1, p = g.charCodeAt(f) === 48;
405
405
  a || j(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, j(10), c = !0), a = g.charCodeAt(f), (a === 69 || a === 101) && (a = g.charCodeAt(++f), a !== 43 && a !== 45 || ++f, j(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), a = g.slice(l, f);
406
406
  var T;
407
- c ? T = parseFloat(a) : p && a.length !== 1 ? /[89]/.test(a) || q ? r(l, "Invalid number") : T = parseInt(a, 8) : T = parseInt(a, 10), s(Ve, T);
407
+ c ? T = parseFloat(a) : p && a.length !== 1 ? /[89]/.test(a) || q ? r(l, "Invalid number") : T = parseInt(a, 8) : T = parseInt(a, 10), s(De, T);
408
408
  }
409
409
  function x(a) {
410
- return a = j(16, a), a === null && r(D, "Bad character escape sequence"), a;
410
+ return a = j(16, a), a === null && r(V, "Bad character escape sequence"), a;
411
411
  }
412
412
  function B() {
413
413
  Te = !1;
@@ -427,27 +427,27 @@ var N, xo = function(e) {
427
427
  }
428
428
  function $() {
429
429
  var a = B(), l = Ee;
430
- !Te && Jr(a) && (l = Vr[a]), s(l, a);
430
+ !Te && qr(a) && (l = _r[a]), s(l, a);
431
431
  }
432
432
  function m() {
433
- It = D, ge = Ce, Tt = Et, E();
433
+ It = V, ge = Ce, Tt = Et, E();
434
434
  }
435
435
  function ee(a) {
436
- if (q = a, f = D, O.C)
436
+ if (q = a, f = V, O.C)
437
437
  for (; f < se; )
438
438
  se = g.lastIndexOf(`
439
439
  `, se - 2) + 1, --Se;
440
440
  d(), E();
441
441
  }
442
442
  function te() {
443
- this.type = null, this.start = D, this.end = null;
443
+ this.type = null, this.start = V, this.end = null;
444
444
  }
445
445
  function Z() {
446
446
  this.start = Ct, this.end = null, kt && (this.source = kt);
447
447
  }
448
- function M() {
448
+ function U() {
449
449
  var a = new te();
450
- return O.C && (a.X = new Z()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [D, 0]), a;
450
+ return O.C && (a.X = new Z()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [V, 0]), a;
451
451
  }
452
452
  function me(a) {
453
453
  var l = new te();
@@ -459,77 +459,77 @@ var N, xo = function(e) {
459
459
  function gt(a) {
460
460
  return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
461
461
  }
462
- function U(a) {
462
+ function M(a) {
463
463
  return I === a ? (m(), !0) : !1;
464
464
  }
465
465
  function Ze() {
466
- return !O.fc && (I === At || I === Ie || ot.test(g.slice(ge, D)));
466
+ return !O.fc && (I === At || I === Ie || ot.test(g.slice(ge, V)));
467
467
  }
468
468
  function be() {
469
- U(ce) || Ze() || ie();
469
+ M(ce) || Ze() || ie();
470
470
  }
471
471
  function F(a) {
472
472
  I === a ? m() : ie();
473
473
  }
474
474
  function ie() {
475
- r(D, "Unexpected token");
475
+ r(V, "Unexpected token");
476
476
  }
477
477
  function Qe(a) {
478
478
  a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), q && a.type === "Identifier" && rt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
479
479
  }
480
480
  function ne() {
481
- (I === Mn || I === we && Q === "/=") && E(!0);
482
- var a = I, l = M();
481
+ (I === Un || I === we && Q === "/=") && E(!0);
482
+ var a = I, l = U();
483
483
  switch (a) {
484
484
  case Ot:
485
485
  case gn:
486
486
  m();
487
487
  var c = a === Ot;
488
- U(ce) || Ze() ? l.label = null : I !== Ee ? ie() : (l.label = ae(), be());
489
- for (var p = 0; p < V.length; ++p) {
490
- var T = V[p];
488
+ M(ce) || Ze() ? l.label = null : I !== Ee ? ie() : (l.label = ae(), be());
489
+ for (var p = 0; p < D.length; ++p) {
490
+ var T = D[p];
491
491
  if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
492
492
  break;
493
493
  }
494
- return p === V.length && r(l.start, "Unsyntactic " + a.l), A(l, c ? "BreakStatement" : "ContinueStatement");
494
+ return p === D.length && r(l.start, "Unsyntactic " + a.l), A(l, c ? "BreakStatement" : "ContinueStatement");
495
495
  case yn:
496
496
  return m(), be(), A(l, "DebuggerStatement");
497
497
  case bn:
498
- return m(), V.push(Ft), l.body = ne(), V.pop(), F(Bt), l.test = Ne(), be(), A(l, "DoWhileStatement");
498
+ return m(), D.push(Ft), l.body = ne(), D.pop(), F(Bt), l.test = Ne(), be(), A(l, "DoWhileStatement");
499
499
  case xn:
500
- return m(), V.push(Ft), F(le), I === ce ? yt(l, null) : I === Nt ? (a = M(), m(), pn(a, !0), A(a, "VariableDeclaration"), a.fa.length === 1 && U(nt) ? fn(l, a) : yt(l, a)) : (a = K(!1, !0), U(nt) ? (Qe(a), fn(l, a)) : yt(l, a));
500
+ return m(), D.push(Ft), F(le), I === ce ? yt(l, null) : I === Nt ? (a = U(), m(), pn(a, !0), A(a, "VariableDeclaration"), a.fa.length === 1 && M(nt) ? fn(l, a) : yt(l, a)) : (a = K(!1, !0), M(nt) ? (Qe(a), fn(l, a)) : yt(l, a));
501
501
  case Rt:
502
502
  return m(), wt(l, !0);
503
503
  case kn:
504
- return m(), l.test = Ne(), l.da = ne(), l.alternate = U(Sn) ? ne() : null, A(l, "IfStatement");
504
+ return m(), l.test = Ne(), l.da = ne(), l.alternate = M(Sn) ? ne() : null, A(l, "IfStatement");
505
505
  case Cn:
506
- return Fe || O.Ib || r(D, "'return' outside of function"), m(), U(ce) || Ze() ? l.K = null : (l.K = K(), be()), A(l, "ReturnStatement");
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(De), V.push(Zr); I !== Ie; )
509
- I === jt || I === vn ? (a = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = M()), 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
- return p && A(p, "SwitchCase"), m(), V.pop(), A(l, "SwitchStatement");
508
+ for (m(), l.Qb = Ne(), l.tb = [], F(Ve), D.push(eo); I !== Ie; )
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
+ return p && A(p, "SwitchCase"), m(), D.pop(), A(l, "SwitchStatement");
511
511
  case En:
512
- return m(), ot.test(g.slice(ge, D)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), A(l, "ThrowStatement");
512
+ return m(), ot.test(g.slice(ge, V)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), A(l, "ThrowStatement");
513
513
  case In:
514
- return m(), l.block = Be(), l.Ea = null, I === mn && (a = M(), m(), F(le), a.Ua = ae(), q && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), F(re), a.body = Be(), l.Ea = A(a, "CatchClause")), l.fb = U(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
514
+ return m(), l.block = Be(), l.Ea = null, I === mn && (a = U(), m(), F(le), a.Ua = ae(), q && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), F(re), a.body = Be(), l.Ea = A(a, "CatchClause")), l.fb = M(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
515
515
  case Nt:
516
516
  return m(), pn(l), be(), A(l, "VariableDeclaration");
517
517
  case Bt:
518
- return m(), l.test = Ne(), V.push(Ft), l.body = ne(), V.pop(), A(l, "WhileStatement");
518
+ return m(), l.test = Ne(), D.push(Ft), l.body = ne(), D.pop(), A(l, "WhileStatement");
519
519
  case Tn:
520
- return q && r(D, "'with' in strict mode"), m(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
521
- case De:
520
+ return q && r(V, "'with' in strict mode"), m(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
521
+ case Ve:
522
522
  return Be();
523
523
  case ce:
524
524
  return m(), A(l, "EmptyStatement");
525
525
  default:
526
- if (c = Q, T = K(), a === Ee && T.type === "Identifier" && U(_e)) {
527
- for (p = 0; p < V.length; ++p)
528
- V[p].name === c && r(T.start, "Label '" + c + "' is already declared");
529
- return V.push({
526
+ if (c = Q, T = K(), a === Ee && T.type === "Identifier" && M(_e)) {
527
+ for (p = 0; p < D.length; ++p)
528
+ D[p].name === c && r(T.start, "Label '" + c + "' is already declared");
529
+ return D.push({
530
530
  name: c,
531
531
  kind: I.W ? "loop" : I === Pt ? "switch" : null
532
- }), l.body = ne(), V.pop(), l.label = T, A(l, "LabeledStatement");
532
+ }), l.body = ne(), D.pop(), l.label = T, A(l, "LabeledStatement");
533
533
  }
534
534
  return l.la = T, be(), A(l, "ExpressionStatement");
535
535
  }
@@ -540,8 +540,8 @@ var N, xo = function(e) {
540
540
  return F(re), a;
541
541
  }
542
542
  function Be(a) {
543
- var l = M(), c = !0, p = !1;
544
- for (l.body = [], F(De); !U(Ie); ) {
543
+ var l = U(), c = !0, p = !1;
544
+ for (l.body = [], F(Ve); !M(Ie); ) {
545
545
  var T = ne();
546
546
  if (l.body.push(T), c && a && gt(T)) {
547
547
  var _ = p;
@@ -552,22 +552,22 @@ var N, xo = function(e) {
552
552
  return p && !_ && ee(!1), A(l, "BlockStatement");
553
553
  }
554
554
  function yt(a, l) {
555
- return a.ua = l, F(ce), a.test = I === ce ? null : K(), F(ce), a.update = I === re ? null : K(), F(re), a.body = ne(), V.pop(), A(a, "ForStatement");
555
+ return a.ua = l, F(ce), a.test = I === ce ? null : K(), F(ce), a.update = I === re ? null : K(), F(re), a.body = ne(), D.pop(), A(a, "ForStatement");
556
556
  }
557
557
  function fn(a, l) {
558
- return a.left = l, a.right = K(), F(re), a.body = ne(), V.pop(), A(a, "ForInStatement");
558
+ return a.left = l, a.right = K(), F(re), a.body = ne(), D.pop(), A(a, "ForInStatement");
559
559
  }
560
560
  function pn(a, l) {
561
561
  for (a.fa = [], a.kind = "var"; ; ) {
562
- var c = M();
563
- if (c.id = ae(), q && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = U(Un) ? K(!0, l) : null, a.fa.push(A(c, "VariableDeclarator")), !U(ye))
562
+ var c = U();
563
+ if (c.id = ae(), q && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(Mn) ? K(!0, l) : null, a.fa.push(A(c, "VariableDeclarator")), !M(ye))
564
564
  break;
565
565
  }
566
566
  }
567
567
  function K(a, l) {
568
568
  var c = vt(l);
569
569
  if (!a && I === ye) {
570
- for (a = me(c), a.xb = [c]; U(ye); )
570
+ for (a = me(c), a.xb = [c]; M(ye); )
571
571
  a.xb.push(vt(l));
572
572
  return A(a, "SequenceExpression");
573
573
  }
@@ -575,7 +575,7 @@ var N, xo = function(e) {
575
575
  }
576
576
  function vt(a) {
577
577
  var l = bt(St(), -1, a);
578
- if (U(Bn)) {
578
+ if (M(Bn)) {
579
579
  var c = me(l);
580
580
  c.test = l, c.da = K(!0), F(_e), c.alternate = K(!0, a), l = A(c, "ConditionalExpression");
581
581
  }
@@ -585,89 +585,89 @@ var N, xo = function(e) {
585
585
  var p = I.L;
586
586
  if (p !== null && (!c || I !== nt) && p > l) {
587
587
  var T = me(a);
588
- return T.left = a, T.operator = Q, a = I, m(), T.right = bt(St(), p, c), p = A(T, a === Vn || a === Dn ? "LogicalExpression" : "BinaryExpression"), bt(p, l, c);
588
+ return T.left = a, T.operator = Q, a = I, m(), T.right = bt(St(), p, c), p = A(T, a === Dn || a === Vn ? "LogicalExpression" : "BinaryExpression"), bt(p, l, c);
589
589
  }
590
590
  return a;
591
591
  }
592
592
  function St() {
593
593
  if (I.prefix) {
594
- var a = M(), l = I.$b;
595
- return a.operator = Q, Ue = a.prefix = !0, m(), a.K = St(), l ? Qe(a.K) : q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), A(a, l ? "UpdateExpression" : "UnaryExpression");
594
+ var a = U(), l = I.$b;
595
+ return a.operator = Q, Me = a.prefix = !0, m(), a.K = St(), l ? Qe(a.K) : q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), A(a, l ? "UpdateExpression" : "UnaryExpression");
596
596
  }
597
- for (l = Me(et()); I.cc && !Ze(); )
597
+ for (l = Ue(et()); I.cc && !Ze(); )
598
598
  a = me(l), a.operator = Q, a.prefix = !1, a.K = l, Qe(l), m(), l = A(a, "UpdateExpression");
599
599
  return l;
600
600
  }
601
- function Me(a, l) {
602
- if (U(Nn)) {
601
+ function Ue(a, l) {
602
+ if (M(Nn)) {
603
603
  var c = me(a);
604
- return c.object = a, c.Wa = ae(!0), c.bb = !1, Me(A(c, "MemberExpression"), l);
604
+ return c.object = a, c.Wa = ae(!0), c.bb = !1, Ue(A(c, "MemberExpression"), l);
605
605
  }
606
- return U(Mt) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, F(Ut), Me(A(c, "MemberExpression"), l)) : !l && U(le) ? (c = me(a), c.callee = a, c.arguments = xt(re, !1), Me(A(c, "CallExpression"), l)) : a;
606
+ return M(Ut) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, F(Mt), Ue(A(c, "MemberExpression"), l)) : !l && M(le) ? (c = me(a), c.callee = a, c.arguments = xt(re, !1), Ue(A(c, "CallExpression"), l)) : a;
607
607
  }
608
608
  function et() {
609
609
  switch (I) {
610
610
  case On:
611
- var a = M();
611
+ var a = U();
612
612
  return m(), A(a, "ThisExpression");
613
613
  case Ee:
614
614
  return ae();
615
- case Ve:
615
+ case De:
616
616
  case tt:
617
617
  case hn:
618
- return a = M(), a.value = Q, a.raw = g.slice(D, Ce), m(), A(a, "Literal");
618
+ return a = U(), a.value = Q, a.raw = g.slice(V, Ce), m(), A(a, "Literal");
619
619
  case jn:
620
620
  case Rn:
621
621
  case Pn:
622
- return a = M(), a.value = I.$a, a.raw = I.l, m(), A(a, "Literal");
622
+ return a = U(), a.value = I.$a, a.raw = I.l, m(), A(a, "Literal");
623
623
  case le:
624
624
  a = Ct;
625
- var l = D;
625
+ var l = V;
626
626
  m();
627
627
  var c = K();
628
628
  return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = Et), O.Xa && (c.j = [l, Ce]), F(re), c;
629
- case Mt:
630
- return a = M(), m(), a.elements = xt(Ut, !0, !0), A(a, "ArrayExpression");
631
- case De:
632
- for (a = M(), l = !0, c = !1, a.h = [], m(); !U(Ie); ) {
629
+ case Ut:
630
+ return a = U(), m(), a.elements = xt(Mt, !0, !0), A(a, "ArrayExpression");
631
+ case Ve:
632
+ for (a = U(), l = !0, c = !1, a.h = [], m(); !M(Ie); ) {
633
633
  if (l)
634
634
  l = !1;
635
- else if (F(ye), O.sb && U(Ie))
635
+ else if (F(ye), O.sb && M(Ie))
636
636
  break;
637
637
  var p = {
638
- key: I === Ve || I === tt ? et() : ae(!0)
638
+ key: I === De || I === tt ? et() : ae(!0)
639
639
  }, T = !1;
640
- if (U(_e)) {
640
+ if (M(_e)) {
641
641
  p.value = K(!0);
642
642
  var _ = p.kind = "init";
643
643
  } else
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 === Ve || I === tt ? et() : ae(!0), I !== le && ie(), p.value = wt(M(), !1));
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
- var Vt = _ === Ae.kind || T && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
650
- Vt && !q && _ === "init" && Ae.kind === "init" && (Vt = !1), Vt && r(p.key.start, "Redefinition of property");
649
+ var Dt = _ === Ae.kind || T && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
650
+ Dt && !q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(p.key.start, "Redefinition of property");
651
651
  }
652
652
  }
653
653
  a.h.push(p);
654
654
  }
655
655
  return A(a, "ObjectExpression");
656
656
  case Rt:
657
- return a = M(), m(), wt(a, !1);
657
+ return a = U(), m(), wt(a, !1);
658
658
  case An:
659
- return a = M(), m(), a.callee = Me(et(), !0), a.arguments = U(le) ? xt(re, !1) : Fr, 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
  }
663
663
  function wt(a, l) {
664
664
  I === Ee ? a.id = ae() : l ? ie() : a.id = null, a.oa = [];
665
665
  var c = !0;
666
- for (F(le); !U(re); )
666
+ for (F(le); !M(re); )
667
667
  c ? c = !1 : F(ye), a.oa.push(ae());
668
668
  c = Fe;
669
- var p = V;
670
- if (Fe = !0, V = [], a.body = Be(!0), Fe = c, V = p, q || a.body.body.length && gt(a.body.body[0])) {
669
+ var p = D;
670
+ if (Fe = !0, D = [], a.body = Be(!0), Fe = c, D = p, q || a.body.body.length && gt(a.body.body[0])) {
671
671
  for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
672
672
  if (p = 0 > c ? a.id : a.oa[c], (_n(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
673
673
  for (var T = 0; T < c; ++T)
@@ -676,18 +676,18 @@ var N, xo = function(e) {
676
676
  return A(a, l ? "FunctionDeclaration" : "FunctionExpression");
677
677
  }
678
678
  function xt(a, l, c) {
679
- for (var p = [], T = !0; !U(a); ) {
679
+ for (var p = [], T = !0; !M(a); ) {
680
680
  if (T)
681
681
  T = !1;
682
- else if (F(ye), l && O.sb && U(a))
682
+ else if (F(ye), l && O.sb && M(a))
683
683
  break;
684
684
  p.push(c && I === ye ? null : K(!0));
685
685
  }
686
686
  return p;
687
687
  }
688
688
  function ae(a) {
689
- var l = M();
690
- return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && Yr(Q) || q && _n(Q)) && g.slice(D, Ce).indexOf("\\") === -1 && r(D, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ie(), Ue = !1, m(), A(l, "Identifier");
689
+ var l = U();
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;
@@ -695,7 +695,7 @@ var N, xo = function(e) {
695
695
  g = String(a), ke = g.length, O = l || {};
696
696
  for (var c in dn)
697
697
  Object.prototype.hasOwnProperty.call(O, c) || (O[c] = dn[c]);
698
- for (kt = O.sourceFile, Se = 1, f = se = 0, Ue = !0, d(), c = O.dc, It = ge = f, O.C && (Tt = new i()), Fe = q = !1, V = [], E(), a = c || M(), l = !0, c || (a.body = []); I !== At; )
698
+ for (kt = O.sourceFile, Se = 1, f = se = 0, Me = !0, d(), c = O.dc, It = ge = f, O.C && (Tt = new i()), Fe = q = !1, D = [], E(), a = c || U(), l = !0, c || (a.body = []); I !== At; )
699
699
  c = ne(), a.body.push(c), l && gt(c) && ee(!0), l = !1;
700
700
  return A(a, "Program");
701
701
  };
@@ -710,7 +710,7 @@ var N, xo = function(e) {
710
710
  dc: null,
711
711
  sourceFile: null,
712
712
  vb: null
713
- }, f = 0, D = 0, Ce = 0, Ct, Et, I, Q, Ue, Se, se, It = 0, ge = 0, Tt, Fe, V, q, Fr = [], Ve = {
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, xo = 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,
@@ -829,12 +829,12 @@ var N, xo = function(e) {
829
829
  prefix: !0,
830
830
  m: !0
831
831
  }
832
- }, Mt = {
832
+ }, Ut = {
833
833
  type: "[",
834
834
  m: !0
835
- }, Ut = {
835
+ }, Mt = {
836
836
  type: "]"
837
- }, De = {
837
+ }, Ve = {
838
838
  type: "{",
839
839
  m: !0
840
840
  }, Ie = {
@@ -858,60 +858,60 @@ var N, xo = function(e) {
858
858
  }, Bn = {
859
859
  type: "?",
860
860
  m: !0
861
- }, Mn = {
861
+ }, Un = {
862
862
  L: 10,
863
863
  m: !0
864
- }, Un = {
864
+ }, Mn = {
865
865
  Cb: !0,
866
866
  m: !0
867
867
  }, we = {
868
868
  Cb: !0,
869
869
  m: !0
870
- }, Dr = {
870
+ }, Lr = {
871
871
  cc: !0,
872
872
  prefix: !0,
873
873
  $b: !0
874
874
  }, Fn = {
875
875
  prefix: !0,
876
876
  m: !0
877
- }, Vn = {
877
+ }, Dn = {
878
878
  L: 1,
879
879
  m: !0
880
- }, Dn = {
880
+ }, Vn = {
881
881
  L: 2,
882
882
  m: !0
883
- }, _r = {
883
+ }, Wr = {
884
884
  L: 3,
885
885
  m: !0
886
- }, Lr = {
886
+ }, $r = {
887
887
  L: 4,
888
888
  m: !0
889
- }, Wr = {
889
+ }, Hr = {
890
890
  L: 5,
891
891
  m: !0
892
- }, $r = {
892
+ }, Kr = {
893
893
  L: 6,
894
894
  m: !0
895
- }, Hr = {
895
+ }, Gr = {
896
896
  L: 7,
897
897
  m: !0
898
- }, Kr = {
898
+ }, Xr = {
899
899
  L: 8,
900
900
  m: !0
901
- }, Gr = {
901
+ }, Jr = {
902
902
  L: 9,
903
903
  prefix: !0,
904
904
  m: !0
905
- }, Xr = {
905
+ }, Yr = {
906
906
  L: 10,
907
907
  m: !0
908
- }, Yr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), Jr = 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 = {
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
- }, Zr = {
910
+ }, eo = {
911
911
  kind: "switch"
912
912
  };
913
913
  }, Lt = Lt = typeof globalThis > "u" ? void 0 : globalThis;
914
- xo(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
@@ -953,15 +953,15 @@ var Wn = {
953
953
  configurable: !1,
954
954
  enumerable: !0,
955
955
  writable: !0
956
- }, fr = {
956
+ }, pr = {
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, ko = ["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;
@@ -1012,7 +1012,7 @@ N.lb = function() {
1012
1012
  if (n = this.ca[0], !n || n.time > Date.now())
1013
1013
  n = null;
1014
1014
  else {
1015
- this.ca.shift(), 0 <= n.interval && hr(this, n, n.interval);
1015
+ this.ca.shift(), 0 <= n.interval && mr(this, n, n.interval);
1016
1016
  var r = new b(n.node, n.scope);
1017
1017
  n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
1018
1018
  }
@@ -1025,7 +1025,7 @@ N.lb = function() {
1025
1025
  try {
1026
1026
  var i = this.rb[r.type](e, n, r);
1027
1027
  } catch (s) {
1028
- if (s !== fr)
1028
+ if (s !== pr)
1029
1029
  throw this.value !== s && (this.value = void 0), s;
1030
1030
  } finally {
1031
1031
  Ge = o;
@@ -1043,8 +1043,8 @@ N.Eb = function() {
1043
1043
  ;
1044
1044
  return this.za;
1045
1045
  };
1046
- function Co(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), Eo(e, t), Io(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), To(e, t), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Bo(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 Co(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 Eo(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,9 +1089,9 @@ function Eo(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
- s.U = this, s.B = o, s.F = [], i != null && (i instanceof R ? s.F = pr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
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) {
1096
1096
  var i = e.o[e.o.length - 1];
1097
1097
  i.U = this, i.B = o, i.F = [];
@@ -1104,7 +1104,7 @@ function Eo(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 Io(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 Io(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 Io(e, t) {
1149
1149
  }
1150
1150
  }, W(e, e.v, "isPrototypeOf", r);
1151
1151
  }
1152
- function To(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 To(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 Ao(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 Ao(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 Oo(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 jo(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 jo(e, t) {
1296
1296
  }
1297
1297
  }, W(e, e.aa, "toLocaleString", n);
1298
1298
  }
1299
- function Ro(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 Ro(e, t) {
1315
1315
  };
1316
1316
  }(t[r]), W(e, e.$, t[r], n);
1317
1317
  }
1318
- function Po(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 Po(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 Po(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 No(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 No(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 Bo(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 {
@@ -1389,7 +1389,7 @@ function Mo(e, t) {
1389
1389
  }
1390
1390
  return e.Ia(o);
1391
1391
  }, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
1392
- o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = pr(e, o), o = o.filter(function(u) {
1392
+ o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = dr(e, o), o = o.filter(function(u) {
1393
1393
  return typeof u == "string" || typeof u == "number";
1394
1394
  })) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
1395
1395
  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([ko.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)
@@ -1575,7 +1575,7 @@ function ue(e, t) {
1575
1575
  e.g(n, r[o], t[r[o]]);
1576
1576
  return n;
1577
1577
  }
1578
- function pr(e, t) {
1578
+ function dr(e, t) {
1579
1579
  var n = [], r;
1580
1580
  for (r in t.h)
1581
1581
  n[r] = e.G(t, 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,12 +1713,12 @@ 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 mr(n, r, o), n || Co(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)
1720
1720
  throw Error("parentScope required");
1721
- return e = n || e.s(null), new mr(t, t.S, e);
1721
+ return e = n || e.s(null), new gr(t, t.S, e);
1722
1722
  }
1723
1723
  function nn(e, t) {
1724
1724
  for (var n = en(e); n && n !== e.N; ) {
@@ -1730,7 +1730,7 @@ function nn(e, t) {
1730
1730
  return e.G(n.object, t);
1731
1731
  n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
1732
1732
  }
1733
- function dr(e, t, n) {
1733
+ function hr(e, t, n) {
1734
1734
  for (var r = en(e), o = r.S; r && r !== e.N; ) {
1735
1735
  if (t in r.object.h) {
1736
1736
  try {
@@ -1746,7 +1746,7 @@ function dr(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
  }
@@ -1802,10 +1802,10 @@ function rn(e, t) {
1802
1802
  return t[0] === Pe ? nn(e, t[1]) : e.G(t[0], t[1]);
1803
1803
  }
1804
1804
  function on(e, t, n) {
1805
- return t[0] === Pe ? dr(e, t[1], n) : e.g(t[0], t[1], n);
1805
+ return t[0] === Pe ? hr(e, t[1], n) : e.g(t[0], t[1], n);
1806
1806
  }
1807
1807
  function w(e, t, n) {
1808
- throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t), fr) : n === void 0 ? t : n;
1808
+ throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t), pr) : n === void 0 ? t : n;
1809
1809
  }
1810
1810
  function ze(e, t, n, r) {
1811
1811
  if (t === 0)
@@ -1898,9 +1898,9 @@ 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 Uo(u, o, r, s, t ? n : -1), hr(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
- function hr(e, t, n) {
1903
+ function mr(e, t, n) {
1904
1904
  t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
1905
1905
  return r.time - o.time;
1906
1906
  });
@@ -1926,7 +1926,7 @@ function an(e, t, n, r) {
1926
1926
  var o = e.ya();
1927
1927
  return o.type = "CallExpression", e = new b(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
1928
1928
  }
1929
- function Dt(e, t) {
1929
+ function Vt(e, t) {
1930
1930
  return t == null ? e.Na : t instanceof R ? t : (e = e.s(pe(e, t)), e.data = t, e);
1931
1931
  }
1932
1932
  N.Xb = function() {
@@ -1941,7 +1941,7 @@ N.ec = function(e) {
1941
1941
  function b(e, t) {
1942
1942
  this.node = e, this.scope = t;
1943
1943
  }
1944
- function mr(e, t, n) {
1944
+ function gr(e, t, n) {
1945
1945
  this.Va = e, this.S = t, this.object = n;
1946
1946
  }
1947
1947
  function R(e) {
@@ -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 Uo(e, t, n, r, o) {
2006
- this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Fo, 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 Fo = 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 = Dt(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,15 +2205,15 @@ 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
- t.scope.S || (t.B = Dt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
2211
+ t.scope.S || (t.B = Vt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
2212
2212
  else if (o.Za) {
2213
2213
  var s = this;
2214
2214
  r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
2215
2215
  t.value = u, s.za = !1;
2216
- }), this.za = !0, t.scope.S || (t.B = Dt(this, t.B)), o.Za.apply(t.B, r);
2216
+ }), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), o.Za.apply(t.B, r);
2217
2217
  } else
2218
2218
  w(this, this.j, Y(this, n.callee) + " is not callable");
2219
2219
  }
@@ -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,
@@ -2526,7 +2526,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
2526
2526
  h.prototype.stepVariableDeclaration = function(e, t, n) {
2527
2527
  n = n.fa;
2528
2528
  var r = t.A || 0, o = n[r];
2529
- for (t.Bb && o && (dr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
2529
+ for (t.Bb && o && (hr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
2530
2530
  if (o.ua)
2531
2531
  return t.A = r, t.Bb = !0, t.Pa = o.id.name, new b(o.ua, t.scope);
2532
2532
  o = n[++r];
@@ -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", Do = ({
2569
+ `), Xn = (e) => e + "JSON", Lo = ({
2570
2570
  builder: e,
2571
2571
  context: t,
2572
2572
  event: n,
@@ -2578,7 +2578,7 @@ const Vo = (e) => e.split(`
2578
2578
  const u = {
2579
2579
  ...r,
2580
2580
  ...o
2581
- }, d = lr({
2581
+ }, d = cr({
2582
2582
  builder: e,
2583
2583
  context: t,
2584
2584
  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 = `
@@ -2600,7 +2600,7 @@ function theFunction() {
2600
2600
  }
2601
2601
  theFunction();
2602
2602
  `, P = (v, x) => {
2603
- const B = ur(u, v, x);
2603
+ const B = fr(u, v, x);
2604
2604
  i == null || i(B);
2605
2605
  }, j = function(v, x) {
2606
2606
  d.forEach(([B, $]) => {
@@ -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 _o() {
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 Lo = () => {
2625
+ const $o = () => {
2626
2626
  var r;
2627
- if (!_o())
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
- }, Wo = (e) => G() || Lo() ? wo(e) : Do(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: So(e, {
2646
+ code: xo(e, {
2647
2647
  isExpression: s
2648
2648
  }),
2649
- builder: bo(),
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 Wo(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 $o = ({
2666
+ const Ko = ({
2667
2667
  block: e,
2668
2668
  context: t,
2669
2669
  localState: n,
@@ -2689,7 +2689,7 @@ const $o = ({
2689
2689
  rootSetState: o,
2690
2690
  context: t
2691
2691
  });
2692
- ur(s, u, k);
2692
+ fr(s, u, k);
2693
2693
  }
2694
2694
  return s;
2695
2695
  };
@@ -2702,7 +2702,7 @@ function ct({
2702
2702
  rootSetState: i
2703
2703
  }) {
2704
2704
  const s = e;
2705
- return n ? $o({
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 Ho = ({
2713
+ const Go = ({
2714
2714
  block: e,
2715
2715
  context: t,
2716
2716
  registeredComponents: n
@@ -2732,7 +2732,7 @@ const Ho = ({
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
- }, Ko = ({
2735
+ }, Xo = ({
2736
2736
  block: e,
2737
2737
  context: t
2738
2738
  }) => {
@@ -2765,7 +2765,7 @@ const Ho = ({
2765
2765
  },
2766
2766
  block: r
2767
2767
  }));
2768
- }, gr = {
2768
+ }, yr = {
2769
2769
  small: {
2770
2770
  min: 320,
2771
2771
  default: 321,
@@ -2781,11 +2781,11 @@ const Ho = ({
2781
2781
  default: 991,
2782
2782
  max: 1200
2783
2783
  }
2784
- }, Yn = (e, t = gr) => `@media (max-width: ${t[e].max}px)`, yr = ({
2784
+ }, Jn = (e, t = yr) => `@media (max-width: ${t[e].max}px)`, vr = ({
2785
2785
  small: e,
2786
2786
  medium: t
2787
2787
  }) => {
2788
- const n = pt(gr);
2788
+ const n = pt(yr);
2789
2789
  if (!e || !t)
2790
2790
  return n;
2791
2791
  const r = Math.floor(e / 2);
@@ -2807,17 +2807,17 @@ const Ho = ({
2807
2807
  min: i,
2808
2808
  default: i + 1
2809
2809
  }, n;
2810
- }, Go = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), vr = (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 `${Go(n)}: ${r};`;
2813
- }).filter(oe), Xo = (e) => vr(e).join(`
2812
+ return `${Jo(n)}: ${r};`;
2813
+ }).filter(oe), Yo = (e) => br(e).join(`
2814
2814
  `), _t = ({
2815
2815
  mediaQuery: e,
2816
2816
  className: t,
2817
2817
  styles: n
2818
2818
  }) => {
2819
2819
  const r = `.${t} {
2820
- ${Xo(n)}
2820
+ ${Yo(n)}
2821
2821
  }`;
2822
2822
  return e ? `${e} {
2823
2823
  ${r}
@@ -2826,7 +2826,7 @@ const Ho = ({
2826
2826
  function dt(e) {
2827
2827
  return /* @__PURE__ */ C("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
2828
2828
  }
2829
- function Yo(e) {
2829
+ function zo(e) {
2830
2830
  const t = function() {
2831
2831
  const o = ct({
2832
2832
  block: e.block,
@@ -2846,7 +2846,7 @@ function Yo(e) {
2846
2846
  rootSetState: e.context.rootSetState,
2847
2847
  context: e.context.context,
2848
2848
  shouldEvaluateBindings: !0
2849
- }), i = o.responsiveStyles, s = e.context.content, u = yr(
2849
+ }), i = o.responsiveStyles, s = e.context.content, u = vr(
2850
2850
  ((x = s == null ? void 0 : s.meta) == null ? void 0 : x.breakpoints) || {}
2851
2851
  ), d = i == null ? void 0 : i.large, k = i == null ? void 0 : i.medium, E = i == null ? void 0 : i.small, S = o.id;
2852
2852
  if (!S)
@@ -2857,14 +2857,14 @@ function Yo(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 Yo(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 Jo(e) {
2876
+ function qo(e) {
2877
2877
  return e.charAt(0).toUpperCase() + e.slice(1);
2878
2878
  }
2879
- const zo = (e) => `on${Jo(e)}`, qo = (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 zo = (e) => `on${Jo(e)}`, qo = (e, t) => (n) => sn({
2885
2885
  event: n,
2886
2886
  isExpression: !1
2887
2887
  });
2888
- function Ba(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 = zo(r);
2894
+ let i = Zo(r);
2895
2895
  if (e.stripPrefix)
2896
2896
  switch (he) {
2897
2897
  case "vue":
@@ -2901,29 +2901,29 @@ function Ba(e) {
2901
2901
  i = i.replace("on:", "");
2902
2902
  break;
2903
2903
  }
2904
- t[i] = qo(o, e);
2904
+ t[i] = Qo(o, e);
2905
2905
  }
2906
2906
  return t;
2907
2907
  }
2908
- function Zo({
2908
+ function ei({
2909
2909
  style: e
2910
2910
  }) {
2911
2911
  return e;
2912
2912
  }
2913
- const Qo = ({
2913
+ const ti = ({
2914
2914
  block: e,
2915
2915
  context: t
2916
- }) => br(Zo({
2916
+ }) => Sr(ei({
2917
2917
  style: e.style || {},
2918
2918
  context: t,
2919
2919
  block: e
2920
2920
  }));
2921
- function br(e) {
2921
+ function Sr(e) {
2922
2922
  switch (he) {
2923
2923
  case "svelte":
2924
2924
  case "vue":
2925
2925
  case "solid":
2926
- return vr(e).join(" ");
2926
+ return br(e).join(" ");
2927
2927
  case "qwik":
2928
2928
  case "reactNative":
2929
2929
  case "react":
@@ -2931,36 +2931,36 @@ function br(e) {
2931
2931
  return e;
2932
2932
  }
2933
2933
  }
2934
- function ei({
2934
+ function ni({
2935
2935
  properties: e
2936
2936
  }) {
2937
2937
  return e;
2938
2938
  }
2939
- const ti = (e) => ({
2939
+ const ri = (e) => ({
2940
2940
  href: e.href
2941
2941
  });
2942
- function ni({
2942
+ function oi({
2943
2943
  block: e,
2944
2944
  context: t
2945
2945
  }) {
2946
2946
  var r;
2947
2947
  const n = {
2948
- ...ti(e),
2948
+ ...ri(e),
2949
2949
  ...e.properties,
2950
2950
  "builder-id": e.id,
2951
- style: Qo({
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 ei({
2957
+ return ni({
2958
2958
  properties: n,
2959
2959
  context: t,
2960
2960
  block: e
2961
2961
  });
2962
2962
  }
2963
- const ri = ({
2963
+ const ii = ({
2964
2964
  componentOptions: e,
2965
2965
  builderBlock: t,
2966
2966
  context: n,
@@ -2976,7 +2976,7 @@ const ri = ({
2976
2976
  * component itself directly. Otherwise, they are provided to the wrapper element.
2977
2977
  */
2978
2978
  ...o ? {
2979
- attributes: ni({
2979
+ attributes: oi({
2980
2980
  block: t,
2981
2981
  context: s
2982
2982
  })
@@ -2990,13 +2990,13 @@ const ri = ({
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 ? eo : 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
- ...ri({
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 oi(e) {
3022
+ function ai(e) {
3023
3023
  const t = e.repeatContext;
3024
3024
  return /* @__PURE__ */ C(
3025
3025
  ht,
@@ -3034,13 +3034,13 @@ function oi(e) {
3034
3034
  function ht(e) {
3035
3035
  var k, E, S;
3036
3036
  const t = function() {
3037
- return Ho({
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 Ko({
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
- ...mo(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(Yo, { 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
- oi,
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
- to,
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
- no,
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 ii(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;
@@ -3229,7 +3229,7 @@ function ii(e) {
3229
3229
  };
3230
3230
  }, S = function(x) {
3231
3231
  var $, m;
3232
- return yr(
3232
+ return vr(
3233
3233
  ((m = ($ = e.builderContext.content) == null ? void 0 : $.meta) == null ? void 0 : m.breakpoints) || {}
3234
3234
  )[x].max;
3235
3235
  }, P = function() {
@@ -3268,7 +3268,7 @@ function ii(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
- ro,
3271
+ io,
3272
3272
  {
3273
3273
  TagName: v.link ? e.builderLinkComponent || "a" : "div",
3274
3274
  actionAttributes: {},
@@ -3277,7 +3277,7 @@ function ii(e) {
3277
3277
  href: v.link
3278
3278
  } : {},
3279
3279
  [Xt()]: "builder-column",
3280
- style: br(E(x))
3280
+ style: Sr(E(x))
3281
3281
  },
3282
3282
  children: /* @__PURE__ */ C(
3283
3283
  mt,
@@ -3308,11 +3308,11 @@ function ii(e) {
3308
3308
  function zn(e) {
3309
3309
  return e.replace(/http(s)?:/, "");
3310
3310
  }
3311
- function ai(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 si(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,23 +3324,23 @@ function si(e, t) {
3324
3324
  }
3325
3325
  return null;
3326
3326
  }
3327
- function Ma(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) => `${ai(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) => [si(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 li = (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(".");
3342
3342
  return t.length > 2 ? t.slice(1).join(".") : e;
3343
- }, Sr = ({
3343
+ }, wr = ({
3344
3344
  name: e,
3345
3345
  canTrack: t
3346
3346
  }) => {
@@ -3348,17 +3348,17 @@ const li = (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
- }, wr = async (e) => Sr(e), ci = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), ui = [["secure", ""], ["SameSite", "None"]], fi = ({
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) ? ui : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", li(window.location.hostname)], ...o];
3360
- return ci(s);
3361
- }, xr = async ({
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
+ }, kr = async ({
3362
3362
  name: e,
3363
3363
  value: t,
3364
3364
  expires: n,
@@ -3367,33 +3367,33 @@ const li = (e) => {
3367
3367
  try {
3368
3368
  if (!r)
3369
3369
  return;
3370
- const o = fi({
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
- }, pi = "builder.tests", ln = (e) => `${pi}.${e}`, di = ({
3379
+ }, hi = "builder.tests", ln = (e) => `${hi}.${e}`, mi = ({
3380
3380
  contentId: e
3381
- }) => wr({
3381
+ }) => xr({
3382
3382
  name: ln(e),
3383
3383
  canTrack: !0
3384
- }), hi = ({
3384
+ }), gi = ({
3385
3385
  contentId: e
3386
- }) => Sr({
3386
+ }) => wr({
3387
3387
  name: ln(e),
3388
3388
  canTrack: !0
3389
- }), mi = ({
3389
+ }), yi = ({
3390
3390
  contentId: e,
3391
3391
  value: t
3392
- }) => xr({
3392
+ }) => kr({
3393
3393
  name: ln(e),
3394
3394
  value: t,
3395
3395
  canTrack: !0
3396
- }), kr = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, gi = ({
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
  }) => {
@@ -3406,15 +3406,15 @@ const li = (e) => {
3406
3406
  return i;
3407
3407
  }
3408
3408
  return e;
3409
- }, Cr = (e) => {
3410
- const t = gi(e);
3411
- return mi({
3409
+ }, Er = (e) => {
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
- }, Er = ({
3417
+ }, Ir = ({
3418
3418
  item: e,
3419
3419
  testGroupId: t
3420
3420
  }) => {
@@ -3428,7 +3428,7 @@ const li = (e) => {
3428
3428
  testVariationId: n.id,
3429
3429
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
3430
3430
  };
3431
- }, yi = ({
3431
+ }, bi = ({
3432
3432
  item: e,
3433
3433
  canTrack: t
3434
3434
  }) => {
@@ -3436,14 +3436,14 @@ const li = (e) => {
3436
3436
  return e;
3437
3437
  if (!e)
3438
3438
  return;
3439
- if (!kr(e))
3439
+ if (!Cr(e))
3440
3440
  return e;
3441
- const n = hi({
3441
+ const n = gi({
3442
3442
  contentId: e.id
3443
- }) || Cr({
3443
+ }) || Er({
3444
3444
  variations: e.variations,
3445
3445
  id: e.id
3446
- }), r = Er({
3446
+ }), r = Ir({
3447
3447
  item: e,
3448
3448
  testGroupId: n
3449
3449
  });
@@ -3451,18 +3451,18 @@ const li = (e) => {
3451
3451
  ...e,
3452
3452
  ...r
3453
3453
  };
3454
- }, vi = async ({
3454
+ }, Si = async ({
3455
3455
  item: e,
3456
3456
  canTrack: t
3457
3457
  }) => {
3458
- if (!t || !kr(e))
3458
+ if (!t || !Cr(e))
3459
3459
  return e;
3460
- const r = await di({
3460
+ const r = await mi({
3461
3461
  contentId: e.id
3462
- }) || Cr({
3462
+ }) || Er({
3463
3463
  variations: e.variations,
3464
3464
  id: e.id
3465
- }), o = Er({
3465
+ }), o = Ir({
3466
3466
  item: e,
3467
3467
  testGroupId: r
3468
3468
  });
@@ -3470,7 +3470,7 @@ const li = (e) => {
3470
3470
  ...e,
3471
3471
  ...o
3472
3472
  };
3473
- }, Ht = (e) => oe(e) ? e : !0, bi = {
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 li = (e) => {
3503
3503
  }],
3504
3504
  static: !0,
3505
3505
  noWrap: !0
3506
- }, Si = {
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 li = (e) => {
3704
3704
  helperText: "When stacking columns for mobile devices, reverse the ordering",
3705
3705
  advanced: !0
3706
3706
  }]
3707
- }, wi = {
3707
+ }, ki = {
3708
3708
  name: "Custom Code",
3709
3709
  static: !0,
3710
3710
  requiredPermissions: ["editCode"],
@@ -3726,7 +3726,7 @@ const li = (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
- }, xi = {
3729
+ }, Ci = {
3730
3730
  name: "Embed",
3731
3731
  static: !0,
3732
3732
  inputs: [{
@@ -3751,13 +3751,13 @@ const li = (e) => {
3751
3751
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3752
3752
  hideFromUI: !0
3753
3753
  }]
3754
- }, ki = ["text/javascript", "application/javascript", "application/ecmascript"], Ua = (e) => ki.includes(e.type), Ci = {
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
- }, Ei = {
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 li = (e) => {
3857
3857
  advanced: !0,
3858
3858
  defaultValue: 0.7041
3859
3859
  }]
3860
- }, Ii = {
3860
+ }, Ai = {
3861
3861
  // friendlyName?
3862
3862
  name: "Raw:Img",
3863
3863
  hideFromInsertMenu: !0,
@@ -3871,7 +3871,7 @@ const li = (e) => {
3871
3871
  }],
3872
3872
  noWrap: !0,
3873
3873
  static: !0
3874
- }, Ti = {
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 li = (e) => {
3910
3910
  }
3911
3911
  }
3912
3912
  }]
3913
- }, Ai = {
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 li = (e) => {
3924
3924
  defaultValue: "children"
3925
3925
  }]
3926
3926
  };
3927
- function Oi(e) {
3927
+ function Ri(e) {
3928
3928
  var t, n, r;
3929
3929
  return /* @__PURE__ */ C(
3930
3930
  "div",
@@ -3947,7 +3947,7 @@ function Oi(e) {
3947
3947
  }
3948
3948
  );
3949
3949
  }
3950
- const ji = {
3950
+ const Pi = {
3951
3951
  name: "Symbol",
3952
3952
  noWrap: !0,
3953
3953
  static: !0,
@@ -3980,7 +3980,7 @@ const ji = {
3980
3980
  hideFromUI: !0,
3981
3981
  type: "boolean"
3982
3982
  }]
3983
- }, Ri = {
3983
+ }, Ni = {
3984
3984
  name: "Text",
3985
3985
  static: !0,
3986
3986
  isRSC: !0,
@@ -3999,7 +3999,7 @@ const ji = {
3999
3999
  textAlign: "center"
4000
4000
  }
4001
4001
  };
4002
- function Pi(e) {
4002
+ function Bi(e) {
4003
4003
  var t;
4004
4004
  return /* @__PURE__ */ C(
4005
4005
  "div",
@@ -4012,7 +4012,7 @@ function Pi(e) {
4012
4012
  }
4013
4013
  );
4014
4014
  }
4015
- const Ni = {
4015
+ const Ui = {
4016
4016
  name: "Video",
4017
4017
  canHaveChildren: !0,
4018
4018
  defaultStyles: {
@@ -4094,23 +4094,17 @@ const Ni = {
4094
4094
  advanced: !0
4095
4095
  }]
4096
4096
  }, qn = () => [{
4097
- component: oo,
4098
- ...bi
4099
- }, {
4100
- component: ii,
4101
- ...Si
4102
- }, {
4103
- component: io,
4097
+ component: ao,
4104
4098
  ...wi
4105
4099
  }, {
4106
- component: ao,
4100
+ component: si,
4107
4101
  ...xi
4108
4102
  }, {
4109
4103
  component: so,
4110
- ...Ci
4104
+ ...ki
4111
4105
  }, {
4112
4106
  component: lo,
4113
- ...Ei
4107
+ ...Ci
4114
4108
  }, {
4115
4109
  component: co,
4116
4110
  ...Ii
@@ -4118,33 +4112,39 @@ const Ni = {
4118
4112
  component: uo,
4119
4113
  ...Ti
4120
4114
  }, {
4121
- component: Ta,
4122
- ...ji
4115
+ component: fo,
4116
+ ...Ai
4123
4117
  }, {
4124
- component: Pi,
4125
- ...Ri
4118
+ component: po,
4119
+ ...Oi
4126
4120
  }, {
4127
- component: fo,
4121
+ component: Ba,
4122
+ ...Pi
4123
+ }, {
4124
+ component: Bi,
4128
4125
  ...Ni
4129
4126
  }, {
4130
- component: Oi,
4131
- ...Ai
4132
- }], Zn = [], Fa = (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
- }), Bi = (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" ? Bi(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
- }), Ui = `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 Ni = {
4200
4200
  }).join('');
4201
4201
  styleEl.innerHTML = newStyleStr;
4202
4202
  }
4203
- }`, Fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4203
+ }`, Vi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4204
4204
  if (!navigator.cookieEnabled) {
4205
4205
  return;
4206
4206
  }
@@ -4234,24 +4234,24 @@ const Ni = {
4234
4234
  thisScriptEl?.remove();
4235
4235
  }
4236
4236
  return;
4237
- }`, Ir = "builderIoAbTest", Tr = "builderIoRenderContent", st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4237
+ }`, Tr = "builderIoAbTest", Ar = "builderIoRenderContent", st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
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()), Di = (e) => e === "react" || e === "reactNative", Ar = Di(he), _i = () => `
4245
- window.${Ir} = ${Ui}
4246
- window.${Tr} = ${Fi}
4247
- `, Li = (e, t) => `
4248
- window.${Ir}(
4249
- "${t}",${JSON.stringify(e)}, ${Ar}
4250
- )`, Wi = ({
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
+ window.${Tr}(
4249
+ "${t}",${JSON.stringify(e)}, ${Or}
4250
+ )`, Hi = ({
4251
4251
  contentId: e,
4252
4252
  variationId: t
4253
- }) => `window.${Tr}(
4254
- "${t}", "${e}", ${Ar}
4253
+ }) => `window.${Ar}(
4254
+ "${t}", "${e}", ${Or}
4255
4255
  )`;
4256
4256
  function Gt(e) {
4257
4257
  return /* @__PURE__ */ C(
@@ -4262,33 +4262,33 @@ function Gt(e) {
4262
4262
  }
4263
4263
  );
4264
4264
  }
4265
- const $i = (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 Hi() {
4270
- globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Qr({
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 Ki(e) {
4277
- Hi();
4278
- const t = $i(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 Gi() {
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
- function Xi() {
4285
- const e = Gi().fetch;
4284
+ function Yi() {
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 Yi = Xi();
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,27 +4301,27 @@ function lt(e, t = null, n = ".") {
4301
4301
  };
4302
4302
  }, {});
4303
4303
  }
4304
- const Ji = "v3", Qn = "builder.", zi = "options.", qi = (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;
4308
4308
  }), t;
4309
- }, Or = (e) => {
4309
+ }, jr = (e) => {
4310
4310
  if (!e)
4311
4311
  return {};
4312
- const t = jr(e), n = {};
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(zi, "");
4315
+ const o = r.replace(Qn, "").replace(Zi, "");
4316
4316
  n[o] = t[r];
4317
4317
  }
4318
4318
  }), n;
4319
- }, Zi = () => {
4319
+ }, ea = () => {
4320
4320
  if (!G())
4321
4321
  return {};
4322
4322
  const e = new URLSearchParams(window.location.search);
4323
- return Or(e);
4324
- }, jr = (e) => e instanceof URLSearchParams ? qi(e) : e, er = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
4323
+ return jr(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 Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
4334
4334
  includeRefs: u = !0,
4335
4335
  enrich: d,
4336
4336
  locale: k,
4337
- apiVersion: E = Ji,
4337
+ apiVersion: E = qi,
4338
4338
  fields: S,
4339
4339
  omit: P,
4340
4340
  offset: j,
@@ -4353,12 +4353,12 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
4353
4353
  const Z = lt({
4354
4354
  sort: B
4355
4355
  });
4356
- for (const M in Z)
4357
- m.searchParams.set(M, JSON.stringify(Z[M]));
4356
+ for (const U in Z)
4357
+ m.searchParams.set(U, JSON.stringify(Z[U]));
4358
4358
  }
4359
4359
  const ee = {
4360
- ...Zi(),
4361
- ...jr(e.options || {})
4360
+ ...ea(),
4361
+ ...Rr(e.options || {})
4362
4362
  }, te = lt(ee);
4363
4363
  for (const Z in te)
4364
4364
  m.searchParams.set(Z, String(te[Z]));
@@ -4366,27 +4366,27 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
4366
4366
  const Z = lt({
4367
4367
  query: o
4368
4368
  });
4369
- for (const M in Z)
4370
- m.searchParams.set(M, JSON.stringify(Z[M]));
4369
+ for (const U in Z)
4370
+ m.searchParams.set(U, JSON.stringify(Z[U]));
4371
4371
  }
4372
4372
  return m;
4373
- }, Qi = (e) => "results" in e;
4373
+ }, ta = (e) => "results" in e;
4374
4374
  async function un(e) {
4375
- const t = await Rr({
4375
+ const t = await Pr({
4376
4376
  ...e,
4377
4377
  limit: 1
4378
4378
  });
4379
4379
  return t && t[0] || null;
4380
4380
  }
4381
- const Va = un, ea = async (e) => {
4381
+ const Ka = un, na = async (e) => {
4382
4382
  const t = cn(e);
4383
- return await (await Yi(t.href)).json();
4384
- }, ta = 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 = Ki(n.searchParams);
4389
+ const u = Xi(n.searchParams);
4390
4390
  i.push(u || s);
4391
4391
  }
4392
4392
  t.results = i;
@@ -4396,35 +4396,31 @@ const Va = un, ea = async (e) => {
4396
4396
  try {
4397
4397
  const i = [];
4398
4398
  for (const s of t.results)
4399
- i.push(await vi({
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
- async function Rr(e) {
4409
+ async function Pr(e) {
4410
4410
  try {
4411
- const t = cn(e), n = await ea(e);
4412
- return Qi(n) ? ta(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 Da = Rr, na = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
4422
- function ra(e, t) {
4423
- const n = new URL(t.origin), r = n.hostname;
4424
- return (e || na).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
4425
- }
4426
- function _a() {
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
4425
  function oa() {
4430
4426
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
@@ -4432,16 +4428,16 @@ function oa() {
4432
4428
  return (e == "x" ? t : t & 3 | 8).toString(16);
4433
4429
  });
4434
4430
  }
4435
- function Pr() {
4431
+ function Nr() {
4436
4432
  return oa().replace(/-/g, "");
4437
4433
  }
4438
- const Nr = "builderSessionId", ia = async ({
4434
+ const Br = "builderSessionId", ia = async ({
4439
4435
  canTrack: e
4440
4436
  }) => {
4441
4437
  if (!e)
4442
4438
  return;
4443
- const t = await wr({
4444
- name: Nr,
4439
+ const t = await xr({
4440
+ name: Br,
4445
4441
  canTrack: e
4446
4442
  });
4447
4443
  if (oe(t))
@@ -4453,20 +4449,20 @@ const Nr = "builderSessionId", ia = async ({
4453
4449
  canTrack: e
4454
4450
  }), n;
4455
4451
  }
4456
- }, aa = () => Pr(), sa = ({
4452
+ }, aa = () => Nr(), sa = ({
4457
4453
  id: e,
4458
4454
  canTrack: t
4459
- }) => xr({
4460
- name: Nr,
4455
+ }) => kr({
4456
+ name: Br,
4461
4457
  value: e,
4462
4458
  canTrack: t
4463
- }), Br = () => G() && typeof localStorage < "u" ? localStorage : void 0, la = ({
4459
+ }), Ur = () => G() && typeof localStorage < "u" ? localStorage : void 0, la = ({
4464
4460
  key: e,
4465
4461
  canTrack: t
4466
4462
  }) => {
4467
4463
  var n;
4468
4464
  try {
4469
- return t ? (n = Br()) == null ? void 0 : n.getItem(e) : void 0;
4465
+ return t ? (n = Ur()) == null ? void 0 : n.getItem(e) : void 0;
4470
4466
  } catch (r) {
4471
4467
  console.debug("[LocalStorage] GET error: ", r);
4472
4468
  return;
@@ -4478,7 +4474,7 @@ const Nr = "builderSessionId", ia = async ({
4478
4474
  }) => {
4479
4475
  var r;
4480
4476
  try {
4481
- t && ((r = Br()) == null || r.setItem(e, n));
4477
+ t && ((r = Ur()) == null || r.setItem(e, n));
4482
4478
  } catch (o) {
4483
4479
  console.debug("[LocalStorage] SET error: ", o);
4484
4480
  }
@@ -4500,7 +4496,7 @@ const Nr = "builderSessionId", ia = async ({
4500
4496
  canTrack: e
4501
4497
  }), n;
4502
4498
  }
4503
- }, fa = () => Pr(), pa = ({
4499
+ }, fa = () => Nr(), pa = ({
4504
4500
  id: e,
4505
4501
  canTrack: t
4506
4502
  }) => ca({
@@ -4541,16 +4537,16 @@ const Nr = "builderSessionId", ia = async ({
4541
4537
  ...await da({
4542
4538
  canTrack: t
4543
4539
  }),
4544
- userAttributes: sr(),
4540
+ userAttributes: lr(),
4545
4541
  ownerId: n
4546
4542
  }
4547
4543
  });
4548
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({
@@ -4564,7 +4560,7 @@ async function ma(e) {
4564
4560
  console.error("Failed to track: ", t);
4565
4561
  });
4566
4562
  }
4567
- const La = (e) => ma({
4563
+ const Ja = (e) => ma({
4568
4564
  ...e,
4569
4565
  canTrack: !0
4570
4566
  });
@@ -4594,7 +4590,7 @@ const ga = (e, t, n = !0) => {
4594
4590
  x: i,
4595
4591
  y: s
4596
4592
  };
4597
- }, Wa = (e) => {
4593
+ }, Ya = (e) => {
4598
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,
@@ -4610,8 +4606,13 @@ const ga = (e, t, n = !0) => {
4610
4606
  builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
4611
4607
  }
4612
4608
  };
4613
- }, va = "0.12.6", rr = {};
4614
- function ba(e, t) {
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 = {};
4615
+ function Sa(e, t) {
4615
4616
  let n = rr[e];
4616
4617
  if (n || (n = rr[e] = []), n.push(t), G()) {
4617
4618
  const r = {
@@ -4628,8 +4629,8 @@ function ba(e, t) {
4628
4629
  }
4629
4630
  }
4630
4631
  }
4631
- const $a = () => {
4632
- ba("insertMenu", {
4632
+ const za = () => {
4633
+ Sa("insertMenu", {
4633
4634
  name: "_default",
4634
4635
  default: !0,
4635
4636
  items: [{
@@ -4652,13 +4653,13 @@ const $a = () => {
4652
4653
  });
4653
4654
  };
4654
4655
  let or = !1;
4655
- const Ha = (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",
4659
4660
  data: {
4660
4661
  target: he,
4661
- version: va,
4662
+ version: ba,
4662
4663
  supportsPatchUpdates: !1,
4663
4664
  // Supports builder-model="..." attribute which is needed to
4664
4665
  // scope our '+ add block' button styling
@@ -4672,7 +4673,7 @@ const Ha = (e = {}) => {
4672
4673
  }
4673
4674
  }, "*"), window.addEventListener("message", (r) => {
4674
4675
  var i, s;
4675
- if (!ra(e.trustedHosts, r))
4676
+ if (!Fr(e.trustedHosts, r))
4676
4677
  return;
4677
4678
  const {
4678
4679
  data: o
@@ -4713,7 +4714,94 @@ const Ha = (e = {}) => {
4713
4714
  }
4714
4715
  }
4715
4716
  })));
4716
- }, Sa = (e) => {
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
+ };
4762
+ };
4763
+ function ir(e, ...t) {
4764
+ const n = Object(e);
4765
+ for (let r = 1; r < arguments.length; r++) {
4766
+ const o = arguments[r];
4767
+ if (o != null)
4768
+ for (const i in o)
4769
+ Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
4770
+ }
4771
+ return n;
4772
+ }
4773
+ const ka = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
4774
+ function Ca(e) {
4775
+ console.warn(`Cannot animate element: element with ID ${e} not found!`);
4776
+ }
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];
4779
+ for (const u of s)
4780
+ for (const d of n)
4781
+ d in u || (u[d] = r[d]);
4782
+ }
4783
+ function Ia(e) {
4784
+ const t = [];
4785
+ for (const n of e.steps)
4786
+ for (const r in n.styles)
4787
+ t.indexOf(r) === -1 && t.push(r);
4788
+ return t;
4789
+ }
4790
+ function Za(e) {
4791
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
4792
+ if (!t.length) {
4793
+ Ca(e.elementId || e.id || "");
4794
+ return;
4795
+ }
4796
+ Array.from(t).forEach((n) => {
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(() => {
4799
+ n.style.transition = "", n.style.transitionDelay = "";
4800
+ }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
4801
+ });
4802
+ });
4803
+ }
4804
+ const Ta = (e) => {
4717
4805
  var i;
4718
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);
4719
4807
  let o = "";
@@ -4739,22 +4827,22 @@ font-weight: ${s};
4739
4827
  `.trim());
4740
4828
  }
4741
4829
  return o;
4742
- }, wa = ({
4830
+ }, Aa = ({
4743
4831
  customFonts: e
4744
4832
  }) => {
4745
4833
  var t;
4746
- return ((t = e == null ? void 0 : e.map((n) => Sa(n))) == null ? void 0 : t.join(" ")) || "";
4747
- }, xa = ({
4834
+ return ((t = e == null ? void 0 : e.map((n) => Ta(n))) == null ? void 0 : t.join(" ")) || "";
4835
+ }, Oa = ({
4748
4836
  cssCode: e,
4749
4837
  contentId: t
4750
4838
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
4751
- function ka(e) {
4839
+ function ja(e) {
4752
4840
  const t = `
4753
- ${xa({
4841
+ ${Oa({
4754
4842
  cssCode: e.cssCode,
4755
4843
  contentId: e.contentId
4756
4844
  })}
4757
- ${wa({
4845
+ ${Aa({
4758
4846
  customFonts: e.customFonts
4759
4847
  })}
4760
4848
 
@@ -4777,7 +4865,7 @@ ${wa({
4777
4865
  `.trim();
4778
4866
  return /* @__PURE__ */ C(dt, { styles: t });
4779
4867
  }
4780
- const Ca = ({
4868
+ const Ra = ({
4781
4869
  content: e,
4782
4870
  data: t,
4783
4871
  locale: n
@@ -4794,7 +4882,7 @@ const Ca = ({
4794
4882
  locale: n
4795
4883
  } : {}
4796
4884
  };
4797
- }, Ea = ({
4885
+ }, Pa = ({
4798
4886
  content: e,
4799
4887
  data: t
4800
4888
  }) => e ? {
@@ -4805,9 +4893,9 @@ const Ca = ({
4805
4893
  },
4806
4894
  meta: e == null ? void 0 : e.meta
4807
4895
  } : void 0;
4808
- function ir(e) {
4896
+ function ar(e) {
4809
4897
  var o, i, s, u, d, k, E, S, P;
4810
- const t = Wi({
4898
+ const t = Hi({
4811
4899
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4812
4900
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
4813
4901
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4831,12 +4919,12 @@ function ir(e) {
4831
4919
  }),
4832
4920
  {}
4833
4921
  ), r = {
4834
- content: Ea({
4922
+ content: Pa({
4835
4923
  content: e.content,
4836
4924
  data: e.data
4837
4925
  }),
4838
4926
  localState: void 0,
4839
- rootState: Ca({
4927
+ rootState: Ra({
4840
4928
  content: e.content,
4841
4929
  data: e.data,
4842
4930
  locale: e.locale
@@ -4866,7 +4954,7 @@ function ir(e) {
4866
4954
  BlocksWrapperProps: e.blocksWrapperProps || {}
4867
4955
  };
4868
4956
  return /* @__PURE__ */ xe(
4869
- po,
4957
+ mo,
4870
4958
  {
4871
4959
  content: e.content,
4872
4960
  data: e.data,
@@ -4886,7 +4974,7 @@ function ir(e) {
4886
4974
  children: [
4887
4975
  e.isSsrAbTest ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: t }) }) : null,
4888
4976
  /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
4889
- ka,
4977
+ ja,
4890
4978
  {
4891
4979
  contentId: (s = r.content) == null ? void 0 : s.id,
4892
4980
  cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
@@ -4906,14 +4994,14 @@ function ir(e) {
4906
4994
  }
4907
4995
  );
4908
4996
  }
4909
- function Ur(e) {
4997
+ function Dr(e) {
4910
4998
  var i, s;
4911
- const t = Vi({
4999
+ const t = _i({
4912
5000
  canTrack: Ht(e.canTrack),
4913
5001
  content: e.content
4914
5002
  }), n = function() {
4915
5003
  var d;
4916
- return Li(
5004
+ return $i(
4917
5005
  st(e.content).map((k) => ({
4918
5006
  id: k.testVariationId,
4919
5007
  testRatio: k.testRatio
@@ -4927,13 +5015,13 @@ function Ur(e) {
4927
5015
  return t ? {
4928
5016
  ...e.content,
4929
5017
  testVariationId: (d = e.content) == null ? void 0 : d.id
4930
- } : yi({
5018
+ } : bi({
4931
5019
  item: e.content,
4932
5020
  canTrack: Ht(e.canTrack)
4933
5021
  });
4934
5022
  };
4935
5023
  return /* @__PURE__ */ xe(L, { children: [
4936
- !e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: _i() }) }) : null,
5024
+ !e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: Wi() }) }) : null,
4937
5025
  t ? /* @__PURE__ */ xe(L, { children: [
4938
5026
  /* @__PURE__ */ C(
4939
5027
  dt,
@@ -4944,7 +5032,7 @@ function Ur(e) {
4944
5032
  ),
4945
5033
  /* @__PURE__ */ C(Gt, { scriptStr: n() }),
4946
5034
  (s = st(e.content)) == null ? void 0 : s.map((u) => /* @__PURE__ */ C(
4947
- ir,
5035
+ ar,
4948
5036
  {
4949
5037
  content: u,
4950
5038
  showContent: !1,
@@ -4970,7 +5058,7 @@ function Ur(e) {
4970
5058
  ))
4971
5059
  ] }) : null,
4972
5060
  /* @__PURE__ */ C(
4973
- ir,
5061
+ ar,
4974
5062
  {
4975
5063
  content: o(),
4976
5064
  showContent: !0,
@@ -4995,7 +5083,7 @@ function Ur(e) {
4995
5083
  )
4996
5084
  ] });
4997
5085
  }
4998
- const Ia = async ({
5086
+ const Na = async ({
4999
5087
  builderContextValue: e,
5000
5088
  symbol: t
5001
5089
  }) => {
@@ -5011,10 +5099,10 @@ const Ia = async ({
5011
5099
  }
5012
5100
  }
5013
5101
  }).catch((n) => {
5014
- z.error("Could not fetch symbol content: ", n);
5102
+ X.error("Could not fetch symbol content: ", n);
5015
5103
  });
5016
5104
  };
5017
- async function Ta(e) {
5105
+ async function Ba(e) {
5018
5106
  var r, o, i, s, u;
5019
5107
  const t = function() {
5020
5108
  var k, E;
@@ -5024,12 +5112,12 @@ async function Ta(e) {
5024
5112
  (k = e.symbol) != null && k.inline ? "builder-inline-symbol" : void 0,
5025
5113
  (E = e.symbol) != null && E.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
5026
5114
  ].filter(Boolean).join(" ");
5027
- }, n = ((r = e.symbol) == null ? void 0 : r.content) || await Ia({
5115
+ }, n = ((r = e.symbol) == null ? void 0 : r.content) || await Na({
5028
5116
  symbol: e.symbol,
5029
5117
  builderContextValue: e.builderContext
5030
5118
  });
5031
5119
  return /* @__PURE__ */ C("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ C(
5032
- Ur,
5120
+ Dr,
5033
5121
  {
5034
5122
  __isNestedRender: !0,
5035
5123
  apiVersion: e.builderContext.apiVersion,
@@ -5050,18 +5138,18 @@ async function Ta(e) {
5050
5138
  }
5051
5139
  ) });
5052
5140
  }
5053
- const Ka = mt, Ga = Ur, ar = {};
5054
- function Xa(e) {
5141
+ const Qa = mt, es = Dr, sr = {};
5142
+ function ts(e) {
5055
5143
  if (G()) {
5056
- Object.assign(ar, e);
5144
+ Object.assign(sr, e);
5057
5145
  const t = {
5058
5146
  type: "builder.settingsChange",
5059
- data: ar
5147
+ data: sr
5060
5148
  };
5061
5149
  parent.postMessage(t, "*");
5062
5150
  }
5063
5151
  }
5064
- const Ya = async (e) => {
5152
+ const ns = async (e) => {
5065
5153
  var r, o, i;
5066
5154
  const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
5067
5155
  ...e,
@@ -5073,7 +5161,7 @@ const Ya = async (e) => {
5073
5161
  urlPath: t
5074
5162
  } : {}
5075
5163
  },
5076
- options: Or(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
5164
+ options: jr(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
5077
5165
  };
5078
5166
  return {
5079
5167
  apiKey: n.apiKey,
@@ -5082,42 +5170,44 @@ const Ya = async (e) => {
5082
5170
  };
5083
5171
  };
5084
5172
  export {
5085
- Rr as A,
5173
+ jr as A,
5086
5174
  mt as B,
5087
- Ur as C,
5088
- Da as D,
5089
- Va as E,
5090
- Or as F,
5091
- La as G,
5092
- Ya as H,
5093
- Ka as R,
5094
- Ta as S,
5095
- Pi as T,
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,
5096
5186
  ma as _,
5097
- ni as a,
5098
- Ba as b,
5099
- Yt as c,
5100
- Ma as d,
5101
- Ua as e,
5187
+ oi as a,
5188
+ La as b,
5189
+ Jt as c,
5190
+ Wa as d,
5191
+ $a as e,
5102
5192
  G as f,
5103
5193
  Xt as g,
5104
5194
  Ht as h,
5105
- Na as i,
5106
- _a as j,
5107
- ra as k,
5108
- z as l,
5195
+ _a as i,
5196
+ Xa as j,
5197
+ xa as k,
5198
+ X as l,
5109
5199
  sn as m,
5110
- Wa as n,
5200
+ Ya as n,
5111
5201
  pt as o,
5112
- Fa as p,
5202
+ Ha as p,
5113
5203
  un as q,
5114
- $a as r,
5115
- Ha as s,
5116
- Yi as t,
5117
- Hi as u,
5118
- Ga as v,
5119
- ii as w,
5120
- ba as x,
5121
- Xa as y,
5122
- ta as z
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,
5211
+ Sa as y,
5212
+ ts as z
5123
5213
  };