@forsakringskassan/docs-generator 2.15.3 → 2.15.4
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/dist/compile-example.js +3 -3
- package/dist/{create-markdown-renderer-Di-qCq2u.js → create-markdown-renderer-BZa4tA3t.js} +3 -3
- package/dist/index.js +15 -15
- package/dist/markdown.js +3 -3
- package/dist/runtime.js +19 -11
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/{vendor-BL9nAHkj.js → vendor-CH9TWbb8.js} +19 -19
- package/dist/{vue3-C1XLD9Wv.js → vue3-Cp7zCQ3F.js} +68 -68
- package/package.json +1 -1
package/dist/compile-example.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var path$1 = require('node:path');
|
|
4
4
|
var esbuild = require('esbuild');
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var vue3 = require('./vue3-
|
|
6
|
+
var vue3 = require('./vue3-Cp7zCQ3F.js');
|
|
7
7
|
var path = require('node:path/posix');
|
|
8
8
|
require('@vue/compiler-sfc');
|
|
9
|
-
require('./vendor-
|
|
9
|
+
require('./vendor-CH9TWbb8.js');
|
|
10
10
|
require('node:url');
|
|
11
11
|
require('fs');
|
|
12
12
|
require('node:fs');
|
|
@@ -56,7 +56,7 @@ function virtualEntryPlugin(entries) {
|
|
|
56
56
|
namespace: pluginName
|
|
57
57
|
};
|
|
58
58
|
} else {
|
|
59
|
-
return
|
|
59
|
+
return undefined;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
build.onLoad({ filter: /.*/, namespace: pluginName }, (args) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var vendor = require('./vendor-
|
|
3
|
+
var vendor = require('./vendor-CH9TWbb8.js');
|
|
4
4
|
var path = require('node:path/posix');
|
|
5
5
|
var path$1 = require('node:path');
|
|
6
6
|
require('crypto');
|
|
@@ -8,7 +8,7 @@ var crypto = require('node:crypto');
|
|
|
8
8
|
require('node:child_process');
|
|
9
9
|
var fs = require('node:fs');
|
|
10
10
|
var vue = require('vue');
|
|
11
|
-
var vue3 = require('./vue3-
|
|
11
|
+
var vue3 = require('./vue3-Cp7zCQ3F.js');
|
|
12
12
|
|
|
13
13
|
function findDocument(haystack, needle) {
|
|
14
14
|
const match = haystack.find((it) => {
|
|
@@ -508,7 +508,7 @@ function getStandalonePath(output) {
|
|
|
508
508
|
function codePreview(options) {
|
|
509
509
|
const { generateExample } = options;
|
|
510
510
|
return (md) => {
|
|
511
|
-
md.renderer.rules.fence = fence.bind(
|
|
511
|
+
md.renderer.rules.fence = fence.bind(undefined, md);
|
|
512
512
|
};
|
|
513
513
|
function fence(_md, tokens, idx, _options, env) {
|
|
514
514
|
const { fileInfo } = env;
|
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var fs = require('node:fs/promises');
|
|
4
4
|
var path = require('node:path/posix');
|
|
5
|
-
var vendor = require('./vendor-
|
|
5
|
+
var vendor = require('./vendor-CH9TWbb8.js');
|
|
6
6
|
var path$1 = require('node:path');
|
|
7
7
|
var require$$1 = require('crypto');
|
|
8
8
|
require('node:crypto');
|
|
9
|
-
var createMarkdownRenderer = require('./create-markdown-renderer-
|
|
9
|
+
var createMarkdownRenderer = require('./create-markdown-renderer-BZa4tA3t.js');
|
|
10
10
|
var node_child_process = require('node:child_process');
|
|
11
11
|
var util = require('node:util');
|
|
12
12
|
var vueDocgenApi = require('vue-docgen-api');
|
|
@@ -43,7 +43,7 @@ require('tls');
|
|
|
43
43
|
require('tty');
|
|
44
44
|
require('querystring');
|
|
45
45
|
require('vue');
|
|
46
|
-
require('./vue3-
|
|
46
|
+
require('./vue3-Cp7zCQ3F.js');
|
|
47
47
|
|
|
48
48
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
49
49
|
function toArray$2(value) {
|
|
@@ -163,14 +163,14 @@ function getPullRequestID(env) {
|
|
|
163
163
|
if (env.JOB_BASE_NAME) {
|
|
164
164
|
const name = env.JOB_BASE_NAME;
|
|
165
165
|
const match = name.match(/^PR-(\d+)$/);
|
|
166
|
-
return match ? match[1] :
|
|
166
|
+
return match ? match[1] : undefined;
|
|
167
167
|
}
|
|
168
168
|
if (env.GITHUB_REF) {
|
|
169
169
|
const name = env.GITHUB_REF;
|
|
170
170
|
const match = name.match(/^refs\/pull\/([^/]+)\/merge$/);
|
|
171
|
-
return match ? match[1] :
|
|
171
|
+
return match ? match[1] : undefined;
|
|
172
172
|
}
|
|
173
|
-
return
|
|
173
|
+
return undefined;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
const RE_MATCH_SSH = /^(ssh:\/\/)?(?<user>[^@]+)@(?<host>[^:]+):(?<path>.*)$/;
|
|
@@ -353,7 +353,7 @@ md$1.renderer.rules.fence = (tokens, idx, _options, collected) => {
|
|
|
353
353
|
const { language, tags } = createMarkdownRenderer.parseInfostring(info);
|
|
354
354
|
const hashContent = `${map?.[0]}:${map?.[1]}:${info}:${content}`;
|
|
355
355
|
const fingerprint = createMarkdownRenderer.getFingerprint(hashContent);
|
|
356
|
-
let extension =
|
|
356
|
+
let extension = undefined;
|
|
357
357
|
if (language === "import") {
|
|
358
358
|
extension = content.split(".").at(-1)?.trim();
|
|
359
359
|
}
|
|
@@ -440,7 +440,7 @@ function normalizeOptions(options) {
|
|
|
440
440
|
const defaults = {
|
|
441
441
|
enabled: true,
|
|
442
442
|
container: "body:begin",
|
|
443
|
-
message:
|
|
443
|
+
message: undefined
|
|
444
444
|
};
|
|
445
445
|
return { ...defaults, ...options };
|
|
446
446
|
}
|
|
@@ -462,7 +462,7 @@ function motdProcessor(options = {}) {
|
|
|
462
462
|
};
|
|
463
463
|
context.addTemplateBlock(container, "motd-container", {
|
|
464
464
|
filename: "partials/motd-container.njk.html",
|
|
465
|
-
data: useLegacyTemplate ?
|
|
465
|
+
data: useLegacyTemplate ? undefined : data
|
|
466
466
|
});
|
|
467
467
|
if (useLegacyTemplate) {
|
|
468
468
|
console.warn(
|
|
@@ -754,7 +754,7 @@ async function getSCMData(pkg, options) {
|
|
|
754
754
|
const { homepage } = pkg;
|
|
755
755
|
const repository = getRepositoryUrl(pkg) ?? "";
|
|
756
756
|
const pr = getPullRequestID(process.env);
|
|
757
|
-
const prUrl = pr ? interpolate(options.prUrlFormat, { homepage, pr, repository }) :
|
|
757
|
+
const prUrl = pr ? interpolate(options.prUrlFormat, { homepage, pr, repository }) : undefined;
|
|
758
758
|
return {
|
|
759
759
|
branch: await getGitBranch(),
|
|
760
760
|
commitShort,
|
|
@@ -889,7 +889,7 @@ function isIndexPage(parsed) {
|
|
|
889
889
|
}
|
|
890
890
|
function getBadge(attrs) {
|
|
891
891
|
if (!attrs.status) {
|
|
892
|
-
return
|
|
892
|
+
return undefined;
|
|
893
893
|
}
|
|
894
894
|
switch (attrs.status) {
|
|
895
895
|
case "Produktionsklar":
|
|
@@ -914,7 +914,7 @@ function getComponentAlias(attrs) {
|
|
|
914
914
|
}
|
|
915
915
|
function getComponent(attrs) {
|
|
916
916
|
if (!attrs.component) {
|
|
917
|
-
return
|
|
917
|
+
return undefined;
|
|
918
918
|
}
|
|
919
919
|
return toArray$1(attrs.component).map((it) => {
|
|
920
920
|
if (typeof it === "string") {
|
|
@@ -2178,7 +2178,7 @@ async function compileVendor(assetFolder, vendor, options) {
|
|
|
2178
2178
|
__VUE_PROD_DEVTOOLS__: "true",
|
|
2179
2179
|
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "false"
|
|
2180
2180
|
},
|
|
2181
|
-
alias: vendor.alias ? { [`${vendor.package}`]: vendor.alias } :
|
|
2181
|
+
alias: vendor.alias ? { [`${vendor.package}`]: vendor.alias } : undefined,
|
|
2182
2182
|
...options
|
|
2183
2183
|
});
|
|
2184
2184
|
const content = await fs.readFile(outfile, "utf-8");
|
|
@@ -2201,7 +2201,7 @@ function normalizeVendorDefinition(vendor) {
|
|
|
2201
2201
|
if (typeof vendor === "string") {
|
|
2202
2202
|
return {
|
|
2203
2203
|
package: vendor,
|
|
2204
|
-
global:
|
|
2204
|
+
global: undefined,
|
|
2205
2205
|
expose: "named",
|
|
2206
2206
|
subpaths: []
|
|
2207
2207
|
};
|
|
@@ -2211,7 +2211,7 @@ function normalizeVendorDefinition(vendor) {
|
|
|
2211
2211
|
global: vendor.global,
|
|
2212
2212
|
expose: vendor.expose ?? "named",
|
|
2213
2213
|
subpaths: vendor.subpaths ?? [],
|
|
2214
|
-
alias: vendor.alias ??
|
|
2214
|
+
alias: vendor.alias ?? undefined
|
|
2215
2215
|
};
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
package/dist/markdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var createMarkdownRenderer = require('./create-markdown-renderer-
|
|
4
|
-
require('./vendor-
|
|
3
|
+
var createMarkdownRenderer = require('./create-markdown-renderer-BZa4tA3t.js');
|
|
4
|
+
require('./vendor-CH9TWbb8.js');
|
|
5
5
|
require('node:url');
|
|
6
6
|
require('node:path');
|
|
7
7
|
require('fs');
|
|
@@ -37,7 +37,7 @@ require('querystring');
|
|
|
37
37
|
require('node:path/posix');
|
|
38
38
|
require('node:crypto');
|
|
39
39
|
require('vue');
|
|
40
|
-
require('./vue3-
|
|
40
|
+
require('./vue3-Cp7zCQ3F.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
package/dist/runtime.js
CHANGED
|
@@ -141866,14 +141866,15 @@ function e4(e6, r2) {
|
|
|
141866
141866
|
}
|
|
141867
141867
|
}
|
|
141868
141868
|
|
|
141869
|
-
// node_modules/@leeoniya/ufuzzy/dist/uFuzzy.
|
|
141870
|
-
var cmp =
|
|
141869
|
+
// node_modules/@leeoniya/ufuzzy/dist/uFuzzy.mjs
|
|
141870
|
+
var cmp = (a2, b2) => a2 > b2 ? 1 : a2 < b2 ? -1 : 0;
|
|
141871
141871
|
var inf = Infinity;
|
|
141872
141872
|
var escapeRegExp2 = (str2) => str2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
141873
141873
|
var EXACT_HERE = "eexxaacctt";
|
|
141874
141874
|
var PUNCT_RE = /\p{P}/gu;
|
|
141875
141875
|
var LATIN_UPPER = "A-Z";
|
|
141876
141876
|
var LATIN_LOWER = "a-z";
|
|
141877
|
+
var COLLATE_ARGS = ["en", { numeric: true, sensitivity: "base" }];
|
|
141877
141878
|
var swapAlpha = (str2, upper, lower2) => str2.replace(LATIN_UPPER, upper).replace(LATIN_LOWER, lower2);
|
|
141878
141879
|
var OPTS = {
|
|
141879
141880
|
// whether regexps use a /u unicode flag
|
|
@@ -141912,8 +141913,11 @@ var OPTS = {
|
|
|
141912
141913
|
// (since intraIns is between each char, it can accum to nonsense matches)
|
|
141913
141914
|
intraFilt: (term, match2, index) => true,
|
|
141914
141915
|
// should this also accept WIP info?
|
|
141916
|
+
toUpper: (str2) => str2.toLocaleUpperCase(),
|
|
141917
|
+
toLower: (str2) => str2.toLocaleLowerCase(),
|
|
141918
|
+
compare: null,
|
|
141915
141919
|
// final sorting fn
|
|
141916
|
-
sort: (info2, haystack, needle) => {
|
|
141920
|
+
sort: (info2, haystack, needle, compare = cmp) => {
|
|
141917
141921
|
let {
|
|
141918
141922
|
idx,
|
|
141919
141923
|
chars,
|
|
@@ -141937,7 +141941,7 @@ var OPTS = {
|
|
|
141937
141941
|
interIns[ia] - interIns[ib] || // earliest start of match
|
|
141938
141942
|
start3[ia] - start3[ib] || // case match
|
|
141939
141943
|
cases[ib] - cases[ia] || // alphabetic
|
|
141940
|
-
|
|
141944
|
+
compare(haystack[idx[ia]], haystack[idx[ib]])
|
|
141941
141945
|
));
|
|
141942
141946
|
}
|
|
141943
141947
|
};
|
|
@@ -141960,16 +141964,20 @@ function uFuzzy(opts) {
|
|
|
141960
141964
|
interSplit: _interSplit,
|
|
141961
141965
|
intraBound: _intraBound,
|
|
141962
141966
|
interBound: _interBound,
|
|
141963
|
-
intraChars
|
|
141967
|
+
intraChars,
|
|
141968
|
+
toUpper,
|
|
141969
|
+
toLower,
|
|
141970
|
+
compare
|
|
141964
141971
|
} = opts;
|
|
141965
141972
|
intraIns ??= intraMode;
|
|
141966
141973
|
intraSub ??= intraMode;
|
|
141967
141974
|
intraTrn ??= intraMode;
|
|
141968
141975
|
intraDel ??= intraMode;
|
|
141976
|
+
compare ??= typeof Intl == "undefined" ? cmp : new Intl.Collator(...COLLATE_ARGS).compare;
|
|
141969
141977
|
let alpha = opts.letters ?? opts.alpha;
|
|
141970
141978
|
if (alpha != null) {
|
|
141971
|
-
let upper = alpha
|
|
141972
|
-
let lower2 = alpha
|
|
141979
|
+
let upper = toUpper(alpha);
|
|
141980
|
+
let lower2 = toLower(alpha);
|
|
141973
141981
|
_interSplit = swapAlpha(_interSplit, upper, lower2);
|
|
141974
141982
|
_intraSplit = swapAlpha(_intraSplit, upper, lower2);
|
|
141975
141983
|
_interBound = swapAlpha(_interBound, upper, lower2);
|
|
@@ -142020,7 +142028,7 @@ function uFuzzy(opts) {
|
|
|
142020
142028
|
});
|
|
142021
142029
|
needle = needle.replace(trimRe, "");
|
|
142022
142030
|
if (!keepCase)
|
|
142023
|
-
needle = needle
|
|
142031
|
+
needle = toLower(needle);
|
|
142024
142032
|
if (withIntraSplit)
|
|
142025
142033
|
needle = needle.replace(intraSplit, (m2) => m2[0] + " " + m2[1]);
|
|
142026
142034
|
let j2 = 0;
|
|
@@ -142194,7 +142202,7 @@ function uFuzzy(opts) {
|
|
|
142194
142202
|
let intra = 0;
|
|
142195
142203
|
let refine = [];
|
|
142196
142204
|
for (let j2 = 0, k2 = 2; j2 < partsLen; j2++, k2 += 2) {
|
|
142197
|
-
let group2 = m2[k2]
|
|
142205
|
+
let group2 = toLower(m2[k2]);
|
|
142198
142206
|
let term = _terms[j2];
|
|
142199
142207
|
let termCased = _termsCased[j2];
|
|
142200
142208
|
let termLen = term.length;
|
|
@@ -142203,7 +142211,7 @@ function uFuzzy(opts) {
|
|
|
142203
142211
|
if (m2[k2] == termCased)
|
|
142204
142212
|
cases++;
|
|
142205
142213
|
if (!fullMatch && m2[k2 + 1].length >= termLen) {
|
|
142206
|
-
let idxOf = m2[k2 + 1]
|
|
142214
|
+
let idxOf = toLower(m2[k2 + 1]).indexOf(term);
|
|
142207
142215
|
if (idxOf > -1) {
|
|
142208
142216
|
refine.push(idxAcc, groupLen, idxOf, termLen);
|
|
142209
142217
|
idxAcc += refineMatch(m2, k2, idxOf, termLen);
|
|
@@ -142448,7 +142456,7 @@ function uFuzzy(opts) {
|
|
|
142448
142456
|
continue;
|
|
142449
142457
|
let needle2 = needles[ni];
|
|
142450
142458
|
let _info = info2(idxs, haystack, needle2);
|
|
142451
|
-
let order2 = opts.sort(_info, haystack, needle2);
|
|
142459
|
+
let order2 = opts.sort(_info, haystack, needle2, compare);
|
|
142452
142460
|
if (ni > 0) {
|
|
142453
142461
|
for (let i4 = 0; i4 < order2.length; i4++)
|
|
142454
142462
|
order2[i4] += retOrder.length;
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -663,7 +663,7 @@ const decodeMap = new Map([
|
|
|
663
663
|
*/
|
|
664
664
|
const fromCodePoint$1 =
|
|
665
665
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
666
|
-
(_a = String.fromCodePoint) !== null && _a !==
|
|
666
|
+
(_a = String.fromCodePoint) !== null && _a !== undefined ? _a : function (codePoint) {
|
|
667
667
|
let output = "";
|
|
668
668
|
if (codePoint > 0xffff) {
|
|
669
669
|
codePoint -= 0x10000;
|
|
@@ -683,7 +683,7 @@ function replaceCodePoint(codePoint) {
|
|
|
683
683
|
if ((codePoint >= 0xd800 && codePoint <= 0xdfff) || codePoint > 0x10ffff) {
|
|
684
684
|
return 0xfffd;
|
|
685
685
|
}
|
|
686
|
-
return (_a = decodeMap.get(codePoint)) !== null && _a !==
|
|
686
|
+
return (_a = decodeMap.get(codePoint)) !== null && _a !== undefined ? _a : codePoint;
|
|
687
687
|
}
|
|
688
688
|
|
|
689
689
|
var CharCodes;
|
|
@@ -927,7 +927,7 @@ class EntityDecoder {
|
|
|
927
927
|
var _a;
|
|
928
928
|
// Ensure we consumed at least one digit.
|
|
929
929
|
if (this.consumed <= expectedLength) {
|
|
930
|
-
(_a = this.errors) === null || _a ===
|
|
930
|
+
(_a = this.errors) === null || _a === undefined ? undefined : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
|
|
931
931
|
return 0;
|
|
932
932
|
}
|
|
933
933
|
// Figure out if this is a legit end of the entity
|
|
@@ -1002,7 +1002,7 @@ class EntityDecoder {
|
|
|
1002
1002
|
const { result, decodeTree } = this;
|
|
1003
1003
|
const valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
|
|
1004
1004
|
this.emitNamedEntityData(result, valueLength, this.consumed);
|
|
1005
|
-
(_a = this.errors) === null || _a ===
|
|
1005
|
+
(_a = this.errors) === null || _a === undefined ? undefined : _a.missingSemicolonAfterCharacterReference();
|
|
1006
1006
|
return this.consumed;
|
|
1007
1007
|
}
|
|
1008
1008
|
/**
|
|
@@ -1051,7 +1051,7 @@ class EntityDecoder {
|
|
|
1051
1051
|
return this.emitNumericEntity(0, 3);
|
|
1052
1052
|
}
|
|
1053
1053
|
case EntityDecoderState.NumericStart: {
|
|
1054
|
-
(_a = this.errors) === null || _a ===
|
|
1054
|
+
(_a = this.errors) === null || _a === undefined ? undefined : _a.absenceOfDigitsInNumericCharacterReference(this.consumed);
|
|
1055
1055
|
return 0;
|
|
1056
1056
|
}
|
|
1057
1057
|
case EntityDecoderState.EntityStart: {
|
|
@@ -9358,7 +9358,7 @@ class AST {
|
|
|
9358
9358
|
return [s, unescape$1(this.toString()), false, false];
|
|
9359
9359
|
}
|
|
9360
9360
|
// XXX abstract out this map method
|
|
9361
|
-
let bodyDotAllowed = !repeated || allowDot || dot ||
|
|
9361
|
+
let bodyDotAllowed = !repeated || allowDot || dot || false
|
|
9362
9362
|
? ''
|
|
9363
9363
|
: this.#partsToRegExp(true);
|
|
9364
9364
|
if (bodyDotAllowed === body) {
|
|
@@ -13069,7 +13069,7 @@ const IFLNK = 0b1010;
|
|
|
13069
13069
|
const IFSOCK = 0b1100;
|
|
13070
13070
|
const IFMT = 0b1111;
|
|
13071
13071
|
// mask to unset low 4 bits
|
|
13072
|
-
const IFMT_UNKNOWN =
|
|
13072
|
+
const IFMT_UNKNOWN = -16;
|
|
13073
13073
|
// set after successfully calling readdir() and getting entries.
|
|
13074
13074
|
const READDIR_CALLED = 0b0000_0001_0000;
|
|
13075
13075
|
// set after a successful lstat()
|
|
@@ -13382,7 +13382,7 @@ class PathBase {
|
|
|
13382
13382
|
}
|
|
13383
13383
|
const children = Object.assign([], { provisional: 0 });
|
|
13384
13384
|
this.#children.set(this, children);
|
|
13385
|
-
this.#type &=
|
|
13385
|
+
this.#type &= -17;
|
|
13386
13386
|
return children;
|
|
13387
13387
|
}
|
|
13388
13388
|
/**
|
|
@@ -16327,7 +16327,7 @@ function requireRegisterTs () {
|
|
|
16327
16327
|
requireRegisterTs();
|
|
16328
16328
|
|
|
16329
16329
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16330
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source),
|
|
16330
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16331
16331
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16332
16332
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
16333
16333
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
@@ -23779,12 +23779,12 @@ function requireFormatValue () {
|
|
|
23779
23779
|
|
|
23780
23780
|
// padding
|
|
23781
23781
|
function autopadding(value, length){
|
|
23782
|
-
return (options.autopaddingChar + value).slice(-
|
|
23782
|
+
return (options.autopaddingChar + value).slice(-3);
|
|
23783
23783
|
}
|
|
23784
23784
|
|
|
23785
23785
|
switch (type){
|
|
23786
23786
|
case 'percentage':
|
|
23787
|
-
return autopadding(v
|
|
23787
|
+
return autopadding(v);
|
|
23788
23788
|
|
|
23789
23789
|
default:
|
|
23790
23790
|
return v;
|
|
@@ -44588,15 +44588,15 @@ function requireRing_buffer () {
|
|
|
44588
44588
|
};
|
|
44589
44589
|
|
|
44590
44590
|
RingBuffer.prototype.peek = function() {
|
|
44591
|
-
if (this.length === 0) return
|
|
44591
|
+
if (this.length === 0) return undefined;
|
|
44592
44592
|
return this._buffer[this._head];
|
|
44593
44593
|
};
|
|
44594
44594
|
|
|
44595
44595
|
RingBuffer.prototype.shift = function() {
|
|
44596
|
-
if (this.length === 0) return
|
|
44596
|
+
if (this.length === 0) return undefined;
|
|
44597
44597
|
|
|
44598
44598
|
var value = this._buffer[this._head];
|
|
44599
|
-
this._buffer[this._head] =
|
|
44599
|
+
this._buffer[this._head] = undefined;
|
|
44600
44600
|
this.length -= 1;
|
|
44601
44601
|
this._ringOffset -= 1;
|
|
44602
44602
|
|
|
@@ -49652,7 +49652,7 @@ function requireGetIntrinsic () {
|
|
|
49652
49652
|
if (!allowMissing) {
|
|
49653
49653
|
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
49654
49654
|
}
|
|
49655
|
-
return
|
|
49655
|
+
return undefined;
|
|
49656
49656
|
}
|
|
49657
49657
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
49658
49658
|
var desc = $gOPD(value, part);
|
|
@@ -50012,7 +50012,7 @@ function requireObjectInspect () {
|
|
|
50012
50012
|
num === Infinity
|
|
50013
50013
|
|| num === -Infinity
|
|
50014
50014
|
|| num !== num
|
|
50015
|
-
|| (num && num > -
|
|
50015
|
+
|| (num && num > -1e3 && num < 1000)
|
|
50016
50016
|
|| $test.call(/e/, str)
|
|
50017
50017
|
) {
|
|
50018
50018
|
return str;
|
|
@@ -51025,7 +51025,7 @@ function requireStringify () {
|
|
|
51025
51025
|
var tmpSc = sideChannel;
|
|
51026
51026
|
var step = 0;
|
|
51027
51027
|
var findFlag = false;
|
|
51028
|
-
while ((tmpSc = tmpSc.get(sentinel)) !==
|
|
51028
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== undefined && !findFlag) {
|
|
51029
51029
|
// Where object last appeared in the ref tree
|
|
51030
51030
|
var pos = tmpSc.get(object);
|
|
51031
51031
|
step += 1;
|
|
@@ -51082,7 +51082,7 @@ function requireStringify () {
|
|
|
51082
51082
|
if (encodeValuesOnly && encoder) {
|
|
51083
51083
|
obj = utils.maybeMap(obj, encoder);
|
|
51084
51084
|
}
|
|
51085
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null :
|
|
51085
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
|
|
51086
51086
|
} else if (isArray(filter)) {
|
|
51087
51087
|
objKeys = filter;
|
|
51088
51088
|
} else {
|
|
@@ -51999,7 +51999,7 @@ function requireServer () {
|
|
|
51999
51999
|
}, {
|
|
52000
52000
|
key: 'param',
|
|
52001
52001
|
value: function param(name, req) {
|
|
52002
|
-
var param =
|
|
52002
|
+
var param = undefined;
|
|
52003
52003
|
if (req.body && req.body[name]) param = req.body[name];else if (req.params && req.params[name]) param = req.params[name];else if (req.query && req.query[name]) param = req.query[name];
|
|
52004
52004
|
|
|
52005
52005
|
// normalize files array
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var require$$0 = require('@vue/compiler-sfc');
|
|
4
|
-
require('./vendor-
|
|
4
|
+
require('./vendor-CH9TWbb8.js');
|
|
5
5
|
|
|
6
6
|
var __create = Object.create;
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -37,7 +37,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
var require_utils = __commonJS({
|
|
38
38
|
"../../node_modules/esbuild-plugin-vue3/dist/utils.js"(exports) {
|
|
39
39
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
40
|
-
if (k2 ===
|
|
40
|
+
if (k2 === undefined) k2 = k;
|
|
41
41
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
42
42
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
43
43
|
desc = { enumerable: true, get: function() {
|
|
@@ -46,7 +46,7 @@ var require_utils = __commonJS({
|
|
|
46
46
|
}
|
|
47
47
|
Object.defineProperty(o, k2, desc);
|
|
48
48
|
} : function(o, m, k, k2) {
|
|
49
|
-
if (k2 ===
|
|
49
|
+
if (k2 === undefined) k2 = k;
|
|
50
50
|
o[k2] = m[k];
|
|
51
51
|
});
|
|
52
52
|
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
@@ -156,11 +156,11 @@ var require_utils = __commonJS({
|
|
|
156
156
|
f = t = 0;
|
|
157
157
|
}
|
|
158
158
|
if (op[0] & 5) throw op[1];
|
|
159
|
-
return { value: op[0] ? op[1] :
|
|
159
|
+
return { value: op[0] ? op[1] : undefined, done: true };
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
163
|
-
exports.AsyncCache = exports.tryAsync = exports.getFullPath = exports.fileExists = exports.getUrlParams =
|
|
163
|
+
exports.AsyncCache = exports.tryAsync = exports.getFullPath = exports.fileExists = exports.getUrlParams = undefined;
|
|
164
164
|
var fs = __importStar(__require("fs"));
|
|
165
165
|
var path = __importStar(__require("path"));
|
|
166
166
|
function getUrlParams(search) {
|
|
@@ -173,7 +173,7 @@ var require_utils = __commonJS({
|
|
|
173
173
|
}
|
|
174
174
|
exports.getUrlParams = getUrlParams;
|
|
175
175
|
function fileExists(path2) {
|
|
176
|
-
return __awaiter(this,
|
|
176
|
+
return __awaiter(this, undefined, undefined, function() {
|
|
177
177
|
var stat;
|
|
178
178
|
return __generator(this, function(_a) {
|
|
179
179
|
switch (_a.label) {
|
|
@@ -201,7 +201,7 @@ var require_utils = __commonJS({
|
|
|
201
201
|
}
|
|
202
202
|
exports.getFullPath = getFullPath;
|
|
203
203
|
function tryAsync(fn, module2, requiredFor) {
|
|
204
|
-
return __awaiter(this,
|
|
204
|
+
return __awaiter(this, undefined, undefined, function() {
|
|
205
205
|
return __generator(this, function(_a) {
|
|
206
206
|
switch (_a.label) {
|
|
207
207
|
case 0:
|
|
@@ -226,7 +226,7 @@ var require_utils = __commonJS({
|
|
|
226
226
|
/** @class */
|
|
227
227
|
function() {
|
|
228
228
|
function AsyncCache2(enabled) {
|
|
229
|
-
if (enabled ===
|
|
229
|
+
if (enabled === undefined) {
|
|
230
230
|
enabled = true;
|
|
231
231
|
}
|
|
232
232
|
this.enabled = enabled;
|
|
@@ -254,7 +254,7 @@ var require_utils = __commonJS({
|
|
|
254
254
|
var require_paths = __commonJS({
|
|
255
255
|
"../../node_modules/esbuild-plugin-vue3/dist/paths.js"(exports) {
|
|
256
256
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
257
|
-
if (k2 ===
|
|
257
|
+
if (k2 === undefined) k2 = k;
|
|
258
258
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
259
259
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
260
260
|
desc = { enumerable: true, get: function() {
|
|
@@ -263,7 +263,7 @@ var require_paths = __commonJS({
|
|
|
263
263
|
}
|
|
264
264
|
Object.defineProperty(o, k2, desc);
|
|
265
265
|
} : function(o, m, k, k2) {
|
|
266
|
-
if (k2 ===
|
|
266
|
+
if (k2 === undefined) k2 = k;
|
|
267
267
|
o[k2] = m[k];
|
|
268
268
|
});
|
|
269
269
|
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
@@ -373,17 +373,17 @@ var require_paths = __commonJS({
|
|
|
373
373
|
f = t = 0;
|
|
374
374
|
}
|
|
375
375
|
if (op[0] & 5) throw op[1];
|
|
376
|
-
return { value: op[0] ? op[1] :
|
|
376
|
+
return { value: op[0] ? op[1] : undefined, done: true };
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
379
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
380
|
-
exports.replaceRules = exports.loadRules =
|
|
380
|
+
exports.replaceRules = exports.loadRules = undefined;
|
|
381
381
|
var utils_1 = require_utils();
|
|
382
382
|
var fs = __importStar(__require("fs"));
|
|
383
383
|
var typescript_1 = __require("typescript");
|
|
384
384
|
var rules = [];
|
|
385
385
|
function loadRules(opts, tsconfigPath) {
|
|
386
|
-
return __awaiter(this,
|
|
386
|
+
return __awaiter(this, undefined, undefined, function() {
|
|
387
387
|
var path, from, to;
|
|
388
388
|
return __generator(this, function(_a) {
|
|
389
389
|
switch (_a.label) {
|
|
@@ -415,7 +415,7 @@ var require_paths = __commonJS({
|
|
|
415
415
|
exports.loadRules = loadRules;
|
|
416
416
|
function loadFromTsconfig(path) {
|
|
417
417
|
var _a;
|
|
418
|
-
return __awaiter(this,
|
|
418
|
+
return __awaiter(this, undefined, undefined, function() {
|
|
419
419
|
var _b, tsconfig, error, _c, _d, path_1, dests, from, to;
|
|
420
420
|
return __generator(this, function(_e) {
|
|
421
421
|
switch (_e.label) {
|
|
@@ -432,11 +432,11 @@ var require_paths = __commonJS({
|
|
|
432
432
|
_d = [path];
|
|
433
433
|
return [4, fs.promises.readFile(path)];
|
|
434
434
|
case 2:
|
|
435
|
-
_b = _c.apply(
|
|
435
|
+
_b = _c.apply(undefined, _d.concat([_e.sent().toString()])), tsconfig = _b.config, error = _b.error;
|
|
436
436
|
if (error) {
|
|
437
437
|
throw new Error("Failed to parse tsconfig.json: ".concat(JSON.stringify(error)));
|
|
438
438
|
}
|
|
439
|
-
if (!((_a = tsconfig === null || tsconfig ===
|
|
439
|
+
if (!((_a = tsconfig === null || tsconfig === undefined ? undefined : tsconfig.compilerOptions) === null || _a === undefined ? undefined : _a.paths)) {
|
|
440
440
|
return [
|
|
441
441
|
2
|
|
442
442
|
/*return*/
|
|
@@ -873,7 +873,7 @@ var require_format = __commonJS({
|
|
|
873
873
|
return spaceOptions;
|
|
874
874
|
}
|
|
875
875
|
function formatFrom(source) {
|
|
876
|
-
if (source ===
|
|
876
|
+
if (source === undefined || source === false) {
|
|
877
877
|
return false;
|
|
878
878
|
}
|
|
879
879
|
if (typeof source == "object" && "breakWith" in source) {
|
|
@@ -1520,7 +1520,7 @@ var require_rounding_precision = __commonJS({
|
|
|
1520
1520
|
};
|
|
1521
1521
|
}
|
|
1522
1522
|
function buildPrecisionFrom(source) {
|
|
1523
|
-
if (source === null || source ===
|
|
1523
|
+
if (source === null || source === undefined) {
|
|
1524
1524
|
return {};
|
|
1525
1525
|
}
|
|
1526
1526
|
if (typeof source == "boolean") {
|
|
@@ -1588,7 +1588,7 @@ var require_optimization_level = __commonJS({
|
|
|
1588
1588
|
replaceMultipleZeros: true,
|
|
1589
1589
|
replaceTimeUnits: true,
|
|
1590
1590
|
replaceZeroUnits: true,
|
|
1591
|
-
roundingPrecision: roundingPrecisionFrom(
|
|
1591
|
+
roundingPrecision: roundingPrecisionFrom(undefined),
|
|
1592
1592
|
selectorsSortingMethod: "standard",
|
|
1593
1593
|
specialComments: "all",
|
|
1594
1594
|
tidyAtRules: true,
|
|
@@ -1628,7 +1628,7 @@ var require_optimization_level = __commonJS({
|
|
|
1628
1628
|
var Zero = OptimizationLevel.Zero;
|
|
1629
1629
|
var One = OptimizationLevel.One;
|
|
1630
1630
|
var Two = OptimizationLevel.Two;
|
|
1631
|
-
if (
|
|
1631
|
+
if (undefined === source) {
|
|
1632
1632
|
delete level[Two];
|
|
1633
1633
|
return level;
|
|
1634
1634
|
}
|
|
@@ -1715,7 +1715,7 @@ var require_optimization_level = __commonJS({
|
|
|
1715
1715
|
var i;
|
|
1716
1716
|
for (i = 0; i <= 2; i++) {
|
|
1717
1717
|
level = "" + i;
|
|
1718
|
-
if (level in clonedSource && (clonedSource[level] ===
|
|
1718
|
+
if (level in clonedSource && (clonedSource[level] === undefined || clonedSource[level] === false)) {
|
|
1719
1719
|
delete clonedSource[level];
|
|
1720
1720
|
}
|
|
1721
1721
|
if (level in clonedSource && clonedSource[level] === true) {
|
|
@@ -2298,7 +2298,7 @@ var require_optimize2 = __commonJS({
|
|
|
2298
2298
|
function transformValue(propertyName, propertyValue, rule, transformCallback) {
|
|
2299
2299
|
var selector = serializeRules(rule);
|
|
2300
2300
|
var transformedValue = transformCallback(propertyName, propertyValue, selector);
|
|
2301
|
-
if (transformedValue ===
|
|
2301
|
+
if (transformedValue === undefined) {
|
|
2302
2302
|
return propertyValue;
|
|
2303
2303
|
} else if (transformedValue === false) {
|
|
2304
2304
|
return IgnoreProperty;
|
|
@@ -5001,7 +5001,7 @@ var require_merge_into_shorthands = __commonJS({
|
|
|
5001
5001
|
var shorthandDescriptor;
|
|
5002
5002
|
var candidateComponents;
|
|
5003
5003
|
for (shorthandName in candidates) {
|
|
5004
|
-
if (
|
|
5004
|
+
if (undefined !== invalidatedBy && shorthandName == invalidatedBy.name) {
|
|
5005
5005
|
continue;
|
|
5006
5006
|
}
|
|
5007
5007
|
shorthandDescriptor = compactable[shorthandName];
|
|
@@ -5049,7 +5049,7 @@ var require_merge_into_shorthands = __commonJS({
|
|
|
5049
5049
|
var important;
|
|
5050
5050
|
var componentName;
|
|
5051
5051
|
for (componentName in components) {
|
|
5052
|
-
if (
|
|
5052
|
+
if (undefined !== important && components[componentName].important != important) {
|
|
5053
5053
|
return true;
|
|
5054
5054
|
}
|
|
5055
5055
|
important = components[componentName].important;
|
|
@@ -7886,7 +7886,7 @@ var require_load_remote_resource = __commonJS({
|
|
|
7886
7886
|
url.parse(uri),
|
|
7887
7887
|
inlineRequest || {}
|
|
7888
7888
|
);
|
|
7889
|
-
if (inlineRequest.hostname !==
|
|
7889
|
+
if (inlineRequest.hostname !== undefined) {
|
|
7890
7890
|
requestOptions.protocol = inlineRequest.protocol || HTTP_PROTOCOL;
|
|
7891
7891
|
requestOptions.path = requestOptions.href;
|
|
7892
7892
|
}
|
|
@@ -7945,7 +7945,7 @@ var require_inline = __commonJS({
|
|
|
7945
7945
|
if (rules === false) {
|
|
7946
7946
|
return ["none"];
|
|
7947
7947
|
}
|
|
7948
|
-
return
|
|
7948
|
+
return undefined === rules ? ["local"] : rules.split(",");
|
|
7949
7949
|
}
|
|
7950
7950
|
module.exports = inlineOptionsFrom;
|
|
7951
7951
|
}
|
|
@@ -7982,7 +7982,7 @@ var require_inline_timeout = __commonJS({
|
|
|
7982
7982
|
var require_rebase = __commonJS({
|
|
7983
7983
|
"../../node_modules/clean-css/lib/options/rebase.js"(exports, module) {
|
|
7984
7984
|
function rebaseFrom(rebaseOption) {
|
|
7985
|
-
return
|
|
7985
|
+
return undefined === rebaseOption ? true : !!rebaseOption;
|
|
7986
7986
|
}
|
|
7987
7987
|
module.exports = rebaseFrom;
|
|
7988
7988
|
}
|
|
@@ -8763,7 +8763,7 @@ var require_tokenize = __commonJS({
|
|
|
8763
8763
|
var internalContext = {
|
|
8764
8764
|
level: Level.BLOCK,
|
|
8765
8765
|
position: {
|
|
8766
|
-
source: externalContext.source ||
|
|
8766
|
+
source: externalContext.source || undefined,
|
|
8767
8767
|
line: 1,
|
|
8768
8768
|
column: 0,
|
|
8769
8769
|
index: 0
|
|
@@ -9189,8 +9189,8 @@ var require_read_sources = __commonJS({
|
|
|
9189
9189
|
}
|
|
9190
9190
|
}
|
|
9191
9191
|
function fromString(input, context, callback) {
|
|
9192
|
-
context.source =
|
|
9193
|
-
context.sourcesContent[
|
|
9192
|
+
context.source = undefined;
|
|
9193
|
+
context.sourcesContent[undefined] = input;
|
|
9194
9194
|
context.stats.originalSize += input.length;
|
|
9195
9195
|
return fromStyles(input, context, { inline: context.options.inline }, callback);
|
|
9196
9196
|
}
|
|
@@ -9630,7 +9630,7 @@ var require_clean = __commonJS({
|
|
|
9630
9630
|
warnings: []
|
|
9631
9631
|
};
|
|
9632
9632
|
if (sourceMap) {
|
|
9633
|
-
context.inputSourceMapTracker.track(
|
|
9633
|
+
context.inputSourceMapTracker.track(undefined, sourceMap);
|
|
9634
9634
|
}
|
|
9635
9635
|
return runner(context.localOnly)(function() {
|
|
9636
9636
|
return readSources(input, context, function(tokens) {
|
|
@@ -10263,7 +10263,7 @@ var require_options = __commonJS({
|
|
|
10263
10263
|
var newOptions = {};
|
|
10264
10264
|
for (var i in defaults) {
|
|
10265
10265
|
if (defaults.hasOwnProperty(i)) {
|
|
10266
|
-
if (options[i] !==
|
|
10266
|
+
if (options[i] !== undefined) {
|
|
10267
10267
|
newOptions[i] = mergeOption(options[i], defaults[i]);
|
|
10268
10268
|
} else {
|
|
10269
10269
|
newOptions[i] = defaults[i];
|
|
@@ -10752,7 +10752,7 @@ var require_lib = __commonJS({
|
|
|
10752
10752
|
removeEmptyQueries: false,
|
|
10753
10753
|
removeRootTrailingSlash: true,
|
|
10754
10754
|
schemeRelative: true,
|
|
10755
|
-
site:
|
|
10755
|
+
site: undefined,
|
|
10756
10756
|
slashesDenoteHost: true
|
|
10757
10757
|
}
|
|
10758
10758
|
);
|
|
@@ -11942,7 +11942,7 @@ var require_html = __commonJS({
|
|
|
11942
11942
|
return __assign.apply(this, arguments);
|
|
11943
11943
|
};
|
|
11944
11944
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
11945
|
-
if (k2 ===
|
|
11945
|
+
if (k2 === undefined) k2 = k;
|
|
11946
11946
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11947
11947
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11948
11948
|
desc = { enumerable: true, get: function() {
|
|
@@ -11951,7 +11951,7 @@ var require_html = __commonJS({
|
|
|
11951
11951
|
}
|
|
11952
11952
|
Object.defineProperty(o, k2, desc);
|
|
11953
11953
|
} : function(o, m, k, k2) {
|
|
11954
|
-
if (k2 ===
|
|
11954
|
+
if (k2 === undefined) k2 = k;
|
|
11955
11955
|
o[k2] = m[k];
|
|
11956
11956
|
});
|
|
11957
11957
|
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
@@ -12061,16 +12061,16 @@ var require_html = __commonJS({
|
|
|
12061
12061
|
f = t = 0;
|
|
12062
12062
|
}
|
|
12063
12063
|
if (op[0] & 5) throw op[1];
|
|
12064
|
-
return { value: op[0] ? op[1] :
|
|
12064
|
+
return { value: op[0] ? op[1] : undefined, done: true };
|
|
12065
12065
|
}
|
|
12066
12066
|
};
|
|
12067
12067
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12068
|
-
exports.generateIndexHTML =
|
|
12068
|
+
exports.generateIndexHTML = undefined;
|
|
12069
12069
|
var fs = __importStar(__require("fs"));
|
|
12070
12070
|
var path = __importStar(__require("path"));
|
|
12071
12071
|
var utils_1 = require_utils();
|
|
12072
12072
|
function generateIndexHTML(result, opts, min, inlineStyles) {
|
|
12073
|
-
return __awaiter(this,
|
|
12073
|
+
return __awaiter(this, undefined, undefined, function() {
|
|
12074
12074
|
var cheerio, $, _a, _b, _i, _c, item, link, name_1, ext, script, link, _d, inlineStyles_1, style, el, html, minify;
|
|
12075
12075
|
return __generator(this, function(_e) {
|
|
12076
12076
|
switch (_e.label) {
|
|
@@ -12161,7 +12161,7 @@ var require_random = __commonJS({
|
|
|
12161
12161
|
var crypto_1 = __require("crypto");
|
|
12162
12162
|
var randomBytesClassic = crypto_1.randomBytes;
|
|
12163
12163
|
function default_1(seed) {
|
|
12164
|
-
if (seed ===
|
|
12164
|
+
if (seed === undefined) {
|
|
12165
12165
|
seed = randomBytesClassic(32);
|
|
12166
12166
|
}
|
|
12167
12167
|
randomBytes.seed = seed;
|
|
@@ -12198,7 +12198,7 @@ var require_dist = __commonJS({
|
|
|
12198
12198
|
return __assign.apply(this, arguments);
|
|
12199
12199
|
};
|
|
12200
12200
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
12201
|
-
if (k2 ===
|
|
12201
|
+
if (k2 === undefined) k2 = k;
|
|
12202
12202
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12203
12203
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12204
12204
|
desc = { enumerable: true, get: function() {
|
|
@@ -12207,7 +12207,7 @@ var require_dist = __commonJS({
|
|
|
12207
12207
|
}
|
|
12208
12208
|
Object.defineProperty(o, k2, desc);
|
|
12209
12209
|
} : function(o, m, k, k2) {
|
|
12210
|
-
if (k2 ===
|
|
12210
|
+
if (k2 === undefined) k2 = k;
|
|
12211
12211
|
o[k2] = m[k];
|
|
12212
12212
|
});
|
|
12213
12213
|
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
@@ -12317,7 +12317,7 @@ var require_dist = __commonJS({
|
|
|
12317
12317
|
f = t = 0;
|
|
12318
12318
|
}
|
|
12319
12319
|
if (op[0] & 5) throw op[1];
|
|
12320
|
-
return { value: op[0] ? op[1] :
|
|
12320
|
+
return { value: op[0] ? op[1] : undefined, done: true };
|
|
12321
12321
|
}
|
|
12322
12322
|
};
|
|
12323
12323
|
var __rest = exports && exports.__rest || function(s, e) {
|
|
@@ -12345,7 +12345,7 @@ var require_dist = __commonJS({
|
|
|
12345
12345
|
var html_1 = require_html();
|
|
12346
12346
|
var random_1 = __importDefault(require_random());
|
|
12347
12347
|
var vuePlugin = function(opts) {
|
|
12348
|
-
if (opts ===
|
|
12348
|
+
if (opts === undefined) {
|
|
12349
12349
|
opts = {};
|
|
12350
12350
|
}
|
|
12351
12351
|
return {
|
|
@@ -12353,7 +12353,7 @@ var require_dist = __commonJS({
|
|
|
12353
12353
|
setup: function(_a) {
|
|
12354
12354
|
var _b;
|
|
12355
12355
|
var buildOpts = _a.initialOptions, build = __rest(_a, ["initialOptions"]);
|
|
12356
|
-
return __awaiter(this,
|
|
12356
|
+
return __awaiter(this, undefined, undefined, function() {
|
|
12357
12357
|
var generatedCSS, mustReplace, random, cache, transforms, _loop_1, name_1;
|
|
12358
12358
|
var _this = this;
|
|
12359
12359
|
return __generator(this, function(_c) {
|
|
@@ -12370,10 +12370,10 @@ var require_dist = __commonJS({
|
|
|
12370
12370
|
});
|
|
12371
12371
|
}
|
|
12372
12372
|
generatedCSS = [];
|
|
12373
|
-
return [4, (0, paths_1.loadRules)(opts, (_b = buildOpts.tsconfig) !== null && _b !==
|
|
12373
|
+
return [4, (0, paths_1.loadRules)(opts, (_b = buildOpts.tsconfig) !== null && _b !== undefined ? _b : "tsconfig.json")];
|
|
12374
12374
|
case 1:
|
|
12375
12375
|
mustReplace = _c.sent();
|
|
12376
|
-
random = (0, random_1.default)(typeof opts.scopeId === "object" && typeof opts.scopeId.random === "string" ? opts.scopeId.random :
|
|
12376
|
+
random = (0, random_1.default)(typeof opts.scopeId === "object" && typeof opts.scopeId.random === "string" ? opts.scopeId.random : undefined);
|
|
12377
12377
|
cache = new utils_1.AsyncCache(!opts.disableCache);
|
|
12378
12378
|
transforms = {};
|
|
12379
12379
|
if (opts.directiveTransforms) {
|
|
@@ -12384,7 +12384,7 @@ var require_dist = __commonJS({
|
|
|
12384
12384
|
var _a2;
|
|
12385
12385
|
return {
|
|
12386
12386
|
key: core.createSimpleExpression(JSON.stringify(name), false),
|
|
12387
|
-
value: (_a2 = dir.exp) !== null && _a2 !==
|
|
12387
|
+
value: (_a2 = dir.exp) !== null && _a2 !== undefined ? _a2 : core.createSimpleExpression("void 0", false),
|
|
12388
12388
|
loc: dir.loc,
|
|
12389
12389
|
type: 16
|
|
12390
12390
|
};
|
|
@@ -12397,7 +12397,7 @@ var require_dist = __commonJS({
|
|
|
12397
12397
|
}
|
|
12398
12398
|
var ret = propName_1(args[0], args[1], args[2]);
|
|
12399
12399
|
return {
|
|
12400
|
-
props: ret ===
|
|
12400
|
+
props: ret === undefined ? [] : [transformation_1(args[0], ret)]
|
|
12401
12401
|
};
|
|
12402
12402
|
};
|
|
12403
12403
|
} else {
|
|
@@ -12415,7 +12415,7 @@ var require_dist = __commonJS({
|
|
|
12415
12415
|
}
|
|
12416
12416
|
if (mustReplace) {
|
|
12417
12417
|
build.onResolve({ filter: /.*/ }, function(args) {
|
|
12418
|
-
return __awaiter(_this,
|
|
12418
|
+
return __awaiter(_this, undefined, undefined, function() {
|
|
12419
12419
|
var aliased, fullPath, possible, _i, possible_1, postfix;
|
|
12420
12420
|
return __generator(this, function(_a2) {
|
|
12421
12421
|
switch (_a2.label) {
|
|
@@ -12466,7 +12466,7 @@ var require_dist = __commonJS({
|
|
|
12466
12466
|
});
|
|
12467
12467
|
}
|
|
12468
12468
|
build.onResolve({ filter: /\.vue/ }, function(args) {
|
|
12469
|
-
return __awaiter(_this,
|
|
12469
|
+
return __awaiter(_this, undefined, undefined, function() {
|
|
12470
12470
|
var params;
|
|
12471
12471
|
return __generator(this, function(_a2) {
|
|
12472
12472
|
params = (0, utils_1.getUrlParams)(args.path);
|
|
@@ -12480,7 +12480,7 @@ var require_dist = __commonJS({
|
|
|
12480
12480
|
});
|
|
12481
12481
|
build.onLoad({ filter: /\.vue$/ }, function(args) {
|
|
12482
12482
|
return cache.get([args.path, args.namespace], function() {
|
|
12483
|
-
return __awaiter(_this,
|
|
12483
|
+
return __awaiter(_this, undefined, undefined, function() {
|
|
12484
12484
|
var encPath, source, filename, id, descriptor, script, dataId, code, src, style, renderFuncName;
|
|
12485
12485
|
return __generator(this, function(_a2) {
|
|
12486
12486
|
switch (_a2.label) {
|
|
@@ -12494,7 +12494,7 @@ var require_dist = __commonJS({
|
|
|
12494
12494
|
descriptor = sfc.parse(source, {
|
|
12495
12495
|
filename
|
|
12496
12496
|
}).descriptor;
|
|
12497
|
-
script = descriptor.script || descriptor.scriptSetup ? sfc.compileScript(descriptor, { id, fs: typescript_1.default.sys }) :
|
|
12497
|
+
script = descriptor.script || descriptor.scriptSetup ? sfc.compileScript(descriptor, { id, fs: typescript_1.default.sys }) : undefined;
|
|
12498
12498
|
dataId = "data-v-" + id;
|
|
12499
12499
|
code = "";
|
|
12500
12500
|
if (descriptor.script || descriptor.scriptSetup) {
|
|
@@ -12531,7 +12531,7 @@ var require_dist = __commonJS({
|
|
|
12531
12531
|
});
|
|
12532
12532
|
build.onLoad({ filter: /.*/, namespace: "sfc-script" }, function(args) {
|
|
12533
12533
|
return cache.get([args.path, args.namespace], function() {
|
|
12534
|
-
return __awaiter(_this,
|
|
12534
|
+
return __awaiter(_this, undefined, undefined, function() {
|
|
12535
12535
|
var script, code, sourceMap;
|
|
12536
12536
|
return __generator(this, function(_a2) {
|
|
12537
12537
|
script = args.pluginData.script;
|
|
@@ -12557,7 +12557,7 @@ var require_dist = __commonJS({
|
|
|
12557
12557
|
});
|
|
12558
12558
|
build.onLoad({ filter: /.*/, namespace: "sfc-template" }, function(args) {
|
|
12559
12559
|
return cache.get([args.path, args.namespace], function() {
|
|
12560
|
-
return __awaiter(_this,
|
|
12560
|
+
return __awaiter(_this, undefined, undefined, function() {
|
|
12561
12561
|
var _a2, descriptor, id, script, source, pug, result;
|
|
12562
12562
|
return __generator(this, function(_b2) {
|
|
12563
12563
|
switch (_b2.label) {
|
|
@@ -12590,7 +12590,7 @@ var require_dist = __commonJS({
|
|
|
12590
12590
|
ssr: opts.renderSSR,
|
|
12591
12591
|
ssrCssVars: [],
|
|
12592
12592
|
isProd: process.env.NODE_ENV === "production" || buildOpts.minify,
|
|
12593
|
-
compilerOptions: __assign({ inSSR: opts.renderSSR, directiveTransforms: transforms, bindingMetadata: script === null || script ===
|
|
12593
|
+
compilerOptions: __assign({ inSSR: opts.renderSSR, directiveTransforms: transforms, bindingMetadata: script === null || script === undefined ? undefined : script.bindings }, opts.compilerOptions)
|
|
12594
12594
|
});
|
|
12595
12595
|
if (result.errors.length > 0) {
|
|
12596
12596
|
return [2, {
|
|
@@ -12622,7 +12622,7 @@ var require_dist = __commonJS({
|
|
|
12622
12622
|
});
|
|
12623
12623
|
build.onLoad({ filter: /.*/, namespace: "sfc-style" }, function(args) {
|
|
12624
12624
|
return cache.get([args.path, args.namespace], function() {
|
|
12625
|
-
return __awaiter(_this,
|
|
12625
|
+
return __awaiter(_this, undefined, undefined, function() {
|
|
12626
12626
|
var _a2, descriptor, index, id, style, includedFiles, result, errors, cssText, contents;
|
|
12627
12627
|
var _b2, _c2;
|
|
12628
12628
|
return __generator(this, function(_d) {
|
|
@@ -12635,8 +12635,8 @@ var require_dist = __commonJS({
|
|
|
12635
12635
|
filename: args.path,
|
|
12636
12636
|
id,
|
|
12637
12637
|
source: style.content,
|
|
12638
|
-
postcssOptions: (_b2 = opts.postcss) === null || _b2 ===
|
|
12639
|
-
postcssPlugins: (_c2 = opts.postcss) === null || _c2 ===
|
|
12638
|
+
postcssOptions: (_b2 = opts.postcss) === null || _b2 === undefined ? undefined : _b2.options,
|
|
12639
|
+
postcssPlugins: (_c2 = opts.postcss) === null || _c2 === undefined ? undefined : _c2.plugins,
|
|
12640
12640
|
preprocessLang: style.lang,
|
|
12641
12641
|
preprocessOptions: Object.assign({
|
|
12642
12642
|
includePaths: [
|
|
@@ -12705,24 +12705,24 @@ var require_dist = __commonJS({
|
|
|
12705
12705
|
});
|
|
12706
12706
|
});
|
|
12707
12707
|
build.onEnd(function(result) {
|
|
12708
|
-
return __awaiter(_this,
|
|
12708
|
+
return __awaiter(_this, undefined, undefined, function() {
|
|
12709
12709
|
var outDir;
|
|
12710
12710
|
var _a2, _b2, _c2, _d;
|
|
12711
12711
|
var _e, _f, _g;
|
|
12712
12712
|
return __generator(this, function(_h) {
|
|
12713
12713
|
switch (_h.label) {
|
|
12714
12714
|
case 0:
|
|
12715
|
-
if (!((opts === null || opts ===
|
|
12715
|
+
if (!((opts === null || opts === undefined ? undefined : opts.generateHTML) && result.errors.length == 0)) return [3, 2];
|
|
12716
12716
|
if (typeof opts.generateHTML === "string") {
|
|
12717
12717
|
opts.generateHTML = {
|
|
12718
12718
|
sourceFile: opts.generateHTML
|
|
12719
12719
|
};
|
|
12720
12720
|
}
|
|
12721
|
-
outDir = buildOpts.outdir ? buildOpts.outdir : buildOpts.outfile ? path.dirname(buildOpts.outfile) :
|
|
12722
|
-
(_a2 = (_e = opts.generateHTML).trimPath) !== null && _a2 !==
|
|
12723
|
-
(_b2 = (_f = opts.generateHTML).pathPrefix) !== null && _b2 !==
|
|
12724
|
-
(_c2 = (_g = opts.generateHTML).outFile) !== null && _c2 !==
|
|
12725
|
-
return [4, (0, html_1.generateIndexHTML)(result, opts.generateHTML, (_d = buildOpts.minify) !== null && _d !==
|
|
12721
|
+
outDir = buildOpts.outdir ? buildOpts.outdir : buildOpts.outfile ? path.dirname(buildOpts.outfile) : undefined;
|
|
12722
|
+
(_a2 = (_e = opts.generateHTML).trimPath) !== null && _a2 !== undefined ? _a2 : _e.trimPath = outDir;
|
|
12723
|
+
(_b2 = (_f = opts.generateHTML).pathPrefix) !== null && _b2 !== undefined ? _b2 : _f.pathPrefix = "/";
|
|
12724
|
+
(_c2 = (_g = opts.generateHTML).outFile) !== null && _c2 !== undefined ? _c2 : _g.outFile = outDir && path.join(outDir, "index.html");
|
|
12725
|
+
return [4, (0, html_1.generateIndexHTML)(result, opts.generateHTML, (_d = buildOpts.minify) !== null && _d !== undefined ? _d : false, opts.cssInline ? generatedCSS : undefined)];
|
|
12726
12726
|
case 1:
|
|
12727
12727
|
_h.sent();
|
|
12728
12728
|
_h.label = 2;
|
|
@@ -12772,7 +12772,7 @@ function generateCode(options) {
|
|
|
12772
12772
|
}).join("\n");
|
|
12773
12773
|
let sourcecode = `import { setup } from "${setupPath}";
|
|
12774
12774
|
`;
|
|
12775
|
-
let bindings =
|
|
12775
|
+
let bindings = undefined;
|
|
12776
12776
|
if (descriptor.script || descriptor.scriptSetup) {
|
|
12777
12777
|
const script = require$$0.compileScript(descriptor, {
|
|
12778
12778
|
id: scopeId,
|
|
@@ -12789,7 +12789,7 @@ function generateCode(options) {
|
|
|
12789
12789
|
compilerOptions: {
|
|
12790
12790
|
comments: false,
|
|
12791
12791
|
whitespace: "condense",
|
|
12792
|
-
scopeId: hasScoped ? scopeId :
|
|
12792
|
+
scopeId: hasScoped ? scopeId : undefined,
|
|
12793
12793
|
mode: "module"
|
|
12794
12794
|
}
|
|
12795
12795
|
}
|
|
@@ -12814,7 +12814,7 @@ function generateCode(options) {
|
|
|
12814
12814
|
bindingMetadata: bindings,
|
|
12815
12815
|
comments: false,
|
|
12816
12816
|
whitespace: "condense",
|
|
12817
|
-
scopeId: hasScoped ? scopeId :
|
|
12817
|
+
scopeId: hasScoped ? scopeId : undefined,
|
|
12818
12818
|
mode: "module"
|
|
12819
12819
|
}
|
|
12820
12820
|
});
|