@builder.io/sdk-react 1.0.2 → 1.0.4

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 (93) hide show
  1. package/README.md +4 -3
  2. package/lib/browser/blocks-exports.cjs +187 -0
  3. package/lib/browser/blocks-exports.mjs +3441 -0
  4. package/lib/browser/index.cjs +1 -187
  5. package/lib/browser/index.mjs +26 -3449
  6. package/lib/browser/{server-entry-a595b1cf.cjs → server-entry-093e302c.cjs} +1 -1
  7. package/lib/browser/{server-entry-f6f9bdcb.js → server-entry-7839c812.js} +1 -1
  8. package/lib/browser/server-entry.cjs +1 -1
  9. package/lib/browser/server-entry.mjs +1 -1
  10. package/lib/edge/blocks-0fc8e8d2.js +3385 -0
  11. package/lib/edge/blocks-exports.cjs +1 -0
  12. package/lib/edge/blocks-exports.mjs +16 -0
  13. package/lib/edge/blocks-f8688fcb.cjs +32 -0
  14. package/lib/edge/button-61181684.cjs +1 -0
  15. package/lib/edge/button-d9bbef90.js +29 -0
  16. package/lib/edge/columns-d152e266.cjs +28 -0
  17. package/lib/edge/columns-f7a9bca7.js +156 -0
  18. package/lib/edge/content-variants-cdcbcdd8.js +1711 -0
  19. package/lib/edge/content-variants-d2500971.cjs +133 -0
  20. package/lib/edge/custom-code-33b73ed1.js +44 -0
  21. package/lib/edge/custom-code-7390ba8b.cjs +1 -0
  22. package/lib/edge/dynamic-blocks-exports.cjs +39 -0
  23. package/lib/edge/dynamic-blocks-exports.mjs +37 -0
  24. package/lib/edge/dynamic-renderer-b5124984.js +9 -0
  25. package/lib/edge/dynamic-renderer-c00b8bcb.cjs +1 -0
  26. package/lib/edge/embed-11e03fa7.js +38 -0
  27. package/lib/edge/embed-9edce7df.cjs +1 -0
  28. package/lib/edge/form-ac531791.cjs +1 -0
  29. package/lib/edge/form-fb5fd55e.js +194 -0
  30. package/lib/edge/fragment-015b0912.js +8 -0
  31. package/lib/edge/fragment-61ef192d.cjs +1 -0
  32. package/lib/edge/get-class-prop-name-caee6506.cjs +1 -0
  33. package/lib/edge/get-class-prop-name-f22d7d53.js +18 -0
  34. package/lib/edge/image-6a3654d5.js +118 -0
  35. package/lib/edge/image-e4128296.cjs +17 -0
  36. package/lib/edge/img-317659e2.js +21 -0
  37. package/lib/edge/img-f2eeaa75.cjs +1 -0
  38. package/lib/edge/index.cjs +1 -207
  39. package/lib/edge/index.mjs +25 -5922
  40. package/lib/edge/input-526ea905.js +21 -0
  41. package/lib/edge/input-562438c4.cjs +1 -0
  42. package/lib/edge/section-68fbc212.js +26 -0
  43. package/lib/edge/section-70c8b709.cjs +1 -0
  44. package/lib/edge/select-17802399.js +21 -0
  45. package/lib/edge/select-d87a6280.cjs +1 -0
  46. package/lib/edge/server-entry-88f58ed4.cjs +2 -0
  47. package/lib/edge/{server-entry-f6f9bdcb.js → server-entry-e0830caf.js} +373 -372
  48. package/lib/edge/server-entry.cjs +1 -1
  49. package/lib/edge/server-entry.mjs +1 -1
  50. package/lib/edge/slot-39b50f6b.cjs +1 -0
  51. package/lib/edge/slot-eb244885.js +33 -0
  52. package/lib/edge/submit-button-13d8d5a7.cjs +1 -0
  53. package/lib/edge/submit-button-71dd4015.js +8 -0
  54. package/lib/edge/symbol-bf773f2a.js +78 -0
  55. package/lib/edge/symbol-ee31bb7f.cjs +1 -0
  56. package/lib/edge/text-15f0a6f4.js +18 -0
  57. package/lib/edge/text-7fdbde16.cjs +1 -0
  58. package/lib/edge/video-66b20833.js +106 -0
  59. package/lib/edge/video-702696a8.cjs +1 -0
  60. package/lib/node/blocks-exports.cjs +227 -0
  61. package/lib/node/blocks-exports.mjs +3548 -0
  62. package/lib/node/index.cjs +1 -227
  63. package/lib/node/index.mjs +27 -3556
  64. package/lib/node/{server-entry-31b5d683.cjs → server-entry-0e638a4f.cjs} +1 -1
  65. package/lib/node/{server-entry-c2b6d198.js → server-entry-e1cc0803.js} +1 -1
  66. package/lib/node/server-entry.cjs +1 -1
  67. package/lib/node/server-entry.mjs +1 -1
  68. package/package.json +19 -13
  69. package/types/blocks/button/index.d.ts +1 -0
  70. package/types/blocks/columns/index.d.ts +1 -0
  71. package/types/blocks/custom-code/index.d.ts +1 -0
  72. package/types/blocks/embed/index.d.ts +1 -0
  73. package/types/blocks/form/form/index.d.ts +1 -0
  74. package/types/blocks/form/input/index.d.ts +1 -0
  75. package/types/blocks/form/select/index.d.ts +1 -0
  76. package/types/blocks/form/submit-button/index.d.ts +1 -0
  77. package/types/blocks/fragment/index.d.ts +1 -0
  78. package/types/blocks/image/index.d.ts +1 -0
  79. package/types/blocks/img/index.d.ts +1 -0
  80. package/types/blocks/raw-text/index.d.ts +1 -0
  81. package/types/blocks/section/index.d.ts +1 -0
  82. package/types/blocks/slot/index.d.ts +1 -0
  83. package/types/blocks/symbol/index.d.ts +1 -0
  84. package/types/blocks/text/index.d.ts +1 -0
  85. package/types/blocks/textarea/index.d.ts +1 -0
  86. package/types/blocks/video/index.d.ts +1 -0
  87. package/types/components/blocks/index.d.ts +1 -0
  88. package/types/components/content-variants/index.d.ts +1 -0
  89. package/types/components/error-boundary.d.ts +11 -0
  90. package/types/constants/sdk-version.d.ts +1 -1
  91. package/types/functions/get-content/types.d.ts +1 -1
  92. package/types/index-helpers/blocks-exports.d.ts +10 -11
  93. package/lib/edge/server-entry-a595b1cf.cjs +0 -2
@@ -0,0 +1,3385 @@
1
+ "use client";
2
+ import { jsx as P, Fragment as K, jsxs as Rt } from "react/jsx-runtime";
3
+ import { createContext as $r, useState as _t, useEffect as wn, useContext as Rr } from "react";
4
+ import { i as Mt, h as Bt, w as xn, l as Ve, x as nt, n as Gr, T as Vr } from "./server-entry-e0830caf.js";
5
+ import { g as kn } from "./get-class-prop-name-f22d7d53.js";
6
+ import { D as En } from "./dynamic-renderer-b5124984.js";
7
+ const Hr = $r({
8
+ content: null,
9
+ context: {},
10
+ localState: void 0,
11
+ rootSetState() {
12
+ },
13
+ rootState: {},
14
+ apiKey: null,
15
+ apiVersion: void 0,
16
+ componentInfos: {},
17
+ inheritedStyles: {},
18
+ BlocksWrapper: "div",
19
+ BlocksWrapperProps: {}
20
+ }), Cn = $r({ registeredComponents: {} });
21
+ function jn(e) {
22
+ var t;
23
+ return {
24
+ ...(t = e.component) == null ? void 0 : t.options,
25
+ ...e.options,
26
+ /**
27
+ * Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
28
+ */
29
+ builderBlock: e
30
+ };
31
+ }
32
+ const Xr = ({
33
+ builder: e,
34
+ context: t,
35
+ event: n,
36
+ state: r
37
+ }) => Object.entries({
38
+ state: r,
39
+ Builder: e,
40
+ // legacy
41
+ builder: e,
42
+ context: t,
43
+ event: n
44
+ }), On = () => ({
45
+ isEditing: Mt(),
46
+ isBrowser: Bt(),
47
+ isServer: !Bt(),
48
+ getUserAttributes: () => xn()
49
+ }), An = (e, {
50
+ isExpression: t = !0
51
+ }) => /* 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, In = ({
52
+ code: e,
53
+ builder: t,
54
+ context: n,
55
+ event: r,
56
+ localState: o,
57
+ rootSetState: s,
58
+ rootState: a
59
+ }) => {
60
+ const f = Xr({
61
+ builder: t,
62
+ context: n,
63
+ event: r,
64
+ state: Jr({
65
+ rootState: a,
66
+ localState: o,
67
+ rootSetState: s
68
+ })
69
+ });
70
+ return new Function(...f.map(([g]) => g), e)(...f.map(([, g]) => g));
71
+ };
72
+ function Jr({
73
+ rootState: e,
74
+ localState: t,
75
+ rootSetState: n
76
+ }) {
77
+ return new Proxy(e, {
78
+ get: (r, o) => {
79
+ if (t && o in t)
80
+ return t[o];
81
+ const s = r[o];
82
+ return typeof s == "object" ? Jr({
83
+ rootState: s,
84
+ localState: void 0,
85
+ rootSetState: n ? (a) => {
86
+ r[o] = a, n(r);
87
+ } : void 0
88
+ }) : s;
89
+ },
90
+ set: (r, o, s) => {
91
+ if (t && o in t)
92
+ throw new Error("Writing to local state is not allowed as it is read-only.");
93
+ return r[o] = s, n == null || n(r), !0;
94
+ }
95
+ });
96
+ }
97
+ const Yr = (e, t, n) => {
98
+ if (Object(e) !== e)
99
+ return e;
100
+ const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
101
+ return r.slice(0, -1).reduce((o, s, a) => Object(o[s]) === o[s] ? o[s] : o[s] = Math.abs(Number(r[a + 1])) >> 0 === +r[a + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
102
+ };
103
+ var T, bn = function(e) {
104
+ function t(i) {
105
+ return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && mn.test(String.fromCharCode(i));
106
+ }
107
+ function n(i) {
108
+ return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Nr.test(String.fromCharCode(i));
109
+ }
110
+ function r(i, l) {
111
+ for (var u = d, p = 1, w = 0; ; ) {
112
+ rt.lastIndex = w;
113
+ var F = rt.exec(u);
114
+ if (F && F.index < i)
115
+ ++p, w = F.index + F[0].length;
116
+ else
117
+ break;
118
+ }
119
+ throw u = {
120
+ line: p,
121
+ ab: i - w
122
+ }, l += " (" + u.line + ":" + u.ab + ")", l = new SyntaxError(l), l.j = i, l.X = u, l.o = c, l;
123
+ }
124
+ function o(i) {
125
+ i = i.split(" ");
126
+ for (var l = /* @__PURE__ */ Object.create(null), u = 0; u < i.length; u++)
127
+ l[i[u]] = !0;
128
+ return function(p) {
129
+ return l[p] || !1;
130
+ };
131
+ }
132
+ function s() {
133
+ this.line = he, this.ab = c - te;
134
+ }
135
+ function a(i, l) {
136
+ me = c, k.C && (vt = new s()), S = i, g(), Y = l, Ne = i.m;
137
+ }
138
+ function f() {
139
+ for (var i = c, l = k.va && k.C && new s(), u = d.charCodeAt(c += 2); c < ve && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
140
+ ++c, u = d.charCodeAt(c);
141
+ k.va && k.va(!1, d.slice(i + 2, c), i, c, l, k.C && new s());
142
+ }
143
+ function g() {
144
+ for (; c < ve; ) {
145
+ var i = d.charCodeAt(c);
146
+ if (i === 32)
147
+ ++c;
148
+ else if (i === 13)
149
+ ++c, i = d.charCodeAt(c), i === 10 && ++c, k.C && (++he, te = c);
150
+ else if (i === 10 || i === 8232 || i === 8233)
151
+ ++c, k.C && (++he, te = c);
152
+ else if (8 < i && 14 > i)
153
+ ++c;
154
+ else if (i === 47)
155
+ if (i = d.charCodeAt(c + 1), i === 42) {
156
+ i = void 0;
157
+ var l = k.va && k.C && new s(), u = c, p = d.indexOf("*/", c += 2);
158
+ if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, k.C)
159
+ for (rt.lastIndex = u; (i = rt.exec(d)) && i.index < c; )
160
+ ++he, te = i.index + i[0].length;
161
+ k.va && k.va(!0, d.slice(u + 2, p), u, c, l, k.C && new s());
162
+ } else if (i === 47)
163
+ f();
164
+ else
165
+ break;
166
+ else if (i === 160)
167
+ ++c;
168
+ else if (5760 <= i && vn.test(String.fromCharCode(i)))
169
+ ++c;
170
+ else
171
+ break;
172
+ }
173
+ }
174
+ function I(i) {
175
+ switch (i) {
176
+ case 46:
177
+ i = d.charCodeAt(c + 1), 48 <= i && 57 >= i ? E(!0) : (++c, a(Cr));
178
+ return;
179
+ case 40:
180
+ return ++c, a(re);
181
+ case 41:
182
+ return ++c, a(Q);
183
+ case 59:
184
+ return ++c, a(ne);
185
+ case 44:
186
+ return ++c, a(ue);
187
+ case 91:
188
+ return ++c, a(At);
189
+ case 93:
190
+ return ++c, a(It);
191
+ case 123:
192
+ return ++c, a(Be);
193
+ case 125:
194
+ return ++c, a(we);
195
+ case 58:
196
+ return ++c, a(De);
197
+ case 63:
198
+ return ++c, a(jr);
199
+ case 48:
200
+ if (i = d.charCodeAt(c + 1), i === 120 || i === 88) {
201
+ c += 2, i = b(16), i === null && r(U + 2, "Expected hexadecimal number"), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), a(Me, i);
202
+ return;
203
+ }
204
+ case 49:
205
+ case 50:
206
+ case 51:
207
+ case 52:
208
+ case 53:
209
+ case 54:
210
+ case 55:
211
+ case 56:
212
+ case 57:
213
+ return E(!1);
214
+ case 34:
215
+ case 39:
216
+ c++;
217
+ for (var l = ""; ; ) {
218
+ c >= ve && r(U, "Unterminated string constant");
219
+ var u = d.charCodeAt(c);
220
+ if (u === i) {
221
+ ++c, a(Qe, l);
222
+ break;
223
+ }
224
+ if (u === 92) {
225
+ u = d.charCodeAt(++c);
226
+ var p = /^[0-7]+/.exec(d.slice(c, c + 3));
227
+ for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
228
+ p = p.slice(0, -1);
229
+ if (p === "0" && (p = null), ++c, p)
230
+ H && r(c - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(p, 8)), c += p.length - 1;
231
+ else
232
+ switch (u) {
233
+ case 110:
234
+ l += `
235
+ `;
236
+ break;
237
+ case 114:
238
+ l += "\r";
239
+ break;
240
+ case 120:
241
+ l += String.fromCharCode(N(2));
242
+ break;
243
+ case 117:
244
+ l += String.fromCharCode(N(4));
245
+ break;
246
+ case 85:
247
+ l += String.fromCharCode(N(8));
248
+ break;
249
+ case 116:
250
+ l += " ";
251
+ break;
252
+ case 98:
253
+ l += "\b";
254
+ break;
255
+ case 118:
256
+ l += "\v";
257
+ break;
258
+ case 102:
259
+ l += "\f";
260
+ break;
261
+ case 48:
262
+ l += "\0";
263
+ break;
264
+ case 13:
265
+ d.charCodeAt(c) === 10 && ++c;
266
+ case 10:
267
+ k.C && (te = c, ++he);
268
+ break;
269
+ default:
270
+ l += String.fromCharCode(u);
271
+ }
272
+ } else
273
+ u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || r(U, "Unterminated string constant"), l += String.fromCharCode(u), ++c;
274
+ }
275
+ return;
276
+ case 47:
277
+ i = d.charCodeAt(c + 1), Ne ? (++c, X()) : i === 61 ? A(ge, 2) : A(Or, 1);
278
+ return;
279
+ case 37:
280
+ case 42:
281
+ d.charCodeAt(c + 1) === 61 ? A(ge, 2) : A(gn, 1);
282
+ return;
283
+ case 124:
284
+ case 38:
285
+ l = d.charCodeAt(c + 1), l === i ? A(i === 124 ? br : Tr, 2) : l === 61 ? A(ge, 2) : A(i === 124 ? an : un, 1);
286
+ return;
287
+ case 94:
288
+ d.charCodeAt(c + 1) === 61 ? A(ge, 2) : A(ln, 1);
289
+ return;
290
+ case 43:
291
+ case 45:
292
+ l = d.charCodeAt(c + 1), l === i ? l === 45 && d.charCodeAt(c + 2) === 62 && tt.test(d.slice(le, c)) ? (c += 3, f(), g(), O()) : A(sn, 2) : l === 61 ? A(ge, 2) : A(hn, 1);
293
+ return;
294
+ case 60:
295
+ case 62:
296
+ l = d.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && d.charCodeAt(c + 2) === 62 ? 3 : 2, d.charCodeAt(c + u) === 61 ? A(ge, u + 1) : A(pn, u)) : l === 33 && i === 60 && d.charCodeAt(c + 2) === 45 && d.charCodeAt(c + 3) === 45 ? (c += 4, f(), g(), O()) : (l === 61 && (u = d.charCodeAt(c + 2) === 61 ? 3 : 2), A(fn, u));
297
+ return;
298
+ case 61:
299
+ case 33:
300
+ d.charCodeAt(c + 1) === 61 ? A(cn, d.charCodeAt(c + 2) === 61 ? 3 : 2) : A(i === 61 ? Ar : Ir, 1);
301
+ return;
302
+ case 126:
303
+ return A(Ir, 1);
304
+ }
305
+ return !1;
306
+ }
307
+ function O(i) {
308
+ if (i ? c = U + 1 : U = c, k.C && (yt = new s()), i)
309
+ return X();
310
+ if (c >= ve)
311
+ return a(wt);
312
+ if (i = d.charCodeAt(c), n(i) || i === 92)
313
+ return fe();
314
+ if (I(i) === !1) {
315
+ if (i = String.fromCharCode(i), i === "\\" || Nr.test(i))
316
+ return fe();
317
+ r(c, "Unexpected character '" + i + "'");
318
+ }
319
+ }
320
+ function A(i, l) {
321
+ var u = d.slice(c, c + l);
322
+ c += l, a(i, u);
323
+ }
324
+ function X() {
325
+ for (var i, l, u = c; ; ) {
326
+ c >= ve && r(u, "Unterminated regexp");
327
+ var p = d.charAt(c);
328
+ if (tt.test(p) && r(u, "Unterminated regexp"), i)
329
+ i = !1;
330
+ else {
331
+ if (p === "[")
332
+ l = !0;
333
+ else if (p === "]" && l)
334
+ l = !1;
335
+ else if (p === "/" && !l)
336
+ break;
337
+ i = p === "\\";
338
+ }
339
+ ++c;
340
+ }
341
+ i = d.slice(u, c), ++c, (l = J()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
342
+ try {
343
+ var w = new RegExp(i, l);
344
+ } catch (F) {
345
+ throw F instanceof SyntaxError && r(u, F.message), F;
346
+ }
347
+ a(ir, w);
348
+ }
349
+ function b(i, l) {
350
+ for (var u = c, p = 0, w = l === void 0 ? 1 / 0 : l, F = 0; F < w; ++F) {
351
+ var $ = d.charCodeAt(c);
352
+ if ($ = 97 <= $ ? $ - 97 + 10 : 65 <= $ ? $ - 65 + 10 : 48 <= $ && 57 >= $ ? $ - 48 : 1 / 0, $ >= i)
353
+ break;
354
+ ++c, p = p * i + $;
355
+ }
356
+ return c === u || l !== void 0 && c - u !== l ? null : p;
357
+ }
358
+ function E(i) {
359
+ var l = c, u = !1, p = d.charCodeAt(c) === 48;
360
+ i || b(10) !== null || r(l, "Invalid number"), d.charCodeAt(c) === 46 && (++c, b(10), u = !0), i = d.charCodeAt(c), (i === 69 || i === 101) && (i = d.charCodeAt(++c), i !== 43 && i !== 45 || ++c, b(10) === null && r(l, "Invalid number"), u = !0), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), i = d.slice(l, c);
361
+ var w;
362
+ u ? w = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || H ? r(l, "Invalid number") : w = parseInt(i, 8) : w = parseInt(i, 10), a(Me, w);
363
+ }
364
+ function N(i) {
365
+ return i = b(16, i), i === null && r(U, "Bad character escape sequence"), i;
366
+ }
367
+ function J() {
368
+ xe = !1;
369
+ for (var i, l = !0, u = c; ; ) {
370
+ var p = d.charCodeAt(c);
371
+ if (t(p))
372
+ xe && (i += d.charAt(c)), ++c;
373
+ else if (p === 92) {
374
+ xe || (i = d.slice(u, c)), xe = !0, d.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p = N(4);
375
+ var w = String.fromCharCode(p);
376
+ w || r(c - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(c - 4, "Invalid Unicode escape"), i += w;
377
+ } else
378
+ break;
379
+ l = !1;
380
+ }
381
+ return xe ? i : d.slice(u, c);
382
+ }
383
+ function fe() {
384
+ var i = J(), l = Se;
385
+ !xe && yn(i) && (l = on[i]), a(l, i);
386
+ }
387
+ function C() {
388
+ mt = U, le = me, St = vt, O();
389
+ }
390
+ function ye(i) {
391
+ if (H = i, c = U, k.C)
392
+ for (; c < te; )
393
+ te = d.lastIndexOf(`
394
+ `, te - 2) + 1, --he;
395
+ g(), O();
396
+ }
397
+ function Ae() {
398
+ this.type = null, this.start = U, this.end = null;
399
+ }
400
+ function Ie() {
401
+ this.start = yt, this.end = null, dt && (this.source = dt);
402
+ }
403
+ function M() {
404
+ var i = new Ae();
405
+ return k.C && (i.X = new Ie()), k.vb && (i.sourceFile = k.vb), k.Xa && (i.j = [U, 0]), i;
406
+ }
407
+ function Z(i) {
408
+ var l = new Ae();
409
+ return l.start = i.start, k.C && (l.X = new Ie(), l.X.start = i.X.start), k.Xa && (l.j = [i.j[0], 0]), l;
410
+ }
411
+ function x(i, l) {
412
+ return i.type = l, i.end = le, k.C && (i.X.end = St), k.Xa && (i.j[1] = le), i;
413
+ }
414
+ function lt(i) {
415
+ return i.type === "ExpressionStatement" && i.la.type === "Literal" && i.la.value === "use strict";
416
+ }
417
+ function R(i) {
418
+ return S === i ? (C(), !0) : !1;
419
+ }
420
+ function Ke() {
421
+ return !k.fc && (S === wt || S === we || tt.test(d.slice(le, U)));
422
+ }
423
+ function pe() {
424
+ R(ne) || Ke() || q();
425
+ }
426
+ function B(i) {
427
+ S === i ? C() : q();
428
+ }
429
+ function q() {
430
+ r(U, "Unexpected token");
431
+ }
432
+ function Ze(i) {
433
+ i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), H && i.type === "Identifier" && et(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
434
+ }
435
+ function z() {
436
+ (S === Or || S === ge && Y === "/=") && O(!0);
437
+ var i = S, l = M();
438
+ switch (i) {
439
+ case xt:
440
+ case ar:
441
+ C();
442
+ var u = i === xt;
443
+ R(ne) || Ke() ? l.label = null : S !== Se ? q() : (l.label = ee(), pe());
444
+ for (var p = 0; p < D.length; ++p) {
445
+ var w = D[p];
446
+ if ((l.label === null || w.name === l.label.name) && (w.kind !== null && (u || w.kind === "loop") || l.label && u))
447
+ break;
448
+ }
449
+ return p === D.length && r(l.start, "Unsyntactic " + i.l), x(l, u ? "BreakStatement" : "ContinueStatement");
450
+ case lr:
451
+ return C(), pe(), x(l, "DebuggerStatement");
452
+ case cr:
453
+ return C(), D.push(bt), l.body = z(), D.pop(), B(Ot), l.test = be(), pe(), x(l, "DoWhileStatement");
454
+ case hr:
455
+ return C(), D.push(bt), B(re), S === ne ? ut(l, null) : S === jt ? (i = M(), C(), nr(i, !0), x(i, "VariableDeclaration"), i.fa.length === 1 && R(qe) ? rr(l, i) : ut(l, i)) : (i = W(!1, !0), R(qe) ? (Ze(i), rr(l, i)) : ut(l, i));
456
+ case Et:
457
+ return C(), ht(l, !0);
458
+ case gr:
459
+ return C(), l.test = be(), l.da = z(), l.alternate = R(fr) ? z() : null, x(l, "IfStatement");
460
+ case dr:
461
+ return Re || k.Ib || r(U, "'return' outside of function"), C(), R(ne) || Ke() ? l.K = null : (l.K = W(), pe()), x(l, "ReturnStatement");
462
+ case Ct:
463
+ for (C(), l.Qb = be(), l.tb = [], B(Be), D.push(Sn); S !== we; )
464
+ S === kt || S === ur ? (i = S === kt, p && x(p, "SwitchCase"), l.tb.push(p = M()), p.da = [], C(), i ? p.test = W() : (u && r(mt, "Multiple default clauses"), u = !0, p.test = null), B(De)) : (p || q(), p.da.push(z()));
465
+ return p && x(p, "SwitchCase"), C(), D.pop(), x(l, "SwitchStatement");
466
+ case yr:
467
+ return C(), tt.test(d.slice(le, U)) && r(le, "Illegal newline after throw"), l.K = W(), pe(), x(l, "ThrowStatement");
468
+ case vr:
469
+ return C(), l.block = Te(), l.Ea = null, S === sr && (i = M(), C(), B(re), i.Ua = ee(), H && et(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), B(Q), i.body = Te(), l.Ea = x(i, "CatchClause")), l.fb = R(pr) ? Te() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), x(l, "TryStatement");
470
+ case jt:
471
+ return C(), nr(l), pe(), x(l, "VariableDeclaration");
472
+ case Ot:
473
+ return C(), l.test = be(), D.push(bt), l.body = z(), D.pop(), x(l, "WhileStatement");
474
+ case mr:
475
+ return H && r(U, "'with' in strict mode"), C(), l.object = be(), l.body = z(), x(l, "WithStatement");
476
+ case Be:
477
+ return Te();
478
+ case ne:
479
+ return C(), x(l, "EmptyStatement");
480
+ default:
481
+ if (u = Y, w = W(), i === Se && w.type === "Identifier" && R(De)) {
482
+ for (p = 0; p < D.length; ++p)
483
+ D[p].name === u && r(w.start, "Label '" + u + "' is already declared");
484
+ return D.push({
485
+ name: u,
486
+ kind: S.W ? "loop" : S === Ct ? "switch" : null
487
+ }), l.body = z(), D.pop(), l.label = w, x(l, "LabeledStatement");
488
+ }
489
+ return l.la = w, pe(), x(l, "ExpressionStatement");
490
+ }
491
+ }
492
+ function be() {
493
+ B(re);
494
+ var i = W();
495
+ return B(Q), i;
496
+ }
497
+ function Te(i) {
498
+ var l = M(), u = !0, p = !1;
499
+ for (l.body = [], B(Be); !R(we); ) {
500
+ var w = z();
501
+ if (l.body.push(w), u && i && lt(w)) {
502
+ var F = p;
503
+ ye(p = !0);
504
+ }
505
+ u = !1;
506
+ }
507
+ return p && !F && ye(!1), x(l, "BlockStatement");
508
+ }
509
+ function ut(i, l) {
510
+ return i.ua = l, B(ne), i.test = S === ne ? null : W(), B(ne), i.update = S === Q ? null : W(), B(Q), i.body = z(), D.pop(), x(i, "ForStatement");
511
+ }
512
+ function rr(i, l) {
513
+ return i.left = l, i.right = W(), B(Q), i.body = z(), D.pop(), x(i, "ForInStatement");
514
+ }
515
+ function nr(i, l) {
516
+ for (i.fa = [], i.kind = "var"; ; ) {
517
+ var u = M();
518
+ if (u.id = ee(), H && et(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = R(Ar) ? W(!0, l) : null, i.fa.push(x(u, "VariableDeclarator")), !R(ue))
519
+ break;
520
+ }
521
+ }
522
+ function W(i, l) {
523
+ var u = ct(l);
524
+ if (!i && S === ue) {
525
+ for (i = Z(u), i.xb = [u]; R(ue); )
526
+ i.xb.push(ct(l));
527
+ return x(i, "SequenceExpression");
528
+ }
529
+ return u;
530
+ }
531
+ function ct(i) {
532
+ var l = ft(pt(), -1, i);
533
+ if (R(jr)) {
534
+ var u = Z(l);
535
+ u.test = l, u.da = W(!0), B(De), u.alternate = W(!0, i), l = x(u, "ConditionalExpression");
536
+ }
537
+ return S.Cb ? (u = Z(l), u.operator = Y, u.left = l, C(), u.right = ct(i), Ze(l), x(u, "AssignmentExpression")) : l;
538
+ }
539
+ function ft(i, l, u) {
540
+ var p = S.L;
541
+ if (p !== null && (!u || S !== qe) && p > l) {
542
+ var w = Z(i);
543
+ return w.left = i, w.operator = Y, i = S, C(), w.right = ft(pt(), p, u), p = x(w, i === br || i === Tr ? "LogicalExpression" : "BinaryExpression"), ft(p, l, u);
544
+ }
545
+ return i;
546
+ }
547
+ function pt() {
548
+ if (S.prefix) {
549
+ var i = M(), l = S.$b;
550
+ return i.operator = Y, Ne = i.prefix = !0, C(), i.K = pt(), l ? Ze(i.K) : H && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), x(i, l ? "UpdateExpression" : "UnaryExpression");
551
+ }
552
+ for (l = Pe(ze()); S.cc && !Ke(); )
553
+ i = Z(l), i.operator = Y, i.prefix = !1, i.K = l, Ze(l), C(), l = x(i, "UpdateExpression");
554
+ return l;
555
+ }
556
+ function Pe(i, l) {
557
+ if (R(Cr)) {
558
+ var u = Z(i);
559
+ return u.object = i, u.Wa = ee(!0), u.bb = !1, Pe(x(u, "MemberExpression"), l);
560
+ }
561
+ return R(At) ? (u = Z(i), u.object = i, u.Wa = W(), u.bb = !0, B(It), Pe(x(u, "MemberExpression"), l)) : !l && R(re) ? (u = Z(i), u.callee = i, u.arguments = gt(Q, !1), Pe(x(u, "CallExpression"), l)) : i;
562
+ }
563
+ function ze() {
564
+ switch (S) {
565
+ case wr:
566
+ var i = M();
567
+ return C(), x(i, "ThisExpression");
568
+ case Se:
569
+ return ee();
570
+ case Me:
571
+ case Qe:
572
+ case ir:
573
+ return i = M(), i.value = Y, i.raw = d.slice(U, me), C(), x(i, "Literal");
574
+ case xr:
575
+ case kr:
576
+ case Er:
577
+ return i = M(), i.value = S.$a, i.raw = S.l, C(), x(i, "Literal");
578
+ case re:
579
+ i = yt;
580
+ var l = U;
581
+ C();
582
+ var u = W();
583
+ return u.start = l, u.end = me, k.C && (u.X.start = i, u.X.end = vt), k.Xa && (u.j = [l, me]), B(Q), u;
584
+ case At:
585
+ return i = M(), C(), i.elements = gt(It, !0, !0), x(i, "ArrayExpression");
586
+ case Be:
587
+ for (i = M(), l = !0, u = !1, i.h = [], C(); !R(we); ) {
588
+ if (l)
589
+ l = !1;
590
+ else if (B(ue), k.sb && R(we))
591
+ break;
592
+ var p = {
593
+ key: S === Me || S === Qe ? ze() : ee(!0)
594
+ }, w = !1;
595
+ if (R(De)) {
596
+ p.value = W(!0);
597
+ var F = p.kind = "init";
598
+ } else
599
+ p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? q() : (w = u = !0, F = p.kind = p.key.name, p.key = S === Me || S === Qe ? ze() : ee(!0), S !== re && q(), p.value = ht(M(), !1));
600
+ if (p.key.type === "Identifier" && (H || u))
601
+ for (var $ = 0; $ < i.h.length; ++$) {
602
+ var ke = i.h[$];
603
+ if (ke.key.name === p.key.name) {
604
+ var Tt = F === ke.kind || w && ke.kind === "init" || F === "init" && (ke.kind === "get" || ke.kind === "set");
605
+ Tt && !H && F === "init" && ke.kind === "init" && (Tt = !1), Tt && r(p.key.start, "Redefinition of property");
606
+ }
607
+ }
608
+ i.h.push(p);
609
+ }
610
+ return x(i, "ObjectExpression");
611
+ case Et:
612
+ return i = M(), C(), ht(i, !1);
613
+ case Sr:
614
+ return i = M(), C(), i.callee = Pe(ze(), !0), i.arguments = R(re) ? gt(Q, !1) : nn, x(i, "NewExpression");
615
+ }
616
+ q();
617
+ }
618
+ function ht(i, l) {
619
+ S === Se ? i.id = ee() : l ? q() : i.id = null, i.oa = [];
620
+ var u = !0;
621
+ for (B(re); !R(Q); )
622
+ u ? u = !1 : B(ue), i.oa.push(ee());
623
+ u = Re;
624
+ var p = D;
625
+ if (Re = !0, D = [], i.body = Te(!0), Re = u, D = p, H || i.body.body.length && lt(i.body.body[0])) {
626
+ for (u = i.id ? -1 : 0; u < i.oa.length; ++u)
627
+ if (p = 0 > u ? i.id : i.oa[u], (Pr(p.name) || et(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= u)
628
+ for (var w = 0; w < u; ++w)
629
+ p.name === i.oa[w].name && r(p.start, "Argument name clash in strict mode");
630
+ }
631
+ return x(i, l ? "FunctionDeclaration" : "FunctionExpression");
632
+ }
633
+ function gt(i, l, u) {
634
+ for (var p = [], w = !0; !R(i); ) {
635
+ if (w)
636
+ w = !1;
637
+ else if (B(ue), l && k.sb && R(i))
638
+ break;
639
+ p.push(u && S === ue ? null : W(!0));
640
+ }
641
+ return p;
642
+ }
643
+ function ee(i) {
644
+ var l = M();
645
+ return i && k.yb === "everywhere" && (i = !1), S === Se ? (!i && (k.yb && dn(Y) || H && Pr(Y)) && d.slice(U, me).indexOf("\\") === -1 && r(U, "The keyword '" + Y + "' is reserved"), l.name = Y) : i && S.l ? l.name = S.l : q(), Ne = !1, C(), x(l, "Identifier");
646
+ }
647
+ e.version = "0.5.0";
648
+ var k, d = "", ve, dt;
649
+ e.parse = function(i, l) {
650
+ d = String(i), ve = d.length, k = l || {};
651
+ for (var u in or)
652
+ Object.prototype.hasOwnProperty.call(k, u) || (k[u] = or[u]);
653
+ for (dt = k.sourceFile, he = 1, c = te = 0, Ne = !0, g(), u = k.dc, mt = le = c, k.C && (St = new s()), Re = H = !1, D = [], O(), i = u || M(), l = !0, u || (i.body = []); S !== wt; )
654
+ u = z(), i.body.push(u), l && lt(u) && ye(!0), l = !1;
655
+ return x(i, "Program");
656
+ };
657
+ var or = {
658
+ fc: !1,
659
+ sb: !0,
660
+ yb: !1,
661
+ Ib: !1,
662
+ C: !1,
663
+ va: null,
664
+ Xa: !1,
665
+ dc: null,
666
+ sourceFile: null,
667
+ vb: null
668
+ }, c = 0, U = 0, me = 0, yt, vt, S, Y, Ne, he, te, mt = 0, le = 0, St, Re, D, H, nn = [], Me = {
669
+ type: "num"
670
+ }, ir = {
671
+ type: "regexp"
672
+ }, Qe = {
673
+ type: "string"
674
+ }, Se = {
675
+ type: "name"
676
+ }, wt = {
677
+ type: "eof"
678
+ }, xt = {
679
+ l: "break"
680
+ }, kt = {
681
+ l: "case",
682
+ m: !0
683
+ }, sr = {
684
+ l: "catch"
685
+ }, ar = {
686
+ l: "continue"
687
+ }, lr = {
688
+ l: "debugger"
689
+ }, ur = {
690
+ l: "default"
691
+ }, cr = {
692
+ l: "do",
693
+ W: !0
694
+ }, fr = {
695
+ l: "else",
696
+ m: !0
697
+ }, pr = {
698
+ l: "finally"
699
+ }, hr = {
700
+ l: "for",
701
+ W: !0
702
+ }, Et = {
703
+ l: "function"
704
+ }, gr = {
705
+ l: "if"
706
+ }, dr = {
707
+ l: "return",
708
+ m: !0
709
+ }, Ct = {
710
+ l: "switch"
711
+ }, yr = {
712
+ l: "throw",
713
+ m: !0
714
+ }, vr = {
715
+ l: "try"
716
+ }, jt = {
717
+ l: "var"
718
+ }, Ot = {
719
+ l: "while",
720
+ W: !0
721
+ }, mr = {
722
+ l: "with"
723
+ }, Sr = {
724
+ l: "new",
725
+ m: !0
726
+ }, wr = {
727
+ l: "this"
728
+ }, xr = {
729
+ l: "null",
730
+ $a: null
731
+ }, kr = {
732
+ l: "true",
733
+ $a: !0
734
+ }, Er = {
735
+ l: "false",
736
+ $a: !1
737
+ }, qe = {
738
+ l: "in",
739
+ L: 7,
740
+ m: !0
741
+ }, on = {
742
+ break: xt,
743
+ case: kt,
744
+ catch: sr,
745
+ continue: ar,
746
+ debugger: lr,
747
+ default: ur,
748
+ do: cr,
749
+ else: fr,
750
+ finally: pr,
751
+ for: hr,
752
+ function: Et,
753
+ if: gr,
754
+ return: dr,
755
+ switch: Ct,
756
+ throw: yr,
757
+ try: vr,
758
+ var: jt,
759
+ while: Ot,
760
+ with: mr,
761
+ null: xr,
762
+ true: kr,
763
+ false: Er,
764
+ new: Sr,
765
+ in: qe,
766
+ instanceof: {
767
+ l: "instanceof",
768
+ L: 7,
769
+ m: !0
770
+ },
771
+ this: wr,
772
+ typeof: {
773
+ l: "typeof",
774
+ prefix: !0,
775
+ m: !0
776
+ },
777
+ void: {
778
+ l: "void",
779
+ prefix: !0,
780
+ m: !0
781
+ },
782
+ delete: {
783
+ l: "delete",
784
+ prefix: !0,
785
+ m: !0
786
+ }
787
+ }, At = {
788
+ type: "[",
789
+ m: !0
790
+ }, It = {
791
+ type: "]"
792
+ }, Be = {
793
+ type: "{",
794
+ m: !0
795
+ }, we = {
796
+ type: "}"
797
+ }, re = {
798
+ type: "(",
799
+ m: !0
800
+ }, Q = {
801
+ type: ")"
802
+ }, ue = {
803
+ type: ",",
804
+ m: !0
805
+ }, ne = {
806
+ type: ";",
807
+ m: !0
808
+ }, De = {
809
+ type: ":",
810
+ m: !0
811
+ }, Cr = {
812
+ type: "."
813
+ }, jr = {
814
+ type: "?",
815
+ m: !0
816
+ }, Or = {
817
+ L: 10,
818
+ m: !0
819
+ }, Ar = {
820
+ Cb: !0,
821
+ m: !0
822
+ }, ge = {
823
+ Cb: !0,
824
+ m: !0
825
+ }, sn = {
826
+ cc: !0,
827
+ prefix: !0,
828
+ $b: !0
829
+ }, Ir = {
830
+ prefix: !0,
831
+ m: !0
832
+ }, br = {
833
+ L: 1,
834
+ m: !0
835
+ }, Tr = {
836
+ L: 2,
837
+ m: !0
838
+ }, an = {
839
+ L: 3,
840
+ m: !0
841
+ }, ln = {
842
+ L: 4,
843
+ m: !0
844
+ }, un = {
845
+ L: 5,
846
+ m: !0
847
+ }, cn = {
848
+ L: 6,
849
+ m: !0
850
+ }, fn = {
851
+ L: 7,
852
+ m: !0
853
+ }, pn = {
854
+ L: 8,
855
+ m: !0
856
+ }, hn = {
857
+ L: 9,
858
+ prefix: !0,
859
+ m: !0
860
+ }, gn = {
861
+ L: 10,
862
+ m: !0
863
+ }, dn = o("class enum extends super const export import"), Pr = o("implements interface let package private protected public static yield"), et = o("eval arguments"), yn = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), vn = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Nr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), mn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), tt = /[\n\r\u2028\u2029]/, rt = /\r\n|[\n\r\u2028\u2029]/g, xe, bt = {
864
+ kind: "loop"
865
+ }, Sn = {
866
+ kind: "switch"
867
+ };
868
+ }, Dt = Dt = typeof globalThis == "undefined" ? void 0 : globalThis;
869
+ bn(Dt.j || (Dt.j = {}));
870
+ function h(e, t) {
871
+ typeof e == "string" && (e = Ce(e, "code"));
872
+ var n = e.constructor;
873
+ this.ya = function() {
874
+ return new n({
875
+ options: {}
876
+ });
877
+ };
878
+ var r = this.ya(), o;
879
+ for (o in e)
880
+ r[o] = o === "body" ? e[o].slice() : e[o];
881
+ 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*)$/;
882
+ var s, a;
883
+ for (a in this)
884
+ typeof this[a] == "function" && (s = a.match(e)) && (this.rb[s[1]] = this[a].bind(this));
885
+ this.N = Ft(this, this.ra, null), this.Na = this.N.object, this.ra = Ce(this.ba.join(`
886
+ `), "polyfills"), this.ba = void 0, it(this.ra), s = new v(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = r, s = new v(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
887
+ }
888
+ var Mr = {
889
+ C: !0,
890
+ kc: 5
891
+ }, Lt = {
892
+ configurable: !0,
893
+ enumerable: !0,
894
+ writable: !1
895
+ }, y = {
896
+ configurable: !0,
897
+ enumerable: !1,
898
+ writable: !0
899
+ }, V = {
900
+ configurable: !0,
901
+ enumerable: !1,
902
+ writable: !1
903
+ }, Ue = {
904
+ configurable: !1,
905
+ enumerable: !1,
906
+ writable: !1
907
+ }, Br = {
908
+ configurable: !1,
909
+ enumerable: !0,
910
+ writable: !0
911
+ }, Kr = {
912
+ STEP_ERROR: !0
913
+ }, Oe = {
914
+ SCOPE_REFERENCE: !0
915
+ }, He = {
916
+ VALUE_IN_DESCRIPTOR: !0
917
+ }, Ee = {
918
+ REGEXP_TIMEOUT: !0
919
+ }, Dr = [], ie = null, $e = null, ce = typeof globalThis == "undefined" ? void 0 : globalThis, Tn = ["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();", "};"];
920
+ function Wt(e) {
921
+ var t = e >>> 0;
922
+ return t === Number(e) ? t : NaN;
923
+ }
924
+ function Ge(e) {
925
+ var t = e >>> 0;
926
+ return String(t) === String(e) && t !== 4294967295 ? t : NaN;
927
+ }
928
+ function it(e, t, n) {
929
+ t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
930
+ for (var r in e)
931
+ if (r !== "loc" && e.hasOwnProperty(r)) {
932
+ var o = e[r];
933
+ o && typeof o == "object" && it(o, t, n);
934
+ }
935
+ }
936
+ h.prototype.REGEXP_MODE = 2;
937
+ h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
938
+ h.prototype.POLYFILL_TIMEOUT = 1e3;
939
+ T = h.prototype;
940
+ T.P = !1;
941
+ T.Ka = !1;
942
+ T.Kb = 0;
943
+ T.ic = 0;
944
+ function Ce(e, t) {
945
+ var n = {}, r;
946
+ for (r in Mr)
947
+ n[r] = Mr[r];
948
+ return n.sourceFile = t, ce.j.parse(e, n);
949
+ }
950
+ T.Jb = function(e) {
951
+ var t = this.o[0];
952
+ if (!t || t.node.type !== "Program")
953
+ throw Error("Expecting original AST to start with a Program node");
954
+ if (typeof e == "string" && (e = Ce(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
955
+ throw Error("Expecting new AST to start with a Program node");
956
+ Xe(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
957
+ };
958
+ T.lb = function() {
959
+ var e = this.o, t;
960
+ do {
961
+ var n = e[e.length - 1];
962
+ if (this.za)
963
+ break;
964
+ if (!n || n.node.type === "Program" && n.done) {
965
+ if (!this.ca.length)
966
+ return !1;
967
+ if (n = this.ca[0], !n || n.time > Date.now())
968
+ n = null;
969
+ else {
970
+ this.ca.shift(), 0 <= n.interval && Qr(this, n, n.interval);
971
+ var r = new v(n.node, n.scope);
972
+ n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
973
+ }
974
+ if (!n)
975
+ break;
976
+ }
977
+ r = n.node;
978
+ var o = $e;
979
+ $e = this;
980
+ try {
981
+ var s = this.rb[r.type](e, n, r);
982
+ } catch (a) {
983
+ if (a !== Kr)
984
+ throw this.value !== a && (this.value = void 0), a;
985
+ } finally {
986
+ $e = o;
987
+ }
988
+ if (s && e.push(s), this.P)
989
+ throw this.value = void 0, Error("Getter not supported in this context");
990
+ if (this.Ka)
991
+ throw this.value = void 0, Error("Setter not supported in this context");
992
+ t || r.end || (t = Date.now() + this.POLYFILL_TIMEOUT);
993
+ } while (!r.end && t > Date.now());
994
+ return !0;
995
+ };
996
+ T.Eb = function() {
997
+ for (; !this.za && this.lb(); )
998
+ ;
999
+ return this.za;
1000
+ };
1001
+ function Pn(e, t) {
1002
+ e.g(t, "NaN", NaN, Ue), e.g(t, "Infinity", 1 / 0, Ue), e.g(t, "undefined", void 0, Ue), e.g(t, "window", t, Lt), e.g(t, "this", t, Ue), e.g(t, "self", t), e.M = new j(null), e.Z = new j(e.M), Nn(e, t), Rn(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Mn(e, t), Bn(e, t), Dn(e, t), Un(e, t), Fn(e, t), _n(e, t), Ln(e, t), Wn(e, t), $n(e, t);
1003
+ var n = e.i(function() {
1004
+ throw EvalError("Can't happen");
1005
+ }, !1);
1006
+ n.eval = !0, e.g(t, "eval", n, y), e.g(t, "parseInt", e.i(parseInt, !1), y), e.g(t, "parseFloat", e.i(parseFloat, !1), y), e.g(t, "isNaN", e.i(isNaN, !1), y), e.g(t, "isFinite", e.i(isFinite, !1), y);
1007
+ for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < r.length; o++)
1008
+ n = function(s) {
1009
+ return function(a) {
1010
+ try {
1011
+ return s(a);
1012
+ } catch (f) {
1013
+ m(e, e.Gb, f.message);
1014
+ }
1015
+ };
1016
+ }(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
1017
+ n = function(s) {
1018
+ return Ur(e, !1, arguments);
1019
+ }, e.g(t, "setTimeout", e.i(n, !1), y), n = function(s) {
1020
+ return Ur(e, !0, arguments);
1021
+ }, e.g(t, "setInterval", e.i(n, !1), y), n = function(s) {
1022
+ Fr(e, s);
1023
+ }, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(s) {
1024
+ Fr(e, s);
1025
+ }, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
1026
+ }
1027
+ T.Wb = 0;
1028
+ function Nn(e, t) {
1029
+ var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
1030
+ var s = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1031
+ if (a) {
1032
+ a = a.split(/\s*,\s*/);
1033
+ for (var f = 0; f < a.length; f++) {
1034
+ var g = a[f];
1035
+ n.test(g) || m(e, e.T, "Invalid function argument: " + g);
1036
+ }
1037
+ a = a.join(", ");
1038
+ }
1039
+ try {
1040
+ var I = Ce("(function(" + a + ") {" + s + "})", "function" + e.Wb++);
1041
+ } catch (O) {
1042
+ m(e, e.T, "Invalid code: " + O.message);
1043
+ }
1044
+ return I.body.length !== 1 && m(e, e.T, "Invalid code in function body"), Vt(e, I.body[0].la, e.N, "anonymous");
1045
+ };
1046
+ e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
1047
+ }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, V), e.Z.H = "Function", r = function(o, s) {
1048
+ var a = e.o[e.o.length - 1];
1049
+ a.U = this, a.B = o, a.F = [], s != null && (s instanceof j ? a.F = Zr(e, s) : m(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
1050
+ }, _(e, e.O, "apply", r), r = function(o) {
1051
+ var s = e.o[e.o.length - 1];
1052
+ s.U = this, s.B = o, s.F = [];
1053
+ for (var a = 1; a < arguments.length; a++)
1054
+ s.F.push(arguments[a]);
1055
+ s.eb = !1;
1056
+ }, _(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() {
1057
+ return String(this);
1058
+ }, _(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
1059
+ return this.valueOf();
1060
+ }, _(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
1061
+ }
1062
+ function Rn(e, t) {
1063
+ function n(o) {
1064
+ o != null || m(e, e.j, "Cannot convert '" + o + "' to object");
1065
+ }
1066
+ var r = function(o) {
1067
+ if (o == null)
1068
+ return ae(e) ? this : e.s(e.M);
1069
+ if (!(o instanceof j)) {
1070
+ var s = e.s(se(e, o));
1071
+ return s.data = o, s;
1072
+ }
1073
+ return o;
1074
+ };
1075
+ e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(o) {
1076
+ return n(o), oe(e, Object.getOwnPropertyNames(o instanceof j ? o.h : o));
1077
+ }, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
1078
+ return n(o), o instanceof j && (o = o.h), oe(e, Object.keys(o));
1079
+ }, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
1080
+ return o === null ? e.s(null) : (o instanceof j || m(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
1081
+ }, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, s, a) {
1082
+ return s = String(s), o instanceof j || m(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof j || m(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || m(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s, He, a.h), o;
1083
+ }, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, s) {
1084
+ if (o instanceof j || m(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), s = String(s), s in o.h) {
1085
+ var a = Object.getOwnPropertyDescriptor(o.h, s), f = o.V[s];
1086
+ return o = o.Y[s], s = e.s(e.M), f || o ? (e.g(s, "get", f), e.g(s, "set", o)) : (e.g(s, "value", a.value), e.g(s, "writable", a.writable)), e.g(s, "configurable", a.configurable), e.g(s, "enumerable", a.enumerable), s;
1087
+ }
1088
+ }, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), y), r = function(o) {
1089
+ return n(o), se(e, o);
1090
+ }, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
1091
+ return !!o && !o.preventExtensions;
1092
+ }, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
1093
+ return o instanceof j && (o.preventExtensions = !0), o;
1094
+ }, e.g(e.v, "preventExtensions", e.i(r, !1), y), _(e, e.v, "toString", j.prototype.toString), _(e, e.v, "toLocaleString", j.prototype.toString), _(e, e.v, "valueOf", j.prototype.valueOf), r = function(o) {
1095
+ return n(this), this instanceof j ? String(o) in this.h : this.hasOwnProperty(o);
1096
+ }, _(e, e.v, "hasOwnProperty", r), r = function(o) {
1097
+ return n(this), this instanceof j ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
1098
+ }, _(e, e.v, "propertyIsEnumerable", r), r = function(o) {
1099
+ for (; ; ) {
1100
+ if (o = se(e, o), !o)
1101
+ return !1;
1102
+ if (o === this)
1103
+ return !0;
1104
+ }
1105
+ }, _(e, e.v, "isPrototypeOf", r);
1106
+ }
1107
+ function Mn(e, t) {
1108
+ var n = function(r) {
1109
+ var o = ae(e) ? this : je(e), s = arguments[0];
1110
+ if (arguments.length === 1 && typeof s == "number")
1111
+ isNaN(Wt(s)) && m(e, e.ob, "Invalid array length: " + s), o.h.length = s;
1112
+ else {
1113
+ for (s = 0; s < arguments.length; s++)
1114
+ o.h[s] = arguments[s];
1115
+ o.h.length = s;
1116
+ }
1117
+ return o;
1118
+ };
1119
+ e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, y), n = function(r) {
1120
+ return r && r.H === "Array";
1121
+ }, e.g(e.qa, "isArray", e.i(n, !1), y), e.g(e.La, "length", 0, {
1122
+ configurable: !1,
1123
+ enumerable: !1,
1124
+ writable: !0
1125
+ }), 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(',');", "}", ");", "})();", "");
1126
+ }
1127
+ function Bn(e, t) {
1128
+ var n = function(r) {
1129
+ return r = arguments.length ? ce.String(r) : "", ae(e) ? (this.data = r, this) : r;
1130
+ };
1131
+ for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
1132
+ _(e, e.J, t[n], String.prototype[t[n]]);
1133
+ n = function(r, o, s) {
1134
+ o = e.R(o), s = e.R(s);
1135
+ try {
1136
+ return String(this).localeCompare(r, o, s);
1137
+ } catch (a) {
1138
+ m(e, e.D, "localeCompare: " + a.message);
1139
+ }
1140
+ }, _(e, e.J, "localeCompare", n), n = function(r, o, s) {
1141
+ var a = String(this);
1142
+ if (o = o ? Number(o) : void 0, L(e, r, e.I) && (r = r.data, _e(e, r, s), e.REGEXP_MODE === 2)) {
1143
+ if (ie)
1144
+ r = Fe(e, "string.split(separator, limit)", {
1145
+ string: a,
1146
+ separator: r,
1147
+ limit: o
1148
+ }, r, s), r !== Ee && s(oe(e, r));
1149
+ else {
1150
+ var f = e.ha(), g = Le(e, r, f, s);
1151
+ f.onmessage = function(I) {
1152
+ clearTimeout(g), s(oe(e, I.data));
1153
+ }, f.postMessage(["split", a, r, o]);
1154
+ }
1155
+ return;
1156
+ }
1157
+ r = a.split(r, o), s(oe(e, r));
1158
+ }, We(e, e.J, "split", n), n = function(r, o) {
1159
+ var s = String(this);
1160
+ if (r = L(e, r, e.I) ? r.data : new RegExp(r), _e(e, r, o), e.REGEXP_MODE === 2)
1161
+ if (ie)
1162
+ r = Fe(e, "string.match(regexp)", {
1163
+ string: s,
1164
+ regexp: r
1165
+ }, r, o), r !== Ee && o(r && oe(e, r));
1166
+ else {
1167
+ var a = e.ha(), f = Le(e, r, a, o);
1168
+ a.onmessage = function(g) {
1169
+ clearTimeout(f), o(g.data && oe(e, g.data));
1170
+ }, a.postMessage(["match", s, r]);
1171
+ }
1172
+ else
1173
+ r = s.match(r), o(r && oe(e, r));
1174
+ }, We(e, e.J, "match", n), n = function(r, o) {
1175
+ var s = String(this);
1176
+ if (L(e, r, e.I) ? r = r.data : r = new RegExp(r), _e(e, r, o), e.REGEXP_MODE === 2)
1177
+ if (ie)
1178
+ r = Fe(e, "string.search(regexp)", {
1179
+ string: s,
1180
+ regexp: r
1181
+ }, r, o), r !== Ee && o(r);
1182
+ else {
1183
+ var a = e.ha(), f = Le(e, r, a, o);
1184
+ a.onmessage = function(g) {
1185
+ clearTimeout(f), o(g.data);
1186
+ }, a.postMessage(["search", s, r]);
1187
+ }
1188
+ else
1189
+ o(s.search(r));
1190
+ }, We(e, e.J, "search", n), n = function(r, o, s) {
1191
+ var a = String(this);
1192
+ if (o = String(o), L(e, r, e.I) && (r = r.data, _e(e, r, s), e.REGEXP_MODE === 2)) {
1193
+ if (ie)
1194
+ r = Fe(e, "string.replace(substr, newSubstr)", {
1195
+ string: a,
1196
+ substr: r,
1197
+ newSubstr: o
1198
+ }, r, s), r !== Ee && s(r);
1199
+ else {
1200
+ var f = e.ha(), g = Le(e, r, f, s);
1201
+ f.onmessage = function(I) {
1202
+ clearTimeout(g), s(I.data);
1203
+ }, f.postMessage(["replace", a, r, o]);
1204
+ }
1205
+ return;
1206
+ }
1207
+ s(a.replace(r, o));
1208
+ }, We(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;", "};", "})();", "");
1209
+ }
1210
+ function Dn(e, t) {
1211
+ e.mb = e.i(function(n) {
1212
+ return n = ce.Boolean(n), ae(e) ? (this.data = n, this) : n;
1213
+ }, !0), e.g(t, "Boolean", e.mb, y);
1214
+ }
1215
+ function Un(e, t) {
1216
+ var n = function(r) {
1217
+ return r = arguments.length ? ce.Number(r) : 0, ae(e) ? (this.data = r, this) : r;
1218
+ };
1219
+ for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
1220
+ e.g(e.aa, t[n], Number[t[n]], Ue);
1221
+ n = function(r) {
1222
+ try {
1223
+ return Number(this).toExponential(r);
1224
+ } catch (o) {
1225
+ m(e, e.D, o.message);
1226
+ }
1227
+ }, _(e, e.aa, "toExponential", n), n = function(r) {
1228
+ try {
1229
+ return Number(this).toFixed(r);
1230
+ } catch (o) {
1231
+ m(e, e.D, o.message);
1232
+ }
1233
+ }, _(e, e.aa, "toFixed", n), n = function(r) {
1234
+ try {
1235
+ return Number(this).toPrecision(r);
1236
+ } catch (o) {
1237
+ m(e, e.D, o.message);
1238
+ }
1239
+ }, _(e, e.aa, "toPrecision", n), n = function(r) {
1240
+ try {
1241
+ return Number(this).toString(r);
1242
+ } catch (o) {
1243
+ m(e, e.D, o.message);
1244
+ }
1245
+ }, _(e, e.aa, "toString", n), n = function(r, o) {
1246
+ r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
1247
+ try {
1248
+ return Number(this).toLocaleString(r, o);
1249
+ } catch (s) {
1250
+ m(e, e.D, "toLocaleString: " + s.message);
1251
+ }
1252
+ }, _(e, e.aa, "toLocaleString", n);
1253
+ }
1254
+ function Fn(e, t) {
1255
+ var n = function(o, s) {
1256
+ if (!ae(e))
1257
+ return ce.Date();
1258
+ var a = [null].concat(Array.from(arguments));
1259
+ return this.data = new (Function.prototype.bind.apply(ce.Date, a))(), this;
1260
+ };
1261
+ e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, y), e.g(e.$, "now", e.i(Date.now, !1), y), e.g(e.$, "parse", e.i(Date.parse, !1), y), e.g(e.$, "UTC", e.i(Date.UTC, !1), y), 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(" ");
1262
+ for (var r = 0; r < t.length; r++)
1263
+ n = function(o) {
1264
+ return function(s) {
1265
+ var a = this.data;
1266
+ a instanceof Date || m(e, e.j, o + " not called on a Date");
1267
+ for (var f = [], g = 0; g < arguments.length; g++)
1268
+ f[g] = e.R(arguments[g]);
1269
+ return a[o].apply(a, f);
1270
+ };
1271
+ }(t[r]), _(e, e.$, t[r], n);
1272
+ }
1273
+ function _n(e, t) {
1274
+ var n = function(r, o) {
1275
+ if (ae(e))
1276
+ var s = this;
1277
+ else {
1278
+ if (o === void 0 && L(e, r, e.I))
1279
+ return r;
1280
+ s = e.s(e.Ma);
1281
+ }
1282
+ r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || m(e, e.T, "Invalid regexp flag: " + o);
1283
+ try {
1284
+ var a = new ce.RegExp(r, o);
1285
+ } catch (f) {
1286
+ m(e, e.T, f.message);
1287
+ }
1288
+ return $t(e, s, a), s;
1289
+ };
1290
+ e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, V), e.g(e.I.h.prototype, "ignoreCase", void 0, V), e.g(e.I.h.prototype, "multiline", void 0, V), e.g(e.I.h.prototype, "source", "(?:)", V), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
1291
+ function s(O) {
1292
+ if (O) {
1293
+ var A = oe(e, O);
1294
+ return e.g(A, "index", O.index), e.g(A, "input", O.input), A;
1295
+ }
1296
+ return null;
1297
+ }
1298
+ var a = this.data;
1299
+ if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")), _e(e, a, o), e.REGEXP_MODE === 2)
1300
+ if (ie)
1301
+ r = Fe(e, "regexp.exec(string)", {
1302
+ string: r,
1303
+ regexp: a
1304
+ }, a, o), r !== Ee && (e.g(this, "lastIndex", a.lastIndex), o(s(r)));
1305
+ else {
1306
+ var f = e.ha(), g = Le(e, a, f, o), I = this;
1307
+ f.onmessage = function(O) {
1308
+ clearTimeout(g), e.g(I, "lastIndex", O.data[1]), o(s(O.data[0]));
1309
+ }, f.postMessage(["exec", a, a.lastIndex, r]);
1310
+ }
1311
+ else
1312
+ r = a.exec(r), e.g(this, "lastIndex", a.lastIndex), o(s(r));
1313
+ }, We(e, e.I, "exec", n);
1314
+ }
1315
+ function Ln(e, t) {
1316
+ function n(r) {
1317
+ var o = e.i(function(s) {
1318
+ var a = ae(e) ? this : e.Aa(o);
1319
+ return Ut(e, a, s), a;
1320
+ }, !0);
1321
+ return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
1322
+ }
1323
+ e.D = e.i(function(r) {
1324
+ var o = ae(e) ? this : e.Aa(e.D);
1325
+ return Ut(e, o, r), o;
1326
+ }, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
1327
+ }
1328
+ function Wn(e, t) {
1329
+ var n = e.s(e.M);
1330
+ e.g(t, "Math", n, y);
1331
+ var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
1332
+ for (t = 0; t < r.length; t++)
1333
+ e.g(n, r[t], Math[r[t]], V);
1334
+ 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++)
1335
+ e.g(n, r[t], e.i(Math[r[t]], !1), y);
1336
+ }
1337
+ function $n(e, t) {
1338
+ var n = e.s(e.M);
1339
+ e.g(t, "JSON", n, y), t = function(r) {
1340
+ try {
1341
+ var o = JSON.parse(String(r));
1342
+ } catch (s) {
1343
+ m(e, e.T, s.message);
1344
+ }
1345
+ return e.Ia(o);
1346
+ }, e.g(n, "parse", e.i(t, !1)), t = function(r, o, s) {
1347
+ o && o.H === "Function" ? m(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = Zr(e, o), o = o.filter(function(f) {
1348
+ return typeof f == "string" || typeof f == "number";
1349
+ })) : o = null, typeof s != "string" && typeof s != "number" && (s = void 0), r = e.R(r);
1350
+ try {
1351
+ var a = JSON.stringify(r, o, s);
1352
+ } catch (f) {
1353
+ m(e, e.j, f.message);
1354
+ }
1355
+ return a;
1356
+ }, e.g(n, "stringify", e.i(t, !1));
1357
+ }
1358
+ function L(e, t, n) {
1359
+ if (t == null || !n)
1360
+ return !1;
1361
+ if (n = n.h.prototype, t === n)
1362
+ return !0;
1363
+ for (t = se(e, t); t; ) {
1364
+ if (t === n)
1365
+ return !0;
1366
+ t = t.xa;
1367
+ }
1368
+ return !1;
1369
+ }
1370
+ function $t(e, t, n) {
1371
+ t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, V), e.g(t, "global", n.global, V), e.g(t, "ignoreCase", n.ignoreCase, V), e.g(t, "multiline", n.multiline, V);
1372
+ }
1373
+ function Ut(e, t, n) {
1374
+ n && e.g(t, "message", String(n), y), n = [];
1375
+ for (var r = e.o.length - 1; 0 <= r; r--) {
1376
+ var o = e.o[r], s = o.node;
1377
+ s.type === "CallExpression" && (o = o.U) && n.length && (n[n.length - 1].Ob = e.G(o, "name")), !s.X || n.length && s.type !== "CallExpression" || n.push({
1378
+ Nb: s.X
1379
+ });
1380
+ }
1381
+ for (r = String(e.G(t, "name")), s = String(e.G(t, "message")), s = r + ": " + s + `
1382
+ `, r = 0; r < n.length; r++) {
1383
+ var a = n[r].Nb;
1384
+ o = n[r].Ob, a = a.source + ":" + a.start.line + ":" + a.start.ab, s = o ? s + (" at " + o + " (" + a + `)
1385
+ `) : s + (" at " + a + `
1386
+ `);
1387
+ }
1388
+ e.g(t, "stack", s.trim(), y);
1389
+ }
1390
+ T.ha = function() {
1391
+ var e = this.ha.Mb;
1392
+ return e || (e = new Blob([Tn.join(`
1393
+ `)], {
1394
+ type: "application/javascript"
1395
+ }), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
1396
+ };
1397
+ function Fe(e, t, n, r, o) {
1398
+ var s = {
1399
+ timeout: e.REGEXP_THREAD_TIMEOUT
1400
+ };
1401
+ try {
1402
+ return ie.runInNewContext(t, n, s);
1403
+ } catch {
1404
+ o(null), m(e, e.D, "RegExp Timeout: " + r);
1405
+ }
1406
+ return Ee;
1407
+ }
1408
+ function _e(e, t, n) {
1409
+ if (e.REGEXP_MODE === 0)
1410
+ var r = !1;
1411
+ else if (e.REGEXP_MODE === 1)
1412
+ r = !0;
1413
+ else if (ie)
1414
+ r = !0;
1415
+ else if (typeof Worker == "function" && typeof URL == "function")
1416
+ r = !0;
1417
+ else if (typeof require == "function") {
1418
+ try {
1419
+ ie = require("vm");
1420
+ } catch {
1421
+ }
1422
+ r = !!ie;
1423
+ } else
1424
+ r = !1;
1425
+ r || (n(null), m(e, e.D, "Regular expressions not supported: " + t));
1426
+ }
1427
+ function Le(e, t, n, r) {
1428
+ return setTimeout(function() {
1429
+ n.terminate(), r(null);
1430
+ try {
1431
+ m(e, e.D, "RegExp Timeout: " + t);
1432
+ } catch {
1433
+ }
1434
+ }, e.REGEXP_THREAD_TIMEOUT);
1435
+ }
1436
+ T.Aa = function(e) {
1437
+ return this.s(e && e.h.prototype);
1438
+ };
1439
+ T.s = function(e) {
1440
+ if (typeof e != "object")
1441
+ throw Error("Non object prototype");
1442
+ return e = new j(e), L(this, e, this.D) && (e.H = "Error"), e;
1443
+ };
1444
+ function je(e) {
1445
+ var t = e.s(e.La);
1446
+ return e.g(t, "length", 0, {
1447
+ configurable: !1,
1448
+ enumerable: !1,
1449
+ writable: !0
1450
+ }), t.H = "Array", t;
1451
+ }
1452
+ function Gt(e, t, n) {
1453
+ var r = e.s(e.Z);
1454
+ return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, V), r.H = "Function", r;
1455
+ }
1456
+ function Vt(e, t, n, r) {
1457
+ var o = Gt(e, t.oa.length, !0);
1458
+ return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", V), o;
1459
+ }
1460
+ T.i = function(e, t) {
1461
+ return t = Gt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, V), t;
1462
+ };
1463
+ T.ub = function(e) {
1464
+ var t = Gt(this, e.length, !0);
1465
+ return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, V), t;
1466
+ };
1467
+ T.Ia = function(e) {
1468
+ if (e instanceof j)
1469
+ throw Error("Object is already pseudo");
1470
+ if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
1471
+ return e;
1472
+ if (e instanceof RegExp) {
1473
+ var t = this.s(this.Ma);
1474
+ return $t(this, t, e), t;
1475
+ }
1476
+ if (e instanceof Date)
1477
+ return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
1478
+ if (typeof e == "function") {
1479
+ var n = this;
1480
+ return t = Object.getOwnPropertyDescriptor(e, "prototype"), this.i(function() {
1481
+ var o = Array.prototype.slice.call(arguments).map(function(s) {
1482
+ return n.R(s);
1483
+ });
1484
+ return o = e.apply(n, o), n.Ia(o);
1485
+ }, !!t);
1486
+ }
1487
+ if (Array.isArray(e)) {
1488
+ t = je(this);
1489
+ for (var r = 0; r < e.length; r++)
1490
+ r in e && this.g(t, r, this.Ia(e[r]));
1491
+ return t;
1492
+ }
1493
+ t = this.s(this.M);
1494
+ for (r in e)
1495
+ this.g(t, r, this.Ia(e[r]));
1496
+ return t;
1497
+ };
1498
+ T.R = function(e, t) {
1499
+ if (typeof e != "object" && typeof e != "function" || e === null)
1500
+ return e;
1501
+ if (!(e instanceof j))
1502
+ throw Error("Object is not pseudo");
1503
+ if (L(this, e, this.I))
1504
+ return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
1505
+ if (L(this, e, this.$))
1506
+ return new Date(e.data.valueOf());
1507
+ t = t || {
1508
+ hb: [],
1509
+ Sa: []
1510
+ };
1511
+ var n = t.hb.indexOf(e);
1512
+ if (n !== -1)
1513
+ return t.Sa[n];
1514
+ if (t.hb.push(e), L(this, e, this.qa)) {
1515
+ n = [], t.Sa.push(n);
1516
+ for (var r = this.G(e, "length"), o = 0; o < r; o++)
1517
+ st(this, e, o) && (n[o] = this.R(this.G(e, o), t));
1518
+ } else
1519
+ for (r in n = {}, t.Sa.push(n), e.h)
1520
+ o = this.R(e.h[r], t), Object.defineProperty(n, r, {
1521
+ value: o,
1522
+ writable: !0,
1523
+ enumerable: !0,
1524
+ configurable: !0
1525
+ });
1526
+ return t.hb.pop(), t.Sa.pop(), n;
1527
+ };
1528
+ function oe(e, t) {
1529
+ for (var n = je(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
1530
+ e.g(n, r[o], t[r[o]]);
1531
+ return n;
1532
+ }
1533
+ function Zr(e, t) {
1534
+ var n = [], r;
1535
+ for (r in t.h)
1536
+ n[r] = e.G(t, r);
1537
+ return n.length = Wt(e.G(t, "length")) || 0, n;
1538
+ }
1539
+ function se(e, t) {
1540
+ switch (typeof t) {
1541
+ case "number":
1542
+ return e.aa.h.prototype;
1543
+ case "boolean":
1544
+ return e.mb.h.prototype;
1545
+ case "string":
1546
+ return e.J.h.prototype;
1547
+ }
1548
+ return t ? t.xa : null;
1549
+ }
1550
+ T.G = function(e, t) {
1551
+ if (this.P)
1552
+ throw Error("Getter not supported in that context");
1553
+ if (t = String(t), e != null || m(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof j))
1554
+ throw TypeError("Expecting native value or pseudo object");
1555
+ if (t === "length") {
1556
+ if (L(this, e, this.J))
1557
+ return String(e).length;
1558
+ } else if (64 > t.charCodeAt(0) && L(this, e, this.J)) {
1559
+ var n = Ge(t);
1560
+ if (!isNaN(n) && n < String(e).length)
1561
+ return String(e)[n];
1562
+ }
1563
+ do
1564
+ if (e.h && t in e.h)
1565
+ return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
1566
+ while (e = se(this, e));
1567
+ };
1568
+ function st(e, t, n) {
1569
+ if (!(t instanceof j))
1570
+ throw TypeError("Primitive data type has no properties");
1571
+ if (n = String(n), n === "length" && L(e, t, e.J))
1572
+ return !0;
1573
+ if (L(e, t, e.J)) {
1574
+ var r = Ge(n);
1575
+ if (!isNaN(r) && r < String(t).length)
1576
+ return !0;
1577
+ }
1578
+ do
1579
+ if (t.h && n in t.h)
1580
+ return !0;
1581
+ while (t = se(e, t));
1582
+ return !1;
1583
+ }
1584
+ T.g = function(e, t, n, r) {
1585
+ if (this.Ka)
1586
+ throw Error("Setter not supported in that context");
1587
+ if (t = String(t), e != null || m(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof j))
1588
+ throw TypeError("Expecting native value or pseudo object");
1589
+ r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && m(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
1590
+ var o = !this.o || Ht(this).S;
1591
+ if (e instanceof j) {
1592
+ if (L(this, e, this.J)) {
1593
+ var s = Ge(t);
1594
+ if (t === "length" || !isNaN(s) && s < String(e).length) {
1595
+ o && m(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
1596
+ return;
1597
+ }
1598
+ }
1599
+ if (e.H === "Array")
1600
+ if (s = e.h.length, t === "length") {
1601
+ if (r) {
1602
+ if (!("value" in r))
1603
+ return;
1604
+ n = r.value;
1605
+ }
1606
+ if (n = Wt(n), isNaN(n) && m(this, this.ob, "Invalid array length"), n < s)
1607
+ for (a in e.h) {
1608
+ var a = Ge(a);
1609
+ !isNaN(a) && n <= a && delete e.h[a];
1610
+ }
1611
+ } else
1612
+ isNaN(a = Ge(t)) || (e.h.length = Math.max(s, a + 1));
1613
+ if (!e.preventExtensions || t in e.h)
1614
+ if (r) {
1615
+ o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== He && (o.value = n, delete e.V[t], delete e.Y[t]);
1616
+ try {
1617
+ Object.defineProperty(e.h, t, o);
1618
+ } catch {
1619
+ m(this, this.j, "Cannot redefine property: " + t);
1620
+ }
1621
+ "get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
1622
+ } else {
1623
+ if (n === He)
1624
+ throw ReferenceError("Value not specified");
1625
+ for (r = e; !(t in r.h); )
1626
+ if (r = se(this, r), !r) {
1627
+ r = e;
1628
+ break;
1629
+ }
1630
+ if (r.Y && r.Y[t])
1631
+ return this.Ka = !0, r.Y[t];
1632
+ if (r.V && r.V[t])
1633
+ o && m(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
1634
+ else
1635
+ try {
1636
+ e.h[t] = n;
1637
+ } catch {
1638
+ o && m(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
1639
+ }
1640
+ }
1641
+ else
1642
+ o && m(this, this.j, "Can't add property '" + t + "', object is not extensible");
1643
+ } else
1644
+ o && m(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
1645
+ };
1646
+ T.g.ac = function() {
1647
+ throw Error("Placeholder getter");
1648
+ };
1649
+ T.g.bc = function() {
1650
+ throw Error("Placeholder setter");
1651
+ };
1652
+ function _(e, t, n, r) {
1653
+ e.g(t.h.prototype, n, e.i(r, !1), y);
1654
+ }
1655
+ function We(e, t, n, r) {
1656
+ e.g(t.h.prototype, n, e.ub(r), y);
1657
+ }
1658
+ function Ht(e) {
1659
+ if (e = e.o[e.o.length - 1].scope, !e)
1660
+ throw Error("No scope found");
1661
+ return e;
1662
+ }
1663
+ function Ft(e, t, n) {
1664
+ var r = !1;
1665
+ if (n && n.S)
1666
+ r = !0;
1667
+ else {
1668
+ var o = t.body && t.body[0];
1669
+ o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
1670
+ }
1671
+ return o = e.s(null), r = new qr(n, r, o), n || Pn(e, r.object), Xe(e, t, r), r;
1672
+ }
1673
+ function Xt(e, t, n) {
1674
+ if (!t)
1675
+ throw Error("parentScope required");
1676
+ return e = n || e.s(null), new qr(t, t.S, e);
1677
+ }
1678
+ function Jt(e, t) {
1679
+ for (var n = Ht(e); n && n !== e.N; ) {
1680
+ if (t in n.object.h)
1681
+ return n.object.h[t];
1682
+ n = n.Va;
1683
+ }
1684
+ if (n === e.N && st(e, n.object, t))
1685
+ return e.G(n.object, t);
1686
+ n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || m(e, e.pb, t + " is not defined");
1687
+ }
1688
+ function zr(e, t, n) {
1689
+ for (var r = Ht(e), o = r.S; r && r !== e.N; ) {
1690
+ if (t in r.object.h) {
1691
+ try {
1692
+ r.object.h[t] = n;
1693
+ } catch {
1694
+ o && m(e, e.j, "Cannot assign to read only variable '" + t + "'");
1695
+ }
1696
+ return;
1697
+ }
1698
+ r = r.Va;
1699
+ }
1700
+ if (r === e.N && (!o || st(e, r.object, t)))
1701
+ return e.g(r.object, t, n);
1702
+ m(e, e.pb, t + " is not defined");
1703
+ }
1704
+ function Xe(e, t, n) {
1705
+ if (t.jb)
1706
+ var r = t.jb;
1707
+ else {
1708
+ switch (r = /* @__PURE__ */ Object.create(null), t.type) {
1709
+ case "VariableDeclaration":
1710
+ for (var o = 0; o < t.fa.length; o++)
1711
+ r[t.fa[o].id.name] = !0;
1712
+ break;
1713
+ case "FunctionDeclaration":
1714
+ r[t.id.name] = t;
1715
+ break;
1716
+ case "BlockStatement":
1717
+ case "CatchClause":
1718
+ case "DoWhileStatement":
1719
+ case "ForInStatement":
1720
+ case "ForStatement":
1721
+ case "IfStatement":
1722
+ case "LabeledStatement":
1723
+ case "Program":
1724
+ case "SwitchCase":
1725
+ case "SwitchStatement":
1726
+ case "TryStatement":
1727
+ case "WithStatement":
1728
+ case "WhileStatement":
1729
+ var s = t.constructor, a;
1730
+ for (a in t)
1731
+ if (a !== "loc") {
1732
+ var f = t[a];
1733
+ if (f && typeof f == "object") {
1734
+ if (Array.isArray(f)) {
1735
+ for (o = 0; o < f.length; o++)
1736
+ if (f[o] && f[o].constructor === s) {
1737
+ var g = Xe(e, f[o], n);
1738
+ for (a in g)
1739
+ r[a] = g[a];
1740
+ }
1741
+ } else if (f.constructor === s)
1742
+ for (a in g = Xe(e, f, n), g)
1743
+ r[a] = g[a];
1744
+ }
1745
+ }
1746
+ }
1747
+ t.jb = r;
1748
+ }
1749
+ for (a in r)
1750
+ r[a] === !0 ? e.g(n.object, a, void 0, Br) : e.g(n.object, a, Vt(e, r[a], n), Br);
1751
+ return r;
1752
+ }
1753
+ function ae(e) {
1754
+ return e.o[e.o.length - 1].isConstructor;
1755
+ }
1756
+ function Yt(e, t) {
1757
+ return t[0] === Oe ? Jt(e, t[1]) : e.G(t[0], t[1]);
1758
+ }
1759
+ function Kt(e, t, n) {
1760
+ return t[0] === Oe ? zr(e, t[1], n) : e.g(t[0], t[1], n);
1761
+ }
1762
+ function m(e, t, n) {
1763
+ throw e.N ? (n !== void 0 && t instanceof j && (t = e.Aa(t), Ut(e, t, n)), Je(e, 4, t), Kr) : n === void 0 ? t : n;
1764
+ }
1765
+ function Je(e, t, n, r) {
1766
+ if (t === 0)
1767
+ throw TypeError("Should not unwind for NORMAL completions");
1768
+ var o = e.o;
1769
+ e:
1770
+ for (; 0 < o.length; o.pop()) {
1771
+ var s = o[o.length - 1];
1772
+ switch (s.node.type) {
1773
+ case "TryStatement":
1774
+ s.ea = {
1775
+ type: t,
1776
+ value: n,
1777
+ label: r
1778
+ };
1779
+ return;
1780
+ case "CallExpression":
1781
+ case "NewExpression":
1782
+ if (t === 3) {
1783
+ s.value = n;
1784
+ return;
1785
+ }
1786
+ if (t !== 4)
1787
+ throw Error("Unsynatctic break/continue not rejected by Acorn");
1788
+ break;
1789
+ case "Program":
1790
+ s.done = !0;
1791
+ break e;
1792
+ }
1793
+ if (t === 1) {
1794
+ if (r ? s.labels && s.labels.indexOf(r) !== -1 : s.W || s.Zb) {
1795
+ o.pop();
1796
+ return;
1797
+ }
1798
+ } else if (t === 2 && (r ? s.labels && s.labels.indexOf(r) !== -1 : s.W))
1799
+ return;
1800
+ }
1801
+ throw L(e, n, e.D) ? (t = {
1802
+ EvalError,
1803
+ RangeError,
1804
+ ReferenceError,
1805
+ SyntaxError,
1806
+ TypeError,
1807
+ URIError
1808
+ }, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
1809
+ }
1810
+ function G(e, t) {
1811
+ switch (t.type) {
1812
+ case "ArrayExpression":
1813
+ return "[...]";
1814
+ case "BinaryExpression":
1815
+ case "LogicalExpression":
1816
+ return G(e, t.left) + " " + t.operator + " " + G(e, t.right);
1817
+ case "CallExpression":
1818
+ return G(e, t.callee) + "(...)";
1819
+ case "ConditionalExpression":
1820
+ return G(e, t.test) + " ? " + G(e, t.da) + " : " + G(e, t.alternate);
1821
+ case "Identifier":
1822
+ return t.name;
1823
+ case "Literal":
1824
+ return t.raw;
1825
+ case "MemberExpression":
1826
+ var n = G(e, t.object);
1827
+ return e = G(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
1828
+ case "NewExpression":
1829
+ return "new " + G(e, t.callee) + "(...)";
1830
+ case "ObjectExpression":
1831
+ return "{...}";
1832
+ case "ThisExpression":
1833
+ return "this";
1834
+ case "UnaryExpression":
1835
+ return t.operator + " " + G(e, t.K);
1836
+ case "UpdateExpression":
1837
+ return n = G(e, t.K), t.prefix ? t.operator + n : n + t.operator;
1838
+ }
1839
+ return "???";
1840
+ }
1841
+ function Ur(e, t, n) {
1842
+ var r = e.o[e.o.length - 1], o = Array.from(n), s = o.shift();
1843
+ n = Math.max(Number(o.shift() || 0), 0);
1844
+ var a = e.ya();
1845
+ if (s instanceof j && s.H === "Function") {
1846
+ var f = s;
1847
+ a.type = "CallExpression", r = r.scope;
1848
+ } else {
1849
+ try {
1850
+ var g = Ce(String(s), "taskCode" + e.ic++);
1851
+ } catch (I) {
1852
+ m(e, e.T, "Invalid code: " + I.message);
1853
+ }
1854
+ a.type = "EvalProgram_", a.body = g.body, r = r.node.arguments[0], it(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
1855
+ }
1856
+ return t = new Gn(f, o, r, a, t ? n : -1), Qr(e, t, n), t.Db;
1857
+ }
1858
+ function Qr(e, t, n) {
1859
+ t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
1860
+ return r.time - o.time;
1861
+ });
1862
+ }
1863
+ function Fr(e, t) {
1864
+ for (var n = 0; n < e.ca.length; n++)
1865
+ if (e.ca[n].Db == t) {
1866
+ e.ca.splice(n, 1);
1867
+ break;
1868
+ }
1869
+ }
1870
+ function Ye(e, t, n) {
1871
+ if (!e.P)
1872
+ throw Error("Unexpected call to createGetter");
1873
+ e.P = !1, n = Array.isArray(n) ? n[0] : n;
1874
+ var r = e.ya();
1875
+ return r.type = "CallExpression", e = new v(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
1876
+ }
1877
+ function Zt(e, t, n, r) {
1878
+ if (!e.Ka)
1879
+ throw Error("Unexpected call to createSetter");
1880
+ e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
1881
+ var o = e.ya();
1882
+ return o.type = "CallExpression", e = new v(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
1883
+ }
1884
+ function Pt(e, t) {
1885
+ return t == null ? e.Na : t instanceof j ? t : (e = e.s(se(e, t)), e.data = t, e);
1886
+ }
1887
+ T.Xb = function() {
1888
+ return this.N;
1889
+ };
1890
+ T.Yb = function() {
1891
+ return this.o;
1892
+ };
1893
+ T.ec = function(e) {
1894
+ this.o = e;
1895
+ };
1896
+ function v(e, t) {
1897
+ this.node = e, this.scope = t;
1898
+ }
1899
+ function qr(e, t, n) {
1900
+ this.Va = e, this.S = t, this.object = n;
1901
+ }
1902
+ function j(e) {
1903
+ this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
1904
+ }
1905
+ T = j.prototype;
1906
+ T.xa = null;
1907
+ T.H = "Object";
1908
+ T.data = null;
1909
+ T.toString = function() {
1910
+ if (!$e)
1911
+ return "[object Interpreter.Object]";
1912
+ if (!(this instanceof j))
1913
+ return String(this);
1914
+ if (this.H === "Array") {
1915
+ var e = Dr;
1916
+ e.push(this);
1917
+ try {
1918
+ var t = [], n = this.h.length, r = !1;
1919
+ 1024 < n && (n = 1e3, r = !0);
1920
+ for (var o = 0; o < n; o++) {
1921
+ var s = this.h[o];
1922
+ t[o] = s instanceof j && e.indexOf(s) !== -1 ? "..." : s;
1923
+ }
1924
+ r && t.push("...");
1925
+ } finally {
1926
+ e.pop();
1927
+ }
1928
+ return t.join(",");
1929
+ }
1930
+ if (this.H === "Error") {
1931
+ if (e = Dr, e.indexOf(this) !== -1)
1932
+ return "[object Error]";
1933
+ n = this;
1934
+ do
1935
+ if ("name" in n.h) {
1936
+ t = n.h.name;
1937
+ break;
1938
+ }
1939
+ while (n = n.xa);
1940
+ n = this;
1941
+ do
1942
+ if ("message" in n.h) {
1943
+ r = n.h.message;
1944
+ break;
1945
+ }
1946
+ while (n = n.xa);
1947
+ e.push(this);
1948
+ try {
1949
+ t = t && String(t), r = r && String(r);
1950
+ } finally {
1951
+ e.pop();
1952
+ }
1953
+ return r ? t + ": " + r : String(t);
1954
+ }
1955
+ return this.data !== null ? String(this.data) : "[object " + this.H + "]";
1956
+ };
1957
+ T.valueOf = function() {
1958
+ return !$e || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
1959
+ };
1960
+ function Gn(e, t, n, r, o) {
1961
+ this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Vn, this.time = 0;
1962
+ }
1963
+ var Vn = 0;
1964
+ h.prototype.stepArrayExpression = function(e, t, n) {
1965
+ n = n.elements;
1966
+ var r = t.A || 0;
1967
+ for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = je(this), t.Oa.h.length = n.length); r < n.length; ) {
1968
+ if (n[r])
1969
+ return t.A = r, new v(n[r], t.scope);
1970
+ r++;
1971
+ }
1972
+ e.pop(), e[e.length - 1].value = t.Oa;
1973
+ };
1974
+ h.prototype.stepAssignmentExpression = function(e, t, n) {
1975
+ if (!t.ja)
1976
+ return t.ja = !0, t = new v(n.left, t.scope), t.sa = !0, t;
1977
+ if (!t.Da)
1978
+ return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Yt(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ye(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new v(n.right, t.scope));
1979
+ if (t.ta)
1980
+ e.pop(), e[e.length - 1].value = t.ib;
1981
+ else {
1982
+ var r = t.ma, o = t.value;
1983
+ switch (n.operator) {
1984
+ case "=":
1985
+ r = o;
1986
+ break;
1987
+ case "+=":
1988
+ r += o;
1989
+ break;
1990
+ case "-=":
1991
+ r -= o;
1992
+ break;
1993
+ case "*=":
1994
+ r *= o;
1995
+ break;
1996
+ case "/=":
1997
+ r /= o;
1998
+ break;
1999
+ case "%=":
2000
+ r %= o;
2001
+ break;
2002
+ case "<<=":
2003
+ r <<= o;
2004
+ break;
2005
+ case ">>=":
2006
+ r >>= o;
2007
+ break;
2008
+ case ">>>=":
2009
+ r >>>= o;
2010
+ break;
2011
+ case "&=":
2012
+ r &= o;
2013
+ break;
2014
+ case "^=":
2015
+ r ^= o;
2016
+ break;
2017
+ case "|=":
2018
+ r |= o;
2019
+ break;
2020
+ default:
2021
+ throw SyntaxError("Unknown assignment expression: " + n.operator);
2022
+ }
2023
+ if (n = Kt(this, t.Fa, r))
2024
+ return t.ta = !0, t.ib = r, Zt(this, n, t.Fa, r);
2025
+ e.pop(), e[e.length - 1].value = r;
2026
+ }
2027
+ };
2028
+ h.prototype.stepBinaryExpression = function(e, t, n) {
2029
+ if (!t.ja)
2030
+ return t.ja = !0, new v(n.left, t.scope);
2031
+ if (!t.Da)
2032
+ return t.Da = !0, t.ma = t.value, new v(n.right, t.scope);
2033
+ e.pop();
2034
+ var r = t.ma;
2035
+ switch (t = t.value, n.operator) {
2036
+ case "==":
2037
+ n = r == t;
2038
+ break;
2039
+ case "!=":
2040
+ n = r != t;
2041
+ break;
2042
+ case "===":
2043
+ n = r === t;
2044
+ break;
2045
+ case "!==":
2046
+ n = r !== t;
2047
+ break;
2048
+ case ">":
2049
+ n = r > t;
2050
+ break;
2051
+ case ">=":
2052
+ n = r >= t;
2053
+ break;
2054
+ case "<":
2055
+ n = r < t;
2056
+ break;
2057
+ case "<=":
2058
+ n = r <= t;
2059
+ break;
2060
+ case "+":
2061
+ n = r + t;
2062
+ break;
2063
+ case "-":
2064
+ n = r - t;
2065
+ break;
2066
+ case "*":
2067
+ n = r * t;
2068
+ break;
2069
+ case "/":
2070
+ n = r / t;
2071
+ break;
2072
+ case "%":
2073
+ n = r % t;
2074
+ break;
2075
+ case "&":
2076
+ n = r & t;
2077
+ break;
2078
+ case "|":
2079
+ n = r | t;
2080
+ break;
2081
+ case "^":
2082
+ n = r ^ t;
2083
+ break;
2084
+ case "<<":
2085
+ n = r << t;
2086
+ break;
2087
+ case ">>":
2088
+ n = r >> t;
2089
+ break;
2090
+ case ">>>":
2091
+ n = r >>> t;
2092
+ break;
2093
+ case "in":
2094
+ t instanceof j || m(this, this.j, "'in' expects an object, not '" + t + "'"), n = st(this, t, r);
2095
+ break;
2096
+ case "instanceof":
2097
+ L(this, t, this.O) || m(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof j ? L(this, r, t) : !1;
2098
+ break;
2099
+ default:
2100
+ throw SyntaxError("Unknown binary operator: " + n.operator);
2101
+ }
2102
+ e[e.length - 1].value = n;
2103
+ };
2104
+ h.prototype.stepBlockStatement = function(e, t, n) {
2105
+ var r = t.A || 0;
2106
+ if (n = n.body[r])
2107
+ return t.A = r + 1, new v(n, t.scope);
2108
+ e.pop();
2109
+ };
2110
+ h.prototype.stepBreakStatement = function(e, t, n) {
2111
+ Je(this, 1, void 0, n.label && n.label.name);
2112
+ };
2113
+ h.prototype.Hb = 0;
2114
+ h.prototype.stepCallExpression = function(e, t, n) {
2115
+ if (!t.ia) {
2116
+ t.ia = 1;
2117
+ var r = new v(n.callee, t.scope);
2118
+ return r.sa = !0, r;
2119
+ }
2120
+ if (t.ia === 1) {
2121
+ t.ia = 2;
2122
+ var o = t.value;
2123
+ if (Array.isArray(o)) {
2124
+ if (t.U = Yt(this, o), o[0] === Oe ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
2125
+ return t.ia = 1, Ye(this, o, t.value);
2126
+ } else
2127
+ t.U = o;
2128
+ t.F = [], t.A = 0;
2129
+ }
2130
+ if (o = t.U, !t.Qa) {
2131
+ if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
2132
+ return new v(n.arguments[t.A++], t.scope);
2133
+ if (n.type === "NewExpression") {
2134
+ if (o instanceof j && !o.Ab || m(this, this.j, G(this, n.callee) + " is not a constructor"), o === this.qa)
2135
+ t.B = je(this);
2136
+ else {
2137
+ var s = o.h.prototype;
2138
+ (typeof s != "object" || s === null) && (s = this.M), t.B = this.s(s);
2139
+ }
2140
+ t.isConstructor = !0;
2141
+ }
2142
+ t.Qa = !0;
2143
+ }
2144
+ if (t.eb)
2145
+ e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
2146
+ else {
2147
+ if (t.eb = !0, o instanceof j || m(this, this.j, G(this, n.callee) + " is not a function"), e = o.node) {
2148
+ for (n = Ft(this, e.body, o.Va), r = je(this), o = 0; o < t.F.length; o++)
2149
+ this.g(r, o, t.F[o]);
2150
+ for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
2151
+ this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
2152
+ return n.S || (t.B = Pt(this, t.B)), this.g(n.object, "this", t.B, Lt), t.value = void 0, new v(e.body, n);
2153
+ }
2154
+ if (o.eval)
2155
+ if (o = t.F[0], typeof o != "string")
2156
+ t.value = o;
2157
+ else {
2158
+ try {
2159
+ r = Ce(String(o), "eval" + this.Hb++);
2160
+ } catch (f) {
2161
+ m(this, this.T, "Invalid code: " + f.message);
2162
+ }
2163
+ return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, it(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Ft(this, r, n) : Xe(this, r, n), this.value = void 0, new v(o, n);
2164
+ }
2165
+ else if (o.Ta)
2166
+ t.scope.S || (t.B = Pt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
2167
+ else if (o.Za) {
2168
+ var a = this;
2169
+ r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(f) {
2170
+ t.value = f, a.za = !1;
2171
+ }), this.za = !0, t.scope.S || (t.B = Pt(this, t.B)), o.Za.apply(t.B, r);
2172
+ } else
2173
+ m(this, this.j, G(this, n.callee) + " is not callable");
2174
+ }
2175
+ };
2176
+ h.prototype.stepConditionalExpression = function(e, t, n) {
2177
+ var r = t.na || 0;
2178
+ if (r === 0)
2179
+ return t.na = 1, new v(n.test, t.scope);
2180
+ if (r === 1) {
2181
+ if (t.na = 2, (r = !!t.value) && n.da)
2182
+ return new v(n.da, t.scope);
2183
+ if (!r && n.alternate)
2184
+ return new v(n.alternate, t.scope);
2185
+ this.value = void 0;
2186
+ }
2187
+ e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
2188
+ };
2189
+ h.prototype.stepContinueStatement = function(e, t, n) {
2190
+ Je(this, 2, void 0, n.label && n.label.name);
2191
+ };
2192
+ h.prototype.stepDebuggerStatement = function(e) {
2193
+ e.pop();
2194
+ };
2195
+ h.prototype.stepDoWhileStatement = function(e, t, n) {
2196
+ if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
2197
+ return t.ga = !0, new v(n.test, t.scope);
2198
+ if (!t.value)
2199
+ e.pop();
2200
+ else if (n.body)
2201
+ return t.ga = !1, t.W = !0, new v(n.body, t.scope);
2202
+ };
2203
+ h.prototype.stepEmptyStatement = function(e) {
2204
+ e.pop();
2205
+ };
2206
+ h.prototype.stepEvalProgram_ = function(e, t, n) {
2207
+ var r = t.A || 0;
2208
+ if (n = n.body[r])
2209
+ return t.A = r + 1, new v(n, t.scope);
2210
+ e.pop(), e[e.length - 1].value = this.value;
2211
+ };
2212
+ h.prototype.stepExpressionStatement = function(e, t, n) {
2213
+ if (!t.ka)
2214
+ return this.value = void 0, t.ka = !0, new v(n.la, t.scope);
2215
+ e.pop(), this.value = t.value;
2216
+ };
2217
+ h.prototype.stepForInStatement = function(e, t, n) {
2218
+ if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
2219
+ return t.scope.S && m(this, this.T, "for-in loop variable declaration may not have an initializer"), new v(n.left, t.scope);
2220
+ if (!t.Ca)
2221
+ return t.Ca = !0, t.pa || (t.pa = t.value), new v(n.right, t.scope);
2222
+ if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
2223
+ e:
2224
+ for (; ; ) {
2225
+ if (t.u instanceof j)
2226
+ for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
2227
+ var r = t.wa.shift();
2228
+ if (r === void 0)
2229
+ break;
2230
+ if (Object.prototype.hasOwnProperty.call(t.u.h, r) && !t.kb[r] && (t.kb[r] = !0, Object.prototype.propertyIsEnumerable.call(t.u.h, r))) {
2231
+ t.Ra = r;
2232
+ break e;
2233
+ }
2234
+ }
2235
+ else if (t.u !== null && t.u !== void 0) {
2236
+ for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u)); r = t.wa.shift(), r !== void 0; )
2237
+ if (t.kb[r] = !0, Object.prototype.propertyIsEnumerable.call(t.u, r)) {
2238
+ t.Ra = r;
2239
+ break e;
2240
+ }
2241
+ }
2242
+ if (t.u = se(this, t.u), t.wa = null, t.u === null) {
2243
+ e.pop();
2244
+ return;
2245
+ }
2246
+ }
2247
+ if (!t.wb)
2248
+ if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
2249
+ t.pa = [Oe, e.fa[0].id.name];
2250
+ else
2251
+ return t.pa = null, t = new v(e, t.scope), t.sa = !0, t;
2252
+ if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Kt(this, t.pa, e)))
2253
+ return Zt(this, r, t.pa, e);
2254
+ if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
2255
+ return new v(n.body, t.scope);
2256
+ };
2257
+ h.prototype.stepForStatement = function(e, t, n) {
2258
+ switch (t.na) {
2259
+ default:
2260
+ if (t.na = 1, n.ua)
2261
+ return new v(n.ua, t.scope);
2262
+ break;
2263
+ case 1:
2264
+ if (t.na = 2, n.test)
2265
+ return new v(n.test, t.scope);
2266
+ break;
2267
+ case 2:
2268
+ if (t.na = 3, n.test && !t.value)
2269
+ e.pop();
2270
+ else
2271
+ return t.W = !0, new v(n.body, t.scope);
2272
+ break;
2273
+ case 3:
2274
+ if (t.na = 1, n.update)
2275
+ return new v(n.update, t.scope);
2276
+ }
2277
+ };
2278
+ h.prototype.stepFunctionDeclaration = function(e) {
2279
+ e.pop();
2280
+ };
2281
+ h.prototype.stepFunctionExpression = function(e, t, n) {
2282
+ e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Xt(this, e)), t.value = Vt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Lt);
2283
+ };
2284
+ h.prototype.stepIdentifier = function(e, t, n) {
2285
+ if (e.pop(), t.sa)
2286
+ e[e.length - 1].value = [Oe, n.name];
2287
+ else {
2288
+ if (t = Jt(this, n.name), this.P)
2289
+ return Ye(this, t, this.Na);
2290
+ e[e.length - 1].value = t;
2291
+ }
2292
+ };
2293
+ h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
2294
+ h.prototype.stepLabeledStatement = function(e, t, n) {
2295
+ return e.pop(), e = t.labels || [], e.push(n.label.name), t = new v(n.body, t.scope), t.labels = e, t;
2296
+ };
2297
+ h.prototype.stepLiteral = function(e, t, n) {
2298
+ e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), $t(this, n, t), t = n), e[e.length - 1].value = t;
2299
+ };
2300
+ h.prototype.stepLogicalExpression = function(e, t, n) {
2301
+ if (n.operator !== "&&" && n.operator !== "||")
2302
+ throw SyntaxError("Unknown logical operator: " + n.operator);
2303
+ if (!t.ja)
2304
+ return t.ja = !0, new v(n.left, t.scope);
2305
+ if (t.Da)
2306
+ e.pop(), e[e.length - 1].value = t.value;
2307
+ else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
2308
+ e.pop(), e[e.length - 1].value = t.value;
2309
+ else
2310
+ return t.Da = !0, new v(n.right, t.scope);
2311
+ };
2312
+ h.prototype.stepMemberExpression = function(e, t, n) {
2313
+ if (!t.Ca)
2314
+ return t.Ca = !0, new v(n.object, t.scope);
2315
+ if (n.bb)
2316
+ if (t.Vb)
2317
+ n = t.value;
2318
+ else
2319
+ return t.u = t.value, t.Vb = !0, new v(n.Wa, t.scope);
2320
+ else
2321
+ t.u = t.value, n = n.Wa.name;
2322
+ if (e.pop(), t.sa)
2323
+ e[e.length - 1].value = [t.u, n];
2324
+ else {
2325
+ if (n = this.G(t.u, n), this.P)
2326
+ return Ye(this, n, t.u);
2327
+ e[e.length - 1].value = n;
2328
+ }
2329
+ };
2330
+ h.prototype.stepNewExpression = h.prototype.stepCallExpression;
2331
+ h.prototype.stepObjectExpression = function(e, t, n) {
2332
+ var r = t.A || 0, o = n.h[r];
2333
+ if (t.u) {
2334
+ var s = t.Pa;
2335
+ t.Ja[s] || (t.Ja[s] = {}), t.Ja[s][o.kind] = t.value, t.A = ++r, o = n.h[r];
2336
+ } else
2337
+ t.u = this.s(this.M), t.Ja = /* @__PURE__ */ Object.create(null);
2338
+ if (o) {
2339
+ var a = o.key;
2340
+ if (a.type === "Identifier")
2341
+ s = a.name;
2342
+ else if (a.type === "Literal")
2343
+ s = a.value;
2344
+ else
2345
+ throw SyntaxError("Unknown object structure: " + a.type);
2346
+ return t.Pa = s, new v(o.value, t.scope);
2347
+ }
2348
+ for (a in t.Ja)
2349
+ n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a, He, {
2350
+ configurable: !0,
2351
+ enumerable: !0,
2352
+ get: n.get,
2353
+ set: n.set
2354
+ }) : this.g(t.u, a, n.init);
2355
+ e.pop(), e[e.length - 1].value = t.u;
2356
+ };
2357
+ h.prototype.stepProgram = function(e, t, n) {
2358
+ if (e = n.body.shift())
2359
+ return t.done = !1, new v(e, t.scope);
2360
+ t.done = !0;
2361
+ };
2362
+ h.prototype.stepReturnStatement = function(e, t, n) {
2363
+ if (n.K && !t.ka)
2364
+ return t.ka = !0, new v(n.K, t.scope);
2365
+ Je(this, 3, t.value);
2366
+ };
2367
+ h.prototype.stepSequenceExpression = function(e, t, n) {
2368
+ var r = t.A || 0;
2369
+ if (n = n.xb[r])
2370
+ return t.A = r + 1, new v(n, t.scope);
2371
+ e.pop(), e[e.length - 1].value = t.value;
2372
+ };
2373
+ h.prototype.stepSwitchStatement = function(e, t, n) {
2374
+ if (!t.ga)
2375
+ return t.ga = 1, new v(n.Qb, t.scope);
2376
+ for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
2377
+ var r = t.gb || 0, o = n.tb[r];
2378
+ if (t.Ha || !o || o.test)
2379
+ if (o || t.Ha || t.cb === -1)
2380
+ if (o) {
2381
+ if (!t.Ha && !t.Fb && o.test)
2382
+ return t.Fb = !0, new v(o.test, t.scope);
2383
+ if (t.Ha || t.value === t.hc) {
2384
+ t.Ha = !0;
2385
+ var s = t.A || 0;
2386
+ if (o.da[s])
2387
+ return t.Zb = !0, t.A = s + 1, new v(o.da[s], t.scope);
2388
+ }
2389
+ t.Fb = !1, t.A = 0, t.gb = r + 1;
2390
+ } else {
2391
+ e.pop();
2392
+ break;
2393
+ }
2394
+ else
2395
+ t.Ha = !0, t.gb = t.cb;
2396
+ else
2397
+ t.cb = r, t.gb = r + 1;
2398
+ }
2399
+ };
2400
+ h.prototype.stepThisExpression = function(e) {
2401
+ e.pop(), e[e.length - 1].value = Jt(this, "this");
2402
+ };
2403
+ h.prototype.stepThrowStatement = function(e, t, n) {
2404
+ if (t.ka)
2405
+ m(this, t.value);
2406
+ else
2407
+ return t.ka = !0, new v(n.K, t.scope);
2408
+ };
2409
+ h.prototype.stepTryStatement = function(e, t, n) {
2410
+ if (!t.Rb)
2411
+ return t.Rb = !0, new v(n.block, t.scope);
2412
+ if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
2413
+ return t.Tb = !0, e = Xt(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new v(n.Ea.body, e);
2414
+ if (!t.Sb && n.fb)
2415
+ return t.Sb = !0, new v(n.fb, t.scope);
2416
+ e.pop(), t.ea && Je(this, t.ea.type, t.ea.value, t.ea.label);
2417
+ };
2418
+ h.prototype.stepUnaryExpression = function(e, t, n) {
2419
+ if (!t.ka)
2420
+ return t.ka = !0, e = new v(n.K, t.scope), e.sa = n.operator === "delete", e;
2421
+ e.pop();
2422
+ var r = t.value;
2423
+ switch (n.operator) {
2424
+ case "-":
2425
+ r = -r;
2426
+ break;
2427
+ case "+":
2428
+ r = +r;
2429
+ break;
2430
+ case "!":
2431
+ r = !r;
2432
+ break;
2433
+ case "~":
2434
+ r = ~r;
2435
+ break;
2436
+ case "delete":
2437
+ if (n = !0, Array.isArray(r)) {
2438
+ var o = r[0];
2439
+ o === Oe && (o = t.scope), r = String(r[1]);
2440
+ try {
2441
+ delete o.h[r];
2442
+ } catch {
2443
+ t.scope.S ? m(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
2444
+ }
2445
+ }
2446
+ r = n;
2447
+ break;
2448
+ case "typeof":
2449
+ r = r && r.H === "Function" ? "function" : typeof r;
2450
+ break;
2451
+ case "void":
2452
+ r = void 0;
2453
+ break;
2454
+ default:
2455
+ throw SyntaxError("Unknown unary operator: " + n.operator);
2456
+ }
2457
+ e[e.length - 1].value = r;
2458
+ };
2459
+ h.prototype.stepUpdateExpression = function(e, t, n) {
2460
+ if (!t.ja)
2461
+ return t.ja = !0, e = new v(n.K, t.scope), e.sa = !0, e;
2462
+ if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
2463
+ var r = Yt(this, t.Ga);
2464
+ if (t.ma = r, this.P)
2465
+ return t.Ba = !0, Ye(this, r, t.Ga);
2466
+ }
2467
+ if (t.ta)
2468
+ e.pop(), e[e.length - 1].value = t.ib;
2469
+ else {
2470
+ if (r = Number(t.ma), n.operator === "++")
2471
+ var o = r + 1;
2472
+ else if (n.operator === "--")
2473
+ o = r - 1;
2474
+ else
2475
+ throw SyntaxError("Unknown update expression: " + n.operator);
2476
+ if (n = n.prefix ? o : r, r = Kt(this, t.Ga, o))
2477
+ return t.ta = !0, t.ib = n, Zt(this, r, t.Ga, o);
2478
+ e.pop(), e[e.length - 1].value = n;
2479
+ }
2480
+ };
2481
+ h.prototype.stepVariableDeclaration = function(e, t, n) {
2482
+ n = n.fa;
2483
+ var r = t.A || 0, o = n[r];
2484
+ for (t.Bb && o && (zr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
2485
+ if (o.ua)
2486
+ return t.A = r, t.Bb = !0, t.Pa = o.id.name, new v(o.ua, t.scope);
2487
+ o = n[++r];
2488
+ }
2489
+ e.pop();
2490
+ };
2491
+ h.prototype.stepWithStatement = function(e, t, n) {
2492
+ return t.Ca ? (e.pop(), e = Xt(this, t.scope, t.value), new v(n.body, e)) : (t.Ca = !0, new v(n.object, t.scope));
2493
+ };
2494
+ h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
2495
+ ce.Interpreter = h;
2496
+ h.prototype.step = h.prototype.lb;
2497
+ h.prototype.run = h.prototype.Eb;
2498
+ h.prototype.appendCode = h.prototype.Jb;
2499
+ h.prototype.createObject = h.prototype.Aa;
2500
+ h.prototype.createObjectProto = h.prototype.s;
2501
+ h.prototype.createAsyncFunction = h.prototype.ub;
2502
+ h.prototype.createNativeFunction = h.prototype.i;
2503
+ h.prototype.getProperty = h.prototype.G;
2504
+ h.prototype.setProperty = h.prototype.g;
2505
+ h.prototype.nativeToPseudo = h.prototype.Ia;
2506
+ h.prototype.pseudoToNative = h.prototype.R;
2507
+ h.prototype.getGlobalScope = h.prototype.Xb;
2508
+ h.prototype.getStateStack = h.prototype.Yb;
2509
+ h.prototype.setStateStack = h.prototype.ec;
2510
+ h.VALUE_IN_DESCRIPTOR = He;
2511
+ const Hn = (e) => e.split(`
2512
+ `).map((t) => {
2513
+ const n = t.trim();
2514
+ if (t.includes("__awaiter"))
2515
+ return;
2516
+ if (!n.startsWith("state."))
2517
+ return t;
2518
+ const [o, s] = n.split("="), f = `setRootState('${o.replace("state.", "").trim()}', ${s.trim()})`;
2519
+ return `
2520
+ ${t}
2521
+ ${f}
2522
+ `;
2523
+ }).filter(Boolean).join(`
2524
+ `), _r = (e) => e + "JSON", Xn = ({
2525
+ builder: e,
2526
+ context: t,
2527
+ event: n,
2528
+ rootState: r,
2529
+ localState: o,
2530
+ rootSetState: s,
2531
+ code: a
2532
+ }) => {
2533
+ const f = {
2534
+ ...r,
2535
+ ...o
2536
+ }, g = Xr({
2537
+ builder: e,
2538
+ context: t,
2539
+ event: n,
2540
+ state: f
2541
+ }), I = g.map(([E]) => {
2542
+ const N = _r(E);
2543
+ return `var ${E} = ${N} === undefined ? undefined : JSON.parse(${N});`;
2544
+ }).join(`
2545
+ `), O = Hn(a);
2546
+ if (O === "") {
2547
+ Ve.warn("Skipping evaluation of empty code block.");
2548
+ return;
2549
+ }
2550
+ const A = `
2551
+ function theFunction() {
2552
+ ${I}
2553
+
2554
+ ${O}
2555
+ }
2556
+ theFunction();
2557
+ `, X = (E, N) => {
2558
+ const J = Yr(f, E, N);
2559
+ s == null || s(J);
2560
+ }, b = function(E, N) {
2561
+ g.forEach(([J, fe]) => {
2562
+ const C = JSON.stringify(fe);
2563
+ E.setProperty(N, _r(J), C);
2564
+ }), E.setProperty(N, "setRootState", E.createNativeFunction(X));
2565
+ };
2566
+ try {
2567
+ const E = new h(A, b);
2568
+ return E.run(), E.pseudoToNative(E.value);
2569
+ } catch (E) {
2570
+ Ve.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
2571
+ e: E
2572
+ });
2573
+ return;
2574
+ }
2575
+ };
2576
+ function Jn() {
2577
+ var e;
2578
+ return typeof process != "undefined" && nt((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
2579
+ }
2580
+ const Yn = () => {
2581
+ var r;
2582
+ if (!Jn())
2583
+ return !1;
2584
+ const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
2585
+ return e && t && !n ? (Ve.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;
2586
+ }, Kn = (e) => Bt() || Yn() ? In(e) : Xn(e);
2587
+ function zt({
2588
+ code: e,
2589
+ context: t,
2590
+ localState: n,
2591
+ rootState: r,
2592
+ rootSetState: o,
2593
+ event: s,
2594
+ isExpression: a = !0
2595
+ }) {
2596
+ if (e === "") {
2597
+ Ve.warn("Skipping evaluation of empty code block.");
2598
+ return;
2599
+ }
2600
+ const f = {
2601
+ code: An(e, {
2602
+ isExpression: a
2603
+ }),
2604
+ builder: On(),
2605
+ context: t,
2606
+ event: s,
2607
+ rootSetState: o,
2608
+ rootState: r,
2609
+ localState: n
2610
+ };
2611
+ try {
2612
+ return Kn(f);
2613
+ } catch (g) {
2614
+ Ve.error("Failed code evaluation: " + g.message, {
2615
+ code: e
2616
+ });
2617
+ return;
2618
+ }
2619
+ }
2620
+ const Zn = ({
2621
+ block: e,
2622
+ context: t,
2623
+ localState: n,
2624
+ rootState: r,
2625
+ rootSetState: o
2626
+ }) => {
2627
+ if (!e.bindings)
2628
+ return e;
2629
+ const s = Gr(e), a = {
2630
+ ...s,
2631
+ properties: {
2632
+ ...s.properties
2633
+ },
2634
+ actions: {
2635
+ ...s.actions
2636
+ }
2637
+ };
2638
+ for (const f in e.bindings) {
2639
+ const g = e.bindings[f], I = zt({
2640
+ code: g,
2641
+ localState: n,
2642
+ rootState: r,
2643
+ rootSetState: o,
2644
+ context: t
2645
+ });
2646
+ Yr(a, f, I);
2647
+ }
2648
+ return a;
2649
+ };
2650
+ function ot({
2651
+ block: e,
2652
+ context: t,
2653
+ shouldEvaluateBindings: n,
2654
+ localState: r,
2655
+ rootState: o,
2656
+ rootSetState: s
2657
+ }) {
2658
+ const a = e;
2659
+ return n ? Zn({
2660
+ block: a,
2661
+ localState: r,
2662
+ rootState: o,
2663
+ rootSetState: s,
2664
+ context: t
2665
+ }) : a;
2666
+ }
2667
+ function zn(e, t, n = {}) {
2668
+ let r, o, s, a = null, f = 0;
2669
+ const g = function() {
2670
+ f = n.leading === !1 ? 0 : Date.now(), a = null, s = e.apply(r, o), a || (r = o = null);
2671
+ };
2672
+ return function() {
2673
+ const I = Date.now();
2674
+ !f && n.leading === !1 && (f = I);
2675
+ const O = t - (I - f);
2676
+ return r = this, o = arguments, O <= 0 || O > t ? (a && (clearTimeout(a), a = null), f = I, s = e.apply(r, o), a || (r = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(g, O)), s;
2677
+ };
2678
+ }
2679
+ function de(e, ...t) {
2680
+ const n = Object(e);
2681
+ for (let r = 1; r < arguments.length; r++) {
2682
+ const o = arguments[r];
2683
+ if (o != null)
2684
+ for (const s in o)
2685
+ Object.prototype.hasOwnProperty.call(o, s) && (n[s] = o[s]);
2686
+ }
2687
+ return n;
2688
+ }
2689
+ const Qt = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
2690
+ function Qn(e) {
2691
+ for (const t of e)
2692
+ switch (t.trigger) {
2693
+ case "pageLoad":
2694
+ eo(t);
2695
+ break;
2696
+ case "hover":
2697
+ to(t);
2698
+ break;
2699
+ case "scrollInView":
2700
+ ro(t);
2701
+ break;
2702
+ }
2703
+ }
2704
+ function qt(e) {
2705
+ console.warn(`Cannot animate element: element with ID ${e} not found!`);
2706
+ }
2707
+ function er(e, t) {
2708
+ const n = qn(e), r = getComputedStyle(t), o = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, a = [o, s];
2709
+ for (const f of a)
2710
+ for (const g of n)
2711
+ g in f || (f[g] = r[g]);
2712
+ }
2713
+ function qn(e) {
2714
+ const t = [];
2715
+ for (const n of e.steps)
2716
+ for (const r in n.styles)
2717
+ t.indexOf(r) === -1 && t.push(r);
2718
+ return t;
2719
+ }
2720
+ function eo(e) {
2721
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2722
+ if (!t.length) {
2723
+ qt(e.elementId || e.id || "");
2724
+ return;
2725
+ }
2726
+ Array.from(t).forEach((n) => {
2727
+ er(e, n), n.style.transition = "none", n.style.transitionDelay = "0", de(n.style, e.steps[0].styles), setTimeout(() => {
2728
+ n.style.transition = `all ${e.duration}s ${Qt(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), de(n.style, e.steps[1].styles), setTimeout(() => {
2729
+ n.style.transition = "", n.style.transitionDelay = "";
2730
+ }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2731
+ });
2732
+ });
2733
+ }
2734
+ function to(e) {
2735
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2736
+ if (!t.length) {
2737
+ qt(e.elementId || e.id || "");
2738
+ return;
2739
+ }
2740
+ Array.from(t).forEach((n) => {
2741
+ er(e, n);
2742
+ const r = e.steps[0].styles, o = e.steps[1].styles;
2743
+ function s() {
2744
+ de(n.style, r);
2745
+ }
2746
+ function a() {
2747
+ de(n.style, o);
2748
+ }
2749
+ s(), n.addEventListener("mouseenter", a), n.addEventListener("mouseleave", s), setTimeout(() => {
2750
+ n.style.transition = `all ${e.duration}s ${Qt(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
2751
+ });
2752
+ });
2753
+ }
2754
+ function ro(e) {
2755
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2756
+ if (!t.length) {
2757
+ qt(e.elementId || e.id || "");
2758
+ return;
2759
+ }
2760
+ Array.from(t).forEach((n) => {
2761
+ er(e, n);
2762
+ let r = !1, o = !1;
2763
+ function s() {
2764
+ !r && f(n) ? (r = !0, o = !0, setTimeout(() => {
2765
+ de(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
2766
+ o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
2767
+ }, (e.duration + (e.delay || 0)) * 1e3 + 100);
2768
+ })) : e.repeat && r && !o && !f(n) && (r = !1, de(n.style, e.steps[0].styles));
2769
+ }
2770
+ const a = zn(s, 200, {
2771
+ leading: !1
2772
+ });
2773
+ function f(O) {
2774
+ const A = O.getBoundingClientRect(), X = window.innerHeight, E = (e.thresholdPercent || 0) / 100 * X;
2775
+ return A.bottom > E && A.top < X - E;
2776
+ }
2777
+ const g = e.steps[0].styles;
2778
+ function I() {
2779
+ de(n.style, g);
2780
+ }
2781
+ I(), setTimeout(() => {
2782
+ n.style.transition = `all ${e.duration}s ${Qt(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
2783
+ }), document.addEventListener("scroll", a, {
2784
+ capture: !0,
2785
+ passive: !0
2786
+ }), s();
2787
+ });
2788
+ }
2789
+ const no = ({
2790
+ block: e,
2791
+ context: t,
2792
+ registeredComponents: n
2793
+ }) => {
2794
+ var s;
2795
+ const r = (s = ot({
2796
+ block: e,
2797
+ localState: t.localState,
2798
+ rootState: t.rootState,
2799
+ rootSetState: t.rootSetState,
2800
+ context: t.context,
2801
+ shouldEvaluateBindings: !1
2802
+ }).component) == null ? void 0 : s.name;
2803
+ if (!r)
2804
+ return null;
2805
+ const o = n[r];
2806
+ if (o)
2807
+ return o;
2808
+ console.warn(`
2809
+ Could not find a registered component named "${r}".
2810
+ If you registered it, is the file that registered it imported by the file that needs to render it?`);
2811
+ }, oo = ({
2812
+ block: e,
2813
+ context: t
2814
+ }) => {
2815
+ const {
2816
+ repeat: n,
2817
+ ...r
2818
+ } = e;
2819
+ if (!(n != null && n.collection))
2820
+ return;
2821
+ const o = zt({
2822
+ code: n.collection,
2823
+ localState: t.localState,
2824
+ rootState: t.rootState,
2825
+ rootSetState: t.rootSetState,
2826
+ context: t.context
2827
+ });
2828
+ if (!Array.isArray(o))
2829
+ return;
2830
+ const s = n.collection.split(".").pop(), a = n.itemName || (s ? s + "Item" : "item");
2831
+ return o.map((g, I) => ({
2832
+ context: {
2833
+ ...t,
2834
+ localState: {
2835
+ ...t.localState,
2836
+ $index: I,
2837
+ $item: g,
2838
+ [a]: g,
2839
+ [`$${a}Index`]: I
2840
+ }
2841
+ },
2842
+ block: r
2843
+ }));
2844
+ }, en = {
2845
+ small: {
2846
+ min: 320,
2847
+ default: 321,
2848
+ max: 640
2849
+ },
2850
+ medium: {
2851
+ min: 641,
2852
+ default: 642,
2853
+ max: 991
2854
+ },
2855
+ large: {
2856
+ min: 990,
2857
+ default: 991,
2858
+ max: 1200
2859
+ }
2860
+ }, Lr = (e, t = en) => `@media (max-width: ${t[e].max}px)`, io = ({
2861
+ small: e,
2862
+ medium: t
2863
+ }) => {
2864
+ const n = Gr(en);
2865
+ if (!e || !t)
2866
+ return n;
2867
+ const r = Math.floor(e / 2);
2868
+ n.small = {
2869
+ max: e,
2870
+ min: r,
2871
+ default: r + 1
2872
+ };
2873
+ const o = n.small.max + 1;
2874
+ n.medium = {
2875
+ max: t,
2876
+ min: o,
2877
+ default: o + 1
2878
+ };
2879
+ const s = n.medium.max + 1;
2880
+ return n.large = {
2881
+ max: 2e3,
2882
+ // TODO: decide upper limit
2883
+ min: s,
2884
+ default: s + 1
2885
+ }, n;
2886
+ }, so = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), tn = (e) => Object.entries(e).map(([n, r]) => {
2887
+ if (typeof r == "string")
2888
+ return `${so(n)}: ${r};`;
2889
+ }).filter(nt), ao = (e) => tn(e).join(`
2890
+ `), Nt = ({
2891
+ mediaQuery: e,
2892
+ className: t,
2893
+ styles: n
2894
+ }) => {
2895
+ const r = `.${t} {
2896
+ ${ao(n)}
2897
+ }`;
2898
+ return e ? `${e} {
2899
+ ${r}
2900
+ }` : r;
2901
+ };
2902
+ function lo(e) {
2903
+ return /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
2904
+ }
2905
+ function uo(e) {
2906
+ function t() {
2907
+ const r = ot({
2908
+ block: e.block,
2909
+ localState: e.context.localState,
2910
+ rootState: e.context.rootState,
2911
+ rootSetState: e.context.rootSetState,
2912
+ context: e.context.context,
2913
+ shouldEvaluateBindings: !0
2914
+ });
2915
+ return nt(r.hide) ? !r.hide : nt(r.show) ? r.show : !0;
2916
+ }
2917
+ function n() {
2918
+ var E;
2919
+ const r = ot({
2920
+ block: e.block,
2921
+ localState: e.context.localState,
2922
+ rootState: e.context.rootState,
2923
+ rootSetState: e.context.rootSetState,
2924
+ context: e.context.context,
2925
+ shouldEvaluateBindings: !0
2926
+ }), o = r.responsiveStyles, s = e.context.content, a = io(
2927
+ ((E = s == null ? void 0 : s.meta) == null ? void 0 : E.breakpoints) || {}
2928
+ ), f = o == null ? void 0 : o.large, g = o == null ? void 0 : o.medium, I = o == null ? void 0 : o.small, O = r.id;
2929
+ if (!O)
2930
+ return "";
2931
+ const A = f ? Nt({
2932
+ className: O,
2933
+ styles: f
2934
+ }) : "", X = g ? Nt({
2935
+ className: O,
2936
+ styles: g,
2937
+ mediaQuery: Lr(
2938
+ "medium",
2939
+ a
2940
+ )
2941
+ }) : "", b = I ? Nt({
2942
+ className: O,
2943
+ styles: I,
2944
+ mediaQuery: Lr(
2945
+ "small",
2946
+ a
2947
+ )
2948
+ }) : "";
2949
+ return [A, X, b].join(" ");
2950
+ }
2951
+ return /* @__PURE__ */ P(K, { children: n() && t() ? /* @__PURE__ */ P(K, { children: /* @__PURE__ */ P(lo, { styles: n() }) }) : null });
2952
+ }
2953
+ function co(e) {
2954
+ return e.charAt(0).toUpperCase() + e.slice(1);
2955
+ }
2956
+ const fo = (e) => `on${co(e)}`, po = (e, t) => (n) => zt({
2957
+ code: e,
2958
+ context: t.context,
2959
+ localState: t.localState,
2960
+ rootState: t.rootState,
2961
+ rootSetState: t.rootSetState,
2962
+ event: n,
2963
+ isExpression: !1
2964
+ });
2965
+ function rn(e) {
2966
+ var r;
2967
+ const t = {}, n = (r = e.block.actions) != null ? r : {};
2968
+ for (const o in n) {
2969
+ if (!n.hasOwnProperty(o))
2970
+ continue;
2971
+ const s = n[o];
2972
+ let a = fo(o);
2973
+ if (e.stripPrefix)
2974
+ switch (Vr) {
2975
+ case "vue":
2976
+ a = a.replace("v-on:", "");
2977
+ break;
2978
+ case "svelte":
2979
+ a = a.replace("on:", "");
2980
+ break;
2981
+ }
2982
+ t[a] = po(s, e);
2983
+ }
2984
+ return t;
2985
+ }
2986
+ function ho({
2987
+ style: e
2988
+ }) {
2989
+ return e;
2990
+ }
2991
+ const go = ({
2992
+ block: e,
2993
+ context: t
2994
+ }) => yo(ho({
2995
+ style: e.style || {},
2996
+ context: t,
2997
+ block: e
2998
+ }));
2999
+ function yo(e) {
3000
+ switch (Vr) {
3001
+ case "svelte":
3002
+ case "vue":
3003
+ case "solid":
3004
+ return tn(e).join(" ");
3005
+ case "qwik":
3006
+ case "reactNative":
3007
+ case "react":
3008
+ case "rsc":
3009
+ return e;
3010
+ }
3011
+ }
3012
+ function vo({
3013
+ properties: e
3014
+ }) {
3015
+ return e;
3016
+ }
3017
+ const mo = (e) => ({
3018
+ href: e.href
3019
+ });
3020
+ function tr({
3021
+ block: e,
3022
+ context: t
3023
+ }) {
3024
+ var r;
3025
+ const n = {
3026
+ ...mo(e),
3027
+ ...e.properties,
3028
+ "builder-id": e.id,
3029
+ style: go({
3030
+ block: e,
3031
+ context: t
3032
+ }),
3033
+ [kn()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
3034
+ };
3035
+ return vo({
3036
+ properties: n,
3037
+ context: t,
3038
+ block: e
3039
+ });
3040
+ }
3041
+ function So(e) {
3042
+ return /* @__PURE__ */ P(
3043
+ En,
3044
+ {
3045
+ TagName: e.Wrapper,
3046
+ attributes: tr({
3047
+ block: e.block,
3048
+ context: e.context
3049
+ }),
3050
+ actionAttributes: rn({
3051
+ block: e.block,
3052
+ rootState: e.context.rootState,
3053
+ rootSetState: e.context.rootSetState,
3054
+ localState: e.context.localState,
3055
+ context: e.context.context,
3056
+ stripPrefix: !0
3057
+ }),
3058
+ children: e.children
3059
+ }
3060
+ );
3061
+ }
3062
+ function wo(e) {
3063
+ return /* @__PURE__ */ P(
3064
+ e.Wrapper,
3065
+ {
3066
+ ...e.wrapperProps,
3067
+ attributes: e.includeBlockProps ? {
3068
+ ...tr({
3069
+ block: e.block,
3070
+ context: e.context
3071
+ }),
3072
+ ...rn({
3073
+ block: e.block,
3074
+ rootState: e.context.rootState,
3075
+ rootSetState: e.context.rootSetState,
3076
+ localState: e.context.localState,
3077
+ context: e.context.context
3078
+ })
3079
+ } : {},
3080
+ children: e.children
3081
+ }
3082
+ );
3083
+ }
3084
+ const xo = ({
3085
+ componentOptions: e,
3086
+ builderBlock: t,
3087
+ context: n,
3088
+ componentRef: r,
3089
+ includeBlockProps: o,
3090
+ isInteractive: s,
3091
+ contextValue: a
3092
+ }) => {
3093
+ const f = {
3094
+ ...e,
3095
+ /**
3096
+ * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
3097
+ * component itself directly. Otherwise, they are provided to the wrapper element.
3098
+ */
3099
+ ...o ? {
3100
+ attributes: tr({
3101
+ block: t,
3102
+ context: a
3103
+ })
3104
+ } : {}
3105
+ };
3106
+ return s ? {
3107
+ Wrapper: r,
3108
+ block: t,
3109
+ context: n,
3110
+ wrapperProps: e,
3111
+ includeBlockProps: o
3112
+ } : f;
3113
+ };
3114
+ function Wr(e) {
3115
+ var r;
3116
+ const [t, n] = _t(
3117
+ () => e.isInteractive ? wo : e.componentRef
3118
+ );
3119
+ return /* @__PURE__ */ P(K, { children: e.componentRef ? /* @__PURE__ */ P(K, { children: /* @__PURE__ */ P(
3120
+ t,
3121
+ {
3122
+ ...xo({
3123
+ componentOptions: e.componentOptions,
3124
+ builderBlock: e.builderBlock,
3125
+ context: e.context,
3126
+ componentRef: e.componentRef,
3127
+ linkComponent: e.linkComponent,
3128
+ includeBlockProps: e.includeBlockProps,
3129
+ isInteractive: e.isInteractive,
3130
+ contextValue: e.context
3131
+ }),
3132
+ children: (r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ P(
3133
+ at,
3134
+ {
3135
+ block: o,
3136
+ context: e.context,
3137
+ registeredComponents: e.registeredComponents,
3138
+ linkComponent: e.linkComponent
3139
+ },
3140
+ o.id
3141
+ ))
3142
+ }
3143
+ ) }) : null });
3144
+ }
3145
+ function ko(e) {
3146
+ const [t, n] = _t(() => e.repeatContext);
3147
+ return /* @__PURE__ */ P(Hr.Provider, { value: t, children: /* @__PURE__ */ P(
3148
+ at,
3149
+ {
3150
+ block: e.block,
3151
+ context: t,
3152
+ registeredComponents: e.registeredComponents,
3153
+ linkComponent: e.linkComponent
3154
+ }
3155
+ ) });
3156
+ }
3157
+ function at(e) {
3158
+ var O, A, X;
3159
+ function t() {
3160
+ return no({
3161
+ block: e.block,
3162
+ context: e.context,
3163
+ registeredComponents: e.registeredComponents
3164
+ });
3165
+ }
3166
+ function n() {
3167
+ return oo({
3168
+ block: e.block,
3169
+ context: e.context
3170
+ });
3171
+ }
3172
+ function r() {
3173
+ var b;
3174
+ return (b = e.block.repeat) != null && b.collection ? e.block : ot({
3175
+ block: e.block,
3176
+ localState: e.context.localState,
3177
+ rootState: e.context.rootState,
3178
+ rootSetState: e.context.rootSetState,
3179
+ context: e.context.context,
3180
+ shouldEvaluateBindings: !0
3181
+ });
3182
+ }
3183
+ function o() {
3184
+ var E;
3185
+ return e.block.tagName === "a" || ((E = r().properties) == null ? void 0 : E.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
3186
+ }
3187
+ function s() {
3188
+ var N, J;
3189
+ if ((N = e.block.repeat) != null && N.collection)
3190
+ return !!((J = n == null ? void 0 : n()) != null && J.length);
3191
+ const b = "hide" in r() ? r().hide : !1;
3192
+ return ("show" in r() ? r().show : !0) && !b;
3193
+ }
3194
+ function a() {
3195
+ var E, N;
3196
+ return !((E = t == null ? void 0 : t()) != null && E.component) && !n() ? (N = r().children) != null ? N : [] : [];
3197
+ }
3198
+ function f() {
3199
+ var b, E, N, J, fe, C, ye, Ae, Ie, M, Z;
3200
+ return {
3201
+ blockChildren: (b = r().children) != null ? b : [],
3202
+ componentRef: (E = t == null ? void 0 : t()) == null ? void 0 : E.component,
3203
+ componentOptions: {
3204
+ ...jn(r()),
3205
+ builderContext: e.context,
3206
+ ...((N = t == null ? void 0 : t()) == null ? void 0 : N.name) === "Core:Button" || ((J = t == null ? void 0 : t()) == null ? void 0 : J.name) === "Symbol" || ((fe = t == null ? void 0 : t()) == null ? void 0 : fe.name) === "Columns" || ((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Form:Form" ? {
3207
+ builderLinkComponent: e.linkComponent
3208
+ } : {},
3209
+ ...((ye = t == null ? void 0 : t()) == null ? void 0 : ye.name) === "Symbol" || ((Ae = t == null ? void 0 : t()) == null ? void 0 : Ae.name) === "Columns" || ((Ie = t == null ? void 0 : t()) == null ? void 0 : Ie.name) === "Form:Form" ? {
3210
+ builderComponents: e.registeredComponents
3211
+ } : {}
3212
+ },
3213
+ context: g,
3214
+ linkComponent: e.linkComponent,
3215
+ registeredComponents: e.registeredComponents,
3216
+ builderBlock: r(),
3217
+ includeBlockProps: ((M = t == null ? void 0 : t()) == null ? void 0 : M.noWrap) === !0,
3218
+ isInteractive: !((Z = t == null ? void 0 : t()) != null && Z.isRSC)
3219
+ };
3220
+ }
3221
+ const [g, I] = _t(() => e.context);
3222
+ return wn(() => {
3223
+ const b = r().id, E = r().animations;
3224
+ E && b && Qn(
3225
+ E.filter((N) => N.trigger !== "hover").map((N) => ({
3226
+ ...N,
3227
+ elementId: b
3228
+ }))
3229
+ );
3230
+ }, []), /* @__PURE__ */ P(K, { children: s() ? /* @__PURE__ */ Rt(K, { children: [
3231
+ /* @__PURE__ */ P(uo, { block: e.block, context: e.context }),
3232
+ (O = t == null ? void 0 : t()) != null && O.noWrap ? /* @__PURE__ */ P(K, { children: /* @__PURE__ */ P(
3233
+ Wr,
3234
+ {
3235
+ componentRef: f().componentRef,
3236
+ componentOptions: f().componentOptions,
3237
+ blockChildren: f().blockChildren,
3238
+ context: f().context,
3239
+ registeredComponents: f().registeredComponents,
3240
+ linkComponent: f().linkComponent,
3241
+ builderBlock: f().builderBlock,
3242
+ includeBlockProps: f().includeBlockProps,
3243
+ isInteractive: f().isInteractive
3244
+ }
3245
+ ) }) : /* @__PURE__ */ P(K, { children: n() ? /* @__PURE__ */ P(K, { children: (X = n()) == null ? void 0 : X.map((b, E) => /* @__PURE__ */ P(
3246
+ ko,
3247
+ {
3248
+ repeatContext: b.context,
3249
+ block: b.block,
3250
+ registeredComponents: e.registeredComponents,
3251
+ linkComponent: e.linkComponent
3252
+ },
3253
+ E
3254
+ )) }) : /* @__PURE__ */ P(K, { children: /* @__PURE__ */ Rt(
3255
+ So,
3256
+ {
3257
+ Wrapper: o(),
3258
+ block: r(),
3259
+ context: e.context,
3260
+ linkComponent: e.linkComponent,
3261
+ children: [
3262
+ /* @__PURE__ */ P(
3263
+ Wr,
3264
+ {
3265
+ componentRef: f().componentRef,
3266
+ componentOptions: f().componentOptions,
3267
+ blockChildren: f().blockChildren,
3268
+ context: f().context,
3269
+ registeredComponents: f().registeredComponents,
3270
+ linkComponent: f().linkComponent,
3271
+ builderBlock: f().builderBlock,
3272
+ includeBlockProps: f().includeBlockProps,
3273
+ isInteractive: f().isInteractive
3274
+ }
3275
+ ),
3276
+ (A = a()) == null ? void 0 : A.map((b) => /* @__PURE__ */ P(
3277
+ at,
3278
+ {
3279
+ block: b,
3280
+ context: g,
3281
+ registeredComponents: e.registeredComponents,
3282
+ linkComponent: e.linkComponent
3283
+ },
3284
+ b.id
3285
+ ))
3286
+ ]
3287
+ }
3288
+ ) }) })
3289
+ ] }) : null });
3290
+ }
3291
+ function Eo(e) {
3292
+ function t() {
3293
+ var o;
3294
+ return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
3295
+ }
3296
+ function n() {
3297
+ var o, s;
3298
+ Mt() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage(
3299
+ {
3300
+ type: "builder.clickEmptyBlocks",
3301
+ data: {
3302
+ parentElementId: e.parent,
3303
+ dataPath: e.path
3304
+ }
3305
+ },
3306
+ "*"
3307
+ ));
3308
+ }
3309
+ function r() {
3310
+ var o, s;
3311
+ Mt() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage(
3312
+ {
3313
+ type: "builder.hoverEmptyBlocks",
3314
+ data: {
3315
+ parentElementId: e.parent,
3316
+ dataPath: e.path
3317
+ }
3318
+ },
3319
+ "*"
3320
+ ));
3321
+ }
3322
+ return /* @__PURE__ */ Rt(K, { children: [
3323
+ /* @__PURE__ */ P(
3324
+ e.BlocksWrapper,
3325
+ {
3326
+ className: t() + " props-blocks-wrapper-7354e098",
3327
+ "builder-path": e.path,
3328
+ "builder-parent-id": e.parent,
3329
+ style: e.styleProp,
3330
+ onClick: (o) => n(),
3331
+ onMouseEnter: (o) => r(),
3332
+ onKeyPress: (o) => n(),
3333
+ ...e.BlocksWrapperProps,
3334
+ children: e.children
3335
+ }
3336
+ ),
3337
+ /* @__PURE__ */ P("style", { children: `.props-blocks-wrapper-7354e098 {
3338
+ display: flex;
3339
+ flex-direction: column;
3340
+ align-items: stretch;
3341
+ }` })
3342
+ ] });
3343
+ }
3344
+ function Co(e) {
3345
+ var r, o, s;
3346
+ const t = Rr(Hr), n = Rr(Cn);
3347
+ return /* @__PURE__ */ P(
3348
+ Eo,
3349
+ {
3350
+ blocks: e.blocks,
3351
+ parent: e.parent,
3352
+ path: e.path,
3353
+ styleProp: e.styleProp,
3354
+ BlocksWrapper: (r = e.context) == null ? void 0 : r.BlocksWrapper,
3355
+ BlocksWrapperProps: (o = e.context) == null ? void 0 : o.BlocksWrapperProps,
3356
+ children: e.blocks ? /* @__PURE__ */ P(K, { children: (s = e.blocks) == null ? void 0 : s.map((a) => /* @__PURE__ */ P(
3357
+ at,
3358
+ {
3359
+ block: a,
3360
+ linkComponent: e.linkComponent,
3361
+ context: e.context || t,
3362
+ registeredComponents: e.registeredComponents || n.registeredComponents
3363
+ },
3364
+ a.id
3365
+ )) }) : null
3366
+ }
3367
+ );
3368
+ }
3369
+ const To = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3370
+ __proto__: null,
3371
+ default: Co
3372
+ }, Symbol.toStringTag, { value: "Module" }));
3373
+ export {
3374
+ Co as B,
3375
+ Cn as C,
3376
+ lo as I,
3377
+ at as a,
3378
+ Hr as b,
3379
+ To as c,
3380
+ zt as e,
3381
+ io as g,
3382
+ yo as m,
3383
+ Yr as s,
3384
+ eo as t
3385
+ };