@goodpeanuts/dsh-sui 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (823) hide show
  1. package/README.md +100 -3
  2. package/THIRD_PARTY_NOTICES.txt +1064 -0
  3. package/apps/cli/dist/_virtual/_rolldown/runtime.mjs +35 -0
  4. package/apps/cli/dist/args.mjs +204 -0
  5. package/apps/cli/dist/cli.mjs +392 -0
  6. package/apps/cli/dist/errors.mjs +32 -0
  7. package/apps/cli/dist/help.mjs +73 -0
  8. package/apps/cli/dist/io.mjs +37 -0
  9. package/apps/cli/dist/main.mjs +10 -0
  10. package/apps/cli/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
  11. package/apps/cli/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.mjs +81 -0
  12. package/apps/cli/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.mjs +1 -0
  13. package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
  14. package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
  15. package/apps/cli/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
  16. package/apps/cli/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
  17. package/apps/cli/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
  18. package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
  19. package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
  20. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
  21. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
  22. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
  23. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
  24. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
  25. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
  26. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
  27. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
  28. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
  29. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
  30. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
  31. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
  32. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
  33. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
  34. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
  35. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
  36. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
  37. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
  38. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
  39. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
  40. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
  41. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
  42. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
  43. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
  44. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
  45. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
  46. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
  47. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
  48. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
  49. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
  50. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
  51. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
  52. package/apps/cli/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
  53. package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
  54. package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
  55. package/apps/cli/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
  56. package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
  57. package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
  58. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
  59. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
  60. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
  61. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
  62. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
  63. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
  64. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
  65. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
  66. package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
  67. package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
  68. package/apps/cli/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
  69. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
  70. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
  71. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
  72. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
  73. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
  74. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
  75. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
  76. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
  77. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
  78. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
  79. package/apps/cli/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
  80. package/apps/cli/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
  81. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  82. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  83. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
  84. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
  85. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
  86. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
  87. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
  88. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
  89. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
  90. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
  91. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
  92. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
  93. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
  94. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
  95. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
  96. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
  97. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
  98. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
  99. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
  100. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-unix-socket-url.mjs +25 -0
  101. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
  102. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
  103. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
  104. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
  105. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
  106. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
  107. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
  108. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
  109. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
  110. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
  111. package/apps/cli/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
  112. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
  113. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
  114. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
  115. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
  116. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
  117. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
  118. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
  119. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
  120. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
  121. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
  122. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
  123. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.mjs +15 -0
  124. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
  125. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
  126. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
  127. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
  128. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.mjs +16 -0
  129. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
  130. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
  131. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
  132. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
  133. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
  134. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
  135. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
  136. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
  137. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
  138. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
  139. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
  140. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
  141. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
  142. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
  143. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
  144. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
  145. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
  146. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
  147. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
  148. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
  149. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
  150. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
  151. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
  152. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
  153. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
  154. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
  155. package/apps/cli/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
  156. package/apps/cli/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
  157. package/apps/cli/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
  158. package/apps/cli/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
  159. package/apps/cli/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
  160. package/apps/cli/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
  161. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
  162. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
  163. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
  164. package/apps/cli/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
  165. package/apps/cli/dist/node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.mjs +187 -0
  166. package/apps/cli/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
  167. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
  168. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
  169. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
  170. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
  171. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
  172. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
  173. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
  174. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  175. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
  176. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
  177. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
  178. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
  179. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
  180. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
  181. package/apps/cli/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
  182. package/apps/cli/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
  183. package/apps/cli/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
  184. package/apps/cli/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
  185. package/apps/cli/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
  186. package/apps/cli/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
  187. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
  188. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
  189. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
  190. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
  191. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
  192. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
  193. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
  194. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
  195. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
  196. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
  197. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
  198. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
  199. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
  200. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
  201. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
  202. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
  203. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
  204. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
  205. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
  206. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
  207. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
  208. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
  209. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
  210. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
  211. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
  212. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
  213. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
  214. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
  215. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
  216. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
  217. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
  218. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
  219. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
  220. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
  221. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
  222. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
  223. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
  224. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
  225. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
  226. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
  227. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
  228. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
  229. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
  230. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
  231. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
  232. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
  233. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
  234. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
  235. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
  236. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
  237. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
  238. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
  239. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
  240. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
  241. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
  242. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
  243. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
  244. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
  245. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
  246. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
  247. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
  248. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
  249. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
  250. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
  251. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
  252. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
  253. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
  254. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
  255. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
  256. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
  257. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
  258. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
  259. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
  260. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
  261. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
  262. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
  263. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
  264. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
  265. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
  266. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
  267. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
  268. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
  269. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
  270. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
  271. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
  272. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
  273. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
  274. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
  275. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
  276. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
  277. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
  278. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
  279. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
  280. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
  281. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
  282. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
  283. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
  284. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
  285. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
  286. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
  287. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
  288. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
  289. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
  290. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
  291. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
  292. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
  293. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
  294. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
  295. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
  296. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
  297. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
  298. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
  299. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
  300. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
  301. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
  302. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
  303. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
  304. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
  305. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
  306. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
  307. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
  308. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
  309. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
  310. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
  311. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
  312. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
  313. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
  314. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
  315. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
  316. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
  317. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
  318. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
  319. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
  320. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
  321. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
  322. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
  323. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
  324. package/apps/cli/dist/packages/data-maintenance/src/archive.mjs +143 -0
  325. package/apps/cli/dist/packages/data-maintenance/src/contracts.mjs +17 -0
  326. package/apps/cli/dist/packages/data-maintenance/src/files.mjs +121 -0
  327. package/apps/cli/dist/packages/data-maintenance/src/index.mjs +494 -0
  328. package/apps/cli/dist/packages/data-maintenance/src/lease.mjs +53 -0
  329. package/apps/cli/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
  330. package/apps/cli/dist/packages/data-maintenance/src/paths.mjs +15 -0
  331. package/apps/cli/dist/packages/feidee/src/client.mjs +635 -0
  332. package/apps/cli/dist/packages/feidee/src/hash.mjs +10 -0
  333. package/apps/cli/dist/packages/feidee/src/index.mjs +8 -0
  334. package/apps/cli/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
  335. package/apps/cli/dist/packages/feidee/src/parsers.mjs +634 -0
  336. package/apps/cli/dist/packages/feidee/src/transaction-text.mjs +39 -0
  337. package/apps/cli/dist/packages/feidee/src/write-contract.mjs +273 -0
  338. package/apps/cli/dist/packages/finance/src/date-range.mjs +74 -0
  339. package/apps/cli/dist/packages/finance/src/domain.mjs +18 -0
  340. package/apps/cli/dist/packages/finance/src/errors.mjs +221 -0
  341. package/apps/cli/dist/packages/finance/src/index.mjs +16 -0
  342. package/apps/cli/dist/packages/finance/src/metadata-query.mjs +32 -0
  343. package/apps/cli/dist/packages/finance/src/sync/progress.mjs +27 -0
  344. package/apps/cli/dist/packages/finance/src/sync/service.mjs +282 -0
  345. package/apps/cli/dist/packages/finance/src/transactions/audit.mjs +104 -0
  346. package/apps/cli/dist/packages/finance/src/transactions/canary.mjs +85 -0
  347. package/apps/cli/dist/packages/finance/src/transactions/compare.mjs +76 -0
  348. package/apps/cli/dist/packages/finance/src/transactions/contracts.mjs +92 -0
  349. package/apps/cli/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
  350. package/apps/cli/dist/packages/finance/src/transactions/mutation.mjs +656 -0
  351. package/apps/cli/dist/packages/finance/src/transactions/query.mjs +59 -0
  352. package/apps/cli/dist/packages/finance/src/transactions/statistics.mjs +67 -0
  353. package/apps/cli/dist/packages/finance/src/write-policy.mjs +4 -0
  354. package/apps/cli/dist/packages/finance-module/src/balance-preview.mjs +4 -0
  355. package/apps/cli/dist/packages/finance-module/src/contracts.mjs +13 -0
  356. package/apps/cli/dist/packages/finance-module/src/database.mjs +1292 -0
  357. package/apps/cli/dist/packages/finance-module/src/draft-entries.mjs +89 -0
  358. package/apps/cli/dist/packages/finance-module/src/draft-receipts.mjs +8 -0
  359. package/apps/cli/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
  360. package/apps/cli/dist/packages/finance-module/src/node.mjs +76 -0
  361. package/apps/cli/dist/packages/finance-module/src/personal-preferences.mjs +29 -0
  362. package/apps/cli/dist/packages/finance-module/src/route-contracts.mjs +11 -0
  363. package/apps/cli/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
  364. package/apps/cli/dist/packages/finance-module/src/service-record-domain.mjs +16 -0
  365. package/apps/cli/dist/packages/finance-module/src/service-record-store.mjs +119 -0
  366. package/apps/cli/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
  367. package/apps/cli/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
  368. package/apps/cli/dist/packages/finance-module/src/storage.mjs +282 -0
  369. package/apps/cli/dist/packages/finance-module/src/web-contracts.mjs +38 -0
  370. package/apps/cli/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
  371. package/apps/cli/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
  372. package/apps/cli/dist/packages/local-store/src/database.mjs +1523 -0
  373. package/apps/cli/dist/packages/local-store/src/exchange-rates.mjs +169 -0
  374. package/apps/cli/dist/packages/local-store/src/node.mjs +71 -0
  375. package/apps/cli/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
  376. package/apps/cli/dist/packages/sdk/src/auth.mjs +89 -0
  377. package/apps/cli/dist/packages/sdk/src/cache-analysis.mjs +393 -0
  378. package/apps/cli/dist/packages/sdk/src/config.mjs +64 -0
  379. package/apps/cli/dist/packages/sdk/src/credential-identity.mjs +8 -0
  380. package/apps/cli/dist/packages/sdk/src/credentials.mjs +86 -0
  381. package/apps/cli/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
  382. package/apps/cli/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
  383. package/apps/cli/dist/packages/sdk/src/finance-session.mjs +215 -0
  384. package/apps/cli/dist/packages/sdk/src/frankfurter.mjs +125 -0
  385. package/apps/cli/dist/packages/sdk/src/node.mjs +53 -0
  386. package/apps/cli/dist/packages/sdk/src/probe.mjs +65 -0
  387. package/apps/cli/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
  388. package/apps/cli/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
  389. package/apps/cli/dist/packages/sdk/src/resource-lease.mjs +143 -0
  390. package/apps/cli/dist/packages/sdk/src/runtime.mjs +643 -0
  391. package/apps/cli/dist/storage.mjs +11 -0
  392. package/bundles/sui-ledger/dist/_virtual/_rolldown/runtime.mjs +35 -0
  393. package/bundles/sui-ledger/dist/capabilities/tools.mjs +32 -0
  394. package/bundles/sui-ledger/dist/client.js +23511 -0
  395. package/bundles/sui-ledger/dist/finance-prompt.mjs +30 -0
  396. package/bundles/sui-ledger/dist/finance-state-context.mjs +38 -0
  397. package/bundles/sui-ledger/dist/index.mjs +198 -0
  398. package/bundles/sui-ledger/dist/maintenance-cli.mjs +76 -0
  399. package/bundles/sui-ledger/dist/node_modules/.pnpm/@deepseek-ai_dsh-home-paths_159c15e70066431314381a350c2ee56a/node_modules/@deepseek-ai/dsh-home-paths/lib/index.mjs +67 -0
  400. package/bundles/sui-ledger/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
  401. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.mjs +81 -0
  402. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.mjs +1 -0
  403. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
  404. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
  405. package/bundles/sui-ledger/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
  406. package/bundles/sui-ledger/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
  407. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
  408. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
  409. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
  410. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
  411. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
  412. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
  413. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
  414. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
  415. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
  416. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
  417. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
  418. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
  419. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
  420. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
  421. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
  422. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
  423. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
  424. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
  425. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
  426. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
  427. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
  428. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
  429. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
  430. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
  431. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
  432. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
  433. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
  434. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
  435. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
  436. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
  437. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
  438. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
  439. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
  440. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
  441. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
  442. package/bundles/sui-ledger/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
  443. package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
  444. package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
  445. package/bundles/sui-ledger/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
  446. package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
  447. package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
  448. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
  449. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
  450. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
  451. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
  452. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
  453. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
  454. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
  455. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
  456. package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
  457. package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
  458. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
  459. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
  460. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
  461. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
  462. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
  463. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
  464. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
  465. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
  466. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
  467. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
  468. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
  469. package/bundles/sui-ledger/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
  470. package/bundles/sui-ledger/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
  471. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  472. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  473. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
  474. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
  475. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
  476. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
  477. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
  478. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
  479. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
  480. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
  481. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
  482. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
  483. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
  484. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
  485. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
  486. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
  487. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
  488. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
  489. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
  490. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-unix-socket-url.mjs +25 -0
  491. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
  492. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
  493. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
  494. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
  495. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
  496. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
  497. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
  498. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
  499. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
  500. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
  501. package/bundles/sui-ledger/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
  502. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
  503. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
  504. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
  505. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
  506. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
  507. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
  508. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
  509. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
  510. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
  511. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
  512. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
  513. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.mjs +15 -0
  514. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
  515. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
  516. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
  517. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
  518. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.mjs +16 -0
  519. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
  520. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
  521. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
  522. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
  523. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
  524. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
  525. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
  526. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
  527. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
  528. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
  529. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
  530. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
  531. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
  532. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
  533. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
  534. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
  535. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
  536. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
  537. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
  538. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
  539. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
  540. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
  541. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
  542. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
  543. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
  544. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
  545. package/bundles/sui-ledger/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
  546. package/bundles/sui-ledger/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
  547. package/bundles/sui-ledger/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
  548. package/bundles/sui-ledger/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
  549. package/bundles/sui-ledger/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
  550. package/bundles/sui-ledger/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
  551. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
  552. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
  553. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
  554. package/bundles/sui-ledger/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
  555. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.mjs +187 -0
  556. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
  557. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
  558. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
  559. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
  560. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
  561. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
  562. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
  563. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
  564. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  565. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
  566. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
  567. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
  568. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
  569. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
  570. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
  571. package/bundles/sui-ledger/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
  572. package/bundles/sui-ledger/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
  573. package/bundles/sui-ledger/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
  574. package/bundles/sui-ledger/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
  575. package/bundles/sui-ledger/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
  576. package/bundles/sui-ledger/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
  577. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
  578. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
  579. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
  580. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
  581. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
  582. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
  583. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
  584. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
  585. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
  586. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
  587. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
  588. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
  589. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
  590. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
  591. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
  592. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
  593. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
  594. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
  595. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
  596. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
  597. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
  598. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
  599. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
  600. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
  601. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
  602. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
  603. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
  604. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
  605. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
  606. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
  607. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
  608. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
  609. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
  610. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
  611. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
  612. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
  613. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
  614. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
  615. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
  616. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
  617. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
  618. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
  619. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
  620. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
  621. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
  622. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
  623. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
  624. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
  625. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
  626. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
  627. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
  628. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
  629. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
  630. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
  631. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
  632. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
  633. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
  634. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
  635. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
  636. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
  637. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
  638. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
  639. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
  640. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
  641. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
  642. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
  643. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
  644. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
  645. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
  646. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
  647. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
  648. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
  649. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
  650. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
  651. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
  652. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
  653. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
  654. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
  655. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
  656. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
  657. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
  658. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
  659. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
  660. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
  661. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
  662. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
  663. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
  664. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
  665. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
  666. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
  667. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
  668. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
  669. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
  670. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
  671. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
  672. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
  673. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
  674. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
  675. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
  676. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
  677. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
  678. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
  679. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
  680. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
  681. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
  682. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
  683. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
  684. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
  685. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
  686. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
  687. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
  688. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
  689. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
  690. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
  691. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
  692. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
  693. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
  694. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
  695. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
  696. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
  697. package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/dist/cpexcel.mjs +3348 -0
  698. package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.mjs +26473 -0
  699. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
  700. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
  701. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
  702. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
  703. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
  704. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
  705. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
  706. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
  707. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
  708. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
  709. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
  710. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
  711. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
  712. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
  713. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
  714. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
  715. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
  716. package/bundles/sui-ledger/dist/packages/data-maintenance/src/archive.mjs +143 -0
  717. package/bundles/sui-ledger/dist/packages/data-maintenance/src/contracts.mjs +17 -0
  718. package/bundles/sui-ledger/dist/packages/data-maintenance/src/files.mjs +158 -0
  719. package/bundles/sui-ledger/dist/packages/data-maintenance/src/index.mjs +494 -0
  720. package/bundles/sui-ledger/dist/packages/data-maintenance/src/lease.mjs +53 -0
  721. package/bundles/sui-ledger/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
  722. package/bundles/sui-ledger/dist/packages/data-maintenance/src/paths.mjs +15 -0
  723. package/bundles/sui-ledger/dist/packages/data-maintenance/src/runtime.mjs +132 -0
  724. package/bundles/sui-ledger/dist/packages/feidee/src/client.mjs +635 -0
  725. package/bundles/sui-ledger/dist/packages/feidee/src/hash.mjs +10 -0
  726. package/bundles/sui-ledger/dist/packages/feidee/src/index.mjs +8 -0
  727. package/bundles/sui-ledger/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
  728. package/bundles/sui-ledger/dist/packages/feidee/src/parsers.mjs +634 -0
  729. package/bundles/sui-ledger/dist/packages/feidee/src/transaction-text.mjs +39 -0
  730. package/bundles/sui-ledger/dist/packages/feidee/src/write-contract.mjs +273 -0
  731. package/bundles/sui-ledger/dist/packages/finance/src/date-range.mjs +74 -0
  732. package/bundles/sui-ledger/dist/packages/finance/src/domain.mjs +18 -0
  733. package/bundles/sui-ledger/dist/packages/finance/src/errors.mjs +221 -0
  734. package/bundles/sui-ledger/dist/packages/finance/src/index.mjs +17 -0
  735. package/bundles/sui-ledger/dist/packages/finance/src/json-schema.mjs +212 -0
  736. package/bundles/sui-ledger/dist/packages/finance/src/metadata-query.mjs +32 -0
  737. package/bundles/sui-ledger/dist/packages/finance/src/money.mjs +39 -0
  738. package/bundles/sui-ledger/dist/packages/finance/src/public-error.mjs +10 -0
  739. package/bundles/sui-ledger/dist/packages/finance/src/sync/progress.mjs +27 -0
  740. package/bundles/sui-ledger/dist/packages/finance/src/sync/service.mjs +282 -0
  741. package/bundles/sui-ledger/dist/packages/finance/src/transactions/audit.mjs +104 -0
  742. package/bundles/sui-ledger/dist/packages/finance/src/transactions/canary.mjs +85 -0
  743. package/bundles/sui-ledger/dist/packages/finance/src/transactions/compare.mjs +76 -0
  744. package/bundles/sui-ledger/dist/packages/finance/src/transactions/contracts.mjs +83 -0
  745. package/bundles/sui-ledger/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
  746. package/bundles/sui-ledger/dist/packages/finance/src/transactions/mutation.mjs +656 -0
  747. package/bundles/sui-ledger/dist/packages/finance/src/transactions/query.mjs +59 -0
  748. package/bundles/sui-ledger/dist/packages/finance/src/transactions/statistics.mjs +67 -0
  749. package/bundles/sui-ledger/dist/packages/finance/src/write-policy.mjs +4 -0
  750. package/bundles/sui-ledger/dist/packages/finance-module/src/balance-preview.mjs +119 -0
  751. package/bundles/sui-ledger/dist/packages/finance-module/src/capabilities.mjs +1306 -0
  752. package/bundles/sui-ledger/dist/packages/finance-module/src/checkpoint-review.mjs +75 -0
  753. package/bundles/sui-ledger/dist/packages/finance-module/src/commit-failure.mjs +161 -0
  754. package/bundles/sui-ledger/dist/packages/finance-module/src/commit-recovery.mjs +41 -0
  755. package/bundles/sui-ledger/dist/packages/finance-module/src/contracts.mjs +13 -0
  756. package/bundles/sui-ledger/dist/packages/finance-module/src/data-version.mjs +8 -0
  757. package/bundles/sui-ledger/dist/packages/finance-module/src/database.mjs +1292 -0
  758. package/bundles/sui-ledger/dist/packages/finance-module/src/draft-entries.mjs +216 -0
  759. package/bundles/sui-ledger/dist/packages/finance-module/src/draft-receipts.mjs +16 -0
  760. package/bundles/sui-ledger/dist/packages/finance-module/src/finance-guidance.mjs +23 -0
  761. package/bundles/sui-ledger/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
  762. package/bundles/sui-ledger/dist/packages/finance-module/src/index.mjs +17 -0
  763. package/bundles/sui-ledger/dist/packages/finance-module/src/interactions.mjs +229 -0
  764. package/bundles/sui-ledger/dist/packages/finance-module/src/model-pages.mjs +61 -0
  765. package/bundles/sui-ledger/dist/packages/finance-module/src/model-views.mjs +206 -0
  766. package/bundles/sui-ledger/dist/packages/finance-module/src/node.mjs +76 -0
  767. package/bundles/sui-ledger/dist/packages/finance-module/src/personal-preferences.mjs +103 -0
  768. package/bundles/sui-ledger/dist/packages/finance-module/src/route-contracts.mjs +11 -0
  769. package/bundles/sui-ledger/dist/packages/finance-module/src/routes.mjs +427 -0
  770. package/bundles/sui-ledger/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
  771. package/bundles/sui-ledger/dist/packages/finance-module/src/sdk-adapter.mjs +100 -0
  772. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-domain.mjs +207 -0
  773. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-routes.mjs +91 -0
  774. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-store.mjs +119 -0
  775. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-tools.mjs +283 -0
  776. package/bundles/sui-ledger/dist/packages/finance-module/src/service-records.mjs +626 -0
  777. package/bundles/sui-ledger/dist/packages/finance-module/src/service.mjs +2525 -0
  778. package/bundles/sui-ledger/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
  779. package/bundles/sui-ledger/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
  780. package/bundles/sui-ledger/dist/packages/finance-module/src/source-reader.mjs +354 -0
  781. package/bundles/sui-ledger/dist/packages/finance-module/src/storage.mjs +282 -0
  782. package/bundles/sui-ledger/dist/packages/finance-module/src/tool-contracts.mjs +42 -0
  783. package/bundles/sui-ledger/dist/packages/finance-module/src/web-contracts.mjs +74 -0
  784. package/bundles/sui-ledger/dist/packages/interaction/src/registry.mjs +36 -0
  785. package/bundles/sui-ledger/dist/packages/interaction/src/service.mjs +424 -0
  786. package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
  787. package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
  788. package/bundles/sui-ledger/dist/packages/local-store/src/database.mjs +1523 -0
  789. package/bundles/sui-ledger/dist/packages/local-store/src/exchange-rates.mjs +169 -0
  790. package/bundles/sui-ledger/dist/packages/local-store/src/node.mjs +71 -0
  791. package/bundles/sui-ledger/dist/packages/local-store/src/readonly-node.mjs +486 -0
  792. package/bundles/sui-ledger/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
  793. package/bundles/sui-ledger/dist/packages/sdk/src/cache-analysis.mjs +597 -0
  794. package/bundles/sui-ledger/dist/packages/sdk/src/config.mjs +64 -0
  795. package/bundles/sui-ledger/dist/packages/sdk/src/credential-identity.mjs +7 -0
  796. package/bundles/sui-ledger/dist/packages/sdk/src/credentials.mjs +86 -0
  797. package/bundles/sui-ledger/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
  798. package/bundles/sui-ledger/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
  799. package/bundles/sui-ledger/dist/packages/sdk/src/finance-session.mjs +215 -0
  800. package/bundles/sui-ledger/dist/packages/sdk/src/frankfurter.mjs +125 -0
  801. package/bundles/sui-ledger/dist/packages/sdk/src/ledger-money.mjs +183 -0
  802. package/bundles/sui-ledger/dist/packages/sdk/src/node-readonly.mjs +381 -0
  803. package/bundles/sui-ledger/dist/packages/sdk/src/node.mjs +53 -0
  804. package/bundles/sui-ledger/dist/packages/sdk/src/probe.mjs +65 -0
  805. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
  806. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
  807. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease.mjs +143 -0
  808. package/bundles/sui-ledger/dist/packages/sdk/src/runtime.mjs +643 -0
  809. package/bundles/sui-ledger/dist/preferences-context.mjs +21 -0
  810. package/bundles/sui-ledger/dist/remote-write-policy.mjs +51 -0
  811. package/bundles/sui-ledger/dist/routes/finance-api.mjs +380 -0
  812. package/bundles/sui-ledger/dist/session/attachment-ownership.mjs +53 -0
  813. package/bundles/sui-ledger/dist/session/call-context.mjs +14 -0
  814. package/bundles/sui-ledger/dist/session/source-ports.mjs +74 -0
  815. package/bundles/sui-ledger/dist/storage/business-runtime.mjs +116 -0
  816. package/bundles/sui-ledger/dist/storage/maintenance-http.mjs +159 -0
  817. package/bundles/sui-ledger/dist/storage/paths.mjs +15 -0
  818. package/bundles/sui-ledger/dist/style.css +15416 -0
  819. package/bundles/sui-ledger/icon.svg +1 -0
  820. package/bundles/sui-ledger/locale/en.json +6 -0
  821. package/bundles/sui-ledger/locale/zh-CN.json +6 -0
  822. package/cordis.patch.yml +4 -0
  823. package/package.json +111 -3
@@ -0,0 +1,1622 @@
1
+ import { __toESM } from "../../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import is, { assert } from "../../../../../../@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs";
3
+ import lowercaseKeys from "../../../../../../lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs";
4
+ import { isFormData } from "../../../../../../form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs";
5
+ import CacheableLookup from "../../../../../../cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs";
6
+ import { require_source } from "../../../../../../http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs";
7
+ import parseLinkHeader from "./parse-link-header.mjs";
8
+ import http from "node:http";
9
+ import { inspect, promisify } from "node:util";
10
+ import { checkServerIdentity } from "node:tls";
11
+ import process from "node:process";
12
+ import https from "node:https";
13
+ //#region ../../node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.js
14
+ var import_source = /* @__PURE__ */ __toESM(require_source(), 1);
15
+ const [major, minor] = process.versions.node.split(".").map(Number);
16
+ /**
17
+ Generic helper that wraps any assertion function to add context to error messages.
18
+ */
19
+ function wrapAssertionWithContext(optionName, assertionFn) {
20
+ try {
21
+ assertionFn();
22
+ } catch (error) {
23
+ if (error instanceof Error) error.message = `Option '${optionName}': ${error.message}`;
24
+ throw error;
25
+ }
26
+ }
27
+ /**
28
+ Helper function that wraps assert.any() to provide better error messages.
29
+ When assertion fails, it includes the option name in the error message.
30
+ */
31
+ function assertAny(optionName, validators, value) {
32
+ wrapAssertionWithContext(optionName, () => {
33
+ assert.any(validators, value);
34
+ });
35
+ }
36
+ /**
37
+ Helper function that wraps assert.plainObject() to provide better error messages.
38
+ When assertion fails, it includes the option name in the error message.
39
+ */
40
+ function assertPlainObject(optionName, value) {
41
+ wrapAssertionWithContext(optionName, () => {
42
+ assert.plainObject(value);
43
+ });
44
+ }
45
+ function validateSearchParameters(searchParameters) {
46
+ for (const key in searchParameters) {
47
+ const value = searchParameters[key];
48
+ assertAny(`searchParams.${key}`, [
49
+ is.string,
50
+ is.number,
51
+ is.boolean,
52
+ is.null,
53
+ is.undefined
54
+ ], value);
55
+ }
56
+ }
57
+ const globalCache = /* @__PURE__ */ new Map();
58
+ let globalDnsCache;
59
+ const getGlobalDnsCache = () => {
60
+ if (globalDnsCache) return globalDnsCache;
61
+ globalDnsCache = new CacheableLookup();
62
+ return globalDnsCache;
63
+ };
64
+ const wrapQuickLruIfNeeded = (value) => {
65
+ if (value?.[Symbol.toStringTag] === "QuickLRU" && typeof value.evict === "function") return {
66
+ get(key) {
67
+ return value.get(key);
68
+ },
69
+ set(key, cacheValue, ttl) {
70
+ if (ttl === void 0) value.set(key, cacheValue);
71
+ else value.set(key, cacheValue, { maxAge: ttl });
72
+ return true;
73
+ },
74
+ delete(key) {
75
+ return value.delete(key);
76
+ },
77
+ clear() {
78
+ return value.clear();
79
+ },
80
+ has(key) {
81
+ return value.has(key);
82
+ }
83
+ };
84
+ return value;
85
+ };
86
+ const defaultInternals = {
87
+ request: void 0,
88
+ agent: {
89
+ http: void 0,
90
+ https: void 0,
91
+ http2: void 0
92
+ },
93
+ h2session: void 0,
94
+ decompress: true,
95
+ timeout: {
96
+ connect: void 0,
97
+ lookup: void 0,
98
+ read: void 0,
99
+ request: void 0,
100
+ response: void 0,
101
+ secureConnect: void 0,
102
+ send: void 0,
103
+ socket: void 0
104
+ },
105
+ prefixUrl: "",
106
+ body: void 0,
107
+ form: void 0,
108
+ json: void 0,
109
+ cookieJar: void 0,
110
+ ignoreInvalidCookies: false,
111
+ searchParams: void 0,
112
+ dnsLookup: void 0,
113
+ dnsCache: void 0,
114
+ context: {},
115
+ hooks: {
116
+ init: [],
117
+ beforeRequest: [],
118
+ beforeError: [],
119
+ beforeRedirect: [],
120
+ beforeRetry: [],
121
+ beforeCache: [],
122
+ afterResponse: []
123
+ },
124
+ followRedirect: true,
125
+ maxRedirects: 10,
126
+ cache: void 0,
127
+ throwHttpErrors: true,
128
+ username: "",
129
+ password: "",
130
+ http2: false,
131
+ allowGetBody: false,
132
+ copyPipedHeaders: true,
133
+ headers: { "user-agent": "got (https://github.com/sindresorhus/got)" },
134
+ methodRewriting: false,
135
+ dnsLookupIpVersion: void 0,
136
+ parseJson: JSON.parse,
137
+ stringifyJson: JSON.stringify,
138
+ retry: {
139
+ limit: 2,
140
+ methods: [
141
+ "GET",
142
+ "PUT",
143
+ "HEAD",
144
+ "DELETE",
145
+ "OPTIONS",
146
+ "TRACE"
147
+ ],
148
+ statusCodes: [
149
+ 408,
150
+ 413,
151
+ 429,
152
+ 500,
153
+ 502,
154
+ 503,
155
+ 504,
156
+ 521,
157
+ 522,
158
+ 524
159
+ ],
160
+ errorCodes: [
161
+ "ETIMEDOUT",
162
+ "ECONNRESET",
163
+ "EADDRINUSE",
164
+ "ECONNREFUSED",
165
+ "EPIPE",
166
+ "ENOTFOUND",
167
+ "ENETUNREACH",
168
+ "EAI_AGAIN"
169
+ ],
170
+ maxRetryAfter: void 0,
171
+ calculateDelay: ({ computedValue }) => computedValue,
172
+ backoffLimit: Number.POSITIVE_INFINITY,
173
+ noise: 100,
174
+ enforceRetryRules: false
175
+ },
176
+ localAddress: void 0,
177
+ method: "GET",
178
+ createConnection: void 0,
179
+ cacheOptions: {
180
+ shared: void 0,
181
+ cacheHeuristic: void 0,
182
+ immutableMinTimeToLive: void 0,
183
+ ignoreCargoCult: void 0
184
+ },
185
+ https: {
186
+ alpnProtocols: void 0,
187
+ rejectUnauthorized: void 0,
188
+ checkServerIdentity: void 0,
189
+ serverName: void 0,
190
+ certificateAuthority: void 0,
191
+ key: void 0,
192
+ certificate: void 0,
193
+ passphrase: void 0,
194
+ pfx: void 0,
195
+ ciphers: void 0,
196
+ honorCipherOrder: void 0,
197
+ minVersion: void 0,
198
+ maxVersion: void 0,
199
+ signatureAlgorithms: void 0,
200
+ tlsSessionLifetime: void 0,
201
+ dhparam: void 0,
202
+ ecdhCurve: void 0,
203
+ certificateRevocationLists: void 0,
204
+ secureOptions: void 0
205
+ },
206
+ encoding: void 0,
207
+ resolveBodyOnly: false,
208
+ isStream: false,
209
+ responseType: "text",
210
+ url: void 0,
211
+ pagination: {
212
+ transform(response) {
213
+ if (response.request.options.responseType === "json") return response.body;
214
+ return JSON.parse(response.body);
215
+ },
216
+ paginate({ response }) {
217
+ const rawLinkHeader = response.headers.link;
218
+ if (typeof rawLinkHeader !== "string" || rawLinkHeader.trim() === "") return false;
219
+ const next = parseLinkHeader(rawLinkHeader).find((entry) => entry.parameters.rel === "next" || entry.parameters.rel === "\"next\"");
220
+ if (next) return { url: new URL(next.reference, response.url) };
221
+ return false;
222
+ },
223
+ filter: () => true,
224
+ shouldContinue: () => true,
225
+ countLimit: Number.POSITIVE_INFINITY,
226
+ backoff: 0,
227
+ requestLimit: 1e4,
228
+ stackAllItems: false
229
+ },
230
+ setHost: true,
231
+ maxHeaderSize: void 0,
232
+ signal: void 0,
233
+ enableUnixSockets: false,
234
+ strictContentLength: false
235
+ };
236
+ const cloneInternals = (internals) => {
237
+ const { hooks, retry } = internals;
238
+ return {
239
+ ...internals,
240
+ context: { ...internals.context },
241
+ cacheOptions: { ...internals.cacheOptions },
242
+ https: { ...internals.https },
243
+ agent: { ...internals.agent },
244
+ headers: { ...internals.headers },
245
+ retry: {
246
+ ...retry,
247
+ errorCodes: [...retry.errorCodes],
248
+ methods: [...retry.methods],
249
+ statusCodes: [...retry.statusCodes]
250
+ },
251
+ timeout: { ...internals.timeout },
252
+ hooks: {
253
+ init: [...hooks.init],
254
+ beforeRequest: [...hooks.beforeRequest],
255
+ beforeError: [...hooks.beforeError],
256
+ beforeRedirect: [...hooks.beforeRedirect],
257
+ beforeRetry: [...hooks.beforeRetry],
258
+ beforeCache: [...hooks.beforeCache],
259
+ afterResponse: [...hooks.afterResponse]
260
+ },
261
+ searchParams: internals.searchParams ? new URLSearchParams(internals.searchParams) : void 0,
262
+ pagination: { ...internals.pagination }
263
+ };
264
+ };
265
+ const cloneRaw = (raw) => {
266
+ const { hooks, retry } = raw;
267
+ const result = { ...raw };
268
+ if (is.object(raw.context)) result.context = { ...raw.context };
269
+ if (is.object(raw.cacheOptions)) result.cacheOptions = { ...raw.cacheOptions };
270
+ if (is.object(raw.https)) result.https = { ...raw.https };
271
+ if (is.object(raw.cacheOptions)) result.cacheOptions = { ...result.cacheOptions };
272
+ if (is.object(raw.agent)) result.agent = { ...raw.agent };
273
+ if (is.object(raw.headers)) result.headers = { ...raw.headers };
274
+ if (is.object(retry)) {
275
+ result.retry = { ...retry };
276
+ if (is.array(retry.errorCodes)) result.retry.errorCodes = [...retry.errorCodes];
277
+ if (is.array(retry.methods)) result.retry.methods = [...retry.methods];
278
+ if (is.array(retry.statusCodes)) result.retry.statusCodes = [...retry.statusCodes];
279
+ }
280
+ if (is.object(raw.timeout)) result.timeout = { ...raw.timeout };
281
+ if (is.object(hooks)) {
282
+ result.hooks = { ...hooks };
283
+ if (is.array(hooks.init)) result.hooks.init = [...hooks.init];
284
+ if (is.array(hooks.beforeRequest)) result.hooks.beforeRequest = [...hooks.beforeRequest];
285
+ if (is.array(hooks.beforeError)) result.hooks.beforeError = [...hooks.beforeError];
286
+ if (is.array(hooks.beforeRedirect)) result.hooks.beforeRedirect = [...hooks.beforeRedirect];
287
+ if (is.array(hooks.beforeRetry)) result.hooks.beforeRetry = [...hooks.beforeRetry];
288
+ if (is.array(hooks.beforeCache)) result.hooks.beforeCache = [...hooks.beforeCache];
289
+ if (is.array(hooks.afterResponse)) result.hooks.afterResponse = [...hooks.afterResponse];
290
+ }
291
+ if (raw.searchParams) {
292
+ if (is.string(raw.searchParams)) result.searchParams = raw.searchParams;
293
+ else if (raw.searchParams instanceof URLSearchParams) result.searchParams = new URLSearchParams(raw.searchParams);
294
+ else if (is.object(raw.searchParams)) result.searchParams = { ...raw.searchParams };
295
+ }
296
+ if (is.object(raw.pagination)) result.pagination = { ...raw.pagination };
297
+ return result;
298
+ };
299
+ const getHttp2TimeoutOption = (internals) => {
300
+ const delays = [
301
+ internals.timeout.socket,
302
+ internals.timeout.connect,
303
+ internals.timeout.lookup,
304
+ internals.timeout.request,
305
+ internals.timeout.secureConnect
306
+ ].filter((delay) => typeof delay === "number");
307
+ if (delays.length > 0) return Math.min(...delays);
308
+ };
309
+ const init = (options, withOptions, self) => {
310
+ const initHooks = options.hooks?.init;
311
+ if (initHooks) for (const hook of initHooks) hook(withOptions, self);
312
+ };
313
+ var Options = class Options {
314
+ _unixOptions;
315
+ _internals;
316
+ _merging = false;
317
+ _init;
318
+ constructor(input, options, defaults) {
319
+ assertAny("input", [
320
+ is.string,
321
+ is.urlInstance,
322
+ is.object,
323
+ is.undefined
324
+ ], input);
325
+ assertAny("options", [is.object, is.undefined], options);
326
+ assertAny("defaults", [is.object, is.undefined], defaults);
327
+ if (input instanceof Options || options instanceof Options) throw new TypeError("The defaults must be passed as the third argument");
328
+ this._internals = cloneInternals(defaults?._internals ?? defaults ?? defaultInternals);
329
+ this._init = [...defaults?._init ?? []];
330
+ try {
331
+ if (is.plainObject(input)) try {
332
+ this.merge(input);
333
+ this.merge(options);
334
+ } finally {
335
+ this.url = input.url;
336
+ }
337
+ else try {
338
+ this.merge(options);
339
+ } finally {
340
+ if (options?.url !== void 0) {
341
+ if (input === void 0) this.url = options.url;
342
+ else throw new TypeError("The `url` option is mutually exclusive with the `input` argument");
343
+ } else if (input !== void 0) this.url = input;
344
+ }
345
+ } catch (error) {
346
+ error.options = this;
347
+ throw error;
348
+ }
349
+ }
350
+ merge(options) {
351
+ if (!options) return;
352
+ if (options instanceof Options) {
353
+ const initArray = [...options._init];
354
+ for (const init of initArray) this.merge(init);
355
+ return;
356
+ }
357
+ options = cloneRaw(options);
358
+ init(this, options, this);
359
+ init(options, options, this);
360
+ this._merging = true;
361
+ if ("isStream" in options) this.isStream = options.isStream;
362
+ try {
363
+ let push = false;
364
+ for (const key in options) {
365
+ if (key === "mutableDefaults" || key === "handlers") continue;
366
+ if (key === "url") continue;
367
+ if (key === "preserveHooks") continue;
368
+ if (!(key in this)) throw new Error(`Unexpected option: ${key}`);
369
+ const value = options[key];
370
+ if (value === void 0) continue;
371
+ this[key] = value;
372
+ push = true;
373
+ }
374
+ if (push) this._init.push(options);
375
+ } finally {
376
+ this._merging = false;
377
+ }
378
+ }
379
+ /**
380
+ Custom request function.
381
+ The main purpose of this is to [support HTTP2 using a wrapper](https://github.com/szmarczak/http2-wrapper).
382
+
383
+ @default http.request | https.request
384
+ */
385
+ get request() {
386
+ return this._internals.request;
387
+ }
388
+ set request(value) {
389
+ assertAny("request", [is.function, is.undefined], value);
390
+ this._internals.request = value;
391
+ }
392
+ /**
393
+ An object representing `http`, `https` and `http2` keys for [`http.Agent`](https://nodejs.org/api/http.html#http_class_http_agent), [`https.Agent`](https://nodejs.org/api/https.html#https_class_https_agent) and [`http2wrapper.Agent`](https://github.com/szmarczak/http2-wrapper#new-http2agentoptions) instance.
394
+ This is necessary because a request to one protocol might redirect to another.
395
+ In such a scenario, Got will switch over to the right protocol agent for you.
396
+
397
+ If a key is not present, it will default to a global agent.
398
+
399
+ @example
400
+ ```
401
+ import got from 'got';
402
+ import HttpAgent from 'agentkeepalive';
403
+
404
+ const {HttpsAgent} = HttpAgent;
405
+
406
+ await got('https://sindresorhus.com', {
407
+ agent: {
408
+ http: new HttpAgent(),
409
+ https: new HttpsAgent()
410
+ }
411
+ });
412
+ ```
413
+ */
414
+ get agent() {
415
+ return this._internals.agent;
416
+ }
417
+ set agent(value) {
418
+ assertPlainObject("agent", value);
419
+ for (const key in value) {
420
+ if (!(key in this._internals.agent)) throw new TypeError(`Unexpected agent option: ${key}`);
421
+ assertAny(`agent.${key}`, [
422
+ is.object,
423
+ is.undefined,
424
+ (v) => v === false
425
+ ], value[key]);
426
+ }
427
+ if (this._merging) Object.assign(this._internals.agent, value);
428
+ else this._internals.agent = { ...value };
429
+ }
430
+ get h2session() {
431
+ return this._internals.h2session;
432
+ }
433
+ set h2session(value) {
434
+ this._internals.h2session = value;
435
+ }
436
+ /**
437
+ Decompress the response automatically.
438
+
439
+ This will set the `accept-encoding` header to `gzip, deflate, br` unless you set it yourself.
440
+
441
+ If this is disabled, a compressed response is returned as a `Buffer`.
442
+ This may be useful if you want to handle decompression yourself or stream the raw compressed data.
443
+
444
+ @default true
445
+ */
446
+ get decompress() {
447
+ return this._internals.decompress;
448
+ }
449
+ set decompress(value) {
450
+ assert.boolean(value);
451
+ this._internals.decompress = value;
452
+ }
453
+ /**
454
+ Milliseconds to wait for the server to end the response before aborting the request with `got.TimeoutError` error (a.k.a. `request` property).
455
+ By default, there's no timeout.
456
+
457
+ This also accepts an `object` with the following fields to constrain the duration of each phase of the request lifecycle:
458
+
459
+ - `lookup` starts when a socket is assigned and ends when the hostname has been resolved.
460
+ Does not apply when using a Unix domain socket.
461
+ - `connect` starts when `lookup` completes (or when the socket is assigned if lookup does not apply to the request) and ends when the socket is connected.
462
+ - `secureConnect` starts when `connect` completes and ends when the handshaking process completes (HTTPS only).
463
+ - `socket` starts when the socket is connected. See [request.setTimeout](https://nodejs.org/api/http.html#http_request_settimeout_timeout_callback).
464
+ - `response` starts when the request has been written to the socket and ends when the response headers are received.
465
+ - `send` starts when the socket is connected and ends with the request has been written to the socket.
466
+ - `request` starts when the request is initiated and ends when the response's end event fires.
467
+ */
468
+ get timeout() {
469
+ return this._internals.timeout;
470
+ }
471
+ set timeout(value) {
472
+ assertPlainObject("timeout", value);
473
+ for (const key in value) {
474
+ if (!(key in this._internals.timeout)) throw new Error(`Unexpected timeout option: ${key}`);
475
+ assertAny(`timeout.${key}`, [is.number, is.undefined], value[key]);
476
+ }
477
+ if (this._merging) Object.assign(this._internals.timeout, value);
478
+ else this._internals.timeout = { ...value };
479
+ }
480
+ /**
481
+ When specified, `prefixUrl` will be prepended to `url`.
482
+ The prefix can be any valid URL, either relative or absolute.
483
+ A trailing slash `/` is optional - one will be added automatically.
484
+
485
+ __Note__: `prefixUrl` will be ignored if the `url` argument is a URL instance.
486
+
487
+ __Note__: Leading slashes in `input` are disallowed when using this option to enforce consistency and avoid confusion.
488
+ For example, when the prefix URL is `https://example.com/foo` and the input is `/bar`, there's ambiguity whether the resulting URL would become `https://example.com/foo/bar` or `https://example.com/bar`.
489
+ The latter is used by browsers.
490
+
491
+ __Tip__: Useful when used with `got.extend()` to create niche-specific Got instances.
492
+
493
+ __Tip__: You can change `prefixUrl` using hooks as long as the URL still includes the `prefixUrl`.
494
+ If the URL doesn't include it anymore, it will throw.
495
+
496
+ @example
497
+ ```
498
+ import got from 'got';
499
+
500
+ await got('unicorn', {prefixUrl: 'https://cats.com'});
501
+ //=> 'https://cats.com/unicorn'
502
+
503
+ const instance = got.extend({
504
+ prefixUrl: 'https://google.com'
505
+ });
506
+
507
+ await instance('unicorn', {
508
+ hooks: {
509
+ beforeRequest: [
510
+ options => {
511
+ options.prefixUrl = 'https://cats.com';
512
+ }
513
+ ]
514
+ }
515
+ });
516
+ //=> 'https://cats.com/unicorn'
517
+ ```
518
+ */
519
+ get prefixUrl() {
520
+ return this._internals.prefixUrl;
521
+ }
522
+ set prefixUrl(value) {
523
+ assertAny("prefixUrl", [is.string, is.urlInstance], value);
524
+ if (value === "") {
525
+ this._internals.prefixUrl = "";
526
+ return;
527
+ }
528
+ value = value.toString();
529
+ if (!value.endsWith("/")) value += "/";
530
+ if (this._internals.prefixUrl && this._internals.url) {
531
+ const { href } = this._internals.url;
532
+ this._internals.url.href = value + href.slice(this._internals.prefixUrl.length);
533
+ }
534
+ this._internals.prefixUrl = value;
535
+ }
536
+ /**
537
+ __Note #1__: The `body` option cannot be used with the `json` or `form` option.
538
+
539
+ __Note #2__: If you provide this option, `got.stream()` will be read-only.
540
+
541
+ __Note #3__: If you provide a payload with the `GET` or `HEAD` method, it will throw a `TypeError` unless the method is `GET` and the `allowGetBody` option is set to `true`.
542
+
543
+ __Note #4__: This option is not enumerable and will not be merged with the instance defaults.
544
+
545
+ The `content-length` header will be automatically set if `body` is a `string` / `Buffer` / typed array ([`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), etc.) / [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`.
546
+
547
+ Since Got 12, the `content-length` is not automatically set when `body` is a `fs.createReadStream`.
548
+
549
+ You can use `Iterable` and `AsyncIterable` objects as request body, including Web [`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream):
550
+
551
+ @example
552
+ ```
553
+ import got from 'got';
554
+
555
+ // Using an async generator
556
+ async function* generateData() {
557
+ yield 'Hello, ';
558
+ yield 'world!';
559
+ }
560
+
561
+ await got.post('https://httpbin.org/anything', {
562
+ body: generateData()
563
+ });
564
+ ```
565
+ */
566
+ get body() {
567
+ return this._internals.body;
568
+ }
569
+ set body(value) {
570
+ assertAny("body", [
571
+ is.string,
572
+ is.buffer,
573
+ is.nodeStream,
574
+ is.generator,
575
+ is.asyncGenerator,
576
+ is.iterable,
577
+ is.asyncIterable,
578
+ isFormData,
579
+ is.typedArray,
580
+ is.undefined
581
+ ], value);
582
+ if (is.nodeStream(value)) assert.truthy(value.readable);
583
+ if (value !== void 0) {
584
+ assert.undefined(this._internals.form);
585
+ assert.undefined(this._internals.json);
586
+ }
587
+ this._internals.body = value;
588
+ }
589
+ /**
590
+ The form body is converted to a query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj).
591
+
592
+ If the `Content-Type` header is not present, it will be set to `application/x-www-form-urlencoded`.
593
+
594
+ __Note #1__: If you provide this option, `got.stream()` will be read-only.
595
+
596
+ __Note #2__: This option is not enumerable and will not be merged with the instance defaults.
597
+ */
598
+ get form() {
599
+ return this._internals.form;
600
+ }
601
+ set form(value) {
602
+ assertAny("form", [is.plainObject, is.undefined], value);
603
+ if (value !== void 0) {
604
+ assert.undefined(this._internals.body);
605
+ assert.undefined(this._internals.json);
606
+ }
607
+ this._internals.form = value;
608
+ }
609
+ /**
610
+ JSON request body. If the `content-type` header is not set, it will be set to `application/json`.
611
+
612
+ __Important__: This option only affects the request body you send to the server. To parse the response as JSON, you must either call `.json()` on the promise or set `responseType: 'json'` in the options.
613
+
614
+ __Note #1__: If you provide this option, `got.stream()` will be read-only.
615
+
616
+ __Note #2__: This option is not enumerable and will not be merged with the instance defaults.
617
+ */
618
+ get json() {
619
+ return this._internals.json;
620
+ }
621
+ set json(value) {
622
+ if (value !== void 0) {
623
+ assert.undefined(this._internals.body);
624
+ assert.undefined(this._internals.form);
625
+ }
626
+ this._internals.json = value;
627
+ }
628
+ /**
629
+ The URL to request, as a string, a [`https.request` options object](https://nodejs.org/api/https.html#https_https_request_options_callback), or a [WHATWG `URL`](https://nodejs.org/api/url.html#url_class_url).
630
+
631
+ Properties from `options` will override properties in the parsed `url`.
632
+
633
+ If no protocol is specified, it will throw a `TypeError`.
634
+
635
+ __Note__: The query string is **not** parsed as search params.
636
+
637
+ @example
638
+ ```
639
+ await got('https://example.com/?query=a b'); //=> https://example.com/?query=a%20b
640
+ await got('https://example.com/', {searchParams: {query: 'a b'}}); //=> https://example.com/?query=a+b
641
+
642
+ // The query string is overridden by `searchParams`
643
+ await got('https://example.com/?query=a b', {searchParams: {query: 'a b'}}); //=> https://example.com/?query=a+b
644
+ ```
645
+ */
646
+ get url() {
647
+ return this._internals.url;
648
+ }
649
+ set url(value) {
650
+ assertAny("url", [
651
+ is.string,
652
+ is.urlInstance,
653
+ is.undefined
654
+ ], value);
655
+ if (value === void 0) {
656
+ this._internals.url = void 0;
657
+ return;
658
+ }
659
+ if (is.string(value) && value.startsWith("/")) throw new Error("`url` must not start with a slash");
660
+ const valueString = value.toString();
661
+ const urlString = is.urlInstance(value) || /^[a-z][a-z\d+.-]*:\/\//i.test(valueString) ? valueString : `${this.prefixUrl}${valueString}`;
662
+ const url = new URL(urlString);
663
+ this._internals.url = url;
664
+ if (url.protocol === "unix:") url.href = `http://unix${url.pathname}${url.search}`;
665
+ if (url.protocol !== "http:" && url.protocol !== "https:") {
666
+ const error = /* @__PURE__ */ new Error(`Unsupported protocol: ${url.protocol}`);
667
+ error.code = "ERR_UNSUPPORTED_PROTOCOL";
668
+ throw error;
669
+ }
670
+ if (this._internals.username) {
671
+ url.username = this._internals.username;
672
+ this._internals.username = "";
673
+ }
674
+ if (this._internals.password) {
675
+ url.password = this._internals.password;
676
+ this._internals.password = "";
677
+ }
678
+ if (this._internals.searchParams) {
679
+ url.search = this._internals.searchParams.toString();
680
+ this._internals.searchParams = void 0;
681
+ }
682
+ if (url.hostname === "unix") {
683
+ if (!this._internals.enableUnixSockets) throw new Error("Using UNIX domain sockets but option `enableUnixSockets` is not enabled");
684
+ const matches = /(?<socketPath>.+?):(?<path>.+)/.exec(`${url.pathname}${url.search}`);
685
+ if (matches?.groups) {
686
+ const { socketPath, path } = matches.groups;
687
+ this._unixOptions = {
688
+ socketPath,
689
+ path,
690
+ host: ""
691
+ };
692
+ } else this._unixOptions = void 0;
693
+ return;
694
+ }
695
+ this._unixOptions = void 0;
696
+ }
697
+ /**
698
+ Cookie support. You don't have to care about parsing or how to store them.
699
+
700
+ __Note__: If you provide this option, `options.headers.cookie` will be overridden.
701
+ */
702
+ get cookieJar() {
703
+ return this._internals.cookieJar;
704
+ }
705
+ set cookieJar(value) {
706
+ assertAny("cookieJar", [is.object, is.undefined], value);
707
+ if (value === void 0) {
708
+ this._internals.cookieJar = void 0;
709
+ return;
710
+ }
711
+ let { setCookie, getCookieString } = value;
712
+ assert.function(setCookie);
713
+ assert.function(getCookieString);
714
+ /* istanbul ignore next: Horrible `tough-cookie` v3 check */
715
+ if (setCookie.length === 4 && getCookieString.length === 0) {
716
+ setCookie = promisify(setCookie.bind(value));
717
+ getCookieString = promisify(getCookieString.bind(value));
718
+ this._internals.cookieJar = {
719
+ setCookie,
720
+ getCookieString
721
+ };
722
+ } else this._internals.cookieJar = value;
723
+ }
724
+ /**
725
+ You can abort the `request` using [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
726
+
727
+ @example
728
+ ```
729
+ import got from 'got';
730
+
731
+ const abortController = new AbortController();
732
+
733
+ const request = got('https://httpbin.org/anything', {
734
+ signal: abortController.signal
735
+ });
736
+
737
+ setTimeout(() => {
738
+ abortController.abort();
739
+ }, 100);
740
+ ```
741
+ */
742
+ get signal() {
743
+ return this._internals.signal;
744
+ }
745
+ set signal(value) {
746
+ assert.object(value);
747
+ this._internals.signal = value;
748
+ }
749
+ /**
750
+ Ignore invalid cookies instead of throwing an error.
751
+ Only useful when the `cookieJar` option has been set. Not recommended.
752
+
753
+ @default false
754
+ */
755
+ get ignoreInvalidCookies() {
756
+ return this._internals.ignoreInvalidCookies;
757
+ }
758
+ set ignoreInvalidCookies(value) {
759
+ assert.boolean(value);
760
+ this._internals.ignoreInvalidCookies = value;
761
+ }
762
+ /**
763
+ Query string that will be added to the request URL.
764
+ This will override the query string in `url`.
765
+
766
+ If you need to pass in an array, you can do it using a `URLSearchParams` instance.
767
+
768
+ @example
769
+ ```
770
+ import got from 'got';
771
+
772
+ const searchParams = new URLSearchParams([['key', 'a'], ['key', 'b']]);
773
+
774
+ await got('https://example.com', {searchParams});
775
+
776
+ console.log(searchParams.toString());
777
+ //=> 'key=a&key=b'
778
+ ```
779
+ */
780
+ get searchParams() {
781
+ if (this._internals.url) return this._internals.url.searchParams;
782
+ if (this._internals.searchParams === void 0) this._internals.searchParams = new URLSearchParams();
783
+ return this._internals.searchParams;
784
+ }
785
+ set searchParams(value) {
786
+ assertAny("searchParams", [
787
+ is.string,
788
+ is.object,
789
+ is.undefined
790
+ ], value);
791
+ const url = this._internals.url;
792
+ if (value === void 0) {
793
+ this._internals.searchParams = void 0;
794
+ if (url) url.search = "";
795
+ return;
796
+ }
797
+ const searchParameters = this.searchParams;
798
+ let updated;
799
+ if (is.string(value)) updated = new URLSearchParams(value);
800
+ else if (value instanceof URLSearchParams) updated = value;
801
+ else {
802
+ validateSearchParameters(value);
803
+ updated = new URLSearchParams();
804
+ for (const key in value) {
805
+ const entry = value[key];
806
+ if (entry === null) updated.append(key, "");
807
+ else if (entry === void 0) searchParameters.delete(key);
808
+ else updated.append(key, entry);
809
+ }
810
+ }
811
+ if (this._merging) {
812
+ for (const key of updated.keys()) searchParameters.delete(key);
813
+ for (const [key, value] of updated) searchParameters.append(key, value);
814
+ } else if (url) url.search = searchParameters.toString();
815
+ else this._internals.searchParams = searchParameters;
816
+ }
817
+ get searchParameters() {
818
+ throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.");
819
+ }
820
+ set searchParameters(_value) {
821
+ throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.");
822
+ }
823
+ get dnsLookup() {
824
+ return this._internals.dnsLookup;
825
+ }
826
+ set dnsLookup(value) {
827
+ assertAny("dnsLookup", [is.function, is.undefined], value);
828
+ this._internals.dnsLookup = value;
829
+ }
830
+ /**
831
+ An instance of [`CacheableLookup`](https://github.com/szmarczak/cacheable-lookup) used for making DNS lookups.
832
+ Useful when making lots of requests to different *public* hostnames.
833
+
834
+ `CacheableLookup` uses `dns.resolver4(..)` and `dns.resolver6(...)` under the hood and fall backs to `dns.lookup(...)` when the first two fail, which may lead to additional delay.
835
+
836
+ __Note__: This should stay disabled when making requests to internal hostnames such as `localhost`, `database.local` etc.
837
+
838
+ @default false
839
+ */
840
+ get dnsCache() {
841
+ return this._internals.dnsCache;
842
+ }
843
+ set dnsCache(value) {
844
+ assertAny("dnsCache", [
845
+ is.object,
846
+ is.boolean,
847
+ is.undefined
848
+ ], value);
849
+ if (value === true) this._internals.dnsCache = getGlobalDnsCache();
850
+ else if (value === false) this._internals.dnsCache = void 0;
851
+ else this._internals.dnsCache = value;
852
+ }
853
+ /**
854
+ User data. `context` is shallow merged and enumerable. If it contains non-enumerable properties they will NOT be merged.
855
+
856
+ @example
857
+ ```
858
+ import got from 'got';
859
+
860
+ const instance = got.extend({
861
+ hooks: {
862
+ beforeRequest: [
863
+ options => {
864
+ if (!options.context || !options.context.token) {
865
+ throw new Error('Token required');
866
+ }
867
+
868
+ options.headers.token = options.context.token;
869
+ }
870
+ ]
871
+ }
872
+ });
873
+
874
+ const context = {
875
+ token: 'secret'
876
+ };
877
+
878
+ const response = await instance('https://httpbin.org/headers', {context});
879
+
880
+ // Let's see the headers
881
+ console.log(response.body);
882
+ ```
883
+ */
884
+ get context() {
885
+ return this._internals.context;
886
+ }
887
+ set context(value) {
888
+ assert.object(value);
889
+ if (this._merging) Object.assign(this._internals.context, value);
890
+ else this._internals.context = { ...value };
891
+ }
892
+ /**
893
+ Hooks allow modifications during the request lifecycle.
894
+ Hook functions may be async and are run serially.
895
+ */
896
+ get hooks() {
897
+ return this._internals.hooks;
898
+ }
899
+ set hooks(value) {
900
+ assert.object(value);
901
+ for (const knownHookEvent in value) {
902
+ if (!(knownHookEvent in this._internals.hooks)) throw new Error(`Unexpected hook event: ${knownHookEvent}`);
903
+ const typedKnownHookEvent = knownHookEvent;
904
+ const hooks = value[typedKnownHookEvent];
905
+ assertAny(`hooks.${knownHookEvent}`, [is.array, is.undefined], hooks);
906
+ if (hooks) for (const hook of hooks) assert.function(hook);
907
+ if (this._merging) {
908
+ if (hooks) this._internals.hooks[typedKnownHookEvent].push(...hooks);
909
+ } else {
910
+ if (!hooks) throw new Error(`Missing hook event: ${knownHookEvent}`);
911
+ this._internals.hooks[knownHookEvent] = [...hooks];
912
+ }
913
+ }
914
+ }
915
+ /**
916
+ Whether redirect responses should be followed automatically.
917
+
918
+ Optionally, pass a function to dynamically decide based on the response object.
919
+
920
+ Note that if a `303` is sent by the server in response to any request type (`POST`, `DELETE`, etc.), Got will automatically request the resource pointed to in the location header via `GET`.
921
+ This is in accordance with [the spec](https://tools.ietf.org/html/rfc7231#section-6.4.4). You can optionally turn on this behavior also for other redirect codes - see `methodRewriting`.
922
+
923
+ @default true
924
+ */
925
+ get followRedirect() {
926
+ return this._internals.followRedirect;
927
+ }
928
+ set followRedirect(value) {
929
+ assertAny("followRedirect", [is.boolean, is.function], value);
930
+ this._internals.followRedirect = value;
931
+ }
932
+ get followRedirects() {
933
+ throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");
934
+ }
935
+ set followRedirects(_value) {
936
+ throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");
937
+ }
938
+ /**
939
+ If exceeded, the request will be aborted and a `MaxRedirectsError` will be thrown.
940
+
941
+ @default 10
942
+ */
943
+ get maxRedirects() {
944
+ return this._internals.maxRedirects;
945
+ }
946
+ set maxRedirects(value) {
947
+ assert.number(value);
948
+ this._internals.maxRedirects = value;
949
+ }
950
+ /**
951
+ A cache adapter instance for storing cached response data.
952
+
953
+ @default false
954
+ */
955
+ get cache() {
956
+ return this._internals.cache;
957
+ }
958
+ set cache(value) {
959
+ assertAny("cache", [
960
+ is.object,
961
+ is.string,
962
+ is.boolean,
963
+ is.undefined
964
+ ], value);
965
+ if (value === true) this._internals.cache = globalCache;
966
+ else if (value === false) this._internals.cache = void 0;
967
+ else this._internals.cache = wrapQuickLruIfNeeded(value);
968
+ }
969
+ /**
970
+ Determines if a `got.HTTPError` is thrown for unsuccessful responses.
971
+
972
+ If this is disabled, requests that encounter an error status code will be resolved with the `response` instead of throwing.
973
+ This may be useful if you are checking for resource availability and are expecting error responses.
974
+
975
+ @default true
976
+ */
977
+ get throwHttpErrors() {
978
+ return this._internals.throwHttpErrors;
979
+ }
980
+ set throwHttpErrors(value) {
981
+ assert.boolean(value);
982
+ this._internals.throwHttpErrors = value;
983
+ }
984
+ get username() {
985
+ const url = this._internals.url;
986
+ const value = url ? url.username : this._internals.username;
987
+ return decodeURIComponent(value);
988
+ }
989
+ set username(value) {
990
+ assert.string(value);
991
+ const url = this._internals.url;
992
+ const fixedValue = encodeURIComponent(value);
993
+ if (url) url.username = fixedValue;
994
+ else this._internals.username = fixedValue;
995
+ }
996
+ get password() {
997
+ const url = this._internals.url;
998
+ const value = url ? url.password : this._internals.password;
999
+ return decodeURIComponent(value);
1000
+ }
1001
+ set password(value) {
1002
+ assert.string(value);
1003
+ const url = this._internals.url;
1004
+ const fixedValue = encodeURIComponent(value);
1005
+ if (url) url.password = fixedValue;
1006
+ else this._internals.password = fixedValue;
1007
+ }
1008
+ /**
1009
+ If set to `true`, Got will additionally accept HTTP2 requests.
1010
+
1011
+ It will choose either HTTP/1.1 or HTTP/2 depending on the ALPN protocol.
1012
+
1013
+ __Note__: This option requires Node.js 15.10.0 or newer as HTTP/2 support on older Node.js versions is very buggy.
1014
+
1015
+ __Note__: Overriding `options.request` will disable HTTP2 support.
1016
+
1017
+ @default false
1018
+
1019
+ @example
1020
+ ```
1021
+ import got from 'got';
1022
+
1023
+ const {headers} = await got('https://nghttp2.org/httpbin/anything', {http2: true});
1024
+
1025
+ console.log(headers.via);
1026
+ //=> '2 nghttpx'
1027
+ ```
1028
+ */
1029
+ get http2() {
1030
+ return this._internals.http2;
1031
+ }
1032
+ set http2(value) {
1033
+ assert.boolean(value);
1034
+ this._internals.http2 = value;
1035
+ }
1036
+ /**
1037
+ Set this to `true` to allow sending body for the `GET` method.
1038
+ However, the [HTTP/2 specification](https://tools.ietf.org/html/rfc7540#section-8.1.3) says that `An HTTP GET request includes request header fields and no payload body`, therefore when using the HTTP/2 protocol this option will have no effect.
1039
+ This option is only meant to interact with non-compliant servers when you have no other choice.
1040
+
1041
+ __Note__: The [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.1) doesn't specify any particular behavior for the GET method having a payload, therefore __it's considered an [anti-pattern](https://en.wikipedia.org/wiki/Anti-pattern)__.
1042
+
1043
+ @default false
1044
+ */
1045
+ get allowGetBody() {
1046
+ return this._internals.allowGetBody;
1047
+ }
1048
+ set allowGetBody(value) {
1049
+ assert.boolean(value);
1050
+ this._internals.allowGetBody = value;
1051
+ }
1052
+ /**
1053
+ Automatically copy headers from piped streams.
1054
+
1055
+ When piping a request into a Got stream (e.g., `request.pipe(got.stream(url))`), this controls whether headers from the source stream are automatically merged into the Got request headers.
1056
+
1057
+ Note: Piped headers overwrite any explicitly set headers with the same name. To override this, either set `copyPipedHeaders` to `false` and manually copy safe headers, or use a `beforeRequest` hook to force specific header values after piping.
1058
+
1059
+ Useful for proxy scenarios, but you may want to disable this to filter out headers like `Host`, `Connection`, `Authorization`, etc.
1060
+
1061
+ @default true
1062
+
1063
+ @example
1064
+ ```
1065
+ import got from 'got';
1066
+ import {pipeline} from 'node:stream/promises';
1067
+
1068
+ // Disable automatic header copying and manually copy only safe headers
1069
+ server.get('/proxy', async (request, response) => {
1070
+ const gotStream = got.stream('https://example.com', {
1071
+ copyPipedHeaders: false,
1072
+ headers: {
1073
+ 'user-agent': request.headers['user-agent'],
1074
+ 'accept': request.headers['accept'],
1075
+ // Explicitly NOT copying host, connection, authorization, etc.
1076
+ }
1077
+ });
1078
+
1079
+ await pipeline(request, gotStream, response);
1080
+ });
1081
+ ```
1082
+
1083
+ @example
1084
+ ```
1085
+ import got from 'got';
1086
+
1087
+ // Override piped headers using beforeRequest hook
1088
+ const gotStream = got.stream('https://example.com', {
1089
+ hooks: {
1090
+ beforeRequest: [
1091
+ options => {
1092
+ // Force specific header values after piping
1093
+ options.headers.host = 'example.com';
1094
+ delete options.headers.authorization;
1095
+ }
1096
+ ]
1097
+ }
1098
+ });
1099
+ ```
1100
+ */
1101
+ get copyPipedHeaders() {
1102
+ return this._internals.copyPipedHeaders;
1103
+ }
1104
+ set copyPipedHeaders(value) {
1105
+ assert.boolean(value);
1106
+ this._internals.copyPipedHeaders = value;
1107
+ }
1108
+ /**
1109
+ Request headers.
1110
+
1111
+ Existing headers will be overwritten. Headers set to `undefined` will be omitted.
1112
+
1113
+ @default {}
1114
+ */
1115
+ get headers() {
1116
+ return this._internals.headers;
1117
+ }
1118
+ set headers(value) {
1119
+ assertPlainObject("headers", value);
1120
+ if (this._merging) Object.assign(this._internals.headers, lowercaseKeys(value));
1121
+ else this._internals.headers = lowercaseKeys(value);
1122
+ }
1123
+ /**
1124
+ Specifies if the HTTP request method should be [rewritten as `GET`](https://tools.ietf.org/html/rfc7231#section-6.4) on redirects.
1125
+
1126
+ As the [specification](https://tools.ietf.org/html/rfc7231#section-6.4) prefers to rewrite the HTTP method only on `303` responses, this is Got's default behavior.
1127
+ Setting `methodRewriting` to `true` will also rewrite `301` and `302` responses, as allowed by the spec. This is the behavior followed by `curl` and browsers.
1128
+
1129
+ __Note__: Got never performs method rewriting on `307` and `308` responses, as this is [explicitly prohibited by the specification](https://www.rfc-editor.org/rfc/rfc7231#section-6.4.7).
1130
+
1131
+ @default false
1132
+ */
1133
+ get methodRewriting() {
1134
+ return this._internals.methodRewriting;
1135
+ }
1136
+ set methodRewriting(value) {
1137
+ assert.boolean(value);
1138
+ this._internals.methodRewriting = value;
1139
+ }
1140
+ /**
1141
+ Indicates which DNS record family to use.
1142
+
1143
+ Values:
1144
+ - `undefined`: IPv4 (if present) or IPv6
1145
+ - `4`: Only IPv4
1146
+ - `6`: Only IPv6
1147
+
1148
+ @default undefined
1149
+ */
1150
+ get dnsLookupIpVersion() {
1151
+ return this._internals.dnsLookupIpVersion;
1152
+ }
1153
+ set dnsLookupIpVersion(value) {
1154
+ if (value !== void 0 && value !== 4 && value !== 6) throw new TypeError(`Invalid DNS lookup IP version: ${value}`);
1155
+ this._internals.dnsLookupIpVersion = value;
1156
+ }
1157
+ /**
1158
+ A function used to parse JSON responses.
1159
+
1160
+ @example
1161
+ ```
1162
+ import got from 'got';
1163
+ import Bourne from '@hapi/bourne';
1164
+
1165
+ const parsed = await got('https://example.com', {
1166
+ parseJson: text => Bourne.parse(text)
1167
+ }).json();
1168
+
1169
+ console.log(parsed);
1170
+ ```
1171
+ */
1172
+ get parseJson() {
1173
+ return this._internals.parseJson;
1174
+ }
1175
+ set parseJson(value) {
1176
+ assert.function(value);
1177
+ this._internals.parseJson = value;
1178
+ }
1179
+ /**
1180
+ A function used to stringify the body of JSON requests.
1181
+
1182
+ @example
1183
+ ```
1184
+ import got from 'got';
1185
+
1186
+ await got.post('https://example.com', {
1187
+ stringifyJson: object => JSON.stringify(object, (key, value) => {
1188
+ if (key.startsWith('_')) {
1189
+ return;
1190
+ }
1191
+
1192
+ return value;
1193
+ }),
1194
+ json: {
1195
+ some: 'payload',
1196
+ _ignoreMe: 1234
1197
+ }
1198
+ });
1199
+ ```
1200
+
1201
+ @example
1202
+ ```
1203
+ import got from 'got';
1204
+
1205
+ await got.post('https://example.com', {
1206
+ stringifyJson: object => JSON.stringify(object, (key, value) => {
1207
+ if (typeof value === 'number') {
1208
+ return value.toString();
1209
+ }
1210
+
1211
+ return value;
1212
+ }),
1213
+ json: {
1214
+ some: 'payload',
1215
+ number: 1
1216
+ }
1217
+ });
1218
+ ```
1219
+ */
1220
+ get stringifyJson() {
1221
+ return this._internals.stringifyJson;
1222
+ }
1223
+ set stringifyJson(value) {
1224
+ assert.function(value);
1225
+ this._internals.stringifyJson = value;
1226
+ }
1227
+ /**
1228
+ An object representing `limit`, `calculateDelay`, `methods`, `statusCodes`, `maxRetryAfter` and `errorCodes` fields for maximum retry count, retry handler, allowed methods, allowed status codes, maximum [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) time and allowed error codes.
1229
+
1230
+ Delays between retries counts with function `1000 * Math.pow(2, retry) + Math.random() * 100`, where `retry` is attempt number (starts from 1).
1231
+
1232
+ The `calculateDelay` property is a `function` that receives an object with `attemptCount`, `retryOptions`, `error` and `computedValue` properties for current retry count, the retry options, error and default computed value.
1233
+ The function must return a delay in milliseconds (or a Promise resolving with it) (`0` return value cancels retry).
1234
+
1235
+ The `enforceRetryRules` property is a `boolean` that, when set to `true`, enforces the `limit`, `methods`, `statusCodes`, and `errorCodes` options before calling `calculateDelay`. Your `calculateDelay` function is only invoked when a retry is allowed based on these criteria. When `false` (default), `calculateDelay` receives the computed value but can override all retry logic.
1236
+
1237
+ __Note:__ When `enforceRetryRules` is `false`, you must check `computedValue` in your `calculateDelay` function to respect the default retry logic. When `true`, the retry rules are enforced automatically.
1238
+
1239
+ By default, it retries *only* on the specified methods, status codes, and on these network errors:
1240
+
1241
+ - `ETIMEDOUT`: One of the [timeout](#timeout) limits were reached.
1242
+ - `ECONNRESET`: Connection was forcibly closed by a peer.
1243
+ - `EADDRINUSE`: Could not bind to any free port.
1244
+ - `ECONNREFUSED`: Connection was refused by the server.
1245
+ - `EPIPE`: The remote side of the stream being written has been closed.
1246
+ - `ENOTFOUND`: Couldn't resolve the hostname to an IP address.
1247
+ - `ENETUNREACH`: No internet connection.
1248
+ - `EAI_AGAIN`: DNS lookup timed out.
1249
+
1250
+ __Note__: If `maxRetryAfter` is set to `undefined`, it will use `options.timeout`.
1251
+ __Note__: If [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) header is greater than `maxRetryAfter`, it will cancel the request.
1252
+ */
1253
+ get retry() {
1254
+ return this._internals.retry;
1255
+ }
1256
+ set retry(value) {
1257
+ assertPlainObject("retry", value);
1258
+ assertAny("retry.calculateDelay", [is.function, is.undefined], value.calculateDelay);
1259
+ assertAny("retry.maxRetryAfter", [is.number, is.undefined], value.maxRetryAfter);
1260
+ assertAny("retry.limit", [is.number, is.undefined], value.limit);
1261
+ assertAny("retry.methods", [is.array, is.undefined], value.methods);
1262
+ assertAny("retry.statusCodes", [is.array, is.undefined], value.statusCodes);
1263
+ assertAny("retry.errorCodes", [is.array, is.undefined], value.errorCodes);
1264
+ assertAny("retry.noise", [is.number, is.undefined], value.noise);
1265
+ assertAny("retry.enforceRetryRules", [is.boolean, is.undefined], value.enforceRetryRules);
1266
+ if (value.noise && Math.abs(value.noise) > 100) throw new Error(`The maximum acceptable retry noise is +/- 100ms, got ${value.noise}`);
1267
+ for (const key in value) if (!(key in this._internals.retry)) throw new Error(`Unexpected retry option: ${key}`);
1268
+ if (this._merging) Object.assign(this._internals.retry, value);
1269
+ else this._internals.retry = { ...value };
1270
+ const { retry } = this._internals;
1271
+ retry.methods = [...new Set(retry.methods.map((method) => method.toUpperCase()))];
1272
+ retry.statusCodes = [...new Set(retry.statusCodes)];
1273
+ retry.errorCodes = [...new Set(retry.errorCodes)];
1274
+ }
1275
+ /**
1276
+ From `http.RequestOptions`.
1277
+
1278
+ The IP address used to send the request from.
1279
+ */
1280
+ get localAddress() {
1281
+ return this._internals.localAddress;
1282
+ }
1283
+ set localAddress(value) {
1284
+ assertAny("localAddress", [is.string, is.undefined], value);
1285
+ this._internals.localAddress = value;
1286
+ }
1287
+ /**
1288
+ The HTTP method used to make the request.
1289
+
1290
+ @default 'GET'
1291
+ */
1292
+ get method() {
1293
+ return this._internals.method;
1294
+ }
1295
+ set method(value) {
1296
+ assert.string(value);
1297
+ this._internals.method = value.toUpperCase();
1298
+ }
1299
+ get createConnection() {
1300
+ return this._internals.createConnection;
1301
+ }
1302
+ set createConnection(value) {
1303
+ assertAny("createConnection", [is.function, is.undefined], value);
1304
+ this._internals.createConnection = value;
1305
+ }
1306
+ /**
1307
+ From `http-cache-semantics`
1308
+
1309
+ @default {}
1310
+ */
1311
+ get cacheOptions() {
1312
+ return this._internals.cacheOptions;
1313
+ }
1314
+ set cacheOptions(value) {
1315
+ assertPlainObject("cacheOptions", value);
1316
+ assertAny("cacheOptions.shared", [is.boolean, is.undefined], value.shared);
1317
+ assertAny("cacheOptions.cacheHeuristic", [is.number, is.undefined], value.cacheHeuristic);
1318
+ assertAny("cacheOptions.immutableMinTimeToLive", [is.number, is.undefined], value.immutableMinTimeToLive);
1319
+ assertAny("cacheOptions.ignoreCargoCult", [is.boolean, is.undefined], value.ignoreCargoCult);
1320
+ for (const key in value) if (!(key in this._internals.cacheOptions)) throw new Error(`Cache option \`${key}\` does not exist`);
1321
+ if (this._merging) Object.assign(this._internals.cacheOptions, value);
1322
+ else this._internals.cacheOptions = { ...value };
1323
+ }
1324
+ /**
1325
+ Options for the advanced HTTPS API.
1326
+ */
1327
+ get https() {
1328
+ return this._internals.https;
1329
+ }
1330
+ set https(value) {
1331
+ assertPlainObject("https", value);
1332
+ assertAny("https.rejectUnauthorized", [is.boolean, is.undefined], value.rejectUnauthorized);
1333
+ assertAny("https.checkServerIdentity", [is.function, is.undefined], value.checkServerIdentity);
1334
+ assertAny("https.serverName", [is.string, is.undefined], value.serverName);
1335
+ assertAny("https.certificateAuthority", [
1336
+ is.string,
1337
+ is.object,
1338
+ is.array,
1339
+ is.undefined
1340
+ ], value.certificateAuthority);
1341
+ assertAny("https.key", [
1342
+ is.string,
1343
+ is.object,
1344
+ is.array,
1345
+ is.undefined
1346
+ ], value.key);
1347
+ assertAny("https.certificate", [
1348
+ is.string,
1349
+ is.object,
1350
+ is.array,
1351
+ is.undefined
1352
+ ], value.certificate);
1353
+ assertAny("https.passphrase", [is.string, is.undefined], value.passphrase);
1354
+ assertAny("https.pfx", [
1355
+ is.string,
1356
+ is.buffer,
1357
+ is.array,
1358
+ is.undefined
1359
+ ], value.pfx);
1360
+ assertAny("https.alpnProtocols", [is.array, is.undefined], value.alpnProtocols);
1361
+ assertAny("https.ciphers", [is.string, is.undefined], value.ciphers);
1362
+ assertAny("https.dhparam", [
1363
+ is.string,
1364
+ is.buffer,
1365
+ is.undefined
1366
+ ], value.dhparam);
1367
+ assertAny("https.signatureAlgorithms", [is.string, is.undefined], value.signatureAlgorithms);
1368
+ assertAny("https.minVersion", [is.string, is.undefined], value.minVersion);
1369
+ assertAny("https.maxVersion", [is.string, is.undefined], value.maxVersion);
1370
+ assertAny("https.honorCipherOrder", [is.boolean, is.undefined], value.honorCipherOrder);
1371
+ assertAny("https.tlsSessionLifetime", [is.number, is.undefined], value.tlsSessionLifetime);
1372
+ assertAny("https.ecdhCurve", [is.string, is.undefined], value.ecdhCurve);
1373
+ assertAny("https.certificateRevocationLists", [
1374
+ is.string,
1375
+ is.buffer,
1376
+ is.array,
1377
+ is.undefined
1378
+ ], value.certificateRevocationLists);
1379
+ assertAny("https.secureOptions", [is.number, is.undefined], value.secureOptions);
1380
+ for (const key in value) if (!(key in this._internals.https)) throw new Error(`HTTPS option \`${key}\` does not exist`);
1381
+ if (this._merging) Object.assign(this._internals.https, value);
1382
+ else this._internals.https = { ...value };
1383
+ }
1384
+ /**
1385
+ [Encoding](https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings) to be used on `setEncoding` of the response data.
1386
+
1387
+ To get a [`Buffer`](https://nodejs.org/api/buffer.html), you need to set `responseType` to `buffer` instead.
1388
+ Don't set this option to `null`.
1389
+
1390
+ __Note__: This doesn't affect streams! Instead, you need to do `got.stream(...).setEncoding(encoding)`.
1391
+
1392
+ @default 'utf-8'
1393
+ */
1394
+ get encoding() {
1395
+ return this._internals.encoding;
1396
+ }
1397
+ set encoding(value) {
1398
+ if (value === null) throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");
1399
+ assertAny("encoding", [is.string, is.undefined], value);
1400
+ this._internals.encoding = value;
1401
+ }
1402
+ /**
1403
+ When set to `true` the promise will return the Response body instead of the Response object.
1404
+
1405
+ @default false
1406
+ */
1407
+ get resolveBodyOnly() {
1408
+ return this._internals.resolveBodyOnly;
1409
+ }
1410
+ set resolveBodyOnly(value) {
1411
+ assert.boolean(value);
1412
+ this._internals.resolveBodyOnly = value;
1413
+ }
1414
+ /**
1415
+ Returns a `Stream` instead of a `Promise`.
1416
+ This is equivalent to calling `got.stream(url, options?)`.
1417
+
1418
+ @default false
1419
+ */
1420
+ get isStream() {
1421
+ return this._internals.isStream;
1422
+ }
1423
+ set isStream(value) {
1424
+ assert.boolean(value);
1425
+ this._internals.isStream = value;
1426
+ }
1427
+ /**
1428
+ The parsing method.
1429
+
1430
+ The promise also has `.text()`, `.json()` and `.buffer()` methods which return another Got promise for the parsed body.
1431
+
1432
+ It's like setting the options to `{responseType: 'json', resolveBodyOnly: true}` but without affecting the main Got promise.
1433
+
1434
+ __Note__: When using streams, this option is ignored.
1435
+
1436
+ @example
1437
+ ```
1438
+ const responsePromise = got(url);
1439
+ const bufferPromise = responsePromise.buffer();
1440
+ const jsonPromise = responsePromise.json();
1441
+
1442
+ const [response, buffer, json] = Promise.all([responsePromise, bufferPromise, jsonPromise]);
1443
+ // `response` is an instance of Got Response
1444
+ // `buffer` is an instance of Buffer
1445
+ // `json` is an object
1446
+ ```
1447
+
1448
+ @example
1449
+ ```
1450
+ // This
1451
+ const body = await got(url).json();
1452
+
1453
+ // is semantically the same as this
1454
+ const body = await got(url, {responseType: 'json', resolveBodyOnly: true});
1455
+ ```
1456
+ */
1457
+ get responseType() {
1458
+ return this._internals.responseType;
1459
+ }
1460
+ set responseType(value) {
1461
+ if (value === void 0) {
1462
+ this._internals.responseType = "text";
1463
+ return;
1464
+ }
1465
+ if (value !== "text" && value !== "buffer" && value !== "json") throw new Error(`Invalid \`responseType\` option: ${value}`);
1466
+ this._internals.responseType = value;
1467
+ }
1468
+ get pagination() {
1469
+ return this._internals.pagination;
1470
+ }
1471
+ set pagination(value) {
1472
+ assert.object(value);
1473
+ if (this._merging) Object.assign(this._internals.pagination, value);
1474
+ else this._internals.pagination = value;
1475
+ }
1476
+ get auth() {
1477
+ throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.");
1478
+ }
1479
+ set auth(_value) {
1480
+ throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.");
1481
+ }
1482
+ get setHost() {
1483
+ return this._internals.setHost;
1484
+ }
1485
+ set setHost(value) {
1486
+ assert.boolean(value);
1487
+ this._internals.setHost = value;
1488
+ }
1489
+ get maxHeaderSize() {
1490
+ return this._internals.maxHeaderSize;
1491
+ }
1492
+ set maxHeaderSize(value) {
1493
+ assertAny("maxHeaderSize", [is.number, is.undefined], value);
1494
+ this._internals.maxHeaderSize = value;
1495
+ }
1496
+ get enableUnixSockets() {
1497
+ return this._internals.enableUnixSockets;
1498
+ }
1499
+ set enableUnixSockets(value) {
1500
+ assert.boolean(value);
1501
+ this._internals.enableUnixSockets = value;
1502
+ }
1503
+ /**
1504
+ Throw an error if the server response's `content-length` header value doesn't match the number of bytes received.
1505
+
1506
+ This is useful for detecting truncated responses and follows RFC 9112 requirements for message completeness.
1507
+
1508
+ __Note__: Responses without a `content-length` header are not validated.
1509
+ __Note__: When enabled and validation fails, a `ReadError` with code `ERR_HTTP_CONTENT_LENGTH_MISMATCH` will be thrown.
1510
+
1511
+ @default false
1512
+ */
1513
+ get strictContentLength() {
1514
+ return this._internals.strictContentLength;
1515
+ }
1516
+ set strictContentLength(value) {
1517
+ assert.boolean(value);
1518
+ this._internals.strictContentLength = value;
1519
+ }
1520
+ toJSON() {
1521
+ return { ...this._internals };
1522
+ }
1523
+ [Symbol.for("nodejs.util.inspect.custom")](_depth, options) {
1524
+ return inspect(this._internals, options);
1525
+ }
1526
+ createNativeRequestOptions() {
1527
+ const internals = this._internals;
1528
+ const url = internals.url;
1529
+ let agent;
1530
+ if (url.protocol === "https:") {
1531
+ if (internals.http2) agent = {
1532
+ ...internals.agent,
1533
+ http2: internals.agent.http2 ?? import_source.default.globalAgent
1534
+ };
1535
+ else agent = internals.agent.https;
1536
+ } else agent = internals.agent.http;
1537
+ const { https } = internals;
1538
+ let { pfx } = https;
1539
+ if (is.array(pfx) && is.plainObject(pfx[0])) pfx = pfx.map((object) => ({
1540
+ buf: object.buffer,
1541
+ passphrase: object.passphrase
1542
+ }));
1543
+ return {
1544
+ ...internals.cacheOptions,
1545
+ ...this._unixOptions,
1546
+ ALPNProtocols: https.alpnProtocols,
1547
+ ca: https.certificateAuthority,
1548
+ cert: https.certificate,
1549
+ key: https.key,
1550
+ passphrase: https.passphrase,
1551
+ pfx: https.pfx,
1552
+ rejectUnauthorized: https.rejectUnauthorized,
1553
+ checkServerIdentity: https.checkServerIdentity ?? checkServerIdentity,
1554
+ servername: https.serverName,
1555
+ ciphers: https.ciphers,
1556
+ honorCipherOrder: https.honorCipherOrder,
1557
+ minVersion: https.minVersion,
1558
+ maxVersion: https.maxVersion,
1559
+ sigalgs: https.signatureAlgorithms,
1560
+ sessionTimeout: https.tlsSessionLifetime,
1561
+ dhparam: https.dhparam,
1562
+ ecdhCurve: https.ecdhCurve,
1563
+ crl: https.certificateRevocationLists,
1564
+ secureOptions: https.secureOptions,
1565
+ lookup: internals.dnsLookup ?? internals.dnsCache?.lookup,
1566
+ family: internals.dnsLookupIpVersion,
1567
+ agent,
1568
+ setHost: internals.setHost,
1569
+ method: internals.method,
1570
+ maxHeaderSize: internals.maxHeaderSize,
1571
+ localAddress: internals.localAddress,
1572
+ headers: internals.headers,
1573
+ createConnection: internals.createConnection,
1574
+ timeout: internals.http2 ? getHttp2TimeoutOption(internals) : void 0,
1575
+ h2session: internals.h2session
1576
+ };
1577
+ }
1578
+ getRequestFunction() {
1579
+ const url = this._internals.url;
1580
+ const { request } = this._internals;
1581
+ if (!request && url) return this.getFallbackRequestFunction();
1582
+ return request;
1583
+ }
1584
+ getFallbackRequestFunction() {
1585
+ const url = this._internals.url;
1586
+ if (!url) return;
1587
+ if (url.protocol === "https:") {
1588
+ if (this._internals.http2) {
1589
+ if (major < 15 || major === 15 && minor < 10) {
1590
+ const error = /* @__PURE__ */ new Error("To use the `http2` option, install Node.js 15.10.0 or above");
1591
+ error.code = "EUNSUPPORTED";
1592
+ throw error;
1593
+ }
1594
+ return import_source.default.auto;
1595
+ }
1596
+ return https.request;
1597
+ }
1598
+ return http.request;
1599
+ }
1600
+ freeze() {
1601
+ const options = this._internals;
1602
+ Object.freeze(options);
1603
+ Object.freeze(options.hooks);
1604
+ Object.freeze(options.hooks.afterResponse);
1605
+ Object.freeze(options.hooks.beforeError);
1606
+ Object.freeze(options.hooks.beforeRedirect);
1607
+ Object.freeze(options.hooks.beforeRequest);
1608
+ Object.freeze(options.hooks.beforeRetry);
1609
+ Object.freeze(options.hooks.init);
1610
+ Object.freeze(options.https);
1611
+ Object.freeze(options.cacheOptions);
1612
+ Object.freeze(options.agent);
1613
+ Object.freeze(options.headers);
1614
+ Object.freeze(options.timeout);
1615
+ Object.freeze(options.retry);
1616
+ Object.freeze(options.retry.errorCodes);
1617
+ Object.freeze(options.retry.methods);
1618
+ Object.freeze(options.retry.statusCodes);
1619
+ }
1620
+ };
1621
+ //#endregion
1622
+ export { Options as default };