@mtkruto/node 0.68.0 → 0.70.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 (1453) hide show
  1. package/esm/0_deps.d.ts +14 -12
  2. package/esm/0_deps.d.ts.map +1 -1
  3. package/esm/0_deps.js +16 -14
  4. package/esm/3_types.d.ts +36 -33
  5. package/esm/3_types.d.ts.map +1 -1
  6. package/esm/3_types.js +36 -33
  7. package/esm/4_constants.d.ts +1 -1
  8. package/esm/4_constants.d.ts.map +1 -1
  9. package/esm/4_errors.d.ts +2 -2
  10. package/esm/4_errors.d.ts.map +1 -1
  11. package/esm/_dnt.polyfills.d.ts +7 -0
  12. package/esm/_dnt.polyfills.d.ts.map +1 -1
  13. package/esm/_dnt.polyfills.js +109 -0
  14. package/esm/client/0_abortable_loop.d.ts +27 -0
  15. package/esm/client/0_abortable_loop.d.ts.map +1 -0
  16. package/esm/client/0_abortable_loop.js +49 -0
  17. package/esm/client/0_client_abstract.d.ts +3 -3
  18. package/esm/client/0_client_abstract.d.ts.map +1 -1
  19. package/esm/client/0_filters.d.ts +10 -4
  20. package/esm/client/0_filters.d.ts.map +1 -1
  21. package/esm/client/0_filters.js +6 -3
  22. package/esm/client/0_html.d.ts +1 -1
  23. package/esm/client/0_html.d.ts.map +1 -1
  24. package/esm/client/0_html.js +1 -1
  25. package/esm/client/0_markdown.d.ts +1 -1
  26. package/esm/client/0_markdown.d.ts.map +1 -1
  27. package/esm/client/0_markdown.js +8 -8
  28. package/esm/client/0_params.d.ts +42 -8
  29. package/esm/client/0_params.d.ts.map +1 -1
  30. package/esm/client/0_password.d.ts +2 -2
  31. package/esm/client/0_password.d.ts.map +1 -1
  32. package/esm/client/0_password.js +1 -1
  33. package/esm/client/0_storage_operations.d.ts +55 -73
  34. package/esm/client/0_storage_operations.d.ts.map +1 -1
  35. package/esm/client/0_storage_operations.js +254 -251
  36. package/esm/client/0_update_processor.d.ts +4 -4
  37. package/esm/client/0_update_processor.d.ts.map +1 -1
  38. package/esm/client/0_utilities.d.ts +2 -2
  39. package/esm/client/0_utilities.d.ts.map +1 -1
  40. package/esm/client/0_utilities.js +8 -8
  41. package/esm/client/1_client_plain.d.ts +3 -3
  42. package/esm/client/1_client_plain.d.ts.map +1 -1
  43. package/esm/client/1_client_plain.js +2 -2
  44. package/esm/client/1_composer.d.ts +3 -3
  45. package/esm/client/1_composer.d.ts.map +1 -1
  46. package/esm/client/1_composer.js +7 -7
  47. package/esm/client/1_types.d.ts +5 -5
  48. package/esm/client/1_types.d.ts.map +1 -1
  49. package/esm/client/2_account_manager.d.ts +3 -3
  50. package/esm/client/2_account_manager.d.ts.map +1 -1
  51. package/esm/client/2_account_manager.js +7 -7
  52. package/esm/client/2_bot_info_manager.d.ts +3 -3
  53. package/esm/client/2_bot_info_manager.d.ts.map +1 -1
  54. package/esm/client/2_business_connection_manager.d.ts +4 -4
  55. package/esm/client/2_business_connection_manager.d.ts.map +1 -1
  56. package/esm/client/2_business_connection_manager.js +3 -3
  57. package/esm/client/2_client_encrypted.d.ts +3 -3
  58. package/esm/client/2_client_encrypted.d.ts.map +1 -1
  59. package/esm/client/2_file_manager.d.ts +3 -3
  60. package/esm/client/2_file_manager.d.ts.map +1 -1
  61. package/esm/client/2_file_manager.js +45 -31
  62. package/esm/client/2_network_statistics_manager.d.ts +1 -1
  63. package/esm/client/2_network_statistics_manager.d.ts.map +1 -1
  64. package/esm/client/2_payment_manager.d.ts +5 -5
  65. package/esm/client/2_payment_manager.d.ts.map +1 -1
  66. package/esm/client/2_payment_manager.js +2 -2
  67. package/esm/client/2_reaction_manager.d.ts +4 -4
  68. package/esm/client/2_reaction_manager.d.ts.map +1 -1
  69. package/esm/client/2_reaction_manager.js +2 -2
  70. package/esm/client/2_translations_manager.d.ts +5 -5
  71. package/esm/client/2_translations_manager.d.ts.map +1 -1
  72. package/esm/client/2_translations_manager.js +20 -16
  73. package/esm/client/2_update_manager.d.ts +6 -4
  74. package/esm/client/2_update_manager.d.ts.map +1 -1
  75. package/esm/client/2_update_manager.js +76 -94
  76. package/esm/client/3_client_encrypted_pool.d.ts +1 -1
  77. package/esm/client/3_client_encrypted_pool.d.ts.map +1 -1
  78. package/esm/client/3_message_manager.d.ts +12 -9
  79. package/esm/client/3_message_manager.d.ts.map +1 -1
  80. package/esm/client/3_message_manager.js +166 -45
  81. package/esm/client/3_video_chat_manager.d.ts +6 -6
  82. package/esm/client/3_video_chat_manager.d.ts.map +1 -1
  83. package/esm/client/3_video_chat_manager.js +7 -7
  84. package/esm/client/4_callback_query_manager.d.ts +6 -6
  85. package/esm/client/4_callback_query_manager.d.ts.map +1 -1
  86. package/esm/client/4_callback_query_manager.js +3 -3
  87. package/esm/client/4_chat_list_manager.d.ts +8 -9
  88. package/esm/client/4_chat_list_manager.d.ts.map +1 -1
  89. package/esm/client/4_chat_list_manager.js +18 -273
  90. package/esm/client/4_chat_manager.d.ts +9 -9
  91. package/esm/client/4_chat_manager.d.ts.map +1 -1
  92. package/esm/client/4_chat_manager.js +11 -11
  93. package/esm/client/4_forum_manager.d.ts +4 -4
  94. package/esm/client/4_forum_manager.d.ts.map +1 -1
  95. package/esm/client/4_gift_manager.d.ts +4 -4
  96. package/esm/client/4_gift_manager.d.ts.map +1 -1
  97. package/esm/client/4_gift_manager.js +4 -4
  98. package/esm/client/4_inline_query_manager.d.ts +6 -6
  99. package/esm/client/4_inline_query_manager.d.ts.map +1 -1
  100. package/esm/client/4_inline_query_manager.js +4 -4
  101. package/esm/client/4_link_preview_manager.d.ts +6 -6
  102. package/esm/client/4_link_preview_manager.d.ts.map +1 -1
  103. package/esm/client/4_link_preview_manager.js +3 -3
  104. package/esm/client/4_poll_manager.d.ts +5 -5
  105. package/esm/client/4_poll_manager.d.ts.map +1 -1
  106. package/esm/client/4_poll_manager.js +2 -2
  107. package/esm/client/4_story_manager.d.ts +8 -8
  108. package/esm/client/4_story_manager.d.ts.map +1 -1
  109. package/esm/client/4_story_manager.js +9 -9
  110. package/esm/client/5_client.d.ts +41 -23
  111. package/esm/client/5_client.d.ts.map +1 -1
  112. package/esm/client/5_client.js +476 -411
  113. package/esm/connection/0_connection.d.ts +1 -1
  114. package/esm/connection/0_connection.d.ts.map +1 -1
  115. package/esm/connection/1_connection_tcp.node.d.ts +1 -1
  116. package/esm/connection/1_connection_tcp.node.d.ts.map +1 -1
  117. package/esm/connection/1_connection_tcp.node.js +4 -4
  118. package/esm/connection/1_connection_web_socket.d.ts +1 -1
  119. package/esm/connection/1_connection_web_socket.d.ts.map +1 -1
  120. package/esm/connection/1_connection_web_socket.js +3 -3
  121. package/esm/deps/jsr.io/@std/assert/1.0.14/assert.d.ts.map +1 -0
  122. package/esm/deps/jsr.io/@std/assert/1.0.14/assertion_error.d.ts +26 -0
  123. package/esm/deps/jsr.io/@std/assert/1.0.14/assertion_error.d.ts.map +1 -0
  124. package/esm/deps/jsr.io/@std/assert/1.0.14/assertion_error.js +30 -0
  125. package/esm/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +1 -0
  126. package/esm/deps/jsr.io/@std/assert/1.0.14/equals.d.ts.map +1 -0
  127. package/esm/deps/jsr.io/@std/assert/1.0.14/false.d.ts.map +1 -0
  128. package/esm/deps/jsr.io/@std/assert/1.0.14/unreachable.d.ts +15 -0
  129. package/esm/deps/jsr.io/@std/assert/1.0.14/unreachable.d.ts.map +1 -0
  130. package/esm/deps/jsr.io/@std/assert/1.0.14/unreachable.js +20 -0
  131. package/esm/deps/jsr.io/@std/async/1.0.14/_util.d.ts.map +1 -0
  132. package/esm/deps/jsr.io/@std/async/1.0.14/abortable.d.ts.map +1 -0
  133. package/esm/deps/jsr.io/@std/async/1.0.14/deadline.d.ts.map +1 -0
  134. package/esm/deps/jsr.io/@std/async/1.0.14/debounce.d.ts.map +1 -0
  135. package/esm/deps/jsr.io/@std/async/1.0.14/delay.d.ts.map +1 -0
  136. package/esm/deps/jsr.io/@std/async/1.0.14/delay.js +80 -0
  137. package/esm/deps/jsr.io/@std/async/1.0.14/mod.d.ts.map +1 -0
  138. package/esm/deps/jsr.io/@std/async/1.0.14/mux_async_iterator.d.ts.map +1 -0
  139. package/esm/deps/jsr.io/@std/async/1.0.14/pool.d.ts.map +1 -0
  140. package/esm/deps/jsr.io/@std/async/1.0.14/retry.d.ts.map +1 -0
  141. package/esm/deps/jsr.io/@std/async/1.0.14/tee.d.ts.map +1 -0
  142. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts +12 -0
  143. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts.map +1 -0
  144. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.js +69 -0
  145. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts +112 -0
  146. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +1 -0
  147. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.js +140 -0
  148. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts +111 -0
  149. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts.map +1 -0
  150. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.js +82 -0
  151. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +39 -0
  152. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  153. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.js +109 -0
  154. package/esm/deps/jsr.io/@std/internal/1.0.10/_os.d.ts +2 -0
  155. package/esm/deps/jsr.io/@std/internal/1.0.10/_os.d.ts.map +1 -0
  156. package/esm/deps/jsr.io/@std/internal/1.0.10/_os.js +12 -0
  157. package/esm/deps/jsr.io/@std/internal/1.0.10/os.d.ts +3 -0
  158. package/esm/deps/jsr.io/@std/internal/1.0.10/os.d.ts.map +1 -0
  159. package/esm/deps/jsr.io/@std/internal/1.0.10/os.js +5 -0
  160. package/esm/deps/jsr.io/@std/path/1.1.2/_common/assert_path.d.ts.map +1 -0
  161. package/esm/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts.map +1 -0
  162. package/esm/deps/jsr.io/@std/path/1.1.2/_common/constants.d.ts.map +1 -0
  163. package/esm/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.d.ts.map +1 -0
  164. package/esm/deps/jsr.io/@std/path/1.1.2/_common/normalize.d.ts.map +1 -0
  165. package/esm/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.d.ts.map +1 -0
  166. package/esm/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts.map +1 -0
  167. package/esm/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts.map +1 -0
  168. package/esm/deps/jsr.io/@std/path/1.1.2/basename.d.ts.map +1 -0
  169. package/esm/deps/jsr.io/@std/path/1.1.2/basename.js +35 -0
  170. package/esm/deps/jsr.io/@std/path/1.1.2/extname.d.ts.map +1 -0
  171. package/esm/deps/jsr.io/@std/path/1.1.2/extname.js +28 -0
  172. package/esm/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts.map +1 -0
  173. package/esm/deps/jsr.io/@std/path/1.1.2/is_absolute.js +28 -0
  174. package/esm/deps/jsr.io/@std/path/1.1.2/join.d.ts.map +1 -0
  175. package/esm/deps/jsr.io/@std/path/1.1.2/join.js +29 -0
  176. package/esm/deps/jsr.io/@std/path/1.1.2/posix/_util.d.ts.map +1 -0
  177. package/esm/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts.map +1 -0
  178. package/esm/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts.map +1 -0
  179. package/esm/deps/jsr.io/@std/path/1.1.2/posix/from_file_url.d.ts.map +1 -0
  180. package/esm/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts.map +1 -0
  181. package/esm/deps/jsr.io/@std/path/1.1.2/posix/join.d.ts.map +1 -0
  182. package/esm/deps/jsr.io/@std/path/1.1.2/posix/normalize.d.ts.map +1 -0
  183. package/esm/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts.map +1 -0
  184. package/esm/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts.map +1 -0
  185. package/esm/deps/jsr.io/@std/path/1.1.2/to_file_url.js +28 -0
  186. package/esm/deps/jsr.io/@std/path/1.1.2/windows/_util.d.ts.map +1 -0
  187. package/esm/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts.map +1 -0
  188. package/esm/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts.map +1 -0
  189. package/esm/deps/jsr.io/@std/path/1.1.2/windows/from_file_url.d.ts.map +1 -0
  190. package/esm/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts.map +1 -0
  191. package/esm/deps/jsr.io/@std/path/1.1.2/windows/join.d.ts.map +1 -0
  192. package/esm/deps/jsr.io/@std/path/1.1.2/windows/normalize.d.ts.map +1 -0
  193. package/esm/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts.map +1 -0
  194. package/esm/deps/jsr.io/@std/streams/1.0.11/to_array_buffer.d.ts.map +1 -0
  195. package/esm/session/1_session.d.ts +2 -2
  196. package/esm/session/1_session.d.ts.map +1 -1
  197. package/esm/session/2_session_encrypted.d.ts +3 -3
  198. package/esm/session/2_session_encrypted.d.ts.map +1 -1
  199. package/esm/session/2_session_encrypted.js +76 -77
  200. package/esm/session/2_session_plain.js +1 -1
  201. package/esm/storage/0_storage.d.ts +2 -1
  202. package/esm/storage/0_storage.d.ts.map +1 -1
  203. package/esm/storage/1_utilities.d.ts +14 -11
  204. package/esm/storage/1_utilities.d.ts.map +1 -1
  205. package/esm/storage/1_utilities.js +17 -17
  206. package/esm/storage/2_storage_indexed_db.d.ts +2 -1
  207. package/esm/storage/2_storage_indexed_db.d.ts.map +1 -1
  208. package/esm/storage/2_storage_indexed_db.js +6 -3
  209. package/esm/storage/2_storage_local_storage.node.d.ts +2 -1
  210. package/esm/storage/2_storage_local_storage.node.d.ts.map +1 -1
  211. package/esm/storage/2_storage_local_storage.node.js +6 -3
  212. package/esm/storage/2_storage_memory.d.ts +3 -2
  213. package/esm/storage/2_storage_memory.d.ts.map +1 -1
  214. package/esm/storage/2_storage_memory.js +5 -2
  215. package/esm/storage/2_storage_session_storage.d.ts +3 -2
  216. package/esm/storage/2_storage_session_storage.d.ts.map +1 -1
  217. package/esm/storage/2_storage_session_storage.js +6 -3
  218. package/esm/tl/0_utilities.d.ts +1 -0
  219. package/esm/tl/0_utilities.d.ts.map +1 -1
  220. package/esm/tl/0_utilities.js +21 -2
  221. package/esm/tl/1_telegram_api.d.ts +810 -254
  222. package/esm/tl/1_telegram_api.d.ts.map +1 -1
  223. package/esm/tl/1_telegram_api.js +912 -213
  224. package/esm/tl/1_tl_reader.d.ts +3 -3
  225. package/esm/tl/1_tl_reader.d.ts.map +1 -1
  226. package/esm/tl/1_tl_reader.js +8 -8
  227. package/esm/tl/1_tl_writer.d.ts +3 -3
  228. package/esm/tl/1_tl_writer.d.ts.map +1 -1
  229. package/esm/tl/1_tl_writer.js +6 -6
  230. package/esm/tl/1_utilities.d.ts +1 -1
  231. package/esm/tl/1_utilities.d.ts.map +1 -1
  232. package/esm/tl/1_utilities.js +2 -2
  233. package/esm/tl/2_message.js +1 -1
  234. package/esm/tl/2_mtproto.d.ts +2 -2
  235. package/esm/tl/2_mtproto.d.ts.map +1 -1
  236. package/esm/tl/2_telegram.d.ts +1 -1
  237. package/esm/tl/2_telegram.d.ts.map +1 -1
  238. package/esm/transport/0_obfuscation.d.ts +1 -1
  239. package/esm/transport/0_obfuscation.d.ts.map +1 -1
  240. package/esm/transport/0_obfuscation.js +2 -2
  241. package/esm/transport/0_transport.d.ts +1 -1
  242. package/esm/transport/0_transport.d.ts.map +1 -1
  243. package/esm/transport/1_transport_abridged.d.ts +1 -1
  244. package/esm/transport/1_transport_abridged.d.ts.map +1 -1
  245. package/esm/transport/1_transport_intermediate.d.ts +1 -1
  246. package/esm/transport/1_transport_intermediate.d.ts.map +1 -1
  247. package/esm/transport/1_transport_provider.d.ts +2 -2
  248. package/esm/transport/1_transport_provider.d.ts.map +1 -1
  249. package/esm/transport/2_transport_provider_tcp.d.ts +1 -1
  250. package/esm/transport/2_transport_provider_tcp.d.ts.map +1 -1
  251. package/esm/transport/2_transport_provider_web_socket.d.ts +1 -1
  252. package/esm/transport/2_transport_provider_web_socket.d.ts.map +1 -1
  253. package/esm/transport/2_transport_provider_web_socket.js +1 -1
  254. package/esm/types/0_birthday.d.ts +1 -1
  255. package/esm/types/0_birthday.d.ts.map +1 -1
  256. package/esm/types/0_callback_query_answer.d.ts +1 -1
  257. package/esm/types/0_callback_query_answer.d.ts.map +1 -1
  258. package/esm/types/0_callback_query_question.js +2 -2
  259. package/esm/types/0_chat_administrator_rights.d.ts +1 -1
  260. package/esm/types/0_chat_administrator_rights.d.ts.map +1 -1
  261. package/esm/types/0_chat_member_rights.d.ts +1 -1
  262. package/esm/types/0_chat_member_rights.d.ts.map +1 -1
  263. package/esm/types/0_contact.d.ts +1 -1
  264. package/esm/types/0_contact.d.ts.map +1 -1
  265. package/esm/types/0_dice.d.ts +1 -1
  266. package/esm/types/0_dice.d.ts.map +1 -1
  267. package/esm/types/0_failed_invitation.d.ts +1 -1
  268. package/esm/types/0_failed_invitation.d.ts.map +1 -1
  269. package/esm/types/0_file_source.d.ts +1 -1
  270. package/esm/types/0_file_source.d.ts.map +1 -1
  271. package/esm/types/0_invoice.d.ts +1 -1
  272. package/esm/types/0_invoice.d.ts.map +1 -1
  273. package/esm/types/0_live_stream_channel.d.ts +1 -1
  274. package/esm/types/0_live_stream_channel.d.ts.map +1 -1
  275. package/esm/types/0_mask_position.d.ts +1 -1
  276. package/esm/types/0_mask_position.d.ts.map +1 -1
  277. package/esm/types/0_mask_position.js +1 -1
  278. package/esm/types/0_message_search_filter.d.ts +1 -1
  279. package/esm/types/0_message_search_filter.d.ts.map +1 -1
  280. package/esm/types/0_opening_hours.d.ts +1 -1
  281. package/esm/types/0_opening_hours.d.ts.map +1 -1
  282. package/esm/types/0_reaction.js +5 -5
  283. package/esm/types/0_refunded_payment.d.ts +1 -1
  284. package/esm/types/0_refunded_payment.d.ts.map +1 -1
  285. package/esm/types/0_restriction_reason.d.ts +1 -1
  286. package/esm/types/0_restriction_reason.d.ts.map +1 -1
  287. package/esm/types/0_self_destruct_option.js +3 -3
  288. package/esm/types/0_shipping_address.d.ts +1 -1
  289. package/esm/types/0_shipping_address.d.ts.map +1 -1
  290. package/esm/types/0_slow_mode_duration.js +2 -2
  291. package/esm/types/0_voice.d.ts +1 -1
  292. package/esm/types/0_voice.d.ts.map +1 -1
  293. package/esm/types/0_voice_transcription.d.ts +1 -1
  294. package/esm/types/0_voice_transcription.d.ts.map +1 -1
  295. package/esm/types/1_animation.d.ts +1 -1
  296. package/esm/types/1_animation.d.ts.map +1 -1
  297. package/esm/types/1_audio.d.ts +1 -1
  298. package/esm/types/1_audio.d.ts.map +1 -1
  299. package/esm/types/1_bot_command_scope.d.ts +2 -2
  300. package/esm/types/1_bot_command_scope.d.ts.map +1 -1
  301. package/esm/types/1_chat_p.d.ts +12 -2
  302. package/esm/types/1_chat_p.d.ts.map +1 -1
  303. package/esm/types/1_chat_p.js +6 -2
  304. package/esm/types/1_document.d.ts +1 -1
  305. package/esm/types/1_document.d.ts.map +1 -1
  306. package/esm/types/1_giveaway.d.ts +2 -2
  307. package/esm/types/1_giveaway.d.ts.map +1 -1
  308. package/esm/types/1_inline_keyboard_button.d.ts +3 -3
  309. package/esm/types/1_inline_keyboard_button.d.ts.map +1 -1
  310. package/esm/types/1_inline_keyboard_button.js +4 -4
  311. package/esm/types/1_inline_query_result_button.d.ts +1 -1
  312. package/esm/types/1_inline_query_result_button.d.ts.map +1 -1
  313. package/esm/types/1_input_story_content.d.ts +1 -1
  314. package/esm/types/1_input_story_content.d.ts.map +1 -1
  315. package/esm/types/1_keyboard_button.d.ts +3 -3
  316. package/esm/types/1_keyboard_button.d.ts.map +1 -1
  317. package/esm/types/1_keyboard_button.js +1 -1
  318. package/esm/types/1_message_reaction.d.ts +1 -1
  319. package/esm/types/1_message_reaction.d.ts.map +1 -1
  320. package/esm/types/1_message_reaction.js +2 -2
  321. package/esm/types/1_mini_app_info.d.ts +2 -2
  322. package/esm/types/1_mini_app_info.d.ts.map +1 -1
  323. package/esm/types/1_network_statistics.d.ts +1 -1
  324. package/esm/types/1_network_statistics.d.ts.map +1 -1
  325. package/esm/types/1_order_info.d.ts +2 -2
  326. package/esm/types/1_order_info.d.ts.map +1 -1
  327. package/esm/types/1_photo.d.ts +1 -1
  328. package/esm/types/1_photo.d.ts.map +1 -1
  329. package/esm/types/1_reaction_count.d.ts +2 -2
  330. package/esm/types/1_reaction_count.d.ts.map +1 -1
  331. package/esm/types/1_sticker.d.ts +3 -3
  332. package/esm/types/1_sticker.d.ts.map +1 -1
  333. package/esm/types/1_sticker.js +2 -2
  334. package/esm/types/1_story_reaction.d.ts +2 -2
  335. package/esm/types/1_story_reaction.d.ts.map +1 -1
  336. package/esm/types/1_venue.d.ts +1 -1
  337. package/esm/types/1_venue.d.ts.map +1 -1
  338. package/esm/types/1_video.d.ts +1 -1
  339. package/esm/types/1_video.d.ts.map +1 -1
  340. package/esm/types/1_video_note.d.ts +1 -1
  341. package/esm/types/1_video_note.d.ts.map +1 -1
  342. package/esm/types/2_chat.d.ts +6 -9
  343. package/esm/types/2_chat.d.ts.map +1 -1
  344. package/esm/types/2_chat.js +10 -15
  345. package/esm/types/2_inactive_chat.d.ts +1 -1
  346. package/esm/types/2_inactive_chat.d.ts.map +1 -1
  347. package/esm/types/2_message_entity.d.ts +139 -0
  348. package/esm/types/2_message_entity.d.ts.map +1 -0
  349. package/esm/types/2_message_entity.js +183 -0
  350. package/esm/types/2_message_interactions.d.ts +1 -1
  351. package/esm/types/2_message_interactions.d.ts.map +1 -1
  352. package/esm/types/2_message_reaction_count.d.ts +4 -5
  353. package/esm/types/2_message_reaction_count.d.ts.map +1 -1
  354. package/esm/types/2_message_reaction_count.js +4 -6
  355. package/esm/types/2_poll_answer.d.ts +3 -4
  356. package/esm/types/2_poll_answer.d.ts.map +1 -1
  357. package/esm/types/2_poll_answer.js +4 -5
  358. package/esm/types/2_reply_markup.d.ts +3 -3
  359. package/esm/types/2_reply_markup.d.ts.map +1 -1
  360. package/esm/types/2_sticker_set.d.ts +51 -0
  361. package/esm/types/2_sticker_set.d.ts.map +1 -0
  362. package/esm/types/2_sticker_set.js +91 -0
  363. package/esm/types/2_story_content.d.ts +2 -2
  364. package/esm/types/2_story_content.d.ts.map +1 -1
  365. package/esm/types/2_story_interactions.d.ts +2 -2
  366. package/esm/types/2_story_interactions.d.ts.map +1 -1
  367. package/esm/types/2_story_interactive_area.d.ts +6 -6
  368. package/esm/types/2_story_interactive_area.d.ts.map +1 -1
  369. package/esm/types/2_story_interactive_area.js +2 -2
  370. package/esm/types/2_story_privacy.d.ts +46 -0
  371. package/esm/types/2_story_privacy.d.ts.map +1 -0
  372. package/esm/types/2_story_privacy.js +76 -0
  373. package/esm/types/2_successful_payment.d.ts +2 -2
  374. package/esm/types/2_successful_payment.d.ts.map +1 -1
  375. package/esm/types/2_user.d.ts +65 -0
  376. package/esm/types/2_user.d.ts.map +1 -0
  377. package/esm/types/2_user.js +73 -0
  378. package/esm/types/3_business_connection.d.ts +37 -0
  379. package/esm/types/3_business_connection.d.ts.map +1 -0
  380. package/esm/types/3_business_connection.js +36 -0
  381. package/esm/types/3_chat_member.d.ts +70 -0
  382. package/esm/types/3_chat_member.d.ts.map +1 -0
  383. package/esm/types/3_chat_member.js +114 -0
  384. package/esm/types/3_chat_settings.d.ts +46 -0
  385. package/esm/types/3_chat_settings.d.ts.map +1 -0
  386. package/esm/types/3_chat_settings.js +51 -0
  387. package/esm/types/3_chosen_inline_result.d.ts +38 -0
  388. package/esm/types/3_chosen_inline_result.d.ts.map +1 -0
  389. package/esm/types/3_chosen_inline_result.js +37 -0
  390. package/esm/types/3_forward_header.d.ts +58 -0
  391. package/esm/types/3_forward_header.d.ts.map +1 -0
  392. package/esm/types/3_forward_header.js +73 -0
  393. package/esm/types/3_game.d.ts +40 -0
  394. package/esm/types/3_game.d.ts.map +1 -0
  395. package/esm/types/3_gift_upgraded_component.d.ts +95 -0
  396. package/esm/types/3_gift_upgraded_component.d.ts.map +1 -0
  397. package/esm/types/3_gift_upgraded_component.js +88 -0
  398. package/esm/types/3_inline_query.d.ts +40 -0
  399. package/esm/types/3_inline_query.d.ts.map +1 -0
  400. package/esm/types/3_inline_query.js +60 -0
  401. package/esm/types/3_input_media.d.ts +122 -0
  402. package/esm/types/3_input_media.d.ts.map +1 -0
  403. package/esm/types/3_invite_link.d.ts +47 -0
  404. package/esm/types/3_invite_link.d.ts.map +1 -0
  405. package/esm/types/3_invite_link.js +48 -0
  406. package/esm/types/3_message_reactions.d.ts +42 -0
  407. package/esm/types/3_message_reactions.d.ts.map +1 -0
  408. package/esm/types/3_message_reactions.js +54 -0
  409. package/esm/types/3_poll_option.d.ts +34 -0
  410. package/esm/types/3_poll_option.d.ts.map +1 -0
  411. package/esm/types/3_poll_option.js +29 -0
  412. package/esm/types/3_pre_checkout_query.d.ts +34 -0
  413. package/esm/types/3_pre_checkout_query.d.ts.map +1 -0
  414. package/esm/types/3_pre_checkout_query.js +39 -0
  415. package/esm/types/3_reply_quote.d.ts +32 -0
  416. package/esm/types/3_reply_quote.d.ts.map +1 -0
  417. package/esm/types/3_reply_quote.js +30 -0
  418. package/esm/types/3_story.d.ts +8 -9
  419. package/esm/types/3_story.d.ts.map +1 -1
  420. package/esm/types/3_story.js +6 -7
  421. package/esm/types/4_chat_member_updated.d.ts +43 -0
  422. package/esm/types/4_chat_member_updated.d.ts.map +1 -0
  423. package/esm/types/4_chat_member_updated.js +52 -0
  424. package/esm/types/4_gift.d.ts +94 -0
  425. package/esm/types/4_gift.d.ts.map +1 -0
  426. package/esm/types/4_gift.js +105 -0
  427. package/esm/types/4_join_request.d.ts +39 -0
  428. package/esm/types/4_join_request.d.ts.map +1 -0
  429. package/esm/types/4_join_request.js +62 -0
  430. package/esm/types/4_poll.d.ts +55 -0
  431. package/esm/types/4_poll.d.ts.map +1 -0
  432. package/esm/types/4_poll.js +43 -0
  433. package/esm/types/4_reply_to.d.ts +35 -0
  434. package/esm/types/4_reply_to.d.ts.map +1 -0
  435. package/esm/types/5_claimed_gift.d.ts +44 -0
  436. package/esm/types/5_claimed_gift.d.ts.map +1 -0
  437. package/esm/types/5_claimed_gift.js +48 -0
  438. package/esm/types/5_link_preview.d.ts +188 -0
  439. package/esm/types/5_link_preview.d.ts.map +1 -0
  440. package/esm/types/5_link_preview.js +218 -0
  441. package/esm/types/6_claimed_gifts.d.ts +33 -0
  442. package/esm/types/6_claimed_gifts.d.ts.map +1 -0
  443. package/esm/types/6_claimed_gifts.js +43 -0
  444. package/esm/types/6_message.d.ts +616 -0
  445. package/esm/types/6_message.d.ts.map +1 -0
  446. package/esm/types/6_message.js +520 -0
  447. package/esm/types/6_message_content.d.ts +119 -0
  448. package/esm/types/6_message_content.d.ts.map +1 -0
  449. package/esm/types/7_callback_query.d.ts +43 -0
  450. package/esm/types/7_callback_query.d.ts.map +1 -0
  451. package/esm/types/7_callback_query.js +59 -0
  452. package/esm/types/7_chat_list_item.d.ts +35 -0
  453. package/esm/types/7_chat_list_item.d.ts.map +1 -0
  454. package/esm/types/7_chat_list_item.js +87 -0
  455. package/esm/types/7_inline_query_result.d.ts +251 -0
  456. package/esm/types/7_inline_query_result.d.ts.map +1 -0
  457. package/esm/types/7_inline_query_result.js +380 -0
  458. package/esm/types/7_saved_chat.d.ts +35 -0
  459. package/esm/types/7_saved_chat.d.ts.map +1 -0
  460. package/esm/types/7_saved_chat.js +43 -0
  461. package/esm/types/7_topic.d.ts +34 -0
  462. package/esm/types/7_topic.d.ts.map +1 -0
  463. package/esm/types/7_topic.js +61 -0
  464. package/esm/types/8_inline_query_answer.d.ts +32 -0
  465. package/esm/types/8_inline_query_answer.d.ts.map +1 -0
  466. package/esm/types/8_inline_query_answer.js +28 -0
  467. package/esm/types/8_saved_chats.d.ts +33 -0
  468. package/esm/types/8_saved_chats.d.ts.map +1 -0
  469. package/esm/types/8_saved_chats.js +36 -0
  470. package/esm/types/8_update.d.ts +528 -0
  471. package/esm/types/8_update.d.ts.map +1 -0
  472. package/esm/types/_file_id.d.ts +61 -50
  473. package/esm/types/_file_id.d.ts.map +1 -1
  474. package/esm/types/_file_id.js +92 -73
  475. package/esm/types/_getters.d.ts +3 -10
  476. package/esm/types/_getters.d.ts.map +1 -1
  477. package/esm/utilities/0_bigint.js +5 -5
  478. package/esm/utilities/0_buffer.js +3 -3
  479. package/esm/utilities/0_env.js +1 -1
  480. package/esm/utilities/0_hash.d.ts +2 -2
  481. package/esm/utilities/0_hash.d.ts.map +1 -1
  482. package/esm/utilities/0_misc.d.ts +1 -0
  483. package/esm/utilities/0_misc.d.ts.map +1 -1
  484. package/esm/utilities/0_misc.js +18 -4
  485. package/esm/utilities/0_part_stream.d.ts +1 -1
  486. package/esm/utilities/0_part_stream.d.ts.map +1 -1
  487. package/esm/utilities/0_rle.js +1 -1
  488. package/esm/utilities/1_auth.js +1 -1
  489. package/esm/utilities/1_base64.js +1 -1
  490. package/esm/utilities/1_logger.js +2 -2
  491. package/esm/utilities/1_math.js +2 -2
  492. package/esm/utilities/2_queue.js +1 -1
  493. package/package.json +1 -1
  494. package/script/0_deps.d.ts +14 -12
  495. package/script/0_deps.d.ts.map +1 -1
  496. package/script/0_deps.js +20 -15
  497. package/script/3_types.d.ts +36 -33
  498. package/script/3_types.d.ts.map +1 -1
  499. package/script/3_types.js +36 -33
  500. package/script/4_constants.d.ts +1 -1
  501. package/script/4_constants.d.ts.map +1 -1
  502. package/script/4_errors.d.ts +2 -2
  503. package/script/4_errors.d.ts.map +1 -1
  504. package/script/_dnt.polyfills.d.ts +7 -0
  505. package/script/_dnt.polyfills.d.ts.map +1 -1
  506. package/script/_dnt.polyfills.js +109 -0
  507. package/script/client/0_abortable_loop.d.ts +27 -0
  508. package/script/client/0_abortable_loop.d.ts.map +1 -0
  509. package/script/client/0_abortable_loop.js +53 -0
  510. package/script/client/0_client_abstract.d.ts +3 -3
  511. package/script/client/0_client_abstract.d.ts.map +1 -1
  512. package/script/client/0_filters.d.ts +10 -4
  513. package/script/client/0_filters.d.ts.map +1 -1
  514. package/script/client/0_filters.js +6 -3
  515. package/script/client/0_html.d.ts +1 -1
  516. package/script/client/0_html.d.ts.map +1 -1
  517. package/script/client/0_html.js +1 -1
  518. package/script/client/0_markdown.d.ts +1 -1
  519. package/script/client/0_markdown.d.ts.map +1 -1
  520. package/script/client/0_markdown.js +8 -8
  521. package/script/client/0_params.d.ts +42 -8
  522. package/script/client/0_params.d.ts.map +1 -1
  523. package/script/client/0_password.d.ts +2 -2
  524. package/script/client/0_password.d.ts.map +1 -1
  525. package/script/client/0_password.js +1 -1
  526. package/script/client/0_storage_operations.d.ts +55 -73
  527. package/script/client/0_storage_operations.d.ts.map +1 -1
  528. package/script/client/0_storage_operations.js +252 -249
  529. package/script/client/0_update_processor.d.ts +4 -4
  530. package/script/client/0_update_processor.d.ts.map +1 -1
  531. package/script/client/0_utilities.d.ts +2 -2
  532. package/script/client/0_utilities.d.ts.map +1 -1
  533. package/script/client/0_utilities.js +8 -8
  534. package/script/client/1_client_plain.d.ts +3 -3
  535. package/script/client/1_client_plain.d.ts.map +1 -1
  536. package/script/client/1_client_plain.js +2 -2
  537. package/script/client/1_composer.d.ts +3 -3
  538. package/script/client/1_composer.d.ts.map +1 -1
  539. package/script/client/1_composer.js +7 -7
  540. package/script/client/1_types.d.ts +5 -5
  541. package/script/client/1_types.d.ts.map +1 -1
  542. package/script/client/2_account_manager.d.ts +3 -3
  543. package/script/client/2_account_manager.d.ts.map +1 -1
  544. package/script/client/2_account_manager.js +7 -7
  545. package/script/client/2_bot_info_manager.d.ts +3 -3
  546. package/script/client/2_bot_info_manager.d.ts.map +1 -1
  547. package/script/client/2_business_connection_manager.d.ts +4 -4
  548. package/script/client/2_business_connection_manager.d.ts.map +1 -1
  549. package/script/client/2_business_connection_manager.js +3 -3
  550. package/script/client/2_client_encrypted.d.ts +3 -3
  551. package/script/client/2_client_encrypted.d.ts.map +1 -1
  552. package/script/client/2_file_manager.d.ts +3 -3
  553. package/script/client/2_file_manager.d.ts.map +1 -1
  554. package/script/client/2_file_manager.js +45 -31
  555. package/script/client/2_network_statistics_manager.d.ts +1 -1
  556. package/script/client/2_network_statistics_manager.d.ts.map +1 -1
  557. package/script/client/2_payment_manager.d.ts +5 -5
  558. package/script/client/2_payment_manager.d.ts.map +1 -1
  559. package/script/client/2_payment_manager.js +2 -2
  560. package/script/client/2_reaction_manager.d.ts +4 -4
  561. package/script/client/2_reaction_manager.d.ts.map +1 -1
  562. package/script/client/2_reaction_manager.js +2 -2
  563. package/script/client/2_translations_manager.d.ts +5 -5
  564. package/script/client/2_translations_manager.d.ts.map +1 -1
  565. package/script/client/2_translations_manager.js +20 -16
  566. package/script/client/2_update_manager.d.ts +6 -4
  567. package/script/client/2_update_manager.d.ts.map +1 -1
  568. package/script/client/2_update_manager.js +76 -94
  569. package/script/client/3_client_encrypted_pool.d.ts +1 -1
  570. package/script/client/3_client_encrypted_pool.d.ts.map +1 -1
  571. package/script/client/3_message_manager.d.ts +12 -9
  572. package/script/client/3_message_manager.d.ts.map +1 -1
  573. package/script/client/3_message_manager.js +165 -44
  574. package/script/client/3_video_chat_manager.d.ts +6 -6
  575. package/script/client/3_video_chat_manager.d.ts.map +1 -1
  576. package/script/client/3_video_chat_manager.js +7 -7
  577. package/script/client/4_callback_query_manager.d.ts +6 -6
  578. package/script/client/4_callback_query_manager.d.ts.map +1 -1
  579. package/script/client/4_callback_query_manager.js +3 -3
  580. package/script/client/4_chat_list_manager.d.ts +8 -9
  581. package/script/client/4_chat_list_manager.d.ts.map +1 -1
  582. package/script/client/4_chat_list_manager.js +17 -272
  583. package/script/client/4_chat_manager.d.ts +9 -9
  584. package/script/client/4_chat_manager.d.ts.map +1 -1
  585. package/script/client/4_chat_manager.js +11 -11
  586. package/script/client/4_forum_manager.d.ts +4 -4
  587. package/script/client/4_forum_manager.d.ts.map +1 -1
  588. package/script/client/4_gift_manager.d.ts +4 -4
  589. package/script/client/4_gift_manager.d.ts.map +1 -1
  590. package/script/client/4_gift_manager.js +4 -4
  591. package/script/client/4_inline_query_manager.d.ts +6 -6
  592. package/script/client/4_inline_query_manager.d.ts.map +1 -1
  593. package/script/client/4_inline_query_manager.js +4 -4
  594. package/script/client/4_link_preview_manager.d.ts +6 -6
  595. package/script/client/4_link_preview_manager.d.ts.map +1 -1
  596. package/script/client/4_link_preview_manager.js +3 -3
  597. package/script/client/4_poll_manager.d.ts +5 -5
  598. package/script/client/4_poll_manager.d.ts.map +1 -1
  599. package/script/client/4_poll_manager.js +2 -2
  600. package/script/client/4_story_manager.d.ts +8 -8
  601. package/script/client/4_story_manager.d.ts.map +1 -1
  602. package/script/client/4_story_manager.js +9 -9
  603. package/script/client/5_client.d.ts +41 -23
  604. package/script/client/5_client.d.ts.map +1 -1
  605. package/script/client/5_client.js +474 -409
  606. package/script/connection/0_connection.d.ts +1 -1
  607. package/script/connection/0_connection.d.ts.map +1 -1
  608. package/script/connection/1_connection_tcp.node.d.ts +1 -1
  609. package/script/connection/1_connection_tcp.node.d.ts.map +1 -1
  610. package/script/connection/1_connection_tcp.node.js +4 -4
  611. package/script/connection/1_connection_web_socket.d.ts +1 -1
  612. package/script/connection/1_connection_web_socket.d.ts.map +1 -1
  613. package/script/connection/1_connection_web_socket.js +3 -3
  614. package/script/deps/jsr.io/@std/assert/1.0.14/assert.d.ts.map +1 -0
  615. package/script/deps/jsr.io/@std/assert/1.0.14/assertion_error.d.ts +26 -0
  616. package/script/deps/jsr.io/@std/assert/1.0.14/assertion_error.d.ts.map +1 -0
  617. package/script/deps/jsr.io/@std/assert/1.0.14/assertion_error.js +34 -0
  618. package/script/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +1 -0
  619. package/script/deps/jsr.io/@std/assert/1.0.14/equals.d.ts.map +1 -0
  620. package/script/deps/jsr.io/@std/assert/1.0.14/false.d.ts.map +1 -0
  621. package/script/deps/jsr.io/@std/assert/1.0.14/unreachable.d.ts +15 -0
  622. package/script/deps/jsr.io/@std/assert/1.0.14/unreachable.d.ts.map +1 -0
  623. package/script/deps/jsr.io/@std/assert/1.0.14/unreachable.js +23 -0
  624. package/script/deps/jsr.io/@std/async/1.0.14/_util.d.ts.map +1 -0
  625. package/script/deps/jsr.io/@std/async/1.0.14/abortable.d.ts.map +1 -0
  626. package/script/deps/jsr.io/@std/async/1.0.14/deadline.d.ts.map +1 -0
  627. package/script/deps/jsr.io/@std/async/1.0.14/debounce.d.ts.map +1 -0
  628. package/script/deps/jsr.io/@std/async/1.0.14/delay.d.ts.map +1 -0
  629. package/script/deps/jsr.io/@std/async/1.0.14/delay.js +116 -0
  630. package/script/deps/jsr.io/@std/async/1.0.14/mod.d.ts.map +1 -0
  631. package/script/deps/jsr.io/@std/async/1.0.14/mux_async_iterator.d.ts.map +1 -0
  632. package/script/deps/jsr.io/@std/async/1.0.14/pool.d.ts.map +1 -0
  633. package/script/deps/jsr.io/@std/async/1.0.14/retry.d.ts.map +1 -0
  634. package/script/deps/jsr.io/@std/async/1.0.14/tee.d.ts.map +1 -0
  635. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts +12 -0
  636. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts.map +1 -0
  637. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.js +72 -0
  638. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts +112 -0
  639. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +1 -0
  640. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.js +144 -0
  641. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts +111 -0
  642. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts.map +1 -0
  643. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.js +85 -0
  644. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +39 -0
  645. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  646. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.js +113 -0
  647. package/script/deps/jsr.io/@std/internal/1.0.10/_os.d.ts +2 -0
  648. package/script/deps/jsr.io/@std/internal/1.0.10/_os.d.ts.map +1 -0
  649. package/script/deps/jsr.io/@std/internal/1.0.10/_os.js +48 -0
  650. package/script/deps/jsr.io/@std/internal/1.0.10/os.d.ts +3 -0
  651. package/script/deps/jsr.io/@std/internal/1.0.10/os.d.ts.map +1 -0
  652. package/script/deps/jsr.io/@std/internal/1.0.10/os.js +8 -0
  653. package/script/deps/jsr.io/@std/path/1.1.2/_common/assert_path.d.ts.map +1 -0
  654. package/script/deps/jsr.io/@std/path/1.1.2/_common/basename.d.ts.map +1 -0
  655. package/script/deps/jsr.io/@std/path/1.1.2/_common/constants.d.ts.map +1 -0
  656. package/script/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.d.ts.map +1 -0
  657. package/script/deps/jsr.io/@std/path/1.1.2/_common/normalize.d.ts.map +1 -0
  658. package/script/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.d.ts.map +1 -0
  659. package/script/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.d.ts.map +1 -0
  660. package/script/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.d.ts.map +1 -0
  661. package/script/deps/jsr.io/@std/path/1.1.2/basename.d.ts.map +1 -0
  662. package/script/deps/jsr.io/@std/path/1.1.2/basename.js +38 -0
  663. package/script/deps/jsr.io/@std/path/1.1.2/extname.d.ts.map +1 -0
  664. package/script/deps/jsr.io/@std/path/1.1.2/extname.js +31 -0
  665. package/script/deps/jsr.io/@std/path/1.1.2/is_absolute.d.ts.map +1 -0
  666. package/script/deps/jsr.io/@std/path/1.1.2/is_absolute.js +31 -0
  667. package/script/deps/jsr.io/@std/path/1.1.2/join.d.ts.map +1 -0
  668. package/script/deps/jsr.io/@std/path/1.1.2/join.js +32 -0
  669. package/script/deps/jsr.io/@std/path/1.1.2/posix/_util.d.ts.map +1 -0
  670. package/script/deps/jsr.io/@std/path/1.1.2/posix/basename.d.ts.map +1 -0
  671. package/script/deps/jsr.io/@std/path/1.1.2/posix/extname.d.ts.map +1 -0
  672. package/script/deps/jsr.io/@std/path/1.1.2/posix/from_file_url.d.ts.map +1 -0
  673. package/script/deps/jsr.io/@std/path/1.1.2/posix/is_absolute.d.ts.map +1 -0
  674. package/script/deps/jsr.io/@std/path/1.1.2/posix/join.d.ts.map +1 -0
  675. package/script/deps/jsr.io/@std/path/1.1.2/posix/normalize.d.ts.map +1 -0
  676. package/script/deps/jsr.io/@std/path/1.1.2/posix/to_file_url.d.ts.map +1 -0
  677. package/script/deps/jsr.io/@std/path/1.1.2/to_file_url.d.ts.map +1 -0
  678. package/script/deps/jsr.io/@std/path/1.1.2/to_file_url.js +31 -0
  679. package/script/deps/jsr.io/@std/path/1.1.2/windows/_util.d.ts.map +1 -0
  680. package/script/deps/jsr.io/@std/path/1.1.2/windows/basename.d.ts.map +1 -0
  681. package/script/deps/jsr.io/@std/path/1.1.2/windows/extname.d.ts.map +1 -0
  682. package/script/deps/jsr.io/@std/path/1.1.2/windows/from_file_url.d.ts.map +1 -0
  683. package/script/deps/jsr.io/@std/path/1.1.2/windows/is_absolute.d.ts.map +1 -0
  684. package/script/deps/jsr.io/@std/path/1.1.2/windows/join.d.ts.map +1 -0
  685. package/script/deps/jsr.io/@std/path/1.1.2/windows/normalize.d.ts.map +1 -0
  686. package/script/deps/jsr.io/@std/path/1.1.2/windows/to_file_url.d.ts.map +1 -0
  687. package/script/deps/jsr.io/@std/streams/1.0.11/to_array_buffer.d.ts.map +1 -0
  688. package/script/session/1_session.d.ts +2 -2
  689. package/script/session/1_session.d.ts.map +1 -1
  690. package/script/session/2_session_encrypted.d.ts +3 -3
  691. package/script/session/2_session_encrypted.d.ts.map +1 -1
  692. package/script/session/2_session_encrypted.js +75 -76
  693. package/script/session/2_session_plain.js +1 -1
  694. package/script/storage/0_storage.d.ts +2 -1
  695. package/script/storage/0_storage.d.ts.map +1 -1
  696. package/script/storage/1_utilities.d.ts +14 -11
  697. package/script/storage/1_utilities.d.ts.map +1 -1
  698. package/script/storage/1_utilities.js +39 -39
  699. package/script/storage/2_storage_indexed_db.d.ts +2 -1
  700. package/script/storage/2_storage_indexed_db.d.ts.map +1 -1
  701. package/script/storage/2_storage_indexed_db.js +6 -3
  702. package/script/storage/2_storage_local_storage.node.d.ts +2 -1
  703. package/script/storage/2_storage_local_storage.node.d.ts.map +1 -1
  704. package/script/storage/2_storage_local_storage.node.js +6 -3
  705. package/script/storage/2_storage_memory.d.ts +3 -2
  706. package/script/storage/2_storage_memory.d.ts.map +1 -1
  707. package/script/storage/2_storage_memory.js +5 -2
  708. package/script/storage/2_storage_session_storage.d.ts +3 -2
  709. package/script/storage/2_storage_session_storage.d.ts.map +1 -1
  710. package/script/storage/2_storage_session_storage.js +6 -3
  711. package/script/tl/0_utilities.d.ts +1 -0
  712. package/script/tl/0_utilities.d.ts.map +1 -1
  713. package/script/tl/0_utilities.js +21 -1
  714. package/script/tl/1_telegram_api.d.ts +810 -254
  715. package/script/tl/1_telegram_api.d.ts.map +1 -1
  716. package/script/tl/1_telegram_api.js +912 -213
  717. package/script/tl/1_tl_reader.d.ts +3 -3
  718. package/script/tl/1_tl_reader.d.ts.map +1 -1
  719. package/script/tl/1_tl_reader.js +8 -8
  720. package/script/tl/1_tl_writer.d.ts +3 -3
  721. package/script/tl/1_tl_writer.d.ts.map +1 -1
  722. package/script/tl/1_tl_writer.js +6 -6
  723. package/script/tl/1_utilities.d.ts +1 -1
  724. package/script/tl/1_utilities.d.ts.map +1 -1
  725. package/script/tl/1_utilities.js +2 -2
  726. package/script/tl/2_message.js +1 -1
  727. package/script/tl/2_mtproto.d.ts +2 -2
  728. package/script/tl/2_mtproto.d.ts.map +1 -1
  729. package/script/tl/2_telegram.d.ts +1 -1
  730. package/script/tl/2_telegram.d.ts.map +1 -1
  731. package/script/transport/0_obfuscation.d.ts +1 -1
  732. package/script/transport/0_obfuscation.d.ts.map +1 -1
  733. package/script/transport/0_obfuscation.js +2 -2
  734. package/script/transport/0_transport.d.ts +1 -1
  735. package/script/transport/0_transport.d.ts.map +1 -1
  736. package/script/transport/1_transport_abridged.d.ts +1 -1
  737. package/script/transport/1_transport_abridged.d.ts.map +1 -1
  738. package/script/transport/1_transport_intermediate.d.ts +1 -1
  739. package/script/transport/1_transport_intermediate.d.ts.map +1 -1
  740. package/script/transport/1_transport_provider.d.ts +2 -2
  741. package/script/transport/1_transport_provider.d.ts.map +1 -1
  742. package/script/transport/2_transport_provider_tcp.d.ts +1 -1
  743. package/script/transport/2_transport_provider_tcp.d.ts.map +1 -1
  744. package/script/transport/2_transport_provider_web_socket.d.ts +1 -1
  745. package/script/transport/2_transport_provider_web_socket.d.ts.map +1 -1
  746. package/script/transport/2_transport_provider_web_socket.js +1 -1
  747. package/script/types/0_birthday.d.ts +1 -1
  748. package/script/types/0_birthday.d.ts.map +1 -1
  749. package/script/types/0_callback_query_answer.d.ts +1 -1
  750. package/script/types/0_callback_query_answer.d.ts.map +1 -1
  751. package/script/types/0_callback_query_question.js +2 -2
  752. package/script/types/0_chat_administrator_rights.d.ts +1 -1
  753. package/script/types/0_chat_administrator_rights.d.ts.map +1 -1
  754. package/script/types/0_chat_member_rights.d.ts +1 -1
  755. package/script/types/0_chat_member_rights.d.ts.map +1 -1
  756. package/script/types/0_contact.d.ts +1 -1
  757. package/script/types/0_contact.d.ts.map +1 -1
  758. package/script/types/0_dice.d.ts +1 -1
  759. package/script/types/0_dice.d.ts.map +1 -1
  760. package/script/types/0_failed_invitation.d.ts +1 -1
  761. package/script/types/0_failed_invitation.d.ts.map +1 -1
  762. package/script/types/0_file_source.d.ts +1 -1
  763. package/script/types/0_file_source.d.ts.map +1 -1
  764. package/script/types/0_invoice.d.ts +1 -1
  765. package/script/types/0_invoice.d.ts.map +1 -1
  766. package/script/types/0_live_stream_channel.d.ts +1 -1
  767. package/script/types/0_live_stream_channel.d.ts.map +1 -1
  768. package/script/types/0_mask_position.d.ts +1 -1
  769. package/script/types/0_mask_position.d.ts.map +1 -1
  770. package/script/types/0_mask_position.js +1 -1
  771. package/script/types/0_message_search_filter.d.ts +1 -1
  772. package/script/types/0_message_search_filter.d.ts.map +1 -1
  773. package/script/types/0_opening_hours.d.ts +1 -1
  774. package/script/types/0_opening_hours.d.ts.map +1 -1
  775. package/script/types/0_reaction.js +5 -5
  776. package/script/types/0_refunded_payment.d.ts +1 -1
  777. package/script/types/0_refunded_payment.d.ts.map +1 -1
  778. package/script/types/0_restriction_reason.d.ts +1 -1
  779. package/script/types/0_restriction_reason.d.ts.map +1 -1
  780. package/script/types/0_self_destruct_option.js +3 -3
  781. package/script/types/0_shipping_address.d.ts +1 -1
  782. package/script/types/0_shipping_address.d.ts.map +1 -1
  783. package/script/types/0_slow_mode_duration.js +2 -2
  784. package/script/types/0_voice.d.ts +1 -1
  785. package/script/types/0_voice.d.ts.map +1 -1
  786. package/script/types/0_voice_transcription.d.ts +1 -1
  787. package/script/types/0_voice_transcription.d.ts.map +1 -1
  788. package/script/types/1_animation.d.ts +1 -1
  789. package/script/types/1_animation.d.ts.map +1 -1
  790. package/script/types/1_audio.d.ts +1 -1
  791. package/script/types/1_audio.d.ts.map +1 -1
  792. package/script/types/1_bot_command_scope.d.ts +2 -2
  793. package/script/types/1_bot_command_scope.d.ts.map +1 -1
  794. package/script/types/1_chat_p.d.ts +12 -2
  795. package/script/types/1_chat_p.d.ts.map +1 -1
  796. package/script/types/1_chat_p.js +7 -2
  797. package/script/types/1_document.d.ts +1 -1
  798. package/script/types/1_document.d.ts.map +1 -1
  799. package/script/types/1_giveaway.d.ts +2 -2
  800. package/script/types/1_giveaway.d.ts.map +1 -1
  801. package/script/types/1_inline_keyboard_button.d.ts +3 -3
  802. package/script/types/1_inline_keyboard_button.d.ts.map +1 -1
  803. package/script/types/1_inline_keyboard_button.js +4 -4
  804. package/script/types/1_inline_query_result_button.d.ts +1 -1
  805. package/script/types/1_inline_query_result_button.d.ts.map +1 -1
  806. package/script/types/1_input_story_content.d.ts +1 -1
  807. package/script/types/1_input_story_content.d.ts.map +1 -1
  808. package/script/types/1_keyboard_button.d.ts +3 -3
  809. package/script/types/1_keyboard_button.d.ts.map +1 -1
  810. package/script/types/1_keyboard_button.js +1 -1
  811. package/script/types/1_message_reaction.d.ts +1 -1
  812. package/script/types/1_message_reaction.d.ts.map +1 -1
  813. package/script/types/1_message_reaction.js +2 -2
  814. package/script/types/1_mini_app_info.d.ts +2 -2
  815. package/script/types/1_mini_app_info.d.ts.map +1 -1
  816. package/script/types/1_network_statistics.d.ts +1 -1
  817. package/script/types/1_network_statistics.d.ts.map +1 -1
  818. package/script/types/1_order_info.d.ts +2 -2
  819. package/script/types/1_order_info.d.ts.map +1 -1
  820. package/script/types/1_photo.d.ts +1 -1
  821. package/script/types/1_photo.d.ts.map +1 -1
  822. package/script/types/1_reaction_count.d.ts +2 -2
  823. package/script/types/1_reaction_count.d.ts.map +1 -1
  824. package/script/types/1_sticker.d.ts +3 -3
  825. package/script/types/1_sticker.d.ts.map +1 -1
  826. package/script/types/1_sticker.js +2 -2
  827. package/script/types/1_story_reaction.d.ts +2 -2
  828. package/script/types/1_story_reaction.d.ts.map +1 -1
  829. package/script/types/1_venue.d.ts +1 -1
  830. package/script/types/1_venue.d.ts.map +1 -1
  831. package/script/types/1_video.d.ts +1 -1
  832. package/script/types/1_video.d.ts.map +1 -1
  833. package/script/types/1_video_note.d.ts +1 -1
  834. package/script/types/1_video_note.d.ts.map +1 -1
  835. package/script/types/2_chat.d.ts +6 -9
  836. package/script/types/2_chat.d.ts.map +1 -1
  837. package/script/types/2_chat.js +10 -15
  838. package/script/types/2_inactive_chat.d.ts +1 -1
  839. package/script/types/2_inactive_chat.d.ts.map +1 -1
  840. package/script/types/2_message_entity.d.ts +139 -0
  841. package/script/types/2_message_entity.d.ts.map +1 -0
  842. package/script/types/2_message_entity.js +188 -0
  843. package/script/types/2_message_interactions.d.ts +1 -1
  844. package/script/types/2_message_interactions.d.ts.map +1 -1
  845. package/script/types/2_message_reaction_count.d.ts +4 -5
  846. package/script/types/2_message_reaction_count.d.ts.map +1 -1
  847. package/script/types/2_message_reaction_count.js +4 -6
  848. package/script/types/2_poll_answer.d.ts +3 -4
  849. package/script/types/2_poll_answer.d.ts.map +1 -1
  850. package/script/types/2_poll_answer.js +4 -5
  851. package/script/types/2_reply_markup.d.ts +3 -3
  852. package/script/types/2_reply_markup.d.ts.map +1 -1
  853. package/script/types/2_sticker_set.d.ts +51 -0
  854. package/script/types/2_sticker_set.d.ts.map +1 -0
  855. package/script/types/2_sticker_set.js +94 -0
  856. package/script/types/2_story_content.d.ts +2 -2
  857. package/script/types/2_story_content.d.ts.map +1 -1
  858. package/script/types/2_story_interactions.d.ts +2 -2
  859. package/script/types/2_story_interactions.d.ts.map +1 -1
  860. package/script/types/2_story_interactive_area.d.ts +6 -6
  861. package/script/types/2_story_interactive_area.d.ts.map +1 -1
  862. package/script/types/2_story_interactive_area.js +2 -2
  863. package/script/types/2_story_privacy.d.ts +46 -0
  864. package/script/types/2_story_privacy.d.ts.map +1 -0
  865. package/script/types/2_story_privacy.js +80 -0
  866. package/script/types/2_successful_payment.d.ts +2 -2
  867. package/script/types/2_successful_payment.d.ts.map +1 -1
  868. package/script/types/2_user.d.ts +65 -0
  869. package/script/types/2_user.d.ts.map +1 -0
  870. package/script/types/2_user.js +77 -0
  871. package/script/types/3_business_connection.d.ts +37 -0
  872. package/script/types/3_business_connection.d.ts.map +1 -0
  873. package/script/types/3_business_connection.js +39 -0
  874. package/script/types/3_chat_member.d.ts +70 -0
  875. package/script/types/3_chat_member.d.ts.map +1 -0
  876. package/script/types/3_chat_member.js +117 -0
  877. package/script/types/3_chat_settings.d.ts +46 -0
  878. package/script/types/3_chat_settings.d.ts.map +1 -0
  879. package/script/types/3_chat_settings.js +54 -0
  880. package/script/types/3_chosen_inline_result.d.ts +38 -0
  881. package/script/types/3_chosen_inline_result.d.ts.map +1 -0
  882. package/script/types/3_chosen_inline_result.js +40 -0
  883. package/script/types/3_forward_header.d.ts +58 -0
  884. package/script/types/3_forward_header.d.ts.map +1 -0
  885. package/script/types/3_forward_header.js +76 -0
  886. package/script/types/3_game.d.ts +40 -0
  887. package/script/types/3_game.d.ts.map +1 -0
  888. package/script/types/3_gift_upgraded_component.d.ts +95 -0
  889. package/script/types/3_gift_upgraded_component.d.ts.map +1 -0
  890. package/script/types/3_gift_upgraded_component.js +91 -0
  891. package/script/types/3_inline_query.d.ts +40 -0
  892. package/script/types/3_inline_query.d.ts.map +1 -0
  893. package/script/types/3_inline_query.js +63 -0
  894. package/script/types/3_input_media.d.ts +122 -0
  895. package/script/types/3_input_media.d.ts.map +1 -0
  896. package/script/types/3_invite_link.d.ts +47 -0
  897. package/script/types/3_invite_link.d.ts.map +1 -0
  898. package/script/types/3_invite_link.js +51 -0
  899. package/script/types/3_message_reactions.d.ts +42 -0
  900. package/script/types/3_message_reactions.d.ts.map +1 -0
  901. package/script/types/3_message_reactions.js +57 -0
  902. package/script/types/3_poll_option.d.ts +34 -0
  903. package/script/types/3_poll_option.d.ts.map +1 -0
  904. package/script/types/3_poll_option.js +32 -0
  905. package/script/types/3_pre_checkout_query.d.ts +34 -0
  906. package/script/types/3_pre_checkout_query.d.ts.map +1 -0
  907. package/script/types/3_pre_checkout_query.js +42 -0
  908. package/script/types/3_reply_quote.d.ts +32 -0
  909. package/script/types/3_reply_quote.d.ts.map +1 -0
  910. package/script/types/3_reply_quote.js +33 -0
  911. package/script/types/3_story.d.ts +8 -9
  912. package/script/types/3_story.d.ts.map +1 -1
  913. package/script/types/3_story.js +8 -9
  914. package/script/types/4_chat_member_updated.d.ts +43 -0
  915. package/script/types/4_chat_member_updated.d.ts.map +1 -0
  916. package/script/types/4_chat_member_updated.js +55 -0
  917. package/script/types/4_gift.d.ts +94 -0
  918. package/script/types/4_gift.d.ts.map +1 -0
  919. package/script/types/4_gift.js +110 -0
  920. package/script/types/4_join_request.d.ts +39 -0
  921. package/script/types/4_join_request.d.ts.map +1 -0
  922. package/script/types/4_join_request.js +66 -0
  923. package/script/types/4_poll.d.ts +55 -0
  924. package/script/types/4_poll.d.ts.map +1 -0
  925. package/script/types/4_poll.js +46 -0
  926. package/script/types/4_reply_to.d.ts +35 -0
  927. package/script/types/4_reply_to.d.ts.map +1 -0
  928. package/script/types/5_claimed_gift.d.ts +44 -0
  929. package/script/types/5_claimed_gift.d.ts.map +1 -0
  930. package/script/types/5_claimed_gift.js +51 -0
  931. package/script/types/5_link_preview.d.ts +188 -0
  932. package/script/types/5_link_preview.d.ts.map +1 -0
  933. package/script/types/5_link_preview.js +221 -0
  934. package/script/types/6_claimed_gifts.d.ts +33 -0
  935. package/script/types/6_claimed_gifts.d.ts.map +1 -0
  936. package/script/types/6_claimed_gifts.js +46 -0
  937. package/script/types/6_message.d.ts +616 -0
  938. package/script/types/6_message.d.ts.map +1 -0
  939. package/script/types/6_message.js +525 -0
  940. package/script/types/6_message_content.d.ts +119 -0
  941. package/script/types/6_message_content.d.ts.map +1 -0
  942. package/script/types/7_callback_query.d.ts +43 -0
  943. package/script/types/7_callback_query.d.ts.map +1 -0
  944. package/script/types/7_callback_query.js +63 -0
  945. package/script/types/7_chat_list_item.d.ts +35 -0
  946. package/script/types/7_chat_list_item.d.ts.map +1 -0
  947. package/script/types/7_chat_list_item.js +94 -0
  948. package/script/types/7_inline_query_result.d.ts +251 -0
  949. package/script/types/7_inline_query_result.d.ts.map +1 -0
  950. package/script/types/7_inline_query_result.js +384 -0
  951. package/script/types/7_saved_chat.d.ts +35 -0
  952. package/script/types/7_saved_chat.d.ts.map +1 -0
  953. package/script/types/7_saved_chat.js +46 -0
  954. package/script/types/7_topic.d.ts +34 -0
  955. package/script/types/7_topic.d.ts.map +1 -0
  956. package/script/types/7_topic.js +64 -0
  957. package/script/types/8_inline_query_answer.d.ts +32 -0
  958. package/script/types/8_inline_query_answer.d.ts.map +1 -0
  959. package/script/types/8_inline_query_answer.js +31 -0
  960. package/script/types/8_saved_chats.d.ts +33 -0
  961. package/script/types/8_saved_chats.d.ts.map +1 -0
  962. package/script/types/8_saved_chats.js +39 -0
  963. package/script/types/8_update.d.ts +528 -0
  964. package/script/types/8_update.d.ts.map +1 -0
  965. package/script/types/_file_id.d.ts +61 -50
  966. package/script/types/_file_id.d.ts.map +1 -1
  967. package/script/types/_file_id.js +155 -136
  968. package/script/types/_getters.d.ts +3 -10
  969. package/script/types/_getters.d.ts.map +1 -1
  970. package/script/utilities/0_bigint.js +5 -5
  971. package/script/utilities/0_buffer.js +3 -3
  972. package/script/utilities/0_env.js +1 -1
  973. package/script/utilities/0_hash.d.ts +2 -2
  974. package/script/utilities/0_hash.d.ts.map +1 -1
  975. package/script/utilities/0_misc.d.ts +1 -0
  976. package/script/utilities/0_misc.d.ts.map +1 -1
  977. package/script/utilities/0_misc.js +18 -3
  978. package/script/utilities/0_part_stream.d.ts +1 -1
  979. package/script/utilities/0_part_stream.d.ts.map +1 -1
  980. package/script/utilities/0_rle.js +1 -1
  981. package/script/utilities/1_auth.js +1 -1
  982. package/script/utilities/1_base64.js +1 -1
  983. package/script/utilities/1_logger.js +2 -2
  984. package/script/utilities/1_math.js +2 -2
  985. package/script/utilities/2_queue.js +1 -1
  986. package/esm/deps/jsr.io/@std/assert/1.0.13/assert.d.ts.map +0 -1
  987. package/esm/deps/jsr.io/@std/assert/1.0.13/equal.d.ts.map +0 -1
  988. package/esm/deps/jsr.io/@std/assert/1.0.13/equals.d.ts.map +0 -1
  989. package/esm/deps/jsr.io/@std/assert/1.0.13/false.d.ts.map +0 -1
  990. package/esm/deps/jsr.io/@std/async/1.0.13/_util.d.ts.map +0 -1
  991. package/esm/deps/jsr.io/@std/async/1.0.13/abortable.d.ts.map +0 -1
  992. package/esm/deps/jsr.io/@std/async/1.0.13/deadline.d.ts.map +0 -1
  993. package/esm/deps/jsr.io/@std/async/1.0.13/debounce.d.ts.map +0 -1
  994. package/esm/deps/jsr.io/@std/async/1.0.13/delay.d.ts.map +0 -1
  995. package/esm/deps/jsr.io/@std/async/1.0.13/delay.js +0 -65
  996. package/esm/deps/jsr.io/@std/async/1.0.13/mod.d.ts.map +0 -1
  997. package/esm/deps/jsr.io/@std/async/1.0.13/mux_async_iterator.d.ts.map +0 -1
  998. package/esm/deps/jsr.io/@std/async/1.0.13/pool.d.ts.map +0 -1
  999. package/esm/deps/jsr.io/@std/async/1.0.13/retry.d.ts.map +0 -1
  1000. package/esm/deps/jsr.io/@std/async/1.0.13/tee.d.ts.map +0 -1
  1001. package/esm/deps/jsr.io/@std/path/1.1.0/_common/assert_path.d.ts.map +0 -1
  1002. package/esm/deps/jsr.io/@std/path/1.1.0/_common/basename.d.ts.map +0 -1
  1003. package/esm/deps/jsr.io/@std/path/1.1.0/_common/constants.d.ts.map +0 -1
  1004. package/esm/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts.map +0 -1
  1005. package/esm/deps/jsr.io/@std/path/1.1.0/_common/normalize.d.ts.map +0 -1
  1006. package/esm/deps/jsr.io/@std/path/1.1.0/_common/normalize_string.d.ts.map +0 -1
  1007. package/esm/deps/jsr.io/@std/path/1.1.0/_common/strip_trailing_separators.d.ts.map +0 -1
  1008. package/esm/deps/jsr.io/@std/path/1.1.0/_common/to_file_url.d.ts.map +0 -1
  1009. package/esm/deps/jsr.io/@std/path/1.1.0/_os.d.ts +0 -2
  1010. package/esm/deps/jsr.io/@std/path/1.1.0/_os.d.ts.map +0 -1
  1011. package/esm/deps/jsr.io/@std/path/1.1.0/_os.js +0 -9
  1012. package/esm/deps/jsr.io/@std/path/1.1.0/basename.d.ts.map +0 -1
  1013. package/esm/deps/jsr.io/@std/path/1.1.0/basename.js +0 -35
  1014. package/esm/deps/jsr.io/@std/path/1.1.0/extname.d.ts.map +0 -1
  1015. package/esm/deps/jsr.io/@std/path/1.1.0/extname.js +0 -28
  1016. package/esm/deps/jsr.io/@std/path/1.1.0/is_absolute.d.ts.map +0 -1
  1017. package/esm/deps/jsr.io/@std/path/1.1.0/is_absolute.js +0 -28
  1018. package/esm/deps/jsr.io/@std/path/1.1.0/join.d.ts.map +0 -1
  1019. package/esm/deps/jsr.io/@std/path/1.1.0/join.js +0 -29
  1020. package/esm/deps/jsr.io/@std/path/1.1.0/posix/_util.d.ts.map +0 -1
  1021. package/esm/deps/jsr.io/@std/path/1.1.0/posix/basename.d.ts.map +0 -1
  1022. package/esm/deps/jsr.io/@std/path/1.1.0/posix/extname.d.ts.map +0 -1
  1023. package/esm/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts.map +0 -1
  1024. package/esm/deps/jsr.io/@std/path/1.1.0/posix/is_absolute.d.ts.map +0 -1
  1025. package/esm/deps/jsr.io/@std/path/1.1.0/posix/join.d.ts.map +0 -1
  1026. package/esm/deps/jsr.io/@std/path/1.1.0/posix/normalize.d.ts.map +0 -1
  1027. package/esm/deps/jsr.io/@std/path/1.1.0/posix/to_file_url.d.ts.map +0 -1
  1028. package/esm/deps/jsr.io/@std/path/1.1.0/to_file_url.d.ts.map +0 -1
  1029. package/esm/deps/jsr.io/@std/path/1.1.0/to_file_url.js +0 -28
  1030. package/esm/deps/jsr.io/@std/path/1.1.0/windows/_util.d.ts.map +0 -1
  1031. package/esm/deps/jsr.io/@std/path/1.1.0/windows/basename.d.ts.map +0 -1
  1032. package/esm/deps/jsr.io/@std/path/1.1.0/windows/extname.d.ts.map +0 -1
  1033. package/esm/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts.map +0 -1
  1034. package/esm/deps/jsr.io/@std/path/1.1.0/windows/is_absolute.d.ts.map +0 -1
  1035. package/esm/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts.map +0 -1
  1036. package/esm/deps/jsr.io/@std/path/1.1.0/windows/normalize.d.ts.map +0 -1
  1037. package/esm/deps/jsr.io/@std/path/1.1.0/windows/to_file_url.d.ts.map +0 -1
  1038. package/esm/deps/jsr.io/@std/streams/1.0.10/to_array_buffer.d.ts.map +0 -1
  1039. package/esm/types/0_message_entity.d.ts +0 -139
  1040. package/esm/types/0_message_entity.d.ts.map +0 -1
  1041. package/esm/types/0_message_entity.js +0 -183
  1042. package/esm/types/1_input_media.d.ts +0 -122
  1043. package/esm/types/1_input_media.d.ts.map +0 -1
  1044. package/esm/types/1_poll_option.d.ts +0 -34
  1045. package/esm/types/1_poll_option.d.ts.map +0 -1
  1046. package/esm/types/1_poll_option.js +0 -29
  1047. package/esm/types/1_reply_quote.d.ts +0 -32
  1048. package/esm/types/1_reply_quote.d.ts.map +0 -1
  1049. package/esm/types/1_reply_quote.js +0 -30
  1050. package/esm/types/1_story_privacy.d.ts +0 -46
  1051. package/esm/types/1_story_privacy.d.ts.map +0 -1
  1052. package/esm/types/1_story_privacy.js +0 -76
  1053. package/esm/types/1_user.d.ts +0 -61
  1054. package/esm/types/1_user.d.ts.map +0 -1
  1055. package/esm/types/1_user.js +0 -49
  1056. package/esm/types/2_business_connection.d.ts +0 -37
  1057. package/esm/types/2_business_connection.d.ts.map +0 -1
  1058. package/esm/types/2_business_connection.js +0 -29
  1059. package/esm/types/2_chat_member.d.ts +0 -68
  1060. package/esm/types/2_chat_member.d.ts.map +0 -1
  1061. package/esm/types/2_chat_member.js +0 -114
  1062. package/esm/types/2_chat_settings.d.ts +0 -46
  1063. package/esm/types/2_chat_settings.d.ts.map +0 -1
  1064. package/esm/types/2_chat_settings.js +0 -51
  1065. package/esm/types/2_chosen_inline_result.d.ts +0 -38
  1066. package/esm/types/2_chosen_inline_result.d.ts.map +0 -1
  1067. package/esm/types/2_chosen_inline_result.js +0 -37
  1068. package/esm/types/2_forward_header.d.ts +0 -59
  1069. package/esm/types/2_forward_header.d.ts.map +0 -1
  1070. package/esm/types/2_forward_header.js +0 -74
  1071. package/esm/types/2_game.d.ts +0 -40
  1072. package/esm/types/2_game.d.ts.map +0 -1
  1073. package/esm/types/2_gift_upgraded_component.d.ts +0 -95
  1074. package/esm/types/2_gift_upgraded_component.d.ts.map +0 -1
  1075. package/esm/types/2_gift_upgraded_component.js +0 -88
  1076. package/esm/types/2_inline_query.d.ts +0 -40
  1077. package/esm/types/2_inline_query.d.ts.map +0 -1
  1078. package/esm/types/2_inline_query.js +0 -60
  1079. package/esm/types/2_invite_link.d.ts +0 -47
  1080. package/esm/types/2_invite_link.d.ts.map +0 -1
  1081. package/esm/types/2_invite_link.js +0 -48
  1082. package/esm/types/2_message_reactions.d.ts +0 -43
  1083. package/esm/types/2_message_reactions.d.ts.map +0 -1
  1084. package/esm/types/2_message_reactions.js +0 -56
  1085. package/esm/types/2_poll.d.ts +0 -55
  1086. package/esm/types/2_poll.d.ts.map +0 -1
  1087. package/esm/types/2_poll.js +0 -43
  1088. package/esm/types/2_pre_checkout_query.d.ts +0 -34
  1089. package/esm/types/2_pre_checkout_query.d.ts.map +0 -1
  1090. package/esm/types/2_pre_checkout_query.js +0 -39
  1091. package/esm/types/2_reply_to.d.ts +0 -35
  1092. package/esm/types/2_reply_to.d.ts.map +0 -1
  1093. package/esm/types/3_chat_member_updated.d.ts +0 -44
  1094. package/esm/types/3_chat_member_updated.d.ts.map +0 -1
  1095. package/esm/types/3_chat_member_updated.js +0 -53
  1096. package/esm/types/3_gift.d.ts +0 -94
  1097. package/esm/types/3_gift.d.ts.map +0 -1
  1098. package/esm/types/3_gift.js +0 -105
  1099. package/esm/types/3_join_request.d.ts +0 -40
  1100. package/esm/types/3_join_request.d.ts.map +0 -1
  1101. package/esm/types/3_join_request.js +0 -63
  1102. package/esm/types/4_claimed_gift.d.ts +0 -45
  1103. package/esm/types/4_claimed_gift.d.ts.map +0 -1
  1104. package/esm/types/4_claimed_gift.js +0 -48
  1105. package/esm/types/4_link_preview.d.ts +0 -188
  1106. package/esm/types/4_link_preview.d.ts.map +0 -1
  1107. package/esm/types/4_link_preview.js +0 -218
  1108. package/esm/types/5_claimed_gifts.d.ts +0 -33
  1109. package/esm/types/5_claimed_gifts.d.ts.map +0 -1
  1110. package/esm/types/5_claimed_gifts.js +0 -43
  1111. package/esm/types/5_message.d.ts +0 -617
  1112. package/esm/types/5_message.d.ts.map +0 -1
  1113. package/esm/types/5_message.js +0 -545
  1114. package/esm/types/5_message_content.d.ts +0 -119
  1115. package/esm/types/5_message_content.d.ts.map +0 -1
  1116. package/esm/types/6_callback_query.d.ts +0 -43
  1117. package/esm/types/6_callback_query.d.ts.map +0 -1
  1118. package/esm/types/6_callback_query.js +0 -59
  1119. package/esm/types/6_chat_list_item.d.ts +0 -36
  1120. package/esm/types/6_chat_list_item.d.ts.map +0 -1
  1121. package/esm/types/6_chat_list_item.js +0 -87
  1122. package/esm/types/6_inline_query_result.d.ts +0 -251
  1123. package/esm/types/6_inline_query_result.d.ts.map +0 -1
  1124. package/esm/types/6_inline_query_result.js +0 -380
  1125. package/esm/types/6_topic.d.ts +0 -34
  1126. package/esm/types/6_topic.d.ts.map +0 -1
  1127. package/esm/types/6_topic.js +0 -61
  1128. package/esm/types/7_inline_query_answer.d.ts +0 -32
  1129. package/esm/types/7_inline_query_answer.d.ts.map +0 -1
  1130. package/esm/types/7_inline_query_answer.js +0 -28
  1131. package/esm/types/7_update.d.ts +0 -509
  1132. package/esm/types/7_update.d.ts.map +0 -1
  1133. package/script/deps/jsr.io/@std/assert/1.0.13/assert.d.ts.map +0 -1
  1134. package/script/deps/jsr.io/@std/assert/1.0.13/equal.d.ts.map +0 -1
  1135. package/script/deps/jsr.io/@std/assert/1.0.13/equals.d.ts.map +0 -1
  1136. package/script/deps/jsr.io/@std/assert/1.0.13/false.d.ts.map +0 -1
  1137. package/script/deps/jsr.io/@std/async/1.0.13/_util.d.ts.map +0 -1
  1138. package/script/deps/jsr.io/@std/async/1.0.13/abortable.d.ts.map +0 -1
  1139. package/script/deps/jsr.io/@std/async/1.0.13/deadline.d.ts.map +0 -1
  1140. package/script/deps/jsr.io/@std/async/1.0.13/debounce.d.ts.map +0 -1
  1141. package/script/deps/jsr.io/@std/async/1.0.13/delay.d.ts.map +0 -1
  1142. package/script/deps/jsr.io/@std/async/1.0.13/delay.js +0 -101
  1143. package/script/deps/jsr.io/@std/async/1.0.13/mod.d.ts.map +0 -1
  1144. package/script/deps/jsr.io/@std/async/1.0.13/mux_async_iterator.d.ts.map +0 -1
  1145. package/script/deps/jsr.io/@std/async/1.0.13/pool.d.ts.map +0 -1
  1146. package/script/deps/jsr.io/@std/async/1.0.13/retry.d.ts.map +0 -1
  1147. package/script/deps/jsr.io/@std/async/1.0.13/tee.d.ts.map +0 -1
  1148. package/script/deps/jsr.io/@std/path/1.1.0/_common/assert_path.d.ts.map +0 -1
  1149. package/script/deps/jsr.io/@std/path/1.1.0/_common/basename.d.ts.map +0 -1
  1150. package/script/deps/jsr.io/@std/path/1.1.0/_common/constants.d.ts.map +0 -1
  1151. package/script/deps/jsr.io/@std/path/1.1.0/_common/from_file_url.d.ts.map +0 -1
  1152. package/script/deps/jsr.io/@std/path/1.1.0/_common/normalize.d.ts.map +0 -1
  1153. package/script/deps/jsr.io/@std/path/1.1.0/_common/normalize_string.d.ts.map +0 -1
  1154. package/script/deps/jsr.io/@std/path/1.1.0/_common/strip_trailing_separators.d.ts.map +0 -1
  1155. package/script/deps/jsr.io/@std/path/1.1.0/_common/to_file_url.d.ts.map +0 -1
  1156. package/script/deps/jsr.io/@std/path/1.1.0/_os.d.ts +0 -2
  1157. package/script/deps/jsr.io/@std/path/1.1.0/_os.d.ts.map +0 -1
  1158. package/script/deps/jsr.io/@std/path/1.1.0/_os.js +0 -45
  1159. package/script/deps/jsr.io/@std/path/1.1.0/basename.d.ts.map +0 -1
  1160. package/script/deps/jsr.io/@std/path/1.1.0/basename.js +0 -38
  1161. package/script/deps/jsr.io/@std/path/1.1.0/extname.d.ts.map +0 -1
  1162. package/script/deps/jsr.io/@std/path/1.1.0/extname.js +0 -31
  1163. package/script/deps/jsr.io/@std/path/1.1.0/is_absolute.d.ts.map +0 -1
  1164. package/script/deps/jsr.io/@std/path/1.1.0/is_absolute.js +0 -31
  1165. package/script/deps/jsr.io/@std/path/1.1.0/join.d.ts.map +0 -1
  1166. package/script/deps/jsr.io/@std/path/1.1.0/join.js +0 -32
  1167. package/script/deps/jsr.io/@std/path/1.1.0/posix/_util.d.ts.map +0 -1
  1168. package/script/deps/jsr.io/@std/path/1.1.0/posix/basename.d.ts.map +0 -1
  1169. package/script/deps/jsr.io/@std/path/1.1.0/posix/extname.d.ts.map +0 -1
  1170. package/script/deps/jsr.io/@std/path/1.1.0/posix/from_file_url.d.ts.map +0 -1
  1171. package/script/deps/jsr.io/@std/path/1.1.0/posix/is_absolute.d.ts.map +0 -1
  1172. package/script/deps/jsr.io/@std/path/1.1.0/posix/join.d.ts.map +0 -1
  1173. package/script/deps/jsr.io/@std/path/1.1.0/posix/normalize.d.ts.map +0 -1
  1174. package/script/deps/jsr.io/@std/path/1.1.0/posix/to_file_url.d.ts.map +0 -1
  1175. package/script/deps/jsr.io/@std/path/1.1.0/to_file_url.d.ts.map +0 -1
  1176. package/script/deps/jsr.io/@std/path/1.1.0/to_file_url.js +0 -31
  1177. package/script/deps/jsr.io/@std/path/1.1.0/windows/_util.d.ts.map +0 -1
  1178. package/script/deps/jsr.io/@std/path/1.1.0/windows/basename.d.ts.map +0 -1
  1179. package/script/deps/jsr.io/@std/path/1.1.0/windows/extname.d.ts.map +0 -1
  1180. package/script/deps/jsr.io/@std/path/1.1.0/windows/from_file_url.d.ts.map +0 -1
  1181. package/script/deps/jsr.io/@std/path/1.1.0/windows/is_absolute.d.ts.map +0 -1
  1182. package/script/deps/jsr.io/@std/path/1.1.0/windows/join.d.ts.map +0 -1
  1183. package/script/deps/jsr.io/@std/path/1.1.0/windows/normalize.d.ts.map +0 -1
  1184. package/script/deps/jsr.io/@std/path/1.1.0/windows/to_file_url.d.ts.map +0 -1
  1185. package/script/deps/jsr.io/@std/streams/1.0.10/to_array_buffer.d.ts.map +0 -1
  1186. package/script/types/0_message_entity.d.ts +0 -139
  1187. package/script/types/0_message_entity.d.ts.map +0 -1
  1188. package/script/types/0_message_entity.js +0 -188
  1189. package/script/types/1_input_media.d.ts +0 -122
  1190. package/script/types/1_input_media.d.ts.map +0 -1
  1191. package/script/types/1_poll_option.d.ts +0 -34
  1192. package/script/types/1_poll_option.d.ts.map +0 -1
  1193. package/script/types/1_poll_option.js +0 -32
  1194. package/script/types/1_reply_quote.d.ts +0 -32
  1195. package/script/types/1_reply_quote.d.ts.map +0 -1
  1196. package/script/types/1_reply_quote.js +0 -33
  1197. package/script/types/1_story_privacy.d.ts +0 -46
  1198. package/script/types/1_story_privacy.d.ts.map +0 -1
  1199. package/script/types/1_story_privacy.js +0 -80
  1200. package/script/types/1_user.d.ts +0 -61
  1201. package/script/types/1_user.d.ts.map +0 -1
  1202. package/script/types/1_user.js +0 -52
  1203. package/script/types/2_business_connection.d.ts +0 -37
  1204. package/script/types/2_business_connection.d.ts.map +0 -1
  1205. package/script/types/2_business_connection.js +0 -32
  1206. package/script/types/2_chat_member.d.ts +0 -68
  1207. package/script/types/2_chat_member.d.ts.map +0 -1
  1208. package/script/types/2_chat_member.js +0 -117
  1209. package/script/types/2_chat_settings.d.ts +0 -46
  1210. package/script/types/2_chat_settings.d.ts.map +0 -1
  1211. package/script/types/2_chat_settings.js +0 -54
  1212. package/script/types/2_chosen_inline_result.d.ts +0 -38
  1213. package/script/types/2_chosen_inline_result.d.ts.map +0 -1
  1214. package/script/types/2_chosen_inline_result.js +0 -40
  1215. package/script/types/2_forward_header.d.ts +0 -59
  1216. package/script/types/2_forward_header.d.ts.map +0 -1
  1217. package/script/types/2_forward_header.js +0 -77
  1218. package/script/types/2_game.d.ts +0 -40
  1219. package/script/types/2_game.d.ts.map +0 -1
  1220. package/script/types/2_gift_upgraded_component.d.ts +0 -95
  1221. package/script/types/2_gift_upgraded_component.d.ts.map +0 -1
  1222. package/script/types/2_gift_upgraded_component.js +0 -91
  1223. package/script/types/2_inline_query.d.ts +0 -40
  1224. package/script/types/2_inline_query.d.ts.map +0 -1
  1225. package/script/types/2_inline_query.js +0 -63
  1226. package/script/types/2_invite_link.d.ts +0 -47
  1227. package/script/types/2_invite_link.d.ts.map +0 -1
  1228. package/script/types/2_invite_link.js +0 -51
  1229. package/script/types/2_message_reactions.d.ts +0 -43
  1230. package/script/types/2_message_reactions.d.ts.map +0 -1
  1231. package/script/types/2_message_reactions.js +0 -59
  1232. package/script/types/2_poll.d.ts +0 -55
  1233. package/script/types/2_poll.d.ts.map +0 -1
  1234. package/script/types/2_poll.js +0 -46
  1235. package/script/types/2_pre_checkout_query.d.ts +0 -34
  1236. package/script/types/2_pre_checkout_query.d.ts.map +0 -1
  1237. package/script/types/2_pre_checkout_query.js +0 -42
  1238. package/script/types/2_reply_to.d.ts +0 -35
  1239. package/script/types/2_reply_to.d.ts.map +0 -1
  1240. package/script/types/3_chat_member_updated.d.ts +0 -44
  1241. package/script/types/3_chat_member_updated.d.ts.map +0 -1
  1242. package/script/types/3_chat_member_updated.js +0 -56
  1243. package/script/types/3_gift.d.ts +0 -94
  1244. package/script/types/3_gift.d.ts.map +0 -1
  1245. package/script/types/3_gift.js +0 -110
  1246. package/script/types/3_join_request.d.ts +0 -40
  1247. package/script/types/3_join_request.d.ts.map +0 -1
  1248. package/script/types/3_join_request.js +0 -67
  1249. package/script/types/4_claimed_gift.d.ts +0 -45
  1250. package/script/types/4_claimed_gift.d.ts.map +0 -1
  1251. package/script/types/4_claimed_gift.js +0 -51
  1252. package/script/types/4_link_preview.d.ts +0 -188
  1253. package/script/types/4_link_preview.d.ts.map +0 -1
  1254. package/script/types/4_link_preview.js +0 -221
  1255. package/script/types/5_claimed_gifts.d.ts +0 -33
  1256. package/script/types/5_claimed_gifts.d.ts.map +0 -1
  1257. package/script/types/5_claimed_gifts.js +0 -46
  1258. package/script/types/5_message.d.ts +0 -617
  1259. package/script/types/5_message.d.ts.map +0 -1
  1260. package/script/types/5_message.js +0 -550
  1261. package/script/types/5_message_content.d.ts +0 -119
  1262. package/script/types/5_message_content.d.ts.map +0 -1
  1263. package/script/types/6_callback_query.d.ts +0 -43
  1264. package/script/types/6_callback_query.d.ts.map +0 -1
  1265. package/script/types/6_callback_query.js +0 -63
  1266. package/script/types/6_chat_list_item.d.ts +0 -36
  1267. package/script/types/6_chat_list_item.d.ts.map +0 -1
  1268. package/script/types/6_chat_list_item.js +0 -94
  1269. package/script/types/6_inline_query_result.d.ts +0 -251
  1270. package/script/types/6_inline_query_result.d.ts.map +0 -1
  1271. package/script/types/6_inline_query_result.js +0 -384
  1272. package/script/types/6_topic.d.ts +0 -34
  1273. package/script/types/6_topic.d.ts.map +0 -1
  1274. package/script/types/6_topic.js +0 -64
  1275. package/script/types/7_inline_query_answer.d.ts +0 -32
  1276. package/script/types/7_inline_query_answer.d.ts.map +0 -1
  1277. package/script/types/7_inline_query_answer.js +0 -31
  1278. package/script/types/7_update.d.ts +0 -509
  1279. package/script/types/7_update.d.ts.map +0 -1
  1280. /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/assert.d.ts +0 -0
  1281. /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/assert.js +0 -0
  1282. /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equal.d.ts +0 -0
  1283. /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equal.js +0 -0
  1284. /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equals.d.ts +0 -0
  1285. /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equals.js +0 -0
  1286. /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/false.d.ts +0 -0
  1287. /package/esm/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/false.js +0 -0
  1288. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/_util.d.ts +0 -0
  1289. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/_util.js +0 -0
  1290. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/abortable.d.ts +0 -0
  1291. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/abortable.js +0 -0
  1292. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/deadline.d.ts +0 -0
  1293. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/deadline.js +0 -0
  1294. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/debounce.d.ts +0 -0
  1295. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/debounce.js +0 -0
  1296. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/delay.d.ts +0 -0
  1297. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mod.d.ts +0 -0
  1298. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mod.js +0 -0
  1299. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mux_async_iterator.d.ts +0 -0
  1300. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mux_async_iterator.js +0 -0
  1301. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/pool.d.ts +0 -0
  1302. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/pool.js +0 -0
  1303. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/retry.d.ts +0 -0
  1304. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/retry.js +0 -0
  1305. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/tee.d.ts +0 -0
  1306. /package/esm/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/tee.js +0 -0
  1307. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/assert_path.d.ts +0 -0
  1308. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/assert_path.js +0 -0
  1309. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/basename.d.ts +0 -0
  1310. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/basename.js +0 -0
  1311. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/constants.d.ts +0 -0
  1312. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/constants.js +0 -0
  1313. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/from_file_url.d.ts +0 -0
  1314. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/from_file_url.js +0 -0
  1315. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize.d.ts +0 -0
  1316. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize.js +0 -0
  1317. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize_string.d.ts +0 -0
  1318. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize_string.js +0 -0
  1319. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/strip_trailing_separators.d.ts +0 -0
  1320. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/strip_trailing_separators.js +0 -0
  1321. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/to_file_url.d.ts +0 -0
  1322. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/to_file_url.js +0 -0
  1323. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/basename.d.ts +0 -0
  1324. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/extname.d.ts +0 -0
  1325. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/is_absolute.d.ts +0 -0
  1326. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/join.d.ts +0 -0
  1327. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/_util.d.ts +0 -0
  1328. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/_util.js +0 -0
  1329. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/basename.d.ts +0 -0
  1330. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/basename.js +0 -0
  1331. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/extname.d.ts +0 -0
  1332. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/extname.js +0 -0
  1333. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/from_file_url.d.ts +0 -0
  1334. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/from_file_url.js +0 -0
  1335. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/is_absolute.d.ts +0 -0
  1336. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/is_absolute.js +0 -0
  1337. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/join.d.ts +0 -0
  1338. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/join.js +0 -0
  1339. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/normalize.d.ts +0 -0
  1340. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/normalize.js +0 -0
  1341. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/to_file_url.d.ts +0 -0
  1342. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/to_file_url.js +0 -0
  1343. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/to_file_url.d.ts +0 -0
  1344. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/_util.d.ts +0 -0
  1345. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/_util.js +0 -0
  1346. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/basename.d.ts +0 -0
  1347. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/basename.js +0 -0
  1348. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/extname.d.ts +0 -0
  1349. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/extname.js +0 -0
  1350. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/from_file_url.d.ts +0 -0
  1351. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/from_file_url.js +0 -0
  1352. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/is_absolute.d.ts +0 -0
  1353. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/is_absolute.js +0 -0
  1354. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/join.d.ts +0 -0
  1355. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/join.js +0 -0
  1356. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/normalize.d.ts +0 -0
  1357. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/normalize.js +0 -0
  1358. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/to_file_url.d.ts +0 -0
  1359. /package/esm/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/to_file_url.js +0 -0
  1360. /package/esm/deps/jsr.io/@std/streams/{1.0.10 → 1.0.11}/to_array_buffer.d.ts +0 -0
  1361. /package/esm/deps/jsr.io/@std/streams/{1.0.10 → 1.0.11}/to_array_buffer.js +0 -0
  1362. /package/esm/types/{2_game.js → 3_game.js} +0 -0
  1363. /package/esm/types/{1_input_media.js → 3_input_media.js} +0 -0
  1364. /package/esm/types/{2_reply_to.js → 4_reply_to.js} +0 -0
  1365. /package/esm/types/{5_message_content.js → 6_message_content.js} +0 -0
  1366. /package/esm/types/{7_update.js → 8_update.js} +0 -0
  1367. /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/assert.d.ts +0 -0
  1368. /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/assert.js +0 -0
  1369. /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equal.d.ts +0 -0
  1370. /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equal.js +0 -0
  1371. /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equals.d.ts +0 -0
  1372. /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/equals.js +0 -0
  1373. /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/false.d.ts +0 -0
  1374. /package/script/deps/jsr.io/@std/assert/{1.0.13 → 1.0.14}/false.js +0 -0
  1375. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/_util.d.ts +0 -0
  1376. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/_util.js +0 -0
  1377. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/abortable.d.ts +0 -0
  1378. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/abortable.js +0 -0
  1379. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/deadline.d.ts +0 -0
  1380. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/deadline.js +0 -0
  1381. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/debounce.d.ts +0 -0
  1382. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/debounce.js +0 -0
  1383. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/delay.d.ts +0 -0
  1384. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mod.d.ts +0 -0
  1385. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mod.js +0 -0
  1386. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mux_async_iterator.d.ts +0 -0
  1387. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/mux_async_iterator.js +0 -0
  1388. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/pool.d.ts +0 -0
  1389. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/pool.js +0 -0
  1390. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/retry.d.ts +0 -0
  1391. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/retry.js +0 -0
  1392. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/tee.d.ts +0 -0
  1393. /package/script/deps/jsr.io/@std/async/{1.0.13 → 1.0.14}/tee.js +0 -0
  1394. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/assert_path.d.ts +0 -0
  1395. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/assert_path.js +0 -0
  1396. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/basename.d.ts +0 -0
  1397. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/basename.js +0 -0
  1398. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/constants.d.ts +0 -0
  1399. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/constants.js +0 -0
  1400. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/from_file_url.d.ts +0 -0
  1401. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/from_file_url.js +0 -0
  1402. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize.d.ts +0 -0
  1403. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize.js +0 -0
  1404. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize_string.d.ts +0 -0
  1405. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/normalize_string.js +0 -0
  1406. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/strip_trailing_separators.d.ts +0 -0
  1407. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/strip_trailing_separators.js +0 -0
  1408. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/to_file_url.d.ts +0 -0
  1409. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/_common/to_file_url.js +0 -0
  1410. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/basename.d.ts +0 -0
  1411. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/extname.d.ts +0 -0
  1412. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/is_absolute.d.ts +0 -0
  1413. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/join.d.ts +0 -0
  1414. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/_util.d.ts +0 -0
  1415. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/_util.js +0 -0
  1416. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/basename.d.ts +0 -0
  1417. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/basename.js +0 -0
  1418. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/extname.d.ts +0 -0
  1419. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/extname.js +0 -0
  1420. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/from_file_url.d.ts +0 -0
  1421. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/from_file_url.js +0 -0
  1422. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/is_absolute.d.ts +0 -0
  1423. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/is_absolute.js +0 -0
  1424. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/join.d.ts +0 -0
  1425. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/join.js +0 -0
  1426. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/normalize.d.ts +0 -0
  1427. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/normalize.js +0 -0
  1428. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/to_file_url.d.ts +0 -0
  1429. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/posix/to_file_url.js +0 -0
  1430. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/to_file_url.d.ts +0 -0
  1431. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/_util.d.ts +0 -0
  1432. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/_util.js +0 -0
  1433. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/basename.d.ts +0 -0
  1434. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/basename.js +0 -0
  1435. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/extname.d.ts +0 -0
  1436. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/extname.js +0 -0
  1437. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/from_file_url.d.ts +0 -0
  1438. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/from_file_url.js +0 -0
  1439. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/is_absolute.d.ts +0 -0
  1440. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/is_absolute.js +0 -0
  1441. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/join.d.ts +0 -0
  1442. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/join.js +0 -0
  1443. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/normalize.d.ts +0 -0
  1444. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/normalize.js +0 -0
  1445. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/to_file_url.d.ts +0 -0
  1446. /package/script/deps/jsr.io/@std/path/{1.1.0 → 1.1.2}/windows/to_file_url.js +0 -0
  1447. /package/script/deps/jsr.io/@std/streams/{1.0.10 → 1.0.11}/to_array_buffer.d.ts +0 -0
  1448. /package/script/deps/jsr.io/@std/streams/{1.0.10 → 1.0.11}/to_array_buffer.js +0 -0
  1449. /package/script/types/{2_game.js → 3_game.js} +0 -0
  1450. /package/script/types/{1_input_media.js → 3_input_media.js} +0 -0
  1451. /package/script/types/{2_reply_to.js → 4_reply_to.js} +0 -0
  1452. /package/script/types/{5_message_content.js → 6_message_content.js} +0 -0
  1453. /package/script/types/{7_update.js → 8_update.js} +0 -0
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ // Copyright 2018-2025 the Deno authors. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.LruCache = void 0;
6
+ /**
7
+ * Least-recently-used cache.
8
+ *
9
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
10
+ *
11
+ * @see {@link https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU | Least-recently-used cache}
12
+ *
13
+ * Automatically removes entries above the max size based on when they were
14
+ * last accessed with `get`, `set`, or `has`.
15
+ *
16
+ * @typeParam K The type of the cache keys.
17
+ * @typeParam V The type of the cache values.
18
+ *
19
+ * @example Basic usage
20
+ * ```ts
21
+ * import { LruCache } from "@std/cache";
22
+ * import { assert, assertEquals } from "@std/assert";
23
+ *
24
+ * const MAX_SIZE = 3;
25
+ * const cache = new LruCache<string, number>(MAX_SIZE);
26
+ *
27
+ * cache.set("a", 1);
28
+ * cache.set("b", 2);
29
+ * cache.set("c", 3);
30
+ * cache.set("d", 4);
31
+ *
32
+ * // most recent values are stored up to `MAX_SIZE`
33
+ * assertEquals(cache.get("b"), 2);
34
+ * assertEquals(cache.get("c"), 3);
35
+ * assertEquals(cache.get("d"), 4);
36
+ *
37
+ * // less recent values are removed
38
+ * assert(!cache.has("a"));
39
+ * ```
40
+ */
41
+ class LruCache extends Map {
42
+ /**
43
+ * The maximum number of entries to store in the cache.
44
+ *
45
+ * @example Max size
46
+ * ```ts no-assert
47
+ * import { LruCache } from "@std/cache";
48
+ * import { assertEquals } from "@std/assert";
49
+ *
50
+ * const cache = new LruCache<string, number>(100);
51
+ * assertEquals(cache.maxSize, 100);
52
+ * ```
53
+ */
54
+ maxSize;
55
+ /**
56
+ * Constructs a new `LruCache`.
57
+ *
58
+ * @param maxSize The maximum number of entries to store in the cache.
59
+ */
60
+ constructor(maxSize) {
61
+ super();
62
+ this.maxSize = maxSize;
63
+ }
64
+ #setMostRecentlyUsed(key, value) {
65
+ // delete then re-add to ensure most recently accessed elements are last
66
+ super.delete(key);
67
+ super.set(key, value);
68
+ }
69
+ #pruneToMaxSize() {
70
+ if (this.size > this.maxSize) {
71
+ this.delete(this.keys().next().value);
72
+ }
73
+ }
74
+ /**
75
+ * Checks whether an element with the specified key exists or not.
76
+ *
77
+ * @param key The key to check.
78
+ * @returns `true` if the cache contains the specified key, otherwise `false`.
79
+ *
80
+ * @example Checking for the existence of a key
81
+ * ```ts
82
+ * import { LruCache } from "@std/cache";
83
+ * import { assert } from "@std/assert";
84
+ *
85
+ * const cache = new LruCache<string, number>(100);
86
+ *
87
+ * cache.set("a", 1);
88
+ * assert(cache.has("a"));
89
+ * ```
90
+ */
91
+ has(key) {
92
+ const exists = super.has(key);
93
+ if (exists) {
94
+ this.#setMostRecentlyUsed(key, super.get(key));
95
+ }
96
+ return exists;
97
+ }
98
+ /**
99
+ * Gets the element with the specified key.
100
+ *
101
+ * @param key The key to get the value for.
102
+ * @returns The value associated with the specified key, or `undefined` if the key is not present in the cache.
103
+ *
104
+ * @example Getting a value from the cache
105
+ * ```ts
106
+ * import { LruCache } from "@std/cache";
107
+ * import { assertEquals } from "@std/assert";
108
+ *
109
+ * const cache = new LruCache<string, number>(100);
110
+ *
111
+ * cache.set("a", 1);
112
+ * assertEquals(cache.get("a"), 1);
113
+ * ```
114
+ */
115
+ get(key) {
116
+ if (super.has(key)) {
117
+ const value = super.get(key);
118
+ this.#setMostRecentlyUsed(key, value);
119
+ return value;
120
+ }
121
+ return undefined;
122
+ }
123
+ /**
124
+ * Sets the specified key to the specified value.
125
+ *
126
+ * @param key The key to set the value for.
127
+ * @param value The value to set.
128
+ * @returns `this` for chaining.
129
+ *
130
+ * @example Setting a value in the cache
131
+ * ```ts no-assert
132
+ * import { LruCache } from "@std/cache";
133
+ *
134
+ * const cache = new LruCache<string, number>(100);
135
+ * cache.set("a", 1);
136
+ * ```
137
+ */
138
+ set(key, value) {
139
+ this.#setMostRecentlyUsed(key, value);
140
+ this.#pruneToMaxSize();
141
+ return this;
142
+ }
143
+ }
144
+ exports.LruCache = LruCache;
@@ -0,0 +1,111 @@
1
+ /**
2
+ * A cache suitable for use with {@linkcode memoize}.
3
+ *
4
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
5
+ */
6
+ export type MemoizationCache<K, V> = {
7
+ has: (key: K) => boolean;
8
+ get: (key: K) => V | undefined;
9
+ set: (key: K, val: V) => unknown;
10
+ delete: (key: K) => unknown;
11
+ };
12
+ /**
13
+ * The result of a memoized function, as stored in its cache.
14
+ *
15
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
16
+ */
17
+ export type MemoizationCacheResult<T> = {
18
+ kind: "ok";
19
+ value: T;
20
+ } | {
21
+ kind: "error";
22
+ error: unknown;
23
+ } | (T extends Promise<unknown> ? {
24
+ kind: "promise";
25
+ value: T;
26
+ } : never);
27
+ /**
28
+ * Options for {@linkcode memoize}.
29
+ *
30
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
31
+ *
32
+ * @typeParam Fn The type of the function to memoize.
33
+ * @typeParam Key The type of the cache key.
34
+ * @typeParam Cache The type of the cache.
35
+ */
36
+ export type MemoizeOptions<Fn extends (...args: never[]) => unknown, Key, Cache extends MemoizationCache<Key, MemoizationCacheResult<ReturnType<Fn>>>> = {
37
+ /**
38
+ * Provide a custom cache for getting previous results. By default, a new
39
+ * {@linkcode Map} object is instantiated upon memoization and used as a cache, with no
40
+ * limit on the number of results to be cached.
41
+ *
42
+ * Alternatively, you can supply a {@linkcode LruCache} with a specified max
43
+ * size to limit memory usage.
44
+ */
45
+ cache?: Cache;
46
+ /**
47
+ * Function to get a unique cache key from the function's arguments. By
48
+ * default, a composite key is created from all the arguments plus the `this`
49
+ * value, using reference equality to check for equivalence.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * import { memoize } from "@std/cache";
54
+ * import { assertEquals } from "@std/assert";
55
+ *
56
+ * const fn = memoize(({ value }: { cacheKey: number; value: number }) => {
57
+ * return value;
58
+ * }, { getKey: ({ cacheKey }) => cacheKey });
59
+ *
60
+ * assertEquals(fn({ cacheKey: 1, value: 2 }), 2);
61
+ * assertEquals(fn({ cacheKey: 1, value: 99 }), 2);
62
+ * assertEquals(fn({ cacheKey: 2, value: 99 }), 99);
63
+ * ```
64
+ */
65
+ getKey?: (this: ThisParameterType<Fn>, ...args: Parameters<Fn>) => Key;
66
+ /**
67
+ * Callback to determine if an error or other thrown value is cacheable.
68
+ *
69
+ * @default {() => false}
70
+ *
71
+ * @param err The thrown error or other value.
72
+ * @returns `true` if the error is cacheable, `false` otherwise.
73
+ */
74
+ errorIsCacheable?: (err: unknown) => boolean;
75
+ };
76
+ /**
77
+ * Cache the results of a function based on its arguments.
78
+ *
79
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
80
+ *
81
+ * @typeParam Fn The type of the function to memoize.
82
+ * @typeParam Key The type of the cache key.
83
+ * @typeParam Cache The type of the cache.
84
+ * @param fn The function to memoize
85
+ * @param options Options for memoization
86
+ *
87
+ * @returns The memoized function.
88
+ *
89
+ * @example Basic usage
90
+ * ```ts
91
+ * import { memoize } from "@std/cache";
92
+ * import { assertEquals } from "@std/assert";
93
+ *
94
+ * // fibonacci function, which is very slow for n > ~30 if not memoized
95
+ * const fib = memoize((n: bigint): bigint => {
96
+ * return n <= 2n ? 1n : fib(n - 1n) + fib(n - 2n);
97
+ * });
98
+ *
99
+ * assertEquals(fib(100n), 354224848179261915075n);
100
+ * ```
101
+ *
102
+ * > [!NOTE]
103
+ * > * By default, memoization is on the basis of all arguments passed to the
104
+ * > function, with equality determined by reference. This means that, for
105
+ * > example, passing a memoized function as `arr.map(func)` will not use the
106
+ * > cached results, as the index is implicitly passed as an argument. To
107
+ * > avoid this, you can pass a custom `getKey` option or use the memoized
108
+ * > function inside an anonymous callback like `arr.map((x) => func(x))`.
109
+ */
110
+ export declare function memoize<Fn extends (...args: never[]) => unknown, Key = string, Cache extends MemoizationCache<Key, MemoizationCacheResult<ReturnType<Fn>>> = Map<Key, MemoizationCacheResult<ReturnType<Fn>>>>(fn: Fn, options?: MemoizeOptions<Fn, Key, Cache>): Fn;
111
+ //# sourceMappingURL=memoize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/cache/0.2.0/memoize.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC,IAAI;IACnC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC;IACzB,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC;IAC/B,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC;IACjC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC;CAC7B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAChC;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GACxB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACjC,CAAC,CAAC,SAAS,OAAO,CAAC,OAAO,CAAC,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GAAG,KAAK,CAAC,CAAC;AAEzE;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,CACxB,EAAE,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,EACxC,GAAG,EACH,KAAK,SAAS,gBAAgB,CAAC,GAAG,EAAE,sBAAsB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,IACzE;IACF;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,UAAU,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC;IACvE;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC;CAC9C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,OAAO,CACrB,EAAE,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,EACxC,GAAG,GAAG,MAAM,EACZ,KAAK,SAAS,gBAAgB,CAAC,GAAG,EAAE,sBAAsB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,GACzE,GAAG,CACD,GAAG,EACH,sBAAsB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CACvC,EAEH,EAAE,EAAE,EAAE,EACN,OAAO,CAAC,EAAE,cAAc,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,GACvC,EAAE,CA+DJ"}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ // Copyright 2018-2025 the Deno authors. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.memoize = memoize;
6
+ const _serialize_arg_list_js_1 = require("./_serialize_arg_list.js");
7
+ /**
8
+ * Cache the results of a function based on its arguments.
9
+ *
10
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
11
+ *
12
+ * @typeParam Fn The type of the function to memoize.
13
+ * @typeParam Key The type of the cache key.
14
+ * @typeParam Cache The type of the cache.
15
+ * @param fn The function to memoize
16
+ * @param options Options for memoization
17
+ *
18
+ * @returns The memoized function.
19
+ *
20
+ * @example Basic usage
21
+ * ```ts
22
+ * import { memoize } from "@std/cache";
23
+ * import { assertEquals } from "@std/assert";
24
+ *
25
+ * // fibonacci function, which is very slow for n > ~30 if not memoized
26
+ * const fib = memoize((n: bigint): bigint => {
27
+ * return n <= 2n ? 1n : fib(n - 1n) + fib(n - 2n);
28
+ * });
29
+ *
30
+ * assertEquals(fib(100n), 354224848179261915075n);
31
+ * ```
32
+ *
33
+ * > [!NOTE]
34
+ * > * By default, memoization is on the basis of all arguments passed to the
35
+ * > function, with equality determined by reference. This means that, for
36
+ * > example, passing a memoized function as `arr.map(func)` will not use the
37
+ * > cached results, as the index is implicitly passed as an argument. To
38
+ * > avoid this, you can pass a custom `getKey` option or use the memoized
39
+ * > function inside an anonymous callback like `arr.map((x) => func(x))`.
40
+ */
41
+ function memoize(fn, options) {
42
+ const cache = options?.cache ?? new Map();
43
+ const getKey = options?.getKey ??
44
+ (0, _serialize_arg_list_js_1._serializeArgList)(cache);
45
+ const errorIsCacheable = options?.errorIsCacheable ?? (() => false);
46
+ const memoized = function (...args) {
47
+ const key = getKey.apply(this, args);
48
+ if (cache.has(key)) {
49
+ const result = cache.get(key);
50
+ switch (result.kind) {
51
+ case "ok":
52
+ case "promise":
53
+ return result.value;
54
+ case "error":
55
+ throw result.error;
56
+ }
57
+ }
58
+ try {
59
+ let value = fn.apply(this, args);
60
+ if (value instanceof Promise) {
61
+ value = value.catch((reason) => {
62
+ if (!errorIsCacheable(reason)) {
63
+ cache.delete(key);
64
+ }
65
+ throw reason;
66
+ });
67
+ cache.set(key, { kind: "promise", value });
68
+ }
69
+ else {
70
+ cache.set(key, { kind: "ok", value });
71
+ }
72
+ return value;
73
+ }
74
+ catch (e) {
75
+ if (errorIsCacheable(e)) {
76
+ cache.set(key, { kind: "error", error: e });
77
+ }
78
+ throw e;
79
+ }
80
+ };
81
+ return Object.defineProperties(memoized, {
82
+ length: { value: fn.length },
83
+ name: { value: fn.name },
84
+ });
85
+ }
@@ -0,0 +1,39 @@
1
+ import type { Uint8Array_ } from "./_types.js";
2
+ export type { Uint8Array_ };
3
+ /**
4
+ * Converts data into a hex-encoded string.
5
+ *
6
+ * @param src The data to encode.
7
+ *
8
+ * @returns The hex-encoded string.
9
+ *
10
+ * @example Usage
11
+ * ```ts
12
+ * import { encodeHex } from "@std/encoding/hex";
13
+ * import { assertEquals } from "@std/assert";
14
+ *
15
+ * assertEquals(encodeHex("abc"), "616263");
16
+ * ```
17
+ */
18
+ export declare function encodeHex(src: string | Uint8Array | ArrayBuffer): string;
19
+ /**
20
+ * Decodes the given hex-encoded string. If the input is malformed, an error is
21
+ * thrown.
22
+ *
23
+ * @param src The hex-encoded string to decode.
24
+ *
25
+ * @returns The decoded data.
26
+ *
27
+ * @example Usage
28
+ * ```ts
29
+ * import { decodeHex } from "@std/encoding/hex";
30
+ * import { assertEquals } from "@std/assert";
31
+ *
32
+ * assertEquals(
33
+ * decodeHex("616263"),
34
+ * new TextEncoder().encode("abc"),
35
+ * );
36
+ * ```
37
+ */
38
+ export declare function decodeHex(src: string): Uint8Array_;
39
+ //# sourceMappingURL=hex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/encoding/1.0.7/hex.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,YAAY,EAAE,WAAW,EAAE,CAAC;AA4B5B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAUxE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAiBlD"}
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ // Copyright 2009 The Go Authors. All rights reserved.
3
+ // https://github.com/golang/go/blob/master/LICENSE
4
+ // Copyright 2018-2025 the Deno authors. MIT license.
5
+ // This module is browser compatible.
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.encodeHex = encodeHex;
8
+ exports.decodeHex = decodeHex;
9
+ /**
10
+ * Port of the Go
11
+ * {@link https://github.com/golang/go/blob/go1.12.5/src/encoding/hex/hex.go | encoding/hex}
12
+ * library.
13
+ *
14
+ * ```ts
15
+ * import {
16
+ * decodeHex,
17
+ * encodeHex,
18
+ * } from "@std/encoding/hex";
19
+ * import { assertEquals } from "@std/assert";
20
+ *
21
+ * assertEquals(encodeHex("abc"), "616263");
22
+ *
23
+ * assertEquals(
24
+ * decodeHex("616263"),
25
+ * new TextEncoder().encode("abc"),
26
+ * );
27
+ * ```
28
+ *
29
+ * @module
30
+ */
31
+ const _validate_binary_like_js_1 = require("./_validate_binary_like.js");
32
+ const hexTable = new TextEncoder().encode("0123456789abcdef");
33
+ const textEncoder = new TextEncoder();
34
+ const textDecoder = new TextDecoder();
35
+ function errInvalidByte(byte) {
36
+ return new TypeError(`Invalid byte '${String.fromCharCode(byte)}'`);
37
+ }
38
+ function errLength(len) {
39
+ return new RangeError(`Cannot decode the hex string as the input length should be even: length is ${len}`);
40
+ }
41
+ /** Converts a hex character into its value. */
42
+ function fromHexChar(byte) {
43
+ // '0' <= byte && byte <= '9'
44
+ if (48 <= byte && byte <= 57)
45
+ return byte - 48;
46
+ // 'a' <= byte && byte <= 'f'
47
+ if (97 <= byte && byte <= 102)
48
+ return byte - 97 + 10;
49
+ // 'A' <= byte && byte <= 'F'
50
+ if (65 <= byte && byte <= 70)
51
+ return byte - 65 + 10;
52
+ throw errInvalidByte(byte);
53
+ }
54
+ /**
55
+ * Converts data into a hex-encoded string.
56
+ *
57
+ * @param src The data to encode.
58
+ *
59
+ * @returns The hex-encoded string.
60
+ *
61
+ * @example Usage
62
+ * ```ts
63
+ * import { encodeHex } from "@std/encoding/hex";
64
+ * import { assertEquals } from "@std/assert";
65
+ *
66
+ * assertEquals(encodeHex("abc"), "616263");
67
+ * ```
68
+ */
69
+ function encodeHex(src) {
70
+ const u8 = (0, _validate_binary_like_js_1.validateBinaryLike)(src);
71
+ const dst = new Uint8Array(u8.length * 2);
72
+ for (let i = 0; i < u8.length; i++) {
73
+ const v = u8[i];
74
+ dst[i * 2] = hexTable[v >> 4];
75
+ dst[i * 2 + 1] = hexTable[v & 0x0f];
76
+ }
77
+ return textDecoder.decode(dst);
78
+ }
79
+ /**
80
+ * Decodes the given hex-encoded string. If the input is malformed, an error is
81
+ * thrown.
82
+ *
83
+ * @param src The hex-encoded string to decode.
84
+ *
85
+ * @returns The decoded data.
86
+ *
87
+ * @example Usage
88
+ * ```ts
89
+ * import { decodeHex } from "@std/encoding/hex";
90
+ * import { assertEquals } from "@std/assert";
91
+ *
92
+ * assertEquals(
93
+ * decodeHex("616263"),
94
+ * new TextEncoder().encode("abc"),
95
+ * );
96
+ * ```
97
+ */
98
+ function decodeHex(src) {
99
+ const u8 = textEncoder.encode(src);
100
+ const dst = new Uint8Array(u8.length / 2);
101
+ for (let i = 0; i < dst.length; i++) {
102
+ const a = fromHexChar(u8[i * 2]);
103
+ const b = fromHexChar(u8[i * 2 + 1]);
104
+ dst[i] = (a << 4) | b;
105
+ }
106
+ if (u8.length % 2 === 1) {
107
+ // Check for invalid char before reporting bad length,
108
+ // since the invalid char (if present) is an earlier problem.
109
+ fromHexChar(u8[dst.length * 2]);
110
+ throw errLength(u8.length);
111
+ }
112
+ return dst;
113
+ }
@@ -0,0 +1,2 @@
1
+ export declare function checkWindows(): boolean;
2
+ //# sourceMappingURL=_os.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/_os.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,IAAI,OAAO,CAUtC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.checkWindows = checkWindows;
37
+ // Copyright 2018-2025 the Deno authors. MIT license.
38
+ const dntShim = __importStar(require("../../../../../_dnt.shims.js"));
39
+ function checkWindows() {
40
+ // deno-lint-ignore no-explicit-any
41
+ const global = dntShim.dntGlobalThis;
42
+ const os = global.Deno?.build?.os;
43
+ // Check Deno, then the remaining runtimes (e.g. Node, Bun and the browser)
44
+ return typeof os === "string"
45
+ ? os === "windows"
46
+ : global.navigator?.platform?.startsWith("Win") ??
47
+ global.process?.platform?.startsWith("win") ?? false;
48
+ }
@@ -0,0 +1,3 @@
1
+ /** Whether the current platform is Windows */
2
+ export declare const isWindows: boolean;
3
+ //# sourceMappingURL=os.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/os.ts"],"names":[],"mappings":"AAKA,8CAA8C;AAC9C,eAAO,MAAM,SAAS,EAAE,OAAwB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // Copyright 2018-2025 the Deno authors. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.isWindows = void 0;
6
+ const _os_js_1 = require("./_os.js");
7
+ /** Whether the current platform is Windows */
8
+ exports.isWindows = (0, _os_js_1.checkWindows)();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/_common/assert_path.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,QAMvC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/_common/basename.ts"],"names":[],"mappings":"AAKA,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAchE;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,EAChC,KAAK,SAAI,GACR,MAAM,CAiBR;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,sBAQtD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/_common/constants.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAGpC,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AACnD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,OAAO,KAAK,CAAC;AAC1B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,UAAU,KAAK,CAAC;AAG7B,eAAO,MAAM,MAAM,KAAK,CAAC;AACzB,eAAO,MAAM,MAAM,KAAK,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"from_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/_common/from_file_url.ts"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,OAQ1C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/_common/normalize.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,mBAGrC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize_string.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/_common/normalize_string.ts"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,OAAO,EACvB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GACzC,MAAM,CA4DR"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strip_trailing_separators.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/_common/strip_trailing_separators.ts"],"names":[],"mappings":"AAKA,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAC/B,MAAM,CAgBR"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to_file_url.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.2/_common/to_file_url.ts"],"names":[],"mappings":"AAYA,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIvD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.2/basename.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,SAAK,GAAG,MAAM,CAIhE"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ // Copyright 2018-2025 the Deno authors. MIT license.
3
+ // This module is browser compatible.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.basename = basename;
6
+ const os_js_1 = require("../../internal/1.0.10/os.js");
7
+ const basename_js_1 = require("./posix/basename.js");
8
+ const basename_js_2 = require("./windows/basename.js");
9
+ /**
10
+ * Return the last portion of a path.
11
+ *
12
+ * The trailing directory separators are ignored, and optional suffix is
13
+ * removed.
14
+ *
15
+ * @example Usage
16
+ * ```ts
17
+ * import { basename } from "@std/path/basename";
18
+ * import { assertEquals } from "@std/assert";
19
+ *
20
+ * if (Deno.build.os === "windows") {
21
+ * assertEquals(basename("C:\\user\\Documents\\image.png"), "image.png");
22
+ * assertEquals(basename(new URL("file:///C:/user/Documents/image.png")), "image.png");
23
+ * } else {
24
+ * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
25
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
26
+ * }
27
+ * ```
28
+ *
29
+ * @param path Path to extract the name from.
30
+ * @param suffix Suffix to remove from extracted name.
31
+ *
32
+ * @returns The basename of the path.
33
+ */
34
+ function basename(path, suffix = "") {
35
+ return os_js_1.isWindows
36
+ ? (0, basename_js_2.basename)(path, suffix)
37
+ : (0, basename_js_1.basename)(path, suffix);
38
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.2/extname.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAElD"}