@delance/builder 0.2.12 → 0.2.13

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 (3) hide show
  1. package/dist/cli.js +2 -2
  2. package/dist/index.js +281 -363
  3. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {getQuickJS, shouldInterruptAfterDeadline} from "quickjs-emscripten";
15
15
  // /home/mochaa/ghq/git.sr.ht/~self/delance-builder/node_modules/webcrack/src/deobfuscate/index.ts
16
16
  import debug3 from "debug";
17
17
 
18
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/ast-utils/ast.ts
18
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/ast-utils/ast.ts
19
19
  import * as t from "@babel/types";
20
20
  function getPropName(node) {
21
21
  if (t.isIdentifier(node)) {
@@ -28,7 +28,7 @@ function getPropName(node) {
28
28
  return node.value.toString();
29
29
  }
30
30
  }
31
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/ast-utils/generator.ts
31
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/ast-utils/generator.ts
32
32
  import babelGenerate from "@babel/generator";
33
33
  function generate(ast, options = defaultOptions) {
34
34
  return babelGenerate(ast, options).code;
@@ -45,14 +45,14 @@ function codePreview(node) {
45
45
  return code;
46
46
  }
47
47
  var defaultOptions = { jsescOption: { minimal: true } };
48
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/ast-utils/inline.ts
48
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/ast-utils/inline.ts
49
49
  import traverse4 from "@babel/traverse";
50
50
  import * as t13 from "@babel/types";
51
51
 
52
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
52
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
53
53
  import * as t2 from "@babel/types";
54
54
 
55
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/Matcher.ts
55
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/Matcher.ts
56
56
  class Matcher {
57
57
  match(value, keys = []) {
58
58
  return this.matchValue(value, keys);
@@ -62,20 +62,17 @@ class Matcher {
62
62
  }
63
63
  }
64
64
 
65
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
65
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/anyExpression.ts
66
66
  function anyExpression() {
67
67
  return new AnyExpressionMatcher;
68
68
  }
69
69
 
70
70
  class AnyExpressionMatcher extends Matcher {
71
- constructor() {
72
- super(...arguments);
73
- }
74
71
  matchValue(value) {
75
72
  return t2.isNode(value) && t2.isExpression(value);
76
73
  }
77
74
  }
78
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/utils/distributeAcrossSlices.ts
75
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/utils/distributeAcrossSlices.ts
79
76
  function* distributeAcrossSlices(slices, available) {
80
77
  if (slices.length === 0) {
81
78
  yield [];
@@ -95,21 +92,18 @@ function* distributeAcrossSlices(slices, available) {
95
92
  }
96
93
  }
97
94
 
98
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/anything.ts
95
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/anything.ts
99
96
  function anything() {
100
97
  return new AnythingMatcher;
101
98
  }
102
99
 
103
100
  class AnythingMatcher extends Matcher {
104
- constructor() {
105
- super(...arguments);
106
- }
107
101
  matchValue(value) {
108
102
  return true;
109
103
  }
110
104
  }
111
105
 
112
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/slice.ts
106
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/slice.ts
113
107
  function zeroOrMore(matcher = anything()) {
114
108
  return new SliceMatcher(0, Infinity, matcher);
115
109
  }
@@ -148,7 +142,7 @@ class SliceMatcher extends Matcher {
148
142
  }
149
143
  }
150
144
 
151
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/anyList.ts
145
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/anyList.ts
152
146
  function anyList(...elements) {
153
147
  return new AnyListMatcher(elements);
154
148
  }
@@ -206,24 +200,21 @@ class AnyListMatcher extends Matcher {
206
200
  return false;
207
201
  }
208
202
  }
209
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/anyNode.ts
203
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/anyNode.ts
210
204
  import * as t3 from "@babel/types";
211
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/anyStatement.ts
205
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/anyStatement.ts
212
206
  import * as t4 from "@babel/types";
213
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/anyString.ts
207
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/anyString.ts
214
208
  function anyString() {
215
209
  return new StringMatcher;
216
210
  }
217
211
 
218
212
  class StringMatcher extends Matcher {
219
- constructor() {
220
- super(...arguments);
221
- }
222
213
  matchValue(value) {
223
214
  return typeof value === "string" || value instanceof String;
224
215
  }
225
216
  }
226
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/arrayOf.ts
217
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/arrayOf.ts
227
218
  function arrayOf(elementMatcher) {
228
219
  return new ArrayOfMatcher(elementMatcher);
229
220
  }
@@ -246,7 +237,7 @@ class ArrayOfMatcher extends Matcher {
246
237
  return true;
247
238
  }
248
239
  }
249
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/capture.ts
240
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/capture.ts
250
241
  function capture(matcher) {
251
242
  return new CapturedMatcher(matcher);
252
243
  }
@@ -278,7 +269,7 @@ class CapturedMatcher extends Matcher {
278
269
  this._currentKeys = keys;
279
270
  }
280
271
  }
281
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/containerOf.ts
272
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/containerOf.ts
282
273
  import * as t5 from "@babel/types";
283
274
  function containerOf(containedMatcher) {
284
275
  return new ContainerOfMatcher(containedMatcher);
@@ -317,10 +308,10 @@ class ContainerOfMatcher extends CapturedMatcher {
317
308
  import * as Babel from "@babel/core";
318
309
  import * as t9 from "@babel/types";
319
310
 
320
- // node_modules/.pnpm/@codemod+utils@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+utils&co_znh7smhwc47ernk2v3lf6wqp5q/node_modules/@codemod/utils/src/NodeTypes.ts
311
+ // node_modules/.pnpm/@codemod+utils@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+utils&co_nwjtgzgerilv5helbn32zsr2ei/node_modules/@codemod/utils/src/NodeTypes.ts
321
312
  import * as t6 from "@babel/types";
322
313
  var { BUILDER_KEYS, NODE_FIELDS } = t6;
323
- // node_modules/.pnpm/@codemod+utils@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+utils&co_znh7smhwc47ernk2v3lf6wqp5q/node_modules/@codemod/utils/src/builders.ts
314
+ // node_modules/.pnpm/@codemod+utils@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+utils&co_nwjtgzgerilv5helbn32zsr2ei/node_modules/@codemod/utils/src/builders.ts
324
315
  import traverse2 from "@babel/traverse";
325
316
  import * as t7 from "@babel/types";
326
317
 
@@ -329,7 +320,7 @@ import {
329
320
  parse as babelParse
330
321
  } from "@babel/parser";
331
322
 
332
- // node_modules/.pnpm/@codemod+parser@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+parser&_fs5hcqxjns2czzj7224g5avgze/node_modules/@codemod/parser/src/options.ts
323
+ // node_modules/.pnpm/@codemod+parser@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+parser&_ox3mjiaipayjwtjxtrryvsdtqu/node_modules/@codemod/parser/src/options.ts
333
324
  var DefaultParserPlugins = new Set([
334
325
  "asyncGenerators",
335
326
  "bigInt",
@@ -359,7 +350,7 @@ var DefaultParserPlugins = new Set([
359
350
  ["pipelineOperator", { proposal: "minimal" }],
360
351
  ["recordAndTuple", { syntaxType: "hash" }]
361
352
  ]);
362
- // node_modules/.pnpm/@codemod+utils@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+utils&co_znh7smhwc47ernk2v3lf6wqp5q/node_modules/@codemod/utils/src/nodesEquivalent.ts
353
+ // node_modules/.pnpm/@codemod+utils@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+utils&co_nwjtgzgerilv5helbn32zsr2ei/node_modules/@codemod/utils/src/nodesEquivalent.ts
363
354
  import * as t8 from "@babel/types";
364
355
  function nodesEquivalent(a, b) {
365
356
  if (a === b) {
@@ -405,7 +396,7 @@ function nodesEquivalent(a, b) {
405
396
  }
406
397
  return true;
407
398
  }
408
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/fromCapture.ts
399
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/fromCapture.ts
409
400
  function fromCapture(capturedMatcher) {
410
401
  return new FromCaptureMatcher(capturedMatcher);
411
402
  }
@@ -423,10 +414,10 @@ class FromCaptureMatcher extends Matcher {
423
414
  return this.capturedMatcher.current === value;
424
415
  }
425
416
  }
426
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/function.ts
417
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/function.ts
427
418
  import * as t10 from "@babel/types";
428
419
 
429
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/tupleOf.ts
420
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/tupleOf.ts
430
421
  function tupleOf(...matchers) {
431
422
  return new TupleOfMatcher(...matchers);
432
423
  }
@@ -454,7 +445,7 @@ class TupleOfMatcher extends Matcher {
454
445
  return true;
455
446
  }
456
447
  }
457
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/generated.ts
448
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/generated.ts
458
449
  import * as t11 from "@babel/types";
459
450
  function arrayExpression(elements) {
460
451
  return new ArrayExpressionMatcher(elements);
@@ -815,8 +806,6 @@ class BreakStatementMatcher extends Matcher {
815
806
  if (node.label !== null) {
816
807
  return false;
817
808
  }
818
- } else if (node.label === null) {
819
- return false;
820
809
  } else if (!this.label.matchValue(node.label, [...keys, "label"])) {
821
810
  return false;
822
811
  }
@@ -969,8 +958,6 @@ class ClassPropertyMatcher extends Matcher {
969
958
  if (node.value !== null) {
970
959
  return false;
971
960
  }
972
- } else if (node.value === null) {
973
- return false;
974
961
  } else if (!this.value.matchValue(node.value, [...keys, "value"])) {
975
962
  return false;
976
963
  }
@@ -979,8 +966,6 @@ class ClassPropertyMatcher extends Matcher {
979
966
  if (node.typeAnnotation !== null) {
980
967
  return false;
981
968
  }
982
- } else if (node.typeAnnotation === null) {
983
- return false;
984
969
  } else if (!this.typeAnnotation.matchValue(node.typeAnnotation, [
985
970
  ...keys,
986
971
  "typeAnnotation"
@@ -992,8 +977,6 @@ class ClassPropertyMatcher extends Matcher {
992
977
  if (node.decorators !== null) {
993
978
  return false;
994
979
  }
995
- } else if (node.decorators === null) {
996
- return false;
997
980
  } else if (Array.isArray(this.decorators)) {
998
981
  if (!tupleOf(...this.decorators).matchValue(node.decorators, [
999
982
  ...keys,
@@ -1069,8 +1052,6 @@ class ContinueStatementMatcher extends Matcher {
1069
1052
  if (node.label !== null) {
1070
1053
  return false;
1071
1054
  }
1072
- } else if (node.label === null) {
1073
- return false;
1074
1055
  } else if (!this.label.matchValue(node.label, [...keys, "label"])) {
1075
1056
  return false;
1076
1057
  }
@@ -1144,8 +1125,6 @@ class ForStatementMatcher extends Matcher {
1144
1125
  if (node.init !== null) {
1145
1126
  return false;
1146
1127
  }
1147
- } else if (node.init === null) {
1148
- return false;
1149
1128
  } else if (!this.init.matchValue(node.init, [...keys, "init"])) {
1150
1129
  return false;
1151
1130
  }
@@ -1154,8 +1133,6 @@ class ForStatementMatcher extends Matcher {
1154
1133
  if (node.test !== null) {
1155
1134
  return false;
1156
1135
  }
1157
- } else if (node.test === null) {
1158
- return false;
1159
1136
  } else if (!this.test.matchValue(node.test, [...keys, "test"])) {
1160
1137
  return false;
1161
1138
  }
@@ -1164,8 +1141,6 @@ class ForStatementMatcher extends Matcher {
1164
1141
  if (node.update !== null) {
1165
1142
  return false;
1166
1143
  }
1167
- } else if (node.update === null) {
1168
- return false;
1169
1144
  } else if (!this.update.matchValue(node.update, [...keys, "update"])) {
1170
1145
  return false;
1171
1146
  }
@@ -1200,8 +1175,6 @@ class FunctionDeclarationMatcher extends Matcher {
1200
1175
  if (node.id !== null) {
1201
1176
  return false;
1202
1177
  }
1203
- } else if (node.id === null) {
1204
- return false;
1205
1178
  } else if (!this.id.matchValue(node.id, [...keys, "id"])) {
1206
1179
  return false;
1207
1180
  }
@@ -1263,8 +1236,6 @@ class FunctionExpressionMatcher extends Matcher {
1263
1236
  if (node.id !== null) {
1264
1237
  return false;
1265
1238
  }
1266
- } else if (node.id === null) {
1267
- return false;
1268
1239
  } else if (!this.id.matchValue(node.id, [...keys, "id"])) {
1269
1240
  return false;
1270
1241
  }
@@ -1351,8 +1322,6 @@ class IfStatementMatcher extends Matcher {
1351
1322
  if (node.alternate !== null) {
1352
1323
  return false;
1353
1324
  }
1354
- } else if (node.alternate === null) {
1355
- return false;
1356
1325
  } else if (!this.alternate.matchValue(node.alternate, [...keys, "alternate"])) {
1357
1326
  return false;
1358
1327
  }
@@ -1434,8 +1403,6 @@ class MemberExpressionMatcher extends Matcher {
1434
1403
  if (node.optional !== null) {
1435
1404
  return false;
1436
1405
  }
1437
- } else if (node.optional === null) {
1438
- return false;
1439
1406
  } else if (!this.optional.matchValue(node.optional, [...keys, "optional"])) {
1440
1407
  return false;
1441
1408
  }
@@ -1649,8 +1616,6 @@ class ObjectPropertyMatcher extends Matcher {
1649
1616
  if (node.decorators !== null) {
1650
1617
  return false;
1651
1618
  }
1652
- } else if (node.decorators === null) {
1653
- return false;
1654
1619
  } else if (Array.isArray(this.decorators)) {
1655
1620
  if (!tupleOf(...this.decorators).matchValue(node.decorators, [
1656
1621
  ...keys,
@@ -1740,8 +1705,6 @@ class ReturnStatementMatcher extends Matcher {
1740
1705
  if (node.argument !== null) {
1741
1706
  return false;
1742
1707
  }
1743
- } else if (node.argument === null) {
1744
- return false;
1745
1708
  } else if (!this.argument.matchValue(node.argument, [...keys, "argument"])) {
1746
1709
  return false;
1747
1710
  }
@@ -1829,8 +1792,6 @@ class SwitchCaseMatcher extends Matcher {
1829
1792
  if (node.test !== null) {
1830
1793
  return false;
1831
1794
  }
1832
- } else if (node.test === null) {
1833
- return false;
1834
1795
  } else if (!this.test.matchValue(node.test, [...keys, "test"])) {
1835
1796
  return false;
1836
1797
  }
@@ -1954,8 +1915,6 @@ class TryStatementMatcher extends Matcher {
1954
1915
  if (node.handler !== null) {
1955
1916
  return false;
1956
1917
  }
1957
- } else if (node.handler === null) {
1958
- return false;
1959
1918
  } else if (!this.handler.matchValue(node.handler, [...keys, "handler"])) {
1960
1919
  return false;
1961
1920
  }
@@ -1964,8 +1923,6 @@ class TryStatementMatcher extends Matcher {
1964
1923
  if (node.finalizer !== null) {
1965
1924
  return false;
1966
1925
  }
1967
- } else if (node.finalizer === null) {
1968
- return false;
1969
1926
  } else if (!this.finalizer.matchValue(node.finalizer, [...keys, "finalizer"])) {
1970
1927
  return false;
1971
1928
  }
@@ -2105,8 +2062,6 @@ class VariableDeclaratorMatcher extends Matcher {
2105
2062
  if (node.init !== null) {
2106
2063
  return false;
2107
2064
  }
2108
- } else if (node.init === null) {
2109
- return false;
2110
2065
  } else if (!this.init.matchValue(node.init, [...keys, "init"])) {
2111
2066
  return false;
2112
2067
  }
@@ -2136,7 +2091,7 @@ class WhileStatementMatcher extends Matcher {
2136
2091
  return true;
2137
2092
  }
2138
2093
  }
2139
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/or.ts
2094
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/or.ts
2140
2095
  function or(...matchersOrValues) {
2141
2096
  return new OrMatcher(...matchersOrValues);
2142
2097
  }
@@ -2160,7 +2115,7 @@ class OrMatcher extends Matcher {
2160
2115
  return false;
2161
2116
  }
2162
2117
  }
2163
- // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_3l2aawb6ukvrqui7q2q6hj3meu/node_modules/@codemod/matchers/src/matchers/predicate.ts
2118
+ // node_modules/.pnpm/@codemod+matchers@https+++gitpkg.vercel.app+api+pkg.tgz+url=codemod-js+codemod+packages+match_y3mhqth3x437cu4u7tvyd2tjkm/node_modules/@codemod/matchers/src/matchers/predicate.ts
2164
2119
  function predicate(predicate2) {
2165
2120
  return new PredicateMatcher(predicate2);
2166
2121
  }
@@ -2175,7 +2130,7 @@ class PredicateMatcher extends Matcher {
2175
2130
  return this.predicate(value);
2176
2131
  }
2177
2132
  }
2178
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/ast-utils/matcher.ts
2133
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/ast-utils/matcher.ts
2179
2134
  import * as t12 from "@babel/types";
2180
2135
  function infiniteLoop(body) {
2181
2136
  return or(forStatement(undefined, null, undefined, body), forStatement(undefined, truthyMatcher, undefined, body), whileStatement(truthyMatcher, body));
@@ -2227,7 +2182,7 @@ var trueMatcher = or(booleanLiteral(true), unaryExpression("!", numericLiteral(0
2227
2182
  var falseMatcher = or(booleanLiteral(false), unaryExpression("!", arrayExpression([])));
2228
2183
  var truthyMatcher = or(trueMatcher, arrayExpression([]));
2229
2184
 
2230
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/ast-utils/inline.ts
2185
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/ast-utils/inline.ts
2231
2186
  function inlineVariable(binding, value = anyExpression(), unsafeAssignments = false) {
2232
2187
  const varDeclarator = binding.path.node;
2233
2188
  const varMatcher = variableDeclarator(identifier(binding.identifier.name), value);
@@ -2359,7 +2314,7 @@ function inlineVariableAliases(binding, targetName = binding.identifier.name) {
2359
2314
  }
2360
2315
  return state;
2361
2316
  }
2362
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/ast-utils/rename.ts
2317
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/ast-utils/rename.ts
2363
2318
  import traverse6 from "@babel/traverse";
2364
2319
  import * as t14 from "@babel/types";
2365
2320
  function renameFast(binding, newName) {
@@ -2402,7 +2357,7 @@ function renameFast(binding, newName) {
2402
2357
  binding.scope.bindings[newName] = binding;
2403
2358
  binding.identifier.name = newName;
2404
2359
  }
2405
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/ast-utils/transform.ts
2360
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/ast-utils/transform.ts
2406
2361
  import traverse8, {visitors} from "@babel/traverse";
2407
2362
  import debug from "debug";
2408
2363
  async function applyTransformAsync(ast, transform, options2) {
@@ -2414,13 +2369,13 @@ async function applyTransformAsync(ast, transform, options2) {
2414
2369
  logger(`${transform.name}: finished with ${state.changes} changes`);
2415
2370
  return state;
2416
2371
  }
2417
- function applyTransform(ast, transform, options2, noScopeOverride) {
2372
+ function applyTransform(ast, transform, options2) {
2418
2373
  logger(`${transform.name}: started`);
2419
2374
  const state = { changes: 0 };
2420
2375
  transform.run?.(ast, state, options2);
2421
2376
  if (transform.visitor) {
2422
2377
  const visitor = transform.visitor(options2);
2423
- visitor.noScope = noScopeOverride || !transform.scope;
2378
+ visitor.noScope = !transform.scope;
2424
2379
  traverse8(ast, visitor, undefined, state);
2425
2380
  }
2426
2381
  logger(`${transform.name}: finished with ${state.changes} changes`);
@@ -2456,7 +2411,7 @@ function mergeTransforms(options2) {
2456
2411
  };
2457
2412
  }
2458
2413
  var logger = debug("webcrack:transforms");
2459
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/merge-strings.ts
2414
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/merge-strings.ts
2460
2415
  var merge_strings_default = {
2461
2416
  name: "merge-strings",
2462
2417
  tags: ["safe"],
@@ -2480,7 +2435,7 @@ var merge_strings_default = {
2480
2435
  }
2481
2436
  };
2482
2437
 
2483
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/deobfuscate/array-rotator.ts
2438
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/deobfuscate/array-rotator.ts
2484
2439
  function findArrayRotator(stringArray) {
2485
2440
  const arrayIdentifier = capture(identifier());
2486
2441
  const pushShift = callExpression(constMemberExpression(arrayIdentifier, "push"), [
@@ -2500,7 +2455,7 @@ function findArrayRotator(stringArray) {
2500
2455
  }
2501
2456
  }
2502
2457
 
2503
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/deobfuscate/control-flow-object.ts
2458
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/deobfuscate/control-flow-object.ts
2504
2459
  import * as t15 from "@babel/types";
2505
2460
  var control_flow_object_default = {
2506
2461
  name: "control-flow-object",
@@ -2535,7 +2490,8 @@ var control_flow_object_default = {
2535
2490
  const assignment = expressionStatement(assignmentExpression("=", constMemberExpression(fromCapture(varId), assignedKey), assignedValue));
2536
2491
  const looseAssignment = expressionStatement(assignmentExpression("=", constMemberExpression(fromCapture(varId), assignedKey)));
2537
2492
  const memberAccess = constMemberExpression(or(fromCapture(varId), fromCapture(aliasId)), propertyName);
2538
- const varMatcher = variableDeclarator(varId, capture(objectExpression(objectProperties)));
2493
+ const varMatcher = variableDeclarator(varId, objectExpression(objectProperties));
2494
+ const inlineMatcher = constMemberExpression(objectExpression(objectProperties), propertyName);
2539
2495
  function isConstantBinding(binding) {
2540
2496
  return binding.constant || binding.constantViolations[0] === binding.path;
2541
2497
  }
@@ -2619,12 +2575,30 @@ var control_flow_object_default = {
2619
2575
  exit(path) {
2620
2576
  this.changes += transform2(path);
2621
2577
  }
2578
+ },
2579
+ MemberExpression: {
2580
+ exit(path) {
2581
+ if (!inlineMatcher.match(path.node))
2582
+ return;
2583
+ const propName = getPropName(path.node.property);
2584
+ const value = objectProperties.current.find((prop) => getPropName(prop.key) === propName)?.value;
2585
+ if (!value)
2586
+ return;
2587
+ if (t15.isStringLiteral(value)) {
2588
+ path.replaceWith(value);
2589
+ } else if (path.parentPath.isCallExpression()) {
2590
+ inlineFunction(value, path.parentPath);
2591
+ } else {
2592
+ path.replaceWith(value);
2593
+ }
2594
+ this.changes++;
2595
+ }
2622
2596
  }
2623
2597
  };
2624
2598
  }
2625
2599
  };
2626
2600
 
2627
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/deobfuscate/control-flow-switch.ts
2601
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/deobfuscate/control-flow-switch.ts
2628
2602
  import * as t16 from "@babel/types";
2629
2603
  var control_flow_switch_default = {
2630
2604
  name: "control-flow-switch",
@@ -2659,9 +2633,9 @@ var control_flow_switch_default = {
2659
2633
  }
2660
2634
  };
2661
2635
 
2662
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/deobfuscate/dead-code.ts
2636
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/deobfuscate/dead-code.ts
2663
2637
  import * as t17 from "@babel/types";
2664
- var replace = function(path, replacement) {
2638
+ function replace(path, replacement) {
2665
2639
  if (t17.isBlockStatement(replacement.node)) {
2666
2640
  const childBindings = replacement.scope.bindings;
2667
2641
  for (const name in childBindings) {
@@ -2676,7 +2650,7 @@ var replace = function(path, replacement) {
2676
2650
  } else {
2677
2651
  path.replaceWith(replacement);
2678
2652
  }
2679
- };
2653
+ }
2680
2654
  var dead_code_default = {
2681
2655
  name: "dead-code",
2682
2656
  tags: ["unsafe"],
@@ -2704,7 +2678,7 @@ var dead_code_default = {
2704
2678
  }
2705
2679
  };
2706
2680
 
2707
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/deobfuscate/decoder.ts
2681
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/deobfuscate/decoder.ts
2708
2682
  import {expression} from "@babel/template";
2709
2683
  function findDecoders(stringArray) {
2710
2684
  const decoders = [];
@@ -2773,7 +2747,7 @@ class Decoder {
2773
2747
  }
2774
2748
  }
2775
2749
 
2776
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/deobfuscate/inline-decoded-strings.ts
2750
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/deobfuscate/inline-decoded-strings.ts
2777
2751
  import * as t18 from "@babel/types";
2778
2752
  var inline_decoded_strings_default = {
2779
2753
  name: "inline-decoded-strings",
@@ -2795,7 +2769,7 @@ var inline_decoded_strings_default = {
2795
2769
  }
2796
2770
  };
2797
2771
 
2798
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/deobfuscate/inline-decoder-wrappers.ts
2772
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/deobfuscate/inline-decoder-wrappers.ts
2799
2773
  var inline_decoder_wrappers_default = {
2800
2774
  name: "inline-decoder-wrappers",
2801
2775
  tags: ["unsafe"],
@@ -2812,7 +2786,7 @@ var inline_decoder_wrappers_default = {
2812
2786
  }
2813
2787
  };
2814
2788
 
2815
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/deobfuscate/inline-object-props.ts
2789
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/deobfuscate/inline-object-props.ts
2816
2790
  var inline_object_props_default = {
2817
2791
  name: "inline-object-props",
2818
2792
  tags: ["safe"],
@@ -2850,7 +2824,7 @@ var inline_object_props_default = {
2850
2824
  }
2851
2825
  };
2852
2826
 
2853
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/deobfuscate/string-array.ts
2827
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/deobfuscate/string-array.ts
2854
2828
  import traverse10 from "@babel/traverse";
2855
2829
  function findStringArray(ast2) {
2856
2830
  let result;
@@ -2900,7 +2874,7 @@ function findStringArray(ast2) {
2900
2874
  return result;
2901
2875
  }
2902
2876
 
2903
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/deobfuscate/vm.ts
2877
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/deobfuscate/vm.ts
2904
2878
  import debug2 from "debug";
2905
2879
  class VMDecoder {
2906
2880
  decoders;
@@ -2994,9 +2968,9 @@ var var_functions_default = {
2994
2968
 
2995
2969
  // /home/mochaa/ghq/git.sr.ht/~self/delance-builder/node_modules/webcrack/src/deobfuscate/merge-object-assignments.ts
2996
2970
  import * as t20 from "@babel/types";
2997
- var hasCircularReference = function(node, binding) {
2971
+ function hasCircularReference(node, binding) {
2998
2972
  return binding.referencePaths.some((path) => path.find((p) => p.node === node)) || containerOf(callExpression()).match(node);
2999
- };
2973
+ }
3000
2974
  var merge_object_assignments_default = {
3001
2975
  name: "merge-object-assignments",
3002
2976
  tags: ["safe"],
@@ -3045,7 +3019,7 @@ var merge_object_assignments_default = {
3045
3019
  var inlineableObject = predicate((node) => or(safeLiteral, arrayExpression(arrayOf(inlineableObject)), objectExpression(arrayOf(constObjectProperty(inlineableObject)))).match(node));
3046
3020
 
3047
3021
  // /home/mochaa/ghq/git.sr.ht/~self/delance-builder/node_modules/webcrack/src/deobfuscate/self-defending.ts
3048
- var removeSelfDefendingRefs = function(path) {
3022
+ function removeSelfDefendingRefs(path) {
3049
3023
  const varName = capture(anyString());
3050
3024
  const varMatcher = variableDeclarator(identifier(varName), callExpression(identifier(path.node.name)));
3051
3025
  const callMatcher = expressionStatement(callExpression(identifier(fromCapture(varName)), []));
@@ -3058,7 +3032,7 @@ var removeSelfDefendingRefs = function(path) {
3058
3032
  });
3059
3033
  varDecl.remove();
3060
3034
  }
3061
- };
3035
+ }
3062
3036
  var self_defending_default = {
3063
3037
  name: "self-defending",
3064
3038
  tags: ["safe"],
@@ -3119,109 +3093,30 @@ var self_defending_default = {
3119
3093
  // /home/mochaa/ghq/git.sr.ht/~self/delance-builder/node_modules/webcrack/src/unminify/transforms/index.ts
3120
3094
  var exports_transforms = {};
3121
3095
  __export(exports_transforms, {
3122
- yoda: () => {
3123
- {
3124
- return yoda_default;
3125
- }
3126
- },
3127
- voidToUndefined: () => {
3128
- {
3129
- return void_to_undefined_default;
3130
- }
3131
- },
3132
- unminifyBooleans: () => {
3133
- {
3134
- return unminify_booleans_default;
3135
- }
3136
- },
3137
- unaryExpressions: () => {
3138
- {
3139
- return unary_expressions_default;
3140
- }
3141
- },
3142
- typeofUndefined: () => {
3143
- {
3144
- return typeof_undefined_default;
3145
- }
3146
- },
3147
- ternaryToIf: () => {
3148
- {
3149
- return ternary_to_if_default;
3150
- }
3151
- },
3152
- splitVariableDeclarations: () => {
3153
- {
3154
- return split_variable_declarations_default;
3155
- }
3156
- },
3157
- splitForLoopVars: () => {
3158
- {
3159
- return split_for_loop_vars_default;
3160
- }
3161
- },
3162
- sequence: () => {
3163
- {
3164
- return sequence_default;
3165
- }
3166
- },
3167
- rawLiterals: () => {
3168
- {
3169
- return raw_literals_default;
3170
- }
3171
- },
3172
- numberExpressions: () => {
3173
- {
3174
- return number_expressions_default;
3175
- }
3176
- },
3177
- mergeStrings: () => {
3178
- {
3179
- return merge_strings_default;
3180
- }
3181
- },
3182
- mergeElseIf: () => {
3183
- {
3184
- return merge_else_if_default;
3185
- }
3186
- },
3187
- logicalToIf: () => {
3188
- {
3189
- return logical_to_if_default;
3190
- }
3191
- },
3192
- jsonParse: () => {
3193
- {
3194
- return json_parse_default;
3195
- }
3196
- },
3197
- invertBooleanLogic: () => {
3198
- {
3199
- return invert_boolean_logic_default;
3200
- }
3201
- },
3202
- infinity: () => {
3203
- {
3204
- return infinity_default;
3205
- }
3206
- },
3207
- forToWhile: () => {
3208
- {
3209
- return for_to_while_default;
3210
- }
3211
- },
3212
- computedProperties: () => {
3213
- {
3214
- return computed_properties_default;
3215
- }
3216
- },
3217
- blockStatements: () => {
3218
- {
3219
- return block_statements_default;
3220
- }
3221
- }
3096
+ yoda: () => yoda_default,
3097
+ voidToUndefined: () => void_to_undefined_default,
3098
+ unminifyBooleans: () => unminify_booleans_default,
3099
+ unaryExpressions: () => unary_expressions_default,
3100
+ typeofUndefined: () => typeof_undefined_default,
3101
+ ternaryToIf: () => ternary_to_if_default,
3102
+ splitVariableDeclarations: () => split_variable_declarations_default,
3103
+ splitForLoopVars: () => split_for_loop_vars_default,
3104
+ sequence: () => sequence_default,
3105
+ removeDoubleNot: () => remove_double_not_default,
3106
+ rawLiterals: () => raw_literals_default,
3107
+ numberExpressions: () => number_expressions_default,
3108
+ mergeStrings: () => merge_strings_default,
3109
+ mergeElseIf: () => merge_else_if_default,
3110
+ logicalToIf: () => logical_to_if_default,
3111
+ jsonParse: () => json_parse_default,
3112
+ invertBooleanLogic: () => invert_boolean_logic_default,
3113
+ infinity: () => infinity_default,
3114
+ forToWhile: () => for_to_while_default,
3115
+ computedProperties: () => computed_properties_default,
3116
+ blockStatements: () => block_statements_default
3222
3117
  });
3223
3118
 
3224
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/block-statements.ts
3119
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/block-statements.ts
3225
3120
  import * as t21 from "@babel/types";
3226
3121
  var block_statements_default = {
3227
3122
  name: "block-statements",
@@ -3259,7 +3154,7 @@ var block_statements_default = {
3259
3154
  }
3260
3155
  })
3261
3156
  };
3262
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/computed-properties.ts
3157
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/computed-properties.ts
3263
3158
  import {isIdentifierName} from "@babel/helper-validator-identifier";
3264
3159
  import * as t22 from "@babel/types";
3265
3160
  var computed_properties_default = {
@@ -3293,7 +3188,7 @@ var computed_properties_default = {
3293
3188
  };
3294
3189
  }
3295
3190
  };
3296
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/for-to-while.ts
3191
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/for-to-while.ts
3297
3192
  import * as t23 from "@babel/types";
3298
3193
  var for_to_while_default = {
3299
3194
  name: "for-to-while",
@@ -3312,7 +3207,7 @@ var for_to_while_default = {
3312
3207
  };
3313
3208
  }
3314
3209
  };
3315
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/infinity.ts
3210
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/infinity.ts
3316
3211
  import * as t24 from "@babel/types";
3317
3212
  var infinity_default = {
3318
3213
  name: "infinity",
@@ -3338,17 +3233,13 @@ var infinity_default = {
3338
3233
  };
3339
3234
  }
3340
3235
  };
3341
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/invert-boolean-logic.ts
3236
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/invert-boolean-logic.ts
3342
3237
  import * as t25 from "@babel/types";
3343
3238
  var INVERTED_BINARY_OPERATORS = {
3344
3239
  "==": "!=",
3345
3240
  "===": "!==",
3346
3241
  "!=": "==",
3347
- "!==": "===",
3348
- ">": "<=",
3349
- "<": ">=",
3350
- ">=": "<",
3351
- "<=": ">"
3242
+ "!==": "==="
3352
3243
  };
3353
3244
  var INVERTED_LOGICAL_OPERATORS = {
3354
3245
  "||": "&&",
@@ -3388,7 +3279,7 @@ var invert_boolean_logic_default = {
3388
3279
  };
3389
3280
  }
3390
3281
  };
3391
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/json-parse.ts
3282
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/json-parse.ts
3392
3283
  import {parseExpression} from "@babel/parser";
3393
3284
  var json_parse_default = {
3394
3285
  name: "json-parse",
@@ -3408,7 +3299,7 @@ var json_parse_default = {
3408
3299
  const parsed = parseExpression(string.current);
3409
3300
  path.replaceWith(parsed);
3410
3301
  this.changes++;
3411
- } catch (error) {
3302
+ } catch {
3412
3303
  }
3413
3304
  }
3414
3305
  }
@@ -3416,7 +3307,7 @@ var json_parse_default = {
3416
3307
  };
3417
3308
  }
3418
3309
  };
3419
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/logical-to-if.ts
3310
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/logical-to-if.ts
3420
3311
  import {statement} from "@babel/template";
3421
3312
  import * as t26 from "@babel/types";
3422
3313
  var logical_to_if_default = {
@@ -3449,7 +3340,7 @@ var logical_to_if_default = {
3449
3340
  };
3450
3341
  }
3451
3342
  };
3452
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/merge-else-if.ts
3343
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/merge-else-if.ts
3453
3344
  var merge_else_if_default = {
3454
3345
  name: "merge-else-if",
3455
3346
  tags: ["safe"],
@@ -3468,7 +3359,7 @@ var merge_else_if_default = {
3468
3359
  };
3469
3360
  }
3470
3361
  };
3471
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/number-expressions.ts
3362
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/number-expressions.ts
3472
3363
  import * as t27 from "@babel/types";
3473
3364
  var number_expressions_default = {
3474
3365
  name: "number-expressions",
@@ -3490,7 +3381,7 @@ var number_expressions_default = {
3490
3381
  })
3491
3382
  };
3492
3383
  var matcher3 = or(unaryExpression("-", or(stringLiteral(), numericLiteral())), binaryExpression(or("+", "-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"), or(stringLiteral(), numericLiteral(), unaryExpression("-", numericLiteral())), or(stringLiteral(), numericLiteral(), unaryExpression("-", numericLiteral()))));
3493
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/raw-literals.ts
3384
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/raw-literals.ts
3494
3385
  var raw_literals_default = {
3495
3386
  name: "raw-literals",
3496
3387
  tags: ["safe"],
@@ -3509,8 +3400,46 @@ var raw_literals_default = {
3509
3400
  }
3510
3401
  })
3511
3402
  };
3512
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/sequence.ts
3403
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/remove-double-not.ts
3513
3404
  import * as t28 from "@babel/types";
3405
+ var remove_double_not_default = {
3406
+ name: "remove-double-not",
3407
+ tags: ["safe"],
3408
+ visitor() {
3409
+ const expression2 = capture(anyExpression());
3410
+ const doubleNot = unaryExpression("!", unaryExpression("!", expression2));
3411
+ const tripleNot = unaryExpression("!", doubleNot);
3412
+ const arrayCall = callExpression(constMemberExpression(arrayExpression(), or("filter", "find", "findLast", "findIndex", "findLastIndex", "some", "every")), [arrowFunctionExpression(anything(), doubleNot)]);
3413
+ return {
3414
+ Conditional: {
3415
+ exit(path) {
3416
+ if (doubleNot.match(path.node.test)) {
3417
+ path.get("test").replaceWith(expression2.current);
3418
+ this.changes++;
3419
+ }
3420
+ }
3421
+ },
3422
+ UnaryExpression: {
3423
+ exit(path) {
3424
+ if (tripleNot.match(path.node)) {
3425
+ path.replaceWith(t28.unaryExpression("!", expression2.current));
3426
+ this.changes++;
3427
+ }
3428
+ }
3429
+ },
3430
+ CallExpression: {
3431
+ exit(path) {
3432
+ if (arrayCall.match(path.node)) {
3433
+ path.get("arguments.0.body").replaceWith(expression2.current);
3434
+ this.changes++;
3435
+ }
3436
+ }
3437
+ }
3438
+ };
3439
+ }
3440
+ };
3441
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/sequence.ts
3442
+ import * as t29 from "@babel/types";
3514
3443
  var sequence_default = {
3515
3444
  name: "sequence",
3516
3445
  tags: ["safe"],
@@ -3525,90 +3454,99 @@ var sequence_default = {
3525
3454
  return;
3526
3455
  const { expressions } = assignedSequence.current;
3527
3456
  path.node.right = expressions.pop();
3528
- const newNodes = path.parentPath.isExpressionStatement() ? expressions.map(t28.expressionStatement) : expressions;
3457
+ const newNodes = path.parentPath.isExpressionStatement() ? expressions.map(t29.expressionStatement) : expressions;
3529
3458
  path.insertBefore(newNodes);
3530
3459
  this.changes++;
3531
3460
  }
3532
3461
  },
3533
3462
  ExpressionStatement: {
3534
3463
  exit(path) {
3535
- if (!t28.isSequenceExpression(path.node.expression))
3464
+ if (!t29.isSequenceExpression(path.node.expression))
3536
3465
  return;
3537
- const statements = path.node.expression.expressions.map(t28.expressionStatement);
3466
+ const statements = path.node.expression.expressions.map(t29.expressionStatement);
3538
3467
  path.replaceWithMultiple(statements);
3539
3468
  this.changes++;
3540
3469
  }
3541
3470
  },
3542
3471
  ReturnStatement: {
3543
3472
  exit(path) {
3544
- if (!t28.isSequenceExpression(path.node.argument))
3473
+ if (!t29.isSequenceExpression(path.node.argument))
3545
3474
  return;
3546
3475
  const { expressions } = path.node.argument;
3547
3476
  path.node.argument = expressions.pop();
3548
- const statements = expressions.map(t28.expressionStatement);
3477
+ const statements = expressions.map(t29.expressionStatement);
3549
3478
  path.insertBefore(statements);
3550
3479
  this.changes++;
3551
3480
  }
3552
3481
  },
3553
3482
  IfStatement: {
3554
3483
  exit(path) {
3555
- if (!t28.isSequenceExpression(path.node.test))
3484
+ if (!t29.isSequenceExpression(path.node.test))
3556
3485
  return;
3557
3486
  const { expressions } = path.node.test;
3558
3487
  path.node.test = expressions.pop();
3559
- const statements = expressions.map(t28.expressionStatement);
3488
+ const statements = expressions.map(t29.expressionStatement);
3560
3489
  path.insertBefore(statements);
3561
3490
  this.changes++;
3562
3491
  }
3563
3492
  },
3564
3493
  SwitchStatement: {
3565
3494
  exit(path) {
3566
- if (!t28.isSequenceExpression(path.node.discriminant))
3495
+ if (!t29.isSequenceExpression(path.node.discriminant))
3567
3496
  return;
3568
3497
  const { expressions } = path.node.discriminant;
3569
3498
  path.node.discriminant = expressions.pop();
3570
- const statements = expressions.map(t28.expressionStatement);
3499
+ const statements = expressions.map(t29.expressionStatement);
3571
3500
  path.insertBefore(statements);
3572
3501
  this.changes++;
3573
3502
  }
3574
3503
  },
3575
3504
  ThrowStatement: {
3576
3505
  exit(path) {
3577
- if (!t28.isSequenceExpression(path.node.argument))
3506
+ if (!t29.isSequenceExpression(path.node.argument))
3578
3507
  return;
3579
3508
  const { expressions } = path.node.argument;
3580
3509
  path.node.argument = expressions.pop();
3581
- const statements = expressions.map(t28.expressionStatement);
3510
+ const statements = expressions.map(t29.expressionStatement);
3582
3511
  path.insertBefore(statements);
3583
3512
  this.changes++;
3584
3513
  }
3585
3514
  },
3586
3515
  ForInStatement: {
3587
3516
  exit(path) {
3588
- const sequence = capture(sequenceExpression());
3589
- const matcher4 = forInStatement(anything(), sequence);
3590
- if (!matcher4.match(path.node))
3517
+ if (!t29.isSequenceExpression(path.node.right))
3591
3518
  return;
3592
- const { expressions } = sequence.current;
3519
+ const { expressions } = path.node.right;
3520
+ path.node.right = expressions.pop();
3521
+ const statements = expressions.map(t29.expressionStatement);
3522
+ path.insertBefore(statements);
3523
+ this.changes++;
3524
+ }
3525
+ },
3526
+ ForOfStatement: {
3527
+ exit(path) {
3528
+ if (!t29.isSequenceExpression(path.node.right))
3529
+ return;
3530
+ const { expressions } = path.node.right;
3593
3531
  path.node.right = expressions.pop();
3594
- const statements = expressions.map(t28.expressionStatement);
3532
+ const statements = expressions.map(t29.expressionStatement);
3595
3533
  path.insertBefore(statements);
3596
3534
  this.changes++;
3597
3535
  }
3598
3536
  },
3599
3537
  ForStatement: {
3600
3538
  exit(path) {
3601
- if (t28.isSequenceExpression(path.node.init)) {
3602
- const statements = path.node.init.expressions.map(t28.expressionStatement);
3539
+ if (t29.isSequenceExpression(path.node.init)) {
3540
+ const statements = path.node.init.expressions.map(t29.expressionStatement);
3603
3541
  path.node.init = null;
3604
3542
  path.insertBefore(statements);
3605
3543
  this.changes++;
3606
3544
  }
3607
- if (t28.isSequenceExpression(path.node.update) && path.node.body.type === "EmptyStatement") {
3545
+ if (t29.isSequenceExpression(path.node.update) && path.node.body.type === "EmptyStatement") {
3608
3546
  const { expressions } = path.node.update;
3609
3547
  path.node.update = expressions.pop();
3610
- const statements = expressions.map(t28.expressionStatement);
3611
- path.node.body = t28.blockStatement(statements);
3548
+ const statements = expressions.map(t29.expressionStatement);
3549
+ path.node.body = t29.blockStatement(statements);
3612
3550
  this.changes++;
3613
3551
  }
3614
3552
  }
@@ -3623,16 +3561,25 @@ var sequence_default = {
3623
3561
  return;
3624
3562
  const { expressions } = sequence.current;
3625
3563
  path.node.declarations[0].init = expressions.pop();
3626
- const statements = expressions.map(t28.expressionStatement);
3564
+ const statements = expressions.map(t29.expressionStatement);
3627
3565
  path.getStatementParent()?.insertBefore(statements);
3628
3566
  this.changes++;
3629
3567
  }
3568
+ },
3569
+ SequenceExpression: {
3570
+ exit(path) {
3571
+ const { expressions } = path.node;
3572
+ if (expressions.every((node) => safeLiteral.match(node))) {
3573
+ path.replaceWith(expressions.at(-1));
3574
+ this.changes++;
3575
+ }
3576
+ }
3630
3577
  }
3631
3578
  };
3632
3579
  }
3633
3580
  };
3634
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/split-for-loop-vars.ts
3635
- import * as t29 from "@babel/types";
3581
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/split-for-loop-vars.ts
3582
+ import * as t30 from "@babel/types";
3636
3583
  var matcher4 = forStatement(variableDeclaration("var", arrayOf(variableDeclarator(identifier()))));
3637
3584
  var split_for_loop_vars_default = {
3638
3585
  name: "split-for-loop-vars",
@@ -3653,7 +3600,7 @@ var split_for_loop_vars_default = {
3653
3600
  const isUsedInTestOrUpdate = binding.constantViolations.some((reference) => reference.find((p) => p.node === test || p.node === update)) || binding.referencePaths.some((reference) => reference.find((p) => p.node === test || p.node === update));
3654
3601
  if (isUsedInTestOrUpdate)
3655
3602
  break;
3656
- path.insertBefore(t29.variableDeclaration("var", [declarator]));
3603
+ path.insertBefore(t30.variableDeclaration("var", [declarator]));
3657
3604
  declarations.shift();
3658
3605
  i--;
3659
3606
  this.changes++;
@@ -3664,8 +3611,8 @@ var split_for_loop_vars_default = {
3664
3611
  }
3665
3612
  })
3666
3613
  };
3667
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/split-variable-declarations.ts
3668
- import * as t30 from "@babel/types";
3614
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/split-variable-declarations.ts
3615
+ import * as t31 from "@babel/types";
3669
3616
  var split_variable_declarations_default = {
3670
3617
  name: "split-variable-declarations",
3671
3618
  tags: ["safe"],
@@ -3675,15 +3622,15 @@ var split_variable_declarations_default = {
3675
3622
  if (path.node.declarations.length > 1) {
3676
3623
  if (path.key === "init" && path.parentPath.isForStatement()) {
3677
3624
  if (!path.parentPath.node.test && !path.parentPath.node.update && path.node.kind === "var") {
3678
- path.parentPath.insertBefore(path.node.declarations.map((declaration) => t30.variableDeclaration(path.node.kind, [declaration])));
3625
+ path.parentPath.insertBefore(path.node.declarations.map((declaration) => t31.variableDeclaration(path.node.kind, [declaration])));
3679
3626
  path.remove();
3680
3627
  this.changes++;
3681
3628
  }
3682
3629
  } else {
3683
3630
  if (path.parentPath.isExportNamedDeclaration()) {
3684
- path.parentPath.replaceWithMultiple(path.node.declarations.map((declaration) => t30.exportNamedDeclaration(t30.variableDeclaration(path.node.kind, [declaration]))));
3631
+ path.parentPath.replaceWithMultiple(path.node.declarations.map((declaration) => t31.exportNamedDeclaration(t31.variableDeclaration(path.node.kind, [declaration]))));
3685
3632
  } else {
3686
- path.replaceWithMultiple(path.node.declarations.map((declaration) => t30.variableDeclaration(path.node.kind, [declaration])));
3633
+ path.replaceWithMultiple(path.node.declarations.map((declaration) => t31.variableDeclaration(path.node.kind, [declaration])));
3687
3634
  }
3688
3635
  this.changes++;
3689
3636
  }
@@ -3692,7 +3639,7 @@ var split_variable_declarations_default = {
3692
3639
  }
3693
3640
  })
3694
3641
  };
3695
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/ternary-to-if.ts
3642
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/ternary-to-if.ts
3696
3643
  import {statement as statement2} from "@babel/template";
3697
3644
  var ternary_to_if_default = {
3698
3645
  name: "ternary-to-if",
@@ -3732,8 +3679,8 @@ var ternary_to_if_default = {
3732
3679
  };
3733
3680
  }
3734
3681
  };
3735
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/typeof-undefined.ts
3736
- import * as t31 from "@babel/types";
3682
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/typeof-undefined.ts
3683
+ import * as t32 from "@babel/types";
3737
3684
  var OPERATOR_MAP = {
3738
3685
  ">": "===",
3739
3686
  "<": "!=="
@@ -3750,15 +3697,15 @@ var typeof_undefined_default = {
3750
3697
  exit(path) {
3751
3698
  if (!matcher5.match(path.node))
3752
3699
  return;
3753
- path.replaceWith(t31.binaryExpression(OPERATOR_MAP[operator.current], t31.unaryExpression("typeof", argument.current), t31.stringLiteral("undefined")));
3700
+ path.replaceWith(t32.binaryExpression(OPERATOR_MAP[operator.current], t32.unaryExpression("typeof", argument.current), t32.stringLiteral("undefined")));
3754
3701
  this.changes++;
3755
3702
  }
3756
3703
  }
3757
3704
  };
3758
3705
  }
3759
3706
  };
3760
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/unary-expressions.ts
3761
- import * as t32 from "@babel/types";
3707
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/unary-expressions.ts
3708
+ import * as t33 from "@babel/types";
3762
3709
  var unary_expressions_default = {
3763
3710
  name: "unary-expressions",
3764
3711
  tags: ["safe"],
@@ -3780,25 +3727,25 @@ var unary_expressions_default = {
3780
3727
  if (!returnVoid.match(path.node))
3781
3728
  return;
3782
3729
  path.replaceWith(argument.current);
3783
- path.insertAfter(t32.returnStatement());
3730
+ path.insertAfter(t33.returnStatement());
3784
3731
  this.changes++;
3785
3732
  }
3786
3733
  }
3787
3734
  };
3788
3735
  }
3789
3736
  };
3790
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/unminify-booleans.ts
3791
- import * as t33 from "@babel/types";
3737
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/unminify-booleans.ts
3738
+ import * as t34 from "@babel/types";
3792
3739
  var unminify_booleans_default = {
3793
3740
  name: "unminify-booleans",
3794
3741
  tags: ["safe"],
3795
3742
  visitor: () => ({
3796
3743
  UnaryExpression(path) {
3797
3744
  if (trueMatcher2.match(path.node)) {
3798
- path.replaceWith(t33.booleanLiteral(true));
3745
+ path.replaceWith(t34.booleanLiteral(true));
3799
3746
  this.changes++;
3800
3747
  } else if (falseMatcher2.match(path.node)) {
3801
- path.replaceWith(t33.booleanLiteral(false));
3748
+ path.replaceWith(t34.booleanLiteral(false));
3802
3749
  this.changes++;
3803
3750
  }
3804
3751
  }
@@ -3806,8 +3753,8 @@ var unminify_booleans_default = {
3806
3753
  };
3807
3754
  var trueMatcher2 = or(unaryExpression("!", numericLiteral(0)), unaryExpression("!", unaryExpression("!", numericLiteral(1))), unaryExpression("!", unaryExpression("!", arrayExpression([]))));
3808
3755
  var falseMatcher2 = or(unaryExpression("!", numericLiteral(1)), unaryExpression("!", arrayExpression([])));
3809
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/void-to-undefined.ts
3810
- import * as t34 from "@babel/types";
3756
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/void-to-undefined.ts
3757
+ import * as t35 from "@babel/types";
3811
3758
  var void_to_undefined_default = {
3812
3759
  name: "void-to-undefined",
3813
3760
  tags: ["safe"],
@@ -3818,7 +3765,7 @@ var void_to_undefined_default = {
3818
3765
  UnaryExpression: {
3819
3766
  exit(path) {
3820
3767
  if (matcher5.match(path.node) && !path.scope.hasBinding("undefined", { noGlobals: true })) {
3821
- path.replaceWith(t34.identifier("undefined"));
3768
+ path.replaceWith(t35.identifier("undefined"));
3822
3769
  this.changes++;
3823
3770
  }
3824
3771
  }
@@ -3826,8 +3773,8 @@ var void_to_undefined_default = {
3826
3773
  };
3827
3774
  }
3828
3775
  };
3829
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/unminify/transforms/yoda.ts
3830
- import * as t35 from "@babel/types";
3776
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/unminify/transforms/yoda.ts
3777
+ import * as t36 from "@babel/types";
3831
3778
  var FLIPPED_OPERATORS = {
3832
3779
  "==": "==",
3833
3780
  "===": "===",
@@ -3846,12 +3793,12 @@ var yoda_default = {
3846
3793
  name: "yoda",
3847
3794
  tags: ["safe"],
3848
3795
  visitor: () => {
3849
- const matcher5 = binaryExpression(or(...Object.values(FLIPPED_OPERATORS)), or(stringLiteral(), numericLiteral(), unaryExpression("-", or(numericLiteral(), identifier("Infinity"))), booleanLiteral(), nullLiteral(), identifier("undefined"), identifier("NaN"), identifier("Infinity")), predicate((node) => !t35.isLiteral(node)));
3796
+ const matcher5 = binaryExpression(or(...Object.values(FLIPPED_OPERATORS)), or(stringLiteral(), numericLiteral(), unaryExpression("-", or(numericLiteral(), identifier("Infinity"))), booleanLiteral(), nullLiteral(), identifier("undefined"), identifier("NaN"), identifier("Infinity")), predicate((node) => !t36.isLiteral(node)));
3850
3797
  return {
3851
3798
  BinaryExpression: {
3852
3799
  exit(path) {
3853
3800
  if (matcher5.match(path.node)) {
3854
- path.replaceWith(t35.binaryExpression(FLIPPED_OPERATORS[path.node.operator], path.node.right, path.node.left));
3801
+ path.replaceWith(t36.binaryExpression(FLIPPED_OPERATORS[path.node.operator], path.node.right, path.node.left));
3855
3802
  this.changes++;
3856
3803
  }
3857
3804
  }
@@ -3874,7 +3821,7 @@ async function transform2(ast2) {
3874
3821
  const quickjs = await getQuickJS();
3875
3822
  await applyTransformAsync(ast2, deobfuscate_default, async (code) => quickjs.evalCode(code, {
3876
3823
  shouldInterrupt: shouldInterruptAfterDeadline(Date.now() + 2000),
3877
- memoryLimitBytes: 2097152
3824
+ memoryLimitBytes: 2 * 1024 * 1024
3878
3825
  }));
3879
3826
  applyTransform(ast2, unminify_default);
3880
3827
  applyTransform(ast2, merge_object_assignments_default);
@@ -3883,7 +3830,7 @@ async function transform2(ast2) {
3883
3830
  }
3884
3831
 
3885
3832
  // transform/esmodule/module-helper.ts
3886
- import * as t36 from "@babel/types";
3833
+ import * as t37 from "@babel/types";
3887
3834
 
3888
3835
  // utils/matchers/chunk.ts
3889
3836
  function chunk(id) {
@@ -4132,19 +4079,19 @@ var module_helper_default = {
4132
4079
  if (!$id.isIdentifier()) {
4133
4080
  return;
4134
4081
  }
4135
- if (importStar_default.match(t36.cloneNode(p2.node))) {
4082
+ if (importStar_default.match(t37.cloneNode(p2.node))) {
4136
4083
  $id.scope.rename($id.node.name, "__importStar");
4137
4084
  $decl.get("init").replaceWith(__importStar);
4138
- } else if (setModuleDefault_default.match(t36.cloneNode(p2.node))) {
4085
+ } else if (setModuleDefault_default.match(t37.cloneNode(p2.node))) {
4139
4086
  $id.scope.rename($id.node.name, "__setModuleDefault");
4140
4087
  $decl.get("init").replaceWith(__setModuleDefault);
4141
- } else if (importDefault_default.match(t36.cloneNode(p2.node))) {
4088
+ } else if (importDefault_default.match(t37.cloneNode(p2.node))) {
4142
4089
  $id.scope.rename($id.node.name, "__importDefault");
4143
4090
  $decl.get("init").replaceWith(__importDefault);
4144
- } else if (createBinding_default.match(t36.cloneNode(p2.node))) {
4091
+ } else if (createBinding_default.match(t37.cloneNode(p2.node))) {
4145
4092
  $id.scope.rename($id.node.name, "__createBinding");
4146
4093
  $decl.get("init").replaceWith(__createBinding);
4147
- } else if (exportStar_default.match(t36.cloneNode(p2.node))) {
4094
+ } else if (exportStar_default.match(t37.cloneNode(p2.node))) {
4148
4095
  $id.scope.rename($id.node.name, "__exportStar");
4149
4096
  $decl.get("init").replaceWith(__exportStar);
4150
4097
  } else {
@@ -4161,7 +4108,7 @@ var module_helper_default = {
4161
4108
  };
4162
4109
 
4163
4110
  // transform/esmodule/indirect-call.ts
4164
- import * as t37 from "@babel/types";
4111
+ import * as t38 from "@babel/types";
4165
4112
  var indirect_call_default = {
4166
4113
  name: "indirect-call",
4167
4114
  tags: ["unsafe"],
@@ -4169,16 +4116,16 @@ var indirect_call_default = {
4169
4116
  CallExpression: {
4170
4117
  exit($) {
4171
4118
  const { callee, arguments: _arguments } = $.node;
4172
- if (!t37.isSequenceExpression(callee)) {
4119
+ if (!t38.isSequenceExpression(callee)) {
4173
4120
  return;
4174
4121
  }
4175
4122
  const exprs = [...callee.expressions];
4176
4123
  const _function = exprs.pop();
4177
- if (!t37.isMemberExpression(_function)) {
4124
+ if (!t38.isMemberExpression(_function)) {
4178
4125
  return;
4179
4126
  }
4180
- if (exprs.every((expr) => t37.isPureish(expr))) {
4181
- $.replaceWith(t37.callExpression(_function, _arguments));
4127
+ if (exprs.every((expr) => t38.isPureish(expr))) {
4128
+ $.replaceWith(t38.callExpression(_function, _arguments));
4182
4129
  this.changes++;
4183
4130
  }
4184
4131
  }
@@ -4222,10 +4169,10 @@ function transform3(ast2) {
4222
4169
  }
4223
4170
 
4224
4171
  // transform/syntactic/template-literal.ts
4225
- import * as t38 from "@babel/types";
4226
- var escape = function(string) {
4172
+ import * as t39 from "@babel/types";
4173
+ function escape(string) {
4227
4174
  return string.replaceAll("\\", "\\\\").replaceAll("`", "\\`").replaceAll("$", "\\$").replaceAll("\t", "\\t").replaceAll("\r", "\\r").replaceAll("\0", "\\0");
4228
- };
4175
+ }
4229
4176
  var template_literal_default = {
4230
4177
  name: "template-literal",
4231
4178
  tags: ["safe"],
@@ -4245,10 +4192,10 @@ var template_literal_default = {
4245
4192
  if (!last) {
4246
4193
  throw new Error("Unexpected empty template literal");
4247
4194
  }
4248
- $left.node.quasis.push(t38.templateElement({
4195
+ $left.node.quasis.push(t39.templateElement({
4249
4196
  raw: last.value.raw + $right.node.quasis[0].value.raw
4250
4197
  }, false), ...$right.node.quasis.slice(1));
4251
- $.replaceWith(t38.templateLiteral([
4198
+ $.replaceWith(t39.templateLiteral([
4252
4199
  ...$left.node.quasis
4253
4200
  ], [
4254
4201
  ...$left.node.expressions,
@@ -4259,17 +4206,17 @@ var template_literal_default = {
4259
4206
  if (!last) {
4260
4207
  throw new Error("Unexpected empty template literal");
4261
4208
  }
4262
- $left.node.quasis.push(t38.templateElement({
4209
+ $left.node.quasis.push(t39.templateElement({
4263
4210
  raw: escape(last.value.raw + $right.node.value)
4264
4211
  }, true));
4265
4212
  $.replaceWith($left.node);
4266
4213
  } else {
4267
- $.replaceWith(t38.templateLiteral([
4214
+ $.replaceWith(t39.templateLiteral([
4268
4215
  ...$left.node.quasis.map((element) => {
4269
4216
  element.tail = false;
4270
4217
  return element;
4271
4218
  }),
4272
- t38.templateElement({ raw: "" }, true)
4219
+ t39.templateElement({ raw: "" }, true)
4273
4220
  ], [
4274
4221
  ...$left.node.expressions,
4275
4222
  $right.node
@@ -4283,9 +4230,9 @@ var template_literal_default = {
4283
4230
  if ($right.isCallExpression() && $right.get("callee").isFunctionExpression()) {
4284
4231
  return;
4285
4232
  }
4286
- $.replaceWith(t38.templateLiteral([
4287
- t38.templateElement({ raw: escape($left.node.value) }, false),
4288
- t38.templateElement({ raw: "" }, true)
4233
+ $.replaceWith(t39.templateLiteral([
4234
+ t39.templateElement({ raw: escape($left.node.value) }, false),
4235
+ t39.templateElement({ raw: "" }, true)
4289
4236
  ], [
4290
4237
  $right.node
4291
4238
  ]));
@@ -4304,43 +4251,19 @@ function transform4(ast2) {
4304
4251
  return ast2;
4305
4252
  }
4306
4253
 
4307
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/transpile/transforms/index.ts
4254
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/transpile/transforms/index.ts
4308
4255
  var exports_transforms2 = {};
4309
4256
  __export(exports_transforms2, {
4310
- templateLiterals: () => {
4311
- {
4312
- return template_literals_default;
4313
- }
4314
- },
4315
- optionalChaining: () => {
4316
- {
4317
- return optional_chaining_default;
4318
- }
4319
- },
4320
- nullishCoalescingAssignment: () => {
4321
- {
4322
- return nullish_coalescing_assignment_default;
4323
- }
4324
- },
4325
- nullishCoalescing: () => {
4326
- {
4327
- return nullish_coalescing_default;
4328
- }
4329
- },
4330
- logicalAssignments: () => {
4331
- {
4332
- return logical_assignments_default;
4333
- }
4334
- },
4335
- defaultParameters: () => {
4336
- {
4337
- return default_parameters_default;
4338
- }
4339
- }
4257
+ templateLiterals: () => template_literals_default,
4258
+ optionalChaining: () => optional_chaining_default,
4259
+ nullishCoalescingAssignment: () => nullish_coalescing_assignment_default,
4260
+ nullishCoalescing: () => nullish_coalescing_default,
4261
+ logicalAssignments: () => logical_assignments_default,
4262
+ defaultParameters: () => default_parameters_default
4340
4263
  });
4341
4264
 
4342
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/transpile/transforms/default-parameters.ts
4343
- import * as t39 from "@babel/types";
4265
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/transpile/transforms/default-parameters.ts
4266
+ import * as t40 from "@babel/types";
4344
4267
  var default_parameters_default = {
4345
4268
  name: "default-parameters",
4346
4269
  tags: ["safe"],
@@ -4371,13 +4294,13 @@ var default_parameters_default = {
4371
4294
  VariableDeclaration: {
4372
4295
  exit(path) {
4373
4296
  const fn = path.parentPath.parent;
4374
- if (!t39.isFunction(fn) || path.key !== 0)
4297
+ if (!t40.isFunction(fn) || path.key !== 0)
4375
4298
  return;
4376
- const newParam = defaultParam.match(path.node) ? t39.assignmentPattern(varId.current, defaultExpression.current) : defaultFalseParam.match(path.node) ? t39.assignmentPattern(varId.current, t39.booleanLiteral(false)) : defaultTrueParam.match(path.node) ? t39.assignmentPattern(varId.current, t39.booleanLiteral(true)) : normalParam.match(path.node) ? varId.current : null;
4299
+ const newParam = defaultParam.match(path.node) ? t40.assignmentPattern(varId.current, defaultExpression.current) : defaultFalseParam.match(path.node) ? t40.assignmentPattern(varId.current, t40.booleanLiteral(false)) : defaultTrueParam.match(path.node) ? t40.assignmentPattern(varId.current, t40.booleanLiteral(true)) : normalParam.match(path.node) ? varId.current : null;
4377
4300
  if (!newParam)
4378
4301
  return;
4379
4302
  for (let i = fn.params.length;i < index.current.value; i++) {
4380
- fn.params[i] = t39.identifier(path.scope.generateUid("param"));
4303
+ fn.params[i] = t40.identifier(path.scope.generateUid("param"));
4381
4304
  }
4382
4305
  fn.params[index.current.value] = newParam;
4383
4306
  path.remove();
@@ -4387,7 +4310,7 @@ var default_parameters_default = {
4387
4310
  IfStatement: {
4388
4311
  exit(path) {
4389
4312
  const fn = path.parentPath.parent;
4390
- if (!t39.isFunction(fn) || path.key !== 0)
4313
+ if (!t40.isFunction(fn) || path.key !== 0)
4391
4314
  return;
4392
4315
  if (!defaultParamLoose.match(path.node))
4393
4316
  return;
@@ -4397,7 +4320,7 @@ var default_parameters_default = {
4397
4320
  const isFunctionParam = binding.path.listKey === "params" && binding.path.parent === fn;
4398
4321
  if (!isFunctionParam)
4399
4322
  return;
4400
- binding.path.replaceWith(t39.assignmentPattern(varName.current, defaultExpression.current));
4323
+ binding.path.replaceWith(t40.assignmentPattern(varName.current, defaultExpression.current));
4401
4324
  path.remove();
4402
4325
  this.changes++;
4403
4326
  }
@@ -4405,8 +4328,8 @@ var default_parameters_default = {
4405
4328
  };
4406
4329
  }
4407
4330
  };
4408
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/transpile/transforms/logical-assignments.ts
4409
- import * as t40 from "@babel/types";
4331
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/transpile/transforms/logical-assignments.ts
4332
+ import * as t41 from "@babel/types";
4410
4333
  var logical_assignments_default = {
4411
4334
  name: "logical-assignments",
4412
4335
  tags: ["safe"],
@@ -4428,7 +4351,7 @@ var logical_assignments_default = {
4428
4351
  LogicalExpression: {
4429
4352
  exit(path) {
4430
4353
  if (idMatcher.match(path.node)) {
4431
- path.replaceWith(t40.assignmentExpression(operator.current + "=", left.current, right.current));
4354
+ path.replaceWith(t41.assignmentExpression(operator.current + "=", left.current, right.current));
4432
4355
  this.changes++;
4433
4356
  } else if (memberMatcher.match(path.node)) {
4434
4357
  const binding = path.scope.getBinding(tmpVar.current.name);
@@ -4436,14 +4359,14 @@ var logical_assignments_default = {
4436
4359
  return;
4437
4360
  binding.path.remove();
4438
4361
  member.current.object = object.current;
4439
- path.replaceWith(t40.assignmentExpression(operator.current + "=", member.current, right.current));
4362
+ path.replaceWith(t41.assignmentExpression(operator.current + "=", member.current, right.current));
4440
4363
  this.changes++;
4441
4364
  } else if (computedMemberMatcher.match(path.node)) {
4442
4365
  const binding = path.scope.getBinding(tmpVar.current.name);
4443
4366
  if (!isTemporaryVariable(binding, 1))
4444
4367
  return;
4445
4368
  binding.path.remove();
4446
- path.replaceWith(t40.assignmentExpression(operator.current + "=", t40.memberExpression(object.current, property.current, true), right.current));
4369
+ path.replaceWith(t41.assignmentExpression(operator.current + "=", t41.memberExpression(object.current, property.current, true), right.current));
4447
4370
  this.changes++;
4448
4371
  } else if (multiComputedMemberMatcher.match(path.node)) {
4449
4372
  const binding = path.scope.getBinding(tmpVar.current.name);
@@ -4452,7 +4375,7 @@ var logical_assignments_default = {
4452
4375
  return;
4453
4376
  binding.path.remove();
4454
4377
  binding2.path.remove();
4455
- path.replaceWith(t40.assignmentExpression(operator.current + "=", t40.memberExpression(object.current, property.current, true), right.current));
4378
+ path.replaceWith(t41.assignmentExpression(operator.current + "=", t41.memberExpression(object.current, property.current, true), right.current));
4456
4379
  this.changes++;
4457
4380
  }
4458
4381
  }
@@ -4460,8 +4383,8 @@ var logical_assignments_default = {
4460
4383
  };
4461
4384
  }
4462
4385
  };
4463
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/transpile/transforms/nullish-coalescing.ts
4464
- import * as t41 from "@babel/types";
4386
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/transpile/transforms/nullish-coalescing.ts
4387
+ import * as t42 from "@babel/types";
4465
4388
  var nullish_coalescing_default = {
4466
4389
  name: "nullish-coalescing",
4467
4390
  tags: ["safe"],
@@ -4480,11 +4403,11 @@ var nullish_coalescing_default = {
4480
4403
  if (idMatcher.match(path.node)) {
4481
4404
  const binding = path.scope.getBinding(tmpVar.current.name);
4482
4405
  if (iifeMatcher.match(path.parentPath.parent) && isTemporaryVariable(binding, 2, "param")) {
4483
- path.parentPath.parentPath.replaceWith(t41.logicalExpression("??", left.current, right.current));
4406
+ path.parentPath.parentPath.replaceWith(t42.logicalExpression("??", left.current, right.current));
4484
4407
  this.changes++;
4485
4408
  } else if (isTemporaryVariable(binding, 2, "var")) {
4486
4409
  binding.path.remove();
4487
- path.replaceWith(t41.logicalExpression("??", left.current, right.current));
4410
+ path.replaceWith(t42.logicalExpression("??", left.current, right.current));
4488
4411
  this.changes++;
4489
4412
  }
4490
4413
  } else if (idLooseMatcher.match(path.node)) {
@@ -4492,10 +4415,10 @@ var nullish_coalescing_default = {
4492
4415
  if (!isTemporaryVariable(binding, 1))
4493
4416
  return;
4494
4417
  binding.path.remove();
4495
- path.replaceWith(t41.logicalExpression("??", left.current, right.current));
4418
+ path.replaceWith(t42.logicalExpression("??", left.current, right.current));
4496
4419
  this.changes++;
4497
4420
  } else if (simpleIdMatcher.match(path.node)) {
4498
- path.replaceWith(t41.logicalExpression("??", left.current, right.current));
4421
+ path.replaceWith(t42.logicalExpression("??", left.current, right.current));
4499
4422
  this.changes++;
4500
4423
  }
4501
4424
  }
@@ -4503,8 +4426,8 @@ var nullish_coalescing_default = {
4503
4426
  };
4504
4427
  }
4505
4428
  };
4506
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/transpile/transforms/nullish-coalescing-assignment.ts
4507
- import * as t42 from "@babel/types";
4429
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/transpile/transforms/nullish-coalescing-assignment.ts
4430
+ import * as t43 from "@babel/types";
4508
4431
  var nullish_coalescing_assignment_default = {
4509
4432
  name: "nullish-coalescing-assignment",
4510
4433
  tags: ["safe"],
@@ -4526,10 +4449,10 @@ var nullish_coalescing_assignment_default = {
4526
4449
  if (!isTemporaryVariable(binding, 1))
4527
4450
  return;
4528
4451
  binding.path.remove();
4529
- path.replaceWith(t42.assignmentExpression("??=", t42.memberExpression(leftId.current, property.current, computed.current), right.current));
4452
+ path.replaceWith(t43.assignmentExpression("??=", t43.memberExpression(leftId.current, property.current, computed.current), right.current));
4530
4453
  this.changes++;
4531
4454
  } else if (simpleMatcher.match(path.node)) {
4532
- path.replaceWith(t42.assignmentExpression("??=", left.current, right.current));
4455
+ path.replaceWith(t43.assignmentExpression("??=", left.current, right.current));
4533
4456
  this.changes++;
4534
4457
  }
4535
4458
  }
@@ -4537,8 +4460,8 @@ var nullish_coalescing_assignment_default = {
4537
4460
  };
4538
4461
  }
4539
4462
  };
4540
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/transpile/transforms/optional-chaining.ts
4541
- import * as t43 from "@babel/types";
4463
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/transpile/transforms/optional-chaining.ts
4464
+ import * as t44 from "@babel/types";
4542
4465
  var optional_chaining_default = {
4543
4466
  name: "optional-chaining",
4544
4467
  tags: ["safe"],
@@ -4555,7 +4478,7 @@ var optional_chaining_default = {
4555
4478
  exit(path) {
4556
4479
  if (simpleMatcher.match(path.node)) {
4557
4480
  member.current.optional = true;
4558
- path.replaceWith(t43.optionalMemberExpression(object.current, member.current.property, member.current.computed, true));
4481
+ path.replaceWith(t44.optionalMemberExpression(object.current, member.current.property, member.current.computed, true));
4559
4482
  this.changes++;
4560
4483
  } else if (tmpMatcher.match(path.node)) {
4561
4484
  const binding = path.scope.getBinding(tmpVar.current.name);
@@ -4563,7 +4486,7 @@ var optional_chaining_default = {
4563
4486
  return;
4564
4487
  binding.path.remove();
4565
4488
  tmpMember.current.optional = true;
4566
- path.replaceWith(t43.optionalMemberExpression(object.current, tmpMember.current.property, tmpMember.current.computed, true));
4489
+ path.replaceWith(t44.optionalMemberExpression(object.current, tmpMember.current.property, tmpMember.current.computed, true));
4567
4490
  this.changes++;
4568
4491
  }
4569
4492
  }
@@ -4571,12 +4494,12 @@ var optional_chaining_default = {
4571
4494
  };
4572
4495
  }
4573
4496
  };
4574
- // node_modules/.pnpm/webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack&commit=4_jom4jr47eifu2o6dz4f7axe3da/node_modules/webcrack/src/transpile/transforms/template-literals.ts
4575
- import * as t44 from "@babel/types";
4576
- var escape2 = function(str) {
4497
+ // node_modules/.pnpm/webcrack-webcrack@https+++gitpkg.vercel.app+api+pkg.tgz+url=j4k0xb+webcrack+packages+webcrack_5n5ikhuawqac5ww7cgsfsmakge/node_modules/webcrack-webcrack/src/transpile/transforms/template-literals.ts
4498
+ import * as t45 from "@babel/types";
4499
+ function escape2(str) {
4577
4500
  return str.replaceAll("\\", "\\\\").replaceAll("`", "\\`").replaceAll("$", "\\$").replaceAll("\0", "\\0").replaceAll("\b", "\\b").replaceAll("\f", "\\f").replaceAll("\r", "\\r").replaceAll("\t", "\\t").replaceAll("\v", "\\v");
4578
- };
4579
- var push = function(template9, value) {
4501
+ }
4502
+ function push(template9, value) {
4580
4503
  if (value.type === "StringLiteral") {
4581
4504
  const lastQuasi = template9.quasis.at(-1);
4582
4505
  lastQuasi.value.raw += escape2(value.value);
@@ -4588,23 +4511,18 @@ var push = function(template9, value) {
4588
4511
  template9.quasis.push(...value.quasis.slice(1));
4589
4512
  } else {
4590
4513
  template9.expressions.push(value);
4591
- template9.quasis.push(t44.templateElement({ raw: "" }));
4514
+ template9.quasis.push(t45.templateElement({ raw: "" }));
4592
4515
  }
4593
- };
4594
- var unshift = function(template9, value) {
4516
+ }
4517
+ function unshift(template9, value) {
4595
4518
  if (value.type === "StringLiteral") {
4596
4519
  const firstQuasi = template9.quasis[0];
4597
4520
  firstQuasi.value.raw = escape2(value.value) + firstQuasi.value.raw;
4598
- } else if (value.type === "TemplateLiteral") {
4599
- const firstQuasi = template9.quasis[0];
4600
- firstQuasi.value.raw = value.quasis[0].value.raw + firstQuasi.value.raw;
4601
- template9.expressions.unshift(...value.expressions);
4602
- template9.quasis.unshift(...value.quasis.slice(0, -1));
4603
4521
  } else {
4604
4522
  template9.expressions.unshift(value);
4605
- template9.quasis.unshift(t44.templateElement({ raw: "" }));
4523
+ template9.quasis.unshift(t45.templateElement({ raw: "" }));
4606
4524
  }
4607
- };
4525
+ }
4608
4526
  var template_literals_default = {
4609
4527
  name: "template-literals",
4610
4528
  tags: ["unsafe"],
@@ -4616,11 +4534,11 @@ var template_literals_default = {
4616
4534
  exit(path) {
4617
4535
  if (path.node.operator !== "+")
4618
4536
  return;
4619
- if (t44.isTemplateLiteral(path.node.left)) {
4537
+ if (t45.isTemplateLiteral(path.node.left)) {
4620
4538
  push(path.node.left, path.node.right);
4621
4539
  path.replaceWith(path.node.left);
4622
4540
  this.changes++;
4623
- } else if (t44.isTemplateLiteral(path.node.right) && t44.isExpression(path.node.left)) {
4541
+ } else if (t45.isTemplateLiteral(path.node.right) && t45.isExpression(path.node.left)) {
4624
4542
  unshift(path.node.right, path.node.left);
4625
4543
  path.replaceWith(path.node.right);
4626
4544
  this.changes++;
@@ -4630,7 +4548,7 @@ var template_literals_default = {
4630
4548
  CallExpression: {
4631
4549
  exit(path) {
4632
4550
  if (concatMatcher.match(path.node)) {
4633
- const template9 = t44.templateLiteral([t44.templateElement({ raw: "" })], []);
4551
+ const template9 = t45.templateLiteral([t45.templateElement({ raw: "" })], []);
4634
4552
  push(template9, string.current);
4635
4553
  for (const arg of path.node.arguments) {
4636
4554
  push(template9, arg);
@@ -4652,7 +4570,7 @@ var transpile_default = mergeTransforms({
4652
4570
 
4653
4571
  // transform/delance/stringaes.ts
4654
4572
  import traverse14 from "@babel/traverse";
4655
- import * as t45 from "@babel/types";
4573
+ import * as t46 from "@babel/types";
4656
4574
 
4657
4575
  // utils/crypto.ts
4658
4576
  import crypto from "node:crypto";
@@ -4755,7 +4673,7 @@ var stringaes_default = {
4755
4673
  $id.assertIdentifier();
4756
4674
  const $string = $.get("arguments")[0];
4757
4675
  $string.assertStringLiteral();
4758
- $.replaceWith(t45.stringLiteral(decrypt($string.node.value)));
4676
+ $.replaceWith(t46.stringLiteral(decrypt($string.node.value)));
4759
4677
  this.changes++;
4760
4678
  }
4761
4679
  }
@@ -4764,7 +4682,7 @@ var stringaes_default = {
4764
4682
  };
4765
4683
 
4766
4684
  // transform/delance/antifeature.ts
4767
- import * as t46 from "@babel/types";
4685
+ import * as t47 from "@babel/types";
4768
4686
  import tmpl6 from "@babel/template";
4769
4687
  var entry = capture(numericLiteral());
4770
4688
  var requireEntry = callExpression(identifier("require"), [entry]);
@@ -4799,7 +4717,7 @@ var antifeature_default = {
4799
4717
  }
4800
4718
  });
4801
4719
  }
4802
- t46.assertNumericLiteral(entry.current);
4720
+ t47.assertNumericLiteral(entry.current);
4803
4721
  const _target = $.find((p2) => chunk_default.match(p2.node));
4804
4722
  if (!_target) {
4805
4723
  throw new Error("Could not find module chunk");