@builder.io/sdk-react 2.0.2 → 2.0.5

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 (85) hide show
  1. package/lib/browser/blocks-exports.cjs +29 -29
  2. package/lib/browser/blocks-exports.mjs +300 -278
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/server-entry-0c6c220c.js +688 -0
  8. package/lib/browser/server-entry-7e145817.cjs +2 -0
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-4f96554c.cjs → accordion-72dab8ce.cjs} +1 -1
  12. package/lib/edge/{accordion-ca081054.js → accordion-99129d68.js} +1 -1
  13. package/lib/edge/blocks-426e0c44.js +808 -0
  14. package/lib/edge/blocks-53ae1b87.cjs +12 -0
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-41169061.js → button-778062cd.js} +2 -2
  18. package/lib/edge/{button-5d140f8e.cjs → button-967d0268.cjs} +1 -1
  19. package/lib/edge/{columns-f8916a18.js → columns-3a8c4d3f.js} +53 -51
  20. package/lib/edge/columns-3b921658.cjs +28 -0
  21. package/lib/edge/{content-variants-71ee0c76.js → content-variants-15d191de.js} +28 -26
  22. package/lib/edge/content-variants-4b8718f8.cjs +134 -0
  23. package/lib/edge/evaluate-26c0fdb7.js +2615 -0
  24. package/lib/edge/evaluate-c0eeb4f8.cjs +21 -0
  25. package/lib/edge/form-9d9dce5d.cjs +1 -0
  26. package/lib/edge/{form-ac2f2a0e.js → form-ccb0b912.js} +8 -7
  27. package/lib/edge/{get-class-prop-name-a677d7a5.js → get-class-prop-name-0a91c3bd.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-a9b4959e.cjs → get-class-prop-name-eae60eae.cjs} +1 -1
  29. package/lib/edge/{image-e3fcd611.js → image-6a074aab.js} +27 -25
  30. package/lib/edge/image-eebfcbac.cjs +17 -0
  31. package/lib/edge/{img-b91cb4fd.cjs → img-183de27d.cjs} +1 -1
  32. package/lib/edge/{img-8fc26395.js → img-75751c89.js} +1 -1
  33. package/lib/edge/index.cjs +1 -1
  34. package/lib/edge/index.mjs +1 -1
  35. package/lib/edge/init.cjs +1 -1
  36. package/lib/edge/init.mjs +1 -1
  37. package/lib/edge/{input-549f090e.js → input-27972020.js} +1 -1
  38. package/lib/edge/{input-ec7c695a.cjs → input-fd18a67d.cjs} +1 -1
  39. package/lib/edge/{select-6a5a28ac.js → select-60ff549c.js} +1 -1
  40. package/lib/edge/{select-3ffa9294.cjs → select-6ea0d59f.cjs} +1 -1
  41. package/lib/edge/server-entry-4133a544.cjs +2 -0
  42. package/lib/edge/server-entry-feff6177.js +689 -0
  43. package/lib/edge/server-entry.cjs +1 -1
  44. package/lib/edge/server-entry.mjs +1 -1
  45. package/lib/edge/{slot-40de071b.js → slot-2347377e.js} +12 -11
  46. package/lib/edge/slot-a4509cae.cjs +1 -0
  47. package/lib/edge/{symbol-76e76298.cjs → symbol-98650b06.cjs} +1 -1
  48. package/lib/edge/{symbol-e6515a5f.js → symbol-dcef0d8e.js} +2 -2
  49. package/lib/edge/{tabs-b75be82d.js → tabs-0784574b.js} +10 -9
  50. package/lib/edge/tabs-4c131e17.cjs +1 -0
  51. package/lib/edge/text-1c1986aa.cjs +1 -0
  52. package/lib/edge/text-6f7cbc35.js +38 -0
  53. package/lib/node/blocks-exports.cjs +16 -16
  54. package/lib/node/blocks-exports.mjs +255 -233
  55. package/lib/node/index.cjs +1 -1
  56. package/lib/node/index.mjs +2 -2
  57. package/lib/node/init.cjs +1 -1
  58. package/lib/node/init.mjs +2 -2
  59. package/lib/node/{node-runtime-0e37d6f7.cjs → node-runtime-4978bc21.cjs} +2 -2
  60. package/lib/node/{node-runtime-0f3a5df1.js → node-runtime-ce5c71e5.js} +3 -2
  61. package/lib/node/server-entry-0c6c220c.js +688 -0
  62. package/lib/node/server-entry-7e145817.cjs +2 -0
  63. package/lib/node/server-entry.cjs +1 -1
  64. package/lib/node/server-entry.mjs +1 -1
  65. package/package.json +1 -1
  66. package/types/blocks/image/image.types.d.ts +2 -0
  67. package/types/blocks/symbol/symbol.types.d.ts +1 -0
  68. package/types/constants/sdk-version.d.ts +1 -1
  69. package/types/functions/register-component.d.ts +2 -2
  70. package/lib/browser/server-entry-419c051e.cjs +0 -2
  71. package/lib/browser/server-entry-825b4408.js +0 -695
  72. package/lib/edge/blocks-078044bc.cjs +0 -32
  73. package/lib/edge/blocks-f55c7d3e.js +0 -3418
  74. package/lib/edge/columns-354bf349.cjs +0 -28
  75. package/lib/edge/content-variants-89a9389a.cjs +0 -134
  76. package/lib/edge/form-f2d2c2bf.cjs +0 -1
  77. package/lib/edge/image-344ddbb0.cjs +0 -17
  78. package/lib/edge/server-entry-966ac144.cjs +0 -2
  79. package/lib/edge/server-entry-d2020acf.js +0 -695
  80. package/lib/edge/slot-8b27e15e.cjs +0 -1
  81. package/lib/edge/tabs-9c5af0ec.cjs +0 -1
  82. package/lib/edge/text-5915f038.js +0 -17
  83. package/lib/edge/text-e6dbb721.cjs +0 -1
  84. package/lib/node/server-entry-5ebd1c9b.js +0 -695
  85. package/lib/node/server-entry-8002325b.cjs +0 -2
@@ -0,0 +1,2615 @@
1
+ var Zr = Object.defineProperty;
2
+ var zr = (e, t, n) => t in e ? Zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var Ot = (e, t, n) => (zr(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import { isEditing as Qr, isBrowser as At, getUserAttributes as qr, logger as Mt, checkIsDefined as en } from "./server-entry-feff6177.js";
5
+ const tn = (e, t, n) => {
6
+ if (Object(e) !== e)
7
+ return e;
8
+ const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
9
+ return r.slice(0, -1).reduce((i, s, u) => Object(i[s]) === i[s] ? i[s] : i[s] = Math.abs(Number(r[u + 1])) >> 0 === +r[u + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
10
+ }, Ar = ({
11
+ builder: e,
12
+ context: t,
13
+ event: n,
14
+ state: r
15
+ }) => Object.entries({
16
+ state: r,
17
+ Builder: e,
18
+ // legacy
19
+ builder: e,
20
+ context: t,
21
+ event: n
22
+ }), rn = () => ({
23
+ isEditing: Qr(),
24
+ isBrowser: At(),
25
+ isServer: !At(),
26
+ getUserAttributes: () => qr()
27
+ }), nn = (e, {
28
+ isExpression: t = !0
29
+ }) => /* 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, on = ({
30
+ code: e,
31
+ builder: t,
32
+ context: n,
33
+ event: r,
34
+ localState: i,
35
+ rootSetState: s,
36
+ rootState: u
37
+ }) => {
38
+ const h = Ar({
39
+ builder: t,
40
+ context: n,
41
+ event: r,
42
+ state: Ir({
43
+ rootState: u,
44
+ localState: i,
45
+ rootSetState: s
46
+ })
47
+ });
48
+ return new Function(...h.map(([m]) => m), e)(...h.map(([, m]) => m));
49
+ };
50
+ function Ir({
51
+ rootState: e,
52
+ localState: t,
53
+ rootSetState: n
54
+ }) {
55
+ return new Proxy(e, {
56
+ get: (r, i) => {
57
+ if (t && i in t)
58
+ return t[i];
59
+ const s = r[i];
60
+ return typeof s == "object" && s !== null ? Ir({
61
+ rootState: s,
62
+ localState: void 0,
63
+ rootSetState: n ? (u) => {
64
+ r[i] = u, n(r);
65
+ } : void 0
66
+ }) : s;
67
+ },
68
+ set: (r, i, s) => {
69
+ if (t && i in t)
70
+ throw new Error("Writing to local state is not allowed as it is read-only.");
71
+ return r[i] = s, n == null || n(r), !0;
72
+ }
73
+ });
74
+ }
75
+ var O, sn = function(e) {
76
+ function t(o) {
77
+ return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Yr.test(String.fromCharCode(o));
78
+ }
79
+ function n(o) {
80
+ return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Er.test(String.fromCharCode(o));
81
+ }
82
+ function r(o, a) {
83
+ for (var l = g, p = 1, E = 0; ; ) {
84
+ qe.lastIndex = E;
85
+ var P = qe.exec(l);
86
+ if (P && P.index < o)
87
+ ++p, E = P.index + P[0].length;
88
+ else
89
+ break;
90
+ }
91
+ throw l = {
92
+ line: p,
93
+ ab: o - E
94
+ }, a += " (" + l.line + ":" + l.ab + ")", a = new SyntaxError(a), a.j = o, a.X = l, a.o = c, a;
95
+ }
96
+ function i(o) {
97
+ o = o.split(" ");
98
+ for (var a = /* @__PURE__ */ Object.create(null), l = 0; l < o.length; l++)
99
+ a[o[l]] = !0;
100
+ return function(p) {
101
+ return a[p] || !1;
102
+ };
103
+ }
104
+ function s() {
105
+ this.line = le, this.ab = c - K;
106
+ }
107
+ function u(o, a) {
108
+ he = c, j.C && (pt = new s()), w = o, m(), V = a, Ie = o.m;
109
+ }
110
+ function h() {
111
+ for (var o = c, a = j.va && j.C && new s(), l = g.charCodeAt(c += 2); c < fe && l !== 10 && l !== 13 && l !== 8232 && l !== 8233; )
112
+ ++c, l = g.charCodeAt(c);
113
+ j.va && j.va(!1, g.slice(o + 2, c), o, c, a, j.C && new s());
114
+ }
115
+ function m() {
116
+ for (; c < fe; ) {
117
+ var o = g.charCodeAt(c);
118
+ if (o === 32)
119
+ ++c;
120
+ else if (o === 13)
121
+ ++c, o = g.charCodeAt(c), o === 10 && ++c, j.C && (++le, K = c);
122
+ else if (o === 10 || o === 8232 || o === 8233)
123
+ ++c, j.C && (++le, K = c);
124
+ else if (8 < o && 14 > o)
125
+ ++c;
126
+ else if (o === 47)
127
+ if (o = g.charCodeAt(c + 1), o === 42) {
128
+ o = void 0;
129
+ var a = j.va && j.C && new s(), l = c, p = g.indexOf("*/", c += 2);
130
+ if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, j.C)
131
+ for (qe.lastIndex = l; (o = qe.exec(g)) && o.index < c; )
132
+ ++le, K = o.index + o[0].length;
133
+ j.va && j.va(!0, g.slice(l + 2, p), l, c, a, j.C && new s());
134
+ } else if (o === 47)
135
+ h();
136
+ else
137
+ break;
138
+ else if (o === 160)
139
+ ++c;
140
+ else if (5760 <= o && Jr.test(String.fromCharCode(o)))
141
+ ++c;
142
+ else
143
+ break;
144
+ }
145
+ }
146
+ function T(o) {
147
+ switch (o) {
148
+ case 46:
149
+ o = g.charCodeAt(c + 1), 48 <= o && 57 >= o ? pe(!0) : (++c, u(fr));
150
+ return;
151
+ case 40:
152
+ return ++c, u(Z);
153
+ case 41:
154
+ return ++c, u($);
155
+ case 59:
156
+ return ++c, u(z);
157
+ case 44:
158
+ return ++c, u(oe);
159
+ case 91:
160
+ return ++c, u(xt);
161
+ case 93:
162
+ return ++c, u(jt);
163
+ case 123:
164
+ return ++c, u(Me);
165
+ case 125:
166
+ return ++c, u(ve);
167
+ case 58:
168
+ return ++c, u(Re);
169
+ case 63:
170
+ return ++c, u(hr);
171
+ case 48:
172
+ if (o = g.charCodeAt(c + 1), o === 120 || o === 88) {
173
+ c += 2, o = ae(16), o === null && r(R + 2, "Expected hexadecimal number"), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), u(Ne, o);
174
+ return;
175
+ }
176
+ case 49:
177
+ case 50:
178
+ case 51:
179
+ case 52:
180
+ case 53:
181
+ case 54:
182
+ case 55:
183
+ case 56:
184
+ case 57:
185
+ return pe(!1);
186
+ case 34:
187
+ case 39:
188
+ c++;
189
+ for (var a = ""; ; ) {
190
+ c >= fe && r(R, "Unterminated string constant");
191
+ var l = g.charCodeAt(c);
192
+ if (l === o) {
193
+ ++c, u(Ke, a);
194
+ break;
195
+ }
196
+ if (l === 92) {
197
+ l = g.charCodeAt(++c);
198
+ var p = /^[0-7]+/.exec(g.slice(c, c + 3));
199
+ for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
200
+ p = p.slice(0, -1);
201
+ if (p === "0" && (p = null), ++c, p)
202
+ G && r(c - 2, "Octal literal in strict mode"), a += String.fromCharCode(parseInt(p, 8)), c += p.length - 1;
203
+ else
204
+ switch (l) {
205
+ case 110:
206
+ a += `
207
+ `;
208
+ break;
209
+ case 114:
210
+ a += "\r";
211
+ break;
212
+ case 120:
213
+ a += String.fromCharCode(Se(2));
214
+ break;
215
+ case 117:
216
+ a += String.fromCharCode(Se(4));
217
+ break;
218
+ case 85:
219
+ a += String.fromCharCode(Se(8));
220
+ break;
221
+ case 116:
222
+ a += " ";
223
+ break;
224
+ case 98:
225
+ a += "\b";
226
+ break;
227
+ case 118:
228
+ a += "\v";
229
+ break;
230
+ case 102:
231
+ a += "\f";
232
+ break;
233
+ case 48:
234
+ a += "\0";
235
+ break;
236
+ case 13:
237
+ g.charCodeAt(c) === 10 && ++c;
238
+ case 10:
239
+ j.C && (K = c, ++le);
240
+ break;
241
+ default:
242
+ a += String.fromCharCode(l);
243
+ }
244
+ } else
245
+ l !== 13 && l !== 10 && l !== 8232 && l !== 8233 || r(R, "Unterminated string constant"), a += String.fromCharCode(l), ++c;
246
+ }
247
+ return;
248
+ case 47:
249
+ o = g.charCodeAt(c + 1), Ie ? (++c, We()) : o === 61 ? A(ce, 2) : A(gr, 1);
250
+ return;
251
+ case 37:
252
+ case 42:
253
+ g.charCodeAt(c + 1) === 61 ? A(ce, 2) : A(Wr, 1);
254
+ return;
255
+ case 124:
256
+ case 38:
257
+ a = g.charCodeAt(c + 1), a === o ? A(o === 124 ? dr : mr, 2) : a === 61 ? A(ce, 2) : A(o === 124 ? Fr : Lr, 1);
258
+ return;
259
+ case 94:
260
+ g.charCodeAt(c + 1) === 61 ? A(ce, 2) : A(_r, 1);
261
+ return;
262
+ case 43:
263
+ case 45:
264
+ a = g.charCodeAt(c + 1), a === o ? a === 45 && g.charCodeAt(c + 2) === 62 && Qe.test(g.slice(ie, c)) ? (c += 3, h(), m(), C()) : A(Dr, 2) : a === 61 ? A(ce, 2) : A(Xr, 1);
265
+ return;
266
+ case 60:
267
+ case 62:
268
+ a = g.charCodeAt(c + 1), l = 1, a === o ? (l = o === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + l) === 61 ? A(ce, l + 1) : A(Vr, l)) : a === 33 && o === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, h(), m(), C()) : (a === 61 && (l = g.charCodeAt(c + 2) === 61 ? 3 : 2), A(Gr, l));
269
+ return;
270
+ case 61:
271
+ case 33:
272
+ g.charCodeAt(c + 1) === 61 ? A(Br, g.charCodeAt(c + 2) === 61 ? 3 : 2) : A(o === 61 ? vr : yr, 1);
273
+ return;
274
+ case 126:
275
+ return A(yr, 1);
276
+ }
277
+ return !1;
278
+ }
279
+ function C(o) {
280
+ if (o ? c = R + 1 : R = c, j.C && (ct = new s()), o)
281
+ return We();
282
+ if (c >= fe)
283
+ return u(gt);
284
+ if (o = g.charCodeAt(c), n(o) || o === 92)
285
+ return H();
286
+ if (T(o) === !1) {
287
+ if (o = String.fromCharCode(o), o === "\\" || Er.test(o))
288
+ return H();
289
+ r(c, "Unexpected character '" + o + "'");
290
+ }
291
+ }
292
+ function A(o, a) {
293
+ var l = g.slice(c, c + a);
294
+ c += a, u(o, l);
295
+ }
296
+ function We() {
297
+ for (var o, a, l = c; ; ) {
298
+ c >= fe && r(l, "Unterminated regexp");
299
+ var p = g.charAt(c);
300
+ if (Qe.test(p) && r(l, "Unterminated regexp"), o)
301
+ o = !1;
302
+ else {
303
+ if (p === "[")
304
+ a = !0;
305
+ else if (p === "]" && a)
306
+ a = !1;
307
+ else if (p === "/" && !a)
308
+ break;
309
+ o = p === "\\";
310
+ }
311
+ ++c;
312
+ }
313
+ o = g.slice(l, c), ++c, (a = X()) && !/^[gmi]*$/.test(a) && r(l, "Invalid regexp flag");
314
+ try {
315
+ var E = new RegExp(o, a);
316
+ } catch (P) {
317
+ throw P instanceof SyntaxError && r(l, P.message), P;
318
+ }
319
+ u(Jt, E);
320
+ }
321
+ function ae(o, a) {
322
+ for (var l = c, p = 0, E = a === void 0 ? 1 / 0 : a, P = 0; P < E; ++P) {
323
+ var _ = g.charCodeAt(c);
324
+ if (_ = 97 <= _ ? _ - 97 + 10 : 65 <= _ ? _ - 65 + 10 : 48 <= _ && 57 >= _ ? _ - 48 : 1 / 0, _ >= o)
325
+ break;
326
+ ++c, p = p * o + _;
327
+ }
328
+ return c === l || a !== void 0 && c - l !== a ? null : p;
329
+ }
330
+ function pe(o) {
331
+ var a = c, l = !1, p = g.charCodeAt(c) === 48;
332
+ o || ae(10) !== null || r(a, "Invalid number"), g.charCodeAt(c) === 46 && (++c, ae(10), l = !0), o = g.charCodeAt(c), (o === 69 || o === 101) && (o = g.charCodeAt(++c), o !== 43 && o !== 45 || ++c, ae(10) === null && r(a, "Invalid number"), l = !0), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), o = g.slice(a, c);
333
+ var E;
334
+ l ? E = parseFloat(o) : p && o.length !== 1 ? /[89]/.test(o) || G ? r(a, "Invalid number") : E = parseInt(o, 8) : E = parseInt(o, 10), u(Ne, E);
335
+ }
336
+ function Se(o) {
337
+ return o = ae(16, o), o === null && r(R, "Bad character escape sequence"), o;
338
+ }
339
+ function X() {
340
+ ye = !1;
341
+ for (var o, a = !0, l = c; ; ) {
342
+ var p = g.charCodeAt(c);
343
+ if (t(p))
344
+ ye && (o += g.charAt(c)), ++c;
345
+ else if (p === 92) {
346
+ ye || (o = g.slice(l, c)), ye = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p = Se(4);
347
+ var E = String.fromCharCode(p);
348
+ E || r(c - 1, "Invalid Unicode escape"), (a ? n(p) : t(p)) || r(c - 4, "Invalid Unicode escape"), o += E;
349
+ } else
350
+ break;
351
+ a = !1;
352
+ }
353
+ return ye ? o : g.slice(l, c);
354
+ }
355
+ function H() {
356
+ var o = X(), a = ge;
357
+ !ye && $r(o) && (a = Ur[o]), u(a, o);
358
+ }
359
+ function S() {
360
+ ft = R, ie = he, ht = pt, C();
361
+ }
362
+ function ke(o) {
363
+ if (G = o, c = R, j.C)
364
+ for (; c < K; )
365
+ K = g.lastIndexOf(`
366
+ `, K - 2) + 1, --le;
367
+ m(), C();
368
+ }
369
+ function He() {
370
+ this.type = null, this.start = R, this.end = null;
371
+ }
372
+ function Xt() {
373
+ this.start = ct, this.end = null, lt && (this.source = lt);
374
+ }
375
+ function U() {
376
+ var o = new He();
377
+ return j.C && (o.X = new Xt()), j.vb && (o.sourceFile = j.vb), j.Xa && (o.j = [R, 0]), o;
378
+ }
379
+ function ne(o) {
380
+ var a = new He();
381
+ return a.start = o.start, j.C && (a.X = new Xt(), a.X.start = o.X.start), j.Xa && (a.j = [o.j[0], 0]), a;
382
+ }
383
+ function x(o, a) {
384
+ return o.type = a, o.end = ie, j.C && (o.X.end = ht), j.Xa && (o.j[1] = ie), o;
385
+ }
386
+ function rt(o) {
387
+ return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
388
+ }
389
+ function I(o) {
390
+ return w === o ? (S(), !0) : !1;
391
+ }
392
+ function $e() {
393
+ return !j.fc && (w === gt || w === ve || Qe.test(g.slice(ie, R)));
394
+ }
395
+ function ue() {
396
+ I(z) || $e() || J();
397
+ }
398
+ function N(o) {
399
+ w === o ? S() : J();
400
+ }
401
+ function J() {
402
+ r(R, "Unexpected token");
403
+ }
404
+ function Je(o) {
405
+ o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), G && o.type === "Identifier" && ze(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
406
+ }
407
+ function W() {
408
+ (w === gr || w === ce && V === "/=") && C(!0);
409
+ var o = w, a = U();
410
+ switch (o) {
411
+ case vt:
412
+ case Kt:
413
+ S();
414
+ var l = o === vt;
415
+ I(z) || $e() ? a.label = null : w !== ge ? J() : (a.label = Y(), ue());
416
+ for (var p = 0; p < M.length; ++p) {
417
+ var E = M[p];
418
+ if ((a.label === null || E.name === a.label.name) && (E.kind !== null && (l || E.kind === "loop") || a.label && l))
419
+ break;
420
+ }
421
+ return p === M.length && r(a.start, "Unsyntactic " + o.l), x(a, l ? "BreakStatement" : "ContinueStatement");
422
+ case Zt:
423
+ return S(), ue(), x(a, "DebuggerStatement");
424
+ case Qt:
425
+ return S(), M.push(St), a.body = W(), M.pop(), N(Et), a.test = Oe(), ue(), x(a, "DoWhileStatement");
426
+ case tr:
427
+ return S(), M.push(St), N(Z), w === z ? nt(a, null) : w === wt ? (o = U(), S(), Ht(o, !0), x(o, "VariableDeclaration"), o.fa.length === 1 && I(Ze) ? Wt(a, o) : nt(a, o)) : (o = F(!1, !0), I(Ze) ? (Je(o), Wt(a, o)) : nt(a, o));
428
+ case dt:
429
+ return S(), at(a, !0);
430
+ case rr:
431
+ return S(), a.test = Oe(), a.da = W(), a.alternate = I(qt) ? W() : null, x(a, "IfStatement");
432
+ case nr:
433
+ return Te || j.Ib || r(R, "'return' outside of function"), S(), I(z) || $e() ? a.K = null : (a.K = F(), ue()), x(a, "ReturnStatement");
434
+ case mt:
435
+ for (S(), a.Qb = Oe(), a.tb = [], N(Me), M.push(Kr); w !== ve; )
436
+ w === yt || w === zt ? (o = w === yt, p && x(p, "SwitchCase"), a.tb.push(p = U()), p.da = [], S(), o ? p.test = F() : (l && r(ft, "Multiple default clauses"), l = !0, p.test = null), N(Re)) : (p || J(), p.da.push(W()));
437
+ return p && x(p, "SwitchCase"), S(), M.pop(), x(a, "SwitchStatement");
438
+ case ir:
439
+ return S(), Qe.test(g.slice(ie, R)) && r(ie, "Illegal newline after throw"), a.K = F(), ue(), x(a, "ThrowStatement");
440
+ case or:
441
+ return S(), a.block = Ce(), a.Ea = null, w === Yt && (o = U(), S(), N(Z), o.Ua = Y(), G && ze(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), N($), o.body = Ce(), a.Ea = x(o, "CatchClause")), a.fb = I(er) ? Ce() : null, a.Ea || a.fb || r(a.start, "Missing catch or finally clause"), x(a, "TryStatement");
442
+ case wt:
443
+ return S(), Ht(a), ue(), x(a, "VariableDeclaration");
444
+ case Et:
445
+ return S(), a.test = Oe(), M.push(St), a.body = W(), M.pop(), x(a, "WhileStatement");
446
+ case sr:
447
+ return G && r(R, "'with' in strict mode"), S(), a.object = Oe(), a.body = W(), x(a, "WithStatement");
448
+ case Me:
449
+ return Ce();
450
+ case z:
451
+ return S(), x(a, "EmptyStatement");
452
+ default:
453
+ if (l = V, E = F(), o === ge && E.type === "Identifier" && I(Re)) {
454
+ for (p = 0; p < M.length; ++p)
455
+ M[p].name === l && r(E.start, "Label '" + l + "' is already declared");
456
+ return M.push({
457
+ name: l,
458
+ kind: w.W ? "loop" : w === mt ? "switch" : null
459
+ }), a.body = W(), M.pop(), a.label = E, x(a, "LabeledStatement");
460
+ }
461
+ return a.la = E, ue(), x(a, "ExpressionStatement");
462
+ }
463
+ }
464
+ function Oe() {
465
+ N(Z);
466
+ var o = F();
467
+ return N($), o;
468
+ }
469
+ function Ce(o) {
470
+ var a = U(), l = !0, p = !1;
471
+ for (a.body = [], N(Me); !I(ve); ) {
472
+ var E = W();
473
+ if (a.body.push(E), l && o && rt(E)) {
474
+ var P = p;
475
+ ke(p = !0);
476
+ }
477
+ l = !1;
478
+ }
479
+ return p && !P && ke(!1), x(a, "BlockStatement");
480
+ }
481
+ function nt(o, a) {
482
+ return o.ua = a, N(z), o.test = w === z ? null : F(), N(z), o.update = w === $ ? null : F(), N($), o.body = W(), M.pop(), x(o, "ForStatement");
483
+ }
484
+ function Wt(o, a) {
485
+ return o.left = a, o.right = F(), N($), o.body = W(), M.pop(), x(o, "ForInStatement");
486
+ }
487
+ function Ht(o, a) {
488
+ for (o.fa = [], o.kind = "var"; ; ) {
489
+ var l = U();
490
+ if (l.id = Y(), G && ze(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = I(vr) ? F(!0, a) : null, o.fa.push(x(l, "VariableDeclarator")), !I(oe))
491
+ break;
492
+ }
493
+ }
494
+ function F(o, a) {
495
+ var l = it(a);
496
+ if (!o && w === oe) {
497
+ for (o = ne(l), o.xb = [l]; I(oe); )
498
+ o.xb.push(it(a));
499
+ return x(o, "SequenceExpression");
500
+ }
501
+ return l;
502
+ }
503
+ function it(o) {
504
+ var a = ot(st(), -1, o);
505
+ if (I(hr)) {
506
+ var l = ne(a);
507
+ l.test = a, l.da = F(!0), N(Re), l.alternate = F(!0, o), a = x(l, "ConditionalExpression");
508
+ }
509
+ return w.Cb ? (l = ne(a), l.operator = V, l.left = a, S(), l.right = it(o), Je(a), x(l, "AssignmentExpression")) : a;
510
+ }
511
+ function ot(o, a, l) {
512
+ var p = w.L;
513
+ if (p !== null && (!l || w !== Ze) && p > a) {
514
+ var E = ne(o);
515
+ return E.left = o, E.operator = V, o = w, S(), E.right = ot(st(), p, l), p = x(E, o === dr || o === mr ? "LogicalExpression" : "BinaryExpression"), ot(p, a, l);
516
+ }
517
+ return o;
518
+ }
519
+ function st() {
520
+ if (w.prefix) {
521
+ var o = U(), a = w.$b;
522
+ return o.operator = V, Ie = o.prefix = !0, S(), o.K = st(), a ? Je(o.K) : G && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), x(o, a ? "UpdateExpression" : "UnaryExpression");
523
+ }
524
+ for (a = Ae(Ye()); w.cc && !$e(); )
525
+ o = ne(a), o.operator = V, o.prefix = !1, o.K = a, Je(a), S(), a = x(o, "UpdateExpression");
526
+ return a;
527
+ }
528
+ function Ae(o, a) {
529
+ if (I(fr)) {
530
+ var l = ne(o);
531
+ return l.object = o, l.Wa = Y(!0), l.bb = !1, Ae(x(l, "MemberExpression"), a);
532
+ }
533
+ return I(xt) ? (l = ne(o), l.object = o, l.Wa = F(), l.bb = !0, N(jt), Ae(x(l, "MemberExpression"), a)) : !a && I(Z) ? (l = ne(o), l.callee = o, l.arguments = ut($, !1), Ae(x(l, "CallExpression"), a)) : o;
534
+ }
535
+ function Ye() {
536
+ switch (w) {
537
+ case ur:
538
+ var o = U();
539
+ return S(), x(o, "ThisExpression");
540
+ case ge:
541
+ return Y();
542
+ case Ne:
543
+ case Ke:
544
+ case Jt:
545
+ return o = U(), o.value = V, o.raw = g.slice(R, he), S(), x(o, "Literal");
546
+ case lr:
547
+ case cr:
548
+ case pr:
549
+ return o = U(), o.value = w.$a, o.raw = w.l, S(), x(o, "Literal");
550
+ case Z:
551
+ o = ct;
552
+ var a = R;
553
+ S();
554
+ var l = F();
555
+ return l.start = a, l.end = he, j.C && (l.X.start = o, l.X.end = pt), j.Xa && (l.j = [a, he]), N($), l;
556
+ case xt:
557
+ return o = U(), S(), o.elements = ut(jt, !0, !0), x(o, "ArrayExpression");
558
+ case Me:
559
+ for (o = U(), a = !0, l = !1, o.h = [], S(); !I(ve); ) {
560
+ if (a)
561
+ a = !1;
562
+ else if (N(oe), j.sb && I(ve))
563
+ break;
564
+ var p = {
565
+ key: w === Ne || w === Ke ? Ye() : Y(!0)
566
+ }, E = !1;
567
+ if (I(Re)) {
568
+ p.value = F(!0);
569
+ var P = p.kind = "init";
570
+ } else
571
+ p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? J() : (E = l = !0, P = p.kind = p.key.name, p.key = w === Ne || w === Ke ? Ye() : Y(!0), w !== Z && J(), p.value = at(U(), !1));
572
+ if (p.key.type === "Identifier" && (G || l))
573
+ for (var _ = 0; _ < o.h.length; ++_) {
574
+ var de = o.h[_];
575
+ if (de.key.name === p.key.name) {
576
+ var kt = P === de.kind || E && de.kind === "init" || P === "init" && (de.kind === "get" || de.kind === "set");
577
+ kt && !G && P === "init" && de.kind === "init" && (kt = !1), kt && r(p.key.start, "Redefinition of property");
578
+ }
579
+ }
580
+ o.h.push(p);
581
+ }
582
+ return x(o, "ObjectExpression");
583
+ case dt:
584
+ return o = U(), S(), at(o, !1);
585
+ case ar:
586
+ return o = U(), S(), o.callee = Ae(Ye(), !0), o.arguments = I(Z) ? ut($, !1) : br, x(o, "NewExpression");
587
+ }
588
+ J();
589
+ }
590
+ function at(o, a) {
591
+ w === ge ? o.id = Y() : a ? J() : o.id = null, o.oa = [];
592
+ var l = !0;
593
+ for (N(Z); !I($); )
594
+ l ? l = !1 : N(oe), o.oa.push(Y());
595
+ l = Te;
596
+ var p = M;
597
+ if (Te = !0, M = [], o.body = Ce(!0), Te = l, M = p, G || o.body.body.length && rt(o.body.body[0])) {
598
+ for (l = o.id ? -1 : 0; l < o.oa.length; ++l)
599
+ if (p = 0 > l ? o.id : o.oa[l], (wr(p.name) || ze(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= l)
600
+ for (var E = 0; E < l; ++E)
601
+ p.name === o.oa[E].name && r(p.start, "Argument name clash in strict mode");
602
+ }
603
+ return x(o, a ? "FunctionDeclaration" : "FunctionExpression");
604
+ }
605
+ function ut(o, a, l) {
606
+ for (var p = [], E = !0; !I(o); ) {
607
+ if (E)
608
+ E = !1;
609
+ else if (N(oe), a && j.sb && I(o))
610
+ break;
611
+ p.push(l && w === oe ? null : F(!0));
612
+ }
613
+ return p;
614
+ }
615
+ function Y(o) {
616
+ var a = U();
617
+ return o && j.yb === "everywhere" && (o = !1), w === ge ? (!o && (j.yb && Hr(V) || G && wr(V)) && g.slice(R, he).indexOf("\\") === -1 && r(R, "The keyword '" + V + "' is reserved"), a.name = V) : o && w.l ? a.name = w.l : J(), Ie = !1, S(), x(a, "Identifier");
618
+ }
619
+ e.version = "0.5.0";
620
+ var j, g = "", fe, lt;
621
+ e.parse = function(o, a) {
622
+ g = String(o), fe = g.length, j = a || {};
623
+ for (var l in $t)
624
+ Object.prototype.hasOwnProperty.call(j, l) || (j[l] = $t[l]);
625
+ for (lt = j.sourceFile, le = 1, c = K = 0, Ie = !0, m(), l = j.dc, ft = ie = c, j.C && (ht = new s()), Te = G = !1, M = [], C(), o = l || U(), a = !0, l || (o.body = []); w !== gt; )
626
+ l = W(), o.body.push(l), a && rt(l) && ke(!0), a = !1;
627
+ return x(o, "Program");
628
+ };
629
+ var $t = {
630
+ fc: !1,
631
+ sb: !0,
632
+ yb: !1,
633
+ Ib: !1,
634
+ C: !1,
635
+ va: null,
636
+ Xa: !1,
637
+ dc: null,
638
+ sourceFile: null,
639
+ vb: null
640
+ }, c = 0, R = 0, he = 0, ct, pt, w, V, Ie, le, K, ft = 0, ie = 0, ht, Te, M, G, br = [], Ne = {
641
+ type: "num"
642
+ }, Jt = {
643
+ type: "regexp"
644
+ }, Ke = {
645
+ type: "string"
646
+ }, ge = {
647
+ type: "name"
648
+ }, gt = {
649
+ type: "eof"
650
+ }, vt = {
651
+ l: "break"
652
+ }, yt = {
653
+ l: "case",
654
+ m: !0
655
+ }, Yt = {
656
+ l: "catch"
657
+ }, Kt = {
658
+ l: "continue"
659
+ }, Zt = {
660
+ l: "debugger"
661
+ }, zt = {
662
+ l: "default"
663
+ }, Qt = {
664
+ l: "do",
665
+ W: !0
666
+ }, qt = {
667
+ l: "else",
668
+ m: !0
669
+ }, er = {
670
+ l: "finally"
671
+ }, tr = {
672
+ l: "for",
673
+ W: !0
674
+ }, dt = {
675
+ l: "function"
676
+ }, rr = {
677
+ l: "if"
678
+ }, nr = {
679
+ l: "return",
680
+ m: !0
681
+ }, mt = {
682
+ l: "switch"
683
+ }, ir = {
684
+ l: "throw",
685
+ m: !0
686
+ }, or = {
687
+ l: "try"
688
+ }, wt = {
689
+ l: "var"
690
+ }, Et = {
691
+ l: "while",
692
+ W: !0
693
+ }, sr = {
694
+ l: "with"
695
+ }, ar = {
696
+ l: "new",
697
+ m: !0
698
+ }, ur = {
699
+ l: "this"
700
+ }, lr = {
701
+ l: "null",
702
+ $a: null
703
+ }, cr = {
704
+ l: "true",
705
+ $a: !0
706
+ }, pr = {
707
+ l: "false",
708
+ $a: !1
709
+ }, Ze = {
710
+ l: "in",
711
+ L: 7,
712
+ m: !0
713
+ }, Ur = {
714
+ break: vt,
715
+ case: yt,
716
+ catch: Yt,
717
+ continue: Kt,
718
+ debugger: Zt,
719
+ default: zt,
720
+ do: Qt,
721
+ else: qt,
722
+ finally: er,
723
+ for: tr,
724
+ function: dt,
725
+ if: rr,
726
+ return: nr,
727
+ switch: mt,
728
+ throw: ir,
729
+ try: or,
730
+ var: wt,
731
+ while: Et,
732
+ with: sr,
733
+ null: lr,
734
+ true: cr,
735
+ false: pr,
736
+ new: ar,
737
+ in: Ze,
738
+ instanceof: {
739
+ l: "instanceof",
740
+ L: 7,
741
+ m: !0
742
+ },
743
+ this: ur,
744
+ typeof: {
745
+ l: "typeof",
746
+ prefix: !0,
747
+ m: !0
748
+ },
749
+ void: {
750
+ l: "void",
751
+ prefix: !0,
752
+ m: !0
753
+ },
754
+ delete: {
755
+ l: "delete",
756
+ prefix: !0,
757
+ m: !0
758
+ }
759
+ }, xt = {
760
+ type: "[",
761
+ m: !0
762
+ }, jt = {
763
+ type: "]"
764
+ }, Me = {
765
+ type: "{",
766
+ m: !0
767
+ }, ve = {
768
+ type: "}"
769
+ }, Z = {
770
+ type: "(",
771
+ m: !0
772
+ }, $ = {
773
+ type: ")"
774
+ }, oe = {
775
+ type: ",",
776
+ m: !0
777
+ }, z = {
778
+ type: ";",
779
+ m: !0
780
+ }, Re = {
781
+ type: ":",
782
+ m: !0
783
+ }, fr = {
784
+ type: "."
785
+ }, hr = {
786
+ type: "?",
787
+ m: !0
788
+ }, gr = {
789
+ L: 10,
790
+ m: !0
791
+ }, vr = {
792
+ Cb: !0,
793
+ m: !0
794
+ }, ce = {
795
+ Cb: !0,
796
+ m: !0
797
+ }, Dr = {
798
+ cc: !0,
799
+ prefix: !0,
800
+ $b: !0
801
+ }, yr = {
802
+ prefix: !0,
803
+ m: !0
804
+ }, dr = {
805
+ L: 1,
806
+ m: !0
807
+ }, mr = {
808
+ L: 2,
809
+ m: !0
810
+ }, Fr = {
811
+ L: 3,
812
+ m: !0
813
+ }, _r = {
814
+ L: 4,
815
+ m: !0
816
+ }, Lr = {
817
+ L: 5,
818
+ m: !0
819
+ }, Br = {
820
+ L: 6,
821
+ m: !0
822
+ }, Gr = {
823
+ L: 7,
824
+ m: !0
825
+ }, Vr = {
826
+ L: 8,
827
+ m: !0
828
+ }, Xr = {
829
+ L: 9,
830
+ prefix: !0,
831
+ m: !0
832
+ }, Wr = {
833
+ L: 10,
834
+ m: !0
835
+ }, Hr = i("class enum extends super const export import"), wr = i("implements interface let package private protected public static yield"), ze = i("eval arguments"), $r = i("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"), Jr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Er = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Yr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), Qe = /[\n\r\u2028\u2029]/, qe = /\r\n|[\n\r\u2028\u2029]/g, ye, St = {
836
+ kind: "loop"
837
+ }, Kr = {
838
+ kind: "switch"
839
+ };
840
+ }, It = It = typeof globalThis == "undefined" ? void 0 : globalThis;
841
+ sn(It.j || (It.j = {}));
842
+ function f(e, t) {
843
+ typeof e == "string" && (e = Ee(e, "code"));
844
+ var n = e.constructor;
845
+ this.ya = function() {
846
+ return new n({
847
+ options: {}
848
+ });
849
+ };
850
+ var r = this.ya(), i;
851
+ for (i in e)
852
+ r[i] = i === "body" ? e[i].slice() : e[i];
853
+ this.ra = r, this.ca = [], this.qb = t, this.za = !1, this.ba = [], this.Ya = 0, this.rb = /* @__PURE__ */ Object.create(null), e = /^step([A-Z]\w*)$/;
854
+ var s, u;
855
+ for (u in this)
856
+ typeof this[u] == "function" && (s = u.match(e)) && (this.rb[s[1]] = this[u].bind(this));
857
+ this.N = Nt(this, this.ra, null), this.Na = this.N.object, this.ra = Ee(this.ba.join(`
858
+ `), "polyfills"), this.ba = void 0, et(this.ra), s = new y(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = r, s = new y(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
859
+ }
860
+ var xr = {
861
+ C: !0,
862
+ kc: 5
863
+ }, Rt = {
864
+ configurable: !0,
865
+ enumerable: !0,
866
+ writable: !1
867
+ }, v = {
868
+ configurable: !0,
869
+ enumerable: !1,
870
+ writable: !0
871
+ }, B = {
872
+ configurable: !0,
873
+ enumerable: !1,
874
+ writable: !1
875
+ }, Pe = {
876
+ configurable: !1,
877
+ enumerable: !1,
878
+ writable: !1
879
+ }, jr = {
880
+ configurable: !1,
881
+ enumerable: !0,
882
+ writable: !0
883
+ }, Tr = {
884
+ STEP_ERROR: !0
885
+ }, je = {
886
+ SCOPE_REFERENCE: !0
887
+ }, Be = {
888
+ VALUE_IN_DESCRIPTOR: !0
889
+ }, me = {
890
+ REGEXP_TIMEOUT: !0
891
+ }, Sr = [], ee = null, _e = null, se = typeof globalThis == "undefined" ? void 0 : globalThis, an = ["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();", "};"];
892
+ function Pt(e) {
893
+ var t = e >>> 0;
894
+ return t === Number(e) ? t : NaN;
895
+ }
896
+ function Le(e) {
897
+ var t = e >>> 0;
898
+ return String(t) === String(e) && t !== 4294967295 ? t : NaN;
899
+ }
900
+ function et(e, t, n) {
901
+ t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
902
+ for (var r in e)
903
+ if (r !== "loc" && e.hasOwnProperty(r)) {
904
+ var i = e[r];
905
+ i && typeof i == "object" && et(i, t, n);
906
+ }
907
+ }
908
+ f.prototype.REGEXP_MODE = 2;
909
+ f.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
910
+ f.prototype.POLYFILL_TIMEOUT = 1e3;
911
+ O = f.prototype;
912
+ O.P = !1;
913
+ O.Ka = !1;
914
+ O.Kb = 0;
915
+ O.ic = 0;
916
+ function Ee(e, t) {
917
+ var n = {}, r;
918
+ for (r in xr)
919
+ n[r] = xr[r];
920
+ return n.sourceFile = t, se.j.parse(e, n);
921
+ }
922
+ O.Jb = function(e) {
923
+ var t = this.o[0];
924
+ if (!t || t.node.type !== "Program")
925
+ throw Error("Expecting original AST to start with a Program node");
926
+ if (typeof e == "string" && (e = Ee(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
927
+ throw Error("Expecting new AST to start with a Program node");
928
+ Ge(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
929
+ };
930
+ O.lb = function() {
931
+ var e = this.o, t;
932
+ do {
933
+ var n = e[e.length - 1];
934
+ if (this.za)
935
+ break;
936
+ if (!n || n.node.type === "Program" && n.done) {
937
+ if (!this.ca.length)
938
+ return !1;
939
+ if (n = this.ca[0], !n || n.time > Date.now())
940
+ n = null;
941
+ else {
942
+ this.ca.shift(), 0 <= n.interval && Rr(this, n, n.interval);
943
+ var r = new y(n.node, n.scope);
944
+ n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
945
+ }
946
+ if (!n)
947
+ break;
948
+ }
949
+ r = n.node;
950
+ var i = _e;
951
+ _e = this;
952
+ try {
953
+ var s = this.rb[r.type](e, n, r);
954
+ } catch (u) {
955
+ if (u !== Tr)
956
+ throw this.value !== u && (this.value = void 0), u;
957
+ } finally {
958
+ _e = i;
959
+ }
960
+ if (s && e.push(s), this.P)
961
+ throw this.value = void 0, Error("Getter not supported in this context");
962
+ if (this.Ka)
963
+ throw this.value = void 0, Error("Setter not supported in this context");
964
+ t || r.end || (t = Date.now() + this.POLYFILL_TIMEOUT);
965
+ } while (!r.end && t > Date.now());
966
+ return !0;
967
+ };
968
+ O.Eb = function() {
969
+ for (; !this.za && this.lb(); )
970
+ ;
971
+ return this.za;
972
+ };
973
+ function un(e, t) {
974
+ e.g(t, "NaN", NaN, Pe), e.g(t, "Infinity", 1 / 0, Pe), e.g(t, "undefined", void 0, Pe), e.g(t, "window", t, Rt), e.g(t, "this", t, Pe), e.g(t, "self", t), e.M = new k(null), e.Z = new k(e.M), ln(e, t), cn(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), pn(e, t), fn(e, t), hn(e, t), gn(e, t), vn(e, t), yn(e, t), dn(e, t), mn(e, t), wn(e, t);
975
+ var n = e.i(function() {
976
+ throw EvalError("Can't happen");
977
+ }, !1);
978
+ n.eval = !0, e.g(t, "eval", n, v), e.g(t, "parseInt", e.i(parseInt, !1), v), e.g(t, "parseFloat", e.i(parseFloat, !1), v), e.g(t, "isNaN", e.i(isNaN, !1), v), e.g(t, "isFinite", e.i(isFinite, !1), v);
979
+ for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], i = 0; i < r.length; i++)
980
+ n = function(s) {
981
+ return function(u) {
982
+ try {
983
+ return s(u);
984
+ } catch (h) {
985
+ d(e, e.Gb, h.message);
986
+ }
987
+ };
988
+ }(r[i][0]), e.g(t, r[i][1], e.i(n, !1), v);
989
+ n = function(s) {
990
+ return kr(e, !1, arguments);
991
+ }, e.g(t, "setTimeout", e.i(n, !1), v), n = function(s) {
992
+ return kr(e, !0, arguments);
993
+ }, e.g(t, "setInterval", e.i(n, !1), v), n = function(s) {
994
+ Or(e, s);
995
+ }, e.g(t, "clearTimeout", e.i(n, !1), v), n = function(s) {
996
+ Or(e, s);
997
+ }, e.g(t, "clearInterval", e.i(n, !1), v), 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);
998
+ }
999
+ O.Wb = 0;
1000
+ function ln(e, t) {
1001
+ var n = /^[A-Za-z_$][\w$]*$/, r = function(i) {
1002
+ var s = arguments.length ? String(arguments[arguments.length - 1]) : "", u = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1003
+ if (u) {
1004
+ u = u.split(/\s*,\s*/);
1005
+ for (var h = 0; h < u.length; h++) {
1006
+ var m = u[h];
1007
+ n.test(m) || d(e, e.T, "Invalid function argument: " + m);
1008
+ }
1009
+ u = u.join(", ");
1010
+ }
1011
+ try {
1012
+ var T = Ee("(function(" + u + ") {" + s + "})", "function" + e.Wb++);
1013
+ } catch (C) {
1014
+ d(e, e.T, "Invalid code: " + C.message);
1015
+ }
1016
+ return T.body.length !== 1 && d(e, e.T, "Invalid code in function body"), Dt(e, T.body[0].la, e.N, "anonymous");
1017
+ };
1018
+ e.O = e.i(r, !0), e.g(t, "Function", e.O, v), e.g(e.O, "prototype", e.Z, v), e.g(e.Z, "constructor", e.O, v), e.Z.Ta = function() {
1019
+ }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, B), e.Z.H = "Function", r = function(i, s) {
1020
+ var u = e.o[e.o.length - 1];
1021
+ u.U = this, u.B = i, u.F = [], s != null && (s instanceof k ? u.F = Nr(e, s) : d(e, e.j, "CreateListFromArrayLike called on non-object")), u.eb = !1;
1022
+ }, b(e, e.O, "apply", r), r = function(i) {
1023
+ var s = e.o[e.o.length - 1];
1024
+ s.U = this, s.B = i, s.F = [];
1025
+ for (var u = 1; u < arguments.length; u++)
1026
+ s.F.push(arguments[u]);
1027
+ s.eb = !1;
1028
+ }, b(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
1029
+ return String(this);
1030
+ }, b(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), v), r = function() {
1031
+ return this.valueOf();
1032
+ }, b(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
1033
+ }
1034
+ function cn(e, t) {
1035
+ function n(i) {
1036
+ i != null || d(e, e.j, "Cannot convert '" + i + "' to object");
1037
+ }
1038
+ var r = function(i) {
1039
+ if (i == null)
1040
+ return re(e) ? this : e.s(e.M);
1041
+ if (!(i instanceof k)) {
1042
+ var s = e.s(te(e, i));
1043
+ return s.data = i, s;
1044
+ }
1045
+ return i;
1046
+ };
1047
+ e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, v), e.g(e.M, "constructor", e.v, v), e.g(t, "Object", e.v, v), r = function(i) {
1048
+ return n(i), q(e, Object.getOwnPropertyNames(i instanceof k ? i.h : i));
1049
+ }, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), v), r = function(i) {
1050
+ return n(i), i instanceof k && (i = i.h), q(e, Object.keys(i));
1051
+ }, e.g(e.v, "keys", e.i(r, !1), v), r = function(i) {
1052
+ return i === null ? e.s(null) : (i instanceof k || d(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
1053
+ }, e.g(e.v, "create", e.i(r, !1), v), 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(i, s, u) {
1054
+ return s = String(s), i instanceof k || d(e, e.j, "Object.defineProperty called on non-object: " + i), u instanceof k || d(e, e.j, "Property description must be an object"), !i.preventExtensions || s in i.h || d(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(i, s, Be, u.h), i;
1055
+ }, e.g(e.v, "defineProperty", e.i(r, !1), v), 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(i, s) {
1056
+ if (i instanceof k || d(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), s = String(s), s in i.h) {
1057
+ var u = Object.getOwnPropertyDescriptor(i.h, s), h = i.V[s];
1058
+ return i = i.Y[s], s = e.s(e.M), h || i ? (e.g(s, "get", h), e.g(s, "set", i)) : (e.g(s, "value", u.value), e.g(s, "writable", u.writable)), e.g(s, "configurable", u.configurable), e.g(s, "enumerable", u.enumerable), s;
1059
+ }
1060
+ }, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), v), r = function(i) {
1061
+ return n(i), te(e, i);
1062
+ }, e.g(e.v, "getPrototypeOf", e.i(r, !1), v), r = function(i) {
1063
+ return !!i && !i.preventExtensions;
1064
+ }, e.g(e.v, "isExtensible", e.i(r, !1), v), r = function(i) {
1065
+ return i instanceof k && (i.preventExtensions = !0), i;
1066
+ }, e.g(e.v, "preventExtensions", e.i(r, !1), v), b(e, e.v, "toString", k.prototype.toString), b(e, e.v, "toLocaleString", k.prototype.toString), b(e, e.v, "valueOf", k.prototype.valueOf), r = function(i) {
1067
+ return n(this), this instanceof k ? String(i) in this.h : this.hasOwnProperty(i);
1068
+ }, b(e, e.v, "hasOwnProperty", r), r = function(i) {
1069
+ return n(this), this instanceof k ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
1070
+ }, b(e, e.v, "propertyIsEnumerable", r), r = function(i) {
1071
+ for (; ; ) {
1072
+ if (i = te(e, i), !i)
1073
+ return !1;
1074
+ if (i === this)
1075
+ return !0;
1076
+ }
1077
+ }, b(e, e.v, "isPrototypeOf", r);
1078
+ }
1079
+ function pn(e, t) {
1080
+ var n = function(r) {
1081
+ var i = re(e) ? this : xe(e), s = arguments[0];
1082
+ if (arguments.length === 1 && typeof s == "number")
1083
+ isNaN(Pt(s)) && d(e, e.ob, "Invalid array length: " + s), i.h.length = s;
1084
+ else {
1085
+ for (s = 0; s < arguments.length; s++)
1086
+ i.h[s] = arguments[s];
1087
+ i.h.length = s;
1088
+ }
1089
+ return i;
1090
+ };
1091
+ e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, v), n = function(r) {
1092
+ return r && r.H === "Array";
1093
+ }, e.g(e.qa, "isArray", e.i(n, !1), v), e.g(e.La, "length", 0, {
1094
+ configurable: !1,
1095
+ enumerable: !1,
1096
+ writable: !0
1097
+ }), 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(',');", "}", ");", "})();", "");
1098
+ }
1099
+ function fn(e, t) {
1100
+ var n = function(r) {
1101
+ return r = arguments.length ? se.String(r) : "", re(e) ? (this.data = r, this) : r;
1102
+ };
1103
+ for (e.J = e.i(n, !0), e.g(t, "String", e.J, v), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), v), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
1104
+ b(e, e.J, t[n], String.prototype[t[n]]);
1105
+ n = function(r, i, s) {
1106
+ i = e.R(i), s = e.R(s);
1107
+ try {
1108
+ return String(this).localeCompare(r, i, s);
1109
+ } catch (u) {
1110
+ d(e, e.D, "localeCompare: " + u.message);
1111
+ }
1112
+ }, b(e, e.J, "localeCompare", n), n = function(r, i, s) {
1113
+ var u = String(this);
1114
+ if (i = i ? Number(i) : void 0, D(e, r, e.I) && (r = r.data, Ue(e, r, s), e.REGEXP_MODE === 2)) {
1115
+ if (ee)
1116
+ r = be(e, "string.split(separator, limit)", {
1117
+ string: u,
1118
+ separator: r,
1119
+ limit: i
1120
+ }, r, s), r !== me && s(q(e, r));
1121
+ else {
1122
+ var h = e.ha(), m = De(e, r, h, s);
1123
+ h.onmessage = function(T) {
1124
+ clearTimeout(m), s(q(e, T.data));
1125
+ }, h.postMessage(["split", u, r, i]);
1126
+ }
1127
+ return;
1128
+ }
1129
+ r = u.split(r, i), s(q(e, r));
1130
+ }, Fe(e, e.J, "split", n), n = function(r, i) {
1131
+ var s = String(this);
1132
+ if (r = D(e, r, e.I) ? r.data : new RegExp(r), Ue(e, r, i), e.REGEXP_MODE === 2)
1133
+ if (ee)
1134
+ r = be(e, "string.match(regexp)", {
1135
+ string: s,
1136
+ regexp: r
1137
+ }, r, i), r !== me && i(r && q(e, r));
1138
+ else {
1139
+ var u = e.ha(), h = De(e, r, u, i);
1140
+ u.onmessage = function(m) {
1141
+ clearTimeout(h), i(m.data && q(e, m.data));
1142
+ }, u.postMessage(["match", s, r]);
1143
+ }
1144
+ else
1145
+ r = s.match(r), i(r && q(e, r));
1146
+ }, Fe(e, e.J, "match", n), n = function(r, i) {
1147
+ var s = String(this);
1148
+ if (D(e, r, e.I) ? r = r.data : r = new RegExp(r), Ue(e, r, i), e.REGEXP_MODE === 2)
1149
+ if (ee)
1150
+ r = be(e, "string.search(regexp)", {
1151
+ string: s,
1152
+ regexp: r
1153
+ }, r, i), r !== me && i(r);
1154
+ else {
1155
+ var u = e.ha(), h = De(e, r, u, i);
1156
+ u.onmessage = function(m) {
1157
+ clearTimeout(h), i(m.data);
1158
+ }, u.postMessage(["search", s, r]);
1159
+ }
1160
+ else
1161
+ i(s.search(r));
1162
+ }, Fe(e, e.J, "search", n), n = function(r, i, s) {
1163
+ var u = String(this);
1164
+ if (i = String(i), D(e, r, e.I) && (r = r.data, Ue(e, r, s), e.REGEXP_MODE === 2)) {
1165
+ if (ee)
1166
+ r = be(e, "string.replace(substr, newSubstr)", {
1167
+ string: u,
1168
+ substr: r,
1169
+ newSubstr: i
1170
+ }, r, s), r !== me && s(r);
1171
+ else {
1172
+ var h = e.ha(), m = De(e, r, h, s);
1173
+ h.onmessage = function(T) {
1174
+ clearTimeout(m), s(T.data);
1175
+ }, h.postMessage(["replace", u, r, i]);
1176
+ }
1177
+ return;
1178
+ }
1179
+ s(u.replace(r, i));
1180
+ }, Fe(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;", "};", "})();", "");
1181
+ }
1182
+ function hn(e, t) {
1183
+ e.mb = e.i(function(n) {
1184
+ return n = se.Boolean(n), re(e) ? (this.data = n, this) : n;
1185
+ }, !0), e.g(t, "Boolean", e.mb, v);
1186
+ }
1187
+ function gn(e, t) {
1188
+ var n = function(r) {
1189
+ return r = arguments.length ? se.Number(r) : 0, re(e) ? (this.data = r, this) : r;
1190
+ };
1191
+ for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, v), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
1192
+ e.g(e.aa, t[n], Number[t[n]], Pe);
1193
+ n = function(r) {
1194
+ try {
1195
+ return Number(this).toExponential(r);
1196
+ } catch (i) {
1197
+ d(e, e.D, i.message);
1198
+ }
1199
+ }, b(e, e.aa, "toExponential", n), n = function(r) {
1200
+ try {
1201
+ return Number(this).toFixed(r);
1202
+ } catch (i) {
1203
+ d(e, e.D, i.message);
1204
+ }
1205
+ }, b(e, e.aa, "toFixed", n), n = function(r) {
1206
+ try {
1207
+ return Number(this).toPrecision(r);
1208
+ } catch (i) {
1209
+ d(e, e.D, i.message);
1210
+ }
1211
+ }, b(e, e.aa, "toPrecision", n), n = function(r) {
1212
+ try {
1213
+ return Number(this).toString(r);
1214
+ } catch (i) {
1215
+ d(e, e.D, i.message);
1216
+ }
1217
+ }, b(e, e.aa, "toString", n), n = function(r, i) {
1218
+ r = r ? e.R(r) : void 0, i = i ? e.R(i) : void 0;
1219
+ try {
1220
+ return Number(this).toLocaleString(r, i);
1221
+ } catch (s) {
1222
+ d(e, e.D, "toLocaleString: " + s.message);
1223
+ }
1224
+ }, b(e, e.aa, "toLocaleString", n);
1225
+ }
1226
+ function vn(e, t) {
1227
+ var n = function(i, s) {
1228
+ if (!re(e))
1229
+ return se.Date();
1230
+ var u = [null].concat(Array.from(arguments));
1231
+ return this.data = new (Function.prototype.bind.apply(se.Date, u))(), this;
1232
+ };
1233
+ e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, v), e.g(e.$, "now", e.i(Date.now, !1), v), e.g(e.$, "parse", e.i(Date.parse, !1), v), e.g(e.$, "UTC", e.i(Date.UTC, !1), v), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
1234
+ for (var r = 0; r < t.length; r++)
1235
+ n = function(i) {
1236
+ return function(s) {
1237
+ var u = this.data;
1238
+ u instanceof Date || d(e, e.j, i + " not called on a Date");
1239
+ for (var h = [], m = 0; m < arguments.length; m++)
1240
+ h[m] = e.R(arguments[m]);
1241
+ return u[i].apply(u, h);
1242
+ };
1243
+ }(t[r]), b(e, e.$, t[r], n);
1244
+ }
1245
+ function yn(e, t) {
1246
+ var n = function(r, i) {
1247
+ if (re(e))
1248
+ var s = this;
1249
+ else {
1250
+ if (i === void 0 && D(e, r, e.I))
1251
+ return r;
1252
+ s = e.s(e.Ma);
1253
+ }
1254
+ r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) || d(e, e.T, "Invalid regexp flag: " + i);
1255
+ try {
1256
+ var u = new se.RegExp(r, i);
1257
+ } catch (h) {
1258
+ d(e, e.T, h.message);
1259
+ }
1260
+ return bt(e, s, u), s;
1261
+ };
1262
+ e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, v), e.g(e.I.h.prototype, "global", void 0, B), e.g(e.I.h.prototype, "ignoreCase", void 0, B), e.g(e.I.h.prototype, "multiline", void 0, B), e.g(e.I.h.prototype, "source", "(?:)", B), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
1263
+ function s(C) {
1264
+ if (C) {
1265
+ var A = q(e, C);
1266
+ return e.g(A, "index", C.index), e.g(A, "input", C.input), A;
1267
+ }
1268
+ return null;
1269
+ }
1270
+ var u = this.data;
1271
+ if (r = String(r), u.lastIndex = Number(e.G(this, "lastIndex")), Ue(e, u, i), e.REGEXP_MODE === 2)
1272
+ if (ee)
1273
+ r = be(e, "regexp.exec(string)", {
1274
+ string: r,
1275
+ regexp: u
1276
+ }, u, i), r !== me && (e.g(this, "lastIndex", u.lastIndex), i(s(r)));
1277
+ else {
1278
+ var h = e.ha(), m = De(e, u, h, i), T = this;
1279
+ h.onmessage = function(C) {
1280
+ clearTimeout(m), e.g(T, "lastIndex", C.data[1]), i(s(C.data[0]));
1281
+ }, h.postMessage(["exec", u, u.lastIndex, r]);
1282
+ }
1283
+ else
1284
+ r = u.exec(r), e.g(this, "lastIndex", u.lastIndex), i(s(r));
1285
+ }, Fe(e, e.I, "exec", n);
1286
+ }
1287
+ function dn(e, t) {
1288
+ function n(r) {
1289
+ var i = e.i(function(s) {
1290
+ var u = re(e) ? this : e.Aa(i);
1291
+ return Tt(e, u, s), u;
1292
+ }, !0);
1293
+ return e.g(i, "prototype", e.Aa(e.D), v), e.g(i.h.prototype, "name", r, v), e.g(t, r, i, v), i;
1294
+ }
1295
+ e.D = e.i(function(r) {
1296
+ var i = re(e) ? this : e.Aa(e.D);
1297
+ return Tt(e, i, r), i;
1298
+ }, !0), e.g(t, "Error", e.D, v), e.g(e.D.h.prototype, "message", "", v), e.g(e.D.h.prototype, "name", "Error", v), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
1299
+ }
1300
+ function mn(e, t) {
1301
+ var n = e.s(e.M);
1302
+ e.g(t, "Math", n, v);
1303
+ var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
1304
+ for (t = 0; t < r.length; t++)
1305
+ e.g(n, r[t], Math[r[t]], B);
1306
+ 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++)
1307
+ e.g(n, r[t], e.i(Math[r[t]], !1), v);
1308
+ }
1309
+ function wn(e, t) {
1310
+ var n = e.s(e.M);
1311
+ e.g(t, "JSON", n, v), t = function(r) {
1312
+ try {
1313
+ var i = JSON.parse(String(r));
1314
+ } catch (s) {
1315
+ d(e, e.T, s.message);
1316
+ }
1317
+ return e.Ia(i);
1318
+ }, e.g(n, "parse", e.i(t, !1)), t = function(r, i, s) {
1319
+ i && i.H === "Function" ? d(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = Nr(e, i), i = i.filter(function(h) {
1320
+ return typeof h == "string" || typeof h == "number";
1321
+ })) : i = null, typeof s != "string" && typeof s != "number" && (s = void 0), r = e.R(r);
1322
+ try {
1323
+ var u = JSON.stringify(r, i, s);
1324
+ } catch (h) {
1325
+ d(e, e.j, h.message);
1326
+ }
1327
+ return u;
1328
+ }, e.g(n, "stringify", e.i(t, !1));
1329
+ }
1330
+ function D(e, t, n) {
1331
+ if (t == null || !n)
1332
+ return !1;
1333
+ if (n = n.h.prototype, t === n)
1334
+ return !0;
1335
+ for (t = te(e, t); t; ) {
1336
+ if (t === n)
1337
+ return !0;
1338
+ t = t.xa;
1339
+ }
1340
+ return !1;
1341
+ }
1342
+ function bt(e, t, n) {
1343
+ t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, v), e.g(t, "source", n.source, B), e.g(t, "global", n.global, B), e.g(t, "ignoreCase", n.ignoreCase, B), e.g(t, "multiline", n.multiline, B);
1344
+ }
1345
+ function Tt(e, t, n) {
1346
+ n && e.g(t, "message", String(n), v), n = [];
1347
+ for (var r = e.o.length - 1; 0 <= r; r--) {
1348
+ var i = e.o[r], s = i.node;
1349
+ s.type === "CallExpression" && (i = i.U) && n.length && (n[n.length - 1].Ob = e.G(i, "name")), !s.X || n.length && s.type !== "CallExpression" || n.push({
1350
+ Nb: s.X
1351
+ });
1352
+ }
1353
+ for (r = String(e.G(t, "name")), s = String(e.G(t, "message")), s = r + ": " + s + `
1354
+ `, r = 0; r < n.length; r++) {
1355
+ var u = n[r].Nb;
1356
+ i = n[r].Ob, u = u.source + ":" + u.start.line + ":" + u.start.ab, s = i ? s + (" at " + i + " (" + u + `)
1357
+ `) : s + (" at " + u + `
1358
+ `);
1359
+ }
1360
+ e.g(t, "stack", s.trim(), v);
1361
+ }
1362
+ O.ha = function() {
1363
+ var e = this.ha.Mb;
1364
+ return e || (e = new Blob([an.join(`
1365
+ `)], {
1366
+ type: "application/javascript"
1367
+ }), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
1368
+ };
1369
+ function be(e, t, n, r, i) {
1370
+ var s = {
1371
+ timeout: e.REGEXP_THREAD_TIMEOUT
1372
+ };
1373
+ try {
1374
+ return ee.runInNewContext(t, n, s);
1375
+ } catch {
1376
+ i(null), d(e, e.D, "RegExp Timeout: " + r);
1377
+ }
1378
+ return me;
1379
+ }
1380
+ function Ue(e, t, n) {
1381
+ if (e.REGEXP_MODE === 0)
1382
+ var r = !1;
1383
+ else if (e.REGEXP_MODE === 1)
1384
+ r = !0;
1385
+ else if (ee)
1386
+ r = !0;
1387
+ else if (typeof Worker == "function" && typeof URL == "function")
1388
+ r = !0;
1389
+ else if (typeof require == "function") {
1390
+ try {
1391
+ ee = require("vm");
1392
+ } catch {
1393
+ }
1394
+ r = !!ee;
1395
+ } else
1396
+ r = !1;
1397
+ r || (n(null), d(e, e.D, "Regular expressions not supported: " + t));
1398
+ }
1399
+ function De(e, t, n, r) {
1400
+ return setTimeout(function() {
1401
+ n.terminate(), r(null);
1402
+ try {
1403
+ d(e, e.D, "RegExp Timeout: " + t);
1404
+ } catch {
1405
+ }
1406
+ }, e.REGEXP_THREAD_TIMEOUT);
1407
+ }
1408
+ O.Aa = function(e) {
1409
+ return this.s(e && e.h.prototype);
1410
+ };
1411
+ O.s = function(e) {
1412
+ if (typeof e != "object")
1413
+ throw Error("Non object prototype");
1414
+ return e = new k(e), D(this, e, this.D) && (e.H = "Error"), e;
1415
+ };
1416
+ function xe(e) {
1417
+ var t = e.s(e.La);
1418
+ return e.g(t, "length", 0, {
1419
+ configurable: !1,
1420
+ enumerable: !1,
1421
+ writable: !0
1422
+ }), t.H = "Array", t;
1423
+ }
1424
+ function Ut(e, t, n) {
1425
+ var r = e.s(e.Z);
1426
+ return n ? (n = e.s(e.M), e.g(r, "prototype", n, v), e.g(n, "constructor", r, v)) : r.Ab = !0, e.g(r, "length", t, B), r.H = "Function", r;
1427
+ }
1428
+ function Dt(e, t, n, r) {
1429
+ var i = Ut(e, t.oa.length, !0);
1430
+ return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", B), i;
1431
+ }
1432
+ O.i = function(e, t) {
1433
+ return t = Ut(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, B), t;
1434
+ };
1435
+ O.ub = function(e) {
1436
+ var t = Ut(this, e.length, !0);
1437
+ return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, B), t;
1438
+ };
1439
+ O.Ia = function(e) {
1440
+ if (e instanceof k)
1441
+ throw Error("Object is already pseudo");
1442
+ if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
1443
+ return e;
1444
+ if (e instanceof RegExp) {
1445
+ var t = this.s(this.Ma);
1446
+ return bt(this, t, e), t;
1447
+ }
1448
+ if (e instanceof Date)
1449
+ return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
1450
+ if (typeof e == "function") {
1451
+ var n = this;
1452
+ return t = Object.getOwnPropertyDescriptor(e, "prototype"), this.i(function() {
1453
+ var i = Array.prototype.slice.call(arguments).map(function(s) {
1454
+ return n.R(s);
1455
+ });
1456
+ return i = e.apply(n, i), n.Ia(i);
1457
+ }, !!t);
1458
+ }
1459
+ if (Array.isArray(e)) {
1460
+ t = xe(this);
1461
+ for (var r = 0; r < e.length; r++)
1462
+ r in e && this.g(t, r, this.Ia(e[r]));
1463
+ return t;
1464
+ }
1465
+ t = this.s(this.M);
1466
+ for (r in e)
1467
+ this.g(t, r, this.Ia(e[r]));
1468
+ return t;
1469
+ };
1470
+ O.R = function(e, t) {
1471
+ if (typeof e != "object" && typeof e != "function" || e === null)
1472
+ return e;
1473
+ if (!(e instanceof k))
1474
+ throw Error("Object is not pseudo");
1475
+ if (D(this, e, this.I))
1476
+ return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
1477
+ if (D(this, e, this.$))
1478
+ return new Date(e.data.valueOf());
1479
+ t = t || {
1480
+ hb: [],
1481
+ Sa: []
1482
+ };
1483
+ var n = t.hb.indexOf(e);
1484
+ if (n !== -1)
1485
+ return t.Sa[n];
1486
+ if (t.hb.push(e), D(this, e, this.qa)) {
1487
+ n = [], t.Sa.push(n);
1488
+ for (var r = this.G(e, "length"), i = 0; i < r; i++)
1489
+ tt(this, e, i) && (n[i] = this.R(this.G(e, i), t));
1490
+ } else
1491
+ for (r in n = {}, t.Sa.push(n), e.h)
1492
+ i = this.R(e.h[r], t), Object.defineProperty(n, r, {
1493
+ value: i,
1494
+ writable: !0,
1495
+ enumerable: !0,
1496
+ configurable: !0
1497
+ });
1498
+ return t.hb.pop(), t.Sa.pop(), n;
1499
+ };
1500
+ function q(e, t) {
1501
+ for (var n = xe(e), r = Object.getOwnPropertyNames(t), i = 0; i < r.length; i++)
1502
+ e.g(n, r[i], t[r[i]]);
1503
+ return n;
1504
+ }
1505
+ function Nr(e, t) {
1506
+ var n = [], r;
1507
+ for (r in t.h)
1508
+ n[r] = e.G(t, r);
1509
+ return n.length = Pt(e.G(t, "length")) || 0, n;
1510
+ }
1511
+ function te(e, t) {
1512
+ switch (typeof t) {
1513
+ case "number":
1514
+ return e.aa.h.prototype;
1515
+ case "boolean":
1516
+ return e.mb.h.prototype;
1517
+ case "string":
1518
+ return e.J.h.prototype;
1519
+ }
1520
+ return t ? t.xa : null;
1521
+ }
1522
+ O.G = function(e, t) {
1523
+ if (this.P)
1524
+ throw Error("Getter not supported in that context");
1525
+ if (t = String(t), e != null || d(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof k))
1526
+ throw TypeError("Expecting native value or pseudo object");
1527
+ if (t === "length") {
1528
+ if (D(this, e, this.J))
1529
+ return String(e).length;
1530
+ } else if (64 > t.charCodeAt(0) && D(this, e, this.J)) {
1531
+ var n = Le(t);
1532
+ if (!isNaN(n) && n < String(e).length)
1533
+ return String(e)[n];
1534
+ }
1535
+ do
1536
+ if (e.h && t in e.h)
1537
+ return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
1538
+ while (e = te(this, e));
1539
+ };
1540
+ function tt(e, t, n) {
1541
+ if (!(t instanceof k))
1542
+ throw TypeError("Primitive data type has no properties");
1543
+ if (n = String(n), n === "length" && D(e, t, e.J))
1544
+ return !0;
1545
+ if (D(e, t, e.J)) {
1546
+ var r = Le(n);
1547
+ if (!isNaN(r) && r < String(t).length)
1548
+ return !0;
1549
+ }
1550
+ do
1551
+ if (t.h && n in t.h)
1552
+ return !0;
1553
+ while (t = te(e, t));
1554
+ return !1;
1555
+ }
1556
+ O.g = function(e, t, n, r) {
1557
+ if (this.Ka)
1558
+ throw Error("Setter not supported in that context");
1559
+ if (t = String(t), e != null || d(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof k))
1560
+ throw TypeError("Expecting native value or pseudo object");
1561
+ r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && d(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
1562
+ var i = !this.o || Ft(this).S;
1563
+ if (e instanceof k) {
1564
+ if (D(this, e, this.J)) {
1565
+ var s = Le(t);
1566
+ if (t === "length" || !isNaN(s) && s < String(e).length) {
1567
+ i && d(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
1568
+ return;
1569
+ }
1570
+ }
1571
+ if (e.H === "Array")
1572
+ if (s = e.h.length, t === "length") {
1573
+ if (r) {
1574
+ if (!("value" in r))
1575
+ return;
1576
+ n = r.value;
1577
+ }
1578
+ if (n = Pt(n), isNaN(n) && d(this, this.ob, "Invalid array length"), n < s)
1579
+ for (u in e.h) {
1580
+ var u = Le(u);
1581
+ !isNaN(u) && n <= u && delete e.h[u];
1582
+ }
1583
+ } else
1584
+ isNaN(u = Le(t)) || (e.h.length = Math.max(s, u + 1));
1585
+ if (!e.preventExtensions || t in e.h)
1586
+ if (r) {
1587
+ i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Be && (i.value = n, delete e.V[t], delete e.Y[t]);
1588
+ try {
1589
+ Object.defineProperty(e.h, t, i);
1590
+ } catch {
1591
+ d(this, this.j, "Cannot redefine property: " + t);
1592
+ }
1593
+ "get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
1594
+ } else {
1595
+ if (n === Be)
1596
+ throw ReferenceError("Value not specified");
1597
+ for (r = e; !(t in r.h); )
1598
+ if (r = te(this, r), !r) {
1599
+ r = e;
1600
+ break;
1601
+ }
1602
+ if (r.Y && r.Y[t])
1603
+ return this.Ka = !0, r.Y[t];
1604
+ if (r.V && r.V[t])
1605
+ i && d(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
1606
+ else
1607
+ try {
1608
+ e.h[t] = n;
1609
+ } catch {
1610
+ i && d(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
1611
+ }
1612
+ }
1613
+ else
1614
+ i && d(this, this.j, "Can't add property '" + t + "', object is not extensible");
1615
+ } else
1616
+ i && d(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
1617
+ };
1618
+ O.g.ac = function() {
1619
+ throw Error("Placeholder getter");
1620
+ };
1621
+ O.g.bc = function() {
1622
+ throw Error("Placeholder setter");
1623
+ };
1624
+ function b(e, t, n, r) {
1625
+ e.g(t.h.prototype, n, e.i(r, !1), v);
1626
+ }
1627
+ function Fe(e, t, n, r) {
1628
+ e.g(t.h.prototype, n, e.ub(r), v);
1629
+ }
1630
+ function Ft(e) {
1631
+ if (e = e.o[e.o.length - 1].scope, !e)
1632
+ throw Error("No scope found");
1633
+ return e;
1634
+ }
1635
+ function Nt(e, t, n) {
1636
+ var r = !1;
1637
+ if (n && n.S)
1638
+ r = !0;
1639
+ else {
1640
+ var i = t.body && t.body[0];
1641
+ i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (r = !0);
1642
+ }
1643
+ return i = e.s(null), r = new Pr(n, r, i), n || un(e, r.object), Ge(e, t, r), r;
1644
+ }
1645
+ function _t(e, t, n) {
1646
+ if (!t)
1647
+ throw Error("parentScope required");
1648
+ return e = n || e.s(null), new Pr(t, t.S, e);
1649
+ }
1650
+ function Lt(e, t) {
1651
+ for (var n = Ft(e); n && n !== e.N; ) {
1652
+ if (t in n.object.h)
1653
+ return n.object.h[t];
1654
+ n = n.Va;
1655
+ }
1656
+ if (n === e.N && tt(e, n.object, t))
1657
+ return e.G(n.object, t);
1658
+ n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || d(e, e.pb, t + " is not defined");
1659
+ }
1660
+ function Mr(e, t, n) {
1661
+ for (var r = Ft(e), i = r.S; r && r !== e.N; ) {
1662
+ if (t in r.object.h) {
1663
+ try {
1664
+ r.object.h[t] = n;
1665
+ } catch {
1666
+ i && d(e, e.j, "Cannot assign to read only variable '" + t + "'");
1667
+ }
1668
+ return;
1669
+ }
1670
+ r = r.Va;
1671
+ }
1672
+ if (r === e.N && (!i || tt(e, r.object, t)))
1673
+ return e.g(r.object, t, n);
1674
+ d(e, e.pb, t + " is not defined");
1675
+ }
1676
+ function Ge(e, t, n) {
1677
+ if (t.jb)
1678
+ var r = t.jb;
1679
+ else {
1680
+ switch (r = /* @__PURE__ */ Object.create(null), t.type) {
1681
+ case "VariableDeclaration":
1682
+ for (var i = 0; i < t.fa.length; i++)
1683
+ r[t.fa[i].id.name] = !0;
1684
+ break;
1685
+ case "FunctionDeclaration":
1686
+ r[t.id.name] = t;
1687
+ break;
1688
+ case "BlockStatement":
1689
+ case "CatchClause":
1690
+ case "DoWhileStatement":
1691
+ case "ForInStatement":
1692
+ case "ForStatement":
1693
+ case "IfStatement":
1694
+ case "LabeledStatement":
1695
+ case "Program":
1696
+ case "SwitchCase":
1697
+ case "SwitchStatement":
1698
+ case "TryStatement":
1699
+ case "WithStatement":
1700
+ case "WhileStatement":
1701
+ var s = t.constructor, u;
1702
+ for (u in t)
1703
+ if (u !== "loc") {
1704
+ var h = t[u];
1705
+ if (h && typeof h == "object") {
1706
+ if (Array.isArray(h)) {
1707
+ for (i = 0; i < h.length; i++)
1708
+ if (h[i] && h[i].constructor === s) {
1709
+ var m = Ge(e, h[i], n);
1710
+ for (u in m)
1711
+ r[u] = m[u];
1712
+ }
1713
+ } else if (h.constructor === s)
1714
+ for (u in m = Ge(e, h, n), m)
1715
+ r[u] = m[u];
1716
+ }
1717
+ }
1718
+ }
1719
+ t.jb = r;
1720
+ }
1721
+ for (u in r)
1722
+ r[u] === !0 ? e.g(n.object, u, void 0, jr) : e.g(n.object, u, Dt(e, r[u], n), jr);
1723
+ return r;
1724
+ }
1725
+ function re(e) {
1726
+ return e.o[e.o.length - 1].isConstructor;
1727
+ }
1728
+ function Bt(e, t) {
1729
+ return t[0] === je ? Lt(e, t[1]) : e.G(t[0], t[1]);
1730
+ }
1731
+ function Gt(e, t, n) {
1732
+ return t[0] === je ? Mr(e, t[1], n) : e.g(t[0], t[1], n);
1733
+ }
1734
+ function d(e, t, n) {
1735
+ throw e.N ? (n !== void 0 && t instanceof k && (t = e.Aa(t), Tt(e, t, n)), Ve(e, 4, t), Tr) : n === void 0 ? t : n;
1736
+ }
1737
+ function Ve(e, t, n, r) {
1738
+ if (t === 0)
1739
+ throw TypeError("Should not unwind for NORMAL completions");
1740
+ var i = e.o;
1741
+ e:
1742
+ for (; 0 < i.length; i.pop()) {
1743
+ var s = i[i.length - 1];
1744
+ switch (s.node.type) {
1745
+ case "TryStatement":
1746
+ s.ea = {
1747
+ type: t,
1748
+ value: n,
1749
+ label: r
1750
+ };
1751
+ return;
1752
+ case "CallExpression":
1753
+ case "NewExpression":
1754
+ if (t === 3) {
1755
+ s.value = n;
1756
+ return;
1757
+ }
1758
+ if (t !== 4)
1759
+ throw Error("Unsynatctic break/continue not rejected by Acorn");
1760
+ break;
1761
+ case "Program":
1762
+ s.done = !0;
1763
+ break e;
1764
+ }
1765
+ if (t === 1) {
1766
+ if (r ? s.labels && s.labels.indexOf(r) !== -1 : s.W || s.Zb) {
1767
+ i.pop();
1768
+ return;
1769
+ }
1770
+ } else if (t === 2 && (r ? s.labels && s.labels.indexOf(r) !== -1 : s.W))
1771
+ return;
1772
+ }
1773
+ throw D(e, n, e.D) ? (t = {
1774
+ EvalError,
1775
+ RangeError,
1776
+ ReferenceError,
1777
+ SyntaxError,
1778
+ TypeError,
1779
+ URIError
1780
+ }, r = String(e.G(n, "name")), i = e.G(n, "message").valueOf(), t = (t[r] || Error)(i), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
1781
+ }
1782
+ function L(e, t) {
1783
+ switch (t.type) {
1784
+ case "ArrayExpression":
1785
+ return "[...]";
1786
+ case "BinaryExpression":
1787
+ case "LogicalExpression":
1788
+ return L(e, t.left) + " " + t.operator + " " + L(e, t.right);
1789
+ case "CallExpression":
1790
+ return L(e, t.callee) + "(...)";
1791
+ case "ConditionalExpression":
1792
+ return L(e, t.test) + " ? " + L(e, t.da) + " : " + L(e, t.alternate);
1793
+ case "Identifier":
1794
+ return t.name;
1795
+ case "Literal":
1796
+ return t.raw;
1797
+ case "MemberExpression":
1798
+ var n = L(e, t.object);
1799
+ return e = L(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
1800
+ case "NewExpression":
1801
+ return "new " + L(e, t.callee) + "(...)";
1802
+ case "ObjectExpression":
1803
+ return "{...}";
1804
+ case "ThisExpression":
1805
+ return "this";
1806
+ case "UnaryExpression":
1807
+ return t.operator + " " + L(e, t.K);
1808
+ case "UpdateExpression":
1809
+ return n = L(e, t.K), t.prefix ? t.operator + n : n + t.operator;
1810
+ }
1811
+ return "???";
1812
+ }
1813
+ function kr(e, t, n) {
1814
+ var r = e.o[e.o.length - 1], i = Array.from(n), s = i.shift();
1815
+ n = Math.max(Number(i.shift() || 0), 0);
1816
+ var u = e.ya();
1817
+ if (s instanceof k && s.H === "Function") {
1818
+ var h = s;
1819
+ u.type = "CallExpression", r = r.scope;
1820
+ } else {
1821
+ try {
1822
+ var m = Ee(String(s), "taskCode" + e.ic++);
1823
+ } catch (T) {
1824
+ d(e, e.T, "Invalid code: " + T.message);
1825
+ }
1826
+ u.type = "EvalProgram_", u.body = m.body, r = r.node.arguments[0], et(u, r ? r.start : void 0, r ? r.end : void 0), r = e.N, i.length = 0;
1827
+ }
1828
+ return t = new En(h, i, r, u, t ? n : -1), Rr(e, t, n), t.Db;
1829
+ }
1830
+ function Rr(e, t, n) {
1831
+ t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, i) {
1832
+ return r.time - i.time;
1833
+ });
1834
+ }
1835
+ function Or(e, t) {
1836
+ for (var n = 0; n < e.ca.length; n++)
1837
+ if (e.ca[n].Db == t) {
1838
+ e.ca.splice(n, 1);
1839
+ break;
1840
+ }
1841
+ }
1842
+ function Xe(e, t, n) {
1843
+ if (!e.P)
1844
+ throw Error("Unexpected call to createGetter");
1845
+ e.P = !1, n = Array.isArray(n) ? n[0] : n;
1846
+ var r = e.ya();
1847
+ return r.type = "CallExpression", e = new y(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
1848
+ }
1849
+ function Vt(e, t, n, r) {
1850
+ if (!e.Ka)
1851
+ throw Error("Unexpected call to createSetter");
1852
+ e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
1853
+ var i = e.ya();
1854
+ return i.type = "CallExpression", e = new y(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
1855
+ }
1856
+ function Ct(e, t) {
1857
+ return t == null ? e.Na : t instanceof k ? t : (e = e.s(te(e, t)), e.data = t, e);
1858
+ }
1859
+ O.Xb = function() {
1860
+ return this.N;
1861
+ };
1862
+ O.Yb = function() {
1863
+ return this.o;
1864
+ };
1865
+ O.ec = function(e) {
1866
+ this.o = e;
1867
+ };
1868
+ function y(e, t) {
1869
+ this.node = e, this.scope = t;
1870
+ }
1871
+ function Pr(e, t, n) {
1872
+ this.Va = e, this.S = t, this.object = n;
1873
+ }
1874
+ function k(e) {
1875
+ this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
1876
+ }
1877
+ O = k.prototype;
1878
+ O.xa = null;
1879
+ O.H = "Object";
1880
+ O.data = null;
1881
+ O.toString = function() {
1882
+ if (!_e)
1883
+ return "[object Interpreter.Object]";
1884
+ if (!(this instanceof k))
1885
+ return String(this);
1886
+ if (this.H === "Array") {
1887
+ var e = Sr;
1888
+ e.push(this);
1889
+ try {
1890
+ var t = [], n = this.h.length, r = !1;
1891
+ 1024 < n && (n = 1e3, r = !0);
1892
+ for (var i = 0; i < n; i++) {
1893
+ var s = this.h[i];
1894
+ t[i] = s instanceof k && e.indexOf(s) !== -1 ? "..." : s;
1895
+ }
1896
+ r && t.push("...");
1897
+ } finally {
1898
+ e.pop();
1899
+ }
1900
+ return t.join(",");
1901
+ }
1902
+ if (this.H === "Error") {
1903
+ if (e = Sr, e.indexOf(this) !== -1)
1904
+ return "[object Error]";
1905
+ n = this;
1906
+ do
1907
+ if ("name" in n.h) {
1908
+ t = n.h.name;
1909
+ break;
1910
+ }
1911
+ while (n = n.xa);
1912
+ n = this;
1913
+ do
1914
+ if ("message" in n.h) {
1915
+ r = n.h.message;
1916
+ break;
1917
+ }
1918
+ while (n = n.xa);
1919
+ e.push(this);
1920
+ try {
1921
+ t = t && String(t), r = r && String(r);
1922
+ } finally {
1923
+ e.pop();
1924
+ }
1925
+ return r ? t + ": " + r : String(t);
1926
+ }
1927
+ return this.data !== null ? String(this.data) : "[object " + this.H + "]";
1928
+ };
1929
+ O.valueOf = function() {
1930
+ return !_e || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
1931
+ };
1932
+ function En(e, t, n, r, i) {
1933
+ this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++xn, this.time = 0;
1934
+ }
1935
+ var xn = 0;
1936
+ f.prototype.stepArrayExpression = function(e, t, n) {
1937
+ n = n.elements;
1938
+ var r = t.A || 0;
1939
+ for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = xe(this), t.Oa.h.length = n.length); r < n.length; ) {
1940
+ if (n[r])
1941
+ return t.A = r, new y(n[r], t.scope);
1942
+ r++;
1943
+ }
1944
+ e.pop(), e[e.length - 1].value = t.Oa;
1945
+ };
1946
+ f.prototype.stepAssignmentExpression = function(e, t, n) {
1947
+ if (!t.ja)
1948
+ return t.ja = !0, t = new y(n.left, t.scope), t.sa = !0, t;
1949
+ if (!t.Da)
1950
+ return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Bt(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Xe(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new y(n.right, t.scope));
1951
+ if (t.ta)
1952
+ e.pop(), e[e.length - 1].value = t.ib;
1953
+ else {
1954
+ var r = t.ma, i = t.value;
1955
+ switch (n.operator) {
1956
+ case "=":
1957
+ r = i;
1958
+ break;
1959
+ case "+=":
1960
+ r += i;
1961
+ break;
1962
+ case "-=":
1963
+ r -= i;
1964
+ break;
1965
+ case "*=":
1966
+ r *= i;
1967
+ break;
1968
+ case "/=":
1969
+ r /= i;
1970
+ break;
1971
+ case "%=":
1972
+ r %= i;
1973
+ break;
1974
+ case "<<=":
1975
+ r <<= i;
1976
+ break;
1977
+ case ">>=":
1978
+ r >>= i;
1979
+ break;
1980
+ case ">>>=":
1981
+ r >>>= i;
1982
+ break;
1983
+ case "&=":
1984
+ r &= i;
1985
+ break;
1986
+ case "^=":
1987
+ r ^= i;
1988
+ break;
1989
+ case "|=":
1990
+ r |= i;
1991
+ break;
1992
+ default:
1993
+ throw SyntaxError("Unknown assignment expression: " + n.operator);
1994
+ }
1995
+ if (n = Gt(this, t.Fa, r))
1996
+ return t.ta = !0, t.ib = r, Vt(this, n, t.Fa, r);
1997
+ e.pop(), e[e.length - 1].value = r;
1998
+ }
1999
+ };
2000
+ f.prototype.stepBinaryExpression = function(e, t, n) {
2001
+ if (!t.ja)
2002
+ return t.ja = !0, new y(n.left, t.scope);
2003
+ if (!t.Da)
2004
+ return t.Da = !0, t.ma = t.value, new y(n.right, t.scope);
2005
+ e.pop();
2006
+ var r = t.ma;
2007
+ switch (t = t.value, n.operator) {
2008
+ case "==":
2009
+ n = r == t;
2010
+ break;
2011
+ case "!=":
2012
+ n = r != t;
2013
+ break;
2014
+ case "===":
2015
+ n = r === t;
2016
+ break;
2017
+ case "!==":
2018
+ n = r !== t;
2019
+ break;
2020
+ case ">":
2021
+ n = r > t;
2022
+ break;
2023
+ case ">=":
2024
+ n = r >= t;
2025
+ break;
2026
+ case "<":
2027
+ n = r < t;
2028
+ break;
2029
+ case "<=":
2030
+ n = r <= t;
2031
+ break;
2032
+ case "+":
2033
+ n = r + t;
2034
+ break;
2035
+ case "-":
2036
+ n = r - t;
2037
+ break;
2038
+ case "*":
2039
+ n = r * t;
2040
+ break;
2041
+ case "/":
2042
+ n = r / t;
2043
+ break;
2044
+ case "%":
2045
+ n = r % t;
2046
+ break;
2047
+ case "&":
2048
+ n = r & t;
2049
+ break;
2050
+ case "|":
2051
+ n = r | t;
2052
+ break;
2053
+ case "^":
2054
+ n = r ^ t;
2055
+ break;
2056
+ case "<<":
2057
+ n = r << t;
2058
+ break;
2059
+ case ">>":
2060
+ n = r >> t;
2061
+ break;
2062
+ case ">>>":
2063
+ n = r >>> t;
2064
+ break;
2065
+ case "in":
2066
+ t instanceof k || d(this, this.j, "'in' expects an object, not '" + t + "'"), n = tt(this, t, r);
2067
+ break;
2068
+ case "instanceof":
2069
+ D(this, t, this.O) || d(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof k ? D(this, r, t) : !1;
2070
+ break;
2071
+ default:
2072
+ throw SyntaxError("Unknown binary operator: " + n.operator);
2073
+ }
2074
+ e[e.length - 1].value = n;
2075
+ };
2076
+ f.prototype.stepBlockStatement = function(e, t, n) {
2077
+ var r = t.A || 0;
2078
+ if (n = n.body[r])
2079
+ return t.A = r + 1, new y(n, t.scope);
2080
+ e.pop();
2081
+ };
2082
+ f.prototype.stepBreakStatement = function(e, t, n) {
2083
+ Ve(this, 1, void 0, n.label && n.label.name);
2084
+ };
2085
+ f.prototype.Hb = 0;
2086
+ f.prototype.stepCallExpression = function(e, t, n) {
2087
+ if (!t.ia) {
2088
+ t.ia = 1;
2089
+ var r = new y(n.callee, t.scope);
2090
+ return r.sa = !0, r;
2091
+ }
2092
+ if (t.ia === 1) {
2093
+ t.ia = 2;
2094
+ var i = t.value;
2095
+ if (Array.isArray(i)) {
2096
+ if (t.U = Bt(this, i), i[0] === je ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
2097
+ return t.ia = 1, Xe(this, i, t.value);
2098
+ } else
2099
+ t.U = i;
2100
+ t.F = [], t.A = 0;
2101
+ }
2102
+ if (i = t.U, !t.Qa) {
2103
+ if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
2104
+ return new y(n.arguments[t.A++], t.scope);
2105
+ if (n.type === "NewExpression") {
2106
+ if (i instanceof k && !i.Ab || d(this, this.j, L(this, n.callee) + " is not a constructor"), i === this.qa)
2107
+ t.B = xe(this);
2108
+ else {
2109
+ var s = i.h.prototype;
2110
+ (typeof s != "object" || s === null) && (s = this.M), t.B = this.s(s);
2111
+ }
2112
+ t.isConstructor = !0;
2113
+ }
2114
+ t.Qa = !0;
2115
+ }
2116
+ if (t.eb)
2117
+ e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
2118
+ else {
2119
+ if (t.eb = !0, i instanceof k || d(this, this.j, L(this, n.callee) + " is not a function"), e = i.node) {
2120
+ for (n = Nt(this, e.body, i.Va), r = xe(this), i = 0; i < t.F.length; i++)
2121
+ this.g(r, i, t.F[i]);
2122
+ for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
2123
+ this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
2124
+ return n.S || (t.B = Ct(this, t.B)), this.g(n.object, "this", t.B, Rt), t.value = void 0, new y(e.body, n);
2125
+ }
2126
+ if (i.eval)
2127
+ if (i = t.F[0], typeof i != "string")
2128
+ t.value = i;
2129
+ else {
2130
+ try {
2131
+ r = Ee(String(i), "eval" + this.Hb++);
2132
+ } catch (h) {
2133
+ d(this, this.T, "Invalid code: " + h.message);
2134
+ }
2135
+ return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, et(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Nt(this, r, n) : Ge(this, r, n), this.value = void 0, new y(i, n);
2136
+ }
2137
+ else if (i.Ta)
2138
+ t.scope.S || (t.B = Ct(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
2139
+ else if (i.Za) {
2140
+ var u = this;
2141
+ r = i.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(h) {
2142
+ t.value = h, u.za = !1;
2143
+ }), this.za = !0, t.scope.S || (t.B = Ct(this, t.B)), i.Za.apply(t.B, r);
2144
+ } else
2145
+ d(this, this.j, L(this, n.callee) + " is not callable");
2146
+ }
2147
+ };
2148
+ f.prototype.stepConditionalExpression = function(e, t, n) {
2149
+ var r = t.na || 0;
2150
+ if (r === 0)
2151
+ return t.na = 1, new y(n.test, t.scope);
2152
+ if (r === 1) {
2153
+ if (t.na = 2, (r = !!t.value) && n.da)
2154
+ return new y(n.da, t.scope);
2155
+ if (!r && n.alternate)
2156
+ return new y(n.alternate, t.scope);
2157
+ this.value = void 0;
2158
+ }
2159
+ e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
2160
+ };
2161
+ f.prototype.stepContinueStatement = function(e, t, n) {
2162
+ Ve(this, 2, void 0, n.label && n.label.name);
2163
+ };
2164
+ f.prototype.stepDebuggerStatement = function(e) {
2165
+ e.pop();
2166
+ };
2167
+ f.prototype.stepDoWhileStatement = function(e, t, n) {
2168
+ if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
2169
+ return t.ga = !0, new y(n.test, t.scope);
2170
+ if (!t.value)
2171
+ e.pop();
2172
+ else if (n.body)
2173
+ return t.ga = !1, t.W = !0, new y(n.body, t.scope);
2174
+ };
2175
+ f.prototype.stepEmptyStatement = function(e) {
2176
+ e.pop();
2177
+ };
2178
+ f.prototype.stepEvalProgram_ = function(e, t, n) {
2179
+ var r = t.A || 0;
2180
+ if (n = n.body[r])
2181
+ return t.A = r + 1, new y(n, t.scope);
2182
+ e.pop(), e[e.length - 1].value = this.value;
2183
+ };
2184
+ f.prototype.stepExpressionStatement = function(e, t, n) {
2185
+ if (!t.ka)
2186
+ return this.value = void 0, t.ka = !0, new y(n.la, t.scope);
2187
+ e.pop(), this.value = t.value;
2188
+ };
2189
+ f.prototype.stepForInStatement = function(e, t, n) {
2190
+ if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
2191
+ return t.scope.S && d(this, this.T, "for-in loop variable declaration may not have an initializer"), new y(n.left, t.scope);
2192
+ if (!t.Ca)
2193
+ return t.Ca = !0, t.pa || (t.pa = t.value), new y(n.right, t.scope);
2194
+ if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
2195
+ e:
2196
+ for (; ; ) {
2197
+ if (t.u instanceof k)
2198
+ for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
2199
+ var r = t.wa.shift();
2200
+ if (r === void 0)
2201
+ break;
2202
+ if (Object.prototype.hasOwnProperty.call(t.u.h, r) && !t.kb[r] && (t.kb[r] = !0, Object.prototype.propertyIsEnumerable.call(t.u.h, r))) {
2203
+ t.Ra = r;
2204
+ break e;
2205
+ }
2206
+ }
2207
+ else if (t.u !== null && t.u !== void 0) {
2208
+ for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u)); r = t.wa.shift(), r !== void 0; )
2209
+ if (t.kb[r] = !0, Object.prototype.propertyIsEnumerable.call(t.u, r)) {
2210
+ t.Ra = r;
2211
+ break e;
2212
+ }
2213
+ }
2214
+ if (t.u = te(this, t.u), t.wa = null, t.u === null) {
2215
+ e.pop();
2216
+ return;
2217
+ }
2218
+ }
2219
+ if (!t.wb)
2220
+ if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
2221
+ t.pa = [je, e.fa[0].id.name];
2222
+ else
2223
+ return t.pa = null, t = new y(e, t.scope), t.sa = !0, t;
2224
+ if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Gt(this, t.pa, e)))
2225
+ return Vt(this, r, t.pa, e);
2226
+ if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
2227
+ return new y(n.body, t.scope);
2228
+ };
2229
+ f.prototype.stepForStatement = function(e, t, n) {
2230
+ switch (t.na) {
2231
+ default:
2232
+ if (t.na = 1, n.ua)
2233
+ return new y(n.ua, t.scope);
2234
+ break;
2235
+ case 1:
2236
+ if (t.na = 2, n.test)
2237
+ return new y(n.test, t.scope);
2238
+ break;
2239
+ case 2:
2240
+ if (t.na = 3, n.test && !t.value)
2241
+ e.pop();
2242
+ else
2243
+ return t.W = !0, new y(n.body, t.scope);
2244
+ break;
2245
+ case 3:
2246
+ if (t.na = 1, n.update)
2247
+ return new y(n.update, t.scope);
2248
+ }
2249
+ };
2250
+ f.prototype.stepFunctionDeclaration = function(e) {
2251
+ e.pop();
2252
+ };
2253
+ f.prototype.stepFunctionExpression = function(e, t, n) {
2254
+ e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = _t(this, e)), t.value = Dt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Rt);
2255
+ };
2256
+ f.prototype.stepIdentifier = function(e, t, n) {
2257
+ if (e.pop(), t.sa)
2258
+ e[e.length - 1].value = [je, n.name];
2259
+ else {
2260
+ if (t = Lt(this, n.name), this.P)
2261
+ return Xe(this, t, this.Na);
2262
+ e[e.length - 1].value = t;
2263
+ }
2264
+ };
2265
+ f.prototype.stepIfStatement = f.prototype.stepConditionalExpression;
2266
+ f.prototype.stepLabeledStatement = function(e, t, n) {
2267
+ return e.pop(), e = t.labels || [], e.push(n.label.name), t = new y(n.body, t.scope), t.labels = e, t;
2268
+ };
2269
+ f.prototype.stepLiteral = function(e, t, n) {
2270
+ e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), bt(this, n, t), t = n), e[e.length - 1].value = t;
2271
+ };
2272
+ f.prototype.stepLogicalExpression = function(e, t, n) {
2273
+ if (n.operator !== "&&" && n.operator !== "||")
2274
+ throw SyntaxError("Unknown logical operator: " + n.operator);
2275
+ if (!t.ja)
2276
+ return t.ja = !0, new y(n.left, t.scope);
2277
+ if (t.Da)
2278
+ e.pop(), e[e.length - 1].value = t.value;
2279
+ else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
2280
+ e.pop(), e[e.length - 1].value = t.value;
2281
+ else
2282
+ return t.Da = !0, new y(n.right, t.scope);
2283
+ };
2284
+ f.prototype.stepMemberExpression = function(e, t, n) {
2285
+ if (!t.Ca)
2286
+ return t.Ca = !0, new y(n.object, t.scope);
2287
+ if (n.bb)
2288
+ if (t.Vb)
2289
+ n = t.value;
2290
+ else
2291
+ return t.u = t.value, t.Vb = !0, new y(n.Wa, t.scope);
2292
+ else
2293
+ t.u = t.value, n = n.Wa.name;
2294
+ if (e.pop(), t.sa)
2295
+ e[e.length - 1].value = [t.u, n];
2296
+ else {
2297
+ if (n = this.G(t.u, n), this.P)
2298
+ return Xe(this, n, t.u);
2299
+ e[e.length - 1].value = n;
2300
+ }
2301
+ };
2302
+ f.prototype.stepNewExpression = f.prototype.stepCallExpression;
2303
+ f.prototype.stepObjectExpression = function(e, t, n) {
2304
+ var r = t.A || 0, i = n.h[r];
2305
+ if (t.u) {
2306
+ var s = t.Pa;
2307
+ t.Ja[s] || (t.Ja[s] = {}), t.Ja[s][i.kind] = t.value, t.A = ++r, i = n.h[r];
2308
+ } else
2309
+ t.u = this.s(this.M), t.Ja = /* @__PURE__ */ Object.create(null);
2310
+ if (i) {
2311
+ var u = i.key;
2312
+ if (u.type === "Identifier")
2313
+ s = u.name;
2314
+ else if (u.type === "Literal")
2315
+ s = u.value;
2316
+ else
2317
+ throw SyntaxError("Unknown object structure: " + u.type);
2318
+ return t.Pa = s, new y(i.value, t.scope);
2319
+ }
2320
+ for (u in t.Ja)
2321
+ n = t.Ja[u], "get" in n || "set" in n ? this.g(t.u, u, Be, {
2322
+ configurable: !0,
2323
+ enumerable: !0,
2324
+ get: n.get,
2325
+ set: n.set
2326
+ }) : this.g(t.u, u, n.init);
2327
+ e.pop(), e[e.length - 1].value = t.u;
2328
+ };
2329
+ f.prototype.stepProgram = function(e, t, n) {
2330
+ if (e = n.body.shift())
2331
+ return t.done = !1, new y(e, t.scope);
2332
+ t.done = !0;
2333
+ };
2334
+ f.prototype.stepReturnStatement = function(e, t, n) {
2335
+ if (n.K && !t.ka)
2336
+ return t.ka = !0, new y(n.K, t.scope);
2337
+ Ve(this, 3, t.value);
2338
+ };
2339
+ f.prototype.stepSequenceExpression = function(e, t, n) {
2340
+ var r = t.A || 0;
2341
+ if (n = n.xb[r])
2342
+ return t.A = r + 1, new y(n, t.scope);
2343
+ e.pop(), e[e.length - 1].value = t.value;
2344
+ };
2345
+ f.prototype.stepSwitchStatement = function(e, t, n) {
2346
+ if (!t.ga)
2347
+ return t.ga = 1, new y(n.Qb, t.scope);
2348
+ for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
2349
+ var r = t.gb || 0, i = n.tb[r];
2350
+ if (t.Ha || !i || i.test)
2351
+ if (i || t.Ha || t.cb === -1)
2352
+ if (i) {
2353
+ if (!t.Ha && !t.Fb && i.test)
2354
+ return t.Fb = !0, new y(i.test, t.scope);
2355
+ if (t.Ha || t.value === t.hc) {
2356
+ t.Ha = !0;
2357
+ var s = t.A || 0;
2358
+ if (i.da[s])
2359
+ return t.Zb = !0, t.A = s + 1, new y(i.da[s], t.scope);
2360
+ }
2361
+ t.Fb = !1, t.A = 0, t.gb = r + 1;
2362
+ } else {
2363
+ e.pop();
2364
+ break;
2365
+ }
2366
+ else
2367
+ t.Ha = !0, t.gb = t.cb;
2368
+ else
2369
+ t.cb = r, t.gb = r + 1;
2370
+ }
2371
+ };
2372
+ f.prototype.stepThisExpression = function(e) {
2373
+ e.pop(), e[e.length - 1].value = Lt(this, "this");
2374
+ };
2375
+ f.prototype.stepThrowStatement = function(e, t, n) {
2376
+ if (t.ka)
2377
+ d(this, t.value);
2378
+ else
2379
+ return t.ka = !0, new y(n.K, t.scope);
2380
+ };
2381
+ f.prototype.stepTryStatement = function(e, t, n) {
2382
+ if (!t.Rb)
2383
+ return t.Rb = !0, new y(n.block, t.scope);
2384
+ if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
2385
+ return t.Tb = !0, e = _t(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new y(n.Ea.body, e);
2386
+ if (!t.Sb && n.fb)
2387
+ return t.Sb = !0, new y(n.fb, t.scope);
2388
+ e.pop(), t.ea && Ve(this, t.ea.type, t.ea.value, t.ea.label);
2389
+ };
2390
+ f.prototype.stepUnaryExpression = function(e, t, n) {
2391
+ if (!t.ka)
2392
+ return t.ka = !0, e = new y(n.K, t.scope), e.sa = n.operator === "delete", e;
2393
+ e.pop();
2394
+ var r = t.value;
2395
+ switch (n.operator) {
2396
+ case "-":
2397
+ r = -r;
2398
+ break;
2399
+ case "+":
2400
+ r = +r;
2401
+ break;
2402
+ case "!":
2403
+ r = !r;
2404
+ break;
2405
+ case "~":
2406
+ r = ~r;
2407
+ break;
2408
+ case "delete":
2409
+ if (n = !0, Array.isArray(r)) {
2410
+ var i = r[0];
2411
+ i === je && (i = t.scope), r = String(r[1]);
2412
+ try {
2413
+ delete i.h[r];
2414
+ } catch {
2415
+ t.scope.S ? d(this, this.j, "Cannot delete property '" + r + "' of '" + i + "'") : n = !1;
2416
+ }
2417
+ }
2418
+ r = n;
2419
+ break;
2420
+ case "typeof":
2421
+ r = r && r.H === "Function" ? "function" : typeof r;
2422
+ break;
2423
+ case "void":
2424
+ r = void 0;
2425
+ break;
2426
+ default:
2427
+ throw SyntaxError("Unknown unary operator: " + n.operator);
2428
+ }
2429
+ e[e.length - 1].value = r;
2430
+ };
2431
+ f.prototype.stepUpdateExpression = function(e, t, n) {
2432
+ if (!t.ja)
2433
+ return t.ja = !0, e = new y(n.K, t.scope), e.sa = !0, e;
2434
+ if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
2435
+ var r = Bt(this, t.Ga);
2436
+ if (t.ma = r, this.P)
2437
+ return t.Ba = !0, Xe(this, r, t.Ga);
2438
+ }
2439
+ if (t.ta)
2440
+ e.pop(), e[e.length - 1].value = t.ib;
2441
+ else {
2442
+ if (r = Number(t.ma), n.operator === "++")
2443
+ var i = r + 1;
2444
+ else if (n.operator === "--")
2445
+ i = r - 1;
2446
+ else
2447
+ throw SyntaxError("Unknown update expression: " + n.operator);
2448
+ if (n = n.prefix ? i : r, r = Gt(this, t.Ga, i))
2449
+ return t.ta = !0, t.ib = n, Vt(this, r, t.Ga, i);
2450
+ e.pop(), e[e.length - 1].value = n;
2451
+ }
2452
+ };
2453
+ f.prototype.stepVariableDeclaration = function(e, t, n) {
2454
+ n = n.fa;
2455
+ var r = t.A || 0, i = n[r];
2456
+ for (t.Bb && i && (Mr(this, i.id.name, t.value), t.Bb = !1, i = n[++r]); i; ) {
2457
+ if (i.ua)
2458
+ return t.A = r, t.Bb = !0, t.Pa = i.id.name, new y(i.ua, t.scope);
2459
+ i = n[++r];
2460
+ }
2461
+ e.pop();
2462
+ };
2463
+ f.prototype.stepWithStatement = function(e, t, n) {
2464
+ return t.Ca ? (e.pop(), e = _t(this, t.scope, t.value), new y(n.body, e)) : (t.Ca = !0, new y(n.object, t.scope));
2465
+ };
2466
+ f.prototype.stepWhileStatement = f.prototype.stepDoWhileStatement;
2467
+ se.Interpreter = f;
2468
+ f.prototype.step = f.prototype.lb;
2469
+ f.prototype.run = f.prototype.Eb;
2470
+ f.prototype.appendCode = f.prototype.Jb;
2471
+ f.prototype.createObject = f.prototype.Aa;
2472
+ f.prototype.createObjectProto = f.prototype.s;
2473
+ f.prototype.createAsyncFunction = f.prototype.ub;
2474
+ f.prototype.createNativeFunction = f.prototype.i;
2475
+ f.prototype.getProperty = f.prototype.G;
2476
+ f.prototype.setProperty = f.prototype.g;
2477
+ f.prototype.nativeToPseudo = f.prototype.Ia;
2478
+ f.prototype.pseudoToNative = f.prototype.R;
2479
+ f.prototype.getGlobalScope = f.prototype.Xb;
2480
+ f.prototype.getStateStack = f.prototype.Yb;
2481
+ f.prototype.setStateStack = f.prototype.ec;
2482
+ f.VALUE_IN_DESCRIPTOR = Be;
2483
+ const jn = (e) => e.split(`
2484
+ `).map((t) => {
2485
+ const n = t.trim();
2486
+ if (t.includes("__awaiter"))
2487
+ return;
2488
+ if (!n.startsWith("state."))
2489
+ return t;
2490
+ const [i, s] = n.split("="), h = `setRootState('${i.replace("state.", "").trim()}', ${s.trim()})`;
2491
+ return `
2492
+ ${t}
2493
+ ${h}
2494
+ `;
2495
+ }).filter(Boolean).join(`
2496
+ `), Cr = (e) => e + "JSON", Sn = ({
2497
+ builder: e,
2498
+ context: t,
2499
+ event: n,
2500
+ rootState: r,
2501
+ localState: i,
2502
+ rootSetState: s,
2503
+ code: u
2504
+ }) => {
2505
+ const h = {
2506
+ ...r,
2507
+ ...i
2508
+ }, m = Ar({
2509
+ builder: e,
2510
+ context: t,
2511
+ event: n,
2512
+ state: h
2513
+ }), T = m.map(([X]) => {
2514
+ const H = Cr(X);
2515
+ return `var ${X} = ${H} === undefined ? undefined : JSON.parse(${H});`;
2516
+ }).join(`
2517
+ `), C = jn(u);
2518
+ if (C === "") {
2519
+ Mt.warn("Skipping evaluation of empty code block.");
2520
+ return;
2521
+ }
2522
+ const A = `
2523
+ function theFunction() {
2524
+ ${T}
2525
+
2526
+ ${C}
2527
+ }
2528
+ theFunction();
2529
+ `, We = (X, H) => {
2530
+ const S = tn(h, X, H);
2531
+ s == null || s(S);
2532
+ }, ae = function(X, H) {
2533
+ m.forEach(([S, ke]) => {
2534
+ const He = JSON.stringify(ke);
2535
+ X.setProperty(H, Cr(S), He);
2536
+ }), X.setProperty(H, "setRootState", X.createNativeFunction(We));
2537
+ }, pe = new f(A, ae);
2538
+ return pe.run(), pe.pseudoToNative(pe.value);
2539
+ };
2540
+ function kn() {
2541
+ var e;
2542
+ return typeof process != "undefined" && en((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
2543
+ }
2544
+ const On = () => {
2545
+ var r;
2546
+ if (!kn())
2547
+ return !1;
2548
+ const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
2549
+ return e && t && !n ? (Mt.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;
2550
+ }, Cn = (e) => At() || On() ? on(e) : Sn(e), Q = class Q {
2551
+ static getCacheKey(t) {
2552
+ return JSON.stringify({
2553
+ ...t,
2554
+ // replace the event with a random number to break cache
2555
+ // thats because we can't serialize the event object due to circular refs in DOM node refs.
2556
+ event: t.event ? Math.random() : void 0
2557
+ });
2558
+ }
2559
+ static getCachedValue(t) {
2560
+ return Q.cache.get(t);
2561
+ }
2562
+ static setCachedValue(t, n) {
2563
+ Q.cache.size > 20 && Q.cache.delete(Q.cache.keys().next().value), Q.cache.set(t, {
2564
+ value: n
2565
+ });
2566
+ }
2567
+ };
2568
+ Ot(Q, "cacheLimit", 20), Ot(Q, "cache", /* @__PURE__ */ new Map());
2569
+ let we = Q;
2570
+ function Tn({
2571
+ code: e,
2572
+ context: t,
2573
+ localState: n,
2574
+ rootState: r,
2575
+ rootSetState: i,
2576
+ event: s,
2577
+ isExpression: u = !0,
2578
+ enableCache: h
2579
+ }) {
2580
+ if (e === "")
2581
+ return;
2582
+ const m = {
2583
+ code: nn(e, {
2584
+ isExpression: u
2585
+ }),
2586
+ builder: rn(),
2587
+ context: t,
2588
+ event: s,
2589
+ rootSetState: i,
2590
+ rootState: r,
2591
+ localState: n
2592
+ };
2593
+ if (h) {
2594
+ const T = we.getCacheKey(m), C = we.getCachedValue(T);
2595
+ if (C)
2596
+ return C.value;
2597
+ }
2598
+ try {
2599
+ const T = Cn(m);
2600
+ if (h) {
2601
+ const C = we.getCacheKey(m);
2602
+ we.setCachedValue(C, T);
2603
+ }
2604
+ return T;
2605
+ } catch (T) {
2606
+ Mt.error("Failed code evaluation: " + T.message, {
2607
+ code: e
2608
+ });
2609
+ return;
2610
+ }
2611
+ }
2612
+ export {
2613
+ Tn as evaluate,
2614
+ tn as set
2615
+ };