@mtkruto/node 0.1.125 → 0.1.127

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 (589) hide show
  1. package/esm/0_deps.d.ts +4 -4
  2. package/esm/0_deps.js +4 -4
  3. package/esm/3_types.d.ts +2 -1
  4. package/esm/3_types.js +2 -1
  5. package/esm/4_constants.d.ts +1 -1
  6. package/esm/4_constants.js +1 -1
  7. package/esm/client/3_types.d.ts +23 -2
  8. package/esm/client/3_types.js +11 -1
  9. package/esm/client/5_client.d.ts +15 -2
  10. package/esm/client/5_client.js +323 -20
  11. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/_diff.d.ts +6 -5
  12. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +5 -6
  13. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
  14. package/esm/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
  15. package/esm/deps/deno.land/std@0.209.0/assert/assert.js +18 -0
  16. package/esm/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
  17. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
  18. package/esm/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
  19. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
  20. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
  21. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
  22. package/esm/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
  23. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
  24. package/esm/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
  25. package/esm/deps/deno.land/std@0.209.0/assert/assert_false.js +18 -0
  26. package/esm/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
  27. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
  28. package/esm/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
  29. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
  30. package/esm/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
  31. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
  32. package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
  33. package/esm/deps/deno.land/std@0.209.0/assert/assert_is_error.js +48 -0
  34. package/esm/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
  35. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
  36. package/esm/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
  37. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
  38. package/esm/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
  39. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
  40. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
  41. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
  42. package/esm/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
  43. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
  44. package/esm/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
  45. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
  46. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_not_strict_equals.d.ts +3 -1
  47. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
  48. package/esm/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
  49. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
  50. package/esm/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
  51. package/{script/deps/deno.land/std@0.208.0 → esm/deps/deno.land/std@0.209.0}/assert/assert_strict_equals.d.ts +6 -11
  52. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
  53. package/esm/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
  54. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
  55. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
  56. package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
  57. package/esm/deps/deno.land/std@0.209.0/assert/assertion_error.js +18 -0
  58. package/esm/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
  59. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
  60. package/esm/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
  61. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
  62. package/esm/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
  63. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
  64. package/esm/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
  65. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
  66. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
  67. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
  68. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.js +1 -6
  69. package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
  70. package/esm/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +24 -0
  71. package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
  72. package/esm/storage/0_storage.d.ts +25 -2
  73. package/esm/storage/0_storage.js +65 -5
  74. package/esm/storage/0_utilities.d.ts +2 -0
  75. package/esm/storage/0_utilities.js +33 -0
  76. package/esm/storage/1_storage_indexed_db.d.ts +5 -2
  77. package/esm/storage/1_storage_indexed_db.js +26 -4
  78. package/esm/storage/1_storage_local_storage.d.ts +5 -2
  79. package/esm/storage/1_storage_local_storage.js +20 -6
  80. package/esm/storage/1_storage_memory.d.ts +6 -2
  81. package/esm/storage/1_storage_memory.js +34 -6
  82. package/esm/storage/1_storage_session_storage.d.ts +5 -2
  83. package/esm/storage/1_storage_session_storage.js +20 -6
  84. package/esm/tl/0_tl_raw_writer.d.ts +1 -0
  85. package/esm/tl/0_tl_raw_writer.js +6 -0
  86. package/esm/tl/1_tl_object.js +6 -1
  87. package/esm/tl/3_deserialize.js +1 -1
  88. package/esm/types/{1_chat.d.ts → 1_chat_p.d.ts} +5 -5
  89. package/esm/types/{1_chat.js → 1_chat_p.js} +1 -1
  90. package/esm/types/3_message.d.ts +8 -7
  91. package/esm/types/3_message.js +15 -19
  92. package/esm/types/4_chat.d.ts +33 -0
  93. package/esm/types/4_chat.js +117 -0
  94. package/package.json +1 -1
  95. package/script/0_deps.d.ts +4 -4
  96. package/script/0_deps.js +4 -4
  97. package/script/3_types.d.ts +2 -1
  98. package/script/3_types.js +2 -1
  99. package/script/4_constants.d.ts +1 -1
  100. package/script/4_constants.js +1 -1
  101. package/script/client/3_types.d.ts +23 -2
  102. package/script/client/3_types.js +13 -0
  103. package/script/client/5_client.d.ts +15 -2
  104. package/script/client/5_client.js +322 -19
  105. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/_diff.d.ts +6 -5
  106. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_diff.js +23 -24
  107. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.js +2 -0
  108. package/script/deps/deno.land/std@0.209.0/assert/assert.d.ts +12 -0
  109. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert.js +11 -1
  110. package/script/deps/deno.land/std@0.209.0/assert/assert_almost_equals.d.ts +17 -0
  111. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_almost_equals.js +9 -10
  112. package/script/deps/deno.land/std@0.209.0/assert/assert_array_includes.d.ts +18 -0
  113. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_array_includes.js +6 -4
  114. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_equals.d.ts +4 -5
  115. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_equals.js +4 -5
  116. package/script/deps/deno.land/std@0.209.0/assert/assert_exists.d.ts +13 -0
  117. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_exists.js +8 -0
  118. package/script/deps/deno.land/std@0.209.0/assert/assert_false.d.ts +14 -0
  119. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_false.js +11 -1
  120. package/script/deps/deno.land/std@0.209.0/assert/assert_greater.d.ts +14 -0
  121. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater.js +9 -0
  122. package/script/deps/deno.land/std@0.209.0/assert/assert_greater_or_equal.d.ts +14 -0
  123. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_greater_or_equal.js +9 -0
  124. package/script/deps/deno.land/std@0.209.0/assert/assert_instance_of.d.ts +17 -0
  125. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_instance_of.js +8 -0
  126. package/script/deps/deno.land/std@0.209.0/assert/assert_is_error.d.ts +18 -0
  127. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_is_error.js +24 -5
  128. package/script/deps/deno.land/std@0.209.0/assert/assert_less.d.ts +13 -0
  129. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less.js +8 -0
  130. package/script/deps/deno.land/std@0.209.0/assert/assert_less_or_equal.d.ts +14 -0
  131. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_less_or_equal.js +9 -0
  132. package/script/deps/deno.land/std@0.209.0/assert/assert_match.d.ts +13 -0
  133. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_match.js +8 -0
  134. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.d.ts +2 -1
  135. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_equals.js +2 -1
  136. package/script/deps/deno.land/std@0.209.0/assert/assert_not_instance_of.d.ts +13 -0
  137. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_instance_of.js +8 -0
  138. package/script/deps/deno.land/std@0.209.0/assert/assert_not_match.d.ts +13 -0
  139. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_match.js +8 -0
  140. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_not_strict_equals.d.ts +3 -1
  141. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_not_strict_equals.js +3 -1
  142. package/script/deps/deno.land/std@0.209.0/assert/assert_object_match.d.ts +13 -0
  143. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_object_match.js +10 -2
  144. package/script/deps/deno.land/std@0.209.0/assert/assert_rejects.d.ts +26 -0
  145. package/{esm/deps/deno.land/std@0.208.0 → script/deps/deno.land/std@0.209.0}/assert/assert_strict_equals.d.ts +6 -11
  146. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_strict_equals.js +6 -11
  147. package/script/deps/deno.land/std@0.209.0/assert/assert_string_includes.d.ts +13 -0
  148. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_string_includes.js +8 -0
  149. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.d.ts +4 -31
  150. package/script/deps/deno.land/std@0.209.0/assert/assertion_error.d.ts +14 -0
  151. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assertion_error.js +13 -7
  152. package/script/deps/deno.land/std@0.209.0/assert/equal.d.ts +14 -0
  153. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/equal.js +8 -0
  154. package/script/deps/deno.land/std@0.209.0/assert/fail.d.ts +11 -0
  155. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/fail.js +8 -1
  156. package/script/deps/deno.land/std@0.209.0/assert/unimplemented.d.ts +11 -0
  157. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unimplemented.js +10 -1
  158. package/script/deps/deno.land/std@0.209.0/assert/unreachable.d.ts +11 -0
  159. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/unreachable.js +10 -1
  160. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.d.ts +24 -8
  161. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/base64.js +27 -27
  162. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.js +2 -7
  163. package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.d.ts +17 -0
  164. package/script/deps/deno.land/std@0.209.0/media_types/type_by_extension.js +28 -0
  165. package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.d.ts +1 -0
  166. package/script/storage/0_storage.d.ts +25 -2
  167. package/script/storage/0_storage.js +65 -5
  168. package/script/storage/0_utilities.d.ts +2 -0
  169. package/script/storage/0_utilities.js +36 -1
  170. package/script/storage/1_storage_indexed_db.d.ts +5 -2
  171. package/script/storage/1_storage_indexed_db.js +25 -3
  172. package/script/storage/1_storage_local_storage.d.ts +5 -2
  173. package/script/storage/1_storage_local_storage.js +19 -5
  174. package/script/storage/1_storage_memory.d.ts +6 -2
  175. package/script/storage/1_storage_memory.js +33 -5
  176. package/script/storage/1_storage_session_storage.d.ts +5 -2
  177. package/script/storage/1_storage_session_storage.js +19 -5
  178. package/script/tl/0_tl_raw_writer.d.ts +1 -0
  179. package/script/tl/0_tl_raw_writer.js +6 -0
  180. package/script/tl/1_tl_object.js +6 -1
  181. package/script/tl/3_deserialize.js +1 -1
  182. package/script/types/{1_chat.d.ts → 1_chat_p.d.ts} +5 -5
  183. package/script/types/{1_chat.js → 1_chat_p.js} +3 -3
  184. package/script/types/3_message.d.ts +8 -7
  185. package/script/types/3_message.js +15 -19
  186. package/script/types/4_chat.d.ts +33 -0
  187. package/script/types/4_chat.js +124 -0
  188. package/esm/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
  189. package/esm/deps/deno.land/std@0.208.0/assert/assert.js +0 -8
  190. package/esm/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
  191. package/esm/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
  192. package/esm/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
  193. package/esm/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
  194. package/esm/deps/deno.land/std@0.208.0/assert/assert_false.js +0 -8
  195. package/esm/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
  196. package/esm/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
  197. package/esm/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
  198. package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
  199. package/esm/deps/deno.land/std@0.208.0/assert/assert_is_error.js +0 -29
  200. package/esm/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
  201. package/esm/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
  202. package/esm/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
  203. package/esm/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
  204. package/esm/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
  205. package/esm/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
  206. package/esm/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
  207. package/esm/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
  208. package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
  209. package/esm/deps/deno.land/std@0.208.0/assert/assertion_error.js +0 -12
  210. package/esm/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
  211. package/esm/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
  212. package/esm/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
  213. package/esm/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
  214. package/script/deps/deno.land/std@0.208.0/assert/assert.d.ts +0 -2
  215. package/script/deps/deno.land/std@0.208.0/assert/assert_almost_equals.d.ts +0 -18
  216. package/script/deps/deno.land/std@0.208.0/assert/assert_array_includes.d.ts +0 -14
  217. package/script/deps/deno.land/std@0.208.0/assert/assert_exists.d.ts +0 -5
  218. package/script/deps/deno.land/std@0.208.0/assert/assert_false.d.ts +0 -4
  219. package/script/deps/deno.land/std@0.208.0/assert/assert_greater.d.ts +0 -5
  220. package/script/deps/deno.land/std@0.208.0/assert/assert_greater_or_equal.d.ts +0 -5
  221. package/script/deps/deno.land/std@0.208.0/assert/assert_instance_of.d.ts +0 -8
  222. package/script/deps/deno.land/std@0.208.0/assert/assert_is_error.d.ts +0 -7
  223. package/script/deps/deno.land/std@0.208.0/assert/assert_less.d.ts +0 -5
  224. package/script/deps/deno.land/std@0.208.0/assert/assert_less_or_equal.d.ts +0 -5
  225. package/script/deps/deno.land/std@0.208.0/assert/assert_match.d.ts +0 -5
  226. package/script/deps/deno.land/std@0.208.0/assert/assert_not_instance_of.d.ts +0 -5
  227. package/script/deps/deno.land/std@0.208.0/assert/assert_not_match.d.ts +0 -5
  228. package/script/deps/deno.land/std@0.208.0/assert/assert_object_match.d.ts +0 -5
  229. package/script/deps/deno.land/std@0.208.0/assert/assert_rejects.d.ts +0 -64
  230. package/script/deps/deno.land/std@0.208.0/assert/assert_string_includes.d.ts +0 -5
  231. package/script/deps/deno.land/std@0.208.0/assert/assertion_error.d.ts +0 -4
  232. package/script/deps/deno.land/std@0.208.0/assert/equal.d.ts +0 -6
  233. package/script/deps/deno.land/std@0.208.0/assert/fail.d.ts +0 -4
  234. package/script/deps/deno.land/std@0.208.0/assert/unimplemented.d.ts +0 -2
  235. package/script/deps/deno.land/std@0.208.0/assert/unreachable.d.ts +0 -2
  236. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
  237. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
  238. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
  239. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
  240. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
  241. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
  242. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
  243. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
  244. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
  245. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
  246. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
  247. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.d.ts +0 -0
  248. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.js +0 -0
  249. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.d.ts +0 -0
  250. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.js +0 -0
  251. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.d.ts +0 -0
  252. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.d.ts +0 -0
  253. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.js +0 -0
  254. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.d.ts +0 -0
  255. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.js +0 -0
  256. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.d.ts +0 -0
  257. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.js +0 -0
  258. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  259. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  260. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
  261. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
  262. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
  263. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
  264. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
  265. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
  266. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
  267. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
  268. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
  269. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
  270. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
  271. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
  272. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
  273. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
  274. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
  275. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
  276. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
  277. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
  278. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
  279. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
  280. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
  281. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  282. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
  283. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
  284. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
  285. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
  286. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
  287. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
  288. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
  289. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
  290. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
  291. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
  292. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
  293. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
  294. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
  295. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
  296. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
  297. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
  298. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
  299. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
  300. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
  301. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
  302. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
  303. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
  304. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
  305. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
  306. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
  307. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
  308. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
  309. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
  310. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
  311. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
  312. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
  313. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
  314. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
  315. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
  316. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
  317. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
  318. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
  319. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
  320. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
  321. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
  322. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
  323. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
  324. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
  325. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
  326. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
  327. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
  328. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
  329. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
  330. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
  331. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
  332. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
  333. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
  334. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
  335. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
  336. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
  337. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
  338. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
  339. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
  340. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
  341. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
  342. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
  343. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
  344. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
  345. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
  346. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
  347. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
  348. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
  349. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
  350. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
  351. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
  352. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
  353. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
  354. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
  355. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
  356. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
  357. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
  358. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
  359. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
  360. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
  361. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
  362. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
  363. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
  364. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
  365. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
  366. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
  367. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
  368. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
  369. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
  370. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
  371. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
  372. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
  373. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
  374. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
  375. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
  376. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
  377. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
  378. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
  379. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
  380. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
  381. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
  382. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
  383. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
  384. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
  385. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
  386. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
  387. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
  388. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
  389. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
  390. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
  391. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
  392. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
  393. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
  394. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
  395. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
  396. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
  397. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
  398. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
  399. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
  400. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
  401. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
  402. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
  403. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
  404. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
  405. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
  406. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
  407. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
  408. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
  409. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
  410. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
  411. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
  412. /package/esm/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
  413. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.d.ts +0 -0
  414. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_constants.js +0 -0
  415. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/_format.d.ts +0 -0
  416. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_rejects.js +0 -0
  417. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/assert_throws.js +0 -0
  418. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.d.ts +0 -0
  419. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/assert/mod.js +0 -0
  420. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.d.ts +0 -0
  421. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/encoding/_util.js +0 -0
  422. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.d.ts +0 -0
  423. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/fmt/colors.js +0 -0
  424. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.d.ts +0 -0
  425. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_db.js +0 -0
  426. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.d.ts +0 -0
  427. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/_util.js +0 -0
  428. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/content_type.d.ts +0 -0
  429. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.d.ts +0 -0
  430. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/format_media_type.js +0 -0
  431. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.d.ts +0 -0
  432. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/get_charset.js +0 -0
  433. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.d.ts +0 -0
  434. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/parse_media_type.js +0 -0
  435. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.d.ts +0 -0
  436. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/media_types/vendor/mime-db.v1.52.0.js +0 -0
  437. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.d.ts +0 -0
  438. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/assert_path.js +0 -0
  439. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.d.ts +0 -0
  440. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/basename.js +0 -0
  441. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.d.ts +0 -0
  442. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/common.js +0 -0
  443. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.d.ts +0 -0
  444. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/constants.js +0 -0
  445. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.d.ts +0 -0
  446. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/dirname.js +0 -0
  447. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.d.ts +0 -0
  448. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/format.js +0 -0
  449. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.d.ts +0 -0
  450. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/from_file_url.js +0 -0
  451. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/glob_to_reg_exp.js +0 -0
  452. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.d.ts +0 -0
  453. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize.js +0 -0
  454. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.d.ts +0 -0
  455. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/normalize_string.js +0 -0
  456. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.d.ts +0 -0
  457. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/relative.js +0 -0
  458. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.d.ts +0 -0
  459. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/strip_trailing_separators.js +0 -0
  460. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.d.ts +0 -0
  461. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_common/to_file_url.js +0 -0
  462. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.d.ts +0 -0
  463. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_interface.js +0 -0
  464. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.d.ts +0 -0
  465. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/_os.js +0 -0
  466. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.d.ts +0 -0
  467. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/basename.js +0 -0
  468. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.d.ts +0 -0
  469. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/common.js +0 -0
  470. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.d.ts +0 -0
  471. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/dirname.js +0 -0
  472. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.d.ts +0 -0
  473. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/extname.js +0 -0
  474. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.d.ts +0 -0
  475. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/format.js +0 -0
  476. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.d.ts +0 -0
  477. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/from_file_url.js +0 -0
  478. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.d.ts +0 -0
  479. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/glob_to_regexp.js +0 -0
  480. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.d.ts +0 -0
  481. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_absolute.js +0 -0
  482. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.d.ts +0 -0
  483. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/is_glob.js +0 -0
  484. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.d.ts +0 -0
  485. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join.js +0 -0
  486. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.d.ts +0 -0
  487. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/join_globs.js +0 -0
  488. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.d.ts +0 -0
  489. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/mod.js +0 -0
  490. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.d.ts +0 -0
  491. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize.js +0 -0
  492. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.d.ts +0 -0
  493. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/normalize_glob.js +0 -0
  494. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.d.ts +0 -0
  495. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/parse.js +0 -0
  496. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.d.ts +0 -0
  497. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/_util.js +0 -0
  498. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.d.ts +0 -0
  499. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/basename.js +0 -0
  500. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.d.ts +0 -0
  501. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/common.js +0 -0
  502. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.d.ts +0 -0
  503. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/dirname.js +0 -0
  504. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.d.ts +0 -0
  505. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/extname.js +0 -0
  506. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.d.ts +0 -0
  507. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/format.js +0 -0
  508. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.d.ts +0 -0
  509. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/from_file_url.js +0 -0
  510. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.d.ts +0 -0
  511. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/glob_to_regexp.js +0 -0
  512. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.d.ts +0 -0
  513. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_absolute.js +0 -0
  514. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.d.ts +0 -0
  515. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/is_glob.js +0 -0
  516. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.d.ts +0 -0
  517. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join.js +0 -0
  518. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.d.ts +0 -0
  519. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/join_globs.js +0 -0
  520. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.d.ts +0 -0
  521. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/mod.js +0 -0
  522. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.d.ts +0 -0
  523. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize.js +0 -0
  524. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.d.ts +0 -0
  525. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/normalize_glob.js +0 -0
  526. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.d.ts +0 -0
  527. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/parse.js +0 -0
  528. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.d.ts +0 -0
  529. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/relative.js +0 -0
  530. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.d.ts +0 -0
  531. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/resolve.js +0 -0
  532. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.d.ts +0 -0
  533. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/separator.js +0 -0
  534. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.d.ts +0 -0
  535. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_file_url.js +0 -0
  536. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.d.ts +0 -0
  537. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/posix/to_namespaced_path.js +0 -0
  538. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.d.ts +0 -0
  539. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/relative.js +0 -0
  540. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.d.ts +0 -0
  541. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/resolve.js +0 -0
  542. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.d.ts +0 -0
  543. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/separator.js +0 -0
  544. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.d.ts +0 -0
  545. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_file_url.js +0 -0
  546. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.d.ts +0 -0
  547. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/to_namespaced_path.js +0 -0
  548. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.d.ts +0 -0
  549. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/_util.js +0 -0
  550. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.d.ts +0 -0
  551. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/basename.js +0 -0
  552. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.d.ts +0 -0
  553. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/common.js +0 -0
  554. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.d.ts +0 -0
  555. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/dirname.js +0 -0
  556. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.d.ts +0 -0
  557. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/extname.js +0 -0
  558. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.d.ts +0 -0
  559. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/format.js +0 -0
  560. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.d.ts +0 -0
  561. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/from_file_url.js +0 -0
  562. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.d.ts +0 -0
  563. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/glob_to_regexp.js +0 -0
  564. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.d.ts +0 -0
  565. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_absolute.js +0 -0
  566. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.d.ts +0 -0
  567. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/is_glob.js +0 -0
  568. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.d.ts +0 -0
  569. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join.js +0 -0
  570. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.d.ts +0 -0
  571. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/join_globs.js +0 -0
  572. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.d.ts +0 -0
  573. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/mod.js +0 -0
  574. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.d.ts +0 -0
  575. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize.js +0 -0
  576. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.d.ts +0 -0
  577. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/normalize_glob.js +0 -0
  578. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.d.ts +0 -0
  579. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/parse.js +0 -0
  580. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.d.ts +0 -0
  581. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/relative.js +0 -0
  582. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.d.ts +0 -0
  583. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/resolve.js +0 -0
  584. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.d.ts +0 -0
  585. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/separator.js +0 -0
  586. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.d.ts +0 -0
  587. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_file_url.js +0 -0
  588. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.d.ts +0 -0
  589. /package/script/deps/deno.land/{std@0.208.0 → std@0.209.0}/path/windows/to_namespaced_path.js +0 -0
@@ -9,12 +9,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
9
9
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
- var _Client_instances, _a, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_updateState, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_storageInited, _Client_setAuth, _Client_authKeyWasCreated, _Client_connectMutex, _Client_assertUser, _Client_assertBot, _Client_fetchState, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop, _Client_pingLoopAbortSignal, _Client_pingInterval, _Client_pingLoop, _Client_pingLoopStarted, _Client_autoStarted, _Client_lastMsgId, _Client_invoke, _Client_handleInvokeError, _Client_processChats, _Client_processUsers, _Client_handleUpdateQueue, _Client_processUpdatesQueue, _Client_checkGap, _Client_checkChannelGap, _Client_lastUpdates, _Client_processUpdates, _Client_setUpdateStateDate, _Client_setUpdatePts, _Client_getLocalState, _Client_recoverUpdateGap, _Client_recoverChannelUpdateGap, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_updatesToMessages, _Client_resolveSendAs, _Client_parseText, _Client_getMessagesInner, _Client_downloadInner, _Client_lastGetMe, _Client_getMe, _Client_handleUpdate, _Client_usernameResolver, _Client_constructReplyMarkup, _Client_assertMsgHas, _Client_handle, _Client_setMyInfo, _Client_getMyInfo, _Client_resolveFileId, _Client_sendMedia;
12
+ var _Client_instances, _a, _Client_auth, _Client_sessionId, _Client_state, _Client_promises, _Client_toAcknowledge, _Client_updateState, _Client_publicKeys, _Client_autoStart, _Client_ignoreOutgoing, _Client_prefixes, _Client_namespaceProxies, _Client_constructContext, _Client_propagateConnectionState, _Client_lastPropagatedConnectionState, _Client_storageInited, _Client_setAuth, _Client_authKeyWasCreated, _Client_connectMutex, _Client_assertUser, _Client_assertBot, _Client_fetchState, _Client_connectionInited, _Client_initConnection, _Client_lastPropagatedAuthorizationState, _Client_propagateAuthorizationState, _Client_selfId, _Client_getSelfId, _Client_receiveLoop, _Client_pingLoopAbortSignal, _Client_pingInterval, _Client_pingLoop, _Client_pingLoopStarted, _Client_autoStarted, _Client_lastMsgId, _Client_invoke, _Client_handleInvokeError, _Client_processChats, _Client_processUsers, _Client_handleUpdateQueue, _Client_processUpdatesQueue, _Client_checkGap, _Client_checkChannelGap, _Client_lastUpdates, _Client_processUpdates, _Client_setUpdateStateDate, _Client_setUpdatePts, _Client_getLocalState, _Client_recoverUpdateGap, _Client_recoverChannelUpdateGap, _Client_getChannelAccessHash, _Client_getInputPeerInner, _Client_updatesToMessages, _Client_resolveSendAs, _Client_parseText, _Client_getMessagesInner, _Client_downloadInner, _Client_lastGetMe, _Client_getMe, _Client_handleUpdate, _Client_usernameResolver, _Client_constructReplyMarkup, _Client_assertMsgHas, _Client_handle, _Client_setMyInfo, _Client_getMyInfo, _Client_resolveFileId, _Client_sendMedia, _Client_sendChatUpdate, _Client_reassignChatLastMessage, _Client_chats, _Client_archivedChats, _Client_chatsLoadedFromStorage, _Client_getChatAnywhere, _Client_getChatList, _Client_loadChatsFromStorage, _Client_getLoadedChats, _Client_pinnedChats, _Client_pinnedArchiveChats, _Client_storageHadPinnedChats, _Client_pinnedChatsLoaded, _Client_loadPinnedChats, _Client_fetchPinnedChats, _Client_getPinnedChats, _Client_updatePinnedChats, _Client_fetchChats;
13
13
  import { contentType, debug, gunzip, Mutex } from "../0_deps.js";
14
14
  import { bigIntFromBuffer, cleanObject, drop, getRandomBigInt, getRandomId, mod, mustPrompt, mustPromptOneOf, Queue, sha1, UNREACHABLE, ZERO_CHANNEL_ID } from "../1_utilities.js";
15
15
  import { as, functions, getChannelChatId, Message_, MessageContainer, name, peerToChatId, RPCResult, TLError, TLReader, types } from "../2_tl.js";
16
16
  import { StorageMemory } from "../3_storage.js";
17
- import { botCommandScopeToTlObject, constructCallbackQuery, constructChosenInlineResult, constructInlineQuery, constructMessage, constructUser, FileID, FileType, inlineQueryResultToTlObject, messageEntityToTlObject, replyMarkupToTlObject, ThumbnailSource } from "../3_types.js";
17
+ import { botCommandScopeToTlObject, constructCallbackQuery, constructChat, constructChat2, constructChat3, constructChosenInlineResult, constructInlineQuery, constructMessage, constructUser, FileID, FileType, getChatOrder, inlineQueryResultToTlObject, messageEntityToTlObject, replyMarkupToTlObject, ThumbnailSource } from "../3_types.js";
18
18
  import { ACK_THRESHOLD, APP_VERSION, CHANNEL_DIFFERENCE_LIMIT_BOT, CHANNEL_DIFFERENCE_LIMIT_USER, DEVICE_MODEL, LANG_CODE, LANG_PACK, LAYER, MAX_CHANNEL_ID, MAX_CHAT_ID, STICKER_SET_NAME_TTL, SYSTEM_LANG_CODE, SYSTEM_VERSION, USERNAME_TTL } from "../4_constants.js";
19
19
  import { AuthKeyUnregistered, FloodWait, Migrate, PasswordHashInvalid, PhoneNumberInvalid, SessionPasswordNeeded, upgradeInstance } from "../4_errors.js";
20
20
  import { parseHtml } from "./0_html.js";
@@ -23,6 +23,7 @@ import { checkPassword } from "./0_password.js";
23
23
  import { getFileContents, getUsername, isChannelPtsUpdate, isHttpUrl, isPtsUpdate, resolve } from "./0_utilities.js";
24
24
  import { ClientAbstract } from "./1_client_abstract.js";
25
25
  import { ClientPlain } from "./2_client_plain.js";
26
+ import { getChatListId, } from "./3_types.js";
26
27
  import { Composer, concat, flatten, skip } from "./4_composer.js";
27
28
  const d = debug("Client");
28
29
  const dGap = debug("Client/recoverUpdateGap");
@@ -295,7 +296,6 @@ export class Client extends ClientAbstract {
295
296
  const connectionState = connected ? "ready" : "notConnected";
296
297
  if (this.connected == connected && __classPrivateFieldGet(this, _Client_lastPropagatedConnectionState, "f") != connectionState) {
297
298
  __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateConnectionState).call(this, connectionState);
298
- __classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
299
299
  }
300
300
  }
301
301
  finally {
@@ -351,6 +351,13 @@ export class Client extends ClientAbstract {
351
351
  });
352
352
  //#region Composer
353
353
  _Client_handle.set(this, skip);
354
+ _Client_chats.set(this, new Map());
355
+ _Client_archivedChats.set(this, new Map());
356
+ _Client_chatsLoadedFromStorage.set(this, false);
357
+ _Client_pinnedChats.set(this, new Array());
358
+ _Client_pinnedArchiveChats.set(this, new Array());
359
+ _Client_storageHadPinnedChats.set(this, false);
360
+ _Client_pinnedChatsLoaded.set(this, false);
354
361
  this.storage = storage ?? new StorageMemory();
355
362
  this.parseMode = params?.parseMode ?? null;
356
363
  this.appVersion = params?.appVersion ?? APP_VERSION;
@@ -492,10 +499,11 @@ export class Client extends ClientAbstract {
492
499
  release();
493
500
  }
494
501
  }
495
- async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = new WeakMap(), _Client_updateState = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_autoStart = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_prefixes = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_authKeyWasCreated = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopAbortSignal = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_autoStarted = new WeakMap(), _Client_lastMsgId = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_handleUpdateQueue = new WeakMap(), _Client_processUpdatesQueue = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_usernameResolver = new WeakMap(), _Client_handle = new WeakMap(), _Client_instances = new WeakSet(), _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
502
+ async [(_Client_auth = new WeakMap(), _Client_sessionId = new WeakMap(), _Client_state = new WeakMap(), _Client_promises = new WeakMap(), _Client_toAcknowledge = new WeakMap(), _Client_updateState = new WeakMap(), _Client_publicKeys = new WeakMap(), _Client_autoStart = new WeakMap(), _Client_ignoreOutgoing = new WeakMap(), _Client_prefixes = new WeakMap(), _Client_namespaceProxies = new WeakMap(), _Client_constructContext = new WeakMap(), _Client_lastPropagatedConnectionState = new WeakMap(), _Client_storageInited = new WeakMap(), _Client_authKeyWasCreated = new WeakMap(), _Client_connectMutex = new WeakMap(), _Client_connectionInited = new WeakMap(), _Client_lastPropagatedAuthorizationState = new WeakMap(), _Client_selfId = new WeakMap(), _Client_pingLoopAbortSignal = new WeakMap(), _Client_pingInterval = new WeakMap(), _Client_pingLoopStarted = new WeakMap(), _Client_autoStarted = new WeakMap(), _Client_lastMsgId = new WeakMap(), _Client_handleInvokeError = new WeakMap(), _Client_handleUpdateQueue = new WeakMap(), _Client_processUpdatesQueue = new WeakMap(), _Client_lastUpdates = new WeakMap(), _Client_lastGetMe = new WeakMap(), _Client_usernameResolver = new WeakMap(), _Client_handle = new WeakMap(), _Client_chats = new WeakMap(), _Client_archivedChats = new WeakMap(), _Client_chatsLoadedFromStorage = new WeakMap(), _Client_pinnedChats = new WeakMap(), _Client_pinnedArchiveChats = new WeakMap(), _Client_storageHadPinnedChats = new WeakMap(), _Client_pinnedChatsLoaded = new WeakMap(), _Client_instances = new WeakSet(), _Client_propagateConnectionState = function _Client_propagateConnectionState(connectionState) {
496
503
  __classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
497
504
  await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { connectionState }), resolve);
498
505
  });
506
+ __classPrivateFieldSet(this, _Client_lastPropagatedConnectionState, connectionState, "f");
499
507
  }, _Client_setAuth = async function _Client_setAuth(key) {
500
508
  const hash = await sha1(key);
501
509
  const id = bigIntFromBuffer(hash.slice(-8), true, false);
@@ -563,6 +571,7 @@ export class Client extends ClientAbstract {
563
571
  try {
564
572
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_fetchState).call(this, "authorize");
565
573
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
574
+ drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverUpdateGap).call(this, "authorize"));
566
575
  d("already authorized");
567
576
  return;
568
577
  }
@@ -711,19 +720,9 @@ export class Client extends ClientAbstract {
711
720
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_initConnection).call(this);
712
721
  if (!__classPrivateFieldGet(this, _Client_authKeyWasCreated, "f")) {
713
722
  drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_fetchState).call(this, "start"));
723
+ drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverUpdateGap).call(this, "start"));
714
724
  return;
715
725
  }
716
- try {
717
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_fetchState).call(this, "authorize");
718
- d("already authorized");
719
- await __classPrivateFieldGet(this, _Client_instances, "m", _Client_propagateAuthorizationState).call(this, true);
720
- return;
721
- }
722
- catch (err) {
723
- if (!(err instanceof AuthKeyUnregistered)) {
724
- throw err;
725
- }
726
- }
727
726
  await this.authorize(params);
728
727
  }
729
728
  /**
@@ -794,7 +793,16 @@ export class Client extends ClientAbstract {
794
793
  }
795
794
  catch (err) {
796
795
  dRecv("failed to decrypt message: %o", err);
797
- drop(__classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverUpdateGap).call(this, "decryption"));
796
+ drop((async () => {
797
+ try {
798
+ await this.disconnect();
799
+ }
800
+ catch {
801
+ //
802
+ }
803
+ await this.connect();
804
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_recoverUpdateGap).call(this, "decryption");
805
+ })());
798
806
  continue;
799
807
  }
800
808
  const messages = decrypted instanceof MessageContainer ? decrypted.messages : [decrypted];
@@ -1236,6 +1244,8 @@ export class Client extends ClientAbstract {
1236
1244
  }
1237
1245
  else if (difference instanceof types.updates.DifferenceTooLong) {
1238
1246
  await this.storage.deleteMessages();
1247
+ await this.storage.removeChats(0);
1248
+ await this.storage.removeChats(1);
1239
1249
  state.pts = difference.pts;
1240
1250
  dGap("received differenceTooLong");
1241
1251
  }
@@ -1279,7 +1289,7 @@ export class Client extends ClientAbstract {
1279
1289
  break;
1280
1290
  }
1281
1291
  else if (difference instanceof types.updates.ChannelDifferenceTooLong) {
1282
- // invalidate messages
1292
+ // TODO: invalidate messages
1283
1293
  dGapC("received channelDifferenceTooLong");
1284
1294
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_processChats).call(this, difference.chats);
1285
1295
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_processUsers).call(this, difference.users);
@@ -1406,6 +1416,13 @@ export class Client extends ClientAbstract {
1406
1416
  if ("users" in result) {
1407
1417
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_processUsers).call(this, result.users);
1408
1418
  }
1419
+ if ("messages" in result) {
1420
+ for (const message of result.messages) {
1421
+ if (message instanceof types.Message || message instanceof types.MessageService) {
1422
+ await this.storage.setMessage(peerToChatId(message.peer_id), message.id, message);
1423
+ }
1424
+ }
1425
+ }
1409
1426
  }
1410
1427
  if (result instanceof types.messages.Messages) {
1411
1428
  for (const message of result.messages) {
@@ -1551,7 +1568,7 @@ export class Client extends ClientAbstract {
1551
1568
  if (shouldFetch) {
1552
1569
  if (peer instanceof types.InputPeerChannel) {
1553
1570
  messages_ = await this.invoke(new functions.channels.getMessages({
1554
- channel: new types.InputChannel({ channel_id: peer.channel_id, access_hash: peer.access_hash }),
1571
+ channel: new types.InputChannel(peer),
1555
1572
  id: messageIds.map((v) => new types.InputMessageID({ id: v })),
1556
1573
  })).then((v) => v[as](types.messages.ChannelMessages).messages);
1557
1574
  }
@@ -2239,6 +2256,86 @@ export class Client extends ClientAbstract {
2239
2256
  };
2240
2257
  return { messages, cdn };
2241
2258
  }
2259
+ /**
2260
+ * Get chats.
2261
+ *
2262
+ * @method
2263
+ */
2264
+ async getChats(params) {
2265
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_assertUser).call(this, "getChats");
2266
+ if (!__classPrivateFieldGet(this, _Client_chatsLoadedFromStorage, "f")) {
2267
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_loadChatsFromStorage).call(this);
2268
+ }
2269
+ if (params?.after?.id && !__classPrivateFieldGet(this, _Client_chats, "f").has(params.after.id)) {
2270
+ throw new Error("Invalid after");
2271
+ }
2272
+ let limit = params?.limit ?? 100;
2273
+ if (limit <= 0 || limit > 100) {
2274
+ limit = 100;
2275
+ }
2276
+ const listId = getChatListId(params?.from ?? "main");
2277
+ let chats = __classPrivateFieldGet(this, _Client_instances, "m", _Client_getLoadedChats).call(this, listId);
2278
+ if (params?.after) {
2279
+ chats = chats
2280
+ .filter((v) => v.order < params.after.order);
2281
+ }
2282
+ if (chats.length < limit) {
2283
+ d("have only %d chats but %d more is needed", chats.length, limit - chats.length);
2284
+ if (!await this.storage.hasAllChats(listId)) {
2285
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_fetchChats).call(this, listId, limit, params?.after);
2286
+ return await this.getChats(params);
2287
+ }
2288
+ }
2289
+ chats = chats.slice(0, limit);
2290
+ return chats;
2291
+ }
2292
+ /**
2293
+ * Get chat history.
2294
+ *
2295
+ * @param chatId The identifier of the chat to get its history.
2296
+ * @method
2297
+ */
2298
+ async getHistory(chatId, params) {
2299
+ let limit = params?.limit ?? 100;
2300
+ if (limit <= 0) {
2301
+ limit = 1;
2302
+ }
2303
+ else if (limit > 100) {
2304
+ limit = 100;
2305
+ }
2306
+ let offsetId = params?.after?.id ?? 0;
2307
+ if (offsetId < 0) {
2308
+ offsetId = 0;
2309
+ }
2310
+ const peer = await this.getInputPeer(chatId);
2311
+ const messages = new Array();
2312
+ for (const message_ of await this.storage.getHistory(peerToChatId(peer), offsetId, limit)) {
2313
+ const message = await constructMessage(message_, this[getEntity].bind(this), this.getMessage.bind(this), this[getStickerSetName].bind(this), false);
2314
+ messages.push(message);
2315
+ }
2316
+ if (messages.length < limit) {
2317
+ d("have only %d messages but need %d more", messages.length, limit - messages.length);
2318
+ offsetId = messages[messages.length - 1].id; // TODO: track id of oldest message and don't send requests for it
2319
+ const result = await this.api.messages.getHistory({
2320
+ peer: peer,
2321
+ offset_id: offsetId,
2322
+ offset_date: 0,
2323
+ add_offset: 0,
2324
+ limit,
2325
+ max_id: 0,
2326
+ min_id: 0,
2327
+ hash: 0n,
2328
+ });
2329
+ if (!("messages" in result)) {
2330
+ UNREACHABLE();
2331
+ }
2332
+ for (const message_ of result.messages) {
2333
+ const message = await constructMessage(message_, this[getEntity].bind(this), this.getMessage.bind(this), this[getStickerSetName].bind(this), false);
2334
+ messages.push(message);
2335
+ }
2336
+ }
2337
+ return messages;
2338
+ }
2242
2339
  }
2243
2340
  _a = Client, _Client_getMe = async function _Client_getMe() {
2244
2341
  if (__classPrivateFieldGet(this, _Client_lastGetMe, "f") != null) {
@@ -2296,9 +2393,11 @@ async function _Client_handleUpdate(update) {
2296
2393
  pts_count: update.pts_count,
2297
2394
  });
2298
2395
  }
2299
- if (update instanceof types.UpdateNewMessage || update instanceof types.UpdateNewMessage || update instanceof types.UpdateNewChannelMessage || update instanceof types.UpdateNewChannelMessage) {
2396
+ if (update instanceof types.UpdateNewMessage || update instanceof types.UpdateNewChannelMessage || update instanceof types.UpdateEditMessage || update instanceof types.UpdateEditChannelMessage) {
2300
2397
  if (update.message instanceof types.Message || update.message instanceof types.MessageService) {
2301
- await this.storage.setMessage(peerToChatId(update.message.peer_id), update.message.id, update.message);
2398
+ const chatId = peerToChatId(update.message.peer_id);
2399
+ await this.storage.setMessage(chatId, update.message.id, update.message);
2400
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_reassignChatLastMessage).call(this, chatId);
2302
2401
  }
2303
2402
  }
2304
2403
  if (update instanceof types.UpdateNewMessage ||
@@ -2328,6 +2427,7 @@ async function _Client_handleUpdate(update) {
2328
2427
  deletedMessages.push(await constructMessage(message, this[getEntity].bind(this), this.getMessage.bind(this), this[getStickerSetName].bind(this)));
2329
2428
  }
2330
2429
  await this.storage.setMessage(chatId, messageId, null);
2430
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_reassignChatLastMessage).call(this, chatId);
2331
2431
  }
2332
2432
  }
2333
2433
  if (deletedMessages.length > 0) {
@@ -2343,6 +2443,7 @@ async function _Client_handleUpdate(update) {
2343
2443
  deletedMessages.push(await constructMessage(message, this[getEntity].bind(this), this.getMessage.bind(this), this[getStickerSetName].bind(this)));
2344
2444
  }
2345
2445
  await this.storage.setMessage(chatId, messageId, null);
2446
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_reassignChatLastMessage).call(this, chatId);
2346
2447
  }
2347
2448
  if (deletedMessages.length > 0) {
2348
2449
  await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { deletedMessages: deletedMessages }), resolve);
@@ -2357,6 +2458,9 @@ async function _Client_handleUpdate(update) {
2357
2458
  else if (update instanceof types.UpdateBotInlineSend) {
2358
2459
  await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, { chosenInlineResult: await constructChosenInlineResult(update, this[getEntity].bind(this)) }), resolve);
2359
2460
  }
2461
+ if (update instanceof types.UpdatePinnedDialogs) {
2462
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatePinnedChats).call(this, update);
2463
+ }
2360
2464
  }, _Client_constructReplyMarkup = async function _Client_constructReplyMarkup(params) {
2361
2465
  if (params?.replyMarkup) {
2362
2466
  await __classPrivateFieldGet(this, _Client_instances, "m", _Client_assertBot).call(this, "replyMarkup");
@@ -2421,4 +2525,203 @@ async function _Client_setMyInfo(info) {
2421
2525
  entities: captionEntities,
2422
2526
  }));
2423
2527
  return await __classPrivateFieldGet(this, _Client_instances, "m", _Client_updatesToMessages).call(this, chatId, result).then((v) => v[0]);
2528
+ }, _Client_sendChatUpdate = async function _Client_sendChatUpdate(chatId, added) {
2529
+ try {
2530
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_assertUser).call(this, "");
2531
+ }
2532
+ catch {
2533
+ return;
2534
+ }
2535
+ const chat = __classPrivateFieldGet(this, _Client_chats, "f").get(chatId);
2536
+ const update = chat === undefined ? { deletedChat: { chatId } } : added ? { newChat: chat } : { editedChat: chat };
2537
+ __classPrivateFieldGet(this, _Client_handleUpdateQueue, "f").add(async () => {
2538
+ await __classPrivateFieldGet(this, _Client_handle, "f").call(this, await __classPrivateFieldGet(this, _Client_constructContext, "f").call(this, update), resolve);
2539
+ });
2540
+ }, _Client_reassignChatLastMessage = async function _Client_reassignChatLastMessage(chatId, add = false) {
2541
+ try {
2542
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_assertUser).call(this, "");
2543
+ }
2544
+ catch {
2545
+ return;
2546
+ }
2547
+ const [chat, listId] = __classPrivateFieldGet(this, _Client_instances, "m", _Client_getChatAnywhere).call(this, chatId);
2548
+ if (!chat && !add) {
2549
+ return;
2550
+ }
2551
+ const message_ = await this.storage.getLastMessage(chatId);
2552
+ if (message_ != null) {
2553
+ const message = await constructMessage(message_, this[getEntity].bind(this), this.getMessage.bind(this), this[getStickerSetName].bind(this));
2554
+ if (chat) {
2555
+ chat.order = getChatOrder(message, chat.pinned);
2556
+ chat.lastMessage = message;
2557
+ await this.storage.setChat(listId, chatId, chat.pinned, message.id, message.date);
2558
+ }
2559
+ else {
2560
+ const pinnedChats = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getPinnedChats).call(this, listId);
2561
+ const chat = await constructChat2(chatId, pinnedChats.indexOf(chatId), message, this[getEntity].bind(this));
2562
+ if (chat == null) {
2563
+ UNREACHABLE();
2564
+ }
2565
+ __classPrivateFieldGet(this, _Client_chats, "f").set(chatId, chat);
2566
+ await this.storage.setChat(listId, chatId, chat.pinned, chat.lastMessage?.id ?? 0, chat.lastMessage?.date ?? new Date(0));
2567
+ }
2568
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendChatUpdate).call(this, chatId, !chat);
2569
+ return;
2570
+ }
2571
+ const message = await this.getHistory(chatId, { limit: 1 }).then((v) => v[0]);
2572
+ if (message !== undefined) {
2573
+ if (chat) {
2574
+ chat.order = getChatOrder(message, chat.pinned);
2575
+ chat.lastMessage = message;
2576
+ await this.storage.setChat(listId, chatId, chat.pinned, message.id, message.date);
2577
+ }
2578
+ else {
2579
+ const pinnedChats = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getPinnedChats).call(this, listId);
2580
+ const chat = await constructChat2(chatId, pinnedChats.indexOf(chatId), message, this[getEntity].bind(this));
2581
+ if (chat == null) {
2582
+ UNREACHABLE();
2583
+ }
2584
+ __classPrivateFieldGet(this, _Client_chats, "f").set(chatId, chat);
2585
+ }
2586
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendChatUpdate).call(this, chatId, !chat);
2587
+ return;
2588
+ }
2589
+ if (chat) {
2590
+ chat.order = getChatOrder(undefined, chat.pinned);
2591
+ chat.lastMessage = undefined;
2592
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendChatUpdate).call(this, chatId, false);
2593
+ }
2594
+ }, _Client_getChatAnywhere = function _Client_getChatAnywhere(chatId) {
2595
+ let chat = __classPrivateFieldGet(this, _Client_chats, "f").get(chatId);
2596
+ if (chat) {
2597
+ return [chat, 0];
2598
+ }
2599
+ chat = __classPrivateFieldGet(this, _Client_archivedChats, "f").get(chatId);
2600
+ if (chat) {
2601
+ return [chat, 1];
2602
+ }
2603
+ return [undefined, -1];
2604
+ }, _Client_getChatList = function _Client_getChatList(listId) {
2605
+ switch (listId) {
2606
+ case 0:
2607
+ return __classPrivateFieldGet(this, _Client_chats, "f");
2608
+ case 1:
2609
+ return __classPrivateFieldGet(this, _Client_archivedChats, "f");
2610
+ default:
2611
+ throw new Error("Invalid chat list: " + listId);
2612
+ }
2613
+ }, _Client_loadChatsFromStorage = async function _Client_loadChatsFromStorage() {
2614
+ const chats = await this.storage.getChats(0);
2615
+ const archivedChats = await this.storage.getChats(1);
2616
+ for (const { chatId, pinned, topMessageId } of chats) {
2617
+ const chat = await constructChat3(chatId, pinned, topMessageId, this[getEntity].bind(this), this.getMessage.bind(this));
2618
+ if (chat == null) {
2619
+ continue;
2620
+ }
2621
+ __classPrivateFieldGet(this, _Client_chats, "f").set(chat.id, chat);
2622
+ }
2623
+ for (const { chatId, pinned, topMessageId } of archivedChats) {
2624
+ const chat = await constructChat3(chatId, pinned, topMessageId, this[getEntity].bind(this), this.getMessage.bind(this));
2625
+ if (chat == null) {
2626
+ continue;
2627
+ }
2628
+ __classPrivateFieldGet(this, _Client_archivedChats, "f").set(chat.id, chat);
2629
+ }
2630
+ __classPrivateFieldSet(this, _Client_chatsLoadedFromStorage, true, "f");
2631
+ }, _Client_getLoadedChats = function _Client_getLoadedChats(listId) {
2632
+ const chats_ = __classPrivateFieldGet(this, _Client_instances, "m", _Client_getChatList).call(this, listId);
2633
+ const chats = new Array();
2634
+ for (const chat of chats_.values()) {
2635
+ chats.push(chat);
2636
+ }
2637
+ return chats
2638
+ .sort((a, b) => b.id - a.id)
2639
+ .sort((a, b) => b.order.localeCompare(a.order));
2640
+ }, _Client_loadPinnedChats = async function _Client_loadPinnedChats() {
2641
+ const [pinnedChats, pinnedArchiveChats] = await Promise.all([this.storage.getPinnedChats(0), this.storage.getPinnedChats(1)]);
2642
+ if (pinnedChats != null && pinnedArchiveChats != null) {
2643
+ __classPrivateFieldSet(this, _Client_pinnedChats, pinnedChats, "f");
2644
+ __classPrivateFieldSet(this, _Client_pinnedArchiveChats, pinnedArchiveChats, "f");
2645
+ __classPrivateFieldSet(this, _Client_storageHadPinnedChats, true, "f");
2646
+ }
2647
+ __classPrivateFieldSet(this, _Client_pinnedChatsLoaded, true, "f");
2648
+ }, _Client_fetchPinnedChats = async function _Client_fetchPinnedChats(listId = null) {
2649
+ if (listId == null || listId == 0) {
2650
+ const dialogs = await this.api.messages.getPinnedDialogs({ folder_id: 0 });
2651
+ const pinnedChats = new Array();
2652
+ for (const dialog of dialogs.dialogs) {
2653
+ pinnedChats.push(peerToChatId(dialog.peer));
2654
+ }
2655
+ __classPrivateFieldSet(this, _Client_pinnedChats, pinnedChats, "f");
2656
+ await this.storage.setPinnedChats(0, __classPrivateFieldGet(this, _Client_pinnedChats, "f"));
2657
+ }
2658
+ if (listId == null || listId == 1) {
2659
+ const dialogs = await this.api.messages.getPinnedDialogs({ folder_id: 1 });
2660
+ const pinnedArchiveChats = new Array();
2661
+ for (const dialog of dialogs.dialogs) {
2662
+ pinnedArchiveChats.push(peerToChatId(dialog.peer));
2663
+ }
2664
+ __classPrivateFieldSet(this, _Client_pinnedArchiveChats, pinnedArchiveChats, "f");
2665
+ await this.storage.setPinnedChats(1, __classPrivateFieldGet(this, _Client_pinnedArchiveChats, "f"));
2666
+ }
2667
+ if (listId != null && listId != 0 && listId != 1) {
2668
+ UNREACHABLE();
2669
+ }
2670
+ }, _Client_getPinnedChats = async function _Client_getPinnedChats(listId) {
2671
+ if (!__classPrivateFieldGet(this, _Client_pinnedChatsLoaded, "f")) {
2672
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_loadPinnedChats).call(this);
2673
+ }
2674
+ if (!__classPrivateFieldGet(this, _Client_storageHadPinnedChats, "f")) {
2675
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_fetchPinnedChats).call(this);
2676
+ }
2677
+ switch (listId) {
2678
+ case 0:
2679
+ return __classPrivateFieldGet(this, _Client_pinnedChats, "f");
2680
+ case 1:
2681
+ return __classPrivateFieldGet(this, _Client_pinnedArchiveChats, "f");
2682
+ default:
2683
+ UNREACHABLE();
2684
+ }
2685
+ }, _Client_updatePinnedChats = async function _Client_updatePinnedChats(update) {
2686
+ const listId = update.folder_id ?? 0;
2687
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_fetchPinnedChats).call(this, update.folder_id);
2688
+ const chats = __classPrivateFieldGet(this, _Client_instances, "m", _Client_getChatList).call(this, listId);
2689
+ const pinnedChats = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getPinnedChats).call(this, listId);
2690
+ for (const [i, chatId] of pinnedChats.entries()) {
2691
+ const chat = chats.get(chatId);
2692
+ if (chat !== undefined) {
2693
+ chat.order = getChatOrder(chat.lastMessage, i);
2694
+ chat.pinned = i;
2695
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendChatUpdate).call(this, chatId, false);
2696
+ }
2697
+ }
2698
+ for (const chat of chats.values()) {
2699
+ if (chat.pinned != -1 && pinnedChats.indexOf(chat.id) == -1) {
2700
+ chat.order = getChatOrder(chat.lastMessage, -1);
2701
+ chat.pinned = -1;
2702
+ await __classPrivateFieldGet(this, _Client_instances, "m", _Client_sendChatUpdate).call(this, chat.id, false);
2703
+ }
2704
+ }
2705
+ }, _Client_fetchChats = async function _Client_fetchChats(listId, limit, after) {
2706
+ const dialogs = await this.api.messages.getDialogs({
2707
+ limit,
2708
+ offset_id: after?.lastMessage?.id ?? 0,
2709
+ offset_date: after?.lastMessage?.date ? Math.ceil(after.lastMessage.date.getTime() / 1000) : 0,
2710
+ offset_peer: after ? await this.getInputPeer(after.id) : new types.InputPeerEmpty(),
2711
+ hash: 0n,
2712
+ folder_id: listId,
2713
+ });
2714
+ const pinnedChats = await __classPrivateFieldGet(this, _Client_instances, "m", _Client_getPinnedChats).call(this, listId);
2715
+ if (!(dialogs instanceof types.messages.Dialogs) && !(dialogs instanceof types.messages.DialogsSlice)) {
2716
+ UNREACHABLE();
2717
+ }
2718
+ if (dialogs.dialogs.length < limit) {
2719
+ await this.storage.setHasAllChats(listId, true);
2720
+ }
2721
+ const chats = __classPrivateFieldGet(this, _Client_instances, "m", _Client_getChatList).call(this, listId);
2722
+ for (const dialog of dialogs.dialogs) {
2723
+ const chat = await constructChat(dialog, dialogs, pinnedChats, this[getEntity].bind(this), this.getMessage.bind(this), this[getStickerSetName].bind(this));
2724
+ chats.set(chat.id, chat);
2725
+ await this.storage.setChat(listId, chat.id, chat.pinned, chat.lastMessage?.id ?? 0, chat.lastMessage?.date ?? new Date(0));
2726
+ }
2424
2727
  };
@@ -1,8 +1,9 @@
1
- export declare enum DiffType {
2
- removed = "removed",
3
- common = "common",
4
- added = "added"
5
- }
1
+ export declare const DiffType: {
2
+ readonly removed: "removed";
3
+ readonly common: "common";
4
+ readonly added: "added";
5
+ };
6
+ export type DiffType = keyof typeof DiffType;
6
7
  export interface DiffResult<T> {
7
8
  type: DiffType;
8
9
  value: T;
@@ -1,12 +1,11 @@
1
1
  // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
3
  import { bgGreen, bgRed, bold, gray, green, red, white, } from "../fmt/colors.js";
4
- export var DiffType;
5
- (function (DiffType) {
6
- DiffType["removed"] = "removed";
7
- DiffType["common"] = "common";
8
- DiffType["added"] = "added";
9
- })(DiffType || (DiffType = {}));
4
+ export const DiffType = {
5
+ removed: "removed",
6
+ common: "common",
7
+ added: "added",
8
+ };
10
9
  const REMOVED = 1;
11
10
  const COMMON = 2;
12
11
  const ADDED = 3;
@@ -1,5 +1,6 @@
1
1
  // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
2
  // This module is browser compatible.
3
+ // This file been copied to `std/expect`.
3
4
  /**
4
5
  * Converts the input into a string. Objects, Sets and Maps are sorted so as to
5
6
  * make tests less flaky
@@ -18,6 +19,7 @@ export function format(v) {
18
19
  iterableLimit: Infinity,
19
20
  // getters should be true in assertEquals.
20
21
  getters: true,
22
+ strAbbreviateSize: Infinity,
21
23
  })
22
24
  : `"${String(v).replace(/(?=["\\])/g, "\\")}"`;
23
25
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Make an assertion, error will be thrown if `expr` does not have truthy value.
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import { assert } from "https://deno.land/std@$STD_VERSION/assert/assert.ts";
7
+ *
8
+ * assert("hello".includes("ello")); // Doesn't throw
9
+ * assert("hello".includes("world")); // Throws
10
+ * ```
11
+ */
12
+ export declare function assert(expr: unknown, msg?: string): asserts expr;
@@ -0,0 +1,18 @@
1
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
+ import { AssertionError } from "./assertion_error.js";
3
+ /**
4
+ * Make an assertion, error will be thrown if `expr` does not have truthy value.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * import { assert } from "https://deno.land/std@$STD_VERSION/assert/assert.ts";
9
+ *
10
+ * assert("hello".includes("ello")); // Doesn't throw
11
+ * assert("hello".includes("world")); // Throws
12
+ * ```
13
+ */
14
+ export function assert(expr, msg = "") {
15
+ if (!expr) {
16
+ throw new AssertionError(msg);
17
+ }
18
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Make an assertion that `actual` and `expected` are almost equal numbers
3
+ * through a given tolerance. It can be used to take into account IEEE-754
4
+ * double-precision floating-point representation limitations. If the values
5
+ * are not almost equal then throw.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { assertAlmostEquals } from "https://deno.land/std@$STD_VERSION/assert/mod.ts";
10
+ *
11
+ * assertAlmostEquals(0.01, 0.02, 0.1); // Doesn't throw
12
+ * assertAlmostEquals(0.01, 0.02); // Throws
13
+ * assertAlmostEquals(0.1 + 0.2, 0.3, 1e-16); // Doesn't throw
14
+ * assertAlmostEquals(0.1 + 0.2, 0.3, 1e-17); // Throws
15
+ * ```
16
+ */
17
+ export declare function assertAlmostEquals(actual: number, expected: number, tolerance?: number, msg?: string): void;
@@ -1,20 +1,19 @@
1
1
  // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
2
2
  import { AssertionError } from "./assertion_error.js";
3
3
  /**
4
- * Make an assertion that `actual` and `expected` are almost equal numbers through
5
- * a given tolerance. It can be used to take into account IEEE-754 double-precision
6
- * floating-point representation limitations.
7
- * If the values are not almost equal then throw.
4
+ * Make an assertion that `actual` and `expected` are almost equal numbers
5
+ * through a given tolerance. It can be used to take into account IEEE-754
6
+ * double-precision floating-point representation limitations. If the values
7
+ * are not almost equal then throw.
8
8
  *
9
9
  * @example
10
10
  * ```ts
11
- * import { assertAlmostEquals, assertThrows } from "https://deno.land/std@$STD_VERSION/assert/mod.ts";
11
+ * import { assertAlmostEquals } from "https://deno.land/std@$STD_VERSION/assert/mod.ts";
12
12
  *
13
- * assertAlmostEquals(0.1, 0.2);
14
- *
15
- * // Using a custom tolerance value
16
- * assertAlmostEquals(0.1 + 0.2, 0.3, 1e-16);
17
- * assertThrows(() => assertAlmostEquals(0.1 + 0.2, 0.3, 1e-17));
13
+ * assertAlmostEquals(0.01, 0.02, 0.1); // Doesn't throw
14
+ * assertAlmostEquals(0.01, 0.02); // Throws
15
+ * assertAlmostEquals(0.1 + 0.2, 0.3, 1e-16); // Doesn't throw
16
+ * assertAlmostEquals(0.1 + 0.2, 0.3, 1e-17); // Throws
18
17
  * ```
19
18
  */
20
19
  export function assertAlmostEquals(actual, expected, tolerance = 1e-7, msg) {
@@ -0,0 +1,18 @@
1
+ /** An array-like object (`Array`, `Uint8Array`, `NodeList`, etc.) that is not a string */
2
+ export type ArrayLikeArg<T> = ArrayLike<T> & object;
3
+ /**
4
+ * Make an assertion that `actual` includes the `expected` values. If not then
5
+ * an error will be thrown.
6
+ *
7
+ * Type parameter can be specified to ensure values under comparison have the
8
+ * same type.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * import { assertArrayIncludes } from "https://deno.land/std@$STD_VERSION/assert/assert_array_includes.ts";
13
+ *
14
+ * assertArrayIncludes([1, 2], [2]); // Doesn't throw
15
+ * assertArrayIncludes([1, 2], [3]); // Throws
16
+ * ```
17
+ */
18
+ export declare function assertArrayIncludes<T>(actual: ArrayLikeArg<T>, expected: ArrayLikeArg<T>, msg?: string): void;