@socketsecurity/lib 5.3.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cover/code.js +12 -4
  3. package/dist/dlx/cache.js +10 -2
  4. package/dist/dlx/manifest.js +45 -41
  5. package/dist/env/rewire.js +10 -2
  6. package/dist/external/@inquirer/checkbox.js +4 -2528
  7. package/dist/external/@inquirer/confirm.js +4 -2371
  8. package/dist/external/@inquirer/input.js +4 -2395
  9. package/dist/external/@inquirer/password.js +4 -2503
  10. package/dist/external/@inquirer/search.js +4 -2500
  11. package/dist/external/@inquirer/select.js +4 -2617
  12. package/dist/external/del.js +4 -7139
  13. package/dist/external/fast-glob.js +4 -5776
  14. package/dist/external/inquirer-pack.js +4610 -0
  15. package/dist/external/npm-core.js +3 -1
  16. package/dist/external/pico-pack.js +7162 -0
  17. package/dist/external/picomatch.js +4 -1523
  18. package/dist/external/spdx-correct.js +4 -1384
  19. package/dist/external/spdx-expression-parse.js +4 -1047
  20. package/dist/external/spdx-pack.js +1640 -0
  21. package/dist/external/validate-npm-package-name.js +4 -104
  22. package/dist/http-request.js +10 -2
  23. package/dist/ipc.js +53 -29
  24. package/dist/packages/isolation.js +45 -23
  25. package/dist/packages/licenses.js +10 -2
  26. package/dist/paths/socket.d.ts +2 -2
  27. package/dist/paths/socket.js +27 -21
  28. package/dist/process-lock.js +23 -14
  29. package/dist/releases/github.d.ts +67 -41
  30. package/dist/releases/github.js +142 -100
  31. package/dist/releases/socket-btm.d.ts +40 -33
  32. package/dist/releases/socket-btm.js +45 -5
  33. package/dist/spawn.js +10 -3
  34. package/dist/stdio/mask.d.ts +6 -21
  35. package/dist/stdio/mask.js +18 -14
  36. package/dist/themes/context.js +10 -2
  37. package/package.json +2 -1
@@ -0,0 +1,1640 @@
1
+ "use strict";
2
+ /**
3
+ * Bundled from spdx-pack
4
+ * This is a zero-dependency bundle created by esbuild.
5
+ */
6
+ "use strict";
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
10
+ var __commonJS = (cb, mod) => function __require() {
11
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
+ };
13
+
14
+ // node_modules/.pnpm/spdx-license-ids@3.0.22/node_modules/spdx-license-ids/index.json
15
+ var require_spdx_license_ids = __commonJS({
16
+ "node_modules/.pnpm/spdx-license-ids@3.0.22/node_modules/spdx-license-ids/index.json"(exports2, module2) {
17
+ module2.exports = [
18
+ "0BSD",
19
+ "3D-Slicer-1.0",
20
+ "AAL",
21
+ "ADSL",
22
+ "AFL-1.1",
23
+ "AFL-1.2",
24
+ "AFL-2.0",
25
+ "AFL-2.1",
26
+ "AFL-3.0",
27
+ "AGPL-1.0-only",
28
+ "AGPL-1.0-or-later",
29
+ "AGPL-3.0-only",
30
+ "AGPL-3.0-or-later",
31
+ "AMD-newlib",
32
+ "AMDPLPA",
33
+ "AML",
34
+ "AML-glslang",
35
+ "AMPAS",
36
+ "ANTLR-PD",
37
+ "ANTLR-PD-fallback",
38
+ "APAFML",
39
+ "APL-1.0",
40
+ "APSL-1.0",
41
+ "APSL-1.1",
42
+ "APSL-1.2",
43
+ "APSL-2.0",
44
+ "ASWF-Digital-Assets-1.0",
45
+ "ASWF-Digital-Assets-1.1",
46
+ "Abstyles",
47
+ "AdaCore-doc",
48
+ "Adobe-2006",
49
+ "Adobe-Display-PostScript",
50
+ "Adobe-Glyph",
51
+ "Adobe-Utopia",
52
+ "Afmparse",
53
+ "Aladdin",
54
+ "Apache-1.0",
55
+ "Apache-1.1",
56
+ "Apache-2.0",
57
+ "App-s2p",
58
+ "Arphic-1999",
59
+ "Artistic-1.0",
60
+ "Artistic-1.0-Perl",
61
+ "Artistic-1.0-cl8",
62
+ "Artistic-2.0",
63
+ "Artistic-dist",
64
+ "Aspell-RU",
65
+ "BSD-1-Clause",
66
+ "BSD-2-Clause",
67
+ "BSD-2-Clause-Darwin",
68
+ "BSD-2-Clause-Patent",
69
+ "BSD-2-Clause-Views",
70
+ "BSD-2-Clause-first-lines",
71
+ "BSD-2-Clause-pkgconf-disclaimer",
72
+ "BSD-3-Clause",
73
+ "BSD-3-Clause-Attribution",
74
+ "BSD-3-Clause-Clear",
75
+ "BSD-3-Clause-HP",
76
+ "BSD-3-Clause-LBNL",
77
+ "BSD-3-Clause-Modification",
78
+ "BSD-3-Clause-No-Military-License",
79
+ "BSD-3-Clause-No-Nuclear-License",
80
+ "BSD-3-Clause-No-Nuclear-License-2014",
81
+ "BSD-3-Clause-No-Nuclear-Warranty",
82
+ "BSD-3-Clause-Open-MPI",
83
+ "BSD-3-Clause-Sun",
84
+ "BSD-3-Clause-acpica",
85
+ "BSD-3-Clause-flex",
86
+ "BSD-4-Clause",
87
+ "BSD-4-Clause-Shortened",
88
+ "BSD-4-Clause-UC",
89
+ "BSD-4.3RENO",
90
+ "BSD-4.3TAHOE",
91
+ "BSD-Advertising-Acknowledgement",
92
+ "BSD-Attribution-HPND-disclaimer",
93
+ "BSD-Inferno-Nettverk",
94
+ "BSD-Protection",
95
+ "BSD-Source-Code",
96
+ "BSD-Source-beginning-file",
97
+ "BSD-Systemics",
98
+ "BSD-Systemics-W3Works",
99
+ "BSL-1.0",
100
+ "BUSL-1.1",
101
+ "Baekmuk",
102
+ "Bahyph",
103
+ "Barr",
104
+ "Beerware",
105
+ "BitTorrent-1.0",
106
+ "BitTorrent-1.1",
107
+ "Bitstream-Charter",
108
+ "Bitstream-Vera",
109
+ "BlueOak-1.0.0",
110
+ "Boehm-GC",
111
+ "Boehm-GC-without-fee",
112
+ "Borceux",
113
+ "Brian-Gladman-2-Clause",
114
+ "Brian-Gladman-3-Clause",
115
+ "C-UDA-1.0",
116
+ "CAL-1.0",
117
+ "CAL-1.0-Combined-Work-Exception",
118
+ "CATOSL-1.1",
119
+ "CC-BY-1.0",
120
+ "CC-BY-2.0",
121
+ "CC-BY-2.5",
122
+ "CC-BY-2.5-AU",
123
+ "CC-BY-3.0",
124
+ "CC-BY-3.0-AT",
125
+ "CC-BY-3.0-AU",
126
+ "CC-BY-3.0-DE",
127
+ "CC-BY-3.0-IGO",
128
+ "CC-BY-3.0-NL",
129
+ "CC-BY-3.0-US",
130
+ "CC-BY-4.0",
131
+ "CC-BY-NC-1.0",
132
+ "CC-BY-NC-2.0",
133
+ "CC-BY-NC-2.5",
134
+ "CC-BY-NC-3.0",
135
+ "CC-BY-NC-3.0-DE",
136
+ "CC-BY-NC-4.0",
137
+ "CC-BY-NC-ND-1.0",
138
+ "CC-BY-NC-ND-2.0",
139
+ "CC-BY-NC-ND-2.5",
140
+ "CC-BY-NC-ND-3.0",
141
+ "CC-BY-NC-ND-3.0-DE",
142
+ "CC-BY-NC-ND-3.0-IGO",
143
+ "CC-BY-NC-ND-4.0",
144
+ "CC-BY-NC-SA-1.0",
145
+ "CC-BY-NC-SA-2.0",
146
+ "CC-BY-NC-SA-2.0-DE",
147
+ "CC-BY-NC-SA-2.0-FR",
148
+ "CC-BY-NC-SA-2.0-UK",
149
+ "CC-BY-NC-SA-2.5",
150
+ "CC-BY-NC-SA-3.0",
151
+ "CC-BY-NC-SA-3.0-DE",
152
+ "CC-BY-NC-SA-3.0-IGO",
153
+ "CC-BY-NC-SA-4.0",
154
+ "CC-BY-ND-1.0",
155
+ "CC-BY-ND-2.0",
156
+ "CC-BY-ND-2.5",
157
+ "CC-BY-ND-3.0",
158
+ "CC-BY-ND-3.0-DE",
159
+ "CC-BY-ND-4.0",
160
+ "CC-BY-SA-1.0",
161
+ "CC-BY-SA-2.0",
162
+ "CC-BY-SA-2.0-UK",
163
+ "CC-BY-SA-2.1-JP",
164
+ "CC-BY-SA-2.5",
165
+ "CC-BY-SA-3.0",
166
+ "CC-BY-SA-3.0-AT",
167
+ "CC-BY-SA-3.0-DE",
168
+ "CC-BY-SA-3.0-IGO",
169
+ "CC-BY-SA-4.0",
170
+ "CC-PDDC",
171
+ "CC-PDM-1.0",
172
+ "CC-SA-1.0",
173
+ "CC0-1.0",
174
+ "CDDL-1.0",
175
+ "CDDL-1.1",
176
+ "CDL-1.0",
177
+ "CDLA-Permissive-1.0",
178
+ "CDLA-Permissive-2.0",
179
+ "CDLA-Sharing-1.0",
180
+ "CECILL-1.0",
181
+ "CECILL-1.1",
182
+ "CECILL-2.0",
183
+ "CECILL-2.1",
184
+ "CECILL-B",
185
+ "CECILL-C",
186
+ "CERN-OHL-1.1",
187
+ "CERN-OHL-1.2",
188
+ "CERN-OHL-P-2.0",
189
+ "CERN-OHL-S-2.0",
190
+ "CERN-OHL-W-2.0",
191
+ "CFITSIO",
192
+ "CMU-Mach",
193
+ "CMU-Mach-nodoc",
194
+ "CNRI-Jython",
195
+ "CNRI-Python",
196
+ "CNRI-Python-GPL-Compatible",
197
+ "COIL-1.0",
198
+ "CPAL-1.0",
199
+ "CPL-1.0",
200
+ "CPOL-1.02",
201
+ "CUA-OPL-1.0",
202
+ "Caldera",
203
+ "Caldera-no-preamble",
204
+ "Catharon",
205
+ "ClArtistic",
206
+ "Clips",
207
+ "Community-Spec-1.0",
208
+ "Condor-1.1",
209
+ "Cornell-Lossless-JPEG",
210
+ "Cronyx",
211
+ "Crossword",
212
+ "CryptoSwift",
213
+ "CrystalStacker",
214
+ "Cube",
215
+ "D-FSL-1.0",
216
+ "DEC-3-Clause",
217
+ "DL-DE-BY-2.0",
218
+ "DL-DE-ZERO-2.0",
219
+ "DOC",
220
+ "DRL-1.0",
221
+ "DRL-1.1",
222
+ "DSDP",
223
+ "DocBook-DTD",
224
+ "DocBook-Schema",
225
+ "DocBook-Stylesheet",
226
+ "DocBook-XML",
227
+ "Dotseqn",
228
+ "ECL-1.0",
229
+ "ECL-2.0",
230
+ "EFL-1.0",
231
+ "EFL-2.0",
232
+ "EPICS",
233
+ "EPL-1.0",
234
+ "EPL-2.0",
235
+ "EUDatagrid",
236
+ "EUPL-1.0",
237
+ "EUPL-1.1",
238
+ "EUPL-1.2",
239
+ "Elastic-2.0",
240
+ "Entessa",
241
+ "ErlPL-1.1",
242
+ "Eurosym",
243
+ "FBM",
244
+ "FDK-AAC",
245
+ "FSFAP",
246
+ "FSFAP-no-warranty-disclaimer",
247
+ "FSFUL",
248
+ "FSFULLR",
249
+ "FSFULLRSD",
250
+ "FSFULLRWD",
251
+ "FSL-1.1-ALv2",
252
+ "FSL-1.1-MIT",
253
+ "FTL",
254
+ "Fair",
255
+ "Ferguson-Twofish",
256
+ "Frameworx-1.0",
257
+ "FreeBSD-DOC",
258
+ "FreeImage",
259
+ "Furuseth",
260
+ "GCR-docs",
261
+ "GD",
262
+ "GFDL-1.1-invariants-only",
263
+ "GFDL-1.1-invariants-or-later",
264
+ "GFDL-1.1-no-invariants-only",
265
+ "GFDL-1.1-no-invariants-or-later",
266
+ "GFDL-1.1-only",
267
+ "GFDL-1.1-or-later",
268
+ "GFDL-1.2-invariants-only",
269
+ "GFDL-1.2-invariants-or-later",
270
+ "GFDL-1.2-no-invariants-only",
271
+ "GFDL-1.2-no-invariants-or-later",
272
+ "GFDL-1.2-only",
273
+ "GFDL-1.2-or-later",
274
+ "GFDL-1.3-invariants-only",
275
+ "GFDL-1.3-invariants-or-later",
276
+ "GFDL-1.3-no-invariants-only",
277
+ "GFDL-1.3-no-invariants-or-later",
278
+ "GFDL-1.3-only",
279
+ "GFDL-1.3-or-later",
280
+ "GL2PS",
281
+ "GLWTPL",
282
+ "GPL-1.0-only",
283
+ "GPL-1.0-or-later",
284
+ "GPL-2.0-only",
285
+ "GPL-2.0-or-later",
286
+ "GPL-3.0-only",
287
+ "GPL-3.0-or-later",
288
+ "Game-Programming-Gems",
289
+ "Giftware",
290
+ "Glide",
291
+ "Glulxe",
292
+ "Graphics-Gems",
293
+ "Gutmann",
294
+ "HDF5",
295
+ "HIDAPI",
296
+ "HP-1986",
297
+ "HP-1989",
298
+ "HPND",
299
+ "HPND-DEC",
300
+ "HPND-Fenneberg-Livingston",
301
+ "HPND-INRIA-IMAG",
302
+ "HPND-Intel",
303
+ "HPND-Kevlin-Henney",
304
+ "HPND-MIT-disclaimer",
305
+ "HPND-Markus-Kuhn",
306
+ "HPND-Netrek",
307
+ "HPND-Pbmplus",
308
+ "HPND-UC",
309
+ "HPND-UC-export-US",
310
+ "HPND-doc",
311
+ "HPND-doc-sell",
312
+ "HPND-export-US",
313
+ "HPND-export-US-acknowledgement",
314
+ "HPND-export-US-modify",
315
+ "HPND-export2-US",
316
+ "HPND-merchantability-variant",
317
+ "HPND-sell-MIT-disclaimer-xserver",
318
+ "HPND-sell-regexpr",
319
+ "HPND-sell-variant",
320
+ "HPND-sell-variant-MIT-disclaimer",
321
+ "HPND-sell-variant-MIT-disclaimer-rev",
322
+ "HTMLTIDY",
323
+ "HaskellReport",
324
+ "Hippocratic-2.1",
325
+ "IBM-pibs",
326
+ "ICU",
327
+ "IEC-Code-Components-EULA",
328
+ "IJG",
329
+ "IJG-short",
330
+ "IPA",
331
+ "IPL-1.0",
332
+ "ISC",
333
+ "ISC-Veillard",
334
+ "ImageMagick",
335
+ "Imlib2",
336
+ "Info-ZIP",
337
+ "Inner-Net-2.0",
338
+ "InnoSetup",
339
+ "Intel",
340
+ "Intel-ACPI",
341
+ "Interbase-1.0",
342
+ "JPL-image",
343
+ "JPNIC",
344
+ "JSON",
345
+ "Jam",
346
+ "JasPer-2.0",
347
+ "Kastrup",
348
+ "Kazlib",
349
+ "Knuth-CTAN",
350
+ "LAL-1.2",
351
+ "LAL-1.3",
352
+ "LGPL-2.0-only",
353
+ "LGPL-2.0-or-later",
354
+ "LGPL-2.1-only",
355
+ "LGPL-2.1-or-later",
356
+ "LGPL-3.0-only",
357
+ "LGPL-3.0-or-later",
358
+ "LGPLLR",
359
+ "LOOP",
360
+ "LPD-document",
361
+ "LPL-1.0",
362
+ "LPL-1.02",
363
+ "LPPL-1.0",
364
+ "LPPL-1.1",
365
+ "LPPL-1.2",
366
+ "LPPL-1.3a",
367
+ "LPPL-1.3c",
368
+ "LZMA-SDK-9.11-to-9.20",
369
+ "LZMA-SDK-9.22",
370
+ "Latex2e",
371
+ "Latex2e-translated-notice",
372
+ "Leptonica",
373
+ "LiLiQ-P-1.1",
374
+ "LiLiQ-R-1.1",
375
+ "LiLiQ-Rplus-1.1",
376
+ "Libpng",
377
+ "Linux-OpenIB",
378
+ "Linux-man-pages-1-para",
379
+ "Linux-man-pages-copyleft",
380
+ "Linux-man-pages-copyleft-2-para",
381
+ "Linux-man-pages-copyleft-var",
382
+ "Lucida-Bitmap-Fonts",
383
+ "MIPS",
384
+ "MIT",
385
+ "MIT-0",
386
+ "MIT-CMU",
387
+ "MIT-Click",
388
+ "MIT-Festival",
389
+ "MIT-Khronos-old",
390
+ "MIT-Modern-Variant",
391
+ "MIT-Wu",
392
+ "MIT-advertising",
393
+ "MIT-enna",
394
+ "MIT-feh",
395
+ "MIT-open-group",
396
+ "MIT-testregex",
397
+ "MITNFA",
398
+ "MMIXware",
399
+ "MPEG-SSG",
400
+ "MPL-1.0",
401
+ "MPL-1.1",
402
+ "MPL-2.0",
403
+ "MPL-2.0-no-copyleft-exception",
404
+ "MS-LPL",
405
+ "MS-PL",
406
+ "MS-RL",
407
+ "MTLL",
408
+ "Mackerras-3-Clause",
409
+ "Mackerras-3-Clause-acknowledgment",
410
+ "MakeIndex",
411
+ "Martin-Birgmeier",
412
+ "McPhee-slideshow",
413
+ "Minpack",
414
+ "MirOS",
415
+ "Motosoto",
416
+ "MulanPSL-1.0",
417
+ "MulanPSL-2.0",
418
+ "Multics",
419
+ "Mup",
420
+ "NAIST-2003",
421
+ "NASA-1.3",
422
+ "NBPL-1.0",
423
+ "NCBI-PD",
424
+ "NCGL-UK-2.0",
425
+ "NCL",
426
+ "NCSA",
427
+ "NGPL",
428
+ "NICTA-1.0",
429
+ "NIST-PD",
430
+ "NIST-PD-fallback",
431
+ "NIST-Software",
432
+ "NLOD-1.0",
433
+ "NLOD-2.0",
434
+ "NLPL",
435
+ "NOSL",
436
+ "NPL-1.0",
437
+ "NPL-1.1",
438
+ "NPOSL-3.0",
439
+ "NRL",
440
+ "NTIA-PD",
441
+ "NTP",
442
+ "NTP-0",
443
+ "Naumen",
444
+ "NetCDF",
445
+ "Newsletr",
446
+ "Nokia",
447
+ "Noweb",
448
+ "O-UDA-1.0",
449
+ "OAR",
450
+ "OCCT-PL",
451
+ "OCLC-2.0",
452
+ "ODC-By-1.0",
453
+ "ODbL-1.0",
454
+ "OFFIS",
455
+ "OFL-1.0",
456
+ "OFL-1.0-RFN",
457
+ "OFL-1.0-no-RFN",
458
+ "OFL-1.1",
459
+ "OFL-1.1-RFN",
460
+ "OFL-1.1-no-RFN",
461
+ "OGC-1.0",
462
+ "OGDL-Taiwan-1.0",
463
+ "OGL-Canada-2.0",
464
+ "OGL-UK-1.0",
465
+ "OGL-UK-2.0",
466
+ "OGL-UK-3.0",
467
+ "OGTSL",
468
+ "OLDAP-1.1",
469
+ "OLDAP-1.2",
470
+ "OLDAP-1.3",
471
+ "OLDAP-1.4",
472
+ "OLDAP-2.0",
473
+ "OLDAP-2.0.1",
474
+ "OLDAP-2.1",
475
+ "OLDAP-2.2",
476
+ "OLDAP-2.2.1",
477
+ "OLDAP-2.2.2",
478
+ "OLDAP-2.3",
479
+ "OLDAP-2.4",
480
+ "OLDAP-2.5",
481
+ "OLDAP-2.6",
482
+ "OLDAP-2.7",
483
+ "OLDAP-2.8",
484
+ "OLFL-1.3",
485
+ "OML",
486
+ "OPL-1.0",
487
+ "OPL-UK-3.0",
488
+ "OPUBL-1.0",
489
+ "OSET-PL-2.1",
490
+ "OSL-1.0",
491
+ "OSL-1.1",
492
+ "OSL-2.0",
493
+ "OSL-2.1",
494
+ "OSL-3.0",
495
+ "OpenPBS-2.3",
496
+ "OpenSSL",
497
+ "OpenSSL-standalone",
498
+ "OpenVision",
499
+ "PADL",
500
+ "PDDL-1.0",
501
+ "PHP-3.0",
502
+ "PHP-3.01",
503
+ "PPL",
504
+ "PSF-2.0",
505
+ "Parity-6.0.0",
506
+ "Parity-7.0.0",
507
+ "Pixar",
508
+ "Plexus",
509
+ "PolyForm-Noncommercial-1.0.0",
510
+ "PolyForm-Small-Business-1.0.0",
511
+ "PostgreSQL",
512
+ "Python-2.0",
513
+ "Python-2.0.1",
514
+ "QPL-1.0",
515
+ "QPL-1.0-INRIA-2004",
516
+ "Qhull",
517
+ "RHeCos-1.1",
518
+ "RPL-1.1",
519
+ "RPL-1.5",
520
+ "RPSL-1.0",
521
+ "RSA-MD",
522
+ "RSCPL",
523
+ "Rdisc",
524
+ "Ruby",
525
+ "Ruby-pty",
526
+ "SAX-PD",
527
+ "SAX-PD-2.0",
528
+ "SCEA",
529
+ "SGI-B-1.0",
530
+ "SGI-B-1.1",
531
+ "SGI-B-2.0",
532
+ "SGI-OpenGL",
533
+ "SGP4",
534
+ "SHL-0.5",
535
+ "SHL-0.51",
536
+ "SISSL",
537
+ "SISSL-1.2",
538
+ "SL",
539
+ "SMAIL-GPL",
540
+ "SMLNJ",
541
+ "SMPPL",
542
+ "SNIA",
543
+ "SOFA",
544
+ "SPL-1.0",
545
+ "SSH-OpenSSH",
546
+ "SSH-short",
547
+ "SSLeay-standalone",
548
+ "SSPL-1.0",
549
+ "SUL-1.0",
550
+ "SWL",
551
+ "Saxpath",
552
+ "SchemeReport",
553
+ "Sendmail",
554
+ "Sendmail-8.23",
555
+ "Sendmail-Open-Source-1.1",
556
+ "SimPL-2.0",
557
+ "Sleepycat",
558
+ "Soundex",
559
+ "Spencer-86",
560
+ "Spencer-94",
561
+ "Spencer-99",
562
+ "SugarCRM-1.1.3",
563
+ "Sun-PPP",
564
+ "Sun-PPP-2000",
565
+ "SunPro",
566
+ "Symlinks",
567
+ "TAPR-OHL-1.0",
568
+ "TCL",
569
+ "TCP-wrappers",
570
+ "TGPPL-1.0",
571
+ "TMate",
572
+ "TORQUE-1.1",
573
+ "TOSL",
574
+ "TPDL",
575
+ "TPL-1.0",
576
+ "TTWL",
577
+ "TTYP0",
578
+ "TU-Berlin-1.0",
579
+ "TU-Berlin-2.0",
580
+ "TermReadKey",
581
+ "ThirdEye",
582
+ "TrustedQSL",
583
+ "UCAR",
584
+ "UCL-1.0",
585
+ "UMich-Merit",
586
+ "UPL-1.0",
587
+ "URT-RLE",
588
+ "Ubuntu-font-1.0",
589
+ "Unicode-3.0",
590
+ "Unicode-DFS-2015",
591
+ "Unicode-DFS-2016",
592
+ "Unicode-TOU",
593
+ "UnixCrypt",
594
+ "Unlicense",
595
+ "Unlicense-libtelnet",
596
+ "Unlicense-libwhirlpool",
597
+ "VOSTROM",
598
+ "VSL-1.0",
599
+ "Vim",
600
+ "W3C",
601
+ "W3C-19980720",
602
+ "W3C-20150513",
603
+ "WTFPL",
604
+ "Watcom-1.0",
605
+ "Widget-Workshop",
606
+ "Wsuipa",
607
+ "X11",
608
+ "X11-distribute-modifications-variant",
609
+ "X11-swapped",
610
+ "XFree86-1.1",
611
+ "XSkat",
612
+ "Xdebug-1.03",
613
+ "Xerox",
614
+ "Xfig",
615
+ "Xnet",
616
+ "YPL-1.0",
617
+ "YPL-1.1",
618
+ "ZPL-1.1",
619
+ "ZPL-2.0",
620
+ "ZPL-2.1",
621
+ "Zed",
622
+ "Zeeff",
623
+ "Zend-2.0",
624
+ "Zimbra-1.3",
625
+ "Zimbra-1.4",
626
+ "Zlib",
627
+ "any-OSI",
628
+ "any-OSI-perl-modules",
629
+ "bcrypt-Solar-Designer",
630
+ "blessing",
631
+ "bzip2-1.0.6",
632
+ "check-cvs",
633
+ "checkmk",
634
+ "copyleft-next-0.3.0",
635
+ "copyleft-next-0.3.1",
636
+ "curl",
637
+ "cve-tou",
638
+ "diffmark",
639
+ "dtoa",
640
+ "dvipdfm",
641
+ "eGenix",
642
+ "etalab-2.0",
643
+ "fwlw",
644
+ "gSOAP-1.3b",
645
+ "generic-xts",
646
+ "gnuplot",
647
+ "gtkbook",
648
+ "hdparm",
649
+ "iMatix",
650
+ "jove",
651
+ "libpng-1.6.35",
652
+ "libpng-2.0",
653
+ "libselinux-1.0",
654
+ "libtiff",
655
+ "libutil-David-Nugent",
656
+ "lsof",
657
+ "magaz",
658
+ "mailprio",
659
+ "man2html",
660
+ "metamail",
661
+ "mpi-permissive",
662
+ "mpich2",
663
+ "mplus",
664
+ "ngrep",
665
+ "pkgconf",
666
+ "pnmstitch",
667
+ "psfrag",
668
+ "psutils",
669
+ "python-ldap",
670
+ "radvd",
671
+ "snprintf",
672
+ "softSurfer",
673
+ "ssh-keyscan",
674
+ "swrule",
675
+ "threeparttable",
676
+ "ulem",
677
+ "w3m",
678
+ "wwl",
679
+ "xinetd",
680
+ "xkeyboard-config-Zinoviev",
681
+ "xlock",
682
+ "xpp",
683
+ "xzoom",
684
+ "zlib-acknowledgement"
685
+ ];
686
+ }
687
+ });
688
+
689
+ // node_modules/.pnpm/spdx-license-ids@3.0.22/node_modules/spdx-license-ids/deprecated.json
690
+ var require_deprecated = __commonJS({
691
+ "node_modules/.pnpm/spdx-license-ids@3.0.22/node_modules/spdx-license-ids/deprecated.json"(exports2, module2) {
692
+ module2.exports = [
693
+ "AGPL-1.0",
694
+ "AGPL-3.0",
695
+ "BSD-2-Clause-FreeBSD",
696
+ "BSD-2-Clause-NetBSD",
697
+ "GFDL-1.1",
698
+ "GFDL-1.2",
699
+ "GFDL-1.3",
700
+ "GPL-1.0",
701
+ "GPL-2.0",
702
+ "GPL-2.0-with-GCC-exception",
703
+ "GPL-2.0-with-autoconf-exception",
704
+ "GPL-2.0-with-bison-exception",
705
+ "GPL-2.0-with-classpath-exception",
706
+ "GPL-2.0-with-font-exception",
707
+ "GPL-3.0",
708
+ "GPL-3.0-with-GCC-exception",
709
+ "GPL-3.0-with-autoconf-exception",
710
+ "LGPL-2.0",
711
+ "LGPL-2.1",
712
+ "LGPL-3.0",
713
+ "Net-SNMP",
714
+ "Nunit",
715
+ "StandardML-NJ",
716
+ "bzip2-1.0.5",
717
+ "eCos-2.0",
718
+ "wxWindows"
719
+ ];
720
+ }
721
+ });
722
+
723
+ // node_modules/.pnpm/spdx-exceptions@2.5.0/node_modules/spdx-exceptions/index.json
724
+ var require_spdx_exceptions = __commonJS({
725
+ "node_modules/.pnpm/spdx-exceptions@2.5.0/node_modules/spdx-exceptions/index.json"(exports2, module2) {
726
+ module2.exports = [
727
+ "389-exception",
728
+ "Asterisk-exception",
729
+ "Autoconf-exception-2.0",
730
+ "Autoconf-exception-3.0",
731
+ "Autoconf-exception-generic",
732
+ "Autoconf-exception-generic-3.0",
733
+ "Autoconf-exception-macro",
734
+ "Bison-exception-1.24",
735
+ "Bison-exception-2.2",
736
+ "Bootloader-exception",
737
+ "Classpath-exception-2.0",
738
+ "CLISP-exception-2.0",
739
+ "cryptsetup-OpenSSL-exception",
740
+ "DigiRule-FOSS-exception",
741
+ "eCos-exception-2.0",
742
+ "Fawkes-Runtime-exception",
743
+ "FLTK-exception",
744
+ "fmt-exception",
745
+ "Font-exception-2.0",
746
+ "freertos-exception-2.0",
747
+ "GCC-exception-2.0",
748
+ "GCC-exception-2.0-note",
749
+ "GCC-exception-3.1",
750
+ "Gmsh-exception",
751
+ "GNAT-exception",
752
+ "GNOME-examples-exception",
753
+ "GNU-compiler-exception",
754
+ "gnu-javamail-exception",
755
+ "GPL-3.0-interface-exception",
756
+ "GPL-3.0-linking-exception",
757
+ "GPL-3.0-linking-source-exception",
758
+ "GPL-CC-1.0",
759
+ "GStreamer-exception-2005",
760
+ "GStreamer-exception-2008",
761
+ "i2p-gpl-java-exception",
762
+ "KiCad-libraries-exception",
763
+ "LGPL-3.0-linking-exception",
764
+ "libpri-OpenH323-exception",
765
+ "Libtool-exception",
766
+ "Linux-syscall-note",
767
+ "LLGPL",
768
+ "LLVM-exception",
769
+ "LZMA-exception",
770
+ "mif-exception",
771
+ "OCaml-LGPL-linking-exception",
772
+ "OCCT-exception-1.0",
773
+ "OpenJDK-assembly-exception-1.0",
774
+ "openvpn-openssl-exception",
775
+ "PS-or-PDF-font-exception-20170817",
776
+ "QPL-1.0-INRIA-2004-exception",
777
+ "Qt-GPL-exception-1.0",
778
+ "Qt-LGPL-exception-1.1",
779
+ "Qwt-exception-1.0",
780
+ "SANE-exception",
781
+ "SHL-2.0",
782
+ "SHL-2.1",
783
+ "stunnel-exception",
784
+ "SWI-exception",
785
+ "Swift-exception",
786
+ "Texinfo-exception",
787
+ "u-boot-exception-2.0",
788
+ "UBDL-exception",
789
+ "Universal-FOSS-exception-1.0",
790
+ "vsftpd-openssl-exception",
791
+ "WxWindows-exception-3.1",
792
+ "x11vnc-openssl-exception"
793
+ ];
794
+ }
795
+ });
796
+
797
+ // node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/scan.js
798
+ var require_scan = __commonJS({
799
+ "node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/scan.js"(exports2, module2) {
800
+ "use strict";
801
+ var licenses = [].concat(require_spdx_license_ids()).concat(require_deprecated());
802
+ var exceptions = require_spdx_exceptions();
803
+ module2.exports = function(source) {
804
+ var index = 0;
805
+ function hasMore() {
806
+ return index < source.length;
807
+ }
808
+ __name(hasMore, "hasMore");
809
+ function read(value) {
810
+ if (value instanceof RegExp) {
811
+ var chars = source.slice(index);
812
+ var match = chars.match(value);
813
+ if (match) {
814
+ index += match[0].length;
815
+ return match[0];
816
+ }
817
+ } else {
818
+ if (source.indexOf(value, index) === index) {
819
+ index += value.length;
820
+ return value;
821
+ }
822
+ }
823
+ }
824
+ __name(read, "read");
825
+ function skipWhitespace() {
826
+ read(/[ ]*/);
827
+ }
828
+ __name(skipWhitespace, "skipWhitespace");
829
+ function operator() {
830
+ var string;
831
+ var possibilities = ["WITH", "AND", "OR", "(", ")", ":", "+"];
832
+ for (var i = 0; i < possibilities.length; i++) {
833
+ string = read(possibilities[i]);
834
+ if (string) {
835
+ break;
836
+ }
837
+ }
838
+ if (string === "+" && index > 1 && source[index - 2] === " ") {
839
+ throw new Error("Space before `+`");
840
+ }
841
+ return string && {
842
+ type: "OPERATOR",
843
+ string
844
+ };
845
+ }
846
+ __name(operator, "operator");
847
+ function idstring() {
848
+ return read(/[A-Za-z0-9-.]+/);
849
+ }
850
+ __name(idstring, "idstring");
851
+ function expectIdstring() {
852
+ var string = idstring();
853
+ if (!string) {
854
+ throw new Error("Expected idstring at offset " + index);
855
+ }
856
+ return string;
857
+ }
858
+ __name(expectIdstring, "expectIdstring");
859
+ function documentRef() {
860
+ if (read("DocumentRef-")) {
861
+ var string = expectIdstring();
862
+ return { type: "DOCUMENTREF", string };
863
+ }
864
+ }
865
+ __name(documentRef, "documentRef");
866
+ function licenseRef() {
867
+ if (read("LicenseRef-")) {
868
+ var string = expectIdstring();
869
+ return { type: "LICENSEREF", string };
870
+ }
871
+ }
872
+ __name(licenseRef, "licenseRef");
873
+ function identifier() {
874
+ var begin = index;
875
+ var string = idstring();
876
+ if (licenses.indexOf(string) !== -1) {
877
+ return {
878
+ type: "LICENSE",
879
+ string
880
+ };
881
+ } else if (exceptions.indexOf(string) !== -1) {
882
+ return {
883
+ type: "EXCEPTION",
884
+ string
885
+ };
886
+ }
887
+ index = begin;
888
+ }
889
+ __name(identifier, "identifier");
890
+ function parseToken() {
891
+ return operator() || documentRef() || licenseRef() || identifier();
892
+ }
893
+ __name(parseToken, "parseToken");
894
+ var tokens = [];
895
+ while (hasMore()) {
896
+ skipWhitespace();
897
+ if (!hasMore()) {
898
+ break;
899
+ }
900
+ var token = parseToken();
901
+ if (!token) {
902
+ throw new Error("Unexpected `" + source[index] + "` at offset " + index);
903
+ }
904
+ tokens.push(token);
905
+ }
906
+ return tokens;
907
+ };
908
+ }
909
+ });
910
+
911
+ // node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js
912
+ var require_parse = __commonJS({
913
+ "node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js"(exports2, module2) {
914
+ "use strict";
915
+ module2.exports = function(tokens) {
916
+ var index = 0;
917
+ function hasMore() {
918
+ return index < tokens.length;
919
+ }
920
+ __name(hasMore, "hasMore");
921
+ function token() {
922
+ return hasMore() ? tokens[index] : null;
923
+ }
924
+ __name(token, "token");
925
+ function next() {
926
+ if (!hasMore()) {
927
+ throw new Error();
928
+ }
929
+ index++;
930
+ }
931
+ __name(next, "next");
932
+ function parseOperator(operator) {
933
+ var t = token();
934
+ if (t && t.type === "OPERATOR" && operator === t.string) {
935
+ next();
936
+ return t.string;
937
+ }
938
+ }
939
+ __name(parseOperator, "parseOperator");
940
+ function parseWith() {
941
+ if (parseOperator("WITH")) {
942
+ var t = token();
943
+ if (t && t.type === "EXCEPTION") {
944
+ next();
945
+ return t.string;
946
+ }
947
+ throw new Error("Expected exception after `WITH`");
948
+ }
949
+ }
950
+ __name(parseWith, "parseWith");
951
+ function parseLicenseRef() {
952
+ var begin = index;
953
+ var string = "";
954
+ var t = token();
955
+ if (t.type === "DOCUMENTREF") {
956
+ next();
957
+ string += "DocumentRef-" + t.string + ":";
958
+ if (!parseOperator(":")) {
959
+ throw new Error("Expected `:` after `DocumentRef-...`");
960
+ }
961
+ }
962
+ t = token();
963
+ if (t.type === "LICENSEREF") {
964
+ next();
965
+ string += "LicenseRef-" + t.string;
966
+ return { license: string };
967
+ }
968
+ index = begin;
969
+ }
970
+ __name(parseLicenseRef, "parseLicenseRef");
971
+ function parseLicense() {
972
+ var t = token();
973
+ if (t && t.type === "LICENSE") {
974
+ next();
975
+ var node2 = { license: t.string };
976
+ if (parseOperator("+")) {
977
+ node2.plus = true;
978
+ }
979
+ var exception = parseWith();
980
+ if (exception) {
981
+ node2.exception = exception;
982
+ }
983
+ return node2;
984
+ }
985
+ }
986
+ __name(parseLicense, "parseLicense");
987
+ function parseParenthesizedExpression() {
988
+ var left = parseOperator("(");
989
+ if (!left) {
990
+ return;
991
+ }
992
+ var expr = parseExpression();
993
+ if (!parseOperator(")")) {
994
+ throw new Error("Expected `)`");
995
+ }
996
+ return expr;
997
+ }
998
+ __name(parseParenthesizedExpression, "parseParenthesizedExpression");
999
+ function parseAtom() {
1000
+ return parseParenthesizedExpression() || parseLicenseRef() || parseLicense();
1001
+ }
1002
+ __name(parseAtom, "parseAtom");
1003
+ function makeBinaryOpParser(operator, nextParser) {
1004
+ return /* @__PURE__ */ __name(function parseBinaryOp() {
1005
+ var left = nextParser();
1006
+ if (!left) {
1007
+ return;
1008
+ }
1009
+ if (!parseOperator(operator)) {
1010
+ return left;
1011
+ }
1012
+ var right = parseBinaryOp();
1013
+ if (!right) {
1014
+ throw new Error("Expected expression");
1015
+ }
1016
+ return {
1017
+ left,
1018
+ conjunction: operator.toLowerCase(),
1019
+ right
1020
+ };
1021
+ }, "parseBinaryOp");
1022
+ }
1023
+ __name(makeBinaryOpParser, "makeBinaryOpParser");
1024
+ var parseAnd = makeBinaryOpParser("AND", parseAtom);
1025
+ var parseExpression = makeBinaryOpParser("OR", parseAnd);
1026
+ var node = parseExpression();
1027
+ if (!node || hasMore()) {
1028
+ throw new Error("Syntax error");
1029
+ }
1030
+ return node;
1031
+ };
1032
+ }
1033
+ });
1034
+
1035
+ // node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js
1036
+ var require_spdx_expression_parse = __commonJS({
1037
+ "node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js"(exports2, module2) {
1038
+ "use strict";
1039
+ var scan = require_scan();
1040
+ var parse = require_parse();
1041
+ module2.exports = function(source) {
1042
+ return parse(scan(source));
1043
+ };
1044
+ }
1045
+ });
1046
+
1047
+ // node_modules/.pnpm/spdx-correct@3.2.0/node_modules/spdx-correct/index.js
1048
+ var require_spdx_correct = __commonJS({
1049
+ "node_modules/.pnpm/spdx-correct@3.2.0/node_modules/spdx-correct/index.js"(exports2, module2) {
1050
+ var parse = require_spdx_expression_parse();
1051
+ var spdxLicenseIds = require_spdx_license_ids();
1052
+ function valid(string) {
1053
+ try {
1054
+ parse(string);
1055
+ return true;
1056
+ } catch (error) {
1057
+ return false;
1058
+ }
1059
+ }
1060
+ __name(valid, "valid");
1061
+ function sortTranspositions(a, b) {
1062
+ var length = b[0].length - a[0].length;
1063
+ if (length !== 0) return length;
1064
+ return a[0].toUpperCase().localeCompare(b[0].toUpperCase());
1065
+ }
1066
+ __name(sortTranspositions, "sortTranspositions");
1067
+ var transpositions = [
1068
+ ["APGL", "AGPL"],
1069
+ ["Gpl", "GPL"],
1070
+ ["GLP", "GPL"],
1071
+ ["APL", "Apache"],
1072
+ ["ISD", "ISC"],
1073
+ ["GLP", "GPL"],
1074
+ ["IST", "ISC"],
1075
+ ["Claude", "Clause"],
1076
+ [" or later", "+"],
1077
+ [" International", ""],
1078
+ ["GNU", "GPL"],
1079
+ ["GUN", "GPL"],
1080
+ ["+", ""],
1081
+ ["GNU GPL", "GPL"],
1082
+ ["GNU LGPL", "LGPL"],
1083
+ ["GNU/GPL", "GPL"],
1084
+ ["GNU GLP", "GPL"],
1085
+ ["GNU LESSER GENERAL PUBLIC LICENSE", "LGPL"],
1086
+ ["GNU Lesser General Public License", "LGPL"],
1087
+ ["GNU LESSER GENERAL PUBLIC LICENSE", "LGPL-2.1"],
1088
+ ["GNU Lesser General Public License", "LGPL-2.1"],
1089
+ ["LESSER GENERAL PUBLIC LICENSE", "LGPL"],
1090
+ ["Lesser General Public License", "LGPL"],
1091
+ ["LESSER GENERAL PUBLIC LICENSE", "LGPL-2.1"],
1092
+ ["Lesser General Public License", "LGPL-2.1"],
1093
+ ["GNU General Public License", "GPL"],
1094
+ ["Gnu public license", "GPL"],
1095
+ ["GNU Public License", "GPL"],
1096
+ ["GNU GENERAL PUBLIC LICENSE", "GPL"],
1097
+ ["MTI", "MIT"],
1098
+ ["Mozilla Public License", "MPL"],
1099
+ ["Universal Permissive License", "UPL"],
1100
+ ["WTH", "WTF"],
1101
+ ["WTFGPL", "WTFPL"],
1102
+ ["-License", ""]
1103
+ ].sort(sortTranspositions);
1104
+ var TRANSPOSED = 0;
1105
+ var CORRECT = 1;
1106
+ var transforms = [
1107
+ // e.g. 'mit'
1108
+ function(argument) {
1109
+ return argument.toUpperCase();
1110
+ },
1111
+ // e.g. 'MIT '
1112
+ function(argument) {
1113
+ return argument.trim();
1114
+ },
1115
+ // e.g. 'M.I.T.'
1116
+ function(argument) {
1117
+ return argument.replace(/\./g, "");
1118
+ },
1119
+ // e.g. 'Apache- 2.0'
1120
+ function(argument) {
1121
+ return argument.replace(/\s+/g, "");
1122
+ },
1123
+ // e.g. 'CC BY 4.0''
1124
+ function(argument) {
1125
+ return argument.replace(/\s+/g, "-");
1126
+ },
1127
+ // e.g. 'LGPLv2.1'
1128
+ function(argument) {
1129
+ return argument.replace("v", "-");
1130
+ },
1131
+ // e.g. 'Apache 2.0'
1132
+ function(argument) {
1133
+ return argument.replace(/,?\s*(\d)/, "-$1");
1134
+ },
1135
+ // e.g. 'GPL 2'
1136
+ function(argument) {
1137
+ return argument.replace(/,?\s*(\d)/, "-$1.0");
1138
+ },
1139
+ // e.g. 'Apache Version 2.0'
1140
+ function(argument) {
1141
+ return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2");
1142
+ },
1143
+ // e.g. 'Apache Version 2'
1144
+ function(argument) {
1145
+ return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2.0");
1146
+ },
1147
+ // e.g. 'ZLIB'
1148
+ function(argument) {
1149
+ return argument[0].toUpperCase() + argument.slice(1);
1150
+ },
1151
+ // e.g. 'MPL/2.0'
1152
+ function(argument) {
1153
+ return argument.replace("/", "-");
1154
+ },
1155
+ // e.g. 'Apache 2'
1156
+ function(argument) {
1157
+ return argument.replace(/\s*V\s*(\d)/, "-$1").replace(/(\d)$/, "$1.0");
1158
+ },
1159
+ // e.g. 'GPL-2.0', 'GPL-3.0'
1160
+ function(argument) {
1161
+ if (argument.indexOf("3.0") !== -1) {
1162
+ return argument + "-or-later";
1163
+ } else {
1164
+ return argument + "-only";
1165
+ }
1166
+ },
1167
+ // e.g. 'GPL-2.0-'
1168
+ function(argument) {
1169
+ return argument + "only";
1170
+ },
1171
+ // e.g. 'GPL2'
1172
+ function(argument) {
1173
+ return argument.replace(/(\d)$/, "-$1.0");
1174
+ },
1175
+ // e.g. 'BSD 3'
1176
+ function(argument) {
1177
+ return argument.replace(/(-| )?(\d)$/, "-$2-Clause");
1178
+ },
1179
+ // e.g. 'BSD clause 3'
1180
+ function(argument) {
1181
+ return argument.replace(/(-| )clause(-| )(\d)/, "-$3-Clause");
1182
+ },
1183
+ // e.g. 'New BSD license'
1184
+ function(argument) {
1185
+ return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, "BSD-3-Clause");
1186
+ },
1187
+ // e.g. 'Simplified BSD license'
1188
+ function(argument) {
1189
+ return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, "BSD-2-Clause");
1190
+ },
1191
+ // e.g. 'Free BSD license'
1192
+ function(argument) {
1193
+ return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, "BSD-2-Clause-$1BSD");
1194
+ },
1195
+ // e.g. 'Clear BSD license'
1196
+ function(argument) {
1197
+ return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, "BSD-3-Clause-Clear");
1198
+ },
1199
+ // e.g. 'Old BSD License'
1200
+ function(argument) {
1201
+ return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, "BSD-4-Clause");
1202
+ },
1203
+ // e.g. 'BY-NC-4.0'
1204
+ function(argument) {
1205
+ return "CC-" + argument;
1206
+ },
1207
+ // e.g. 'BY-NC'
1208
+ function(argument) {
1209
+ return "CC-" + argument + "-4.0";
1210
+ },
1211
+ // e.g. 'Attribution-NonCommercial'
1212
+ function(argument) {
1213
+ return argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, "");
1214
+ },
1215
+ // e.g. 'Attribution-NonCommercial'
1216
+ function(argument) {
1217
+ return "CC-" + argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, "") + "-4.0";
1218
+ }
1219
+ ];
1220
+ var licensesWithVersions = spdxLicenseIds.map(function(id) {
1221
+ var match = /^(.*)-\d+\.\d+$/.exec(id);
1222
+ return match ? [match[0], match[1]] : [id, null];
1223
+ }).reduce(function(objectMap, item) {
1224
+ var key = item[1];
1225
+ objectMap[key] = objectMap[key] || [];
1226
+ objectMap[key].push(item[0]);
1227
+ return objectMap;
1228
+ }, {});
1229
+ var licensesWithOneVersion = Object.keys(licensesWithVersions).map(/* @__PURE__ */ __name(function makeEntries(key) {
1230
+ return [key, licensesWithVersions[key]];
1231
+ }, "makeEntries")).filter(/* @__PURE__ */ __name(function identifySoleVersions(item) {
1232
+ return (
1233
+ // Licenses has just one valid version suffix.
1234
+ item[1].length === 1 && item[0] !== null && // APL will be considered Apache, rather than APL-1.0
1235
+ item[0] !== "APL"
1236
+ );
1237
+ }, "identifySoleVersions")).map(/* @__PURE__ */ __name(function createLastResorts(item) {
1238
+ return [item[0], item[1][0]];
1239
+ }, "createLastResorts"));
1240
+ licensesWithVersions = void 0;
1241
+ var lastResorts = [
1242
+ ["UNLI", "Unlicense"],
1243
+ ["WTF", "WTFPL"],
1244
+ ["2 CLAUSE", "BSD-2-Clause"],
1245
+ ["2-CLAUSE", "BSD-2-Clause"],
1246
+ ["3 CLAUSE", "BSD-3-Clause"],
1247
+ ["3-CLAUSE", "BSD-3-Clause"],
1248
+ ["AFFERO", "AGPL-3.0-or-later"],
1249
+ ["AGPL", "AGPL-3.0-or-later"],
1250
+ ["APACHE", "Apache-2.0"],
1251
+ ["ARTISTIC", "Artistic-2.0"],
1252
+ ["Affero", "AGPL-3.0-or-later"],
1253
+ ["BEER", "Beerware"],
1254
+ ["BOOST", "BSL-1.0"],
1255
+ ["BSD", "BSD-2-Clause"],
1256
+ ["CDDL", "CDDL-1.1"],
1257
+ ["ECLIPSE", "EPL-1.0"],
1258
+ ["FUCK", "WTFPL"],
1259
+ ["GNU", "GPL-3.0-or-later"],
1260
+ ["LGPL", "LGPL-3.0-or-later"],
1261
+ ["GPLV1", "GPL-1.0-only"],
1262
+ ["GPL-1", "GPL-1.0-only"],
1263
+ ["GPLV2", "GPL-2.0-only"],
1264
+ ["GPL-2", "GPL-2.0-only"],
1265
+ ["GPL", "GPL-3.0-or-later"],
1266
+ ["MIT +NO-FALSE-ATTRIBS", "MITNFA"],
1267
+ ["MIT", "MIT"],
1268
+ ["MPL", "MPL-2.0"],
1269
+ ["X11", "X11"],
1270
+ ["ZLIB", "Zlib"]
1271
+ ].concat(licensesWithOneVersion).sort(sortTranspositions);
1272
+ var SUBSTRING = 0;
1273
+ var IDENTIFIER = 1;
1274
+ var validTransformation = /* @__PURE__ */ __name(function(identifier) {
1275
+ for (var i = 0; i < transforms.length; i++) {
1276
+ var transformed = transforms[i](identifier).trim();
1277
+ if (transformed !== identifier && valid(transformed)) {
1278
+ return transformed;
1279
+ }
1280
+ }
1281
+ return null;
1282
+ }, "validTransformation");
1283
+ var validLastResort = /* @__PURE__ */ __name(function(identifier) {
1284
+ var upperCased = identifier.toUpperCase();
1285
+ for (var i = 0; i < lastResorts.length; i++) {
1286
+ var lastResort = lastResorts[i];
1287
+ if (upperCased.indexOf(lastResort[SUBSTRING]) > -1) {
1288
+ return lastResort[IDENTIFIER];
1289
+ }
1290
+ }
1291
+ return null;
1292
+ }, "validLastResort");
1293
+ var anyCorrection = /* @__PURE__ */ __name(function(identifier, check) {
1294
+ for (var i = 0; i < transpositions.length; i++) {
1295
+ var transposition = transpositions[i];
1296
+ var transposed = transposition[TRANSPOSED];
1297
+ if (identifier.indexOf(transposed) > -1) {
1298
+ var corrected = identifier.replace(
1299
+ transposed,
1300
+ transposition[CORRECT]
1301
+ );
1302
+ var checked = check(corrected);
1303
+ if (checked !== null) {
1304
+ return checked;
1305
+ }
1306
+ }
1307
+ }
1308
+ return null;
1309
+ }, "anyCorrection");
1310
+ module2.exports = function(identifier, options) {
1311
+ options = options || {};
1312
+ var upgrade = options.upgrade === void 0 ? true : !!options.upgrade;
1313
+ function postprocess(value) {
1314
+ return upgrade ? upgradeGPLs(value) : value;
1315
+ }
1316
+ __name(postprocess, "postprocess");
1317
+ var validArugment = typeof identifier === "string" && identifier.trim().length !== 0;
1318
+ if (!validArugment) {
1319
+ throw Error("Invalid argument. Expected non-empty string.");
1320
+ }
1321
+ identifier = identifier.trim();
1322
+ if (valid(identifier)) {
1323
+ return postprocess(identifier);
1324
+ }
1325
+ var noPlus = identifier.replace(/\+$/, "").trim();
1326
+ if (valid(noPlus)) {
1327
+ return postprocess(noPlus);
1328
+ }
1329
+ var transformed = validTransformation(identifier);
1330
+ if (transformed !== null) {
1331
+ return postprocess(transformed);
1332
+ }
1333
+ transformed = anyCorrection(identifier, function(argument) {
1334
+ if (valid(argument)) {
1335
+ return argument;
1336
+ }
1337
+ return validTransformation(argument);
1338
+ });
1339
+ if (transformed !== null) {
1340
+ return postprocess(transformed);
1341
+ }
1342
+ transformed = validLastResort(identifier);
1343
+ if (transformed !== null) {
1344
+ return postprocess(transformed);
1345
+ }
1346
+ transformed = anyCorrection(identifier, validLastResort);
1347
+ if (transformed !== null) {
1348
+ return postprocess(transformed);
1349
+ }
1350
+ return null;
1351
+ };
1352
+ function upgradeGPLs(value) {
1353
+ if ([
1354
+ "GPL-1.0",
1355
+ "LGPL-1.0",
1356
+ "AGPL-1.0",
1357
+ "GPL-2.0",
1358
+ "LGPL-2.0",
1359
+ "AGPL-2.0",
1360
+ "LGPL-2.1"
1361
+ ].indexOf(value) !== -1) {
1362
+ return value + "-only";
1363
+ } else if ([
1364
+ "GPL-1.0+",
1365
+ "GPL-2.0+",
1366
+ "GPL-3.0+",
1367
+ "LGPL-2.0+",
1368
+ "LGPL-2.1+",
1369
+ "LGPL-3.0+",
1370
+ "AGPL-1.0+",
1371
+ "AGPL-3.0+"
1372
+ ].indexOf(value) !== -1) {
1373
+ return value.replace(/\+$/, "-or-later");
1374
+ } else if (["GPL-3.0", "LGPL-3.0", "AGPL-3.0"].indexOf(value) !== -1) {
1375
+ return value + "-or-later";
1376
+ } else {
1377
+ return value;
1378
+ }
1379
+ }
1380
+ __name(upgradeGPLs, "upgradeGPLs");
1381
+ }
1382
+ });
1383
+
1384
+ // node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/scan.js
1385
+ var require_scan2 = __commonJS({
1386
+ "node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/scan.js"(exports2, module2) {
1387
+ "use strict";
1388
+ var licenses = [].concat(require_spdx_license_ids()).concat(require_deprecated());
1389
+ var exceptions = require_spdx_exceptions();
1390
+ module2.exports = function(source) {
1391
+ var index = 0;
1392
+ function hasMore() {
1393
+ return index < source.length;
1394
+ }
1395
+ __name(hasMore, "hasMore");
1396
+ function read(value) {
1397
+ if (value instanceof RegExp) {
1398
+ var chars = source.slice(index);
1399
+ var match = chars.match(value);
1400
+ if (match) {
1401
+ index += match[0].length;
1402
+ return match[0];
1403
+ }
1404
+ } else {
1405
+ if (source.indexOf(value, index) === index) {
1406
+ index += value.length;
1407
+ return value;
1408
+ }
1409
+ }
1410
+ }
1411
+ __name(read, "read");
1412
+ function skipWhitespace() {
1413
+ read(/[ ]*/);
1414
+ }
1415
+ __name(skipWhitespace, "skipWhitespace");
1416
+ function operator() {
1417
+ var string;
1418
+ var possibilities = [/^WITH/i, /^AND/i, /^OR/i, "(", ")", ":", "+"];
1419
+ for (var i = 0; i < possibilities.length; i++) {
1420
+ string = read(possibilities[i]);
1421
+ if (string) {
1422
+ break;
1423
+ }
1424
+ }
1425
+ if (string === "+" && index > 1 && source[index - 2] === " ") {
1426
+ throw new Error("Space before `+`");
1427
+ }
1428
+ return string && {
1429
+ type: "OPERATOR",
1430
+ string: string.toUpperCase()
1431
+ };
1432
+ }
1433
+ __name(operator, "operator");
1434
+ function idstring() {
1435
+ return read(/[A-Za-z0-9-.]+/);
1436
+ }
1437
+ __name(idstring, "idstring");
1438
+ function expectIdstring() {
1439
+ var string = idstring();
1440
+ if (!string) {
1441
+ throw new Error("Expected idstring at offset " + index);
1442
+ }
1443
+ return string;
1444
+ }
1445
+ __name(expectIdstring, "expectIdstring");
1446
+ function documentRef() {
1447
+ if (read("DocumentRef-")) {
1448
+ var string = expectIdstring();
1449
+ return { type: "DOCUMENTREF", string };
1450
+ }
1451
+ }
1452
+ __name(documentRef, "documentRef");
1453
+ function licenseRef() {
1454
+ if (read("LicenseRef-")) {
1455
+ var string = expectIdstring();
1456
+ return { type: "LICENSEREF", string };
1457
+ }
1458
+ }
1459
+ __name(licenseRef, "licenseRef");
1460
+ function identifier() {
1461
+ var begin = index;
1462
+ var string = idstring();
1463
+ if (licenses.indexOf(string) !== -1) {
1464
+ return {
1465
+ type: "LICENSE",
1466
+ string
1467
+ };
1468
+ } else if (exceptions.indexOf(string) !== -1) {
1469
+ return {
1470
+ type: "EXCEPTION",
1471
+ string
1472
+ };
1473
+ }
1474
+ index = begin;
1475
+ }
1476
+ __name(identifier, "identifier");
1477
+ function parseToken() {
1478
+ return operator() || documentRef() || licenseRef() || identifier();
1479
+ }
1480
+ __name(parseToken, "parseToken");
1481
+ var tokens = [];
1482
+ while (hasMore()) {
1483
+ skipWhitespace();
1484
+ if (!hasMore()) {
1485
+ break;
1486
+ }
1487
+ var token = parseToken();
1488
+ if (!token) {
1489
+ throw new Error("Unexpected `" + source[index] + "` at offset " + index);
1490
+ }
1491
+ tokens.push(token);
1492
+ }
1493
+ return tokens;
1494
+ };
1495
+ }
1496
+ });
1497
+
1498
+ // node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/parse.js
1499
+ var require_parse2 = __commonJS({
1500
+ "node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/parse.js"(exports2, module2) {
1501
+ "use strict";
1502
+ module2.exports = function(tokens) {
1503
+ var index = 0;
1504
+ function hasMore() {
1505
+ return index < tokens.length;
1506
+ }
1507
+ __name(hasMore, "hasMore");
1508
+ function token() {
1509
+ return hasMore() ? tokens[index] : null;
1510
+ }
1511
+ __name(token, "token");
1512
+ function next() {
1513
+ if (!hasMore()) {
1514
+ throw new Error();
1515
+ }
1516
+ index++;
1517
+ }
1518
+ __name(next, "next");
1519
+ function parseOperator(operator) {
1520
+ var t = token();
1521
+ if (t && t.type === "OPERATOR" && operator === t.string) {
1522
+ next();
1523
+ return t.string;
1524
+ }
1525
+ }
1526
+ __name(parseOperator, "parseOperator");
1527
+ function parseWith() {
1528
+ if (parseOperator("WITH")) {
1529
+ var t = token();
1530
+ if (t && t.type === "EXCEPTION") {
1531
+ next();
1532
+ return t.string;
1533
+ }
1534
+ throw new Error("Expected exception after `WITH`");
1535
+ }
1536
+ }
1537
+ __name(parseWith, "parseWith");
1538
+ function parseLicenseRef() {
1539
+ var begin = index;
1540
+ var string = "";
1541
+ var t = token();
1542
+ if (t.type === "DOCUMENTREF") {
1543
+ next();
1544
+ string += "DocumentRef-" + t.string + ":";
1545
+ if (!parseOperator(":")) {
1546
+ throw new Error("Expected `:` after `DocumentRef-...`");
1547
+ }
1548
+ }
1549
+ t = token();
1550
+ if (t.type === "LICENSEREF") {
1551
+ next();
1552
+ string += "LicenseRef-" + t.string;
1553
+ return { license: string };
1554
+ }
1555
+ index = begin;
1556
+ }
1557
+ __name(parseLicenseRef, "parseLicenseRef");
1558
+ function parseLicense() {
1559
+ var t = token();
1560
+ if (t && t.type === "LICENSE") {
1561
+ next();
1562
+ var node2 = { license: t.string };
1563
+ if (parseOperator("+")) {
1564
+ node2.plus = true;
1565
+ }
1566
+ var exception = parseWith();
1567
+ if (exception) {
1568
+ node2.exception = exception;
1569
+ }
1570
+ return node2;
1571
+ }
1572
+ }
1573
+ __name(parseLicense, "parseLicense");
1574
+ function parseParenthesizedExpression() {
1575
+ var left = parseOperator("(");
1576
+ if (!left) {
1577
+ return;
1578
+ }
1579
+ var expr = parseExpression();
1580
+ if (!parseOperator(")")) {
1581
+ throw new Error("Expected `)`");
1582
+ }
1583
+ return expr;
1584
+ }
1585
+ __name(parseParenthesizedExpression, "parseParenthesizedExpression");
1586
+ function parseAtom() {
1587
+ return parseParenthesizedExpression() || parseLicenseRef() || parseLicense();
1588
+ }
1589
+ __name(parseAtom, "parseAtom");
1590
+ function makeBinaryOpParser(operator, nextParser) {
1591
+ return /* @__PURE__ */ __name(function parseBinaryOp() {
1592
+ var left = nextParser();
1593
+ if (!left) {
1594
+ return;
1595
+ }
1596
+ if (!parseOperator(operator)) {
1597
+ return left;
1598
+ }
1599
+ var right = parseBinaryOp();
1600
+ if (!right) {
1601
+ throw new Error("Expected expression");
1602
+ }
1603
+ return {
1604
+ left,
1605
+ conjunction: operator.toLowerCase(),
1606
+ right
1607
+ };
1608
+ }, "parseBinaryOp");
1609
+ }
1610
+ __name(makeBinaryOpParser, "makeBinaryOpParser");
1611
+ var parseAnd = makeBinaryOpParser("AND", parseAtom);
1612
+ var parseExpression = makeBinaryOpParser("OR", parseAnd);
1613
+ var node = parseExpression();
1614
+ if (!node || hasMore()) {
1615
+ throw new Error("Syntax error");
1616
+ }
1617
+ return node;
1618
+ };
1619
+ }
1620
+ });
1621
+
1622
+ // node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/index.js
1623
+ var require_spdx_expression_parse2 = __commonJS({
1624
+ "node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/index.js"(exports2, module2) {
1625
+ "use strict";
1626
+ var scan = require_scan2();
1627
+ var parse = require_parse2();
1628
+ module2.exports = function(source) {
1629
+ return parse(scan(source));
1630
+ };
1631
+ }
1632
+ });
1633
+
1634
+ // src/external/spdx-pack.js
1635
+ var spdxCorrect = require_spdx_correct();
1636
+ var spdxExpressionParse = require_spdx_expression_parse2();
1637
+ module.exports = {
1638
+ spdxCorrect,
1639
+ spdxExpressionParse
1640
+ };