@devmotion/cli 0.6.0 → 0.6.1

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 (786) hide show
  1. package/README.md +10 -8
  2. package/dist/index.js +16 -10
  3. package/package.json +39 -3
  4. package/studio/client/_app/immutable/chunks/{zdIjnFuo.js → 50k2wcLI.js} +1 -1
  5. package/studio/client/_app/immutable/chunks/50k2wcLI.js.br +0 -0
  6. package/studio/client/_app/immutable/chunks/50k2wcLI.js.gz +0 -0
  7. package/studio/client/_app/immutable/chunks/{EsOjj2Re.js → B0InQEem.js} +1 -1
  8. package/studio/client/_app/immutable/chunks/B0InQEem.js.br +0 -0
  9. package/studio/client/_app/immutable/chunks/B0InQEem.js.gz +0 -0
  10. package/studio/client/_app/immutable/chunks/{BslV7gY7.js → B0K-yEeN.js} +1 -1
  11. package/studio/client/_app/immutable/chunks/B0K-yEeN.js.br +0 -0
  12. package/studio/client/_app/immutable/chunks/B0K-yEeN.js.gz +0 -0
  13. package/studio/client/_app/immutable/chunks/{CTpKZT5_.js → B0ihW1uA.js} +1 -1
  14. package/studio/client/_app/immutable/chunks/B0ihW1uA.js.br +0 -0
  15. package/studio/client/_app/immutable/chunks/B0ihW1uA.js.gz +0 -0
  16. package/studio/client/_app/immutable/chunks/{Dw0S4s6I.js → B7-B7Rye.js} +1 -1
  17. package/studio/client/_app/immutable/chunks/B7-B7Rye.js.br +0 -0
  18. package/studio/client/_app/immutable/chunks/B7-B7Rye.js.gz +0 -0
  19. package/studio/client/_app/immutable/chunks/{D1FB0IUT.js → B73W4ug1.js} +1 -1
  20. package/studio/client/_app/immutable/chunks/B73W4ug1.js.br +0 -0
  21. package/studio/client/_app/immutable/chunks/B73W4ug1.js.gz +0 -0
  22. package/studio/client/_app/immutable/chunks/{BwG2gtjF.js → B7YKAaTG.js} +1 -1
  23. package/studio/client/_app/immutable/chunks/B7YKAaTG.js.br +0 -0
  24. package/studio/client/_app/immutable/chunks/B7YKAaTG.js.gz +0 -0
  25. package/studio/client/_app/immutable/chunks/{Bs7NW1Se.js → BBfFsDlX.js} +1 -1
  26. package/studio/client/_app/immutable/chunks/BBfFsDlX.js.br +0 -0
  27. package/studio/client/_app/immutable/chunks/BBfFsDlX.js.gz +0 -0
  28. package/studio/client/_app/immutable/chunks/{DUvwbcGL.js → BD1Q_3Tu.js} +1 -1
  29. package/studio/client/_app/immutable/chunks/BD1Q_3Tu.js.br +0 -0
  30. package/studio/client/_app/immutable/chunks/BD1Q_3Tu.js.gz +0 -0
  31. package/studio/client/_app/immutable/chunks/{DXmIOUiy.js → BSkyxmk4.js} +1 -1
  32. package/studio/client/_app/immutable/chunks/BSkyxmk4.js.br +0 -0
  33. package/studio/client/_app/immutable/chunks/BSkyxmk4.js.gz +0 -0
  34. package/studio/client/_app/immutable/chunks/{C0WKYdwk.js → BWJBuCKd.js} +1 -1
  35. package/studio/client/_app/immutable/chunks/BWJBuCKd.js.br +0 -0
  36. package/studio/client/_app/immutable/chunks/BWJBuCKd.js.gz +0 -0
  37. package/studio/client/_app/immutable/chunks/{Cdg3o65X.js → BZ5m9NAb.js} +1 -1
  38. package/studio/client/_app/immutable/chunks/BZ5m9NAb.js.br +0 -0
  39. package/studio/client/_app/immutable/chunks/BZ5m9NAb.js.gz +0 -0
  40. package/studio/client/_app/immutable/chunks/{DkL6aOyN.js → BmyLmh6r.js} +1 -1
  41. package/studio/client/_app/immutable/chunks/BmyLmh6r.js.br +0 -0
  42. package/studio/client/_app/immutable/chunks/BmyLmh6r.js.gz +0 -0
  43. package/studio/client/_app/immutable/chunks/{D8o81YM9.js → Bxtw3VCv.js} +1 -1
  44. package/studio/client/_app/immutable/chunks/Bxtw3VCv.js.br +0 -0
  45. package/studio/client/_app/immutable/chunks/Bxtw3VCv.js.gz +0 -0
  46. package/studio/client/_app/immutable/chunks/{MA9VYZ9Y.js → C9sBKiYf.js} +1 -1
  47. package/studio/client/_app/immutable/chunks/C9sBKiYf.js.br +0 -0
  48. package/studio/client/_app/immutable/chunks/C9sBKiYf.js.gz +0 -0
  49. package/studio/client/_app/immutable/chunks/{vMKBQkkd.js → COl-CNj7.js} +1 -1
  50. package/studio/client/_app/immutable/chunks/COl-CNj7.js.br +0 -0
  51. package/studio/client/_app/immutable/chunks/COl-CNj7.js.gz +0 -0
  52. package/studio/client/_app/immutable/chunks/{BM9OfXL9.js → CT2a-dR9.js} +1 -1
  53. package/studio/client/_app/immutable/chunks/CT2a-dR9.js.br +0 -0
  54. package/studio/client/_app/immutable/chunks/CT2a-dR9.js.gz +0 -0
  55. package/studio/client/_app/immutable/chunks/{CTjBIV3u.js → CUCj7lD0.js} +1 -1
  56. package/studio/client/_app/immutable/chunks/CUCj7lD0.js.br +0 -0
  57. package/studio/client/_app/immutable/chunks/CUCj7lD0.js.gz +0 -0
  58. package/studio/client/_app/immutable/chunks/CXbT2p8d.js +1 -0
  59. package/studio/client/_app/immutable/chunks/CXbT2p8d.js.br +2 -0
  60. package/studio/client/_app/immutable/chunks/CXbT2p8d.js.gz +0 -0
  61. package/studio/client/_app/immutable/chunks/{AZ9rWnO0.js → Cdq6yEev.js} +1 -1
  62. package/studio/client/_app/immutable/chunks/Cdq6yEev.js.br +0 -0
  63. package/studio/client/_app/immutable/chunks/Cdq6yEev.js.gz +0 -0
  64. package/studio/client/_app/immutable/chunks/{D-QT1x8R.js → ChWA6krs.js} +1 -1
  65. package/studio/client/_app/immutable/chunks/ChWA6krs.js.br +0 -0
  66. package/studio/client/_app/immutable/chunks/ChWA6krs.js.gz +0 -0
  67. package/studio/client/_app/immutable/chunks/{DlG2SYaI.js → Cjo8pWm5.js} +1 -1
  68. package/studio/client/_app/immutable/chunks/Cjo8pWm5.js.br +0 -0
  69. package/studio/client/_app/immutable/chunks/Cjo8pWm5.js.gz +0 -0
  70. package/studio/client/_app/immutable/chunks/{BwnyT9Ny.js → Cms6Kv73.js} +1 -1
  71. package/studio/client/_app/immutable/chunks/Cms6Kv73.js.br +0 -0
  72. package/studio/client/_app/immutable/chunks/Cms6Kv73.js.gz +0 -0
  73. package/studio/client/_app/immutable/chunks/CpZPBLUC.js +4 -0
  74. package/studio/client/_app/immutable/chunks/CpZPBLUC.js.br +0 -0
  75. package/studio/client/_app/immutable/chunks/CpZPBLUC.js.gz +0 -0
  76. package/studio/client/_app/immutable/chunks/{BJKr5hge.js → Crbgd-F4.js} +1 -1
  77. package/studio/client/_app/immutable/chunks/Crbgd-F4.js.br +0 -0
  78. package/studio/client/_app/immutable/chunks/Crbgd-F4.js.gz +0 -0
  79. package/studio/client/_app/immutable/chunks/{CwPeYiWY.js → Cy-HgkQ4.js} +1 -1
  80. package/studio/client/_app/immutable/chunks/Cy-HgkQ4.js.br +0 -0
  81. package/studio/client/_app/immutable/chunks/Cy-HgkQ4.js.gz +0 -0
  82. package/studio/client/_app/immutable/chunks/{BM16VTgB.js → DTeYaQtG.js} +1 -1
  83. package/studio/client/_app/immutable/chunks/DTeYaQtG.js.br +0 -0
  84. package/studio/client/_app/immutable/chunks/DTeYaQtG.js.gz +0 -0
  85. package/studio/client/_app/immutable/chunks/{CVS8giU8.js → DlRdcK_L.js} +1 -1
  86. package/studio/client/_app/immutable/chunks/DlRdcK_L.js.br +0 -0
  87. package/studio/client/_app/immutable/chunks/DlRdcK_L.js.gz +0 -0
  88. package/studio/client/_app/immutable/chunks/{BgrSU1kg.js → DmhMUf0A.js} +1 -1
  89. package/studio/client/_app/immutable/chunks/DmhMUf0A.js.br +0 -0
  90. package/studio/client/_app/immutable/chunks/DmhMUf0A.js.gz +0 -0
  91. package/studio/client/_app/immutable/chunks/{Of4NhqMR.js → FOXaA4gY.js} +1 -1
  92. package/studio/client/_app/immutable/chunks/FOXaA4gY.js.br +0 -0
  93. package/studio/client/_app/immutable/chunks/FOXaA4gY.js.gz +0 -0
  94. package/studio/client/_app/immutable/chunks/{BW3LFrce.js → N203W5Pg.js} +1 -1
  95. package/studio/client/_app/immutable/chunks/N203W5Pg.js.br +0 -0
  96. package/studio/client/_app/immutable/chunks/N203W5Pg.js.gz +0 -0
  97. package/studio/client/_app/immutable/chunks/{BvSfBzuV.js → P0Tv_tIw.js} +1 -1
  98. package/studio/client/_app/immutable/chunks/P0Tv_tIw.js.br +0 -0
  99. package/studio/client/_app/immutable/chunks/P0Tv_tIw.js.gz +0 -0
  100. package/studio/client/_app/immutable/chunks/{CPRt510s.js → hBOeOFig.js} +1 -1
  101. package/studio/client/_app/immutable/chunks/hBOeOFig.js.br +0 -0
  102. package/studio/client/_app/immutable/chunks/hBOeOFig.js.gz +0 -0
  103. package/studio/client/_app/immutable/chunks/{CvEPOTmC.js → ovnFo7rR.js} +1 -1
  104. package/studio/client/_app/immutable/chunks/ovnFo7rR.js.br +0 -0
  105. package/studio/client/_app/immutable/chunks/ovnFo7rR.js.gz +0 -0
  106. package/studio/client/_app/immutable/chunks/{DhUtLNbU.js → uVN-AobW.js} +1 -1
  107. package/studio/client/_app/immutable/chunks/uVN-AobW.js.br +0 -0
  108. package/studio/client/_app/immutable/chunks/uVN-AobW.js.gz +0 -0
  109. package/studio/client/_app/immutable/chunks/{B6madqDo.js → zRQ7UKhy.js} +1 -1
  110. package/studio/client/_app/immutable/chunks/zRQ7UKhy.js.br +0 -0
  111. package/studio/client/_app/immutable/chunks/zRQ7UKhy.js.gz +0 -0
  112. package/studio/client/_app/immutable/entry/{app.DWvKq1JP.js → app.Bb1-Avnn.js} +2 -2
  113. package/studio/client/_app/immutable/entry/app.Bb1-Avnn.js.br +0 -0
  114. package/studio/client/_app/immutable/entry/app.Bb1-Avnn.js.gz +0 -0
  115. package/studio/client/_app/immutable/entry/start.A0YlQrYf.js +1 -0
  116. package/studio/client/_app/immutable/entry/start.A0YlQrYf.js.br +0 -0
  117. package/studio/client/_app/immutable/entry/start.A0YlQrYf.js.gz +0 -0
  118. package/studio/client/_app/immutable/nodes/{0.WXKHH_tm.js → 0.DCVNvTmX.js} +1 -1
  119. package/studio/client/_app/immutable/nodes/0.DCVNvTmX.js.br +0 -0
  120. package/studio/client/_app/immutable/nodes/0.DCVNvTmX.js.gz +0 -0
  121. package/studio/client/_app/immutable/nodes/{1.BiD305mI.js → 1.CmRLDilw.js} +1 -1
  122. package/studio/client/_app/immutable/nodes/1.CmRLDilw.js.br +0 -0
  123. package/studio/client/_app/immutable/nodes/1.CmRLDilw.js.gz +0 -0
  124. package/studio/client/_app/immutable/nodes/{10.CU1-ee2m.js → 10.DvnkCrU8.js} +1 -1
  125. package/studio/client/_app/immutable/nodes/10.DvnkCrU8.js.br +0 -0
  126. package/studio/client/_app/immutable/nodes/10.DvnkCrU8.js.gz +0 -0
  127. package/studio/client/_app/immutable/nodes/{11.CXaXEirJ.js → 11.BAjtxHy1.js} +1 -1
  128. package/studio/client/_app/immutable/nodes/11.BAjtxHy1.js.br +0 -0
  129. package/studio/client/_app/immutable/nodes/11.BAjtxHy1.js.gz +0 -0
  130. package/studio/client/_app/immutable/nodes/{12.DJvy6gDY.js → 12.BvB64zm8.js} +1 -1
  131. package/studio/client/_app/immutable/nodes/12.BvB64zm8.js.br +0 -0
  132. package/studio/client/_app/immutable/nodes/12.BvB64zm8.js.gz +0 -0
  133. package/studio/client/_app/immutable/nodes/{13.nfg2db27.js → 13.CH78fVPf.js} +1 -1
  134. package/studio/client/_app/immutable/nodes/13.CH78fVPf.js.br +0 -0
  135. package/studio/client/_app/immutable/nodes/13.CH78fVPf.js.gz +0 -0
  136. package/studio/client/_app/immutable/nodes/{14.Bs2fSwa1.js → 14.8vuEBoqV.js} +1 -1
  137. package/studio/client/_app/immutable/nodes/14.8vuEBoqV.js.br +0 -0
  138. package/studio/client/_app/immutable/nodes/14.8vuEBoqV.js.gz +0 -0
  139. package/studio/client/_app/immutable/nodes/{15.a3Pos74G.js → 15.3i0moZ5H.js} +1 -1
  140. package/studio/client/_app/immutable/nodes/15.3i0moZ5H.js.br +0 -0
  141. package/studio/client/_app/immutable/nodes/15.3i0moZ5H.js.gz +0 -0
  142. package/studio/client/_app/immutable/nodes/{16.2YL4xuJ4.js → 16.ybGyftC8.js} +1 -1
  143. package/studio/client/_app/immutable/nodes/16.ybGyftC8.js.br +0 -0
  144. package/studio/client/_app/immutable/nodes/16.ybGyftC8.js.gz +0 -0
  145. package/studio/client/_app/immutable/nodes/{17.CqCSgqIN.js → 17.CYzrPCDa.js} +1 -1
  146. package/studio/client/_app/immutable/nodes/17.CYzrPCDa.js.br +0 -0
  147. package/studio/client/_app/immutable/nodes/17.CYzrPCDa.js.gz +0 -0
  148. package/studio/client/_app/immutable/nodes/{18.5G3YRxMR.js → 18.DirIc_Wy.js} +1 -1
  149. package/studio/client/_app/immutable/nodes/18.DirIc_Wy.js.br +0 -0
  150. package/studio/client/_app/immutable/nodes/18.DirIc_Wy.js.gz +0 -0
  151. package/studio/client/_app/immutable/nodes/{19.Bu8-dRJn.js → 19.DUsQT7pl.js} +1 -1
  152. package/studio/client/_app/immutable/nodes/19.DUsQT7pl.js.br +0 -0
  153. package/studio/client/_app/immutable/nodes/19.DUsQT7pl.js.gz +0 -0
  154. package/studio/client/_app/immutable/nodes/{20.CIMlHVKg.js → 20.DXvj9EYW.js} +3 -3
  155. package/studio/client/_app/immutable/nodes/20.DXvj9EYW.js.br +0 -0
  156. package/studio/client/_app/immutable/nodes/20.DXvj9EYW.js.gz +0 -0
  157. package/studio/client/_app/immutable/nodes/{21.CqSlHdIO.js → 21.BeF6Us05.js} +1 -1
  158. package/studio/client/_app/immutable/nodes/21.BeF6Us05.js.br +0 -0
  159. package/studio/client/_app/immutable/nodes/21.BeF6Us05.js.gz +0 -0
  160. package/studio/client/_app/immutable/nodes/28.BG6e1lUz.js +8 -0
  161. package/studio/client/_app/immutable/nodes/28.BG6e1lUz.js.br +0 -0
  162. package/studio/client/_app/immutable/nodes/28.BG6e1lUz.js.gz +0 -0
  163. package/studio/client/_app/immutable/nodes/{3.C68UMDpf.js → 3.67JEtVr_.js} +1 -1
  164. package/studio/client/_app/immutable/nodes/3.67JEtVr_.js.br +0 -0
  165. package/studio/client/_app/immutable/nodes/3.67JEtVr_.js.gz +0 -0
  166. package/studio/client/_app/immutable/nodes/38.B2-fgBHl.js +1 -0
  167. package/studio/client/_app/immutable/nodes/38.B2-fgBHl.js.br +0 -0
  168. package/studio/client/_app/immutable/nodes/38.B2-fgBHl.js.gz +0 -0
  169. package/studio/client/_app/immutable/nodes/39.xOE6cIqx.js +87 -0
  170. package/studio/client/_app/immutable/nodes/39.xOE6cIqx.js.br +0 -0
  171. package/studio/client/_app/immutable/nodes/39.xOE6cIqx.js.gz +0 -0
  172. package/studio/client/_app/immutable/nodes/{4.BXcrgjpJ.js → 4.eLOMf6Qo.js} +1 -1
  173. package/studio/client/_app/immutable/nodes/4.eLOMf6Qo.js.br +0 -0
  174. package/studio/client/_app/immutable/nodes/4.eLOMf6Qo.js.gz +0 -0
  175. package/studio/client/_app/immutable/nodes/40.G8LiPkFz.js +15 -0
  176. package/studio/client/_app/immutable/nodes/40.G8LiPkFz.js.br +0 -0
  177. package/studio/client/_app/immutable/nodes/40.G8LiPkFz.js.gz +0 -0
  178. package/studio/client/_app/immutable/nodes/{41.CnqWY7Jk.js → 41.Ch6s5Jij.js} +1 -1
  179. package/studio/client/_app/immutable/nodes/41.Ch6s5Jij.js.br +0 -0
  180. package/studio/client/_app/immutable/nodes/41.Ch6s5Jij.js.gz +0 -0
  181. package/studio/client/_app/immutable/nodes/{42.CReCUw0y.js → 42.BAbXjzhO.js} +1 -1
  182. package/studio/client/_app/immutable/nodes/42.BAbXjzhO.js.br +0 -0
  183. package/studio/client/_app/immutable/nodes/42.BAbXjzhO.js.gz +0 -0
  184. package/studio/client/_app/immutable/nodes/{43.1HRdsmVg.js → 43.Ne1IVEDF.js} +1 -1
  185. package/studio/client/_app/immutable/nodes/43.Ne1IVEDF.js.br +0 -0
  186. package/studio/client/_app/immutable/nodes/43.Ne1IVEDF.js.gz +0 -0
  187. package/studio/client/_app/immutable/nodes/{44.Cm4deKzT.js → 44.CKWbCt6x.js} +1 -1
  188. package/studio/client/_app/immutable/nodes/44.CKWbCt6x.js.br +0 -0
  189. package/studio/client/_app/immutable/nodes/44.CKWbCt6x.js.gz +0 -0
  190. package/studio/client/_app/immutable/nodes/{45.C7eW4xJw.js → 45.HDl54cUB.js} +1 -1
  191. package/studio/client/_app/immutable/nodes/45.HDl54cUB.js.br +0 -0
  192. package/studio/client/_app/immutable/nodes/45.HDl54cUB.js.gz +0 -0
  193. package/studio/client/_app/immutable/nodes/{46.DNoqu48d.js → 46.BWaTn38i.js} +1 -1
  194. package/studio/client/_app/immutable/nodes/46.BWaTn38i.js.br +0 -0
  195. package/studio/client/_app/immutable/nodes/46.BWaTn38i.js.gz +0 -0
  196. package/studio/client/_app/immutable/nodes/{47.Kd91VHB_.js → 47.DiBh5wV2.js} +1 -1
  197. package/studio/client/_app/immutable/nodes/47.DiBh5wV2.js.br +0 -0
  198. package/studio/client/_app/immutable/nodes/47.DiBh5wV2.js.gz +0 -0
  199. package/studio/client/_app/immutable/nodes/{48.kXm-0_dx.js → 48.DHcyKz51.js} +1 -1
  200. package/studio/client/_app/immutable/nodes/48.DHcyKz51.js.br +0 -0
  201. package/studio/client/_app/immutable/nodes/48.DHcyKz51.js.gz +0 -0
  202. package/studio/client/_app/immutable/nodes/{49.Baeo5x8O.js → 49.BTfgPgiN.js} +1 -1
  203. package/studio/client/_app/immutable/nodes/49.BTfgPgiN.js.br +0 -0
  204. package/studio/client/_app/immutable/nodes/49.BTfgPgiN.js.gz +0 -0
  205. package/studio/client/_app/immutable/nodes/{5.BXcrgjpJ.js → 5.eLOMf6Qo.js} +1 -1
  206. package/studio/client/_app/immutable/nodes/5.eLOMf6Qo.js.br +0 -0
  207. package/studio/client/_app/immutable/nodes/5.eLOMf6Qo.js.gz +0 -0
  208. package/studio/client/_app/immutable/nodes/{7.0ElBSij4.js → 7.CRQTtQRR.js} +1 -1
  209. package/studio/client/_app/immutable/nodes/7.CRQTtQRR.js.br +0 -0
  210. package/studio/client/_app/immutable/nodes/7.CRQTtQRR.js.gz +0 -0
  211. package/studio/client/_app/immutable/nodes/{8.Cf03UWeS.js → 8.024dj7aw.js} +1 -1
  212. package/studio/client/_app/immutable/nodes/8.024dj7aw.js.br +0 -0
  213. package/studio/client/_app/immutable/nodes/8.024dj7aw.js.gz +0 -0
  214. package/studio/client/_app/immutable/nodes/{9.BCt9tK8K.js → 9.DgfRy3qm.js} +1 -1
  215. package/studio/client/_app/immutable/nodes/9.DgfRy3qm.js.br +0 -0
  216. package/studio/client/_app/immutable/nodes/9.DgfRy3qm.js.gz +0 -0
  217. package/studio/client/_app/version.json +1 -1
  218. package/studio/client/_app/version.json.br +0 -0
  219. package/studio/client/_app/version.json.gz +0 -0
  220. package/studio/prerendered/docs/api/errors.html +37 -37
  221. package/studio/prerendered/docs/api/errors.html.br +0 -0
  222. package/studio/prerendered/docs/api/errors.html.gz +0 -0
  223. package/studio/prerendered/docs/api/projects.html +37 -37
  224. package/studio/prerendered/docs/api/projects.html.br +0 -0
  225. package/studio/prerendered/docs/api/projects.html.gz +0 -0
  226. package/studio/prerendered/docs/api/renders.html +37 -37
  227. package/studio/prerendered/docs/api/renders.html.br +0 -0
  228. package/studio/prerendered/docs/api/renders.html.gz +0 -0
  229. package/studio/prerendered/docs/api/templates.html +37 -37
  230. package/studio/prerendered/docs/api/templates.html.br +0 -0
  231. package/studio/prerendered/docs/api/templates.html.gz +0 -0
  232. package/studio/prerendered/docs/api/webhooks.html +37 -37
  233. package/studio/prerendered/docs/api/webhooks.html.br +0 -0
  234. package/studio/prerendered/docs/api/webhooks.html.gz +0 -0
  235. package/studio/prerendered/docs/api.html +37 -37
  236. package/studio/prerendered/docs/api.html.br +0 -0
  237. package/studio/prerendered/docs/api.html.gz +0 -0
  238. package/studio/prerendered/docs/mcp/integrations/autogen.html +37 -37
  239. package/studio/prerendered/docs/mcp/integrations/autogen.html.br +0 -0
  240. package/studio/prerendered/docs/mcp/integrations/autogen.html.gz +0 -0
  241. package/studio/prerendered/docs/mcp/integrations/crewai.html +37 -37
  242. package/studio/prerendered/docs/mcp/integrations/crewai.html.br +0 -0
  243. package/studio/prerendered/docs/mcp/integrations/crewai.html.gz +0 -0
  244. package/studio/prerendered/docs/mcp/integrations/dify.html +37 -37
  245. package/studio/prerendered/docs/mcp/integrations/dify.html.br +0 -0
  246. package/studio/prerendered/docs/mcp/integrations/dify.html.gz +0 -0
  247. package/studio/prerendered/docs/mcp/integrations/flowise.html +37 -37
  248. package/studio/prerendered/docs/mcp/integrations/flowise.html.br +0 -0
  249. package/studio/prerendered/docs/mcp/integrations/flowise.html.gz +0 -0
  250. package/studio/prerendered/docs/mcp/integrations/langchain.html +37 -37
  251. package/studio/prerendered/docs/mcp/integrations/langchain.html.br +0 -0
  252. package/studio/prerendered/docs/mcp/integrations/langchain.html.gz +0 -0
  253. package/studio/prerendered/docs/mcp/integrations/llamaindex.html +37 -37
  254. package/studio/prerendered/docs/mcp/integrations/llamaindex.html.br +0 -0
  255. package/studio/prerendered/docs/mcp/integrations/llamaindex.html.gz +0 -0
  256. package/studio/prerendered/docs/mcp/integrations/make.html +37 -37
  257. package/studio/prerendered/docs/mcp/integrations/make.html.br +0 -0
  258. package/studio/prerendered/docs/mcp/integrations/make.html.gz +0 -0
  259. package/studio/prerendered/docs/mcp/integrations/n8n.html +37 -37
  260. package/studio/prerendered/docs/mcp/integrations/n8n.html.br +0 -0
  261. package/studio/prerendered/docs/mcp/integrations/n8n.html.gz +0 -0
  262. package/studio/prerendered/docs/mcp/integrations.html +37 -37
  263. package/studio/prerendered/docs/mcp/integrations.html.br +0 -0
  264. package/studio/prerendered/docs/mcp/integrations.html.gz +0 -0
  265. package/studio/prerendered/docs/mcp/plans.html +39 -39
  266. package/studio/prerendered/docs/mcp/plans.html.br +0 -0
  267. package/studio/prerendered/docs/mcp/plans.html.gz +0 -0
  268. package/studio/prerendered/docs/mcp/reference.html +57 -49
  269. package/studio/prerendered/docs/mcp/reference.html.br +0 -0
  270. package/studio/prerendered/docs/mcp/reference.html.gz +0 -0
  271. package/studio/prerendered/docs/mcp/setup.html +41 -41
  272. package/studio/prerendered/docs/mcp/setup.html.br +0 -0
  273. package/studio/prerendered/docs/mcp/setup.html.gz +0 -0
  274. package/studio/prerendered/docs/mcp.html +41 -41
  275. package/studio/prerendered/docs/mcp.html.br +0 -0
  276. package/studio/prerendered/docs/mcp.html.gz +0 -0
  277. package/studio/prerendered/docs.html +36 -36
  278. package/studio/prerendered/docs.html.br +0 -0
  279. package/studio/prerendered/docs.html.gz +0 -0
  280. package/studio/prerendered/dub/arabic.html +35 -35
  281. package/studio/prerendered/dub/arabic.html.br +0 -0
  282. package/studio/prerendered/dub/arabic.html.gz +0 -0
  283. package/studio/prerendered/dub/chinese-simplified.html +35 -35
  284. package/studio/prerendered/dub/chinese-simplified.html.br +0 -0
  285. package/studio/prerendered/dub/chinese-simplified.html.gz +0 -0
  286. package/studio/prerendered/dub/dutch.html +35 -35
  287. package/studio/prerendered/dub/dutch.html.br +0 -0
  288. package/studio/prerendered/dub/dutch.html.gz +0 -0
  289. package/studio/prerendered/dub/french.html +35 -35
  290. package/studio/prerendered/dub/french.html.br +0 -0
  291. package/studio/prerendered/dub/french.html.gz +0 -0
  292. package/studio/prerendered/dub/german.html +35 -35
  293. package/studio/prerendered/dub/german.html.br +0 -0
  294. package/studio/prerendered/dub/german.html.gz +0 -0
  295. package/studio/prerendered/dub/hindi.html +35 -35
  296. package/studio/prerendered/dub/hindi.html.br +0 -0
  297. package/studio/prerendered/dub/hindi.html.gz +0 -0
  298. package/studio/prerendered/dub/italian.html +35 -35
  299. package/studio/prerendered/dub/italian.html.br +0 -0
  300. package/studio/prerendered/dub/italian.html.gz +0 -0
  301. package/studio/prerendered/dub/japanese.html +35 -35
  302. package/studio/prerendered/dub/japanese.html.br +0 -0
  303. package/studio/prerendered/dub/japanese.html.gz +0 -0
  304. package/studio/prerendered/dub/korean.html +35 -35
  305. package/studio/prerendered/dub/korean.html.br +0 -0
  306. package/studio/prerendered/dub/korean.html.gz +0 -0
  307. package/studio/prerendered/dub/polish.html +35 -35
  308. package/studio/prerendered/dub/polish.html.br +0 -0
  309. package/studio/prerendered/dub/polish.html.gz +0 -0
  310. package/studio/prerendered/dub/portuguese.html +35 -35
  311. package/studio/prerendered/dub/portuguese.html.br +0 -0
  312. package/studio/prerendered/dub/portuguese.html.gz +0 -0
  313. package/studio/prerendered/dub/spanish.html +35 -35
  314. package/studio/prerendered/dub/spanish.html.br +0 -0
  315. package/studio/prerendered/dub/spanish.html.gz +0 -0
  316. package/studio/prerendered/sitemap.xml +90 -90
  317. package/studio/prerendered/sitemap.xml.br +0 -0
  318. package/studio/prerendered/sitemap.xml.gz +0 -0
  319. package/studio/prerendered/tools/add-captions/instagram.html +35 -35
  320. package/studio/prerendered/tools/add-captions/instagram.html.br +0 -0
  321. package/studio/prerendered/tools/add-captions/instagram.html.gz +0 -0
  322. package/studio/prerendered/tools/add-captions/linkedin.html +35 -35
  323. package/studio/prerendered/tools/add-captions/linkedin.html.br +0 -0
  324. package/studio/prerendered/tools/add-captions/linkedin.html.gz +0 -0
  325. package/studio/prerendered/tools/add-captions/tiktok.html +35 -35
  326. package/studio/prerendered/tools/add-captions/tiktok.html.br +0 -0
  327. package/studio/prerendered/tools/add-captions/tiktok.html.gz +0 -0
  328. package/studio/prerendered/tools/add-captions/twitter-x.html +35 -35
  329. package/studio/prerendered/tools/add-captions/twitter-x.html.br +0 -0
  330. package/studio/prerendered/tools/add-captions/twitter-x.html.gz +0 -0
  331. package/studio/prerendered/tools/add-captions/youtube.html +35 -35
  332. package/studio/prerendered/tools/add-captions/youtube.html.br +0 -0
  333. package/studio/prerendered/tools/add-captions/youtube.html.gz +0 -0
  334. package/studio/prerendered/tools/add-captions.html +39 -39
  335. package/studio/prerendered/tools/add-captions.html.br +0 -0
  336. package/studio/prerendered/tools/add-captions.html.gz +0 -0
  337. package/studio/prerendered/tools/auto-cut/linkedin.html +35 -35
  338. package/studio/prerendered/tools/auto-cut/linkedin.html.br +0 -0
  339. package/studio/prerendered/tools/auto-cut/linkedin.html.gz +0 -0
  340. package/studio/prerendered/tools/auto-cut/podcast.html +35 -35
  341. package/studio/prerendered/tools/auto-cut/podcast.html.br +0 -0
  342. package/studio/prerendered/tools/auto-cut/podcast.html.gz +0 -0
  343. package/studio/prerendered/tools/auto-cut/tiktok.html +35 -35
  344. package/studio/prerendered/tools/auto-cut/tiktok.html.br +0 -0
  345. package/studio/prerendered/tools/auto-cut/tiktok.html.gz +0 -0
  346. package/studio/prerendered/tools/auto-cut/youtube.html +35 -35
  347. package/studio/prerendered/tools/auto-cut/youtube.html.br +0 -0
  348. package/studio/prerendered/tools/auto-cut/youtube.html.gz +0 -0
  349. package/studio/prerendered/tools/auto-cut.html +39 -39
  350. package/studio/prerendered/tools/auto-cut.html.br +0 -0
  351. package/studio/prerendered/tools/auto-cut.html.gz +0 -0
  352. package/studio/prerendered/tools/generate-video/instagram.html +35 -35
  353. package/studio/prerendered/tools/generate-video/instagram.html.br +0 -0
  354. package/studio/prerendered/tools/generate-video/instagram.html.gz +0 -0
  355. package/studio/prerendered/tools/generate-video/tiktok.html +35 -35
  356. package/studio/prerendered/tools/generate-video/tiktok.html.br +0 -0
  357. package/studio/prerendered/tools/generate-video/tiktok.html.gz +0 -0
  358. package/studio/prerendered/tools/generate-video/twitter-x.html +35 -35
  359. package/studio/prerendered/tools/generate-video/twitter-x.html.br +0 -0
  360. package/studio/prerendered/tools/generate-video/twitter-x.html.gz +0 -0
  361. package/studio/prerendered/tools/generate-video/youtube.html +35 -35
  362. package/studio/prerendered/tools/generate-video/youtube.html.br +0 -0
  363. package/studio/prerendered/tools/generate-video/youtube.html.gz +0 -0
  364. package/studio/prerendered/tools/generate-video.html +39 -39
  365. package/studio/prerendered/tools/generate-video.html.br +0 -0
  366. package/studio/prerendered/tools/generate-video.html.gz +0 -0
  367. package/studio/prerendered/tools/laptop-3d-intro/linkedin.html +35 -35
  368. package/studio/prerendered/tools/laptop-3d-intro/linkedin.html.br +0 -0
  369. package/studio/prerendered/tools/laptop-3d-intro/linkedin.html.gz +0 -0
  370. package/studio/prerendered/tools/laptop-3d-intro/saas.html +35 -35
  371. package/studio/prerendered/tools/laptop-3d-intro/saas.html.br +0 -0
  372. package/studio/prerendered/tools/laptop-3d-intro/saas.html.gz +0 -0
  373. package/studio/prerendered/tools/laptop-3d-intro/twitter-x.html +35 -35
  374. package/studio/prerendered/tools/laptop-3d-intro/twitter-x.html.br +0 -0
  375. package/studio/prerendered/tools/laptop-3d-intro/twitter-x.html.gz +0 -0
  376. package/studio/prerendered/tools/laptop-3d-intro/youtube.html +35 -35
  377. package/studio/prerendered/tools/laptop-3d-intro/youtube.html.br +0 -0
  378. package/studio/prerendered/tools/laptop-3d-intro/youtube.html.gz +0 -0
  379. package/studio/prerendered/tools/laptop-3d-intro.html +39 -39
  380. package/studio/prerendered/tools/laptop-3d-intro.html.br +0 -0
  381. package/studio/prerendered/tools/laptop-3d-intro.html.gz +0 -0
  382. package/studio/prerendered/tools/screen-webcam-demo/linkedin.html +35 -35
  383. package/studio/prerendered/tools/screen-webcam-demo/linkedin.html.br +0 -0
  384. package/studio/prerendered/tools/screen-webcam-demo/linkedin.html.gz +0 -0
  385. package/studio/prerendered/tools/screen-webcam-demo/saas.html +35 -35
  386. package/studio/prerendered/tools/screen-webcam-demo/saas.html.br +0 -0
  387. package/studio/prerendered/tools/screen-webcam-demo/saas.html.gz +0 -0
  388. package/studio/prerendered/tools/screen-webcam-demo/twitter-x.html +35 -35
  389. package/studio/prerendered/tools/screen-webcam-demo/twitter-x.html.br +0 -0
  390. package/studio/prerendered/tools/screen-webcam-demo/twitter-x.html.gz +0 -0
  391. package/studio/prerendered/tools/screen-webcam-demo/youtube.html +35 -35
  392. package/studio/prerendered/tools/screen-webcam-demo/youtube.html.br +0 -0
  393. package/studio/prerendered/tools/screen-webcam-demo/youtube.html.gz +0 -0
  394. package/studio/prerendered/tools/screen-webcam-demo.html +39 -39
  395. package/studio/prerendered/tools/screen-webcam-demo.html.br +0 -0
  396. package/studio/prerendered/tools/screen-webcam-demo.html.gz +0 -0
  397. package/studio/prerendered/tools/screenshot-to-social/facebook.html +35 -35
  398. package/studio/prerendered/tools/screenshot-to-social/facebook.html.br +0 -0
  399. package/studio/prerendered/tools/screenshot-to-social/facebook.html.gz +0 -0
  400. package/studio/prerendered/tools/screenshot-to-social/instagram.html +35 -35
  401. package/studio/prerendered/tools/screenshot-to-social/instagram.html.br +0 -0
  402. package/studio/prerendered/tools/screenshot-to-social/instagram.html.gz +0 -0
  403. package/studio/prerendered/tools/screenshot-to-social/linkedin.html +35 -35
  404. package/studio/prerendered/tools/screenshot-to-social/linkedin.html.br +0 -0
  405. package/studio/prerendered/tools/screenshot-to-social/linkedin.html.gz +0 -0
  406. package/studio/prerendered/tools/screenshot-to-social/twitter-x.html +35 -35
  407. package/studio/prerendered/tools/screenshot-to-social/twitter-x.html.br +0 -0
  408. package/studio/prerendered/tools/screenshot-to-social/twitter-x.html.gz +0 -0
  409. package/studio/prerendered/tools/screenshot-to-social.html +39 -39
  410. package/studio/prerendered/tools/screenshot-to-social.html.br +0 -0
  411. package/studio/prerendered/tools/screenshot-to-social.html.gz +0 -0
  412. package/studio/prerendered/tools/translate-video/instagram.html +35 -35
  413. package/studio/prerendered/tools/translate-video/instagram.html.br +0 -0
  414. package/studio/prerendered/tools/translate-video/instagram.html.gz +0 -0
  415. package/studio/prerendered/tools/translate-video/linkedin.html +35 -35
  416. package/studio/prerendered/tools/translate-video/linkedin.html.br +0 -0
  417. package/studio/prerendered/tools/translate-video/linkedin.html.gz +0 -0
  418. package/studio/prerendered/tools/translate-video/tiktok.html +35 -35
  419. package/studio/prerendered/tools/translate-video/tiktok.html.br +0 -0
  420. package/studio/prerendered/tools/translate-video/tiktok.html.gz +0 -0
  421. package/studio/prerendered/tools/translate-video/youtube.html +35 -35
  422. package/studio/prerendered/tools/translate-video/youtube.html.br +0 -0
  423. package/studio/prerendered/tools/translate-video/youtube.html.gz +0 -0
  424. package/studio/prerendered/tools/translate-video.html +39 -39
  425. package/studio/prerendered/tools/translate-video.html.br +0 -0
  426. package/studio/prerendered/tools/translate-video.html.gz +0 -0
  427. package/studio/prerendered/tools/video-beautifier.html +39 -39
  428. package/studio/prerendered/tools/video-beautifier.html.br +0 -0
  429. package/studio/prerendered/tools/video-beautifier.html.gz +0 -0
  430. package/studio/prerendered/tools/video-to-browser/linkedin.html +35 -35
  431. package/studio/prerendered/tools/video-to-browser/linkedin.html.br +0 -0
  432. package/studio/prerendered/tools/video-to-browser/linkedin.html.gz +0 -0
  433. package/studio/prerendered/tools/video-to-browser/saas.html +35 -35
  434. package/studio/prerendered/tools/video-to-browser/saas.html.br +0 -0
  435. package/studio/prerendered/tools/video-to-browser/saas.html.gz +0 -0
  436. package/studio/prerendered/tools/video-to-browser/twitter-x.html +35 -35
  437. package/studio/prerendered/tools/video-to-browser/twitter-x.html.br +0 -0
  438. package/studio/prerendered/tools/video-to-browser/twitter-x.html.gz +0 -0
  439. package/studio/prerendered/tools/video-to-browser/youtube.html +35 -35
  440. package/studio/prerendered/tools/video-to-browser/youtube.html.br +0 -0
  441. package/studio/prerendered/tools/video-to-browser/youtube.html.gz +0 -0
  442. package/studio/prerendered/tools/video-to-browser.html +39 -39
  443. package/studio/prerendered/tools/video-to-browser.html.br +0 -0
  444. package/studio/prerendered/tools/video-to-browser.html.gz +0 -0
  445. package/studio/prerendered/tools/video-to-phone.html +39 -39
  446. package/studio/prerendered/tools/video-to-phone.html.br +0 -0
  447. package/studio/prerendered/tools/video-to-phone.html.gz +0 -0
  448. package/studio/prerendered/vs/canva.html +35 -35
  449. package/studio/prerendered/vs/canva.html.br +0 -0
  450. package/studio/prerendered/vs/canva.html.gz +0 -0
  451. package/studio/prerendered/vs/captions-ai.html +35 -35
  452. package/studio/prerendered/vs/captions-ai.html.br +0 -0
  453. package/studio/prerendered/vs/captions-ai.html.gz +0 -0
  454. package/studio/prerendered/vs/clipchamp.html +35 -35
  455. package/studio/prerendered/vs/clipchamp.html.br +0 -0
  456. package/studio/prerendered/vs/clipchamp.html.gz +0 -0
  457. package/studio/prerendered/vs/descript.html +35 -35
  458. package/studio/prerendered/vs/descript.html.br +0 -0
  459. package/studio/prerendered/vs/descript.html.gz +0 -0
  460. package/studio/prerendered/vs/kapwing.html +35 -35
  461. package/studio/prerendered/vs/kapwing.html.br +0 -0
  462. package/studio/prerendered/vs/kapwing.html.gz +0 -0
  463. package/studio/prerendered/vs/runway.html +35 -35
  464. package/studio/prerendered/vs/runway.html.br +0 -0
  465. package/studio/prerendered/vs/runway.html.gz +0 -0
  466. package/studio/prerendered/vs/submagic.html +35 -35
  467. package/studio/prerendered/vs/submagic.html.br +0 -0
  468. package/studio/prerendered/vs/submagic.html.gz +0 -0
  469. package/studio/prerendered/vs/veed.html +35 -35
  470. package/studio/prerendered/vs/veed.html.br +0 -0
  471. package/studio/prerendered/vs/veed.html.gz +0 -0
  472. package/studio/server/chunks/{0-DOWdCfPF.js → 0-Cc3gAS4p.js} +3 -3
  473. package/studio/server/chunks/{0-DOWdCfPF.js.map → 0-Cc3gAS4p.js.map} +1 -1
  474. package/studio/server/chunks/{1-D-sODN7x.js → 1-Dy_seaNI.js} +3 -3
  475. package/studio/server/chunks/{1-D-sODN7x.js.map → 1-Dy_seaNI.js.map} +1 -1
  476. package/studio/server/chunks/{11-Kh4ZWG_u.js → 11-C-PlF7Yv.js} +3 -3
  477. package/studio/server/chunks/{11-Kh4ZWG_u.js.map → 11-C-PlF7Yv.js.map} +1 -1
  478. package/studio/server/chunks/12-B7uLHwvO.js +9 -0
  479. package/studio/server/chunks/{12-uBBeSc-D.js.map → 12-B7uLHwvO.js.map} +1 -1
  480. package/studio/server/chunks/{13-Cpwv17_m.js → 13-FQtKQJ-7.js} +3 -3
  481. package/studio/server/chunks/{13-Cpwv17_m.js.map → 13-FQtKQJ-7.js.map} +1 -1
  482. package/studio/server/chunks/{14-DLhMIjy9.js → 14-jUAG5g6M.js} +6 -6
  483. package/studio/server/chunks/{14-DLhMIjy9.js.map → 14-jUAG5g6M.js.map} +1 -1
  484. package/studio/server/chunks/15-DUIb5U44.js +9 -0
  485. package/studio/server/chunks/{15-BP_ppf1w.js.map → 15-DUIb5U44.js.map} +1 -1
  486. package/studio/server/chunks/{16-CMimocs1.js → 16-BzVGx3U6.js} +3 -3
  487. package/studio/server/chunks/{16-CMimocs1.js.map → 16-BzVGx3U6.js.map} +1 -1
  488. package/studio/server/chunks/{17-CMQkb2J8.js → 17-D3oJTqf1.js} +3 -3
  489. package/studio/server/chunks/{17-CMQkb2J8.js.map → 17-D3oJTqf1.js.map} +1 -1
  490. package/studio/server/chunks/{18-DNvmtMLm.js → 18--CWW_sDL.js} +3 -3
  491. package/studio/server/chunks/{18-DNvmtMLm.js.map → 18--CWW_sDL.js.map} +1 -1
  492. package/studio/server/chunks/{19-D3jZiT6F.js → 19-DSQzx8mL.js} +3 -3
  493. package/studio/server/chunks/{19-D3jZiT6F.js.map → 19-DSQzx8mL.js.map} +1 -1
  494. package/studio/server/chunks/{20-C_7PzJ-k.js → 20-CbA0jAC4.js} +10 -10
  495. package/studio/server/chunks/{20-C_7PzJ-k.js.map → 20-CbA0jAC4.js.map} +1 -1
  496. package/studio/server/chunks/{3-H6DpF4Gm.js → 3-BnsefNYJ.js} +3 -3
  497. package/studio/server/chunks/{3-H6DpF4Gm.js.map → 3-BnsefNYJ.js.map} +1 -1
  498. package/studio/server/chunks/{4-CH3AFp_j.js → 4-BFZzAEZB.js} +3 -3
  499. package/studio/server/chunks/{4-CH3AFp_j.js.map → 4-BFZzAEZB.js.map} +1 -1
  500. package/studio/server/chunks/{42-BK4t4w08.js → 42-DHbIooHl.js} +5 -5
  501. package/studio/server/chunks/{42-BK4t4w08.js.map → 42-DHbIooHl.js.map} +1 -1
  502. package/studio/server/chunks/{43-GpQMIQ4V.js → 43-C20K_snF.js} +2 -2
  503. package/studio/server/chunks/{43-GpQMIQ4V.js.map → 43-C20K_snF.js.map} +1 -1
  504. package/studio/server/chunks/{44-DuFvG15Y.js → 44-DUpi4_LQ.js} +2 -2
  505. package/studio/server/chunks/{44-DuFvG15Y.js.map → 44-DUpi4_LQ.js.map} +1 -1
  506. package/studio/server/chunks/{45-DrdyRtqi.js → 45-CFKMCBYR.js} +9 -9
  507. package/studio/server/chunks/{45-DrdyRtqi.js.map → 45-CFKMCBYR.js.map} +1 -1
  508. package/studio/server/chunks/{49-DfMUPYpH.js → 49-BvE0PuF1.js} +3 -3
  509. package/studio/server/chunks/{49-DfMUPYpH.js.map → 49-BvE0PuF1.js.map} +1 -1
  510. package/studio/server/chunks/{5-_LlYrHzn.js → 5-DuItAkOP.js} +3 -3
  511. package/studio/server/chunks/{5-_LlYrHzn.js.map → 5-DuItAkOP.js.map} +1 -1
  512. package/studio/server/chunks/{7-SeoncTYc.js → 7-BeUSj9VF.js} +3 -3
  513. package/studio/server/chunks/{7-SeoncTYc.js.map → 7-BeUSj9VF.js.map} +1 -1
  514. package/studio/server/chunks/{_error.svelte-HivZOiX5.js → _error.svelte-BIkhG8Bl.js} +4 -4
  515. package/studio/server/chunks/{_error.svelte-HivZOiX5.js.map → _error.svelte-BIkhG8Bl.js.map} +1 -1
  516. package/studio/server/chunks/{_error.svelte-JH2-_uOf.js → _error.svelte-DQwSbmbb.js} +4 -4
  517. package/studio/server/chunks/{_error.svelte-JH2-_uOf.js.map → _error.svelte-DQwSbmbb.js.map} +1 -1
  518. package/studio/server/chunks/{_layout.svelte-C4r3six5.js → _layout.svelte-B29Y9n_L.js} +9 -9
  519. package/studio/server/chunks/{_layout.svelte-C4r3six5.js.map → _layout.svelte-B29Y9n_L.js.map} +1 -1
  520. package/studio/server/chunks/{_layout.svelte-dTuB307D.js → _layout.svelte-BKK87LsB.js} +4 -4
  521. package/studio/server/chunks/{_layout.svelte-dTuB307D.js.map → _layout.svelte-BKK87LsB.js.map} +1 -1
  522. package/studio/server/chunks/{_layout.svelte-CK5WGwFD.js → _layout.svelte-CZb-RhuT.js} +4 -4
  523. package/studio/server/chunks/{_layout.svelte-CK5WGwFD.js.map → _layout.svelte-CZb-RhuT.js.map} +1 -1
  524. package/studio/server/chunks/{_layout.svelte-P2elwndT.js → _layout.svelte-IxoznuZ0.js} +4 -4
  525. package/studio/server/chunks/{_layout.svelte-P2elwndT.js.map → _layout.svelte-IxoznuZ0.js.map} +1 -1
  526. package/studio/server/chunks/{_page.svelte-B7tkn2Ph.js → _page.svelte-BvoL-bXn.js} +8 -8
  527. package/studio/server/chunks/{_page.svelte-B7tkn2Ph.js.map → _page.svelte-BvoL-bXn.js.map} +1 -1
  528. package/studio/server/chunks/{_page.svelte-BRwARESy.js → _page.svelte-CGbWID4q.js} +3 -3
  529. package/studio/server/chunks/{_page.svelte-BRwARESy.js.map → _page.svelte-CGbWID4q.js.map} +1 -1
  530. package/studio/server/chunks/{_page.svelte-DzxSL0nM.js → _page.svelte-CMd632BW.js} +4 -4
  531. package/studio/server/chunks/{_page.svelte-DzxSL0nM.js.map → _page.svelte-CMd632BW.js.map} +1 -1
  532. package/studio/server/chunks/{_page.svelte-DL5VUL2M.js → _page.svelte-CPIUO0kA.js} +14 -14
  533. package/studio/server/chunks/_page.svelte-CPIUO0kA.js.map +1 -0
  534. package/studio/server/chunks/{_page.svelte-B-1o_hJa.js → _page.svelte-CrvloRjt.js} +5 -5
  535. package/studio/server/chunks/{_page.svelte-B-1o_hJa.js.map → _page.svelte-CrvloRjt.js.map} +1 -1
  536. package/studio/server/chunks/{_page.svelte-TEKTbLZa.js → _page.svelte-DMWYoqJ8.js} +11 -11
  537. package/studio/server/chunks/{_page.svelte-TEKTbLZa.js.map → _page.svelte-DMWYoqJ8.js.map} +1 -1
  538. package/studio/server/chunks/{_page.svelte-Crbq-RQR.js → _page.svelte-DTFNMwgk.js} +3 -3
  539. package/studio/server/chunks/{_page.svelte-Crbq-RQR.js.map → _page.svelte-DTFNMwgk.js.map} +1 -1
  540. package/studio/server/chunks/{_page.svelte-DlZ4-4_n.js → _page.svelte-Jhz3hTCU.js} +3 -3
  541. package/studio/server/chunks/{_page.svelte-DlZ4-4_n.js.map → _page.svelte-Jhz3hTCU.js.map} +1 -1
  542. package/studio/server/chunks/{_page.svelte-Cej1g10R.js → _page.svelte-LLHpU2-z.js} +4 -4
  543. package/studio/server/chunks/{_page.svelte-Cej1g10R.js.map → _page.svelte-LLHpU2-z.js.map} +1 -1
  544. package/studio/server/chunks/{_page.svelte-AWvEPqBz.js → _page.svelte-fr6sX58S.js} +3 -3
  545. package/studio/server/chunks/{_page.svelte-AWvEPqBz.js.map → _page.svelte-fr6sX58S.js.map} +1 -1
  546. package/studio/server/chunks/{_page.svelte-nkmZl411.js → _page.svelte-t-uIDVqj.js} +14 -14
  547. package/studio/server/chunks/{_page.svelte-nkmZl411.js.map → _page.svelte-t-uIDVqj.js.map} +1 -1
  548. package/studio/server/chunks/{_server.ts-mvjqGClb.js → _server.ts-BMsrWCvH.js} +4 -4
  549. package/studio/server/chunks/{_server.ts-mvjqGClb.js.map → _server.ts-BMsrWCvH.js.map} +1 -1
  550. package/studio/server/chunks/{_server.ts-lTHmffuh.js → _server.ts-Bfy5UxAZ.js} +8 -8
  551. package/studio/server/chunks/{_server.ts-lTHmffuh.js.map → _server.ts-Bfy5UxAZ.js.map} +1 -1
  552. package/studio/server/chunks/{_server.ts-DgV-51XA.js → _server.ts-C-Otl0N2.js} +4 -4
  553. package/studio/server/chunks/{_server.ts-DgV-51XA.js.map → _server.ts-C-Otl0N2.js.map} +1 -1
  554. package/studio/server/chunks/{_server.ts-Bh9NAMbD.js → _server.ts-C3MeWQr0.js} +8 -8
  555. package/studio/server/chunks/{_server.ts-Bh9NAMbD.js.map → _server.ts-C3MeWQr0.js.map} +1 -1
  556. package/studio/server/chunks/{_server.ts-BYg00n78.js → _server.ts-CQCxY40F.js} +4 -4
  557. package/studio/server/chunks/{_server.ts-BYg00n78.js.map → _server.ts-CQCxY40F.js.map} +1 -1
  558. package/studio/server/chunks/{_server.ts-BIAE6_O5.js → _server.ts-CQOxX_qB.js} +4 -4
  559. package/studio/server/chunks/{_server.ts-BIAE6_O5.js.map → _server.ts-CQOxX_qB.js.map} +1 -1
  560. package/studio/server/chunks/{_server.ts-D_6tL6BH.js → _server.ts-CiKcgEaL.js} +8 -8
  561. package/studio/server/chunks/{_server.ts-D_6tL6BH.js.map → _server.ts-CiKcgEaL.js.map} +1 -1
  562. package/studio/server/chunks/{_server.ts-CES6wlqB.js → _server.ts-DP7SAgei.js} +8 -8
  563. package/studio/server/chunks/{_server.ts-CES6wlqB.js.map → _server.ts-DP7SAgei.js.map} +1 -1
  564. package/studio/server/chunks/{_server.ts-OGjPqQGJ.js → _server.ts-yDmRIOn5.js} +4 -4
  565. package/studio/server/chunks/{_server.ts-OGjPqQGJ.js.map → _server.ts-yDmRIOn5.js.map} +1 -1
  566. package/studio/server/chunks/{admin.remote-Ck89cPry.js → admin.remote-D17hnijm.js} +2 -2
  567. package/studio/server/chunks/{admin.remote-Ck89cPry.js.map → admin.remote-D17hnijm.js.map} +1 -1
  568. package/studio/server/chunks/{alert-dialog-description-DhOIONCQ.js → alert-dialog-description-DMBX3SG1.js} +2 -2
  569. package/studio/server/chunks/{alert-dialog-description-DhOIONCQ.js.map → alert-dialog-description-DMBX3SG1.js.map} +1 -1
  570. package/studio/server/chunks/{app-header-B3sObtxm.js → app-header-BPMAiQDk.js} +2 -2
  571. package/studio/server/chunks/{app-header-B3sObtxm.js.map → app-header-BPMAiQDk.js.map} +1 -1
  572. package/studio/server/chunks/{auth-DnnZTcxQ.js → auth-ls2WXjAo.js} +9 -9
  573. package/studio/server/chunks/{auth-DnnZTcxQ.js.map → auth-ls2WXjAo.js.map} +1 -1
  574. package/studio/server/chunks/{auth.remote-wwIa4G1r.js → auth.remote-3OJFVn4Z.js} +2 -2
  575. package/studio/server/chunks/{auth.remote-wwIa4G1r.js.map → auth.remote-3OJFVn4Z.js.map} +1 -1
  576. package/studio/server/chunks/{bun-sqlite-dialect-C8OaCWSL-CzZPSzzi.js → bun-sqlite-dialect-C8OaCWSL-CarWKR8Y.js} +4 -4
  577. package/studio/server/chunks/{bun-sqlite-dialect-C8OaCWSL-CzZPSzzi.js.map → bun-sqlite-dialect-C8OaCWSL-CarWKR8Y.js.map} +1 -1
  578. package/studio/server/chunks/{client-BZjSn4EB.js → client-CR4cFjjD.js} +2 -2
  579. package/studio/server/chunks/{client-BZjSn4EB.js.map → client-CR4cFjjD.js.map} +1 -1
  580. package/studio/server/chunks/{d1-sqlite-dialect-sYHNqBte-BvLZmU_1.js → d1-sqlite-dialect-sYHNqBte-BXH49B9N.js} +4 -4
  581. package/studio/server/chunks/{d1-sqlite-dialect-sYHNqBte-BvLZmU_1.js.map → d1-sqlite-dialect-sYHNqBte-BXH49B9N.js.map} +1 -1
  582. package/studio/server/chunks/{desktop-bootstrap-1jXqwd-8.js → desktop-bootstrap-Cq_Cf_CC.js} +2 -2
  583. package/studio/server/chunks/{desktop-bootstrap-1jXqwd-8.js.map → desktop-bootstrap-Cq_Cf_CC.js.map} +1 -1
  584. package/studio/server/chunks/{editor.svelte-COCDMJMg.js → editor.svelte-BSuTDLkE.js} +2 -2
  585. package/studio/server/chunks/{editor.svelte-COCDMJMg.js.map → editor.svelte-BSuTDLkE.js.map} +1 -1
  586. package/studio/server/chunks/{hooks.server--Djv4p27.js → hooks.server-D_MLQB0H.js} +10 -10
  587. package/studio/server/chunks/{hooks.server--Djv4p27.js.map → hooks.server-D_MLQB0H.js.map} +1 -1
  588. package/studio/server/chunks/{index-CC0VmMfq.js → index-Dda1acrH.js} +3 -3
  589. package/studio/server/chunks/index-Dda1acrH.js.map +1 -0
  590. package/studio/server/chunks/{index-D_660nxW.js → index-WsxH4DMJ.js} +3 -3
  591. package/studio/server/chunks/index-WsxH4DMJ.js.map +1 -0
  592. package/studio/server/chunks/{index10-DRYKrT1x.js → index10-CgtHjrmv.js} +4 -4
  593. package/studio/server/chunks/{index10-DRYKrT1x.js.map → index10-CgtHjrmv.js.map} +1 -1
  594. package/studio/server/chunks/{index2-6MS8VnCO.js → index2-ChjmUsER.js} +2 -2
  595. package/studio/server/chunks/{index2-6MS8VnCO.js.map → index2-ChjmUsER.js.map} +1 -1
  596. package/studio/server/chunks/{index3-Ps7k-4f8.js → index3-ChXwYjat.js} +5 -5
  597. package/studio/server/chunks/index3-ChXwYjat.js.map +1 -0
  598. package/studio/server/chunks/{layout-template-D1Rliz3X.js → layout-template-DofrwsQ2.js} +3 -3
  599. package/studio/server/chunks/{layout-template-D1Rliz3X.js.map → layout-template-DofrwsQ2.js.map} +1 -1
  600. package/studio/server/chunks/{node-sqlite-dialect-Dy5JXX3C.js → node-sqlite-dialect-Dbh9DJmP.js} +4 -4
  601. package/studio/server/chunks/{node-sqlite-dialect-Dy5JXX3C.js.map → node-sqlite-dialect-Dbh9DJmP.js.map} +1 -1
  602. package/studio/server/chunks/{onboarding-email-BWY50y2U.js → onboarding-email-BT8AKqTu.js} +3 -3
  603. package/studio/server/chunks/{onboarding-email-BWY50y2U.js.map → onboarding-email-BT8AKqTu.js.map} +1 -1
  604. package/studio/server/chunks/{projects.remote-gxU7zuXx.js → projects.remote-D5XkWx2P.js} +2 -2
  605. package/studio/server/chunks/{projects.remote-gxU7zuXx.js.map → projects.remote-D5XkWx2P.js.map} +1 -1
  606. package/studio/server/chunks/{queue-init-D0Na4v9v.js → queue-init-CC31rTnG.js} +2 -2
  607. package/studio/server/chunks/{queue-init-D0Na4v9v.js.map → queue-init-CC31rTnG.js.map} +1 -1
  608. package/studio/server/chunks/{registry2-DGTWkZ8Z.js → registry2-CC-NhK3h.js} +6 -6
  609. package/studio/server/chunks/{registry2-DGTWkZ8Z.js.map → registry2-CC-NhK3h.js.map} +1 -1
  610. package/studio/server/chunks/{remote-sy19x7-BNzkjfet.js → remote-sy19x7-DGnE00Wd.js} +4 -4
  611. package/studio/server/chunks/remote-sy19x7-DGnE00Wd.js.map +1 -0
  612. package/studio/server/chunks/{remote-z7lvth-CqJVAmXS.js → remote-z7lvth-Cs1qXN81.js} +3 -3
  613. package/studio/server/chunks/remote-z7lvth-Cs1qXN81.js.map +1 -0
  614. package/studio/server/chunks/{remote-zjib3m-BauNFQg3.js → remote-zjib3m-CuPlgVpe.js} +4 -4
  615. package/studio/server/chunks/remote-zjib3m-CuPlgVpe.js.map +1 -0
  616. package/studio/server/chunks/{scrub-xyz.svelte_svelte_type_style_lang-CPl-9qn8.js → scrub-xyz.svelte_svelte_type_style_lang-CDjEyOz9.js} +8 -8
  617. package/studio/server/chunks/{scrub-xyz.svelte_svelte_type_style_lang-CPl-9qn8.js.map → scrub-xyz.svelte_svelte_type_style_lang-CDjEyOz9.js.map} +1 -1
  618. package/studio/server/chunks/{tooltip-provider-DfKy8UUP.js → tooltip-provider-Bzk4UDmX.js} +2 -2
  619. package/studio/server/chunks/{tooltip-provider-DfKy8UUP.js.map → tooltip-provider-Bzk4UDmX.js.map} +1 -1
  620. package/studio/server/chunks/{tooltip.svelte-DHfGG2LN.js → tooltip.svelte-Lb6_0rdB.js} +2 -2
  621. package/studio/server/chunks/{tooltip.svelte-DHfGG2LN.js.map → tooltip.svelte-Lb6_0rdB.js.map} +1 -1
  622. package/studio/server/chunks/{ui.svelte-C1G5iO5f.js → ui.svelte-DleU2XsO.js} +4 -4
  623. package/studio/server/chunks/{ui.svelte-C1G5iO5f.js.map → ui.svelte-DleU2XsO.js.map} +1 -1
  624. package/studio/server/chunks/{watermark-CvgEjhCN.js → watermark-PHdDaiH8.js} +2 -2
  625. package/studio/server/chunks/{watermark-CvgEjhCN.js.map → watermark-PHdDaiH8.js.map} +1 -1
  626. package/studio/server/index.js +1 -1
  627. package/studio/server/manifest.js +37 -37
  628. package/studio/server/manifest.js.map +1 -1
  629. package/studio/client/_app/immutable/chunks/AZ9rWnO0.js.br +0 -0
  630. package/studio/client/_app/immutable/chunks/AZ9rWnO0.js.gz +0 -0
  631. package/studio/client/_app/immutable/chunks/B6madqDo.js.br +0 -0
  632. package/studio/client/_app/immutable/chunks/B6madqDo.js.gz +0 -0
  633. package/studio/client/_app/immutable/chunks/BJKr5hge.js.br +0 -0
  634. package/studio/client/_app/immutable/chunks/BJKr5hge.js.gz +0 -0
  635. package/studio/client/_app/immutable/chunks/BM16VTgB.js.br +0 -0
  636. package/studio/client/_app/immutable/chunks/BM16VTgB.js.gz +0 -0
  637. package/studio/client/_app/immutable/chunks/BM9OfXL9.js.br +0 -0
  638. package/studio/client/_app/immutable/chunks/BM9OfXL9.js.gz +0 -0
  639. package/studio/client/_app/immutable/chunks/BW3LFrce.js.br +0 -0
  640. package/studio/client/_app/immutable/chunks/BW3LFrce.js.gz +0 -0
  641. package/studio/client/_app/immutable/chunks/BgrSU1kg.js.br +0 -0
  642. package/studio/client/_app/immutable/chunks/BgrSU1kg.js.gz +0 -0
  643. package/studio/client/_app/immutable/chunks/Bs7NW1Se.js.br +0 -0
  644. package/studio/client/_app/immutable/chunks/Bs7NW1Se.js.gz +0 -0
  645. package/studio/client/_app/immutable/chunks/BslV7gY7.js.br +0 -0
  646. package/studio/client/_app/immutable/chunks/BslV7gY7.js.gz +0 -0
  647. package/studio/client/_app/immutable/chunks/BvSfBzuV.js.br +0 -0
  648. package/studio/client/_app/immutable/chunks/BvSfBzuV.js.gz +0 -0
  649. package/studio/client/_app/immutable/chunks/BwG2gtjF.js.br +0 -0
  650. package/studio/client/_app/immutable/chunks/BwG2gtjF.js.gz +0 -0
  651. package/studio/client/_app/immutable/chunks/BwnyT9Ny.js.br +0 -0
  652. package/studio/client/_app/immutable/chunks/BwnyT9Ny.js.gz +0 -0
  653. package/studio/client/_app/immutable/chunks/C0WKYdwk.js.br +0 -0
  654. package/studio/client/_app/immutable/chunks/C0WKYdwk.js.gz +0 -0
  655. package/studio/client/_app/immutable/chunks/CPRt510s.js.br +0 -0
  656. package/studio/client/_app/immutable/chunks/CPRt510s.js.gz +0 -0
  657. package/studio/client/_app/immutable/chunks/CTjBIV3u.js.br +0 -0
  658. package/studio/client/_app/immutable/chunks/CTjBIV3u.js.gz +0 -0
  659. package/studio/client/_app/immutable/chunks/CTpKZT5_.js.br +0 -0
  660. package/studio/client/_app/immutable/chunks/CTpKZT5_.js.gz +0 -0
  661. package/studio/client/_app/immutable/chunks/CVS8giU8.js.br +0 -0
  662. package/studio/client/_app/immutable/chunks/CVS8giU8.js.gz +0 -0
  663. package/studio/client/_app/immutable/chunks/Cdg3o65X.js.br +0 -0
  664. package/studio/client/_app/immutable/chunks/Cdg3o65X.js.gz +0 -0
  665. package/studio/client/_app/immutable/chunks/CvEPOTmC.js.br +0 -0
  666. package/studio/client/_app/immutable/chunks/CvEPOTmC.js.gz +0 -0
  667. package/studio/client/_app/immutable/chunks/CwPeYiWY.js.br +0 -0
  668. package/studio/client/_app/immutable/chunks/CwPeYiWY.js.gz +0 -0
  669. package/studio/client/_app/immutable/chunks/D-QT1x8R.js.br +0 -0
  670. package/studio/client/_app/immutable/chunks/D-QT1x8R.js.gz +0 -0
  671. package/studio/client/_app/immutable/chunks/D1FB0IUT.js.br +0 -0
  672. package/studio/client/_app/immutable/chunks/D1FB0IUT.js.gz +0 -0
  673. package/studio/client/_app/immutable/chunks/D8o81YM9.js.br +0 -0
  674. package/studio/client/_app/immutable/chunks/D8o81YM9.js.gz +0 -0
  675. package/studio/client/_app/immutable/chunks/DUvwbcGL.js.br +0 -0
  676. package/studio/client/_app/immutable/chunks/DUvwbcGL.js.gz +0 -0
  677. package/studio/client/_app/immutable/chunks/DXmIOUiy.js.br +0 -0
  678. package/studio/client/_app/immutable/chunks/DXmIOUiy.js.gz +0 -0
  679. package/studio/client/_app/immutable/chunks/DhUtLNbU.js.br +0 -0
  680. package/studio/client/_app/immutable/chunks/DhUtLNbU.js.gz +0 -0
  681. package/studio/client/_app/immutable/chunks/DkL6aOyN.js.br +0 -0
  682. package/studio/client/_app/immutable/chunks/DkL6aOyN.js.gz +0 -0
  683. package/studio/client/_app/immutable/chunks/DlG2SYaI.js.br +0 -0
  684. package/studio/client/_app/immutable/chunks/DlG2SYaI.js.gz +0 -0
  685. package/studio/client/_app/immutable/chunks/Dq1Bw6bH.js +0 -4
  686. package/studio/client/_app/immutable/chunks/Dq1Bw6bH.js.br +0 -0
  687. package/studio/client/_app/immutable/chunks/Dq1Bw6bH.js.gz +0 -0
  688. package/studio/client/_app/immutable/chunks/Dw0S4s6I.js.br +0 -3
  689. package/studio/client/_app/immutable/chunks/Dw0S4s6I.js.gz +0 -0
  690. package/studio/client/_app/immutable/chunks/EsOjj2Re.js.br +0 -0
  691. package/studio/client/_app/immutable/chunks/EsOjj2Re.js.gz +0 -0
  692. package/studio/client/_app/immutable/chunks/I5GezlI2.js +0 -1
  693. package/studio/client/_app/immutable/chunks/I5GezlI2.js.br +0 -2
  694. package/studio/client/_app/immutable/chunks/I5GezlI2.js.gz +0 -0
  695. package/studio/client/_app/immutable/chunks/MA9VYZ9Y.js.br +0 -0
  696. package/studio/client/_app/immutable/chunks/MA9VYZ9Y.js.gz +0 -0
  697. package/studio/client/_app/immutable/chunks/Of4NhqMR.js.br +0 -0
  698. package/studio/client/_app/immutable/chunks/Of4NhqMR.js.gz +0 -0
  699. package/studio/client/_app/immutable/chunks/vMKBQkkd.js.br +0 -0
  700. package/studio/client/_app/immutable/chunks/vMKBQkkd.js.gz +0 -0
  701. package/studio/client/_app/immutable/chunks/zdIjnFuo.js.br +0 -0
  702. package/studio/client/_app/immutable/chunks/zdIjnFuo.js.gz +0 -0
  703. package/studio/client/_app/immutable/entry/app.DWvKq1JP.js.br +0 -0
  704. package/studio/client/_app/immutable/entry/app.DWvKq1JP.js.gz +0 -0
  705. package/studio/client/_app/immutable/entry/start.DlbgBZQJ.js +0 -1
  706. package/studio/client/_app/immutable/entry/start.DlbgBZQJ.js.br +0 -0
  707. package/studio/client/_app/immutable/entry/start.DlbgBZQJ.js.gz +0 -0
  708. package/studio/client/_app/immutable/nodes/0.WXKHH_tm.js.br +0 -0
  709. package/studio/client/_app/immutable/nodes/0.WXKHH_tm.js.gz +0 -0
  710. package/studio/client/_app/immutable/nodes/1.BiD305mI.js.br +0 -0
  711. package/studio/client/_app/immutable/nodes/1.BiD305mI.js.gz +0 -0
  712. package/studio/client/_app/immutable/nodes/10.CU1-ee2m.js.br +0 -0
  713. package/studio/client/_app/immutable/nodes/10.CU1-ee2m.js.gz +0 -0
  714. package/studio/client/_app/immutable/nodes/11.CXaXEirJ.js.br +0 -0
  715. package/studio/client/_app/immutable/nodes/11.CXaXEirJ.js.gz +0 -0
  716. package/studio/client/_app/immutable/nodes/12.DJvy6gDY.js.br +0 -0
  717. package/studio/client/_app/immutable/nodes/12.DJvy6gDY.js.gz +0 -0
  718. package/studio/client/_app/immutable/nodes/13.nfg2db27.js.br +0 -0
  719. package/studio/client/_app/immutable/nodes/13.nfg2db27.js.gz +0 -0
  720. package/studio/client/_app/immutable/nodes/14.Bs2fSwa1.js.br +0 -0
  721. package/studio/client/_app/immutable/nodes/14.Bs2fSwa1.js.gz +0 -0
  722. package/studio/client/_app/immutable/nodes/15.a3Pos74G.js.br +0 -0
  723. package/studio/client/_app/immutable/nodes/15.a3Pos74G.js.gz +0 -0
  724. package/studio/client/_app/immutable/nodes/16.2YL4xuJ4.js.br +0 -0
  725. package/studio/client/_app/immutable/nodes/16.2YL4xuJ4.js.gz +0 -0
  726. package/studio/client/_app/immutable/nodes/17.CqCSgqIN.js.br +0 -0
  727. package/studio/client/_app/immutable/nodes/17.CqCSgqIN.js.gz +0 -0
  728. package/studio/client/_app/immutable/nodes/18.5G3YRxMR.js.br +0 -0
  729. package/studio/client/_app/immutable/nodes/18.5G3YRxMR.js.gz +0 -0
  730. package/studio/client/_app/immutable/nodes/19.Bu8-dRJn.js.br +0 -0
  731. package/studio/client/_app/immutable/nodes/19.Bu8-dRJn.js.gz +0 -0
  732. package/studio/client/_app/immutable/nodes/20.CIMlHVKg.js.br +0 -0
  733. package/studio/client/_app/immutable/nodes/20.CIMlHVKg.js.gz +0 -0
  734. package/studio/client/_app/immutable/nodes/21.CqSlHdIO.js.br +0 -0
  735. package/studio/client/_app/immutable/nodes/21.CqSlHdIO.js.gz +0 -0
  736. package/studio/client/_app/immutable/nodes/28.DKT4ZSZk.js +0 -8
  737. package/studio/client/_app/immutable/nodes/28.DKT4ZSZk.js.br +0 -0
  738. package/studio/client/_app/immutable/nodes/28.DKT4ZSZk.js.gz +0 -0
  739. package/studio/client/_app/immutable/nodes/3.C68UMDpf.js.br +0 -0
  740. package/studio/client/_app/immutable/nodes/3.C68UMDpf.js.gz +0 -0
  741. package/studio/client/_app/immutable/nodes/38.D6xlICgs.js +0 -1
  742. package/studio/client/_app/immutable/nodes/38.D6xlICgs.js.br +0 -0
  743. package/studio/client/_app/immutable/nodes/38.D6xlICgs.js.gz +0 -0
  744. package/studio/client/_app/immutable/nodes/39.DabCE-Rt.js +0 -79
  745. package/studio/client/_app/immutable/nodes/39.DabCE-Rt.js.br +0 -0
  746. package/studio/client/_app/immutable/nodes/39.DabCE-Rt.js.gz +0 -0
  747. package/studio/client/_app/immutable/nodes/4.BXcrgjpJ.js.br +0 -0
  748. package/studio/client/_app/immutable/nodes/4.BXcrgjpJ.js.gz +0 -0
  749. package/studio/client/_app/immutable/nodes/40.Q-jN9EvK.js +0 -15
  750. package/studio/client/_app/immutable/nodes/40.Q-jN9EvK.js.br +0 -0
  751. package/studio/client/_app/immutable/nodes/40.Q-jN9EvK.js.gz +0 -0
  752. package/studio/client/_app/immutable/nodes/41.CnqWY7Jk.js.br +0 -0
  753. package/studio/client/_app/immutable/nodes/41.CnqWY7Jk.js.gz +0 -0
  754. package/studio/client/_app/immutable/nodes/42.CReCUw0y.js.br +0 -0
  755. package/studio/client/_app/immutable/nodes/42.CReCUw0y.js.gz +0 -0
  756. package/studio/client/_app/immutable/nodes/43.1HRdsmVg.js.br +0 -0
  757. package/studio/client/_app/immutable/nodes/43.1HRdsmVg.js.gz +0 -0
  758. package/studio/client/_app/immutable/nodes/44.Cm4deKzT.js.br +0 -0
  759. package/studio/client/_app/immutable/nodes/44.Cm4deKzT.js.gz +0 -0
  760. package/studio/client/_app/immutable/nodes/45.C7eW4xJw.js.br +0 -0
  761. package/studio/client/_app/immutable/nodes/45.C7eW4xJw.js.gz +0 -0
  762. package/studio/client/_app/immutable/nodes/46.DNoqu48d.js.br +0 -0
  763. package/studio/client/_app/immutable/nodes/46.DNoqu48d.js.gz +0 -0
  764. package/studio/client/_app/immutable/nodes/47.Kd91VHB_.js.br +0 -0
  765. package/studio/client/_app/immutable/nodes/47.Kd91VHB_.js.gz +0 -0
  766. package/studio/client/_app/immutable/nodes/48.kXm-0_dx.js.br +0 -0
  767. package/studio/client/_app/immutable/nodes/48.kXm-0_dx.js.gz +0 -0
  768. package/studio/client/_app/immutable/nodes/49.Baeo5x8O.js.br +0 -0
  769. package/studio/client/_app/immutable/nodes/49.Baeo5x8O.js.gz +0 -0
  770. package/studio/client/_app/immutable/nodes/5.BXcrgjpJ.js.br +0 -0
  771. package/studio/client/_app/immutable/nodes/5.BXcrgjpJ.js.gz +0 -0
  772. package/studio/client/_app/immutable/nodes/7.0ElBSij4.js.br +0 -0
  773. package/studio/client/_app/immutable/nodes/7.0ElBSij4.js.gz +0 -0
  774. package/studio/client/_app/immutable/nodes/8.Cf03UWeS.js.br +0 -0
  775. package/studio/client/_app/immutable/nodes/8.Cf03UWeS.js.gz +0 -0
  776. package/studio/client/_app/immutable/nodes/9.BCt9tK8K.js.br +0 -0
  777. package/studio/client/_app/immutable/nodes/9.BCt9tK8K.js.gz +0 -0
  778. package/studio/server/chunks/12-uBBeSc-D.js +0 -9
  779. package/studio/server/chunks/15-BP_ppf1w.js +0 -9
  780. package/studio/server/chunks/_page.svelte-DL5VUL2M.js.map +0 -1
  781. package/studio/server/chunks/index-CC0VmMfq.js.map +0 -1
  782. package/studio/server/chunks/index-D_660nxW.js.map +0 -1
  783. package/studio/server/chunks/index3-Ps7k-4f8.js.map +0 -1
  784. package/studio/server/chunks/remote-sy19x7-BNzkjfet.js.map +0 -1
  785. package/studio/server/chunks/remote-z7lvth-CqJVAmXS.js.map +0 -1
  786. package/studio/server/chunks/remote-zjib3m-BauNFQg3.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{a8 as jf,bv as Hf,bG as Uf,aK as nd,u as qs,bH as Bf,bi as Vf,aH as Z,bF as dc,ab as id,i as a,h as k,b5 as Do,aS as or,q as _,p as U,j as O,k as E,o as J,b as f,e as B,g as H,bD as Wf,v as Qt,f as V,r as z,aw as sd,x as qt,s as F,t as Ge,c as oe,n as Fe,bI as ei,B as od,b1 as po,C as qf,a$ as Gf}from"./BH1rZqH0.js";import{_ as pr,n as Qn,o as Kt,$ as Kf,l as hn,b as at,s as Pt,u as cl,W as ad,c as ri,a0 as $f,a1 as Yf,a2 as Xf,r as Jf,e as Zf,d as ul,a3 as ld,G as cd,a4 as Qf,a5 as ev,a6 as tv,a7 as rv,a8 as nv,a9 as iv,aa as ud,A as mo,H as Cr,F as _o,ab as sv,ac as ov,ad as av,ae as lv,af as cv,t as hr,ag as Jn,ah as kr,ai as zo,aj as dd,ak as hd,D as hc,al as Pa,am as uv,an as dv,ao as hv,i as fd,ap as fv,aq as vv,ar as dl,as as gv,at as pv,au as mv,av as _v,aw as vd,ax as yv,ay as bv,az as xv,C as wv,aA as Sv,aB as Pv,aC as Ev,aD as kv,aE as pi,p as gd,q as pd,aF as Tv,aG as Cv,aH as hl,aI as Av,aJ as Mv,aK as Rv}from"./BKaOgHuv.js";import{E as Iv,C as Ov,c as $t,d as Sn,b as fe,y as Dn,e as yo,i as er,m as lt,p as fl,h as Nv,F as fc,g as md}from"./BvSfBzuV.js";import"./Ct_92ewg.js";import{o as ys,s as Se,d as en,a as Ye,r as Fv,j as wn}from"./BKx7aQex.js";import{i as te}from"./l6_YgvJu.js";import{B as Mt,L as vc,t as vl}from"./BQhvHIBL.js";import{a as Xe,b as gr,s as Re,c as ve,r as Nr,g as Jr,d as Gs}from"./DItp427M.js";import{a as _d,c as yd}from"./CfEkJfal.js";import{b as Pr,c as ue}from"./CjJOx53h.js";import{b as X,r as $,p as D,a as Ea,s as bd}from"./C8kSHBGW.js";import{c as vt}from"./BAPsSsPy.js";import{e as Et,i as Si}from"./BwzC7gXw.js";import{s as q}from"./Be-ZWJwN.js";import{G as Fn,I as ni,P as Pi,o as xd,J as gl,n as bt,K as Lv,L as Dv,N as zv,h as hi,j as Zi,O as gc,Q as wd,H as Sd,R as Pd,E as Ed,U as jv,V as Hv,W as Uv,X as Bv,g as ka,Y as Vv,p as Wv,c as kd,d as Td,Z as Ks,i as jo,_ as qv,x as Cd,m as Gv,q as Kv,D as $v,T as Yv,S as pc,b as Ad,e as pl,C as Xv}from"./BJKr5hge.js";import{C as Ri,w as Gt,D as bo,U as Jv}from"./BwnyT9Ny.js";import{o as Zv,a as Qv,C as xo,X as ml,G as Md,b as eg,M as tg,S as rg}from"./DhUtLNbU.js";import{C as _l}from"./C3TDTGEk.js";import{I as de}from"./CVY1v_NI.js";import{w as ar,a as ng}from"./CsYc-nV1.js";import{L as yl,I as Rd}from"./MA9VYZ9Y.js";import{c as ig,b as sg,a as wo}from"./Cdg3o65X.js";import{u as og,a as ag}from"./EsOjj2Re.js";import{e as Ho}from"./I5GezlI2.js";import{a as Qi,S as lg}from"./vMKBQkkd.js";import{r as Uo}from"./BgrSU1kg.js";import{p as cg}from"./Bs7NW1Se.js";import{g as ug}from"./Dq1Bw6bH.js";import{M as Id,c as bs,P as Od,T as Nd,K as dg}from"./C0WKYdwk.js";import{p as Fd}from"./Dw0S4s6I.js";import"./D1FB0IUT.js";import{q as hg}from"./BM16VTgB.js";import{h as Ld}from"./DVwuKx4e.js";import{h as Ta}from"./B0CGBs-v.js";import{a as fg,C as vg,D as gg}from"./B-qm-b0r.js";import{H as pg}from"./bsfLFPc3.js";import{C as mg}from"./D4ooP0Dt.js";import{C as _g}from"./Bqthoyql.js";import{A as yg}from"./hevTEAPk.js";import{A as bg}from"./DGHx_OMD.js";import"./CRSvvRTA.js";import{i as xg}from"./DVkCj0xi.js";const wg=[];function Fr(r,e=!1,t=!1){return zs(r,new Map,"",wg,null,t)}function zs(r,e,t,n,i=null,s=!1){if(typeof r=="object"&&r!==null){var o=e.get(r);if(o!==void 0)return o;if(r instanceof Map)return new Map(r);if(r instanceof Set)return new Set(r);if(jf(r)){var l=Array(r.length);e.set(r,l),i!==null&&e.set(i,l);for(var c=0;c<r.length;c+=1){var u=r[c];c in r&&(l[c]=zs(u,e,t,n,null,s))}return l}if(Hf(r)===Uf){l={},e.set(r,l),i!==null&&e.set(i,l);for(var d of Object.keys(r))l[d]=zs(r[d],e,t,n,null,s);return l}if(r instanceof Date)return structuredClone(r);if(typeof r.toJSON=="function"&&!s)return zs(r.toJSON(),e,t,n,r)}if(r instanceof EventTarget)return r;try{return structuredClone(r)}catch{return r}}function Sg(r,e,t){nd(()=>{var n=qs(()=>e(r,t?.())||{});if(n?.destroy)return()=>n.destroy()})}class bl{#e=new WeakMap;#t;#r;static entries=new WeakMap;constructor(e){this.#r=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#n().observe(e,this.#r),()=>{var i=this.#e.get(e);i.delete(t),i.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#n(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var t of e){bl.entries.set(t.target,t);for(var n of this.#e.get(t.target)||[])n(t)}}))}}var Pg=new bl({box:"border-box"});function Ca(r,e,t){var n=Pg.observe(r,()=>t(r[e]));nd(()=>(qs(()=>t(r[e])),n))}function mc(r,e){Bf(window,["resize"],()=>Vf(()=>e(window[r])))}function IP(...r){return r.filter(Boolean).join(" ")}const Eg=typeof document<"u";var kg=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Tg=["difference","intersection","symmetricDifference","union"],_c=!1;class Ei extends Set{#e=new Map;#t=Z(0);#r=Z(0);#n=dc||-1;constructor(e){if(super(),e){for(var t of e)super.add(t);this.#r.v=super.size}_c||this.#s()}#i(e){return dc===this.#n?Z(e):id(e)}#s(){_c=!0;var e=Ei.prototype,t=Set.prototype;for(const n of kg)e[n]=function(...i){return a(this.#t),t[n].apply(this,i)};for(const n of Tg)e[n]=function(...i){a(this.#t);var s=t[n].apply(this,i);return new Ei(s)}}has(e){var t=super.has(e),n=this.#e,i=n.get(e);if(i===void 0){if(!t)return a(this.#t),!1;i=this.#i(!0),n.set(e,i)}return a(i),t}add(e){return super.has(e)||(super.add(e),k(this.#r,super.size),Do(this.#t)),this}delete(e){var t=super.delete(e),n=this.#e,i=n.get(e);return i!==void 0&&(n.delete(e),k(i,!1)),t&&(k(this.#r,super.size),Do(this.#t)),t}clear(){if(super.size!==0){super.clear();var e=this.#e;for(var t of e.values())k(t,!1);e.clear(),k(this.#r,0),Do(this.#t)}}keys(){return this.values()}values(){return a(this.#t),super.values()}entries(){return a(this.#t),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return a(this.#r)}}let yc=0;class Cg{#e=Z(or([]));get toasts(){return a(this.#e)}set toasts(e){k(this.#e,e,!0)}#t=Z(or([]));get heights(){return a(this.#t)}set heights(e){k(this.#t,e,!0)}#r=e=>{const t=this.toasts.findIndex(n=>n.id===e);return t===-1?null:t};addToast=e=>{Eg&&this.toasts.unshift(e)};updateToast=({id:e,data:t,type:n,message:i})=>{const s=this.toasts.findIndex(l=>l.id===e),o=this.toasts[s];this.toasts[s]={...o,...t,id:e,title:i,type:n,updated:!0}};create=e=>{const{message:t,...n}=e,i=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:yc++,s=e.dismissable===void 0?!0:e.dismissable,o=e.type===void 0?"default":e.type;return qs(()=>{this.toasts.find(c=>c.id===i)?this.updateToast({id:i,data:e,type:o,message:t,dismissable:s}):this.addToast({...n,id:i,title:t,dismissable:s,type:o})}),i};dismiss=e=>(qs(()=>{if(e===void 0){this.toasts=this.toasts.map(n=>({...n,dismiss:!0}));return}const t=this.toasts.findIndex(n=>n.id===e);this.toasts[t]&&(this.toasts[t]={...this.toasts[t],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const t=this.#r(e);if(t!==null)return this.toasts.splice(t,1),e};message=(e,t)=>this.create({...t,type:"default",message:e});error=(e,t)=>this.create({...t,type:"error",message:e});success=(e,t)=>this.create({...t,type:"success",message:e});info=(e,t)=>this.create({...t,type:"info",message:e});warning=(e,t)=>this.create({...t,type:"warning",message:e});loading=(e,t)=>this.create({...t,type:"loading",message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:typeof t.loading=="string"?t.loading:t.loading()}));const i=e instanceof Promise?e:e();let s=n!==void 0;return i.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){s=!1;const l=Ag(o);this.create({id:n,type:"error",message:l})}else if(t.success!==void 0){s=!1;const l=typeof t.success=="function"?t.success(o):t.success;this.create({id:n,type:"success",message:l})}}).catch(o=>{if(t.error!==void 0){s=!1;const l=typeof t.error=="function"?t.error(o):t.error;this.create({id:n,type:"error",message:l})}}).finally(()=>{s&&(this.dismiss(n),n=void 0),t.finally?.()}),n};custom=(e,t)=>{const n=t?.id||yc++;return this.create({component:e,id:n,...t}),n};removeHeight=e=>{this.heights=this.heights.filter(t=>t.toastId!==e)};setHeight=e=>{const t=this.#r(e.toastId);if(t===null){this.heights.push(e);return}this.heights[t]=e};reset=()=>{this.toasts=[],this.heights=[]}}function Ag(r){return r&&typeof r=="object"&&"status"in r?`HTTP error! Status: ${r.status}`:`Error! ${r}`}const Ur=new Cg;function Mg(r,e){return Ur.create({message:r,...e})}class OP{#e=_(()=>Ur.toasts.filter(e=>!e.dismiss));get toasts(){return a(this.#e)}}const Rg=Mg,Ig=Object.assign(Rg,{success:Ur.success,info:Ur.info,warning:Ur.warning,error:Ur.error,custom:Ur.custom,message:Ur.message,promise:Ur.promise,dismiss:Ur.dismiss,loading:Ur.loading,getActiveToasts:()=>Ur.toasts.filter(r=>!r.dismiss)}),Oe="ease-out",Yr="ease-in",Ze="ease-in-out",Ae="linear";function G(r,e,t,n){return{time:r,property:e,value:t,easing:n}}function tt(r,e,t,n,i){return{id:r,category:e,params:t,defaults:i??{},build:n}}const xl=[tt("fade-in","enter",[],()=>[G(0,"opacity",0,Oe),G(1,"opacity",1,Ae)]),tt("fade-out","exit",[],()=>[G(0,"opacity",1,Yr),G(1,"opacity",0,Ae)]),tt("reveal-up","enter",["distance"],r=>[G(0,"opacity",0,Oe),G(0,"position.y",r.distance,Oe),G(1,"opacity",1,Ae),G(1,"position.y",0,Oe)],{distance:2}),tt("reveal-right","enter",["distance"],r=>[G(0,"opacity",0,Oe),G(0,"position.x",-r.distance,Oe),G(1,"opacity",1,Ae),G(1,"position.x",0,Oe)],{distance:2}),tt("reveal-left","enter",["distance"],r=>[G(0,"opacity",0,Oe),G(0,"position.x",r.distance,Oe),G(1,"opacity",1,Ae),G(1,"position.x",0,Oe)],{distance:2}),tt("slide-in-left","enter",["distance"],r=>[G(0,"position.x",-r.distance,Oe),G(0,"opacity",0,Oe),G(1,"position.x",0,Ae),G(1,"opacity",1,Ae)],{distance:60}),tt("slide-in-right","enter",["distance"],r=>[G(0,"position.x",r.distance,Oe),G(0,"opacity",0,Oe),G(1,"position.x",0,Ae),G(1,"opacity",1,Ae)],{distance:60}),tt("slide-in-top","enter",["distance"],r=>[G(0,"position.y",-r.distance,Oe),G(0,"opacity",0,Oe),G(1,"position.y",0,Ae),G(1,"opacity",1,Ae)],{distance:40}),tt("slide-in-bottom","enter",["distance"],r=>[G(0,"position.y",r.distance,Oe),G(0,"opacity",0,Oe),G(1,"position.y",0,Ae),G(1,"opacity",1,Ae)],{distance:40}),tt("slide-out-left","exit",["distance"],r=>[G(0,"position.x",0,Yr),G(0,"opacity",1,Yr),G(1,"position.x",-r.distance,Ae),G(1,"opacity",0,Ae)],{distance:60}),tt("slide-out-right","exit",["distance"],r=>[G(0,"position.x",0,Yr),G(0,"opacity",1,Yr),G(1,"position.x",r.distance,Ae),G(1,"opacity",0,Ae)],{distance:60}),tt("wipe-down","enter",[],()=>[G(0,"scale.y",0,Oe),G(0,"opacity",0,Oe),G(1,"scale.y",1,Ae),G(1,"opacity",1,Ae)]),tt("wipe-right","enter",[],()=>[G(0,"scale.x",0,Oe),G(0,"opacity",0,Oe),G(1,"scale.x",1,Ae),G(1,"opacity",1,Ae)]),tt("scale-in","enter",["fromScale"],r=>[G(0,"scale.x",r.fromScale,Oe),G(0,"scale.y",r.fromScale,Oe),G(0,"opacity",0,Oe),G(1,"scale.x",1,Ae),G(1,"scale.y",1,Ae),G(1,"opacity",1,Ae)],{fromScale:0}),tt("scale-out","exit",[],()=>[G(0,"scale.x",1,Yr),G(0,"scale.y",1,Yr),G(0,"opacity",1,Yr),G(1,"scale.x",0,Ae),G(1,"scale.y",0,Ae),G(1,"opacity",0,Ae)]),tt("pop","enter",["fromScale"],r=>[G(0,"scale.x",r.fromScale,Oe),G(0,"scale.y",r.fromScale,Oe),G(0,"opacity",0,Oe),G(.6,"scale.x",1.15,Oe),G(.6,"scale.y",1.15,Oe),G(.6,"opacity",1,Oe),G(1,"scale.x",1,Ze),G(1,"scale.y",1,Ze)],{fromScale:0}),tt("bounce","generic",[],()=>[G(0,"scale.y",1,Ze),G(.25,"scale.y",1.2,Ze),G(.5,"scale.y",.9,Ze),G(.75,"scale.y",1.05,Ze),G(1,"scale.y",1,Ae)]),tt("bounce-in","enter",[],()=>[G(0,"scale.x",0,Oe),G(0,"scale.y",0,Oe),G(0,"opacity",0,Oe),G(.4,"scale.x",1.2,Oe),G(.4,"scale.y",1.2,Oe),G(.4,"opacity",1,Ae),G(.6,"scale.x",.9,Ze),G(.6,"scale.y",.9,Ze),G(.8,"scale.x",1.05,Ze),G(.8,"scale.y",1.05,Ze),G(1,"scale.x",1,Ze),G(1,"scale.y",1,Ze)]),tt("rotate-in","enter",[],()=>[G(0,"rotation.z",-Math.PI,Oe),G(0,"opacity",0,Oe),G(0,"scale.x",.5,Oe),G(0,"scale.y",.5,Oe),G(1,"rotation.z",0,Ae),G(1,"opacity",1,Ae),G(1,"scale.x",1,Ae),G(1,"scale.y",1,Ae)]),tt("spin","generic",[],()=>[G(0,"rotation.z",0,Ae),G(1,"rotation.z",Math.PI*2,Ae)]),tt("pulse","generic",["intensity"],r=>[G(0,"scale.x",1,Ze),G(0,"scale.y",1,Ze),G(.5,"scale.x",1+.1*r.intensity,Ze),G(.5,"scale.y",1+.1*r.intensity,Ze),G(1,"scale.x",1,Ze),G(1,"scale.y",1,Ze)],{intensity:1}),tt("shake","generic",["intensity"],r=>[G(0,"position.x",0,Ae),G(.1,"position.x",-.8*r.intensity,Ae),G(.2,"position.x",.8*r.intensity,Ae),G(.3,"position.x",-.8*r.intensity,Ae),G(.4,"position.x",.8*r.intensity,Ae),G(.5,"position.x",-.4*r.intensity,Ae),G(.6,"position.x",.4*r.intensity,Ae),G(.7,"position.x",-.2*r.intensity,Ae),G(.8,"position.x",.2*r.intensity,Ae),G(1,"position.x",0,Ae)],{intensity:1}),tt("float","generic",["distance"],r=>[G(0,"position.y",0,Ze),G(.5,"position.y",-r.distance,Ze),G(1,"position.y",0,Ze)],{distance:1.5}),tt("glow","generic",[],()=>[G(0,"opacity",1,Ze),G(.5,"opacity",.6,Ze),G(1,"opacity",1,Ze)]),tt("zoom-in","enter",[],()=>[G(0,"scale.x",.3,Oe),G(0,"scale.y",.3,Oe),G(0,"opacity",0,Oe),G(1,"scale.x",1,Ae),G(1,"scale.y",1,Ae),G(1,"opacity",1,Ae)]),tt("zoom-out","exit",[],()=>[G(0,"scale.x",1,Yr),G(0,"scale.y",1,Yr),G(0,"opacity",1,Yr),G(1,"scale.x",.3,Ae),G(1,"scale.y",.3,Ae),G(1,"opacity",0,Ae)]),tt("flip-in-x","enter",[],()=>[G(0,"rotation.y",Math.PI/2,Oe),G(0,"opacity",0,Oe),G(1,"rotation.y",0,Ae),G(1,"opacity",1,Ae)]),tt("flip-in-y","enter",[],()=>[G(0,"rotation.x",Math.PI/2,Oe),G(0,"opacity",0,Oe),G(1,"rotation.x",0,Ae),G(1,"opacity",1,Ae)]),tt("swing","generic",[],()=>[G(0,"rotation.z",0,Ze),G(.2,"rotation.z",.26,Ze),G(.4,"rotation.z",-.17,Ze),G(.6,"rotation.z",.09,Ze),G(.8,"rotation.z",-.05,Ze),G(1,"rotation.z",0,Ze)])];function Og(r){return xl.find(e=>e.id===r)}const Ng=xl.map(r=>r.id),NP=pr(Ng);function Fg(r,e,t,n,i){const s=Og(r);if(!s)return[];const o={...s.defaults,...i};return s.build(o).map(l=>{let c=l.value;return n&&(l.property==="position.x"&&n.x!==void 0&&(c+=n.x),l.property==="position.y"&&n.y!==void 0&&(c+=n.y)),{time:e+l.time*t,property:l.property,value:c,easing:l.easing}})}function Lg(r){const e=r.id.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");return{id:r.id,name:e,category:r.category,params:r.params.length?r.params:void 0,defaults:r.defaults,build:t=>r.build({...r.defaults,...t}).map(n=>({time:n.time,property:n.property,value:n.value,interpolation:{family:"continuous",strategy:n.easing}}))}}const Dg=xl.map(Lg);function zg(r){return Dg.find(e=>e.id===r)}function FP(r,e,t,n="ease-out"){return{id:Qn(),time:r,property:e,value:t,interpolation:{family:"continuous",strategy:n}}}function jg(r,e,t,n,i){return Fg(r,e,t,n,i).map(s=>({id:Qn(),time:s.time,property:s.property,value:s.value,interpolation:{family:"continuous",strategy:s.easing}}))}const Hg=Kt({family:hn("continuous").describe("Smooth numeric/color transitions. Use for position, scale, opacity, rotation, fontSize, colors. Colors interpolate in RGB space."),strategy:pr(Kf).describe("Easing: ease-out (entrances), ease-in (exits), ease-in-out (middle). Back = overshoot, bounce, elastic for playful effects.")}),Ug=Kt({family:hn("discrete").describe("Instant jump between values, no transition. Use for booleans, enums, visibility."),strategy:pr(["step-end","step-start","step-mid"]).describe("When the jump occurs: step-end (hold old value until keyframe), step-start (jump immediately), step-mid (jump at midpoint)")}),Bg=Kt({family:hn("quantized").describe("Smooth animation snapped to discrete steps."),strategy:hn("integer").describe("Snap to nearest integer (for counters, indices)")}),Vg=Kt({family:hn("quantized").describe("Smooth animation snapped to discrete steps."),strategy:hn("snap-grid").describe("Snap to a custom grid increment"),increment:at().positive().describe("Grid step size (e.g., 5 → 0, 5, 10, 15...)")}),Wg=Kt({family:hn("text").describe("Text reveal. ONLY for props.content on text/terminal layers."),strategy:hn("char-reveal").describe('Character-by-character typewriter. Animate text from "" to full content.')}),qg=Kt({family:hn("text").describe("Text reveal. ONLY for props.content on text/terminal layers."),strategy:hn("word-reveal").describe("Word-by-word reveal. Shows whole words one at a time."),separator:Pt().optional().describe('Word delimiter (default: space " ")')}),Gg=cl([Hg,Ug,Bg,Vg,Wg,qg]),Kg=pr(["position.x","position.y","position.z","scale.x","scale.y","rotation.x","rotation.y","rotation.z",...ad.keyof().options]),$g=Pt().regex(/^props\./).describe("Layer-specific property (e.g., props.fontSize, props.content)."),Yg=cl([Kg,$g]),Dd=Kt({id:Pt().describe("Unique keyframe ID"),time:at().min(0).describe("Time in seconds"),property:Yg.describe("Property to animate: position.x/y/z, scale.x/y, rotation.x/y/z, opacity, blur, brightness, etc., or props.* for layer-specific (e.g., props.fontSize, props.content)."),value:cl([at(),Pt(),ri()]).describe("Target value: number for numeric props, hex string for colors, string for text content, boolean for flags."),interpolation:Gg.optional().describe("How to reach this value from the previous keyframe. Omit for default continuous/ease-in-out.")}),Xg=Pt().refine(r=>$f().includes(r),{message:"Unknown layer type"}),Jg=Yf.extend({type:Xg,transform:Xf,style:ad,keyframes:ul(Dd),props:Jf(Pt(),Zf()),enterTime:at().min(0).optional(),exitTime:at().min(0).optional(),contentDuration:at().min(0).optional(),contentOffset:at().min(0).optional()}).refine(r=>{if(r.contentDuration!==void 0&&r.contentOffset!==void 0&&r.contentOffset>r.contentDuration)return!1;if(r.contentDuration!==void 0&&r.enterTime!==void 0&&r.exitTime!==void 0){const e=r.exitTime-r.enterTime,t=r.contentOffset??0,n=r.contentDuration-t;if(e>n)return!1}return!0},{message:"Content duration and offset constraints violated: offset must be < duration, and visible duration must fit within available content"}),Zg=Kt({id:Pt(),name:Pt(),width:at().positive(),height:at().positive(),duration:at().positive(),fps:at().positive(),background:cd.optional(),primaryColor:Pt().optional().default("#6366f1"),fontFamily:pr(ld).optional().default("Inter"),hideWatermark:ri().optional().default(!1),watermarkPosition:pr(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"]).optional().default("top-center"),schemaVersion:at().int().optional(),layers:ul(Jg)});Kt({zoom:at(),pan:Kt({x:at(),y:at()}),showGuides:ri(),snapToGrid:ri()});Kt({id:Pt(),name:Pt(),keyframes:ul(Dd.omit({id:!0}))});Kt({format:pr(["mp4","webm","json"]),quality:pr(["low","medium","high"]),fps:at().positive(),width:at().positive(),height:at().positive()});const LP=Zg.omit({id:!0});var Bo,bc;function Qg(){if(bc)return Bo;bc=1;var r=4,e=.001,t=1e-7,n=10,i=11,s=1/(i-1),o=typeof Float32Array=="function";function l(v,y){return 1-3*y+3*v}function c(v,y){return 3*y-6*v}function u(v){return 3*v}function d(v,y,b){return((l(y,b)*v+c(y,b))*v+u(y))*v}function p(v,y,b){return 3*l(y,b)*v*v+2*c(y,b)*v+u(y)}function h(v,y,b,P,w){var x,T,R=0;do T=y+(b-y)/2,x=d(T,P,w)-v,x>0?b=T:y=T;while(Math.abs(x)>t&&++R<n);return T}function g(v,y,b,P){for(var w=0;w<r;++w){var x=p(y,b,P);if(x===0)return y;var T=d(y,b,P)-v;y-=T/x}return y}function m(v){return v}return Bo=function(y,b,P,w){if(!(0<=y&&y<=1&&0<=P&&P<=1))throw new Error("bezier x values must be in [0, 1] range");if(y===b&&P===w)return m;for(var x=o?new Float32Array(i):new Array(i),T=0;T<i;++T)x[T]=d(T*s,y,P);function R(C){for(var S=0,A=1,I=i-1;A!==I&&x[A]<=C;++A)S+=s;--A;var M=(C-x[A])/(x[A+1]-x[A]),L=S+M*s,W=p(L,y,P);return W>=e?g(C,L,y,P):W===0?L:h(C,S,S+s,y,P)}return function(S){return S===0?0:S===1?1:d(R(S),b,w)}},Bo}var ep=Qg();const st=Iv(ep);var tp={grad:.9,turn:360,rad:360/(2*Math.PI)},gn=function(r){return typeof r=="string"?r.length>0:typeof r=="number"},Zt=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*r)/t+0},Br=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),r>t?t:r>e?r:e},zd=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},xc=function(r){return{r:Br(r.r,0,255),g:Br(r.g,0,255),b:Br(r.b,0,255),a:Br(r.a)}},Vo=function(r){return{r:Zt(r.r),g:Zt(r.g),b:Zt(r.b),a:Zt(r.a,3)}},rp=/^#([0-9a-f]{3,8})$/i,Es=function(r){var e=r.toString(16);return e.length<2?"0"+e:e},jd=function(r){var e=r.r,t=r.g,n=r.b,i=r.a,s=Math.max(e,t,n),o=s-Math.min(e,t,n),l=o?s===e?(t-n)/o:s===t?2+(n-e)/o:4+(e-t)/o:0;return{h:60*(l<0?l+6:l),s:s?o/s*100:0,v:s/255*100,a:i}},Hd=function(r){var e=r.h,t=r.s,n=r.v,i=r.a;e=e/360*6,t/=100,n/=100;var s=Math.floor(e),o=n*(1-t),l=n*(1-(e-s)*t),c=n*(1-(1-e+s)*t),u=s%6;return{r:255*[n,l,o,o,c,n][u],g:255*[c,n,n,l,o,o][u],b:255*[o,o,c,n,n,l][u],a:i}},wc=function(r){return{h:zd(r.h),s:Br(r.s,0,100),l:Br(r.l,0,100),a:Br(r.a)}},Sc=function(r){return{h:Zt(r.h),s:Zt(r.s),l:Zt(r.l),a:Zt(r.a,3)}},Pc=function(r){return Hd((t=(e=r).s,{h:e.h,s:(t*=((n=e.l)<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}));var e,t,n},os=function(r){return{h:(e=jd(r)).h,s:(i=(200-(t=e.s))*(n=e.v)/100)>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,t,n,i},np=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ip=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,sp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,op=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ec={string:[[function(r){var e=rp.exec(r);return e?(r=e[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?Zt(parseInt(r[3]+r[3],16)/255,2):1}:r.length===6||r.length===8?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:r.length===8?Zt(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var e=sp.exec(r)||op.exec(r);return e?e[2]!==e[4]||e[4]!==e[6]?null:xc({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(r){var e=np.exec(r)||ip.exec(r);if(!e)return null;var t,n,i=wc({h:(t=e[1],n=e[2],n===void 0&&(n="deg"),Number(t)*(tp[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Pc(i)},"hsl"]],object:[[function(r){var e=r.r,t=r.g,n=r.b,i=r.a,s=i===void 0?1:i;return gn(e)&&gn(t)&&gn(n)?xc({r:Number(e),g:Number(t),b:Number(n),a:Number(s)}):null},"rgb"],[function(r){var e=r.h,t=r.s,n=r.l,i=r.a,s=i===void 0?1:i;if(!gn(e)||!gn(t)||!gn(n))return null;var o=wc({h:Number(e),s:Number(t),l:Number(n),a:Number(s)});return Pc(o)},"hsl"],[function(r){var e=r.h,t=r.s,n=r.v,i=r.a,s=i===void 0?1:i;if(!gn(e)||!gn(t)||!gn(n))return null;var o=(function(l){return{h:zd(l.h),s:Br(l.s,0,100),v:Br(l.v,0,100),a:Br(l.a)}})({h:Number(e),s:Number(t),v:Number(n),a:Number(s)});return Hd(o)},"hsv"]]},kc=function(r,e){for(var t=0;t<e.length;t++){var n=e[t][0](r);if(n)return[n,e[t][1]]}return[null,void 0]},ap=function(r){return typeof r=="string"?kc(r.trim(),Ec.string):typeof r=="object"&&r!==null?kc(r,Ec.object):[null,void 0]},Wo=function(r,e){var t=os(r);return{h:t.h,s:Br(t.s+100*e,0,100),l:t.l,a:t.a}},qo=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},Tc=function(r,e){var t=os(r);return{h:t.h,s:t.s,l:Br(t.l+100*e,0,100),a:t.a}},Cc=(function(){function r(e){this.parsed=ap(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return this.parsed!==null},r.prototype.brightness=function(){return Zt(qo(this.rgba),2)},r.prototype.isDark=function(){return qo(this.rgba)<.5},r.prototype.isLight=function(){return qo(this.rgba)>=.5},r.prototype.toHex=function(){return e=Vo(this.rgba),t=e.r,n=e.g,i=e.b,o=(s=e.a)<1?Es(Zt(255*s)):"","#"+Es(t)+Es(n)+Es(i)+o;var e,t,n,i,s,o},r.prototype.toRgb=function(){return Vo(this.rgba)},r.prototype.toRgbString=function(){return e=Vo(this.rgba),t=e.r,n=e.g,i=e.b,(s=e.a)<1?"rgba("+t+", "+n+", "+i+", "+s+")":"rgb("+t+", "+n+", "+i+")";var e,t,n,i,s},r.prototype.toHsl=function(){return Sc(os(this.rgba))},r.prototype.toHslString=function(){return e=Sc(os(this.rgba)),t=e.h,n=e.s,i=e.l,(s=e.a)<1?"hsla("+t+", "+n+"%, "+i+"%, "+s+")":"hsl("+t+", "+n+"%, "+i+"%)";var e,t,n,i,s},r.prototype.toHsv=function(){return e=jd(this.rgba),{h:Zt(e.h),s:Zt(e.s),v:Zt(e.v),a:Zt(e.a,3)};var e},r.prototype.invert=function(){return St({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},r.prototype.saturate=function(e){return e===void 0&&(e=.1),St(Wo(this.rgba,e))},r.prototype.desaturate=function(e){return e===void 0&&(e=.1),St(Wo(this.rgba,-e))},r.prototype.grayscale=function(){return St(Wo(this.rgba,-1))},r.prototype.lighten=function(e){return e===void 0&&(e=.1),St(Tc(this.rgba,e))},r.prototype.darken=function(e){return e===void 0&&(e=.1),St(Tc(this.rgba,-e))},r.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},r.prototype.alpha=function(e){return typeof e=="number"?St({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Zt(this.rgba.a,3);var t},r.prototype.hue=function(e){var t=os(this.rgba);return typeof e=="number"?St({h:e,s:t.s,l:t.l,a:t.a}):Zt(t.h)},r.prototype.isEqual=function(e){return this.toHex()===St(e).toHex()},r})(),St=function(r){return r instanceof Cc?r:new Cc(r)};function lp(r,e,t,n){if(!n)return e;switch(n.family){case"continuous":return cp(r,e,t,n.strategy);case"discrete":return up(r,e,t,n.strategy);case"quantized":return dp(r,e,t,n);case"text":return fp(r,e,t,n);default:return t>=1?e:r}}function cp(r,e,t,n){const s=bi(n)(t);if(typeof r=="string"&&typeof e=="string"){const o=St(r),l=St(e);if(o.isValid()&&l.isValid()){const c=o.toRgb(),u=l.toRgb(),d=Math.round(c.r+(u.r-c.r)*s),p=Math.round(c.g+(u.g-c.g)*s),h=Math.round(c.b+(u.b-c.b)*s),g=c.a+(u.a-c.a)*s;return St({r:d,g:p,b:h,a:g}).toHex()}}if(typeof r!="number"||typeof e!="number")throw new Error("continuous interpolation requires numeric or color values");return r+(e-r)*s}function up(r,e,t,n){switch(n){case"step-end":return t>=1?e:r;case"step-start":return t>0?e:r;case"step-mid":return t>=.5?e:r;default:return t>=1?e:r}}function dp(r,e,t,n){if(typeof r!="number"||typeof e!="number")throw new Error("quantized interpolation requires numeric values");const i=r+(e-r)*t;switch(n.strategy){case"integer":return Math.round(i);case"snap-grid":return Math.round(i/n.increment)*n.increment;default:return Math.round(i)}}function hp(r,e){let t=0;for(;t<r.length&&t<e.length&&r[t]===e[t];)t++;return r.substring(0,t)}function fp(r,e,t,n){const i=String(r),s=String(e);if(i===s)return s;switch(n.strategy){case"char-reveal":{const o=hp(i,s),l=s.substring(o.length),c=Math.round(l.length*t);return o+l.substring(0,c)}case"word-reveal":{const o=n.separator??" ",l=i.split(o),c=s.split(o);let u=0;for(;u<l.length&&u<c.length&&l[u]===c[u];)u++;const d=c.slice(u),p=Math.round(d.length*t);return[...c.slice(0,u),...d.slice(0,p)].join(o)}default:return t>=1?s:i}}function bi(r){switch(r){case"linear":return e=>e;case"ease-in":return st(.42,0,1,1);case"ease-out":return st(0,0,.58,1);case"ease-in-out":return st(.42,0,.58,1);case"ease-in-quad":return st(.55,.085,.68,.53);case"ease-out-quad":return st(.25,.46,.45,.94);case"ease-in-out-quad":return st(.455,.03,.515,.955);case"ease-in-cubic":return st(.55,.055,.675,.19);case"ease-out-cubic":return st(.215,.61,.355,1);case"ease-in-out-cubic":return st(.645,.045,.355,1);case"ease-in-quart":return st(.895,.03,.685,.22);case"ease-out-quart":return st(.165,.84,.44,1);case"ease-in-out-quart":return st(.77,0,.175,1);case"ease-in-quint":return st(.755,.05,.855,.06);case"ease-out-quint":return st(.23,1,.32,1);case"ease-in-out-quint":return st(.86,0,.07,1);case"ease-in-sine":return st(.47,0,.745,.715);case"ease-out-sine":return st(.39,.575,.565,1);case"ease-in-out-sine":return st(.445,.05,.55,.95);case"ease-in-expo":return st(.95,.05,.795,.035);case"ease-out-expo":return st(.19,1,.22,1);case"ease-in-out-expo":return st(1,0,0,1);case"ease-in-circ":return st(.6,.04,.98,.335);case"ease-out-circ":return st(.075,.82,.165,1);case"ease-in-out-circ":return st(.785,.135,.15,.86);case"ease-in-back":return st(.6,-.28,.735,.045);case"ease-out-back":return st(.175,.885,.32,1.275);case"ease-in-out-back":return st(.68,-.55,.265,1.55);case"ease-out-bounce":return iv;case"ease-in-bounce":return nv;case"ease-in-out-bounce":return rv;case"ease-in-elastic":return tv;case"ease-out-elastic":return ev;case"ease-in-out-elastic":return Qf;default:return e=>e}}function Ft(r,e,t){const n=r.filter(i=>i.property===e).sort((i,s)=>i.time-s.time);if(n.length===0)return null;if(t<=n[0].time)return n[0].value;if(t>=n[n.length-1].time)return n[n.length-1].value;for(let i=0;i<n.length-1;i++){const s=n[i],o=n[i+1];if(t>=s.time&&t<=o.time){const l=o.time-s.time,c=l>0?(t-s.time)/l:0;return lp(s.value,o.value,c,s.interpolation)}}return n[n.length-1].value}function vp(r,e){return{position:{x:Ft(r,"position.x",e),y:Ft(r,"position.y",e),z:Ft(r,"position.z",e)},rotation:{x:Ft(r,"rotation.x",e),y:Ft(r,"rotation.y",e),z:Ft(r,"rotation.z",e)},scale:{x:Ft(r,"scale.x",e),y:Ft(r,"scale.y",e),z:Ft(r,"scale.z",e)}}}function gp(r,e){const t={},n=Ft(r,"opacity",e);n!==null&&(t.opacity=n);const i=Ft(r,"blur",e);i!==null&&(t.blur=i);const s=Ft(r,"brightness",e);s!==null&&(t.brightness=s);const o=Ft(r,"contrast",e);o!==null&&(t.contrast=o);const l=Ft(r,"saturate",e);l!==null&&(t.saturate=l);const c=Ft(r,"dropShadowX",e);c!==null&&(t.dropShadowX=c);const u=Ft(r,"dropShadowY",e);u!==null&&(t.dropShadowY=u);const d=Ft(r,"dropShadowBlur",e);d!==null&&(t.dropShadowBlur=d);const p=Ft(r,"dropShadowColor",e);return p!==null&&(t.dropShadowColor=p),t}function pp(r,e,t,n){const i={...e};for(const s of t){const o=`props.${s.name}`,l=Ft(r,o,n);l!=null&&(i[s.name]=l)}return i}function mp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]];de(r,X({name:"arrow-down"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function _p(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];de(r,X({name:"arrow-up"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function yp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"}]];de(r,X({name:"at-sign"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function bp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M2 10v3"}],["path",{d:"M6 6v11"}],["path",{d:"M10 3v18"}],["path",{d:"M14 8v7"}],["path",{d:"M18 5v13"}],["path",{d:"M22 10v3"}]];de(r,X({name:"audio-lines"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function xp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526"}],["circle",{cx:"12",cy:"8",r:"6"}]];de(r,X({name:"award"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function wp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]];de(r,X({name:"bell"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Sp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"9",cy:"9",r:"7"}],["circle",{cx:"15",cy:"15",r:"7"}]];de(r,X({name:"blend"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Pp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"}]];de(r,X({name:"bookmark"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Ep(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}],["path",{d:"m3.3 7 8.7 5 8.7-5"}],["path",{d:"M12 22V12"}]];de(r,X({name:"box"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function kp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M8 2v4"}],["path",{d:"M16 2v4"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}],["path",{d:"M3 10h18"}]];de(r,X({name:"calendar"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Tp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z"}],["circle",{cx:"12",cy:"13",r:"3"}]];de(r,X({name:"camera"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Cp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4"}]];de(r,X({name:"captions"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Ud(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m18 15-6-6-6 6"}]];de(r,X({name:"chevron-up"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Ap(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}]];de(r,X({name:"circle"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Mp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]];de(r,X({name:"clock"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Bd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m16 18 6-6-6-6"}],["path",{d:"m8 6-6 6 6 6"}]];de(r,X({name:"code"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Rp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]];de(r,X({name:"compass"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Ip(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]];de(r,X({name:"crosshair"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Op(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]];de(r,X({name:"database"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Np(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z"}]];de(r,X({name:"droplet"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Fp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"5",r:"1"}],["circle",{cx:"12",cy:"19",r:"1"}]];de(r,X({name:"ellipsis-vertical"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Lp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];de(r,X({name:"ellipsis"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Dp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];de(r,X({name:"external-link"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function zp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"}]];de(r,X({name:"facebook"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function jp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];de(r,X({name:"file-text"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Hp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4"}]];de(r,X({name:"flame"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Up(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]];de(r,X({name:"folder"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Bp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"}],["rect",{width:"10",height:"8",x:"7",y:"8",rx:"1"}]];de(r,X({name:"fullscreen"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Vp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 7v14"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1"}]];de(r,X({name:"gift"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Wp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["path",{d:"M9 18c-4.51 2-5-2-7-2"}]];de(r,X({name:"github"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function qp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M3 15h18"}],["path",{d:"M9 3v18"}],["path",{d:"M15 3v18"}]];de(r,X({name:"grid-3x3"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Gp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"9",cy:"12",r:"1"}],["circle",{cx:"9",cy:"5",r:"1"}],["circle",{cx:"9",cy:"19",r:"1"}],["circle",{cx:"15",cy:"12",r:"1"}],["circle",{cx:"15",cy:"5",r:"1"}],["circle",{cx:"15",cy:"19",r:"1"}]];de(r,X({name:"grip-vertical"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Kp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"}]];de(r,X({name:"hand"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function $p(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["line",{x1:"4",x2:"20",y1:"9",y2:"9"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21"}]];de(r,X({name:"hash"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Yp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"}]];de(r,X({name:"heart"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Xp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}]];de(r,X({name:"hexagon"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Vd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]];de(r,X({name:"image"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Jp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"}]];de(r,X({name:"instagram"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Zp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m5 8 6 6"}],["path",{d:"m4 14 6-6 2-3"}],["path",{d:"M2 5h12"}],["path",{d:"M7 2h1"}],["path",{d:"m22 22-5-10-5 10"}],["path",{d:"M14 18h6"}]];de(r,X({name:"languages"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Qp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z"}],["path",{d:"M20.054 15.987H3.946"}]];de(r,X({name:"laptop"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function em(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"}]];de(r,X({name:"layers"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function tm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}]];de(r,X({name:"layout-grid"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function rm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}],["path",{d:"M9 18h6"}],["path",{d:"M10 22h4"}]];de(r,X({name:"lightbulb"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Wd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]];de(r,X({name:"link"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function nm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}],["rect",{width:"4",height:"12",x:"2",y:"9"}],["circle",{cx:"4",cy:"4",r:"2"}]];de(r,X({name:"linkedin"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function im(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11 5h10"}],["path",{d:"M11 12h10"}],["path",{d:"M11 19h10"}],["path",{d:"M4 4h1v5"}],["path",{d:"M4 9h2"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02"}]];de(r,X({name:"list-ordered"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function sm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1"}]];de(r,X({name:"lock-open"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function wl(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}]];de(r,X({name:"lock"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function om(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}],["circle",{cx:"12",cy:"10",r:"3"}]];de(r,X({name:"map-pin"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function qd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]];de(r,X({name:"mic"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function am(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M5 12h14"}]];de(r,X({name:"minus"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function lm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z"}]];de(r,X({name:"mouse-pointer-2"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function cm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12.586 12.586 19 19"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z"}]];de(r,X({name:"mouse-pointer"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Gd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M9 18V5l12-2v13"}],["circle",{cx:"6",cy:"18",r:"3"}],["circle",{cx:"18",cy:"16",r:"3"}]];de(r,X({name:"music"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function um(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];de(r,X({name:"package"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function dm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M9 21V9"}]];de(r,X({name:"panels-top-left"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function hm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"}]];de(r,X({name:"paperclip"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function fm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"}]];de(r,X({name:"pause"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function vm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"}]];de(r,X({name:"phone"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Ac(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 17v5"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}]];de(r,X({name:"pin"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Kd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]];de(r,X({name:"play"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function gm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M22 14a8 8 0 0 1-8 8"}],["path",{d:"M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2"}],["path",{d:"M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1"}],["path",{d:"M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10"}],["path",{d:"M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"}]];de(r,X({name:"pointer"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function pm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"}]];de(r,X({name:"rocket"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function mm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];de(r,X({name:"search"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function _m(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]];de(r,X({name:"send"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function ym(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18"}]];de(r,X({name:"server"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function $d(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}],["circle",{cx:"12",cy:"12",r:"3"}]];de(r,X({name:"settings"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function bm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 2v13"}],["path",{d:"m16 6-4-4-4 4"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}]];de(r,X({name:"share"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function xm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}]];de(r,X({name:"shield"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function wm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]];de(r,X({name:"smartphone"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Sl(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}],["path",{d:"M20 2v4"}],["path",{d:"M22 4h-4"}],["circle",{cx:"4",cy:"20",r:"2"}]];de(r,X({name:"sparkles"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Sm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"}]];de(r,X({name:"square-pen"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Pl(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]];de(r,X({name:"square"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Aa(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]];de(r,X({name:"star"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Pm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]];de(r,X({name:"tag"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Em(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["circle",{cx:"12",cy:"12",r:"6"}],["circle",{cx:"12",cy:"12",r:"2"}]];de(r,X({name:"target"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Yd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 19h8"}],["path",{d:"m4 17 6-6-6-6"}]];de(r,X({name:"terminal"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function km(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1"}],["path",{d:"M7 22h1a4 4 0 0 0 4-4v-1"}],["path",{d:"M7 2h1a4 4 0 0 1 4 4v1"}]];de(r,X({name:"text-cursor"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Tm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];de(r,X({name:"trash"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Cm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}]];de(r,X({name:"triangle"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Am(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18"}],["path",{d:"M4 22h16"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6"}]];de(r,X({name:"trophy"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Mm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z"}]];de(r,X({name:"twitter"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Rm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 4v16"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2"}],["path",{d:"M9 20h6"}]];de(r,X({name:"type"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Im(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]];de(r,X({name:"upload"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Om(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}],["circle",{cx:"9",cy:"7",r:"4"}]];de(r,X({name:"users"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Xd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"}]];de(r,X({name:"video"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Nm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"}],["path",{d:"M16 9a5 5 0 0 1 0 6"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728"}]];de(r,X({name:"volume-2"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Fm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 20h.01"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0"}]];de(r,X({name:"wifi"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Lm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"}],["path",{d:"m10 15 5-3-5-3z"}]];de(r,X({name:"youtube"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function El(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}]];de(r,X({name:"zap"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}var Dm=H("<textarea></textarea>");function kl(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"value",15),i=D(e,"data-slot",3,"textarea"),s=$(e,["$$slots","$$events","$$legacy","ref","value","class","data-slot"]);var o=Dm();Wf(o),Xe(o,l=>({"data-slot":i(),class:l,...s}),[()=>vt("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e.class)]),Pr(o,l=>t(l),()=>t()),_d(o,n),f(r,o),B()}const zm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},jm=Ov(zm);class Hm{#e=()=>{};#t=_(()=>this.#e());constructor(e,t){let n;t!==void 0&&(n=t),this.#e=()=>{try{return n}finally{n=e()}}}get current(){return a(this.#t)}}const Um=yo({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),Pn=new Ri("Dialog.Root | AlertDialog.Root");class Tl{static create(e){const t=Pn.getOr(null);return Pn.set(new Tl(e,t))}opts;#e=Z(null);get triggerNode(){return a(this.#e)}set triggerNode(e){k(this.#e,e,!0)}#t=Z(null);get contentNode(){return a(this.#t)}set contentNode(e){k(this.#t,e,!0)}#r=Z(null);get overlayNode(){return a(this.#r)}set overlayNode(e){k(this.#r,e,!0)}#n=Z(null);get descriptionNode(){return a(this.#n)}set descriptionNode(e){k(this.#n,e,!0)}#i=Z(void 0);get contentId(){return a(this.#i)}set contentId(e){k(this.#i,e,!0)}#s=Z(void 0);get titleId(){return a(this.#s)}set titleId(e){k(this.#s,e,!0)}#a=Z(void 0);get triggerId(){return a(this.#a)}set triggerId(e){k(this.#a,e,!0)}#o=Z(void 0);get descriptionId(){return a(this.#o)}set descriptionId(e){k(this.#o,e,!0)}#c=Z(null);get cancelNode(){return a(this.#c)}set cancelNode(e){k(this.#c,e,!0)}#l=Z(0);get nestedOpenCount(){return a(this.#l)}set nestedOpenCount(e){k(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Pi({ref:fe(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Pi({ref:fe(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Gt(()=>this.opts.open.current,n=>{this.parent&&(n?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),xd(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>Um.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=_(()=>({"data-state":Dn(this.opts.open.current)}));get sharedProps(){return a(this.#u)}set sharedProps(e){k(this.#u,e)}}class Cl{static create(e){return new Cl(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Fn||e.key===ni)&&(e.preventDefault(),this.root.handleClose())}#e=_(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}class Jd{static create(e){return new Jd(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref)}#e=_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}class Al{static create(e){return new Al(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=$t(this.opts.ref),Gt.pre(()=>this.opts.id.current,n=>{this.root.titleId=n})}#e=_(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}class Ml{static create(e){return new Ml(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=$t(this.opts.ref,n=>{this.root.descriptionNode=n}),Gt.pre(()=>this.opts.id.current,n=>{this.root.descriptionId=n})}#e=_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}class Rl{static create(e){return new Rl(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref,n=>{this.root.contentNode=n,this.root.contentId=n?.id})}#e=_(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#e)}set snippetProps(e){k(this.#e,e)}#t=_(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Sn(this.root.nestedOpenCount>0),"data-nested":Sn(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}}class Il{static create(e){return new Il(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref,n=>this.root.overlayNode=n)}#e=_(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#e)}set snippetProps(e){k(this.#e,e)}#t=_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Sn(this.root.nestedOpenCount>0),"data-nested":Sn(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class Zd{static create(e){return new Zd(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref,n=>this.root.cancelNode=n),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Fn||e.key===ni)&&(e.preventDefault(),this.root.handleClose())}#e=_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}var Bm=H("<div><!></div>");function Vm(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"level",3,2),o=$(e,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const l=Al.create({id:fe(()=>n()),level:fe(()=>s()),ref:fe(()=>i(),g=>i(g))}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=g=>{var m=O(),v=E(m);q(v,()=>e.child,()=>({props:a(c)})),f(g,m)},h=g=>{var m=Bm();Xe(m,()=>({...a(c)}));var v=V(m);q(v,()=>e.children??J),z(m),f(g,m)};te(d,g=>{e.child?g(p):g(h,-1)})}f(r,u),B()}var Wm=H("<div><!></div>");function qm(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"forceMount",3,!1),s=D(e,"ref",15,null),o=$(e,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const l=Il.create({id:fe(()=>n()),ref:fe(()=>s(),h=>s(h))}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=h=>{var g=O(),m=E(g);{var v=b=>{var P=O(),w=E(P);{let x=_(()=>({props:lt(a(c)),...l.snippetProps}));q(w,()=>e.child,()=>a(x))}f(b,P)},y=b=>{var P=Wm();Xe(P,x=>({...x}),[()=>lt(a(c))]);var w=V(P);q(w,()=>e.children??J,()=>l.snippetProps),z(P),f(b,P)};te(m,b=>{e.child?b(v):b(y,-1)})}f(h,g)};te(d,h=>{(l.shouldRender||i())&&h(p)})}f(r,u),B()}var Gm=H("<div><!></div>");function Km(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=$(e,["$$slots","$$events","$$legacy","id","children","child","ref"]);const o=Ml.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h))}),l=_(()=>lt(s,o.props));var c=O(),u=E(c);{var d=h=>{var g=O(),m=E(g);q(m,()=>e.child,()=>({props:a(l)})),f(h,g)},p=h=>{var g=Gm();Xe(g,()=>({...a(l)}));var m=V(g);q(m,()=>e.children??J),z(g),f(h,g)};te(u,h=>{e.child?h(d):h(p,-1)})}f(r,c),B()}var $m=H("<input/>"),Ym=H("<input/>");function Xm(r,e){U(e,!0);let t=D(e,"value",15),n=$(e,["$$slots","$$events","$$legacy","value"]);const i=_(()=>lt(n,{"aria-hidden":"true",tabindex:-1,style:jm}));var s=O(),o=E(s);{var l=u=>{var d=$m();Xe(d,()=>({...a(i),value:t()}),void 0,void 0,void 0,void 0,!0),f(u,d)},c=u=>{var d=Ym();Xe(d,()=>({...a(i)}),void 0,void 0,void 0,void 0,!0),_d(d,t),f(u,d)};te(o,u=>{a(i).type==="checkbox"?u(l):u(c,-1)})}f(r,s),B()}const Ol=yo({component:"collapsible",parts:["root","content","trigger"]}),Nl=new Ri("Collapsible.Root");class Fl{static create(e){return Nl.set(new Fl(e))}opts;attachment;#e=Z(null);get contentNode(){return a(this.#e)}set contentNode(e){k(this.#e,e,!0)}contentPresence;#t=Z(void 0);get contentId(){return a(this.#t)}set contentId(e){k(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=$t(this.opts.ref),this.contentPresence=new Pi({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#r=_(()=>({id:this.opts.id.current,"data-state":Dn(this.opts.open.current),"data-disabled":Sn(this.opts.disabled.current),[Ol.root]:"",...this.attachment}));get props(){return a(this.#r)}set props(e){k(this.#r,e)}}class Ll{static create(e){return new Ll(e,Nl.get())}opts;root;attachment;#e=_(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return a(this.#e)}set present(e){k(this.#e,e)}#t;#r=Z(!1);#n=Z(0);#i=Z(0);constructor(e,t){this.opts=e,this.root=t,k(this.#r,t.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=$t(this.opts.ref,n=>this.root.contentNode=n),Gt.pre(()=>this.opts.id.current,n=>{this.root.contentId=n}),sd(()=>{const n=requestAnimationFrame(()=>{k(this.#r,!1)});return()=>{cancelAnimationFrame(n)}}),Gt.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([n,i])=>!n||!i?void 0:ys(n,"beforematch",()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),Gt([()=>this.opts.ref.current,()=>this.present],([n])=>{n&&gl(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:n.style.transitionDuration,animationName:n.style.animationName},n.style.transitionDuration="0s",n.style.animationName="none";const i=n.getBoundingClientRect();if(k(this.#i,i.height,!0),k(this.#n,i.width,!0),!a(this.#r)){const{animationName:s,transitionDuration:o}=this.#t;n.style.transitionDuration=o,n.style.animationName=s}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#s=_(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#s)}set snippetProps(e){k(this.#s,e)}#a=_(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":a(this.#i)?`${a(this.#i)}px`:void 0,"--bits-collapsible-content-width":a(this.#n)?`${a(this.#n)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?"until-found":void 0,"data-state":Dn(this.root.opts.open.current),"data-disabled":Sn(this.root.opts.disabled.current),[Ol.content]:"",...this.opts.hiddenUntilFound.current&&!this.shouldRender?{}:{hidden:this.opts.hiddenUntilFound.current?!this.shouldRender:this.opts.forceMount.current?void 0:!this.shouldRender},...this.attachment}));get props(){return a(this.#a)}set props(e){k(this.#a,e)}}class Dl{static create(e){return new Dl(e,Nl.get())}opts;root;attachment;#e=_(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!a(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){a(this.#e)||(e.key===Fn||e.key===ni)&&(e.preventDefault(),this.root.toggleOpen())}#t=_(()=>({id:this.opts.id.current,type:"button",disabled:a(this.#e),"aria-controls":this.root.contentId,"aria-expanded":fl(this.root.opts.open.current),"data-state":Dn(this.root.opts.open.current),"data-disabled":Sn(a(this.#e)),[Ol.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}var Jm=H("<div><!></div>");function Zm(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"open",15,!1),o=D(e,"disabled",3,!1),l=D(e,"onOpenChange",3,bt),c=D(e,"onOpenChangeComplete",3,bt),u=$(e,["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const d=Fl.create({open:fe(()=>s(),y=>{s(y),l()(y)}),disabled:fe(()=>o()),id:fe(()=>n()),ref:fe(()=>i(),y=>i(y)),onOpenChangeComplete:fe(()=>c())}),p=_(()=>lt(u,d.props));var h=O(),g=E(h);{var m=y=>{var b=O(),P=E(b);q(P,()=>e.child,()=>({props:a(p)})),f(y,b)},v=y=>{var b=Jm();Xe(b,()=>({...a(p)}));var P=V(b);q(P,()=>e.children??J),z(b),f(y,b)};te(g,y=>{e.child?y(m):y(v,-1)})}f(r,h),B()}var Qm=H("<div><!></div>");function e0(r,e){const t=Qt();U(e,!0);let n=D(e,"ref",15,null),i=D(e,"forceMount",3,!1),s=D(e,"hiddenUntilFound",3,!1),o=D(e,"id",19,()=>er(t)),l=$(e,["$$slots","$$events","$$legacy","child","ref","forceMount","hiddenUntilFound","children","id"]);const c=Ll.create({id:fe(()=>o()),forceMount:fe(()=>i()),hiddenUntilFound:fe(()=>s()),ref:fe(()=>n(),m=>n(m))}),u=_(()=>lt(l,c.props));var d=O(),p=E(d);{var h=m=>{var v=O(),y=E(v);{let b=_(()=>({...c.snippetProps,props:a(u)}));q(y,()=>e.child,()=>a(b))}f(m,v)},g=m=>{var v=Qm();Xe(v,()=>({...a(u)}));var y=V(v);q(y,()=>e.children??J),z(v),f(m,v)};te(p,m=>{e.child?m(h):m(g,-1)})}f(r,d),B()}var t0=H("<button><!></button>");function r0(r,e){const t=Qt();U(e,!0);let n=D(e,"ref",15,null),i=D(e,"id",19,()=>er(t)),s=D(e,"disabled",3,!1),o=$(e,["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]);const l=Dl.create({id:fe(()=>i()),ref:fe(()=>n(),g=>n(g)),disabled:fe(()=>s())}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=g=>{var m=O(),v=E(m);q(v,()=>e.child,()=>({props:a(c)})),f(g,m)},h=g=>{var m=t0();Xe(m,()=>({...a(c)}));var v=V(m);q(v,()=>e.children??J),z(m),f(g,m)};te(d,g=>{e.child?g(p):g(h,-1)})}f(r,u),B()}class n0{#e;#t=_(()=>this.#e.candidateValues());#r;constructor(e){this.#e=e,this.#r=Lv("",{afterMs:1e3,getWindow:this.#e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!this.#e.enabled()||!a(this.#t).length)return;this.#r.current=this.#r.current+e;const t=this.#e.getCurrentItem(),n=a(this.#t).find(l=>l===t)??"",i=a(this.#t).map(l=>l??""),s=Dv(i,this.#r.current,n),o=a(this.#t).find(l=>l===s);return o&&this.#e.onMatch(o),o}resetTypeahead(){this.#r.current=""}}const i0=[Zi,wd,Sd],s0=[hi,Pd,Ed],o0=[...i0,...s0],a0=yo({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ii=new Ri("Select.Root | Combobox.Root"),l0=new Ri("Select.Group | Combobox.Group"),So=new Ri("Select.Content | Combobox.Content");class Qd{opts;#e=Z(!1);get touchedInput(){return a(this.#e)}set touchedInput(e){k(this.#e,e,!0)}#t=Z(null);get inputNode(){return a(this.#t)}set inputNode(e){k(this.#t,e,!0)}#r=Z(null);get contentNode(){return a(this.#r)}set contentNode(e){k(this.#r,e,!0)}contentPresence;#n=Z(null);get viewportNode(){return a(this.#n)}set viewportNode(e){k(this.#n,e,!0)}#i=Z(null);get triggerNode(){return a(this.#i)}set triggerNode(e){k(this.#i,e,!0)}#s=Z("");get valueId(){return a(this.#s)}set valueId(e){k(this.#s,e,!0)}#a=Z(null);get highlightedNode(){return a(this.#a)}set highlightedNode(e){k(this.#a,e,!0)}#o=_(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return a(this.#o)}set highlightedValue(e){k(this.#o,e)}#c=_(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return a(this.#c)}set highlightedId(e){k(this.#c,e)}#l=_(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return a(this.#l)}set highlightedLabel(e){k(this.#l,e)}isUsingKeyboard=!1;isCombobox=!1;domContext=new bo(()=>null);constructor(e){this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new Pi({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),sd(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){const n=this.viewportNode.getBoundingClientRect();t=t.filter(i=>{if(!this.viewportNode)return!1;const s=i.getBoundingClientRect();return s.right<=n.right&&s.left>=n.left&&s.bottom<=n.bottom&&s.top>=n.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(n=>n.dataset.value===e)??null}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=e=>a0.getAttr(e,this.isCombobox?"combobox":void 0)}class c0 extends Qd{opts;isMulti=!1;#e=_(()=>this.opts.value.current!=="");get hasValue(){return a(this.#e)}set hasValue(e){k(this.#e,e)}#t=_(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":"");get currentLabel(){return a(this.#t)}set currentLabel(e){k(this.#t,e)}#r=_(()=>this.opts.items.current.length?this.opts.items.current.filter(t=>!t.disabled).map(t=>t.label):[]);get candidateLabels(){return a(this.#r)}set candidateLabels(e){k(this.#r,e)}#n=_(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return a(this.#n)}set dataTypeaheadEnabled(e){k(this.#n,e)}constructor(e){super(e),this.opts=e,qt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Gt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current===e}toggleItem(e,t=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=t)}setInitialHighlightedNode(){gl(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class u0 extends Qd{opts;isMulti=!0;#e=_(()=>this.opts.value.current.length>0);get hasValue(){return a(this.#e)}set hasValue(e){k(this.#e,e)}constructor(e){super(e),this.opts=e,qt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Gt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,t=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=t}setInitialHighlightedNode(){gl(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class d0{static create(e){const{type:t,...n}=e,i=t==="single"?new c0(n):new u0(n);return Ii.set(i)}}class zl{static create(e){return new zl(e,Ii.get())}opts;root;attachment;#e;#t;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(e.ref,n=>this.root.triggerNode=n),this.root.domContext=new bo(e.ref),this.#e=new zv({getCurrentItem:()=>this.root.highlightedNode,onMatch:n=>{this.root.setHighlightedNode(n)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#t=new n0({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:n=>{if(this.root.isMulti||!this.root.opts.items.current)return;const i=this.root.opts.items.current.find(s=>s.label===n);i&&(this.root.opts.value.current=i.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#r(){this.root.opts.open.current=!0,this.#t.resetTypeahead(),this.#e.resetTypeahead()}#n(e){this.#r()}#i(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===hi||e.key===Zi)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===ni||e.key===Fn||e.key===Zi||e.key===hi)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#t.handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const o=this.root.getCandidateNodes();if(!o.length)return;if(e.key===Zi){const l=o[0];this.root.setHighlightedNode(l)}else if(e.key===hi){const l=o[o.length-1];this.root.setHighlightedNode(l)}return}if(e.key===gc){this.root.handleClose();return}if((e.key===ni||e.key===Fn&&this.#e.search==="")&&!e.isComposing&&(e.preventDefault(),this.#i()))return;if(e.key===hi&&e.altKey&&this.root.handleClose(),o0.includes(e.key)){e.preventDefault();const o=this.root.getCandidateNodes(),l=this.root.highlightedNode,c=l?o.indexOf(l):-1,u=this.root.opts.loop.current;let d;if(e.key===Zi?d=jv(o,c,u):e.key===hi?d=Hv(o,c,u):e.key===Pd?d=Uv(o,c,10,u):e.key===wd?d=Bv(o,c,10,u):e.key===Sd?d=o[0]:e.key===Ed&&(d=o[o.length-1]),!d)return;this.root.setHighlightedNode(d);return}const t=e.ctrlKey||e.altKey||e.metaKey,n=e.key.length===1,i=e.key===Fn,s=this.root.getCandidateNodes();if(e.key!==gc){if(!t&&(n||i)){!this.#e.handleTypeaheadSearch(e.key,s)&&i&&(e.preventDefault(),this.#i());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#n(e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#n(e):this.root.handleClose()))}#s=_(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":fl(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Dn(this.root.opts.open.current),"data-disabled":Sn(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return a(this.#s)}set props(e){k(this.#s,e)}}class jl{static create(e){return So.set(new jl(e,Ii.get()))}opts;root;attachment;#e=Z(!1);get isPositioned(){return a(this.#e)}set isPositioned(e){k(this.#e,e,!0)}domContext;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(e.ref,n=>this.root.contentNode=n),this.domContext=new bo(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),xd(()=>{this.root.contentNode=null,this.isPositioned=!1}),Gt(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(e){this.root.isUsingKeyboard=!1}#t=_(()=>ka(this.root.isCombobox?"combobox":"select"));onInteractOutside=e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#r=_(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#r)}set snippetProps(e){k(this.#r,e)}#n=_(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Dn(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...a(this.#t)},onpointermove:this.onpointermove,...this.attachment}));get props(){return a(this.#n)}set props(e){k(this.#n,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class Hl{static create(e){return new Hl(e,Ii.get())}opts;root;attachment;#e=_(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return a(this.#e)}set isSelected(e){k(this.#e,e)}#t=_(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return a(this.#t)}set isHighlighted(e){k(this.#t,e)}prevHighlighted=new Hm(()=>this.isHighlighted);#r=Z(!1);get mounted(){return a(this.#r)}set mounted(e){k(this.#r,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(e.ref),Gt([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),Gt(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}#n=_(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return a(this.#n)}set snippetProps(e){k(this.#n,e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!Vv){ys(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=_(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Sn(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return a(this.#i)}set props(e){k(this.#i,e)}}class Ul{static create(e){return l0.set(new Ul(e,Ii.get()))}opts;root;#e=Z(null);get labelNode(){return a(this.#e)}set labelNode(e){k(this.#e,e,!0)}attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(e.ref)}#t=_(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}class Bl{static create(e){return new Bl(e,Ii.get())}opts;root;#e=_(()=>this.root.opts.name.current!=="");get shouldRender(){return a(this.#e)}set shouldRender(e){k(this.#e,e)}constructor(e,t){this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#t=_(()=>({disabled:fc(this.root.opts.disabled.current),required:fc(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}class Vl{static create(e){return new Vl(e,So.get())}opts;content;root;attachment;#e=Z(0);get prevScrollTop(){return a(this.#e)}set prevScrollTop(e){k(this.#e,e,!0)}constructor(e,t){this.opts=e,this.content=t,this.root=t.root,this.attachment=$t(e.ref,n=>{this.root.viewportNode=n})}#t=_(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}class eh{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=bt;#e=Z(!1);get mounted(){return a(this.#e)}set mounted(e){k(this.#e,e,!0)}constructor(e,t){this.opts=e,this.content=t,this.root=t.root,this.attachment=$t(e.ref),Gt([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),qt(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(e){if(this.autoScrollTimer!==null)return;const t=n=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>t(n+1),this.opts.delay.current(n))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>t(1),this.opts.delay.current(0))}onpointermove(e){this.onpointerdown(e)}onpointerleave(e){this.clearAutoScrollInterval()}#t=_(()=>({id:this.opts.id.current,"aria-hidden":Nv(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}class Wl{static create(e){return new Wl(new eh(e,So.get()))}scrollButtonState;content;root;#e=Z(!1);get canScrollDown(){return a(this.#e)}set canScrollDown(e){k(this.#e,e,!0)}scrollIntoViewTimer=null;constructor(e){this.scrollButtonState=e,this.content=e.content,this.root=e.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,Gt([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ys(this.root.viewportNode,"scroll",()=>this.handleScroll())}),Gt([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),Gt(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=Wv(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(e=!1)=>{if(e||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const t=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,n=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<t-n};handleAutoScroll=()=>{const e=this.root.viewportNode,t=this.root.highlightedNode;!e||!t||(e.scrollTop=e.scrollTop+t.offsetHeight)};#t=_(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}class ql{static create(e){return new ql(new eh(e,So.get()))}scrollButtonState;content;root;#e=Z(!1);get canScrollUp(){return a(this.#e)}set canScrollUp(e){k(this.#e,e,!0)}constructor(e){this.scrollButtonState=e,this.content=e.content,this.root=e.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,Gt([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ys(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(e=!1)=>{if(e||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const t=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-t>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#t=_(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}function Go(r,e){U(e,!0);let t=D(e,"value",15);const n=Bl.create({value:fe(()=>t())});var i=O(),s=E(i);{var o=l=>{Xm(l,X(()=>n.props,{get autocomplete(){return e.autocomplete},get value(){return t()},set value(c){t(c)}}))};te(s,l=>{n.shouldRender&&l(o)})}f(r,i),B()}var h0=H("<div><div><!></div></div>"),f0=H("<div><div><!></div></div>");function v0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"forceMount",3,!1),o=D(e,"side",3,"bottom"),l=D(e,"onInteractOutside",3,bt),c=D(e,"onEscapeKeydown",3,bt),u=D(e,"preventScroll",3,!1),d=$(e,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const p=jl.create({id:fe(()=>n()),ref:fe(()=>i(),b=>i(b)),onInteractOutside:fe(()=>l()),onEscapeKeydown:fe(()=>c())}),h=_(()=>lt(d,p.props));var g=O(),m=E(g);{var v=b=>{kd(b,X(()=>a(h),()=>p.popperProps,{get ref(){return p.opts.ref},get side(){return o()},get enabled(){return p.root.opts.open.current},get id(){return n()},get preventScroll(){return u()},forceMount:!0,get shouldRender(){return p.shouldRender},popper:(w,x)=>{let T=()=>x?.().props,R=()=>x?.().wrapperProps;const C=_(()=>lt(T(),{style:p.props.style},{style:e.style}));var S=O(),A=E(S);{var I=L=>{var W=O(),j=E(W);{let Y=_(()=>({props:a(C),wrapperProps:R(),...p.snippetProps}));q(j,()=>e.child,()=>a(Y))}f(L,W)},M=L=>{var W=h0();Xe(W,()=>({...R()}));var j=V(W);Xe(j,()=>({...a(C)}));var Y=V(j);q(Y,()=>e.children??J),z(j),z(W),f(L,W)};te(A,L=>{e.child?L(I):L(M,-1)})}f(w,S)},$$slots:{popper:!0}}))},y=b=>{Td(b,X(()=>a(h),()=>p.popperProps,{get ref(){return p.opts.ref},get side(){return o()},get open(){return p.root.opts.open.current},get id(){return n()},get preventScroll(){return u()},forceMount:!1,get shouldRender(){return p.shouldRender},popper:(w,x)=>{let T=()=>x?.().props,R=()=>x?.().wrapperProps;const C=_(()=>lt(T(),{style:p.props.style},{style:e.style}));var S=O(),A=E(S);{var I=L=>{var W=O(),j=E(W);{let Y=_(()=>({props:a(C),wrapperProps:R(),...p.snippetProps}));q(j,()=>e.child,()=>a(Y))}f(L,W)},M=L=>{var W=f0();Xe(W,()=>({...R()}));var j=V(W);Xe(j,()=>({...a(C)}));var Y=V(j);q(Y,()=>e.children??J),z(j),z(W),f(L,W)};te(A,L=>{e.child?L(I):L(M,-1)})}f(w,S)},$$slots:{popper:!0}}))};te(m,b=>{s()?b(v):s()||b(y,1)})}f(r,g),B()}function Gl(r,e){U(e,!0);let t=D(e,"mounted",15,!1),n=D(e,"onMountedChange",3,bt);Zv(()=>(t(!0),n()(!0),()=>{t(!1),n()(!1)})),B()}var g0=H("<div><!></div>"),p0=H("<!> <!>",1);function m0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"label",19,()=>e.value),o=D(e,"disabled",3,!1),l=D(e,"onHighlight",3,bt),c=D(e,"onUnhighlight",3,bt),u=$(e,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const d=Hl.create({id:fe(()=>n()),ref:fe(()=>i(),b=>i(b)),value:fe(()=>e.value),disabled:fe(()=>o()),label:fe(()=>s()),onHighlight:fe(()=>l()),onUnhighlight:fe(()=>c())}),p=_(()=>lt(u,d.props));var h=p0(),g=E(h);{var m=b=>{var P=O(),w=E(P);{let x=_(()=>({props:a(p),...d.snippetProps}));q(w,()=>e.child,()=>a(x))}f(b,P)},v=b=>{var P=g0();Xe(P,()=>({...a(p)}));var w=V(P);q(w,()=>e.children??J,()=>d.snippetProps),z(P),f(b,P)};te(g,b=>{e.child?b(m):b(v,-1)})}var y=F(g,2);Gl(y,{get mounted(){return d.mounted},set mounted(b){d.mounted=b}}),f(r,h),B()}var _0=H("<div><!></div>");function y0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=$(e,["$$slots","$$events","$$legacy","id","ref","children","child"]);const o=Ul.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h))}),l=_(()=>lt(s,o.props));var c=O(),u=E(c);{var d=h=>{var g=O(),m=E(g);q(m,()=>e.child,()=>({props:a(l)})),f(h,g)},p=h=>{var g=_0();Xe(g,()=>({...a(l)}));var m=V(g);q(m,()=>e.children??J),z(g),f(h,g)};te(u,h=>{e.child?h(d):h(p,-1)})}f(r,c),B()}var b0=H("<div><!></div>");function x0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=$(e,["$$slots","$$events","$$legacy","id","ref","children","child"]);const o=Vl.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h))}),l=_(()=>lt(s,o.props));var c=O(),u=E(c);{var d=h=>{var g=O(),m=E(g);q(m,()=>e.child,()=>({props:a(l)})),f(h,g)},p=h=>{var g=b0();Xe(g,()=>({...a(l)}));var m=V(g);q(m,()=>e.children??J),z(g),f(h,g)};te(u,h=>{e.child?h(d):h(p,-1)})}f(r,c),B()}var w0=H("<div><!></div>"),S0=H("<!> <!>",1);function P0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"delay",3,()=>50),o=$(e,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=Wl.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h)),delay:fe(()=>s())}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=h=>{var g=S0(),m=E(g);Gl(m,{get mounted(){return l.scrollButtonState.mounted},set mounted(P){l.scrollButtonState.mounted=P}});var v=F(m,2);{var y=P=>{var w=O(),x=E(w);q(x,()=>e.child,()=>({props:o})),f(P,w)},b=P=>{var w=w0();Xe(w,()=>({...a(c)}));var x=V(w);q(x,()=>e.children??J),z(w),f(P,w)};te(v,P=>{e.child?P(y):P(b,-1)})}f(h,g)};te(d,h=>{l.canScrollDown&&h(p)})}f(r,u),B()}var E0=H("<div><!></div>"),k0=H("<!> <!>",1);function T0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"delay",3,()=>50),o=$(e,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=ql.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h)),delay:fe(()=>s())}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=h=>{var g=k0(),m=E(g);Gl(m,{get mounted(){return l.scrollButtonState.mounted},set mounted(P){l.scrollButtonState.mounted=P}});var v=F(m,2);{var y=P=>{var w=O(),x=E(w);q(x,()=>e.child,()=>({props:o})),f(P,w)},b=P=>{var w=E0();Xe(w,()=>({...a(c)}));var x=V(w);q(x,()=>e.children??J),z(w),f(P,w)};te(v,P=>{e.child?P(y):P(b,-1)})}f(h,g)};te(d,h=>{l.canScrollUp&&h(p)})}f(r,u),B()}const $s=yo({component:"popover",parts:["root","trigger","content","close","overlay"]}),Po=new Ri("Popover.Root");class Kl{static create(e){return Po.set(new Kl(e))}opts;#e=Z(null);get contentNode(){return a(this.#e)}set contentNode(e){k(this.#e,e,!0)}contentPresence;#t=Z(null);get triggerNode(){return a(this.#t)}set triggerNode(e){k(this.#t,e,!0)}#r=Z(null);get overlayNode(){return a(this.#r)}set overlayNode(e){k(this.#r,e,!0)}overlayPresence;#n=Z(!1);get openedViaHover(){return a(this.#n)}set openedViaHover(e){k(this.#n,e,!0)}#i=Z(!1);get hasInteractedWithContent(){return a(this.#i)}set hasInteractedWithContent(e){k(this.#i,e,!0)}#s=Z(!1);get hoverCooldown(){return a(this.#s)}set hoverCooldown(e){k(this.#s,e,!0)}#a=Z(0);get closeDelay(){return a(this.#a)}set closeDelay(e){k(this.#a,e,!0)}#o=null;#c=null;constructor(e){this.opts=e,this.contentPresence=new Pi({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Pi({ref:fe(()=>this.overlayNode),open:this.opts.open}),Gt(()=>this.opts.open.current,t=>{t||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(e){this.#c=e}#l(){this.#o!==null&&this.#c&&(this.#c.clearTimeout(this.#o),this.#o=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#c&&(this.#o=this.#c.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#o=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}}class $l{static create(e){return new $l(e,Po.get())}opts;root;attachment;domContext;#e=null;#t=null;#r=Z(!1);constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref,n=>this.root.triggerNode=n),this.domContext=new bo(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Gt(()=>this.opts.closeDelay.current,n=>{this.root.closeDelay=n})}#n(){this.#e!==null&&(this.domContext.clearTimeout(this.#e),this.#e=null)}#i(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#s(){this.#n(),this.#i()}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ks(e)||(k(this.#r,!0),this.#i(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const t=this.opts.openDelay.current;t<=0?this.root.handleHoverOpen():this.#e=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#e=null},t)}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Ks(e)||(k(this.#r,!1),this.#n(),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(this.#s(),a(this.#r)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}a(this.#r)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===ni||e.key===Fn)&&(e.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#o=_(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":fl(this.root.opts.open.current),"data-state":Dn(this.root.opts.open.current),"aria-controls":this.#a(),[$s.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return a(this.#o)}set props(e){k(this.#o,e)}}class Yl{static create(e){return new Yl(e,Po.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref,n=>this.root.contentNode=n),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new Qv({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const t=e.target;jo(t)&&qv(t)&&this.root.markInteraction()}onpointerenter(e){Ks(e)||this.root.cancelDelayedClose()}onpointerleave(e){Ks(e)}onInteractOutside=e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!jo(e.target))return;const t=e.target.closest($s.selector("trigger"));if(!(t&&t===this.root.triggerNode)){if(this.opts.customAnchor.current){if(jo(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const n=document.querySelector(this.opts.customAnchor.current);if(n&&n.contains(e.target))return}}this.root.handleClose()}};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#e=_(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#e)}set snippetProps(e){k(this.#e,e)}#t=_(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Dn(this.root.opts.open.current),[$s.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}class Xl{static create(e){return new Xl(e,Po.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.root.handleClose()}onkeydown(e){(e.key===ni||e.key===Fn)&&(e.preventDefault(),this.root.handleClose())}#e=_(()=>({id:this.opts.id.current,onclick:this.onclick,onkeydown:this.onkeydown,type:"button",[$s.close]:"",...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}var C0=H("<div><div><!></div></div>"),A0=H("<div><div><!></div></div>");function M0(r,e){const t=Qt();U(e,!0);let n=D(e,"ref",15,null),i=D(e,"id",19,()=>er(t)),s=D(e,"forceMount",3,!1),o=D(e,"onOpenAutoFocus",3,bt),l=D(e,"onCloseAutoFocus",3,bt),c=D(e,"onEscapeKeydown",3,bt),u=D(e,"onInteractOutside",3,bt),d=D(e,"trapFocus",3,!0),p=D(e,"preventScroll",3,!1),h=D(e,"customAnchor",3,null),g=$(e,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const m=Yl.create({id:fe(()=>i()),ref:fe(()=>n(),R=>n(R)),onInteractOutside:fe(()=>u()),onEscapeKeydown:fe(()=>c()),customAnchor:fe(()=>h())}),v=_(()=>lt(g,m.props)),y=_(()=>d()&&m.shouldTrapFocus);function b(R){m.shouldTrapFocus||R.preventDefault(),o()(R)}var P=O(),w=E(P);{var x=R=>{kd(R,X(()=>a(v),()=>m.popperProps,{get ref(){return m.opts.ref},get enabled(){return m.root.opts.open.current},get id(){return i()},get trapFocus(){return a(y)},get preventScroll(){return p()},loop:!0,forceMount:!0,get customAnchor(){return h()},onOpenAutoFocus:b,get onCloseAutoFocus(){return l()},get shouldRender(){return m.shouldRender},popper:(S,A)=>{let I=()=>A?.().props,M=()=>A?.().wrapperProps;const L=_(()=>lt(I(),{style:ka("popover")},{style:e.style}));var W=O(),j=E(W);{var Y=se=>{var Q=O(),ce=E(Q);{let he=_(()=>({props:a(L),wrapperProps:M(),...m.snippetProps}));q(ce,()=>e.child,()=>a(he))}f(se,Q)},le=se=>{var Q=C0();Xe(Q,()=>({...M()}));var ce=V(Q);Xe(ce,()=>({...a(L)}));var he=V(ce);q(he,()=>e.children??J),z(ce),z(Q),f(se,Q)};te(j,se=>{e.child?se(Y):se(le,-1)})}f(S,W)},$$slots:{popper:!0}}))},T=R=>{Td(R,X(()=>a(v),()=>m.popperProps,{get ref(){return m.opts.ref},get open(){return m.root.opts.open.current},get id(){return i()},get trapFocus(){return a(y)},get preventScroll(){return p()},loop:!0,forceMount:!1,get customAnchor(){return h()},onOpenAutoFocus:b,get onCloseAutoFocus(){return l()},get shouldRender(){return m.shouldRender},popper:(S,A)=>{let I=()=>A?.().props,M=()=>A?.().wrapperProps;const L=_(()=>lt(I(),{style:ka("popover")},{style:e.style}));var W=O(),j=E(W);{var Y=se=>{var Q=O(),ce=E(Q);{let he=_(()=>({props:a(L),wrapperProps:M(),...m.snippetProps}));q(ce,()=>e.child,()=>a(he))}f(se,Q)},le=se=>{var Q=A0();Xe(Q,()=>({...M()}));var ce=V(Q);Xe(ce,()=>({...a(L)}));var he=V(ce);q(he,()=>e.children??J),z(ce),z(Q),f(se,Q)};te(j,se=>{e.child?se(Y):se(le,-1)})}f(S,W)},$$slots:{popper:!0}}))};te(w,R=>{s()?R(x):s()||R(T,1)})}f(r,P),B()}var R0=H("<button><!></button>");function I0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"type",3,"button"),o=D(e,"disabled",3,!1),l=D(e,"openOnHover",3,!1),c=D(e,"openDelay",3,700),u=D(e,"closeDelay",3,300),d=$(e,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const p=$l.create({id:fe(()=>n()),ref:fe(()=>i(),g=>i(g)),disabled:fe(()=>!!o()),openOnHover:fe(()=>l()),openDelay:fe(()=>c()),closeDelay:fe(()=>u())}),h=_(()=>lt(d,p.props,{type:s()}));Cd(r,{get id(){return n()},get ref(){return p.opts.ref},children:(g,m)=>{var v=O(),y=E(v);{var b=w=>{var x=O(),T=E(x);q(T,()=>e.child,()=>({props:a(h)})),f(w,x)},P=w=>{var x=R0();Xe(x,()=>({...a(h)}));var T=V(x);q(T,()=>e.children??J),z(x),f(w,x)};te(y,w=>{e.child?w(b):w(P,-1)})}f(g,v)},$$slots:{default:!0}}),B()}var O0=H("<button><!></button>");function N0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=$(e,["$$slots","$$events","$$legacy","child","children","id","ref"]);const o=Xl.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h))}),l=_(()=>lt(s,o.props));var c=O(),u=E(c);{var d=h=>{var g=O(),m=E(g);q(m,()=>e.child,()=>({props:a(l)})),f(h,g)},p=h=>{var g=O0();Xe(g,()=>({...a(l)}));var m=V(g);q(m,()=>e.children??J),z(g),f(h,g)};te(u,h=>{e.child?h(d):h(p,-1)})}f(r,c),B()}function F0(r,e){U(e,!0);let t=D(e,"open",15,!1),n=D(e,"onOpenChange",3,bt),i=D(e,"onOpenChangeComplete",3,bt);Tl.create({variant:fe(()=>"dialog"),open:fe(()=>t(),l=>{t(l),n()(l)}),onOpenChangeComplete:fe(()=>i())});var s=O(),o=E(s);q(o,()=>e.children??J),f(r,s),B()}var L0=H("<button><!></button>");function D0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"disabled",3,!1),o=$(e,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const l=Cl.create({variant:fe(()=>"close"),id:fe(()=>n()),ref:fe(()=>i(),g=>i(g)),disabled:fe(()=>!!s())}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=g=>{var m=O(),v=E(m);q(v,()=>e.child,()=>({props:a(c)})),f(g,m)},h=g=>{var m=L0();Xe(m,()=>({...a(c)}));var v=V(m);q(v,()=>e.children??J),z(m),f(g,m)};te(d,g=>{e.child?g(p):g(h,-1)})}f(r,u),B()}var z0=H("<!> <!>",1),j0=H("<!> <div><!></div>",1);function H0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"forceMount",3,!1),o=D(e,"onCloseAutoFocus",3,bt),l=D(e,"onOpenAutoFocus",3,bt),c=D(e,"onEscapeKeydown",3,bt),u=D(e,"onInteractOutside",3,bt),d=D(e,"trapFocus",3,!0),p=D(e,"preventScroll",3,!0),h=D(e,"restoreScrollDelay",3,null),g=$(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const m=Rl.create({id:fe(()=>n()),ref:fe(()=>i(),w=>i(w))}),v=_(()=>lt(g,m.props));var y=O(),b=E(y);{var P=w=>{Gv(w,{get ref(){return m.opts.ref},loop:!0,get trapFocus(){return d()},get enabled(){return m.root.opts.open.current},get onOpenAutoFocus(){return l()},get onCloseAutoFocus(){return o()},focusScope:(T,R)=>{let C=()=>R?.().props;Kv(T,X(()=>a(v),{get enabled(){return m.root.opts.open.current},get ref(){return m.opts.ref},onEscapeKeydown:S=>{c()(S),!S.defaultPrevented&&m.root.handleClose()},children:(S,A)=>{$v(S,X(()=>a(v),{get ref(){return m.opts.ref},get enabled(){return m.root.opts.open.current},onInteractOutside:I=>{u()(I),!I.defaultPrevented&&m.root.handleClose()},children:(I,M)=>{Yv(I,X(()=>a(v),{get ref(){return m.opts.ref},get enabled(){return m.root.opts.open.current},children:(L,W)=>{var j=O(),Y=E(j);{var le=Q=>{var ce=z0(),he=E(ce);{var ae=ie=>{pc(ie,{get preventScroll(){return p()},get restoreScrollDelay(){return h()}})};te(he,ie=>{m.root.opts.open.current&&ie(ae)})}var re=F(he,2);{let ie=_(()=>({props:lt(a(v),C()),...m.snippetProps}));q(re,()=>e.child,()=>a(ie))}f(Q,ce)},se=Q=>{var ce=j0(),he=E(ce);pc(he,{get preventScroll(){return p()}});var ae=F(he,2);Xe(ae,ie=>({...ie}),[()=>lt(a(v),C())]);var re=V(ae);q(re,()=>e.children??J),z(ae),f(Q,ce)};te(Y,Q=>{e.child?Q(le):Q(se,-1)})}f(L,j)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};te(b,w=>{(m.shouldRender||s())&&w(P)})}f(r,y),B()}function U0(r,e){U(e,!0);let t=D(e,"open",15,!1),n=D(e,"onOpenChange",3,bt),i=D(e,"onOpenChangeComplete",3,bt);Kl.create({open:fe(()=>t(),s=>{t(s),n()(s)}),onOpenChangeComplete:fe(()=>i())}),Ad(r,{children:(s,o)=>{var l=O(),c=E(l);q(c,()=>e.children??J),f(s,l)},$$slots:{default:!0}}),B()}var B0=H("<!> <!>",1);function V0(r,e){U(e,!0);let t=D(e,"value",15),n=D(e,"onValueChange",3,bt),i=D(e,"name",3,""),s=D(e,"disabled",3,!1),o=D(e,"open",15,!1),l=D(e,"onOpenChange",3,bt),c=D(e,"onOpenChangeComplete",3,bt),u=D(e,"loop",3,!1),d=D(e,"scrollAlignment",3,"nearest"),p=D(e,"required",3,!1),h=D(e,"items",19,()=>[]),g=D(e,"allowDeselect",3,!1);function m(){t()===void 0&&t(e.type==="single"?"":[])}m(),Gt.pre(()=>t(),()=>{m()});let v=Z("");const y=d0.create({type:e.type,value:fe(()=>t(),C=>{t(C),n()(C)}),disabled:fe(()=>s()),required:fe(()=>p()),open:fe(()=>o(),C=>{o(C),l()(C)}),loop:fe(()=>u()),scrollAlignment:fe(()=>d()),name:fe(()=>i()),isCombobox:!1,items:fe(()=>h()),allowDeselect:fe(()=>g()),inputValue:fe(()=>a(v),C=>k(v,C,!0)),onOpenChangeComplete:fe(()=>c())});var b=B0(),P=E(b);Ad(P,{children:(C,S)=>{var A=O(),I=E(A);q(I,()=>e.children??J),f(C,A)},$$slots:{default:!0}});var w=F(P,2);{var x=C=>{var S=O(),A=E(S);{var I=L=>{Go(L,{get autocomplete(){return e.autocomplete}})},M=L=>{var W=O(),j=E(W);Et(j,16,()=>y.opts.value.current,Y=>Y,(Y,le)=>{Go(Y,{get value(){return le},get autocomplete(){return e.autocomplete}})}),f(L,W)};te(A,L=>{y.opts.value.current.length===0?L(I):L(M,-1)})}f(C,S)},T=_(()=>Array.isArray(y.opts.value.current)),R=C=>{Go(C,{get autocomplete(){return e.autocomplete},get value(){return y.opts.value.current},set value(S){y.opts.value.current=S}})};te(w,C=>{a(T)?C(x):C(R,-1)})}f(r,b),B()}var W0=H("<button><!></button>");function q0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"type",3,"button"),o=$(e,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const l=zl.create({id:fe(()=>n()),ref:fe(()=>i(),p=>i(p))}),c=_(()=>lt(o,l.props,{type:s()}));var u=O(),d=E(u);ue(d,()=>Cd,(p,h)=>{h(p,{get id(){return n()},get ref(){return l.opts.ref},children:(g,m)=>{var v=O(),y=E(v);{var b=w=>{var x=O(),T=E(x);q(T,()=>e.child,()=>({props:a(c)})),f(w,x)},P=w=>{var x=W0();Xe(x,()=>({...a(c)}));var T=V(x);q(T,()=>e.children??J),z(x),f(w,x)};te(y,w=>{e.child?w(b):w(P,-1)})}f(g,v)},$$slots:{default:!0}})}),f(r,u),B()}function Eo(r,e){U(e,!0);let t=D(e,"open",15,!1),n=D(e,"value",15),i=$(e,["$$slots","$$events","$$legacy","open","value"]);var s=O(),o=E(s);ue(o,()=>V0,(l,c)=>{c(l,X(()=>i,{get open(){return t()},set open(u){t(u)},get value(){return n()},set value(u){n(u)}}))}),f(r,s),B()}function Ys(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref"]);var i=O(),s=E(i);ue(s,()=>y0,(o,l)=>{l(o,X({"data-slot":"select-group"},()=>n,{get ref(){return t()},set ref(c){t(c)}}))}),f(r,i),B()}var G0=H("<div><!></div>");function Ma(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=G0();Xe(i,o=>({"data-slot":"select-label",class:o,...n}),[()=>vt("px-2 py-1.5 text-xs text-muted-foreground",e.class)]);var s=V(i);q(s,()=>e.children??J),z(i),Pr(i,o=>t(o),()=>t()),f(r,i),B()}var K0=H('<span class="absolute end-2 flex size-3.5 items-center justify-center"><!></span> <!>',1);function hs(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class","value","label","children"]);var i=O(),s=E(i);{const o=(c,u)=>{let d=()=>u?.().selected,p=()=>u?.().highlighted;var h=K0(),g=E(h),m=V(g);{var v=w=>{_l(w,{class:"size-4"})};te(m,w=>{d()&&w(v)})}z(g);var y=F(g,2);{var b=w=>{var x=O(),T=E(x);q(T,()=>e.children,()=>({selected:d(),highlighted:p()})),f(w,x)},P=w=>{var x=Ge();oe(()=>Se(x,e.label||e.value)),f(w,x)};te(y,w=>{e.children?w(b):w(P,-1)})}f(c,h)};let l=_(()=>vt("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e.class));ue(s,()=>m0,(c,u)=>{u(c,X({get value(){return e.value},"data-slot":"select-item",get class(){return a(l)}},()=>n,{get ref(){return t()},set ref(d){t(d)},children:o,$$slots:{default:!0}}))})}f(r,i),B()}function $0(r,e){let t=$(e,["$$slots","$$events","$$legacy"]);var n=O(),i=E(n);ue(i,()=>pl,(s,o)=>{o(s,X(()=>t))}),f(r,n)}function Y0(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("flex cursor-default items-center justify-center py-1",e.class));ue(s,()=>T0,(l,c)=>{c(l,X({"data-slot":"select-scroll-up-button",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)},children:(u,d)=>{Ud(u,{class:"size-4"})},$$slots:{default:!0}}))})}f(r,i),B()}function X0(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("flex cursor-default items-center justify-center py-1",e.class));ue(s,()=>P0,(l,c)=>{c(l,X({"data-slot":"select-scroll-down-button",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)},children:(u,d)=>{xo(u,{class:"size-4"})},$$slots:{default:!0}}))})}f(r,i),B()}var J0=H("<!> <!> <!>",1);function ko(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"sideOffset",3,4),i=D(e,"preventScroll",3,!0),s=$(e,["$$slots","$$events","$$legacy","ref","class","sideOffset","portalProps","children","preventScroll"]);$0(r,X(()=>e.portalProps,{children:(o,l)=>{var c=O(),u=E(c);{let d=_(()=>vt("relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:translate-y-1 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:-translate-x-1 data-[side=left]:slide-in-from-end-2 data-[side=right]:translate-x-1 data-[side=right]:slide-in-from-start-2 data-[side=top]:-translate-y-1 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e.class));ue(u,()=>v0,(p,h)=>{h(p,X({get sideOffset(){return n()},get preventScroll(){return i()},"data-slot":"select-content",get class(){return a(d)}},()=>s,{get ref(){return t()},set ref(g){t(g)},children:(g,m)=>{var v=J0(),y=E(v);Y0(y,{});var b=F(y,2);{let w=_(()=>vt("h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1"));ue(b,()=>x0,(x,T)=>{T(x,{get class(){return a(w)},children:(R,C)=>{var S=O(),A=E(S);q(A,()=>e.children??J),f(R,S)},$$slots:{default:!0}})})}var P=F(b,2);X0(P,{}),f(g,v)},$$slots:{default:!0}}))})}f(o,c)},$$slots:{default:!0}})),B()}var Z0=H("<!> <!>",1);function To(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"size",3,"default"),i=$(e,["$$slots","$$events","$$legacy","ref","class","children","size"]);var s=O(),o=E(s);{let l=_(()=>vt("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e.class));ue(o,()=>q0,(c,u)=>{u(c,X({"data-slot":"select-trigger",get"data-size"(){return n()},get class(){return a(l)}},()=>i,{get ref(){return t()},set ref(d){t(d)},children:(d,p)=>{var h=Z0(),g=E(h);q(g,()=>e.children??J);var m=F(g,2);xo(m,{class:"size-4 opacity-50"}),f(d,h)},$$slots:{default:!0}}))})}f(r,s),B()}function Q0(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);{let i=_(()=>vt("pointer-events-none -mx-1 my-1 h-px bg-border",e.class));Qi(r,X({"data-slot":"select-separator",get class(){return a(i)}},()=>n,{get ref(){return t()},set ref(s){t(s)}}))}B()}var e_=H("<!> <!>",1);function Nn(r,e){U(e,!0);let t=D(e,"value",15);const n=_(()=>e.options.find(o=>o.value===t())?.label||e.placeholder);var i=O(),s=E(i);ue(s,()=>Eo,(o,l)=>{l(o,X(()=>e.root,{type:"single",get value(){return t()},set value(c){t(c)},children:(c,u)=>{var d=e_(),p=E(d);ue(p,()=>To,(g,m)=>{m(g,X(()=>e.trigger,{children:(v,y)=>{Fe();var b=Ge();oe(()=>Se(b,a(n))),f(v,b)},$$slots:{default:!0}}))});var h=F(p,2);ue(h,()=>ko,(g,m)=>{m(g,X(()=>e.content,{children:(v,y)=>{var b=O(),P=E(b);ue(P,()=>Ys,(w,x)=>{x(w,X(()=>e.group,{children:(T,R)=>{var C=O(),S=E(C);Et(S,17,()=>e.options,A=>A.value,(A,I)=>{var M=O(),L=E(M);ue(L,()=>hs,(W,j)=>{j(W,X({get value(){return a(I).value},get disabled(){return a(I).disabled}},()=>e.item,{children:(Y,le)=>{Fe();var se=Ge();oe(()=>Se(se,a(I).label)),f(Y,se)},$$slots:{default:!0}}))}),f(A,M)}),f(T,C)},$$slots:{default:!0}}))}),f(v,b)},$$slots:{default:!0}}))}),f(c,d)},$$slots:{default:!0}}))}),f(r,i),B()}function th(r,e){U(e,!0);let t=D(e,"open",15,!1),n=$(e,["$$slots","$$events","$$legacy","open"]);var i=O(),s=E(i);ue(s,()=>U0,(o,l)=>{l(o,X(()=>n,{get open(){return t()},set open(c){t(c)}}))}),f(r,i),B()}function Mc(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref"]);var i=O(),s=E(i);ue(s,()=>N0,(o,l)=>{l(o,X({"data-slot":"popover-close"},()=>n,{get ref(){return t()},set ref(c){t(c)}}))}),f(r,i),B()}function t_(r,e){let t=$(e,["$$slots","$$events","$$legacy"]);var n=O(),i=E(n);ue(i,()=>pl,(s,o)=>{o(s,X(()=>t))}),f(r,n)}function rh(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"sideOffset",3,4),i=D(e,"align",3,"center"),s=$(e,["$$slots","$$events","$$legacy","ref","class","sideOffset","align","portalProps"]);t_(r,X(()=>e.portalProps,{children:(o,l)=>{var c=O(),u=E(c);{let d=_(()=>vt("z-50 w-72 origin-(--bits-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e.class));ue(u,()=>M0,(p,h)=>{h(p,X({"data-slot":"popover-content",get sideOffset(){return n()},get align(){return i()},get class(){return a(d)}},()=>s,{get ref(){return t()},set ref(g){t(g)}}))})}f(o,c)},$$slots:{default:!0}})),B()}function nh(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("",e.class));ue(s,()=>I0,(l,c)=>{c(l,X({"data-slot":"popover-trigger",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)}}))})}f(r,i),B()}var r_=H('<div class="space-y-2"><h4 class="leading-none font-medium">Remove Keyframes</h4> <p class="text-sm text-muted-foreground"> </p> <div class="flex justify-end gap-2 pt-2"><!> <!></div></div>'),n_=H("<!> <!>",1);function ih(r,e){U(e,!0);function t(){e.removeKeyframes&&e.removeKeyframes(e.property)}var n=O(),i=E(n);{var s=l=>{var c=O(),u=E(c);ue(u,()=>th,(d,p)=>{p(d,{children:(h,g)=>{var m=n_(),v=E(m);{const b=(P,w)=>{let x=()=>w?.().props;{let T=_(()=>`Remove all keyframes for ${e.label}`);Mt(P,X({variant:"ghost",size:"icon-xs",get title(){return a(T)}},x,{children:(R,C)=>{Ac(R,{class:"size-2.5",fill:"currentColor"})},$$slots:{default:!0}}))}};ue(v,()=>nh,(P,w)=>{w(P,{child:b,$$slots:{child:!0}})})}var y=F(v,2);ue(y,()=>rh,(b,P)=>{P(b,{class:"w-64",align:"end",side:"left",children:(w,x)=>{var T=r_(),R=F(V(T),2),C=V(R);z(R);var S=F(R,2),A=V(S);{const M=(L,W)=>{Mt(L,X({variant:"outline",size:"sm"},()=>W?.().props,{children:(Y,le)=>{Fe();var se=Ge("Cancel");f(Y,se)},$$slots:{default:!0}}))};ue(A,()=>Mc,(L,W)=>{W(L,{child:M,$$slots:{child:!0}})})}var I=F(A,2);{const M=(L,W)=>{Mt(L,X({variant:"destructive",size:"sm"},()=>W?.().props,{onclick:t,children:(Y,le)=>{Fe();var se=Ge("Remove");f(Y,se)},$$slots:{default:!0}}))};ue(I,()=>Mc,(L,W)=>{W(L,{child:M,$$slots:{child:!0}})})}z(S),z(T),oe(()=>Se(C,`Remove all keyframes for ${e.label??""}? This cannot be undone.`)),f(w,T)},$$slots:{default:!0}})}),f(h,m)},$$slots:{default:!0}})}),f(l,c)},o=l=>{{let c=_(()=>`Add keyframe for ${e.label}`);Mt(l,{variant:"ghost",size:"icon-xs",onclick:()=>e.addKeyframe(e.property),get title(){return a(c)},children:(u,d)=>{{let p=_(()=>e.active?"currentColor":"none");Ac(u,{class:"size-2.5",get fill(){return a(p)}})}},$$slots:{default:!0}})}};te(i,l=>{e.active&&e.removeKeyframes?l(s):l(o,-1)})}f(r,n),B()}function Jl(r,e){yl(r,{get for(){return e.htmlFor},class:"flex-1 text-[10px] text-muted-foreground",children:(t,n)=>{var i=O(),s=E(i);q(s,()=>e.children),f(t,i)},$$slots:{default:!0}})}var i_=H('<div class="flex flex-col gap-1"><div class="flex items-center gap-0.5"><!> <!> <!></div> <!></div>');function nr(r,e){U(e,!0);const t=_(jn),n=_(()=>a(t).project),i=_(()=>a(n).selectedLayer),s=_(()=>a(i)?.keyframes.some(v=>v.property===e.property));function o(v){a(i)&&a(n).removeKeyframesByProperty(a(i).id,v)}var l=i_(),c=V(l),u=V(c);{var d=v=>{{let y=_(()=>!!a(s));ih(v,{get property(){return e.property},get active(){return a(y)},get label(){return e.label},get addKeyframe(){return e.addKeyframe},removeKeyframes:o})}};te(u,v=>{e.property&&v(d)})}var p=F(u,2);Jl(p,{get htmlFor(){return e.for},children:(v,y)=>{Fe();var b=Ge();oe(()=>Se(b,e.label)),f(v,b)}});var h=F(p,2);{var g=v=>{var y=O(),b=E(y);q(b,()=>e.labelExtra),f(v,y)};te(h,v=>{e.labelExtra&&v(g)})}z(c);var m=F(c,2);q(m,()=>e.children),z(l),f(r,l),B()}function sh(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("text-lg leading-none font-semibold",e.class));ue(s,()=>Vm,(l,c)=>{c(l,X({"data-slot":"dialog-title",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)}}))})}f(r,i),B()}var s_=H("<div><!></div>");function oh(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=s_();Xe(i,o=>({"data-slot":"dialog-header",class:o,...n}),[()=>vt("flex flex-col gap-2 text-center sm:text-left",e.class)]);var s=V(i);q(s,()=>e.children??J),z(i),Pr(i,o=>t(o),()=>t()),f(r,i),B()}function o_(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e.class));ue(s,()=>qm,(l,c)=>{c(l,X({"data-slot":"dialog-overlay",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)}}))})}f(r,i),B()}var a_=H('<!> <span class="sr-only">Close</span>',1),l_=H("<!> <!>",1),c_=H("<!> <!>",1);function ah(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"showCloseButton",3,!0),i=$(e,["$$slots","$$events","$$legacy","ref","class","portalProps","children","showCloseButton"]);var s=O(),o=E(s);ue(o,()=>u_,(l,c)=>{c(l,X(()=>e.portalProps,{children:(u,d)=>{var p=c_(),h=E(p);ue(h,()=>o_,(m,v)=>{v(m,{})});var g=F(h,2);{let m=_(()=>vt("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-popover p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e.class));ue(g,()=>H0,(v,y)=>{y(v,X({"data-slot":"dialog-content",get class(){return a(m)}},()=>i,{get ref(){return t()},set ref(b){t(b)},children:(b,P)=>{var w=l_(),x=E(w);q(x,()=>e.children??J);var T=F(x,2);{var R=C=>{var S=O(),A=E(S);ue(A,()=>D0,(I,M)=>{M(I,{class:"absolute end-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:(L,W)=>{var j=a_(),Y=E(j);ml(Y,{}),Fe(2),f(L,j)},$$slots:{default:!0}})}),f(C,S)};te(T,C=>{n()&&C(R)})}f(b,w)},$$slots:{default:!0}}))})}f(u,p)},$$slots:{default:!0}}))}),f(r,s),B()}function lh(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("text-sm text-muted-foreground",e.class));ue(s,()=>Km,(l,c)=>{c(l,X({"data-slot":"dialog-description",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)}}))})}f(r,i),B()}const ch=F0,u_=pl;var d_=H('<div class="absolute -top-4 left-1/2 -translate-x-1/2 rounded-full bg-green-600 px-4 py-1 text-xs font-semibold text-white">Current Plan</div>'),h_=H('<div class="absolute -top-4 left-1/2 -translate-x-1/2 rounded-full bg-primary px-4 py-1 text-xs font-semibold text-primary-foreground">Most Popular</div>'),f_=H('<li class="flex items-start gap-3"><div><!></div> <span> </span></li>'),v_=H('<div><!> <div class="mb-8"><h3 class="mb-2 text-2xl font-bold text-foreground"> </h3> <div class="mb-2 flex items-baseline gap-1"><span class="text-4xl font-extrabold text-foreground"> </span> <span class="text-muted-foreground"> </span></div> <p class="text-sm text-muted-foreground"> </p></div> <!> <ul class="grow space-y-3"></ul></div>');function g_(r,e){U(e,!0);let t=D(e,"disabled",3,!1),n=D(e,"isCurrentPlan",3,!1);var i=v_(),s=V(i);{var o=x=>{var T=d_();f(x,T)},l=x=>{var T=h_();f(x,T)};te(s,x=>{n()?x(o):e.plan.popular&&x(l,1)})}var c=F(s,2),u=V(c),d=V(u,!0);z(u);var p=F(u,2),h=V(p),g=V(h);z(h);var m=F(h,2),v=V(m);z(m),z(p);var y=F(p,2),b=V(y,!0);z(y),z(c);var P=F(c,2);Mt(P,{size:"lg",get variant(){return e.plan.variant},class:"mb-8 w-full",get onclick(){return e.onclick},get disabled(){return t()},children:(x,T)=>{Fe();var R=Ge();oe(()=>Se(R,n()?"Current Plan":e.plan.cta)),f(x,R)},$$slots:{default:!0}});var w=F(P,2);Et(w,21,()=>e.plan.features,x=>x.text,(x,T)=>{var R=f_(),C=V(R),S=V(C);{let M=_(()=>a(T).highlight?"text-primary":"text-muted-foreground");_l(S,{get class(){return`h-3.5 w-3.5 ${a(M)??""}`}})}z(C);var A=F(C,2),I=V(A,!0);z(A),z(R),oe(()=>{gr(C,1,`mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full ${a(T).highlight?"bg-primary/20":"bg-muted"}`),gr(A,1,`text-sm ${a(T).highlight?"font-medium text-foreground":"text-muted-foreground"}`),Se(I,a(T).text)}),f(x,R)}),z(w),z(i),oe(()=>{gr(i,1,`relative flex flex-col rounded-2xl border border-border/50 bg-card/50 p-8 backdrop-blur-sm transition-all duration-300 ${t()?"opacity-60":e.plan.popular?"shadow-lg ring-2 shadow-primary/10 ring-primary/50":"hover:border-primary/30"}`),Se(d,e.plan.name),Se(g,`$${e.plan.price??""}`),Se(v,`/${e.plan.period??""}`),Se(b,e.plan.description)}),f(r,i),B()}var K=typeof window<"u"?window:void 0,Wt=typeof globalThis<"u"?globalThis:K;typeof self>"u"&&(Wt.self=Wt),typeof File>"u"&&(Wt.File=function(){});var Lr=Wt?.navigator,me=Wt?.document,ir=Wt?.location,Ra=Wt?.fetch,Ia=Wt!=null&&Wt.XMLHttpRequest&&"withCredentials"in new Wt.XMLHttpRequest?Wt.XMLHttpRequest:void 0,Rc=Wt?.AbortController,p_=Wt?.CompressionStream,Tr=Lr?.userAgent,Me=K??{},Ic="1.364.6",Ir={DEBUG:!1,LIB_VERSION:Ic,LIB_NAME:"web",JS_SDK_VERSION:Ic};function Oc(r,e,t,n,i,s,o){try{var l=r[s](o),c=l.value}catch(u){return void t(u)}l.done?e(c):Promise.resolve(c).then(n,i)}function Zr(r){return function(){var e=this,t=arguments;return new Promise((function(n,i){var s=r.apply(e,t);function o(c){Oc(s,n,i,o,l,"next",c)}function l(c){Oc(s,n,i,o,l,"throw",c)}o(void 0)}))}}function pe(){return pe=Object.assign?Object.assign.bind():function(r){for(var e=1;arguments.length>e;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},pe.apply(null,arguments)}function uh(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)!==-1)continue;t[n]=r[n]}return t}function dh(){return(dh=Zr((function*(r,e){e===void 0&&(e=!0);try{var t=new Blob([r],{type:"text/plain"}).stream().pipeThrough(new CompressionStream("gzip"));return yield new Response(t).blob()}catch(n){return e&&console.error("Failed to gzip compress data",n),null}}))).apply(this,arguments)}var m_=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],__=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],Nc=function(r,e){if(e===void 0&&(e=[]),!r)return!1;var t=r.toLowerCase();return __.concat(e).some((n=>{var i=n.toLowerCase();return t.indexOf(i)!==-1}))};function Be(r,e){return r.indexOf(e)!==-1}var Co=function(r){return r.trim()},Oa=function(r){return r.replace(/^\$/,"")},hh=Object.prototype,fh=hh.hasOwnProperty,Ao=hh.toString,Je=Array.isArray||function(r){return Ao.call(r)==="[object Array]"},yn=r=>typeof r=="function",Vt=r=>r===Object(r)&&!Je(r),mi=r=>{if(Vt(r)){for(var e in r)if(fh.call(r,e))return!1;return!0}return!1},xe=r=>r===void 0,Lt=r=>Ao.call(r)=="[object String]",js=r=>Lt(r)&&r.trim().length===0,zn=r=>r===null,qe=r=>xe(r)||zn(r),fn=r=>Ao.call(r)=="[object Number]"&&r==r,fi=r=>fn(r)&&r>0,bn=r=>Ao.call(r)==="[object Boolean]",y_=r=>r instanceof FormData,b_=r=>Be(m_,r);function vh(r){return r===null||typeof r!="object"}function Xs(r,e){return{}.toString.call(r)==="[object "+e+"]"}function Zl(r){return typeof Event<"u"&&(function(e,t){try{return e instanceof t}catch{return!1}})(r,Event)}var x_=[!0,"true",1,"1","yes"],Ko=r=>Be(x_,r),w_=[!1,"false",0,"0","no"];function dn(r,e,t,n,i){return e>t&&(n.warn("min cannot be greater than max."),e=t),fn(r)?r>t?(n.warn(" cannot be greater than max: "+t+". Using max value instead."),t):e>r?(n.warn(" cannot be less than min: "+e+". Using min value instead."),e):r:(n.warn(" must be a number. using max or fallback. max: "+t+", fallback: "+i),dn(i||t,e,t,n))}class S_{constructor(e){this.Pt={},this.Dt=e.Dt,this.jt=dn(e.bucketSize,0,100,e.qt),this.$t=dn(e.refillRate,0,this.jt,e.qt),this.Ht=dn(e.refillInterval,0,864e5,e.qt)}Vt(e,t){var n=Math.floor((t-e.lastAccess)/this.Ht);n>0&&(e.tokens=Math.min(e.tokens+n*this.$t,this.jt),e.lastAccess=e.lastAccess+n*this.Ht)}consumeRateLimit(e){var t,n=Date.now(),i=String(e),s=this.Pt[i];return s?this.Vt(s,n):this.Pt[i]=s={tokens:this.jt,lastAccess:n},s.tokens===0||(s.tokens--,s.tokens===0&&((t=this.Dt)==null||t.call(this,e)),s.tokens===0)}stop(){this.Pt={}}}var ks,Fc,$o,Dr="Mobile",Js="iOS",xn="Android",ki="Tablet",gh=xn+" "+ki,ph="iPad",mh="Apple",_h=mh+" Watch",as="Safari",Ti="BlackBerry",yh="Samsung",bh=yh+"Browser",xh=yh+" Internet",ti="Chrome",P_=ti+" OS",wh=ti+" "+Js,Ql="Internet Explorer",Sh=Ql+" "+Dr,ec="Opera",E_=ec+" Mini",tc="Edge",Ph="Microsoft "+tc,xi="Firefox",Eh=xi+" "+Js,fs="Nintendo",vs="PlayStation",wi="Xbox",kh=xn+" "+Dr,Th=Dr+" "+as,es="Windows",Na=es+" Phone",Lc="Nokia",Fa="Ouya",Ch="Generic",k_=Ch+" "+Dr.toLowerCase(),Ah=Ch+" "+ki.toLowerCase(),La="Konqueror",xr="(\\d+(\\.\\d+)?)",Yo=new RegExp("Version/"+xr),T_=new RegExp(wi,"i"),C_=new RegExp(vs+" \\w+","i"),A_=new RegExp(fs+" \\w+","i"),rc=new RegExp(Ti+"|PlayBook|BB10","i"),M_={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Mh=function(r,e){return e=e||"",Be(r," OPR/")&&Be(r,"Mini")?E_:Be(r," OPR/")?ec:rc.test(r)?Ti:Be(r,"IE"+Dr)||Be(r,"WPDesktop")?Sh:Be(r,bh)?xh:Be(r,tc)||Be(r,"Edg/")?Ph:Be(r,"FBIOS")?"Facebook "+Dr:Be(r,"UCWEB")||Be(r,"UCBrowser")?"UC Browser":Be(r,"CriOS")?wh:Be(r,"CrMo")||Be(r,ti)?ti:Be(r,xn)&&Be(r,as)?kh:Be(r,"FxiOS")?Eh:Be(r.toLowerCase(),La.toLowerCase())?La:((t,n)=>n&&Be(n,mh)||(function(i){return Be(i,as)&&!Be(i,ti)&&!Be(i,xn)})(t))(r,e)?Be(r,Dr)?Th:as:Be(r,xi)?xi:Be(r,"MSIE")||Be(r,"Trident/")?Ql:Be(r,"Gecko")?xi:""},R_={[Sh]:[new RegExp("rv:"+xr)],[Ph]:[new RegExp(tc+"?\\/"+xr)],[ti]:[new RegExp("("+ti+"|CrMo)\\/"+xr)],[wh]:[new RegExp("CriOS\\/"+xr)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+xr)],[as]:[Yo],[Th]:[Yo],[ec]:[new RegExp("(Opera|OPR)\\/"+xr)],[xi]:[new RegExp(xi+"\\/"+xr)],[Eh]:[new RegExp("FxiOS\\/"+xr)],[La]:[new RegExp("Konqueror[:/]?"+xr,"i")],[Ti]:[new RegExp(Ti+" "+xr),Yo],[kh]:[new RegExp("android\\s"+xr,"i")],[xh]:[new RegExp(bh+"\\/"+xr)],[Ql]:[new RegExp("(rv:|MSIE )"+xr)],Mozilla:[new RegExp("rv:"+xr)]},I_=function(r,e){var t=Mh(r,e),n=R_[t];if(xe(n))return null;for(var i=0;n.length>i;i++){var s=r.match(n[i]);if(s)return parseFloat(s[s.length-2])}return null},Dc=[[new RegExp(wi+"; "+wi+" (.*?)[);]","i"),r=>[wi,r&&r[1]||""]],[new RegExp(fs,"i"),[fs,""]],[new RegExp(vs,"i"),[vs,""]],[rc,[Ti,""]],[new RegExp(es,"i"),(r,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[Na,""];if(new RegExp(Dr).test(e)&&!/IEMobile\b/.test(e))return[es+" "+Dr,""];var t=/Windows NT ([0-9.]+)/i.exec(e);if(t&&t[1]){var n=M_[t[1]]||"";return/arm/i.test(e)&&(n="RT"),[es,n]}return[es,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,r=>r&&r[3]?[Js,[r[3],r[4],r[5]||"0"].join(".")]:[Js,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,r=>{var e="";return r&&r.length>=3&&(e=xe(r[2])?r[3]:r[2]),["watchOS",e]}],[new RegExp("("+xn+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+xn+")","i"),r=>r&&r[2]?[xn,[r[2],r[3],r[4]||"0"].join(".")]:[xn,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,r=>{var e=["Mac OS X",""];return r&&r[1]&&(e[1]=[r[1],r[2],r[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[P_,""]],[/Linux|debian/i,["Linux",""]]],zc=function(r){return A_.test(r)?fs:C_.test(r)?vs:T_.test(r)?wi:new RegExp(Fa,"i").test(r)?Fa:new RegExp("("+Na+"|WPDesktop)","i").test(r)?Na:/iPad/.test(r)?ph:/iPod/.test(r)?"iPod Touch":/iPhone/.test(r)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(r)?_h:rc.test(r)?Ti:/(kobo)\s(ereader|touch)/i.test(r)?"Kobo":new RegExp(Lc,"i").test(r)?Lc:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(r)||/(kf[a-z]+)( bui|\)).+silk\//i.test(r)?"Kindle Fire":/(Android|ZTE)/i.test(r)?new RegExp(Dr).test(r)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(r)||/pixel[\daxl ]{1,6}/i.test(r)&&!/pixel c/i.test(r)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(r)||/lmy47v/i.test(r)&&!/QTAQZ3/i.test(r)?xn:gh:new RegExp("(pda|"+Dr+")","i").test(r)?k_:new RegExp(ki,"i").test(r)&&!new RegExp(ki+" pc","i").test(r)?Ah:""},O_=r=>r instanceof Error;function N_(r){var e=globalThis._posthogChunkIds;if(e){var t=Object.keys(e);return $o&&t.length===Fc||(Fc=t.length,$o=t.reduce(((n,i)=>{ks||(ks={});var s=ks[i];if(s)n[s[0]]=s[1];else for(var o=r(i),l=o.length-1;l>=0;l--){var c=o[l],u=c?.filename,d=e[i];if(u&&d){n[u]=d,ks[i]=[u,d];break}}return n}),{})),$o}}class F_{constructor(e,t,n){n===void 0&&(n=[]),this.coercers=e,this.stackParser=t,this.modifiers=n}buildFromUnknown(e,t){t===void 0&&(t={});var n=t&&t.mechanism||{handled:!0,type:"generic"},i=this.buildCoercingContext(n,t,0).apply(e),s=this.buildParsingContext(t),o=this.parseStacktrace(i,s);return{$exception_list:this.convertToExceptionList(o,n),$exception_level:"error"}}modifyFrames(e){var t=this;return Zr((function*(){for(var n of e)n.stacktrace&&n.stacktrace.frames&&Je(n.stacktrace.frames)&&(n.stacktrace.frames=yield t.applyModifiers(n.stacktrace.frames));return e}))()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:(t=e.syntheticException)==null?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var n,i;return e.cause!=null&&(n=this.parseStacktrace(e.cause,t)),e.stack!=""&&e.stack!=null&&(i=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.skipFirstLines:0),t.chunkIdMap)),pe({},e,{cause:n,stack:i})}applyChunkIds(e,t){return e.map((n=>(n.filename&&t&&(n.chunk_id=t[n.filename]),n)))}applyCoercers(e,t){for(var n of this.coercers)if(n.match(e))return n.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return Zr((function*(){var n=e;for(var i of t.modifiers)n=yield i(n);return n}))()}convertToExceptionList(e,t){var n,i,s,o={type:e.type,value:e.value,mechanism:{type:(n=t.type)!==null&&n!==void 0?n:"generic",handled:(i=t.handled)===null||i===void 0||i,synthetic:(s=e.synthetic)!==null&&s!==void 0&&s}};e.stack&&(o.stacktrace={type:"raw",frames:e.stack});var l=[o];return e.cause!=null&&l.push(...this.convertToExceptionList(e.cause,pe({},t,{handled:!0}))),l}buildParsingContext(e){var t;return{chunkIdMap:N_(this.stackParser),skipFirstLines:(t=e.skipFirstLines)!==null&&t!==void 0?t:1}}buildCoercingContext(e,t,n){n===void 0&&(n=0);var i=(s,o)=>{if(4>=o){var l=this.buildCoercingContext(e,t,o);return this.applyCoercers(s,l)}};return pe({},t,{syntheticException:n==0?t.syntheticException:void 0,mechanism:e,apply:s=>i(s,n),next:s=>i(s,n+1)})}}var Ci="?";function Da(r,e,t,n,i){var s={platform:r,filename:e,function:t==="<anonymous>"?Ci:t,in_app:!0};return xe(n)||(s.lineno=n),xe(i)||(s.colno=i),s}var Rh=(r,e)=>{var t=r.indexOf("safari-extension")!==-1,n=r.indexOf("safari-web-extension")!==-1;return t||n?[r.indexOf("@")!==-1?r.split("@")[0]:Ci,t?"safari-extension:"+e:"safari-web-extension:"+e]:[r,e]},L_=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,D_=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,z_=/\((\S*)(?::(\d+))(?::(\d+))\)/,j_=(r,e)=>{var t=L_.exec(r);if(t){var[,n,i,s]=t;return Da(e,n,Ci,+i,+s)}var o=D_.exec(r);if(o){if(o[2]&&o[2].indexOf("eval")===0){var l=z_.exec(o[2]);l&&(o[2]=l[1],o[3]=l[2],o[4]=l[3])}var[c,u]=Rh(o[1]||Ci,o[2]);return Da(e,u,c,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},H_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,U_=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,B_=(r,e)=>{var t=H_.exec(r);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=U_.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var i=t[3],s=t[1]||Ci;return[s,i]=Rh(s,i),Da(e,i,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},jc=/\(error: (.*)\)/;class V_{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var n=Lt(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:n?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return Xs(e,"DOMException")}isDOMError(e){return Xs(e,"DOMError")}}class W_{match(e){return(t=>t instanceof Error)(e)}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var n=e.message;return String(n.error&&typeof n.error.message=="string"?n.error.message:n)}getStack(e){return e.stacktrace||e.stack||void 0}}class q_{constructor(){}match(e){return Xs(e,"ErrorEvent")&&e.error!=null}coerce(e,t){var n;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}}var G_=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class K_{match(e){return typeof e=="string"}coerce(e,t){var n,[i,s]=this.getInfos(e);return{type:i??"Error",value:s??e,stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}getInfos(e){var t="Error",n=e,i=e.match(G_);return i&&(t=i[1],n=i[2]),[t,n]}}var $_=["fatal","error","warning","log","info","debug"];function Ih(r,e){e===void 0&&(e=40);var t=Object.keys(r);if(t.sort(),!t.length)return"[object has no keys]";for(var n=t.length;n>0;n--){var i=t.slice(0,n).join(", ");if(e>=i.length)return n===t.length?i:i.length>e?i.slice(0,e)+"...":i}return""}class Y_{match(e){return typeof e=="object"&&e!==null}coerce(e,t){var n,i=this.getErrorPropertyFromObject(e);return i?t.apply(i):{type:this.getType(e),value:this.getValue(e),stack:(n=t.syntheticException)==null?void 0:n.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return Zl(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var t="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&typeof e.message=="string")return e.message;var n=this.getObjectClassName(e);return(n&&n!=="Object"?"'"+n+"'":"Object")+" captured as exception with keys: "+Ih(e)}isSeverityLevel(e){return Lt(e)&&!js(e)&&$_.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if({}.hasOwnProperty.call(e,t)){var n=e[t];if(O_(n))return n}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{return}}}class X_{match(e){return Zl(e)}coerce(e,t){var n,i=e.constructor.name;return{type:i,value:i+" captured as exception with keys: "+Ih(e),stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class J_{match(e){return vh(e)}coerce(e,t){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class Z_{match(e){return Xs(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!Zl(e))return!1;try{var t=e.detail;return t!=null&&typeof t=="object"&&"reason"in t}catch{return!1}}coerce(e,t){var n,i=this.getUnhandledRejectionReason(e);return vh(i)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i),stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}:t.apply(i)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}}var Oh=function(r,e){var{debugEnabled:t}=e===void 0?{}:e,n={C(i){if(K&&(Ir.DEBUG||Me.POSTHOG_DEBUG||t)&&!xe(K.console)&&K.console){for(var s=("__rrweb_original__"in K.console[i])?K.console[i].__rrweb_original__:K.console[i],o=arguments.length,l=new Array(o>1?o-1:0),c=1;o>c;c++)l[c-1]=arguments[c];s(r,...l)}},info(){for(var i=arguments.length,s=new Array(i),o=0;i>o;o++)s[o]=arguments[o];n.C("log",...s)},warn(){for(var i=arguments.length,s=new Array(i),o=0;i>o;o++)s[o]=arguments[o];n.C("warn",...s)},error(){for(var i=arguments.length,s=new Array(i),o=0;i>o;o++)s[o]=arguments[o];n.C("error",...s)},critical(){for(var i=arguments.length,s=new Array(i),o=0;i>o;o++)s[o]=arguments[o];console.error(r,...s)},uninitializedWarning(i){n.error("You must initialize PostHog before calling "+i)},createLogger:(i,s)=>Oh(r+" "+i,s)};return n},_e=Oh("[PostHog.js]"),xt=_e.createLogger,Q_=xt("[ExternalScriptsLoader]"),Hc=(r,e,t)=>{if(r.config.disable_external_dependency_loading)return Q_.warn(e+" was requested but loading of external scripts is disabled."),t("Loading of external scripts is disabled");var n=me?.querySelectorAll("script");if(n){for(var i,s=function(){if(n[o].src===e){var c=n[o];return c.__posthog_loading_callback_fired?{v:t()}:(c.addEventListener("load",(u=>{c.__posthog_loading_callback_fired=!0,t(void 0,u)})),c.onerror=u=>t(u),{v:void 0})}},o=0;n.length>o;o++)if(i=s())return i.v}var l=()=>{if(!me)return t("document not found");var c=me.createElement("script");if(c.type="text/javascript",c.crossOrigin="anonymous",c.src=e,c.onload=p=>{c.__posthog_loading_callback_fired=!0,t(void 0,p)},c.onerror=p=>t(p),r.config.prepare_external_dependency_script&&(c=r.config.prepare_external_dependency_script(c)),!c)return t("prepare_external_dependency_script returned null");if(r.config.external_scripts_inject_target==="head")me.head.appendChild(c);else{var u,d=me.querySelectorAll("body > script");d.length>0?(u=d[0].parentNode)==null||u.insertBefore(c,d[0]):me.body.appendChild(c)}};me!=null&&me.body?l():me?.addEventListener("DOMContentLoaded",l)};Me.__PosthogExtensions__=Me.__PosthogExtensions__||{},Me.__PosthogExtensions__.loadExternalDependency=(r,e,t)=>{var n="/static/"+e+".js?v="+r.version;if(e==="remote-config"&&(n="/array/"+r.config.token+"/config.js"),e==="toolbar"){var i=3e5;n=n+"&t="+Math.floor(Date.now()/i)*i}var s=r.requestRouter.endpointFor("assets",n);Hc(r,s,t)},Me.__PosthogExtensions__.loadSiteApp=(r,e,t)=>{var n=r.requestRouter.endpointFor("api",e);Hc(r,n,t)};var Nh="$people_distinct_id",Zs="$device_id",ts="__alias",rs="__timers",Uc="$autocapture_disabled_server_side",za="$heatmaps_enabled_server_side",Bc="$exception_capture_enabled_server_side",ja="$error_tracking_suppression_rules",Vc="$error_tracking_capture_extension_exceptions",Wc="$web_vitals_enabled_server_side",Fh="$dead_clicks_enabled_server_side",qc="$product_tours_enabled_server_side",Gc="$web_vitals_allowed_metrics",Ts="$session_recording_remote_config",Qs="$sesid",Lh="$session_is_sampled",_i="$enabled_feature_flags",ns="$early_access_features",Ha="$feature_flag_details",is="$stored_person_properties",Zn="$stored_group_properties",Ua="$surveys",ls="$flag_call_reported",Ba="$flag_call_reported_session_id",Va="$feature_flag_errors",eo="$feature_flag_evaluated_at",Xr="$user_state",Wa="$client_session_props",qa="$capture_rate_limit",Ga="$initial_campaign_params",Ka="$initial_referrer_info",to="$initial_person_info",ro="$epp",Dh="__POSTHOG_TOOLBAR__",Cs="$posthog_cookieless",e1=[Nh,ts,"__cmpns",rs,"$session_recording_enabled_server_side",za,Qs,_i,ja,Xr,ns,Ha,Zn,is,Ua,ls,Ba,Va,eo,Wa,qa,Ga,Ka,ro,to],nc="PostHog loadExternalDependency extension not found.",_n="on_reject",Qr="always",li="anonymous",ci="identified",$a="identified_only",no="visibilitychange",io="beforeunload",vi="$pageview",Xo="$pageleave",Jo="$identify",Kc="$groupidentify";function As(r,e){Je(r)&&r.forEach(e)}function dt(r,e){if(!qe(r))if(Je(r))r.forEach(e);else if(y_(r))r.forEach(((n,i)=>e(n,i)));else for(var t in r)fh.call(r,t)&&e(r[t],t)}var At=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;e>n;n++)t[n-1]=arguments[n];for(var i of t)for(var s in i)i[s]!==void 0&&(r[s]=i[s]);return r};function Hs(r){for(var e=Object.keys(r),t=e.length,n=new Array(t);t--;)n[t]=[e[t],r[e[t]]];return n}var $c=function(r){try{return r()}catch{return}},t1=function(r){return function(){try{for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return r.apply(this,t)}catch(i){_e.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),_e.critical(i)}}},ic=function(r){var e={};return dt(r,(function(t,n){(Lt(t)&&t.length>0||fn(t))&&(e[n]=t)})),e},r1=["herokuapp.com","vercel.app","netlify.app"];function n1(r){var e=r?.hostname;if(!Lt(e))return!1;var t=e.split(".").slice(-2).join(".");for(var n of r1)if(t===n)return!1;return!0}function Nt(r,e,t,n){var{capture:i=!1,passive:s=!0}=n??{};r?.addEventListener(e,t,{capture:i,passive:s})}function zh(r){return r.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(r){return 0>r?Math.ceil(r):Math.floor(r)}),Number.isInteger||(Number.isInteger=function(r){return fn(r)&&isFinite(r)&&Math.floor(r)===r});class so{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,t,n,i){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(i)||0>e||0>t||0>n||0>i||e>0xffffffffffff||t>4095||n>1073741823||i>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=e/Math.pow(2,40),s[1]=e/Math.pow(2,32),s[2]=e/Math.pow(2,24),s[3]=e/Math.pow(2,16),s[4]=e/Math.pow(2,8),s[5]=e,s[6]=112|t>>>8,s[7]=t,s[8]=128|n>>>24,s[9]=n>>>16,s[10]=n>>>8,s[11]=n,s[12]=i>>>24,s[13]=i>>>16,s[14]=i>>>8,s[15]=i,new so(s)}toString(){for(var e="",t=0;this.bytes.length>t;t++)e=e+(this.bytes[t]>>>4).toString(16)+(15&this.bytes[t]).toString(16),t!==3&&t!==5&&t!==7&&t!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new so(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var t=0;16>t;t++){var n=this.bytes[t]-e.bytes[t];if(n!==0)return Math.sign(n)}return 0}}class i1{constructor(){this.I=0,this.S=0,this.k=new s1}generate(){var e=this.generateOrAbort();if(xe(e)){this.I=0;var t=this.generateOrAbort();if(xe(t))throw new Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.I)this.I=e,this.A();else{if(this.I>=e+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return so.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var Yc,jh=r=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;r.length>e;e++)r[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return r};K&&!xe(K.crypto)&&crypto.getRandomValues&&(jh=r=>crypto.getRandomValues(r));class s1{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(jh(this.T),this.N=0),this.T[this.N++]}}var On=()=>o1().toString(),o1=()=>(Yc||(Yc=new i1)).generate(),Di="",a1=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,cn={Yt:()=>!!me,Ut(r){_e.error("cookieStore error: "+r)},Wt(r){if(me){try{for(var e=r+"=",t=me.cookie.split(";").filter((s=>s.length)),n=0;t.length>n;n++){for(var i=t[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(e)===0)return decodeURIComponent(i.substring(e.length,i.length))}}catch{}return null}},Gt(r){var e;try{e=JSON.parse(cn.Wt(r))||{}}catch{}return e},Xt(r,e,t,n,i){if(me)try{var s="",o="",l=(function(d,p){if(p){var h=(function(m,v){if(v===void 0&&(v=me),Di)return Di;if(!v||["localhost","127.0.0.1"].includes(m))return"";for(var y=m.split("."),b=Math.min(y.length,8),P="dmn_chk_"+On();!Di&&b--;){var w=y.slice(b).join("."),x=P+"=1;domain=."+w+";path=/";v.cookie=x+";max-age=3",v.cookie.includes(P)&&(v.cookie=x+";max-age=0",Di=w)}return Di})(d);if(!h){var g=(m=>{var v=m.match(a1);return v?v[0]:""})(d);g!==h&&_e.info("Warning: cookie subdomain discovery mismatch",g,h),h=g}return h?"; domain=."+h:""}return""})(me.location.hostname,n);if(t){var c=new Date;c.setTime(c.getTime()+864e5*t),s="; expires="+c.toUTCString()}i&&(o="; secure");var u=r+"="+encodeURIComponent(JSON.stringify(e))+s+"; SameSite=Lax; path=/"+l+o;return u.length>3686.4&&_e.warn("cookieStore warning: large cookie, len="+u.length),me.cookie=u,u}catch{return}},Jt(r,e){if(me!=null&&me.cookie)try{cn.Xt(r,"",-1,e)}catch{return}}},Zo=null,yt={Yt(){if(!zn(Zo))return Zo;var r=!0;if(xe(K))r=!1;else try{var e="__mplssupport__";yt.Xt(e,"xyz"),yt.Wt(e)!=='"xyz"'&&(r=!1),yt.Jt(e)}catch{r=!1}return r||_e.error("localStorage unsupported; falling back to cookie store"),Zo=r,r},Ut(r){_e.error("localStorage error: "+r)},Wt(r){try{return K?.localStorage.getItem(r)}catch(e){yt.Ut(e)}return null},Gt(r){try{return JSON.parse(yt.Wt(r))||{}}catch{}return null},Xt(r,e){try{K?.localStorage.setItem(r,JSON.stringify(e))}catch(t){yt.Ut(t)}},Jt(r){try{K?.localStorage.removeItem(r)}catch(e){yt.Ut(e)}}},l1=[Zs,"distinct_id",Qs,Lh,ro,to,Xr],Ms={},c1={Yt:()=>!0,Ut(r){_e.error("memoryStorage error: "+r)},Wt:r=>Ms[r]||null,Gt:r=>Ms[r]||null,Xt(r,e){Ms[r]=e},Jt(r){delete Ms[r]}},$n=null,sr={Yt(){if(!zn($n))return $n;if($n=!0,xe(K))$n=!1;else try{var r="__support__";sr.Xt(r,"xyz"),sr.Wt(r)!=='"xyz"'&&($n=!1),sr.Jt(r)}catch{$n=!1}return $n},Ut(r){_e.error("sessionStorage error: ",r)},Wt(r){try{return K?.sessionStorage.getItem(r)}catch(e){sr.Ut(e)}return null},Gt(r){try{return JSON.parse(sr.Wt(r))||null}catch{}return null},Xt(r,e){try{K?.sessionStorage.setItem(r,JSON.stringify(e))}catch(t){sr.Ut(t)}},Jt(r){try{K?.sessionStorage.removeItem(r)}catch(e){sr.Ut(e)}}};class u1{constructor(e){this._instance=e}get Rt(){return this._instance.config}get consent(){return this.Kt()?0:this.Qt}isOptedOut(){return this.Rt.cookieless_mode===Qr||this.consent===0||this.consent===-1&&(this.Rt.opt_out_capturing_by_default||this.Rt.cookieless_mode===_n)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}optInOut(e){this.tr.Xt(this.er,e?1:0,this.Rt.cookie_expiration,this.Rt.cross_subdomain_cookie,this.Rt.secure_cookie)}reset(){this.tr.Jt(this.er,this.Rt.cross_subdomain_cookie)}get er(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:n}=this._instance.config;return n||(t?t+e:"__ph_opt_in_out_"+e)}get Qt(){var e=this.tr.Wt(this.er);return Ko(e)?1:Be(w_,e)?0:-1}get tr(){if(!this.rr){var e=this.Rt.opt_out_capturing_persistence_type;this.rr=e==="localStorage"?yt:cn;var t=e==="localStorage"?cn:yt;t.Wt(this.er)&&(this.rr.Wt(this.er)||this.optInOut(Ko(t.Wt(this.er))),t.Jt(this.er,this.Rt.cross_subdomain_cookie))}return this.rr}Kt(){return!!this.Rt.respect_dnt&&[Lr?.doNotTrack,Lr?.msDoNotTrack,Me.doNotTrack].some((e=>Ko(e)))}}var Rs=xt("[Dead Clicks]"),d1=()=>!0,h1=r=>{var e,t=!((e=r.instance.persistence)==null||!e.get_property(Fh)),n=r.instance.config.capture_dead_clicks;return bn(n)?n:!!Vt(n)||t};class Xc{get lazyLoadedDeadClicksAutocapture(){return this.ir}constructor(e,t,n){this.instance=e,this.isEnabled=t,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[Fh]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.nr((()=>{this.sr()})):this.stop()}nr(e){var t,n;(t=Me.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture&&e(),(n=Me.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",(i=>{i?Rs.error("failed to load script",i):e()}))}sr(){var e;if(me){if(!this.ir&&(e=Me.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var t=Vt(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.ir=Me.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.ir.start(me),Rs.info("starting...")}}else Rs.error("`document` not found. Cannot start.")}stop(){this.ir&&(this.ir.stop(),this.ir=void 0,Rs.info("stopping..."))}}var Qo=xt("[SegmentIntegration]"),Hh="posthog-js";function Uh(r,e){var{organization:t,projectId:n,prefix:i,severityAllowList:s=["error"],sendExceptionsToPostHog:o=!0}=e===void 0?{}:e;return l=>{var c,u,d,p,h;if(s!=="*"&&!s.includes(l.level)||!r.__loaded)return l;l.tags||(l.tags={});var g=r.requestRouter.endpointFor("ui","/project/"+r.config.token+"/person/"+r.get_distinct_id());l.tags["PostHog Person URL"]=g,r.sessionRecordingStarted()&&(l.tags["PostHog Recording URL"]=r.get_session_replay_url({withTimestamp:!0}));var m,v=((c=l.exception)==null?void 0:c.values)||[],y=v.map((P=>pe({},P,{stacktrace:P.stacktrace?pe({},P.stacktrace,{type:"raw",frames:(P.stacktrace.frames||[]).map((w=>pe({},w,{platform:"web:javascript"})))}):void 0}))),b={$exception_message:((u=v[0])==null?void 0:u.value)||l.message,$exception_type:(d=v[0])==null?void 0:d.type,$exception_level:l.level,$exception_list:y,$sentry_event_id:l.event_id,$sentry_exception:l.exception,$sentry_exception_message:((p=v[0])==null?void 0:p.value)||l.message,$sentry_exception_type:(h=v[0])==null?void 0:h.type,$sentry_tags:l.tags};return t&&n&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+t+"/issues/?project="+n+"&query="+l.event_id),o&&((m=r.exceptions)==null||m.sendExceptionEvent(b)),l}}class f1{constructor(e,t,n,i,s,o){this.name=Hh,this.setupOnce=function(l){l(Uh(e,{organization:t,projectId:n,prefix:i,severityAllowList:s,sendExceptionsToPostHog:o==null||o}))}}}class Jc{constructor(e){this.ar=(t,n,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength)&&(_e.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:t,changeReason:i}),this.lr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.ur()}ur(){var e;this.hr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.ar)}destroy(){var e;(e=this.hr)==null||e.call(this),this.hr=void 0}doPageView(e,t){var n,i=this.cr(e,t);return this.lr={pathname:(n=K?.location.pathname)!==null&&n!==void 0?n:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),i}doPageLeave(e){var t;return this.cr(e,(t=this.lr)==null?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.lr)==null?void 0:e.pageViewId}}cr(e,t){var n=this.lr;if(!n)return{$pageview_id:t};var i={$pageview_id:t,$prev_pageview_id:n.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:l,maxScrollY:c,maxContentHeight:u,lastContentY:d,maxContentY:p}=s;if(!(xe(o)||xe(l)||xe(c)||xe(u)||xe(d)||xe(p))){o=Math.ceil(o),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u),d=Math.ceil(d),p=Math.ceil(p);var h=o>1?dn(l/o,0,1,_e):1,g=o>1?dn(c/o,0,1,_e):1,m=u>1?dn(d/u,0,1,_e):1,v=u>1?dn(p/u,0,1,_e):1;i=At(i,{$prev_pageview_last_scroll:l,$prev_pageview_last_scroll_percentage:h,$prev_pageview_max_scroll:c,$prev_pageview_max_scroll_percentage:g,$prev_pageview_last_content:d,$prev_pageview_last_content_percentage:m,$prev_pageview_max_content:p,$prev_pageview_max_content_percentage:v})}}return n.pathname&&(i.$prev_pageview_pathname=n.pathname),n.timestamp&&(i.$prev_pageview_duration=(e.getTime()-n.timestamp.getTime())/1e3),i}}var oo=r=>{var e=me?.createElement("a");return xe(e)?null:(e.href=r,e)},ao=function(r,e){for(var t,n=((r.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;n.length>i;i++){var s=n[i].split("=");if(s[0]===e){t=s;break}}if(!Je(t)||2>t.length)return"";var o=t[1];try{o=decodeURIComponent(o)}catch{_e.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},gs=function(r,e,t){if(!r||!e||!e.length)return r;for(var n=r.split("#"),i=n[1],s=(n[0]||"").split("?"),o=s[1],l=s[0],c=(o||"").split("&"),u=[],d=0;c.length>d;d++){var p=c[d].split("=");Je(p)&&(e.includes(p[0])?u.push(p[0]+"="+t):u.push(c[d]))}var h=l;return o!=null&&(h+="?"+u.join("&")),i!=null&&(h+="#"+i),h},lo=function(r,e){var t=r.match(new RegExp(e+"=([^&]*)"));return t?t[1]:null},Is="https?://(.*)",Ai=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],v1=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Ai],ps="<masked>",g1=["li_fat_id"];function Bh(r,e,t){if(!me)return{};var n,i=e?[...Ai,...t||[]]:[],s=Vh(gs(me.URL,i,ps),r),o=(n={},dt(g1,(function(l){var c=cn.Wt(l);n[l]=c||null})),n);return At(o,s)}function Vh(r,e){var t=v1.concat(e||[]),n={};return dt(t,(function(i){var s=ao(r,i);n[i]=s||null})),n}function Wh(r){var e=(function(s){return s?s.search(Is+"google.([^/?]*)")===0?"google":s.search(Is+"bing.com")===0?"bing":s.search(Is+"yahoo.com")===0?"yahoo":s.search(Is+"duckduckgo.com")===0?"duckduckgo":null:null})(r),t=e!="yahoo"?"q":"p",n={};if(!zn(e)){n.$search_engine=e;var i=me?ao(me.referrer,t):"";i.length&&(n.ph_keyword=i)}return n}function Zc(){return navigator.language||navigator.userLanguage}var co="$direct";function qh(){return me?.referrer||co}function Gh(r,e){var t=r?[...Ai,...e||[]]:[],n=ir?.href.substring(0,1e3);return{r:qh().substring(0,1e3),u:n?gs(n,t,ps):void 0}}function Kh(r){var e,{r:t,u:n}=r,i={$referrer:t,$referring_domain:t==null?void 0:t==co?co:(e=oo(t))==null?void 0:e.host};if(n){i.$current_url=n;var s=oo(n);i.$host=s?.host,i.$pathname=s?.pathname;var o=Vh(n);At(i,o)}if(t){var l=Wh(t);At(i,l)}return i}function $h(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function p1(){try{return new Date().getTimezoneOffset()}catch{return}}var m1=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class ea{constructor(e,t){this.Rt=e,this.props={},this.dr=!1,this.vr=(n=>{var i="";return n.token&&(i=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+i+"_posthog"})(e),this.tr=this.pr(e),this.load(),e.debug&&_e.info("Persistence loaded",e.persistence,pe({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.gr}pr(e){m1.indexOf(e.persistence.toLowerCase())===-1&&(_e.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=(function(i){i===void 0&&(i=[]);var s=[...l1,...i];return pe({},yt,{Gt(o){try{var l={};try{l=cn.Gt(o)||{}}catch{}var c=At(l,JSON.parse(yt.Wt(o)||"{}"));return yt.Xt(o,c),c}catch{}return null},Xt(o,l,c,u,d,p){try{yt.Xt(o,l,void 0,void 0,p);var h={};s.forEach((g=>{l[g]&&(h[g]=l[g])})),Object.keys(h).length&&cn.Xt(o,h,c,u,d,p)}catch(g){yt.Ut(g)}},Jt(o,l){try{K?.localStorage.removeItem(o),cn.Jt(o,l)}catch(c){yt.Ut(c)}}})})(e.cookie_persisted_properties||[]),n=e.persistence.toLowerCase();return n==="localstorage"&&yt.Yt()?yt:n==="localstorage+cookie"&&t.Yt()?t:n==="sessionstorage"&&sr.Yt()?sr:n==="memory"?c1:n==="cookie"?cn:t.Yt()?t:cn}mr(e){var t=e??this.Rt.feature_flag_cache_ttl_ms;if(!t||0>=t)return!1;var n=this.props[eo];return!n||typeof n!="number"||Date.now()-n>t}properties(){var e={};return dt(this.props,((t,n)=>{if(n===_i&&Vt(t)){if(!this.mr())for(var i=Object.keys(t),s=0;i.length>s;s++)e["$feature/"+i[s]]=t[i[s]]}else e1.indexOf(n)===-1&&(e[n]=t)})),e}load(){if(!this.gr){var e=this.tr.Gt(this.vr);e&&(this.props=At({},e))}}save(){this.gr||this.tr.Xt(this.vr,this.props,this.yr,this.br,this.wr,this.Rt.debug)}remove(){this.tr.Jt(this.vr,!1),this.tr.Jt(this.vr,!0)}clear(){this.remove(),this.props={}}register_once(e,t,n){if(Vt(e)){xe(t)&&(t="None"),this.yr=xe(n)?this._r:n;var i=!1;if(dt(e,((s,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==t||(this.props[o]=s,i=!0)})),i)return this.save(),!0}return!1}register(e,t){if(Vt(e)){this.yr=xe(t)?this._r:t;var n=!1;if(dt(e,((i,s)=>{e.hasOwnProperty(s)&&this.props[s]!==i&&(this.props[s]=i,n=!0)})),n)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.dr){var e=Bh(this.Rt.custom_campaign_params,this.Rt.mask_personal_data_properties,this.Rt.custom_personal_data_properties);mi(ic(e))||this.register(e),this.dr=!0}}update_search_keyword(){var e;this.register((e=me?.referrer)?Wh(e):{})}update_referrer_info(){var e;this.register_once({$referrer:qh(),$referring_domain:me!=null&&me.referrer&&((e=oo(me.referrer))==null?void 0:e.host)||co},void 0)}set_initial_person_info(){this.props[Ga]||this.props[Ka]||this.register_once({[to]:Gh(this.Rt.mask_personal_data_properties,this.Rt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};dt([Ka,Ga],(o=>{var l=this.props[o];l&&dt(l,(function(c,u){e["$initial_"+Oa(u)]=c}))}));var t,n,i=this.props[to];if(i){var s=(t=Kh(i),n={},dt(t,(function(o,l){n["$initial_"+Oa(l)]=o})),n);At(e,s)}return e}safe_merge(e){return dt(this.props,(function(t,n){n in e||(e[n]=t)})),e}update_config(e,t,n){if(this._r=this.yr=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!n),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence||!((o,l)=>{if(o.length!==l.length)return!1;var c=[...o].sort(),u=[...l].sort();return c.every(((d,p)=>d===u[p]))})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[])){var i=this.pr(e),s=this.props;this.clear(),this.tr=i,this.props=s,this.save()}}set_disabled(e){this.gr=e,this.gr?this.remove():this.save()}set_cross_subdomain(e){e!==this.br&&(this.br=e,this.remove(),this.save())}set_secure(e){e!==this.wr&&(this.wr=e,this.remove(),this.save())}set_event_timer(e,t){var n=this.props[rs]||{};n[e]=t,this.props[rs]=n,this.save()}remove_event_timer(e){var t=(this.props[rs]||{})[e];return xe(t)||(delete this.props[rs][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}var zi={Activation:"events",Cancellation:"cancelEvents"},ta={Popover:"popover",API:"api",Widget:"widget"},ss={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},ra={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},Ya={Popover:"popover",Inline:"inline"},_1={SHOWN:"product tour shown"},Qc={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},eu=xt("[RateLimiter]");class y1{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=t=>{var n=t.text;if(n&&n.length)try{(JSON.parse(n).quota_limited||[]).forEach((i=>{eu.info((i||"events")+" is quota limited."),this.serverLimits[i]=new Date().getTime()+6e4}))}catch(i){return void eu.warn('could not rate limit - continuing. Error: "'+i?.message+'"',{text:n})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var t,n,i;e===void 0&&(e=!1);var{captureEventsBurstLimit:s,captureEventsPerSecond:o}=this,l=new Date().getTime(),c=(t=(n=this.instance.persistence)==null?void 0:n.get_property(qa))!==null&&t!==void 0?t:{tokens:s,last:l};c.tokens+=(l-c.last)/1e3*o,c.last=l,c.tokens>s&&(c.tokens=s);var u=1>c.tokens;return u||e||(c.tokens=Math.max(0,c.tokens-1)),!u||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+o+" events per second and "+s+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(i=this.instance.persistence)==null||i.set_property(qa,c),{isRateLimited:u,remainingTokens:c.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return t!==!1&&new Date().getTime()<t}}var ji=xt("[RemoteConfig]");class Yh{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=Me._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Ir(e){var t,n;(t=Me.__PosthogExtensions__)!=null&&t.loadExternalDependency?(n=Me.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}Cr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(t){e(t.json)}})}load(){try{if(this.remoteConfig)return ji.info("Using preloaded remote config",this.remoteConfig),this.Sr(this.remoteConfig),void this.kr();if(this._instance.Tr())return void ji.warn("Remote config is disabled. Falling back to local config.");this.Ir((e=>{if(!e)return ji.info("No config found after loading remote JS config. Falling back to JSON."),void this.Cr((t=>{this.Sr(t),this.kr()}));this.Sr(e),this.kr()}))}catch(e){ji.error("Error loading remote config",e)}}stop(){this.Ar&&(clearInterval(this.Ar),this.Ar=void 0)}refresh(){this._instance.Tr()||me?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}kr(){var e;if(!this.Ar){var t=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;t!==0&&(this.Ar=setInterval((()=>{this.refresh()}),t))}}Sr(e){var t;e||ji.error("Failed to fetch remote config from PostHog."),this._instance.Sr(e??{}),e?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(t=this._instance.featureFlags)==null||t.ensureFlagsLoaded())}}var ln={GZipJS:"gzip-js",Base64:"base64"},Vr=Uint8Array,Ar=Uint16Array,Mi=Uint32Array,sc=new Vr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),oc=new Vr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),tu=new Vr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Xh=function(r,e){for(var t=new Ar(31),n=0;31>n;++n)t[n]=e+=1<<r[n-1];var i=new Mi(t[30]);for(n=1;30>n;++n)for(var s=t[n];t[n+1]>s;++s)i[s]=s-t[n]<<5|n;return[t,i]},Jh=Xh(sc,2),Xa=Jh[1];Jh[0][28]=258,Xa[258]=28;for(var ru=Xh(oc,0)[1],Zh=new Ar(32768),ht=0;32768>ht;++ht){var ui=(43690&ht)>>>1|(21845&ht)<<1;Zh[ht]=((65280&(ui=(61680&(ui=(52428&ui)>>>2|(13107&ui)<<2))>>>4|(3855&ui)<<4))>>>8|(255&ui)<<8)>>>1}var cs=function(r,e,t){for(var n=r.length,i=0,s=new Ar(e);n>i;++i)++s[r[i]-1];var o,l=new Ar(e);for(i=0;e>i;++i)l[i]=l[i-1]+s[i-1]<<1;for(o=new Ar(n),i=0;n>i;++i)o[i]=Zh[l[r[i]-1]++]>>>15-r[i];return o},ii=new Vr(288);for(ht=0;144>ht;++ht)ii[ht]=8;for(ht=144;256>ht;++ht)ii[ht]=9;for(ht=256;280>ht;++ht)ii[ht]=7;for(ht=280;288>ht;++ht)ii[ht]=8;var uo=new Vr(32);for(ht=0;32>ht;++ht)uo[ht]=5;var b1=cs(ii,9),x1=cs(uo,5),Qh=function(r){return(r/8>>0)+(7&r&&1)},ef=function(r,e,t){(t==null||t>r.length)&&(t=r.length);var n=new(r instanceof Ar?Ar:r instanceof Mi?Mi:Vr)(t-e);return n.set(r.subarray(e,t)),n},pn=function(r,e,t){var n=e/8>>0;r[n]|=t<<=7&e,r[n+1]|=t>>>8},Hi=function(r,e,t){var n=e/8>>0;r[n]|=t<<=7&e,r[n+1]|=t>>>8,r[n+2]|=t>>>16},na=function(r,e){for(var t=[],n=0;r.length>n;++n)r[n]&&t.push({s:n,f:r[n]});var i=t.length,s=t.slice();if(!i)return[new Vr(0),0];if(i==1){var o=new Vr(t[0].s+1);return o[t[0].s]=1,[o,1]}t.sort((function(T,R){return T.f-R.f})),t.push({s:-1,f:25001});var l=t[0],c=t[1],u=0,d=1,p=2;for(t[0]={s:-1,f:l.f+c.f,l,r:c};d!=i-1;)l=t[t[p].f>t[u].f?u++:p++],c=t[u!=d&&t[p].f>t[u].f?u++:p++],t[d++]={s:-1,f:l.f+c.f,l,r:c};var h=s[0].s;for(n=1;i>n;++n)s[n].s>h&&(h=s[n].s);var g=new Ar(h+1),m=Ja(t[d-1],g,0);if(m>e){n=0;var v=0,y=m-e,b=1<<y;for(s.sort((function(T,R){return g[R.s]-g[T.s]||T.f-R.f}));i>n;++n){var P=s[n].s;if(e>=g[P])break;v+=b-(1<<m-g[P]),g[P]=e}for(v>>>=y;v>0;){var w=s[n].s;e>g[w]?v-=1<<e-g[w]++-1:++n}for(;n>=0&&v;--n){var x=s[n].s;g[x]==e&&(--g[x],++v)}m=e}return[new Vr(g),m]},Ja=function(r,e,t){return r.s==-1?Math.max(Ja(r.l,e,t+1),Ja(r.r,e,t+1)):e[r.s]=t},nu=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new Ar(++e),n=0,i=r[0],s=1,o=function(c){t[n++]=c},l=1;e>=l;++l)if(r[l]==i&&l!=e)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=r[l]}return[t.subarray(0,n),e]},Ui=function(r,e){for(var t=0,n=0;e.length>n;++n)t+=r[n]*e[n];return t},Za=function(r,e,t){var n=t.length,i=Qh(e+2);r[i]=255&n,r[i+1]=n>>>8,r[i+2]=255^r[i],r[i+3]=255^r[i+1];for(var s=0;n>s;++s)r[i+s+4]=t[s];return 8*(i+4+n)},iu=function(r,e,t,n,i,s,o,l,c,u,d){pn(e,d++,t),++i[256];for(var p=na(i,15),h=p[0],g=p[1],m=na(s,15),v=m[0],y=m[1],b=nu(h),P=b[0],w=b[1],x=nu(v),T=x[0],R=x[1],C=new Ar(19),S=0;P.length>S;++S)C[31&P[S]]++;for(S=0;T.length>S;++S)C[31&T[S]]++;for(var A=na(C,7),I=A[0],M=A[1],L=19;L>4&&!I[tu[L-1]];--L);var W,j,Y,le,se=u+5<<3,Q=Ui(i,ii)+Ui(s,uo)+o,ce=Ui(i,h)+Ui(s,v)+o+14+3*L+Ui(C,I)+(2*C[16]+3*C[17]+7*C[18]);if(Q>=se&&ce>=se)return Za(e,d,r.subarray(c,c+u));if(pn(e,d,1+(Q>ce)),d+=2,Q>ce){W=cs(h,g),j=h,Y=cs(v,y),le=v;var he=cs(I,M);for(pn(e,d,w-257),pn(e,d+5,R-1),pn(e,d+10,L-4),d+=14,S=0;L>S;++S)pn(e,d+3*S,I[tu[S]]);d+=3*L;for(var ae=[P,T],re=0;2>re;++re){var ie=ae[re];for(S=0;ie.length>S;++S)pn(e,d,he[Pe=31&ie[S]]),d+=I[Pe],Pe>15&&(pn(e,d,ie[S]>>>5&127),d+=ie[S]>>>12)}}else W=b1,j=ii,Y=x1,le=uo;for(S=0;l>S;++S)if(n[S]>255){var Pe;Hi(e,d,W[257+(Pe=n[S]>>>18&31)]),d+=j[Pe+257],Pe>7&&(pn(e,d,n[S]>>>23&31),d+=sc[Pe]);var we=31&n[S];Hi(e,d,Y[we]),d+=le[we],we>3&&(Hi(e,d,n[S]>>>5&8191),d+=oc[we])}else Hi(e,d,W[n[S]]),d+=j[n[S]];return Hi(e,d,W[256]),d+j[256]},w1=new Mi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),S1=(function(){for(var r=new Mi(256),e=0;256>e;++e){for(var t=e,n=9;--n;)t=(1&t&&3988292384)^t>>>1;r[e]=t}return r})(),ia=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8};function P1(r,e){e===void 0&&(e={});var t=(function(){var p=4294967295;return{p(h){for(var g=p,m=0;h.length>m;++m)g=S1[255&g^h[m]]^g>>>8;p=g},d(){return 4294967295^p}}})(),n=r.length;t.p(r);var i,s,o,l,c,u=(l=10+((i=e).filename&&i.filename.length+1||0),c=8,(function(p,h,g,m,v,y){var b=p.length,P=new Vr(m+b+5*(1+Math.floor(b/7e3))+v),w=P.subarray(m,P.length-v),x=0;if(!h||8>b)for(var T=0;b>=T;T+=65535){var R=T+65535;b>R?x=Za(w,x,p.subarray(T,R)):(w[T]=!0,x=Za(w,x,p.subarray(T,b)))}else{for(var C=w1[h-1],S=C>>>13,A=8191&C,I=(1<<g)-1,M=new Ar(32768),L=new Ar(I+1),W=Math.ceil(g/3),j=2*W,Y=function(tr){return(p[tr]^p[tr+1]<<W^p[tr+2]<<j)&I},le=new Mi(25e3),se=new Ar(288),Q=new Ar(32),ce=0,he=0,ae=(T=0,0),re=0,ie=0;b>T;++T){var Pe=Y(T),we=32767&T,De=L[Pe];if(M[we]=De,L[Pe]=we,T>=re){var Le=b-T;if((ce>7e3||ae>24576)&&Le>423){x=iu(p,w,0,le,se,Q,he,ae,ie,T-ie,x),ae=ce=he=0,ie=T;for(var Ce=0;286>Ce;++Ce)se[Ce]=0;for(Ce=0;30>Ce;++Ce)Q[Ce]=0}var Ee=2,Ne=0,Ve=A,$e=we-De&32767;if(Le>2&&Pe==Y(T-$e))for(var Qe=Math.min(S,Le)-1,gt=Math.min(32767,T),pt=Math.min(258,Le);gt>=$e&&--Ve&&we!=De;){if(p[T+Ee]==p[T+Ee-$e]){for(var rt=0;pt>rt&&p[T+rt]==p[T+rt-$e];++rt);if(rt>Ee){if(Ee=rt,Ne=$e,rt>Qe)break;var ke=Math.min($e,rt-2),Ie=0;for(Ce=0;ke>Ce;++Ce){var et=T-$e+Ce+32768&32767,lr=et-M[et]+32768&32767;lr>Ie&&(Ie=lr,De=et)}}}$e+=(we=De)-(De=M[we])+32768&32767}if(Ne){le[ae++]=268435456|Xa[Ee]<<18|ru[Ne];var Dt=31&Xa[Ee],cr=31&ru[Ne];he+=sc[Dt]+oc[cr],++se[257+Dt],++Q[cr],re=T+Ee,++ce}else le[ae++]=p[T],++se[p[T]]}}x=iu(p,w,!0,le,se,Q,he,ae,ie,T-ie,x)}return ef(P,0,m+Qh(x)+v)})(s=r,(o=e).level==null?6:o.level,o.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+o.mem,l,c)),d=u.length;return(function(p,h){var g=h.filename;if(p[0]=31,p[1]=139,p[2]=8,p[8]=2>h.level?4:h.level==9?2:0,p[9]=3,h.mtime!=0&&ia(p,4,Math.floor(new Date(h.mtime||Date.now())/1e3)),g){p[3]=8;for(var m=0;g.length>=m;++m)p[m+10]=g.charCodeAt(m)}})(u,e),ia(u,d-8,t.d()),ia(u,d-4,n),u}var E1=!!Ia||!!Ra,tf="text/plain",ho=function(r,e,t){var n;t===void 0&&(t=!0);var[i,s]=r.split("?"),o=pe({},e),l=(n=s?.split("&").map((u=>{var d,[p,h]=u.split("="),g=t&&(d=o[p])!==null&&d!==void 0?d:h;return delete o[p],p+"="+g})))!==null&&n!==void 0?n:[],c=(function(u,d){var p,h;d===void 0&&(d="&");var g=[];return dt(u,(function(m,v){xe(m)||xe(v)||v==="undefined"||(p=encodeURIComponent((y=>y instanceof File)(m)?m.name:m.toString()),h=encodeURIComponent(v),g[g.length]=h+"="+p)})),g.join(d)})(o);return c&&l.push(c),i+"?"+l.join("&")},yi=(r,e)=>JSON.stringify(r,((t,n)=>typeof n=="bigint"?n.toString():n),e),sa=r=>{if(r.zt)return r.zt;var{data:e,compression:t}=r;if(e){if(t===ln.GZipJS){var n=P1((function(l,c){var u=l.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(l);for(var d=new Vr(l.length+(l.length>>>1)),p=0,h=function(y){d[p++]=y},g=0;u>g;++g){if(p+5>d.length){var m=new Vr(p+8+(u-g<<1));m.set(d),d=m}var v=l.charCodeAt(g);128>v?h(v):2048>v?(h(192|v>>>6),h(128|63&v)):v>55295&&57344>v?(h(240|(v=65536+(1047552&v)|1023&l.charCodeAt(++g))>>>18),h(128|v>>>12&63),h(128|v>>>6&63),h(128|63&v)):(h(224|v>>>12),h(128|v>>>6&63),h(128|63&v))}return ef(d,0,p)})(yi(e)),{mtime:0});return{contentType:tf,body:n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength),estimatedSize:n.byteLength}}if(t===ln.Base64){var i=(function(l){return l&&btoa(encodeURIComponent(l).replace(/%([0-9A-F]{2})/g,((c,u)=>String.fromCharCode(parseInt(u,16)))))})(yi(e)),s=(l=>"data="+encodeURIComponent(typeof l=="string"?l:yi(l)))(i);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var o=yi(e);return{contentType:"application/json",body:o,estimatedSize:new Blob([o]).size}}},k1=(function(){var r=Zr((function*(e){var t=yi(e.data),n=yield(function(s,o){return dh.apply(this,arguments)})(t,Ir.DEBUG);if(!n)return e;var i=yield n.arrayBuffer();return pe({},e,{zt:{contentType:tf,body:i,estimatedSize:i.byteLength}})}));return function(e){return r.apply(this,arguments)}})(),Us=[];Ra&&Us.push({transport:"fetch",method(r){var e,t,{contentType:n,body:i,estimatedSize:s}=(e=sa(r))!==null&&e!==void 0?e:{},o=new Headers;dt(r.headers,(function(d,p){o.append(p,d)})),n&&o.append("Content-Type",n);var l=r.url,c=null;if(Rc){var u=new Rc;c={signal:u.signal,timeout:setTimeout((()=>u.abort()),r.timeout)}}Ra(l,pe({method:r?.method||"GET",headers:o,keepalive:r.method==="POST"&&52428.8>(s||0),body:i,signal:(t=c)==null?void 0:t.signal},r.fetchOptions)).then((d=>d.text().then((p=>{var h={statusCode:d.status,text:p};if(d.status===200)try{h.json=JSON.parse(p)}catch(g){_e.error(g)}r.callback==null||r.callback(h)})))).catch((d=>{_e.error(d),r.callback==null||r.callback({statusCode:0,error:d})})).finally((()=>c?clearTimeout(c.timeout):null))}}),Ia&&Us.push({transport:"XHR",method(r){var e,t=new Ia;t.open(r.method||"GET",r.url,!0);var{contentType:n,body:i}=(e=sa(r))!==null&&e!==void 0?e:{};dt(r.headers,(function(s,o){t.setRequestHeader(o,s)})),n&&t.setRequestHeader("Content-Type",n),r.timeout&&(t.timeout=r.timeout),r.disableXHRCredentials||(t.withCredentials=!0),t.onreadystatechange=()=>{if(t.readyState===4){var s={statusCode:t.status,text:t.responseText};if(t.status===200)try{s.json=JSON.parse(t.responseText)}catch{}r.callback==null||r.callback(s)}},t.send(i)}}),Lr!=null&&Lr.sendBeacon&&Us.push({transport:"sendBeacon",method(r){var e=ho(r.url,{beacon:"1"});try{var t,{contentType:n,body:i}=(t=sa(r))!==null&&t!==void 0?t:{};if(!i)return;var s=i instanceof Blob?i:new Blob([i],{type:n});Lr.sendBeacon(e,s)}catch{}}});var Qa=3e3;class T1{constructor(e,t){this.Er=!0,this.Rr=[],this.Nr=dn(t?.flush_interval_ms||Qa,250,5e3,_e.createLogger("flush interval"),Qa),this.Mr=e}enqueue(e){this.Rr.push(e),this.Fr||this.Or()}unload(){this.Pr();var e=this.Rr.length>0?this.Lr():{},t=Object.values(e);[...t.filter((n=>n.url.indexOf("/e")===0)),...t.filter((n=>n.url.indexOf("/e")!==0))].map((n=>{this.Mr(pe({},n,{transport:"sendBeacon"}))}))}enable(){this.Er=!1,this.Or()}Or(){var e=this;this.Er||(this.Fr=setTimeout((()=>{if(this.Pr(),this.Rr.length>0){var t=this.Lr(),n=function(){var s=t[i],o=new Date().getTime();s.data&&Je(s.data)&&dt(s.data,(l=>{l.offset=Math.abs(l.timestamp-o),delete l.timestamp})),e.Mr(s)};for(var i in t)n()}}),this.Nr))}Pr(){clearTimeout(this.Fr),this.Fr=void 0}Lr(){var e={};return dt(this.Rr,(t=>{var n,i=t,s=(i?i.batchKey:null)||i.url;xe(e[s])&&(e[s]=pe({},i,{data:[]})),(n=e[s].data)==null||n.push(i.data)})),this.Rr=[],e}}var C1=["retriesPerformedSoFar"];class A1{constructor(e){this.Dr=!1,this.Br=3e3,this.Rr=[],this._instance=e,this.Rr=[],this.jr=!0,!xe(K)&&"onLine"in K.navigator&&(this.jr=K.navigator.onLine,this.qr=()=>{this.jr=!0,this.Zr()},this.$r=()=>{this.jr=!1},Nt(K,"online",this.qr),Nt(K,"offline",this.$r))}get length(){return this.Rr.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,n=uh(e,C1);fi(t)&&(n.url=ho(n.url,{retry_count:t})),this._instance._send_request(pe({},n,{callback:i=>{i.statusCode===200||i.statusCode>=400&&500>i.statusCode||(t??0)>=10?n.callback==null||n.callback(i):this.Hr(pe({retriesPerformedSoFar:t},n))}}))}Hr(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var n=(function(o){var l=3e3*Math.pow(2,o),c=l/2,u=Math.min(18e5,l),d=Math.random()-.5;return Math.ceil(u+d*(u-c))})(t),i=Date.now()+n;this.Rr.push({retryAt:i,requestOptions:e});var s="Enqueued failed request for retry in "+n;navigator.onLine||(s+=" (Browser is offline)"),_e.warn(s),this.Dr||(this.Dr=!0,this.Vr())}Vr(){if(this.zr&&clearTimeout(this.zr),this.Rr.length===0)return this.Dr=!1,void(this.zr=void 0);this.zr=setTimeout((()=>{this.jr&&this.Rr.length>0&&this.Zr(),this.Vr()}),this.Br)}Zr(){var e=Date.now(),t=[],n=this.Rr.filter((s=>e>s.retryAt||(t.push(s),!1)));if(this.Rr=t,n.length>0)for(var{requestOptions:i}of n)this.retriableRequest(i)}unload(){for(var{requestOptions:e}of(this.zr&&(clearTimeout(this.zr),this.zr=void 0),this.Dr=!1,xe(K)||(this.qr&&(K.removeEventListener("online",this.qr),this.qr=void 0),this.$r&&(K.removeEventListener("offline",this.$r),this.$r=void 0)),this.Rr))try{this._instance._send_request(pe({},e,{transport:"sendBeacon"}))}catch(t){_e.error(t)}this.Rr=[]}}class M1{constructor(e){this.Yr=()=>{var t,n,i,s;this.Ur||(this.Ur={});var o=this.scrollElement(),l=this.scrollY(),c=o?Math.max(0,o.scrollHeight-o.clientHeight):0,u=l+(o?.clientHeight||0),d=o?.scrollHeight||0;this.Ur.lastScrollY=Math.ceil(l),this.Ur.maxScrollY=Math.max(l,(t=this.Ur.maxScrollY)!==null&&t!==void 0?t:0),this.Ur.maxScrollHeight=Math.max(c,(n=this.Ur.maxScrollHeight)!==null&&n!==void 0?n:0),this.Ur.lastContentY=u,this.Ur.maxContentY=Math.max(u,(i=this.Ur.maxContentY)!==null&&i!==void 0?i:0),this.Ur.maxContentHeight=Math.max(d,(s=this.Ur.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=e}get Wr(){return this._instance.config.scroll_root_selector}getContext(){return this.Ur}resetContext(){var e=this.Ur;return setTimeout(this.Yr,0),e}startMeasuringScrollPosition(){Nt(K,"scroll",this.Yr,{capture:!0}),Nt(K,"scrollend",this.Yr,{capture:!0}),Nt(K,"resize",this.Yr)}scrollElement(){if(!this.Wr)return K?.document.documentElement;var e=Je(this.Wr)?this.Wr:[this.Wr];for(var t of e){var n=K?.document.querySelector(t);if(n)return n}}scrollY(){if(this.Wr){var e=this.scrollElement();return e&&e.scrollTop||0}return K&&(K.scrollY||K.pageYOffset||K.document.documentElement.scrollTop)||0}scrollX(){if(this.Wr){var e=this.scrollElement();return e&&e.scrollLeft||0}return K&&(K.scrollX||K.pageXOffset||K.document.documentElement.scrollLeft)||0}}var R1=r=>Gh(r?.config.mask_personal_data_properties,r?.config.custom_personal_data_properties);class su{constructor(e,t,n,i){this.Gr=s=>{var o=this.Xr();if(!o||o.sessionId!==s){var l={sessionId:s,props:this.Jr(this._instance)};this.Kr.register({[Wa]:l})}},this._instance=e,this.Qr=t,this.Kr=n,this.Jr=i||R1,this.Qr.onSessionId(this.Gr)}Xr(){return this.Kr.props[Wa]}getSetOnceProps(){var e,t=(e=this.Xr())==null?void 0:e.props;return t?"r"in t?Kh(t):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return dt(ic(this.getSetOnceProps()),((t,n)=>{n==="$current_url"&&(n="url"),e["$session_entry_"+Oa(n)]=t})),e}}class ac{constructor(){this.ti={}}on(e,t){return this.ti[e]||(this.ti[e]=[]),this.ti[e].push(t),()=>{this.ti[e]=this.ti[e].filter((n=>n!==t))}}emit(e,t){for(var n of this.ti[e]||[])n(t);for(var i of this.ti["*"]||[])i(e,t)}}var oa=xt("[SessionId]");class ou{on(e,t){return this.ei.on(e,t)}constructor(e,t,n){var i;if(this.ri=[],this.ii=void 0,this.ei=new ac,this.ni=(u,d)=>!(!fi(u)||!fi(d))&&Math.abs(u-d)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===Qr)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Rt=e.config,this.Kr=e.persistence,this.si=void 0,this.oi=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.ai=t||On,this.li=n||On;var s=this.Rt.persistence_name||this.Rt.token;if(this._sessionTimeoutMs=1e3*dn(this.Rt.session_idle_timeout_seconds||1800,60,36e3,oa.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ui(),this.hi="ph_"+s+"_window_id",this.ci="ph_"+s+"_primary_window_exists",this.di()){var o=sr.Gt(this.hi),l=sr.Gt(this.ci);o&&!l?this.si=o:sr.Jt(this.hi),sr.Xt(this.ci,!0)}if((i=this.Rt.bootstrap)!=null&&i.sessionID)try{var c=(u=>{var d=this.Rt.bootstrap.sessionID.replace(/-/g,"");if(d.length!==32)throw new Error("Not a valid UUID");if(d[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(d.substring(0,12),16)})();this.vi(this.Rt.bootstrap.sessionID,new Date().getTime(),c)}catch(u){oa.error("Invalid sessionID in bootstrap",u)}this.fi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return xe(this.ri)&&(this.ri=[]),this.ri.push(e),this.oi&&e(this.oi,this.si),()=>{this.ri=this.ri.filter((t=>t!==e))}}di(){return this.Rt.persistence!=="memory"&&!this.Kr.gr&&sr.Yt()}pi(e){e!==this.si&&(this.si=e,this.di()&&sr.Xt(this.hi,e))}gi(){return this.si?this.si:this.di()?sr.Gt(this.hi):null}vi(e,t,n){e===this.oi&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this.oi=e,this.Kr.register({[Qs]:[t,e,n]}))}mi(){var e=this.Kr.props[Qs];return Je(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.vi(null,null,null)}destroy(){clearTimeout(this.yi),this.yi=void 0,this.ii&&K&&(K.removeEventListener(io,this.ii,{capture:!1}),this.ii=void 0),this.ri=[]}fi(){this.ii=()=>{this.di()&&sr.Jt(this.ci)},Nt(K,io,this.ii,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(e===void 0&&(e=!1),t===void 0&&(t=null),this.Rt.cookieless_mode===Qr)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=t||new Date().getTime(),[i,s,o]=this.mi(),l=this.gi(),c=fi(o)&&Math.abs(n-o)>864e5,u=!1,d=!s,p=!d&&!e&&this.ni(n,i);d||p||c?(s=this.ai(),l=this.li(),oa.info("new session ID generated",{sessionId:s,windowId:l,changeReason:{noSessionId:d,activityTimeout:p,sessionPastMaximumLength:c}}),o=n,u=!0):l||(l=this.li(),u=!0);var h=fi(i)&&e&&!c?i:n,g=fi(o)?o:new Date().getTime();return this.pi(l),this.vi(s,h,g),e||this.ui(),u&&this.ri.forEach((m=>m(s,l,u?{noSessionId:d,activityTimeout:p,sessionPastMaximumLength:c}:void 0))),{sessionId:s,windowId:l,sessionStartTimestamp:g,changeReason:u?{noSessionId:d,activityTimeout:p,sessionPastMaximumLength:c}:void 0,lastActivityTimestamp:i}}ui(){clearTimeout(this.yi),this.yi=setTimeout((()=>{var[e]=this.mi();if(this.ni(new Date().getTime(),e)){var t=this.oi;this.resetSessionId(),this.ei.emit("forcedIdleReset",{idleSessionId:t})}}),1.1*this.sessionTimeoutMs)}}var rf=function(r,e){if(!r)return!1;var t=r.userAgent;if(t&&Nc(t,e))return!0;try{var n=r?.userAgentData;if(n!=null&&n.brands&&n.brands.some((i=>Nc(i?.brand,e))))return!0}catch{}return!!r.webdriver},fo=function(r,e){if(!(function(t){try{new RegExp(t)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(r)}catch{return!1}};function au(r,e,t){return yi({distinct_id:r,userPropertiesToSet:e,userPropertiesToSetOnce:t})}var nf={exact:(r,e)=>e.some((t=>r.some((n=>t===n)))),is_not:(r,e)=>e.every((t=>r.every((n=>t!==n)))),regex:(r,e)=>e.some((t=>r.some((n=>fo(t,n))))),not_regex:(r,e)=>e.every((t=>r.every((n=>!fo(t,n))))),icontains:(r,e)=>e.map(Os).some((t=>r.map(Os).some((n=>t.includes(n))))),not_icontains:(r,e)=>e.map(Os).every((t=>r.map(Os).every((n=>!t.includes(n))))),gt:(r,e)=>e.some((t=>{var n=parseFloat(t);return!isNaN(n)&&r.some((i=>n>parseFloat(i)))})),lt:(r,e)=>e.some((t=>{var n=parseFloat(t);return!isNaN(n)&&r.some((i=>n<parseFloat(i)))}))},Os=r=>r.toLowerCase();function sf(r,e){return!r||Object.entries(r).every((t=>{var[n,i]=t,s=e?.[n];if(xe(s)||zn(s))return!1;var o=[String(s)],l=nf[i.operator];return!!l&&l(i.values,o)}))}var el="custom",lu="i.posthog.com";class I1{constructor(e){this.bi={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+lu,".posthog.com")),t==="https://app.posthog.com"?"https://us.posthog.com":t}get region(){return this.bi[this.apiHost]||(this.bi[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":el),this.bi[this.apiHost]}endpointFor(e,t){if(t===void 0&&(t=""),t&&(t=t[0]==="/"?t:"/"+t),e==="ui")return this.uiHost+t;if(e==="flags")return this.flagsApiHost+t;if(this.region===el)return this.apiHost+t;var n=lu+t;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var ot=xt("[Surveys]"),tl="seenSurvey_",O1=(r,e)=>{var t="$survey_"+e+"/"+r.id;return r.current_iteration&&r.current_iteration>0&&(t="$survey_"+e+"/"+r.id+"/"+r.current_iteration),t},cu=r=>((e,t)=>{var n=""+tl+t.id;return t.current_iteration&&t.current_iteration>0&&(n=""+tl+t.id+"_"+t.current_iteration),n})(0,r),N1=[ta.Popover,ta.Widget,ta.API],F1={ignoreConditions:!1,ignoreDelay:!1,displayType:Ya.Popover},L1=xt("[PostHog ExternalIntegrations]"),D1={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class z1{constructor(e){this._instance=e}nr(e,t){var n;(n=Me.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,e,(i=>{if(i)return L1.error("failed to load script",i);t()}))}startIfEnabledOrStop(){var e=this,t=function(o){var l,c,u;!i||(l=Me.__PosthogExtensions__)!=null&&(l=l.integrations)!=null&&l[o]||e.nr(D1[o],(()=>{var d;(d=Me.__PosthogExtensions__)==null||(d=d.integrations)==null||(d=d[o])==null||d.start(e._instance)})),!i&&(c=Me.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[o]&&((u=Me.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[o])==null||u.stop())};for(var[n,i]of Object.entries((s=this._instance.config.integrations)!==null&&s!==void 0?s:{})){var s;t(n)}}}var us={},aa=0,rl=()=>{},uu='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Bi="Surveys module not available",du="sanitize_properties is deprecated. Use before_send instead",of="Invalid value for property_denylist config: ",gi="posthog",af=!E1&&Tr?.indexOf("MSIE")===-1&&Tr?.indexOf("Mozilla")===-1,hu=r=>{var e;return pe({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:n1(me?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:rl,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:r??"unset",__preview_deferred_init_extensions:!1,debug:ir&&Lt(ir?.search)&&ir.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(K==null||(e=K.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(t){_e.error("Bad HTTP status: "+t.statusCode+" "+t.text)},get_device_id:t=>t,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:$a,before_send:void 0,request_queue_config:{flush_interval_ms:Qa},error_tracking:{},_onCapture:rl,__preview_eager_load_replay:!1},(t=>({rageclick:!t||"2025-11-30">t||{content_ignorelist:!0},capture_pageview:!t||"2025-05-24">t||"history_change",session_recording:t&&t>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:t&&t>="2026-01-30"?"head":"body",internal_or_test_user_hostname:t&&t>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(r))},j1=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],fu=r=>{var e={};for(var[t,n]of j1)xe(r[t])||(e[n]=r[t]);var i=At({},e,r);return Je(r.property_blacklist)&&(xe(r.property_denylist)?i.property_denylist=r.property_blacklist:Je(r.property_denylist)?i.property_denylist=[...r.property_blacklist,...r.property_denylist]:_e.error(of+r.property_denylist)),i};class H1{constructor(){this.__forceAllowLocalhost=!1}get wi(){return this.__forceAllowLocalhost}set wi(e){_e.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class un{Ii(e,t){if(e){var n=this.Ci.indexOf(e);n!==-1&&this.Ci.splice(n,1)}return this.Ci.push(t),t.initialize==null||t.initialize(),t}get decideEndpointWasHit(){var e,t;return(e=(t=this.featureFlags)==null?void 0:t.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,t;return(e=(t=this.featureFlags)==null?void 0:t.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new H1,this.Si=!1,this.version=Ir.LIB_VERSION,this.ki=new ac,this.Ci=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=hu(),this.SentryIntegration=f1,this.sentryIntegration=n=>(function(i,s){var o=Uh(i,s);return{name:Hh,processEvent:l=>o(l)}})(this,n),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.xi=!1,this.Ti=null,this.Ai=null,this.Ei=null,this.scrollManager=new M1(this),this.pageViewManager=new Jc(this),this.rateLimiter=new y1(this),this.requestRouter=new I1(this),this.consent=new u1(this),this.externalIntegrations=new z1(this);var t=(e=un.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=t.featureFlags&&new t.featureFlags(this),this.toolbar=t.toolbar&&new t.toolbar(this),this.surveys=t.surveys&&new t.surveys(this),this.conversations=t.conversations&&new t.conversations(this),this.logs=t.logs&&new t.logs(this),this.experiments=t.experiments&&new t.experiments(this),this.exceptions=t.exceptions&&new t.exceptions(this),this.people={set:(n,i,s)=>{var o=Lt(n)?{[n]:i}:n;this.setPersonProperties(o),s?.({})},set_once:(n,i,s)=>{var o=Lt(n)?{[n]:i}:n;this.setPersonProperties(void 0,o),s?.({})}},this.on("eventCaptured",(n=>_e.info('send "'+n?.event+'"',n)))}init(e,t,n){if(n&&n!==gi){var i,s=(i=us[n])!==null&&i!==void 0?i:new un;return s._init(e,t,n),us[n]=s,us[gi][n]=s,s}return this._init(e,t,n)}_init(e,t,n){var i;if(t===void 0&&(t={}),xe(e)||js(e))return _e.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},t.debug=this.Ri(t.debug),this.Ni=t,this.Mi=[],t.person_profiles?this.Ai=t.person_profiles:t.process_person&&(this.Ai=t.process_person),this.set_config(At({},hu(t.defaults),fu(t),{name:n,token:e})),this.config.on_xhr_error&&_e.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:ln.GZipJS;var s=this.Fi();this.persistence=new ea(this.config,s),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new ea(pe({},this.config,{persistence:"sessionStorage"}),s);var o=pe({},this.persistence.props),l=pe({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Oi=new T1((v=>this.Pi(v)),this.config.request_queue_config),this.Li=new A1(this),this.__request_queue=[];var c=this.config.cookieless_mode===Qr||this.config.cookieless_mode===_n&&this.consent.isExplicitlyOptedOut();if(c||(this.sessionManager=new ou(this),this.sessionPropsManager=new su(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(_e.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.Di(c)}),0)):(_e.info("Initializing extensions synchronously"),this.Di(c)),Ir.DEBUG=Ir.DEBUG||this.config.debug,Ir.DEBUG&&_e.info("Starting in debug mode",{this:this,config:t,thisC:pe({},this.config),p:o,s:l}),((i=t.bootstrap)==null?void 0:i.distinctID)!==void 0){var u=t.bootstrap.distinctID,d=this.get_distinct_id(),p=this.persistence.get_property(Xr);if(t.bootstrap.isIdentifiedID&&d!=null&&d!==u&&p===li)this.identify(u);else if(t.bootstrap.isIdentifiedID&&d!=null&&d!==u&&p===ci)_e.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var h=this.config.get_device_id(On()),g=t.bootstrap.isIdentifiedID?h:u;this.persistence.set_property(Xr,t.bootstrap.isIdentifiedID?ci:li),this.register({distinct_id:u,$device_id:g})}}if(c)this.register_once({distinct_id:Cs,$device_id:null},"");else if(!this.get_distinct_id()){var m=this.config.get_device_id(On());this.register_once({distinct_id:m,$device_id:m},""),this.persistence.set_property(Xr,li)}return Nt(K,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),t.segment?(function(v,y){var b=v.config.segment;if(!b)return y();(function(P,w){var x=P.config.segment;if(!x)return w();var T=C=>{var S=()=>C.anonymousId()||On();P.config.get_device_id=S,C.id()&&(P.register({distinct_id:C.id(),$device_id:S()}),P.persistence.set_property(Xr,ci)),w()},R=x.user();"then"in R&&yn(R.then)?R.then(T):T(R)})(v,(()=>{b.register((P=>{Promise&&Promise.resolve||Qo.warn("This browser does not have Promise support, and can not use the segment integration");var w=(x,T)=>{if(!T)return x;x.event.userId||x.event.anonymousId===P.get_distinct_id()||(Qo.info("No userId set, resetting PostHog"),P.reset()),x.event.userId&&x.event.userId!==P.get_distinct_id()&&(Qo.info("UserId set, identifying with PostHog"),P.identify(x.event.userId));var R=P.calculateEventProperties(T,x.event.properties);return x.event.properties=Object.assign({},R,x.event.properties),x};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:x=>w(x,x.event.event),page:x=>w(x,vi),identify:x=>w(x,Jo),screen:x=>w(x,"$screen")}})(v)).then((()=>{y()}))}))})(this,(()=>this.Bi())):this.Bi(),yn(this.config._onCapture)&&this.config._onCapture!==rl&&(_e.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(v=>this.config._onCapture(v.event,v)))),this.config.ip&&_e.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Di(e){var t,n,i,s,o,l,c,u=performance.now(),d=pe({},un.__defaultExtensionClasses,this.config.__extensionClasses),p=[];d.featureFlags&&this.Ci.push(this.featureFlags=(t=this.featureFlags)!==null&&t!==void 0?t:new d.featureFlags(this)),d.exceptions&&this.Ci.push(this.exceptions=(n=this.exceptions)!==null&&n!==void 0?n:new d.exceptions(this)),d.historyAutocapture&&this.Ci.push(this.historyAutocapture=new d.historyAutocapture(this)),d.tracingHeaders&&this.Ci.push(new d.tracingHeaders(this)),d.siteApps&&this.Ci.push(this.siteApps=new d.siteApps(this)),d.sessionRecording&&!e&&this.Ci.push(this.sessionRecording=new d.sessionRecording(this)),this.config.disable_scroll_properties||p.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),d.autocapture&&this.Ci.push(this.autocapture=new d.autocapture(this)),d.surveys&&this.Ci.push(this.surveys=(i=this.surveys)!==null&&i!==void 0?i:new d.surveys(this)),d.logs&&this.Ci.push(this.logs=(s=this.logs)!==null&&s!==void 0?s:new d.logs(this)),d.conversations&&this.Ci.push(this.conversations=(o=this.conversations)!==null&&o!==void 0?o:new d.conversations(this)),d.productTours&&this.Ci.push(this.productTours=new d.productTours(this)),d.heatmaps&&this.Ci.push(this.heatmaps=new d.heatmaps(this)),d.webVitalsAutocapture&&this.Ci.push(this.webVitalsAutocapture=new d.webVitalsAutocapture(this)),d.exceptionObserver&&this.Ci.push(this.exceptionObserver=new d.exceptionObserver(this)),d.deadClicksAutocapture&&this.Ci.push(this.deadClicksAutocapture=new d.deadClicksAutocapture(this,h1)),d.toolbar&&this.Ci.push(this.toolbar=(l=this.toolbar)!==null&&l!==void 0?l:new d.toolbar(this)),d.experiments&&this.Ci.push(this.experiments=(c=this.experiments)!==null&&c!==void 0?c:new d.experiments(this)),this.Ci.forEach((h=>{h.initialize&&p.push((()=>{h.initialize==null||h.initialize()}))})),p.push((()=>{if(this.ji){var h=this.ji;this.ji=void 0,this.Sr(h)}})),this.qi(p,u)}qi(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout((()=>{this.qi(e,t)}),0);var n=e.shift();if(n)try{n()}catch(s){_e.error("Error initializing extension:",s)}}var i=Math.round(performance.now()-t);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:i}),this.config.__preview_deferred_init_extensions&&_e.info("PostHog extensions initialized ("+i+"ms)")}Sr(e){var t;if(!me||!me.body)return _e.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Sr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.ji=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Be(e.supportedCompression,ln.GZipJS)?ln.GZipJS:Be(e.supportedCompression,ln.Base64)?ln.Base64:void 0),(t=e.analytics)!=null&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Ai?this.Ai:$a}),this.Ci.forEach((n=>n.onRemoteConfig==null?void 0:n.onRemoteConfig(e)))}Bi(){try{this.config.loaded(this)}catch(n){_e.critical("`loaded` function failed",n)}if(this.Zi(),this.config.internal_or_test_user_hostname&&ir!=null&&ir.hostname){var e=ir.hostname,t=this.config.internal_or_test_user_hostname;(typeof t=="string"?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.config.cookieless_mode===Qr)&&this.$i()}),1),this.Hi=new Yh(this),this.Hi.load()}Zi(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Oi)==null||e.enable())}_dom_loaded(){this.is_capturing()&&As(this.__request_queue,(e=>this.Pi(e))),this.__request_queue=[],this.Zi()}_handle_unload(){var e,t,n;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Vi()&&this.capture(Xo),(t=this.Oi)==null||t.unload(),(n=this.Li)==null||n.unload()):this.Vi()&&this.capture(Xo,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(af?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=ho(e.url,{ip:this.config.ip?1:0}),e.headers=pe({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(t=>{var n,i,s,o=pe({},t);o.timeout=o.timeout||6e4,o.url=ho(o.url,{_:new Date().getTime().toString(),ver:Ir.JS_SDK_VERSION,compression:o.compression});var l=(n=o.transport)!==null&&n!==void 0?n:"fetch",c=Us.filter((d=>!o.disableTransport||!d.transport||!o.disableTransport.includes(d.transport))),u=(i=(s=(function(d,p){for(var h=0;d.length>h;h++)if(d[h].transport===l)return d[h]})(c))==null?void 0:s.method)!==null&&i!==void 0?i:c[0].method;if(!u)throw new Error("No available transport method");l!=="sendBeacon"&&o.data&&o.compression===ln.GZipJS&&p_?k1(o).then((d=>{u(d)})).catch((()=>{u(o)})):u(o)})(pe({},e,{callback:t=>{var n,i;this.rateLimiter.checkForLimiting(t),400>t.statusCode||(n=(i=this.config).on_request_error)==null||n.call(i,t),e.callback==null||e.callback(t)}}))))}Pi(e){this.Li?this.Li.retriableRequest(e):this._send_request(e)}_execute_array(e){aa++;try{var t,n=[],i=[],s=[];As(e,(l=>{l&&(Je(t=l[0])?s.push(l):yn(l)?l.call(this):Je(l)&&t==="alias"?n.push(l):Je(l)&&t.indexOf("capture")!==-1&&yn(this[t])?s.push(l):i.push(l))}));var o=function(l,c){As(l,(function(u){if(Je(u[0])){var d=c;dt(u,(function(p){d=d[p[0]].apply(d,p.slice(1))}))}else c[u[0]].apply(c,u.slice(1))}))};o(n,this),o(i,this),o(s,this)}finally{aa--}}push(e){if(aa>0&&Je(e)&&Lt(e[0])){var t=un.prototype[e[0]];yn(t)&&t.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,t,n){var i,s,o,l,c;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Oi){if(this.is_capturing())if(!xe(e)&&Lt(e)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||this.config.__preview_capture_bot_pageviews){var d=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(d==null||!d.isRateLimited){t!=null&&t.$current_url&&!Lt(t?.$current_url)&&(_e.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),t==null||delete t.$current_url),e!=="$exception"||n!=null&&n.zi||_e.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var p=new Date,h=n?.timestamp||p,g=On(),m={uuid:g,event:e,properties:this.calculateEventProperties(e,t||{},h,g)};e===vi&&this.config.__preview_capture_bot_pageviews&&u&&(m.event="$bot_pageview",m.properties.$browser_type="bot"),d&&(m.properties.$lib_rate_limit_remaining_tokens=d.remainingTokens),n?.$set&&(m.$set=n?.$set);var v,y=this.Yi(n?.$set_once,e!==Kc,e===Jo);if(y&&(m.$set_once=y),n!=null&&n._noTruncate||(s=this.config.properties_string_max_length,o=m,l=C=>Lt(C)?C.slice(0,s):C,c=new Set,m=(function C(S,A){return S!==Object(S)?l?l(S):S:c.has(S)?void 0:(c.add(S),Je(S)?(I=[],As(S,(M=>{I.push(C(M))}))):(I={},dt(S,((M,L)=>{c.has(M)||(I[L]=C(M))}))),I);var I})(o)),m.timestamp=h,xe(n?.timestamp)||(m.properties.$event_time_override_provided=!0,m.properties.$event_time_override_system_time=p),e===ss.DISMISSED||e===ss.SENT){var b=t?.[ra.SURVEY_ID],P=t?.[ra.SURVEY_ITERATION];v={id:b,current_iteration:P},localStorage.getItem(cu(v))||localStorage.setItem(cu(v),"true"),m.$set=pe({},m.$set,{[O1({id:b,current_iteration:P},e===ss.SENT?"responded":"dismissed")]:!0})}else e===ss.SHOWN&&(m.$set=pe({},m.$set,{[ra.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===_1.SHOWN){var w=t?.[Qc.TOUR_TYPE];w&&(m.$set=pe({},m.$set,{[Qc.TOUR_LAST_SEEN_DATE+"/"+w]:new Date().toISOString()}))}var x=pe({},m.properties.$set,m.$set);if(mi(x)||this.setPersonPropertiesForFlags(x),!qe(this.config.before_send)){var T=this.Ui(m);if(!T)return;m=T}this.ki.emit("eventCaptured",m);var R={method:"POST",url:(i=n?._url)!==null&&i!==void 0?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:m,compression:"best-available",batchKey:n?._batchKey};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.Pi(R):this.Oi.enqueue(R),m}_e.critical("This capture call is ignored due to client rate limiting.")}}else _e.error("No event name provided to posthog.capture")}else _e.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(t=>e(t.event,t)))}calculateEventProperties(e,t,n,i,s){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return t;var o=s?void 0:this.persistence.remove_event_timer(e),l=pe({},t);if(l.token=this.config.token,l.$config_defaults=this.config.defaults,(this.config.cookieless_mode==Qr||this.config.cookieless_mode==_n&&this.consent.isExplicitlyOptedOut())&&(l.$cookieless_mode=!0),e==="$snapshot"){var c=pe({},this.persistence.properties(),this.sessionPersistence.properties());return l.distinct_id=c.distinct_id,(!Lt(l.distinct_id)&&!fn(l.distinct_id)||js(l.distinct_id))&&_e.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),l}var u,d=(function(b,P){var w,x,T,R;if(!Tr)return{};var C,S,A,I,M,L,W,j,Y=b?[...Ai,...P||[]]:[],[le,se]=(function(Q){for(var ce=0;Dc.length>ce;ce++){var[he,ae]=Dc[ce],re=he.exec(Q),ie=re&&(yn(ae)?ae(re,Q):ae);if(ie)return ie}return["",""]})(Tr);return At(ic({$os:le,$os_version:se,$browser:Mh(Tr,navigator.vendor),$device:zc(Tr),$device_type:(S=Tr,A={userAgentDataPlatform:(w=navigator)==null||(w=w.userAgentData)==null?void 0:w.platform,maxTouchPoints:(x=navigator)==null?void 0:x.maxTouchPoints,screenWidth:K==null||(T=K.screen)==null?void 0:T.width,screenHeight:K==null||(R=K.screen)==null?void 0:R.height,devicePixelRatio:K?.devicePixelRatio},j=zc(S),j===ph||j===gh||j==="Kobo"||j==="Kindle Fire"||j===Ah?ki:j===fs||j===wi||j===vs||j===Fa?"Console":j===_h?"Wearable":j?Dr:A?.userAgentDataPlatform==="Android"&&((I=A?.maxTouchPoints)!==null&&I!==void 0?I:0)>0?600>Math.min((M=A?.screenWidth)!==null&&M!==void 0?M:0,(L=A?.screenHeight)!==null&&L!==void 0?L:0)/((W=A?.devicePixelRatio)!==null&&W!==void 0?W:1)?Dr:ki:"Desktop"),$timezone:$h(),$timezone_offset:p1()}),{$current_url:gs(ir?.href,Y,ps),$host:ir?.host,$pathname:ir?.pathname,$raw_user_agent:Tr.length>1e3?Tr.substring(0,997)+"...":Tr,$browser_version:I_(Tr,navigator.vendor),$browser_language:Zc(),$browser_language_prefix:(C=Zc(),typeof C=="string"?C.split("-")[0]:void 0),$screen_height:K?.screen.height,$screen_width:K?.screen.width,$viewport_height:K?.innerHeight,$viewport_width:K?.innerWidth,$lib:Ir.LIB_NAME,$lib_version:Ir.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:p,windowId:h}=this.sessionManager.checkAndGetSessionAndWindowId(s,n.getTime());l.$session_id=p,l.$window_id=h}this.sessionPropsManager&&At(l,this.sessionPropsManager.getSessionProps());try{var g;this.sessionRecording&&At(l,this.sessionRecording.sdkDebugProperties),l.$sdk_debug_retry_queue_size=(g=this.Li)==null?void 0:g.length}catch(b){l.$sdk_debug_error_capturing_properties=String(b)}if(this.requestRouter.region===el&&(l.$lib_custom_api_host=this.config.api_host),u=e!==vi||s?e!==Xo||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,i),l=At(l,u),e===vi&&me&&(l.title=me.title),!xe(o)){var m=n.getTime()-o;l.$duration=parseFloat((m/1e3).toFixed(3))}Tr&&this.config.opt_out_useragent_filter&&(l.$browser_type=this._is_bot()?"bot":"browser"),(l=At({},d,this.persistence.properties(),this.sessionPersistence.properties(),l)).$is_identified=this._isIdentified(),Je(this.config.property_denylist)?dt(this.config.property_denylist,(function(b){delete l[b]})):_e.error(of+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var v=this.config.sanitize_properties;v&&(_e.error(du),l=v(l,e));var y=this.Wi();return l.$process_person_profile=y,y&&!s&&this.Gi("_calculate_event_properties"),l}Yi(e,t,n){var i;if(t===void 0&&(t=!0),n===void 0&&(n=!1),!this.persistence||!this.Wi()||this.Si&&!n)return e;var s=this.persistence.get_initial_props(),o=(i=this.sessionPropsManager)==null?void 0:i.getSetOnceProps(),l=At({},s,o||{},e||{}),c=this.config.sanitize_properties;return c&&(_e.error(du),l=c(l,"$set_once")),t&&(this.Si=!0),mi(l)?void 0:l}register(e,t){var n;(n=this.persistence)==null||n.register(e,t)}register_once(e,t,n){var i;(i=this.persistence)==null||i.register_once(e,t,n)}register_for_session(e){var t;(t=this.sessionPersistence)==null||t.register(e)}unregister(e){var t;(t=this.persistence)==null||t.unregister(e)}unregister_for_session(e){var t;(t=this.sessionPersistence)==null||t.unregister(e)}Xi(e,t){this.register({[e]:t})}getFeatureFlag(e,t){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t;return(t=this.featureFlags)==null?void 0:t.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagResult(e,t)}isFeatureEnabled(e,t){var n;return(n=this.featureFlags)==null?void 0:n.isFeatureEnabled(e,t)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,t,n){var i;(i=this.featureFlags)==null||i.updateFlags(e,t,n)}updateEarlyAccessFeatureEnrollment(e,t,n){var i;(i=this.featureFlags)==null||i.updateEarlyAccessFeatureEnrollment(e,t,n)}getEarlyAccessFeatures(e,t,n){var i;return t===void 0&&(t=!1),(i=this.featureFlags)==null?void 0:i.getEarlyAccessFeatures(e,t,n)}on(e,t){return this.ki.on(e,t)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:Bi}),()=>{})}onSessionId(e){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.onSessionId(e))!==null&&t!==void 0?t:()=>{}}getSurveys(e,t){t===void 0&&(t=!1),this.surveys?this.surveys.getSurveys(e,t):e([],{isLoaded:!1,error:Bi})}getActiveMatchingSurveys(e,t){t===void 0&&(t=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,t):e([],{isLoaded:!1,error:Bi})}renderSurvey(e,t){var n;(n=this.surveys)==null||n.renderSurvey(e,t)}displaySurvey(e,t){var n;t===void 0&&(t=F1),(n=this.surveys)==null||n.displaySurvey(e,t)}cancelPendingSurvey(e){var t;(t=this.surveys)==null||t.cancelPendingSurvey(e)}canRenderSurvey(e){var t,n;return(t=(n=this.surveys)==null?void 0:n.canRenderSurvey(e))!==null&&t!==void 0?t:{visible:!1,disabledReason:Bi}}canRenderSurveyAsync(e,t){var n,i;return t===void 0&&(t=!1),(n=(i=this.surveys)==null?void 0:i.canRenderSurveyAsync(e,t))!==null&&n!==void 0?n:Promise.resolve({visible:!1,disabledReason:Bi})}Ji(e){return!e||js(e)?(_e.critical("Unique user id has not been set in posthog.identify"),!1):e===Cs?(_e.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(_e.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,t,n){if(!this.__loaded||!this.persistence)return _e.uninitializedWarning("posthog.identify");if(fn(e)&&(e=e.toString(),_e.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.Ji(e)&&this.Gi("posthog.identify")){var i=this.get_distinct_id();this.register({$user_id:e}),this.get_property(Zs)||this.register_once({$had_persisted_distinct_id:!0,$device_id:i},""),e!==i&&e!==this.get_property(ts)&&(this.unregister(ts),this.register({distinct_id:e}));var s,o=(this.persistence.get_property(Xr)||li)===li;e!==i&&o?(this.persistence.set_property(Xr,ci),this.setPersonPropertiesForFlags(pe({},n||{},t||{}),!1),this.capture(Jo,{distinct_id:e,$anon_distinct_id:i},{$set:t||{},$set_once:n||{}}),this.Ei=au(e,t,n),(s=this.featureFlags)==null||s.setAnonymousDistinctId(i)):(t||n)&&this.setPersonProperties(t,n),e!==i&&(this.reloadFeatureFlags(),this.unregister(ls))}}setPersonProperties(e,t){if((e||t)&&this.Gi("posthog.setPersonProperties")){var n=au(this.get_distinct_id(),e,t);this.Ei!==n?(this.setPersonPropertiesForFlags(pe({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Ei=n):_e.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,n){if(e&&t){var i=this.getGroups();i[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:pe({},i,{[e]:t})}),n&&(this.capture(Kc,{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags({[e]:n})),i[e]===t||n||this.reloadFeatureFlags()}else _e.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){var n;t===void 0&&(t=!0),(n=this.featureFlags)==null||n.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){var n;t===void 0&&(t=!0),this.Gi("posthog.setGroupPropertiesForFlags")&&((n=this.featureFlags)==null||n.setGroupPropertiesForFlags(e,t))}resetGroupPropertiesForFlags(e){var t;(t=this.featureFlags)==null||t.resetGroupPropertiesForFlags(e)}reset(e){var t,n,i,s,o,l,c;if(_e.info("reset"),!this.__loaded)return _e.uninitializedWarning("posthog.reset");var u=this.get_property(Zs);if(this.consent.reset(),(t=this.persistence)==null||t.clear(),(n=this.sessionPersistence)==null||n.clear(),(i=this.surveys)==null||i.reset(),(s=this.Hi)==null||s.stop(),(o=this.featureFlags)==null||o.reset(),(l=this.persistence)==null||l.set_property(Xr,li),(c=this.sessionManager)==null||c.resetSessionId(),this.Ei=null,this.config.cookieless_mode===Qr)this.register_once({distinct_id:Cs,$device_id:null},"");else{var d=this.config.get_device_id(On());this.register_once({distinct_id:d,$device_id:e?d:u},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),this.reloadFeatureFlags()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return(e=(t=this.sessionManager)==null?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(e!=null&&e.withTimestamp&&n){var s,o=(s=e.timestampLookBack)!==null&&s!==void 0?s:10;if(!n)return i;i+="?t="+Math.max(Math.floor((new Date().getTime()-n)/1e3)-o,0)}return i}alias(e,t){return e===this.get_property(Nh)?(_e.critical("Attempting to create alias for existing People user - aborting."),-2):this.Gi("posthog.alias")?(xe(t)&&(t=this.get_distinct_id()),e!==t?(this.Xi(ts,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(_e.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=pe({},this.config);if(Vt(e)){var n,i,s,o,l,c,u,d,p;At(this.config,fu(e));var h=this.Fi();(n=this.persistence)==null||n.update_config(this.config,t,h),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new ea(pe({},this.config,{persistence:"sessionStorage"}),h);var g=this.Ri(this.config.debug);bn(g)&&(this.config.debug=g),bn(this.config.debug)&&(this.config.debug?(Ir.DEBUG=!0,yt.Yt()&&yt.Xt("ph_debug",!0),_e.info("set_config",{config:e,oldConfig:t,newConfig:pe({},this.config)})):(Ir.DEBUG=!1,yt.Yt()&&yt.Jt("ph_debug"))),(i=this.exceptionObserver)==null||i.onConfigChange(),(s=this.sessionRecording)==null||s.startIfEnabledOrStop(),(o=this.autocapture)==null||o.startIfEnabled(),(l=this.heatmaps)==null||l.startIfEnabled(),(c=this.exceptionObserver)==null||c.startIfEnabledOrStop(),(u=this.deadClicksAutocapture)==null||u.startIfEnabledOrStop(),(d=this.surveys)==null||d.loadIfEnabled(),this.Ki(),(p=this.externalIntegrations)==null||p.startIfEnabledOrStop()}}_overrideSDKInfo(e,t){Ir.LIB_NAME=e,Ir.LIB_VERSION=t}startSessionRecording(e){var t,n,i,s,o,l=e===!0,c={sampling:l||!(e==null||!e.sampling),linked_flag:l||!(e==null||!e.linked_flag),url_trigger:l||!(e==null||!e.url_trigger),event_trigger:l||!(e==null||!e.event_trigger)};Object.values(c).some(Boolean)&&((t=this.sessionManager)==null||t.checkAndGetSessionAndWindowId(),c.sampling&&((n=this.sessionRecording)==null||n.overrideSampling()),c.linked_flag&&((i=this.sessionRecording)==null||i.overrideLinkedFlag()),c.url_trigger&&((s=this.sessionRecording)==null||s.overrideTrigger("url")),c.event_trigger&&((o=this.sessionRecording)==null||o.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,t){if(this.exceptions){var n=new Error("PostHog syntheticException"),i=this.exceptions.buildProperties(e,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(pe({},i,t))}}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var t,n;return(t=(n=this.toolbar)==null?void 0:n.loadToolbar(e))!==null&&t!==void 0&&t}get_property(e){var t;return(t=this.persistence)==null?void 0:t.props[e]}getSessionProperty(e){var t;return(t=this.sessionPersistence)==null?void 0:t.props[e]}toString(){var e,t=(e=this.config.name)!==null&&e!==void 0?e:gi;return t!==gi&&(t=gi+"."+t),t}_isIdentified(){var e,t;return((e=this.persistence)==null?void 0:e.get_property(Xr))===ci||((t=this.sessionPersistence)==null?void 0:t.get_property(Xr))===ci}Wi(){var e,t;return!(this.config.person_profiles==="never"||this.config.person_profiles===$a&&!this._isIdentified()&&mi(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[ts])&&((t=this.persistence)==null||(t=t.props)==null||!t[ro]))}Vi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Wi()||this.Gi("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Gi("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Gi(e){return this.config.person_profiles==="never"?(_e.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Xi(ro,!0),!0)}Fi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==_n)}Ki(){var e,t,n,i,s=this.Fi();return((e=this.persistence)==null?void 0:e.gr)!==s&&((n=this.persistence)==null||n.set_disabled(s)),((t=this.sessionPersistence)==null?void 0:t.gr)!==s&&((i=this.sessionPersistence)==null||i.set_disabled(s)),s}opt_in_capturing(e){var t;if(this.config.cookieless_mode!==Qr){if(this.config.cookieless_mode===_n&&this.consent.isExplicitlyOptedOut()){var n,i,s,o,l;this.reset(!0),(n=this.sessionManager)==null||n.destroy(),(i=this.pageViewManager)==null||i.destroy(),this.sessionManager=new ou(this),this.pageViewManager=new Jc(this),this.persistence&&(this.sessionPropsManager=new su(this,this.sessionManager,this.persistence));var c=(s=(o=this.config.__extensionClasses)==null?void 0:o.sessionRecording)!==null&&s!==void 0?s:(l=un.__defaultExtensionClasses)==null?void 0:l.sessionRecording;c&&(this.sessionRecording=this.Ii(this.sessionRecording,new c(this)))}var u,d;this.consent.optInOut(!0),this.Ki(),this.Zi(),(t=this.sessionRecording)==null||t.startIfEnabledOrStop(),this.config.cookieless_mode==_n&&((u=this.surveys)==null||u.loadIfEnabled()),(xe(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((d=e?.captureEventName)!==null&&d!==void 0?d:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.$i()}else _e.warn(uu)}opt_out_capturing(){var e,t,n;this.config.cookieless_mode!==Qr?(this.config.cookieless_mode===_n&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Ki(),this.config.cookieless_mode===_n&&(this.register({distinct_id:Cs,$device_id:null}),(e=this.sessionManager)==null||e.destroy(),(t=this.pageViewManager)==null||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(n=this.sessionRecording)==null||n.stopRecording(),this.sessionRecording=void 0,this.$i())):_e.warn(uu)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Qr||(this.config.cookieless_mode===_n?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Ki()}_is_bot(){return Lr?rf(Lr,this.config.custom_blocked_useragents):void 0}$i(){me&&(me.visibilityState==="visible"?this.xi||(this.xi=!0,this.capture(vi,{title:me.title},{send_instantly:!0}),this.Ti&&(me.removeEventListener(no,this.Ti),this.Ti=null)):this.Ti||(this.Ti=this.$i.bind(this),Nt(me,no,this.Ti)))}debug(e){e===!1?(K?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(K?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Tr(){var e,t,n,i,s,o,l=this.Ni||{};return"advanced_disable_flags"in l?!!l.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(_e.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(n="advanced_disable_decide",i=_e,s=(t="advanced_disable_flags")in(e=l)&&!qe(e[t]),o=n in e&&!qe(e[n]),s?e[t]:!!o&&(i&&i.warn("Config field '"+n+"' is deprecated. Please use '"+t+"' instead. The old field will be removed in a future major version."),e[n]))}Ui(e){if(qe(this.config.before_send))return e;var t=Je(this.config.before_send)?this.config.before_send:[this.config.before_send],n=e;for(var i of t){if(n=i(n),qe(n)){var s="Event '"+e.event+"' was rejected in beforeSend function";return b_(e.event)?_e.warn(s+". This can cause unexpected behavior."):_e.info(s),null}n.properties&&!mi(n.properties)||_e.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var e;return(e=this.pageViewManager.lr)==null?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,n){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(n)})}Ri(e){var t=bn(e)&&!e,n=yt.Yt()&&yt.Wt("ph_debug")==="true";return!t&&(!!n||e)}}function vu(r){return r instanceof Element&&(r.id===Dh||!(r.closest==null||!r.closest(".toolbar-global-fade-container")))}function Mo(r){return!!r&&r.nodeType===1}function Ln(r,e){return!!r&&!!r.tagName&&r.tagName.toLowerCase()===e.toLowerCase()}function lf(r){return!!r&&r.nodeType===3}function cf(r){return!!r&&r.nodeType===11}function lc(r){return r?Co(r).split(/\s+/):[]}function gu(r){var e=K?.location.href;return!!(e&&r&&r.some((t=>e.match(t))))}function vo(r){var e="";switch(typeof r.className){case"string":e=r.className;break;case"object":e=(r.className&&"baseVal"in r.className?r.className.baseVal:null)||r.getAttribute("class")||"";break;default:e=""}return lc(e)}function uf(r){return qe(r)?null:Co(r).split(/(\s+)/).filter((e=>ds(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function ms(r){var e="";return il(r)&&!hf(r)&&r.childNodes&&r.childNodes.length&&dt(r.childNodes,(function(t){var n;lf(t)&&t.textContent&&(e+=(n=uf(t.textContent))!==null&&n!==void 0?n:"")})),Co(e)}function pu(r){return xe(r.target)?r.srcElement||null:(e=r.target)!=null&&e.shadowRoot?r.composedPath()[0]||null:r.target||null;var e}un.__defaultExtensionClasses={},(function(r,e){for(var t=0;e.length>t;t++)r.prototype[e[t]]=t1(r.prototype[e[t]])})(un,["identify"]);var cc=["a","button","form","input","select","textarea","label"];function mu(r,e){if(xe(e))return!0;var t,n=function(s){if(e.some((o=>s.matches(o))))return{v:!0}};for(var i of r)if(t=n(i))return t.v;return!1}function df(r){var e=r.parentNode;return!(!e||!Mo(e))&&e}var U1=["next","previous","prev",">","<"],_u=[".ph-no-rageclick",".ph-no-capture"],nl=r=>!r||Ln(r,"html")||!Mo(r),yu=(r,e)=>{if(!K||nl(r))return{parentIsUsefulElement:!1,targetElementList:[]};for(var t=!1,n=[r],i=r;i.parentNode&&!Ln(i,"body");)if(cf(i.parentNode))n.push(i.parentNode.host),i=i.parentNode.host;else{var s=df(i);if(!s)break;if(e||cc.indexOf(s.tagName.toLowerCase())>-1)t=!0;else{var o=K.getComputedStyle(s);o&&o.getPropertyValue("cursor")==="pointer"&&(t=!0)}n.push(s),i=s}return{parentIsUsefulElement:t,targetElementList:n}};function il(r){for(var e=r;e.parentNode&&!Ln(e,"body");e=e.parentNode){var t=vo(e);if(Be(t,"ph-sensitive")||Be(t,"ph-no-capture"))return!1}if(Be(vo(r),"ph-include"))return!0;var n=r.type||"";if(Lt(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var i=r.name||r.id||"";return!Lt(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function hf(r){return!!(Ln(r,"input")&&!["button","checkbox","submit","reset"].includes(r.type)||Ln(r,"select")||Ln(r,"textarea")||r.getAttribute("contenteditable")==="true")}var ff="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",B1=new RegExp("^(?:"+ff+")$"),V1=new RegExp(ff),vf="\\d{3}-?\\d{2}-?\\d{4}",W1=new RegExp("^("+vf+")$"),q1=new RegExp("("+vf+")");function ds(r,e){return e===void 0&&(e=!0),!(qe(r)||Lt(r)&&(r=Co(r),(e?B1:V1).test((r||"").replace(/[- ]/g,""))||(e?W1:q1).test(r)))}function bu(r){var e=ms(r);return ds(e=(e+" "+gf(r)).trim())?e:""}function gf(r){var e="";return r&&r.childNodes&&r.childNodes.length&&dt(r.childNodes,(function(t){var n;if(t&&((n=t.tagName)==null?void 0:n.toLowerCase())==="span")try{var i=ms(t);e=(e+" "+i).trim(),t.childNodes&&t.childNodes.length&&(e=(e+" "+gf(t)).trim())}catch(s){_e.error("[AutoCapture]",s)}})),e}function xu(r){return r.replace(/"|\\"/g,'\\"')}function G1(r){var e=r.attr__class;return e?Je(e)?e:lc(e):void 0}class wu{constructor(e){this.disabled=e===!1;var t=Vt(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,n){if(this.disabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(e-i.x)+Math.abs(t-i.y)<this.thresholdPx&&this.timeoutMs>n-i.timestamp){if(this.clicks.push({x:e,y:t,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}var la="$copy_autocapture",Su=xt("[AutoCapture]");function ca(r,e){return e.length>r?e.slice(0,r)+"...":e}function K1(r){if(r.previousElementSibling)return r.previousElementSibling;var e=r;do e=e.previousSibling;while(e&&!Mo(e));return e}function $1(r,e){for(var t,n,{e:i,maskAllElementAttributes:s,maskAllText:o,elementAttributeIgnoreList:l,elementsChainAsString:c}=e,u=[r],d=r;d.parentNode&&!Ln(d,"body");)cf(d.parentNode)?(u.push(d.parentNode.host),d=d.parentNode.host):(u.push(d.parentNode),d=d.parentNode);var p,h,g=[],m={},v=!1,y=!1;if(dt(u,(T=>{var R=il(T);T.tagName.toLowerCase()==="a"&&(v=T.getAttribute("href"),v=R&&v&&ds(v)&&v),Be(vo(T),"ph-no-capture")&&(y=!0),g.push((function(S,A,I,M){var L=S.tagName.toLowerCase(),W={tag_name:L};cc.indexOf(L)>-1&&!I&&(W.$el_text=L.toLowerCase()==="a"||L.toLowerCase()==="button"?ca(1024,bu(S)):ca(1024,ms(S)));var j=vo(S);j.length>0&&(W.classes=j.filter((function(Q){return Q!==""}))),dt(S.attributes,(function(Q){var ce;if((!hf(S)||["name","id","class","aria-label"].indexOf(Q.name)!==-1)&&(M==null||!M.includes(Q.name))&&!A&&ds(Q.value)&&(!Lt(ce=Q.name)||ce.substring(0,10)!=="_ngcontent"&&ce.substring(0,7)!=="_nghost")){var he=Q.value;Q.name==="class"&&(he=lc(he).join(" ")),W["attr__"+Q.name]=ca(1024,he)}}));for(var Y=1,le=1,se=S;se=K1(se);)Y++,se.tagName===S.tagName&&le++;return W.nth_child=Y,W.nth_of_type=le,W})(T,s,o,l));var C=(function(S){if(!il(S))return{};var A={};return dt(S.attributes,(function(I){if(I.name&&I.name.indexOf("data-ph-capture-attribute")===0){var M=I.name.replace("data-ph-capture-attribute-",""),L=I.value;M&&L&&ds(L)&&(A[M]=L)}})),A})(T);At(m,C)})),y)return{props:{},explicitNoCapture:y};if(o||(g[0].$el_text=r.tagName.toLowerCase()==="a"||r.tagName.toLowerCase()==="button"?bu(r):ms(r)),v){var b,P;g[0].attr__href=v;var w=(b=oo(v))==null?void 0:b.host,x=K==null||(P=K.location)==null?void 0:P.host;w&&x&&w!==x&&(p=v)}return{props:At({$event_type:i.type,$ce_version:1},c?{}:{$elements:g},{$elements_chain:(h=g,(function(T){return T.map((R=>{var C,S,A="";if(R.tag_name&&(A+=R.tag_name),R.attr_class)for(var I of(R.attr_class.sort(),R.attr_class))A+="."+I.replace(/"/g,"");var M=pe({},R.text?{text:R.text}:{},{"nth-child":(C=R.nth_child)!==null&&C!==void 0?C:0,"nth-of-type":(S=R.nth_of_type)!==null&&S!==void 0?S:0},R.href?{href:R.href}:{},R.attr_id?{attr_id:R.attr_id}:{},R.attributes),L={};return Hs(M).sort(((W,j)=>{var[Y]=W,[le]=j;return Y.localeCompare(le)})).forEach((W=>{var[j,Y]=W;return L[xu(j.toString())]=xu(Y.toString())})),(A+=":")+Hs(L).map((W=>{var[j,Y]=W;return j+'="'+Y+'"'})).join("")})).join(";")})((function(T){return T.map((R=>{var C,S,A={text:(C=R.$el_text)==null?void 0:C.slice(0,400),tag_name:R.tag_name,href:(S=R.attr__href)==null?void 0:S.slice(0,2048),attr_class:G1(R),attr_id:R.attr__id,nth_child:R.nth_child,nth_of_type:R.nth_of_type,attributes:{}};return Hs(R).filter((I=>{var[M]=I;return M.indexOf("attr__")===0})).forEach((I=>{var[M,L]=I;return A.attributes[M]=L})),A}))})(h)))},(t=g[0])!=null&&t.$el_text?{$el_text:(n=g[0])==null?void 0:n.$el_text}:{},p&&i.type==="click"?{$external_click_url:p}:{},m)}}var Vi=xt("[ExceptionAutocapture]");function Pu(r,e,t){try{if(!(e in r))return()=>{};var n=r[e],i=t(n);return yn(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),r[e]=i,()=>{r[e]=n}}catch{return()=>{}}}var Y1=xt("[TracingHeaders]"),Cn=xt("[Web Vitals]"),Eu=9e5,ku="disabled",Tu="lazy_loading",Wi="awaiting_config",Ns="missing_config";xt("[SessionRecording]");var sl="[SessionRecording]",An=xt(sl),X1=xt("[Heatmaps]");function Cu(r){return Vt(r)&&"clientX"in r&&"clientY"in r&&fn(r.clientX)&&fn(r.clientY)}var Au=xt("[Product Tours]"),ua="ph_product_tours",J1=["$set_once","$set"],Mn=xt("[SiteApps]"),Mu="Error while initializing PostHog app with config id ";function di(r,e,t){if(qe(r))return!1;switch(t){case"exact":return r===e;case"contains":var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(r);case"regex":try{return new RegExp(e).test(r)}catch{return!1}default:return!1}}class Z1{constructor(e){this.Qi=new ac,this.tn=(t,n)=>this.en(t,n)&&this.rn(t,n)&&this.nn(t,n)&&this.sn(t,n),this.en=(t,n)=>n==null||!n.event||t?.event===n?.event,this._instance=e,this.an=new Set,this.ln=new Set}init(){var e,t;xe((e=this._instance)==null?void 0:e._addCaptureHook)||(t=this._instance)==null||t._addCaptureHook(((n,i)=>{this.on(n,i)}))}register(e){var t,n;if(!xe((t=this._instance)==null?void 0:t._addCaptureHook)&&(e.forEach((o=>{var l,c;(l=this.ln)==null||l.add(o),(c=o.steps)==null||c.forEach((u=>{var d;(d=this.an)==null||d.add(u?.event||"")}))})),(n=this._instance)!=null&&n.autocapture)){var i,s=new Set;e.forEach((o=>{var l;(l=o.steps)==null||l.forEach((c=>{c!=null&&c.selector&&s.add(c?.selector)}))})),(i=this._instance)==null||i.autocapture.setElementSelectors(s)}}on(e,t){var n;t!=null&&e.length!=0&&(this.an.has(e)||this.an.has(t?.event))&&this.ln&&((n=this.ln)==null?void 0:n.size)>0&&this.ln.forEach((i=>{this.un(t,i)&&this.Qi.emit("actionCaptured",i.name)}))}hn(e){this.onAction("actionCaptured",(t=>e(t)))}un(e,t){if(t?.steps==null)return!1;for(var n of t.steps)if(this.tn(e,n))return!0;return!1}onAction(e,t){return this.Qi.on(e,t)}rn(e,t){if(t!=null&&t.url){var n,i=e==null||(n=e.properties)==null?void 0:n.$current_url;if(!i||typeof i!="string"||!di(i,t.url,t.url_matching||"contains"))return!1}return!0}nn(e,t){return!!this.cn(e,t)&&!!this.dn(e,t)&&!!this.vn(e,t)}cn(e,t){var n;if(t==null||!t.href)return!0;var i=this.fn(e);if(i.length>0)return i.some((l=>di(l.href,t.href,t.href_matching||"exact")));var s,o=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||"";return!!o&&di((s=o.match(/(?::|")href="(.*?)"/))?s[1]:"",t.href,t.href_matching||"exact")}dn(e,t){var n;if(t==null||!t.text)return!0;var i=this.fn(e);if(i.length>0)return i.some((u=>di(u.text,t.text,t.text_matching||"exact")||di(u.$el_text,t.text,t.text_matching||"exact")));var s,o,l,c=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||"";return!!c&&(s=(function(u){for(var d,p=[],h=/(?::|")text="(.*?)"/g;!qe(d=h.exec(u));)p.includes(d[1])||p.push(d[1]);return p})(c),o=t.text,l=t.text_matching||"exact",s.some((u=>di(u,o,l))))}vn(e,t){var n,i;if(t==null||!t.selector)return!0;var s=e==null||(n=e.properties)==null?void 0:n.$element_selectors;if(s!=null&&s.includes(t.selector))return!0;var o=(e==null||(i=e.properties)==null?void 0:i.$elements_chain)||"";if(t.selector_regex&&o)try{return new RegExp(t.selector_regex).test(o)}catch{return!1}return!1}fn(e){var t;return(e==null||(t=e.properties)==null?void 0:t.$elements)==null?[]:e?.properties.$elements}sn(e,t){return t==null||!t.properties||t.properties.length===0||sf(t.properties.reduce(((n,i)=>{var s=Je(i.value)?i.value.map(String):i.value!=null?[String(i.value)]:[];return n[i.key]={values:s,operator:i.operator||"exact"},n}),{}),e?.properties)}}class Q1{constructor(e){this._instance=e,this.pn=new Map,this.gn=new Map,this.mn=new Map}yn(e,t){return!!e&&sf(e.propertyFilters,t?.properties)}bn(e,t){var n=new Map;return e.forEach((i=>{var s;(s=i.conditions)==null||(s=s[t])==null||(s=s.values)==null||s.forEach((o=>{if(o!=null&&o.name){var l=n.get(o.name)||[];l.push(i.id),n.set(o.name,l)}}))})),n}wn(e,t,n){var i=(n===zi.Activation?this.pn:this.gn).get(e),s=[];return this._n((o=>{s=o.filter((l=>i?.includes(l.id)))})),s.filter((o=>{var l,c=(l=o.conditions)==null||(l=l[n])==null||(l=l.values)==null?void 0:l.find((u=>u.name===e));return this.yn(c,t)}))}register(e){var t;xe((t=this._instance)==null?void 0:t._addCaptureHook)||(this.In(e),this.Cn(e))}Cn(e){var t=e.filter((n=>{var i,s;return((i=n.conditions)==null?void 0:i.actions)&&((s=n.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0}));t.length!==0&&(this.Sn==null&&(this.Sn=new Z1(this._instance),this.Sn.init(),this.Sn.hn((n=>{this.onAction(n)}))),t.forEach((n=>{var i,s,o,l,c;n.conditions&&(i=n.conditions)!=null&&i.actions&&(s=n.conditions)!=null&&(s=s.actions)!=null&&s.values&&((o=n.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((l=this.Sn)==null||l.register(n.conditions.actions.values),(c=n.conditions)==null||(c=c.actions)==null||(c=c.values)==null||c.forEach((u=>{if(u&&u.name){var d=this.mn.get(u.name);d&&d.push(n.id),this.mn.set(u.name,d||[n.id])}})))})))}In(e){var t,n=e.filter((s=>{var o,l;return((o=s.conditions)==null?void 0:o.events)&&((l=s.conditions)==null||(l=l.events)==null||(l=l.values)==null?void 0:l.length)>0})),i=e.filter((s=>{var o,l;return((o=s.conditions)==null?void 0:o.cancelEvents)&&((l=s.conditions)==null||(l=l.cancelEvents)==null||(l=l.values)==null?void 0:l.length)>0}));n.length===0&&i.length===0||((t=this._instance)==null||t._addCaptureHook(((s,o)=>{this.onEvent(s,o)})),this.pn=this.bn(e,zi.Activation),this.gn=this.bn(e,zi.Cancellation))}onEvent(e,t){var n,i=this.re(),s=this.kn(),o=this.xn(),l=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[s])||[];if(o===e&&t&&l.length>0){var c,u;i.info("event matched, removing item from activated items",{event:e,eventPayload:t,existingActivatedItems:l});var d=(t==null||(c=t.properties)==null?void 0:c.$survey_id)||(t==null||(u=t.properties)==null?void 0:u.$product_tour_id);if(d){var p=l.indexOf(d);0>p||(l.splice(p,1),this.Tn(l))}}else{if(this.gn.has(e)){var h=this.wn(e,t,zi.Cancellation);h.length>0&&(i.info("cancel event matched, cancelling items",{event:e,itemsToCancel:h.map((m=>m.id))}),h.forEach((m=>{var v=l.indexOf(m.id);0>v||l.splice(v,1),this.An(m.id)})),this.Tn(l))}if(this.pn.has(e)){i.info("event name matched",{event:e,eventPayload:t,items:this.pn.get(e)});var g=this.wn(e,t,zi.Activation);this.Tn(l.concat(g.map((m=>m.id))||[]))}}}onAction(e){var t,n=this.kn(),i=((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[n])||[];this.mn.has(e)&&this.Tn(i.concat(this.mn.get(e)||[]))}Tn(e){var t,n=this.re(),i=this.kn(),s=[...new Set(e)].filter((o=>!this.En(o)));n.info("updating activated items",{activatedItems:s}),(t=this._instance)==null||(t=t.persistence)==null||t.register({[i]:s})}getActivatedIds(){var e,t=this.kn();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[t])||[]}getEventToItemsMap(){return this.pn}Rn(){return this.Sn}}class ey extends Q1{constructor(e){super(e)}kn(){return"$surveys_activated"}xn(){return ss.SHOWN}_n(e){var t;(t=this._instance)==null||t.getSurveys(e)}An(e){var t;(t=this._instance)==null||t.cancelPendingSurvey(e)}re(){return ot}En(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var da="SDK is not enabled or survey functionality is not yet loaded",Ru="Disabled. Not loading surveys.",ty=K!=null&&K.location?lo(K.location.hash,"__posthog")||lo(location.hash,"state"):null,Iu="_postHogToolbarParams",Ou=xt("[Toolbar]"),yr=xt("[FeatureFlags]"),Yn=xt("[FeatureFlags]",{debugEnabled:!0}),ha=`" failed. Feature flags didn't load in time.`,fa="$active_feature_flags",Rn="$override_feature_flags",Nu="$feature_flag_payloads",qi="$override_feature_flag_payloads",Fu="$feature_flag_request_id",Lu=r=>{for(var e={},t=0;r.length>t;t++)e[r[t]]=!0;return e},Du=r=>{var e={};for(var[t,n]of Hs(r||{}))n&&(e[t]=n);return e},va=xt("[Error tracking]"),zu="Refusing to render web experiment since the viewer is a likely bot",ry={icontains:(r,e)=>!!K&&e.href.toLowerCase().indexOf(r.toLowerCase())>-1,not_icontains:(r,e)=>!!K&&e.href.toLowerCase().indexOf(r.toLowerCase())===-1,regex:(r,e)=>!!K&&fo(e.href,r),not_regex:(r,e)=>!!K&&!fo(e.href,r),exact:(r,e)=>e.href===r,is_not:(r,e)=>e.href!==r};class fr{get Rt(){return this._instance.config}constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(n){n===void 0&&(n=!1),t.getWebExperiments((i=>{fr.Nn("retrieved web experiments from the server"),t.Mn=new Map,i.forEach((s=>{if(s.feature_flag_key){var o;t.Mn&&(fr.Nn("setting flag key ",s.feature_flag_key," to web experiment ",s),(o=t.Mn)==null||o.set(s.feature_flag_key,s));var l=t._instance.getFeatureFlag(s.feature_flag_key);Lt(l)&&s.variants[l]&&t.Fn(s.name,l,s.variants[l].transforms)}else if(s.variants)for(var c in s.variants){var u=s.variants[c];fr.On(u)&&t.Fn(s.name,c,u.transforms)}}))}),n)},this._instance=e,this._instance.onFeatureFlags((n=>{this.onFeatureFlags(n)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())fr.Nn(zu);else if(!this.Rt.disable_web_experiments){if(qe(this.Mn))return this.Mn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();fr.Nn("applying feature flags",e),e.forEach((t=>{var n;if(this.Mn&&(n=this.Mn)!=null&&n.has(t)){var i,s=this._instance.getFeatureFlag(t),o=(i=this.Mn)==null?void 0:i.get(t);s&&o!=null&&o.variants[s]&&this.Fn(o.name,s,o.variants[s].transforms)}}))}}previewWebExperiment(){var e=fr.getWindowLocation();if(e!=null&&e.search){var t=ao(e?.search,"__experiment_id"),n=ao(e?.search,"__experiment_variant");t&&n&&(fr.Nn("previewing web experiments "+t+" && "+n),this.getWebExperiments((i=>{this.Pn(parseInt(t),n,i)}),!1,!0))}}loadIfEnabled(){this.Rt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,n){if(this.Rt.disable_web_experiments&&!n)return e([]);var i=this._instance.get_property("$web_experiments");if(i&&!t)return e(i);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Rt.token),method:"GET",callback:s=>e(s.statusCode===200&&s.json&&s.json.experiments||[])})}Pn(e,t,n){var i=n.filter((s=>s.id===e));i&&i.length>0&&(fr.Nn("Previewing web experiment ["+i[0].name+"] with variant ["+t+"]"),this.Fn(i[0].name,t,i[0].variants[t].transforms))}static On(e){return!qe(e.conditions)&&fr.Ln(e)&&fr.Dn(e)}static Ln(e){var t;if(qe(e.conditions)||qe((t=e.conditions)==null?void 0:t.url))return!0;var n,i,s,o=fr.getWindowLocation();return!!o&&((n=e.conditions)==null||!n.url||ry[(i=(s=e.conditions)==null?void 0:s.urlMatchType)!==null&&i!==void 0?i:"icontains"](e.conditions.url,o))}static getWindowLocation(){return K?.location}static Dn(e){var t;if(qe(e.conditions)||qe((t=e.conditions)==null?void 0:t.utm))return!0;var n=Bh();if(n.utm_source){var i,s,o,l,c,u,d,p,h=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_campaign||((s=e.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==n.utm_campaign,g=(o=e.conditions)==null||(o=o.utm)==null||!o.utm_source||((l=e.conditions)==null||(l=l.utm)==null?void 0:l.utm_source)==n.utm_source,m=(c=e.conditions)==null||(c=c.utm)==null||!c.utm_medium||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==n.utm_medium,v=(d=e.conditions)==null||(d=d.utm)==null||!d.utm_term||((p=e.conditions)==null||(p=p.utm)==null?void 0:p.utm_term)==n.utm_term;return h&&m&&v&&g}return!1}static Nn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];_e.info("[WebExperiments] "+e,n)}Fn(e,t,n){this._is_bot()?fr.Nn(zu):t!=="control"?n.forEach((i=>{if(i.selector){var s;fr.Nn("applying transform of variant "+t+" for experiment "+e+" ",i);var o=(s=document)==null?void 0:s.querySelectorAll(i.selector);o?.forEach((l=>{var c=l;i.html&&(c.innerHTML=i.html),i.css&&c.setAttribute("style",i.css)}))}})):fr.Nn("Control variants leave the page unmodified.")}_is_bot(){return Lr&&this._instance?rf(Lr,this.Rt.custom_blocked_useragents):void 0}}var Hr=xt("[Conversations]"),Xn="Conversations not available yet.",Ro={featureFlags:class{constructor(r){this.Bn=!1,this.jn=!1,this.qn=!1,this.Zn=!1,this.$n=!1,this.Hn=!1,this.Vn=!1,this.zn=!1,this._instance=r,this.featureFlagEventHandlers=[]}get Rt(){return this._instance.config}get Kr(){return this._instance.persistence}Yn(r){return this._instance.get_property(r)}Un(){var r,e;return(r=(e=this.Kr)==null?void 0:e.mr(this.Rt.feature_flag_cache_ttl_ms))!==null&&r!==void 0&&r}Wn(){return!!this.Un()&&(this.zn||this.qn||(this.zn=!0,yr.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}Gn(){var r,e=(r=this.Rt.evaluation_contexts)!==null&&r!==void 0?r:this.Rt.evaluation_environments;return!this.Rt.evaluation_environments||this.Rt.evaluation_contexts||this.Vn||(yr.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Vn=!0),e!=null&&e.length?e.filter((t=>{var n=t&&typeof t=="string"&&t.trim().length>0;return n||yr.error("Invalid evaluation context found:",t,"Expected non-empty string"),n})):[]}Xn(){return this.Gn().length>0}initialize(){var r,e,{config:t}=this._instance,n=(r=(e=t.bootstrap)==null?void 0:e.featureFlags)!==null&&r!==void 0?r:{};if(Object.keys(n).length){var i,s,o=(i=(s=t.bootstrap)==null?void 0:s.featureFlagPayloads)!==null&&i!==void 0?i:{},l=Object.keys(n).filter((u=>!!n[u])).reduce(((u,d)=>(u[d]=n[d]||!1,u)),{}),c=Object.keys(o).filter((u=>l[u])).reduce(((u,d)=>(o[d]&&(u[d]=o[d]),u)),{});this.receivedFeatureFlags({featureFlags:l,featureFlagPayloads:c})}}updateFlags(r,e,t){var n=t!=null&&t.merge?this.getFlagVariants():{},i=t!=null&&t.merge?this.getFlagPayloads():{},s=pe({},n,r),o=pe({},i,e),l={};for(var[c,u]of Object.entries(s)){var d=typeof u=="string";l[c]={key:c,enabled:!!d||!!u,variant:d?u:void 0,reason:void 0,metadata:xe(o?.[c])?void 0:{id:0,version:void 0,description:void 0,payload:o[c]}}}this.receivedFeatureFlags({flags:l})}get hasLoadedFlags(){return this.jn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var r=this.Yn(Ha),e=this.Yn(Rn),t=this.Yn(qi);if(!t&&!e)return r||{};var n=At({},r||{}),i=[...new Set([...Object.keys(t||{}),...Object.keys(e||{})])];for(var s of i){var o,l,c=n[s],u=e?.[s],d=xe(u)?(o=c?.enabled)!==null&&o!==void 0&&o:!!u,p=xe(u)?c.variant:typeof u=="string"?u:void 0,h=t?.[s],g=pe({},c,{enabled:d,variant:d?p??c?.variant:void 0});d!==c?.enabled&&(g.original_enabled=c?.enabled),p!==c?.variant&&(g.original_variant=c?.variant),h&&(g.metadata=pe({},c?.metadata,{payload:h,original_payload:c==null||(l=c.metadata)==null?void 0:l.payload})),n[s]=g}return this.Bn||(yr.warn(" Overriding feature flag details!",{flagDetails:r,overriddenPayloads:t,finalDetails:n}),this.Bn=!0),n}getFlagVariants(){var r=this.Yn(_i),e=this.Yn(Rn);if(!e)return r||{};for(var t=At({},r),n=Object.keys(e),i=0;n.length>i;i++)t[n[i]]=e[n[i]];return this.Bn||(yr.warn(" Overriding feature flags!",{enabledFlags:r,overriddenFlags:e,finalFlags:t}),this.Bn=!0),t}getFlagPayloads(){var r=this.Yn(Nu),e=this.Yn(qi);if(!e)return r||{};for(var t=At({},r||{}),n=Object.keys(e),i=0;n.length>i;i++)t[n[i]]=e[n[i]];return this.Bn||(yr.warn(" Overriding feature flag payloads!",{flagPayloads:r,overriddenPayloads:e,finalPayloads:t}),this.Bn=!0),t}reloadFeatureFlags(){this.Zn||this.Rt.advanced_disable_feature_flags||this.Jn||(this._instance.ki.emit("featureFlagsReloading",!0),this.Jn=setTimeout((()=>{this.Kn()}),5))}Qn(){clearTimeout(this.Jn),this.Jn=void 0}ensureFlagsLoaded(){this.jn||this.qn||this.Jn||this.reloadFeatureFlags()}setAnonymousDistinctId(r){this.$anon_distinct_id=r}setReloadingPaused(r){this.Zn=r}Kn(r){var e;if(this.Qn(),!this._instance.Tr())if(this.qn)this.$n=!0;else{var t=this.Rt.token,n=this.Yn(Zs),i={token:t,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:pe({},((e=this.Kr)==null?void 0:e.get_initial_props())||{},this.Yn(is)||{}),group_properties:this.Yn(Zn),timezone:$h()};zn(n)||xe(n)||(i.$device_id=n),(r!=null&&r.disableFlags||this.Rt.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.Xn()&&(i.evaluation_contexts=this.Gn());var s=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Rt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.qn=!0,this._instance._send_request({method:"POST",url:s,data:i,compression:this.Rt.disable_compression?void 0:ln.Base64,timeout:this.Rt.feature_flag_request_timeout_ms,callback:o=>{var l,c,u,d=!0;if(o.statusCode===200&&(this.$n||(this.$anon_distinct_id=void 0),d=!1),this.qn=!1,!i.disable_flags||this.$n){this.Hn=!d;var p=[];o.error?o.error instanceof Error?p.push(o.error.name==="AbortError"?"timeout":"connection_error"):p.push("unknown_error"):o.statusCode!==200&&p.push("api_error_"+o.statusCode),(l=o.json)!=null&&l.errorsWhileComputingFlags&&p.push("errors_while_computing_flags");var h,g=!((c=o.json)==null||(c=c.quotaLimited)==null||!c.includes("feature_flags"));g&&p.push("quota_limited"),(u=this.Kr)==null||u.register({[Va]:p}),g?yr.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(i.disable_flags||this.receivedFeatureFlags((h=o.json)!==null&&h!==void 0?h:{},d),this.$n&&(this.$n=!1,this.Kn()))}}})}}getFeatureFlag(r,e){var t;if(e===void 0&&(e={}),!e.fresh||this.Hn)if(this.jn||this.getFlags()&&this.getFlags().length>0){if(!this.Wn()){var n=this.getFeatureFlagResult(r,e);return(t=n?.variant)!==null&&t!==void 0?t:n?.enabled}}else yr.warn('getFeatureFlag for key "'+r+ha)}getFeatureFlagDetails(r){return this.getFlagsWithDetails()[r]}getFeatureFlagPayload(r){var e=this.getFeatureFlagResult(r,{send_event:!1});return e?.payload}getFeatureFlagResult(r,e){if(e===void 0&&(e={}),!e.fresh||this.Hn)if(this.jn||this.getFlags()&&this.getFlags().length>0){if(!this.Wn()){var t=this.getFlagVariants(),n=r in t,i=t[r],s=this.getFlagPayloads()[r],o=String(i),l=this.Yn(Fu)||void 0,c=this.Yn(eo)||void 0,u=this.Yn(ls)||{};if(this.Rt.advanced_feature_flags_dedup_per_session){var d,p=this._instance.get_session_id(),h=this.Yn(Ba);p&&p!==h&&(u={},(d=this.Kr)==null||d.register({[ls]:u,[Ba]:p}))}if((e.send_event||!("send_event"in e))&&(!(r in u)||!u[r].includes(o))){var g,m,v,y,b,P,w,x,T,R;Je(u[r])?u[r].push(o):u[r]=[o],(g=this.Kr)==null||g.register({[ls]:u});var C=this.getFeatureFlagDetails(r),S=[...(m=this.Yn(Va))!==null&&m!==void 0?m:[]];xe(i)&&S.push("flag_missing");var A={$feature_flag:r,$feature_flag_response:i,$feature_flag_payload:s||null,$feature_flag_request_id:l,$feature_flag_evaluated_at:c,$feature_flag_bootstrapped_response:((v=this.Rt.bootstrap)==null||(v=v.featureFlags)==null?void 0:v[r])||null,$feature_flag_bootstrapped_payload:((y=this.Rt.bootstrap)==null||(y=y.featureFlagPayloads)==null?void 0:y[r])||null,$used_bootstrap_value:!this.Hn};xe(C==null||(b=C.metadata)==null?void 0:b.version)||(A.$feature_flag_version=C.metadata.version);var I,M=(P=C==null||(w=C.reason)==null?void 0:w.description)!==null&&P!==void 0?P:C==null||(x=C.reason)==null?void 0:x.code;M&&(A.$feature_flag_reason=M),C!=null&&(T=C.metadata)!=null&&T.id&&(A.$feature_flag_id=C.metadata.id),xe(C?.original_variant)&&xe(C?.original_enabled)||(A.$feature_flag_original_response=xe(C.original_variant)?C.original_enabled:C.original_variant),C!=null&&(R=C.metadata)!=null&&R.original_payload&&(A.$feature_flag_original_payload=C==null||(I=C.metadata)==null?void 0:I.original_payload),S.length&&(A.$feature_flag_error=S.join(",")),this._instance.capture("$feature_flag_called",A)}if(n){var L=s;if(!xe(s))try{L=JSON.parse(s)}catch{}return{key:r,enabled:!!i,variant:typeof i=="string"?i:void 0,payload:L}}}}else yr.warn('getFeatureFlagResult for key "'+r+ha)}getRemoteConfigPayload(r,e){var t=this.Rt.token,n={distinct_id:this._instance.get_distinct_id(),token:t};this.Xn()&&(n.evaluation_contexts=this.Gn()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:n,compression:this.Rt.disable_compression?void 0:ln.Base64,timeout:this.Rt.feature_flag_request_timeout_ms,callback(i){var s,o=(s=i.json)==null?void 0:s.featureFlagPayloads;e(o?.[r]||void 0)}})}isFeatureEnabled(r,e){if(e===void 0&&(e={}),!e.fresh||this.Hn){if(this.jn||this.getFlags()&&this.getFlags().length>0){var t=this.getFeatureFlag(r,e);return xe(t)?void 0:!!t}yr.warn('isFeatureEnabled for key "'+r+ha)}}addFeatureFlagsHandler(r){this.featureFlagEventHandlers.push(r)}removeFeatureFlagsHandler(r){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==r))}receivedFeatureFlags(r,e){if(this.Kr){this.jn=!0;var t=this.getFlagVariants(),n=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(s,o,l,c,u){l===void 0&&(l={}),c===void 0&&(c={}),u===void 0&&(u={});var d=(R=>{var C=R.flags;return C?(R.featureFlags=Object.fromEntries(Object.keys(C).map((S=>{var A;return[S,(A=C[S].variant)!==null&&A!==void 0?A:C[S].enabled]}))),R.featureFlagPayloads=Object.fromEntries(Object.keys(C).filter((S=>C[S].enabled)).filter((S=>{var A;return(A=C[S].metadata)==null?void 0:A.payload})).map((S=>{var A;return[S,(A=C[S].metadata)==null?void 0:A.payload]})))):yr.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),R})(s),p=d.flags,h=d.featureFlags,g=d.featureFlagPayloads;if(h){var m=s.requestId,v=s.evaluatedAt;if(Je(h)){yr.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var y={};if(h)for(var b=0;h.length>b;b++)y[h[b]]=!0;o&&o.register({[fa]:h,[_i]:y})}else{var P=h,w=g,x=p;if(s.errorsWhileComputingFlags)if(p){var T=new Set(Object.keys(p).filter((R=>{var C;return!((C=p[R])!=null&&C.failed)})));P=pe({},l,Object.fromEntries(Object.entries(P).filter((R=>{var[C]=R;return T.has(C)})))),w=pe({},c,Object.fromEntries(Object.entries(w||{}).filter((R=>{var[C]=R;return T.has(C)})))),x=pe({},u,Object.fromEntries(Object.entries(x||{}).filter((R=>{var[C]=R;return T.has(C)}))))}else P=pe({},l,P),w=pe({},c,w),x=pe({},u,x);o&&o.register(pe({[fa]:Object.keys(Du(P)),[_i]:P||{},[Nu]:w||{},[Ha]:x||{}},m?{[Fu]:m}:{},v?{[eo]:v}:{}))}}})(r,this.Kr,t,n,i),e||(this.zn=!1),this.ts(e)}}override(r,e){e===void 0&&(e=!1),yr.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:r,suppressWarning:e})}overrideFeatureFlags(r){if(!this._instance.__loaded||!this.Kr)return yr.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(r===!1)return this.Kr.unregister(Rn),this.Kr.unregister(qi),this.ts(),Yn.info("All overrides cleared");if(Je(r)){var e=Lu(r);return this.Kr.register({[Rn]:e}),this.ts(),Yn.info("Flag overrides set",{flags:r})}if(r&&typeof r=="object"&&("flags"in r||"payloads"in r)){var t,n=r;if(this.Bn=!!((t=n.suppressWarning)!==null&&t!==void 0&&t),"flags"in n){if(n.flags===!1)this.Kr.unregister(Rn),Yn.info("Flag overrides cleared");else if(n.flags){if(Je(n.flags)){var i=Lu(n.flags);this.Kr.register({[Rn]:i})}else this.Kr.register({[Rn]:n.flags});Yn.info("Flag overrides set",{flags:n.flags})}}return"payloads"in n&&(n.payloads===!1?(this.Kr.unregister(qi),Yn.info("Payload overrides cleared")):n.payloads&&(this.Kr.register({[qi]:n.payloads}),Yn.info("Payload overrides set",{payloads:n.payloads}))),void this.ts()}if(r&&typeof r=="object")return this.Kr.register({[Rn]:r}),this.ts(),Yn.info("Flag overrides set",{flags:r});yr.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:r})}onFeatureFlags(r){if(this.addFeatureFlagsHandler(r),this.jn){var{flags:e,flagVariants:t}=this.es();r(e,t)}return()=>this.removeFeatureFlagsHandler(r)}updateEarlyAccessFeatureEnrollment(r,e,t){var n,i=(this.Yn(ns)||[]).find((c=>c.flagKey===r)),s={["$feature_enrollment/"+r]:e},o={$feature_flag:r,$feature_enrollment:e,$set:s};i&&(o.$early_access_feature_name=i.name),t&&(o.$feature_enrollment_stage=t),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(s,!1);var l=pe({},this.getFlagVariants(),{[r]:e});(n=this.Kr)==null||n.register({[fa]:Object.keys(Du(l)),[_i]:l}),this.ts()}getEarlyAccessFeatures(r,e,t){e===void 0&&(e=!1);var n=this.Yn(ns),i=t?"&"+t.map((s=>"stage="+s)).join("&"):"";if(n&&!e)return r(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Rt.token+i),method:"GET",callback:s=>{var o,l;if(s.json){var c=s.json.earlyAccessFeatures;return(o=this.Kr)==null||o.unregister(ns),(l=this.Kr)==null||l.register({[ns]:c}),r(c)}}})}es(){var r=this.getFlags(),e=this.getFlagVariants();return{flags:r.filter((t=>e[t])),flagVariants:Object.keys(e).filter((t=>e[t])).reduce(((t,n)=>(t[n]=e[n],t)),{})}}ts(r){var{flags:e,flagVariants:t}=this.es();this.featureFlagEventHandlers.forEach((n=>n(e,t,{errorsLoading:r})))}setPersonPropertiesForFlags(r,e){e===void 0&&(e=!0);var t=this.Yn(is)||{};this._instance.register({[is]:pe({},t,r)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(is)}setGroupPropertiesForFlags(r,e){e===void 0&&(e=!0);var t=this.Yn(Zn)||{};Object.keys(t).length!==0&&Object.keys(t).forEach((n=>{t[n]=pe({},t[n],r[n]),delete r[n]})),this._instance.register({[Zn]:pe({},t,r)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(r){if(r){var e=this.Yn(Zn)||{};this._instance.register({[Zn]:pe({},e,{[r]:{}})})}else this._instance.unregister(Zn)}reset(){this.jn=!1,this.qn=!1,this.Zn=!1,this.$n=!1,this.Hn=!1,this.$anon_distinct_id=void 0,this.Qn(),this.Bn=!1}}},ny={sessionRecording:class{get Rt(){return this._instance.config}get Kr(){return this._instance.persistence}get started(){var r;return!((r=this.rs)==null||!r.isStarted)}get status(){var r,e;return this.ns===Wi||this.ns===Ns?this.ns:(r=(e=this.rs)==null?void 0:e.status)!==null&&r!==void 0?r:this.ns}constructor(r){if(this._forceAllowLocalhostNetworkCapture=!1,this.ns=ku,this.ss=void 0,this._instance=r,!this._instance.sessionManager)throw An.error("started without valid sessionManager"),new Error(sl+" started without valid sessionManager. This is a bug.");if(this.Rt.cookieless_mode===Qr)throw new Error(sl+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get os(){var r,e=!((r=this._instance.get_property(Ts))==null||!r.enabled),t=!this.Rt.disable_session_recording,n=this.Rt.disable_session_recording||this._instance.consent.isOptedOut();return K&&e&&t&&!n}startIfEnabledOrStop(r){var e;if(!this.os||(e=this.rs)==null||!e.isStarted){var t=!xe(Object.assign)&&!xe(Array.from);this.os&&t?(this.ls(r),An.info("starting")):(this.ns=ku,this.stopRecording())}}ls(r){var e,t,n;this.os&&(this.ns!==Wi&&this.ns!==Ns&&(this.ns=Tu),Me!=null&&(e=Me.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(t=Me.__PosthogExtensions__)!=null&&t.initSessionRecording?this.us(r):(n=Me.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.hs,(i=>{if(i)return An.error("could not load recorder",i);this.us(r)})))}stopRecording(){var r,e;(r=this.ss)==null||r.call(this),this.ss=void 0,(e=this.rs)==null||e.stop()}cs(){var r,e;(r=this.ss)==null||r.call(this),this.ss=void 0,(e=this.rs)==null||e.discard()}ds(){var r;(r=this.Kr)==null||r.unregister(Lh)}vs(r,e){if(qe(r))return null;var t,n=fn(r)?r:parseFloat(r);return typeof(t=n)!="number"||!Number.isFinite(t)||0>t||t>1?(An.warn(e+" must be between 0 and 1. Ignoring invalid value:",r),null):n}fs(r){if(this.Kr){var e,t,n=this.Kr,i=()=>{var s,o=r.sessionRecording===!1?void 0:r.sessionRecording,l=this.vs((s=this.Rt.session_recording)==null?void 0:s.sampleRate,"session_recording.sampleRate"),c=this.vs(o?.sampleRate,"remote config sampleRate"),u=l??c;qe(u)&&this.ds();var d=o?.minimumDurationMilliseconds;n.register({[Ts]:pe({cache_timestamp:Date.now(),enabled:!!o},o,{networkPayloadCapture:pe({capturePerformance:r.capturePerformance},o?.networkPayloadCapture),canvasRecording:{enabled:o?.recordCanvas,fps:o?.canvasFps,quality:o?.canvasQuality},sampleRate:u,minimumDurationMilliseconds:xe(d)?null:d,endpoint:o?.endpoint,triggerMatchType:o?.triggerMatchType,masking:o?.masking,urlTriggers:o?.urlTriggers})})};i(),(e=this.ss)==null||e.call(this),this.ss=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(i)}}onRemoteConfig(r){return"sessionRecording"in r?r.sessionRecording===!1?(this.fs(r),void this.cs()):(this.fs(r),void this.startIfEnabledOrStop()):(this.ns===Wi&&(this.ns=Ns,An.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(r,e){var t;e===void 0&&(e="log"),(t=this.rs)!=null&&t.log?this.rs.log(r,e):An.warn("log called before recorder was ready")}get hs(){var r,e,t=(r=this._instance)==null||(r=r.persistence)==null?void 0:r.get_property(Ts);return(t==null||(e=t.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}ps(){var r,e=this._instance.get_property(Ts);if(!e)return!1;var t=(r=(typeof e=="object"?e:JSON.parse(e)).cache_timestamp)!==null&&r!==void 0?r:Date.now();return 36e5>=Date.now()-t}us(r){var e,t;if((e=Me.__PosthogExtensions__)==null||!e.initSessionRecording)return An.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({$sdk_debug_recording_script_not_loaded:!0});if(this.rs||(this.rs=(t=Me.__PosthogExtensions__)==null?void 0:t.initSessionRecording(this._instance),this.rs._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.ps())return this.ns===Ns||this.ns===Wi?void 0:(this.ns=Wi,An.info("persisted remote config is stale, requesting fresh config before starting"),void new Yh(this._instance).load());this.ns=Tu,this.rs.start(r)}onRRwebEmit(r){var e;(e=this.rs)==null||e.onRRwebEmit==null||e.onRRwebEmit(r)}overrideLinkedFlag(){var r,e;this.rs||(e=this.Kr)==null||e.register({$replay_override_linked_flag:!0}),(r=this.rs)==null||r.overrideLinkedFlag()}overrideSampling(){var r,e;this.rs||(e=this.Kr)==null||e.register({$replay_override_sampling:!0}),(r=this.rs)==null||r.overrideSampling()}overrideTrigger(r){var e,t;this.rs||(t=this.Kr)==null||t.register({[r==="url"?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}),(e=this.rs)==null||e.overrideTrigger(r)}get sdkDebugProperties(){var r;return((r=this.rs)==null?void 0:r.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(r,e){var t;return!((t=this.rs)==null||!t.tryAddCustomEvent(r,e))}}},iy={autocapture:class{constructor(r){this.gs=!1,this.ys=null,this.bs=!1,this.instance=r,this.rageclicks=new wu(r.config.rageclick),this.ws=null}initialize(){this.startIfEnabled()}get Rt(){var r,e,t=Vt(this.instance.config.autocapture)?this.instance.config.autocapture:{};return t.url_allowlist=(r=t.url_allowlist)==null?void 0:r.map((n=>new RegExp(n))),t.url_ignorelist=(e=t.url_ignorelist)==null?void 0:e.map((n=>new RegExp(n))),t}_s(){if(this.isBrowserSupported()){if(K&&me){var r=t=>{t=t||K?.event;try{this.Is(t)}catch(n){Su.error("Failed to capture event",n)}};if(Nt(me,"submit",r,{capture:!0}),Nt(me,"change",r,{capture:!0}),Nt(me,"click",r,{capture:!0}),this.Rt.capture_copied_text){var e=t=>{this.Is(t=t||K?.event,la)};Nt(me,"copy",e,{capture:!0}),Nt(me,"cut",e,{capture:!0})}}}else Su.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.gs&&(this._s(),this.gs=!0)}onRemoteConfig(r){r.elementsChainAsString&&(this.bs=r.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Uc]:!!r.autocapture_opt_out}),this.ys=!!r.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(r){this.ws=r}getElementSelectors(r){var e,t=[];return(e=this.ws)==null||e.forEach((n=>{var i=me?.querySelectorAll(n);i?.forEach((s=>{r===s&&t.push(n)}))})),t}get isEnabled(){var r,e,t=(r=this.instance.persistence)==null?void 0:r.props[Uc];if(zn(this.ys)&&!bn(t)&&!this.instance.Tr())return!1;var n=(e=this.ys)!==null&&e!==void 0?e:!!t;return!!this.instance.config.autocapture&&!n}Is(r,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var t,n=pu(r);lf(n)&&(n=n.parentNode||null),e==="$autocapture"&&r.type==="click"&&r instanceof MouseEvent&&this.instance.config.rageclick&&(t=this.rageclicks)!=null&&t.isRageClick(r.clientX,r.clientY,r.timeStamp||new Date().getTime())&&(function(p,h){if(!K||nl(p))return!1;var g,m,v;if(bn(h)?(g=!!h&&_u,m=void 0):(g=(v=h?.css_selector_ignorelist)!==null&&v!==void 0?v:_u,m=h?.content_ignorelist),g===!1)return!1;var{targetElementList:y}=yu(p,!1);return!(function(b,P){if(b===!1||xe(b))return!1;var w;if(b===!0)w=U1;else{if(!Je(b))return!1;if(b.length>10)return _e.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;w=b.map((x=>x.toLowerCase()))}return P.some((x=>{var{safeText:T,ariaLabel:R}=x;return w.some((C=>T.includes(C)||R.includes(C)))}))})(m,y.map((b=>{var P;return{safeText:ms(b).toLowerCase(),ariaLabel:((P=b.getAttribute("aria-label"))==null?void 0:P.toLowerCase().trim())||""}})))&&!mu(y,g)})(n,this.instance.config.rageclick)&&this.Is(r,"$rageclick");var i=e===la;if(n&&(function(p,h,g,m,v){var y,b,P,w;if(g===void 0&&(g=void 0),!K||nl(p)||(y=g)!=null&&y.url_allowlist&&!gu(g.url_allowlist)||(b=g)!=null&&b.url_ignorelist&&gu(g.url_ignorelist))return!1;if((P=g)!=null&&P.dom_event_allowlist){var x=g.dom_event_allowlist;if(x&&!x.some((A=>h.type===A)))return!1}var{parentIsUsefulElement:T,targetElementList:R}=yu(p,m);if(!(function(A,I){var M=I?.element_allowlist;if(xe(M))return!0;var L,W=function(Y){if(M.some((le=>Y.tagName.toLowerCase()===le)))return{v:!0}};for(var j of A)if(L=W(j))return L.v;return!1})(R,g)||!mu(R,(w=g)==null?void 0:w.css_selector_allowlist))return!1;var C=K.getComputedStyle(p);if(C&&C.getPropertyValue("cursor")==="pointer"&&h.type==="click")return!0;var S=p.tagName.toLowerCase();switch(S){case"html":return!1;case"form":return(v||["submit"]).indexOf(h.type)>=0;case"input":case"select":case"textarea":return(v||["change","click"]).indexOf(h.type)>=0;default:return T?(v||["click"]).indexOf(h.type)>=0:(v||["click"]).indexOf(h.type)>=0&&(cc.indexOf(S)>-1||p.getAttribute("contenteditable")==="true")}})(n,r,this.Rt,i,i?["copy","cut"]:void 0)){var{props:s,explicitNoCapture:o}=$1(n,{e:r,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Rt.element_attribute_ignorelist,elementsChainAsString:this.bs});if(o)return!1;var l=this.getElementSelectors(n);if(l&&l.length>0&&(s.$element_selectors=l),e===la){var c,u=uf(K==null||(c=K.getSelection())==null?void 0:c.toString()),d=r.type||"clipboard";if(!u)return!1;s.$selected_content=u,s.$copy_type=d}return this.instance.capture(e,s),!0}}}isBrowserSupported(){return yn(me?.querySelectorAll)}},historyAutocapture:class{constructor(r){var e;this._instance=r,this.Cs=(K==null||(e=K.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(_e.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ss&&this.Ss(),this.Ss=void 0,_e.info("History API monitoring stopped")}monitorHistoryChanges(){var r,e;if(K&&K.history){var t=this;(r=K.history.pushState)!=null&&r.__posthog_wrapped__||Pu(K.history,"pushState",(n=>function(i,s,o){n.call(this,i,s,o),t.ks("pushState")})),(e=K.history.replaceState)!=null&&e.__posthog_wrapped__||Pu(K.history,"replaceState",(n=>function(i,s,o){n.call(this,i,s,o),t.ks("replaceState")})),this.xs()}}ks(r){try{var e,t=K==null||(e=K.location)==null?void 0:e.pathname;if(!t)return;t!==this.Cs&&this.isEnabled&&this._instance.capture(vi,{navigation_type:r}),this.Cs=t}catch(n){_e.error("Error capturing "+r+" pageview",n)}}xs(){if(!this.Ss){var r=()=>{this.ks("popstate")};Nt(K,"popstate",r),this.Ss=()=>{K&&K.removeEventListener("popstate",r)}}}},heatmaps:class{get Rt(){return this.instance.config}constructor(r){var e;this.Ts=!1,this.gs=!1,this.As=null,this.instance=r,this.Ts=!((e=this.instance.persistence)==null||!e.props[za]),this.rageclicks=new wu(r.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var r=5e3;return Vt(this.Rt.capture_heatmaps)&&this.Rt.capture_heatmaps.flush_interval_milliseconds&&(r=this.Rt.capture_heatmaps.flush_interval_milliseconds),r}get isEnabled(){return qe(this.Rt.capture_heatmaps)?qe(this.Rt.enable_heatmaps)?this.Ts:this.Rt.enable_heatmaps:this.Rt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.gs)return;X1.info("starting..."),this.Es(),this.Tt()}else{var r;clearInterval((r=this.As)!==null&&r!==void 0?r:void 0),this.Rs(),this.getAndClearBuffer()}}onRemoteConfig(r){if("heatmaps"in r){var e=!!r.heatmaps;this.instance.persistence&&this.instance.persistence.register({[za]:e}),this.Ts=e,this.startIfEnabled()}}getAndClearBuffer(){var r=this.T;return this.T=void 0,r}Ns(r){this.wt(r.originalEvent,"deadclick")}Tt(){this.As&&clearInterval(this.As),this.As=me?.visibilityState==="visible"?setInterval(this.Zr.bind(this),this.flushIntervalMilliseconds):null}Es(){K&&me&&(this.Ms=this.Zr.bind(this),Nt(K,io,this.Ms),this.Fs=r=>this.wt(r||K?.event),Nt(me,"click",this.Fs,{capture:!0}),this.Os=r=>this.Ps(r||K?.event),Nt(me,"mousemove",this.Os,{capture:!0}),this.Ls=new Xc(this.instance,d1,this.Ns.bind(this)),this.Ls.startIfEnabledOrStop(),this.Ds=this.Tt.bind(this),Nt(me,no,this.Ds),this.gs=!0)}Rs(){var r;K&&me&&(this.Ms&&K.removeEventListener(io,this.Ms),this.Fs&&me.removeEventListener("click",this.Fs,{capture:!0}),this.Os&&me.removeEventListener("mousemove",this.Os,{capture:!0}),this.Ds&&me.removeEventListener(no,this.Ds),clearTimeout(this.Bs),(r=this.Ls)==null||r.stop(),this.gs=!1)}js(r,e){var t=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),s=(function(o,l,c){for(var u=o;u&&Mo(u)&&!Ln(u,"body");){if(u===c)return!1;if(Be(l,K?.getComputedStyle(u).position))return!0;u=df(u)}return!1})(pu(r),["fixed","sticky"],i);return{x:r.clientX+(s?0:n),y:r.clientY+(s?0:t),target_fixed:s,type:e}}wt(r,e){var t;if(e===void 0&&(e="click"),!vu(r.target)&&Cu(r)){var n=this.js(r,e);(t=this.rageclicks)!=null&&t.isRageClick(r.clientX,r.clientY,new Date().getTime())&&this.qs(pe({},n,{type:"rageclick"})),this.qs(n)}}Ps(r){!vu(r.target)&&Cu(r)&&(clearTimeout(this.Bs),this.Bs=setTimeout((()=>{this.qs(this.js(r,"mousemove"))}),500))}qs(r){if(K){var e=K.location.href,t=this.Rt.custom_personal_data_properties,n=this.Rt.mask_personal_data_properties?[...Ai,...t||[]]:[],i=gs(e,n,ps);this.T=this.T||{},this.T[i]||(this.T[i]=[]),this.T[i].push(r)}}Zr(){this.T&&!mi(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:Xc,webVitalsAutocapture:class{constructor(r){var e;this.Ts=!1,this.gs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Zs=()=>{clearTimeout(this.$s),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((t,n)=>pe({},t,{["$web_vitals_"+n.name+"_event"]:pe({},n),["$web_vitals_"+n.name+"_value"]:n.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.nt=t=>{var n,i=(n=this._instance.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0);if(xe(i))Cn.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var s=this.Hs();xe(s)||(qe(t?.name)||qe(t?.value)?Cn.error("Invalid metric received",t):!this.Vs||this.Vs>t.value?(this.T.url!==s&&(this.Zs(),this.$s=setTimeout(this.Zs,this.flushToCaptureTimeoutMs)),xe(this.T.url)&&(this.T.url=s),this.T.firstMetricTimestamp=xe(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,t.attribution&&t.attribution.interactionTargetElement&&(t.attribution.interactionTargetElement=void 0),this.T.metrics.push(pe({},t,{$current_url:s,$session_id:i.sessionId,$window_id:i.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.Zs()):Cn.error("Ignoring metric with value >= "+this.Vs,t))}},this.zs=()=>{if(!this.gs){var t,n,i,s,o=Me.__PosthogExtensions__;xe(o)||xe(o.postHogWebVitalsCallbacks)||({onLCP:t,onCLS:n,onFCP:i,onINP:s}=o.postHogWebVitalsCallbacks),t&&n&&i&&s?(this.allowedMetrics.indexOf("LCP")>-1&&t(this.nt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&n(this.nt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this.nt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&s(this.nt.bind(this)),this.gs=!0):Cn.error("web vitals callbacks not loaded - not starting")}},this._instance=r,this.Ts=!((e=this._instance.persistence)==null||!e.props[Wc]),this.startIfEnabled()}get Ys(){return this._instance.config.capture_performance}get allowedMetrics(){var r,e,t=Vt(this.Ys)?(r=this.Ys)==null?void 0:r.web_vitals_allowed_metrics:void 0;return qe(t)?((e=this._instance.persistence)==null?void 0:e.props[Gc])||["CLS","FCP","INP","LCP"]:t}get flushToCaptureTimeoutMs(){return(Vt(this.Ys)?this.Ys.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var r=Vt(this.Ys)?this.Ys.web_vitals_attribution:void 0;return r!=null&&r}get Vs(){var r=Vt(this.Ys)&&fn(this.Ys.__web_vitals_max_value)?this.Ys.__web_vitals_max_value:Eu;return r>0&&6e4>=r?Eu:r}get isEnabled(){var r=ir?.protocol;if(r!=="http:"&&r!=="https:")return Cn.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=Vt(this.Ys)?this.Ys.web_vitals:bn(this.Ys)?this.Ys:void 0;return bn(e)?e:this.Ts}startIfEnabled(){this.isEnabled&&!this.gs&&(Cn.info("enabled, starting..."),this.nr(this.zs))}onRemoteConfig(r){if("capturePerformance"in r){var e=Vt(r.capturePerformance)&&!!r.capturePerformance.web_vitals,t=Vt(r.capturePerformance)?r.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Wc]:e}),this._instance.persistence.register({[Gc]:t})),this.Ts=e,this.startIfEnabled()}}nr(r){var e,t;(e=Me.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?r():(t=Me.__PosthogExtensions__)==null||t.loadExternalDependency==null||t.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(n=>{n?Cn.error("failed to load script",n):r()}))}Hs(){var r=K?K.location.href:void 0;if(r){var e=this._instance.config.custom_personal_data_properties,t=this._instance.config.mask_personal_data_properties?[...Ai,...e||[]]:[];return gs(r,t,ps)}Cn.error("Could not determine current URL")}}},sy={exceptionObserver:class{constructor(r){var e,t,n;this.zs=()=>{var i;if(K&&this.isEnabled&&(i=Me.__PosthogExtensions__)!=null&&i.errorWrappingFunctions){var s=Me.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,o=Me.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,l=Me.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Us&&this.Rt.capture_unhandled_errors&&(this.Us=s(this.captureException.bind(this))),!this.Ws&&this.Rt.capture_unhandled_rejections&&(this.Ws=o(this.captureException.bind(this))),!this.Gs&&this.Rt.capture_console_errors&&(this.Gs=l(this.captureException.bind(this)))}catch(c){Vi.error("failed to start",c),this.Xs()}}},this._instance=r,this.Js=!((e=this._instance.persistence)==null||!e.props[Bc]),this.Ks=new S_({refillRate:(t=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&t!==void 0?t:1,bucketSize:(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&n!==void 0?n:10,refillInterval:1e4,qt:Vi}),this.Rt=this.Qs(),this.startIfEnabledOrStop()}Qs(){var r=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Vt(r)?e=pe({},e,r):(xe(r)?this.Js:r)&&(e=pe({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.Rt.capture_console_errors||this.Rt.capture_unhandled_errors||this.Rt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Vi.info("enabled"),this.Xs(),this.nr(this.zs)):this.Xs()}nr(r){var e,t;(e=Me.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&r(),(t=Me.__PosthogExtensions__)==null||t.loadExternalDependency==null||t.loadExternalDependency(this._instance,"exception-autocapture",(n=>{if(n)return Vi.error("failed to load script",n);r()}))}Xs(){var r,e,t;(r=this.Us)==null||r.call(this),this.Us=void 0,(e=this.Ws)==null||e.call(this),this.Ws=void 0,(t=this.Gs)==null||t.call(this),this.Gs=void 0}onRemoteConfig(r){"autocaptureExceptions"in r&&(this.Js=!!r.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[Bc]:this.Js}),this.Rt=this.Qs(),this.startIfEnabledOrStop())}onConfigChange(){this.Rt=this.Qs()}captureException(r){var e,t,n,i=(e=r==null||(t=r.$exception_list)==null||(t=t[0])==null?void 0:t.type)!==null&&e!==void 0?e:"Exception";this.Ks.consumeRateLimit(i)?Vi.info("Skipping exception capture because of client rate limiting.",{exception:i}):(n=this._instance.exceptions)==null||n.sendExceptionEvent(r)}},exceptions:class{constructor(r){var e,t;this.eo=[],this.ro=new F_([new V_,new Z_,new q_,new W_,new X_,new Y_,new K_,new J_],(function(n){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;i>o;o++)s[o-1]=arguments[o];return function(l,c){c===void 0&&(c=0);for(var u=[],d=l.split(`
1
+ import{a8 as jf,bv as Hf,bG as Uf,aK as nd,u as qs,bH as Bf,bi as Vf,aH as Z,bF as dc,ab as id,i as a,h as k,b5 as Do,aS as or,q as _,p as U,j as O,k as E,o as J,b as f,e as B,g as H,bD as Wf,v as Qt,f as V,r as z,aw as sd,x as qt,s as F,t as Ge,c as oe,n as Fe,bI as ei,B as od,b1 as po,C as qf,a$ as Gf}from"./BH1rZqH0.js";import{_ as pr,n as Qn,o as Kt,$ as Kf,l as hn,b as at,s as Pt,u as cl,W as ad,c as ri,a0 as $f,a1 as Yf,a2 as Xf,r as Jf,e as Zf,d as ul,a3 as ld,G as cd,a4 as Qf,a5 as ev,a6 as tv,a7 as rv,a8 as nv,a9 as iv,aa as ud,A as mo,H as Cr,F as _o,ab as sv,ac as ov,ad as av,ae as lv,af as cv,t as hr,ag as Jn,ah as kr,ai as zo,aj as dd,ak as hd,D as hc,al as Pa,am as uv,an as dv,ao as hv,i as fd,ap as fv,aq as vv,ar as dl,as as gv,at as pv,au as mv,av as _v,aw as vd,ax as yv,ay as bv,az as xv,C as wv,aA as Sv,aB as Pv,aC as Ev,aD as kv,aE as pi,p as gd,q as pd,aF as Tv,aG as Cv,aH as hl,aI as Av,aJ as Mv,aK as Rv}from"./BKaOgHuv.js";import{E as Iv,C as Ov,c as $t,d as Sn,b as fe,y as Dn,e as yo,i as er,m as lt,p as fl,h as Nv,F as fc,g as md}from"./P0Tv_tIw.js";import"./Ct_92ewg.js";import{o as ys,s as Se,d as en,a as Ye,r as Fv,j as wn}from"./BKx7aQex.js";import{i as te}from"./l6_YgvJu.js";import{B as Mt,L as vc,t as vl}from"./BQhvHIBL.js";import{a as Xe,b as gr,s as Re,c as ve,r as Nr,g as Jr,d as Gs}from"./DItp427M.js";import{a as _d,c as yd}from"./CfEkJfal.js";import{b as Pr,c as ue}from"./CjJOx53h.js";import{b as X,r as $,p as D,a as Ea,s as bd}from"./C8kSHBGW.js";import{c as vt}from"./BAPsSsPy.js";import{e as Et,i as Si}from"./BwzC7gXw.js";import{s as q}from"./Be-ZWJwN.js";import{G as Fn,I as ni,P as Pi,o as xd,J as gl,n as bt,K as Lv,L as Dv,N as zv,h as hi,j as Zi,O as gc,Q as wd,H as Sd,R as Pd,E as Ed,U as jv,V as Hv,W as Uv,X as Bv,g as ka,Y as Vv,p as Wv,c as kd,d as Td,Z as Ks,i as jo,_ as qv,x as Cd,m as Gv,q as Kv,D as $v,T as Yv,S as pc,b as Ad,e as pl,C as Xv}from"./Crbgd-F4.js";import{C as Ri,w as Gt,D as bo,U as Jv}from"./Cms6Kv73.js";import{o as Zv,a as Qv,C as xo,X as ml,G as Md,b as eg,M as tg,S as rg}from"./uVN-AobW.js";import{C as _l}from"./C3TDTGEk.js";import{I as de}from"./CVY1v_NI.js";import{w as ar,a as ng}from"./CsYc-nV1.js";import{L as yl,I as Rd}from"./C9sBKiYf.js";import{c as ig,b as sg,a as wo}from"./BZ5m9NAb.js";import{u as og,a as ag}from"./B0InQEem.js";import{e as Ho}from"./CXbT2p8d.js";import{a as Qi,S as lg}from"./COl-CNj7.js";import{r as Uo}from"./DmhMUf0A.js";import{p as cg}from"./BBfFsDlX.js";import{g as ug}from"./CpZPBLUC.js";import{M as Id,c as bs,P as Od,T as Nd,K as dg}from"./BWJBuCKd.js";import{p as Fd}from"./B7-B7Rye.js";import"./B73W4ug1.js";import{q as hg}from"./DTeYaQtG.js";import{h as Ld}from"./DVwuKx4e.js";import{h as Ta}from"./B0CGBs-v.js";import{a as fg,C as vg,D as gg}from"./B-qm-b0r.js";import{H as pg}from"./bsfLFPc3.js";import{C as mg}from"./D4ooP0Dt.js";import{C as _g}from"./Bqthoyql.js";import{A as yg}from"./hevTEAPk.js";import{A as bg}from"./DGHx_OMD.js";import"./CRSvvRTA.js";import{i as xg}from"./DVkCj0xi.js";const wg=[];function Fr(r,e=!1,t=!1){return zs(r,new Map,"",wg,null,t)}function zs(r,e,t,n,i=null,s=!1){if(typeof r=="object"&&r!==null){var o=e.get(r);if(o!==void 0)return o;if(r instanceof Map)return new Map(r);if(r instanceof Set)return new Set(r);if(jf(r)){var l=Array(r.length);e.set(r,l),i!==null&&e.set(i,l);for(var c=0;c<r.length;c+=1){var u=r[c];c in r&&(l[c]=zs(u,e,t,n,null,s))}return l}if(Hf(r)===Uf){l={},e.set(r,l),i!==null&&e.set(i,l);for(var d of Object.keys(r))l[d]=zs(r[d],e,t,n,null,s);return l}if(r instanceof Date)return structuredClone(r);if(typeof r.toJSON=="function"&&!s)return zs(r.toJSON(),e,t,n,r)}if(r instanceof EventTarget)return r;try{return structuredClone(r)}catch{return r}}function Sg(r,e,t){nd(()=>{var n=qs(()=>e(r,t?.())||{});if(n?.destroy)return()=>n.destroy()})}class bl{#e=new WeakMap;#t;#r;static entries=new WeakMap;constructor(e){this.#r=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#n().observe(e,this.#r),()=>{var i=this.#e.get(e);i.delete(t),i.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#n(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var t of e){bl.entries.set(t.target,t);for(var n of this.#e.get(t.target)||[])n(t)}}))}}var Pg=new bl({box:"border-box"});function Ca(r,e,t){var n=Pg.observe(r,()=>t(r[e]));nd(()=>(qs(()=>t(r[e])),n))}function mc(r,e){Bf(window,["resize"],()=>Vf(()=>e(window[r])))}function IP(...r){return r.filter(Boolean).join(" ")}const Eg=typeof document<"u";var kg=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Tg=["difference","intersection","symmetricDifference","union"],_c=!1;class Ei extends Set{#e=new Map;#t=Z(0);#r=Z(0);#n=dc||-1;constructor(e){if(super(),e){for(var t of e)super.add(t);this.#r.v=super.size}_c||this.#s()}#i(e){return dc===this.#n?Z(e):id(e)}#s(){_c=!0;var e=Ei.prototype,t=Set.prototype;for(const n of kg)e[n]=function(...i){return a(this.#t),t[n].apply(this,i)};for(const n of Tg)e[n]=function(...i){a(this.#t);var s=t[n].apply(this,i);return new Ei(s)}}has(e){var t=super.has(e),n=this.#e,i=n.get(e);if(i===void 0){if(!t)return a(this.#t),!1;i=this.#i(!0),n.set(e,i)}return a(i),t}add(e){return super.has(e)||(super.add(e),k(this.#r,super.size),Do(this.#t)),this}delete(e){var t=super.delete(e),n=this.#e,i=n.get(e);return i!==void 0&&(n.delete(e),k(i,!1)),t&&(k(this.#r,super.size),Do(this.#t)),t}clear(){if(super.size!==0){super.clear();var e=this.#e;for(var t of e.values())k(t,!1);e.clear(),k(this.#r,0),Do(this.#t)}}keys(){return this.values()}values(){return a(this.#t),super.values()}entries(){return a(this.#t),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return a(this.#r)}}let yc=0;class Cg{#e=Z(or([]));get toasts(){return a(this.#e)}set toasts(e){k(this.#e,e,!0)}#t=Z(or([]));get heights(){return a(this.#t)}set heights(e){k(this.#t,e,!0)}#r=e=>{const t=this.toasts.findIndex(n=>n.id===e);return t===-1?null:t};addToast=e=>{Eg&&this.toasts.unshift(e)};updateToast=({id:e,data:t,type:n,message:i})=>{const s=this.toasts.findIndex(l=>l.id===e),o=this.toasts[s];this.toasts[s]={...o,...t,id:e,title:i,type:n,updated:!0}};create=e=>{const{message:t,...n}=e,i=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:yc++,s=e.dismissable===void 0?!0:e.dismissable,o=e.type===void 0?"default":e.type;return qs(()=>{this.toasts.find(c=>c.id===i)?this.updateToast({id:i,data:e,type:o,message:t,dismissable:s}):this.addToast({...n,id:i,title:t,dismissable:s,type:o})}),i};dismiss=e=>(qs(()=>{if(e===void 0){this.toasts=this.toasts.map(n=>({...n,dismiss:!0}));return}const t=this.toasts.findIndex(n=>n.id===e);this.toasts[t]&&(this.toasts[t]={...this.toasts[t],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const t=this.#r(e);if(t!==null)return this.toasts.splice(t,1),e};message=(e,t)=>this.create({...t,type:"default",message:e});error=(e,t)=>this.create({...t,type:"error",message:e});success=(e,t)=>this.create({...t,type:"success",message:e});info=(e,t)=>this.create({...t,type:"info",message:e});warning=(e,t)=>this.create({...t,type:"warning",message:e});loading=(e,t)=>this.create({...t,type:"loading",message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:typeof t.loading=="string"?t.loading:t.loading()}));const i=e instanceof Promise?e:e();let s=n!==void 0;return i.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){s=!1;const l=Ag(o);this.create({id:n,type:"error",message:l})}else if(t.success!==void 0){s=!1;const l=typeof t.success=="function"?t.success(o):t.success;this.create({id:n,type:"success",message:l})}}).catch(o=>{if(t.error!==void 0){s=!1;const l=typeof t.error=="function"?t.error(o):t.error;this.create({id:n,type:"error",message:l})}}).finally(()=>{s&&(this.dismiss(n),n=void 0),t.finally?.()}),n};custom=(e,t)=>{const n=t?.id||yc++;return this.create({component:e,id:n,...t}),n};removeHeight=e=>{this.heights=this.heights.filter(t=>t.toastId!==e)};setHeight=e=>{const t=this.#r(e.toastId);if(t===null){this.heights.push(e);return}this.heights[t]=e};reset=()=>{this.toasts=[],this.heights=[]}}function Ag(r){return r&&typeof r=="object"&&"status"in r?`HTTP error! Status: ${r.status}`:`Error! ${r}`}const Ur=new Cg;function Mg(r,e){return Ur.create({message:r,...e})}class OP{#e=_(()=>Ur.toasts.filter(e=>!e.dismiss));get toasts(){return a(this.#e)}}const Rg=Mg,Ig=Object.assign(Rg,{success:Ur.success,info:Ur.info,warning:Ur.warning,error:Ur.error,custom:Ur.custom,message:Ur.message,promise:Ur.promise,dismiss:Ur.dismiss,loading:Ur.loading,getActiveToasts:()=>Ur.toasts.filter(r=>!r.dismiss)}),Oe="ease-out",Yr="ease-in",Ze="ease-in-out",Ae="linear";function G(r,e,t,n){return{time:r,property:e,value:t,easing:n}}function tt(r,e,t,n,i){return{id:r,category:e,params:t,defaults:i??{},build:n}}const xl=[tt("fade-in","enter",[],()=>[G(0,"opacity",0,Oe),G(1,"opacity",1,Ae)]),tt("fade-out","exit",[],()=>[G(0,"opacity",1,Yr),G(1,"opacity",0,Ae)]),tt("reveal-up","enter",["distance"],r=>[G(0,"opacity",0,Oe),G(0,"position.y",r.distance,Oe),G(1,"opacity",1,Ae),G(1,"position.y",0,Oe)],{distance:2}),tt("reveal-right","enter",["distance"],r=>[G(0,"opacity",0,Oe),G(0,"position.x",-r.distance,Oe),G(1,"opacity",1,Ae),G(1,"position.x",0,Oe)],{distance:2}),tt("reveal-left","enter",["distance"],r=>[G(0,"opacity",0,Oe),G(0,"position.x",r.distance,Oe),G(1,"opacity",1,Ae),G(1,"position.x",0,Oe)],{distance:2}),tt("slide-in-left","enter",["distance"],r=>[G(0,"position.x",-r.distance,Oe),G(0,"opacity",0,Oe),G(1,"position.x",0,Ae),G(1,"opacity",1,Ae)],{distance:60}),tt("slide-in-right","enter",["distance"],r=>[G(0,"position.x",r.distance,Oe),G(0,"opacity",0,Oe),G(1,"position.x",0,Ae),G(1,"opacity",1,Ae)],{distance:60}),tt("slide-in-top","enter",["distance"],r=>[G(0,"position.y",-r.distance,Oe),G(0,"opacity",0,Oe),G(1,"position.y",0,Ae),G(1,"opacity",1,Ae)],{distance:40}),tt("slide-in-bottom","enter",["distance"],r=>[G(0,"position.y",r.distance,Oe),G(0,"opacity",0,Oe),G(1,"position.y",0,Ae),G(1,"opacity",1,Ae)],{distance:40}),tt("slide-out-left","exit",["distance"],r=>[G(0,"position.x",0,Yr),G(0,"opacity",1,Yr),G(1,"position.x",-r.distance,Ae),G(1,"opacity",0,Ae)],{distance:60}),tt("slide-out-right","exit",["distance"],r=>[G(0,"position.x",0,Yr),G(0,"opacity",1,Yr),G(1,"position.x",r.distance,Ae),G(1,"opacity",0,Ae)],{distance:60}),tt("wipe-down","enter",[],()=>[G(0,"scale.y",0,Oe),G(0,"opacity",0,Oe),G(1,"scale.y",1,Ae),G(1,"opacity",1,Ae)]),tt("wipe-right","enter",[],()=>[G(0,"scale.x",0,Oe),G(0,"opacity",0,Oe),G(1,"scale.x",1,Ae),G(1,"opacity",1,Ae)]),tt("scale-in","enter",["fromScale"],r=>[G(0,"scale.x",r.fromScale,Oe),G(0,"scale.y",r.fromScale,Oe),G(0,"opacity",0,Oe),G(1,"scale.x",1,Ae),G(1,"scale.y",1,Ae),G(1,"opacity",1,Ae)],{fromScale:0}),tt("scale-out","exit",[],()=>[G(0,"scale.x",1,Yr),G(0,"scale.y",1,Yr),G(0,"opacity",1,Yr),G(1,"scale.x",0,Ae),G(1,"scale.y",0,Ae),G(1,"opacity",0,Ae)]),tt("pop","enter",["fromScale"],r=>[G(0,"scale.x",r.fromScale,Oe),G(0,"scale.y",r.fromScale,Oe),G(0,"opacity",0,Oe),G(.6,"scale.x",1.15,Oe),G(.6,"scale.y",1.15,Oe),G(.6,"opacity",1,Oe),G(1,"scale.x",1,Ze),G(1,"scale.y",1,Ze)],{fromScale:0}),tt("bounce","generic",[],()=>[G(0,"scale.y",1,Ze),G(.25,"scale.y",1.2,Ze),G(.5,"scale.y",.9,Ze),G(.75,"scale.y",1.05,Ze),G(1,"scale.y",1,Ae)]),tt("bounce-in","enter",[],()=>[G(0,"scale.x",0,Oe),G(0,"scale.y",0,Oe),G(0,"opacity",0,Oe),G(.4,"scale.x",1.2,Oe),G(.4,"scale.y",1.2,Oe),G(.4,"opacity",1,Ae),G(.6,"scale.x",.9,Ze),G(.6,"scale.y",.9,Ze),G(.8,"scale.x",1.05,Ze),G(.8,"scale.y",1.05,Ze),G(1,"scale.x",1,Ze),G(1,"scale.y",1,Ze)]),tt("rotate-in","enter",[],()=>[G(0,"rotation.z",-Math.PI,Oe),G(0,"opacity",0,Oe),G(0,"scale.x",.5,Oe),G(0,"scale.y",.5,Oe),G(1,"rotation.z",0,Ae),G(1,"opacity",1,Ae),G(1,"scale.x",1,Ae),G(1,"scale.y",1,Ae)]),tt("spin","generic",[],()=>[G(0,"rotation.z",0,Ae),G(1,"rotation.z",Math.PI*2,Ae)]),tt("pulse","generic",["intensity"],r=>[G(0,"scale.x",1,Ze),G(0,"scale.y",1,Ze),G(.5,"scale.x",1+.1*r.intensity,Ze),G(.5,"scale.y",1+.1*r.intensity,Ze),G(1,"scale.x",1,Ze),G(1,"scale.y",1,Ze)],{intensity:1}),tt("shake","generic",["intensity"],r=>[G(0,"position.x",0,Ae),G(.1,"position.x",-.8*r.intensity,Ae),G(.2,"position.x",.8*r.intensity,Ae),G(.3,"position.x",-.8*r.intensity,Ae),G(.4,"position.x",.8*r.intensity,Ae),G(.5,"position.x",-.4*r.intensity,Ae),G(.6,"position.x",.4*r.intensity,Ae),G(.7,"position.x",-.2*r.intensity,Ae),G(.8,"position.x",.2*r.intensity,Ae),G(1,"position.x",0,Ae)],{intensity:1}),tt("float","generic",["distance"],r=>[G(0,"position.y",0,Ze),G(.5,"position.y",-r.distance,Ze),G(1,"position.y",0,Ze)],{distance:1.5}),tt("glow","generic",[],()=>[G(0,"opacity",1,Ze),G(.5,"opacity",.6,Ze),G(1,"opacity",1,Ze)]),tt("zoom-in","enter",[],()=>[G(0,"scale.x",.3,Oe),G(0,"scale.y",.3,Oe),G(0,"opacity",0,Oe),G(1,"scale.x",1,Ae),G(1,"scale.y",1,Ae),G(1,"opacity",1,Ae)]),tt("zoom-out","exit",[],()=>[G(0,"scale.x",1,Yr),G(0,"scale.y",1,Yr),G(0,"opacity",1,Yr),G(1,"scale.x",.3,Ae),G(1,"scale.y",.3,Ae),G(1,"opacity",0,Ae)]),tt("flip-in-x","enter",[],()=>[G(0,"rotation.y",Math.PI/2,Oe),G(0,"opacity",0,Oe),G(1,"rotation.y",0,Ae),G(1,"opacity",1,Ae)]),tt("flip-in-y","enter",[],()=>[G(0,"rotation.x",Math.PI/2,Oe),G(0,"opacity",0,Oe),G(1,"rotation.x",0,Ae),G(1,"opacity",1,Ae)]),tt("swing","generic",[],()=>[G(0,"rotation.z",0,Ze),G(.2,"rotation.z",.26,Ze),G(.4,"rotation.z",-.17,Ze),G(.6,"rotation.z",.09,Ze),G(.8,"rotation.z",-.05,Ze),G(1,"rotation.z",0,Ze)])];function Og(r){return xl.find(e=>e.id===r)}const Ng=xl.map(r=>r.id),NP=pr(Ng);function Fg(r,e,t,n,i){const s=Og(r);if(!s)return[];const o={...s.defaults,...i};return s.build(o).map(l=>{let c=l.value;return n&&(l.property==="position.x"&&n.x!==void 0&&(c+=n.x),l.property==="position.y"&&n.y!==void 0&&(c+=n.y)),{time:e+l.time*t,property:l.property,value:c,easing:l.easing}})}function Lg(r){const e=r.id.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ");return{id:r.id,name:e,category:r.category,params:r.params.length?r.params:void 0,defaults:r.defaults,build:t=>r.build({...r.defaults,...t}).map(n=>({time:n.time,property:n.property,value:n.value,interpolation:{family:"continuous",strategy:n.easing}}))}}const Dg=xl.map(Lg);function zg(r){return Dg.find(e=>e.id===r)}function FP(r,e,t,n="ease-out"){return{id:Qn(),time:r,property:e,value:t,interpolation:{family:"continuous",strategy:n}}}function jg(r,e,t,n,i){return Fg(r,e,t,n,i).map(s=>({id:Qn(),time:s.time,property:s.property,value:s.value,interpolation:{family:"continuous",strategy:s.easing}}))}const Hg=Kt({family:hn("continuous").describe("Smooth numeric/color transitions. Use for position, scale, opacity, rotation, fontSize, colors. Colors interpolate in RGB space."),strategy:pr(Kf).describe("Easing: ease-out (entrances), ease-in (exits), ease-in-out (middle). Back = overshoot, bounce, elastic for playful effects.")}),Ug=Kt({family:hn("discrete").describe("Instant jump between values, no transition. Use for booleans, enums, visibility."),strategy:pr(["step-end","step-start","step-mid"]).describe("When the jump occurs: step-end (hold old value until keyframe), step-start (jump immediately), step-mid (jump at midpoint)")}),Bg=Kt({family:hn("quantized").describe("Smooth animation snapped to discrete steps."),strategy:hn("integer").describe("Snap to nearest integer (for counters, indices)")}),Vg=Kt({family:hn("quantized").describe("Smooth animation snapped to discrete steps."),strategy:hn("snap-grid").describe("Snap to a custom grid increment"),increment:at().positive().describe("Grid step size (e.g., 5 → 0, 5, 10, 15...)")}),Wg=Kt({family:hn("text").describe("Text reveal. ONLY for props.content on text/terminal layers."),strategy:hn("char-reveal").describe('Character-by-character typewriter. Animate text from "" to full content.')}),qg=Kt({family:hn("text").describe("Text reveal. ONLY for props.content on text/terminal layers."),strategy:hn("word-reveal").describe("Word-by-word reveal. Shows whole words one at a time."),separator:Pt().optional().describe('Word delimiter (default: space " ")')}),Gg=cl([Hg,Ug,Bg,Vg,Wg,qg]),Kg=pr(["position.x","position.y","position.z","scale.x","scale.y","rotation.x","rotation.y","rotation.z",...ad.keyof().options]),$g=Pt().regex(/^props\./).describe("Layer-specific property (e.g., props.fontSize, props.content)."),Yg=cl([Kg,$g]),Dd=Kt({id:Pt().describe("Unique keyframe ID"),time:at().min(0).describe("Time in seconds"),property:Yg.describe("Property to animate: position.x/y/z, scale.x/y, rotation.x/y/z, opacity, blur, brightness, etc., or props.* for layer-specific (e.g., props.fontSize, props.content)."),value:cl([at(),Pt(),ri()]).describe("Target value: number for numeric props, hex string for colors, string for text content, boolean for flags."),interpolation:Gg.optional().describe("How to reach this value from the previous keyframe. Omit for default continuous/ease-in-out.")}),Xg=Pt().refine(r=>$f().includes(r),{message:"Unknown layer type"}),Jg=Yf.extend({type:Xg,transform:Xf,style:ad,keyframes:ul(Dd),props:Jf(Pt(),Zf()),enterTime:at().min(0).optional(),exitTime:at().min(0).optional(),contentDuration:at().min(0).optional(),contentOffset:at().min(0).optional()}).refine(r=>{if(r.contentDuration!==void 0&&r.contentOffset!==void 0&&r.contentOffset>r.contentDuration)return!1;if(r.contentDuration!==void 0&&r.enterTime!==void 0&&r.exitTime!==void 0){const e=r.exitTime-r.enterTime,t=r.contentOffset??0,n=r.contentDuration-t;if(e>n)return!1}return!0},{message:"Content duration and offset constraints violated: offset must be < duration, and visible duration must fit within available content"}),Zg=Kt({id:Pt(),name:Pt(),width:at().positive(),height:at().positive(),duration:at().positive(),fps:at().positive(),background:cd.optional(),primaryColor:Pt().optional().default("#6366f1"),fontFamily:pr(ld).optional().default("Inter"),hideWatermark:ri().optional().default(!1),watermarkPosition:pr(["top-left","top-center","top-right","bottom-left","bottom-center","bottom-right"]).optional().default("top-center"),schemaVersion:at().int().optional(),layers:ul(Jg)});Kt({zoom:at(),pan:Kt({x:at(),y:at()}),showGuides:ri(),snapToGrid:ri()});Kt({id:Pt(),name:Pt(),keyframes:ul(Dd.omit({id:!0}))});Kt({format:pr(["mp4","webm","json"]),quality:pr(["low","medium","high"]),fps:at().positive(),width:at().positive(),height:at().positive()});const LP=Zg.omit({id:!0});var Bo,bc;function Qg(){if(bc)return Bo;bc=1;var r=4,e=.001,t=1e-7,n=10,i=11,s=1/(i-1),o=typeof Float32Array=="function";function l(v,y){return 1-3*y+3*v}function c(v,y){return 3*y-6*v}function u(v){return 3*v}function d(v,y,b){return((l(y,b)*v+c(y,b))*v+u(y))*v}function p(v,y,b){return 3*l(y,b)*v*v+2*c(y,b)*v+u(y)}function h(v,y,b,P,w){var x,T,R=0;do T=y+(b-y)/2,x=d(T,P,w)-v,x>0?b=T:y=T;while(Math.abs(x)>t&&++R<n);return T}function g(v,y,b,P){for(var w=0;w<r;++w){var x=p(y,b,P);if(x===0)return y;var T=d(y,b,P)-v;y-=T/x}return y}function m(v){return v}return Bo=function(y,b,P,w){if(!(0<=y&&y<=1&&0<=P&&P<=1))throw new Error("bezier x values must be in [0, 1] range");if(y===b&&P===w)return m;for(var x=o?new Float32Array(i):new Array(i),T=0;T<i;++T)x[T]=d(T*s,y,P);function R(C){for(var S=0,A=1,I=i-1;A!==I&&x[A]<=C;++A)S+=s;--A;var M=(C-x[A])/(x[A+1]-x[A]),L=S+M*s,W=p(L,y,P);return W>=e?g(C,L,y,P):W===0?L:h(C,S,S+s,y,P)}return function(S){return S===0?0:S===1?1:d(R(S),b,w)}},Bo}var ep=Qg();const st=Iv(ep);var tp={grad:.9,turn:360,rad:360/(2*Math.PI)},gn=function(r){return typeof r=="string"?r.length>0:typeof r=="number"},Zt=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*r)/t+0},Br=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),r>t?t:r>e?r:e},zd=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},xc=function(r){return{r:Br(r.r,0,255),g:Br(r.g,0,255),b:Br(r.b,0,255),a:Br(r.a)}},Vo=function(r){return{r:Zt(r.r),g:Zt(r.g),b:Zt(r.b),a:Zt(r.a,3)}},rp=/^#([0-9a-f]{3,8})$/i,Es=function(r){var e=r.toString(16);return e.length<2?"0"+e:e},jd=function(r){var e=r.r,t=r.g,n=r.b,i=r.a,s=Math.max(e,t,n),o=s-Math.min(e,t,n),l=o?s===e?(t-n)/o:s===t?2+(n-e)/o:4+(e-t)/o:0;return{h:60*(l<0?l+6:l),s:s?o/s*100:0,v:s/255*100,a:i}},Hd=function(r){var e=r.h,t=r.s,n=r.v,i=r.a;e=e/360*6,t/=100,n/=100;var s=Math.floor(e),o=n*(1-t),l=n*(1-(e-s)*t),c=n*(1-(1-e+s)*t),u=s%6;return{r:255*[n,l,o,o,c,n][u],g:255*[c,n,n,l,o,o][u],b:255*[o,o,c,n,n,l][u],a:i}},wc=function(r){return{h:zd(r.h),s:Br(r.s,0,100),l:Br(r.l,0,100),a:Br(r.a)}},Sc=function(r){return{h:Zt(r.h),s:Zt(r.s),l:Zt(r.l),a:Zt(r.a,3)}},Pc=function(r){return Hd((t=(e=r).s,{h:e.h,s:(t*=((n=e.l)<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}));var e,t,n},os=function(r){return{h:(e=jd(r)).h,s:(i=(200-(t=e.s))*(n=e.v)/100)>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,t,n,i},np=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ip=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,sp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,op=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ec={string:[[function(r){var e=rp.exec(r);return e?(r=e[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?Zt(parseInt(r[3]+r[3],16)/255,2):1}:r.length===6||r.length===8?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:r.length===8?Zt(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var e=sp.exec(r)||op.exec(r);return e?e[2]!==e[4]||e[4]!==e[6]?null:xc({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(r){var e=np.exec(r)||ip.exec(r);if(!e)return null;var t,n,i=wc({h:(t=e[1],n=e[2],n===void 0&&(n="deg"),Number(t)*(tp[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Pc(i)},"hsl"]],object:[[function(r){var e=r.r,t=r.g,n=r.b,i=r.a,s=i===void 0?1:i;return gn(e)&&gn(t)&&gn(n)?xc({r:Number(e),g:Number(t),b:Number(n),a:Number(s)}):null},"rgb"],[function(r){var e=r.h,t=r.s,n=r.l,i=r.a,s=i===void 0?1:i;if(!gn(e)||!gn(t)||!gn(n))return null;var o=wc({h:Number(e),s:Number(t),l:Number(n),a:Number(s)});return Pc(o)},"hsl"],[function(r){var e=r.h,t=r.s,n=r.v,i=r.a,s=i===void 0?1:i;if(!gn(e)||!gn(t)||!gn(n))return null;var o=(function(l){return{h:zd(l.h),s:Br(l.s,0,100),v:Br(l.v,0,100),a:Br(l.a)}})({h:Number(e),s:Number(t),v:Number(n),a:Number(s)});return Hd(o)},"hsv"]]},kc=function(r,e){for(var t=0;t<e.length;t++){var n=e[t][0](r);if(n)return[n,e[t][1]]}return[null,void 0]},ap=function(r){return typeof r=="string"?kc(r.trim(),Ec.string):typeof r=="object"&&r!==null?kc(r,Ec.object):[null,void 0]},Wo=function(r,e){var t=os(r);return{h:t.h,s:Br(t.s+100*e,0,100),l:t.l,a:t.a}},qo=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},Tc=function(r,e){var t=os(r);return{h:t.h,s:t.s,l:Br(t.l+100*e,0,100),a:t.a}},Cc=(function(){function r(e){this.parsed=ap(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return this.parsed!==null},r.prototype.brightness=function(){return Zt(qo(this.rgba),2)},r.prototype.isDark=function(){return qo(this.rgba)<.5},r.prototype.isLight=function(){return qo(this.rgba)>=.5},r.prototype.toHex=function(){return e=Vo(this.rgba),t=e.r,n=e.g,i=e.b,o=(s=e.a)<1?Es(Zt(255*s)):"","#"+Es(t)+Es(n)+Es(i)+o;var e,t,n,i,s,o},r.prototype.toRgb=function(){return Vo(this.rgba)},r.prototype.toRgbString=function(){return e=Vo(this.rgba),t=e.r,n=e.g,i=e.b,(s=e.a)<1?"rgba("+t+", "+n+", "+i+", "+s+")":"rgb("+t+", "+n+", "+i+")";var e,t,n,i,s},r.prototype.toHsl=function(){return Sc(os(this.rgba))},r.prototype.toHslString=function(){return e=Sc(os(this.rgba)),t=e.h,n=e.s,i=e.l,(s=e.a)<1?"hsla("+t+", "+n+"%, "+i+"%, "+s+")":"hsl("+t+", "+n+"%, "+i+"%)";var e,t,n,i,s},r.prototype.toHsv=function(){return e=jd(this.rgba),{h:Zt(e.h),s:Zt(e.s),v:Zt(e.v),a:Zt(e.a,3)};var e},r.prototype.invert=function(){return St({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},r.prototype.saturate=function(e){return e===void 0&&(e=.1),St(Wo(this.rgba,e))},r.prototype.desaturate=function(e){return e===void 0&&(e=.1),St(Wo(this.rgba,-e))},r.prototype.grayscale=function(){return St(Wo(this.rgba,-1))},r.prototype.lighten=function(e){return e===void 0&&(e=.1),St(Tc(this.rgba,e))},r.prototype.darken=function(e){return e===void 0&&(e=.1),St(Tc(this.rgba,-e))},r.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},r.prototype.alpha=function(e){return typeof e=="number"?St({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Zt(this.rgba.a,3);var t},r.prototype.hue=function(e){var t=os(this.rgba);return typeof e=="number"?St({h:e,s:t.s,l:t.l,a:t.a}):Zt(t.h)},r.prototype.isEqual=function(e){return this.toHex()===St(e).toHex()},r})(),St=function(r){return r instanceof Cc?r:new Cc(r)};function lp(r,e,t,n){if(!n)return e;switch(n.family){case"continuous":return cp(r,e,t,n.strategy);case"discrete":return up(r,e,t,n.strategy);case"quantized":return dp(r,e,t,n);case"text":return fp(r,e,t,n);default:return t>=1?e:r}}function cp(r,e,t,n){const s=bi(n)(t);if(typeof r=="string"&&typeof e=="string"){const o=St(r),l=St(e);if(o.isValid()&&l.isValid()){const c=o.toRgb(),u=l.toRgb(),d=Math.round(c.r+(u.r-c.r)*s),p=Math.round(c.g+(u.g-c.g)*s),h=Math.round(c.b+(u.b-c.b)*s),g=c.a+(u.a-c.a)*s;return St({r:d,g:p,b:h,a:g}).toHex()}}if(typeof r!="number"||typeof e!="number")throw new Error("continuous interpolation requires numeric or color values");return r+(e-r)*s}function up(r,e,t,n){switch(n){case"step-end":return t>=1?e:r;case"step-start":return t>0?e:r;case"step-mid":return t>=.5?e:r;default:return t>=1?e:r}}function dp(r,e,t,n){if(typeof r!="number"||typeof e!="number")throw new Error("quantized interpolation requires numeric values");const i=r+(e-r)*t;switch(n.strategy){case"integer":return Math.round(i);case"snap-grid":return Math.round(i/n.increment)*n.increment;default:return Math.round(i)}}function hp(r,e){let t=0;for(;t<r.length&&t<e.length&&r[t]===e[t];)t++;return r.substring(0,t)}function fp(r,e,t,n){const i=String(r),s=String(e);if(i===s)return s;switch(n.strategy){case"char-reveal":{const o=hp(i,s),l=s.substring(o.length),c=Math.round(l.length*t);return o+l.substring(0,c)}case"word-reveal":{const o=n.separator??" ",l=i.split(o),c=s.split(o);let u=0;for(;u<l.length&&u<c.length&&l[u]===c[u];)u++;const d=c.slice(u),p=Math.round(d.length*t);return[...c.slice(0,u),...d.slice(0,p)].join(o)}default:return t>=1?s:i}}function bi(r){switch(r){case"linear":return e=>e;case"ease-in":return st(.42,0,1,1);case"ease-out":return st(0,0,.58,1);case"ease-in-out":return st(.42,0,.58,1);case"ease-in-quad":return st(.55,.085,.68,.53);case"ease-out-quad":return st(.25,.46,.45,.94);case"ease-in-out-quad":return st(.455,.03,.515,.955);case"ease-in-cubic":return st(.55,.055,.675,.19);case"ease-out-cubic":return st(.215,.61,.355,1);case"ease-in-out-cubic":return st(.645,.045,.355,1);case"ease-in-quart":return st(.895,.03,.685,.22);case"ease-out-quart":return st(.165,.84,.44,1);case"ease-in-out-quart":return st(.77,0,.175,1);case"ease-in-quint":return st(.755,.05,.855,.06);case"ease-out-quint":return st(.23,1,.32,1);case"ease-in-out-quint":return st(.86,0,.07,1);case"ease-in-sine":return st(.47,0,.745,.715);case"ease-out-sine":return st(.39,.575,.565,1);case"ease-in-out-sine":return st(.445,.05,.55,.95);case"ease-in-expo":return st(.95,.05,.795,.035);case"ease-out-expo":return st(.19,1,.22,1);case"ease-in-out-expo":return st(1,0,0,1);case"ease-in-circ":return st(.6,.04,.98,.335);case"ease-out-circ":return st(.075,.82,.165,1);case"ease-in-out-circ":return st(.785,.135,.15,.86);case"ease-in-back":return st(.6,-.28,.735,.045);case"ease-out-back":return st(.175,.885,.32,1.275);case"ease-in-out-back":return st(.68,-.55,.265,1.55);case"ease-out-bounce":return iv;case"ease-in-bounce":return nv;case"ease-in-out-bounce":return rv;case"ease-in-elastic":return tv;case"ease-out-elastic":return ev;case"ease-in-out-elastic":return Qf;default:return e=>e}}function Ft(r,e,t){const n=r.filter(i=>i.property===e).sort((i,s)=>i.time-s.time);if(n.length===0)return null;if(t<=n[0].time)return n[0].value;if(t>=n[n.length-1].time)return n[n.length-1].value;for(let i=0;i<n.length-1;i++){const s=n[i],o=n[i+1];if(t>=s.time&&t<=o.time){const l=o.time-s.time,c=l>0?(t-s.time)/l:0;return lp(s.value,o.value,c,s.interpolation)}}return n[n.length-1].value}function vp(r,e){return{position:{x:Ft(r,"position.x",e),y:Ft(r,"position.y",e),z:Ft(r,"position.z",e)},rotation:{x:Ft(r,"rotation.x",e),y:Ft(r,"rotation.y",e),z:Ft(r,"rotation.z",e)},scale:{x:Ft(r,"scale.x",e),y:Ft(r,"scale.y",e),z:Ft(r,"scale.z",e)}}}function gp(r,e){const t={},n=Ft(r,"opacity",e);n!==null&&(t.opacity=n);const i=Ft(r,"blur",e);i!==null&&(t.blur=i);const s=Ft(r,"brightness",e);s!==null&&(t.brightness=s);const o=Ft(r,"contrast",e);o!==null&&(t.contrast=o);const l=Ft(r,"saturate",e);l!==null&&(t.saturate=l);const c=Ft(r,"dropShadowX",e);c!==null&&(t.dropShadowX=c);const u=Ft(r,"dropShadowY",e);u!==null&&(t.dropShadowY=u);const d=Ft(r,"dropShadowBlur",e);d!==null&&(t.dropShadowBlur=d);const p=Ft(r,"dropShadowColor",e);return p!==null&&(t.dropShadowColor=p),t}function pp(r,e,t,n){const i={...e};for(const s of t){const o=`props.${s.name}`,l=Ft(r,o,n);l!=null&&(i[s.name]=l)}return i}function mp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]];de(r,X({name:"arrow-down"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function _p(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];de(r,X({name:"arrow-up"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function yp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"}]];de(r,X({name:"at-sign"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function bp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M2 10v3"}],["path",{d:"M6 6v11"}],["path",{d:"M10 3v18"}],["path",{d:"M14 8v7"}],["path",{d:"M18 5v13"}],["path",{d:"M22 10v3"}]];de(r,X({name:"audio-lines"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function xp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526"}],["circle",{cx:"12",cy:"8",r:"6"}]];de(r,X({name:"award"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function wp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]];de(r,X({name:"bell"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Sp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"9",cy:"9",r:"7"}],["circle",{cx:"15",cy:"15",r:"7"}]];de(r,X({name:"blend"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Pp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"}]];de(r,X({name:"bookmark"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Ep(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}],["path",{d:"m3.3 7 8.7 5 8.7-5"}],["path",{d:"M12 22V12"}]];de(r,X({name:"box"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function kp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M8 2v4"}],["path",{d:"M16 2v4"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}],["path",{d:"M3 10h18"}]];de(r,X({name:"calendar"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Tp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z"}],["circle",{cx:"12",cy:"13",r:"3"}]];de(r,X({name:"camera"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Cp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4"}]];de(r,X({name:"captions"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Ud(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m18 15-6-6-6 6"}]];de(r,X({name:"chevron-up"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Ap(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}]];de(r,X({name:"circle"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Mp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]];de(r,X({name:"clock"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Bd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m16 18 6-6-6-6"}],["path",{d:"m8 6-6 6 6 6"}]];de(r,X({name:"code"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Rp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]];de(r,X({name:"compass"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Ip(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]];de(r,X({name:"crosshair"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Op(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]];de(r,X({name:"database"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Np(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z"}]];de(r,X({name:"droplet"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Fp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"5",r:"1"}],["circle",{cx:"12",cy:"19",r:"1"}]];de(r,X({name:"ellipsis-vertical"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Lp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]];de(r,X({name:"ellipsis"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Dp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];de(r,X({name:"external-link"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function zp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"}]];de(r,X({name:"facebook"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function jp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];de(r,X({name:"file-text"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Hp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4"}]];de(r,X({name:"flame"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Up(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]];de(r,X({name:"folder"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Bp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2"}],["rect",{width:"10",height:"8",x:"7",y:"8",rx:"1"}]];de(r,X({name:"fullscreen"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Vp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 7v14"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1"}]];de(r,X({name:"gift"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Wp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}],["path",{d:"M9 18c-4.51 2-5-2-7-2"}]];de(r,X({name:"github"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function qp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M3 15h18"}],["path",{d:"M9 3v18"}],["path",{d:"M15 3v18"}]];de(r,X({name:"grid-3x3"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Gp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"9",cy:"12",r:"1"}],["circle",{cx:"9",cy:"5",r:"1"}],["circle",{cx:"9",cy:"19",r:"1"}],["circle",{cx:"15",cy:"12",r:"1"}],["circle",{cx:"15",cy:"5",r:"1"}],["circle",{cx:"15",cy:"19",r:"1"}]];de(r,X({name:"grip-vertical"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Kp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"}]];de(r,X({name:"hand"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function $p(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["line",{x1:"4",x2:"20",y1:"9",y2:"9"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21"}]];de(r,X({name:"hash"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Yp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"}]];de(r,X({name:"heart"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Xp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}]];de(r,X({name:"hexagon"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Vd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]];de(r,X({name:"image"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Jp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5"}]];de(r,X({name:"instagram"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Zp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m5 8 6 6"}],["path",{d:"m4 14 6-6 2-3"}],["path",{d:"M2 5h12"}],["path",{d:"M7 2h1"}],["path",{d:"m22 22-5-10-5 10"}],["path",{d:"M14 18h6"}]];de(r,X({name:"languages"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Qp(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z"}],["path",{d:"M20.054 15.987H3.946"}]];de(r,X({name:"laptop"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function em(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"}]];de(r,X({name:"layers"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function tm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}]];de(r,X({name:"layout-grid"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function rm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}],["path",{d:"M9 18h6"}],["path",{d:"M10 22h4"}]];de(r,X({name:"lightbulb"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Wd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]];de(r,X({name:"link"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function nm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}],["rect",{width:"4",height:"12",x:"2",y:"9"}],["circle",{cx:"4",cy:"4",r:"2"}]];de(r,X({name:"linkedin"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function im(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11 5h10"}],["path",{d:"M11 12h10"}],["path",{d:"M11 19h10"}],["path",{d:"M4 4h1v5"}],["path",{d:"M4 9h2"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02"}]];de(r,X({name:"list-ordered"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function sm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1"}]];de(r,X({name:"lock-open"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function wl(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}]];de(r,X({name:"lock"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function om(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}],["circle",{cx:"12",cy:"10",r:"3"}]];de(r,X({name:"map-pin"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function qd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]];de(r,X({name:"mic"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function am(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M5 12h14"}]];de(r,X({name:"minus"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function lm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z"}]];de(r,X({name:"mouse-pointer-2"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function cm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12.586 12.586 19 19"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z"}]];de(r,X({name:"mouse-pointer"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Gd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M9 18V5l12-2v13"}],["circle",{cx:"6",cy:"18",r:"3"}],["circle",{cx:"18",cy:"16",r:"3"}]];de(r,X({name:"music"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function um(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];de(r,X({name:"package"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function dm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M9 21V9"}]];de(r,X({name:"panels-top-left"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function hm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"}]];de(r,X({name:"paperclip"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function fm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"}]];de(r,X({name:"pause"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function vm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"}]];de(r,X({name:"phone"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Ac(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 17v5"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}]];de(r,X({name:"pin"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Kd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]];de(r,X({name:"play"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function gm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M22 14a8 8 0 0 1-8 8"}],["path",{d:"M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2"}],["path",{d:"M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1"}],["path",{d:"M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10"}],["path",{d:"M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"}]];de(r,X({name:"pointer"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function pm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"}]];de(r,X({name:"rocket"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function mm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];de(r,X({name:"search"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function _m(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]];de(r,X({name:"send"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function ym(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18"}]];de(r,X({name:"server"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function $d(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"}],["circle",{cx:"12",cy:"12",r:"3"}]];de(r,X({name:"settings"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function bm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 2v13"}],["path",{d:"m16 6-4-4-4 4"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"}]];de(r,X({name:"share"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function xm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}]];de(r,X({name:"shield"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function wm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]];de(r,X({name:"smartphone"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Sl(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}],["path",{d:"M20 2v4"}],["path",{d:"M22 4h-4"}],["circle",{cx:"4",cy:"20",r:"2"}]];de(r,X({name:"sparkles"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Sm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"}]];de(r,X({name:"square-pen"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Pl(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]];de(r,X({name:"square"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Aa(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]];de(r,X({name:"star"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Pm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]];de(r,X({name:"tag"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Em(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["circle",{cx:"12",cy:"12",r:"10"}],["circle",{cx:"12",cy:"12",r:"6"}],["circle",{cx:"12",cy:"12",r:"2"}]];de(r,X({name:"target"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Yd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 19h8"}],["path",{d:"m4 17 6-6-6-6"}]];de(r,X({name:"terminal"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function km(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1"}],["path",{d:"M7 22h1a4 4 0 0 0 4-4v-1"}],["path",{d:"M7 2h1a4 4 0 0 1 4 4v1"}]];de(r,X({name:"text-cursor"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Tm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];de(r,X({name:"trash"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Cm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}]];de(r,X({name:"triangle"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Am(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18"}],["path",{d:"M4 22h16"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6"}]];de(r,X({name:"trophy"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Mm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z"}]];de(r,X({name:"twitter"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Rm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 4v16"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2"}],["path",{d:"M9 20h6"}]];de(r,X({name:"type"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Im(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]];de(r,X({name:"upload"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Om(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}],["circle",{cx:"9",cy:"7",r:"4"}]];de(r,X({name:"users"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Xd(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"}]];de(r,X({name:"video"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Nm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"}],["path",{d:"M16 9a5 5 0 0 1 0 6"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728"}]];de(r,X({name:"volume-2"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Fm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 20h.01"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0"}]];de(r,X({name:"wifi"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function Lm(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"}],["path",{d:"m10 15 5-3-5-3z"}]];de(r,X({name:"youtube"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}function El(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}]];de(r,X({name:"zap"},()=>t,{get iconNode(){return n},children:(i,s)=>{var o=O(),l=E(o);q(l,()=>e.children??J),f(i,o)},$$slots:{default:!0}})),B()}var Dm=H("<textarea></textarea>");function kl(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"value",15),i=D(e,"data-slot",3,"textarea"),s=$(e,["$$slots","$$events","$$legacy","ref","value","class","data-slot"]);var o=Dm();Wf(o),Xe(o,l=>({"data-slot":i(),class:l,...s}),[()=>vt("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",e.class)]),Pr(o,l=>t(l),()=>t()),_d(o,n),f(r,o),B()}const zm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},jm=Ov(zm);class Hm{#e=()=>{};#t=_(()=>this.#e());constructor(e,t){let n;t!==void 0&&(n=t),this.#e=()=>{try{return n}finally{n=e()}}}get current(){return a(this.#t)}}const Um=yo({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),Pn=new Ri("Dialog.Root | AlertDialog.Root");class Tl{static create(e){const t=Pn.getOr(null);return Pn.set(new Tl(e,t))}opts;#e=Z(null);get triggerNode(){return a(this.#e)}set triggerNode(e){k(this.#e,e,!0)}#t=Z(null);get contentNode(){return a(this.#t)}set contentNode(e){k(this.#t,e,!0)}#r=Z(null);get overlayNode(){return a(this.#r)}set overlayNode(e){k(this.#r,e,!0)}#n=Z(null);get descriptionNode(){return a(this.#n)}set descriptionNode(e){k(this.#n,e,!0)}#i=Z(void 0);get contentId(){return a(this.#i)}set contentId(e){k(this.#i,e,!0)}#s=Z(void 0);get titleId(){return a(this.#s)}set titleId(e){k(this.#s,e,!0)}#a=Z(void 0);get triggerId(){return a(this.#a)}set triggerId(e){k(this.#a,e,!0)}#o=Z(void 0);get descriptionId(){return a(this.#o)}set descriptionId(e){k(this.#o,e,!0)}#c=Z(null);get cancelNode(){return a(this.#c)}set cancelNode(e){k(this.#c,e,!0)}#l=Z(0);get nestedOpenCount(){return a(this.#l)}set nestedOpenCount(e){k(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Pi({ref:fe(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Pi({ref:fe(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Gt(()=>this.opts.open.current,n=>{this.parent&&(n?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),xd(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>Um.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=_(()=>({"data-state":Dn(this.opts.open.current)}));get sharedProps(){return a(this.#u)}set sharedProps(e){k(this.#u,e)}}class Cl{static create(e){return new Cl(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Fn||e.key===ni)&&(e.preventDefault(),this.root.handleClose())}#e=_(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}class Jd{static create(e){return new Jd(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref)}#e=_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}class Al{static create(e){return new Al(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=$t(this.opts.ref),Gt.pre(()=>this.opts.id.current,n=>{this.root.titleId=n})}#e=_(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}class Ml{static create(e){return new Ml(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=$t(this.opts.ref,n=>{this.root.descriptionNode=n}),Gt.pre(()=>this.opts.id.current,n=>{this.root.descriptionId=n})}#e=_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}class Rl{static create(e){return new Rl(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref,n=>{this.root.contentNode=n,this.root.contentId=n?.id})}#e=_(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#e)}set snippetProps(e){k(this.#e,e)}#t=_(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Sn(this.root.nestedOpenCount>0),"data-nested":Sn(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}}class Il{static create(e){return new Il(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref,n=>this.root.overlayNode=n)}#e=_(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#e)}set snippetProps(e){k(this.#e,e)}#t=_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Sn(this.root.nestedOpenCount>0),"data-nested":Sn(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class Zd{static create(e){return new Zd(e,Pn.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref,n=>this.root.cancelNode=n),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Fn||e.key===ni)&&(e.preventDefault(),this.root.handleClose())}#e=_(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}var Bm=H("<div><!></div>");function Vm(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"level",3,2),o=$(e,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const l=Al.create({id:fe(()=>n()),level:fe(()=>s()),ref:fe(()=>i(),g=>i(g))}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=g=>{var m=O(),v=E(m);q(v,()=>e.child,()=>({props:a(c)})),f(g,m)},h=g=>{var m=Bm();Xe(m,()=>({...a(c)}));var v=V(m);q(v,()=>e.children??J),z(m),f(g,m)};te(d,g=>{e.child?g(p):g(h,-1)})}f(r,u),B()}var Wm=H("<div><!></div>");function qm(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"forceMount",3,!1),s=D(e,"ref",15,null),o=$(e,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const l=Il.create({id:fe(()=>n()),ref:fe(()=>s(),h=>s(h))}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=h=>{var g=O(),m=E(g);{var v=b=>{var P=O(),w=E(P);{let x=_(()=>({props:lt(a(c)),...l.snippetProps}));q(w,()=>e.child,()=>a(x))}f(b,P)},y=b=>{var P=Wm();Xe(P,x=>({...x}),[()=>lt(a(c))]);var w=V(P);q(w,()=>e.children??J,()=>l.snippetProps),z(P),f(b,P)};te(m,b=>{e.child?b(v):b(y,-1)})}f(h,g)};te(d,h=>{(l.shouldRender||i())&&h(p)})}f(r,u),B()}var Gm=H("<div><!></div>");function Km(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=$(e,["$$slots","$$events","$$legacy","id","children","child","ref"]);const o=Ml.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h))}),l=_(()=>lt(s,o.props));var c=O(),u=E(c);{var d=h=>{var g=O(),m=E(g);q(m,()=>e.child,()=>({props:a(l)})),f(h,g)},p=h=>{var g=Gm();Xe(g,()=>({...a(l)}));var m=V(g);q(m,()=>e.children??J),z(g),f(h,g)};te(u,h=>{e.child?h(d):h(p,-1)})}f(r,c),B()}var $m=H("<input/>"),Ym=H("<input/>");function Xm(r,e){U(e,!0);let t=D(e,"value",15),n=$(e,["$$slots","$$events","$$legacy","value"]);const i=_(()=>lt(n,{"aria-hidden":"true",tabindex:-1,style:jm}));var s=O(),o=E(s);{var l=u=>{var d=$m();Xe(d,()=>({...a(i),value:t()}),void 0,void 0,void 0,void 0,!0),f(u,d)},c=u=>{var d=Ym();Xe(d,()=>({...a(i)}),void 0,void 0,void 0,void 0,!0),_d(d,t),f(u,d)};te(o,u=>{a(i).type==="checkbox"?u(l):u(c,-1)})}f(r,s),B()}const Ol=yo({component:"collapsible",parts:["root","content","trigger"]}),Nl=new Ri("Collapsible.Root");class Fl{static create(e){return Nl.set(new Fl(e))}opts;attachment;#e=Z(null);get contentNode(){return a(this.#e)}set contentNode(e){k(this.#e,e,!0)}contentPresence;#t=Z(void 0);get contentId(){return a(this.#t)}set contentId(e){k(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=$t(this.opts.ref),this.contentPresence=new Pi({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#r=_(()=>({id:this.opts.id.current,"data-state":Dn(this.opts.open.current),"data-disabled":Sn(this.opts.disabled.current),[Ol.root]:"",...this.attachment}));get props(){return a(this.#r)}set props(e){k(this.#r,e)}}class Ll{static create(e){return new Ll(e,Nl.get())}opts;root;attachment;#e=_(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return a(this.#e)}set present(e){k(this.#e,e)}#t;#r=Z(!1);#n=Z(0);#i=Z(0);constructor(e,t){this.opts=e,this.root=t,k(this.#r,t.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=$t(this.opts.ref,n=>this.root.contentNode=n),Gt.pre(()=>this.opts.id.current,n=>{this.root.contentId=n}),sd(()=>{const n=requestAnimationFrame(()=>{k(this.#r,!1)});return()=>{cancelAnimationFrame(n)}}),Gt.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([n,i])=>!n||!i?void 0:ys(n,"beforematch",()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),Gt([()=>this.opts.ref.current,()=>this.present],([n])=>{n&&gl(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:n.style.transitionDuration,animationName:n.style.animationName},n.style.transitionDuration="0s",n.style.animationName="none";const i=n.getBoundingClientRect();if(k(this.#i,i.height,!0),k(this.#n,i.width,!0),!a(this.#r)){const{animationName:s,transitionDuration:o}=this.#t;n.style.transitionDuration=o,n.style.animationName=s}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#s=_(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#s)}set snippetProps(e){k(this.#s,e)}#a=_(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":a(this.#i)?`${a(this.#i)}px`:void 0,"--bits-collapsible-content-width":a(this.#n)?`${a(this.#n)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?"until-found":void 0,"data-state":Dn(this.root.opts.open.current),"data-disabled":Sn(this.root.opts.disabled.current),[Ol.content]:"",...this.opts.hiddenUntilFound.current&&!this.shouldRender?{}:{hidden:this.opts.hiddenUntilFound.current?!this.shouldRender:this.opts.forceMount.current?void 0:!this.shouldRender},...this.attachment}));get props(){return a(this.#a)}set props(e){k(this.#a,e)}}class Dl{static create(e){return new Dl(e,Nl.get())}opts;root;attachment;#e=_(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!a(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){a(this.#e)||(e.key===Fn||e.key===ni)&&(e.preventDefault(),this.root.toggleOpen())}#t=_(()=>({id:this.opts.id.current,type:"button",disabled:a(this.#e),"aria-controls":this.root.contentId,"aria-expanded":fl(this.root.opts.open.current),"data-state":Dn(this.root.opts.open.current),"data-disabled":Sn(a(this.#e)),[Ol.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}var Jm=H("<div><!></div>");function Zm(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"open",15,!1),o=D(e,"disabled",3,!1),l=D(e,"onOpenChange",3,bt),c=D(e,"onOpenChangeComplete",3,bt),u=$(e,["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const d=Fl.create({open:fe(()=>s(),y=>{s(y),l()(y)}),disabled:fe(()=>o()),id:fe(()=>n()),ref:fe(()=>i(),y=>i(y)),onOpenChangeComplete:fe(()=>c())}),p=_(()=>lt(u,d.props));var h=O(),g=E(h);{var m=y=>{var b=O(),P=E(b);q(P,()=>e.child,()=>({props:a(p)})),f(y,b)},v=y=>{var b=Jm();Xe(b,()=>({...a(p)}));var P=V(b);q(P,()=>e.children??J),z(b),f(y,b)};te(g,y=>{e.child?y(m):y(v,-1)})}f(r,h),B()}var Qm=H("<div><!></div>");function e0(r,e){const t=Qt();U(e,!0);let n=D(e,"ref",15,null),i=D(e,"forceMount",3,!1),s=D(e,"hiddenUntilFound",3,!1),o=D(e,"id",19,()=>er(t)),l=$(e,["$$slots","$$events","$$legacy","child","ref","forceMount","hiddenUntilFound","children","id"]);const c=Ll.create({id:fe(()=>o()),forceMount:fe(()=>i()),hiddenUntilFound:fe(()=>s()),ref:fe(()=>n(),m=>n(m))}),u=_(()=>lt(l,c.props));var d=O(),p=E(d);{var h=m=>{var v=O(),y=E(v);{let b=_(()=>({...c.snippetProps,props:a(u)}));q(y,()=>e.child,()=>a(b))}f(m,v)},g=m=>{var v=Qm();Xe(v,()=>({...a(u)}));var y=V(v);q(y,()=>e.children??J),z(v),f(m,v)};te(p,m=>{e.child?m(h):m(g,-1)})}f(r,d),B()}var t0=H("<button><!></button>");function r0(r,e){const t=Qt();U(e,!0);let n=D(e,"ref",15,null),i=D(e,"id",19,()=>er(t)),s=D(e,"disabled",3,!1),o=$(e,["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]);const l=Dl.create({id:fe(()=>i()),ref:fe(()=>n(),g=>n(g)),disabled:fe(()=>s())}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=g=>{var m=O(),v=E(m);q(v,()=>e.child,()=>({props:a(c)})),f(g,m)},h=g=>{var m=t0();Xe(m,()=>({...a(c)}));var v=V(m);q(v,()=>e.children??J),z(m),f(g,m)};te(d,g=>{e.child?g(p):g(h,-1)})}f(r,u),B()}class n0{#e;#t=_(()=>this.#e.candidateValues());#r;constructor(e){this.#e=e,this.#r=Lv("",{afterMs:1e3,getWindow:this.#e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e){if(!this.#e.enabled()||!a(this.#t).length)return;this.#r.current=this.#r.current+e;const t=this.#e.getCurrentItem(),n=a(this.#t).find(l=>l===t)??"",i=a(this.#t).map(l=>l??""),s=Dv(i,this.#r.current,n),o=a(this.#t).find(l=>l===s);return o&&this.#e.onMatch(o),o}resetTypeahead(){this.#r.current=""}}const i0=[Zi,wd,Sd],s0=[hi,Pd,Ed],o0=[...i0,...s0],a0=yo({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Ii=new Ri("Select.Root | Combobox.Root"),l0=new Ri("Select.Group | Combobox.Group"),So=new Ri("Select.Content | Combobox.Content");class Qd{opts;#e=Z(!1);get touchedInput(){return a(this.#e)}set touchedInput(e){k(this.#e,e,!0)}#t=Z(null);get inputNode(){return a(this.#t)}set inputNode(e){k(this.#t,e,!0)}#r=Z(null);get contentNode(){return a(this.#r)}set contentNode(e){k(this.#r,e,!0)}contentPresence;#n=Z(null);get viewportNode(){return a(this.#n)}set viewportNode(e){k(this.#n,e,!0)}#i=Z(null);get triggerNode(){return a(this.#i)}set triggerNode(e){k(this.#i,e,!0)}#s=Z("");get valueId(){return a(this.#s)}set valueId(e){k(this.#s,e,!0)}#a=Z(null);get highlightedNode(){return a(this.#a)}set highlightedNode(e){k(this.#a,e,!0)}#o=_(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return a(this.#o)}set highlightedValue(e){k(this.#o,e)}#c=_(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return a(this.#c)}set highlightedId(e){k(this.#c,e)}#l=_(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return a(this.#l)}set highlightedLabel(e){k(this.#l,e)}isUsingKeyboard=!1;isCombobox=!1;domContext=new bo(()=>null);constructor(e){this.opts=e,this.isCombobox=e.isCombobox,this.contentPresence=new Pi({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),sd(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(e,t=!1){this.highlightedNode=e,e&&(this.isUsingKeyboard||t)&&e.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const e=this.contentNode;return e?Array.from(e.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(e=!1){this.setHighlightedNode(null);let t=this.getCandidateNodes();if(t.length){if(this.viewportNode){const n=this.viewportNode.getBoundingClientRect();t=t.filter(i=>{if(!this.viewportNode)return!1;const s=i.getBoundingClientRect();return s.right<=n.right&&s.left>=n.left&&s.bottom<=n.bottom&&s.top>=n.top})}this.setHighlightedNode(t[0],e)}}getNodeByValue(e){return this.getCandidateNodes().find(n=>n.dataset.value===e)??null}setOpen(e){this.opts.open.current=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=e=>a0.getAttr(e,this.isCombobox?"combobox":void 0)}class c0 extends Qd{opts;isMulti=!1;#e=_(()=>this.opts.value.current!=="");get hasValue(){return a(this.#e)}set hasValue(e){k(this.#e,e)}#t=_(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":"");get currentLabel(){return a(this.#t)}set currentLabel(e){k(this.#t,e)}#r=_(()=>this.opts.items.current.length?this.opts.items.current.filter(t=>!t.disabled).map(t=>t.label):[]);get candidateLabels(){return a(this.#r)}set candidateLabels(e){k(this.#r,e)}#n=_(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return a(this.#n)}set dataTypeaheadEnabled(e){k(this.#n,e)}constructor(e){super(e),this.opts=e,qt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Gt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current===e}toggleItem(e,t=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=t)}setInitialHighlightedNode(){gl(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class u0 extends Qd{opts;isMulti=!0;#e=_(()=>this.opts.value.current.length>0);get hasValue(){return a(this.#e)}set hasValue(e){k(this.#e,e)}constructor(e){super(e),this.opts=e,qt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),Gt(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,t=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=t}setInitialHighlightedNode(){gl(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class d0{static create(e){const{type:t,...n}=e,i=t==="single"?new c0(n):new u0(n);return Ii.set(i)}}class zl{static create(e){return new zl(e,Ii.get())}opts;root;attachment;#e;#t;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(e.ref,n=>this.root.triggerNode=n),this.root.domContext=new bo(e.ref),this.#e=new zv({getCurrentItem:()=>this.root.highlightedNode,onMatch:n=>{this.root.setHighlightedNode(n)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#t=new n0({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:n=>{if(this.root.isMulti||!this.root.opts.items.current)return;const i=this.root.opts.items.current.find(s=>s.label===n);i&&(this.root.opts.value.current=i.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#r(){this.root.opts.open.current=!0,this.#t.resetTypeahead(),this.#e.resetTypeahead()}#n(e){this.#r()}#i(){const e=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e?(this.root.handleClose(),!0):!1)}onkeydown(e){if(this.root.isUsingKeyboard=!0,(e.key===hi||e.key===Zi)&&e.preventDefault(),!this.root.opts.open.current){if(e.key===ni||e.key===Fn||e.key===Zi||e.key===hi)e.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#t.handleTypeaheadSearch(e.key);return}if(this.root.hasValue)return;const o=this.root.getCandidateNodes();if(!o.length)return;if(e.key===Zi){const l=o[0];this.root.setHighlightedNode(l)}else if(e.key===hi){const l=o[o.length-1];this.root.setHighlightedNode(l)}return}if(e.key===gc){this.root.handleClose();return}if((e.key===ni||e.key===Fn&&this.#e.search==="")&&!e.isComposing&&(e.preventDefault(),this.#i()))return;if(e.key===hi&&e.altKey&&this.root.handleClose(),o0.includes(e.key)){e.preventDefault();const o=this.root.getCandidateNodes(),l=this.root.highlightedNode,c=l?o.indexOf(l):-1,u=this.root.opts.loop.current;let d;if(e.key===Zi?d=jv(o,c,u):e.key===hi?d=Hv(o,c,u):e.key===Pd?d=Uv(o,c,10,u):e.key===wd?d=Bv(o,c,10,u):e.key===Sd?d=o[0]:e.key===Ed&&(d=o[o.length-1]),!d)return;this.root.setHighlightedNode(d);return}const t=e.ctrlKey||e.altKey||e.metaKey,n=e.key.length===1,i=e.key===Fn,s=this.root.getCandidateNodes();if(e.key!==gc){if(!t&&(n||i)){!this.#e.handleTypeaheadSearch(e.key,s)&&i&&(e.preventDefault(),this.#i());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(e){e.currentTarget.focus()}onpointerdown(e){if(this.root.opts.disabled.current)return;if(e.pointerType==="touch")return e.preventDefault();const t=e.target;t?.hasPointerCapture(e.pointerId)&&t?.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#n(e):this.root.handleClose())}onpointerup(e){this.root.opts.disabled.current||(e.preventDefault(),e.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#n(e):this.root.handleClose()))}#s=_(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":fl(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":Dn(this.root.opts.open.current),"data-disabled":Sn(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return a(this.#s)}set props(e){k(this.#s,e)}}class jl{static create(e){return So.set(new jl(e,Ii.get()))}opts;root;attachment;#e=Z(!1);get isPositioned(){return a(this.#e)}set isPositioned(e){k(this.#e,e,!0)}domContext;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(e.ref,n=>this.root.contentNode=n),this.domContext=new bo(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),xd(()=>{this.root.contentNode=null,this.isPositioned=!1}),Gt(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(e){this.root.isUsingKeyboard=!1}#t=_(()=>ka(this.root.isCombobox?"combobox":"select"));onInteractOutside=e=>{if(e.target===this.root.triggerNode||e.target===this.root.inputNode){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#r=_(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#r)}set snippetProps(e){k(this.#r,e)}#n=_(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":Dn(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...a(this.#t)},onpointermove:this.onpointermove,...this.attachment}));get props(){return a(this.#n)}set props(e){k(this.#n,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class Hl{static create(e){return new Hl(e,Ii.get())}opts;root;attachment;#e=_(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return a(this.#e)}set isSelected(e){k(this.#e,e)}#t=_(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return a(this.#t)}set isHighlighted(e){k(this.#t,e)}prevHighlighted=new Hm(()=>this.isHighlighted);#r=Z(!1);get mounted(){return a(this.#r)}set mounted(e){k(this.#r,e,!0)}constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(e.ref),Gt([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),Gt(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const e=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!e&&this.root.handleClose()}#n=_(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return a(this.#n)}set snippetProps(e){k(this.#n,e)}onpointerdown(e){e.preventDefault()}onpointerup(e){if(!(e.defaultPrevented||!this.opts.ref.current)){if(e.pointerType==="touch"&&!Vv){ys(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}e.preventDefault(),this.handleSelect(),e.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(e){e.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=_(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Sn(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return a(this.#i)}set props(e){k(this.#i,e)}}class Ul{static create(e){return l0.set(new Ul(e,Ii.get()))}opts;root;#e=Z(null);get labelNode(){return a(this.#e)}set labelNode(e){k(this.#e,e,!0)}attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(e.ref)}#t=_(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}class Bl{static create(e){return new Bl(e,Ii.get())}opts;root;#e=_(()=>this.root.opts.name.current!=="");get shouldRender(){return a(this.#e)}set shouldRender(e){k(this.#e,e)}constructor(e,t){this.opts=e,this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(e){e.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#t=_(()=>({disabled:fc(this.root.opts.disabled.current),required:fc(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}class Vl{static create(e){return new Vl(e,So.get())}opts;content;root;attachment;#e=Z(0);get prevScrollTop(){return a(this.#e)}set prevScrollTop(e){k(this.#e,e,!0)}constructor(e,t){this.opts=e,this.content=t,this.root=t.root,this.attachment=$t(e.ref,n=>{this.root.viewportNode=n})}#t=_(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}class eh{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=bt;#e=Z(!1);get mounted(){return a(this.#e)}set mounted(e){k(this.#e,e,!0)}constructor(e,t){this.opts=e,this.content=t,this.root=t.root,this.attachment=$t(e.ref),Gt([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),qt(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(e){if(this.autoScrollTimer!==null)return;const t=n=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>t(n+1),this.opts.delay.current(n))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>t(1),this.opts.delay.current(0))}onpointermove(e){this.onpointerdown(e)}onpointerleave(e){this.clearAutoScrollInterval()}#t=_(()=>({id:this.opts.id.current,"aria-hidden":Nv(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}class Wl{static create(e){return new Wl(new eh(e,So.get()))}scrollButtonState;content;root;#e=Z(!1);get canScrollDown(){return a(this.#e)}set canScrollDown(e){k(this.#e,e,!0)}scrollIntoViewTimer=null;constructor(e){this.scrollButtonState=e,this.content=e.content,this.root=e.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,Gt([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ys(this.root.viewportNode,"scroll",()=>this.handleScroll())}),Gt([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),Gt(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=Wv(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(e=!1)=>{if(e||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const t=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,n=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<t-n};handleAutoScroll=()=>{const e=this.root.viewportNode,t=this.root.highlightedNode;!e||!t||(e.scrollTop=e.scrollTop+t.offsetHeight)};#t=_(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}class ql{static create(e){return new ql(new eh(e,So.get()))}scrollButtonState;content;root;#e=Z(!1);get canScrollUp(){return a(this.#e)}set canScrollUp(e){k(this.#e,e,!0)}constructor(e){this.scrollButtonState=e,this.content=e.content,this.root=e.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,Gt([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),ys(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(e=!1)=>{if(e||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const t=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-t>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#t=_(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}}function Go(r,e){U(e,!0);let t=D(e,"value",15);const n=Bl.create({value:fe(()=>t())});var i=O(),s=E(i);{var o=l=>{Xm(l,X(()=>n.props,{get autocomplete(){return e.autocomplete},get value(){return t()},set value(c){t(c)}}))};te(s,l=>{n.shouldRender&&l(o)})}f(r,i),B()}var h0=H("<div><div><!></div></div>"),f0=H("<div><div><!></div></div>");function v0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"forceMount",3,!1),o=D(e,"side",3,"bottom"),l=D(e,"onInteractOutside",3,bt),c=D(e,"onEscapeKeydown",3,bt),u=D(e,"preventScroll",3,!1),d=$(e,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const p=jl.create({id:fe(()=>n()),ref:fe(()=>i(),b=>i(b)),onInteractOutside:fe(()=>l()),onEscapeKeydown:fe(()=>c())}),h=_(()=>lt(d,p.props));var g=O(),m=E(g);{var v=b=>{kd(b,X(()=>a(h),()=>p.popperProps,{get ref(){return p.opts.ref},get side(){return o()},get enabled(){return p.root.opts.open.current},get id(){return n()},get preventScroll(){return u()},forceMount:!0,get shouldRender(){return p.shouldRender},popper:(w,x)=>{let T=()=>x?.().props,R=()=>x?.().wrapperProps;const C=_(()=>lt(T(),{style:p.props.style},{style:e.style}));var S=O(),A=E(S);{var I=L=>{var W=O(),j=E(W);{let Y=_(()=>({props:a(C),wrapperProps:R(),...p.snippetProps}));q(j,()=>e.child,()=>a(Y))}f(L,W)},M=L=>{var W=h0();Xe(W,()=>({...R()}));var j=V(W);Xe(j,()=>({...a(C)}));var Y=V(j);q(Y,()=>e.children??J),z(j),z(W),f(L,W)};te(A,L=>{e.child?L(I):L(M,-1)})}f(w,S)},$$slots:{popper:!0}}))},y=b=>{Td(b,X(()=>a(h),()=>p.popperProps,{get ref(){return p.opts.ref},get side(){return o()},get open(){return p.root.opts.open.current},get id(){return n()},get preventScroll(){return u()},forceMount:!1,get shouldRender(){return p.shouldRender},popper:(w,x)=>{let T=()=>x?.().props,R=()=>x?.().wrapperProps;const C=_(()=>lt(T(),{style:p.props.style},{style:e.style}));var S=O(),A=E(S);{var I=L=>{var W=O(),j=E(W);{let Y=_(()=>({props:a(C),wrapperProps:R(),...p.snippetProps}));q(j,()=>e.child,()=>a(Y))}f(L,W)},M=L=>{var W=f0();Xe(W,()=>({...R()}));var j=V(W);Xe(j,()=>({...a(C)}));var Y=V(j);q(Y,()=>e.children??J),z(j),z(W),f(L,W)};te(A,L=>{e.child?L(I):L(M,-1)})}f(w,S)},$$slots:{popper:!0}}))};te(m,b=>{s()?b(v):s()||b(y,1)})}f(r,g),B()}function Gl(r,e){U(e,!0);let t=D(e,"mounted",15,!1),n=D(e,"onMountedChange",3,bt);Zv(()=>(t(!0),n()(!0),()=>{t(!1),n()(!1)})),B()}var g0=H("<div><!></div>"),p0=H("<!> <!>",1);function m0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"label",19,()=>e.value),o=D(e,"disabled",3,!1),l=D(e,"onHighlight",3,bt),c=D(e,"onUnhighlight",3,bt),u=$(e,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const d=Hl.create({id:fe(()=>n()),ref:fe(()=>i(),b=>i(b)),value:fe(()=>e.value),disabled:fe(()=>o()),label:fe(()=>s()),onHighlight:fe(()=>l()),onUnhighlight:fe(()=>c())}),p=_(()=>lt(u,d.props));var h=p0(),g=E(h);{var m=b=>{var P=O(),w=E(P);{let x=_(()=>({props:a(p),...d.snippetProps}));q(w,()=>e.child,()=>a(x))}f(b,P)},v=b=>{var P=g0();Xe(P,()=>({...a(p)}));var w=V(P);q(w,()=>e.children??J,()=>d.snippetProps),z(P),f(b,P)};te(g,b=>{e.child?b(m):b(v,-1)})}var y=F(g,2);Gl(y,{get mounted(){return d.mounted},set mounted(b){d.mounted=b}}),f(r,h),B()}var _0=H("<div><!></div>");function y0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=$(e,["$$slots","$$events","$$legacy","id","ref","children","child"]);const o=Ul.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h))}),l=_(()=>lt(s,o.props));var c=O(),u=E(c);{var d=h=>{var g=O(),m=E(g);q(m,()=>e.child,()=>({props:a(l)})),f(h,g)},p=h=>{var g=_0();Xe(g,()=>({...a(l)}));var m=V(g);q(m,()=>e.children??J),z(g),f(h,g)};te(u,h=>{e.child?h(d):h(p,-1)})}f(r,c),B()}var b0=H("<div><!></div>");function x0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=$(e,["$$slots","$$events","$$legacy","id","ref","children","child"]);const o=Vl.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h))}),l=_(()=>lt(s,o.props));var c=O(),u=E(c);{var d=h=>{var g=O(),m=E(g);q(m,()=>e.child,()=>({props:a(l)})),f(h,g)},p=h=>{var g=b0();Xe(g,()=>({...a(l)}));var m=V(g);q(m,()=>e.children??J),z(g),f(h,g)};te(u,h=>{e.child?h(d):h(p,-1)})}f(r,c),B()}var w0=H("<div><!></div>"),S0=H("<!> <!>",1);function P0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"delay",3,()=>50),o=$(e,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=Wl.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h)),delay:fe(()=>s())}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=h=>{var g=S0(),m=E(g);Gl(m,{get mounted(){return l.scrollButtonState.mounted},set mounted(P){l.scrollButtonState.mounted=P}});var v=F(m,2);{var y=P=>{var w=O(),x=E(w);q(x,()=>e.child,()=>({props:o})),f(P,w)},b=P=>{var w=w0();Xe(w,()=>({...a(c)}));var x=V(w);q(x,()=>e.children??J),z(w),f(P,w)};te(v,P=>{e.child?P(y):P(b,-1)})}f(h,g)};te(d,h=>{l.canScrollDown&&h(p)})}f(r,u),B()}var E0=H("<div><!></div>"),k0=H("<!> <!>",1);function T0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"delay",3,()=>50),o=$(e,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const l=ql.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h)),delay:fe(()=>s())}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=h=>{var g=k0(),m=E(g);Gl(m,{get mounted(){return l.scrollButtonState.mounted},set mounted(P){l.scrollButtonState.mounted=P}});var v=F(m,2);{var y=P=>{var w=O(),x=E(w);q(x,()=>e.child,()=>({props:o})),f(P,w)},b=P=>{var w=E0();Xe(w,()=>({...a(c)}));var x=V(w);q(x,()=>e.children??J),z(w),f(P,w)};te(v,P=>{e.child?P(y):P(b,-1)})}f(h,g)};te(d,h=>{l.canScrollUp&&h(p)})}f(r,u),B()}const $s=yo({component:"popover",parts:["root","trigger","content","close","overlay"]}),Po=new Ri("Popover.Root");class Kl{static create(e){return Po.set(new Kl(e))}opts;#e=Z(null);get contentNode(){return a(this.#e)}set contentNode(e){k(this.#e,e,!0)}contentPresence;#t=Z(null);get triggerNode(){return a(this.#t)}set triggerNode(e){k(this.#t,e,!0)}#r=Z(null);get overlayNode(){return a(this.#r)}set overlayNode(e){k(this.#r,e,!0)}overlayPresence;#n=Z(!1);get openedViaHover(){return a(this.#n)}set openedViaHover(e){k(this.#n,e,!0)}#i=Z(!1);get hasInteractedWithContent(){return a(this.#i)}set hasInteractedWithContent(e){k(this.#i,e,!0)}#s=Z(!1);get hoverCooldown(){return a(this.#s)}set hoverCooldown(e){k(this.#s,e,!0)}#a=Z(0);get closeDelay(){return a(this.#a)}set closeDelay(e){k(this.#a,e,!0)}#o=null;#c=null;constructor(e){this.opts=e,this.contentPresence=new Pi({ref:fe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Pi({ref:fe(()=>this.overlayNode),open:this.opts.open}),Gt(()=>this.opts.open.current,t=>{t||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#l())})}setDomContext(e){this.#c=e}#l(){this.#o!==null&&this.#c&&(this.#c.clearTimeout(this.#o),this.#o=null)}toggleOpen(){this.#l(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#l(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#l(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#l(),this.closeDelay<=0?this.opts.open.current=!1:this.#c&&(this.#o=this.#c.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#o=null},this.closeDelay))))}cancelDelayedClose(){this.#l()}markInteraction(){this.hasInteractedWithContent=!0,this.#l()}}class $l{static create(e){return new $l(e,Po.get())}opts;root;attachment;domContext;#e=null;#t=null;#r=Z(!1);constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref,n=>this.root.triggerNode=n),this.domContext=new bo(e.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Gt(()=>this.opts.closeDelay.current,n=>{this.root.closeDelay=n})}#n(){this.#e!==null&&(this.domContext.clearTimeout(this.#e),this.#e=null)}#i(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#s(){this.#n(),this.#i()}onpointerenter(e){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ks(e)||(k(this.#r,!0),this.#i(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const t=this.opts.openDelay.current;t<=0?this.root.handleHoverOpen():this.#e=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#e=null},t)}onpointerleave(e){this.opts.disabled.current||this.opts.openOnHover.current&&(Ks(e)||(k(this.#r,!1),this.#n(),this.root.hoverCooldown=!1))}onclick(e){if(!this.opts.disabled.current&&e.button===0){if(this.#s(),a(this.#r)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}a(this.#r)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(e){this.opts.disabled.current||(e.key===ni||e.key===Fn)&&(e.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#o=_(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":fl(this.root.opts.open.current),"data-state":Dn(this.root.opts.open.current),"aria-controls":this.#a(),[$s.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return a(this.#o)}set props(e){k(this.#o,e)}}class Yl{static create(e){return new Yl(e,Po.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref,n=>this.root.contentNode=n),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new Qv({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(e){this.root.markInteraction()}onfocusin(e){const t=e.target;jo(t)&&qv(t)&&this.root.markInteraction()}onpointerenter(e){Ks(e)||this.root.cancelDelayedClose()}onpointerleave(e){Ks(e)}onInteractOutside=e=>{if(this.opts.onInteractOutside.current(e),e.defaultPrevented||!jo(e.target))return;const t=e.target.closest($s.selector("trigger"));if(!(t&&t===this.root.triggerNode)){if(this.opts.customAnchor.current){if(jo(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(e.target))return}else if(typeof this.opts.customAnchor.current=="string"){const n=document.querySelector(this.opts.customAnchor.current);if(n&&n.contains(e.target))return}}this.root.handleClose()}};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#e=_(()=>({open:this.root.opts.open.current}));get snippetProps(){return a(this.#e)}set snippetProps(e){k(this.#e,e)}#t=_(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Dn(this.root.opts.open.current),[$s.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return a(this.#t)}set props(e){k(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}class Xl{static create(e){return new Xl(e,Po.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$t(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.root.handleClose()}onkeydown(e){(e.key===ni||e.key===Fn)&&(e.preventDefault(),this.root.handleClose())}#e=_(()=>({id:this.opts.id.current,onclick:this.onclick,onkeydown:this.onkeydown,type:"button",[$s.close]:"",...this.attachment}));get props(){return a(this.#e)}set props(e){k(this.#e,e)}}var C0=H("<div><div><!></div></div>"),A0=H("<div><div><!></div></div>");function M0(r,e){const t=Qt();U(e,!0);let n=D(e,"ref",15,null),i=D(e,"id",19,()=>er(t)),s=D(e,"forceMount",3,!1),o=D(e,"onOpenAutoFocus",3,bt),l=D(e,"onCloseAutoFocus",3,bt),c=D(e,"onEscapeKeydown",3,bt),u=D(e,"onInteractOutside",3,bt),d=D(e,"trapFocus",3,!0),p=D(e,"preventScroll",3,!1),h=D(e,"customAnchor",3,null),g=$(e,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const m=Yl.create({id:fe(()=>i()),ref:fe(()=>n(),R=>n(R)),onInteractOutside:fe(()=>u()),onEscapeKeydown:fe(()=>c()),customAnchor:fe(()=>h())}),v=_(()=>lt(g,m.props)),y=_(()=>d()&&m.shouldTrapFocus);function b(R){m.shouldTrapFocus||R.preventDefault(),o()(R)}var P=O(),w=E(P);{var x=R=>{kd(R,X(()=>a(v),()=>m.popperProps,{get ref(){return m.opts.ref},get enabled(){return m.root.opts.open.current},get id(){return i()},get trapFocus(){return a(y)},get preventScroll(){return p()},loop:!0,forceMount:!0,get customAnchor(){return h()},onOpenAutoFocus:b,get onCloseAutoFocus(){return l()},get shouldRender(){return m.shouldRender},popper:(S,A)=>{let I=()=>A?.().props,M=()=>A?.().wrapperProps;const L=_(()=>lt(I(),{style:ka("popover")},{style:e.style}));var W=O(),j=E(W);{var Y=se=>{var Q=O(),ce=E(Q);{let he=_(()=>({props:a(L),wrapperProps:M(),...m.snippetProps}));q(ce,()=>e.child,()=>a(he))}f(se,Q)},le=se=>{var Q=C0();Xe(Q,()=>({...M()}));var ce=V(Q);Xe(ce,()=>({...a(L)}));var he=V(ce);q(he,()=>e.children??J),z(ce),z(Q),f(se,Q)};te(j,se=>{e.child?se(Y):se(le,-1)})}f(S,W)},$$slots:{popper:!0}}))},T=R=>{Td(R,X(()=>a(v),()=>m.popperProps,{get ref(){return m.opts.ref},get open(){return m.root.opts.open.current},get id(){return i()},get trapFocus(){return a(y)},get preventScroll(){return p()},loop:!0,forceMount:!1,get customAnchor(){return h()},onOpenAutoFocus:b,get onCloseAutoFocus(){return l()},get shouldRender(){return m.shouldRender},popper:(S,A)=>{let I=()=>A?.().props,M=()=>A?.().wrapperProps;const L=_(()=>lt(I(),{style:ka("popover")},{style:e.style}));var W=O(),j=E(W);{var Y=se=>{var Q=O(),ce=E(Q);{let he=_(()=>({props:a(L),wrapperProps:M(),...m.snippetProps}));q(ce,()=>e.child,()=>a(he))}f(se,Q)},le=se=>{var Q=A0();Xe(Q,()=>({...M()}));var ce=V(Q);Xe(ce,()=>({...a(L)}));var he=V(ce);q(he,()=>e.children??J),z(ce),z(Q),f(se,Q)};te(j,se=>{e.child?se(Y):se(le,-1)})}f(S,W)},$$slots:{popper:!0}}))};te(w,R=>{s()?R(x):s()||R(T,1)})}f(r,P),B()}var R0=H("<button><!></button>");function I0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"type",3,"button"),o=D(e,"disabled",3,!1),l=D(e,"openOnHover",3,!1),c=D(e,"openDelay",3,700),u=D(e,"closeDelay",3,300),d=$(e,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const p=$l.create({id:fe(()=>n()),ref:fe(()=>i(),g=>i(g)),disabled:fe(()=>!!o()),openOnHover:fe(()=>l()),openDelay:fe(()=>c()),closeDelay:fe(()=>u())}),h=_(()=>lt(d,p.props,{type:s()}));Cd(r,{get id(){return n()},get ref(){return p.opts.ref},children:(g,m)=>{var v=O(),y=E(v);{var b=w=>{var x=O(),T=E(x);q(T,()=>e.child,()=>({props:a(h)})),f(w,x)},P=w=>{var x=R0();Xe(x,()=>({...a(h)}));var T=V(x);q(T,()=>e.children??J),z(x),f(w,x)};te(y,w=>{e.child?w(b):w(P,-1)})}f(g,v)},$$slots:{default:!0}}),B()}var O0=H("<button><!></button>");function N0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=$(e,["$$slots","$$events","$$legacy","child","children","id","ref"]);const o=Xl.create({id:fe(()=>n()),ref:fe(()=>i(),h=>i(h))}),l=_(()=>lt(s,o.props));var c=O(),u=E(c);{var d=h=>{var g=O(),m=E(g);q(m,()=>e.child,()=>({props:a(l)})),f(h,g)},p=h=>{var g=O0();Xe(g,()=>({...a(l)}));var m=V(g);q(m,()=>e.children??J),z(g),f(h,g)};te(u,h=>{e.child?h(d):h(p,-1)})}f(r,c),B()}function F0(r,e){U(e,!0);let t=D(e,"open",15,!1),n=D(e,"onOpenChange",3,bt),i=D(e,"onOpenChangeComplete",3,bt);Tl.create({variant:fe(()=>"dialog"),open:fe(()=>t(),l=>{t(l),n()(l)}),onOpenChangeComplete:fe(()=>i())});var s=O(),o=E(s);q(o,()=>e.children??J),f(r,s),B()}var L0=H("<button><!></button>");function D0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"disabled",3,!1),o=$(e,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const l=Cl.create({variant:fe(()=>"close"),id:fe(()=>n()),ref:fe(()=>i(),g=>i(g)),disabled:fe(()=>!!s())}),c=_(()=>lt(o,l.props));var u=O(),d=E(u);{var p=g=>{var m=O(),v=E(m);q(v,()=>e.child,()=>({props:a(c)})),f(g,m)},h=g=>{var m=L0();Xe(m,()=>({...a(c)}));var v=V(m);q(v,()=>e.children??J),z(m),f(g,m)};te(d,g=>{e.child?g(p):g(h,-1)})}f(r,u),B()}var z0=H("<!> <!>",1),j0=H("<!> <div><!></div>",1);function H0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"forceMount",3,!1),o=D(e,"onCloseAutoFocus",3,bt),l=D(e,"onOpenAutoFocus",3,bt),c=D(e,"onEscapeKeydown",3,bt),u=D(e,"onInteractOutside",3,bt),d=D(e,"trapFocus",3,!0),p=D(e,"preventScroll",3,!0),h=D(e,"restoreScrollDelay",3,null),g=$(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const m=Rl.create({id:fe(()=>n()),ref:fe(()=>i(),w=>i(w))}),v=_(()=>lt(g,m.props));var y=O(),b=E(y);{var P=w=>{Gv(w,{get ref(){return m.opts.ref},loop:!0,get trapFocus(){return d()},get enabled(){return m.root.opts.open.current},get onOpenAutoFocus(){return l()},get onCloseAutoFocus(){return o()},focusScope:(T,R)=>{let C=()=>R?.().props;Kv(T,X(()=>a(v),{get enabled(){return m.root.opts.open.current},get ref(){return m.opts.ref},onEscapeKeydown:S=>{c()(S),!S.defaultPrevented&&m.root.handleClose()},children:(S,A)=>{$v(S,X(()=>a(v),{get ref(){return m.opts.ref},get enabled(){return m.root.opts.open.current},onInteractOutside:I=>{u()(I),!I.defaultPrevented&&m.root.handleClose()},children:(I,M)=>{Yv(I,X(()=>a(v),{get ref(){return m.opts.ref},get enabled(){return m.root.opts.open.current},children:(L,W)=>{var j=O(),Y=E(j);{var le=Q=>{var ce=z0(),he=E(ce);{var ae=ie=>{pc(ie,{get preventScroll(){return p()},get restoreScrollDelay(){return h()}})};te(he,ie=>{m.root.opts.open.current&&ie(ae)})}var re=F(he,2);{let ie=_(()=>({props:lt(a(v),C()),...m.snippetProps}));q(re,()=>e.child,()=>a(ie))}f(Q,ce)},se=Q=>{var ce=j0(),he=E(ce);pc(he,{get preventScroll(){return p()}});var ae=F(he,2);Xe(ae,ie=>({...ie}),[()=>lt(a(v),C())]);var re=V(ae);q(re,()=>e.children??J),z(ae),f(Q,ce)};te(Y,Q=>{e.child?Q(le):Q(se,-1)})}f(L,j)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};te(b,w=>{(m.shouldRender||s())&&w(P)})}f(r,y),B()}function U0(r,e){U(e,!0);let t=D(e,"open",15,!1),n=D(e,"onOpenChange",3,bt),i=D(e,"onOpenChangeComplete",3,bt);Kl.create({open:fe(()=>t(),s=>{t(s),n()(s)}),onOpenChangeComplete:fe(()=>i())}),Ad(r,{children:(s,o)=>{var l=O(),c=E(l);q(c,()=>e.children??J),f(s,l)},$$slots:{default:!0}}),B()}var B0=H("<!> <!>",1);function V0(r,e){U(e,!0);let t=D(e,"value",15),n=D(e,"onValueChange",3,bt),i=D(e,"name",3,""),s=D(e,"disabled",3,!1),o=D(e,"open",15,!1),l=D(e,"onOpenChange",3,bt),c=D(e,"onOpenChangeComplete",3,bt),u=D(e,"loop",3,!1),d=D(e,"scrollAlignment",3,"nearest"),p=D(e,"required",3,!1),h=D(e,"items",19,()=>[]),g=D(e,"allowDeselect",3,!1);function m(){t()===void 0&&t(e.type==="single"?"":[])}m(),Gt.pre(()=>t(),()=>{m()});let v=Z("");const y=d0.create({type:e.type,value:fe(()=>t(),C=>{t(C),n()(C)}),disabled:fe(()=>s()),required:fe(()=>p()),open:fe(()=>o(),C=>{o(C),l()(C)}),loop:fe(()=>u()),scrollAlignment:fe(()=>d()),name:fe(()=>i()),isCombobox:!1,items:fe(()=>h()),allowDeselect:fe(()=>g()),inputValue:fe(()=>a(v),C=>k(v,C,!0)),onOpenChangeComplete:fe(()=>c())});var b=B0(),P=E(b);Ad(P,{children:(C,S)=>{var A=O(),I=E(A);q(I,()=>e.children??J),f(C,A)},$$slots:{default:!0}});var w=F(P,2);{var x=C=>{var S=O(),A=E(S);{var I=L=>{Go(L,{get autocomplete(){return e.autocomplete}})},M=L=>{var W=O(),j=E(W);Et(j,16,()=>y.opts.value.current,Y=>Y,(Y,le)=>{Go(Y,{get value(){return le},get autocomplete(){return e.autocomplete}})}),f(L,W)};te(A,L=>{y.opts.value.current.length===0?L(I):L(M,-1)})}f(C,S)},T=_(()=>Array.isArray(y.opts.value.current)),R=C=>{Go(C,{get autocomplete(){return e.autocomplete},get value(){return y.opts.value.current},set value(S){y.opts.value.current=S}})};te(w,C=>{a(T)?C(x):C(R,-1)})}f(r,b),B()}var W0=H("<button><!></button>");function q0(r,e){const t=Qt();U(e,!0);let n=D(e,"id",19,()=>er(t)),i=D(e,"ref",15,null),s=D(e,"type",3,"button"),o=$(e,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const l=zl.create({id:fe(()=>n()),ref:fe(()=>i(),p=>i(p))}),c=_(()=>lt(o,l.props,{type:s()}));var u=O(),d=E(u);ue(d,()=>Cd,(p,h)=>{h(p,{get id(){return n()},get ref(){return l.opts.ref},children:(g,m)=>{var v=O(),y=E(v);{var b=w=>{var x=O(),T=E(x);q(T,()=>e.child,()=>({props:a(c)})),f(w,x)},P=w=>{var x=W0();Xe(x,()=>({...a(c)}));var T=V(x);q(T,()=>e.children??J),z(x),f(w,x)};te(y,w=>{e.child?w(b):w(P,-1)})}f(g,v)},$$slots:{default:!0}})}),f(r,u),B()}function Eo(r,e){U(e,!0);let t=D(e,"open",15,!1),n=D(e,"value",15),i=$(e,["$$slots","$$events","$$legacy","open","value"]);var s=O(),o=E(s);ue(o,()=>V0,(l,c)=>{c(l,X(()=>i,{get open(){return t()},set open(u){t(u)},get value(){return n()},set value(u){n(u)}}))}),f(r,s),B()}function Ys(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref"]);var i=O(),s=E(i);ue(s,()=>y0,(o,l)=>{l(o,X({"data-slot":"select-group"},()=>n,{get ref(){return t()},set ref(c){t(c)}}))}),f(r,i),B()}var G0=H("<div><!></div>");function Ma(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=G0();Xe(i,o=>({"data-slot":"select-label",class:o,...n}),[()=>vt("px-2 py-1.5 text-xs text-muted-foreground",e.class)]);var s=V(i);q(s,()=>e.children??J),z(i),Pr(i,o=>t(o),()=>t()),f(r,i),B()}var K0=H('<span class="absolute end-2 flex size-3.5 items-center justify-center"><!></span> <!>',1);function hs(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class","value","label","children"]);var i=O(),s=E(i);{const o=(c,u)=>{let d=()=>u?.().selected,p=()=>u?.().highlighted;var h=K0(),g=E(h),m=V(g);{var v=w=>{_l(w,{class:"size-4"})};te(m,w=>{d()&&w(v)})}z(g);var y=F(g,2);{var b=w=>{var x=O(),T=E(x);q(T,()=>e.children,()=>({selected:d(),highlighted:p()})),f(w,x)},P=w=>{var x=Ge();oe(()=>Se(x,e.label||e.value)),f(w,x)};te(y,w=>{e.children?w(b):w(P,-1)})}f(c,h)};let l=_(()=>vt("relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e.class));ue(s,()=>m0,(c,u)=>{u(c,X({get value(){return e.value},"data-slot":"select-item",get class(){return a(l)}},()=>n,{get ref(){return t()},set ref(d){t(d)},children:o,$$slots:{default:!0}}))})}f(r,i),B()}function $0(r,e){let t=$(e,["$$slots","$$events","$$legacy"]);var n=O(),i=E(n);ue(i,()=>pl,(s,o)=>{o(s,X(()=>t))}),f(r,n)}function Y0(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("flex cursor-default items-center justify-center py-1",e.class));ue(s,()=>T0,(l,c)=>{c(l,X({"data-slot":"select-scroll-up-button",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)},children:(u,d)=>{Ud(u,{class:"size-4"})},$$slots:{default:!0}}))})}f(r,i),B()}function X0(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("flex cursor-default items-center justify-center py-1",e.class));ue(s,()=>P0,(l,c)=>{c(l,X({"data-slot":"select-scroll-down-button",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)},children:(u,d)=>{xo(u,{class:"size-4"})},$$slots:{default:!0}}))})}f(r,i),B()}var J0=H("<!> <!> <!>",1);function ko(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"sideOffset",3,4),i=D(e,"preventScroll",3,!0),s=$(e,["$$slots","$$events","$$legacy","ref","class","sideOffset","portalProps","children","preventScroll"]);$0(r,X(()=>e.portalProps,{children:(o,l)=>{var c=O(),u=E(c);{let d=_(()=>vt("relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:translate-y-1 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:-translate-x-1 data-[side=left]:slide-in-from-end-2 data-[side=right]:translate-x-1 data-[side=right]:slide-in-from-start-2 data-[side=top]:-translate-y-1 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e.class));ue(u,()=>v0,(p,h)=>{h(p,X({get sideOffset(){return n()},get preventScroll(){return i()},"data-slot":"select-content",get class(){return a(d)}},()=>s,{get ref(){return t()},set ref(g){t(g)},children:(g,m)=>{var v=J0(),y=E(v);Y0(y,{});var b=F(y,2);{let w=_(()=>vt("h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1"));ue(b,()=>x0,(x,T)=>{T(x,{get class(){return a(w)},children:(R,C)=>{var S=O(),A=E(S);q(A,()=>e.children??J),f(R,S)},$$slots:{default:!0}})})}var P=F(b,2);X0(P,{}),f(g,v)},$$slots:{default:!0}}))})}f(o,c)},$$slots:{default:!0}})),B()}var Z0=H("<!> <!>",1);function To(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"size",3,"default"),i=$(e,["$$slots","$$events","$$legacy","ref","class","children","size"]);var s=O(),o=E(s);{let l=_(()=>vt("flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e.class));ue(o,()=>q0,(c,u)=>{u(c,X({"data-slot":"select-trigger",get"data-size"(){return n()},get class(){return a(l)}},()=>i,{get ref(){return t()},set ref(d){t(d)},children:(d,p)=>{var h=Z0(),g=E(h);q(g,()=>e.children??J);var m=F(g,2);xo(m,{class:"size-4 opacity-50"}),f(d,h)},$$slots:{default:!0}}))})}f(r,s),B()}function Q0(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);{let i=_(()=>vt("pointer-events-none -mx-1 my-1 h-px bg-border",e.class));Qi(r,X({"data-slot":"select-separator",get class(){return a(i)}},()=>n,{get ref(){return t()},set ref(s){t(s)}}))}B()}var e_=H("<!> <!>",1);function Nn(r,e){U(e,!0);let t=D(e,"value",15);const n=_(()=>e.options.find(o=>o.value===t())?.label||e.placeholder);var i=O(),s=E(i);ue(s,()=>Eo,(o,l)=>{l(o,X(()=>e.root,{type:"single",get value(){return t()},set value(c){t(c)},children:(c,u)=>{var d=e_(),p=E(d);ue(p,()=>To,(g,m)=>{m(g,X(()=>e.trigger,{children:(v,y)=>{Fe();var b=Ge();oe(()=>Se(b,a(n))),f(v,b)},$$slots:{default:!0}}))});var h=F(p,2);ue(h,()=>ko,(g,m)=>{m(g,X(()=>e.content,{children:(v,y)=>{var b=O(),P=E(b);ue(P,()=>Ys,(w,x)=>{x(w,X(()=>e.group,{children:(T,R)=>{var C=O(),S=E(C);Et(S,17,()=>e.options,A=>A.value,(A,I)=>{var M=O(),L=E(M);ue(L,()=>hs,(W,j)=>{j(W,X({get value(){return a(I).value},get disabled(){return a(I).disabled}},()=>e.item,{children:(Y,le)=>{Fe();var se=Ge();oe(()=>Se(se,a(I).label)),f(Y,se)},$$slots:{default:!0}}))}),f(A,M)}),f(T,C)},$$slots:{default:!0}}))}),f(v,b)},$$slots:{default:!0}}))}),f(c,d)},$$slots:{default:!0}}))}),f(r,i),B()}function th(r,e){U(e,!0);let t=D(e,"open",15,!1),n=$(e,["$$slots","$$events","$$legacy","open"]);var i=O(),s=E(i);ue(s,()=>U0,(o,l)=>{l(o,X(()=>n,{get open(){return t()},set open(c){t(c)}}))}),f(r,i),B()}function Mc(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref"]);var i=O(),s=E(i);ue(s,()=>N0,(o,l)=>{l(o,X({"data-slot":"popover-close"},()=>n,{get ref(){return t()},set ref(c){t(c)}}))}),f(r,i),B()}function t_(r,e){let t=$(e,["$$slots","$$events","$$legacy"]);var n=O(),i=E(n);ue(i,()=>pl,(s,o)=>{o(s,X(()=>t))}),f(r,n)}function rh(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"sideOffset",3,4),i=D(e,"align",3,"center"),s=$(e,["$$slots","$$events","$$legacy","ref","class","sideOffset","align","portalProps"]);t_(r,X(()=>e.portalProps,{children:(o,l)=>{var c=O(),u=E(c);{let d=_(()=>vt("z-50 w-72 origin-(--bits-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e.class));ue(u,()=>M0,(p,h)=>{h(p,X({"data-slot":"popover-content",get sideOffset(){return n()},get align(){return i()},get class(){return a(d)}},()=>s,{get ref(){return t()},set ref(g){t(g)}}))})}f(o,c)},$$slots:{default:!0}})),B()}function nh(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("",e.class));ue(s,()=>I0,(l,c)=>{c(l,X({"data-slot":"popover-trigger",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)}}))})}f(r,i),B()}var r_=H('<div class="space-y-2"><h4 class="leading-none font-medium">Remove Keyframes</h4> <p class="text-sm text-muted-foreground"> </p> <div class="flex justify-end gap-2 pt-2"><!> <!></div></div>'),n_=H("<!> <!>",1);function ih(r,e){U(e,!0);function t(){e.removeKeyframes&&e.removeKeyframes(e.property)}var n=O(),i=E(n);{var s=l=>{var c=O(),u=E(c);ue(u,()=>th,(d,p)=>{p(d,{children:(h,g)=>{var m=n_(),v=E(m);{const b=(P,w)=>{let x=()=>w?.().props;{let T=_(()=>`Remove all keyframes for ${e.label}`);Mt(P,X({variant:"ghost",size:"icon-xs",get title(){return a(T)}},x,{children:(R,C)=>{Ac(R,{class:"size-2.5",fill:"currentColor"})},$$slots:{default:!0}}))}};ue(v,()=>nh,(P,w)=>{w(P,{child:b,$$slots:{child:!0}})})}var y=F(v,2);ue(y,()=>rh,(b,P)=>{P(b,{class:"w-64",align:"end",side:"left",children:(w,x)=>{var T=r_(),R=F(V(T),2),C=V(R);z(R);var S=F(R,2),A=V(S);{const M=(L,W)=>{Mt(L,X({variant:"outline",size:"sm"},()=>W?.().props,{children:(Y,le)=>{Fe();var se=Ge("Cancel");f(Y,se)},$$slots:{default:!0}}))};ue(A,()=>Mc,(L,W)=>{W(L,{child:M,$$slots:{child:!0}})})}var I=F(A,2);{const M=(L,W)=>{Mt(L,X({variant:"destructive",size:"sm"},()=>W?.().props,{onclick:t,children:(Y,le)=>{Fe();var se=Ge("Remove");f(Y,se)},$$slots:{default:!0}}))};ue(I,()=>Mc,(L,W)=>{W(L,{child:M,$$slots:{child:!0}})})}z(S),z(T),oe(()=>Se(C,`Remove all keyframes for ${e.label??""}? This cannot be undone.`)),f(w,T)},$$slots:{default:!0}})}),f(h,m)},$$slots:{default:!0}})}),f(l,c)},o=l=>{{let c=_(()=>`Add keyframe for ${e.label}`);Mt(l,{variant:"ghost",size:"icon-xs",onclick:()=>e.addKeyframe(e.property),get title(){return a(c)},children:(u,d)=>{{let p=_(()=>e.active?"currentColor":"none");Ac(u,{class:"size-2.5",get fill(){return a(p)}})}},$$slots:{default:!0}})}};te(i,l=>{e.active&&e.removeKeyframes?l(s):l(o,-1)})}f(r,n),B()}function Jl(r,e){yl(r,{get for(){return e.htmlFor},class:"flex-1 text-[10px] text-muted-foreground",children:(t,n)=>{var i=O(),s=E(i);q(s,()=>e.children),f(t,i)},$$slots:{default:!0}})}var i_=H('<div class="flex flex-col gap-1"><div class="flex items-center gap-0.5"><!> <!> <!></div> <!></div>');function nr(r,e){U(e,!0);const t=_(jn),n=_(()=>a(t).project),i=_(()=>a(n).selectedLayer),s=_(()=>a(i)?.keyframes.some(v=>v.property===e.property));function o(v){a(i)&&a(n).removeKeyframesByProperty(a(i).id,v)}var l=i_(),c=V(l),u=V(c);{var d=v=>{{let y=_(()=>!!a(s));ih(v,{get property(){return e.property},get active(){return a(y)},get label(){return e.label},get addKeyframe(){return e.addKeyframe},removeKeyframes:o})}};te(u,v=>{e.property&&v(d)})}var p=F(u,2);Jl(p,{get htmlFor(){return e.for},children:(v,y)=>{Fe();var b=Ge();oe(()=>Se(b,e.label)),f(v,b)}});var h=F(p,2);{var g=v=>{var y=O(),b=E(y);q(b,()=>e.labelExtra),f(v,y)};te(h,v=>{e.labelExtra&&v(g)})}z(c);var m=F(c,2);q(m,()=>e.children),z(l),f(r,l),B()}function sh(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("text-lg leading-none font-semibold",e.class));ue(s,()=>Vm,(l,c)=>{c(l,X({"data-slot":"dialog-title",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)}}))})}f(r,i),B()}var s_=H("<div><!></div>");function oh(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=s_();Xe(i,o=>({"data-slot":"dialog-header",class:o,...n}),[()=>vt("flex flex-col gap-2 text-center sm:text-left",e.class)]);var s=V(i);q(s,()=>e.children??J),z(i),Pr(i,o=>t(o),()=>t()),f(r,i),B()}function o_(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e.class));ue(s,()=>qm,(l,c)=>{c(l,X({"data-slot":"dialog-overlay",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)}}))})}f(r,i),B()}var a_=H('<!> <span class="sr-only">Close</span>',1),l_=H("<!> <!>",1),c_=H("<!> <!>",1);function ah(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"showCloseButton",3,!0),i=$(e,["$$slots","$$events","$$legacy","ref","class","portalProps","children","showCloseButton"]);var s=O(),o=E(s);ue(o,()=>u_,(l,c)=>{c(l,X(()=>e.portalProps,{children:(u,d)=>{var p=c_(),h=E(p);ue(h,()=>o_,(m,v)=>{v(m,{})});var g=F(h,2);{let m=_(()=>vt("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-popover p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e.class));ue(g,()=>H0,(v,y)=>{y(v,X({"data-slot":"dialog-content",get class(){return a(m)}},()=>i,{get ref(){return t()},set ref(b){t(b)},children:(b,P)=>{var w=l_(),x=E(w);q(x,()=>e.children??J);var T=F(x,2);{var R=C=>{var S=O(),A=E(S);ue(A,()=>D0,(I,M)=>{M(I,{class:"absolute end-4 top-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:(L,W)=>{var j=a_(),Y=E(j);ml(Y,{}),Fe(2),f(L,j)},$$slots:{default:!0}})}),f(C,S)};te(T,C=>{n()&&C(R)})}f(b,w)},$$slots:{default:!0}}))})}f(u,p)},$$slots:{default:!0}}))}),f(r,s),B()}function lh(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class"]);var i=O(),s=E(i);{let o=_(()=>vt("text-sm text-muted-foreground",e.class));ue(s,()=>Km,(l,c)=>{c(l,X({"data-slot":"dialog-description",get class(){return a(o)}},()=>n,{get ref(){return t()},set ref(u){t(u)}}))})}f(r,i),B()}const ch=F0,u_=pl;var d_=H('<div class="absolute -top-4 left-1/2 -translate-x-1/2 rounded-full bg-green-600 px-4 py-1 text-xs font-semibold text-white">Current Plan</div>'),h_=H('<div class="absolute -top-4 left-1/2 -translate-x-1/2 rounded-full bg-primary px-4 py-1 text-xs font-semibold text-primary-foreground">Most Popular</div>'),f_=H('<li class="flex items-start gap-3"><div><!></div> <span> </span></li>'),v_=H('<div><!> <div class="mb-8"><h3 class="mb-2 text-2xl font-bold text-foreground"> </h3> <div class="mb-2 flex items-baseline gap-1"><span class="text-4xl font-extrabold text-foreground"> </span> <span class="text-muted-foreground"> </span></div> <p class="text-sm text-muted-foreground"> </p></div> <!> <ul class="grow space-y-3"></ul></div>');function g_(r,e){U(e,!0);let t=D(e,"disabled",3,!1),n=D(e,"isCurrentPlan",3,!1);var i=v_(),s=V(i);{var o=x=>{var T=d_();f(x,T)},l=x=>{var T=h_();f(x,T)};te(s,x=>{n()?x(o):e.plan.popular&&x(l,1)})}var c=F(s,2),u=V(c),d=V(u,!0);z(u);var p=F(u,2),h=V(p),g=V(h);z(h);var m=F(h,2),v=V(m);z(m),z(p);var y=F(p,2),b=V(y,!0);z(y),z(c);var P=F(c,2);Mt(P,{size:"lg",get variant(){return e.plan.variant},class:"mb-8 w-full",get onclick(){return e.onclick},get disabled(){return t()},children:(x,T)=>{Fe();var R=Ge();oe(()=>Se(R,n()?"Current Plan":e.plan.cta)),f(x,R)},$$slots:{default:!0}});var w=F(P,2);Et(w,21,()=>e.plan.features,x=>x.text,(x,T)=>{var R=f_(),C=V(R),S=V(C);{let M=_(()=>a(T).highlight?"text-primary":"text-muted-foreground");_l(S,{get class(){return`h-3.5 w-3.5 ${a(M)??""}`}})}z(C);var A=F(C,2),I=V(A,!0);z(A),z(R),oe(()=>{gr(C,1,`mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full ${a(T).highlight?"bg-primary/20":"bg-muted"}`),gr(A,1,`text-sm ${a(T).highlight?"font-medium text-foreground":"text-muted-foreground"}`),Se(I,a(T).text)}),f(x,R)}),z(w),z(i),oe(()=>{gr(i,1,`relative flex flex-col rounded-2xl border border-border/50 bg-card/50 p-8 backdrop-blur-sm transition-all duration-300 ${t()?"opacity-60":e.plan.popular?"shadow-lg ring-2 shadow-primary/10 ring-primary/50":"hover:border-primary/30"}`),Se(d,e.plan.name),Se(g,`$${e.plan.price??""}`),Se(v,`/${e.plan.period??""}`),Se(b,e.plan.description)}),f(r,i),B()}var K=typeof window<"u"?window:void 0,Wt=typeof globalThis<"u"?globalThis:K;typeof self>"u"&&(Wt.self=Wt),typeof File>"u"&&(Wt.File=function(){});var Lr=Wt?.navigator,me=Wt?.document,ir=Wt?.location,Ra=Wt?.fetch,Ia=Wt!=null&&Wt.XMLHttpRequest&&"withCredentials"in new Wt.XMLHttpRequest?Wt.XMLHttpRequest:void 0,Rc=Wt?.AbortController,p_=Wt?.CompressionStream,Tr=Lr?.userAgent,Me=K??{},Ic="1.364.6",Ir={DEBUG:!1,LIB_VERSION:Ic,LIB_NAME:"web",JS_SDK_VERSION:Ic};function Oc(r,e,t,n,i,s,o){try{var l=r[s](o),c=l.value}catch(u){return void t(u)}l.done?e(c):Promise.resolve(c).then(n,i)}function Zr(r){return function(){var e=this,t=arguments;return new Promise((function(n,i){var s=r.apply(e,t);function o(c){Oc(s,n,i,o,l,"next",c)}function l(c){Oc(s,n,i,o,l,"throw",c)}o(void 0)}))}}function pe(){return pe=Object.assign?Object.assign.bind():function(r){for(var e=1;arguments.length>e;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},pe.apply(null,arguments)}function uh(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)!==-1)continue;t[n]=r[n]}return t}function dh(){return(dh=Zr((function*(r,e){e===void 0&&(e=!0);try{var t=new Blob([r],{type:"text/plain"}).stream().pipeThrough(new CompressionStream("gzip"));return yield new Response(t).blob()}catch(n){return e&&console.error("Failed to gzip compress data",n),null}}))).apply(this,arguments)}var m_=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],__=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],Nc=function(r,e){if(e===void 0&&(e=[]),!r)return!1;var t=r.toLowerCase();return __.concat(e).some((n=>{var i=n.toLowerCase();return t.indexOf(i)!==-1}))};function Be(r,e){return r.indexOf(e)!==-1}var Co=function(r){return r.trim()},Oa=function(r){return r.replace(/^\$/,"")},hh=Object.prototype,fh=hh.hasOwnProperty,Ao=hh.toString,Je=Array.isArray||function(r){return Ao.call(r)==="[object Array]"},yn=r=>typeof r=="function",Vt=r=>r===Object(r)&&!Je(r),mi=r=>{if(Vt(r)){for(var e in r)if(fh.call(r,e))return!1;return!0}return!1},xe=r=>r===void 0,Lt=r=>Ao.call(r)=="[object String]",js=r=>Lt(r)&&r.trim().length===0,zn=r=>r===null,qe=r=>xe(r)||zn(r),fn=r=>Ao.call(r)=="[object Number]"&&r==r,fi=r=>fn(r)&&r>0,bn=r=>Ao.call(r)==="[object Boolean]",y_=r=>r instanceof FormData,b_=r=>Be(m_,r);function vh(r){return r===null||typeof r!="object"}function Xs(r,e){return{}.toString.call(r)==="[object "+e+"]"}function Zl(r){return typeof Event<"u"&&(function(e,t){try{return e instanceof t}catch{return!1}})(r,Event)}var x_=[!0,"true",1,"1","yes"],Ko=r=>Be(x_,r),w_=[!1,"false",0,"0","no"];function dn(r,e,t,n,i){return e>t&&(n.warn("min cannot be greater than max."),e=t),fn(r)?r>t?(n.warn(" cannot be greater than max: "+t+". Using max value instead."),t):e>r?(n.warn(" cannot be less than min: "+e+". Using min value instead."),e):r:(n.warn(" must be a number. using max or fallback. max: "+t+", fallback: "+i),dn(i||t,e,t,n))}class S_{constructor(e){this.Pt={},this.Dt=e.Dt,this.jt=dn(e.bucketSize,0,100,e.qt),this.$t=dn(e.refillRate,0,this.jt,e.qt),this.Ht=dn(e.refillInterval,0,864e5,e.qt)}Vt(e,t){var n=Math.floor((t-e.lastAccess)/this.Ht);n>0&&(e.tokens=Math.min(e.tokens+n*this.$t,this.jt),e.lastAccess=e.lastAccess+n*this.Ht)}consumeRateLimit(e){var t,n=Date.now(),i=String(e),s=this.Pt[i];return s?this.Vt(s,n):this.Pt[i]=s={tokens:this.jt,lastAccess:n},s.tokens===0||(s.tokens--,s.tokens===0&&((t=this.Dt)==null||t.call(this,e)),s.tokens===0)}stop(){this.Pt={}}}var ks,Fc,$o,Dr="Mobile",Js="iOS",xn="Android",ki="Tablet",gh=xn+" "+ki,ph="iPad",mh="Apple",_h=mh+" Watch",as="Safari",Ti="BlackBerry",yh="Samsung",bh=yh+"Browser",xh=yh+" Internet",ti="Chrome",P_=ti+" OS",wh=ti+" "+Js,Ql="Internet Explorer",Sh=Ql+" "+Dr,ec="Opera",E_=ec+" Mini",tc="Edge",Ph="Microsoft "+tc,xi="Firefox",Eh=xi+" "+Js,fs="Nintendo",vs="PlayStation",wi="Xbox",kh=xn+" "+Dr,Th=Dr+" "+as,es="Windows",Na=es+" Phone",Lc="Nokia",Fa="Ouya",Ch="Generic",k_=Ch+" "+Dr.toLowerCase(),Ah=Ch+" "+ki.toLowerCase(),La="Konqueror",xr="(\\d+(\\.\\d+)?)",Yo=new RegExp("Version/"+xr),T_=new RegExp(wi,"i"),C_=new RegExp(vs+" \\w+","i"),A_=new RegExp(fs+" \\w+","i"),rc=new RegExp(Ti+"|PlayBook|BB10","i"),M_={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},Mh=function(r,e){return e=e||"",Be(r," OPR/")&&Be(r,"Mini")?E_:Be(r," OPR/")?ec:rc.test(r)?Ti:Be(r,"IE"+Dr)||Be(r,"WPDesktop")?Sh:Be(r,bh)?xh:Be(r,tc)||Be(r,"Edg/")?Ph:Be(r,"FBIOS")?"Facebook "+Dr:Be(r,"UCWEB")||Be(r,"UCBrowser")?"UC Browser":Be(r,"CriOS")?wh:Be(r,"CrMo")||Be(r,ti)?ti:Be(r,xn)&&Be(r,as)?kh:Be(r,"FxiOS")?Eh:Be(r.toLowerCase(),La.toLowerCase())?La:((t,n)=>n&&Be(n,mh)||(function(i){return Be(i,as)&&!Be(i,ti)&&!Be(i,xn)})(t))(r,e)?Be(r,Dr)?Th:as:Be(r,xi)?xi:Be(r,"MSIE")||Be(r,"Trident/")?Ql:Be(r,"Gecko")?xi:""},R_={[Sh]:[new RegExp("rv:"+xr)],[Ph]:[new RegExp(tc+"?\\/"+xr)],[ti]:[new RegExp("("+ti+"|CrMo)\\/"+xr)],[wh]:[new RegExp("CriOS\\/"+xr)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+xr)],[as]:[Yo],[Th]:[Yo],[ec]:[new RegExp("(Opera|OPR)\\/"+xr)],[xi]:[new RegExp(xi+"\\/"+xr)],[Eh]:[new RegExp("FxiOS\\/"+xr)],[La]:[new RegExp("Konqueror[:/]?"+xr,"i")],[Ti]:[new RegExp(Ti+" "+xr),Yo],[kh]:[new RegExp("android\\s"+xr,"i")],[xh]:[new RegExp(bh+"\\/"+xr)],[Ql]:[new RegExp("(rv:|MSIE )"+xr)],Mozilla:[new RegExp("rv:"+xr)]},I_=function(r,e){var t=Mh(r,e),n=R_[t];if(xe(n))return null;for(var i=0;n.length>i;i++){var s=r.match(n[i]);if(s)return parseFloat(s[s.length-2])}return null},Dc=[[new RegExp(wi+"; "+wi+" (.*?)[);]","i"),r=>[wi,r&&r[1]||""]],[new RegExp(fs,"i"),[fs,""]],[new RegExp(vs,"i"),[vs,""]],[rc,[Ti,""]],[new RegExp(es,"i"),(r,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[Na,""];if(new RegExp(Dr).test(e)&&!/IEMobile\b/.test(e))return[es+" "+Dr,""];var t=/Windows NT ([0-9.]+)/i.exec(e);if(t&&t[1]){var n=M_[t[1]]||"";return/arm/i.test(e)&&(n="RT"),[es,n]}return[es,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,r=>r&&r[3]?[Js,[r[3],r[4],r[5]||"0"].join(".")]:[Js,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,r=>{var e="";return r&&r.length>=3&&(e=xe(r[2])?r[3]:r[2]),["watchOS",e]}],[new RegExp("("+xn+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+xn+")","i"),r=>r&&r[2]?[xn,[r[2],r[3],r[4]||"0"].join(".")]:[xn,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,r=>{var e=["Mac OS X",""];return r&&r[1]&&(e[1]=[r[1],r[2],r[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[P_,""]],[/Linux|debian/i,["Linux",""]]],zc=function(r){return A_.test(r)?fs:C_.test(r)?vs:T_.test(r)?wi:new RegExp(Fa,"i").test(r)?Fa:new RegExp("("+Na+"|WPDesktop)","i").test(r)?Na:/iPad/.test(r)?ph:/iPod/.test(r)?"iPod Touch":/iPhone/.test(r)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(r)?_h:rc.test(r)?Ti:/(kobo)\s(ereader|touch)/i.test(r)?"Kobo":new RegExp(Lc,"i").test(r)?Lc:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(r)||/(kf[a-z]+)( bui|\)).+silk\//i.test(r)?"Kindle Fire":/(Android|ZTE)/i.test(r)?new RegExp(Dr).test(r)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(r)||/pixel[\daxl ]{1,6}/i.test(r)&&!/pixel c/i.test(r)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(r)||/lmy47v/i.test(r)&&!/QTAQZ3/i.test(r)?xn:gh:new RegExp("(pda|"+Dr+")","i").test(r)?k_:new RegExp(ki,"i").test(r)&&!new RegExp(ki+" pc","i").test(r)?Ah:""},O_=r=>r instanceof Error;function N_(r){var e=globalThis._posthogChunkIds;if(e){var t=Object.keys(e);return $o&&t.length===Fc||(Fc=t.length,$o=t.reduce(((n,i)=>{ks||(ks={});var s=ks[i];if(s)n[s[0]]=s[1];else for(var o=r(i),l=o.length-1;l>=0;l--){var c=o[l],u=c?.filename,d=e[i];if(u&&d){n[u]=d,ks[i]=[u,d];break}}return n}),{})),$o}}class F_{constructor(e,t,n){n===void 0&&(n=[]),this.coercers=e,this.stackParser=t,this.modifiers=n}buildFromUnknown(e,t){t===void 0&&(t={});var n=t&&t.mechanism||{handled:!0,type:"generic"},i=this.buildCoercingContext(n,t,0).apply(e),s=this.buildParsingContext(t),o=this.parseStacktrace(i,s);return{$exception_list:this.convertToExceptionList(o,n),$exception_level:"error"}}modifyFrames(e){var t=this;return Zr((function*(){for(var n of e)n.stacktrace&&n.stacktrace.frames&&Je(n.stacktrace.frames)&&(n.stacktrace.frames=yield t.applyModifiers(n.stacktrace.frames));return e}))()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:(t=e.syntheticException)==null?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var n,i;return e.cause!=null&&(n=this.parseStacktrace(e.cause,t)),e.stack!=""&&e.stack!=null&&(i=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.skipFirstLines:0),t.chunkIdMap)),pe({},e,{cause:n,stack:i})}applyChunkIds(e,t){return e.map((n=>(n.filename&&t&&(n.chunk_id=t[n.filename]),n)))}applyCoercers(e,t){for(var n of this.coercers)if(n.match(e))return n.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return Zr((function*(){var n=e;for(var i of t.modifiers)n=yield i(n);return n}))()}convertToExceptionList(e,t){var n,i,s,o={type:e.type,value:e.value,mechanism:{type:(n=t.type)!==null&&n!==void 0?n:"generic",handled:(i=t.handled)===null||i===void 0||i,synthetic:(s=e.synthetic)!==null&&s!==void 0&&s}};e.stack&&(o.stacktrace={type:"raw",frames:e.stack});var l=[o];return e.cause!=null&&l.push(...this.convertToExceptionList(e.cause,pe({},t,{handled:!0}))),l}buildParsingContext(e){var t;return{chunkIdMap:N_(this.stackParser),skipFirstLines:(t=e.skipFirstLines)!==null&&t!==void 0?t:1}}buildCoercingContext(e,t,n){n===void 0&&(n=0);var i=(s,o)=>{if(4>=o){var l=this.buildCoercingContext(e,t,o);return this.applyCoercers(s,l)}};return pe({},t,{syntheticException:n==0?t.syntheticException:void 0,mechanism:e,apply:s=>i(s,n),next:s=>i(s,n+1)})}}var Ci="?";function Da(r,e,t,n,i){var s={platform:r,filename:e,function:t==="<anonymous>"?Ci:t,in_app:!0};return xe(n)||(s.lineno=n),xe(i)||(s.colno=i),s}var Rh=(r,e)=>{var t=r.indexOf("safari-extension")!==-1,n=r.indexOf("safari-web-extension")!==-1;return t||n?[r.indexOf("@")!==-1?r.split("@")[0]:Ci,t?"safari-extension:"+e:"safari-web-extension:"+e]:[r,e]},L_=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,D_=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,z_=/\((\S*)(?::(\d+))(?::(\d+))\)/,j_=(r,e)=>{var t=L_.exec(r);if(t){var[,n,i,s]=t;return Da(e,n,Ci,+i,+s)}var o=D_.exec(r);if(o){if(o[2]&&o[2].indexOf("eval")===0){var l=z_.exec(o[2]);l&&(o[2]=l[1],o[3]=l[2],o[4]=l[3])}var[c,u]=Rh(o[1]||Ci,o[2]);return Da(e,u,c,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},H_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,U_=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,B_=(r,e)=>{var t=H_.exec(r);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=U_.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}var i=t[3],s=t[1]||Ci;return[s,i]=Rh(s,i),Da(e,i,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},jc=/\(error: (.*)\)/;class V_{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var n=Lt(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:n?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return Xs(e,"DOMException")}isDOMError(e){return Xs(e,"DOMError")}}class W_{match(e){return(t=>t instanceof Error)(e)}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var n=e.message;return String(n.error&&typeof n.error.message=="string"?n.error.message:n)}getStack(e){return e.stacktrace||e.stack||void 0}}class q_{constructor(){}match(e){return Xs(e,"ErrorEvent")&&e.error!=null}coerce(e,t){var n;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}}var G_=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class K_{match(e){return typeof e=="string"}coerce(e,t){var n,[i,s]=this.getInfos(e);return{type:i??"Error",value:s??e,stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}getInfos(e){var t="Error",n=e,i=e.match(G_);return i&&(t=i[1],n=i[2]),[t,n]}}var $_=["fatal","error","warning","log","info","debug"];function Ih(r,e){e===void 0&&(e=40);var t=Object.keys(r);if(t.sort(),!t.length)return"[object has no keys]";for(var n=t.length;n>0;n--){var i=t.slice(0,n).join(", ");if(e>=i.length)return n===t.length?i:i.length>e?i.slice(0,e)+"...":i}return""}class Y_{match(e){return typeof e=="object"&&e!==null}coerce(e,t){var n,i=this.getErrorPropertyFromObject(e);return i?t.apply(i):{type:this.getType(e),value:this.getValue(e),stack:(n=t.syntheticException)==null?void 0:n.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return Zl(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var t="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&typeof e.message=="string")return e.message;var n=this.getObjectClassName(e);return(n&&n!=="Object"?"'"+n+"'":"Object")+" captured as exception with keys: "+Ih(e)}isSeverityLevel(e){return Lt(e)&&!js(e)&&$_.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if({}.hasOwnProperty.call(e,t)){var n=e[t];if(O_(n))return n}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{return}}}class X_{match(e){return Zl(e)}coerce(e,t){var n,i=e.constructor.name;return{type:i,value:i+" captured as exception with keys: "+Ih(e),stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class J_{match(e){return vh(e)}coerce(e,t){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class Z_{match(e){return Xs(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!Zl(e))return!1;try{var t=e.detail;return t!=null&&typeof t=="object"&&"reason"in t}catch{return!1}}coerce(e,t){var n,i=this.getUnhandledRejectionReason(e);return vh(i)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i),stack:(n=t.syntheticException)==null?void 0:n.stack,synthetic:!0}:t.apply(i)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}}var Oh=function(r,e){var{debugEnabled:t}=e===void 0?{}:e,n={C(i){if(K&&(Ir.DEBUG||Me.POSTHOG_DEBUG||t)&&!xe(K.console)&&K.console){for(var s=("__rrweb_original__"in K.console[i])?K.console[i].__rrweb_original__:K.console[i],o=arguments.length,l=new Array(o>1?o-1:0),c=1;o>c;c++)l[c-1]=arguments[c];s(r,...l)}},info(){for(var i=arguments.length,s=new Array(i),o=0;i>o;o++)s[o]=arguments[o];n.C("log",...s)},warn(){for(var i=arguments.length,s=new Array(i),o=0;i>o;o++)s[o]=arguments[o];n.C("warn",...s)},error(){for(var i=arguments.length,s=new Array(i),o=0;i>o;o++)s[o]=arguments[o];n.C("error",...s)},critical(){for(var i=arguments.length,s=new Array(i),o=0;i>o;o++)s[o]=arguments[o];console.error(r,...s)},uninitializedWarning(i){n.error("You must initialize PostHog before calling "+i)},createLogger:(i,s)=>Oh(r+" "+i,s)};return n},_e=Oh("[PostHog.js]"),xt=_e.createLogger,Q_=xt("[ExternalScriptsLoader]"),Hc=(r,e,t)=>{if(r.config.disable_external_dependency_loading)return Q_.warn(e+" was requested but loading of external scripts is disabled."),t("Loading of external scripts is disabled");var n=me?.querySelectorAll("script");if(n){for(var i,s=function(){if(n[o].src===e){var c=n[o];return c.__posthog_loading_callback_fired?{v:t()}:(c.addEventListener("load",(u=>{c.__posthog_loading_callback_fired=!0,t(void 0,u)})),c.onerror=u=>t(u),{v:void 0})}},o=0;n.length>o;o++)if(i=s())return i.v}var l=()=>{if(!me)return t("document not found");var c=me.createElement("script");if(c.type="text/javascript",c.crossOrigin="anonymous",c.src=e,c.onload=p=>{c.__posthog_loading_callback_fired=!0,t(void 0,p)},c.onerror=p=>t(p),r.config.prepare_external_dependency_script&&(c=r.config.prepare_external_dependency_script(c)),!c)return t("prepare_external_dependency_script returned null");if(r.config.external_scripts_inject_target==="head")me.head.appendChild(c);else{var u,d=me.querySelectorAll("body > script");d.length>0?(u=d[0].parentNode)==null||u.insertBefore(c,d[0]):me.body.appendChild(c)}};me!=null&&me.body?l():me?.addEventListener("DOMContentLoaded",l)};Me.__PosthogExtensions__=Me.__PosthogExtensions__||{},Me.__PosthogExtensions__.loadExternalDependency=(r,e,t)=>{var n="/static/"+e+".js?v="+r.version;if(e==="remote-config"&&(n="/array/"+r.config.token+"/config.js"),e==="toolbar"){var i=3e5;n=n+"&t="+Math.floor(Date.now()/i)*i}var s=r.requestRouter.endpointFor("assets",n);Hc(r,s,t)},Me.__PosthogExtensions__.loadSiteApp=(r,e,t)=>{var n=r.requestRouter.endpointFor("api",e);Hc(r,n,t)};var Nh="$people_distinct_id",Zs="$device_id",ts="__alias",rs="__timers",Uc="$autocapture_disabled_server_side",za="$heatmaps_enabled_server_side",Bc="$exception_capture_enabled_server_side",ja="$error_tracking_suppression_rules",Vc="$error_tracking_capture_extension_exceptions",Wc="$web_vitals_enabled_server_side",Fh="$dead_clicks_enabled_server_side",qc="$product_tours_enabled_server_side",Gc="$web_vitals_allowed_metrics",Ts="$session_recording_remote_config",Qs="$sesid",Lh="$session_is_sampled",_i="$enabled_feature_flags",ns="$early_access_features",Ha="$feature_flag_details",is="$stored_person_properties",Zn="$stored_group_properties",Ua="$surveys",ls="$flag_call_reported",Ba="$flag_call_reported_session_id",Va="$feature_flag_errors",eo="$feature_flag_evaluated_at",Xr="$user_state",Wa="$client_session_props",qa="$capture_rate_limit",Ga="$initial_campaign_params",Ka="$initial_referrer_info",to="$initial_person_info",ro="$epp",Dh="__POSTHOG_TOOLBAR__",Cs="$posthog_cookieless",e1=[Nh,ts,"__cmpns",rs,"$session_recording_enabled_server_side",za,Qs,_i,ja,Xr,ns,Ha,Zn,is,Ua,ls,Ba,Va,eo,Wa,qa,Ga,Ka,ro,to],nc="PostHog loadExternalDependency extension not found.",_n="on_reject",Qr="always",li="anonymous",ci="identified",$a="identified_only",no="visibilitychange",io="beforeunload",vi="$pageview",Xo="$pageleave",Jo="$identify",Kc="$groupidentify";function As(r,e){Je(r)&&r.forEach(e)}function dt(r,e){if(!qe(r))if(Je(r))r.forEach(e);else if(y_(r))r.forEach(((n,i)=>e(n,i)));else for(var t in r)fh.call(r,t)&&e(r[t],t)}var At=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;e>n;n++)t[n-1]=arguments[n];for(var i of t)for(var s in i)i[s]!==void 0&&(r[s]=i[s]);return r};function Hs(r){for(var e=Object.keys(r),t=e.length,n=new Array(t);t--;)n[t]=[e[t],r[e[t]]];return n}var $c=function(r){try{return r()}catch{return}},t1=function(r){return function(){try{for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return r.apply(this,t)}catch(i){_e.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),_e.critical(i)}}},ic=function(r){var e={};return dt(r,(function(t,n){(Lt(t)&&t.length>0||fn(t))&&(e[n]=t)})),e},r1=["herokuapp.com","vercel.app","netlify.app"];function n1(r){var e=r?.hostname;if(!Lt(e))return!1;var t=e.split(".").slice(-2).join(".");for(var n of r1)if(t===n)return!1;return!0}function Nt(r,e,t,n){var{capture:i=!1,passive:s=!0}=n??{};r?.addEventListener(e,t,{capture:i,passive:s})}function zh(r){return r.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(r){return 0>r?Math.ceil(r):Math.floor(r)}),Number.isInteger||(Number.isInteger=function(r){return fn(r)&&isFinite(r)&&Math.floor(r)===r});class so{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,t,n,i){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(i)||0>e||0>t||0>n||0>i||e>0xffffffffffff||t>4095||n>1073741823||i>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=e/Math.pow(2,40),s[1]=e/Math.pow(2,32),s[2]=e/Math.pow(2,24),s[3]=e/Math.pow(2,16),s[4]=e/Math.pow(2,8),s[5]=e,s[6]=112|t>>>8,s[7]=t,s[8]=128|n>>>24,s[9]=n>>>16,s[10]=n>>>8,s[11]=n,s[12]=i>>>24,s[13]=i>>>16,s[14]=i>>>8,s[15]=i,new so(s)}toString(){for(var e="",t=0;this.bytes.length>t;t++)e=e+(this.bytes[t]>>>4).toString(16)+(15&this.bytes[t]).toString(16),t!==3&&t!==5&&t!==7&&t!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new so(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var t=0;16>t;t++){var n=this.bytes[t]-e.bytes[t];if(n!==0)return Math.sign(n)}return 0}}class i1{constructor(){this.I=0,this.S=0,this.k=new s1}generate(){var e=this.generateOrAbort();if(xe(e)){this.I=0;var t=this.generateOrAbort();if(xe(t))throw new Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.I)this.I=e,this.A();else{if(this.I>=e+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return so.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var Yc,jh=r=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;r.length>e;e++)r[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return r};K&&!xe(K.crypto)&&crypto.getRandomValues&&(jh=r=>crypto.getRandomValues(r));class s1{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(jh(this.T),this.N=0),this.T[this.N++]}}var On=()=>o1().toString(),o1=()=>(Yc||(Yc=new i1)).generate(),Di="",a1=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,cn={Yt:()=>!!me,Ut(r){_e.error("cookieStore error: "+r)},Wt(r){if(me){try{for(var e=r+"=",t=me.cookie.split(";").filter((s=>s.length)),n=0;t.length>n;n++){for(var i=t[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(e)===0)return decodeURIComponent(i.substring(e.length,i.length))}}catch{}return null}},Gt(r){var e;try{e=JSON.parse(cn.Wt(r))||{}}catch{}return e},Xt(r,e,t,n,i){if(me)try{var s="",o="",l=(function(d,p){if(p){var h=(function(m,v){if(v===void 0&&(v=me),Di)return Di;if(!v||["localhost","127.0.0.1"].includes(m))return"";for(var y=m.split("."),b=Math.min(y.length,8),P="dmn_chk_"+On();!Di&&b--;){var w=y.slice(b).join("."),x=P+"=1;domain=."+w+";path=/";v.cookie=x+";max-age=3",v.cookie.includes(P)&&(v.cookie=x+";max-age=0",Di=w)}return Di})(d);if(!h){var g=(m=>{var v=m.match(a1);return v?v[0]:""})(d);g!==h&&_e.info("Warning: cookie subdomain discovery mismatch",g,h),h=g}return h?"; domain=."+h:""}return""})(me.location.hostname,n);if(t){var c=new Date;c.setTime(c.getTime()+864e5*t),s="; expires="+c.toUTCString()}i&&(o="; secure");var u=r+"="+encodeURIComponent(JSON.stringify(e))+s+"; SameSite=Lax; path=/"+l+o;return u.length>3686.4&&_e.warn("cookieStore warning: large cookie, len="+u.length),me.cookie=u,u}catch{return}},Jt(r,e){if(me!=null&&me.cookie)try{cn.Xt(r,"",-1,e)}catch{return}}},Zo=null,yt={Yt(){if(!zn(Zo))return Zo;var r=!0;if(xe(K))r=!1;else try{var e="__mplssupport__";yt.Xt(e,"xyz"),yt.Wt(e)!=='"xyz"'&&(r=!1),yt.Jt(e)}catch{r=!1}return r||_e.error("localStorage unsupported; falling back to cookie store"),Zo=r,r},Ut(r){_e.error("localStorage error: "+r)},Wt(r){try{return K?.localStorage.getItem(r)}catch(e){yt.Ut(e)}return null},Gt(r){try{return JSON.parse(yt.Wt(r))||{}}catch{}return null},Xt(r,e){try{K?.localStorage.setItem(r,JSON.stringify(e))}catch(t){yt.Ut(t)}},Jt(r){try{K?.localStorage.removeItem(r)}catch(e){yt.Ut(e)}}},l1=[Zs,"distinct_id",Qs,Lh,ro,to,Xr],Ms={},c1={Yt:()=>!0,Ut(r){_e.error("memoryStorage error: "+r)},Wt:r=>Ms[r]||null,Gt:r=>Ms[r]||null,Xt(r,e){Ms[r]=e},Jt(r){delete Ms[r]}},$n=null,sr={Yt(){if(!zn($n))return $n;if($n=!0,xe(K))$n=!1;else try{var r="__support__";sr.Xt(r,"xyz"),sr.Wt(r)!=='"xyz"'&&($n=!1),sr.Jt(r)}catch{$n=!1}return $n},Ut(r){_e.error("sessionStorage error: ",r)},Wt(r){try{return K?.sessionStorage.getItem(r)}catch(e){sr.Ut(e)}return null},Gt(r){try{return JSON.parse(sr.Wt(r))||null}catch{}return null},Xt(r,e){try{K?.sessionStorage.setItem(r,JSON.stringify(e))}catch(t){sr.Ut(t)}},Jt(r){try{K?.sessionStorage.removeItem(r)}catch(e){sr.Ut(e)}}};class u1{constructor(e){this._instance=e}get Rt(){return this._instance.config}get consent(){return this.Kt()?0:this.Qt}isOptedOut(){return this.Rt.cookieless_mode===Qr||this.consent===0||this.consent===-1&&(this.Rt.opt_out_capturing_by_default||this.Rt.cookieless_mode===_n)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}optInOut(e){this.tr.Xt(this.er,e?1:0,this.Rt.cookie_expiration,this.Rt.cross_subdomain_cookie,this.Rt.secure_cookie)}reset(){this.tr.Jt(this.er,this.Rt.cross_subdomain_cookie)}get er(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:n}=this._instance.config;return n||(t?t+e:"__ph_opt_in_out_"+e)}get Qt(){var e=this.tr.Wt(this.er);return Ko(e)?1:Be(w_,e)?0:-1}get tr(){if(!this.rr){var e=this.Rt.opt_out_capturing_persistence_type;this.rr=e==="localStorage"?yt:cn;var t=e==="localStorage"?cn:yt;t.Wt(this.er)&&(this.rr.Wt(this.er)||this.optInOut(Ko(t.Wt(this.er))),t.Jt(this.er,this.Rt.cross_subdomain_cookie))}return this.rr}Kt(){return!!this.Rt.respect_dnt&&[Lr?.doNotTrack,Lr?.msDoNotTrack,Me.doNotTrack].some((e=>Ko(e)))}}var Rs=xt("[Dead Clicks]"),d1=()=>!0,h1=r=>{var e,t=!((e=r.instance.persistence)==null||!e.get_property(Fh)),n=r.instance.config.capture_dead_clicks;return bn(n)?n:!!Vt(n)||t};class Xc{get lazyLoadedDeadClicksAutocapture(){return this.ir}constructor(e,t,n){this.instance=e,this.isEnabled=t,this.onCapture=n,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[Fh]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.nr((()=>{this.sr()})):this.stop()}nr(e){var t,n;(t=Me.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture&&e(),(n=Me.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",(i=>{i?Rs.error("failed to load script",i):e()}))}sr(){var e;if(me){if(!this.ir&&(e=Me.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var t=Vt(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.ir=Me.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.ir.start(me),Rs.info("starting...")}}else Rs.error("`document` not found. Cannot start.")}stop(){this.ir&&(this.ir.stop(),this.ir=void 0,Rs.info("stopping..."))}}var Qo=xt("[SegmentIntegration]"),Hh="posthog-js";function Uh(r,e){var{organization:t,projectId:n,prefix:i,severityAllowList:s=["error"],sendExceptionsToPostHog:o=!0}=e===void 0?{}:e;return l=>{var c,u,d,p,h;if(s!=="*"&&!s.includes(l.level)||!r.__loaded)return l;l.tags||(l.tags={});var g=r.requestRouter.endpointFor("ui","/project/"+r.config.token+"/person/"+r.get_distinct_id());l.tags["PostHog Person URL"]=g,r.sessionRecordingStarted()&&(l.tags["PostHog Recording URL"]=r.get_session_replay_url({withTimestamp:!0}));var m,v=((c=l.exception)==null?void 0:c.values)||[],y=v.map((P=>pe({},P,{stacktrace:P.stacktrace?pe({},P.stacktrace,{type:"raw",frames:(P.stacktrace.frames||[]).map((w=>pe({},w,{platform:"web:javascript"})))}):void 0}))),b={$exception_message:((u=v[0])==null?void 0:u.value)||l.message,$exception_type:(d=v[0])==null?void 0:d.type,$exception_level:l.level,$exception_list:y,$sentry_event_id:l.event_id,$sentry_exception:l.exception,$sentry_exception_message:((p=v[0])==null?void 0:p.value)||l.message,$sentry_exception_type:(h=v[0])==null?void 0:h.type,$sentry_tags:l.tags};return t&&n&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+t+"/issues/?project="+n+"&query="+l.event_id),o&&((m=r.exceptions)==null||m.sendExceptionEvent(b)),l}}class f1{constructor(e,t,n,i,s,o){this.name=Hh,this.setupOnce=function(l){l(Uh(e,{organization:t,projectId:n,prefix:i,severityAllowList:s,sendExceptionsToPostHog:o==null||o}))}}}class Jc{constructor(e){this.ar=(t,n,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength)&&(_e.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:t,changeReason:i}),this.lr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.ur()}ur(){var e;this.hr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.ar)}destroy(){var e;(e=this.hr)==null||e.call(this),this.hr=void 0}doPageView(e,t){var n,i=this.cr(e,t);return this.lr={pathname:(n=K?.location.pathname)!==null&&n!==void 0?n:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),i}doPageLeave(e){var t;return this.cr(e,(t=this.lr)==null?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.lr)==null?void 0:e.pageViewId}}cr(e,t){var n=this.lr;if(!n)return{$pageview_id:t};var i={$pageview_id:t,$prev_pageview_id:n.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:l,maxScrollY:c,maxContentHeight:u,lastContentY:d,maxContentY:p}=s;if(!(xe(o)||xe(l)||xe(c)||xe(u)||xe(d)||xe(p))){o=Math.ceil(o),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u),d=Math.ceil(d),p=Math.ceil(p);var h=o>1?dn(l/o,0,1,_e):1,g=o>1?dn(c/o,0,1,_e):1,m=u>1?dn(d/u,0,1,_e):1,v=u>1?dn(p/u,0,1,_e):1;i=At(i,{$prev_pageview_last_scroll:l,$prev_pageview_last_scroll_percentage:h,$prev_pageview_max_scroll:c,$prev_pageview_max_scroll_percentage:g,$prev_pageview_last_content:d,$prev_pageview_last_content_percentage:m,$prev_pageview_max_content:p,$prev_pageview_max_content_percentage:v})}}return n.pathname&&(i.$prev_pageview_pathname=n.pathname),n.timestamp&&(i.$prev_pageview_duration=(e.getTime()-n.timestamp.getTime())/1e3),i}}var oo=r=>{var e=me?.createElement("a");return xe(e)?null:(e.href=r,e)},ao=function(r,e){for(var t,n=((r.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;n.length>i;i++){var s=n[i].split("=");if(s[0]===e){t=s;break}}if(!Je(t)||2>t.length)return"";var o=t[1];try{o=decodeURIComponent(o)}catch{_e.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},gs=function(r,e,t){if(!r||!e||!e.length)return r;for(var n=r.split("#"),i=n[1],s=(n[0]||"").split("?"),o=s[1],l=s[0],c=(o||"").split("&"),u=[],d=0;c.length>d;d++){var p=c[d].split("=");Je(p)&&(e.includes(p[0])?u.push(p[0]+"="+t):u.push(c[d]))}var h=l;return o!=null&&(h+="?"+u.join("&")),i!=null&&(h+="#"+i),h},lo=function(r,e){var t=r.match(new RegExp(e+"=([^&]*)"));return t?t[1]:null},Is="https?://(.*)",Ai=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],v1=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Ai],ps="<masked>",g1=["li_fat_id"];function Bh(r,e,t){if(!me)return{};var n,i=e?[...Ai,...t||[]]:[],s=Vh(gs(me.URL,i,ps),r),o=(n={},dt(g1,(function(l){var c=cn.Wt(l);n[l]=c||null})),n);return At(o,s)}function Vh(r,e){var t=v1.concat(e||[]),n={};return dt(t,(function(i){var s=ao(r,i);n[i]=s||null})),n}function Wh(r){var e=(function(s){return s?s.search(Is+"google.([^/?]*)")===0?"google":s.search(Is+"bing.com")===0?"bing":s.search(Is+"yahoo.com")===0?"yahoo":s.search(Is+"duckduckgo.com")===0?"duckduckgo":null:null})(r),t=e!="yahoo"?"q":"p",n={};if(!zn(e)){n.$search_engine=e;var i=me?ao(me.referrer,t):"";i.length&&(n.ph_keyword=i)}return n}function Zc(){return navigator.language||navigator.userLanguage}var co="$direct";function qh(){return me?.referrer||co}function Gh(r,e){var t=r?[...Ai,...e||[]]:[],n=ir?.href.substring(0,1e3);return{r:qh().substring(0,1e3),u:n?gs(n,t,ps):void 0}}function Kh(r){var e,{r:t,u:n}=r,i={$referrer:t,$referring_domain:t==null?void 0:t==co?co:(e=oo(t))==null?void 0:e.host};if(n){i.$current_url=n;var s=oo(n);i.$host=s?.host,i.$pathname=s?.pathname;var o=Vh(n);At(i,o)}if(t){var l=Wh(t);At(i,l)}return i}function $h(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function p1(){try{return new Date().getTimezoneOffset()}catch{return}}var m1=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class ea{constructor(e,t){this.Rt=e,this.props={},this.dr=!1,this.vr=(n=>{var i="";return n.token&&(i=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+i+"_posthog"})(e),this.tr=this.pr(e),this.load(),e.debug&&_e.info("Persistence loaded",e.persistence,pe({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.gr}pr(e){m1.indexOf(e.persistence.toLowerCase())===-1&&(_e.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=(function(i){i===void 0&&(i=[]);var s=[...l1,...i];return pe({},yt,{Gt(o){try{var l={};try{l=cn.Gt(o)||{}}catch{}var c=At(l,JSON.parse(yt.Wt(o)||"{}"));return yt.Xt(o,c),c}catch{}return null},Xt(o,l,c,u,d,p){try{yt.Xt(o,l,void 0,void 0,p);var h={};s.forEach((g=>{l[g]&&(h[g]=l[g])})),Object.keys(h).length&&cn.Xt(o,h,c,u,d,p)}catch(g){yt.Ut(g)}},Jt(o,l){try{K?.localStorage.removeItem(o),cn.Jt(o,l)}catch(c){yt.Ut(c)}}})})(e.cookie_persisted_properties||[]),n=e.persistence.toLowerCase();return n==="localstorage"&&yt.Yt()?yt:n==="localstorage+cookie"&&t.Yt()?t:n==="sessionstorage"&&sr.Yt()?sr:n==="memory"?c1:n==="cookie"?cn:t.Yt()?t:cn}mr(e){var t=e??this.Rt.feature_flag_cache_ttl_ms;if(!t||0>=t)return!1;var n=this.props[eo];return!n||typeof n!="number"||Date.now()-n>t}properties(){var e={};return dt(this.props,((t,n)=>{if(n===_i&&Vt(t)){if(!this.mr())for(var i=Object.keys(t),s=0;i.length>s;s++)e["$feature/"+i[s]]=t[i[s]]}else e1.indexOf(n)===-1&&(e[n]=t)})),e}load(){if(!this.gr){var e=this.tr.Gt(this.vr);e&&(this.props=At({},e))}}save(){this.gr||this.tr.Xt(this.vr,this.props,this.yr,this.br,this.wr,this.Rt.debug)}remove(){this.tr.Jt(this.vr,!1),this.tr.Jt(this.vr,!0)}clear(){this.remove(),this.props={}}register_once(e,t,n){if(Vt(e)){xe(t)&&(t="None"),this.yr=xe(n)?this._r:n;var i=!1;if(dt(e,((s,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==t||(this.props[o]=s,i=!0)})),i)return this.save(),!0}return!1}register(e,t){if(Vt(e)){this.yr=xe(t)?this._r:t;var n=!1;if(dt(e,((i,s)=>{e.hasOwnProperty(s)&&this.props[s]!==i&&(this.props[s]=i,n=!0)})),n)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.dr){var e=Bh(this.Rt.custom_campaign_params,this.Rt.mask_personal_data_properties,this.Rt.custom_personal_data_properties);mi(ic(e))||this.register(e),this.dr=!0}}update_search_keyword(){var e;this.register((e=me?.referrer)?Wh(e):{})}update_referrer_info(){var e;this.register_once({$referrer:qh(),$referring_domain:me!=null&&me.referrer&&((e=oo(me.referrer))==null?void 0:e.host)||co},void 0)}set_initial_person_info(){this.props[Ga]||this.props[Ka]||this.register_once({[to]:Gh(this.Rt.mask_personal_data_properties,this.Rt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};dt([Ka,Ga],(o=>{var l=this.props[o];l&&dt(l,(function(c,u){e["$initial_"+Oa(u)]=c}))}));var t,n,i=this.props[to];if(i){var s=(t=Kh(i),n={},dt(t,(function(o,l){n["$initial_"+Oa(l)]=o})),n);At(e,s)}return e}safe_merge(e){return dt(this.props,(function(t,n){n in e||(e[n]=t)})),e}update_config(e,t,n){if(this._r=this.yr=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!n),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence||!((o,l)=>{if(o.length!==l.length)return!1;var c=[...o].sort(),u=[...l].sort();return c.every(((d,p)=>d===u[p]))})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[])){var i=this.pr(e),s=this.props;this.clear(),this.tr=i,this.props=s,this.save()}}set_disabled(e){this.gr=e,this.gr?this.remove():this.save()}set_cross_subdomain(e){e!==this.br&&(this.br=e,this.remove(),this.save())}set_secure(e){e!==this.wr&&(this.wr=e,this.remove(),this.save())}set_event_timer(e,t){var n=this.props[rs]||{};n[e]=t,this.props[rs]=n,this.save()}remove_event_timer(e){var t=(this.props[rs]||{})[e];return xe(t)||(delete this.props[rs][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}var zi={Activation:"events",Cancellation:"cancelEvents"},ta={Popover:"popover",API:"api",Widget:"widget"},ss={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},ra={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},Ya={Popover:"popover",Inline:"inline"},_1={SHOWN:"product tour shown"},Qc={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},eu=xt("[RateLimiter]");class y1{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=t=>{var n=t.text;if(n&&n.length)try{(JSON.parse(n).quota_limited||[]).forEach((i=>{eu.info((i||"events")+" is quota limited."),this.serverLimits[i]=new Date().getTime()+6e4}))}catch(i){return void eu.warn('could not rate limit - continuing. Error: "'+i?.message+'"',{text:n})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var t,n,i;e===void 0&&(e=!1);var{captureEventsBurstLimit:s,captureEventsPerSecond:o}=this,l=new Date().getTime(),c=(t=(n=this.instance.persistence)==null?void 0:n.get_property(qa))!==null&&t!==void 0?t:{tokens:s,last:l};c.tokens+=(l-c.last)/1e3*o,c.last=l,c.tokens>s&&(c.tokens=s);var u=1>c.tokens;return u||e||(c.tokens=Math.max(0,c.tokens-1)),!u||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+o+" events per second and "+s+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(i=this.instance.persistence)==null||i.set_property(qa,c),{isRateLimited:u,remainingTokens:c.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return t!==!1&&new Date().getTime()<t}}var ji=xt("[RemoteConfig]");class Yh{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=Me._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Ir(e){var t,n;(t=Me.__PosthogExtensions__)!=null&&t.loadExternalDependency?(n=Me.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}Cr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(t){e(t.json)}})}load(){try{if(this.remoteConfig)return ji.info("Using preloaded remote config",this.remoteConfig),this.Sr(this.remoteConfig),void this.kr();if(this._instance.Tr())return void ji.warn("Remote config is disabled. Falling back to local config.");this.Ir((e=>{if(!e)return ji.info("No config found after loading remote JS config. Falling back to JSON."),void this.Cr((t=>{this.Sr(t),this.kr()}));this.Sr(e),this.kr()}))}catch(e){ji.error("Error loading remote config",e)}}stop(){this.Ar&&(clearInterval(this.Ar),this.Ar=void 0)}refresh(){this._instance.Tr()||me?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}kr(){var e;if(!this.Ar){var t=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;t!==0&&(this.Ar=setInterval((()=>{this.refresh()}),t))}}Sr(e){var t;e||ji.error("Failed to fetch remote config from PostHog."),this._instance.Sr(e??{}),e?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(t=this._instance.featureFlags)==null||t.ensureFlagsLoaded())}}var ln={GZipJS:"gzip-js",Base64:"base64"},Vr=Uint8Array,Ar=Uint16Array,Mi=Uint32Array,sc=new Vr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),oc=new Vr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),tu=new Vr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Xh=function(r,e){for(var t=new Ar(31),n=0;31>n;++n)t[n]=e+=1<<r[n-1];var i=new Mi(t[30]);for(n=1;30>n;++n)for(var s=t[n];t[n+1]>s;++s)i[s]=s-t[n]<<5|n;return[t,i]},Jh=Xh(sc,2),Xa=Jh[1];Jh[0][28]=258,Xa[258]=28;for(var ru=Xh(oc,0)[1],Zh=new Ar(32768),ht=0;32768>ht;++ht){var ui=(43690&ht)>>>1|(21845&ht)<<1;Zh[ht]=((65280&(ui=(61680&(ui=(52428&ui)>>>2|(13107&ui)<<2))>>>4|(3855&ui)<<4))>>>8|(255&ui)<<8)>>>1}var cs=function(r,e,t){for(var n=r.length,i=0,s=new Ar(e);n>i;++i)++s[r[i]-1];var o,l=new Ar(e);for(i=0;e>i;++i)l[i]=l[i-1]+s[i-1]<<1;for(o=new Ar(n),i=0;n>i;++i)o[i]=Zh[l[r[i]-1]++]>>>15-r[i];return o},ii=new Vr(288);for(ht=0;144>ht;++ht)ii[ht]=8;for(ht=144;256>ht;++ht)ii[ht]=9;for(ht=256;280>ht;++ht)ii[ht]=7;for(ht=280;288>ht;++ht)ii[ht]=8;var uo=new Vr(32);for(ht=0;32>ht;++ht)uo[ht]=5;var b1=cs(ii,9),x1=cs(uo,5),Qh=function(r){return(r/8>>0)+(7&r&&1)},ef=function(r,e,t){(t==null||t>r.length)&&(t=r.length);var n=new(r instanceof Ar?Ar:r instanceof Mi?Mi:Vr)(t-e);return n.set(r.subarray(e,t)),n},pn=function(r,e,t){var n=e/8>>0;r[n]|=t<<=7&e,r[n+1]|=t>>>8},Hi=function(r,e,t){var n=e/8>>0;r[n]|=t<<=7&e,r[n+1]|=t>>>8,r[n+2]|=t>>>16},na=function(r,e){for(var t=[],n=0;r.length>n;++n)r[n]&&t.push({s:n,f:r[n]});var i=t.length,s=t.slice();if(!i)return[new Vr(0),0];if(i==1){var o=new Vr(t[0].s+1);return o[t[0].s]=1,[o,1]}t.sort((function(T,R){return T.f-R.f})),t.push({s:-1,f:25001});var l=t[0],c=t[1],u=0,d=1,p=2;for(t[0]={s:-1,f:l.f+c.f,l,r:c};d!=i-1;)l=t[t[p].f>t[u].f?u++:p++],c=t[u!=d&&t[p].f>t[u].f?u++:p++],t[d++]={s:-1,f:l.f+c.f,l,r:c};var h=s[0].s;for(n=1;i>n;++n)s[n].s>h&&(h=s[n].s);var g=new Ar(h+1),m=Ja(t[d-1],g,0);if(m>e){n=0;var v=0,y=m-e,b=1<<y;for(s.sort((function(T,R){return g[R.s]-g[T.s]||T.f-R.f}));i>n;++n){var P=s[n].s;if(e>=g[P])break;v+=b-(1<<m-g[P]),g[P]=e}for(v>>>=y;v>0;){var w=s[n].s;e>g[w]?v-=1<<e-g[w]++-1:++n}for(;n>=0&&v;--n){var x=s[n].s;g[x]==e&&(--g[x],++v)}m=e}return[new Vr(g),m]},Ja=function(r,e,t){return r.s==-1?Math.max(Ja(r.l,e,t+1),Ja(r.r,e,t+1)):e[r.s]=t},nu=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new Ar(++e),n=0,i=r[0],s=1,o=function(c){t[n++]=c},l=1;e>=l;++l)if(r[l]==i&&l!=e)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=r[l]}return[t.subarray(0,n),e]},Ui=function(r,e){for(var t=0,n=0;e.length>n;++n)t+=r[n]*e[n];return t},Za=function(r,e,t){var n=t.length,i=Qh(e+2);r[i]=255&n,r[i+1]=n>>>8,r[i+2]=255^r[i],r[i+3]=255^r[i+1];for(var s=0;n>s;++s)r[i+s+4]=t[s];return 8*(i+4+n)},iu=function(r,e,t,n,i,s,o,l,c,u,d){pn(e,d++,t),++i[256];for(var p=na(i,15),h=p[0],g=p[1],m=na(s,15),v=m[0],y=m[1],b=nu(h),P=b[0],w=b[1],x=nu(v),T=x[0],R=x[1],C=new Ar(19),S=0;P.length>S;++S)C[31&P[S]]++;for(S=0;T.length>S;++S)C[31&T[S]]++;for(var A=na(C,7),I=A[0],M=A[1],L=19;L>4&&!I[tu[L-1]];--L);var W,j,Y,le,se=u+5<<3,Q=Ui(i,ii)+Ui(s,uo)+o,ce=Ui(i,h)+Ui(s,v)+o+14+3*L+Ui(C,I)+(2*C[16]+3*C[17]+7*C[18]);if(Q>=se&&ce>=se)return Za(e,d,r.subarray(c,c+u));if(pn(e,d,1+(Q>ce)),d+=2,Q>ce){W=cs(h,g),j=h,Y=cs(v,y),le=v;var he=cs(I,M);for(pn(e,d,w-257),pn(e,d+5,R-1),pn(e,d+10,L-4),d+=14,S=0;L>S;++S)pn(e,d+3*S,I[tu[S]]);d+=3*L;for(var ae=[P,T],re=0;2>re;++re){var ie=ae[re];for(S=0;ie.length>S;++S)pn(e,d,he[Pe=31&ie[S]]),d+=I[Pe],Pe>15&&(pn(e,d,ie[S]>>>5&127),d+=ie[S]>>>12)}}else W=b1,j=ii,Y=x1,le=uo;for(S=0;l>S;++S)if(n[S]>255){var Pe;Hi(e,d,W[257+(Pe=n[S]>>>18&31)]),d+=j[Pe+257],Pe>7&&(pn(e,d,n[S]>>>23&31),d+=sc[Pe]);var we=31&n[S];Hi(e,d,Y[we]),d+=le[we],we>3&&(Hi(e,d,n[S]>>>5&8191),d+=oc[we])}else Hi(e,d,W[n[S]]),d+=j[n[S]];return Hi(e,d,W[256]),d+j[256]},w1=new Mi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),S1=(function(){for(var r=new Mi(256),e=0;256>e;++e){for(var t=e,n=9;--n;)t=(1&t&&3988292384)^t>>>1;r[e]=t}return r})(),ia=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8};function P1(r,e){e===void 0&&(e={});var t=(function(){var p=4294967295;return{p(h){for(var g=p,m=0;h.length>m;++m)g=S1[255&g^h[m]]^g>>>8;p=g},d(){return 4294967295^p}}})(),n=r.length;t.p(r);var i,s,o,l,c,u=(l=10+((i=e).filename&&i.filename.length+1||0),c=8,(function(p,h,g,m,v,y){var b=p.length,P=new Vr(m+b+5*(1+Math.floor(b/7e3))+v),w=P.subarray(m,P.length-v),x=0;if(!h||8>b)for(var T=0;b>=T;T+=65535){var R=T+65535;b>R?x=Za(w,x,p.subarray(T,R)):(w[T]=!0,x=Za(w,x,p.subarray(T,b)))}else{for(var C=w1[h-1],S=C>>>13,A=8191&C,I=(1<<g)-1,M=new Ar(32768),L=new Ar(I+1),W=Math.ceil(g/3),j=2*W,Y=function(tr){return(p[tr]^p[tr+1]<<W^p[tr+2]<<j)&I},le=new Mi(25e3),se=new Ar(288),Q=new Ar(32),ce=0,he=0,ae=(T=0,0),re=0,ie=0;b>T;++T){var Pe=Y(T),we=32767&T,De=L[Pe];if(M[we]=De,L[Pe]=we,T>=re){var Le=b-T;if((ce>7e3||ae>24576)&&Le>423){x=iu(p,w,0,le,se,Q,he,ae,ie,T-ie,x),ae=ce=he=0,ie=T;for(var Ce=0;286>Ce;++Ce)se[Ce]=0;for(Ce=0;30>Ce;++Ce)Q[Ce]=0}var Ee=2,Ne=0,Ve=A,$e=we-De&32767;if(Le>2&&Pe==Y(T-$e))for(var Qe=Math.min(S,Le)-1,gt=Math.min(32767,T),pt=Math.min(258,Le);gt>=$e&&--Ve&&we!=De;){if(p[T+Ee]==p[T+Ee-$e]){for(var rt=0;pt>rt&&p[T+rt]==p[T+rt-$e];++rt);if(rt>Ee){if(Ee=rt,Ne=$e,rt>Qe)break;var ke=Math.min($e,rt-2),Ie=0;for(Ce=0;ke>Ce;++Ce){var et=T-$e+Ce+32768&32767,lr=et-M[et]+32768&32767;lr>Ie&&(Ie=lr,De=et)}}}$e+=(we=De)-(De=M[we])+32768&32767}if(Ne){le[ae++]=268435456|Xa[Ee]<<18|ru[Ne];var Dt=31&Xa[Ee],cr=31&ru[Ne];he+=sc[Dt]+oc[cr],++se[257+Dt],++Q[cr],re=T+Ee,++ce}else le[ae++]=p[T],++se[p[T]]}}x=iu(p,w,!0,le,se,Q,he,ae,ie,T-ie,x)}return ef(P,0,m+Qh(x)+v)})(s=r,(o=e).level==null?6:o.level,o.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):12+o.mem,l,c)),d=u.length;return(function(p,h){var g=h.filename;if(p[0]=31,p[1]=139,p[2]=8,p[8]=2>h.level?4:h.level==9?2:0,p[9]=3,h.mtime!=0&&ia(p,4,Math.floor(new Date(h.mtime||Date.now())/1e3)),g){p[3]=8;for(var m=0;g.length>=m;++m)p[m+10]=g.charCodeAt(m)}})(u,e),ia(u,d-8,t.d()),ia(u,d-4,n),u}var E1=!!Ia||!!Ra,tf="text/plain",ho=function(r,e,t){var n;t===void 0&&(t=!0);var[i,s]=r.split("?"),o=pe({},e),l=(n=s?.split("&").map((u=>{var d,[p,h]=u.split("="),g=t&&(d=o[p])!==null&&d!==void 0?d:h;return delete o[p],p+"="+g})))!==null&&n!==void 0?n:[],c=(function(u,d){var p,h;d===void 0&&(d="&");var g=[];return dt(u,(function(m,v){xe(m)||xe(v)||v==="undefined"||(p=encodeURIComponent((y=>y instanceof File)(m)?m.name:m.toString()),h=encodeURIComponent(v),g[g.length]=h+"="+p)})),g.join(d)})(o);return c&&l.push(c),i+"?"+l.join("&")},yi=(r,e)=>JSON.stringify(r,((t,n)=>typeof n=="bigint"?n.toString():n),e),sa=r=>{if(r.zt)return r.zt;var{data:e,compression:t}=r;if(e){if(t===ln.GZipJS){var n=P1((function(l,c){var u=l.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(l);for(var d=new Vr(l.length+(l.length>>>1)),p=0,h=function(y){d[p++]=y},g=0;u>g;++g){if(p+5>d.length){var m=new Vr(p+8+(u-g<<1));m.set(d),d=m}var v=l.charCodeAt(g);128>v?h(v):2048>v?(h(192|v>>>6),h(128|63&v)):v>55295&&57344>v?(h(240|(v=65536+(1047552&v)|1023&l.charCodeAt(++g))>>>18),h(128|v>>>12&63),h(128|v>>>6&63),h(128|63&v)):(h(224|v>>>12),h(128|v>>>6&63),h(128|63&v))}return ef(d,0,p)})(yi(e)),{mtime:0});return{contentType:tf,body:n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength),estimatedSize:n.byteLength}}if(t===ln.Base64){var i=(function(l){return l&&btoa(encodeURIComponent(l).replace(/%([0-9A-F]{2})/g,((c,u)=>String.fromCharCode(parseInt(u,16)))))})(yi(e)),s=(l=>"data="+encodeURIComponent(typeof l=="string"?l:yi(l)))(i);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}var o=yi(e);return{contentType:"application/json",body:o,estimatedSize:new Blob([o]).size}}},k1=(function(){var r=Zr((function*(e){var t=yi(e.data),n=yield(function(s,o){return dh.apply(this,arguments)})(t,Ir.DEBUG);if(!n)return e;var i=yield n.arrayBuffer();return pe({},e,{zt:{contentType:tf,body:i,estimatedSize:i.byteLength}})}));return function(e){return r.apply(this,arguments)}})(),Us=[];Ra&&Us.push({transport:"fetch",method(r){var e,t,{contentType:n,body:i,estimatedSize:s}=(e=sa(r))!==null&&e!==void 0?e:{},o=new Headers;dt(r.headers,(function(d,p){o.append(p,d)})),n&&o.append("Content-Type",n);var l=r.url,c=null;if(Rc){var u=new Rc;c={signal:u.signal,timeout:setTimeout((()=>u.abort()),r.timeout)}}Ra(l,pe({method:r?.method||"GET",headers:o,keepalive:r.method==="POST"&&52428.8>(s||0),body:i,signal:(t=c)==null?void 0:t.signal},r.fetchOptions)).then((d=>d.text().then((p=>{var h={statusCode:d.status,text:p};if(d.status===200)try{h.json=JSON.parse(p)}catch(g){_e.error(g)}r.callback==null||r.callback(h)})))).catch((d=>{_e.error(d),r.callback==null||r.callback({statusCode:0,error:d})})).finally((()=>c?clearTimeout(c.timeout):null))}}),Ia&&Us.push({transport:"XHR",method(r){var e,t=new Ia;t.open(r.method||"GET",r.url,!0);var{contentType:n,body:i}=(e=sa(r))!==null&&e!==void 0?e:{};dt(r.headers,(function(s,o){t.setRequestHeader(o,s)})),n&&t.setRequestHeader("Content-Type",n),r.timeout&&(t.timeout=r.timeout),r.disableXHRCredentials||(t.withCredentials=!0),t.onreadystatechange=()=>{if(t.readyState===4){var s={statusCode:t.status,text:t.responseText};if(t.status===200)try{s.json=JSON.parse(t.responseText)}catch{}r.callback==null||r.callback(s)}},t.send(i)}}),Lr!=null&&Lr.sendBeacon&&Us.push({transport:"sendBeacon",method(r){var e=ho(r.url,{beacon:"1"});try{var t,{contentType:n,body:i}=(t=sa(r))!==null&&t!==void 0?t:{};if(!i)return;var s=i instanceof Blob?i:new Blob([i],{type:n});Lr.sendBeacon(e,s)}catch{}}});var Qa=3e3;class T1{constructor(e,t){this.Er=!0,this.Rr=[],this.Nr=dn(t?.flush_interval_ms||Qa,250,5e3,_e.createLogger("flush interval"),Qa),this.Mr=e}enqueue(e){this.Rr.push(e),this.Fr||this.Or()}unload(){this.Pr();var e=this.Rr.length>0?this.Lr():{},t=Object.values(e);[...t.filter((n=>n.url.indexOf("/e")===0)),...t.filter((n=>n.url.indexOf("/e")!==0))].map((n=>{this.Mr(pe({},n,{transport:"sendBeacon"}))}))}enable(){this.Er=!1,this.Or()}Or(){var e=this;this.Er||(this.Fr=setTimeout((()=>{if(this.Pr(),this.Rr.length>0){var t=this.Lr(),n=function(){var s=t[i],o=new Date().getTime();s.data&&Je(s.data)&&dt(s.data,(l=>{l.offset=Math.abs(l.timestamp-o),delete l.timestamp})),e.Mr(s)};for(var i in t)n()}}),this.Nr))}Pr(){clearTimeout(this.Fr),this.Fr=void 0}Lr(){var e={};return dt(this.Rr,(t=>{var n,i=t,s=(i?i.batchKey:null)||i.url;xe(e[s])&&(e[s]=pe({},i,{data:[]})),(n=e[s].data)==null||n.push(i.data)})),this.Rr=[],e}}var C1=["retriesPerformedSoFar"];class A1{constructor(e){this.Dr=!1,this.Br=3e3,this.Rr=[],this._instance=e,this.Rr=[],this.jr=!0,!xe(K)&&"onLine"in K.navigator&&(this.jr=K.navigator.onLine,this.qr=()=>{this.jr=!0,this.Zr()},this.$r=()=>{this.jr=!1},Nt(K,"online",this.qr),Nt(K,"offline",this.$r))}get length(){return this.Rr.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,n=uh(e,C1);fi(t)&&(n.url=ho(n.url,{retry_count:t})),this._instance._send_request(pe({},n,{callback:i=>{i.statusCode===200||i.statusCode>=400&&500>i.statusCode||(t??0)>=10?n.callback==null||n.callback(i):this.Hr(pe({retriesPerformedSoFar:t},n))}}))}Hr(e){var t=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=t+1;var n=(function(o){var l=3e3*Math.pow(2,o),c=l/2,u=Math.min(18e5,l),d=Math.random()-.5;return Math.ceil(u+d*(u-c))})(t),i=Date.now()+n;this.Rr.push({retryAt:i,requestOptions:e});var s="Enqueued failed request for retry in "+n;navigator.onLine||(s+=" (Browser is offline)"),_e.warn(s),this.Dr||(this.Dr=!0,this.Vr())}Vr(){if(this.zr&&clearTimeout(this.zr),this.Rr.length===0)return this.Dr=!1,void(this.zr=void 0);this.zr=setTimeout((()=>{this.jr&&this.Rr.length>0&&this.Zr(),this.Vr()}),this.Br)}Zr(){var e=Date.now(),t=[],n=this.Rr.filter((s=>e>s.retryAt||(t.push(s),!1)));if(this.Rr=t,n.length>0)for(var{requestOptions:i}of n)this.retriableRequest(i)}unload(){for(var{requestOptions:e}of(this.zr&&(clearTimeout(this.zr),this.zr=void 0),this.Dr=!1,xe(K)||(this.qr&&(K.removeEventListener("online",this.qr),this.qr=void 0),this.$r&&(K.removeEventListener("offline",this.$r),this.$r=void 0)),this.Rr))try{this._instance._send_request(pe({},e,{transport:"sendBeacon"}))}catch(t){_e.error(t)}this.Rr=[]}}class M1{constructor(e){this.Yr=()=>{var t,n,i,s;this.Ur||(this.Ur={});var o=this.scrollElement(),l=this.scrollY(),c=o?Math.max(0,o.scrollHeight-o.clientHeight):0,u=l+(o?.clientHeight||0),d=o?.scrollHeight||0;this.Ur.lastScrollY=Math.ceil(l),this.Ur.maxScrollY=Math.max(l,(t=this.Ur.maxScrollY)!==null&&t!==void 0?t:0),this.Ur.maxScrollHeight=Math.max(c,(n=this.Ur.maxScrollHeight)!==null&&n!==void 0?n:0),this.Ur.lastContentY=u,this.Ur.maxContentY=Math.max(u,(i=this.Ur.maxContentY)!==null&&i!==void 0?i:0),this.Ur.maxContentHeight=Math.max(d,(s=this.Ur.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=e}get Wr(){return this._instance.config.scroll_root_selector}getContext(){return this.Ur}resetContext(){var e=this.Ur;return setTimeout(this.Yr,0),e}startMeasuringScrollPosition(){Nt(K,"scroll",this.Yr,{capture:!0}),Nt(K,"scrollend",this.Yr,{capture:!0}),Nt(K,"resize",this.Yr)}scrollElement(){if(!this.Wr)return K?.document.documentElement;var e=Je(this.Wr)?this.Wr:[this.Wr];for(var t of e){var n=K?.document.querySelector(t);if(n)return n}}scrollY(){if(this.Wr){var e=this.scrollElement();return e&&e.scrollTop||0}return K&&(K.scrollY||K.pageYOffset||K.document.documentElement.scrollTop)||0}scrollX(){if(this.Wr){var e=this.scrollElement();return e&&e.scrollLeft||0}return K&&(K.scrollX||K.pageXOffset||K.document.documentElement.scrollLeft)||0}}var R1=r=>Gh(r?.config.mask_personal_data_properties,r?.config.custom_personal_data_properties);class su{constructor(e,t,n,i){this.Gr=s=>{var o=this.Xr();if(!o||o.sessionId!==s){var l={sessionId:s,props:this.Jr(this._instance)};this.Kr.register({[Wa]:l})}},this._instance=e,this.Qr=t,this.Kr=n,this.Jr=i||R1,this.Qr.onSessionId(this.Gr)}Xr(){return this.Kr.props[Wa]}getSetOnceProps(){var e,t=(e=this.Xr())==null?void 0:e.props;return t?"r"in t?Kh(t):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return dt(ic(this.getSetOnceProps()),((t,n)=>{n==="$current_url"&&(n="url"),e["$session_entry_"+Oa(n)]=t})),e}}class ac{constructor(){this.ti={}}on(e,t){return this.ti[e]||(this.ti[e]=[]),this.ti[e].push(t),()=>{this.ti[e]=this.ti[e].filter((n=>n!==t))}}emit(e,t){for(var n of this.ti[e]||[])n(t);for(var i of this.ti["*"]||[])i(e,t)}}var oa=xt("[SessionId]");class ou{on(e,t){return this.ei.on(e,t)}constructor(e,t,n){var i;if(this.ri=[],this.ii=void 0,this.ei=new ac,this.ni=(u,d)=>!(!fi(u)||!fi(d))&&Math.abs(u-d)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===Qr)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Rt=e.config,this.Kr=e.persistence,this.si=void 0,this.oi=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.ai=t||On,this.li=n||On;var s=this.Rt.persistence_name||this.Rt.token;if(this._sessionTimeoutMs=1e3*dn(this.Rt.session_idle_timeout_seconds||1800,60,36e3,oa.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ui(),this.hi="ph_"+s+"_window_id",this.ci="ph_"+s+"_primary_window_exists",this.di()){var o=sr.Gt(this.hi),l=sr.Gt(this.ci);o&&!l?this.si=o:sr.Jt(this.hi),sr.Xt(this.ci,!0)}if((i=this.Rt.bootstrap)!=null&&i.sessionID)try{var c=(u=>{var d=this.Rt.bootstrap.sessionID.replace(/-/g,"");if(d.length!==32)throw new Error("Not a valid UUID");if(d[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(d.substring(0,12),16)})();this.vi(this.Rt.bootstrap.sessionID,new Date().getTime(),c)}catch(u){oa.error("Invalid sessionID in bootstrap",u)}this.fi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return xe(this.ri)&&(this.ri=[]),this.ri.push(e),this.oi&&e(this.oi,this.si),()=>{this.ri=this.ri.filter((t=>t!==e))}}di(){return this.Rt.persistence!=="memory"&&!this.Kr.gr&&sr.Yt()}pi(e){e!==this.si&&(this.si=e,this.di()&&sr.Xt(this.hi,e))}gi(){return this.si?this.si:this.di()?sr.Gt(this.hi):null}vi(e,t,n){e===this.oi&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this.oi=e,this.Kr.register({[Qs]:[t,e,n]}))}mi(){var e=this.Kr.props[Qs];return Je(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.vi(null,null,null)}destroy(){clearTimeout(this.yi),this.yi=void 0,this.ii&&K&&(K.removeEventListener(io,this.ii,{capture:!1}),this.ii=void 0),this.ri=[]}fi(){this.ii=()=>{this.di()&&sr.Jt(this.ci)},Nt(K,io,this.ii,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(e===void 0&&(e=!1),t===void 0&&(t=null),this.Rt.cookieless_mode===Qr)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=t||new Date().getTime(),[i,s,o]=this.mi(),l=this.gi(),c=fi(o)&&Math.abs(n-o)>864e5,u=!1,d=!s,p=!d&&!e&&this.ni(n,i);d||p||c?(s=this.ai(),l=this.li(),oa.info("new session ID generated",{sessionId:s,windowId:l,changeReason:{noSessionId:d,activityTimeout:p,sessionPastMaximumLength:c}}),o=n,u=!0):l||(l=this.li(),u=!0);var h=fi(i)&&e&&!c?i:n,g=fi(o)?o:new Date().getTime();return this.pi(l),this.vi(s,h,g),e||this.ui(),u&&this.ri.forEach((m=>m(s,l,u?{noSessionId:d,activityTimeout:p,sessionPastMaximumLength:c}:void 0))),{sessionId:s,windowId:l,sessionStartTimestamp:g,changeReason:u?{noSessionId:d,activityTimeout:p,sessionPastMaximumLength:c}:void 0,lastActivityTimestamp:i}}ui(){clearTimeout(this.yi),this.yi=setTimeout((()=>{var[e]=this.mi();if(this.ni(new Date().getTime(),e)){var t=this.oi;this.resetSessionId(),this.ei.emit("forcedIdleReset",{idleSessionId:t})}}),1.1*this.sessionTimeoutMs)}}var rf=function(r,e){if(!r)return!1;var t=r.userAgent;if(t&&Nc(t,e))return!0;try{var n=r?.userAgentData;if(n!=null&&n.brands&&n.brands.some((i=>Nc(i?.brand,e))))return!0}catch{}return!!r.webdriver},fo=function(r,e){if(!(function(t){try{new RegExp(t)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(r)}catch{return!1}};function au(r,e,t){return yi({distinct_id:r,userPropertiesToSet:e,userPropertiesToSetOnce:t})}var nf={exact:(r,e)=>e.some((t=>r.some((n=>t===n)))),is_not:(r,e)=>e.every((t=>r.every((n=>t!==n)))),regex:(r,e)=>e.some((t=>r.some((n=>fo(t,n))))),not_regex:(r,e)=>e.every((t=>r.every((n=>!fo(t,n))))),icontains:(r,e)=>e.map(Os).some((t=>r.map(Os).some((n=>t.includes(n))))),not_icontains:(r,e)=>e.map(Os).every((t=>r.map(Os).every((n=>!t.includes(n))))),gt:(r,e)=>e.some((t=>{var n=parseFloat(t);return!isNaN(n)&&r.some((i=>n>parseFloat(i)))})),lt:(r,e)=>e.some((t=>{var n=parseFloat(t);return!isNaN(n)&&r.some((i=>n<parseFloat(i)))}))},Os=r=>r.toLowerCase();function sf(r,e){return!r||Object.entries(r).every((t=>{var[n,i]=t,s=e?.[n];if(xe(s)||zn(s))return!1;var o=[String(s)],l=nf[i.operator];return!!l&&l(i.values,o)}))}var el="custom",lu="i.posthog.com";class I1{constructor(e){this.bi={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+lu,".posthog.com")),t==="https://app.posthog.com"?"https://us.posthog.com":t}get region(){return this.bi[this.apiHost]||(this.bi[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":el),this.bi[this.apiHost]}endpointFor(e,t){if(t===void 0&&(t=""),t&&(t=t[0]==="/"?t:"/"+t),e==="ui")return this.uiHost+t;if(e==="flags")return this.flagsApiHost+t;if(this.region===el)return this.apiHost+t;var n=lu+t;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var ot=xt("[Surveys]"),tl="seenSurvey_",O1=(r,e)=>{var t="$survey_"+e+"/"+r.id;return r.current_iteration&&r.current_iteration>0&&(t="$survey_"+e+"/"+r.id+"/"+r.current_iteration),t},cu=r=>((e,t)=>{var n=""+tl+t.id;return t.current_iteration&&t.current_iteration>0&&(n=""+tl+t.id+"_"+t.current_iteration),n})(0,r),N1=[ta.Popover,ta.Widget,ta.API],F1={ignoreConditions:!1,ignoreDelay:!1,displayType:Ya.Popover},L1=xt("[PostHog ExternalIntegrations]"),D1={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class z1{constructor(e){this._instance=e}nr(e,t){var n;(n=Me.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,e,(i=>{if(i)return L1.error("failed to load script",i);t()}))}startIfEnabledOrStop(){var e=this,t=function(o){var l,c,u;!i||(l=Me.__PosthogExtensions__)!=null&&(l=l.integrations)!=null&&l[o]||e.nr(D1[o],(()=>{var d;(d=Me.__PosthogExtensions__)==null||(d=d.integrations)==null||(d=d[o])==null||d.start(e._instance)})),!i&&(c=Me.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[o]&&((u=Me.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[o])==null||u.stop())};for(var[n,i]of Object.entries((s=this._instance.config.integrations)!==null&&s!==void 0?s:{})){var s;t(n)}}}var us={},aa=0,rl=()=>{},uu='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',Bi="Surveys module not available",du="sanitize_properties is deprecated. Use before_send instead",of="Invalid value for property_denylist config: ",gi="posthog",af=!E1&&Tr?.indexOf("MSIE")===-1&&Tr?.indexOf("Mozilla")===-1,hu=r=>{var e;return pe({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:n1(me?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:rl,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:r??"unset",__preview_deferred_init_extensions:!1,debug:ir&&Lt(ir?.search)&&ir.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(K==null||(e=K.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(t){_e.error("Bad HTTP status: "+t.statusCode+" "+t.text)},get_device_id:t=>t,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:$a,before_send:void 0,request_queue_config:{flush_interval_ms:Qa},error_tracking:{},_onCapture:rl,__preview_eager_load_replay:!1},(t=>({rageclick:!t||"2025-11-30">t||{content_ignorelist:!0},capture_pageview:!t||"2025-05-24">t||"history_change",session_recording:t&&t>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:t&&t>="2026-01-30"?"head":"body",internal_or_test_user_hostname:t&&t>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(r))},j1=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],fu=r=>{var e={};for(var[t,n]of j1)xe(r[t])||(e[n]=r[t]);var i=At({},e,r);return Je(r.property_blacklist)&&(xe(r.property_denylist)?i.property_denylist=r.property_blacklist:Je(r.property_denylist)?i.property_denylist=[...r.property_blacklist,...r.property_denylist]:_e.error(of+r.property_denylist)),i};class H1{constructor(){this.__forceAllowLocalhost=!1}get wi(){return this.__forceAllowLocalhost}set wi(e){_e.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class un{Ii(e,t){if(e){var n=this.Ci.indexOf(e);n!==-1&&this.Ci.splice(n,1)}return this.Ci.push(t),t.initialize==null||t.initialize(),t}get decideEndpointWasHit(){var e,t;return(e=(t=this.featureFlags)==null?void 0:t.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,t;return(e=(t=this.featureFlags)==null?void 0:t.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new H1,this.Si=!1,this.version=Ir.LIB_VERSION,this.ki=new ac,this.Ci=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=hu(),this.SentryIntegration=f1,this.sentryIntegration=n=>(function(i,s){var o=Uh(i,s);return{name:Hh,processEvent:l=>o(l)}})(this,n),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.xi=!1,this.Ti=null,this.Ai=null,this.Ei=null,this.scrollManager=new M1(this),this.pageViewManager=new Jc(this),this.rateLimiter=new y1(this),this.requestRouter=new I1(this),this.consent=new u1(this),this.externalIntegrations=new z1(this);var t=(e=un.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=t.featureFlags&&new t.featureFlags(this),this.toolbar=t.toolbar&&new t.toolbar(this),this.surveys=t.surveys&&new t.surveys(this),this.conversations=t.conversations&&new t.conversations(this),this.logs=t.logs&&new t.logs(this),this.experiments=t.experiments&&new t.experiments(this),this.exceptions=t.exceptions&&new t.exceptions(this),this.people={set:(n,i,s)=>{var o=Lt(n)?{[n]:i}:n;this.setPersonProperties(o),s?.({})},set_once:(n,i,s)=>{var o=Lt(n)?{[n]:i}:n;this.setPersonProperties(void 0,o),s?.({})}},this.on("eventCaptured",(n=>_e.info('send "'+n?.event+'"',n)))}init(e,t,n){if(n&&n!==gi){var i,s=(i=us[n])!==null&&i!==void 0?i:new un;return s._init(e,t,n),us[n]=s,us[gi][n]=s,s}return this._init(e,t,n)}_init(e,t,n){var i;if(t===void 0&&(t={}),xe(e)||js(e))return _e.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},t.debug=this.Ri(t.debug),this.Ni=t,this.Mi=[],t.person_profiles?this.Ai=t.person_profiles:t.process_person&&(this.Ai=t.process_person),this.set_config(At({},hu(t.defaults),fu(t),{name:n,token:e})),this.config.on_xhr_error&&_e.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:ln.GZipJS;var s=this.Fi();this.persistence=new ea(this.config,s),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new ea(pe({},this.config,{persistence:"sessionStorage"}),s);var o=pe({},this.persistence.props),l=pe({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Oi=new T1((v=>this.Pi(v)),this.config.request_queue_config),this.Li=new A1(this),this.__request_queue=[];var c=this.config.cookieless_mode===Qr||this.config.cookieless_mode===_n&&this.consent.isExplicitlyOptedOut();if(c||(this.sessionManager=new ou(this),this.sessionPropsManager=new su(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(_e.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.Di(c)}),0)):(_e.info("Initializing extensions synchronously"),this.Di(c)),Ir.DEBUG=Ir.DEBUG||this.config.debug,Ir.DEBUG&&_e.info("Starting in debug mode",{this:this,config:t,thisC:pe({},this.config),p:o,s:l}),((i=t.bootstrap)==null?void 0:i.distinctID)!==void 0){var u=t.bootstrap.distinctID,d=this.get_distinct_id(),p=this.persistence.get_property(Xr);if(t.bootstrap.isIdentifiedID&&d!=null&&d!==u&&p===li)this.identify(u);else if(t.bootstrap.isIdentifiedID&&d!=null&&d!==u&&p===ci)_e.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var h=this.config.get_device_id(On()),g=t.bootstrap.isIdentifiedID?h:u;this.persistence.set_property(Xr,t.bootstrap.isIdentifiedID?ci:li),this.register({distinct_id:u,$device_id:g})}}if(c)this.register_once({distinct_id:Cs,$device_id:null},"");else if(!this.get_distinct_id()){var m=this.config.get_device_id(On());this.register_once({distinct_id:m,$device_id:m},""),this.persistence.set_property(Xr,li)}return Nt(K,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),t.segment?(function(v,y){var b=v.config.segment;if(!b)return y();(function(P,w){var x=P.config.segment;if(!x)return w();var T=C=>{var S=()=>C.anonymousId()||On();P.config.get_device_id=S,C.id()&&(P.register({distinct_id:C.id(),$device_id:S()}),P.persistence.set_property(Xr,ci)),w()},R=x.user();"then"in R&&yn(R.then)?R.then(T):T(R)})(v,(()=>{b.register((P=>{Promise&&Promise.resolve||Qo.warn("This browser does not have Promise support, and can not use the segment integration");var w=(x,T)=>{if(!T)return x;x.event.userId||x.event.anonymousId===P.get_distinct_id()||(Qo.info("No userId set, resetting PostHog"),P.reset()),x.event.userId&&x.event.userId!==P.get_distinct_id()&&(Qo.info("UserId set, identifying with PostHog"),P.identify(x.event.userId));var R=P.calculateEventProperties(T,x.event.properties);return x.event.properties=Object.assign({},R,x.event.properties),x};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:x=>w(x,x.event.event),page:x=>w(x,vi),identify:x=>w(x,Jo),screen:x=>w(x,"$screen")}})(v)).then((()=>{y()}))}))})(this,(()=>this.Bi())):this.Bi(),yn(this.config._onCapture)&&this.config._onCapture!==rl&&(_e.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(v=>this.config._onCapture(v.event,v)))),this.config.ip&&_e.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Di(e){var t,n,i,s,o,l,c,u=performance.now(),d=pe({},un.__defaultExtensionClasses,this.config.__extensionClasses),p=[];d.featureFlags&&this.Ci.push(this.featureFlags=(t=this.featureFlags)!==null&&t!==void 0?t:new d.featureFlags(this)),d.exceptions&&this.Ci.push(this.exceptions=(n=this.exceptions)!==null&&n!==void 0?n:new d.exceptions(this)),d.historyAutocapture&&this.Ci.push(this.historyAutocapture=new d.historyAutocapture(this)),d.tracingHeaders&&this.Ci.push(new d.tracingHeaders(this)),d.siteApps&&this.Ci.push(this.siteApps=new d.siteApps(this)),d.sessionRecording&&!e&&this.Ci.push(this.sessionRecording=new d.sessionRecording(this)),this.config.disable_scroll_properties||p.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),d.autocapture&&this.Ci.push(this.autocapture=new d.autocapture(this)),d.surveys&&this.Ci.push(this.surveys=(i=this.surveys)!==null&&i!==void 0?i:new d.surveys(this)),d.logs&&this.Ci.push(this.logs=(s=this.logs)!==null&&s!==void 0?s:new d.logs(this)),d.conversations&&this.Ci.push(this.conversations=(o=this.conversations)!==null&&o!==void 0?o:new d.conversations(this)),d.productTours&&this.Ci.push(this.productTours=new d.productTours(this)),d.heatmaps&&this.Ci.push(this.heatmaps=new d.heatmaps(this)),d.webVitalsAutocapture&&this.Ci.push(this.webVitalsAutocapture=new d.webVitalsAutocapture(this)),d.exceptionObserver&&this.Ci.push(this.exceptionObserver=new d.exceptionObserver(this)),d.deadClicksAutocapture&&this.Ci.push(this.deadClicksAutocapture=new d.deadClicksAutocapture(this,h1)),d.toolbar&&this.Ci.push(this.toolbar=(l=this.toolbar)!==null&&l!==void 0?l:new d.toolbar(this)),d.experiments&&this.Ci.push(this.experiments=(c=this.experiments)!==null&&c!==void 0?c:new d.experiments(this)),this.Ci.forEach((h=>{h.initialize&&p.push((()=>{h.initialize==null||h.initialize()}))})),p.push((()=>{if(this.ji){var h=this.ji;this.ji=void 0,this.Sr(h)}})),this.qi(p,u)}qi(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout((()=>{this.qi(e,t)}),0);var n=e.shift();if(n)try{n()}catch(s){_e.error("Error initializing extension:",s)}}var i=Math.round(performance.now()-t);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:i}),this.config.__preview_deferred_init_extensions&&_e.info("PostHog extensions initialized ("+i+"ms)")}Sr(e){var t;if(!me||!me.body)return _e.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Sr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.ji=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Be(e.supportedCompression,ln.GZipJS)?ln.GZipJS:Be(e.supportedCompression,ln.Base64)?ln.Base64:void 0),(t=e.analytics)!=null&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Ai?this.Ai:$a}),this.Ci.forEach((n=>n.onRemoteConfig==null?void 0:n.onRemoteConfig(e)))}Bi(){try{this.config.loaded(this)}catch(n){_e.critical("`loaded` function failed",n)}if(this.Zi(),this.config.internal_or_test_user_hostname&&ir!=null&&ir.hostname){var e=ir.hostname,t=this.config.internal_or_test_user_hostname;(typeof t=="string"?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.config.cookieless_mode===Qr)&&this.$i()}),1),this.Hi=new Yh(this),this.Hi.load()}Zi(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Oi)==null||e.enable())}_dom_loaded(){this.is_capturing()&&As(this.__request_queue,(e=>this.Pi(e))),this.__request_queue=[],this.Zi()}_handle_unload(){var e,t,n;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Vi()&&this.capture(Xo),(t=this.Oi)==null||t.unload(),(n=this.Li)==null||n.unload()):this.Vi()&&this.capture(Xo,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(af?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=ho(e.url,{ip:this.config.ip?1:0}),e.headers=pe({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(t=>{var n,i,s,o=pe({},t);o.timeout=o.timeout||6e4,o.url=ho(o.url,{_:new Date().getTime().toString(),ver:Ir.JS_SDK_VERSION,compression:o.compression});var l=(n=o.transport)!==null&&n!==void 0?n:"fetch",c=Us.filter((d=>!o.disableTransport||!d.transport||!o.disableTransport.includes(d.transport))),u=(i=(s=(function(d,p){for(var h=0;d.length>h;h++)if(d[h].transport===l)return d[h]})(c))==null?void 0:s.method)!==null&&i!==void 0?i:c[0].method;if(!u)throw new Error("No available transport method");l!=="sendBeacon"&&o.data&&o.compression===ln.GZipJS&&p_?k1(o).then((d=>{u(d)})).catch((()=>{u(o)})):u(o)})(pe({},e,{callback:t=>{var n,i;this.rateLimiter.checkForLimiting(t),400>t.statusCode||(n=(i=this.config).on_request_error)==null||n.call(i,t),e.callback==null||e.callback(t)}}))))}Pi(e){this.Li?this.Li.retriableRequest(e):this._send_request(e)}_execute_array(e){aa++;try{var t,n=[],i=[],s=[];As(e,(l=>{l&&(Je(t=l[0])?s.push(l):yn(l)?l.call(this):Je(l)&&t==="alias"?n.push(l):Je(l)&&t.indexOf("capture")!==-1&&yn(this[t])?s.push(l):i.push(l))}));var o=function(l,c){As(l,(function(u){if(Je(u[0])){var d=c;dt(u,(function(p){d=d[p[0]].apply(d,p.slice(1))}))}else c[u[0]].apply(c,u.slice(1))}))};o(n,this),o(i,this),o(s,this)}finally{aa--}}push(e){if(aa>0&&Je(e)&&Lt(e[0])){var t=un.prototype[e[0]];yn(t)&&t.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,t,n){var i,s,o,l,c;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Oi){if(this.is_capturing())if(!xe(e)&&Lt(e)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||this.config.__preview_capture_bot_pageviews){var d=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(d==null||!d.isRateLimited){t!=null&&t.$current_url&&!Lt(t?.$current_url)&&(_e.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),t==null||delete t.$current_url),e!=="$exception"||n!=null&&n.zi||_e.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var p=new Date,h=n?.timestamp||p,g=On(),m={uuid:g,event:e,properties:this.calculateEventProperties(e,t||{},h,g)};e===vi&&this.config.__preview_capture_bot_pageviews&&u&&(m.event="$bot_pageview",m.properties.$browser_type="bot"),d&&(m.properties.$lib_rate_limit_remaining_tokens=d.remainingTokens),n?.$set&&(m.$set=n?.$set);var v,y=this.Yi(n?.$set_once,e!==Kc,e===Jo);if(y&&(m.$set_once=y),n!=null&&n._noTruncate||(s=this.config.properties_string_max_length,o=m,l=C=>Lt(C)?C.slice(0,s):C,c=new Set,m=(function C(S,A){return S!==Object(S)?l?l(S):S:c.has(S)?void 0:(c.add(S),Je(S)?(I=[],As(S,(M=>{I.push(C(M))}))):(I={},dt(S,((M,L)=>{c.has(M)||(I[L]=C(M))}))),I);var I})(o)),m.timestamp=h,xe(n?.timestamp)||(m.properties.$event_time_override_provided=!0,m.properties.$event_time_override_system_time=p),e===ss.DISMISSED||e===ss.SENT){var b=t?.[ra.SURVEY_ID],P=t?.[ra.SURVEY_ITERATION];v={id:b,current_iteration:P},localStorage.getItem(cu(v))||localStorage.setItem(cu(v),"true"),m.$set=pe({},m.$set,{[O1({id:b,current_iteration:P},e===ss.SENT?"responded":"dismissed")]:!0})}else e===ss.SHOWN&&(m.$set=pe({},m.$set,{[ra.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===_1.SHOWN){var w=t?.[Qc.TOUR_TYPE];w&&(m.$set=pe({},m.$set,{[Qc.TOUR_LAST_SEEN_DATE+"/"+w]:new Date().toISOString()}))}var x=pe({},m.properties.$set,m.$set);if(mi(x)||this.setPersonPropertiesForFlags(x),!qe(this.config.before_send)){var T=this.Ui(m);if(!T)return;m=T}this.ki.emit("eventCaptured",m);var R={method:"POST",url:(i=n?._url)!==null&&i!==void 0?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:m,compression:"best-available",batchKey:n?._batchKey};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.Pi(R):this.Oi.enqueue(R),m}_e.critical("This capture call is ignored due to client rate limiting.")}}else _e.error("No event name provided to posthog.capture")}else _e.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(t=>e(t.event,t)))}calculateEventProperties(e,t,n,i,s){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return t;var o=s?void 0:this.persistence.remove_event_timer(e),l=pe({},t);if(l.token=this.config.token,l.$config_defaults=this.config.defaults,(this.config.cookieless_mode==Qr||this.config.cookieless_mode==_n&&this.consent.isExplicitlyOptedOut())&&(l.$cookieless_mode=!0),e==="$snapshot"){var c=pe({},this.persistence.properties(),this.sessionPersistence.properties());return l.distinct_id=c.distinct_id,(!Lt(l.distinct_id)&&!fn(l.distinct_id)||js(l.distinct_id))&&_e.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),l}var u,d=(function(b,P){var w,x,T,R;if(!Tr)return{};var C,S,A,I,M,L,W,j,Y=b?[...Ai,...P||[]]:[],[le,se]=(function(Q){for(var ce=0;Dc.length>ce;ce++){var[he,ae]=Dc[ce],re=he.exec(Q),ie=re&&(yn(ae)?ae(re,Q):ae);if(ie)return ie}return["",""]})(Tr);return At(ic({$os:le,$os_version:se,$browser:Mh(Tr,navigator.vendor),$device:zc(Tr),$device_type:(S=Tr,A={userAgentDataPlatform:(w=navigator)==null||(w=w.userAgentData)==null?void 0:w.platform,maxTouchPoints:(x=navigator)==null?void 0:x.maxTouchPoints,screenWidth:K==null||(T=K.screen)==null?void 0:T.width,screenHeight:K==null||(R=K.screen)==null?void 0:R.height,devicePixelRatio:K?.devicePixelRatio},j=zc(S),j===ph||j===gh||j==="Kobo"||j==="Kindle Fire"||j===Ah?ki:j===fs||j===wi||j===vs||j===Fa?"Console":j===_h?"Wearable":j?Dr:A?.userAgentDataPlatform==="Android"&&((I=A?.maxTouchPoints)!==null&&I!==void 0?I:0)>0?600>Math.min((M=A?.screenWidth)!==null&&M!==void 0?M:0,(L=A?.screenHeight)!==null&&L!==void 0?L:0)/((W=A?.devicePixelRatio)!==null&&W!==void 0?W:1)?Dr:ki:"Desktop"),$timezone:$h(),$timezone_offset:p1()}),{$current_url:gs(ir?.href,Y,ps),$host:ir?.host,$pathname:ir?.pathname,$raw_user_agent:Tr.length>1e3?Tr.substring(0,997)+"...":Tr,$browser_version:I_(Tr,navigator.vendor),$browser_language:Zc(),$browser_language_prefix:(C=Zc(),typeof C=="string"?C.split("-")[0]:void 0),$screen_height:K?.screen.height,$screen_width:K?.screen.width,$viewport_height:K?.innerHeight,$viewport_width:K?.innerWidth,$lib:Ir.LIB_NAME,$lib_version:Ir.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:p,windowId:h}=this.sessionManager.checkAndGetSessionAndWindowId(s,n.getTime());l.$session_id=p,l.$window_id=h}this.sessionPropsManager&&At(l,this.sessionPropsManager.getSessionProps());try{var g;this.sessionRecording&&At(l,this.sessionRecording.sdkDebugProperties),l.$sdk_debug_retry_queue_size=(g=this.Li)==null?void 0:g.length}catch(b){l.$sdk_debug_error_capturing_properties=String(b)}if(this.requestRouter.region===el&&(l.$lib_custom_api_host=this.config.api_host),u=e!==vi||s?e!==Xo||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,i),l=At(l,u),e===vi&&me&&(l.title=me.title),!xe(o)){var m=n.getTime()-o;l.$duration=parseFloat((m/1e3).toFixed(3))}Tr&&this.config.opt_out_useragent_filter&&(l.$browser_type=this._is_bot()?"bot":"browser"),(l=At({},d,this.persistence.properties(),this.sessionPersistence.properties(),l)).$is_identified=this._isIdentified(),Je(this.config.property_denylist)?dt(this.config.property_denylist,(function(b){delete l[b]})):_e.error(of+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var v=this.config.sanitize_properties;v&&(_e.error(du),l=v(l,e));var y=this.Wi();return l.$process_person_profile=y,y&&!s&&this.Gi("_calculate_event_properties"),l}Yi(e,t,n){var i;if(t===void 0&&(t=!0),n===void 0&&(n=!1),!this.persistence||!this.Wi()||this.Si&&!n)return e;var s=this.persistence.get_initial_props(),o=(i=this.sessionPropsManager)==null?void 0:i.getSetOnceProps(),l=At({},s,o||{},e||{}),c=this.config.sanitize_properties;return c&&(_e.error(du),l=c(l,"$set_once")),t&&(this.Si=!0),mi(l)?void 0:l}register(e,t){var n;(n=this.persistence)==null||n.register(e,t)}register_once(e,t,n){var i;(i=this.persistence)==null||i.register_once(e,t,n)}register_for_session(e){var t;(t=this.sessionPersistence)==null||t.register(e)}unregister(e){var t;(t=this.persistence)==null||t.unregister(e)}unregister_for_session(e){var t;(t=this.sessionPersistence)==null||t.unregister(e)}Xi(e,t){this.register({[e]:t})}getFeatureFlag(e,t){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlag(e,t)}getFeatureFlagPayload(e){var t;return(t=this.featureFlags)==null?void 0:t.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){var n;return(n=this.featureFlags)==null?void 0:n.getFeatureFlagResult(e,t)}isFeatureEnabled(e,t){var n;return(n=this.featureFlags)==null?void 0:n.isFeatureEnabled(e,t)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,t,n){var i;(i=this.featureFlags)==null||i.updateFlags(e,t,n)}updateEarlyAccessFeatureEnrollment(e,t,n){var i;(i=this.featureFlags)==null||i.updateEarlyAccessFeatureEnrollment(e,t,n)}getEarlyAccessFeatures(e,t,n){var i;return t===void 0&&(t=!1),(i=this.featureFlags)==null?void 0:i.getEarlyAccessFeatures(e,t,n)}on(e,t){return this.ki.on(e,t)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:Bi}),()=>{})}onSessionId(e){var t,n;return(t=(n=this.sessionManager)==null?void 0:n.onSessionId(e))!==null&&t!==void 0?t:()=>{}}getSurveys(e,t){t===void 0&&(t=!1),this.surveys?this.surveys.getSurveys(e,t):e([],{isLoaded:!1,error:Bi})}getActiveMatchingSurveys(e,t){t===void 0&&(t=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,t):e([],{isLoaded:!1,error:Bi})}renderSurvey(e,t){var n;(n=this.surveys)==null||n.renderSurvey(e,t)}displaySurvey(e,t){var n;t===void 0&&(t=F1),(n=this.surveys)==null||n.displaySurvey(e,t)}cancelPendingSurvey(e){var t;(t=this.surveys)==null||t.cancelPendingSurvey(e)}canRenderSurvey(e){var t,n;return(t=(n=this.surveys)==null?void 0:n.canRenderSurvey(e))!==null&&t!==void 0?t:{visible:!1,disabledReason:Bi}}canRenderSurveyAsync(e,t){var n,i;return t===void 0&&(t=!1),(n=(i=this.surveys)==null?void 0:i.canRenderSurveyAsync(e,t))!==null&&n!==void 0?n:Promise.resolve({visible:!1,disabledReason:Bi})}Ji(e){return!e||js(e)?(_e.critical("Unique user id has not been set in posthog.identify"),!1):e===Cs?(_e.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(_e.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,t,n){if(!this.__loaded||!this.persistence)return _e.uninitializedWarning("posthog.identify");if(fn(e)&&(e=e.toString(),_e.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.Ji(e)&&this.Gi("posthog.identify")){var i=this.get_distinct_id();this.register({$user_id:e}),this.get_property(Zs)||this.register_once({$had_persisted_distinct_id:!0,$device_id:i},""),e!==i&&e!==this.get_property(ts)&&(this.unregister(ts),this.register({distinct_id:e}));var s,o=(this.persistence.get_property(Xr)||li)===li;e!==i&&o?(this.persistence.set_property(Xr,ci),this.setPersonPropertiesForFlags(pe({},n||{},t||{}),!1),this.capture(Jo,{distinct_id:e,$anon_distinct_id:i},{$set:t||{},$set_once:n||{}}),this.Ei=au(e,t,n),(s=this.featureFlags)==null||s.setAnonymousDistinctId(i)):(t||n)&&this.setPersonProperties(t,n),e!==i&&(this.reloadFeatureFlags(),this.unregister(ls))}}setPersonProperties(e,t){if((e||t)&&this.Gi("posthog.setPersonProperties")){var n=au(this.get_distinct_id(),e,t);this.Ei!==n?(this.setPersonPropertiesForFlags(pe({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Ei=n):_e.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,n){if(e&&t){var i=this.getGroups();i[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:pe({},i,{[e]:t})}),n&&(this.capture(Kc,{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags({[e]:n})),i[e]===t||n||this.reloadFeatureFlags()}else _e.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){var n;t===void 0&&(t=!0),(n=this.featureFlags)==null||n.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){var n;t===void 0&&(t=!0),this.Gi("posthog.setGroupPropertiesForFlags")&&((n=this.featureFlags)==null||n.setGroupPropertiesForFlags(e,t))}resetGroupPropertiesForFlags(e){var t;(t=this.featureFlags)==null||t.resetGroupPropertiesForFlags(e)}reset(e){var t,n,i,s,o,l,c;if(_e.info("reset"),!this.__loaded)return _e.uninitializedWarning("posthog.reset");var u=this.get_property(Zs);if(this.consent.reset(),(t=this.persistence)==null||t.clear(),(n=this.sessionPersistence)==null||n.clear(),(i=this.surveys)==null||i.reset(),(s=this.Hi)==null||s.stop(),(o=this.featureFlags)==null||o.reset(),(l=this.persistence)==null||l.set_property(Xr,li),(c=this.sessionManager)==null||c.resetSessionId(),this.Ei=null,this.config.cookieless_mode===Qr)this.register_once({distinct_id:Cs,$device_id:null},"");else{var d=this.config.get_device_id(On());this.register_once({distinct_id:d,$device_id:e?d:u},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),this.reloadFeatureFlags()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return(e=(t=this.sessionManager)==null?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(e!=null&&e.withTimestamp&&n){var s,o=(s=e.timestampLookBack)!==null&&s!==void 0?s:10;if(!n)return i;i+="?t="+Math.max(Math.floor((new Date().getTime()-n)/1e3)-o,0)}return i}alias(e,t){return e===this.get_property(Nh)?(_e.critical("Attempting to create alias for existing People user - aborting."),-2):this.Gi("posthog.alias")?(xe(t)&&(t=this.get_distinct_id()),e!==t?(this.Xi(ts,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(_e.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=pe({},this.config);if(Vt(e)){var n,i,s,o,l,c,u,d,p;At(this.config,fu(e));var h=this.Fi();(n=this.persistence)==null||n.update_config(this.config,t,h),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new ea(pe({},this.config,{persistence:"sessionStorage"}),h);var g=this.Ri(this.config.debug);bn(g)&&(this.config.debug=g),bn(this.config.debug)&&(this.config.debug?(Ir.DEBUG=!0,yt.Yt()&&yt.Xt("ph_debug",!0),_e.info("set_config",{config:e,oldConfig:t,newConfig:pe({},this.config)})):(Ir.DEBUG=!1,yt.Yt()&&yt.Jt("ph_debug"))),(i=this.exceptionObserver)==null||i.onConfigChange(),(s=this.sessionRecording)==null||s.startIfEnabledOrStop(),(o=this.autocapture)==null||o.startIfEnabled(),(l=this.heatmaps)==null||l.startIfEnabled(),(c=this.exceptionObserver)==null||c.startIfEnabledOrStop(),(u=this.deadClicksAutocapture)==null||u.startIfEnabledOrStop(),(d=this.surveys)==null||d.loadIfEnabled(),this.Ki(),(p=this.externalIntegrations)==null||p.startIfEnabledOrStop()}}_overrideSDKInfo(e,t){Ir.LIB_NAME=e,Ir.LIB_VERSION=t}startSessionRecording(e){var t,n,i,s,o,l=e===!0,c={sampling:l||!(e==null||!e.sampling),linked_flag:l||!(e==null||!e.linked_flag),url_trigger:l||!(e==null||!e.url_trigger),event_trigger:l||!(e==null||!e.event_trigger)};Object.values(c).some(Boolean)&&((t=this.sessionManager)==null||t.checkAndGetSessionAndWindowId(),c.sampling&&((n=this.sessionRecording)==null||n.overrideSampling()),c.linked_flag&&((i=this.sessionRecording)==null||i.overrideLinkedFlag()),c.url_trigger&&((s=this.sessionRecording)==null||s.overrideTrigger("url")),c.event_trigger&&((o=this.sessionRecording)==null||o.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,t){if(this.exceptions){var n=new Error("PostHog syntheticException"),i=this.exceptions.buildProperties(e,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(pe({},i,t))}}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var t,n;return(t=(n=this.toolbar)==null?void 0:n.loadToolbar(e))!==null&&t!==void 0&&t}get_property(e){var t;return(t=this.persistence)==null?void 0:t.props[e]}getSessionProperty(e){var t;return(t=this.sessionPersistence)==null?void 0:t.props[e]}toString(){var e,t=(e=this.config.name)!==null&&e!==void 0?e:gi;return t!==gi&&(t=gi+"."+t),t}_isIdentified(){var e,t;return((e=this.persistence)==null?void 0:e.get_property(Xr))===ci||((t=this.sessionPersistence)==null?void 0:t.get_property(Xr))===ci}Wi(){var e,t;return!(this.config.person_profiles==="never"||this.config.person_profiles===$a&&!this._isIdentified()&&mi(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[ts])&&((t=this.persistence)==null||(t=t.props)==null||!t[ro]))}Vi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Wi()||this.Gi("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.Gi("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}Gi(e){return this.config.person_profiles==="never"?(_e.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Xi(ro,!0),!0)}Fi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==_n)}Ki(){var e,t,n,i,s=this.Fi();return((e=this.persistence)==null?void 0:e.gr)!==s&&((n=this.persistence)==null||n.set_disabled(s)),((t=this.sessionPersistence)==null?void 0:t.gr)!==s&&((i=this.sessionPersistence)==null||i.set_disabled(s)),s}opt_in_capturing(e){var t;if(this.config.cookieless_mode!==Qr){if(this.config.cookieless_mode===_n&&this.consent.isExplicitlyOptedOut()){var n,i,s,o,l;this.reset(!0),(n=this.sessionManager)==null||n.destroy(),(i=this.pageViewManager)==null||i.destroy(),this.sessionManager=new ou(this),this.pageViewManager=new Jc(this),this.persistence&&(this.sessionPropsManager=new su(this,this.sessionManager,this.persistence));var c=(s=(o=this.config.__extensionClasses)==null?void 0:o.sessionRecording)!==null&&s!==void 0?s:(l=un.__defaultExtensionClasses)==null?void 0:l.sessionRecording;c&&(this.sessionRecording=this.Ii(this.sessionRecording,new c(this)))}var u,d;this.consent.optInOut(!0),this.Ki(),this.Zi(),(t=this.sessionRecording)==null||t.startIfEnabledOrStop(),this.config.cookieless_mode==_n&&((u=this.surveys)==null||u.loadIfEnabled()),(xe(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((d=e?.captureEventName)!==null&&d!==void 0?d:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.$i()}else _e.warn(uu)}opt_out_capturing(){var e,t,n;this.config.cookieless_mode!==Qr?(this.config.cookieless_mode===_n&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Ki(),this.config.cookieless_mode===_n&&(this.register({distinct_id:Cs,$device_id:null}),(e=this.sessionManager)==null||e.destroy(),(t=this.pageViewManager)==null||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(n=this.sessionRecording)==null||n.stopRecording(),this.sessionRecording=void 0,this.$i())):_e.warn(uu)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Qr||(this.config.cookieless_mode===_n?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Ki()}_is_bot(){return Lr?rf(Lr,this.config.custom_blocked_useragents):void 0}$i(){me&&(me.visibilityState==="visible"?this.xi||(this.xi=!0,this.capture(vi,{title:me.title},{send_instantly:!0}),this.Ti&&(me.removeEventListener(no,this.Ti),this.Ti=null)):this.Ti||(this.Ti=this.$i.bind(this),Nt(me,no,this.Ti)))}debug(e){e===!1?(K?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(K?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Tr(){var e,t,n,i,s,o,l=this.Ni||{};return"advanced_disable_flags"in l?!!l.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(_e.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(n="advanced_disable_decide",i=_e,s=(t="advanced_disable_flags")in(e=l)&&!qe(e[t]),o=n in e&&!qe(e[n]),s?e[t]:!!o&&(i&&i.warn("Config field '"+n+"' is deprecated. Please use '"+t+"' instead. The old field will be removed in a future major version."),e[n]))}Ui(e){if(qe(this.config.before_send))return e;var t=Je(this.config.before_send)?this.config.before_send:[this.config.before_send],n=e;for(var i of t){if(n=i(n),qe(n)){var s="Event '"+e.event+"' was rejected in beforeSend function";return b_(e.event)?_e.warn(s+". This can cause unexpected behavior."):_e.info(s),null}n.properties&&!mi(n.properties)||_e.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var e;return(e=this.pageViewManager.lr)==null?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,n){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(n)})}Ri(e){var t=bn(e)&&!e,n=yt.Yt()&&yt.Wt("ph_debug")==="true";return!t&&(!!n||e)}}function vu(r){return r instanceof Element&&(r.id===Dh||!(r.closest==null||!r.closest(".toolbar-global-fade-container")))}function Mo(r){return!!r&&r.nodeType===1}function Ln(r,e){return!!r&&!!r.tagName&&r.tagName.toLowerCase()===e.toLowerCase()}function lf(r){return!!r&&r.nodeType===3}function cf(r){return!!r&&r.nodeType===11}function lc(r){return r?Co(r).split(/\s+/):[]}function gu(r){var e=K?.location.href;return!!(e&&r&&r.some((t=>e.match(t))))}function vo(r){var e="";switch(typeof r.className){case"string":e=r.className;break;case"object":e=(r.className&&"baseVal"in r.className?r.className.baseVal:null)||r.getAttribute("class")||"";break;default:e=""}return lc(e)}function uf(r){return qe(r)?null:Co(r).split(/(\s+)/).filter((e=>ds(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function ms(r){var e="";return il(r)&&!hf(r)&&r.childNodes&&r.childNodes.length&&dt(r.childNodes,(function(t){var n;lf(t)&&t.textContent&&(e+=(n=uf(t.textContent))!==null&&n!==void 0?n:"")})),Co(e)}function pu(r){return xe(r.target)?r.srcElement||null:(e=r.target)!=null&&e.shadowRoot?r.composedPath()[0]||null:r.target||null;var e}un.__defaultExtensionClasses={},(function(r,e){for(var t=0;e.length>t;t++)r.prototype[e[t]]=t1(r.prototype[e[t]])})(un,["identify"]);var cc=["a","button","form","input","select","textarea","label"];function mu(r,e){if(xe(e))return!0;var t,n=function(s){if(e.some((o=>s.matches(o))))return{v:!0}};for(var i of r)if(t=n(i))return t.v;return!1}function df(r){var e=r.parentNode;return!(!e||!Mo(e))&&e}var U1=["next","previous","prev",">","<"],_u=[".ph-no-rageclick",".ph-no-capture"],nl=r=>!r||Ln(r,"html")||!Mo(r),yu=(r,e)=>{if(!K||nl(r))return{parentIsUsefulElement:!1,targetElementList:[]};for(var t=!1,n=[r],i=r;i.parentNode&&!Ln(i,"body");)if(cf(i.parentNode))n.push(i.parentNode.host),i=i.parentNode.host;else{var s=df(i);if(!s)break;if(e||cc.indexOf(s.tagName.toLowerCase())>-1)t=!0;else{var o=K.getComputedStyle(s);o&&o.getPropertyValue("cursor")==="pointer"&&(t=!0)}n.push(s),i=s}return{parentIsUsefulElement:t,targetElementList:n}};function il(r){for(var e=r;e.parentNode&&!Ln(e,"body");e=e.parentNode){var t=vo(e);if(Be(t,"ph-sensitive")||Be(t,"ph-no-capture"))return!1}if(Be(vo(r),"ph-include"))return!0;var n=r.type||"";if(Lt(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var i=r.name||r.id||"";return!Lt(i)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,""))}function hf(r){return!!(Ln(r,"input")&&!["button","checkbox","submit","reset"].includes(r.type)||Ln(r,"select")||Ln(r,"textarea")||r.getAttribute("contenteditable")==="true")}var ff="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",B1=new RegExp("^(?:"+ff+")$"),V1=new RegExp(ff),vf="\\d{3}-?\\d{2}-?\\d{4}",W1=new RegExp("^("+vf+")$"),q1=new RegExp("("+vf+")");function ds(r,e){return e===void 0&&(e=!0),!(qe(r)||Lt(r)&&(r=Co(r),(e?B1:V1).test((r||"").replace(/[- ]/g,""))||(e?W1:q1).test(r)))}function bu(r){var e=ms(r);return ds(e=(e+" "+gf(r)).trim())?e:""}function gf(r){var e="";return r&&r.childNodes&&r.childNodes.length&&dt(r.childNodes,(function(t){var n;if(t&&((n=t.tagName)==null?void 0:n.toLowerCase())==="span")try{var i=ms(t);e=(e+" "+i).trim(),t.childNodes&&t.childNodes.length&&(e=(e+" "+gf(t)).trim())}catch(s){_e.error("[AutoCapture]",s)}})),e}function xu(r){return r.replace(/"|\\"/g,'\\"')}function G1(r){var e=r.attr__class;return e?Je(e)?e:lc(e):void 0}class wu{constructor(e){this.disabled=e===!1;var t=Vt(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,n){if(this.disabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(e-i.x)+Math.abs(t-i.y)<this.thresholdPx&&this.timeoutMs>n-i.timestamp){if(this.clicks.push({x:e,y:t,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}var la="$copy_autocapture",Su=xt("[AutoCapture]");function ca(r,e){return e.length>r?e.slice(0,r)+"...":e}function K1(r){if(r.previousElementSibling)return r.previousElementSibling;var e=r;do e=e.previousSibling;while(e&&!Mo(e));return e}function $1(r,e){for(var t,n,{e:i,maskAllElementAttributes:s,maskAllText:o,elementAttributeIgnoreList:l,elementsChainAsString:c}=e,u=[r],d=r;d.parentNode&&!Ln(d,"body");)cf(d.parentNode)?(u.push(d.parentNode.host),d=d.parentNode.host):(u.push(d.parentNode),d=d.parentNode);var p,h,g=[],m={},v=!1,y=!1;if(dt(u,(T=>{var R=il(T);T.tagName.toLowerCase()==="a"&&(v=T.getAttribute("href"),v=R&&v&&ds(v)&&v),Be(vo(T),"ph-no-capture")&&(y=!0),g.push((function(S,A,I,M){var L=S.tagName.toLowerCase(),W={tag_name:L};cc.indexOf(L)>-1&&!I&&(W.$el_text=L.toLowerCase()==="a"||L.toLowerCase()==="button"?ca(1024,bu(S)):ca(1024,ms(S)));var j=vo(S);j.length>0&&(W.classes=j.filter((function(Q){return Q!==""}))),dt(S.attributes,(function(Q){var ce;if((!hf(S)||["name","id","class","aria-label"].indexOf(Q.name)!==-1)&&(M==null||!M.includes(Q.name))&&!A&&ds(Q.value)&&(!Lt(ce=Q.name)||ce.substring(0,10)!=="_ngcontent"&&ce.substring(0,7)!=="_nghost")){var he=Q.value;Q.name==="class"&&(he=lc(he).join(" ")),W["attr__"+Q.name]=ca(1024,he)}}));for(var Y=1,le=1,se=S;se=K1(se);)Y++,se.tagName===S.tagName&&le++;return W.nth_child=Y,W.nth_of_type=le,W})(T,s,o,l));var C=(function(S){if(!il(S))return{};var A={};return dt(S.attributes,(function(I){if(I.name&&I.name.indexOf("data-ph-capture-attribute")===0){var M=I.name.replace("data-ph-capture-attribute-",""),L=I.value;M&&L&&ds(L)&&(A[M]=L)}})),A})(T);At(m,C)})),y)return{props:{},explicitNoCapture:y};if(o||(g[0].$el_text=r.tagName.toLowerCase()==="a"||r.tagName.toLowerCase()==="button"?bu(r):ms(r)),v){var b,P;g[0].attr__href=v;var w=(b=oo(v))==null?void 0:b.host,x=K==null||(P=K.location)==null?void 0:P.host;w&&x&&w!==x&&(p=v)}return{props:At({$event_type:i.type,$ce_version:1},c?{}:{$elements:g},{$elements_chain:(h=g,(function(T){return T.map((R=>{var C,S,A="";if(R.tag_name&&(A+=R.tag_name),R.attr_class)for(var I of(R.attr_class.sort(),R.attr_class))A+="."+I.replace(/"/g,"");var M=pe({},R.text?{text:R.text}:{},{"nth-child":(C=R.nth_child)!==null&&C!==void 0?C:0,"nth-of-type":(S=R.nth_of_type)!==null&&S!==void 0?S:0},R.href?{href:R.href}:{},R.attr_id?{attr_id:R.attr_id}:{},R.attributes),L={};return Hs(M).sort(((W,j)=>{var[Y]=W,[le]=j;return Y.localeCompare(le)})).forEach((W=>{var[j,Y]=W;return L[xu(j.toString())]=xu(Y.toString())})),(A+=":")+Hs(L).map((W=>{var[j,Y]=W;return j+'="'+Y+'"'})).join("")})).join(";")})((function(T){return T.map((R=>{var C,S,A={text:(C=R.$el_text)==null?void 0:C.slice(0,400),tag_name:R.tag_name,href:(S=R.attr__href)==null?void 0:S.slice(0,2048),attr_class:G1(R),attr_id:R.attr__id,nth_child:R.nth_child,nth_of_type:R.nth_of_type,attributes:{}};return Hs(R).filter((I=>{var[M]=I;return M.indexOf("attr__")===0})).forEach((I=>{var[M,L]=I;return A.attributes[M]=L})),A}))})(h)))},(t=g[0])!=null&&t.$el_text?{$el_text:(n=g[0])==null?void 0:n.$el_text}:{},p&&i.type==="click"?{$external_click_url:p}:{},m)}}var Vi=xt("[ExceptionAutocapture]");function Pu(r,e,t){try{if(!(e in r))return()=>{};var n=r[e],i=t(n);return yn(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),r[e]=i,()=>{r[e]=n}}catch{return()=>{}}}var Y1=xt("[TracingHeaders]"),Cn=xt("[Web Vitals]"),Eu=9e5,ku="disabled",Tu="lazy_loading",Wi="awaiting_config",Ns="missing_config";xt("[SessionRecording]");var sl="[SessionRecording]",An=xt(sl),X1=xt("[Heatmaps]");function Cu(r){return Vt(r)&&"clientX"in r&&"clientY"in r&&fn(r.clientX)&&fn(r.clientY)}var Au=xt("[Product Tours]"),ua="ph_product_tours",J1=["$set_once","$set"],Mn=xt("[SiteApps]"),Mu="Error while initializing PostHog app with config id ";function di(r,e,t){if(qe(r))return!1;switch(t){case"exact":return r===e;case"contains":var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(r);case"regex":try{return new RegExp(e).test(r)}catch{return!1}default:return!1}}class Z1{constructor(e){this.Qi=new ac,this.tn=(t,n)=>this.en(t,n)&&this.rn(t,n)&&this.nn(t,n)&&this.sn(t,n),this.en=(t,n)=>n==null||!n.event||t?.event===n?.event,this._instance=e,this.an=new Set,this.ln=new Set}init(){var e,t;xe((e=this._instance)==null?void 0:e._addCaptureHook)||(t=this._instance)==null||t._addCaptureHook(((n,i)=>{this.on(n,i)}))}register(e){var t,n;if(!xe((t=this._instance)==null?void 0:t._addCaptureHook)&&(e.forEach((o=>{var l,c;(l=this.ln)==null||l.add(o),(c=o.steps)==null||c.forEach((u=>{var d;(d=this.an)==null||d.add(u?.event||"")}))})),(n=this._instance)!=null&&n.autocapture)){var i,s=new Set;e.forEach((o=>{var l;(l=o.steps)==null||l.forEach((c=>{c!=null&&c.selector&&s.add(c?.selector)}))})),(i=this._instance)==null||i.autocapture.setElementSelectors(s)}}on(e,t){var n;t!=null&&e.length!=0&&(this.an.has(e)||this.an.has(t?.event))&&this.ln&&((n=this.ln)==null?void 0:n.size)>0&&this.ln.forEach((i=>{this.un(t,i)&&this.Qi.emit("actionCaptured",i.name)}))}hn(e){this.onAction("actionCaptured",(t=>e(t)))}un(e,t){if(t?.steps==null)return!1;for(var n of t.steps)if(this.tn(e,n))return!0;return!1}onAction(e,t){return this.Qi.on(e,t)}rn(e,t){if(t!=null&&t.url){var n,i=e==null||(n=e.properties)==null?void 0:n.$current_url;if(!i||typeof i!="string"||!di(i,t.url,t.url_matching||"contains"))return!1}return!0}nn(e,t){return!!this.cn(e,t)&&!!this.dn(e,t)&&!!this.vn(e,t)}cn(e,t){var n;if(t==null||!t.href)return!0;var i=this.fn(e);if(i.length>0)return i.some((l=>di(l.href,t.href,t.href_matching||"exact")));var s,o=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||"";return!!o&&di((s=o.match(/(?::|")href="(.*?)"/))?s[1]:"",t.href,t.href_matching||"exact")}dn(e,t){var n;if(t==null||!t.text)return!0;var i=this.fn(e);if(i.length>0)return i.some((u=>di(u.text,t.text,t.text_matching||"exact")||di(u.$el_text,t.text,t.text_matching||"exact")));var s,o,l,c=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||"";return!!c&&(s=(function(u){for(var d,p=[],h=/(?::|")text="(.*?)"/g;!qe(d=h.exec(u));)p.includes(d[1])||p.push(d[1]);return p})(c),o=t.text,l=t.text_matching||"exact",s.some((u=>di(u,o,l))))}vn(e,t){var n,i;if(t==null||!t.selector)return!0;var s=e==null||(n=e.properties)==null?void 0:n.$element_selectors;if(s!=null&&s.includes(t.selector))return!0;var o=(e==null||(i=e.properties)==null?void 0:i.$elements_chain)||"";if(t.selector_regex&&o)try{return new RegExp(t.selector_regex).test(o)}catch{return!1}return!1}fn(e){var t;return(e==null||(t=e.properties)==null?void 0:t.$elements)==null?[]:e?.properties.$elements}sn(e,t){return t==null||!t.properties||t.properties.length===0||sf(t.properties.reduce(((n,i)=>{var s=Je(i.value)?i.value.map(String):i.value!=null?[String(i.value)]:[];return n[i.key]={values:s,operator:i.operator||"exact"},n}),{}),e?.properties)}}class Q1{constructor(e){this._instance=e,this.pn=new Map,this.gn=new Map,this.mn=new Map}yn(e,t){return!!e&&sf(e.propertyFilters,t?.properties)}bn(e,t){var n=new Map;return e.forEach((i=>{var s;(s=i.conditions)==null||(s=s[t])==null||(s=s.values)==null||s.forEach((o=>{if(o!=null&&o.name){var l=n.get(o.name)||[];l.push(i.id),n.set(o.name,l)}}))})),n}wn(e,t,n){var i=(n===zi.Activation?this.pn:this.gn).get(e),s=[];return this._n((o=>{s=o.filter((l=>i?.includes(l.id)))})),s.filter((o=>{var l,c=(l=o.conditions)==null||(l=l[n])==null||(l=l.values)==null?void 0:l.find((u=>u.name===e));return this.yn(c,t)}))}register(e){var t;xe((t=this._instance)==null?void 0:t._addCaptureHook)||(this.In(e),this.Cn(e))}Cn(e){var t=e.filter((n=>{var i,s;return((i=n.conditions)==null?void 0:i.actions)&&((s=n.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0}));t.length!==0&&(this.Sn==null&&(this.Sn=new Z1(this._instance),this.Sn.init(),this.Sn.hn((n=>{this.onAction(n)}))),t.forEach((n=>{var i,s,o,l,c;n.conditions&&(i=n.conditions)!=null&&i.actions&&(s=n.conditions)!=null&&(s=s.actions)!=null&&s.values&&((o=n.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((l=this.Sn)==null||l.register(n.conditions.actions.values),(c=n.conditions)==null||(c=c.actions)==null||(c=c.values)==null||c.forEach((u=>{if(u&&u.name){var d=this.mn.get(u.name);d&&d.push(n.id),this.mn.set(u.name,d||[n.id])}})))})))}In(e){var t,n=e.filter((s=>{var o,l;return((o=s.conditions)==null?void 0:o.events)&&((l=s.conditions)==null||(l=l.events)==null||(l=l.values)==null?void 0:l.length)>0})),i=e.filter((s=>{var o,l;return((o=s.conditions)==null?void 0:o.cancelEvents)&&((l=s.conditions)==null||(l=l.cancelEvents)==null||(l=l.values)==null?void 0:l.length)>0}));n.length===0&&i.length===0||((t=this._instance)==null||t._addCaptureHook(((s,o)=>{this.onEvent(s,o)})),this.pn=this.bn(e,zi.Activation),this.gn=this.bn(e,zi.Cancellation))}onEvent(e,t){var n,i=this.re(),s=this.kn(),o=this.xn(),l=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[s])||[];if(o===e&&t&&l.length>0){var c,u;i.info("event matched, removing item from activated items",{event:e,eventPayload:t,existingActivatedItems:l});var d=(t==null||(c=t.properties)==null?void 0:c.$survey_id)||(t==null||(u=t.properties)==null?void 0:u.$product_tour_id);if(d){var p=l.indexOf(d);0>p||(l.splice(p,1),this.Tn(l))}}else{if(this.gn.has(e)){var h=this.wn(e,t,zi.Cancellation);h.length>0&&(i.info("cancel event matched, cancelling items",{event:e,itemsToCancel:h.map((m=>m.id))}),h.forEach((m=>{var v=l.indexOf(m.id);0>v||l.splice(v,1),this.An(m.id)})),this.Tn(l))}if(this.pn.has(e)){i.info("event name matched",{event:e,eventPayload:t,items:this.pn.get(e)});var g=this.wn(e,t,zi.Activation);this.Tn(l.concat(g.map((m=>m.id))||[]))}}}onAction(e){var t,n=this.kn(),i=((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[n])||[];this.mn.has(e)&&this.Tn(i.concat(this.mn.get(e)||[]))}Tn(e){var t,n=this.re(),i=this.kn(),s=[...new Set(e)].filter((o=>!this.En(o)));n.info("updating activated items",{activatedItems:s}),(t=this._instance)==null||(t=t.persistence)==null||t.register({[i]:s})}getActivatedIds(){var e,t=this.kn();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[t])||[]}getEventToItemsMap(){return this.pn}Rn(){return this.Sn}}class ey extends Q1{constructor(e){super(e)}kn(){return"$surveys_activated"}xn(){return ss.SHOWN}_n(e){var t;(t=this._instance)==null||t.getSurveys(e)}An(e){var t;(t=this._instance)==null||t.cancelPendingSurvey(e)}re(){return ot}En(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var da="SDK is not enabled or survey functionality is not yet loaded",Ru="Disabled. Not loading surveys.",ty=K!=null&&K.location?lo(K.location.hash,"__posthog")||lo(location.hash,"state"):null,Iu="_postHogToolbarParams",Ou=xt("[Toolbar]"),yr=xt("[FeatureFlags]"),Yn=xt("[FeatureFlags]",{debugEnabled:!0}),ha=`" failed. Feature flags didn't load in time.`,fa="$active_feature_flags",Rn="$override_feature_flags",Nu="$feature_flag_payloads",qi="$override_feature_flag_payloads",Fu="$feature_flag_request_id",Lu=r=>{for(var e={},t=0;r.length>t;t++)e[r[t]]=!0;return e},Du=r=>{var e={};for(var[t,n]of Hs(r||{}))n&&(e[t]=n);return e},va=xt("[Error tracking]"),zu="Refusing to render web experiment since the viewer is a likely bot",ry={icontains:(r,e)=>!!K&&e.href.toLowerCase().indexOf(r.toLowerCase())>-1,not_icontains:(r,e)=>!!K&&e.href.toLowerCase().indexOf(r.toLowerCase())===-1,regex:(r,e)=>!!K&&fo(e.href,r),not_regex:(r,e)=>!!K&&!fo(e.href,r),exact:(r,e)=>e.href===r,is_not:(r,e)=>e.href!==r};class fr{get Rt(){return this._instance.config}constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(n){n===void 0&&(n=!1),t.getWebExperiments((i=>{fr.Nn("retrieved web experiments from the server"),t.Mn=new Map,i.forEach((s=>{if(s.feature_flag_key){var o;t.Mn&&(fr.Nn("setting flag key ",s.feature_flag_key," to web experiment ",s),(o=t.Mn)==null||o.set(s.feature_flag_key,s));var l=t._instance.getFeatureFlag(s.feature_flag_key);Lt(l)&&s.variants[l]&&t.Fn(s.name,l,s.variants[l].transforms)}else if(s.variants)for(var c in s.variants){var u=s.variants[c];fr.On(u)&&t.Fn(s.name,c,u.transforms)}}))}),n)},this._instance=e,this._instance.onFeatureFlags((n=>{this.onFeatureFlags(n)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())fr.Nn(zu);else if(!this.Rt.disable_web_experiments){if(qe(this.Mn))return this.Mn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();fr.Nn("applying feature flags",e),e.forEach((t=>{var n;if(this.Mn&&(n=this.Mn)!=null&&n.has(t)){var i,s=this._instance.getFeatureFlag(t),o=(i=this.Mn)==null?void 0:i.get(t);s&&o!=null&&o.variants[s]&&this.Fn(o.name,s,o.variants[s].transforms)}}))}}previewWebExperiment(){var e=fr.getWindowLocation();if(e!=null&&e.search){var t=ao(e?.search,"__experiment_id"),n=ao(e?.search,"__experiment_variant");t&&n&&(fr.Nn("previewing web experiments "+t+" && "+n),this.getWebExperiments((i=>{this.Pn(parseInt(t),n,i)}),!1,!0))}}loadIfEnabled(){this.Rt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,n){if(this.Rt.disable_web_experiments&&!n)return e([]);var i=this._instance.get_property("$web_experiments");if(i&&!t)return e(i);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Rt.token),method:"GET",callback:s=>e(s.statusCode===200&&s.json&&s.json.experiments||[])})}Pn(e,t,n){var i=n.filter((s=>s.id===e));i&&i.length>0&&(fr.Nn("Previewing web experiment ["+i[0].name+"] with variant ["+t+"]"),this.Fn(i[0].name,t,i[0].variants[t].transforms))}static On(e){return!qe(e.conditions)&&fr.Ln(e)&&fr.Dn(e)}static Ln(e){var t;if(qe(e.conditions)||qe((t=e.conditions)==null?void 0:t.url))return!0;var n,i,s,o=fr.getWindowLocation();return!!o&&((n=e.conditions)==null||!n.url||ry[(i=(s=e.conditions)==null?void 0:s.urlMatchType)!==null&&i!==void 0?i:"icontains"](e.conditions.url,o))}static getWindowLocation(){return K?.location}static Dn(e){var t;if(qe(e.conditions)||qe((t=e.conditions)==null?void 0:t.utm))return!0;var n=Bh();if(n.utm_source){var i,s,o,l,c,u,d,p,h=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_campaign||((s=e.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==n.utm_campaign,g=(o=e.conditions)==null||(o=o.utm)==null||!o.utm_source||((l=e.conditions)==null||(l=l.utm)==null?void 0:l.utm_source)==n.utm_source,m=(c=e.conditions)==null||(c=c.utm)==null||!c.utm_medium||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==n.utm_medium,v=(d=e.conditions)==null||(d=d.utm)==null||!d.utm_term||((p=e.conditions)==null||(p=p.utm)==null?void 0:p.utm_term)==n.utm_term;return h&&m&&v&&g}return!1}static Nn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];_e.info("[WebExperiments] "+e,n)}Fn(e,t,n){this._is_bot()?fr.Nn(zu):t!=="control"?n.forEach((i=>{if(i.selector){var s;fr.Nn("applying transform of variant "+t+" for experiment "+e+" ",i);var o=(s=document)==null?void 0:s.querySelectorAll(i.selector);o?.forEach((l=>{var c=l;i.html&&(c.innerHTML=i.html),i.css&&c.setAttribute("style",i.css)}))}})):fr.Nn("Control variants leave the page unmodified.")}_is_bot(){return Lr&&this._instance?rf(Lr,this.Rt.custom_blocked_useragents):void 0}}var Hr=xt("[Conversations]"),Xn="Conversations not available yet.",Ro={featureFlags:class{constructor(r){this.Bn=!1,this.jn=!1,this.qn=!1,this.Zn=!1,this.$n=!1,this.Hn=!1,this.Vn=!1,this.zn=!1,this._instance=r,this.featureFlagEventHandlers=[]}get Rt(){return this._instance.config}get Kr(){return this._instance.persistence}Yn(r){return this._instance.get_property(r)}Un(){var r,e;return(r=(e=this.Kr)==null?void 0:e.mr(this.Rt.feature_flag_cache_ttl_ms))!==null&&r!==void 0&&r}Wn(){return!!this.Un()&&(this.zn||this.qn||(this.zn=!0,yr.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}Gn(){var r,e=(r=this.Rt.evaluation_contexts)!==null&&r!==void 0?r:this.Rt.evaluation_environments;return!this.Rt.evaluation_environments||this.Rt.evaluation_contexts||this.Vn||(yr.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.Vn=!0),e!=null&&e.length?e.filter((t=>{var n=t&&typeof t=="string"&&t.trim().length>0;return n||yr.error("Invalid evaluation context found:",t,"Expected non-empty string"),n})):[]}Xn(){return this.Gn().length>0}initialize(){var r,e,{config:t}=this._instance,n=(r=(e=t.bootstrap)==null?void 0:e.featureFlags)!==null&&r!==void 0?r:{};if(Object.keys(n).length){var i,s,o=(i=(s=t.bootstrap)==null?void 0:s.featureFlagPayloads)!==null&&i!==void 0?i:{},l=Object.keys(n).filter((u=>!!n[u])).reduce(((u,d)=>(u[d]=n[d]||!1,u)),{}),c=Object.keys(o).filter((u=>l[u])).reduce(((u,d)=>(o[d]&&(u[d]=o[d]),u)),{});this.receivedFeatureFlags({featureFlags:l,featureFlagPayloads:c})}}updateFlags(r,e,t){var n=t!=null&&t.merge?this.getFlagVariants():{},i=t!=null&&t.merge?this.getFlagPayloads():{},s=pe({},n,r),o=pe({},i,e),l={};for(var[c,u]of Object.entries(s)){var d=typeof u=="string";l[c]={key:c,enabled:!!d||!!u,variant:d?u:void 0,reason:void 0,metadata:xe(o?.[c])?void 0:{id:0,version:void 0,description:void 0,payload:o[c]}}}this.receivedFeatureFlags({flags:l})}get hasLoadedFlags(){return this.jn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var r=this.Yn(Ha),e=this.Yn(Rn),t=this.Yn(qi);if(!t&&!e)return r||{};var n=At({},r||{}),i=[...new Set([...Object.keys(t||{}),...Object.keys(e||{})])];for(var s of i){var o,l,c=n[s],u=e?.[s],d=xe(u)?(o=c?.enabled)!==null&&o!==void 0&&o:!!u,p=xe(u)?c.variant:typeof u=="string"?u:void 0,h=t?.[s],g=pe({},c,{enabled:d,variant:d?p??c?.variant:void 0});d!==c?.enabled&&(g.original_enabled=c?.enabled),p!==c?.variant&&(g.original_variant=c?.variant),h&&(g.metadata=pe({},c?.metadata,{payload:h,original_payload:c==null||(l=c.metadata)==null?void 0:l.payload})),n[s]=g}return this.Bn||(yr.warn(" Overriding feature flag details!",{flagDetails:r,overriddenPayloads:t,finalDetails:n}),this.Bn=!0),n}getFlagVariants(){var r=this.Yn(_i),e=this.Yn(Rn);if(!e)return r||{};for(var t=At({},r),n=Object.keys(e),i=0;n.length>i;i++)t[n[i]]=e[n[i]];return this.Bn||(yr.warn(" Overriding feature flags!",{enabledFlags:r,overriddenFlags:e,finalFlags:t}),this.Bn=!0),t}getFlagPayloads(){var r=this.Yn(Nu),e=this.Yn(qi);if(!e)return r||{};for(var t=At({},r||{}),n=Object.keys(e),i=0;n.length>i;i++)t[n[i]]=e[n[i]];return this.Bn||(yr.warn(" Overriding feature flag payloads!",{flagPayloads:r,overriddenPayloads:e,finalPayloads:t}),this.Bn=!0),t}reloadFeatureFlags(){this.Zn||this.Rt.advanced_disable_feature_flags||this.Jn||(this._instance.ki.emit("featureFlagsReloading",!0),this.Jn=setTimeout((()=>{this.Kn()}),5))}Qn(){clearTimeout(this.Jn),this.Jn=void 0}ensureFlagsLoaded(){this.jn||this.qn||this.Jn||this.reloadFeatureFlags()}setAnonymousDistinctId(r){this.$anon_distinct_id=r}setReloadingPaused(r){this.Zn=r}Kn(r){var e;if(this.Qn(),!this._instance.Tr())if(this.qn)this.$n=!0;else{var t=this.Rt.token,n=this.Yn(Zs),i={token:t,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:pe({},((e=this.Kr)==null?void 0:e.get_initial_props())||{},this.Yn(is)||{}),group_properties:this.Yn(Zn),timezone:$h()};zn(n)||xe(n)||(i.$device_id=n),(r!=null&&r.disableFlags||this.Rt.advanced_disable_feature_flags)&&(i.disable_flags=!0),this.Xn()&&(i.evaluation_contexts=this.Gn());var s=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Rt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.qn=!0,this._instance._send_request({method:"POST",url:s,data:i,compression:this.Rt.disable_compression?void 0:ln.Base64,timeout:this.Rt.feature_flag_request_timeout_ms,callback:o=>{var l,c,u,d=!0;if(o.statusCode===200&&(this.$n||(this.$anon_distinct_id=void 0),d=!1),this.qn=!1,!i.disable_flags||this.$n){this.Hn=!d;var p=[];o.error?o.error instanceof Error?p.push(o.error.name==="AbortError"?"timeout":"connection_error"):p.push("unknown_error"):o.statusCode!==200&&p.push("api_error_"+o.statusCode),(l=o.json)!=null&&l.errorsWhileComputingFlags&&p.push("errors_while_computing_flags");var h,g=!((c=o.json)==null||(c=c.quotaLimited)==null||!c.includes("feature_flags"));g&&p.push("quota_limited"),(u=this.Kr)==null||u.register({[Va]:p}),g?yr.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(i.disable_flags||this.receivedFeatureFlags((h=o.json)!==null&&h!==void 0?h:{},d),this.$n&&(this.$n=!1,this.Kn()))}}})}}getFeatureFlag(r,e){var t;if(e===void 0&&(e={}),!e.fresh||this.Hn)if(this.jn||this.getFlags()&&this.getFlags().length>0){if(!this.Wn()){var n=this.getFeatureFlagResult(r,e);return(t=n?.variant)!==null&&t!==void 0?t:n?.enabled}}else yr.warn('getFeatureFlag for key "'+r+ha)}getFeatureFlagDetails(r){return this.getFlagsWithDetails()[r]}getFeatureFlagPayload(r){var e=this.getFeatureFlagResult(r,{send_event:!1});return e?.payload}getFeatureFlagResult(r,e){if(e===void 0&&(e={}),!e.fresh||this.Hn)if(this.jn||this.getFlags()&&this.getFlags().length>0){if(!this.Wn()){var t=this.getFlagVariants(),n=r in t,i=t[r],s=this.getFlagPayloads()[r],o=String(i),l=this.Yn(Fu)||void 0,c=this.Yn(eo)||void 0,u=this.Yn(ls)||{};if(this.Rt.advanced_feature_flags_dedup_per_session){var d,p=this._instance.get_session_id(),h=this.Yn(Ba);p&&p!==h&&(u={},(d=this.Kr)==null||d.register({[ls]:u,[Ba]:p}))}if((e.send_event||!("send_event"in e))&&(!(r in u)||!u[r].includes(o))){var g,m,v,y,b,P,w,x,T,R;Je(u[r])?u[r].push(o):u[r]=[o],(g=this.Kr)==null||g.register({[ls]:u});var C=this.getFeatureFlagDetails(r),S=[...(m=this.Yn(Va))!==null&&m!==void 0?m:[]];xe(i)&&S.push("flag_missing");var A={$feature_flag:r,$feature_flag_response:i,$feature_flag_payload:s||null,$feature_flag_request_id:l,$feature_flag_evaluated_at:c,$feature_flag_bootstrapped_response:((v=this.Rt.bootstrap)==null||(v=v.featureFlags)==null?void 0:v[r])||null,$feature_flag_bootstrapped_payload:((y=this.Rt.bootstrap)==null||(y=y.featureFlagPayloads)==null?void 0:y[r])||null,$used_bootstrap_value:!this.Hn};xe(C==null||(b=C.metadata)==null?void 0:b.version)||(A.$feature_flag_version=C.metadata.version);var I,M=(P=C==null||(w=C.reason)==null?void 0:w.description)!==null&&P!==void 0?P:C==null||(x=C.reason)==null?void 0:x.code;M&&(A.$feature_flag_reason=M),C!=null&&(T=C.metadata)!=null&&T.id&&(A.$feature_flag_id=C.metadata.id),xe(C?.original_variant)&&xe(C?.original_enabled)||(A.$feature_flag_original_response=xe(C.original_variant)?C.original_enabled:C.original_variant),C!=null&&(R=C.metadata)!=null&&R.original_payload&&(A.$feature_flag_original_payload=C==null||(I=C.metadata)==null?void 0:I.original_payload),S.length&&(A.$feature_flag_error=S.join(",")),this._instance.capture("$feature_flag_called",A)}if(n){var L=s;if(!xe(s))try{L=JSON.parse(s)}catch{}return{key:r,enabled:!!i,variant:typeof i=="string"?i:void 0,payload:L}}}}else yr.warn('getFeatureFlagResult for key "'+r+ha)}getRemoteConfigPayload(r,e){var t=this.Rt.token,n={distinct_id:this._instance.get_distinct_id(),token:t};this.Xn()&&(n.evaluation_contexts=this.Gn()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:n,compression:this.Rt.disable_compression?void 0:ln.Base64,timeout:this.Rt.feature_flag_request_timeout_ms,callback(i){var s,o=(s=i.json)==null?void 0:s.featureFlagPayloads;e(o?.[r]||void 0)}})}isFeatureEnabled(r,e){if(e===void 0&&(e={}),!e.fresh||this.Hn){if(this.jn||this.getFlags()&&this.getFlags().length>0){var t=this.getFeatureFlag(r,e);return xe(t)?void 0:!!t}yr.warn('isFeatureEnabled for key "'+r+ha)}}addFeatureFlagsHandler(r){this.featureFlagEventHandlers.push(r)}removeFeatureFlagsHandler(r){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==r))}receivedFeatureFlags(r,e){if(this.Kr){this.jn=!0;var t=this.getFlagVariants(),n=this.getFlagPayloads(),i=this.getFlagsWithDetails();(function(s,o,l,c,u){l===void 0&&(l={}),c===void 0&&(c={}),u===void 0&&(u={});var d=(R=>{var C=R.flags;return C?(R.featureFlags=Object.fromEntries(Object.keys(C).map((S=>{var A;return[S,(A=C[S].variant)!==null&&A!==void 0?A:C[S].enabled]}))),R.featureFlagPayloads=Object.fromEntries(Object.keys(C).filter((S=>C[S].enabled)).filter((S=>{var A;return(A=C[S].metadata)==null?void 0:A.payload})).map((S=>{var A;return[S,(A=C[S].metadata)==null?void 0:A.payload]})))):yr.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),R})(s),p=d.flags,h=d.featureFlags,g=d.featureFlagPayloads;if(h){var m=s.requestId,v=s.evaluatedAt;if(Je(h)){yr.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var y={};if(h)for(var b=0;h.length>b;b++)y[h[b]]=!0;o&&o.register({[fa]:h,[_i]:y})}else{var P=h,w=g,x=p;if(s.errorsWhileComputingFlags)if(p){var T=new Set(Object.keys(p).filter((R=>{var C;return!((C=p[R])!=null&&C.failed)})));P=pe({},l,Object.fromEntries(Object.entries(P).filter((R=>{var[C]=R;return T.has(C)})))),w=pe({},c,Object.fromEntries(Object.entries(w||{}).filter((R=>{var[C]=R;return T.has(C)})))),x=pe({},u,Object.fromEntries(Object.entries(x||{}).filter((R=>{var[C]=R;return T.has(C)}))))}else P=pe({},l,P),w=pe({},c,w),x=pe({},u,x);o&&o.register(pe({[fa]:Object.keys(Du(P)),[_i]:P||{},[Nu]:w||{},[Ha]:x||{}},m?{[Fu]:m}:{},v?{[eo]:v}:{}))}}})(r,this.Kr,t,n,i),e||(this.zn=!1),this.ts(e)}}override(r,e){e===void 0&&(e=!1),yr.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:r,suppressWarning:e})}overrideFeatureFlags(r){if(!this._instance.__loaded||!this.Kr)return yr.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(r===!1)return this.Kr.unregister(Rn),this.Kr.unregister(qi),this.ts(),Yn.info("All overrides cleared");if(Je(r)){var e=Lu(r);return this.Kr.register({[Rn]:e}),this.ts(),Yn.info("Flag overrides set",{flags:r})}if(r&&typeof r=="object"&&("flags"in r||"payloads"in r)){var t,n=r;if(this.Bn=!!((t=n.suppressWarning)!==null&&t!==void 0&&t),"flags"in n){if(n.flags===!1)this.Kr.unregister(Rn),Yn.info("Flag overrides cleared");else if(n.flags){if(Je(n.flags)){var i=Lu(n.flags);this.Kr.register({[Rn]:i})}else this.Kr.register({[Rn]:n.flags});Yn.info("Flag overrides set",{flags:n.flags})}}return"payloads"in n&&(n.payloads===!1?(this.Kr.unregister(qi),Yn.info("Payload overrides cleared")):n.payloads&&(this.Kr.register({[qi]:n.payloads}),Yn.info("Payload overrides set",{payloads:n.payloads}))),void this.ts()}if(r&&typeof r=="object")return this.Kr.register({[Rn]:r}),this.ts(),Yn.info("Flag overrides set",{flags:r});yr.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:r})}onFeatureFlags(r){if(this.addFeatureFlagsHandler(r),this.jn){var{flags:e,flagVariants:t}=this.es();r(e,t)}return()=>this.removeFeatureFlagsHandler(r)}updateEarlyAccessFeatureEnrollment(r,e,t){var n,i=(this.Yn(ns)||[]).find((c=>c.flagKey===r)),s={["$feature_enrollment/"+r]:e},o={$feature_flag:r,$feature_enrollment:e,$set:s};i&&(o.$early_access_feature_name=i.name),t&&(o.$feature_enrollment_stage=t),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(s,!1);var l=pe({},this.getFlagVariants(),{[r]:e});(n=this.Kr)==null||n.register({[fa]:Object.keys(Du(l)),[_i]:l}),this.ts()}getEarlyAccessFeatures(r,e,t){e===void 0&&(e=!1);var n=this.Yn(ns),i=t?"&"+t.map((s=>"stage="+s)).join("&"):"";if(n&&!e)return r(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Rt.token+i),method:"GET",callback:s=>{var o,l;if(s.json){var c=s.json.earlyAccessFeatures;return(o=this.Kr)==null||o.unregister(ns),(l=this.Kr)==null||l.register({[ns]:c}),r(c)}}})}es(){var r=this.getFlags(),e=this.getFlagVariants();return{flags:r.filter((t=>e[t])),flagVariants:Object.keys(e).filter((t=>e[t])).reduce(((t,n)=>(t[n]=e[n],t)),{})}}ts(r){var{flags:e,flagVariants:t}=this.es();this.featureFlagEventHandlers.forEach((n=>n(e,t,{errorsLoading:r})))}setPersonPropertiesForFlags(r,e){e===void 0&&(e=!0);var t=this.Yn(is)||{};this._instance.register({[is]:pe({},t,r)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(is)}setGroupPropertiesForFlags(r,e){e===void 0&&(e=!0);var t=this.Yn(Zn)||{};Object.keys(t).length!==0&&Object.keys(t).forEach((n=>{t[n]=pe({},t[n],r[n]),delete r[n]})),this._instance.register({[Zn]:pe({},t,r)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(r){if(r){var e=this.Yn(Zn)||{};this._instance.register({[Zn]:pe({},e,{[r]:{}})})}else this._instance.unregister(Zn)}reset(){this.jn=!1,this.qn=!1,this.Zn=!1,this.$n=!1,this.Hn=!1,this.$anon_distinct_id=void 0,this.Qn(),this.Bn=!1}}},ny={sessionRecording:class{get Rt(){return this._instance.config}get Kr(){return this._instance.persistence}get started(){var r;return!((r=this.rs)==null||!r.isStarted)}get status(){var r,e;return this.ns===Wi||this.ns===Ns?this.ns:(r=(e=this.rs)==null?void 0:e.status)!==null&&r!==void 0?r:this.ns}constructor(r){if(this._forceAllowLocalhostNetworkCapture=!1,this.ns=ku,this.ss=void 0,this._instance=r,!this._instance.sessionManager)throw An.error("started without valid sessionManager"),new Error(sl+" started without valid sessionManager. This is a bug.");if(this.Rt.cookieless_mode===Qr)throw new Error(sl+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get os(){var r,e=!((r=this._instance.get_property(Ts))==null||!r.enabled),t=!this.Rt.disable_session_recording,n=this.Rt.disable_session_recording||this._instance.consent.isOptedOut();return K&&e&&t&&!n}startIfEnabledOrStop(r){var e;if(!this.os||(e=this.rs)==null||!e.isStarted){var t=!xe(Object.assign)&&!xe(Array.from);this.os&&t?(this.ls(r),An.info("starting")):(this.ns=ku,this.stopRecording())}}ls(r){var e,t,n;this.os&&(this.ns!==Wi&&this.ns!==Ns&&(this.ns=Tu),Me!=null&&(e=Me.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(t=Me.__PosthogExtensions__)!=null&&t.initSessionRecording?this.us(r):(n=Me.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,this.hs,(i=>{if(i)return An.error("could not load recorder",i);this.us(r)})))}stopRecording(){var r,e;(r=this.ss)==null||r.call(this),this.ss=void 0,(e=this.rs)==null||e.stop()}cs(){var r,e;(r=this.ss)==null||r.call(this),this.ss=void 0,(e=this.rs)==null||e.discard()}ds(){var r;(r=this.Kr)==null||r.unregister(Lh)}vs(r,e){if(qe(r))return null;var t,n=fn(r)?r:parseFloat(r);return typeof(t=n)!="number"||!Number.isFinite(t)||0>t||t>1?(An.warn(e+" must be between 0 and 1. Ignoring invalid value:",r),null):n}fs(r){if(this.Kr){var e,t,n=this.Kr,i=()=>{var s,o=r.sessionRecording===!1?void 0:r.sessionRecording,l=this.vs((s=this.Rt.session_recording)==null?void 0:s.sampleRate,"session_recording.sampleRate"),c=this.vs(o?.sampleRate,"remote config sampleRate"),u=l??c;qe(u)&&this.ds();var d=o?.minimumDurationMilliseconds;n.register({[Ts]:pe({cache_timestamp:Date.now(),enabled:!!o},o,{networkPayloadCapture:pe({capturePerformance:r.capturePerformance},o?.networkPayloadCapture),canvasRecording:{enabled:o?.recordCanvas,fps:o?.canvasFps,quality:o?.canvasQuality},sampleRate:u,minimumDurationMilliseconds:xe(d)?null:d,endpoint:o?.endpoint,triggerMatchType:o?.triggerMatchType,masking:o?.masking,urlTriggers:o?.urlTriggers})})};i(),(e=this.ss)==null||e.call(this),this.ss=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(i)}}onRemoteConfig(r){return"sessionRecording"in r?r.sessionRecording===!1?(this.fs(r),void this.cs()):(this.fs(r),void this.startIfEnabledOrStop()):(this.ns===Wi&&(this.ns=Ns,An.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(r,e){var t;e===void 0&&(e="log"),(t=this.rs)!=null&&t.log?this.rs.log(r,e):An.warn("log called before recorder was ready")}get hs(){var r,e,t=(r=this._instance)==null||(r=r.persistence)==null?void 0:r.get_property(Ts);return(t==null||(e=t.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}ps(){var r,e=this._instance.get_property(Ts);if(!e)return!1;var t=(r=(typeof e=="object"?e:JSON.parse(e)).cache_timestamp)!==null&&r!==void 0?r:Date.now();return 36e5>=Date.now()-t}us(r){var e,t;if((e=Me.__PosthogExtensions__)==null||!e.initSessionRecording)return An.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({$sdk_debug_recording_script_not_loaded:!0});if(this.rs||(this.rs=(t=Me.__PosthogExtensions__)==null?void 0:t.initSessionRecording(this._instance),this.rs._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.ps())return this.ns===Ns||this.ns===Wi?void 0:(this.ns=Wi,An.info("persisted remote config is stale, requesting fresh config before starting"),void new Yh(this._instance).load());this.ns=Tu,this.rs.start(r)}onRRwebEmit(r){var e;(e=this.rs)==null||e.onRRwebEmit==null||e.onRRwebEmit(r)}overrideLinkedFlag(){var r,e;this.rs||(e=this.Kr)==null||e.register({$replay_override_linked_flag:!0}),(r=this.rs)==null||r.overrideLinkedFlag()}overrideSampling(){var r,e;this.rs||(e=this.Kr)==null||e.register({$replay_override_sampling:!0}),(r=this.rs)==null||r.overrideSampling()}overrideTrigger(r){var e,t;this.rs||(t=this.Kr)==null||t.register({[r==="url"?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}),(e=this.rs)==null||e.overrideTrigger(r)}get sdkDebugProperties(){var r;return((r=this.rs)==null?void 0:r.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(r,e){var t;return!((t=this.rs)==null||!t.tryAddCustomEvent(r,e))}}},iy={autocapture:class{constructor(r){this.gs=!1,this.ys=null,this.bs=!1,this.instance=r,this.rageclicks=new wu(r.config.rageclick),this.ws=null}initialize(){this.startIfEnabled()}get Rt(){var r,e,t=Vt(this.instance.config.autocapture)?this.instance.config.autocapture:{};return t.url_allowlist=(r=t.url_allowlist)==null?void 0:r.map((n=>new RegExp(n))),t.url_ignorelist=(e=t.url_ignorelist)==null?void 0:e.map((n=>new RegExp(n))),t}_s(){if(this.isBrowserSupported()){if(K&&me){var r=t=>{t=t||K?.event;try{this.Is(t)}catch(n){Su.error("Failed to capture event",n)}};if(Nt(me,"submit",r,{capture:!0}),Nt(me,"change",r,{capture:!0}),Nt(me,"click",r,{capture:!0}),this.Rt.capture_copied_text){var e=t=>{this.Is(t=t||K?.event,la)};Nt(me,"copy",e,{capture:!0}),Nt(me,"cut",e,{capture:!0})}}}else Su.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.gs&&(this._s(),this.gs=!0)}onRemoteConfig(r){r.elementsChainAsString&&(this.bs=r.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Uc]:!!r.autocapture_opt_out}),this.ys=!!r.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(r){this.ws=r}getElementSelectors(r){var e,t=[];return(e=this.ws)==null||e.forEach((n=>{var i=me?.querySelectorAll(n);i?.forEach((s=>{r===s&&t.push(n)}))})),t}get isEnabled(){var r,e,t=(r=this.instance.persistence)==null?void 0:r.props[Uc];if(zn(this.ys)&&!bn(t)&&!this.instance.Tr())return!1;var n=(e=this.ys)!==null&&e!==void 0?e:!!t;return!!this.instance.config.autocapture&&!n}Is(r,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var t,n=pu(r);lf(n)&&(n=n.parentNode||null),e==="$autocapture"&&r.type==="click"&&r instanceof MouseEvent&&this.instance.config.rageclick&&(t=this.rageclicks)!=null&&t.isRageClick(r.clientX,r.clientY,r.timeStamp||new Date().getTime())&&(function(p,h){if(!K||nl(p))return!1;var g,m,v;if(bn(h)?(g=!!h&&_u,m=void 0):(g=(v=h?.css_selector_ignorelist)!==null&&v!==void 0?v:_u,m=h?.content_ignorelist),g===!1)return!1;var{targetElementList:y}=yu(p,!1);return!(function(b,P){if(b===!1||xe(b))return!1;var w;if(b===!0)w=U1;else{if(!Je(b))return!1;if(b.length>10)return _e.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;w=b.map((x=>x.toLowerCase()))}return P.some((x=>{var{safeText:T,ariaLabel:R}=x;return w.some((C=>T.includes(C)||R.includes(C)))}))})(m,y.map((b=>{var P;return{safeText:ms(b).toLowerCase(),ariaLabel:((P=b.getAttribute("aria-label"))==null?void 0:P.toLowerCase().trim())||""}})))&&!mu(y,g)})(n,this.instance.config.rageclick)&&this.Is(r,"$rageclick");var i=e===la;if(n&&(function(p,h,g,m,v){var y,b,P,w;if(g===void 0&&(g=void 0),!K||nl(p)||(y=g)!=null&&y.url_allowlist&&!gu(g.url_allowlist)||(b=g)!=null&&b.url_ignorelist&&gu(g.url_ignorelist))return!1;if((P=g)!=null&&P.dom_event_allowlist){var x=g.dom_event_allowlist;if(x&&!x.some((A=>h.type===A)))return!1}var{parentIsUsefulElement:T,targetElementList:R}=yu(p,m);if(!(function(A,I){var M=I?.element_allowlist;if(xe(M))return!0;var L,W=function(Y){if(M.some((le=>Y.tagName.toLowerCase()===le)))return{v:!0}};for(var j of A)if(L=W(j))return L.v;return!1})(R,g)||!mu(R,(w=g)==null?void 0:w.css_selector_allowlist))return!1;var C=K.getComputedStyle(p);if(C&&C.getPropertyValue("cursor")==="pointer"&&h.type==="click")return!0;var S=p.tagName.toLowerCase();switch(S){case"html":return!1;case"form":return(v||["submit"]).indexOf(h.type)>=0;case"input":case"select":case"textarea":return(v||["change","click"]).indexOf(h.type)>=0;default:return T?(v||["click"]).indexOf(h.type)>=0:(v||["click"]).indexOf(h.type)>=0&&(cc.indexOf(S)>-1||p.getAttribute("contenteditable")==="true")}})(n,r,this.Rt,i,i?["copy","cut"]:void 0)){var{props:s,explicitNoCapture:o}=$1(n,{e:r,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Rt.element_attribute_ignorelist,elementsChainAsString:this.bs});if(o)return!1;var l=this.getElementSelectors(n);if(l&&l.length>0&&(s.$element_selectors=l),e===la){var c,u=uf(K==null||(c=K.getSelection())==null?void 0:c.toString()),d=r.type||"clipboard";if(!u)return!1;s.$selected_content=u,s.$copy_type=d}return this.instance.capture(e,s),!0}}}isBrowserSupported(){return yn(me?.querySelectorAll)}},historyAutocapture:class{constructor(r){var e;this._instance=r,this.Cs=(K==null||(e=K.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(_e.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ss&&this.Ss(),this.Ss=void 0,_e.info("History API monitoring stopped")}monitorHistoryChanges(){var r,e;if(K&&K.history){var t=this;(r=K.history.pushState)!=null&&r.__posthog_wrapped__||Pu(K.history,"pushState",(n=>function(i,s,o){n.call(this,i,s,o),t.ks("pushState")})),(e=K.history.replaceState)!=null&&e.__posthog_wrapped__||Pu(K.history,"replaceState",(n=>function(i,s,o){n.call(this,i,s,o),t.ks("replaceState")})),this.xs()}}ks(r){try{var e,t=K==null||(e=K.location)==null?void 0:e.pathname;if(!t)return;t!==this.Cs&&this.isEnabled&&this._instance.capture(vi,{navigation_type:r}),this.Cs=t}catch(n){_e.error("Error capturing "+r+" pageview",n)}}xs(){if(!this.Ss){var r=()=>{this.ks("popstate")};Nt(K,"popstate",r),this.Ss=()=>{K&&K.removeEventListener("popstate",r)}}}},heatmaps:class{get Rt(){return this.instance.config}constructor(r){var e;this.Ts=!1,this.gs=!1,this.As=null,this.instance=r,this.Ts=!((e=this.instance.persistence)==null||!e.props[za]),this.rageclicks=new wu(r.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var r=5e3;return Vt(this.Rt.capture_heatmaps)&&this.Rt.capture_heatmaps.flush_interval_milliseconds&&(r=this.Rt.capture_heatmaps.flush_interval_milliseconds),r}get isEnabled(){return qe(this.Rt.capture_heatmaps)?qe(this.Rt.enable_heatmaps)?this.Ts:this.Rt.enable_heatmaps:this.Rt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.gs)return;X1.info("starting..."),this.Es(),this.Tt()}else{var r;clearInterval((r=this.As)!==null&&r!==void 0?r:void 0),this.Rs(),this.getAndClearBuffer()}}onRemoteConfig(r){if("heatmaps"in r){var e=!!r.heatmaps;this.instance.persistence&&this.instance.persistence.register({[za]:e}),this.Ts=e,this.startIfEnabled()}}getAndClearBuffer(){var r=this.T;return this.T=void 0,r}Ns(r){this.wt(r.originalEvent,"deadclick")}Tt(){this.As&&clearInterval(this.As),this.As=me?.visibilityState==="visible"?setInterval(this.Zr.bind(this),this.flushIntervalMilliseconds):null}Es(){K&&me&&(this.Ms=this.Zr.bind(this),Nt(K,io,this.Ms),this.Fs=r=>this.wt(r||K?.event),Nt(me,"click",this.Fs,{capture:!0}),this.Os=r=>this.Ps(r||K?.event),Nt(me,"mousemove",this.Os,{capture:!0}),this.Ls=new Xc(this.instance,d1,this.Ns.bind(this)),this.Ls.startIfEnabledOrStop(),this.Ds=this.Tt.bind(this),Nt(me,no,this.Ds),this.gs=!0)}Rs(){var r;K&&me&&(this.Ms&&K.removeEventListener(io,this.Ms),this.Fs&&me.removeEventListener("click",this.Fs,{capture:!0}),this.Os&&me.removeEventListener("mousemove",this.Os,{capture:!0}),this.Ds&&me.removeEventListener(no,this.Ds),clearTimeout(this.Bs),(r=this.Ls)==null||r.stop(),this.gs=!1)}js(r,e){var t=this.instance.scrollManager.scrollY(),n=this.instance.scrollManager.scrollX(),i=this.instance.scrollManager.scrollElement(),s=(function(o,l,c){for(var u=o;u&&Mo(u)&&!Ln(u,"body");){if(u===c)return!1;if(Be(l,K?.getComputedStyle(u).position))return!0;u=df(u)}return!1})(pu(r),["fixed","sticky"],i);return{x:r.clientX+(s?0:n),y:r.clientY+(s?0:t),target_fixed:s,type:e}}wt(r,e){var t;if(e===void 0&&(e="click"),!vu(r.target)&&Cu(r)){var n=this.js(r,e);(t=this.rageclicks)!=null&&t.isRageClick(r.clientX,r.clientY,new Date().getTime())&&this.qs(pe({},n,{type:"rageclick"})),this.qs(n)}}Ps(r){!vu(r.target)&&Cu(r)&&(clearTimeout(this.Bs),this.Bs=setTimeout((()=>{this.qs(this.js(r,"mousemove"))}),500))}qs(r){if(K){var e=K.location.href,t=this.Rt.custom_personal_data_properties,n=this.Rt.mask_personal_data_properties?[...Ai,...t||[]]:[],i=gs(e,n,ps);this.T=this.T||{},this.T[i]||(this.T[i]=[]),this.T[i].push(r)}}Zr(){this.T&&!mi(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:Xc,webVitalsAutocapture:class{constructor(r){var e;this.Ts=!1,this.gs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Zs=()=>{clearTimeout(this.$s),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((t,n)=>pe({},t,{["$web_vitals_"+n.name+"_event"]:pe({},n),["$web_vitals_"+n.name+"_value"]:n.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.nt=t=>{var n,i=(n=this._instance.sessionManager)==null?void 0:n.checkAndGetSessionAndWindowId(!0);if(xe(i))Cn.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var s=this.Hs();xe(s)||(qe(t?.name)||qe(t?.value)?Cn.error("Invalid metric received",t):!this.Vs||this.Vs>t.value?(this.T.url!==s&&(this.Zs(),this.$s=setTimeout(this.Zs,this.flushToCaptureTimeoutMs)),xe(this.T.url)&&(this.T.url=s),this.T.firstMetricTimestamp=xe(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,t.attribution&&t.attribution.interactionTargetElement&&(t.attribution.interactionTargetElement=void 0),this.T.metrics.push(pe({},t,{$current_url:s,$session_id:i.sessionId,$window_id:i.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.Zs()):Cn.error("Ignoring metric with value >= "+this.Vs,t))}},this.zs=()=>{if(!this.gs){var t,n,i,s,o=Me.__PosthogExtensions__;xe(o)||xe(o.postHogWebVitalsCallbacks)||({onLCP:t,onCLS:n,onFCP:i,onINP:s}=o.postHogWebVitalsCallbacks),t&&n&&i&&s?(this.allowedMetrics.indexOf("LCP")>-1&&t(this.nt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&n(this.nt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this.nt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&s(this.nt.bind(this)),this.gs=!0):Cn.error("web vitals callbacks not loaded - not starting")}},this._instance=r,this.Ts=!((e=this._instance.persistence)==null||!e.props[Wc]),this.startIfEnabled()}get Ys(){return this._instance.config.capture_performance}get allowedMetrics(){var r,e,t=Vt(this.Ys)?(r=this.Ys)==null?void 0:r.web_vitals_allowed_metrics:void 0;return qe(t)?((e=this._instance.persistence)==null?void 0:e.props[Gc])||["CLS","FCP","INP","LCP"]:t}get flushToCaptureTimeoutMs(){return(Vt(this.Ys)?this.Ys.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var r=Vt(this.Ys)?this.Ys.web_vitals_attribution:void 0;return r!=null&&r}get Vs(){var r=Vt(this.Ys)&&fn(this.Ys.__web_vitals_max_value)?this.Ys.__web_vitals_max_value:Eu;return r>0&&6e4>=r?Eu:r}get isEnabled(){var r=ir?.protocol;if(r!=="http:"&&r!=="https:")return Cn.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=Vt(this.Ys)?this.Ys.web_vitals:bn(this.Ys)?this.Ys:void 0;return bn(e)?e:this.Ts}startIfEnabled(){this.isEnabled&&!this.gs&&(Cn.info("enabled, starting..."),this.nr(this.zs))}onRemoteConfig(r){if("capturePerformance"in r){var e=Vt(r.capturePerformance)&&!!r.capturePerformance.web_vitals,t=Vt(r.capturePerformance)?r.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Wc]:e}),this._instance.persistence.register({[Gc]:t})),this.Ts=e,this.startIfEnabled()}}nr(r){var e,t;(e=Me.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?r():(t=Me.__PosthogExtensions__)==null||t.loadExternalDependency==null||t.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(n=>{n?Cn.error("failed to load script",n):r()}))}Hs(){var r=K?K.location.href:void 0;if(r){var e=this._instance.config.custom_personal_data_properties,t=this._instance.config.mask_personal_data_properties?[...Ai,...e||[]]:[];return gs(r,t,ps)}Cn.error("Could not determine current URL")}}},sy={exceptionObserver:class{constructor(r){var e,t,n;this.zs=()=>{var i;if(K&&this.isEnabled&&(i=Me.__PosthogExtensions__)!=null&&i.errorWrappingFunctions){var s=Me.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,o=Me.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,l=Me.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.Us&&this.Rt.capture_unhandled_errors&&(this.Us=s(this.captureException.bind(this))),!this.Ws&&this.Rt.capture_unhandled_rejections&&(this.Ws=o(this.captureException.bind(this))),!this.Gs&&this.Rt.capture_console_errors&&(this.Gs=l(this.captureException.bind(this)))}catch(c){Vi.error("failed to start",c),this.Xs()}}},this._instance=r,this.Js=!((e=this._instance.persistence)==null||!e.props[Bc]),this.Ks=new S_({refillRate:(t=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&t!==void 0?t:1,bucketSize:(n=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&n!==void 0?n:10,refillInterval:1e4,qt:Vi}),this.Rt=this.Qs(),this.startIfEnabledOrStop()}Qs(){var r=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Vt(r)?e=pe({},e,r):(xe(r)?this.Js:r)&&(e=pe({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.Rt.capture_console_errors||this.Rt.capture_unhandled_errors||this.Rt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(Vi.info("enabled"),this.Xs(),this.nr(this.zs)):this.Xs()}nr(r){var e,t;(e=Me.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&r(),(t=Me.__PosthogExtensions__)==null||t.loadExternalDependency==null||t.loadExternalDependency(this._instance,"exception-autocapture",(n=>{if(n)return Vi.error("failed to load script",n);r()}))}Xs(){var r,e,t;(r=this.Us)==null||r.call(this),this.Us=void 0,(e=this.Ws)==null||e.call(this),this.Ws=void 0,(t=this.Gs)==null||t.call(this),this.Gs=void 0}onRemoteConfig(r){"autocaptureExceptions"in r&&(this.Js=!!r.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[Bc]:this.Js}),this.Rt=this.Qs(),this.startIfEnabledOrStop())}onConfigChange(){this.Rt=this.Qs()}captureException(r){var e,t,n,i=(e=r==null||(t=r.$exception_list)==null||(t=t[0])==null?void 0:t.type)!==null&&e!==void 0?e:"Exception";this.Ks.consumeRateLimit(i)?Vi.info("Skipping exception capture because of client rate limiting.",{exception:i}):(n=this._instance.exceptions)==null||n.sendExceptionEvent(r)}},exceptions:class{constructor(r){var e,t;this.eo=[],this.ro=new F_([new V_,new Z_,new q_,new W_,new X_,new Y_,new K_,new J_],(function(n){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;i>o;o++)s[o-1]=arguments[o];return function(l,c){c===void 0&&(c=0);for(var u=[],d=l.split(`
2
2
  `),p=c;d.length>p;p++){var h=d[p];if(1024>=h.length){var g=jc.test(h)?h.replace(jc,"$1"):h;if(!g.match(/\S*Error: /)){for(var m of s){var v=m(g,n);if(v){u.push(v);break}}if(u.length>=50)break}}}return(function(y){if(!y.length)return[];var b=Array.from(y);return b.reverse(),b.slice(0,50).map((P=>{return pe({},P,{filename:P.filename||(w=b,w[w.length-1]||{}).filename,function:P.function||Ci});var w}))})(u)}})("web:javascript",j_,B_)),this._instance=r,this.eo=(e=(t=this._instance.persistence)==null?void 0:t.get_property(ja))!==null&&e!==void 0?e:[]}onRemoteConfig(r){var e,t,n;if("errorTracking"in r){var i=(e=(t=r.errorTracking)==null?void 0:t.suppressionRules)!==null&&e!==void 0?e:[],s=(n=r.errorTracking)==null?void 0:n.captureExtensionExceptions;this.eo=i,this._instance.persistence&&this._instance.persistence.register({[ja]:this.eo,[Vc]:s})}}get io(){var r,e=!!this._instance.get_property(Vc),t=this._instance.config.error_tracking.captureExtensionExceptions;return(r=t??e)!==null&&r!==void 0&&r}buildProperties(r,e){return this.ro.buildFromUnknown(r,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}sendExceptionEvent(r){var e=r.$exception_list;if(this.no(e)){if(this.so(e))return void va.info("Skipping exception capture because a suppression rule matched");if(!this.io&&this.oo(e))return void va.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ao(e))return void va.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",r,{_noTruncate:!0,_batchKey:"exceptionEvent",zi:!0})}so(r){if(r.length===0)return!1;var e=r.reduce(((t,n)=>{var{type:i,value:s}=n;return Lt(i)&&i.length>0&&t.$exception_types.push(i),Lt(s)&&s.length>0&&t.$exception_values.push(s),t}),{$exception_types:[],$exception_values:[]});return this.eo.some((t=>{var n=t.values.map((i=>{var s,o=nf[i.operator],l=Je(i.value)?i.value:[i.value],c=(s=e[i.key])!==null&&s!==void 0?s:[];return l.length>0&&o(l,c)}));return t.type==="OR"?n.some(Boolean):n.every(Boolean)}))}oo(r){return r.flatMap((e=>{var t,n;return(t=(n=e.stacktrace)==null?void 0:n.frames)!==null&&t!==void 0?t:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ao(r){if(r.length>0){var e,t,n,i,s=(e=(t=r[0].stacktrace)==null?void 0:t.frames)!==null&&e!==void 0?e:[],o=s[s.length-1];return(n=o==null||(i=o.filename)==null?void 0:i.includes("posthog.com/static"))!==null&&n!==void 0&&n}return!1}no(r){return!qe(r)&&Je(r)}}},oy=pe({productTours:class{get Kr(){return this._instance.persistence}constructor(r){this.lo=null,this.uo=null,this._instance=r}initialize(){this.loadIfEnabled()}onRemoteConfig(r){"productTours"in r&&(this.Kr&&this.Kr.register({[qc]:!!r.productTours}),this.loadIfEnabled())}loadIfEnabled(){var r,e;this.lo||(r=this._instance).config.disable_product_tours||(e=r.persistence)==null||!e.get_property(qc)||this.nr((()=>this.ho()))}nr(r){var e,t;(e=Me.__PosthogExtensions__)!=null&&e.generateProductTours?r():(t=Me.__PosthogExtensions__)==null||t.loadExternalDependency==null||t.loadExternalDependency(this._instance,"product-tours",(n=>{n?Au.error("Could not load product tours script",n):r()}))}ho(){var r;!this.lo&&(r=Me.__PosthogExtensions__)!=null&&r.generateProductTours&&(this.lo=Me.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(r,e){if(e===void 0&&(e=!1),!Je(this.uo)||e){var t=this.Kr;if(t){var n=t.props[ua];if(Je(n)&&!e)return this.uo=n,void r(n,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:i=>{var s=i.statusCode;if(s!==200||!i.json){var o="Product Tours API could not be loaded, status: "+s;return Au.error(o),void r([],{isLoaded:!1,error:o})}var l=Je(i.json.product_tours)?i.json.product_tours:[];this.uo=l,t&&t.register({[ua]:l}),r(l,{isLoaded:!0})}})}else r(this.uo,{isLoaded:!0})}getActiveProductTours(r){qe(this.lo)?r([],{isLoaded:!1,error:"Product tours not loaded"}):this.lo.getActiveProductTours(r)}showProductTour(r){var e;(e=this.lo)==null||e.showTourById(r)}previewTour(r){this.lo?this.lo.previewTour(r):this.nr((()=>{var e;this.ho(),(e=this.lo)==null||e.previewTour(r)}))}dismissProductTour(){var r;(r=this.lo)==null||r.dismissTour("user_clicked_skip")}nextStep(){var r;(r=this.lo)==null||r.nextStep()}previousStep(){var r;(r=this.lo)==null||r.previousStep()}clearCache(){var r;this.uo=null,(r=this.Kr)==null||r.unregister(ua)}resetTour(r){var e;(e=this.lo)==null||e.resetTour(r)}resetAllTours(){var r;(r=this.lo)==null||r.resetAllTours()}cancelPendingTour(r){var e;(e=this.lo)==null||e.cancelPendingTour(r)}}},Ro),ay={siteApps:class{constructor(r){this._instance=r,this.co=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}do(r,e){if(e){var t=this.globalsForEvent(e);this.co.push(t),this.co.length>1e3&&(this.co=this.co.slice(10))}}get siteAppLoaders(){var r;return(r=Me._POSTHOG_REMOTE_CONFIG)==null||(r=r[this._instance.config.token])==null?void 0:r.siteApps}initialize(){if(this.isEnabled){var r=this._instance._addCaptureHook(this.do.bind(this));this.vo=()=>{r(),this.co=[],this.vo=void 0}}}globalsForEvent(r){var e,t,n,i,s,o,l;if(!r)throw new Error("Event payload is required");var c={},u=this._instance.get_property("$groups")||[],d=this._instance.get_property("$stored_group_properties")||{};for(var[p,h]of Object.entries(d))c[p]={id:u[p],type:p,properties:h};var{$set_once:g,$set:m}=r;return{event:pe({},uh(r,J1),{properties:pe({},r.properties,m?{$set:pe({},(e=(t=r.properties)==null?void 0:t.$set)!==null&&e!==void 0?e:{},m)}:{},g?{$set_once:pe({},(n=(i=r.properties)==null?void 0:i.$set_once)!==null&&n!==void 0?n:{},g)}:{}),elements_chain:(s=(o=r.properties)==null?void 0:o.$elements_chain)!==null&&s!==void 0?s:"",distinct_id:(l=r.properties)==null?void 0:l.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:c}}setupSiteApp(r){var e=this.apps[r.id],t=()=>{var o;!e.errored&&this.co.length&&(Mn.info("Processing "+this.co.length+" events for site app with id "+r.id),this.co.forEach((l=>e.processEvent==null?void 0:e.processEvent(l))),e.processedBuffer=!0),Object.values(this.apps).every((l=>l.processedBuffer||l.errored))&&((o=this.vo)==null||o.call(this))},n=!1,i=o=>{e.errored=!o,e.loaded=!0,Mn.info("Site app with id "+r.id+" "+(o?"loaded":"errored")),n&&t()};try{var{processEvent:s}=r.init({posthog:this._instance,callback(o){i(o)}});s&&(e.processEvent=s),n=!0}catch(o){Mn.error(Mu+r.id,o),i(!1)}if(n&&e.loaded)try{t()}catch(o){Mn.error("Error while processing buffered events PostHog app with config id "+r.id,o),e.errored=!0}}fo(){var r=this.siteAppLoaders||[];for(var e of r)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var t of r)this.setupSiteApp(t)}po(r){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(r);for(var t of Object.values(this.apps))try{t.processEvent==null||t.processEvent(e)}catch(n){Mn.error("Error while processing event "+r.event+" for site app "+t.id,n)}}}onRemoteConfig(r){var e,t,n,i=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.fo(),void this._instance.on("eventCaptured",(c=>this.po(c)))):void Mn.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((t=this.vo)==null||t.call(this),(n=r.siteApps)!=null&&n.length)if(this.isEnabled){var s=function(c){var u;Me["__$$ph_site_app_"+c]=i._instance,(u=Me.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(i._instance,l,(d=>{if(d)return Mn.error(Mu+c,d)}))};for(var{id:o,url:l}of r.siteApps)s(o)}else Mn.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},ly={tracingHeaders:class{constructor(r){this.mo=void 0,this.yo=void 0,this.zs=()=>{var e,t;xe(this.mo)&&((e=Me.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),xe(this.yo)&&((t=Me.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=r}initialize(){this.startIfEnabledOrStop()}nr(r){var e,t;(e=Me.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&r(),(t=Me.__PosthogExtensions__)==null||t.loadExternalDependency==null||t.loadExternalDependency(this._instance,"tracing-headers",(n=>{if(n)return Y1.error("failed to load script",n);r()}))}startIfEnabledOrStop(){var r,e;this._instance.config.__add_tracing_headers?this.nr(this.zs):((r=this.mo)==null||r.call(this),(e=this.yo)==null||e.call(this),this.mo=void 0,this.yo=void 0)}}},cy=pe({surveys:class{get Rt(){return this._instance.config}constructor(r){this.bo=void 0,this._surveyManager=null,this.wo=!1,this._o=[],this.Io=null,this._instance=r,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(r){if(!this.Rt.disable_surveys){var e=r.surveys;if(qe(e))return ot.warn("Flags not loaded yet. Not loading surveys.");var t=Je(e);this.bo=t?e.length>0:e,ot.info("flags response received, isSurveysEnabled: "+this.bo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var r=[],e=0;e<localStorage.length;e++){var t=localStorage.key(e);(t!=null&&t.startsWith(tl)||t!=null&&t.startsWith("inProgressSurvey_"))&&r.push(t)}r.forEach((n=>localStorage.removeItem(n)))}loadIfEnabled(){if(!this._surveyManager)if(this.wo)ot.info("Already initializing surveys, skipping...");else if(this.Rt.disable_surveys)ot.info(Ru);else if(this.Rt.cookieless_mode&&this._instance.consent.isOptedOut())ot.info("Not loading surveys in cookieless mode without consent.");else{var r=Me?.__PosthogExtensions__;if(r){if(!xe(this.bo)||this.Rt.advanced_enable_surveys){var e=this.bo||this.Rt.advanced_enable_surveys;this.wo=!0;try{var t=r.generateSurveys;if(t)return void this.Co(t,e);var n=r.loadExternalDependency;if(!n)return void this.So(nc);n(this._instance,"surveys",(i=>{i||!r.generateSurveys?this.So("Could not load surveys script",i):this.Co(r.generateSurveys,e)}))}catch(i){throw this.So("Error initializing surveys",i),i}finally{this.wo=!1}}}else ot.error("PostHog Extensions not found.")}}Co(r,e){this._surveyManager=r(this._instance,e),this._surveyEventReceiver=new ey(this._instance),ot.info("Surveys loaded successfully"),this.ko({isLoaded:!0})}So(r,e){ot.error(r,e),this.ko({isLoaded:!1,error:r})}onSurveysLoaded(r){return this._o.push(r),this._surveyManager&&this.ko({isLoaded:!0}),()=>{this._o=this._o.filter((e=>e!==r))}}getSurveys(r,e){if(e===void 0&&(e=!1),this.Rt.disable_surveys)return ot.info(Ru),r([]);var t,n=this._instance.get_property(Ua);if(n&&!e)return r(n,{isLoaded:!0});typeof Promise<"u"&&this.Io?this.Io.then((i=>{var{surveys:s,context:o}=i;return r(s,o)})):(typeof Promise<"u"&&(this.Io=new Promise((i=>{t=i}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Rt.token),method:"GET",timeout:this.Rt.surveys_request_timeout_ms,callback:i=>{var s;this.Io=null;var o=i.statusCode;if(o!==200||!i.json){var l="Surveys API could not be loaded, status: "+o;ot.error(l);var c={isLoaded:!1,error:l};return r([],c),void(t==null||t({surveys:[],context:c}))}var u,d=i.json.surveys||[],p=d.filter((g=>(function(m){return!(!m.start_date||m.end_date)})(g)&&((function(m){var v;return!((v=m.conditions)==null||(v=v.events)==null||(v=v.values)==null||!v.length)})(g)||(function(m){var v;return!((v=m.conditions)==null||(v=v.actions)==null||(v=v.values)==null||!v.length)})(g))));p.length>0&&((u=this._surveyEventReceiver)==null||u.register(p)),(s=this._instance.persistence)==null||s.register({[Ua]:d});var h={isLoaded:!0};r(d,h),t?.({surveys:d,context:h})}}))}ko(r){for(var e of this._o)try{if(!r.isLoaded)return e([],r);this.getSurveys(e)}catch(t){ot.error("Error in survey callback",t)}}getActiveMatchingSurveys(r,e){if(e===void 0&&(e=!1),!qe(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(r,e);ot.warn("init was not called")}xo(r){var e=null;return this.getSurveys((t=>{var n;e=(n=t.find((i=>i.id===r)))!==null&&n!==void 0?n:null})),e}To(r){if(qe(this._surveyManager))return{eligible:!1,reason:da};var e=typeof r=="string"?this.xo(r):r;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(r){if(qe(this._surveyManager))return ot.warn("init was not called"),{visible:!1,disabledReason:da};var e=this.To(r);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(r,e){return qe(this._surveyManager)?(ot.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:da})):new Promise((t=>{this.getSurveys((n=>{var i,s=(i=n.find((l=>l.id===r)))!==null&&i!==void 0?i:null;if(s){var o=this.To(s);t({visible:o.eligible,disabledReason:o.reason})}else t({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(r,e,t){var n;if(qe(this._surveyManager))ot.warn("init was not called");else{var i=typeof r=="string"?this.xo(r):r;if(i!=null&&i.id)if(N1.includes(i.type)){var s=me?.querySelector(e);if(s)return(n=i.appearance)!=null&&n.surveyPopupDelaySeconds?(ot.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var o,l;ot.info("Rendering survey "+i.id+" with delay of "+((o=i.appearance)==null?void 0:o.surveyPopupDelaySeconds)+" seconds"),(l=this._surveyManager)==null||l.renderSurvey(i,s,t),ot.info("Survey "+i.id+" rendered")}),1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,s,t);ot.warn("Survey element not found")}else ot.warn("Surveys of type "+i.type+" cannot be rendered in the app");else ot.warn("Survey not found")}}displaySurvey(r,e){var t;if(qe(this._surveyManager))ot.warn("init was not called");else{var n=this.xo(r);if(n){var i=n;if((t=n.appearance)!=null&&t.surveyPopupDelaySeconds&&e.ignoreDelay&&(i=pe({},n,{appearance:pe({},n.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==Ya.Popover&&e.initialResponses&&ot.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var s=this.canRenderSurvey(n);if(!s.visible)return void ot.warn("Survey is not eligible to be displayed: ",s.disabledReason)}e.displayType!==Ya.Inline?this._surveyManager.handlePopoverSurvey(i,e):this.renderSurvey(i,e.selector,e.properties)}else ot.warn("Survey not found")}}cancelPendingSurvey(r){qe(this._surveyManager)?ot.warn("init was not called"):this._surveyManager.cancelSurvey(r)}handlePageUnload(){var r;(r=this._surveyManager)==null||r.handlePageUnload()}}},Ro),uy={toolbar:class{constructor(r){this.instance=r}Ao(r){Me.ph_toolbar_state=r}Eo(){var r;return(r=Me.ph_toolbar_state)!==null&&r!==void 0?r:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(r,e,t){if(r===void 0&&(r=void 0),e===void 0&&(e=void 0),t===void 0&&(t=void 0),zh(this.instance.config)||!K||!me)return!1;r=r??K.location,t=t??K.history;try{if(!e){try{K.localStorage.setItem("test","test"),K.localStorage.removeItem("test")}catch{return!1}e=K?.localStorage}var n,i=ty||lo(r.hash,"__posthog")||lo(r.hash,"state"),s=i?$c((()=>JSON.parse(atob(decodeURIComponent(i)))))||$c((()=>JSON.parse(decodeURIComponent(i)))):null;return s&&s.action==="ph_authorize"?((n=s).source="url",n&&Object.keys(n).length>0&&(s.desiredHash?r.hash=s.desiredHash:t?t.replaceState(t.state,"",r.pathname+r.search):r.hash="")):((n=JSON.parse(e.getItem(Iu)||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.config.token!==n.token||(this.loadToolbar(n),0))}catch{return!1}}Ro(r){var e=Me.ph_load_toolbar||Me.ph_load_editor;!qe(e)&&yn(e)?e(r,this.instance):Ou.warn("No toolbar load function found")}loadToolbar(r){var e=!(me==null||!me.getElementById(Dh));if(!K||e)return!1;var t=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,n=pe({token:this.instance.config.token},r,{apiURL:this.instance.requestRouter.endpointFor("ui")},t?{instrument:!1}:{});if(K.localStorage.setItem(Iu,JSON.stringify(pe({},n,{source:void 0}))),this.Eo()===2)this.Ro(n);else if(this.Eo()===0){var i;this.Ao(1),(i=Me.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this.instance,"toolbar",(s=>{if(s)return Ou.error("[Toolbar] Failed to load",s),void this.Ao(0);this.Ao(2),this.Ro(n)})),Nt(K,"turbolinks:load",(()=>{this.Ao(0),this.loadToolbar(n)}))}return!0}No(r){return this.loadToolbar(r)}maybeLoadEditor(r,e,t){return r===void 0&&(r=void 0),e===void 0&&(e=void 0),t===void 0&&(t=void 0),this.maybeLoadToolbar(r,e,t)}}},dy=pe({experiments:fr},Ro),hy={conversations:class{constructor(r){this.Mo=void 0,this._conversationsManager=null,this.Fo=!1,this.Oo=null,this._instance=r}initialize(){this.loadIfEnabled()}onRemoteConfig(r){if(!this._instance.config.disable_conversations){var e=r.conversations;qe(e)||(bn(e)?this.Mo=e:(this.Mo=e.enabled,this.Oo=e),this.loadIfEnabled())}}reset(){var r;(r=this._conversationsManager)==null||r.reset(),this._conversationsManager=null,this.Mo=void 0,this.Oo=null}loadIfEnabled(){if(!(this._conversationsManager||this.Fo||this._instance.config.disable_conversations||zh(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var r=Me?.__PosthogExtensions__;if(r&&!xe(this.Mo)&&this.Mo)if(this.Oo&&this.Oo.token){this.Fo=!0;try{var e=r.initConversations;if(e)return this.Po(e),void(this.Fo=!1);var t=r.loadExternalDependency;if(!t)return void this.Lo(nc);t(this._instance,"conversations",(n=>{n||!r.initConversations?this.Lo("Could not load conversations script",n):this.Po(r.initConversations),this.Fo=!1}))}catch(n){this.Lo("Error initializing conversations",n),this.Fo=!1}}else Hr.error("Conversations enabled but missing token in remote config.")}}Po(r){if(this.Oo)try{this._conversationsManager=r(this.Oo,this._instance),Hr.info("Conversations loaded successfully")}catch(e){this.Lo("Error completing conversations initialization",e)}else Hr.error("Cannot complete initialization: remote config is null")}Lo(r,e){Hr.error(r,e),this._conversationsManager=null,this.Fo=!1}show(){this._conversationsManager?this._conversationsManager.show():Hr.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Mo===!0&&!zn(this._conversationsManager)}isVisible(){var r,e;return(r=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&r!==void 0&&r}sendMessage(r,e,t){var n=this;return Zr((function*(){return n._conversationsManager?n._conversationsManager.sendMessage(r,e,t):(Hr.warn(Xn),null)}))()}getMessages(r,e){var t=this;return Zr((function*(){return t._conversationsManager?t._conversationsManager.getMessages(r,e):(Hr.warn(Xn),null)}))()}markAsRead(r){var e=this;return Zr((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(r):(Hr.warn(Xn),null)}))()}getTickets(r){var e=this;return Zr((function*(){return e._conversationsManager?e._conversationsManager.getTickets(r):(Hr.warn(Xn),null)}))()}requestRestoreLink(r){var e=this;return Zr((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(r):(Hr.warn(Xn),null)}))()}restoreFromToken(r){var e=this;return Zr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(r):(Hr.warn(Xn),null)}))()}restoreFromUrlToken(){var r=this;return Zr((function*(){return r._conversationsManager?r._conversationsManager.restoreFromUrlToken():(Hr.warn(Xn),null)}))()}getCurrentTicketId(){var r,e;return(r=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&r!==void 0?r:null}getWidgetSessionId(){var r,e;return(r=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&r!==void 0?r:null}}},fy={logs:class{constructor(r){var e;this.Do=!1,this.Bo=!1,this._instance=r,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.Do=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(r){var e,t=(e=r.logs)==null?void 0:e.captureConsoleLogs;!qe(t)&&t&&(this.Do=!0,this.loadIfEnabled())}reset(){}loadIfEnabled(){if(this.Do&&!this.Bo){var r=xt("[logs]"),e=Me?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(n=>{var i;n||(i=e.logs)==null||!i.initializeLogs?r.error("Could not load logs script",n):(e.logs.initializeLogs(this._instance),this.Bo=!0)})):r.error(nc)}else r.error("PostHog Extensions not found.")}}}},vy=pe({},Ro,ny,iy,sy,oy,ay,cy,ly,uy,dy,hy,fy);un.__defaultExtensionClasses=pe({},vy);var ju,gy=(ju=us[gi]=new un,(function(){function r(){r.done||(r.done=!0,af=!1,dt(us,(function(e){e._dom_loaded()})))}me!=null&&me.addEventListener?me.readyState==="complete"?r():Nt(me,"DOMContentLoaded",r,{capture:!1}):K&&_e.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),ju);function DP(){const r=Ho.PUBLIC_LOCAL_PROJECT_DIR!==void 0&&Ho.PUBLIC_LOCAL_PROJECT_DIR!=="";return Ho.PUBLIC_DESKTOP_MODE!=="true"&&!r}function py(r,e){typeof window<"u"&&window.plausible&&window.plausible(r,e?{props:e}:void 0)}var my=H('<div class="mx-auto mb-2 flex items-center gap-2 text-2xl font-bold"><span class="bg-linear-to-r from-(--brand-blue) to-(--brand-purple) bg-clip-text text-transparent">DevMotion</span></div> <!> <!>',1),_y=H('<!> <div class="space-y-4"><!> <!></div> <div class="space-y-3 text-center"><p class="text-sm text-muted-foreground">Already have an account? <button class="font-medium text-foreground hover:underline">Log in</button></p> <p class="text-xs text-muted-foreground">By continuing, you agree to the <a class="underline hover:text-foreground">Terms of Service</a> and <a class="underline hover:text-foreground">Privacy Policy</a></p></div>',1);function yy(r,e){U(e,!0);let t=D(e,"open",15),n=D(e,"action",3,"this action");function i(){t(!1);const l=e.callbackURL??cg.url.pathname,c=`${Uo("/login")}?redirect=${encodeURIComponent(l)}`;ug(c)}var s=O(),o=E(s);ue(o,()=>ch,(l,c)=>{c(l,{get open(){return t()},set open(u){t(u)},children:(u,d)=>{var p=O(),h=E(p);ue(h,()=>ah,(g,m)=>{m(g,{class:"w-full max-w-md gap-6 p-8",children:(v,y)=>{var b=_y(),P=E(b);ue(P,()=>oh,(L,W)=>{W(L,{class:"space-y-3 text-center",children:(j,Y)=>{var le=my(),se=F(E(le),2);ue(se,()=>sh,(ce,he)=>{he(ce,{class:"text-2xl font-bold tracking-tight",children:(ae,re)=>{Fe();var ie=Ge("Start Animating.");f(ae,ie)},$$slots:{default:!0}})});var Q=F(se,2);ue(Q,()=>lh,(ce,he)=>{he(ce,{class:"text-base text-muted-foreground",children:(ae,re)=>{Fe();var ie=Ge();oe(()=>Se(ie,`Sign in to ${n()??""}`)),f(ae,ie)},$$slots:{default:!0}})}),f(j,le)},$$slots:{default:!0}})});var w=F(P,2),x=V(w);lg(x,{variant:"outline",size:"lg",buttonText:"Continue with Google",showSeparator:!0,get callbackURL(){return e.callbackURL}});var T=F(x,2);Mt(T,{size:"lg",class:"w-full justify-center gap-3 text-base",onclick:i,get icon(){return Id},children:(L,W)=>{Fe();var j=Ge("Continue with email");f(L,j)},$$slots:{default:!0}}),z(w);var R=F(w,2),C=V(R),S=F(V(C));z(C);var A=F(C,2),I=F(V(A)),M=F(I,2);z(A),z(R),oe((L,W)=>{Re(I,"href",L),Re(M,"href",W)},[()=>Uo("/terms"),()=>Uo("/privacy")]),Ye("click",S,i),f(v,b)},$$slots:{default:!0}})}),f(u,p)},$$slots:{default:!0}})}),f(r,s),B()}en(["click"]);var by=H("<!> Upgrade Your Plan",1),xy=H("<!> <!>",1),wy=H('<!> <div class="mt-6 grid gap-6 md:grid-cols-2"></div> <div class="mt-6 rounded-lg bg-muted/50 p-4 text-center text-sm text-muted-foreground"><p><span class="font-semibold text-foreground">Current Plan:</span> <span class="mx-2">•</span> Manual timeline editing is always free for everyone.</p></div>',1),Sy=H("<!> <!>",1);function xs(r,e){U(e,!0);const t=()=>Ea(Fd,"$page",i),n=()=>Ea(c,"$session",i),[i,s]=bd();let o=D(e,"open",15);const l=sg(),c=og(),u=_(()=>t().data.user?.subscriptionTier??"free"),d=_(()=>wo(a(u)));function p(x){return ig(x,a(u))<=0}function h(x){return x===a(u)}let g=Z(!1),m=Z(null);async function v(x){if(gy.capture("upgrade_clicked",{plan:x.tier,source:"editor_dialog",authenticated:!!n().data}),py("upgrade_clicked",{plan:x.tier,source:"editor_dialog",authenticated:n().data?"true":"false"}),!n().data){k(m,x,!0),k(g,!0);return}await y(x)}async function y(x){try{await ag.checkout({slug:x.tier})}catch(T){console.error("Checkout error:",T),Ig.error("Failed to start checkout. Please try again.")}}qt(()=>{if(n().data&&a(m)&&!a(g)){const x=a(m);k(m,null),y(x)}});var b=Sy(),P=E(b);ue(P,()=>ch,(x,T)=>{T(x,{get open(){return o()},set open(R){o(R)},children:(R,C)=>{var S=O(),A=E(S);ue(A,()=>ah,(I,M)=>{M(I,{class:"max-h-[90vh] w-full max-w-4xl overflow-y-auto",children:(L,W)=>{var j=wy(),Y=E(j);ue(Y,()=>oh,(he,ae)=>{ae(he,{children:(re,ie)=>{var Pe=xy(),we=E(Pe);ue(we,()=>sh,(Le,Ce)=>{Ce(Le,{class:"flex items-center gap-2 text-2xl",children:(Ee,Ne)=>{var Ve=by(),$e=E(Ve);Sl($e,{class:"h-6 w-6 text-primary"}),Fe(),f(Ee,Ve)},$$slots:{default:!0}})});var De=F(we,2);ue(De,()=>lh,(Le,Ce)=>{Ce(Le,{children:(Ee,Ne)=>{Fe();var Ve=Ge("Unlock more AI animations, cloud storage, and premium features.");f(Ee,Ve)},$$slots:{default:!0}})}),f(re,Pe)},$$slots:{default:!0}})});var le=F(Y,2);Et(le,21,()=>l,he=>he.tier,(he,ae)=>{{let re=_(()=>p(a(ae).tier)),ie=_(()=>h(a(ae).tier));g_(he,{get plan(){return a(ae)},onclick:async()=>await v(a(ae)),get disabled(){return a(re)},get isCurrentPlan(){return a(ie)}})}}),z(le);var se=F(le,2),Q=V(se),ce=F(V(Q));Fe(2),z(Q),z(se),oe(()=>Se(ce,` ${a(d).name??""} `)),f(L,j)},$$slots:{default:!0}})}),f(R,S)},$$slots:{default:!0}})});var w=F(P,2);{let x=_(()=>a(m)?`upgrade to ${a(m).name}`:"upgrade your plan");yy(w,{get action(){return a(x)},get open(){return a(g)},set open(T){k(g,T,!0)}})}f(r,b),B(),s()}const Py=bs("gezfls/generateCaptions");function Ey(r,e){const t=r.enterTime??0,n=r.exitTime??e,i=r.contentOffset??0,s=n-t;return{mediaStartTime:i,mediaEndTime:i+s,audioDuration:s}}async function Io({action:r,input:e,sourceLayer:t,project:n}){if(r.sourceLayerTypes.length>0){if(!t)throw new Error(`Action "${r.id}" requires a source layer`);if(!r.sourceLayerTypes.includes(t.type))throw new Error(`Action "${r.id}" requires layer type ${r.sourceLayerTypes.join("/")}, got "${t.type}"`)}const i={sourceLayer:t,project:n},s=await r.execute(e,i);return r.apply(e,i,s)}async function zP({action:r,input:e,sourceLayer:t,project:n}){if(r.sourceLayerTypes.length>0){if(!t)throw new Error(`Action "${r.id}" requires a source layer`);if(!r.sourceLayerTypes.includes(t.type))throw new Error(`Action "${r.id}" requires layer type ${r.sourceLayerTypes.join("/")}, got "${t.type}"`)}const i={sourceLayer:t,project:n},s=await r.execute(e,i);return r.apply(e,i,s)}const ky=ud.schema.pick({bgColor:!0,fontFamily:!0,textColor:!0,height:!0,width:!0,fontSize:!0,fontWeight:!0,textEffect:!0,textEffectColor:!0,textEffectSize:!0}).extend({language:Pt().optional().describe('Language code (e.g. "en", "es"). Omit for auto-detect.'),prompt:Pt().max(5e3).optional().describe("Optional context to guide transcription (lyrics, terminology)"),position:pr(["bottom","top","middle"]).default("bottom")}),Hu={id:"generate-captions",label:"Generate Captions",description:"Transcribe audio/video to synced word-level captions using Whisper AI. Creates a captions layer.",sourceLayerTypes:["video","audio"],inputSchema:ky,async execute(r,e){const t=Ey(e.sourceLayer,e.project.duration),n=await Py({fileKey:e.sourceLayer.props.fileKey,mediaStartTime:t.mediaStartTime,mediaEndTime:t.mediaEndTime,audioDuration:t.audioDuration,prompt:r.prompt,language:r.language});if(!n.success)throw new Error(n.error||"Caption generation failed");const i=n.data;if("needsUpgrade"in i&&i.needsUpgrade)throw new Error(i.error||"Plan upgrade required");if(!i.success||!i.words)throw new Error("No words returned from transcription");return{words:i.words,language:i.language??"unknown"}},apply(r,e,t){return{layersToAdd:[{layer:mo("captions",{props:{sourceLayerId:e.sourceLayer.id,words:t.words,originalScript:r.prompt??"",...r},layer:{enterTime:e.sourceLayer.enterTime,exitTime:e.sourceLayer.exitTime,contentOffset:e.sourceLayer.contentOffset,contentDuration:e.sourceLayer.contentDuration},transform:{position:{y:r.position==="top"?5:r.position==="bottom"?-5:0,x:0,z:0},anchor:r.position==="top"?"top-center":r.position==="bottom"?"bottom-center":"center",positionOrigin:r.position==="top"?"top-center":r.position==="bottom"?"bottom-center":"center"}})}],layersToUpdate:[]}},estimateCost(r){return r/60*.006}},Ty=bs("tisyb0/dubAudio"),pf=[{value:"en",label:"English"},{value:"es",label:"Spanish"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"it",label:"Italian"},{value:"pt",label:"Portuguese"},{value:"ru",label:"Russian"},{value:"ja",label:"Japanese"},{value:"ko",label:"Korean"},{value:"zh",label:"Chinese"},{value:"ar",label:"Arabic"},{value:"hi",label:"Hindi"},{value:"nl",label:"Dutch"},{value:"pl",label:"Polish"},{value:"tr",label:"Turkish"}],Cy=pf.map(r=>r.value),Ay=Kt({targetLang:pr(Cy).describe('Target language code for dubbing (e.g. "es", "fr")'),sourceLang:Pt().optional().describe("Source language code. Omit for auto-detect.")}),Uu={id:"dub-audio",label:"Dub Audio",description:"Dub audio to another language via ElevenLabs AI voice cloning. Creates a dubbed audio layer and mutes the original.",sourceLayerTypes:["audio","video"],inputSchema:Ay,async execute(r,e){if(!e.sourceLayer.contentDuration)throw new Error("Source layer must have a content duration");const t=await Ty({fileKey:e.sourceLayer.props.fileKey,targetLang:r.targetLang,sourceLang:r.sourceLang,audioDuration:e.sourceLayer.contentDuration});if(!t.success)throw new Error(t.error||"Dubbing failed");const n=t.data;if("needsUpgrade"in n&&n.needsUpgrade)throw new Error(n.error||"Plan upgrade required");if(!n.success||!("url"in n))throw new Error("Dubbing returned no audio URL");return{url:n.url,key:n.key,language:n.language}},apply(r,e,t){const n=t.language.toUpperCase(),i=e.sourceLayer.name||"Audio";return{layersToAdd:[{layer:mo("audio",{props:{src:t.url,fileKey:t.key},layer:{enterTime:e.sourceLayer.enterTime,exitTime:e.sourceLayer.exitTime,contentOffset:e.sourceLayer.contentOffset,contentDuration:e.sourceLayer.contentDuration,name:`${i} (${n})`}})}],layersToUpdate:[{id:e.sourceLayer.id,changes:{props:{...e.sourceLayer.props,muted:!0}}}]}},estimateCost(r){return r/60*.5}},My=bs("1rjk8jv/extractAudio"),Ry=Kt({}),Bu={id:"extract-audio",label:"Extract Audio",description:"Extract audio track from a video layer via FFmpeg. Creates an audio layer, mutes the original video.",sourceLayerTypes:["video"],inputSchema:Ry,async execute(r,e){if(!e.sourceLayer.contentDuration)throw new Error("Source layer must have a content duration");const t=await My({fileKey:e.sourceLayer.props.fileKey,mediaStartTime:e.sourceLayer.contentOffset??0,mediaEndTime:(e.sourceLayer.exitTime??e.project.duration)-(e.sourceLayer.enterTime??0)});if(!t.success)throw new Error(t.error||"Audio extraction failed");const n=t.data;if(!n.success)throw new Error("Audio extraction returned no file");return{url:n.url,key:n.key}},apply(r,e,t){const n=e.sourceLayer.name||"Video",i=e.sourceLayer.enterTime??0,o=(e.sourceLayer.exitTime??e.project.duration)-i;return{layersToAdd:[{layer:mo("audio",{props:{src:t.url,fileKey:t.key},layer:{enterTime:e.sourceLayer.enterTime,exitTime:e.sourceLayer.exitTime,contentOffset:0,contentDuration:o,name:`${n} Audio`}})}],layersToUpdate:[{id:e.sourceLayer.id,changes:{props:{...e.sourceLayer.props,muted:!0}}}]}}},Iy=bs("xj8myv/generateVideo"),mf=r=>Math.round(r*10)/10,vr=r=>mf(r*100),jP=(r,e)=>mf(e/r.width*100);function HP(r,e,t){const n=r.height/r.width;return{width:vr(e),height:vr((t??e)*n)}}function UP(r,e=.5){const t=r.height/r.width;return{x:vr(-.5+e/2),y:0,width:vr(e),height:vr(t)}}function BP(r,e=.5){const t=r.height/r.width;return{x:vr(.5-e/2),y:0,width:vr(e),height:vr(t)}}function VP(r,e){const t=r.height/r.width,n=Math.min(1,t);switch(e){case"laptop":return{width:100,height:vr(800/1280)};case"phone":return{width:vr(n*.3),height:vr(n*.6)};case"browser":return{width:vr(n*.85),height:vr(n*.55)}}}function WP(r,e){const t=e?.ratio??1.7777777777777777,n=e?.scale??.65,i=r.height/r.width;let s=n,o=n/t;const l=n*i;return o>l&&(o=l,s=o*t),{width:vr(s),height:vr(o)}}function Oy(r,e){const t=r/e,n=[[16/9,"16:9"],[4/3,"4:3"],[1,"1:1"],[3/4,"3:4"],[9/16,"9:16"],[21/9,"21:9"]];let i=n[0];for(const s of n)Math.abs(s[0]-t)<Math.abs(i[0]-t)&&(i=s);return i[1]}const Ny=Kt({prompt:Pt().min(10,"Please describe your video in at least 10 characters").max(2e3).describe("Describe the video you want to generate. Be specific about subjects, motion, lighting, and mood.").register(Cr,{label:"Video description",widget:"textarea"}),duration:at().int().min(4).max(15).default(5).describe("Between 4 and 15 seconds.").register(Cr,{label:"Duration (seconds)"}),resolution:pr(["480p","720p"]).default("480p").register(Cr,{label:"Resolution",widget:"select",options:[{value:"720p",label:"720p (HD)"},{value:"480p",label:"480p (faster, cheaper)"}]}),generateAudio:ri().default(!0).describe("Add synchronized ambient audio to the generated video.").register(Cr,{label:"Generate AI audio"})}),qP={id:"generate-video",label:"Generate Video",description:"Generate a video from a text prompt using Seedance 2.0 AI. Creates a video layer.",sourceLayerTypes:[],inputSchema:Ny,async execute(r,e){const{width:t,height:n}=e.project,i=Oy(t,n),s=await Iy({prompt:r.prompt,duration:r.duration,resolution:r.resolution,ratio:i,generateAudio:r.generateAudio});if(!s.success)throw new Error(s.error||"Video generation failed");const o=s.data;if("needsUpgrade"in o&&o.needsUpgrade)throw new Error(o.error||"Plan upgrade required");if(!o.success||!("url"in o))throw new Error("Video generation returned no URL");return{url:o.url,key:o.key}},apply(r,e,t){const{width:n,height:i,duration:s}=e.project,o=0,l=r.duration;return{layersToAdd:[{layer:mo("video",{props:{src:t.url,fileKey:t.key,width:100,height:vr(i/n),objectFit:"cover",borderRadius:0,frame:"none",frameWidth:0},projectDimensions:{width:n,height:i},layer:{name:"AI Generated Video",enterTime:o,exitTime:l,contentDuration:r.duration}})}],projectUpdates:{...l>s?{duration:l}:{}}}}},Fy=bs("1web5fy/generateSpeech"),Ly=hg("1web5fy/listTtsVoices"),Dy=Kt({text:Pt().trim().min(1,"Text is required").max(5e3,"Text is too long").describe("The script to synthesize into speech."),voiceId:Pt().min(1).describe("ElevenLabs voice ID to use for synthesis."),modelId:pr(["eleven_v3","eleven_v3_turbo","eleven_multilingual_v2","eleven_turbo_v2_5","eleven_flash_v2_5"]).optional().describe("ElevenLabs TTS model ID. Defaults to eleven_v3."),stability:at().min(0).max(1).optional(),similarityBoost:at().min(0).max(1).optional()}),Vu={id:"generate-speech",label:"Generate Speech",description:"Synthesize text into speech via ElevenLabs TTS. Replaces the source audio layer content.",sourceLayerTypes:["audio"],inputSchema:Dy,async execute(r,e){const t=await Fy({text:r.text,voiceId:r.voiceId,modelId:r.modelId,stability:r.stability,similarityBoost:r.similarityBoost});if(!t.success)throw new Error(t.error||"Speech generation failed");const n=t.data;if("needsUpgrade"in n&&n.needsUpgrade)throw new Error(n.error||"Plan upgrade required");if(!n.success||!("url"in n))throw new Error("TTS returned no audio URL");return{url:n.url,key:n.key,charCount:n.charCount}},apply(r,e,t){return{layersToAdd:[],layersToUpdate:[{id:e.sourceLayer.id,changes:{props:{...e.sourceLayer.props,src:t.url,fileKey:t.key,generatedFromText:r.text}}}]}},estimateCost(r){return 0}};function Oo(r,e){e.projectUpdates&&r.updateProject(e.projectUpdates);for(const{layer:t,presets:n}of e.layersToAdd??[])if(r.addLayer(t),n)for(const i of n)r.applyPreset(t.id,i.id,i.startTime??t.enterTime??0,i.duration??.5);for(const{id:t,changes:n}of e.layersToUpdate??[])r.updateLayer(t,n)}var zy=H("<!> ",1),jy=H('<p class="text-xs text-destructive"> </p>'),Hy=H('<div class="flex flex-col gap-2"><!> <!> <!> <!></div> <!>',1);function _f(r,e){U(e,!0);const t=_(jn),n=_(()=>a(t).project);let i=Z(!1),s=Z(!1);qt(()=>(a(t).isAiStreaming=a(i),()=>{a(t).isAiStreaming=!1}));let o=Z(""),l=Z(""),c=Z("auto");const u=[{value:"auto",label:"Auto-detect"},{value:"en",label:"English"},{value:"es",label:"Spanish"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"it",label:"Italian"},{value:"pt",label:"Portuguese"},{value:"ru",label:"Russian"},{value:"ja",label:"Japanese"},{value:"ko",label:"Korean"},{value:"zh",label:"Chinese"},{value:"ar",label:"Arabic"},{value:"hi",label:"Hindi"},{value:"nl",label:"Dutch"},{value:"pl",label:"Polish"},{value:"tr",label:"Turkish"}];qt(()=>{const w=e.layer.props.generatedFromText;w&&!a(l)&&k(l,w,!0)});async function d(){k(i,!0),k(o,"");try{const w=_o(Hu.inputSchema,{language:a(c)==="auto"?void 0:a(c),prompt:a(l).trim()||void 0}),x=await Io({action:Hu,input:w,sourceLayer:e.layer,project:a(n).state});Oo(a(n),x)}catch(w){const x=w instanceof Error?w.message:"Unknown error";x.includes("upgrade")&&k(s,!0),k(o,x,!0)}finally{k(i,!1)}}var p=Hy(),h=E(p),g=V(h);nr(g,{for:"language",label:"Language",children:(w,x)=>{{let T=_(()=>({id:"language",disabled:a(i)}));Nn(w,{get trigger(){return a(T)},get options(){return u},get value(){return a(c)},set value(R){k(c,R,!0)}})}},$$slots:{default:!0}});var m=F(g,2);nr(m,{for:"prompt",label:"Context (Optional)",children:(w,x)=>{kl(w,{id:"prompt",placeholder:"Paste lyrics or context to guide transcription...",class:"min-h-[80px] text-xs",get disabled(){return a(i)},get value(){return a(l)},set value(T){k(l,T,!0)}})},$$slots:{default:!0}});var v=F(m,2);Mt(v,{variant:"default",size:"sm",class:"w-full text-xs",get disabled(){return a(i)},onclick:d,children:(w,x)=>{var T=zy(),R=E(T);Sl(R,{class:"mr-1 size-3"});var C=F(R);oe(()=>Se(C,` ${a(i)?"Generating...":"Generate Captions"}`)),f(w,T)},$$slots:{default:!0}});var y=F(v,2);{var b=w=>{var x=jy(),T=V(x,!0);z(x),oe(()=>Se(T,a(o))),f(w,x)};te(y,w=>{a(o)&&w(b)})}z(h);var P=F(h,2);xs(P,{get open(){return a(s)},set open(w){k(s,w,!0)}}),f(r,p),B()}var Uy=H('<p class="text-xs text-destructive"> </p>'),By=H('<div class="flex flex-col gap-2"><!> <!> <!></div> <!>',1);function Vy(r,e){U(e,!0);const t=_(jn),n=_(()=>a(t).project);let i=Z(!1),s=Z(!1);qt(()=>(a(t).isAiStreaming=a(i),()=>{a(t).isAiStreaming=!1}));let o=Z(""),l=Z("en");async function c(){k(i,!0),k(o,"");try{const y=await Io({action:Uu,input:_o(Uu.inputSchema,{targetLang:a(l)}),sourceLayer:e.layer,project:a(n).state});Oo(a(n),y)}catch(y){const b=y instanceof Error?y.message:"Unknown error";b.includes("upgrade")&&k(s,!0),k(o,b,!0)}finally{k(i,!1)}}var u=By(),d=E(u),p=V(d);nr(p,{for:"targetLang",label:"Target Language",children:(y,b)=>{{let P=_(()=>({id:"targetLang",disabled:a(i)})),w=_(()=>[...pf]);Nn(y,{get trigger(){return a(P)},get options(){return a(w)},get value(){return a(l)},set value(x){k(l,x,!0)}})}},$$slots:{default:!0}});var h=F(p,2);Mt(h,{variant:"default",size:"sm",class:"w-full text-xs",get disabled(){return a(i)},onclick:c,get icon(){return Zp},children:(y,b)=>{Fe();var P=Ge("Dub Audio");f(y,P)},$$slots:{default:!0}});var g=F(h,2);{var m=y=>{var b=Uy(),P=V(b,!0);z(b),oe(()=>Se(P,a(o))),f(y,b)};te(g,y=>{a(o)&&y(m)})}z(d);var v=F(d,2);xs(v,{get open(){return a(s)},set open(y){k(s,y,!0)}}),f(r,u),B()}function yf(r){return typeof r=="function"}function Wy(r,e){if(yf(r)){const n=r();return n===void 0?e:n}return r===void 0?e:r}function qy(r,e){let t=Z(null);const n=_(()=>Wy(e,250));function i(...s){if(a(t))a(t).timeout&&clearTimeout(a(t).timeout);else{let o,l;const c=new Promise((u,d)=>{o=u,l=d});k(t,{timeout:null,runner:null,promise:c,resolve:o,reject:l},!0)}return a(t).runner=async()=>{if(!a(t))return;const o=a(t);k(t,null);try{o.resolve(await r.apply(this,s))}catch(l){o.reject(l)}},a(t).timeout=setTimeout(a(t).runner,a(n)),a(t).promise}return i.cancel=async()=>{(!a(t)||a(t).timeout===null)&&(await new Promise(s=>setTimeout(s,0)),!a(t)||a(t).timeout===null)||(clearTimeout(a(t).timeout),a(t).reject("Cancelled"),k(t,null))},i.runScheduledNow=async()=>{(!a(t)||!a(t).timeout)&&(await new Promise(s=>setTimeout(s,0)),!a(t)||!a(t).timeout)||(clearTimeout(a(t).timeout),a(t).timeout=null,await a(t).runner?.())},Object.defineProperty(i,"pending",{enumerable:!0,get(){return!!a(t)?.timeout}}),i}function Gy(){}class Ky{#e=Z();#t;constructor(e,t=250){k(this.#e,e(),!0),this.cancel=this.cancel.bind(this),this.setImmediately=this.setImmediately.bind(this),this.updateImmediately=this.updateImmediately.bind(this),this.#t=qy(()=>{k(this.#e,e(),!0)},t),ar(e,()=>{this.#t().catch(Gy)})}get current(){return a(this.#e)}get pending(){return this.#t.pending}cancel(){this.#t.cancel()}updateImmediately(){return this.#t.runScheduledNow()}setImmediately(e){this.cancel(),k(this.#e,e,!0)}}function ga(r){return yf(r)?r():r}class $y{#e=Z(or([]));#t=!1;#r;#n=Z(or([]));get log(){return a(this.#n)}set log(e){k(this.#n,e,!0)}#i=_(()=>this.log.length>1);get canUndo(){return a(this.#i)}set canUndo(e){k(this.#i,e)}#s=_(()=>a(this.#e).length>0);get canRedo(){return a(this.#s)}set canRedo(e){k(this.#s,e)}constructor(e,t,n){k(this.#e,[],!0),this.#r=t,this.undo=this.undo.bind(this),this.redo=this.redo.bind(this);const i=s=>{this.log.push(s);const o=ga(n?.capacity);o&&this.log.length>o&&(this.log=this.log.slice(-o))};ar(()=>ga(e),s=>{if(this.#t){this.#t=!1;return}i({snapshot:s,timestamp:new Date().getTime()}),k(this.#e,[],!0)}),ar(()=>ga(n?.capacity),s=>{s&&(this.log=this.log.slice(-s))})}undo(){const[e,t]=this.log.slice(-2);!t||!e||(this.#t=!0,a(this.#e).push(t),this.log.pop(),this.#r(e.snapshot))}redo(){const e=a(this.#e).pop();e&&(this.#t=!0,this.log.push(e),this.#r(e.snapshot))}clear(){this.log=[],k(this.#e,[],!0)}}var Yy=H('<div class="flex h-8 items-center gap-2 text-[11px] text-muted-foreground"><!> Loading voices...</div>'),Xy=H('<p class="text-[11px] text-destructive">No voices available. Check that ELEVENLABS_API_KEY is configured.</p>'),Jy=H('<div class="flex min-w-0 items-center gap-1"><!> <!></div>'),Zy=H('<p class="text-xs text-destructive"> </p>'),Qy=H('<div class="flex flex-col gap-2"><!> <div class="flex items-center justify-between text-[11px] text-muted-foreground"><span> </span> <span> </span></div> <!> <!> <!> <!></div> <!>',1);function eb(r,e){U(e,!0);const t=_(jn),n=_(()=>a(t).project);let i=Z(""),s=Z(""),o=Z("eleven_v3"),l=Z(null);qt(()=>{const re=e.layer.props.generatedFromText??"";a(l)!==e.layer.id&&(k(l,e.layer.id,!0),re&&k(i,re,!0))});let c=Z(!1),u=Z(""),d=Z(!1);qt(()=>(a(t).isAiStreaming=a(c),()=>{a(t).isAiStreaming=!1}));const p=_(Ly),h=_(()=>a(p).current?.voices??[]);qt(()=>{!a(s)&&a(h).length>0&&k(s,a(h)[0].id,!0)});const g=_(()=>a(h).map(re=>({value:re.id,label:re.category?`${re.name} · ${re.category}`:re.name}))),m=_(()=>a(h).find(re=>re.id===a(s))?.previewUrl);let v=Z(null),y=Z(!1);function b(){if(!a(m))return;if(a(y)&&a(v)){a(v).pause(),k(v,null),k(y,!1);return}const re=new Audio(a(m));re.onended=()=>{k(y,!1),k(v,null)},re.play(),k(v,re,!0),k(y,!0)}ar(()=>a(s),()=>{a(v)&&(a(v).pause(),k(v,null),k(y,!1))});const P=[{value:"eleven_v3",label:"v3 (best quality)"},{value:"eleven_v3_turbo",label:"v3 Turbo (fast)"},{value:"eleven_multilingual_v2",label:"Multilingual v2"},{value:"eleven_turbo_v2_5",label:"Turbo v2.5"},{value:"eleven_flash_v2_5",label:"Flash v2.5 (fastest)"}],w=5e3,x=_(()=>a(i).length),T=_(()=>a(x)>w);async function R(){if(!(!a(i).trim()||!a(s)||a(c))){k(c,!0),k(u,"");try{const re=_o(Vu.inputSchema,{text:a(i).trim(),voiceId:a(s),modelId:a(o)}),ie=await Io({action:Vu,input:re,sourceLayer:e.layer,project:a(n).state});Oo(a(n),ie)}catch(re){const ie=re instanceof Error?re.message:"Unknown error";ie.toLowerCase().includes("upgrade")&&k(d,!0),k(u,ie,!0)}finally{k(c,!1)}}}var C=Qy(),S=E(C),A=V(S);nr(A,{for:"tts-script",label:"Script",children:(re,ie)=>{kl(re,{id:"tts-script",placeholder:"Type what the voice should say... With v3 models you can add acting directions in square brackets: [whispering] Hello there. [excited] This is amazing!",class:"min-h-[100px] text-xs",get disabled(){return a(c)},maxlength:w,get value(){return a(i)},set value(Pe){k(i,Pe,!0)}})},$$slots:{default:!0}});var I=F(A,2),M=V(I);let L;var W=V(M);z(M);var j=F(M,2),Y=V(j);z(j),z(I);var le=F(I,2);nr(le,{for:"tts-voice",label:"Voice",children:(re,ie)=>{var Pe=O(),we=E(Pe);{var De=Ee=>{var Ne=Yy(),Ve=V(Ne);vc(Ve,{class:"size-3 animate-spin"}),Fe(),z(Ne),f(Ee,Ne)},Le=Ee=>{var Ne=Xy();f(Ee,Ne)},Ce=Ee=>{var Ne=Jy(),Ve=V(Ne);{let Qe=_(()=>({id:"tts-voice",disabled:a(c),class:"w-full min-w-0 overflow-hidden text-ellipsis block"}));Nn(Ve,{get trigger(){return a(Qe)},get options(){return a(g)},get value(){return a(s)},set value(gt){k(s,gt,!0)}})}var $e=F(Ve,2);{let Qe=_(()=>!a(m)),gt=_(()=>a(y)?"Stop preview":"Preview voice"),pt=_(()=>a(y)?Pl:Kd);Mt($e,{variant:"ghost",size:"icon",get disabled(){return a(Qe)},onclick:b,get title(){return a(gt)},get icon(){return a(pt)}})}z(Ne),f(Ee,Ne)};te(we,Ee=>{a(p).loading&&!a(p).current?Ee(De):a(g).length===0?Ee(Le,1):Ee(Ce,-1)})}f(re,Pe)},$$slots:{default:!0}});var se=F(le,2);nr(se,{for:"tts-model",label:"Model",children:(re,ie)=>{{let Pe=_(()=>({id:"tts-model",disabled:a(c),class:"w-full min-w-0"}));Nn(re,{get trigger(){return a(Pe)},get options(){return P},get value(){return a(o)},set value(we){k(o,we,!0)}})}},$$slots:{default:!0}});var Q=F(se,2);{let re=_(()=>a(c)||!a(i).trim()||!a(s)||a(T)),ie=_(()=>a(c)?vc:qd);Mt(Q,{variant:"default",size:"sm",class:"w-full text-xs",get disabled(){return a(re)},onclick:R,get icon(){return a(ie)},children:(Pe,we)=>{Fe();var De=Ge();oe(()=>Se(De,a(c)?"Generating...":e.layer.props.src?"Regenerate speech":"Generate speech")),f(Pe,De)},$$slots:{default:!0}})}var ce=F(Q,2);{var he=re=>{var ie=Zy(),Pe=V(ie,!0);z(ie),oe(()=>Se(Pe,a(u))),f(re,ie)};te(ce,re=>{a(u)&&re(he)})}z(S);var ae=F(S,2);xs(ae,{get open(){return a(d)},set open(re){k(d,re,!0)}}),oe((re,ie,Pe)=>{L=gr(M,1,"",null,L,{"text-destructive":a(T)}),Se(W,`${re??""} / ${ie??""} chars`),Se(Y,`≈ ${Pe??""}s of speech`)},[()=>a(x).toLocaleString(),()=>w.toLocaleString(),()=>Math.max(1,Math.round(a(x)/15))]),f(r,C),B()}const tb={...sv,icon:Gd,customPropertyComponents:{generateSpeech:{component:eb},generateCaptions:{component:_f},dubAudio:{component:Vy}}};var rb=H('<audio preload="auto"></audio>');function nb(r,e){U(e,!0);let t=D(e,"isServerSideRendering",3,!1),n=D(e,"globalVolume",3,100),i=Z(void 0);ar([()=>e.currentTime,()=>e.isPlaying,()=>e.layer.enterTime,()=>e.layer.contentOffset,()=>e.src,()=>a(i),()=>t()],(c,[,u])=>{if(!a(i)||!e.src||!e.layer)return;const d=e.currentTime-(e.layer.enterTime??0),p=(e.layer.contentOffset??0)+d,h=Math.max(e.layer.contentOffset??0,Math.min(p,a(i).duration||1/0)),g=Math.abs(a(i).currentTime-h),m=e.isPlaying!==u,v=t()||m||g>.5;isFinite(h)&&v&&(a(i).currentTime=h),e.isPlaying&&d>=0&&p<(a(i).duration||1/0)?a(i).paused&&a(i).play().catch(()=>{}):a(i).paused||a(i).pause()}),ar([()=>e.volume,()=>e.muted,()=>e.playbackRate,()=>n(),()=>a(i)],()=>{if(!a(i))return;const c=e.volume*(n()/100);a(i).volume=Math.min(Math.max(c,0),1),a(i).muted=e.muted,a(i).playbackRate=e.playbackRate});var s=O(),o=E(s);{var l=c=>{var u=rb();Pr(u,d=>k(i,d),()=>a(i)),oe(()=>Re(u,"src",e.src)),f(c,u)};te(o,c=>{e.src&&c(l)})}f(r,s),B()}const ib=Object.freeze(Object.defineProperty({__proto__:null,default:nb,meta:tb},Symbol.toStringTag,{value:"Module"}));var sb=H("<iframe></iframe>");function uc(r,e){let t=D(e,"zoom",3,1),n=$(e,["$$slots","$$events","$$legacy","src","zoom"]);var i=sb();Xe(i,()=>({src:e.src,title:"Phone content",class:"pointer-events-none h-full w-full border-none",sandbox:"allow-scripts allow-forms allow-popups allow-presentation allow-modals",scrolling:"no",style:`zoom: ${t()??""}; will-change: transform; contain: layout style paint;`,...n})),Fv(i),f(r,i)}const ob={...ov,icon:Md};var ab=H('<div class="flex flex-col overflow-hidden rounded-lg"><div class="flex items-center justify-between px-3 py-2.5" style="background: #202124;"><div class="flex gap-2"><div class="h-3 w-3 rounded-full" style="background: #ff5f57; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);"></div> <div class="h-3 w-3 rounded-full" style="background: #febc2e; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);"></div> <div class="h-3 w-3 rounded-full" style="background: #28c840; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);"></div></div></div> <div class="flex items-center gap-3 px-3 pb-3" style="background: #202124;"><div class="flex flex-1 items-center gap-2 rounded-md px-3 py-1.5" style="background: #2d2e30; border: 1px solid #3c3d40;"><svg class="h-3.5 w-3.5 shrink-0" fill="none" stroke="#8e8f93" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg> <span class="truncate text-xs" style="color: #e8e8e9; font-weight: 400;"> </span></div></div> <div class="relative flex-1 overflow-hidden" style="background: #fff;"><!></div></div>');function lb(r,e){U(e,!0);const t=_(()=>e.width/100*e.project.width),n=_(()=>e.height/100*e.project.width);var i=ab();let s;var o=F(V(i),2),l=V(o),c=F(V(l),2),u=V(c,!0);z(c),z(l),z(o);var d=F(o,2),p=V(d);{var h=m=>{var v=O(),y=E(v);q(y,()=>e.screenChildren),f(m,v)},g=m=>{uc(m,{get src(){return e.url},get style(){return`height: ${a(n)??""}px;`},get zoom(){return e.zoom}})};te(p,m=>{e.screenChildren?m(h):e.url&&m(g,1)})}z(d),z(i),oe(()=>{s=ve(i,"background: #202124; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);",s,{width:`${a(t)??""}px`,height:`${a(n)??""}px`}),Se(u,e.url??"")}),f(r,i),B()}const cb=Object.freeze(Object.defineProperty({__proto__:null,default:lb,meta:ob},Symbol.toStringTag,{value:"Module"}));var ub=H('<link rel="preconnect" href="https://fonts.googleapis.com"/> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/> <link rel="stylesheet"/>',1),db=H("<div><!></div>");function _s(r,e){U(e,!0);const t=_(()=>e.fontFamily&&lv(e.fontFamily));let n=Z(!1),i=Z(!1);qt(()=>{if(!e.fontFamily){k(n,!1);return}k(i,!0),k(n,!1);const u=setTimeout(async()=>{await av(e.fontFamily)||(k(n,!0),console.warn(`[ApplyFont] Failed to load font: ${e.fontFamily}`),e.onError?.(e.fontFamily,"Font failed to load from Google Fonts")),k(i,!1)},1500);return()=>clearTimeout(u)});var s=O();Ld("z2udy0",u=>{var d=O(),p=E(d);{var h=g=>{var m=ub(),v=F(E(m),4);oe(()=>Re(v,"href",a(t))),f(g,m)};te(p,g=>{e.fontFamily&&g(h)})}f(u,d)});var o=E(s);{var l=u=>{var d=db();let p,h;var g=V(d);q(g,()=>e.children),z(d),oe(()=>{p=gr(d,1,"font-wrapper svelte-z2udy0",null,p,{"font-load-failed":a(n),"font-checking":a(i)}),Re(d,"data-font",e.fontFamily||void 0),h=ve(d,"",h,{"--font-family":e.fontFamily?`'${e.fontFamily}', sans-serif`:"inherit"})}),f(u,d)},c=u=>{var d=O(),p=E(d);q(p,()=>e.children),f(u,d)};te(o,u=>{e.fontFamily?u(l):u(c,-1)})}f(r,s),B()}var hb=H("<!> <!>",1),fb=H("<!> <!>",1);function vb(r,e){U(e,!0);let t=D(e,"value",15),n=$(e,["$$slots","$$events","$$legacy","value","onChange"]),i=Z(or(t())),s=Z(!1),o=Z(null),l=Z(!1);const c=_(()=>a(o)||t());function u(v){k(s,v,!0),v?(k(i,t(),!0),k(o,null),k(l,!1)):(!a(l)&&a(o)!==null&&(t(a(i)),e.onChange?.(a(i))),k(o,null),k(l,!1))}function d(v){a(s)&&(k(o,v,!0),t(v),e.onChange?.(v))}function p(){a(s)&&(k(o,null),t(a(i)),e.onChange?.(a(i)))}function h(v){k(l,!0),t(v),k(i,v,!0),k(o,null),e.onChange?.(v)}var g=O(),m=E(g);ue(m,()=>Eo,(v,y)=>{y(v,{type:"single",onOpenChange:u,get value(){return t()},set value(b){t(b)},children:(b,P)=>{var w=fb(),x=E(w);ue(x,()=>To,(R,C)=>{C(R,X({class:"min-w-40"},()=>n,{children:(S,A)=>{_s(S,{get fontFamily(){return a(c)},children:(I,M)=>{Fe();var L=Ge();oe(()=>Se(L,a(c)||"Select font")),f(I,L)},$$slots:{default:!0}})},$$slots:{default:!0}}))});var T=F(x,2);ue(T,()=>ko,(R,C)=>{C(R,{class:"max-h-[400px]",children:(S,A)=>{var I=O(),M=E(I);Et(M,17,()=>cv,L=>L.label,(L,W)=>{var j=O(),Y=E(j);ue(Y,()=>Ys,(le,se)=>{se(le,{children:(Q,ce)=>{var he=hb(),ae=E(he);ue(ae,()=>Ma,(ie,Pe)=>{Pe(ie,{children:(we,De)=>{Fe();var Le=Ge();oe(()=>Se(Le,a(W).label)),f(we,Le)},$$slots:{default:!0}})});var re=F(ae,2);Et(re,16,()=>a(W).fonts,ie=>ie,(ie,Pe)=>{var we=O(),De=E(we);ue(De,()=>hs,(Le,Ce)=>{Ce(Le,{get value(){return Pe},get label(){return Pe},class:"font-item",onmouseenter:()=>d(Pe),onmouseleave:p,onclick:()=>h(Pe),children:(Ee,Ne)=>{_s(Ee,{get fontFamily(){return Pe},children:(Ve,$e)=>{Fe();var Qe=Ge();oe(()=>Se(Qe,Pe)),f(Ve,Qe)},$$slots:{default:!0}})},$$slots:{default:!0}})}),f(ie,we)}),f(Q,he)},$$slots:{default:!0}})}),f(L,j)}),f(S,I)},$$slots:{default:!0}})}),f(b,w)},$$slots:{default:!0}})}),f(r,g),B()}function No(r,e){const t=_(()=>e.value);vb(r,{get value(){return a(t)},get onChange(){return e.onChange}})}const Fs={label:{h:"hue channel",s:"saturation channel",v:"brightness channel",r:"red channel",g:"green channel",b:"blue channel",a:"alpha channel",hex:"hex color",withoutColor:"without color"},color:{rgb:"rgb",hsv:"hsv",hex:"hex"},changeTo:"change to ",swatch:{ariaTitle:"saved colors",ariaLabel:r=>`select color: ${r}`}},bf="a[href], area[href], input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]";function gb(r){return function(e){if(e.target===window)return;const t=e.target;if(!r.contains(t))return;const n=r.querySelectorAll(bf),i=n[0],s=n[n.length-1];function o(c){return c.code==="Tab"&&!c.shiftKey}function l(c){return c.code==="Tab"&&c.shiftKey}o(e)&&e.target===s?(e.preventDefault(),i.focus()):l(e)&&e.target===i&&(e.preventDefault(),s.focus())}}const pb=r=>{const e=r.querySelector(bf);e&&e.focus();const t=gb(r);return document.addEventListener("keydown",t),{destroy(){document.removeEventListener("keydown",t)}}};var mb=H('<input type="hidden"/>'),_b=H('<div role="slider" tabindex="0"><div class="track svelte-17avhe1"></div> <div class="thumb svelte-17avhe1"></div></div> <!>',1);function go(r,e){U(e,!0);let t=D(e,"min",3,0),n=D(e,"max",3,100),i=D(e,"step",3,1),s=D(e,"value",15,50),o=D(e,"ariaValueText",3,j=>j.toString()),l=D(e,"direction",3,"horizontal"),c=D(e,"reverse",3,!1),u=D(e,"keyboardOnly",3,!1),d=D(e,"slider",7),p=D(e,"isDragging",7,!1);const h=_(()=>typeof t()=="string"?parseFloat(t()):t()),g=_(()=>typeof n()=="string"?parseFloat(n()):n()),m=_(()=>typeof i()=="string"?parseFloat(i()):i());function v(j){const Y=1/a(m),le=Math.round(j*Y)/Y;return Math.max(a(h),Math.min(a(g),le))}function y(j){const Y=j.shiftKey?a(m)*10:a(m);j.key==="ArrowUp"||j.key==="ArrowRight"?(s(s()+Y),j.preventDefault()):j.key==="ArrowDown"||j.key==="ArrowLeft"?(s(s()-Y),j.preventDefault()):j.key==="Home"?(s(a(h)),j.preventDefault()):j.key==="End"?(s(a(g)),j.preventDefault()):j.key==="PageUp"?(s(s()+a(m)*10),j.preventDefault()):j.key==="PageDown"&&(s(s()-a(m)*10),j.preventDefault()),s(v(s())),e.onInput?.(s())}const b={horizontal:{clientSize:"clientWidth",offset:"left",client:"clientX"},vertical:{clientSize:"clientHeight",offset:"top",client:"clientY"}};function P(j){const Y=d()?.[b[l()].clientSize]||120,le=d()?.getBoundingClientRect()[b[l()].offset]||0;let se=j[b[l()].client]-le;l()==="vertical"&&(se=-1*se+Y),c()?s(a(g)-se/Y*(a(g)-a(h))):s(se/Y*(a(g)-a(h))+a(h)),s(v(s())),e.onInput?.(s())}function w(j){P(j),p(!0)}function x(j){p()&&P(j)}function T(){p(!1)}function R(j){j.preventDefault(),P({clientX:j.changedTouches[0].clientX,clientY:j.changedTouches[0].clientY})}const C=_(()=>((s()-a(h))/(a(g)-a(h))*1).toFixed(4));var S=_b();wn("mousemove",ei,x),wn("mouseup",ei,T);var A=E(S);let I,M;Pr(A,j=>d(j),()=>d());var L=F(A,2);{var W=j=>{var Y=mb();Nr(Y),oe(()=>{Re(Y,"name",e.name),Jr(Y,s())}),f(j,Y)};te(L,j=>{e.name&&j(W)})}oe(j=>{I=gr(A,1,"slider svelte-17avhe1",null,I,{reverse:c()}),Re(A,"aria-orientation",l()),Re(A,"aria-valuemax",a(g)),Re(A,"aria-valuemin",a(h)),Re(A,"aria-valuenow",s()),Re(A,"aria-valuetext",j),Re(A,"aria-label",e.ariaLabel),Re(A,"aria-labelledby",e.ariaLabelledBy),Re(A,"aria-controls",e.ariaControls),M=ve(A,"",M,{"--position":a(C)})},[()=>o()(s())]),Ye("keydown",A,y),Ye("mousedown",A,function(...j){(u()?void 0:w)?.apply(this,j)}),Ye("touchstart",A,function(...j){(u()?void 0:R)?.apply(this,j)}),Ye("touchmove",A,function(...j){(u()?void 0:R)?.apply(this,j)}),Ye("touchend",A,function(...j){(u()?void 0:R)?.apply(this,j)}),f(r,S),B()}en(["keydown","mousedown","touchstart","touchmove","touchend"]);var yb=H('<div class="picker svelte-1m1n2al"><!> <div class="s svelte-1m1n2al"><!></div> <div class="v svelte-1m1n2al"><!></div></div>');function bb(r,e){U(e,!0);let t=D(e,"s",15),n=D(e,"v",15),i=Z(void 0),s=!1,o=Z(or({x:100,y:0})),l=_(()=>St({h:e.h,s:100,v:100,a:1}).toHex());function c(S,A,I){return Math.min(Math.max(A,S),I)}function u(S){if(!a(i))return;const{width:A,left:I,height:M,top:L}=a(i).getBoundingClientRect(),W={x:c(S.clientX-I,0,A),y:c(S.clientY-L,0,M)};t(c(W.x/A,0,1)*100),n(c((M-W.y)/M,0,1)*100),m()}function d(S){S.preventDefault(),S.button===0&&(s=!0,u(S))}function p(){s=!1}function h(S){s&&u(S)}function g(S){S.preventDefault(),u(S.changedTouches[0])}qt(()=>{typeof t()=="number"&&typeof n()=="number"&&a(i)&&k(o,{x:t(),y:100-n()},!0)});function m(S={}){e.onInput({s:t(),v:n(),...S})}var v=yb();wn("mouseup",ei,p),wn("mousemove",ei,h);let y;var b=V(v);ue(b,()=>e.components.pickerIndicator,(S,A)=>{A(S,{get pos(){return a(o)},get isDark(){return e.isDark}})});var P=F(b,2);let w;var x=V(P);go(x,{get value(){return t()},onInput:S=>m({s:S}),keyboardOnly:!0,ariaValueText:S=>`${S}%`,get ariaLabel(){return e.texts.label.s}}),z(P);var T=F(P,2);let R;var C=V(T);go(C,{get value(){return n()},onInput:S=>m({v:S}),keyboardOnly:!0,ariaValueText:S=>`${S}%`,direction:"vertical",get ariaLabel(){return e.texts.label.v}}),z(T),z(v),Pr(v,S=>k(i,S),()=>a(i)),oe(()=>{y=ve(v,"",y,{"--picker-color-bg":a(l)}),w=ve(P,"",w,{"--pos-y":a(o).y}),R=ve(T,"",R,{"--pos-x":a(o).x})}),Ye("mousedown",v,d),Ye("touchstart",v,g),Ye("touchmove",v,g),Ye("touchend",v,g),f(r,v),B()}en(["mousedown","touchstart","touchmove","touchend"]);var xb=H('<label class="svelte-mlybq7"><div class="container svelte-mlybq7"><input type="color" aria-haspopup="dialog" class="svelte-mlybq7"/> <div class="alpha svelte-mlybq7"></div> <div class="color svelte-mlybq7"></div></div> </label>');function wb(r,e){U(e,!0);let t=D(e,"labelElement",15),n=D(e,"name",3,void 0);function i(p){p.preventDefault()}var s=xb(),o=V(s),l=V(o);Nr(l);var c=F(l,4);let u;z(o);var d=F(o);z(s),Pr(s,p=>t(p),()=>t()),oe(()=>{Re(s,"dir",e.dir),Re(l,"name",n()),Jr(l,e.hex),u=ve(c,"",u,{background:e.hex}),Se(d,` ${e.label??""}`),s.dir=s.dir}),Ye("click",s,i),Ye("mousedown",s,i),Ye("click",l,i),Ye("mousedown",l,i),f(r,s),B()}en(["click","mousedown"]);var Sb=H('<label class="nullability-checkbox svelte-s1m26f"><div class="svelte-s1m26f"><input type="checkbox" class="svelte-s1m26f"/> <span class="svelte-s1m26f"></span></div> </label>');function Pb(r,e){U(e,!0);let t=D(e,"isUndefined",15);var n=Sb(),i=V(n),s=V(i);Nr(s),Fe(2),z(i);var o=F(i);z(n),oe(()=>Se(o,` ${e.texts.label.withoutColor??""}`)),yd(s,t),f(r,n),B()}var Eb=H('<div class="picker-indicator svelte-mhaz1q"></div>');function kb(r,e){U(e,!0);var t=Eb();let n;oe(()=>n=ve(t,"",n,{"--pos-x":e.pos.x,"--pos-y":e.pos.y})),f(r,t),B()}var Tb=H('<button type="button" class="swatch svelte-1ertupb"></button>'),Cb=H('<div class="swatches svelte-1ertupb"></div>');function Ab(r,e){U(e,!0);var t=O(),n=E(t);{var i=s=>{var o=Cb();Et(o,20,()=>e.swatches,l=>l,(l,c)=>{var u=Tb();oe(d=>{ve(u,`background: ${c??""}`),Re(u,"aria-label",d)},[()=>e.texts.swatch.ariaLabel(c)]),Ye("click",u,()=>e.selectSwatch(c)),f(l,u)}),z(o),oe(()=>Re(o,"aria-label",e.texts.swatch.ariaTitle)),f(s,o)};te(n,s=>{e.swatches&&s(i)})}f(r,t),B()}en(["click"]);var Mb=H('<input class="svelte-wmp1c0"/>'),Rb=H('<input type="number" min="0" max="255" class="svelte-wmp1c0"/> <input type="number" min="0" max="255" class="svelte-wmp1c0"/> <input type="number" min="0" max="255" class="svelte-wmp1c0"/>',1),Ib=H('<input type="number" min="0" max="360" class="svelte-wmp1c0"/> <input type="number" min="0" max="100" class="svelte-wmp1c0"/> <input type="number" min="0" max="100" class="svelte-wmp1c0"/>',1),Ob=H('<input type="number" min="0" max="1" step="0.01" class="svelte-wmp1c0"/>'),Nb=H('<button type="button" class="svelte-wmp1c0"><span class="disappear svelte-wmp1c0" aria-hidden="true"> </span> <span class="appear svelte-wmp1c0"> </span></button>'),Fb=H('<div class="button-like svelte-wmp1c0"> </div>'),Lb=H('<div class="text-input svelte-wmp1c0"><div class="input-container svelte-wmp1c0"><!> <!></div> <!></div>');function Db(r,e){U(e,!0);let t=D(e,"rgb",15),n=D(e,"hsv",15),i=D(e,"hex",15);const s=/^#?([A-F0-9]{6}|[A-F0-9]{8})$/i;let o=_(()=>e.textInputModes[0]||"hex"),l=_(()=>e.textInputModes[(e.textInputModes.indexOf(a(o))+1)%e.textInputModes.length]),c=_(()=>Math.round(n().h)),u=_(()=>Math.round(n().s)),d=_(()=>Math.round(n().v)),p=_(()=>n().a===void 0?1:Math.round(n().a*100)/100);function h(I){const M=I.target;s.test(M.value)&&(i(M.value),e.onInput({hex:i()}))}function g(I){return function(M){let L=parseFloat(M.target.value);t({...t(),[I]:isNaN(L)?0:L}),e.onInput({rgb:t()})}}function m(I){return function(M){let L=parseFloat(M.target.value);n({...n(),[I]:isNaN(L)?0:L}),e.onInput({hsv:n()})}}var v=Lb(),y=V(v),b=V(y);{var P=I=>{var M=Mb();Nr(M),ve(M,"",{},{flex:3}),oe(()=>{Re(M,"aria-label",e.texts.label.hex),Jr(M,i())}),Ye("input",M,h),f(I,M)},w=I=>{var M=Rb(),L=E(M);Nr(L);var W=_(()=>g("r")),j=F(L,2);Nr(j);var Y=_(()=>g("g")),le=F(j,2);Nr(le);var se=_(()=>g("b"));oe(()=>{Re(L,"aria-label",e.texts.label.r),Jr(L,t().r),Re(j,"aria-label",e.texts.label.g),Jr(j,t().g),Re(le,"aria-label",e.texts.label.b),Jr(le,t().b)}),Ye("input",L,function(...Q){a(W)?.apply(this,Q)}),Ye("input",j,function(...Q){a(Y)?.apply(this,Q)}),Ye("input",le,function(...Q){a(se)?.apply(this,Q)}),f(I,M)},x=I=>{var M=Ib(),L=E(M);Nr(L);var W=_(()=>m("h")),j=F(L,2);Nr(j);var Y=_(()=>m("s")),le=F(j,2);Nr(le);var se=_(()=>m("v"));oe(()=>{Re(L,"aria-label",e.texts.label.h),Jr(L,a(c)),Re(j,"aria-label",e.texts.label.s),Jr(j,a(u)),Re(le,"aria-label",e.texts.label.v),Jr(le,a(d))}),Ye("input",L,function(...Q){a(W)?.apply(this,Q)}),Ye("input",j,function(...Q){a(Y)?.apply(this,Q)}),Ye("input",le,function(...Q){a(se)?.apply(this,Q)}),f(I,M)};te(b,I=>{a(o)==="hex"?I(P):a(o)==="rgb"?I(w,1):I(x,-1)})}var T=F(b,2);{var R=I=>{var M=Ob();Nr(M);var L=_(()=>a(o)==="hsv"?m("a"):g("a"));oe(()=>{Re(M,"aria-label",e.texts.label.a),Jr(M,a(p))}),Ye("input",M,function(...W){a(L)?.apply(this,W)}),f(I,M)};te(T,I=>{e.isAlpha&&I(R)})}z(y);var C=F(y,2);{var S=I=>{var M=Nb(),L=V(M),W=V(L,!0);z(L);var j=F(L,2),Y=V(j);z(j),z(M),oe(()=>{Se(W,e.texts.color[a(o)]),Se(Y,`${e.texts.changeTo??""} ${e.texts.color[a(l)]??""}`)}),Ye("click",M,()=>k(o,a(l))),f(I,M)},A=I=>{var M=Fb(),L=V(M,!0);z(M),oe(()=>Se(L,e.texts.color[a(o)])),f(I,M)};te(C,I=>{e.textInputModes.length>1?I(S):I(A,-1)})}z(v),f(r,v),B()}en(["input","click"]);var zb=H('<div aria-label="color picker"><!></div>');function jb(r,e){U(e,!0);let t=D(e,"wrapper",15);var n=zb();let i;var s=V(n);q(s,()=>e.children),z(n),Pr(n,o=>t(o),()=>t()),oe(()=>{i=gr(n,1,"wrapper svelte-1qb1vb2",null,i,{"is-open":e.isOpen}),Re(n,"role",e.isDialog?"dialog":void 0)}),f(r,n),B()}var Hb=H('<input type="hidden"/>'),Ub=H('<div class="a svelte-uto6qk"><!></div>'),Bb=H('<!> <!> <div class="h svelte-uto6qk"><!></div> <!> <!> <!> <!>',1),Vb=H("<span><!> <!></span>");function Wb(r,e){U(e,!0);let t=D(e,"components",19,()=>({})),n=D(e,"label",3,"Choose a color"),i=D(e,"name",3,void 0),s=D(e,"nullable",3,!1),o=D(e,"rgb",31,()=>or(s()?null:{r:255,g:0,b:0,a:1})),l=D(e,"hsv",31,()=>or(s()?null:{h:0,s:100,v:100,a:1})),c=D(e,"hex",31,()=>or(s()?null:"#ff0000")),u=D(e,"color",15,null),d=D(e,"isDark",15,!1),p=D(e,"isAlpha",3,!0),h=D(e,"isDialog",3,!0),g=D(e,"isOpen",31,()=>!h()),m=D(e,"position",3,"responsive"),v=D(e,"dir",3,"ltr"),y=D(e,"isTextInput",3,!0),b=D(e,"textInputModes",19,()=>["hex","rgb","hsv"]),P=D(e,"sliderDirection",3,"vertical"),w=D(e,"disableCloseClickOutside",3,!1),x=D(e,"a11yColors",19,()=>[{bgHex:"#ffffff"}]),T=D(e,"a11yLevel",3,"AA"),R=D(e,"texts",3,void 0),C=D(e,"a11yTexts",3,void 0),S=Z(or({r:255,g:0,b:0,a:1})),A=Z(or({h:0,s:100,v:100,a:1})),I=Z("#ff0000"),M=Z(!1),L=Z(or(a(M))),W=Z(void 0),j=Z(void 0),Y=Z(void 0),le,se=Z(1080),Q=Z(720);const ce=12,he={pickerIndicator:kb,textInput:Db,input:wb,nullabilityCheckbox:Pb,wrapper:jb};function ae(){return{...he,...t()}}function re(){return{label:{...Fs.label,...R()?.label},color:{...Fs.color,...R()?.color},changeTo:R()?.changeTo??Fs.changeTo,swatch:{...R()?.swatch,...Fs.swatch}}}function ie({target:ke}){h()&&(a(j)?.contains(ke)||a(j)?.isSameNode(ke)?g(!g()):g()&&!a(Y)?.contains(ke)&&!w()&&g(!1))}function Pe({key:ke,target:Ie}){!h()||!a(j)||!a(W)||(ke==="Enter"&&a(j).contains(Ie)?(g(!g()),setTimeout(()=>{a(Y)&&(le=pb(a(Y)))})):ke==="Escape"&&g()&&(g(!1),a(W).contains(Ie)&&(a(j)?.focus(),le?.destroy())))}function we(ke){c(ke),l(St(ke).toHsv()),o(St(ke).toRgb()),k(M,!1),Le()}function De(){return!(l()&&o()&&l().h===a(A).h&&l().s===a(A).s&&l().v===a(A).v&&l().a===a(A).a&&o().r===a(S).r&&o().g===a(S).g&&o().b===a(S).b&&o().a===a(S).a&&c()===a(I))}function Le(){if(a(M)&&!a(L)){k(L,!0),l(null),o(null),c(null),e.onInput?.({color:u(),hsv:l(),rgb:o(),hex:c()});return}else if(a(L)&&!a(M)){k(L,!1),l(Fr(a(A))),o(Fr(a(S))),c(Fr(a(I))),e.onInput?.({color:u(),hsv:l(),rgb:o(),hex:c()});return}else if(!l()&&!o()&&!c()){k(M,k(L,!0),!0),e.onInput?.({color:null,hsv:l(),rgb:o(),hex:c()});return}else if(!De())return;k(M,!1),l()&&l().a===void 0&&l({...l(),a:1}),a(A).a===void 0&&k(A,{...a(A),a:1},!0),o()&&o().a===void 0&&o({...o(),a:1}),a(S).a===void 0&&k(S,{...a(S),a:1},!0),c()?.substring(7)==="ff"&&c(c().substring(0,7)),a(I)?.substring(7)==="ff"&&k(I,a(I).substring(0,7),!0),l()&&(l().h!==a(A).h||l().s!==a(A).s||l().v!==a(A).v||l().a!==a(A).a||!o()&&!c())?(u(St(l())),o(u().toRgb()),c(u().toHex())):o()&&(o().r!==a(S).r||o().g!==a(S).g||o().b!==a(S).b||o().a!==a(S).a||!l()&&!c())?(u(St(o())),c(u().toHex()),l(u().toHsv())):c()&&(c()!==a(I)||!l()&&!o())&&(u(St(c())),o(u().toRgb()),l(u().toHsv())),u()&&d(u().isDark()),!(!c()||!l()||!o())&&(k(A,Fr(l()),!0),k(S,Fr(o()),!0),k(I,c(),!0),k(L,a(M),!0),e.onInput?.({color:u(),hsv:l(),rgb:o(),hex:c()}))}qt(()=>{(l()||o()||c())&&Le()}),qt(()=>{a(M),Le()});function Ce(ke){return Ie=>{l()||(k(M,!1),k(L,!1),l(Fr(a(A)))),l({...l(),[ke]:Ie})}}function Ee(ke){return Ie=>{l()||(k(M,!1),k(L,!1),l(Fr(a(A)))),l({...l(),...Object.fromEntries(ke.map(et=>[et,Ie[et]]))})}}async function Ne(){if(await od(),m()==="fixed"||!g()||!h()||!a(j)||!a(Y))return;const ke=a(Y).getBoundingClientRect(),Ie=a(j).getBoundingClientRect();if((m()==="responsive"||m()==="responsive-y")&&(Ie.top+ke.height+ce>a(Q)?a(Y).style.top=`-${ke.height+ce}px`:a(Y).style.top=`${Ie.height+ce}px`),m()==="responsive"||m()==="responsive-x")if(v()==="rtl"){const et=Ie.left+Ie.width-ke.width<0;console.log(et,Ie.left-ke.width,Ie.left,ke.width),et?a(Y).style.left="0px":a(Y).style.left=`${Ie.width-ke.width}px`}else Ie.left+ke.width>a(se)?a(Y).style.left=`${Ie.width-ke.width}px`:a(Y).style.left="0px"}qt(()=>{a(se)&&a(Q)&&g()&&Ne()});const Ve=_(ae);var $e=Vb();wn("mousedown",ei,ie),wn("keyup",ei,Pe),wn("scroll",ei,Ne);var Qe=V($e);{var gt=ke=>{var Ie=O(),et=E(Ie);ue(et,()=>a(Ve).input,(lr,Dt)=>{Dt(lr,{get hex(){return c()},get label(){return n()},get name(){return i()},get dir(){return v()},get labelElement(){return a(j)},set labelElement(cr){k(j,cr,!0)}})}),f(ke,Ie)},pt=ke=>{var Ie=Hb();Nr(Ie),oe(()=>{Jr(Ie,c()),Re(Ie,"name",i())}),f(ke,Ie)};te(Qe,ke=>{h()?ke(gt):i()&&ke(pt,1)})}var rt=F(Qe,2);ue(rt,()=>a(Ve).wrapper,(ke,Ie)=>{Ie(ke,{get isOpen(){return g()},get isDialog(){return h()},get wrapper(){return a(Y)},set wrapper(et){k(Y,et,!0)},children:(et,lr)=>{var Dt=Bb(),cr=E(Dt);{var tr=ze=>{var We=O(),Yt=E(We);{let _r=_(re);ue(Yt,()=>a(Ve).nullabilityCheckbox,(Xt,Jt)=>{Jt(Xt,{get texts(){return a(_r)},get isUndefined(){return a(M)},set isUndefined(rn){k(M,rn,!0)}})})}f(ze,We)};te(cr,ze=>{s()&&ze(tr)})}var qr=F(cr,2);{let ze=_(ae),We=_(()=>l()?.h??a(A).h),Yt=_(()=>l()?.s??a(A).s),_r=_(()=>l()?.v??a(A).v),Xt=_(()=>Ee(["s","v"])),Jt=_(re);bb(qr,{get components(){return a(ze)},get h(){return a(We)},get s(){return a(Yt)},get v(){return a(_r)},get onInput(){return a(Xt)},get isDark(){return d()},get texts(){return a(Jt)}})}var Gr=F(qr,2),tn=V(Gr);{let ze=_(()=>l()?.h??a(A).h),We=_(()=>Ce("h")),Yt=_(()=>P()==="vertical"),_r=_(()=>re().label.h);go(tn,{min:0,max:360,step:1,get value(){return a(ze)},get onInput(){return a(We)},get direction(){return P()},get reverse(){return a(Yt)},get ariaLabel(){return a(_r)}})}z(Gr);var mr=F(Gr,2);{var Hn=ze=>{var We=Ub();let Yt;var _r=V(We);{let Xt=_(()=>l()?.a??a(A).a),Jt=_(()=>Ce("a")),rn=_(()=>P()==="vertical"),zr=_(()=>re().label.a);go(_r,{min:0,max:1,step:.01,get value(){return a(Xt)},get onInput(){return a(Jt)},get direction(){return P()},get reverse(){return a(rn)},get ariaLabel(){return a(zr)}})}z(We),oe(Xt=>Yt=ve(We,"",Yt,Xt),[()=>({"--alphaless-color":(c()?c():a(I)).substring(0,7)})]),f(ze,We)};te(mr,ze=>{p()&&ze(Hn)})}var Un=F(mr,2);{var ee=ze=>{{let We=_(re);Ab(ze,{get swatches(){return e.swatches},selectSwatch:we,get texts(){return a(We)}})}};te(Un,ze=>{e.swatches&&e.swatches.length>0&&ze(ee)})}var ge=F(Un,2);{var Te=ze=>{var We=O(),Yt=E(We);{let _r=_(()=>c()??a(I)),Xt=_(()=>o()??a(S)),Jt=_(()=>l()??a(A)),rn=_(re);ue(Yt,()=>a(Ve).textInput,(zr,si)=>{si(zr,{get hex(){return a(_r)},get rgb(){return a(Xt)},get hsv(){return a(Jt)},onInput:nn=>{nn.hsv?l(nn.hsv):nn.rgb?o(nn.rgb):nn.hex&&c(nn.hex)},get isAlpha(){return p()},get textInputModes(){return b()},get texts(){return a(rn)}})})}f(ze,We)};te(ge,ze=>{y()&&ze(Te)})}var je=F(ge,2);{var nt=ze=>{var We=O(),Yt=E(We);{let _r=_(ae),Xt=_(()=>c()||"#00000000");ue(Yt,()=>a(Ve).a11yNotice,(Jt,rn)=>{rn(Jt,{get components(){return a(_r)},get a11yColors(){return x()},get hex(){return a(Xt)},get a11yTexts(){return C()},get a11yLevel(){return T()}})})}f(ze,We)},kt=_(()=>ae().a11yNotice);te(je,ze=>{a(kt)&&ze(nt)})}f(et,Dt)},$$slots:{default:!0}})}),z($e),Pr($e,ke=>k(W,ke),()=>a(W)),oe(()=>gr($e,1,`color-picker ${P()??""}`,"svelte-uto6qk")),mc("innerWidth",ke=>k(se,ke,!0)),mc("innerHeight",ke=>k(Q,ke,!0)),f(r,$e),B()}var qb=H("<!> <!>",1);function pa(r,e){U(e,!0);let t=$(e,["$$slots","$$events","$$legacy","value","optional","onchange"]);const n=_(()=>{if(!e.value)return"#000000";try{return St(e.value).brightness()>.5?"#000000":"#ffffff"}catch{return"#000000"}});var i=O(),s=E(i);ue(s,()=>th,(o,l)=>{l(o,{children:(c,u)=>{var d=qb(),p=E(d);{const g=(m,v)=>{let y=()=>v?.().props;{let b=_(()=>vt("w-full flex-1",y().class));Rd(m,X({get value(){return e.value},readonly:!0,get style(){return`background-color: ${e.value??""}; color: ${a(n)??""};`}},y,{get class(){return a(b)}}))}};ue(p,()=>nh,(m,v)=>{v(m,{child:g,$$slots:{child:!0}})})}var h=F(p,2);ue(h,()=>rh,(g,m)=>{m(g,{class:"w-auto p-0 text-black [&_.color-picker_.wrapper]:m-0! [&_.color-picker_.wrapper]:border-0!",align:"end",side:"left",children:(v,y)=>{Wb(v,X({get hex(){return e.value},onInput:b=>e.onchange(b.hex??""),isAlpha:!0,isDialog:!1,get nullable(){return e.optional}},()=>t))},$$slots:{default:!0}})}),f(c,d)},$$slots:{default:!0}})}),f(r,i),B()}const Gb=vl({base:"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-e-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-s-none [&>*:not(:first-child)]:border-s-0 [&>*:not(:last-child)]:rounded-e-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});var Kb=H("<div><!></div>");function Bs(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"orientation",3,"horizontal"),i=$(e,["$$slots","$$events","$$legacy","ref","class","children","orientation"]);var s=Kb();Xe(s,l=>({role:"group","data-slot":"button-group","data-orientation":n(),class:l,...i}),[()=>vt(Gb({orientation:n()}),e.class)]);var o=V(s);q(o,()=>e.children??J),z(s),Pr(s,l=>t(l),()=>t()),f(r,s),B()}var $b=H('<label class="text-[10px] text-muted-foreground"><!></label>');function Yb(r,e){var t=$b(),n=V(t);q(n,()=>e.children),z(t),oe(()=>Re(t,"for",e.htmlFor)),f(r,t)}var Xb=H('<div class="flex flex-row gap-0.5"><!></div>'),Jb=H('<div class="flex flex-1 items-center gap-0.5"><!> <!></div>'),Zb=H('<div class="flex flex-1 items-center gap-0.5"><!> <!></div>'),Qb=H('<div class="flex gap-1"></div>'),ex=H('<div class="flex flex-col gap-1"><!> <div class="flex gap-1"></div> <!></div> <!>',1);function In(r,e){U(e,!0);const t=_(jn),n=_(()=>a(t).project),i=_(()=>a(n).selectedLayer);function s(v){a(i)&&a(n).removeKeyframesByProperty(a(i).id,v)}const o=_(()=>e.fields.some(v=>v.postFix));var l=ex(),c=E(l),u=V(c);{var d=v=>{var y=Xb(),b=V(y);q(b,()=>e.prefix),z(y),f(v,y)};te(u,v=>{e.prefix&&v(d)})}var p=F(u,2);Et(p,21,()=>e.fields,v=>v.for,(v,y)=>{var b=Jb(),P=V(b);{var w=T=>{ih(T,{get property(){return a(y).property},get active(){return a(y).hasKeyframes},get label(){return a(y).labels},get addKeyframe(){return a(y).addKeyframe},removeKeyframes:s})};te(P,T=>{a(y).property&&T(w)})}var x=F(P,2);Jl(x,{get htmlFor(){return a(y).for},children:(T,R)=>{Fe();var C=Ge();oe(()=>Se(C,a(y).labels)),f(T,C)}}),z(b),f(v,b)}),z(p);var h=F(p,2);ue(h,()=>Bs,(v,y)=>{y(v,{class:"w-full",children:(b,P)=>{var w=O(),x=E(w);q(x,()=>e.children),f(b,w)},$$slots:{default:!0}})}),z(c);var g=F(c,2);{var m=v=>{var y=Qb();Et(y,21,()=>e.fields,b=>b.for,(b,P)=>{var w=Zb(),x=V(w);{var T=S=>{Yb(S,{children:(A,I)=>{Fe();var M=Ge();oe(()=>Se(M,a(P).postFix)),f(A,M)}})};te(x,S=>{typeof a(P).postFix=="string"&&S(T)})}var R=F(x,2);{var C=S=>{var A=O(),I=E(A);q(I,()=>a(P).postFix),f(S,A)};te(R,S=>{typeof a(P).postFix=="function"&&S(C)})}z(w),f(b,w)}),z(y),f(v,y)};te(g,v=>{a(o)&&v(m)})}f(r,l),B()}function tx(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"open",15,!1),i=$(e,["$$slots","$$events","$$legacy","ref","open"]);var s=O(),o=E(s);ue(o,()=>Zm,(l,c)=>{c(l,X({"data-slot":"collapsible"},()=>i,{get ref(){return t()},set ref(u){t(u)},get open(){return n()},set open(u){n(u)}}))}),f(r,s),B()}function rx(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","child","children"]);var i=O(),s=E(i);ue(s,()=>r0,(o,l)=>{l(o,X({"data-slot":"collapsible-trigger"},()=>n,{get ref(){return t()},set ref(c){t(c)},children:(c,u)=>{var d=O(),p=E(d);{var h=m=>{var v=O(),y=E(v);q(y,()=>e.child,()=>({props:n})),f(m,v)},g=m=>{var v=O(),y=E(v);q(y,()=>e.children),f(m,v)};te(p,m=>{e.child?m(h):e.children&&m(g,1)})}f(c,d)},$$slots:{default:!0}}))}),f(r,i),B()}function nx(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","children"]);var i=O(),s=E(i);ue(s,()=>e0,(o,l)=>{l(o,X({"data-slot":"collapsible-content"},()=>n,{get ref(){return t()},set ref(c){t(c)},children:(c,u)=>{var d=O(),p=E(d);q(p,()=>e.children??J),f(c,d)},$$slots:{default:!0}}))}),f(r,i),B()}var ix=H("<div><!></div>");function xf(r,e){U(e,!0);let t=D(e,"ref",15,null),n=$(e,["$$slots","$$events","$$legacy","ref","class","children"]);var i=ix();Xe(i,o=>({"data-slot":"input-group",role:"group",class:o,...n}),[()=>vt("group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none dark:bg-input/30","h-9 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:ps-2","has-[>[data-align=inline-end]]:[&>input]:pe-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50","has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e.class)]);var s=V(i);q(s,()=>e.children??J),z(i),Pr(i,o=>t(o),()=>t()),f(r,i),B()}const sx=vl({base:"text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",variants:{align:{"inline-start":"order-first ps-3 has-[>button]:ms-[-0.45rem] has-[>kbd]:ms-[-0.35rem]","inline-end":"order-last pe-3 has-[>button]:me-[-0.45rem] has-[>kbd]:me-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3","block-end":"order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3"}},defaultVariants:{align:"inline-start"}});var ox=H("<div><!></div>");function Wu(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"align",3,"inline-start"),i=$(e,["$$slots","$$events","$$legacy","ref","class","children","align"]);var s=ox(),o=c=>{c.target.closest("button")||c.currentTarget.parentElement?.querySelector("input")?.focus()};Xe(s,c=>({role:"group","data-slot":"input-group-addon","data-align":n(),class:c,onclick:o,...i}),[()=>vt(sx({align:n()}),e.class)]);var l=V(s);q(l,()=>e.children??J),z(s),Pr(s,c=>t(c),()=>t()),f(r,s),B()}vl({base:"flex items-center gap-2 text-sm shadow-none",variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function wf(r,e){U(e,!0);let t=D(e,"ref",15,null),n=D(e,"value",15),i=$(e,["$$slots","$$events","$$legacy","ref","value","class"]);{let s=_(()=>vt("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",e.class));Rd(r,X({"data-slot":"input-group-control",get class(){return a(s)}},()=>i,{get ref(){return t()},set ref(o){t(o)},get value(){return n()},set value(o){n(o)}}))}B()}var ax=H('<button type="button" title="Drag to adjust. Shift=fine, Alt=coarse"><!></button>'),lx=H("<!> <!> <!>",1);function Ct(r,e){U(e,!0);let t=D(e,"value",15),n=D(e,"step",3,1),i=D(e,"disabled",3,!1),s=Z(!1),o=Z(0),l=Z(0),c=Z(null),u=Z(!1);const d=_(()=>a(u)?t():Math.round(t()*100)/100);function p(A){let I=A;return e.min!==void 0&&(I=Math.max(e.min,I)),e.max!==void 0&&(I=Math.min(e.max,I)),I}function h(A){return Math.round(A/n())*n()}function g(A){i()||(A.preventDefault(),v(A.clientX))}function m(A){i()||(A.preventDefault(),A.touches.length===1&&v(A.touches[0].clientX))}function v(A){k(s,!0),k(o,A,!0),k(l,t(),!0),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",x),document.addEventListener("touchcancel",x),document.body.style.cursor="ew-resize",document.body.style.userSelect="none"}function y(A){!a(s)||i()||P(A.clientX,A.shiftKey,A.altKey)}function b(A){!a(s)||i()||(A.preventDefault(),A.touches.length===1&&P(A.touches[0].clientX,A.shiftKey,A.altKey))}function P(A,I,M){if(i())return;const L=A-a(o);let W=1;I?W=.1:M&&(W=10);const Y=L/2*n()*W,le=p(h(a(l)+Y));t(le),e.onchange?.(le)}function w(){T()}function x(){T()}function T(){k(s,!1),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",x),document.removeEventListener("touchcancel",x),document.body.style.cursor="",document.body.style.userSelect=""}function R(A){const I=A.currentTarget,M=parseFloat(I.value);isNaN(M)||(t(p(M)),e.onchange?.(M))}var C=O(),S=E(C);ue(S,()=>xf,(A,I)=>{I(A,{class:"flex-1 items-center",children:(M,L)=>{var W=lx(),j=E(W);ue(j,()=>Wu,(Q,ce)=>{ce(Q,{children:(he,ae)=>{var re=ax();Re(re,"tabindex",-1);var ie=V(re);Gp(ie,{class:"size-3"}),z(re),oe(Pe=>gr(re,1,Pe),[()=>Gs(vt("flex h-full cursor-ew-resize items-center pr-0.5 pl-1 opacity-40 transition-opacity hover:opacity-80",{"text-primary opacity-100":a(s)}))]),Ye("mousedown",re,g),Ye("touchstart",re,m),f(he,re)},$$slots:{default:!0}})});var Y=F(j,2);{let Q=_(()=>vt("number-input-no-spin pl-0! text-right font-mono text-xs!",{"pr-2.5!":!e.postFix,"pr-0.5!":e.postFix},e.class));ue(Y,()=>wf,(ce,he)=>{he(ce,{get id(){return e.id},type:"number",get value(){return a(d)},get disabled(){return i()},oninput:R,onfocus:()=>k(u,!0),onblur:()=>k(u,!1),get class(){return a(Q)},prefix:"%",get ref(){return a(c)},set ref(ae){k(c,ae,!0)}})})}var le=F(Y,2);{var se=Q=>{var ce=O(),he=E(ce);ue(he,()=>Wu,(ae,re)=>{re(ae,{align:"inline-end",class:"font-mono text-xs",children:(ie,Pe)=>{var we=O(),De=E(we);{var Le=Ee=>{var Ne=Ge();oe(()=>Se(Ne,e.postFix)),f(Ee,Ne)},Ce=Ee=>{var Ne=O(),Ve=E(Ne);q(Ve,()=>e.postFix),f(Ee,Ne)};te(De,Ee=>{typeof e.postFix=="string"?Ee(Le):Ee(Ce,-1)})}f(ie,we)},$$slots:{default:!0}})}),f(Q,ce)};te(le,Q=>{e.postFix&&Q(se)})}f(M,W)},$$slots:{default:!0}})}),f(r,C),B()}en(["mousedown","touchstart"]);const Sf=new class{#e=id(window.devicePixelRatio);#t(){const e=ys(window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),"change",()=>{k(this.#e,window.devicePixelRatio),e(),this.#t()})}constructor(){this.#t()}get current(){return a(this.#e),window.devicePixelRatio}},qu=(r,e=J,t=J,n=J,i=J)=>{var s=cx();let o,l;oe(()=>{o=gr(s,1,"aspect-square cursor-pointer rounded-lg transition-all hover:scale-105",null,o,{"ring-1":!t(),"ring-border":!t(),"ring-2":t(),"ring-primary":t(),"ring-offset-1":t(),"ring-offset-card":t()}),Re(s,"aria-label",n()),l=ve(s,"",l,{background:e()})}),Ye("click",s,function(...c){i()?.apply(this,c)}),f(r,s)};var cx=H('<button type="button"></button>'),ux=H('<canvas class="absolute top-1/2 left-0 w-full -translate-y-1/2"></canvas> <div class="absolute inset-0 flex items-center justify-end px-2"><span class="rounded bg-black/40 px-1.5 py-0.5 text-[10px] font-medium text-white backdrop-blur-sm"> </span></div>',1),dx=H('<div class="absolute inset-0"></div> <div class="absolute inset-0 flex items-center justify-end px-2"><span class="rounded bg-black/30 px-1.5 py-0.5 text-[10px] font-medium text-white backdrop-blur-sm"> </span></div>',1),hx=H('<!> <span class="flex-1 text-left"> </span> <!>',1),fx=H('<div class="space-y-2"><div class="grid gap-1.5" style="grid-template-columns: repeat(auto-fill, minmax(28px, 1fr))"></div> <!></div>'),vx=H("<!> <!>",1),gx=H("<!>Add Stop",1),px=H("<!> <!> <!>",1),mx=H('<div class="space-y-2"><!> <!></div>'),_x=H("<!> <!>",1),yx=H("<!> <!>",1),bx=H("<!> <!>",1),xx=H("<!> <!>",1),wx=H("<!> <!>",1),Sx=H("<!> <!>",1),Px=H('<!> <div class="space-y-3 rounded-lg bg-muted/50 p-3"><div class="text-xs font-semibold tracking-wide text-muted-foreground uppercase">Pattern Overlay</div> <div class="space-y-2"><!> <!></div></div>',1),Ex=H('<div class="space-y-3"><!> <!> <!> <!> <!> <!> <!> <div class="space-y-3"><!> <!> <!> <!> <!></div> <!></div>'),kx=H('<div class="space-y-3"><!> <div class="grid gap-1.5" style="grid-template-columns: repeat(auto-fill, minmax(28px, 1fr))"></div></div>'),Tx=H('<button type="button"><span class="text-xs font-semibold"> </span> <span class="text-[10px] leading-tight text-muted-foreground"> </span></button>'),Cx=H("<!> <!>",1),Ax=H('<span class="text-xs text-muted-foreground">Using project primary</span>'),Mx=H('<div class="flex items-center gap-2"><!> <!></div>'),Rx=H('<div class="space-y-4"><div class="grid gap-2" style="grid-template-columns: repeat(auto-fill, minmax(140px, 1fr))"></div> <!> <!> <!></div>'),Ix=H('<div class="px-3 pt-2 pb-3"><!></div>'),Ox=H("<!> <!>",1),Nx=H('<button type="button"><!> <span>None</span></button>'),Fx=H('<div class="relative mb-3 h-10 overflow-hidden rounded-md border"><!></div> <div class="divide-y divide-border overflow-hidden rounded-md border"><!> <!> <!> <!> <!></div>',1);function Lx(r,e){U(e,!0);function t(ee){return e.allowedTabs?e.allowedTabs.includes(ee):!0}let n=Z(or(e.value?hr(e.value)?"dynamic":Jn(e.value)?"solid":"gradient":"none")),i=_(()=>{const ee=e.value;return hr(ee)?ee.variant:"mesh-gradient"}),s=_(()=>{const ee=e.value;return hr(ee)?ee.speed:1}),o=_(()=>{const ee=e.value;return hr(ee)?ee.intensity:.7}),l=_(()=>{const ee=e.value;return hr(ee)?ee.primaryColor??"":""});const c=hc;function u(){return{type:"dynamic",variant:a(i),speed:a(s),intensity:a(o),primaryColor:a(l)||void 0}}function d(){e.onchange(u())}function p(ee){k(i,ee),e.onchange(u())}let h=_(()=>kr(e.value)?e.value.type:"linear"),g=_(()=>kr(e.value)&&(e.value.type==="linear"||e.value.type==="conic")?e.value.angle:180),m=_(()=>kr(e.value)&&(e.value.type==="radial"||e.value.type==="conic")?e.value.position.x:50),v=_(()=>kr(e.value)&&(e.value.type==="radial"||e.value.type==="conic")?e.value.position.y:50),y=_(()=>kr(e.value)&&e.value.type==="radial"?e.value.shape:"circle"),b=_(()=>kr(e.value)?[...e.value.stops]:[{color:"#4a90e2",position:0},{color:"#e24a4a",position:100}]),P=_(()=>kr(e.value)?e.value.filters:void 0);ng(()=>e.value,()=>{Jn(e.value)?k(n,"solid"):hr(e.value)?k(n,"dynamic"):kr(e.value)&&(k(h,e.value.type),k(b,[...e.value.stops]),e.value.type==="linear"?k(g,e.value.angle):e.value.type==="radial"?(k(m,e.value.position.x),k(v,e.value.position.y),k(y,e.value.shape)):e.value.type==="conic"&&(k(g,e.value.angle),k(m,e.value.position.x),k(v,e.value.position.y)),zo.some(ge=>JSON.stringify(ge.value)===JSON.stringify(e.value))?k(n,"presets"):k(n,"gradient"))});const w=_(()=>Pa(e.value));let x=Z("all");const T=hv(),R=_(()=>a(x)==="all"?zo:zo.filter(ee=>ee.category===a(x)));function C(ee){return JSON.stringify(ee.value)===JSON.stringify(e.value)}function S(ee){e.onchange(dv(ee))}function A(){return a(h)==="linear"?{type:"linear",angle:a(g),stops:a(b),filters:a(P)}:a(h)==="radial"?{type:"radial",shape:a(y),size:"farthest-corner",position:{x:a(m),y:a(v)},stops:a(b),filters:a(P)}:{type:"conic",angle:a(g),position:{x:a(m),y:a(v)},stops:a(b),filters:a(P)}}function I(){e.onchange(A())}function M(){const ee=a(b)[a(b).length-1],ge=Math.min(ee.position+20,100);k(b,[...a(b),{color:"#888888",position:ge}]),I()}function L(ee){a(b).length<=2||(k(b,a(b).filter((ge,Te)=>Te!==ee)),I())}function W(ee,ge,Te){k(b,a(b).map((je,nt)=>nt===ee?{...je,[ge]:Te}:je)),I()}function j(ee){e.onchange(ee.value)}function Y(ee,ge){if(kr(e.value)){const Te={...a(P),[ee]:ge};e.onchange({...e.value,filters:Te})}}function le(){if(kr(e.value)){const{filters:ee,...ge}=e.value;e.onchange(ge)}}const se=_(()=>a(P)&&Object.values(a(P)).some(ee=>ee!==void 0&&ee!==1&&ee!==0));let Q=Z(void 0),ce=Z(0);const he=_(()=>Math.round(a(ce)*(9/16)));let ae=Z(0),re;const ie=_(()=>Sf.current??1);qt(()=>{if(!hr(e.value))return;let ee;function ge(Te){ee===void 0&&(ee=Te),k(ae,(Te-ee)/1e3),re=requestAnimationFrame(ge)}return re=requestAnimationFrame(ge),()=>{re!==void 0&&cancelAnimationFrame(re)}}),ar([()=>a(Q),()=>a(ce),()=>a(he),()=>a(ie)],()=>{if(!a(Q)||a(ce)===0||a(he)===0)return;const ee=Math.round(a(ce)*a(ie)),ge=Math.round(a(he)*a(ie));a(Q).width!==ee&&(a(Q).width=ee),a(Q).height!==ge&&(a(Q).height=ge)});let Pe=Z(null);function we(ee){const ge=ee.trim().replace("#","");if(ge.length===3)return[parseInt(ge[0]+ge[0],16)/255,parseInt(ge[1]+ge[1],16)/255,parseInt(ge[2]+ge[2],16)/255];if(ge.length===6)return[parseInt(ge.slice(0,2),16)/255,parseInt(ge.slice(2,4),16)/255,parseInt(ge.slice(4,6),16)/255];const Te=ee.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i);return Te?[parseInt(Te[1])/255,parseInt(Te[2])/255,parseInt(Te[3])/255]:[99/255,102/255,241/255]}function De(ee,ge,Te){const je=ee.createShader(ge);return je?(ee.shaderSource(je,Te),ee.compileShader(je),ee.getShaderParameter(je,ee.COMPILE_STATUS)?je:(ee.deleteShader(je),null)):null}function Le(ee,ge){const Te=De(ee,ee.VERTEX_SHADER,dd),je=De(ee,ee.FRAGMENT_SHADER,hd[ge]);if(!Te||!je)return null;const nt=ee.createProgram();return nt?(ee.attachShader(nt,Te),ee.attachShader(nt,je),ee.linkProgram(nt),ee.deleteShader(Te),ee.deleteShader(je),ee.getProgramParameter(nt,ee.LINK_STATUS)?nt:(ee.deleteProgram(nt),null)):null}ar([()=>a(Q),()=>hr(e.value)?e.value.variant:null],()=>{if(!a(Q)||!hr(e.value))return;const ee=a(Q).getContext("webgl",{antialias:!1,premultipliedAlpha:!1,preserveDrawingBuffer:!0});if(!ee)return;ee.getExtension("OES_standard_derivatives");const ge=ee.createBuffer();ee.bindBuffer(ee.ARRAY_BUFFER,ge),ee.bufferData(ee.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,1,1]),ee.STATIC_DRAW);const Te=Le(ee,e.value.variant);if(!Te){ee.deleteBuffer(ge);return}ee.useProgram(Te);const je=ee.getAttribLocation(Te,"a_position");return ee.enableVertexAttribArray(je),ee.vertexAttribPointer(je,2,ee.FLOAT,!1,0,0),k(Pe,{gl:ee,program:Te,uniforms:{resolution:ee.getUniformLocation(Te,"u_resolution"),time:ee.getUniformLocation(Te,"u_time"),intensity:ee.getUniformLocation(Te,"u_intensity"),color:ee.getUniformLocation(Te,"u_color")}},!0),()=>{ee.deleteProgram(Te),ee.deleteBuffer(ge),k(Pe,null)}}),ar([()=>a(Pe),()=>a(ce),()=>a(he),()=>a(ae),()=>hr(e.value)?e.value.speed:0,()=>hr(e.value)?e.value.intensity:0,()=>hr(e.value)?e.value.primaryColor??"#6366f1":"",()=>a(ie)],()=>{if(!a(Pe)||a(ce)===0||a(he)===0||!hr(e.value))return;const ee=e.value,{gl:ge,program:Te,uniforms:je}=a(Pe),[nt,kt,ze]=we(ee.primaryColor??"#6366f1");ge.viewport(0,0,a(ce)*a(ie),a(he)*a(ie)),ge.useProgram(Te),ge.uniform2f(je.resolution,a(ce)*a(ie),a(he)*a(ie)),ge.uniform1f(je.time,a(ae)*ee.speed),ge.uniform1f(je.intensity,ee.intensity),ge.uniform3f(je.color,nt,kt,ze),ge.drawArrays(ge.TRIANGLE_STRIP,0,4)});var Ce=Fx(),Ee=E(Ce),Ne=V(Ee);{var Ve=ee=>{var ge=ux(),Te=E(ge);let je;Pr(Te,We=>k(Q,We),()=>a(Q));var nt=F(Te,2),kt=V(nt),ze=V(kt,!0);z(kt),z(nt),oe(We=>{je=ve(Te,"",je,{height:`${a(he)??""}px`}),Se(ze,We)},[()=>hc.find(We=>We.id===e.value.variant)?.label??"Dynamic"]),Ca(Te,"clientWidth",We=>k(ce,We)),f(ee,ge)},$e=_(()=>hr(e.value)),Qe=ee=>{var ge=dx(),Te=E(ge);let je;var nt=F(Te,2),kt=V(nt),ze=V(kt,!0);z(kt),z(nt),oe(We=>{je=ve(Te,"",je,{background:a(w)}),Se(ze,We)},[()=>e.value?Jn(e.value)?"Solid":"Gradient":"None"]),f(ee,ge)};te(Ne,ee=>{a($e)?ee(Ve):ee(Qe,-1)})}z(Ee);var gt=F(Ee,2);{const ee=(ge,Te=J,je=J,nt=J,kt=J)=>{const ze=_(()=>a(n)===Te());var We=O(),Yt=E(We);ue(Yt,()=>tx,(_r,Xt)=>{Xt(_r,{get open(){return a(ze)},onOpenChange:Jt=>{Jt?kt()():a(ze)&&k(n,"none")},children:(Jt,rn)=>{var zr=Ox(),si=E(zr);ue(si,()=>rx,(mt,sn)=>{sn(mt,{class:"group flex w-full items-center gap-2 px-3 py-2 text-xs font-medium transition-colors hover:bg-muted/50 data-[state=open]:bg-muted/60",children:(Ni,ws)=>{var on=hx(),Bn=E(on);ue(Bn,je,(Kr,oi)=>{oi(Kr,{class:"size-3.5 shrink-0 text-muted-foreground group-data-[state=open]:text-foreground"})});var En=F(Bn,2),Fi=V(En,!0);z(En);var Er=F(En,2);xo(Er,{class:"size-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"}),oe(()=>Se(Fi,nt())),f(Ni,on)},$$slots:{default:!0}})});var nn=F(si,2);ue(nn,()=>nx,(mt,sn)=>{sn(mt,{children:(Ni,ws)=>{var on=Ix(),Bn=V(on);{var En=rr=>{},Fi=rr=>{var zt=fx(),ur=V(zt);Et(ur,20,()=>uv,jt=>jt,(jt,Ht)=>{{let It=_(()=>Jn(e.value)&&e.value===Ht);qu(jt,()=>Ht,()=>a(It),()=>Ht,()=>()=>S(Ht))}}),z(ur);var Rt=F(ur,2);nr(Rt,{for:"background-color",label:"Color",children:(jt,Ht)=>{{let It=_(()=>Jn(e.value)?e.value:"#4a90e2");pa(jt,{get value(){return a(It)},onchange:wt=>S(wt)})}},$$slots:{default:!0}}),z(zt),f(rr,zt)},Er=rr=>{var zt=Ex(),ur=V(zt);nr(ur,{for:"gradient-type",label:"Type",children:(Ke,dr)=>{Nn(Ke,{options:[{value:"linear",label:"Linear"},{value:"radial",label:"Radial"},{value:"conic",label:"Conic"}],root:{onValueChange:I},get value(){return a(h)},set value(_t){k(h,_t)}})},$$slots:{default:!0}});var Rt=F(ur,2);{var jt=Ke=>{nr(Ke,{for:"gradient-angle",label:"Angle",children:(dr,_t)=>{Ct(dr,{id:"gradient-angle",min:0,max:360,onchange:I,postFix:"deg",get value(){return a(g)},set value(ut){k(g,ut)}})},$$slots:{default:!0}})};te(Rt,Ke=>{(a(h)==="linear"||a(h)==="conic")&&Ke(jt)})}var Ht=F(Rt,2);{var It=Ke=>{In(Ke,{fields:[{for:"gradient-pos-x",labels:"X"},{for:"gradient-pos-y",labels:"Y"}],children:(dr,_t)=>{var ut=vx(),Mr=E(ut);Ct(Mr,{id:"gradient-pos-x",min:0,max:100,step:1,onchange:I,postFix:"%",get value(){return a(m)},set value(Tt){k(m,Tt)}});var Ot=F(Mr,2);Ct(Ot,{id:"gradient-pos-y",min:0,max:100,step:1,onchange:I,postFix:"%",get value(){return a(v)},set value(Tt){k(v,Tt)}}),f(dr,ut)},$$slots:{default:!0}})};te(Ht,Ke=>{(a(h)==="radial"||a(h)==="conic")&&Ke(It)})}var wt=F(Ht,2);{var jr=Ke=>{nr(Ke,{for:"gradient-shape",label:"Shape",children:(dr,_t)=>{Nn(dr,{options:[{value:"circle",label:"Circle"},{value:"ellipse",label:"Ellipse"}],root:{onValueChange:I},get value(){return a(y)},set value(ut){k(y,ut)}})},$$slots:{default:!0}})};te(wt,Ke=>{a(h)==="radial"&&Ke(jr)})}var ye=F(wt,2);Qi(ye,{});var N=F(ye,2);nr(N,{for:"gradient-stops",label:"Color Stops",children:(Ke,dr)=>{var _t=mx(),ut=V(_t);Mt(ut,{variant:"ghost",size:"sm",class:"w-full",onclick:M,children:(Ot,Tt)=>{var Tn=gx(),vn=E(Tn);Od(vn,{class:"mr-1 size-3"}),Fe(),f(Ot,Tn)},$$slots:{default:!0}});var Mr=F(ut,2);Et(Mr,17,()=>a(b),Si,(Ot,Tt,Tn)=>{In(Ot,{fields:[{for:"gradient-stop-color",labels:"Color"},{for:"gradient-stop-position",labels:"Position"}],children:(vn,Ps)=>{var Vn=px(),Wn=E(Vn);pa(Wn,{get value(){return a(Tt).color},onchange:Rr=>W(Tn,"color",Rr)});var ai=F(Wn,2);Ct(ai,{min:0,max:100,step:1,get value(){return a(Tt).position},onchange:Rr=>W(Tn,"position",Rr),postFix:"%"});var Fo=F(ai,2);{var qn=Rr=>{Mt(Rr,{variant:"outline",onclick:()=>L(Tn),get icon(){return Nd}})};te(Fo,Rr=>{a(b).length>2&&Rr(qn)})}f(vn,Vn)},$$slots:{default:!0}})}),z(_t),f(Ke,_t)},$$slots:{default:!0}});var ne=F(N,2);Qi(ne,{});var be=F(ne,2),He=V(be);In(He,{fields:[{for:"filter-blur",labels:"Blur"},{for:"filter-brightness",labels:"Brightness"}],children:(Ke,dr)=>{var _t=_x(),ut=E(_t);{let Ot=_(()=>a(P)?.blur??0);Ct(ut,{id:"filter-blur",min:0,max:50,step:1,get value(){return a(Ot)},onchange:Tt=>Y("blur",Tt),postFix:"px"})}var Mr=F(ut,2);{let Ot=_(()=>a(P)?.brightness??1);Ct(Mr,{id:"filter-brightness",min:0,max:2,step:.1,get value(){return a(Ot)},onchange:Tt=>Y("brightness",Tt)})}f(Ke,_t)},$$slots:{default:!0}});var it=F(He,2);In(it,{fields:[{for:"filter-contrast",labels:"Contrast"},{for:"filter-saturate",labels:"Saturation"}],children:(Ke,dr)=>{var _t=yx(),ut=E(_t);{let Ot=_(()=>a(P)?.contrast??1);Ct(ut,{id:"filter-contrast",min:0,max:2,step:.1,get value(){return a(Ot)},onchange:Tt=>Y("contrast",Tt)})}var Mr=F(ut,2);{let Ot=_(()=>a(P)?.saturate??1);Ct(Mr,{id:"filter-saturate",min:0,max:2,step:.1,get value(){return a(Ot)},onchange:Tt=>Y("saturate",Tt)})}f(Ke,_t)},$$slots:{default:!0}});var ft=F(it,2);In(ft,{fields:[{for:"filter-hue",labels:"Hue Rotate"},{for:"filter-opacity",labels:"Opacity"}],children:(Ke,dr)=>{var _t=bx(),ut=E(_t);{let Ot=_(()=>a(P)?.hueRotate??0);Ct(ut,{id:"filter-hue",min:0,max:360,step:1,get value(){return a(Ot)},onchange:Tt=>Y("hueRotate",Tt),postFix:"deg"})}var Mr=F(ut,2);{let Ot=_(()=>a(P)?.opacity??1);Ct(Mr,{id:"filter-opacity",min:0,max:1,step:.1,get value(){return a(Ot)},onchange:Tt=>Y("opacity",Tt)})}f(Ke,_t)},$$slots:{default:!0}});var Ut=F(ft,2);nr(Ut,{for:"filter-grain",label:"Grain",children:(Ke,dr)=>{{let _t=_(()=>a(P)?.grain??0);Ct(Ke,{id:"filter-grain",min:0,max:1,step:.1,get value(){return a(_t)},onchange:ut=>Y("grain",ut)})}},$$slots:{default:!0}});var $r=F(Ut,2);{var kn=Ke=>{Mt(Ke,{variant:"outline",size:"sm",class:"w-full",onclick:le,children:(dr,_t)=>{Fe();var ut=Ge("Reset Filters");f(dr,ut)},$$slots:{default:!0}})};te($r,Ke=>{a(se)&&Ke(kn)})}z(be);var Li=F(be,2);{var Bt=Ke=>{var dr=Px(),_t=E(dr);Qi(_t,{});var ut=F(_t,2),Mr=F(V(ut),2),Ot=V(Mr);nr(Ot,{for:"pattern-select",label:"Pattern",children:(vn,Ps)=>{{let Vn=_(()=>a(P)?.pattern??"none");Nn(vn,{get value(){return a(Vn)},options:[{value:"none",label:"None"},{value:"waves",label:"Waves"},{value:"dots",label:"Dots"},{value:"squares",label:"Squares"},{value:"grid",label:"Grid"},{value:"zigzag",label:"Zigzag"},{value:"hexagons",label:"Hexagons"}],root:{onValueChange:Wn=>{Y("pattern",Wn),Wn!=="none"&&(a(P)?.patternOpacity||Y("patternOpacity",.2),a(P)?.patternScale||Y("patternScale",1),a(P)?.patternRotation||Y("patternRotation",15),a(P)?.patternBlur||Y("patternBlur",0))}}})}},$$slots:{default:!0}});var Tt=F(Ot,2);{var Tn=vn=>{var Ps=Sx(),Vn=E(Ps);In(Vn,{fields:[{for:"pattern-scale",labels:"Scale"},{for:"pattern-rotation",labels:"Rotation"}],children:(ai,Fo)=>{var qn=xx(),Rr=E(qn);{let Gn=_(()=>a(P)?.patternScale??1);Ct(Rr,{id:"pattern-scale",min:.1,max:5,step:.1,get value(){return a(Gn)},onchange:Kn=>Y("patternScale",Kn)})}var Lo=F(Rr,2);{let Gn=_(()=>a(P)?.patternRotation??0);Ct(Lo,{id:"pattern-rotation",min:0,max:360,step:1,get value(){return a(Gn)},onchange:Kn=>Y("patternRotation",Kn),postFix:"deg"})}f(ai,qn)},$$slots:{default:!0}});var Wn=F(Vn,2);In(Wn,{fields:[{for:"pattern-opacity",labels:"Opacity"},{for:"pattern-blur",labels:"Blur"}],children:(ai,Fo)=>{var qn=wx(),Rr=E(qn);{let Gn=_(()=>a(P)?.patternOpacity??.5);Ct(Rr,{id:"pattern-opacity",min:0,max:1,step:.05,get value(){return a(Gn)},onchange:Kn=>Y("patternOpacity",Kn)})}var Lo=F(Rr,2);{let Gn=_(()=>a(P)?.patternBlur??0);Ct(Lo,{id:"pattern-blur",min:0,max:20,get value(){return a(Gn)},onchange:Kn=>Y("patternBlur",Kn),postFix:"px"})}f(ai,qn)},$$slots:{default:!0}}),f(vn,Ps)};te(Tt,vn=>{a(P)?.pattern&&a(P).pattern!=="none"&&vn(Tn)})}z(Mr),z(ut),f(Ke,dr)},Ss=_(()=>kr(e.value));te(Li,Ke=>{a(Ss)&&Ke(Bt)})}z(zt),f(rr,zt)},Kr=rr=>{var zt=kx(),ur=V(zt);nr(ur,{for:"preset-category",label:"Category",children:(jt,Ht)=>{{let It=_(()=>[{value:"all",label:"All"},...T.map(wt=>({value:wt,label:wt.charAt(0).toUpperCase()+wt.slice(1)}))]);Nn(jt,{get options(){return a(It)},get value(){return a(x)},set value(wt){k(x,wt,!0)}})}},$$slots:{default:!0}});var Rt=F(ur,2);Et(Rt,21,()=>a(R),jt=>jt.id,(jt,Ht)=>{{let It=_(()=>Pa(a(Ht).value)),wt=_(()=>C(a(Ht)));qu(jt,()=>a(It),()=>a(wt),()=>a(Ht).name,()=>()=>j(a(Ht)))}}),z(Rt),z(zt),f(rr,zt)},oi=rr=>{var zt=Rx(),ur=V(zt);Et(ur,21,()=>c,It=>It.id,(It,wt)=>{const jr=_(()=>a(i)===a(wt).id);var ye=Tx(),N=V(ye),ne=V(N,!0);z(N);var be=F(N,2),He=V(be,!0);z(be),z(ye),oe(it=>{gr(ye,1,it),Se(ne,a(wt).label),Se(He,a(wt).description)},[()=>Gs(["flex flex-col items-start gap-1 rounded-lg border p-3 text-left transition-all hover:border-primary/50",a(jr)?"border-primary bg-primary/5":"border-border"].join(" "))]),Ye("click",ye,()=>p(a(wt).id)),f(It,ye)}),z(ur);var Rt=F(ur,2);Qi(Rt,{});var jt=F(Rt,2);In(jt,{fields:[{for:"dynamic-speed",labels:"Speed"},{for:"dynamic-intensity",labels:"Intensity"}],children:(It,wt)=>{var jr=Cx(),ye=E(jr);Ct(ye,{id:"dynamic-speed",min:0,max:5,step:.1,onchange:d,get value(){return a(s)},set value(ne){k(s,ne)}});var N=F(ye,2);Ct(N,{id:"dynamic-intensity",min:0,max:1,step:.05,onchange:d,get value(){return a(o)},set value(ne){k(o,ne)}}),f(It,jr)},$$slots:{default:!0}});var Ht=F(jt,2);nr(Ht,{for:"dynamic-color",label:"Color Override",children:(It,wt)=>{var jr=Mx(),ye=V(jr);{let He=_(()=>a(l)||"#6366f1");pa(ye,{get value(){return a(He)},onchange:it=>{k(l,it),d()},showInput:!1})}var N=F(ye,2);{var ne=He=>{Mt(He,{variant:"ghost",size:"sm",class:"h-7 text-xs text-muted-foreground",onclick:()=>{k(l,""),d()},children:(it,ft)=>{Fe();var Ut=Ge("Use project color");f(it,Ut)},$$slots:{default:!0}})},be=He=>{var it=Ax();f(He,it)};te(N,He=>{a(l)?He(ne):He(be,-1)})}z(jr),f(It,jr)},$$slots:{default:!0}}),z(zt),f(rr,zt)};te(Bn,rr=>{Te()==="none"?rr(En):Te()==="solid"?rr(Fi,1):Te()==="gradient"?rr(Er,2):Te()==="presets"?rr(Kr,3):Te()==="dynamic"&&rr(oi,4)})}z(on),f(Ni,on)},$$slots:{default:!0}})}),f(Jt,zr)},$$slots:{default:!0}})}),f(ge,We)};var pt=V(gt);{var rt=ge=>{var Te=Nx(),je=V(Te);ml(je,{class:"size-3.5 shrink-0 text-muted-foreground"}),Fe(2),z(Te),oe(nt=>gr(Te,1,nt),[()=>Gs(vt("flex w-full items-center gap-2 px-3 py-2 text-xs font-medium transition-colors hover:bg-muted/50",a(n)==="none"&&"bg-muted/60"))]),Ye("click",Te,()=>{k(n,"none"),e.onchange(void 0)}),f(ge,Te)},ke=_(()=>e.optional&&t("none"));te(pt,ge=>{a(ke)&&ge(rt)})}var Ie=F(pt,2);{var et=ge=>{ee(ge,()=>"solid",()=>Np,()=>"Solid",()=>()=>{k(n,"solid"),Jn(e.value)||S("#4a90e2")})},lr=_(()=>t("solid"));te(Ie,ge=>{a(lr)&&ge(et)})}var Dt=F(Ie,2);{var cr=ge=>{ee(ge,()=>"dynamic",()=>El,()=>"Dynamic",()=>()=>{k(n,"dynamic"),hr(e.value)||d()})},tr=_(()=>t("dynamic"));te(Dt,ge=>{a(tr)&&ge(cr)})}var qr=F(Dt,2);{var Gr=ge=>{ee(ge,()=>"gradient",()=>Sp,()=>"Gradient",()=>()=>{k(n,"gradient"),kr(e.value)||I()})},tn=_(()=>t("gradient"));te(qr,ge=>{a(tn)&&ge(Gr)})}var mr=F(qr,2);{var Hn=ge=>{ee(ge,()=>"presets",()=>tm,()=>"Presets",()=>()=>k(n,"presets"))},Un=_(()=>t("presets"));te(mr,ge=>{a(Un)&&ge(Hn)})}z(gt)}f(r,Ce),B()}en(["click"]);function Dx(r,e){Lx(r,{get value(){return e.value},get onchange(){return e.onChange},allowedTabs:["solid","gradient","presets"]})}var zx=H("<!> ",1),jx=H('<p class="text-xs text-muted-foreground">Source layer not found</p>'),Hx=H('<p class="text-xs text-muted-foreground">No source layer assigned</p>');function Ux(r,e){U(e,!0);const t=_(jn),n=_(()=>a(t).project),i=_(()=>e.value),s=_(()=>a(i)?a(n).state.layers.find(h=>h.id===a(i)):null);function o(){a(i)&&(a(n).selectLayer(a(i)),a(t).setActiveSidebarPanel("layer"))}var l=O(),c=E(l);{var u=h=>{Mt(h,{variant:"outline",size:"sm",class:"w-full text-xs",onclick:o,children:(g,m)=>{var v=zx(),y=E(v);Wd(y,{class:"mr-1 size-3"});var b=F(y);oe(()=>Se(b,` Source: ${a(s).name??""}`)),f(g,v)},$$slots:{default:!0}})},d=h=>{var g=jx();f(h,g)},p=h=>{var g=Hx();f(h,g)};te(c,h=>{a(s)?h(u):a(i)?h(d,1):h(p,-1)})}f(r,l),B()}const Gu=.3;function Ku(r){return r.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"")}function Bx(r){return r.trim().split(/\s+/).filter(Boolean)}function ma(r){return r.map(e=>e.word).join(" ")}function Vx(r,e){const t=Bx(e),n=t.length;if(n===0)return[];const i=r.length;if(i===0){let m=0;return t.map(v=>{const y=m,b=m+Gu;return m=b,{word:v,start:y,end:b}})}const s=Array.from({length:i+1},()=>new Array(n+1).fill(0)),o=r.map(m=>Ku(m.word)),l=t.map(Ku);for(let m=1;m<=i;m++)for(let v=1;v<=n;v++)s[m][v]=o[m-1]===l[v-1]?s[m-1][v-1]+1:Math.max(s[m-1][v],s[m][v-1]);const c=new Array(n);let u=i,d=n;for(;u>0&&d>0;)o[u-1]===l[d-1]?(c[d-1]={word:t[d-1],start:r[u-1].start,end:r[u-1].end},u--,d--):s[u-1][d]>=s[u][d-1]?u--:d--;const p=r[0].start,h=r[i-1].end;let g=-1;for(let m=0;m<=n;m++){if(m<n&&!c[m]){g<0&&(g=m);continue}if(g<0)continue;const v=g>0?c[g-1].end:p,y=m<n?c[m].start:h,b=Math.max(0,y-v),P=t.slice(g,m);if(b<=0){let w=v;for(let x=0;x<P.length;x++){const T=w,R=w+Gu;c[g+x]={word:P[x],start:T,end:R},w=R}}else{const w=P.reduce((T,R)=>T+Math.max(1,R.length),0);let x=v;for(let T=0;T<P.length;T++){const R=Math.max(1,P[T].length),C=b*R/w,S=x,A=T===P.length-1?y:x+C;c[g+T]={word:P[T],start:S,end:A},x=A}}g=-1}return c}var Wx=H("<!> <!>",1),qx=H(`<div class="rounded border border-dashed p-4 text-center text-sm text-muted-foreground">No captions yet. Generate them from an audio or video layer, or switch to Advanced to add
3
3
  words manually.</div>`),Gx=H("<!> <!>",1),Kx=H(`<!> <p class="text-[11px] text-muted-foreground">Unchanged words keep their timing. New words are fit proportionally between the surrounding
4
4
  anchors. Use Advanced to fine-tune individual timestamps.</p> <!>`,1),$x=H("<!> <!> <!> <!>",1),Yx=H('<div class="rounded border border-dashed p-4 text-center text-sm text-muted-foreground">No captions yet. Generate them using AI or add words manually.</div>'),Xx=H('<div class="space-y-2"><!> <!></div>');function Jx(r,e){U(e,!0);let t=_(()=>Array.isArray(e.value)?e.value:[]),n=Z("script"),i=Z(""),s=Z(""),o=Z(!1);qt(()=>{const w=ma(a(t));!a(o)&&w!==a(s)&&(k(i,w,!0),k(s,w,!0))});function l(){k(o,!1);const w=Vx(a(t),a(i));k(s,ma(w),!0),k(i,a(s),!0),e.onChange(w)}function c(){k(o,!1),k(i,ma(a(t)),!0),k(s,a(i),!0)}function u(w,x){const T=[...a(t)];T[w]={...T[w],...x},e.onChange(T)}function d(w){const x=a(t).filter((T,R)=>R!==w);e.onChange(x)}function p(w,x){const T=w>0?a(t)[w-1]:null,R=w<a(t).length-1?a(t)[w+1]:null,C=a(t)[w];return x==="start"?{min:T?T.end:0,max:C.end-.01}:{min:C.start+.01,max:R?R.start:void 0}}const h=_(()=>a(o)&&a(i)!==a(s));var g=Xx(),m=V(g);ue(m,()=>Bs,(w,x)=>{x(w,{class:"w-full",children:(T,R)=>{var C=Wx(),S=E(C);{let I=_(()=>a(n)==="script"?"default":"outline");Mt(S,{get variant(){return a(I)},size:"sm",class:"flex-1 text-xs",onclick:()=>k(n,"script"),get icon(){return jp},children:(M,L)=>{Fe();var W=Ge("Script");f(M,W)},$$slots:{default:!0}})}var A=F(S,2);{let I=_(()=>a(n)==="advanced"?"default":"outline");Mt(A,{get variant(){return a(I)},size:"sm",class:"flex-1 text-xs",onclick:()=>k(n,"advanced"),get icon(){return im},children:(M,L)=>{Fe();var W=Ge("Advanced");f(M,W)},$$slots:{default:!0}})}f(T,C)},$$slots:{default:!0}})});var v=F(m,2);{var y=w=>{var x=O(),T=E(x);{var R=S=>{var A=qx();f(S,A)},C=S=>{var A=Kx(),I=E(A);kl(I,{oninput:()=>k(o,!0),onblur:l,placeholder:"Edit the caption text...",class:"min-h-[140px] font-mono text-xs leading-relaxed",get value(){return a(i)},set value(W){k(i,W,!0)}});var M=F(I,4);{var L=W=>{var j=O(),Y=E(j);ue(Y,()=>Bs,(le,se)=>{se(le,{class:"w-full",children:(Q,ce)=>{var he=Gx(),ae=E(he);Mt(ae,{variant:"outline",size:"sm",class:"flex-1 text-xs",onclick:c,children:(ie,Pe)=>{Fe();var we=Ge("Cancel");f(ie,we)},$$slots:{default:!0}});var re=F(ae,2);Mt(re,{variant:"default",size:"sm",class:"flex-1 text-xs",onclick:l,children:(ie,Pe)=>{Fe();var we=Ge("Apply");f(ie,we)},$$slots:{default:!0}}),f(Q,he)},$$slots:{default:!0}})}),f(W,j)};te(M,W=>{a(h)&&W(L)})}f(S,A)};te(T,S=>{a(t).length===0?S(R):S(C,-1)})}f(w,x)},b=w=>{var x=O(),T=E(x);Et(T,17,()=>a(t),Si,(R,C,S)=>{const A=_(()=>p(S,"start")),I=_(()=>p(S,"end"));var M=O(),L=E(M);ue(L,()=>Bs,(W,j)=>{j(W,{children:(Y,le)=>{var se=$x(),Q=E(se);ue(Q,()=>xf,(re,ie)=>{ie(re,{class:"flex-1",children:(Pe,we)=>{var De=O(),Le=E(De);ue(Le,()=>wf,(Ce,Ee)=>{Ee(Ce,{get value(){return a(C).word},oninput:Ne=>u(S,{word:Ne.currentTarget.value}),placeholder:"Word",class:"h-8 text-sm"})}),f(Pe,De)},$$slots:{default:!0}})});var ce=F(Q,2);Ct(ce,{id:`start-${S}`,get value(){return a(C).start},step:.01,get min(){return a(A).min},get max(){return a(A).max},onchange:re=>u(S,{start:re}),postFix:"s"});var he=F(ce,2);Ct(he,{id:`end-${S}`,get value(){return a(C).end},step:.01,get min(){return a(I).min},get max(){return a(I).max},onchange:re=>u(S,{end:re}),postFix:"s"});var ae=F(he,2);Mt(ae,{variant:"outline",size:"icon",onclick:()=>d(S),title:"Delete word",get icon(){return Nd}}),f(Y,se)},$$slots:{default:!0}})}),f(R,M)}),f(w,x)},P=w=>{var x=Yx();f(w,x)};te(v,w=>{a(n)==="script"?w(y):a(t).length>0?w(b,1):w(P,-1)})}z(g),f(r,g),B()}const Pf={continuous:{linear:"Linear","ease-in":"Ease In","ease-out":"Ease Out","ease-in-out":"Ease In-Out","ease-in-quad":"Ease In (Quad)","ease-out-quad":"Ease Out (Quad)","ease-in-out-quad":"Ease In-Out (Quad)","ease-in-cubic":"Ease In (Cubic)","ease-out-cubic":"Ease Out (Cubic)","ease-in-out-cubic":"Ease In-Out (Cubic)","ease-in-quart":"Ease In (Quart)","ease-out-quart":"Ease Out (Quart)","ease-in-out-quart":"Ease In-Out (Quart)","ease-in-quint":"Ease In (Quint)","ease-out-quint":"Ease Out (Quint)","ease-in-out-quint":"Ease In-Out (Quint)","ease-in-sine":"Ease In (Sine)","ease-out-sine":"Ease Out (Sine)","ease-in-out-sine":"Ease In-Out (Sine)","ease-in-expo":"Ease In (Expo)","ease-out-expo":"Ease Out (Expo)","ease-in-out-expo":"Ease In-Out (Expo)","ease-in-circ":"Ease In (Circ)","ease-out-circ":"Ease Out (Circ)","ease-in-out-circ":"Ease In-Out (Circ)","ease-in-back":"Ease In (Back)","ease-out-back":"Ease Out (Back)","ease-in-out-back":"Ease In-Out (Back)","ease-in-bounce":"Ease In (Bounce)","ease-out-bounce":"Ease Out (Bounce)","ease-in-out-bounce":"Ease In-Out (Bounce)","ease-in-elastic":"Ease In (Elastic)","ease-out-elastic":"Ease Out (Elastic)","ease-in-out-elastic":"Ease In-Out (Elastic)"},discrete:{"step-end":"Step End","step-start":"Step Start","step-mid":"Step Mid"},quantized:{integer:"Integer","snap-grid":"Snap Grid"},text:{"char-reveal":"Char Reveal","word-reveal":"Word Reveal"}};function Zx(r,e){const t=e.includes(".")?e.split(".").pop():e,n=Df(r),s=fd(n).find(l=>l.name===t);if(!s)return["continuous"];const o=s.interpolationFamily;return Array.isArray(o)?o:[o]}function KP(r){const e=[];for(const t of r){const n=Pf[t];for(const[i,s]of Object.entries(n))e.push({family:t,strategy:i,label:s})}return e}function $P(r,e){switch(Zx(r,e)[0]){case"continuous":return{family:"continuous",strategy:"ease-in-out"};case"discrete":return{family:"discrete",strategy:"step-end"};case"quantized":return{family:"quantized",strategy:"integer"};case"text":return{family:"text",strategy:"char-reveal"};default:return{family:"continuous",strategy:"ease-in-out"}}}var Qx=H('<div class="sticky top-0 z-10 flex items-center justify-center border-b border-border bg-background p-4"><div class="relative h-20 w-20 overflow-hidden rounded border border-border"><svg class="h-full w-full" preserveAspectRatio="none"><line x1="0" y1="100" x2="100" y2="100" stroke="currentColor" opacity="0.1"></line><line x1="0" y1="0" x2="100" y2="0" stroke="currentColor" opacity="0.1"></line><line x1="0" y1="0" x2="0" y2="100" stroke="currentColor" opacity="0.1"></line><line x1="100" y1="0" x2="100" y2="100" stroke="currentColor" opacity="0.1"></line><path fill="none" stroke="currentColor" stroke-width="2" class="text-primary"></path><circle r="3" fill="currentColor" class="text-primary"></circle></svg></div></div>');function e2(r,e){U(e,!0);const t=_(()=>{const u=bi(e.strategy),d=50,p=[];for(let T=0;T<=d;T++){const R=T/d;p.push(u(R))}const h=Math.min(...p),g=Math.max(...p),m=.1,v=g-h,y=h-v*m,b=g+v*m,P=b-y,w=[];for(let T=0;T<=d;T++){const C=T/d*100,A=100-(p[T]-y)/P*100;w.push([C,A])}return{path:w.map((T,R)=>R===0?`M ${T[0]} ${T[1]}`:`L ${T[0]} ${T[1]}`).join(" "),viewBox:"0 0 100 100",minY:y,maxY:b}}),n=_(()=>{const d=bi(e.strategy)(e.progress),{minY:p,maxY:h}=a(t),g=(d-p)/(h-p)*100;return{x:e.progress*100,y:100-g}});var i=Qx(),s=V(i),o=V(s),l=F(V(o),4),c=F(l);z(o),z(s),z(i),oe(()=>{Re(o,"viewBox",a(t).viewBox),Re(l,"d",a(t).path),Re(c,"cx",a(n).x),Re(c,"cy",a(n).y)}),f(r,i),B()}var t2=H("<!> <!>",1),r2=H("<!> <!>",1);function n2(r,e){U(e,!0);let t=Z(null),n=Z(0),i=null;const s=Object.entries(Pf.continuous).map(([h,g])=>({strategy:h,label:g})),o=_(()=>s.find(h=>h.strategy===a(t)));function l(h){k(t,h,!0),k(n,0);const g=performance.now(),m=1e3;function v(y){const b=y-g;k(n,b%m/m),i=requestAnimationFrame(v)}i=requestAnimationFrame(v)}function c(){k(t,null),k(n,0),i!==null&&(cancelAnimationFrame(i),i=null)}function u(h){h&&(e.onChange(h),c())}qt(()=>()=>{c()});var d=O(),p=E(d);ue(p,()=>Eo,(h,g)=>{g(h,{type:"single",get value(){return e.value},onValueChange:u,children:(m,v)=>{var y=r2(),b=E(y);ue(b,()=>To,(w,x)=>{x(w,{class:"w-full flex-1",children:(T,R)=>{Fe();var C=Ge();oe(S=>Se(C,S),[()=>s.find(S=>S.strategy===e.value)?.label??"Select easing"]),f(T,C)},$$slots:{default:!0}})});var P=F(b,2);ue(P,()=>ko,(w,x)=>{x(w,{class:"max-h-[calc(100vh-20rem)] p-0",onmouseleave:c,align:"start",children:(T,R)=>{var C=t2(),S=E(C);{var A=M=>{e2(M,{get strategy(){return a(o).strategy},get progress(){return a(n)}})};te(S,M=>{a(o)&&M(A)})}var I=F(S,2);Et(I,17,()=>s,M=>M.strategy,(M,L)=>{var W=O(),j=E(W);ue(j,()=>hs,(Y,le)=>{le(Y,{get value(){return a(L).strategy},onmouseenter:()=>l(a(L).strategy),children:(se,Q)=>{Fe();var ce=Ge();oe(()=>Se(ce,a(L).label)),f(se,ce)},$$slots:{default:!0}})}),f(M,W)}),f(T,C)},$$slots:{default:!0}})}),f(m,y)},$$slots:{default:!0}})}),f(r,d),B()}function Ef(r,e){const t=Cr.get(r)??{};Cr.add(r,{...t,widget:"custom",component:e})}function i2(r){Ef(r,No)}function Oi(r,e){Ef(r,e)}i2(fv.shape.fontFamily);const s2={...vv,icon:El};var o2=H('<button type="button"> </button>');function a2(r,e){U(e,!0);const t=_(()=>e.width/100*e.project.width),n=_(()=>e.height/100*e.project.width),i=_(()=>e.fontSize/100*e.project.width),s=_(()=>e.borderRadius/100*e.project.width),o=_(()=>{let c="flex items-center justify-center font-semibold transition-all active:scale-95";return e.shadow&&(c+=" shadow-lg hover:shadow-xl"),e.style==="solid"?c+=" hover:opacity-90":e.style==="outline"?c+=" hover:bg-opacity-10":e.style==="ghost"&&(c+=" hover:bg-opacity-5"),c}),l=_(()=>e.style==="solid"?{backgroundColor:e.backgroundColor,color:e.textColor,border:"none"}:e.style==="outline"?{backgroundColor:"transparent",color:e.borderColor,border:`2px solid ${e.borderColor}`}:{backgroundColor:"transparent",color:e.borderColor,border:"none"});_s(r,{get fontFamily(){return e.fontFamily},children:(c,u)=>{var d=o2();let p;var h=V(d,!0);z(d),oe(()=>{gr(d,1,Gs(a(o))),p=ve(d,"",p,{width:`${a(t)??""}px`,height:`${a(n)??""}px`,"font-size":`${a(i)??""}px`,"font-weight":e.fontWeight,"border-radius":`${a(s)??""}px`,"background-color":a(l).backgroundColor,color:a(l).color,border:a(l).border}),Se(h,e.text)}),f(c,d)},$$slots:{default:!0}}),B()}const l2=Object.freeze(Object.defineProperty({__proto__:null,default:a2,meta:s2},Symbol.toStringTag,{value:"Module"}));var c2=H('<span class="size-1.5 rounded-full bg-primary"></span>'),u2=H('<button type="button"><div class="relative overflow-hidden"><div class="flex h-full w-full items-center justify-center"><!></div></div> <div><span class="text-[10px] font-medium"> </span> <!></div></button>'),d2=H('<div class="space-y-2"><!> <div class="grid grid-cols-2 gap-1.5"></div></div>');function h2(r,e){U(e,!0);const t=_(jn),n=_(()=>a(t).project),i=200,s=52,o=14,l=[{word:"the",start:0,end:.4},{word:"quick",start:.5,end:.9},{word:"brown",start:1,end:1.4},{word:"fox",start:1.5,end:1.9}],c=1.2,u={id:"preview",enterTime:0,exitTime:10},d=[{id:"default",label:"Default",bg:"#1a1a1a",props:{textColor:"#ffffff",bgColor:"#000000b3",fontWeight:"700",transitionEffects:["fade"],transitionDuration:100,textEffect:"outline",textEffectColor:"#000000e6",textEffectSize:1}},{id:"fire",label:"Fire",bg:"#0d0d0d",props:{textColor:"#ffffff",bgColor:"#e85d04",fontWeight:"900",transitionEffects:["fade","scale"],transitionDuration:80,textEffect:"shadow",textEffectColor:"#e85d0499",textEffectSize:8}},{id:"neon",label:"Neon",bg:"#0a0a0a",props:{textColor:"#00ff88",bgColor:"#00ff882e",fontWeight:"700",transitionEffects:["fade","scale"],transitionDuration:120,textEffect:"shadow",textEffectColor:"#00ff88b3",textEffectSize:12}},{id:"tiktok",label:"TikTok",bg:"#111111",props:{textColor:"#ffffff",bgColor:"#ff0050",fontWeight:"900",transitionEffects:["fade","scale","slide-up"],transitionDuration:100,textEffect:"outline",textEffectColor:"#000000e6",textEffectSize:2}},{id:"clean",label:"Clean",bg:"#e8e8e8",props:{textColor:"#1a1a1a",bgColor:"#ffffff",fontWeight:"600",transitionEffects:["fade"],transitionDuration:150,textEffect:"outline",textEffectColor:"#ffffffcc",textEffectSize:1}},{id:"gold",label:"Gold",bg:"#0a0800",props:{textColor:"#ffd700",bgColor:"#ffd7002e",fontWeight:"800",transitionEffects:["fade","scale"],transitionDuration:100,textEffect:"shadow",textEffectColor:"#ffd70080",textEffectSize:10}},{id:"minimal",label:"Minimal",bg:"#1a1a1a",props:{textColor:"#ffffff",bgColor:"#ffffff00",fontWeight:"400",transitionEffects:["fade"],transitionDuration:200,textEffect:"outline",textEffectColor:"#000000e6",textEffectSize:2}},{id:"purple",label:"Purple",bg:"#0f0a1e",props:{textColor:"#ffffff",bgColor:"#7c3aed",fontWeight:"700",transitionEffects:["fade","slide-up"],transitionDuration:120,textEffect:"outline",textEffectColor:"#1c1824",textEffectSize:2}}],p=_(()=>{const y=e.layer.props;return d.find(b=>b.props.bgColor===y.bgColor&&b.props.textColor===y.textColor&&b.props.fontWeight===y.fontWeight&&JSON.stringify(b.props.transitionEffects)===JSON.stringify(y.transitionEffects))?.id??null});function h(y){a(n).updateLayer(e.layer.id,{props:{...e.layer.props,...y.props}})}var g=d2(),m=V(g);Jl(m,{children:(y,b)=>{Fe();var P=Ge("Presets");f(y,P)}});var v=F(m,2);Et(v,21,()=>d,y=>y.id,(y,b)=>{const P=_(()=>a(p)===a(b).id);var w=u2(),x=V(w);let T;var R=V(x),C=V(R);{let W=_(()=>a(b).props.fontWeight??"700"),j=_(()=>a(b).props.textColor??"#ffffff"),Y=_(()=>a(b).props.bgColor??"rgba(0,0,0,0.7)"),le=_(()=>a(b).props.transitionEffects??["fade"]),se=_(()=>a(b).props.transitionDuration??100),Q=_(()=>a(b).props.textEffect??"none"),ce=_(()=>a(b).props.textEffectColor??"rgba(0,0,0,0.9)"),he=_(()=>a(b).props.textEffectSize??2);Tf(C,{width:i,height:s,_aspectRatioLocked:!1,_aspectRatio:i/s,mode:"highlight",blockGap:1,maxWordsPerBlock:10,get words(){return l},originalScript:"",fontSize:o,get fontFamily(){return a(b).props.fontFamily},get fontWeight(){return a(W)},get textColor(){return a(j)},get bgColor(){return a(Y)},get transitionEffects(){return a(le)},get transitionDuration(){return a(se)},get textEffect(){return a(Q)},get textEffectColor(){return a(ce)},get textEffectSize(){return a(he)},get layer(){return u},currentTime:c,get project(){return a(n).state}})}z(R),z(x);var S=F(x,2),A=V(S),I=V(A,!0);z(A);var M=F(A,2);{var L=W=>{var j=c2();f(W,j)};te(M,W=>{a(P)&&W(L)})}z(S),z(w),oe(()=>{gr(w,1,`group flex flex-col overflow-hidden rounded-md border transition-all hover:border-primary/60 ${a(P)?"border-primary ring-1 ring-primary":"border-border"}`),T=ve(x,"",T,{width:"200px",height:"52px",background:a(b).bg}),gr(S,1,`flex items-center justify-between border-t border-border px-2 py-1 ${a(P)?"bg-primary/5":"bg-card"}`),Se(I,a(b).label)}),Ye("click",w,()=>h(a(b))),f(y,w)}),z(v),z(g),f(r,g),B()}en(["click"]);const mn={duration:300,effects:["fade"],easing:"ease-out",scaleFrom:0,slideDistance:8,blurAmount:10,colorFrom:void 0,colorTo:void 0,expandOnReveal:!1};class kf{#e;get config(){return a(this.#e)}set config(e){k(this.#e,e)}#t=Z(or([]));get fragments(){return a(this.#t)}set fragments(e){k(this.#t,e,!0)}appearedAt=new Xv;prevValue="";isFirstUpdate=!0;constructor(e={}){this.#e=_(()=>({duration:e.duration??mn.duration,effects:e.effects??mn.effects,easing:e.easing??mn.easing,scaleFrom:e.scaleFrom??mn.scaleFrom,slideDistance:e.slideDistance??mn.slideDistance,blurAmount:e.blurAmount??mn.blurAmount,colorFrom:e.colorFrom??mn.colorFrom,colorTo:e.colorTo??mn.colorTo,expandOnReveal:e.expandOnReveal??mn.expandOnReveal}))}update(e,t){const n=this.prevValue;if(n===e&&!this.isFirstUpdate){this.rebuildFragments(e,t);return}if(this.prevValue=e,this.isFirstUpdate){this.isFirstUpdate=!1,this.fragments=e?[{text:e,progress:1,linearProgress:1}]:[];return}const i=f2(n,e);if(e.length<n.length||i<n.length)for(const[s]of this.appearedAt)s>=e.length&&this.appearedAt.delete(s);for(let s=i;s<e.length;s++)this.appearedAt.has(s)||this.appearedAt.set(s,t);this.rebuildFragments(e,t)}rebuildFragments(e,t){const n=[],i=bi(this.config.easing);let s=0;for(;s<e.length;){const o=this.appearedAt.get(s);let l=s+1;for(;l<e.length&&this.appearedAt.get(l)===o;)l++;const c=e.substring(s,l);let u,d;if(o===void 0)u=1,d=1;else{const p=t-o,h=this.config.duration/1e3;d=h>0?Math.min(1,Math.max(0,p/h)):1,u=i(d)}n.push({text:c,progress:u,linearProgress:d}),s=l}this.fragments=n}get isAnimating(){return this.fragments.some(e=>e.progress<1)}getOpacity(e){return this.config.effects.includes("fade")?e.linearProgress:1}getScale(e){if(!this.config.effects.includes("scale"))return 1;const t=this.config.scaleFrom;return t+(1-t)*e.linearProgress}getTranslateY(e){return this.config.effects.includes("slide-up")?this.config.slideDistance*(1-e.progress):this.config.effects.includes("slide-down")?-this.config.slideDistance*(1-e.progress):0}getTranslateX(e){return this.config.effects.includes("slide-right")?-this.config.slideDistance*(1-e.progress):this.config.effects.includes("slide-left")?this.config.slideDistance*(1-e.progress):0}getBlur(e){return this.config.effects.includes("blur")?this.config.blurAmount*(1-e.linearProgress):0}getColor(e){if(!this.config.colorFrom||!this.config.colorTo)return;if(e.linearProgress>=1)return this.config.colorTo;const t=St(this.config.colorFrom),n=St(this.config.colorTo);if(!t.isValid()||!n.isValid())return;const i=t.toRgb(),s=n.toRgb(),o=e.linearProgress,l=Math.round(i.r+(s.r-i.r)*o),c=Math.round(i.g+(s.g-i.g)*o),u=Math.round(i.b+(s.b-i.b)*o),d=i.a+(s.a-s.a)*o;return St({r:l,g:c,b:u,a:d}).toHex()}getStyle(e){if(e.linearProgress>=1)return"";const t=[],n=[],i=[],s=this.getOpacity(e);s<1&&t.push(`opacity:${s.toFixed(3)}`);const o=this.getScale(e);o!==1&&n.push(`scale(${o.toFixed(3)})`);const l=this.getTranslateX(e),c=this.getTranslateY(e);(l!==0||c!==0)&&n.push(`translate(${l.toFixed(1)}px, ${c.toFixed(1)}px)`);const u=this.getBlur(e);u>0&&i.push(`blur(${u.toFixed(1)}px)`);const d=this.getColor(e);return d&&t.push(`color:${d}`),n.length>0&&t.push(`transform:${n.join(" ")}`),i.length>0&&t.push(`filter:${i.join(" ")}`),this.config.expandOnReveal&&t.push(`width:calc-size(auto, size * ${e.linearProgress.toFixed(3)})`),t.join(";")}reset(){this.fragments=[],this.appearedAt.clear(),this.prevValue="",this.isFirstUpdate=!0}progressFromTime(e,t){const n=e-t,i=this.config.duration/1e3,s=i>0?Math.min(1,Math.max(0,n/i)):1;return bi(this.config.easing)(s)}fragmentFromTime(e,t,n){const i=t-n,s=this.config.duration/1e3,o=s>0?Math.min(1,Math.max(0,i/s)):1,c=bi(this.config.easing)(o);return{text:e,progress:c,linearProgress:o}}}function f2(r,e){const t=Math.min(r.length,e.length);let n=0;for(;n<t&&r[n]===e[n];)n++;return n}Oi(dl.shape.sourceLayerId,Ux);Oi(dl.shape.words,Jx);Oi(dl.shape.fontFamily,No);const v2={...ud,icon:Cp,customPropertyComponents:{preset:{get component(){return h2}}}};var g2=H('<span class="inline-block rounded whitespace-pre"> </span>'),p2=H('<div class="flex flex-wrap content-center items-center justify-center"></div>'),m2=H('<div class="flex items-center justify-center"><span class="inline-block rounded whitespace-pre"> </span></div>'),_2=H('<span class="inline-block rounded whitespace-pre"> </span>'),y2=H('<div class="flex flex-wrap content-center items-center justify-center"></div>'),b2=H('<div class="flex items-center justify-center"><p class="rounded text-center leading-relaxed"> </p></div>');function Tf(r,e){U(e,!0);const t=_(()=>e.width/100*e.project.width),n=_(()=>e.height/100*e.project.width),i=_(()=>(e.fontSize??48)/100*e.project.width),s=_(()=>gv.includes(e.mode)?e.mode:"highlight"),o=new kf({get duration(){return e.transitionDuration??300},get effects(){return e.transitionEffects??["fade"]},scaleFrom:.85}),l=_(()=>{const P=e.layer.enterTime??0;return e.currentTime-P}),c=_(()=>{if(!e.words||e.words.length===0)return[];const P=e.blockGap??1,w=e.maxWordsPerBlock??10,x=[];let T=null;if(e.words.forEach((R,C)=>{const S=C>0?e.words[C-1]:null,A=S?R.start-S.end:0;T?A>P||T.words.length>=w?(x.push({id:x.length,start:T.start,end:T.end,text:T.words.join(" ")}),T={start:R.start,end:R.end,words:[R.word]}):(T.words.push(R.word),T.end=R.end):T={start:R.start,end:R.end,words:[R.word]}}),T){const R=T;x.push({id:x.length,start:R.start,end:R.end,text:R.words.join(" ")})}return x}),u=_(()=>a(c).length===0?-1:a(c).findIndex(P=>a(l)>=P.start&&a(l)<P.end)),d=_(()=>{if(!e.words||e.words.length===0||a(c).length===0)return[];const P=a(c)[a(u)];return P?e.words.filter(w=>w.start>=P.start&&w.start<P.end):[]}),p=_(()=>a(d).filter(P=>P.start<=a(l))),h=_(()=>!e.words||e.words.length===0?null:e.words.find(P=>a(l)>=P.start&&a(l)<P.end)??null),g=_(()=>e.textEffectColor??"rgba(0,0,0,0.9)"),m=_(()=>(e.textEffectSize??.16)/100*e.project.width);function v(P,w){const x=Math.max(8,Math.round(P*6)),T=[];for(let R=0;R<x;R++){const C=R/x*Math.PI*2,S=Math.round(Math.cos(C)*P*10)/10,A=Math.round(Math.sin(C)*P*10)/10;T.push(`${S}px ${A}px 0 ${w}`)}return T.join(", ")}const y=_(()=>e.textEffect==="shadow"?`0 0 ${a(m)}px ${a(g)}, 0 1px ${a(m)*.5}px ${a(g)}`:e.textEffect==="outline"?v(a(m),a(g)):"none");function b(P){return o.fragmentFromTime("",a(l),P)}_s(r,{get fontFamily(){return e.fontFamily},children:(P,w)=>{var x=O(),T=E(x);{var R=I=>{var M=p2();let L;Et(M,21,()=>a(d),Si,(W,j)=>{let Y=()=>a(j).word,le=()=>a(j).start,se=()=>a(j).end;const Q=_(()=>a(l)>=le()&&a(l)<se()),ce=_(()=>a(Q)&&e.transitionEffects&&e.transitionEffects.length>0?b(le()):null),he=_(()=>a(ce)?o.getStyle(a(ce)):"");var ae=g2();let re;var ie=V(ae,!0);z(ae),oe(()=>{re=ve(ae,a(he)||void 0,re,{"font-size":`${a(i)??""}px`,"font-weight":a(Q)?"700":e.fontWeight,color:e.textColor,"background-color":a(Q)?e.bgColor:"transparent",padding:"4px 8px","text-shadow":a(y)}),Se(ie,Y())}),f(W,ae)}),z(M),oe(()=>L=ve(M,"",L,{width:`${a(t)??""}px`,height:`${a(n)??""}px`})),f(I,M)},C=I=>{const M=_(()=>e.transitionEffects&&e.transitionEffects.length>0?b(a(h).start):null),L=_(()=>a(M)?o.getStyle(a(M)):"");var W=m2();let j;var Y=V(W);let le;var se=V(Y,!0);z(Y),z(W),oe(()=>{j=ve(W,"",j,{width:`${a(t)??""}px`,height:`${a(n)??""}px`}),le=ve(Y,a(L)||void 0,le,{"font-size":`${a(i)??""}px`,"font-weight":"700",color:e.textColor,"background-color":e.bgColor,padding:"4px 8px","text-shadow":a(y)}),Se(se,a(h).word)}),f(I,W)},S=I=>{var M=y2();let L;Et(M,21,()=>a(p),Si,(W,j)=>{let Y=()=>a(j).word,le=()=>a(j).start,se=()=>a(j).end;const Q=_(()=>a(l)>=le()&&a(l)<se()),ce=_(()=>a(Q)&&e.transitionEffects&&e.transitionEffects.length>0?b(le()):null),he=_(()=>a(ce)?o.getStyle(a(ce)):"");var ae=_2();let re;var ie=V(ae,!0);z(ae),oe(()=>{re=ve(ae,a(he)||void 0,re,{"font-size":`${a(i)??""}px`,"font-weight":a(Q)?"700":e.fontWeight,color:e.textColor,"background-color":a(Q)?e.bgColor:"transparent",padding:"4px 8px","text-shadow":a(y)}),Se(ie,Y())}),f(W,ae)}),z(M),oe(()=>L=ve(M,"",L,{width:`${a(t)??""}px`,height:`${a(n)??""}px`,"column-gap":`${a(i)*.4}px`})),f(I,M)},A=I=>{const M=_(()=>a(c)[a(u)]),L=_(()=>e.transitionEffects&&e.transitionEffects.length>0?b(a(M).start):null),W=_(()=>a(L)?o.getStyle(a(L)):"");var j=b2();let Y;var le=V(j);let se;var Q=V(le,!0);z(le),z(j),oe(()=>{Y=ve(j,"",Y,{width:`${a(t)??""}px`,height:`${a(n)??""}px`}),se=ve(le,a(W)||void 0,se,{"font-size":`${a(i)??""}px`,"font-weight":e.fontWeight,color:e.textColor,"background-color":e.bgColor,padding:"8px 12px","text-shadow":a(y)}),Se(Q,a(M).text)}),f(I,j)};te(T,I=>{a(s)==="highlight"&&a(d).length>0?I(R):a(s)==="single-word"&&a(h)?I(C,1):a(s)==="typewriter"&&a(p).length>0?I(S,2):a(s)==="block"&&a(u)>=0&&I(A,3)})}f(P,x)},$$slots:{default:!0}}),B()}const x2=Object.freeze(Object.defineProperty({__proto__:null,CaptionWordSchema:pv,default:Tf,meta:v2},Symbol.toStringTag,{value:"Module"})),w2={...mv,icon:Bd};var S2=H('<div class="flex items-center gap-2 px-4 py-2"><div class="flex gap-1.5"><div class="h-3 w-3 rounded-full bg-red-500"></div> <div class="h-3 w-3 rounded-full bg-yellow-500"></div> <div class="h-3 w-3 rounded-full bg-green-500"></div></div> <span class="ml-2 text-xs"> </span></div>'),P2=H('<td class="pr-4 text-right align-top select-none"></td>'),E2=H('<tr><!><td class="whitespace-pre"></td></tr>'),k2=H('<div class="overflow-hidden font-mono"><!> <div class="overflow-auto"><table class="w-full border-collapse"><tbody></tbody></table></div></div>');function T2(r,e){U(e,!0);const t=_(()=>e.width/100*e.project.width),n=_(()=>e.maxHeight/100*e.project.width),i=_(()=>e.fontSize/100*e.project.width),s=_(()=>e.padding/100*e.project.width),o=_(()=>e.borderRadius/100*e.project.width),l=_(()=>e.code.split(`