@forsakringskassan/docs-generator 2.38.3 → 2.38.5
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/{create-markdown-renderer-1_yCrnbT.mjs → create-markdown-renderer-3vzQq-PG.mjs} +11 -7
- package/dist/create-markdown-renderer-3vzQq-PG.mjs.map +1 -0
- package/dist/{format-code.worker-DH_m5cgv.mjs → format-code.worker-i_fzVsDn.mjs} +2 -3
- package/dist/{format-code.worker-DH_m5cgv.mjs.map → format-code.worker-i_fzVsDn.mjs.map} +1 -1
- package/dist/index.mjs +36 -3
- package/dist/index.mjs.map +1 -1
- package/dist/markdown.mjs +2 -3
- package/dist/markdown.mjs.map +1 -1
- package/dist/processors/selectable-version.mjs +3 -0
- package/dist/runtime.mjs +13600 -8603
- package/dist/style/core.css +41 -156
- package/dist/style/index.css +288 -156
- package/dist/style/site.css +247 -0
- package/dist/{vendor-BK-uA6Uv.mjs → vendor-BnFYrp5U.mjs} +64 -174
- package/dist/{vendor-BK-uA6Uv.mjs.map → vendor-BnFYrp5U.mjs.map} +1 -1
- package/package.json +1 -1
- package/templates/partials/cookie-warning.html +12 -12
- package/templates/partials/search-dialog.html +31 -21
- package/templates/partials/selectable-version.html +1 -22
- package/templates/partials/spritesheet.html +13 -0
- package/templates/partials/version-modal.html +20 -0
- package/dist/create-markdown-renderer-1_yCrnbT.mjs.map +0 -1
package/dist/style/site.css
CHANGED
|
@@ -232,6 +232,55 @@ textarea {
|
|
|
232
232
|
display: none;
|
|
233
233
|
padding: 1rem 1.5rem 0;
|
|
234
234
|
}
|
|
235
|
+
.cookie-warning__button-group {
|
|
236
|
+
align-items: center;
|
|
237
|
+
display: flex;
|
|
238
|
+
flex-wrap: wrap;
|
|
239
|
+
gap: 1rem;
|
|
240
|
+
margin-bottom: 1.5rem;
|
|
241
|
+
margin-top: 0.25rem;
|
|
242
|
+
}
|
|
243
|
+
.cookie-warning__button {
|
|
244
|
+
border: 2px solid transparent;
|
|
245
|
+
border-radius: 4px;
|
|
246
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
247
|
+
cursor: pointer;
|
|
248
|
+
font-weight: 600;
|
|
249
|
+
letter-spacing: 0.01rem;
|
|
250
|
+
line-height: 1.5rem;
|
|
251
|
+
max-width: 100%;
|
|
252
|
+
width: 100%;
|
|
253
|
+
text-align: center;
|
|
254
|
+
transition: background-color 350ms ease-out;
|
|
255
|
+
padding: 1rem 1.5rem;
|
|
256
|
+
}
|
|
257
|
+
@media (width >= 768px) {
|
|
258
|
+
.cookie-warning__button {
|
|
259
|
+
max-width: none;
|
|
260
|
+
width: auto;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
.cookie-warning__button:active, .cookie-warning__button:focus {
|
|
264
|
+
outline: 3px solid transparent;
|
|
265
|
+
border-radius: 0;
|
|
266
|
+
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
|
|
267
|
+
}
|
|
268
|
+
.cookie-warning__button--primary {
|
|
269
|
+
background-color: #4a52b6;
|
|
270
|
+
border-color: transparent;
|
|
271
|
+
color: #fff;
|
|
272
|
+
}
|
|
273
|
+
.cookie-warning__button--primary:hover, .cookie-warning__button--primary:active, .cookie-warning__button--primary:focus {
|
|
274
|
+
background-color: #3b4292;
|
|
275
|
+
}
|
|
276
|
+
.cookie-warning__button--secondary {
|
|
277
|
+
background-color: #f5f6fa;
|
|
278
|
+
border-color: #4a52b6;
|
|
279
|
+
color: #4a52b6;
|
|
280
|
+
}
|
|
281
|
+
.cookie-warning__button--secondary:hover, .cookie-warning__button--secondary:active, .cookie-warning__button--secondary:focus {
|
|
282
|
+
background-color: #e5e5f5;
|
|
283
|
+
}
|
|
235
284
|
|
|
236
285
|
.docs-motd {
|
|
237
286
|
padding: 1.5rem;
|
|
@@ -277,6 +326,204 @@ textarea {
|
|
|
277
326
|
--docs-breakpoint-lg: 1280px;
|
|
278
327
|
}
|
|
279
328
|
|
|
329
|
+
.docs-modal__header {
|
|
330
|
+
display: flex;
|
|
331
|
+
justify-content: space-between;
|
|
332
|
+
align-items: flex-start;
|
|
333
|
+
}
|
|
334
|
+
.docs-modal__title {
|
|
335
|
+
color: #1b1e23;
|
|
336
|
+
font-size: 1.5rem;
|
|
337
|
+
letter-spacing: initial;
|
|
338
|
+
}
|
|
339
|
+
.docs-modal__close {
|
|
340
|
+
align-items: center;
|
|
341
|
+
background: inherit;
|
|
342
|
+
border: none;
|
|
343
|
+
color: #1b1e23;
|
|
344
|
+
cursor: pointer;
|
|
345
|
+
display: flex;
|
|
346
|
+
font-weight: 700;
|
|
347
|
+
gap: 0.5rem;
|
|
348
|
+
margin: 0.375rem;
|
|
349
|
+
padding: 0.125rem 0.625rem;
|
|
350
|
+
}
|
|
351
|
+
.docs-modal__close .icon {
|
|
352
|
+
min-width: 1rem;
|
|
353
|
+
}
|
|
354
|
+
.docs-modal::backdrop {
|
|
355
|
+
background: rgba(0, 0, 0, 0.75);
|
|
356
|
+
backdrop-filter: blur(5px);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.docs-modal-active {
|
|
360
|
+
overflow: hidden;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* reset broken FKUI reset */
|
|
364
|
+
dialog {
|
|
365
|
+
display: none;
|
|
366
|
+
}
|
|
367
|
+
dialog[open] {
|
|
368
|
+
display: block;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
kbd {
|
|
372
|
+
border: 1px solid #bbbbbd;
|
|
373
|
+
color: var(--docs-text-color-discrete);
|
|
374
|
+
padding: 0.1rem 0.5rem;
|
|
375
|
+
border-radius: 6px;
|
|
376
|
+
font-family: var(--docs-font-family);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
#search button {
|
|
380
|
+
background: transparent;
|
|
381
|
+
color: var(--docs-text-color-discrete);
|
|
382
|
+
border-radius: 4px;
|
|
383
|
+
border: 0;
|
|
384
|
+
box-shadow: none;
|
|
385
|
+
cursor: text;
|
|
386
|
+
min-height: 2.5rem;
|
|
387
|
+
padding: 0 0.75rem;
|
|
388
|
+
width: 100%;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
#search button:hover {
|
|
392
|
+
cursor: pointer;
|
|
393
|
+
background-color: var(--docs-search-button-color-hover);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
#search button:focus-visible {
|
|
397
|
+
border-radius: 0;
|
|
398
|
+
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
|
|
399
|
+
outline: 3px solid transparent;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
#search .search__icon {
|
|
403
|
+
display: inline-block;
|
|
404
|
+
height: 1rem;
|
|
405
|
+
margin-right: 0.5rem;
|
|
406
|
+
max-height: 100%;
|
|
407
|
+
max-width: 100%;
|
|
408
|
+
pointer-events: none;
|
|
409
|
+
width: 1rem;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
#search-dialog {
|
|
413
|
+
--docs-text-color-default: var(--docs-search-text-color);
|
|
414
|
+
margin-top: 80px;
|
|
415
|
+
background: var(--docs-search-background-color);
|
|
416
|
+
border: 1px solid var(--docs-search-border-color);
|
|
417
|
+
color: var(--docs-text-color-default);
|
|
418
|
+
width: 580px;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.docs-search-dialog__input {
|
|
422
|
+
background-color: #fff;
|
|
423
|
+
box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.1);
|
|
424
|
+
border-radius: 4px;
|
|
425
|
+
border: 2px solid #8d8e91;
|
|
426
|
+
min-height: 2.5rem;
|
|
427
|
+
padding: 0 0.75rem;
|
|
428
|
+
width: 100%;
|
|
429
|
+
margin: 0 0 1.5rem;
|
|
430
|
+
}
|
|
431
|
+
.docs-search-dialog__input:focus {
|
|
432
|
+
border-radius: 0;
|
|
433
|
+
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
|
|
434
|
+
outline: 3px solid transparent;
|
|
435
|
+
}
|
|
436
|
+
.docs-search-dialog__input::-ms-clear {
|
|
437
|
+
display: none;
|
|
438
|
+
}
|
|
439
|
+
.docs-search-dialog__input::-webkit-search-decoration, .docs-search-dialog__input::-webkit-search-cancel-button, .docs-search-dialog__input::-webkit-search-results-button, .docs-search-dialog__input::-webkit-search-results-decoration {
|
|
440
|
+
appearance: none;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.docs-search-result__list {
|
|
444
|
+
overflow-y: auto;
|
|
445
|
+
max-height: 60vh;
|
|
446
|
+
margin: 0.5rem 0 1.5rem;
|
|
447
|
+
padding: 0.2rem;
|
|
448
|
+
}
|
|
449
|
+
.docs-search-result__item {
|
|
450
|
+
display: flex;
|
|
451
|
+
border: 2px solid #8d8e91;
|
|
452
|
+
background: #fff;
|
|
453
|
+
}
|
|
454
|
+
.docs-search-result__item:not(:last-child) {
|
|
455
|
+
border-bottom: none;
|
|
456
|
+
}
|
|
457
|
+
.docs-search-result__item:focus-within .docs-search-result__item:hover {
|
|
458
|
+
background-color: #e5e5e5;
|
|
459
|
+
cursor: pointer;
|
|
460
|
+
}
|
|
461
|
+
.docs-search-result__item--active {
|
|
462
|
+
background-color: #e5e5e5;
|
|
463
|
+
}
|
|
464
|
+
.docs-search-result__link {
|
|
465
|
+
width: 100%;
|
|
466
|
+
padding: 1.25rem;
|
|
467
|
+
text-decoration: none;
|
|
468
|
+
color: var(--docs-text-color-default);
|
|
469
|
+
}
|
|
470
|
+
.docs-search-result__link, .docs-search-result__link:visited {
|
|
471
|
+
color: var(--docs-text-color-default);
|
|
472
|
+
text-decoration: none;
|
|
473
|
+
}
|
|
474
|
+
.docs-search-result__link:focus-visible {
|
|
475
|
+
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
|
|
476
|
+
outline: 3px solid transparent;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
#version button {
|
|
480
|
+
padding: 0;
|
|
481
|
+
background: transparent;
|
|
482
|
+
border: 0;
|
|
483
|
+
box-shadow: none;
|
|
484
|
+
margin: 0;
|
|
485
|
+
color: #5f6165;
|
|
486
|
+
text-decoration-color: #5f6165;
|
|
487
|
+
}
|
|
488
|
+
#version button:hover {
|
|
489
|
+
background-color: #f4f4f4;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
#version-dialog {
|
|
493
|
+
width: 30rem;
|
|
494
|
+
max-height: 80vh;
|
|
495
|
+
background: var(--docs-version-background-color);
|
|
496
|
+
border: 1px solid var(--docs-version-border-color);
|
|
497
|
+
color: var(--docs-text-color-default);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.docs-selectable-version__list {
|
|
501
|
+
margin: 0 0 1.5rem;
|
|
502
|
+
padding-left: 0;
|
|
503
|
+
}
|
|
504
|
+
.docs-selectable-version__item {
|
|
505
|
+
display: flex;
|
|
506
|
+
border: 2px solid #8d8e91;
|
|
507
|
+
background: #fff;
|
|
508
|
+
}
|
|
509
|
+
.docs-selectable-version__item:not(:last-child) {
|
|
510
|
+
border-bottom: none;
|
|
511
|
+
}
|
|
512
|
+
.docs-selectable-version__item:focus-within, .docs-selectable-version__item:hover {
|
|
513
|
+
background: #e5e5f5;
|
|
514
|
+
cursor: pointer;
|
|
515
|
+
}
|
|
516
|
+
.docs-selectable-version__link {
|
|
517
|
+
width: 100%;
|
|
518
|
+
padding: 0.2rem;
|
|
519
|
+
text-decoration: none;
|
|
520
|
+
color: var(--docs-text-color-default);
|
|
521
|
+
}
|
|
522
|
+
.docs-selectable-version__link:focus-visible {
|
|
523
|
+
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1b1e23, 0 0 0 6px #ffffff;
|
|
524
|
+
outline: 3px solid transparent;
|
|
525
|
+
}
|
|
526
|
+
|
|
280
527
|
.version {
|
|
281
528
|
color: var(--docs-text-color-discrete);
|
|
282
529
|
text-wrap: nowrap;
|
|
@@ -24,7 +24,7 @@ import require$$1__default, { dirname } from 'path';
|
|
|
24
24
|
import require$$0$4 from 'readline';
|
|
25
25
|
import require$$3 from 'events';
|
|
26
26
|
import { type as type$2 } from 'node:os';
|
|
27
|
-
import require$$1$
|
|
27
|
+
import require$$1$4 from 'http';
|
|
28
28
|
import require$$2$2 from 'https';
|
|
29
29
|
import * as require$$2 from 'url';
|
|
30
30
|
import require$$2__default, { pathToFileURL as pathToFileURL$1, fileURLToPath as fileURLToPath$1 } from 'url';
|
|
@@ -32,8 +32,7 @@ import require$$0$5 from 'buffer';
|
|
|
32
32
|
import require$$1$2 from 'crypto';
|
|
33
33
|
import require$$1$3 from 'net';
|
|
34
34
|
import require$$2$1 from 'tls';
|
|
35
|
-
import require$$
|
|
36
|
-
import require$$0$6 from 'os';
|
|
35
|
+
import require$$0$6 from 'tty';
|
|
37
36
|
import require$$0$7 from 'querystring';
|
|
38
37
|
import { createRequire as createRequire$1, builtinModules } from 'module';
|
|
39
38
|
import * as fs$9 from 'fs/promises';
|
|
@@ -8476,7 +8475,7 @@ const slashPattern = /\\\\/g;
|
|
|
8476
8475
|
const openPattern = /\\{/g;
|
|
8477
8476
|
const closePattern = /\\}/g;
|
|
8478
8477
|
const commaPattern = /\\,/g;
|
|
8479
|
-
const periodPattern =
|
|
8478
|
+
const periodPattern = /\\\./g;
|
|
8480
8479
|
const EXPANSION_MAX = 100_000;
|
|
8481
8480
|
function numeric(str) {
|
|
8482
8481
|
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
|
|
@@ -10860,7 +10859,7 @@ const findUp = (searchEntry, searchFileOrIncludeDir, includeDir) => {
|
|
|
10860
10859
|
};
|
|
10861
10860
|
|
|
10862
10861
|
const NODE_OPTIONS$1 = process.env.NODE_OPTIONS?.split(/\s+/);
|
|
10863
|
-
const hasFlag
|
|
10862
|
+
const hasFlag = (flag) => NODE_OPTIONS$1?.includes(flag) || process.argv.includes(flag);
|
|
10864
10863
|
const parseVersion = (version) => version.split('.').map(Number.parseFloat);
|
|
10865
10864
|
const compareVersion = (version1, version2) => {
|
|
10866
10865
|
const versions1 = parseVersion(version1);
|
|
@@ -10905,10 +10904,10 @@ const STRIP_TYPES_FLAG = '--experimental-strip-types';
|
|
|
10905
10904
|
const TRANSFORM_TYPES_FLAG = '--experimental-transform-types';
|
|
10906
10905
|
const NO_STRIP_TYPES_FLAG = '--no-experimental-strip-types';
|
|
10907
10906
|
const NODE_OPTIONS = NODE_OPTIONS_.split(/\s+/);
|
|
10908
|
-
const NO_STRIP_TYPES = hasFlag
|
|
10907
|
+
const NO_STRIP_TYPES = hasFlag(NO_STRIP_TYPES_FLAG) &&
|
|
10909
10908
|
(compareNodeVersion(FEATURE_TYPESCRIPT_NODE_VERSION) >= 0
|
|
10910
10909
|
? process.features.typescript === false
|
|
10911
|
-
: !hasFlag
|
|
10910
|
+
: !hasFlag(STRIP_TYPES_FLAG) && !hasFlag(TRANSFORM_TYPES_FLAG));
|
|
10912
10911
|
const DEFAULT_TIMEOUT = SYNCKIT_TIMEOUT ? +SYNCKIT_TIMEOUT : undefined;
|
|
10913
10912
|
const DEFAULT_EXEC_ARGV = SYNCKIT_EXEC_ARGV.split(',');
|
|
10914
10913
|
const DEFAULT_TS_RUNNER = SYNCKIT_TS_RUNNER;
|
|
@@ -18819,11 +18818,11 @@ function requireUtils$1 () {
|
|
|
18819
18818
|
return utils$2;
|
|
18820
18819
|
}
|
|
18821
18820
|
|
|
18822
|
-
var
|
|
18821
|
+
var jsonfile$1;
|
|
18823
18822
|
var hasRequiredJsonfile$1;
|
|
18824
18823
|
|
|
18825
18824
|
function requireJsonfile$1 () {
|
|
18826
|
-
if (hasRequiredJsonfile$1) return
|
|
18825
|
+
if (hasRequiredJsonfile$1) return jsonfile$1;
|
|
18827
18826
|
hasRequiredJsonfile$1 = 1;
|
|
18828
18827
|
let _fs;
|
|
18829
18828
|
try {
|
|
@@ -18905,15 +18904,15 @@ function requireJsonfile$1 () {
|
|
|
18905
18904
|
return fs.writeFileSync(file, str, options)
|
|
18906
18905
|
}
|
|
18907
18906
|
|
|
18908
|
-
|
|
18907
|
+
// NOTE: do not change this export format; required for ESM compat
|
|
18908
|
+
// see https://github.com/jprichardson/node-jsonfile/pull/162 for details
|
|
18909
|
+
jsonfile$1 = {
|
|
18909
18910
|
readFile,
|
|
18910
18911
|
readFileSync,
|
|
18911
18912
|
writeFile,
|
|
18912
18913
|
writeFileSync
|
|
18913
18914
|
};
|
|
18914
|
-
|
|
18915
|
-
jsonfile_1 = jsonfile;
|
|
18916
|
-
return jsonfile_1;
|
|
18915
|
+
return jsonfile$1;
|
|
18917
18916
|
}
|
|
18918
18917
|
|
|
18919
18918
|
var jsonfile;
|
|
@@ -19661,7 +19660,16 @@ function keysFromSelector(selector, opts) {
|
|
|
19661
19660
|
const {
|
|
19662
19661
|
[PATH_KEY]: path
|
|
19663
19662
|
} = selector(createProxy());
|
|
19664
|
-
|
|
19663
|
+
const keySeparator = opts?.keySeparator ?? '.';
|
|
19664
|
+
const nsSeparator = opts?.nsSeparator ?? ':';
|
|
19665
|
+
if (path.length > 1 && nsSeparator) {
|
|
19666
|
+
const ns = opts?.ns;
|
|
19667
|
+
const namespaces = ns ? Array.isArray(ns) ? ns : [ns] : [];
|
|
19668
|
+
if (namespaces.includes(path[0])) {
|
|
19669
|
+
return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;
|
|
19670
|
+
}
|
|
19671
|
+
}
|
|
19672
|
+
return path.join(keySeparator);
|
|
19665
19673
|
}
|
|
19666
19674
|
|
|
19667
19675
|
const checkedLoadedFor = {};
|
|
@@ -19735,6 +19743,10 @@ class Translator extends EventEmitter {
|
|
|
19735
19743
|
...opt
|
|
19736
19744
|
});
|
|
19737
19745
|
if (!Array.isArray(keys)) keys = [String(keys)];
|
|
19746
|
+
keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {
|
|
19747
|
+
...this.options,
|
|
19748
|
+
...opt
|
|
19749
|
+
}) : String(k));
|
|
19738
19750
|
const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;
|
|
19739
19751
|
const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
|
|
19740
19752
|
const {
|
|
@@ -19981,6 +19993,10 @@ class Translator extends EventEmitter {
|
|
|
19981
19993
|
let usedLng;
|
|
19982
19994
|
let usedNS;
|
|
19983
19995
|
if (isString(keys)) keys = [keys];
|
|
19996
|
+
if (Array.isArray(keys)) keys = keys.map(k => typeof k === 'function' ? keysFromSelector(k, {
|
|
19997
|
+
...this.options,
|
|
19998
|
+
...opt
|
|
19999
|
+
}) : k);
|
|
19984
20000
|
keys.forEach(k => {
|
|
19985
20001
|
if (this.isValidLookup(found)) return;
|
|
19986
20002
|
const extracted = this.extractFromKey(k, opt);
|
|
@@ -20979,7 +20995,7 @@ class I18n extends EventEmitter {
|
|
|
20979
20995
|
this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
|
|
20980
20996
|
}
|
|
20981
20997
|
if (this.options.showSupportNotice !== false && !usesLocize(this) && !getSupportNoticeShown()) {
|
|
20982
|
-
if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is
|
|
20998
|
+
if (typeof console !== 'undefined' && typeof console.info !== 'undefined') console.info('🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙');
|
|
20983
20999
|
setSupportNoticeShown();
|
|
20984
21000
|
}
|
|
20985
21001
|
const createClassOnDemand = ClassOrObject => {
|
|
@@ -45994,7 +46010,7 @@ function requireObjectAssign () {
|
|
|
45994
46010
|
|
|
45995
46011
|
var src = {exports: {}};
|
|
45996
46012
|
|
|
45997
|
-
var browser = {exports: {}};
|
|
46013
|
+
var browser$1 = {exports: {}};
|
|
45998
46014
|
|
|
45999
46015
|
/**
|
|
46000
46016
|
* Helpers.
|
|
@@ -46423,11 +46439,11 @@ function requireCommon () {
|
|
|
46423
46439
|
return common;
|
|
46424
46440
|
}
|
|
46425
46441
|
|
|
46426
|
-
var hasRequiredBrowser;
|
|
46442
|
+
var hasRequiredBrowser$1;
|
|
46427
46443
|
|
|
46428
|
-
function requireBrowser () {
|
|
46429
|
-
if (hasRequiredBrowser) return browser.exports;
|
|
46430
|
-
hasRequiredBrowser = 1;
|
|
46444
|
+
function requireBrowser$1 () {
|
|
46445
|
+
if (hasRequiredBrowser$1) return browser$1.exports;
|
|
46446
|
+
hasRequiredBrowser$1 = 1;
|
|
46431
46447
|
(function (module, exports$1) {
|
|
46432
46448
|
|
|
46433
46449
|
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -46607,169 +46623,43 @@ function requireBrowser () {
|
|
|
46607
46623
|
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
46608
46624
|
}
|
|
46609
46625
|
};
|
|
46610
|
-
} (browser, browser.exports));
|
|
46611
|
-
return browser.exports;
|
|
46626
|
+
} (browser$1, browser$1.exports));
|
|
46627
|
+
return browser$1.exports;
|
|
46612
46628
|
}
|
|
46613
46629
|
|
|
46614
46630
|
var node = {exports: {}};
|
|
46615
46631
|
|
|
46616
|
-
|
|
46617
|
-
var hasRequiredHasFlag;
|
|
46618
|
-
|
|
46619
|
-
function requireHasFlag () {
|
|
46620
|
-
if (hasRequiredHasFlag) return hasFlag;
|
|
46621
|
-
hasRequiredHasFlag = 1;
|
|
46622
|
-
|
|
46623
|
-
hasFlag = (flag, argv = process.argv) => {
|
|
46624
|
-
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
|
|
46625
|
-
const position = argv.indexOf(prefix + flag);
|
|
46626
|
-
const terminatorPosition = argv.indexOf('--');
|
|
46627
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
46628
|
-
};
|
|
46629
|
-
return hasFlag;
|
|
46630
|
-
}
|
|
46631
|
-
|
|
46632
|
-
var supportsColor_1;
|
|
46633
|
-
var hasRequiredSupportsColor;
|
|
46634
|
-
|
|
46635
|
-
function requireSupportsColor () {
|
|
46636
|
-
if (hasRequiredSupportsColor) return supportsColor_1;
|
|
46637
|
-
hasRequiredSupportsColor = 1;
|
|
46638
|
-
const os = require$$0$6;
|
|
46639
|
-
const tty = require$$1$4;
|
|
46640
|
-
const hasFlag = requireHasFlag();
|
|
46641
|
-
|
|
46642
|
-
const {env} = process;
|
|
46643
|
-
|
|
46644
|
-
let forceColor;
|
|
46645
|
-
if (hasFlag('no-color') ||
|
|
46646
|
-
hasFlag('no-colors') ||
|
|
46647
|
-
hasFlag('color=false') ||
|
|
46648
|
-
hasFlag('color=never')) {
|
|
46649
|
-
forceColor = 0;
|
|
46650
|
-
} else if (hasFlag('color') ||
|
|
46651
|
-
hasFlag('colors') ||
|
|
46652
|
-
hasFlag('color=true') ||
|
|
46653
|
-
hasFlag('color=always')) {
|
|
46654
|
-
forceColor = 1;
|
|
46655
|
-
}
|
|
46656
|
-
|
|
46657
|
-
if ('FORCE_COLOR' in env) {
|
|
46658
|
-
if (env.FORCE_COLOR === 'true') {
|
|
46659
|
-
forceColor = 1;
|
|
46660
|
-
} else if (env.FORCE_COLOR === 'false') {
|
|
46661
|
-
forceColor = 0;
|
|
46662
|
-
} else {
|
|
46663
|
-
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
46664
|
-
}
|
|
46665
|
-
}
|
|
46666
|
-
|
|
46667
|
-
function translateLevel(level) {
|
|
46668
|
-
if (level === 0) {
|
|
46669
|
-
return false;
|
|
46670
|
-
}
|
|
46671
|
-
|
|
46672
|
-
return {
|
|
46673
|
-
level,
|
|
46674
|
-
hasBasic: true,
|
|
46675
|
-
has256: level >= 2,
|
|
46676
|
-
has16m: level >= 3
|
|
46677
|
-
};
|
|
46678
|
-
}
|
|
46679
|
-
|
|
46680
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
46681
|
-
if (forceColor === 0) {
|
|
46682
|
-
return 0;
|
|
46683
|
-
}
|
|
46684
|
-
|
|
46685
|
-
if (hasFlag('color=16m') ||
|
|
46686
|
-
hasFlag('color=full') ||
|
|
46687
|
-
hasFlag('color=truecolor')) {
|
|
46688
|
-
return 3;
|
|
46689
|
-
}
|
|
46690
|
-
|
|
46691
|
-
if (hasFlag('color=256')) {
|
|
46692
|
-
return 2;
|
|
46693
|
-
}
|
|
46694
|
-
|
|
46695
|
-
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
46696
|
-
return 0;
|
|
46697
|
-
}
|
|
46698
|
-
|
|
46699
|
-
const min = forceColor || 0;
|
|
46700
|
-
|
|
46701
|
-
if (env.TERM === 'dumb') {
|
|
46702
|
-
return min;
|
|
46703
|
-
}
|
|
46704
|
-
|
|
46705
|
-
if (process.platform === 'win32') {
|
|
46706
|
-
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
|
46707
|
-
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
|
46708
|
-
const osRelease = os.release().split('.');
|
|
46709
|
-
if (
|
|
46710
|
-
Number(osRelease[0]) >= 10 &&
|
|
46711
|
-
Number(osRelease[2]) >= 10586
|
|
46712
|
-
) {
|
|
46713
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
46714
|
-
}
|
|
46715
|
-
|
|
46716
|
-
return 1;
|
|
46717
|
-
}
|
|
46718
|
-
|
|
46719
|
-
if ('CI' in env) {
|
|
46720
|
-
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
46721
|
-
return 1;
|
|
46722
|
-
}
|
|
46632
|
+
/* eslint-env browser */
|
|
46723
46633
|
|
|
46724
|
-
|
|
46725
|
-
|
|
46726
|
-
|
|
46727
|
-
if ('TEAMCITY_VERSION' in env) {
|
|
46728
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
46729
|
-
}
|
|
46730
|
-
|
|
46731
|
-
if (env.COLORTERM === 'truecolor') {
|
|
46732
|
-
return 3;
|
|
46733
|
-
}
|
|
46734
|
-
|
|
46735
|
-
if ('TERM_PROGRAM' in env) {
|
|
46736
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
46737
|
-
|
|
46738
|
-
switch (env.TERM_PROGRAM) {
|
|
46739
|
-
case 'iTerm.app':
|
|
46740
|
-
return version >= 3 ? 3 : 2;
|
|
46741
|
-
case 'Apple_Terminal':
|
|
46742
|
-
return 2;
|
|
46743
|
-
// No default
|
|
46744
|
-
}
|
|
46745
|
-
}
|
|
46634
|
+
var browser;
|
|
46635
|
+
var hasRequiredBrowser;
|
|
46746
46636
|
|
|
46747
|
-
|
|
46748
|
-
|
|
46749
|
-
|
|
46637
|
+
function requireBrowser () {
|
|
46638
|
+
if (hasRequiredBrowser) return browser;
|
|
46639
|
+
hasRequiredBrowser = 1;
|
|
46750
46640
|
|
|
46751
|
-
|
|
46752
|
-
|
|
46753
|
-
}
|
|
46641
|
+
function getChromeVersion() {
|
|
46642
|
+
const matches = /(Chrome|Chromium)\/(?<chromeVersion>\d+)\./.exec(navigator.userAgent);
|
|
46754
46643
|
|
|
46755
|
-
if (
|
|
46756
|
-
return
|
|
46644
|
+
if (!matches) {
|
|
46645
|
+
return;
|
|
46757
46646
|
}
|
|
46758
46647
|
|
|
46759
|
-
return
|
|
46648
|
+
return Number.parseInt(matches.groups.chromeVersion, 10);
|
|
46760
46649
|
}
|
|
46761
46650
|
|
|
46762
|
-
|
|
46763
|
-
|
|
46764
|
-
|
|
46765
|
-
|
|
46651
|
+
const colorSupport = getChromeVersion() >= 69 ? {
|
|
46652
|
+
level: 1,
|
|
46653
|
+
hasBasic: true,
|
|
46654
|
+
has256: false,
|
|
46655
|
+
has16m: false
|
|
46656
|
+
} : false;
|
|
46766
46657
|
|
|
46767
|
-
|
|
46768
|
-
|
|
46769
|
-
|
|
46770
|
-
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
46658
|
+
browser = {
|
|
46659
|
+
stdout: colorSupport,
|
|
46660
|
+
stderr: colorSupport
|
|
46771
46661
|
};
|
|
46772
|
-
return
|
|
46662
|
+
return browser;
|
|
46773
46663
|
}
|
|
46774
46664
|
|
|
46775
46665
|
var hasRequiredNode;
|
|
@@ -46782,7 +46672,7 @@ function requireNode () {
|
|
|
46782
46672
|
/**
|
|
46783
46673
|
* Module dependencies.
|
|
46784
46674
|
*/
|
|
46785
|
-
var tty = require$$
|
|
46675
|
+
var tty = require$$0$6;
|
|
46786
46676
|
|
|
46787
46677
|
var util = require$$1$1;
|
|
46788
46678
|
/**
|
|
@@ -46805,7 +46695,7 @@ function requireNode () {
|
|
|
46805
46695
|
try {
|
|
46806
46696
|
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
46807
46697
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
46808
|
-
var supportsColor =
|
|
46698
|
+
var supportsColor = requireBrowser();
|
|
46809
46699
|
|
|
46810
46700
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
46811
46701
|
exports$1.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
|
|
@@ -46968,7 +46858,7 @@ function requireSrc$1 () {
|
|
|
46968
46858
|
* treat as a browser.
|
|
46969
46859
|
*/
|
|
46970
46860
|
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
46971
|
-
src.exports = requireBrowser();
|
|
46861
|
+
src.exports = requireBrowser$1();
|
|
46972
46862
|
} else {
|
|
46973
46863
|
src.exports = requireNode();
|
|
46974
46864
|
}
|
|
@@ -51189,7 +51079,7 @@ function requireServer () {
|
|
|
51189
51079
|
|
|
51190
51080
|
var _fs2 = _interopRequireDefault(_fs);
|
|
51191
51081
|
|
|
51192
|
-
var _http = require$$1$
|
|
51082
|
+
var _http = require$$1$4;
|
|
51193
51083
|
|
|
51194
51084
|
var _http2 = _interopRequireDefault(_http);
|
|
51195
51085
|
|
|
@@ -72215,4 +72105,4 @@ var typescript = /*#__PURE__*/Object.freeze({
|
|
|
72215
72105
|
});
|
|
72216
72106
|
|
|
72217
72107
|
export { HighlightJS as H, MarkdownIt as M, Ze$a as Z, resolveConfig as a, createTwoFilesPatch$1 as b, createSyncFn as c, dedent$1 as d, deflist_plugin as e, format2 as f, closest as g, distance as h, fm$2 as i, isCI as j, moduleImporter as k, cliProgress as l, minimatch as m, tinylr as n, createInstance as o, fse as p, inter as q, runAsWorker as r, ts$7 as t, watch$1 as w };
|
|
72218
|
-
//# sourceMappingURL=vendor-
|
|
72108
|
+
//# sourceMappingURL=vendor-BnFYrp5U.mjs.map
|