@intent-hq/web 2.346.0 → 2.346.2

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 (272) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BgKhYgm8.js → -ATexmb_.js} +1 -1
  3. package/web/app/immutable/chunks/{DknPpgEW.js → 0h3tB2X7.js} +1 -1
  4. package/web/app/immutable/chunks/{DcZKw8cP.js → 2_W5MGlF.js} +1 -1
  5. package/web/app/immutable/chunks/{9XVQ1GVX.js → 3OP-tats.js} +1 -1
  6. package/web/app/immutable/chunks/{CAdgzoaK.js → 3hAJcdO4.js} +1 -1
  7. package/web/app/immutable/chunks/{iKgBWWl-.js → 5mNJ4C7j.js} +2 -2
  8. package/web/app/immutable/chunks/{B79pUPc3.js → 5qgyaXHk.js} +4 -4
  9. package/web/app/immutable/chunks/{CJ_dtcmM.js → 7HnS2P2A.js} +1 -1
  10. package/web/app/immutable/chunks/{ahX1JzRb.js → 9PMcLe0B.js} +1 -1
  11. package/web/app/immutable/chunks/{z_Tdw9N5.js → B-hjApiN.js} +1 -1
  12. package/web/app/immutable/chunks/B0tYoxIu.js +408 -0
  13. package/web/app/immutable/chunks/{Y4VeEPHl.js → B1b_Q-DK.js} +1 -1
  14. package/web/app/immutable/chunks/{BmEcZoA2.js → B47FKnfA.js} +1 -1
  15. package/web/app/immutable/chunks/{C1osWUn_.js → B4lGG925.js} +1 -1
  16. package/web/app/immutable/chunks/{CcaAQlGA.js → B6_GAXLX.js} +1 -1
  17. package/web/app/immutable/chunks/{CFs6uWH2.js → B6hd6-h0.js} +1 -1
  18. package/web/app/immutable/chunks/{BDDEv5gU.js → B6jO8Woe.js} +1 -1
  19. package/web/app/immutable/chunks/{DOB2ATTF.js → B8HwWHod.js} +1 -1
  20. package/web/app/immutable/chunks/{B3D9gAmi.js → BALLinLf.js} +1 -1
  21. package/web/app/immutable/chunks/{asQ_ruFQ.js → BB4FgpiZ.js} +1 -1
  22. package/web/app/immutable/chunks/{ftma9Ybn.js → BBhsbqLJ.js} +1 -1
  23. package/web/app/immutable/chunks/{Big_dnEI.js → BEA1dP-Y.js} +1 -1
  24. package/web/app/immutable/chunks/{DFs6FJS8.js → BG2eX09y.js} +1 -1
  25. package/web/app/immutable/chunks/{s0TWEExr.js → BGKCZT2I.js} +1 -1
  26. package/web/app/immutable/chunks/{DjdPlKc4.js → BGel6u2i.js} +1 -1
  27. package/web/app/immutable/chunks/{BaYzTmbw.js → BGqL3gJO.js} +1 -1
  28. package/web/app/immutable/chunks/{B7dTLx8u.js → BGsa1Rn-.js} +1 -1
  29. package/web/app/immutable/chunks/{Ba1C4iSG.js → BHmRsJkZ.js} +1 -1
  30. package/web/app/immutable/chunks/{BDzYiKUH.js → BIDATtgj.js} +1 -1
  31. package/web/app/immutable/chunks/{OPvMR-5p.js → BIWW5pDn.js} +1 -1
  32. package/web/app/immutable/chunks/{BBlTlRXR.js → BKJdB-rj.js} +1 -1
  33. package/web/app/immutable/chunks/BKW86yq_.js +1 -0
  34. package/web/app/immutable/chunks/{-Wo302Zr.js → BMCRnGzk.js} +1 -1
  35. package/web/app/immutable/chunks/{BO8NImWp.js → BMlW8PWp.js} +1 -1
  36. package/web/app/immutable/chunks/{BKw5KoGy.js → BMxLlxet.js} +1 -1
  37. package/web/app/immutable/chunks/{jlJQSpH6.js → BN7h9eAI.js} +1 -1
  38. package/web/app/immutable/chunks/{DKTqwHrN.js → BO3bzcut.js} +1 -1
  39. package/web/app/immutable/chunks/{DOCWMdWU.js → BOvPBTkx.js} +1 -1
  40. package/web/app/immutable/chunks/{ClMg3ew2.js → BPsfqTTH.js} +1 -1
  41. package/web/app/immutable/chunks/{BQ5F0iVp.js → BQjy1SUJ.js} +1 -1
  42. package/web/app/immutable/chunks/{BjURBDIt.js → BQk_mrPH.js} +1 -1
  43. package/web/app/immutable/chunks/{DH-29Rs_.js → BRBkuZqk.js} +3 -3
  44. package/web/app/immutable/chunks/{CtDj7gZD.js → BUwilubW.js} +1 -1
  45. package/web/app/immutable/chunks/{B4gIvcP2.js → BW1uSKLL.js} +1 -1
  46. package/web/app/immutable/chunks/{D492HRYt.js → BXPYDVnQ.js} +1 -1
  47. package/web/app/immutable/chunks/{DPUWJyjX.js → BYpXsiCq.js} +1 -1
  48. package/web/app/immutable/chunks/{Clhk_Z-l.js → BZklR_B6.js} +1 -1
  49. package/web/app/immutable/chunks/{3h5ZjEwa.js → B_ALvSh2.js} +1 -1
  50. package/web/app/immutable/chunks/{D31IcU1_.js → B_qlaCea.js} +1 -1
  51. package/web/app/immutable/chunks/{BaYeKXL3.js → B_uWHofm.js} +1 -1
  52. package/web/app/immutable/chunks/{i2sZiDEq.js → BaDPh7vq.js} +1 -1
  53. package/web/app/immutable/chunks/{D0I9E6A0.js → Bb6S2E-a.js} +1 -1
  54. package/web/app/immutable/chunks/{DccrGg38.js → BbMjUd1J.js} +3 -3
  55. package/web/app/immutable/chunks/{C3NeTp2u.js → BcLSwxTf.js} +1 -1
  56. package/web/app/immutable/chunks/{Do80Vc58.js → BdnmB6mE.js} +1 -1
  57. package/web/app/immutable/chunks/{ByLCbaqp.js → Bhz5wZ4Q.js} +1 -1
  58. package/web/app/immutable/chunks/{DMYKSC8W.js → BjDqyb_W.js} +2 -2
  59. package/web/app/immutable/chunks/{Dx3sZmi8.js → Bkff-hvs.js} +1 -1
  60. package/web/app/immutable/chunks/{C3VPe7p1.js → BmooL5Pj.js} +1 -1
  61. package/web/app/immutable/chunks/{DzejiLWr.js → BqRBAXUd.js} +3 -3
  62. package/web/app/immutable/chunks/{BpYNQf9o.js → Bqw_xSaW.js} +1 -1
  63. package/web/app/immutable/chunks/{CNT1n9YR.js → Br-2EMQh.js} +1 -1
  64. package/web/app/immutable/chunks/{C_EpV6jU.js → Bs7Hg6Iw.js} +1 -1
  65. package/web/app/immutable/chunks/{DZ3SUe8R.js → BtiDRzyn.js} +1 -1
  66. package/web/app/immutable/chunks/{CswFIiBb.js → BticJnNL.js} +1 -1
  67. package/web/app/immutable/chunks/{A8_BT67P.js → BtwtItRa.js} +1 -1
  68. package/web/app/immutable/chunks/{DByMRbHr.js → BulYm0mb.js} +1 -1
  69. package/web/app/immutable/chunks/{cATI0wnI.js → BvZcpO0X.js} +1 -1
  70. package/web/app/immutable/chunks/{C33Dw59E.js → Bw9Opv8X.js} +1 -1
  71. package/web/app/immutable/chunks/{CmoBwSCp.js → BxyjmPKU.js} +1 -1
  72. package/web/app/immutable/chunks/{BK64B_Ic.js → ByJd4XYj.js} +1 -1
  73. package/web/app/immutable/chunks/{BLaIjbEF.js → BywHYLA0.js} +1 -1
  74. package/web/app/immutable/chunks/{YYacqJ9a.js → BzrasdW9.js} +1 -1
  75. package/web/app/immutable/chunks/{D7NdkRF-.js → Bzvkqwap.js} +4 -4
  76. package/web/app/immutable/chunks/{B4XZNQ4a.js → C-6Vv_Md.js} +1 -1
  77. package/web/app/immutable/chunks/{CP8WYBBE.js → C1Fdolkg.js} +1 -1
  78. package/web/app/immutable/chunks/{DZyAzxxC.js → C1N6iAP2.js} +1 -1
  79. package/web/app/immutable/chunks/{DXnd4CJZ.js → C1c28WNI.js} +1 -1
  80. package/web/app/immutable/chunks/{Cb0zVN4i.js → C1s02RDB.js} +1 -1
  81. package/web/app/immutable/chunks/{DUQV_xq3.js → C3Pl_e9x.js} +1 -1
  82. package/web/app/immutable/chunks/{B0-4rCYZ.js → C3RXsOpj.js} +1 -1
  83. package/web/app/immutable/chunks/{z-RLr2Z1.js → C4EqZepj.js} +1 -1
  84. package/web/app/immutable/chunks/{BfbZn9QX.js → C4xNNtUj.js} +1 -1
  85. package/web/app/immutable/chunks/{DzKYjnRy.js → C5GFtLhI.js} +2 -2
  86. package/web/app/immutable/chunks/{Bxnf75xq.js → C8_z1bbT.js} +1 -1
  87. package/web/app/immutable/chunks/{fzs92dqr.js → C8d3Ntbq.js} +1 -1
  88. package/web/app/immutable/chunks/C8ummx7x.js +1 -0
  89. package/web/app/immutable/chunks/{BMKkyPLo.js → C9u4tXUT.js} +1 -1
  90. package/web/app/immutable/chunks/{bKyElw3h.js → CAQf2iW_.js} +1 -1
  91. package/web/app/immutable/chunks/{CgLoJgPR.js → CFFiNWgw.js} +1 -1
  92. package/web/app/immutable/chunks/{BJZ04Dji.js → CI36mkCP.js} +1 -1
  93. package/web/app/immutable/chunks/{BlEwAz4v.js → CIDQz_xi.js} +1 -1
  94. package/web/app/immutable/chunks/{DeCAcSD9.js → CIRZKLVu.js} +1 -1
  95. package/web/app/immutable/chunks/{CbZEAbX5.js → CIhlsnLM.js} +1 -1
  96. package/web/app/immutable/chunks/{Bgi2L8Br.js → CJbkgYat.js} +1 -1
  97. package/web/app/immutable/chunks/{DgHZa_R5.js → CJl18r_J.js} +1 -1
  98. package/web/app/immutable/chunks/{Dj8J0eqI.js → CK4TIiJZ.js} +1 -1
  99. package/web/app/immutable/chunks/{CvGEpOsC.js → CKWRbVNZ.js} +1 -1
  100. package/web/app/immutable/chunks/{71L4lHBq.js → CMG5CVfP.js} +1 -1
  101. package/web/app/immutable/chunks/{DtAyUyC0.js → CMcMoJJq.js} +1 -1
  102. package/web/app/immutable/chunks/{C3oF1SK5.js → CNHQ2hz2.js} +1 -1
  103. package/web/app/immutable/chunks/{B1HPKTBI.js → CNOSe0wO.js} +1 -1
  104. package/web/app/immutable/chunks/{C4HHXGmJ.js → CNwVL4wn.js} +1 -1
  105. package/web/app/immutable/chunks/{DukmxKgk.js → CP2XzLLk.js} +1 -1
  106. package/web/app/immutable/chunks/{zGl9gaL0.js → CPE7SIVP.js} +1 -1
  107. package/web/app/immutable/chunks/{Chpqmkx4.js → CPo4UsMt.js} +1 -1
  108. package/web/app/immutable/chunks/{DhHSeQsG.js → CQ5RMFdD.js} +3 -3
  109. package/web/app/immutable/chunks/{CQbtnalz.js → CS4C4Dqz.js} +1 -1
  110. package/web/app/immutable/chunks/{7eL9Pgig.js → CSelYXXo.js} +1 -1
  111. package/web/app/immutable/chunks/{CzcD2H5U.js → CT-2GqFI.js} +1 -1
  112. package/web/app/immutable/chunks/{IRbjhecv.js → CTMYdigD.js} +1 -1
  113. package/web/app/immutable/chunks/{ouMKS3MA.js → CTgw4phK.js} +1 -1
  114. package/web/app/immutable/chunks/{DGmRhalF.js → CUEYQ1xR.js} +1 -1
  115. package/web/app/immutable/chunks/{T9tywf_e.js → CXZBvyNr.js} +1 -1
  116. package/web/app/immutable/chunks/{Dto-4yb7.js → CZF99d-A.js} +1 -1
  117. package/web/app/immutable/chunks/{Dkr_RXdV.js → Cbpbq74u.js} +1 -1
  118. package/web/app/immutable/chunks/Cbr_yt83.js +2 -0
  119. package/web/app/immutable/chunks/{C-OtpXcF.js → CcOcBD3s.js} +1 -1
  120. package/web/app/immutable/chunks/{etVaBLxV.js → Cdb_pBT1.js} +1 -1
  121. package/web/app/immutable/chunks/{5Ixgq0WC.js → CeboDH9D.js} +1 -1
  122. package/web/app/immutable/chunks/{CCm1BgPl.js → CeydpcQL.js} +1 -1
  123. package/web/app/immutable/chunks/{DryyHkNv.js → CiLrRXKC.js} +1 -1
  124. package/web/app/immutable/chunks/{CvHwMug-.js → CjpBT44D.js} +2 -2
  125. package/web/app/immutable/chunks/{BQbcEQz0.js → CjxgW2LG.js} +1 -1
  126. package/web/app/immutable/chunks/{CHfmHJ17.js → Cjyjhytt.js} +1 -1
  127. package/web/app/immutable/chunks/{Cq8oeEXe.js → CnkXoP0c.js} +1 -1
  128. package/web/app/immutable/chunks/{DTSEdINd.js → Cp8bbNVk.js} +2 -2
  129. package/web/app/immutable/chunks/{B55-cQLT.js → CpB9-pxF.js} +1 -1
  130. package/web/app/immutable/chunks/{CQyjMIYw.js → CpsuxuwM.js} +1 -1
  131. package/web/app/immutable/chunks/{DMjNjha0.js → CqvGUHnF.js} +1 -1
  132. package/web/app/immutable/chunks/{Dkva_evl.js → CsvSUZwX.js} +2 -2
  133. package/web/app/immutable/chunks/{BTNEDHav.js → Cu4yzzG1.js} +1 -1
  134. package/web/app/immutable/chunks/{DwA_Z_f6.js → Cueu30DH.js} +1 -1
  135. package/web/app/immutable/chunks/{BDPAYMJ1.js → CvGWJUqA.js} +1 -1
  136. package/web/app/immutable/chunks/{3DAIKGff.js → Cv_fAsRR.js} +1 -1
  137. package/web/app/immutable/chunks/{U6cHmbYS.js → CxlqEDL_.js} +3 -3
  138. package/web/app/immutable/chunks/{DcwC09tE.js → CzGw49VI.js} +1 -1
  139. package/web/app/immutable/chunks/{W7sv3DY6.js → CzZewxhP.js} +1 -1
  140. package/web/app/immutable/chunks/{CrjpdU4V.js → D-3gv8KK.js} +1 -1
  141. package/web/app/immutable/chunks/{BW9EApvt.js → D03v07xA.js} +1 -1
  142. package/web/app/immutable/chunks/{CXpFRnSj.js → D1J3O3UF.js} +1 -1
  143. package/web/app/immutable/chunks/{D7dPbXji.js → D1JIts8z.js} +1 -1
  144. package/web/app/immutable/chunks/D1jZIoRI.js +1 -0
  145. package/web/app/immutable/chunks/{BM7oCSp5.js → D2D1pbBM.js} +1 -1
  146. package/web/app/immutable/chunks/{B5HeJKYE.js → D7oCAGaV.js} +1 -1
  147. package/web/app/immutable/chunks/{Cx31i8ng.js → D9WJ9yaW.js} +1 -1
  148. package/web/app/immutable/chunks/{eNHX5lds.js → DAP42sSp.js} +1 -1
  149. package/web/app/immutable/chunks/{CVa6MqnK.js → DCmSz4nS.js} +1 -1
  150. package/web/app/immutable/chunks/{CguBowm8.js → DFBU68gv.js} +1 -1
  151. package/web/app/immutable/chunks/{Brqq8vhd.js → DHNaVZzM.js} +4 -4
  152. package/web/app/immutable/chunks/{dBZS3-kp.js → DIKxUBjo.js} +1 -1
  153. package/web/app/immutable/chunks/{BDPqCRJm.js → DIYt9yAc.js} +1 -1
  154. package/web/app/immutable/chunks/{B1U_DCBw.js → DKnPivVx.js} +1 -1
  155. package/web/app/immutable/chunks/DLzSUn52.js +4 -0
  156. package/web/app/immutable/chunks/{BOxkenyY.js → DMAPjgGW.js} +1 -1
  157. package/web/app/immutable/chunks/{D3toWTag.js → DMNf2kIx.js} +4 -4
  158. package/web/app/immutable/chunks/{CiIELmgj.js → DNMpoEvN.js} +1 -1
  159. package/web/app/immutable/chunks/{txy0Txom.js → DNQiloiF.js} +1 -1
  160. package/web/app/immutable/chunks/{DzGNgfrZ.js → DRG7DUhO.js} +1 -1
  161. package/web/app/immutable/chunks/{BY3nRRgO.js → DRXZoO9N.js} +3 -3
  162. package/web/app/immutable/chunks/{DDySjsub.js → DRpIoF9f.js} +1 -1
  163. package/web/app/immutable/chunks/DU8GQiwc.js +13 -0
  164. package/web/app/immutable/chunks/{DRZKWEq3.js → DUyBdSjv.js} +1 -1
  165. package/web/app/immutable/chunks/{CjbCpI18.js → DYbBpj-3.js} +1 -1
  166. package/web/app/immutable/chunks/{Dr45ln4z.js → DaOs4JNK.js} +1 -1
  167. package/web/app/immutable/chunks/{DNjgs7AU.js → Db5vVNPd.js} +1 -1
  168. package/web/app/immutable/chunks/{DdVIXVso.js → DbjrS_71.js} +1 -1
  169. package/web/app/immutable/chunks/{Bgw3O9rE.js → DctMspbi.js} +1 -1
  170. package/web/app/immutable/chunks/{DOKxXiSI.js → DfZvKQFw.js} +4 -4
  171. package/web/app/immutable/chunks/{3as4gwP9.js → DfumCvo1.js} +1 -1
  172. package/web/app/immutable/chunks/{Cq2aackv.js → DghbEZ16.js} +1 -1
  173. package/web/app/immutable/chunks/{BOyF7pe9.js → DhUnCLhA.js} +1 -1
  174. package/web/app/immutable/chunks/{DYnCJwSs.js → DhWGSJOr.js} +1 -1
  175. package/web/app/immutable/chunks/{B0mNIdOb.js → DiKPZGG7.js} +1 -1
  176. package/web/app/immutable/chunks/{D-i7C44m.js → DiLuZbm3.js} +2 -2
  177. package/web/app/immutable/chunks/Dk2XuKyL.js +1 -0
  178. package/web/app/immutable/chunks/{BnkmaA34.js → DkMx9Khd.js} +1 -1
  179. package/web/app/immutable/chunks/{ChNPgGKQ.js → DlOpwiIn.js} +1 -1
  180. package/web/app/immutable/chunks/{BYDvuR-h.js → DlQwd6Dz.js} +1 -1
  181. package/web/app/immutable/chunks/{ACNn9MHT.js → DmDreYHi.js} +2 -2
  182. package/web/app/immutable/chunks/{CAUaU8Wh.js → DmY0GWNY.js} +1 -1
  183. package/web/app/immutable/chunks/{C8XrM-qb.js → DoIXHwho.js} +1 -1
  184. package/web/app/immutable/chunks/{CDbQwqu1.js → DoxU2MH-.js} +1 -1
  185. package/web/app/immutable/chunks/{SVZRr24P.js → Dsq9SKtm.js} +1 -1
  186. package/web/app/immutable/chunks/{DKKFIb2l.js → DuA0wXTo.js} +1 -1
  187. package/web/app/immutable/chunks/{D-TVq_rK.js → DxdbljsN.js} +1 -1
  188. package/web/app/immutable/chunks/{DHROL4K5.js → DxkncNQp.js} +1 -1
  189. package/web/app/immutable/chunks/{D1CYDv8t.js → Dy_FWGdw.js} +1 -1
  190. package/web/app/immutable/chunks/{BeJ5WWx4.js → DzrrFPjR.js} +22 -22
  191. package/web/app/immutable/chunks/{CrHk5l6X.js → E9kqzP8d.js} +1 -1
  192. package/web/app/immutable/chunks/{BWTugGQ8.js → EF8Lgcvo.js} +1 -1
  193. package/web/app/immutable/chunks/{BVURea8L.js → Ewbvp_lS.js} +1 -1
  194. package/web/app/immutable/chunks/{BqyYlCY3.js → FFimwbkT.js} +1 -1
  195. package/web/app/immutable/chunks/{DE8QOEZV.js → FIoCaQ2r.js} +1 -1
  196. package/web/app/immutable/chunks/{Zl17pAXX.js → FXM57FKt.js} +1 -1
  197. package/web/app/immutable/chunks/{Ckp5dOHW.js → Fas-AZ8u.js} +1 -1
  198. package/web/app/immutable/chunks/{BDZoh7yg.js → GAq2mIWu.js} +1 -1
  199. package/web/app/immutable/chunks/{G_wYaln-.js → GTp1YEph.js} +1 -1
  200. package/web/app/immutable/chunks/{GzTl4Sb0.js → IrTkIWCG.js} +1 -1
  201. package/web/app/immutable/chunks/{BqBqZaGQ.js → JbkOWTOg.js} +1 -1
  202. package/web/app/immutable/chunks/{DHGSAfCZ.js → KpAtxVXt.js} +1 -1
  203. package/web/app/immutable/chunks/{CXVUfxHv.js → L1oXncPn.js} +6 -6
  204. package/web/app/immutable/chunks/{C1CDOGnh.js → LPERbs3m.js} +1 -1
  205. package/web/app/immutable/chunks/{euZ22sAu.js → LZaIAE1Y.js} +1 -1
  206. package/web/app/immutable/chunks/{CiKocWhX.js → MoI4LiSA.js} +1 -1
  207. package/web/app/immutable/chunks/{BcbQZUsh.js → NhKlePe6.js} +1 -1
  208. package/web/app/immutable/chunks/O7PQPM4V.js +1 -0
  209. package/web/app/immutable/chunks/{BrIsEZwT.js → OJa6n6kP.js} +1 -1
  210. package/web/app/immutable/chunks/{BDtb6AfX.js → P2s61dnl.js} +1 -1
  211. package/web/app/immutable/chunks/{B-7vt8Nv.js → QcdWHB0v.js} +1 -1
  212. package/web/app/immutable/chunks/{V9qci_dz.js → RKjwEkJS.js} +1 -1
  213. package/web/app/immutable/chunks/{1_fC7X8z.js → R_Ru9hwD.js} +1 -1
  214. package/web/app/immutable/chunks/{BK2lpqz4.js → SrhdBdnO.js} +1 -1
  215. package/web/app/immutable/chunks/{CSg3z6A2.js → UKn44y3B.js} +1 -1
  216. package/web/app/immutable/chunks/{D9jvlcNy.js → VVSQHNmC.js} +1 -1
  217. package/web/app/immutable/chunks/{d-Ep-sfP.js → V_ABjOKq.js} +1 -1
  218. package/web/app/immutable/chunks/{BZYeogxf.js → W4Nuovgc.js} +1 -1
  219. package/web/app/immutable/chunks/{DW9MEQey.js → WXiWQWrz.js} +1 -1
  220. package/web/app/immutable/chunks/{BcgSXbtK.js → _5Vv4dkf.js} +1 -1
  221. package/web/app/immutable/chunks/{CQB76zlc.js → _8ZvVPLV.js} +1 -1
  222. package/web/app/immutable/chunks/{BLl22NdQ.js → aEMYrozm.js} +1 -1
  223. package/web/app/immutable/chunks/{CSQXURhP.js → dT5WNNGq.js} +1 -1
  224. package/web/app/immutable/chunks/{D_SZXZdx.js → eqxSNkBq.js} +1 -1
  225. package/web/app/immutable/chunks/{DfjJilaB.js → fYStpNp1.js} +2 -2
  226. package/web/app/immutable/chunks/{wTgWcOy1.js → hCF4Zu9x.js} +1 -1
  227. package/web/app/immutable/chunks/{CGcQAX9W.js → k6cZvV27.js} +1 -1
  228. package/web/app/immutable/chunks/{B83M2_sj.js → k7pV_mI9.js} +1 -1
  229. package/web/app/immutable/chunks/{B0WVH3Hg.js → m4m_OnCq.js} +1 -1
  230. package/web/app/immutable/chunks/{BWAGtvpD.js → qvZYvB9N.js} +1 -1
  231. package/web/app/immutable/chunks/{-UJlOg-6.js → rBb3s3xl.js} +1 -1
  232. package/web/app/immutable/chunks/{CA6TS0WC.js → sCaWuYEb.js} +1 -1
  233. package/web/app/immutable/chunks/{CzdMU9Bu.js → t_9JF5Ld.js} +2 -2
  234. package/web/app/immutable/chunks/{4sUGQp1u.js → tcnXcM0S.js} +1 -1
  235. package/web/app/immutable/chunks/{WbTmlouE.js → wZNQMR8J.js} +1 -1
  236. package/web/app/immutable/chunks/{BWZmCaEW.js → yw7dEI88.js} +1 -1
  237. package/web/app/immutable/chunks/{0qEvU7Aj.js → zqCR6Knb.js} +1 -1
  238. package/web/app/immutable/entry/{app.BXnRxWvG.js → app.BQtRy4N0.js} +3 -3
  239. package/web/app/immutable/entry/start.DP05n5bC.js +1 -0
  240. package/web/app/immutable/nodes/{0.CFk1FXLg.js → 0.YxkIXYW_.js} +1 -1
  241. package/web/app/immutable/nodes/{1.Bd67D1tA.js → 1.DPIiTcn7.js} +1 -1
  242. package/web/app/immutable/nodes/{10.CTZ0L3wZ.js → 10.CYSFXPaq.js} +1 -1
  243. package/web/app/immutable/nodes/{11.CH_h0WbH.js → 11.Bl5UwrS9.js} +1 -1
  244. package/web/app/immutable/nodes/{12.DhihsAtw.js → 12.CUp8k2-A.js} +1 -1
  245. package/web/app/immutable/nodes/{13.B727xJXs.js → 13.Ch9aZ9Uv.js} +3 -3
  246. package/web/app/immutable/nodes/{14.CgITgBOZ.js → 14.BW4XzZI8.js} +1 -1
  247. package/web/app/immutable/nodes/{15.CCzIPJGf.js → 15.Cto8qDz0.js} +1 -1
  248. package/web/app/immutable/nodes/{16.CbtJfPHZ.js → 16.SivUu1Ma.js} +1 -1
  249. package/web/app/immutable/nodes/{17.CelzCwXF.js → 17.Chj8J0QC.js} +1 -1
  250. package/web/app/immutable/nodes/{18.fqvApY-g.js → 18.BmSdt93l.js} +2 -2
  251. package/web/app/immutable/nodes/{2.t-1b60vK.js → 2.CL9-Oazw.js} +4 -4
  252. package/web/app/immutable/nodes/{3.4L0YPvZL.js → 3.6SFTvSLk.js} +1 -1
  253. package/web/app/immutable/nodes/{4.BLQgcpcU.js → 4.s2OPBDUw.js} +1 -1
  254. package/web/app/immutable/nodes/{5.Bp_OiOTI.js → 5.BhdLMGJF.js} +1 -1
  255. package/web/app/immutable/nodes/{6.CcuwCBp4.js → 6.DorNgn-a.js} +1 -1
  256. package/web/app/immutable/nodes/{7.B-TRUT7o.js → 7.9iHTOKVc.js} +1 -1
  257. package/web/app/immutable/nodes/{8.CaG5gby5.js → 8.DGrpVVpf.js} +6 -6
  258. package/web/app/immutable/nodes/9.rNDQpOBQ.js +39 -0
  259. package/web/app/version.json +1 -1
  260. package/web/generated/paraglide.js +49 -49
  261. package/web/index.html +18 -18
  262. package/web/app/immutable/chunks/2V4-p70U.js +0 -408
  263. package/web/app/immutable/chunks/BAGVOK-j.js +0 -4
  264. package/web/app/immutable/chunks/Bbkml6DP.js +0 -1
  265. package/web/app/immutable/chunks/D9jYN6_J.js +0 -1
  266. package/web/app/immutable/chunks/DF1uIj8u.js +0 -1
  267. package/web/app/immutable/chunks/DOPeTAKk.js +0 -13
  268. package/web/app/immutable/chunks/DgwMMJRI.js +0 -2
  269. package/web/app/immutable/chunks/TL85KYB9.js +0 -1
  270. package/web/app/immutable/chunks/ciTxbtqU.js +0 -1
  271. package/web/app/immutable/entry/start.BX3EKd8C.js +0 -1
  272. package/web/app/immutable/nodes/9.DosMxTmg.js +0 -39
@@ -1,2 +1,2 @@
1
- import{t as zt,bq as ee,_ as Jr,by as Lt,bu as ce,bs as ir,b as At,bo as c}from"./D9jYN6_J.js";import{bs as Wt,ca as pe,aD as e,bH as f,a5 as T,bA as x,W as l,bn as Nt,bV as N,c9 as n,aA as te,c6 as Mt,ay as ne,be as Ze,b$ as tt,b_ as k,bO as g,bS as p,bl as F,aB as P,bj as Xr,aw as rt,ai as Yr,c5 as rr,a as yr,a7 as je,aj as gt,cd as Gr,br as Zr}from"./DYhIMPy1.js";import{i as Q}from"./7eL9Pgig.js";import{k as Pr}from"./OPvMR-5p.js";import{g as Ct}from"./Bgw3O9rE.js";import{c as Rt}from"./DZyAzxxC.js";import{b as $r}from"./BaIAhI85.js";import{Iz as j,nw as kr,vy as Ir,vx as Cr,KO as Qr,KP as ea,et as ta,eu as ra,Ke as fr,lI as Gt,BF as vr,s1 as pr,nU as aa,zg as oa,a5 as gr,J3 as ia,Jl as na,n7 as sa,iE as la,ny as da,u$ as ca,zD as ua,Kd as fa}from"./BfbZn9QX.js";import{g as va}from"./DfN8_dcw.js";import{a as pa,h as ga,j as ma,c as _a,d as ha,i as wa,e as ba,f as mr,g as xa,b as Zt}from"./DFs6FJS8.js";import{bA as ya,bN as Pa,dr as $a}from"./asQ_ruFQ.js";import{w as _r,d as ka}from"./DxBGs1BP.js";import{f as Ia}from"./C3NeTp2u.js";import{k as Qt}from"./BWAGtvpD.js";import{f as Ce}from"./0qEvU7Aj.js";import{h as Ca}from"./Dkva_evl.js";import"./Cx31i8ng.js";import{s as at,g as It,f as hr}from"./C_EpV6jU.js";import{F as et,a8 as Fa,aq as Sa,aV as Da,a$ as jt,co as Ta,cp as Ea,bi as Ra,cN as Ua,c4 as Ma}from"./CAUaU8Wh.js";import{d as ja,f as Va,t as wr}from"./IRbjhecv.js";import{c as za}from"./ChTqQfQN.js";import"./CQbtnalz.js";import{$ as La}from"./2V4-p70U.js";import{i as er,b as Aa,a as Wa}from"./H2jLkRRS.js";import{C as ar,p as Na}from"./1_fC7X8z.js";import{M as Ba}from"./Brqq8vhd.js";import{t as tr,u as Fr}from"./B4gIvcP2.js";import"./ftma9Ybn.js";import"./d-Ep-sfP.js";import{M as Ut}from"./CrHk5l6X.js";import{V as Oa}from"./zGl9gaL0.js";import{bR as Ha,b5 as qa}from"./ChNPgGKQ.js";import{ap as Ka}from"./B79pUPc3.js";import{G as Ja}from"./CEsW1euQ.js";import{g as Xa,W as Ya}from"./BWTugGQ8.js";import{r as Ga,p as Za}from"./D-i7C44m.js";import{l as Qa}from"./BDDEv5gU.js";const Sr=j.createSelector((X,w)=>kr(X.pdfPreview.previews,w));var eo=P('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),to=P('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function or(X,w){if(new.target)return zt({component:or,...X});Wt(w,!0);const ye=()=>ce(we,"$preview",ot),[ot,re]=ir();let y=ee(w,"workspaceId",7),ae=ee(w,"filePath",7),Pe=ee(w,"gitRootId",7);const Fe=crypto.randomUUID(),we=Sr(Fe),ge=new WeakMap;let G=N(null),Je=N(void 0),z=N(1),B=N(1),se=N(!0),me=N(!1),Se=N(null),A=N(0);const be=n(()=>ye()?.error??e(Se)),De=n(()=>e(be)==="missing"?c.file_pdf_missing_error():e(be)==="large"?c.file_pdf_large_error():e(be)==="invalid"?c.file_pdf_invalid_error():e(be)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());pe(()=>{const d=y(),I=ae();e(A);const b=crypto.randomUUID();return j.dispatch(Ir(Fe,b,d,I,...Pe()?[{gitRootId:Pe()}]:[])),()=>{j.dispatch(Cr(Fe,b))}}),pe(()=>{const d=ye()?.url;let I=!1,b;if(f(G,null),f(Se,null),f(se,!0),f(z,1),f(B,1),!!d)return(async()=>{try{const{loadPdfDocument:W}=await Jr(async()=>{const{loadPdfDocument:_e}=await import("./cb1JHFKl.js");return{loadPdfDocument:_e}},[],import.meta.url);if(I)return;b=W(d);const U=await b.promise;I||f(G,U)}catch(W){if(I)return;f(Se,W instanceof Error&&W.name==="PasswordException"?"password":W instanceof Error&&W.name==="InvalidPDFException"?"invalid":"load",!0)}finally{I||f(se,!1)}})(),()=>{I=!0,b?.destroy()}}),pe(()=>{const d=e(G),I=e(Je),b=e(z),W=e(B);if(!d||!I)return;let U=!1,_e,E;const oe=()=>{if(!E)return;const J=(ge.get(E)??1)-1;J?ge.set(E,J):(ge.delete(E),E.cleanup()),E=void 0};return f(me,!0),(async()=>{try{if(E=await d.getPage(b),ge.set(E,(ge.get(E)??0)+1),U){oe();return}const J=E.getViewport({scale:W}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(J.width*J.height)));I.width=Math.ceil(J.width*Z),I.height=Math.ceil(J.height*Z),I.style.width=`${J.width}px`,I.style.height=`${J.height}px`,_e=E.render({canvas:I,viewport:J,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{U||f(Se,"invalid")}finally{U||f(me,!1)}})(),()=>{U=!0,_e?.cancel(),_e?_e.promise.then(oe,oe):oe()}});var Ne={get workspaceId(){return y()},set workspaceId(d){y(d),te()},get filePath(){return ae()},set filePath(d){ae(d),te()},get gitRootId(){return Pe()},set gitRootId(d){Pe(d),te()},$set:Lt,$on:(d,I)=>At(w,d,I)},Ve=to(),Be=T(Ve);{var o=d=>{{const I=W=>{Ze();var U=tt();k(()=>g(U,e(De))),l(W,U)};let b=n(()=>c.ui_combobox_retry_label());ja(d,{onRetry:()=>Mt(A),get retryLabel(){return e(b)},class:"m-auto",message:I,$$slots:{message:!0}})}},i=d=>{{let I=n(()=>c.file_pdf_loading_label());Va(d,{get label(){return e(I)},count:1,class:"p-4"})}},S=d=>{var I=eo(),b=ne(I),W=T(b);{let ue=n(()=>e(z)<=1);Ce(W,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>Mt(z,-1),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.file_pdf_previous_label()]),l(Ee,fe)},$$slots:{default:!0}})}var U=p(W,2),_e=F(U,!0),E=p(U,2);{let ue=n(()=>e(z)>=e(G).numPages);Ce(E,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>Mt(z),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.file_pdf_next_label()]),l(Ee,fe)},$$slots:{default:!0}})}var oe=p(E,2);{let ue=n(()=>e(B)<=.25);Ce(oe,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.max(.25,e(B)-.25),!0),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.editor_fileViewer_zoomOut_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}var J=p(oe,2),Z=F(J,!0),it=p(J,2);{let ue=n(()=>e(B)>=3);Ce(it,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.min(3,e(B)+.25),!0),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.editor_fileViewer_zoomIn_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}x(b);var nt=p(b,2),st=T(nt);let ut;$r(st,ue=>f(Je,ue),()=>e(Je)),x(nt),k((ue,Ee,ze)=>{g(_e,ue),g(Z,Ee),at(nt,"aria-busy",e(me)),at(st,"aria-label",ze),ut=It(st,"",ut,{visibility:e(me)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:tr(e(z)),total:tr(e(G).numPages)}),()=>Fr(e(B),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:tr(e(z))})]),l(d,I)};Q(Be,d=>{e(be)?d(o):e(se)||ye()?.status==="loading"?d(i,1):e(G)&&d(S,2)})}x(Ve),l(X,Ve);var Te=Nt(Ne);return re(),Te}const ro=j.createSelector((X,w)=>kr(X.videoPreview.previews,w));var ao=P('<p role="status"> </p>'),oo=P('<p role="alert"> </p>'),io=P('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),no=P('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),so=P('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Dr(X,w){if(new.target)return zt({component:Dr,...X});Wt(w,!0);const ye=()=>ce(Je,"$preview",ot),[ot,re]=ir();let y=ee(w,"sourceUrl",7),ae=ee(w,"fileName",7),Pe=ee(w,"allowDownload",7),Fe=ee(w,"downloading",7),we=ee(w,"onDownload",7),ge=N(null);const G=crypto.randomUUID(),Je=ro(G),z=n(()=>ye()?.status==="loading"),B=n(()=>e(ge)??ye()?.error);let se=!1,me=!1;Xr(()=>{me=!0,j.dispatch(Qr(G))});function Se(){if(me||e(z))return;const i=y().startsWith("workspace-file://")?new URL(y()):null;if(se||!i||!i.pathname.toLowerCase().endsWith(".mp4")){f(ge,"unsupported");return}se=!0,i.searchParams.set("preview","h264"),j.dispatch(ea(G,i.hostname,i.toString()))}function A(i){if(me)return;const S=i.currentTarget.error?.code;S===2?f(ge,"network"):S!==1&&Se()}var be={get sourceUrl(){return y()},set sourceUrl(i){y(i),te()},get fileName(){return ae()},set fileName(i){ae(i),te()},get allowDownload(){return Pe()},set allowDownload(i){Pe(i),te()},get downloading(){return Fe()},set downloading(i){Fe(i),te()},get onDownload(){return we()},set onDownload(i){we(i),te()},$set:Lt,$on:(i,S)=>At(w,i,S)},De=so(),Ne=T(De);{var Ve=i=>{var S=io(),Te=T(S),d=F(Te,!0),I=p(Te,2);{var b=E=>{var oe=ao(),J=F(oe,!0);k(Z=>g(J,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),l(E,oe)},W=E=>{var oe=oo(),J=F(oe,!0);k(Z=>g(J,Z),[()=>e(B)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),l(E,oe)};Q(I,E=>{e(z)?E(b):E(W,-1)})}var U=p(I,2);{var _e=E=>{Ce(E,{variant:"secondary",size:"sm",get onclick(){return we()},get disabled(){return Fe()},children:(oe,J)=>{Ze();var Z=tt();k(it=>g(Z,it),[()=>c.layout_fileTab_downloadFile_label()]),l(oe,Z)},$$slots:{default:!0}})};Q(U,E=>{Pe()&&E(_e)})}x(S),k(()=>g(d,ae())),l(i,S)},Be=i=>{var S=no(),Te=F(S,!0);k(d=>{at(S,"src",ye()?.url??y()),g(Te,d)},[()=>c.editor_fileViewer_videoUnsupported_label()]),rt("error",S,A),rt("loadedmetadata",S,d=>{d.currentTarget.videoWidth===0&&Se()}),l(i,S)};Q(Ne,i=>{e(B)||e(z)?i(Ve):i(Be,-1)})}x(De),l(X,De);var o=Nt(be);return re(),o}var lo=P('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),co=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),uo=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),fo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),vo=P("<!> ",1),po=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),go=P('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),mo=P('<td class="border border-border px-2 py-1 text-xs"> </td>'),_o=P("<tr></tr>"),ho=P('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),wo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),bo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),xo=P('<div class="h-full flex flex-col"><!></div>');function Vt(X,w){if(new.target)return zt({component:Vt,...X});Wt(w,!0);const ye=t=>{var a=lo(),u=ne(a);{let O=n(()=>c.editor_fileViewer_zoomOut_tooltip());Ce(u,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:oe,get title(){return e(O)},children:(D,V)=>{et(D,{get icon(){return Ta},size:"sm"})},$$slots:{default:!0}})}var m=p(u,2),h=F(m,!0),R=p(m,2);{let O=n(()=>c.editor_fileViewer_zoomIn_tooltip());Ce(R,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:E,get title(){return e(O)},children:(D,V)=>{et(D,{get icon(){return Ea},size:"sm"})},$$slots:{default:!0}})}Ze(2),k(()=>g(h,e(Se))),l(t,a)},ot=za("FileViewer");let re=ee(w,"filePath",7),y=ee(w,"fileContent",7,""),ae=ee(w,"sourceUrl",7),Pe=ee(w,"language",7),Fe=ee(w,"isBinary",7),we=ee(w,"allowDownload",7,!0),ge=ee(w,"onDownload",7),G=ee(w,"downloading",7,!1);const Je=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},z=n(()=>Je(re())),B=n(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let se=N(100),me=N(0);const Se=n(()=>Fr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let A=N(!1),be=N(0),De=N(0),Ne=N(0),Ve=N(0),Be=N(!1),o=null;function i(){const t=o;o=null,f(Be,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function S(t){if(t.button!==0||!t.isPrimary||o)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),o={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},f(Be,!0),t.preventDefault()}function Te(t){if(!(!o||t.pointerId!==o.pointerId)){if((t.buttons&1)===0){i();return}f(Ne,o.viewport.scrollLeft,!0),f(Ve,o.viewport.scrollTop,!0),f(be,e(be)+(t.clientX-o.x)),f(De,e(De)+(t.clientY-o.y)),o.x=t.clientX,o.y=t.clientY}}function d(t){t.pointerId===o?.pointerId&&i()}pe(()=>{re(),ae(),e(se),e(me),f(Ne,0),f(Ve,0)}),pe(()=>(re(),ae(),rr(()=>{i(),f(be,0),f(De,0)}),i));const I=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},b=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},W=()=>{if(ae())return ae();if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():Fe()?`data:${I(re())};base64,${y()}`:`data:${I(re())};base64,${y()}`;if(y()instanceof ArrayBuffer){const a=new Uint8Array(y()).reduce((m,h)=>m+String.fromCharCode(h),""),u=btoa(a);return`data:${I(re())};base64,${u}`}return""},U=()=>{if(ae())return ae();const t=b(re());if(!t)return"";if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():`data:${t};base64,${y()}`;const a=new Uint8Array(y()),u=[],m=32768;for(let h=0;h<a.length;h+=m)u.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(u.join(""))}`},_e=()=>{const t=typeof y()=="string"?new TextEncoder().encode(y()):new Uint8Array(y()),a=[],u=32768;for(let m=0;m<t.length;m+=u)a.push(String.fromCharCode(...t.subarray(m,m+u)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},E=()=>{f(se,Math.min(e(se)+25,500),!0)},oe=()=>{f(se,Math.max(e(se)-25,25),!0)},J=()=>{f(me,(e(me)+90)%360)},Z=()=>{if(!we()||G())return;if(ge()){ge()();return}const t=document.createElement("a");t.href=e(z)==="video"?U():e(z)==="svg"?_e():W(),t.download=e(B),t.click()},it=async()=>{try{const t=W(),a=new Image;a.crossOrigin="anonymous";const u=await new Promise((m,h)=>{a.onload=()=>{const R=document.createElement("canvas");R.width=a.naturalWidth,R.height=a.naturalHeight;const O=R.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),R.toBlob(D=>{D?m(D):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":u})]),f(A,!0),setTimeout(()=>f(A,!1),2e3)}catch(t){ot.error("Failed to copy image:",t)}},nt=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},st=t=>t.split(`
1
+ import{t as zt,bq as ee,_ as Jr,by as Lt,bu as ce,bs as ir,b as At,bo as c}from"./BKW86yq_.js";import{bs as Wt,ca as pe,aD as e,bH as f,a5 as T,bA as x,W as l,bn as Nt,bV as N,c9 as n,aA as te,c6 as Mt,ay as ne,be as Ze,b$ as tt,b_ as k,bO as g,bS as p,bl as F,aB as P,bj as Xr,aw as rt,ai as Yr,c5 as rr,a as yr,a7 as je,aj as gt,cd as Gr,br as Zr}from"./DYhIMPy1.js";import{i as Q}from"./CSelYXXo.js";import{k as Pr}from"./BIWW5pDn.js";import{g as Ct}from"./DctMspbi.js";import{c as Rt}from"./C1N6iAP2.js";import{b as $r}from"./BaIAhI85.js";import{Iz as j,nw as kr,vy as Ir,vx as Cr,KO as Qr,KP as ea,et as ta,eu as ra,Ke as fr,lI as Gt,BF as vr,s1 as pr,nU as aa,zg as oa,a5 as gr,J3 as ia,Jl as na,n7 as sa,iE as la,ny as da,u$ as ca,zD as ua,Kd as fa}from"./C4xNNtUj.js";import{g as va}from"./DfN8_dcw.js";import{a as pa,h as ga,j as ma,c as _a,d as ha,i as wa,e as ba,f as mr,g as xa,b as Zt}from"./BG2eX09y.js";import{bA as ya,bN as Pa,dr as $a}from"./BB4FgpiZ.js";import{w as _r,d as ka}from"./DxBGs1BP.js";import{f as Ia}from"./BcLSwxTf.js";import{k as Qt}from"./qvZYvB9N.js";import{f as Ce}from"./zqCR6Knb.js";import{h as Ca}from"./CsvSUZwX.js";import"./D9WJ9yaW.js";import{s as at,g as It,f as hr}from"./Bs7Hg6Iw.js";import{F as et,a8 as Fa,aq as Sa,aV as Da,a$ as jt,co as Ta,cp as Ea,bi as Ra,cN as Ua,c4 as Ma}from"./DmY0GWNY.js";import{d as ja,f as Va,t as wr}from"./CTMYdigD.js";import{c as za}from"./ChTqQfQN.js";import"./CS4C4Dqz.js";import{$ as La}from"./B0tYoxIu.js";import{i as er,b as Aa,a as Wa}from"./H2jLkRRS.js";import{C as ar,p as Na}from"./R_Ru9hwD.js";import{M as Ba}from"./DHNaVZzM.js";import{t as tr,u as Fr}from"./BW1uSKLL.js";import"./BBhsbqLJ.js";import"./V_ABjOKq.js";import{M as Ut}from"./E9kqzP8d.js";import{V as Oa}from"./CPE7SIVP.js";import{bR as Ha,b5 as qa}from"./DlOpwiIn.js";import{ap as Ka}from"./5qgyaXHk.js";import{G as Ja}from"./CEsW1euQ.js";import{g as Xa,W as Ya}from"./EF8Lgcvo.js";import{r as Ga,p as Za}from"./DiLuZbm3.js";import{l as Qa}from"./B6jO8Woe.js";const Sr=j.createSelector((X,w)=>kr(X.pdfPreview.previews,w));var eo=P('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),to=P('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function or(X,w){if(new.target)return zt({component:or,...X});Wt(w,!0);const ye=()=>ce(we,"$preview",ot),[ot,re]=ir();let y=ee(w,"workspaceId",7),ae=ee(w,"filePath",7),Pe=ee(w,"gitRootId",7);const Fe=crypto.randomUUID(),we=Sr(Fe),ge=new WeakMap;let G=N(null),Je=N(void 0),z=N(1),B=N(1),se=N(!0),me=N(!1),Se=N(null),A=N(0);const be=n(()=>ye()?.error??e(Se)),De=n(()=>e(be)==="missing"?c.file_pdf_missing_error():e(be)==="large"?c.file_pdf_large_error():e(be)==="invalid"?c.file_pdf_invalid_error():e(be)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());pe(()=>{const d=y(),I=ae();e(A);const b=crypto.randomUUID();return j.dispatch(Ir(Fe,b,d,I,...Pe()?[{gitRootId:Pe()}]:[])),()=>{j.dispatch(Cr(Fe,b))}}),pe(()=>{const d=ye()?.url;let I=!1,b;if(f(G,null),f(Se,null),f(se,!0),f(z,1),f(B,1),!!d)return(async()=>{try{const{loadPdfDocument:W}=await Jr(async()=>{const{loadPdfDocument:_e}=await import("./cb1JHFKl.js");return{loadPdfDocument:_e}},[],import.meta.url);if(I)return;b=W(d);const U=await b.promise;I||f(G,U)}catch(W){if(I)return;f(Se,W instanceof Error&&W.name==="PasswordException"?"password":W instanceof Error&&W.name==="InvalidPDFException"?"invalid":"load",!0)}finally{I||f(se,!1)}})(),()=>{I=!0,b?.destroy()}}),pe(()=>{const d=e(G),I=e(Je),b=e(z),W=e(B);if(!d||!I)return;let U=!1,_e,E;const oe=()=>{if(!E)return;const J=(ge.get(E)??1)-1;J?ge.set(E,J):(ge.delete(E),E.cleanup()),E=void 0};return f(me,!0),(async()=>{try{if(E=await d.getPage(b),ge.set(E,(ge.get(E)??0)+1),U){oe();return}const J=E.getViewport({scale:W}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(J.width*J.height)));I.width=Math.ceil(J.width*Z),I.height=Math.ceil(J.height*Z),I.style.width=`${J.width}px`,I.style.height=`${J.height}px`,_e=E.render({canvas:I,viewport:J,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{U||f(Se,"invalid")}finally{U||f(me,!1)}})(),()=>{U=!0,_e?.cancel(),_e?_e.promise.then(oe,oe):oe()}});var Ne={get workspaceId(){return y()},set workspaceId(d){y(d),te()},get filePath(){return ae()},set filePath(d){ae(d),te()},get gitRootId(){return Pe()},set gitRootId(d){Pe(d),te()},$set:Lt,$on:(d,I)=>At(w,d,I)},Ve=to(),Be=T(Ve);{var o=d=>{{const I=W=>{Ze();var U=tt();k(()=>g(U,e(De))),l(W,U)};let b=n(()=>c.ui_combobox_retry_label());ja(d,{onRetry:()=>Mt(A),get retryLabel(){return e(b)},class:"m-auto",message:I,$$slots:{message:!0}})}},i=d=>{{let I=n(()=>c.file_pdf_loading_label());Va(d,{get label(){return e(I)},count:1,class:"p-4"})}},S=d=>{var I=eo(),b=ne(I),W=T(b);{let ue=n(()=>e(z)<=1);Ce(W,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>Mt(z,-1),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.file_pdf_previous_label()]),l(Ee,fe)},$$slots:{default:!0}})}var U=p(W,2),_e=F(U,!0),E=p(U,2);{let ue=n(()=>e(z)>=e(G).numPages);Ce(E,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>Mt(z),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.file_pdf_next_label()]),l(Ee,fe)},$$slots:{default:!0}})}var oe=p(E,2);{let ue=n(()=>e(B)<=.25);Ce(oe,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.max(.25,e(B)-.25),!0),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.editor_fileViewer_zoomOut_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}var J=p(oe,2),Z=F(J,!0),it=p(J,2);{let ue=n(()=>e(B)>=3);Ce(it,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.min(3,e(B)+.25),!0),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.editor_fileViewer_zoomIn_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}x(b);var nt=p(b,2),st=T(nt);let ut;$r(st,ue=>f(Je,ue),()=>e(Je)),x(nt),k((ue,Ee,ze)=>{g(_e,ue),g(Z,Ee),at(nt,"aria-busy",e(me)),at(st,"aria-label",ze),ut=It(st,"",ut,{visibility:e(me)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:tr(e(z)),total:tr(e(G).numPages)}),()=>Fr(e(B),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:tr(e(z))})]),l(d,I)};Q(Be,d=>{e(be)?d(o):e(se)||ye()?.status==="loading"?d(i,1):e(G)&&d(S,2)})}x(Ve),l(X,Ve);var Te=Nt(Ne);return re(),Te}const ro=j.createSelector((X,w)=>kr(X.videoPreview.previews,w));var ao=P('<p role="status"> </p>'),oo=P('<p role="alert"> </p>'),io=P('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),no=P('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),so=P('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Dr(X,w){if(new.target)return zt({component:Dr,...X});Wt(w,!0);const ye=()=>ce(Je,"$preview",ot),[ot,re]=ir();let y=ee(w,"sourceUrl",7),ae=ee(w,"fileName",7),Pe=ee(w,"allowDownload",7),Fe=ee(w,"downloading",7),we=ee(w,"onDownload",7),ge=N(null);const G=crypto.randomUUID(),Je=ro(G),z=n(()=>ye()?.status==="loading"),B=n(()=>e(ge)??ye()?.error);let se=!1,me=!1;Xr(()=>{me=!0,j.dispatch(Qr(G))});function Se(){if(me||e(z))return;const i=y().startsWith("workspace-file://")?new URL(y()):null;if(se||!i||!i.pathname.toLowerCase().endsWith(".mp4")){f(ge,"unsupported");return}se=!0,i.searchParams.set("preview","h264"),j.dispatch(ea(G,i.hostname,i.toString()))}function A(i){if(me)return;const S=i.currentTarget.error?.code;S===2?f(ge,"network"):S!==1&&Se()}var be={get sourceUrl(){return y()},set sourceUrl(i){y(i),te()},get fileName(){return ae()},set fileName(i){ae(i),te()},get allowDownload(){return Pe()},set allowDownload(i){Pe(i),te()},get downloading(){return Fe()},set downloading(i){Fe(i),te()},get onDownload(){return we()},set onDownload(i){we(i),te()},$set:Lt,$on:(i,S)=>At(w,i,S)},De=so(),Ne=T(De);{var Ve=i=>{var S=io(),Te=T(S),d=F(Te,!0),I=p(Te,2);{var b=E=>{var oe=ao(),J=F(oe,!0);k(Z=>g(J,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),l(E,oe)},W=E=>{var oe=oo(),J=F(oe,!0);k(Z=>g(J,Z),[()=>e(B)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),l(E,oe)};Q(I,E=>{e(z)?E(b):E(W,-1)})}var U=p(I,2);{var _e=E=>{Ce(E,{variant:"secondary",size:"sm",get onclick(){return we()},get disabled(){return Fe()},children:(oe,J)=>{Ze();var Z=tt();k(it=>g(Z,it),[()=>c.layout_fileTab_downloadFile_label()]),l(oe,Z)},$$slots:{default:!0}})};Q(U,E=>{Pe()&&E(_e)})}x(S),k(()=>g(d,ae())),l(i,S)},Be=i=>{var S=no(),Te=F(S,!0);k(d=>{at(S,"src",ye()?.url??y()),g(Te,d)},[()=>c.editor_fileViewer_videoUnsupported_label()]),rt("error",S,A),rt("loadedmetadata",S,d=>{d.currentTarget.videoWidth===0&&Se()}),l(i,S)};Q(Ne,i=>{e(B)||e(z)?i(Ve):i(Be,-1)})}x(De),l(X,De);var o=Nt(be);return re(),o}var lo=P('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),co=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),uo=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),fo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),vo=P("<!> ",1),po=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),go=P('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),mo=P('<td class="border border-border px-2 py-1 text-xs"> </td>'),_o=P("<tr></tr>"),ho=P('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),wo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),bo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),xo=P('<div class="h-full flex flex-col"><!></div>');function Vt(X,w){if(new.target)return zt({component:Vt,...X});Wt(w,!0);const ye=t=>{var a=lo(),u=ne(a);{let O=n(()=>c.editor_fileViewer_zoomOut_tooltip());Ce(u,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:oe,get title(){return e(O)},children:(D,V)=>{et(D,{get icon(){return Ta},size:"sm"})},$$slots:{default:!0}})}var m=p(u,2),h=F(m,!0),R=p(m,2);{let O=n(()=>c.editor_fileViewer_zoomIn_tooltip());Ce(R,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:E,get title(){return e(O)},children:(D,V)=>{et(D,{get icon(){return Ea},size:"sm"})},$$slots:{default:!0}})}Ze(2),k(()=>g(h,e(Se))),l(t,a)},ot=za("FileViewer");let re=ee(w,"filePath",7),y=ee(w,"fileContent",7,""),ae=ee(w,"sourceUrl",7),Pe=ee(w,"language",7),Fe=ee(w,"isBinary",7),we=ee(w,"allowDownload",7,!0),ge=ee(w,"onDownload",7),G=ee(w,"downloading",7,!1);const Je=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},z=n(()=>Je(re())),B=n(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let se=N(100),me=N(0);const Se=n(()=>Fr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let A=N(!1),be=N(0),De=N(0),Ne=N(0),Ve=N(0),Be=N(!1),o=null;function i(){const t=o;o=null,f(Be,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function S(t){if(t.button!==0||!t.isPrimary||o)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),o={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},f(Be,!0),t.preventDefault()}function Te(t){if(!(!o||t.pointerId!==o.pointerId)){if((t.buttons&1)===0){i();return}f(Ne,o.viewport.scrollLeft,!0),f(Ve,o.viewport.scrollTop,!0),f(be,e(be)+(t.clientX-o.x)),f(De,e(De)+(t.clientY-o.y)),o.x=t.clientX,o.y=t.clientY}}function d(t){t.pointerId===o?.pointerId&&i()}pe(()=>{re(),ae(),e(se),e(me),f(Ne,0),f(Ve,0)}),pe(()=>(re(),ae(),rr(()=>{i(),f(be,0),f(De,0)}),i));const I=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},b=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},W=()=>{if(ae())return ae();if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():Fe()?`data:${I(re())};base64,${y()}`:`data:${I(re())};base64,${y()}`;if(y()instanceof ArrayBuffer){const a=new Uint8Array(y()).reduce((m,h)=>m+String.fromCharCode(h),""),u=btoa(a);return`data:${I(re())};base64,${u}`}return""},U=()=>{if(ae())return ae();const t=b(re());if(!t)return"";if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():`data:${t};base64,${y()}`;const a=new Uint8Array(y()),u=[],m=32768;for(let h=0;h<a.length;h+=m)u.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(u.join(""))}`},_e=()=>{const t=typeof y()=="string"?new TextEncoder().encode(y()):new Uint8Array(y()),a=[],u=32768;for(let m=0;m<t.length;m+=u)a.push(String.fromCharCode(...t.subarray(m,m+u)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},E=()=>{f(se,Math.min(e(se)+25,500),!0)},oe=()=>{f(se,Math.max(e(se)-25,25),!0)},J=()=>{f(me,(e(me)+90)%360)},Z=()=>{if(!we()||G())return;if(ge()){ge()();return}const t=document.createElement("a");t.href=e(z)==="video"?U():e(z)==="svg"?_e():W(),t.download=e(B),t.click()},it=async()=>{try{const t=W(),a=new Image;a.crossOrigin="anonymous";const u=await new Promise((m,h)=>{a.onload=()=>{const R=document.createElement("canvas");R.width=a.naturalWidth,R.height=a.naturalHeight;const O=R.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),R.toBlob(D=>{D?m(D):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":u})]),f(A,!0),setTimeout(()=>f(A,!1),2e3)}catch(t){ot.error("Failed to copy image:",t)}},nt=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},st=t=>t.split(`
2
2
  `).map(u=>u.split(",").map(m=>m.trim()));var ut={get filePath(){return re()},set filePath(t){re(t),te()},get fileContent(){return y()},set fileContent(t=""){y(t),te()},get sourceUrl(){return ae()},set sourceUrl(t){ae(t),te()},get language(){return Pe()},set language(t){Pe(t),te()},get isBinary(){return Fe()},set isBinary(t){Fe(t),te()},get allowDownload(){return we()},set allowDownload(t=!0){we(t),te()},get onDownload(){return ge()},set onDownload(t){ge(t),te()},get downloading(){return G()},set downloading(t=!1){G(t),te()},$set:Lt,$on:(t,a)=>At(w,t,a)},ue=xo();rt("blur",yr,i);var Ee=T(ue);{var ze=t=>{var a=co(),u=T(a),m=T(u);ye(m);var h=p(m,2);{let he=n(()=>c.editor_fileViewer_rotate_tooltip());Ce(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:J,get title(){return e(he)},children:($e,He)=>{et($e,{get icon(){return Fa},size:"sm"})},$$slots:{default:!0}})}var R=p(h,4);{let he=n(()=>c.editor_fileViewer_copyImage_tooltip());Ce(R,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:it,get title(){return e(he)},children:($e,He)=>{var ke=je(),St=ne(ke);{var Dt=Ie=>{et(Ie,{get icon(){return Sa},size:"sm",class:"text-green-500"})},Ye=Ie=>{et(Ie,{get icon(){return Da},size:"sm"})};Q(St,Ie=>{e(A)?Ie(Dt):Ie(Ye,-1)})}l($e,ke)},$$slots:{default:!0}})}var O=p(R,2);{let he=n(()=>!we()||G()),$e=n(()=>c.editor_fileViewer_download_tooltip());Ce(O,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(he)},get title(){return e($e)},children:(He,ke)=>{et(He,{get icon(){return jt},size:"sm"})},$$slots:{default:!0}})}var D=p(O,2),V=F(D,!0);x(u);var H=p(u,2),xe=F(H);x(a),k(he=>{g(V,e(B)),hr(H,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(Be)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),It(H,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(Ve)??""}px;`),at(xe,"src",he),at(xe,"alt",e(B)),It(xe,`translate: ${e(be)??""}px ${e(De)??""}px; transform: scale(${e(se)/100}) rotate(${e(me)??""}deg); transition: transform 0.2s;`)},[()=>W()]),gt("pointerdown",H,S),gt("pointermove",H,Te),gt("pointerup",H,d),rt("pointercancel",H,d),rt("lostpointercapture",H,d),l(t,a)},fe=t=>{var a=uo(),u=T(a),m=T(u);ye(m);var h=p(m,2);{let H=n(()=>!we()||G()),xe=n(()=>c.editor_fileViewer_download_tooltip());Ce(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(H)},get title(){return e(xe)},children:(he,$e)=>{et(he,{get icon(){return jt},size:"sm"})},$$slots:{default:!0}})}var R=p(h,2),O=F(R,!0);x(u);var D=p(u,2),V=F(D);x(a),k(H=>{g(O,e(B)),hr(D,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(Be)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),It(D,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(Ve)??""}px;`),at(V,"src",H),at(V,"alt",e(B)),It(V,`translate: ${e(be)??""}px ${e(De)??""}px; transform: scale(${e(se)/100});`)},[()=>_e()]),gt("pointerdown",D,S),gt("pointermove",D,Te),gt("pointerup",D,d),rt("pointercancel",D,d),rt("lostpointercapture",D,d),l(t,a)},Le=t=>{const a=n(U);var u=je(),m=ne(u);Pr(m,()=>re()+e(a),h=>{Dr(h,{get sourceUrl(){return e(a)},get fileName(){return e(B)},get allowDownload(){return we()},get downloading(){return G()},onDownload:Z})}),l(t,u)},mt=t=>{var a=fo(),u=p(T(a),2),m=F(u,!0),h=p(u,2),R=T(h),O=p(R);x(h),x(a),k((D,V)=>{g(m,e(B)),at(R,"src",D),g(O,` ${V??""}`)},[()=>W(),()=>c.editor_fileViewer_audioUnsupported_label()]),l(t,a)},Bt=t=>{var a=po(),u=p(T(a),2),m=F(u,!0),h=p(u,2);{let R=n(()=>!we()||G());Ce(h,{size:"sm",variant:"secondary",onclick:Z,get disabled(){return e(R)},children:(O,D)=>{var V=vo(),H=ne(V);et(H,{get icon(){return jt},size:"sm",class:"mr-2"});var xe=p(H);k(he=>g(xe,` ${he??""}`),[()=>c.editor_fileViewer_downloadPdf_label()]),l(O,V)},$$slots:{default:!0}})}x(a),k(R=>g(m,R),[()=>c.editor_fileViewer_pdfUnavailable_label()]),l(t,a)},Ot=t=>{{let a=n(()=>nt(y().toString()));ar(t,{get value(){return e(a)},language:"json",get fileName(){return re()},lineNumbers:!0,readOnly:!0})}},Oe=t=>{const a=n(()=>st(y().toString()));var u=ho(),m=T(u),h=T(m),R=T(h);Ct(R,23,()=>e(a)[0]||[],(D,V)=>`header-${V}-${D}`,(D,V)=>{var H=go(),xe=F(H,!0);k(()=>g(xe,e(V))),l(D,H)}),x(R),x(h);var O=p(h);Ct(O,23,()=>e(a).slice(1),(D,V)=>`row-${V}`,(D,V,H)=>{var xe=_o();Ct(xe,23,()=>e(V),(he,$e)=>`cell-${e(H)}-${$e}`,(he,$e)=>{var He=mo(),ke=F(He,!0);k(()=>g(ke,e($e))),l(he,He)}),x(xe),l(D,xe)}),x(O),x(m),x(u),l(t,u)},Xe=t=>{var a=wo(),u=p(T(a),2),m=F(u,!0),h=p(u,2),R=F(h,!0);x(a),k(O=>{g(m,e(B)),g(R,O)},[()=>c.editor_fileViewer_archive_label()]),l(t,a)},Ht=t=>{var a=bo(),u=p(T(a),2),m=F(u,!0),h=p(u,2),R=F(h,!0);x(a),k(O=>{g(m,e(B)),g(R,O)},[()=>c.editor_fileViewer_binary_label()]),l(t,a)},Ft=t=>{{let a=n(()=>y().toString());ar(t,{get value(){return e(a)},get language(){return Pe()},get fileName(){return re()},lineNumbers:!0,highlightActiveLine:!0})}};Q(Ee,t=>{e(z)==="image"?t(ze):e(z)==="svg"?t(fe,1):e(z)==="video"?t(Le,2):e(z)==="audio"?t(mt,3):e(z)==="pdf"?t(Bt,4):e(z)==="json"?t(Ot,5):e(z)==="csv"?t(Oe,6):e(z)==="archive"?t(Xe,7):e(z)==="binary"?t(Ht,8):t(Ft,-1)})}return x(ue),l(X,ue),Nt(ut)}Yr(["pointerdown","pointermove","pointerup"]);const yo=/access denied|permission denied|outside (?:the )?workspace/i,Po=/file not found|no such file or directory/i;function $o(X){return yo.test(X)?"access-denied":X===c.files_read_notFound_error()||Po.test(X)?"not-found":"generic"}function ko(X){switch(X){case"access-denied":return c.layout_fileTab_errorAccessDenied_label();case"not-found":return c.layout_fileTab_errorNotFound_label();case"generic":return c.layout_fileTab_errorGeneric_label()}}var Io=P("<!> <!>",1),Co=P("<!> <!> <!>",1),Fo=P('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),br=P('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),So=P('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),xr=P('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),Do=P('<div class="flex items-center gap-3"><!> <!></div>'),To=P('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),Eo=P('<p class="text-xs"> </p>'),Ro=P("<li><!></li>"),Uo=P('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),Mo=P('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),jo=P('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),Vo=P('<div class="h-full overflow-auto p-4"><!></div>');function zo(X,w){if(new.target)return zt({component:zo,...X});Wt(w,!0);const ye=()=>ce(Ot,"$workspace",A),ot=()=>ce(_e,"$fileContentStore",A),re=()=>ce(E,"$fileLoadingStore",A),y=()=>ce(oe,"$fileSavingStore",A),ae=()=>ce(J,"$fileErrorStore",A),Pe=()=>ce(Z,"$fileErrorInfoStore",A),Fe=()=>ce(it,"$homeView$",A),we=()=>ce(nt,"$fileNotFoundCandidatesStore",A),ge=()=>ce(st,"$isFileBinaryStore",A),G=()=>ce(ut,"$isFileDirtyStore",A),Je=()=>ce(ue,"$fileLastUpdatedStore",A),z=()=>ce(Ee,"$ftChanges$",A),B=()=>ce(Bt,"$gutterRead$",A),se=()=>ce(Ve,"$lineWrapping",A),me=()=>ce(Be,"$diffIndicators",A),Se=()=>ce(Le,"$rootMediaPreview",A),[A,be]=ir(),De=r=>{var s=Io(),$=ne(s);{var C=de=>{var Ae=je(),qe=ne(Ae);Rt(qe,()=>Ut,(pt,xt)=>{xt(pt,{get icon(){return Ra},get label(){return e(he)},disabled:!0})}),l(de,Ae)};Q($,de=>{!e(_t)&&!e(b)&&!e(V)&&de(C)})}var le=p($,2);{var Re=de=>{{let Ae=n(()=>!e(Tt)||!e(Ye)),qe=n(()=>!e(b)&&(!e(Tt)||!e(Ye)));Oa(de,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(Tt)},get previewEnabled(){return e(Ye)},onTogglePreview:()=>f(Ye,!e(Ye)),get showWrap(){return e(Ae)},get wrapEnabled(){return se()},onToggleWrap:()=>j.dispatch(na()),get showDiff(){return e(qe)},get diffEnabled(){return me()},onToggleDiff:()=>j.dispatch(ia())})}};Q(le,de=>{o().filePath&&!e(_t)&&!e(V)&&de(Re)})}l(r,s)},Ne=r=>{var s=je(),$=ne(s);{var C=le=>{var Re=Co(),de=ne(Re);{var Ae=We=>{var Ge=je(),dt=ne(Ge);{let yt=n(()=>c.layout_fileTab_goToChanges_tooltip());Rt(dt,()=>Ut,(Pt,$t)=>{$t(Pt,{get icon(){return Ma},get label(){return e(yt)},onclick:Lr})})}l(We,Ge)};Q(de,We=>{e(Rr)&&We(Ae)})}var qe=p(de,2);{var pt=We=>{var Ge=je(),dt=ne(Ge);{let yt=n(()=>c.layout_fileTab_downloadFile_label()),Pt=n(()=>!e(wt)||e(lt));Rt(dt,()=>Ut,($t,Jt)=>{Jt($t,{get icon(){return jt},get label(){return e(yt)},onclick:Et,get disabled(){return e(Pt)}})})}l(We,Ge)};Q(qe,We=>{e(Qe)&&We(pt)})}var xt=p(qe,2);{let We=n(()=>c.layout_fileTab_deleteFile_tooltip());Rt(xt,()=>Ut,(Ge,dt)=>{dt(Ge,{get icon(){return Ua},get label(){return e(We)},onclick:Ar,destructive:!0})})}l(le,Re)};Q($,le=>{o().filePath&&!e(_t)&&!e(b)&&le(C)})}l(r,s)},Ve=Ha(),Be=qa();let o=ee(w,"tab",7),i=ee(w,"workspaceId",7),S=ee(w,"isActive",7),Te=ee(w,"isPanelFocused",7);pe(()=>{const r=i();if(!(!S()||!r||e(d)))return j.dispatch(ta(r,"files")),()=>j.dispatch(ra(r,"files"))});const d=n(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),I=n(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),b=n(()=>!!e(d)),W=n(()=>o().filePath?Ia(o().filePath,e(d)):o().filePath),U=Gr(e(W));pe(()=>{U.set(e(W))});const _e=pa(i(),U),E=ga(i(),U),oe=ma(i(),U),J=_a(i(),U),Z=ha(i(),U),it=Qa(i()),nt=wa(i(),U),st=ba(i(),U),ut=mr(i(),U),ue=xa(i(),U),Ee=ya(i()),ze=va(),fe=crypto.randomUUID(),Le=Sr(fe),mt=`file-gutter:${crypto.randomUUID()}`,Bt=Pa(i(),mt),Ot=$a(i()),Oe=n(()=>ye()?.worktreePath||ye()?.repositoryPath||ye()?.path||null),Xe=n(ot),Ht=Xa();pe(()=>{e(Xe)!==null&&e(Xe)!==void 0&&Ht?.markContentLoaded()});const Ft=n(re),t=n(y),a=n(ae),u=n(()=>e(a)?$o(e(a)):"generic"),m=n(()=>e(a)?Ga(Pe()):null);let h=N(0),R=!1;pe(()=>{const r=Fe();if(!r||r.unavailable){R=!1;return}e(m)&&!R&&(R=!0,rr(()=>Mt(h)))});const O=5,D=n(()=>(we()??[]).slice(0,O)),V=n(ge),H=n(G),xe=n(Je),he=n(()=>e(t)?c.ui_saveIndicator_saving_tooltip():e(H)?c.ui_saveIndicator_autoSaving_tooltip():c.ui_saveIndicator_saved_tooltip());let $e=N(null),He=N(Zr([])),ke=N(null),St=N(void 0),Dt=N(void 0),Ye=N(!0);pe(()=>{const r=o().data?.line,s=o().data?.jumpTimestamp;!r||s!==void 0&&s===e(Dt)||(f(Dt,s,!0),f(St,{line:r},!0),f(Ye,!1))});const Ie=n(()=>e(d)?_r(o().filePath,e(I)):null),_t=n(()=>e(d)?!e(Ie):!!(o().filePath&&(Aa(o().filePath)||e(Oe)&&Wa(o().filePath,e(Oe))))),ht=n(()=>o().filePath&&e(Oe)?er(o().filePath)?o().filePath:`${e(Oe)}/${o().filePath}`:null),ft=n(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),vt=n(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Qe=n(()=>i()&&/^[A-Za-z0-9._-]+$/.test(i())?_r(o().filePath,e(Oe)):null),Tr=n(()=>!e(d)&&e(Qe)?e(Qe).split("/").slice(0,-1).join("/"):void 0),qt=n(()=>e(ft)||e(vt)?e(Qe):null),nr=n(()=>e(d)&&e(vt)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[o().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);pe(()=>{if(!S()||!e(d)||!e(Ie)||!e(nr))return;const r=crypto.randomUUID();return j.dispatch(Ir(fe,r,i(),e(Ie),{gitRootId:e(d),mimeType:e(nr)})),()=>j.dispatch(Cr(fe,r))});let lt=N(!1);const wt=n(()=>!!e(Qe)&&!e(Ft)&&(!e(vt)||e(ke)===e(Qe))),sr=n(()=>e(ke)&&i()?`workspace-file://${i()}/${e(ke).split("/").map(encodeURIComponent).join("/")}`:null),Kt=n(()=>o().filePath?da(o().filePath):"plaintext"),Tt=n(()=>e(Kt)==="markdown");pe(()=>{if(!S()||e(ft)||e(d))return;const r=e(qt),s=o().filePath,$=i(),C=o().id;if(f(ke,null),!r||!s||!$)return;let le=!1;const Re=()=>!le&&i()===$&&o().id===C&&o().filePath===s;return(async()=>{let de=!1;try{de=(await Ca("file.stat",{workspaceId:$,path:r}))?.isFile===!0}catch{}if(!Re())return;if(de){f(ke,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){f(ke,r,!0);return}const{candidates:Ae,truncated:qe}=await La($,r);if(Re()){if(!qe&&Ae.length===1){j.dispatch(fr($,s,Ae[0],C));return}f(ke,r,!0)}})(),()=>{le=!0}});function Er(r,s){return!!(r.file===s||r.relativePath===s||r.relativePath&&s.endsWith("/"+r.relativePath)||r.file&&s.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+s)||r.file&&r.file.endsWith("/"+s))}const bt=n(()=>e(b)||!o().filePath?null:z().find(r=>Er(r,o().filePath))??null),Rr=n(()=>!!e(bt));pe(()=>{if(e(b))return;const r=i(),s=o().filePath,$=e(Oe);return()=>{if(!r||!s)return;const C=Zt.select(j.state,r,s);if(C?.kind!=="editable-text")return;const le=Gt(C.localContent),Re=mr.select(j.state,r,s),de=er(s)?s:$?`${$}/${s}`:null;Re&&de&&j.dispatch(vr(r,s,de,le))}}),pe(()=>{const r=o().filePath,s=e(ht),$=i();if(e(h),!S())return;const C=!e(d)&&!!r&&er(r)&&!e(Oe);r&&$&&!e(_t)&&!e(vt)&&!e(ft)&&!C&&(e(d)&&e(Ie)&&e(W)?j.dispatch(pr($,e(W),s??r,{gitRoot:{id:e(d),relativePath:e(Ie)}})):j.dispatch(pr($,r,s??r)))});function Ur(){return e(Xe)??""}function Mr(r){e(b)||e(V)||!o().filePath||!i()||!e(ht)||j.dispatch(fa(i(),o().filePath,Gt(r)))}function jr(){if(e(b)||e(V)||!o().filePath||!e(ht)||e(Xe)===null||e(t))return;const r=Zt.select(j.state,i(),o().filePath);r?.kind==="editable-text"&&j.dispatch(vr(i(),o().filePath,e(ht),Gt(r.localContent)))}function Vr(r){const s=o().filePath;!s||!i()||(j.dispatch(ua(i(),s)),j.dispatch(fr(i(),s,r,o().id)))}pe(()=>{const r=o().filePath,s=e(bt);if(!r||!s){f(He,[],!0);return}if(!S())return;const $=i(),C=crypto.randomUUID();return j.dispatch(aa($,mt,C,{kind:"diffs",path:r,staged:s.stage==="staged"})),()=>{j.dispatch(oa($,mt,C))}}),pe(()=>{const r=B(),s=r?.result?.kind==="diffs"?r.result.chunks:[],$=s.find(C=>C.file===o().filePath)??s[0];f(He,$?Na($.chunks.map(C=>({oldStart:C.oldStart,oldLines:C.oldLines,newStart:C.newStart,newLines:C.newLines,lines:C.lines.map(le=>(le.type===gr.Addition?"+":le.type===gr.Deletion?"-":" ")+le.content)}))):[],!0)});function zr(r){const s=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),$=Re=>Ja(r,Ka(Re),s);if($("editor.save")){r.preventDefault(),e(H)&&!e(t)&&jr();return}const C=$("editor.undo")?"undo":$("editor.redo")?"redo":$("editor.toggle-task-list")?"toggle-task-list":$("editor.copy")?"copy":$("editor.select-all")?"select-all":null;if(!C||e(b)&&C!=="copy"&&C!=="select-all")return;C!=="toggle-task-list"&&e($e)?.runShortcut(C)&&r.preventDefault()}function Lr(r){if(!o().filePath||!e(bt))return;const s=r?.metaKey||r?.ctrlKey||!1,C=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;j.dispatch(ca(i(),e(bt),{filePath:o().filePath,changeId:e(bt).id,openInAdjacentPanel:s,sourcePanelId:C}))}async function Et(){const r=e(Qe);if(!(e(b)||!r||!i()||!e(wt)||e(lt))){f(lt,!0);try{const s=await ka(i(),r,e(Oe));!s?.success&&!s?.canceled&&Qt.error(s?.error?.message||c.layout_fileTab_downloadFailed_error())}catch{Qt.error(c.layout_fileTab_downloadFailed_error())}finally{f(lt,!1)}}}function Ar(){const r=e(ht);if(e(b)||!o().filePath||!i()||!r)return;const s=sa(Zt.select(j.state,i(),o().filePath));if(!s){Qt.error(c.ui_reversibleActions_failed_error({message:c.fileExplorer_tree_undoUnavailable_error()}));return}j.dispatch(la(i(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:s}))}pe(()=>{if(!ze||!S())return;const r={isDirty:!e(b)&&e(H),isSaving:!e(b)&&e(t)};rr(()=>{ze.registerActions({display:De,actions:Ne}),ze.registerState(r)})});var Wr={get tab(){return o()},set tab(r){o(r),te()},get workspaceId(){return i()},set workspaceId(r){i(r),te()},get isActive(){return S()},set isActive(r){S(r),te()},get isPanelFocused(){return Te()},set isPanelFocused(r){Te(r),te()},$set:Lt,$on:(r,s)=>At(w,r,s)},lr=je();rt("keydown",yr,r=>S()&&zr(r));var Nr=ne(lr);{var Br=r=>{var s=je(),$=ne(s);Pr($,()=>o().filePath,C=>{var le=je(),Re=ne(le);{var de=_=>{var v=Fo(),M=T(v),q=F(M,!0),L=p(M,2),Ue=F(L,!0);x(v),k(Y=>{g(q,Y),g(Ue,o().filePath)},[()=>c.layout_fileTab_outsideWorkspace_label()]),l(_,v)},Ae=_=>{var v=je(),M=ne(v);{var q=L=>{or(L,{get workspaceId(){return i()},get filePath(){return e(Ie)},get gitRootId(){return e(d)}})};Q(M,L=>{S()&&L(q)})}l(_,v)},qe=_=>{var v=je(),M=ne(v);{var q=Y=>{var K=br(),ie=T(K),Me=F(ie,!0);x(K),k(ve=>g(Me,ve),[()=>c.layout_fileTab_errorLoading_label()]),l(Y,K)},L=Y=>{Vt(Y,{get filePath(){return o().filePath},get sourceUrl(){return Se().url},allowDownload:!1})},Ue=Y=>{var K=So(),ie=T(K),Me=F(ie,!0);x(K),k(ve=>g(Me,ve),[()=>c.layout_fileTab_preparing_label()]),l(Y,K)};Q(M,Y=>{Se()?.error?Y(q):Se()?.url?Y(L,1):Y(Ue,-1)})}l(_,v)},pt=_=>{var v=je(),M=ne(v);{var q=L=>{or(L,{get workspaceId(){return i()},get filePath(){return e(qt)}})};Q(M,L=>{S()&&L(q)})}l(_,v)},xt=_=>{var v=br(),M=T(v),q=F(M,!0);x(v),k(L=>g(q,L),[()=>c.file_pdf_load_error()]),l(_,v)},We=_=>{{let v=n(()=>e(ke)??o().filePath),M=n(()=>!e(b)&&e(wt));Vt(_,{get filePath(){return e(v)},get sourceUrl(){return e(sr)},onDownload:Et,get allowDownload(){return e(M)},get downloading(){return e(lt)}})}},Ge=_=>{var v=xr(),M=T(v),q=F(M,!0);x(v),k(L=>g(q,L),[()=>c.layout_fileTab_preparing_label()]),l(_,v)},dt=_=>{var v=To(),M=T(v);Ct(M,20,()=>[...Array(20).keys()],q=>q,(q,L)=>{var Ue=Do(),Y=T(Ue);wr(Y,{class:"h-3 w-8 shrink-0"});var K=p(Y,2);wr(K,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),x(Ue),l(q,Ue)}),x(M),x(v),l(_,v)},yt=_=>{{let v=n(()=>Za(e(m)));Ya(_,{get view(){return e(v)}})}},Pt=_=>{var v=Mo(),M=T(v),q=F(M,!0),L=p(M,2),Ue=F(L,!0),Y=p(L,2);{var K=ve=>{var Ke=Eo(),ct=F(Ke,!0);k(()=>g(ct,e(a))),l(ve,Ke)};Q(Y,ve=>{e(u)==="generic"&&ve(K)})}var ie=p(Y,2);{var Me=ve=>{var Ke=Uo(),ct=ne(Ke),Xt=F(ct,!0),dr=p(ct,2);Ct(dr,20,()=>e(D),kt=>kt,(kt,cr)=>{var Yt=Ro(),qr=T(Yt);Ce(qr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Vr(cr),children:(Kr,Lo)=>{Ze();var ur=tt();k(()=>g(ur,cr)),l(Kr,ur)},$$slots:{default:!0}}),x(Yt),l(kt,Yt)}),x(dr),k(kt=>g(Xt,kt),[()=>c.layout_fileTab_didYouMean_label()]),l(ve,Ke)};Q(ie,ve=>{e(D).length>0&&ve(Me)})}x(v),k(ve=>{g(q,ve),g(Ue,o().filePath)},[()=>ko(e(u))]),l(_,v)},$t=_=>{var v=jo(),M=T(v),q=F(M,!0),L=p(M,2),Ue=F(L,!0),Y=p(L,2);{var K=ie=>{{let Me=n(()=>!e(wt)||e(lt));Ce(ie,{variant:"secondary",size:"sm",onclick:Et,get disabled(){return e(Me)},children:(ve,Ke)=>{Ze();var ct=tt();k(Xt=>g(ct,Xt),[()=>c.layout_fileTab_downloadFile_label()]),l(ve,ct)},$$slots:{default:!0}})}};Q(Y,ie=>{!e(b)&&e(Qe)&&ie(K)})}x(v),k(ie=>{g(q,ie),g(Ue,o().filePath)},[()=>c.editor_fileViewer_binary_label()]),l(_,v)},Jt=_=>{const v=n(()=>o().filePath?.toLowerCase().endsWith(".svg"));var M=je(),q=ne(M);{var L=K=>{{let ie=n(()=>o().filePath||""),Me=n(()=>!e(b)&&e(wt));Vt(K,{get filePath(){return e(ie)},get fileContent(){return e(Xe)},get language(){return e(Kt)},get isBinary(){return e(V)},onDownload:Et,get allowDownload(){return e(Me)},get downloading(){return e(lt)}})}},Ue=K=>{var ie=Vo(),Me=T(ie);Ba(Me,{get content(){return e(Xe)},get workspaceId(){return i()},get relativeMediaBase(){return e(Tr)},renderRichFencesAsCode:!0,renderDiagrams:!0}),x(ie),l(K,ie)},Y=K=>{var ie=Ur,Me=Mr;{let ve=n(()=>me()?e(He):[]);$r(ar(K,{get value(){return ie()},set value(Ke){Me(Ke)},get language(){return e(Kt)},get readOnly(){return e(b)},get fileName(){return o().filePath},get workspaceId(){return i()},get filePath(){return o().filePath},get lineWrapping(){return se()},get lineChanges(){return e(ve)},get jumpTo(){return e(St)},get externalContentVersion(){return e(xe)},get isPanelFocused(){return Te()}}),Ke=>f($e,Ke,!0),()=>e($e))}};Q(q,K=>{e(v)?K(L):e(Tt)&&e(Ye)?K(Ue,1):K(Y,-1)})}l(_,M)},Hr=_=>{var v=xr(),M=T(v),q=F(M,!0);x(v),k(L=>g(q,L),[()=>c.layout_fileTab_preparing_label()]),l(_,v)};Q(Re,_=>{e(_t)?_(de):e(d)&&e(ft)&&e(Ie)?_(Ae,1):e(d)&&e(vt)?_(qe,2):e(ft)&&e(qt)?_(pt,3):e(ft)?_(xt,4):e(sr)?_(We,5):e(vt)?_(Ge,6):e(Ft)?_(dt,7):e(m)?_(yt,8):e(a)?_(Pt,9):e(V)?_($t,10):e(Xe)!==null?_(Jt,11):_(Hr,-1)})}l(C,le)}),l(r,s)};Q(Nr,r=>{o().filePath&&r(Br)})}l(X,lr);var Or=Nt(Wr);return be(),Or}export{zo as default};
@@ -1 +1 @@
1
- import{p as e}from"./C_EpV6jU.js";const s=[{id:"input-message-state-matrix",title:"Input message states",states:["helper","error","success","light","dark","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];e({id:"input-message",source:"src/lib/components/ui/input-message/input-message.svelte",publicImport:"$lib/components/ui/input-message",legacyImports:[],exports:["InputMessage","inputMessageMetadata"],category:"pattern",owner:"design-system",callers:["src/features/hud/components/DockConversationPanel.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ScreenStatesCatalogPreview.svelte","src/lib/components/ui/file-input/file-input.svelte","src/lib/components/ui/input-group/input-group.svelte","src/lib/components/ui/input/input.svelte","src/lib/components/ui/textarea/textarea.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/input-message/input-message.test.ts",removalGate:"Retain while helper and error semantics use fast-tier motion.",dynamicImports:[],fixtures:s,useWhen:["Explain a field or announce a validation error directly below its input."]});const t=[{id:"input-state-matrix",title:"Input states",states:["default","rest","hover","focus","empty","placeholder","disabled","read-only","invalid","error","described","keyboard-focus","long-content","light","dark","zoom-200","file","compact-28","medium-32","large-36","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];e({id:"input",source:"src/lib/components/ui/input/input.svelte",publicImport:"$lib/components/ui/input",legacyImports:["$lib/components/ui/input/index.js","$lib/components/ui/input/input.svelte"],exports:["Input","inputMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/accept-changes/components/NativeReviewAttempt.svelte","src/features/accept-changes/components/NativeSidebarReview.svelte","src/features/accept-changes/components/RepositorySelectionEditor.svelte","src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/dev-console/DaemonLinksView.svelte","src/features/dev-console/TrafficInspector.svelte","src/features/home/HomeNewLabelDialog.svelte","src/features/home/HomeSearch.svelte","src/features/home/assistant-panels.preview.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/features/hud/components/DockOverview.svelte","src/features/hud/media-editor/recording/DockRecordingFrameMarks.svelte","src/features/inline-html/InlineHtmlPreview.svelte","src/features/layout/components/content-header/ContentHeader.svelte","src/features/onboarding/messages/DirectoryPickerView.svelte","src/features/onboarding/messages/GitHubRepoTab.svelte","src/features/onboarding/messages/LocalRepoTab.svelte","src/features/onboarding/messages/NewProjectTab.svelte","src/lib/component-catalog/CatalogShell.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/component-catalog/renderers/OverlayCatalogPreview.svelte","src/lib/component-catalog/renderers/PopoversCatalogPreview.svelte","src/lib/component-catalog/renderers/ProposalCatalogPreview.svelte","src/lib/components/CommandPalette.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/browser/BrowserViewerTabHeader.svelte","src/lib/components/browser/BrowserViewportDialog.svelte","src/lib/components/browser/EmbeddedBrowser.svelte","src/lib/components/chat/AgentCard.svelte","src/lib/components/chat/AssistantThreadTitle.svelte","src/lib/components/chat/ChatMessageNavigator.svelte","src/lib/components/chat/TaskProgressControl.svelte","src/lib/components/chat/input/ContextPickerButton.svelte","src/lib/components/chat/input/SimpleRichInput.svelte","src/lib/components/chat/input/mention-results.preview.svelte","src/lib/components/chat/proposals/ProposalCard.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/code-review/walkthrough/WalkthroughCommentThread.svelte","src/lib/components/code-review/walkthrough/WalkthroughInlineComment.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/file-explorer/VirtualizedFileTree.svelte","src/lib/components/file-explorer/file-explorer-sidebar.svelte","src/lib/components/layout/ConnectBackendForm.svelte","src/lib/components/layout/WorkspaceTabGroupChip.svelte","src/lib/components/layout/panel-system/PanelTabBar.svelte","src/lib/components/modals/FeatureCodeDialog.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/confirm/modal-heading-spacing.preview.svelte","src/lib/components/patterns/settings/SettingsControl.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/terminal/QuakeTerminalOverlay.svelte","src/lib/components/terminal/RootQuakeTerminalOverlay.svelte","src/lib/components/terminal/SetupScriptBanner.svelte","src/lib/components/terminal/TerminalSidebar.svelte","src/lib/components/tiptap/BubbleMenu.svelte","src/lib/components/ui/EditableName.svelte","src/lib/components/ui/dropdown/Dropdown.svelte","src/lib/components/ui/menu-search.preview.svelte","src/lib/components/ui/message-composer/message-composer.svelte","src/lib/components/ui/panel-find-bar/PanelFindBar.svelte","src/lib/components/ui/searchable-combobox/searchable-combobox.svelte","src/lib/components/ui/select/select.test-harness.svelte","src/lib/components/ui/sidebar/sidebar-input.svelte","src/lib/components/ui/text-entry-focus.preview.svelte","src/lib/components/ui/tooltip/tooltip-audit.preview.svelte","src/lib/components/workspace/CompactWorkspaceInitializer.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/GitLabPickerList.svelte","src/lib/components/workspace/initializer/GitLabProjectPicker.svelte","src/lib/components/workspace/initializer/IssueSuggestions.svelte","src/lib/components/workspace/initializer/RepoSelector.svelte","src/lib/components/workspace/sidebar/BranchDisplay.svelte","src/lib/components/workspace/sidebar/CommitsTimeline.svelte","src/lib/components/workspace/sidebar/NotesPanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/SidebarExpandableSearch.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte","src/lib/components/workspace/sidebar/context-picker/LinearPicker.svelte","src/lib/components/workspace/sidebar/context-picker/SentryPicker.svelte","src/routes/sandbox/recipes/+page.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/input/input.test.ts",removalGate:"Retain while exported and binding, focus, validation, and fixture tests pass.",dynamicImports:[],fixtures:t});
1
+ import{p as e}from"./Bs7Hg6Iw.js";const s=[{id:"input-message-state-matrix",title:"Input message states",states:["helper","error","success","light","dark","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];e({id:"input-message",source:"src/lib/components/ui/input-message/input-message.svelte",publicImport:"$lib/components/ui/input-message",legacyImports:[],exports:["InputMessage","inputMessageMetadata"],category:"pattern",owner:"design-system",callers:["src/features/hud/components/DockConversationPanel.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ScreenStatesCatalogPreview.svelte","src/lib/components/ui/file-input/file-input.svelte","src/lib/components/ui/input-group/input-group.svelte","src/lib/components/ui/input/input.svelte","src/lib/components/ui/textarea/textarea.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/input-message/input-message.test.ts",removalGate:"Retain while helper and error semantics use fast-tier motion.",dynamicImports:[],fixtures:s,useWhen:["Explain a field or announce a validation error directly below its input."]});const t=[{id:"input-state-matrix",title:"Input states",states:["default","rest","hover","focus","empty","placeholder","disabled","read-only","invalid","error","described","keyboard-focus","long-content","light","dark","zoom-200","file","compact-28","medium-32","large-36","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0}];e({id:"input",source:"src/lib/components/ui/input/input.svelte",publicImport:"$lib/components/ui/input",legacyImports:["$lib/components/ui/input/index.js","$lib/components/ui/input/input.svelte"],exports:["Input","inputMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/accept-changes/components/NativeReviewAttempt.svelte","src/features/accept-changes/components/NativeSidebarReview.svelte","src/features/accept-changes/components/RepositorySelectionEditor.svelte","src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/dev-console/DaemonLinksView.svelte","src/features/dev-console/TrafficInspector.svelte","src/features/home/HomeNewLabelDialog.svelte","src/features/home/HomeSearch.svelte","src/features/home/assistant-panels.preview.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/features/hud/components/DockOverview.svelte","src/features/hud/media-editor/recording/DockRecordingFrameMarks.svelte","src/features/inline-html/InlineHtmlPreview.svelte","src/features/layout/components/content-header/ContentHeader.svelte","src/features/onboarding/messages/DirectoryPickerView.svelte","src/features/onboarding/messages/GitHubRepoTab.svelte","src/features/onboarding/messages/LocalRepoTab.svelte","src/features/onboarding/messages/NewProjectTab.svelte","src/lib/component-catalog/CatalogShell.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/component-catalog/renderers/OverlayCatalogPreview.svelte","src/lib/component-catalog/renderers/PopoversCatalogPreview.svelte","src/lib/component-catalog/renderers/ProposalCatalogPreview.svelte","src/lib/components/CommandPalette.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/browser/BrowserViewerTabHeader.svelte","src/lib/components/browser/BrowserViewportDialog.svelte","src/lib/components/browser/EmbeddedBrowser.svelte","src/lib/components/chat/AgentCard.svelte","src/lib/components/chat/AssistantThreadTitle.svelte","src/lib/components/chat/ChatMessageNavigator.svelte","src/lib/components/chat/TaskProgressControl.svelte","src/lib/components/chat/input/ContextPickerButton.svelte","src/lib/components/chat/input/SimpleRichInput.svelte","src/lib/components/chat/input/mention-results.preview.svelte","src/lib/components/chat/proposals/ProposalCard.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/code-review/walkthrough/WalkthroughCommentThread.svelte","src/lib/components/code-review/walkthrough/WalkthroughInlineComment.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/file-explorer/VirtualizedFileTree.svelte","src/lib/components/file-explorer/file-explorer-sidebar.svelte","src/lib/components/layout/ConnectBackendForm.svelte","src/lib/components/layout/WorkspaceTabGroupChip.svelte","src/lib/components/layout/panel-system/PanelTabBar.svelte","src/lib/components/modals/FeatureCodeDialog.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/confirm/modal-heading-spacing.preview.svelte","src/lib/components/patterns/settings/SettingsControl.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/terminal/QuakeTerminalOverlay.svelte","src/lib/components/terminal/RootQuakeTerminalOverlay.svelte","src/lib/components/terminal/SetupScriptBanner.svelte","src/lib/components/terminal/TerminalSidebar.svelte","src/lib/components/tiptap/BubbleMenu.svelte","src/lib/components/ui/EditableName.svelte","src/lib/components/ui/dropdown/Dropdown.svelte","src/lib/components/ui/menu-search.preview.svelte","src/lib/components/ui/message-composer/message-composer.svelte","src/lib/components/ui/panel-find-bar/PanelFindBar.svelte","src/lib/components/ui/searchable-combobox/searchable-combobox.svelte","src/lib/components/ui/select/select.test-harness.svelte","src/lib/components/ui/sidebar/sidebar-input.svelte","src/lib/components/ui/text-entry-focus.preview.svelte","src/lib/components/ui/tooltip/tooltip-audit.preview.svelte","src/lib/components/workspace/CompactWorkspaceInitializer.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/GitLabPickerList.svelte","src/lib/components/workspace/initializer/GitLabProjectPicker.svelte","src/lib/components/workspace/initializer/IssueSuggestions.svelte","src/lib/components/workspace/initializer/RepoSelector.svelte","src/lib/components/workspace/sidebar/BranchDisplay.svelte","src/lib/components/workspace/sidebar/CommitsTimeline.svelte","src/lib/components/workspace/sidebar/NotesPanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/SidebarExpandableSearch.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte","src/lib/components/workspace/sidebar/context-picker/LinearPicker.svelte","src/lib/components/workspace/sidebar/context-picker/SentryPicker.svelte","src/routes/sandbox/recipes/+page.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/input/input.test.ts",removalGate:"Retain while exported and binding, focus, validation, and fixture tests pass.",dynamicImports:[],fixtures:t});