@archipelagolab/lobi 1.0.0 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1165) hide show
  1. package/LICENSE +13 -17
  2. package/README.md +136 -0
  3. package/dist/APEv2Parser-6EMKXRZS.js +15 -0
  4. package/dist/APEv2Parser-6EMKXRZS.js.map +7 -0
  5. package/dist/AiffParser-E6XWRTXM.js +194 -0
  6. package/dist/AiffParser-E6XWRTXM.js.map +7 -0
  7. package/dist/AsfParser-WSOH2JQY.js +620 -0
  8. package/dist/AsfParser-WSOH2JQY.js.map +7 -0
  9. package/dist/DsdiffParser-EUWJ4YAR.js +192 -0
  10. package/dist/DsdiffParser-EUWJ4YAR.js.map +7 -0
  11. package/dist/DsfParser-R6TPBJIY.js +114 -0
  12. package/dist/DsfParser-R6TPBJIY.js.map +7 -0
  13. package/dist/FlacParser-VDASGZ3E.js +16 -0
  14. package/dist/FlacParser-VDASGZ3E.js.map +7 -0
  15. package/dist/MP4Parser-64RGJLUM.js +1145 -0
  16. package/dist/MP4Parser-64RGJLUM.js.map +7 -0
  17. package/dist/MatroskaParser-O6RXAKYA.js +662 -0
  18. package/dist/MatroskaParser-O6RXAKYA.js.map +7 -0
  19. package/dist/MpegParser-B6NX6DS3.js +652 -0
  20. package/dist/MpegParser-B6NX6DS3.js.map +7 -0
  21. package/dist/MusepackParser-WUBT63DS.js +331 -0
  22. package/dist/MusepackParser-WUBT63DS.js.map +7 -0
  23. package/dist/OggParser-ZY6E5C2P.js +448 -0
  24. package/dist/OggParser-ZY6E5C2P.js.map +7 -0
  25. package/dist/WavPackParser-5KTCSQEU.js +209 -0
  26. package/dist/WavPackParser-5KTCSQEU.js.map +7 -0
  27. package/dist/WaveParser-RZSHVQPZ.js +300 -0
  28. package/dist/WaveParser-RZSHVQPZ.js.map +7 -0
  29. package/dist/auth-presence.js +46 -0
  30. package/dist/auth-presence.js.map +7 -0
  31. package/dist/channel-plugin-api.js +79 -0
  32. package/dist/channel-plugin-api.js.map +7 -0
  33. package/dist/chunk-22WAAZ6I.js +114 -0
  34. package/dist/chunk-22WAAZ6I.js.map +7 -0
  35. package/dist/chunk-2A6HEFSO.js +676 -0
  36. package/dist/chunk-2A6HEFSO.js.map +7 -0
  37. package/dist/chunk-2KGHUHKU.js +169 -0
  38. package/dist/chunk-2KGHUHKU.js.map +7 -0
  39. package/dist/chunk-2NEQI4K6.js +171 -0
  40. package/dist/chunk-2NEQI4K6.js.map +7 -0
  41. package/dist/chunk-2OSJ3MTW.js +175 -0
  42. package/dist/chunk-2OSJ3MTW.js.map +7 -0
  43. package/dist/chunk-2Q626TDO.js +27 -0
  44. package/dist/chunk-2Q626TDO.js.map +7 -0
  45. package/dist/chunk-2U6OZ7N2.js +155 -0
  46. package/dist/chunk-2U6OZ7N2.js.map +7 -0
  47. package/dist/chunk-2Z4IOUDZ.js +129 -0
  48. package/dist/chunk-2Z4IOUDZ.js.map +7 -0
  49. package/dist/chunk-2ZEPAW7U.js +154 -0
  50. package/dist/chunk-2ZEPAW7U.js.map +7 -0
  51. package/dist/chunk-2ZI6JK5O.js +63 -0
  52. package/dist/chunk-2ZI6JK5O.js.map +7 -0
  53. package/dist/chunk-34UY6D6X.js +36 -0
  54. package/dist/chunk-34UY6D6X.js.map +7 -0
  55. package/dist/chunk-3JD6JSJD.js +111 -0
  56. package/dist/chunk-3JD6JSJD.js.map +7 -0
  57. package/dist/chunk-3TOEIHG5.js +314 -0
  58. package/dist/chunk-3TOEIHG5.js.map +7 -0
  59. package/dist/chunk-3TRKKAVT.js +130 -0
  60. package/dist/chunk-3TRKKAVT.js.map +7 -0
  61. package/dist/chunk-3UFTTK7C.js +418 -0
  62. package/dist/chunk-3UFTTK7C.js.map +7 -0
  63. package/dist/chunk-3XO6AAIC.js +25 -0
  64. package/dist/chunk-3XO6AAIC.js.map +7 -0
  65. package/dist/chunk-427SAQME.js +321 -0
  66. package/dist/chunk-427SAQME.js.map +7 -0
  67. package/dist/chunk-4JVNTZAI.js +80 -0
  68. package/dist/chunk-4JVNTZAI.js.map +7 -0
  69. package/dist/chunk-4O3BEYYM.js +187 -0
  70. package/dist/chunk-4O3BEYYM.js.map +7 -0
  71. package/dist/chunk-4Z2N4GW6.js +247 -0
  72. package/dist/chunk-4Z2N4GW6.js.map +7 -0
  73. package/dist/chunk-56HN4SH6.js +46 -0
  74. package/dist/chunk-56HN4SH6.js.map +7 -0
  75. package/dist/chunk-5APBBTGW.js +7 -0
  76. package/dist/chunk-5APBBTGW.js.map +7 -0
  77. package/dist/chunk-5LNGMBWW.js +93 -0
  78. package/dist/chunk-5LNGMBWW.js.map +7 -0
  79. package/dist/chunk-5XFQSYZ4.js +52 -0
  80. package/dist/chunk-5XFQSYZ4.js.map +7 -0
  81. package/dist/chunk-62N5N4AC.js +241 -0
  82. package/dist/chunk-62N5N4AC.js.map +7 -0
  83. package/dist/chunk-6HX3DEXK.js +178 -0
  84. package/dist/chunk-6HX3DEXK.js.map +7 -0
  85. package/dist/chunk-6NO5VEVV.js +18 -0
  86. package/dist/chunk-6NO5VEVV.js.map +7 -0
  87. package/dist/chunk-6PZGDVLR.js +465 -0
  88. package/dist/chunk-6PZGDVLR.js.map +7 -0
  89. package/dist/chunk-6SOGH3TW.js +163 -0
  90. package/dist/chunk-6SOGH3TW.js.map +7 -0
  91. package/dist/chunk-72TGY3LX.js +104 -0
  92. package/dist/chunk-72TGY3LX.js.map +7 -0
  93. package/dist/chunk-76IE55K7.js +392 -0
  94. package/dist/chunk-76IE55K7.js.map +7 -0
  95. package/dist/chunk-7F3242AO.js +86 -0
  96. package/dist/chunk-7F3242AO.js.map +7 -0
  97. package/dist/chunk-7FLQSTPG.js +57 -0
  98. package/dist/chunk-7FLQSTPG.js.map +7 -0
  99. package/dist/chunk-7MP46JBP.js +177 -0
  100. package/dist/chunk-7MP46JBP.js.map +7 -0
  101. package/dist/chunk-7MVZYR2T.js +87 -0
  102. package/dist/chunk-7MVZYR2T.js.map +7 -0
  103. package/dist/chunk-7N7ISMPG.js +50 -0
  104. package/dist/chunk-7N7ISMPG.js.map +7 -0
  105. package/dist/chunk-7S7LQQPX.js +127 -0
  106. package/dist/chunk-7S7LQQPX.js.map +7 -0
  107. package/dist/chunk-7TTNY5FK.js +21 -0
  108. package/dist/chunk-7TTNY5FK.js.map +7 -0
  109. package/dist/chunk-7W73QCTR.js +244 -0
  110. package/dist/chunk-7W73QCTR.js.map +7 -0
  111. package/dist/chunk-7XXLU33Y.js +76 -0
  112. package/dist/chunk-7XXLU33Y.js.map +7 -0
  113. package/dist/chunk-AAO7BQEV.js +258 -0
  114. package/dist/chunk-AAO7BQEV.js.map +7 -0
  115. package/dist/chunk-AH4MLRYT.js +91 -0
  116. package/dist/chunk-AH4MLRYT.js.map +7 -0
  117. package/dist/chunk-AHKR32FH.js +7 -0
  118. package/dist/chunk-AHKR32FH.js.map +7 -0
  119. package/dist/chunk-ALKRFDAW.js +94 -0
  120. package/dist/chunk-ALKRFDAW.js.map +7 -0
  121. package/dist/chunk-AQQGAE7N.js +12 -0
  122. package/dist/chunk-AQQGAE7N.js.map +7 -0
  123. package/dist/chunk-AWW3YUGJ.js +193 -0
  124. package/dist/chunk-AWW3YUGJ.js.map +7 -0
  125. package/dist/chunk-AX7VEEWJ.js +158 -0
  126. package/dist/chunk-AX7VEEWJ.js.map +7 -0
  127. package/dist/chunk-BAX7Q6GR.js +55 -0
  128. package/dist/chunk-BAX7Q6GR.js.map +7 -0
  129. package/dist/chunk-BBM6BR3Z.js +28 -0
  130. package/dist/chunk-BBM6BR3Z.js.map +7 -0
  131. package/dist/chunk-BHXZMHSX.js +109 -0
  132. package/dist/chunk-BHXZMHSX.js.map +7 -0
  133. package/dist/chunk-BIUXDLVY.js +62 -0
  134. package/dist/chunk-BIUXDLVY.js.map +7 -0
  135. package/dist/chunk-BMFZL2P4.js +97 -0
  136. package/dist/chunk-BMFZL2P4.js.map +7 -0
  137. package/dist/chunk-BQXEXK4H.js +114 -0
  138. package/dist/chunk-BQXEXK4H.js.map +7 -0
  139. package/dist/chunk-BU2CTWBG.js +30 -0
  140. package/dist/chunk-BU2CTWBG.js.map +7 -0
  141. package/dist/chunk-BVKSCLF7.js +195 -0
  142. package/dist/chunk-BVKSCLF7.js.map +7 -0
  143. package/dist/chunk-BWA3D22L.js +88 -0
  144. package/dist/chunk-BWA3D22L.js.map +7 -0
  145. package/dist/chunk-CE24RSPL.js +506 -0
  146. package/dist/chunk-CE24RSPL.js.map +7 -0
  147. package/dist/chunk-CETZGSCP.js +71 -0
  148. package/dist/chunk-CETZGSCP.js.map +7 -0
  149. package/dist/chunk-CGBWMONK.js +412 -0
  150. package/dist/chunk-CGBWMONK.js.map +7 -0
  151. package/dist/chunk-CPNIXMGX.js +127 -0
  152. package/dist/chunk-CPNIXMGX.js.map +7 -0
  153. package/dist/chunk-CSJO73LD.js +84 -0
  154. package/dist/chunk-CSJO73LD.js.map +7 -0
  155. package/dist/chunk-CTKBDSL6.js +81 -0
  156. package/dist/chunk-CTKBDSL6.js.map +7 -0
  157. package/dist/chunk-CY6WHUCW.js +54 -0
  158. package/dist/chunk-CY6WHUCW.js.map +7 -0
  159. package/dist/chunk-D7Q6Z74D.js +123 -0
  160. package/dist/chunk-D7Q6Z74D.js.map +7 -0
  161. package/dist/chunk-DZIM4OWK.js +17 -0
  162. package/dist/chunk-DZIM4OWK.js.map +7 -0
  163. package/dist/chunk-E3GC4V5V.js +30 -0
  164. package/dist/chunk-E3GC4V5V.js.map +7 -0
  165. package/dist/chunk-E5HPDHCW.js +34 -0
  166. package/dist/chunk-E5HPDHCW.js.map +7 -0
  167. package/dist/chunk-E75BJJZ2.js +635 -0
  168. package/dist/chunk-E75BJJZ2.js.map +7 -0
  169. package/dist/chunk-EE4DHUUZ.js +472 -0
  170. package/dist/chunk-EE4DHUUZ.js.map +7 -0
  171. package/dist/chunk-EHELTAAD.js +198 -0
  172. package/dist/chunk-EHELTAAD.js.map +7 -0
  173. package/dist/chunk-EKXPSI7Z.js +135 -0
  174. package/dist/chunk-EKXPSI7Z.js.map +7 -0
  175. package/dist/chunk-ERCH75SH.js +292 -0
  176. package/dist/chunk-ERCH75SH.js.map +7 -0
  177. package/dist/chunk-EVFWZGFL.js +235 -0
  178. package/dist/chunk-EVFWZGFL.js.map +7 -0
  179. package/dist/chunk-EVPBRKMZ.js +45 -0
  180. package/dist/chunk-EVPBRKMZ.js.map +7 -0
  181. package/dist/chunk-F6AFJHWV.js +45 -0
  182. package/dist/chunk-F6AFJHWV.js.map +7 -0
  183. package/dist/chunk-FG4NVFKM.js +455 -0
  184. package/dist/chunk-FG4NVFKM.js.map +7 -0
  185. package/dist/chunk-FHNEN6IR.js +14 -0
  186. package/dist/chunk-FHNEN6IR.js.map +7 -0
  187. package/dist/chunk-FQ4R7IOX.js +32 -0
  188. package/dist/chunk-FQ4R7IOX.js.map +7 -0
  189. package/dist/chunk-FQPYAPJJ.js +124 -0
  190. package/dist/chunk-FQPYAPJJ.js.map +7 -0
  191. package/dist/chunk-FQTLJO4W.js +335 -0
  192. package/dist/chunk-FQTLJO4W.js.map +7 -0
  193. package/dist/chunk-FVLJSB2W.js +124 -0
  194. package/dist/chunk-FVLJSB2W.js.map +7 -0
  195. package/dist/chunk-FYRKBNTI.js +18 -0
  196. package/dist/chunk-FYRKBNTI.js.map +7 -0
  197. package/dist/chunk-GD6L3SLC.js +30 -0
  198. package/dist/chunk-GD6L3SLC.js.map +7 -0
  199. package/dist/chunk-GI2ZANRY.js +24 -0
  200. package/dist/chunk-GI2ZANRY.js.map +7 -0
  201. package/dist/chunk-GK3XVKXT.js +737 -0
  202. package/dist/chunk-GK3XVKXT.js.map +7 -0
  203. package/dist/chunk-GKOWCDQV.js +699 -0
  204. package/dist/chunk-GKOWCDQV.js.map +7 -0
  205. package/dist/chunk-GLLRCKKE.js +26 -0
  206. package/dist/chunk-GLLRCKKE.js.map +7 -0
  207. package/dist/chunk-GNYG6I36.js +175 -0
  208. package/dist/chunk-GNYG6I36.js.map +7 -0
  209. package/dist/chunk-GVYGUH2V.js +7 -0
  210. package/dist/chunk-GVYGUH2V.js.map +7 -0
  211. package/dist/chunk-GZAGAWSU.js +28 -0
  212. package/dist/chunk-GZAGAWSU.js.map +7 -0
  213. package/dist/chunk-H23E72SB.js +163 -0
  214. package/dist/chunk-H23E72SB.js.map +7 -0
  215. package/dist/chunk-H6YVV7GE.js +22 -0
  216. package/dist/chunk-H6YVV7GE.js.map +7 -0
  217. package/dist/chunk-HDPICD3P.js +4890 -0
  218. package/dist/chunk-HDPICD3P.js.map +7 -0
  219. package/dist/chunk-HP5HMWOM.js +123 -0
  220. package/dist/chunk-HP5HMWOM.js.map +7 -0
  221. package/dist/chunk-HQSHS6IB.js +88 -0
  222. package/dist/chunk-HQSHS6IB.js.map +7 -0
  223. package/dist/chunk-HTV3R73W.js +51 -0
  224. package/dist/chunk-HTV3R73W.js.map +7 -0
  225. package/dist/chunk-IJCMYMZB.js +239 -0
  226. package/dist/chunk-IJCMYMZB.js.map +7 -0
  227. package/dist/chunk-INNENDEE.js +472 -0
  228. package/dist/chunk-INNENDEE.js.map +7 -0
  229. package/dist/chunk-IOTLSMEQ.js +177 -0
  230. package/dist/chunk-IOTLSMEQ.js.map +7 -0
  231. package/dist/chunk-IQYYEHSM.js +300 -0
  232. package/dist/chunk-IQYYEHSM.js.map +7 -0
  233. package/dist/chunk-IRA5NJ4Q.js +21 -0
  234. package/dist/chunk-IRA5NJ4Q.js.map +7 -0
  235. package/dist/chunk-IU7EXXK7.js +1662 -0
  236. package/dist/chunk-IU7EXXK7.js.map +7 -0
  237. package/dist/chunk-IUXAKDAY.js +102 -0
  238. package/dist/chunk-IUXAKDAY.js.map +7 -0
  239. package/dist/chunk-JMYIFYY5.js +233 -0
  240. package/dist/chunk-JMYIFYY5.js.map +7 -0
  241. package/dist/chunk-JSZBX2TA.js +5853 -0
  242. package/dist/chunk-JSZBX2TA.js.map +7 -0
  243. package/dist/chunk-KHFWQ334.js +138 -0
  244. package/dist/chunk-KHFWQ334.js.map +7 -0
  245. package/dist/chunk-KJW6JLM6.js +95 -0
  246. package/dist/chunk-KJW6JLM6.js.map +7 -0
  247. package/dist/chunk-KSEANSJE.js +40 -0
  248. package/dist/chunk-KSEANSJE.js.map +7 -0
  249. package/dist/chunk-KVU54E6W.js +63 -0
  250. package/dist/chunk-KVU54E6W.js.map +7 -0
  251. package/dist/chunk-L5OUVMHK.js +174 -0
  252. package/dist/chunk-L5OUVMHK.js.map +7 -0
  253. package/dist/chunk-LIVQ7GIO.js +86 -0
  254. package/dist/chunk-LIVQ7GIO.js.map +7 -0
  255. package/dist/chunk-LO4F6E3N.js +163 -0
  256. package/dist/chunk-LO4F6E3N.js.map +7 -0
  257. package/dist/chunk-LSVKDUNM.js +151 -0
  258. package/dist/chunk-LSVKDUNM.js.map +7 -0
  259. package/dist/chunk-LVMK2GPM.js +18 -0
  260. package/dist/chunk-LVMK2GPM.js.map +7 -0
  261. package/dist/chunk-LXVPETLK.js +1405 -0
  262. package/dist/chunk-LXVPETLK.js.map +7 -0
  263. package/dist/chunk-LZNW24OB.js +78 -0
  264. package/dist/chunk-LZNW24OB.js.map +7 -0
  265. package/dist/chunk-MAF6PSCJ.js +44 -0
  266. package/dist/chunk-MAF6PSCJ.js.map +7 -0
  267. package/dist/chunk-MBIX6Z7U.js +80 -0
  268. package/dist/chunk-MBIX6Z7U.js.map +7 -0
  269. package/dist/chunk-MDLLXMC3.js +183 -0
  270. package/dist/chunk-MDLLXMC3.js.map +7 -0
  271. package/dist/chunk-MEI5HTWV.js +127 -0
  272. package/dist/chunk-MEI5HTWV.js.map +7 -0
  273. package/dist/chunk-MH74AJ3A.js +82 -0
  274. package/dist/chunk-MH74AJ3A.js.map +7 -0
  275. package/dist/chunk-MIFIM4PI.js +163 -0
  276. package/dist/chunk-MIFIM4PI.js.map +7 -0
  277. package/dist/chunk-MISZB5QJ.js +22 -0
  278. package/dist/chunk-MISZB5QJ.js.map +7 -0
  279. package/dist/chunk-MJ27XQYG.js +125 -0
  280. package/dist/chunk-MJ27XQYG.js.map +7 -0
  281. package/dist/chunk-MLQY5SKR.js +52 -0
  282. package/dist/chunk-MLQY5SKR.js.map +7 -0
  283. package/dist/chunk-MTMHGC3G.js +39 -0
  284. package/dist/chunk-MTMHGC3G.js.map +7 -0
  285. package/dist/chunk-MWBAW3YV.js +244 -0
  286. package/dist/chunk-MWBAW3YV.js.map +7 -0
  287. package/dist/chunk-MZGGB2YT.js +50 -0
  288. package/dist/chunk-MZGGB2YT.js.map +7 -0
  289. package/dist/chunk-N5SNGZJV.js +217 -0
  290. package/dist/chunk-N5SNGZJV.js.map +7 -0
  291. package/dist/chunk-NGCTBYQ3.js +181 -0
  292. package/dist/chunk-NGCTBYQ3.js.map +7 -0
  293. package/dist/chunk-NMUX7SGU.js +676 -0
  294. package/dist/chunk-NMUX7SGU.js.map +7 -0
  295. package/dist/chunk-NO7GMLNU.js +292 -0
  296. package/dist/chunk-NO7GMLNU.js.map +7 -0
  297. package/dist/chunk-NTOGVX2Y.js +92 -0
  298. package/dist/chunk-NTOGVX2Y.js.map +7 -0
  299. package/dist/chunk-O5IVKDX7.js +30 -0
  300. package/dist/chunk-O5IVKDX7.js.map +7 -0
  301. package/dist/chunk-OFWMLQMU.js +7287 -0
  302. package/dist/chunk-OFWMLQMU.js.map +7 -0
  303. package/dist/chunk-OJ3ZUKBI.js +73 -0
  304. package/dist/chunk-OJ3ZUKBI.js.map +7 -0
  305. package/dist/chunk-OJTHE4B7.js +50 -0
  306. package/dist/chunk-OJTHE4B7.js.map +7 -0
  307. package/dist/chunk-OOYPYBTA.js +446 -0
  308. package/dist/chunk-OOYPYBTA.js.map +7 -0
  309. package/dist/chunk-OQP4W4AR.js +105 -0
  310. package/dist/chunk-OQP4W4AR.js.map +7 -0
  311. package/dist/chunk-OVTT2EKA.js +516 -0
  312. package/dist/chunk-OVTT2EKA.js.map +7 -0
  313. package/dist/chunk-P5N63LBS.js +94 -0
  314. package/dist/chunk-P5N63LBS.js.map +7 -0
  315. package/dist/chunk-PARITZ7F.js +28 -0
  316. package/dist/chunk-PARITZ7F.js.map +7 -0
  317. package/dist/chunk-PBQK4KY4.js +195 -0
  318. package/dist/chunk-PBQK4KY4.js.map +7 -0
  319. package/dist/chunk-PSL2AHIA.js +27 -0
  320. package/dist/chunk-PSL2AHIA.js.map +7 -0
  321. package/dist/chunk-Q5QT7JBM.js +92 -0
  322. package/dist/chunk-Q5QT7JBM.js.map +7 -0
  323. package/dist/chunk-Q7WA5DCR.js +62 -0
  324. package/dist/chunk-Q7WA5DCR.js.map +7 -0
  325. package/dist/chunk-QATEENP2.js +7 -0
  326. package/dist/chunk-QATEENP2.js.map +7 -0
  327. package/dist/chunk-QDT24CIA.js +485 -0
  328. package/dist/chunk-QDT24CIA.js.map +7 -0
  329. package/dist/chunk-QI3NB7D5.js +455 -0
  330. package/dist/chunk-QI3NB7D5.js.map +7 -0
  331. package/dist/chunk-QIDAVXSX.js +106 -0
  332. package/dist/chunk-QIDAVXSX.js.map +7 -0
  333. package/dist/chunk-QKIGQVP2.js +104 -0
  334. package/dist/chunk-QKIGQVP2.js.map +7 -0
  335. package/dist/chunk-QNJENPK2.js +81 -0
  336. package/dist/chunk-QNJENPK2.js.map +7 -0
  337. package/dist/chunk-REVXXWAS.js +31 -0
  338. package/dist/chunk-REVXXWAS.js.map +7 -0
  339. package/dist/chunk-RFH4HRZP.js +94 -0
  340. package/dist/chunk-RFH4HRZP.js.map +7 -0
  341. package/dist/chunk-RNGAGYCL.js +49 -0
  342. package/dist/chunk-RNGAGYCL.js.map +7 -0
  343. package/dist/chunk-RPCVN3JA.js +261 -0
  344. package/dist/chunk-RPCVN3JA.js.map +7 -0
  345. package/dist/chunk-RQQE5DDT.js +193 -0
  346. package/dist/chunk-RQQE5DDT.js.map +7 -0
  347. package/dist/chunk-RVOD3ESA.js +38 -0
  348. package/dist/chunk-RVOD3ESA.js.map +7 -0
  349. package/dist/chunk-SAOUP24A.js +70 -0
  350. package/dist/chunk-SAOUP24A.js.map +7 -0
  351. package/dist/chunk-SFZL2TCV.js +55 -0
  352. package/dist/chunk-SFZL2TCV.js.map +7 -0
  353. package/dist/chunk-SJPFUXBV.js +45 -0
  354. package/dist/chunk-SJPFUXBV.js.map +7 -0
  355. package/dist/chunk-SLIUQWAR.js +58 -0
  356. package/dist/chunk-SLIUQWAR.js.map +7 -0
  357. package/dist/chunk-SSEX66OL.js +39 -0
  358. package/dist/chunk-SSEX66OL.js.map +7 -0
  359. package/dist/chunk-SX2LOHOX.js +251 -0
  360. package/dist/chunk-SX2LOHOX.js.map +7 -0
  361. package/dist/chunk-T72EMFTX.js +74 -0
  362. package/dist/chunk-T72EMFTX.js.map +7 -0
  363. package/dist/chunk-TA2QJPPG.js +169 -0
  364. package/dist/chunk-TA2QJPPG.js.map +7 -0
  365. package/dist/chunk-TFEETDNY.js +78 -0
  366. package/dist/chunk-TFEETDNY.js.map +7 -0
  367. package/dist/chunk-THM2QV25.js +108 -0
  368. package/dist/chunk-THM2QV25.js.map +7 -0
  369. package/dist/chunk-TRWT2N6Z.js +15 -0
  370. package/dist/chunk-TRWT2N6Z.js.map +7 -0
  371. package/dist/chunk-TTXEM54Y.js +76 -0
  372. package/dist/chunk-TTXEM54Y.js.map +7 -0
  373. package/dist/chunk-U4LVIY5F.js +1405 -0
  374. package/dist/chunk-U4LVIY5F.js.map +7 -0
  375. package/dist/chunk-U767LCSG.js +78 -0
  376. package/dist/chunk-U767LCSG.js.map +7 -0
  377. package/dist/chunk-U7GKLHU6.js +120 -0
  378. package/dist/chunk-U7GKLHU6.js.map +7 -0
  379. package/dist/chunk-UAB5P5QO.js +60 -0
  380. package/dist/chunk-UAB5P5QO.js.map +7 -0
  381. package/dist/chunk-UEHPJQBL.js +38 -0
  382. package/dist/chunk-UEHPJQBL.js.map +7 -0
  383. package/dist/chunk-UIBV6IGR.js +31 -0
  384. package/dist/chunk-UIBV6IGR.js.map +7 -0
  385. package/dist/chunk-UIYFRUET.js +16352 -0
  386. package/dist/chunk-UIYFRUET.js.map +7 -0
  387. package/dist/chunk-UJS3TIVS.js +52 -0
  388. package/dist/chunk-UJS3TIVS.js.map +7 -0
  389. package/dist/chunk-UU5PSBSI.js +176 -0
  390. package/dist/chunk-UU5PSBSI.js.map +7 -0
  391. package/dist/chunk-UV63XYFU.js +173 -0
  392. package/dist/chunk-UV63XYFU.js.map +7 -0
  393. package/dist/chunk-UWPHOAOC.js +29 -0
  394. package/dist/chunk-UWPHOAOC.js.map +7 -0
  395. package/dist/chunk-UXDDOSJC.js +52 -0
  396. package/dist/chunk-UXDDOSJC.js.map +7 -0
  397. package/dist/chunk-V3VAOMCO.js +465 -0
  398. package/dist/chunk-V3VAOMCO.js.map +7 -0
  399. package/dist/chunk-VA7ENH2S.js +38 -0
  400. package/dist/chunk-VA7ENH2S.js.map +7 -0
  401. package/dist/chunk-VFPDFLVE.js +516 -0
  402. package/dist/chunk-VFPDFLVE.js.map +7 -0
  403. package/dist/chunk-VHG4FNIJ.js +93 -0
  404. package/dist/chunk-VHG4FNIJ.js.map +7 -0
  405. package/dist/chunk-VKOO6MIZ.js +51 -0
  406. package/dist/chunk-VKOO6MIZ.js.map +7 -0
  407. package/dist/chunk-VKXKRZG7.js +62 -0
  408. package/dist/chunk-VKXKRZG7.js.map +7 -0
  409. package/dist/chunk-VUOLPEUZ.js +7 -0
  410. package/dist/chunk-VUOLPEUZ.js.map +7 -0
  411. package/dist/chunk-W6SOBS7M.js +138 -0
  412. package/dist/chunk-W6SOBS7M.js.map +7 -0
  413. package/dist/chunk-WDOKKRTE.js +7 -0
  414. package/dist/chunk-WDOKKRTE.js.map +7 -0
  415. package/dist/chunk-WGXXKFN5.js +7 -0
  416. package/dist/chunk-WGXXKFN5.js.map +7 -0
  417. package/dist/chunk-WHPUUP3J.js +25 -0
  418. package/dist/chunk-WHPUUP3J.js.map +7 -0
  419. package/dist/chunk-XF7LD6VV.js +122 -0
  420. package/dist/chunk-XF7LD6VV.js.map +7 -0
  421. package/dist/chunk-XFTXM3RE.js +64 -0
  422. package/dist/chunk-XFTXM3RE.js.map +7 -0
  423. package/dist/chunk-XJABPO2T.js +235 -0
  424. package/dist/chunk-XJABPO2T.js.map +7 -0
  425. package/dist/chunk-XK6VF3H7.js +3586 -0
  426. package/dist/chunk-XK6VF3H7.js.map +7 -0
  427. package/dist/chunk-XQYIIPOJ.js +266 -0
  428. package/dist/chunk-XQYIIPOJ.js.map +7 -0
  429. package/dist/chunk-XZSAN55E.js +58 -0
  430. package/dist/chunk-XZSAN55E.js.map +7 -0
  431. package/dist/chunk-Y3KJR4OG.js +64 -0
  432. package/dist/chunk-Y3KJR4OG.js.map +7 -0
  433. package/dist/chunk-Y4JKH7FF.js +45 -0
  434. package/dist/chunk-Y4JKH7FF.js.map +7 -0
  435. package/dist/chunk-Y6CJN4ID.js +31 -0
  436. package/dist/chunk-Y6CJN4ID.js.map +7 -0
  437. package/dist/chunk-YABGJU5M.js +271 -0
  438. package/dist/chunk-YABGJU5M.js.map +7 -0
  439. package/dist/chunk-YEJH7ZC2.js +34 -0
  440. package/dist/chunk-YEJH7ZC2.js.map +7 -0
  441. package/dist/chunk-YFTE4H54.js +44117 -0
  442. package/dist/chunk-YFTE4H54.js.map +7 -0
  443. package/dist/chunk-YNJYMD43.js +392 -0
  444. package/dist/chunk-YNJYMD43.js.map +7 -0
  445. package/dist/chunk-YNYEQGVN.js +251 -0
  446. package/dist/chunk-YNYEQGVN.js.map +7 -0
  447. package/dist/chunk-YUPBD27Z.js +70 -0
  448. package/dist/chunk-YUPBD27Z.js.map +7 -0
  449. package/dist/chunk-YXJ52FD5.js +271 -0
  450. package/dist/chunk-YXJ52FD5.js.map +7 -0
  451. package/dist/chunk-YZGORRQN.js +3101 -0
  452. package/dist/chunk-YZGORRQN.js.map +7 -0
  453. package/dist/chunk-Z6IVJ6ZW.js +30 -0
  454. package/dist/chunk-Z6IVJ6ZW.js.map +7 -0
  455. package/dist/chunk-ZFC44XJJ.js +86 -0
  456. package/dist/chunk-ZFC44XJJ.js.map +7 -0
  457. package/dist/chunk-ZJDJC5TP.js +82 -0
  458. package/dist/chunk-ZJDJC5TP.js.map +7 -0
  459. package/dist/chunk-ZJGZNPDK.js +171 -0
  460. package/dist/chunk-ZJGZNPDK.js.map +7 -0
  461. package/dist/chunk-ZJHBJWZX.js +699 -0
  462. package/dist/chunk-ZJHBJWZX.js.map +7 -0
  463. package/dist/chunk-ZNOTD65D.js +95 -0
  464. package/dist/chunk-ZNOTD65D.js.map +7 -0
  465. package/dist/chunk-ZQ2QIFXW.js +122 -0
  466. package/dist/chunk-ZQ2QIFXW.js.map +7 -0
  467. package/dist/chunk-ZRMXPQGY.js +241 -0
  468. package/dist/chunk-ZRMXPQGY.js.map +7 -0
  469. package/dist/chunk-ZVEE5IDC.js +3101 -0
  470. package/dist/chunk-ZVEE5IDC.js.map +7 -0
  471. package/dist/cli-metadata.js +12 -0
  472. package/dist/cli-metadata.js.map +7 -0
  473. package/dist/contract-api.js +104 -0
  474. package/dist/contract-api.js.map +7 -0
  475. package/dist/dist-F3K7S5SS.js +549 -0
  476. package/dist/dist-F3K7S5SS.js.map +7 -0
  477. package/dist/helper-api.js +51 -0
  478. package/dist/helper-api.js.map +7 -0
  479. package/dist/index.js +71 -0
  480. package/dist/index.js.map +7 -0
  481. package/dist/magic-string.es-V5NOGTUV.js +1315 -0
  482. package/dist/magic-string.es-V5NOGTUV.js.map +7 -0
  483. package/dist/openclaw.plugin.json +23 -0
  484. package/dist/package.json +59 -0
  485. package/dist/plugin-entry.handlers.runtime-POD4CSHM.js +20 -0
  486. package/dist/plugin-entry.handlers.runtime-POD4CSHM.js.map +7 -0
  487. package/dist/plugin-entry.handlers.runtime-YOSG6V6U.js +20 -0
  488. package/dist/plugin-entry.handlers.runtime-YOSG6V6U.js.map +7 -0
  489. package/dist/runtime-api.js +104 -0
  490. package/dist/runtime-api.js.map +7 -0
  491. package/dist/rust-crypto-H35BXWUU.js +5323 -0
  492. package/dist/rust-crypto-H35BXWUU.js.map +7 -0
  493. package/dist/secret-contract-api.js +18 -0
  494. package/dist/secret-contract-api.js.map +7 -0
  495. package/dist/setup-entry.js +23 -0
  496. package/dist/setup-entry.js.map +7 -0
  497. package/dist/src/account-selection.js +19 -0
  498. package/dist/src/account-selection.js.map +7 -0
  499. package/dist/src/actions.js +24 -0
  500. package/dist/src/actions.js.map +7 -0
  501. package/dist/src/approval-auth.js +27 -0
  502. package/dist/src/approval-auth.js.map +7 -0
  503. package/dist/src/approval-handler.runtime.js +378 -0
  504. package/dist/src/approval-handler.runtime.js.map +7 -0
  505. package/dist/src/approval-ids.js +9 -0
  506. package/dist/src/approval-ids.js.map +7 -0
  507. package/dist/src/approval-native.js +28 -0
  508. package/dist/src/approval-native.js.map +7 -0
  509. package/dist/src/approval-reactions.js +20 -0
  510. package/dist/src/approval-reactions.js.map +7 -0
  511. package/dist/src/auth-precedence.js +8 -0
  512. package/dist/src/auth-precedence.js.map +7 -0
  513. package/dist/src/channel-account-paths.js +11 -0
  514. package/dist/src/channel-account-paths.js.map +7 -0
  515. package/dist/src/channel.js +74 -0
  516. package/dist/src/channel.js.map +7 -0
  517. package/dist/src/channel.runtime.js +82 -0
  518. package/dist/src/channel.runtime.js.map +7 -0
  519. package/dist/src/cli-metadata.js +8 -0
  520. package/dist/src/cli-metadata.js.map +7 -0
  521. package/dist/src/cli.js +936 -0
  522. package/dist/src/cli.js.map +7 -0
  523. package/dist/src/config-adapter.js +26 -0
  524. package/dist/src/config-adapter.js.map +7 -0
  525. package/dist/src/config-schema.js +8 -0
  526. package/dist/src/config-schema.js.map +7 -0
  527. package/dist/src/directory-live.js +35 -0
  528. package/dist/src/directory-live.js.map +7 -0
  529. package/dist/src/doctor-contract.js +11 -0
  530. package/dist/src/doctor-contract.js.map +7 -0
  531. package/dist/src/doctor.js +42 -0
  532. package/dist/src/doctor.js.map +7 -0
  533. package/dist/src/env-vars.js +12 -0
  534. package/dist/src/env-vars.js.map +7 -0
  535. package/dist/src/exec-approval-resolver.js +10 -0
  536. package/dist/src/exec-approval-resolver.js.map +7 -0
  537. package/dist/src/exec-approvals.js +51 -0
  538. package/dist/src/exec-approvals.js.map +7 -0
  539. package/dist/src/group-mentions.js +28 -0
  540. package/dist/src/group-mentions.js.map +7 -0
  541. package/dist/src/legacy-crypto-inspector-availability.js +8 -0
  542. package/dist/src/legacy-crypto-inspector-availability.js.map +7 -0
  543. package/dist/src/legacy-crypto.js +26 -0
  544. package/dist/src/legacy-crypto.js.map +7 -0
  545. package/dist/src/legacy-state.js +24 -0
  546. package/dist/src/legacy-state.js.map +7 -0
  547. package/dist/src/matrix/account-config.js +16 -0
  548. package/dist/src/matrix/account-config.js.map +7 -0
  549. package/dist/src/matrix/accounts.js +31 -0
  550. package/dist/src/matrix/accounts.js.map +7 -0
  551. package/dist/src/matrix/actions/client.js +40 -0
  552. package/dist/src/matrix/actions/client.js.map +7 -0
  553. package/dist/src/matrix/actions/devices.js +42 -0
  554. package/dist/src/matrix/actions/devices.js.map +7 -0
  555. package/dist/src/matrix/actions/limits.js +8 -0
  556. package/dist/src/matrix/actions/limits.js.map +7 -0
  557. package/dist/src/matrix/actions/messages.js +49 -0
  558. package/dist/src/matrix/actions/messages.js.map +7 -0
  559. package/dist/src/matrix/actions/pins.js +46 -0
  560. package/dist/src/matrix/actions/pins.js.map +7 -0
  561. package/dist/src/matrix/actions/polls.js +37 -0
  562. package/dist/src/matrix/actions/polls.js.map +7 -0
  563. package/dist/src/matrix/actions/profile.js +38 -0
  564. package/dist/src/matrix/actions/profile.js.map +7 -0
  565. package/dist/src/matrix/actions/reactions.js +40 -0
  566. package/dist/src/matrix/actions/reactions.js.map +7 -0
  567. package/dist/src/matrix/actions/room.js +40 -0
  568. package/dist/src/matrix/actions/room.js.map +7 -0
  569. package/dist/src/matrix/actions/summary.js +19 -0
  570. package/dist/src/matrix/actions/summary.js.map +7 -0
  571. package/dist/src/matrix/actions/types.js +13 -0
  572. package/dist/src/matrix/actions/types.js.map +7 -0
  573. package/dist/src/matrix/actions/verification.js +77 -0
  574. package/dist/src/matrix/actions/verification.js.map +7 -0
  575. package/dist/src/matrix/actions.js +126 -0
  576. package/dist/src/matrix/actions.js.map +7 -0
  577. package/dist/src/matrix/active-client.js +10 -0
  578. package/dist/src/matrix/active-client.js.map +7 -0
  579. package/dist/src/matrix/async-lock.js +8 -0
  580. package/dist/src/matrix/async-lock.js.map +7 -0
  581. package/dist/src/matrix/backup-health.js +10 -0
  582. package/dist/src/matrix/backup-health.js.map +7 -0
  583. package/dist/src/matrix/client/config-runtime-api.js +24 -0
  584. package/dist/src/matrix/client/config-runtime-api.js.map +7 -0
  585. package/dist/src/matrix/client/config-secret-input.runtime.js +11 -0
  586. package/dist/src/matrix/client/config-secret-input.runtime.js.map +7 -0
  587. package/dist/src/matrix/client/config.js +42 -0
  588. package/dist/src/matrix/client/config.js.map +7 -0
  589. package/dist/src/matrix/client/create-client.js +20 -0
  590. package/dist/src/matrix/client/create-client.js.map +7 -0
  591. package/dist/src/matrix/client/env-auth.js +26 -0
  592. package/dist/src/matrix/client/env-auth.js.map +7 -0
  593. package/dist/src/matrix/client/file-sync-store.js +23 -0
  594. package/dist/src/matrix/client/file-sync-store.js.map +7 -0
  595. package/dist/src/matrix/client/logging.js +17 -0
  596. package/dist/src/matrix/client/logging.js.map +7 -0
  597. package/dist/src/matrix/client/migration-snapshot.runtime.js +13 -0
  598. package/dist/src/matrix/client/migration-snapshot.runtime.js.map +7 -0
  599. package/dist/src/matrix/client/private-network-host.js +8 -0
  600. package/dist/src/matrix/client/private-network-host.js.map +7 -0
  601. package/dist/src/matrix/client/runtime.js +8 -0
  602. package/dist/src/matrix/client/runtime.js.map +7 -0
  603. package/dist/src/matrix/client/shared.js +34 -0
  604. package/dist/src/matrix/client/shared.js.map +7 -0
  605. package/dist/src/matrix/client/storage.js +26 -0
  606. package/dist/src/matrix/client/storage.js.map +7 -0
  607. package/dist/src/matrix/client/types.js +7 -0
  608. package/dist/src/matrix/client/types.js.map +7 -0
  609. package/dist/src/matrix/client-bootstrap.js +15 -0
  610. package/dist/src/matrix/client-bootstrap.js.map +7 -0
  611. package/dist/src/matrix/client-resolver.test-helpers.js +122 -0
  612. package/dist/src/matrix/client-resolver.test-helpers.js.map +7 -0
  613. package/dist/src/matrix/client.js +63 -0
  614. package/dist/src/matrix/client.js.map +7 -0
  615. package/dist/src/matrix/config-paths.js +12 -0
  616. package/dist/src/matrix/config-paths.js.map +7 -0
  617. package/dist/src/matrix/config-update.js +17 -0
  618. package/dist/src/matrix/config-update.js.map +7 -0
  619. package/dist/src/matrix/credentials-read.js +22 -0
  620. package/dist/src/matrix/credentials-read.js.map +7 -0
  621. package/dist/src/matrix/credentials-write.runtime.js +24 -0
  622. package/dist/src/matrix/credentials-write.runtime.js.map +7 -0
  623. package/dist/src/matrix/credentials.js +90 -0
  624. package/dist/src/matrix/credentials.js.map +7 -0
  625. package/dist/src/matrix/deps.js +12 -0
  626. package/dist/src/matrix/deps.js.map +7 -0
  627. package/dist/src/matrix/device-health.js +10 -0
  628. package/dist/src/matrix/device-health.js.map +7 -0
  629. package/dist/src/matrix/direct-management.js +18 -0
  630. package/dist/src/matrix/direct-management.js.map +7 -0
  631. package/dist/src/matrix/direct-room.js +18 -0
  632. package/dist/src/matrix/direct-room.js.map +7 -0
  633. package/dist/src/matrix/draft-stream.js +33 -0
  634. package/dist/src/matrix/draft-stream.js.map +7 -0
  635. package/dist/src/matrix/encryption-guidance.js +17 -0
  636. package/dist/src/matrix/encryption-guidance.js.map +7 -0
  637. package/dist/src/matrix/errors.js +12 -0
  638. package/dist/src/matrix/errors.js.map +7 -0
  639. package/dist/src/matrix/format.js +13 -0
  640. package/dist/src/matrix/format.js.map +7 -0
  641. package/dist/src/matrix/legacy-crypto-inspector.js +73 -0
  642. package/dist/src/matrix/legacy-crypto-inspector.js.map +7 -0
  643. package/dist/src/matrix/media-errors.js +12 -0
  644. package/dist/src/matrix/media-errors.js.map +7 -0
  645. package/dist/src/matrix/media-text.js +22 -0
  646. package/dist/src/matrix/media-text.js.map +7 -0
  647. package/dist/src/matrix/monitor/access-state.js +9 -0
  648. package/dist/src/matrix/monitor/access-state.js.map +7 -0
  649. package/dist/src/matrix/monitor/ack-config.js +10 -0
  650. package/dist/src/matrix/monitor/ack-config.js.map +7 -0
  651. package/dist/src/matrix/monitor/allowlist.js +12 -0
  652. package/dist/src/matrix/monitor/allowlist.js.map +7 -0
  653. package/dist/src/matrix/monitor/auto-join.js +9 -0
  654. package/dist/src/matrix/monitor/auto-join.js.map +7 -0
  655. package/dist/src/matrix/monitor/config.js +37 -0
  656. package/dist/src/matrix/monitor/config.js.map +7 -0
  657. package/dist/src/matrix/monitor/context-summary.js +13 -0
  658. package/dist/src/matrix/monitor/context-summary.js.map +7 -0
  659. package/dist/src/matrix/monitor/direct.js +13 -0
  660. package/dist/src/matrix/monitor/direct.js.map +7 -0
  661. package/dist/src/matrix/monitor/events.js +20 -0
  662. package/dist/src/matrix/monitor/events.js.map +7 -0
  663. package/dist/src/matrix/monitor/handler.js +76 -0
  664. package/dist/src/matrix/monitor/handler.js.map +7 -0
  665. package/dist/src/matrix/monitor/handler.test-helpers.js +268 -0
  666. package/dist/src/matrix/monitor/handler.test-helpers.js.map +7 -0
  667. package/dist/src/matrix/monitor/inbound-dedupe.js +17 -0
  668. package/dist/src/matrix/monitor/inbound-dedupe.js.map +7 -0
  669. package/dist/src/matrix/monitor/index.js +502 -0
  670. package/dist/src/matrix/monitor/index.js.map +7 -0
  671. package/dist/src/matrix/monitor/legacy-crypto-restore.js +99 -0
  672. package/dist/src/matrix/monitor/legacy-crypto-restore.js.map +7 -0
  673. package/dist/src/matrix/monitor/location.js +11 -0
  674. package/dist/src/matrix/monitor/location.js.map +7 -0
  675. package/dist/src/matrix/monitor/media.js +10 -0
  676. package/dist/src/matrix/monitor/media.js.map +7 -0
  677. package/dist/src/matrix/monitor/mentions.js +9 -0
  678. package/dist/src/matrix/monitor/mentions.js.map +7 -0
  679. package/dist/src/matrix/monitor/reaction-events.js +38 -0
  680. package/dist/src/matrix/monitor/reaction-events.js.map +7 -0
  681. package/dist/src/matrix/monitor/recent-invite.js +10 -0
  682. package/dist/src/matrix/monitor/recent-invite.js.map +7 -0
  683. package/dist/src/matrix/monitor/replies.js +33 -0
  684. package/dist/src/matrix/monitor/replies.js.map +7 -0
  685. package/dist/src/matrix/monitor/reply-context.js +14 -0
  686. package/dist/src/matrix/monitor/reply-context.js.map +7 -0
  687. package/dist/src/matrix/monitor/room-history.js +10 -0
  688. package/dist/src/matrix/monitor/room-history.js.map +7 -0
  689. package/dist/src/matrix/monitor/room-info.js +9 -0
  690. package/dist/src/matrix/monitor/room-info.js.map +7 -0
  691. package/dist/src/matrix/monitor/rooms.js +9 -0
  692. package/dist/src/matrix/monitor/rooms.js.map +7 -0
  693. package/dist/src/matrix/monitor/route.js +12 -0
  694. package/dist/src/matrix/monitor/route.js.map +7 -0
  695. package/dist/src/matrix/monitor/runtime-api.js +40 -0
  696. package/dist/src/matrix/monitor/runtime-api.js.map +7 -0
  697. package/dist/src/matrix/monitor/startup-verification.js +174 -0
  698. package/dist/src/matrix/monitor/startup-verification.js.map +7 -0
  699. package/dist/src/matrix/monitor/startup.js +9 -0
  700. package/dist/src/matrix/monitor/startup.js.map +7 -0
  701. package/dist/src/matrix/monitor/status.js +10 -0
  702. package/dist/src/matrix/monitor/status.js.map +7 -0
  703. package/dist/src/matrix/monitor/sync-lifecycle.js +9 -0
  704. package/dist/src/matrix/monitor/sync-lifecycle.js.map +7 -0
  705. package/dist/src/matrix/monitor/task-runner.js +8 -0
  706. package/dist/src/matrix/monitor/task-runner.js.map +7 -0
  707. package/dist/src/matrix/monitor/thread-context.js +14 -0
  708. package/dist/src/matrix/monitor/thread-context.js.map +7 -0
  709. package/dist/src/matrix/monitor/threads.js +16 -0
  710. package/dist/src/matrix/monitor/threads.js.map +7 -0
  711. package/dist/src/matrix/monitor/types.js +11 -0
  712. package/dist/src/matrix/monitor/types.js.map +7 -0
  713. package/dist/src/matrix/monitor/verification-events.js +13 -0
  714. package/dist/src/matrix/monitor/verification-events.js.map +7 -0
  715. package/dist/src/matrix/monitor/verification-utils.js +16 -0
  716. package/dist/src/matrix/monitor/verification-utils.js.map +7 -0
  717. package/dist/src/matrix/outbound-media-runtime.js +9 -0
  718. package/dist/src/matrix/outbound-media-runtime.js.map +7 -0
  719. package/dist/src/matrix/poll-summary.js +14 -0
  720. package/dist/src/matrix/poll-summary.js.map +7 -0
  721. package/dist/src/matrix/poll-types.js +55 -0
  722. package/dist/src/matrix/poll-types.js.map +7 -0
  723. package/dist/src/matrix/probe.js +9 -0
  724. package/dist/src/matrix/probe.js.map +7 -0
  725. package/dist/src/matrix/probe.runtime.js +30 -0
  726. package/dist/src/matrix/probe.runtime.js.map +7 -0
  727. package/dist/src/matrix/profile.js +16 -0
  728. package/dist/src/matrix/profile.js.map +7 -0
  729. package/dist/src/matrix/reaction-common.js +26 -0
  730. package/dist/src/matrix/reaction-common.js.map +7 -0
  731. package/dist/src/matrix/sdk/crypto-bootstrap.js +15 -0
  732. package/dist/src/matrix/sdk/crypto-bootstrap.js.map +7 -0
  733. package/dist/src/matrix/sdk/crypto-facade.js +8 -0
  734. package/dist/src/matrix/sdk/crypto-facade.js.map +7 -0
  735. package/dist/src/matrix/sdk/crypto-node.runtime.js +15 -0
  736. package/dist/src/matrix/sdk/crypto-node.runtime.js.map +7 -0
  737. package/dist/src/matrix/sdk/crypto-runtime.js +84 -0
  738. package/dist/src/matrix/sdk/crypto-runtime.js.map +7 -0
  739. package/dist/src/matrix/sdk/decrypt-bridge.js +11 -0
  740. package/dist/src/matrix/sdk/decrypt-bridge.js.map +7 -0
  741. package/dist/src/matrix/sdk/event-helpers.js +12 -0
  742. package/dist/src/matrix/sdk/event-helpers.js.map +7 -0
  743. package/dist/src/matrix/sdk/http-client.js +13 -0
  744. package/dist/src/matrix/sdk/http-client.js.map +7 -0
  745. package/dist/src/matrix/sdk/idb-persistence-lock.js +12 -0
  746. package/dist/src/matrix/sdk/idb-persistence-lock.js.map +7 -0
  747. package/dist/src/matrix/sdk/idb-persistence.js +13 -0
  748. package/dist/src/matrix/sdk/idb-persistence.js.map +7 -0
  749. package/dist/src/matrix/sdk/idb-persistence.test-helpers.js +83 -0
  750. package/dist/src/matrix/sdk/idb-persistence.test-helpers.js.map +7 -0
  751. package/dist/src/matrix/sdk/logger.js +15 -0
  752. package/dist/src/matrix/sdk/logger.js.map +7 -0
  753. package/dist/src/matrix/sdk/read-response-with-limit.js +8 -0
  754. package/dist/src/matrix/sdk/read-response-with-limit.js.map +7 -0
  755. package/dist/src/matrix/sdk/recovery-key-store.js +14 -0
  756. package/dist/src/matrix/sdk/recovery-key-store.js.map +7 -0
  757. package/dist/src/matrix/sdk/transport.js +13 -0
  758. package/dist/src/matrix/sdk/transport.js.map +7 -0
  759. package/dist/src/matrix/sdk/types.js +7 -0
  760. package/dist/src/matrix/sdk/types.js.map +7 -0
  761. package/dist/src/matrix/sdk/verification-manager.js +11 -0
  762. package/dist/src/matrix/sdk/verification-manager.js.map +7 -0
  763. package/dist/src/matrix/sdk/verification-status.js +12 -0
  764. package/dist/src/matrix/sdk/verification-status.js.map +7 -0
  765. package/dist/src/matrix/sdk.js +1375 -0
  766. package/dist/src/matrix/sdk.js.map +7 -0
  767. package/dist/src/matrix/send/client.js +14 -0
  768. package/dist/src/matrix/send/client.js.map +7 -0
  769. package/dist/src/matrix/send/formatting.js +29 -0
  770. package/dist/src/matrix/send/formatting.js.map +7 -0
  771. package/dist/src/matrix/send/media.js +26 -0
  772. package/dist/src/matrix/send/media.js.map +7 -0
  773. package/dist/src/matrix/send/targets.js +15 -0
  774. package/dist/src/matrix/send/targets.js.map +7 -0
  775. package/dist/src/matrix/send/types.js +17 -0
  776. package/dist/src/matrix/send/types.js.map +7 -0
  777. package/dist/src/matrix/send.js +51 -0
  778. package/dist/src/matrix/send.js.map +7 -0
  779. package/dist/src/matrix/session-store-metadata.js +15 -0
  780. package/dist/src/matrix/session-store-metadata.js.map +7 -0
  781. package/dist/src/matrix/startup-abort.js +14 -0
  782. package/dist/src/matrix/startup-abort.js.map +7 -0
  783. package/dist/src/matrix/sync-state.js +12 -0
  784. package/dist/src/matrix/sync-state.js.map +7 -0
  785. package/dist/src/matrix/target-ids.js +20 -0
  786. package/dist/src/matrix/target-ids.js.map +7 -0
  787. package/dist/src/matrix/thread-bindings-shared.js +34 -0
  788. package/dist/src/matrix/thread-bindings-shared.js.map +7 -0
  789. package/dist/src/matrix/thread-bindings.js +49 -0
  790. package/dist/src/matrix/thread-bindings.js.map +7 -0
  791. package/dist/src/matrix-migration.runtime.js +45 -0
  792. package/dist/src/matrix-migration.runtime.js.map +7 -0
  793. package/dist/src/migration-config.js +29 -0
  794. package/dist/src/migration-config.js.map +7 -0
  795. package/dist/src/migration-snapshot-backup.js +12 -0
  796. package/dist/src/migration-snapshot-backup.js.map +7 -0
  797. package/dist/src/migration-snapshot.js +38 -0
  798. package/dist/src/migration-snapshot.js.map +7 -0
  799. package/dist/src/onboarding.js +43 -0
  800. package/dist/src/onboarding.js.map +7 -0
  801. package/dist/src/onboarding.test-harness.js +124 -0
  802. package/dist/src/onboarding.test-harness.js.map +7 -0
  803. package/dist/src/outbound.js +33 -0
  804. package/dist/src/outbound.js.map +7 -0
  805. package/dist/src/plugin-entry.runtime.js +15 -0
  806. package/dist/src/plugin-entry.runtime.js.map +7 -0
  807. package/dist/src/profile-update.js +41 -0
  808. package/dist/src/profile-update.js.map +7 -0
  809. package/dist/src/record-shared.js +8 -0
  810. package/dist/src/record-shared.js.map +7 -0
  811. package/dist/src/resolve-targets.js +34 -0
  812. package/dist/src/resolve-targets.js.map +7 -0
  813. package/dist/src/resolver.js +8 -0
  814. package/dist/src/resolver.js.map +7 -0
  815. package/dist/src/runtime-api.js +120 -0
  816. package/dist/src/runtime-api.js.map +7 -0
  817. package/dist/src/runtime.js +10 -0
  818. package/dist/src/runtime.js.map +7 -0
  819. package/dist/src/secret-contract.js +13 -0
  820. package/dist/src/secret-contract.js.map +7 -0
  821. package/dist/src/session-route.js +25 -0
  822. package/dist/src/session-route.js.map +7 -0
  823. package/dist/src/setup-bootstrap.js +124 -0
  824. package/dist/src/setup-bootstrap.js.map +7 -0
  825. package/dist/src/setup-config.js +28 -0
  826. package/dist/src/setup-config.js.map +7 -0
  827. package/dist/src/setup-contract.js +16 -0
  828. package/dist/src/setup-contract.js.map +7 -0
  829. package/dist/src/setup-core.js +25 -0
  830. package/dist/src/setup-core.js.map +7 -0
  831. package/dist/src/setup-surface.js +45 -0
  832. package/dist/src/setup-surface.js.map +7 -0
  833. package/dist/src/startup-maintenance.js +29 -0
  834. package/dist/src/startup-maintenance.js.map +7 -0
  835. package/dist/src/storage-paths.js +24 -0
  836. package/dist/src/storage-paths.js.map +7 -0
  837. package/dist/src/test-helpers.js +49 -0
  838. package/dist/src/test-helpers.js.map +7 -0
  839. package/dist/src/test-mocks.js +40 -0
  840. package/dist/src/test-mocks.js.map +7 -0
  841. package/dist/src/test-runtime.js +65 -0
  842. package/dist/src/test-runtime.js.map +7 -0
  843. package/dist/src/tool-actions.js +68 -0
  844. package/dist/src/tool-actions.js.map +7 -0
  845. package/dist/src/tool-actions.runtime.js +73 -0
  846. package/dist/src/tool-actions.runtime.js.map +7 -0
  847. package/dist/src/types.js +7 -0
  848. package/dist/src/types.js.map +7 -0
  849. package/dist/test-api.js +82 -0
  850. package/dist/test-api.js.map +7 -0
  851. package/dist/thread-bindings-runtime.js +15 -0
  852. package/dist/thread-bindings-runtime.js.map +7 -0
  853. package/package.json +12 -6
  854. package/CHANGELOG.md +0 -164
  855. package/ENDOFFILE +0 -0
  856. package/EOF +0 -0
  857. package/SPEC-SUPPORT.md +0 -116
  858. package/YAMLEND +0 -0
  859. package/api.ts +0 -18
  860. package/archipelagolab-lobi-1.0.0.tgz +0 -0
  861. package/auth-presence.ts +0 -56
  862. package/channel-plugin-api.ts +0 -3
  863. package/cli-metadata.ts +0 -11
  864. package/contract-api.ts +0 -17
  865. package/docs/CHECKLIST.md +0 -83
  866. package/docs/FORK_SDK_GUIDE.md +0 -279
  867. package/helper-api.ts +0 -3
  868. package/index.test.ts +0 -61
  869. package/index.ts +0 -65
  870. package/plugin-entry.handlers.runtime.ts +0 -1
  871. package/runtime-api.ts +0 -54
  872. package/runtime-heavy-api.ts +0 -1
  873. package/scripts/migrate-to-lobi.sh +0 -72
  874. package/secret-contract-api.ts +0 -5
  875. package/setup-entry.ts +0 -13
  876. package/src/account-selection.test.ts +0 -124
  877. package/src/account-selection.ts +0 -226
  878. package/src/actions.account-propagation.test.ts +0 -251
  879. package/src/actions.test.ts +0 -251
  880. package/src/actions.ts +0 -336
  881. package/src/approval-auth.test.ts +0 -23
  882. package/src/approval-auth.ts +0 -25
  883. package/src/approval-handler.runtime.test.ts +0 -46
  884. package/src/approval-handler.runtime.ts +0 -400
  885. package/src/approval-ids.ts +0 -6
  886. package/src/approval-native.test.ts +0 -329
  887. package/src/approval-native.ts +0 -336
  888. package/src/approval-reactions.test.ts +0 -107
  889. package/src/approval-reactions.ts +0 -158
  890. package/src/auth-precedence.ts +0 -61
  891. package/src/channel-account-paths.ts +0 -92
  892. package/src/channel.account-paths.test.ts +0 -102
  893. package/src/channel.directory.test.ts +0 -601
  894. package/src/channel.resolve.test.ts +0 -38
  895. package/src/channel.runtime.ts +0 -16
  896. package/src/channel.setup.test.ts +0 -269
  897. package/src/channel.ts +0 -570
  898. package/src/cli-metadata.ts +0 -19
  899. package/src/cli.test.ts +0 -1015
  900. package/src/cli.ts +0 -1198
  901. package/src/config-adapter.ts +0 -41
  902. package/src/config-schema.test.ts +0 -90
  903. package/src/config-schema.ts +0 -114
  904. package/src/directory-live.test.ts +0 -200
  905. package/src/directory-live.ts +0 -238
  906. package/src/doctor-contract.ts +0 -287
  907. package/src/doctor.test.ts +0 -440
  908. package/src/doctor.ts +0 -262
  909. package/src/env-vars.ts +0 -92
  910. package/src/exec-approval-resolver.test.ts +0 -68
  911. package/src/exec-approval-resolver.ts +0 -23
  912. package/src/exec-approvals.test.ts +0 -483
  913. package/src/exec-approvals.ts +0 -290
  914. package/src/group-mentions.ts +0 -41
  915. package/src/legacy-crypto-inspector-availability.test.ts +0 -81
  916. package/src/legacy-crypto-inspector-availability.ts +0 -60
  917. package/src/legacy-crypto.test.ts +0 -234
  918. package/src/legacy-crypto.ts +0 -549
  919. package/src/legacy-state.test.ts +0 -86
  920. package/src/legacy-state.ts +0 -156
  921. package/src/matrix/account-config.ts +0 -150
  922. package/src/matrix/accounts.readiness.test.ts +0 -27
  923. package/src/matrix/accounts.test.ts +0 -757
  924. package/src/matrix/accounts.ts +0 -194
  925. package/src/matrix/actions/client.test.ts +0 -215
  926. package/src/matrix/actions/client.ts +0 -31
  927. package/src/matrix/actions/devices.test.ts +0 -114
  928. package/src/matrix/actions/devices.ts +0 -34
  929. package/src/matrix/actions/limits.test.ts +0 -15
  930. package/src/matrix/actions/limits.ts +0 -6
  931. package/src/matrix/actions/messages.test.ts +0 -289
  932. package/src/matrix/actions/messages.ts +0 -123
  933. package/src/matrix/actions/pins.test.ts +0 -74
  934. package/src/matrix/actions/pins.ts +0 -64
  935. package/src/matrix/actions/polls.test.ts +0 -71
  936. package/src/matrix/actions/polls.ts +0 -109
  937. package/src/matrix/actions/profile.test.ts +0 -109
  938. package/src/matrix/actions/profile.ts +0 -37
  939. package/src/matrix/actions/reactions.test.ts +0 -135
  940. package/src/matrix/actions/reactions.ts +0 -59
  941. package/src/matrix/actions/room.test.ts +0 -79
  942. package/src/matrix/actions/room.ts +0 -71
  943. package/src/matrix/actions/summary.test.ts +0 -87
  944. package/src/matrix/actions/summary.ts +0 -88
  945. package/src/matrix/actions/types.ts +0 -82
  946. package/src/matrix/actions/verification.test.ts +0 -105
  947. package/src/matrix/actions/verification.ts +0 -237
  948. package/src/matrix/actions.ts +0 -37
  949. package/src/matrix/active-client.ts +0 -26
  950. package/src/matrix/async-lock.ts +0 -18
  951. package/src/matrix/backup-health.ts +0 -115
  952. package/src/matrix/client/config-runtime-api.ts +0 -14
  953. package/src/matrix/client/config-secret-input.runtime.ts +0 -1
  954. package/src/matrix/client/config.ts +0 -982
  955. package/src/matrix/client/create-client.test.ts +0 -115
  956. package/src/matrix/client/create-client.ts +0 -101
  957. package/src/matrix/client/env-auth.ts +0 -6
  958. package/src/matrix/client/file-sync-store.test.ts +0 -265
  959. package/src/matrix/client/file-sync-store.ts +0 -289
  960. package/src/matrix/client/logging.ts +0 -123
  961. package/src/matrix/client/migration-snapshot.runtime.ts +0 -1
  962. package/src/matrix/client/private-network-host.ts +0 -56
  963. package/src/matrix/client/runtime.ts +0 -4
  964. package/src/matrix/client/shared.test.ts +0 -344
  965. package/src/matrix/client/shared.ts +0 -306
  966. package/src/matrix/client/storage.test.ts +0 -634
  967. package/src/matrix/client/storage.ts +0 -544
  968. package/src/matrix/client/types.ts +0 -50
  969. package/src/matrix/client-bootstrap.test.ts +0 -84
  970. package/src/matrix/client-bootstrap.ts +0 -164
  971. package/src/matrix/client-resolver.test-helpers.ts +0 -147
  972. package/src/matrix/client.test.ts +0 -1521
  973. package/src/matrix/client.ts +0 -23
  974. package/src/matrix/config-paths.ts +0 -31
  975. package/src/matrix/config-update.test.ts +0 -237
  976. package/src/matrix/config-update.ts +0 -291
  977. package/src/matrix/credentials-read.ts +0 -206
  978. package/src/matrix/credentials-write.runtime.ts +0 -26
  979. package/src/matrix/credentials.test.ts +0 -501
  980. package/src/matrix/credentials.ts +0 -95
  981. package/src/matrix/deps.test.ts +0 -74
  982. package/src/matrix/deps.ts +0 -225
  983. package/src/matrix/device-health.test.ts +0 -45
  984. package/src/matrix/device-health.ts +0 -31
  985. package/src/matrix/direct-management.test.ts +0 -350
  986. package/src/matrix/direct-management.ts +0 -347
  987. package/src/matrix/direct-room.test.ts +0 -61
  988. package/src/matrix/direct-room.ts +0 -128
  989. package/src/matrix/draft-stream.test.ts +0 -406
  990. package/src/matrix/draft-stream.ts +0 -216
  991. package/src/matrix/encryption-guidance.ts +0 -27
  992. package/src/matrix/errors.ts +0 -21
  993. package/src/matrix/format.test.ts +0 -340
  994. package/src/matrix/format.ts +0 -428
  995. package/src/matrix/legacy-crypto-inspector.ts +0 -95
  996. package/src/matrix/media-errors.ts +0 -20
  997. package/src/matrix/media-text.ts +0 -169
  998. package/src/matrix/monitor/access-state.test.ts +0 -45
  999. package/src/matrix/monitor/access-state.ts +0 -77
  1000. package/src/matrix/monitor/ack-config.test.ts +0 -57
  1001. package/src/matrix/monitor/ack-config.ts +0 -26
  1002. package/src/matrix/monitor/allowlist.test.ts +0 -45
  1003. package/src/matrix/monitor/allowlist.ts +0 -94
  1004. package/src/matrix/monitor/auto-join.test.ts +0 -203
  1005. package/src/matrix/monitor/auto-join.ts +0 -86
  1006. package/src/matrix/monitor/config.test.ts +0 -197
  1007. package/src/matrix/monitor/config.ts +0 -303
  1008. package/src/matrix/monitor/context-summary.ts +0 -43
  1009. package/src/matrix/monitor/direct.test.ts +0 -529
  1010. package/src/matrix/monitor/direct.ts +0 -270
  1011. package/src/matrix/monitor/events.test.ts +0 -1524
  1012. package/src/matrix/monitor/events.ts +0 -213
  1013. package/src/matrix/monitor/handler.body-for-agent.test.ts +0 -396
  1014. package/src/matrix/monitor/handler.group-history.test.ts +0 -648
  1015. package/src/matrix/monitor/handler.media-failure.test.ts +0 -267
  1016. package/src/matrix/monitor/handler.test-helpers.ts +0 -308
  1017. package/src/matrix/monitor/handler.test.ts +0 -2952
  1018. package/src/matrix/monitor/handler.thread-root-media.test.ts +0 -82
  1019. package/src/matrix/monitor/handler.ts +0 -1679
  1020. package/src/matrix/monitor/inbound-dedupe.test.ts +0 -146
  1021. package/src/matrix/monitor/inbound-dedupe.ts +0 -267
  1022. package/src/matrix/monitor/index.test.ts +0 -920
  1023. package/src/matrix/monitor/index.ts +0 -434
  1024. package/src/matrix/monitor/legacy-crypto-restore.test.ts +0 -206
  1025. package/src/matrix/monitor/legacy-crypto-restore.ts +0 -139
  1026. package/src/matrix/monitor/location.ts +0 -100
  1027. package/src/matrix/monitor/media.test.ts +0 -159
  1028. package/src/matrix/monitor/media.ts +0 -119
  1029. package/src/matrix/monitor/mentions.test.ts +0 -289
  1030. package/src/matrix/monitor/mentions.ts +0 -177
  1031. package/src/matrix/monitor/reaction-events.test.ts +0 -326
  1032. package/src/matrix/monitor/reaction-events.ts +0 -187
  1033. package/src/matrix/monitor/recent-invite.test.ts +0 -92
  1034. package/src/matrix/monitor/recent-invite.ts +0 -30
  1035. package/src/matrix/monitor/replies.test.ts +0 -265
  1036. package/src/matrix/monitor/replies.ts +0 -136
  1037. package/src/matrix/monitor/reply-context.test.ts +0 -276
  1038. package/src/matrix/monitor/reply-context.ts +0 -92
  1039. package/src/matrix/monitor/room-history.test.ts +0 -258
  1040. package/src/matrix/monitor/room-history.ts +0 -301
  1041. package/src/matrix/monitor/room-info.test.ts +0 -201
  1042. package/src/matrix/monitor/room-info.ts +0 -126
  1043. package/src/matrix/monitor/rooms.test.ts +0 -121
  1044. package/src/matrix/monitor/rooms.ts +0 -52
  1045. package/src/matrix/monitor/route.test.ts +0 -255
  1046. package/src/matrix/monitor/route.ts +0 -178
  1047. package/src/matrix/monitor/runtime-api.ts +0 -31
  1048. package/src/matrix/monitor/startup-verification.test.ts +0 -294
  1049. package/src/matrix/monitor/startup-verification.ts +0 -237
  1050. package/src/matrix/monitor/startup.test.ts +0 -257
  1051. package/src/matrix/monitor/startup.ts +0 -218
  1052. package/src/matrix/monitor/status.ts +0 -111
  1053. package/src/matrix/monitor/sync-lifecycle.test.ts +0 -224
  1054. package/src/matrix/monitor/sync-lifecycle.ts +0 -91
  1055. package/src/matrix/monitor/task-runner.ts +0 -38
  1056. package/src/matrix/monitor/thread-context.test.ts +0 -149
  1057. package/src/matrix/monitor/thread-context.ts +0 -108
  1058. package/src/matrix/monitor/threads.test.ts +0 -68
  1059. package/src/matrix/monitor/threads.ts +0 -85
  1060. package/src/matrix/monitor/types.ts +0 -30
  1061. package/src/matrix/monitor/verification-events.ts +0 -627
  1062. package/src/matrix/monitor/verification-utils.test.ts +0 -47
  1063. package/src/matrix/monitor/verification-utils.ts +0 -46
  1064. package/src/matrix/outbound-media-runtime.ts +0 -1
  1065. package/src/matrix/poll-summary.ts +0 -110
  1066. package/src/matrix/poll-types.test.ts +0 -205
  1067. package/src/matrix/poll-types.ts +0 -433
  1068. package/src/matrix/probe.runtime.ts +0 -4
  1069. package/src/matrix/probe.test.ts +0 -154
  1070. package/src/matrix/probe.ts +0 -96
  1071. package/src/matrix/profile.test.ts +0 -154
  1072. package/src/matrix/profile.ts +0 -184
  1073. package/src/matrix/reaction-common.test.ts +0 -96
  1074. package/src/matrix/reaction-common.ts +0 -147
  1075. package/src/matrix/sdk/crypto-bootstrap.test.ts +0 -505
  1076. package/src/matrix/sdk/crypto-bootstrap.ts +0 -341
  1077. package/src/matrix/sdk/crypto-facade.test.ts +0 -197
  1078. package/src/matrix/sdk/crypto-facade.ts +0 -207
  1079. package/src/matrix/sdk/crypto-node.runtime.test.ts +0 -27
  1080. package/src/matrix/sdk/crypto-node.runtime.ts +0 -9
  1081. package/src/matrix/sdk/crypto-runtime.ts +0 -11
  1082. package/src/matrix/sdk/decrypt-bridge.ts +0 -356
  1083. package/src/matrix/sdk/event-helpers.test.ts +0 -60
  1084. package/src/matrix/sdk/event-helpers.ts +0 -71
  1085. package/src/matrix/sdk/http-client.test.ts +0 -134
  1086. package/src/matrix/sdk/http-client.ts +0 -87
  1087. package/src/matrix/sdk/idb-persistence-lock.ts +0 -51
  1088. package/src/matrix/sdk/idb-persistence.lock-order.test.ts +0 -108
  1089. package/src/matrix/sdk/idb-persistence.test-helpers.ts +0 -88
  1090. package/src/matrix/sdk/idb-persistence.test.ts +0 -149
  1091. package/src/matrix/sdk/idb-persistence.ts +0 -283
  1092. package/src/matrix/sdk/logger.test.ts +0 -25
  1093. package/src/matrix/sdk/logger.ts +0 -108
  1094. package/src/matrix/sdk/read-response-with-limit.ts +0 -19
  1095. package/src/matrix/sdk/recovery-key-store.test.ts +0 -385
  1096. package/src/matrix/sdk/recovery-key-store.ts +0 -430
  1097. package/src/matrix/sdk/transport.test.ts +0 -161
  1098. package/src/matrix/sdk/transport.ts +0 -344
  1099. package/src/matrix/sdk/types.ts +0 -236
  1100. package/src/matrix/sdk/verification-manager.test.ts +0 -509
  1101. package/src/matrix/sdk/verification-manager.ts +0 -694
  1102. package/src/matrix/sdk/verification-status.ts +0 -23
  1103. package/src/matrix/sdk.test.ts +0 -2568
  1104. package/src/matrix/sdk.ts +0 -1789
  1105. package/src/matrix/send/client.test.ts +0 -174
  1106. package/src/matrix/send/client.ts +0 -90
  1107. package/src/matrix/send/formatting.ts +0 -189
  1108. package/src/matrix/send/media.ts +0 -244
  1109. package/src/matrix/send/targets.test.ts +0 -254
  1110. package/src/matrix/send/targets.ts +0 -104
  1111. package/src/matrix/send/types.ts +0 -134
  1112. package/src/matrix/send.test.ts +0 -958
  1113. package/src/matrix/send.ts +0 -609
  1114. package/src/matrix/session-store-metadata.ts +0 -108
  1115. package/src/matrix/startup-abort.ts +0 -44
  1116. package/src/matrix/sync-state.ts +0 -27
  1117. package/src/matrix/target-ids.ts +0 -102
  1118. package/src/matrix/thread-bindings-shared.ts +0 -201
  1119. package/src/matrix/thread-bindings.test.ts +0 -673
  1120. package/src/matrix/thread-bindings.ts +0 -577
  1121. package/src/matrix-migration.runtime.ts +0 -9
  1122. package/src/migration-config.test.ts +0 -228
  1123. package/src/migration-config.ts +0 -243
  1124. package/src/migration-snapshot-backup.ts +0 -117
  1125. package/src/migration-snapshot.test.ts +0 -184
  1126. package/src/migration-snapshot.ts +0 -55
  1127. package/src/onboarding.resolve.test.ts +0 -55
  1128. package/src/onboarding.test-harness.ts +0 -158
  1129. package/src/onboarding.test.ts +0 -665
  1130. package/src/onboarding.ts +0 -773
  1131. package/src/outbound.test.ts +0 -173
  1132. package/src/outbound.ts +0 -78
  1133. package/src/plugin-entry.runtime.js +0 -159
  1134. package/src/plugin-entry.runtime.test.ts +0 -108
  1135. package/src/plugin-entry.runtime.ts +0 -68
  1136. package/src/profile-update.ts +0 -68
  1137. package/src/record-shared.ts +0 -3
  1138. package/src/resolve-targets.test.ts +0 -178
  1139. package/src/resolve-targets.ts +0 -175
  1140. package/src/resolver.ts +0 -21
  1141. package/src/runtime-api.ts +0 -144
  1142. package/src/runtime.ts +0 -7
  1143. package/src/secret-contract.ts +0 -174
  1144. package/src/session-route.test.ts +0 -315
  1145. package/src/session-route.ts +0 -113
  1146. package/src/setup-bootstrap.ts +0 -94
  1147. package/src/setup-config.ts +0 -222
  1148. package/src/setup-contract.ts +0 -89
  1149. package/src/setup-core.test.ts +0 -326
  1150. package/src/setup-core.ts +0 -50
  1151. package/src/setup-surface.ts +0 -4
  1152. package/src/startup-maintenance.test.ts +0 -227
  1153. package/src/startup-maintenance.ts +0 -114
  1154. package/src/storage-paths.ts +0 -92
  1155. package/src/test-helpers.ts +0 -42
  1156. package/src/test-mocks.ts +0 -55
  1157. package/src/test-runtime.ts +0 -72
  1158. package/src/test-support/monitor-route-test-support.ts +0 -8
  1159. package/src/tool-actions.runtime.ts +0 -1
  1160. package/src/tool-actions.test.ts +0 -422
  1161. package/src/tool-actions.ts +0 -498
  1162. package/src/types.ts +0 -230
  1163. package/test-api.ts +0 -2
  1164. package/thread-bindings-runtime.ts +0 -4
  1165. package/tsconfig.json +0 -16
@@ -0,0 +1,3101 @@
1
+ import {
2
+ ToolAuthorizationError,
3
+ createActionGate,
4
+ readNumberParam,
5
+ readStringParam
6
+ } from "./chunk-L5OUVMHK.js";
7
+ import {
8
+ resolveDefaultMatrixAccountId,
9
+ resolveMatrixAccount
10
+ } from "./chunk-LO4F6E3N.js";
11
+ import {
12
+ requiresExplicitMatrixDefaultAccount
13
+ } from "./chunk-UU5PSBSI.js";
14
+ import {
15
+ __export,
16
+ init_shims
17
+ } from "./chunk-7FLQSTPG.js";
18
+
19
+ // src/actions.ts
20
+ init_shims();
21
+
22
+ // ../../node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs
23
+ init_shims();
24
+
25
+ // ../../node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs
26
+ init_shims();
27
+
28
+ // ../../node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs
29
+ var value_exports = {};
30
+ __export(value_exports, {
31
+ HasPropertyKey: () => HasPropertyKey,
32
+ IsArray: () => IsArray,
33
+ IsAsyncIterator: () => IsAsyncIterator,
34
+ IsBigInt: () => IsBigInt,
35
+ IsBoolean: () => IsBoolean,
36
+ IsDate: () => IsDate,
37
+ IsFunction: () => IsFunction,
38
+ IsIterator: () => IsIterator,
39
+ IsNull: () => IsNull,
40
+ IsNumber: () => IsNumber,
41
+ IsObject: () => IsObject,
42
+ IsRegExp: () => IsRegExp,
43
+ IsString: () => IsString,
44
+ IsSymbol: () => IsSymbol,
45
+ IsUint8Array: () => IsUint8Array,
46
+ IsUndefined: () => IsUndefined
47
+ });
48
+ init_shims();
49
+ function HasPropertyKey(value, key) {
50
+ return key in value;
51
+ }
52
+ function IsAsyncIterator(value) {
53
+ return IsObject(value) && !IsArray(value) && !IsUint8Array(value) && Symbol.asyncIterator in value;
54
+ }
55
+ function IsArray(value) {
56
+ return Array.isArray(value);
57
+ }
58
+ function IsBigInt(value) {
59
+ return typeof value === "bigint";
60
+ }
61
+ function IsBoolean(value) {
62
+ return typeof value === "boolean";
63
+ }
64
+ function IsDate(value) {
65
+ return value instanceof globalThis.Date;
66
+ }
67
+ function IsFunction(value) {
68
+ return typeof value === "function";
69
+ }
70
+ function IsIterator(value) {
71
+ return IsObject(value) && !IsArray(value) && !IsUint8Array(value) && Symbol.iterator in value;
72
+ }
73
+ function IsNull(value) {
74
+ return value === null;
75
+ }
76
+ function IsNumber(value) {
77
+ return typeof value === "number";
78
+ }
79
+ function IsObject(value) {
80
+ return typeof value === "object" && value !== null;
81
+ }
82
+ function IsRegExp(value) {
83
+ return value instanceof globalThis.RegExp;
84
+ }
85
+ function IsString(value) {
86
+ return typeof value === "string";
87
+ }
88
+ function IsSymbol(value) {
89
+ return typeof value === "symbol";
90
+ }
91
+ function IsUint8Array(value) {
92
+ return value instanceof globalThis.Uint8Array;
93
+ }
94
+ function IsUndefined(value) {
95
+ return value === void 0;
96
+ }
97
+
98
+ // ../../node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs
99
+ function ArrayType(value) {
100
+ return value.map((value2) => Visit(value2));
101
+ }
102
+ function DateType(value) {
103
+ return new Date(value.getTime());
104
+ }
105
+ function Uint8ArrayType(value) {
106
+ return new Uint8Array(value);
107
+ }
108
+ function RegExpType(value) {
109
+ return new RegExp(value.source, value.flags);
110
+ }
111
+ function ObjectType(value) {
112
+ const result = {};
113
+ for (const key of Object.getOwnPropertyNames(value)) {
114
+ result[key] = Visit(value[key]);
115
+ }
116
+ for (const key of Object.getOwnPropertySymbols(value)) {
117
+ result[key] = Visit(value[key]);
118
+ }
119
+ return result;
120
+ }
121
+ function Visit(value) {
122
+ return IsArray(value) ? ArrayType(value) : IsDate(value) ? DateType(value) : IsUint8Array(value) ? Uint8ArrayType(value) : IsRegExp(value) ? RegExpType(value) : IsObject(value) ? ObjectType(value) : value;
123
+ }
124
+ function Clone(value) {
125
+ return Visit(value);
126
+ }
127
+
128
+ // ../../node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs
129
+ function CloneType(schema, options) {
130
+ return options === void 0 ? Clone(schema) : Clone({ ...options, ...schema });
131
+ }
132
+
133
+ // ../../node_modules/@sinclair/typebox/build/esm/type/create/type.mjs
134
+ init_shims();
135
+
136
+ // ../../node_modules/@sinclair/typebox/build/esm/system/policy.mjs
137
+ init_shims();
138
+
139
+ // ../../node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs
140
+ init_shims();
141
+ function IsObject2(value) {
142
+ return value !== null && typeof value === "object";
143
+ }
144
+ function IsArray2(value) {
145
+ return globalThis.Array.isArray(value) && !globalThis.ArrayBuffer.isView(value);
146
+ }
147
+ function IsUndefined2(value) {
148
+ return value === void 0;
149
+ }
150
+ function IsNumber2(value) {
151
+ return typeof value === "number";
152
+ }
153
+
154
+ // ../../node_modules/@sinclair/typebox/build/esm/system/policy.mjs
155
+ var TypeSystemPolicy;
156
+ (function(TypeSystemPolicy2) {
157
+ TypeSystemPolicy2.InstanceMode = "default";
158
+ TypeSystemPolicy2.ExactOptionalPropertyTypes = false;
159
+ TypeSystemPolicy2.AllowArrayObject = false;
160
+ TypeSystemPolicy2.AllowNaN = false;
161
+ TypeSystemPolicy2.AllowNullVoid = false;
162
+ function IsExactOptionalProperty(value, key) {
163
+ return TypeSystemPolicy2.ExactOptionalPropertyTypes ? key in value : value[key] !== void 0;
164
+ }
165
+ TypeSystemPolicy2.IsExactOptionalProperty = IsExactOptionalProperty;
166
+ function IsObjectLike(value) {
167
+ const isObject = IsObject2(value);
168
+ return TypeSystemPolicy2.AllowArrayObject ? isObject : isObject && !IsArray2(value);
169
+ }
170
+ TypeSystemPolicy2.IsObjectLike = IsObjectLike;
171
+ function IsRecordLike(value) {
172
+ return IsObjectLike(value) && !(value instanceof Date) && !(value instanceof Uint8Array);
173
+ }
174
+ TypeSystemPolicy2.IsRecordLike = IsRecordLike;
175
+ function IsNumberLike(value) {
176
+ return TypeSystemPolicy2.AllowNaN ? IsNumber2(value) : Number.isFinite(value);
177
+ }
178
+ TypeSystemPolicy2.IsNumberLike = IsNumberLike;
179
+ function IsVoidLike(value) {
180
+ const isUndefined = IsUndefined2(value);
181
+ return TypeSystemPolicy2.AllowNullVoid ? isUndefined || value === null : isUndefined;
182
+ }
183
+ TypeSystemPolicy2.IsVoidLike = IsVoidLike;
184
+ })(TypeSystemPolicy || (TypeSystemPolicy = {}));
185
+
186
+ // ../../node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs
187
+ init_shims();
188
+ function ImmutableArray(value) {
189
+ return globalThis.Object.freeze(value).map((value2) => Immutable(value2));
190
+ }
191
+ function ImmutableDate(value) {
192
+ return value;
193
+ }
194
+ function ImmutableUint8Array(value) {
195
+ return value;
196
+ }
197
+ function ImmutableRegExp(value) {
198
+ return value;
199
+ }
200
+ function ImmutableObject(value) {
201
+ const result = {};
202
+ for (const key of Object.getOwnPropertyNames(value)) {
203
+ result[key] = Immutable(value[key]);
204
+ }
205
+ for (const key of Object.getOwnPropertySymbols(value)) {
206
+ result[key] = Immutable(value[key]);
207
+ }
208
+ return globalThis.Object.freeze(result);
209
+ }
210
+ function Immutable(value) {
211
+ return IsArray(value) ? ImmutableArray(value) : IsDate(value) ? ImmutableDate(value) : IsUint8Array(value) ? ImmutableUint8Array(value) : IsRegExp(value) ? ImmutableRegExp(value) : IsObject(value) ? ImmutableObject(value) : value;
212
+ }
213
+
214
+ // ../../node_modules/@sinclair/typebox/build/esm/type/create/type.mjs
215
+ function CreateType(schema, options) {
216
+ const result = options !== void 0 ? { ...options, ...schema } : schema;
217
+ switch (TypeSystemPolicy.InstanceMode) {
218
+ case "freeze":
219
+ return Immutable(result);
220
+ case "clone":
221
+ return Clone(result);
222
+ default:
223
+ return result;
224
+ }
225
+ }
226
+
227
+ // ../../node_modules/@sinclair/typebox/build/esm/type/error/error.mjs
228
+ init_shims();
229
+ var TypeBoxError = class extends Error {
230
+ constructor(message) {
231
+ super(message);
232
+ }
233
+ };
234
+
235
+ // ../../node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs
236
+ init_shims();
237
+
238
+ // ../../node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs
239
+ init_shims();
240
+
241
+ // ../../node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs
242
+ init_shims();
243
+ var TransformKind = /* @__PURE__ */ Symbol.for("TypeBox.Transform");
244
+ var ReadonlyKind = /* @__PURE__ */ Symbol.for("TypeBox.Readonly");
245
+ var OptionalKind = /* @__PURE__ */ Symbol.for("TypeBox.Optional");
246
+ var Hint = /* @__PURE__ */ Symbol.for("TypeBox.Hint");
247
+ var Kind = /* @__PURE__ */ Symbol.for("TypeBox.Kind");
248
+
249
+ // ../../node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs
250
+ function IsReadonly(value) {
251
+ return IsObject(value) && value[ReadonlyKind] === "Readonly";
252
+ }
253
+ function IsOptional(value) {
254
+ return IsObject(value) && value[OptionalKind] === "Optional";
255
+ }
256
+ function IsAny(value) {
257
+ return IsKindOf(value, "Any");
258
+ }
259
+ function IsArgument(value) {
260
+ return IsKindOf(value, "Argument");
261
+ }
262
+ function IsArray3(value) {
263
+ return IsKindOf(value, "Array");
264
+ }
265
+ function IsAsyncIterator2(value) {
266
+ return IsKindOf(value, "AsyncIterator");
267
+ }
268
+ function IsBigInt2(value) {
269
+ return IsKindOf(value, "BigInt");
270
+ }
271
+ function IsBoolean2(value) {
272
+ return IsKindOf(value, "Boolean");
273
+ }
274
+ function IsComputed(value) {
275
+ return IsKindOf(value, "Computed");
276
+ }
277
+ function IsConstructor(value) {
278
+ return IsKindOf(value, "Constructor");
279
+ }
280
+ function IsDate2(value) {
281
+ return IsKindOf(value, "Date");
282
+ }
283
+ function IsFunction2(value) {
284
+ return IsKindOf(value, "Function");
285
+ }
286
+ function IsInteger(value) {
287
+ return IsKindOf(value, "Integer");
288
+ }
289
+ function IsIntersect(value) {
290
+ return IsKindOf(value, "Intersect");
291
+ }
292
+ function IsIterator2(value) {
293
+ return IsKindOf(value, "Iterator");
294
+ }
295
+ function IsKindOf(value, kind) {
296
+ return IsObject(value) && Kind in value && value[Kind] === kind;
297
+ }
298
+ function IsLiteralValue(value) {
299
+ return IsBoolean(value) || IsNumber(value) || IsString(value);
300
+ }
301
+ function IsLiteral(value) {
302
+ return IsKindOf(value, "Literal");
303
+ }
304
+ function IsMappedKey(value) {
305
+ return IsKindOf(value, "MappedKey");
306
+ }
307
+ function IsMappedResult(value) {
308
+ return IsKindOf(value, "MappedResult");
309
+ }
310
+ function IsNever(value) {
311
+ return IsKindOf(value, "Never");
312
+ }
313
+ function IsNot(value) {
314
+ return IsKindOf(value, "Not");
315
+ }
316
+ function IsNull2(value) {
317
+ return IsKindOf(value, "Null");
318
+ }
319
+ function IsNumber3(value) {
320
+ return IsKindOf(value, "Number");
321
+ }
322
+ function IsObject3(value) {
323
+ return IsKindOf(value, "Object");
324
+ }
325
+ function IsPromise(value) {
326
+ return IsKindOf(value, "Promise");
327
+ }
328
+ function IsRecord(value) {
329
+ return IsKindOf(value, "Record");
330
+ }
331
+ function IsRef(value) {
332
+ return IsKindOf(value, "Ref");
333
+ }
334
+ function IsRegExp2(value) {
335
+ return IsKindOf(value, "RegExp");
336
+ }
337
+ function IsString2(value) {
338
+ return IsKindOf(value, "String");
339
+ }
340
+ function IsSymbol2(value) {
341
+ return IsKindOf(value, "Symbol");
342
+ }
343
+ function IsTemplateLiteral(value) {
344
+ return IsKindOf(value, "TemplateLiteral");
345
+ }
346
+ function IsThis(value) {
347
+ return IsKindOf(value, "This");
348
+ }
349
+ function IsTransform(value) {
350
+ return IsObject(value) && TransformKind in value;
351
+ }
352
+ function IsTuple(value) {
353
+ return IsKindOf(value, "Tuple");
354
+ }
355
+ function IsUndefined3(value) {
356
+ return IsKindOf(value, "Undefined");
357
+ }
358
+ function IsUnion(value) {
359
+ return IsKindOf(value, "Union");
360
+ }
361
+ function IsUint8Array2(value) {
362
+ return IsKindOf(value, "Uint8Array");
363
+ }
364
+ function IsUnknown(value) {
365
+ return IsKindOf(value, "Unknown");
366
+ }
367
+ function IsUnsafe(value) {
368
+ return IsKindOf(value, "Unsafe");
369
+ }
370
+ function IsVoid(value) {
371
+ return IsKindOf(value, "Void");
372
+ }
373
+ function IsKind(value) {
374
+ return IsObject(value) && Kind in value && IsString(value[Kind]);
375
+ }
376
+ function IsSchema(value) {
377
+ return IsAny(value) || IsArgument(value) || IsArray3(value) || IsBoolean2(value) || IsBigInt2(value) || IsAsyncIterator2(value) || IsComputed(value) || IsConstructor(value) || IsDate2(value) || IsFunction2(value) || IsInteger(value) || IsIntersect(value) || IsIterator2(value) || IsLiteral(value) || IsMappedKey(value) || IsMappedResult(value) || IsNever(value) || IsNot(value) || IsNull2(value) || IsNumber3(value) || IsObject3(value) || IsPromise(value) || IsRecord(value) || IsRef(value) || IsRegExp2(value) || IsString2(value) || IsSymbol2(value) || IsTemplateLiteral(value) || IsThis(value) || IsTuple(value) || IsUndefined3(value) || IsUnion(value) || IsUint8Array2(value) || IsUnknown(value) || IsUnsafe(value) || IsVoid(value) || IsKind(value);
378
+ }
379
+
380
+ // ../../node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs
381
+ var type_exports = {};
382
+ __export(type_exports, {
383
+ IsAny: () => IsAny2,
384
+ IsArgument: () => IsArgument2,
385
+ IsArray: () => IsArray4,
386
+ IsAsyncIterator: () => IsAsyncIterator3,
387
+ IsBigInt: () => IsBigInt3,
388
+ IsBoolean: () => IsBoolean3,
389
+ IsComputed: () => IsComputed2,
390
+ IsConstructor: () => IsConstructor2,
391
+ IsDate: () => IsDate3,
392
+ IsFunction: () => IsFunction3,
393
+ IsImport: () => IsImport,
394
+ IsInteger: () => IsInteger2,
395
+ IsIntersect: () => IsIntersect2,
396
+ IsIterator: () => IsIterator3,
397
+ IsKind: () => IsKind2,
398
+ IsKindOf: () => IsKindOf2,
399
+ IsLiteral: () => IsLiteral2,
400
+ IsLiteralBoolean: () => IsLiteralBoolean,
401
+ IsLiteralNumber: () => IsLiteralNumber,
402
+ IsLiteralString: () => IsLiteralString,
403
+ IsLiteralValue: () => IsLiteralValue2,
404
+ IsMappedKey: () => IsMappedKey2,
405
+ IsMappedResult: () => IsMappedResult2,
406
+ IsNever: () => IsNever2,
407
+ IsNot: () => IsNot2,
408
+ IsNull: () => IsNull3,
409
+ IsNumber: () => IsNumber4,
410
+ IsObject: () => IsObject4,
411
+ IsOptional: () => IsOptional2,
412
+ IsPromise: () => IsPromise2,
413
+ IsProperties: () => IsProperties,
414
+ IsReadonly: () => IsReadonly2,
415
+ IsRecord: () => IsRecord2,
416
+ IsRecursive: () => IsRecursive,
417
+ IsRef: () => IsRef2,
418
+ IsRegExp: () => IsRegExp3,
419
+ IsSchema: () => IsSchema2,
420
+ IsString: () => IsString3,
421
+ IsSymbol: () => IsSymbol3,
422
+ IsTemplateLiteral: () => IsTemplateLiteral2,
423
+ IsThis: () => IsThis2,
424
+ IsTransform: () => IsTransform2,
425
+ IsTuple: () => IsTuple2,
426
+ IsUint8Array: () => IsUint8Array3,
427
+ IsUndefined: () => IsUndefined4,
428
+ IsUnion: () => IsUnion2,
429
+ IsUnionLiteral: () => IsUnionLiteral,
430
+ IsUnknown: () => IsUnknown2,
431
+ IsUnsafe: () => IsUnsafe2,
432
+ IsVoid: () => IsVoid2,
433
+ TypeGuardUnknownTypeError: () => TypeGuardUnknownTypeError
434
+ });
435
+ init_shims();
436
+ var TypeGuardUnknownTypeError = class extends TypeBoxError {
437
+ };
438
+ var KnownTypes = [
439
+ "Argument",
440
+ "Any",
441
+ "Array",
442
+ "AsyncIterator",
443
+ "BigInt",
444
+ "Boolean",
445
+ "Computed",
446
+ "Constructor",
447
+ "Date",
448
+ "Enum",
449
+ "Function",
450
+ "Integer",
451
+ "Intersect",
452
+ "Iterator",
453
+ "Literal",
454
+ "MappedKey",
455
+ "MappedResult",
456
+ "Not",
457
+ "Null",
458
+ "Number",
459
+ "Object",
460
+ "Promise",
461
+ "Record",
462
+ "Ref",
463
+ "RegExp",
464
+ "String",
465
+ "Symbol",
466
+ "TemplateLiteral",
467
+ "This",
468
+ "Tuple",
469
+ "Undefined",
470
+ "Union",
471
+ "Uint8Array",
472
+ "Unknown",
473
+ "Void"
474
+ ];
475
+ function IsPattern(value) {
476
+ try {
477
+ new RegExp(value);
478
+ return true;
479
+ } catch {
480
+ return false;
481
+ }
482
+ }
483
+ function IsControlCharacterFree(value) {
484
+ if (!IsString(value))
485
+ return false;
486
+ for (let i = 0; i < value.length; i++) {
487
+ const code = value.charCodeAt(i);
488
+ if (code >= 7 && code <= 13 || code === 27 || code === 127) {
489
+ return false;
490
+ }
491
+ }
492
+ return true;
493
+ }
494
+ function IsAdditionalProperties(value) {
495
+ return IsOptionalBoolean(value) || IsSchema2(value);
496
+ }
497
+ function IsOptionalBigInt(value) {
498
+ return IsUndefined(value) || IsBigInt(value);
499
+ }
500
+ function IsOptionalNumber(value) {
501
+ return IsUndefined(value) || IsNumber(value);
502
+ }
503
+ function IsOptionalBoolean(value) {
504
+ return IsUndefined(value) || IsBoolean(value);
505
+ }
506
+ function IsOptionalString(value) {
507
+ return IsUndefined(value) || IsString(value);
508
+ }
509
+ function IsOptionalPattern(value) {
510
+ return IsUndefined(value) || IsString(value) && IsControlCharacterFree(value) && IsPattern(value);
511
+ }
512
+ function IsOptionalFormat(value) {
513
+ return IsUndefined(value) || IsString(value) && IsControlCharacterFree(value);
514
+ }
515
+ function IsOptionalSchema(value) {
516
+ return IsUndefined(value) || IsSchema2(value);
517
+ }
518
+ function IsReadonly2(value) {
519
+ return IsObject(value) && value[ReadonlyKind] === "Readonly";
520
+ }
521
+ function IsOptional2(value) {
522
+ return IsObject(value) && value[OptionalKind] === "Optional";
523
+ }
524
+ function IsAny2(value) {
525
+ return IsKindOf2(value, "Any") && IsOptionalString(value.$id);
526
+ }
527
+ function IsArgument2(value) {
528
+ return IsKindOf2(value, "Argument") && IsNumber(value.index);
529
+ }
530
+ function IsArray4(value) {
531
+ return IsKindOf2(value, "Array") && value.type === "array" && IsOptionalString(value.$id) && IsSchema2(value.items) && IsOptionalNumber(value.minItems) && IsOptionalNumber(value.maxItems) && IsOptionalBoolean(value.uniqueItems) && IsOptionalSchema(value.contains) && IsOptionalNumber(value.minContains) && IsOptionalNumber(value.maxContains);
532
+ }
533
+ function IsAsyncIterator3(value) {
534
+ return IsKindOf2(value, "AsyncIterator") && value.type === "AsyncIterator" && IsOptionalString(value.$id) && IsSchema2(value.items);
535
+ }
536
+ function IsBigInt3(value) {
537
+ return IsKindOf2(value, "BigInt") && value.type === "bigint" && IsOptionalString(value.$id) && IsOptionalBigInt(value.exclusiveMaximum) && IsOptionalBigInt(value.exclusiveMinimum) && IsOptionalBigInt(value.maximum) && IsOptionalBigInt(value.minimum) && IsOptionalBigInt(value.multipleOf);
538
+ }
539
+ function IsBoolean3(value) {
540
+ return IsKindOf2(value, "Boolean") && value.type === "boolean" && IsOptionalString(value.$id);
541
+ }
542
+ function IsComputed2(value) {
543
+ return IsKindOf2(value, "Computed") && IsString(value.target) && IsArray(value.parameters) && value.parameters.every((schema) => IsSchema2(schema));
544
+ }
545
+ function IsConstructor2(value) {
546
+ return IsKindOf2(value, "Constructor") && value.type === "Constructor" && IsOptionalString(value.$id) && IsArray(value.parameters) && value.parameters.every((schema) => IsSchema2(schema)) && IsSchema2(value.returns);
547
+ }
548
+ function IsDate3(value) {
549
+ return IsKindOf2(value, "Date") && value.type === "Date" && IsOptionalString(value.$id) && IsOptionalNumber(value.exclusiveMaximumTimestamp) && IsOptionalNumber(value.exclusiveMinimumTimestamp) && IsOptionalNumber(value.maximumTimestamp) && IsOptionalNumber(value.minimumTimestamp) && IsOptionalNumber(value.multipleOfTimestamp);
550
+ }
551
+ function IsFunction3(value) {
552
+ return IsKindOf2(value, "Function") && value.type === "Function" && IsOptionalString(value.$id) && IsArray(value.parameters) && value.parameters.every((schema) => IsSchema2(schema)) && IsSchema2(value.returns);
553
+ }
554
+ function IsImport(value) {
555
+ return IsKindOf2(value, "Import") && HasPropertyKey(value, "$defs") && IsObject(value.$defs) && IsProperties(value.$defs) && HasPropertyKey(value, "$ref") && IsString(value.$ref) && value.$ref in value.$defs;
556
+ }
557
+ function IsInteger2(value) {
558
+ return IsKindOf2(value, "Integer") && value.type === "integer" && IsOptionalString(value.$id) && IsOptionalNumber(value.exclusiveMaximum) && IsOptionalNumber(value.exclusiveMinimum) && IsOptionalNumber(value.maximum) && IsOptionalNumber(value.minimum) && IsOptionalNumber(value.multipleOf);
559
+ }
560
+ function IsProperties(value) {
561
+ return IsObject(value) && Object.entries(value).every(([key, schema]) => IsControlCharacterFree(key) && IsSchema2(schema));
562
+ }
563
+ function IsIntersect2(value) {
564
+ return IsKindOf2(value, "Intersect") && (IsString(value.type) && value.type !== "object" ? false : true) && IsArray(value.allOf) && value.allOf.every((schema) => IsSchema2(schema) && !IsTransform2(schema)) && IsOptionalString(value.type) && (IsOptionalBoolean(value.unevaluatedProperties) || IsOptionalSchema(value.unevaluatedProperties)) && IsOptionalString(value.$id);
565
+ }
566
+ function IsIterator3(value) {
567
+ return IsKindOf2(value, "Iterator") && value.type === "Iterator" && IsOptionalString(value.$id) && IsSchema2(value.items);
568
+ }
569
+ function IsKindOf2(value, kind) {
570
+ return IsObject(value) && Kind in value && value[Kind] === kind;
571
+ }
572
+ function IsLiteralString(value) {
573
+ return IsLiteral2(value) && IsString(value.const);
574
+ }
575
+ function IsLiteralNumber(value) {
576
+ return IsLiteral2(value) && IsNumber(value.const);
577
+ }
578
+ function IsLiteralBoolean(value) {
579
+ return IsLiteral2(value) && IsBoolean(value.const);
580
+ }
581
+ function IsLiteral2(value) {
582
+ return IsKindOf2(value, "Literal") && IsOptionalString(value.$id) && IsLiteralValue2(value.const);
583
+ }
584
+ function IsLiteralValue2(value) {
585
+ return IsBoolean(value) || IsNumber(value) || IsString(value);
586
+ }
587
+ function IsMappedKey2(value) {
588
+ return IsKindOf2(value, "MappedKey") && IsArray(value.keys) && value.keys.every((key) => IsNumber(key) || IsString(key));
589
+ }
590
+ function IsMappedResult2(value) {
591
+ return IsKindOf2(value, "MappedResult") && IsProperties(value.properties);
592
+ }
593
+ function IsNever2(value) {
594
+ return IsKindOf2(value, "Never") && IsObject(value.not) && Object.getOwnPropertyNames(value.not).length === 0;
595
+ }
596
+ function IsNot2(value) {
597
+ return IsKindOf2(value, "Not") && IsSchema2(value.not);
598
+ }
599
+ function IsNull3(value) {
600
+ return IsKindOf2(value, "Null") && value.type === "null" && IsOptionalString(value.$id);
601
+ }
602
+ function IsNumber4(value) {
603
+ return IsKindOf2(value, "Number") && value.type === "number" && IsOptionalString(value.$id) && IsOptionalNumber(value.exclusiveMaximum) && IsOptionalNumber(value.exclusiveMinimum) && IsOptionalNumber(value.maximum) && IsOptionalNumber(value.minimum) && IsOptionalNumber(value.multipleOf);
604
+ }
605
+ function IsObject4(value) {
606
+ return IsKindOf2(value, "Object") && value.type === "object" && IsOptionalString(value.$id) && IsProperties(value.properties) && IsAdditionalProperties(value.additionalProperties) && IsOptionalNumber(value.minProperties) && IsOptionalNumber(value.maxProperties);
607
+ }
608
+ function IsPromise2(value) {
609
+ return IsKindOf2(value, "Promise") && value.type === "Promise" && IsOptionalString(value.$id) && IsSchema2(value.item);
610
+ }
611
+ function IsRecord2(value) {
612
+ return IsKindOf2(value, "Record") && value.type === "object" && IsOptionalString(value.$id) && IsAdditionalProperties(value.additionalProperties) && IsObject(value.patternProperties) && ((schema) => {
613
+ const keys = Object.getOwnPropertyNames(schema.patternProperties);
614
+ return keys.length === 1 && IsPattern(keys[0]) && IsObject(schema.patternProperties) && IsSchema2(schema.patternProperties[keys[0]]);
615
+ })(value);
616
+ }
617
+ function IsRecursive(value) {
618
+ return IsObject(value) && Hint in value && value[Hint] === "Recursive";
619
+ }
620
+ function IsRef2(value) {
621
+ return IsKindOf2(value, "Ref") && IsOptionalString(value.$id) && IsString(value.$ref);
622
+ }
623
+ function IsRegExp3(value) {
624
+ return IsKindOf2(value, "RegExp") && IsOptionalString(value.$id) && IsString(value.source) && IsString(value.flags) && IsOptionalNumber(value.maxLength) && IsOptionalNumber(value.minLength);
625
+ }
626
+ function IsString3(value) {
627
+ return IsKindOf2(value, "String") && value.type === "string" && IsOptionalString(value.$id) && IsOptionalNumber(value.minLength) && IsOptionalNumber(value.maxLength) && IsOptionalPattern(value.pattern) && IsOptionalFormat(value.format);
628
+ }
629
+ function IsSymbol3(value) {
630
+ return IsKindOf2(value, "Symbol") && value.type === "symbol" && IsOptionalString(value.$id);
631
+ }
632
+ function IsTemplateLiteral2(value) {
633
+ return IsKindOf2(value, "TemplateLiteral") && value.type === "string" && IsString(value.pattern) && value.pattern[0] === "^" && value.pattern[value.pattern.length - 1] === "$";
634
+ }
635
+ function IsThis2(value) {
636
+ return IsKindOf2(value, "This") && IsOptionalString(value.$id) && IsString(value.$ref);
637
+ }
638
+ function IsTransform2(value) {
639
+ return IsObject(value) && TransformKind in value;
640
+ }
641
+ function IsTuple2(value) {
642
+ return IsKindOf2(value, "Tuple") && value.type === "array" && IsOptionalString(value.$id) && IsNumber(value.minItems) && IsNumber(value.maxItems) && value.minItems === value.maxItems && // empty
643
+ (IsUndefined(value.items) && IsUndefined(value.additionalItems) && value.minItems === 0 || IsArray(value.items) && value.items.every((schema) => IsSchema2(schema)));
644
+ }
645
+ function IsUndefined4(value) {
646
+ return IsKindOf2(value, "Undefined") && value.type === "undefined" && IsOptionalString(value.$id);
647
+ }
648
+ function IsUnionLiteral(value) {
649
+ return IsUnion2(value) && value.anyOf.every((schema) => IsLiteralString(schema) || IsLiteralNumber(schema));
650
+ }
651
+ function IsUnion2(value) {
652
+ return IsKindOf2(value, "Union") && IsOptionalString(value.$id) && IsObject(value) && IsArray(value.anyOf) && value.anyOf.every((schema) => IsSchema2(schema));
653
+ }
654
+ function IsUint8Array3(value) {
655
+ return IsKindOf2(value, "Uint8Array") && value.type === "Uint8Array" && IsOptionalString(value.$id) && IsOptionalNumber(value.minByteLength) && IsOptionalNumber(value.maxByteLength);
656
+ }
657
+ function IsUnknown2(value) {
658
+ return IsKindOf2(value, "Unknown") && IsOptionalString(value.$id);
659
+ }
660
+ function IsUnsafe2(value) {
661
+ return IsKindOf2(value, "Unsafe");
662
+ }
663
+ function IsVoid2(value) {
664
+ return IsKindOf2(value, "Void") && value.type === "void" && IsOptionalString(value.$id);
665
+ }
666
+ function IsKind2(value) {
667
+ return IsObject(value) && Kind in value && IsString(value[Kind]) && !KnownTypes.includes(value[Kind]);
668
+ }
669
+ function IsSchema2(value) {
670
+ return IsObject(value) && (IsAny2(value) || IsArgument2(value) || IsArray4(value) || IsBoolean3(value) || IsBigInt3(value) || IsAsyncIterator3(value) || IsComputed2(value) || IsConstructor2(value) || IsDate3(value) || IsFunction3(value) || IsInteger2(value) || IsIntersect2(value) || IsIterator3(value) || IsLiteral2(value) || IsMappedKey2(value) || IsMappedResult2(value) || IsNever2(value) || IsNot2(value) || IsNull3(value) || IsNumber4(value) || IsObject4(value) || IsPromise2(value) || IsRecord2(value) || IsRef2(value) || IsRegExp3(value) || IsString3(value) || IsSymbol3(value) || IsTemplateLiteral2(value) || IsThis2(value) || IsTuple2(value) || IsUndefined4(value) || IsUnion2(value) || IsUint8Array3(value) || IsUnknown2(value) || IsUnsafe2(value) || IsVoid2(value) || IsKind2(value));
671
+ }
672
+
673
+ // ../../node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs
674
+ init_shims();
675
+ var PatternBoolean = "(true|false)";
676
+ var PatternNumber = "(0|[1-9][0-9]*)";
677
+ var PatternString = "(.*)";
678
+ var PatternNever = "(?!.*)";
679
+ var PatternBooleanExact = `^${PatternBoolean}$`;
680
+ var PatternNumberExact = `^${PatternNumber}$`;
681
+ var PatternStringExact = `^${PatternString}$`;
682
+ var PatternNeverExact = `^${PatternNever}$`;
683
+
684
+ // ../../node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs
685
+ init_shims();
686
+ function SetIncludes(T, S) {
687
+ return T.includes(S);
688
+ }
689
+ function SetDistinct(T) {
690
+ return [...new Set(T)];
691
+ }
692
+ function SetIntersect(T, S) {
693
+ return T.filter((L) => S.includes(L));
694
+ }
695
+ function SetIntersectManyResolve(T, Init) {
696
+ return T.reduce((Acc, L) => {
697
+ return SetIntersect(Acc, L);
698
+ }, Init);
699
+ }
700
+ function SetIntersectMany(T) {
701
+ return T.length === 1 ? T[0] : T.length > 1 ? SetIntersectManyResolve(T.slice(1), T[0]) : [];
702
+ }
703
+ function SetUnionMany(T) {
704
+ const Acc = [];
705
+ for (const L of T)
706
+ Acc.push(...L);
707
+ return Acc;
708
+ }
709
+
710
+ // ../../node_modules/@sinclair/typebox/build/esm/type/any/any.mjs
711
+ init_shims();
712
+ function Any(options) {
713
+ return CreateType({ [Kind]: "Any" }, options);
714
+ }
715
+
716
+ // ../../node_modules/@sinclair/typebox/build/esm/type/array/array.mjs
717
+ init_shims();
718
+ function Array2(items, options) {
719
+ return CreateType({ [Kind]: "Array", type: "array", items }, options);
720
+ }
721
+
722
+ // ../../node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs
723
+ init_shims();
724
+ function Argument(index) {
725
+ return CreateType({ [Kind]: "Argument", index });
726
+ }
727
+
728
+ // ../../node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs
729
+ init_shims();
730
+ function AsyncIterator(items, options) {
731
+ return CreateType({ [Kind]: "AsyncIterator", type: "AsyncIterator", items }, options);
732
+ }
733
+
734
+ // ../../node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs
735
+ init_shims();
736
+
737
+ // ../../node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs
738
+ init_shims();
739
+ function Computed(target, parameters, options) {
740
+ return CreateType({ [Kind]: "Computed", target, parameters }, options);
741
+ }
742
+
743
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs
744
+ init_shims();
745
+
746
+ // ../../node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs
747
+ init_shims();
748
+ function DiscardKey(value, key) {
749
+ const { [key]: _, ...rest } = value;
750
+ return rest;
751
+ }
752
+ function Discard(value, keys) {
753
+ return keys.reduce((acc, key) => DiscardKey(acc, key), value);
754
+ }
755
+
756
+ // ../../node_modules/@sinclair/typebox/build/esm/type/never/never.mjs
757
+ init_shims();
758
+ function Never(options) {
759
+ return CreateType({ [Kind]: "Never", not: {} }, options);
760
+ }
761
+
762
+ // ../../node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs
763
+ init_shims();
764
+
765
+ // ../../node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs
766
+ init_shims();
767
+ function MappedResult(properties) {
768
+ return CreateType({
769
+ [Kind]: "MappedResult",
770
+ properties
771
+ });
772
+ }
773
+
774
+ // ../../node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs
775
+ init_shims();
776
+
777
+ // ../../node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs
778
+ init_shims();
779
+ function Constructor(parameters, returns, options) {
780
+ return CreateType({ [Kind]: "Constructor", type: "Constructor", parameters, returns }, options);
781
+ }
782
+
783
+ // ../../node_modules/@sinclair/typebox/build/esm/type/function/function.mjs
784
+ init_shims();
785
+ function Function(parameters, returns, options) {
786
+ return CreateType({ [Kind]: "Function", type: "Function", parameters, returns }, options);
787
+ }
788
+
789
+ // ../../node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs
790
+ init_shims();
791
+
792
+ // ../../node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs
793
+ init_shims();
794
+
795
+ // ../../node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs
796
+ init_shims();
797
+
798
+ // ../../node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs
799
+ init_shims();
800
+ function UnionCreate(T, options) {
801
+ return CreateType({ [Kind]: "Union", anyOf: T }, options);
802
+ }
803
+
804
+ // ../../node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs
805
+ function IsUnionOptional(types) {
806
+ return types.some((type) => IsOptional(type));
807
+ }
808
+ function RemoveOptionalFromRest(types) {
809
+ return types.map((left) => IsOptional(left) ? RemoveOptionalFromType(left) : left);
810
+ }
811
+ function RemoveOptionalFromType(T) {
812
+ return Discard(T, [OptionalKind]);
813
+ }
814
+ function ResolveUnion(types, options) {
815
+ const isOptional = IsUnionOptional(types);
816
+ return isOptional ? Optional(UnionCreate(RemoveOptionalFromRest(types), options)) : UnionCreate(RemoveOptionalFromRest(types), options);
817
+ }
818
+ function UnionEvaluated(T, options) {
819
+ return T.length === 1 ? CreateType(T[0], options) : T.length === 0 ? Never(options) : ResolveUnion(T, options);
820
+ }
821
+
822
+ // ../../node_modules/@sinclair/typebox/build/esm/type/union/union.mjs
823
+ init_shims();
824
+ function Union(types, options) {
825
+ return types.length === 0 ? Never(options) : types.length === 1 ? CreateType(types[0], options) : UnionCreate(types, options);
826
+ }
827
+
828
+ // ../../node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs
829
+ init_shims();
830
+
831
+ // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs
832
+ init_shims();
833
+
834
+ // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs
835
+ init_shims();
836
+ var TemplateLiteralParserError = class extends TypeBoxError {
837
+ };
838
+ function Unescape(pattern) {
839
+ return pattern.replace(/\\\$/g, "$").replace(/\\\*/g, "*").replace(/\\\^/g, "^").replace(/\\\|/g, "|").replace(/\\\(/g, "(").replace(/\\\)/g, ")");
840
+ }
841
+ function IsNonEscaped(pattern, index, char) {
842
+ return pattern[index] === char && pattern.charCodeAt(index - 1) !== 92;
843
+ }
844
+ function IsOpenParen(pattern, index) {
845
+ return IsNonEscaped(pattern, index, "(");
846
+ }
847
+ function IsCloseParen(pattern, index) {
848
+ return IsNonEscaped(pattern, index, ")");
849
+ }
850
+ function IsSeparator(pattern, index) {
851
+ return IsNonEscaped(pattern, index, "|");
852
+ }
853
+ function IsGroup(pattern) {
854
+ if (!(IsOpenParen(pattern, 0) && IsCloseParen(pattern, pattern.length - 1)))
855
+ return false;
856
+ let count = 0;
857
+ for (let index = 0; index < pattern.length; index++) {
858
+ if (IsOpenParen(pattern, index))
859
+ count += 1;
860
+ if (IsCloseParen(pattern, index))
861
+ count -= 1;
862
+ if (count === 0 && index !== pattern.length - 1)
863
+ return false;
864
+ }
865
+ return true;
866
+ }
867
+ function InGroup(pattern) {
868
+ return pattern.slice(1, pattern.length - 1);
869
+ }
870
+ function IsPrecedenceOr(pattern) {
871
+ let count = 0;
872
+ for (let index = 0; index < pattern.length; index++) {
873
+ if (IsOpenParen(pattern, index))
874
+ count += 1;
875
+ if (IsCloseParen(pattern, index))
876
+ count -= 1;
877
+ if (IsSeparator(pattern, index) && count === 0)
878
+ return true;
879
+ }
880
+ return false;
881
+ }
882
+ function IsPrecedenceAnd(pattern) {
883
+ for (let index = 0; index < pattern.length; index++) {
884
+ if (IsOpenParen(pattern, index))
885
+ return true;
886
+ }
887
+ return false;
888
+ }
889
+ function Or(pattern) {
890
+ let [count, start] = [0, 0];
891
+ const expressions = [];
892
+ for (let index = 0; index < pattern.length; index++) {
893
+ if (IsOpenParen(pattern, index))
894
+ count += 1;
895
+ if (IsCloseParen(pattern, index))
896
+ count -= 1;
897
+ if (IsSeparator(pattern, index) && count === 0) {
898
+ const range2 = pattern.slice(start, index);
899
+ if (range2.length > 0)
900
+ expressions.push(TemplateLiteralParse(range2));
901
+ start = index + 1;
902
+ }
903
+ }
904
+ const range = pattern.slice(start);
905
+ if (range.length > 0)
906
+ expressions.push(TemplateLiteralParse(range));
907
+ if (expressions.length === 0)
908
+ return { type: "const", const: "" };
909
+ if (expressions.length === 1)
910
+ return expressions[0];
911
+ return { type: "or", expr: expressions };
912
+ }
913
+ function And(pattern) {
914
+ function Group(value, index) {
915
+ if (!IsOpenParen(value, index))
916
+ throw new TemplateLiteralParserError(`TemplateLiteralParser: Index must point to open parens`);
917
+ let count = 0;
918
+ for (let scan = index; scan < value.length; scan++) {
919
+ if (IsOpenParen(value, scan))
920
+ count += 1;
921
+ if (IsCloseParen(value, scan))
922
+ count -= 1;
923
+ if (count === 0)
924
+ return [index, scan];
925
+ }
926
+ throw new TemplateLiteralParserError(`TemplateLiteralParser: Unclosed group parens in expression`);
927
+ }
928
+ function Range(pattern2, index) {
929
+ for (let scan = index; scan < pattern2.length; scan++) {
930
+ if (IsOpenParen(pattern2, scan))
931
+ return [index, scan];
932
+ }
933
+ return [index, pattern2.length];
934
+ }
935
+ const expressions = [];
936
+ for (let index = 0; index < pattern.length; index++) {
937
+ if (IsOpenParen(pattern, index)) {
938
+ const [start, end] = Group(pattern, index);
939
+ const range = pattern.slice(start, end + 1);
940
+ expressions.push(TemplateLiteralParse(range));
941
+ index = end;
942
+ } else {
943
+ const [start, end] = Range(pattern, index);
944
+ const range = pattern.slice(start, end);
945
+ if (range.length > 0)
946
+ expressions.push(TemplateLiteralParse(range));
947
+ index = end - 1;
948
+ }
949
+ }
950
+ return expressions.length === 0 ? { type: "const", const: "" } : expressions.length === 1 ? expressions[0] : { type: "and", expr: expressions };
951
+ }
952
+ function TemplateLiteralParse(pattern) {
953
+ return IsGroup(pattern) ? TemplateLiteralParse(InGroup(pattern)) : IsPrecedenceOr(pattern) ? Or(pattern) : IsPrecedenceAnd(pattern) ? And(pattern) : { type: "const", const: Unescape(pattern) };
954
+ }
955
+ function TemplateLiteralParseExact(pattern) {
956
+ return TemplateLiteralParse(pattern.slice(1, pattern.length - 1));
957
+ }
958
+
959
+ // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs
960
+ var TemplateLiteralFiniteError = class extends TypeBoxError {
961
+ };
962
+ function IsNumberExpression(expression) {
963
+ return expression.type === "or" && expression.expr.length === 2 && expression.expr[0].type === "const" && expression.expr[0].const === "0" && expression.expr[1].type === "const" && expression.expr[1].const === "[1-9][0-9]*";
964
+ }
965
+ function IsBooleanExpression(expression) {
966
+ return expression.type === "or" && expression.expr.length === 2 && expression.expr[0].type === "const" && expression.expr[0].const === "true" && expression.expr[1].type === "const" && expression.expr[1].const === "false";
967
+ }
968
+ function IsStringExpression(expression) {
969
+ return expression.type === "const" && expression.const === ".*";
970
+ }
971
+ function IsTemplateLiteralExpressionFinite(expression) {
972
+ return IsNumberExpression(expression) || IsStringExpression(expression) ? false : IsBooleanExpression(expression) ? true : expression.type === "and" ? expression.expr.every((expr) => IsTemplateLiteralExpressionFinite(expr)) : expression.type === "or" ? expression.expr.every((expr) => IsTemplateLiteralExpressionFinite(expr)) : expression.type === "const" ? true : (() => {
973
+ throw new TemplateLiteralFiniteError(`Unknown expression type`);
974
+ })();
975
+ }
976
+ function IsTemplateLiteralFinite(schema) {
977
+ const expression = TemplateLiteralParseExact(schema.pattern);
978
+ return IsTemplateLiteralExpressionFinite(expression);
979
+ }
980
+
981
+ // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs
982
+ init_shims();
983
+ var TemplateLiteralGenerateError = class extends TypeBoxError {
984
+ };
985
+ function* GenerateReduce(buffer) {
986
+ if (buffer.length === 1)
987
+ return yield* buffer[0];
988
+ for (const left of buffer[0]) {
989
+ for (const right of GenerateReduce(buffer.slice(1))) {
990
+ yield `${left}${right}`;
991
+ }
992
+ }
993
+ }
994
+ function* GenerateAnd(expression) {
995
+ return yield* GenerateReduce(expression.expr.map((expr) => [...TemplateLiteralExpressionGenerate(expr)]));
996
+ }
997
+ function* GenerateOr(expression) {
998
+ for (const expr of expression.expr)
999
+ yield* TemplateLiteralExpressionGenerate(expr);
1000
+ }
1001
+ function* GenerateConst(expression) {
1002
+ return yield expression.const;
1003
+ }
1004
+ function* TemplateLiteralExpressionGenerate(expression) {
1005
+ return expression.type === "and" ? yield* GenerateAnd(expression) : expression.type === "or" ? yield* GenerateOr(expression) : expression.type === "const" ? yield* GenerateConst(expression) : (() => {
1006
+ throw new TemplateLiteralGenerateError("Unknown expression");
1007
+ })();
1008
+ }
1009
+ function TemplateLiteralGenerate(schema) {
1010
+ const expression = TemplateLiteralParseExact(schema.pattern);
1011
+ return IsTemplateLiteralExpressionFinite(expression) ? [...TemplateLiteralExpressionGenerate(expression)] : [];
1012
+ }
1013
+
1014
+ // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
1015
+ init_shims();
1016
+
1017
+ // ../../node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs
1018
+ init_shims();
1019
+ function Literal(value, options) {
1020
+ return CreateType({
1021
+ [Kind]: "Literal",
1022
+ const: value,
1023
+ type: typeof value
1024
+ }, options);
1025
+ }
1026
+
1027
+ // ../../node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs
1028
+ init_shims();
1029
+ function Boolean(options) {
1030
+ return CreateType({ [Kind]: "Boolean", type: "boolean" }, options);
1031
+ }
1032
+
1033
+ // ../../node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs
1034
+ init_shims();
1035
+ function BigInt(options) {
1036
+ return CreateType({ [Kind]: "BigInt", type: "bigint" }, options);
1037
+ }
1038
+
1039
+ // ../../node_modules/@sinclair/typebox/build/esm/type/number/number.mjs
1040
+ init_shims();
1041
+ function Number2(options) {
1042
+ return CreateType({ [Kind]: "Number", type: "number" }, options);
1043
+ }
1044
+
1045
+ // ../../node_modules/@sinclair/typebox/build/esm/type/string/string.mjs
1046
+ init_shims();
1047
+ function String(options) {
1048
+ return CreateType({ [Kind]: "String", type: "string" }, options);
1049
+ }
1050
+
1051
+ // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs
1052
+ function* FromUnion(syntax) {
1053
+ const trim = syntax.trim().replace(/"|'/g, "");
1054
+ return trim === "boolean" ? yield Boolean() : trim === "number" ? yield Number2() : trim === "bigint" ? yield BigInt() : trim === "string" ? yield String() : yield (() => {
1055
+ const literals = trim.split("|").map((literal) => Literal(literal.trim()));
1056
+ return literals.length === 0 ? Never() : literals.length === 1 ? literals[0] : UnionEvaluated(literals);
1057
+ })();
1058
+ }
1059
+ function* FromTerminal(syntax) {
1060
+ if (syntax[1] !== "{") {
1061
+ const L = Literal("$");
1062
+ const R = FromSyntax(syntax.slice(1));
1063
+ return yield* [L, ...R];
1064
+ }
1065
+ for (let i = 2; i < syntax.length; i++) {
1066
+ if (syntax[i] === "}") {
1067
+ const L = FromUnion(syntax.slice(2, i));
1068
+ const R = FromSyntax(syntax.slice(i + 1));
1069
+ return yield* [...L, ...R];
1070
+ }
1071
+ }
1072
+ yield Literal(syntax);
1073
+ }
1074
+ function* FromSyntax(syntax) {
1075
+ for (let i = 0; i < syntax.length; i++) {
1076
+ if (syntax[i] === "$") {
1077
+ const L = Literal(syntax.slice(0, i));
1078
+ const R = FromTerminal(syntax.slice(i));
1079
+ return yield* [L, ...R];
1080
+ }
1081
+ }
1082
+ yield Literal(syntax);
1083
+ }
1084
+ function TemplateLiteralSyntax(syntax) {
1085
+ return [...FromSyntax(syntax)];
1086
+ }
1087
+
1088
+ // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs
1089
+ init_shims();
1090
+ var TemplateLiteralPatternError = class extends TypeBoxError {
1091
+ };
1092
+ function Escape(value) {
1093
+ return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1094
+ }
1095
+ function Visit2(schema, acc) {
1096
+ return IsTemplateLiteral(schema) ? schema.pattern.slice(1, schema.pattern.length - 1) : IsUnion(schema) ? `(${schema.anyOf.map((schema2) => Visit2(schema2, acc)).join("|")})` : IsNumber3(schema) ? `${acc}${PatternNumber}` : IsInteger(schema) ? `${acc}${PatternNumber}` : IsBigInt2(schema) ? `${acc}${PatternNumber}` : IsString2(schema) ? `${acc}${PatternString}` : IsLiteral(schema) ? `${acc}${Escape(schema.const.toString())}` : IsBoolean2(schema) ? `${acc}${PatternBoolean}` : (() => {
1097
+ throw new TemplateLiteralPatternError(`Unexpected Kind '${schema[Kind]}'`);
1098
+ })();
1099
+ }
1100
+ function TemplateLiteralPattern(kinds) {
1101
+ return `^${kinds.map((schema) => Visit2(schema, "")).join("")}$`;
1102
+ }
1103
+
1104
+ // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs
1105
+ init_shims();
1106
+ function TemplateLiteralToUnion(schema) {
1107
+ const R = TemplateLiteralGenerate(schema);
1108
+ const L = R.map((S) => Literal(S));
1109
+ return UnionEvaluated(L);
1110
+ }
1111
+
1112
+ // ../../node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs
1113
+ init_shims();
1114
+ function TemplateLiteral(unresolved, options) {
1115
+ const pattern = IsString(unresolved) ? TemplateLiteralPattern(TemplateLiteralSyntax(unresolved)) : TemplateLiteralPattern(unresolved);
1116
+ return CreateType({ [Kind]: "TemplateLiteral", type: "string", pattern }, options);
1117
+ }
1118
+
1119
+ // ../../node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs
1120
+ function FromTemplateLiteral(templateLiteral) {
1121
+ const keys = TemplateLiteralGenerate(templateLiteral);
1122
+ return keys.map((key) => key.toString());
1123
+ }
1124
+ function FromUnion2(types) {
1125
+ const result = [];
1126
+ for (const type of types)
1127
+ result.push(...IndexPropertyKeys(type));
1128
+ return result;
1129
+ }
1130
+ function FromLiteral(literalValue) {
1131
+ return [literalValue.toString()];
1132
+ }
1133
+ function IndexPropertyKeys(type) {
1134
+ return [...new Set(IsTemplateLiteral(type) ? FromTemplateLiteral(type) : IsUnion(type) ? FromUnion2(type.anyOf) : IsLiteral(type) ? FromLiteral(type.const) : IsNumber3(type) ? ["[number]"] : IsInteger(type) ? ["[number]"] : [])];
1135
+ }
1136
+
1137
+ // ../../node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs
1138
+ init_shims();
1139
+ function FromProperties(type, properties, options) {
1140
+ const result = {};
1141
+ for (const K2 of Object.getOwnPropertyNames(properties)) {
1142
+ result[K2] = Index(type, IndexPropertyKeys(properties[K2]), options);
1143
+ }
1144
+ return result;
1145
+ }
1146
+ function FromMappedResult(type, mappedResult, options) {
1147
+ return FromProperties(type, mappedResult.properties, options);
1148
+ }
1149
+ function IndexFromMappedResult(type, mappedResult, options) {
1150
+ const properties = FromMappedResult(type, mappedResult, options);
1151
+ return MappedResult(properties);
1152
+ }
1153
+
1154
+ // ../../node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs
1155
+ function FromRest(types, key) {
1156
+ return types.map((type) => IndexFromPropertyKey(type, key));
1157
+ }
1158
+ function FromIntersectRest(types) {
1159
+ return types.filter((type) => !IsNever(type));
1160
+ }
1161
+ function FromIntersect(types, key) {
1162
+ return IntersectEvaluated(FromIntersectRest(FromRest(types, key)));
1163
+ }
1164
+ function FromUnionRest(types) {
1165
+ return types.some((L) => IsNever(L)) ? [] : types;
1166
+ }
1167
+ function FromUnion3(types, key) {
1168
+ return UnionEvaluated(FromUnionRest(FromRest(types, key)));
1169
+ }
1170
+ function FromTuple(types, key) {
1171
+ return key in types ? types[key] : key === "[number]" ? UnionEvaluated(types) : Never();
1172
+ }
1173
+ function FromArray(type, key) {
1174
+ return key === "[number]" ? type : Never();
1175
+ }
1176
+ function FromProperty(properties, propertyKey) {
1177
+ return propertyKey in properties ? properties[propertyKey] : Never();
1178
+ }
1179
+ function IndexFromPropertyKey(type, propertyKey) {
1180
+ return IsIntersect(type) ? FromIntersect(type.allOf, propertyKey) : IsUnion(type) ? FromUnion3(type.anyOf, propertyKey) : IsTuple(type) ? FromTuple(type.items ?? [], propertyKey) : IsArray3(type) ? FromArray(type.items, propertyKey) : IsObject3(type) ? FromProperty(type.properties, propertyKey) : Never();
1181
+ }
1182
+ function IndexFromPropertyKeys(type, propertyKeys) {
1183
+ return propertyKeys.map((propertyKey) => IndexFromPropertyKey(type, propertyKey));
1184
+ }
1185
+ function FromSchema(type, propertyKeys) {
1186
+ return UnionEvaluated(IndexFromPropertyKeys(type, propertyKeys));
1187
+ }
1188
+ function Index(type, key, options) {
1189
+ if (IsRef(type) || IsRef(key)) {
1190
+ const error = `Index types using Ref parameters require both Type and Key to be of TSchema`;
1191
+ if (!IsSchema(type) || !IsSchema(key))
1192
+ throw new TypeBoxError(error);
1193
+ return Computed("Index", [type, key]);
1194
+ }
1195
+ if (IsMappedResult(key))
1196
+ return IndexFromMappedResult(type, key, options);
1197
+ if (IsMappedKey(key))
1198
+ return IndexFromMappedKey(type, key, options);
1199
+ return CreateType(IsSchema(key) ? FromSchema(type, IndexPropertyKeys(key)) : FromSchema(type, key), options);
1200
+ }
1201
+
1202
+ // ../../node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs
1203
+ function MappedIndexPropertyKey(type, key, options) {
1204
+ return { [key]: Index(type, [key], Clone(options)) };
1205
+ }
1206
+ function MappedIndexPropertyKeys(type, propertyKeys, options) {
1207
+ return propertyKeys.reduce((result, left) => {
1208
+ return { ...result, ...MappedIndexPropertyKey(type, left, options) };
1209
+ }, {});
1210
+ }
1211
+ function MappedIndexProperties(type, mappedKey, options) {
1212
+ return MappedIndexPropertyKeys(type, mappedKey.keys, options);
1213
+ }
1214
+ function IndexFromMappedKey(type, mappedKey, options) {
1215
+ const properties = MappedIndexProperties(type, mappedKey, options);
1216
+ return MappedResult(properties);
1217
+ }
1218
+
1219
+ // ../../node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs
1220
+ init_shims();
1221
+ function Iterator(items, options) {
1222
+ return CreateType({ [Kind]: "Iterator", type: "Iterator", items }, options);
1223
+ }
1224
+
1225
+ // ../../node_modules/@sinclair/typebox/build/esm/type/object/object.mjs
1226
+ init_shims();
1227
+ function RequiredArray(properties) {
1228
+ return globalThis.Object.keys(properties).filter((key) => !IsOptional(properties[key]));
1229
+ }
1230
+ function _Object(properties, options) {
1231
+ const required = RequiredArray(properties);
1232
+ const schema = required.length > 0 ? { [Kind]: "Object", type: "object", required, properties } : { [Kind]: "Object", type: "object", properties };
1233
+ return CreateType(schema, options);
1234
+ }
1235
+ var Object2 = _Object;
1236
+
1237
+ // ../../node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs
1238
+ init_shims();
1239
+ function Promise2(item, options) {
1240
+ return CreateType({ [Kind]: "Promise", type: "Promise", item }, options);
1241
+ }
1242
+
1243
+ // ../../node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs
1244
+ init_shims();
1245
+
1246
+ // ../../node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs
1247
+ init_shims();
1248
+ function RemoveReadonly(schema) {
1249
+ return CreateType(Discard(schema, [ReadonlyKind]));
1250
+ }
1251
+ function AddReadonly(schema) {
1252
+ return CreateType({ ...schema, [ReadonlyKind]: "Readonly" });
1253
+ }
1254
+ function ReadonlyWithFlag(schema, F) {
1255
+ return F === false ? RemoveReadonly(schema) : AddReadonly(schema);
1256
+ }
1257
+ function Readonly(schema, enable) {
1258
+ const F = enable ?? true;
1259
+ return IsMappedResult(schema) ? ReadonlyFromMappedResult(schema, F) : ReadonlyWithFlag(schema, F);
1260
+ }
1261
+
1262
+ // ../../node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs
1263
+ function FromProperties2(K, F) {
1264
+ const Acc = {};
1265
+ for (const K2 of globalThis.Object.getOwnPropertyNames(K))
1266
+ Acc[K2] = Readonly(K[K2], F);
1267
+ return Acc;
1268
+ }
1269
+ function FromMappedResult2(R, F) {
1270
+ return FromProperties2(R.properties, F);
1271
+ }
1272
+ function ReadonlyFromMappedResult(R, F) {
1273
+ const P = FromMappedResult2(R, F);
1274
+ return MappedResult(P);
1275
+ }
1276
+
1277
+ // ../../node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs
1278
+ init_shims();
1279
+ function Tuple(types, options) {
1280
+ return CreateType(types.length > 0 ? { [Kind]: "Tuple", type: "array", items: types, additionalItems: false, minItems: types.length, maxItems: types.length } : { [Kind]: "Tuple", type: "array", minItems: types.length, maxItems: types.length }, options);
1281
+ }
1282
+
1283
+ // ../../node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs
1284
+ function FromMappedResult3(K, P) {
1285
+ return K in P ? FromSchemaType(K, P[K]) : MappedResult(P);
1286
+ }
1287
+ function MappedKeyToKnownMappedResultProperties(K) {
1288
+ return { [K]: Literal(K) };
1289
+ }
1290
+ function MappedKeyToUnknownMappedResultProperties(P) {
1291
+ const Acc = {};
1292
+ for (const L of P)
1293
+ Acc[L] = Literal(L);
1294
+ return Acc;
1295
+ }
1296
+ function MappedKeyToMappedResultProperties(K, P) {
1297
+ return SetIncludes(P, K) ? MappedKeyToKnownMappedResultProperties(K) : MappedKeyToUnknownMappedResultProperties(P);
1298
+ }
1299
+ function FromMappedKey(K, P) {
1300
+ const R = MappedKeyToMappedResultProperties(K, P);
1301
+ return FromMappedResult3(K, R);
1302
+ }
1303
+ function FromRest2(K, T) {
1304
+ return T.map((L) => FromSchemaType(K, L));
1305
+ }
1306
+ function FromProperties3(K, T) {
1307
+ const Acc = {};
1308
+ for (const K2 of globalThis.Object.getOwnPropertyNames(T))
1309
+ Acc[K2] = FromSchemaType(K, T[K2]);
1310
+ return Acc;
1311
+ }
1312
+ function FromSchemaType(K, T) {
1313
+ const options = { ...T };
1314
+ return (
1315
+ // unevaluated modifier types
1316
+ IsOptional(T) ? Optional(FromSchemaType(K, Discard(T, [OptionalKind]))) : IsReadonly(T) ? Readonly(FromSchemaType(K, Discard(T, [ReadonlyKind]))) : (
1317
+ // unevaluated mapped types
1318
+ IsMappedResult(T) ? FromMappedResult3(K, T.properties) : IsMappedKey(T) ? FromMappedKey(K, T.keys) : (
1319
+ // unevaluated types
1320
+ IsConstructor(T) ? Constructor(FromRest2(K, T.parameters), FromSchemaType(K, T.returns), options) : IsFunction2(T) ? Function(FromRest2(K, T.parameters), FromSchemaType(K, T.returns), options) : IsAsyncIterator2(T) ? AsyncIterator(FromSchemaType(K, T.items), options) : IsIterator2(T) ? Iterator(FromSchemaType(K, T.items), options) : IsIntersect(T) ? Intersect(FromRest2(K, T.allOf), options) : IsUnion(T) ? Union(FromRest2(K, T.anyOf), options) : IsTuple(T) ? Tuple(FromRest2(K, T.items ?? []), options) : IsObject3(T) ? Object2(FromProperties3(K, T.properties), options) : IsArray3(T) ? Array2(FromSchemaType(K, T.items), options) : IsPromise(T) ? Promise2(FromSchemaType(K, T.item), options) : T
1321
+ )
1322
+ )
1323
+ );
1324
+ }
1325
+ function MappedFunctionReturnType(K, T) {
1326
+ const Acc = {};
1327
+ for (const L of K)
1328
+ Acc[L] = FromSchemaType(L, T);
1329
+ return Acc;
1330
+ }
1331
+ function Mapped(key, map, options) {
1332
+ const K = IsSchema(key) ? IndexPropertyKeys(key) : key;
1333
+ const RT = map({ [Kind]: "MappedKey", keys: K });
1334
+ const R = MappedFunctionReturnType(K, RT);
1335
+ return Object2(R, options);
1336
+ }
1337
+
1338
+ // ../../node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs
1339
+ init_shims();
1340
+ function RemoveOptional(schema) {
1341
+ return CreateType(Discard(schema, [OptionalKind]));
1342
+ }
1343
+ function AddOptional(schema) {
1344
+ return CreateType({ ...schema, [OptionalKind]: "Optional" });
1345
+ }
1346
+ function OptionalWithFlag(schema, F) {
1347
+ return F === false ? RemoveOptional(schema) : AddOptional(schema);
1348
+ }
1349
+ function Optional(schema, enable) {
1350
+ const F = enable ?? true;
1351
+ return IsMappedResult(schema) ? OptionalFromMappedResult(schema, F) : OptionalWithFlag(schema, F);
1352
+ }
1353
+
1354
+ // ../../node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs
1355
+ function FromProperties4(P, F) {
1356
+ const Acc = {};
1357
+ for (const K2 of globalThis.Object.getOwnPropertyNames(P))
1358
+ Acc[K2] = Optional(P[K2], F);
1359
+ return Acc;
1360
+ }
1361
+ function FromMappedResult4(R, F) {
1362
+ return FromProperties4(R.properties, F);
1363
+ }
1364
+ function OptionalFromMappedResult(R, F) {
1365
+ const P = FromMappedResult4(R, F);
1366
+ return MappedResult(P);
1367
+ }
1368
+
1369
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs
1370
+ init_shims();
1371
+ function IntersectCreate(T, options = {}) {
1372
+ const allObjects = T.every((schema) => IsObject3(schema));
1373
+ const clonedUnevaluatedProperties = IsSchema(options.unevaluatedProperties) ? { unevaluatedProperties: options.unevaluatedProperties } : {};
1374
+ return CreateType(options.unevaluatedProperties === false || IsSchema(options.unevaluatedProperties) || allObjects ? { ...clonedUnevaluatedProperties, [Kind]: "Intersect", type: "object", allOf: T } : { ...clonedUnevaluatedProperties, [Kind]: "Intersect", allOf: T }, options);
1375
+ }
1376
+
1377
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs
1378
+ function IsIntersectOptional(types) {
1379
+ return types.every((left) => IsOptional(left));
1380
+ }
1381
+ function RemoveOptionalFromType2(type) {
1382
+ return Discard(type, [OptionalKind]);
1383
+ }
1384
+ function RemoveOptionalFromRest2(types) {
1385
+ return types.map((left) => IsOptional(left) ? RemoveOptionalFromType2(left) : left);
1386
+ }
1387
+ function ResolveIntersect(types, options) {
1388
+ return IsIntersectOptional(types) ? Optional(IntersectCreate(RemoveOptionalFromRest2(types), options)) : IntersectCreate(RemoveOptionalFromRest2(types), options);
1389
+ }
1390
+ function IntersectEvaluated(types, options = {}) {
1391
+ if (types.length === 1)
1392
+ return CreateType(types[0], options);
1393
+ if (types.length === 0)
1394
+ return Never(options);
1395
+ if (types.some((schema) => IsTransform(schema)))
1396
+ throw new Error("Cannot intersect transform types");
1397
+ return ResolveIntersect(types, options);
1398
+ }
1399
+
1400
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs
1401
+ init_shims();
1402
+ function Intersect(types, options) {
1403
+ if (types.length === 1)
1404
+ return CreateType(types[0], options);
1405
+ if (types.length === 0)
1406
+ return Never(options);
1407
+ if (types.some((schema) => IsTransform(schema)))
1408
+ throw new Error("Cannot intersect transform types");
1409
+ return IntersectCreate(types, options);
1410
+ }
1411
+
1412
+ // ../../node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs
1413
+ init_shims();
1414
+ function Ref(...args) {
1415
+ const [$ref, options] = typeof args[0] === "string" ? [args[0], args[1]] : [args[0].$id, args[1]];
1416
+ if (typeof $ref !== "string")
1417
+ throw new TypeBoxError("Ref: $ref must be a string");
1418
+ return CreateType({ [Kind]: "Ref", $ref }, options);
1419
+ }
1420
+
1421
+ // ../../node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs
1422
+ function FromComputed(target, parameters) {
1423
+ return Computed("Awaited", [Computed(target, parameters)]);
1424
+ }
1425
+ function FromRef($ref) {
1426
+ return Computed("Awaited", [Ref($ref)]);
1427
+ }
1428
+ function FromIntersect2(types) {
1429
+ return Intersect(FromRest3(types));
1430
+ }
1431
+ function FromUnion4(types) {
1432
+ return Union(FromRest3(types));
1433
+ }
1434
+ function FromPromise(type) {
1435
+ return Awaited(type);
1436
+ }
1437
+ function FromRest3(types) {
1438
+ return types.map((type) => Awaited(type));
1439
+ }
1440
+ function Awaited(type, options) {
1441
+ return CreateType(IsComputed(type) ? FromComputed(type.target, type.parameters) : IsIntersect(type) ? FromIntersect2(type.allOf) : IsUnion(type) ? FromUnion4(type.anyOf) : IsPromise(type) ? FromPromise(type.item) : IsRef(type) ? FromRef(type.$ref) : type, options);
1442
+ }
1443
+
1444
+ // ../../node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs
1445
+ init_shims();
1446
+
1447
+ // ../../node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs
1448
+ init_shims();
1449
+
1450
+ // ../../node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs
1451
+ init_shims();
1452
+
1453
+ // ../../node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs
1454
+ init_shims();
1455
+ function FromRest4(types) {
1456
+ const result = [];
1457
+ for (const L of types)
1458
+ result.push(KeyOfPropertyKeys(L));
1459
+ return result;
1460
+ }
1461
+ function FromIntersect3(types) {
1462
+ const propertyKeysArray = FromRest4(types);
1463
+ const propertyKeys = SetUnionMany(propertyKeysArray);
1464
+ return propertyKeys;
1465
+ }
1466
+ function FromUnion5(types) {
1467
+ const propertyKeysArray = FromRest4(types);
1468
+ const propertyKeys = SetIntersectMany(propertyKeysArray);
1469
+ return propertyKeys;
1470
+ }
1471
+ function FromTuple2(types) {
1472
+ return types.map((_, indexer) => indexer.toString());
1473
+ }
1474
+ function FromArray2(_) {
1475
+ return ["[number]"];
1476
+ }
1477
+ function FromProperties5(T) {
1478
+ return globalThis.Object.getOwnPropertyNames(T);
1479
+ }
1480
+ function FromPatternProperties(patternProperties) {
1481
+ if (!includePatternProperties)
1482
+ return [];
1483
+ const patternPropertyKeys = globalThis.Object.getOwnPropertyNames(patternProperties);
1484
+ return patternPropertyKeys.map((key) => {
1485
+ return key[0] === "^" && key[key.length - 1] === "$" ? key.slice(1, key.length - 1) : key;
1486
+ });
1487
+ }
1488
+ function KeyOfPropertyKeys(type) {
1489
+ return IsIntersect(type) ? FromIntersect3(type.allOf) : IsUnion(type) ? FromUnion5(type.anyOf) : IsTuple(type) ? FromTuple2(type.items ?? []) : IsArray3(type) ? FromArray2(type.items) : IsObject3(type) ? FromProperties5(type.properties) : IsRecord(type) ? FromPatternProperties(type.patternProperties) : [];
1490
+ }
1491
+ var includePatternProperties = false;
1492
+
1493
+ // ../../node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs
1494
+ function FromComputed2(target, parameters) {
1495
+ return Computed("KeyOf", [Computed(target, parameters)]);
1496
+ }
1497
+ function FromRef2($ref) {
1498
+ return Computed("KeyOf", [Ref($ref)]);
1499
+ }
1500
+ function KeyOfFromType(type, options) {
1501
+ const propertyKeys = KeyOfPropertyKeys(type);
1502
+ const propertyKeyTypes = KeyOfPropertyKeysToRest(propertyKeys);
1503
+ const result = UnionEvaluated(propertyKeyTypes);
1504
+ return CreateType(result, options);
1505
+ }
1506
+ function KeyOfPropertyKeysToRest(propertyKeys) {
1507
+ return propertyKeys.map((L) => L === "[number]" ? Number2() : Literal(L));
1508
+ }
1509
+ function KeyOf(type, options) {
1510
+ return IsComputed(type) ? FromComputed2(type.target, type.parameters) : IsRef(type) ? FromRef2(type.$ref) : IsMappedResult(type) ? KeyOfFromMappedResult(type, options) : KeyOfFromType(type, options);
1511
+ }
1512
+
1513
+ // ../../node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs
1514
+ function FromProperties6(properties, options) {
1515
+ const result = {};
1516
+ for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
1517
+ result[K2] = KeyOf(properties[K2], Clone(options));
1518
+ return result;
1519
+ }
1520
+ function FromMappedResult5(mappedResult, options) {
1521
+ return FromProperties6(mappedResult.properties, options);
1522
+ }
1523
+ function KeyOfFromMappedResult(mappedResult, options) {
1524
+ const properties = FromMappedResult5(mappedResult, options);
1525
+ return MappedResult(properties);
1526
+ }
1527
+
1528
+ // ../../node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs
1529
+ function CompositeKeys(T) {
1530
+ const Acc = [];
1531
+ for (const L of T)
1532
+ Acc.push(...KeyOfPropertyKeys(L));
1533
+ return SetDistinct(Acc);
1534
+ }
1535
+ function FilterNever(T) {
1536
+ return T.filter((L) => !IsNever(L));
1537
+ }
1538
+ function CompositeProperty(T, K) {
1539
+ const Acc = [];
1540
+ for (const L of T)
1541
+ Acc.push(...IndexFromPropertyKeys(L, [K]));
1542
+ return FilterNever(Acc);
1543
+ }
1544
+ function CompositeProperties(T, K) {
1545
+ const Acc = {};
1546
+ for (const L of K) {
1547
+ Acc[L] = IntersectEvaluated(CompositeProperty(T, L));
1548
+ }
1549
+ return Acc;
1550
+ }
1551
+ function Composite(T, options) {
1552
+ const K = CompositeKeys(T);
1553
+ const P = CompositeProperties(T, K);
1554
+ const R = Object2(P, options);
1555
+ return R;
1556
+ }
1557
+
1558
+ // ../../node_modules/@sinclair/typebox/build/esm/type/const/const.mjs
1559
+ init_shims();
1560
+
1561
+ // ../../node_modules/@sinclair/typebox/build/esm/type/date/date.mjs
1562
+ init_shims();
1563
+ function Date2(options) {
1564
+ return CreateType({ [Kind]: "Date", type: "Date" }, options);
1565
+ }
1566
+
1567
+ // ../../node_modules/@sinclair/typebox/build/esm/type/null/null.mjs
1568
+ init_shims();
1569
+ function Null(options) {
1570
+ return CreateType({ [Kind]: "Null", type: "null" }, options);
1571
+ }
1572
+
1573
+ // ../../node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs
1574
+ init_shims();
1575
+ function Symbol2(options) {
1576
+ return CreateType({ [Kind]: "Symbol", type: "symbol" }, options);
1577
+ }
1578
+
1579
+ // ../../node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs
1580
+ init_shims();
1581
+ function Undefined(options) {
1582
+ return CreateType({ [Kind]: "Undefined", type: "undefined" }, options);
1583
+ }
1584
+
1585
+ // ../../node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs
1586
+ init_shims();
1587
+ function Uint8Array2(options) {
1588
+ return CreateType({ [Kind]: "Uint8Array", type: "Uint8Array" }, options);
1589
+ }
1590
+
1591
+ // ../../node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs
1592
+ init_shims();
1593
+ function Unknown(options) {
1594
+ return CreateType({ [Kind]: "Unknown" }, options);
1595
+ }
1596
+
1597
+ // ../../node_modules/@sinclair/typebox/build/esm/type/const/const.mjs
1598
+ function FromArray3(T) {
1599
+ return T.map((L) => FromValue(L, false));
1600
+ }
1601
+ function FromProperties7(value) {
1602
+ const Acc = {};
1603
+ for (const K of globalThis.Object.getOwnPropertyNames(value))
1604
+ Acc[K] = Readonly(FromValue(value[K], false));
1605
+ return Acc;
1606
+ }
1607
+ function ConditionalReadonly(T, root) {
1608
+ return root === true ? T : Readonly(T);
1609
+ }
1610
+ function FromValue(value, root) {
1611
+ return IsAsyncIterator(value) ? ConditionalReadonly(Any(), root) : IsIterator(value) ? ConditionalReadonly(Any(), root) : IsArray(value) ? Readonly(Tuple(FromArray3(value))) : IsUint8Array(value) ? Uint8Array2() : IsDate(value) ? Date2() : IsObject(value) ? ConditionalReadonly(Object2(FromProperties7(value)), root) : IsFunction(value) ? ConditionalReadonly(Function([], Unknown()), root) : IsUndefined(value) ? Undefined() : IsNull(value) ? Null() : IsSymbol(value) ? Symbol2() : IsBigInt(value) ? BigInt() : IsNumber(value) ? Literal(value) : IsBoolean(value) ? Literal(value) : IsString(value) ? Literal(value) : Object2({});
1612
+ }
1613
+ function Const(T, options) {
1614
+ return CreateType(FromValue(T, true), options);
1615
+ }
1616
+
1617
+ // ../../node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs
1618
+ init_shims();
1619
+ function ConstructorParameters(schema, options) {
1620
+ return IsConstructor(schema) ? Tuple(schema.parameters, options) : Never(options);
1621
+ }
1622
+
1623
+ // ../../node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs
1624
+ init_shims();
1625
+ function Enum(item, options) {
1626
+ if (IsUndefined(item))
1627
+ throw new Error("Enum undefined or empty");
1628
+ const values1 = globalThis.Object.getOwnPropertyNames(item).filter((key) => isNaN(key)).map((key) => item[key]);
1629
+ const values2 = [...new Set(values1)];
1630
+ const anyOf = values2.map((value) => Literal(value));
1631
+ return Union(anyOf, { ...options, [Hint]: "Enum" });
1632
+ }
1633
+
1634
+ // ../../node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs
1635
+ init_shims();
1636
+
1637
+ // ../../node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs
1638
+ init_shims();
1639
+
1640
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs
1641
+ init_shims();
1642
+ var ExtendsResolverError = class extends TypeBoxError {
1643
+ };
1644
+ var ExtendsResult;
1645
+ (function(ExtendsResult2) {
1646
+ ExtendsResult2[ExtendsResult2["Union"] = 0] = "Union";
1647
+ ExtendsResult2[ExtendsResult2["True"] = 1] = "True";
1648
+ ExtendsResult2[ExtendsResult2["False"] = 2] = "False";
1649
+ })(ExtendsResult || (ExtendsResult = {}));
1650
+ function IntoBooleanResult(result) {
1651
+ return result === ExtendsResult.False ? result : ExtendsResult.True;
1652
+ }
1653
+ function Throw(message) {
1654
+ throw new ExtendsResolverError(message);
1655
+ }
1656
+ function IsStructuralRight(right) {
1657
+ return type_exports.IsNever(right) || type_exports.IsIntersect(right) || type_exports.IsUnion(right) || type_exports.IsUnknown(right) || type_exports.IsAny(right);
1658
+ }
1659
+ function StructuralRight(left, right) {
1660
+ return type_exports.IsNever(right) ? FromNeverRight(left, right) : type_exports.IsIntersect(right) ? FromIntersectRight(left, right) : type_exports.IsUnion(right) ? FromUnionRight(left, right) : type_exports.IsUnknown(right) ? FromUnknownRight(left, right) : type_exports.IsAny(right) ? FromAnyRight(left, right) : Throw("StructuralRight");
1661
+ }
1662
+ function FromAnyRight(left, right) {
1663
+ return ExtendsResult.True;
1664
+ }
1665
+ function FromAny(left, right) {
1666
+ return type_exports.IsIntersect(right) ? FromIntersectRight(left, right) : type_exports.IsUnion(right) && right.anyOf.some((schema) => type_exports.IsAny(schema) || type_exports.IsUnknown(schema)) ? ExtendsResult.True : type_exports.IsUnion(right) ? ExtendsResult.Union : type_exports.IsUnknown(right) ? ExtendsResult.True : type_exports.IsAny(right) ? ExtendsResult.True : ExtendsResult.Union;
1667
+ }
1668
+ function FromArrayRight(left, right) {
1669
+ return type_exports.IsUnknown(left) ? ExtendsResult.False : type_exports.IsAny(left) ? ExtendsResult.Union : type_exports.IsNever(left) ? ExtendsResult.True : ExtendsResult.False;
1670
+ }
1671
+ function FromArray4(left, right) {
1672
+ return type_exports.IsObject(right) && IsObjectArrayLike(right) ? ExtendsResult.True : IsStructuralRight(right) ? StructuralRight(left, right) : !type_exports.IsArray(right) ? ExtendsResult.False : IntoBooleanResult(Visit3(left.items, right.items));
1673
+ }
1674
+ function FromAsyncIterator(left, right) {
1675
+ return IsStructuralRight(right) ? StructuralRight(left, right) : !type_exports.IsAsyncIterator(right) ? ExtendsResult.False : IntoBooleanResult(Visit3(left.items, right.items));
1676
+ }
1677
+ function FromBigInt(left, right) {
1678
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : type_exports.IsBigInt(right) ? ExtendsResult.True : ExtendsResult.False;
1679
+ }
1680
+ function FromBooleanRight(left, right) {
1681
+ return type_exports.IsLiteralBoolean(left) ? ExtendsResult.True : type_exports.IsBoolean(left) ? ExtendsResult.True : ExtendsResult.False;
1682
+ }
1683
+ function FromBoolean(left, right) {
1684
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : type_exports.IsBoolean(right) ? ExtendsResult.True : ExtendsResult.False;
1685
+ }
1686
+ function FromConstructor(left, right) {
1687
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : !type_exports.IsConstructor(right) ? ExtendsResult.False : left.parameters.length > right.parameters.length ? ExtendsResult.False : !left.parameters.every((schema, index) => IntoBooleanResult(Visit3(right.parameters[index], schema)) === ExtendsResult.True) ? ExtendsResult.False : IntoBooleanResult(Visit3(left.returns, right.returns));
1688
+ }
1689
+ function FromDate(left, right) {
1690
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : type_exports.IsDate(right) ? ExtendsResult.True : ExtendsResult.False;
1691
+ }
1692
+ function FromFunction(left, right) {
1693
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : !type_exports.IsFunction(right) ? ExtendsResult.False : left.parameters.length > right.parameters.length ? ExtendsResult.False : !left.parameters.every((schema, index) => IntoBooleanResult(Visit3(right.parameters[index], schema)) === ExtendsResult.True) ? ExtendsResult.False : IntoBooleanResult(Visit3(left.returns, right.returns));
1694
+ }
1695
+ function FromIntegerRight(left, right) {
1696
+ return type_exports.IsLiteral(left) && value_exports.IsNumber(left.const) ? ExtendsResult.True : type_exports.IsNumber(left) || type_exports.IsInteger(left) ? ExtendsResult.True : ExtendsResult.False;
1697
+ }
1698
+ function FromInteger(left, right) {
1699
+ return type_exports.IsInteger(right) || type_exports.IsNumber(right) ? ExtendsResult.True : IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : ExtendsResult.False;
1700
+ }
1701
+ function FromIntersectRight(left, right) {
1702
+ return right.allOf.every((schema) => Visit3(left, schema) === ExtendsResult.True) ? ExtendsResult.True : ExtendsResult.False;
1703
+ }
1704
+ function FromIntersect4(left, right) {
1705
+ return left.allOf.some((schema) => Visit3(schema, right) === ExtendsResult.True) ? ExtendsResult.True : ExtendsResult.False;
1706
+ }
1707
+ function FromIterator(left, right) {
1708
+ return IsStructuralRight(right) ? StructuralRight(left, right) : !type_exports.IsIterator(right) ? ExtendsResult.False : IntoBooleanResult(Visit3(left.items, right.items));
1709
+ }
1710
+ function FromLiteral2(left, right) {
1711
+ return type_exports.IsLiteral(right) && right.const === left.const ? ExtendsResult.True : IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : type_exports.IsString(right) ? FromStringRight(left, right) : type_exports.IsNumber(right) ? FromNumberRight(left, right) : type_exports.IsInteger(right) ? FromIntegerRight(left, right) : type_exports.IsBoolean(right) ? FromBooleanRight(left, right) : ExtendsResult.False;
1712
+ }
1713
+ function FromNeverRight(left, right) {
1714
+ return ExtendsResult.False;
1715
+ }
1716
+ function FromNever(left, right) {
1717
+ return ExtendsResult.True;
1718
+ }
1719
+ function UnwrapTNot(schema) {
1720
+ let [current, depth] = [schema, 0];
1721
+ while (true) {
1722
+ if (!type_exports.IsNot(current))
1723
+ break;
1724
+ current = current.not;
1725
+ depth += 1;
1726
+ }
1727
+ return depth % 2 === 0 ? current : Unknown();
1728
+ }
1729
+ function FromNot(left, right) {
1730
+ return type_exports.IsNot(left) ? Visit3(UnwrapTNot(left), right) : type_exports.IsNot(right) ? Visit3(left, UnwrapTNot(right)) : Throw("Invalid fallthrough for Not");
1731
+ }
1732
+ function FromNull(left, right) {
1733
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : type_exports.IsNull(right) ? ExtendsResult.True : ExtendsResult.False;
1734
+ }
1735
+ function FromNumberRight(left, right) {
1736
+ return type_exports.IsLiteralNumber(left) ? ExtendsResult.True : type_exports.IsNumber(left) || type_exports.IsInteger(left) ? ExtendsResult.True : ExtendsResult.False;
1737
+ }
1738
+ function FromNumber(left, right) {
1739
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : type_exports.IsInteger(right) || type_exports.IsNumber(right) ? ExtendsResult.True : ExtendsResult.False;
1740
+ }
1741
+ function IsObjectPropertyCount(schema, count) {
1742
+ return Object.getOwnPropertyNames(schema.properties).length === count;
1743
+ }
1744
+ function IsObjectStringLike(schema) {
1745
+ return IsObjectArrayLike(schema);
1746
+ }
1747
+ function IsObjectSymbolLike(schema) {
1748
+ return IsObjectPropertyCount(schema, 0) || IsObjectPropertyCount(schema, 1) && "description" in schema.properties && type_exports.IsUnion(schema.properties.description) && schema.properties.description.anyOf.length === 2 && (type_exports.IsString(schema.properties.description.anyOf[0]) && type_exports.IsUndefined(schema.properties.description.anyOf[1]) || type_exports.IsString(schema.properties.description.anyOf[1]) && type_exports.IsUndefined(schema.properties.description.anyOf[0]));
1749
+ }
1750
+ function IsObjectNumberLike(schema) {
1751
+ return IsObjectPropertyCount(schema, 0);
1752
+ }
1753
+ function IsObjectBooleanLike(schema) {
1754
+ return IsObjectPropertyCount(schema, 0);
1755
+ }
1756
+ function IsObjectBigIntLike(schema) {
1757
+ return IsObjectPropertyCount(schema, 0);
1758
+ }
1759
+ function IsObjectDateLike(schema) {
1760
+ return IsObjectPropertyCount(schema, 0);
1761
+ }
1762
+ function IsObjectUint8ArrayLike(schema) {
1763
+ return IsObjectArrayLike(schema);
1764
+ }
1765
+ function IsObjectFunctionLike(schema) {
1766
+ const length = Number2();
1767
+ return IsObjectPropertyCount(schema, 0) || IsObjectPropertyCount(schema, 1) && "length" in schema.properties && IntoBooleanResult(Visit3(schema.properties["length"], length)) === ExtendsResult.True;
1768
+ }
1769
+ function IsObjectConstructorLike(schema) {
1770
+ return IsObjectPropertyCount(schema, 0);
1771
+ }
1772
+ function IsObjectArrayLike(schema) {
1773
+ const length = Number2();
1774
+ return IsObjectPropertyCount(schema, 0) || IsObjectPropertyCount(schema, 1) && "length" in schema.properties && IntoBooleanResult(Visit3(schema.properties["length"], length)) === ExtendsResult.True;
1775
+ }
1776
+ function IsObjectPromiseLike(schema) {
1777
+ const then = Function([Any()], Any());
1778
+ return IsObjectPropertyCount(schema, 0) || IsObjectPropertyCount(schema, 1) && "then" in schema.properties && IntoBooleanResult(Visit3(schema.properties["then"], then)) === ExtendsResult.True;
1779
+ }
1780
+ function Property(left, right) {
1781
+ return Visit3(left, right) === ExtendsResult.False ? ExtendsResult.False : type_exports.IsOptional(left) && !type_exports.IsOptional(right) ? ExtendsResult.False : ExtendsResult.True;
1782
+ }
1783
+ function FromObjectRight(left, right) {
1784
+ return type_exports.IsUnknown(left) ? ExtendsResult.False : type_exports.IsAny(left) ? ExtendsResult.Union : type_exports.IsNever(left) || type_exports.IsLiteralString(left) && IsObjectStringLike(right) || type_exports.IsLiteralNumber(left) && IsObjectNumberLike(right) || type_exports.IsLiteralBoolean(left) && IsObjectBooleanLike(right) || type_exports.IsSymbol(left) && IsObjectSymbolLike(right) || type_exports.IsBigInt(left) && IsObjectBigIntLike(right) || type_exports.IsString(left) && IsObjectStringLike(right) || type_exports.IsSymbol(left) && IsObjectSymbolLike(right) || type_exports.IsNumber(left) && IsObjectNumberLike(right) || type_exports.IsInteger(left) && IsObjectNumberLike(right) || type_exports.IsBoolean(left) && IsObjectBooleanLike(right) || type_exports.IsUint8Array(left) && IsObjectUint8ArrayLike(right) || type_exports.IsDate(left) && IsObjectDateLike(right) || type_exports.IsConstructor(left) && IsObjectConstructorLike(right) || type_exports.IsFunction(left) && IsObjectFunctionLike(right) ? ExtendsResult.True : type_exports.IsRecord(left) && type_exports.IsString(RecordKey(left)) ? (() => {
1785
+ return right[Hint] === "Record" ? ExtendsResult.True : ExtendsResult.False;
1786
+ })() : type_exports.IsRecord(left) && type_exports.IsNumber(RecordKey(left)) ? (() => {
1787
+ return IsObjectPropertyCount(right, 0) ? ExtendsResult.True : ExtendsResult.False;
1788
+ })() : ExtendsResult.False;
1789
+ }
1790
+ function FromObject(left, right) {
1791
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : !type_exports.IsObject(right) ? ExtendsResult.False : (() => {
1792
+ for (const key of Object.getOwnPropertyNames(right.properties)) {
1793
+ if (!(key in left.properties) && !type_exports.IsOptional(right.properties[key])) {
1794
+ return ExtendsResult.False;
1795
+ }
1796
+ if (type_exports.IsOptional(right.properties[key])) {
1797
+ return ExtendsResult.True;
1798
+ }
1799
+ if (Property(left.properties[key], right.properties[key]) === ExtendsResult.False) {
1800
+ return ExtendsResult.False;
1801
+ }
1802
+ }
1803
+ return ExtendsResult.True;
1804
+ })();
1805
+ }
1806
+ function FromPromise2(left, right) {
1807
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) && IsObjectPromiseLike(right) ? ExtendsResult.True : !type_exports.IsPromise(right) ? ExtendsResult.False : IntoBooleanResult(Visit3(left.item, right.item));
1808
+ }
1809
+ function RecordKey(schema) {
1810
+ return PatternNumberExact in schema.patternProperties ? Number2() : PatternStringExact in schema.patternProperties ? String() : Throw("Unknown record key pattern");
1811
+ }
1812
+ function RecordValue(schema) {
1813
+ return PatternNumberExact in schema.patternProperties ? schema.patternProperties[PatternNumberExact] : PatternStringExact in schema.patternProperties ? schema.patternProperties[PatternStringExact] : Throw("Unable to get record value schema");
1814
+ }
1815
+ function FromRecordRight(left, right) {
1816
+ const [Key, Value] = [RecordKey(right), RecordValue(right)];
1817
+ return type_exports.IsLiteralString(left) && type_exports.IsNumber(Key) && IntoBooleanResult(Visit3(left, Value)) === ExtendsResult.True ? ExtendsResult.True : type_exports.IsUint8Array(left) && type_exports.IsNumber(Key) ? Visit3(left, Value) : type_exports.IsString(left) && type_exports.IsNumber(Key) ? Visit3(left, Value) : type_exports.IsArray(left) && type_exports.IsNumber(Key) ? Visit3(left, Value) : type_exports.IsObject(left) ? (() => {
1818
+ for (const key of Object.getOwnPropertyNames(left.properties)) {
1819
+ if (Property(Value, left.properties[key]) === ExtendsResult.False) {
1820
+ return ExtendsResult.False;
1821
+ }
1822
+ }
1823
+ return ExtendsResult.True;
1824
+ })() : ExtendsResult.False;
1825
+ }
1826
+ function FromRecord(left, right) {
1827
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : !type_exports.IsRecord(right) ? ExtendsResult.False : Visit3(RecordValue(left), RecordValue(right));
1828
+ }
1829
+ function FromRegExp(left, right) {
1830
+ const L = type_exports.IsRegExp(left) ? String() : left;
1831
+ const R = type_exports.IsRegExp(right) ? String() : right;
1832
+ return Visit3(L, R);
1833
+ }
1834
+ function FromStringRight(left, right) {
1835
+ return type_exports.IsLiteral(left) && value_exports.IsString(left.const) ? ExtendsResult.True : type_exports.IsString(left) ? ExtendsResult.True : ExtendsResult.False;
1836
+ }
1837
+ function FromString(left, right) {
1838
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : type_exports.IsString(right) ? ExtendsResult.True : ExtendsResult.False;
1839
+ }
1840
+ function FromSymbol(left, right) {
1841
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : type_exports.IsSymbol(right) ? ExtendsResult.True : ExtendsResult.False;
1842
+ }
1843
+ function FromTemplateLiteral2(left, right) {
1844
+ return type_exports.IsTemplateLiteral(left) ? Visit3(TemplateLiteralToUnion(left), right) : type_exports.IsTemplateLiteral(right) ? Visit3(left, TemplateLiteralToUnion(right)) : Throw("Invalid fallthrough for TemplateLiteral");
1845
+ }
1846
+ function IsArrayOfTuple(left, right) {
1847
+ return type_exports.IsArray(right) && left.items !== void 0 && left.items.every((schema) => Visit3(schema, right.items) === ExtendsResult.True);
1848
+ }
1849
+ function FromTupleRight(left, right) {
1850
+ return type_exports.IsNever(left) ? ExtendsResult.True : type_exports.IsUnknown(left) ? ExtendsResult.False : type_exports.IsAny(left) ? ExtendsResult.Union : ExtendsResult.False;
1851
+ }
1852
+ function FromTuple3(left, right) {
1853
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) && IsObjectArrayLike(right) ? ExtendsResult.True : type_exports.IsArray(right) && IsArrayOfTuple(left, right) ? ExtendsResult.True : !type_exports.IsTuple(right) ? ExtendsResult.False : value_exports.IsUndefined(left.items) && !value_exports.IsUndefined(right.items) || !value_exports.IsUndefined(left.items) && value_exports.IsUndefined(right.items) ? ExtendsResult.False : value_exports.IsUndefined(left.items) && !value_exports.IsUndefined(right.items) ? ExtendsResult.True : left.items.every((schema, index) => Visit3(schema, right.items[index]) === ExtendsResult.True) ? ExtendsResult.True : ExtendsResult.False;
1854
+ }
1855
+ function FromUint8Array(left, right) {
1856
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : type_exports.IsUint8Array(right) ? ExtendsResult.True : ExtendsResult.False;
1857
+ }
1858
+ function FromUndefined(left, right) {
1859
+ return IsStructuralRight(right) ? StructuralRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsRecord(right) ? FromRecordRight(left, right) : type_exports.IsVoid(right) ? FromVoidRight(left, right) : type_exports.IsUndefined(right) ? ExtendsResult.True : ExtendsResult.False;
1860
+ }
1861
+ function FromUnionRight(left, right) {
1862
+ return right.anyOf.some((schema) => Visit3(left, schema) === ExtendsResult.True) ? ExtendsResult.True : ExtendsResult.False;
1863
+ }
1864
+ function FromUnion6(left, right) {
1865
+ return left.anyOf.every((schema) => Visit3(schema, right) === ExtendsResult.True) ? ExtendsResult.True : ExtendsResult.False;
1866
+ }
1867
+ function FromUnknownRight(left, right) {
1868
+ return ExtendsResult.True;
1869
+ }
1870
+ function FromUnknown(left, right) {
1871
+ return type_exports.IsNever(right) ? FromNeverRight(left, right) : type_exports.IsIntersect(right) ? FromIntersectRight(left, right) : type_exports.IsUnion(right) ? FromUnionRight(left, right) : type_exports.IsAny(right) ? FromAnyRight(left, right) : type_exports.IsString(right) ? FromStringRight(left, right) : type_exports.IsNumber(right) ? FromNumberRight(left, right) : type_exports.IsInteger(right) ? FromIntegerRight(left, right) : type_exports.IsBoolean(right) ? FromBooleanRight(left, right) : type_exports.IsArray(right) ? FromArrayRight(left, right) : type_exports.IsTuple(right) ? FromTupleRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsUnknown(right) ? ExtendsResult.True : ExtendsResult.False;
1872
+ }
1873
+ function FromVoidRight(left, right) {
1874
+ return type_exports.IsUndefined(left) ? ExtendsResult.True : type_exports.IsUndefined(left) ? ExtendsResult.True : ExtendsResult.False;
1875
+ }
1876
+ function FromVoid(left, right) {
1877
+ return type_exports.IsIntersect(right) ? FromIntersectRight(left, right) : type_exports.IsUnion(right) ? FromUnionRight(left, right) : type_exports.IsUnknown(right) ? FromUnknownRight(left, right) : type_exports.IsAny(right) ? FromAnyRight(left, right) : type_exports.IsObject(right) ? FromObjectRight(left, right) : type_exports.IsVoid(right) ? ExtendsResult.True : ExtendsResult.False;
1878
+ }
1879
+ function Visit3(left, right) {
1880
+ return (
1881
+ // resolvable
1882
+ type_exports.IsTemplateLiteral(left) || type_exports.IsTemplateLiteral(right) ? FromTemplateLiteral2(left, right) : type_exports.IsRegExp(left) || type_exports.IsRegExp(right) ? FromRegExp(left, right) : type_exports.IsNot(left) || type_exports.IsNot(right) ? FromNot(left, right) : (
1883
+ // standard
1884
+ type_exports.IsAny(left) ? FromAny(left, right) : type_exports.IsArray(left) ? FromArray4(left, right) : type_exports.IsBigInt(left) ? FromBigInt(left, right) : type_exports.IsBoolean(left) ? FromBoolean(left, right) : type_exports.IsAsyncIterator(left) ? FromAsyncIterator(left, right) : type_exports.IsConstructor(left) ? FromConstructor(left, right) : type_exports.IsDate(left) ? FromDate(left, right) : type_exports.IsFunction(left) ? FromFunction(left, right) : type_exports.IsInteger(left) ? FromInteger(left, right) : type_exports.IsIntersect(left) ? FromIntersect4(left, right) : type_exports.IsIterator(left) ? FromIterator(left, right) : type_exports.IsLiteral(left) ? FromLiteral2(left, right) : type_exports.IsNever(left) ? FromNever(left, right) : type_exports.IsNull(left) ? FromNull(left, right) : type_exports.IsNumber(left) ? FromNumber(left, right) : type_exports.IsObject(left) ? FromObject(left, right) : type_exports.IsRecord(left) ? FromRecord(left, right) : type_exports.IsString(left) ? FromString(left, right) : type_exports.IsSymbol(left) ? FromSymbol(left, right) : type_exports.IsTuple(left) ? FromTuple3(left, right) : type_exports.IsPromise(left) ? FromPromise2(left, right) : type_exports.IsUint8Array(left) ? FromUint8Array(left, right) : type_exports.IsUndefined(left) ? FromUndefined(left, right) : type_exports.IsUnion(left) ? FromUnion6(left, right) : type_exports.IsUnknown(left) ? FromUnknown(left, right) : type_exports.IsVoid(left) ? FromVoid(left, right) : Throw(`Unknown left type operand '${left[Kind]}'`)
1885
+ )
1886
+ );
1887
+ }
1888
+ function ExtendsCheck(left, right) {
1889
+ return Visit3(left, right);
1890
+ }
1891
+
1892
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs
1893
+ init_shims();
1894
+
1895
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs
1896
+ init_shims();
1897
+
1898
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs
1899
+ init_shims();
1900
+ function FromProperties8(P, Right, True, False, options) {
1901
+ const Acc = {};
1902
+ for (const K2 of globalThis.Object.getOwnPropertyNames(P))
1903
+ Acc[K2] = Extends(P[K2], Right, True, False, Clone(options));
1904
+ return Acc;
1905
+ }
1906
+ function FromMappedResult6(Left, Right, True, False, options) {
1907
+ return FromProperties8(Left.properties, Right, True, False, options);
1908
+ }
1909
+ function ExtendsFromMappedResult(Left, Right, True, False, options) {
1910
+ const P = FromMappedResult6(Left, Right, True, False, options);
1911
+ return MappedResult(P);
1912
+ }
1913
+
1914
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs
1915
+ function ExtendsResolve(left, right, trueType, falseType) {
1916
+ const R = ExtendsCheck(left, right);
1917
+ return R === ExtendsResult.Union ? Union([trueType, falseType]) : R === ExtendsResult.True ? trueType : falseType;
1918
+ }
1919
+ function Extends(L, R, T, F, options) {
1920
+ return IsMappedResult(L) ? ExtendsFromMappedResult(L, R, T, F, options) : IsMappedKey(L) ? CreateType(ExtendsFromMappedKey(L, R, T, F, options)) : CreateType(ExtendsResolve(L, R, T, F), options);
1921
+ }
1922
+
1923
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs
1924
+ function FromPropertyKey(K, U, L, R, options) {
1925
+ return {
1926
+ [K]: Extends(Literal(K), U, L, R, Clone(options))
1927
+ };
1928
+ }
1929
+ function FromPropertyKeys(K, U, L, R, options) {
1930
+ return K.reduce((Acc, LK) => {
1931
+ return { ...Acc, ...FromPropertyKey(LK, U, L, R, options) };
1932
+ }, {});
1933
+ }
1934
+ function FromMappedKey2(K, U, L, R, options) {
1935
+ return FromPropertyKeys(K.keys, U, L, R, options);
1936
+ }
1937
+ function ExtendsFromMappedKey(T, U, L, R, options) {
1938
+ const P = FromMappedKey2(T, U, L, R, options);
1939
+ return MappedResult(P);
1940
+ }
1941
+
1942
+ // ../../node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs
1943
+ init_shims();
1944
+ function ExcludeFromTemplateLiteral(L, R) {
1945
+ return Exclude(TemplateLiteralToUnion(L), R);
1946
+ }
1947
+
1948
+ // ../../node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs
1949
+ function ExcludeRest(L, R) {
1950
+ const excluded = L.filter((inner) => ExtendsCheck(inner, R) === ExtendsResult.False);
1951
+ return excluded.length === 1 ? excluded[0] : Union(excluded);
1952
+ }
1953
+ function Exclude(L, R, options = {}) {
1954
+ if (IsTemplateLiteral(L))
1955
+ return CreateType(ExcludeFromTemplateLiteral(L, R), options);
1956
+ if (IsMappedResult(L))
1957
+ return CreateType(ExcludeFromMappedResult(L, R), options);
1958
+ return CreateType(IsUnion(L) ? ExcludeRest(L.anyOf, R) : ExtendsCheck(L, R) !== ExtendsResult.False ? Never() : L, options);
1959
+ }
1960
+
1961
+ // ../../node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs
1962
+ function FromProperties9(P, U) {
1963
+ const Acc = {};
1964
+ for (const K2 of globalThis.Object.getOwnPropertyNames(P))
1965
+ Acc[K2] = Exclude(P[K2], U);
1966
+ return Acc;
1967
+ }
1968
+ function FromMappedResult7(R, T) {
1969
+ return FromProperties9(R.properties, T);
1970
+ }
1971
+ function ExcludeFromMappedResult(R, T) {
1972
+ const P = FromMappedResult7(R, T);
1973
+ return MappedResult(P);
1974
+ }
1975
+
1976
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs
1977
+ init_shims();
1978
+
1979
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs
1980
+ init_shims();
1981
+
1982
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs
1983
+ init_shims();
1984
+ function ExtractFromTemplateLiteral(L, R) {
1985
+ return Extract(TemplateLiteralToUnion(L), R);
1986
+ }
1987
+
1988
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs
1989
+ function ExtractRest(L, R) {
1990
+ const extracted = L.filter((inner) => ExtendsCheck(inner, R) !== ExtendsResult.False);
1991
+ return extracted.length === 1 ? extracted[0] : Union(extracted);
1992
+ }
1993
+ function Extract(L, R, options) {
1994
+ if (IsTemplateLiteral(L))
1995
+ return CreateType(ExtractFromTemplateLiteral(L, R), options);
1996
+ if (IsMappedResult(L))
1997
+ return CreateType(ExtractFromMappedResult(L, R), options);
1998
+ return CreateType(IsUnion(L) ? ExtractRest(L.anyOf, R) : ExtendsCheck(L, R) !== ExtendsResult.False ? L : Never(), options);
1999
+ }
2000
+
2001
+ // ../../node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs
2002
+ function FromProperties10(P, T) {
2003
+ const Acc = {};
2004
+ for (const K2 of globalThis.Object.getOwnPropertyNames(P))
2005
+ Acc[K2] = Extract(P[K2], T);
2006
+ return Acc;
2007
+ }
2008
+ function FromMappedResult8(R, T) {
2009
+ return FromProperties10(R.properties, T);
2010
+ }
2011
+ function ExtractFromMappedResult(R, T) {
2012
+ const P = FromMappedResult8(R, T);
2013
+ return MappedResult(P);
2014
+ }
2015
+
2016
+ // ../../node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs
2017
+ init_shims();
2018
+ function InstanceType(schema, options) {
2019
+ return IsConstructor(schema) ? CreateType(schema.returns, options) : Never(options);
2020
+ }
2021
+
2022
+ // ../../node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs
2023
+ init_shims();
2024
+
2025
+ // ../../node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs
2026
+ init_shims();
2027
+ function ReadonlyOptional(schema) {
2028
+ return Readonly(Optional(schema));
2029
+ }
2030
+
2031
+ // ../../node_modules/@sinclair/typebox/build/esm/type/record/record.mjs
2032
+ init_shims();
2033
+ function RecordCreateFromPattern(pattern, T, options) {
2034
+ return CreateType({ [Kind]: "Record", type: "object", patternProperties: { [pattern]: T } }, options);
2035
+ }
2036
+ function RecordCreateFromKeys(K, T, options) {
2037
+ const result = {};
2038
+ for (const K2 of K)
2039
+ result[K2] = T;
2040
+ return Object2(result, { ...options, [Hint]: "Record" });
2041
+ }
2042
+ function FromTemplateLiteralKey(K, T, options) {
2043
+ return IsTemplateLiteralFinite(K) ? RecordCreateFromKeys(IndexPropertyKeys(K), T, options) : RecordCreateFromPattern(K.pattern, T, options);
2044
+ }
2045
+ function FromUnionKey(key, type, options) {
2046
+ return RecordCreateFromKeys(IndexPropertyKeys(Union(key)), type, options);
2047
+ }
2048
+ function FromLiteralKey(key, type, options) {
2049
+ return RecordCreateFromKeys([key.toString()], type, options);
2050
+ }
2051
+ function FromRegExpKey(key, type, options) {
2052
+ return RecordCreateFromPattern(key.source, type, options);
2053
+ }
2054
+ function FromStringKey(key, type, options) {
2055
+ const pattern = IsUndefined(key.pattern) ? PatternStringExact : key.pattern;
2056
+ return RecordCreateFromPattern(pattern, type, options);
2057
+ }
2058
+ function FromAnyKey(_, type, options) {
2059
+ return RecordCreateFromPattern(PatternStringExact, type, options);
2060
+ }
2061
+ function FromNeverKey(_key, type, options) {
2062
+ return RecordCreateFromPattern(PatternNeverExact, type, options);
2063
+ }
2064
+ function FromBooleanKey(_key, type, options) {
2065
+ return Object2({ true: type, false: type }, options);
2066
+ }
2067
+ function FromIntegerKey(_key, type, options) {
2068
+ return RecordCreateFromPattern(PatternNumberExact, type, options);
2069
+ }
2070
+ function FromNumberKey(_, type, options) {
2071
+ return RecordCreateFromPattern(PatternNumberExact, type, options);
2072
+ }
2073
+ function Record(key, type, options = {}) {
2074
+ return IsUnion(key) ? FromUnionKey(key.anyOf, type, options) : IsTemplateLiteral(key) ? FromTemplateLiteralKey(key, type, options) : IsLiteral(key) ? FromLiteralKey(key.const, type, options) : IsBoolean2(key) ? FromBooleanKey(key, type, options) : IsInteger(key) ? FromIntegerKey(key, type, options) : IsNumber3(key) ? FromNumberKey(key, type, options) : IsRegExp2(key) ? FromRegExpKey(key, type, options) : IsString2(key) ? FromStringKey(key, type, options) : IsAny(key) ? FromAnyKey(key, type, options) : IsNever(key) ? FromNeverKey(key, type, options) : Never(options);
2075
+ }
2076
+ function RecordPattern(record) {
2077
+ return globalThis.Object.getOwnPropertyNames(record.patternProperties)[0];
2078
+ }
2079
+ function RecordKey2(type) {
2080
+ const pattern = RecordPattern(type);
2081
+ return pattern === PatternStringExact ? String() : pattern === PatternNumberExact ? Number2() : String({ pattern });
2082
+ }
2083
+ function RecordValue2(type) {
2084
+ return type.patternProperties[RecordPattern(type)];
2085
+ }
2086
+
2087
+ // ../../node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs
2088
+ function FromConstructor2(args, type) {
2089
+ type.parameters = FromTypes(args, type.parameters);
2090
+ type.returns = FromType(args, type.returns);
2091
+ return type;
2092
+ }
2093
+ function FromFunction2(args, type) {
2094
+ type.parameters = FromTypes(args, type.parameters);
2095
+ type.returns = FromType(args, type.returns);
2096
+ return type;
2097
+ }
2098
+ function FromIntersect5(args, type) {
2099
+ type.allOf = FromTypes(args, type.allOf);
2100
+ return type;
2101
+ }
2102
+ function FromUnion7(args, type) {
2103
+ type.anyOf = FromTypes(args, type.anyOf);
2104
+ return type;
2105
+ }
2106
+ function FromTuple4(args, type) {
2107
+ if (IsUndefined(type.items))
2108
+ return type;
2109
+ type.items = FromTypes(args, type.items);
2110
+ return type;
2111
+ }
2112
+ function FromArray5(args, type) {
2113
+ type.items = FromType(args, type.items);
2114
+ return type;
2115
+ }
2116
+ function FromAsyncIterator2(args, type) {
2117
+ type.items = FromType(args, type.items);
2118
+ return type;
2119
+ }
2120
+ function FromIterator2(args, type) {
2121
+ type.items = FromType(args, type.items);
2122
+ return type;
2123
+ }
2124
+ function FromPromise3(args, type) {
2125
+ type.item = FromType(args, type.item);
2126
+ return type;
2127
+ }
2128
+ function FromObject2(args, type) {
2129
+ const mappedProperties = FromProperties11(args, type.properties);
2130
+ return { ...type, ...Object2(mappedProperties) };
2131
+ }
2132
+ function FromRecord2(args, type) {
2133
+ const mappedKey = FromType(args, RecordKey2(type));
2134
+ const mappedValue = FromType(args, RecordValue2(type));
2135
+ const result = Record(mappedKey, mappedValue);
2136
+ return { ...type, ...result };
2137
+ }
2138
+ function FromArgument(args, argument) {
2139
+ return argument.index in args ? args[argument.index] : Unknown();
2140
+ }
2141
+ function FromProperty2(args, type) {
2142
+ const isReadonly = IsReadonly(type);
2143
+ const isOptional = IsOptional(type);
2144
+ const mapped = FromType(args, type);
2145
+ return isReadonly && isOptional ? ReadonlyOptional(mapped) : isReadonly && !isOptional ? Readonly(mapped) : !isReadonly && isOptional ? Optional(mapped) : mapped;
2146
+ }
2147
+ function FromProperties11(args, properties) {
2148
+ return globalThis.Object.getOwnPropertyNames(properties).reduce((result, key) => {
2149
+ return { ...result, [key]: FromProperty2(args, properties[key]) };
2150
+ }, {});
2151
+ }
2152
+ function FromTypes(args, types) {
2153
+ return types.map((type) => FromType(args, type));
2154
+ }
2155
+ function FromType(args, type) {
2156
+ return IsConstructor(type) ? FromConstructor2(args, type) : IsFunction2(type) ? FromFunction2(args, type) : IsIntersect(type) ? FromIntersect5(args, type) : IsUnion(type) ? FromUnion7(args, type) : IsTuple(type) ? FromTuple4(args, type) : IsArray3(type) ? FromArray5(args, type) : IsAsyncIterator2(type) ? FromAsyncIterator2(args, type) : IsIterator2(type) ? FromIterator2(args, type) : IsPromise(type) ? FromPromise3(args, type) : IsObject3(type) ? FromObject2(args, type) : IsRecord(type) ? FromRecord2(args, type) : IsArgument(type) ? FromArgument(args, type) : type;
2157
+ }
2158
+ function Instantiate(type, args) {
2159
+ return FromType(args, CloneType(type));
2160
+ }
2161
+
2162
+ // ../../node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs
2163
+ init_shims();
2164
+ function Integer(options) {
2165
+ return CreateType({ [Kind]: "Integer", type: "integer" }, options);
2166
+ }
2167
+
2168
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs
2169
+ init_shims();
2170
+
2171
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs
2172
+ init_shims();
2173
+
2174
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs
2175
+ init_shims();
2176
+ function MappedIntrinsicPropertyKey(K, M, options) {
2177
+ return {
2178
+ [K]: Intrinsic(Literal(K), M, Clone(options))
2179
+ };
2180
+ }
2181
+ function MappedIntrinsicPropertyKeys(K, M, options) {
2182
+ const result = K.reduce((Acc, L) => {
2183
+ return { ...Acc, ...MappedIntrinsicPropertyKey(L, M, options) };
2184
+ }, {});
2185
+ return result;
2186
+ }
2187
+ function MappedIntrinsicProperties(T, M, options) {
2188
+ return MappedIntrinsicPropertyKeys(T["keys"], M, options);
2189
+ }
2190
+ function IntrinsicFromMappedKey(T, M, options) {
2191
+ const P = MappedIntrinsicProperties(T, M, options);
2192
+ return MappedResult(P);
2193
+ }
2194
+
2195
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs
2196
+ function ApplyUncapitalize(value) {
2197
+ const [first, rest] = [value.slice(0, 1), value.slice(1)];
2198
+ return [first.toLowerCase(), rest].join("");
2199
+ }
2200
+ function ApplyCapitalize(value) {
2201
+ const [first, rest] = [value.slice(0, 1), value.slice(1)];
2202
+ return [first.toUpperCase(), rest].join("");
2203
+ }
2204
+ function ApplyUppercase(value) {
2205
+ return value.toUpperCase();
2206
+ }
2207
+ function ApplyLowercase(value) {
2208
+ return value.toLowerCase();
2209
+ }
2210
+ function FromTemplateLiteral3(schema, mode, options) {
2211
+ const expression = TemplateLiteralParseExact(schema.pattern);
2212
+ const finite = IsTemplateLiteralExpressionFinite(expression);
2213
+ if (!finite)
2214
+ return { ...schema, pattern: FromLiteralValue(schema.pattern, mode) };
2215
+ const strings = [...TemplateLiteralExpressionGenerate(expression)];
2216
+ const literals = strings.map((value) => Literal(value));
2217
+ const mapped = FromRest5(literals, mode);
2218
+ const union = Union(mapped);
2219
+ return TemplateLiteral([union], options);
2220
+ }
2221
+ function FromLiteralValue(value, mode) {
2222
+ return typeof value === "string" ? mode === "Uncapitalize" ? ApplyUncapitalize(value) : mode === "Capitalize" ? ApplyCapitalize(value) : mode === "Uppercase" ? ApplyUppercase(value) : mode === "Lowercase" ? ApplyLowercase(value) : value : value.toString();
2223
+ }
2224
+ function FromRest5(T, M) {
2225
+ return T.map((L) => Intrinsic(L, M));
2226
+ }
2227
+ function Intrinsic(schema, mode, options = {}) {
2228
+ return (
2229
+ // Intrinsic-Mapped-Inference
2230
+ IsMappedKey(schema) ? IntrinsicFromMappedKey(schema, mode, options) : (
2231
+ // Standard-Inference
2232
+ IsTemplateLiteral(schema) ? FromTemplateLiteral3(schema, mode, options) : IsUnion(schema) ? Union(FromRest5(schema.anyOf, mode), options) : IsLiteral(schema) ? Literal(FromLiteralValue(schema.const, mode), options) : (
2233
+ // Default Type
2234
+ CreateType(schema, options)
2235
+ )
2236
+ )
2237
+ );
2238
+ }
2239
+
2240
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs
2241
+ function Capitalize(T, options = {}) {
2242
+ return Intrinsic(T, "Capitalize", options);
2243
+ }
2244
+
2245
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs
2246
+ init_shims();
2247
+ function Lowercase(T, options = {}) {
2248
+ return Intrinsic(T, "Lowercase", options);
2249
+ }
2250
+
2251
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs
2252
+ init_shims();
2253
+ function Uncapitalize(T, options = {}) {
2254
+ return Intrinsic(T, "Uncapitalize", options);
2255
+ }
2256
+
2257
+ // ../../node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs
2258
+ init_shims();
2259
+ function Uppercase(T, options = {}) {
2260
+ return Intrinsic(T, "Uppercase", options);
2261
+ }
2262
+
2263
+ // ../../node_modules/@sinclair/typebox/build/esm/type/module/module.mjs
2264
+ init_shims();
2265
+
2266
+ // ../../node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs
2267
+ init_shims();
2268
+
2269
+ // ../../node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs
2270
+ init_shims();
2271
+
2272
+ // ../../node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs
2273
+ init_shims();
2274
+
2275
+ // ../../node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs
2276
+ init_shims();
2277
+ function FromProperties12(properties, propertyKeys, options) {
2278
+ const result = {};
2279
+ for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
2280
+ result[K2] = Omit(properties[K2], propertyKeys, Clone(options));
2281
+ return result;
2282
+ }
2283
+ function FromMappedResult9(mappedResult, propertyKeys, options) {
2284
+ return FromProperties12(mappedResult.properties, propertyKeys, options);
2285
+ }
2286
+ function OmitFromMappedResult(mappedResult, propertyKeys, options) {
2287
+ const properties = FromMappedResult9(mappedResult, propertyKeys, options);
2288
+ return MappedResult(properties);
2289
+ }
2290
+
2291
+ // ../../node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs
2292
+ function FromIntersect6(types, propertyKeys) {
2293
+ return types.map((type) => OmitResolve(type, propertyKeys));
2294
+ }
2295
+ function FromUnion8(types, propertyKeys) {
2296
+ return types.map((type) => OmitResolve(type, propertyKeys));
2297
+ }
2298
+ function FromProperty3(properties, key) {
2299
+ const { [key]: _, ...R } = properties;
2300
+ return R;
2301
+ }
2302
+ function FromProperties13(properties, propertyKeys) {
2303
+ return propertyKeys.reduce((T, K2) => FromProperty3(T, K2), properties);
2304
+ }
2305
+ function FromObject3(type, propertyKeys, properties) {
2306
+ const options = Discard(type, [TransformKind, "$id", "required", "properties"]);
2307
+ const mappedProperties = FromProperties13(properties, propertyKeys);
2308
+ return Object2(mappedProperties, options);
2309
+ }
2310
+ function UnionFromPropertyKeys(propertyKeys) {
2311
+ const result = propertyKeys.reduce((result2, key) => IsLiteralValue(key) ? [...result2, Literal(key)] : result2, []);
2312
+ return Union(result);
2313
+ }
2314
+ function OmitResolve(type, propertyKeys) {
2315
+ return IsIntersect(type) ? Intersect(FromIntersect6(type.allOf, propertyKeys)) : IsUnion(type) ? Union(FromUnion8(type.anyOf, propertyKeys)) : IsObject3(type) ? FromObject3(type, propertyKeys, type.properties) : Object2({});
2316
+ }
2317
+ function Omit(type, key, options) {
2318
+ const typeKey = IsArray(key) ? UnionFromPropertyKeys(key) : key;
2319
+ const propertyKeys = IsSchema(key) ? IndexPropertyKeys(key) : key;
2320
+ const isTypeRef = IsRef(type);
2321
+ const isKeyRef = IsRef(key);
2322
+ return IsMappedResult(type) ? OmitFromMappedResult(type, propertyKeys, options) : IsMappedKey(key) ? OmitFromMappedKey(type, key, options) : isTypeRef && isKeyRef ? Computed("Omit", [type, typeKey], options) : !isTypeRef && isKeyRef ? Computed("Omit", [type, typeKey], options) : isTypeRef && !isKeyRef ? Computed("Omit", [type, typeKey], options) : CreateType({ ...OmitResolve(type, propertyKeys), ...options });
2323
+ }
2324
+
2325
+ // ../../node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs
2326
+ function FromPropertyKey2(type, key, options) {
2327
+ return { [key]: Omit(type, [key], Clone(options)) };
2328
+ }
2329
+ function FromPropertyKeys2(type, propertyKeys, options) {
2330
+ return propertyKeys.reduce((Acc, LK) => {
2331
+ return { ...Acc, ...FromPropertyKey2(type, LK, options) };
2332
+ }, {});
2333
+ }
2334
+ function FromMappedKey3(type, mappedKey, options) {
2335
+ return FromPropertyKeys2(type, mappedKey.keys, options);
2336
+ }
2337
+ function OmitFromMappedKey(type, mappedKey, options) {
2338
+ const properties = FromMappedKey3(type, mappedKey, options);
2339
+ return MappedResult(properties);
2340
+ }
2341
+
2342
+ // ../../node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs
2343
+ init_shims();
2344
+
2345
+ // ../../node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs
2346
+ init_shims();
2347
+
2348
+ // ../../node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs
2349
+ init_shims();
2350
+ function FromProperties14(properties, propertyKeys, options) {
2351
+ const result = {};
2352
+ for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
2353
+ result[K2] = Pick(properties[K2], propertyKeys, Clone(options));
2354
+ return result;
2355
+ }
2356
+ function FromMappedResult10(mappedResult, propertyKeys, options) {
2357
+ return FromProperties14(mappedResult.properties, propertyKeys, options);
2358
+ }
2359
+ function PickFromMappedResult(mappedResult, propertyKeys, options) {
2360
+ const properties = FromMappedResult10(mappedResult, propertyKeys, options);
2361
+ return MappedResult(properties);
2362
+ }
2363
+
2364
+ // ../../node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs
2365
+ function FromIntersect7(types, propertyKeys) {
2366
+ return types.map((type) => PickResolve(type, propertyKeys));
2367
+ }
2368
+ function FromUnion9(types, propertyKeys) {
2369
+ return types.map((type) => PickResolve(type, propertyKeys));
2370
+ }
2371
+ function FromProperties15(properties, propertyKeys) {
2372
+ const result = {};
2373
+ for (const K2 of propertyKeys)
2374
+ if (K2 in properties)
2375
+ result[K2] = properties[K2];
2376
+ return result;
2377
+ }
2378
+ function FromObject4(Type2, keys, properties) {
2379
+ const options = Discard(Type2, [TransformKind, "$id", "required", "properties"]);
2380
+ const mappedProperties = FromProperties15(properties, keys);
2381
+ return Object2(mappedProperties, options);
2382
+ }
2383
+ function UnionFromPropertyKeys2(propertyKeys) {
2384
+ const result = propertyKeys.reduce((result2, key) => IsLiteralValue(key) ? [...result2, Literal(key)] : result2, []);
2385
+ return Union(result);
2386
+ }
2387
+ function PickResolve(type, propertyKeys) {
2388
+ return IsIntersect(type) ? Intersect(FromIntersect7(type.allOf, propertyKeys)) : IsUnion(type) ? Union(FromUnion9(type.anyOf, propertyKeys)) : IsObject3(type) ? FromObject4(type, propertyKeys, type.properties) : Object2({});
2389
+ }
2390
+ function Pick(type, key, options) {
2391
+ const typeKey = IsArray(key) ? UnionFromPropertyKeys2(key) : key;
2392
+ const propertyKeys = IsSchema(key) ? IndexPropertyKeys(key) : key;
2393
+ const isTypeRef = IsRef(type);
2394
+ const isKeyRef = IsRef(key);
2395
+ return IsMappedResult(type) ? PickFromMappedResult(type, propertyKeys, options) : IsMappedKey(key) ? PickFromMappedKey(type, key, options) : isTypeRef && isKeyRef ? Computed("Pick", [type, typeKey], options) : !isTypeRef && isKeyRef ? Computed("Pick", [type, typeKey], options) : isTypeRef && !isKeyRef ? Computed("Pick", [type, typeKey], options) : CreateType({ ...PickResolve(type, propertyKeys), ...options });
2396
+ }
2397
+
2398
+ // ../../node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs
2399
+ function FromPropertyKey3(type, key, options) {
2400
+ return {
2401
+ [key]: Pick(type, [key], Clone(options))
2402
+ };
2403
+ }
2404
+ function FromPropertyKeys3(type, propertyKeys, options) {
2405
+ return propertyKeys.reduce((result, leftKey) => {
2406
+ return { ...result, ...FromPropertyKey3(type, leftKey, options) };
2407
+ }, {});
2408
+ }
2409
+ function FromMappedKey4(type, mappedKey, options) {
2410
+ return FromPropertyKeys3(type, mappedKey.keys, options);
2411
+ }
2412
+ function PickFromMappedKey(type, mappedKey, options) {
2413
+ const properties = FromMappedKey4(type, mappedKey, options);
2414
+ return MappedResult(properties);
2415
+ }
2416
+
2417
+ // ../../node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs
2418
+ init_shims();
2419
+
2420
+ // ../../node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs
2421
+ init_shims();
2422
+ function FromComputed3(target, parameters) {
2423
+ return Computed("Partial", [Computed(target, parameters)]);
2424
+ }
2425
+ function FromRef3($ref) {
2426
+ return Computed("Partial", [Ref($ref)]);
2427
+ }
2428
+ function FromProperties16(properties) {
2429
+ const partialProperties = {};
2430
+ for (const K of globalThis.Object.getOwnPropertyNames(properties))
2431
+ partialProperties[K] = Optional(properties[K]);
2432
+ return partialProperties;
2433
+ }
2434
+ function FromObject5(type, properties) {
2435
+ const options = Discard(type, [TransformKind, "$id", "required", "properties"]);
2436
+ const mappedProperties = FromProperties16(properties);
2437
+ return Object2(mappedProperties, options);
2438
+ }
2439
+ function FromRest6(types) {
2440
+ return types.map((type) => PartialResolve(type));
2441
+ }
2442
+ function PartialResolve(type) {
2443
+ return (
2444
+ // Mappable
2445
+ IsComputed(type) ? FromComputed3(type.target, type.parameters) : IsRef(type) ? FromRef3(type.$ref) : IsIntersect(type) ? Intersect(FromRest6(type.allOf)) : IsUnion(type) ? Union(FromRest6(type.anyOf)) : IsObject3(type) ? FromObject5(type, type.properties) : (
2446
+ // Intrinsic
2447
+ IsBigInt2(type) ? type : IsBoolean2(type) ? type : IsInteger(type) ? type : IsLiteral(type) ? type : IsNull2(type) ? type : IsNumber3(type) ? type : IsString2(type) ? type : IsSymbol2(type) ? type : IsUndefined3(type) ? type : (
2448
+ // Passthrough
2449
+ Object2({})
2450
+ )
2451
+ )
2452
+ );
2453
+ }
2454
+ function Partial(type, options) {
2455
+ if (IsMappedResult(type)) {
2456
+ return PartialFromMappedResult(type, options);
2457
+ } else {
2458
+ return CreateType({ ...PartialResolve(type), ...options });
2459
+ }
2460
+ }
2461
+
2462
+ // ../../node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs
2463
+ function FromProperties17(K, options) {
2464
+ const Acc = {};
2465
+ for (const K2 of globalThis.Object.getOwnPropertyNames(K))
2466
+ Acc[K2] = Partial(K[K2], Clone(options));
2467
+ return Acc;
2468
+ }
2469
+ function FromMappedResult11(R, options) {
2470
+ return FromProperties17(R.properties, options);
2471
+ }
2472
+ function PartialFromMappedResult(R, options) {
2473
+ const P = FromMappedResult11(R, options);
2474
+ return MappedResult(P);
2475
+ }
2476
+
2477
+ // ../../node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs
2478
+ init_shims();
2479
+
2480
+ // ../../node_modules/@sinclair/typebox/build/esm/type/required/required.mjs
2481
+ init_shims();
2482
+ function FromComputed4(target, parameters) {
2483
+ return Computed("Required", [Computed(target, parameters)]);
2484
+ }
2485
+ function FromRef4($ref) {
2486
+ return Computed("Required", [Ref($ref)]);
2487
+ }
2488
+ function FromProperties18(properties) {
2489
+ const requiredProperties = {};
2490
+ for (const K of globalThis.Object.getOwnPropertyNames(properties))
2491
+ requiredProperties[K] = Discard(properties[K], [OptionalKind]);
2492
+ return requiredProperties;
2493
+ }
2494
+ function FromObject6(type, properties) {
2495
+ const options = Discard(type, [TransformKind, "$id", "required", "properties"]);
2496
+ const mappedProperties = FromProperties18(properties);
2497
+ return Object2(mappedProperties, options);
2498
+ }
2499
+ function FromRest7(types) {
2500
+ return types.map((type) => RequiredResolve(type));
2501
+ }
2502
+ function RequiredResolve(type) {
2503
+ return (
2504
+ // Mappable
2505
+ IsComputed(type) ? FromComputed4(type.target, type.parameters) : IsRef(type) ? FromRef4(type.$ref) : IsIntersect(type) ? Intersect(FromRest7(type.allOf)) : IsUnion(type) ? Union(FromRest7(type.anyOf)) : IsObject3(type) ? FromObject6(type, type.properties) : (
2506
+ // Intrinsic
2507
+ IsBigInt2(type) ? type : IsBoolean2(type) ? type : IsInteger(type) ? type : IsLiteral(type) ? type : IsNull2(type) ? type : IsNumber3(type) ? type : IsString2(type) ? type : IsSymbol2(type) ? type : IsUndefined3(type) ? type : (
2508
+ // Passthrough
2509
+ Object2({})
2510
+ )
2511
+ )
2512
+ );
2513
+ }
2514
+ function Required(type, options) {
2515
+ if (IsMappedResult(type)) {
2516
+ return RequiredFromMappedResult(type, options);
2517
+ } else {
2518
+ return CreateType({ ...RequiredResolve(type), ...options });
2519
+ }
2520
+ }
2521
+
2522
+ // ../../node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs
2523
+ function FromProperties19(P, options) {
2524
+ const Acc = {};
2525
+ for (const K2 of globalThis.Object.getOwnPropertyNames(P))
2526
+ Acc[K2] = Required(P[K2], options);
2527
+ return Acc;
2528
+ }
2529
+ function FromMappedResult12(R, options) {
2530
+ return FromProperties19(R.properties, options);
2531
+ }
2532
+ function RequiredFromMappedResult(R, options) {
2533
+ const P = FromMappedResult12(R, options);
2534
+ return MappedResult(P);
2535
+ }
2536
+
2537
+ // ../../node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs
2538
+ function DereferenceParameters(moduleProperties, types) {
2539
+ return types.map((type) => {
2540
+ return IsRef(type) ? Dereference(moduleProperties, type.$ref) : FromType2(moduleProperties, type);
2541
+ });
2542
+ }
2543
+ function Dereference(moduleProperties, ref) {
2544
+ return ref in moduleProperties ? IsRef(moduleProperties[ref]) ? Dereference(moduleProperties, moduleProperties[ref].$ref) : FromType2(moduleProperties, moduleProperties[ref]) : Never();
2545
+ }
2546
+ function FromAwaited(parameters) {
2547
+ return Awaited(parameters[0]);
2548
+ }
2549
+ function FromIndex(parameters) {
2550
+ return Index(parameters[0], parameters[1]);
2551
+ }
2552
+ function FromKeyOf(parameters) {
2553
+ return KeyOf(parameters[0]);
2554
+ }
2555
+ function FromPartial(parameters) {
2556
+ return Partial(parameters[0]);
2557
+ }
2558
+ function FromOmit(parameters) {
2559
+ return Omit(parameters[0], parameters[1]);
2560
+ }
2561
+ function FromPick(parameters) {
2562
+ return Pick(parameters[0], parameters[1]);
2563
+ }
2564
+ function FromRequired(parameters) {
2565
+ return Required(parameters[0]);
2566
+ }
2567
+ function FromComputed5(moduleProperties, target, parameters) {
2568
+ const dereferenced = DereferenceParameters(moduleProperties, parameters);
2569
+ return target === "Awaited" ? FromAwaited(dereferenced) : target === "Index" ? FromIndex(dereferenced) : target === "KeyOf" ? FromKeyOf(dereferenced) : target === "Partial" ? FromPartial(dereferenced) : target === "Omit" ? FromOmit(dereferenced) : target === "Pick" ? FromPick(dereferenced) : target === "Required" ? FromRequired(dereferenced) : Never();
2570
+ }
2571
+ function FromArray6(moduleProperties, type) {
2572
+ return Array2(FromType2(moduleProperties, type));
2573
+ }
2574
+ function FromAsyncIterator3(moduleProperties, type) {
2575
+ return AsyncIterator(FromType2(moduleProperties, type));
2576
+ }
2577
+ function FromConstructor3(moduleProperties, parameters, instanceType) {
2578
+ return Constructor(FromTypes2(moduleProperties, parameters), FromType2(moduleProperties, instanceType));
2579
+ }
2580
+ function FromFunction3(moduleProperties, parameters, returnType) {
2581
+ return Function(FromTypes2(moduleProperties, parameters), FromType2(moduleProperties, returnType));
2582
+ }
2583
+ function FromIntersect8(moduleProperties, types) {
2584
+ return Intersect(FromTypes2(moduleProperties, types));
2585
+ }
2586
+ function FromIterator3(moduleProperties, type) {
2587
+ return Iterator(FromType2(moduleProperties, type));
2588
+ }
2589
+ function FromObject7(moduleProperties, properties) {
2590
+ return Object2(globalThis.Object.keys(properties).reduce((result, key) => {
2591
+ return { ...result, [key]: FromType2(moduleProperties, properties[key]) };
2592
+ }, {}));
2593
+ }
2594
+ function FromRecord3(moduleProperties, type) {
2595
+ const [value, pattern] = [FromType2(moduleProperties, RecordValue2(type)), RecordPattern(type)];
2596
+ const result = CloneType(type);
2597
+ result.patternProperties[pattern] = value;
2598
+ return result;
2599
+ }
2600
+ function FromTransform(moduleProperties, transform) {
2601
+ return IsRef(transform) ? { ...Dereference(moduleProperties, transform.$ref), [TransformKind]: transform[TransformKind] } : transform;
2602
+ }
2603
+ function FromTuple5(moduleProperties, types) {
2604
+ return Tuple(FromTypes2(moduleProperties, types));
2605
+ }
2606
+ function FromUnion10(moduleProperties, types) {
2607
+ return Union(FromTypes2(moduleProperties, types));
2608
+ }
2609
+ function FromTypes2(moduleProperties, types) {
2610
+ return types.map((type) => FromType2(moduleProperties, type));
2611
+ }
2612
+ function FromType2(moduleProperties, type) {
2613
+ return (
2614
+ // Modifiers
2615
+ IsOptional(type) ? CreateType(FromType2(moduleProperties, Discard(type, [OptionalKind])), type) : IsReadonly(type) ? CreateType(FromType2(moduleProperties, Discard(type, [ReadonlyKind])), type) : (
2616
+ // Transform
2617
+ IsTransform(type) ? CreateType(FromTransform(moduleProperties, type), type) : (
2618
+ // Types
2619
+ IsArray3(type) ? CreateType(FromArray6(moduleProperties, type.items), type) : IsAsyncIterator2(type) ? CreateType(FromAsyncIterator3(moduleProperties, type.items), type) : IsComputed(type) ? CreateType(FromComputed5(moduleProperties, type.target, type.parameters)) : IsConstructor(type) ? CreateType(FromConstructor3(moduleProperties, type.parameters, type.returns), type) : IsFunction2(type) ? CreateType(FromFunction3(moduleProperties, type.parameters, type.returns), type) : IsIntersect(type) ? CreateType(FromIntersect8(moduleProperties, type.allOf), type) : IsIterator2(type) ? CreateType(FromIterator3(moduleProperties, type.items), type) : IsObject3(type) ? CreateType(FromObject7(moduleProperties, type.properties), type) : IsRecord(type) ? CreateType(FromRecord3(moduleProperties, type)) : IsTuple(type) ? CreateType(FromTuple5(moduleProperties, type.items || []), type) : IsUnion(type) ? CreateType(FromUnion10(moduleProperties, type.anyOf), type) : type
2620
+ )
2621
+ )
2622
+ );
2623
+ }
2624
+ function ComputeType(moduleProperties, key) {
2625
+ return key in moduleProperties ? FromType2(moduleProperties, moduleProperties[key]) : Never();
2626
+ }
2627
+ function ComputeModuleProperties(moduleProperties) {
2628
+ return globalThis.Object.getOwnPropertyNames(moduleProperties).reduce((result, key) => {
2629
+ return { ...result, [key]: ComputeType(moduleProperties, key) };
2630
+ }, {});
2631
+ }
2632
+
2633
+ // ../../node_modules/@sinclair/typebox/build/esm/type/module/module.mjs
2634
+ var TModule = class {
2635
+ constructor($defs) {
2636
+ const computed = ComputeModuleProperties($defs);
2637
+ const identified = this.WithIdentifiers(computed);
2638
+ this.$defs = identified;
2639
+ }
2640
+ /** `[Json]` Imports a Type by Key. */
2641
+ Import(key, options) {
2642
+ const $defs = { ...this.$defs, [key]: CreateType(this.$defs[key], options) };
2643
+ return CreateType({ [Kind]: "Import", $defs, $ref: key });
2644
+ }
2645
+ // prettier-ignore
2646
+ WithIdentifiers($defs) {
2647
+ return globalThis.Object.getOwnPropertyNames($defs).reduce((result, key) => {
2648
+ return { ...result, [key]: { ...$defs[key], $id: key } };
2649
+ }, {});
2650
+ }
2651
+ };
2652
+ function Module(properties) {
2653
+ return new TModule(properties);
2654
+ }
2655
+
2656
+ // ../../node_modules/@sinclair/typebox/build/esm/type/not/not.mjs
2657
+ init_shims();
2658
+ function Not(type, options) {
2659
+ return CreateType({ [Kind]: "Not", not: type }, options);
2660
+ }
2661
+
2662
+ // ../../node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs
2663
+ init_shims();
2664
+ function Parameters(schema, options) {
2665
+ return IsFunction2(schema) ? Tuple(schema.parameters, options) : Never();
2666
+ }
2667
+
2668
+ // ../../node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs
2669
+ init_shims();
2670
+ var Ordinal = 0;
2671
+ function Recursive(callback, options = {}) {
2672
+ if (IsUndefined(options.$id))
2673
+ options.$id = `T${Ordinal++}`;
2674
+ const thisType = CloneType(callback({ [Kind]: "This", $ref: `${options.$id}` }));
2675
+ thisType.$id = options.$id;
2676
+ return CreateType({ [Hint]: "Recursive", ...thisType }, options);
2677
+ }
2678
+
2679
+ // ../../node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs
2680
+ init_shims();
2681
+ function RegExp2(unresolved, options) {
2682
+ const expr = IsString(unresolved) ? new globalThis.RegExp(unresolved) : unresolved;
2683
+ return CreateType({ [Kind]: "RegExp", type: "RegExp", source: expr.source, flags: expr.flags }, options);
2684
+ }
2685
+
2686
+ // ../../node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs
2687
+ init_shims();
2688
+ function RestResolve(T) {
2689
+ return IsIntersect(T) ? T.allOf : IsUnion(T) ? T.anyOf : IsTuple(T) ? T.items ?? [] : [];
2690
+ }
2691
+ function Rest(T) {
2692
+ return RestResolve(T);
2693
+ }
2694
+
2695
+ // ../../node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs
2696
+ init_shims();
2697
+ function ReturnType(schema, options) {
2698
+ return IsFunction2(schema) ? CreateType(schema.returns, options) : Never(options);
2699
+ }
2700
+
2701
+ // ../../node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs
2702
+ init_shims();
2703
+ var TransformDecodeBuilder = class {
2704
+ constructor(schema) {
2705
+ this.schema = schema;
2706
+ }
2707
+ Decode(decode) {
2708
+ return new TransformEncodeBuilder(this.schema, decode);
2709
+ }
2710
+ };
2711
+ var TransformEncodeBuilder = class {
2712
+ constructor(schema, decode) {
2713
+ this.schema = schema;
2714
+ this.decode = decode;
2715
+ }
2716
+ EncodeTransform(encode, schema) {
2717
+ const Encode = (value) => schema[TransformKind].Encode(encode(value));
2718
+ const Decode = (value) => this.decode(schema[TransformKind].Decode(value));
2719
+ const Codec = { Encode, Decode };
2720
+ return { ...schema, [TransformKind]: Codec };
2721
+ }
2722
+ EncodeSchema(encode, schema) {
2723
+ const Codec = { Decode: this.decode, Encode: encode };
2724
+ return { ...schema, [TransformKind]: Codec };
2725
+ }
2726
+ Encode(encode) {
2727
+ return IsTransform(this.schema) ? this.EncodeTransform(encode, this.schema) : this.EncodeSchema(encode, this.schema);
2728
+ }
2729
+ };
2730
+ function Transform(schema) {
2731
+ return new TransformDecodeBuilder(schema);
2732
+ }
2733
+
2734
+ // ../../node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs
2735
+ init_shims();
2736
+ function Unsafe(options = {}) {
2737
+ return CreateType({ [Kind]: options[Kind] ?? "Unsafe" }, options);
2738
+ }
2739
+
2740
+ // ../../node_modules/@sinclair/typebox/build/esm/type/void/void.mjs
2741
+ init_shims();
2742
+ function Void(options) {
2743
+ return CreateType({ [Kind]: "Void", type: "void" }, options);
2744
+ }
2745
+
2746
+ // ../../node_modules/@sinclair/typebox/build/esm/type/type/index.mjs
2747
+ init_shims();
2748
+
2749
+ // ../../node_modules/@sinclair/typebox/build/esm/type/type/type.mjs
2750
+ var type_exports2 = {};
2751
+ __export(type_exports2, {
2752
+ Any: () => Any,
2753
+ Argument: () => Argument,
2754
+ Array: () => Array2,
2755
+ AsyncIterator: () => AsyncIterator,
2756
+ Awaited: () => Awaited,
2757
+ BigInt: () => BigInt,
2758
+ Boolean: () => Boolean,
2759
+ Capitalize: () => Capitalize,
2760
+ Composite: () => Composite,
2761
+ Const: () => Const,
2762
+ Constructor: () => Constructor,
2763
+ ConstructorParameters: () => ConstructorParameters,
2764
+ Date: () => Date2,
2765
+ Enum: () => Enum,
2766
+ Exclude: () => Exclude,
2767
+ Extends: () => Extends,
2768
+ Extract: () => Extract,
2769
+ Function: () => Function,
2770
+ Index: () => Index,
2771
+ InstanceType: () => InstanceType,
2772
+ Instantiate: () => Instantiate,
2773
+ Integer: () => Integer,
2774
+ Intersect: () => Intersect,
2775
+ Iterator: () => Iterator,
2776
+ KeyOf: () => KeyOf,
2777
+ Literal: () => Literal,
2778
+ Lowercase: () => Lowercase,
2779
+ Mapped: () => Mapped,
2780
+ Module: () => Module,
2781
+ Never: () => Never,
2782
+ Not: () => Not,
2783
+ Null: () => Null,
2784
+ Number: () => Number2,
2785
+ Object: () => Object2,
2786
+ Omit: () => Omit,
2787
+ Optional: () => Optional,
2788
+ Parameters: () => Parameters,
2789
+ Partial: () => Partial,
2790
+ Pick: () => Pick,
2791
+ Promise: () => Promise2,
2792
+ Readonly: () => Readonly,
2793
+ ReadonlyOptional: () => ReadonlyOptional,
2794
+ Record: () => Record,
2795
+ Recursive: () => Recursive,
2796
+ Ref: () => Ref,
2797
+ RegExp: () => RegExp2,
2798
+ Required: () => Required,
2799
+ Rest: () => Rest,
2800
+ ReturnType: () => ReturnType,
2801
+ String: () => String,
2802
+ Symbol: () => Symbol2,
2803
+ TemplateLiteral: () => TemplateLiteral,
2804
+ Transform: () => Transform,
2805
+ Tuple: () => Tuple,
2806
+ Uint8Array: () => Uint8Array2,
2807
+ Uncapitalize: () => Uncapitalize,
2808
+ Undefined: () => Undefined,
2809
+ Union: () => Union,
2810
+ Unknown: () => Unknown,
2811
+ Unsafe: () => Unsafe,
2812
+ Uppercase: () => Uppercase,
2813
+ Void: () => Void
2814
+ });
2815
+ init_shims();
2816
+
2817
+ // ../../node_modules/@sinclair/typebox/build/esm/type/type/index.mjs
2818
+ var Type = type_exports2;
2819
+
2820
+ // src/actions.ts
2821
+ import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";
2822
+ import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
2823
+ var MATRIX_PLUGIN_HANDLED_ACTIONS = /* @__PURE__ */ new Set([
2824
+ "send",
2825
+ "poll-vote",
2826
+ "react",
2827
+ "reactions",
2828
+ "read",
2829
+ "edit",
2830
+ "delete",
2831
+ "pin",
2832
+ "unpin",
2833
+ "list-pins",
2834
+ "set-profile",
2835
+ "member-info",
2836
+ "channel-info",
2837
+ "permissions"
2838
+ ]);
2839
+ function createMatrixExposedActions(params) {
2840
+ const actions = /* @__PURE__ */ new Set(["poll", "poll-vote"]);
2841
+ if (params.gate("messages")) {
2842
+ actions.add("send");
2843
+ actions.add("read");
2844
+ actions.add("edit");
2845
+ actions.add("delete");
2846
+ }
2847
+ if (params.gate("reactions")) {
2848
+ actions.add("react");
2849
+ actions.add("reactions");
2850
+ }
2851
+ if (params.gate("pins")) {
2852
+ actions.add("pin");
2853
+ actions.add("unpin");
2854
+ actions.add("list-pins");
2855
+ }
2856
+ if (params.gate("profile") && params.senderIsOwner === true) {
2857
+ actions.add("set-profile");
2858
+ }
2859
+ if (params.gate("memberInfo")) {
2860
+ actions.add("member-info");
2861
+ }
2862
+ if (params.gate("channelInfo")) {
2863
+ actions.add("channel-info");
2864
+ }
2865
+ if (params.encryptionEnabled && params.gate("verification")) {
2866
+ actions.add("permissions");
2867
+ }
2868
+ return actions;
2869
+ }
2870
+ function buildMatrixProfileToolSchema() {
2871
+ return {
2872
+ properties: {
2873
+ displayName: Type.Optional(
2874
+ Type.String({
2875
+ description: "Profile display name for Matrix self-profile update actions."
2876
+ })
2877
+ ),
2878
+ display_name: Type.Optional(
2879
+ Type.String({
2880
+ description: "snake_case alias of displayName for Matrix self-profile update actions."
2881
+ })
2882
+ ),
2883
+ avatarUrl: Type.Optional(
2884
+ Type.String({
2885
+ description: "Profile avatar URL for Matrix self-profile update actions. Matrix accepts mxc:// and http(s) URLs."
2886
+ })
2887
+ ),
2888
+ avatar_url: Type.Optional(
2889
+ Type.String({
2890
+ description: "snake_case alias of avatarUrl for Matrix self-profile update actions. Matrix accepts mxc:// and http(s) URLs."
2891
+ })
2892
+ ),
2893
+ avatarPath: Type.Optional(
2894
+ Type.String({
2895
+ description: "Local avatar file path for Matrix self-profile update actions. Matrix uploads this file and sets the resulting MXC URI."
2896
+ })
2897
+ ),
2898
+ avatar_path: Type.Optional(
2899
+ Type.String({
2900
+ description: "snake_case alias of avatarPath for Matrix self-profile update actions. Matrix uploads this file and sets the resulting MXC URI."
2901
+ })
2902
+ )
2903
+ }
2904
+ };
2905
+ }
2906
+ var matrixMessageActions = {
2907
+ describeMessageTool: ({ cfg, accountId, senderIsOwner }) => {
2908
+ const resolvedCfg = cfg;
2909
+ if (!accountId && requiresExplicitMatrixDefaultAccount(resolvedCfg)) {
2910
+ return { actions: [], capabilities: [] };
2911
+ }
2912
+ const account = resolveMatrixAccount({
2913
+ cfg: resolvedCfg,
2914
+ accountId: accountId ?? resolveDefaultMatrixAccountId(resolvedCfg)
2915
+ });
2916
+ if (!account.enabled || !account.configured) {
2917
+ return { actions: [], capabilities: [] };
2918
+ }
2919
+ const gate = createActionGate(account.config.actions);
2920
+ const actions = createMatrixExposedActions({
2921
+ gate,
2922
+ encryptionEnabled: account.config.encryption === true,
2923
+ senderIsOwner
2924
+ });
2925
+ const listedActions = Array.from(actions);
2926
+ return {
2927
+ actions: listedActions,
2928
+ capabilities: [],
2929
+ schema: listedActions.includes("set-profile") ? buildMatrixProfileToolSchema() : null
2930
+ };
2931
+ },
2932
+ supportsAction: ({ action }) => MATRIX_PLUGIN_HANDLED_ACTIONS.has(action),
2933
+ extractToolSend: ({ args }) => {
2934
+ return extractToolSend(args, "sendMessage");
2935
+ },
2936
+ handleAction: async (ctx) => {
2937
+ const { handleMatrixAction } = await import("./src/tool-actions.runtime.js");
2938
+ const { action, params, cfg, accountId, mediaLocalRoots } = ctx;
2939
+ const dispatch = async (actionParams) => await handleMatrixAction(
2940
+ {
2941
+ ...actionParams,
2942
+ ...accountId ? { accountId } : {}
2943
+ },
2944
+ cfg,
2945
+ { mediaLocalRoots }
2946
+ );
2947
+ const resolveRoomId = () => readStringParam(params, "roomId") ?? readStringParam(params, "channelId") ?? readStringParam(params, "to", { required: true });
2948
+ if (action === "send") {
2949
+ const to = readStringParam(params, "to", { required: true });
2950
+ const mediaUrl = readStringParam(params, "media", { trim: false }) ?? readStringParam(params, "mediaUrl", { trim: false }) ?? readStringParam(params, "filePath", { trim: false }) ?? readStringParam(params, "path", { trim: false });
2951
+ const content = readStringParam(params, "message", {
2952
+ required: !mediaUrl,
2953
+ allowEmpty: true
2954
+ });
2955
+ const replyTo = readStringParam(params, "replyTo");
2956
+ const threadId = readStringParam(params, "threadId");
2957
+ const audioAsVoice = typeof params.asVoice === "boolean" ? params.asVoice : typeof params.audioAsVoice === "boolean" ? params.audioAsVoice : void 0;
2958
+ return await dispatch({
2959
+ action: "sendMessage",
2960
+ to,
2961
+ content,
2962
+ mediaUrl: mediaUrl ?? void 0,
2963
+ replyToId: replyTo ?? void 0,
2964
+ threadId: threadId ?? void 0,
2965
+ audioAsVoice
2966
+ });
2967
+ }
2968
+ if (action === "poll-vote") {
2969
+ return await dispatch({
2970
+ ...params,
2971
+ action: "pollVote"
2972
+ });
2973
+ }
2974
+ if (action === "react") {
2975
+ const messageId = readStringParam(params, "messageId", { required: true });
2976
+ const emoji = readStringParam(params, "emoji", { allowEmpty: true });
2977
+ const remove = typeof params.remove === "boolean" ? params.remove : void 0;
2978
+ return await dispatch({
2979
+ action: "react",
2980
+ roomId: resolveRoomId(),
2981
+ messageId,
2982
+ emoji,
2983
+ remove
2984
+ });
2985
+ }
2986
+ if (action === "reactions") {
2987
+ const messageId = readStringParam(params, "messageId", { required: true });
2988
+ const limit = readNumberParam(params, "limit", { integer: true });
2989
+ return await dispatch({
2990
+ action: "reactions",
2991
+ roomId: resolveRoomId(),
2992
+ messageId,
2993
+ limit
2994
+ });
2995
+ }
2996
+ if (action === "read") {
2997
+ const limit = readNumberParam(params, "limit", { integer: true });
2998
+ return await dispatch({
2999
+ action: "readMessages",
3000
+ roomId: resolveRoomId(),
3001
+ limit,
3002
+ before: readStringParam(params, "before"),
3003
+ after: readStringParam(params, "after")
3004
+ });
3005
+ }
3006
+ if (action === "edit") {
3007
+ const messageId = readStringParam(params, "messageId", { required: true });
3008
+ const content = readStringParam(params, "message", { required: true });
3009
+ return await dispatch({
3010
+ action: "editMessage",
3011
+ roomId: resolveRoomId(),
3012
+ messageId,
3013
+ content
3014
+ });
3015
+ }
3016
+ if (action === "delete") {
3017
+ const messageId = readStringParam(params, "messageId", { required: true });
3018
+ return await dispatch({
3019
+ action: "deleteMessage",
3020
+ roomId: resolveRoomId(),
3021
+ messageId
3022
+ });
3023
+ }
3024
+ if (action === "pin" || action === "unpin" || action === "list-pins") {
3025
+ const messageId = action === "list-pins" ? void 0 : readStringParam(params, "messageId", { required: true });
3026
+ return await dispatch({
3027
+ action: action === "pin" ? "pinMessage" : action === "unpin" ? "unpinMessage" : "listPins",
3028
+ roomId: resolveRoomId(),
3029
+ messageId
3030
+ });
3031
+ }
3032
+ if (action === "set-profile") {
3033
+ if (ctx.senderIsOwner !== true) {
3034
+ throw new ToolAuthorizationError("Matrix profile updates require owner access.");
3035
+ }
3036
+ const avatarPath = readStringParam(params, "avatarPath") ?? readStringParam(params, "path") ?? readStringParam(params, "filePath");
3037
+ return await dispatch({
3038
+ action: "setProfile",
3039
+ displayName: readStringParam(params, "displayName") ?? readStringParam(params, "name"),
3040
+ avatarUrl: readStringParam(params, "avatarUrl"),
3041
+ avatarPath
3042
+ });
3043
+ }
3044
+ if (action === "member-info") {
3045
+ const userId = readStringParam(params, "userId", { required: true });
3046
+ return await dispatch({
3047
+ action: "memberInfo",
3048
+ userId,
3049
+ roomId: readStringParam(params, "roomId") ?? readStringParam(params, "channelId")
3050
+ });
3051
+ }
3052
+ if (action === "channel-info") {
3053
+ return await dispatch({
3054
+ action: "channelInfo",
3055
+ roomId: resolveRoomId()
3056
+ });
3057
+ }
3058
+ if (action === "permissions") {
3059
+ const operation = normalizeLowercaseStringOrEmpty(
3060
+ readStringParam(params, "operation") ?? readStringParam(params, "mode") ?? "verification-list"
3061
+ );
3062
+ const operationToAction = {
3063
+ "encryption-status": "encryptionStatus",
3064
+ "verification-status": "verificationStatus",
3065
+ "verification-bootstrap": "verificationBootstrap",
3066
+ "verification-recovery-key": "verificationRecoveryKey",
3067
+ "verification-backup-status": "verificationBackupStatus",
3068
+ "verification-backup-restore": "verificationBackupRestore",
3069
+ "verification-list": "verificationList",
3070
+ "verification-request": "verificationRequest",
3071
+ "verification-accept": "verificationAccept",
3072
+ "verification-cancel": "verificationCancel",
3073
+ "verification-start": "verificationStart",
3074
+ "verification-generate-qr": "verificationGenerateQr",
3075
+ "verification-scan-qr": "verificationScanQr",
3076
+ "verification-sas": "verificationSas",
3077
+ "verification-confirm": "verificationConfirm",
3078
+ "verification-mismatch": "verificationMismatch",
3079
+ "verification-confirm-qr": "verificationConfirmQr"
3080
+ };
3081
+ const resolvedAction = operationToAction[operation];
3082
+ if (!resolvedAction) {
3083
+ throw new Error(
3084
+ `Unsupported Matrix permissions operation: ${operation}. Supported values: ${Object.keys(
3085
+ operationToAction
3086
+ ).join(", ")}`
3087
+ );
3088
+ }
3089
+ return await dispatch({
3090
+ ...params,
3091
+ action: resolvedAction
3092
+ });
3093
+ }
3094
+ throw new Error(`Action ${action} is not supported for provider matrix.`);
3095
+ }
3096
+ };
3097
+
3098
+ export {
3099
+ matrixMessageActions
3100
+ };
3101
+ //# sourceMappingURL=chunk-ZVEE5IDC.js.map