@next-bricks/presentational 1.7.11 → 1.7.12

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 (78) hide show
  1. package/dist/bricks.json +10 -10
  2. package/dist/chunks/1122.3f63e207.js +2 -0
  3. package/dist/chunks/1122.3f63e207.js.map +1 -0
  4. package/dist/chunks/1940.4788a698.js +2 -0
  5. package/dist/chunks/1940.4788a698.js.map +1 -0
  6. package/dist/chunks/{3171.085647ae.js → 3171.eeed6888.js} +2 -2
  7. package/dist/chunks/{3171.085647ae.js.map → 3171.eeed6888.js.map} +1 -1
  8. package/dist/chunks/{3933.b6ba8c27.js → 3933.58004c33.js} +2 -2
  9. package/dist/chunks/{3933.b6ba8c27.js.map → 3933.58004c33.js.map} +1 -1
  10. package/dist/chunks/4.4e8af91a.js +3 -0
  11. package/dist/chunks/4.4e8af91a.js.map +1 -0
  12. package/dist/chunks/4196.506274c9.js +2 -0
  13. package/dist/chunks/{4196.ecf9cfe6.js.map → 4196.506274c9.js.map} +1 -1
  14. package/dist/chunks/4837.644e1213.js +2 -0
  15. package/dist/chunks/{7218.ce215713.js.map → 4837.644e1213.js.map} +1 -1
  16. package/dist/chunks/{5552.e27c56d9.js → 5552.e96c589c.js} +2 -2
  17. package/dist/chunks/{5552.e27c56d9.js.map → 5552.e96c589c.js.map} +1 -1
  18. package/dist/chunks/{6314.202dc3f6.js → 6314.d55e9acb.js} +2 -2
  19. package/dist/chunks/{6314.202dc3f6.js.map → 6314.d55e9acb.js.map} +1 -1
  20. package/dist/chunks/7218.e6d1335b.js +2 -0
  21. package/dist/chunks/{4837.9ecac754.js.map → 7218.e6d1335b.js.map} +1 -1
  22. package/dist/chunks/7399.de646f71.js +2 -0
  23. package/dist/chunks/{7399.bbae0d80.js.map → 7399.de646f71.js.map} +1 -1
  24. package/dist/chunks/{8097.2cc86170.js → 8097.0cc6a4cb.js} +2 -2
  25. package/dist/chunks/{8097.2cc86170.js.map → 8097.0cc6a4cb.js.map} +1 -1
  26. package/dist/chunks/9559.bf30ab07.js +2 -0
  27. package/dist/chunks/9559.bf30ab07.js.map +1 -0
  28. package/dist/chunks/9780.0506df1e.js +2 -0
  29. package/dist/chunks/{9780.258fe671.js.map → 9780.0506df1e.js.map} +1 -1
  30. package/dist/chunks/eo-card-item.2a4c464e.js +3 -0
  31. package/dist/chunks/{eo-card-item.ee0dc426.js.map → eo-card-item.2a4c464e.js.map} +1 -1
  32. package/dist/chunks/{eo-code-display.27f3fcb5.js → eo-code-display.6dc245f0.js} +2 -2
  33. package/dist/chunks/{eo-code-display.27f3fcb5.js.map → eo-code-display.6dc245f0.js.map} +1 -1
  34. package/dist/chunks/eo-descriptions.4f77d3c3.js +3 -0
  35. package/dist/chunks/{eo-descriptions.b91a2ddf.js.map → eo-descriptions.4f77d3c3.js.map} +1 -1
  36. package/dist/chunks/{eo-humanize-time.44a576db.js → eo-humanize-time.a8436d56.js} +2 -2
  37. package/dist/chunks/{eo-humanize-time.44a576db.js.map → eo-humanize-time.a8436d56.js.map} +1 -1
  38. package/dist/chunks/eo-info-card-item.2efaed02.js +3 -0
  39. package/dist/chunks/{eo-info-card-item.20e311a8.js.map → eo-info-card-item.2efaed02.js.map} +1 -1
  40. package/dist/chunks/eo-loading-step.c3369e5b.js +3 -0
  41. package/dist/chunks/{eo-loading-step.c731fb3a.js.map → eo-loading-step.c3369e5b.js.map} +1 -1
  42. package/dist/chunks/{eo-pagination.c4314139.js → eo-pagination.0f337ff6.js} +3 -3
  43. package/dist/chunks/{eo-pagination.c4314139.js.map → eo-pagination.0f337ff6.js.map} +1 -1
  44. package/dist/chunks/main.34ba29e8.js +2 -0
  45. package/dist/chunks/main.34ba29e8.js.map +1 -0
  46. package/dist/examples.json +6 -6
  47. package/dist/index.2fe3b05b.js +2 -0
  48. package/dist/index.2fe3b05b.js.map +1 -0
  49. package/dist/manifest.json +93 -93
  50. package/dist/types.json +203 -203
  51. package/package.json +2 -2
  52. package/dist/chunks/1122.680f3775.js +0 -2
  53. package/dist/chunks/1122.680f3775.js.map +0 -1
  54. package/dist/chunks/1940.022c1df7.js +0 -2
  55. package/dist/chunks/1940.022c1df7.js.map +0 -1
  56. package/dist/chunks/4196.ecf9cfe6.js +0 -2
  57. package/dist/chunks/4837.9ecac754.js +0 -2
  58. package/dist/chunks/7218.ce215713.js +0 -2
  59. package/dist/chunks/7380.b242d2d5.js +0 -3
  60. package/dist/chunks/7380.b242d2d5.js.map +0 -1
  61. package/dist/chunks/7399.bbae0d80.js +0 -2
  62. package/dist/chunks/9559.9f97ae93.js +0 -2
  63. package/dist/chunks/9559.9f97ae93.js.map +0 -1
  64. package/dist/chunks/9780.258fe671.js +0 -2
  65. package/dist/chunks/eo-card-item.ee0dc426.js +0 -3
  66. package/dist/chunks/eo-descriptions.b91a2ddf.js +0 -3
  67. package/dist/chunks/eo-info-card-item.20e311a8.js +0 -3
  68. package/dist/chunks/eo-loading-step.c731fb3a.js +0 -3
  69. package/dist/chunks/main.81b11af7.js +0 -2
  70. package/dist/chunks/main.81b11af7.js.map +0 -1
  71. package/dist/index.4a02716f.js +0 -2
  72. package/dist/index.4a02716f.js.map +0 -1
  73. /package/dist/chunks/{7380.b242d2d5.js.LICENSE.txt → 4.4e8af91a.js.LICENSE.txt} +0 -0
  74. /package/dist/chunks/{eo-card-item.ee0dc426.js.LICENSE.txt → eo-card-item.2a4c464e.js.LICENSE.txt} +0 -0
  75. /package/dist/chunks/{eo-descriptions.b91a2ddf.js.LICENSE.txt → eo-descriptions.4f77d3c3.js.LICENSE.txt} +0 -0
  76. /package/dist/chunks/{eo-info-card-item.20e311a8.js.LICENSE.txt → eo-info-card-item.2efaed02.js.LICENSE.txt} +0 -0
  77. /package/dist/chunks/{eo-loading-step.c731fb3a.js.LICENSE.txt → eo-loading-step.c3369e5b.js.LICENSE.txt} +0 -0
  78. /package/dist/chunks/{eo-pagination.c4314139.js.LICENSE.txt → eo-pagination.0f337ff6.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -765,6 +765,209 @@
765
765
  }
766
766
  ]
767
767
  },
768
+ "eo-info-card-item": {
769
+ "properties": [
770
+ {
771
+ "name": "cardTitle",
772
+ "annotation": {
773
+ "type": "keyword",
774
+ "value": "string"
775
+ }
776
+ },
777
+ {
778
+ "name": "description",
779
+ "annotation": {
780
+ "type": "keyword",
781
+ "value": "string"
782
+ }
783
+ },
784
+ {
785
+ "name": "url",
786
+ "annotation": {
787
+ "type": "keyword",
788
+ "value": "string"
789
+ }
790
+ },
791
+ {
792
+ "name": "cardIcon",
793
+ "annotation": {
794
+ "type": "reference",
795
+ "typeName": {
796
+ "type": "identifier",
797
+ "name": "IconAvatar"
798
+ }
799
+ }
800
+ },
801
+ {
802
+ "name": "detailList",
803
+ "annotation": {
804
+ "type": "array",
805
+ "elementType": {
806
+ "type": "reference",
807
+ "typeName": {
808
+ "type": "identifier",
809
+ "name": "InfoCardDetail"
810
+ }
811
+ }
812
+ }
813
+ },
814
+ {
815
+ "name": "target",
816
+ "annotation": {
817
+ "type": "indexedAccess",
818
+ "objectType": {
819
+ "type": "reference",
820
+ "typeName": {
821
+ "type": "identifier",
822
+ "name": "LinkProps"
823
+ }
824
+ },
825
+ "indexType": {
826
+ "type": "jsLiteral",
827
+ "value": "target"
828
+ }
829
+ }
830
+ }
831
+ ],
832
+ "events": [],
833
+ "methods": [],
834
+ "types": [
835
+ {
836
+ "type": "interface",
837
+ "name": "IconAvatar",
838
+ "body": [
839
+ {
840
+ "type": "propertySignature",
841
+ "key": {
842
+ "type": "identifier",
843
+ "name": "icon"
844
+ },
845
+ "annotation": {
846
+ "type": "reference",
847
+ "typeName": {
848
+ "type": "identifier",
849
+ "name": "GeneralIconProps"
850
+ }
851
+ },
852
+ "computed": false
853
+ },
854
+ {
855
+ "type": "propertySignature",
856
+ "key": {
857
+ "type": "identifier",
858
+ "name": "color"
859
+ },
860
+ "annotation": {
861
+ "type": "keyword",
862
+ "value": "string"
863
+ },
864
+ "optional": true,
865
+ "computed": false
866
+ },
867
+ {
868
+ "type": "propertySignature",
869
+ "key": {
870
+ "type": "identifier",
871
+ "name": "size"
872
+ },
873
+ "annotation": {
874
+ "type": "keyword",
875
+ "value": "number"
876
+ },
877
+ "optional": true,
878
+ "computed": false
879
+ },
880
+ {
881
+ "type": "propertySignature",
882
+ "key": {
883
+ "type": "identifier",
884
+ "name": "shape"
885
+ },
886
+ "annotation": {
887
+ "type": "union",
888
+ "types": [
889
+ {
890
+ "type": "jsLiteral",
891
+ "value": "circle"
892
+ },
893
+ {
894
+ "type": "jsLiteral",
895
+ "value": "square"
896
+ },
897
+ {
898
+ "type": "jsLiteral",
899
+ "value": "round-square"
900
+ }
901
+ ]
902
+ },
903
+ "optional": true,
904
+ "computed": false
905
+ },
906
+ {
907
+ "type": "propertySignature",
908
+ "key": {
909
+ "type": "identifier",
910
+ "name": "bgColor"
911
+ },
912
+ "annotation": {
913
+ "type": "keyword",
914
+ "value": "string"
915
+ },
916
+ "optional": true,
917
+ "computed": false
918
+ }
919
+ ]
920
+ },
921
+ {
922
+ "type": "interface",
923
+ "name": "InfoCardDetail",
924
+ "body": [
925
+ {
926
+ "type": "propertySignature",
927
+ "key": {
928
+ "type": "identifier",
929
+ "name": "title"
930
+ },
931
+ "annotation": {
932
+ "type": "keyword",
933
+ "value": "string"
934
+ },
935
+ "optional": true,
936
+ "computed": false
937
+ },
938
+ {
939
+ "type": "propertySignature",
940
+ "key": {
941
+ "type": "identifier",
942
+ "name": "desc"
943
+ },
944
+ "annotation": {
945
+ "type": "keyword",
946
+ "value": "string"
947
+ },
948
+ "optional": true,
949
+ "computed": false
950
+ },
951
+ {
952
+ "type": "propertySignature",
953
+ "key": {
954
+ "type": "identifier",
955
+ "name": "useBrick"
956
+ },
957
+ "annotation": {
958
+ "type": "reference",
959
+ "typeName": {
960
+ "type": "identifier",
961
+ "name": "UseSingleBrickConf"
962
+ }
963
+ },
964
+ "optional": true,
965
+ "computed": false
966
+ }
967
+ ]
968
+ }
969
+ ]
970
+ },
768
971
  "eo-statistics-card": {
769
972
  "properties": [
770
973
  {
@@ -1118,209 +1321,6 @@
1118
1321
  }
1119
1322
  ]
1120
1323
  },
1121
- "eo-info-card-item": {
1122
- "properties": [
1123
- {
1124
- "name": "cardTitle",
1125
- "annotation": {
1126
- "type": "keyword",
1127
- "value": "string"
1128
- }
1129
- },
1130
- {
1131
- "name": "description",
1132
- "annotation": {
1133
- "type": "keyword",
1134
- "value": "string"
1135
- }
1136
- },
1137
- {
1138
- "name": "url",
1139
- "annotation": {
1140
- "type": "keyword",
1141
- "value": "string"
1142
- }
1143
- },
1144
- {
1145
- "name": "cardIcon",
1146
- "annotation": {
1147
- "type": "reference",
1148
- "typeName": {
1149
- "type": "identifier",
1150
- "name": "IconAvatar"
1151
- }
1152
- }
1153
- },
1154
- {
1155
- "name": "detailList",
1156
- "annotation": {
1157
- "type": "array",
1158
- "elementType": {
1159
- "type": "reference",
1160
- "typeName": {
1161
- "type": "identifier",
1162
- "name": "InfoCardDetail"
1163
- }
1164
- }
1165
- }
1166
- },
1167
- {
1168
- "name": "target",
1169
- "annotation": {
1170
- "type": "indexedAccess",
1171
- "objectType": {
1172
- "type": "reference",
1173
- "typeName": {
1174
- "type": "identifier",
1175
- "name": "LinkProps"
1176
- }
1177
- },
1178
- "indexType": {
1179
- "type": "jsLiteral",
1180
- "value": "target"
1181
- }
1182
- }
1183
- }
1184
- ],
1185
- "events": [],
1186
- "methods": [],
1187
- "types": [
1188
- {
1189
- "type": "interface",
1190
- "name": "IconAvatar",
1191
- "body": [
1192
- {
1193
- "type": "propertySignature",
1194
- "key": {
1195
- "type": "identifier",
1196
- "name": "icon"
1197
- },
1198
- "annotation": {
1199
- "type": "reference",
1200
- "typeName": {
1201
- "type": "identifier",
1202
- "name": "GeneralIconProps"
1203
- }
1204
- },
1205
- "computed": false
1206
- },
1207
- {
1208
- "type": "propertySignature",
1209
- "key": {
1210
- "type": "identifier",
1211
- "name": "color"
1212
- },
1213
- "annotation": {
1214
- "type": "keyword",
1215
- "value": "string"
1216
- },
1217
- "optional": true,
1218
- "computed": false
1219
- },
1220
- {
1221
- "type": "propertySignature",
1222
- "key": {
1223
- "type": "identifier",
1224
- "name": "size"
1225
- },
1226
- "annotation": {
1227
- "type": "keyword",
1228
- "value": "number"
1229
- },
1230
- "optional": true,
1231
- "computed": false
1232
- },
1233
- {
1234
- "type": "propertySignature",
1235
- "key": {
1236
- "type": "identifier",
1237
- "name": "shape"
1238
- },
1239
- "annotation": {
1240
- "type": "union",
1241
- "types": [
1242
- {
1243
- "type": "jsLiteral",
1244
- "value": "circle"
1245
- },
1246
- {
1247
- "type": "jsLiteral",
1248
- "value": "square"
1249
- },
1250
- {
1251
- "type": "jsLiteral",
1252
- "value": "round-square"
1253
- }
1254
- ]
1255
- },
1256
- "optional": true,
1257
- "computed": false
1258
- },
1259
- {
1260
- "type": "propertySignature",
1261
- "key": {
1262
- "type": "identifier",
1263
- "name": "bgColor"
1264
- },
1265
- "annotation": {
1266
- "type": "keyword",
1267
- "value": "string"
1268
- },
1269
- "optional": true,
1270
- "computed": false
1271
- }
1272
- ]
1273
- },
1274
- {
1275
- "type": "interface",
1276
- "name": "InfoCardDetail",
1277
- "body": [
1278
- {
1279
- "type": "propertySignature",
1280
- "key": {
1281
- "type": "identifier",
1282
- "name": "title"
1283
- },
1284
- "annotation": {
1285
- "type": "keyword",
1286
- "value": "string"
1287
- },
1288
- "optional": true,
1289
- "computed": false
1290
- },
1291
- {
1292
- "type": "propertySignature",
1293
- "key": {
1294
- "type": "identifier",
1295
- "name": "desc"
1296
- },
1297
- "annotation": {
1298
- "type": "keyword",
1299
- "value": "string"
1300
- },
1301
- "optional": true,
1302
- "computed": false
1303
- },
1304
- {
1305
- "type": "propertySignature",
1306
- "key": {
1307
- "type": "identifier",
1308
- "name": "useBrick"
1309
- },
1310
- "annotation": {
1311
- "type": "reference",
1312
- "typeName": {
1313
- "type": "identifier",
1314
- "name": "UseSingleBrickConf"
1315
- }
1316
- },
1317
- "optional": true,
1318
- "computed": false
1319
- }
1320
- ]
1321
- }
1322
- ]
1323
- },
1324
1324
  "eo-loading-step": {
1325
1325
  "properties": [
1326
1326
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/presentational",
3
- "version": "1.7.11",
3
+ "version": "1.7.12",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/presentational",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,5 +44,5 @@
44
44
  "@next-bricks/containers": "*",
45
45
  "@next-bricks/icons": "*"
46
46
  },
47
- "gitHead": "51797daa2bd879c8710f45956a4d01c8bade7177"
47
+ "gitHead": "21c9d773b3e9c226cf6768666fd6c6d588194f62"
48
48
  }
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_presentational=globalThis.webpackChunk_next_bricks_presentational||[]).push([[1122],{24586:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(11369);function i(e,n,t){return(n=(0,r.A)(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},11369:(e,n,t)=>{t.d(n,{A:()=>i});var r=t(17545);function i(e){var n=function(e,n){if("object"!=(0,r.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.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)(n)?n:n+""}},17545:(e,n,t)=>{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)}t.d(n,{A:()=>r})},61122:(e,n,t)=>{t.r(n),t.d(n,{cook:()=>R,isEvaluable:()=>_,isTrackAll:()=>G,precook:()=>z,precookFunction:()=>q,preevaluate:()=>U,shouldAllowRecursiveEvaluations:()=>W});var r=t(24586);class i{constructor(){(0,r.A)(this,"VariableEnvironment",void 0),(0,r.A)(this,"LexicalEnvironment",void 0),(0,r.A)(this,"Function",void 0)}}class o{constructor(e){(0,r.A)(this,"OuterEnv",void 0),(0,r.A)(this,"bindingMap",new Map),this.OuterEnv=e}HasBinding(e){return this.bindingMap.has(e)}CreateMutableBinding(e,n){return this.bindingMap.set(e,{mutable:!0,deletable:n}),v(void 0)}CreateImmutableBinding(e,n){return this.bindingMap.set(e,{strict:n}),v(void 0)}InitializeBinding(e,n){const t=this.bindingMap.get(e);return Object.assign(t,{initialized:!0,value:n}),v(void 0)}SetMutableBinding(e,n,t){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=n,v(void 0)}GetBindingValue(e,n){const t=this.bindingMap.get(e);if(!t.initialized)throw new ReferenceError(`${e} is not initialized`);return t.value}}class a extends o{}class s extends o{}const c=Symbol.for("SourceNode"),u=Symbol.for("FormalParameters"),l=Symbol.for("ECMAScriptCode"),f=Symbol.for("Environment"),d=Symbol.for("IsConstructor");class p{constructor(e,n,t){(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=n,this.Strict=t}}class m{constructor(e,n){(0,r.A)(this,"Type",void 0),(0,r.A)(this,"Value",void 0),this.Type=e,this.Value=n}}function v(e){return new m("normal",e)}const y=Symbol("empty completion");function b(e){const n=new Set,t=e=>{if(Array.isArray(e))for(const n of e)t(n);else if(e)switch(e.type){case"Identifier":return void n.add(e.name);case"VariableDeclaration":return t(e.declarations);case"VariableDeclarator":case"FunctionDeclaration":return t(e.id);case"ArrayPattern":return t(e.elements);case"AssignmentPattern":return t(e.left);case"ObjectPattern":return t(e.properties);case"Property":return t(e.value);case"RestElement":return t(e.argument)}};return t(e),Array.from(n)}function g(e){const n=e=>{if(Array.isArray(e))return e.some(n);if(e)switch(e.type){case"ArrayPattern":return n(e.elements);case"AssignmentPattern":return!0;case"ObjectPattern":return n(e.properties);case"Property":return e.computed||n(e.value);case"RestElement":return n(e.argument)}};return n(e)}function h(e,n){const t=[],r={var:n.var},i=(e,n)=>{if(Array.isArray(e))for(const t of e)i(t,n);else if(e){switch(e.type){case"FunctionDeclaration":return void(Number(!n.var)^Number(n.topLevel)&&t.push(e));case"VariableDeclaration":return void(Number(!n.var)^Number("var"===e.kind)&&t.push(e));case"SwitchCase":return void i(e.consequent,r);case"CatchClause":return void i(e.body,r)}if(n.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,n),t}function E(e){return"unresolvable"!==e.Base&&!(e.Base instanceof o)}function w(e,n){return e.Base.InitializeBinding(e.ReferenceName,n)}function x(e,n,t){if(null==n)return e;const r=Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n));for(const i of r)if(!t.has(i)){const t=Object.getOwnPropertyDescriptor(n,i);null!=t&&t.enumerable&&(e[i]=n[i])}return e}function S(e,n){const t="const"===e.kind;for(const r of b(e))t?n.CreateImmutableBinding(r,!0):n.CreateMutableBinding(r,!1)}function B(e){return"normal"===e.Type||"continue"==e.Type}function A(e,n){return e.Value!==y?e:new m(e.Type,n)}function k(e){if(e instanceof m&&(e=e.Value),!(e instanceof p))return e;if("unresolvable"===e.Base)throw new ReferenceError(`${e.ReferenceName} is not defined`);return e.Base instanceof o?e.Base.GetBindingValue(e.ReferenceName,e.Strict):e.Base[e.ReferenceName]}function L(e){return"symbol"==typeof e?e:String(e)}function V(e,n){return e[n]}function C(e,n){if("unresolvable"===e.Base)throw new ReferenceError(`${e.ReferenceName} is not defined`);return e.Base instanceof o?e.Base.SetMutableBinding(e.ReferenceName,n,e.Strict):(e.Base[e.ReferenceName]=n,v(void 0))}function P(e){if(n=e,!(Array.isArray(n)||null!=n&&"function"==typeof n[Symbol.iterator]))throw new TypeError(typeof e+" is not iterable");var n;return e[Symbol.iterator]()}function T(e){if(null==e)throw new TypeError("Cannot destructure properties of undefined or null")}function I(e,n,t){return e?e.HasBinding(n)?new p(e,n,t):I(e.OuterEnv,n,t):new p("unresolvable",n,t)}function O(e,n,t){switch(n){case"+":return e+t;case"-":return e-t;case"/":return e/t;case"%":return e%t;case"*":return e*t;case"**":return e**t;case"==":return e==t;case"===":return e===t;case"!=":return e!=t;case"!==":return e!==t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}throw new SyntaxError(`Unsupported binary operator \`${n}\``)}const F=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")}()]);function j(e){if(F.has(e))throw new TypeError("Cannot access reserved objects such as `Function`.")}const M=new WeakSet([Array,Map,Set,URLSearchParams,WeakMap,WeakSet,RegExp]);function R(e,n){var t;let{rules:r,globalVariables:o={},hooks:F={}}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const R="FunctionDeclaration"!==e.type,D=new a(null),$=new i;$.VariableEnvironment=D,$.LexicalEnvironment=D;const z=[$];for(const[e,n]of Object.entries(o))D.CreateImmutableBinding(e,!0),D.InitializeBinding(e,n);const N=new WeakMap;function q(e,t){var r,i,o;switch(null===(r=F.beforeEvaluate)||void 0===r||r.call(F,e),e.type){case"ArrayExpression":{const n=[];for(const t of e.elements)if(t)if("SpreadElement"===t.type){const e=k(q(t.argument));n.push(...e)}else n.push(k(q(t)));else n.length+=1;return v(n)}case"ArrowFunctionExpression":return ue(e),v(re(e,U().LexicalEnvironment,!1));case"BinaryExpression":{const t=k(q(e.left)),r=q(e.right).Value,i=k(r);if(R&&"|>"===e.operator){if("function"!=typeof i){const t=n.substring(e.right.start,e.right.end);throw new TypeError(`${t} is not a function`)}let o;return r instanceof p&&E(r)&&(o=r.Base),v(i.call(o,t))}return v(O(t,e.operator,i))}case"CallExpression":{const n=q(e.callee,t).Value,r=k(n);return null==r&&(e.optional||null!=t&&t.skipped)?(t.skipped=!0,v(void 0)):(j(r),Z(r,n,e.arguments,e.callee))}case"ChainExpression":return q(e.expression,{});case"ConditionalExpression":return v(k(q(k(q(e.test))?e.consequent:e.alternate)));case"Identifier":return v(_(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 v(e.value);case"LogicalExpression":{const n=k(q(e.left));switch(e.operator){case"&&":return v(n&&k(q(e.right)));case"||":return v(n||k(q(e.right)));case"??":return v(n??k(q(e.right)));default:throw new SyntaxError(`Unsupported logical operator '${e.operator}'`)}}case"MemberExpression":{const n=k(q(e.object,t).Value);if(null==n&&(e.optional||null!=t&&t.skipped))return t.skipped=!0,v(void 0);j(n);const r=e.computed?function(e,n,t){const r=L(k(q(n)));return new p(e,r,!0)}(n,e.property):function(e,n,t){const r=n.name;return new p(e,r,!0)}(n,e.property);return j(r),v(r)}case"NewExpression":return function(e,t){const r=k(q(e)),i=ee(t);if("function"!=typeof r||!1===r[d]){const t=n.substring(e.start,e.end);throw new TypeError(`${t} is not a constructor`)}if(!function(e){return M.has(e)||e===Date}(r)){const t=n.substring(e.start,e.end);throw new TypeError(`${t} is not an allowed constructor`)}return v(new r(...i))}(e.callee,e.arguments);case"ObjectExpression":{const n={};for(const t of e.properties)if("SpreadElement"===t.type)x(n,k(q(t.argument)),new Set);else{if("init"!==t.kind)throw new SyntaxError("Unsupported object getter/setter");const e=t.computed||"Identifier"!==t.key.type?oe(t.key):t.key.name;if("__proto__"===e)throw new TypeError("Setting '__proto__' property is not allowed");n[e]=k(q(t.value))}return v(n)}case"SequenceExpression":{let n;for(const t of e.expressions)n=v(k(q(t)));return n}case"TemplateLiteral":{const n=[e.quasis[0].value.cooked];let t=0;for(const r of e.expressions){const i=k(q(r));n.push(String(i)),n.push(e.quasis[t+=1].value.cooked)}return v(n.join(""))}case"TaggedTemplateExpression":{const n=q(e.tag).Value,t=k(n);return j(t),Z(t,n,e.quasi,e.tag)}case"UnaryExpression":{const n=q(e.argument).Value;if(!R&&"delete"===e.operator){if(!(n instanceof p))return v(!0);if(E(n))return v(delete n.Base[n.ReferenceName])}return"typeof"===e.operator?n instanceof p&&"unresolvable"===n.Base?v("undefined"):v(typeof k(n)):v(function(e,n){switch(n){case"!":return!e;case"+":return+e;case"-":return-e;case"void":return}throw new SyntaxError(`Unsupported unary operator \`${n}\``)}(k(n),e.operator))}}if(!R)switch(e.type){case"AssignmentExpression":{if("="===e.operator){if("ArrayPattern"!==e.left.type&&"ObjectPattern"!==e.left.type){const n=q(e.left).Value,t=k(q(e.right));return C(n,t),v(t)}const n=k(q(e.right));return K(e.left,n),v(n)}const n=q(e.left).Value,t=k(n),r=k(q(e.right)),i=function(e,n,t){switch(n){case"+=":case"-=":case"*=":case"/=":case"%=":case"**=":return O(e,n.substr(0,n.length-1),t)}throw new SyntaxError(`Unsupported assignment operator \`${n}\``)}(t,e.operator,r);return C(n,i),v(i)}case"BlockStatement":{if(!e.body.length)return v(y);const n=U().LexicalEnvironment,t=new a(n);Y(e.body,t),U().LexicalEnvironment=t;const r=ne(e.body);return U().LexicalEnvironment=n,r}case"BreakStatement":return new m("break",y);case"ContinueStatement":return new m("continue",y);case"EmptyStatement":case"FunctionDeclaration":return v(y);case"DoWhileStatement":return W(function(e){let n;for(;;){const t=q(e.body);if(!B(t))return A(t,n);if(t.Value!==y&&(n=t.Value),!k(q(e.test)))return v(n)}}(e));case"ExpressionStatement":case"TSAsExpression":return q(e.expression);case"ForInStatement":case"ForOfStatement":return W(function(e){const n=e.left,t="VariableDeclaration"===n.type?"var"===n.kind?"varBinding":"lexicalBinding":"assignment",r="lexicalBinding"===t?b(n):[],i="ForInStatement"===e.type?"enumerate":"iterate",o=function(e,n,t){const r=U(),i=r.LexicalEnvironment;if(e.length>0){const n=new a(i);for(const t of e)n.CreateMutableBinding(t,!1);r.LexicalEnvironment=n}const o=q(n);r.LexicalEnvironment=i;const s=k(o);return"enumerate"===t?null==s?new m("break",y):v(function*(e){for(const n in e)yield n}(s)):v(P(s))}(r,e.right,i);return"normal"!==o.Type?o:function(e,n,t,r,i){const o="assignment"===i?e:e.declarations[0].id,s=U().LexicalEnvironment;let c;const u="ObjectPattern"===o.type||"ArrayPattern"===o.type;for(;;){const{done:l,value:f}=t.next();if(l)return v(c);let d,p;if("lexicalBinding"===i){if(p=new a(s),S(e,p),U().LexicalEnvironment=p,!u){const[e]=b(o);d=_(e)}}else u||(d=q(o).Value);u?"assignment"===i?K(o,f):ie(o,f,"varBinding"===i?void 0:p):"lexicalBinding"===i?w(d,f):C(d,f);const m=q(n);if(U().LexicalEnvironment=s,!B(m)){const e=A(m,c);if("enumerate"!==r&&void 0!==t.return){const e=t.return();if(!e||!["object","function"].includes(typeof e))throw new TypeError("Iterator result is not an object")}return e}m.Value!==y&&(c=m.Value)}}(n,e.body,o.Value,i,t)}(e));case"ForStatement":return W(function(e){var n;if("VariableDeclaration"===(null===(n=e.init)||void 0===n?void 0:n.type)){if("var"===e.init.kind)return q(e.init),H(e.test,e.update,e.body,[]);const n=U().LexicalEnvironment,t=new a(n),r="const"===e.init.kind,i=b(e.init);for(const e of i)r?t.CreateImmutableBinding(e,!0):t.CreateMutableBinding(e,!1);U().LexicalEnvironment=t,q(e.init);const o=r?[]:Array.from(i),s=H(e.test,e.update,e.body,o);return U().LexicalEnvironment=n,s}return e.init&&k(q(e.init)),H(e.test,e.update,e.body,[])}(e));case"FunctionExpression":return ue(e),v(function(e){const n=U().LexicalEnvironment;if(e.id){const t=e.id.name,r=new a(n);r.CreateImmutableBinding(t,!1);const i=re(e,r,!0);return r.InitializeBinding(t,i),i}return re(e,n,!0)}(e));case"IfStatement":return k(q(e.test))?(null!==(i=F.beforeBranch)&&void 0!==i&&i.call(F,e,"if"),A(q(e.consequent),void 0)):(null!==(o=F.beforeBranch)&&void 0!==o&&o.call(F,e,"else"),e.alternate?A(q(e.alternate),void 0):v(void 0));case"ReturnStatement":{let n;return e.argument&&(n=k(q(e.argument))),new m("return",n)}case"ThrowStatement":throw k(q(e.argument));case"UpdateExpression":{const n=q(e.argument).Value,t=Number(k(n)),r="++"===e.operator?t+1:t-1;return C(n,r),v(e.prefix?r:t)}case"SwitchCase":return ne(e.consequent);case"SwitchStatement":{const n=k(q(e.discriminant)),t=U().LexicalEnvironment,r=new a(t);Y(e.cases,r),U().LexicalEnvironment=r;const i=function(e,n){let t;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=G(e,n)),a){const n=q(e);if(n.Value!==y&&(t=n.Value),"normal"!==n.Type)return A(n,t)}if(!i)return v(t);let s=!1;const c=e.slice(r+1);if(!a)for(const e of c)if(s||(s=G(e,n)),s){const n=q(e);if(n.Value!==y&&(t=n.Value),"normal"!==n.Type)return A(n,t)}if(s)return v(t);const u=q(e[r]);if(u.Value!==y&&(t=u.Value),"normal"!==u.Type)return A(u,t);for(const e of c){const n=q(e);if(n.Value!==y&&(t=n.Value),"normal"!==n.Type)return A(n,t)}return v(t)}(e.cases,n);return U().LexicalEnvironment=t,W(i)}case"TryStatement":{let n;try{n=q(e.block)}catch(t){if(!e.handler)throw t;var s;null===(s=F.beforeEvaluate)||void 0===s||s.call(F,e.handler),n=function(e,n){if(!e.param)return q(e.body);const t=U().LexicalEnvironment,r=new a(t);for(const n of b(e.param))r.CreateMutableBinding(n,!1);U().LexicalEnvironment=r,ie(e.param,n,r);const i=q(e.body);return U().LexicalEnvironment=t,i}(e.handler,t)}finally{if(e.finalizer){const t=q(e.finalizer);"normal"!==t.Type&&(n=t)}}return n}case"VariableDeclaration":{let n;for(const t of e.declarations)if(t.init)if("Identifier"===t.id.type){const r=_(t.id.name),i=k(q(t.init));n="var"===e.kind?C(r,i):w(r,i)}else{const r=k(q(t.init));n=ie(t.id,r,"var"===e.kind?void 0:U().LexicalEnvironment)}else n="var"===e.kind?v(y):w(_(t.id.name),void 0);return n}case"WhileStatement":return W(function(e){let n;for(;;){if(!k(q(e.test)))return v(n);const t=q(e.body);if(!B(t))return A(t,n);t.Value!==y&&(n=t.Value)}}(e))}throw new SyntaxError(`Unsupported node type \`${e.type}\``)}function U(){return z[z.length-1]}function _(e,n){return n||(n=U().LexicalEnvironment),I(n,e,!0)}function W(e){return"break"===e.Type?e.Value===y?v(void 0):v(e.Value):e}function G(e,n){return n===k(q(e.test))}function H(e,n,t,r){let i;for(J(r);;){if(e&&!k(q(e)))return v(i);const o=q(t);if(!B(o))return A(o,i);o.Value&&(i=o.Value),J(r),n&&k(q(n))}}function J(e){if(0===e.length)return;const n=U().LexicalEnvironment,t=n.OuterEnv,r=new a(t);for(const t of e){r.CreateMutableBinding(t,!1);const e=n.GetBindingValue(t,!1);r.InitializeBinding(t,e)}U().LexicalEnvironment=r}function K(e,n){if("ObjectPattern"===e.type)return T(n),e.properties.length>0&&function(e,n){const t=new Set;for(const r of e)if("Property"===r.type){const e=r.computed||"Identifier"!==r.key.type?oe(r.key):r.key.name,i="AssignmentPattern"===r.value.type?r.value.left:r.value;if("Identifier"===i.type){const o=_(i.name);let a=V(n,e);"AssignmentPattern"===r.value.type&&void 0===a&&(a=k(q(r.value.right))),C(o,a),t.add(e)}else Q(r.value,n,e),t.add(e)}else X(r,n,t)}(e.properties,n),v(y);const t=P(n);return function(e,n){let t=v(y);for(const r of e){if(!r){n.next(),t=v(y);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=q(e).Value),"RestElement"!==r.type){const{done:e,value:t}=n.next(),i=e?void 0:t;a="AssignmentPattern"===r.type&&void 0===i?k(q(r.right)):i}else{a=[];let e=0;for(;;){const{done:t,value:r}=n.next();if(t)break;a[e]=r,e++}}t=i?K(e,a):C(o,a)}return t}(e.elements,t)}function Q(e,n,t){const r="AssignmentPattern"===e.type?e.left:e,i="ArrayPattern"===r.type||"ObjectPattern"===r.type;let o;i||(o=q(r).Value);const a=V(n,t);let s;return s="AssignmentPattern"===e.type&&void 0===a?k(q(e.right)):a,i?K(r,s):C(o,s)}function X(e,n,t){return C(q(e.argument).Value,x({},n,t))}function Y(e,n){const t=h(e,{var:!1,topLevel:!1});for(const e of t){const t="VariableDeclaration"===e.type&&"const"===e.kind;for(const r of b(e))t?n.CreateImmutableBinding(r,!0):n.CreateMutableBinding(r,!1);if("FunctionDeclaration"===e.type){const[t]=b(e),r=te(e,n);n.InitializeBinding(t,r)}}}function Z(e,t,r,i){let o;t instanceof p&&E(t)&&(o=t.Base);const a=ee(r);if("function"!=typeof e){const e=n.substring(i.start,i.end);throw new TypeError(`${e} is not a function`)}const s=e.apply(o,a);return j(s),v(s)}function ee(e){const n=[];if(Array.isArray(e))for(const t of e)if("SpreadElement"===t.type){const e=k(q(t.argument));n.push(...e)}else n.push(k(q(t)));else{n.push(function(e){const n=N.get(e);if(n)return n;const t=e.quasis.map((e=>e.value.raw)),r=e.quasis.map((e=>e.value.cooked));return Object.freeze(t),Object.defineProperty(r,"raw",{value:t,writable:!1,enumerable:!1,configurable:!1}),Object.freeze(r),N.set(e,r),r}(e));for(const t of e.expressions)n.push(k(q(t)))}return n}function ne(e){let n=v(y);for(const t of e){const e=q(t);if("normal"!==e.Type)return e;n=A(n,e.Value)}return n}function te(e,n){return re(e,n,!0)}function re(e,n,t){const o=function(){return function(e,n){var t;null===(t=F.beforeCall)||void 0===t||t.call(F,e[c]),function(e){const n=new i;n.Function=e;const t=new s(e[f]);n.VariableEnvironment=t,n.LexicalEnvironment=t,z.push(n)}(e);const o=function(e,n){return function(e,n,t){return function(e,n){const t=U(),i=e[l],o=e[u],s=b(o),c=g(o),f=h(i,{var:!0,topLevel:!0}),d=b(f),p=[],m=[];for(let e=f.length-1;e>=0;e--){const n=f[e];if("FunctionDeclaration"===n.type){ue(n);const[e]=b(n);p.includes(e)||(p.unshift(e),m.unshift(n))}else if(null!=r&&r.noVar)throw new SyntaxError("Var declaration is not recommended, use `let` or `const` instead")}const v=t.LexicalEnvironment;for(const e of s)v.CreateMutableBinding(e,!1);let y;if(se(o,P(n),v),c){y=new a(v),t.VariableEnvironment=y;for(const e of d){let n;y.CreateMutableBinding(e,!1),s.includes(e)&&!p.includes(e)&&(n=v.GetBindingValue(e,!1)),y.InitializeBinding(e,n)}}else{for(const e of d)s.includes(e)||(v.CreateMutableBinding(e,!1),v.InitializeBinding(e,void 0));y=v}const E=y;t.LexicalEnvironment=E;const w=h(i,{var:!1,topLevel:!0});for(const e of w)for(const n of b(e))"const"===e.kind?E.CreateImmutableBinding(n,!0):E.CreateMutableBinding(n,!1);for(const e of m){const[n]=b(e),t=te(e,E);y.SetMutableBinding(n,t,!1)}}(n,t),Array.isArray(e)?ne(e):new m("return",k(q(e)))}(e[l],e,n)}(e,n);if(z.pop(),"return"===o.Type)return o.Value}(o,arguments)};return Object.defineProperties(o,{[c]:{value:e},[u]:{value:e.params},[l]:{value:"BlockStatement"===e.body.type?e.body.body:e.body},[f]:{value:n},[d]:{value:t}}),o}function ie(e,n,t){switch(e.type){case"Identifier":return function(e,n,t){return t.InitializeBinding(e,n),v(y)}(e.name,n,t);case"ObjectPattern":return T(n),function(e,n,t){const r=new Set;for(const i of e){if("RestElement"===i.type)return ae(i,n,t,r);if(i.computed||"Identifier"!==i.key.type){const e=oe(i.key);ce(i.value,n,t,e),r.add(e)}else ce(i.value,n,t,i.key.name),r.add(i.key.name)}return v(y)}(e.properties,n,t);case"ArrayPattern":{const r=P(n);return se(e.elements,r,t)}}}function oe(e){return L(k(q(e)))}function ae(e,n,t,r){const i=_(e.argument.name,t),o=x({},n,r);return t?w(i,o):C(i,o)}function se(e,n,t){if(0===e.length)return v(y);let r;for(const i of e)if(i)if("RestElement"===i.type)if("Identifier"===i.argument.type){const e=_(i.argument.name,t),o=[];let a=0;for(;;){const{done:i,value:s}=n.next();if(i){r=t?w(e,o):C(e,o);break}o[a]=s,a++}}else{const e=[];let o=0;for(;;){const{done:a,value:s}=n.next();if(a){r=ie(i.argument,e,t);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}=n.next();a||(o=s),"AssignmentPattern"===i.type&&void 0===o&&(o=k(q(i.right))),r=ie(e,o,t);break}case"Identifier":{const o=_(e.name,t);let a;const{done:s,value:c}=n.next();s||(a=c),"AssignmentPattern"===i.type&&void 0===a&&(a=k(q(i.right))),r=t?w(o,a):C(o,a);break}}}else n.next(),r=v(y);return r}function ce(e,n,t,r){if("Identifier"===e.type||"AssignmentPattern"===e.type&&"Identifier"===e.left.type){const i=_("Identifier"===e.type?e.name:e.left.name,t);let o=V(n,r);return"AssignmentPattern"===e.type&&void 0===o&&(o=k(q(e.right))),t?w(i,o):C(i,o)}let i=V(n,r);return"AssignmentPattern"===e.type&&void 0===i&&(i=k(q(e.right))),ie("AssignmentPattern"===e.type?e.left:e,i,t)}function ue(e){if(e.async||e.generator)throw new SyntaxError((e.async?"Async":"Generator")+" function is not allowed");if(R&&!e.expression)throw new SyntaxError("Only an `Expression` is allowed in `ArrowFunctionExpression`'s body")}if(R)return k(q(e));null===(t=F.beforeEvaluate)||void 0===t||t.call(F,e),ue(e);const[le]=b(e);D.CreateImmutableBinding(le,!0);const fe=te(e,D);return D.InitializeBinding(le,fe),fe}class D{constructor(){(0,r.A)(this,"VariableEnvironment",void 0),(0,r.A)(this,"LexicalEnvironment",void 0)}}class ${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 z(e){let{expressionOnly:n,visitors:t,withParent:r,hooks:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=new Set,a=[],s=new $(null),c=new D;function u(){return a[a.length-1]}function l(e,n,t){for(const r of n)f(e[r],null==t?void 0:t.concat({node:e,key:r}))}function f(e,r){if(Array.isArray(e))e.forEach(((e,n)=>{f(e,r?r.slice(0,-1).concat({...r[r.length-1],index:n}):r)}));else if(e){var a,s;switch(null===(a=i.beforeVisit)||void 0===a||a.call(i,e,r),function(e){var n,r;t&&(n=t,r=e.type,Object.prototype.hasOwnProperty.call(n,r))&&t[e.type](e)}(e),e.type){case"Identifier":var c;return h=e.name,void(p(u().LexicalEnvironment,h)||(null===(c=i.beforeVisitGlobal)||void 0===c||c.call(i,e,r),o.add(e.name)));case"ArrayExpression":case"ArrayPattern":return void l(e,["elements"],r);case"ArrowFunctionExpression":return void v(y(e,u().LexicalEnvironment),r);case"AssignmentPattern":case"BinaryExpression":case"LogicalExpression":return void l(e,["left","right"],r);case"CallExpression":case"NewExpression":return void l(e,["callee","arguments"],r);case"ChainExpression":return void l(e,["expression"],r);case"ConditionalExpression":return void l(e,["test","consequent","alternate"],r);case"MemberExpression":return l(e,["object"],r),void(e.computed&&l(e,["property"],r));case"ObjectExpression":case"ObjectPattern":return void l(e,["properties"],r);case"Property":return e.computed&&l(e,["key"],r),void l(e,["value"],r);case"RestElement":case"SpreadElement":case"UnaryExpression":return void l(e,["argument"],r);case"SequenceExpression":case"TemplateLiteral":return void l(e,["expressions"],r);case"TaggedTemplateExpression":return void l(e,["tag","quasi"],r);case"Literal":return}if(!n)switch(e.type){case"AssignmentExpression":return void l(e,["right","left"],r);case"BlockStatement":{if(!e.body.length)return;const n=u(),t=n.LexicalEnvironment,i=new $(t);return m(e.body,i),n.LexicalEnvironment=i,l(e,["body"],r),void(n.LexicalEnvironment=t)}case"BreakStatement":case"ContinueStatement":case"EmptyStatement":return;case"CatchClause":{const n=u(),t=n.LexicalEnvironment,i=new $(t);return d(e.param,i),n.LexicalEnvironment=i,l(e,["param","body"],r),void(n.LexicalEnvironment=t)}case"DoWhileStatement":return void l(e,["body","test"],r);case"ExpressionStatement":case"TSAsExpression":return void l(e,["expression"],r);case"ForInStatement":case"ForOfStatement":{const n="VariableDeclaration"===e.left.type&&"var"!==e.left.kind,t=u(),i=t.LexicalEnvironment;if(n){const n=new $(i);d(e.left,n),t.LexicalEnvironment=n}if(l(e,["right"],r),t.LexicalEnvironment=i,n){const n=new $(i);d(e.left,n),t.LexicalEnvironment=n}return l(e,["left","body"],r),void(t.LexicalEnvironment=i)}case"ForStatement":{var g;const n="VariableDeclaration"===(null===(g=e.init)||void 0===g?void 0:g.type)&&"var"!==e.init.kind,t=u(),i=t.LexicalEnvironment;if(n){const n=new $(i);d(e.init,n),t.LexicalEnvironment=n}return l(e,["init","test","body","update"],r),void(t.LexicalEnvironment=i)}case"FunctionDeclaration":{const[n]=b(e),t=u().LexicalEnvironment,i=y(e,t);return t.CreateBinding(n),void v(i,r)}case"FunctionExpression":{const n=function(e){const n=u().LexicalEnvironment;if(!e.id)return y(e,n);const t=e.id.name,r=new $(n);return r.CreateBinding(t),y(e,r)}(e);return void v(n,r)}case"IfStatement":return void l(e,["test","consequent","alternate"],r);case"ReturnStatement":case"ThrowStatement":case"UpdateExpression":return void l(e,["argument"],r);case"SwitchCase":return void l(e,["test","consequent"],r);case"SwitchStatement":{l(e,["discriminant"],r);const n=u(),t=n.LexicalEnvironment,i=new $(t);return m(e.cases,i),n.LexicalEnvironment=i,l(e,["cases"],r),void(n.LexicalEnvironment=t)}case"TryStatement":return void l(e,["block","handler","finalizer"],r);case"VariableDeclaration":return void l(e,["declarations"],r);case"VariableDeclarator":return void l(e,["id","init"],r);case"WhileStatement":return void l(e,["test","body"],r)}(null===(s=i.beforeVisitUnknown)||void 0===s?void 0:s.call(i,e,r))||console.warn(`Unsupported node type \`${e.type}\``)}var h}function d(e,n){for(const t of b(e))n.CreateBinding(t)}function p(e,n){return!!e&&(e.HasBinding(n)||p(e.OuterEnv,n))}function m(e,n){d(h(e,{var:!1,topLevel:!1}),n)}function v(e,n){!function(e){const n=new D,t=new $(e.Environment);n.VariableEnvironment=t,n.LexicalEnvironment=t,a.push(n)}(e),function(e,n){const t=u(),r=e.ECMAScriptCode,i=e.FormalParameters,o=g(i),a=b(h(r,{var:!0,topLevel:!0})),s=t.LexicalEnvironment;let c;if(d(i,s),f(i,null==n?void 0:n.concat({node:e.Function,key:"params"})),o){c=new $(s),t.VariableEnvironment=c;for(const e of a)c.CreateBinding(e)}else{for(const e of a)s.CreateBinding(e);c=s}const l=c;t.LexicalEnvironment=l,d(h(r,{var:!1,topLevel:!0}),l)}(e,n),f(e.ECMAScriptCode,null==n?void 0:n.concat({node:e.Function,key:"body"}).concat("BlockStatement"===e.Function.body.type?{node:e.Function.body,key:"body"}:[])),a.pop()}function y(e,n){return{Function:e,FormalParameters:e.params,ECMAScriptCode:"BlockStatement"===e.body.type?e.body.body:e.body,Environment:n}}return c.VariableEnvironment=s,c.LexicalEnvironment=s,a.push(c),f(e,r?[]:void 0),o}var N=t(56667);function q(e){let{typescript:n,...t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=function(e){let{typescript:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=(0,N.parse)(e,{plugins:["estree",n&&"typescript"].filter(Boolean),strictMode:!0,attachComment:!1}).program.body,r=n?[]:t;if(n)for(const e of t)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:n});return{function:r,attemptToVisitGlobals:z(r,t)}}function U(e,n){const t=[],r=e.replace(/^\s*<%[~=]?\s|\s%>\s*$/g,(e=>(t.push(e),""))),i=function(e){return(0,N.parseExpression)(e,{plugins:["estree",["pipelineOperator",{proposal:"minimal"}]],attachComment:!1})}(r);return{expression:i,attemptToVisitGlobals:z(i,{...n,expressionOnly:!0}),source:r,prefix:t[0],suffix:t[1]}}function _(e){return/^\s*<%[~=]?\s/.test(e)&&/\s%>\s*$/.test(e)}function W(e){return/^\s*<%~\s/.test(e)}function G(e){return/^\s*<%=\s/.test(e)&&/\s%>\s*$/.test(e)}}}]);
2
- //# sourceMappingURL=1122.680f3775.js.map