@builder.io/sdk-react 3.0.1 → 3.0.3

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