@next-bricks/data-view 1.3.4 → 1.3.6

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 (56) hide show
  1. package/dist/bricks.json +7 -7
  2. package/dist/chunks/1122.9835fb92.js +2 -0
  3. package/dist/chunks/1122.9835fb92.js.map +1 -0
  4. package/dist/chunks/{3171.a773cf1b.js → 3171.3e78212b.js} +2 -2
  5. package/dist/chunks/{5552.7d119e3c.js.map → 3171.3e78212b.js.map} +1 -1
  6. package/dist/chunks/3413.7135d330.js +3 -0
  7. package/dist/chunks/3413.7135d330.js.map +1 -0
  8. package/dist/chunks/3933.c01ffb09.js +2 -0
  9. package/dist/chunks/3933.c01ffb09.js.map +1 -0
  10. package/dist/chunks/{4263.eb2f854f.js → 4263.9708be6f.js} +2 -2
  11. package/dist/chunks/4263.9708be6f.js.map +1 -0
  12. package/dist/chunks/{4837.5768107a.js → 4837.a3fa233a.js} +2 -2
  13. package/dist/chunks/{7218.63d95e50.js.map → 4837.a3fa233a.js.map} +1 -1
  14. package/dist/chunks/{5371.c2bad3e2.js → 5371.15b68669.js} +2 -2
  15. package/dist/chunks/{5371.c2bad3e2.js.map → 5371.15b68669.js.map} +1 -1
  16. package/dist/chunks/{5399.a2e48ba8.js → 5399.f09dcea4.js} +2 -2
  17. package/dist/chunks/5399.f09dcea4.js.map +1 -0
  18. package/dist/chunks/{5552.7d119e3c.js → 5552.8441d588.js} +2 -2
  19. package/dist/chunks/{3171.a773cf1b.js.map → 5552.8441d588.js.map} +1 -1
  20. package/dist/chunks/6314.bd8edc3a.js +2 -0
  21. package/dist/chunks/6314.bd8edc3a.js.map +1 -0
  22. package/dist/chunks/{7218.63d95e50.js → 7218.75e43f86.js} +2 -2
  23. package/dist/chunks/{4837.5768107a.js.map → 7218.75e43f86.js.map} +1 -1
  24. package/dist/chunks/{8097.e3f6f00d.js → 8097.c532b8c8.js} +2 -2
  25. package/dist/chunks/{8097.e3f6f00d.js.map → 8097.c532b8c8.js.map} +1 -1
  26. package/dist/chunks/china-map-chart.c33ff7d1.js +2 -0
  27. package/dist/chunks/china-map-chart.c33ff7d1.js.map +1 -0
  28. package/dist/chunks/{complex-search.0e47f65c.js → complex-search.e7c98e9f.js} +2 -2
  29. package/dist/chunks/{complex-search.0e47f65c.js.map → complex-search.e7c98e9f.js.map} +1 -1
  30. package/dist/chunks/{graph-text.c8127661.js → graph-text.ea81dc98.js} +2 -2
  31. package/dist/chunks/{graph-text.c8127661.js.map → graph-text.ea81dc98.js.map} +1 -1
  32. package/dist/chunks/{main.901c61b4.js → main.37f5a4f7.js} +2 -2
  33. package/dist/chunks/{main.901c61b4.js.map → main.37f5a4f7.js.map} +1 -1
  34. package/dist/chunks/{modern-style-treemap.caae4443.js → modern-style-treemap.f6bc4dbf.js} +3 -3
  35. package/dist/chunks/{modern-style-treemap.caae4443.js.map → modern-style-treemap.f6bc4dbf.js.map} +1 -1
  36. package/dist/examples.json +17 -17
  37. package/dist/index.50f7b88d.js +2 -0
  38. package/dist/{index.60bb7d4d.js.map → index.50f7b88d.js.map} +1 -1
  39. package/dist/manifest.json +180 -180
  40. package/dist/types.json +206 -206
  41. package/package.json +2 -2
  42. package/dist/chunks/1122.c4ac62cc.js +0 -2
  43. package/dist/chunks/1122.c4ac62cc.js.map +0 -1
  44. package/dist/chunks/3933.55ee37a2.js +0 -2
  45. package/dist/chunks/3933.55ee37a2.js.map +0 -1
  46. package/dist/chunks/4263.eb2f854f.js.map +0 -1
  47. package/dist/chunks/5399.a2e48ba8.js.map +0 -1
  48. package/dist/chunks/5478.8d7dee10.js +0 -3
  49. package/dist/chunks/5478.8d7dee10.js.map +0 -1
  50. package/dist/chunks/6314.96007900.js +0 -2
  51. package/dist/chunks/6314.96007900.js.map +0 -1
  52. package/dist/chunks/china-map-chart.3ef92a46.js +0 -2
  53. package/dist/chunks/china-map-chart.3ef92a46.js.map +0 -1
  54. package/dist/index.60bb7d4d.js +0 -2
  55. /package/dist/chunks/{5478.8d7dee10.js.LICENSE.txt → 3413.7135d330.js.LICENSE.txt} +0 -0
  56. /package/dist/chunks/{modern-style-treemap.caae4443.js.LICENSE.txt → modern-style-treemap.f6bc4dbf.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -40,6 +40,110 @@
40
40
  "events": [],
41
41
  "methods": []
42
42
  },
43
+ "data-view.modern-style-component-title": {
44
+ "properties": [
45
+ {
46
+ "name": "hideLeftComponent",
47
+ "annotation": {
48
+ "type": "keyword",
49
+ "value": "boolean"
50
+ }
51
+ },
52
+ {
53
+ "name": "hideRightComponent",
54
+ "annotation": {
55
+ "type": "keyword",
56
+ "value": "boolean"
57
+ }
58
+ },
59
+ {
60
+ "name": "componentTitle",
61
+ "annotation": {
62
+ "type": "keyword",
63
+ "value": "string"
64
+ }
65
+ },
66
+ {
67
+ "name": "titleTextStyle",
68
+ "annotation": {
69
+ "type": "reference",
70
+ "typeName": {
71
+ "type": "identifier",
72
+ "name": "CSSProperties"
73
+ }
74
+ }
75
+ },
76
+ {
77
+ "name": "squareColor",
78
+ "annotation": {
79
+ "type": "indexedAccess",
80
+ "objectType": {
81
+ "type": "reference",
82
+ "typeName": {
83
+ "type": "identifier",
84
+ "name": "CSSProperties"
85
+ }
86
+ },
87
+ "indexType": {
88
+ "type": "jsLiteral",
89
+ "value": "color"
90
+ }
91
+ }
92
+ }
93
+ ],
94
+ "events": [],
95
+ "methods": []
96
+ },
97
+ "data-view.modern-style-page-title": {
98
+ "properties": [
99
+ {
100
+ "name": "pageTitle",
101
+ "annotation": {
102
+ "type": "keyword",
103
+ "value": "string"
104
+ }
105
+ },
106
+ {
107
+ "name": "description",
108
+ "annotation": {
109
+ "type": "keyword",
110
+ "value": "string"
111
+ }
112
+ },
113
+ {
114
+ "name": "backgroundStyle",
115
+ "annotation": {
116
+ "type": "reference",
117
+ "typeName": {
118
+ "type": "identifier",
119
+ "name": "CSSProperties"
120
+ }
121
+ }
122
+ },
123
+ {
124
+ "name": "leftRoundStyle",
125
+ "annotation": {
126
+ "type": "reference",
127
+ "typeName": {
128
+ "type": "identifier",
129
+ "name": "CSSProperties"
130
+ }
131
+ }
132
+ },
133
+ {
134
+ "name": "rightRoundStyle",
135
+ "annotation": {
136
+ "type": "reference",
137
+ "typeName": {
138
+ "type": "identifier",
139
+ "name": "CSSProperties"
140
+ }
141
+ }
142
+ }
143
+ ],
144
+ "events": [],
145
+ "methods": []
146
+ },
43
147
  "data-view.tabs-drawer": {
44
148
  "properties": [
45
149
  {
@@ -233,182 +337,6 @@
233
337
  }
234
338
  ]
235
339
  },
236
- "data-view.modern-style-page-title": {
237
- "properties": [
238
- {
239
- "name": "pageTitle",
240
- "annotation": {
241
- "type": "keyword",
242
- "value": "string"
243
- }
244
- },
245
- {
246
- "name": "description",
247
- "annotation": {
248
- "type": "keyword",
249
- "value": "string"
250
- }
251
- },
252
- {
253
- "name": "backgroundStyle",
254
- "annotation": {
255
- "type": "reference",
256
- "typeName": {
257
- "type": "identifier",
258
- "name": "CSSProperties"
259
- }
260
- }
261
- },
262
- {
263
- "name": "leftRoundStyle",
264
- "annotation": {
265
- "type": "reference",
266
- "typeName": {
267
- "type": "identifier",
268
- "name": "CSSProperties"
269
- }
270
- }
271
- },
272
- {
273
- "name": "rightRoundStyle",
274
- "annotation": {
275
- "type": "reference",
276
- "typeName": {
277
- "type": "identifier",
278
- "name": "CSSProperties"
279
- }
280
- }
281
- }
282
- ],
283
- "events": [],
284
- "methods": []
285
- },
286
- "data-view.modern-style-component-title": {
287
- "properties": [
288
- {
289
- "name": "hideLeftComponent",
290
- "annotation": {
291
- "type": "keyword",
292
- "value": "boolean"
293
- }
294
- },
295
- {
296
- "name": "hideRightComponent",
297
- "annotation": {
298
- "type": "keyword",
299
- "value": "boolean"
300
- }
301
- },
302
- {
303
- "name": "componentTitle",
304
- "annotation": {
305
- "type": "keyword",
306
- "value": "string"
307
- }
308
- },
309
- {
310
- "name": "titleTextStyle",
311
- "annotation": {
312
- "type": "reference",
313
- "typeName": {
314
- "type": "identifier",
315
- "name": "CSSProperties"
316
- }
317
- }
318
- },
319
- {
320
- "name": "squareColor",
321
- "annotation": {
322
- "type": "indexedAccess",
323
- "objectType": {
324
- "type": "reference",
325
- "typeName": {
326
- "type": "identifier",
327
- "name": "CSSProperties"
328
- }
329
- },
330
- "indexType": {
331
- "type": "jsLiteral",
332
- "value": "color"
333
- }
334
- }
335
- }
336
- ],
337
- "events": [],
338
- "methods": []
339
- },
340
- "data-view.dropdown-menu": {
341
- "properties": [
342
- {
343
- "name": "options",
344
- "annotation": {
345
- "type": "array",
346
- "elementType": {
347
- "type": "typeLiteral",
348
- "members": [
349
- {
350
- "type": "propertySignature",
351
- "key": {
352
- "type": "identifier",
353
- "name": "label"
354
- },
355
- "annotation": {
356
- "type": "keyword",
357
- "value": "string"
358
- },
359
- "computed": false
360
- },
361
- {
362
- "type": "propertySignature",
363
- "key": {
364
- "type": "identifier",
365
- "name": "value"
366
- },
367
- "annotation": {
368
- "type": "keyword",
369
- "value": "string"
370
- },
371
- "computed": false
372
- }
373
- ]
374
- }
375
- }
376
- },
377
- {
378
- "name": "value",
379
- "annotation": {
380
- "type": "keyword",
381
- "value": "string"
382
- }
383
- },
384
- {
385
- "name": "placeholder",
386
- "annotation": {
387
- "type": "keyword",
388
- "value": "string"
389
- }
390
- },
391
- {
392
- "name": "allowClear",
393
- "annotation": {
394
- "type": "keyword",
395
- "value": "boolean"
396
- }
397
- }
398
- ],
399
- "events": [
400
- {
401
- "name": "value.change",
402
- "detail": {
403
- "annotation": {
404
- "type": "keyword",
405
- "value": "string"
406
- }
407
- }
408
- }
409
- ],
410
- "methods": []
411
- },
412
340
  "data-view.battery-chart": {
413
341
  "properties": [
414
342
  {
@@ -548,6 +476,78 @@
548
476
  }
549
477
  ]
550
478
  },
479
+ "data-view.dropdown-menu": {
480
+ "properties": [
481
+ {
482
+ "name": "options",
483
+ "annotation": {
484
+ "type": "array",
485
+ "elementType": {
486
+ "type": "typeLiteral",
487
+ "members": [
488
+ {
489
+ "type": "propertySignature",
490
+ "key": {
491
+ "type": "identifier",
492
+ "name": "label"
493
+ },
494
+ "annotation": {
495
+ "type": "keyword",
496
+ "value": "string"
497
+ },
498
+ "computed": false
499
+ },
500
+ {
501
+ "type": "propertySignature",
502
+ "key": {
503
+ "type": "identifier",
504
+ "name": "value"
505
+ },
506
+ "annotation": {
507
+ "type": "keyword",
508
+ "value": "string"
509
+ },
510
+ "computed": false
511
+ }
512
+ ]
513
+ }
514
+ }
515
+ },
516
+ {
517
+ "name": "value",
518
+ "annotation": {
519
+ "type": "keyword",
520
+ "value": "string"
521
+ }
522
+ },
523
+ {
524
+ "name": "placeholder",
525
+ "annotation": {
526
+ "type": "keyword",
527
+ "value": "string"
528
+ }
529
+ },
530
+ {
531
+ "name": "allowClear",
532
+ "annotation": {
533
+ "type": "keyword",
534
+ "value": "boolean"
535
+ }
536
+ }
537
+ ],
538
+ "events": [
539
+ {
540
+ "name": "value.change",
541
+ "detail": {
542
+ "annotation": {
543
+ "type": "keyword",
544
+ "value": "string"
545
+ }
546
+ }
547
+ }
548
+ ],
549
+ "methods": []
550
+ },
551
551
  "data-view.particle-animation": {
552
552
  "properties": [
553
553
  {
@@ -1348,36 +1348,6 @@
1348
1348
  "events": [],
1349
1349
  "methods": []
1350
1350
  },
1351
- "data-view.gear-background": {
1352
- "properties": [
1353
- {
1354
- "name": "color",
1355
- "annotation": {
1356
- "type": "indexedAccess",
1357
- "objectType": {
1358
- "type": "reference",
1359
- "typeName": {
1360
- "type": "qualifiedName",
1361
- "left": {
1362
- "type": "identifier",
1363
- "name": "React"
1364
- },
1365
- "right": {
1366
- "type": "identifier",
1367
- "name": "CSSProperties"
1368
- }
1369
- }
1370
- },
1371
- "indexType": {
1372
- "type": "jsLiteral",
1373
- "value": "color"
1374
- }
1375
- }
1376
- }
1377
- ],
1378
- "events": [],
1379
- "methods": []
1380
- },
1381
1351
  "data-view.grid-background": {
1382
1352
  "properties": [
1383
1353
  {
@@ -1501,6 +1471,36 @@
1501
1471
  }
1502
1472
  ]
1503
1473
  },
1474
+ "data-view.gear-background": {
1475
+ "properties": [
1476
+ {
1477
+ "name": "color",
1478
+ "annotation": {
1479
+ "type": "indexedAccess",
1480
+ "objectType": {
1481
+ "type": "reference",
1482
+ "typeName": {
1483
+ "type": "qualifiedName",
1484
+ "left": {
1485
+ "type": "identifier",
1486
+ "name": "React"
1487
+ },
1488
+ "right": {
1489
+ "type": "identifier",
1490
+ "name": "CSSProperties"
1491
+ }
1492
+ }
1493
+ },
1494
+ "indexType": {
1495
+ "type": "jsLiteral",
1496
+ "value": "color"
1497
+ }
1498
+ }
1499
+ }
1500
+ ],
1501
+ "events": [],
1502
+ "methods": []
1503
+ },
1504
1504
  "data-view.title-text": {
1505
1505
  "properties": [
1506
1506
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/data-view",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/data-view",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,5 +41,5 @@
41
41
  "peerDependencies": {
42
42
  "@next-bricks/icons": "*"
43
43
  },
44
- "gitHead": "618d48256d1463d33e356a80ddb4294882b8257e"
44
+ "gitHead": "0f122f6bdeb94c9646b86e90b25e188eec24f037"
45
45
  }
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_data_view=globalThis.webpackChunk_next_bricks_data_view||[]).push([[1122],{24586:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(11369);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},11369:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(17545);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:t+""}},17545:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},61122:(e,t,n)=>{n.r(t),n.d(t,{__dev_only_clearGlobalExecutionContextStack:()=>q,__dev_only_getGlobalExecutionContextStack:()=>W,cook:()=>G,isEvaluable:()=>ee,isTrackAll:()=>ne,precook:()=>J,precookFunction:()=>Q,preevaluate:()=>Y,shouldAllowRecursiveEvaluations:()=>te});var r=n(24586);let i=function(e){return e[e.LEXICAL=0]="LEXICAL",e[e.STRICT=1]="STRICT",e}({});const o=Symbol.for("SourceNode"),a=Symbol.for("FormalParameters"),s=Symbol.for("ECMAScriptCode"),c=Symbol.for("Environment"),l=Symbol.for("IsConstructor"),u=Symbol.for("ThisMode"),d=Symbol.for("$DebuggerCall$"),f=Symbol.for("$DebuggerScope$"),y=Symbol.for("$DebuggerNode$"),p=Symbol.for("$DebuggerReturn$");class m{constructor(){(0,r.A)(this,"VariableEnvironment",void 0),(0,r.A)(this,"LexicalEnvironment",void 0),(0,r.A)(this,"Function",void 0)}}let v=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LEXICAL=1]="LEXICAL",e[e.INITIALIZED=2]="INITIALIZED",e}({});class g{constructor(e){(0,r.A)(this,"OuterEnv",void 0),(0,r.A)(this,"bindingMap",new Map),(0,r.A)(this,"ThisValue",void 0),(0,r.A)(this,"ThisBindingStatus",void 0),this.OuterEnv=e}HasBinding(e){return this.bindingMap.has(e)}CreateMutableBinding(e,t){return this.bindingMap.set(e,{mutable:!0,deletable:t}),x(void 0)}CreateImmutableBinding(e,t){return this.bindingMap.set(e,{strict:t}),x(void 0)}InitializeBinding(e,t){const n=this.bindingMap.get(e);return Object.assign(n,{initialized:!0,value:t}),x(void 0)}SetMutableBinding(e,t,n){const r=this.bindingMap.get(e);if(!r.initialized)throw new ReferenceError(`${e} is not initialized`);if(!r.mutable)throw new TypeError("Assignment to constant variable");return r.value=t,x(void 0)}GetBindingValue(e,t){const n=this.bindingMap.get(e);if(!n.initialized)throw new ReferenceError(`${e} is not initialized`);return n.value}HasThisBinding(){return!1}}class b extends g{}class h extends g{constructor(e){super(e[c]),e[u]===i.LEXICAL?this.ThisBindingStatus=v.LEXICAL:this.ThisBindingStatus=v.UNINITIALIZED}HasThisBinding(){return this.ThisBindingStatus!==v.LEXICAL}BindThisValue(e){if(this.ThisBindingStatus===v.INITIALIZED)throw new Error("This binding has been initialized");this.ThisValue=e,this.ThisBindingStatus=v.INITIALIZED}GetThisBinding(){if(this.ThisBindingStatus===v.UNINITIALIZED)throw new Error("This binding is not initialized");return this.ThisValue}}class E{constructor(e,t,n){(0,r.A)(this,"Base",void 0),(0,r.A)(this,"ReferenceName",void 0),(0,r.A)(this,"Strict",void 0),this.Base=e,this.ReferenceName=t,this.Strict=n}}class w{constructor(e,t){(0,r.A)(this,"Type",void 0),(0,r.A)(this,"Value",void 0),this.Type=e,this.Value=t}}function x(e){return new w("normal",e)}const S=Symbol("empty completion");function A(e){const t=new Set,n=e=>{if(Array.isArray(e))for(const t of e)n(t);else if(e)switch(e.type){case"Identifier":return void t.add(e.name);case"VariableDeclaration":return n(e.declarations);case"VariableDeclarator":case"FunctionDeclaration":return n(e.id);case"ArrayPattern":return n(e.elements);case"AssignmentPattern":return n(e.left);case"ObjectPattern":return n(e.properties);case"Property":return n(e.value);case"RestElement":return n(e.argument)}};return n(e),Array.from(t)}function L(e){const t=e=>{if(Array.isArray(e))return e.some(t);if(e)switch(e.type){case"ArrayPattern":return t(e.elements);case"AssignmentPattern":return!0;case"ObjectPattern":return t(e.properties);case"Property":return e.computed||t(e.value);case"RestElement":return t(e.argument)}};return t(e)}function B(e,t){const n=[],r={var:t.var},i=(e,t)=>{if(Array.isArray(e))for(const n of e)i(n,t);else if(e){switch(e.type){case"FunctionDeclaration":return void(Number(!t.var)^Number(t.topLevel)&&n.push(e));case"VariableDeclaration":return void(Number(!t.var)^Number("var"===e.kind)&&n.push(e));case"SwitchCase":return void i(e.consequent,r);case"CatchClause":return void i(e.body,r)}if(t.var)switch(e.type){case"BlockStatement":case"DoWhileStatement":case"WhileStatement":return void i(e.body,r);case"IfStatement":return i(e.consequent,r),void i(e.alternate,r);case"ForStatement":return i(e.init,r),void i(e.body,r);case"ForInStatement":case"ForOfStatement":return i(e.left,r),void i(e.body,r);case"SwitchStatement":return void i(e.cases,r);case"TryStatement":return i(e.block,r),i(e.handler,r),void i(e.finalizer,r)}}};return i(e,t),n}function I(e){return"unresolvable"!==e.Base&&!(e.Base instanceof g)}function T(e,t){return e.Base.InitializeBinding(e.ReferenceName,t)}function C(e,t,n){if(null==t)return e;const r=Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));for(const i of r)if(!n.has(i)){const n=Object.getOwnPropertyDescriptor(t,i);null!=n&&n.enumerable&&(e[i]=t[i])}return e}function k(e,t){const n="const"===e.kind;for(const r of A(e))n?t.CreateImmutableBinding(r,!0):t.CreateMutableBinding(r,!1)}function V(e){return"normal"===e.Type||"continue"==e.Type}function P(e,t){return e.Value!==S?e:new w(e.Type,t)}function O(e){if(e instanceof w&&(e=e.Value),!(e instanceof E))return e;if("unresolvable"===e.Base)throw new ReferenceError(`${e.ReferenceName} is not defined`);return e.Base instanceof g?e.Base.GetBindingValue(e.ReferenceName,e.Strict):e.Base[e.ReferenceName]}function F(e){return"symbol"==typeof e?e:String(e)}function j(e,t){return e[t]}function D(e,t){if("unresolvable"===e.Base)throw new ReferenceError(`${e.ReferenceName} is not defined`);return e.Base instanceof g?e.Base.SetMutableBinding(e.ReferenceName,t,e.Strict):(e.Base[e.ReferenceName]=t,x(void 0))}function M(e){if(t=e,!(Array.isArray(t)||null!=t&&"function"==typeof t[Symbol.iterator]))throw new TypeError(typeof e+" is not iterable");var t;return e[Symbol.iterator]()}function N(e){if(null==e)throw new TypeError("Cannot destructure properties of undefined or null")}function R(e,t,n){return e?e.HasBinding(t)?new E(e,t,n):R(e.OuterEnv,t,n):new E("unresolvable",t,n)}function $(e,t,n){switch(t){case"+":return e+n;case"-":return e-n;case"/":return e/n;case"%":return e%n;case"*":return e*n;case"**":return e**n;case"==":return e==n;case"===":return e===n;case"!=":return e!=n;case"!==":return e!==n;case">":return e>n;case"<":return e<n;case">=":return e>=n;case"<=":return e<=n;case"in":return e in n}throw new SyntaxError(`Unsupported binary operator \`${t}\``)}const z=new WeakSet([Function,Object,Function.prototype,Object.prototype,function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}()]),_=new WeakSet([Array,Map,Set,URLSearchParams,WeakMap,WeakSet,RegExp]),U=[];function q(){U.length=0}function W(){return U}function G(e,t){var n;let{rules:r,debug:v,externalSourceForDebug:g,globalVariables:q={},ArrayConstructor:W=Array,hooks:G={}}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Z="FunctionDeclaration"!==e.type;function H(e){g||function(e){if(z.has(e))throw new TypeError("Cannot access reserved objects such as `Function`.")}(e)}const J=new b(null),K=new m;K.VariableEnvironment=J,K.LexicalEnvironment=J;const Q=[K];for(const[e,t]of Object.entries(q))J.CreateImmutableBinding(e,!0),J.InitializeBinding(e,t);const Y=new WeakMap;let ee;function*te(e,n,r){var i,o;switch(null===(i=G.beforeEvaluate)||void 0===i||i.call(G,e),ee=e,v&&(r||e.type.endsWith("Statement")&&("ExpressionStatement"!==e.type||"CallExpression"!==e.expression.type&&"TaggedTemplateExpression"!==e.expression.type)&&"TryStatement"!==e.type&&"BlockStatement"!==e.type&&"DoWhileStatement"!==e.type&&"WhileStatement"!==e.type&&"ForStatement"!==e.type&&"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(yield),e.type){case"ArrayExpression":{const t=new W;for(const n of e.elements)if(n)if("SpreadElement"===n.type){const e=O(yield*te(n.argument));t.push(...e)}else t.push(O(yield*te(n)));else t.length+=1;return x(t)}case"ArrowFunctionExpression":return Te(e),x(Ee(e));case"BinaryExpression":{const n=O(yield*te(e.left)),r=yield*te(e.right),i=O(r);if(Z&&"|>"===e.operator){if("function"!=typeof i){const n=t.substring(e.right.start,e.right.end);throw new TypeError(`${n} is not a function`)}let o;return r instanceof E&&I(r)&&(o=r.Base),x(i.call(o,n))}return x($(n,e.operator,i))}case"CallExpression":{const t=(yield*te(e.callee,n)).Value,r=O(t);return null==r&&(e.optional||null!=n&&n.skipped)?(n.skipped=!0,x(void 0)):(H(r),v&&(yield),yield*fe(r,t,e.arguments,e.callee))}case"ChainExpression":return yield*te(e.expression,{});case"ConditionalExpression":return x(O(yield*te(O(yield*te(e.test))?e.consequent:e.alternate)));case"Identifier":return x(re(e.name));case"Literal":if(e.regex){if(null===e.value)throw new SyntaxError(`Invalid regular expression: ${e.raw}`);if(e.regex.flags.includes("u"))throw new SyntaxError(`Unsupported unicode flag in regular expression: ${e.raw}`)}return x(e.value);case"LogicalExpression":{const t=O(yield*te(e.left));switch(e.operator){case"&&":return x(t&&O(yield*te(e.right)));case"||":return x(t||O(yield*te(e.right)));case"??":return x(t??O(yield*te(e.right)));default:throw new SyntaxError(`Unsupported logical operator '${e.operator}'`)}}case"MemberExpression":{const t=O((yield*te(e.object,n)).Value);if(null==t&&(e.optional||null!=n&&n.skipped))return n.skipped=!0,x(void 0);H(t);const r=e.computed?yield*function*(e,t,n){const r=F(O(yield*te(t)));return new E(e,r,!0)}(t,e.property):function(e,t,n){ee=t;const r=t.name;return new E(e,r,!0)}(t,e.property);return H(r),x(r)}case"NewExpression":return yield*function*(e,n){const r=O(yield*te(e)),i=yield*ye(n);if("function"!=typeof r||!1===r[l]){const n=t.substring(e.start,e.end);throw new TypeError(`${n} is not a constructor`)}if(!g&&!function(e){return _.has(e)||e===Date}(r)&&r!==W){const n=t.substring(e.start,e.end);throw new TypeError(`${n} is not an allowed constructor`)}return x(new r(...i))}(e.callee,e.arguments);case"ObjectExpression":{const t={};for(const n of e.properties)if("SpreadElement"===n.type)C(t,O(yield*te(n.argument)),new Set);else{if("init"!==n.kind)throw new SyntaxError("Unsupported object getter/setter");const e=n.computed||"Identifier"!==n.key.type?yield*Ae(n.key):n.key.name;if("__proto__"===e)throw new TypeError("Setting '__proto__' property is not allowed");const r=O(yield*te(n.value));n.method&&"function"==typeof r&&we(r,e),t[e]=r}return x(t)}case"SequenceExpression":{let t;for(const n of e.expressions)t=x(O(yield*te(n)));return t}case"TemplateLiteral":{const t=[e.quasis[0].value.cooked];let n=0;for(const r of e.expressions){const i=O(yield*te(r));t.push(String(i)),t.push(e.quasis[n+=1].value.cooked)}return x(t.join(""))}case"TaggedTemplateExpression":{const t=(yield*te(e.tag)).Value,n=O(t);return H(n),v&&(yield),yield*fe(n,t,e.quasi,e.tag)}case"UnaryExpression":{const t=(yield*te(e.argument)).Value;if(!Z&&"delete"===e.operator){if(!(t instanceof E))return x(!0);if(I(t))return x(delete t.Base[t.ReferenceName])}return"typeof"===e.operator?t instanceof E&&"unresolvable"===t.Base?x("undefined"):x(typeof O(t)):x(function(e,t){switch(t){case"!":return!e;case"+":return+e;case"-":return-e;case"void":return}throw new SyntaxError(`Unsupported unary operator \`${t}\``)}(O(t),e.operator))}}if(!Z)switch(e.type){case"AssignmentExpression":{if("="===e.operator){if("ArrayPattern"!==e.left.type&&"ObjectPattern"!==e.left.type){const t=(yield*te(e.left)).Value;let n;return n=ve(e.right)&&"Identifier"===e.left.type?ge(e.right,e.left.name):O(yield*te(e.right)),D(t,n),x(n)}const t=O(yield*te(e.right));return yield*ce(e.left,t),x(t)}const t=(yield*te(e.left)).Value,n=O(t),r=O(yield*te(e.right)),i=function(e,t,n){switch(t){case"+=":case"-=":case"*=":case"/=":case"%=":case"**=":return $(e,t.substr(0,t.length-1),n)}throw new SyntaxError(`Unsupported assignment operator \`${t}\``)}(n,e.operator,r);return D(t,i),x(i)}case"BlockStatement":{if(!e.body.length)return x(S);const t=ne().LexicalEnvironment,n=new b(t);de(e.body,n),ne().LexicalEnvironment=n;const r=yield*me(e.body);return ne().LexicalEnvironment=t,r}case"BreakStatement":return new w("break",S);case"ContinueStatement":return new w("continue",S);case"EmptyStatement":case"FunctionDeclaration":return x(S);case"DoWhileStatement":return ie(yield*function*(e){let t;for(;;){const n=yield*te(e.body);if(!V(n))return P(n,t);if(n.Value!==S&&(t=n.Value),!O(yield*te(e.test,void 0,!0)))return x(t)}}(e));case"ExpressionStatement":case"TSAsExpression":return yield*te(e.expression);case"ForInStatement":case"ForOfStatement":return ie(yield*function*(e){const t=e.left,n="VariableDeclaration"===t.type?"var"===t.kind?"varBinding":"lexicalBinding":"assignment",r="lexicalBinding"===n?A(t):[],i="ForInStatement"===e.type?"enumerate":"iterate",o=yield*function*(e,t,n){const r=ne(),i=r.LexicalEnvironment;if(e.length>0){const t=new b(i);for(const n of e)t.CreateMutableBinding(n,!1);r.LexicalEnvironment=t}const o=yield*te(t,void 0,!0);r.LexicalEnvironment=i;const a=O(o);return"enumerate"===n?null==a?new w("break",S):x(function*(e){for(const t in e)yield t}(a)):x(M(a))}(r,e.right,i);return"normal"!==o.Type?o:yield*function*(e,t,n,r,i){const o="assignment"===i?e:e.declarations[0].id,a=ne().LexicalEnvironment;let s;const c="ObjectPattern"===o.type||"ArrayPattern"===o.type;for(;;){ee=o;const{done:l,value:u}=n.next();if(l)return v&&(yield),x(s);let d,f;if("lexicalBinding"===i){if(f=new b(a),k(e,f),ne().LexicalEnvironment=f,v&&(yield),!c){const[e]=A(o);d=re(e)}}else v&&(yield),c||(d=(yield*te(o)).Value);c?"assignment"===i?yield*ce(o,u):"varBinding"===i?yield*Se(o,u,void 0):yield*Se(o,u,f):"lexicalBinding"===i?T(d,u):D(d,u);const y=yield*te(t);if(ne().LexicalEnvironment=a,!V(y)){const e=P(y,s);if("enumerate"!==r&&void 0!==n.return){const e=n.return();if(!e||!["object","function"].includes(typeof e))throw new TypeError("Iterator result is not an object")}return e}y.Value!==S&&(s=y.Value)}}(t,e.body,o.Value,i,n)}(e));case"ForStatement":return ie(yield*function*(e){var t;if("VariableDeclaration"===(null===(t=e.init)||void 0===t?void 0:t.type)){if("var"===e.init.kind)return yield*te(e.init),yield*ae(e.test,e.update,e.body,[]);const t=ne().LexicalEnvironment,n=new b(t),r="const"===e.init.kind,i=A(e.init);for(const e of i)r?n.CreateImmutableBinding(e,!0):n.CreateMutableBinding(e,!1);ne().LexicalEnvironment=n,yield*te(e.init);const o=r?[]:Array.from(i),a=yield*ae(e.test,e.update,e.body,o);return ne().LexicalEnvironment=t,a}return e.init&&O(yield*te(e.init)),yield*ae(e.test,e.update,e.body,[])}(e));case"FunctionExpression":return Te(e),x(he(e));case"IfStatement":var a;return O(yield*te(e.test))?(null===(a=G.beforeBranch)||void 0===a||a.call(G,e,"if"),P(yield*te(e.consequent),void 0)):(null===(o=G.beforeBranch)||void 0===o||o.call(G,e,"else"),e.alternate?P(yield*te(e.alternate),void 0):x(void 0));case"ReturnStatement":{let t;return e.argument&&(t=O(yield*te(e.argument))),new w("return",t)}case"ThisExpression":if(!g)break;return x(function(){let e=ne().LexicalEnvironment;for(;e;){if(e.HasThisBinding())return e;e=e.OuterEnv}throw new Error("Accessing global this is forbidden")}().GetThisBinding());case"ThrowStatement":throw O(yield*te(e.argument));case"UpdateExpression":{const t=(yield*te(e.argument)).Value,n=Number(O(t)),r="++"===e.operator?n+1:n-1;return D(t,r),x(e.prefix?r:n)}case"SwitchCase":return yield*me(e.consequent);case"SwitchStatement":{const t=O(yield*te(e.discriminant)),n=ne().LexicalEnvironment,r=new b(n);de(e.cases,r),ne().LexicalEnvironment=r;const i=yield*function*(e,t){let n;const r=e.findIndex((e=>!e.test)),i=r>=0,o=i?e.slice(0,r):e;let a=!1;for(const e of o)if(a||(a=yield*oe(e,t)),a){const t=yield*te(e);if(t.Value!==S&&(n=t.Value),"normal"!==t.Type)return P(t,n)}if(!i)return x(n);let s=!1;const c=e.slice(r+1);if(!a)for(const e of c)if(s||(s=yield*oe(e,t)),s){const t=yield*te(e);if(t.Value!==S&&(n=t.Value),"normal"!==t.Type)return P(t,n)}if(s)return x(n);const l=yield*te(e[r]);if(l.Value!==S&&(n=l.Value),"normal"!==l.Type)return P(l,n);for(const e of c){const t=yield*te(e);if(t.Value!==S&&(n=t.Value),"normal"!==t.Type)return P(t,n)}return x(n)}(e.cases,t);return ne().LexicalEnvironment=n,ie(i)}case"TryStatement":{let t;try{t=yield*te(e.block)}catch(n){if(!e.handler)throw n;var s;ee=e.handler,null===(s=G.beforeEvaluate)||void 0===s||s.call(G,e.handler),t=yield*function*(e,t){if(!e.param)return yield*te(e.body);const n=ne().LexicalEnvironment,r=new b(n);for(const t of A(e.param))r.CreateMutableBinding(t,!1);ne().LexicalEnvironment=r,yield*Se(e.param,t,r);const i=yield*te(e.body);return ne().LexicalEnvironment=n,i}(e.handler,n)}finally{if(e.finalizer){const n=yield*te(e.finalizer);"normal"!==n.Type&&(t=n)}}return t}case"VariableDeclaration":{let t;for(const n of e.declarations)if(ee=n,n.init)if("Identifier"===n.id.type){ee=n.init,v&&"CallExpression"!==ee.type&&"TaggedTemplateExpression"!==ee.type&&(yield);const r=n.id.name,i=re(r);let o;o=ve(n.init)?ge(n.init,r):O(yield*te(n.init)),t="var"===e.kind?D(i,o):T(i,o)}else{ee=n.init,v&&"CallExpression"!==ee.type&&"TaggedTemplateExpression"!==ee.type&&(yield);const r=O(yield*te(n.init));t=yield*Se(n.id,r,"var"===e.kind?void 0:ne().LexicalEnvironment)}else t="var"===e.kind?x(S):T(re(n.id.name),void 0);return t}case"WhileStatement":return ie(yield*function*(e){let t;for(;;){if(!O(yield*te(e.test,void 0,!0)))return x(t);const n=yield*te(e.body);if(!V(n))return P(n,t);n.Value!==S&&(t=n.Value)}}(e))}throw new SyntaxError(`Unsupported node type \`${e.type}\``)}function ne(){return Q[Q.length-1]}function re(e,t){return t||(t=ne().LexicalEnvironment),R(t,e,!0)}function ie(e){return"break"===e.Type?e.Value===S?x(void 0):x(e.Value):e}function*oe(e,t){return t===O(yield*te(e.test))}function*ae(e,t,n,r){let i;for(se(r);;){if(e&&!O(yield*te(e,void 0,!0)))return x(i);const o=yield*te(n);if(!V(o))return P(o,i);o.Value&&(i=o.Value),se(r),t&&O(yield*te(t,void 0,!0))}}function se(e){if(0===e.length)return;const t=ne().LexicalEnvironment,n=t.OuterEnv,r=new b(n);for(const n of e){r.CreateMutableBinding(n,!1);const e=t.GetBindingValue(n,!1);r.InitializeBinding(n,e)}ne().LexicalEnvironment=r}function*ce(e,t){if("ObjectPattern"===e.type)return N(t),e.properties.length>0&&(yield*function*(e,t){const n=new Set;for(const r of e)if("Property"===r.type){const e=r.computed||"Identifier"!==r.key.type?yield*Ae(r.key):r.key.name,i="AssignmentPattern"===r.value.type?r.value.left:r.value;if("Identifier"===i.type){const o=re(i.name);let a=j(t,e);"AssignmentPattern"===r.value.type&&void 0===a&&(a=ve(r.value.right)?ge(r.value.right,i.name):O(yield*te(r.value.right))),D(o,a),n.add(e)}else yield*le(r.value,t,e),n.add(e)}else yield*ue(r,t,n)}(e.properties,t)),x(S);const n=M(t);return yield*function*(e,t){let n=x(S);for(const r of e){if(!r){t.next(),n=x(S);continue}const e="RestElement"===r.type?r.argument:"AssignmentPattern"===r.type?r.left:r,i="ArrayPattern"===e.type||"ObjectPattern"===e.type;let o,a;if(i||(o=(yield*te(e)).Value),"RestElement"!==r.type){const{done:n,value:i}=t.next(),o=n?void 0:i;a="AssignmentPattern"===r.type&&void 0===o?ve(r.right)&&"Identifier"===e.type?ge(r.right,e.name):O(yield*te(r.right)):o}else{a=new W;let e=0;for(;;){const{done:n,value:r}=t.next();if(n)break;a[e]=r,e++}}n=i?yield*ce(e,a):D(o,a)}return n}(e.elements,n)}function*le(e,t,n){const r="AssignmentPattern"===e.type?e.left:e,i="ArrayPattern"===r.type||"ObjectPattern"===r.type;let o;i||(o=(yield*te(r)).Value);const a=j(t,n);let s;return s="AssignmentPattern"===e.type&&void 0===a?O(yield*te(e.right)):a,i?yield*ce(r,s):D(o,s)}function*ue(e,t,n){return D((yield*te(e.argument)).Value,C({},t,n))}function de(e,t){const n=B(e,{var:!1,topLevel:!1});for(const e of n){const n="VariableDeclaration"===e.type&&"const"===e.kind;for(const r of A(e))n?t.CreateImmutableBinding(r,!0):t.CreateMutableBinding(r,!1);if("FunctionDeclaration"===e.type){const[n]=A(e),r=be(e,t);t.InitializeBinding(n,r)}}}function*fe(e,n,r,i){let o;n instanceof E&&I(n)&&(o=n.Base);const a=yield*ye(r);if("function"!=typeof e){const e=t.substring(i.start,i.end);throw new TypeError(`${e} is not a function`)}if(v||g){const t=e[d];if(t){const e=yield*t.apply(o,a);return H(e),x(e)}}const s=e.apply(o,a);return H(s),x(s)}function*ye(e){const t=[];if(Array.isArray(e))for(const n of e)if("SpreadElement"===n.type){const e=O(yield*te(n.argument));t.push(...e)}else t.push(O(yield*te(n)));else{t.push(function(e){const t=Y.get(e);if(t)return t;const n=e.quasis.map((e=>e.value.raw)),r=e.quasis.map((e=>e.value.cooked));return Object.freeze(n),Object.defineProperty(r,"raw",{value:n,writable:!1,enumerable:!1,configurable:!1}),Object.freeze(r),Y.set(e,r),r}(e));for(const n of e.expressions)t.push(O(yield*te(n)))}return t}function*pe(e,t,n){var c;null===(c=G.beforeCall)||void 0===c||c.call(G,e[o]),function(e,t,n){if(e[u]===i.LEXICAL)return;const r=t.LexicalEnvironment;null==r||r.BindThisValue(n)}(e,function(e){const t=new m;t.Function=e;const n=new h(e);return t.VariableEnvironment=n,t.LexicalEnvironment=n,Q.push(t),U.push(t),t}(e),t);const l=yield*function*(e,t){return yield*function*(e,t,n){return yield*function*(e,t){const n=ne(),o=e[s],c=e[a],l=A(c),d=L(c),f=B(o,{var:!0,topLevel:!0}),y=A(f),p=[],m=[];for(let e=f.length-1;e>=0;e--){const t=f[e];if("FunctionDeclaration"===t.type){Te(t);const[e]=A(t);p.includes(e)||(p.unshift(e),m.unshift(t))}else if(null!=r&&r.noVar)throw new SyntaxError("Var declaration is not recommended, use `let` or `const` instead")}const v=!!g&&e[u]!==i.LEXICAL,h=n.LexicalEnvironment;for(const e of l)h.CreateMutableBinding(e,!1);let E=l;if(v){const e=function(e){const t=[...e],n={};Object.defineProperty(n,"length",{value:t.length,writable:!0,configurable:!0});for(let e=0;e<t.length;e++)n[String(e)]=t[e];Object.defineProperty(n,Symbol.iterator,{value:Array.prototype.values,writable:!0,configurable:!0});const r=()=>{throw new TypeError("'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them")};return Object.defineProperty(n,"callee",{get:r,set:r}),n}(t);h.CreateImmutableBinding("arguments",!1),h.InitializeBinding("arguments",e),E=l.concat("arguments")}const w=M(t);let x;if(yield*Be(c,w,h),d){x=new b(h),n.VariableEnvironment=x;const e=[];for(const t of y)if(!e.includes(t)){let n;e.push(t),x.CreateMutableBinding(t,!1),E.includes(t)&&!p.includes(t)&&(n=h.GetBindingValue(t,!1)),x.InitializeBinding(t,n)}}else{const e=[...E];for(const t of y)e.includes(t)||(e.push(t),h.CreateMutableBinding(t,!1),h.InitializeBinding(t,void 0));x=h}const S=x;n.LexicalEnvironment=S;const I=B(o,{var:!1,topLevel:!0});for(const e of I)for(const t of A(e))"const"===e.kind?S.CreateImmutableBinding(t,!0):S.CreateMutableBinding(t,!1);for(const e of m){const[t]=A(e),n=be(e,S);x.SetMutableBinding(t,n,!1)}}(t,n),Array.isArray(e)?yield*me(e):new w("return",O(yield*te(e)))}(e[s],e,t)}(e,n);if(v&&(ee={...e[o],[p]:!0},yield{type:"return",value:"return"===l.Type?l.Value:void 0}),Q.pop(),U.pop(),"return"===l.Type)return l.Value}function*me(e){let t=x(S);for(const n of e){const e=yield*te(n);if("normal"!==e.Type)return e;t=P(t,e.Value)}return t}function ve(e){return"FunctionExpression"===e.type&&!e.id||"ArrowFunctionExpression"===e.type}function ge(e,t){var n;switch(null===(n=G.beforeEvaluate)||void 0===n||n.call(G,e),e.type){case"FunctionExpression":return he(e,t);case"ArrowFunctionExpression":return Ee(e,t);default:throw new Error(`Unexpected node type for NamedEvaluation: ${e.type}`)}}function be(e,t){const n=xe(e,t,!0,!1);return e.id&&we(n,e.id.name),n}function he(e,t){const n=ne().LexicalEnvironment;if(e.id){const t=e.id.name,r=new b(n);r.CreateImmutableBinding(t,!1);const i=xe(e,r,!0,!1);return we(i,t),r.InitializeBinding(t,i),i}{const r=xe(e,n,!0,!1);return we(r,t??""),r}}function Ee(e,t){const n=xe(e,ne().LexicalEnvironment,!1,!0);return we(n,t??""),n}function we(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}function xe(e,t,n,r){const f=function(){return X(pe(f,this,arguments))};Object.defineProperties(f,{[o]:{value:e},[a]:{value:e.params},[s]:{value:"BlockStatement"===e.body.type?e.body.body:e.body},[c]:{value:t},[l]:{value:n},[u]:{value:r?i.LEXICAL:i.STRICT}});const y=function(e){let t=0;for(const n of e)switch(n.type){case"AssignmentPattern":case"RestElement":return t;default:t++}return t}(e.params);return Object.defineProperty(f,"length",{configurable:!0,value:y}),(v||g)&&Object.defineProperty(f,d,{value:function(){return pe(f,this,arguments)}}),f}function*Se(e,t,n){switch(e.type){case"Identifier":return function(e,t,n){return n.InitializeBinding(e,t),x(S)}(e.name,t,n);case"ObjectPattern":return N(t),yield*function*(e,t,n){const r=new Set;for(const i of e){if("RestElement"===i.type)return Le(i,t,n,r);if(i.computed||"Identifier"!==i.key.type){const e=yield*Ae(i.key);yield*Ie(i.value,t,n,e),r.add(e)}else yield*Ie(i.value,t,n,i.key.name),r.add(i.key.name)}return x(S)}(e.properties,t,n);case"ArrayPattern":{const r=M(t);return yield*Be(e.elements,r,n)}}}function*Ae(e){return F(O(yield*te(e)))}function Le(e,t,n,r){const i=re(e.argument.name,n),o=C({},t,r);return n?T(i,o):D(i,o)}function*Be(e,t,n){if(0===e.length)return x(S);let r;for(const i of e)if(i)if("RestElement"===i.type)if("Identifier"===i.argument.type){const e=re(i.argument.name,n),o=new W;let a=0;for(;;){const{done:i,value:s}=t.next();if(i){r=n?T(e,o):D(e,o);break}o[a]=s,a++}}else{const e=new W;let o=0;for(;;){const{done:a,value:s}=t.next();if(a){r=yield*Se(i.argument,e,n);break}e[o]=s,o++}}else{const e="AssignmentPattern"===i.type?i.left:i;switch(e.type){case"ObjectPattern":case"ArrayPattern":{let o;const{done:a,value:s}=t.next();a||(o=s),"AssignmentPattern"===i.type&&void 0===o&&(o=O(yield*te(i.right))),r=yield*Se(e,o,n);break}case"Identifier":{const o=e.name,a=re(o,n);let s;const{done:c,value:l}=t.next();c||(s=l),"AssignmentPattern"===i.type&&void 0===s&&(s=ve(i.right)?ge(i.right,o):O(yield*te(i.right))),r=n?T(a,s):D(a,s);break}}}else t.next(),r=x(S);return r}function*Ie(e,t,n,r){if("Identifier"===e.type||"AssignmentPattern"===e.type&&"Identifier"===e.left.type){const i="Identifier"===e.type?e.name:e.left.name,o=re(i,n);let a=j(t,r);return"AssignmentPattern"===e.type&&void 0===a&&(a=ve(e.right)?ge(e.right,i):O(yield*te(e.right))),n?T(o,a):D(o,a)}let i=j(t,r);return"AssignmentPattern"===e.type&&void 0===i&&(i=O(yield*te(e.right))),yield*Se("AssignmentPattern"===e.type?e.left:e,i,n)}function Te(e){if(e.async||e.generator)throw new SyntaxError((e.async?"Async":"Generator")+" function is not allowed");if(Z&&!e.expression)throw new SyntaxError("Only an `Expression` is allowed in `ArrowFunctionExpression`'s body")}if(Z)return O(X(te(e)));null===(n=G.beforeEvaluate)||void 0===n||n.call(G,e),Te(e);const[Ce]=A(e);J.CreateImmutableBinding(Ce,!0);const ke=be(e,J);return J.InitializeBinding(Ce,ke),v&&Object.defineProperties(ke,{[f]:{value:function(){return ne().LexicalEnvironment}},[y]:{value:function(){return ee}}}),ke}function X(e){for(;;){const{done:t,value:n}=e.next();if(t)return n}}class Z{constructor(){(0,r.A)(this,"VariableEnvironment",void 0),(0,r.A)(this,"LexicalEnvironment",void 0)}}class H{constructor(e){(0,r.A)(this,"OuterEnv",void 0),(0,r.A)(this,"bindingSet",new Set),this.OuterEnv=e}HasBinding(e){return this.bindingSet.has(e)}CreateBinding(e){this.bindingSet.add(e)}}function J(e){let{expressionOnly:t,visitors:n,withParent:r,externalSourceForDebug:i,hooks:o={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=new Set,s=[],c=new H(null),l=new Z;function u(){return s[s.length-1]}function d(e,t,n){for(const r of t)f(e[r],null==n?void 0:n.concat({node:e,key:r}))}function f(e,r){if(Array.isArray(e))e.forEach(((e,t)=>{f(e,r?r.slice(0,-1).concat({...r[r.length-1],index:t}):r)}));else if(e){var s,c;switch(null===(s=o.beforeVisit)||void 0===s||s.call(o,e,r),function(e){var t,r;n&&(t=n,r=e.type,Object.prototype.hasOwnProperty.call(t,r))&&n[e.type](e)}(e),e.type){case"Identifier":var l;return h=e.name,void(p(u().LexicalEnvironment,h)||(null===(l=o.beforeVisitGlobal)||void 0===l||l.call(o,e,r),a.add(e.name)));case"ArrayExpression":case"ArrayPattern":return void d(e,["elements"],r);case"ArrowFunctionExpression":return void v(g(e,u().LexicalEnvironment,!0),r);case"AssignmentPattern":case"BinaryExpression":case"LogicalExpression":return void d(e,["left","right"],r);case"CallExpression":case"NewExpression":return void d(e,["callee","arguments"],r);case"ChainExpression":return void d(e,["expression"],r);case"ConditionalExpression":return void d(e,["test","consequent","alternate"],r);case"MemberExpression":return d(e,["object"],r),void(e.computed&&d(e,["property"],r));case"ObjectExpression":case"ObjectPattern":return void d(e,["properties"],r);case"Property":return e.computed&&d(e,["key"],r),void d(e,["value"],r);case"RestElement":case"SpreadElement":case"UnaryExpression":return void d(e,["argument"],r);case"SequenceExpression":case"TemplateLiteral":return void d(e,["expressions"],r);case"TaggedTemplateExpression":return void d(e,["tag","quasi"],r);case"Literal":return}if(!t)switch(e.type){case"AssignmentExpression":return void d(e,["right","left"],r);case"BlockStatement":{if(!e.body.length)return;const t=u(),n=t.LexicalEnvironment,i=new H(n);return m(e.body,i),t.LexicalEnvironment=i,d(e,["body"],r),void(t.LexicalEnvironment=n)}case"BreakStatement":case"ContinueStatement":case"EmptyStatement":return;case"CatchClause":{const t=u(),n=t.LexicalEnvironment,i=new H(n);return y(e.param,i),t.LexicalEnvironment=i,d(e,["param","body"],r),void(t.LexicalEnvironment=n)}case"DoWhileStatement":return void d(e,["body","test"],r);case"ExpressionStatement":case"TSAsExpression":return void d(e,["expression"],r);case"ForInStatement":case"ForOfStatement":{const t="VariableDeclaration"===e.left.type&&"var"!==e.left.kind,n=u(),i=n.LexicalEnvironment;if(t){const t=new H(i);y(e.left,t),n.LexicalEnvironment=t}if(d(e,["right"],r),n.LexicalEnvironment=i,t){const t=new H(i);y(e.left,t),n.LexicalEnvironment=t}return d(e,["left","body"],r),void(n.LexicalEnvironment=i)}case"ForStatement":{var b;const t="VariableDeclaration"===(null===(b=e.init)||void 0===b?void 0:b.type)&&"var"!==e.init.kind,n=u(),i=n.LexicalEnvironment;if(t){const t=new H(i);y(e.init,t),n.LexicalEnvironment=t}return d(e,["init","test","body","update"],r),void(n.LexicalEnvironment=i)}case"FunctionDeclaration":{const[t]=A(e),n=u().LexicalEnvironment,i=g(e,n);return n.CreateBinding(t),void v(i,r)}case"FunctionExpression":{const t=function(e){const t=u().LexicalEnvironment;if(!e.id)return g(e,t);const n=e.id.name,r=new H(t);return r.CreateBinding(n),g(e,r)}(e);return void v(t,r)}case"IfStatement":return void d(e,["test","consequent","alternate"],r);case"ReturnStatement":case"ThrowStatement":case"UpdateExpression":return void d(e,["argument"],r);case"SwitchCase":return void d(e,["test","consequent"],r);case"SwitchStatement":{d(e,["discriminant"],r);const t=u(),n=t.LexicalEnvironment,i=new H(n);return m(e.cases,i),t.LexicalEnvironment=i,d(e,["cases"],r),void(t.LexicalEnvironment=n)}case"ThisExpression":if(!i)break;return;case"TryStatement":return void d(e,["block","handler","finalizer"],r);case"VariableDeclaration":return void d(e,["declarations"],r);case"VariableDeclarator":return void d(e,["id","init"],r);case"WhileStatement":return void d(e,["test","body"],r)}(null===(c=o.beforeVisitUnknown)||void 0===c?void 0:c.call(o,e,r))||console.warn(`Unsupported node type \`${e.type}\``)}var h}function y(e,t){for(const n of A(e))t.CreateBinding(n)}function p(e,t){return!!e&&(e.HasBinding(t)||p(e.OuterEnv,t))}function m(e,t){y(B(e,{var:!1,topLevel:!1}),t)}function v(e,t){!function(e){const t=new Z,n=new H(e.Environment);t.VariableEnvironment=n,t.LexicalEnvironment=n,s.push(t)}(e),function(e,t){const n=u(),r=e.ECMAScriptCode,o=e.FormalParameters,a=L(o),s=A(B(r,{var:!0,topLevel:!0})),c=!!i&&"LEXICAL"!==e.ThisMode,l=n.LexicalEnvironment;let d;if(y(o,l),c&&l.CreateBinding("arguments"),f(o,null==t?void 0:t.concat({node:e.Function,key:"params"})),a){d=new H(l),n.VariableEnvironment=d;for(const e of s)d.CreateBinding(e)}else{for(const e of s)l.CreateBinding(e);d=l}const p=d;n.LexicalEnvironment=p,y(B(r,{var:!1,topLevel:!0}),p)}(e,t),f(e.ECMAScriptCode,null==t?void 0:t.concat({node:e.Function,key:"body"}).concat("BlockStatement"===e.Function.body.type?{node:e.Function.body,key:"body"}:[])),s.pop()}function g(e,t,n){return{Function:e,FormalParameters:e.params,ECMAScriptCode:"BlockStatement"===e.body.type?e.body.body:e.body,Environment:t,ThisMode:n?"LEXICAL":"STRICT"}}return l.VariableEnvironment=c,l.LexicalEnvironment=c,s.push(l),f(e,r?[]:void 0),a}var K=n(71760);function Q(e){let{typescript:t,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){let{typescript:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,K.parse)(e,{plugins:["estree",t&&"typescript"].filter(Boolean),strictMode:!0,attachComment:!1}).program.body,r=t?[]:n;if(t)for(const e of n)if(e.type.startsWith("TS")){if(/Enum|Import|Export/.test(e.type))throw new SyntaxError(`Unsupported TypeScript syntax: ${e.type}`)}else r.push(e);if(0===r.length)throw new SyntaxError("Function declaration not found");if(r.length>1||"FunctionDeclaration"!==r[0].type)throw new SyntaxError(`Expect a single function declaration at top level, but received: ${r.map((e=>`"${e.type}"`)).join(", ")}`);return r[0]}(e,{typescript:t});return{function:r,attemptToVisitGlobals:J(r,n)}}function Y(e,t){const n=[],r=e.replace(/^\s*<%[~=]?\s|\s%>\s*$/g,(e=>(n.push(e),""))),i=function(e){return(0,K.parseExpression)(e,{plugins:["estree",["pipelineOperator",{proposal:"minimal"}]],attachComment:!1})}(r);return{expression:i,attemptToVisitGlobals:J(i,{...t,expressionOnly:!0}),source:r,prefix:n[0],suffix:n[1]}}function ee(e){return/^\s*<%[~=]?\s/.test(e)&&/\s%>\s*$/.test(e)}function te(e){return/^\s*<%~\s/.test(e)}function ne(e){return/^\s*<%=\s/.test(e)&&/\s%>\s*$/.test(e)}}}]);
2
- //# sourceMappingURL=1122.c4ac62cc.js.map