@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/CHANGELOG.md +2 -0
- package/index.js +694 -620
- package/meta.json +1 -1
- package/package.json +2 -2
- package/src/executors/tsup/executor.js +694 -620
- package/src/executors/tsup-browser/executor.js +694 -620
- package/src/executors/tsup-neutral/executor.js +694 -620
- package/src/executors/tsup-node/executor.js +694 -620
- package/src/utils/index.js +694 -620
package/src/utils/index.js
CHANGED
|
@@ -84565,9 +84565,9 @@ var require_source_map = __commonJS({
|
|
|
84565
84565
|
}
|
|
84566
84566
|
});
|
|
84567
84567
|
|
|
84568
|
-
// node_modules/.pnpm/rollup@4.
|
|
84568
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js
|
|
84569
84569
|
var require_native = __commonJS({
|
|
84570
|
-
"node_modules/.pnpm/rollup@4.
|
|
84570
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/native.js"(exports2, module2) {
|
|
84571
84571
|
var { existsSync: existsSync3 } = require("node:fs");
|
|
84572
84572
|
var { join: join3 } = require("node:path");
|
|
84573
84573
|
var { platform, arch, report } = require("node:process");
|
|
@@ -84584,6 +84584,7 @@ var require_native = __commonJS({
|
|
|
84584
84584
|
linux: {
|
|
84585
84585
|
arm: { base: "linux-arm-gnueabihf", musl: null },
|
|
84586
84586
|
arm64: { base: "linux-arm64-gnu", musl: "linux-arm64-musl" },
|
|
84587
|
+
riscv64: { base: "linux-riscv64-gnu", musl: null },
|
|
84587
84588
|
x64: { base: "linux-x64-gnu", musl: "linux-x64-musl" }
|
|
84588
84589
|
},
|
|
84589
84590
|
win32: {
|
|
@@ -84592,6 +84593,11 @@ var require_native = __commonJS({
|
|
|
84592
84593
|
x64: { base: "win32-x64-msvc" }
|
|
84593
84594
|
}
|
|
84594
84595
|
};
|
|
84596
|
+
var msvcLinkFilenameByArch = {
|
|
84597
|
+
arm64: "vc_redist.arm64.exe",
|
|
84598
|
+
ia32: "vc_redist.x86.exe",
|
|
84599
|
+
x64: "vc_redist.x64.exe"
|
|
84600
|
+
};
|
|
84595
84601
|
var packageBase = getPackageBase();
|
|
84596
84602
|
if (!packageBase) {
|
|
84597
84603
|
throw new Error(
|
|
@@ -84619,16 +84625,37 @@ If this is important to you, please consider supporting Rollup to make a native
|
|
|
84619
84625
|
return imported.base;
|
|
84620
84626
|
}
|
|
84621
84627
|
var localName = `./rollup.${packageBase}.node`;
|
|
84622
|
-
var
|
|
84628
|
+
var requireWithFriendlyError = (id) => {
|
|
84629
|
+
try {
|
|
84630
|
+
return require(id);
|
|
84631
|
+
} catch (error) {
|
|
84632
|
+
if (platform === "win32" && error instanceof Error && error.code === "ERR_DLOPEN_FAILED" && error.message.includes("The specified module could not be found")) {
|
|
84633
|
+
const msvcDownloadLink = `https://aka.ms/vs/17/release/${msvcLinkFilenameByArch[arch]}`;
|
|
84634
|
+
throw new Error(
|
|
84635
|
+
`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}`,
|
|
84636
|
+
{ cause: error }
|
|
84637
|
+
);
|
|
84638
|
+
}
|
|
84639
|
+
throw new Error(
|
|
84640
|
+
`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.`,
|
|
84641
|
+
{ cause: error }
|
|
84642
|
+
);
|
|
84643
|
+
}
|
|
84644
|
+
};
|
|
84645
|
+
var { parse, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
|
|
84646
|
+
existsSync3(join3(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
|
|
84647
|
+
);
|
|
84623
84648
|
module2.exports.parse = parse;
|
|
84624
84649
|
module2.exports.parseAsync = parseAsync;
|
|
84625
84650
|
module2.exports.xxhashBase64Url = xxhashBase64Url;
|
|
84651
|
+
module2.exports.xxhashBase36 = xxhashBase36;
|
|
84652
|
+
module2.exports.xxhashBase16 = xxhashBase16;
|
|
84626
84653
|
}
|
|
84627
84654
|
});
|
|
84628
84655
|
|
|
84629
|
-
// node_modules/.pnpm/rollup@4.
|
|
84656
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/parseAst.js
|
|
84630
84657
|
var require_parseAst = __commonJS({
|
|
84631
|
-
"node_modules/.pnpm/rollup@4.
|
|
84658
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/parseAst.js"(exports2) {
|
|
84632
84659
|
"use strict";
|
|
84633
84660
|
var native_js = require_native();
|
|
84634
84661
|
var node_path = require("node:path");
|
|
@@ -85264,12 +85291,6 @@ Original error: ${originalError.message}`,
|
|
|
85264
85291
|
plugin
|
|
85265
85292
|
};
|
|
85266
85293
|
}
|
|
85267
|
-
function logInvalidRollupPhaseForAddWatchFile() {
|
|
85268
|
-
return {
|
|
85269
|
-
code: INVALID_ROLLUP_PHASE,
|
|
85270
|
-
message: `Cannot call "addWatchFile" after the build has finished.`
|
|
85271
|
-
};
|
|
85272
|
-
}
|
|
85273
85294
|
function logInvalidRollupPhaseForChunkEmission() {
|
|
85274
85295
|
return {
|
|
85275
85296
|
code: INVALID_ROLLUP_PHASE,
|
|
@@ -85664,19 +85685,22 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85664
85685
|
"pure",
|
|
85665
85686
|
"noSideEffects"
|
|
85666
85687
|
];
|
|
85667
|
-
var
|
|
85668
|
-
var
|
|
85669
|
-
|
|
85670
|
-
|
|
85671
|
-
|
|
85672
|
-
console.trace();
|
|
85673
|
-
throw new Error(`Unknown node type: ${nodeType}`);
|
|
85674
|
-
}
|
|
85675
|
-
return converter(position + 1, buffer, readString);
|
|
85676
|
-
};
|
|
85688
|
+
var ANNOTATION_KEY = "_rollupAnnotations";
|
|
85689
|
+
var INVALID_ANNOTATION_KEY = "_rollupRemoved";
|
|
85690
|
+
function convertProgram(buffer, readString) {
|
|
85691
|
+
return convertNode(0, new Uint32Array(buffer), readString);
|
|
85692
|
+
}
|
|
85677
85693
|
var nodeConverters = [
|
|
85678
|
-
|
|
85679
|
-
|
|
85694
|
+
function parseError(position, buffer, readString) {
|
|
85695
|
+
const pos = buffer[position++];
|
|
85696
|
+
const message = convertString(position, buffer, readString);
|
|
85697
|
+
error(logParseError(message, pos));
|
|
85698
|
+
},
|
|
85699
|
+
function panicError(position, buffer, readString) {
|
|
85700
|
+
const message = convertString(position, buffer, readString);
|
|
85701
|
+
error(logParseError(message));
|
|
85702
|
+
},
|
|
85703
|
+
function arrayExpression(position, buffer, readString) {
|
|
85680
85704
|
const start = buffer[position++];
|
|
85681
85705
|
const end = buffer[position++];
|
|
85682
85706
|
const elements = convertNodeList(position, buffer, readString);
|
|
@@ -85687,8 +85711,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85687
85711
|
elements
|
|
85688
85712
|
};
|
|
85689
85713
|
},
|
|
85690
|
-
|
|
85691
|
-
(position, buffer, readString) => {
|
|
85714
|
+
function arrayPattern(position, buffer, readString) {
|
|
85692
85715
|
const start = buffer[position++];
|
|
85693
85716
|
const end = buffer[position++];
|
|
85694
85717
|
const elements = convertNodeList(position, buffer, readString);
|
|
@@ -85699,30 +85722,30 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85699
85722
|
elements
|
|
85700
85723
|
};
|
|
85701
85724
|
},
|
|
85702
|
-
|
|
85703
|
-
(position, buffer, readString) => {
|
|
85725
|
+
function arrowFunctionExpression(position, buffer, readString) {
|
|
85704
85726
|
const start = buffer[position++];
|
|
85705
85727
|
const end = buffer[position++];
|
|
85706
|
-
const
|
|
85707
|
-
const
|
|
85708
|
-
const expression =
|
|
85728
|
+
const flags = buffer[position++];
|
|
85729
|
+
const async = (flags & 1) === 1;
|
|
85730
|
+
const expression = (flags & 2) === 2;
|
|
85731
|
+
const generator = (flags & 4) === 4;
|
|
85709
85732
|
const parameters = convertNodeList(buffer[position++], buffer, readString);
|
|
85710
85733
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
85711
|
-
const annotations =
|
|
85712
|
-
return
|
|
85734
|
+
const annotations = convertAnnotations(position, buffer);
|
|
85735
|
+
return {
|
|
85713
85736
|
type: "ArrowFunctionExpression",
|
|
85714
85737
|
start,
|
|
85715
85738
|
end,
|
|
85716
85739
|
async,
|
|
85717
|
-
body,
|
|
85718
85740
|
expression,
|
|
85719
85741
|
generator,
|
|
85720
|
-
|
|
85721
|
-
params: parameters
|
|
85722
|
-
|
|
85742
|
+
...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
|
|
85743
|
+
params: parameters,
|
|
85744
|
+
body,
|
|
85745
|
+
id: null
|
|
85746
|
+
};
|
|
85723
85747
|
},
|
|
85724
|
-
|
|
85725
|
-
(position, buffer, readString) => {
|
|
85748
|
+
function assignmentExpression(position, buffer, readString) {
|
|
85726
85749
|
const start = buffer[position++];
|
|
85727
85750
|
const end = buffer[position++];
|
|
85728
85751
|
const operator = FIXED_STRINGS[buffer[position++]];
|
|
@@ -85732,13 +85755,12 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85732
85755
|
type: "AssignmentExpression",
|
|
85733
85756
|
start,
|
|
85734
85757
|
end,
|
|
85735
|
-
left,
|
|
85736
85758
|
operator,
|
|
85759
|
+
left,
|
|
85737
85760
|
right
|
|
85738
85761
|
};
|
|
85739
85762
|
},
|
|
85740
|
-
|
|
85741
|
-
(position, buffer, readString) => {
|
|
85763
|
+
function assignmentPattern(position, buffer, readString) {
|
|
85742
85764
|
const start = buffer[position++];
|
|
85743
85765
|
const end = buffer[position++];
|
|
85744
85766
|
const right = convertNode(buffer[position++], buffer, readString);
|
|
@@ -85751,20 +85773,18 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85751
85773
|
right
|
|
85752
85774
|
};
|
|
85753
85775
|
},
|
|
85754
|
-
|
|
85755
|
-
(position, buffer, readString) => {
|
|
85776
|
+
function awaitExpression(position, buffer, readString) {
|
|
85756
85777
|
const start = buffer[position++];
|
|
85757
85778
|
const end = buffer[position++];
|
|
85758
85779
|
const argument = convertNode(position, buffer, readString);
|
|
85759
85780
|
return {
|
|
85760
85781
|
type: "AwaitExpression",
|
|
85761
85782
|
start,
|
|
85762
|
-
|
|
85763
|
-
|
|
85783
|
+
end,
|
|
85784
|
+
argument
|
|
85764
85785
|
};
|
|
85765
85786
|
},
|
|
85766
|
-
|
|
85767
|
-
(position, buffer, readString) => {
|
|
85787
|
+
function binaryExpression(position, buffer, readString) {
|
|
85768
85788
|
const start = buffer[position++];
|
|
85769
85789
|
const end = buffer[position++];
|
|
85770
85790
|
const operator = FIXED_STRINGS[buffer[position++]];
|
|
@@ -85774,68 +85794,67 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85774
85794
|
type: "BinaryExpression",
|
|
85775
85795
|
start,
|
|
85776
85796
|
end,
|
|
85777
|
-
left,
|
|
85778
85797
|
operator,
|
|
85798
|
+
left,
|
|
85779
85799
|
right
|
|
85780
85800
|
};
|
|
85781
85801
|
},
|
|
85782
|
-
|
|
85783
|
-
(position, buffer, readString) => {
|
|
85802
|
+
function blockStatement(position, buffer, readString) {
|
|
85784
85803
|
const start = buffer[position++];
|
|
85785
85804
|
const end = buffer[position++];
|
|
85786
85805
|
const body = convertNodeList(position, buffer, readString);
|
|
85787
85806
|
return {
|
|
85788
85807
|
type: "BlockStatement",
|
|
85789
85808
|
start,
|
|
85790
|
-
|
|
85791
|
-
|
|
85809
|
+
end,
|
|
85810
|
+
body
|
|
85792
85811
|
};
|
|
85793
85812
|
},
|
|
85794
|
-
|
|
85795
|
-
(position, buffer, readString) => {
|
|
85813
|
+
function breakStatement(position, buffer, readString) {
|
|
85796
85814
|
const start = buffer[position++];
|
|
85797
85815
|
const end = buffer[position++];
|
|
85798
|
-
const labelPosition = buffer[position
|
|
85816
|
+
const labelPosition = buffer[position];
|
|
85817
|
+
const label = labelPosition === 0 ? null : convertNode(labelPosition, buffer, readString);
|
|
85799
85818
|
return {
|
|
85800
85819
|
type: "BreakStatement",
|
|
85801
85820
|
start,
|
|
85802
85821
|
end,
|
|
85803
|
-
label
|
|
85822
|
+
label
|
|
85804
85823
|
};
|
|
85805
85824
|
},
|
|
85806
|
-
|
|
85807
|
-
(position, buffer, readString) => {
|
|
85825
|
+
function callExpression(position, buffer, readString) {
|
|
85808
85826
|
const start = buffer[position++];
|
|
85809
85827
|
const end = buffer[position++];
|
|
85810
|
-
const
|
|
85828
|
+
const flags = buffer[position++];
|
|
85829
|
+
const optional = (flags & 1) === 1;
|
|
85811
85830
|
const callee = convertNode(buffer[position++], buffer, readString);
|
|
85812
|
-
const
|
|
85813
|
-
const annotations =
|
|
85814
|
-
return
|
|
85831
|
+
const callArguments = convertNodeList(buffer[position++], buffer, readString);
|
|
85832
|
+
const annotations = convertAnnotations(position, buffer);
|
|
85833
|
+
return {
|
|
85815
85834
|
type: "CallExpression",
|
|
85816
85835
|
start,
|
|
85817
85836
|
end,
|
|
85818
|
-
|
|
85837
|
+
optional,
|
|
85838
|
+
...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
|
|
85819
85839
|
callee,
|
|
85820
|
-
|
|
85821
|
-
}
|
|
85840
|
+
arguments: callArguments
|
|
85841
|
+
};
|
|
85822
85842
|
},
|
|
85823
|
-
|
|
85824
|
-
(position, buffer, readString) => {
|
|
85843
|
+
function catchClause(position, buffer, readString) {
|
|
85825
85844
|
const start = buffer[position++];
|
|
85826
85845
|
const end = buffer[position++];
|
|
85827
85846
|
const parameterPosition = buffer[position++];
|
|
85847
|
+
const parameter = parameterPosition === 0 ? null : convertNode(parameterPosition, buffer, readString);
|
|
85828
85848
|
const body = convertNode(buffer[position], buffer, readString);
|
|
85829
85849
|
return {
|
|
85830
85850
|
type: "CatchClause",
|
|
85831
85851
|
start,
|
|
85832
85852
|
end,
|
|
85833
|
-
|
|
85834
|
-
|
|
85853
|
+
param: parameter,
|
|
85854
|
+
body
|
|
85835
85855
|
};
|
|
85836
85856
|
},
|
|
85837
|
-
|
|
85838
|
-
(position, buffer, readString) => {
|
|
85857
|
+
function chainExpression(position, buffer, readString) {
|
|
85839
85858
|
const start = buffer[position++];
|
|
85840
85859
|
const end = buffer[position++];
|
|
85841
85860
|
const expression = convertNode(position, buffer, readString);
|
|
@@ -85846,8 +85865,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85846
85865
|
expression
|
|
85847
85866
|
};
|
|
85848
85867
|
},
|
|
85849
|
-
|
|
85850
|
-
(position, buffer, readString) => {
|
|
85868
|
+
function classBody(position, buffer, readString) {
|
|
85851
85869
|
const start = buffer[position++];
|
|
85852
85870
|
const end = buffer[position++];
|
|
85853
85871
|
const body = convertNodeList(position, buffer, readString);
|
|
@@ -85858,40 +85876,41 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85858
85876
|
body
|
|
85859
85877
|
};
|
|
85860
85878
|
},
|
|
85861
|
-
|
|
85862
|
-
(position, buffer, readString) => {
|
|
85879
|
+
function classDeclaration(position, buffer, readString) {
|
|
85863
85880
|
const start = buffer[position++];
|
|
85864
85881
|
const end = buffer[position++];
|
|
85865
85882
|
const idPosition = buffer[position++];
|
|
85883
|
+
const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
|
|
85866
85884
|
const superClassPosition = buffer[position++];
|
|
85885
|
+
const superClass = superClassPosition === 0 ? null : convertNode(superClassPosition, buffer, readString);
|
|
85867
85886
|
const body = convertNode(buffer[position], buffer, readString);
|
|
85868
85887
|
return {
|
|
85869
85888
|
type: "ClassDeclaration",
|
|
85870
85889
|
start,
|
|
85871
85890
|
end,
|
|
85872
|
-
|
|
85873
|
-
|
|
85874
|
-
|
|
85891
|
+
id,
|
|
85892
|
+
superClass,
|
|
85893
|
+
body
|
|
85875
85894
|
};
|
|
85876
85895
|
},
|
|
85877
|
-
|
|
85878
|
-
(position, buffer, readString) => {
|
|
85896
|
+
function classExpression(position, buffer, readString) {
|
|
85879
85897
|
const start = buffer[position++];
|
|
85880
85898
|
const end = buffer[position++];
|
|
85881
85899
|
const idPosition = buffer[position++];
|
|
85900
|
+
const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
|
|
85882
85901
|
const superClassPosition = buffer[position++];
|
|
85902
|
+
const superClass = superClassPosition === 0 ? null : convertNode(superClassPosition, buffer, readString);
|
|
85883
85903
|
const body = convertNode(buffer[position], buffer, readString);
|
|
85884
85904
|
return {
|
|
85885
85905
|
type: "ClassExpression",
|
|
85886
85906
|
start,
|
|
85887
85907
|
end,
|
|
85888
|
-
|
|
85889
|
-
|
|
85890
|
-
|
|
85908
|
+
id,
|
|
85909
|
+
superClass,
|
|
85910
|
+
body
|
|
85891
85911
|
};
|
|
85892
85912
|
},
|
|
85893
|
-
|
|
85894
|
-
(position, buffer, readString) => {
|
|
85913
|
+
function conditionalExpression(position, buffer, readString) {
|
|
85895
85914
|
const start = buffer[position++];
|
|
85896
85915
|
const end = buffer[position++];
|
|
85897
85916
|
const consequent = convertNode(buffer[position++], buffer, readString);
|
|
@@ -85901,25 +85920,24 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85901
85920
|
type: "ConditionalExpression",
|
|
85902
85921
|
start,
|
|
85903
85922
|
end,
|
|
85904
|
-
|
|
85923
|
+
test,
|
|
85905
85924
|
consequent,
|
|
85906
|
-
|
|
85925
|
+
alternate
|
|
85907
85926
|
};
|
|
85908
85927
|
},
|
|
85909
|
-
|
|
85910
|
-
(position, buffer, readString) => {
|
|
85928
|
+
function continueStatement(position, buffer, readString) {
|
|
85911
85929
|
const start = buffer[position++];
|
|
85912
85930
|
const end = buffer[position++];
|
|
85913
85931
|
const labelPosition = buffer[position];
|
|
85932
|
+
const label = labelPosition === 0 ? null : convertNode(labelPosition, buffer, readString);
|
|
85914
85933
|
return {
|
|
85915
85934
|
type: "ContinueStatement",
|
|
85916
85935
|
start,
|
|
85917
85936
|
end,
|
|
85918
|
-
label
|
|
85937
|
+
label
|
|
85919
85938
|
};
|
|
85920
85939
|
},
|
|
85921
|
-
|
|
85922
|
-
(position, buffer) => {
|
|
85940
|
+
function debuggerStatement(position, buffer) {
|
|
85923
85941
|
const start = buffer[position++];
|
|
85924
85942
|
const end = buffer[position++];
|
|
85925
85943
|
return {
|
|
@@ -85928,8 +85946,20 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85928
85946
|
end
|
|
85929
85947
|
};
|
|
85930
85948
|
},
|
|
85931
|
-
|
|
85932
|
-
|
|
85949
|
+
function directive(position, buffer, readString) {
|
|
85950
|
+
const start = buffer[position++];
|
|
85951
|
+
const end = buffer[position++];
|
|
85952
|
+
const expression = convertNode(buffer[position++], buffer, readString);
|
|
85953
|
+
const directive2 = convertString(position, buffer, readString);
|
|
85954
|
+
return {
|
|
85955
|
+
type: "ExpressionStatement",
|
|
85956
|
+
start,
|
|
85957
|
+
end,
|
|
85958
|
+
directive: directive2,
|
|
85959
|
+
expression
|
|
85960
|
+
};
|
|
85961
|
+
},
|
|
85962
|
+
function doWhileStatement(position, buffer, readString) {
|
|
85933
85963
|
const start = buffer[position++];
|
|
85934
85964
|
const end = buffer[position++];
|
|
85935
85965
|
const test = convertNode(buffer[position++], buffer, readString);
|
|
@@ -85942,8 +85972,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85942
85972
|
test
|
|
85943
85973
|
};
|
|
85944
85974
|
},
|
|
85945
|
-
|
|
85946
|
-
(position, buffer) => {
|
|
85975
|
+
function emptyStatement(position, buffer) {
|
|
85947
85976
|
const start = buffer[position++];
|
|
85948
85977
|
const end = buffer[position++];
|
|
85949
85978
|
return {
|
|
@@ -85952,24 +85981,23 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85952
85981
|
end
|
|
85953
85982
|
};
|
|
85954
85983
|
},
|
|
85955
|
-
|
|
85956
|
-
(position, buffer, readString) => {
|
|
85984
|
+
function exportAllDeclaration(position, buffer, readString) {
|
|
85957
85985
|
const start = buffer[position++];
|
|
85958
85986
|
const end = buffer[position++];
|
|
85959
85987
|
const exportedPosition = buffer[position++];
|
|
85988
|
+
const exported = exportedPosition === 0 ? null : convertNode(exportedPosition, buffer, readString);
|
|
85960
85989
|
const source = convertNode(buffer[position++], buffer, readString);
|
|
85961
85990
|
const attributes = convertNodeList(buffer[position], buffer, readString);
|
|
85962
85991
|
return {
|
|
85963
85992
|
type: "ExportAllDeclaration",
|
|
85964
85993
|
start,
|
|
85965
85994
|
end,
|
|
85966
|
-
exported
|
|
85995
|
+
exported,
|
|
85967
85996
|
source,
|
|
85968
85997
|
attributes
|
|
85969
85998
|
};
|
|
85970
85999
|
},
|
|
85971
|
-
|
|
85972
|
-
(position, buffer, readString) => {
|
|
86000
|
+
function exportDefaultDeclaration(position, buffer, readString) {
|
|
85973
86001
|
const start = buffer[position++];
|
|
85974
86002
|
const end = buffer[position++];
|
|
85975
86003
|
const declaration = convertNode(position, buffer, readString);
|
|
@@ -85980,55 +86008,50 @@ ${smallChunks} are below minChunkSize.`
|
|
|
85980
86008
|
declaration
|
|
85981
86009
|
};
|
|
85982
86010
|
},
|
|
85983
|
-
|
|
85984
|
-
(position, buffer, readString) => {
|
|
86011
|
+
function exportNamedDeclaration(position, buffer, readString) {
|
|
85985
86012
|
const start = buffer[position++];
|
|
85986
86013
|
const end = buffer[position++];
|
|
85987
|
-
const declarationPosition = buffer[position++];
|
|
85988
86014
|
const sourcePosition = buffer[position++];
|
|
86015
|
+
const source = sourcePosition === 0 ? null : convertNode(sourcePosition, buffer, readString);
|
|
85989
86016
|
const attributes = convertNodeList(buffer[position++], buffer, readString);
|
|
86017
|
+
const declarationPosition = buffer[position++];
|
|
86018
|
+
const declaration = declarationPosition === 0 ? null : convertNode(declarationPosition, buffer, readString);
|
|
85990
86019
|
const specifiers = convertNodeList(position, buffer, readString);
|
|
85991
86020
|
return {
|
|
85992
86021
|
type: "ExportNamedDeclaration",
|
|
85993
86022
|
start,
|
|
85994
86023
|
end,
|
|
85995
|
-
declaration: declarationPosition ? convertNode(declarationPosition, buffer, readString) : null,
|
|
85996
|
-
source: sourcePosition ? convertNode(sourcePosition, buffer, readString) : null,
|
|
85997
86024
|
specifiers,
|
|
85998
|
-
|
|
86025
|
+
source,
|
|
86026
|
+
attributes,
|
|
86027
|
+
declaration
|
|
85999
86028
|
};
|
|
86000
86029
|
},
|
|
86001
|
-
|
|
86002
|
-
(position, buffer, readString) => {
|
|
86030
|
+
function exportSpecifier(position, buffer, readString) {
|
|
86003
86031
|
const start = buffer[position++];
|
|
86004
86032
|
const end = buffer[position++];
|
|
86005
86033
|
const exportedPosition = buffer[position++];
|
|
86006
86034
|
const local = convertNode(position, buffer, readString);
|
|
86007
|
-
const exported = exportedPosition ? convertNode(exportedPosition, buffer, readString) : local;
|
|
86008
86035
|
return {
|
|
86009
86036
|
type: "ExportSpecifier",
|
|
86010
86037
|
start,
|
|
86011
86038
|
end,
|
|
86012
|
-
|
|
86013
|
-
local
|
|
86039
|
+
local,
|
|
86040
|
+
exported: exportedPosition === 0 ? { ...local } : convertNode(exportedPosition, buffer, readString)
|
|
86014
86041
|
};
|
|
86015
86042
|
},
|
|
86016
|
-
|
|
86017
|
-
(position, buffer, readString) => {
|
|
86043
|
+
function expressionStatement(position, buffer, readString) {
|
|
86018
86044
|
const start = buffer[position++];
|
|
86019
86045
|
const end = buffer[position++];
|
|
86020
|
-
const directivePosition = buffer[position++];
|
|
86021
86046
|
const expression = convertNode(position, buffer, readString);
|
|
86022
86047
|
return {
|
|
86023
86048
|
type: "ExpressionStatement",
|
|
86024
86049
|
start,
|
|
86025
86050
|
end,
|
|
86026
|
-
expression
|
|
86027
|
-
...directivePosition ? { directive: convertString(directivePosition, buffer, readString) } : {}
|
|
86051
|
+
expression
|
|
86028
86052
|
};
|
|
86029
86053
|
},
|
|
86030
|
-
|
|
86031
|
-
(position, buffer, readString) => {
|
|
86054
|
+
function forInStatement(position, buffer, readString) {
|
|
86032
86055
|
const start = buffer[position++];
|
|
86033
86056
|
const end = buffer[position++];
|
|
86034
86057
|
const right = convertNode(buffer[position++], buffer, readString);
|
|
@@ -86038,16 +86061,16 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86038
86061
|
type: "ForInStatement",
|
|
86039
86062
|
start,
|
|
86040
86063
|
end,
|
|
86041
|
-
body,
|
|
86042
86064
|
left,
|
|
86043
|
-
right
|
|
86065
|
+
right,
|
|
86066
|
+
body
|
|
86044
86067
|
};
|
|
86045
86068
|
},
|
|
86046
|
-
|
|
86047
|
-
(position, buffer, readString) => {
|
|
86069
|
+
function forOfStatement(position, buffer, readString) {
|
|
86048
86070
|
const start = buffer[position++];
|
|
86049
86071
|
const end = buffer[position++];
|
|
86050
|
-
const
|
|
86072
|
+
const flags = buffer[position++];
|
|
86073
|
+
const awaited = (flags & 1) === 1;
|
|
86051
86074
|
const right = convertNode(buffer[position++], buffer, readString);
|
|
86052
86075
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
86053
86076
|
const left = convertNode(position, buffer, readString);
|
|
@@ -86056,75 +86079,80 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86056
86079
|
start,
|
|
86057
86080
|
end,
|
|
86058
86081
|
await: awaited,
|
|
86059
|
-
body,
|
|
86060
86082
|
left,
|
|
86061
|
-
right
|
|
86083
|
+
right,
|
|
86084
|
+
body
|
|
86062
86085
|
};
|
|
86063
86086
|
},
|
|
86064
|
-
|
|
86065
|
-
(position, buffer, readString) => {
|
|
86087
|
+
function forStatement(position, buffer, readString) {
|
|
86066
86088
|
const start = buffer[position++];
|
|
86067
86089
|
const end = buffer[position++];
|
|
86068
86090
|
const initPosition = buffer[position++];
|
|
86091
|
+
const init = initPosition === 0 ? null : convertNode(initPosition, buffer, readString);
|
|
86069
86092
|
const testPosition = buffer[position++];
|
|
86093
|
+
const test = testPosition === 0 ? null : convertNode(testPosition, buffer, readString);
|
|
86070
86094
|
const updatePosition = buffer[position++];
|
|
86095
|
+
const update = updatePosition === 0 ? null : convertNode(updatePosition, buffer, readString);
|
|
86071
86096
|
const body = convertNode(buffer[position], buffer, readString);
|
|
86072
86097
|
return {
|
|
86073
86098
|
type: "ForStatement",
|
|
86074
86099
|
start,
|
|
86075
86100
|
end,
|
|
86076
|
-
|
|
86077
|
-
|
|
86078
|
-
|
|
86079
|
-
|
|
86101
|
+
init,
|
|
86102
|
+
test,
|
|
86103
|
+
update,
|
|
86104
|
+
body
|
|
86080
86105
|
};
|
|
86081
86106
|
},
|
|
86082
|
-
|
|
86083
|
-
(position, buffer, readString) => {
|
|
86107
|
+
function functionDeclaration(position, buffer, readString) {
|
|
86084
86108
|
const start = buffer[position++];
|
|
86085
86109
|
const end = buffer[position++];
|
|
86086
|
-
const
|
|
86087
|
-
const
|
|
86110
|
+
const flags = buffer[position++];
|
|
86111
|
+
const async = (flags & 1) === 1;
|
|
86112
|
+
const generator = (flags & 2) === 2;
|
|
86088
86113
|
const idPosition = buffer[position++];
|
|
86114
|
+
const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
|
|
86089
86115
|
const parameters = convertNodeList(buffer[position++], buffer, readString);
|
|
86090
86116
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
86091
|
-
const annotations =
|
|
86092
|
-
return
|
|
86117
|
+
const annotations = convertAnnotations(position, buffer);
|
|
86118
|
+
return {
|
|
86093
86119
|
type: "FunctionDeclaration",
|
|
86094
86120
|
start,
|
|
86095
86121
|
end,
|
|
86096
86122
|
async,
|
|
86097
|
-
body,
|
|
86098
|
-
expression: false,
|
|
86099
86123
|
generator,
|
|
86100
|
-
|
|
86101
|
-
|
|
86102
|
-
|
|
86124
|
+
...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
|
|
86125
|
+
id,
|
|
86126
|
+
params: parameters,
|
|
86127
|
+
body,
|
|
86128
|
+
expression: false
|
|
86129
|
+
};
|
|
86103
86130
|
},
|
|
86104
|
-
|
|
86105
|
-
(position, buffer, readString) => {
|
|
86131
|
+
function functionExpression(position, buffer, readString) {
|
|
86106
86132
|
const start = buffer[position++];
|
|
86107
86133
|
const end = buffer[position++];
|
|
86108
|
-
const
|
|
86109
|
-
const
|
|
86134
|
+
const flags = buffer[position++];
|
|
86135
|
+
const async = (flags & 1) === 1;
|
|
86136
|
+
const generator = (flags & 2) === 2;
|
|
86110
86137
|
const idPosition = buffer[position++];
|
|
86138
|
+
const id = idPosition === 0 ? null : convertNode(idPosition, buffer, readString);
|
|
86111
86139
|
const parameters = convertNodeList(buffer[position++], buffer, readString);
|
|
86112
86140
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
86113
|
-
const annotations =
|
|
86114
|
-
return
|
|
86141
|
+
const annotations = convertAnnotations(position, buffer);
|
|
86142
|
+
return {
|
|
86115
86143
|
type: "FunctionExpression",
|
|
86116
86144
|
start,
|
|
86117
86145
|
end,
|
|
86118
86146
|
async,
|
|
86119
|
-
body,
|
|
86120
|
-
expression: false,
|
|
86121
86147
|
generator,
|
|
86122
|
-
|
|
86123
|
-
|
|
86124
|
-
|
|
86148
|
+
...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
|
|
86149
|
+
id,
|
|
86150
|
+
params: parameters,
|
|
86151
|
+
body,
|
|
86152
|
+
expression: false
|
|
86153
|
+
};
|
|
86125
86154
|
},
|
|
86126
|
-
|
|
86127
|
-
(position, buffer, readString) => {
|
|
86155
|
+
function identifier(position, buffer, readString) {
|
|
86128
86156
|
const start = buffer[position++];
|
|
86129
86157
|
const end = buffer[position++];
|
|
86130
86158
|
const name = convertString(position, buffer, readString);
|
|
@@ -86135,24 +86163,23 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86135
86163
|
name
|
|
86136
86164
|
};
|
|
86137
86165
|
},
|
|
86138
|
-
|
|
86139
|
-
(position, buffer, readString) => {
|
|
86166
|
+
function ifStatement(position, buffer, readString) {
|
|
86140
86167
|
const start = buffer[position++];
|
|
86141
86168
|
const end = buffer[position++];
|
|
86142
86169
|
const consequent = convertNode(buffer[position++], buffer, readString);
|
|
86143
86170
|
const alternatePosition = buffer[position++];
|
|
86171
|
+
const alternate = alternatePosition === 0 ? null : convertNode(alternatePosition, buffer, readString);
|
|
86144
86172
|
const test = convertNode(position, buffer, readString);
|
|
86145
86173
|
return {
|
|
86146
86174
|
type: "IfStatement",
|
|
86147
86175
|
start,
|
|
86148
86176
|
end,
|
|
86149
|
-
|
|
86177
|
+
test,
|
|
86150
86178
|
consequent,
|
|
86151
|
-
|
|
86179
|
+
alternate
|
|
86152
86180
|
};
|
|
86153
86181
|
},
|
|
86154
|
-
|
|
86155
|
-
(position, buffer, readString) => {
|
|
86182
|
+
function importAttribute(position, buffer, readString) {
|
|
86156
86183
|
const start = buffer[position++];
|
|
86157
86184
|
const end = buffer[position++];
|
|
86158
86185
|
const value = convertNode(buffer[position++], buffer, readString);
|
|
@@ -86165,8 +86192,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86165
86192
|
value
|
|
86166
86193
|
};
|
|
86167
86194
|
},
|
|
86168
|
-
|
|
86169
|
-
(position, buffer, readString) => {
|
|
86195
|
+
function importDeclaration(position, buffer, readString) {
|
|
86170
86196
|
const start = buffer[position++];
|
|
86171
86197
|
const end = buffer[position++];
|
|
86172
86198
|
const source = convertNode(buffer[position++], buffer, readString);
|
|
@@ -86176,13 +86202,12 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86176
86202
|
type: "ImportDeclaration",
|
|
86177
86203
|
start,
|
|
86178
86204
|
end,
|
|
86179
|
-
source,
|
|
86180
86205
|
specifiers,
|
|
86206
|
+
source,
|
|
86181
86207
|
attributes
|
|
86182
86208
|
};
|
|
86183
86209
|
},
|
|
86184
|
-
|
|
86185
|
-
(position, buffer, readString) => {
|
|
86210
|
+
function importDefaultSpecifier(position, buffer, readString) {
|
|
86186
86211
|
const start = buffer[position++];
|
|
86187
86212
|
const end = buffer[position++];
|
|
86188
86213
|
const local = convertNode(position, buffer, readString);
|
|
@@ -86193,22 +86218,21 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86193
86218
|
local
|
|
86194
86219
|
};
|
|
86195
86220
|
},
|
|
86196
|
-
|
|
86197
|
-
(position, buffer, readString) => {
|
|
86221
|
+
function importExpression(position, buffer, readString) {
|
|
86198
86222
|
const start = buffer[position++];
|
|
86199
86223
|
const end = buffer[position++];
|
|
86200
86224
|
const optionsPosition = buffer[position++];
|
|
86225
|
+
const options = optionsPosition === 0 ? null : convertNode(optionsPosition, buffer, readString);
|
|
86201
86226
|
const source = convertNode(position, buffer, readString);
|
|
86202
86227
|
return {
|
|
86203
86228
|
type: "ImportExpression",
|
|
86204
86229
|
start,
|
|
86205
86230
|
end,
|
|
86206
86231
|
source,
|
|
86207
|
-
options
|
|
86232
|
+
options
|
|
86208
86233
|
};
|
|
86209
86234
|
},
|
|
86210
|
-
|
|
86211
|
-
(position, buffer, readString) => {
|
|
86235
|
+
function importNamespaceSpecifier(position, buffer, readString) {
|
|
86212
86236
|
const start = buffer[position++];
|
|
86213
86237
|
const end = buffer[position++];
|
|
86214
86238
|
const local = convertNode(position, buffer, readString);
|
|
@@ -86219,23 +86243,20 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86219
86243
|
local
|
|
86220
86244
|
};
|
|
86221
86245
|
},
|
|
86222
|
-
|
|
86223
|
-
(position, buffer, readString) => {
|
|
86246
|
+
function importSpecifier(position, buffer, readString) {
|
|
86224
86247
|
const start = buffer[position++];
|
|
86225
86248
|
const end = buffer[position++];
|
|
86226
86249
|
const importedPosition = buffer[position++];
|
|
86227
86250
|
const local = convertNode(buffer[position], buffer, readString);
|
|
86228
|
-
const imported = importedPosition ? convertNode(importedPosition, buffer, readString) : local;
|
|
86229
86251
|
return {
|
|
86230
86252
|
type: "ImportSpecifier",
|
|
86231
86253
|
start,
|
|
86232
86254
|
end,
|
|
86233
|
-
imported,
|
|
86255
|
+
imported: importedPosition === 0 ? { ...local } : convertNode(importedPosition, buffer, readString),
|
|
86234
86256
|
local
|
|
86235
86257
|
};
|
|
86236
86258
|
},
|
|
86237
|
-
|
|
86238
|
-
(position, buffer, readString) => {
|
|
86259
|
+
function labeledStatement(position, buffer, readString) {
|
|
86239
86260
|
const start = buffer[position++];
|
|
86240
86261
|
const end = buffer[position++];
|
|
86241
86262
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
@@ -86244,67 +86265,63 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86244
86265
|
type: "LabeledStatement",
|
|
86245
86266
|
start,
|
|
86246
86267
|
end,
|
|
86247
|
-
|
|
86248
|
-
|
|
86268
|
+
label,
|
|
86269
|
+
body
|
|
86249
86270
|
};
|
|
86250
86271
|
},
|
|
86251
|
-
|
|
86252
|
-
(position, buffer, readString) => {
|
|
86272
|
+
function literalBigInt(position, buffer, readString) {
|
|
86253
86273
|
const start = buffer[position++];
|
|
86254
86274
|
const end = buffer[position++];
|
|
86255
|
-
const
|
|
86256
|
-
const
|
|
86257
|
-
const value = convertString(position, buffer, readString);
|
|
86275
|
+
const raw = convertString(buffer[position++], buffer, readString);
|
|
86276
|
+
const bigint = convertString(position, buffer, readString);
|
|
86258
86277
|
return {
|
|
86259
86278
|
type: "Literal",
|
|
86260
86279
|
start,
|
|
86261
86280
|
end,
|
|
86281
|
+
bigint,
|
|
86262
86282
|
raw,
|
|
86263
|
-
value
|
|
86283
|
+
value: BigInt(bigint)
|
|
86264
86284
|
};
|
|
86265
86285
|
},
|
|
86266
|
-
|
|
86267
|
-
(position, buffer) => {
|
|
86286
|
+
function literalBoolean(position, buffer) {
|
|
86268
86287
|
const start = buffer[position++];
|
|
86269
86288
|
const end = buffer[position++];
|
|
86270
|
-
const
|
|
86289
|
+
const flags = buffer[position++];
|
|
86290
|
+
const value = (flags & 1) === 1;
|
|
86271
86291
|
return {
|
|
86272
86292
|
type: "Literal",
|
|
86273
86293
|
start,
|
|
86274
86294
|
end,
|
|
86275
|
-
|
|
86276
|
-
value
|
|
86295
|
+
value,
|
|
86296
|
+
raw: value ? "true" : "false"
|
|
86277
86297
|
};
|
|
86278
86298
|
},
|
|
86279
|
-
|
|
86280
|
-
(position, buffer, readString) => {
|
|
86299
|
+
function literalNull(position, buffer) {
|
|
86281
86300
|
const start = buffer[position++];
|
|
86282
86301
|
const end = buffer[position++];
|
|
86283
|
-
const rawPosition = buffer[position++];
|
|
86284
|
-
const raw = rawPosition ? convertString(rawPosition, buffer, readString) : void 0;
|
|
86285
|
-
const value = new DataView(buffer.buffer).getFloat64(position << 2, true);
|
|
86286
86302
|
return {
|
|
86287
86303
|
type: "Literal",
|
|
86288
86304
|
start,
|
|
86289
86305
|
end,
|
|
86290
|
-
raw,
|
|
86291
|
-
value
|
|
86306
|
+
raw: "null",
|
|
86307
|
+
value: null
|
|
86292
86308
|
};
|
|
86293
86309
|
},
|
|
86294
|
-
|
|
86295
|
-
(position, buffer) => {
|
|
86310
|
+
function literalNumber(position, buffer, readString) {
|
|
86296
86311
|
const start = buffer[position++];
|
|
86297
86312
|
const end = buffer[position++];
|
|
86313
|
+
const rawPosition = buffer[position++];
|
|
86314
|
+
const raw = rawPosition === 0 ? void 0 : convertString(rawPosition, buffer, readString);
|
|
86315
|
+
const value = new DataView(buffer.buffer).getFloat64(position << 2, true);
|
|
86298
86316
|
return {
|
|
86299
86317
|
type: "Literal",
|
|
86300
86318
|
start,
|
|
86301
86319
|
end,
|
|
86302
|
-
raw
|
|
86303
|
-
value
|
|
86320
|
+
raw,
|
|
86321
|
+
value
|
|
86304
86322
|
};
|
|
86305
86323
|
},
|
|
86306
|
-
|
|
86307
|
-
(position, buffer, readString) => {
|
|
86324
|
+
function literalRegExp(position, buffer, readString) {
|
|
86308
86325
|
const start = buffer[position++];
|
|
86309
86326
|
const end = buffer[position++];
|
|
86310
86327
|
const pattern = convertString(buffer[position++], buffer, readString);
|
|
@@ -86314,30 +86331,25 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86314
86331
|
start,
|
|
86315
86332
|
end,
|
|
86316
86333
|
raw: `/${pattern}/${flags}`,
|
|
86317
|
-
regex: {
|
|
86318
|
-
flags,
|
|
86319
|
-
pattern
|
|
86320
|
-
},
|
|
86334
|
+
regex: { flags, pattern },
|
|
86321
86335
|
value: new RegExp(pattern, flags)
|
|
86322
86336
|
};
|
|
86323
86337
|
},
|
|
86324
|
-
|
|
86325
|
-
(position, buffer, readString) => {
|
|
86338
|
+
function literalString(position, buffer, readString) {
|
|
86326
86339
|
const start = buffer[position++];
|
|
86327
86340
|
const end = buffer[position++];
|
|
86328
|
-
const
|
|
86329
|
-
const raw = convertString(
|
|
86341
|
+
const rawPosition = buffer[position++];
|
|
86342
|
+
const raw = rawPosition === 0 ? void 0 : convertString(rawPosition, buffer, readString);
|
|
86343
|
+
const value = convertString(position, buffer, readString);
|
|
86330
86344
|
return {
|
|
86331
86345
|
type: "Literal",
|
|
86332
86346
|
start,
|
|
86333
86347
|
end,
|
|
86334
|
-
|
|
86335
|
-
raw
|
|
86336
|
-
value: BigInt(bigint)
|
|
86348
|
+
value,
|
|
86349
|
+
raw
|
|
86337
86350
|
};
|
|
86338
86351
|
},
|
|
86339
|
-
|
|
86340
|
-
(position, buffer, readString) => {
|
|
86352
|
+
function logicalExpression(position, buffer, readString) {
|
|
86341
86353
|
const start = buffer[position++];
|
|
86342
86354
|
const end = buffer[position++];
|
|
86343
86355
|
const operator = FIXED_STRINGS[buffer[position++]];
|
|
@@ -86347,17 +86359,17 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86347
86359
|
type: "LogicalExpression",
|
|
86348
86360
|
start,
|
|
86349
86361
|
end,
|
|
86350
|
-
left,
|
|
86351
86362
|
operator,
|
|
86363
|
+
left,
|
|
86352
86364
|
right
|
|
86353
86365
|
};
|
|
86354
86366
|
},
|
|
86355
|
-
|
|
86356
|
-
(position, buffer, readString) => {
|
|
86367
|
+
function memberExpression(position, buffer, readString) {
|
|
86357
86368
|
const start = buffer[position++];
|
|
86358
86369
|
const end = buffer[position++];
|
|
86359
|
-
const
|
|
86360
|
-
const computed =
|
|
86370
|
+
const flags = buffer[position++];
|
|
86371
|
+
const computed = (flags & 1) === 1;
|
|
86372
|
+
const optional = (flags & 2) === 2;
|
|
86361
86373
|
const property = convertNode(buffer[position++], buffer, readString);
|
|
86362
86374
|
const object = convertNode(position, buffer, readString);
|
|
86363
86375
|
return {
|
|
@@ -86365,13 +86377,12 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86365
86377
|
start,
|
|
86366
86378
|
end,
|
|
86367
86379
|
computed,
|
|
86368
|
-
object,
|
|
86369
86380
|
optional,
|
|
86381
|
+
object,
|
|
86370
86382
|
property
|
|
86371
86383
|
};
|
|
86372
86384
|
},
|
|
86373
|
-
|
|
86374
|
-
(position, buffer, readString) => {
|
|
86385
|
+
function metaProperty(position, buffer, readString) {
|
|
86375
86386
|
const start = buffer[position++];
|
|
86376
86387
|
const end = buffer[position++];
|
|
86377
86388
|
const property = convertNode(buffer[position++], buffer, readString);
|
|
@@ -86384,43 +86395,42 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86384
86395
|
property
|
|
86385
86396
|
};
|
|
86386
86397
|
},
|
|
86387
|
-
|
|
86388
|
-
(position, buffer, readString) => {
|
|
86398
|
+
function methodDefinition(position, buffer, readString) {
|
|
86389
86399
|
const start = buffer[position++];
|
|
86390
86400
|
const end = buffer[position++];
|
|
86391
|
-
const
|
|
86392
|
-
const computed =
|
|
86393
|
-
const isStatic =
|
|
86401
|
+
const flags = buffer[position++];
|
|
86402
|
+
const computed = (flags & 1) === 1;
|
|
86403
|
+
const isStatic = (flags & 2) === 2;
|
|
86394
86404
|
const value = convertNode(buffer[position++], buffer, readString);
|
|
86405
|
+
const kind = FIXED_STRINGS[buffer[position++]];
|
|
86395
86406
|
const key = convertNode(position, buffer, readString);
|
|
86396
86407
|
return {
|
|
86397
86408
|
type: "MethodDefinition",
|
|
86398
86409
|
start,
|
|
86399
86410
|
end,
|
|
86400
86411
|
computed,
|
|
86401
|
-
key,
|
|
86402
|
-
kind,
|
|
86403
86412
|
static: isStatic,
|
|
86404
|
-
|
|
86413
|
+
key,
|
|
86414
|
+
value,
|
|
86415
|
+
kind
|
|
86405
86416
|
};
|
|
86406
86417
|
},
|
|
86407
|
-
|
|
86408
|
-
(position, buffer, readString) => {
|
|
86418
|
+
function newExpression(position, buffer, readString) {
|
|
86409
86419
|
const start = buffer[position++];
|
|
86410
86420
|
const end = buffer[position++];
|
|
86411
86421
|
const callee = convertNode(buffer[position++], buffer, readString);
|
|
86412
|
-
const
|
|
86413
|
-
const annotations =
|
|
86414
|
-
return
|
|
86422
|
+
const callArguments = convertNodeList(buffer[position++], buffer, readString);
|
|
86423
|
+
const annotations = convertAnnotations(position, buffer);
|
|
86424
|
+
return {
|
|
86415
86425
|
type: "NewExpression",
|
|
86416
86426
|
start,
|
|
86417
86427
|
end,
|
|
86418
|
-
|
|
86419
|
-
callee
|
|
86420
|
-
|
|
86428
|
+
...annotations.length > 0 ? { [ANNOTATION_KEY]: annotations } : {},
|
|
86429
|
+
callee,
|
|
86430
|
+
arguments: callArguments
|
|
86431
|
+
};
|
|
86421
86432
|
},
|
|
86422
|
-
|
|
86423
|
-
(position, buffer, readString) => {
|
|
86433
|
+
function objectExpression(position, buffer, readString) {
|
|
86424
86434
|
const start = buffer[position++];
|
|
86425
86435
|
const end = buffer[position++];
|
|
86426
86436
|
const properties = convertNodeList(position, buffer, readString);
|
|
@@ -86431,8 +86441,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86431
86441
|
properties
|
|
86432
86442
|
};
|
|
86433
86443
|
},
|
|
86434
|
-
|
|
86435
|
-
(position, buffer, readString) => {
|
|
86444
|
+
function objectPattern(position, buffer, readString) {
|
|
86436
86445
|
const start = buffer[position++];
|
|
86437
86446
|
const end = buffer[position++];
|
|
86438
86447
|
const properties = convertNodeList(position, buffer, readString);
|
|
@@ -86443,8 +86452,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86443
86452
|
properties
|
|
86444
86453
|
};
|
|
86445
86454
|
},
|
|
86446
|
-
|
|
86447
|
-
(position, buffer, readString) => {
|
|
86455
|
+
function privateIdentifier(position, buffer, readString) {
|
|
86448
86456
|
const start = buffer[position++];
|
|
86449
86457
|
const end = buffer[position++];
|
|
86450
86458
|
const name = convertString(position, buffer, readString);
|
|
@@ -86455,62 +86463,62 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86455
86463
|
name
|
|
86456
86464
|
};
|
|
86457
86465
|
},
|
|
86458
|
-
|
|
86459
|
-
(position, buffer, readString) => {
|
|
86466
|
+
function program(position, buffer, readString) {
|
|
86460
86467
|
const start = buffer[position++];
|
|
86461
86468
|
const end = buffer[position++];
|
|
86462
|
-
const annotations =
|
|
86469
|
+
const annotations = convertAnnotations(buffer[position++], buffer);
|
|
86463
86470
|
const body = convertNodeList(position, buffer, readString);
|
|
86464
|
-
return
|
|
86471
|
+
return {
|
|
86465
86472
|
type: "Program",
|
|
86466
86473
|
start,
|
|
86467
86474
|
end,
|
|
86468
86475
|
body,
|
|
86476
|
+
...annotations.length > 0 ? { [INVALID_ANNOTATION_KEY]: annotations } : {},
|
|
86469
86477
|
sourceType: "module"
|
|
86470
|
-
}
|
|
86478
|
+
};
|
|
86471
86479
|
},
|
|
86472
|
-
|
|
86473
|
-
(position, buffer, readString) => {
|
|
86480
|
+
function property(position, buffer, readString) {
|
|
86474
86481
|
const start = buffer[position++];
|
|
86475
86482
|
const end = buffer[position++];
|
|
86476
|
-
const
|
|
86477
|
-
const method =
|
|
86478
|
-
const
|
|
86479
|
-
const
|
|
86480
|
-
const
|
|
86481
|
-
const
|
|
86483
|
+
const flags = buffer[position++];
|
|
86484
|
+
const method = (flags & 1) === 1;
|
|
86485
|
+
const shorthand = (flags & 2) === 2;
|
|
86486
|
+
const computed = (flags & 4) === 4;
|
|
86487
|
+
const keyPosition = buffer[position++];
|
|
86488
|
+
const value = convertNode(buffer[position++], buffer, readString);
|
|
86489
|
+
const kind = FIXED_STRINGS[buffer[position]];
|
|
86482
86490
|
return {
|
|
86483
86491
|
type: "Property",
|
|
86484
86492
|
start,
|
|
86485
86493
|
end,
|
|
86486
|
-
computed,
|
|
86487
|
-
key,
|
|
86488
|
-
kind,
|
|
86489
86494
|
method,
|
|
86490
86495
|
shorthand,
|
|
86491
|
-
|
|
86496
|
+
computed,
|
|
86497
|
+
key: keyPosition === 0 ? { ...value } : convertNode(keyPosition, buffer, readString),
|
|
86498
|
+
value,
|
|
86499
|
+
kind
|
|
86492
86500
|
};
|
|
86493
86501
|
},
|
|
86494
|
-
|
|
86495
|
-
(position, buffer, readString) => {
|
|
86502
|
+
function propertyDefinition(position, buffer, readString) {
|
|
86496
86503
|
const start = buffer[position++];
|
|
86497
86504
|
const end = buffer[position++];
|
|
86498
|
-
const
|
|
86499
|
-
const
|
|
86505
|
+
const flags = buffer[position++];
|
|
86506
|
+
const computed = (flags & 1) === 1;
|
|
86507
|
+
const isStatic = (flags & 2) === 2;
|
|
86500
86508
|
const valuePosition = buffer[position++];
|
|
86509
|
+
const value = valuePosition === 0 ? null : convertNode(valuePosition, buffer, readString);
|
|
86501
86510
|
const key = convertNode(position, buffer, readString);
|
|
86502
86511
|
return {
|
|
86503
86512
|
type: "PropertyDefinition",
|
|
86504
86513
|
start,
|
|
86505
86514
|
end,
|
|
86506
86515
|
computed,
|
|
86507
|
-
key,
|
|
86508
86516
|
static: isStatic,
|
|
86509
|
-
|
|
86517
|
+
key,
|
|
86518
|
+
value
|
|
86510
86519
|
};
|
|
86511
86520
|
},
|
|
86512
|
-
|
|
86513
|
-
(position, buffer, readString) => {
|
|
86521
|
+
function restElement(position, buffer, readString) {
|
|
86514
86522
|
const start = buffer[position++];
|
|
86515
86523
|
const end = buffer[position++];
|
|
86516
86524
|
const argument = convertNode(position, buffer, readString);
|
|
@@ -86521,20 +86529,19 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86521
86529
|
argument
|
|
86522
86530
|
};
|
|
86523
86531
|
},
|
|
86524
|
-
|
|
86525
|
-
(position, buffer, readString) => {
|
|
86532
|
+
function returnStatement(position, buffer, readString) {
|
|
86526
86533
|
const start = buffer[position++];
|
|
86527
86534
|
const end = buffer[position++];
|
|
86528
86535
|
const argumentPosition = buffer[position];
|
|
86536
|
+
const argument = argumentPosition === 0 ? null : convertNode(argumentPosition, buffer, readString);
|
|
86529
86537
|
return {
|
|
86530
86538
|
type: "ReturnStatement",
|
|
86531
86539
|
start,
|
|
86532
86540
|
end,
|
|
86533
|
-
argument
|
|
86541
|
+
argument
|
|
86534
86542
|
};
|
|
86535
86543
|
},
|
|
86536
|
-
|
|
86537
|
-
(position, buffer, readString) => {
|
|
86544
|
+
function sequenceExpression(position, buffer, readString) {
|
|
86538
86545
|
const start = buffer[position++];
|
|
86539
86546
|
const end = buffer[position++];
|
|
86540
86547
|
const expressions = convertNodeList(position, buffer, readString);
|
|
@@ -86545,8 +86552,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86545
86552
|
expressions
|
|
86546
86553
|
};
|
|
86547
86554
|
},
|
|
86548
|
-
|
|
86549
|
-
(position, buffer, readString) => {
|
|
86555
|
+
function spreadElement(position, buffer, readString) {
|
|
86550
86556
|
const start = buffer[position++];
|
|
86551
86557
|
const end = buffer[position++];
|
|
86552
86558
|
const argument = convertNode(position, buffer, readString);
|
|
@@ -86557,8 +86563,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86557
86563
|
argument
|
|
86558
86564
|
};
|
|
86559
86565
|
},
|
|
86560
|
-
|
|
86561
|
-
(position, buffer, readString) => {
|
|
86566
|
+
function staticBlock(position, buffer, readString) {
|
|
86562
86567
|
const start = buffer[position++];
|
|
86563
86568
|
const end = buffer[position++];
|
|
86564
86569
|
const body = convertNodeList(position, buffer, readString);
|
|
@@ -86569,8 +86574,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86569
86574
|
body
|
|
86570
86575
|
};
|
|
86571
86576
|
},
|
|
86572
|
-
|
|
86573
|
-
(position, buffer) => {
|
|
86577
|
+
function superElement(position, buffer) {
|
|
86574
86578
|
const start = buffer[position++];
|
|
86575
86579
|
const end = buffer[position++];
|
|
86576
86580
|
return {
|
|
@@ -86579,22 +86583,21 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86579
86583
|
end
|
|
86580
86584
|
};
|
|
86581
86585
|
},
|
|
86582
|
-
|
|
86583
|
-
(position, buffer, readString) => {
|
|
86586
|
+
function switchCase(position, buffer, readString) {
|
|
86584
86587
|
const start = buffer[position++];
|
|
86585
86588
|
const end = buffer[position++];
|
|
86586
86589
|
const testPosition = buffer[position++];
|
|
86590
|
+
const test = testPosition === 0 ? null : convertNode(testPosition, buffer, readString);
|
|
86587
86591
|
const consequent = convertNodeList(buffer[position], buffer, readString);
|
|
86588
86592
|
return {
|
|
86589
86593
|
type: "SwitchCase",
|
|
86590
86594
|
start,
|
|
86591
86595
|
end,
|
|
86592
|
-
|
|
86593
|
-
|
|
86596
|
+
test,
|
|
86597
|
+
consequent
|
|
86594
86598
|
};
|
|
86595
86599
|
},
|
|
86596
|
-
|
|
86597
|
-
(position, buffer, readString) => {
|
|
86600
|
+
function switchStatement(position, buffer, readString) {
|
|
86598
86601
|
const start = buffer[position++];
|
|
86599
86602
|
const end = buffer[position++];
|
|
86600
86603
|
const cases = convertNodeList(buffer[position++], buffer, readString);
|
|
@@ -86603,12 +86606,11 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86603
86606
|
type: "SwitchStatement",
|
|
86604
86607
|
start,
|
|
86605
86608
|
end,
|
|
86606
|
-
|
|
86607
|
-
|
|
86609
|
+
discriminant,
|
|
86610
|
+
cases
|
|
86608
86611
|
};
|
|
86609
86612
|
},
|
|
86610
|
-
|
|
86611
|
-
(position, buffer, readString) => {
|
|
86613
|
+
function taggedTemplateExpression(position, buffer, readString) {
|
|
86612
86614
|
const start = buffer[position++];
|
|
86613
86615
|
const end = buffer[position++];
|
|
86614
86616
|
const quasi = convertNode(buffer[position++], buffer, readString);
|
|
@@ -86617,30 +86619,27 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86617
86619
|
type: "TaggedTemplateExpression",
|
|
86618
86620
|
start,
|
|
86619
86621
|
end,
|
|
86620
|
-
|
|
86621
|
-
|
|
86622
|
+
tag,
|
|
86623
|
+
quasi
|
|
86622
86624
|
};
|
|
86623
86625
|
},
|
|
86624
|
-
|
|
86625
|
-
(position, buffer, readString) => {
|
|
86626
|
+
function templateElement(position, buffer, readString) {
|
|
86626
86627
|
const start = buffer[position++];
|
|
86627
86628
|
const end = buffer[position++];
|
|
86628
|
-
const
|
|
86629
|
+
const flags = buffer[position++];
|
|
86630
|
+
const tail = (flags & 1) === 1;
|
|
86629
86631
|
const cookedPosition = buffer[position++];
|
|
86632
|
+
const cooked = cookedPosition === 0 ? void 0 : convertString(cookedPosition, buffer, readString);
|
|
86630
86633
|
const raw = convertString(position, buffer, readString);
|
|
86631
86634
|
return {
|
|
86632
86635
|
type: "TemplateElement",
|
|
86633
86636
|
start,
|
|
86634
86637
|
end,
|
|
86635
86638
|
tail,
|
|
86636
|
-
value: {
|
|
86637
|
-
cooked: cookedPosition ? convertString(cookedPosition, buffer, readString) : null,
|
|
86638
|
-
raw
|
|
86639
|
-
}
|
|
86639
|
+
value: { cooked, raw }
|
|
86640
86640
|
};
|
|
86641
86641
|
},
|
|
86642
|
-
|
|
86643
|
-
(position, buffer, readString) => {
|
|
86642
|
+
function templateLiteral(position, buffer, readString) {
|
|
86644
86643
|
const start = buffer[position++];
|
|
86645
86644
|
const end = buffer[position++];
|
|
86646
86645
|
const expressions = convertNodeList(buffer[position++], buffer, readString);
|
|
@@ -86649,12 +86648,11 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86649
86648
|
type: "TemplateLiteral",
|
|
86650
86649
|
start,
|
|
86651
86650
|
end,
|
|
86652
|
-
|
|
86653
|
-
|
|
86651
|
+
quasis,
|
|
86652
|
+
expressions
|
|
86654
86653
|
};
|
|
86655
86654
|
},
|
|
86656
|
-
|
|
86657
|
-
(position, buffer) => {
|
|
86655
|
+
function thisExpression(position, buffer) {
|
|
86658
86656
|
const start = buffer[position++];
|
|
86659
86657
|
const end = buffer[position++];
|
|
86660
86658
|
return {
|
|
@@ -86663,8 +86661,7 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86663
86661
|
end
|
|
86664
86662
|
};
|
|
86665
86663
|
},
|
|
86666
|
-
|
|
86667
|
-
(position, buffer, readString) => {
|
|
86664
|
+
function throwStatement(position, buffer, readString) {
|
|
86668
86665
|
const start = buffer[position++];
|
|
86669
86666
|
const end = buffer[position++];
|
|
86670
86667
|
const argument = convertNode(position, buffer, readString);
|
|
@@ -86675,24 +86672,24 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86675
86672
|
argument
|
|
86676
86673
|
};
|
|
86677
86674
|
},
|
|
86678
|
-
|
|
86679
|
-
(position, buffer, readString) => {
|
|
86675
|
+
function tryStatement(position, buffer, readString) {
|
|
86680
86676
|
const start = buffer[position++];
|
|
86681
86677
|
const end = buffer[position++];
|
|
86682
86678
|
const handlerPosition = buffer[position++];
|
|
86679
|
+
const handler = handlerPosition === 0 ? null : convertNode(handlerPosition, buffer, readString);
|
|
86683
86680
|
const finalizerPosition = buffer[position++];
|
|
86681
|
+
const finalizer = finalizerPosition === 0 ? null : convertNode(finalizerPosition, buffer, readString);
|
|
86684
86682
|
const block = convertNode(position, buffer, readString);
|
|
86685
86683
|
return {
|
|
86686
86684
|
type: "TryStatement",
|
|
86687
86685
|
start,
|
|
86688
86686
|
end,
|
|
86689
86687
|
block,
|
|
86690
|
-
|
|
86691
|
-
|
|
86688
|
+
handler,
|
|
86689
|
+
finalizer
|
|
86692
86690
|
};
|
|
86693
86691
|
},
|
|
86694
|
-
|
|
86695
|
-
(position, buffer, readString) => {
|
|
86692
|
+
function unaryExpression(position, buffer, readString) {
|
|
86696
86693
|
const start = buffer[position++];
|
|
86697
86694
|
const end = buffer[position++];
|
|
86698
86695
|
const operator = FIXED_STRINGS[buffer[position++]];
|
|
@@ -86701,29 +86698,28 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86701
86698
|
type: "UnaryExpression",
|
|
86702
86699
|
start,
|
|
86703
86700
|
end,
|
|
86704
|
-
argument,
|
|
86705
86701
|
operator,
|
|
86702
|
+
argument,
|
|
86706
86703
|
prefix: true
|
|
86707
86704
|
};
|
|
86708
86705
|
},
|
|
86709
|
-
|
|
86710
|
-
(position, buffer, readString) => {
|
|
86706
|
+
function updateExpression(position, buffer, readString) {
|
|
86711
86707
|
const start = buffer[position++];
|
|
86712
86708
|
const end = buffer[position++];
|
|
86713
|
-
const
|
|
86709
|
+
const flags = buffer[position++];
|
|
86710
|
+
const prefix = (flags & 1) === 1;
|
|
86714
86711
|
const operator = FIXED_STRINGS[buffer[position++]];
|
|
86715
86712
|
const argument = convertNode(position, buffer, readString);
|
|
86716
86713
|
return {
|
|
86717
86714
|
type: "UpdateExpression",
|
|
86718
86715
|
start,
|
|
86719
86716
|
end,
|
|
86720
|
-
|
|
86717
|
+
prefix,
|
|
86721
86718
|
operator,
|
|
86722
|
-
|
|
86719
|
+
argument
|
|
86723
86720
|
};
|
|
86724
86721
|
},
|
|
86725
|
-
|
|
86726
|
-
(position, buffer, readString) => {
|
|
86722
|
+
function variableDeclaration(position, buffer, readString) {
|
|
86727
86723
|
const start = buffer[position++];
|
|
86728
86724
|
const end = buffer[position++];
|
|
86729
86725
|
const kind = FIXED_STRINGS[buffer[position++]];
|
|
@@ -86732,26 +86728,25 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86732
86728
|
type: "VariableDeclaration",
|
|
86733
86729
|
start,
|
|
86734
86730
|
end,
|
|
86735
|
-
|
|
86736
|
-
|
|
86731
|
+
kind,
|
|
86732
|
+
declarations
|
|
86737
86733
|
};
|
|
86738
86734
|
},
|
|
86739
|
-
|
|
86740
|
-
(position, buffer, readString) => {
|
|
86735
|
+
function variableDeclarator(position, buffer, readString) {
|
|
86741
86736
|
const start = buffer[position++];
|
|
86742
86737
|
const end = buffer[position++];
|
|
86743
|
-
const
|
|
86738
|
+
const initPosition = buffer[position++];
|
|
86739
|
+
const init = initPosition === 0 ? null : convertNode(initPosition, buffer, readString);
|
|
86744
86740
|
const id = convertNode(position, buffer, readString);
|
|
86745
86741
|
return {
|
|
86746
86742
|
type: "VariableDeclarator",
|
|
86747
86743
|
start,
|
|
86748
86744
|
end,
|
|
86749
86745
|
id,
|
|
86750
|
-
init
|
|
86746
|
+
init
|
|
86751
86747
|
};
|
|
86752
86748
|
},
|
|
86753
|
-
|
|
86754
|
-
(position, buffer, readString) => {
|
|
86749
|
+
function whileStatement(position, buffer, readString) {
|
|
86755
86750
|
const start = buffer[position++];
|
|
86756
86751
|
const end = buffer[position++];
|
|
86757
86752
|
const body = convertNode(buffer[position++], buffer, readString);
|
|
@@ -86760,32 +86755,36 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86760
86755
|
type: "WhileStatement",
|
|
86761
86756
|
start,
|
|
86762
86757
|
end,
|
|
86763
|
-
|
|
86764
|
-
|
|
86758
|
+
test,
|
|
86759
|
+
body
|
|
86765
86760
|
};
|
|
86766
86761
|
},
|
|
86767
|
-
|
|
86768
|
-
(position, buffer, readString) => {
|
|
86762
|
+
function yieldExpression(position, buffer, readString) {
|
|
86769
86763
|
const start = buffer[position++];
|
|
86770
86764
|
const end = buffer[position++];
|
|
86771
|
-
const
|
|
86765
|
+
const flags = buffer[position++];
|
|
86766
|
+
const delegate = (flags & 1) === 1;
|
|
86772
86767
|
const argumentPosition = buffer[position];
|
|
86768
|
+
const argument = argumentPosition === 0 ? null : convertNode(argumentPosition, buffer, readString);
|
|
86773
86769
|
return {
|
|
86774
86770
|
type: "YieldExpression",
|
|
86775
86771
|
start,
|
|
86776
86772
|
end,
|
|
86777
|
-
|
|
86778
|
-
|
|
86773
|
+
delegate,
|
|
86774
|
+
argument
|
|
86779
86775
|
};
|
|
86780
|
-
},
|
|
86781
|
-
// index:76; Syntax Error
|
|
86782
|
-
(position, buffer, readString) => {
|
|
86783
|
-
const pos = buffer[position++];
|
|
86784
|
-
const message = convertString(position, buffer, readString);
|
|
86785
|
-
error(logParseError(message, pos));
|
|
86786
86776
|
}
|
|
86787
86777
|
];
|
|
86788
|
-
|
|
86778
|
+
function convertNode(position, buffer, readString) {
|
|
86779
|
+
const nodeType = buffer[position];
|
|
86780
|
+
const converter = nodeConverters[nodeType];
|
|
86781
|
+
if (!converter) {
|
|
86782
|
+
console.trace();
|
|
86783
|
+
throw new Error(`Unknown node type: ${nodeType}`);
|
|
86784
|
+
}
|
|
86785
|
+
return converter(position + 1, buffer, readString);
|
|
86786
|
+
}
|
|
86787
|
+
function convertNodeList(position, buffer, readString) {
|
|
86789
86788
|
const length = buffer[position++];
|
|
86790
86789
|
const list = [];
|
|
86791
86790
|
for (let index = 0; index < length; index++) {
|
|
@@ -86793,8 +86792,8 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86793
86792
|
list.push(nodePosition ? convertNode(nodePosition, buffer, readString) : null);
|
|
86794
86793
|
}
|
|
86795
86794
|
return list;
|
|
86796
|
-
}
|
|
86797
|
-
var
|
|
86795
|
+
}
|
|
86796
|
+
var convertAnnotations = (position, buffer) => {
|
|
86798
86797
|
const length = buffer[position++];
|
|
86799
86798
|
const list = [];
|
|
86800
86799
|
for (let index = 0; index < length; index++) {
|
|
@@ -86808,22 +86807,11 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86808
86807
|
const type = FIXED_STRINGS[buffer[position]];
|
|
86809
86808
|
return { end, start, type };
|
|
86810
86809
|
};
|
|
86811
|
-
var addAnnotationProperty = (node, annotations, key) => {
|
|
86812
|
-
if (annotations.length > 0) {
|
|
86813
|
-
return {
|
|
86814
|
-
...node,
|
|
86815
|
-
[key]: annotations
|
|
86816
|
-
};
|
|
86817
|
-
}
|
|
86818
|
-
return node;
|
|
86819
|
-
};
|
|
86820
86810
|
var convertString = (position, buffer, readString) => {
|
|
86821
86811
|
const length = buffer[position++];
|
|
86822
86812
|
const bytePosition = position << 2;
|
|
86823
86813
|
return readString(bytePosition, length);
|
|
86824
86814
|
};
|
|
86825
|
-
var ANNOTATION_KEY = "_rollupAnnotations";
|
|
86826
|
-
var INVALID_ANNOTATION_KEY = "_rollupRemoved";
|
|
86827
86815
|
function getReadStringFunction(astBuffer) {
|
|
86828
86816
|
if (typeof Buffer !== "undefined" && astBuffer instanceof Buffer) {
|
|
86829
86817
|
return function readString(start, length) {
|
|
@@ -86838,15 +86826,11 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86838
86826
|
}
|
|
86839
86827
|
var parseAst = (input, { allowReturnOutsideFunction = false } = {}) => {
|
|
86840
86828
|
const astBuffer = native_js.parse(input, allowReturnOutsideFunction);
|
|
86841
|
-
|
|
86842
|
-
const result = convertProgram(astBuffer.buffer, readString);
|
|
86843
|
-
return result;
|
|
86829
|
+
return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
|
|
86844
86830
|
};
|
|
86845
86831
|
var parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal } = {}) => {
|
|
86846
86832
|
const astBuffer = await native_js.parseAsync(input, allowReturnOutsideFunction, signal);
|
|
86847
|
-
|
|
86848
|
-
const result = convertProgram(astBuffer.buffer, readString);
|
|
86849
|
-
return result;
|
|
86833
|
+
return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
|
|
86850
86834
|
};
|
|
86851
86835
|
exports2.ANNOTATION_KEY = ANNOTATION_KEY;
|
|
86852
86836
|
exports2.INVALID_ANNOTATION_KEY = INVALID_ANNOTATION_KEY;
|
|
@@ -86939,7 +86923,6 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86939
86923
|
exports2.logInvalidFunctionPluginHook = logInvalidFunctionPluginHook;
|
|
86940
86924
|
exports2.logInvalidLogPosition = logInvalidLogPosition;
|
|
86941
86925
|
exports2.logInvalidOption = logInvalidOption;
|
|
86942
|
-
exports2.logInvalidRollupPhaseForAddWatchFile = logInvalidRollupPhaseForAddWatchFile;
|
|
86943
86926
|
exports2.logInvalidRollupPhaseForChunkEmission = logInvalidRollupPhaseForChunkEmission;
|
|
86944
86927
|
exports2.logInvalidSetAssetSourceCall = logInvalidSetAssetSourceCall;
|
|
86945
86928
|
exports2.logInvalidSourcemapForError = logInvalidSourcemapForError;
|
|
@@ -86985,9 +86968,9 @@ ${smallChunks} are below minChunkSize.`
|
|
|
86985
86968
|
}
|
|
86986
86969
|
});
|
|
86987
86970
|
|
|
86988
|
-
// node_modules/.pnpm/rollup@4.
|
|
86971
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/rollup.js
|
|
86989
86972
|
var require_rollup = __commonJS({
|
|
86990
|
-
"node_modules/.pnpm/rollup@4.
|
|
86973
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/rollup.js"(exports2) {
|
|
86991
86974
|
"use strict";
|
|
86992
86975
|
var parseAst_js = require_parseAst();
|
|
86993
86976
|
var process$1 = require("node:process");
|
|
@@ -87008,7 +86991,7 @@ var require_rollup = __commonJS({
|
|
|
87008
86991
|
return n2;
|
|
87009
86992
|
}
|
|
87010
86993
|
var tty__namespace = /* @__PURE__ */ _interopNamespaceDefault(tty);
|
|
87011
|
-
var version = "4.
|
|
86994
|
+
var version = "4.10.0";
|
|
87012
86995
|
function ensureArray$1(items) {
|
|
87013
86996
|
if (Array.isArray(items)) {
|
|
87014
86997
|
return items.filter(Boolean);
|
|
@@ -87025,19 +87008,23 @@ var require_rollup = __commonJS({
|
|
|
87025
87008
|
BuildPhase2[BuildPhase2["GENERATE"] = 2] = "GENERATE";
|
|
87026
87009
|
})(BuildPhase || (BuildPhase = {}));
|
|
87027
87010
|
var textEncoder;
|
|
87028
|
-
|
|
87029
|
-
|
|
87011
|
+
var getHash64 = (input) => native_js.xxhashBase64Url(ensureBuffer(input));
|
|
87012
|
+
var getHash36 = (input) => native_js.xxhashBase36(ensureBuffer(input));
|
|
87013
|
+
var getHash16 = (input) => native_js.xxhashBase16(ensureBuffer(input));
|
|
87014
|
+
var hasherByType = {
|
|
87015
|
+
base36: getHash36,
|
|
87016
|
+
base64: getHash64,
|
|
87017
|
+
hex: getHash16
|
|
87018
|
+
};
|
|
87019
|
+
function ensureBuffer(input) {
|
|
87030
87020
|
if (typeof input === "string") {
|
|
87031
87021
|
if (typeof Buffer === "undefined") {
|
|
87032
87022
|
textEncoder ??= new TextEncoder();
|
|
87033
|
-
|
|
87034
|
-
} else {
|
|
87035
|
-
buffer = Buffer.from(input);
|
|
87023
|
+
return textEncoder.encode(input);
|
|
87036
87024
|
}
|
|
87037
|
-
|
|
87038
|
-
buffer = input;
|
|
87025
|
+
return Buffer.from(input);
|
|
87039
87026
|
}
|
|
87040
|
-
return
|
|
87027
|
+
return input;
|
|
87041
87028
|
}
|
|
87042
87029
|
function getOrCreate(map, key, init2) {
|
|
87043
87030
|
const existing = map.get(key);
|
|
@@ -87068,13 +87055,13 @@ var require_rollup = __commonJS({
|
|
|
87068
87055
|
var hashPlaceholderLeft = "!~{";
|
|
87069
87056
|
var hashPlaceholderRight = "}~";
|
|
87070
87057
|
var hashPlaceholderOverhead = hashPlaceholderLeft.length + hashPlaceholderRight.length;
|
|
87071
|
-
var
|
|
87072
|
-
var
|
|
87058
|
+
var MAX_HASH_SIZE = 22;
|
|
87059
|
+
var DEFAULT_HASH_SIZE = 8;
|
|
87073
87060
|
var getHashPlaceholderGenerator = () => {
|
|
87074
87061
|
let nextIndex = 0;
|
|
87075
|
-
return (optionName, hashSize
|
|
87076
|
-
if (hashSize >
|
|
87077
|
-
return parseAst_js.error(parseAst_js.logFailedValidation(`Hashes cannot be longer than ${
|
|
87062
|
+
return (optionName, hashSize) => {
|
|
87063
|
+
if (hashSize > MAX_HASH_SIZE) {
|
|
87064
|
+
return parseAst_js.error(parseAst_js.logFailedValidation(`Hashes cannot be longer than ${MAX_HASH_SIZE} characters, received ${hashSize}. Check the "${optionName}" option.`));
|
|
87078
87065
|
}
|
|
87079
87066
|
const placeholder = `${hashPlaceholderLeft}${toBase64(++nextIndex).padStart(hashSize - hashPlaceholderOverhead, "0")}${hashPlaceholderRight}`;
|
|
87080
87067
|
if (placeholder.length > hashSize) {
|
|
@@ -87083,7 +87070,7 @@ var require_rollup = __commonJS({
|
|
|
87083
87070
|
return placeholder;
|
|
87084
87071
|
};
|
|
87085
87072
|
};
|
|
87086
|
-
var REPLACER_REGEX = new RegExp(`${hashPlaceholderLeft}[0-9a-zA-Z_$]{1,${
|
|
87073
|
+
var REPLACER_REGEX = new RegExp(`${hashPlaceholderLeft}[0-9a-zA-Z_$]{1,${MAX_HASH_SIZE - hashPlaceholderOverhead}}${hashPlaceholderRight}`, "g");
|
|
87087
87074
|
var replacePlaceholders = (code, hashesByPlaceholder) => code.replace(REPLACER_REGEX, (placeholder) => hashesByPlaceholder.get(placeholder) || placeholder);
|
|
87088
87075
|
var replaceSinglePlaceholder = (code, placeholder, value) => code.replace(REPLACER_REGEX, (match) => match === placeholder ? value : match);
|
|
87089
87076
|
var replacePlaceholdersWithDefaultAndGetContainedPlaceholders = (code, placeholders) => {
|
|
@@ -87169,7 +87156,7 @@ var require_rollup = __commonJS({
|
|
|
87169
87156
|
return makeUnique(renderNamePattern(typeof outputOptions.assetFileNames === "function" ? outputOptions.assetFileNames({ name, source, type: "asset" }) : outputOptions.assetFileNames, "output.assetFileNames", {
|
|
87170
87157
|
ext: () => node_path.extname(emittedName).slice(1),
|
|
87171
87158
|
extname: () => node_path.extname(emittedName),
|
|
87172
|
-
hash: (size) => sourceHash.slice(0, Math.max(0, size ||
|
|
87159
|
+
hash: (size) => sourceHash.slice(0, Math.max(0, size || DEFAULT_HASH_SIZE)),
|
|
87173
87160
|
name: () => emittedName.slice(0, Math.max(0, emittedName.length - node_path.extname(emittedName).length))
|
|
87174
87161
|
}), bundle);
|
|
87175
87162
|
}
|
|
@@ -87275,9 +87262,11 @@ var require_rollup = __commonJS({
|
|
|
87275
87262
|
this.facadeChunkByModule = facadeChunkByModule;
|
|
87276
87263
|
};
|
|
87277
87264
|
this.setOutputBundle = (bundle, outputOptions) => {
|
|
87265
|
+
const getHash = hasherByType[outputOptions.hashCharacters];
|
|
87278
87266
|
const output = this.output = {
|
|
87279
87267
|
bundle,
|
|
87280
87268
|
fileNamesBySource: /* @__PURE__ */ new Map(),
|
|
87269
|
+
getHash,
|
|
87281
87270
|
outputOptions
|
|
87282
87271
|
};
|
|
87283
87272
|
for (const emittedFile of this.filesByReferenceId.values()) {
|
|
@@ -87291,7 +87280,7 @@ var require_rollup = __commonJS({
|
|
|
87291
87280
|
if (consumedFile.fileName) {
|
|
87292
87281
|
this.finalizeAdditionalAsset(consumedFile, consumedFile.source, output);
|
|
87293
87282
|
} else {
|
|
87294
|
-
const sourceHash =
|
|
87283
|
+
const sourceHash = getHash(consumedFile.source);
|
|
87295
87284
|
getOrCreate(consumedAssetsByHash, sourceHash, () => []).push(consumedFile);
|
|
87296
87285
|
}
|
|
87297
87286
|
} else if (consumedFile.type === "prebuilt-chunk") {
|
|
@@ -87311,7 +87300,7 @@ var require_rollup = __commonJS({
|
|
|
87311
87300
|
assignReferenceId(file, idBase) {
|
|
87312
87301
|
let referenceId = idBase;
|
|
87313
87302
|
do {
|
|
87314
|
-
referenceId =
|
|
87303
|
+
referenceId = getHash64(referenceId).slice(0, 8).replaceAll("-", "$");
|
|
87315
87304
|
} while (this.filesByReferenceId.has(referenceId) || this.outputFileEmitters.some(({ filesByReferenceId }) => filesByReferenceId.has(referenceId)));
|
|
87316
87305
|
file.referenceId = referenceId;
|
|
87317
87306
|
this.filesByReferenceId.set(referenceId, file);
|
|
@@ -87411,10 +87400,10 @@ var require_rollup = __commonJS({
|
|
|
87411
87400
|
}
|
|
87412
87401
|
return referenceId;
|
|
87413
87402
|
}
|
|
87414
|
-
finalizeAdditionalAsset(consumedFile, source, { bundle, fileNamesBySource, outputOptions }) {
|
|
87403
|
+
finalizeAdditionalAsset(consumedFile, source, { bundle, fileNamesBySource, getHash, outputOptions }) {
|
|
87415
87404
|
let { fileName, needsCodeReference, referenceId } = consumedFile;
|
|
87416
87405
|
if (!fileName) {
|
|
87417
|
-
const sourceHash =
|
|
87406
|
+
const sourceHash = getHash(source);
|
|
87418
87407
|
fileName = fileNamesBySource.get(sourceHash);
|
|
87419
87408
|
if (!fileName) {
|
|
87420
87409
|
fileName = generateAssetFileName(consumedFile.name, source, sourceHash, outputOptions, bundle);
|
|
@@ -87728,9 +87717,6 @@ var require_rollup = __commonJS({
|
|
|
87728
87717
|
}
|
|
87729
87718
|
return {
|
|
87730
87719
|
addWatchFile(id) {
|
|
87731
|
-
if (graph.phase >= BuildPhase.GENERATE) {
|
|
87732
|
-
return this.error(parseAst_js.logInvalidRollupPhaseForAddWatchFile());
|
|
87733
|
-
}
|
|
87734
87720
|
graph.watchFiles[id] = true;
|
|
87735
87721
|
},
|
|
87736
87722
|
cache: cacheInstance,
|
|
@@ -88166,6 +88152,7 @@ var require_rollup = __commonJS({
|
|
|
88166
88152
|
freeze: getOption("freeze"),
|
|
88167
88153
|
generatedCode: getObjectOption(config, overrides, "generatedCode", objectifyOptionWithPresets(generatedCodePresets, "output.generatedCode", parseAst_js.URL_OUTPUT_GENERATEDCODE, "")),
|
|
88168
88154
|
globals: getOption("globals"),
|
|
88155
|
+
hashCharacters: getOption("hashCharacters"),
|
|
88169
88156
|
hoistTransitiveImports: getOption("hoistTransitiveImports"),
|
|
88170
88157
|
indent: getOption("indent"),
|
|
88171
88158
|
inlineDynamicImports: getOption("inlineDynamicImports"),
|
|
@@ -88564,6 +88551,15 @@ var require_rollup = __commonJS({
|
|
|
88564
88551
|
prependRight(content) {
|
|
88565
88552
|
this.intro = content + this.intro;
|
|
88566
88553
|
}
|
|
88554
|
+
reset() {
|
|
88555
|
+
this.intro = "";
|
|
88556
|
+
this.outro = "";
|
|
88557
|
+
if (this.edited) {
|
|
88558
|
+
this.content = this.original;
|
|
88559
|
+
this.storeName = false;
|
|
88560
|
+
this.edited = false;
|
|
88561
|
+
}
|
|
88562
|
+
}
|
|
88567
88563
|
split(index) {
|
|
88568
88564
|
const sliceIndex = index - this.start;
|
|
88569
88565
|
const originalBefore = this.original.slice(0, sliceIndex);
|
|
@@ -88632,8 +88628,8 @@ var require_rollup = __commonJS({
|
|
|
88632
88628
|
}
|
|
88633
88629
|
};
|
|
88634
88630
|
function getBtoa() {
|
|
88635
|
-
if (typeof
|
|
88636
|
-
return (str) =>
|
|
88631
|
+
if (typeof globalThis !== "undefined" && typeof globalThis.btoa === "function") {
|
|
88632
|
+
return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
|
|
88637
88633
|
} else if (typeof Buffer === "function") {
|
|
88638
88634
|
return (str) => Buffer.from(str, "utf-8").toString("base64");
|
|
88639
88635
|
} else {
|
|
@@ -89184,6 +89180,26 @@ var require_rollup = __commonJS({
|
|
|
89184
89180
|
}
|
|
89185
89181
|
return this;
|
|
89186
89182
|
}
|
|
89183
|
+
reset(start, end) {
|
|
89184
|
+
while (start < 0)
|
|
89185
|
+
start += this.original.length;
|
|
89186
|
+
while (end < 0)
|
|
89187
|
+
end += this.original.length;
|
|
89188
|
+
if (start === end)
|
|
89189
|
+
return this;
|
|
89190
|
+
if (start < 0 || end > this.original.length)
|
|
89191
|
+
throw new Error("Character is out of bounds");
|
|
89192
|
+
if (start > end)
|
|
89193
|
+
throw new Error("end must be greater than start");
|
|
89194
|
+
this._split(start);
|
|
89195
|
+
this._split(end);
|
|
89196
|
+
let chunk = this.byStart[start];
|
|
89197
|
+
while (chunk) {
|
|
89198
|
+
chunk.reset();
|
|
89199
|
+
chunk = end > chunk.end ? this.byStart[chunk.end] : null;
|
|
89200
|
+
}
|
|
89201
|
+
return this;
|
|
89202
|
+
}
|
|
89187
89203
|
lastChar() {
|
|
89188
89204
|
if (this.outro.length)
|
|
89189
89205
|
return this.outro[this.outro.length - 1];
|
|
@@ -90028,10 +90044,9 @@ var require_rollup = __commonJS({
|
|
|
90028
90044
|
"with",
|
|
90029
90045
|
"yield"
|
|
90030
90046
|
]);
|
|
90031
|
-
var RESERVED_NAMES$1 = RESERVED_NAMES;
|
|
90032
90047
|
var illegalCharacters = /[^\w$]/g;
|
|
90033
90048
|
var startsWithDigit = (value) => /\d/.test(value[0]);
|
|
90034
|
-
var needsEscape = (value) => startsWithDigit(value) || RESERVED_NAMES
|
|
90049
|
+
var needsEscape = (value) => startsWithDigit(value) || RESERVED_NAMES.has(value) || value === "arguments";
|
|
90035
90050
|
function isLegal(value) {
|
|
90036
90051
|
if (needsEscape(value)) {
|
|
90037
90052
|
return false;
|
|
@@ -90044,6 +90059,23 @@ var require_rollup = __commonJS({
|
|
|
90044
90059
|
value = `_${value}`;
|
|
90045
90060
|
return value || "_";
|
|
90046
90061
|
}
|
|
90062
|
+
var VALID_IDENTIFIER_REGEXP = /^[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*$/u;
|
|
90063
|
+
var NUMBER_REGEXP = /^(?:0|[1-9]\d*)$/;
|
|
90064
|
+
function stringifyObjectKeyIfNeeded(key) {
|
|
90065
|
+
if (VALID_IDENTIFIER_REGEXP.test(key)) {
|
|
90066
|
+
return key === "__proto__" ? '["__proto__"]' : key;
|
|
90067
|
+
}
|
|
90068
|
+
if (NUMBER_REGEXP.test(key) && +key <= Number.MAX_SAFE_INTEGER) {
|
|
90069
|
+
return key;
|
|
90070
|
+
}
|
|
90071
|
+
return JSON.stringify(key);
|
|
90072
|
+
}
|
|
90073
|
+
function stringifyIdentifierIfNeeded(key) {
|
|
90074
|
+
if (VALID_IDENTIFIER_REGEXP.test(key)) {
|
|
90075
|
+
return key;
|
|
90076
|
+
}
|
|
90077
|
+
return JSON.stringify(key);
|
|
90078
|
+
}
|
|
90047
90079
|
var ExternalModule = class {
|
|
90048
90080
|
constructor(options, id, moduleSideEffects, meta, renormalizeRenderPath, attributes) {
|
|
90049
90081
|
this.options = options;
|
|
@@ -92163,8 +92195,15 @@ var require_rollup = __commonJS({
|
|
|
92163
92195
|
this.description = description;
|
|
92164
92196
|
}
|
|
92165
92197
|
deoptimizeArgumentsOnInteractionAtPath({ args, type }, path2) {
|
|
92166
|
-
if (type === INTERACTION_CALLED && path2.length === 0
|
|
92167
|
-
|
|
92198
|
+
if (type === INTERACTION_CALLED && path2.length === 0) {
|
|
92199
|
+
if (this.description.mutatesSelfAsArray) {
|
|
92200
|
+
args[0]?.deoptimizePath(UNKNOWN_INTEGER_PATH);
|
|
92201
|
+
}
|
|
92202
|
+
if (this.description.mutatesArgs) {
|
|
92203
|
+
for (let index = 1; index < args.length; index++) {
|
|
92204
|
+
args[index].deoptimizePath(UNKNOWN_PATH);
|
|
92205
|
+
}
|
|
92206
|
+
}
|
|
92168
92207
|
}
|
|
92169
92208
|
}
|
|
92170
92209
|
getReturnExpressionWhenCalledAtPath(path2, { args }) {
|
|
@@ -92200,6 +92239,7 @@ var require_rollup = __commonJS({
|
|
|
92200
92239
|
var METHOD_RETURNS_BOOLEAN = [
|
|
92201
92240
|
new Method({
|
|
92202
92241
|
callsArgs: null,
|
|
92242
|
+
mutatesArgs: false,
|
|
92203
92243
|
mutatesSelfAsArray: false,
|
|
92204
92244
|
returns: null,
|
|
92205
92245
|
returnsPrimitive: UNKNOWN_LITERAL_BOOLEAN
|
|
@@ -92208,6 +92248,7 @@ var require_rollup = __commonJS({
|
|
|
92208
92248
|
var METHOD_RETURNS_STRING = [
|
|
92209
92249
|
new Method({
|
|
92210
92250
|
callsArgs: null,
|
|
92251
|
+
mutatesArgs: false,
|
|
92211
92252
|
mutatesSelfAsArray: false,
|
|
92212
92253
|
returns: null,
|
|
92213
92254
|
returnsPrimitive: UNKNOWN_LITERAL_STRING
|
|
@@ -92216,6 +92257,7 @@ var require_rollup = __commonJS({
|
|
|
92216
92257
|
var METHOD_RETURNS_NUMBER = [
|
|
92217
92258
|
new Method({
|
|
92218
92259
|
callsArgs: null,
|
|
92260
|
+
mutatesArgs: false,
|
|
92219
92261
|
mutatesSelfAsArray: false,
|
|
92220
92262
|
returns: null,
|
|
92221
92263
|
returnsPrimitive: UNKNOWN_LITERAL_NUMBER
|
|
@@ -92224,6 +92266,7 @@ var require_rollup = __commonJS({
|
|
|
92224
92266
|
var METHOD_RETURNS_UNKNOWN = [
|
|
92225
92267
|
new Method({
|
|
92226
92268
|
callsArgs: null,
|
|
92269
|
+
mutatesArgs: false,
|
|
92227
92270
|
mutatesSelfAsArray: false,
|
|
92228
92271
|
returns: null,
|
|
92229
92272
|
returnsPrimitive: UNKNOWN_EXPRESSION
|
|
@@ -92610,6 +92653,7 @@ var require_rollup = __commonJS({
|
|
|
92610
92653
|
var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_BOOLEAN = [
|
|
92611
92654
|
new Method({
|
|
92612
92655
|
callsArgs: [0],
|
|
92656
|
+
mutatesArgs: false,
|
|
92613
92657
|
mutatesSelfAsArray: "deopt-only",
|
|
92614
92658
|
returns: null,
|
|
92615
92659
|
returnsPrimitive: UNKNOWN_LITERAL_BOOLEAN
|
|
@@ -92618,6 +92662,7 @@ var require_rollup = __commonJS({
|
|
|
92618
92662
|
var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NUMBER = [
|
|
92619
92663
|
new Method({
|
|
92620
92664
|
callsArgs: [0],
|
|
92665
|
+
mutatesArgs: false,
|
|
92621
92666
|
mutatesSelfAsArray: "deopt-only",
|
|
92622
92667
|
returns: null,
|
|
92623
92668
|
returnsPrimitive: UNKNOWN_LITERAL_NUMBER
|
|
@@ -92626,6 +92671,7 @@ var require_rollup = __commonJS({
|
|
|
92626
92671
|
var METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY = [
|
|
92627
92672
|
new Method({
|
|
92628
92673
|
callsArgs: null,
|
|
92674
|
+
mutatesArgs: false,
|
|
92629
92675
|
mutatesSelfAsArray: true,
|
|
92630
92676
|
returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
|
|
92631
92677
|
returnsPrimitive: null
|
|
@@ -92634,6 +92680,7 @@ var require_rollup = __commonJS({
|
|
|
92634
92680
|
var METHOD_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
|
|
92635
92681
|
new Method({
|
|
92636
92682
|
callsArgs: null,
|
|
92683
|
+
mutatesArgs: false,
|
|
92637
92684
|
mutatesSelfAsArray: "deopt-only",
|
|
92638
92685
|
returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
|
|
92639
92686
|
returnsPrimitive: null
|
|
@@ -92642,14 +92689,16 @@ var require_rollup = __commonJS({
|
|
|
92642
92689
|
var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY = [
|
|
92643
92690
|
new Method({
|
|
92644
92691
|
callsArgs: [0],
|
|
92692
|
+
mutatesArgs: false,
|
|
92645
92693
|
mutatesSelfAsArray: "deopt-only",
|
|
92646
92694
|
returns: () => new ObjectEntity(NEW_ARRAY_PROPERTIES, ARRAY_PROTOTYPE),
|
|
92647
92695
|
returnsPrimitive: null
|
|
92648
92696
|
})
|
|
92649
92697
|
];
|
|
92650
|
-
var
|
|
92698
|
+
var METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER = [
|
|
92651
92699
|
new Method({
|
|
92652
92700
|
callsArgs: null,
|
|
92701
|
+
mutatesArgs: true,
|
|
92653
92702
|
mutatesSelfAsArray: true,
|
|
92654
92703
|
returns: null,
|
|
92655
92704
|
returnsPrimitive: UNKNOWN_LITERAL_NUMBER
|
|
@@ -92658,6 +92707,7 @@ var require_rollup = __commonJS({
|
|
|
92658
92707
|
var METHOD_MUTATES_SELF_RETURNS_UNKNOWN = [
|
|
92659
92708
|
new Method({
|
|
92660
92709
|
callsArgs: null,
|
|
92710
|
+
mutatesArgs: false,
|
|
92661
92711
|
mutatesSelfAsArray: true,
|
|
92662
92712
|
returns: null,
|
|
92663
92713
|
returnsPrimitive: UNKNOWN_EXPRESSION
|
|
@@ -92666,6 +92716,7 @@ var require_rollup = __commonJS({
|
|
|
92666
92716
|
var METHOD_DEOPTS_SELF_RETURNS_UNKNOWN = [
|
|
92667
92717
|
new Method({
|
|
92668
92718
|
callsArgs: null,
|
|
92719
|
+
mutatesArgs: false,
|
|
92669
92720
|
mutatesSelfAsArray: "deopt-only",
|
|
92670
92721
|
returns: null,
|
|
92671
92722
|
returnsPrimitive: UNKNOWN_EXPRESSION
|
|
@@ -92674,6 +92725,7 @@ var require_rollup = __commonJS({
|
|
|
92674
92725
|
var METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN = [
|
|
92675
92726
|
new Method({
|
|
92676
92727
|
callsArgs: [0],
|
|
92728
|
+
mutatesArgs: false,
|
|
92677
92729
|
mutatesSelfAsArray: "deopt-only",
|
|
92678
92730
|
returns: null,
|
|
92679
92731
|
returnsPrimitive: UNKNOWN_EXPRESSION
|
|
@@ -92682,6 +92734,7 @@ var require_rollup = __commonJS({
|
|
|
92682
92734
|
var METHOD_MUTATES_SELF_RETURNS_SELF = [
|
|
92683
92735
|
new Method({
|
|
92684
92736
|
callsArgs: null,
|
|
92737
|
+
mutatesArgs: false,
|
|
92685
92738
|
mutatesSelfAsArray: true,
|
|
92686
92739
|
returns: "self",
|
|
92687
92740
|
returnsPrimitive: null
|
|
@@ -92690,6 +92743,7 @@ var require_rollup = __commonJS({
|
|
|
92690
92743
|
var METHOD_CALLS_ARG_MUTATES_SELF_RETURNS_SELF = [
|
|
92691
92744
|
new Method({
|
|
92692
92745
|
callsArgs: [0],
|
|
92746
|
+
mutatesArgs: false,
|
|
92693
92747
|
mutatesSelfAsArray: true,
|
|
92694
92748
|
returns: "self",
|
|
92695
92749
|
returnsPrimitive: null
|
|
@@ -92719,7 +92773,7 @@ var require_rollup = __commonJS({
|
|
|
92719
92773
|
lastIndexOf: METHOD_RETURNS_NUMBER,
|
|
92720
92774
|
map: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_NEW_ARRAY,
|
|
92721
92775
|
pop: METHOD_MUTATES_SELF_RETURNS_UNKNOWN,
|
|
92722
|
-
push:
|
|
92776
|
+
push: METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER,
|
|
92723
92777
|
reduce: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
|
|
92724
92778
|
reduceRight: METHOD_CALLS_ARG_DEOPTS_SELF_RETURNS_UNKNOWN,
|
|
92725
92779
|
reverse: METHOD_MUTATES_SELF_RETURNS_SELF,
|
|
@@ -92730,7 +92784,7 @@ var require_rollup = __commonJS({
|
|
|
92730
92784
|
splice: METHOD_MUTATES_SELF_RETURNS_NEW_ARRAY,
|
|
92731
92785
|
toLocaleString: METHOD_RETURNS_STRING,
|
|
92732
92786
|
toString: METHOD_RETURNS_STRING,
|
|
92733
|
-
unshift:
|
|
92787
|
+
unshift: METHOD_MUTATES_SELF_AND_ARGS_RETURNS_NUMBER,
|
|
92734
92788
|
values: METHOD_DEOPTS_SELF_RETURNS_UNKNOWN
|
|
92735
92789
|
}, OBJECT_PROTOTYPE, true);
|
|
92736
92790
|
var ArrayExpression = class extends NodeBase {
|
|
@@ -93049,7 +93103,7 @@ var require_rollup = __commonJS({
|
|
|
93049
93103
|
function getSafeName(baseName, usedNames, forbiddenNames) {
|
|
93050
93104
|
let safeName = baseName;
|
|
93051
93105
|
let count = 1;
|
|
93052
|
-
while (usedNames.has(safeName) || RESERVED_NAMES
|
|
93106
|
+
while (usedNames.has(safeName) || RESERVED_NAMES.has(safeName) || forbiddenNames?.has(safeName)) {
|
|
93053
93107
|
safeName = `${baseName}$${toBase64(count++)}`;
|
|
93054
93108
|
}
|
|
93055
93109
|
usedNames.add(safeName);
|
|
@@ -94489,7 +94543,7 @@ var require_rollup = __commonJS({
|
|
|
94489
94543
|
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)) {
|
|
94490
94544
|
return this.isTDZAccess = true;
|
|
94491
94545
|
}
|
|
94492
|
-
if (!this.variable.initReached) {
|
|
94546
|
+
if (!this.variable.initReached && this.scope.context.module.isExecuted) {
|
|
94493
94547
|
return this.isTDZAccess = true;
|
|
94494
94548
|
}
|
|
94495
94549
|
return this.isTDZAccess = false;
|
|
@@ -94671,7 +94725,7 @@ var require_rollup = __commonJS({
|
|
|
94671
94725
|
const name = identifier.name;
|
|
94672
94726
|
const existingVariable = this.hoistedVariables?.get(name) || this.variables.get(name);
|
|
94673
94727
|
if (existingVariable) {
|
|
94674
|
-
if (existingVariable.kind === "var") {
|
|
94728
|
+
if (existingVariable.kind === "var" || kind === "var" && existingVariable.kind === "parameter") {
|
|
94675
94729
|
existingVariable.addDeclaration(identifier, init2);
|
|
94676
94730
|
return existingVariable;
|
|
94677
94731
|
}
|
|
@@ -94995,7 +95049,7 @@ var require_rollup = __commonJS({
|
|
|
94995
95049
|
function getSystemExportStatement(exportedVariables, { exportNamesByVariable, snippets: { _, getObject, getPropertyAccess } }, modifier = "") {
|
|
94996
95050
|
if (exportedVariables.length === 1 && exportNamesByVariable.get(exportedVariables[0]).length === 1) {
|
|
94997
95051
|
const variable = exportedVariables[0];
|
|
94998
|
-
return `exports(
|
|
95052
|
+
return `exports(${JSON.stringify(exportNamesByVariable.get(variable)[0])},${_}${variable.getName(getPropertyAccess)}${modifier})`;
|
|
94999
95053
|
} else {
|
|
95000
95054
|
const fields = [];
|
|
95001
95055
|
for (const variable of exportedVariables) {
|
|
@@ -95007,7 +95061,7 @@ var require_rollup = __commonJS({
|
|
|
95007
95061
|
}
|
|
95008
95062
|
}
|
|
95009
95063
|
function renderSystemExportExpression(exportedVariable, expressionStart, expressionEnd, code, { exportNamesByVariable, snippets: { _ } }) {
|
|
95010
|
-
code.prependRight(expressionStart, `exports(
|
|
95064
|
+
code.prependRight(expressionStart, `exports(${JSON.stringify(exportNamesByVariable.get(exportedVariable)[0])},${_}`);
|
|
95011
95065
|
code.appendLeft(expressionEnd, ")");
|
|
95012
95066
|
}
|
|
95013
95067
|
function renderSystemExportFunction(exportedVariables, expressionStart, expressionEnd, needsParens, code, options) {
|
|
@@ -96626,7 +96680,7 @@ var require_rollup = __commonJS({
|
|
|
96626
96680
|
const hasTrailingSemicolon = code.original.charCodeAt(this.end - 1) === 59;
|
|
96627
96681
|
const systemExportNames = format === "system" && exportNamesByVariable.get(this.variable);
|
|
96628
96682
|
if (systemExportNames) {
|
|
96629
|
-
code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports(
|
|
96683
|
+
code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports(${JSON.stringify(systemExportNames[0])}, `);
|
|
96630
96684
|
code.appendRight(hasTrailingSemicolon ? this.end - 1 : this.end, ")" + (hasTrailingSemicolon ? "" : ";"));
|
|
96631
96685
|
} else {
|
|
96632
96686
|
code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
|
|
@@ -97051,14 +97105,14 @@ var require_rollup = __commonJS({
|
|
|
97051
97105
|
return `function ${INTEROP_NAMESPACE_COMPAT_VARIABLE}(e)${_}{${n2}${t}if${_}(${getIsCompatNamespace(snippets)})${_}return e;${n2}` + createNamespaceObject(t, t, snippets, liveBindings, freeze, symbols) + `}${n2}${n2}`;
|
|
97052
97106
|
},
|
|
97053
97107
|
[INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE](_t, snippets, _liveBindings, freeze, symbols) {
|
|
97054
|
-
const { getDirectReturnFunction, getObject, n: n2 } = snippets;
|
|
97108
|
+
const { getDirectReturnFunction, getObject, n: n2, _ } = snippets;
|
|
97055
97109
|
const [left, right] = getDirectReturnFunction(["e"], {
|
|
97056
97110
|
functionReturn: true,
|
|
97057
97111
|
lineBreakIndent: null,
|
|
97058
97112
|
name: INTEROP_NAMESPACE_DEFAULT_ONLY_VARIABLE
|
|
97059
97113
|
});
|
|
97060
97114
|
return `${left}${getFrozen(freeze, getWithToStringTag(symbols, getObject([
|
|
97061
|
-
[
|
|
97115
|
+
[null, `__proto__:${_}null`],
|
|
97062
97116
|
["default", "e"]
|
|
97063
97117
|
], { lineBreakIndent: null }), snippets))}${right}${n2}${n2}`;
|
|
97064
97118
|
},
|
|
@@ -97471,26 +97525,33 @@ var require_rollup = __commonJS({
|
|
|
97471
97525
|
};
|
|
97472
97526
|
var LabeledStatement = class extends NodeBase {
|
|
97473
97527
|
hasEffects(context) {
|
|
97474
|
-
const brokenFlow = context
|
|
97528
|
+
const { brokenFlow, includedLabels } = context;
|
|
97475
97529
|
context.ignore.labels.add(this.label.name);
|
|
97476
|
-
|
|
97477
|
-
|
|
97478
|
-
|
|
97479
|
-
|
|
97480
|
-
|
|
97481
|
-
context.
|
|
97530
|
+
context.includedLabels = /* @__PURE__ */ new Set();
|
|
97531
|
+
let bodyHasEffects = false;
|
|
97532
|
+
if (this.body.hasEffects(context)) {
|
|
97533
|
+
bodyHasEffects = true;
|
|
97534
|
+
} else {
|
|
97535
|
+
context.ignore.labels.delete(this.label.name);
|
|
97536
|
+
if (context.includedLabels.has(this.label.name)) {
|
|
97537
|
+
context.includedLabels.delete(this.label.name);
|
|
97538
|
+
context.brokenFlow = brokenFlow;
|
|
97539
|
+
}
|
|
97482
97540
|
}
|
|
97483
|
-
|
|
97541
|
+
context.includedLabels = /* @__PURE__ */ new Set([...includedLabels, ...context.includedLabels]);
|
|
97542
|
+
return bodyHasEffects;
|
|
97484
97543
|
}
|
|
97485
97544
|
include(context, includeChildrenRecursively) {
|
|
97486
97545
|
this.included = true;
|
|
97487
|
-
const brokenFlow = context
|
|
97546
|
+
const { brokenFlow, includedLabels } = context;
|
|
97547
|
+
context.includedLabels = /* @__PURE__ */ new Set();
|
|
97488
97548
|
this.body.include(context, includeChildrenRecursively);
|
|
97489
97549
|
if (includeChildrenRecursively || context.includedLabels.has(this.label.name)) {
|
|
97490
97550
|
this.label.include();
|
|
97491
97551
|
context.includedLabels.delete(this.label.name);
|
|
97492
97552
|
context.brokenFlow = brokenFlow;
|
|
97493
97553
|
}
|
|
97554
|
+
context.includedLabels = /* @__PURE__ */ new Set([...includedLabels, ...context.includedLabels]);
|
|
97494
97555
|
}
|
|
97495
97556
|
render(code, options) {
|
|
97496
97557
|
if (this.label.included) {
|
|
@@ -99027,7 +99088,7 @@ var require_rollup = __commonJS({
|
|
|
99027
99088
|
if (this.referencedEarly || variable.isReassigned || variable === this) {
|
|
99028
99089
|
return [
|
|
99029
99090
|
null,
|
|
99030
|
-
`get ${name2}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
|
|
99091
|
+
`get ${stringifyObjectKeyIfNeeded(name2)}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
|
|
99031
99092
|
];
|
|
99032
99093
|
}
|
|
99033
99094
|
return [name2, variable.getName(getPropertyAccess)];
|
|
@@ -99523,7 +99584,7 @@ var require_rollup = __commonJS({
|
|
|
99523
99584
|
this.ast.bind();
|
|
99524
99585
|
}
|
|
99525
99586
|
error(properties, pos) {
|
|
99526
|
-
this.addLocationToLogProps(properties, pos);
|
|
99587
|
+
pos !== void 0 && this.addLocationToLogProps(properties, pos);
|
|
99527
99588
|
return parseAst_js.error(properties);
|
|
99528
99589
|
}
|
|
99529
99590
|
// sum up the length of all ast nodes that are included
|
|
@@ -99971,7 +100032,7 @@ var require_rollup = __commonJS({
|
|
|
99971
100032
|
const source = node.source.value;
|
|
99972
100033
|
this.addSource(source, node);
|
|
99973
100034
|
if (node.exported) {
|
|
99974
|
-
const name = node.exported.name;
|
|
100035
|
+
const name = node.exported instanceof Literal ? node.exported.value : node.exported.name;
|
|
99975
100036
|
this.assertUniqueExportName(name, node.exported.start);
|
|
99976
100037
|
this.reexportDescriptions.set(name, {
|
|
99977
100038
|
localName: "*",
|
|
@@ -100272,7 +100333,9 @@ var require_rollup = __commonJS({
|
|
|
100272
100333
|
lineBreakIndent: null,
|
|
100273
100334
|
name: null
|
|
100274
100335
|
});
|
|
100275
|
-
exportBlock += `Object.defineProperty(exports,${_}
|
|
100336
|
+
exportBlock += `Object.defineProperty(exports,${_}${JSON.stringify(specifier.reexported)},${_}{${n2}${t}enumerable:${_}true,${n2}${t}get:${_}${left}${importName}${right}${n2}});`;
|
|
100337
|
+
} else if (specifier.reexported === "__proto__") {
|
|
100338
|
+
exportBlock += `Object.defineProperty(exports,${_}"__proto__",${_}{${n2}${t}enumerable:${_}true,${n2}${t}value:${_}${importName}${n2}});`;
|
|
100276
100339
|
} else {
|
|
100277
100340
|
exportBlock += `exports${getPropertyAccess(specifier.reexported)}${_}=${_}${importName};`;
|
|
100278
100341
|
}
|
|
@@ -100286,7 +100349,7 @@ var require_rollup = __commonJS({
|
|
|
100286
100349
|
if (lhs !== rhs) {
|
|
100287
100350
|
if (exportBlock)
|
|
100288
100351
|
exportBlock += n2;
|
|
100289
|
-
exportBlock += `${lhs}${_}=${_}${rhs};`;
|
|
100352
|
+
exportBlock += exported === "__proto__" ? `Object.defineProperty(exports,${_}"__proto__",${_}{${n2}${t}enumerable:${_}true,${n2}${t}value:${_}${rhs}${n2}});` : `${lhs}${_}=${_}${rhs};`;
|
|
100290
100353
|
}
|
|
100291
100354
|
}
|
|
100292
100355
|
for (const { name, reexports } of dependencies) {
|
|
@@ -100367,7 +100430,7 @@ var require_rollup = __commonJS({
|
|
|
100367
100430
|
});
|
|
100368
100431
|
return `Object.defineProperty(exports,${_}k,${_}{${n2}${t}${t}enumerable:${_}true,${n2}${t}${t}get:${_}${left}${name}[k]${right}${n2}${t}})`;
|
|
100369
100432
|
}
|
|
100370
|
-
return `exports[k]${_}=${_}${name}[k]`;
|
|
100433
|
+
return `k${_}===${_}'__proto__'${_}?${_}Object.defineProperty(exports,${_}k,${_}{${n2}${t}${t}enumerable:${_}true,${n2}${t}${t}value:${_}${name}[k]${n2}${t}})${_}:${_}exports[k]${_}=${_}${name}[k]`;
|
|
100371
100434
|
};
|
|
100372
100435
|
function getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, indent, snippets) {
|
|
100373
100436
|
const { _, cnst, n: n2 } = snippets;
|
|
@@ -100605,7 +100668,7 @@ var require_rollup = __commonJS({
|
|
|
100605
100668
|
if (defaultImport && importedNames.length === 0) {
|
|
100606
100669
|
importBlock.push(`import ${defaultImport.local} from${_}${pathWithAssertion}`);
|
|
100607
100670
|
} else if (importedNames.length > 0) {
|
|
100608
|
-
importBlock.push(`import ${defaultImport ? `${defaultImport.local},${_}` : ""}{${_}${importedNames.map((specifier) => specifier.imported === specifier.local ? specifier.imported : `${specifier.imported} as ${specifier.local}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
100671
|
+
importBlock.push(`import ${defaultImport ? `${defaultImport.local},${_}` : ""}{${_}${importedNames.map((specifier) => specifier.imported === specifier.local ? specifier.imported : `${stringifyIdentifierIfNeeded(specifier.imported)} as ${specifier.local}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
100609
100672
|
}
|
|
100610
100673
|
}
|
|
100611
100674
|
if (reexports) {
|
|
@@ -100629,11 +100692,11 @@ var require_rollup = __commonJS({
|
|
|
100629
100692
|
importBlock.push(`import${_}*${_}as ${name} from${_}${pathWithAssertion}`);
|
|
100630
100693
|
}
|
|
100631
100694
|
for (const specifier of namespaceReexports) {
|
|
100632
|
-
importBlock.push(`export${_}{${_}${name === specifier.reexported ? name : `${name} as ${specifier.reexported}`} };`);
|
|
100695
|
+
importBlock.push(`export${_}{${_}${name === specifier.reexported ? name : `${name} as ${stringifyIdentifierIfNeeded(specifier.reexported)}`} };`);
|
|
100633
100696
|
}
|
|
100634
100697
|
}
|
|
100635
100698
|
if (namedReexports.length > 0) {
|
|
100636
|
-
importBlock.push(`export${_}{${_}${namedReexports.map((specifier) => specifier.imported === specifier.reexported ? specifier.imported : `${specifier.imported} as ${specifier.reexported}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
100699
|
+
importBlock.push(`export${_}{${_}${namedReexports.map((specifier) => specifier.imported === specifier.reexported ? stringifyIdentifierIfNeeded(specifier.imported) : `${stringifyIdentifierIfNeeded(specifier.imported)} as ${stringifyIdentifierIfNeeded(specifier.reexported)}`).join(`,${_}`)}${_}}${_}from${_}${pathWithAssertion}`);
|
|
100637
100700
|
}
|
|
100638
100701
|
}
|
|
100639
100702
|
}
|
|
@@ -100646,7 +100709,7 @@ var require_rollup = __commonJS({
|
|
|
100646
100709
|
if (specifier.expression) {
|
|
100647
100710
|
exportBlock.push(`${cnst} ${specifier.local}${_}=${_}${specifier.expression};`);
|
|
100648
100711
|
}
|
|
100649
|
-
exportDeclaration.push(specifier.exported === specifier.local ? specifier.local : `${specifier.local} as ${specifier.exported}`);
|
|
100712
|
+
exportDeclaration.push(specifier.exported === specifier.local ? specifier.local : `${specifier.local} as ${stringifyIdentifierIfNeeded(specifier.exported)}`);
|
|
100650
100713
|
}
|
|
100651
100714
|
if (exportDeclaration.length > 0) {
|
|
100652
100715
|
exportBlock.push(`export${_}{${_}${exportDeclaration.join(`,${_}`)}${_}};`);
|
|
@@ -100789,18 +100852,20 @@ var require_rollup = __commonJS({
|
|
|
100789
100852
|
}
|
|
100790
100853
|
}
|
|
100791
100854
|
if (reexportedNames.length > 1 || hasStarReexport) {
|
|
100792
|
-
const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
|
|
100793
100855
|
if (hasStarReexport) {
|
|
100794
100856
|
if (!starExcludes) {
|
|
100795
100857
|
starExcludes = getStarExcludes({ dependencies, exports: exports3 });
|
|
100796
100858
|
}
|
|
100859
|
+
reexportedNames.unshift([null, `__proto__:${_}null`]);
|
|
100860
|
+
const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
|
|
100797
100861
|
setter.push(`${cnst} setter${_}=${_}${exportMapping};`, `for${_}(${cnst} name in module)${_}{`, `${t}if${_}(!_starExcludes[name])${_}setter[name]${_}=${_}module[name];`, "}", "exports(setter);");
|
|
100798
100862
|
} else {
|
|
100863
|
+
const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
|
|
100799
100864
|
setter.push(`exports(${exportMapping});`);
|
|
100800
100865
|
}
|
|
100801
100866
|
} else {
|
|
100802
100867
|
const [key, value] = reexportedNames[0];
|
|
100803
|
-
setter.push(`exports(
|
|
100868
|
+
setter.push(`exports(${JSON.stringify(key)},${_}${value});`);
|
|
100804
100869
|
}
|
|
100805
100870
|
}
|
|
100806
100871
|
setters.push(setter.join(`${n2}${t}${t}${t}`));
|
|
@@ -100820,7 +100885,19 @@ var require_rollup = __commonJS({
|
|
|
100820
100885
|
}
|
|
100821
100886
|
return starExcludes;
|
|
100822
100887
|
};
|
|
100823
|
-
var getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n: n2 }) =>
|
|
100888
|
+
var getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n: n2 }) => {
|
|
100889
|
+
if (starExcludes) {
|
|
100890
|
+
const fields = [...starExcludes].map((property) => [
|
|
100891
|
+
property,
|
|
100892
|
+
"1"
|
|
100893
|
+
]);
|
|
100894
|
+
fields.unshift([null, `__proto__:${_}null`]);
|
|
100895
|
+
return `${n2}${t}${cnst} _starExcludes${_}=${_}${getObject(fields, {
|
|
100896
|
+
lineBreakIndent: { base: t, t }
|
|
100897
|
+
})};`;
|
|
100898
|
+
}
|
|
100899
|
+
return "";
|
|
100900
|
+
};
|
|
100824
100901
|
var getImportBindingsBlock = (importBindings, t, { _, n: n2 }) => importBindings.length > 0 ? `${n2}${t}var ${importBindings.join(`,${_}`)};` : "";
|
|
100825
100902
|
var getHoistedExportsBlock = (exports3, t, snippets) => getExportsBlock(exports3.filter((expt) => expt.hoisted).map((expt) => ({ name: expt.exported, value: expt.local })), t, snippets);
|
|
100826
100903
|
function getExportsBlock(exports3, t, { _, n: n2 }) {
|
|
@@ -100828,9 +100905,9 @@ var require_rollup = __commonJS({
|
|
|
100828
100905
|
return "";
|
|
100829
100906
|
}
|
|
100830
100907
|
if (exports3.length === 1) {
|
|
100831
|
-
return `exports(
|
|
100908
|
+
return `exports(${JSON.stringify(exports3[0].name)},${_}${exports3[0].value});${n2}${n2}`;
|
|
100832
100909
|
}
|
|
100833
|
-
return `exports({${n2}` + exports3.map(({ name, value }) => `${t}${name}:${_}${value}`).join(`,${n2}`) + `${n2}});${n2}${n2}`;
|
|
100910
|
+
return `exports({${n2}` + exports3.map(({ name, value }) => `${t}${stringifyObjectKeyIfNeeded(name)}:${_}${value}`).join(`,${n2}`) + `${n2}});${n2}${n2}`;
|
|
100834
100911
|
}
|
|
100835
100912
|
var getSyntheticExportsBlock = (exports3, t, snippets) => getExportsBlock(exports3.filter((expt) => expt.expression).map((expt) => ({ name: expt.exported, value: expt.local })), t, snippets);
|
|
100836
100913
|
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);
|
|
@@ -100971,7 +101048,7 @@ ${outro}`;
|
|
|
100971
101048
|
} else if (module3 instanceof ExternalModule && name === "default") {
|
|
100972
101049
|
variable.setRenderNames(null, getSafeName([...module3.exportedVariables].some(([exportedVariable, exportedName]) => exportedName === "*" && exportedVariable.included) ? module3.suggestedVariableName + "__default" : module3.suggestedVariableName, usedNames, variable.forbiddenNames));
|
|
100973
101050
|
} else {
|
|
100974
|
-
variable.setRenderNames(null, getSafeName(name, usedNames, variable.forbiddenNames));
|
|
101051
|
+
variable.setRenderNames(null, getSafeName(makeLegal(name), usedNames, variable.forbiddenNames));
|
|
100975
101052
|
}
|
|
100976
101053
|
}
|
|
100977
101054
|
for (const variable of syntheticExports) {
|
|
@@ -101043,7 +101120,7 @@ ${outro}`;
|
|
|
101043
101120
|
nameIndex += 9 * 64 ** (exportName.length - 1);
|
|
101044
101121
|
exportName = toBase64(nameIndex);
|
|
101045
101122
|
}
|
|
101046
|
-
} while (RESERVED_NAMES
|
|
101123
|
+
} while (RESERVED_NAMES.has(exportName) || exportsByName.has(exportName));
|
|
101047
101124
|
}
|
|
101048
101125
|
exportsByName.set(exportName, variable);
|
|
101049
101126
|
exportNamesByVariable.set(variable, [exportName]);
|
|
@@ -101402,7 +101479,7 @@ ${outro}`;
|
|
|
101402
101479
|
const [pattern, patternName] = preserveModules || this.facadeModule?.isUserDefinedEntryPoint ? [entryFileNames, "output.entryFileNames"] : [chunkFileNames, "output.chunkFileNames"];
|
|
101403
101480
|
fileName = renderNamePattern(typeof pattern === "function" ? pattern(this.getPreRenderedChunkInfo()) : pattern, patternName, {
|
|
101404
101481
|
format: () => format,
|
|
101405
|
-
hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size)),
|
|
101482
|
+
hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size || DEFAULT_HASH_SIZE)),
|
|
101406
101483
|
name: () => this.getChunkName()
|
|
101407
101484
|
});
|
|
101408
101485
|
if (!hashPlaceholder) {
|
|
@@ -101428,7 +101505,7 @@ ${outro}`;
|
|
|
101428
101505
|
sourcemapFileName = renderNamePattern(typeof pattern === "function" ? pattern(this.getPreRenderedChunkInfo()) : pattern, patternName, {
|
|
101429
101506
|
chunkhash: () => this.getPreliminaryFileName().hashPlaceholder || "",
|
|
101430
101507
|
format: () => format,
|
|
101431
|
-
hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size)),
|
|
101508
|
+
hash: (size) => hashPlaceholder || (hashPlaceholder = this.getPlaceholder(patternName, size || DEFAULT_HASH_SIZE)),
|
|
101432
101509
|
name: () => this.getChunkName()
|
|
101433
101510
|
});
|
|
101434
101511
|
if (!hashPlaceholder) {
|
|
@@ -102144,9 +102221,12 @@ ${outro}`;
|
|
|
102144
102221
|
function getChunkAssignments(entries, manualChunkAliasByEntry, minChunkSize, log) {
|
|
102145
102222
|
const { chunkDefinitions, modulesInManualChunks } = getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry);
|
|
102146
102223
|
const { allEntries, dependentEntriesByModule, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry } = analyzeModuleGraph(entries);
|
|
102147
|
-
const
|
|
102148
|
-
|
|
102149
|
-
|
|
102224
|
+
const chunkAtoms = getChunksWithSameDependentEntries(getModulesWithDependentEntries(dependentEntriesByModule, modulesInManualChunks));
|
|
102225
|
+
const staticDependencyAtomsByEntry = getStaticDependencyAtomsByEntry(allEntries, chunkAtoms);
|
|
102226
|
+
const alreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries);
|
|
102227
|
+
removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry);
|
|
102228
|
+
const { chunks, sideEffectAtoms, sizeByAtom } = getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize);
|
|
102229
|
+
chunkDefinitions.push(...getOptimizedChunks(chunks, minChunkSize, sideEffectAtoms, sizeByAtom, log).map(({ modules }) => ({
|
|
102150
102230
|
alias: null,
|
|
102151
102231
|
modules
|
|
102152
102232
|
})));
|
|
@@ -102253,7 +102333,7 @@ ${outro}`;
|
|
|
102253
102333
|
}
|
|
102254
102334
|
return dynamicallyDependentEntriesByDynamicEntry;
|
|
102255
102335
|
}
|
|
102256
|
-
function
|
|
102336
|
+
function getChunksWithSameDependentEntries(modulesWithDependentEntries) {
|
|
102257
102337
|
const chunkModules = /* @__PURE__ */ Object.create(null);
|
|
102258
102338
|
for (const { dependentEntries, modules } of modulesWithDependentEntries) {
|
|
102259
102339
|
let chunkSignature = 0n;
|
|
@@ -102274,107 +102354,162 @@ ${outro}`;
|
|
|
102274
102354
|
}
|
|
102275
102355
|
}
|
|
102276
102356
|
}
|
|
102277
|
-
function
|
|
102278
|
-
const
|
|
102279
|
-
|
|
102280
|
-
|
|
102281
|
-
for (const { dependentEntries } of chunks) {
|
|
102357
|
+
function getStaticDependencyAtomsByEntry(allEntries, chunkAtoms) {
|
|
102358
|
+
const staticDependencyAtomsByEntry = allEntries.map(() => 0n);
|
|
102359
|
+
let atomMask = 1n;
|
|
102360
|
+
for (const { dependentEntries } of chunkAtoms) {
|
|
102282
102361
|
for (const entryIndex of dependentEntries) {
|
|
102283
|
-
|
|
102362
|
+
staticDependencyAtomsByEntry[entryIndex] |= atomMask;
|
|
102284
102363
|
}
|
|
102285
|
-
|
|
102364
|
+
atomMask <<= 1n;
|
|
102286
102365
|
}
|
|
102287
|
-
|
|
102288
|
-
|
|
102289
|
-
|
|
102290
|
-
|
|
102291
|
-
|
|
102292
|
-
|
|
102293
|
-
|
|
102366
|
+
return staticDependencyAtomsByEntry;
|
|
102367
|
+
}
|
|
102368
|
+
function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntries) {
|
|
102369
|
+
const alreadyLoadedAtomsByEntry = allEntries.map((_entry, entryIndex) => dynamicallyDependentEntriesByDynamicEntry.has(entryIndex) ? -1n : 0n);
|
|
102370
|
+
for (const [dynamicEntryIndex, dynamicallyDependentEntries] of dynamicallyDependentEntriesByDynamicEntry) {
|
|
102371
|
+
dynamicallyDependentEntriesByDynamicEntry.delete(dynamicEntryIndex);
|
|
102372
|
+
const knownLoadedAtoms = alreadyLoadedAtomsByEntry[dynamicEntryIndex];
|
|
102373
|
+
let updatedLoadedAtoms = knownLoadedAtoms;
|
|
102374
|
+
for (const entryIndex of dynamicallyDependentEntries) {
|
|
102375
|
+
updatedLoadedAtoms &= staticDependencyAtomsByEntry[entryIndex] | alreadyLoadedAtomsByEntry[entryIndex];
|
|
102294
102376
|
}
|
|
102295
|
-
if (
|
|
102296
|
-
|
|
102377
|
+
if (updatedLoadedAtoms !== knownLoadedAtoms) {
|
|
102378
|
+
alreadyLoadedAtomsByEntry[dynamicEntryIndex] = updatedLoadedAtoms;
|
|
102297
102379
|
for (const dynamicImport of dynamicImportsByEntry[dynamicEntryIndex]) {
|
|
102298
|
-
getOrCreate(
|
|
102380
|
+
getOrCreate(dynamicallyDependentEntriesByDynamicEntry, dynamicImport, getNewSet).add(dynamicEntryIndex);
|
|
102299
102381
|
}
|
|
102300
102382
|
}
|
|
102301
102383
|
}
|
|
102302
|
-
|
|
102303
|
-
|
|
102384
|
+
return alreadyLoadedAtomsByEntry;
|
|
102385
|
+
}
|
|
102386
|
+
function removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry) {
|
|
102387
|
+
let chunkMask = 1n;
|
|
102388
|
+
for (const { dependentEntries } of chunkAtoms) {
|
|
102304
102389
|
for (const entryIndex of dependentEntries) {
|
|
102305
|
-
if ((
|
|
102390
|
+
if ((alreadyLoadedAtomsByEntry[entryIndex] & chunkMask) === chunkMask) {
|
|
102306
102391
|
dependentEntries.delete(entryIndex);
|
|
102307
102392
|
}
|
|
102308
102393
|
}
|
|
102309
102394
|
chunkMask <<= 1n;
|
|
102310
102395
|
}
|
|
102311
102396
|
}
|
|
102312
|
-
function
|
|
102313
|
-
|
|
102314
|
-
const chunkPartition = getPartitionedChunks(initialChunks, numberOfEntries, minChunkSize);
|
|
102315
|
-
if (!chunkPartition) {
|
|
102316
|
-
timeEnd("optimize chunks", 3);
|
|
102317
|
-
return initialChunks;
|
|
102318
|
-
}
|
|
102319
|
-
minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(initialChunks.length, chunkPartition.small.size, "Initially"));
|
|
102320
|
-
mergeChunks(chunkPartition, minChunkSize);
|
|
102321
|
-
minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunkPartition.small.size + chunkPartition.big.size, chunkPartition.small.size, "After merging chunks"));
|
|
102322
|
-
timeEnd("optimize chunks", 3);
|
|
102323
|
-
return [...chunkPartition.small, ...chunkPartition.big];
|
|
102324
|
-
}
|
|
102325
|
-
function getPartitionedChunks(initialChunks, numberOfEntries, minChunkSize) {
|
|
102326
|
-
const smallChunks = [];
|
|
102327
|
-
const bigChunks = [];
|
|
102397
|
+
function getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize) {
|
|
102398
|
+
const chunksBySignature = /* @__PURE__ */ Object.create(null);
|
|
102328
102399
|
const chunkByModule = /* @__PURE__ */ new Map();
|
|
102329
102400
|
const sizeByAtom = [];
|
|
102330
102401
|
let sideEffectAtoms = 0n;
|
|
102331
|
-
let
|
|
102332
|
-
for (const { dependentEntries, modules } of
|
|
102333
|
-
|
|
102334
|
-
|
|
102335
|
-
|
|
102402
|
+
let atomMask = 1n;
|
|
102403
|
+
for (const { dependentEntries, modules } of chunkAtoms) {
|
|
102404
|
+
let chunkSignature = 0n;
|
|
102405
|
+
let correlatedAtoms = -1n;
|
|
102406
|
+
for (const entryIndex of dependentEntries) {
|
|
102407
|
+
chunkSignature |= 1n << BigInt(entryIndex);
|
|
102408
|
+
correlatedAtoms &= staticDependencyAtomsByEntry[entryIndex] | alreadyLoadedAtomsByEntry[entryIndex];
|
|
102409
|
+
}
|
|
102410
|
+
const chunk = chunksBySignature[String(chunkSignature)] ||= {
|
|
102411
|
+
containedAtoms: 0n,
|
|
102412
|
+
correlatedAtoms,
|
|
102336
102413
|
dependencies: /* @__PURE__ */ new Set(),
|
|
102337
102414
|
dependentChunks: /* @__PURE__ */ new Set(),
|
|
102338
|
-
dependentEntries,
|
|
102339
|
-
modules,
|
|
102415
|
+
dependentEntries: new Set(dependentEntries),
|
|
102416
|
+
modules: [],
|
|
102340
102417
|
pure: true,
|
|
102341
102418
|
size: 0
|
|
102342
102419
|
};
|
|
102343
|
-
let
|
|
102420
|
+
let atomSize = 0;
|
|
102344
102421
|
let pure = true;
|
|
102345
102422
|
for (const module3 of modules) {
|
|
102346
|
-
chunkByModule.set(module3,
|
|
102423
|
+
chunkByModule.set(module3, chunk);
|
|
102347
102424
|
if (module3.isIncluded()) {
|
|
102348
102425
|
pure &&= !module3.hasEffects();
|
|
102349
|
-
|
|
102426
|
+
atomSize += minChunkSize > 1 ? module3.estimateSize() : 1;
|
|
102350
102427
|
}
|
|
102351
102428
|
}
|
|
102352
|
-
chunkDescription.pure = pure;
|
|
102353
|
-
chunkDescription.size = size;
|
|
102354
|
-
sizeByAtom.push(size);
|
|
102355
102429
|
if (!pure) {
|
|
102356
|
-
sideEffectAtoms |=
|
|
102430
|
+
sideEffectAtoms |= atomMask;
|
|
102357
102431
|
}
|
|
102358
|
-
|
|
102359
|
-
containedAtoms
|
|
102432
|
+
sizeByAtom.push(atomSize);
|
|
102433
|
+
chunk.containedAtoms |= atomMask;
|
|
102434
|
+
chunk.modules.push(...modules);
|
|
102435
|
+
chunk.pure &&= pure;
|
|
102436
|
+
chunk.size += atomSize;
|
|
102437
|
+
atomMask <<= 1n;
|
|
102438
|
+
}
|
|
102439
|
+
const chunks = Object.values(chunksBySignature);
|
|
102440
|
+
sideEffectAtoms |= addChunkDependenciesAndGetExternalSideEffectAtoms(chunks, chunkByModule, atomMask);
|
|
102441
|
+
return { chunks, sideEffectAtoms, sizeByAtom };
|
|
102442
|
+
}
|
|
102443
|
+
function addChunkDependenciesAndGetExternalSideEffectAtoms(chunks, chunkByModule, nextAvailableAtomMask) {
|
|
102444
|
+
const signatureByExternalModule = /* @__PURE__ */ new Map();
|
|
102445
|
+
let externalSideEffectAtoms = 0n;
|
|
102446
|
+
for (const chunk of chunks) {
|
|
102447
|
+
const { dependencies, modules } = chunk;
|
|
102448
|
+
for (const module3 of modules) {
|
|
102449
|
+
for (const dependency of module3.getDependenciesToBeIncluded()) {
|
|
102450
|
+
if (dependency instanceof ExternalModule) {
|
|
102451
|
+
if (dependency.info.moduleSideEffects) {
|
|
102452
|
+
const signature = getOrCreate(signatureByExternalModule, dependency, () => {
|
|
102453
|
+
const signature2 = nextAvailableAtomMask;
|
|
102454
|
+
nextAvailableAtomMask <<= 1n;
|
|
102455
|
+
externalSideEffectAtoms |= signature2;
|
|
102456
|
+
return signature2;
|
|
102457
|
+
});
|
|
102458
|
+
chunk.containedAtoms |= signature;
|
|
102459
|
+
chunk.correlatedAtoms |= signature;
|
|
102460
|
+
}
|
|
102461
|
+
} else {
|
|
102462
|
+
const dependencyChunk = chunkByModule.get(dependency);
|
|
102463
|
+
if (dependencyChunk && dependencyChunk !== chunk) {
|
|
102464
|
+
dependencies.add(dependencyChunk);
|
|
102465
|
+
dependencyChunk.dependentChunks.add(chunk);
|
|
102466
|
+
}
|
|
102467
|
+
}
|
|
102468
|
+
}
|
|
102469
|
+
}
|
|
102470
|
+
}
|
|
102471
|
+
return externalSideEffectAtoms;
|
|
102472
|
+
}
|
|
102473
|
+
function getOptimizedChunks(chunks, minChunkSize, sideEffectAtoms, sizeByAtom, log) {
|
|
102474
|
+
timeStart("optimize chunks", 3);
|
|
102475
|
+
const chunkPartition = getPartitionedChunks(chunks, minChunkSize);
|
|
102476
|
+
if (!chunkPartition) {
|
|
102477
|
+
timeEnd("optimize chunks", 3);
|
|
102478
|
+
return chunks;
|
|
102479
|
+
}
|
|
102480
|
+
minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunks.length, chunkPartition.small.size, "Initially"));
|
|
102481
|
+
mergeChunks(chunkPartition, minChunkSize, sideEffectAtoms, sizeByAtom);
|
|
102482
|
+
minChunkSize > 1 && log("info", parseAst_js.logOptimizeChunkStatus(chunkPartition.small.size + chunkPartition.big.size, chunkPartition.small.size, "After merging chunks"));
|
|
102483
|
+
timeEnd("optimize chunks", 3);
|
|
102484
|
+
return [...chunkPartition.small, ...chunkPartition.big];
|
|
102485
|
+
}
|
|
102486
|
+
function getPartitionedChunks(chunks, minChunkSize) {
|
|
102487
|
+
const smallChunks = [];
|
|
102488
|
+
const bigChunks = [];
|
|
102489
|
+
for (const chunk of chunks) {
|
|
102490
|
+
(chunk.size < minChunkSize ? smallChunks : bigChunks).push(chunk);
|
|
102360
102491
|
}
|
|
102361
102492
|
if (smallChunks.length === 0) {
|
|
102362
102493
|
return null;
|
|
102363
102494
|
}
|
|
102364
|
-
|
|
102495
|
+
smallChunks.sort(compareChunkSize);
|
|
102496
|
+
bigChunks.sort(compareChunkSize);
|
|
102365
102497
|
return {
|
|
102366
102498
|
big: new Set(bigChunks),
|
|
102367
|
-
sideEffectAtoms,
|
|
102368
|
-
sizeByAtom,
|
|
102369
102499
|
small: new Set(smallChunks)
|
|
102370
102500
|
};
|
|
102371
102501
|
}
|
|
102372
|
-
function
|
|
102502
|
+
function compareChunkSize({ size: sizeA }, { size: sizeB }) {
|
|
102503
|
+
return sizeA - sizeB;
|
|
102504
|
+
}
|
|
102505
|
+
function mergeChunks(chunkPartition, minChunkSize, sideEffectAtoms, sizeByAtom) {
|
|
102373
102506
|
const { small } = chunkPartition;
|
|
102374
102507
|
for (const mergedChunk of small) {
|
|
102375
102508
|
const bestTargetChunk = findBestMergeTarget(
|
|
102376
102509
|
mergedChunk,
|
|
102377
102510
|
chunkPartition,
|
|
102511
|
+
sideEffectAtoms,
|
|
102512
|
+
sizeByAtom,
|
|
102378
102513
|
// In the default case, we do not accept size increases
|
|
102379
102514
|
minChunkSize <= 1 ? 1 : Infinity
|
|
102380
102515
|
);
|
|
@@ -102407,55 +102542,7 @@ ${outro}`;
|
|
|
102407
102542
|
}
|
|
102408
102543
|
}
|
|
102409
102544
|
}
|
|
102410
|
-
function
|
|
102411
|
-
const signatureByExternalModule = /* @__PURE__ */ new Map();
|
|
102412
|
-
let sideEffectAtoms = 0n;
|
|
102413
|
-
const atomsByEntry = [];
|
|
102414
|
-
for (let index = 0; index < numberOfEntries; index++) {
|
|
102415
|
-
atomsByEntry.push(0n);
|
|
102416
|
-
}
|
|
102417
|
-
for (const chunks of chunkLists) {
|
|
102418
|
-
chunks.sort(compareChunkSize);
|
|
102419
|
-
for (const chunk of chunks) {
|
|
102420
|
-
const { dependencies, dependentEntries, modules } = chunk;
|
|
102421
|
-
for (const module3 of modules) {
|
|
102422
|
-
for (const dependency of module3.getDependenciesToBeIncluded()) {
|
|
102423
|
-
if (dependency instanceof ExternalModule) {
|
|
102424
|
-
if (dependency.info.moduleSideEffects) {
|
|
102425
|
-
chunk.containedAtoms |= getOrCreate(signatureByExternalModule, dependency, () => {
|
|
102426
|
-
const signature = nextAtomSignature;
|
|
102427
|
-
nextAtomSignature <<= 1n;
|
|
102428
|
-
sideEffectAtoms |= signature;
|
|
102429
|
-
return signature;
|
|
102430
|
-
});
|
|
102431
|
-
}
|
|
102432
|
-
} else {
|
|
102433
|
-
const dependencyChunk = chunkByModule.get(dependency);
|
|
102434
|
-
if (dependencyChunk && dependencyChunk !== chunk) {
|
|
102435
|
-
dependencies.add(dependencyChunk);
|
|
102436
|
-
dependencyChunk.dependentChunks.add(chunk);
|
|
102437
|
-
}
|
|
102438
|
-
}
|
|
102439
|
-
}
|
|
102440
|
-
}
|
|
102441
|
-
const { containedAtoms } = chunk;
|
|
102442
|
-
for (const entryIndex of dependentEntries) {
|
|
102443
|
-
atomsByEntry[entryIndex] |= containedAtoms;
|
|
102444
|
-
}
|
|
102445
|
-
}
|
|
102446
|
-
}
|
|
102447
|
-
for (const chunks of chunkLists) {
|
|
102448
|
-
for (const chunk of chunks) {
|
|
102449
|
-
const { dependentEntries } = chunk;
|
|
102450
|
-
chunk.correlatedAtoms = -1n;
|
|
102451
|
-
for (const entryIndex of dependentEntries) {
|
|
102452
|
-
chunk.correlatedAtoms &= atomsByEntry[entryIndex];
|
|
102453
|
-
}
|
|
102454
|
-
}
|
|
102455
|
-
}
|
|
102456
|
-
return sideEffectAtoms;
|
|
102457
|
-
}
|
|
102458
|
-
function findBestMergeTarget(mergedChunk, { big, sideEffectAtoms, sizeByAtom, small }, smallestAdditionalSize) {
|
|
102545
|
+
function findBestMergeTarget(mergedChunk, { big, small }, sideEffectAtoms, sizeByAtom, smallestAdditionalSize) {
|
|
102459
102546
|
let bestTargetChunk = null;
|
|
102460
102547
|
for (const targetChunk of concatLazy([small, big])) {
|
|
102461
102548
|
if (mergedChunk === targetChunk)
|
|
@@ -102470,12 +102557,6 @@ ${outro}`;
|
|
|
102470
102557
|
}
|
|
102471
102558
|
return bestTargetChunk;
|
|
102472
102559
|
}
|
|
102473
|
-
function getChunksInPartition(chunk, minChunkSize, chunkPartition) {
|
|
102474
|
-
return chunk.size < minChunkSize ? chunkPartition.small : chunkPartition.big;
|
|
102475
|
-
}
|
|
102476
|
-
function compareChunkSize({ size: sizeA }, { size: sizeB }) {
|
|
102477
|
-
return sizeA - sizeB;
|
|
102478
|
-
}
|
|
102479
102560
|
function getAdditionalSizeAfterMerge(mergedChunk, targetChunk, currentAdditionalSize, sideEffectAtoms, sizeByAtom) {
|
|
102480
102561
|
const firstSize = getAdditionalSizeIfNoTransitiveDependencyOrNonCorrelatedSideEffect(mergedChunk, targetChunk, currentAdditionalSize, sideEffectAtoms, sizeByAtom);
|
|
102481
102562
|
return firstSize < currentAdditionalSize ? firstSize + getAdditionalSizeIfNoTransitiveDependencyOrNonCorrelatedSideEffect(targetChunk, mergedChunk, currentAdditionalSize - firstSize, sideEffectAtoms, sizeByAtom) : Infinity;
|
|
@@ -102519,15 +102600,18 @@ ${outro}`;
|
|
|
102519
102600
|
}
|
|
102520
102601
|
return size;
|
|
102521
102602
|
}
|
|
102603
|
+
function getChunksInPartition(chunk, minChunkSize, chunkPartition) {
|
|
102604
|
+
return chunk.size < minChunkSize ? chunkPartition.small : chunkPartition.big;
|
|
102605
|
+
}
|
|
102522
102606
|
function commondir(files) {
|
|
102523
102607
|
if (files.length === 0)
|
|
102524
102608
|
return "/";
|
|
102525
102609
|
if (files.length === 1)
|
|
102526
102610
|
return node_path.dirname(files[0]);
|
|
102527
102611
|
const commonSegments = files.slice(1).reduce((commonSegments2, file) => {
|
|
102528
|
-
const
|
|
102612
|
+
const pathSegments = file.split(/\/+|\\+/);
|
|
102529
102613
|
let index;
|
|
102530
|
-
for (index = 0; commonSegments2[index] ===
|
|
102614
|
+
for (index = 0; commonSegments2[index] === pathSegments[index] && index < Math.min(commonSegments2.length, pathSegments.length); index++)
|
|
102531
102615
|
;
|
|
102532
102616
|
return commonSegments2.slice(0, index);
|
|
102533
102617
|
}, files[0].split(/\/+|\\+/));
|
|
@@ -102613,7 +102697,7 @@ ${outro}`;
|
|
|
102613
102697
|
})}${arrowFunctions ? lineBreakIndent ? `${n2}${lineBreakIndent.base}${lineBreakIndent.t}` : "" : `{${lineBreakIndent ? `${n2}${lineBreakIndent.base}${lineBreakIndent.t}` : _}${functionReturn ? "return " : ""}`}`,
|
|
102614
102698
|
arrowFunctions ? `${name ? ";" : ""}${lineBreakIndent ? `${n2}${lineBreakIndent.base}` : ""}` : `${s}${lineBreakIndent ? `${n2}${lineBreakIndent.base}` : _}}`
|
|
102615
102699
|
];
|
|
102616
|
-
const isValidPropertyName = reservedNamesAsProps ? (name) =>
|
|
102700
|
+
const isValidPropertyName = reservedNamesAsProps ? (name) => VALID_IDENTIFIER_REGEXP.test(name) : (name) => !RESERVED_NAMES.has(name) && VALID_IDENTIFIER_REGEXP.test(name);
|
|
102617
102701
|
return {
|
|
102618
102702
|
_,
|
|
102619
102703
|
cnst,
|
|
@@ -102633,8 +102717,8 @@ ${outro}`;
|
|
|
102633
102717
|
return `{${fields.map(([key, value]) => {
|
|
102634
102718
|
if (key === null)
|
|
102635
102719
|
return `${prefix}${value}`;
|
|
102636
|
-
const
|
|
102637
|
-
return key === value && objectShorthand &&
|
|
102720
|
+
const keyInObject = stringifyObjectKeyIfNeeded(key);
|
|
102721
|
+
return key === value && objectShorthand && key === keyInObject ? prefix + key : `${prefix}${keyInObject}:${_}${value}`;
|
|
102638
102722
|
}).join(`,`)}${fields.length === 0 ? "" : lineBreakIndent ? `${n2}${lineBreakIndent.base}` : _}}`;
|
|
102639
102723
|
},
|
|
102640
102724
|
getPropertyAccess: (name) => isValidPropertyName(name) ? `.${name}` : `[${JSON.stringify(name)}]`,
|
|
@@ -102643,7 +102727,6 @@ ${outro}`;
|
|
|
102643
102727
|
};
|
|
102644
102728
|
}
|
|
102645
102729
|
var wrapIfNeeded = (code, needsParens) => needsParens ? `(${code})` : code;
|
|
102646
|
-
var validPropertyName = /^(?!\d)[\w$]+$/;
|
|
102647
102730
|
var Source = class {
|
|
102648
102731
|
constructor(filename, content) {
|
|
102649
102732
|
this.isOriginal = true;
|
|
@@ -102791,9 +102874,10 @@ ${outro}`;
|
|
|
102791
102874
|
const renderedChunks = await Promise.all(chunks.map((chunk) => chunk.render()));
|
|
102792
102875
|
timeEnd("render chunks", 2);
|
|
102793
102876
|
timeStart("transform chunks", 2);
|
|
102877
|
+
const getHash = hasherByType[outputOptions.hashCharacters];
|
|
102794
102878
|
const chunkGraph = getChunkGraph(chunks);
|
|
102795
|
-
const { initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log);
|
|
102796
|
-
const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle);
|
|
102879
|
+
const { initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, renderedChunksByPlaceholder, hashDependenciesByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log);
|
|
102880
|
+
const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle, getHash);
|
|
102797
102881
|
addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bundle, nonHashedChunksWithPlaceholders, pluginDriver, outputOptions);
|
|
102798
102882
|
timeEnd("transform chunks", 2);
|
|
102799
102883
|
}
|
|
@@ -102871,7 +102955,7 @@ ${outro}`;
|
|
|
102871
102955
|
map
|
|
102872
102956
|
};
|
|
102873
102957
|
}
|
|
102874
|
-
async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, log) {
|
|
102958
|
+
async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log) {
|
|
102875
102959
|
const nonHashedChunksWithPlaceholders = [];
|
|
102876
102960
|
const renderedChunksByPlaceholder = /* @__PURE__ */ new Map();
|
|
102877
102961
|
const hashDependenciesByPlaceholder = /* @__PURE__ */ new Map();
|
|
@@ -102904,14 +102988,14 @@ ${outro}`;
|
|
|
102904
102988
|
renderedChunksByPlaceholder.set(hashPlaceholder, transformedChunk);
|
|
102905
102989
|
hashDependenciesByPlaceholder.set(hashPlaceholder, {
|
|
102906
102990
|
containedPlaceholders,
|
|
102907
|
-
contentHash:
|
|
102991
|
+
contentHash: getHash(contentToHash)
|
|
102908
102992
|
});
|
|
102909
102993
|
} else {
|
|
102910
102994
|
nonHashedChunksWithPlaceholders.push(transformedChunk);
|
|
102911
102995
|
}
|
|
102912
102996
|
const sourcemapHashPlaceholder = preliminarySourcemapFileName?.hashPlaceholder;
|
|
102913
102997
|
if (map && sourcemapHashPlaceholder) {
|
|
102914
|
-
initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder,
|
|
102998
|
+
initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder, getHash(map.toString()).slice(0, preliminarySourcemapFileName.hashPlaceholder.length));
|
|
102915
102999
|
}
|
|
102916
103000
|
}));
|
|
102917
103001
|
return {
|
|
@@ -102921,7 +103005,7 @@ ${outro}`;
|
|
|
102921
103005
|
renderedChunksByPlaceholder
|
|
102922
103006
|
};
|
|
102923
103007
|
}
|
|
102924
|
-
function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle) {
|
|
103008
|
+
function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, bundle, getHash) {
|
|
102925
103009
|
const hashesByPlaceholder = new Map(initialHashesByPlaceholder);
|
|
102926
103010
|
for (const [placeholder, { fileName }] of renderedChunksByPlaceholder) {
|
|
102927
103011
|
let contentToHash = "";
|
|
@@ -102939,7 +103023,7 @@ ${outro}`;
|
|
|
102939
103023
|
if (finalHash) {
|
|
102940
103024
|
contentToHash = finalHash;
|
|
102941
103025
|
}
|
|
102942
|
-
finalHash =
|
|
103026
|
+
finalHash = getHash(contentToHash).slice(0, placeholder.length);
|
|
102943
103027
|
finalFileName = replaceSinglePlaceholder(fileName, placeholder, finalHash);
|
|
102944
103028
|
} while (bundle[lowercaseBundleKeys].has(finalFileName.toLowerCase()));
|
|
102945
103029
|
bundle[finalFileName] = FILE_PLACEHOLDER;
|
|
@@ -104163,6 +104247,7 @@ ${outro}`;
|
|
|
104163
104247
|
freeze: config.freeze ?? true,
|
|
104164
104248
|
generatedCode,
|
|
104165
104249
|
globals: config.globals || {},
|
|
104250
|
+
hashCharacters: config.hashCharacters ?? "base64",
|
|
104166
104251
|
hoistTransitiveImports: config.hoistTransitiveImports ?? true,
|
|
104167
104252
|
indent: getIndent(config, compact),
|
|
104168
104253
|
inlineDynamicImports,
|
|
@@ -104439,7 +104524,9 @@ ${outro}`;
|
|
|
104439
104524
|
return parseAst_js.error(parseAst_js.logAlreadyClosed());
|
|
104440
104525
|
return handleGenerateWrite(false, inputOptions, unsetInputOptions, rawOutputOptions, graph);
|
|
104441
104526
|
},
|
|
104442
|
-
watchFiles
|
|
104527
|
+
get watchFiles() {
|
|
104528
|
+
return Object.keys(graph.watchFiles);
|
|
104529
|
+
},
|
|
104443
104530
|
async write(rawOutputOptions) {
|
|
104444
104531
|
if (result.closed)
|
|
104445
104532
|
return parseAst_js.error(parseAst_js.logAlreadyClosed());
|
|
@@ -104580,9 +104667,9 @@ ${outro}`;
|
|
|
104580
104667
|
}
|
|
104581
104668
|
});
|
|
104582
104669
|
|
|
104583
|
-
// node_modules/.pnpm/rollup@4.
|
|
104670
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/fsevents-importer.js
|
|
104584
104671
|
var require_fsevents_importer = __commonJS({
|
|
104585
|
-
"node_modules/.pnpm/rollup@4.
|
|
104672
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/fsevents-importer.js"(exports2) {
|
|
104586
104673
|
"use strict";
|
|
104587
104674
|
var fsEvents;
|
|
104588
104675
|
var fsEventsImportError;
|
|
@@ -104608,9 +104695,9 @@ var require_fsevents_importer = __commonJS({
|
|
|
104608
104695
|
}
|
|
104609
104696
|
});
|
|
104610
104697
|
|
|
104611
|
-
// node_modules/.pnpm/rollup@4.
|
|
104698
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/index.js
|
|
104612
104699
|
var require_shared = __commonJS({
|
|
104613
|
-
"node_modules/.pnpm/rollup@4.
|
|
104700
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/index.js"(exports2) {
|
|
104614
104701
|
"use strict";
|
|
104615
104702
|
var rollup = require_rollup();
|
|
104616
104703
|
var require$$0$1 = require("fs");
|
|
@@ -106420,6 +106507,7 @@ var require_shared = __commonJS({
|
|
|
106420
106507
|
exports3.FSEVENT_MOVED = "moved";
|
|
106421
106508
|
exports3.FSEVENT_CLONED = "cloned";
|
|
106422
106509
|
exports3.FSEVENT_UNKNOWN = "unknown";
|
|
106510
|
+
exports3.FSEVENT_FLAG_MUST_SCAN_SUBDIRS = 1;
|
|
106423
106511
|
exports3.FSEVENT_TYPE_FILE = "file";
|
|
106424
106512
|
exports3.FSEVENT_TYPE_DIRECTORY = "directory";
|
|
106425
106513
|
exports3.FSEVENT_TYPE_SYMLINK = "symlink";
|
|
@@ -106990,6 +107078,7 @@ var require_shared = __commonJS({
|
|
|
106990
107078
|
FSEVENT_MOVED,
|
|
106991
107079
|
// FSEVENT_CLONED,
|
|
106992
107080
|
FSEVENT_UNKNOWN,
|
|
107081
|
+
FSEVENT_FLAG_MUST_SCAN_SUBDIRS,
|
|
106993
107082
|
FSEVENT_TYPE_FILE,
|
|
106994
107083
|
FSEVENT_TYPE_DIRECTORY,
|
|
106995
107084
|
FSEVENT_TYPE_SYMLINK,
|
|
@@ -107054,6 +107143,8 @@ var require_shared = __commonJS({
|
|
|
107054
107143
|
watcher: createFSEventsInstance(watchPath, (fullPath, flags) => {
|
|
107055
107144
|
if (!cont.listeners.size)
|
|
107056
107145
|
return;
|
|
107146
|
+
if (flags & FSEVENT_FLAG_MUST_SCAN_SUBDIRS)
|
|
107147
|
+
return;
|
|
107057
107148
|
const info = fsevents.getInfo(fullPath, flags);
|
|
107058
107149
|
cont.listeners.forEach((list) => {
|
|
107059
107150
|
list(fullPath, flags, info);
|
|
@@ -107717,7 +107808,7 @@ var require_shared = __commonJS({
|
|
|
107717
107808
|
if (!this._readyCount)
|
|
107718
107809
|
this._readyCount = paths.length;
|
|
107719
107810
|
if (this.options.persistent)
|
|
107720
|
-
this._readyCount
|
|
107811
|
+
this._readyCount += paths.length;
|
|
107721
107812
|
paths.forEach((path2) => this._fsEventsHandler._addToFsEvents(path2));
|
|
107722
107813
|
} else {
|
|
107723
107814
|
if (!this._readyCount)
|
|
@@ -108171,9 +108262,9 @@ var require_shared = __commonJS({
|
|
|
108171
108262
|
}
|
|
108172
108263
|
});
|
|
108173
108264
|
|
|
108174
|
-
// node_modules/.pnpm/rollup@4.
|
|
108265
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/watch.js
|
|
108175
108266
|
var require_watch = __commonJS({
|
|
108176
|
-
"node_modules/.pnpm/rollup@4.
|
|
108267
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/shared/watch.js"(exports2) {
|
|
108177
108268
|
"use strict";
|
|
108178
108269
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
108179
108270
|
var node_path = require("node:path");
|
|
@@ -108404,7 +108495,13 @@ var require_watch = __commonJS({
|
|
|
108404
108495
|
return;
|
|
108405
108496
|
}
|
|
108406
108497
|
this.updateWatchedFiles(result);
|
|
108407
|
-
|
|
108498
|
+
if (!this.skipWrite) {
|
|
108499
|
+
await Promise.all(this.outputs.map((output) => result.write(output)));
|
|
108500
|
+
if (this.closed) {
|
|
108501
|
+
return;
|
|
108502
|
+
}
|
|
108503
|
+
this.updateWatchedFiles(result);
|
|
108504
|
+
}
|
|
108408
108505
|
await this.watcher.emitter.emit("event", {
|
|
108409
108506
|
code: "BUNDLE_END",
|
|
108410
108507
|
duration: Date.now() - start,
|
|
@@ -108464,13 +108561,21 @@ var require_watch = __commonJS({
|
|
|
108464
108561
|
}
|
|
108465
108562
|
});
|
|
108466
108563
|
|
|
108467
|
-
// node_modules/.pnpm/rollup@4.
|
|
108468
|
-
var
|
|
108469
|
-
"node_modules/.pnpm/rollup@4.
|
|
108564
|
+
// node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/rollup.js
|
|
108565
|
+
var require_rollup2 = __commonJS({
|
|
108566
|
+
"node_modules/.pnpm/rollup@4.10.0/node_modules/rollup/dist/rollup.js"(exports2) {
|
|
108470
108567
|
"use strict";
|
|
108568
|
+
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
108471
108569
|
var rollup = require_rollup();
|
|
108472
108570
|
var parseAst_js = require_parseAst();
|
|
108473
108571
|
var fseventsImporter = require_fsevents_importer();
|
|
108572
|
+
require("node:process");
|
|
108573
|
+
require("tty");
|
|
108574
|
+
require("node:path");
|
|
108575
|
+
require("path");
|
|
108576
|
+
require("node:perf_hooks");
|
|
108577
|
+
require_native();
|
|
108578
|
+
require("node:fs/promises");
|
|
108474
108579
|
var WatchEmitter = class {
|
|
108475
108580
|
constructor() {
|
|
108476
108581
|
this.currentHandlers = /* @__PURE__ */ Object.create(null);
|
|
@@ -108538,30 +108643,10 @@ var require_watch_proxy = __commonJS({
|
|
|
108538
108643
|
const { Watcher } = await Promise.resolve().then(() => require_watch());
|
|
108539
108644
|
new Watcher(watchOptionsList, emitter);
|
|
108540
108645
|
}
|
|
108541
|
-
exports2.watch = watch;
|
|
108542
|
-
}
|
|
108543
|
-
});
|
|
108544
|
-
|
|
108545
|
-
// node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/rollup.js
|
|
108546
|
-
var require_rollup2 = __commonJS({
|
|
108547
|
-
"node_modules/.pnpm/rollup@4.5.2/node_modules/rollup/dist/rollup.js"(exports2) {
|
|
108548
|
-
"use strict";
|
|
108549
|
-
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
108550
|
-
var rollup = require_rollup();
|
|
108551
|
-
var watchProxy = require_watch_proxy();
|
|
108552
|
-
require_parseAst();
|
|
108553
|
-
require_native();
|
|
108554
|
-
require("node:path");
|
|
108555
|
-
require("node:process");
|
|
108556
|
-
require("tty");
|
|
108557
|
-
require("path");
|
|
108558
|
-
require("node:perf_hooks");
|
|
108559
|
-
require("node:fs/promises");
|
|
108560
|
-
require_fsevents_importer();
|
|
108561
108646
|
exports2.VERSION = rollup.version;
|
|
108562
108647
|
exports2.defineConfig = rollup.defineConfig;
|
|
108563
108648
|
exports2.rollup = rollup.rollup;
|
|
108564
|
-
exports2.watch =
|
|
108649
|
+
exports2.watch = watch;
|
|
108565
108650
|
}
|
|
108566
108651
|
});
|
|
108567
108652
|
|
|
@@ -118504,8 +118589,8 @@ cosmiconfig/dist/ExplorerSync.js:
|
|
|
118504
118589
|
rollup/dist/shared/parseAst.js:
|
|
118505
118590
|
(*
|
|
118506
118591
|
@license
|
|
118507
|
-
Rollup.js v4.
|
|
118508
|
-
|
|
118592
|
+
Rollup.js v4.10.0
|
|
118593
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
118509
118594
|
|
|
118510
118595
|
https://github.com/rollup/rollup
|
|
118511
118596
|
|
|
@@ -118515,8 +118600,8 @@ rollup/dist/shared/parseAst.js:
|
|
|
118515
118600
|
rollup/dist/shared/rollup.js:
|
|
118516
118601
|
(*
|
|
118517
118602
|
@license
|
|
118518
|
-
Rollup.js v4.
|
|
118519
|
-
|
|
118603
|
+
Rollup.js v4.10.0
|
|
118604
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
118520
118605
|
|
|
118521
118606
|
https://github.com/rollup/rollup
|
|
118522
118607
|
|
|
@@ -118526,8 +118611,8 @@ rollup/dist/shared/rollup.js:
|
|
|
118526
118611
|
rollup/dist/shared/fsevents-importer.js:
|
|
118527
118612
|
(*
|
|
118528
118613
|
@license
|
|
118529
|
-
Rollup.js v4.
|
|
118530
|
-
|
|
118614
|
+
Rollup.js v4.10.0
|
|
118615
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
118531
118616
|
|
|
118532
118617
|
https://github.com/rollup/rollup
|
|
118533
118618
|
|
|
@@ -118537,8 +118622,8 @@ rollup/dist/shared/fsevents-importer.js:
|
|
|
118537
118622
|
rollup/dist/shared/index.js:
|
|
118538
118623
|
(*
|
|
118539
118624
|
@license
|
|
118540
|
-
Rollup.js v4.
|
|
118541
|
-
|
|
118625
|
+
Rollup.js v4.10.0
|
|
118626
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
118542
118627
|
|
|
118543
118628
|
https://github.com/rollup/rollup
|
|
118544
118629
|
|
|
@@ -118584,19 +118669,8 @@ rollup/dist/shared/index.js:
|
|
|
118584
118669
|
rollup/dist/shared/watch.js:
|
|
118585
118670
|
(*
|
|
118586
118671
|
@license
|
|
118587
|
-
Rollup.js v4.
|
|
118588
|
-
|
|
118589
|
-
|
|
118590
|
-
https://github.com/rollup/rollup
|
|
118591
|
-
|
|
118592
|
-
Released under the MIT License.
|
|
118593
|
-
*)
|
|
118594
|
-
|
|
118595
|
-
rollup/dist/shared/watch-proxy.js:
|
|
118596
|
-
(*
|
|
118597
|
-
@license
|
|
118598
|
-
Rollup.js v4.5.2
|
|
118599
|
-
Fri, 24 Nov 2023 06:29:16 GMT - commit 2e94641971195c1a4eb9e1a3fe6d73b9d04ffae0
|
|
118672
|
+
Rollup.js v4.10.0
|
|
118673
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
118600
118674
|
|
|
118601
118675
|
https://github.com/rollup/rollup
|
|
118602
118676
|
|
|
@@ -118606,8 +118680,8 @@ rollup/dist/shared/watch-proxy.js:
|
|
|
118606
118680
|
rollup/dist/rollup.js:
|
|
118607
118681
|
(*
|
|
118608
118682
|
@license
|
|
118609
|
-
Rollup.js v4.
|
|
118610
|
-
|
|
118683
|
+
Rollup.js v4.10.0
|
|
118684
|
+
Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
|
|
118611
118685
|
|
|
118612
118686
|
https://github.com/rollup/rollup
|
|
118613
118687
|
|