@socketsecurity/lib 6.0.2 → 6.0.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.
Files changed (552) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/_virtual/_rolldown/runtime.js +45 -0
  3. package/dist/abort/signal.js +53 -59
  4. package/dist/ai/discover.js +110 -110
  5. package/dist/ai/profiles.d.mts +48 -25
  6. package/dist/ai/profiles.js +95 -59
  7. package/dist/ai/spawn.d.mts +2 -2
  8. package/dist/ai/spawn.js +172 -194
  9. package/dist/ai/types.d.mts +3 -3
  10. package/dist/ai/types.js +1 -17
  11. package/dist/ai/worktree.d.mts +2 -2
  12. package/dist/ai/worktree.js +160 -183
  13. package/dist/ansi/constants.js +16 -38
  14. package/dist/ansi/strip.js +44 -41
  15. package/dist/archives/_internal.js +64 -73
  16. package/dist/archives/detect.js +30 -43
  17. package/dist/archives/extract.js +43 -50
  18. package/dist/archives/tar.js +197 -228
  19. package/dist/archives/types.js +1 -17
  20. package/dist/archives/zip.js +85 -121
  21. package/dist/argv/flag-predicates.js +203 -101
  22. package/dist/argv/flag-types.js +96 -113
  23. package/dist/argv/parse-args-string.d.ts +16 -14
  24. package/dist/argv/parse-args-string.js +42 -39
  25. package/dist/argv/parse.js +145 -163
  26. package/dist/arrays/_internal.js +65 -48
  27. package/dist/arrays/chunk.js +51 -40
  28. package/dist/arrays/join.js +87 -35
  29. package/dist/arrays/predicates.js +46 -28
  30. package/dist/arrays/unique.js +45 -31
  31. package/dist/bin/_internal.js +34 -42
  32. package/dist/bin/check-primordials.js +175 -233
  33. package/dist/bin/check.js +51 -72
  34. package/dist/bin/exec.js +70 -74
  35. package/dist/bin/find.js +151 -134
  36. package/dist/bin/resolve.js +180 -246
  37. package/dist/bin/shadow.js +24 -33
  38. package/dist/bin/socket-lib.js +51 -73
  39. package/dist/bin/types.js +1 -17
  40. package/dist/bin/which.js +211 -146
  41. package/dist/cacache/_internal.js +25 -40
  42. package/dist/cacache/clear.js +79 -72
  43. package/dist/cacache/read.js +48 -46
  44. package/dist/cacache/tmp.js +29 -36
  45. package/dist/cacache/types.js +1 -17
  46. package/dist/cacache/write.js +43 -48
  47. package/dist/cache/ttl/store.js +232 -288
  48. package/dist/cache/ttl/types.js +1 -17
  49. package/dist/checks/primordials-defaults.js +83 -89
  50. package/dist/checks/primordials.js +225 -277
  51. package/dist/colors/convert.js +45 -37
  52. package/dist/colors/palette.js +88 -45
  53. package/dist/colors/socket-palette.js +74 -84
  54. package/dist/colors/types.js +1 -17
  55. package/dist/compression/_internal.js +57 -72
  56. package/dist/compression/brotli.js +94 -127
  57. package/dist/compression/gzip.js +95 -121
  58. package/dist/compression/types.js +1 -17
  59. package/dist/constants/agents.js +61 -113
  60. package/dist/constants/encoding.js +19 -42
  61. package/dist/constants/github.js +12 -30
  62. package/dist/constants/licenses.js +48 -63
  63. package/dist/constants/lifecycle-script-names.js +31 -45
  64. package/dist/constants/maintained-node-versions.js +22 -37
  65. package/dist/constants/node.js +226 -167
  66. package/dist/constants/package-default-node-range.js +16 -41
  67. package/dist/constants/package-default-socket-categories.js +12 -30
  68. package/dist/constants/packages.js +77 -126
  69. package/dist/constants/platform.js +27 -49
  70. package/dist/constants/sentinels.js +23 -48
  71. package/dist/constants/socket.js +42 -87
  72. package/dist/constants/testing.js +15 -34
  73. package/dist/constants/time.js +16 -36
  74. package/dist/constants/typescript.js +32 -52
  75. package/dist/cover/code.js +111 -142
  76. package/dist/cover/formatters.js +118 -101
  77. package/dist/cover/type.js +50 -76
  78. package/dist/cover/types.js +1 -17
  79. package/dist/crypto/hash.js +54 -46
  80. package/dist/debug/_internal.js +62 -71
  81. package/dist/debug/caller-info.js +53 -64
  82. package/dist/debug/namespace.js +80 -90
  83. package/dist/debug/output.js +172 -188
  84. package/dist/debug/types.js +1 -17
  85. package/dist/dlx/_internal.js +24 -43
  86. package/dist/dlx/arborist.js +162 -160
  87. package/dist/dlx/binary-cache.js +228 -200
  88. package/dist/dlx/binary-download.js +172 -211
  89. package/dist/dlx/binary-resolution.js +165 -157
  90. package/dist/dlx/binary-types.js +1 -17
  91. package/dist/dlx/binary.js +149 -189
  92. package/dist/dlx/cache.js +45 -30
  93. package/dist/dlx/detect.js +245 -167
  94. package/dist/dlx/dir.js +67 -51
  95. package/dist/dlx/firewall.js +62 -100
  96. package/dist/dlx/lockfile.js +122 -127
  97. package/dist/dlx/manifest.js +264 -274
  98. package/dist/dlx/package.js +241 -244
  99. package/dist/dlx/packages.js +99 -96
  100. package/dist/dlx/paths.js +73 -59
  101. package/dist/dlx/spec.js +52 -60
  102. package/dist/dlx/types.js +1 -17
  103. package/dist/eco/cargo/lockfile-format.js +19 -36
  104. package/dist/eco/cargo/manifest-format.js +17 -35
  105. package/dist/eco/cargo/parse-lockfile.js +210 -237
  106. package/dist/eco/manifest/analyze-lockfile.js +46 -63
  107. package/dist/eco/manifest/detect-format.js +66 -90
  108. package/dist/eco/manifest/find-packages.js +39 -64
  109. package/dist/eco/manifest/get-package-versions.js +27 -48
  110. package/dist/eco/manifest/get-package.js +21 -40
  111. package/dist/eco/manifest/manifest-error.js +14 -35
  112. package/dist/eco/manifest/parse-lockfile.js +40 -86
  113. package/dist/eco/manifest/parse-manifest.js +26 -43
  114. package/dist/eco/manifest/parse.js +26 -47
  115. package/dist/eco/manifest/types.js +1 -17
  116. package/dist/eco/npm/bun/exec.js +23 -32
  117. package/dist/eco/npm/manifest-format.js +21 -35
  118. package/dist/eco/npm/npm/exec.js +51 -61
  119. package/dist/eco/npm/npm/extract-package-name-from-path.js +28 -50
  120. package/dist/eco/npm/npm/flags.js +80 -52
  121. package/dist/eco/npm/npm/lockfile-format.js +21 -40
  122. package/dist/eco/npm/npm/parse-git-url.js +26 -40
  123. package/dist/eco/npm/npm/parse-lockfile.js +184 -210
  124. package/dist/eco/npm/parse-package-json.js +71 -102
  125. package/dist/eco/npm/pnpm/detect-pnpm-version.js +22 -43
  126. package/dist/eco/npm/pnpm/exec.js +51 -62
  127. package/dist/eco/npm/pnpm/flags.js +75 -68
  128. package/dist/eco/npm/pnpm/lockfile-format.js +19 -36
  129. package/dist/eco/npm/pnpm/parse-lockfile.js +235 -259
  130. package/dist/eco/npm/pnpm/parse-pnpm-package-id-v5.js +37 -47
  131. package/dist/eco/npm/pnpm/parse-pnpm-package-id-v6-v9.js +36 -49
  132. package/dist/eco/npm/script.js +82 -90
  133. package/dist/eco/npm/vlt/exec.js +24 -32
  134. package/dist/eco/npm/yarnpkg/yarn/exec.js +60 -59
  135. package/dist/eco/npm/yarnpkg/yarn/lockfile-format.js +20 -36
  136. package/dist/eco/npm/yarnpkg/yarn/parse-lockfile.js +194 -242
  137. package/dist/eco/npm/yarnpkg/yarn/parse-yarn-descriptor.js +37 -61
  138. package/dist/eco/purl.js +50 -60
  139. package/dist/eco/types.js +1 -17
  140. package/dist/effects/pulse-frames.js +64 -65
  141. package/dist/effects/shimmer-keyframes.js +71 -52
  142. package/dist/effects/shimmer-terminal.js +81 -50
  143. package/dist/effects/shimmer.js +290 -153
  144. package/dist/env/boolean.js +42 -43
  145. package/dist/env/case-insensitive.js +54 -39
  146. package/dist/env/ci.js +29 -31
  147. package/dist/env/debug.js +28 -31
  148. package/dist/env/github.js +144 -59
  149. package/dist/env/home.js +38 -31
  150. package/dist/env/locale.js +59 -39
  151. package/dist/env/node-auth-token.js +28 -31
  152. package/dist/env/node-env.js +28 -31
  153. package/dist/env/npm.js +94 -47
  154. package/dist/env/number.js +50 -51
  155. package/dist/env/package-manager.js +95 -83
  156. package/dist/env/path.js +28 -31
  157. package/dist/env/pre-commit.js +30 -32
  158. package/dist/env/proxy.js +121 -122
  159. package/dist/env/rewire.js +204 -96
  160. package/dist/env/shell.js +28 -31
  161. package/dist/env/socket-cli.js +233 -81
  162. package/dist/env/socket.js +521 -156
  163. package/dist/env/string.js +43 -44
  164. package/dist/env/temp-dir.js +59 -39
  165. package/dist/env/term.js +28 -31
  166. package/dist/env/test.js +65 -43
  167. package/dist/env/types.js +1 -17
  168. package/dist/env/windows.js +78 -43
  169. package/dist/env/xdg.js +62 -39
  170. package/dist/errors/message.js +40 -46
  171. package/dist/errors/predicates.js +61 -49
  172. package/dist/errors/stack.js +24 -36
  173. package/dist/events/exit/_internal.js +86 -103
  174. package/dist/events/exit/handler.js +48 -55
  175. package/dist/events/exit/intercept.js +49 -70
  176. package/dist/events/exit/lifecycle.js +92 -101
  177. package/dist/events/exit/signals.js +25 -31
  178. package/dist/events/exit/types.js +1 -17
  179. package/dist/events/warning/handler.js +43 -40
  180. package/dist/events/warning/suppress.js +111 -90
  181. package/dist/external/@npmcli/package-json/lib/read-package.js +132 -153
  182. package/dist/external/@npmcli/package-json/lib/sort.js +73 -105
  183. package/dist/external/@npmcli/package-json.js +12705 -15140
  184. package/dist/external/@npmcli/promise-spawn.js +451 -472
  185. package/dist/external/@sinclair/typebox/value.js +7443 -9002
  186. package/dist/external/@sinclair/typebox.js +7516 -7885
  187. package/dist/external/@socketregistry/is-unicode-supported.js +31 -39
  188. package/dist/external/@socketregistry/packageurl-js.js +6127 -7369
  189. package/dist/external/@socketregistry/yocto-spinner.js +394 -455
  190. package/dist/external/@yarnpkg/extensions.js +435 -1022
  191. package/dist/external/adm-zip.js +2313 -2673
  192. package/dist/external/debug.js +700 -687
  193. package/dist/external/external-pack.js +2658 -3171
  194. package/dist/external/fast-sort.js +124 -138
  195. package/dist/external/get-east-asian-width.js +70 -64
  196. package/dist/external/libnpmexec.js +28 -31
  197. package/dist/external/npm-pack.js +43617 -50137
  198. package/dist/external/p-map.js +198 -222
  199. package/dist/external/pico-pack.js +6735 -7304
  200. package/dist/external/pony-cause.js +143 -139
  201. package/dist/external/shell-quote.js +226 -0
  202. package/dist/external/spdx-pack.js +1283 -1403
  203. package/dist/external/streaming-iterables.js +835 -1052
  204. package/dist/external/tar-fs.js +2769 -3048
  205. package/dist/external/which.js +267 -251
  206. package/dist/external/yargs-parser.js +851 -1074
  207. package/dist/external-tools/bazel/asset-names.js +98 -90
  208. package/dist/external-tools/bazel/from-download.js +52 -46
  209. package/dist/external-tools/bazel/from-path.js +27 -38
  210. package/dist/external-tools/bazel/read-bazel-version-file.js +35 -57
  211. package/dist/external-tools/bazel/resolve-asset-url.js +24 -39
  212. package/dist/external-tools/bazel/resolve-bazel-version.js +34 -56
  213. package/dist/external-tools/bazel/resolve.js +44 -58
  214. package/dist/external-tools/bazel/types.js +1 -17
  215. package/dist/external-tools/cdxgen/asset-names.js +59 -66
  216. package/dist/external-tools/cdxgen/from-download.js +52 -80
  217. package/dist/external-tools/cdxgen/from-path.js +19 -37
  218. package/dist/external-tools/cdxgen/from-vfs.js +22 -43
  219. package/dist/external-tools/cdxgen/resolve.js +48 -63
  220. package/dist/external-tools/cdxgen/types.js +1 -17
  221. package/dist/external-tools/from-download.js +107 -67
  222. package/dist/external-tools/janus/asset-names.js +44 -51
  223. package/dist/external-tools/janus/from-download.js +45 -70
  224. package/dist/external-tools/janus/from-path.js +19 -37
  225. package/dist/external-tools/janus/from-vfs.js +22 -43
  226. package/dist/external-tools/janus/resolve.js +45 -63
  227. package/dist/external-tools/janus/types.js +1 -17
  228. package/dist/external-tools/jre/asset-names.js +109 -82
  229. package/dist/external-tools/jre/detect-platform-arch.js +25 -49
  230. package/dist/external-tools/jre/from-download.js +71 -67
  231. package/dist/external-tools/jre/from-java-home.js +27 -54
  232. package/dist/external-tools/jre/from-path.js +27 -49
  233. package/dist/external-tools/jre/from-vfs.js +39 -60
  234. package/dist/external-tools/jre/resolve.js +55 -68
  235. package/dist/external-tools/jre/types.js +1 -17
  236. package/dist/external-tools/manifest.js +130 -150
  237. package/dist/external-tools/opengrep/asset-names.js +60 -72
  238. package/dist/external-tools/opengrep/from-download.js +58 -80
  239. package/dist/external-tools/opengrep/from-path.js +19 -37
  240. package/dist/external-tools/opengrep/from-vfs.js +23 -43
  241. package/dist/external-tools/opengrep/resolve.js +43 -63
  242. package/dist/external-tools/opengrep/types.js +1 -17
  243. package/dist/external-tools/sbt/asset-names.js +21 -30
  244. package/dist/external-tools/sbt/from-download.js +50 -61
  245. package/dist/external-tools/sbt/from-path.js +23 -38
  246. package/dist/external-tools/sbt/from-vfs.js +30 -44
  247. package/dist/external-tools/sbt/resolve.js +45 -63
  248. package/dist/external-tools/sbt/types.js +1 -17
  249. package/dist/external-tools/synp/asset-names.js +11 -29
  250. package/dist/external-tools/synp/from-download.js +24 -41
  251. package/dist/external-tools/synp/from-path.js +19 -37
  252. package/dist/external-tools/synp/from-vfs.js +22 -43
  253. package/dist/external-tools/synp/resolve.js +43 -62
  254. package/dist/external-tools/synp/types.js +1 -17
  255. package/dist/external-tools/trivy/asset-names.js +51 -62
  256. package/dist/external-tools/trivy/from-download.js +42 -64
  257. package/dist/external-tools/trivy/from-path.js +19 -37
  258. package/dist/external-tools/trivy/from-vfs.js +22 -43
  259. package/dist/external-tools/trivy/resolve.js +43 -63
  260. package/dist/external-tools/trivy/types.js +1 -17
  261. package/dist/external-tools/trufflehog/asset-names.js +54 -66
  262. package/dist/external-tools/trufflehog/from-download.js +44 -62
  263. package/dist/external-tools/trufflehog/from-path.js +21 -37
  264. package/dist/external-tools/trufflehog/from-vfs.js +26 -43
  265. package/dist/external-tools/trufflehog/resolve.js +43 -63
  266. package/dist/external-tools/trufflehog/types.js +1 -17
  267. package/dist/external-tools/uv/asset-names.js +64 -74
  268. package/dist/external-tools/uv/from-download.js +44 -65
  269. package/dist/external-tools/uv/from-path.js +19 -37
  270. package/dist/external-tools/uv/from-vfs.js +22 -43
  271. package/dist/external-tools/uv/resolve.js +42 -63
  272. package/dist/external-tools/uv/types.js +1 -17
  273. package/dist/fs/_internal.js +40 -42
  274. package/dist/fs/access.d.ts +32 -0
  275. package/dist/fs/access.js +66 -0
  276. package/dist/fs/encoding.js +80 -97
  277. package/dist/fs/find-up.js +126 -147
  278. package/dist/fs/inspect.js +168 -99
  279. package/dist/fs/path-cache.js +31 -32
  280. package/dist/fs/read-dir.js +102 -79
  281. package/dist/fs/read-file.js +177 -118
  282. package/dist/fs/read-json-cache.js +150 -134
  283. package/dist/fs/read-json.js +172 -187
  284. package/dist/fs/resolve-module.d.ts +57 -0
  285. package/dist/fs/resolve-module.js +40 -0
  286. package/dist/fs/safe.js +278 -169
  287. package/dist/fs/types.js +1 -17
  288. package/dist/fs/unique.js +52 -48
  289. package/dist/fs/validate.js +56 -43
  290. package/dist/fs/write-json.js +109 -75
  291. package/dist/git/_internal.js +251 -216
  292. package/dist/git/changed.js +191 -74
  293. package/dist/git/repo.js +118 -104
  294. package/dist/git/staged.js +172 -62
  295. package/dist/git/types.js +1 -17
  296. package/dist/git/unstaged.js +175 -62
  297. package/dist/github/constants.js +25 -33
  298. package/dist/github/errors.js +46 -38
  299. package/dist/github/fetch.js +137 -82
  300. package/dist/github/ghsa.js +217 -151
  301. package/dist/github/refs-cache.js +54 -43
  302. package/dist/github/refs-graphql.js +97 -89
  303. package/dist/github/refs-rest.js +70 -101
  304. package/dist/github/refs.js +105 -64
  305. package/dist/github/token.js +96 -48
  306. package/dist/github/types.js +1 -17
  307. package/dist/globs/_internal.js +73 -82
  308. package/dist/globs/defaults.js +40 -59
  309. package/dist/globs/match.js +93 -77
  310. package/dist/globs/matcher.js +104 -92
  311. package/dist/globs/stream.js +43 -55
  312. package/dist/globs/types.js +1 -17
  313. package/dist/http-request/_internal.js +11 -38
  314. package/dist/http-request/browser-fetch.js +19 -29
  315. package/dist/http-request/browser.js +188 -206
  316. package/dist/http-request/checksums.js +101 -65
  317. package/dist/http-request/download-types.js +1 -17
  318. package/dist/http-request/download.js +195 -196
  319. package/dist/http-request/errors.js +39 -47
  320. package/dist/http-request/headers.js +95 -80
  321. package/dist/http-request/http-request.js +10 -35
  322. package/dist/http-request/node.js +71 -97
  323. package/dist/http-request/request-attempt.js +232 -285
  324. package/dist/http-request/request-types.js +1 -17
  325. package/dist/http-request/request.js +106 -108
  326. package/dist/http-request/response-reader.js +47 -51
  327. package/dist/http-request/response-types.js +22 -38
  328. package/dist/http-request/user-agent.js +73 -55
  329. package/dist/integrity.js +105 -106
  330. package/dist/ipc/_internal.js +34 -48
  331. package/dist/ipc/directory.js +55 -63
  332. package/dist/ipc/paths.js +52 -45
  333. package/dist/ipc/types.js +1 -17
  334. package/dist/ipc/write.js +81 -74
  335. package/dist/ipc-cli/get.js +29 -56
  336. package/dist/ipc-cli/types.js +1 -17
  337. package/dist/json/edit.js +182 -242
  338. package/dist/json/format.js +202 -103
  339. package/dist/json/parse.js +206 -109
  340. package/dist/json/types.js +1 -17
  341. package/dist/links/create.js +93 -60
  342. package/dist/links/types.js +1 -17
  343. package/dist/logger/_internal.js +109 -73
  344. package/dist/logger/browser.js +45 -56
  345. package/dist/logger/colors.js +31 -49
  346. package/dist/logger/console.js +89 -112
  347. package/dist/logger/default.js +19 -33
  348. package/dist/logger/logger.js +5 -29
  349. package/dist/logger/node.js +794 -854
  350. package/dist/logger/symbols-builder.js +54 -56
  351. package/dist/logger/symbols.js +135 -118
  352. package/dist/logger/types.js +1 -17
  353. package/dist/memo/_internal.js +39 -49
  354. package/dist/memo/async.js +133 -117
  355. package/dist/memo/clear.js +25 -34
  356. package/dist/memo/decorator.js +43 -37
  357. package/dist/memo/memoize.js +97 -88
  358. package/dist/memo/once.js +42 -41
  359. package/dist/memo/types.js +1 -17
  360. package/dist/memo/weak.js +45 -41
  361. package/dist/node/async-hooks.js +9 -30
  362. package/dist/node/child-process.js +9 -30
  363. package/dist/node/crypto.js +9 -30
  364. package/dist/node/events.js +9 -30
  365. package/dist/node/fs-promises.js +9 -30
  366. package/dist/node/fs.js +9 -30
  367. package/dist/node/http.js +9 -30
  368. package/dist/node/https.js +9 -30
  369. package/dist/node/module.js +20 -34
  370. package/dist/node/os.js +9 -30
  371. package/dist/node/path.js +9 -30
  372. package/dist/node/timers-promises.js +9 -30
  373. package/dist/node/url.js +9 -30
  374. package/dist/node/util.js +9 -30
  375. package/dist/objects/getters.js +185 -126
  376. package/dist/objects/inspect.js +85 -52
  377. package/dist/objects/mutate.js +96 -76
  378. package/dist/objects/predicates.js +112 -59
  379. package/dist/objects/sort.js +120 -76
  380. package/dist/objects/types.js +1 -17
  381. package/dist/packages/edit-class.js +198 -265
  382. package/dist/packages/edit.js +79 -86
  383. package/dist/packages/exports.js +146 -157
  384. package/dist/packages/isolation.js +159 -209
  385. package/dist/packages/licenses.js +207 -189
  386. package/dist/packages/manifest.js +134 -172
  387. package/dist/packages/normalize.js +91 -102
  388. package/dist/packages/operations.d.ts +2 -0
  389. package/dist/packages/operations.js +283 -254
  390. package/dist/packages/provenance.js +195 -245
  391. package/dist/packages/specs.js +94 -84
  392. package/dist/packages/types.js +1 -17
  393. package/dist/packages/validation.js +49 -50
  394. package/dist/paths/_internal.js +82 -86
  395. package/dist/paths/conversion.js +112 -65
  396. package/dist/paths/dirnames.js +17 -42
  397. package/dist/paths/exts.js +23 -54
  398. package/dist/paths/filenames.js +21 -50
  399. package/dist/paths/globs.js +15 -38
  400. package/dist/paths/normalize.js +215 -236
  401. package/dist/paths/packages.js +34 -49
  402. package/dist/paths/predicates.js +184 -106
  403. package/dist/paths/resolve.js +146 -128
  404. package/dist/paths/rewire.js +108 -72
  405. package/dist/paths/socket.js +252 -132
  406. package/dist/paths/walk.d.ts +40 -0
  407. package/dist/paths/walk.js +58 -0
  408. package/dist/perf/_internal.js +10 -28
  409. package/dist/perf/enabled.js +21 -30
  410. package/dist/perf/metrics.js +81 -67
  411. package/dist/perf/report.js +79 -80
  412. package/dist/perf/timer.js +180 -126
  413. package/dist/perf/types.js +1 -17
  414. package/dist/pkg-ext/data.js +29 -82
  415. package/dist/pkg-ext/types.js +1 -17
  416. package/dist/primordials/array.js +120 -198
  417. package/dist/primordials/buffer.js +28 -51
  418. package/dist/primordials/date.js +26 -51
  419. package/dist/primordials/error.js +33 -59
  420. package/dist/primordials/function.js +21 -41
  421. package/dist/primordials/globals.js +25 -48
  422. package/dist/primordials/json.js +14 -30
  423. package/dist/primordials/map-set.js +88 -152
  424. package/dist/primordials/math.js +59 -116
  425. package/dist/primordials/number.js +41 -76
  426. package/dist/primordials/object.js +56 -116
  427. package/dist/primordials/promise.js +28 -52
  428. package/dist/primordials/reflect.js +24 -52
  429. package/dist/primordials/regexp.js +25 -47
  430. package/dist/primordials/string.js +114 -167
  431. package/dist/primordials/symbol.js +40 -72
  432. package/dist/primordials/uncurry.js +38 -55
  433. package/dist/primordials/url.js +27 -66
  434. package/dist/process/_internal.js +7 -32
  435. package/dist/process/abort.js +29 -35
  436. package/dist/process/lock-instance.js +26 -30
  437. package/dist/process/lock-manager.js +279 -307
  438. package/dist/process/lock-types.js +1 -17
  439. package/dist/process/spawn/_internal.js +43 -55
  440. package/dist/process/spawn/child.js +172 -211
  441. package/dist/process/spawn/errors.js +116 -113
  442. package/dist/process/spawn/stdio.js +51 -35
  443. package/dist/process/spawn/types.js +1 -17
  444. package/dist/process/transient.js +49 -66
  445. package/dist/promises/_internal.d.ts +8 -2
  446. package/dist/promises/_internal.js +31 -38
  447. package/dist/promises/iterate.js +238 -102
  448. package/dist/promises/options.js +123 -101
  449. package/dist/promises/queue.js +115 -136
  450. package/dist/promises/resolvers.js +77 -46
  451. package/dist/promises/retry.js +156 -101
  452. package/dist/promises/types.js +1 -17
  453. package/dist/regexps/escape.js +32 -30
  454. package/dist/regexps/hex.js +16 -33
  455. package/dist/regexps/spec.js +53 -81
  456. package/dist/releases/github-archives.js +127 -118
  457. package/dist/releases/github-asset-url.js +162 -155
  458. package/dist/releases/github-assets.js +37 -49
  459. package/dist/releases/github-auth.js +32 -48
  460. package/dist/releases/github-downloads.js +118 -138
  461. package/dist/releases/github-listing.js +175 -154
  462. package/dist/releases/github-retry-config.d.ts +31 -0
  463. package/dist/releases/github-retry-config.js +46 -0
  464. package/dist/releases/github-types.js +1 -17
  465. package/dist/releases/socket-btm.js +273 -192
  466. package/dist/schema/parse.js +35 -36
  467. package/dist/schema/types.js +1 -17
  468. package/dist/schema/validate.js +118 -99
  469. package/dist/sea/detect.js +57 -52
  470. package/dist/secrets/_internal.js +86 -67
  471. package/dist/secrets/find.js +96 -77
  472. package/dist/secrets/keychain.js +315 -309
  473. package/dist/secrets/linux.js +133 -135
  474. package/dist/secrets/macos.js +151 -147
  475. package/dist/secrets/rc.js +182 -181
  476. package/dist/secrets/socket-api-token.js +28 -43
  477. package/dist/secrets/types.js +1 -17
  478. package/dist/secrets/windows.js +184 -242
  479. package/dist/shadow/skip.js +51 -70
  480. package/dist/shadow/types.js +1 -17
  481. package/dist/shell/parse.d.ts +26 -0
  482. package/dist/shell/parse.js +35 -0
  483. package/dist/shell/quote.d.ts +19 -0
  484. package/dist/shell/quote.js +30 -0
  485. package/dist/smol/detect.js +67 -43
  486. package/dist/smol/http.js +33 -37
  487. package/dist/smol/https.js +31 -37
  488. package/dist/smol/manifest.js +33 -37
  489. package/dist/smol/path.d.ts +51 -0
  490. package/dist/smol/path.js +38 -0
  491. package/dist/smol/primordial.js +35 -37
  492. package/dist/smol/purl.js +34 -37
  493. package/dist/smol/versions.js +31 -37
  494. package/dist/smol/vfs.js +46 -38
  495. package/dist/sorts/_internal.js +14 -40
  496. package/dist/sorts/natural.js +57 -64
  497. package/dist/sorts/semver.js +33 -43
  498. package/dist/sorts/strings.js +24 -30
  499. package/dist/sorts/types.js +1 -17
  500. package/dist/spinner/default.js +72 -63
  501. package/dist/spinner/format.js +86 -71
  502. package/dist/spinner/spinner.js +749 -797
  503. package/dist/spinner/types.js +1 -17
  504. package/dist/spinner/with.js +193 -137
  505. package/dist/ssri/convert.js +64 -47
  506. package/dist/ssri/parse.js +38 -37
  507. package/dist/ssri/validate.js +51 -34
  508. package/dist/stdio/_internal.js +50 -46
  509. package/dist/stdio/clear.js +208 -86
  510. package/dist/stdio/divider.js +170 -97
  511. package/dist/stdio/footer.js +116 -110
  512. package/dist/stdio/header.js +117 -90
  513. package/dist/stdio/progress.js +189 -218
  514. package/dist/stdio/prompts.js +244 -168
  515. package/dist/stdio/stderr.js +173 -78
  516. package/dist/stdio/stdout.js +177 -94
  517. package/dist/streams/parallel.js +58 -50
  518. package/dist/streams/transform.js +36 -45
  519. package/dist/strings/format.js +145 -63
  520. package/dist/strings/predicates.js +56 -34
  521. package/dist/strings/search.js +52 -42
  522. package/dist/strings/transform.js +113 -72
  523. package/dist/strings/types.js +1 -17
  524. package/dist/strings/width.js +89 -82
  525. package/dist/tables/bordered.js +81 -81
  526. package/dist/tables/padding.js +36 -46
  527. package/dist/tables/simple.js +62 -70
  528. package/dist/tables/types.js +1 -17
  529. package/dist/temporal/instant.js +72 -81
  530. package/dist/temporal/now.js +40 -31
  531. package/dist/temporal/slots.js +42 -36
  532. package/dist/temporal/system.js +36 -36
  533. package/dist/temporal/temporal.js +11 -41
  534. package/dist/themes/context.js +131 -69
  535. package/dist/themes/resolve.js +207 -132
  536. package/dist/themes/themes.js +225 -194
  537. package/dist/themes/types.js +1 -17
  538. package/dist/url/parse.js +48 -51
  539. package/dist/url/predicates.js +24 -31
  540. package/dist/url/search-params.js +133 -101
  541. package/dist/url/types.js +1 -17
  542. package/dist/versions/_internal.js +31 -33
  543. package/dist/versions/compare.js +80 -58
  544. package/dist/versions/modify.js +41 -39
  545. package/dist/versions/parse.js +88 -64
  546. package/dist/versions/range.js +58 -41
  547. package/dist/versions/types.js +1 -17
  548. package/dist/words/article.js +22 -30
  549. package/dist/words/capitalize.js +25 -34
  550. package/dist/words/pluralize.js +23 -31
  551. package/dist/words/types.js +1 -17
  552. package/package.json +42 -5
@@ -4,1418 +4,1298 @@ const { ObjectKeys: _p_ObjectKeys } = require('../primordials/object.js')
4
4
  "use strict";
5
5
  /**
6
6
  * Bundled from spdx-pack
7
- * This is a zero-dependency bundle created by esbuild.
7
+ * This is a zero-dependency bundle created by rolldown.
8
8
  */
9
- "use strict";
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropNames = Object.getOwnPropertyNames;
12
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
13
- var __commonJS = (cb, mod) => function __require() {
14
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
- };
9
+ 'use strict';
16
10
 
17
- // node_modules/.pnpm/spdx-license-ids@3.0.23/node_modules/spdx-license-ids/index.json
18
- var require_spdx_license_ids = __commonJS({
19
- "node_modules/.pnpm/spdx-license-ids@3.0.23/node_modules/spdx-license-ids/index.json"(exports2, module2) {
20
- module2.exports = [
21
- "0BSD",
22
- "3D-Slicer-1.0",
23
- "AAL",
24
- "ADSL",
25
- "AFL-1.1",
26
- "AFL-1.2",
27
- "AFL-2.0",
28
- "AFL-2.1",
29
- "AFL-3.0",
30
- "AGPL-1.0-only",
31
- "AGPL-1.0-or-later",
32
- "AGPL-3.0-only",
33
- "AGPL-3.0-or-later",
34
- "ALGLIB-Documentation",
35
- "AMD-newlib",
36
- "AMDPLPA",
37
- "AML",
38
- "AML-glslang",
39
- "AMPAS",
40
- "ANTLR-PD",
41
- "ANTLR-PD-fallback",
42
- "APAFML",
43
- "APL-1.0",
44
- "APSL-1.0",
45
- "APSL-1.1",
46
- "APSL-1.2",
47
- "APSL-2.0",
48
- "ASWF-Digital-Assets-1.0",
49
- "ASWF-Digital-Assets-1.1",
50
- "Abstyles",
51
- "AdaCore-doc",
52
- "Adobe-2006",
53
- "Adobe-Display-PostScript",
54
- "Adobe-Glyph",
55
- "Adobe-Utopia",
56
- "Advanced-Cryptics-Dictionary",
57
- "Afmparse",
58
- "Aladdin",
59
- "Apache-1.0",
60
- "Apache-1.1",
61
- "Apache-2.0",
62
- "App-s2p",
63
- "Arphic-1999",
64
- "Artistic-1.0",
65
- "Artistic-1.0-Perl",
66
- "Artistic-1.0-cl8",
67
- "Artistic-2.0",
68
- "Artistic-dist",
69
- "Aspell-RU",
70
- "BOLA-1.1",
71
- "BSD-1-Clause",
72
- "BSD-2-Clause",
73
- "BSD-2-Clause-Darwin",
74
- "BSD-2-Clause-Patent",
75
- "BSD-2-Clause-Views",
76
- "BSD-2-Clause-first-lines",
77
- "BSD-2-Clause-pkgconf-disclaimer",
78
- "BSD-3-Clause",
79
- "BSD-3-Clause-Attribution",
80
- "BSD-3-Clause-Clear",
81
- "BSD-3-Clause-HP",
82
- "BSD-3-Clause-LBNL",
83
- "BSD-3-Clause-Modification",
84
- "BSD-3-Clause-No-Military-License",
85
- "BSD-3-Clause-No-Nuclear-License",
86
- "BSD-3-Clause-No-Nuclear-License-2014",
87
- "BSD-3-Clause-No-Nuclear-Warranty",
88
- "BSD-3-Clause-Open-MPI",
89
- "BSD-3-Clause-Sun",
90
- "BSD-3-Clause-Tso",
91
- "BSD-3-Clause-acpica",
92
- "BSD-3-Clause-flex",
93
- "BSD-4-Clause",
94
- "BSD-4-Clause-Shortened",
95
- "BSD-4-Clause-UC",
96
- "BSD-4.3RENO",
97
- "BSD-4.3TAHOE",
98
- "BSD-Advertising-Acknowledgement",
99
- "BSD-Attribution-HPND-disclaimer",
100
- "BSD-Inferno-Nettverk",
101
- "BSD-Mark-Modifications",
102
- "BSD-Protection",
103
- "BSD-Source-Code",
104
- "BSD-Source-beginning-file",
105
- "BSD-Systemics",
106
- "BSD-Systemics-W3Works",
107
- "BSL-1.0",
108
- "BUSL-1.1",
109
- "Baekmuk",
110
- "Bahyph",
111
- "Barr",
112
- "Beerware",
113
- "BitTorrent-1.0",
114
- "BitTorrent-1.1",
115
- "Bitstream-Charter",
116
- "Bitstream-Vera",
117
- "BlueOak-1.0.0",
118
- "Boehm-GC",
119
- "Boehm-GC-without-fee",
120
- "Borceux",
121
- "Brian-Gladman-2-Clause",
122
- "Brian-Gladman-3-Clause",
123
- "Buddy",
124
- "C-UDA-1.0",
125
- "CAL-1.0",
126
- "CAL-1.0-Combined-Work-Exception",
127
- "CAPEC-tou",
128
- "CATOSL-1.1",
129
- "CC-BY-1.0",
130
- "CC-BY-2.0",
131
- "CC-BY-2.5",
132
- "CC-BY-2.5-AU",
133
- "CC-BY-3.0",
134
- "CC-BY-3.0-AT",
135
- "CC-BY-3.0-AU",
136
- "CC-BY-3.0-DE",
137
- "CC-BY-3.0-IGO",
138
- "CC-BY-3.0-NL",
139
- "CC-BY-3.0-US",
140
- "CC-BY-4.0",
141
- "CC-BY-NC-1.0",
142
- "CC-BY-NC-2.0",
143
- "CC-BY-NC-2.5",
144
- "CC-BY-NC-3.0",
145
- "CC-BY-NC-3.0-DE",
146
- "CC-BY-NC-4.0",
147
- "CC-BY-NC-ND-1.0",
148
- "CC-BY-NC-ND-2.0",
149
- "CC-BY-NC-ND-2.5",
150
- "CC-BY-NC-ND-3.0",
151
- "CC-BY-NC-ND-3.0-DE",
152
- "CC-BY-NC-ND-3.0-IGO",
153
- "CC-BY-NC-ND-4.0",
154
- "CC-BY-NC-SA-1.0",
155
- "CC-BY-NC-SA-2.0",
156
- "CC-BY-NC-SA-2.0-DE",
157
- "CC-BY-NC-SA-2.0-FR",
158
- "CC-BY-NC-SA-2.0-UK",
159
- "CC-BY-NC-SA-2.5",
160
- "CC-BY-NC-SA-3.0",
161
- "CC-BY-NC-SA-3.0-DE",
162
- "CC-BY-NC-SA-3.0-IGO",
163
- "CC-BY-NC-SA-4.0",
164
- "CC-BY-ND-1.0",
165
- "CC-BY-ND-2.0",
166
- "CC-BY-ND-2.5",
167
- "CC-BY-ND-3.0",
168
- "CC-BY-ND-3.0-DE",
169
- "CC-BY-ND-4.0",
170
- "CC-BY-SA-1.0",
171
- "CC-BY-SA-2.0",
172
- "CC-BY-SA-2.0-UK",
173
- "CC-BY-SA-2.1-JP",
174
- "CC-BY-SA-2.5",
175
- "CC-BY-SA-3.0",
176
- "CC-BY-SA-3.0-AT",
177
- "CC-BY-SA-3.0-DE",
178
- "CC-BY-SA-3.0-IGO",
179
- "CC-BY-SA-4.0",
180
- "CC-PDDC",
181
- "CC-PDM-1.0",
182
- "CC-SA-1.0",
183
- "CC0-1.0",
184
- "CDDL-1.0",
185
- "CDDL-1.1",
186
- "CDL-1.0",
187
- "CDLA-Permissive-1.0",
188
- "CDLA-Permissive-2.0",
189
- "CDLA-Sharing-1.0",
190
- "CECILL-1.0",
191
- "CECILL-1.1",
192
- "CECILL-2.0",
193
- "CECILL-2.1",
194
- "CECILL-B",
195
- "CECILL-C",
196
- "CERN-OHL-1.1",
197
- "CERN-OHL-1.2",
198
- "CERN-OHL-P-2.0",
199
- "CERN-OHL-S-2.0",
200
- "CERN-OHL-W-2.0",
201
- "CFITSIO",
202
- "CMU-Mach",
203
- "CMU-Mach-nodoc",
204
- "CNRI-Jython",
205
- "CNRI-Python",
206
- "CNRI-Python-GPL-Compatible",
207
- "COIL-1.0",
208
- "CPAL-1.0",
209
- "CPL-1.0",
210
- "CPOL-1.02",
211
- "CUA-OPL-1.0",
212
- "Caldera",
213
- "Caldera-no-preamble",
214
- "Catharon",
215
- "ClArtistic",
216
- "Clips",
217
- "Community-Spec-1.0",
218
- "Condor-1.1",
219
- "Cornell-Lossless-JPEG",
220
- "Cronyx",
221
- "Crossword",
222
- "CryptoSwift",
223
- "CrystalStacker",
224
- "Cube",
225
- "D-FSL-1.0",
226
- "DEC-3-Clause",
227
- "DL-DE-BY-2.0",
228
- "DL-DE-ZERO-2.0",
229
- "DOC",
230
- "DRL-1.0",
231
- "DRL-1.1",
232
- "DSDP",
233
- "DocBook-DTD",
234
- "DocBook-Schema",
235
- "DocBook-Stylesheet",
236
- "DocBook-XML",
237
- "Dotseqn",
238
- "ECL-1.0",
239
- "ECL-2.0",
240
- "EFL-1.0",
241
- "EFL-2.0",
242
- "EPICS",
243
- "EPL-1.0",
244
- "EPL-2.0",
245
- "ESA-PL-permissive-2.4",
246
- "ESA-PL-strong-copyleft-2.4",
247
- "ESA-PL-weak-copyleft-2.4",
248
- "EUDatagrid",
249
- "EUPL-1.0",
250
- "EUPL-1.1",
251
- "EUPL-1.2",
252
- "Elastic-2.0",
253
- "Entessa",
254
- "ErlPL-1.1",
255
- "Eurosym",
256
- "FBM",
257
- "FDK-AAC",
258
- "FSFAP",
259
- "FSFAP-no-warranty-disclaimer",
260
- "FSFUL",
261
- "FSFULLR",
262
- "FSFULLRSD",
263
- "FSFULLRWD",
264
- "FSL-1.1-ALv2",
265
- "FSL-1.1-MIT",
266
- "FTL",
267
- "Fair",
268
- "Ferguson-Twofish",
269
- "Frameworx-1.0",
270
- "FreeBSD-DOC",
271
- "FreeImage",
272
- "Furuseth",
273
- "GCR-docs",
274
- "GD",
275
- "GFDL-1.1-invariants-only",
276
- "GFDL-1.1-invariants-or-later",
277
- "GFDL-1.1-no-invariants-only",
278
- "GFDL-1.1-no-invariants-or-later",
279
- "GFDL-1.1-only",
280
- "GFDL-1.1-or-later",
281
- "GFDL-1.2-invariants-only",
282
- "GFDL-1.2-invariants-or-later",
283
- "GFDL-1.2-no-invariants-only",
284
- "GFDL-1.2-no-invariants-or-later",
285
- "GFDL-1.2-only",
286
- "GFDL-1.2-or-later",
287
- "GFDL-1.3-invariants-only",
288
- "GFDL-1.3-invariants-or-later",
289
- "GFDL-1.3-no-invariants-only",
290
- "GFDL-1.3-no-invariants-or-later",
291
- "GFDL-1.3-only",
292
- "GFDL-1.3-or-later",
293
- "GL2PS",
294
- "GLWTPL",
295
- "GPL-1.0-only",
296
- "GPL-1.0-or-later",
297
- "GPL-2.0-only",
298
- "GPL-2.0-or-later",
299
- "GPL-3.0-only",
300
- "GPL-3.0-or-later",
301
- "Game-Programming-Gems",
302
- "Giftware",
303
- "Glide",
304
- "Glulxe",
305
- "Graphics-Gems",
306
- "Gutmann",
307
- "HDF5",
308
- "HIDAPI",
309
- "HP-1986",
310
- "HP-1989",
311
- "HPND",
312
- "HPND-DEC",
313
- "HPND-Fenneberg-Livingston",
314
- "HPND-INRIA-IMAG",
315
- "HPND-Intel",
316
- "HPND-Kevlin-Henney",
317
- "HPND-MIT-disclaimer",
318
- "HPND-Markus-Kuhn",
319
- "HPND-Netrek",
320
- "HPND-Pbmplus",
321
- "HPND-SMC",
322
- "HPND-UC",
323
- "HPND-UC-export-US",
324
- "HPND-doc",
325
- "HPND-doc-sell",
326
- "HPND-export-US",
327
- "HPND-export-US-acknowledgement",
328
- "HPND-export-US-modify",
329
- "HPND-export2-US",
330
- "HPND-merchantability-variant",
331
- "HPND-sell-MIT-disclaimer-xserver",
332
- "HPND-sell-regexpr",
333
- "HPND-sell-variant",
334
- "HPND-sell-variant-MIT-disclaimer",
335
- "HPND-sell-variant-MIT-disclaimer-rev",
336
- "HPND-sell-variant-critical-systems",
337
- "HTMLTIDY",
338
- "HaskellReport",
339
- "Hippocratic-2.1",
340
- "IBM-pibs",
341
- "ICU",
342
- "IEC-Code-Components-EULA",
343
- "IJG",
344
- "IJG-short",
345
- "IPA",
346
- "IPL-1.0",
347
- "ISC",
348
- "ISC-Veillard",
349
- "ISO-permission",
350
- "ImageMagick",
351
- "Imlib2",
352
- "Info-ZIP",
353
- "Inner-Net-2.0",
354
- "InnoSetup",
355
- "Intel",
356
- "Intel-ACPI",
357
- "Interbase-1.0",
358
- "JPL-image",
359
- "JPNIC",
360
- "JSON",
361
- "Jam",
362
- "JasPer-2.0",
363
- "Kastrup",
364
- "Kazlib",
365
- "Knuth-CTAN",
366
- "LAL-1.2",
367
- "LAL-1.3",
368
- "LGPL-2.0-only",
369
- "LGPL-2.0-or-later",
370
- "LGPL-2.1-only",
371
- "LGPL-2.1-or-later",
372
- "LGPL-3.0-only",
373
- "LGPL-3.0-or-later",
374
- "LGPLLR",
375
- "LOOP",
376
- "LPD-document",
377
- "LPL-1.0",
378
- "LPL-1.02",
379
- "LPPL-1.0",
380
- "LPPL-1.1",
381
- "LPPL-1.2",
382
- "LPPL-1.3a",
383
- "LPPL-1.3c",
384
- "LZMA-SDK-9.11-to-9.20",
385
- "LZMA-SDK-9.22",
386
- "Latex2e",
387
- "Latex2e-translated-notice",
388
- "Leptonica",
389
- "LiLiQ-P-1.1",
390
- "LiLiQ-R-1.1",
391
- "LiLiQ-Rplus-1.1",
392
- "Libpng",
393
- "Linux-OpenIB",
394
- "Linux-man-pages-1-para",
395
- "Linux-man-pages-copyleft",
396
- "Linux-man-pages-copyleft-2-para",
397
- "Linux-man-pages-copyleft-var",
398
- "Lucida-Bitmap-Fonts",
399
- "MIPS",
400
- "MIT",
401
- "MIT-0",
402
- "MIT-CMU",
403
- "MIT-Click",
404
- "MIT-Festival",
405
- "MIT-Khronos-old",
406
- "MIT-Modern-Variant",
407
- "MIT-STK",
408
- "MIT-Wu",
409
- "MIT-advertising",
410
- "MIT-enna",
411
- "MIT-feh",
412
- "MIT-open-group",
413
- "MIT-testregex",
414
- "MITNFA",
415
- "MMIXware",
416
- "MMPL-1.0.1",
417
- "MPEG-SSG",
418
- "MPL-1.0",
419
- "MPL-1.1",
420
- "MPL-2.0",
421
- "MPL-2.0-no-copyleft-exception",
422
- "MS-LPL",
423
- "MS-PL",
424
- "MS-RL",
425
- "MTLL",
426
- "Mackerras-3-Clause",
427
- "Mackerras-3-Clause-acknowledgment",
428
- "MakeIndex",
429
- "Martin-Birgmeier",
430
- "McPhee-slideshow",
431
- "Minpack",
432
- "MirOS",
433
- "Motosoto",
434
- "MulanPSL-1.0",
435
- "MulanPSL-2.0",
436
- "Multics",
437
- "Mup",
438
- "NAIST-2003",
439
- "NASA-1.3",
440
- "NBPL-1.0",
441
- "NCBI-PD",
442
- "NCGL-UK-2.0",
443
- "NCL",
444
- "NCSA",
445
- "NGPL",
446
- "NICTA-1.0",
447
- "NIST-PD",
448
- "NIST-PD-TNT",
449
- "NIST-PD-fallback",
450
- "NIST-Software",
451
- "NLOD-1.0",
452
- "NLOD-2.0",
453
- "NLPL",
454
- "NOSL",
455
- "NPL-1.0",
456
- "NPL-1.1",
457
- "NPOSL-3.0",
458
- "NRL",
459
- "NTIA-PD",
460
- "NTP",
461
- "NTP-0",
462
- "Naumen",
463
- "NetCDF",
464
- "Newsletr",
465
- "Nokia",
466
- "Noweb",
467
- "O-UDA-1.0",
468
- "OAR",
469
- "OCCT-PL",
470
- "OCLC-2.0",
471
- "ODC-By-1.0",
472
- "ODbL-1.0",
473
- "OFFIS",
474
- "OFL-1.0",
475
- "OFL-1.0-RFN",
476
- "OFL-1.0-no-RFN",
477
- "OFL-1.1",
478
- "OFL-1.1-RFN",
479
- "OFL-1.1-no-RFN",
480
- "OGC-1.0",
481
- "OGDL-Taiwan-1.0",
482
- "OGL-Canada-2.0",
483
- "OGL-UK-1.0",
484
- "OGL-UK-2.0",
485
- "OGL-UK-3.0",
486
- "OGTSL",
487
- "OLDAP-1.1",
488
- "OLDAP-1.2",
489
- "OLDAP-1.3",
490
- "OLDAP-1.4",
491
- "OLDAP-2.0",
492
- "OLDAP-2.0.1",
493
- "OLDAP-2.1",
494
- "OLDAP-2.2",
495
- "OLDAP-2.2.1",
496
- "OLDAP-2.2.2",
497
- "OLDAP-2.3",
498
- "OLDAP-2.4",
499
- "OLDAP-2.5",
500
- "OLDAP-2.6",
501
- "OLDAP-2.7",
502
- "OLDAP-2.8",
503
- "OLFL-1.3",
504
- "OML",
505
- "OPL-1.0",
506
- "OPL-UK-3.0",
507
- "OPUBL-1.0",
508
- "OSC-1.0",
509
- "OSET-PL-2.1",
510
- "OSL-1.0",
511
- "OSL-1.1",
512
- "OSL-2.0",
513
- "OSL-2.1",
514
- "OSL-3.0",
515
- "OSSP",
516
- "OpenMDW-1.0",
517
- "OpenPBS-2.3",
518
- "OpenSSL",
519
- "OpenSSL-standalone",
520
- "OpenVision",
521
- "PADL",
522
- "PDDL-1.0",
523
- "PHP-3.0",
524
- "PHP-3.01",
525
- "PPL",
526
- "PSF-2.0",
527
- "ParaType-Free-Font-1.3",
528
- "Parity-6.0.0",
529
- "Parity-7.0.0",
530
- "Pixar",
531
- "Plexus",
532
- "PolyForm-Noncommercial-1.0.0",
533
- "PolyForm-Small-Business-1.0.0",
534
- "PostgreSQL",
535
- "Python-2.0",
536
- "Python-2.0.1",
537
- "QPL-1.0",
538
- "QPL-1.0-INRIA-2004",
539
- "Qhull",
540
- "RHeCos-1.1",
541
- "RPL-1.1",
542
- "RPL-1.5",
543
- "RPSL-1.0",
544
- "RSA-MD",
545
- "RSCPL",
546
- "Rdisc",
547
- "Ruby",
548
- "Ruby-pty",
549
- "SAX-PD",
550
- "SAX-PD-2.0",
551
- "SCEA",
552
- "SGI-B-1.0",
553
- "SGI-B-1.1",
554
- "SGI-B-2.0",
555
- "SGI-OpenGL",
556
- "SGMLUG-PM",
557
- "SGP4",
558
- "SHL-0.5",
559
- "SHL-0.51",
560
- "SISSL",
561
- "SISSL-1.2",
562
- "SL",
563
- "SMAIL-GPL",
564
- "SMLNJ",
565
- "SMPPL",
566
- "SNIA",
567
- "SOFA",
568
- "SPL-1.0",
569
- "SSH-OpenSSH",
570
- "SSH-short",
571
- "SSLeay-standalone",
572
- "SSPL-1.0",
573
- "SUL-1.0",
574
- "SWL",
575
- "Saxpath",
576
- "SchemeReport",
577
- "Sendmail",
578
- "Sendmail-8.23",
579
- "Sendmail-Open-Source-1.1",
580
- "SimPL-2.0",
581
- "Sleepycat",
582
- "Soundex",
583
- "Spencer-86",
584
- "Spencer-94",
585
- "Spencer-99",
586
- "SugarCRM-1.1.3",
587
- "Sun-PPP",
588
- "Sun-PPP-2000",
589
- "SunPro",
590
- "Symlinks",
591
- "TAPR-OHL-1.0",
592
- "TCL",
593
- "TCP-wrappers",
594
- "TGPPL-1.0",
595
- "TMate",
596
- "TORQUE-1.1",
597
- "TOSL",
598
- "TPDL",
599
- "TPL-1.0",
600
- "TTWL",
601
- "TTYP0",
602
- "TU-Berlin-1.0",
603
- "TU-Berlin-2.0",
604
- "TekHVC",
605
- "TermReadKey",
606
- "ThirdEye",
607
- "TrustedQSL",
608
- "UCAR",
609
- "UCL-1.0",
610
- "UMich-Merit",
611
- "UPL-1.0",
612
- "URT-RLE",
613
- "Ubuntu-font-1.0",
614
- "UnRAR",
615
- "Unicode-3.0",
616
- "Unicode-DFS-2015",
617
- "Unicode-DFS-2016",
618
- "Unicode-TOU",
619
- "UnixCrypt",
620
- "Unlicense",
621
- "Unlicense-libtelnet",
622
- "Unlicense-libwhirlpool",
623
- "VOSTROM",
624
- "VSL-1.0",
625
- "Vim",
626
- "Vixie-Cron",
627
- "W3C",
628
- "W3C-19980720",
629
- "W3C-20150513",
630
- "WTFNMFPL",
631
- "WTFPL",
632
- "Watcom-1.0",
633
- "Widget-Workshop",
634
- "WordNet",
635
- "Wsuipa",
636
- "X11",
637
- "X11-distribute-modifications-variant",
638
- "X11-no-permit-persons",
639
- "X11-swapped",
640
- "XFree86-1.1",
641
- "XSkat",
642
- "Xdebug-1.03",
643
- "Xerox",
644
- "Xfig",
645
- "Xnet",
646
- "YPL-1.0",
647
- "YPL-1.1",
648
- "ZPL-1.1",
649
- "ZPL-2.0",
650
- "ZPL-2.1",
651
- "Zed",
652
- "Zeeff",
653
- "Zend-2.0",
654
- "Zimbra-1.3",
655
- "Zimbra-1.4",
656
- "Zlib",
657
- "any-OSI",
658
- "any-OSI-perl-modules",
659
- "bcrypt-Solar-Designer",
660
- "blessing",
661
- "bzip2-1.0.6",
662
- "check-cvs",
663
- "checkmk",
664
- "copyleft-next-0.3.0",
665
- "copyleft-next-0.3.1",
666
- "curl",
667
- "cve-tou",
668
- "diffmark",
669
- "dtoa",
670
- "dvipdfm",
671
- "eGenix",
672
- "etalab-2.0",
673
- "fwlw",
674
- "gSOAP-1.3b",
675
- "generic-xts",
676
- "gnuplot",
677
- "gtkbook",
678
- "hdparm",
679
- "hyphen-bulgarian",
680
- "iMatix",
681
- "jove",
682
- "libpng-1.6.35",
683
- "libpng-2.0",
684
- "libselinux-1.0",
685
- "libtiff",
686
- "libutil-David-Nugent",
687
- "lsof",
688
- "magaz",
689
- "mailprio",
690
- "man2html",
691
- "metamail",
692
- "mpi-permissive",
693
- "mpich2",
694
- "mplus",
695
- "ngrep",
696
- "pkgconf",
697
- "pnmstitch",
698
- "psfrag",
699
- "psutils",
700
- "python-ldap",
701
- "radvd",
702
- "snprintf",
703
- "softSurfer",
704
- "ssh-keyscan",
705
- "swrule",
706
- "threeparttable",
707
- "ulem",
708
- "w3m",
709
- "wwl",
710
- "xinetd",
711
- "xkeyboard-config-Zinoviev",
712
- "xlock",
713
- "xpp",
714
- "xzoom",
715
- "zlib-acknowledgement"
716
- ];
717
- }
11
+ //#region \0rolldown/runtime.js
12
+ var __defProp = Object.defineProperty;
13
+ var __name = (target, value) => __defProp(target, "name", {
14
+ value,
15
+ configurable: true
718
16
  });
17
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
719
18
 
720
- // node_modules/.pnpm/spdx-license-ids@3.0.23/node_modules/spdx-license-ids/deprecated.json
721
- var require_deprecated = __commonJS({
722
- "node_modules/.pnpm/spdx-license-ids@3.0.23/node_modules/spdx-license-ids/deprecated.json"(exports2, module2) {
723
- module2.exports = [
724
- "AGPL-1.0",
725
- "AGPL-3.0",
726
- "BSD-2-Clause-FreeBSD",
727
- "BSD-2-Clause-NetBSD",
728
- "GFDL-1.1",
729
- "GFDL-1.2",
730
- "GFDL-1.3",
731
- "GPL-1.0",
732
- "GPL-2.0",
733
- "GPL-2.0-with-GCC-exception",
734
- "GPL-2.0-with-autoconf-exception",
735
- "GPL-2.0-with-bison-exception",
736
- "GPL-2.0-with-classpath-exception",
737
- "GPL-2.0-with-font-exception",
738
- "GPL-3.0",
739
- "GPL-3.0-with-GCC-exception",
740
- "GPL-3.0-with-autoconf-exception",
741
- "LGPL-2.0",
742
- "LGPL-2.1",
743
- "LGPL-3.0",
744
- "Net-SNMP",
745
- "Nunit",
746
- "StandardML-NJ",
747
- "bzip2-1.0.5",
748
- "eCos-2.0",
749
- "wxWindows"
750
- ];
751
- }
752
- });
19
+ //#endregion
753
20
 
754
- // node_modules/.pnpm/spdx-exceptions@2.5.0/node_modules/spdx-exceptions/index.json
755
- var require_spdx_exceptions = __commonJS({
756
- "node_modules/.pnpm/spdx-exceptions@2.5.0/node_modules/spdx-exceptions/index.json"(exports2, module2) {
757
- module2.exports = [
758
- "389-exception",
759
- "Asterisk-exception",
760
- "Autoconf-exception-2.0",
761
- "Autoconf-exception-3.0",
762
- "Autoconf-exception-generic",
763
- "Autoconf-exception-generic-3.0",
764
- "Autoconf-exception-macro",
765
- "Bison-exception-1.24",
766
- "Bison-exception-2.2",
767
- "Bootloader-exception",
768
- "Classpath-exception-2.0",
769
- "CLISP-exception-2.0",
770
- "cryptsetup-OpenSSL-exception",
771
- "DigiRule-FOSS-exception",
772
- "eCos-exception-2.0",
773
- "Fawkes-Runtime-exception",
774
- "FLTK-exception",
775
- "fmt-exception",
776
- "Font-exception-2.0",
777
- "freertos-exception-2.0",
778
- "GCC-exception-2.0",
779
- "GCC-exception-2.0-note",
780
- "GCC-exception-3.1",
781
- "Gmsh-exception",
782
- "GNAT-exception",
783
- "GNOME-examples-exception",
784
- "GNU-compiler-exception",
785
- "gnu-javamail-exception",
786
- "GPL-3.0-interface-exception",
787
- "GPL-3.0-linking-exception",
788
- "GPL-3.0-linking-source-exception",
789
- "GPL-CC-1.0",
790
- "GStreamer-exception-2005",
791
- "GStreamer-exception-2008",
792
- "i2p-gpl-java-exception",
793
- "KiCad-libraries-exception",
794
- "LGPL-3.0-linking-exception",
795
- "libpri-OpenH323-exception",
796
- "Libtool-exception",
797
- "Linux-syscall-note",
798
- "LLGPL",
799
- "LLVM-exception",
800
- "LZMA-exception",
801
- "mif-exception",
802
- "OCaml-LGPL-linking-exception",
803
- "OCCT-exception-1.0",
804
- "OpenJDK-assembly-exception-1.0",
805
- "openvpn-openssl-exception",
806
- "PS-or-PDF-font-exception-20170817",
807
- "QPL-1.0-INRIA-2004-exception",
808
- "Qt-GPL-exception-1.0",
809
- "Qt-LGPL-exception-1.1",
810
- "Qwt-exception-1.0",
811
- "SANE-exception",
812
- "SHL-2.0",
813
- "SHL-2.1",
814
- "stunnel-exception",
815
- "SWI-exception",
816
- "Swift-exception",
817
- "Texinfo-exception",
818
- "u-boot-exception-2.0",
819
- "UBDL-exception",
820
- "Universal-FOSS-exception-1.0",
821
- "vsftpd-openssl-exception",
822
- "WxWindows-exception-3.1",
823
- "x11vnc-openssl-exception"
824
- ];
825
- }
826
- });
21
+ //#region node_modules/.pnpm/spdx-license-ids@3.0.23/node_modules/spdx-license-ids/index.json
22
+ var require_spdx_license_ids = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23
+ module.exports = [
24
+ "0BSD",
25
+ "3D-Slicer-1.0",
26
+ "AAL",
27
+ "ADSL",
28
+ "AFL-1.1",
29
+ "AFL-1.2",
30
+ "AFL-2.0",
31
+ "AFL-2.1",
32
+ "AFL-3.0",
33
+ "AGPL-1.0-only",
34
+ "AGPL-1.0-or-later",
35
+ "AGPL-3.0-only",
36
+ "AGPL-3.0-or-later",
37
+ "ALGLIB-Documentation",
38
+ "AMD-newlib",
39
+ "AMDPLPA",
40
+ "AML",
41
+ "AML-glslang",
42
+ "AMPAS",
43
+ "ANTLR-PD",
44
+ "ANTLR-PD-fallback",
45
+ "APAFML",
46
+ "APL-1.0",
47
+ "APSL-1.0",
48
+ "APSL-1.1",
49
+ "APSL-1.2",
50
+ "APSL-2.0",
51
+ "ASWF-Digital-Assets-1.0",
52
+ "ASWF-Digital-Assets-1.1",
53
+ "Abstyles",
54
+ "AdaCore-doc",
55
+ "Adobe-2006",
56
+ "Adobe-Display-PostScript",
57
+ "Adobe-Glyph",
58
+ "Adobe-Utopia",
59
+ "Advanced-Cryptics-Dictionary",
60
+ "Afmparse",
61
+ "Aladdin",
62
+ "Apache-1.0",
63
+ "Apache-1.1",
64
+ "Apache-2.0",
65
+ "App-s2p",
66
+ "Arphic-1999",
67
+ "Artistic-1.0",
68
+ "Artistic-1.0-Perl",
69
+ "Artistic-1.0-cl8",
70
+ "Artistic-2.0",
71
+ "Artistic-dist",
72
+ "Aspell-RU",
73
+ "BOLA-1.1",
74
+ "BSD-1-Clause",
75
+ "BSD-2-Clause",
76
+ "BSD-2-Clause-Darwin",
77
+ "BSD-2-Clause-Patent",
78
+ "BSD-2-Clause-Views",
79
+ "BSD-2-Clause-first-lines",
80
+ "BSD-2-Clause-pkgconf-disclaimer",
81
+ "BSD-3-Clause",
82
+ "BSD-3-Clause-Attribution",
83
+ "BSD-3-Clause-Clear",
84
+ "BSD-3-Clause-HP",
85
+ "BSD-3-Clause-LBNL",
86
+ "BSD-3-Clause-Modification",
87
+ "BSD-3-Clause-No-Military-License",
88
+ "BSD-3-Clause-No-Nuclear-License",
89
+ "BSD-3-Clause-No-Nuclear-License-2014",
90
+ "BSD-3-Clause-No-Nuclear-Warranty",
91
+ "BSD-3-Clause-Open-MPI",
92
+ "BSD-3-Clause-Sun",
93
+ "BSD-3-Clause-Tso",
94
+ "BSD-3-Clause-acpica",
95
+ "BSD-3-Clause-flex",
96
+ "BSD-4-Clause",
97
+ "BSD-4-Clause-Shortened",
98
+ "BSD-4-Clause-UC",
99
+ "BSD-4.3RENO",
100
+ "BSD-4.3TAHOE",
101
+ "BSD-Advertising-Acknowledgement",
102
+ "BSD-Attribution-HPND-disclaimer",
103
+ "BSD-Inferno-Nettverk",
104
+ "BSD-Mark-Modifications",
105
+ "BSD-Protection",
106
+ "BSD-Source-Code",
107
+ "BSD-Source-beginning-file",
108
+ "BSD-Systemics",
109
+ "BSD-Systemics-W3Works",
110
+ "BSL-1.0",
111
+ "BUSL-1.1",
112
+ "Baekmuk",
113
+ "Bahyph",
114
+ "Barr",
115
+ "Beerware",
116
+ "BitTorrent-1.0",
117
+ "BitTorrent-1.1",
118
+ "Bitstream-Charter",
119
+ "Bitstream-Vera",
120
+ "BlueOak-1.0.0",
121
+ "Boehm-GC",
122
+ "Boehm-GC-without-fee",
123
+ "Borceux",
124
+ "Brian-Gladman-2-Clause",
125
+ "Brian-Gladman-3-Clause",
126
+ "Buddy",
127
+ "C-UDA-1.0",
128
+ "CAL-1.0",
129
+ "CAL-1.0-Combined-Work-Exception",
130
+ "CAPEC-tou",
131
+ "CATOSL-1.1",
132
+ "CC-BY-1.0",
133
+ "CC-BY-2.0",
134
+ "CC-BY-2.5",
135
+ "CC-BY-2.5-AU",
136
+ "CC-BY-3.0",
137
+ "CC-BY-3.0-AT",
138
+ "CC-BY-3.0-AU",
139
+ "CC-BY-3.0-DE",
140
+ "CC-BY-3.0-IGO",
141
+ "CC-BY-3.0-NL",
142
+ "CC-BY-3.0-US",
143
+ "CC-BY-4.0",
144
+ "CC-BY-NC-1.0",
145
+ "CC-BY-NC-2.0",
146
+ "CC-BY-NC-2.5",
147
+ "CC-BY-NC-3.0",
148
+ "CC-BY-NC-3.0-DE",
149
+ "CC-BY-NC-4.0",
150
+ "CC-BY-NC-ND-1.0",
151
+ "CC-BY-NC-ND-2.0",
152
+ "CC-BY-NC-ND-2.5",
153
+ "CC-BY-NC-ND-3.0",
154
+ "CC-BY-NC-ND-3.0-DE",
155
+ "CC-BY-NC-ND-3.0-IGO",
156
+ "CC-BY-NC-ND-4.0",
157
+ "CC-BY-NC-SA-1.0",
158
+ "CC-BY-NC-SA-2.0",
159
+ "CC-BY-NC-SA-2.0-DE",
160
+ "CC-BY-NC-SA-2.0-FR",
161
+ "CC-BY-NC-SA-2.0-UK",
162
+ "CC-BY-NC-SA-2.5",
163
+ "CC-BY-NC-SA-3.0",
164
+ "CC-BY-NC-SA-3.0-DE",
165
+ "CC-BY-NC-SA-3.0-IGO",
166
+ "CC-BY-NC-SA-4.0",
167
+ "CC-BY-ND-1.0",
168
+ "CC-BY-ND-2.0",
169
+ "CC-BY-ND-2.5",
170
+ "CC-BY-ND-3.0",
171
+ "CC-BY-ND-3.0-DE",
172
+ "CC-BY-ND-4.0",
173
+ "CC-BY-SA-1.0",
174
+ "CC-BY-SA-2.0",
175
+ "CC-BY-SA-2.0-UK",
176
+ "CC-BY-SA-2.1-JP",
177
+ "CC-BY-SA-2.5",
178
+ "CC-BY-SA-3.0",
179
+ "CC-BY-SA-3.0-AT",
180
+ "CC-BY-SA-3.0-DE",
181
+ "CC-BY-SA-3.0-IGO",
182
+ "CC-BY-SA-4.0",
183
+ "CC-PDDC",
184
+ "CC-PDM-1.0",
185
+ "CC-SA-1.0",
186
+ "CC0-1.0",
187
+ "CDDL-1.0",
188
+ "CDDL-1.1",
189
+ "CDL-1.0",
190
+ "CDLA-Permissive-1.0",
191
+ "CDLA-Permissive-2.0",
192
+ "CDLA-Sharing-1.0",
193
+ "CECILL-1.0",
194
+ "CECILL-1.1",
195
+ "CECILL-2.0",
196
+ "CECILL-2.1",
197
+ "CECILL-B",
198
+ "CECILL-C",
199
+ "CERN-OHL-1.1",
200
+ "CERN-OHL-1.2",
201
+ "CERN-OHL-P-2.0",
202
+ "CERN-OHL-S-2.0",
203
+ "CERN-OHL-W-2.0",
204
+ "CFITSIO",
205
+ "CMU-Mach",
206
+ "CMU-Mach-nodoc",
207
+ "CNRI-Jython",
208
+ "CNRI-Python",
209
+ "CNRI-Python-GPL-Compatible",
210
+ "COIL-1.0",
211
+ "CPAL-1.0",
212
+ "CPL-1.0",
213
+ "CPOL-1.02",
214
+ "CUA-OPL-1.0",
215
+ "Caldera",
216
+ "Caldera-no-preamble",
217
+ "Catharon",
218
+ "ClArtistic",
219
+ "Clips",
220
+ "Community-Spec-1.0",
221
+ "Condor-1.1",
222
+ "Cornell-Lossless-JPEG",
223
+ "Cronyx",
224
+ "Crossword",
225
+ "CryptoSwift",
226
+ "CrystalStacker",
227
+ "Cube",
228
+ "D-FSL-1.0",
229
+ "DEC-3-Clause",
230
+ "DL-DE-BY-2.0",
231
+ "DL-DE-ZERO-2.0",
232
+ "DOC",
233
+ "DRL-1.0",
234
+ "DRL-1.1",
235
+ "DSDP",
236
+ "DocBook-DTD",
237
+ "DocBook-Schema",
238
+ "DocBook-Stylesheet",
239
+ "DocBook-XML",
240
+ "Dotseqn",
241
+ "ECL-1.0",
242
+ "ECL-2.0",
243
+ "EFL-1.0",
244
+ "EFL-2.0",
245
+ "EPICS",
246
+ "EPL-1.0",
247
+ "EPL-2.0",
248
+ "ESA-PL-permissive-2.4",
249
+ "ESA-PL-strong-copyleft-2.4",
250
+ "ESA-PL-weak-copyleft-2.4",
251
+ "EUDatagrid",
252
+ "EUPL-1.0",
253
+ "EUPL-1.1",
254
+ "EUPL-1.2",
255
+ "Elastic-2.0",
256
+ "Entessa",
257
+ "ErlPL-1.1",
258
+ "Eurosym",
259
+ "FBM",
260
+ "FDK-AAC",
261
+ "FSFAP",
262
+ "FSFAP-no-warranty-disclaimer",
263
+ "FSFUL",
264
+ "FSFULLR",
265
+ "FSFULLRSD",
266
+ "FSFULLRWD",
267
+ "FSL-1.1-ALv2",
268
+ "FSL-1.1-MIT",
269
+ "FTL",
270
+ "Fair",
271
+ "Ferguson-Twofish",
272
+ "Frameworx-1.0",
273
+ "FreeBSD-DOC",
274
+ "FreeImage",
275
+ "Furuseth",
276
+ "GCR-docs",
277
+ "GD",
278
+ "GFDL-1.1-invariants-only",
279
+ "GFDL-1.1-invariants-or-later",
280
+ "GFDL-1.1-no-invariants-only",
281
+ "GFDL-1.1-no-invariants-or-later",
282
+ "GFDL-1.1-only",
283
+ "GFDL-1.1-or-later",
284
+ "GFDL-1.2-invariants-only",
285
+ "GFDL-1.2-invariants-or-later",
286
+ "GFDL-1.2-no-invariants-only",
287
+ "GFDL-1.2-no-invariants-or-later",
288
+ "GFDL-1.2-only",
289
+ "GFDL-1.2-or-later",
290
+ "GFDL-1.3-invariants-only",
291
+ "GFDL-1.3-invariants-or-later",
292
+ "GFDL-1.3-no-invariants-only",
293
+ "GFDL-1.3-no-invariants-or-later",
294
+ "GFDL-1.3-only",
295
+ "GFDL-1.3-or-later",
296
+ "GL2PS",
297
+ "GLWTPL",
298
+ "GPL-1.0-only",
299
+ "GPL-1.0-or-later",
300
+ "GPL-2.0-only",
301
+ "GPL-2.0-or-later",
302
+ "GPL-3.0-only",
303
+ "GPL-3.0-or-later",
304
+ "Game-Programming-Gems",
305
+ "Giftware",
306
+ "Glide",
307
+ "Glulxe",
308
+ "Graphics-Gems",
309
+ "Gutmann",
310
+ "HDF5",
311
+ "HIDAPI",
312
+ "HP-1986",
313
+ "HP-1989",
314
+ "HPND",
315
+ "HPND-DEC",
316
+ "HPND-Fenneberg-Livingston",
317
+ "HPND-INRIA-IMAG",
318
+ "HPND-Intel",
319
+ "HPND-Kevlin-Henney",
320
+ "HPND-MIT-disclaimer",
321
+ "HPND-Markus-Kuhn",
322
+ "HPND-Netrek",
323
+ "HPND-Pbmplus",
324
+ "HPND-SMC",
325
+ "HPND-UC",
326
+ "HPND-UC-export-US",
327
+ "HPND-doc",
328
+ "HPND-doc-sell",
329
+ "HPND-export-US",
330
+ "HPND-export-US-acknowledgement",
331
+ "HPND-export-US-modify",
332
+ "HPND-export2-US",
333
+ "HPND-merchantability-variant",
334
+ "HPND-sell-MIT-disclaimer-xserver",
335
+ "HPND-sell-regexpr",
336
+ "HPND-sell-variant",
337
+ "HPND-sell-variant-MIT-disclaimer",
338
+ "HPND-sell-variant-MIT-disclaimer-rev",
339
+ "HPND-sell-variant-critical-systems",
340
+ "HTMLTIDY",
341
+ "HaskellReport",
342
+ "Hippocratic-2.1",
343
+ "IBM-pibs",
344
+ "ICU",
345
+ "IEC-Code-Components-EULA",
346
+ "IJG",
347
+ "IJG-short",
348
+ "IPA",
349
+ "IPL-1.0",
350
+ "ISC",
351
+ "ISC-Veillard",
352
+ "ISO-permission",
353
+ "ImageMagick",
354
+ "Imlib2",
355
+ "Info-ZIP",
356
+ "Inner-Net-2.0",
357
+ "InnoSetup",
358
+ "Intel",
359
+ "Intel-ACPI",
360
+ "Interbase-1.0",
361
+ "JPL-image",
362
+ "JPNIC",
363
+ "JSON",
364
+ "Jam",
365
+ "JasPer-2.0",
366
+ "Kastrup",
367
+ "Kazlib",
368
+ "Knuth-CTAN",
369
+ "LAL-1.2",
370
+ "LAL-1.3",
371
+ "LGPL-2.0-only",
372
+ "LGPL-2.0-or-later",
373
+ "LGPL-2.1-only",
374
+ "LGPL-2.1-or-later",
375
+ "LGPL-3.0-only",
376
+ "LGPL-3.0-or-later",
377
+ "LGPLLR",
378
+ "LOOP",
379
+ "LPD-document",
380
+ "LPL-1.0",
381
+ "LPL-1.02",
382
+ "LPPL-1.0",
383
+ "LPPL-1.1",
384
+ "LPPL-1.2",
385
+ "LPPL-1.3a",
386
+ "LPPL-1.3c",
387
+ "LZMA-SDK-9.11-to-9.20",
388
+ "LZMA-SDK-9.22",
389
+ "Latex2e",
390
+ "Latex2e-translated-notice",
391
+ "Leptonica",
392
+ "LiLiQ-P-1.1",
393
+ "LiLiQ-R-1.1",
394
+ "LiLiQ-Rplus-1.1",
395
+ "Libpng",
396
+ "Linux-OpenIB",
397
+ "Linux-man-pages-1-para",
398
+ "Linux-man-pages-copyleft",
399
+ "Linux-man-pages-copyleft-2-para",
400
+ "Linux-man-pages-copyleft-var",
401
+ "Lucida-Bitmap-Fonts",
402
+ "MIPS",
403
+ "MIT",
404
+ "MIT-0",
405
+ "MIT-CMU",
406
+ "MIT-Click",
407
+ "MIT-Festival",
408
+ "MIT-Khronos-old",
409
+ "MIT-Modern-Variant",
410
+ "MIT-STK",
411
+ "MIT-Wu",
412
+ "MIT-advertising",
413
+ "MIT-enna",
414
+ "MIT-feh",
415
+ "MIT-open-group",
416
+ "MIT-testregex",
417
+ "MITNFA",
418
+ "MMIXware",
419
+ "MMPL-1.0.1",
420
+ "MPEG-SSG",
421
+ "MPL-1.0",
422
+ "MPL-1.1",
423
+ "MPL-2.0",
424
+ "MPL-2.0-no-copyleft-exception",
425
+ "MS-LPL",
426
+ "MS-PL",
427
+ "MS-RL",
428
+ "MTLL",
429
+ "Mackerras-3-Clause",
430
+ "Mackerras-3-Clause-acknowledgment",
431
+ "MakeIndex",
432
+ "Martin-Birgmeier",
433
+ "McPhee-slideshow",
434
+ "Minpack",
435
+ "MirOS",
436
+ "Motosoto",
437
+ "MulanPSL-1.0",
438
+ "MulanPSL-2.0",
439
+ "Multics",
440
+ "Mup",
441
+ "NAIST-2003",
442
+ "NASA-1.3",
443
+ "NBPL-1.0",
444
+ "NCBI-PD",
445
+ "NCGL-UK-2.0",
446
+ "NCL",
447
+ "NCSA",
448
+ "NGPL",
449
+ "NICTA-1.0",
450
+ "NIST-PD",
451
+ "NIST-PD-TNT",
452
+ "NIST-PD-fallback",
453
+ "NIST-Software",
454
+ "NLOD-1.0",
455
+ "NLOD-2.0",
456
+ "NLPL",
457
+ "NOSL",
458
+ "NPL-1.0",
459
+ "NPL-1.1",
460
+ "NPOSL-3.0",
461
+ "NRL",
462
+ "NTIA-PD",
463
+ "NTP",
464
+ "NTP-0",
465
+ "Naumen",
466
+ "NetCDF",
467
+ "Newsletr",
468
+ "Nokia",
469
+ "Noweb",
470
+ "O-UDA-1.0",
471
+ "OAR",
472
+ "OCCT-PL",
473
+ "OCLC-2.0",
474
+ "ODC-By-1.0",
475
+ "ODbL-1.0",
476
+ "OFFIS",
477
+ "OFL-1.0",
478
+ "OFL-1.0-RFN",
479
+ "OFL-1.0-no-RFN",
480
+ "OFL-1.1",
481
+ "OFL-1.1-RFN",
482
+ "OFL-1.1-no-RFN",
483
+ "OGC-1.0",
484
+ "OGDL-Taiwan-1.0",
485
+ "OGL-Canada-2.0",
486
+ "OGL-UK-1.0",
487
+ "OGL-UK-2.0",
488
+ "OGL-UK-3.0",
489
+ "OGTSL",
490
+ "OLDAP-1.1",
491
+ "OLDAP-1.2",
492
+ "OLDAP-1.3",
493
+ "OLDAP-1.4",
494
+ "OLDAP-2.0",
495
+ "OLDAP-2.0.1",
496
+ "OLDAP-2.1",
497
+ "OLDAP-2.2",
498
+ "OLDAP-2.2.1",
499
+ "OLDAP-2.2.2",
500
+ "OLDAP-2.3",
501
+ "OLDAP-2.4",
502
+ "OLDAP-2.5",
503
+ "OLDAP-2.6",
504
+ "OLDAP-2.7",
505
+ "OLDAP-2.8",
506
+ "OLFL-1.3",
507
+ "OML",
508
+ "OPL-1.0",
509
+ "OPL-UK-3.0",
510
+ "OPUBL-1.0",
511
+ "OSC-1.0",
512
+ "OSET-PL-2.1",
513
+ "OSL-1.0",
514
+ "OSL-1.1",
515
+ "OSL-2.0",
516
+ "OSL-2.1",
517
+ "OSL-3.0",
518
+ "OSSP",
519
+ "OpenMDW-1.0",
520
+ "OpenPBS-2.3",
521
+ "OpenSSL",
522
+ "OpenSSL-standalone",
523
+ "OpenVision",
524
+ "PADL",
525
+ "PDDL-1.0",
526
+ "PHP-3.0",
527
+ "PHP-3.01",
528
+ "PPL",
529
+ "PSF-2.0",
530
+ "ParaType-Free-Font-1.3",
531
+ "Parity-6.0.0",
532
+ "Parity-7.0.0",
533
+ "Pixar",
534
+ "Plexus",
535
+ "PolyForm-Noncommercial-1.0.0",
536
+ "PolyForm-Small-Business-1.0.0",
537
+ "PostgreSQL",
538
+ "Python-2.0",
539
+ "Python-2.0.1",
540
+ "QPL-1.0",
541
+ "QPL-1.0-INRIA-2004",
542
+ "Qhull",
543
+ "RHeCos-1.1",
544
+ "RPL-1.1",
545
+ "RPL-1.5",
546
+ "RPSL-1.0",
547
+ "RSA-MD",
548
+ "RSCPL",
549
+ "Rdisc",
550
+ "Ruby",
551
+ "Ruby-pty",
552
+ "SAX-PD",
553
+ "SAX-PD-2.0",
554
+ "SCEA",
555
+ "SGI-B-1.0",
556
+ "SGI-B-1.1",
557
+ "SGI-B-2.0",
558
+ "SGI-OpenGL",
559
+ "SGMLUG-PM",
560
+ "SGP4",
561
+ "SHL-0.5",
562
+ "SHL-0.51",
563
+ "SISSL",
564
+ "SISSL-1.2",
565
+ "SL",
566
+ "SMAIL-GPL",
567
+ "SMLNJ",
568
+ "SMPPL",
569
+ "SNIA",
570
+ "SOFA",
571
+ "SPL-1.0",
572
+ "SSH-OpenSSH",
573
+ "SSH-short",
574
+ "SSLeay-standalone",
575
+ "SSPL-1.0",
576
+ "SUL-1.0",
577
+ "SWL",
578
+ "Saxpath",
579
+ "SchemeReport",
580
+ "Sendmail",
581
+ "Sendmail-8.23",
582
+ "Sendmail-Open-Source-1.1",
583
+ "SimPL-2.0",
584
+ "Sleepycat",
585
+ "Soundex",
586
+ "Spencer-86",
587
+ "Spencer-94",
588
+ "Spencer-99",
589
+ "SugarCRM-1.1.3",
590
+ "Sun-PPP",
591
+ "Sun-PPP-2000",
592
+ "SunPro",
593
+ "Symlinks",
594
+ "TAPR-OHL-1.0",
595
+ "TCL",
596
+ "TCP-wrappers",
597
+ "TGPPL-1.0",
598
+ "TMate",
599
+ "TORQUE-1.1",
600
+ "TOSL",
601
+ "TPDL",
602
+ "TPL-1.0",
603
+ "TTWL",
604
+ "TTYP0",
605
+ "TU-Berlin-1.0",
606
+ "TU-Berlin-2.0",
607
+ "TekHVC",
608
+ "TermReadKey",
609
+ "ThirdEye",
610
+ "TrustedQSL",
611
+ "UCAR",
612
+ "UCL-1.0",
613
+ "UMich-Merit",
614
+ "UPL-1.0",
615
+ "URT-RLE",
616
+ "Ubuntu-font-1.0",
617
+ "UnRAR",
618
+ "Unicode-3.0",
619
+ "Unicode-DFS-2015",
620
+ "Unicode-DFS-2016",
621
+ "Unicode-TOU",
622
+ "UnixCrypt",
623
+ "Unlicense",
624
+ "Unlicense-libtelnet",
625
+ "Unlicense-libwhirlpool",
626
+ "VOSTROM",
627
+ "VSL-1.0",
628
+ "Vim",
629
+ "Vixie-Cron",
630
+ "W3C",
631
+ "W3C-19980720",
632
+ "W3C-20150513",
633
+ "WTFNMFPL",
634
+ "WTFPL",
635
+ "Watcom-1.0",
636
+ "Widget-Workshop",
637
+ "WordNet",
638
+ "Wsuipa",
639
+ "X11",
640
+ "X11-distribute-modifications-variant",
641
+ "X11-no-permit-persons",
642
+ "X11-swapped",
643
+ "XFree86-1.1",
644
+ "XSkat",
645
+ "Xdebug-1.03",
646
+ "Xerox",
647
+ "Xfig",
648
+ "Xnet",
649
+ "YPL-1.0",
650
+ "YPL-1.1",
651
+ "ZPL-1.1",
652
+ "ZPL-2.0",
653
+ "ZPL-2.1",
654
+ "Zed",
655
+ "Zeeff",
656
+ "Zend-2.0",
657
+ "Zimbra-1.3",
658
+ "Zimbra-1.4",
659
+ "Zlib",
660
+ "any-OSI",
661
+ "any-OSI-perl-modules",
662
+ "bcrypt-Solar-Designer",
663
+ "blessing",
664
+ "bzip2-1.0.6",
665
+ "check-cvs",
666
+ "checkmk",
667
+ "copyleft-next-0.3.0",
668
+ "copyleft-next-0.3.1",
669
+ "curl",
670
+ "cve-tou",
671
+ "diffmark",
672
+ "dtoa",
673
+ "dvipdfm",
674
+ "eGenix",
675
+ "etalab-2.0",
676
+ "fwlw",
677
+ "gSOAP-1.3b",
678
+ "generic-xts",
679
+ "gnuplot",
680
+ "gtkbook",
681
+ "hdparm",
682
+ "hyphen-bulgarian",
683
+ "iMatix",
684
+ "jove",
685
+ "libpng-1.6.35",
686
+ "libpng-2.0",
687
+ "libselinux-1.0",
688
+ "libtiff",
689
+ "libutil-David-Nugent",
690
+ "lsof",
691
+ "magaz",
692
+ "mailprio",
693
+ "man2html",
694
+ "metamail",
695
+ "mpi-permissive",
696
+ "mpich2",
697
+ "mplus",
698
+ "ngrep",
699
+ "pkgconf",
700
+ "pnmstitch",
701
+ "psfrag",
702
+ "psutils",
703
+ "python-ldap",
704
+ "radvd",
705
+ "snprintf",
706
+ "softSurfer",
707
+ "ssh-keyscan",
708
+ "swrule",
709
+ "threeparttable",
710
+ "ulem",
711
+ "w3m",
712
+ "wwl",
713
+ "xinetd",
714
+ "xkeyboard-config-Zinoviev",
715
+ "xlock",
716
+ "xpp",
717
+ "xzoom",
718
+ "zlib-acknowledgement"
719
+ ];
720
+ }));
827
721
 
828
- // node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/scan.js
829
- var require_scan = __commonJS({
830
- "node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/scan.js"(exports2, module2) {
831
- "use strict";
832
- var licenses = [].concat(require_spdx_license_ids()).concat(require_deprecated());
833
- var exceptions = require_spdx_exceptions();
834
- module2.exports = function(source) {
835
- var index = 0;
836
- function hasMore() {
837
- return index < source.length;
838
- }
839
- __name(hasMore, "hasMore");
840
- function read(value) {
841
- if (value instanceof RegExp) {
842
- var chars = source.slice(index);
843
- var match = chars.match(value);
844
- if (match) {
845
- index += match[0].length;
846
- return match[0];
847
- }
848
- } else {
849
- if (source.indexOf(value, index) === index) {
850
- index += value.length;
851
- return value;
852
- }
853
- }
854
- }
855
- __name(read, "read");
856
- function skipWhitespace() {
857
- read(/[ ]*/);
858
- }
859
- __name(skipWhitespace, "skipWhitespace");
860
- function operator() {
861
- var string;
862
- var possibilities = [/^WITH/i, /^AND/i, /^OR/i, "(", ")", ":", "+"];
863
- for (var i = 0; i < possibilities.length; i++) {
864
- string = read(possibilities[i]);
865
- if (string) {
866
- break;
867
- }
868
- }
869
- if (string === "+" && index > 1 && source[index - 2] === " ") {
870
- throw new _p_ErrorCtor("Space before `+`");
871
- }
872
- return string && {
873
- type: "OPERATOR",
874
- string: string.toUpperCase()
875
- };
876
- }
877
- __name(operator, "operator");
878
- function idstring() {
879
- return read(/[A-Za-z0-9-.]+/);
880
- }
881
- __name(idstring, "idstring");
882
- function expectIdstring() {
883
- var string = idstring();
884
- if (!string) {
885
- throw new _p_ErrorCtor("Expected idstring at offset " + index);
886
- }
887
- return string;
888
- }
889
- __name(expectIdstring, "expectIdstring");
890
- function documentRef() {
891
- if (read("DocumentRef-")) {
892
- var string = expectIdstring();
893
- return { type: "DOCUMENTREF", string };
894
- }
895
- }
896
- __name(documentRef, "documentRef");
897
- function licenseRef() {
898
- if (read("LicenseRef-")) {
899
- var string = expectIdstring();
900
- return { type: "LICENSEREF", string };
901
- }
902
- }
903
- __name(licenseRef, "licenseRef");
904
- function identifier() {
905
- var begin = index;
906
- var string = idstring();
907
- if (licenses.indexOf(string) !== -1) {
908
- return {
909
- type: "LICENSE",
910
- string
911
- };
912
- } else if (exceptions.indexOf(string) !== -1) {
913
- return {
914
- type: "EXCEPTION",
915
- string
916
- };
917
- }
918
- index = begin;
919
- }
920
- __name(identifier, "identifier");
921
- function parseToken() {
922
- return operator() || documentRef() || licenseRef() || identifier();
923
- }
924
- __name(parseToken, "parseToken");
925
- var tokens = [];
926
- while (hasMore()) {
927
- skipWhitespace();
928
- if (!hasMore()) {
929
- break;
930
- }
931
- var token = parseToken();
932
- if (!token) {
933
- throw new _p_ErrorCtor("Unexpected `" + source[index] + "` at offset " + index);
934
- }
935
- tokens.push(token);
936
- }
937
- return tokens;
938
- };
939
- }
940
- });
722
+ //#endregion
723
+ //#region node_modules/.pnpm/spdx-license-ids@3.0.23/node_modules/spdx-license-ids/deprecated.json
724
+ var require_deprecated = /* @__PURE__ */ __commonJSMin(((exports, module) => {
725
+ module.exports = [
726
+ "AGPL-1.0",
727
+ "AGPL-3.0",
728
+ "BSD-2-Clause-FreeBSD",
729
+ "BSD-2-Clause-NetBSD",
730
+ "GFDL-1.1",
731
+ "GFDL-1.2",
732
+ "GFDL-1.3",
733
+ "GPL-1.0",
734
+ "GPL-2.0",
735
+ "GPL-2.0-with-GCC-exception",
736
+ "GPL-2.0-with-autoconf-exception",
737
+ "GPL-2.0-with-bison-exception",
738
+ "GPL-2.0-with-classpath-exception",
739
+ "GPL-2.0-with-font-exception",
740
+ "GPL-3.0",
741
+ "GPL-3.0-with-GCC-exception",
742
+ "GPL-3.0-with-autoconf-exception",
743
+ "LGPL-2.0",
744
+ "LGPL-2.1",
745
+ "LGPL-3.0",
746
+ "Net-SNMP",
747
+ "Nunit",
748
+ "StandardML-NJ",
749
+ "bzip2-1.0.5",
750
+ "eCos-2.0",
751
+ "wxWindows"
752
+ ];
753
+ }));
941
754
 
942
- // node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/parse.js
943
- var require_parse = __commonJS({
944
- "node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/parse.js"(exports2, module2) {
945
- "use strict";
946
- module2.exports = function(tokens) {
947
- var index = 0;
948
- function hasMore() {
949
- return index < tokens.length;
950
- }
951
- __name(hasMore, "hasMore");
952
- function token() {
953
- return hasMore() ? tokens[index] : null;
954
- }
955
- __name(token, "token");
956
- function next() {
957
- if (!hasMore()) {
958
- throw new _p_ErrorCtor();
959
- }
960
- index++;
961
- }
962
- __name(next, "next");
963
- function parseOperator(operator) {
964
- var t = token();
965
- if (t && t.type === "OPERATOR" && operator === t.string) {
966
- next();
967
- return t.string;
968
- }
969
- }
970
- __name(parseOperator, "parseOperator");
971
- function parseWith() {
972
- if (parseOperator("WITH")) {
973
- var t = token();
974
- if (t && t.type === "EXCEPTION") {
975
- next();
976
- return t.string;
977
- }
978
- throw new _p_ErrorCtor("Expected exception after `WITH`");
979
- }
980
- }
981
- __name(parseWith, "parseWith");
982
- function parseLicenseRef() {
983
- var begin = index;
984
- var string = "";
985
- var t = token();
986
- if (t.type === "DOCUMENTREF") {
987
- next();
988
- string += "DocumentRef-" + t.string + ":";
989
- if (!parseOperator(":")) {
990
- throw new _p_ErrorCtor("Expected `:` after `DocumentRef-...`");
991
- }
992
- }
993
- t = token();
994
- if (t.type === "LICENSEREF") {
995
- next();
996
- string += "LicenseRef-" + t.string;
997
- return { license: string };
998
- }
999
- index = begin;
1000
- }
1001
- __name(parseLicenseRef, "parseLicenseRef");
1002
- function parseLicense() {
1003
- var t = token();
1004
- if (t && t.type === "LICENSE") {
1005
- next();
1006
- var node2 = { license: t.string };
1007
- if (parseOperator("+")) {
1008
- node2.plus = true;
1009
- }
1010
- var exception = parseWith();
1011
- if (exception) {
1012
- node2.exception = exception;
1013
- }
1014
- return node2;
1015
- }
1016
- }
1017
- __name(parseLicense, "parseLicense");
1018
- function parseParenthesizedExpression() {
1019
- var left = parseOperator("(");
1020
- if (!left) {
1021
- return;
1022
- }
1023
- var expr = parseExpression();
1024
- if (!parseOperator(")")) {
1025
- throw new _p_ErrorCtor("Expected `)`");
1026
- }
1027
- return expr;
1028
- }
1029
- __name(parseParenthesizedExpression, "parseParenthesizedExpression");
1030
- function parseAtom() {
1031
- return parseParenthesizedExpression() || parseLicenseRef() || parseLicense();
1032
- }
1033
- __name(parseAtom, "parseAtom");
1034
- function makeBinaryOpParser(operator, nextParser) {
1035
- return /* @__PURE__ */ __name(function parseBinaryOp() {
1036
- var left = nextParser();
1037
- if (!left) {
1038
- return;
1039
- }
1040
- if (!parseOperator(operator)) {
1041
- return left;
1042
- }
1043
- var right = parseBinaryOp();
1044
- if (!right) {
1045
- throw new _p_ErrorCtor("Expected expression");
1046
- }
1047
- return {
1048
- left,
1049
- conjunction: operator.toLowerCase(),
1050
- right
1051
- };
1052
- }, "parseBinaryOp");
1053
- }
1054
- __name(makeBinaryOpParser, "makeBinaryOpParser");
1055
- var parseAnd = makeBinaryOpParser("AND", parseAtom);
1056
- var parseExpression = makeBinaryOpParser("OR", parseAnd);
1057
- var node = parseExpression();
1058
- if (!node || hasMore()) {
1059
- throw new _p_ErrorCtor("Syntax error");
1060
- }
1061
- return node;
1062
- };
1063
- }
1064
- });
755
+ //#endregion
756
+ //#region node_modules/.pnpm/spdx-exceptions@2.5.0/node_modules/spdx-exceptions/index.json
757
+ var require_spdx_exceptions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
758
+ module.exports = [
759
+ "389-exception",
760
+ "Asterisk-exception",
761
+ "Autoconf-exception-2.0",
762
+ "Autoconf-exception-3.0",
763
+ "Autoconf-exception-generic",
764
+ "Autoconf-exception-generic-3.0",
765
+ "Autoconf-exception-macro",
766
+ "Bison-exception-1.24",
767
+ "Bison-exception-2.2",
768
+ "Bootloader-exception",
769
+ "Classpath-exception-2.0",
770
+ "CLISP-exception-2.0",
771
+ "cryptsetup-OpenSSL-exception",
772
+ "DigiRule-FOSS-exception",
773
+ "eCos-exception-2.0",
774
+ "Fawkes-Runtime-exception",
775
+ "FLTK-exception",
776
+ "fmt-exception",
777
+ "Font-exception-2.0",
778
+ "freertos-exception-2.0",
779
+ "GCC-exception-2.0",
780
+ "GCC-exception-2.0-note",
781
+ "GCC-exception-3.1",
782
+ "Gmsh-exception",
783
+ "GNAT-exception",
784
+ "GNOME-examples-exception",
785
+ "GNU-compiler-exception",
786
+ "gnu-javamail-exception",
787
+ "GPL-3.0-interface-exception",
788
+ "GPL-3.0-linking-exception",
789
+ "GPL-3.0-linking-source-exception",
790
+ "GPL-CC-1.0",
791
+ "GStreamer-exception-2005",
792
+ "GStreamer-exception-2008",
793
+ "i2p-gpl-java-exception",
794
+ "KiCad-libraries-exception",
795
+ "LGPL-3.0-linking-exception",
796
+ "libpri-OpenH323-exception",
797
+ "Libtool-exception",
798
+ "Linux-syscall-note",
799
+ "LLGPL",
800
+ "LLVM-exception",
801
+ "LZMA-exception",
802
+ "mif-exception",
803
+ "OCaml-LGPL-linking-exception",
804
+ "OCCT-exception-1.0",
805
+ "OpenJDK-assembly-exception-1.0",
806
+ "openvpn-openssl-exception",
807
+ "PS-or-PDF-font-exception-20170817",
808
+ "QPL-1.0-INRIA-2004-exception",
809
+ "Qt-GPL-exception-1.0",
810
+ "Qt-LGPL-exception-1.1",
811
+ "Qwt-exception-1.0",
812
+ "SANE-exception",
813
+ "SHL-2.0",
814
+ "SHL-2.1",
815
+ "stunnel-exception",
816
+ "SWI-exception",
817
+ "Swift-exception",
818
+ "Texinfo-exception",
819
+ "u-boot-exception-2.0",
820
+ "UBDL-exception",
821
+ "Universal-FOSS-exception-1.0",
822
+ "vsftpd-openssl-exception",
823
+ "WxWindows-exception-3.1",
824
+ "x11vnc-openssl-exception"
825
+ ];
826
+ }));
1065
827
 
1066
- // node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/index.js
1067
- var require_spdx_expression_parse = __commonJS({
1068
- "node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/index.js"(exports2, module2) {
1069
- "use strict";
1070
- var scan = require_scan();
1071
- var parse = require_parse();
1072
- module2.exports = function(source) {
1073
- return parse(scan(source));
1074
- };
1075
- }
1076
- });
828
+ //#endregion
829
+ //#region node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/scan.js
830
+ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
831
+ var licenses = [].concat(require_spdx_license_ids()).concat(require_deprecated());
832
+ var exceptions = require_spdx_exceptions();
833
+ module.exports = function(source) {
834
+ var index = 0;
835
+ function hasMore() {
836
+ return index < source.length;
837
+ }
838
+ function read(value) {
839
+ if (value instanceof RegExp) {
840
+ var match = source.slice(index).match(value);
841
+ if (match) {
842
+ index += match[0].length;
843
+ return match[0];
844
+ }
845
+ } else if (source.indexOf(value, index) === index) {
846
+ index += value.length;
847
+ return value;
848
+ }
849
+ }
850
+ function skipWhitespace() {
851
+ read(/[ ]*/);
852
+ }
853
+ function operator() {
854
+ var string;
855
+ var possibilities = [
856
+ /^WITH/i,
857
+ /^AND/i,
858
+ /^OR/i,
859
+ "(",
860
+ ")",
861
+ ":",
862
+ "+"
863
+ ];
864
+ for (var i = 0; i < possibilities.length; i++) {
865
+ string = read(possibilities[i]);
866
+ if (string) break;
867
+ }
868
+ if (string === "+" && index > 1 && source[index - 2] === " ") throw new _p_ErrorCtor("Space before `+`");
869
+ return string && {
870
+ type: "OPERATOR",
871
+ string: string.toUpperCase()
872
+ };
873
+ }
874
+ function idstring() {
875
+ return read(/[A-Za-z0-9-.]+/);
876
+ }
877
+ function expectIdstring() {
878
+ var string = idstring();
879
+ if (!string) throw new _p_ErrorCtor("Expected idstring at offset " + index);
880
+ return string;
881
+ }
882
+ function documentRef() {
883
+ if (read("DocumentRef-")) return {
884
+ type: "DOCUMENTREF",
885
+ string: expectIdstring()
886
+ };
887
+ }
888
+ function licenseRef() {
889
+ if (read("LicenseRef-")) return {
890
+ type: "LICENSEREF",
891
+ string: expectIdstring()
892
+ };
893
+ }
894
+ function identifier() {
895
+ var begin = index;
896
+ var string = idstring();
897
+ if (licenses.indexOf(string) !== -1) return {
898
+ type: "LICENSE",
899
+ string
900
+ };
901
+ else if (exceptions.indexOf(string) !== -1) return {
902
+ type: "EXCEPTION",
903
+ string
904
+ };
905
+ index = begin;
906
+ }
907
+ function parseToken() {
908
+ return operator() || documentRef() || licenseRef() || identifier();
909
+ }
910
+ var tokens = [];
911
+ while (hasMore()) {
912
+ skipWhitespace();
913
+ if (!hasMore()) break;
914
+ var token = parseToken();
915
+ if (!token) throw new _p_ErrorCtor("Unexpected `" + source[index] + "` at offset " + index);
916
+ tokens.push(token);
917
+ }
918
+ return tokens;
919
+ };
920
+ }));
1077
921
 
1078
- // node_modules/.pnpm/spdx-correct@3.2.0/node_modules/spdx-correct/index.js
1079
- var require_spdx_correct = __commonJS({
1080
- "node_modules/.pnpm/spdx-correct@3.2.0/node_modules/spdx-correct/index.js"(exports2, module2) {
1081
- var parse = require_spdx_expression_parse();
1082
- var spdxLicenseIds = require_spdx_license_ids();
1083
- function valid(string) {
1084
- try {
1085
- parse(string);
1086
- return true;
1087
- } catch (error) {
1088
- return false;
1089
- }
1090
- }
1091
- __name(valid, "valid");
1092
- function sortTranspositions(a, b) {
1093
- var length = b[0].length - a[0].length;
1094
- if (length !== 0) return length;
1095
- return a[0].toUpperCase().localeCompare(b[0].toUpperCase());
1096
- }
1097
- __name(sortTranspositions, "sortTranspositions");
1098
- var transpositions = [
1099
- ["APGL", "AGPL"],
1100
- ["Gpl", "GPL"],
1101
- ["GLP", "GPL"],
1102
- ["APL", "Apache"],
1103
- ["ISD", "ISC"],
1104
- ["GLP", "GPL"],
1105
- ["IST", "ISC"],
1106
- ["Claude", "Clause"],
1107
- [" or later", "+"],
1108
- [" International", ""],
1109
- ["GNU", "GPL"],
1110
- ["GUN", "GPL"],
1111
- ["+", ""],
1112
- ["GNU GPL", "GPL"],
1113
- ["GNU LGPL", "LGPL"],
1114
- ["GNU/GPL", "GPL"],
1115
- ["GNU GLP", "GPL"],
1116
- ["GNU LESSER GENERAL PUBLIC LICENSE", "LGPL"],
1117
- ["GNU Lesser General Public License", "LGPL"],
1118
- ["GNU LESSER GENERAL PUBLIC LICENSE", "LGPL-2.1"],
1119
- ["GNU Lesser General Public License", "LGPL-2.1"],
1120
- ["LESSER GENERAL PUBLIC LICENSE", "LGPL"],
1121
- ["Lesser General Public License", "LGPL"],
1122
- ["LESSER GENERAL PUBLIC LICENSE", "LGPL-2.1"],
1123
- ["Lesser General Public License", "LGPL-2.1"],
1124
- ["GNU General Public License", "GPL"],
1125
- ["Gnu public license", "GPL"],
1126
- ["GNU Public License", "GPL"],
1127
- ["GNU GENERAL PUBLIC LICENSE", "GPL"],
1128
- ["MTI", "MIT"],
1129
- ["Mozilla Public License", "MPL"],
1130
- ["Universal Permissive License", "UPL"],
1131
- ["WTH", "WTF"],
1132
- ["WTFGPL", "WTFPL"],
1133
- ["-License", ""]
1134
- ].sort(sortTranspositions);
1135
- var TRANSPOSED = 0;
1136
- var CORRECT = 1;
1137
- var transforms = [
1138
- // e.g. 'mit'
1139
- function(argument) {
1140
- return argument.toUpperCase();
1141
- },
1142
- // e.g. 'MIT '
1143
- function(argument) {
1144
- return argument.trim();
1145
- },
1146
- // e.g. 'M.I.T.'
1147
- function(argument) {
1148
- return argument.replace(/\./g, "");
1149
- },
1150
- // e.g. 'Apache- 2.0'
1151
- function(argument) {
1152
- return argument.replace(/\s+/g, "");
1153
- },
1154
- // e.g. 'CC BY 4.0''
1155
- function(argument) {
1156
- return argument.replace(/\s+/g, "-");
1157
- },
1158
- // e.g. 'LGPLv2.1'
1159
- function(argument) {
1160
- return argument.replace("v", "-");
1161
- },
1162
- // e.g. 'Apache 2.0'
1163
- function(argument) {
1164
- return argument.replace(/,?\s*(\d)/, "-$1");
1165
- },
1166
- // e.g. 'GPL 2'
1167
- function(argument) {
1168
- return argument.replace(/,?\s*(\d)/, "-$1.0");
1169
- },
1170
- // e.g. 'Apache Version 2.0'
1171
- function(argument) {
1172
- return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2");
1173
- },
1174
- // e.g. 'Apache Version 2'
1175
- function(argument) {
1176
- return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2.0");
1177
- },
1178
- // e.g. 'ZLIB'
1179
- function(argument) {
1180
- return argument[0].toUpperCase() + argument.slice(1);
1181
- },
1182
- // e.g. 'MPL/2.0'
1183
- function(argument) {
1184
- return argument.replace("/", "-");
1185
- },
1186
- // e.g. 'Apache 2'
1187
- function(argument) {
1188
- return argument.replace(/\s*V\s*(\d)/, "-$1").replace(/(\d)$/, "$1.0");
1189
- },
1190
- // e.g. 'GPL-2.0', 'GPL-3.0'
1191
- function(argument) {
1192
- if (argument.indexOf("3.0") !== -1) {
1193
- return argument + "-or-later";
1194
- } else {
1195
- return argument + "-only";
1196
- }
1197
- },
1198
- // e.g. 'GPL-2.0-'
1199
- function(argument) {
1200
- return argument + "only";
1201
- },
1202
- // e.g. 'GPL2'
1203
- function(argument) {
1204
- return argument.replace(/(\d)$/, "-$1.0");
1205
- },
1206
- // e.g. 'BSD 3'
1207
- function(argument) {
1208
- return argument.replace(/(-| )?(\d)$/, "-$2-Clause");
1209
- },
1210
- // e.g. 'BSD clause 3'
1211
- function(argument) {
1212
- return argument.replace(/(-| )clause(-| )(\d)/, "-$3-Clause");
1213
- },
1214
- // e.g. 'New BSD license'
1215
- function(argument) {
1216
- return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, "BSD-3-Clause");
1217
- },
1218
- // e.g. 'Simplified BSD license'
1219
- function(argument) {
1220
- return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, "BSD-2-Clause");
1221
- },
1222
- // e.g. 'Free BSD license'
1223
- function(argument) {
1224
- return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, "BSD-2-Clause-$1BSD");
1225
- },
1226
- // e.g. 'Clear BSD license'
1227
- function(argument) {
1228
- return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, "BSD-3-Clause-Clear");
1229
- },
1230
- // e.g. 'Old BSD License'
1231
- function(argument) {
1232
- return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, "BSD-4-Clause");
1233
- },
1234
- // e.g. 'BY-NC-4.0'
1235
- function(argument) {
1236
- return "CC-" + argument;
1237
- },
1238
- // e.g. 'BY-NC'
1239
- function(argument) {
1240
- return "CC-" + argument + "-4.0";
1241
- },
1242
- // e.g. 'Attribution-NonCommercial'
1243
- function(argument) {
1244
- return argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, "");
1245
- },
1246
- // e.g. 'Attribution-NonCommercial'
1247
- function(argument) {
1248
- return "CC-" + argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, "") + "-4.0";
1249
- }
1250
- ];
1251
- var licensesWithVersions = spdxLicenseIds.map(function(id) {
1252
- var match = /^(.*)-\d+\.\d+$/.exec(id);
1253
- return match ? [match[0], match[1]] : [id, null];
1254
- }).reduce(function(objectMap, item) {
1255
- var key = item[1];
1256
- objectMap[key] = objectMap[key] || [];
1257
- objectMap[key].push(item[0]);
1258
- return objectMap;
1259
- }, {});
1260
- var licensesWithOneVersion = _p_ObjectKeys(licensesWithVersions).map(/* @__PURE__ */ __name(function makeEntries(key) {
1261
- return [key, licensesWithVersions[key]];
1262
- }, "makeEntries")).filter(/* @__PURE__ */ __name(function identifySoleVersions(item) {
1263
- return (
1264
- // Licenses has just one valid version suffix.
1265
- item[1].length === 1 && item[0] !== null && // APL will be considered Apache, rather than APL-1.0
1266
- item[0] !== "APL"
1267
- );
1268
- }, "identifySoleVersions")).map(/* @__PURE__ */ __name(function createLastResorts(item) {
1269
- return [item[0], item[1][0]];
1270
- }, "createLastResorts"));
1271
- licensesWithVersions = void 0;
1272
- var lastResorts = [
1273
- ["UNLI", "Unlicense"],
1274
- ["WTF", "WTFPL"],
1275
- ["2 CLAUSE", "BSD-2-Clause"],
1276
- ["2-CLAUSE", "BSD-2-Clause"],
1277
- ["3 CLAUSE", "BSD-3-Clause"],
1278
- ["3-CLAUSE", "BSD-3-Clause"],
1279
- ["AFFERO", "AGPL-3.0-or-later"],
1280
- ["AGPL", "AGPL-3.0-or-later"],
1281
- ["APACHE", "Apache-2.0"],
1282
- ["ARTISTIC", "Artistic-2.0"],
1283
- ["Affero", "AGPL-3.0-or-later"],
1284
- ["BEER", "Beerware"],
1285
- ["BOOST", "BSL-1.0"],
1286
- ["BSD", "BSD-2-Clause"],
1287
- ["CDDL", "CDDL-1.1"],
1288
- ["ECLIPSE", "EPL-1.0"],
1289
- ["FUCK", "WTFPL"],
1290
- ["GNU", "GPL-3.0-or-later"],
1291
- ["LGPL", "LGPL-3.0-or-later"],
1292
- ["GPLV1", "GPL-1.0-only"],
1293
- ["GPL-1", "GPL-1.0-only"],
1294
- ["GPLV2", "GPL-2.0-only"],
1295
- ["GPL-2", "GPL-2.0-only"],
1296
- ["GPL", "GPL-3.0-or-later"],
1297
- ["MIT +NO-FALSE-ATTRIBS", "MITNFA"],
1298
- ["MIT", "MIT"],
1299
- ["MPL", "MPL-2.0"],
1300
- ["X11", "X11"],
1301
- ["ZLIB", "Zlib"]
1302
- ].concat(licensesWithOneVersion).sort(sortTranspositions);
1303
- var SUBSTRING = 0;
1304
- var IDENTIFIER = 1;
1305
- var validTransformation = /* @__PURE__ */ __name(function(identifier) {
1306
- for (var i = 0; i < transforms.length; i++) {
1307
- var transformed = transforms[i](identifier).trim();
1308
- if (transformed !== identifier && valid(transformed)) {
1309
- return transformed;
1310
- }
1311
- }
1312
- return null;
1313
- }, "validTransformation");
1314
- var validLastResort = /* @__PURE__ */ __name(function(identifier) {
1315
- var upperCased = identifier.toUpperCase();
1316
- for (var i = 0; i < lastResorts.length; i++) {
1317
- var lastResort = lastResorts[i];
1318
- if (upperCased.indexOf(lastResort[SUBSTRING]) > -1) {
1319
- return lastResort[IDENTIFIER];
1320
- }
1321
- }
1322
- return null;
1323
- }, "validLastResort");
1324
- var anyCorrection = /* @__PURE__ */ __name(function(identifier, check) {
1325
- for (var i = 0; i < transpositions.length; i++) {
1326
- var transposition = transpositions[i];
1327
- var transposed = transposition[TRANSPOSED];
1328
- if (identifier.indexOf(transposed) > -1) {
1329
- var corrected = identifier.replace(
1330
- transposed,
1331
- transposition[CORRECT]
1332
- );
1333
- var checked = check(corrected);
1334
- if (checked !== null) {
1335
- return checked;
1336
- }
1337
- }
1338
- }
1339
- return null;
1340
- }, "anyCorrection");
1341
- module2.exports = function(identifier, options) {
1342
- options = options || {};
1343
- var upgrade = options.upgrade === void 0 ? true : !!options.upgrade;
1344
- function postprocess(value) {
1345
- return upgrade ? upgradeGPLs(value) : value;
1346
- }
1347
- __name(postprocess, "postprocess");
1348
- var validArugment = typeof identifier === "string" && identifier.trim().length !== 0;
1349
- if (!validArugment) {
1350
- throw Error("Invalid argument. Expected non-empty string.");
1351
- }
1352
- identifier = identifier.trim();
1353
- if (valid(identifier)) {
1354
- return postprocess(identifier);
1355
- }
1356
- var noPlus = identifier.replace(/\+$/, "").trim();
1357
- if (valid(noPlus)) {
1358
- return postprocess(noPlus);
1359
- }
1360
- var transformed = validTransformation(identifier);
1361
- if (transformed !== null) {
1362
- return postprocess(transformed);
1363
- }
1364
- transformed = anyCorrection(identifier, function(argument) {
1365
- if (valid(argument)) {
1366
- return argument;
1367
- }
1368
- return validTransformation(argument);
1369
- });
1370
- if (transformed !== null) {
1371
- return postprocess(transformed);
1372
- }
1373
- transformed = validLastResort(identifier);
1374
- if (transformed !== null) {
1375
- return postprocess(transformed);
1376
- }
1377
- transformed = anyCorrection(identifier, validLastResort);
1378
- if (transformed !== null) {
1379
- return postprocess(transformed);
1380
- }
1381
- return null;
1382
- };
1383
- function upgradeGPLs(value) {
1384
- if ([
1385
- "GPL-1.0",
1386
- "LGPL-1.0",
1387
- "AGPL-1.0",
1388
- "GPL-2.0",
1389
- "LGPL-2.0",
1390
- "AGPL-2.0",
1391
- "LGPL-2.1"
1392
- ].indexOf(value) !== -1) {
1393
- return value + "-only";
1394
- } else if ([
1395
- "GPL-1.0+",
1396
- "GPL-2.0+",
1397
- "GPL-3.0+",
1398
- "LGPL-2.0+",
1399
- "LGPL-2.1+",
1400
- "LGPL-3.0+",
1401
- "AGPL-1.0+",
1402
- "AGPL-3.0+"
1403
- ].indexOf(value) !== -1) {
1404
- return value.replace(/\+$/, "-or-later");
1405
- } else if (["GPL-3.0", "LGPL-3.0", "AGPL-3.0"].indexOf(value) !== -1) {
1406
- return value + "-or-later";
1407
- } else {
1408
- return value;
1409
- }
1410
- }
1411
- __name(upgradeGPLs, "upgradeGPLs");
1412
- }
1413
- });
922
+ //#endregion
923
+ //#region node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/parse.js
924
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
925
+ module.exports = function(tokens) {
926
+ var index = 0;
927
+ function hasMore() {
928
+ return index < tokens.length;
929
+ }
930
+ function token() {
931
+ return hasMore() ? tokens[index] : null;
932
+ }
933
+ function next() {
934
+ if (!hasMore()) throw new _p_ErrorCtor();
935
+ index++;
936
+ }
937
+ function parseOperator(operator) {
938
+ var t = token();
939
+ if (t && t.type === "OPERATOR" && operator === t.string) {
940
+ next();
941
+ return t.string;
942
+ }
943
+ }
944
+ function parseWith() {
945
+ if (parseOperator("WITH")) {
946
+ var t = token();
947
+ if (t && t.type === "EXCEPTION") {
948
+ next();
949
+ return t.string;
950
+ }
951
+ throw new _p_ErrorCtor("Expected exception after `WITH`");
952
+ }
953
+ }
954
+ function parseLicenseRef() {
955
+ var begin = index;
956
+ var string = "";
957
+ var t = token();
958
+ if (t.type === "DOCUMENTREF") {
959
+ next();
960
+ string += "DocumentRef-" + t.string + ":";
961
+ if (!parseOperator(":")) throw new _p_ErrorCtor("Expected `:` after `DocumentRef-...`");
962
+ }
963
+ t = token();
964
+ if (t.type === "LICENSEREF") {
965
+ next();
966
+ string += "LicenseRef-" + t.string;
967
+ return { license: string };
968
+ }
969
+ index = begin;
970
+ }
971
+ function parseLicense() {
972
+ var t = token();
973
+ if (t && t.type === "LICENSE") {
974
+ next();
975
+ var node = { license: t.string };
976
+ if (parseOperator("+")) node.plus = true;
977
+ var exception = parseWith();
978
+ if (exception) node.exception = exception;
979
+ return node;
980
+ }
981
+ }
982
+ function parseParenthesizedExpression() {
983
+ if (!parseOperator("(")) return;
984
+ var expr = parseExpression();
985
+ if (!parseOperator(")")) throw new _p_ErrorCtor("Expected `)`");
986
+ return expr;
987
+ }
988
+ function parseAtom() {
989
+ return parseParenthesizedExpression() || parseLicenseRef() || parseLicense();
990
+ }
991
+ function makeBinaryOpParser(operator, nextParser) {
992
+ return function parseBinaryOp() {
993
+ var left = nextParser();
994
+ if (!left) return;
995
+ if (!parseOperator(operator)) return left;
996
+ var right = parseBinaryOp();
997
+ if (!right) throw new _p_ErrorCtor("Expected expression");
998
+ return {
999
+ left,
1000
+ conjunction: operator.toLowerCase(),
1001
+ right
1002
+ };
1003
+ };
1004
+ }
1005
+ var parseExpression = makeBinaryOpParser("OR", makeBinaryOpParser("AND", parseAtom));
1006
+ var node = parseExpression();
1007
+ if (!node || hasMore()) throw new _p_ErrorCtor("Syntax error");
1008
+ return node;
1009
+ };
1010
+ }));
1414
1011
 
1415
- // src/external/spdx-pack.js
1416
- var spdxCorrect = require_spdx_correct();
1417
- var spdxExpressionParse = require_spdx_expression_parse();
1012
+ //#endregion
1013
+ //#region node_modules/.pnpm/spdx-expression-parse@4.0.0/node_modules/spdx-expression-parse/index.js
1014
+ var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1015
+ var scan = require_scan();
1016
+ var parse = require_parse();
1017
+ module.exports = function(source) {
1018
+ return parse(scan(source));
1019
+ };
1020
+ }));
1021
+
1022
+ //#endregion
1023
+ //#region node_modules/.pnpm/spdx-correct@3.2.0/node_modules/spdx-correct/index.js
1024
+ var require_spdx_correct = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1025
+ var parse = require_spdx_expression_parse();
1026
+ var spdxLicenseIds = require_spdx_license_ids();
1027
+ function valid(string) {
1028
+ try {
1029
+ parse(string);
1030
+ return true;
1031
+ } catch (error) {
1032
+ return false;
1033
+ }
1034
+ }
1035
+ function sortTranspositions(a, b) {
1036
+ var length = b[0].length - a[0].length;
1037
+ if (length !== 0) return length;
1038
+ return a[0].toUpperCase().localeCompare(b[0].toUpperCase());
1039
+ }
1040
+ var transpositions = [
1041
+ ["APGL", "AGPL"],
1042
+ ["Gpl", "GPL"],
1043
+ ["GLP", "GPL"],
1044
+ ["APL", "Apache"],
1045
+ ["ISD", "ISC"],
1046
+ ["GLP", "GPL"],
1047
+ ["IST", "ISC"],
1048
+ ["Claude", "Clause"],
1049
+ [" or later", "+"],
1050
+ [" International", ""],
1051
+ ["GNU", "GPL"],
1052
+ ["GUN", "GPL"],
1053
+ ["+", ""],
1054
+ ["GNU GPL", "GPL"],
1055
+ ["GNU LGPL", "LGPL"],
1056
+ ["GNU/GPL", "GPL"],
1057
+ ["GNU GLP", "GPL"],
1058
+ ["GNU LESSER GENERAL PUBLIC LICENSE", "LGPL"],
1059
+ ["GNU Lesser General Public License", "LGPL"],
1060
+ ["GNU LESSER GENERAL PUBLIC LICENSE", "LGPL-2.1"],
1061
+ ["GNU Lesser General Public License", "LGPL-2.1"],
1062
+ ["LESSER GENERAL PUBLIC LICENSE", "LGPL"],
1063
+ ["Lesser General Public License", "LGPL"],
1064
+ ["LESSER GENERAL PUBLIC LICENSE", "LGPL-2.1"],
1065
+ ["Lesser General Public License", "LGPL-2.1"],
1066
+ ["GNU General Public License", "GPL"],
1067
+ ["Gnu public license", "GPL"],
1068
+ ["GNU Public License", "GPL"],
1069
+ ["GNU GENERAL PUBLIC LICENSE", "GPL"],
1070
+ ["MTI", "MIT"],
1071
+ ["Mozilla Public License", "MPL"],
1072
+ ["Universal Permissive License", "UPL"],
1073
+ ["WTH", "WTF"],
1074
+ ["WTFGPL", "WTFPL"],
1075
+ ["-License", ""]
1076
+ ].sort(sortTranspositions);
1077
+ var TRANSPOSED = 0;
1078
+ var CORRECT = 1;
1079
+ var transforms = [
1080
+ function(argument) {
1081
+ return argument.toUpperCase();
1082
+ },
1083
+ function(argument) {
1084
+ return argument.trim();
1085
+ },
1086
+ function(argument) {
1087
+ return argument.replace(/\./g, "");
1088
+ },
1089
+ function(argument) {
1090
+ return argument.replace(/\s+/g, "");
1091
+ },
1092
+ function(argument) {
1093
+ return argument.replace(/\s+/g, "-");
1094
+ },
1095
+ function(argument) {
1096
+ return argument.replace("v", "-");
1097
+ },
1098
+ function(argument) {
1099
+ return argument.replace(/,?\s*(\d)/, "-$1");
1100
+ },
1101
+ function(argument) {
1102
+ return argument.replace(/,?\s*(\d)/, "-$1.0");
1103
+ },
1104
+ function(argument) {
1105
+ return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2");
1106
+ },
1107
+ function(argument) {
1108
+ return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2.0");
1109
+ },
1110
+ function(argument) {
1111
+ return argument[0].toUpperCase() + argument.slice(1);
1112
+ },
1113
+ function(argument) {
1114
+ return argument.replace("/", "-");
1115
+ },
1116
+ function(argument) {
1117
+ return argument.replace(/\s*V\s*(\d)/, "-$1").replace(/(\d)$/, "$1.0");
1118
+ },
1119
+ function(argument) {
1120
+ if (argument.indexOf("3.0") !== -1) return argument + "-or-later";
1121
+ else return argument + "-only";
1122
+ },
1123
+ function(argument) {
1124
+ return argument + "only";
1125
+ },
1126
+ function(argument) {
1127
+ return argument.replace(/(\d)$/, "-$1.0");
1128
+ },
1129
+ function(argument) {
1130
+ return argument.replace(/(-| )?(\d)$/, "-$2-Clause");
1131
+ },
1132
+ function(argument) {
1133
+ return argument.replace(/(-| )clause(-| )(\d)/, "-$3-Clause");
1134
+ },
1135
+ function(argument) {
1136
+ return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, "BSD-3-Clause");
1137
+ },
1138
+ function(argument) {
1139
+ return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, "BSD-2-Clause");
1140
+ },
1141
+ function(argument) {
1142
+ return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, "BSD-2-Clause-$1BSD");
1143
+ },
1144
+ function(argument) {
1145
+ return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, "BSD-3-Clause-Clear");
1146
+ },
1147
+ function(argument) {
1148
+ return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, "BSD-4-Clause");
1149
+ },
1150
+ function(argument) {
1151
+ return "CC-" + argument;
1152
+ },
1153
+ function(argument) {
1154
+ return "CC-" + argument + "-4.0";
1155
+ },
1156
+ function(argument) {
1157
+ return argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, "");
1158
+ },
1159
+ function(argument) {
1160
+ return "CC-" + argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, "") + "-4.0";
1161
+ }
1162
+ ];
1163
+ var licensesWithVersions = spdxLicenseIds.map(function(id) {
1164
+ var match = /^(.*)-\d+\.\d+$/.exec(id);
1165
+ return match ? [match[0], match[1]] : [id, null];
1166
+ }).reduce(function(objectMap, item) {
1167
+ var key = item[1];
1168
+ objectMap[key] = objectMap[key] || [];
1169
+ objectMap[key].push(item[0]);
1170
+ return objectMap;
1171
+ }, {});
1172
+ var licensesWithOneVersion = _p_ObjectKeys(licensesWithVersions).map(function makeEntries(key) {
1173
+ return [key, licensesWithVersions[key]];
1174
+ }).filter(function identifySoleVersions(item) {
1175
+ return item[1].length === 1 && item[0] !== null && item[0] !== "APL";
1176
+ }).map(function createLastResorts(item) {
1177
+ return [item[0], item[1][0]];
1178
+ });
1179
+ licensesWithVersions = void 0;
1180
+ var lastResorts = [
1181
+ ["UNLI", "Unlicense"],
1182
+ ["WTF", "WTFPL"],
1183
+ ["2 CLAUSE", "BSD-2-Clause"],
1184
+ ["2-CLAUSE", "BSD-2-Clause"],
1185
+ ["3 CLAUSE", "BSD-3-Clause"],
1186
+ ["3-CLAUSE", "BSD-3-Clause"],
1187
+ ["AFFERO", "AGPL-3.0-or-later"],
1188
+ ["AGPL", "AGPL-3.0-or-later"],
1189
+ ["APACHE", "Apache-2.0"],
1190
+ ["ARTISTIC", "Artistic-2.0"],
1191
+ ["Affero", "AGPL-3.0-or-later"],
1192
+ ["BEER", "Beerware"],
1193
+ ["BOOST", "BSL-1.0"],
1194
+ ["BSD", "BSD-2-Clause"],
1195
+ ["CDDL", "CDDL-1.1"],
1196
+ ["ECLIPSE", "EPL-1.0"],
1197
+ ["FUCK", "WTFPL"],
1198
+ ["GNU", "GPL-3.0-or-later"],
1199
+ ["LGPL", "LGPL-3.0-or-later"],
1200
+ ["GPLV1", "GPL-1.0-only"],
1201
+ ["GPL-1", "GPL-1.0-only"],
1202
+ ["GPLV2", "GPL-2.0-only"],
1203
+ ["GPL-2", "GPL-2.0-only"],
1204
+ ["GPL", "GPL-3.0-or-later"],
1205
+ ["MIT +NO-FALSE-ATTRIBS", "MITNFA"],
1206
+ ["MIT", "MIT"],
1207
+ ["MPL", "MPL-2.0"],
1208
+ ["X11", "X11"],
1209
+ ["ZLIB", "Zlib"]
1210
+ ].concat(licensesWithOneVersion).sort(sortTranspositions);
1211
+ var SUBSTRING = 0;
1212
+ var IDENTIFIER = 1;
1213
+ var validTransformation = function(identifier) {
1214
+ for (var i = 0; i < transforms.length; i++) {
1215
+ var transformed = transforms[i](identifier).trim();
1216
+ if (transformed !== identifier && valid(transformed)) return transformed;
1217
+ }
1218
+ return null;
1219
+ };
1220
+ var validLastResort = function(identifier) {
1221
+ var upperCased = identifier.toUpperCase();
1222
+ for (var i = 0; i < lastResorts.length; i++) {
1223
+ var lastResort = lastResorts[i];
1224
+ if (upperCased.indexOf(lastResort[SUBSTRING]) > -1) return lastResort[IDENTIFIER];
1225
+ }
1226
+ return null;
1227
+ };
1228
+ var anyCorrection = function(identifier, check) {
1229
+ for (var i = 0; i < transpositions.length; i++) {
1230
+ var transposition = transpositions[i];
1231
+ var transposed = transposition[TRANSPOSED];
1232
+ if (identifier.indexOf(transposed) > -1) {
1233
+ var checked = check(identifier.replace(transposed, transposition[CORRECT]));
1234
+ if (checked !== null) return checked;
1235
+ }
1236
+ }
1237
+ return null;
1238
+ };
1239
+ module.exports = function(identifier, options) {
1240
+ options = options || {};
1241
+ var upgrade = options.upgrade === void 0 ? true : !!options.upgrade;
1242
+ function postprocess(value) {
1243
+ return upgrade ? upgradeGPLs(value) : value;
1244
+ }
1245
+ if (!(typeof identifier === "string" && identifier.trim().length !== 0)) throw Error("Invalid argument. Expected non-empty string.");
1246
+ identifier = identifier.trim();
1247
+ if (valid(identifier)) return postprocess(identifier);
1248
+ var noPlus = identifier.replace(/\+$/, "").trim();
1249
+ if (valid(noPlus)) return postprocess(noPlus);
1250
+ var transformed = validTransformation(identifier);
1251
+ if (transformed !== null) return postprocess(transformed);
1252
+ transformed = anyCorrection(identifier, function(argument) {
1253
+ if (valid(argument)) return argument;
1254
+ return validTransformation(argument);
1255
+ });
1256
+ if (transformed !== null) return postprocess(transformed);
1257
+ transformed = validLastResort(identifier);
1258
+ if (transformed !== null) return postprocess(transformed);
1259
+ transformed = anyCorrection(identifier, validLastResort);
1260
+ if (transformed !== null) return postprocess(transformed);
1261
+ return null;
1262
+ };
1263
+ function upgradeGPLs(value) {
1264
+ if ([
1265
+ "GPL-1.0",
1266
+ "LGPL-1.0",
1267
+ "AGPL-1.0",
1268
+ "GPL-2.0",
1269
+ "LGPL-2.0",
1270
+ "AGPL-2.0",
1271
+ "LGPL-2.1"
1272
+ ].indexOf(value) !== -1) return value + "-only";
1273
+ else if ([
1274
+ "GPL-1.0+",
1275
+ "GPL-2.0+",
1276
+ "GPL-3.0+",
1277
+ "LGPL-2.0+",
1278
+ "LGPL-2.1+",
1279
+ "LGPL-3.0+",
1280
+ "AGPL-1.0+",
1281
+ "AGPL-3.0+"
1282
+ ].indexOf(value) !== -1) return value.replace(/\+$/, "-or-later");
1283
+ else if ([
1284
+ "GPL-3.0",
1285
+ "LGPL-3.0",
1286
+ "AGPL-3.0"
1287
+ ].indexOf(value) !== -1) return value + "-or-later";
1288
+ else return value;
1289
+ }
1290
+ }));
1291
+
1292
+ //#endregion
1293
+ //#region src/external/spdx-pack.js
1294
+ const spdxCorrect = require_spdx_correct();
1295
+ const spdxExpressionParse = require_spdx_expression_parse();
1418
1296
  module.exports = {
1419
- spdxCorrect,
1420
- spdxExpressionParse
1297
+ spdxCorrect,
1298
+ spdxExpressionParse
1421
1299
  };
1300
+
1301
+ //#endregion