@storm-software/workspace-tools 1.56.13 → 1.56.14

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.
package/index.js CHANGED
@@ -74204,9 +74204,9 @@ var require_source_map = __commonJS({
74204
74204
  }
74205
74205
  });
74206
74206
 
74207
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/native.js
74207
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js
74208
74208
  var require_native = __commonJS({
74209
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/native.js"(exports2, module2) {
74209
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js"(exports2, module2) {
74210
74210
  var { existsSync: existsSync6 } = require("node:fs");
74211
74211
  var { join: join7 } = require("node:path");
74212
74212
  var { platform, arch, report } = require("node:process");
@@ -74223,6 +74223,7 @@ var require_native = __commonJS({
74223
74223
  linux: {
74224
74224
  arm: { base: "linux-arm-gnueabihf", musl: null },
74225
74225
  arm64: { base: "linux-arm64-gnu", musl: "linux-arm64-musl" },
74226
+ riscv64: { base: "linux-riscv64-gnu", musl: null },
74226
74227
  x64: { base: "linux-x64-gnu", musl: "linux-x64-musl" }
74227
74228
  },
74228
74229
  win32: {
@@ -74231,6 +74232,11 @@ var require_native = __commonJS({
74231
74232
  x64: { base: "win32-x64-msvc" }
74232
74233
  }
74233
74234
  };
74235
+ var msvcLinkFilenameByArch = {
74236
+ arm64: "vc_redist.arm64.exe",
74237
+ ia32: "vc_redist.x86.exe",
74238
+ x64: "vc_redist.x64.exe"
74239
+ };
74234
74240
  var packageBase = getPackageBase();
74235
74241
  if (!packageBase) {
74236
74242
  throw new Error(
@@ -74258,16 +74264,37 @@ If this is important to you, please consider supporting Rollup to make a native
74258
74264
  return imported.base;
74259
74265
  }
74260
74266
  var localName = `./rollup.${packageBase}.node`;
74261
- var { parse, parseAsync, xxhashBase64Url } = existsSync6(join7(__dirname, localName)) ? require(localName) : require(`@rollup/rollup-${packageBase}`);
74267
+ var requireWithFriendlyError = (id) => {
74268
+ try {
74269
+ return require(id);
74270
+ } catch (error) {
74271
+ if (platform === "win32" && error instanceof Error && error.code === "ERR_DLOPEN_FAILED" && error.message.includes("The specified module could not be found")) {
74272
+ const msvcDownloadLink = `https://aka.ms/vs/17/release/${msvcLinkFilenameByArch[arch]}`;
74273
+ throw new Error(
74274
+ `Failed to load module ${id}. Required DLL was not found. This error usually happens when Microsoft Visual C++ Redistributable is not installed. You can download it from ${msvcDownloadLink}`,
74275
+ { cause: error }
74276
+ );
74277
+ }
74278
+ throw new Error(
74279
+ `Cannot find module ${id}. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try \`npm i\` again after removing both package-lock.json and node_modules directory.`,
74280
+ { cause: error }
74281
+ );
74282
+ }
74283
+ };
74284
+ var { parse, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
74285
+ existsSync6(join7(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
74286
+ );
74262
74287
  module2.exports.parse = parse;
74263
74288
  module2.exports.parseAsync = parseAsync;
74264
74289
  module2.exports.xxhashBase64Url = xxhashBase64Url;
74290
+ module2.exports.xxhashBase36 = xxhashBase36;
74291
+ module2.exports.xxhashBase16 = xxhashBase16;
74265
74292
  }
74266
74293
  });
74267
74294
 
74268
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/parseAst.js
74295
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/parseAst.js
74269
74296
  var require_parseAst = __commonJS({
74270
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/parseAst.js"(exports2) {
74297
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/parseAst.js"(exports2) {
74271
74298
  "use strict";
74272
74299
  var native_js = require_native();
74273
74300
  var node_path = require("node:path");
@@ -74903,12 +74930,6 @@ Original error: ${originalError.message}`,
74903
74930
  plugin
74904
74931
  };
74905
74932
  }
74906
- function logInvalidRollupPhaseForAddWatchFile() {
74907
- return {
74908
- code: INVALID_ROLLUP_PHASE,
74909
- message: `Cannot call "addWatchFile" after the build has finished.`
74910
- };
74911
- }
74912
74933
  function logInvalidRollupPhaseForChunkEmission() {
74913
74934
  return {
74914
74935
  code: INVALID_ROLLUP_PHASE,
@@ -75303,19 +75324,22 @@ ${smallChunks} are below minChunkSize.`
75303
75324
  "pure",
75304
75325
  "noSideEffects"
75305
75326
  ];
75306
- var convertProgram = (buffer, readString) => convertNode(0, new Uint32Array(buffer), readString);
75307
- var convertNode = (position, buffer, readString) => {
75308
- const nodeType = buffer[position];
75309
- const converter = nodeConverters[nodeType];
75310
- if (!converter) {
75311
- console.trace();
75312
- throw new Error(`Unknown node type: ${nodeType}`);
75313
- }
75314
- return converter(position + 1, buffer, readString);
75315
- };
75327
+ var ANNOTATION_KEY = "_rollupAnnotations";
75328
+ var INVALID_ANNOTATION_KEY = "_rollupRemoved";
75329
+ function convertProgram(buffer, readString) {
75330
+ return convertNode(0, new Uint32Array(buffer), readString);
75331
+ }
75316
75332
  var nodeConverters = [
75317
- // index:0; ArrayExpression
75318
- (position, buffer, readString) => {
75333
+ function parseError(position, buffer, readString) {
75334
+ const pos = buffer[position++];
75335
+ const message = convertString(position, buffer, readString);
75336
+ error(logParseError(message, pos));
75337
+ },
75338
+ function panicError(position, buffer, readString) {
75339
+ const message = convertString(position, buffer, readString);
75340
+ error(logParseError(message));
75341
+ },
75342
+ function arrayExpression(position, buffer, readString) {
75319
75343
  const start = buffer[position++];
75320
75344
  const end = buffer[position++];
75321
75345
  const elements = convertNodeList(position, buffer, readString);
@@ -75326,8 +75350,7 @@ ${smallChunks} are below minChunkSize.`
75326
75350
  elements
75327
75351
  };
75328
75352
  },
75329
- // index:1; ArrayPattern
75330
- (position, buffer, readString) => {
75353
+ function arrayPattern(position, buffer, readString) {
75331
75354
  const start = buffer[position++];
75332
75355
  const end = buffer[position++];
75333
75356
  const elements = convertNodeList(position, buffer, readString);
@@ -75338,30 +75361,30 @@ ${smallChunks} are below minChunkSize.`
75338
75361
  elements
75339
75362
  };
75340
75363
  },
75341
- // index:2; ArrowFunctionExpression
75342
- (position, buffer, readString) => {
75364
+ function arrowFunctionExpression(position, buffer, readString) {
75343
75365
  const start = buffer[position++];
75344
75366
  const end = buffer[position++];
75345
- const async = !!buffer[position++];
75346
- const generator = !!buffer[position++];
75347
- const expression = !!buffer[position++];
75367
+ const flags = buffer[position++];
75368
+ const async = (flags & 1) === 1;
75369
+ const expression = (flags & 2) === 2;
75370
+ const generator = (flags & 4) === 4;
75348
75371
  const parameters = convertNodeList(buffer[position++], buffer, readString);
75349
75372
  const body = convertNode(buffer[position++], buffer, readString);
75350
- const annotations = convertAnnotationList(position, buffer);
75351
- return addAnnotationProperty({
75373
+ const annotations = convertAnnotations(position, buffer);
75374
+ return {
75352
75375
  type: "ArrowFunctionExpression",
75353
75376
  start,
75354
75377
  end,
75355
75378
  async,
75356
- body,
75357
75379
  expression,
75358
75380
  generator,
75359
- id: null,
75360
- params: parameters
75361
- }, annotations, ANNOTATION_KEY);
75381
+ ...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
75382
+ params: parameters,
75383
+ body,
75384
+ id: null
75385
+ };
75362
75386
  },
75363
- // index:3; AssignmentExpression
75364
- (position, buffer, readString) => {
75387
+ function assignmentExpression(position, buffer, readString) {
75365
75388
  const start = buffer[position++];
75366
75389
  const end = buffer[position++];
75367
75390
  const operator = FIXED_STRINGS[buffer[position++]];
@@ -75371,13 +75394,12 @@ ${smallChunks} are below minChunkSize.`
75371
75394
  type: "AssignmentExpression",
75372
75395
  start,
75373
75396
  end,
75374
- left,
75375
75397
  operator,
75398
+ left,
75376
75399
  right
75377
75400
  };
75378
75401
  },
75379
- // index:4; AssignmentPattern
75380
- (position, buffer, readString) => {
75402
+ function assignmentPattern(position, buffer, readString) {
75381
75403
  const start = buffer[position++];
75382
75404
  const end = buffer[position++];
75383
75405
  const right = convertNode(buffer[position++], buffer, readString);
@@ -75390,20 +75412,18 @@ ${smallChunks} are below minChunkSize.`
75390
75412
  right
75391
75413
  };
75392
75414
  },
75393
- // index:5; AwaitExpression
75394
- (position, buffer, readString) => {
75415
+ function awaitExpression(position, buffer, readString) {
75395
75416
  const start = buffer[position++];
75396
75417
  const end = buffer[position++];
75397
75418
  const argument = convertNode(position, buffer, readString);
75398
75419
  return {
75399
75420
  type: "AwaitExpression",
75400
75421
  start,
75401
- argument,
75402
- end
75422
+ end,
75423
+ argument
75403
75424
  };
75404
75425
  },
75405
- // index:6; BinaryExpression
75406
- (position, buffer, readString) => {
75426
+ function binaryExpression(position, buffer, readString) {
75407
75427
  const start = buffer[position++];
75408
75428
  const end = buffer[position++];
75409
75429
  const operator = FIXED_STRINGS[buffer[position++]];
@@ -75413,68 +75433,67 @@ ${smallChunks} are below minChunkSize.`
75413
75433
  type: "BinaryExpression",
75414
75434
  start,
75415
75435
  end,
75416
- left,
75417
75436
  operator,
75437
+ left,
75418
75438
  right
75419
75439
  };
75420
75440
  },
75421
- // index:7; BlockStatement
75422
- (position, buffer, readString) => {
75441
+ function blockStatement(position, buffer, readString) {
75423
75442
  const start = buffer[position++];
75424
75443
  const end = buffer[position++];
75425
75444
  const body = convertNodeList(position, buffer, readString);
75426
75445
  return {
75427
75446
  type: "BlockStatement",
75428
75447
  start,
75429
- body,
75430
- end
75448
+ end,
75449
+ body
75431
75450
  };
75432
75451
  },
75433
- // index:8; BreakStatement
75434
- (position, buffer, readString) => {
75452
+ function breakStatement(position, buffer, readString) {
75435
75453
  const start = buffer[position++];
75436
75454
  const end = buffer[position++];
75437
- const labelPosition = buffer[position++];
75455
+ const labelPosition = buffer[position];
75456
+ const label = labelPosition === 0 ? null : convertNode(labelPosition, buffer, readString);
75438
75457
  return {
75439
75458
  type: "BreakStatement",
75440
75459
  start,
75441
75460
  end,
75442
- label: labelPosition ? convertNode(labelPosition, buffer, readString) : null
75461
+ label
75443
75462
  };
75444
75463
  },
75445
- // index:9; CallExpression
75446
- (position, buffer, readString) => {
75464
+ function callExpression(position, buffer, readString) {
75447
75465
  const start = buffer[position++];
75448
75466
  const end = buffer[position++];
75449
- const optional = !!buffer[position++];
75467
+ const flags = buffer[position++];
75468
+ const optional = (flags & 1) === 1;
75450
75469
  const callee = convertNode(buffer[position++], buffer, readString);
75451
- const argumentsList = convertNodeList(buffer[position++], buffer, readString);
75452
- const annotations = convertAnnotationList(position, buffer);
75453
- return addAnnotationProperty({
75470
+ const callArguments = convertNodeList(buffer[position++], buffer, readString);
75471
+ const annotations = convertAnnotations(position, buffer);
75472
+ return {
75454
75473
  type: "CallExpression",
75455
75474
  start,
75456
75475
  end,
75457
- arguments: argumentsList,
75476
+ optional,
75477
+ ...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
75458
75478
  callee,
75459
- optional
75460
- }, annotations, ANNOTATION_KEY);
75479
+ arguments: callArguments
75480
+ };
75461
75481
  },
75462
- // index:10; CatchClause
75463
- (position, buffer, readString) => {
75482
+ function catchClause(position, buffer, readString) {
75464
75483
  const start = buffer[position++];
75465
75484
  const end = buffer[position++];
75466
75485
  const parameterPosition = buffer[position++];
75486
+ const parameter = parameterPosition === 0 ? null : convertNode(parameterPosition, buffer, readString);
75467
75487
  const body = convertNode(buffer[position], buffer, readString);
75468
75488
  return {
75469
75489
  type: "CatchClause",
75470
75490
  start,
75471
75491
  end,
75472
- body,
75473
- param: parameterPosition ? convertNode(parameterPosition, buffer, readString) : null
75492
+ param: parameter,
75493
+ body
75474
75494
  };
75475
75495
  },
75476
- // index:11; ChainExpression
75477
- (position, buffer, readString) => {
75496
+ function chainExpression(position, buffer, readString) {
75478
75497
  const start = buffer[position++];
75479
75498
  const end = buffer[position++];
75480
75499
  const expression = convertNode(position, buffer, readString);
@@ -75485,8 +75504,7 @@ ${smallChunks} are below minChunkSize.`
75485
75504
  expression
75486
75505
  };
75487
75506
  },
75488
- // index:12; ClassBody
75489
- (position, buffer, readString) => {
75507
+ function classBody(position, buffer, readString) {
75490
75508
  const start = buffer[position++];
75491
75509
  const end = buffer[position++];
75492
75510
  const body = convertNodeList(position, buffer, readString);
@@ -75497,40 +75515,41 @@ ${smallChunks} are below minChunkSize.`
75497
75515
  body
75498
75516
  };
75499
75517
  },
75500
- // index:13; ClassDeclaration
75501
- (position, buffer, readString) => {
75518
+ function classDeclaration(position, buffer, readString) {
75502
75519
  const start = buffer[position++];
75503
75520
  const end = buffer[position++];
75504
75521
  const idPosition = buffer[position++];
75522
+ const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
75505
75523
  const superClassPosition = buffer[position++];
75524
+ const superClass = superClassPosition === 0 ? null : convertNode(superClassPosition, buffer, readString);
75506
75525
  const body = convertNode(buffer[position], buffer, readString);
75507
75526
  return {
75508
75527
  type: "ClassDeclaration",
75509
75528
  start,
75510
75529
  end,
75511
- body,
75512
- id: idPosition ? convertNode(idPosition, buffer, readString) : null,
75513
- superClass: superClassPosition ? convertNode(superClassPosition, buffer, readString) : null
75530
+ id,
75531
+ superClass,
75532
+ body
75514
75533
  };
75515
75534
  },
75516
- // index:14; ClassExpression
75517
- (position, buffer, readString) => {
75535
+ function classExpression(position, buffer, readString) {
75518
75536
  const start = buffer[position++];
75519
75537
  const end = buffer[position++];
75520
75538
  const idPosition = buffer[position++];
75539
+ const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
75521
75540
  const superClassPosition = buffer[position++];
75541
+ const superClass = superClassPosition === 0 ? null : convertNode(superClassPosition, buffer, readString);
75522
75542
  const body = convertNode(buffer[position], buffer, readString);
75523
75543
  return {
75524
75544
  type: "ClassExpression",
75525
75545
  start,
75526
75546
  end,
75527
- body,
75528
- id: idPosition ? convertNode(idPosition, buffer, readString) : null,
75529
- superClass: superClassPosition ? convertNode(superClassPosition, buffer, readString) : null
75547
+ id,
75548
+ superClass,
75549
+ body
75530
75550
  };
75531
75551
  },
75532
- // index:15; ConditionalExpression
75533
- (position, buffer, readString) => {
75552
+ function conditionalExpression(position, buffer, readString) {
75534
75553
  const start = buffer[position++];
75535
75554
  const end = buffer[position++];
75536
75555
  const consequent = convertNode(buffer[position++], buffer, readString);
@@ -75540,25 +75559,24 @@ ${smallChunks} are below minChunkSize.`
75540
75559
  type: "ConditionalExpression",
75541
75560
  start,
75542
75561
  end,
75543
- alternate,
75562
+ test,
75544
75563
  consequent,
75545
- test
75564
+ alternate
75546
75565
  };
75547
75566
  },
75548
- // index:16; ContinueStatement
75549
- (position, buffer, readString) => {
75567
+ function continueStatement(position, buffer, readString) {
75550
75568
  const start = buffer[position++];
75551
75569
  const end = buffer[position++];
75552
75570
  const labelPosition = buffer[position];
75571
+ const label = labelPosition === 0 ? null : convertNode(labelPosition, buffer, readString);
75553
75572
  return {
75554
75573
  type: "ContinueStatement",
75555
75574
  start,
75556
75575
  end,
75557
- label: labelPosition ? convertNode(labelPosition, buffer, readString) : null
75576
+ label
75558
75577
  };
75559
75578
  },
75560
- // index:17; DebuggerStatement
75561
- (position, buffer) => {
75579
+ function debuggerStatement(position, buffer) {
75562
75580
  const start = buffer[position++];
75563
75581
  const end = buffer[position++];
75564
75582
  return {
@@ -75567,8 +75585,20 @@ ${smallChunks} are below minChunkSize.`
75567
75585
  end
75568
75586
  };
75569
75587
  },
75570
- // index:18; DoWhileStatement
75571
- (position, buffer, readString) => {
75588
+ function directive(position, buffer, readString) {
75589
+ const start = buffer[position++];
75590
+ const end = buffer[position++];
75591
+ const expression = convertNode(buffer[position++], buffer, readString);
75592
+ const directive2 = convertString(position, buffer, readString);
75593
+ return {
75594
+ type: "ExpressionStatement",
75595
+ start,
75596
+ end,
75597
+ directive: directive2,
75598
+ expression
75599
+ };
75600
+ },
75601
+ function doWhileStatement(position, buffer, readString) {
75572
75602
  const start = buffer[position++];
75573
75603
  const end = buffer[position++];
75574
75604
  const test = convertNode(buffer[position++], buffer, readString);
@@ -75581,8 +75611,7 @@ ${smallChunks} are below minChunkSize.`
75581
75611
  test
75582
75612
  };
75583
75613
  },
75584
- // index:19; EmptyStatement
75585
- (position, buffer) => {
75614
+ function emptyStatement(position, buffer) {
75586
75615
  const start = buffer[position++];
75587
75616
  const end = buffer[position++];
75588
75617
  return {
@@ -75591,24 +75620,23 @@ ${smallChunks} are below minChunkSize.`
75591
75620
  end
75592
75621
  };
75593
75622
  },
75594
- // index:20; ExportAllDeclaration
75595
- (position, buffer, readString) => {
75623
+ function exportAllDeclaration(position, buffer, readString) {
75596
75624
  const start = buffer[position++];
75597
75625
  const end = buffer[position++];
75598
75626
  const exportedPosition = buffer[position++];
75627
+ const exported = exportedPosition === 0 ? null : convertNode(exportedPosition, buffer, readString);
75599
75628
  const source = convertNode(buffer[position++], buffer, readString);
75600
75629
  const attributes = convertNodeList(buffer[position], buffer, readString);
75601
75630
  return {
75602
75631
  type: "ExportAllDeclaration",
75603
75632
  start,
75604
75633
  end,
75605
- exported: exportedPosition ? convertNode(exportedPosition, buffer, readString) : null,
75634
+ exported,
75606
75635
  source,
75607
75636
  attributes
75608
75637
  };
75609
75638
  },
75610
- // index:21; ExportDefaultDeclaration
75611
- (position, buffer, readString) => {
75639
+ function exportDefaultDeclaration(position, buffer, readString) {
75612
75640
  const start = buffer[position++];
75613
75641
  const end = buffer[position++];
75614
75642
  const declaration = convertNode(position, buffer, readString);
@@ -75619,55 +75647,50 @@ ${smallChunks} are below minChunkSize.`
75619
75647
  declaration
75620
75648
  };
75621
75649
  },
75622
- // index:22; ExportNamedDeclaration
75623
- (position, buffer, readString) => {
75650
+ function exportNamedDeclaration(position, buffer, readString) {
75624
75651
  const start = buffer[position++];
75625
75652
  const end = buffer[position++];
75626
- const declarationPosition = buffer[position++];
75627
75653
  const sourcePosition = buffer[position++];
75654
+ const source = sourcePosition === 0 ? null : convertNode(sourcePosition, buffer, readString);
75628
75655
  const attributes = convertNodeList(buffer[position++], buffer, readString);
75656
+ const declarationPosition = buffer[position++];
75657
+ const declaration = declarationPosition === 0 ? null : convertNode(declarationPosition, buffer, readString);
75629
75658
  const specifiers = convertNodeList(position, buffer, readString);
75630
75659
  return {
75631
75660
  type: "ExportNamedDeclaration",
75632
75661
  start,
75633
75662
  end,
75634
- declaration: declarationPosition ? convertNode(declarationPosition, buffer, readString) : null,
75635
- source: sourcePosition ? convertNode(sourcePosition, buffer, readString) : null,
75636
75663
  specifiers,
75637
- attributes
75664
+ source,
75665
+ attributes,
75666
+ declaration
75638
75667
  };
75639
75668
  },
75640
- // index:23; ExportSpecifier
75641
- (position, buffer, readString) => {
75669
+ function exportSpecifier(position, buffer, readString) {
75642
75670
  const start = buffer[position++];
75643
75671
  const end = buffer[position++];
75644
75672
  const exportedPosition = buffer[position++];
75645
75673
  const local = convertNode(position, buffer, readString);
75646
- const exported = exportedPosition ? convertNode(exportedPosition, buffer, readString) : local;
75647
75674
  return {
75648
75675
  type: "ExportSpecifier",
75649
75676
  start,
75650
75677
  end,
75651
- exported,
75652
- local
75678
+ local,
75679
+ exported: exportedPosition === 0 ? { ...local } : convertNode(exportedPosition, buffer, readString)
75653
75680
  };
75654
75681
  },
75655
- // index:24; ExpressionStatement
75656
- (position, buffer, readString) => {
75682
+ function expressionStatement(position, buffer, readString) {
75657
75683
  const start = buffer[position++];
75658
75684
  const end = buffer[position++];
75659
- const directivePosition = buffer[position++];
75660
75685
  const expression = convertNode(position, buffer, readString);
75661
75686
  return {
75662
75687
  type: "ExpressionStatement",
75663
75688
  start,
75664
75689
  end,
75665
- expression,
75666
- ...directivePosition ? { directive: convertString(directivePosition, buffer, readString) } : {}
75690
+ expression
75667
75691
  };
75668
75692
  },
75669
- // index:25; ForInStatement
75670
- (position, buffer, readString) => {
75693
+ function forInStatement(position, buffer, readString) {
75671
75694
  const start = buffer[position++];
75672
75695
  const end = buffer[position++];
75673
75696
  const right = convertNode(buffer[position++], buffer, readString);
@@ -75677,16 +75700,16 @@ ${smallChunks} are below minChunkSize.`
75677
75700
  type: "ForInStatement",
75678
75701
  start,
75679
75702
  end,
75680
- body,
75681
75703
  left,
75682
- right
75704
+ right,
75705
+ body
75683
75706
  };
75684
75707
  },
75685
- // index:26; ForOfStatement
75686
- (position, buffer, readString) => {
75708
+ function forOfStatement(position, buffer, readString) {
75687
75709
  const start = buffer[position++];
75688
75710
  const end = buffer[position++];
75689
- const awaited = !!buffer[position++];
75711
+ const flags = buffer[position++];
75712
+ const awaited = (flags & 1) === 1;
75690
75713
  const right = convertNode(buffer[position++], buffer, readString);
75691
75714
  const body = convertNode(buffer[position++], buffer, readString);
75692
75715
  const left = convertNode(position, buffer, readString);
@@ -75695,75 +75718,80 @@ ${smallChunks} are below minChunkSize.`
75695
75718
  start,
75696
75719
  end,
75697
75720
  await: awaited,
75698
- body,
75699
75721
  left,
75700
- right
75722
+ right,
75723
+ body
75701
75724
  };
75702
75725
  },
75703
- // index:27; ForStatement
75704
- (position, buffer, readString) => {
75726
+ function forStatement(position, buffer, readString) {
75705
75727
  const start = buffer[position++];
75706
75728
  const end = buffer[position++];
75707
75729
  const initPosition = buffer[position++];
75730
+ const init = initPosition === 0 ? null : convertNode(initPosition, buffer, readString);
75708
75731
  const testPosition = buffer[position++];
75732
+ const test = testPosition === 0 ? null : convertNode(testPosition, buffer, readString);
75709
75733
  const updatePosition = buffer[position++];
75734
+ const update = updatePosition === 0 ? null : convertNode(updatePosition, buffer, readString);
75710
75735
  const body = convertNode(buffer[position], buffer, readString);
75711
75736
  return {
75712
75737
  type: "ForStatement",
75713
75738
  start,
75714
75739
  end,
75715
- body,
75716
- init: initPosition ? convertNode(initPosition, buffer, readString) : null,
75717
- test: testPosition ? convertNode(testPosition, buffer, readString) : null,
75718
- update: updatePosition ? convertNode(updatePosition, buffer, readString) : null
75740
+ init,
75741
+ test,
75742
+ update,
75743
+ body
75719
75744
  };
75720
75745
  },
75721
- // index:28; FunctionDeclaration
75722
- (position, buffer, readString) => {
75746
+ function functionDeclaration(position, buffer, readString) {
75723
75747
  const start = buffer[position++];
75724
75748
  const end = buffer[position++];
75725
- const async = !!buffer[position++];
75726
- const generator = !!buffer[position++];
75749
+ const flags = buffer[position++];
75750
+ const async = (flags & 1) === 1;
75751
+ const generator = (flags & 2) === 2;
75727
75752
  const idPosition = buffer[position++];
75753
+ const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
75728
75754
  const parameters = convertNodeList(buffer[position++], buffer, readString);
75729
75755
  const body = convertNode(buffer[position++], buffer, readString);
75730
- const annotations = convertAnnotationList(position, buffer);
75731
- return addAnnotationProperty({
75756
+ const annotations = convertAnnotations(position, buffer);
75757
+ return {
75732
75758
  type: "FunctionDeclaration",
75733
75759
  start,
75734
75760
  end,
75735
75761
  async,
75736
- body,
75737
- expression: false,
75738
75762
  generator,
75739
- id: idPosition ? convertNode(idPosition, buffer, readString) : null,
75740
- params: parameters
75741
- }, annotations, ANNOTATION_KEY);
75763
+ ...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
75764
+ id,
75765
+ params: parameters,
75766
+ body,
75767
+ expression: false
75768
+ };
75742
75769
  },
75743
- // index:29; FunctionExpression
75744
- (position, buffer, readString) => {
75770
+ function functionExpression(position, buffer, readString) {
75745
75771
  const start = buffer[position++];
75746
75772
  const end = buffer[position++];
75747
- const async = !!buffer[position++];
75748
- const generator = !!buffer[position++];
75773
+ const flags = buffer[position++];
75774
+ const async = (flags & 1) === 1;
75775
+ const generator = (flags & 2) === 2;
75749
75776
  const idPosition = buffer[position++];
75777
+ const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
75750
75778
  const parameters = convertNodeList(buffer[position++], buffer, readString);
75751
75779
  const body = convertNode(buffer[position++], buffer, readString);
75752
- const annotations = convertAnnotationList(position, buffer);
75753
- return addAnnotationProperty({
75780
+ const annotations = convertAnnotations(position, buffer);
75781
+ return {
75754
75782
  type: "FunctionExpression",
75755
75783
  start,
75756
75784
  end,
75757
75785
  async,
75758
- body,
75759
- expression: false,
75760
75786
  generator,
75761
- id: idPosition ? convertNode(idPosition, buffer, readString) : null,
75762
- params: parameters
75763
- }, annotations, ANNOTATION_KEY);
75787
+ ...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
75788
+ id,
75789
+ params: parameters,
75790
+ body,
75791
+ expression: false
75792
+ };
75764
75793
  },
75765
- // index:30; Identifier
75766
- (position, buffer, readString) => {
75794
+ function identifier(position, buffer, readString) {
75767
75795
  const start = buffer[position++];
75768
75796
  const end = buffer[position++];
75769
75797
  const name = convertString(position, buffer, readString);
@@ -75774,24 +75802,23 @@ ${smallChunks} are below minChunkSize.`
75774
75802
  name
75775
75803
  };
75776
75804
  },
75777
- // index:31; IfStatement
75778
- (position, buffer, readString) => {
75805
+ function ifStatement(position, buffer, readString) {
75779
75806
  const start = buffer[position++];
75780
75807
  const end = buffer[position++];
75781
75808
  const consequent = convertNode(buffer[position++], buffer, readString);
75782
75809
  const alternatePosition = buffer[position++];
75810
+ const alternate = alternatePosition === 0 ? null : convertNode(alternatePosition, buffer, readString);
75783
75811
  const test = convertNode(position, buffer, readString);
75784
75812
  return {
75785
75813
  type: "IfStatement",
75786
75814
  start,
75787
75815
  end,
75788
- alternate: alternatePosition ? convertNode(alternatePosition, buffer, readString) : null,
75816
+ test,
75789
75817
  consequent,
75790
- test
75818
+ alternate
75791
75819
  };
75792
75820
  },
75793
- // index:32; ImportAttribute
75794
- (position, buffer, readString) => {
75821
+ function importAttribute(position, buffer, readString) {
75795
75822
  const start = buffer[position++];
75796
75823
  const end = buffer[position++];
75797
75824
  const value = convertNode(buffer[position++], buffer, readString);
@@ -75804,8 +75831,7 @@ ${smallChunks} are below minChunkSize.`
75804
75831
  value
75805
75832
  };
75806
75833
  },
75807
- // index:33; ImportDeclaration
75808
- (position, buffer, readString) => {
75834
+ function importDeclaration(position, buffer, readString) {
75809
75835
  const start = buffer[position++];
75810
75836
  const end = buffer[position++];
75811
75837
  const source = convertNode(buffer[position++], buffer, readString);
@@ -75815,13 +75841,12 @@ ${smallChunks} are below minChunkSize.`
75815
75841
  type: "ImportDeclaration",
75816
75842
  start,
75817
75843
  end,
75818
- source,
75819
75844
  specifiers,
75845
+ source,
75820
75846
  attributes
75821
75847
  };
75822
75848
  },
75823
- // index:34; ImportDefaultSpecifier
75824
- (position, buffer, readString) => {
75849
+ function importDefaultSpecifier(position, buffer, readString) {
75825
75850
  const start = buffer[position++];
75826
75851
  const end = buffer[position++];
75827
75852
  const local = convertNode(position, buffer, readString);
@@ -75832,22 +75857,21 @@ ${smallChunks} are below minChunkSize.`
75832
75857
  local
75833
75858
  };
75834
75859
  },
75835
- // index:35; ImportExpression
75836
- (position, buffer, readString) => {
75860
+ function importExpression(position, buffer, readString) {
75837
75861
  const start = buffer[position++];
75838
75862
  const end = buffer[position++];
75839
75863
  const optionsPosition = buffer[position++];
75864
+ const options = optionsPosition === 0 ? null : convertNode(optionsPosition, buffer, readString);
75840
75865
  const source = convertNode(position, buffer, readString);
75841
75866
  return {
75842
75867
  type: "ImportExpression",
75843
75868
  start,
75844
75869
  end,
75845
75870
  source,
75846
- options: optionsPosition ? convertNode(optionsPosition, buffer, readString) : null
75871
+ options
75847
75872
  };
75848
75873
  },
75849
- // index:36; ImportNamespaceSpecifier
75850
- (position, buffer, readString) => {
75874
+ function importNamespaceSpecifier(position, buffer, readString) {
75851
75875
  const start = buffer[position++];
75852
75876
  const end = buffer[position++];
75853
75877
  const local = convertNode(position, buffer, readString);
@@ -75858,23 +75882,20 @@ ${smallChunks} are below minChunkSize.`
75858
75882
  local
75859
75883
  };
75860
75884
  },
75861
- // index:37; ImportSpecifier
75862
- (position, buffer, readString) => {
75885
+ function importSpecifier(position, buffer, readString) {
75863
75886
  const start = buffer[position++];
75864
75887
  const end = buffer[position++];
75865
75888
  const importedPosition = buffer[position++];
75866
75889
  const local = convertNode(buffer[position], buffer, readString);
75867
- const imported = importedPosition ? convertNode(importedPosition, buffer, readString) : local;
75868
75890
  return {
75869
75891
  type: "ImportSpecifier",
75870
75892
  start,
75871
75893
  end,
75872
- imported,
75894
+ imported: importedPosition === 0 ? { ...local } : convertNode(importedPosition, buffer, readString),
75873
75895
  local
75874
75896
  };
75875
75897
  },
75876
- // index:38; LabeledStatement
75877
- (position, buffer, readString) => {
75898
+ function labeledStatement(position, buffer, readString) {
75878
75899
  const start = buffer[position++];
75879
75900
  const end = buffer[position++];
75880
75901
  const body = convertNode(buffer[position++], buffer, readString);
@@ -75883,67 +75904,63 @@ ${smallChunks} are below minChunkSize.`
75883
75904
  type: "LabeledStatement",
75884
75905
  start,
75885
75906
  end,
75886
- body,
75887
- label
75907
+ label,
75908
+ body
75888
75909
  };
75889
75910
  },
75890
- // index:39; Literal<string>
75891
- (position, buffer, readString) => {
75911
+ function literalBigInt(position, buffer, readString) {
75892
75912
  const start = buffer[position++];
75893
75913
  const end = buffer[position++];
75894
- const rawPosition = buffer[position++];
75895
- const raw = rawPosition ? convertString(rawPosition, buffer, readString) : void 0;
75896
- const value = convertString(position, buffer, readString);
75914
+ const raw = convertString(buffer[position++], buffer, readString);
75915
+ const bigint = convertString(position, buffer, readString);
75897
75916
  return {
75898
75917
  type: "Literal",
75899
75918
  start,
75900
75919
  end,
75920
+ bigint,
75901
75921
  raw,
75902
- value
75922
+ value: BigInt(bigint)
75903
75923
  };
75904
75924
  },
75905
- // index:40; Literal<boolean>
75906
- (position, buffer) => {
75925
+ function literalBoolean(position, buffer) {
75907
75926
  const start = buffer[position++];
75908
75927
  const end = buffer[position++];
75909
- const value = !!buffer[position++];
75928
+ const flags = buffer[position++];
75929
+ const value = (flags & 1) === 1;
75910
75930
  return {
75911
75931
  type: "Literal",
75912
75932
  start,
75913
75933
  end,
75914
- raw: value ? "true" : "false",
75915
- value
75934
+ value,
75935
+ raw: value ? "true" : "false"
75916
75936
  };
75917
75937
  },
75918
- // index:41; Literal<number>
75919
- (position, buffer, readString) => {
75938
+ function literalNull(position, buffer) {
75920
75939
  const start = buffer[position++];
75921
75940
  const end = buffer[position++];
75922
- const rawPosition = buffer[position++];
75923
- const raw = rawPosition ? convertString(rawPosition, buffer, readString) : void 0;
75924
- const value = new DataView(buffer.buffer).getFloat64(position << 2, true);
75925
75941
  return {
75926
75942
  type: "Literal",
75927
75943
  start,
75928
75944
  end,
75929
- raw,
75930
- value
75945
+ raw: "null",
75946
+ value: null
75931
75947
  };
75932
75948
  },
75933
- // index:42; Literal<null>
75934
- (position, buffer) => {
75949
+ function literalNumber(position, buffer, readString) {
75935
75950
  const start = buffer[position++];
75936
75951
  const end = buffer[position++];
75952
+ const rawPosition = buffer[position++];
75953
+ const raw = rawPosition === 0 ? void 0 : convertString(rawPosition, buffer, readString);
75954
+ const value = new DataView(buffer.buffer).getFloat64(position << 2, true);
75937
75955
  return {
75938
75956
  type: "Literal",
75939
75957
  start,
75940
75958
  end,
75941
- raw: "null",
75942
- value: null
75959
+ raw,
75960
+ value
75943
75961
  };
75944
75962
  },
75945
- // index:43; Literal<RegExp>
75946
- (position, buffer, readString) => {
75963
+ function literalRegExp(position, buffer, readString) {
75947
75964
  const start = buffer[position++];
75948
75965
  const end = buffer[position++];
75949
75966
  const pattern = convertString(buffer[position++], buffer, readString);
@@ -75953,30 +75970,25 @@ ${smallChunks} are below minChunkSize.`
75953
75970
  start,
75954
75971
  end,
75955
75972
  raw: `/${pattern}/${flags}`,
75956
- regex: {
75957
- flags,
75958
- pattern
75959
- },
75973
+ regex: { flags, pattern },
75960
75974
  value: new RegExp(pattern, flags)
75961
75975
  };
75962
75976
  },
75963
- // index:44; Literal<bigint>
75964
- (position, buffer, readString) => {
75977
+ function literalString(position, buffer, readString) {
75965
75978
  const start = buffer[position++];
75966
75979
  const end = buffer[position++];
75967
- const bigint = convertString(buffer[position++], buffer, readString);
75968
- const raw = convertString(position, buffer, readString);
75980
+ const rawPosition = buffer[position++];
75981
+ const raw = rawPosition === 0 ? void 0 : convertString(rawPosition, buffer, readString);
75982
+ const value = convertString(position, buffer, readString);
75969
75983
  return {
75970
75984
  type: "Literal",
75971
75985
  start,
75972
75986
  end,
75973
- bigint,
75974
- raw,
75975
- value: BigInt(bigint)
75987
+ value,
75988
+ raw
75976
75989
  };
75977
75990
  },
75978
- // index:45; LogicalExpression
75979
- (position, buffer, readString) => {
75991
+ function logicalExpression(position, buffer, readString) {
75980
75992
  const start = buffer[position++];
75981
75993
  const end = buffer[position++];
75982
75994
  const operator = FIXED_STRINGS[buffer[position++]];
@@ -75986,17 +75998,17 @@ ${smallChunks} are below minChunkSize.`
75986
75998
  type: "LogicalExpression",
75987
75999
  start,
75988
76000
  end,
75989
- left,
75990
76001
  operator,
76002
+ left,
75991
76003
  right
75992
76004
  };
75993
76005
  },
75994
- // index:46; MemberExpression
75995
- (position, buffer, readString) => {
76006
+ function memberExpression(position, buffer, readString) {
75996
76007
  const start = buffer[position++];
75997
76008
  const end = buffer[position++];
75998
- const optional = !!buffer[position++];
75999
- const computed = !!buffer[position++];
76009
+ const flags = buffer[position++];
76010
+ const computed = (flags & 1) === 1;
76011
+ const optional = (flags & 2) === 2;
76000
76012
  const property = convertNode(buffer[position++], buffer, readString);
76001
76013
  const object = convertNode(position, buffer, readString);
76002
76014
  return {
@@ -76004,13 +76016,12 @@ ${smallChunks} are below minChunkSize.`
76004
76016
  start,
76005
76017
  end,
76006
76018
  computed,
76007
- object,
76008
76019
  optional,
76020
+ object,
76009
76021
  property
76010
76022
  };
76011
76023
  },
76012
- // index:47; MetaProperty
76013
- (position, buffer, readString) => {
76024
+ function metaProperty(position, buffer, readString) {
76014
76025
  const start = buffer[position++];
76015
76026
  const end = buffer[position++];
76016
76027
  const property = convertNode(buffer[position++], buffer, readString);
@@ -76023,43 +76034,42 @@ ${smallChunks} are below minChunkSize.`
76023
76034
  property
76024
76035
  };
76025
76036
  },
76026
- // index:48; MethodDefinition
76027
- (position, buffer, readString) => {
76037
+ function methodDefinition(position, buffer, readString) {
76028
76038
  const start = buffer[position++];
76029
76039
  const end = buffer[position++];
76030
- const kind = FIXED_STRINGS[buffer[position++]];
76031
- const computed = !!buffer[position++];
76032
- const isStatic = !!buffer[position++];
76040
+ const flags = buffer[position++];
76041
+ const computed = (flags & 1) === 1;
76042
+ const isStatic = (flags & 2) === 2;
76033
76043
  const value = convertNode(buffer[position++], buffer, readString);
76044
+ const kind = FIXED_STRINGS[buffer[position++]];
76034
76045
  const key = convertNode(position, buffer, readString);
76035
76046
  return {
76036
76047
  type: "MethodDefinition",
76037
76048
  start,
76038
76049
  end,
76039
76050
  computed,
76040
- key,
76041
- kind,
76042
76051
  static: isStatic,
76043
- value
76052
+ key,
76053
+ value,
76054
+ kind
76044
76055
  };
76045
76056
  },
76046
- // index:49; NewExpression
76047
- (position, buffer, readString) => {
76057
+ function newExpression(position, buffer, readString) {
76048
76058
  const start = buffer[position++];
76049
76059
  const end = buffer[position++];
76050
76060
  const callee = convertNode(buffer[position++], buffer, readString);
76051
- const argumentsPosition = buffer[position++];
76052
- const annotations = convertAnnotationList(position, buffer);
76053
- return addAnnotationProperty({
76061
+ const callArguments = convertNodeList(buffer[position++], buffer, readString);
76062
+ const annotations = convertAnnotations(position, buffer);
76063
+ return {
76054
76064
  type: "NewExpression",
76055
76065
  start,
76056
76066
  end,
76057
- arguments: argumentsPosition ? convertNodeList(argumentsPosition, buffer, readString) : [],
76058
- callee
76059
- }, annotations, ANNOTATION_KEY);
76067
+ ...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
76068
+ callee,
76069
+ arguments: callArguments
76070
+ };
76060
76071
  },
76061
- // index:50; ObjectExpression
76062
- (position, buffer, readString) => {
76072
+ function objectExpression(position, buffer, readString) {
76063
76073
  const start = buffer[position++];
76064
76074
  const end = buffer[position++];
76065
76075
  const properties = convertNodeList(position, buffer, readString);
@@ -76070,8 +76080,7 @@ ${smallChunks} are below minChunkSize.`
76070
76080
  properties
76071
76081
  };
76072
76082
  },
76073
- // index:51; ObjectPattern
76074
- (position, buffer, readString) => {
76083
+ function objectPattern(position, buffer, readString) {
76075
76084
  const start = buffer[position++];
76076
76085
  const end = buffer[position++];
76077
76086
  const properties = convertNodeList(position, buffer, readString);
@@ -76082,8 +76091,7 @@ ${smallChunks} are below minChunkSize.`
76082
76091
  properties
76083
76092
  };
76084
76093
  },
76085
- // index:52; PrivateIdentifier
76086
- (position, buffer, readString) => {
76094
+ function privateIdentifier(position, buffer, readString) {
76087
76095
  const start = buffer[position++];
76088
76096
  const end = buffer[position++];
76089
76097
  const name = convertString(position, buffer, readString);
@@ -76094,62 +76102,62 @@ ${smallChunks} are below minChunkSize.`
76094
76102
  name
76095
76103
  };
76096
76104
  },
76097
- // index:53; Program
76098
- (position, buffer, readString) => {
76105
+ function program(position, buffer, readString) {
76099
76106
  const start = buffer[position++];
76100
76107
  const end = buffer[position++];
76101
- const annotations = convertAnnotationList(buffer[position++], buffer);
76108
+ const annotations = convertAnnotations(buffer[position++], buffer);
76102
76109
  const body = convertNodeList(position, buffer, readString);
76103
- return addAnnotationProperty({
76110
+ return {
76104
76111
  type: "Program",
76105
76112
  start,
76106
76113
  end,
76107
76114
  body,
76115
+ ...annotations.length > 0 ? { [INVALID_ANNOTATION_KEY]: annotations } : {},
76108
76116
  sourceType: "module"
76109
- }, annotations, INVALID_ANNOTATION_KEY);
76117
+ };
76110
76118
  },
76111
- // index:54; Property
76112
- (position, buffer, readString) => {
76119
+ function property(position, buffer, readString) {
76113
76120
  const start = buffer[position++];
76114
76121
  const end = buffer[position++];
76115
- const kind = FIXED_STRINGS[buffer[position++]];
76116
- const method = !!buffer[position++];
76117
- const computed = !!buffer[position++];
76118
- const shorthand = !!buffer[position++];
76119
- const key = convertNode(buffer[position++], buffer, readString);
76120
- const valuePosition = buffer[position];
76122
+ const flags = buffer[position++];
76123
+ const method = (flags & 1) === 1;
76124
+ const shorthand = (flags & 2) === 2;
76125
+ const computed = (flags & 4) === 4;
76126
+ const keyPosition = buffer[position++];
76127
+ const value = convertNode(buffer[position++], buffer, readString);
76128
+ const kind = FIXED_STRINGS[buffer[position]];
76121
76129
  return {
76122
76130
  type: "Property",
76123
76131
  start,
76124
76132
  end,
76125
- computed,
76126
- key,
76127
- kind,
76128
76133
  method,
76129
76134
  shorthand,
76130
- value: valuePosition ? convertNode(valuePosition, buffer, readString) : { ...key }
76135
+ computed,
76136
+ key: keyPosition === 0 ? { ...value } : convertNode(keyPosition, buffer, readString),
76137
+ value,
76138
+ kind
76131
76139
  };
76132
76140
  },
76133
- // index:55; PropertyDefinition
76134
- (position, buffer, readString) => {
76141
+ function propertyDefinition(position, buffer, readString) {
76135
76142
  const start = buffer[position++];
76136
76143
  const end = buffer[position++];
76137
- const computed = !!buffer[position++];
76138
- const isStatic = !!buffer[position++];
76144
+ const flags = buffer[position++];
76145
+ const computed = (flags & 1) === 1;
76146
+ const isStatic = (flags & 2) === 2;
76139
76147
  const valuePosition = buffer[position++];
76148
+ const value = valuePosition === 0 ? null : convertNode(valuePosition, buffer, readString);
76140
76149
  const key = convertNode(position, buffer, readString);
76141
76150
  return {
76142
76151
  type: "PropertyDefinition",
76143
76152
  start,
76144
76153
  end,
76145
76154
  computed,
76146
- key,
76147
76155
  static: isStatic,
76148
- value: valuePosition ? convertNode(valuePosition, buffer, readString) : null
76156
+ key,
76157
+ value
76149
76158
  };
76150
76159
  },
76151
- // index:56; RestElement
76152
- (position, buffer, readString) => {
76160
+ function restElement(position, buffer, readString) {
76153
76161
  const start = buffer[position++];
76154
76162
  const end = buffer[position++];
76155
76163
  const argument = convertNode(position, buffer, readString);
@@ -76160,20 +76168,19 @@ ${smallChunks} are below minChunkSize.`
76160
76168
  argument
76161
76169
  };
76162
76170
  },
76163
- // index:57; ReturnStatement
76164
- (position, buffer, readString) => {
76171
+ function returnStatement(position, buffer, readString) {
76165
76172
  const start = buffer[position++];
76166
76173
  const end = buffer[position++];
76167
76174
  const argumentPosition = buffer[position];
76175
+ const argument = argumentPosition === 0 ? null : convertNode(argumentPosition, buffer, readString);
76168
76176
  return {
76169
76177
  type: "ReturnStatement",
76170
76178
  start,
76171
76179
  end,
76172
- argument: argumentPosition ? convertNode(argumentPosition, buffer, readString) : null
76180
+ argument
76173
76181
  };
76174
76182
  },
76175
- // index:58; SequenceExpression
76176
- (position, buffer, readString) => {
76183
+ function sequenceExpression(position, buffer, readString) {
76177
76184
  const start = buffer[position++];
76178
76185
  const end = buffer[position++];
76179
76186
  const expressions = convertNodeList(position, buffer, readString);
@@ -76184,8 +76191,7 @@ ${smallChunks} are below minChunkSize.`
76184
76191
  expressions
76185
76192
  };
76186
76193
  },
76187
- // index:59; SpreadElement
76188
- (position, buffer, readString) => {
76194
+ function spreadElement(position, buffer, readString) {
76189
76195
  const start = buffer[position++];
76190
76196
  const end = buffer[position++];
76191
76197
  const argument = convertNode(position, buffer, readString);
@@ -76196,8 +76202,7 @@ ${smallChunks} are below minChunkSize.`
76196
76202
  argument
76197
76203
  };
76198
76204
  },
76199
- // index:60; StaticBlock
76200
- (position, buffer, readString) => {
76205
+ function staticBlock(position, buffer, readString) {
76201
76206
  const start = buffer[position++];
76202
76207
  const end = buffer[position++];
76203
76208
  const body = convertNodeList(position, buffer, readString);
@@ -76208,8 +76213,7 @@ ${smallChunks} are below minChunkSize.`
76208
76213
  body
76209
76214
  };
76210
76215
  },
76211
- // index:61; Super
76212
- (position, buffer) => {
76216
+ function superElement(position, buffer) {
76213
76217
  const start = buffer[position++];
76214
76218
  const end = buffer[position++];
76215
76219
  return {
@@ -76218,22 +76222,21 @@ ${smallChunks} are below minChunkSize.`
76218
76222
  end
76219
76223
  };
76220
76224
  },
76221
- // index:62; SwitchCase
76222
- (position, buffer, readString) => {
76225
+ function switchCase(position, buffer, readString) {
76223
76226
  const start = buffer[position++];
76224
76227
  const end = buffer[position++];
76225
76228
  const testPosition = buffer[position++];
76229
+ const test = testPosition === 0 ? null : convertNode(testPosition, buffer, readString);
76226
76230
  const consequent = convertNodeList(buffer[position], buffer, readString);
76227
76231
  return {
76228
76232
  type: "SwitchCase",
76229
76233
  start,
76230
76234
  end,
76231
- consequent,
76232
- test: testPosition ? convertNode(testPosition, buffer, readString) : null
76235
+ test,
76236
+ consequent
76233
76237
  };
76234
76238
  },
76235
- // index:63; SwitchStatement
76236
- (position, buffer, readString) => {
76239
+ function switchStatement(position, buffer, readString) {
76237
76240
  const start = buffer[position++];
76238
76241
  const end = buffer[position++];
76239
76242
  const cases = convertNodeList(buffer[position++], buffer, readString);
@@ -76242,12 +76245,11 @@ ${smallChunks} are below minChunkSize.`
76242
76245
  type: "SwitchStatement",
76243
76246
  start,
76244
76247
  end,
76245
- cases,
76246
- discriminant
76248
+ discriminant,
76249
+ cases
76247
76250
  };
76248
76251
  },
76249
- // index:64; TaggedTemplateExpression
76250
- (position, buffer, readString) => {
76252
+ function taggedTemplateExpression(position, buffer, readString) {
76251
76253
  const start = buffer[position++];
76252
76254
  const end = buffer[position++];
76253
76255
  const quasi = convertNode(buffer[position++], buffer, readString);
@@ -76256,30 +76258,27 @@ ${smallChunks} are below minChunkSize.`
76256
76258
  type: "TaggedTemplateExpression",
76257
76259
  start,
76258
76260
  end,
76259
- quasi,
76260
- tag
76261
+ tag,
76262
+ quasi
76261
76263
  };
76262
76264
  },
76263
- // index:65; TemplateElement
76264
- (position, buffer, readString) => {
76265
+ function templateElement(position, buffer, readString) {
76265
76266
  const start = buffer[position++];
76266
76267
  const end = buffer[position++];
76267
- const tail = !!buffer[position++];
76268
+ const flags = buffer[position++];
76269
+ const tail = (flags & 1) === 1;
76268
76270
  const cookedPosition = buffer[position++];
76271
+ const cooked = cookedPosition === 0 ? void 0 : convertString(cookedPosition, buffer, readString);
76269
76272
  const raw = convertString(position, buffer, readString);
76270
76273
  return {
76271
76274
  type: "TemplateElement",
76272
76275
  start,
76273
76276
  end,
76274
76277
  tail,
76275
- value: {
76276
- cooked: cookedPosition ? convertString(cookedPosition, buffer, readString) : null,
76277
- raw
76278
- }
76278
+ value: { cooked, raw }
76279
76279
  };
76280
76280
  },
76281
- // index:66; TemplateLiteral
76282
- (position, buffer, readString) => {
76281
+ function templateLiteral(position, buffer, readString) {
76283
76282
  const start = buffer[position++];
76284
76283
  const end = buffer[position++];
76285
76284
  const expressions = convertNodeList(buffer[position++], buffer, readString);
@@ -76288,12 +76287,11 @@ ${smallChunks} are below minChunkSize.`
76288
76287
  type: "TemplateLiteral",
76289
76288
  start,
76290
76289
  end,
76291
- expressions,
76292
- quasis
76290
+ quasis,
76291
+ expressions
76293
76292
  };
76294
76293
  },
76295
- // index:67; ThisExpression
76296
- (position, buffer) => {
76294
+ function thisExpression(position, buffer) {
76297
76295
  const start = buffer[position++];
76298
76296
  const end = buffer[position++];
76299
76297
  return {
@@ -76302,8 +76300,7 @@ ${smallChunks} are below minChunkSize.`
76302
76300
  end
76303
76301
  };
76304
76302
  },
76305
- // index:68; ThrowStatement
76306
- (position, buffer, readString) => {
76303
+ function throwStatement(position, buffer, readString) {
76307
76304
  const start = buffer[position++];
76308
76305
  const end = buffer[position++];
76309
76306
  const argument = convertNode(position, buffer, readString);
@@ -76314,24 +76311,24 @@ ${smallChunks} are below minChunkSize.`
76314
76311
  argument
76315
76312
  };
76316
76313
  },
76317
- // index:69; TryStatement
76318
- (position, buffer, readString) => {
76314
+ function tryStatement(position, buffer, readString) {
76319
76315
  const start = buffer[position++];
76320
76316
  const end = buffer[position++];
76321
76317
  const handlerPosition = buffer[position++];
76318
+ const handler = handlerPosition === 0 ? null : convertNode(handlerPosition, buffer, readString);
76322
76319
  const finalizerPosition = buffer[position++];
76320
+ const finalizer = finalizerPosition === 0 ? null : convertNode(finalizerPosition, buffer, readString);
76323
76321
  const block = convertNode(position, buffer, readString);
76324
76322
  return {
76325
76323
  type: "TryStatement",
76326
76324
  start,
76327
76325
  end,
76328
76326
  block,
76329
- finalizer: finalizerPosition ? convertNode(finalizerPosition, buffer, readString) : null,
76330
- handler: handlerPosition ? convertNode(handlerPosition, buffer, readString) : null
76327
+ handler,
76328
+ finalizer
76331
76329
  };
76332
76330
  },
76333
- // index:70; UnaryExpression
76334
- (position, buffer, readString) => {
76331
+ function unaryExpression(position, buffer, readString) {
76335
76332
  const start = buffer[position++];
76336
76333
  const end = buffer[position++];
76337
76334
  const operator = FIXED_STRINGS[buffer[position++]];
@@ -76340,29 +76337,28 @@ ${smallChunks} are below minChunkSize.`
76340
76337
  type: "UnaryExpression",
76341
76338
  start,
76342
76339
  end,
76343
- argument,
76344
76340
  operator,
76341
+ argument,
76345
76342
  prefix: true
76346
76343
  };
76347
76344
  },
76348
- // index:71; UpdateExpression
76349
- (position, buffer, readString) => {
76345
+ function updateExpression(position, buffer, readString) {
76350
76346
  const start = buffer[position++];
76351
76347
  const end = buffer[position++];
76352
- const prefix = !!buffer[position++];
76348
+ const flags = buffer[position++];
76349
+ const prefix = (flags & 1) === 1;
76353
76350
  const operator = FIXED_STRINGS[buffer[position++]];
76354
76351
  const argument = convertNode(position, buffer, readString);
76355
76352
  return {
76356
76353
  type: "UpdateExpression",
76357
76354
  start,
76358
76355
  end,
76359
- argument,
76356
+ prefix,
76360
76357
  operator,
76361
- prefix
76358
+ argument
76362
76359
  };
76363
76360
  },
76364
- // index:72; VariableDeclaration
76365
- (position, buffer, readString) => {
76361
+ function variableDeclaration(position, buffer, readString) {
76366
76362
  const start = buffer[position++];
76367
76363
  const end = buffer[position++];
76368
76364
  const kind = FIXED_STRINGS[buffer[position++]];
@@ -76371,26 +76367,25 @@ ${smallChunks} are below minChunkSize.`
76371
76367
  type: "VariableDeclaration",
76372
76368
  start,
76373
76369
  end,
76374
- declarations,
76375
- kind
76370
+ kind,
76371
+ declarations
76376
76372
  };
76377
76373
  },
76378
- // index:73; VariableDeclarator
76379
- (position, buffer, readString) => {
76374
+ function variableDeclarator(position, buffer, readString) {
76380
76375
  const start = buffer[position++];
76381
76376
  const end = buffer[position++];
76382
- const init_position = buffer[position++];
76377
+ const initPosition = buffer[position++];
76378
+ const init = initPosition === 0 ? null : convertNode(initPosition, buffer, readString);
76383
76379
  const id = convertNode(position, buffer, readString);
76384
76380
  return {
76385
76381
  type: "VariableDeclarator",
76386
76382
  start,
76387
76383
  end,
76388
76384
  id,
76389
- init: init_position ? convertNode(init_position, buffer, readString) : null
76385
+ init
76390
76386
  };
76391
76387
  },
76392
- // index:74; WhileStatement
76393
- (position, buffer, readString) => {
76388
+ function whileStatement(position, buffer, readString) {
76394
76389
  const start = buffer[position++];
76395
76390
  const end = buffer[position++];
76396
76391
  const body = convertNode(buffer[position++], buffer, readString);
@@ -76399,32 +76394,36 @@ ${smallChunks} are below minChunkSize.`
76399
76394
  type: "WhileStatement",
76400
76395
  start,
76401
76396
  end,
76402
- body,
76403
- test
76397
+ test,
76398
+ body
76404
76399
  };
76405
76400
  },
76406
- // index:75; YieldExpression
76407
- (position, buffer, readString) => {
76401
+ function yieldExpression(position, buffer, readString) {
76408
76402
  const start = buffer[position++];
76409
76403
  const end = buffer[position++];
76410
- const delegate = !!buffer[position++];
76404
+ const flags = buffer[position++];
76405
+ const delegate = (flags & 1) === 1;
76411
76406
  const argumentPosition = buffer[position];
76407
+ const argument = argumentPosition === 0 ? null : convertNode(argumentPosition, buffer, readString);
76412
76408
  return {
76413
76409
  type: "YieldExpression",
76414
76410
  start,
76415
76411
  end,
76416
- argument: argumentPosition ? convertNode(argumentPosition, buffer, readString) : null,
76417
- delegate
76412
+ delegate,
76413
+ argument
76418
76414
  };
76419
- },
76420
- // index:76; Syntax Error
76421
- (position, buffer, readString) => {
76422
- const pos = buffer[position++];
76423
- const message = convertString(position, buffer, readString);
76424
- error(logParseError(message, pos));
76425
76415
  }
76426
76416
  ];
76427
- var convertNodeList = (position, buffer, readString) => {
76417
+ function convertNode(position, buffer, readString) {
76418
+ const nodeType = buffer[position];
76419
+ const converter = nodeConverters[nodeType];
76420
+ if (!converter) {
76421
+ console.trace();
76422
+ throw new Error(`Unknown node type: ${nodeType}`);
76423
+ }
76424
+ return converter(position + 1, buffer, readString);
76425
+ }
76426
+ function convertNodeList(position, buffer, readString) {
76428
76427
  const length = buffer[position++];
76429
76428
  const list = [];
76430
76429
  for (let index = 0; index < length; index++) {
@@ -76432,8 +76431,8 @@ ${smallChunks} are below minChunkSize.`
76432
76431
  list.push(nodePosition ? convertNode(nodePosition, buffer, readString) : null);
76433
76432
  }
76434
76433
  return list;
76435
- };
76436
- var convertAnnotationList = (position, buffer) => {
76434
+ }
76435
+ var convertAnnotations = (position, buffer) => {
76437
76436
  const length = buffer[position++];
76438
76437
  const list = [];
76439
76438
  for (let index = 0; index < length; index++) {
@@ -76447,22 +76446,11 @@ ${smallChunks} are below minChunkSize.`
76447
76446
  const type = FIXED_STRINGS[buffer[position]];
76448
76447
  return { end, start, type };
76449
76448
  };
76450
- var addAnnotationProperty = (node, annotations, key) => {
76451
- if (annotations.length > 0) {
76452
- return {
76453
- ...node,
76454
- [key]: annotations
76455
- };
76456
- }
76457
- return node;
76458
- };
76459
76449
  var convertString = (position, buffer, readString) => {
76460
76450
  const length = buffer[position++];
76461
76451
  const bytePosition = position << 2;
76462
76452
  return readString(bytePosition, length);
76463
76453
  };
76464
- var ANNOTATION_KEY = "_rollupAnnotations";
76465
- var INVALID_ANNOTATION_KEY = "_rollupRemoved";
76466
76454
  function getReadStringFunction(astBuffer) {
76467
76455
  if (typeof Buffer !== "undefined" && astBuffer instanceof Buffer) {
76468
76456
  return function readString(start, length) {
@@ -76477,15 +76465,11 @@ ${smallChunks} are below minChunkSize.`
76477
76465
  }
76478
76466
  var parseAst = (input, { allowReturnOutsideFunction = false } = {}) => {
76479
76467
  const astBuffer = native_js.parse(input, allowReturnOutsideFunction);
76480
- const readString = getReadStringFunction(astBuffer);
76481
- const result = convertProgram(astBuffer.buffer, readString);
76482
- return result;
76468
+ return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
76483
76469
  };
76484
76470
  var parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal } = {}) => {
76485
76471
  const astBuffer = await native_js.parseAsync(input, allowReturnOutsideFunction, signal);
76486
- const readString = getReadStringFunction(astBuffer);
76487
- const result = convertProgram(astBuffer.buffer, readString);
76488
- return result;
76472
+ return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
76489
76473
  };
76490
76474
  exports2.ANNOTATION_KEY = ANNOTATION_KEY;
76491
76475
  exports2.INVALID_ANNOTATION_KEY = INVALID_ANNOTATION_KEY;
@@ -76578,7 +76562,6 @@ ${smallChunks} are below minChunkSize.`
76578
76562
  exports2.logInvalidFunctionPluginHook = logInvalidFunctionPluginHook;
76579
76563
  exports2.logInvalidLogPosition = logInvalidLogPosition;
76580
76564
  exports2.logInvalidOption = logInvalidOption;
76581
- exports2.logInvalidRollupPhaseForAddWatchFile = logInvalidRollupPhaseForAddWatchFile;
76582
76565
  exports2.logInvalidRollupPhaseForChunkEmission = logInvalidRollupPhaseForChunkEmission;
76583
76566
  exports2.logInvalidSetAssetSourceCall = logInvalidSetAssetSourceCall;
76584
76567
  exports2.logInvalidSourcemapForError = logInvalidSourcemapForError;
@@ -76624,9 +76607,9 @@ ${smallChunks} are below minChunkSize.`
76624
76607
  }
76625
76608
  });
76626
76609
 
76627
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/rollup.js
76610
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/rollup.js
76628
76611
  var require_rollup = __commonJS({
76629
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/rollup.js"(exports2) {
76612
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/rollup.js"(exports2) {
76630
76613
  "use strict";
76631
76614
  var parseAst_js = require_parseAst();
76632
76615
  var process$1 = require("node:process");
@@ -76647,7 +76630,7 @@ var require_rollup = __commonJS({
76647
76630
  return n2;
76648
76631
  }
76649
76632
  var tty__namespace = /* @__PURE__ */ _interopNamespaceDefault(tty);
76650
- var version = "4.5.2";
76633
+ var version = "4.10.0";
76651
76634
  function ensureArray$1(items) {
76652
76635
  if (Array.isArray(items)) {
76653
76636
  return items.filter(Boolean);
@@ -76664,19 +76647,23 @@ var require_rollup = __commonJS({
76664
76647
  BuildPhase2[BuildPhase2["GENERATE"] = 2] = "GENERATE";
76665
76648
  })(BuildPhase || (BuildPhase = {}));
76666
76649
  var textEncoder;
76667
- function getXxhash(input) {
76668
- let buffer;
76650
+ var getHash64 = (input) => native_js.xxhashBase64Url(ensureBuffer(input));
76651
+ var getHash36 = (input) => native_js.xxhashBase36(ensureBuffer(input));
76652
+ var getHash16 = (input) => native_js.xxhashBase16(ensureBuffer(input));
76653
+ var hasherByType = {
76654
+ base36: getHash36,
76655
+ base64: getHash64,
76656
+ hex: getHash16
76657
+ };
76658
+ function ensureBuffer(input) {
76669
76659
  if (typeof input === "string") {
76670
76660
  if (typeof Buffer === "undefined") {
76671
76661
  textEncoder ??= new TextEncoder();
76672
- buffer = textEncoder.encode(input);
76673
- } else {
76674
- buffer = Buffer.from(input);
76662
+ return textEncoder.encode(input);
76675
76663
  }
76676
- } else {
76677
- buffer = input;
76664
+ return Buffer.from(input);
76678
76665
  }
76679
- return native_js.xxhashBase64Url(buffer);
76666
+ return input;
76680
76667
  }
76681
76668
  function getOrCreate(map, key, init2) {
76682
76669
  const existing = map.get(key);
@@ -76707,13 +76694,13 @@ var require_rollup = __commonJS({
76707
76694
  var hashPlaceholderLeft = "!~{";
76708
76695
  var hashPlaceholderRight = "}~";
76709
76696
  var hashPlaceholderOverhead = hashPlaceholderLeft.length + hashPlaceholderRight.length;
76710
- var maxHashSize = 22;
76711
- var defaultHashSize = 8;
76697
+ var MAX_HASH_SIZE = 22;
76698
+ var DEFAULT_HASH_SIZE = 8;
76712
76699
  var getHashPlaceholderGenerator = () => {
76713
76700
  let nextIndex = 0;
76714
- return (optionName, hashSize = defaultHashSize) => {
76715
- if (hashSize > maxHashSize) {
76716
- return parseAst_js.error(parseAst_js.logFailedValidation(`Hashes cannot be longer than ${maxHashSize} characters, received ${hashSize}. Check the "${optionName}" option.`));
76701
+ return (optionName, hashSize) => {
76702
+ if (hashSize > MAX_HASH_SIZE) {
76703
+ return parseAst_js.error(parseAst_js.logFailedValidation(`Hashes cannot be longer than ${MAX_HASH_SIZE} characters, received ${hashSize}. Check the "${optionName}" option.`));
76717
76704
  }
76718
76705
  const placeholder = `${hashPlaceholderLeft}${toBase64(++nextIndex).padStart(hashSize - hashPlaceholderOverhead, "0")}${hashPlaceholderRight}`;
76719
76706
  if (placeholder.length > hashSize) {
@@ -76722,7 +76709,7 @@ var require_rollup = __commonJS({
76722
76709
  return placeholder;
76723
76710
  };
76724
76711
  };
76725
- var REPLACER_REGEX = new RegExp(`${hashPlaceholderLeft}[0-9a-zA-Z_$]{1,${maxHashSize - hashPlaceholderOverhead}}${hashPlaceholderRight}`, "g");
76712
+ var REPLACER_REGEX = new RegExp(`${hashPlaceholderLeft}[0-9a-zA-Z_$]{1,${MAX_HASH_SIZE - hashPlaceholderOverhead}}${hashPlaceholderRight}`, "g");
76726
76713
  var replacePlaceholders = (code, hashesByPlaceholder) => code.replace(REPLACER_REGEX, (placeholder) => hashesByPlaceholder.get(placeholder) || placeholder);
76727
76714
  var replaceSinglePlaceholder = (code, placeholder, value) => code.replace(REPLACER_REGEX, (match2) => match2 === placeholder ? value : match2);
76728
76715
  var replacePlaceholdersWithDefaultAndGetContainedPlaceholders = (code, placeholders) => {
@@ -76808,7 +76795,7 @@ var require_rollup = __commonJS({
76808
76795
  return makeUnique(renderNamePattern(typeof outputOptions.assetFileNames === "function" ? outputOptions.assetFileNames({ name, source, type: "asset" }) : outputOptions.assetFileNames, "output.assetFileNames", {
76809
76796
  ext: () => node_path.extname(emittedName).slice(1),
76810
76797
  extname: () => node_path.extname(emittedName),
76811
- hash: (size) => sourceHash.slice(0, Math.max(0, size || defaultHashSize)),
76798
+ hash: (size) => sourceHash.slice(0, Math.max(0, size || DEFAULT_HASH_SIZE)),
76812
76799
  name: () => emittedName.slice(0, Math.max(0, emittedName.length - node_path.extname(emittedName).length))
76813
76800
  }), bundle);
76814
76801
  }
@@ -76914,9 +76901,11 @@ var require_rollup = __commonJS({
76914
76901
  this.facadeChunkByModule = facadeChunkByModule;
76915
76902
  };
76916
76903
  this.setOutputBundle = (bundle, outputOptions) => {
76904
+ const getHash = hasherByType[outputOptions.hashCharacters];
76917
76905
  const output = this.output = {
76918
76906
  bundle,
76919
76907
  fileNamesBySource: /* @__PURE__ */ new Map(),
76908
+ getHash,
76920
76909
  outputOptions
76921
76910
  };
76922
76911
  for (const emittedFile of this.filesByReferenceId.values()) {
@@ -76930,7 +76919,7 @@ var require_rollup = __commonJS({
76930
76919
  if (consumedFile.fileName) {
76931
76920
  this.finalizeAdditionalAsset(consumedFile, consumedFile.source, output);
76932
76921
  } else {
76933
- const sourceHash = getXxhash(consumedFile.source);
76922
+ const sourceHash = getHash(consumedFile.source);
76934
76923
  getOrCreate(consumedAssetsByHash, sourceHash, () => []).push(consumedFile);
76935
76924
  }
76936
76925
  } else if (consumedFile.type === "prebuilt-chunk") {
@@ -76950,7 +76939,7 @@ var require_rollup = __commonJS({
76950
76939
  assignReferenceId(file, idBase) {
76951
76940
  let referenceId = idBase;
76952
76941
  do {
76953
- referenceId = getXxhash(referenceId).slice(0, 8).replaceAll("-", "$");
76942
+ referenceId = getHash64(referenceId).slice(0, 8).replaceAll("-", "$");
76954
76943
  } while (this.filesByReferenceId.has(referenceId) || this.outputFileEmitters.some(({ filesByReferenceId }) => filesByReferenceId.has(referenceId)));
76955
76944
  file.referenceId = referenceId;
76956
76945
  this.filesByReferenceId.set(referenceId, file);
@@ -77050,10 +77039,10 @@ var require_rollup = __commonJS({
77050
77039
  }
77051
77040
  return referenceId;
77052
77041
  }
77053
- finalizeAdditionalAsset(consumedFile, source, { bundle, fileNamesBySource, outputOptions }) {
77042
+ finalizeAdditionalAsset(consumedFile, source, { bundle, fileNamesBySource, getHash, outputOptions }) {
77054
77043
  let { fileName, needsCodeReference, referenceId } = consumedFile;
77055
77044
  if (!fileName) {
77056
- const sourceHash = getXxhash(source);
77045
+ const sourceHash = getHash(source);
77057
77046
  fileName = fileNamesBySource.get(sourceHash);
77058
77047
  if (!fileName) {
77059
77048
  fileName = generateAssetFileName(consumedFile.name, source, sourceHash, outputOptions, bundle);
@@ -77367,9 +77356,6 @@ var require_rollup = __commonJS({
77367
77356
  }
77368
77357
  return {
77369
77358
  addWatchFile(id) {
77370
- if (graph.phase >= BuildPhase.GENERATE) {
77371
- return this.error(parseAst_js.logInvalidRollupPhaseForAddWatchFile());
77372
- }
77373
77359
  graph.watchFiles[id] = true;
77374
77360
  },
77375
77361
  cache: cacheInstance,
@@ -77805,6 +77791,7 @@ var require_rollup = __commonJS({
77805
77791
  freeze: getOption("freeze"),
77806
77792
  generatedCode: getObjectOption(config, overrides, "generatedCode", objectifyOptionWithPresets(generatedCodePresets, "output.generatedCode", parseAst_js.URL_OUTPUT_GENERATEDCODE, "")),
77807
77793
  globals: getOption("globals"),
77794
+ hashCharacters: getOption("hashCharacters"),
77808
77795
  hoistTransitiveImports: getOption("hoistTransitiveImports"),
77809
77796
  indent: getOption("indent"),
77810
77797
  inlineDynamicImports: getOption("inlineDynamicImports"),
@@ -78203,6 +78190,15 @@ var require_rollup = __commonJS({
78203
78190
  prependRight(content) {
78204
78191
  this.intro = content + this.intro;
78205
78192
  }
78193
+ reset() {
78194
+ this.intro = "";
78195
+ this.outro = "";
78196
+ if (this.edited) {
78197
+ this.content = this.original;
78198
+ this.storeName = false;
78199
+ this.edited = false;
78200
+ }
78201
+ }
78206
78202
  split(index) {
78207
78203
  const sliceIndex = index - this.start;
78208
78204
  const originalBefore = this.original.slice(0, sliceIndex);
@@ -78271,8 +78267,8 @@ var require_rollup = __commonJS({
78271
78267
  }
78272
78268
  };
78273
78269
  function getBtoa() {
78274
- if (typeof window !== "undefined" && typeof window.btoa === "function") {
78275
- return (str) => window.btoa(unescape(encodeURIComponent(str)));
78270
+ if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function") {
78271
+ return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
78276
78272
  } else if (typeof Buffer === "function") {
78277
78273
  return (str) => Buffer.from(str, "utf-8").toString("base64");
78278
78274
  } else {
@@ -78823,6 +78819,26 @@ var require_rollup = __commonJS({
78823
78819
  }
78824
78820
  return this;
78825
78821
  }
78822
+ reset(start, end) {
78823
+ while (start < 0)
78824
+ start += this.original.length;
78825
+ while (end < 0)
78826
+ end += this.original.length;
78827
+ if (start === end)
78828
+ return this;
78829
+ if (start < 0 || end > this.original.length)
78830
+ throw new Error("Character is out of bounds");
78831
+ if (start > end)
78832
+ throw new Error("end must be greater than start");
78833
+ this._split(start);
78834
+ this._split(end);
78835
+ let chunk = this.byStart[start];
78836
+ while (chunk) {
78837
+ chunk.reset();
78838
+ chunk = end > chunk.end ? this.byStart[chunk.end] : null;
78839
+ }
78840
+ return this;
78841
+ }
78826
78842
  lastChar() {
78827
78843
  if (this.outro.length)
78828
78844
  return this.outro[this.outro.length - 1];
@@ -79667,10 +79683,9 @@ var require_rollup = __commonJS({
79667
79683
  "with",
79668
79684
  "yield"
79669
79685
  ]);
79670
- var RESERVED_NAMES$1 = RESERVED_NAMES;
79671
79686
  var illegalCharacters = /[^\w$]/g;
79672
79687
  var startsWithDigit = (value) => /\d/.test(value[0]);
79673
- var needsEscape = (value) => startsWithDigit(value) || RESERVED_NAMES$1.has(value) || value === "arguments";
79688
+ var needsEscape = (value) => startsWithDigit(value) || RESERVED_NAMES.has(value) || value === "arguments";
79674
79689
  function isLegal(value) {
79675
79690
  if (needsEscape(value)) {
79676
79691
  return false;
@@ -79683,6 +79698,23 @@ var require_rollup = __commonJS({
79683
79698
  value = `_${value}`;
79684
79699
  return value || "_";
79685
79700
  }
79701
+ var VALID_IDENTIFIER_REGEXP = /^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u;
79702
+ var NUMBER_REGEXP = /^(?:0|[1-9]\d*)$/;
79703
+ function stringifyObjectKeyIfNeeded(key) {
79704
+ if (VALID_IDENTIFIER_REGEXP.test(key)) {
79705
+ return key === "__proto__" ? '["__proto__"]' : key;
79706
+ }
79707
+ if (NUMBER_REGEXP.test(key) && +key <= Number.MAX_SAFE_INTEGER) {
79708
+ return key;
79709
+ }
79710
+ return JSON.stringify(key);
79711
+ }
79712
+ function stringifyIdentifierIfNeeded(key) {
79713
+ if (VALID_IDENTIFIER_REGEXP.test(key)) {
79714
+ return key;
79715
+ }
79716
+ return JSON.stringify(key);
79717
+ }
79686
79718
  var ExternalModule = class {
79687
79719
  constructor(options, id, moduleSideEffects, meta, renormalizeRenderPath, attributes) {
79688
79720
  this.options = options;
@@ -81802,8 +81834,15 @@ var require_rollup = __commonJS({
81802
81834
  this.description = description;
81803
81835
  }
81804
81836
  deoptimizeArgumentsOnInteractionAtPath({ args, type }, path4) {
81805
- if (type === INTERACTION_CALLED && path4.length === 0 && this.description.mutatesSelfAsArray) {
81806
- args[0]?.deoptimizePath(UNKNOWN_INTEGER_PATH);
81837
+ if (type === INTERACTION_CALLED && path4.length === 0) {
81838
+ if (this.description.mutatesSelfAsArray) {
81839
+ args[0]?.deoptimizePath(UNKNOWN_INTEGER_PATH);
81840
+ }
81841
+ if (this.description.mutatesArgs) {
81842
+ for (let index = 1; index < args.length; index++) {
81843
+ args[index].deoptimizePath(UNKNOWN_PATH);
81844
+ }
81845
+ }
81807
81846
  }
81808
81847
  }
81809
81848
  getReturnExpressionWhenCalledAtPath(path4, { args }) {
@@ -81839,6 +81878,7 @@ var require_rollup = __commonJS({
81839
81878
  var METHOD_RETURNS_BOOLEAN = [
81840
81879
  new Method({
81841
81880
  callsArgs: null,
81881
+ mutatesArgs: false,
81842
81882
  mutatesSelfAsArray: false,
81843
81883
  returns: null,
81844
81884
  returnsPrimitive: UNKNOWN_LITERAL_BOOLEAN
@@ -81847,6 +81887,7 @@ var require_rollup = __commonJS({
81847
81887
  var METHOD_RETURNS_STRING = [
81848
81888
  new Method({
81849
81889
  callsArgs: null,
81890
+ mutatesArgs: false,
81850
81891
  mutatesSelfAsArray: false,
81851
81892
  returns: null,
81852
81893
  returnsPrimitive: UNKNOWN_LITERAL_STRING
@@ -81855,6 +81896,7 @@ var require_rollup = __commonJS({
81855
81896
  var METHOD_RETURNS_NUMBER = [
81856
81897
  new Method({
81857
81898
  callsArgs: null,
81899
+ mutatesArgs: false,
81858
81900
  mutatesSelfAsArray: false,
81859
81901
  returns: null,
81860
81902
  returnsPrimitive: UNKNOWN_LITERAL_NUMBER
@@ -81863,6 +81905,7 @@ var require_rollup = __commonJS({
81863
81905
  var METHOD_RETURNS_UNKNOWN = [
81864
81906
  new Method({
81865
81907
  callsArgs: null,
81908
+ mutatesArgs: false,
81866
81909
  mutatesSelfAsArray: false,
81867
81910
  returns: null,
81868
81911
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -82249,6 +82292,7 @@ var require_rollup = __commonJS({
82249
82292
  var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_BOOLEAN = [
82250
82293
  new Method({
82251
82294
  callsArgs: [0],
82295
+ mutatesArgs: false,
82252
82296
  mutatesSelfAsArray: "deopt-only",
82253
82297
  returns: null,
82254
82298
  returnsPrimitive: UNKNOWN_LITERAL_BOOLEAN
@@ -82257,6 +82301,7 @@ var require_rollup = __commonJS({
82257
82301
  var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER = [
82258
82302
  new Method({
82259
82303
  callsArgs: [0],
82304
+ mutatesArgs: false,
82260
82305
  mutatesSelfAsArray: "deopt-only",
82261
82306
  returns: null,
82262
82307
  returnsPrimitive: UNKNOWN_LITERAL_NUMBER
@@ -82265,6 +82310,7 @@ var require_rollup = __commonJS({
82265
82310
  var METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY = [
82266
82311
  new Method({
82267
82312
  callsArgs: null,
82313
+ mutatesArgs: false,
82268
82314
  mutatesSelfAsArray: true,
82269
82315
  returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
82270
82316
  returnsPrimitive: null
@@ -82273,6 +82319,7 @@ var require_rollup = __commonJS({
82273
82319
  var METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
82274
82320
  new Method({
82275
82321
  callsArgs: null,
82322
+ mutatesArgs: false,
82276
82323
  mutatesSelfAsArray: "deopt-only",
82277
82324
  returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
82278
82325
  returnsPrimitive: null
@@ -82281,14 +82328,16 @@ var require_rollup = __commonJS({
82281
82328
  var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
82282
82329
  new Method({
82283
82330
  callsArgs: [0],
82331
+ mutatesArgs: false,
82284
82332
  mutatesSelfAsArray: "deopt-only",
82285
82333
  returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
82286
82334
  returnsPrimitive: null
82287
82335
  })
82288
82336
  ];
82289
- var METHOD_MUTATES_SELF_RETURNS_NUMBER = [
82337
+ var METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER = [
82290
82338
  new Method({
82291
82339
  callsArgs: null,
82340
+ mutatesArgs: true,
82292
82341
  mutatesSelfAsArray: true,
82293
82342
  returns: null,
82294
82343
  returnsPrimitive: UNKNOWN_LITERAL_NUMBER
@@ -82297,6 +82346,7 @@ var require_rollup = __commonJS({
82297
82346
  var METHOD_MUTATES_SELF_RETURNS_UNKNOWN = [
82298
82347
  new Method({
82299
82348
  callsArgs: null,
82349
+ mutatesArgs: false,
82300
82350
  mutatesSelfAsArray: true,
82301
82351
  returns: null,
82302
82352
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -82305,6 +82355,7 @@ var require_rollup = __commonJS({
82305
82355
  var METHOD_DEOPTS_SELF_RETURNS_UNKNOWN = [
82306
82356
  new Method({
82307
82357
  callsArgs: null,
82358
+ mutatesArgs: false,
82308
82359
  mutatesSelfAsArray: "deopt-only",
82309
82360
  returns: null,
82310
82361
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -82313,6 +82364,7 @@ var require_rollup = __commonJS({
82313
82364
  var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN = [
82314
82365
  new Method({
82315
82366
  callsArgs: [0],
82367
+ mutatesArgs: false,
82316
82368
  mutatesSelfAsArray: "deopt-only",
82317
82369
  returns: null,
82318
82370
  returnsPrimitive: UNKNOWN_EXPRESSION
@@ -82321,6 +82373,7 @@ var require_rollup = __commonJS({
82321
82373
  var METHOD_MUTATES_SELF_RETURNS_SELF = [
82322
82374
  new Method({
82323
82375
  callsArgs: null,
82376
+ mutatesArgs: false,
82324
82377
  mutatesSelfAsArray: true,
82325
82378
  returns: "self",
82326
82379
  returnsPrimitive: null
@@ -82329,6 +82382,7 @@ var require_rollup = __commonJS({
82329
82382
  var METHOD_CALLS_ARG_MUTATES_SELF_RETURNS_SELF = [
82330
82383
  new Method({
82331
82384
  callsArgs: [0],
82385
+ mutatesArgs: false,
82332
82386
  mutatesSelfAsArray: true,
82333
82387
  returns: "self",
82334
82388
  returnsPrimitive: null
@@ -82358,7 +82412,7 @@ var require_rollup = __commonJS({
82358
82412
  lastIndexOf: METHOD_RETURNS_NUMBER,
82359
82413
  map: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY,
82360
82414
  pop: METHOD_MUTATES_SELF_RETURNS_UNKNOWN,
82361
- push: METHOD_MUTATES_SELF_RETURNS_NUMBER,
82415
+ push: METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER,
82362
82416
  reduce: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
82363
82417
  reduceRight: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
82364
82418
  reverse: METHOD_MUTATES_SELF_RETURNS_SELF,
@@ -82369,7 +82423,7 @@ var require_rollup = __commonJS({
82369
82423
  splice: METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY,
82370
82424
  toLocaleString: METHOD_RETURNS_STRING,
82371
82425
  toString: METHOD_RETURNS_STRING,
82372
- unshift: METHOD_MUTATES_SELF_RETURNS_NUMBER,
82426
+ unshift: METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER,
82373
82427
  values: METHOD_DEOPTS_SELF_RETURNS_UNKNOWN
82374
82428
  }, OBJECT_PROTOTYPE, true);
82375
82429
  var ArrayExpression = class extends NodeBase {
@@ -82688,7 +82742,7 @@ var require_rollup = __commonJS({
82688
82742
  function getSafeName(baseName, usedNames, forbiddenNames) {
82689
82743
  let safeName = baseName;
82690
82744
  let count = 1;
82691
- while (usedNames.has(safeName) || RESERVED_NAMES$1.has(safeName) || forbiddenNames?.has(safeName)) {
82745
+ while (usedNames.has(safeName) || RESERVED_NAMES.has(safeName) || forbiddenNames?.has(safeName)) {
82692
82746
  safeName = `${baseName}$${toBase64(count++)}`;
82693
82747
  }
82694
82748
  usedNames.add(safeName);
@@ -84128,7 +84182,7 @@ var require_rollup = __commonJS({
84128
84182
  if (this.variable.declarations && this.variable.declarations.length === 1 && (decl_id = this.variable.declarations[0]) && this.start < decl_id.start && closestParentFunctionOrProgram(this) === closestParentFunctionOrProgram(decl_id)) {
84129
84183
  return this.isTDZAccess = true;
84130
84184
  }
84131
- if (!this.variable.initReached) {
84185
+ if (!this.variable.initReached && this.scope.context.module.isExecuted) {
84132
84186
  return this.isTDZAccess = true;
84133
84187
  }
84134
84188
  return this.isTDZAccess = false;
@@ -84310,7 +84364,7 @@ var require_rollup = __commonJS({
84310
84364
  const name = identifier.name;
84311
84365
  const existingVariable = this.hoistedVariables?.get(name) || this.variables.get(name);
84312
84366
  if (existingVariable) {
84313
- if (existingVariable.kind === "var") {
84367
+ if (existingVariable.kind === "var" || kind === "var" && existingVariable.kind === "parameter") {
84314
84368
  existingVariable.addDeclaration(identifier, init2);
84315
84369
  return existingVariable;
84316
84370
  }
@@ -84634,7 +84688,7 @@ var require_rollup = __commonJS({
84634
84688
  function getSystemExportStatement(exportedVariables, { exportNamesByVariable, snippets: { _, getObject, getPropertyAccess } }, modifier = "") {
84635
84689
  if (exportedVariables.length === 1 && exportNamesByVariable.get(exportedVariables[0]).length === 1) {
84636
84690
  const variable = exportedVariables[0];
84637
- return `exports('${exportNamesByVariable.get(variable)}',${_}${variable.getName(getPropertyAccess)}${modifier})`;
84691
+ return `exports(${JSON.stringify(exportNamesByVariable.get(variable)[0])},${_}${variable.getName(getPropertyAccess)}${modifier})`;
84638
84692
  } else {
84639
84693
  const fields = [];
84640
84694
  for (const variable of exportedVariables) {
@@ -84646,7 +84700,7 @@ var require_rollup = __commonJS({
84646
84700
  }
84647
84701
  }
84648
84702
  function renderSystemExportExpression(exportedVariable, expressionStart, expressionEnd, code, { exportNamesByVariable, snippets: { _ } }) {
84649
- code.prependRight(expressionStart, `exports('${exportNamesByVariable.get(exportedVariable)}',${_}`);
84703
+ code.prependRight(expressionStart, `exports(${JSON.stringify(exportNamesByVariable.get(exportedVariable)[0])},${_}`);
84650
84704
  code.appendLeft(expressionEnd, ")");
84651
84705
  }
84652
84706
  function renderSystemExportFunction(exportedVariables, expressionStart, expressionEnd, needsParens, code, options) {
@@ -86265,7 +86319,7 @@ var require_rollup = __commonJS({
86265
86319
  const hasTrailingSemicolon = code.original.charCodeAt(this.end - 1) === 59;
86266
86320
  const systemExportNames = format2 === "system" && exportNamesByVariable.get(this.variable);
86267
86321
  if (systemExportNames) {
86268
- code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports('${systemExportNames[0]}', `);
86322
+ code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports(${JSON.stringify(systemExportNames[0])}, `);
86269
86323
  code.appendRight(hasTrailingSemicolon ? this.end - 1 : this.end, ")" + (hasTrailingSemicolon ? "" : ";"));
86270
86324
  } else {
86271
86325
  code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
@@ -86690,14 +86744,14 @@ var require_rollup = __commonJS({
86690
86744
  return `function ${INTEROP_NAMESPACE_COMPAT_VARIABLE}(e)${_}{${n2}${t}if${_}(${getIsCompatNamespace(snippets)})${_}return e;${n2}` + createNamespaceObject(t, t, snippets, liveBindings, freeze, symbols) + `}${n2}${n2}`;
86691
86745
  },
86692
86746
  [INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE](_t, snippets, _liveBindings, freeze, symbols) {
86693
- const { getDirectReturnFunction, getObject, n: n2 } = snippets;
86747
+ const { getDirectReturnFunction, getObject, n: n2, _ } = snippets;
86694
86748
  const [left, right] = getDirectReturnFunction(["e"], {
86695
86749
  functionReturn: true,
86696
86750
  lineBreakIndent: null,
86697
86751
  name: INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE
86698
86752
  });
86699
86753
  return `${left}${getFrozen(freeze, getWithToStringTag(symbols, getObject([
86700
- ["__proto__", "null"],
86754
+ [null, `__proto__:${_}null`],
86701
86755
  ["default", "e"]
86702
86756
  ], { lineBreakIndent: null }), snippets))}${right}${n2}${n2}`;
86703
86757
  },
@@ -87110,26 +87164,33 @@ var require_rollup = __commonJS({
87110
87164
  };
87111
87165
  var LabeledStatement = class extends NodeBase {
87112
87166
  hasEffects(context) {
87113
- const brokenFlow = context.brokenFlow;
87167
+ const { brokenFlow, includedLabels } = context;
87114
87168
  context.ignore.labels.add(this.label.name);
87115
- if (this.body.hasEffects(context))
87116
- return true;
87117
- context.ignore.labels.delete(this.label.name);
87118
- if (context.includedLabels.has(this.label.name)) {
87119
- context.includedLabels.delete(this.label.name);
87120
- context.brokenFlow = brokenFlow;
87169
+ context.includedLabels = /* @__PURE__ */ new Set();
87170
+ let bodyHasEffects = false;
87171
+ if (this.body.hasEffects(context)) {
87172
+ bodyHasEffects = true;
87173
+ } else {
87174
+ context.ignore.labels.delete(this.label.name);
87175
+ if (context.includedLabels.has(this.label.name)) {
87176
+ context.includedLabels.delete(this.label.name);
87177
+ context.brokenFlow = brokenFlow;
87178
+ }
87121
87179
  }
87122
- return false;
87180
+ context.includedLabels = /* @__PURE__ */ new Set([...includedLabels, ...context.includedLabels]);
87181
+ return bodyHasEffects;
87123
87182
  }
87124
87183
  include(context, includeChildrenRecursively) {
87125
87184
  this.included = true;
87126
- const brokenFlow = context.brokenFlow;
87185
+ const { brokenFlow, includedLabels } = context;
87186
+ context.includedLabels = /* @__PURE__ */ new Set();
87127
87187
  this.body.include(context, includeChildrenRecursively);
87128
87188
  if (includeChildrenRecursively || context.includedLabels.has(this.label.name)) {
87129
87189
  this.label.include();
87130
87190
  context.includedLabels.delete(this.label.name);
87131
87191
  context.brokenFlow = brokenFlow;
87132
87192
  }
87193
+ context.includedLabels = /* @__PURE__ */ new Set([...includedLabels, ...context.includedLabels]);
87133
87194
  }
87134
87195
  render(code, options) {
87135
87196
  if (this.label.included) {
@@ -88666,7 +88727,7 @@ var require_rollup = __commonJS({
88666
88727
  if (this.referencedEarly || variable.isReassigned || variable === this) {
88667
88728
  return [
88668
88729
  null,
88669
- `get ${name2}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
88730
+ `get ${stringifyObjectKeyIfNeeded(name2)}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
88670
88731
  ];
88671
88732
  }
88672
88733
  return [name2, variable.getName(getPropertyAccess)];
@@ -89162,7 +89223,7 @@ var require_rollup = __commonJS({
89162
89223
  this.ast.bind();
89163
89224
  }
89164
89225
  error(properties, pos) {
89165
- this.addLocationToLogProps(properties, pos);
89226
+ pos !== void 0 && this.addLocationToLogProps(properties, pos);
89166
89227
  return parseAst_js.error(properties);
89167
89228
  }
89168
89229
  // sum up the length of all ast nodes that are included
@@ -89610,7 +89671,7 @@ var require_rollup = __commonJS({
89610
89671
  const source = node.source.value;
89611
89672
  this.addSource(source, node);
89612
89673
  if (node.exported) {
89613
- const name = node.exported.name;
89674
+ const name = node.exported instanceof Literal ? node.exported.value : node.exported.name;
89614
89675
  this.assertUniqueExportName(name, node.exported.start);
89615
89676
  this.reexportDescriptions.set(name, {
89616
89677
  localName: "*",
@@ -89911,7 +89972,9 @@ var require_rollup = __commonJS({
89911
89972
  lineBreakIndent: null,
89912
89973
  name: null
89913
89974
  });
89914
- exportBlock += `Object.defineProperty(exports,${_}'${specifier.reexported}',${_}{${n2}${t}enumerable:${_}true,${n2}${t}get:${_}${left}${importName}${right}${n2}});`;
89975
+ exportBlock += `Object.defineProperty(exports,${_}${JSON.stringify(specifier.reexported)},${_}{${n2}${t}enumerable:${_}true,${n2}${t}get:${_}${left}${importName}${right}${n2}});`;
89976
+ } else if (specifier.reexported === "__proto__") {
89977
+ exportBlock += `Object.defineProperty(exports,${_}"__proto__",${_}{${n2}${t}enumerable:${_}true,${n2}${t}value:${_}${importName}${n2}});`;
89915
89978
  } else {
89916
89979
  exportBlock += `exports${getPropertyAccess(specifier.reexported)}${_}=${_}${importName};`;
89917
89980
  }
@@ -89925,7 +89988,7 @@ var require_rollup = __commonJS({
89925
89988
  if (lhs !== rhs) {
89926
89989
  if (exportBlock)
89927
89990
  exportBlock += n2;
89928
- exportBlock += `${lhs}${_}=${_}${rhs};`;
89991
+ exportBlock += exported === "__proto__" ? `Object.defineProperty(exports,${_}"__proto__",${_}{${n2}${t}enumerable:${_}true,${n2}${t}value:${_}${rhs}${n2}});` : `${lhs}${_}=${_}${rhs};`;
89929
89992
  }
89930
89993
  }
89931
89994
  for (const { name, reexports } of dependencies) {
@@ -90006,7 +90069,7 @@ var require_rollup = __commonJS({
90006
90069
  });
90007
90070
  return `Object.defineProperty(exports,${_}k,${_}{${n2}${t}${t}enumerable:${_}true,${n2}${t}${t}get:${_}${left}${name}[k]${right}${n2}${t}})`;
90008
90071
  }
90009
- return `exports[k]${_}=${_}${name}[k]`;
90072
+ return `k${_}===${_}'__proto__'${_}?${_}Object.defineProperty(exports,${_}k,${_}{${n2}${t}${t}enumerable:${_}true,${n2}${t}${t}value:${_}${name}[k]${n2}${t}})${_}:${_}exports[k]${_}=${_}${name}[k]`;
90010
90073
  };
90011
90074
  function getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, indent, snippets) {
90012
90075
  const { _, cnst, n: n2 } = snippets;
@@ -90244,7 +90307,7 @@ var require_rollup = __commonJS({
90244
90307
  if (defaultImport && importedNames.length === 0) {
90245
90308
  importBlock.push(`import ${defaultImport.local} from${_}${pathWithAssertion}`);
90246
90309
  } else if (importedNames.length > 0) {
90247
- importBlock.push(`import ${defaultImport ? `${defaultImport.local},${_}` : ""}{${_}${importedNames.map((specifier) => specifier.imported === specifier.local ? specifier.imported : `${specifier.imported} as ${specifier.local}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
90310
+ importBlock.push(`import ${defaultImport ? `${defaultImport.local},${_}` : ""}{${_}${importedNames.map((specifier) => specifier.imported === specifier.local ? specifier.imported : `${stringifyIdentifierIfNeeded(specifier.imported)} as ${specifier.local}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
90248
90311
  }
90249
90312
  }
90250
90313
  if (reexports) {
@@ -90268,11 +90331,11 @@ var require_rollup = __commonJS({
90268
90331
  importBlock.push(`import${_}*${_}as ${name} from${_}${pathWithAssertion}`);
90269
90332
  }
90270
90333
  for (const specifier of namespaceReexports) {
90271
- importBlock.push(`export${_}{${_}${name === specifier.reexported ? name : `${name} as ${specifier.reexported}`} };`);
90334
+ importBlock.push(`export${_}{${_}${name === specifier.reexported ? name : `${name} as ${stringifyIdentifierIfNeeded(specifier.reexported)}`} };`);
90272
90335
  }
90273
90336
  }
90274
90337
  if (namedReexports.length > 0) {
90275
- importBlock.push(`export${_}{${_}${namedReexports.map((specifier) => specifier.imported === specifier.reexported ? specifier.imported : `${specifier.imported} as ${specifier.reexported}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
90338
+ importBlock.push(`export${_}{${_}${namedReexports.map((specifier) => specifier.imported === specifier.reexported ? stringifyIdentifierIfNeeded(specifier.imported) : `${stringifyIdentifierIfNeeded(specifier.imported)} as ${stringifyIdentifierIfNeeded(specifier.reexported)}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
90276
90339
  }
90277
90340
  }
90278
90341
  }
@@ -90285,7 +90348,7 @@ var require_rollup = __commonJS({
90285
90348
  if (specifier.expression) {
90286
90349
  exportBlock.push(`${cnst} ${specifier.local}${_}=${_}${specifier.expression};`);
90287
90350
  }
90288
- exportDeclaration.push(specifier.exported === specifier.local ? specifier.local : `${specifier.local} as ${specifier.exported}`);
90351
+ exportDeclaration.push(specifier.exported === specifier.local ? specifier.local : `${specifier.local} as ${stringifyIdentifierIfNeeded(specifier.exported)}`);
90289
90352
  }
90290
90353
  if (exportDeclaration.length > 0) {
90291
90354
  exportBlock.push(`export${_}{${_}${exportDeclaration.join(`,${_}`)}${_}};`);
@@ -90428,18 +90491,20 @@ var require_rollup = __commonJS({
90428
90491
  }
90429
90492
  }
90430
90493
  if (reexportedNames.length > 1 || hasStarReexport) {
90431
- const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
90432
90494
  if (hasStarReexport) {
90433
90495
  if (!starExcludes) {
90434
90496
  starExcludes = getStarExcludes({ dependencies, exports: exports3 });
90435
90497
  }
90498
+ reexportedNames.unshift([null, `__proto__:${_}null`]);
90499
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
90436
90500
  setter.push(`${cnst} setter${_}=${_}${exportMapping};`, `for${_}(${cnst} name in module)${_}{`, `${t}if${_}(!_starExcludes[name])${_}setter[name]${_}=${_}module[name];`, "}", "exports(setter);");
90437
90501
  } else {
90502
+ const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
90438
90503
  setter.push(`exports(${exportMapping});`);
90439
90504
  }
90440
90505
  } else {
90441
90506
  const [key, value] = reexportedNames[0];
90442
- setter.push(`exports('${key}',${_}${value});`);
90507
+ setter.push(`exports(${JSON.stringify(key)},${_}${value});`);
90443
90508
  }
90444
90509
  }
90445
90510
  setters.push(setter.join(`${n2}${t}${t}${t}`));
@@ -90459,7 +90524,19 @@ var require_rollup = __commonJS({
90459
90524
  }
90460
90525
  return starExcludes;
90461
90526
  };
90462
- var getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n: n2 }) => starExcludes ? `${n2}${t}${cnst} _starExcludes${_}=${_}${getObject([...starExcludes].map((property) => [property, "1"]), { lineBreakIndent: { base: t, t } })};` : "";
90527
+ var getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n: n2 }) => {
90528
+ if (starExcludes) {
90529
+ const fields = [...starExcludes].map((property) => [
90530
+ property,
90531
+ "1"
90532
+ ]);
90533
+ fields.unshift([null, `__proto__:${_}null`]);
90534
+ return `${n2}${t}${cnst} _starExcludes${_}=${_}${getObject(fields, {
90535
+ lineBreakIndent: { base: t, t }
90536
+ })};`;
90537
+ }
90538
+ return "";
90539
+ };
90463
90540
  var getImportBindingsBlock = (importBindings, t, { _, n: n2 }) => importBindings.length > 0 ? `${n2}${t}var ${importBindings.join(`,${_}`)};` : "";
90464
90541
  var getHoistedExportsBlock = (exports3, t, snippets) => getExportsBlock(exports3.filter((expt) => expt.hoisted).map((expt) => ({ name: expt.exported, value: expt.local })), t, snippets);
90465
90542
  function getExportsBlock(exports3, t, { _, n: n2 }) {
@@ -90467,9 +90544,9 @@ var require_rollup = __commonJS({
90467
90544
  return "";
90468
90545
  }
90469
90546
  if (exports3.length === 1) {
90470
- return `exports('${exports3[0].name}',${_}${exports3[0].value});${n2}${n2}`;
90547
+ return `exports(${JSON.stringify(exports3[0].name)},${_}${exports3[0].value});${n2}${n2}`;
90471
90548
  }
90472
- return `exports({${n2}` + exports3.map(({ name, value }) => `${t}${name}:${_}${value}`).join(`,${n2}`) + `${n2}});${n2}${n2}`;
90549
+ return `exports({${n2}` + exports3.map(({ name, value }) => `${t}${stringifyObjectKeyIfNeeded(name)}:${_}${value}`).join(`,${n2}`) + `${n2}});${n2}${n2}`;
90473
90550
  }
90474
90551
  var getSyntheticExportsBlock = (exports3, t, snippets) => getExportsBlock(exports3.filter((expt) => expt.expression).map((expt) => ({ name: expt.exported, value: expt.local })), t, snippets);
90475
90552
  var getMissingExportsBlock = (exports3, t, snippets) => getExportsBlock(exports3.filter((expt) => expt.local === MISSING_EXPORT_SHIM_VARIABLE).map((expt) => ({ name: expt.exported, value: MISSING_EXPORT_SHIM_VARIABLE })), t, snippets);
@@ -90610,7 +90687,7 @@ ${outro}`;
90610
90687
  } else if (module3 instanceof ExternalModule && name === "default") {
90611
90688
  variable.setRenderNames(null, getSafeName([...module3.exportedVariables].some(([exportedVariable, exportedName]) => exportedName === "*" && exportedVariable.included) ? module3.suggestedVariableName + "__default" : module3.suggestedVariableName, usedNames, variable.forbiddenNames));
90612
90689
  } else {
90613
- variable.setRenderNames(null, getSafeName(name, usedNames, variable.forbiddenNames));
90690
+ variable.setRenderNames(null, getSafeName(makeLegal(name), usedNames, variable.forbiddenNames));
90614
90691
  }
90615
90692
  }
90616
90693
  for (const variable of syntheticExports) {
@@ -90682,7 +90759,7 @@ ${outro}`;
90682
90759
  nameIndex += 9 * 64 ** (exportName.length - 1);
90683
90760
  exportName = toBase64(nameIndex);
90684
90761
  }
90685
- } while (RESERVED_NAMES$1.has(exportName) || exportsByName.has(exportName));
90762
+ } while (RESERVED_NAMES.has(exportName) || exportsByName.has(exportName));
90686
90763
  }
90687
90764
  exportsByName.set(exportName, variable);
90688
90765
  exportNamesByVariable.set(variable, [exportName]);
@@ -91041,7 +91118,7 @@ ${outro}`;
91041
91118
  const [pattern, patternName] = preserveModules || this.facadeModule?.isUserDefinedEntryPoint ? [entryFileNames, "output.entryFileNames"] : [chunkFileNames, "output.chunkFileNames"];
91042
91119
  fileName = renderNamePattern(typeof pattern === "function" ? pattern(this.getPreRenderedChunkInfo()) : pattern, patternName, {
91043
91120
  format: () => format2,
91044
- hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size)),
91121
+ hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size || DEFAULT_HASH_SIZE)),
91045
91122
  name: () => this.getChunkName()
91046
91123
  });
91047
91124
  if (!hashPlaceholder) {
@@ -91067,7 +91144,7 @@ ${outro}`;
91067
91144
  sourcemapFileName = renderNamePattern(typeof pattern === "function" ? pattern(this.getPreRenderedChunkInfo()) : pattern, patternName, {
91068
91145
  chunkhash: () => this.getPreliminaryFileName().hashPlaceholder || "",
91069
91146
  format: () => format2,
91070
- hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size)),
91147
+ hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size || DEFAULT_HASH_SIZE)),
91071
91148
  name: () => this.getChunkName()
91072
91149
  });
91073
91150
  if (!hashPlaceholder) {
@@ -91783,9 +91860,12 @@ ${outro}`;
91783
91860
  function getChunkAssignments(entries, manualChunkAliasByEntry, minChunkSize, log) {
91784
91861
  const { chunkDefinitions, modulesInManualChunks } = getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry);
91785
91862
  const { allEntries, dependentEntriesByModule, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry } = analyzeModuleGraph(entries);
91786
- const initialChunks = getChunksFromDependentEntries(getModulesWithDependentEntries(dependentEntriesByModule, modulesInManualChunks));
91787
- removeUnnecessaryDependentEntries(initialChunks, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries);
91788
- chunkDefinitions.push(...getOptimizedChunks(getChunksFromDependentEntries(initialChunks), allEntries.length, minChunkSize, log).map(({ modules }) => ({
91863
+ const chunkAtoms = getChunksWithSameDependentEntries(getModulesWithDependentEntries(dependentEntriesByModule, modulesInManualChunks));
91864
+ const staticDependencyAtomsByEntry = getStaticDependencyAtomsByEntry(allEntries, chunkAtoms);
91865
+ const alreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries);
91866
+ removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry);
91867
+ const { chunks, sideEffectAtoms, sizeByAtom } = getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize);
91868
+ chunkDefinitions.push(...getOptimizedChunks(chunks, minChunkSize, sideEffectAtoms, sizeByAtom, log).map(({ modules }) => ({
91789
91869
  alias: null,
91790
91870
  modules
91791
91871
  })));
@@ -91892,7 +91972,7 @@ ${outro}`;
91892
91972
  }
91893
91973
  return dynamicallyDependentEntriesByDynamicEntry;
91894
91974
  }
91895
- function getChunksFromDependentEntries(modulesWithDependentEntries) {
91975
+ function getChunksWithSameDependentEntries(modulesWithDependentEntries) {
91896
91976
  const chunkModules = /* @__PURE__ */ Object.create(null);
91897
91977
  for (const { dependentEntries, modules } of modulesWithDependentEntries) {
91898
91978
  let chunkSignature = 0n;
@@ -91913,107 +91993,162 @@ ${outro}`;
91913
91993
  }
91914
91994
  }
91915
91995
  }
91916
- function removeUnnecessaryDependentEntries(chunks, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries) {
91917
- const staticDependenciesPerEntry = allEntries.map(() => 0n);
91918
- const alreadyLoadedChunksPerEntry = allEntries.map((_entry, entryIndex) => dynamicallyDependentEntriesByDynamicEntry.has(entryIndex) ? -1n : 0n);
91919
- let chunkMask = 1n;
91920
- for (const { dependentEntries } of chunks) {
91996
+ function getStaticDependencyAtomsByEntry(allEntries, chunkAtoms) {
91997
+ const staticDependencyAtomsByEntry = allEntries.map(() => 0n);
91998
+ let atomMask = 1n;
91999
+ for (const { dependentEntries } of chunkAtoms) {
91921
92000
  for (const entryIndex of dependentEntries) {
91922
- staticDependenciesPerEntry[entryIndex] |= chunkMask;
92001
+ staticDependencyAtomsByEntry[entryIndex] |= atomMask;
91923
92002
  }
91924
- chunkMask <<= 1n;
92003
+ atomMask <<= 1n;
91925
92004
  }
91926
- const updatedDynamicallyDependentEntriesByDynamicEntry = dynamicallyDependentEntriesByDynamicEntry;
91927
- for (const [dynamicEntryIndex, updatedDynamicallyDependentEntries] of updatedDynamicallyDependentEntriesByDynamicEntry) {
91928
- updatedDynamicallyDependentEntriesByDynamicEntry.delete(dynamicEntryIndex);
91929
- const previousLoadedModules = alreadyLoadedChunksPerEntry[dynamicEntryIndex];
91930
- let newLoadedModules = previousLoadedModules;
91931
- for (const entryIndex of updatedDynamicallyDependentEntries) {
91932
- newLoadedModules &= staticDependenciesPerEntry[entryIndex] | alreadyLoadedChunksPerEntry[entryIndex];
92005
+ return staticDependencyAtomsByEntry;
92006
+ }
92007
+ function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries) {
92008
+ const alreadyLoadedAtomsByEntry = allEntries.map((_entry, entryIndex) => dynamicallyDependentEntriesByDynamicEntry.has(entryIndex) ? -1n : 0n);
92009
+ for (const [dynamicEntryIndex, dynamicallyDependentEntries] of dynamicallyDependentEntriesByDynamicEntry) {
92010
+ dynamicallyDependentEntriesByDynamicEntry.delete(dynamicEntryIndex);
92011
+ const knownLoadedAtoms = alreadyLoadedAtomsByEntry[dynamicEntryIndex];
92012
+ let updatedLoadedAtoms = knownLoadedAtoms;
92013
+ for (const entryIndex of dynamicallyDependentEntries) {
92014
+ updatedLoadedAtoms &= staticDependencyAtomsByEntry[entryIndex] | alreadyLoadedAtomsByEntry[entryIndex];
91933
92015
  }
91934
- if (newLoadedModules !== previousLoadedModules) {
91935
- alreadyLoadedChunksPerEntry[dynamicEntryIndex] = newLoadedModules;
92016
+ if (updatedLoadedAtoms !== knownLoadedAtoms) {
92017
+ alreadyLoadedAtomsByEntry[dynamicEntryIndex] = updatedLoadedAtoms;
91936
92018
  for (const dynamicImport of dynamicImportsByEntry[dynamicEntryIndex]) {
91937
- getOrCreate(updatedDynamicallyDependentEntriesByDynamicEntry, dynamicImport, getNewSet).add(dynamicEntryIndex);
92019
+ getOrCreate(dynamicallyDependentEntriesByDynamicEntry, dynamicImport, getNewSet).add(dynamicEntryIndex);
91938
92020
  }
91939
92021
  }
91940
92022
  }
91941
- chunkMask = 1n;
91942
- for (const { dependentEntries } of chunks) {
92023
+ return alreadyLoadedAtomsByEntry;
92024
+ }
92025
+ function removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry) {
92026
+ let chunkMask = 1n;
92027
+ for (const { dependentEntries } of chunkAtoms) {
91943
92028
  for (const entryIndex of dependentEntries) {
91944
- if ((alreadyLoadedChunksPerEntry[entryIndex] & chunkMask) === chunkMask) {
92029
+ if ((alreadyLoadedAtomsByEntry[entryIndex] & chunkMask) === chunkMask) {
91945
92030
  dependentEntries.delete(entryIndex);
91946
92031
  }
91947
92032
  }
91948
92033
  chunkMask <<= 1n;
91949
92034
  }
91950
92035
  }
91951
- function getOptimizedChunks(initialChunks, numberOfEntries, minChunkSize, log) {
91952
- timeStart("optimize chunks", 3);
91953
- const chunkPartition = getPartitionedChunks(initialChunks, numberOfEntries, minChunkSize);
91954
- if (!chunkPartition) {
91955
- timeEnd("optimize chunks", 3);
91956
- return initialChunks;
91957
- }
91958
- minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(initialChunks.length, chunkPartition.small.size, "Initially"));
91959
- mergeChunks(chunkPartition, minChunkSize);
91960
- minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunkPartition.small.size + chunkPartition.big.size, chunkPartition.small.size, "After merging chunks"));
91961
- timeEnd("optimize chunks", 3);
91962
- return [...chunkPartition.small, ...chunkPartition.big];
91963
- }
91964
- function getPartitionedChunks(initialChunks, numberOfEntries, minChunkSize) {
91965
- const smallChunks = [];
91966
- const bigChunks = [];
92036
+ function getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize) {
92037
+ const chunksBySignature = /* @__PURE__ */ Object.create(null);
91967
92038
  const chunkByModule = /* @__PURE__ */ new Map();
91968
92039
  const sizeByAtom = [];
91969
92040
  let sideEffectAtoms = 0n;
91970
- let containedAtoms = 1n;
91971
- for (const { dependentEntries, modules } of initialChunks) {
91972
- const chunkDescription = {
91973
- containedAtoms,
91974
- correlatedAtoms: 0n,
92041
+ let atomMask = 1n;
92042
+ for (const { dependentEntries, modules } of chunkAtoms) {
92043
+ let chunkSignature = 0n;
92044
+ let correlatedAtoms = -1n;
92045
+ for (const entryIndex of dependentEntries) {
92046
+ chunkSignature |= 1n << BigInt(entryIndex);
92047
+ correlatedAtoms &= staticDependencyAtomsByEntry[entryIndex] | alreadyLoadedAtomsByEntry[entryIndex];
92048
+ }
92049
+ const chunk = chunksBySignature[String(chunkSignature)] ||= {
92050
+ containedAtoms: 0n,
92051
+ correlatedAtoms,
91975
92052
  dependencies: /* @__PURE__ */ new Set(),
91976
92053
  dependentChunks: /* @__PURE__ */ new Set(),
91977
- dependentEntries,
91978
- modules,
92054
+ dependentEntries: new Set(dependentEntries),
92055
+ modules: [],
91979
92056
  pure: true,
91980
92057
  size: 0
91981
92058
  };
91982
- let size = 0;
92059
+ let atomSize = 0;
91983
92060
  let pure = true;
91984
92061
  for (const module3 of modules) {
91985
- chunkByModule.set(module3, chunkDescription);
92062
+ chunkByModule.set(module3, chunk);
91986
92063
  if (module3.isIncluded()) {
91987
92064
  pure &&= !module3.hasEffects();
91988
- size += minChunkSize > 1 ? module3.estimateSize() : 1;
92065
+ atomSize += minChunkSize > 1 ? module3.estimateSize() : 1;
91989
92066
  }
91990
92067
  }
91991
- chunkDescription.pure = pure;
91992
- chunkDescription.size = size;
91993
- sizeByAtom.push(size);
91994
92068
  if (!pure) {
91995
- sideEffectAtoms |= containedAtoms;
92069
+ sideEffectAtoms |= atomMask;
92070
+ }
92071
+ sizeByAtom.push(atomSize);
92072
+ chunk.containedAtoms |= atomMask;
92073
+ chunk.modules.push(...modules);
92074
+ chunk.pure &&= pure;
92075
+ chunk.size += atomSize;
92076
+ atomMask <<= 1n;
92077
+ }
92078
+ const chunks = Object.values(chunksBySignature);
92079
+ sideEffectAtoms |= addChunkDependenciesAndGetExternalSideEffectAtoms(chunks, chunkByModule, atomMask);
92080
+ return { chunks, sideEffectAtoms, sizeByAtom };
92081
+ }
92082
+ function addChunkDependenciesAndGetExternalSideEffectAtoms(chunks, chunkByModule, nextAvailableAtomMask) {
92083
+ const signatureByExternalModule = /* @__PURE__ */ new Map();
92084
+ let externalSideEffectAtoms = 0n;
92085
+ for (const chunk of chunks) {
92086
+ const { dependencies, modules } = chunk;
92087
+ for (const module3 of modules) {
92088
+ for (const dependency of module3.getDependenciesToBeIncluded()) {
92089
+ if (dependency instanceof ExternalModule) {
92090
+ if (dependency.info.moduleSideEffects) {
92091
+ const signature = getOrCreate(signatureByExternalModule, dependency, () => {
92092
+ const signature2 = nextAvailableAtomMask;
92093
+ nextAvailableAtomMask <<= 1n;
92094
+ externalSideEffectAtoms |= signature2;
92095
+ return signature2;
92096
+ });
92097
+ chunk.containedAtoms |= signature;
92098
+ chunk.correlatedAtoms |= signature;
92099
+ }
92100
+ } else {
92101
+ const dependencyChunk = chunkByModule.get(dependency);
92102
+ if (dependencyChunk && dependencyChunk !== chunk) {
92103
+ dependencies.add(dependencyChunk);
92104
+ dependencyChunk.dependentChunks.add(chunk);
92105
+ }
92106
+ }
92107
+ }
91996
92108
  }
91997
- (size < minChunkSize ? smallChunks : bigChunks).push(chunkDescription);
91998
- containedAtoms <<= 1n;
92109
+ }
92110
+ return externalSideEffectAtoms;
92111
+ }
92112
+ function getOptimizedChunks(chunks, minChunkSize, sideEffectAtoms, sizeByAtom, log) {
92113
+ timeStart("optimize chunks", 3);
92114
+ const chunkPartition = getPartitionedChunks(chunks, minChunkSize);
92115
+ if (!chunkPartition) {
92116
+ timeEnd("optimize chunks", 3);
92117
+ return chunks;
92118
+ }
92119
+ minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunks.length, chunkPartition.small.size, "Initially"));
92120
+ mergeChunks(chunkPartition, minChunkSize, sideEffectAtoms, sizeByAtom);
92121
+ minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunkPartition.small.size + chunkPartition.big.size, chunkPartition.small.size, "After merging chunks"));
92122
+ timeEnd("optimize chunks", 3);
92123
+ return [...chunkPartition.small, ...chunkPartition.big];
92124
+ }
92125
+ function getPartitionedChunks(chunks, minChunkSize) {
92126
+ const smallChunks = [];
92127
+ const bigChunks = [];
92128
+ for (const chunk of chunks) {
92129
+ (chunk.size < minChunkSize ? smallChunks : bigChunks).push(chunk);
91999
92130
  }
92000
92131
  if (smallChunks.length === 0) {
92001
92132
  return null;
92002
92133
  }
92003
- sideEffectAtoms |= addChunkDependenciesAndAtomsAndGetSideEffectAtoms([bigChunks, smallChunks], chunkByModule, numberOfEntries, containedAtoms);
92134
+ smallChunks.sort(compareChunkSize);
92135
+ bigChunks.sort(compareChunkSize);
92004
92136
  return {
92005
92137
  big: new Set(bigChunks),
92006
- sideEffectAtoms,
92007
- sizeByAtom,
92008
92138
  small: new Set(smallChunks)
92009
92139
  };
92010
92140
  }
92011
- function mergeChunks(chunkPartition, minChunkSize) {
92141
+ function compareChunkSize({ size: sizeA }, { size: sizeB }) {
92142
+ return sizeA - sizeB;
92143
+ }
92144
+ function mergeChunks(chunkPartition, minChunkSize, sideEffectAtoms, sizeByAtom) {
92012
92145
  const { small } = chunkPartition;
92013
92146
  for (const mergedChunk of small) {
92014
92147
  const bestTargetChunk = findBestMergeTarget(
92015
92148
  mergedChunk,
92016
92149
  chunkPartition,
92150
+ sideEffectAtoms,
92151
+ sizeByAtom,
92017
92152
  // In the default case, we do not accept size increases
92018
92153
  minChunkSize <= 1 ? 1 : Infinity
92019
92154
  );
@@ -92046,55 +92181,7 @@ ${outro}`;
92046
92181
  }
92047
92182
  }
92048
92183
  }
92049
- function addChunkDependenciesAndAtomsAndGetSideEffectAtoms(chunkLists, chunkByModule, numberOfEntries, nextAtomSignature) {
92050
- const signatureByExternalModule = /* @__PURE__ */ new Map();
92051
- let sideEffectAtoms = 0n;
92052
- const atomsByEntry = [];
92053
- for (let index = 0; index < numberOfEntries; index++) {
92054
- atomsByEntry.push(0n);
92055
- }
92056
- for (const chunks of chunkLists) {
92057
- chunks.sort(compareChunkSize);
92058
- for (const chunk of chunks) {
92059
- const { dependencies, dependentEntries, modules } = chunk;
92060
- for (const module3 of modules) {
92061
- for (const dependency of module3.getDependenciesToBeIncluded()) {
92062
- if (dependency instanceof ExternalModule) {
92063
- if (dependency.info.moduleSideEffects) {
92064
- chunk.containedAtoms |= getOrCreate(signatureByExternalModule, dependency, () => {
92065
- const signature = nextAtomSignature;
92066
- nextAtomSignature <<= 1n;
92067
- sideEffectAtoms |= signature;
92068
- return signature;
92069
- });
92070
- }
92071
- } else {
92072
- const dependencyChunk = chunkByModule.get(dependency);
92073
- if (dependencyChunk && dependencyChunk !== chunk) {
92074
- dependencies.add(dependencyChunk);
92075
- dependencyChunk.dependentChunks.add(chunk);
92076
- }
92077
- }
92078
- }
92079
- }
92080
- const { containedAtoms } = chunk;
92081
- for (const entryIndex of dependentEntries) {
92082
- atomsByEntry[entryIndex] |= containedAtoms;
92083
- }
92084
- }
92085
- }
92086
- for (const chunks of chunkLists) {
92087
- for (const chunk of chunks) {
92088
- const { dependentEntries } = chunk;
92089
- chunk.correlatedAtoms = -1n;
92090
- for (const entryIndex of dependentEntries) {
92091
- chunk.correlatedAtoms &= atomsByEntry[entryIndex];
92092
- }
92093
- }
92094
- }
92095
- return sideEffectAtoms;
92096
- }
92097
- function findBestMergeTarget(mergedChunk, { big, sideEffectAtoms, sizeByAtom, small }, smallestAdditionalSize) {
92184
+ function findBestMergeTarget(mergedChunk, { big, small }, sideEffectAtoms, sizeByAtom, smallestAdditionalSize) {
92098
92185
  let bestTargetChunk = null;
92099
92186
  for (const targetChunk of concatLazy([small, big])) {
92100
92187
  if (mergedChunk === targetChunk)
@@ -92109,12 +92196,6 @@ ${outro}`;
92109
92196
  }
92110
92197
  return bestTargetChunk;
92111
92198
  }
92112
- function getChunksInPartition(chunk, minChunkSize, chunkPartition) {
92113
- return chunk.size < minChunkSize ? chunkPartition.small : chunkPartition.big;
92114
- }
92115
- function compareChunkSize({ size: sizeA }, { size: sizeB }) {
92116
- return sizeA - sizeB;
92117
- }
92118
92199
  function getAdditionalSizeAfterMerge(mergedChunk, targetChunk, currentAdditionalSize, sideEffectAtoms, sizeByAtom) {
92119
92200
  const firstSize = getAdditionalSizeIfNoTransitiveDependencyOrNonCorrelatedSideEffect(mergedChunk, targetChunk, currentAdditionalSize, sideEffectAtoms, sizeByAtom);
92120
92201
  return firstSize < currentAdditionalSize ? firstSize + getAdditionalSizeIfNoTransitiveDependencyOrNonCorrelatedSideEffect(targetChunk, mergedChunk, currentAdditionalSize - firstSize, sideEffectAtoms, sizeByAtom) : Infinity;
@@ -92158,15 +92239,18 @@ ${outro}`;
92158
92239
  }
92159
92240
  return size;
92160
92241
  }
92242
+ function getChunksInPartition(chunk, minChunkSize, chunkPartition) {
92243
+ return chunk.size < minChunkSize ? chunkPartition.small : chunkPartition.big;
92244
+ }
92161
92245
  function commondir(files) {
92162
92246
  if (files.length === 0)
92163
92247
  return "/";
92164
92248
  if (files.length === 1)
92165
92249
  return node_path.dirname(files[0]);
92166
92250
  const commonSegments = files.slice(1).reduce((commonSegments2, file) => {
92167
- const pathSegements = file.split(/\/+|\\+/);
92251
+ const pathSegments = file.split(/\/+|\\+/);
92168
92252
  let index;
92169
- for (index = 0; commonSegments2[index] === pathSegements[index] && index < Math.min(commonSegments2.length, pathSegements.length); index++)
92253
+ for (index = 0; commonSegments2[index] === pathSegments[index] && index < Math.min(commonSegments2.length, pathSegments.length); index++)
92170
92254
  ;
92171
92255
  return commonSegments2.slice(0, index);
92172
92256
  }, files[0].split(/\/+|\\+/));
@@ -92252,7 +92336,7 @@ ${outro}`;
92252
92336
  })}${arrowFunctions ? lineBreakIndent ? `${n2}${lineBreakIndent.base}${lineBreakIndent.t}` : "" : `{${lineBreakIndent ? `${n2}${lineBreakIndent.base}${lineBreakIndent.t}` : _}${functionReturn ? "return " : ""}`}`,
92253
92337
  arrowFunctions ? `${name ? ";" : ""}${lineBreakIndent ? `${n2}${lineBreakIndent.base}` : ""}` : `${s}${lineBreakIndent ? `${n2}${lineBreakIndent.base}` : _}}`
92254
92338
  ];
92255
- const isValidPropertyName = reservedNamesAsProps ? (name) => validPropertyName.test(name) : (name) => !RESERVED_NAMES$1.has(name) && validPropertyName.test(name);
92339
+ const isValidPropertyName = reservedNamesAsProps ? (name) => VALID_IDENTIFIER_REGEXP.test(name) : (name) => !RESERVED_NAMES.has(name) && VALID_IDENTIFIER_REGEXP.test(name);
92256
92340
  return {
92257
92341
  _,
92258
92342
  cnst,
@@ -92272,8 +92356,8 @@ ${outro}`;
92272
92356
  return `{${fields.map(([key, value]) => {
92273
92357
  if (key === null)
92274
92358
  return `${prefix}${value}`;
92275
- const needsQuotes = !isValidPropertyName(key);
92276
- return key === value && objectShorthand && !needsQuotes ? prefix + key : `${prefix}${needsQuotes ? `'${key}'` : key}:${_}${value}`;
92359
+ const keyInObject = stringifyObjectKeyIfNeeded(key);
92360
+ return key === value && objectShorthand && key === keyInObject ? prefix + key : `${prefix}${keyInObject}:${_}${value}`;
92277
92361
  }).join(`,`)}${fields.length === 0 ? "" : lineBreakIndent ? `${n2}${lineBreakIndent.base}` : _}}`;
92278
92362
  },
92279
92363
  getPropertyAccess: (name) => isValidPropertyName(name) ? `.${name}` : `[${JSON.stringify(name)}]`,
@@ -92282,7 +92366,6 @@ ${outro}`;
92282
92366
  };
92283
92367
  }
92284
92368
  var wrapIfNeeded = (code, needsParens) => needsParens ? `(${code})` : code;
92285
- var validPropertyName = /^(?!\d)[\w$]+$/;
92286
92369
  var Source = class {
92287
92370
  constructor(filename, content) {
92288
92371
  this.isOriginal = true;
@@ -92430,9 +92513,10 @@ ${outro}`;
92430
92513
  const renderedChunks = await Promise.all(chunks.map((chunk) => chunk.render()));
92431
92514
  timeEnd("render chunks", 2);
92432
92515
  timeStart("transform chunks", 2);
92516
+ const getHash = hasherByType[outputOptions.hashCharacters];
92433
92517
  const chunkGraph = getChunkGraph(chunks);
92434
- const { initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log);
92435
- const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle);
92518
+ const { initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log);
92519
+ const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle, getHash);
92436
92520
  addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bundle, nonHashedChunksWithPlaceholders, pluginDriver, outputOptions);
92437
92521
  timeEnd("transform chunks", 2);
92438
92522
  }
@@ -92510,7 +92594,7 @@ ${outro}`;
92510
92594
  map
92511
92595
  };
92512
92596
  }
92513
- async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log) {
92597
+ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log) {
92514
92598
  const nonHashedChunksWithPlaceholders = [];
92515
92599
  const renderedChunksByPlaceholder = /* @__PURE__ */ new Map();
92516
92600
  const hashDependenciesByPlaceholder = /* @__PURE__ */ new Map();
@@ -92543,14 +92627,14 @@ ${outro}`;
92543
92627
  renderedChunksByPlaceholder.set(hashPlaceholder, transformedChunk);
92544
92628
  hashDependenciesByPlaceholder.set(hashPlaceholder, {
92545
92629
  containedPlaceholders,
92546
- contentHash: getXxhash(contentToHash)
92630
+ contentHash: getHash(contentToHash)
92547
92631
  });
92548
92632
  } else {
92549
92633
  nonHashedChunksWithPlaceholders.push(transformedChunk);
92550
92634
  }
92551
92635
  const sourcemapHashPlaceholder = preliminarySourcemapFileName?.hashPlaceholder;
92552
92636
  if (map && sourcemapHashPlaceholder) {
92553
- initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder, getXxhash(map.toString()).slice(0, preliminarySourcemapFileName.hashPlaceholder.length));
92637
+ initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder, getHash(map.toString()).slice(0, preliminarySourcemapFileName.hashPlaceholder.length));
92554
92638
  }
92555
92639
  }));
92556
92640
  return {
@@ -92560,7 +92644,7 @@ ${outro}`;
92560
92644
  renderedChunksByPlaceholder
92561
92645
  };
92562
92646
  }
92563
- function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle) {
92647
+ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle, getHash) {
92564
92648
  const hashesByPlaceholder = new Map(initialHashesByPlaceholder);
92565
92649
  for (const [placeholder, { fileName }] of renderedChunksByPlaceholder) {
92566
92650
  let contentToHash = "";
@@ -92578,7 +92662,7 @@ ${outro}`;
92578
92662
  if (finalHash) {
92579
92663
  contentToHash = finalHash;
92580
92664
  }
92581
- finalHash = getXxhash(contentToHash).slice(0, placeholder.length);
92665
+ finalHash = getHash(contentToHash).slice(0, placeholder.length);
92582
92666
  finalFileName = replaceSinglePlaceholder(fileName, placeholder, finalHash);
92583
92667
  } while (bundle[lowercaseBundleKeys].has(finalFileName.toLowerCase()));
92584
92668
  bundle[finalFileName] = FILE_PLACEHOLDER;
@@ -93802,6 +93886,7 @@ ${outro}`;
93802
93886
  freeze: config.freeze ?? true,
93803
93887
  generatedCode,
93804
93888
  globals: config.globals || {},
93889
+ hashCharacters: config.hashCharacters ?? "base64",
93805
93890
  hoistTransitiveImports: config.hoistTransitiveImports ?? true,
93806
93891
  indent: getIndent(config, compact),
93807
93892
  inlineDynamicImports,
@@ -94078,7 +94163,9 @@ ${outro}`;
94078
94163
  return parseAst_js.error(parseAst_js.logAlreadyClosed());
94079
94164
  return handleGenerateWrite(false, inputOptions, unsetInputOptions, rawOutputOptions, graph);
94080
94165
  },
94081
- watchFiles: Object.keys(graph.watchFiles),
94166
+ get watchFiles() {
94167
+ return Object.keys(graph.watchFiles);
94168
+ },
94082
94169
  async write(rawOutputOptions) {
94083
94170
  if (result.closed)
94084
94171
  return parseAst_js.error(parseAst_js.logAlreadyClosed());
@@ -94219,9 +94306,9 @@ ${outro}`;
94219
94306
  }
94220
94307
  });
94221
94308
 
94222
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/fsevents-importer.js
94309
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/fsevents-importer.js
94223
94310
  var require_fsevents_importer = __commonJS({
94224
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/fsevents-importer.js"(exports2) {
94311
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/fsevents-importer.js"(exports2) {
94225
94312
  "use strict";
94226
94313
  var fsEvents;
94227
94314
  var fsEventsImportError;
@@ -94247,9 +94334,9 @@ var require_fsevents_importer = __commonJS({
94247
94334
  }
94248
94335
  });
94249
94336
 
94250
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/index.js
94337
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/index.js
94251
94338
  var require_shared = __commonJS({
94252
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/index.js"(exports2) {
94339
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/index.js"(exports2) {
94253
94340
  "use strict";
94254
94341
  var rollup = require_rollup();
94255
94342
  var require$$0$1 = require("fs");
@@ -96059,6 +96146,7 @@ var require_shared = __commonJS({
96059
96146
  exports3.FSEVENT_MOVED = "moved";
96060
96147
  exports3.FSEVENT_CLONED = "cloned";
96061
96148
  exports3.FSEVENT_UNKNOWN = "unknown";
96149
+ exports3.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1;
96062
96150
  exports3.FSEVENT_TYPE_FILE = "file";
96063
96151
  exports3.FSEVENT_TYPE_DIRECTORY = "directory";
96064
96152
  exports3.FSEVENT_TYPE_SYMLINK = "symlink";
@@ -96629,6 +96717,7 @@ var require_shared = __commonJS({
96629
96717
  FSEVENT_MOVED,
96630
96718
  // FSEVENT_CLONED,
96631
96719
  FSEVENT_UNKNOWN,
96720
+ FSEVENT_FLAG_MUST_SCAN_SUBDIRS,
96632
96721
  FSEVENT_TYPE_FILE,
96633
96722
  FSEVENT_TYPE_DIRECTORY,
96634
96723
  FSEVENT_TYPE_SYMLINK,
@@ -96693,6 +96782,8 @@ var require_shared = __commonJS({
96693
96782
  watcher: createFSEventsInstance(watchPath, (fullPath, flags) => {
96694
96783
  if (!cont.listeners.size)
96695
96784
  return;
96785
+ if (flags & FSEVENT_FLAG_MUST_SCAN_SUBDIRS)
96786
+ return;
96696
96787
  const info = fsevents.getInfo(fullPath, flags);
96697
96788
  cont.listeners.forEach((list) => {
96698
96789
  list(fullPath, flags, info);
@@ -97356,7 +97447,7 @@ var require_shared = __commonJS({
97356
97447
  if (!this._readyCount)
97357
97448
  this._readyCount = paths.length;
97358
97449
  if (this.options.persistent)
97359
- this._readyCount *= 2;
97450
+ this._readyCount += paths.length;
97360
97451
  paths.forEach((path4) => this._fsEventsHandler._addToFsEvents(path4));
97361
97452
  } else {
97362
97453
  if (!this._readyCount)
@@ -97810,9 +97901,9 @@ var require_shared = __commonJS({
97810
97901
  }
97811
97902
  });
97812
97903
 
97813
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/watch.js
97904
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/watch.js
97814
97905
  var require_watch = __commonJS({
97815
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/watch.js"(exports2) {
97906
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/watch.js"(exports2) {
97816
97907
  "use strict";
97817
97908
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
97818
97909
  var node_path = require("node:path");
@@ -98043,7 +98134,13 @@ var require_watch = __commonJS({
98043
98134
  return;
98044
98135
  }
98045
98136
  this.updateWatchedFiles(result);
98046
- this.skipWrite || await Promise.all(this.outputs.map((output) => result.write(output)));
98137
+ if (!this.skipWrite) {
98138
+ await Promise.all(this.outputs.map((output) => result.write(output)));
98139
+ if (this.closed) {
98140
+ return;
98141
+ }
98142
+ this.updateWatchedFiles(result);
98143
+ }
98047
98144
  await this.watcher.emitter.emit("event", {
98048
98145
  code: "BUNDLE_END",
98049
98146
  duration: Date.now() - start,
@@ -98103,13 +98200,21 @@ var require_watch = __commonJS({
98103
98200
  }
98104
98201
  });
98105
98202
 
98106
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/watch-proxy.js
98107
- var require_watch_proxy = __commonJS({
98108
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/shared/watch-proxy.js"(exports2) {
98203
+ // node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/rollup.js
98204
+ var require_rollup2 = __commonJS({
98205
+ "node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/rollup.js"(exports2) {
98109
98206
  "use strict";
98207
+ Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
98110
98208
  var rollup = require_rollup();
98111
98209
  var parseAst_js = require_parseAst();
98112
98210
  var fseventsImporter = require_fsevents_importer();
98211
+ require("node:process");
98212
+ require("tty");
98213
+ require("node:path");
98214
+ require("path");
98215
+ require("node:perf_hooks");
98216
+ require_native();
98217
+ require("node:fs/promises");
98113
98218
  var WatchEmitter = class {
98114
98219
  constructor() {
98115
98220
  this.currentHandlers = /* @__PURE__ */ Object.create(null);
@@ -98177,30 +98282,10 @@ var require_watch_proxy = __commonJS({
98177
98282
  const { Watcher } = await Promise.resolve().then(() => require_watch());
98178
98283
  new Watcher(watchOptionsList, emitter);
98179
98284
  }
98180
- exports2.watch = watch;
98181
- }
98182
- });
98183
-
98184
- // node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/rollup.js
98185
- var require_rollup2 = __commonJS({
98186
- "node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/rollup.js"(exports2) {
98187
- "use strict";
98188
- Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
98189
- var rollup = require_rollup();
98190
- var watchProxy = require_watch_proxy();
98191
- require_parseAst();
98192
- require_native();
98193
- require("node:path");
98194
- require("node:process");
98195
- require("tty");
98196
- require("path");
98197
- require("node:perf_hooks");
98198
- require("node:fs/promises");
98199
- require_fsevents_importer();
98200
98285
  exports2.VERSION = rollup.version;
98201
98286
  exports2.defineConfig = rollup.defineConfig;
98202
98287
  exports2.rollup = rollup.rollup;
98203
- exports2.watch = watchProxy.watch;
98288
+ exports2.watch = watch;
98204
98289
  }
98205
98290
  });
98206
98291
 
@@ -140651,8 +140736,8 @@ run-parallel/index.js:
140651
140736
  rollup/dist/shared/parseAst.js:
140652
140737
  (*
140653
140738
  @license
140654
- Rollup.js v4.5.2
140655
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
140739
+ Rollup.js v4.10.0
140740
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
140656
140741
 
140657
140742
  https://github.com/rollup/rollup
140658
140743
 
@@ -140662,8 +140747,8 @@ rollup/dist/shared/parseAst.js:
140662
140747
  rollup/dist/shared/rollup.js:
140663
140748
  (*
140664
140749
  @license
140665
- Rollup.js v4.5.2
140666
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
140750
+ Rollup.js v4.10.0
140751
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
140667
140752
 
140668
140753
  https://github.com/rollup/rollup
140669
140754
 
@@ -140673,8 +140758,8 @@ rollup/dist/shared/rollup.js:
140673
140758
  rollup/dist/shared/fsevents-importer.js:
140674
140759
  (*
140675
140760
  @license
140676
- Rollup.js v4.5.2
140677
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
140761
+ Rollup.js v4.10.0
140762
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
140678
140763
 
140679
140764
  https://github.com/rollup/rollup
140680
140765
 
@@ -140684,8 +140769,8 @@ rollup/dist/shared/fsevents-importer.js:
140684
140769
  rollup/dist/shared/index.js:
140685
140770
  (*
140686
140771
  @license
140687
- Rollup.js v4.5.2
140688
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
140772
+ Rollup.js v4.10.0
140773
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
140689
140774
 
140690
140775
  https://github.com/rollup/rollup
140691
140776
 
@@ -140731,19 +140816,8 @@ rollup/dist/shared/index.js:
140731
140816
  rollup/dist/shared/watch.js:
140732
140817
  (*
140733
140818
  @license
140734
- Rollup.js v4.5.2
140735
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
140736
-
140737
- https://github.com/rollup/rollup
140738
-
140739
- Released under the MIT License.
140740
- *)
140741
-
140742
- rollup/dist/shared/watch-proxy.js:
140743
- (*
140744
- @license
140745
- Rollup.js v4.5.2
140746
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
140819
+ Rollup.js v4.10.0
140820
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
140747
140821
 
140748
140822
  https://github.com/rollup/rollup
140749
140823
 
@@ -140753,8 +140827,8 @@ rollup/dist/shared/watch-proxy.js:
140753
140827
  rollup/dist/rollup.js:
140754
140828
  (*
140755
140829
  @license
140756
- Rollup.js v4.5.2
140757
- Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
140830
+ Rollup.js v4.10.0
140831
+ Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
140758
140832
 
140759
140833
  https://github.com/rollup/rollup
140760
140834