@popcraft/kit 1.0.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2715) hide show
  1. package/dist/chunks/agent-ORS5BEZC.js +44 -0
  2. package/dist/chunks/api-O4V5ICO5.js +30 -0
  3. package/dist/chunks/build-LH3DAI42.js +59 -0
  4. package/dist/chunks/builtin-2KL2EXTB.js +120 -0
  5. package/dist/chunks/buy-credits-NARMZ33F.js +80 -0
  6. package/dist/chunks/check-template-6D3CE5JN.js +2463 -0
  7. package/dist/chunks/chunk-24VAAMZS.js +80 -0
  8. package/dist/chunks/chunk-26C7EEL3.js +961 -0
  9. package/dist/chunks/chunk-27AUDAYZ.js +166 -0
  10. package/dist/chunks/chunk-27W532TV.js +194 -0
  11. package/dist/chunks/chunk-2EBMJZUF.js +106 -0
  12. package/dist/chunks/chunk-2EGTECBG.js +33 -0
  13. package/dist/chunks/chunk-2G5Z7VRP.js +224 -0
  14. package/dist/chunks/chunk-2J3IWJFZ.js +140 -0
  15. package/dist/chunks/chunk-2JDCAFBZ.js +36 -0
  16. package/dist/chunks/chunk-2MRVGDAO.js +178 -0
  17. package/dist/chunks/chunk-2NSEUS5X.js +96 -0
  18. package/dist/chunks/chunk-2OC2G4JE.js +304 -0
  19. package/dist/chunks/chunk-2P767HFL.js +95 -0
  20. package/dist/chunks/chunk-2QSFF5ZG.js +163 -0
  21. package/dist/chunks/chunk-2VPIEUXQ.js +685 -0
  22. package/dist/chunks/chunk-34FOTJ4P.js +55 -0
  23. package/dist/chunks/chunk-34ZTYDVW.js +117 -0
  24. package/dist/chunks/chunk-35X25URO.js +282 -0
  25. package/dist/chunks/chunk-36H3EKUV.js +115 -0
  26. package/dist/chunks/chunk-37I2XKTP.js +136 -0
  27. package/dist/chunks/chunk-37UK24CW.js +363 -0
  28. package/dist/chunks/chunk-3CFZ53Q4.js +209 -0
  29. package/dist/chunks/chunk-3DE232PS.js +391 -0
  30. package/dist/chunks/chunk-3ENNN23M.js +33 -0
  31. package/dist/chunks/chunk-3FADSNRZ.js +95 -0
  32. package/dist/chunks/chunk-3JCTHFW4.js +49 -0
  33. package/dist/chunks/chunk-3LABV55S.js +247 -0
  34. package/dist/chunks/chunk-3MJ3TAF4.js +179 -0
  35. package/dist/chunks/chunk-3MMY6U6R.js +327 -0
  36. package/dist/chunks/chunk-3MUKXGKH.js +45 -0
  37. package/dist/chunks/chunk-3N7EKXEF.js +361 -0
  38. package/dist/chunks/chunk-3P5E6VPB.js +77 -0
  39. package/dist/chunks/chunk-3QXNR7MV.js +137 -0
  40. package/dist/chunks/chunk-3SZ3C3GK.js +33 -0
  41. package/dist/chunks/chunk-3TFS7OJE.js +78 -0
  42. package/dist/chunks/chunk-3V5OAXTI.js +240 -0
  43. package/dist/chunks/chunk-3VXSUPUK.js +121 -0
  44. package/dist/chunks/chunk-3WAJRL56.js +30 -0
  45. package/dist/chunks/chunk-43DKCF6N.js +163 -0
  46. package/dist/chunks/chunk-45MHTSH5.js +173 -0
  47. package/dist/chunks/chunk-4BT6AGAN.js +166 -0
  48. package/dist/chunks/chunk-4CSUIIMN.js +215 -0
  49. package/dist/chunks/chunk-4IFC4ZJR.js +84 -0
  50. package/dist/chunks/chunk-4IG3KNOC.js +94 -0
  51. package/dist/chunks/chunk-4JZQ6SGU.js +311 -0
  52. package/dist/chunks/chunk-4LZK67EF.js +265 -0
  53. package/dist/chunks/chunk-4MKRR3TN.js +1574 -0
  54. package/dist/chunks/chunk-4MUIESCB.js +120 -0
  55. package/dist/chunks/chunk-4NFDAE3B.js +112 -0
  56. package/dist/chunks/chunk-4OLQYHDC.js +80 -0
  57. package/dist/chunks/chunk-4QDVL52H.js +23 -0
  58. package/dist/chunks/chunk-4QGWXZOD.js +79 -0
  59. package/dist/chunks/chunk-4SLNLF2D.js +140 -0
  60. package/dist/chunks/chunk-4TUB4RT2.js +218 -0
  61. package/dist/chunks/chunk-4Y6CY6ZB.js +86 -0
  62. package/dist/chunks/chunk-4ZPORKQY.js +96 -0
  63. package/dist/chunks/chunk-527Y5QVG.js +329 -0
  64. package/dist/chunks/chunk-53CKIESL.js +178 -0
  65. package/dist/chunks/chunk-57GZUMMV.js +210 -0
  66. package/dist/chunks/chunk-57PX5GO2.js +284 -0
  67. package/dist/chunks/chunk-5C7A4E7B.js +104 -0
  68. package/dist/chunks/chunk-5C7ANWWZ.js +36 -0
  69. package/dist/chunks/chunk-5CTRQW43.js +86 -0
  70. package/dist/chunks/chunk-5DIPBJ54.js +832 -0
  71. package/dist/chunks/chunk-5DPKJ5UI.js +304 -0
  72. package/dist/chunks/chunk-5GDS6URN.js +45 -0
  73. package/dist/chunks/chunk-5ICGFZKV.js +94 -0
  74. package/dist/chunks/chunk-5IKOQFKS.js +146 -0
  75. package/dist/chunks/chunk-5JBAW7KT.js +166 -0
  76. package/dist/chunks/chunk-5KSBSFL2.js +84 -0
  77. package/dist/chunks/chunk-5KZUESDQ.js +115 -0
  78. package/dist/chunks/chunk-5LHWCGYN.js +62 -0
  79. package/dist/chunks/chunk-5LSQASS5.js +174 -0
  80. package/dist/chunks/chunk-5LV36ZGJ.js +182 -0
  81. package/dist/chunks/chunk-5MH6WXIQ.js +44 -0
  82. package/dist/chunks/chunk-5Q4OWPXE.js +104 -0
  83. package/dist/chunks/chunk-5QP4DQSI.js +78 -0
  84. package/dist/chunks/chunk-5RRH2SQA.js +114 -0
  85. package/dist/chunks/chunk-5SGGJFXD.js +141 -0
  86. package/dist/chunks/chunk-5TE35PKC.js +47 -0
  87. package/dist/chunks/chunk-5TMAFL5W.js +59 -0
  88. package/dist/chunks/chunk-5V3FWR25.js +298 -0
  89. package/dist/chunks/chunk-63IES7EQ.js +23 -0
  90. package/dist/chunks/chunk-63PVNOOL.js +361 -0
  91. package/dist/chunks/chunk-665O4IQ2.js +110 -0
  92. package/dist/chunks/chunk-66SBPF4P.js +44 -0
  93. package/dist/chunks/chunk-67ZOWNWA.js +23 -0
  94. package/dist/chunks/chunk-6AUFLC6I.js +36 -0
  95. package/dist/chunks/chunk-6BHV3F5N.js +97 -0
  96. package/dist/chunks/chunk-6BT4DP2X.js +141 -0
  97. package/dist/chunks/chunk-6D5V3NRK.js +108 -0
  98. package/dist/chunks/chunk-6ECANHYL.js +33 -0
  99. package/dist/chunks/chunk-6EE5YXPH.js +187 -0
  100. package/dist/chunks/chunk-6EI2IME7.js +157 -0
  101. package/dist/chunks/chunk-6F5UG63U.js +462 -0
  102. package/dist/chunks/chunk-6FDQCFZ3.js +194 -0
  103. package/dist/chunks/chunk-6FSIJMP3.js +122 -0
  104. package/dist/chunks/chunk-6HJAQVRN.js +23 -0
  105. package/dist/chunks/chunk-6KYB323H.js +53 -0
  106. package/dist/chunks/chunk-6LA5KFR7.js +589 -0
  107. package/dist/chunks/chunk-6LOS6TDN.js +282 -0
  108. package/dist/chunks/chunk-6MIZZ5FO.js +150 -0
  109. package/dist/chunks/chunk-6N5CDSA6.js +106 -0
  110. package/dist/chunks/chunk-6OQVDLP5.js +180 -0
  111. package/dist/chunks/chunk-6P36GAWL.js +115 -0
  112. package/dist/chunks/chunk-6PHPERHA.js +165 -0
  113. package/dist/chunks/chunk-6Q7DWLLC.js +226 -0
  114. package/dist/chunks/chunk-6RPJIYXI.js +131 -0
  115. package/dist/chunks/chunk-6S44A6SK.js +156 -0
  116. package/dist/chunks/chunk-6T2GWCP4.js +320 -0
  117. package/dist/chunks/chunk-6TWPO7NK.js +93 -0
  118. package/dist/chunks/chunk-6V6PESPH.js +41 -0
  119. package/dist/chunks/chunk-6VMFRREI.js +99 -0
  120. package/dist/chunks/chunk-6XNUP27N.js +375 -0
  121. package/dist/chunks/chunk-6YL2GBRR.js +101 -0
  122. package/dist/chunks/chunk-6YM5WTKJ.js +69 -0
  123. package/dist/chunks/chunk-72NWM3OD.js +299 -0
  124. package/dist/chunks/chunk-74SDV2TR.js +100 -0
  125. package/dist/chunks/chunk-75NROKEU.js +85 -0
  126. package/dist/chunks/chunk-76GWG6D6.js +283 -0
  127. package/dist/chunks/chunk-77UDFJBV.js +159 -0
  128. package/dist/chunks/chunk-7AZD6JDR.js +298 -0
  129. package/dist/chunks/chunk-7AZZ2I4H.js +248 -0
  130. package/dist/chunks/chunk-7B7MG4MI.js +90 -0
  131. package/dist/chunks/chunk-7CAAZZAR.js +183 -0
  132. package/dist/chunks/chunk-7CCDXOZD.js +84 -0
  133. package/dist/chunks/chunk-7FYEHEQJ.js +382 -0
  134. package/dist/chunks/chunk-7HCTDX23.js +45 -0
  135. package/dist/chunks/chunk-7JRE5KFW.js +109 -0
  136. package/dist/chunks/chunk-7K4DVIS7.js +199 -0
  137. package/dist/chunks/chunk-7LJLI6NO.js +267 -0
  138. package/dist/chunks/chunk-7MCTQEGJ.js +334 -0
  139. package/dist/chunks/chunk-7NZFOZUA.js +282 -0
  140. package/dist/chunks/chunk-7O7DQFWD.js +112 -0
  141. package/dist/chunks/chunk-7OJV2CC6.js +177 -0
  142. package/dist/chunks/chunk-7PQNI53S.js +344 -0
  143. package/dist/chunks/chunk-7RNO7HPJ.js +63 -0
  144. package/dist/chunks/chunk-7TS727CQ.js +198 -0
  145. package/dist/chunks/chunk-7VAD2D7K.js +260 -0
  146. package/dist/chunks/chunk-7Z2MFRJI.js +45 -0
  147. package/dist/chunks/chunk-A2ND34XC.js +179 -0
  148. package/dist/chunks/chunk-A433G4Q3.js +130 -0
  149. package/dist/chunks/chunk-A4CSJDFA.js +172 -0
  150. package/dist/chunks/chunk-A54J3EET.js +77 -0
  151. package/dist/chunks/chunk-A5NP7G4O.js +23 -0
  152. package/dist/chunks/chunk-A7PE3RQX.js +151 -0
  153. package/dist/chunks/chunk-AA2X2RFG.js +70 -0
  154. package/dist/chunks/chunk-AA43YVO3.js +312 -0
  155. package/dist/chunks/chunk-AALKSACH.js +79 -0
  156. package/dist/chunks/chunk-AFFRYF5A.js +23 -0
  157. package/dist/chunks/chunk-AFML7PFY.js +167 -0
  158. package/dist/chunks/chunk-AG5HDX3U.js +214 -0
  159. package/dist/chunks/chunk-AIXYMUB2.js +91 -0
  160. package/dist/chunks/chunk-AJHTPX46.js +33 -0
  161. package/dist/chunks/chunk-AKBVSXBL.js +222 -0
  162. package/dist/chunks/chunk-AKXCXJAR.js +149 -0
  163. package/dist/chunks/chunk-AL54WGPC.js +172 -0
  164. package/dist/chunks/chunk-AMMJNSY3.js +139 -0
  165. package/dist/chunks/chunk-AOEQVONN.js +126 -0
  166. package/dist/chunks/chunk-AOUSDLYF.js +123 -0
  167. package/dist/chunks/chunk-APDFXSYL.js +23 -0
  168. package/dist/chunks/chunk-APNNFZCP.js +331 -0
  169. package/dist/chunks/chunk-APP26MJL.js +129 -0
  170. package/dist/chunks/chunk-APXMMQDB.js +130 -0
  171. package/dist/chunks/chunk-AQ7VIL3I.js +969 -0
  172. package/dist/chunks/chunk-AQJLUW3A.js +98 -0
  173. package/dist/chunks/chunk-AR7M4EYV.js +131 -0
  174. package/dist/chunks/chunk-ASAF4KBF.js +130 -0
  175. package/dist/chunks/chunk-AW2PLFZP.js +149 -0
  176. package/dist/chunks/chunk-AWZKBKHH.js +221 -0
  177. package/dist/chunks/chunk-AX7B2WCS.js +199 -0
  178. package/dist/chunks/chunk-AXOICW2R.js +260 -0
  179. package/dist/chunks/chunk-B46IF6J3.js +53 -0
  180. package/dist/chunks/chunk-B6ZXFAFG.js +503 -0
  181. package/dist/chunks/chunk-BABWLU5B.js +45 -0
  182. package/dist/chunks/chunk-BEQ4AKA7.js +251 -0
  183. package/dist/chunks/chunk-BGO2QBYJ.js +153 -0
  184. package/dist/chunks/chunk-BHCZCKQF.js +77 -0
  185. package/dist/chunks/chunk-BHRY23G4.js +105 -0
  186. package/dist/chunks/chunk-BIKA5PQN.js +95 -0
  187. package/dist/chunks/chunk-BJFWM5XR.js +94 -0
  188. package/dist/chunks/chunk-BKIVZGAD.js +23 -0
  189. package/dist/chunks/chunk-BMLJBYEZ.js +39 -0
  190. package/dist/chunks/chunk-BMW6C24Y.js +90 -0
  191. package/dist/chunks/chunk-BO35G3Z6.js +88 -0
  192. package/dist/chunks/chunk-BPU5YIDG.js +422 -0
  193. package/dist/chunks/chunk-BPWNLMQT.js +143 -0
  194. package/dist/chunks/chunk-BQ7KNDG5.js +187 -0
  195. package/dist/chunks/chunk-BR4GZIQU.js +252 -0
  196. package/dist/chunks/chunk-BRIHKOVV.js +124 -0
  197. package/dist/chunks/chunk-BRTNUG5O.js +1307 -0
  198. package/dist/chunks/chunk-BTD73H3K.js +97 -0
  199. package/dist/chunks/chunk-BVYVLDM6.js +33 -0
  200. package/dist/chunks/chunk-BZEM6KXC.js +33 -0
  201. package/dist/chunks/chunk-BZLE32T3.js +45 -0
  202. package/dist/chunks/chunk-C2TCYRPA.js +92 -0
  203. package/dist/chunks/chunk-C5HWH25M.js +133 -0
  204. package/dist/chunks/chunk-C5IGTE2W.js +101 -0
  205. package/dist/chunks/chunk-C5N5F7OY.js +178 -0
  206. package/dist/chunks/chunk-C5UBPA62.js +180 -0
  207. package/dist/chunks/chunk-C7L2KQY5.js +28 -0
  208. package/dist/chunks/chunk-CC5MV34L.js +136 -0
  209. package/dist/chunks/chunk-CCZHGMLC.js +170 -0
  210. package/dist/chunks/chunk-CE5EUGPU.js +139 -0
  211. package/dist/chunks/chunk-CFUI5S5D.js +189 -0
  212. package/dist/chunks/chunk-CGABGMOZ.js +304 -0
  213. package/dist/chunks/chunk-CGC5LBLM.js +152 -0
  214. package/dist/chunks/chunk-CJHKUK6R.js +46 -0
  215. package/dist/chunks/chunk-CKCDAEO2.js +283 -0
  216. package/dist/chunks/chunk-CKF5Z2GH.js +127 -0
  217. package/dist/chunks/chunk-CMC5P7S4.js +122 -0
  218. package/dist/chunks/chunk-CMNHQIY5.js +221 -0
  219. package/dist/chunks/chunk-CMPXWCFB.js +180 -0
  220. package/dist/chunks/chunk-CN7E26GP.js +33 -0
  221. package/dist/chunks/chunk-CNKEZH5P.js +161 -0
  222. package/dist/chunks/chunk-CNX2SCUK.js +55 -0
  223. package/dist/chunks/chunk-CQWO7ARR.js +171 -0
  224. package/dist/chunks/chunk-CR5HV2GK.js +162 -0
  225. package/dist/chunks/chunk-CRDNQLOD.js +154 -0
  226. package/dist/chunks/chunk-CRTVOLCB.js +73 -0
  227. package/dist/chunks/chunk-CRULPTLW.js +198 -0
  228. package/dist/chunks/chunk-CTK2TAEA.js +99 -0
  229. package/dist/chunks/chunk-CTXLYVMO.js +108 -0
  230. package/dist/chunks/chunk-CTZ5AJW7.js +33 -0
  231. package/dist/chunks/chunk-CUNLB4H2.js +100 -0
  232. package/dist/chunks/chunk-CUPIPPSJ.js +123 -0
  233. package/dist/chunks/chunk-CVA2X3T4.js +49 -0
  234. package/dist/chunks/chunk-CWL4Q75V.js +315 -0
  235. package/dist/chunks/chunk-CWTPUN2E.js +196 -0
  236. package/dist/chunks/chunk-CXXL3JD4.js +33 -0
  237. package/dist/chunks/chunk-CXZVK3Q2.js +277 -0
  238. package/dist/chunks/chunk-CZKUYEJ7.js +23 -0
  239. package/dist/chunks/chunk-CZWPHLYJ.js +145 -0
  240. package/dist/chunks/chunk-D2O2YAKK.js +103 -0
  241. package/dist/chunks/chunk-D2UPULJH.js +77 -0
  242. package/dist/chunks/chunk-D5GQ4TYX.js +261 -0
  243. package/dist/chunks/chunk-D5PBUIC2.js +77 -0
  244. package/dist/chunks/chunk-D64OT4VK.js +366 -0
  245. package/dist/chunks/chunk-D7JYUSQB.js +225 -0
  246. package/dist/chunks/chunk-DAB37UXL.js +50 -0
  247. package/dist/chunks/chunk-DBQG4HWS.js +1136 -0
  248. package/dist/chunks/chunk-DBW6FFZL.js +84 -0
  249. package/dist/chunks/chunk-DCIXIMR6.js +36 -0
  250. package/dist/chunks/chunk-DCXV5UF2.js +94 -0
  251. package/dist/chunks/chunk-DCYVX4KE.js +173 -0
  252. package/dist/chunks/chunk-DE6FIM2S.js +48 -0
  253. package/dist/chunks/chunk-DGXL2VPW.js +80 -0
  254. package/dist/chunks/chunk-DJCEFHYW.js +130 -0
  255. package/dist/chunks/chunk-DJRI4UWX.js +65 -0
  256. package/dist/chunks/chunk-DJZG5XVP.js +273 -0
  257. package/dist/chunks/chunk-DKFUH23C.js +79 -0
  258. package/dist/chunks/chunk-DKYN3OOU.js +351 -0
  259. package/dist/chunks/chunk-DM2457W5.js +95 -0
  260. package/dist/chunks/chunk-DMD5GFDF.js +140 -0
  261. package/dist/chunks/chunk-DMNMC5L2.js +45 -0
  262. package/dist/chunks/chunk-DNJ2T32G.js +100 -0
  263. package/dist/chunks/chunk-DNSCQ2NW.js +261 -0
  264. package/dist/chunks/chunk-DOUTRZDG.js +91 -0
  265. package/dist/chunks/chunk-DPP7DLXV.js +80 -0
  266. package/dist/chunks/chunk-DQUEXIAH.js +237 -0
  267. package/dist/chunks/chunk-DRIAIXWX.js +198 -0
  268. package/dist/chunks/chunk-DRIOEYCA.js +305 -0
  269. package/dist/chunks/chunk-DUL7DHN5.js +156 -0
  270. package/dist/chunks/chunk-DVIDFXCM.js +147 -0
  271. package/dist/chunks/chunk-DYONXHES.js +108 -0
  272. package/dist/chunks/chunk-DYZVMKFE.js +112 -0
  273. package/dist/chunks/chunk-E4IK6BWK.js +191 -0
  274. package/dist/chunks/chunk-E553C75E.js +169 -0
  275. package/dist/chunks/chunk-E56VSHG3.js +512 -0
  276. package/dist/chunks/chunk-E56WIUSB.js +23 -0
  277. package/dist/chunks/chunk-E64CGS75.js +92 -0
  278. package/dist/chunks/chunk-E7ECIGRF.js +33 -0
  279. package/dist/chunks/chunk-EAFO4LVD.js +118 -0
  280. package/dist/chunks/chunk-EAK3M5DC.js +83 -0
  281. package/dist/chunks/chunk-EFK3FJRC.js +97 -0
  282. package/dist/chunks/chunk-EHIKCCBG.js +152 -0
  283. package/dist/chunks/chunk-EI5IR6CB.js +378 -0
  284. package/dist/chunks/chunk-EK7AJS3U.js +250 -0
  285. package/dist/chunks/chunk-EKKVWPBA.js +106 -0
  286. package/dist/chunks/chunk-ELBXW6DL.js +777 -0
  287. package/dist/chunks/chunk-EMUY64P2.js +326 -0
  288. package/dist/chunks/chunk-ENOGIL2T.js +338 -0
  289. package/dist/chunks/chunk-ENUSW64I.js +157 -0
  290. package/dist/chunks/chunk-EQGPFTWR.js +33 -0
  291. package/dist/chunks/chunk-ER2YCS4Q.js +320 -0
  292. package/dist/chunks/chunk-ETZSD5CH.js +113 -0
  293. package/dist/chunks/chunk-EYNESOPJ.js +177 -0
  294. package/dist/chunks/chunk-EYQQR7EQ.js +23 -0
  295. package/dist/chunks/chunk-F2GZGHOM.js +23 -0
  296. package/dist/chunks/chunk-F2U5JLIW.js +74 -0
  297. package/dist/chunks/chunk-F5C2A6O5.js +109 -0
  298. package/dist/chunks/chunk-F6HTJRSQ.js +164 -0
  299. package/dist/chunks/chunk-F77H3FGT.js +23 -0
  300. package/dist/chunks/chunk-F7PHNBXF.js +146 -0
  301. package/dist/chunks/chunk-FBNZ7GRP.js +84 -0
  302. package/dist/chunks/chunk-FBOZ6FRJ.js +362 -0
  303. package/dist/chunks/chunk-FEKFQRD3.js +125 -0
  304. package/dist/chunks/chunk-FF2OZPHF.js +96 -0
  305. package/dist/chunks/chunk-FFATU7AP.js +201 -0
  306. package/dist/chunks/chunk-FFLUD2SI.js +23 -0
  307. package/dist/chunks/chunk-FKAQDXPZ.js +93 -0
  308. package/dist/chunks/chunk-FLFFCI2I.js +69 -0
  309. package/dist/chunks/chunk-FLOPRGMJ.js +307 -0
  310. package/dist/chunks/chunk-FMHZRX5I.js +297 -0
  311. package/dist/chunks/chunk-FMRZOOBD.js +214 -0
  312. package/dist/chunks/chunk-FN4VVPUD.js +103 -0
  313. package/dist/chunks/chunk-FO6YA6G5.js +188 -0
  314. package/dist/chunks/chunk-FRROD4WU.js +23 -0
  315. package/dist/chunks/chunk-FTN33ALO.js +86 -0
  316. package/dist/chunks/chunk-FUNE7DEH.js +41 -0
  317. package/dist/chunks/chunk-FUYLAO47.js +102 -0
  318. package/dist/chunks/chunk-FWFDUH7L.js +231 -0
  319. package/dist/chunks/chunk-FWUWDG73.js +337 -0
  320. package/dist/chunks/chunk-FX7FQRFQ.js +119 -0
  321. package/dist/chunks/chunk-FXFSTPQR.js +231 -0
  322. package/dist/chunks/chunk-FYQY23SH.js +87 -0
  323. package/dist/chunks/chunk-FYZPIE7Q.js +156 -0
  324. package/dist/chunks/chunk-FZ3RWHKY.js +90 -0
  325. package/dist/chunks/chunk-FZMD4XOX.js +159 -0
  326. package/dist/chunks/chunk-G225WFUG.js +95 -0
  327. package/dist/chunks/chunk-G2ACQ2GJ.js +106 -0
  328. package/dist/chunks/chunk-G4HVXWLM.js +109 -0
  329. package/dist/chunks/chunk-G52ZZ4YG.js +117 -0
  330. package/dist/chunks/chunk-G5CBLCXT.js +147 -0
  331. package/dist/chunks/chunk-G5O4NNZI.js +98 -0
  332. package/dist/chunks/chunk-G73CQMMJ.js +889 -0
  333. package/dist/chunks/chunk-G73XYY7M.js +161 -0
  334. package/dist/chunks/chunk-G7DMZVKZ.js +170 -0
  335. package/dist/chunks/chunk-GBSIEUCM.js +107 -0
  336. package/dist/chunks/chunk-GDNZQ46X.js +170 -0
  337. package/dist/chunks/chunk-GGEVABQT.js +74 -0
  338. package/dist/chunks/chunk-GGUNFKKE.js +155 -0
  339. package/dist/chunks/chunk-GKUBBJ2E.js +78 -0
  340. package/dist/chunks/chunk-GLFQ4ELS.js +93 -0
  341. package/dist/chunks/chunk-GMVTTOWK.js +82 -0
  342. package/dist/chunks/chunk-GN3F2REZ.js +206 -0
  343. package/dist/chunks/chunk-GNJLOVAY.js +163 -0
  344. package/dist/chunks/chunk-GNWIMBGM.js +100 -0
  345. package/dist/chunks/chunk-GPGVPFFZ.js +293 -0
  346. package/dist/chunks/chunk-GQV6RKZJ.js +72 -0
  347. package/dist/chunks/chunk-GTCXHKSD.js +164 -0
  348. package/dist/chunks/chunk-GTDUFAKH.js +161 -0
  349. package/dist/chunks/chunk-GUSWBF34.js +196 -0
  350. package/dist/chunks/chunk-GWA2IQNZ.js +303 -0
  351. package/dist/chunks/chunk-GZKSRF3A.js +1393 -0
  352. package/dist/chunks/chunk-GZT6ZATH.js +23 -0
  353. package/dist/chunks/chunk-H3B6PDES.js +247 -0
  354. package/dist/chunks/chunk-H3F5EWSJ.js +198 -0
  355. package/dist/chunks/chunk-H4QNMVLT.js +129 -0
  356. package/dist/chunks/chunk-H5ZRE335.js +172 -0
  357. package/dist/chunks/chunk-HCXPHZ7B.js +99 -0
  358. package/dist/chunks/chunk-HDTI74DN.js +100 -0
  359. package/dist/chunks/chunk-HF7JCB3P.js +60 -0
  360. package/dist/chunks/chunk-HFRLDTQP.js +224 -0
  361. package/dist/chunks/chunk-HGAHOHJO.js +151 -0
  362. package/dist/chunks/chunk-HGLKPOLA.js +80 -0
  363. package/dist/chunks/chunk-HGLTZM7Z.js +163 -0
  364. package/dist/chunks/chunk-HI2CUIXU.js +305 -0
  365. package/dist/chunks/chunk-HIWZZM7N.js +262 -0
  366. package/dist/chunks/chunk-HJFJI6E4.js +317 -0
  367. package/dist/chunks/chunk-HLKA3MPE.js +176 -0
  368. package/dist/chunks/chunk-HNIG4LKT.js +174 -0
  369. package/dist/chunks/chunk-HP4ZVZV2.js +93 -0
  370. package/dist/chunks/chunk-HPF4EHSN.js +36 -0
  371. package/dist/chunks/chunk-HQIWONN4.js +45 -0
  372. package/dist/chunks/chunk-HQMXH6GW.js +155 -0
  373. package/dist/chunks/chunk-HRAYPYVF.js +65 -0
  374. package/dist/chunks/chunk-HU5KHZAE.js +255 -0
  375. package/dist/chunks/chunk-HUEO3MJJ.js +279 -0
  376. package/dist/chunks/chunk-HUNKTYDB.js +150 -0
  377. package/dist/chunks/chunk-HUWJTJ6D.js +80 -0
  378. package/dist/chunks/chunk-HYZ47FG5.js +190 -0
  379. package/dist/chunks/chunk-HZBIOT4N.js +163 -0
  380. package/dist/chunks/chunk-HZWVVPOM.js +346 -0
  381. package/dist/chunks/chunk-I2EAGBIK.js +41 -0
  382. package/dist/chunks/chunk-I4LN6AOJ.js +180 -0
  383. package/dist/chunks/chunk-I4WEDUEX.js +48 -0
  384. package/dist/chunks/chunk-I5HTH2RF.js +117 -0
  385. package/dist/chunks/chunk-I5NXE524.js +13696 -0
  386. package/dist/chunks/chunk-I63T7IVK.js +151 -0
  387. package/dist/chunks/chunk-I6LF43FF.js +84 -0
  388. package/dist/chunks/chunk-I6YWUXIO.js +141 -0
  389. package/dist/chunks/chunk-I75XKZKJ.js +209 -0
  390. package/dist/chunks/chunk-I7EOKFUK.js +145 -0
  391. package/dist/chunks/chunk-ICLWENB5.js +225 -0
  392. package/dist/chunks/chunk-IDNHCUVK.js +598 -0
  393. package/dist/chunks/chunk-IFTSQYJ7.js +92 -0
  394. package/dist/chunks/chunk-IFXJROHQ.js +120 -0
  395. package/dist/chunks/chunk-IHLXIB47.js +122 -0
  396. package/dist/chunks/chunk-II7L576U.js +89 -0
  397. package/dist/chunks/chunk-IJPRRLKP.js +135 -0
  398. package/dist/chunks/chunk-IM5EW6GR.js +45 -0
  399. package/dist/chunks/chunk-IMVGKUJU.js +33 -0
  400. package/dist/chunks/chunk-INVL4KU3.js +23 -0
  401. package/dist/chunks/chunk-IOL66ZOS.js +70 -0
  402. package/dist/chunks/chunk-IP2XYRA3.js +110 -0
  403. package/dist/chunks/chunk-IQYDU2ID.js +204 -0
  404. package/dist/chunks/chunk-IRHXCOG7.js +23 -0
  405. package/dist/chunks/chunk-IRLABX2F.js +30 -0
  406. package/dist/chunks/chunk-ITW5XMB4.js +23 -0
  407. package/dist/chunks/chunk-IU2AL4XL.js +48 -0
  408. package/dist/chunks/chunk-IUN657S4.js +45 -0
  409. package/dist/chunks/chunk-IWWO5YBM.js +127 -0
  410. package/dist/chunks/chunk-IXK5DQVP.js +10733 -0
  411. package/dist/chunks/chunk-J2KM5DVN.js +152 -0
  412. package/dist/chunks/chunk-J3XMYYH5.js +83 -0
  413. package/dist/chunks/chunk-J4LNSSGH.js +200 -0
  414. package/dist/chunks/chunk-J5JZWAOK.js +169 -0
  415. package/dist/chunks/chunk-J6OO2JZN.js +207 -0
  416. package/dist/chunks/chunk-JARW4KH3.js +79 -0
  417. package/dist/chunks/chunk-JB3T3NV4.js +195 -0
  418. package/dist/chunks/chunk-JBK4OXFV.js +169 -0
  419. package/dist/chunks/chunk-JC43ZU2V.js +23 -0
  420. package/dist/chunks/chunk-JDO5IPYT.js +106 -0
  421. package/dist/chunks/chunk-JDQUQNU2.js +92 -0
  422. package/dist/chunks/chunk-JFSJKMCJ.js +78 -0
  423. package/dist/chunks/chunk-JGC6PIT5.js +344 -0
  424. package/dist/chunks/chunk-JGXOBFFA.js +89 -0
  425. package/dist/chunks/chunk-JIJMD7SG.js +172 -0
  426. package/dist/chunks/chunk-JJY7TRTM.js +191 -0
  427. package/dist/chunks/chunk-JKM5CYPG.js +118 -0
  428. package/dist/chunks/chunk-JKXHXWS3.js +149 -0
  429. package/dist/chunks/chunk-JMGMRIN4.js +23 -0
  430. package/dist/chunks/chunk-JMXIRZN4.js +1469 -0
  431. package/dist/chunks/chunk-JPFBDTJV.js +106 -0
  432. package/dist/chunks/chunk-JPWFSVJJ.js +45 -0
  433. package/dist/chunks/chunk-JT4XDXMF.js +128 -0
  434. package/dist/chunks/chunk-JUOCCYLN.js +232 -0
  435. package/dist/chunks/chunk-JV5M5XGY.js +162 -0
  436. package/dist/chunks/chunk-JVHJ2UVF.js +192 -0
  437. package/dist/chunks/chunk-JVOIPU4J.js +119 -0
  438. package/dist/chunks/chunk-JW7JBI2V.js +105 -0
  439. package/dist/chunks/chunk-JXBXISRI.js +21 -0
  440. package/dist/chunks/chunk-JXLZRZKV.js +125 -0
  441. package/dist/chunks/chunk-JYC2IKH6.js +164 -0
  442. package/dist/chunks/chunk-JZ5UR7E4.js +128 -0
  443. package/dist/chunks/chunk-JZEZI4XH.js +97 -0
  444. package/dist/chunks/chunk-K27XLO7W.js +237 -0
  445. package/dist/chunks/chunk-K2JWLP4L.js +102 -0
  446. package/dist/chunks/chunk-KBXUGNIB.js +109 -0
  447. package/dist/chunks/chunk-KJ6AJLV2.js +73 -0
  448. package/dist/chunks/chunk-KKK7YGH6.js +183 -0
  449. package/dist/chunks/chunk-KLHYHFZF.js +263 -0
  450. package/dist/chunks/chunk-KLPEWPQK.js +104 -0
  451. package/dist/chunks/chunk-KMDQ52NK.js +85 -0
  452. package/dist/chunks/chunk-KO4UQ7GF.js +57 -0
  453. package/dist/chunks/chunk-KOIYHOT4.js +193 -0
  454. package/dist/chunks/chunk-KPSWG5MC.js +36 -0
  455. package/dist/chunks/chunk-KPWBE4D2.js +174 -0
  456. package/dist/chunks/chunk-KQW3AQMK.js +115 -0
  457. package/dist/chunks/chunk-KS4NKPNJ.js +71 -0
  458. package/dist/chunks/chunk-KSIRLYH5.js +197 -0
  459. package/dist/chunks/chunk-KT6AFSYT.js +120 -0
  460. package/dist/chunks/chunk-KUDRD46H.js +115 -0
  461. package/dist/chunks/chunk-KW4BPX4K.js +114 -0
  462. package/dist/chunks/chunk-KWFRMLS2.js +60 -0
  463. package/dist/chunks/chunk-KXGC272M.js +110 -0
  464. package/dist/chunks/chunk-KXPWWCIF.js +23 -0
  465. package/dist/chunks/chunk-KYO23CQK.js +52 -0
  466. package/dist/chunks/chunk-KYXWPTFQ.js +266 -0
  467. package/dist/chunks/chunk-KZ4IH4S5.js +39 -0
  468. package/dist/chunks/chunk-KZG3ISXI.js +215 -0
  469. package/dist/chunks/chunk-L7LXANKB.js +33 -0
  470. package/dist/chunks/chunk-LAX47XIN.js +60 -0
  471. package/dist/chunks/chunk-LDKRWHV2.js +122 -0
  472. package/dist/chunks/chunk-LJSOOIQX.js +76 -0
  473. package/dist/chunks/chunk-LK4VRVAE.js +91 -0
  474. package/dist/chunks/chunk-LKQGKLDY.js +77 -0
  475. package/dist/chunks/chunk-LLUSI5T4.js +204 -0
  476. package/dist/chunks/chunk-LM7UI32E.js +33 -0
  477. package/dist/chunks/chunk-LNF6M6FN.js +209 -0
  478. package/dist/chunks/chunk-LNTLK36E.js +108 -0
  479. package/dist/chunks/chunk-LOWY6GE6.js +153 -0
  480. package/dist/chunks/chunk-LQKGTDA2.js +287 -0
  481. package/dist/chunks/chunk-LQULWI2O.js +76 -0
  482. package/dist/chunks/chunk-LRYPVZLK.js +98 -0
  483. package/dist/chunks/chunk-LUOWWDKO.js +399 -0
  484. package/dist/chunks/chunk-LUVFOGW7.js +71 -0
  485. package/dist/chunks/chunk-LY5WB4UJ.js +111 -0
  486. package/dist/chunks/chunk-LYGIXXFM.js +171 -0
  487. package/dist/chunks/chunk-LZEBBZPB.js +228 -0
  488. package/dist/chunks/chunk-M5C6MC5F.js +85 -0
  489. package/dist/chunks/chunk-MAEHNEQ6.js +136 -0
  490. package/dist/chunks/chunk-MBMMCM76.js +97 -0
  491. package/dist/chunks/chunk-MBS22UU3.js +210 -0
  492. package/dist/chunks/chunk-MC7UT3JM.js +107 -0
  493. package/dist/chunks/chunk-MCIPQQQS.js +111 -0
  494. package/dist/chunks/chunk-MCJR3NCX.js +161 -0
  495. package/dist/chunks/chunk-MDP53EDX.js +147 -0
  496. package/dist/chunks/chunk-MHLDQXBL.js +105 -0
  497. package/dist/chunks/chunk-MIME2MDH.js +66 -0
  498. package/dist/chunks/chunk-MIXYMMXI.js +366 -0
  499. package/dist/chunks/chunk-MJVFENH4.js +11857 -0
  500. package/dist/chunks/chunk-MJWXEMT6.js +50 -0
  501. package/dist/chunks/chunk-MKLBCHW7.js +33 -0
  502. package/dist/chunks/chunk-MO5JAQ72.js +98 -0
  503. package/dist/chunks/chunk-MO6VTJRB.js +118 -0
  504. package/dist/chunks/chunk-MOS6XHIO.js +260 -0
  505. package/dist/chunks/chunk-MQLK2AYJ.js +105 -0
  506. package/dist/chunks/chunk-MRICZCJU.js +163 -0
  507. package/dist/chunks/chunk-MWHXK5L3.js +2157 -0
  508. package/dist/chunks/chunk-MXLPMLQS.js +197 -0
  509. package/dist/chunks/chunk-MXOIEAOB.js +23 -0
  510. package/dist/chunks/chunk-MZ5EF6B5.js +95 -0
  511. package/dist/chunks/chunk-MZX6YPFI.js +182 -0
  512. package/dist/chunks/chunk-N2QDYNQV.js +239 -0
  513. package/dist/chunks/chunk-N42VJQIY.js +23 -0
  514. package/dist/chunks/chunk-N47IKTU4.js +142 -0
  515. package/dist/chunks/chunk-N4LQTC2P.js +145 -0
  516. package/dist/chunks/chunk-N6PWVAVZ.js +33 -0
  517. package/dist/chunks/chunk-N6RGYRGP.js +100 -0
  518. package/dist/chunks/chunk-NAS3AQMP.js +112 -0
  519. package/dist/chunks/chunk-NE7PRL3H.js +87 -0
  520. package/dist/chunks/chunk-NEPPTDND.js +63 -0
  521. package/dist/chunks/chunk-NHVULDWF.js +138 -0
  522. package/dist/chunks/chunk-NIKWTI32.js +235 -0
  523. package/dist/chunks/chunk-NIOVIPD4.js +163 -0
  524. package/dist/chunks/chunk-NLTHJTZ2.js +61 -0
  525. package/dist/chunks/chunk-NM7Z5YKA.js +290 -0
  526. package/dist/chunks/chunk-NMLRHWTY.js +274 -0
  527. package/dist/chunks/chunk-NNTJWSQ5.js +54 -0
  528. package/dist/chunks/chunk-NPQDWVAY.js +115 -0
  529. package/dist/chunks/chunk-NPT5DQJ6.js +152 -0
  530. package/dist/chunks/chunk-NPW3LCFQ.js +270 -0
  531. package/dist/chunks/chunk-NQX7YN3I.js +153 -0
  532. package/dist/chunks/chunk-NRPWUHIL.js +33 -0
  533. package/dist/chunks/chunk-NSINPQDQ.js +336 -0
  534. package/dist/chunks/chunk-NT3RKQPM.js +153 -0
  535. package/dist/chunks/chunk-NTDRLFUW.js +53 -0
  536. package/dist/chunks/chunk-NTNHSHBS.js +202 -0
  537. package/dist/chunks/chunk-NUSQAUDB.js +258 -0
  538. package/dist/chunks/chunk-NWTA6H5F.js +192 -0
  539. package/dist/chunks/chunk-NX5JVVT2.js +79 -0
  540. package/dist/chunks/chunk-NXQN2CVJ.js +47 -0
  541. package/dist/chunks/chunk-NYEE7WOR.js +72 -0
  542. package/dist/chunks/chunk-NZJ7C3GQ.js +151 -0
  543. package/dist/chunks/chunk-O2QI5HLG.js +184 -0
  544. package/dist/chunks/chunk-O3N4MUCJ.js +102 -0
  545. package/dist/chunks/chunk-O52ZBWXQ.js +23 -0
  546. package/dist/chunks/chunk-O545Q4OS.js +147 -0
  547. package/dist/chunks/chunk-O55LUW57.js +145 -0
  548. package/dist/chunks/chunk-O6XKKNLJ.js +327 -0
  549. package/dist/chunks/chunk-O7QMVYQL.js +113 -0
  550. package/dist/chunks/chunk-O7RTPXW3.js +146 -0
  551. package/dist/chunks/chunk-OAJOR5QC.js +270 -0
  552. package/dist/chunks/chunk-OAUZOBGN.js +104 -0
  553. package/dist/chunks/chunk-OBCV7RHJ.js +218 -0
  554. package/dist/chunks/chunk-OCXR2Q5C.js +89 -0
  555. package/dist/chunks/chunk-OD6HR4BO.js +261 -0
  556. package/dist/chunks/chunk-OEEQBAMP.js +55 -0
  557. package/dist/chunks/chunk-OFKYPLUY.js +101 -0
  558. package/dist/chunks/chunk-OK2IOWWE.js +213 -0
  559. package/dist/chunks/chunk-OK4N3TTS.js +126 -0
  560. package/dist/chunks/chunk-OM2GETGD.js +212 -0
  561. package/dist/chunks/chunk-ONDMIX6M.js +87 -0
  562. package/dist/chunks/chunk-ONHLN4VB.js +1349 -0
  563. package/dist/chunks/chunk-OOF5S77G.js +251 -0
  564. package/dist/chunks/chunk-OOREJPU6.js +101 -0
  565. package/dist/chunks/chunk-OPSS4UFD.js +42 -0
  566. package/dist/chunks/chunk-ORTKPMW7.js +122 -0
  567. package/dist/chunks/chunk-OS445LMW.js +36 -0
  568. package/dist/chunks/chunk-OTYKPAYN.js +33 -0
  569. package/dist/chunks/chunk-OVM2245J.js +255 -0
  570. package/dist/chunks/chunk-OZ5UUPV7.js +626 -0
  571. package/dist/chunks/chunk-P37OXYWP.js +128 -0
  572. package/dist/chunks/chunk-P3RFMPVN.js +130 -0
  573. package/dist/chunks/chunk-P3UOVTSZ.js +104 -0
  574. package/dist/chunks/chunk-P4AV3UVY.js +97 -0
  575. package/dist/chunks/chunk-P4BNB74I.js +55 -0
  576. package/dist/chunks/chunk-P5ES5UZ2.js +43 -0
  577. package/dist/chunks/chunk-P62RKTFV.js +50 -0
  578. package/dist/chunks/chunk-P6RGDIR2.js +276 -0
  579. package/dist/chunks/chunk-PAESKSFP.js +104 -0
  580. package/dist/chunks/chunk-PARXUKOX.js +163 -0
  581. package/dist/chunks/chunk-PCD5Q6WR.js +70 -0
  582. package/dist/chunks/chunk-PFONW2IG.js +112 -0
  583. package/dist/chunks/chunk-PIEROD7M.js +94 -0
  584. package/dist/chunks/chunk-PLWMQKJE.js +200 -0
  585. package/dist/chunks/chunk-PNJJ6TV6.js +45 -0
  586. package/dist/chunks/chunk-PNLVMTDJ.js +200 -0
  587. package/dist/chunks/chunk-PPA7PWC6.js +92 -0
  588. package/dist/chunks/chunk-PPVAY7JD.js +155 -0
  589. package/dist/chunks/chunk-PQCJS6VP.js +121 -0
  590. package/dist/chunks/chunk-PXLMOCG2.js +169 -0
  591. package/dist/chunks/chunk-PZ644XYM.js +330 -0
  592. package/dist/chunks/chunk-Q2ZB3FHK.js +78 -0
  593. package/dist/chunks/chunk-Q3SQ2WAU.js +257 -0
  594. package/dist/chunks/chunk-Q4EBZRNN.js +112 -0
  595. package/dist/chunks/chunk-Q4IELGHQ.js +187 -0
  596. package/dist/chunks/chunk-Q4P7BSUQ.js +140 -0
  597. package/dist/chunks/chunk-Q4PLXBNQ.js +51 -0
  598. package/dist/chunks/chunk-Q74FYIFU.js +121 -0
  599. package/dist/chunks/chunk-QDADUNEA.js +181 -0
  600. package/dist/chunks/chunk-QENC7S5B.js +87 -0
  601. package/dist/chunks/chunk-QFS3OUJN.js +105 -0
  602. package/dist/chunks/chunk-QGSO7KGM.js +117 -0
  603. package/dist/chunks/chunk-QH6PUSXO.js +45 -0
  604. package/dist/chunks/chunk-QHGFR4FY.js +78 -0
  605. package/dist/chunks/chunk-QIJY5PE5.js +133 -0
  606. package/dist/chunks/chunk-QITKMIAO.js +106 -0
  607. package/dist/chunks/chunk-QIZPU5YG.js +181 -0
  608. package/dist/chunks/chunk-QMUHHBD3.js +76 -0
  609. package/dist/chunks/chunk-QOIL356N.js +71 -0
  610. package/dist/chunks/chunk-QQI2GO7S.js +262 -0
  611. package/dist/chunks/chunk-QQMP5GGE.js +175 -0
  612. package/dist/chunks/chunk-QRFDSGBT.js +103 -0
  613. package/dist/chunks/chunk-QVUQ2BAM.js +33 -0
  614. package/dist/chunks/chunk-QWU2QURP.js +368 -0
  615. package/dist/chunks/chunk-QXKWG73E.js +1403 -0
  616. package/dist/chunks/chunk-QXNLPLYP.js +100 -0
  617. package/dist/chunks/chunk-QZ3BIF6H.js +23 -0
  618. package/dist/chunks/chunk-QZWBAAYF.js +23 -0
  619. package/dist/chunks/chunk-QZXYJ4RK.js +95 -0
  620. package/dist/chunks/chunk-QZYDRLH5.js +290 -0
  621. package/dist/chunks/chunk-R2SQMRXC.js +85 -0
  622. package/dist/chunks/chunk-R2UG7VXF.js +45 -0
  623. package/dist/chunks/chunk-R3ZXQWTY.js +220 -0
  624. package/dist/chunks/chunk-R65LEW7H.js +139 -0
  625. package/dist/chunks/chunk-R7352YKD.js +45 -0
  626. package/dist/chunks/chunk-RAKVPFZV.js +95 -0
  627. package/dist/chunks/chunk-RCZ6AYLT.js +123 -0
  628. package/dist/chunks/chunk-REMCZH3Q.js +138 -0
  629. package/dist/chunks/chunk-RFXJC3UX.js +231 -0
  630. package/dist/chunks/chunk-RGNZITR2.js +81 -0
  631. package/dist/chunks/chunk-RHBGWWAL.js +331 -0
  632. package/dist/chunks/chunk-RIQ4TTCR.js +23 -0
  633. package/dist/chunks/chunk-RJCTWPTJ.js +84 -0
  634. package/dist/chunks/chunk-RJSUNBLL.js +149 -0
  635. package/dist/chunks/chunk-RLCUMYXI.js +261 -0
  636. package/dist/chunks/chunk-RLUHXQ75.js +124 -0
  637. package/dist/chunks/chunk-RLX73EFO.js +119 -0
  638. package/dist/chunks/chunk-RNMBZGDA.js +33 -0
  639. package/dist/chunks/chunk-RQ6DXAY3.js +195 -0
  640. package/dist/chunks/chunk-RR6IUVE3.js +95 -0
  641. package/dist/chunks/chunk-RT7DN7I6.js +1309 -0
  642. package/dist/chunks/chunk-RUD5NE4E.js +410 -0
  643. package/dist/chunks/chunk-RVBZDMLW.js +103 -0
  644. package/dist/chunks/chunk-RWBKJPUL.js +196 -0
  645. package/dist/chunks/chunk-RWCA6YHF.js +738 -0
  646. package/dist/chunks/chunk-RXIYJTTI.js +166 -0
  647. package/dist/chunks/chunk-RXQ3KFNM.js +141 -0
  648. package/dist/chunks/chunk-RXRPNBBD.js +82 -0
  649. package/dist/chunks/chunk-RZHW2VHD.js +191 -0
  650. package/dist/chunks/chunk-SC2Y3WGS.js +152 -0
  651. package/dist/chunks/chunk-SCDAUFLC.js +110 -0
  652. package/dist/chunks/chunk-SCLPHSXD.js +150 -0
  653. package/dist/chunks/chunk-SG2ZRWUX.js +93 -0
  654. package/dist/chunks/chunk-SHW7NB7O.js +198 -0
  655. package/dist/chunks/chunk-SIIDFGPQ.js +220 -0
  656. package/dist/chunks/chunk-SLQRAE6E.js +179 -0
  657. package/dist/chunks/chunk-SMMGBI3P.js +122 -0
  658. package/dist/chunks/chunk-SMWCBMNP.js +23 -0
  659. package/dist/chunks/chunk-SNZXH6FZ.js +266 -0
  660. package/dist/chunks/chunk-SOADRWGV.js +358 -0
  661. package/dist/chunks/chunk-SOJKQ7HK.js +36 -0
  662. package/dist/chunks/chunk-SPY6KYOJ.js +71 -0
  663. package/dist/chunks/chunk-SQCRHMPO.js +242 -0
  664. package/dist/chunks/chunk-SQGJZ2LX.js +274 -0
  665. package/dist/chunks/chunk-SQYWDISP.js +23 -0
  666. package/dist/chunks/chunk-SR7YIAYP.js +75 -0
  667. package/dist/chunks/chunk-SRT4UBZX.js +97 -0
  668. package/dist/chunks/chunk-SUDE7CLT.js +81 -0
  669. package/dist/chunks/chunk-SV4TTWY4.js +42 -0
  670. package/dist/chunks/chunk-SW252Z2D.js +78 -0
  671. package/dist/chunks/chunk-SXHFBXGO.js +33 -0
  672. package/dist/chunks/chunk-SYPBMWQC.js +360 -0
  673. package/dist/chunks/chunk-SZ4PVLX6.js +208 -0
  674. package/dist/chunks/chunk-T2ERUJ2V.js +152 -0
  675. package/dist/chunks/chunk-T2Z4HAOW.js +182 -0
  676. package/dist/chunks/chunk-T3AGOMZP.js +97 -0
  677. package/dist/chunks/chunk-T3MIHVJE.js +47 -0
  678. package/dist/chunks/chunk-T3OSU3S7.js +68 -0
  679. package/dist/chunks/chunk-T7G6CKLN.js +134 -0
  680. package/dist/chunks/chunk-TBPPBNOG.js +102 -0
  681. package/dist/chunks/chunk-TBZHPAS7.js +122 -0
  682. package/dist/chunks/chunk-TCT3ILX7.js +144 -0
  683. package/dist/chunks/chunk-TDBD2EPO.js +45 -0
  684. package/dist/chunks/chunk-TEMGE57G.js +23 -0
  685. package/dist/chunks/chunk-TEOCP7YQ.js +133 -0
  686. package/dist/chunks/chunk-TFRMXP46.js +184 -0
  687. package/dist/chunks/chunk-TGBTBPV3.js +287 -0
  688. package/dist/chunks/chunk-TGQ322VA.js +115 -0
  689. package/dist/chunks/chunk-TI6PKLSH.js +197 -0
  690. package/dist/chunks/chunk-TJDWHEOL.js +137 -0
  691. package/dist/chunks/chunk-TJPY4HJ6.js +232 -0
  692. package/dist/chunks/chunk-TLBGVZXU.js +83 -0
  693. package/dist/chunks/chunk-TLPGFPTL.js +209 -0
  694. package/dist/chunks/chunk-TMQ6NMPH.js +176 -0
  695. package/dist/chunks/chunk-TNFLOIRG.js +192 -0
  696. package/dist/chunks/chunk-TOUF2HLS.js +118 -0
  697. package/dist/chunks/chunk-TQ5R5XU7.js +165 -0
  698. package/dist/chunks/chunk-TRCULNNE.js +123 -0
  699. package/dist/chunks/chunk-TRIQ3PKG.js +97 -0
  700. package/dist/chunks/chunk-TRRQ347T.js +175 -0
  701. package/dist/chunks/chunk-TT3GW5VX.js +90 -0
  702. package/dist/chunks/chunk-TTBZWETH.js +134 -0
  703. package/dist/chunks/chunk-TTTUWTVN.js +172 -0
  704. package/dist/chunks/chunk-TV3SYSYY.js +165 -0
  705. package/dist/chunks/chunk-TWD2IYEW.js +160 -0
  706. package/dist/chunks/chunk-TY7ZSNVZ.js +55 -0
  707. package/dist/chunks/chunk-TZ6FRBF4.js +75 -0
  708. package/dist/chunks/chunk-U25XSBHN.js +88 -0
  709. package/dist/chunks/chunk-U63R2IUJ.js +157 -0
  710. package/dist/chunks/chunk-U6FT3XNJ.js +23 -0
  711. package/dist/chunks/chunk-U7ALK6AZ.js +226 -0
  712. package/dist/chunks/chunk-UAJSFDAC.js +49 -0
  713. package/dist/chunks/chunk-UBHN7S2V.js +217 -0
  714. package/dist/chunks/chunk-UBS3TVJO.js +146 -0
  715. package/dist/chunks/chunk-UE6IMPY3.js +249 -0
  716. package/dist/chunks/chunk-UF4PAL6T.js +83 -0
  717. package/dist/chunks/chunk-UGUFREHV.js +10311 -0
  718. package/dist/chunks/chunk-UJGO4GDG.js +234 -0
  719. package/dist/chunks/chunk-UJYLLEJT.js +390 -0
  720. package/dist/chunks/chunk-ULSPD424.js +305 -0
  721. package/dist/chunks/chunk-UMPR42SA.js +655 -0
  722. package/dist/chunks/chunk-UMVX5DYW.js +135 -0
  723. package/dist/chunks/chunk-UOCLRUER.js +23 -0
  724. package/dist/chunks/chunk-URZLWNOE.js +90 -0
  725. package/dist/chunks/chunk-USIMOCFJ.js +168 -0
  726. package/dist/chunks/chunk-USPH2BSU.js +131 -0
  727. package/dist/chunks/chunk-UUTN3FQV.js +23 -0
  728. package/dist/chunks/chunk-UVEENL72.js +105 -0
  729. package/dist/chunks/chunk-UVFOOSBD.js +100 -0
  730. package/dist/chunks/chunk-UVN2TL6I.js +33 -0
  731. package/dist/chunks/chunk-UWIM6PVI.js +23 -0
  732. package/dist/chunks/chunk-UWVLK3Y2.js +118 -0
  733. package/dist/chunks/chunk-UX4J5GMK.js +146 -0
  734. package/dist/chunks/chunk-UXDWK53B.js +198 -0
  735. package/dist/chunks/chunk-UY2JVIXG.js +97 -0
  736. package/dist/chunks/chunk-UY3WRPES.js +497 -0
  737. package/dist/chunks/chunk-UY6WULXL.js +303 -0
  738. package/dist/chunks/chunk-UYHHQL6K.js +49 -0
  739. package/dist/chunks/chunk-UZ4YDM5M.js +215 -0
  740. package/dist/chunks/chunk-V275U326.js +176 -0
  741. package/dist/chunks/chunk-V2GHOZLM.js +94 -0
  742. package/dist/chunks/chunk-V2RCKM5D.js +108 -0
  743. package/dist/chunks/chunk-V3DLHX5L.js +396 -0
  744. package/dist/chunks/chunk-V46M2I3A.js +130 -0
  745. package/dist/chunks/chunk-V472GMMS.js +158 -0
  746. package/dist/chunks/chunk-V7C5BGOF.js +103 -0
  747. package/dist/chunks/chunk-VAMNVZGK.js +52 -0
  748. package/dist/chunks/chunk-VBCJB3FA.js +33 -0
  749. package/dist/chunks/chunk-VBVXU4SZ.js +54 -0
  750. package/dist/chunks/chunk-VCHD65RE.js +161 -0
  751. package/dist/chunks/chunk-VHJL2CZX.js +106 -0
  752. package/dist/chunks/chunk-VJXPWVGV.js +23 -0
  753. package/dist/chunks/chunk-VKIQUHXU.js +33 -0
  754. package/dist/chunks/chunk-VMXPEUKH.js +107 -0
  755. package/dist/chunks/chunk-VOXNQZAO.js +278 -0
  756. package/dist/chunks/chunk-VQY7PBUD.js +81 -0
  757. package/dist/chunks/chunk-VQZQJBSH.js +87 -0
  758. package/dist/chunks/chunk-VSJGJDW2.js +167 -0
  759. package/dist/chunks/chunk-VUX6FKK7.js +147 -0
  760. package/dist/chunks/chunk-VVDQL3PF.js +33 -0
  761. package/dist/chunks/chunk-VW2UAOSU.js +77 -0
  762. package/dist/chunks/chunk-VX3T76QQ.js +120 -0
  763. package/dist/chunks/chunk-VXOXJXAF.js +170 -0
  764. package/dist/chunks/chunk-VY6JVXMY.js +50 -0
  765. package/dist/chunks/chunk-VZDD6OBJ.js +78 -0
  766. package/dist/chunks/chunk-W2KG3CQA.js +261 -0
  767. package/dist/chunks/chunk-W3BC5Q7Z.js +38 -0
  768. package/dist/chunks/chunk-W4VJQITF.js +238 -0
  769. package/dist/chunks/chunk-W6F7FH3X.js +415 -0
  770. package/dist/chunks/chunk-W72XUP4I.js +102 -0
  771. package/dist/chunks/chunk-WBJSMD7F.js +33 -0
  772. package/dist/chunks/chunk-WDW7TPC6.js +209 -0
  773. package/dist/chunks/chunk-WDYD6N7F.js +301 -0
  774. package/dist/chunks/chunk-WEM3QUB5.js +144 -0
  775. package/dist/chunks/chunk-WFBXSXHP.js +213 -0
  776. package/dist/chunks/chunk-WJPOLAN4.js +173 -0
  777. package/dist/chunks/chunk-WL2IQX4W.js +204 -0
  778. package/dist/chunks/chunk-WNCBSOJQ.js +149 -0
  779. package/dist/chunks/chunk-WNR2BC4A.js +165 -0
  780. package/dist/chunks/chunk-WSSSY3JL.js +86 -0
  781. package/dist/chunks/chunk-WSW5RIWJ.js +70 -0
  782. package/dist/chunks/chunk-WU2HAWME.js +91 -0
  783. package/dist/chunks/chunk-WWBLMFYO.js +135 -0
  784. package/dist/chunks/chunk-WWGMB4XA.js +127 -0
  785. package/dist/chunks/chunk-WY2Y4GID.js +181 -0
  786. package/dist/chunks/chunk-X2X3NY3J.js +142 -0
  787. package/dist/chunks/chunk-X2ZZVMVQ.js +177 -0
  788. package/dist/chunks/chunk-X3JPB2MT.js +109 -0
  789. package/dist/chunks/chunk-X3OT4EJZ.js +226 -0
  790. package/dist/chunks/chunk-X4KNFVOT.js +23 -0
  791. package/dist/chunks/chunk-X6V755Z4.js +146 -0
  792. package/dist/chunks/chunk-XABPSJTV.js +81 -0
  793. package/dist/chunks/chunk-XATKFHIC.js +684 -0
  794. package/dist/chunks/chunk-XBNFFLEL.js +106 -0
  795. package/dist/chunks/chunk-XDEOO7Q3.js +55 -0
  796. package/dist/chunks/chunk-XDWVAAEG.js +108 -0
  797. package/dist/chunks/chunk-XFNCWJ2B.js +324 -0
  798. package/dist/chunks/chunk-XH3DNBK4.js +30 -0
  799. package/dist/chunks/chunk-XHPZRLJF.js +122 -0
  800. package/dist/chunks/chunk-XHQGF3I4.js +135 -0
  801. package/dist/chunks/chunk-XHWOBCMC.js +33 -0
  802. package/dist/chunks/chunk-XJ4XLA4I.js +139 -0
  803. package/dist/chunks/chunk-XK6BUPL3.js +84 -0
  804. package/dist/chunks/chunk-XKUMZSJX.js +88 -0
  805. package/dist/chunks/chunk-XLMMVQTY.js +559 -0
  806. package/dist/chunks/chunk-XMCQFMF2.js +81 -0
  807. package/dist/chunks/chunk-XNAV5F6R.js +111 -0
  808. package/dist/chunks/chunk-XNXJR2NK.js +728 -0
  809. package/dist/chunks/chunk-XPZ4X4ET.js +272 -0
  810. package/dist/chunks/chunk-XQGXRGCO.js +188 -0
  811. package/dist/chunks/chunk-XQYHY3DW.js +94 -0
  812. package/dist/chunks/chunk-XRBFISRW.js +66 -0
  813. package/dist/chunks/chunk-XRQ44R3M.js +100 -0
  814. package/dist/chunks/chunk-XT4ZSJBX.js +150 -0
  815. package/dist/chunks/chunk-XVAXI7N5.js +304 -0
  816. package/dist/chunks/chunk-XWJ4JBXU.js +250 -0
  817. package/dist/chunks/chunk-XZHINKCK.js +342 -0
  818. package/dist/chunks/chunk-Y2DGLX3N.js +185 -0
  819. package/dist/chunks/chunk-Y2TRZSEO.js +112 -0
  820. package/dist/chunks/chunk-Y3QVVOQI.js +150 -0
  821. package/dist/chunks/chunk-Y46O57EH.js +23 -0
  822. package/dist/chunks/chunk-Y4L3NJCJ.js +277 -0
  823. package/dist/chunks/chunk-Y5ABLHOK.js +170 -0
  824. package/dist/chunks/chunk-Y7NJSMEO.js +217 -0
  825. package/dist/chunks/chunk-YAUOFXEJ.js +23 -0
  826. package/dist/chunks/chunk-YCE36BOL.js +41 -0
  827. package/dist/chunks/chunk-YE3TPQOT.js +157 -0
  828. package/dist/chunks/chunk-YECYUZNX.js +206 -0
  829. package/dist/chunks/chunk-YF6ZOGNK.js +23 -0
  830. package/dist/chunks/chunk-YGDZEMK4.js +80 -0
  831. package/dist/chunks/chunk-YGW65B7Z.js +172 -0
  832. package/dist/chunks/chunk-YHVBLRAT.js +256 -0
  833. package/dist/chunks/chunk-YIO6WEEN.js +345 -0
  834. package/dist/chunks/chunk-YLPKCZ2R.js +83 -0
  835. package/dist/chunks/chunk-YLSDVEOL.js +358 -0
  836. package/dist/chunks/chunk-YOYXPHBT.js +77 -0
  837. package/dist/chunks/chunk-YP5TS4JT.js +33 -0
  838. package/dist/chunks/chunk-YQ7K2CC4.js +150 -0
  839. package/dist/chunks/chunk-YVKJF3ZA.js +33 -0
  840. package/dist/chunks/chunk-YVUTAADU.js +147 -0
  841. package/dist/chunks/chunk-YW7TRY4A.js +111 -0
  842. package/dist/chunks/chunk-YWX6DBXZ.js +82 -0
  843. package/dist/chunks/chunk-YX2UEN4J.js +177 -0
  844. package/dist/chunks/chunk-YY4LYBFD.js +74 -0
  845. package/dist/chunks/chunk-YY6YLUOX.js +138 -0
  846. package/dist/chunks/chunk-YYVKSTGA.js +154 -0
  847. package/dist/chunks/chunk-Z27JL77H.js +224 -0
  848. package/dist/chunks/chunk-Z2OZRSYA.js +197 -0
  849. package/dist/chunks/chunk-Z2TF6P4P.js +166 -0
  850. package/dist/chunks/chunk-Z4NAKUWO.js +168 -0
  851. package/dist/chunks/chunk-Z5KEIJOX.js +33 -0
  852. package/dist/chunks/chunk-Z5YD3FUK.js +23 -0
  853. package/dist/chunks/chunk-ZAG3REIE.js +93 -0
  854. package/dist/chunks/chunk-ZCGQP3HM.js +122 -0
  855. package/dist/chunks/chunk-ZER2QFPP.js +123 -0
  856. package/dist/chunks/chunk-ZF7S4CWK.js +152 -0
  857. package/dist/chunks/chunk-ZGNJXVOR.js +158 -0
  858. package/dist/chunks/chunk-ZHFFCXOT.js +156 -0
  859. package/dist/chunks/chunk-ZHKZFEKK.js +155 -0
  860. package/dist/chunks/chunk-ZIB46BZC.js +86 -0
  861. package/dist/chunks/chunk-ZIITWS2R.js +159 -0
  862. package/dist/chunks/chunk-ZK3RD3MA.js +23 -0
  863. package/dist/chunks/chunk-ZKIVGTUU.js +119 -0
  864. package/dist/chunks/chunk-ZMCS5DHC.js +95 -0
  865. package/dist/chunks/chunk-ZMFL6JFB.js +307 -0
  866. package/dist/chunks/chunk-ZNOIZWI3.js +135 -0
  867. package/dist/chunks/chunk-ZNWC5AAU.js +181 -0
  868. package/dist/chunks/chunk-ZQIXQSRS.js +133 -0
  869. package/dist/chunks/chunk-ZQOZJVMJ.js +160 -0
  870. package/dist/chunks/chunk-ZSPPDLZC.js +358 -0
  871. package/dist/chunks/chunk-ZSY3VWAL.js +206 -0
  872. package/dist/chunks/chunk-ZVYFKPXS.js +102 -0
  873. package/dist/chunks/chunk-ZWRMC4HL.js +160 -0
  874. package/dist/chunks/chunk-ZX7F3Z4B.js +244 -0
  875. package/dist/chunks/chunk-ZYS6VFLS.js +97 -0
  876. package/dist/chunks/chunk-ZZANIRLG.js +898 -0
  877. package/dist/chunks/chunk-ZZKXMDCH.js +230 -0
  878. package/dist/chunks/chunk-ZZREQJ5H.js +242 -0
  879. package/dist/chunks/client-3XVU7EZN.js +168 -0
  880. package/dist/chunks/client-NKXABBB2.js +31 -0
  881. package/dist/chunks/client-UEBKLRWH.js +47 -0
  882. package/dist/chunks/client-actions-HSU6LXB3.js +168 -0
  883. package/dist/chunks/dangerous-IUSV6JMX.js +123 -0
  884. package/dist/chunks/delete-current-file-B7GF6WKT.js +162 -0
  885. package/dist/chunks/editor-seams-7V7DY52W.js +182 -0
  886. package/dist/chunks/editor-store-JFHEOFHY.js +147 -0
  887. package/dist/chunks/export-GMMPEVQW.js +67 -0
  888. package/dist/chunks/export-watermark-22LJTK5X.js +156 -0
  889. package/dist/chunks/eyedropper-BGMQDPTB.js +354 -0
  890. package/dist/chunks/generate-media-7RV2ZT4X.js +255 -0
  891. package/dist/chunks/host-PPWYGYTN.js +181 -0
  892. package/dist/chunks/integrations-TMJB7SEY.js +125 -0
  893. package/dist/chunks/kit-modules-J6RQ6LNQ.js +18 -0
  894. package/dist/chunks/libraries-7AUYSQU4.js +310 -0
  895. package/dist/chunks/library-previews-FX3SCVUA.js +206 -0
  896. package/dist/chunks/live-JRCK5ROW.js +321 -0
  897. package/dist/chunks/media-tool-BGIARYN2.js +236 -0
  898. package/dist/chunks/new-file-XB2B4U6V.js +139 -0
  899. package/dist/chunks/next-commerce-A7ZHR63R.js +72 -0
  900. package/dist/chunks/plugin-J6JF3PXI.js +130 -0
  901. package/dist/chunks/plugin-import-YRTFZW5S.js +690 -0
  902. package/dist/chunks/pptx-52USKO4C.js +307 -0
  903. package/dist/chunks/presence-MW5DBXWS.js +136 -0
  904. package/dist/chunks/preview-media-M2JJFXYG.js +1 -1
  905. package/dist/chunks/project-37JVFD6K.js +1599 -0
  906. package/dist/chunks/publish-site-4BKVML3W.js +166 -0
  907. package/dist/chunks/publish-store-QXVBQRV7.js +99 -0
  908. package/dist/chunks/raster-actions-FSIUMW5Y.js +232 -0
  909. package/dist/chunks/reference-images-R6ESAYSA.js +62 -0
  910. package/dist/chunks/resolvers-7RYSYAHZ.js +149 -0
  911. package/dist/chunks/runner-Q53FUQ4P.js +3545 -0
  912. package/dist/chunks/runtime-76MCOEOO.js +32 -0
  913. package/dist/chunks/shader-preview-JOE7NBD2.js +744 -0
  914. package/dist/chunks/sites-GKYHBZ5E.js +35 -0
  915. package/dist/chunks/store-QGNPU45L.js +233 -0
  916. package/dist/chunks/storefront-YZAY7XSO.js +334 -0
  917. package/dist/chunks/storefront-prepare-4XRHUBPC.js +33 -0
  918. package/dist/chunks/svg-export-3AWAIAN3.js +82 -0
  919. package/dist/chunks/sync-XVXFWCTT.js +161 -0
  920. package/dist/chunks/tabs-GRBJ3KDT.js +319 -0
  921. package/dist/chunks/team-GWLLCLUM.js +47 -0
  922. package/dist/chunks/team-client-JTGXOWAU.js +158 -0
  923. package/dist/chunks/templates-GPHXGC6I.js +183 -0
  924. package/dist/chunks/tools-RMNATBMU.js +37 -0
  925. package/dist/chunks/ui-commands-C4R3GX3N.js +190 -0
  926. package/dist/chunks/versions-33OVXBDN.js +319 -0
  927. package/dist/chunks/video-K364OZFS.js +1 -1
  928. package/dist/index.js +13 -13
  929. package/dist/lib/fonts/runtime.js +1 -1
  930. package/dist/lib/templates/capabilities.js +2 -2
  931. package/dist/lib/templates/finish.js +2 -2
  932. package/dist/lib/templates/upload.js +2 -2
  933. package/dist/lib/templates/vocabulary.js +2 -2
  934. package/dist/migrations/brand-media.js +4 -4
  935. package/dist/migrations/categories.js +2 -2
  936. package/dist/migrations/index.js +9 -9
  937. package/dist/migrations/timeline-facets.js +2 -2
  938. package/dist/templates/anime/character.js +7 -7
  939. package/dist/templates/anime/duel.js +10 -10
  940. package/dist/templates/anime/morning.js +10 -10
  941. package/dist/templates/anime/rain.js +10 -10
  942. package/dist/templates/anime/shared.js +8 -8
  943. package/dist/templates/anime/starlight.js +10 -10
  944. package/dist/templates/anime/titan.js +10 -10
  945. package/dist/templates/app/festival-presale-electronic-ticket.js +9 -9
  946. package/dist/templates/app/festival-presale-family-ticket.js +9 -9
  947. package/dist/templates/app/festival-presale-folk-ticket.js +9 -9
  948. package/dist/templates/app/festival-presale-food-ticket.js +9 -9
  949. package/dist/templates/app/festival-presale-jazz-ticket.js +9 -9
  950. package/dist/templates/app/festival-presale-street-ticket.js +9 -9
  951. package/dist/templates/app/music/build.js +4 -4
  952. package/dist/templates/app/music-grove.js +7 -7
  953. package/dist/templates/app/music-nightline.js +7 -7
  954. package/dist/templates/app/music-orbit.js +7 -7
  955. package/dist/templates/app/music-undertow.js +7 -7
  956. package/dist/templates/app/onboarding-carousel.js +6 -6
  957. package/dist/templates/app/saas-store-paywall.js +6 -6
  958. package/dist/templates/app/splash.js +6 -6
  959. package/dist/templates/app/success-confetti.js +6 -6
  960. package/dist/templates/app/tour-tickets-june-ticket.js +6 -6
  961. package/dist/templates/app/tour-tickets-tide-ticket.js +6 -6
  962. package/dist/templates/app/tour-tickets-wreck-ticket.js +6 -6
  963. package/dist/templates/build.js +2 -2
  964. package/dist/templates/cards/index.js +8 -8
  965. package/dist/templates/cards/shared.js +6 -6
  966. package/dist/templates/cards/themes.js +7 -7
  967. package/dist/templates/count.js +3 -3
  968. package/dist/templates/data/bars.js +6 -6
  969. package/dist/templates/data/countdown-story.js +6 -6
  970. package/dist/templates/data/counters.js +6 -6
  971. package/dist/templates/data/donut.js +6 -6
  972. package/dist/templates/data/line.js +6 -6
  973. package/dist/templates/data/year-in-review.js +6 -6
  974. package/dist/templates/effects/glass-intro.js +6 -6
  975. package/dist/templates/effects/glass-promo.js +6 -6
  976. package/dist/templates/effects/grain-story.js +6 -6
  977. package/dist/templates/effects/grid-intro.js +6 -6
  978. package/dist/templates/effects/halftone-story.js +6 -6
  979. package/dist/templates/effects/mesh-story.js +6 -6
  980. package/dist/templates/effects/shader-title.js +6 -6
  981. package/dist/templates/email/april-fools-header.js +8 -8
  982. package/dist/templates/email/art-deco-invitation.js +7 -7
  983. package/dist/templates/email/autumn-harvest-header.js +7 -7
  984. package/dist/templates/email/back-to-school-header.js +7 -7
  985. package/dist/templates/email/black-friday-coupons-header.js +7 -7
  986. package/dist/templates/email/black-friday-header.js +7 -7
  987. package/dist/templates/email/black-friday-neon-header.js +7 -7
  988. package/dist/templates/email/black-friday-scratch-header.js +7 -7
  989. package/dist/templates/email/black-friday-ticker-header.js +7 -7
  990. package/dist/templates/email/broadsheet-weekly-edition-header.js +7 -7
  991. package/dist/templates/email/claymation-header.js +7 -7
  992. package/dist/templates/email/countdown-gif.js +7 -7
  993. package/dist/templates/email/cyberpunk-header.js +7 -7
  994. package/dist/templates/email/diwali-header.js +7 -7
  995. package/dist/templates/email/earth-day-header.js +7 -7
  996. package/dist/templates/email/festival-presale-electronic-header.js +9 -9
  997. package/dist/templates/email/festival-presale-family-header.js +9 -9
  998. package/dist/templates/email/festival-presale-folk-header.js +9 -9
  999. package/dist/templates/email/festival-presale-food-header.js +9 -9
  1000. package/dist/templates/email/festival-presale-jazz-header.js +9 -9
  1001. package/dist/templates/email/festival-presale-street-header.js +9 -9
  1002. package/dist/templates/email/gothic-header.js +7 -7
  1003. package/dist/templates/email/halloween-header.js +7 -7
  1004. package/dist/templates/email/header-launch.js +7 -7
  1005. package/dist/templates/email/header-newsletter.js +7 -7
  1006. package/dist/templates/email/header-sale.js +7 -7
  1007. package/dist/templates/email/lunar-new-year-header.js +7 -7
  1008. package/dist/templates/email/manuscript-chronicle-header.js +7 -7
  1009. package/dist/templates/email/new-year-header.js +7 -7
  1010. package/dist/templates/email/noir-header.js +7 -7
  1011. package/dist/templates/email/psychedelic-header.js +7 -7
  1012. package/dist/templates/email/riso-zine-changelog-header.js +7 -7
  1013. package/dist/templates/email/saas-mail-changelog.js +9 -9
  1014. package/dist/templates/email/saas-mail-day-one.js +8 -8
  1015. package/dist/templates/email/saas-mail-day-three.js +8 -8
  1016. package/dist/templates/email/saas-mail-launch.js +8 -8
  1017. package/dist/templates/email/saas-mail-payment-failed.js +8 -8
  1018. package/dist/templates/email/saas-mail-sign-in-code.js +8 -8
  1019. package/dist/templates/email/saas-mail-trial-ending.js +8 -8
  1020. package/dist/templates/email/saas-mail-waitlist.js +8 -8
  1021. package/dist/templates/email/shared.js +4 -4
  1022. package/dist/templates/email/singles-day-header.js +7 -7
  1023. package/dist/templates/email/solarpunk-header.js +7 -7
  1024. package/dist/templates/email/space-opera-header.js +7 -7
  1025. package/dist/templates/email/spring-bloom-header.js +7 -7
  1026. package/dist/templates/email/style-bento-header.js +7 -7
  1027. package/dist/templates/email/style-brutalist-header.js +7 -7
  1028. package/dist/templates/email/style-dark-header.js +7 -7
  1029. package/dist/templates/email/style-data-header.js +7 -7
  1030. package/dist/templates/email/style-editorial-header.js +7 -7
  1031. package/dist/templates/email/style-glass-header.js +7 -7
  1032. package/dist/templates/email/style-gradient-header.js +7 -7
  1033. package/dist/templates/email/style-maximal-header.js +7 -7
  1034. package/dist/templates/email/style-pastel-header.js +7 -7
  1035. package/dist/templates/email/style-sketch-header.js +7 -7
  1036. package/dist/templates/email/style-swiss-header.js +7 -7
  1037. package/dist/templates/email/style-terminal-header.js +7 -7
  1038. package/dist/templates/email/summer-heatwave-header.js +7 -7
  1039. package/dist/templates/email/tour-tickets-june-header.js +7 -7
  1040. package/dist/templates/email/tour-tickets-tide-header.js +7 -7
  1041. package/dist/templates/email/tour-tickets-wreck-header.js +7 -7
  1042. package/dist/templates/email/transit-map-service-update.js +7 -7
  1043. package/dist/templates/email/ukiyo-e-greeting-header.js +7 -7
  1044. package/dist/templates/email/valentines-header.js +7 -7
  1045. package/dist/templates/email/winter-cosy-header.js +7 -7
  1046. package/dist/templates/email/winter-holidays-header.js +7 -7
  1047. package/dist/templates/game/blossom-bash-puzzle.js +7 -7
  1048. package/dist/templates/game/deckbound-roguelike.js +7 -7
  1049. package/dist/templates/game/emberfall-rpg.js +7 -7
  1050. package/dist/templates/game/hearthmoor-farm.js +7 -7
  1051. package/dist/templates/game/index.js +20 -20
  1052. package/dist/templates/game/iron-lotus-fighter.js +7 -7
  1053. package/dist/templates/game/ironroot-rts.js +7 -7
  1054. package/dist/templates/game/mossy-hollow-platformer.js +9 -9
  1055. package/dist/templates/game/neon-apex-racing.js +7 -7
  1056. package/dist/templates/game/platformer.js +8 -8
  1057. package/dist/templates/game/pulse-riot-rhythm.js +7 -7
  1058. package/dist/templates/game/shared.js +4 -4
  1059. package/dist/templates/game/sprout-quest-pixel-platformer.js +9 -9
  1060. package/dist/templates/game/vanta-fps.js +7 -7
  1061. package/dist/templates/index.js +844 -843
  1062. package/dist/templates/index.json +12 -6
  1063. package/dist/templates/kinetic/letters.js +6 -6
  1064. package/dist/templates/kinetic/lines.js +6 -6
  1065. package/dist/templates/kinetic/typewriter.js +6 -6
  1066. package/dist/templates/kinetic/word-swap.js +6 -6
  1067. package/dist/templates/kinetic/words.js +6 -6
  1068. package/dist/templates/kit.js +3 -3
  1069. package/dist/templates/libraries/audio-reactive.js +6 -6
  1070. package/dist/templates/libraries/loaders.js +6 -6
  1071. package/dist/templates/libraries/micro-interactions.js +6 -6
  1072. package/dist/templates/libraries/motion-essentials.js +6 -6
  1073. package/dist/templates/libraries/toasts.js +6 -6
  1074. package/dist/templates/lottie/ai.js +7 -7
  1075. package/dist/templates/lottie/climate.js +7 -7
  1076. package/dist/templates/lottie/commerce.js +7 -7
  1077. package/dist/templates/lottie/education.js +7 -7
  1078. package/dist/templates/lottie/fintech.js +7 -7
  1079. package/dist/templates/lottie/food.js +7 -7
  1080. package/dist/templates/lottie/health.js +7 -7
  1081. package/dist/templates/lottie/index.js +31 -31
  1082. package/dist/templates/lottie/lottie-kit.js +6 -6
  1083. package/dist/templates/lottie/realestate.js +7 -7
  1084. package/dist/templates/lottie/saas-ui-checklist.js +8 -8
  1085. package/dist/templates/lottie/saas-ui-dashboard-hero.js +8 -8
  1086. package/dist/templates/lottie/saas-ui-empty-data.js +8 -8
  1087. package/dist/templates/lottie/saas-ui-empty-search.js +8 -8
  1088. package/dist/templates/lottie/saas-ui-error-retry.js +8 -8
  1089. package/dist/templates/lottie/saas-ui-file-upload.js +8 -8
  1090. package/dist/templates/lottie/saas-ui-streaming-answer.js +8 -8
  1091. package/dist/templates/lottie/saas-ui-sync-connected.js +8 -8
  1092. package/dist/templates/lottie/saas-ui-trial-timeline.js +8 -8
  1093. package/dist/templates/lottie/saas-ui-upgrade-unlocked.js +8 -8
  1094. package/dist/templates/lottie/saas-ui.js +18 -18
  1095. package/dist/templates/lottie/saas.js +7 -7
  1096. package/dist/templates/lottie/security.js +7 -7
  1097. package/dist/templates/lottie/techniques.js +7 -7
  1098. package/dist/templates/lottie/travel.js +7 -7
  1099. package/dist/templates/motion/ai-trailer/index.js +6 -6
  1100. package/dist/templates/motion/ambient-loop.js +6 -6
  1101. package/dist/templates/motion/app-icon-sting.js +6 -6
  1102. package/dist/templates/motion/april-fools-infomercial-reel.js +8 -8
  1103. package/dist/templates/motion/arcade-high-score.js +6 -6
  1104. package/dist/templates/motion/art-deco-grand-opening.js +6 -6
  1105. package/dist/templates/motion/autumn-harvest-year-reel.js +6 -6
  1106. package/dist/templates/motion/back-to-school-timetable-reel.js +6 -6
  1107. package/dist/templates/motion/bauhaus-launch-reel.js +6 -6
  1108. package/dist/templates/motion/black-friday-coupons-deal-reel.js +6 -6
  1109. package/dist/templates/motion/black-friday-coupons-last-day.js +6 -6
  1110. package/dist/templates/motion/black-friday-deal-drop.js +6 -6
  1111. package/dist/templates/motion/black-friday-neon-deal-reel.js +6 -6
  1112. package/dist/templates/motion/black-friday-neon-last-day.js +6 -6
  1113. package/dist/templates/motion/black-friday-scratch-countdown.js +6 -6
  1114. package/dist/templates/motion/black-friday-scratch-deal-reel.js +6 -6
  1115. package/dist/templates/motion/black-friday-scratch-last-day.js +6 -6
  1116. package/dist/templates/motion/black-friday-ticker-deal-drop.js +6 -6
  1117. package/dist/templates/motion/black-friday-ticker-last-call.js +6 -6
  1118. package/dist/templates/motion/blueprint-rev-b-reel.js +6 -6
  1119. package/dist/templates/motion/broadsheet-launch-reel.js +6 -6
  1120. package/dist/templates/motion/broadsheet-milestone-post.js +7 -7
  1121. package/dist/templates/motion/claymation-launch-reel.js +6 -6
  1122. package/dist/templates/motion/comic-book-issue-reel.js +6 -6
  1123. package/dist/templates/motion/countdown.js +6 -6
  1124. package/dist/templates/motion/cyberpunk-lock-on-reel.js +6 -6
  1125. package/dist/templates/motion/departure-board-reel.js +6 -6
  1126. package/dist/templates/motion/diwali-lamps-reel.js +6 -6
  1127. package/dist/templates/motion/earth-day-footprint-reel.js +6 -6
  1128. package/dist/templates/motion/earth-day-pledge-post.js +6 -6
  1129. package/dist/templates/motion/festival-presale-electronic-countdown.js +9 -9
  1130. package/dist/templates/motion/festival-presale-electronic-lineup.js +9 -9
  1131. package/dist/templates/motion/festival-presale-electronic-reel.js +9 -9
  1132. package/dist/templates/motion/festival-presale-electronic-tier.js +9 -9
  1133. package/dist/templates/motion/festival-presale-family-countdown.js +9 -9
  1134. package/dist/templates/motion/festival-presale-family-lineup.js +9 -9
  1135. package/dist/templates/motion/festival-presale-family-reel.js +9 -9
  1136. package/dist/templates/motion/festival-presale-family-tier.js +9 -9
  1137. package/dist/templates/motion/festival-presale-folk-countdown.js +9 -9
  1138. package/dist/templates/motion/festival-presale-folk-lineup.js +9 -9
  1139. package/dist/templates/motion/festival-presale-folk-reel.js +9 -9
  1140. package/dist/templates/motion/festival-presale-folk-tier.js +9 -9
  1141. package/dist/templates/motion/festival-presale-food-countdown.js +9 -9
  1142. package/dist/templates/motion/festival-presale-food-lineup.js +9 -9
  1143. package/dist/templates/motion/festival-presale-food-reel.js +9 -9
  1144. package/dist/templates/motion/festival-presale-food-tier.js +9 -9
  1145. package/dist/templates/motion/festival-presale-jazz-countdown.js +9 -9
  1146. package/dist/templates/motion/festival-presale-jazz-lineup.js +9 -9
  1147. package/dist/templates/motion/festival-presale-jazz-reel.js +9 -9
  1148. package/dist/templates/motion/festival-presale-jazz-tier.js +9 -9
  1149. package/dist/templates/motion/festival-presale-street-countdown.js +9 -9
  1150. package/dist/templates/motion/festival-presale-street-lineup.js +9 -9
  1151. package/dist/templates/motion/festival-presale-street-reel.js +9 -9
  1152. package/dist/templates/motion/festival-presale-street-tier.js +9 -9
  1153. package/dist/templates/motion/gothic-launch-reel.js +6 -6
  1154. package/dist/templates/motion/halloween-graveyard-reel.js +6 -6
  1155. package/dist/templates/motion/instagram-promo.js +6 -6
  1156. package/dist/templates/motion/kinetic-headline.js +6 -6
  1157. package/dist/templates/motion/landing-hero/index.js +9 -9
  1158. package/dist/templates/motion/launch-trailer/document.js +844 -843
  1159. package/dist/templates/motion/launch-trailer/index.js +9 -9
  1160. package/dist/templates/motion/launch-trailer/scenes.js +8 -8
  1161. package/dist/templates/motion/logo-reveal.js +6 -6
  1162. package/dist/templates/motion/lower-third.js +6 -6
  1163. package/dist/templates/motion/lunar-new-year-envelope-reel.js +6 -6
  1164. package/dist/templates/motion/machined-trailer.js +8 -8
  1165. package/dist/templates/motion/manuscript-launch-reel.js +6 -6
  1166. package/dist/templates/motion/new-year-ball-drop-reel.js +6 -6
  1167. package/dist/templates/motion/noir-case-reel.js +6 -6
  1168. package/dist/templates/motion/pitch-title.js +6 -6
  1169. package/dist/templates/motion/psychedelic-gig-reel.js +6 -6
  1170. package/dist/templates/motion/riso-zine-launch-reel.js +6 -6
  1171. package/dist/templates/motion/saas-ai-prompt.js +6 -6
  1172. package/dist/templates/motion/saas-before-after.js +6 -6
  1173. package/dist/templates/motion/saas-changelog-drop.js +6 -6
  1174. package/dist/templates/motion/saas-film-webinar-opener.js +6 -6
  1175. package/dist/templates/motion/saas-hook-features.js +6 -6
  1176. package/dist/templates/motion/saas-mrr-milestone.js +6 -6
  1177. package/dist/templates/motion/saas-screen-demo.js +6 -6
  1178. package/dist/templates/motion/saas-store-install-ad.js +7 -7
  1179. package/dist/templates/motion/saas-testimonial.js +6 -6
  1180. package/dist/templates/motion/saas-vs-comparison.js +6 -6
  1181. package/dist/templates/motion/singles-day-flash-post.js +6 -6
  1182. package/dist/templates/motion/singles-day-live-reel.js +6 -6
  1183. package/dist/templates/motion/smooth-loop.js +6 -6
  1184. package/dist/templates/motion/solarpunk-rooftop-reel.js +6 -6
  1185. package/dist/templates/motion/space-opera-countdown-reel.js +6 -6
  1186. package/dist/templates/motion/spring-bloom-first-hundred-post.js +6 -6
  1187. package/dist/templates/motion/spring-bloom-first-shoots-reel.js +6 -6
  1188. package/dist/templates/motion/stat-pop.js +6 -6
  1189. package/dist/templates/motion/style-bento-feature-demo.js +6 -6
  1190. package/dist/templates/motion/style-bento-launch-reel.js +6 -6
  1191. package/dist/templates/motion/style-brutalist-feature-demo.js +6 -6
  1192. package/dist/templates/motion/style-brutalist-launch-reel.js +6 -6
  1193. package/dist/templates/motion/style-dark-feature-demo.js +6 -6
  1194. package/dist/templates/motion/style-dark-launch-reel.js +6 -6
  1195. package/dist/templates/motion/style-data-feature-demo.js +6 -6
  1196. package/dist/templates/motion/style-data-launch-reel.js +6 -6
  1197. package/dist/templates/motion/style-editorial-feature-demo.js +6 -6
  1198. package/dist/templates/motion/style-editorial-launch-reel.js +6 -6
  1199. package/dist/templates/motion/style-glass-feature-demo.js +6 -6
  1200. package/dist/templates/motion/style-glass-launch-reel.js +6 -6
  1201. package/dist/templates/motion/style-gradient-feature-demo.js +6 -6
  1202. package/dist/templates/motion/style-gradient-launch-reel.js +6 -6
  1203. package/dist/templates/motion/style-maximal-beat-cut.js +6 -6
  1204. package/dist/templates/motion/style-maximal-feature-demo.js +6 -6
  1205. package/dist/templates/motion/style-maximal-launch-reel.js +6 -6
  1206. package/dist/templates/motion/style-pastel-feature-demo.js +6 -6
  1207. package/dist/templates/motion/style-pastel-launch-reel.js +6 -6
  1208. package/dist/templates/motion/style-sketch-feature-demo.js +6 -6
  1209. package/dist/templates/motion/style-sketch-launch-reel.js +6 -6
  1210. package/dist/templates/motion/style-swiss-feature-demo.js +6 -6
  1211. package/dist/templates/motion/style-swiss-launch-reel.js +6 -6
  1212. package/dist/templates/motion/style-terminal-feature-demo.js +6 -6
  1213. package/dist/templates/motion/style-terminal-launch-reel.js +6 -6
  1214. package/dist/templates/motion/summer-heatwave-lido-reel.js +6 -6
  1215. package/dist/templates/motion/template-wall.js +7 -7
  1216. package/dist/templates/motion/title-card-3d.js +6 -6
  1217. package/dist/templates/motion/tour-tickets-june-city.js +6 -6
  1218. package/dist/templates/motion/tour-tickets-june-dates.js +6 -6
  1219. package/dist/templates/motion/tour-tickets-june-final.js +6 -6
  1220. package/dist/templates/motion/tour-tickets-june-reel.js +6 -6
  1221. package/dist/templates/motion/tour-tickets-tide-city.js +6 -6
  1222. package/dist/templates/motion/tour-tickets-tide-dates.js +6 -6
  1223. package/dist/templates/motion/tour-tickets-tide-final.js +6 -6
  1224. package/dist/templates/motion/tour-tickets-tide-reel.js +6 -6
  1225. package/dist/templates/motion/tour-tickets-wreck-city.js +6 -6
  1226. package/dist/templates/motion/tour-tickets-wreck-dates.js +6 -6
  1227. package/dist/templates/motion/tour-tickets-wreck-final.js +6 -6
  1228. package/dist/templates/motion/tour-tickets-wreck-reel.js +6 -6
  1229. package/dist/templates/motion/transit-map-line-opening.js +6 -6
  1230. package/dist/templates/motion/transit-map-milestone-post.js +6 -6
  1231. package/dist/templates/motion/ukiyo-e-launch-reel.js +6 -6
  1232. package/dist/templates/motion/valentines-breakup-reel.js +6 -6
  1233. package/dist/templates/motion/vaporwave-launch-reel.js +7 -7
  1234. package/dist/templates/motion/winter-cosy-heads-down-post.js +6 -6
  1235. package/dist/templates/motion/winter-cosy-hibernation-reel.js +6 -6
  1236. package/dist/templates/motion/winter-holidays-advent-reel.js +6 -6
  1237. package/dist/templates/motion-qa.js +4 -4
  1238. package/dist/templates/motion3d/app-store-preview.js +7 -7
  1239. package/dist/templates/motion3d/before-after-swing.js +7 -7
  1240. package/dist/templates/motion3d/burger-reveal.js +7 -7
  1241. package/dist/templates/motion3d/coverflow.js +7 -7
  1242. package/dist/templates/motion3d/exploded-ui.js +7 -7
  1243. package/dist/templates/motion3d/feature-flip.js +7 -7
  1244. package/dist/templates/motion3d/kinetic-reveal.js +7 -7
  1245. package/dist/templates/motion3d/laptop-reveal.js +7 -7
  1246. package/dist/templates/motion3d/logo-extrude.js +7 -7
  1247. package/dist/templates/motion3d/parallax-cascade.js +7 -7
  1248. package/dist/templates/motion3d/phone-orbit.js +7 -7
  1249. package/dist/templates/motion3d/pricing-fan.js +7 -7
  1250. package/dist/templates/motion3d/product-turntable.js +7 -7
  1251. package/dist/templates/motion3d/saas-film-cinematic-trailer.js +8 -8
  1252. package/dist/templates/motion3d/screen-wall.js +7 -7
  1253. package/dist/templates/motion3d/stage.js +4 -4
  1254. package/dist/templates/motion3d/vertical-promo.js +7 -7
  1255. package/dist/templates/music/edm-drop.js +7 -7
  1256. package/dist/templates/music/festival-lineup.js +7 -7
  1257. package/dist/templates/music/hiphop-lyrics.js +7 -7
  1258. package/dist/templates/music/indie-poster.js +7 -7
  1259. package/dist/templates/music/lofi-loop.js +7 -7
  1260. package/dist/templates/music/podcast-audiogram.js +7 -7
  1261. package/dist/templates/music/shared.js +4 -4
  1262. package/dist/templates/music/synthwave-tunnel.js +7 -7
  1263. package/dist/templates/print/comic-hero-cascade.js +6 -6
  1264. package/dist/templates/print/comic-hero-chase.js +6 -6
  1265. package/dist/templates/print/comic-hero-cover-modern.js +6 -6
  1266. package/dist/templates/print/comic-hero-grid-break.js +6 -6
  1267. package/dist/templates/print/comic-hero-interrogation.js +6 -6
  1268. package/dist/templates/print/comic-hero-issue.js +17 -17
  1269. package/dist/templates/print/comic-hero-manga-action.js +6 -6
  1270. package/dist/templates/print/comic-hero-nested.js +6 -6
  1271. package/dist/templates/print/comic-hero-overlap.js +6 -6
  1272. package/dist/templates/print/comic-hero-parallel.js +6 -6
  1273. package/dist/templates/print/comic-hero-pinup.js +6 -6
  1274. package/dist/templates/print/comic-hero-widescreen.js +6 -6
  1275. package/dist/templates/print/comic-modern-action-slant.js +6 -6
  1276. package/dist/templates/print/comic-modern-cover-pulp.js +6 -6
  1277. package/dist/templates/print/comic-modern-flashback.js +6 -6
  1278. package/dist/templates/print/comic-modern-issue.js +15 -15
  1279. package/dist/templates/print/comic-modern-nine-grid.js +6 -6
  1280. package/dist/templates/print/comic-modern-page-classic.js +6 -6
  1281. package/dist/templates/print/comic-modern-polyptych.js +6 -6
  1282. package/dist/templates/print/comic-modern-radial.js +6 -6
  1283. package/dist/templates/print/comic-modern-splash.js +6 -6
  1284. package/dist/templates/print/comic-modern-spread.js +6 -6
  1285. package/dist/templates/print/everyday-save-the-date.js +6 -6
  1286. package/dist/templates/print/everyday-specials-board.js +6 -6
  1287. package/dist/templates/print/holidays-christmas-church-newsletter.js +6 -6
  1288. package/dist/templates/print/holidays-christmas-eve-invitation.js +6 -6
  1289. package/dist/templates/print/holidays-christmas-gift-tags.js +6 -6
  1290. package/dist/templates/print/holidays-diwali-party-invitation.js +6 -6
  1291. package/dist/templates/print/holidays-easter-activity-sheet.js +6 -6
  1292. package/dist/templates/print/holidays-easter-egg-hunt-flyer.js +6 -6
  1293. package/dist/templates/print/holidays-eid-dinner-invitation.js +6 -6
  1294. package/dist/templates/print/holidays-eid-gift-tags.js +6 -6
  1295. package/dist/templates/print/holidays-halloween-party-invitation.js +6 -6
  1296. package/dist/templates/print/holidays-halloween-treat-labels.js +6 -6
  1297. package/dist/templates/print/holidays-halloween-trunk-or-treat-poster.js +6 -6
  1298. package/dist/templates/print/holidays-hanukkah-activity-sheet.js +6 -6
  1299. package/dist/templates/print/holidays-hanukkah-party-invitation.js +6 -6
  1300. package/dist/templates/print/holidays-lunar-new-year-banquet-menu.js +6 -6
  1301. package/dist/templates/print/holidays-new-years-eve-poster.js +6 -6
  1302. package/dist/templates/print/holidays-thanksgiving-dinner-menu.js +6 -6
  1303. package/dist/templates/print/holidays-thanksgiving-place-cards.js +6 -6
  1304. package/dist/templates/print/holidays-valentines-dinner-menu.js +6 -6
  1305. package/dist/templates/print/knit-christmas-tree-sweater.js +8 -7
  1306. package/dist/templates/print/knit-logo.js +18 -0
  1307. package/dist/templates/print/knit-nordic-snowflake-sweater.js +8 -7
  1308. package/dist/templates/print/knit-shared.js +81 -1
  1309. package/dist/templates/print/knit-snowflake-beanie.js +8 -7
  1310. package/dist/templates/print/printshop-booklet-open-day.js +7 -7
  1311. package/dist/templates/print/printshop-brochure-community.js +7 -7
  1312. package/dist/templates/print/printshop-brochure-dental.js +7 -7
  1313. package/dist/templates/print/printshop-brochure-gym.js +7 -7
  1314. package/dist/templates/print/printshop-brochure-landscaping.js +7 -7
  1315. package/dist/templates/print/printshop-brochure-travel.js +8 -8
  1316. package/dist/templates/print/printshop-card-architect.js +7 -7
  1317. package/dist/templates/print/printshop-card-barber.js +7 -7
  1318. package/dist/templates/print/printshop-card-cafe.js +7 -7
  1319. package/dist/templates/print/printshop-card-developer.js +7 -7
  1320. package/dist/templates/print/printshop-card-florist.js +7 -7
  1321. package/dist/templates/print/printshop-card-lawyer.js +7 -7
  1322. package/dist/templates/print/printshop-card-photographer.js +8 -8
  1323. package/dist/templates/print/printshop-card-plumber.js +7 -7
  1324. package/dist/templates/print/printshop-card-realtor.js +7 -7
  1325. package/dist/templates/print/printshop-card-yoga.js +7 -7
  1326. package/dist/templates/print/printshop-flyer-charity-run.js +7 -7
  1327. package/dist/templates/print/printshop-flyer-farmers-market.js +7 -7
  1328. package/dist/templates/print/printshop-flyer-garage-sale.js +7 -7
  1329. package/dist/templates/print/printshop-flyer-grand-opening.js +7 -7
  1330. package/dist/templates/print/printshop-flyer-lost-pet.js +7 -7
  1331. package/dist/templates/print/printshop-flyer-tutoring.js +7 -7
  1332. package/dist/templates/print/printshop-flyer-yard-work.js +7 -7
  1333. package/dist/templates/print/printshop-poster-live-music.js +7 -7
  1334. package/dist/templates/print/studio-class-timetable-poster.js +6 -6
  1335. package/dist/templates/print/studio-portfolio-booklet.js +7 -7
  1336. package/dist/templates/saas/email-decks-shared.js +7 -7
  1337. package/dist/templates/saas/email-decks.js +19 -19
  1338. package/dist/templates/saas/index.js +193 -193
  1339. package/dist/templates/saas/launch-kit.js +15 -15
  1340. package/dist/templates/saas/launch-video.js +14 -14
  1341. package/dist/templates/saas/lottie-shared.js +7 -7
  1342. package/dist/templates/saas/stores-shared.js +4 -4
  1343. package/dist/templates/saas/stores.js +17 -17
  1344. package/dist/templates/saas/style-bento.js +16 -16
  1345. package/dist/templates/saas/style-brutalist.js +16 -16
  1346. package/dist/templates/saas/style-dark.js +16 -16
  1347. package/dist/templates/saas/style-data.js +16 -16
  1348. package/dist/templates/saas/style-editorial.js +16 -16
  1349. package/dist/templates/saas/style-glass.js +16 -16
  1350. package/dist/templates/saas/style-gradient.js +16 -16
  1351. package/dist/templates/saas/style-maximal.js +17 -17
  1352. package/dist/templates/saas/style-pastel.js +16 -16
  1353. package/dist/templates/saas/style-sketch.js +16 -16
  1354. package/dist/templates/saas/style-swiss.js +16 -16
  1355. package/dist/templates/saas/style-terminal.js +16 -16
  1356. package/dist/templates/saas/video.js +14 -14
  1357. package/dist/templates/saas/web.js +18 -18
  1358. package/dist/templates/scenes/before-after.js +6 -6
  1359. package/dist/templates/scenes/carousel-video.js +7 -7
  1360. package/dist/templates/scenes/saas-film-app-preview.js +7 -7
  1361. package/dist/templates/scenes/saas-film-bright-trailer.js +7 -7
  1362. package/dist/templates/scenes/saas-film-product-hunt-launch.js +7 -7
  1363. package/dist/templates/scenes/saas-film-youtube-demo-kit.js +7 -7
  1364. package/dist/templates/scenes/shared.js +4 -4
  1365. package/dist/templates/scenes/story-ad.js +7 -7
  1366. package/dist/templates/scenes/story-bakery.js +7 -7
  1367. package/dist/templates/scenes/story-fitness.js +7 -7
  1368. package/dist/templates/scenes/story-hotel.js +7 -7
  1369. package/dist/templates/scenes/transitions-pack.js +7 -7
  1370. package/dist/templates/scenes/web-scroll.js +7 -7
  1371. package/dist/templates/slides/agenda.js +7 -7
  1372. package/dist/templates/slides/deck.js +6 -6
  1373. package/dist/templates/slides/education.js +7 -7
  1374. package/dist/templates/slides/launch.js +7 -7
  1375. package/dist/templates/slides/layouts.js +7 -7
  1376. package/dist/templates/slides/pitch.js +7 -7
  1377. package/dist/templates/slides/report.js +7 -7
  1378. package/dist/templates/slides/saas-mail-investor-update.js +8 -8
  1379. package/dist/templates/slides/saas-mail-seed-pitch.js +8 -8
  1380. package/dist/templates/slides/sales.js +7 -7
  1381. package/dist/templates/slides/section-divider.js +7 -7
  1382. package/dist/templates/slides/title-card.js +7 -7
  1383. package/dist/templates/slides/training.js +7 -7
  1384. package/dist/templates/slides/webinar.js +7 -7
  1385. package/dist/templates/slideshow/adoption.js +8 -8
  1386. package/dist/templates/slideshow/baby.js +8 -8
  1387. package/dist/templates/slideshow/birthday.js +8 -8
  1388. package/dist/templates/slideshow/graduation.js +8 -8
  1389. package/dist/templates/slideshow/holiday.js +8 -8
  1390. package/dist/templates/slideshow/home.js +8 -8
  1391. package/dist/templates/slideshow/index.js +15 -15
  1392. package/dist/templates/slideshow/lease.js +8 -8
  1393. package/dist/templates/slideshow/memorial.js +8 -8
  1394. package/dist/templates/slideshow/portfolio.js +8 -8
  1395. package/dist/templates/slideshow/product.js +8 -8
  1396. package/dist/templates/slideshow/recipe.js +8 -8
  1397. package/dist/templates/slideshow/shared.js +7 -7
  1398. package/dist/templates/slideshow/team.js +8 -8
  1399. package/dist/templates/slideshow/travel.js +8 -8
  1400. package/dist/templates/slideshow/wedding.js +8 -8
  1401. package/dist/templates/slideshow/year.js +8 -8
  1402. package/dist/templates/social/april-fools-link-preview.js +8 -8
  1403. package/dist/templates/social/april-fools-price-slash-post.js +8 -8
  1404. package/dist/templates/social/arcade-boss-fight.js +6 -6
  1405. package/dist/templates/social/arcade-level-up.js +6 -6
  1406. package/dist/templates/social/art-deco-link-preview.js +6 -6
  1407. package/dist/templates/social/art-deco-premiere-post.js +6 -6
  1408. package/dist/templates/social/autumn-harvest-link-preview.js +6 -6
  1409. package/dist/templates/social/autumn-harvest-thanks-post.js +6 -6
  1410. package/dist/templates/social/back-to-school-link-preview.js +6 -6
  1411. package/dist/templates/social/back-to-school-report-card-post.js +6 -6
  1412. package/dist/templates/social/bauhaus-drift-post.js +6 -6
  1413. package/dist/templates/social/bauhaus-link-preview.js +6 -6
  1414. package/dist/templates/social/bauhaus-pricing-post.js +6 -6
  1415. package/dist/templates/social/black-friday-ads.js +6 -6
  1416. package/dist/templates/social/black-friday-countdown.js +6 -6
  1417. package/dist/templates/social/black-friday-coupons-ads.js +6 -6
  1418. package/dist/templates/social/black-friday-coupons-countdown.js +6 -6
  1419. package/dist/templates/social/black-friday-neon-ads.js +6 -6
  1420. package/dist/templates/social/black-friday-neon-countdown.js +6 -6
  1421. package/dist/templates/social/black-friday-scratch-ads.js +6 -6
  1422. package/dist/templates/social/black-friday-ticker-ads.js +6 -6
  1423. package/dist/templates/social/black-friday-ticker-countdown.js +6 -6
  1424. package/dist/templates/social/blueprint-dimension-post.js +6 -6
  1425. package/dist/templates/social/blueprint-link-preview.js +6 -6
  1426. package/dist/templates/social/blueprint-parts-list-post.js +6 -6
  1427. package/dist/templates/social/broadsheet-hiring-classifieds.js +6 -6
  1428. package/dist/templates/social/broadsheet-link-preview.js +6 -6
  1429. package/dist/templates/social/claymation-link-preview.js +6 -6
  1430. package/dist/templates/social/claymation-streak-post.js +6 -6
  1431. package/dist/templates/social/comic-book-cover-preview.js +6 -6
  1432. package/dist/templates/social/comic-book-strip-post.js +6 -6
  1433. package/dist/templates/social/cyberpunk-implant-post.js +6 -6
  1434. package/dist/templates/social/cyberpunk-link-preview.js +6 -6
  1435. package/dist/templates/social/departure-board-pass-ad.js +6 -6
  1436. package/dist/templates/social/departure-board-store-set.js +6 -6
  1437. package/dist/templates/social/departure-board-thanks-post.js +6 -6
  1438. package/dist/templates/social/diwali-link-preview.js +6 -6
  1439. package/dist/templates/social/diwali-thanks-post.js +6 -6
  1440. package/dist/templates/social/earth-day-link-preview.js +6 -6
  1441. package/dist/templates/social/everyday-save-the-date-post.js +6 -6
  1442. package/dist/templates/social/festival-presale-electronic-ads.js +9 -9
  1443. package/dist/templates/social/festival-presale-family-ads.js +9 -9
  1444. package/dist/templates/social/festival-presale-folk-ads.js +9 -9
  1445. package/dist/templates/social/festival-presale-food-ads.js +9 -9
  1446. package/dist/templates/social/festival-presale-jazz-ads.js +9 -9
  1447. package/dist/templates/social/festival-presale-street-ads.js +9 -9
  1448. package/dist/templates/social/gothic-feature-post.js +6 -6
  1449. package/dist/templates/social/gothic-link-preview.js +6 -6
  1450. package/dist/templates/social/halloween-link-preview.js +6 -6
  1451. package/dist/templates/social/halloween-offer-post.js +6 -6
  1452. package/dist/templates/social/holidays-diwali-sweet-shop-post.js +6 -6
  1453. package/dist/templates/social/holidays-lunar-new-year-bakery-post.js +6 -6
  1454. package/dist/templates/social/holidays-new-years-eve-shop-hours.js +6 -6
  1455. package/dist/templates/social/holidays-thanksgiving-pie-orders-post.js +6 -6
  1456. package/dist/templates/social/holidays-valentines-florist-post.js +6 -6
  1457. package/dist/templates/social/lunar-new-year-greeting-post.js +6 -6
  1458. package/dist/templates/social/lunar-new-year-link-preview.js +6 -6
  1459. package/dist/templates/social/machined-link-preview.js +8 -8
  1460. package/dist/templates/social/machined-plate-post.js +8 -8
  1461. package/dist/templates/social/manuscript-chapter-post.js +6 -6
  1462. package/dist/templates/social/manuscript-link-preview.js +6 -6
  1463. package/dist/templates/social/new-year-link-preview.js +6 -6
  1464. package/dist/templates/social/new-year-resolutions-post.js +6 -6
  1465. package/dist/templates/social/noir-case-file.js +6 -6
  1466. package/dist/templates/social/noir-feature-post.js +6 -6
  1467. package/dist/templates/social/post-announcement.js +6 -6
  1468. package/dist/templates/social/post-event.js +6 -6
  1469. package/dist/templates/social/post-podcast.js +6 -6
  1470. package/dist/templates/social/post-quote.js +6 -6
  1471. package/dist/templates/social/post-sale.js +6 -6
  1472. package/dist/templates/social/post-stat.js +6 -6
  1473. package/dist/templates/social/post-testimonial.js +6 -6
  1474. package/dist/templates/social/promo-announcement.js +6 -6
  1475. package/dist/templates/social/promo-beat-drop.js +6 -6
  1476. package/dist/templates/social/promo-event.js +6 -6
  1477. package/dist/templates/social/promo-new-product.js +6 -6
  1478. package/dist/templates/social/promo-quote-reveal.js +6 -6
  1479. package/dist/templates/social/promo-sale-drop.js +6 -6
  1480. package/dist/templates/social/promo-tip-list.js +6 -6
  1481. package/dist/templates/social/psychedelic-lineup-post.js +6 -6
  1482. package/dist/templates/social/psychedelic-link-preview.js +6 -6
  1483. package/dist/templates/social/riso-zine-link-preview.js +6 -6
  1484. package/dist/templates/social/riso-zine-mrr-poster.js +6 -6
  1485. package/dist/templates/social/saas-kit-carousel.js +6 -6
  1486. package/dist/templates/social/saas-kit-countdown-post.js +6 -6
  1487. package/dist/templates/social/saas-kit-feature-drop.js +6 -6
  1488. package/dist/templates/social/saas-kit-link-preview.js +6 -6
  1489. package/dist/templates/social/saas-kit-live-post.js +6 -6
  1490. package/dist/templates/social/saas-kit-mrr-card.js +6 -6
  1491. package/dist/templates/social/saas-kit-ph-gallery.js +6 -6
  1492. package/dist/templates/social/saas-kit-ph-thumb.js +6 -6
  1493. package/dist/templates/social/saas-kit-youtube-thumbs.js +6 -6
  1494. package/dist/templates/social/saas-store-b2b-ads.js +7 -7
  1495. package/dist/templates/social/saas-store-caption-set.js +7 -7
  1496. package/dist/templates/social/saas-store-chrome-kit.js +7 -7
  1497. package/dist/templates/social/saas-store-ipad-set.js +7 -7
  1498. package/dist/templates/social/saas-store-panorama.js +8 -8
  1499. package/dist/templates/social/saas-store-play-kit.js +6 -6
  1500. package/dist/templates/social/saas-store-story.js +7 -7
  1501. package/dist/templates/social/singles-day-link-preview.js +6 -6
  1502. package/dist/templates/social/solarpunk-impact-post.js +6 -6
  1503. package/dist/templates/social/solarpunk-link-preview.js +6 -6
  1504. package/dist/templates/social/space-opera-link-preview.js +6 -6
  1505. package/dist/templates/social/space-opera-mission-patch-post.js +6 -6
  1506. package/dist/templates/social/spring-bloom-link-preview.js +6 -6
  1507. package/dist/templates/social/studio-class-timetable.js +6 -6
  1508. package/dist/templates/social/studio-podcast-cover.js +6 -6
  1509. package/dist/templates/social/style-bento-announcement.js +6 -6
  1510. package/dist/templates/social/style-bento-link-preview.js +6 -6
  1511. package/dist/templates/social/style-bento-milestone.js +6 -6
  1512. package/dist/templates/social/style-bento-testimonial.js +6 -6
  1513. package/dist/templates/social/style-brutalist-announcement.js +6 -6
  1514. package/dist/templates/social/style-brutalist-link-preview.js +6 -6
  1515. package/dist/templates/social/style-brutalist-milestone.js +6 -6
  1516. package/dist/templates/social/style-brutalist-testimonial.js +6 -6
  1517. package/dist/templates/social/style-dark-announcement.js +6 -6
  1518. package/dist/templates/social/style-dark-link-preview.js +6 -6
  1519. package/dist/templates/social/style-dark-milestone.js +6 -6
  1520. package/dist/templates/social/style-dark-testimonial.js +6 -6
  1521. package/dist/templates/social/style-data-announcement.js +6 -6
  1522. package/dist/templates/social/style-data-link-preview.js +6 -6
  1523. package/dist/templates/social/style-data-milestone.js +6 -6
  1524. package/dist/templates/social/style-data-testimonial.js +6 -6
  1525. package/dist/templates/social/style-editorial-announcement.js +6 -6
  1526. package/dist/templates/social/style-editorial-link-preview.js +6 -6
  1527. package/dist/templates/social/style-editorial-milestone.js +6 -6
  1528. package/dist/templates/social/style-editorial-testimonial.js +6 -6
  1529. package/dist/templates/social/style-glass-announcement.js +6 -6
  1530. package/dist/templates/social/style-glass-link-preview.js +6 -6
  1531. package/dist/templates/social/style-glass-milestone.js +6 -6
  1532. package/dist/templates/social/style-glass-testimonial.js +6 -6
  1533. package/dist/templates/social/style-gradient-announcement.js +6 -6
  1534. package/dist/templates/social/style-gradient-link-preview.js +6 -6
  1535. package/dist/templates/social/style-gradient-milestone.js +6 -6
  1536. package/dist/templates/social/style-gradient-testimonial.js +6 -6
  1537. package/dist/templates/social/style-maximal-announcement.js +6 -6
  1538. package/dist/templates/social/style-maximal-link-preview.js +6 -6
  1539. package/dist/templates/social/style-maximal-milestone.js +6 -6
  1540. package/dist/templates/social/style-maximal-testimonial.js +6 -6
  1541. package/dist/templates/social/style-pastel-announcement.js +6 -6
  1542. package/dist/templates/social/style-pastel-link-preview.js +6 -6
  1543. package/dist/templates/social/style-pastel-milestone.js +6 -6
  1544. package/dist/templates/social/style-pastel-testimonial.js +6 -6
  1545. package/dist/templates/social/style-sketch-announcement.js +6 -6
  1546. package/dist/templates/social/style-sketch-link-preview.js +6 -6
  1547. package/dist/templates/social/style-sketch-milestone.js +6 -6
  1548. package/dist/templates/social/style-sketch-testimonial.js +6 -6
  1549. package/dist/templates/social/style-swiss-announcement.js +6 -6
  1550. package/dist/templates/social/style-swiss-link-preview.js +6 -6
  1551. package/dist/templates/social/style-swiss-milestone.js +6 -6
  1552. package/dist/templates/social/style-swiss-testimonial.js +6 -6
  1553. package/dist/templates/social/style-terminal-announcement.js +6 -6
  1554. package/dist/templates/social/style-terminal-link-preview.js +6 -6
  1555. package/dist/templates/social/style-terminal-milestone.js +6 -6
  1556. package/dist/templates/social/style-terminal-testimonial.js +6 -6
  1557. package/dist/templates/social/summer-heatwave-link-preview.js +6 -6
  1558. package/dist/templates/social/summer-heatwave-lolly-post.js +6 -6
  1559. package/dist/templates/social/tour-tickets-june-ads.js +6 -6
  1560. package/dist/templates/social/tour-tickets-tide-ads.js +6 -6
  1561. package/dist/templates/social/tour-tickets-wreck-ads.js +6 -6
  1562. package/dist/templates/social/transit-map-link-preview.js +6 -6
  1563. package/dist/templates/social/ukiyo-e-link-preview.js +6 -6
  1564. package/dist/templates/social/ukiyo-e-spike-post.js +6 -6
  1565. package/dist/templates/social/valentines-link-preview.js +6 -6
  1566. package/dist/templates/social/valentines-poem-post.js +6 -6
  1567. package/dist/templates/social/vaporwave-feature-drop.js +6 -6
  1568. package/dist/templates/social/vaporwave-link-preview.js +6 -6
  1569. package/dist/templates/social/winter-cosy-link-preview.js +6 -6
  1570. package/dist/templates/social/winter-holidays-link-preview.js +6 -6
  1571. package/dist/templates/social/winter-holidays-thanks-post.js +6 -6
  1572. package/dist/templates/stings/line-reveal.js +6 -6
  1573. package/dist/templates/stings/sting-blur.js +6 -6
  1574. package/dist/templates/stings/sting-pop.js +6 -6
  1575. package/dist/templates/stings/sting-rise.js +6 -6
  1576. package/dist/templates/stings/sting-shimmer.js +6 -6
  1577. package/dist/templates/stings/word-swap.js +6 -6
  1578. package/dist/templates/text/stat-counter.js +6 -6
  1579. package/dist/templates/text/word-quote.js +6 -6
  1580. package/dist/templates/themes/april-fools-shared.js +5 -5
  1581. package/dist/templates/themes/april-fools.js +13 -13
  1582. package/dist/templates/themes/arcade.js +10 -10
  1583. package/dist/templates/themes/art-deco.js +12 -12
  1584. package/dist/templates/themes/autumn-harvest.js +12 -12
  1585. package/dist/templates/themes/back-to-school.js +12 -12
  1586. package/dist/templates/themes/bauhaus.js +11 -11
  1587. package/dist/templates/themes/black-friday-coupons.js +13 -13
  1588. package/dist/templates/themes/black-friday-neon.js +13 -13
  1589. package/dist/templates/themes/black-friday-scratch.js +13 -13
  1590. package/dist/templates/themes/black-friday-ticker.js +13 -13
  1591. package/dist/templates/themes/black-friday.js +12 -12
  1592. package/dist/templates/themes/blueprint.js +11 -11
  1593. package/dist/templates/themes/broadsheet.js +13 -13
  1594. package/dist/templates/themes/claymation.js +12 -12
  1595. package/dist/templates/themes/comic-book.js +20 -20
  1596. package/dist/templates/themes/comic-hero.js +18 -18
  1597. package/dist/templates/themes/comic-indie.js +6 -6
  1598. package/dist/templates/themes/cyberpunk.js +12 -12
  1599. package/dist/templates/themes/departure-board.js +11 -11
  1600. package/dist/templates/themes/diwali.js +12 -12
  1601. package/dist/templates/themes/earth-day.js +12 -12
  1602. package/dist/templates/themes/everyday.js +13 -13
  1603. package/dist/templates/themes/festival-presale-electronic-kit.js +8 -8
  1604. package/dist/templates/themes/festival-presale-family-a-shared.js +7 -7
  1605. package/dist/templates/themes/festival-presale-family-a.js +32 -32
  1606. package/dist/templates/themes/festival-presale-family-b-shared.js +7 -7
  1607. package/dist/templates/themes/festival-presale-family-b.js +32 -32
  1608. package/dist/templates/themes/festival-presale-family-kit.js +8 -8
  1609. package/dist/templates/themes/festival-presale-folk-kit.js +8 -8
  1610. package/dist/templates/themes/festival-presale-food-kit.js +8 -8
  1611. package/dist/templates/themes/festival-presale-jazz-kit.js +8 -8
  1612. package/dist/templates/themes/festival-presale-street-kit.js +8 -8
  1613. package/dist/templates/themes/festival-presale.js +12 -12
  1614. package/dist/templates/themes/gothic.js +12 -12
  1615. package/dist/templates/themes/halloween.js +12 -12
  1616. package/dist/templates/themes/holidays.js +34 -33
  1617. package/dist/templates/themes/index.js +435 -434
  1618. package/dist/templates/themes/lunar-new-year.js +12 -12
  1619. package/dist/templates/themes/machined-shared.js +5 -5
  1620. package/dist/templates/themes/machined.js +12 -12
  1621. package/dist/templates/themes/manuscript.js +12 -12
  1622. package/dist/templates/themes/memories.js +16 -16
  1623. package/dist/templates/themes/new-year.js +12 -12
  1624. package/dist/templates/themes/noir.js +12 -12
  1625. package/dist/templates/themes/printshop-shared.js +4 -4
  1626. package/dist/templates/themes/printshop.js +32 -32
  1627. package/dist/templates/themes/psychedelic.js +12 -12
  1628. package/dist/templates/themes/riso-zine.js +12 -12
  1629. package/dist/templates/themes/singles-day.js +12 -12
  1630. package/dist/templates/themes/solarpunk.js +12 -12
  1631. package/dist/templates/themes/space-opera.js +12 -12
  1632. package/dist/templates/themes/spring-bloom.js +12 -12
  1633. package/dist/templates/themes/studio.js +12 -12
  1634. package/dist/templates/themes/summer-heatwave.js +12 -12
  1635. package/dist/templates/themes/tour-tickets.js +31 -31
  1636. package/dist/templates/themes/transit-map.js +12 -12
  1637. package/dist/templates/themes/ukiyo-e.js +12 -12
  1638. package/dist/templates/themes/valentines.js +12 -12
  1639. package/dist/templates/themes/vaporwave.js +11 -11
  1640. package/dist/templates/themes/winter-cosy.js +12 -12
  1641. package/dist/templates/themes/winter-holidays.js +12 -12
  1642. package/dist/templates/video/youtube-chapter.js +6 -6
  1643. package/dist/templates/video/youtube-end-screen.js +6 -6
  1644. package/dist/templates/video/youtube-intro.js +6 -6
  1645. package/dist/templates/video/youtube-subscribe.js +6 -6
  1646. package/dist/templates/web/app-ui.js +5 -5
  1647. package/dist/templates/web/april-fools-landing.js +8 -8
  1648. package/dist/templates/web/arcade-landing.js +6 -6
  1649. package/dist/templates/web/art-deco-landing.js +6 -6
  1650. package/dist/templates/web/autumn-harvest-landing.js +6 -6
  1651. package/dist/templates/web/back-to-school-landing.js +6 -6
  1652. package/dist/templates/web/bauhaus-landing.js +6 -6
  1653. package/dist/templates/web/black-friday-coupons-landing.js +6 -6
  1654. package/dist/templates/web/black-friday-landing.js +6 -6
  1655. package/dist/templates/web/black-friday-neon-landing.js +6 -6
  1656. package/dist/templates/web/black-friday-scratch-landing.js +6 -6
  1657. package/dist/templates/web/black-friday-ticker-landing.js +6 -6
  1658. package/dist/templates/web/blog-post.js +6 -6
  1659. package/dist/templates/web/blueprint-landing.js +6 -6
  1660. package/dist/templates/web/broadsheet-landing.js +6 -6
  1661. package/dist/templates/web/claymation-landing.js +6 -6
  1662. package/dist/templates/web/comic-book-landing.js +6 -6
  1663. package/dist/templates/web/coming-soon-page.js +7 -7
  1664. package/dist/templates/web/coming-soon.js +6 -6
  1665. package/dist/templates/web/contact.js +7 -7
  1666. package/dist/templates/web/cyberpunk-landing.js +6 -6
  1667. package/dist/templates/web/daybreak-app.js +8 -8
  1668. package/dist/templates/web/departure-board-download.js +6 -6
  1669. package/dist/templates/web/diwali-landing.js +6 -6
  1670. package/dist/templates/web/earth-day-landing.js +6 -6
  1671. package/dist/templates/web/everyday-cafe.js +6 -6
  1672. package/dist/templates/web/everyday-hotel.js +6 -6
  1673. package/dist/templates/web/everyday-wedding.js +7 -7
  1674. package/dist/templates/web/festival-presale-electronic.js +6 -6
  1675. package/dist/templates/web/festival-presale-family.js +6 -6
  1676. package/dist/templates/web/festival-presale-folk.js +6 -6
  1677. package/dist/templates/web/festival-presale-food.js +6 -6
  1678. package/dist/templates/web/festival-presale-jazz.js +6 -6
  1679. package/dist/templates/web/festival-presale-street.js +6 -6
  1680. package/dist/templates/web/forms.js +4 -4
  1681. package/dist/templates/web/gothic-landing.js +6 -6
  1682. package/dist/templates/web/halloween-landing.js +6 -6
  1683. package/dist/templates/web/hero-animated.js +6 -6
  1684. package/dist/templates/web/kindling-app.js +8 -8
  1685. package/dist/templates/web/launch-waitlist.js +7 -7
  1686. package/dist/templates/web/lunar-new-year-landing.js +6 -6
  1687. package/dist/templates/web/machined-hero.js +8 -8
  1688. package/dist/templates/web/manuscript-landing.js +6 -6
  1689. package/dist/templates/web/marginalia-app.js +8 -8
  1690. package/dist/templates/web/new-year-landing.js +6 -6
  1691. package/dist/templates/web/noir-landing.js +6 -6
  1692. package/dist/templates/web/page-404.js +6 -6
  1693. package/dist/templates/web/portfolio-architect.js +8 -8
  1694. package/dist/templates/web/portfolio-art.js +4 -4
  1695. package/dist/templates/web/portfolio-card-deck.js +8 -8
  1696. package/dist/templates/web/portfolio-case-folio.js +8 -8
  1697. package/dist/templates/web/portfolio-cube-gallery.js +8 -8
  1698. package/dist/templates/web/portfolio-depth-tunnel.js +8 -8
  1699. package/dist/templates/web/portfolio-editorial.js +8 -8
  1700. package/dist/templates/web/portfolio-flip-wall.js +8 -8
  1701. package/dist/templates/web/portfolio-index-list.js +8 -8
  1702. package/dist/templates/web/portfolio-photographer.js +8 -8
  1703. package/dist/templates/web/portfolio-reel-carousel.js +8 -8
  1704. package/dist/templates/web/portfolio-shared.js +5 -5
  1705. package/dist/templates/web/portfolio-sketchbook.js +8 -8
  1706. package/dist/templates/web/portfolio-studio-grid.js +8 -8
  1707. package/dist/templates/web/portfolio.js +6 -6
  1708. package/dist/templates/web/portfolios.js +20 -20
  1709. package/dist/templates/web/potluck-app.js +8 -8
  1710. package/dist/templates/web/pricing-toggle.js +6 -6
  1711. package/dist/templates/web/product-page.js +6 -6
  1712. package/dist/templates/web/psychedelic-landing.js +6 -6
  1713. package/dist/templates/web/riso-zine-landing.js +6 -6
  1714. package/dist/templates/web/rsvp-invite.js +7 -7
  1715. package/dist/templates/web/saas-ai-landing.js +6 -6
  1716. package/dist/templates/web/saas-app-download.js +6 -6
  1717. package/dist/templates/web/saas-case-study.js +6 -6
  1718. package/dist/templates/web/saas-changelog.js +6 -6
  1719. package/dist/templates/web/saas-comparison.js +6 -6
  1720. package/dist/templates/web/saas-data-landing.js +6 -6
  1721. package/dist/templates/web/saas-dev-landing.js +6 -6
  1722. package/dist/templates/web/saas-indie-landing.js +6 -6
  1723. package/dist/templates/web/saas-integrations.js +6 -6
  1724. package/dist/templates/web/saas-security.js +6 -6
  1725. package/dist/templates/web/saas-signup.js +6 -6
  1726. package/dist/templates/web/saas-waitlist.js +6 -6
  1727. package/dist/templates/web/saffron-app.js +8 -8
  1728. package/dist/templates/web/shop-art.js +4 -4
  1729. package/dist/templates/web/shop-bloom.js +10 -10
  1730. package/dist/templates/web/shop-circuit.js +10 -10
  1731. package/dist/templates/web/shop-fieldwork.js +10 -10
  1732. package/dist/templates/web/shop-greenhouse.js +10 -10
  1733. package/dist/templates/web/shop-kiln.js +10 -10
  1734. package/dist/templates/web/shop-marginalia.js +10 -10
  1735. package/dist/templates/web/shop-ode.js +10 -10
  1736. package/dist/templates/web/shop-shared.js +7 -7
  1737. package/dist/templates/web/shop-static.js +10 -10
  1738. package/dist/templates/web/shop-summit.js +10 -10
  1739. package/dist/templates/web/shops.js +19 -19
  1740. package/dist/templates/web/singles-day-landing.js +6 -6
  1741. package/dist/templates/web/solarpunk-landing.js +6 -6
  1742. package/dist/templates/web/space-opera-landing.js +6 -6
  1743. package/dist/templates/web/spring-bloom-landing.js +6 -6
  1744. package/dist/templates/web/studio-careers.js +6 -6
  1745. package/dist/templates/web/style-bento-landing.js +6 -6
  1746. package/dist/templates/web/style-bento-pricing.js +6 -6
  1747. package/dist/templates/web/style-brutalist-landing.js +6 -6
  1748. package/dist/templates/web/style-brutalist-pricing.js +6 -6
  1749. package/dist/templates/web/style-dark-landing.js +6 -6
  1750. package/dist/templates/web/style-dark-pricing.js +6 -6
  1751. package/dist/templates/web/style-data-landing.js +6 -6
  1752. package/dist/templates/web/style-data-pricing.js +6 -6
  1753. package/dist/templates/web/style-editorial-landing.js +6 -6
  1754. package/dist/templates/web/style-editorial-pricing.js +6 -6
  1755. package/dist/templates/web/style-glass-landing.js +6 -6
  1756. package/dist/templates/web/style-glass-pricing.js +6 -6
  1757. package/dist/templates/web/style-gradient-landing.js +6 -6
  1758. package/dist/templates/web/style-gradient-pricing.js +6 -6
  1759. package/dist/templates/web/style-maximal-landing.js +6 -6
  1760. package/dist/templates/web/style-maximal-pricing.js +6 -6
  1761. package/dist/templates/web/style-pastel-landing.js +6 -6
  1762. package/dist/templates/web/style-pastel-pricing.js +6 -6
  1763. package/dist/templates/web/style-sketch-landing.js +6 -6
  1764. package/dist/templates/web/style-sketch-pricing.js +6 -6
  1765. package/dist/templates/web/style-swiss-landing.js +6 -6
  1766. package/dist/templates/web/style-swiss-pricing.js +6 -6
  1767. package/dist/templates/web/style-terminal-landing.js +6 -6
  1768. package/dist/templates/web/style-terminal-pricing.js +6 -6
  1769. package/dist/templates/web/summer-heatwave-landing.js +6 -6
  1770. package/dist/templates/web/tempo-app.js +8 -8
  1771. package/dist/templates/web/tour-tickets-june-landing.js +6 -6
  1772. package/dist/templates/web/tour-tickets-tide-landing.js +6 -6
  1773. package/dist/templates/web/tour-tickets-wreck-landing.js +6 -6
  1774. package/dist/templates/web/transit-map-landing.js +6 -6
  1775. package/dist/templates/web/ukiyo-e-landing.js +6 -6
  1776. package/dist/templates/web/valentines-landing.js +6 -6
  1777. package/dist/templates/web/vaporwave-landing.js +6 -6
  1778. package/dist/templates/web/wayfarer-app.js +8 -8
  1779. package/dist/templates/web/winter-cosy-landing.js +6 -6
  1780. package/dist/templates/web/winter-holidays-landing.js +6 -6
  1781. package/package.json +1 -1
  1782. package/src/templates/print/knit-christmas-tree-sweater.ts +63 -19
  1783. package/src/templates/print/knit-logo.ts +5 -0
  1784. package/src/templates/print/knit-nordic-snowflake-sweater.ts +29 -11
  1785. package/src/templates/print/knit-shared.ts +145 -3
  1786. package/src/templates/print/knit-snowflake-beanie.ts +16 -6
  1787. package/types/templates/src/print/knit-logo.d.ts +3 -0
  1788. package/types/templates/src/print/knit-shared.d.ts +67 -1
  1789. package/dist/chunks/agent-N2JH66QQ.js +0 -44
  1790. package/dist/chunks/api-EZTGE3X7.js +0 -30
  1791. package/dist/chunks/build-7B2XY7DD.js +0 -59
  1792. package/dist/chunks/builtin-DC3KTHW2.js +0 -120
  1793. package/dist/chunks/buy-credits-X6ZICNNW.js +0 -80
  1794. package/dist/chunks/check-template-TBXYG4IC.js +0 -2463
  1795. package/dist/chunks/chunk-24PT7TYO.js +0 -23
  1796. package/dist/chunks/chunk-25MR45WC.js +0 -103
  1797. package/dist/chunks/chunk-25U46CJY.js +0 -249
  1798. package/dist/chunks/chunk-26V3NATO.js +0 -239
  1799. package/dist/chunks/chunk-26WOHNX5.js +0 -23
  1800. package/dist/chunks/chunk-26YPC2PE.js +0 -172
  1801. package/dist/chunks/chunk-27YD3RNS.js +0 -171
  1802. package/dist/chunks/chunk-2AMWUNGY.js +0 -123
  1803. package/dist/chunks/chunk-2DF3C5UP.js +0 -104
  1804. package/dist/chunks/chunk-2DKXQGHB.js +0 -189
  1805. package/dist/chunks/chunk-2E4LLSYY.js +0 -81
  1806. package/dist/chunks/chunk-2ELBWV7W.js +0 -304
  1807. package/dist/chunks/chunk-2FTAH4YV.js +0 -100
  1808. package/dist/chunks/chunk-2G4OAMXH.js +0 -303
  1809. package/dist/chunks/chunk-2HP44QAU.js +0 -95
  1810. package/dist/chunks/chunk-2IDQ2IE3.js +0 -30
  1811. package/dist/chunks/chunk-2IT5AIJ3.js +0 -238
  1812. package/dist/chunks/chunk-2J7OIIOV.js +0 -102
  1813. package/dist/chunks/chunk-2JGQ5KJT.js +0 -100
  1814. package/dist/chunks/chunk-2KC5WVV2.js +0 -33
  1815. package/dist/chunks/chunk-2KIGYBGG.js +0 -118
  1816. package/dist/chunks/chunk-2LRVTLKY.js +0 -28
  1817. package/dist/chunks/chunk-2M7KOVWE.js +0 -337
  1818. package/dist/chunks/chunk-2MGKCX5I.js +0 -255
  1819. package/dist/chunks/chunk-2MKGEW7U.js +0 -155
  1820. package/dist/chunks/chunk-2MYN3PJT.js +0 -33
  1821. package/dist/chunks/chunk-2OCXMWKC.js +0 -157
  1822. package/dist/chunks/chunk-2PASHQGS.js +0 -105
  1823. package/dist/chunks/chunk-2PXQ5OYM.js +0 -462
  1824. package/dist/chunks/chunk-2QYA5CPR.js +0 -152
  1825. package/dist/chunks/chunk-2R2WQJWY.js +0 -180
  1826. package/dist/chunks/chunk-2U5CD3VO.js +0 -48
  1827. package/dist/chunks/chunk-2V6HVO3B.js +0 -23
  1828. package/dist/chunks/chunk-2VRCLUJS.js +0 -297
  1829. package/dist/chunks/chunk-2YUTA2E2.js +0 -410
  1830. package/dist/chunks/chunk-33CKZ7SI.js +0 -83
  1831. package/dist/chunks/chunk-33WSNBDS.js +0 -33
  1832. package/dist/chunks/chunk-34FHXNJN.js +0 -173
  1833. package/dist/chunks/chunk-3BE7CKZI.js +0 -112
  1834. package/dist/chunks/chunk-3BK6FZSB.js +0 -209
  1835. package/dist/chunks/chunk-3BPQFTY5.js +0 -193
  1836. package/dist/chunks/chunk-3E3X3FWC.js +0 -126
  1837. package/dist/chunks/chunk-3FSONIHN.js +0 -248
  1838. package/dist/chunks/chunk-3G34W5J5.js +0 -221
  1839. package/dist/chunks/chunk-3GETJLBI.js +0 -78
  1840. package/dist/chunks/chunk-3H6LWM2K.js +0 -84
  1841. package/dist/chunks/chunk-3HG3CTEQ.js +0 -149
  1842. package/dist/chunks/chunk-3I3GZBHP.js +0 -41
  1843. package/dist/chunks/chunk-3IKBZKMY.js +0 -51
  1844. package/dist/chunks/chunk-3IKQO4TG.js +0 -61
  1845. package/dist/chunks/chunk-3IKYX7R2.js +0 -106
  1846. package/dist/chunks/chunk-3IXAK56X.js +0 -70
  1847. package/dist/chunks/chunk-3KBELFHU.js +0 -305
  1848. package/dist/chunks/chunk-3KQM7D64.js +0 -217
  1849. package/dist/chunks/chunk-3LCTPN5X.js +0 -147
  1850. package/dist/chunks/chunk-3N4BK4KW.js +0 -242
  1851. package/dist/chunks/chunk-3NRAKERA.js +0 -222
  1852. package/dist/chunks/chunk-3QQXWGZT.js +0 -54
  1853. package/dist/chunks/chunk-3R23URZF.js +0 -262
  1854. package/dist/chunks/chunk-3R6CAU5M.js +0 -197
  1855. package/dist/chunks/chunk-3RAAAKTU.js +0 -36
  1856. package/dist/chunks/chunk-3S2AGTIO.js +0 -55
  1857. package/dist/chunks/chunk-3S7DQ4Q7.js +0 -115
  1858. package/dist/chunks/chunk-3SKCIA5R.js +0 -162
  1859. package/dist/chunks/chunk-3SMVGB4N.js +0 -87
  1860. package/dist/chunks/chunk-3VFXQQKZ.js +0 -684
  1861. package/dist/chunks/chunk-3WAIQKH3.js +0 -231
  1862. package/dist/chunks/chunk-3X6EQUFB.js +0 -45
  1863. package/dist/chunks/chunk-3XQBPYOC.js +0 -140
  1864. package/dist/chunks/chunk-3YGKNRDW.js +0 -151
  1865. package/dist/chunks/chunk-46CIRJ2B.js +0 -70
  1866. package/dist/chunks/chunk-46UGPEPB.js +0 -146
  1867. package/dist/chunks/chunk-46ZD55PA.js +0 -159
  1868. package/dist/chunks/chunk-47GY5ZLN.js +0 -95
  1869. package/dist/chunks/chunk-4A3TDRTI.js +0 -272
  1870. package/dist/chunks/chunk-4BJSCBD3.js +0 -125
  1871. package/dist/chunks/chunk-4DQNLDYT.js +0 -150
  1872. package/dist/chunks/chunk-4DTLN7ZX.js +0 -210
  1873. package/dist/chunks/chunk-4FIOBHDV.js +0 -191
  1874. package/dist/chunks/chunk-4G4ZXSNW.js +0 -130
  1875. package/dist/chunks/chunk-4GEDPNFK.js +0 -252
  1876. package/dist/chunks/chunk-4HE6TIPH.js +0 -33
  1877. package/dist/chunks/chunk-4IPM4RTB.js +0 -100
  1878. package/dist/chunks/chunk-4J2IUBPT.js +0 -33
  1879. package/dist/chunks/chunk-4JBZAETN.js +0 -33
  1880. package/dist/chunks/chunk-4JDUL3Q5.js +0 -166
  1881. package/dist/chunks/chunk-4LTCX4CF.js +0 -261
  1882. package/dist/chunks/chunk-4T3EZEE3.js +0 -142
  1883. package/dist/chunks/chunk-4T4MRQGF.js +0 -101
  1884. package/dist/chunks/chunk-4T6DQPDW.js +0 -112
  1885. package/dist/chunks/chunk-4TRO5XTQ.js +0 -168
  1886. package/dist/chunks/chunk-4ZOWMORQ.js +0 -126
  1887. package/dist/chunks/chunk-4ZTDZL3P.js +0 -166
  1888. package/dist/chunks/chunk-4ZW2K5BJ.js +0 -23
  1889. package/dist/chunks/chunk-52PU3MND.js +0 -45
  1890. package/dist/chunks/chunk-52TOWBJT.js +0 -23
  1891. package/dist/chunks/chunk-53OKLWK4.js +0 -196
  1892. package/dist/chunks/chunk-56FT3RWI.js +0 -220
  1893. package/dist/chunks/chunk-57UDVE6U.js +0 -111
  1894. package/dist/chunks/chunk-5BVQ5EXD.js +0 -382
  1895. package/dist/chunks/chunk-5CB2LGFE.js +0 -263
  1896. package/dist/chunks/chunk-5CKT3X64.js +0 -192
  1897. package/dist/chunks/chunk-5DK2UYBP.js +0 -305
  1898. package/dist/chunks/chunk-5DMFYBUL.js +0 -103
  1899. package/dist/chunks/chunk-5DVBFWJ7.js +0 -170
  1900. package/dist/chunks/chunk-5EAPSBHH.js +0 -74
  1901. package/dist/chunks/chunk-5G7H42S5.js +0 -45
  1902. package/dist/chunks/chunk-5KOMGEE2.js +0 -266
  1903. package/dist/chunks/chunk-5MXM6DUT.js +0 -73
  1904. package/dist/chunks/chunk-5MZ7NRFP.js +0 -33
  1905. package/dist/chunks/chunk-5OBMIHRO.js +0 -80
  1906. package/dist/chunks/chunk-5PEX2CUJ.js +0 -146
  1907. package/dist/chunks/chunk-5S3VCX3K.js +0 -80
  1908. package/dist/chunks/chunk-5TS4RZP4.js +0 -103
  1909. package/dist/chunks/chunk-5URUDFZP.js +0 -82
  1910. package/dist/chunks/chunk-5XUNTETF.js +0 -180
  1911. package/dist/chunks/chunk-5Y5OUBEG.js +0 -23
  1912. package/dist/chunks/chunk-5YU3GXFY.js +0 -49
  1913. package/dist/chunks/chunk-67VNKCTL.js +0 -170
  1914. package/dist/chunks/chunk-6B5EHCOU.js +0 -163
  1915. package/dist/chunks/chunk-6DS7IF2L.js +0 -109
  1916. package/dist/chunks/chunk-6ERW4WDU.js +0 -173
  1917. package/dist/chunks/chunk-6EXHIDH7.js +0 -49
  1918. package/dist/chunks/chunk-6HUADBQI.js +0 -97
  1919. package/dist/chunks/chunk-6IAHTKZW.js +0 -95
  1920. package/dist/chunks/chunk-6IFHOVWV.js +0 -33
  1921. package/dist/chunks/chunk-6INKCI6H.js +0 -366
  1922. package/dist/chunks/chunk-6JGPOJUI.js +0 -43
  1923. package/dist/chunks/chunk-6LRPGXSK.js +0 -176
  1924. package/dist/chunks/chunk-6MBUHXEO.js +0 -265
  1925. package/dist/chunks/chunk-6N2UT3AQ.js +0 -284
  1926. package/dist/chunks/chunk-6NJIWOBA.js +0 -135
  1927. package/dist/chunks/chunk-6OZZCBRE.js +0 -152
  1928. package/dist/chunks/chunk-6PEI3S3U.js +0 -290
  1929. package/dist/chunks/chunk-6QSZJUNT.js +0 -175
  1930. package/dist/chunks/chunk-6UDP6YYC.js +0 -244
  1931. package/dist/chunks/chunk-6V3QXAL2.js +0 -145
  1932. package/dist/chunks/chunk-6VV6HRRL.js +0 -127
  1933. package/dist/chunks/chunk-6X5PJGNM.js +0 -122
  1934. package/dist/chunks/chunk-6XRLGLLS.js +0 -224
  1935. package/dist/chunks/chunk-6YDHDMK6.js +0 -45
  1936. package/dist/chunks/chunk-6YE5JCAP.js +0 -366
  1937. package/dist/chunks/chunk-74TQCQ4I.js +0 -215
  1938. package/dist/chunks/chunk-77KOFL6R.js +0 -33
  1939. package/dist/chunks/chunk-7B3RPYSG.js +0 -137
  1940. package/dist/chunks/chunk-7C5PCCPZ.js +0 -247
  1941. package/dist/chunks/chunk-7DATIFND.js +0 -163
  1942. package/dist/chunks/chunk-7DDEKLUC.js +0 -65
  1943. package/dist/chunks/chunk-7FABZEYS.js +0 -119
  1944. package/dist/chunks/chunk-7FAJ47F5.js +0 -1469
  1945. package/dist/chunks/chunk-7GEQ66FO.js +0 -174
  1946. package/dist/chunks/chunk-7HBMWXDH.js +0 -50
  1947. package/dist/chunks/chunk-7ISFTXYC.js +0 -140
  1948. package/dist/chunks/chunk-7KMVIWNZ.js +0 -84
  1949. package/dist/chunks/chunk-7KPCLERX.js +0 -282
  1950. package/dist/chunks/chunk-7KRVHUR2.js +0 -33
  1951. package/dist/chunks/chunk-7MJBT2U6.js +0 -108
  1952. package/dist/chunks/chunk-7MUJZWJE.js +0 -149
  1953. package/dist/chunks/chunk-7NX7Y6UE.js +0 -255
  1954. package/dist/chunks/chunk-7OIZVT5N.js +0 -33
  1955. package/dist/chunks/chunk-7PIQNNUU.js +0 -267
  1956. package/dist/chunks/chunk-7Q2AUKG7.js +0 -276
  1957. package/dist/chunks/chunk-7RCNQQJZ.js +0 -152
  1958. package/dist/chunks/chunk-7SVHN7EB.js +0 -324
  1959. package/dist/chunks/chunk-7TEQO4HQ.js +0 -260
  1960. package/dist/chunks/chunk-7UAVMEMD.js +0 -171
  1961. package/dist/chunks/chunk-7UBDD3S7.js +0 -121
  1962. package/dist/chunks/chunk-7VGIAPY7.js +0 -146
  1963. package/dist/chunks/chunk-7VWOSJKF.js +0 -97
  1964. package/dist/chunks/chunk-7Y2GZ2ZY.js +0 -119
  1965. package/dist/chunks/chunk-7Y7K7RCN.js +0 -192
  1966. package/dist/chunks/chunk-7Z4KZHSJ.js +0 -155
  1967. package/dist/chunks/chunk-7ZANRIOW.js +0 -23
  1968. package/dist/chunks/chunk-A56D35WR.js +0 -251
  1969. package/dist/chunks/chunk-A5JPACEY.js +0 -118
  1970. package/dist/chunks/chunk-A6XJU4UW.js +0 -179
  1971. package/dist/chunks/chunk-A72V66FH.js +0 -23
  1972. package/dist/chunks/chunk-A7ZJ3EGF.js +0 -134
  1973. package/dist/chunks/chunk-AA5WQZL7.js +0 -150
  1974. package/dist/chunks/chunk-AADBY2IG.js +0 -118
  1975. package/dist/chunks/chunk-ABMV7BK5.js +0 -86
  1976. package/dist/chunks/chunk-ACAEZXJM.js +0 -45
  1977. package/dist/chunks/chunk-ADIAJECR.js +0 -117
  1978. package/dist/chunks/chunk-ADXCKKJF.js +0 -179
  1979. package/dist/chunks/chunk-AFSAISKL.js +0 -88
  1980. package/dist/chunks/chunk-AGNMR52I.js +0 -283
  1981. package/dist/chunks/chunk-AH5ONULX.js +0 -127
  1982. package/dist/chunks/chunk-AHCRDDZN.js +0 -38
  1983. package/dist/chunks/chunk-AI3VBBDU.js +0 -156
  1984. package/dist/chunks/chunk-AI6YDEM7.js +0 -261
  1985. package/dist/chunks/chunk-AIEGRQ5Q.js +0 -128
  1986. package/dist/chunks/chunk-AJETZK6O.js +0 -36
  1987. package/dist/chunks/chunk-AQ45DQV5.js +0 -159
  1988. package/dist/chunks/chunk-ARREUEPM.js +0 -33
  1989. package/dist/chunks/chunk-AT5RHXJ2.js +0 -33
  1990. package/dist/chunks/chunk-ATJKNUHQ.js +0 -320
  1991. package/dist/chunks/chunk-ATL2AY7F.js +0 -45
  1992. package/dist/chunks/chunk-AV2TNOFM.js +0 -94
  1993. package/dist/chunks/chunk-AVHVUJXL.js +0 -1309
  1994. package/dist/chunks/chunk-AW7GE7XI.js +0 -136
  1995. package/dist/chunks/chunk-AWWHIF6I.js +0 -206
  1996. package/dist/chunks/chunk-AZXXVXZ3.js +0 -72
  1997. package/dist/chunks/chunk-B7PI3NYZ.js +0 -115
  1998. package/dist/chunks/chunk-BA2HJK2E.js +0 -54
  1999. package/dist/chunks/chunk-BA5Q2ZFZ.js +0 -258
  2000. package/dist/chunks/chunk-BAT6QA3X.js +0 -164
  2001. package/dist/chunks/chunk-BBERYAYQ.js +0 -152
  2002. package/dist/chunks/chunk-BCDTQRMI.js +0 -71
  2003. package/dist/chunks/chunk-BCVQ3BNW.js +0 -234
  2004. package/dist/chunks/chunk-BCXPANET.js +0 -57
  2005. package/dist/chunks/chunk-BD7LFQSB.js +0 -119
  2006. package/dist/chunks/chunk-BDPC433M.js +0 -36
  2007. package/dist/chunks/chunk-BEBHZ2Z7.js +0 -97
  2008. package/dist/chunks/chunk-BEEUYL6U.js +0 -156
  2009. package/dist/chunks/chunk-BEXFGPTQ.js +0 -99
  2010. package/dist/chunks/chunk-BFPD5AVN.js +0 -50
  2011. package/dist/chunks/chunk-BGSOG4I4.js +0 -111
  2012. package/dist/chunks/chunk-BIHJZ2F5.js +0 -72
  2013. package/dist/chunks/chunk-BIPSSFB4.js +0 -170
  2014. package/dist/chunks/chunk-BJSNUJ55.js +0 -274
  2015. package/dist/chunks/chunk-BKJBCFBX.js +0 -92
  2016. package/dist/chunks/chunk-BLCFCV6L.js +0 -33
  2017. package/dist/chunks/chunk-BM2LUTDQ.js +0 -109
  2018. package/dist/chunks/chunk-BMEK3LBE.js +0 -122
  2019. package/dist/chunks/chunk-BMFDRGCC.js +0 -180
  2020. package/dist/chunks/chunk-BNJAJSPB.js +0 -110
  2021. package/dist/chunks/chunk-BOULVDFT.js +0 -164
  2022. package/dist/chunks/chunk-BQC5NYP5.js +0 -195
  2023. package/dist/chunks/chunk-BRFQGTP5.js +0 -312
  2024. package/dist/chunks/chunk-BRLSBUQQ.js +0 -23
  2025. package/dist/chunks/chunk-BRMOABWZ.js +0 -23
  2026. package/dist/chunks/chunk-BTYGNXP7.js +0 -178
  2027. package/dist/chunks/chunk-BUXYZZVU.js +0 -106
  2028. package/dist/chunks/chunk-BWPIJZWK.js +0 -109
  2029. package/dist/chunks/chunk-BXELXTIE.js +0 -140
  2030. package/dist/chunks/chunk-BYPWGOST.js +0 -106
  2031. package/dist/chunks/chunk-BZMTRDZB.js +0 -136
  2032. package/dist/chunks/chunk-C23DBBOC.js +0 -123
  2033. package/dist/chunks/chunk-C2FP6V6Q.js +0 -77
  2034. package/dist/chunks/chunk-C4WLZ6U4.js +0 -48
  2035. package/dist/chunks/chunk-C5LNPW7V.js +0 -110
  2036. package/dist/chunks/chunk-C5XS4IAC.js +0 -76
  2037. package/dist/chunks/chunk-C5ZECRBX.js +0 -358
  2038. package/dist/chunks/chunk-C7F4CH52.js +0 -133
  2039. package/dist/chunks/chunk-CABMRROE.js +0 -147
  2040. package/dist/chunks/chunk-CB5KBKPN.js +0 -161
  2041. package/dist/chunks/chunk-CBFDD55J.js +0 -23
  2042. package/dist/chunks/chunk-CCWMZ5H6.js +0 -152
  2043. package/dist/chunks/chunk-CFEJKR5E.js +0 -81
  2044. package/dist/chunks/chunk-CGURJWQ5.js +0 -55
  2045. package/dist/chunks/chunk-CI5HNU3J.js +0 -23
  2046. package/dist/chunks/chunk-CIEK4ZTM.js +0 -363
  2047. package/dist/chunks/chunk-CLDRSZX7.js +0 -179
  2048. package/dist/chunks/chunk-CM3CY5PD.js +0 -131
  2049. package/dist/chunks/chunk-CMUMUA67.js +0 -84
  2050. package/dist/chunks/chunk-CNPWT5XU.js +0 -163
  2051. package/dist/chunks/chunk-CO3O34XO.js +0 -97
  2052. package/dist/chunks/chunk-CR3SSZNF.js +0 -147
  2053. package/dist/chunks/chunk-CRJNOI4O.js +0 -512
  2054. package/dist/chunks/chunk-CT63FMU3.js +0 -199
  2055. package/dist/chunks/chunk-CZFFIT3O.js +0 -270
  2056. package/dist/chunks/chunk-D3AMTSUA.js +0 -145
  2057. package/dist/chunks/chunk-D3CFBQJN.js +0 -23
  2058. package/dist/chunks/chunk-D3ZR2H2N.js +0 -728
  2059. package/dist/chunks/chunk-D4ZVFD4U.js +0 -172
  2060. package/dist/chunks/chunk-D6TUION5.js +0 -1574
  2061. package/dist/chunks/chunk-D74J4LUM.js +0 -60
  2062. package/dist/chunks/chunk-DBDB37EI.js +0 -23
  2063. package/dist/chunks/chunk-DBZTBNOL.js +0 -137
  2064. package/dist/chunks/chunk-DCR3NVHH.js +0 -49
  2065. package/dist/chunks/chunk-DDYLHK2X.js +0 -133
  2066. package/dist/chunks/chunk-DFDVHVEO.js +0 -290
  2067. package/dist/chunks/chunk-DFM2WYX5.js +0 -105
  2068. package/dist/chunks/chunk-DFT3UOWS.js +0 -197
  2069. package/dist/chunks/chunk-DGQDIG4P.js +0 -77
  2070. package/dist/chunks/chunk-DGZMZOKP.js +0 -23
  2071. package/dist/chunks/chunk-DHWVNJAL.js +0 -80
  2072. package/dist/chunks/chunk-DJ4FFVNL.js +0 -77
  2073. package/dist/chunks/chunk-DKZXNQKG.js +0 -23
  2074. package/dist/chunks/chunk-DM7U3BGW.js +0 -102
  2075. package/dist/chunks/chunk-DMKCWX3P.js +0 -52
  2076. package/dist/chunks/chunk-DMPADAI3.js +0 -46
  2077. package/dist/chunks/chunk-DO4NZBOG.js +0 -250
  2078. package/dist/chunks/chunk-DOMYZ5TN.js +0 -177
  2079. package/dist/chunks/chunk-DPFQDIYP.js +0 -41
  2080. package/dist/chunks/chunk-DQ5CIUCR.js +0 -155
  2081. package/dist/chunks/chunk-DS5DTSLJ.js +0 -104
  2082. package/dist/chunks/chunk-DSZDFMJY.js +0 -96
  2083. package/dist/chunks/chunk-DT65YEKH.js +0 -307
  2084. package/dist/chunks/chunk-DUD27F7P.js +0 -331
  2085. package/dist/chunks/chunk-DUMPJ4CM.js +0 -75
  2086. package/dist/chunks/chunk-DW4DVK2F.js +0 -155
  2087. package/dist/chunks/chunk-DWLGCZRR.js +0 -125
  2088. package/dist/chunks/chunk-DYH73U3B.js +0 -251
  2089. package/dist/chunks/chunk-DZOPQBLQ.js +0 -105
  2090. package/dist/chunks/chunk-E2X2DGXJ.js +0 -200
  2091. package/dist/chunks/chunk-E5URRCIH.js +0 -214
  2092. package/dist/chunks/chunk-E6N37G4Y.js +0 -79
  2093. package/dist/chunks/chunk-E6UEG2XA.js +0 -45
  2094. package/dist/chunks/chunk-E7CR2RNO.js +0 -257
  2095. package/dist/chunks/chunk-E7EFQZR3.js +0 -166
  2096. package/dist/chunks/chunk-EASZCEVK.js +0 -262
  2097. package/dist/chunks/chunk-EB3RYQVS.js +0 -261
  2098. package/dist/chunks/chunk-EBWB7QKG.js +0 -277
  2099. package/dist/chunks/chunk-EDMPA57O.js +0 -55
  2100. package/dist/chunks/chunk-EFJYZFQE.js +0 -45
  2101. package/dist/chunks/chunk-EGKITR6X.js +0 -77
  2102. package/dist/chunks/chunk-EIWERQUD.js +0 -36
  2103. package/dist/chunks/chunk-EL6WINXD.js +0 -93
  2104. package/dist/chunks/chunk-ELZR32LN.js +0 -100
  2105. package/dist/chunks/chunk-EMQDIW2O.js +0 -124
  2106. package/dist/chunks/chunk-EN2O5S6E.js +0 -260
  2107. package/dist/chunks/chunk-EOV7R2NA.js +0 -94
  2108. package/dist/chunks/chunk-EPSZJ4HC.js +0 -228
  2109. package/dist/chunks/chunk-EQSQ5B67.js +0 -86
  2110. package/dist/chunks/chunk-ER5E3OG4.js +0 -71
  2111. package/dist/chunks/chunk-ET4KHOUE.js +0 -55
  2112. package/dist/chunks/chunk-ETNK7BQY.js +0 -261
  2113. package/dist/chunks/chunk-EVIPEH3V.js +0 -106
  2114. package/dist/chunks/chunk-EVV45VT7.js +0 -62
  2115. package/dist/chunks/chunk-EWBCUEKJ.js +0 -23
  2116. package/dist/chunks/chunk-EWTNVAFH.js +0 -224
  2117. package/dist/chunks/chunk-EXIWKTZJ.js +0 -91
  2118. package/dist/chunks/chunk-EXK3H7TZ.js +0 -266
  2119. package/dist/chunks/chunk-EYG6EZE4.js +0 -23
  2120. package/dist/chunks/chunk-EYXEP3NM.js +0 -95
  2121. package/dist/chunks/chunk-EYZXVJLR.js +0 -174
  2122. package/dist/chunks/chunk-F2TIZDFD.js +0 -226
  2123. package/dist/chunks/chunk-F3R4WIJ4.js +0 -177
  2124. package/dist/chunks/chunk-F425Y2QC.js +0 -131
  2125. package/dist/chunks/chunk-F4TB4VA7.js +0 -106
  2126. package/dist/chunks/chunk-F57ZHYW3.js +0 -23
  2127. package/dist/chunks/chunk-F5A5D3SV.js +0 -293
  2128. package/dist/chunks/chunk-F5CUNJQ3.js +0 -184
  2129. package/dist/chunks/chunk-F5KIISVP.js +0 -176
  2130. package/dist/chunks/chunk-FBNZQFIS.js +0 -33
  2131. package/dist/chunks/chunk-FDH7IXH5.js +0 -93
  2132. package/dist/chunks/chunk-FDVPCCHB.js +0 -162
  2133. package/dist/chunks/chunk-FELORU67.js +0 -163
  2134. package/dist/chunks/chunk-FEQJI7G3.js +0 -169
  2135. package/dist/chunks/chunk-FIS4GVS2.js +0 -122
  2136. package/dist/chunks/chunk-FIXN3OZZ.js +0 -167
  2137. package/dist/chunks/chunk-FJBYYTAT.js +0 -33
  2138. package/dist/chunks/chunk-FKDA55QN.js +0 -277
  2139. package/dist/chunks/chunk-FLJUZMS2.js +0 -33
  2140. package/dist/chunks/chunk-FPNX2MF2.js +0 -167
  2141. package/dist/chunks/chunk-FR3AMCWZ.js +0 -166
  2142. package/dist/chunks/chunk-FRTO5AZH.js +0 -181
  2143. package/dist/chunks/chunk-FU3BWNEY.js +0 -197
  2144. package/dist/chunks/chunk-FX6THMQQ.js +0 -145
  2145. package/dist/chunks/chunk-G26VOA6Y.js +0 -331
  2146. package/dist/chunks/chunk-G6OYLESD.js +0 -213
  2147. package/dist/chunks/chunk-G7NWJYHR.js +0 -92
  2148. package/dist/chunks/chunk-GBHSNPVU.js +0 -182
  2149. package/dist/chunks/chunk-GD43RK7L.js +0 -201
  2150. package/dist/chunks/chunk-GDFCKVET.js +0 -298
  2151. package/dist/chunks/chunk-GDZKZGMY.js +0 -777
  2152. package/dist/chunks/chunk-GEC56ZFC.js +0 -79
  2153. package/dist/chunks/chunk-GGM47OTH.js +0 -98
  2154. package/dist/chunks/chunk-GGOXSJXV.js +0 -128
  2155. package/dist/chunks/chunk-GHB6T5S5.js +0 -94
  2156. package/dist/chunks/chunk-GKDXUVHK.js +0 -82
  2157. package/dist/chunks/chunk-GKZFDHJD.js +0 -231
  2158. package/dist/chunks/chunk-GLGDFF3P.js +0 -66
  2159. package/dist/chunks/chunk-GLM3SZTQ.js +0 -122
  2160. package/dist/chunks/chunk-GOES3AV5.js +0 -200
  2161. package/dist/chunks/chunk-GOJVY5OF.js +0 -213
  2162. package/dist/chunks/chunk-GPW46N2O.js +0 -95
  2163. package/dist/chunks/chunk-GSWQBFAE.js +0 -358
  2164. package/dist/chunks/chunk-GT7HYQFY.js +0 -105
  2165. package/dist/chunks/chunk-GTWNM6XG.js +0 -33
  2166. package/dist/chunks/chunk-GUPG4JOX.js +0 -101
  2167. package/dist/chunks/chunk-GUPYYL2C.js +0 -218
  2168. package/dist/chunks/chunk-GWBYY6HH.js +0 -183
  2169. package/dist/chunks/chunk-GWG77YGJ.js +0 -94
  2170. package/dist/chunks/chunk-GX53VN6Y.js +0 -129
  2171. package/dist/chunks/chunk-GXARNGWP.js +0 -45
  2172. package/dist/chunks/chunk-GXESCE7B.js +0 -23
  2173. package/dist/chunks/chunk-GYN5YIV4.js +0 -144
  2174. package/dist/chunks/chunk-GYT45TXJ.js +0 -154
  2175. package/dist/chunks/chunk-GYVQRLPN.js +0 -161
  2176. package/dist/chunks/chunk-GZHVGZLM.js +0 -115
  2177. package/dist/chunks/chunk-H3YXBJ2I.js +0 -104
  2178. package/dist/chunks/chunk-H4GWK67K.js +0 -78
  2179. package/dist/chunks/chunk-H4PJSB72.js +0 -217
  2180. package/dist/chunks/chunk-HA25V6F4.js +0 -165
  2181. package/dist/chunks/chunk-HBQICXAL.js +0 -375
  2182. package/dist/chunks/chunk-HBTTPEFS.js +0 -131
  2183. package/dist/chunks/chunk-HCX3TII5.js +0 -39
  2184. package/dist/chunks/chunk-HDWK5JDT.js +0 -141
  2185. package/dist/chunks/chunk-HFYQSSKK.js +0 -82
  2186. package/dist/chunks/chunk-HH2TXAUA.js +0 -23
  2187. package/dist/chunks/chunk-HL2MJEAW.js +0 -95
  2188. package/dist/chunks/chunk-HMQYXRGB.js +0 -36
  2189. package/dist/chunks/chunk-HN6KVJX5.js +0 -102
  2190. package/dist/chunks/chunk-HP4HDPSQ.js +0 -86
  2191. package/dist/chunks/chunk-HRG7A666.js +0 -122
  2192. package/dist/chunks/chunk-HT46A3ZU.js +0 -33
  2193. package/dist/chunks/chunk-HXRL3M24.js +0 -172
  2194. package/dist/chunks/chunk-HYFJU6BK.js +0 -351
  2195. package/dist/chunks/chunk-I2X7V6EZ.js +0 -69
  2196. package/dist/chunks/chunk-I2YYH7NG.js +0 -166
  2197. package/dist/chunks/chunk-I3SVDRRD.js +0 -103
  2198. package/dist/chunks/chunk-I3YJUKHD.js +0 -204
  2199. package/dist/chunks/chunk-I4YT6XW5.js +0 -168
  2200. package/dist/chunks/chunk-I6GE3BPR.js +0 -98
  2201. package/dist/chunks/chunk-I6KOTOSH.js +0 -242
  2202. package/dist/chunks/chunk-IBNQ57AH.js +0 -120
  2203. package/dist/chunks/chunk-ICKVOMZN.js +0 -163
  2204. package/dist/chunks/chunk-ICPMNIES.js +0 -117
  2205. package/dist/chunks/chunk-ID3D5K6L.js +0 -150
  2206. package/dist/chunks/chunk-IGCPMDUK.js +0 -304
  2207. package/dist/chunks/chunk-IGFLPY2U.js +0 -83
  2208. package/dist/chunks/chunk-IHJYAYIJ.js +0 -23
  2209. package/dist/chunks/chunk-IHPB3G24.js +0 -220
  2210. package/dist/chunks/chunk-II5WCUQS.js +0 -79
  2211. package/dist/chunks/chunk-IJIEDWQ3.js +0 -49
  2212. package/dist/chunks/chunk-IJOMBEXC.js +0 -23
  2213. package/dist/chunks/chunk-ILUHY4KQ.js +0 -50
  2214. package/dist/chunks/chunk-IM6XMBFQ.js +0 -250
  2215. package/dist/chunks/chunk-IMBXM4WJ.js +0 -212
  2216. package/dist/chunks/chunk-INIENDN2.js +0 -149
  2217. package/dist/chunks/chunk-IOGXLAWY.js +0 -100
  2218. package/dist/chunks/chunk-ISG2LSJP.js +0 -598
  2219. package/dist/chunks/chunk-IUDSHCS6.js +0 -185
  2220. package/dist/chunks/chunk-IUYPBY5A.js +0 -141
  2221. package/dist/chunks/chunk-IVOCTG5K.js +0 -95
  2222. package/dist/chunks/chunk-IVZPVVFU.js +0 -108
  2223. package/dist/chunks/chunk-IXQMTE25.js +0 -77
  2224. package/dist/chunks/chunk-IXT2762J.js +0 -55
  2225. package/dist/chunks/chunk-IYWWQTRS.js +0 -93
  2226. package/dist/chunks/chunk-IZF6HCQY.js +0 -33
  2227. package/dist/chunks/chunk-J2BL2A7I.js +0 -97
  2228. package/dist/chunks/chunk-J2L6BOL7.js +0 -1403
  2229. package/dist/chunks/chunk-J2PROA7C.js +0 -146
  2230. package/dist/chunks/chunk-J3CBPZRK.js +0 -146
  2231. package/dist/chunks/chunk-J3YPFK6M.js +0 -94
  2232. package/dist/chunks/chunk-J5OQPYEV.js +0 -135
  2233. package/dist/chunks/chunk-J76NX36H.js +0 -113
  2234. package/dist/chunks/chunk-JBK3M4AB.js +0 -130
  2235. package/dist/chunks/chunk-JGSZ67ST.js +0 -69
  2236. package/dist/chunks/chunk-JGYTGPTC.js +0 -163
  2237. package/dist/chunks/chunk-JI6KNUJS.js +0 -84
  2238. package/dist/chunks/chunk-JIJG6PHF.js +0 -123
  2239. package/dist/chunks/chunk-JJPZ73D7.js +0 -93
  2240. package/dist/chunks/chunk-JKE4PIF3.js +0 -33
  2241. package/dist/chunks/chunk-JKECZ6T6.js +0 -139
  2242. package/dist/chunks/chunk-JLMMSBNH.js +0 -133
  2243. package/dist/chunks/chunk-JLXDVDJR.js +0 -221
  2244. package/dist/chunks/chunk-JOBESXJX.js +0 -85
  2245. package/dist/chunks/chunk-JPU2FGDM.js +0 -1349
  2246. package/dist/chunks/chunk-JRAQHJLN.js +0 -63
  2247. package/dist/chunks/chunk-JRCUQMIH.js +0 -33
  2248. package/dist/chunks/chunk-JSIXY2XL.js +0 -139
  2249. package/dist/chunks/chunk-JSU4W6JA.js +0 -158
  2250. package/dist/chunks/chunk-JU3DG4F3.js +0 -33
  2251. package/dist/chunks/chunk-JVOE444A.js +0 -71
  2252. package/dist/chunks/chunk-JX2KYVP4.js +0 -106
  2253. package/dist/chunks/chunk-JXUU53UI.js +0 -232
  2254. package/dist/chunks/chunk-JZ6BBT67.js +0 -169
  2255. package/dist/chunks/chunk-JZHNHBCK.js +0 -282
  2256. package/dist/chunks/chunk-JZVS5436.js +0 -74
  2257. package/dist/chunks/chunk-K455CMYZ.js +0 -218
  2258. package/dist/chunks/chunk-K6JIGRWB.js +0 -23
  2259. package/dist/chunks/chunk-K6VSDUTK.js +0 -198
  2260. package/dist/chunks/chunk-KA72XIJR.js +0 -83
  2261. package/dist/chunks/chunk-KAE5YURK.js +0 -147
  2262. package/dist/chunks/chunk-KAME37TE.js +0 -154
  2263. package/dist/chunks/chunk-KDNFZBJR.js +0 -97
  2264. package/dist/chunks/chunk-KFCABZ6Z.js +0 -77
  2265. package/dist/chunks/chunk-KM3RMH6A.js +0 -30
  2266. package/dist/chunks/chunk-KM4KCKZF.js +0 -204
  2267. package/dist/chunks/chunk-KM4YMBA7.js +0 -274
  2268. package/dist/chunks/chunk-KM7JFK5J.js +0 -181
  2269. package/dist/chunks/chunk-KS3PHW3J.js +0 -177
  2270. package/dist/chunks/chunk-KUVOYU6Y.js +0 -191
  2271. package/dist/chunks/chunk-KVM4G2FM.js +0 -102
  2272. package/dist/chunks/chunk-KZSLDXWQ.js +0 -378
  2273. package/dist/chunks/chunk-L66DLCKK.js +0 -105
  2274. package/dist/chunks/chunk-L77HFVEY.js +0 -130
  2275. package/dist/chunks/chunk-LBO7657F.js +0 -100
  2276. package/dist/chunks/chunk-LDZXFF4I.js +0 -170
  2277. package/dist/chunks/chunk-LGA6CAEY.js +0 -198
  2278. package/dist/chunks/chunk-LGNTBHRM.js +0 -114
  2279. package/dist/chunks/chunk-LGOX7OL3.js +0 -97
  2280. package/dist/chunks/chunk-LHJJBQRA.js +0 -181
  2281. package/dist/chunks/chunk-LOKC5QM4.js +0 -111
  2282. package/dist/chunks/chunk-LQWLX2WF.js +0 -80
  2283. package/dist/chunks/chunk-LSMNWIA2.js +0 -33
  2284. package/dist/chunks/chunk-LSXC5BB7.js +0 -898
  2285. package/dist/chunks/chunk-LVU7BCS4.js +0 -157
  2286. package/dist/chunks/chunk-LW5RVDSV.js +0 -45
  2287. package/dist/chunks/chunk-LYUFXKMB.js +0 -110
  2288. package/dist/chunks/chunk-M4QKZDO5.js +0 -89
  2289. package/dist/chunks/chunk-M4QTN4JQ.js +0 -78
  2290. package/dist/chunks/chunk-M5J2LV4R.js +0 -127
  2291. package/dist/chunks/chunk-M6KXS5KP.js +0 -78
  2292. package/dist/chunks/chunk-MAAMOB3C.js +0 -36
  2293. package/dist/chunks/chunk-MAI4MOW6.js +0 -60
  2294. package/dist/chunks/chunk-MARDYF7R.js +0 -122
  2295. package/dist/chunks/chunk-MBCGVIDA.js +0 -94
  2296. package/dist/chunks/chunk-MBZAL45Y.js +0 -90
  2297. package/dist/chunks/chunk-MCTNBWKN.js +0 -45
  2298. package/dist/chunks/chunk-MD6QIDLQ.js +0 -63
  2299. package/dist/chunks/chunk-MDGYID2L.js +0 -95
  2300. package/dist/chunks/chunk-MFH5FTEP.js +0 -342
  2301. package/dist/chunks/chunk-MGXSOPDY.js +0 -225
  2302. package/dist/chunks/chunk-MHVKVF3U.js +0 -153
  2303. package/dist/chunks/chunk-MI7TPUEZ.js +0 -209
  2304. package/dist/chunks/chunk-MJNJRC3V.js +0 -39
  2305. package/dist/chunks/chunk-MKCCEAKN.js +0 -101
  2306. package/dist/chunks/chunk-MKES5Q62.js +0 -90
  2307. package/dist/chunks/chunk-MLMG47TW.js +0 -77
  2308. package/dist/chunks/chunk-MNVI5IOJ.js +0 -33
  2309. package/dist/chunks/chunk-MO35AM5B.js +0 -225
  2310. package/dist/chunks/chunk-MQTN4TMG.js +0 -360
  2311. package/dist/chunks/chunk-MSOOUJPB.js +0 -184
  2312. package/dist/chunks/chunk-MTWTB2DV.js +0 -44
  2313. package/dist/chunks/chunk-MTXA6TQI.js +0 -390
  2314. package/dist/chunks/chunk-MVCFFF47.js +0 -150
  2315. package/dist/chunks/chunk-MW74WODL.js +0 -41
  2316. package/dist/chunks/chunk-MX5TMMLC.js +0 -153
  2317. package/dist/chunks/chunk-MXQ7HDIY.js +0 -273
  2318. package/dist/chunks/chunk-MYUVJP3E.js +0 -85
  2319. package/dist/chunks/chunk-N2S3OI2R.js +0 -278
  2320. package/dist/chunks/chunk-N3G3LFAP.js +0 -99
  2321. package/dist/chunks/chunk-N5NUOJC2.js +0 -105
  2322. package/dist/chunks/chunk-N63EGOOR.js +0 -65
  2323. package/dist/chunks/chunk-N6DVPRVK.js +0 -30
  2324. package/dist/chunks/chunk-N765O77M.js +0 -202
  2325. package/dist/chunks/chunk-N7H67WPN.js +0 -112
  2326. package/dist/chunks/chunk-NAEWM6WX.js +0 -33
  2327. package/dist/chunks/chunk-NBWNEORI.js +0 -136
  2328. package/dist/chunks/chunk-NCIHZBNK.js +0 -117
  2329. package/dist/chunks/chunk-NCZBHWQM.js +0 -84
  2330. package/dist/chunks/chunk-NDB3SWHF.js +0 -164
  2331. package/dist/chunks/chunk-NDT5GOUU.js +0 -50
  2332. package/dist/chunks/chunk-NEFL5NSJ.js +0 -361
  2333. package/dist/chunks/chunk-NFBBGPYB.js +0 -396
  2334. package/dist/chunks/chunk-NFS277AM.js +0 -334
  2335. package/dist/chunks/chunk-NH67Z4Z7.js +0 -93
  2336. package/dist/chunks/chunk-NH7REQHB.js +0 -23
  2337. package/dist/chunks/chunk-NHYVCOLB.js +0 -47
  2338. package/dist/chunks/chunk-NM4QW4AV.js +0 -197
  2339. package/dist/chunks/chunk-NPVSDAMB.js +0 -191
  2340. package/dist/chunks/chunk-NQNT2Q4U.js +0 -122
  2341. package/dist/chunks/chunk-NQYZMHKY.js +0 -79
  2342. package/dist/chunks/chunk-NRT25X6X.js +0 -23
  2343. package/dist/chunks/chunk-NRTRVWV2.js +0 -84
  2344. package/dist/chunks/chunk-NRZKKB7D.js +0 -161
  2345. package/dist/chunks/chunk-NSO37S7R.js +0 -156
  2346. package/dist/chunks/chunk-NT6GL53J.js +0 -153
  2347. package/dist/chunks/chunk-NTTJ5YWW.js +0 -115
  2348. package/dist/chunks/chunk-NVFQ6XOG.js +0 -135
  2349. package/dist/chunks/chunk-NXHQPVSS.js +0 -53
  2350. package/dist/chunks/chunk-NYB767GZ.js +0 -107
  2351. package/dist/chunks/chunk-NYEYZYAZ.js +0 -150
  2352. package/dist/chunks/chunk-NYVQH2TP.js +0 -80
  2353. package/dist/chunks/chunk-NZLF4F22.js +0 -111
  2354. package/dist/chunks/chunk-NZT5PBCY.js +0 -112
  2355. package/dist/chunks/chunk-O2RSJW2N.js +0 -175
  2356. package/dist/chunks/chunk-O2TZ4RUB.js +0 -69
  2357. package/dist/chunks/chunk-O2XCCEGL.js +0 -33
  2358. package/dist/chunks/chunk-O4EDRAA3.js +0 -163
  2359. package/dist/chunks/chunk-O4MAHLMK.js +0 -108
  2360. package/dist/chunks/chunk-O76ELPDH.js +0 -33
  2361. package/dist/chunks/chunk-OBSTTIFP.js +0 -130
  2362. package/dist/chunks/chunk-OEGEYXSK.js +0 -87
  2363. package/dist/chunks/chunk-OF75XPVL.js +0 -98
  2364. package/dist/chunks/chunk-OGRKJHHL.js +0 -183
  2365. package/dist/chunks/chunk-OHQMJMDJ.js +0 -138
  2366. package/dist/chunks/chunk-OIXDYYB4.js +0 -327
  2367. package/dist/chunks/chunk-OJNGDEBG.js +0 -36
  2368. package/dist/chunks/chunk-OLVTLGC7.js +0 -85
  2369. package/dist/chunks/chunk-OMTIRSOO.js +0 -685
  2370. package/dist/chunks/chunk-ONJOHUT7.js +0 -42
  2371. package/dist/chunks/chunk-OOAAQSUN.js +0 -160
  2372. package/dist/chunks/chunk-OOK6H26O.js +0 -23
  2373. package/dist/chunks/chunk-OOWGR24G.js +0 -140
  2374. package/dist/chunks/chunk-OP6GL3VN.js +0 -304
  2375. package/dist/chunks/chunk-OPCTDHUY.js +0 -11857
  2376. package/dist/chunks/chunk-OQ5QBRTL.js +0 -104
  2377. package/dist/chunks/chunk-OTPVCMRT.js +0 -108
  2378. package/dist/chunks/chunk-OTSXX7U7.js +0 -311
  2379. package/dist/chunks/chunk-OTZHL4FP.js +0 -95
  2380. package/dist/chunks/chunk-OWPI477S.js +0 -174
  2381. package/dist/chunks/chunk-OYQQ6UCT.js +0 -78
  2382. package/dist/chunks/chunk-P23NZILL.js +0 -81
  2383. package/dist/chunks/chunk-P2F6KM4T.js +0 -106
  2384. package/dist/chunks/chunk-P4I5K62V.js +0 -206
  2385. package/dist/chunks/chunk-P6RCIQQG.js +0 -187
  2386. package/dist/chunks/chunk-P74NVHRF.js +0 -336
  2387. package/dist/chunks/chunk-P76PNOT4.js +0 -200
  2388. package/dist/chunks/chunk-PAIJG6ZP.js +0 -33
  2389. package/dist/chunks/chunk-PEOTPFQ3.js +0 -124
  2390. package/dist/chunks/chunk-PEQKTMIA.js +0 -345
  2391. package/dist/chunks/chunk-PHNH26GZ.js +0 -210
  2392. package/dist/chunks/chunk-PLEWXDGK.js +0 -299
  2393. package/dist/chunks/chunk-POPO5HST.js +0 -87
  2394. package/dist/chunks/chunk-PP3CLZFE.js +0 -78
  2395. package/dist/chunks/chunk-PPSQ5TCS.js +0 -204
  2396. package/dist/chunks/chunk-PR4QT2D4.js +0 -93
  2397. package/dist/chunks/chunk-PU3B4IT3.js +0 -120
  2398. package/dist/chunks/chunk-PW4ZPTMZ.js +0 -161
  2399. package/dist/chunks/chunk-PXZWXKYI.js +0 -45
  2400. package/dist/chunks/chunk-Q2LO5MRM.js +0 -172
  2401. package/dist/chunks/chunk-Q32KHLTA.js +0 -71
  2402. package/dist/chunks/chunk-Q32OD4LN.js +0 -215
  2403. package/dist/chunks/chunk-Q4HCCMS3.js +0 -188
  2404. package/dist/chunks/chunk-Q4KLBSFR.js +0 -23
  2405. package/dist/chunks/chunk-Q6FQIFZX.js +0 -279
  2406. package/dist/chunks/chunk-Q6HJQJFD.js +0 -112
  2407. package/dist/chunks/chunk-Q7VOQQPO.js +0 -36
  2408. package/dist/chunks/chunk-QCOMQTS2.js +0 -23
  2409. package/dist/chunks/chunk-QEPISBD4.js +0 -327
  2410. package/dist/chunks/chunk-QF5VLEPT.js +0 -107
  2411. package/dist/chunks/chunk-QGGDIUNH.js +0 -102
  2412. package/dist/chunks/chunk-QHJRZ5DR.js +0 -247
  2413. package/dist/chunks/chunk-QIHLUNTQ.js +0 -199
  2414. package/dist/chunks/chunk-QITIA7YV.js +0 -47
  2415. package/dist/chunks/chunk-QJO5XI2V.js +0 -101
  2416. package/dist/chunks/chunk-QKZA7YDH.js +0 -215
  2417. package/dist/chunks/chunk-QP3X5T54.js +0 -33
  2418. package/dist/chunks/chunk-QPLQOOWS.js +0 -120
  2419. package/dist/chunks/chunk-QPNG4IY4.js +0 -170
  2420. package/dist/chunks/chunk-QQ6R37ME.js +0 -287
  2421. package/dist/chunks/chunk-QTFVE6LL.js +0 -79
  2422. package/dist/chunks/chunk-QU3MESCB.js +0 -23
  2423. package/dist/chunks/chunk-QWFH77AI.js +0 -161
  2424. package/dist/chunks/chunk-QWSKTATJ.js +0 -119
  2425. package/dist/chunks/chunk-QXDLIZFB.js +0 -147
  2426. package/dist/chunks/chunk-QYPSTA7C.js +0 -497
  2427. package/dist/chunks/chunk-QYR6TA7S.js +0 -97
  2428. package/dist/chunks/chunk-QZM7ZRLI.js +0 -75
  2429. package/dist/chunks/chunk-R2DF3RVN.js +0 -287
  2430. package/dist/chunks/chunk-R4AM2IIY.js +0 -23
  2431. package/dist/chunks/chunk-RAY6KE3D.js +0 -237
  2432. package/dist/chunks/chunk-RFMXWRE7.js +0 -969
  2433. package/dist/chunks/chunk-RGSGCWSY.js +0 -122
  2434. package/dist/chunks/chunk-RIKI42ST.js +0 -143
  2435. package/dist/chunks/chunk-RKMCKCQZ.js +0 -80
  2436. package/dist/chunks/chunk-RKMR4H4V.js +0 -626
  2437. package/dist/chunks/chunk-RKUVJXMP.js +0 -187
  2438. package/dist/chunks/chunk-RLSSTKL6.js +0 -86
  2439. package/dist/chunks/chunk-RMA7GCZV.js +0 -55
  2440. package/dist/chunks/chunk-RNVH5QVG.js +0 -91
  2441. package/dist/chunks/chunk-ROQ4C3J5.js +0 -129
  2442. package/dist/chunks/chunk-RPLCRBYT.js +0 -115
  2443. package/dist/chunks/chunk-RPTEKE3D.js +0 -41
  2444. package/dist/chunks/chunk-RPWPUWMW.js +0 -135
  2445. package/dist/chunks/chunk-RQLQRIUK.js +0 -23
  2446. package/dist/chunks/chunk-RQLXKV46.js +0 -145
  2447. package/dist/chunks/chunk-RTQZBLZY.js +0 -151
  2448. package/dist/chunks/chunk-RUTINZXN.js +0 -103
  2449. package/dist/chunks/chunk-RV6M7FIY.js +0 -832
  2450. package/dist/chunks/chunk-RVMYYQRH.js +0 -235
  2451. package/dist/chunks/chunk-RVQ5X4OL.js +0 -123
  2452. package/dist/chunks/chunk-RZXR6F3E.js +0 -115
  2453. package/dist/chunks/chunk-S2ABUICL.js +0 -93
  2454. package/dist/chunks/chunk-S2I3EMHF.js +0 -23
  2455. package/dist/chunks/chunk-S3LZH76U.js +0 -23
  2456. package/dist/chunks/chunk-S45LGHOC.js +0 -503
  2457. package/dist/chunks/chunk-S4NKG72R.js +0 -889
  2458. package/dist/chunks/chunk-S5GMDTSH.js +0 -123
  2459. package/dist/chunks/chunk-S763C26L.js +0 -47
  2460. package/dist/chunks/chunk-S7RBYKKE.js +0 -86
  2461. package/dist/chunks/chunk-SAMC5T4L.js +0 -169
  2462. package/dist/chunks/chunk-SBFKKQNL.js +0 -23
  2463. package/dist/chunks/chunk-SBH4Q44D.js +0 -214
  2464. package/dist/chunks/chunk-SBXUHLQG.js +0 -298
  2465. package/dist/chunks/chunk-SESJCN4X.js +0 -303
  2466. package/dist/chunks/chunk-SEXLE3MU.js +0 -141
  2467. package/dist/chunks/chunk-SIN643BP.js +0 -89
  2468. package/dist/chunks/chunk-SJURWIOF.js +0 -320
  2469. package/dist/chunks/chunk-SKR6SL32.js +0 -190
  2470. package/dist/chunks/chunk-SM5TDK7L.js +0 -80
  2471. package/dist/chunks/chunk-SNFIHIFD.js +0 -45
  2472. package/dist/chunks/chunk-SO5VUGIK.js +0 -153
  2473. package/dist/chunks/chunk-SO64DK7C.js +0 -100
  2474. package/dist/chunks/chunk-SOTIZBTM.js +0 -195
  2475. package/dist/chunks/chunk-SQIG6R4J.js +0 -283
  2476. package/dist/chunks/chunk-STO7UBAA.js +0 -261
  2477. package/dist/chunks/chunk-SULUD5T2.js +0 -160
  2478. package/dist/chunks/chunk-SUOL3VAH.js +0 -152
  2479. package/dist/chunks/chunk-SVLBIDVA.js +0 -146
  2480. package/dist/chunks/chunk-SWFBPYW5.js +0 -209
  2481. package/dist/chunks/chunk-SWJSRJPR.js +0 -92
  2482. package/dist/chunks/chunk-SWTQICT5.js +0 -23
  2483. package/dist/chunks/chunk-SWVIC34O.js +0 -209
  2484. package/dist/chunks/chunk-SX3V63FM.js +0 -165
  2485. package/dist/chunks/chunk-SY3REV5J.js +0 -85
  2486. package/dist/chunks/chunk-SY5MK5XR.js +0 -338
  2487. package/dist/chunks/chunk-SZV5RRQG.js +0 -182
  2488. package/dist/chunks/chunk-T3ESGT6V.js +0 -182
  2489. package/dist/chunks/chunk-T3MPGXUZ.js +0 -198
  2490. package/dist/chunks/chunk-T5AHN7N5.js +0 -2157
  2491. package/dist/chunks/chunk-T5MH5ZEC.js +0 -100
  2492. package/dist/chunks/chunk-T5RUZ5RD.js +0 -1393
  2493. package/dist/chunks/chunk-T6D3FCJL.js +0 -78
  2494. package/dist/chunks/chunk-T7DQRJFW.js +0 -89
  2495. package/dist/chunks/chunk-T7MMXS3W.js +0 -226
  2496. package/dist/chunks/chunk-T7ZTPVLV.js +0 -138
  2497. package/dist/chunks/chunk-TAJXUI2B.js +0 -45
  2498. package/dist/chunks/chunk-TAS2ZAE2.js +0 -317
  2499. package/dist/chunks/chunk-TC4YXETV.js +0 -99
  2500. package/dist/chunks/chunk-TIHQYPF2.js +0 -134
  2501. package/dist/chunks/chunk-TJR3QQKI.js +0 -120
  2502. package/dist/chunks/chunk-TKJG65IC.js +0 -178
  2503. package/dist/chunks/chunk-TKQVEIKM.js +0 -159
  2504. package/dist/chunks/chunk-TKTUHW6Y.js +0 -10311
  2505. package/dist/chunks/chunk-TOBG55LR.js +0 -98
  2506. package/dist/chunks/chunk-TQFX2KME.js +0 -156
  2507. package/dist/chunks/chunk-TQITREPU.js +0 -106
  2508. package/dist/chunks/chunk-TTPTG3WM.js +0 -232
  2509. package/dist/chunks/chunk-TUBGN7HX.js +0 -87
  2510. package/dist/chunks/chunk-TUMNHTKE.js +0 -53
  2511. package/dist/chunks/chunk-TUPV43BU.js +0 -196
  2512. package/dist/chunks/chunk-TVQEQGZW.js +0 -188
  2513. package/dist/chunks/chunk-TWTL76GM.js +0 -165
  2514. package/dist/chunks/chunk-TZ7OANZZ.js +0 -139
  2515. package/dist/chunks/chunk-U2HPSEHL.js +0 -240
  2516. package/dist/chunks/chunk-U3XCGYWP.js +0 -180
  2517. package/dist/chunks/chunk-U4R7FADN.js +0 -90
  2518. package/dist/chunks/chunk-U7AUBRV7.js +0 -344
  2519. package/dist/chunks/chunk-UAKPYS6M.js +0 -45
  2520. package/dist/chunks/chunk-UAPSSELF.js +0 -121
  2521. package/dist/chunks/chunk-UAT75AWP.js +0 -307
  2522. package/dist/chunks/chunk-UD3A7D34.js +0 -305
  2523. package/dist/chunks/chunk-UDI7FZ44.js +0 -77
  2524. package/dist/chunks/chunk-UDOL4VL5.js +0 -104
  2525. package/dist/chunks/chunk-UE4U4WTA.js +0 -415
  2526. package/dist/chunks/chunk-UEQ2T3TO.js +0 -149
  2527. package/dist/chunks/chunk-UEQWGMJ2.js +0 -97
  2528. package/dist/chunks/chunk-UFXQOCTI.js +0 -92
  2529. package/dist/chunks/chunk-UGLF6QL5.js +0 -196
  2530. package/dist/chunks/chunk-UI4QAEX4.js +0 -139
  2531. package/dist/chunks/chunk-UIDR4BFX.js +0 -92
  2532. package/dist/chunks/chunk-UIZ2N43Y.js +0 -1136
  2533. package/dist/chunks/chunk-UK6LIZRI.js +0 -70
  2534. package/dist/chunks/chunk-UKL76QG6.js +0 -1307
  2535. package/dist/chunks/chunk-UMZF2GLD.js +0 -102
  2536. package/dist/chunks/chunk-UNGHFU43.js +0 -84
  2537. package/dist/chunks/chunk-UPSKWQFL.js +0 -141
  2538. package/dist/chunks/chunk-UR37LZDK.js +0 -198
  2539. package/dist/chunks/chunk-URUDT75G.js +0 -66
  2540. package/dist/chunks/chunk-URXZ33SU.js +0 -151
  2541. package/dist/chunks/chunk-USMX5DW2.js +0 -91
  2542. package/dist/chunks/chunk-USPQJFWX.js +0 -194
  2543. package/dist/chunks/chunk-UTWRJYS2.js +0 -330
  2544. package/dist/chunks/chunk-UU5EM337.js +0 -83
  2545. package/dist/chunks/chunk-UUUIVHM4.js +0 -158
  2546. package/dist/chunks/chunk-UW2NNGNC.js +0 -121
  2547. package/dist/chunks/chunk-UXO45QEX.js +0 -115
  2548. package/dist/chunks/chunk-UXWYWOSQ.js +0 -177
  2549. package/dist/chunks/chunk-UYEQMCDK.js +0 -91
  2550. package/dist/chunks/chunk-V4PNIKG7.js +0 -655
  2551. package/dist/chunks/chunk-V6IJEIBX.js +0 -76
  2552. package/dist/chunks/chunk-V7RBRDU6.js +0 -84
  2553. package/dist/chunks/chunk-VAFTNRGV.js +0 -260
  2554. package/dist/chunks/chunk-VC45HSUD.js +0 -329
  2555. package/dist/chunks/chunk-VFPWYSG6.js +0 -44
  2556. package/dist/chunks/chunk-VGIB5TYD.js +0 -209
  2557. package/dist/chunks/chunk-VGRDVE2J.js +0 -224
  2558. package/dist/chunks/chunk-VJ3A2AAA.js +0 -23
  2559. package/dist/chunks/chunk-VJFXBOEQ.js +0 -68
  2560. package/dist/chunks/chunk-VK4ORGRH.js +0 -70
  2561. package/dist/chunks/chunk-VKFGKOVU.js +0 -90
  2562. package/dist/chunks/chunk-VLZHG7UZ.js +0 -118
  2563. package/dist/chunks/chunk-VN4TJ7XR.js +0 -147
  2564. package/dist/chunks/chunk-VNWJKFP2.js +0 -110
  2565. package/dist/chunks/chunk-VOO5MTG4.js +0 -42
  2566. package/dist/chunks/chunk-VP3OXWUS.js +0 -53
  2567. package/dist/chunks/chunk-VQ4EPDH5.js +0 -130
  2568. package/dist/chunks/chunk-VQCSCJ4W.js +0 -178
  2569. package/dist/chunks/chunk-VQMHI53B.js +0 -270
  2570. package/dist/chunks/chunk-VR4PSGET.js +0 -172
  2571. package/dist/chunks/chunk-VR7NMSES.js +0 -97
  2572. package/dist/chunks/chunk-VU327EZE.js +0 -114
  2573. package/dist/chunks/chunk-VUC7PJMW.js +0 -128
  2574. package/dist/chunks/chunk-VUXDNL33.js +0 -130
  2575. package/dist/chunks/chunk-VVYAT3RI.js +0 -112
  2576. package/dist/chunks/chunk-VXGD32KY.js +0 -198
  2577. package/dist/chunks/chunk-VZ723WWN.js +0 -231
  2578. package/dist/chunks/chunk-VZO7P3AB.js +0 -83
  2579. package/dist/chunks/chunk-W2BLFGYM.js +0 -96
  2580. package/dist/chunks/chunk-W2OK7CXS.js +0 -23
  2581. package/dist/chunks/chunk-W37HPQUB.js +0 -362
  2582. package/dist/chunks/chunk-W3IDTHJ5.js +0 -391
  2583. package/dist/chunks/chunk-WBMQG54S.js +0 -23
  2584. package/dist/chunks/chunk-WDAVXONF.js +0 -113
  2585. package/dist/chunks/chunk-WJCACYXB.js +0 -256
  2586. package/dist/chunks/chunk-WJQLB3S3.js +0 -96
  2587. package/dist/chunks/chunk-WJUSVJUD.js +0 -237
  2588. package/dist/chunks/chunk-WKFG4HR4.js +0 -151
  2589. package/dist/chunks/chunk-WLPIDSK3.js +0 -23
  2590. package/dist/chunks/chunk-WLZOGMAB.js +0 -97
  2591. package/dist/chunks/chunk-WMMJHQCS.js +0 -213
  2592. package/dist/chunks/chunk-WP2N3C5F.js +0 -95
  2593. package/dist/chunks/chunk-WQATM3FA.js +0 -48
  2594. package/dist/chunks/chunk-WR7257WS.js +0 -23
  2595. package/dist/chunks/chunk-WSU6PXGD.js +0 -187
  2596. package/dist/chunks/chunk-WVH7XCNK.js +0 -208
  2597. package/dist/chunks/chunk-WWZLPKGR.js +0 -368
  2598. package/dist/chunks/chunk-WXG6JTYF.js +0 -76
  2599. package/dist/chunks/chunk-WZNEGR6H.js +0 -169
  2600. package/dist/chunks/chunk-X5DBYPPD.js +0 -207
  2601. package/dist/chunks/chunk-X5PUTMJN.js +0 -13696
  2602. package/dist/chunks/chunk-X6JDOGFT.js +0 -172
  2603. package/dist/chunks/chunk-X76ZAGPQ.js +0 -94
  2604. package/dist/chunks/chunk-XAJRODKB.js +0 -133
  2605. package/dist/chunks/chunk-XAU4IQ6R.js +0 -358
  2606. package/dist/chunks/chunk-XBHNV374.js +0 -206
  2607. package/dist/chunks/chunk-XBTL3Q7L.js +0 -152
  2608. package/dist/chunks/chunk-XFGGJKA2.js +0 -122
  2609. package/dist/chunks/chunk-XG6YFWV7.js +0 -589
  2610. package/dist/chunks/chunk-XGBXIL47.js +0 -142
  2611. package/dist/chunks/chunk-XHKHWZSO.js +0 -176
  2612. package/dist/chunks/chunk-XIQRES7B.js +0 -138
  2613. package/dist/chunks/chunk-XITPABC6.js +0 -149
  2614. package/dist/chunks/chunk-XJJLWMRX.js +0 -106
  2615. package/dist/chunks/chunk-XJWHIRD3.js +0 -87
  2616. package/dist/chunks/chunk-XLXILM2K.js +0 -107
  2617. package/dist/chunks/chunk-XMADQ6PV.js +0 -118
  2618. package/dist/chunks/chunk-XNVIJBSY.js +0 -192
  2619. package/dist/chunks/chunk-XP4S6V2S.js +0 -59
  2620. package/dist/chunks/chunk-XQJMQESB.js +0 -90
  2621. package/dist/chunks/chunk-XQVUJ5QB.js +0 -10733
  2622. package/dist/chunks/chunk-XSRT4A4R.js +0 -301
  2623. package/dist/chunks/chunk-XSY7MCJH.js +0 -45
  2624. package/dist/chunks/chunk-XVGCVHOM.js +0 -346
  2625. package/dist/chunks/chunk-XX7PHIUY.js +0 -326
  2626. package/dist/chunks/chunk-XXRZ2AX6.js +0 -157
  2627. package/dist/chunks/chunk-Y2FQ4U2L.js +0 -194
  2628. package/dist/chunks/chunk-Y3R573TB.js +0 -88
  2629. package/dist/chunks/chunk-Y6SCI7BF.js +0 -304
  2630. package/dist/chunks/chunk-Y7GUFPMI.js +0 -160
  2631. package/dist/chunks/chunk-Y7VQAPCY.js +0 -104
  2632. package/dist/chunks/chunk-Y7YPWN3K.js +0 -112
  2633. package/dist/chunks/chunk-YCUWURQF.js +0 -81
  2634. package/dist/chunks/chunk-YJZ2MD57.js +0 -23
  2635. package/dist/chunks/chunk-YMK5ZFFA.js +0 -165
  2636. package/dist/chunks/chunk-YNE2HJQD.js +0 -109
  2637. package/dist/chunks/chunk-YNZXX33S.js +0 -282
  2638. package/dist/chunks/chunk-YO64OMFX.js +0 -226
  2639. package/dist/chunks/chunk-YP7TE3W7.js +0 -181
  2640. package/dist/chunks/chunk-YTGSOOFS.js +0 -33
  2641. package/dist/chunks/chunk-Z32GF44S.js +0 -104
  2642. package/dist/chunks/chunk-Z3DMMJNQ.js +0 -738
  2643. package/dist/chunks/chunk-Z5EWBZKR.js +0 -399
  2644. package/dist/chunks/chunk-ZBFPLZAA.js +0 -135
  2645. package/dist/chunks/chunk-ZBHRCQSN.js +0 -117
  2646. package/dist/chunks/chunk-ZFAFY64H.js +0 -361
  2647. package/dist/chunks/chunk-ZFUMP3BO.js +0 -108
  2648. package/dist/chunks/chunk-ZI6L5S24.js +0 -157
  2649. package/dist/chunks/chunk-ZJ32MAJF.js +0 -173
  2650. package/dist/chunks/chunk-ZK2M7RVW.js +0 -88
  2651. package/dist/chunks/chunk-ZLAPRKCV.js +0 -559
  2652. package/dist/chunks/chunk-ZLFS6LX5.js +0 -81
  2653. package/dist/chunks/chunk-ZMQNHULV.js +0 -961
  2654. package/dist/chunks/chunk-ZO5RUENH.js +0 -60
  2655. package/dist/chunks/chunk-ZP2YC6ND.js +0 -73
  2656. package/dist/chunks/chunk-ZPV6TOSK.js +0 -74
  2657. package/dist/chunks/chunk-ZQFSSHLR.js +0 -150
  2658. package/dist/chunks/chunk-ZREWXPRN.js +0 -198
  2659. package/dist/chunks/chunk-ZSLGRO4R.js +0 -100
  2660. package/dist/chunks/chunk-ZSRIPDOC.js +0 -163
  2661. package/dist/chunks/chunk-ZTOZS6XS.js +0 -108
  2662. package/dist/chunks/chunk-ZTZR3O6Y.js +0 -422
  2663. package/dist/chunks/chunk-ZU54LY2H.js +0 -315
  2664. package/dist/chunks/chunk-ZUB6AEXN.js +0 -52
  2665. package/dist/chunks/chunk-ZWC4XXJN.js +0 -230
  2666. package/dist/chunks/client-JAOUIFVM.js +0 -31
  2667. package/dist/chunks/client-O5HY4AOM.js +0 -168
  2668. package/dist/chunks/client-SHXGMB7S.js +0 -47
  2669. package/dist/chunks/client-actions-AGYNIK2K.js +0 -168
  2670. package/dist/chunks/dangerous-5ANKJ5JA.js +0 -123
  2671. package/dist/chunks/delete-current-file-PG7ZSWGM.js +0 -162
  2672. package/dist/chunks/editor-seams-XDN3K6S2.js +0 -182
  2673. package/dist/chunks/editor-store-2L2H3AW5.js +0 -147
  2674. package/dist/chunks/export-QTXILQZS.js +0 -67
  2675. package/dist/chunks/export-watermark-X76FC3PJ.js +0 -156
  2676. package/dist/chunks/eyedropper-2Q37Y6GQ.js +0 -354
  2677. package/dist/chunks/generate-media-5JIWMIRM.js +0 -255
  2678. package/dist/chunks/host-LYFTOHKY.js +0 -181
  2679. package/dist/chunks/integrations-AYCYM4YQ.js +0 -125
  2680. package/dist/chunks/kit-modules-OQ6LKIJ5.js +0 -18
  2681. package/dist/chunks/libraries-WLQMIXUU.js +0 -310
  2682. package/dist/chunks/library-previews-MGZUHM4H.js +0 -206
  2683. package/dist/chunks/live-5IE5R4CW.js +0 -321
  2684. package/dist/chunks/media-tool-IQT6VQTJ.js +0 -236
  2685. package/dist/chunks/new-file-26FUTGRD.js +0 -139
  2686. package/dist/chunks/next-commerce-FC4QANKX.js +0 -72
  2687. package/dist/chunks/plugin-DSJOXVX7.js +0 -130
  2688. package/dist/chunks/plugin-import-6FSHYZZ6.js +0 -690
  2689. package/dist/chunks/pptx-ML5L65UD.js +0 -307
  2690. package/dist/chunks/presence-766LQ5T5.js +0 -136
  2691. package/dist/chunks/project-73CM4ISO.js +0 -1599
  2692. package/dist/chunks/publish-site-ASVLY73S.js +0 -166
  2693. package/dist/chunks/publish-store-K3OMIC7H.js +0 -99
  2694. package/dist/chunks/raster-actions-4XB67C2O.js +0 -232
  2695. package/dist/chunks/reference-images-HOFYS7GJ.js +0 -62
  2696. package/dist/chunks/resolvers-HK6A6J2G.js +0 -149
  2697. package/dist/chunks/runner-IRLPEXPV.js +0 -3545
  2698. package/dist/chunks/runtime-INIEV4QN.js +0 -32
  2699. package/dist/chunks/shader-preview-JD3W6QNS.js +0 -744
  2700. package/dist/chunks/sites-4KLHVBJX.js +0 -35
  2701. package/dist/chunks/store-DN32OF5K.js +0 -233
  2702. package/dist/chunks/storefront-6W7TETQS.js +0 -334
  2703. package/dist/chunks/storefront-prepare-CLBEZCBQ.js +0 -33
  2704. package/dist/chunks/svg-export-JECYKB5J.js +0 -82
  2705. package/dist/chunks/sync-TNHGBAWG.js +0 -161
  2706. package/dist/chunks/tabs-7DIY6AMY.js +0 -319
  2707. package/dist/chunks/team-NW27MBOX.js +0 -47
  2708. package/dist/chunks/team-client-GNJ3B5Q2.js +0 -158
  2709. package/dist/chunks/templates-5M6WAECZ.js +0 -183
  2710. package/dist/chunks/tools-JUJC6TCQ.js +0 -37
  2711. package/dist/chunks/ui-commands-DO7XEBDI.js +0 -190
  2712. package/dist/chunks/versions-AREMQUMG.js +0 -319
  2713. /package/dist/chunks/{chunk-ZCVVREDW.js → chunk-37XZT3YD.js} +0 -0
  2714. /package/dist/chunks/{chunk-IG35OP35.js → chunk-DOXGRCCW.js} +0 -0
  2715. /package/dist/chunks/{chunk-2RMVVHRS.js → chunk-PFJJ3RUV.js} +0 -0
@@ -1,3545 +0,0 @@
1
- import { createRequire as __popcraftRequire } from 'node:module';
2
- import { fileURLToPath as __popcraftPath } from 'node:url';
3
- import { dirname as __popcraftDirname } from 'node:path';
4
- const require = __popcraftRequire(import.meta.url);
5
- const __filename = __popcraftPath(import.meta.url);
6
- const __dirname = __popcraftDirname(__filename);
7
- import {
8
- ALL_TOOLS,
9
- SUBAGENT_FRAMING,
10
- activeMessages,
11
- agentModel,
12
- allProfiles,
13
- allSkills,
14
- appendMessage,
15
- findProfile,
16
- findSkill,
17
- mentionContext,
18
- newId,
19
- persistThreads,
20
- profileIndexLine,
21
- rememberCheckpoint,
22
- setParts,
23
- setTodos,
24
- skillIndexLine,
25
- updateActiveThread,
26
- updateMessage,
27
- useAgentStore
28
- } from "./chunk-T5AHN7N5.js";
29
- import {
30
- registerBuiltinTools
31
- } from "./chunk-2LRVTLKY.js";
32
- import {
33
- registerDangerousCommands
34
- } from "./chunk-ZTZR3O6Y.js";
35
- import "./chunk-NI5BBHJX.js";
36
- import "./chunk-RFMXWRE7.js";
37
- import {
38
- editBlockReason,
39
- editorToolContext
40
- } from "./chunk-3VFXQQKZ.js";
41
- import "./chunk-CRJNOI4O.js";
42
- import "./chunk-2NFTX3PP.js";
43
- import "./chunk-X5PUTMJN.js";
44
- import "./chunk-YQA5IWOG.js";
45
- import "./chunk-VT2A3WIM.js";
46
- import "./chunk-L6RMNPUS.js";
47
- import "./chunk-S4NKG72R.js";
48
- import {
49
- buildDesignContext,
50
- joinWithin
51
- } from "./chunk-EG2WP5CW.js";
52
- import "./chunk-4IUHCC33.js";
53
- import "./chunk-3FUAWRIT.js";
54
- import "./chunk-JEIJJB4H.js";
55
- import {
56
- allTools,
57
- getTool,
58
- runTool,
59
- toolSpecs
60
- } from "./chunk-JBK3M4AB.js";
61
- import {
62
- external_exports
63
- } from "./chunk-R5K2B3R3.js";
64
- import {
65
- provideAgentCapability
66
- } from "./chunk-CT63FMU3.js";
67
- import {
68
- defineCommand
69
- } from "./chunk-CYD3CB7J.js";
70
- import "./chunk-VOXFFKNY.js";
71
- import "./chunk-LPV57UQN.js";
72
- import "./chunk-OZFBHGKA.js";
73
- import "./chunk-ZMQNHULV.js";
74
- import "./chunk-3XIF7PFG.js";
75
- import "./chunk-V66O2FNK.js";
76
- import "./chunk-V64ZDNFL.js";
77
- import "./chunk-5J5K3765.js";
78
- import "./chunk-E5NEL7R5.js";
79
- import "./chunk-OQ5QBRTL.js";
80
- import "./chunk-ZEJGI7M6.js";
81
- import "./chunk-F5KIISVP.js";
82
- import "./chunk-UR37LZDK.js";
83
- import {
84
- HYPERY_PAYMENT_SOURCE_HEADER,
85
- paymentSourceHeaders
86
- } from "./chunk-3S2AGTIO.js";
87
- import {
88
- aiAvailability,
89
- effectiveChatModel,
90
- useAiStore
91
- } from "./chunk-MKWU7K63.js";
92
- import "./chunk-TKTUHW6Y.js";
93
- import "./chunk-LDPWCKGV.js";
94
- import "./chunk-3KBELFHU.js";
95
- import "./chunk-3X6EQUFB.js";
96
- import "./chunk-MAIOW77V.js";
97
- import "./chunk-SRXRN7N5.js";
98
- import "./chunk-42CJ7I2I.js";
99
- import {
100
- activeHyperyTeamId
101
- } from "./chunk-4DTLN7ZX.js";
102
- import "./chunk-VOUDBB3B.js";
103
- import "./chunk-562V65KY.js";
104
- import "./chunk-DCQIJ5K6.js";
105
- import "./chunk-XJFP22CM.js";
106
- import "./chunk-HIOKDYKH.js";
107
- import "./chunk-HEJDYXEN.js";
108
- import "./chunk-MAQCM7EB.js";
109
- import "./chunk-BMFDRGCC.js";
110
- import "./chunk-YU7BEN7M.js";
111
- import "./chunk-E2X2DGXJ.js";
112
- import {
113
- useEditorStore
114
- } from "./chunk-XQVUJ5QB.js";
115
- import "./chunk-BIHJZ2F5.js";
116
- import "./chunk-F36HILOC.js";
117
- import "./chunk-5523LA2B.js";
118
- import "./chunk-I2TPY3VN.js";
119
- import "./chunk-P7BNDED3.js";
120
- import "./chunk-FKAYJ7KD.js";
121
- import "./chunk-QKKEJX25.js";
122
- import "./chunk-IYPKEXVR.js";
123
- import "./chunk-MHE5XWFP.js";
124
- import "./chunk-XPGIRVA4.js";
125
- import "./chunk-FFAK5VLJ.js";
126
- import "./chunk-C4JDVEM6.js";
127
- import "./chunk-OU7UDZOO.js";
128
- import "./chunk-GIVKQ2M5.js";
129
- import "./chunk-3AUIRV3M.js";
130
- import "./chunk-PPJHWCXR.js";
131
- import "./chunk-QHJRZ5DR.js";
132
- import {
133
- create
134
- } from "./chunk-LLNAXNMG.js";
135
- import "./chunk-F4CGME6I.js";
136
- import "./chunk-Z37MDRQF.js";
137
- import "./chunk-WMUTHJSF.js";
138
- import "./chunk-DRIEKZXH.js";
139
- import {
140
- HYPERY_GATEWAY_URL,
141
- accessToken
142
- } from "./chunk-TCJPZ2OH.js";
143
- import "./chunk-5RTV6RAO.js";
144
- import "./chunk-KTQ2NERL.js";
145
- import "./chunk-NFKRHEFS.js";
146
- import "./chunk-QQQD6VX7.js";
147
- import {
148
- ToolError,
149
- registerCommand
150
- } from "./chunk-UOF5SVIL.js";
151
- import "./chunk-BEJFQOQ3.js";
152
- import "./chunk-F632TQ7E.js";
153
- import "./chunk-HIEW2HBM.js";
154
- import "./chunk-UBWVPI6Q.js";
155
- import "./chunk-HCS32YON.js";
156
- import "./chunk-UEZ5X6H7.js";
157
- import "./chunk-RC4HK4O5.js";
158
- import "./chunk-47X23Y2Y.js";
159
- import "./chunk-RX6IMUBJ.js";
160
- import "./chunk-KZADKUFA.js";
161
- import "./chunk-7ZUCBQIM.js";
162
- import "./chunk-EO4IBTJQ.js";
163
- import "./chunk-QLKB3HSW.js";
164
- import "./chunk-DJZKHTMX.js";
165
- import "./chunk-HMW5WUPH.js";
166
- import "./chunk-NUQPBGGA.js";
167
- import "./chunk-FRZMQWX2.js";
168
- import "./chunk-6HZO2OND.js";
169
- import "./chunk-M62IG46X.js";
170
- import "./chunk-L4AJ2PEW.js";
171
- import "./chunk-HMW6JY4Y.js";
172
- import "./chunk-ILOZJS7R.js";
173
- import "./chunk-Q2EVZ3XC.js";
174
- import "./chunk-32P3NXJ4.js";
175
- import "./chunk-5VNTI5HC.js";
176
- import "./chunk-MIMJ2R3V.js";
177
- import "./chunk-XYKWHSAA.js";
178
- import "./chunk-XHJBMQNM.js";
179
- import "./chunk-J4AHFSZQ.js";
180
- import "./chunk-RMA7GCZV.js";
181
- import "./chunk-2RMVVHRS.js";
182
- import "./chunk-Y7LDFZ6N.js";
183
- import "./chunk-LENZHWRG.js";
184
- import "./chunk-ENZZJ3W6.js";
185
- import "./chunk-R77TI3YE.js";
186
- import "./chunk-ZCVVREDW.js";
187
- import "./chunk-O3UBQXIG.js";
188
- import "./chunk-IAMXIPBP.js";
189
- import "./chunk-5ZQDOYRP.js";
190
- import "./chunk-SQD232NG.js";
191
- import "./chunk-XCLWLTK7.js";
192
- import "./chunk-XUBBSTHA.js";
193
- import "./chunk-SELBWNFB.js";
194
- import "./chunk-O7J2KVT4.js";
195
- import "./chunk-AVWA3JAF.js";
196
- import "./chunk-SXYEFL65.js";
197
- import "./chunk-EOFZ6Y5R.js";
198
- import "./chunk-XYP2M43F.js";
199
- import "./chunk-IPACBESG.js";
200
- import "./chunk-OS7XX42J.js";
201
- import "./chunk-SIRXYQP6.js";
202
- import "./chunk-5BHVJWCL.js";
203
- import "./chunk-X3PKGFMJ.js";
204
- import "./chunk-QEVMGJCM.js";
205
- import "./chunk-UAAT523L.js";
206
- import "./chunk-A4YVT7U5.js";
207
- import "./chunk-N7K7Y7UK.js";
208
- import "./chunk-5DK5YJLU.js";
209
- import "./chunk-PEYUBLRY.js";
210
- import "./chunk-AXYBZJQN.js";
211
- import "./chunk-T6KZ57R2.js";
212
- import "./chunk-YQIGEW75.js";
213
- import "./chunk-MSV4G454.js";
214
- import "./chunk-PNT7NNBH.js";
215
- import "./chunk-2NGEL7S4.js";
216
- import "./chunk-JRIK4JAM.js";
217
- import "./chunk-4LPBG4EL.js";
218
- import "./chunk-QEIDODUT.js";
219
- import "./chunk-OXYWVYXJ.js";
220
- import "./chunk-73VKIAIA.js";
221
- import "./chunk-SHC2RARA.js";
222
- import "./chunk-PXOPWNBA.js";
223
- import "./chunk-4GOLK6U6.js";
224
- import "./chunk-KAWVBA3F.js";
225
- import "./chunk-4SO5ZS47.js";
226
- import "./chunk-SLFLYHFZ.js";
227
- import {
228
- AI_LIMITS,
229
- init_limits,
230
- str
231
- } from "./chunk-3VK2N5T6.js";
232
- import "./chunk-OD5O7GPZ.js";
233
- import "./chunk-YLZL6Q26.js";
234
- import "./chunk-YSKCBARI.js";
235
- import "./chunk-FUIEW2MK.js";
236
- import "./chunk-VWRVCETO.js";
237
- import "./chunk-DCS4MKQ7.js";
238
- import "./chunk-STCMPJ6S.js";
239
- import "./chunk-BKPFBUT4.js";
240
- import "./chunk-Z5C2UN3O.js";
241
- import "./chunk-2DQDI24V.js";
242
- import "./chunk-K6CUKRAN.js";
243
- import "./chunk-2O6ZWXJP.js";
244
- import "./chunk-XW6VDEO2.js";
245
- import {
246
- init_define_POPCRAFT_COMPONENT_IDS
247
- } from "./chunk-6JXNKUNX.js";
248
- import "./chunk-LJSVREWM.js";
249
-
250
- // lib/agent/runner.ts
251
- init_define_POPCRAFT_COMPONENT_IDS();
252
-
253
- // lib/agent/gateway.ts
254
- init_define_POPCRAFT_COMPONENT_IDS();
255
-
256
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/index.js
257
- init_define_POPCRAFT_COMPONENT_IDS();
258
-
259
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/hypery-model.js
260
- init_define_POPCRAFT_COMPONENT_IDS();
261
- var delay = ((ms) => new Promise((settle) => setTimeout(() => settle(null), Math.max(0, Number(ms) || 0))));
262
- var utf8Complete = ((b) => {
263
- if (!Array.isArray(b)) return null;
264
- const n = b.length;
265
- for (let i = n - 1; i >= Math.max(0, n - 3); i--) {
266
- const c = b[i];
267
- if ((c & 192) === 128) continue;
268
- const len = c <= 127 ? 1 : c >= 194 && c <= 223 ? 2 : c >= 224 && c <= 239 ? 3 : c >= 240 && c <= 244 ? 4 : 1;
269
- return n - i < len ? i : n;
270
- }
271
- return n;
272
- });
273
- var utf8Decode = ((b) => typeof b === "string" ? b : Array.isArray(b) ? new TextDecoder().decode(Uint8Array.from(b)) : null);
274
- var MAX_REQUEST_BYTES = 44e5;
275
- var DEFAULT_IDLE_TIMEOUT_MS = 18e4;
276
- var HYPERY_TEAM_HEADER = "x-hypery-active-organization-id";
277
- var HYPERY_PAYMENT_SOURCE_HEADER2 = "x-hypery-payment-source";
278
- function agentModelError(message, code, status) {
279
- {
280
- return { name: "AgentModelError", message, code: code ?? "ai_upstream", status: ((__v) => __v == null ? "null" : typeof __v)(status) === "number" ? status : 502 };
281
- }
282
- }
283
- async function resolve(v) {
284
- {
285
- if (((__v) => __v == null ? "null" : typeof __v)(v) === "function") {
286
- return await (v() ?? null);
287
- }
288
- return v ?? null;
289
- }
290
- }
291
- function errorCodeFor(status, payload) {
292
- {
293
- if (payload != null && ((__v) => __v == null ? "null" : typeof __v)(payload) === "object" && payload.error != null && ((__v) => __v == null ? "null" : typeof __v)(payload.error) === "object" && ((__v) => __v == null ? "null" : typeof __v)(payload.error.code) === "string") {
294
- return payload.error.code;
295
- }
296
- if (status === 401) {
297
- return "ai_reauth";
298
- }
299
- if (status === 402) {
300
- return "ai_credits";
301
- }
302
- if (status === 403) {
303
- return "ai_scope";
304
- }
305
- if (status === 429) {
306
- return "ai_rate_limited";
307
- }
308
- return "ai_upstream";
309
- }
310
- }
311
- function streamErrorMessage(payload, fallback) {
312
- {
313
- let otherwise = fallback ?? "The AI request failed.";
314
- if (payload == null || ((__v) => __v == null ? "null" : typeof __v)(payload) !== "object") {
315
- return otherwise;
316
- }
317
- let err = payload.error ?? null;
318
- if (((__v) => __v == null ? "null" : typeof __v)(err) === "string" && (err.trim() ?? null) !== "") {
319
- return err;
320
- }
321
- let message = err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" ? err.message ?? null : null;
322
- if (message == null) {
323
- message = payload.message ?? null;
324
- }
325
- return ((__v) => __v == null ? "null" : typeof __v)(message) === "string" && (message.trim() ?? null) !== "" ? message : otherwise;
326
- }
327
- }
328
- function createStreamAccumulator() {
329
- {
330
- let buffer = "";
331
- let text = "";
332
- let reasoning = "";
333
- let sawDone = false;
334
- let calls = /* @__PURE__ */ new Map() ?? null;
335
- let order = [];
336
- return { push: (part) => {
337
- {
338
- buffer = buffer + part;
339
- let out = [];
340
- let nl = buffer.indexOf("\n") ?? null;
341
- while (nl >= 0) {
342
- let line = (buffer.slice(0, nl) ?? null).trim() ?? null;
343
- buffer = buffer.slice(nl + 1) ?? null;
344
- nl = buffer.indexOf("\n") ?? null;
345
- if (!(line.startsWith("data:") ?? null)) {
346
- continue;
347
- }
348
- let data = (line.slice(5) ?? null).trim() ?? null;
349
- if (data === "") {
350
- continue;
351
- }
352
- if (data === "[DONE]") {
353
- sawDone = true;
354
- continue;
355
- }
356
- let chunk = null;
357
- try {
358
- {
359
- chunk = JSON.parse(data) ?? null;
360
- }
361
- } catch (e) {
362
- {
363
- continue;
364
- }
365
- }
366
- if (chunk == null || ((__v) => __v == null ? "null" : typeof __v)(chunk) !== "object") {
367
- continue;
368
- }
369
- if (chunk.error) {
370
- let code = ((__v) => __v == null ? "null" : typeof __v)(chunk.error) === "object" && ((__v) => __v == null ? "null" : typeof __v)(chunk.error.code) === "string" ? chunk.error.code : "ai_upstream";
371
- throw agentModelError(streamErrorMessage(chunk, null) ?? null, code, 502) ?? null;
372
- }
373
- let choice = (Array.isArray(chunk.choices) ?? null) && chunk.choices.length > 0 ? chunk.choices[0] ?? null : null;
374
- let delta = choice != null ? choice.delta ?? null : null;
375
- if (delta == null) {
376
- continue;
377
- }
378
- if (((__v) => __v == null ? "null" : typeof __v)(delta.content) === "string" && delta.content !== "") {
379
- text = text + delta.content;
380
- out.push({ textDelta: delta.content }) ?? null;
381
- }
382
- let r = ((__v) => __v == null ? "null" : typeof __v)(delta.reasoning) === "string" ? delta.reasoning : ((__v) => __v == null ? "null" : typeof __v)(delta.reasoning_content) === "string" ? delta.reasoning_content : "";
383
- if (r !== "") {
384
- reasoning = reasoning + r;
385
- out.push({ reasoningDelta: r }) ?? null;
386
- }
387
- for (const tc of Array.isArray(delta.tool_calls) ?? null ? delta.tool_calls : []) {
388
- let i = ((__v) => __v == null ? "null" : typeof __v)(tc.index) === "number" ? tc.index : order.length > 0 ? order[order.length - 1] ?? null : 0;
389
- if (!(calls.has(i) ?? null)) {
390
- calls.set(i, { id: null, name: "", arguments: "" }) ?? null;
391
- order.push(i) ?? null;
392
- }
393
- let call = calls.get(i) ?? null;
394
- if (((__v) => __v == null ? "null" : typeof __v)(tc.id) === "string" && tc.id !== "") {
395
- call.id = tc.id;
396
- }
397
- let f = tc["function"] ?? null ?? null;
398
- if (f != null && ((__v) => __v == null ? "null" : typeof __v)(f.name) === "string") {
399
- call.name = call.name + f.name;
400
- }
401
- if (f != null && ((__v) => __v == null ? "null" : typeof __v)(f.arguments) === "string" && f.arguments !== "") {
402
- call.arguments = call.arguments + f.arguments;
403
- out.push({ toolProgress: { index: i, name: call.name, bytes: call.arguments.length, arguments: call.arguments } }) ?? null;
404
- }
405
- }
406
- }
407
- return out;
408
- }
409
- }, result: () => {
410
- {
411
- let toolCalls = [];
412
- let n = 0;
413
- for (const i of order) {
414
- let c = calls.get(i) ?? null;
415
- if (c.name !== "") {
416
- toolCalls.push({ id: c.id ?? "call_" + (String(n) ?? null), name: c.name, arguments: c.arguments }) ?? null;
417
- }
418
- n = n + 1;
419
- }
420
- return { text, reasoning, sawDone, toolCalls };
421
- }
422
- } };
423
- }
424
- }
425
- function appendBytes(pending, chunk) {
426
- {
427
- let out = pending.slice() ?? null;
428
- let i = 0;
429
- while (i < chunk.length) {
430
- out.push(chunk[i] ?? null) ?? null;
431
- i = i + 1;
432
- }
433
- return out;
434
- }
435
- }
436
- function callHook(hooks, name, value) {
437
- {
438
- if (hooks == null || ((__v) => __v == null ? "null" : typeof __v)(hooks) !== "object") {
439
- return;
440
- }
441
- let h = hooks[name] ?? null;
442
- if (((__v) => __v == null ? "null" : typeof __v)(h) === "function") {
443
- h(value) ?? null;
444
- }
445
- }
446
- }
447
- function createHyperyModel(opts) {
448
- {
449
- let idleMs = ((__v) => __v == null ? "null" : typeof __v)(opts.idleTimeoutMs) === "number" ? opts.idleTimeoutMs : DEFAULT_IDLE_TIMEOUT_MS;
450
- let limit = ((__v) => __v == null ? "null" : typeof __v)(opts.maxRequestBytes) === "number" ? opts.maxRequestBytes : MAX_REQUEST_BYTES;
451
- let base = ((__v) => __v == null ? "null" : typeof __v)(opts.gatewayUrl) === "string" && opts.gatewayUrl !== "" ? opts.gatewayUrl : "https://hypery.ai";
452
- if (base.endsWith("/") ?? null) {
453
- base = base.slice(0, base.length - 1) ?? null;
454
- }
455
- return async (messages, tools, hooks, signal, req = null) => {
456
- {
457
- let token = await (resolve(opts.token) ?? null);
458
- if (((__v) => __v == null ? "null" : typeof __v)(token) !== "string" || token === "") {
459
- throw agentModelError("Sign in to Hypery to use the agent.", "ai_reauth", 401) ?? null;
460
- }
461
- let hasReq = req != null && ((__v) => __v == null ? "null" : typeof __v)(req) === "object";
462
- let model = hasReq && ((__v) => __v == null ? "null" : typeof __v)(req.model) === "string" && req.model !== "" ? req.model : await (resolve(opts.model) ?? null);
463
- let effort = hasReq && ((__v) => __v == null ? "null" : typeof __v)(req.effort) === "string" ? req.effort : await (resolve(opts.effort) ?? null);
464
- let team = await (resolve(opts.team) ?? null);
465
- let paymentSource = await (resolve(opts.paymentSource) ?? null);
466
- let hasTools = (Array.isArray(tools) ?? null) && tools.length > 0;
467
- let request = { model, messages, stream: true, max_tokens: ((__v) => __v == null ? "null" : typeof __v)(opts.maxTokens) === "number" ? opts.maxTokens : hasTools ? 16384 : 4096 };
468
- if (((__v) => __v == null ? "null" : typeof __v)(opts.temperature) === "number") {
469
- request.temperature = opts.temperature;
470
- }
471
- if (((__v) => __v == null ? "null" : typeof __v)(effort) === "string" && effort !== "") {
472
- request.reasoning = { effort };
473
- }
474
- if (hasTools) {
475
- request.tools = tools;
476
- let choice = hasReq ? req.toolChoice ?? null : null;
477
- request.tool_choice = choice != null ? choice : "auto";
478
- }
479
- let body = JSON.stringify(request) ?? null;
480
- if (body.length > limit) {
481
- throw agentModelError("This message is too large to send (" + ((body.length / 1e6).toFixed(1) ?? null) + " MB with its images). Send fewer or smaller images.", "too_large", 413) ?? null;
482
- }
483
- let headers = { Authorization: "Bearer " + token, "Content-Type": "application/json", Accept: "text/event-stream" };
484
- if (((__v) => __v == null ? "null" : typeof __v)(team) === "string" && team !== "") {
485
- headers[HYPERY_TEAM_HEADER] = team;
486
- }
487
- if (((__v) => __v == null ? "null" : typeof __v)(paymentSource) === "string" && paymentSource !== "") {
488
- headers[HYPERY_PAYMENT_SOURCE_HEADER2] = paymentSource;
489
- }
490
- let init = { method: "POST", headers, body };
491
- if (signal != null && ((__v) => __v == null ? "null" : typeof __v)(signal.addEventListener) === "function") {
492
- init.signal = signal;
493
- }
494
- let res = null;
495
- try {
496
- {
497
- res = await (opts.fetch(base + "/api/v1/chat/completions", init) ?? null);
498
- }
499
- } catch (err) {
500
- {
501
- if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && err.name === "AbortError") {
502
- throw err;
503
- }
504
- throw agentModelError("Could not reach Hypery. Check your connection.", "network", 0) ?? null;
505
- }
506
- }
507
- if (res.ok !== true || res.body == null) {
508
- let text = "";
509
- try {
510
- {
511
- text = await (res.text() ?? null);
512
- }
513
- } catch (e) {
514
- {
515
- text = "";
516
- }
517
- }
518
- let payload = text;
519
- try {
520
- {
521
- payload = JSON.parse(text) ?? null;
522
- }
523
- } catch (e) {
524
- {
525
- payload = text;
526
- }
527
- }
528
- throw agentModelError(streamErrorMessage(payload, "The AI request failed (" + (String(res.status) ?? null) + ").") ?? null, errorCodeFor(res.status, payload) ?? null, res.status) ?? null;
529
- }
530
- let acc = createStreamAccumulator() ?? null;
531
- let reader = res.body.getReader() ?? null;
532
- let pending = [];
533
- let stopReading = () => {
534
- {
535
- if (((__v) => __v == null ? "null" : typeof __v)(reader.cancel) === "function") {
536
- try {
537
- {
538
- reader.cancel() ?? null;
539
- }
540
- } catch (e) {
541
- {
542
- }
543
- }
544
- }
545
- }
546
- };
547
- while (true) {
548
- if (signal != null && signal.aborted === true) {
549
- stopReading() ?? null;
550
- throw { name: "AbortError", message: "The request was stopped." };
551
- }
552
- let next = await (Promise.race([reader.read() ?? null, delay(idleMs) ?? null]) ?? null);
553
- if (next == null) {
554
- stopReading() ?? null;
555
- throw agentModelError("The model stopped responding.", "ai_timeout", 504) ?? null;
556
- }
557
- if (next.done === true) {
558
- break;
559
- }
560
- if (next.value == null) {
561
- continue;
562
- }
563
- let bytes = appendBytes(pending, next.value) ?? null;
564
- let whole = utf8Complete(bytes) ?? null;
565
- pending = bytes.slice(whole) ?? null;
566
- let events = [];
567
- try {
568
- {
569
- events = acc.push(utf8Decode(bytes.slice(0, whole) ?? null) ?? null) ?? null;
570
- }
571
- } catch (err) {
572
- {
573
- stopReading() ?? null;
574
- throw err;
575
- }
576
- }
577
- for (const e of events) {
578
- if (((__v) => __v == null ? "null" : typeof __v)(e.textDelta) === "string") {
579
- callHook(hooks, "onTextDelta", e.textDelta) ?? null;
580
- }
581
- if (((__v) => __v == null ? "null" : typeof __v)(e.reasoningDelta) === "string") {
582
- callHook(hooks, "onReasoningDelta", e.reasoningDelta) ?? null;
583
- }
584
- if (e.toolProgress != null) {
585
- callHook(hooks, "onToolProgress", e.toolProgress) ?? null;
586
- }
587
- }
588
- }
589
- if (pending.length > 0) {
590
- acc.push(utf8Decode(pending) ?? null) ?? null;
591
- }
592
- acc.push("\n") ?? null;
593
- let r = acc.result() ?? null;
594
- if (!r.sawDone && r.text === "" && r.toolCalls.length === 0) {
595
- throw agentModelError("The response was cut off before it started. Try again.", "ai_upstream", 502) ?? null;
596
- }
597
- return { text: r.text, reasoning: r.reasoning, toolCalls: r.toolCalls };
598
- }
599
- };
600
- }
601
- }
602
-
603
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
604
- init_define_POPCRAFT_COMPONENT_IDS();
605
-
606
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
607
- init_define_POPCRAFT_COMPONENT_IDS();
608
-
609
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/advisor.js
610
- init_define_POPCRAFT_COMPONENT_IDS();
611
-
612
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/roles.js
613
- init_define_POPCRAFT_COMPONENT_IDS();
614
- var MODEL_ROLES = ["lead", "swarm", "advisor", "router"];
615
- function isModelRole(v) {
616
- {
617
- return ((__v) => __v == null ? "null" : typeof __v)(v) === "string" && (MODEL_ROLES.includes(v) ?? null);
618
- }
619
- }
620
- function roleOfProfileModel(model) {
621
- {
622
- if ((model ?? null) == null || model === "" || model === "inherit") {
623
- return "lead";
624
- }
625
- if (model === "fast") {
626
- return "swarm";
627
- }
628
- if (isModelRole(model) ?? null) {
629
- return model;
630
- }
631
- return null;
632
- }
633
- }
634
- function resolveCatalogModel(wanted, fallback, catalog) {
635
- {
636
- if (!(Array.isArray(catalog) ?? null) || catalog.length === 0) {
637
- return wanted;
638
- }
639
- let ids = new Set(catalog.map((m) => {
640
- {
641
- return ((__v) => __v == null ? "null" : typeof __v)(m) === "string" ? m : m != null && ((__v) => __v == null ? "null" : typeof __v)(m) === "object" ? m.id : "";
642
- }
643
- }) ?? null) ?? null;
644
- if (ids.has(wanted) ?? null) {
645
- return wanted;
646
- }
647
- for (const f of fallback ?? []) {
648
- if (ids.has(f) ?? null) {
649
- return f;
650
- }
651
- }
652
- return wanted;
653
- }
654
- }
655
- function resolveRole(role, roles, catalog) {
656
- {
657
- let spec = roles != null && ((__v) => __v == null ? "null" : typeof __v)(roles) === "object" ? roles[role] ?? null ?? null : null;
658
- if (spec == null || ((__v) => __v == null ? "null" : typeof __v)(spec.model) !== "string" || spec.model === "") {
659
- return null;
660
- }
661
- return { model: resolveCatalogModel(spec.model, spec.fallback ?? null, catalog) ?? null, effort: spec.effort ?? null, fallback: spec.fallback ?? null };
662
- }
663
- }
664
- function mergeRoles(roles, overrides) {
665
- {
666
- let base = roles != null && ((__v) => __v == null ? "null" : typeof __v)(roles) === "object" ? roles : {};
667
- if ((overrides ?? null) == null || ((__v) => __v == null ? "null" : typeof __v)(overrides) !== "object") {
668
- return base;
669
- }
670
- let out = { ...base };
671
- for (const r of MODEL_ROLES) {
672
- let o = overrides[r] ?? null ?? null;
673
- if (o == null) {
674
- continue;
675
- }
676
- out[r] = ((__v) => __v == null ? "null" : typeof __v)(o) === "string" ? { ...base[r] ?? null ?? {}, model: o } : { ...base[r] ?? null ?? {}, ...o };
677
- }
678
- return out;
679
- }
680
- }
681
- function roleModel(callModel, spec) {
682
- {
683
- return async (messages, tools, hooks = null, signal = null, req = null) => {
684
- {
685
- let r = (req ?? null) != null && ((__v) => __v == null ? "null" : typeof __v)(req) === "object" ? req : {};
686
- let merged = { ...r, model: r.model ?? spec.model, effort: r.effort ?? spec.effort ?? null };
687
- return await (callModel(messages, tools, hooks, signal, merged) ?? null);
688
- }
689
- };
690
- }
691
- }
692
-
693
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/advisor.js
694
- var REPEATED_ERROR_COUNT = 2;
695
- var ADVISOR_PROMPT = ["You are the advisor to a coding agent (the lead). You read its whole session and give it short, specific advice. You never write code or call tools yourself.", 'Answer with JSON only: {"verdict": "ok" | "revise", "advice": ["..."]}. At most 4 advice items, each one sentence, concrete (files, commands, the likely cause).', 'Use "ok" with no advice when the lead is on track \u2014 do not add advice for its own sake.'].join("\n") ?? null;
696
- var TRIGGER_ASK = { plan: "The lead is about to plan. Point out anything it should know before choosing an approach.", done: "The lead is about to say it is done. Check the work against the request: anything missing, wrong or unverified?", error: "The lead hit the same error again. Diagnose the likely cause and the next thing to try.", ask: "The lead asked for your advice." };
697
- function contentText(c) {
698
- {
699
- if (((__v) => __v == null ? "null" : typeof __v)(c) === "string") {
700
- return c;
701
- }
702
- if (Array.isArray(c) ?? null) {
703
- return (c.map((p) => {
704
- {
705
- return ((__v) => __v == null ? "null" : typeof __v)(p.text) === "string" ? p.text : "[image]";
706
- }
707
- }) ?? null).join(" ") ?? null;
708
- }
709
- return "";
710
- }
711
- }
712
- function renderTranscript(messages, maxChars) {
713
- {
714
- let lines = [];
715
- for (const m of messages) {
716
- let text = contentText(m.content) ?? null;
717
- if (Array.isArray(m.tool_calls) ?? null) {
718
- for (const c of m.tool_calls) {
719
- text = text + "\n\u2192 " + (c["function"] ?? null).name + " " + (c["function"] ?? null).arguments;
720
- }
721
- }
722
- lines.push("[" + m.role + (((__v) => __v == null ? "null" : typeof __v)(m.name) === "string" ? " " + m.name : "") + "] " + text) ?? null;
723
- }
724
- let all = lines.join("\n\n") ?? null;
725
- return all.length > maxChars ? "\u2026" + (all.slice(all.length - maxChars) ?? null) : all;
726
- }
727
- }
728
- function parseAdvice(text) {
729
- {
730
- let t = text.trim() ?? null;
731
- let start = t.indexOf("{") ?? null;
732
- let end = t.lastIndexOf("}") ?? null;
733
- if (start >= 0 && end > start) {
734
- try {
735
- {
736
- let j = JSON.parse(t.slice(start, end + 1) ?? null) ?? null;
737
- let advice = Array.isArray(j.advice) ?? null ? j.advice.filter((a) => {
738
- {
739
- return ((__v) => __v == null ? "null" : typeof __v)(a) === "string" && (a.trim() ?? null) !== "";
740
- }
741
- }) ?? null : [];
742
- return { verdict: j.verdict === "ok" ? "ok" : "revise", advice };
743
- }
744
- } catch (e) {
745
- {
746
- }
747
- }
748
- }
749
- return { verdict: t === "" ? "ok" : "revise", advice: t === "" ? [] : [t] };
750
- }
751
- }
752
- function createAdvisor(opts) {
753
- {
754
- let call = roleModel(opts.callModel, opts.spec) ?? null;
755
- let maxCalls = ((__v) => __v == null ? "null" : typeof __v)(opts.maxCalls) === "number" ? opts.maxCalls : 8;
756
- let maxChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxChars) === "number" ? opts.maxChars : 6e5;
757
- let triggers = opts.triggers ?? {};
758
- let calls = 0;
759
- let tokensRead = 0;
760
- let emit = (e) => {
761
- {
762
- if (((__v) => __v == null ? "null" : typeof __v)(opts.onEvent) === "function") {
763
- opts.onEvent(e) ?? null;
764
- }
765
- }
766
- };
767
- return { stats: () => {
768
- {
769
- return { calls, tokensRead };
770
- }
771
- }, advise: async (req) => {
772
- {
773
- if ((triggers[req.trigger] ?? null) === false || calls >= maxCalls) {
774
- return null;
775
- }
776
- let transcript = renderTranscript(req.messages, maxChars) ?? null;
777
- calls = calls + 1;
778
- tokensRead = tokensRead + (Math.ceil(transcript.length / 4) ?? null);
779
- emit({ type: "advisor:call", trigger: req.trigger, model: opts.spec.model, calls, tokensRead }) ?? null;
780
- let ask = (TRIGGER_ASK[req.trigger] ?? null) + (((__v) => __v == null ? "null" : typeof __v)(req.detail) === "string" && req.detail !== "" ? "\n\n" + req.detail : "");
781
- let turn = null;
782
- try {
783
- {
784
- turn = await (call([{ role: "system", content: ((__v) => __v == null ? "null" : typeof __v)(opts.guidance) === "string" && (opts.guidance.trim() ?? null) !== "" ? ADVISOR_PROMPT + "\n\nGuidance for this kind of task:\n" + (opts.guidance.trim() ?? null) : ADVISOR_PROMPT }, { role: "user", content: "The session so far:\n\n" + transcript + "\n\n---\n" + ask }], [], {}, null, null) ?? null);
785
- }
786
- } catch (err) {
787
- {
788
- return null;
789
- }
790
- }
791
- let parsed = parseAdvice(turn.text ?? "") ?? null;
792
- emit({ type: "advisor:advice", trigger: req.trigger, model: opts.spec.model, calls, tokensRead, advice: parsed.advice, verdict: parsed.verdict }) ?? null;
793
- if (parsed.verdict === "ok" || parsed.advice.length === 0) {
794
- return null;
795
- }
796
- return "Advisor (" + req.trigger + "):\n" + ((parsed.advice.map((a) => {
797
- {
798
- return "\xBB " + a;
799
- }
800
- }) ?? null).join("\n") ?? null);
801
- }
802
- } };
803
- }
804
- }
805
- function errorSignature(run) {
806
- {
807
- let s = (run.summary ?? "").toLowerCase() ?? null;
808
- let out = "";
809
- for (const ch of s) {
810
- out = out + (ch >= "0" && ch <= "9" ? "#" : ch);
811
- }
812
- return run.name + ":" + (out.slice(0, 200) ?? null);
813
- }
814
- }
815
-
816
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/context.js
817
- init_define_POPCRAFT_COMPONENT_IDS();
818
- var RENDER_TURN_PREFIX = "Result of ";
819
- var KEEP_IMAGE_TURNS = 2;
820
- function sizeOf(messages) {
821
- {
822
- return (JSON.stringify(messages) ?? null).length;
823
- }
824
- }
825
- function isRenderTurn(m) {
826
- {
827
- if (m.role !== "user" || !(Array.isArray(m.content) ?? null) || m.content.length === 0) {
828
- return false;
829
- }
830
- let first = m.content[0] ?? null;
831
- return first.type === "text" && ((__v) => __v == null ? "null" : typeof __v)(first.text) === "string" && (first.text.startsWith(RENDER_TURN_PREFIX) ?? null);
832
- }
833
- }
834
- function countImages(parts) {
835
- {
836
- return (parts.filter((p) => {
837
- {
838
- return p.type === "image_url";
839
- }
840
- }) ?? null).length;
841
- }
842
- }
843
- function textOf(parts) {
844
- {
845
- return ((parts.filter((p) => {
846
- {
847
- return p.type === "text" && ((__v) => __v == null ? "null" : typeof __v)(p.text) === "string" && p.text !== "";
848
- }
849
- }) ?? null).map((p) => {
850
- {
851
- return p.text;
852
- }
853
- }) ?? null).join(" ") ?? null;
854
- }
855
- }
856
- function imagesLabel(n) {
857
- {
858
- return n === 1 ? "image" : (String(n) ?? null) + " images";
859
- }
860
- }
861
- function pruneOldImages(messages, keep) {
862
- {
863
- let limit = ((__v) => __v == null ? "null" : typeof __v)(keep) === "number" ? keep : KEEP_IMAGE_TURNS;
864
- let seen = 0;
865
- let i = messages.length - 1;
866
- while (i >= 0) {
867
- let m = messages[i] ?? null;
868
- if ((isRenderTurn(m) ?? null) && (countImages(m.content) ?? null) > 0) {
869
- seen = seen + 1;
870
- if (seen > limit) {
871
- let note = (textOf(m.content) ?? null) + " [" + (imagesLabel(countImages(m.content) ?? null) ?? null) + " omitted: superseded by a later view.]";
872
- messages[i] = { ...m, content: note.trim() ?? null };
873
- }
874
- }
875
- i = i - 1;
876
- }
877
- }
878
- }
879
- function fitImagesToBudget(messages, budget) {
880
- {
881
- if ((sizeOf(messages) ?? null) <= budget) {
882
- return;
883
- }
884
- let i = 0;
885
- while (i < messages.length && (sizeOf(messages) ?? null) > budget) {
886
- let m = messages[i] ?? null;
887
- if (isRenderTurn(m) ?? null) {
888
- let parts = m.content.slice() ?? null;
889
- let dropped = 0;
890
- let j = parts.length - 1;
891
- while (j >= 0 && (sizeOf(messages) ?? null) > budget) {
892
- if ((parts[j] ?? null).type === "image_url") {
893
- parts.splice(j, 1) ?? null;
894
- dropped = dropped + 1;
895
- messages[i] = { ...m, content: parts.slice() ?? null };
896
- }
897
- j = j - 1;
898
- }
899
- if (dropped > 0) {
900
- let label = dropped === 1 ? "1 image" : (String(dropped) ?? null) + " images";
901
- let note = (textOf(parts) ?? null) + " [" + label + " omitted to keep the request under the size limit.]";
902
- messages[i] = { ...m, content: note.trim() ?? null };
903
- }
904
- }
905
- i = i + 1;
906
- }
907
- }
908
- }
909
- function safeTailStart(messages, want) {
910
- {
911
- let i = Math.max(1, messages.length - want) ?? null;
912
- while (i < messages.length && (messages[i] ?? null).role === "tool") {
913
- i = i + 1;
914
- }
915
- return i;
916
- }
917
- }
918
- async function compactTranscript(messages, opts) {
919
- {
920
- if ((sizeOf(messages) ?? null) <= opts.maxChars) {
921
- return false;
922
- }
923
- let head = messages.length > 0 && (messages[0] ?? null).role === "system" ? 1 : 0;
924
- let firstUser = -1;
925
- let k = head;
926
- while (k < messages.length && firstUser < 0) {
927
- if ((messages[k] ?? null).role === "user") {
928
- firstUser = k;
929
- }
930
- k = k + 1;
931
- }
932
- let keepFrom = firstUser >= 0 ? firstUser + 1 : head;
933
- let tail = safeTailStart(messages, ((__v) => __v == null ? "null" : typeof __v)(opts.keepRecent) === "number" ? opts.keepRecent : 12) ?? null;
934
- if (tail <= keepFrom) {
935
- return false;
936
- }
937
- let dropped = messages.slice(keepFrom, tail) ?? null;
938
- let summary = "";
939
- if (((__v) => __v == null ? "null" : typeof __v)(opts.summarize) === "function") {
940
- try {
941
- {
942
- summary = await (opts.summarize(dropped) ?? null);
943
- }
944
- } catch (e) {
945
- {
946
- summary = "";
947
- }
948
- }
949
- }
950
- let content = summary !== "" ? "Summary of the earlier work in this session (the details were compacted to save space):\n" + summary : "[" + (String(dropped.length) ?? null) + " earlier messages were compacted to save space. Look again at anything you need from them.]";
951
- messages.splice(keepFrom, dropped.length, { role: "user", content }) ?? null;
952
- return true;
953
- }
954
- }
955
-
956
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
957
- var DEFAULT_MAX_ROUNDS = 40;
958
- var DEFAULT_MAX_PARALLEL = 4;
959
- var DEFAULT_ACTION_NUDGE = "You have not changed anything yet. Stop reading and do what was asked now, with the tools that make changes. If you truly cannot, say exactly what is blocking you.";
960
- var RENDER_TURN_PREFIX2 = "Result of ";
961
- var RECOVERABLE_WORDS = ["timeout", "timed out", "stalled", "network", "fetch failed", "econnreset", "socket", "stream"];
962
- function batchCalls(calls, isParallel, max) {
963
- {
964
- let batches = [];
965
- for (const call of calls) {
966
- let last = batches.length > 0 ? batches[batches.length - 1] ?? null : null;
967
- let parallel = isParallel(call.name) ?? null;
968
- if (parallel && last != null && last.length < max && (isParallel((last[0] ?? null).name) ?? null)) {
969
- last.push(call) ?? null;
970
- } else {
971
- batches.push([call]) ?? null;
972
- }
973
- }
974
- return batches;
975
- }
976
- }
977
- function truncateResult(text, max) {
978
- {
979
- if (text.length <= max) {
980
- return text;
981
- }
982
- return (text.slice(0, max) ?? null) + "\n\u2026[truncated " + (String(text.length - max) ?? null) + " characters]";
983
- }
984
- }
985
- function defaultIsRecoverable(err) {
986
- {
987
- if (err == null || ((__v) => __v == null ? "null" : typeof __v)(err) !== "object") {
988
- return false;
989
- }
990
- if (((__v) => __v == null ? "null" : typeof __v)(err.status) === "number") {
991
- return err.status >= 500 || err.status === 408 || err.status === 429;
992
- }
993
- let text = ((String(err.name ?? "") ?? null) + " " + (String(err.code ?? "") ?? null) + " " + (String(err.message ?? "") ?? null)).toLowerCase() ?? null;
994
- return RECOVERABLE_WORDS.some((w) => {
995
- {
996
- return text.includes(w) ?? null;
997
- }
998
- }) ?? null;
999
- }
1000
- }
1001
- function errorMessage(err) {
1002
- {
1003
- if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
1004
- return err.message;
1005
- }
1006
- return String(err) ?? null;
1007
- }
1008
- }
1009
- function repairTranscript(messages) {
1010
- {
1011
- let i = 0;
1012
- while (i < messages.length) {
1013
- let m = messages[i] ?? null;
1014
- if (m.role === "assistant" && (Array.isArray(m.tool_calls) ?? null) && m.tool_calls.length > 0) {
1015
- let j = i + 1;
1016
- let answered = /* @__PURE__ */ new Set() ?? null;
1017
- while (j < messages.length && (messages[j] ?? null).role === "tool") {
1018
- answered.add((messages[j] ?? null).tool_call_id ?? "") ?? null;
1019
- j = j + 1;
1020
- }
1021
- let missing = m.tool_calls.filter((c) => {
1022
- {
1023
- return !(answered.has(c.id) ?? null);
1024
- }
1025
- }) ?? null;
1026
- if (missing.length > 0) {
1027
- let fillers = missing.map((c) => {
1028
- {
1029
- return { role: "tool", tool_call_id: c.id, name: (c["function"] ?? null).name, content: JSON.stringify({ error: "interrupted: this call did not finish (the session was interrupted). Check its effect and run it again if needed." }) ?? null };
1030
- }
1031
- }) ?? null;
1032
- messages.splice(j, 0, ...fillers) ?? null;
1033
- i = j + missing.length - 1;
1034
- }
1035
- }
1036
- i = i + 1;
1037
- }
1038
- return messages;
1039
- }
1040
- }
1041
- function hook(hooks, name) {
1042
- {
1043
- if (hooks == null || ((__v) => __v == null ? "null" : typeof __v)(hooks) !== "object") {
1044
- return null;
1045
- }
1046
- let h = hooks[name] ?? null;
1047
- return ((__v) => __v == null ? "null" : typeof __v)(h) === "function" ? h : null;
1048
- }
1049
- }
1050
- async function runAgentLoop(opts) {
1051
- {
1052
- let maxRounds = ((__v) => __v == null ? "null" : typeof __v)(opts.maxRounds) === "number" ? opts.maxRounds : DEFAULT_MAX_ROUNDS;
1053
- let maxResultChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxResultChars) === "number" ? opts.maxResultChars : 8e3;
1054
- let maxParallel = ((__v) => __v == null ? "null" : typeof __v)(opts.maxParallel) === "number" ? opts.maxParallel : DEFAULT_MAX_PARALLEL;
1055
- let hooks = opts.hooks ?? null;
1056
- let specs = opts.tools.map((t) => {
1057
- {
1058
- return t.spec;
1059
- }
1060
- }) ?? null;
1061
- let parallelNames = new Set((opts.tools.filter((t) => {
1062
- {
1063
- return t.readOnly === true;
1064
- }
1065
- }) ?? null).map((t) => {
1066
- {
1067
- return (t.spec["function"] ?? null).name;
1068
- }
1069
- }) ?? null) ?? null;
1070
- let actingNames = new Set((opts.tools.filter((t) => {
1071
- {
1072
- return ((__v) => __v == null ? "null" : typeof __v)(t.acts) === "boolean" ? t.acts : t.readOnly !== true;
1073
- }
1074
- }) ?? null).map((t) => {
1075
- {
1076
- return (t.spec["function"] ?? null).name;
1077
- }
1078
- }) ?? null) ?? null;
1079
- let require2 = null;
1080
- if (opts.requireAction === true) {
1081
- require2 = {};
1082
- }
1083
- if (opts.requireAction != null && ((__v) => __v == null ? "null" : typeof __v)(opts.requireAction) === "object") {
1084
- require2 = opts.requireAction;
1085
- }
1086
- let resume = opts.resumeState ?? {};
1087
- let nudgesLeft = ((__v) => __v == null ? "null" : typeof __v)(resume.nudgesLeft) === "number" ? resume.nudgesLeft : require2 != null ? ((__v) => __v == null ? "null" : typeof __v)(require2.nudges) === "number" ? require2.nudges : 2 : 0;
1088
- let signal = opts.signal ?? null;
1089
- let isStopped = () => {
1090
- {
1091
- if (signal != null && signal.aborted === true) {
1092
- return true;
1093
- }
1094
- return ((__v) => __v == null ? "null" : typeof __v)(opts.stopped) === "function" && (opts.stopped() ?? null) === true;
1095
- }
1096
- };
1097
- let messages = repairTranscript(opts.messages.slice() ?? null) ?? null;
1098
- let text = "";
1099
- let acted = resume.acted === true;
1100
- let retries = ((__v) => __v == null ? "null" : typeof __v)(opts.modelRetries) === "number" ? opts.modelRetries : 2;
1101
- let recoverable = ((__v) => __v == null ? "null" : typeof __v)(opts.isRecoverable) === "function" ? opts.isRecoverable : defaultIsRecoverable;
1102
- let ctx = opts.context ?? {};
1103
- let maxRequestChars = ((__v) => __v == null ? "null" : typeof __v)(ctx.maxRequestChars) === "number" ? ctx.maxRequestChars : 43e5;
1104
- let save = async (round2, done) => {
1105
- {
1106
- if (((__v) => __v == null ? "null" : typeof __v)(opts.checkpoint) === "function") {
1107
- await (opts.checkpoint({ messages: messages.slice() ?? null, round: round2, acted, nudgesLeft, done }) ?? null);
1108
- }
1109
- }
1110
- };
1111
- let drain = () => {
1112
- {
1113
- if (((__v) => __v == null ? "null" : typeof __v)(opts.drainNotifications) !== "function") {
1114
- return [];
1115
- }
1116
- let notes = opts.drainNotifications() ?? null;
1117
- return Array.isArray(notes) ?? null ? notes : [];
1118
- }
1119
- };
1120
- let modelHooks = { onTextDelta: hook(hooks, "onTextDelta") ?? null, onReasoningDelta: hook(hooks, "onReasoningDelta") ?? null, onToolProgress: hook(hooks, "onToolProgress") ?? null };
1121
- let choiceFor = (round2) => {
1122
- {
1123
- let c = opts.toolChoice ?? null;
1124
- if (((__v) => __v == null ? "null" : typeof __v)(c) === "function") {
1125
- c = c(round2) ?? null ?? null;
1126
- }
1127
- return c;
1128
- }
1129
- };
1130
- let call = async (msgs, tools, choice) => {
1131
- {
1132
- let attempt = 0;
1133
- while (true) {
1134
- try {
1135
- {
1136
- if (choice == null || tools.length === 0) {
1137
- return await (opts.callModel(msgs, tools, modelHooks, signal) ?? null);
1138
- }
1139
- return await (opts.callModel(msgs, tools, modelHooks, signal, { toolChoice: choice }) ?? null);
1140
- }
1141
- } catch (err) {
1142
- {
1143
- if ((isStopped() ?? null) || attempt >= retries || !(recoverable(err) ?? null)) {
1144
- throw err;
1145
- }
1146
- }
1147
- }
1148
- attempt = attempt + 1;
1149
- }
1150
- }
1151
- };
1152
- let advise = ((__v) => __v == null ? "null" : typeof __v)(opts.advise) === "function" ? opts.advise : null;
1153
- let route = ((__v) => __v == null ? "null" : typeof __v)(opts.route) === "function" ? opts.route : null;
1154
- let errorCounts = /* @__PURE__ */ new Map() ?? null;
1155
- let doneChecked = false;
1156
- let consult = async (trigger, detail) => {
1157
- {
1158
- if (advise == null) {
1159
- return false;
1160
- }
1161
- let note = null;
1162
- try {
1163
- {
1164
- note = await (advise({ trigger, messages: messages.slice() ?? null, detail }) ?? null);
1165
- }
1166
- } catch (e) {
1167
- {
1168
- note = null;
1169
- }
1170
- }
1171
- if (((__v) => __v == null ? "null" : typeof __v)(note) !== "string" || note === "") {
1172
- return false;
1173
- }
1174
- messages.push({ role: "user", content: note }) ?? null;
1175
- return true;
1176
- }
1177
- };
1178
- let round = ((__v) => __v == null ? "null" : typeof __v)(resume.round) === "number" ? resume.round : 0;
1179
- if (round === 0) {
1180
- await (consult("plan", null) ?? null);
1181
- }
1182
- while (maxRounds === 0 || round < maxRounds) {
1183
- if (isStopped() ?? null) {
1184
- await (save(round, true) ?? null);
1185
- return { messages, text, rounds: round, exhausted: false, stopped: true, acted };
1186
- }
1187
- for (const note of drain() ?? null) {
1188
- messages.push({ role: "user", content: note }) ?? null;
1189
- }
1190
- pruneOldImages(messages, ctx.keepImageTurns ?? null) ?? null;
1191
- if (ctx.compact != null && ((__v) => __v == null ? "null" : typeof __v)(ctx.compact) === "object") {
1192
- await (compactTranscript(messages, ctx.compact) ?? null);
1193
- }
1194
- fitImagesToBudget(messages, maxRequestChars - (JSON.stringify(specs) ?? null).length) ?? null;
1195
- let onStart = hook(hooks, "onAssistantStart") ?? null;
1196
- if (onStart != null) {
1197
- onStart(round) ?? null;
1198
- }
1199
- let choice = choiceFor(round) ?? null;
1200
- if (choice == null && route != null && specs.length > 0) {
1201
- try {
1202
- {
1203
- choice = await (route({ round, messages: messages.slice() ?? null, tools: specs }) ?? null);
1204
- }
1205
- } catch (e) {
1206
- {
1207
- choice = null;
1208
- }
1209
- }
1210
- }
1211
- let turn = await (call(messages, specs, choice ?? null) ?? null);
1212
- text = turn.text;
1213
- let toolCalls = Array.isArray(turn.toolCalls) ?? null ? turn.toolCalls : [];
1214
- if (toolCalls.length > 0) {
1215
- messages.push({ role: "assistant", content: turn.text, tool_calls: toolCalls.map((c) => {
1216
- {
1217
- return { id: c.id, type: "function", function: { name: c.name, arguments: c.arguments } };
1218
- }
1219
- }) ?? null }) ?? null;
1220
- } else {
1221
- messages.push({ role: "assistant", content: turn.text }) ?? null;
1222
- }
1223
- if (toolCalls.length === 0) {
1224
- let onEnd = hook(hooks, "onRoundEnd") ?? null;
1225
- if (onEnd != null) {
1226
- onEnd(round) ?? null;
1227
- }
1228
- let late = drain() ?? null;
1229
- if (late.length > 0) {
1230
- for (const note of late) {
1231
- messages.push({ role: "user", content: note }) ?? null;
1232
- }
1233
- round = round + 1;
1234
- continue;
1235
- }
1236
- if (!doneChecked) {
1237
- doneChecked = true;
1238
- if (await (consult("done", null) ?? null)) {
1239
- await (save(round + 1, false) ?? null);
1240
- round = round + 1;
1241
- continue;
1242
- }
1243
- }
1244
- if (require2 != null && !acted && nudgesLeft > 0 && actingNames.size > 0) {
1245
- nudgesLeft = nudgesLeft - 1;
1246
- let nudge = ((__v) => __v == null ? "null" : typeof __v)(require2.message) === "string" ? require2.message : DEFAULT_ACTION_NUDGE;
1247
- let onNudge = hook(hooks, "onNudge") ?? null;
1248
- if (onNudge != null) {
1249
- onNudge(nudge) ?? null;
1250
- }
1251
- messages.push({ role: "user", content: nudge }) ?? null;
1252
- await (save(round + 1, false) ?? null);
1253
- round = round + 1;
1254
- continue;
1255
- }
1256
- await (save(round + 1, true) ?? null);
1257
- return { messages, text, rounds: round + 1, exhausted: false, stopped: false, acted };
1258
- }
1259
- let calls = toolCalls.map((c) => {
1260
- {
1261
- return { id: c.id, name: c.name, argsText: c.arguments };
1262
- }
1263
- }) ?? null;
1264
- let imageTurns = [];
1265
- let repeated = [];
1266
- doneChecked = false;
1267
- for (const batch of batchCalls(calls, (n) => {
1268
- {
1269
- return parallelNames.has(n) ?? null;
1270
- }
1271
- }, maxParallel) ?? null) {
1272
- if (isStopped() ?? null) {
1273
- for (const c of calls) {
1274
- let answered = messages.some((m) => {
1275
- {
1276
- return m.role === "tool" && m.tool_call_id === c.id;
1277
- }
1278
- }) ?? null;
1279
- if (!answered) {
1280
- messages.push({ role: "tool", tool_call_id: c.id, name: c.name, content: JSON.stringify({ error: "stopped" }) ?? null }) ?? null;
1281
- }
1282
- }
1283
- await (save(round + 1, true) ?? null);
1284
- return { messages, text, rounds: round + 1, exhausted: false, stopped: true, acted };
1285
- }
1286
- let onToolStart = hook(hooks, "onToolStart") ?? null;
1287
- if (onToolStart != null) {
1288
- for (const info of batch) {
1289
- onToolStart(info) ?? null;
1290
- }
1291
- }
1292
- let runs2 = await (Promise.all(batch.map(async (info) => {
1293
- {
1294
- try {
1295
- {
1296
- return await (opts.execTool(info) ?? null);
1297
- }
1298
- } catch (err) {
1299
- {
1300
- let message = errorMessage(err) ?? null;
1301
- return { id: info.id, name: info.name, argsText: info.argsText, ok: false, summary: message, content: JSON.stringify({ error: message }) ?? null };
1302
- }
1303
- }
1304
- }
1305
- }) ?? null) ?? null);
1306
- let onToolEnd = hook(hooks, "onToolEnd") ?? null;
1307
- for (const run of runs2) {
1308
- let actedHere = ((__v) => __v == null ? "null" : typeof __v)(run.acted) === "boolean" ? run.acted : actingNames.has(run.name) ?? null;
1309
- if (run.ok === true && actedHere) {
1310
- acted = true;
1311
- }
1312
- if (onToolEnd != null) {
1313
- onToolEnd(run) ?? null;
1314
- }
1315
- if (run.ok !== true && advise != null) {
1316
- let sig = errorSignature(run) ?? null;
1317
- let n = (errorCounts.get(sig) ?? null ?? 0) + 1;
1318
- errorCounts.set(sig, n) ?? null;
1319
- if (n === REPEATED_ERROR_COUNT) {
1320
- repeated.push(run.name + ": " + run.summary) ?? null;
1321
- }
1322
- }
1323
- messages.push({ role: "tool", tool_call_id: run.id, name: run.name, content: truncateResult(run.content, maxResultChars) ?? null }) ?? null;
1324
- if ((Array.isArray(run.images) ?? null) && run.images.length > 0) {
1325
- let label = run.images.length === 1 ? "the rendered view" : (String(run.images.length) ?? null) + " rendered views";
1326
- let parts = [{ type: "text", text: RENDER_TURN_PREFIX2 + run.name + ": " + label + "." }];
1327
- for (const url of run.images) {
1328
- parts.push({ type: "image_url", image_url: { url } }) ?? null;
1329
- }
1330
- imageTurns.push({ role: "user", content: parts }) ?? null;
1331
- }
1332
- }
1333
- }
1334
- for (const m of imageTurns) {
1335
- messages.push(m) ?? null;
1336
- }
1337
- for (const err of repeated) {
1338
- await (consult("error", "The error, seen " + (String(REPEATED_ERROR_COUNT) ?? null) + " times: " + err) ?? null);
1339
- }
1340
- let onRoundEnd = hook(hooks, "onRoundEnd") ?? null;
1341
- if (onRoundEnd != null) {
1342
- onRoundEnd(round) ?? null;
1343
- }
1344
- await (save(round + 1, false) ?? null);
1345
- round = round + 1;
1346
- }
1347
- messages.push({ role: "user", content: "You have reached the tool limit for this turn. Summarise what you changed and what is left, without calling more tools." }) ?? null;
1348
- let final = await (call(messages, [], null) ?? null);
1349
- messages.push({ role: "assistant", content: final.text }) ?? null;
1350
- await (save(maxRounds, true) ?? null);
1351
- return { messages, text: final.text, rounds: maxRounds, exhausted: true, stopped: false, acted };
1352
- }
1353
- }
1354
-
1355
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
1356
- var delay2 = ((ms) => new Promise((settle) => setTimeout(() => settle(null), Math.max(0, Number(ms) || 0))));
1357
- var REPORT_TOOL = "report_to_parent";
1358
- var REPORT_SPEC = { readOnly: true, acts: false, spec: { type: "function", function: { name: REPORT_TOOL, description: "Send the main agent a progress update, or a question (set question) when you need a decision you cannot make yourself. It arrives between its steps and it answers with a message you read at your next step \u2014 keep working on what you can meanwhile. Your final answer still goes back by itself when you finish.", parameters: { type: "object", properties: { message: { type: "string", description: "What to tell the main agent." }, question: { type: "boolean", description: "This needs an answer." } }, required: ["message"] } } } };
1359
- var WAIT_STEP_MS = 25;
1360
- function isBusy(s) {
1361
- {
1362
- return s != null && (s.status === "running" || s.status === "queued");
1363
- }
1364
- }
1365
- function plainStopControl() {
1366
- {
1367
- let flag = { aborted: false };
1368
- return { signal: flag, stop: () => {
1369
- {
1370
- flag.aborted = true;
1371
- }
1372
- } };
1373
- }
1374
- }
1375
- function allSessions(sessions) {
1376
- {
1377
- let out = [];
1378
- for (const s of sessions.values() ?? null) {
1379
- out.push(s) ?? null;
1380
- }
1381
- return out;
1382
- }
1383
- }
1384
- function errorMessage2(err) {
1385
- {
1386
- if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
1387
- return err.message;
1388
- }
1389
- return String(err) ?? null;
1390
- }
1391
- }
1392
- function createAgentRuntime(host) {
1393
- {
1394
- let sessions = /* @__PURE__ */ new Map() ?? null;
1395
- let controls = /* @__PURE__ */ new Map() ?? null;
1396
- let parentQueue = [];
1397
- let loaded = false;
1398
- let loading = null;
1399
- let active = 0;
1400
- let waiting = [];
1401
- let listeners = [];
1402
- let pendingSaves = 0;
1403
- let orch = host.orchestration ?? null;
1404
- let maxConcurrent = () => {
1405
- {
1406
- let h = ((__v) => __v == null ? "null" : typeof __v)(host.maxConcurrent) === "function" ? host.maxConcurrent() ?? null : host.maxConcurrent;
1407
- if (((__v) => __v == null ? "null" : typeof __v)(h) === "number" && h > 0) {
1408
- return h;
1409
- }
1410
- let o = orch != null ? orch.maxConcurrent ?? null : null;
1411
- return ((__v) => __v == null ? "null" : typeof __v)(o) === "number" && o > 0 ? o : 4;
1412
- }
1413
- };
1414
- let now = () => {
1415
- {
1416
- return ((__v) => __v == null ? "null" : typeof __v)(host.now) === "function" ? host.now() ?? null : Date.now() ?? null;
1417
- }
1418
- };
1419
- let changed = () => {
1420
- {
1421
- if (((__v) => __v == null ? "null" : typeof __v)(host.onChange) === "function") {
1422
- host.onChange() ?? null;
1423
- }
1424
- for (const l of listeners.slice() ?? null) {
1425
- l() ?? null;
1426
- }
1427
- }
1428
- };
1429
- let emit = (e) => {
1430
- {
1431
- if (((__v) => __v == null ? "null" : typeof __v)(host.onEvent) === "function") {
1432
- host.onEvent(e) ?? null;
1433
- }
1434
- }
1435
- };
1436
- let sessionEvent = (s) => {
1437
- {
1438
- emit({ type: "session", sessionId: s.id, status: s.status, profile: s.profile, description: s.description }) ?? null;
1439
- }
1440
- };
1441
- let persist = (s) => {
1442
- {
1443
- changed() ?? null;
1444
- if (host.store == null || ((__v) => __v == null ? "null" : typeof __v)(host.store) !== "object") {
1445
- return;
1446
- }
1447
- pendingSaves = pendingSaves + 1;
1448
- let save = async () => {
1449
- {
1450
- try {
1451
- {
1452
- await (host.store.save(s) ?? null);
1453
- }
1454
- } catch (e) {
1455
- {
1456
- }
1457
- }
1458
- pendingSaves = pendingSaves - 1;
1459
- }
1460
- };
1461
- save() ?? null;
1462
- }
1463
- };
1464
- let profileById = (id) => {
1465
- {
1466
- let found = (host.profiles() ?? null).filter((p) => {
1467
- {
1468
- return p.id === id;
1469
- }
1470
- }) ?? null;
1471
- return found.length > 0 ? found[0] ?? null : null;
1472
- }
1473
- };
1474
- let report = (fromId, text, question) => {
1475
- {
1476
- let s = sessions.get(fromId) ?? null ?? null;
1477
- let who = "agent " + fromId + (s != null ? " (" + s.profile + ")" : "");
1478
- let asks = question === true;
1479
- parentQueue.push(asks ? "QUESTION from " + who + " \u2014 it needs your answer (send_message " + fromId + "):\n" + text : "Report from " + who + ":\n" + text) ?? null;
1480
- emit({ type: "report", sessionId: fromId, message: text, question: asks }) ?? null;
1481
- changed() ?? null;
1482
- }
1483
- };
1484
- let run = async (session2, profile, prompt, forceReadOnly, parentSignal, fresh) => {
1485
- {
1486
- let control = ((__v) => __v == null ? "null" : typeof __v)(host.createSignal) === "function" ? host.createSignal() ?? null : plainStopControl() ?? null;
1487
- controls.set(session2.id, control) ?? null;
1488
- if (parentSignal != null) {
1489
- if (parentSignal.aborted === true) {
1490
- control.stop() ?? null;
1491
- } else if (((__v) => __v == null ? "null" : typeof __v)(parentSignal.addEventListener) === "function") {
1492
- parentSignal.addEventListener("abort", () => {
1493
- {
1494
- control.stop() ?? null;
1495
- }
1496
- }) ?? null;
1497
- }
1498
- }
1499
- let ctx = { session: session2, profile, readOnly: forceReadOnly || profile.readOnly === true, signal: control.signal };
1500
- let tools = (host.childTools(ctx) ?? null).concat([REPORT_SPEC]) ?? null;
1501
- let childModel = ((__v) => __v == null ? "null" : typeof __v)(host.childModel) === "function" ? host.childModel(ctx) ?? null : null;
1502
- if (((__v) => __v == null ? "null" : typeof __v)(childModel) !== "function" && orch != null) {
1503
- childModel = orch.childModel(ctx.readOnly && (profile.model ?? null) == null ? "fast" : profile.model ?? null) ?? null;
1504
- }
1505
- let budget = ((__v) => __v == null ? "null" : typeof __v)(profile.maxRounds) === "number" && profile.maxRounds > 0 ? profile.maxRounds : ((__v) => __v == null ? "null" : typeof __v)(host.maxRounds) === "number" && host.maxRounds > 0 ? host.maxRounds : 30;
1506
- let ok = true;
1507
- let summary = "";
1508
- let rounds = 0;
1509
- let wasStopped = () => {
1510
- {
1511
- return control.signal.aborted === true || parentSignal != null && parentSignal.aborted === true;
1512
- }
1513
- };
1514
- try {
1515
- {
1516
- let messages = fresh ? [{ role: "system", content: await (host.childSystemPrompt(ctx) ?? null) }, { role: "user", content: prompt }] : session2.transcript.concat([{ role: "user", content: "Message from the main agent:\n" + prompt }]) ?? null;
1517
- let outcome = await (runAgentLoop({ messages, tools, callModel: ((__v) => __v == null ? "null" : typeof __v)(childModel) === "function" ? childModel : host.callModel, signal: control.signal, stopped: () => {
1518
- {
1519
- return parentSignal != null && parentSignal.aborted === true;
1520
- }
1521
- }, maxRounds: budget, drainNotifications: () => {
1522
- {
1523
- return (session2.inbox.splice(0, session2.inbox.length) ?? null).map((t) => {
1524
- {
1525
- return "Message from the main agent:\n" + t;
1526
- }
1527
- }) ?? null;
1528
- }
1529
- }, execTool: async (call) => {
1530
- {
1531
- if (call.name === REPORT_TOOL) {
1532
- let args = {};
1533
- try {
1534
- {
1535
- args = JSON.parse(call.argsText === "" ? "{}" : call.argsText) ?? null;
1536
- }
1537
- } catch (e) {
1538
- {
1539
- args = {};
1540
- }
1541
- }
1542
- report(session2.id, String(args.message ?? "") ?? null, args.question === true) ?? null;
1543
- return { id: call.id, name: call.name, argsText: call.argsText, ok: true, summary: "reported", content: JSON.stringify({ ok: true }) ?? null };
1544
- }
1545
- return await (host.execChildTool(call, ctx) ?? null);
1546
- }
1547
- }, requireAction: fresh && !ctx.readOnly, hooks: { onToolStart: (c) => {
1548
- {
1549
- emit({ type: "tool-start", sessionId: session2.id, name: c.name }) ?? null;
1550
- }
1551
- }, onToolEnd: (r) => {
1552
- {
1553
- emit({ type: "tool-end", sessionId: session2.id, name: r.name, ok: r.ok, summary: r.summary }) ?? null;
1554
- }
1555
- }, onTextDelta: (d) => {
1556
- {
1557
- emit({ type: "text", sessionId: session2.id, delta: d }) ?? null;
1558
- }
1559
- }, onNudge: (m) => {
1560
- {
1561
- emit({ type: "nudge", sessionId: session2.id, message: m }) ?? null;
1562
- }
1563
- } } }) ?? null);
1564
- session2.transcript = outcome.messages;
1565
- rounds = outcome.rounds;
1566
- let said = outcome.text.trim() ?? null;
1567
- summary = said !== "" ? said : outcome.stopped ? "(stopped)" : "(finished without a summary)";
1568
- ok = !outcome.stopped;
1569
- }
1570
- } catch (err) {
1571
- {
1572
- ok = false;
1573
- summary = wasStopped() ?? null ? "(stopped)" : "(agent error: " + (errorMessage2(err) ?? null) + ")";
1574
- }
1575
- }
1576
- controls.delete(session2.id) ?? null;
1577
- session2.rounds = session2.rounds + rounds;
1578
- if (session2.status === "running") {
1579
- session2.status = ok ? "done" : wasStopped() ?? null ? "stopped" : "error";
1580
- session2.summary = summary;
1581
- session2.endedAt = now() ?? null;
1582
- } else {
1583
- session2.summary = summary;
1584
- }
1585
- if (session2.background && session2.status !== "stopped") {
1586
- parentQueue.push("Agent " + session2.id + " (" + session2.profile + ") " + (ok ? "finished" : "failed") + ":\n" + summary) ?? null;
1587
- }
1588
- sessionEvent(session2) ?? null;
1589
- persist(session2) ?? null;
1590
- return { ok, summary, rounds };
1591
- }
1592
- };
1593
- let takeNext = () => {
1594
- {
1595
- while (waiting.length > 0) {
1596
- let next = waiting.shift() ?? null;
1597
- if (next.session.status === "queued") {
1598
- next.session.status = "running";
1599
- sessionEvent(next.session) ?? null;
1600
- changed() ?? null;
1601
- return next;
1602
- }
1603
- }
1604
- return null;
1605
- }
1606
- };
1607
- let runSlot = (first) => {
1608
- {
1609
- ((f) => Promise.resolve().then(() => f()))(async () => {
1610
- {
1611
- let job = first;
1612
- while (job != null) {
1613
- try {
1614
- {
1615
- if (job.session.status !== "stopped") {
1616
- await (job.go() ?? null);
1617
- }
1618
- }
1619
- } catch (e) {
1620
- {
1621
- }
1622
- }
1623
- job = active <= (maxConcurrent() ?? null) ? takeNext() ?? null : null;
1624
- if (job == null) {
1625
- active = Math.max(0, active - 1) ?? null;
1626
- if (waiting.length > 0 && active < (maxConcurrent() ?? null)) {
1627
- active = active + 1;
1628
- job = takeNext() ?? null;
1629
- if (job == null) {
1630
- active = Math.max(0, active - 1) ?? null;
1631
- }
1632
- }
1633
- }
1634
- }
1635
- }
1636
- }) ?? null;
1637
- }
1638
- };
1639
- let startBackground = (session2, go) => {
1640
- {
1641
- while (waiting.length > 0 && active < (maxConcurrent() ?? null)) {
1642
- let next = takeNext() ?? null;
1643
- if (next == null) {
1644
- break;
1645
- }
1646
- active = active + 1;
1647
- runSlot(next) ?? null;
1648
- }
1649
- if (active < (maxConcurrent() ?? null)) {
1650
- active = active + 1;
1651
- runSlot({ session: session2, go }) ?? null;
1652
- return;
1653
- }
1654
- session2.status = "queued";
1655
- sessionEvent(session2) ?? null;
1656
- changed() ?? null;
1657
- waiting.push({ session: session2, go }) ?? null;
1658
- }
1659
- };
1660
- let stop = (id) => {
1661
- {
1662
- let s = sessions.get(id) ?? null ?? null;
1663
- if (s == null || s.status !== "running" && s.status !== "queued") {
1664
- return false;
1665
- }
1666
- let control = controls.get(id) ?? null ?? null;
1667
- if (control != null) {
1668
- control.stop() ?? null;
1669
- }
1670
- s.status = "stopped";
1671
- s.endedAt = now() ?? null;
1672
- persist(s) ?? null;
1673
- return true;
1674
- }
1675
- };
1676
- let load = async () => {
1677
- {
1678
- if (loaded) {
1679
- return;
1680
- }
1681
- loaded = true;
1682
- if (host.store != null && ((__v) => __v == null ? "null" : typeof __v)(host.store) === "object") {
1683
- let saved = await (host.store.load() ?? null);
1684
- for (const s of Array.isArray(saved) ?? null ? saved : []) {
1685
- if (s.status === "running" || s.status === "queued") {
1686
- s.status = "stopped";
1687
- if (((__v) => __v == null ? "null" : typeof __v)(s.endedAt) !== "number") {
1688
- s.endedAt = now() ?? null;
1689
- }
1690
- }
1691
- sessions.set(s.id, s) ?? null;
1692
- }
1693
- }
1694
- changed() ?? null;
1695
- }
1696
- };
1697
- let get = (id) => {
1698
- {
1699
- return sessions.get(id) ?? null ?? null;
1700
- }
1701
- };
1702
- return { load, flush: async () => {
1703
- {
1704
- while (pendingSaves > 0) {
1705
- await (delay2(WAIT_STEP_MS) ?? null);
1706
- }
1707
- }
1708
- }, subscribe: (l) => {
1709
- {
1710
- listeners.push(l) ?? null;
1711
- return () => {
1712
- {
1713
- let i = listeners.indexOf(l) ?? null;
1714
- if (i >= 0) {
1715
- listeners.splice(i, 1) ?? null;
1716
- }
1717
- }
1718
- };
1719
- }
1720
- }, list: () => {
1721
- {
1722
- return (allSessions(sessions) ?? null).sort((a, b) => {
1723
- {
1724
- return a.startedAt - b.startedAt;
1725
- }
1726
- }) ?? null;
1727
- }
1728
- }, get, wait: async (id, opts) => {
1729
- {
1730
- let o = opts ?? {};
1731
- let deadline = (now() ?? null) + (((__v) => __v == null ? "null" : typeof __v)(o.timeoutMs) === "number" ? o.timeoutMs : 12e4);
1732
- let signal = o.signal ?? null;
1733
- while ((isBusy(get(id) ?? null) ?? null) && (now() ?? null) < deadline && !(signal != null && signal.aborted === true)) {
1734
- await (delay2(Math.min(WAIT_STEP_MS, Math.max(1, deadline - (now() ?? null)) ?? null) ?? null) ?? null);
1735
- }
1736
- return get(id) ?? null;
1737
- }
1738
- }, dismissFinished: (id) => {
1739
- {
1740
- let prefix = "Agent " + id + " (";
1741
- let i = parentQueue.length - 1;
1742
- while (i >= 0) {
1743
- if ((parentQueue[i] ?? null).startsWith(prefix) ?? null) {
1744
- parentQueue.splice(i, 1) ?? null;
1745
- }
1746
- i = i - 1;
1747
- }
1748
- }
1749
- }, drainParentNotifications: () => {
1750
- {
1751
- return parentQueue.splice(0, parentQueue.length) ?? null;
1752
- }
1753
- }, hasPendingNotifications: () => {
1754
- {
1755
- return parentQueue.length > 0;
1756
- }
1757
- }, spawn: async (req) => {
1758
- {
1759
- let profile = profileById(req.profileId) ?? null;
1760
- if (profile == null) {
1761
- let ids = ((host.profiles() ?? null).map((p) => {
1762
- {
1763
- return p.id;
1764
- }
1765
- }) ?? null).join(", ") ?? null;
1766
- return { kind: "refused", reason: 'No agent type "' + req.profileId + '". Available: ' + ids + "." };
1767
- }
1768
- let prompt = ((__v) => __v == null ? "null" : typeof __v)(req.prompt) === "string" ? req.prompt.trim() ?? null : "";
1769
- if (prompt === "") {
1770
- return { kind: "refused", reason: "A task needs a self-contained prompt \u2014 the agent cannot see this conversation." };
1771
- }
1772
- let background = ((__v) => __v == null ? "null" : typeof __v)(req.background) === "boolean" ? req.background : profile.background === true;
1773
- let id = ((__v) => __v == null ? "null" : typeof __v)(host.newId) === "function" ? host.newId() ?? null : "agent-" + ((now() ?? null).toString(36) ?? null) + "-" + (((Math.random() ?? null).toString(36) ?? null).slice(2, 7) ?? null);
1774
- let session2 = { id, profile: profile.id, description: ((__v) => __v == null ? "null" : typeof __v)(req.description) === "string" && req.description !== "" ? req.description : prompt.slice(0, 80) ?? null, status: "running", background, transcript: [], inbox: [], startedAt: now() ?? null, rounds: 0, readOnly: req.readOnly === true || profile.readOnly === true };
1775
- if (((__v) => __v == null ? "null" : typeof __v)(req.parentCallId) === "string" && req.parentCallId !== "") {
1776
- session2.parentCallId = req.parentCallId;
1777
- }
1778
- sessions.set(session2.id, session2) ?? null;
1779
- changed() ?? null;
1780
- sessionEvent(session2) ?? null;
1781
- let forceReadOnly = req.readOnly === true;
1782
- let parentSignal = req.signal ?? null;
1783
- if (background) {
1784
- startBackground(session2, async () => {
1785
- {
1786
- return await (run(session2, profile, prompt, forceReadOnly, parentSignal, true) ?? null);
1787
- }
1788
- }) ?? null;
1789
- return { kind: "started", id: session2.id };
1790
- }
1791
- let out = await (run(session2, profile, prompt, forceReadOnly, parentSignal, true) ?? null);
1792
- return { kind: "done", id: session2.id, ok: out.ok, summary: out.summary, rounds: out.rounds };
1793
- }
1794
- }, message: async (id, text, opts) => {
1795
- {
1796
- await (load() ?? null);
1797
- let o = opts ?? {};
1798
- let session2 = sessions.get(id) ?? null ?? null;
1799
- if (session2 == null) {
1800
- return { kind: "unknown", id };
1801
- }
1802
- if (session2.status === "running" || session2.status === "queued") {
1803
- session2.inbox.push(text) ?? null;
1804
- persist(session2) ?? null;
1805
- return { kind: "queued", id };
1806
- }
1807
- let profile = profileById(session2.profile) ?? null;
1808
- if (profile == null) {
1809
- return { kind: "unknown", id };
1810
- }
1811
- let wait = o.wait === true;
1812
- let parentSignal = o.signal ?? null;
1813
- session2.status = "running";
1814
- session2.endedAt = null;
1815
- session2.background = !wait;
1816
- changed() ?? null;
1817
- if (!wait) {
1818
- startBackground(session2, async () => {
1819
- {
1820
- return await (run(session2, profile, text, false, parentSignal, false) ?? null);
1821
- }
1822
- }) ?? null;
1823
- return { kind: "resumed", id };
1824
- }
1825
- let out = await (run(session2, profile, text, false, parentSignal, false) ?? null);
1826
- return { kind: "done", id, ok: out.ok, summary: out.summary };
1827
- }
1828
- }, stop, stopAll: () => {
1829
- {
1830
- for (const s of allSessions(sessions) ?? null) {
1831
- stop(s.id) ?? null;
1832
- }
1833
- parentQueue.splice(0, parentQueue.length) ?? null;
1834
- }
1835
- }, report };
1836
- }
1837
- }
1838
-
1839
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/types.js
1840
- init_define_POPCRAFT_COMPONENT_IDS();
1841
- function forceTool(name) {
1842
- {
1843
- return { type: "function", function: { name } };
1844
- }
1845
- }
1846
-
1847
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/store.js
1848
- init_define_POPCRAFT_COMPONENT_IDS();
1849
- async function loadAll(kv, prefix) {
1850
- {
1851
- let out = [];
1852
- for (const k of await (kv.keys(prefix) ?? null)) {
1853
- let v = await (kv.get(k) ?? null);
1854
- if (v != null) {
1855
- out.push(v) ?? null;
1856
- }
1857
- }
1858
- return out;
1859
- }
1860
- }
1861
- function sessionStore(kv, scope) {
1862
- {
1863
- let prefix = (scope ?? "default") + ":session:";
1864
- return { load: async () => {
1865
- {
1866
- return await (loadAll(kv, prefix) ?? null);
1867
- }
1868
- }, save: async (s) => {
1869
- {
1870
- await (kv.set(prefix + s.id, s) ?? null);
1871
- }
1872
- }, remove: async (id) => {
1873
- {
1874
- await ((kv["delete"] ?? null)(prefix + id) ?? null);
1875
- }
1876
- } };
1877
- }
1878
- }
1879
- function runStore(kv, scope) {
1880
- {
1881
- let prefix = (scope ?? "default") + ":run:";
1882
- return { get: async (id) => {
1883
- {
1884
- return await (kv.get(prefix + id) ?? null);
1885
- }
1886
- }, save: async (run) => {
1887
- {
1888
- await (kv.set(prefix + run.id, run) ?? null);
1889
- }
1890
- }, list: async () => {
1891
- {
1892
- return await (loadAll(kv, prefix) ?? null);
1893
- }
1894
- }, remove: async (id) => {
1895
- {
1896
- await ((kv["delete"] ?? null)(prefix + id) ?? null);
1897
- }
1898
- } };
1899
- }
1900
- }
1901
-
1902
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/run.js
1903
- init_define_POPCRAFT_COMPONENT_IDS();
1904
- function errorMessage3(err) {
1905
- {
1906
- if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
1907
- return err.message;
1908
- }
1909
- return String(err) ?? null;
1910
- }
1911
- }
1912
- async function runPersistent(opts) {
1913
- {
1914
- let now = ((__v) => __v == null ? "null" : typeof __v)(opts.now) === "function" ? opts.now : () => {
1915
- {
1916
- return Date.now() ?? null;
1917
- }
1918
- };
1919
- let existing = await (opts.runs.get(opts.id) ?? null);
1920
- let createdAt = existing != null ? existing.createdAt : now() ?? null;
1921
- let record = (status, checkpoint) => {
1922
- {
1923
- let todos = opts.todos != null && ((__v) => __v == null ? "null" : typeof __v)(opts.todos) === "object" ? opts.todos.get() ?? null : existing != null ? existing.todos ?? null : null;
1924
- let meta = opts.meta ?? (existing != null ? existing.meta ?? null : null);
1925
- return { id: opts.id, createdAt, updatedAt: now() ?? null, meta, todos, status, checkpoint };
1926
- }
1927
- };
1928
- let first = existing != null ? existing.checkpoint : { messages: opts.messages, round: 0, acted: false, nudgesLeft: 0, done: false };
1929
- await (opts.runs.save(record("running", first) ?? null) ?? null);
1930
- let mark = async (status, error) => {
1931
- {
1932
- let saved = await (opts.runs.get(opts.id) ?? null);
1933
- if (saved != null) {
1934
- let next = { ...saved, status, updatedAt: now() ?? null };
1935
- if (((__v) => __v == null ? "null" : typeof __v)(error) === "string") {
1936
- next.error = error;
1937
- }
1938
- await (opts.runs.save(next) ?? null);
1939
- }
1940
- }
1941
- };
1942
- let outcome = null;
1943
- try {
1944
- {
1945
- outcome = await (runAgentLoop({ ...opts, checkpoint: async (state) => {
1946
- {
1947
- await (opts.runs.save(record(state.done ? "done" : "running", state) ?? null) ?? null);
1948
- if (((__v) => __v == null ? "null" : typeof __v)(opts.checkpoint) === "function") {
1949
- await (opts.checkpoint(state) ?? null);
1950
- }
1951
- }
1952
- } }) ?? null);
1953
- }
1954
- } catch (err) {
1955
- {
1956
- await (mark("error", errorMessage3(err) ?? null) ?? null);
1957
- throw err;
1958
- }
1959
- }
1960
- if (outcome.stopped) {
1961
- await (mark("stopped", null) ?? null);
1962
- }
1963
- return outcome;
1964
- }
1965
- }
1966
- async function interruptedRuns(runs2, activeIds) {
1967
- {
1968
- let active = new Set(activeIds ?? []) ?? null;
1969
- return (await (runs2.list() ?? null)).filter((r) => {
1970
- {
1971
- return r.status === "running" && !(active.has(r.id) ?? null);
1972
- }
1973
- }) ?? null;
1974
- }
1975
- }
1976
- async function resumeRun(id, runs2, options) {
1977
- {
1978
- let saved = await (runs2.get(id) ?? null);
1979
- if (saved == null) {
1980
- throw { message: 'No saved run "' + id + '".', code: "not_found" };
1981
- }
1982
- let cp = saved.checkpoint;
1983
- return await (runPersistent({ ...options, id, runs: runs2, messages: cp.messages.concat([{ role: "user", content: "The session was interrupted and has resumed. Check the state of your work, then carry on where you left off." }]) ?? null, resumeState: { round: cp.round, acted: cp.acted, nudgesLeft: cp.nudgesLeft }, meta: options.meta ?? saved.meta ?? null }) ?? null);
1984
- }
1985
- }
1986
-
1987
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/router.js
1988
- init_define_POPCRAFT_COMPONENT_IDS();
1989
- var ROUTER_PROMPT = 'You pick the next tool for a coding agent. Answer with JSON only: {"tool": "<one of the tool names, or none>", "p": <your confidence 0..1>}. Pick "none" when the agent should answer in words or the choice is unclear.';
1990
- function createRouter(opts) {
1991
- {
1992
- let call = roleModel(opts.callModel, opts.spec) ?? null;
1993
- let threshold = ((__v) => __v == null ? "null" : typeof __v)(opts.threshold) === "number" ? opts.threshold : 0.8;
1994
- let maxChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxChars) === "number" ? opts.maxChars : 12e3;
1995
- return async (req) => {
1996
- {
1997
- if (!(Array.isArray(req.tools) ?? null) || req.tools.length === 0) {
1998
- return null;
1999
- }
2000
- let names = req.tools.map((t2) => {
2001
- {
2002
- return (t2["function"] ?? null).name;
2003
- }
2004
- }) ?? null;
2005
- let turn = null;
2006
- try {
2007
- {
2008
- turn = await (call([{ role: "system", content: ROUTER_PROMPT }, { role: "user", content: "Tools: " + (names.join(", ") ?? null) + "\n\nRecent session:\n" + (renderTranscript(req.messages, maxChars) ?? null) }], [], {}, null, null) ?? null);
2009
- }
2010
- } catch (err) {
2011
- {
2012
- return null;
2013
- }
2014
- }
2015
- let tool = null;
2016
- let p = 0;
2017
- let t = (turn.text ?? "").trim() ?? null;
2018
- let start = t.indexOf("{") ?? null;
2019
- let end = t.lastIndexOf("}") ?? null;
2020
- if (start >= 0 && end > start) {
2021
- try {
2022
- {
2023
- let j = JSON.parse(t.slice(start, end + 1) ?? null) ?? null;
2024
- if (((__v) => __v == null ? "null" : typeof __v)(j.tool) === "string" && (names.includes(j.tool) ?? null)) {
2025
- tool = j.tool;
2026
- }
2027
- if (((__v) => __v == null ? "null" : typeof __v)(j.p) === "number") {
2028
- p = j.p;
2029
- }
2030
- }
2031
- } catch (e) {
2032
- {
2033
- }
2034
- }
2035
- }
2036
- let sharp = tool != null && p >= threshold;
2037
- if (((__v) => __v == null ? "null" : typeof __v)(opts.onEvent) === "function") {
2038
- opts.onEvent({ type: "router:pick", round: req.round, model: opts.spec.model, tool, p, sharp }) ?? null;
2039
- }
2040
- return sharp ? forceTool(tool) ?? null : null;
2041
- }
2042
- };
2043
- }
2044
- }
2045
-
2046
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/auto.js
2047
- init_define_POPCRAFT_COMPONENT_IDS();
2048
- function normalizeMode(mode) {
2049
- {
2050
- if (mode === "off" || mode === false) {
2051
- return "off";
2052
- }
2053
- if (mode === "ultra") {
2054
- return "ultra";
2055
- }
2056
- return "auto";
2057
- }
2058
- }
2059
- function createOrchestration(callModel, opts) {
2060
- {
2061
- let o = opts ?? {};
2062
- let mode = normalizeMode(o.mode ?? "auto") ?? null;
2063
- let skill = o.skill != null && ((__v) => __v == null ? "null" : typeof __v)(o.skill) === "object" ? o.skill : null;
2064
- let catalog = o.catalog ?? null;
2065
- let emit = (e) => {
2066
- {
2067
- if (((__v) => __v == null ? "null" : typeof __v)(o.onEvent) === "function") {
2068
- o.onEvent(e) ?? null;
2069
- }
2070
- }
2071
- };
2072
- let hostLimit = ((__v) => __v == null ? "null" : typeof __v)(o.maxConcurrent) === "number" ? o.maxConcurrent : null;
2073
- if (mode === "off" || skill == null) {
2074
- return { mode, skill: null, roles: {}, maxConcurrent: hostLimit, guidance: "", callModel, childModel: (m) => {
2075
- {
2076
- return null;
2077
- }
2078
- }, advise: null, route: null };
2079
- }
2080
- emit({ type: "skill", skill: skill.name }) ?? null;
2081
- let roles = mergeRoles(skill.roles, o.roles ?? null) ?? null;
2082
- if (((__v) => __v == null ? "null" : typeof __v)(o.effort) === "string" && (roles.lead ?? null) != null) {
2083
- roles = mergeRoles(roles, { lead: { effort: o.effort } }) ?? null;
2084
- }
2085
- let specs = {};
2086
- let calls = {};
2087
- let callFor = (role) => {
2088
- {
2089
- if ((calls[role] ?? null ?? null) == null) {
2090
- let spec = resolveRole(role, roles, catalog) ?? null;
2091
- if (spec == null) {
2092
- return null;
2093
- }
2094
- specs[role] = spec;
2095
- calls[role] = roleModel(callModel, spec) ?? null;
2096
- emit({ type: "role:model", role, model: spec.model }) ?? null;
2097
- }
2098
- return calls[role] ?? null;
2099
- }
2100
- };
2101
- let lead = callFor("lead") ?? null ?? callModel;
2102
- let advise = null;
2103
- let route = null;
2104
- if ((callFor("advisor") ?? null) != null) {
2105
- let triggers = null;
2106
- if (Array.isArray(skill.advisorTriggers) ?? null) {
2107
- triggers = { plan: skill.advisorTriggers.includes("plan") ?? null, done: skill.advisorTriggers.includes("done") ?? null, error: skill.advisorTriggers.includes("error") ?? null, ask: skill.advisorTriggers.includes("ask") ?? null };
2108
- }
2109
- advise = (createAdvisor({ callModel, spec: specs.advisor, triggers, maxCalls: skill.advisorMaxCalls ?? null, maxChars: null, guidance: skill.guidance, onEvent: (e) => {
2110
- {
2111
- emit(e) ?? null;
2112
- }
2113
- } }) ?? null).advise;
2114
- }
2115
- if (((__v) => __v == null ? "null" : typeof __v)(skill.routerThreshold) === "number" && (callFor("router") ?? null) != null) {
2116
- route = createRouter({ callModel, spec: specs.router, threshold: skill.routerThreshold, onEvent: (e) => {
2117
- {
2118
- emit(e) ?? null;
2119
- }
2120
- } }) ?? null;
2121
- }
2122
- return { mode, skill, roles, maxConcurrent: hostLimit ?? skill.maxConcurrent ?? null, guidance: skill.guidance, callModel: lead, childModel: (profileModel) => {
2123
- {
2124
- let role = roleOfProfileModel(profileModel) ?? null;
2125
- if (role == null) {
2126
- return roleModel(callModel, { model: profileModel, effort: (specs.lead ?? {}).effort ?? null, fallback: null }) ?? null;
2127
- }
2128
- return callFor(role) ?? null ?? lead;
2129
- }
2130
- }, advise, route };
2131
- }
2132
- }
2133
-
2134
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/orchestration-skill.js
2135
- init_define_POPCRAFT_COMPONENT_IDS();
2136
- function splitList(v) {
2137
- {
2138
- if ((v ?? null) == null) {
2139
- return [];
2140
- }
2141
- return ((v.split(",") ?? null).map((s) => {
2142
- {
2143
- return s.trim() ?? null;
2144
- }
2145
- }) ?? null).filter((s) => {
2146
- {
2147
- return s !== "";
2148
- }
2149
- }) ?? null;
2150
- }
2151
- }
2152
- function unquote(v) {
2153
- {
2154
- let t = v.trim() ?? null;
2155
- if (t.length >= 2 && ((t.startsWith('"') ?? null) && (t.endsWith('"') ?? null) || (t.startsWith("'") ?? null) && (t.endsWith("'") ?? null))) {
2156
- return t.slice(1, t.length - 1) ?? null;
2157
- }
2158
- return t;
2159
- }
2160
- }
2161
- function num(v) {
2162
- {
2163
- if ((v ?? null) == null || v === "") {
2164
- return null;
2165
- }
2166
- let n = Number(v) ?? null;
2167
- return Number.isFinite(n) ?? null ? n : null;
2168
- }
2169
- }
2170
- function parseOrchestrationSkill(text) {
2171
- {
2172
- let src = ((__v) => __v == null ? "null" : typeof __v)(text) === "string" ? (text.split("\r\n") ?? null).join("\n") ?? null : "";
2173
- if (!(src.startsWith("---\n") ?? null)) {
2174
- return null;
2175
- }
2176
- let end = src.indexOf("\n---", 4) ?? null;
2177
- if (end < 0) {
2178
- return null;
2179
- }
2180
- let head = src.slice(4, end) ?? null;
2181
- let body = src.slice(end + 4) ?? null;
2182
- if (body.startsWith("\n") ?? null) {
2183
- body = body.slice(1) ?? null;
2184
- }
2185
- let f = {};
2186
- for (const line of head.split("\n") ?? null) {
2187
- let i = line.indexOf(":") ?? null;
2188
- if (i <= 0 || ((line.trim() ?? null).startsWith("#") ?? null)) {
2189
- continue;
2190
- }
2191
- f[((line.slice(0, i) ?? null).trim() ?? null).toLowerCase() ?? null] = unquote(line.slice(i + 1) ?? null) ?? null;
2192
- }
2193
- if ((f["kind"] ?? null ?? "") !== "orchestration") {
2194
- return null;
2195
- }
2196
- let roles = {};
2197
- for (const r of MODEL_ROLES) {
2198
- let model = f[r] ?? null ?? "";
2199
- if (model === "") {
2200
- continue;
2201
- }
2202
- let spec = { model, effort: (f[r + "_effort"] ?? null ?? "") !== "" ? f[r + "_effort"] ?? null : null, fallback: splitList(f[r + "_fallback"] ?? null ?? null) ?? null };
2203
- roles[r] = spec;
2204
- }
2205
- let triggers = splitList(f["advisor_triggers"] ?? null ?? null) ?? null;
2206
- return { name: (f["name"] ?? null ?? "") !== "" ? f["name"] ?? null : "orchestration", description: f["description"] ?? null ?? "", modes: (splitList(f["modes"] ?? null ?? null) ?? null).map((m) => {
2207
- {
2208
- return m.toLowerCase() ?? null;
2209
- }
2210
- }) ?? null, roles, advisorTriggers: triggers.length > 0 ? triggers : null, advisorMaxCalls: num(f["advisor_max_calls"] ?? null ?? null) ?? null, routerThreshold: num(f["router_threshold"] ?? null ?? null) ?? null, maxConcurrent: num(f["max_concurrent"] ?? null ?? null) ?? null, guidance: body.trim() ?? null };
2211
- }
2212
- }
2213
- function skillsForMode(skills, mode) {
2214
- {
2215
- if (mode === "off" || !(Array.isArray(skills) ?? null)) {
2216
- return [];
2217
- }
2218
- return skills.filter((s) => {
2219
- {
2220
- return s != null && ((__v) => __v == null ? "null" : typeof __v)(s) === "object" && (s.modes.length === 0 || (s.modes.includes(mode) ?? null));
2221
- }
2222
- }) ?? null;
2223
- }
2224
- }
2225
- async function chooseOrchestrationSkill(callModel, skills, task, mode) {
2226
- {
2227
- let candidates = skillsForMode(skills, mode) ?? null;
2228
- if (candidates.length === 0) {
2229
- return null;
2230
- }
2231
- if (candidates.length === 1) {
2232
- return candidates[0] ?? null;
2233
- }
2234
- let list = (candidates.map((s) => {
2235
- {
2236
- return "- " + s.name + ": " + s.description;
2237
- }
2238
- }) ?? null).join("\n") ?? null;
2239
- let messages = [{ role: "system", content: "Pick the orchestration skill that fits the task. Reply with its name only, or `none`." }, { role: "user", content: "Skills:\n" + list + "\n\nTask:\n" + task }];
2240
- let turn = null;
2241
- try {
2242
- {
2243
- turn = await (callModel(messages, [], {}, null, null) ?? null);
2244
- }
2245
- } catch (err) {
2246
- {
2247
- return null;
2248
- }
2249
- }
2250
- let said = ((String(turn.text ?? "") ?? null).trim() ?? null).toLowerCase() ?? null;
2251
- for (const ch of ["`", "'", '"', "*", "."]) {
2252
- said = (said.split(ch) ?? null).join("") ?? null;
2253
- }
2254
- for (const s of candidates) {
2255
- if (said === (s.name.toLowerCase() ?? null) || (said.includes(s.name.toLowerCase() ?? null) ?? null)) {
2256
- return s;
2257
- }
2258
- }
2259
- return null;
2260
- }
2261
- }
2262
-
2263
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/indexeddb.js
2264
- init_define_POPCRAFT_COMPONENT_IDS();
2265
- function indexedDbStore(name = "hypery-agents") {
2266
- let db = null;
2267
- const open = () => db ?? (db = new Promise((res, rej) => {
2268
- const req = indexedDB.open(name, 1);
2269
- req.onupgradeneeded = () => {
2270
- req.result.createObjectStore("kv");
2271
- };
2272
- req.onsuccess = () => res(req.result);
2273
- req.onerror = () => rej(req.error);
2274
- }));
2275
- const tx = async (mode, fn) => {
2276
- const store = (await open()).transaction("kv", mode).objectStore("kv");
2277
- return new Promise((res, rej) => {
2278
- const r = fn(store);
2279
- r.onsuccess = () => res(r.result);
2280
- r.onerror = () => rej(r.error);
2281
- });
2282
- };
2283
- return {
2284
- // A missing key reads as null, as the core's stores do.
2285
- get: async (k) => await tx("readonly", (s) => s.get(k)) ?? null,
2286
- set: async (k, v) => {
2287
- await tx("readwrite", (s) => s.put(structuredClone(v), k));
2288
- },
2289
- delete: async (k) => {
2290
- await tx("readwrite", (s) => s.delete(k));
2291
- },
2292
- keys: async (prefix) => (await tx("readonly", (s) => s.getAllKeys())).map(String).filter((k) => k.startsWith(prefix))
2293
- };
2294
- }
2295
-
2296
- // node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/index.js
2297
- function createHyperyModel2(opts) {
2298
- return createHyperyModel({ ...opts, fetch: opts.fetch ?? ((url, init) => fetch(url, init)) });
2299
- }
2300
- function createAgentRuntime2(host) {
2301
- return createAgentRuntime({
2302
- ...host,
2303
- createSignal: host.createSignal ?? (() => {
2304
- const controller = new AbortController();
2305
- return { signal: controller.signal, stop: () => controller.abort() };
2306
- })
2307
- // The core types a child's signal as anything with `aborted`; here every one comes from `createSignal`, whose
2308
- // signals are AbortSignals — so the host's callbacks may rely on that.
2309
- });
2310
- }
2311
-
2312
- // lib/agent/stream-parse.ts
2313
- init_define_POPCRAFT_COMPONENT_IDS();
2314
-
2315
- // lib/agent/gateway.ts
2316
- var session = {
2317
- token: () => accessToken(),
2318
- team: () => activeHyperyTeamId(),
2319
- paymentSource: async () => (await paymentSourceHeaders())[HYPERY_PAYMENT_SOURCE_HEADER] === "credits" ? "credits" : null,
2320
- gatewayUrl: HYPERY_GATEWAY_URL
2321
- };
2322
- var agentModel2 = (model) => createHyperyModel2({
2323
- ...session,
2324
- model: () => {
2325
- const id = model();
2326
- if (!id) throw agentModelError("Pick a chat model for the agent first.", "no_model", 400);
2327
- return id;
2328
- }
2329
- });
2330
-
2331
- // lib/agent/turn-recovery.ts
2332
- init_define_POPCRAFT_COMPONENT_IDS();
2333
- var ACTION_NUDGES = 2;
2334
- var MAX_READ_ROUNDS = 4;
2335
- var READ_BUDGET_NOTE = "You have read enough to start. Make the change now with a tool that edits the document; read more only if a write fails.";
2336
- var ACTION_NUDGE = "Nothing has changed in the document yet. Make the change that was asked for now, with a tool that edits the document. If you truly cannot, say exactly what is blocking you.";
2337
- var QUESTION_START = /^(what|why|how|which|who|where|when|is|are|does|do|did|can you (explain|tell)|could you (explain|tell)|explain|describe|tell me|list|show me what)\b/i;
2338
- function wantsChange(text) {
2339
- const body = text.trim();
2340
- if (!body) return false;
2341
- return !(body.endsWith("?") && QUESTION_START.test(body));
2342
- }
2343
- function createActionGuard(opts) {
2344
- const maxReads = opts.maxReadRounds ?? MAX_READ_ROUNDS;
2345
- const maxNudges = opts.nudges ?? ACTION_NUDGES;
2346
- let readRounds = opts.initial?.readRounds ?? 0;
2347
- let nudges = opts.initial?.nudges ?? 0;
2348
- let acted = false;
2349
- let actedThisRound = false;
2350
- let ranThisRound = false;
2351
- let notes = [];
2352
- let choice = null;
2353
- let budgetSpent = readRounds >= maxReads;
2354
- return {
2355
- onRun(run, changed) {
2356
- ranThisRound = true;
2357
- if (run.ok && changed) {
2358
- acted = true;
2359
- actedThisRound = true;
2360
- }
2361
- },
2362
- onRoundEnd() {
2363
- if (!opts.enabled || acted || !ranThisRound) {
2364
- ranThisRound = false;
2365
- actedThisRound = false;
2366
- return;
2367
- }
2368
- if (!actedThisRound) readRounds++;
2369
- ranThisRound = false;
2370
- actedThisRound = false;
2371
- if (!budgetSpent && readRounds >= maxReads) {
2372
- budgetSpent = true;
2373
- notes.push(READ_BUDGET_NOTE);
2374
- choice = "required";
2375
- }
2376
- },
2377
- onNudge() {
2378
- nudges++;
2379
- if (opts.enabled && nudges >= maxNudges && opts.writeTool) choice = forceTool(opts.writeTool);
2380
- else if (opts.enabled) choice = "required";
2381
- return nudges;
2382
- },
2383
- drain() {
2384
- const out = notes;
2385
- notes = [];
2386
- return out;
2387
- },
2388
- toolChoice() {
2389
- if (acted) return null;
2390
- const c = choice;
2391
- choice = null;
2392
- return c;
2393
- },
2394
- get acted() {
2395
- return acted;
2396
- },
2397
- state: () => ({ readRounds, nudges, forced: budgetSpent })
2398
- };
2399
- }
2400
- function createToolLedger(initial = null) {
2401
- let done = { ...initial ?? {} };
2402
- return {
2403
- get: (id) => done[id],
2404
- record: (run) => {
2405
- done = { ...done, [run.id]: { id: run.id, name: run.name, argsText: run.argsText, ok: run.ok, summary: run.summary, content: run.content } };
2406
- },
2407
- entries: () => done,
2408
- clear: () => {
2409
- done = {};
2410
- }
2411
- };
2412
- }
2413
- async function runOnce(ledger, call, run) {
2414
- const seen = ledger.get(call.id);
2415
- if (seen) return { ...seen, acted: false, replayed: true };
2416
- const result = await run();
2417
- ledger.record(result);
2418
- return result;
2419
- }
2420
- function resumeTranscript(checkpoint, pending, ledger) {
2421
- if (!pending?.calls.length) return checkpoint;
2422
- const answered = new Set(checkpoint.filter((m) => m.role === "tool").map((m) => m.tool_call_id));
2423
- if (pending.calls.every((c) => answered.has(c.id))) return checkpoint;
2424
- const assistant = {
2425
- role: "assistant",
2426
- content: pending.text,
2427
- tool_calls: pending.calls.map((c) => ({ id: c.id, type: "function", function: { name: c.name, arguments: c.argsText } }))
2428
- };
2429
- const answers = pending.calls.map((c) => ledger?.[c.id]).filter((e) => !!e).map((e) => ({ role: "tool", tool_call_id: e.id, name: e.name, content: e.content }));
2430
- return [...checkpoint, assistant, ...answers];
2431
- }
2432
- var browserSignals = () => {
2433
- if (typeof document === "undefined" || typeof window === "undefined") return null;
2434
- return {
2435
- hidden: () => document.visibilityState === "hidden",
2436
- online: () => typeof navigator === "undefined" || navigator.onLine !== false,
2437
- subscribe: (fn) => {
2438
- document.addEventListener("visibilitychange", fn);
2439
- window.addEventListener("online", fn);
2440
- window.addEventListener("pageshow", fn);
2441
- return () => {
2442
- document.removeEventListener("visibilitychange", fn);
2443
- window.removeEventListener("online", fn);
2444
- window.removeEventListener("pageshow", fn);
2445
- };
2446
- }
2447
- };
2448
- };
2449
- function whenResumable(signals = browserSignals(), signal, offlineWaitMs = 0) {
2450
- if (!signals || signal?.aborted) return Promise.resolve();
2451
- const visible = () => !signals.hidden() ? Promise.resolve() : new Promise((resolve2) => {
2452
- const done = () => {
2453
- off();
2454
- signal?.removeEventListener("abort", done);
2455
- resolve2();
2456
- };
2457
- const off = signals.subscribe(() => {
2458
- if (!signals.hidden()) done();
2459
- });
2460
- signal?.addEventListener("abort", done);
2461
- });
2462
- return visible().then(() => {
2463
- if (!offlineWaitMs || signals.online() || signal?.aborted) return;
2464
- return new Promise((resolve2) => {
2465
- const done = () => {
2466
- clearTimeout(timer);
2467
- off();
2468
- signal?.removeEventListener("abort", done);
2469
- resolve2();
2470
- };
2471
- const timer = setTimeout(done, offlineWaitMs);
2472
- const off = signals.subscribe(() => {
2473
- if (signals.online()) done();
2474
- });
2475
- signal?.addEventListener("abort", done);
2476
- });
2477
- });
2478
- }
2479
- function isInterruption(err, hidden = false) {
2480
- if (hidden) return true;
2481
- const e = err ?? {};
2482
- if (e.code === "ai_timeout") return true;
2483
- if (typeof e.status === "number") return e.status >= 500 || e.status === 408;
2484
- const text = `${String(e.name ?? "")} ${String(e.code ?? "")} ${String(e.message ?? "")}`.toLowerCase();
2485
- return ["load failed", "failed to fetch", "network", "fetch failed", "econnreset", "socket", "stream", "stalled", "timed out", "timeout"].some((w) => text.includes(w));
2486
- }
2487
- function serialRuns(inner) {
2488
- const latest = /* @__PURE__ */ new Map();
2489
- let queue = Promise.resolve();
2490
- return {
2491
- peek: (id) => latest.get(id),
2492
- get: async (id) => latest.get(id) ?? inner.get(id),
2493
- save: (rec) => {
2494
- latest.set(rec.id, rec);
2495
- const write = queue.then(() => inner.save(rec));
2496
- queue = write.catch(() => {
2497
- });
2498
- return write;
2499
- },
2500
- list: async () => {
2501
- await queue;
2502
- return inner.list();
2503
- },
2504
- remove: (id) => {
2505
- latest.delete(id);
2506
- const write = queue.then(() => inner.remove(id));
2507
- queue = write.catch(() => {
2508
- });
2509
- return write;
2510
- }
2511
- };
2512
- }
2513
-
2514
- // lib/agent/tools/subagent-tools.ts
2515
- init_define_POPCRAFT_COMPONENT_IDS();
2516
-
2517
- // lib/agent/subagent.ts
2518
- init_define_POPCRAFT_COMPONENT_IDS();
2519
-
2520
- // lib/agent/orchestration.ts
2521
- init_define_POPCRAFT_COMPONENT_IDS();
2522
- var MODE_KEY = "popcraft-agent-orchestration";
2523
- function loadMode() {
2524
- try {
2525
- return normalizeMode(typeof localStorage === "undefined" ? null : localStorage.getItem(MODE_KEY));
2526
- } catch {
2527
- return "auto";
2528
- }
2529
- }
2530
- var useOrchestrationStore = create(() => ({ mode: loadMode() }));
2531
- var orchestrationMode = () => useOrchestrationStore.getState().mode;
2532
- var orchestrationSkillOf = (skill) => parseOrchestrationSkill(skill.instructions);
2533
- var orchestrationSkills = (skills = allSkills()) => skills.map(orchestrationSkillOf).filter((s) => s !== null);
2534
- var current = null;
2535
- var currentOrchestration = () => current;
2536
- async function orchestrateTurn(opts) {
2537
- const mode = opts.mode ?? orchestrationMode();
2538
- let skill = null;
2539
- if (mode !== "off") {
2540
- skill = await chooseOrchestrationSkill(opts.callModel, opts.skills ?? orchestrationSkills(), opts.task, mode).catch(() => null);
2541
- }
2542
- if (skill && opts.explicitModel && skill.roles?.lead) {
2543
- const { lead: _lead, ...roles } = skill.roles;
2544
- skill = { ...skill, roles };
2545
- }
2546
- current = createOrchestration(opts.callModel, { mode, skill, onEvent: opts.onEvent });
2547
- return current;
2548
- }
2549
- function endOrchestration(orch) {
2550
- if (current === orch) current = null;
2551
- }
2552
-
2553
- // lib/agent/prompt.ts
2554
- init_define_POPCRAFT_COMPONENT_IDS();
2555
- init_limits();
2556
- var PROMPT_LIMITS = {
2557
- maxPromptChars: 14400,
2558
- maxSkillIndexChars: 5800,
2559
- maxProfileIndexChars: 1600,
2560
- maxContextChars: AI_LIMITS.maxContextChars,
2561
- maxSelectionItems: 12
2562
- };
2563
- var IDENTITY = `You are the PopCraft design agent. PopCraft is a browser design tool (frames, vectors, text, components, styles, variables, auto layout), and you work inside the user's open document through tools that edit it live.`;
2564
- var HOW_TO_WORK = `How you work:
2565
- - Inspect before you edit. Read the selection and the layers you are about to change; never guess at node ids, colors or sizes.
2566
- - Make designs as code. Anything bigger than a small tweak \u2014 a poster, a post, a reel, a page, an ad set \u2014 is ONE script built with write_design (read the design-code skill and read_design_reference first), not dozens of create_node and update_nodes calls: it builds in one step, shows on the canvas as you write it, returns a render to look at, and is changed by editing the script and building again. Before calling a design done, review it with the design-review skill: every size, moments in time, a light and a dark brand kit.
2567
- - Prefer batched tools. One call that renames thirty layers or sets ten strings beats thirty calls: every write is one undo step for the user, and a wall of undo steps is a bad edit.
2568
- - Stay inside the scope the user pointed at. The selection is the default scope; do not touch the rest of the page unless asked.
2569
- - Explain briefly. A line or two about what you did and why, with counts rather than lists. No preamble, no restating the request.
2570
- - Use skills. Before a multi-step job, read the matching skill with read_skill and follow it; skills carry the rules that make the result look designed rather than generated.
2571
- - Pixel art (sprites, characters, items, tiles, 8-/16-bit) always goes in Pixel canvases made with k.pixels, never rects or vectors \u2014 even when the file already holds vector sprites. Read the pixel-sprites skill first. When the request does not say whether the sprite is still or animated (or pixel versus vector), ask with ask_user before building: that choice is consequential, so it is an exception to asking rarely.
2572
- - Plan visibly for anything longer than a couple of steps: manage_todos puts the plan in front of the user and keeps you honest.
2573
- - When a tool fails, read the error and fix the call \u2014 do not retry the same arguments, and do not pretend a failed edit happened.
2574
- - Ask only when you genuinely cannot proceed (a structural ambiguity), and ask once. ask_user puts the question in front of them with options to click \u2014 use it when a choice is both ambiguous AND consequential, and never when you can reasonably infer the answer from the document or the request, or when you could just try it and let them undo. If they skip the question, pick sensibly and say which way you went.
2575
- - Delegate the heavy parts. Surveying a big page, writing all the copy, restyling dozens of layers \u2014 hand those to a subagent with task(); it burns its own context and hands you back a short summary, which is what keeps you able to finish the turn. Several task() calls in one message run at the same time.`;
2576
- var describeNodes = (doc, ids) => {
2577
- const shown = ids.slice(0, PROMPT_LIMITS.maxSelectionItems);
2578
- const parts = shown.map((id) => {
2579
- const n = doc.nodes[id];
2580
- return n ? `${id} (${n.type}${n.name ? ` "${str(n.name, 40)}"` : ""})` : `${id} (missing)`;
2581
- });
2582
- const rest = ids.length - shown.length;
2583
- return parts.join(", ") + (rest > 0 ? `, +${rest} more` : "");
2584
- };
2585
- function buildContextBlock(ctx, maxChars = PROMPT_LIMITS.maxContextChars) {
2586
- const { doc, pageId, selection } = ctx;
2587
- const page = doc.nodes[pageId];
2588
- const lines = [
2589
- `Document: "${str(doc.name, AI_LIMITS.maxNameChars)}" (${doc.pages.length} page${doc.pages.length === 1 ? "" : "s"}, ${Object.keys(doc.nodes).length} nodes)`,
2590
- `Current page: ${page ? `"${str(page.name, AI_LIMITS.maxNameChars)}"` : "unknown"} (id ${pageId}, ${page?.childIds?.length ?? 0} top-level layers)`,
2591
- selection.length ? `Selection (${selection.length}): ${describeNodes(doc, selection)}` : "Selection: nothing selected \u2014 ask what to work on, or use find_nodes / get_document_outline to locate it."
2592
- ];
2593
- const mentions = mentionContext(ctx.mentions, doc);
2594
- if (mentions) lines.push(mentions);
2595
- if (ctx.camera) {
2596
- const z = Math.round(ctx.camera.zoom * 100);
2597
- const size = ctx.viewport ? `, ${Math.round(ctx.viewport.width / ctx.camera.zoom)}x${Math.round(ctx.viewport.height / ctx.camera.zoom)} canvas units visible` : "";
2598
- lines.push(`Viewport: ${z}% zoom at (${Math.round(ctx.camera.x)}, ${Math.round(ctx.camera.y)})${size}`);
2599
- }
2600
- const design = buildDesignContext(doc, Math.max(200, Math.floor(maxChars / 2)));
2601
- if (design) lines.push(design);
2602
- if (ctx.readOnly) lines.push("This document is currently read-only (a version-history preview, or you are in this file as a viewer or commenter) \u2014 editing tools will refuse; explain that instead of retrying.");
2603
- return joinWithin(lines, maxChars);
2604
- }
2605
- function buildSkillIndex(skills, maxChars = PROMPT_LIMITS.maxSkillIndexChars) {
2606
- return joinWithin(skills.filter((s) => parseOrchestrationSkill(s.instructions) === null).map(skillIndexLine), maxChars);
2607
- }
2608
- function buildProfileIndex(profiles, maxChars = PROMPT_LIMITS.maxProfileIndexChars) {
2609
- return joinWithin(profiles.map(profileIndexLine), maxChars);
2610
- }
2611
- function buildSubagentPrompt(instructions, ctx) {
2612
- const prompt = [instructions, SUBAGENT_FRAMING, `Current context:
2613
- ${buildContextBlock(ctx)}`].join("\n\n");
2614
- return prompt.length <= PROMPT_LIMITS.maxPromptChars ? prompt : `${prompt.slice(0, PROMPT_LIMITS.maxPromptChars)}
2615
- \u2026`;
2616
- }
2617
- function buildSystemPrompt(ctx) {
2618
- const skills = ctx.skills ?? allSkills();
2619
- const profiles = ctx.profiles ?? allProfiles();
2620
- const active = ctx.activeSkillId ? findSkill(ctx.activeSkillId) : void 0;
2621
- const sections = [
2622
- IDENTITY,
2623
- HOW_TO_WORK,
2624
- `Skills (read the full instructions with read_skill before you follow one \u2014 only the summaries are here):
2625
- ${buildSkillIndex(skills)}`,
2626
- `Subagent profiles (spawn one with task({ subagent_type, prompt }); it starts fresh, sees this document but not this conversation, and returns only a summary):
2627
- ${buildProfileIndex(profiles)}`,
2628
- active ? `The user selected the "${active.name}" skill (${active.id}) for this turn. Call read_skill("${active.id}") first and follow it.` : "",
2629
- // Last on purpose: selection, camera and viewport change every turn, and providers cache prompts by
2630
- // prefix — everything above is identical from turn to turn, so it stays cacheable.
2631
- `Current context:
2632
- ${buildContextBlock(ctx)}`
2633
- ].filter(Boolean);
2634
- const prompt = sections.join("\n\n");
2635
- return prompt.length <= PROMPT_LIMITS.maxPromptChars ? prompt : `${prompt.slice(0, PROMPT_LIMITS.maxPromptChars)}
2636
- \u2026`;
2637
- }
2638
-
2639
- // lib/agent/subagent.ts
2640
- var PARENT_ONLY_TOOLS = ["task", "await_job", "send_message", "stop_agent", "list_agents"];
2641
- var AGENT_SESSIONS_DB = "popcraft-agent-sessions";
2642
- var FAST_HINTS = ["flash", "mini", "haiku", "lite", "nano", "small"];
2643
- var isFastModelId = (id) => {
2644
- const lower = id.toLowerCase();
2645
- return FAST_HINTS.some((h) => lower.includes(h));
2646
- };
2647
- function canRunTools(model) {
2648
- if (model.capabilities && !model.capabilities.includes("tools")) return false;
2649
- const modalities = model.outputModalities;
2650
- if (modalities?.length && !modalities.includes("text")) return false;
2651
- return !/(^|[-/_])image([-/_]|$)/.test(model.id.toLowerCase());
2652
- }
2653
- function pickChildModel(profile, parentModel, catalog) {
2654
- const explicit = profile.model?.trim();
2655
- if (explicit && explicit !== "inherit") return explicit;
2656
- if (!profile.readOnly) return parentModel;
2657
- const fast = catalog.find((m) => isFastModelId(m.id) && canRunTools(m));
2658
- return fast?.id ?? parentModel;
2659
- }
2660
- function childToolNames(profile, registered, forceReadOnly) {
2661
- const wanted = profile.tools.includes(ALL_TOOLS) ? null : new Set(profile.tools);
2662
- const parentOnly = new Set(PARENT_ONLY_TOOLS);
2663
- return registered.filter((t) => !parentOnly.has(t.name)).filter((t) => t.confirm === void 0).filter((t) => t.interactive !== true).filter((t) => !wanted || wanted.has(t.name)).filter((t) => !forceReadOnly || t.readOnly === true).map((t) => t.name);
2664
- }
2665
- function editorPromptContext() {
2666
- const st = useEditorStore.getState();
2667
- return {
2668
- doc: st.document,
2669
- pageId: st.currentPageId,
2670
- selection: st.selection,
2671
- camera: st.camera,
2672
- viewport: typeof window === "undefined" ? void 0 : { width: window.innerWidth, height: window.innerHeight },
2673
- readOnly: !!editBlockReason()
2674
- };
2675
- }
2676
- var childToolListener = null;
2677
- function onChildTool(fn) {
2678
- childToolListener = fn;
2679
- return () => {
2680
- if (childToolListener === fn) childToolListener = null;
2681
- };
2682
- }
2683
- function subagentHost(deps = {}) {
2684
- const profiles = deps.profiles ?? allProfiles;
2685
- const registered = deps.registeredTools ?? (() => allTools().map((t) => ({ name: t.name, readOnly: t.readOnly, confirm: t.confirm, interactive: t.interactive })));
2686
- const promptContext = deps.promptContext ?? editorPromptContext;
2687
- const parentModel = deps.parentModel ?? (() => effectiveChatModel());
2688
- const catalog = deps.catalog ?? (() => useAiStore.getState().catalog?.chat ?? []);
2689
- const modelCall = deps.modelCall ?? agentModel2;
2690
- const toolContext = deps.toolContext ?? editorToolContext;
2691
- const profileOf = (ctx) => profiles().find((p) => p.id === ctx.profile.id) ?? ctx.profile;
2692
- const readOnly = (ctx) => ctx.readOnly || promptContext().readOnly === true;
2693
- return {
2694
- profiles,
2695
- callModel: modelCall(parentModel),
2696
- childModel: (ctx) => {
2697
- const orch = currentOrchestration();
2698
- if (orch?.skill) {
2699
- const call = orch.childModel(readOnly(ctx) ? "swarm" : profileOf(ctx).model ?? null);
2700
- if (call) return call;
2701
- }
2702
- const model = pickChildModel(profileOf(ctx), parentModel(), catalog());
2703
- return modelCall(() => model);
2704
- },
2705
- // The turn's skill sets how many background children run at once (null: the SDK's default).
2706
- maxConcurrent: () => currentOrchestration()?.maxConcurrent ?? null,
2707
- childSystemPrompt: (ctx) => buildSubagentPrompt(ctx.profile.instructions, promptContext()),
2708
- childTools: (ctx) => {
2709
- const all = registered();
2710
- const names = childToolNames(profileOf(ctx), all, readOnly(ctx));
2711
- return (names.length ? toolSpecs(names) : []).map((spec) => ({
2712
- spec,
2713
- readOnly: all.find((t) => t.name === spec.function.name)?.readOnly === true
2714
- }));
2715
- },
2716
- execChildTool: async (call, ctx) => {
2717
- if (!childToolNames(profileOf(ctx), registered(), readOnly(ctx)).includes(call.name)) {
2718
- const message = `${call.name} is not one of your tools. Do this work with the tools you have, or say in your summary what is missing.`;
2719
- return { ...call, ok: false, summary: message, content: JSON.stringify({ error: message }) };
2720
- }
2721
- const base = toolContext(ctx.signal);
2722
- const toolCtx = { ...base, actor: { ...base.actor ?? {}, kind: "agent", nested: true, id: ctx.session.id } };
2723
- try {
2724
- const result = await runTool(call.name, call.argsText, toolCtx);
2725
- return { ...call, ok: true, summary: result.summary, content: JSON.stringify(result.data ?? { ok: true, summary: result.summary }), images: result.images };
2726
- } catch (err) {
2727
- const message = err.message ?? String(err);
2728
- return { ...call, ok: false, summary: message, content: JSON.stringify({ error: message }) };
2729
- }
2730
- },
2731
- store: deps.store === null ? void 0 : deps.store ?? (typeof indexedDB === "undefined" ? void 0 : sessionStore(indexedDbStore(AGENT_SESSIONS_DB), "editor")),
2732
- onEvent: (event) => reportChildTool(runtimeRef, event)
2733
- };
2734
- }
2735
- var runtimeRef = null;
2736
- var MAX_STEPS = 50;
2737
- var activity = /* @__PURE__ */ new Map();
2738
- var activityListeners = /* @__PURE__ */ new Set();
2739
- function recordStep(event) {
2740
- if (event.type !== "tool-start" && event.type !== "tool-end") return;
2741
- const name = event.name ?? "";
2742
- const steps = [...activity.get(event.sessionId) ?? []];
2743
- if (event.type === "tool-start") steps.push({ name, status: "running" });
2744
- else {
2745
- const i = steps.findLastIndex((s) => s.name === name && s.status === "running");
2746
- const step = { name, status: event.ok ? "done" : "error", summary: event.summary ?? void 0 };
2747
- if (i >= 0) steps[i] = step;
2748
- else steps.push(step);
2749
- }
2750
- activity.set(event.sessionId, steps.slice(-MAX_STEPS));
2751
- for (const l of activityListeners) l();
2752
- }
2753
- function reportChildTool(runtime, event) {
2754
- recordStep(event);
2755
- if (!childToolListener || event.type !== "tool-start" && event.type !== "tool-end") return;
2756
- const session2 = runtime?.get(event.sessionId);
2757
- if (!session2) return;
2758
- const jobId = session2.background ? session2.id : void 0;
2759
- childToolListener({
2760
- profile: session2.profile,
2761
- toolCallId: session2.parentCallId ?? void 0,
2762
- jobId,
2763
- job: jobId,
2764
- name: event.name ?? "",
2765
- status: event.type === "tool-start" ? "running" : event.ok ? "done" : "error",
2766
- summary: event.type === "tool-end" ? event.summary ?? void 0 : void 0
2767
- });
2768
- }
2769
- function agentRuntime() {
2770
- if (!runtimeRef) {
2771
- runtimeRef = createAgentRuntime2(subagentHost());
2772
- void runtimeRef.load();
2773
- }
2774
- return runtimeRef;
2775
- }
2776
-
2777
- // lib/agent/tools/subagent-tools.ts
2778
- var MAX_WAIT_MS = 6e5;
2779
- var DEFAULT_WAIT_MS = 12e4;
2780
- function subagentDelegate(deps = {}) {
2781
- const runtime = deps.runtime ?? agentRuntime;
2782
- return async (raw) => {
2783
- const request = raw;
2784
- const rt = runtime();
2785
- await rt.load();
2786
- switch (request.op) {
2787
- case "spawn": {
2788
- const r = await rt.spawn({
2789
- profileId: request.profileId,
2790
- prompt: request.prompt,
2791
- description: request.description,
2792
- readOnly: deps.readOnly === true || request.readOnly === true,
2793
- background: request.background,
2794
- signal: deps.signal,
2795
- parentCallId: request.callId
2796
- });
2797
- if (r.kind === "refused") return { kind: "refused", reason: r.reason };
2798
- if (r.kind === "started") return { kind: "job", jobId: r.id };
2799
- return { kind: "result", jobId: r.id, ok: r.ok, rounds: r.rounds, summary: r.summary };
2800
- }
2801
- case "await": {
2802
- const ms = Math.min(Math.max(request.timeoutMs ?? DEFAULT_WAIT_MS, 1e3), MAX_WAIT_MS);
2803
- const s = await rt.wait(request.jobId, { timeoutMs: ms, signal: deps.signal });
2804
- if (!s) return { kind: "unknown-job", jobId: request.jobId };
2805
- if (s.status !== "running" && s.status !== "queued") rt.dismissFinished(s.id);
2806
- return { kind: "status", jobId: s.id, status: s.status, summary: s.summary ?? "" };
2807
- }
2808
- case "message": {
2809
- const r = await rt.message(request.jobId, request.text, { wait: request.wait === true, signal: deps.signal });
2810
- if (r.kind === "unknown") return { kind: "unknown-job", jobId: request.jobId };
2811
- if (r.kind === "queued") return { kind: "delivered", jobId: r.id, resumed: false };
2812
- if (r.kind === "resumed") return { kind: "delivered", jobId: r.id, resumed: true };
2813
- return { kind: "result", jobId: r.id, ok: r.ok, rounds: 0, summary: r.summary };
2814
- }
2815
- case "stop":
2816
- return { kind: "stopped", jobId: request.jobId, stopped: rt.stop(request.jobId) };
2817
- case "list":
2818
- return {
2819
- kind: "list",
2820
- agents: rt.list().map((s) => ({ id: s.id, profile: s.profile, description: s.description, status: s.status, summary: s.summary ?? void 0 }))
2821
- };
2822
- }
2823
- };
2824
- }
2825
-
2826
- // lib/commands/delegate.ts
2827
- init_define_POPCRAFT_COMPONENT_IDS();
2828
- var TASK_DESCRIPTION = [
2829
- "Delegate a self-contained piece of work to a subagent, which runs with its own fresh context and hands back only a summary. Use it to keep your own context small: surveys of large pages, writing all the copy, restyling dozens of layers.",
2830
- "The child CANNOT see this conversation \u2014 put everything it needs in the prompt: the scope (node ids), the goal, the constraints, and what you want back. It cannot spawn subagents of its own; it may send you a progress report or a question while it works, which you answer with send_message.",
2831
- "Several task calls in one message run at the same time. Set run_in_background when you want to carry on working while it runs: you get its id immediately and its summary arrives as a notification. Every child has an id: send_message steers a running one or continues a finished one with its whole context, await_job waits for one, stop_agent stops one, list_agents lists them."
2832
- ].join("\n\n");
2833
- var delegateTask = defineCommand({
2834
- id: "delegate.task",
2835
- title: "Delegate to a subagent",
2836
- domain: "delegate",
2837
- // NOT harmless: a background task or a full-tool child obviously edits the document. The loop's
2838
- // `readOnly` flag means "independent of the other calls in this batch", which a subagent spawn is, so
2839
- // the agent exposure keeps saying true while the honest effect says document.
2840
- effect: "document",
2841
- permission: null,
2842
- needs: ["delegate"],
2843
- params: external_exports.object({
2844
- subagent_type: external_exports.string().describe("Profile id \u2014 one of the profiles listed in your system prompt (list_profiles for the full set)."),
2845
- prompt: external_exports.string().describe("The self-contained task. The child does not see this conversation."),
2846
- description: external_exports.string().optional().describe('Short label for the panel row, e.g. "Survey the pricing page".'),
2847
- readonly: external_exports.boolean().optional().describe("Force read-only tools for this child, whatever the profile allows."),
2848
- run_in_background: external_exports.boolean().optional().describe("Return a job id immediately and notify you when the child finishes.")
2849
- }),
2850
- expose: {
2851
- agent: { name: "task", description: TASK_DESCRIPTION, readOnly: true }
2852
- },
2853
- run: async (args, ctx) => {
2854
- const reply = await ctx.use("delegate")({
2855
- op: "spawn",
2856
- profileId: args.subagent_type,
2857
- prompt: args.prompt,
2858
- description: args.description,
2859
- readOnly: args.readonly === true,
2860
- background: args.run_in_background,
2861
- // omitted → the profile's `background` default (the SDK applies it)
2862
- callId: ctx.callId
2863
- });
2864
- if (reply.kind === "refused") return { summary: "task refused (nested)", data: { error: reply.reason } };
2865
- if (reply.kind === "job") {
2866
- return {
2867
- summary: `${args.subagent_type} started (${reply.jobId})`,
2868
- data: {
2869
- job_id: reply.jobId,
2870
- status: "running",
2871
- subagent_type: args.subagent_type,
2872
- note: "Keep working. Its summary arrives as a notification when it finishes; await_job waits for it if you need it before you can go on."
2873
- }
2874
- };
2875
- }
2876
- const result = reply;
2877
- return {
2878
- summary: `${args.subagent_type}: ${result.ok ? "done" : "failed"} in ${result.rounds} round${result.rounds === 1 ? "" : "s"}`,
2879
- data: { job_id: result.jobId, subagent_type: args.subagent_type, ok: result.ok, rounds: result.rounds, summary: result.summary }
2880
- };
2881
- }
2882
- });
2883
- var delegateAwait = defineCommand({
2884
- id: "delegate.await",
2885
- title: "Wait for a subagent",
2886
- domain: "delegate",
2887
- effect: "document",
2888
- permission: null,
2889
- needs: ["delegate"],
2890
- params: external_exports.object({
2891
- job_id: external_exports.string().describe("The id a task call returned."),
2892
- timeout_ms: external_exports.number().optional().describe("How long to wait at most, in ms (default 120000, at most 600000).")
2893
- }),
2894
- expose: {
2895
- agent: {
2896
- name: "await_job",
2897
- description: "Wait for a subagent by id to finish and get its summary (or its status when the wait times out). Use it when you need the answer before you can go on; otherwise keep working and let it notify you.",
2898
- readOnly: true
2899
- }
2900
- },
2901
- run: async (args, ctx) => {
2902
- const reply = await ctx.use("delegate")({ op: "await", jobId: args.job_id, timeoutMs: args.timeout_ms });
2903
- if (reply.kind === "unknown-job") {
2904
- return { summary: `No job ${args.job_id}`, data: { error: `No background task with id "${args.job_id}".` } };
2905
- }
2906
- const status = reply;
2907
- if (status.status === "running" || status.status === "queued") {
2908
- return {
2909
- summary: `${args.job_id}: ${status.status}`,
2910
- data: {
2911
- job_id: args.job_id,
2912
- status: status.status,
2913
- note: "Still going after the wait. Carry on with other work; its summary is delivered to you automatically when it lands."
2914
- }
2915
- };
2916
- }
2917
- return { summary: `${args.job_id}: ${status.status}`, data: { job_id: args.job_id, status: status.status, summary: status.summary ?? "" } };
2918
- }
2919
- });
2920
- var delegateMessage = defineCommand({
2921
- id: "delegate.message",
2922
- title: "Message a subagent",
2923
- domain: "delegate",
2924
- // A message can resume a builder, which edits the document.
2925
- effect: "document",
2926
- permission: null,
2927
- needs: ["delegate"],
2928
- params: external_exports.object({
2929
- job_id: external_exports.string().describe("The id a task call returned."),
2930
- message: external_exports.string().describe("What to tell it: a correction, an answer to its question, or the next piece of work."),
2931
- wait: external_exports.boolean().optional().describe("For a finished subagent: resume it and wait for its answer now.")
2932
- }),
2933
- expose: {
2934
- agent: {
2935
- name: "send_message",
2936
- description: "Message a subagent by id. A running one reads it at its next step (steer it, answer its question). A finished one is resumed with its whole context and this message; set wait to get its answer now, otherwise it arrives as a notification.",
2937
- readOnly: true
2938
- }
2939
- },
2940
- run: async (args, ctx) => {
2941
- const reply = await ctx.use("delegate")({ op: "message", jobId: args.job_id, text: args.message, wait: args.wait === true });
2942
- if (reply.kind === "unknown-job") return { summary: `No subagent ${args.job_id}`, data: { error: `No subagent with id "${args.job_id}".` } };
2943
- if (reply.kind === "delivered") {
2944
- return reply.resumed ? { summary: `${args.job_id}: resumed`, data: { job_id: args.job_id, status: "running", note: "Resumed with your message. Its answer arrives as a notification." } } : { summary: `${args.job_id}: message delivered`, data: { job_id: args.job_id, status: "running", note: "It reads this at its next step." } };
2945
- }
2946
- const result = reply;
2947
- return { summary: `${args.job_id}: ${result.ok ? "answered" : "failed"}`, data: { job_id: args.job_id, ok: result.ok, summary: result.summary } };
2948
- }
2949
- });
2950
- var delegateStop = defineCommand({
2951
- id: "delegate.stop",
2952
- title: "Stop a subagent",
2953
- domain: "delegate",
2954
- effect: "none",
2955
- permission: null,
2956
- needs: ["delegate"],
2957
- params: external_exports.object({ job_id: external_exports.string().describe("The id a task call returned.") }),
2958
- expose: { agent: { name: "stop_agent", description: "Stop one running subagent by id. Edits it already made stay.", readOnly: true } },
2959
- run: async (args, ctx) => {
2960
- const reply = await ctx.use("delegate")({ op: "stop", jobId: args.job_id });
2961
- const stopped = reply.kind === "stopped" && reply.stopped;
2962
- return { summary: stopped ? `${args.job_id}: stopped` : `${args.job_id}: not running`, data: { job_id: args.job_id, stopped } };
2963
- }
2964
- });
2965
- var delegateList = defineCommand({
2966
- id: "delegate.list",
2967
- title: "List subagents",
2968
- domain: "delegate",
2969
- effect: "none",
2970
- permission: null,
2971
- needs: ["delegate"],
2972
- params: external_exports.object({}),
2973
- expose: { agent: { name: "list_agents", description: "List your subagents: id, profile, what each was asked, its status and its last summary.", readOnly: true } },
2974
- run: async (_args, ctx) => {
2975
- const reply = await ctx.use("delegate")({ op: "list" });
2976
- const agents = reply.kind === "list" ? reply.agents : [];
2977
- return {
2978
- summary: `${agents.length} subagent${agents.length === 1 ? "" : "s"}`,
2979
- data: { agents: agents.map((a) => ({ job_id: a.id, subagent_type: a.profile, description: a.description, status: a.status, summary: a.summary })) }
2980
- };
2981
- }
2982
- });
2983
- var profileList = defineCommand({
2984
- id: "delegate.listProfiles",
2985
- title: "List subagent profiles",
2986
- domain: "delegate",
2987
- effect: "none",
2988
- permission: null,
2989
- params: external_exports.object({}),
2990
- expose: {
2991
- agent: {
2992
- name: "list_profiles",
2993
- description: "List the subagent profiles you can delegate to with task (id, what each is for, when to use it)."
2994
- }
2995
- },
2996
- run: () => {
2997
- const profiles = allProfiles();
2998
- return {
2999
- summary: `${profiles.length} profile${profiles.length === 1 ? "" : "s"}`,
3000
- data: {
3001
- profiles: profiles.map((p) => ({
3002
- id: p.id,
3003
- name: p.name,
3004
- description: p.description,
3005
- whenToUse: p.whenToUse,
3006
- readOnly: p.readOnly,
3007
- tools: p.tools,
3008
- maxRounds: p.maxRounds
3009
- }))
3010
- }
3011
- };
3012
- }
3013
- });
3014
- var profileRead = defineCommand({
3015
- id: "delegate.readProfile",
3016
- title: "Read a subagent profile",
3017
- domain: "delegate",
3018
- effect: "none",
3019
- permission: null,
3020
- params: external_exports.object({ id: external_exports.string().describe('The profile id, e.g. "inspector".') }),
3021
- expose: {
3022
- agent: {
3023
- name: "read_profile",
3024
- description: "Read a subagent profile in full \u2014 its instructions, tool allowlist and round budget \u2014 before you delegate to it."
3025
- }
3026
- },
3027
- run: ({ id }) => {
3028
- const profile = findProfile(id);
3029
- if (!profile) {
3030
- return { summary: `No profile "${id}"`, data: { error: `No subagent profile with id "${id}".`, available: allProfiles().map(profileIndexLine) } };
3031
- }
3032
- return {
3033
- summary: `Read profile: ${profile.name}`,
3034
- data: { id: profile.id, name: profile.name, readOnly: profile.readOnly, tools: profile.tools, maxRounds: profile.maxRounds, instructions: profile.instructions }
3035
- };
3036
- }
3037
- });
3038
- var delegateCommands = [delegateTask, delegateAwait, delegateMessage, delegateStop, delegateList, profileList, profileRead];
3039
- function registerDelegateCommands() {
3040
- registerCommand(...delegateCommands);
3041
- }
3042
-
3043
- // lib/commands/skill.ts
3044
- init_define_POPCRAFT_COMPONENT_IDS();
3045
- var skillList = defineCommand({
3046
- id: "skill.list",
3047
- title: "List skills",
3048
- domain: "skill",
3049
- effect: "none",
3050
- // The skill sheets are the agent's own instructions, not the user's document.
3051
- permission: null,
3052
- params: external_exports.object({}),
3053
- expose: {
3054
- agent: {
3055
- name: "list_skills",
3056
- description: "List the available skills (name, what they are for, and when to use them). The full instructions come from read_skill."
3057
- }
3058
- },
3059
- run: () => {
3060
- const skills = allSkills();
3061
- return {
3062
- summary: `${skills.length} skill${skills.length === 1 ? "" : "s"}`,
3063
- data: { skills: skills.map((s) => ({ id: s.id, name: s.name, description: s.description, whenToUse: s.whenToUse, tools: s.tools })) }
3064
- };
3065
- }
3066
- });
3067
- var skillRead = defineCommand({
3068
- id: "skill.read",
3069
- title: "Read a skill",
3070
- domain: "skill",
3071
- effect: "none",
3072
- permission: null,
3073
- params: external_exports.object({ id: external_exports.string().describe('The skill id, e.g. "fill-content".') }),
3074
- expose: {
3075
- agent: {
3076
- name: "read_skill",
3077
- description: "Read a skill\u2019s full instructions by id. Do this before following a skill; the system prompt only carries the summaries."
3078
- }
3079
- },
3080
- run: ({ id }) => {
3081
- const skill = findSkill(id);
3082
- if (!skill) {
3083
- return {
3084
- summary: `No skill "${id}"`,
3085
- data: { error: `No skill with id "${id}".`, available: allSkills().map(skillIndexLine) }
3086
- };
3087
- }
3088
- return {
3089
- summary: `Read skill: ${skill.name}`,
3090
- data: { id: skill.id, name: skill.name, tools: skill.tools, instructions: skill.instructions }
3091
- };
3092
- }
3093
- });
3094
- var skillCommands = [skillList, skillRead];
3095
- function registerSkillCommands() {
3096
- registerCommand(...skillCommands);
3097
- }
3098
-
3099
- // lib/agent/parts.ts
3100
- init_define_POPCRAFT_COMPONENT_IDS();
3101
- function todoItemsFrom(rows) {
3102
- if (!Array.isArray(rows)) return null;
3103
- return rows.map((row) => {
3104
- const t = row ?? {};
3105
- return {
3106
- text: String(t.title ?? t.text ?? ""),
3107
- done: typeof t.done === "boolean" ? t.done : t.status === "done"
3108
- };
3109
- });
3110
- }
3111
- var textOf2 = (m) => m.parts.filter((p) => p.type === "text").map((p) => p.text).join("");
3112
- function pushTextDelta(parts, delta) {
3113
- const last = parts[parts.length - 1];
3114
- if (last?.type === "text") {
3115
- parts[parts.length - 1] = { type: "text", text: last.text + delta };
3116
- return parts;
3117
- }
3118
- return [...parts, { type: "text", text: delta }];
3119
- }
3120
- function pushReasoningDelta(parts, delta) {
3121
- const last = parts[parts.length - 1];
3122
- if (last?.type === "reasoning") {
3123
- parts[parts.length - 1] = { type: "reasoning", text: last.text + delta };
3124
- return parts;
3125
- }
3126
- return [...parts, { type: "reasoning", text: delta }];
3127
- }
3128
- function upsertToolPart(parts, part) {
3129
- const i = parts.findIndex((p) => p.type === "tool" && p.id === part.id);
3130
- if (i < 0) return [...parts, part];
3131
- const next = [...parts];
3132
- next[i] = { ...next[i], ...part };
3133
- return next;
3134
- }
3135
-
3136
- // lib/agent/runner.ts
3137
- var ALWAYS_ALLOWED = ["list_skills", "read_skill", "manage_todos", "notify", "get_selection", "task", "await_job", "send_message", "stop_agent", "list_agents", "list_profiles", "read_profile", "ask_user"];
3138
- var MAX_HISTORY_MESSAGES = 24;
3139
- var MAX_PARALLEL_TOOLS = 4;
3140
- var MAX_TOOL_RESULT_CHARS = 48e3;
3141
- var TURN_MAX_ROUNDS = 500;
3142
- function needsEditableSession(name) {
3143
- const tool = getTool(name);
3144
- if (tool?.readOnly) return false;
3145
- if (tool?.interactive) return false;
3146
- return true;
3147
- }
3148
- function guardEdit(name) {
3149
- if (!needsEditableSession(name)) return;
3150
- const reason = editBlockReason();
3151
- if (reason) throw new ToolError(`${name} cannot run: ${reason}`);
3152
- }
3153
- function historyMessages() {
3154
- return activeMessages().slice(-MAX_HISTORY_MESSAGES).map((m) => ({ role: m.role, content: textOf2(m).trim() })).filter((m) => !!m.content);
3155
- }
3156
- function systemMessage(skillId, mentions = []) {
3157
- const st = useEditorStore.getState();
3158
- return {
3159
- role: "system",
3160
- content: buildSystemPrompt({
3161
- doc: st.document,
3162
- pageId: st.currentPageId,
3163
- selection: st.selection,
3164
- camera: st.camera,
3165
- viewport: typeof window === "undefined" ? void 0 : { width: window.innerWidth, height: window.innerHeight },
3166
- activeSkillId: skillId,
3167
- readOnly: !!editBlockReason(),
3168
- mentions
3169
- })
3170
- };
3171
- }
3172
- var registerTurnTools = (deps) => {
3173
- registerBuiltinTools();
3174
- registerSkillCommands();
3175
- registerDelegateCommands();
3176
- registerDangerousCommands();
3177
- provideAgentCapability("delegate", subagentDelegate(deps));
3178
- };
3179
- var specsFor = (skillId) => {
3180
- const skill = skillId ? findSkill(skillId) : void 0;
3181
- return skill?.tools.length ? toolSpecs([.../* @__PURE__ */ new Set([...skill.tools, ...ALWAYS_ALLOWED])]) : toolSpecs();
3182
- };
3183
- var loopTools = (skillId) => specsFor(skillId).map((spec) => ({ spec, readOnly: getTool(spec.function.name)?.readOnly === true }));
3184
- function syncTodos(run) {
3185
- if (run.name !== "manage_todos" || !run.ok) return;
3186
- try {
3187
- const data = JSON.parse(run.content);
3188
- const items = todoItemsFrom(data.todos);
3189
- if (items) setTodos(items);
3190
- } catch {
3191
- }
3192
- }
3193
- var runs;
3194
- var agentRuns = () => runs ??= serialRuns(runStore(indexedDbStore(AGENT_SESSIONS_DB), "editor"));
3195
- var setAgentRuns = (store) => {
3196
- runs = store && serialRuns(store);
3197
- };
3198
- var RESUME_WINDOW_MS = 30 * 6e4;
3199
- var MAX_INTERRUPTIONS = 6;
3200
- var SUSPEND_RESTART_MS = 5e3;
3201
- var STOPPED_MESSAGE = "Stopped. Any edits already applied are still there.";
3202
- async function runTurn(text, mentions = []) {
3203
- const availability = aiAvailability();
3204
- if (!availability.ok) {
3205
- useAgentStore.setState({ error: { message: availability.message, code: availability.reason } });
3206
- return;
3207
- }
3208
- if (!agentModel()) {
3209
- useAgentStore.setState({ error: { message: "Pick a chat model for the agent first.", code: "no_model" } });
3210
- return;
3211
- }
3212
- const skillId = mentions.find((m) => m.kind === "skill")?.id ?? useAgentStore.getState().skillId;
3213
- const checkpoint = rememberCheckpoint(useEditorStore.getState().document);
3214
- const user = { id: newId(), role: "user", parts: [{ type: "text", text }], createdAt: Date.now() };
3215
- appendMessage(user);
3216
- const assistantId = newId();
3217
- appendMessage({ id: assistantId, role: "assistant", parts: [], createdAt: Date.now(), checkpoint });
3218
- const s = useAgentStore.getState();
3219
- const meta = {
3220
- documentId: s.documentId ?? useEditorStore.getState().document.id,
3221
- threadId: s.activeThreadId ?? "",
3222
- assistantId,
3223
- skillId,
3224
- mentions,
3225
- wantsChange: wantsChange(text)
3226
- };
3227
- await drive(meta, { messages: [systemMessage(skillId, mentions), ...historyMessages()], checkpoint });
3228
- }
3229
- async function resumeInterrupted(documentId) {
3230
- if (useAgentStore.getState().running) return false;
3231
- const store = agentRuns();
3232
- let list;
3233
- try {
3234
- list = await interruptedRuns(store);
3235
- } catch {
3236
- return false;
3237
- }
3238
- const mine = list.filter((r) => r.meta?.documentId === documentId).sort((a, b) => b.updatedAt - a.updatedAt);
3239
- const [latest, ...rest] = mine;
3240
- for (const r of rest) await store.save({ ...r, status: "stopped", updatedAt: Date.now() });
3241
- if (!latest) return false;
3242
- if (Date.now() - latest.updatedAt > RESUME_WINDOW_MS || !findMessage(latest.meta)) {
3243
- await store.save({ ...latest, status: "stopped", updatedAt: Date.now() });
3244
- return false;
3245
- }
3246
- if (useAgentStore.getState().running) return false;
3247
- await drive(latest.meta, { resume: latest });
3248
- return true;
3249
- }
3250
- async function continueTurn() {
3251
- const s = useAgentStore.getState();
3252
- if (s.running) return false;
3253
- const messages = activeMessages();
3254
- const last = [...messages].reverse().find((m) => m.role === "assistant");
3255
- if (!last) return false;
3256
- const record = await agentRuns().get(last.id).catch(() => null);
3257
- if (record?.meta && record.meta.threadId === s.activeThreadId) {
3258
- await drive(record.meta, { resume: { ...record, status: "running" } });
3259
- return true;
3260
- }
3261
- const ask = [...messages].reverse().find((m) => m.role === "user");
3262
- if (!ask) return false;
3263
- await runTurn(textOf2(ask));
3264
- return true;
3265
- }
3266
- function findMessage(meta) {
3267
- if (!meta) return void 0;
3268
- return useAgentStore.getState().threads.find((t) => t.id === meta.threadId)?.messages.find((m) => m.id === meta.assistantId);
3269
- }
3270
- function installPageHandlers() {
3271
- if (typeof window === "undefined") return () => {
3272
- };
3273
- const save = () => persistThreads();
3274
- const onVisibility = () => {
3275
- if (document.visibilityState === "hidden") save();
3276
- };
3277
- window.addEventListener("pagehide", save);
3278
- document.addEventListener("visibilitychange", onVisibility);
3279
- return () => {
3280
- window.removeEventListener("pagehide", save);
3281
- document.removeEventListener("visibilitychange", onVisibility);
3282
- };
3283
- }
3284
- function resilientModel(model, turn, parts) {
3285
- return async (messages, specs, hooks, _signal, request) => {
3286
- await whenResumable(void 0, turn);
3287
- const call = new AbortController();
3288
- const onTurnAbort = () => call.abort();
3289
- turn.addEventListener("abort", onTurnAbort);
3290
- let hiddenAt = 0;
3291
- const onVisibility = () => {
3292
- if (document.visibilityState === "hidden") hiddenAt = Date.now();
3293
- else if (hiddenAt && Date.now() - hiddenAt > SUSPEND_RESTART_MS) call.abort();
3294
- };
3295
- if (typeof document !== "undefined") document.addEventListener("visibilitychange", onVisibility);
3296
- const base = parts.get();
3297
- try {
3298
- const cut = new Promise((_, reject) => call.signal.addEventListener("abort", () => reject(new Error("aborted")), { once: true }));
3299
- cut.catch(() => {
3300
- });
3301
- return await Promise.race([model(messages, specs, hooks, call.signal, request), cut]);
3302
- } catch (err) {
3303
- parts.set(base);
3304
- if (call.signal.aborted && !turn.aborted) throw { message: "The stream was interrupted.", code: "interrupted" };
3305
- throw err;
3306
- } finally {
3307
- turn.removeEventListener("abort", onTurnAbort);
3308
- if (typeof document !== "undefined") document.removeEventListener("visibilitychange", onVisibility);
3309
- }
3310
- };
3311
- }
3312
- function lastUserText(messages) {
3313
- const m = [...messages].reverse().find((x) => x.role === "user");
3314
- return typeof m?.content === "string" ? m.content : m ? JSON.stringify(m.content) : "";
3315
- }
3316
- function withGuidance(messages, guidance) {
3317
- const i = messages.findIndex((m) => m.role === "system");
3318
- if (i < 0) return [{ role: "system", content: guidance }, ...messages];
3319
- const sys = messages[i];
3320
- return messages.map((m, j) => j === i ? { ...sys, content: `${typeof sys.content === "string" ? sys.content : ""}
3321
-
3322
- ${guidance}` } : m);
3323
- }
3324
- async function drive(meta, initial) {
3325
- let start = initial;
3326
- const model = agentModel();
3327
- if (!model) {
3328
- useAgentStore.setState({ error: { message: "Pick a chat model for the agent first.", code: "no_model" } });
3329
- return;
3330
- }
3331
- const store = agentRuns();
3332
- const id = meta.assistantId;
3333
- const before = useEditorStore.getState().document;
3334
- if (useAgentStore.getState().activeThreadId !== meta.threadId) useAgentStore.setState({ activeThreadId: meta.threadId });
3335
- let checkpoint = "checkpoint" in start ? start.checkpoint : findMessage(meta)?.checkpoint;
3336
- if (!checkpoint) {
3337
- checkpoint = rememberCheckpoint(before);
3338
- updateMessage(id, (m) => ({ ...m, checkpoint }), { save: false });
3339
- }
3340
- const ledger = createToolLedger(meta.ledger);
3341
- let parts = [...findMessage(meta)?.parts ?? []].filter((p) => !(p.type === "error" && p.message === STOPPED_MESSAGE));
3342
- const flush = (save = false) => setParts(id, parts, { save });
3343
- if ("resume" in start) {
3344
- parts = parts.map((p) => {
3345
- if (p.type !== "tool" || p.status !== "running") return p;
3346
- const done = ledger.get(p.id);
3347
- return done ? { ...p, status: done.ok ? "done" : "error", summary: done.summary, result: done.content } : { ...p, status: "error", summary: "interrupted", error: "interrupted" };
3348
- });
3349
- parts = [...parts, { type: "notice", kind: "resumed" }];
3350
- flush(true);
3351
- }
3352
- const abort = new AbortController();
3353
- useAgentStore.setState({ running: true, resuming: false, abort, error: null });
3354
- const ctx = editorToolContext(abort.signal);
3355
- const { createDesignPreview, DESIGN_TOOL } = await import("./live-5IE5R4CW.js");
3356
- const preview = createDesignPreview();
3357
- const readOnly = !!editBlockReason();
3358
- registerTurnTools({ readOnly, signal: abort.signal });
3359
- const runtime = agentRuntime();
3360
- const fresh = "messages" in start ? start : null;
3361
- const resumed = !fresh;
3362
- const pool = orchestrationSkills();
3363
- const orch = await orchestrateTurn({
3364
- callModel: agentModel2(() => model),
3365
- task: fresh ? lastUserText(fresh.messages) : "",
3366
- mode: resumed && !meta.orchestrationSkill ? "off" : void 0,
3367
- skills: resumed ? pool.filter((s) => s.name === meta.orchestrationSkill) : pool
3368
- }).catch(() => null);
3369
- meta.orchestrationSkill = orch?.skill?.name ?? null;
3370
- if (fresh && orch?.guidance) start = { ...fresh, messages: withGuidance(fresh.messages, orch.guidance) };
3371
- const tools = loopTools(meta.skillId);
3372
- const canWrite = !readOnly && meta.wantsChange;
3373
- const writeTool = tools.some((t) => t.spec.function.name === DESIGN_TOOL) ? DESIGN_TOOL : null;
3374
- const guard = createActionGuard({ enabled: canWrite, writeTool, initial: meta.guard });
3375
- let pending = null;
3376
- let saving = Promise.resolve();
3377
- const saveMeta = () => {
3378
- meta.guard = guard.state();
3379
- meta.ledger = ledger.entries();
3380
- meta.pending = pending;
3381
- const rec = store.peek(id);
3382
- if (rec) saving = store.save({ ...rec, meta: { ...meta }, updatedAt: Date.now() }).catch(() => {
3383
- });
3384
- return saving;
3385
- };
3386
- const offPage = installPageHandlers();
3387
- let interruptions = 0;
3388
- let resumeFrom = "resume" in start ? start.resume : null;
3389
- try {
3390
- while (true) {
3391
- const options = {
3392
- tools,
3393
- meta,
3394
- stopped: () => abort.signal.aborted,
3395
- drainNotifications: () => {
3396
- const notes = guard.drain();
3397
- if (notes.length) {
3398
- parts = [...parts, { type: "notice", kind: "read-budget" }];
3399
- flush();
3400
- }
3401
- return [...notes, ...runtime.drainParentNotifications()];
3402
- },
3403
- maxParallel: MAX_PARALLEL_TOOLS,
3404
- // The loop's default cut every result at 8000 characters AFTER the tool had honoured its own limit, so
3405
- // export_svg with maxChars 40000 still came back without its last paths and the model could not
3406
- // rebuild the artwork. Tools bound their own output; this is only the backstop.
3407
- maxResultChars: MAX_TOOL_RESULT_CHARS,
3408
- maxRounds: TURN_MAX_ROUNDS,
3409
- modelRetries: 3,
3410
- isRecoverable: (err) => !abort.signal.aborted && isInterruption(err),
3411
- requireAction: canWrite ? { nudges: ACTION_NUDGES, message: ACTION_NUDGE } : false,
3412
- toolChoice: () => guard.toolChoice(),
3413
- advise: orch?.advise ?? void 0,
3414
- route: orch?.route ?? void 0,
3415
- callModel: resilientModel(orch?.skill ? orch.callModel : agentModel2(() => model), abort.signal, { get: () => parts, set: (p) => {
3416
- parts = p;
3417
- flush();
3418
- } }),
3419
- checkpoint: async () => {
3420
- pending = null;
3421
- ledger.clear();
3422
- await saveMeta();
3423
- },
3424
- execTool: (call) => runOnce(ledger, call, async () => {
3425
- const row = { type: "tool", id: call.id, name: call.name, argsText: call.argsText, status: "running" };
3426
- parts = upsertToolPart(parts, row);
3427
- flush();
3428
- const docBefore = useEditorStore.getState().document;
3429
- try {
3430
- if (call.name === DESIGN_TOOL) preview.end();
3431
- guardEdit(call.name);
3432
- const result = await runTool(call.name, call.argsText, { ...ctx, toolCallId: call.id });
3433
- const content = JSON.stringify(result.data ?? { ok: true, summary: result.summary });
3434
- parts = upsertToolPart(parts, { ...row, status: "done", summary: result.summary, result: content });
3435
- for (const url of result.images ?? []) parts = [...parts, { type: "image", url, caption: call.name }];
3436
- const acted = useEditorStore.getState().document !== docBefore;
3437
- return { id: call.id, name: call.name, argsText: call.argsText, ok: true, summary: result.summary, content, images: result.images, acted };
3438
- } catch (err) {
3439
- const message = err.message ?? String(err);
3440
- parts = upsertToolPart(parts, { ...row, status: "error", summary: message, error: message });
3441
- return { id: call.id, name: call.name, argsText: call.argsText, ok: false, summary: message, content: JSON.stringify({ error: message }), acted: false };
3442
- } finally {
3443
- flush(true);
3444
- }
3445
- }).then((run) => {
3446
- void saveMeta();
3447
- return run;
3448
- }),
3449
- hooks: {
3450
- onAssistantStart: () => {
3451
- pending = { text: "", calls: [] };
3452
- },
3453
- onTextDelta: (d) => {
3454
- parts = pushTextDelta([...parts], d);
3455
- if (pending) pending.text += d;
3456
- flush();
3457
- },
3458
- onReasoningDelta: (d) => {
3459
- parts = pushReasoningDelta([...parts], d);
3460
- flush();
3461
- },
3462
- onToolProgress: (p) => preview.update(p.name, p.arguments),
3463
- onToolStart: (call) => {
3464
- pending?.calls.push({ id: call.id, name: call.name, argsText: call.argsText });
3465
- void saveMeta();
3466
- },
3467
- onToolEnd: (run) => {
3468
- guard.onRun(run, run.acted === true);
3469
- syncTodos(run);
3470
- },
3471
- onRoundEnd: () => guard.onRoundEnd(),
3472
- onNudge: () => {
3473
- const count = guard.onNudge();
3474
- parts = [...parts, { type: "notice", kind: "nudge", count, max: ACTION_NUDGES }];
3475
- flush(true);
3476
- }
3477
- }
3478
- };
3479
- try {
3480
- let outcome;
3481
- if (resumeFrom) {
3482
- const cp = resumeFrom.checkpoint;
3483
- const nudgesLeft = canWrite ? Math.max(0, ACTION_NUDGES - guard.state().nudges) : 0;
3484
- const patched = { ...resumeFrom, status: "running", checkpoint: { ...cp, nudgesLeft, messages: resumeTranscript(cp.messages, meta.pending, meta.ledger) } };
3485
- await store.save(patched);
3486
- pending = null;
3487
- outcome = await resumeRun(id, store, options);
3488
- } else {
3489
- if (!("messages" in start)) throw new Error("nothing to run");
3490
- outcome = await runPersistent({ ...options, id, runs: store, messages: start.messages });
3491
- }
3492
- if (canWrite && !outcome.stopped && !outcome.acted && !guard.acted) parts = [...parts, { type: "notice", kind: "no-change" }];
3493
- break;
3494
- } catch (err) {
3495
- if (abort.signal.aborted) break;
3496
- const hidden = typeof document !== "undefined" && document.visibilityState === "hidden";
3497
- if (isInterruption(err, hidden) && interruptions < MAX_INTERRUPTIONS) {
3498
- interruptions++;
3499
- await saving;
3500
- const rec = await store.get(id);
3501
- if (!rec) throw err;
3502
- await store.save({ ...rec, status: "running", error: void 0, updatedAt: Date.now() });
3503
- useAgentStore.setState({ resuming: true });
3504
- persistThreads();
3505
- await whenResumable(void 0, abort.signal, Math.min(3e4, 1e3 * 2 ** interruptions));
3506
- if (abort.signal.aborted) break;
3507
- useAgentStore.setState({ resuming: false });
3508
- resumeFrom = await store.get(id);
3509
- parts = [...parts, { type: "notice", kind: "resumed" }];
3510
- flush(true);
3511
- continue;
3512
- }
3513
- throw err;
3514
- }
3515
- }
3516
- } catch (err) {
3517
- if (!abort.signal.aborted) {
3518
- const message = err?.message ?? String(err);
3519
- const code = err?.code;
3520
- parts = [...parts, { type: "error", message, code }];
3521
- }
3522
- } finally {
3523
- endOrchestration(orch);
3524
- offPage();
3525
- preview.end();
3526
- if (abort.signal.aborted) {
3527
- runtime.stopAll();
3528
- parts = [...parts, { type: "error", message: STOPPED_MESSAGE }];
3529
- }
3530
- if (useEditorStore.getState().document === before) updateMessage(id, (m) => ({ ...m, checkpoint: void 0 }), { save: false });
3531
- flush(true);
3532
- updateActiveThread((t) => ({ ...t, checkpoint: { id: checkpoint, label: "Undo these changes" } }));
3533
- useAgentStore.setState({ running: false, resuming: false, abort: null });
3534
- }
3535
- }
3536
- export {
3537
- agentRuns,
3538
- continueTurn,
3539
- editorToolContext,
3540
- needsEditableSession,
3541
- onChildTool,
3542
- resumeInterrupted,
3543
- runTurn,
3544
- setAgentRuns
3545
- };