@flotte/cli 0.0.0-stage → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1127) hide show
  1. package/flotte.mjs +380 -0
  2. package/node-run.mjs +11 -0
  3. package/package.json +20 -4
  4. package/pnpm/LICENSE +22 -0
  5. package/pnpm/README.md +239 -0
  6. package/pnpm/bin/pnpm.cjs +28 -0
  7. package/pnpm/bin/pnpx.cjs +5 -0
  8. package/pnpm/dist/node-gyp-bin/node-gyp +6 -0
  9. package/pnpm/dist/node-gyp-bin/node-gyp.cmd +5 -0
  10. package/pnpm/dist/node_modules/.bin/glob +88 -0
  11. package/pnpm/dist/node_modules/.bin/node-gyp +88 -0
  12. package/pnpm/dist/node_modules/.bin/node-which +88 -0
  13. package/pnpm/dist/node_modules/.bin/nopt +88 -0
  14. package/pnpm/dist/node_modules/.bin/semver +88 -0
  15. package/pnpm/dist/node_modules/.modules.yaml +299 -0
  16. package/pnpm/dist/node_modules/.pnpm/lock.yaml +823 -0
  17. package/pnpm/dist/node_modules/.pnpm-workspace-state-v1.json +35 -0
  18. package/pnpm/dist/node_modules/@isaacs/cliui/LICENSE.txt +14 -0
  19. package/pnpm/dist/node_modules/@isaacs/cliui/build/index.cjs +317 -0
  20. package/pnpm/dist/node_modules/@isaacs/cliui/build/index.d.cts +43 -0
  21. package/pnpm/dist/node_modules/@isaacs/cliui/build/lib/index.js +302 -0
  22. package/pnpm/dist/node_modules/@isaacs/cliui/index.mjs +14 -0
  23. package/pnpm/dist/node_modules/@isaacs/cliui/package.json +86 -0
  24. package/pnpm/dist/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
  25. package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
  26. package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
  27. package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
  28. package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
  29. package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
  30. package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
  31. package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
  32. package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
  33. package/pnpm/dist/node_modules/@isaacs/fs-minipass/package.json +72 -0
  34. package/pnpm/dist/node_modules/@npmcli/agent/lib/agents.js +206 -0
  35. package/pnpm/dist/node_modules/@npmcli/agent/lib/dns.js +53 -0
  36. package/pnpm/dist/node_modules/@npmcli/agent/lib/errors.js +61 -0
  37. package/pnpm/dist/node_modules/@npmcli/agent/lib/index.js +56 -0
  38. package/pnpm/dist/node_modules/@npmcli/agent/lib/options.js +86 -0
  39. package/pnpm/dist/node_modules/@npmcli/agent/lib/proxy.js +88 -0
  40. package/pnpm/dist/node_modules/@npmcli/agent/package.json +60 -0
  41. package/pnpm/dist/node_modules/@npmcli/fs/lib/common/get-options.js +20 -0
  42. package/pnpm/dist/node_modules/@npmcli/fs/lib/common/node.js +9 -0
  43. package/pnpm/dist/node_modules/@npmcli/fs/lib/cp/LICENSE +15 -0
  44. package/pnpm/dist/node_modules/@npmcli/fs/lib/cp/errors.js +129 -0
  45. package/pnpm/dist/node_modules/@npmcli/fs/lib/cp/index.js +22 -0
  46. package/pnpm/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +428 -0
  47. package/pnpm/dist/node_modules/@npmcli/fs/lib/index.js +13 -0
  48. package/pnpm/dist/node_modules/@npmcli/fs/lib/move-file.js +78 -0
  49. package/pnpm/dist/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
  50. package/pnpm/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +39 -0
  51. package/pnpm/dist/node_modules/@npmcli/fs/package.json +54 -0
  52. package/pnpm/dist/node_modules/@pkgjs/parseargs/LICENSE +201 -0
  53. package/pnpm/dist/node_modules/@pkgjs/parseargs/index.js +396 -0
  54. package/pnpm/dist/node_modules/@pkgjs/parseargs/internal/errors.js +47 -0
  55. package/pnpm/dist/node_modules/@pkgjs/parseargs/internal/primordials.js +393 -0
  56. package/pnpm/dist/node_modules/@pkgjs/parseargs/internal/util.js +14 -0
  57. package/pnpm/dist/node_modules/@pkgjs/parseargs/internal/validators.js +89 -0
  58. package/pnpm/dist/node_modules/@pkgjs/parseargs/package.json +36 -0
  59. package/pnpm/dist/node_modules/@pkgjs/parseargs/utils.js +198 -0
  60. package/pnpm/dist/node_modules/abbrev/LICENSE +46 -0
  61. package/pnpm/dist/node_modules/abbrev/lib/index.js +53 -0
  62. package/pnpm/dist/node_modules/abbrev/package.json +45 -0
  63. package/pnpm/dist/node_modules/agent-base/LICENSE +22 -0
  64. package/pnpm/dist/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
  65. package/pnpm/dist/node_modules/agent-base/dist/helpers.js +66 -0
  66. package/pnpm/dist/node_modules/agent-base/dist/helpers.js.map +1 -0
  67. package/pnpm/dist/node_modules/agent-base/dist/index.d.ts.map +1 -0
  68. package/pnpm/dist/node_modules/agent-base/dist/index.js +178 -0
  69. package/pnpm/dist/node_modules/agent-base/dist/index.js.map +1 -0
  70. package/pnpm/dist/node_modules/agent-base/package.json +46 -0
  71. package/pnpm/dist/node_modules/ansi-regex/index.js +15 -0
  72. package/pnpm/dist/node_modules/ansi-regex/license +9 -0
  73. package/pnpm/dist/node_modules/ansi-regex/package.json +61 -0
  74. package/pnpm/dist/node_modules/ansi-styles/index.js +223 -0
  75. package/pnpm/dist/node_modules/ansi-styles/license +9 -0
  76. package/pnpm/dist/node_modules/ansi-styles/package.json +54 -0
  77. package/pnpm/dist/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  78. package/pnpm/dist/node_modules/balanced-match/index.js +62 -0
  79. package/pnpm/dist/node_modules/balanced-match/package.json +48 -0
  80. package/pnpm/dist/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  81. package/pnpm/dist/node_modules/brace-expansion/LICENSE +21 -0
  82. package/pnpm/dist/node_modules/brace-expansion/index.js +394 -0
  83. package/pnpm/dist/node_modules/brace-expansion/package.json +49 -0
  84. package/pnpm/dist/node_modules/cacache/lib/content/path.js +29 -0
  85. package/pnpm/dist/node_modules/cacache/lib/content/read.js +165 -0
  86. package/pnpm/dist/node_modules/cacache/lib/content/rm.js +18 -0
  87. package/pnpm/dist/node_modules/cacache/lib/content/write.js +206 -0
  88. package/pnpm/dist/node_modules/cacache/lib/entry-index.js +336 -0
  89. package/pnpm/dist/node_modules/cacache/lib/get.js +170 -0
  90. package/pnpm/dist/node_modules/cacache/lib/index.js +42 -0
  91. package/pnpm/dist/node_modules/cacache/lib/memoization.js +72 -0
  92. package/pnpm/dist/node_modules/cacache/lib/put.js +80 -0
  93. package/pnpm/dist/node_modules/cacache/lib/rm.js +31 -0
  94. package/pnpm/dist/node_modules/cacache/lib/util/glob.js +7 -0
  95. package/pnpm/dist/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
  96. package/pnpm/dist/node_modules/cacache/lib/util/tmp.js +26 -0
  97. package/pnpm/dist/node_modules/cacache/lib/verify.js +258 -0
  98. package/pnpm/dist/node_modules/cacache/package.json +83 -0
  99. package/pnpm/dist/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
  100. package/pnpm/dist/node_modules/chownr/dist/commonjs/index.js +93 -0
  101. package/pnpm/dist/node_modules/chownr/dist/commonjs/index.js.map +1 -0
  102. package/pnpm/dist/node_modules/chownr/dist/commonjs/package.json +3 -0
  103. package/pnpm/dist/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
  104. package/pnpm/dist/node_modules/chownr/dist/esm/index.js +85 -0
  105. package/pnpm/dist/node_modules/chownr/dist/esm/index.js.map +1 -0
  106. package/pnpm/dist/node_modules/chownr/dist/esm/package.json +3 -0
  107. package/pnpm/dist/node_modules/chownr/package.json +69 -0
  108. package/pnpm/dist/node_modules/color-convert/LICENSE +21 -0
  109. package/pnpm/dist/node_modules/color-convert/conversions.js +839 -0
  110. package/pnpm/dist/node_modules/color-convert/index.js +81 -0
  111. package/pnpm/dist/node_modules/color-convert/package.json +48 -0
  112. package/pnpm/dist/node_modules/color-convert/route.js +97 -0
  113. package/pnpm/dist/node_modules/color-name/LICENSE +8 -0
  114. package/pnpm/dist/node_modules/color-name/index.js +152 -0
  115. package/pnpm/dist/node_modules/color-name/package.json +28 -0
  116. package/pnpm/dist/node_modules/content-type/LICENSE +22 -0
  117. package/pnpm/dist/node_modules/content-type/dist/index.js +176 -0
  118. package/pnpm/dist/node_modules/content-type/dist/index.js.map +1 -0
  119. package/pnpm/dist/node_modules/content-type/package.json +52 -0
  120. package/pnpm/dist/node_modules/cross-spawn/LICENSE +21 -0
  121. package/pnpm/dist/node_modules/cross-spawn/index.js +39 -0
  122. package/pnpm/dist/node_modules/cross-spawn/lib/enoent.js +59 -0
  123. package/pnpm/dist/node_modules/cross-spawn/lib/parse.js +91 -0
  124. package/pnpm/dist/node_modules/cross-spawn/lib/util/escape.js +47 -0
  125. package/pnpm/dist/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
  126. package/pnpm/dist/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
  127. package/pnpm/dist/node_modules/cross-spawn/package.json +73 -0
  128. package/pnpm/dist/node_modules/debug/LICENSE +20 -0
  129. package/pnpm/dist/node_modules/debug/package.json +64 -0
  130. package/pnpm/dist/node_modules/debug/src/browser.js +272 -0
  131. package/pnpm/dist/node_modules/debug/src/common.js +292 -0
  132. package/pnpm/dist/node_modules/debug/src/index.js +10 -0
  133. package/pnpm/dist/node_modules/debug/src/node.js +263 -0
  134. package/pnpm/dist/node_modules/eastasianwidth/eastasianwidth.js +311 -0
  135. package/pnpm/dist/node_modules/eastasianwidth/package.json +18 -0
  136. package/pnpm/dist/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  137. package/pnpm/dist/node_modules/emoji-regex/RGI_Emoji.js +6 -0
  138. package/pnpm/dist/node_modules/emoji-regex/es2015/RGI_Emoji.js +6 -0
  139. package/pnpm/dist/node_modules/emoji-regex/es2015/index.js +6 -0
  140. package/pnpm/dist/node_modules/emoji-regex/es2015/text.js +6 -0
  141. package/pnpm/dist/node_modules/emoji-regex/index.js +6 -0
  142. package/pnpm/dist/node_modules/emoji-regex/package.json +52 -0
  143. package/pnpm/dist/node_modules/emoji-regex/text.js +6 -0
  144. package/pnpm/dist/node_modules/encoding/.prettierrc.js +8 -0
  145. package/pnpm/dist/node_modules/encoding/LICENSE +16 -0
  146. package/pnpm/dist/node_modules/encoding/lib/encoding.js +83 -0
  147. package/pnpm/dist/node_modules/encoding/package.json +18 -0
  148. package/pnpm/dist/node_modules/env-paths/index.js +74 -0
  149. package/pnpm/dist/node_modules/env-paths/license +9 -0
  150. package/pnpm/dist/node_modules/env-paths/package.json +45 -0
  151. package/pnpm/dist/node_modules/err-code/.eslintrc.json +7 -0
  152. package/pnpm/dist/node_modules/err-code/bower.json +30 -0
  153. package/pnpm/dist/node_modules/err-code/index.js +47 -0
  154. package/pnpm/dist/node_modules/err-code/index.umd.js +51 -0
  155. package/pnpm/dist/node_modules/err-code/package.json +34 -0
  156. package/pnpm/dist/node_modules/exponential-backoff/LICENSE +202 -0
  157. package/pnpm/dist/node_modules/exponential-backoff/dist/backoff.js +124 -0
  158. package/pnpm/dist/node_modules/exponential-backoff/dist/backoff.js.map +1 -0
  159. package/pnpm/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
  160. package/pnpm/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js.map +1 -0
  161. package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
  162. package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.base.js.map +1 -0
  163. package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
  164. package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js.map +1 -0
  165. package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
  166. package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js.map +1 -0
  167. package/pnpm/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
  168. package/pnpm/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js.map +1 -0
  169. package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
  170. package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js.map +1 -0
  171. package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
  172. package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js.map +1 -0
  173. package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
  174. package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js.map +1 -0
  175. package/pnpm/dist/node_modules/exponential-backoff/dist/options.js +31 -0
  176. package/pnpm/dist/node_modules/exponential-backoff/dist/options.js.map +1 -0
  177. package/pnpm/dist/node_modules/exponential-backoff/package.json +62 -0
  178. package/pnpm/dist/node_modules/fdir/LICENSE +7 -0
  179. package/pnpm/dist/node_modules/fdir/dist/index.cjs +588 -0
  180. package/pnpm/dist/node_modules/fdir/dist/index.d.cts +155 -0
  181. package/pnpm/dist/node_modules/fdir/dist/index.d.mts +155 -0
  182. package/pnpm/dist/node_modules/fdir/dist/index.mjs +570 -0
  183. package/pnpm/dist/node_modules/fdir/package.json +103 -0
  184. package/pnpm/dist/node_modules/foreground-child/LICENSE +15 -0
  185. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -0
  186. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/all-signals.js +58 -0
  187. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/all-signals.js.map +1 -0
  188. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -0
  189. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/index.js +123 -0
  190. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/index.js.map +1 -0
  191. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/package.json +3 -0
  192. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -0
  193. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js +38 -0
  194. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +1 -0
  195. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -0
  196. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/watchdog.js +50 -0
  197. package/pnpm/dist/node_modules/foreground-child/dist/commonjs/watchdog.js.map +1 -0
  198. package/pnpm/dist/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -0
  199. package/pnpm/dist/node_modules/foreground-child/dist/esm/all-signals.js +52 -0
  200. package/pnpm/dist/node_modules/foreground-child/dist/esm/all-signals.js.map +1 -0
  201. package/pnpm/dist/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -0
  202. package/pnpm/dist/node_modules/foreground-child/dist/esm/index.js +115 -0
  203. package/pnpm/dist/node_modules/foreground-child/dist/esm/index.js.map +1 -0
  204. package/pnpm/dist/node_modules/foreground-child/dist/esm/package.json +3 -0
  205. package/pnpm/dist/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -0
  206. package/pnpm/dist/node_modules/foreground-child/dist/esm/proxy-signals.js +34 -0
  207. package/pnpm/dist/node_modules/foreground-child/dist/esm/proxy-signals.js.map +1 -0
  208. package/pnpm/dist/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -0
  209. package/pnpm/dist/node_modules/foreground-child/dist/esm/watchdog.js +46 -0
  210. package/pnpm/dist/node_modules/foreground-child/dist/esm/watchdog.js.map +1 -0
  211. package/pnpm/dist/node_modules/foreground-child/package.json +106 -0
  212. package/pnpm/dist/node_modules/fs-minipass/LICENSE +15 -0
  213. package/pnpm/dist/node_modules/fs-minipass/lib/index.js +443 -0
  214. package/pnpm/dist/node_modules/fs-minipass/package.json +54 -0
  215. package/pnpm/dist/node_modules/glob/LICENSE +15 -0
  216. package/pnpm/dist/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
  217. package/pnpm/dist/node_modules/glob/dist/commonjs/glob.js +247 -0
  218. package/pnpm/dist/node_modules/glob/dist/commonjs/glob.js.map +1 -0
  219. package/pnpm/dist/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
  220. package/pnpm/dist/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  221. package/pnpm/dist/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
  222. package/pnpm/dist/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
  223. package/pnpm/dist/node_modules/glob/dist/commonjs/ignore.js +119 -0
  224. package/pnpm/dist/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
  225. package/pnpm/dist/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
  226. package/pnpm/dist/node_modules/glob/dist/commonjs/index.js +68 -0
  227. package/pnpm/dist/node_modules/glob/dist/commonjs/index.js.map +1 -0
  228. package/pnpm/dist/node_modules/glob/dist/commonjs/package.json +3 -0
  229. package/pnpm/dist/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
  230. package/pnpm/dist/node_modules/glob/dist/commonjs/pattern.js +219 -0
  231. package/pnpm/dist/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
  232. package/pnpm/dist/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
  233. package/pnpm/dist/node_modules/glob/dist/commonjs/processor.js +301 -0
  234. package/pnpm/dist/node_modules/glob/dist/commonjs/processor.js.map +1 -0
  235. package/pnpm/dist/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
  236. package/pnpm/dist/node_modules/glob/dist/commonjs/walker.js +387 -0
  237. package/pnpm/dist/node_modules/glob/dist/commonjs/walker.js.map +1 -0
  238. package/pnpm/dist/node_modules/glob/dist/esm/bin.d.mts +3 -0
  239. package/pnpm/dist/node_modules/glob/dist/esm/bin.d.mts.map +1 -0
  240. package/pnpm/dist/node_modules/glob/dist/esm/bin.mjs +346 -0
  241. package/pnpm/dist/node_modules/glob/dist/esm/bin.mjs.map +1 -0
  242. package/pnpm/dist/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
  243. package/pnpm/dist/node_modules/glob/dist/esm/glob.js +243 -0
  244. package/pnpm/dist/node_modules/glob/dist/esm/glob.js.map +1 -0
  245. package/pnpm/dist/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
  246. package/pnpm/dist/node_modules/glob/dist/esm/has-magic.js +23 -0
  247. package/pnpm/dist/node_modules/glob/dist/esm/has-magic.js.map +1 -0
  248. package/pnpm/dist/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
  249. package/pnpm/dist/node_modules/glob/dist/esm/ignore.js +115 -0
  250. package/pnpm/dist/node_modules/glob/dist/esm/ignore.js.map +1 -0
  251. package/pnpm/dist/node_modules/glob/dist/esm/index.d.ts.map +1 -0
  252. package/pnpm/dist/node_modules/glob/dist/esm/index.js +55 -0
  253. package/pnpm/dist/node_modules/glob/dist/esm/index.js.map +1 -0
  254. package/pnpm/dist/node_modules/glob/dist/esm/package.json +3 -0
  255. package/pnpm/dist/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
  256. package/pnpm/dist/node_modules/glob/dist/esm/pattern.js +215 -0
  257. package/pnpm/dist/node_modules/glob/dist/esm/pattern.js.map +1 -0
  258. package/pnpm/dist/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
  259. package/pnpm/dist/node_modules/glob/dist/esm/processor.js +294 -0
  260. package/pnpm/dist/node_modules/glob/dist/esm/processor.js.map +1 -0
  261. package/pnpm/dist/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
  262. package/pnpm/dist/node_modules/glob/dist/esm/walker.js +381 -0
  263. package/pnpm/dist/node_modules/glob/dist/esm/walker.js.map +1 -0
  264. package/pnpm/dist/node_modules/glob/package.json +99 -0
  265. package/pnpm/dist/node_modules/graceful-fs/LICENSE +15 -0
  266. package/pnpm/dist/node_modules/graceful-fs/clone.js +23 -0
  267. package/pnpm/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
  268. package/pnpm/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
  269. package/pnpm/dist/node_modules/graceful-fs/package.json +53 -0
  270. package/pnpm/dist/node_modules/graceful-fs/polyfills.js +355 -0
  271. package/pnpm/dist/node_modules/http-cache-semantics/LICENSE +9 -0
  272. package/pnpm/dist/node_modules/http-cache-semantics/index.js +928 -0
  273. package/pnpm/dist/node_modules/http-cache-semantics/package.json +22 -0
  274. package/pnpm/dist/node_modules/http-proxy-agent/LICENSE +22 -0
  275. package/pnpm/dist/node_modules/http-proxy-agent/dist/index.d.ts.map +1 -0
  276. package/pnpm/dist/node_modules/http-proxy-agent/dist/index.js +148 -0
  277. package/pnpm/dist/node_modules/http-proxy-agent/dist/index.js.map +1 -0
  278. package/pnpm/dist/node_modules/http-proxy-agent/package.json +47 -0
  279. package/pnpm/dist/node_modules/https-proxy-agent/LICENSE +22 -0
  280. package/pnpm/dist/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
  281. package/pnpm/dist/node_modules/https-proxy-agent/dist/index.js +180 -0
  282. package/pnpm/dist/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  283. package/pnpm/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
  284. package/pnpm/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
  285. package/pnpm/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  286. package/pnpm/dist/node_modules/https-proxy-agent/package.json +50 -0
  287. package/pnpm/dist/node_modules/iconv-lite/.github/dependabot.yml +11 -0
  288. package/pnpm/dist/node_modules/iconv-lite/.idea/codeStyles/Project.xml +47 -0
  289. package/pnpm/dist/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +5 -0
  290. package/pnpm/dist/node_modules/iconv-lite/.idea/iconv-lite.iml +12 -0
  291. package/pnpm/dist/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +6 -0
  292. package/pnpm/dist/node_modules/iconv-lite/.idea/modules.xml +8 -0
  293. package/pnpm/dist/node_modules/iconv-lite/.idea/vcs.xml +6 -0
  294. package/pnpm/dist/node_modules/iconv-lite/LICENSE +21 -0
  295. package/pnpm/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +597 -0
  296. package/pnpm/dist/node_modules/iconv-lite/encodings/dbcs-data.js +188 -0
  297. package/pnpm/dist/node_modules/iconv-lite/encodings/index.js +23 -0
  298. package/pnpm/dist/node_modules/iconv-lite/encodings/internal.js +198 -0
  299. package/pnpm/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
  300. package/pnpm/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  301. package/pnpm/dist/node_modules/iconv-lite/encodings/sbcs-data.js +179 -0
  302. package/pnpm/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  303. package/pnpm/dist/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  304. package/pnpm/dist/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  305. package/pnpm/dist/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  306. package/pnpm/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  307. package/pnpm/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  308. package/pnpm/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  309. package/pnpm/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  310. package/pnpm/dist/node_modules/iconv-lite/encodings/utf16.js +197 -0
  311. package/pnpm/dist/node_modules/iconv-lite/encodings/utf32.js +319 -0
  312. package/pnpm/dist/node_modules/iconv-lite/encodings/utf7.js +290 -0
  313. package/pnpm/dist/node_modules/iconv-lite/lib/bom-handling.js +52 -0
  314. package/pnpm/dist/node_modules/iconv-lite/lib/index.js +180 -0
  315. package/pnpm/dist/node_modules/iconv-lite/lib/streams.js +109 -0
  316. package/pnpm/dist/node_modules/iconv-lite/package.json +44 -0
  317. package/pnpm/dist/node_modules/imurmurhash/imurmurhash.js +138 -0
  318. package/pnpm/dist/node_modules/imurmurhash/imurmurhash.min.js +12 -0
  319. package/pnpm/dist/node_modules/imurmurhash/package.json +40 -0
  320. package/pnpm/dist/node_modules/ip-address/LICENSE +19 -0
  321. package/pnpm/dist/node_modules/ip-address/dist/address-error.js +12 -0
  322. package/pnpm/dist/node_modules/ip-address/dist/address-error.js.map +1 -0
  323. package/pnpm/dist/node_modules/ip-address/dist/common.js +154 -0
  324. package/pnpm/dist/node_modules/ip-address/dist/common.js.map +1 -0
  325. package/pnpm/dist/node_modules/ip-address/dist/ip-address.js +35 -0
  326. package/pnpm/dist/node_modules/ip-address/dist/ip-address.js.map +1 -0
  327. package/pnpm/dist/node_modules/ip-address/dist/ipv4.js +595 -0
  328. package/pnpm/dist/node_modules/ip-address/dist/ipv4.js.map +1 -0
  329. package/pnpm/dist/node_modules/ip-address/dist/ipv6.js +1458 -0
  330. package/pnpm/dist/node_modules/ip-address/dist/ipv6.js.map +1 -0
  331. package/pnpm/dist/node_modules/ip-address/dist/v4/constants.js +51 -0
  332. package/pnpm/dist/node_modules/ip-address/dist/v4/constants.js.map +1 -0
  333. package/pnpm/dist/node_modules/ip-address/dist/v6/constants.js +128 -0
  334. package/pnpm/dist/node_modules/ip-address/dist/v6/constants.js.map +1 -0
  335. package/pnpm/dist/node_modules/ip-address/dist/v6/helpers.js +54 -0
  336. package/pnpm/dist/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
  337. package/pnpm/dist/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
  338. package/pnpm/dist/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
  339. package/pnpm/dist/node_modules/ip-address/package.json +90 -0
  340. package/pnpm/dist/node_modules/is-fullwidth-code-point/index.js +50 -0
  341. package/pnpm/dist/node_modules/is-fullwidth-code-point/license +9 -0
  342. package/pnpm/dist/node_modules/is-fullwidth-code-point/package.json +42 -0
  343. package/pnpm/dist/node_modules/isexe/LICENSE +15 -0
  344. package/pnpm/dist/node_modules/isexe/index.js +57 -0
  345. package/pnpm/dist/node_modules/isexe/mode.js +41 -0
  346. package/pnpm/dist/node_modules/isexe/package.json +31 -0
  347. package/pnpm/dist/node_modules/isexe/windows.js +42 -0
  348. package/pnpm/dist/node_modules/jackspeak/dist/commonjs/index.d.ts.map +1 -0
  349. package/pnpm/dist/node_modules/jackspeak/dist/commonjs/index.js +1010 -0
  350. package/pnpm/dist/node_modules/jackspeak/dist/commonjs/index.js.map +1 -0
  351. package/pnpm/dist/node_modules/jackspeak/dist/commonjs/package.json +3 -0
  352. package/pnpm/dist/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +1 -0
  353. package/pnpm/dist/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +1 -0
  354. package/pnpm/dist/node_modules/jackspeak/dist/commonjs/parse-args.js +50 -0
  355. package/pnpm/dist/node_modules/jackspeak/dist/esm/index.d.ts.map +1 -0
  356. package/pnpm/dist/node_modules/jackspeak/dist/esm/index.js +1000 -0
  357. package/pnpm/dist/node_modules/jackspeak/dist/esm/index.js.map +1 -0
  358. package/pnpm/dist/node_modules/jackspeak/dist/esm/package.json +3 -0
  359. package/pnpm/dist/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +1 -0
  360. package/pnpm/dist/node_modules/jackspeak/dist/esm/parse-args.js +26 -0
  361. package/pnpm/dist/node_modules/jackspeak/dist/esm/parse-args.js.map +1 -0
  362. package/pnpm/dist/node_modules/jackspeak/package.json +95 -0
  363. package/pnpm/dist/node_modules/lru-cache/LICENSE +15 -0
  364. package/pnpm/dist/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  365. package/pnpm/dist/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
  366. package/pnpm/dist/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  367. package/pnpm/dist/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  368. package/pnpm/dist/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  369. package/pnpm/dist/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  370. package/pnpm/dist/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  371. package/pnpm/dist/node_modules/lru-cache/dist/esm/index.js +1542 -0
  372. package/pnpm/dist/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  373. package/pnpm/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  374. package/pnpm/dist/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  375. package/pnpm/dist/node_modules/lru-cache/dist/esm/package.json +3 -0
  376. package/pnpm/dist/node_modules/lru-cache/package.json +116 -0
  377. package/pnpm/dist/node_modules/make-fetch-happen/LICENSE +16 -0
  378. package/pnpm/dist/node_modules/make-fetch-happen/lib/cache/entry.js +471 -0
  379. package/pnpm/dist/node_modules/make-fetch-happen/lib/cache/errors.js +11 -0
  380. package/pnpm/dist/node_modules/make-fetch-happen/lib/cache/index.js +49 -0
  381. package/pnpm/dist/node_modules/make-fetch-happen/lib/cache/key.js +17 -0
  382. package/pnpm/dist/node_modules/make-fetch-happen/lib/cache/policy.js +161 -0
  383. package/pnpm/dist/node_modules/make-fetch-happen/lib/fetch.js +118 -0
  384. package/pnpm/dist/node_modules/make-fetch-happen/lib/index.js +41 -0
  385. package/pnpm/dist/node_modules/make-fetch-happen/lib/options.js +59 -0
  386. package/pnpm/dist/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
  387. package/pnpm/dist/node_modules/make-fetch-happen/lib/remote.js +132 -0
  388. package/pnpm/dist/node_modules/make-fetch-happen/package.json +74 -0
  389. package/pnpm/dist/node_modules/minimatch/LICENSE +15 -0
  390. package/pnpm/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  391. package/pnpm/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  392. package/pnpm/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  393. package/pnpm/dist/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
  394. package/pnpm/dist/node_modules/minimatch/dist/commonjs/ast.js +747 -0
  395. package/pnpm/dist/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
  396. package/pnpm/dist/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
  397. package/pnpm/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
  398. package/pnpm/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
  399. package/pnpm/dist/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  400. package/pnpm/dist/node_modules/minimatch/dist/commonjs/escape.js +22 -0
  401. package/pnpm/dist/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  402. package/pnpm/dist/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  403. package/pnpm/dist/node_modules/minimatch/dist/commonjs/index.js +1023 -0
  404. package/pnpm/dist/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  405. package/pnpm/dist/node_modules/minimatch/dist/commonjs/package.json +3 -0
  406. package/pnpm/dist/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  407. package/pnpm/dist/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
  408. package/pnpm/dist/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  409. package/pnpm/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  410. package/pnpm/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  411. package/pnpm/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  412. package/pnpm/dist/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
  413. package/pnpm/dist/node_modules/minimatch/dist/esm/ast.js +743 -0
  414. package/pnpm/dist/node_modules/minimatch/dist/esm/ast.js.map +1 -0
  415. package/pnpm/dist/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
  416. package/pnpm/dist/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
  417. package/pnpm/dist/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
  418. package/pnpm/dist/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  419. package/pnpm/dist/node_modules/minimatch/dist/esm/escape.js +18 -0
  420. package/pnpm/dist/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  421. package/pnpm/dist/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  422. package/pnpm/dist/node_modules/minimatch/dist/esm/index.js +1007 -0
  423. package/pnpm/dist/node_modules/minimatch/dist/esm/index.js.map +1 -0
  424. package/pnpm/dist/node_modules/minimatch/dist/esm/package.json +3 -0
  425. package/pnpm/dist/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  426. package/pnpm/dist/node_modules/minimatch/dist/esm/unescape.js +20 -0
  427. package/pnpm/dist/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  428. package/pnpm/dist/node_modules/minimatch/package.json +82 -0
  429. package/pnpm/dist/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  430. package/pnpm/dist/node_modules/minipass/dist/commonjs/index.js +1038 -0
  431. package/pnpm/dist/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  432. package/pnpm/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
  433. package/pnpm/dist/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  434. package/pnpm/dist/node_modules/minipass/dist/esm/index.js +1020 -0
  435. package/pnpm/dist/node_modules/minipass/dist/esm/index.js.map +1 -0
  436. package/pnpm/dist/node_modules/minipass/dist/esm/package.json +3 -0
  437. package/pnpm/dist/node_modules/minipass/package.json +77 -0
  438. package/pnpm/dist/node_modules/minipass-collect/LICENSE +15 -0
  439. package/pnpm/dist/node_modules/minipass-collect/index.js +71 -0
  440. package/pnpm/dist/node_modules/minipass-collect/package.json +30 -0
  441. package/pnpm/dist/node_modules/minipass-fetch/LICENSE +28 -0
  442. package/pnpm/dist/node_modules/minipass-fetch/lib/abort-error.js +17 -0
  443. package/pnpm/dist/node_modules/minipass-fetch/lib/blob.js +97 -0
  444. package/pnpm/dist/node_modules/minipass-fetch/lib/body.js +350 -0
  445. package/pnpm/dist/node_modules/minipass-fetch/lib/fetch-error.js +32 -0
  446. package/pnpm/dist/node_modules/minipass-fetch/lib/headers.js +267 -0
  447. package/pnpm/dist/node_modules/minipass-fetch/lib/index.js +376 -0
  448. package/pnpm/dist/node_modules/minipass-fetch/lib/request.js +282 -0
  449. package/pnpm/dist/node_modules/minipass-fetch/lib/response.js +90 -0
  450. package/pnpm/dist/node_modules/minipass-fetch/package.json +70 -0
  451. package/pnpm/dist/node_modules/minipass-flush/index.js +39 -0
  452. package/pnpm/dist/node_modules/minipass-flush/node_modules/minipass/LICENSE +15 -0
  453. package/pnpm/dist/node_modules/minipass-flush/node_modules/minipass/index.js +649 -0
  454. package/pnpm/dist/node_modules/minipass-flush/node_modules/minipass/package.json +56 -0
  455. package/pnpm/dist/node_modules/minipass-flush/package.json +42 -0
  456. package/pnpm/dist/node_modules/minipass-pipeline/LICENSE +15 -0
  457. package/pnpm/dist/node_modules/minipass-pipeline/index.js +128 -0
  458. package/pnpm/dist/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +15 -0
  459. package/pnpm/dist/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
  460. package/pnpm/dist/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -0
  461. package/pnpm/dist/node_modules/minipass-pipeline/package.json +29 -0
  462. package/pnpm/dist/node_modules/minipass-sized/LICENSE +15 -0
  463. package/pnpm/dist/node_modules/minipass-sized/index.js +67 -0
  464. package/pnpm/dist/node_modules/minipass-sized/node_modules/minipass/LICENSE +15 -0
  465. package/pnpm/dist/node_modules/minipass-sized/node_modules/minipass/index.js +649 -0
  466. package/pnpm/dist/node_modules/minipass-sized/node_modules/minipass/package.json +56 -0
  467. package/pnpm/dist/node_modules/minipass-sized/package.json +39 -0
  468. package/pnpm/dist/node_modules/minizlib/LICENSE +26 -0
  469. package/pnpm/dist/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
  470. package/pnpm/dist/node_modules/minizlib/dist/commonjs/constants.js +123 -0
  471. package/pnpm/dist/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
  472. package/pnpm/dist/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
  473. package/pnpm/dist/node_modules/minizlib/dist/commonjs/index.js +416 -0
  474. package/pnpm/dist/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
  475. package/pnpm/dist/node_modules/minizlib/dist/commonjs/package.json +3 -0
  476. package/pnpm/dist/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
  477. package/pnpm/dist/node_modules/minizlib/dist/esm/constants.js +117 -0
  478. package/pnpm/dist/node_modules/minizlib/dist/esm/constants.js.map +1 -0
  479. package/pnpm/dist/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
  480. package/pnpm/dist/node_modules/minizlib/dist/esm/index.js +363 -0
  481. package/pnpm/dist/node_modules/minizlib/dist/esm/index.js.map +1 -0
  482. package/pnpm/dist/node_modules/minizlib/dist/esm/package.json +3 -0
  483. package/pnpm/dist/node_modules/minizlib/package.json +80 -0
  484. package/pnpm/dist/node_modules/ms/index.js +162 -0
  485. package/pnpm/dist/node_modules/ms/package.json +38 -0
  486. package/pnpm/dist/node_modules/negotiator/LICENSE +24 -0
  487. package/pnpm/dist/node_modules/negotiator/index.js +83 -0
  488. package/pnpm/dist/node_modules/negotiator/lib/accept.js +54 -0
  489. package/pnpm/dist/node_modules/negotiator/lib/charset.js +145 -0
  490. package/pnpm/dist/node_modules/negotiator/lib/encoding.js +184 -0
  491. package/pnpm/dist/node_modules/negotiator/lib/language.js +158 -0
  492. package/pnpm/dist/node_modules/negotiator/lib/mediaType.js +176 -0
  493. package/pnpm/dist/node_modules/negotiator/package.json +49 -0
  494. package/pnpm/dist/node_modules/node-gyp/.release-please-manifest.json +3 -0
  495. package/pnpm/dist/node_modules/node-gyp/LICENSE +24 -0
  496. package/pnpm/dist/node_modules/node-gyp/addon.gypi +204 -0
  497. package/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js +138 -0
  498. package/pnpm/dist/node_modules/node-gyp/eslint.config.js +3 -0
  499. package/pnpm/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
  500. package/pnpm/dist/node_modules/node-gyp/gyp/LICENSE +28 -0
  501. package/pnpm/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
  502. package/pnpm/dist/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
  503. package/pnpm/dist/node_modules/node-gyp/gyp/gyp +8 -0
  504. package/pnpm/dist/node_modules/node-gyp/gyp/gyp.bat +5 -0
  505. package/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py +45 -0
  506. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
  507. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
  508. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1283 -0
  509. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -0
  510. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
  511. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
  512. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
  513. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +574 -0
  514. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +707 -0
  515. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
  516. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
  517. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
  518. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
  519. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
  520. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  521. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
  522. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
  523. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
  524. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
  525. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
  526. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
  527. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
  528. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
  529. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
  530. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -0
  531. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
  532. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2957 -0
  533. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +67 -0
  534. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
  535. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
  536. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
  537. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
  538. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
  539. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -0
  540. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
  541. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
  542. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +371 -0
  543. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
  544. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
  545. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
  546. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
  547. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
  548. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
  549. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
  550. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
  551. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
  552. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
  553. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
  554. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
  555. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
  556. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
  557. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
  558. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
  559. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +824 -0
  560. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  561. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
  562. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
  563. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +553 -0
  564. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
  565. package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
  566. package/pnpm/dist/node_modules/node-gyp/gyp/pyproject.toml +114 -0
  567. package/pnpm/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
  568. package/pnpm/dist/node_modules/node-gyp/gyp/test_gyp.py +260 -0
  569. package/pnpm/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
  570. package/pnpm/dist/node_modules/node-gyp/lib/build.js +230 -0
  571. package/pnpm/dist/node_modules/node-gyp/lib/clean.js +15 -0
  572. package/pnpm/dist/node_modules/node-gyp/lib/configure.js +328 -0
  573. package/pnpm/dist/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
  574. package/pnpm/dist/node_modules/node-gyp/lib/download.js +39 -0
  575. package/pnpm/dist/node_modules/node-gyp/lib/find-node-directory.js +63 -0
  576. package/pnpm/dist/node_modules/node-gyp/lib/find-python.js +310 -0
  577. package/pnpm/dist/node_modules/node-gyp/lib/find-visualstudio.js +600 -0
  578. package/pnpm/dist/node_modules/node-gyp/lib/install.js +411 -0
  579. package/pnpm/dist/node_modules/node-gyp/lib/list.js +26 -0
  580. package/pnpm/dist/node_modules/node-gyp/lib/log.js +168 -0
  581. package/pnpm/dist/node_modules/node-gyp/lib/node-gyp.js +199 -0
  582. package/pnpm/dist/node_modules/node-gyp/lib/process-release.js +146 -0
  583. package/pnpm/dist/node_modules/node-gyp/lib/rebuild.js +12 -0
  584. package/pnpm/dist/node_modules/node-gyp/lib/remove.js +43 -0
  585. package/pnpm/dist/node_modules/node-gyp/lib/util.js +81 -0
  586. package/pnpm/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
  587. package/pnpm/dist/node_modules/node-gyp/node_modules/.bin/node-which +88 -0
  588. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.d.ts.map +1 -0
  589. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.js +56 -0
  590. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.js.map +1 -0
  591. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.min.js +2 -0
  592. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.min.js.map +7 -0
  593. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/options.d.ts.map +1 -0
  594. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/options.js +3 -0
  595. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/options.js.map +1 -0
  596. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/package.json +3 -0
  597. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/posix.d.ts.map +1 -0
  598. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/posix.js +67 -0
  599. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/posix.js.map +1 -0
  600. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/win32.d.ts.map +1 -0
  601. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/win32.js +63 -0
  602. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/win32.js.map +1 -0
  603. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.d.ts.map +1 -0
  604. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.js +16 -0
  605. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.js.map +1 -0
  606. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.min.js +2 -0
  607. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.min.js.map +7 -0
  608. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/options.d.ts.map +1 -0
  609. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/options.js +2 -0
  610. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/options.js.map +1 -0
  611. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/package.json +3 -0
  612. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/posix.d.ts.map +1 -0
  613. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/posix.js +62 -0
  614. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/posix.js.map +1 -0
  615. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/win32.d.ts.map +1 -0
  616. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/win32.js +58 -0
  617. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/win32.js.map +1 -0
  618. package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/package.json +78 -0
  619. package/pnpm/dist/node_modules/node-gyp/node_modules/which/LICENSE +15 -0
  620. package/pnpm/dist/node_modules/node-gyp/node_modules/which/bin/which.js +52 -0
  621. package/pnpm/dist/node_modules/node-gyp/node_modules/which/lib/index.js +111 -0
  622. package/pnpm/dist/node_modules/node-gyp/node_modules/which/package.json +52 -0
  623. package/pnpm/dist/node_modules/node-gyp/package.json +52 -0
  624. package/pnpm/dist/node_modules/node-gyp/release-please-config.json +40 -0
  625. package/pnpm/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
  626. package/pnpm/dist/node_modules/nopt/LICENSE +15 -0
  627. package/pnpm/dist/node_modules/nopt/bin/nopt.js +29 -0
  628. package/pnpm/dist/node_modules/nopt/lib/debug.js +5 -0
  629. package/pnpm/dist/node_modules/nopt/lib/nopt-lib.js +514 -0
  630. package/pnpm/dist/node_modules/nopt/lib/nopt.js +34 -0
  631. package/pnpm/dist/node_modules/nopt/lib/type-defs.js +91 -0
  632. package/pnpm/dist/node_modules/nopt/package.json +52 -0
  633. package/pnpm/dist/node_modules/p-map/index.js +324 -0
  634. package/pnpm/dist/node_modules/p-map/license +9 -0
  635. package/pnpm/dist/node_modules/p-map/package.json +57 -0
  636. package/pnpm/dist/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -0
  637. package/pnpm/dist/node_modules/package-json-from-dist/dist/commonjs/index.js +134 -0
  638. package/pnpm/dist/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -0
  639. package/pnpm/dist/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
  640. package/pnpm/dist/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -0
  641. package/pnpm/dist/node_modules/package-json-from-dist/dist/esm/index.js +129 -0
  642. package/pnpm/dist/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -0
  643. package/pnpm/dist/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
  644. package/pnpm/dist/node_modules/package-json-from-dist/package.json +68 -0
  645. package/pnpm/dist/node_modules/path-key/index.js +16 -0
  646. package/pnpm/dist/node_modules/path-key/license +9 -0
  647. package/pnpm/dist/node_modules/path-key/package.json +39 -0
  648. package/pnpm/dist/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
  649. package/pnpm/dist/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
  650. package/pnpm/dist/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
  651. package/pnpm/dist/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  652. package/pnpm/dist/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
  653. package/pnpm/dist/node_modules/path-scurry/dist/esm/index.js +1979 -0
  654. package/pnpm/dist/node_modules/path-scurry/dist/esm/index.js.map +1 -0
  655. package/pnpm/dist/node_modules/path-scurry/dist/esm/package.json +3 -0
  656. package/pnpm/dist/node_modules/path-scurry/package.json +89 -0
  657. package/pnpm/dist/node_modules/picomatch/LICENSE +21 -0
  658. package/pnpm/dist/node_modules/picomatch/index.js +17 -0
  659. package/pnpm/dist/node_modules/picomatch/lib/constants.js +184 -0
  660. package/pnpm/dist/node_modules/picomatch/lib/parse.js +1425 -0
  661. package/pnpm/dist/node_modules/picomatch/lib/picomatch.js +361 -0
  662. package/pnpm/dist/node_modules/picomatch/lib/scan.js +403 -0
  663. package/pnpm/dist/node_modules/picomatch/lib/utils.js +72 -0
  664. package/pnpm/dist/node_modules/picomatch/package.json +83 -0
  665. package/pnpm/dist/node_modules/picomatch/posix.js +3 -0
  666. package/pnpm/dist/node_modules/proc-log/LICENSE +15 -0
  667. package/pnpm/dist/node_modules/proc-log/lib/index.js +153 -0
  668. package/pnpm/dist/node_modules/proc-log/package.json +46 -0
  669. package/pnpm/dist/node_modules/promise-retry/LICENSE +19 -0
  670. package/pnpm/dist/node_modules/promise-retry/index.js +52 -0
  671. package/pnpm/dist/node_modules/promise-retry/package.json +37 -0
  672. package/pnpm/dist/node_modules/retry/License +21 -0
  673. package/pnpm/dist/node_modules/retry/equation.gif +0 -0
  674. package/pnpm/dist/node_modules/retry/index.js +1 -0
  675. package/pnpm/dist/node_modules/retry/lib/retry.js +100 -0
  676. package/pnpm/dist/node_modules/retry/lib/retry_operation.js +158 -0
  677. package/pnpm/dist/node_modules/retry/package.json +32 -0
  678. package/pnpm/dist/node_modules/safer-buffer/LICENSE +21 -0
  679. package/pnpm/dist/node_modules/safer-buffer/dangerous.js +58 -0
  680. package/pnpm/dist/node_modules/safer-buffer/package.json +34 -0
  681. package/pnpm/dist/node_modules/safer-buffer/safer.js +77 -0
  682. package/pnpm/dist/node_modules/safer-buffer/tests.js +406 -0
  683. package/pnpm/dist/node_modules/semver/LICENSE +15 -0
  684. package/pnpm/dist/node_modules/semver/bin/semver.js +195 -0
  685. package/pnpm/dist/node_modules/semver/classes/comparator.js +143 -0
  686. package/pnpm/dist/node_modules/semver/classes/index.js +7 -0
  687. package/pnpm/dist/node_modules/semver/classes/range.js +577 -0
  688. package/pnpm/dist/node_modules/semver/classes/semver.js +350 -0
  689. package/pnpm/dist/node_modules/semver/functions/clean.js +8 -0
  690. package/pnpm/dist/node_modules/semver/functions/cmp.js +54 -0
  691. package/pnpm/dist/node_modules/semver/functions/coerce.js +62 -0
  692. package/pnpm/dist/node_modules/semver/functions/compare-build.js +9 -0
  693. package/pnpm/dist/node_modules/semver/functions/compare-loose.js +5 -0
  694. package/pnpm/dist/node_modules/semver/functions/compare.js +7 -0
  695. package/pnpm/dist/node_modules/semver/functions/diff.js +60 -0
  696. package/pnpm/dist/node_modules/semver/functions/eq.js +5 -0
  697. package/pnpm/dist/node_modules/semver/functions/gt.js +5 -0
  698. package/pnpm/dist/node_modules/semver/functions/gte.js +5 -0
  699. package/pnpm/dist/node_modules/semver/functions/inc.js +21 -0
  700. package/pnpm/dist/node_modules/semver/functions/lt.js +5 -0
  701. package/pnpm/dist/node_modules/semver/functions/lte.js +5 -0
  702. package/pnpm/dist/node_modules/semver/functions/major.js +5 -0
  703. package/pnpm/dist/node_modules/semver/functions/minor.js +5 -0
  704. package/pnpm/dist/node_modules/semver/functions/neq.js +5 -0
  705. package/pnpm/dist/node_modules/semver/functions/parse.js +18 -0
  706. package/pnpm/dist/node_modules/semver/functions/patch.js +5 -0
  707. package/pnpm/dist/node_modules/semver/functions/prerelease.js +8 -0
  708. package/pnpm/dist/node_modules/semver/functions/rcompare.js +5 -0
  709. package/pnpm/dist/node_modules/semver/functions/rsort.js +5 -0
  710. package/pnpm/dist/node_modules/semver/functions/satisfies.js +12 -0
  711. package/pnpm/dist/node_modules/semver/functions/sort.js +5 -0
  712. package/pnpm/dist/node_modules/semver/functions/truncate.js +48 -0
  713. package/pnpm/dist/node_modules/semver/functions/valid.js +8 -0
  714. package/pnpm/dist/node_modules/semver/index.js +93 -0
  715. package/pnpm/dist/node_modules/semver/internal/constants.js +37 -0
  716. package/pnpm/dist/node_modules/semver/internal/debug.js +11 -0
  717. package/pnpm/dist/node_modules/semver/internal/identifiers.js +29 -0
  718. package/pnpm/dist/node_modules/semver/internal/lrucache.js +42 -0
  719. package/pnpm/dist/node_modules/semver/internal/parse-options.js +17 -0
  720. package/pnpm/dist/node_modules/semver/internal/re.js +223 -0
  721. package/pnpm/dist/node_modules/semver/package.json +78 -0
  722. package/pnpm/dist/node_modules/semver/preload.js +4 -0
  723. package/pnpm/dist/node_modules/semver/range.bnf +17 -0
  724. package/pnpm/dist/node_modules/semver/ranges/gtr.js +6 -0
  725. package/pnpm/dist/node_modules/semver/ranges/intersects.js +9 -0
  726. package/pnpm/dist/node_modules/semver/ranges/ltr.js +6 -0
  727. package/pnpm/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
  728. package/pnpm/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
  729. package/pnpm/dist/node_modules/semver/ranges/min-version.js +63 -0
  730. package/pnpm/dist/node_modules/semver/ranges/outside.js +82 -0
  731. package/pnpm/dist/node_modules/semver/ranges/simplify.js +49 -0
  732. package/pnpm/dist/node_modules/semver/ranges/subset.js +249 -0
  733. package/pnpm/dist/node_modules/semver/ranges/to-comparators.js +10 -0
  734. package/pnpm/dist/node_modules/semver/ranges/valid.js +13 -0
  735. package/pnpm/dist/node_modules/shebang-command/index.js +19 -0
  736. package/pnpm/dist/node_modules/shebang-command/license +9 -0
  737. package/pnpm/dist/node_modules/shebang-command/package.json +34 -0
  738. package/pnpm/dist/node_modules/shebang-regex/index.js +2 -0
  739. package/pnpm/dist/node_modules/shebang-regex/license +9 -0
  740. package/pnpm/dist/node_modules/shebang-regex/package.json +35 -0
  741. package/pnpm/dist/node_modules/signal-exit/LICENSE.txt +16 -0
  742. package/pnpm/dist/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  743. package/pnpm/dist/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  744. package/pnpm/dist/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  745. package/pnpm/dist/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  746. package/pnpm/dist/node_modules/signal-exit/dist/cjs/index.js +279 -0
  747. package/pnpm/dist/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  748. package/pnpm/dist/node_modules/signal-exit/dist/cjs/package.json +3 -0
  749. package/pnpm/dist/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  750. package/pnpm/dist/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  751. package/pnpm/dist/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  752. package/pnpm/dist/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  753. package/pnpm/dist/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  754. package/pnpm/dist/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  755. package/pnpm/dist/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  756. package/pnpm/dist/node_modules/signal-exit/dist/mjs/index.js +275 -0
  757. package/pnpm/dist/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  758. package/pnpm/dist/node_modules/signal-exit/dist/mjs/package.json +3 -0
  759. package/pnpm/dist/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  760. package/pnpm/dist/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  761. package/pnpm/dist/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  762. package/pnpm/dist/node_modules/signal-exit/package.json +106 -0
  763. package/pnpm/dist/node_modules/smart-buffer/.prettierrc.yaml +5 -0
  764. package/pnpm/dist/node_modules/smart-buffer/LICENSE +20 -0
  765. package/pnpm/dist/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
  766. package/pnpm/dist/node_modules/smart-buffer/build/smartbuffer.js.map +1 -0
  767. package/pnpm/dist/node_modules/smart-buffer/build/utils.js +108 -0
  768. package/pnpm/dist/node_modules/smart-buffer/build/utils.js.map +1 -0
  769. package/pnpm/dist/node_modules/smart-buffer/package.json +79 -0
  770. package/pnpm/dist/node_modules/socks/.prettierrc.yaml +7 -0
  771. package/pnpm/dist/node_modules/socks/LICENSE +20 -0
  772. package/pnpm/dist/node_modules/socks/build/client/socksclient.js +793 -0
  773. package/pnpm/dist/node_modules/socks/build/client/socksclient.js.map +1 -0
  774. package/pnpm/dist/node_modules/socks/build/common/constants.js +108 -0
  775. package/pnpm/dist/node_modules/socks/build/common/constants.js.map +1 -0
  776. package/pnpm/dist/node_modules/socks/build/common/helpers.js +166 -0
  777. package/pnpm/dist/node_modules/socks/build/common/helpers.js.map +1 -0
  778. package/pnpm/dist/node_modules/socks/build/common/receivebuffer.js +43 -0
  779. package/pnpm/dist/node_modules/socks/build/common/receivebuffer.js.map +1 -0
  780. package/pnpm/dist/node_modules/socks/build/common/util.js +25 -0
  781. package/pnpm/dist/node_modules/socks/build/common/util.js.map +1 -0
  782. package/pnpm/dist/node_modules/socks/build/index.js +18 -0
  783. package/pnpm/dist/node_modules/socks/build/index.js.map +1 -0
  784. package/pnpm/dist/node_modules/socks/package.json +58 -0
  785. package/pnpm/dist/node_modules/socks-proxy-agent/LICENSE +22 -0
  786. package/pnpm/dist/node_modules/socks-proxy-agent/dist/index.d.ts.map +1 -0
  787. package/pnpm/dist/node_modules/socks-proxy-agent/dist/index.js +195 -0
  788. package/pnpm/dist/node_modules/socks-proxy-agent/dist/index.js.map +1 -0
  789. package/pnpm/dist/node_modules/socks-proxy-agent/package.json +142 -0
  790. package/pnpm/dist/node_modules/ssri/lib/index.js +580 -0
  791. package/pnpm/dist/node_modules/ssri/package.json +66 -0
  792. package/pnpm/dist/node_modules/string-width/index.js +54 -0
  793. package/pnpm/dist/node_modules/string-width/license +9 -0
  794. package/pnpm/dist/node_modules/string-width/package.json +59 -0
  795. package/pnpm/dist/node_modules/string-width-cjs/index.js +47 -0
  796. package/pnpm/dist/node_modules/string-width-cjs/license +9 -0
  797. package/pnpm/dist/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +10 -0
  798. package/pnpm/dist/node_modules/string-width-cjs/node_modules/ansi-regex/license +9 -0
  799. package/pnpm/dist/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +55 -0
  800. package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  801. package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
  802. package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
  803. package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +6 -0
  804. package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/package.json +50 -0
  805. package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +6 -0
  806. package/pnpm/dist/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +4 -0
  807. package/pnpm/dist/node_modules/string-width-cjs/node_modules/strip-ansi/license +9 -0
  808. package/pnpm/dist/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +54 -0
  809. package/pnpm/dist/node_modules/string-width-cjs/package.json +56 -0
  810. package/pnpm/dist/node_modules/strip-ansi/index.js +19 -0
  811. package/pnpm/dist/node_modules/strip-ansi/license +9 -0
  812. package/pnpm/dist/node_modules/strip-ansi/package.json +59 -0
  813. package/pnpm/dist/node_modules/strip-ansi-cjs/index.js +4 -0
  814. package/pnpm/dist/node_modules/strip-ansi-cjs/license +9 -0
  815. package/pnpm/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
  816. package/pnpm/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +9 -0
  817. package/pnpm/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
  818. package/pnpm/dist/node_modules/strip-ansi-cjs/package.json +54 -0
  819. package/pnpm/dist/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
  820. package/pnpm/dist/node_modules/tar/dist/commonjs/create.js +82 -0
  821. package/pnpm/dist/node_modules/tar/dist/commonjs/create.js.map +1 -0
  822. package/pnpm/dist/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
  823. package/pnpm/dist/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
  824. package/pnpm/dist/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
  825. package/pnpm/dist/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
  826. package/pnpm/dist/node_modules/tar/dist/commonjs/extract.js +88 -0
  827. package/pnpm/dist/node_modules/tar/dist/commonjs/extract.js.map +1 -0
  828. package/pnpm/dist/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
  829. package/pnpm/dist/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
  830. package/pnpm/dist/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
  831. package/pnpm/dist/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
  832. package/pnpm/dist/node_modules/tar/dist/commonjs/header.js +348 -0
  833. package/pnpm/dist/node_modules/tar/dist/commonjs/header.js.map +1 -0
  834. package/pnpm/dist/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
  835. package/pnpm/dist/node_modules/tar/dist/commonjs/index.js +64 -0
  836. package/pnpm/dist/node_modules/tar/dist/commonjs/index.js.map +1 -0
  837. package/pnpm/dist/node_modules/tar/dist/commonjs/index.min.js +4 -0
  838. package/pnpm/dist/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
  839. package/pnpm/dist/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
  840. package/pnpm/dist/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
  841. package/pnpm/dist/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
  842. package/pnpm/dist/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
  843. package/pnpm/dist/node_modules/tar/dist/commonjs/list.js +153 -0
  844. package/pnpm/dist/node_modules/tar/dist/commonjs/list.js.map +1 -0
  845. package/pnpm/dist/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
  846. package/pnpm/dist/node_modules/tar/dist/commonjs/make-command.js +52 -0
  847. package/pnpm/dist/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
  848. package/pnpm/dist/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
  849. package/pnpm/dist/node_modules/tar/dist/commonjs/mkdir.js +187 -0
  850. package/pnpm/dist/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
  851. package/pnpm/dist/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
  852. package/pnpm/dist/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
  853. package/pnpm/dist/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
  854. package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
  855. package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
  856. package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
  857. package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
  858. package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
  859. package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
  860. package/pnpm/dist/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
  861. package/pnpm/dist/node_modules/tar/dist/commonjs/options.js +66 -0
  862. package/pnpm/dist/node_modules/tar/dist/commonjs/options.js.map +1 -0
  863. package/pnpm/dist/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
  864. package/pnpm/dist/node_modules/tar/dist/commonjs/pack.js +544 -0
  865. package/pnpm/dist/node_modules/tar/dist/commonjs/pack.js.map +1 -0
  866. package/pnpm/dist/node_modules/tar/dist/commonjs/package.json +3 -0
  867. package/pnpm/dist/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
  868. package/pnpm/dist/node_modules/tar/dist/commonjs/parse.js +655 -0
  869. package/pnpm/dist/node_modules/tar/dist/commonjs/parse.js.map +1 -0
  870. package/pnpm/dist/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
  871. package/pnpm/dist/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
  872. package/pnpm/dist/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
  873. package/pnpm/dist/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
  874. package/pnpm/dist/node_modules/tar/dist/commonjs/pax.js +182 -0
  875. package/pnpm/dist/node_modules/tar/dist/commonjs/pax.js.map +1 -0
  876. package/pnpm/dist/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
  877. package/pnpm/dist/node_modules/tar/dist/commonjs/process-umask.js +7 -0
  878. package/pnpm/dist/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
  879. package/pnpm/dist/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
  880. package/pnpm/dist/node_modules/tar/dist/commonjs/read-entry.js +136 -0
  881. package/pnpm/dist/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
  882. package/pnpm/dist/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
  883. package/pnpm/dist/node_modules/tar/dist/commonjs/replace.js +227 -0
  884. package/pnpm/dist/node_modules/tar/dist/commonjs/replace.js.map +1 -0
  885. package/pnpm/dist/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
  886. package/pnpm/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
  887. package/pnpm/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
  888. package/pnpm/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
  889. package/pnpm/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
  890. package/pnpm/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
  891. package/pnpm/dist/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
  892. package/pnpm/dist/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
  893. package/pnpm/dist/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
  894. package/pnpm/dist/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
  895. package/pnpm/dist/node_modules/tar/dist/commonjs/types.js +70 -0
  896. package/pnpm/dist/node_modules/tar/dist/commonjs/types.js.map +1 -0
  897. package/pnpm/dist/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
  898. package/pnpm/dist/node_modules/tar/dist/commonjs/unpack.js +932 -0
  899. package/pnpm/dist/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
  900. package/pnpm/dist/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
  901. package/pnpm/dist/node_modules/tar/dist/commonjs/update.js +33 -0
  902. package/pnpm/dist/node_modules/tar/dist/commonjs/update.js.map +1 -0
  903. package/pnpm/dist/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
  904. package/pnpm/dist/node_modules/tar/dist/commonjs/warn-method.js +31 -0
  905. package/pnpm/dist/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
  906. package/pnpm/dist/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
  907. package/pnpm/dist/node_modules/tar/dist/commonjs/winchars.js +14 -0
  908. package/pnpm/dist/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
  909. package/pnpm/dist/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
  910. package/pnpm/dist/node_modules/tar/dist/commonjs/write-entry.js +698 -0
  911. package/pnpm/dist/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
  912. package/pnpm/dist/node_modules/tar/dist/esm/create.d.ts.map +1 -0
  913. package/pnpm/dist/node_modules/tar/dist/esm/create.js +76 -0
  914. package/pnpm/dist/node_modules/tar/dist/esm/create.js.map +1 -0
  915. package/pnpm/dist/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
  916. package/pnpm/dist/node_modules/tar/dist/esm/cwd-error.js +14 -0
  917. package/pnpm/dist/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
  918. package/pnpm/dist/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
  919. package/pnpm/dist/node_modules/tar/dist/esm/extract.js +49 -0
  920. package/pnpm/dist/node_modules/tar/dist/esm/extract.js.map +1 -0
  921. package/pnpm/dist/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
  922. package/pnpm/dist/node_modules/tar/dist/esm/get-write-flag.js +26 -0
  923. package/pnpm/dist/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
  924. package/pnpm/dist/node_modules/tar/dist/esm/header.d.ts.map +1 -0
  925. package/pnpm/dist/node_modules/tar/dist/esm/header.js +311 -0
  926. package/pnpm/dist/node_modules/tar/dist/esm/header.js.map +1 -0
  927. package/pnpm/dist/node_modules/tar/dist/esm/index.d.ts.map +1 -0
  928. package/pnpm/dist/node_modules/tar/dist/esm/index.js +20 -0
  929. package/pnpm/dist/node_modules/tar/dist/esm/index.js.map +1 -0
  930. package/pnpm/dist/node_modules/tar/dist/esm/index.min.js +4 -0
  931. package/pnpm/dist/node_modules/tar/dist/esm/index.min.js.map +7 -0
  932. package/pnpm/dist/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
  933. package/pnpm/dist/node_modules/tar/dist/esm/large-numbers.js +94 -0
  934. package/pnpm/dist/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
  935. package/pnpm/dist/node_modules/tar/dist/esm/list.d.ts.map +1 -0
  936. package/pnpm/dist/node_modules/tar/dist/esm/list.js +113 -0
  937. package/pnpm/dist/node_modules/tar/dist/esm/list.js.map +1 -0
  938. package/pnpm/dist/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
  939. package/pnpm/dist/node_modules/tar/dist/esm/make-command.js +48 -0
  940. package/pnpm/dist/node_modules/tar/dist/esm/make-command.js.map +1 -0
  941. package/pnpm/dist/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
  942. package/pnpm/dist/node_modules/tar/dist/esm/mkdir.js +179 -0
  943. package/pnpm/dist/node_modules/tar/dist/esm/mkdir.js.map +1 -0
  944. package/pnpm/dist/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
  945. package/pnpm/dist/node_modules/tar/dist/esm/mode-fix.js +25 -0
  946. package/pnpm/dist/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
  947. package/pnpm/dist/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
  948. package/pnpm/dist/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
  949. package/pnpm/dist/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
  950. package/pnpm/dist/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
  951. package/pnpm/dist/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
  952. package/pnpm/dist/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
  953. package/pnpm/dist/node_modules/tar/dist/esm/options.d.ts.map +1 -0
  954. package/pnpm/dist/node_modules/tar/dist/esm/options.js +54 -0
  955. package/pnpm/dist/node_modules/tar/dist/esm/options.js.map +1 -0
  956. package/pnpm/dist/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
  957. package/pnpm/dist/node_modules/tar/dist/esm/pack.js +502 -0
  958. package/pnpm/dist/node_modules/tar/dist/esm/pack.js.map +1 -0
  959. package/pnpm/dist/node_modules/tar/dist/esm/package.json +3 -0
  960. package/pnpm/dist/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
  961. package/pnpm/dist/node_modules/tar/dist/esm/parse.js +651 -0
  962. package/pnpm/dist/node_modules/tar/dist/esm/parse.js.map +1 -0
  963. package/pnpm/dist/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
  964. package/pnpm/dist/node_modules/tar/dist/esm/path-reservations.js +166 -0
  965. package/pnpm/dist/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
  966. package/pnpm/dist/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
  967. package/pnpm/dist/node_modules/tar/dist/esm/pax.js +178 -0
  968. package/pnpm/dist/node_modules/tar/dist/esm/pax.js.map +1 -0
  969. package/pnpm/dist/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
  970. package/pnpm/dist/node_modules/tar/dist/esm/process-umask.js +3 -0
  971. package/pnpm/dist/node_modules/tar/dist/esm/process-umask.js.map +1 -0
  972. package/pnpm/dist/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
  973. package/pnpm/dist/node_modules/tar/dist/esm/read-entry.js +132 -0
  974. package/pnpm/dist/node_modules/tar/dist/esm/read-entry.js.map +1 -0
  975. package/pnpm/dist/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
  976. package/pnpm/dist/node_modules/tar/dist/esm/replace.js +221 -0
  977. package/pnpm/dist/node_modules/tar/dist/esm/replace.js.map +1 -0
  978. package/pnpm/dist/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
  979. package/pnpm/dist/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
  980. package/pnpm/dist/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
  981. package/pnpm/dist/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
  982. package/pnpm/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
  983. package/pnpm/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
  984. package/pnpm/dist/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
  985. package/pnpm/dist/node_modules/tar/dist/esm/symlink-error.js +15 -0
  986. package/pnpm/dist/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
  987. package/pnpm/dist/node_modules/tar/dist/esm/types.d.ts.map +1 -0
  988. package/pnpm/dist/node_modules/tar/dist/esm/types.js +65 -0
  989. package/pnpm/dist/node_modules/tar/dist/esm/types.js.map +1 -0
  990. package/pnpm/dist/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
  991. package/pnpm/dist/node_modules/tar/dist/esm/unpack.js +891 -0
  992. package/pnpm/dist/node_modules/tar/dist/esm/unpack.js.map +1 -0
  993. package/pnpm/dist/node_modules/tar/dist/esm/update.d.ts.map +1 -0
  994. package/pnpm/dist/node_modules/tar/dist/esm/update.js +30 -0
  995. package/pnpm/dist/node_modules/tar/dist/esm/update.js.map +1 -0
  996. package/pnpm/dist/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
  997. package/pnpm/dist/node_modules/tar/dist/esm/warn-method.js +27 -0
  998. package/pnpm/dist/node_modules/tar/dist/esm/warn-method.js.map +1 -0
  999. package/pnpm/dist/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
  1000. package/pnpm/dist/node_modules/tar/dist/esm/winchars.js +9 -0
  1001. package/pnpm/dist/node_modules/tar/dist/esm/winchars.js.map +1 -0
  1002. package/pnpm/dist/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
  1003. package/pnpm/dist/node_modules/tar/dist/esm/write-entry.js +656 -0
  1004. package/pnpm/dist/node_modules/tar/dist/esm/write-entry.js.map +1 -0
  1005. package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
  1006. package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.js +384 -0
  1007. package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.js.map +1 -0
  1008. package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +3 -0
  1009. package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
  1010. package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/esm/index.js +379 -0
  1011. package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/esm/index.js.map +1 -0
  1012. package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/esm/package.json +3 -0
  1013. package/pnpm/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
  1014. package/pnpm/dist/node_modules/tar/package.json +298 -0
  1015. package/pnpm/dist/node_modules/tinyglobby/LICENSE +21 -0
  1016. package/pnpm/dist/node_modules/tinyglobby/dist/index.cjs +335 -0
  1017. package/pnpm/dist/node_modules/tinyglobby/dist/index.d.cts +148 -0
  1018. package/pnpm/dist/node_modules/tinyglobby/dist/index.d.mts +148 -0
  1019. package/pnpm/dist/node_modules/tinyglobby/dist/index.mjs +307 -0
  1020. package/pnpm/dist/node_modules/tinyglobby/package.json +70 -0
  1021. package/pnpm/dist/node_modules/unique-filename/LICENSE +5 -0
  1022. package/pnpm/dist/node_modules/unique-filename/lib/index.js +7 -0
  1023. package/pnpm/dist/node_modules/unique-filename/package.json +53 -0
  1024. package/pnpm/dist/node_modules/unique-slug/LICENSE +15 -0
  1025. package/pnpm/dist/node_modules/unique-slug/lib/index.js +11 -0
  1026. package/pnpm/dist/node_modules/unique-slug/package.json +49 -0
  1027. package/pnpm/dist/node_modules/v8-compile-cache/LICENSE +21 -0
  1028. package/pnpm/dist/node_modules/v8-compile-cache/package.json +34 -0
  1029. package/pnpm/dist/node_modules/v8-compile-cache/v8-compile-cache.js +373 -0
  1030. package/pnpm/dist/node_modules/which/LICENSE +15 -0
  1031. package/pnpm/dist/node_modules/which/bin/node-which +52 -0
  1032. package/pnpm/dist/node_modules/which/package.json +43 -0
  1033. package/pnpm/dist/node_modules/which/which.js +125 -0
  1034. package/pnpm/dist/node_modules/wrap-ansi/index.js +214 -0
  1035. package/pnpm/dist/node_modules/wrap-ansi/license +9 -0
  1036. package/pnpm/dist/node_modules/wrap-ansi/package.json +69 -0
  1037. package/pnpm/dist/node_modules/wrap-ansi-cjs/index.js +216 -0
  1038. package/pnpm/dist/node_modules/wrap-ansi-cjs/license +9 -0
  1039. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
  1040. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +9 -0
  1041. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
  1042. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.js +163 -0
  1043. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/license +9 -0
  1044. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/package.json +56 -0
  1045. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  1046. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
  1047. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
  1048. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.js +6 -0
  1049. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/package.json +50 -0
  1050. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/text.js +6 -0
  1051. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/index.js +47 -0
  1052. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/license +9 -0
  1053. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/package.json +56 -0
  1054. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +4 -0
  1055. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +9 -0
  1056. package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +54 -0
  1057. package/pnpm/dist/node_modules/wrap-ansi-cjs/package.json +62 -0
  1058. package/pnpm/dist/node_modules/yallist/LICENSE +15 -0
  1059. package/pnpm/dist/node_modules/yallist/iterator.js +8 -0
  1060. package/pnpm/dist/node_modules/yallist/package.json +29 -0
  1061. package/pnpm/dist/node_modules/yallist/yallist.js +426 -0
  1062. package/pnpm/dist/pnpm.cjs +214359 -0
  1063. package/pnpm/dist/pnpmrc +2 -0
  1064. package/pnpm/dist/reflink.darwin-arm64-2HJ4WGO6.node +0 -0
  1065. package/pnpm/dist/reflink.darwin-x64-3G3H6IW4.node +0 -0
  1066. package/pnpm/dist/reflink.win32-arm64-msvc-Q6BARPPB.node +0 -0
  1067. package/pnpm/dist/reflink.win32-x64-msvc-J2TZHRQI.node +0 -0
  1068. package/pnpm/dist/templates/completion.bash +31 -0
  1069. package/pnpm/dist/templates/completion.fish +22 -0
  1070. package/pnpm/dist/templates/completion.ps1 +193 -0
  1071. package/pnpm/dist/templates/completion.zsh +27 -0
  1072. package/pnpm/dist/vendor/fastlist-0.3.0-x64.exe +0 -0
  1073. package/pnpm/dist/vendor/fastlist-0.3.0-x86.exe +0 -0
  1074. package/pnpm/dist/worker.js +11564 -0
  1075. package/pnpm/package.json +192 -0
  1076. package/skills/.claude/skills/.gitkeep +0 -0
  1077. package/skills/README.md +19 -0
  1078. package/web/assets/core-CIeAU5U4.js +13 -0
  1079. package/web/assets/core-CIeAU5U4.js.map +1 -0
  1080. package/web/assets/css-BsVw1vtW.js +2 -0
  1081. package/web/assets/css-BsVw1vtW.js.map +1 -0
  1082. package/web/assets/diff-woXpYk--.js +2 -0
  1083. package/web/assets/diff-woXpYk--.js.map +1 -0
  1084. package/web/assets/engine-javascript-vHStYFkU.js +142 -0
  1085. package/web/assets/engine-javascript-vHStYFkU.js.map +1 -0
  1086. package/web/assets/github-dark-default-DXG-b-1a.js +2 -0
  1087. package/web/assets/github-dark-default-DXG-b-1a.js.map +1 -0
  1088. package/web/assets/github-light-EUqPIrTm.js +2 -0
  1089. package/web/assets/github-light-EUqPIrTm.js.map +1 -0
  1090. package/web/assets/go-rLFTqkRN.js +2 -0
  1091. package/web/assets/go-rLFTqkRN.js.map +1 -0
  1092. package/web/assets/html-BY76lXLH.js +2 -0
  1093. package/web/assets/html-BY76lXLH.js.map +1 -0
  1094. package/web/assets/icon-app-BHyKF-1l.png +0 -0
  1095. package/web/assets/index-Bnebzkoc.js +122 -0
  1096. package/web/assets/index-Bnebzkoc.js.map +1 -0
  1097. package/web/assets/index-DxgjutLj.css +1 -0
  1098. package/web/assets/java-BXcb2rRD.js +2 -0
  1099. package/web/assets/java-BXcb2rRD.js.map +1 -0
  1100. package/web/assets/javascript-BgS3c2Ky.js +2 -0
  1101. package/web/assets/javascript-BgS3c2Ky.js.map +1 -0
  1102. package/web/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  1103. package/web/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  1104. package/web/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
  1105. package/web/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
  1106. package/web/assets/json-qhed-kSA.js +2 -0
  1107. package/web/assets/json-qhed-kSA.js.map +1 -0
  1108. package/web/assets/jsx-Bz0zcwM4.js +2 -0
  1109. package/web/assets/jsx-Bz0zcwM4.js.map +1 -0
  1110. package/web/assets/markdown-BYOwaDjH.js +2 -0
  1111. package/web/assets/markdown-BYOwaDjH.js.map +1 -0
  1112. package/web/assets/python-gzcpVVnB.js +2 -0
  1113. package/web/assets/python-gzcpVVnB.js.map +1 -0
  1114. package/web/assets/rust-Cfkwpbl8.js +2 -0
  1115. package/web/assets/rust-Cfkwpbl8.js.map +1 -0
  1116. package/web/assets/shellscript-CLZ0U2zV.js +2 -0
  1117. package/web/assets/shellscript-CLZ0U2zV.js.map +1 -0
  1118. package/web/assets/sql-BsFa4tDR.js +2 -0
  1119. package/web/assets/sql-BsFa4tDR.js.map +1 -0
  1120. package/web/assets/tsx-udAQXfEw.js +2 -0
  1121. package/web/assets/tsx-udAQXfEw.js.map +1 -0
  1122. package/web/assets/typescript-bsJCZSQ-.js +2 -0
  1123. package/web/assets/typescript-bsJCZSQ-.js.map +1 -0
  1124. package/web/assets/yaml-rwi0_p6S.js +2 -0
  1125. package/web/assets/yaml-rwi0_p6S.js.map +1 -0
  1126. package/web/index.html +29 -0
  1127. package/README.md +0 -3
@@ -0,0 +1,1458 @@
1
+ "use strict";
2
+ /* eslint-disable prefer-destructuring */
3
+ /* eslint-disable no-param-reassign */
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Address6 = void 0;
29
+ const common = __importStar(require("./common"));
30
+ const constants4 = __importStar(require("./v4/constants"));
31
+ const constants6 = __importStar(require("./v6/constants"));
32
+ const helpers = __importStar(require("./v6/helpers"));
33
+ const ipv4_1 = require("./ipv4");
34
+ const regular_expressions_1 = require("./v6/regular-expressions");
35
+ const address_error_1 = require("./address-error");
36
+ const common_1 = require("./common");
37
+ const isCorrect6 = common.isCorrect(constants6.BITS);
38
+ function assert(condition) {
39
+ if (!condition) {
40
+ throw new Error('Assertion failed.');
41
+ }
42
+ }
43
+ function addCommas(number) {
44
+ const r = /(\d+)(\d{3})/;
45
+ while (r.test(number)) {
46
+ number = number.replace(r, '$1,$2');
47
+ }
48
+ return number;
49
+ }
50
+ function spanLeadingZeroes4(n) {
51
+ n = n.replace(/^(0{1,})([1-9]+)$/, '<span class="parse-error">$1</span>$2');
52
+ n = n.replace(/^(0{1,})(0)$/, '<span class="parse-error">$1</span>$2');
53
+ return n;
54
+ }
55
+ /*
56
+ * A helper function to compact an array
57
+ */
58
+ function compact(address, slice) {
59
+ const s1 = [];
60
+ const s2 = [];
61
+ let i;
62
+ for (i = 0; i < address.length; i++) {
63
+ if (i < slice[0]) {
64
+ s1.push(address[i]);
65
+ }
66
+ else if (i > slice[1]) {
67
+ s2.push(address[i]);
68
+ }
69
+ }
70
+ return s1.concat(['compact']).concat(s2);
71
+ }
72
+ function paddedHex(octet) {
73
+ return parseInt(octet, 16).toString(16).padStart(4, '0');
74
+ }
75
+ function unsignByte(b) {
76
+ return b & 0xff;
77
+ }
78
+ /**
79
+ * Represents an IPv6 address
80
+ * @param {string} address - An IPv6 address string
81
+ * @param {number} [groups=8] - How many octets to parse
82
+ * @example
83
+ * var address = new Address6('2001::/32');
84
+ */
85
+ class Address6 {
86
+ constructor(address, optionalGroups) {
87
+ this.addressMinusSuffix = '';
88
+ this.parsedSubnet = '';
89
+ this.subnet = '/128';
90
+ this.subnetMask = 128;
91
+ this.v4 = false;
92
+ this.zone = '';
93
+ // #region Attributes
94
+ /**
95
+ * Returns true if the given address is in the subnet of the current address.
96
+ * An `Address4` is never in the subnet of an `Address6`; convert with
97
+ * `Address6.fromAddress4()` or `to4()` to compare across families.
98
+ * @returns {boolean}
99
+ */
100
+ this.isInSubnet = common.isInSubnet;
101
+ /**
102
+ * Returns true if this address's host bits fall inside the given subnet,
103
+ * ignoring this address's own subnet mask. Prefer this over `isInSubnet`
104
+ * when classifying a single address, so the answer doesn't change with the
105
+ * CIDR suffix the caller happened to write — notably when the address came
106
+ * from untrusted input and the result backs a trust-boundary decision.
107
+ * An `Address4` is never in the subnet of an `Address6`; convert with
108
+ * `Address6.fromAddress4()` or `to4()` to compare across families.
109
+ * @returns {boolean}
110
+ */
111
+ this.isHostInSubnet = common.isHostInSubnet;
112
+ /**
113
+ * Returns true if the address is correct, false otherwise
114
+ * @returns {boolean}
115
+ */
116
+ this.isCorrect = isCorrect6;
117
+ if (optionalGroups === undefined) {
118
+ this.groups = constants6.GROUPS;
119
+ }
120
+ else {
121
+ this.groups = optionalGroups;
122
+ }
123
+ this.address = address;
124
+ const subnet = constants6.RE_SUBNET_STRING.exec(address);
125
+ if (subnet) {
126
+ this.parsedSubnet = subnet[0].replace('/', '');
127
+ this.subnetMask = parseInt(this.parsedSubnet, 10);
128
+ this.subnet = `/${this.subnetMask}`;
129
+ if (Number.isNaN(this.subnetMask) ||
130
+ this.subnetMask < 0 ||
131
+ this.subnetMask > constants6.BITS) {
132
+ throw new address_error_1.AddressError('Invalid subnet mask.');
133
+ }
134
+ address = address.replace(constants6.RE_SUBNET_STRING, '');
135
+ }
136
+ // RE_SUBNET_STRING anchors on the end of the address, so it strips only
137
+ // the trailing suffix. A second one left behind (`::/0/1`) is malformed
138
+ // and must be rejected rather than parsed as an address group.
139
+ if (/\//.test(address)) {
140
+ throw new address_error_1.AddressError('Invalid subnet mask.');
141
+ }
142
+ const zone = constants6.RE_ZONE_STRING.exec(address);
143
+ if (zone) {
144
+ this.zone = zone[0];
145
+ address = address.replace(constants6.RE_ZONE_STRING, '');
146
+ }
147
+ // The longest well-formed address is all but the last two groups written
148
+ // as four hex digits with their colons, then a 15-character dotted quad:
149
+ // 5 * (groups - 2) + 15, which is 45 for eight groups, the same line
150
+ // CPython's ipaddress module draws. Rejecting longer input here keeps the
151
+ // parse diagnostics, which wrap every offending character in a span,
152
+ // proportional to an address rather than to whatever was passed in.
153
+ const longest = this.groups * 5 + 5;
154
+ if (address.length > longest) {
155
+ throw new address_error_1.AddressError(`IPv6 addresses are at most ${longest} characters.`);
156
+ }
157
+ this.addressMinusSuffix = address;
158
+ this.parsedAddress = this.parse(this.addressMinusSuffix);
159
+ }
160
+ /**
161
+ * Returns true if the given string is a valid IPv6 address (with optional
162
+ * CIDR subnet and zone identifier), false otherwise. Host bits in the
163
+ * subnet portion are allowed (e.g. `2001:db8::1/32` is valid); for strict
164
+ * network-address validation compare `correctForm()` to
165
+ * `startAddress().correctForm()`, or use `networkForm()`.
166
+ */
167
+ static isValid(address) {
168
+ try {
169
+ // eslint-disable-next-line no-new
170
+ new Address6(address);
171
+ return true;
172
+ }
173
+ catch {
174
+ return false;
175
+ }
176
+ }
177
+ /**
178
+ * Convert a BigInt to a v6 address object. The value must be in the
179
+ * range `[0, 2**128 - 1]`; otherwise `AddressError` is thrown.
180
+ * @param {bigint} bigInt - a BigInt to convert
181
+ * @returns {Address6}
182
+ * @example
183
+ * var bigInt = BigInt('1000000000000');
184
+ * var address = Address6.fromBigInt(bigInt);
185
+ * address.correctForm(); // '::e8:d4a5:1000'
186
+ */
187
+ static fromBigInt(bigInt) {
188
+ if (bigInt < BigInt(0) || bigInt > (BigInt(1) << BigInt(constants6.BITS)) - BigInt(1)) {
189
+ throw new address_error_1.AddressError('IPv6 BigInt must be in the range 0 to 2**128 - 1');
190
+ }
191
+ const hex = bigInt.toString(16).padStart(32, '0');
192
+ const groups = [];
193
+ for (let i = 0; i < constants6.GROUPS; i++) {
194
+ groups.push(hex.slice(i * 4, (i + 1) * 4));
195
+ }
196
+ return new Address6(groups.join(':'));
197
+ }
198
+ /**
199
+ * Parse a URL (with optional bracketed host and port) into an address and
200
+ * port. Returns either `{ address, port }` on success or
201
+ * `{ error, address: null, port: null }` if the URL could not be parsed.
202
+ * Ports are returned as numbers (or `null` if absent or out of range).
203
+ * @example
204
+ * var addressAndPort = Address6.fromURL('http://[ffff::]:8080/foo/');
205
+ * addressAndPort.address.correctForm(); // 'ffff::'
206
+ * addressAndPort.port; // 8080
207
+ */
208
+ static fromURL(url) {
209
+ var _a;
210
+ let host;
211
+ let port = null;
212
+ let result;
213
+ let error;
214
+ // Remove the protocol prefix, if any
215
+ const stripped = url.replace(/^[a-z][a-z0-9+.-]*:\/\//i, '');
216
+ // If we have brackets parse them and find a port
217
+ if (stripped.indexOf('[') !== -1 && stripped.indexOf(']:') !== -1) {
218
+ error = 'failed to parse address with port';
219
+ result = constants6.RE_URL_WITH_PORT.exec(stripped);
220
+ if (result === null) {
221
+ return { error, address: null, port: null };
222
+ }
223
+ host = result[1];
224
+ port = result[2];
225
+ }
226
+ else {
227
+ error = 'failed to parse address from URL';
228
+ result = constants6.RE_URL.exec(stripped);
229
+ if (result === null) {
230
+ return { error, address: null, port: null };
231
+ }
232
+ host = (_a = result[1]) !== null && _a !== void 0 ? _a : result[2];
233
+ }
234
+ // If there's a port convert it to an integer
235
+ if (port) {
236
+ port = parseInt(port, 10);
237
+ // squelch out of range ports (valid ports are 0-65535)
238
+ if (port < 0 || port > 65535) {
239
+ port = null;
240
+ }
241
+ }
242
+ else {
243
+ // Standardize `undefined` to `null`
244
+ port = null;
245
+ }
246
+ // The URL character class is a superset of valid IPv6, so a host the
247
+ // regex accepted (an IPv4 literal, bare punctuation, too many groups)
248
+ // can still be rejected by the parser
249
+ let address;
250
+ try {
251
+ address = new Address6(host);
252
+ }
253
+ catch {
254
+ return { error, address: null, port: null };
255
+ }
256
+ return { address, port };
257
+ }
258
+ /**
259
+ * Construct an `Address6` from an address and a hex subnet mask given as
260
+ * separate strings (e.g. as returned by Node's `os.networkInterfaces()`).
261
+ * Throws `AddressError` if the mask is non-contiguous (e.g.
262
+ * `ffff::ffff`).
263
+ * @example
264
+ * var address = Address6.fromAddressAndMask('fe80::1', 'ffff:ffff:ffff:ffff::');
265
+ * address.subnetMask; // 64
266
+ */
267
+ static fromAddressAndMask(address, mask) {
268
+ const bits = common.prefixLengthFromMask(new Address6(mask).bigInt(), constants6.BITS);
269
+ return new Address6(`${address}/${bits}`);
270
+ }
271
+ /**
272
+ * Construct an `Address6` from an address and a Cisco-style wildcard mask
273
+ * given as separate strings (e.g. `::ffff:ffff:ffff:ffff` for a `/64`).
274
+ * The wildcard mask is the bitwise inverse of the subnet mask. Throws
275
+ * `AddressError` if the mask is non-contiguous.
276
+ * @example
277
+ * var address = Address6.fromAddressAndWildcardMask('fe80::1', '::ffff:ffff:ffff:ffff');
278
+ * address.subnetMask; // 64
279
+ */
280
+ static fromAddressAndWildcardMask(address, wildcardMask) {
281
+ const wildcard = new Address6(wildcardMask).bigInt();
282
+ const allOnes = (BigInt(1) << BigInt(constants6.BITS)) - BigInt(1);
283
+ const mask = wildcard ^ allOnes;
284
+ const bits = common.prefixLengthFromMask(mask, constants6.BITS);
285
+ return new Address6(`${address}/${bits}`);
286
+ }
287
+ /**
288
+ * Construct an `Address6` from a wildcard pattern with trailing `*`
289
+ * groups. The number of trailing wildcards determines the prefix
290
+ * length: each `*` represents 16 bits. `::` is expanded to zero groups
291
+ * (not wildcards) before evaluating trailing wildcards.
292
+ *
293
+ * Only trailing whole-group wildcards are supported. Partial-group
294
+ * wildcards (e.g. `2001:db8::0*`) and interior wildcards (e.g.
295
+ * `*::1`) throw `AddressError`.
296
+ * @example
297
+ * Address6.fromWildcard('2001:db8:*:*:*:*:*:*').subnet; // '/32'
298
+ * Address6.fromWildcard('2001:db8::*').subnet; // '/112'
299
+ * Address6.fromWildcard('*:*:*:*:*:*:*:*').subnet; // '/0'
300
+ */
301
+ static fromWildcard(input) {
302
+ if (input.includes('%') || input.includes('/')) {
303
+ throw new address_error_1.AddressError('Wildcard pattern must not include a zone or CIDR suffix');
304
+ }
305
+ const halves = input.split('::');
306
+ if (halves.length > 2) {
307
+ throw new address_error_1.AddressError("Wildcard pattern cannot contain more than one '::'");
308
+ }
309
+ let groups;
310
+ if (halves.length === 2) {
311
+ const left = halves[0] === '' ? [] : halves[0].split(':');
312
+ const right = halves[1] === '' ? [] : halves[1].split(':');
313
+ const remaining = constants6.GROUPS - left.length - right.length;
314
+ if (remaining < 1) {
315
+ throw new address_error_1.AddressError("Wildcard pattern with '::' has too many groups");
316
+ }
317
+ groups = [...left, ...new Array(remaining).fill('0'), ...right];
318
+ }
319
+ else {
320
+ groups = input.split(':');
321
+ }
322
+ if (groups.length !== constants6.GROUPS) {
323
+ throw new address_error_1.AddressError('Wildcard pattern must have 8 groups');
324
+ }
325
+ let firstWildcard = -1;
326
+ for (let i = 0; i < groups.length; i++) {
327
+ if (groups[i] === '*') {
328
+ if (firstWildcard === -1) {
329
+ firstWildcard = i;
330
+ }
331
+ }
332
+ else if (firstWildcard !== -1) {
333
+ throw new address_error_1.AddressError('Wildcard `*` must only appear in trailing groups (e.g. `2001:db8:*:*:*:*:*:*`)');
334
+ }
335
+ }
336
+ const trailing = firstWildcard === -1 ? 0 : groups.length - firstWildcard;
337
+ const replaced = groups.map((g) => (g === '*' ? '0' : g));
338
+ const subnetBits = constants6.BITS - trailing * 16;
339
+ return new Address6(`${replaced.join(':')}/${subnetBits}`);
340
+ }
341
+ /**
342
+ * Create an IPv6-mapped address given an IPv4 address
343
+ * @param {string} address - An IPv4 address string
344
+ * @returns {Address6}
345
+ * @example
346
+ * var address = Address6.fromAddress4('192.168.0.1');
347
+ * address.correctForm(); // '::ffff:c0a8:1'
348
+ * address.to4in6(); // '::ffff:192.168.0.1'
349
+ */
350
+ static fromAddress4(address) {
351
+ const address4 = new ipv4_1.Address4(address);
352
+ const mask6 = constants6.BITS - (constants4.BITS - address4.subnetMask);
353
+ return new Address6(`::ffff:${address4.correctForm()}/${mask6}`);
354
+ }
355
+ /**
356
+ * Return an address from ip6.arpa form. A full 32-nibble name gives a /128
357
+ * address; a shorter name, as used for a delegated reverse zone, gives the
358
+ * network it covers, with a subnet mask of four bits per nibble, so
359
+ * `fromArpa(x.reverseForm())` round-trips {@link reverseForm} for any prefix.
360
+ * @param {string} arpaFormAddress - an 'ip6.arpa' form address
361
+ * @returns {Adress6}
362
+ * @example
363
+ * var address = Address6.fromArpa(e.f.f.f.3.c.2.6.f.f.f.e.6.6.8.e.1.0.6.7.9.4.e.c.0.0.0.0.1.0.0.2.ip6.arpa.)
364
+ * address.correctForm(); // '2001:0:ce49:7601:e866:efff:62c3:fffe'
365
+ * Address6.fromArpa('8.b.d.0.1.0.0.2.ip6.arpa.').networkForm(); // '2001:db8::/32'
366
+ */
367
+ static fromArpa(arpaFormAddress) {
368
+ // remove an ending ".ip6.arpa", in any case and with or without the root
369
+ // dot
370
+ const nibbles = arpaFormAddress.replace(/(\.ip6\.arpa)?\.?$/i, '');
371
+ if (!/^[0-9a-f](\.[0-9a-f]){0,31}$/i.test(nibbles)) {
372
+ throw new address_error_1.AddressError("Invalid 'ip6.arpa' form.");
373
+ }
374
+ const reversed = nibbles.split('.').reverse();
375
+ const subnetMask = reversed.length * 4;
376
+ const hex = reversed.join('').padEnd(32, '0');
377
+ const groups = [];
378
+ for (let i = 0; i < constants6.GROUPS; i++) {
379
+ groups.push(hex.slice(i * 4, (i + 1) * 4));
380
+ }
381
+ return new Address6(`${groups.join(':')}/${subnetMask}`);
382
+ }
383
+ /**
384
+ * Return the Microsoft UNC transcription of the address
385
+ * @returns {String} the Microsoft UNC transcription of the address
386
+ */
387
+ microsoftTranscription() {
388
+ return `${this.correctForm().replace(/:/g, '-')}.ipv6-literal.net`;
389
+ }
390
+ /**
391
+ * Return the first n bits of the address, defaulting to the subnet mask
392
+ * @param {number} [mask=subnet] - the number of bits to mask
393
+ * @returns {String} the first n bits of the address as a string
394
+ */
395
+ mask(mask = this.subnetMask) {
396
+ return this.getBitsBase2(0, mask);
397
+ }
398
+ /**
399
+ * Return the number of possible subnets of a given size in the address
400
+ * @param {number} [subnetSize=128] - the subnet size
401
+ * @returns {String}
402
+ */
403
+ // TODO: probably useful to have a numeric version of this too
404
+ possibleSubnets(subnetSize = 128) {
405
+ const availableBits = constants6.BITS - this.subnetMask;
406
+ const subnetBits = Math.abs(subnetSize - constants6.BITS);
407
+ const subnetPowers = availableBits - subnetBits;
408
+ if (subnetPowers < 0) {
409
+ return '0';
410
+ }
411
+ return addCommas((BigInt('2') ** BigInt(subnetPowers)).toString(10));
412
+ }
413
+ /**
414
+ * Helper function getting start address.
415
+ * @returns {bigint}
416
+ */
417
+ _startAddress() {
418
+ return BigInt(`0b${this.mask() + '0'.repeat(constants6.BITS - this.subnetMask)}`);
419
+ }
420
+ /**
421
+ * The first address in the range given by this address' subnet
422
+ * Often referred to as the Network Address.
423
+ * @returns {Address6}
424
+ */
425
+ startAddress() {
426
+ return Address6.fromBigInt(this._startAddress());
427
+ }
428
+ /**
429
+ * The first host address in the range given by this address's subnet ie
430
+ * the first address after the Network Address
431
+ * @returns {Address6}
432
+ */
433
+ startAddressExclusive() {
434
+ const adjust = BigInt('1');
435
+ return Address6.fromBigInt(this._startAddress() + adjust);
436
+ }
437
+ /**
438
+ * Helper function getting end address.
439
+ * @returns {bigint}
440
+ */
441
+ _endAddress() {
442
+ return BigInt(`0b${this.mask() + '1'.repeat(constants6.BITS - this.subnetMask)}`);
443
+ }
444
+ /**
445
+ * The last address in the range given by this address's subnet. IPv6 has
446
+ * no broadcast address, so this is an ordinary assignable address (in a
447
+ * 64-bit-interface-identifier subnet it falls inside the reserved
448
+ * subnet-anycast block of [RFC 2526](https://datatracker.ietf.org/doc/html/rfc2526)).
449
+ * @returns {Address6}
450
+ */
451
+ endAddress() {
452
+ return Address6.fromBigInt(this._endAddress());
453
+ }
454
+ /**
455
+ * The address one before {@link endAddress}. This is the IPv6 counterpart
456
+ * of the IPv4 method that skips the broadcast address; IPv6 has no broadcast,
457
+ * so it drops exactly one address and does not model the 128 reserved
458
+ * subnet-anycast identifiers of [RFC 2526](https://datatracker.ietf.org/doc/html/rfc2526).
459
+ * @returns {Address6}
460
+ */
461
+ endAddressExclusive() {
462
+ const adjust = BigInt('1');
463
+ return Address6.fromBigInt(this._endAddress() - adjust);
464
+ }
465
+ /**
466
+ * Returns the address `n` addresses after this one (or before, when `n` is
467
+ * negative), keeping this address's subnet mask. Throws `AddressError` when
468
+ * the result would fall outside the IPv6 address space or `n` is not an
469
+ * integer.
470
+ * @param {number | bigint} n
471
+ * @returns {Address6}
472
+ * @example
473
+ * new Address6('2001:db8::/64').offset(1).correctForm(); // '2001:db8::1'
474
+ */
475
+ offset(n) {
476
+ return Address6.fromBigInt(common.offsetBigInt(this.bigInt(), n, constants6.BITS, 'IPv6')).withSubnetMask(this.subnetMask);
477
+ }
478
+ /**
479
+ * Returns the network that follows this address's network: the address after
480
+ * {@link endAddress}, with the same subnet mask. Throws `AddressError` when
481
+ * this network is the last one in the address space.
482
+ * @returns {Address6}
483
+ * @example
484
+ * new Address6('2001:db8::/64').nextNetwork().networkForm(); // '2001:db8:0:1::/64'
485
+ */
486
+ nextNetwork() {
487
+ return Address6.fromBigInt(common.offsetBigInt(this._endAddress(), 1, constants6.BITS, 'IPv6')).withSubnetMask(this.subnetMask);
488
+ }
489
+ withSubnetMask(subnetMask) {
490
+ return new Address6(`${this.correctForm()}/${subnetMask}`);
491
+ }
492
+ /**
493
+ * The hex form of the subnet mask, e.g. `ffff:ffff:ffff:ffff::` for a
494
+ * `/64`. Returns an `Address6`; call `.correctForm()` for the string.
495
+ * @returns {Address6}
496
+ */
497
+ subnetMaskAddress() {
498
+ return Address6.fromBigInt(BigInt(`0b${'1'.repeat(this.subnetMask)}${'0'.repeat(constants6.BITS - this.subnetMask)}`));
499
+ }
500
+ /**
501
+ * The Cisco-style wildcard mask, e.g. `::ffff:ffff:ffff:ffff` for a
502
+ * `/64`. This is the bitwise inverse of `subnetMaskAddress()`. Returns
503
+ * an `Address6`; call `.correctForm()` for the string.
504
+ * @returns {Address6}
505
+ */
506
+ wildcardMask() {
507
+ return Address6.fromBigInt(BigInt(`0b${'0'.repeat(this.subnetMask)}${'1'.repeat(constants6.BITS - this.subnetMask)}`));
508
+ }
509
+ /**
510
+ * The network address in CIDR string form, e.g. `2001:db8::/32` for
511
+ * `2001:db8::1/32`. For an address with no explicit subnet the prefix
512
+ * is `/128`, e.g. `networkForm()` on `2001:db8::1` returns
513
+ * `2001:db8::1/128`.
514
+ * @returns {string}
515
+ */
516
+ networkForm() {
517
+ return `${this.startAddress().correctForm()}/${this.subnetMask}`;
518
+ }
519
+ /**
520
+ * Return the scope of the address. The 4-bit scope field
521
+ * ([RFC 4291 §2.7](https://datatracker.ietf.org/doc/html/rfc4291#section-2.7))
522
+ * is only defined for multicast addresses; for unicast addresses the scope
523
+ * is derived from the address type per
524
+ * [RFC 4007 §6](https://datatracker.ietf.org/doc/html/rfc4007#section-6).
525
+ * @returns {String}
526
+ */
527
+ getScope() {
528
+ const type = this.getType();
529
+ if (type === 'Multicast' || type.startsWith('Multicast ')) {
530
+ const scope = constants6.SCOPES[parseInt(this.getBits(12, 16).toString(10), 10)];
531
+ return scope || 'Unknown';
532
+ }
533
+ // RFC 4291 §2.5.3: the loopback address is treated as having Link-Local
534
+ // scope. (Multicast scope 1, "Interface-Local", is a different concept
535
+ // used only for loopback transmission of multicast.)
536
+ if (type === 'Link-local unicast' || type === 'Loopback') {
537
+ return 'Link local';
538
+ }
539
+ // RFC 4007 §6: the unspecified address has no scope.
540
+ if (type === 'Unspecified') {
541
+ return 'Unknown';
542
+ }
543
+ return 'Global';
544
+ }
545
+ /**
546
+ * Return the type of the address
547
+ * @returns {String}
548
+ */
549
+ getType() {
550
+ for (let i = 0; i < TYPE_SUBNETS.length; i++) {
551
+ const entry = TYPE_SUBNETS[i];
552
+ if (this.isHostInSubnet(entry[0])) {
553
+ return entry[1];
554
+ }
555
+ }
556
+ return 'Global unicast';
557
+ }
558
+ /**
559
+ * Return the bits in the given range as a BigInt
560
+ * @returns {bigint}
561
+ */
562
+ getBits(start, end) {
563
+ return BigInt(`0b${this.getBitsBase2(start, end)}`);
564
+ }
565
+ /**
566
+ * Return the bits in the given range as a base-2 string
567
+ * @returns {String}
568
+ */
569
+ getBitsBase2(start, end) {
570
+ return this.binaryZeroPad().slice(start, end);
571
+ }
572
+ /**
573
+ * Return the bits in the given range as a base-16 string
574
+ * @returns {String}
575
+ */
576
+ getBitsBase16(start, end) {
577
+ const length = end - start;
578
+ if (length % 4 !== 0) {
579
+ throw new Error('Length of bits to retrieve must be divisible by four');
580
+ }
581
+ return this.getBits(start, end)
582
+ .toString(16)
583
+ .padStart(length / 4, '0');
584
+ }
585
+ /**
586
+ * Return the bits that are set past the subnet mask length
587
+ * @returns {String}
588
+ */
589
+ getBitsPastSubnet() {
590
+ return this.getBitsBase2(this.subnetMask, constants6.BITS);
591
+ }
592
+ /**
593
+ * Return the reversed ip6.arpa form of the address
594
+ * @param {Object} options
595
+ * @param {boolean} options.omitSuffix - omit the "ip6.arpa" suffix
596
+ * @returns {String}
597
+ */
598
+ reverseForm(options) {
599
+ if (!options) {
600
+ options = {};
601
+ }
602
+ const characters = Math.floor(this.subnetMask / 4);
603
+ const reversed = this.canonicalForm()
604
+ .replace(/:/g, '')
605
+ .split('')
606
+ .slice(0, characters)
607
+ .reverse()
608
+ .join('.');
609
+ if (characters > 0) {
610
+ if (options.omitSuffix) {
611
+ return reversed;
612
+ }
613
+ return `${reversed}.ip6.arpa.`;
614
+ }
615
+ if (options.omitSuffix) {
616
+ return '';
617
+ }
618
+ return 'ip6.arpa.';
619
+ }
620
+ /**
621
+ * Returns the address in correct form, per
622
+ * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952): leading zeros
623
+ * stripped, the longest run of zero groups collapsed to `::`, and hex digits
624
+ * lowercased (e.g. `2001:db8::1`). This is the recommended form for display.
625
+ */
626
+ correctForm() {
627
+ let i;
628
+ let groups = [];
629
+ let zeroCounter = 0;
630
+ const zeroes = [];
631
+ for (i = 0; i < this.parsedAddress.length; i++) {
632
+ const value = parseInt(this.parsedAddress[i], 16);
633
+ if (value === 0) {
634
+ zeroCounter++;
635
+ }
636
+ if (value !== 0 && zeroCounter > 0) {
637
+ if (zeroCounter > 1) {
638
+ zeroes.push([i - zeroCounter, i - 1]);
639
+ }
640
+ zeroCounter = 0;
641
+ }
642
+ }
643
+ // Do we end with a string of zeroes?
644
+ if (zeroCounter > 1) {
645
+ zeroes.push([this.parsedAddress.length - zeroCounter, this.parsedAddress.length - 1]);
646
+ }
647
+ const zeroLengths = zeroes.map((n) => n[1] - n[0] + 1);
648
+ if (zeroes.length > 0) {
649
+ const index = zeroLengths.indexOf(Math.max(...zeroLengths));
650
+ groups = compact(this.parsedAddress, zeroes[index]);
651
+ }
652
+ else {
653
+ groups = this.parsedAddress;
654
+ }
655
+ for (i = 0; i < groups.length; i++) {
656
+ if (groups[i] !== 'compact') {
657
+ groups[i] = parseInt(groups[i], 16).toString(16);
658
+ }
659
+ }
660
+ let correct = groups.join(':');
661
+ correct = correct.replace(/^compact$/, '::');
662
+ correct = correct.replace(/(^compact)|(compact$)/, ':');
663
+ correct = correct.replace(/compact/, '');
664
+ return correct;
665
+ }
666
+ /**
667
+ * Return a zero-padded base-2 string representation of the address
668
+ * @returns {String}
669
+ * @example
670
+ * var address = new Address6('2001:4860:4001:803::1011');
671
+ * address.binaryZeroPad();
672
+ * // '0010000000000001010010000110000001000000000000010000100000000011
673
+ * // 0000000000000000000000000000000000000000000000000001000000010001'
674
+ */
675
+ binaryZeroPad() {
676
+ if (this._binaryZeroPad === undefined) {
677
+ this._binaryZeroPad = this.bigInt().toString(2).padStart(constants6.BITS, '0');
678
+ }
679
+ return this._binaryZeroPad;
680
+ }
681
+ /**
682
+ * Parses a v4-in-v6 string (e.g. `::ffff:192.168.0.1`) by extracting the
683
+ * trailing IPv4 address into `this.address4` / `this.parsedAddress4` and
684
+ * returning the address with the v4 portion converted to two v6 groups.
685
+ * Used internally by `parse()`.
686
+ */
687
+ // TODO: Improve the semantics of this helper function
688
+ parse4in6(address) {
689
+ if (address.indexOf('.') === -1) {
690
+ return address;
691
+ }
692
+ const groups = address.split(':');
693
+ const lastGroup = groups.slice(-1)[0];
694
+ // RE_ADDRESS rejects octets with a leading zero, so a dotted-quad tail is
695
+ // matched permissively first: that way this notation still gets its own
696
+ // message with the offending octet highlighted, rather than falling
697
+ // through as an unrecognized group.
698
+ const v4Octets = lastGroup.split('.');
699
+ if (v4Octets.length === constants4.GROUPS &&
700
+ v4Octets.every((octet) => /^\d{1,3}$/.test(octet))) {
701
+ if (v4Octets.some((octet) => /^0\d/.test(octet))) {
702
+ // The prefix groups haven't been through the bad-character check
703
+ // yet, so escape them before including in the error HTML.
704
+ const highlighted = v4Octets.map(spanLeadingZeroes4).join('.');
705
+ const prefix = groups.slice(0, -1).map(helpers.escapeHtml).join(':');
706
+ const separator = groups.length > 1 ? ':' : '';
707
+ throw new address_error_1.AddressError("IPv4 addresses can't have leading zeroes.", `${prefix}${separator}${highlighted}`);
708
+ }
709
+ }
710
+ const address4 = lastGroup.match(constants4.RE_ADDRESS);
711
+ if (address4) {
712
+ this.parsedAddress4 = address4[0];
713
+ const v4Suffix = this.subnetMask >= 96 ? `/${this.subnetMask - 96}` : '';
714
+ this.address4 = new ipv4_1.Address4(`${this.parsedAddress4}${v4Suffix}`);
715
+ this.v4 = true;
716
+ groups[groups.length - 1] = this.address4.toGroup6();
717
+ address = groups.join(':');
718
+ }
719
+ return address;
720
+ }
721
+ /**
722
+ * Parses an IPv6 address string into its 8 hexadecimal groups (expanding
723
+ * any `::` elision and any trailing v4-in-v6 portion) and stores the result
724
+ * on `this.parsedAddress`. Called automatically by the constructor; you
725
+ * typically don't need to call it directly. Throws `AddressError` if the
726
+ * input is malformed.
727
+ */
728
+ // TODO: Make private?
729
+ parse(address) {
730
+ address = this.parse4in6(address);
731
+ const badCharacters = address.match(constants6.RE_BAD_CHARACTERS);
732
+ if (badCharacters) {
733
+ throw new address_error_1.AddressError(`Bad character${badCharacters.length > 1 ? 's' : ''} detected in address: ${badCharacters.join('')}`, address.replace(constants6.RE_BAD_CHARACTERS, '<span class="parse-error">$1</span>'));
734
+ }
735
+ const badAddress = address.match(constants6.RE_BAD_ADDRESS);
736
+ if (badAddress) {
737
+ throw new address_error_1.AddressError(`Address failed regex: ${badAddress.join('')}`, address.replace(constants6.RE_BAD_ADDRESS, '<span class="parse-error">$1</span>'));
738
+ }
739
+ let groups = [];
740
+ const halves = address.split('::');
741
+ if (halves.length === 2) {
742
+ let first = halves[0].split(':');
743
+ let last = halves[1].split(':');
744
+ if (first.length === 1 && first[0] === '') {
745
+ first = [];
746
+ }
747
+ if (last.length === 1 && last[0] === '') {
748
+ last = [];
749
+ }
750
+ const remaining = this.groups - (first.length + last.length);
751
+ if (!remaining) {
752
+ throw new address_error_1.AddressError('Error parsing groups');
753
+ }
754
+ this.elidedGroups = remaining;
755
+ this.elisionBegin = first.length;
756
+ this.elisionEnd = first.length + this.elidedGroups;
757
+ groups = groups.concat(first);
758
+ for (let i = 0; i < remaining; i++) {
759
+ groups.push('0');
760
+ }
761
+ groups = groups.concat(last);
762
+ }
763
+ else if (halves.length === 1) {
764
+ groups = address.split(':');
765
+ this.elidedGroups = 0;
766
+ }
767
+ else {
768
+ throw new address_error_1.AddressError('Too many :: groups found');
769
+ }
770
+ groups = groups.map((group) => parseInt(group, 16).toString(16));
771
+ if (groups.length !== this.groups) {
772
+ throw new address_error_1.AddressError('Incorrect number of groups found');
773
+ }
774
+ return groups;
775
+ }
776
+ /**
777
+ * Returns the canonical (fully expanded) form of the address: all 8 groups,
778
+ * each padded to 4 hex digits, with no `::` collapsing
779
+ * (e.g. `2001:0db8:0000:0000:0000:0000:0000:0001`). Useful for sorting and
780
+ * byte-exact comparison.
781
+ */
782
+ canonicalForm() {
783
+ return this.parsedAddress.map(paddedHex).join(':');
784
+ }
785
+ /**
786
+ * Return the decimal form of the address
787
+ * @returns {String}
788
+ */
789
+ decimal() {
790
+ return this.parsedAddress.map((n) => parseInt(n, 16).toString(10).padStart(5, '0')).join(':');
791
+ }
792
+ /**
793
+ * Return the address as a BigInt
794
+ * @returns {bigint}
795
+ */
796
+ bigInt() {
797
+ return BigInt(`0x${this.parsedAddress.map(paddedHex).join('')}`);
798
+ }
799
+ /**
800
+ * Return the last two groups of this address as an IPv4 address string.
801
+ * If this address carries a CIDR prefix that covers the trailing 32 bits
802
+ * (i.e. `subnetMask >= 96`), the resulting `Address4` inherits the
803
+ * corresponding v4 prefix (`subnetMask - 96`); otherwise it defaults to
804
+ * `/32`.
805
+ * @returns {Address4}
806
+ * @example
807
+ * var address = new Address6('2001:4860:4001::1825:bf11');
808
+ * address.to4().correctForm(); // '24.37.191.17'
809
+ */
810
+ to4() {
811
+ const binary = this.binaryZeroPad().split('');
812
+ const hex = BigInt(`0b${binary.slice(96, 128).join('')}`)
813
+ .toString(16)
814
+ .padStart(8, '0');
815
+ if (this.subnetMask >= 96) {
816
+ const v4Mask = this.subnetMask - 96;
817
+ const groups = [];
818
+ for (let i = 0; i < 8; i += 2) {
819
+ groups.push(parseInt(hex.slice(i, i + 2), 16));
820
+ }
821
+ return new ipv4_1.Address4(`${groups.join('.')}/${v4Mask}`);
822
+ }
823
+ return ipv4_1.Address4.fromHex(hex);
824
+ }
825
+ /**
826
+ * Return the v4-in-v6 form of the address
827
+ * @returns {String}
828
+ */
829
+ to4in6() {
830
+ const address4 = this.to4();
831
+ const address6 = new Address6(this.parsedAddress.slice(0, 6).join(':'), 6);
832
+ const correct = address6.correctForm();
833
+ let infix = '';
834
+ if (!/:$/.test(correct)) {
835
+ infix = ':';
836
+ }
837
+ return correct + infix + address4.correctForm();
838
+ }
839
+ /**
840
+ * Decodes the Teredo tunneling fields embedded in this address. Returns the
841
+ * Teredo prefix, server IPv4, client IPv4, raw flag bits, cone-NAT flag,
842
+ * UDP port, and Microsoft-format flag breakdown (reserved, universal/local,
843
+ * group/individual, nonce). Only meaningful for addresses in `2001::/32`.
844
+ */
845
+ inspectTeredo() {
846
+ /*
847
+ - Bits 0 to 31 are set to the Teredo prefix (normally 2001:0000::/32).
848
+ - Bits 32 to 63 embed the primary IPv4 address of the Teredo server that
849
+ is used.
850
+ - Bits 64 to 79 can be used to define some flags. Currently only the
851
+ higher order bit is used; it is set to 1 if the Teredo client is
852
+ located behind a cone NAT, 0 otherwise. For Microsoft's Windows Vista
853
+ and Windows Server 2008 implementations, more bits are used. In those
854
+ implementations, the format for these 16 bits is "CRAAAAUG AAAAAAAA",
855
+ where "C" remains the "Cone" flag. The "R" bit is reserved for future
856
+ use. The "U" bit is for the Universal/Local flag (set to 0). The "G" bit
857
+ is Individual/Group flag (set to 0). The A bits are set to a 12-bit
858
+ randomly generated number chosen by the Teredo client to introduce
859
+ additional protection for the Teredo node against IPv6-based scanning
860
+ attacks.
861
+ - Bits 80 to 95 contains the obfuscated UDP port number. This is the
862
+ port number that is mapped by the NAT to the Teredo client with all
863
+ bits inverted.
864
+ - Bits 96 to 127 contains the obfuscated IPv4 address. This is the
865
+ public IPv4 address of the NAT with all bits inverted.
866
+ */
867
+ const prefix = this.getBitsBase16(0, 32);
868
+ const bitsForUdpPort = this.getBits(80, 96);
869
+ const udpPort = (bitsForUdpPort ^ BigInt('0xffff')).toString();
870
+ const server4 = ipv4_1.Address4.fromHex(this.getBitsBase16(32, 64));
871
+ const bitsForClient4 = this.getBits(96, 128);
872
+ const client4 = ipv4_1.Address4.fromHex((bitsForClient4 ^ BigInt('0xffffffff')).toString(16).padStart(8, '0'));
873
+ const flagsBase2 = this.getBitsBase2(64, 80);
874
+ const coneNat = (0, common_1.testBit)(flagsBase2, 15);
875
+ const reserved = (0, common_1.testBit)(flagsBase2, 14);
876
+ const groupIndividual = (0, common_1.testBit)(flagsBase2, 8);
877
+ const universalLocal = (0, common_1.testBit)(flagsBase2, 9);
878
+ const nonce = BigInt(`0b${flagsBase2.slice(2, 6) + flagsBase2.slice(8, 16)}`).toString(10);
879
+ return {
880
+ prefix: `${prefix.slice(0, 4)}:${prefix.slice(4, 8)}`,
881
+ server4: server4.address,
882
+ client4: client4.address,
883
+ flags: flagsBase2,
884
+ coneNat,
885
+ microsoft: {
886
+ reserved,
887
+ universalLocal,
888
+ groupIndividual,
889
+ nonce,
890
+ },
891
+ udpPort,
892
+ };
893
+ }
894
+ /**
895
+ * Decodes the 6to4 tunneling fields embedded in this address. Returns the
896
+ * 6to4 prefix and the embedded IPv4 gateway address. Only meaningful for
897
+ * addresses in `2002::/16`.
898
+ */
899
+ inspect6to4() {
900
+ /*
901
+ - Bits 0 to 15 are set to the 6to4 prefix (2002::/16).
902
+ - Bits 16 to 48 embed the IPv4 address of the 6to4 gateway that is used.
903
+ */
904
+ const prefix = this.getBitsBase16(0, 16);
905
+ const gateway = ipv4_1.Address4.fromHex(this.getBitsBase16(16, 48));
906
+ return {
907
+ prefix: prefix.slice(0, 4),
908
+ gateway: gateway.address,
909
+ };
910
+ }
911
+ /**
912
+ * Return a v6 6to4 address from a v6 v4inv6 address
913
+ * @returns {Address6}
914
+ */
915
+ to6to4() {
916
+ if (!this.is4()) {
917
+ return null;
918
+ }
919
+ const addr6to4 = [
920
+ '2002',
921
+ this.getBitsBase16(96, 112),
922
+ this.getBitsBase16(112, 128),
923
+ '',
924
+ '/16',
925
+ ].join(':');
926
+ return new Address6(addr6to4);
927
+ }
928
+ /**
929
+ * Embed an IPv4 address into a NAT64 IPv6 address using the encoding
930
+ * defined by [RFC 6052](https://datatracker.ietf.org/doc/html/rfc6052).
931
+ * The default prefix is the well-known prefix `64:ff9b::/96`. The prefix
932
+ * length must be one of 32, 40, 48, 56, 64, or 96; for prefixes shorter
933
+ * than /64 the IPv4 octets are split around the reserved bits 64–71.
934
+ * @example
935
+ * Address6.fromAddress4Nat64('192.0.2.33').correctForm(); // '64:ff9b::c000:221'
936
+ * Address6.fromAddress4Nat64('192.0.2.33', '2001:db8::/32').correctForm(); // '2001:db8:c000:221::'
937
+ */
938
+ static fromAddress4Nat64(address, prefix = '64:ff9b::/96') {
939
+ const v4 = new ipv4_1.Address4(address);
940
+ const prefix6 = new Address6(prefix);
941
+ const pl = prefix6.subnetMask;
942
+ if (pl !== 32 && pl !== 40 && pl !== 48 && pl !== 56 && pl !== 64 && pl !== 96) {
943
+ throw new address_error_1.AddressError('NAT64 prefix length must be 32, 40, 48, 56, 64, or 96');
944
+ }
945
+ const prefixBits = prefix6.binaryZeroPad();
946
+ const v4Bits = v4.binaryZeroPad();
947
+ let bits;
948
+ if (pl === 96) {
949
+ bits = prefixBits.slice(0, 96) + v4Bits;
950
+ }
951
+ else {
952
+ const beforeU = 64 - pl;
953
+ bits = [
954
+ prefixBits.slice(0, pl),
955
+ v4Bits.slice(0, beforeU),
956
+ // Bits 64 to 71 are the reserved u octet and are always zero.
957
+ '00000000',
958
+ v4Bits.slice(beforeU),
959
+ '0'.repeat(128 - 72 - (32 - beforeU)),
960
+ ].join('');
961
+ }
962
+ const hex = BigInt(`0b${bits}`).toString(16).padStart(32, '0');
963
+ const groups = [];
964
+ for (let i = 0; i < 8; i++) {
965
+ groups.push(hex.slice(i * 4, (i + 1) * 4));
966
+ }
967
+ return new Address6(groups.join(':'));
968
+ }
969
+ /**
970
+ * Extract the embedded IPv4 address from a NAT64 IPv6 address using the
971
+ * encoding defined by [RFC 6052](https://datatracker.ietf.org/doc/html/rfc6052).
972
+ * The default prefix is the well-known prefix `64:ff9b::/96`. Returns
973
+ * `null` if this address is not contained within the given prefix.
974
+ * @example
975
+ * new Address6('64:ff9b::c000:221').toAddress4Nat64()!.correctForm(); // '192.0.2.33'
976
+ */
977
+ toAddress4Nat64(prefix = '64:ff9b::/96') {
978
+ const prefix6 = new Address6(prefix);
979
+ const pl = prefix6.subnetMask;
980
+ if (pl !== 32 && pl !== 40 && pl !== 48 && pl !== 56 && pl !== 64 && pl !== 96) {
981
+ throw new address_error_1.AddressError('NAT64 prefix length must be 32, 40, 48, 56, 64, or 96');
982
+ }
983
+ if (!this.isHostInSubnet(prefix6)) {
984
+ return null;
985
+ }
986
+ const bits = this.binaryZeroPad();
987
+ let v4Bits;
988
+ if (pl === 96) {
989
+ v4Bits = bits.slice(96, 128);
990
+ }
991
+ else {
992
+ const beforeU = 64 - pl;
993
+ v4Bits = bits.slice(pl, pl + beforeU) + bits.slice(72, 72 + (32 - beforeU));
994
+ }
995
+ const octets = [];
996
+ for (let i = 0; i < 4; i++) {
997
+ octets.push(parseInt(v4Bits.slice(i * 8, (i + 1) * 8), 2).toString());
998
+ }
999
+ return new ipv4_1.Address4(octets.join('.'));
1000
+ }
1001
+ /**
1002
+ * Return a byte array.
1003
+ *
1004
+ * To get a Node.js `Buffer`, wrap the result: `Buffer.from(address.toByteArray())`.
1005
+ * @returns {Array}
1006
+ */
1007
+ toByteArray() {
1008
+ const value = this.bigInt()
1009
+ .toString(16)
1010
+ .padStart(constants6.BITS / 4, '0');
1011
+ const bytes = [];
1012
+ for (let i = 0, length = value.length; i < length; i += 2) {
1013
+ bytes.push(parseInt(value.substring(i, i + 2), 16));
1014
+ }
1015
+ return bytes;
1016
+ }
1017
+ /**
1018
+ * Return an unsigned byte array.
1019
+ *
1020
+ * To get a Node.js `Buffer`, wrap the result: `Buffer.from(address.toUnsignedByteArray())`.
1021
+ * @returns {Array}
1022
+ */
1023
+ toUnsignedByteArray() {
1024
+ // toByteArray() emits 0 to 255, so unsigning it is an identity mapping and
1025
+ // the two methods return equal arrays. 11.0.0 keeps one of them and makes
1026
+ // this a deprecated alias; test/common-test.ts fails at that version.
1027
+ return this.toByteArray().map(unsignByte);
1028
+ }
1029
+ /**
1030
+ * Convert a byte array to an Address6 object.
1031
+ *
1032
+ * Accepts unsigned bytes (0 to 255) or signed bytes (-128 to 127, as an
1033
+ * `Int8Array` or a Java `byte[]` holds them), folding signed values to their
1034
+ * unsigned equivalent. Throws `AddressError` unless given exactly 16
1035
+ * integers from -128 to 255.
1036
+ *
1037
+ * To convert from a Node.js `Buffer`, spread it: `Address6.fromByteArray([...buf])`.
1038
+ * @returns {Address6}
1039
+ */
1040
+ static fromByteArray(bytes) {
1041
+ // Address4.fromByteArray takes unsigned bytes only. 11.0.0 aligns this
1042
+ // method with it, at which point the -128 floor here, unsignByte, and the
1043
+ // mapping below all go; test/common-test.ts fails at that version.
1044
+ common.assertByteArray(bytes, 16, 'IPv6', -128);
1045
+ return this.fromUnsignedByteArray(bytes.map(unsignByte));
1046
+ }
1047
+ /**
1048
+ * Convert an unsigned byte array to an Address6 object.
1049
+ *
1050
+ * Throws `AddressError` unless given exactly 16 integers from 0 to 255.
1051
+ *
1052
+ * To convert from a Node.js `Buffer`, spread it: `Address6.fromUnsignedByteArray([...buf])`.
1053
+ * @returns {Address6}
1054
+ */
1055
+ static fromUnsignedByteArray(bytes) {
1056
+ common.assertByteArray(bytes, 16, 'IPv6', 0);
1057
+ const BYTE_MAX = BigInt('256');
1058
+ let result = BigInt('0');
1059
+ let multiplier = BigInt('1');
1060
+ for (let i = bytes.length - 1; i >= 0; i--) {
1061
+ result += multiplier * BigInt(bytes[i].toString(10));
1062
+ multiplier *= BYTE_MAX;
1063
+ }
1064
+ return Address6.fromBigInt(result);
1065
+ }
1066
+ /**
1067
+ * Returns true if the address is in the canonical form, false otherwise
1068
+ * @returns {boolean}
1069
+ */
1070
+ isCanonical() {
1071
+ return this.addressMinusSuffix === this.canonicalForm();
1072
+ }
1073
+ /**
1074
+ * Returns true if the address is a link-local unicast address in `fe80::/10`
1075
+ * ([RFC 4291 §2.4](https://datatracker.ietf.org/doc/html/rfc4291#section-2.4))
1076
+ * or an IPv4-mapped / NAT64 address whose embedded IPv4 address is link-local
1077
+ * (`169.254.0.0/16`, e.g. `::ffff:169.254.169.254`), false otherwise.
1078
+ * @returns {boolean}
1079
+ */
1080
+ isLinkLocal() {
1081
+ const embedded = this.embeddedIPv4();
1082
+ if (embedded) {
1083
+ return embedded.isLinkLocal();
1084
+ }
1085
+ return this.isHostInSubnet(LINK_LOCAL_SUBNET);
1086
+ }
1087
+ /**
1088
+ * Returns true if the address is a multicast address, false otherwise
1089
+ * @returns {boolean}
1090
+ */
1091
+ isMulticast() {
1092
+ const embedded = this.embeddedIPv4();
1093
+ if (embedded) {
1094
+ return embedded.isMulticast();
1095
+ }
1096
+ const type = this.getType();
1097
+ return type === 'Multicast' || type.startsWith('Multicast ');
1098
+ }
1099
+ /**
1100
+ * Returns true if the address was written in v4-in-v6 dotted-quad notation
1101
+ * (e.g. `::ffff:127.0.0.1`), false otherwise. This is a notation-level flag
1102
+ * and does not reflect whether the address bits lie in the IPv4-mapped
1103
+ * (`::ffff:0:0/96`) subnet — for that, see {@link isMapped4}.
1104
+ * @returns {boolean}
1105
+ */
1106
+ is4() {
1107
+ return this.v4;
1108
+ }
1109
+ /**
1110
+ * Returns true if the address is an IPv4-mapped IPv6 address in
1111
+ * `::ffff:0:0/96` ([RFC 4291 §2.5.5.2](https://datatracker.ietf.org/doc/html/rfc4291#section-2.5.5.2)),
1112
+ * false otherwise. Unlike {@link is4}, this checks the underlying address
1113
+ * bits rather than the textual notation, so `::ffff:127.0.0.1` and
1114
+ * `::ffff:7f00:1` both return true.
1115
+ * @returns {boolean}
1116
+ */
1117
+ isMapped4() {
1118
+ return this.isHostInSubnet(IPV4_MAPPED_SUBNET);
1119
+ }
1120
+ /**
1121
+ * If this address embeds a routable IPv4 address — i.e. it is IPv4-mapped
1122
+ * (`::ffff:0:0/96`) or sits in the NAT64 well-known prefix (`64:ff9b::/96`,
1123
+ * [RFC 6052](https://datatracker.ietf.org/doc/html/rfc6052)) — return that
1124
+ * embedded address as an {@link Address4}; otherwise return null.
1125
+ *
1126
+ * The special-property checks (`isLoopback`, `isLinkLocal`, `isMulticast`,
1127
+ * `isUnspecified`, `isPrivate`, `isCGNAT`, `isBroadcast`) call this first and
1128
+ * delegate to the embedded {@link Address4} when present, so a literal such as
1129
+ * `::ffff:127.0.0.1` is classified by what it actually reaches (loopback)
1130
+ * rather than by its IPv6 wrapper (which `getType()` reports as IPv4-mapped).
1131
+ * This matters wherever the checks back a trust-boundary decision (e.g. an
1132
+ * SSRF allow/deny filter): without normalization, `::ffff:10.0.0.1`,
1133
+ * `::ffff:169.254.169.254`, `64:ff9b::7f00:1`, etc. would all read as
1134
+ * non-internal.
1135
+ * @returns {Address4 | null}
1136
+ */
1137
+ embeddedIPv4() {
1138
+ if (this.isMapped4() || this.isHostInSubnet(NAT64_WELL_KNOWN_SUBNET)) {
1139
+ return this.to4();
1140
+ }
1141
+ return null;
1142
+ }
1143
+ /**
1144
+ * Returns true if the address is a Teredo address, false otherwise
1145
+ * @returns {boolean}
1146
+ */
1147
+ isTeredo() {
1148
+ return this.isHostInSubnet(TEREDO_SUBNET);
1149
+ }
1150
+ /**
1151
+ * Returns true if the address is a 6to4 address, false otherwise
1152
+ * @returns {boolean}
1153
+ */
1154
+ is6to4() {
1155
+ return this.isHostInSubnet(SIX_TO_FOUR_SUBNET);
1156
+ }
1157
+ /**
1158
+ * Returns true if the address is a loopback address, false otherwise
1159
+ * @returns {boolean}
1160
+ */
1161
+ isLoopback() {
1162
+ const embedded = this.embeddedIPv4();
1163
+ if (embedded) {
1164
+ return embedded.isLoopback();
1165
+ }
1166
+ return this.getType() === 'Loopback';
1167
+ }
1168
+ /**
1169
+ * Returns true if the address is a Unique Local Address in `fc00::/7` ([RFC 4193](https://datatracker.ietf.org/doc/html/rfc4193)). ULAs are the IPv6 equivalent of IPv4 [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918) private addresses.
1170
+ * @returns {boolean}
1171
+ */
1172
+ isULA() {
1173
+ return this.isHostInSubnet(ULA_SUBNET);
1174
+ }
1175
+ /**
1176
+ * Returns true if the address is private, i.e. a Unique Local Address in
1177
+ * `fc00::/7` ([RFC 4193](https://datatracker.ietf.org/doc/html/rfc4193)), an
1178
+ * address in the NAT64 local-use range `64:ff9b:1::/48`
1179
+ * ([RFC 8215](https://datatracker.ietf.org/doc/html/rfc8215)), or an
1180
+ * IPv4-mapped / NAT64 well-known address whose embedded IPv4 address is in
1181
+ * one of the [RFC 1918](https://datatracker.ietf.org/doc/html/rfc1918)
1182
+ * private ranges (e.g. `::ffff:10.0.0.1`). This is the IPv6 counterpart to
1183
+ * {@link Address4.isPrivate}; use it instead of {@link isULA} when you need to
1184
+ * catch mapped RFC 1918 addresses as well as native ULAs.
1185
+ *
1186
+ * The local-use NAT64 range is reported private as a whole rather than by
1187
+ * its embedded IPv4 address: an operator may carve a prefix of any RFC 6052
1188
+ * length out of `64:ff9b:1::/48`, so the same bits decode to different IPv4
1189
+ * addresses under different deployments and no single decoding is correct.
1190
+ * Use {@link toAddress4Nat64} with the deployment's prefix to decode one.
1191
+ * @returns {boolean}
1192
+ */
1193
+ isPrivate() {
1194
+ const embedded = this.embeddedIPv4();
1195
+ if (embedded) {
1196
+ return embedded.isPrivate();
1197
+ }
1198
+ return this.isULA() || this.isHostInSubnet(NAT64_LOCAL_USE_SUBNET);
1199
+ }
1200
+ /**
1201
+ * Returns true if the address is an IPv4-mapped / NAT64 address whose embedded
1202
+ * IPv4 address is in the carrier-grade NAT range `100.64.0.0/10`
1203
+ * ([RFC 6598](https://datatracker.ietf.org/doc/html/rfc6598)), false
1204
+ * otherwise. There is no native IPv6 CGNAT range, so this only ever returns
1205
+ * true for an embedded IPv4 address (e.g. `::ffff:100.64.0.1`).
1206
+ * @returns {boolean}
1207
+ */
1208
+ isCGNAT() {
1209
+ const embedded = this.embeddedIPv4();
1210
+ if (embedded) {
1211
+ return embedded.isCGNAT();
1212
+ }
1213
+ return false;
1214
+ }
1215
+ /**
1216
+ * Returns true if the address is an IPv4-mapped / NAT64 address whose embedded
1217
+ * IPv4 address is the limited broadcast address `255.255.255.255`
1218
+ * ([RFC 919](https://datatracker.ietf.org/doc/html/rfc919)), false otherwise.
1219
+ * There is no IPv6 broadcast, so this only ever returns true for an embedded
1220
+ * IPv4 address (e.g. `::ffff:255.255.255.255`).
1221
+ * @returns {boolean}
1222
+ */
1223
+ isBroadcast() {
1224
+ const embedded = this.embeddedIPv4();
1225
+ if (embedded) {
1226
+ return embedded.isBroadcast();
1227
+ }
1228
+ return false;
1229
+ }
1230
+ /**
1231
+ * Returns true if the address is the unspecified address `::`.
1232
+ * @returns {boolean}
1233
+ */
1234
+ isUnspecified() {
1235
+ const embedded = this.embeddedIPv4();
1236
+ if (embedded) {
1237
+ return embedded.isUnspecified();
1238
+ }
1239
+ return this.getType() === 'Unspecified';
1240
+ }
1241
+ /**
1242
+ * Returns true if the address is in the documentation prefix `2001:db8::/32` ([RFC 3849](https://datatracker.ietf.org/doc/html/rfc3849)).
1243
+ * @returns {boolean}
1244
+ */
1245
+ isDocumentation() {
1246
+ return DOCUMENTATION_SUBNETS.some((subnet) => this.isHostInSubnet(subnet));
1247
+ }
1248
+ /**
1249
+ * Returns true if the address is in the benchmarking range `2001:2::/48`
1250
+ * ([RFC 5180](https://datatracker.ietf.org/doc/html/rfc5180)) or is an
1251
+ * IPv4-mapped / NAT64 address whose embedded IPv4 address is in
1252
+ * `198.18.0.0/15`, false otherwise.
1253
+ * @returns {boolean}
1254
+ */
1255
+ isBenchmarking() {
1256
+ const embedded = this.embeddedIPv4();
1257
+ if (embedded) {
1258
+ return embedded.isBenchmarking();
1259
+ }
1260
+ return this.isHostInSubnet(BENCHMARKING_SUBNET);
1261
+ }
1262
+ /**
1263
+ * Returns true if the address is globally reachable: inside the global
1264
+ * unicast allocation `2000::/3` (the only range the [IANA IPv6 Address Space
1265
+ * Registry](https://www.iana.org/assignments/ipv6-address-space/) assigns
1266
+ * for global unicast; everything else is reserved, ULA, link-local, or
1267
+ * multicast) and not in any block the [IANA IPv6 Special-Purpose Address Registry](https://www.iana.org/assignments/iana-ipv6-special-registry/)
1268
+ * marks as not globally reachable. An IPv4-mapped or NAT64 well-known
1269
+ * address answers for its embedded IPv4 address, so `::ffff:10.0.0.1` and
1270
+ * `64:ff9b::7f00:1` are not global. Teredo (`2001::/32`) and 6to4
1271
+ * (`2002::/16`) are not global either: the registry lists them as N/A and a
1272
+ * packet to one needs a relay.
1273
+ *
1274
+ * This covers everything the individual classifiers name and the blocks they
1275
+ * do not: the discard-only prefix `100::/64`, the IETF protocol assignments
1276
+ * in `2001::/23`, the deprecated site-local `fec0::/10` and IPv4-compatible
1277
+ * `::/96` ranges, and unallocated space such as `4000::/3`. It is the single
1278
+ * predicate to use where a request must not reach an internal or
1279
+ * special-purpose destination; see SECURITY.md.
1280
+ * @returns {boolean}
1281
+ */
1282
+ isGlobal() {
1283
+ const embedded = this.embeddedIPv4();
1284
+ if (embedded) {
1285
+ return embedded.isGlobal();
1286
+ }
1287
+ return (this.isHostInSubnet(GLOBAL_UNICAST_SUBNET) &&
1288
+ common.isGloballyReachable.call(this, SPECIAL_PURPOSE_V6));
1289
+ }
1290
+ // #endregion
1291
+ // #region HTML
1292
+ /**
1293
+ * Returns the address as an HTTP URL with the host bracketed, e.g.
1294
+ * `http://[2001:db8::1]/`. If `optionalPort` is provided it is appended,
1295
+ * e.g. `http://[2001:db8::1]:8080/`.
1296
+ */
1297
+ href(optionalPort) {
1298
+ if (optionalPort === undefined) {
1299
+ optionalPort = '';
1300
+ }
1301
+ else {
1302
+ optionalPort = `:${optionalPort}`;
1303
+ }
1304
+ return `http://[${this.correctForm()}]${optionalPort}/`;
1305
+ }
1306
+ /**
1307
+ * Returns an HTML `<a>` element whose `href` encodes the address in a URL
1308
+ * hash fragment (default prefix `/#address=`). Useful for linking between
1309
+ * pages of an address-inspector UI.
1310
+ * @param options.className - CSS class for the rendered `<a>` element
1311
+ * @param options.prefix - hash prefix prepended to the address (default `/#address=`)
1312
+ * @param options.v4 - when true, render the address in v4-in-v6 form
1313
+ */
1314
+ link(options) {
1315
+ if (!options) {
1316
+ options = {};
1317
+ }
1318
+ if (options.className === undefined) {
1319
+ options.className = '';
1320
+ }
1321
+ if (options.prefix === undefined) {
1322
+ options.prefix = '/#address=';
1323
+ }
1324
+ if (options.v4 === undefined) {
1325
+ options.v4 = false;
1326
+ }
1327
+ let formFunction = this.correctForm;
1328
+ if (options.v4) {
1329
+ formFunction = this.to4in6;
1330
+ }
1331
+ const form = formFunction.call(this);
1332
+ const safeHref = helpers.escapeHtml(`${options.prefix}${form}`);
1333
+ const safeForm = helpers.escapeHtml(form);
1334
+ if (options.className) {
1335
+ const safeClass = helpers.escapeHtml(options.className);
1336
+ return `<a href="${safeHref}" class="${safeClass}">${safeForm}</a>`;
1337
+ }
1338
+ return `<a href="${safeHref}">${safeForm}</a>`;
1339
+ }
1340
+ /**
1341
+ * Groups an address.
1342
+ *
1343
+ * Returns an HTML fragment: each group is wrapped in a `<span>` carrying
1344
+ * the group classes an address-inspector UI hovers on. The address content
1345
+ * is HTML-escaped; anything you concatenate around it is your
1346
+ * responsibility.
1347
+ * @returns {String}
1348
+ */
1349
+ group() {
1350
+ if (this.elidedGroups === 0) {
1351
+ // The simple case
1352
+ return helpers.simpleGroup(this.addressMinusSuffix).join(':');
1353
+ }
1354
+ assert(typeof this.elidedGroups === 'number');
1355
+ assert(typeof this.elisionBegin === 'number');
1356
+ // The elided case
1357
+ const output = [];
1358
+ const [left, right] = this.addressMinusSuffix.split('::');
1359
+ if (left.length) {
1360
+ output.push(...helpers.simpleGroup(left));
1361
+ }
1362
+ else {
1363
+ output.push('');
1364
+ }
1365
+ const classes = ['hover-group'];
1366
+ for (let i = this.elisionBegin; i < this.elisionBegin + this.elidedGroups; i++) {
1367
+ classes.push(`group-${i}`);
1368
+ }
1369
+ output.push(`<span class="${classes.join(' ')}"></span>`);
1370
+ if (right.length) {
1371
+ output.push(...helpers.simpleGroup(right, this.elisionEnd));
1372
+ }
1373
+ else {
1374
+ output.push('');
1375
+ }
1376
+ if (this.is4()) {
1377
+ assert(this.address4 instanceof ipv4_1.Address4);
1378
+ output.pop();
1379
+ output.push(this.address4.groupForV6());
1380
+ }
1381
+ return output.join(':');
1382
+ }
1383
+ // #endregion
1384
+ // #region Regular expressions
1385
+ /**
1386
+ * Generate a regular expression string that can be used to find or validate
1387
+ * all variations of this address
1388
+ * @param {boolean} substringSearch
1389
+ * @returns {string}
1390
+ */
1391
+ regularExpressionString(substringSearch = false) {
1392
+ let output = [];
1393
+ // TODO: revisit why this is necessary
1394
+ const address6 = new Address6(this.correctForm());
1395
+ if (address6.elidedGroups === 0) {
1396
+ // The simple case
1397
+ output.push((0, regular_expressions_1.simpleRegularExpression)(address6.parsedAddress));
1398
+ }
1399
+ else if (address6.elidedGroups === constants6.GROUPS) {
1400
+ // A completely elided address
1401
+ output.push((0, regular_expressions_1.possibleElisions)(constants6.GROUPS));
1402
+ }
1403
+ else {
1404
+ // A partially elided address
1405
+ const halves = address6.address.split('::');
1406
+ if (halves[0].length) {
1407
+ output.push((0, regular_expressions_1.simpleRegularExpression)(halves[0].split(':')));
1408
+ }
1409
+ assert(typeof address6.elidedGroups === 'number');
1410
+ output.push((0, regular_expressions_1.possibleElisions)(address6.elidedGroups, halves[0].length !== 0, halves[1].length !== 0));
1411
+ if (halves[1].length) {
1412
+ output.push((0, regular_expressions_1.simpleRegularExpression)(halves[1].split(':')));
1413
+ }
1414
+ output = [output.join(':')];
1415
+ }
1416
+ if (!substringSearch) {
1417
+ output = [
1418
+ '(?=^|',
1419
+ regular_expressions_1.ADDRESS_BOUNDARY,
1420
+ '|[^\\w\\:])(',
1421
+ ...output,
1422
+ ')(?=[^\\w\\:]|',
1423
+ regular_expressions_1.ADDRESS_BOUNDARY,
1424
+ '|$)',
1425
+ ];
1426
+ }
1427
+ return output.join('');
1428
+ }
1429
+ /**
1430
+ * Generate a regular expression that can be used to find or validate all
1431
+ * variations of this address.
1432
+ * @param {boolean} substringSearch
1433
+ * @returns {RegExp}
1434
+ */
1435
+ regularExpression(substringSearch = false) {
1436
+ return new RegExp(this.regularExpressionString(substringSearch), 'i');
1437
+ }
1438
+ }
1439
+ exports.Address6 = Address6;
1440
+ const TYPE_SUBNETS = Object.keys(constants6.TYPES).map((subnet) => [
1441
+ new Address6(subnet),
1442
+ constants6.TYPES[subnet],
1443
+ ]);
1444
+ const TEREDO_SUBNET = new Address6('2001::/32');
1445
+ const SIX_TO_FOUR_SUBNET = new Address6('2002::/16');
1446
+ const ULA_SUBNET = new Address6('fc00::/7');
1447
+ const LINK_LOCAL_SUBNET = new Address6('fe80::/10');
1448
+ const DOCUMENTATION_SUBNETS = [new Address6('2001:db8::/32'), new Address6('3fff::/20')];
1449
+ const BENCHMARKING_SUBNET = new Address6('2001:2::/48');
1450
+ const GLOBAL_UNICAST_SUBNET = new Address6('2000::/3');
1451
+ const SPECIAL_PURPOSE_V6 = constants6.SPECIAL_PURPOSE.map(([cidr, , reachable]) => ({
1452
+ subnet: new Address6(cidr),
1453
+ reachable,
1454
+ }));
1455
+ const IPV4_MAPPED_SUBNET = new Address6('::ffff:0:0/96');
1456
+ const NAT64_WELL_KNOWN_SUBNET = new Address6('64:ff9b::/96');
1457
+ const NAT64_LOCAL_USE_SUBNET = new Address6('64:ff9b:1::/48');
1458
+ //# sourceMappingURL=ipv6.js.map