watch-tail 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/README.md +158 -0
  2. package/build/client/_app/immutable/assets/0.Dfts6BC4.css +2 -0
  3. package/build/client/_app/immutable/assets/0.Dfts6BC4.css.br +0 -0
  4. package/build/client/_app/immutable/assets/0.Dfts6BC4.css.gz +0 -0
  5. package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css +1 -0
  6. package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css.br +0 -0
  7. package/build/client/_app/immutable/assets/BrushContext.2tkUc39H.css.gz +0 -0
  8. package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css +1 -0
  9. package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css.br +0 -0
  10. package/build/client/_app/immutable/assets/ChartAnnotations.Bw8CGteN.css.gz +0 -0
  11. package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css +1 -0
  12. package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css.br +1 -0
  13. package/build/client/_app/immutable/assets/Circle.C5MKzgk2.css.gz +0 -0
  14. package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css +1 -0
  15. package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css.br +0 -0
  16. package/build/client/_app/immutable/assets/DefaultTooltip.CGOVIm3D.css.gz +0 -0
  17. package/build/client/_app/immutable/assets/EventScatter.DA5sZ1c0.css +1 -0
  18. package/build/client/_app/immutable/assets/EventScatter.DA5sZ1c0.css.br +0 -0
  19. package/build/client/_app/immutable/assets/EventScatter.DA5sZ1c0.css.gz +0 -0
  20. package/build/client/_app/immutable/assets/Labels.sEaJtb97.css +1 -0
  21. package/build/client/_app/immutable/assets/Labels.sEaJtb97.css.br +0 -0
  22. package/build/client/_app/immutable/assets/Labels.sEaJtb97.css.gz +0 -0
  23. package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css +1 -0
  24. package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css.br +0 -0
  25. package/build/client/_app/immutable/assets/Legend.DnhxhJ2I.css.gz +0 -0
  26. package/build/client/_app/immutable/assets/Path.B0wDzTrn.css +1 -0
  27. package/build/client/_app/immutable/assets/Path.B0wDzTrn.css.br +0 -0
  28. package/build/client/_app/immutable/assets/Path.B0wDzTrn.css.gz +0 -0
  29. package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css +1 -0
  30. package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css.br +0 -0
  31. package/build/client/_app/immutable/assets/TransformContext.1cjyViIk.css.gz +0 -0
  32. package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css +1 -0
  33. package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css.br +0 -0
  34. package/build/client/_app/immutable/assets/Voronoi.ce7atosu.css.gz +0 -0
  35. package/build/client/_app/immutable/chunks/Amq8zxdJ.js +1 -0
  36. package/build/client/_app/immutable/chunks/Amq8zxdJ.js.br +0 -0
  37. package/build/client/_app/immutable/chunks/Amq8zxdJ.js.gz +0 -0
  38. package/build/client/_app/immutable/chunks/B3p3umIY.js +1 -0
  39. package/build/client/_app/immutable/chunks/B3p3umIY.js.br +0 -0
  40. package/build/client/_app/immutable/chunks/B3p3umIY.js.gz +0 -0
  41. package/build/client/_app/immutable/chunks/B43Eeyih.js +1 -0
  42. package/build/client/_app/immutable/chunks/B43Eeyih.js.br +0 -0
  43. package/build/client/_app/immutable/chunks/B43Eeyih.js.gz +0 -0
  44. package/build/client/_app/immutable/chunks/B5q6rkQ-.js +1 -0
  45. package/build/client/_app/immutable/chunks/B5q6rkQ-.js.br +0 -0
  46. package/build/client/_app/immutable/chunks/B5q6rkQ-.js.gz +0 -0
  47. package/build/client/_app/immutable/chunks/BAynhd7i.js +1 -0
  48. package/build/client/_app/immutable/chunks/BAynhd7i.js.br +0 -0
  49. package/build/client/_app/immutable/chunks/BAynhd7i.js.gz +0 -0
  50. package/build/client/_app/immutable/chunks/BDlvDAqe.js +1 -0
  51. package/build/client/_app/immutable/chunks/BDlvDAqe.js.br +0 -0
  52. package/build/client/_app/immutable/chunks/BDlvDAqe.js.gz +0 -0
  53. package/build/client/_app/immutable/chunks/BGmgUZMc.js +10 -0
  54. package/build/client/_app/immutable/chunks/BGmgUZMc.js.br +0 -0
  55. package/build/client/_app/immutable/chunks/BGmgUZMc.js.gz +0 -0
  56. package/build/client/_app/immutable/chunks/BJpWBbAS.js +1 -0
  57. package/build/client/_app/immutable/chunks/BJpWBbAS.js.br +0 -0
  58. package/build/client/_app/immutable/chunks/BJpWBbAS.js.gz +0 -0
  59. package/build/client/_app/immutable/chunks/BOT2hFMn.js +1 -0
  60. package/build/client/_app/immutable/chunks/BOT2hFMn.js.br +0 -0
  61. package/build/client/_app/immutable/chunks/BOT2hFMn.js.gz +0 -0
  62. package/build/client/_app/immutable/chunks/BR2LaRms.js +1 -0
  63. package/build/client/_app/immutable/chunks/BR2LaRms.js.br +1 -0
  64. package/build/client/_app/immutable/chunks/BR2LaRms.js.gz +0 -0
  65. package/build/client/_app/immutable/chunks/BZFYtRPj.js +1 -0
  66. package/build/client/_app/immutable/chunks/BZFYtRPj.js.br +0 -0
  67. package/build/client/_app/immutable/chunks/BZFYtRPj.js.gz +0 -0
  68. package/build/client/_app/immutable/chunks/BjxZ_neZ.js +5 -0
  69. package/build/client/_app/immutable/chunks/BjxZ_neZ.js.br +0 -0
  70. package/build/client/_app/immutable/chunks/BjxZ_neZ.js.gz +0 -0
  71. package/build/client/_app/immutable/chunks/Bl052uUt.js +1 -0
  72. package/build/client/_app/immutable/chunks/Bl052uUt.js.br +0 -0
  73. package/build/client/_app/immutable/chunks/Bl052uUt.js.gz +0 -0
  74. package/build/client/_app/immutable/chunks/{Bw_9uNRP.js → BsH4MNzX.js} +1 -1
  75. package/build/client/_app/immutable/chunks/BsH4MNzX.js.br +0 -0
  76. package/build/client/_app/immutable/chunks/BsH4MNzX.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/ByhwhtiG.js +1 -0
  78. package/build/client/_app/immutable/chunks/ByhwhtiG.js.br +0 -0
  79. package/build/client/_app/immutable/chunks/ByhwhtiG.js.gz +0 -0
  80. package/build/client/_app/immutable/chunks/C1lycbEF.js +1 -0
  81. package/build/client/_app/immutable/chunks/C1lycbEF.js.br +0 -0
  82. package/build/client/_app/immutable/chunks/C1lycbEF.js.gz +0 -0
  83. package/build/client/_app/immutable/chunks/C58PZtCD.js +4 -0
  84. package/build/client/_app/immutable/chunks/C58PZtCD.js.br +0 -0
  85. package/build/client/_app/immutable/chunks/C58PZtCD.js.gz +0 -0
  86. package/build/client/_app/immutable/chunks/CCch3uox.js +1 -0
  87. package/build/client/_app/immutable/chunks/CCch3uox.js.br +0 -0
  88. package/build/client/_app/immutable/chunks/CCch3uox.js.gz +0 -0
  89. package/build/client/_app/immutable/chunks/CEU4ihsz.js +1 -0
  90. package/build/client/_app/immutable/chunks/CEU4ihsz.js.br +0 -0
  91. package/build/client/_app/immutable/chunks/CEU4ihsz.js.gz +0 -0
  92. package/build/client/_app/immutable/chunks/CG6rRxUy.js +2 -0
  93. package/build/client/_app/immutable/chunks/CG6rRxUy.js.br +0 -0
  94. package/build/client/_app/immutable/chunks/CG6rRxUy.js.gz +0 -0
  95. package/build/client/_app/immutable/chunks/CM5sQDq_.js +1 -0
  96. package/build/client/_app/immutable/chunks/CM5sQDq_.js.br +0 -0
  97. package/build/client/_app/immutable/chunks/CM5sQDq_.js.gz +0 -0
  98. package/build/client/_app/immutable/chunks/CT_NYh_-.js +1 -0
  99. package/build/client/_app/immutable/chunks/CT_NYh_-.js.br +0 -0
  100. package/build/client/_app/immutable/chunks/CT_NYh_-.js.gz +0 -0
  101. package/build/client/_app/immutable/chunks/CZIk93qi.js +1 -0
  102. package/build/client/_app/immutable/chunks/CZIk93qi.js.br +0 -0
  103. package/build/client/_app/immutable/chunks/CZIk93qi.js.gz +0 -0
  104. package/build/client/_app/immutable/chunks/C_aXFBl3.js +1 -0
  105. package/build/client/_app/immutable/chunks/C_aXFBl3.js.br +0 -0
  106. package/build/client/_app/immutable/chunks/C_aXFBl3.js.gz +0 -0
  107. package/build/client/_app/immutable/chunks/CqWPu3PG.js +1 -0
  108. package/build/client/_app/immutable/chunks/CqWPu3PG.js.br +1 -0
  109. package/build/client/_app/immutable/chunks/CqWPu3PG.js.gz +0 -0
  110. package/build/client/_app/immutable/chunks/CyncJW0D.js +1 -0
  111. package/build/client/_app/immutable/chunks/CyncJW0D.js.br +0 -0
  112. package/build/client/_app/immutable/chunks/CyncJW0D.js.gz +0 -0
  113. package/build/client/_app/immutable/chunks/D4sC5v3c.js +1 -0
  114. package/build/client/_app/immutable/chunks/D4sC5v3c.js.br +0 -0
  115. package/build/client/_app/immutable/chunks/D4sC5v3c.js.gz +0 -0
  116. package/build/client/_app/immutable/chunks/D76YLq-2.js +1 -0
  117. package/build/client/_app/immutable/chunks/D76YLq-2.js.br +0 -0
  118. package/build/client/_app/immutable/chunks/D76YLq-2.js.gz +0 -0
  119. package/build/client/_app/immutable/chunks/D8H_ivbb.js +1 -0
  120. package/build/client/_app/immutable/chunks/D8H_ivbb.js.br +0 -0
  121. package/build/client/_app/immutable/chunks/D8H_ivbb.js.gz +0 -0
  122. package/build/client/_app/immutable/chunks/DU0OQtdJ.js +1 -0
  123. package/build/client/_app/immutable/chunks/DU0OQtdJ.js.br +0 -0
  124. package/build/client/_app/immutable/chunks/DU0OQtdJ.js.gz +0 -0
  125. package/build/client/_app/immutable/chunks/Db0q5_zr.js +1 -0
  126. package/build/client/_app/immutable/chunks/Db0q5_zr.js.br +0 -0
  127. package/build/client/_app/immutable/chunks/Db0q5_zr.js.gz +0 -0
  128. package/build/client/_app/immutable/chunks/Dfvzj6n2.js +1 -0
  129. package/build/client/_app/immutable/chunks/Dfvzj6n2.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/Dfvzj6n2.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/HclGiUj8.js +1 -0
  132. package/build/client/_app/immutable/chunks/HclGiUj8.js.br +0 -0
  133. package/build/client/_app/immutable/chunks/HclGiUj8.js.gz +0 -0
  134. package/build/client/_app/immutable/chunks/RobXhXPM.js +1 -0
  135. package/build/client/_app/immutable/chunks/RobXhXPM.js.br +1 -0
  136. package/build/client/_app/immutable/chunks/RobXhXPM.js.gz +0 -0
  137. package/build/client/_app/immutable/chunks/Y5urAfNy.js +1 -0
  138. package/build/client/_app/immutable/chunks/Y5urAfNy.js.br +0 -0
  139. package/build/client/_app/immutable/chunks/Y5urAfNy.js.gz +0 -0
  140. package/build/client/_app/immutable/chunks/Yk6ZJZnu.js +1 -0
  141. package/build/client/_app/immutable/chunks/Yk6ZJZnu.js.br +0 -0
  142. package/build/client/_app/immutable/chunks/Yk6ZJZnu.js.gz +0 -0
  143. package/build/client/_app/immutable/chunks/jO4fmY1N.js +1 -0
  144. package/build/client/_app/immutable/chunks/jO4fmY1N.js.br +0 -0
  145. package/build/client/_app/immutable/chunks/jO4fmY1N.js.gz +0 -0
  146. package/build/client/_app/immutable/chunks/pqiPC7Y8.js +3 -0
  147. package/build/client/_app/immutable/chunks/pqiPC7Y8.js.br +0 -0
  148. package/build/client/_app/immutable/chunks/pqiPC7Y8.js.gz +0 -0
  149. package/build/client/_app/immutable/chunks/snfmbqby.js +1 -0
  150. package/build/client/_app/immutable/chunks/snfmbqby.js.br +0 -0
  151. package/build/client/_app/immutable/chunks/snfmbqby.js.gz +0 -0
  152. package/build/client/_app/immutable/chunks/wx-wtMGx.js +15 -0
  153. package/build/client/_app/immutable/chunks/wx-wtMGx.js.br +0 -0
  154. package/build/client/_app/immutable/chunks/wx-wtMGx.js.gz +0 -0
  155. package/build/client/_app/immutable/chunks/yCfI4PCa.js +1 -0
  156. package/build/client/_app/immutable/chunks/yCfI4PCa.js.br +0 -0
  157. package/build/client/_app/immutable/chunks/yCfI4PCa.js.gz +0 -0
  158. package/build/client/_app/immutable/chunks/zHL7lw4G.js +1 -0
  159. package/build/client/_app/immutable/chunks/zHL7lw4G.js.br +0 -0
  160. package/build/client/_app/immutable/chunks/zHL7lw4G.js.gz +0 -0
  161. package/build/client/_app/immutable/entry/app.DFSifnlU.js +2 -0
  162. package/build/client/_app/immutable/entry/app.DFSifnlU.js.br +0 -0
  163. package/build/client/_app/immutable/entry/app.DFSifnlU.js.gz +0 -0
  164. package/build/client/_app/immutable/entry/start.2H5s3Lol.js +1 -0
  165. package/build/client/_app/immutable/entry/start.2H5s3Lol.js.br +1 -0
  166. package/build/client/_app/immutable/entry/start.2H5s3Lol.js.gz +0 -0
  167. package/build/client/_app/immutable/nodes/0.BN3NguWs.js +1 -0
  168. package/build/client/_app/immutable/nodes/0.BN3NguWs.js.br +0 -0
  169. package/build/client/_app/immutable/nodes/0.BN3NguWs.js.gz +0 -0
  170. package/build/client/_app/immutable/nodes/1.Djdw1GzA.js +1 -0
  171. package/build/client/_app/immutable/nodes/1.Djdw1GzA.js.br +0 -0
  172. package/build/client/_app/immutable/nodes/1.Djdw1GzA.js.gz +0 -0
  173. package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js +4 -0
  174. package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js.br +0 -0
  175. package/build/client/_app/immutable/nodes/2.CjvaJDQJ.js.gz +0 -0
  176. package/build/client/_app/version.json +1 -1
  177. package/build/client/_app/version.json.br +0 -0
  178. package/build/client/_app/version.json.gz +0 -0
  179. package/build/handler.js +9 -7
  180. package/build/handler.js.map +1 -1
  181. package/build/index.js +9 -7
  182. package/build/index.js.map +1 -1
  183. package/build/server/chunks/chunks/Arc.canvas.js-D6g58nSp.js +701 -0
  184. package/build/server/chunks/chunks/Arc.canvas.js-D6g58nSp.js.map +1 -0
  185. package/build/server/chunks/chunks/Arc.js-D78Cf_4M.js +31 -0
  186. package/build/server/chunks/chunks/Arc.js-D78Cf_4M.js.map +1 -0
  187. package/build/server/chunks/chunks/Bar.js-Cv73T8_D.js +448 -0
  188. package/build/server/chunks/chunks/Bar.js-Cv73T8_D.js.map +1 -0
  189. package/build/server/chunks/chunks/ChartAnnotations.js-Ci22VB_6.js +983 -0
  190. package/build/server/chunks/chunks/ChartAnnotations.js-Ci22VB_6.js.map +1 -0
  191. package/build/server/chunks/chunks/Circle.html.js-BjwyNRG3.js +355 -0
  192. package/build/server/chunks/chunks/Circle.html.js-BjwyNRG3.js.map +1 -0
  193. package/build/server/chunks/chunks/ClipPath.canvas.js-CFTBDWVU.js +170 -0
  194. package/build/server/chunks/chunks/ClipPath.canvas.js-CFTBDWVU.js.map +1 -0
  195. package/build/server/chunks/chunks/DefaultTooltip.js-0r5rbE-1.js +352 -0
  196. package/build/server/chunks/chunks/DefaultTooltip.js-0r5rbE-1.js.map +1 -0
  197. package/build/server/chunks/chunks/EventScatter.js-D3Jaw_Cw.js +7308 -0
  198. package/build/server/chunks/chunks/EventScatter.js-D3Jaw_Cw.js.map +1 -0
  199. package/build/server/chunks/chunks/Labels.js-DpagpV6d.js +497 -0
  200. package/build/server/chunks/chunks/Labels.js-DpagpV6d.js.map +1 -0
  201. package/build/server/chunks/chunks/Legend.js-BOpwpe5s.js +343 -0
  202. package/build/server/chunks/chunks/Legend.js-BOpwpe5s.js.map +1 -0
  203. package/build/server/chunks/chunks/Line.html.js-BM5tR11G.js +423 -0
  204. package/build/server/chunks/chunks/Line.html.js-BM5tR11G.js.map +1 -0
  205. package/build/server/chunks/chunks/Link.canvas.js-P8ySzEAw.js +756 -0
  206. package/build/server/chunks/chunks/Link.canvas.js-P8ySzEAw.js.map +1 -0
  207. package/build/server/chunks/chunks/Path.canvas.js-DNAtnEBt.js +1259 -0
  208. package/build/server/chunks/chunks/Path.canvas.js-DNAtnEBt.js.map +1 -0
  209. package/build/server/chunks/chunks/Points.html.js-CLbHD6OP.js +228 -0
  210. package/build/server/chunks/chunks/Points.html.js-CLbHD6OP.js.map +1 -0
  211. package/build/server/chunks/chunks/Points.js-e6g0Re6H.js +14 -0
  212. package/build/server/chunks/chunks/Points.js-e6g0Re6H.js.map +1 -0
  213. package/build/server/chunks/chunks/Points2.js-BMGdkzTE.js +25 -0
  214. package/build/server/chunks/chunks/Points2.js-BMGdkzTE.js.map +1 -0
  215. package/build/server/chunks/chunks/Rect.html.js-Q3UvRwNn.js +547 -0
  216. package/build/server/chunks/chunks/Rect.html.js-Q3UvRwNn.js.map +1 -0
  217. package/build/server/chunks/chunks/Spline.js-BuZPz2PJ.js +516 -0
  218. package/build/server/chunks/chunks/Spline.js-BuZPz2PJ.js.map +1 -0
  219. package/build/server/chunks/chunks/Text.html.js-C8xO5Nz6.js +847 -0
  220. package/build/server/chunks/chunks/Text.html.js-C8xO5Nz6.js.map +1 -0
  221. package/build/server/chunks/chunks/TooltipItem.js-T0cKLjLu.js +314 -0
  222. package/build/server/chunks/chunks/TooltipItem.js-T0cKLjLu.js.map +1 -0
  223. package/build/server/chunks/chunks/Voronoi.js-DevTsXQE.js +2052 -0
  224. package/build/server/chunks/chunks/Voronoi.js-DevTsXQE.js.map +1 -0
  225. package/build/server/chunks/chunks/archive.js-C2D-5edp.js +823 -0
  226. package/build/server/chunks/chunks/archive.js-C2D-5edp.js.map +1 -0
  227. package/build/server/chunks/chunks/array.js-CBp0H4t3.js +8 -0
  228. package/build/server/chunks/chunks/array.js-CBp0H4t3.js.map +1 -0
  229. package/build/server/chunks/chunks/attributes.js-BVWo7wbg.js +25 -0
  230. package/build/server/chunks/chunks/attributes.js-BVWo7wbg.js.map +1 -0
  231. package/build/server/chunks/chunks/{env2.js-DXveJt1Y.js → aws.js-DkPqAybc.js} +2 -59
  232. package/build/server/chunks/chunks/aws.js-DkPqAybc.js.map +1 -0
  233. package/build/server/chunks/chunks/band.js-C7izXphE.js +155 -0
  234. package/build/server/chunks/chunks/band.js-C7izXphE.js.map +1 -0
  235. package/build/server/chunks/chunks/centroid.js-BnGN3LH0.js +1356 -0
  236. package/build/server/chunks/chunks/centroid.js-BnGN3LH0.js.map +1 -0
  237. package/build/server/chunks/chunks/common.js-BWQB8Die.js +5760 -0
  238. package/build/server/chunks/chunks/common.js-BWQB8Die.js.map +1 -0
  239. package/build/server/chunks/chunks/env2.js-CcIskxOZ.js +60 -0
  240. package/build/server/chunks/chunks/env2.js-CcIskxOZ.js.map +1 -0
  241. package/build/server/chunks/chunks/{exports.js-CvFPPbaH.js → exports.js-ClPPfcHj.js} +6 -1
  242. package/build/server/chunks/chunks/exports.js-ClPPfcHj.js.map +1 -0
  243. package/build/server/chunks/chunks/group.js-DBFzWAox.js +30 -0
  244. package/build/server/chunks/chunks/group.js-DBFzWAox.js.map +1 -0
  245. package/build/server/chunks/chunks/index-server.js-DNLOKvM0.js +248 -0
  246. package/build/server/chunks/chunks/index-server.js-DNLOKvM0.js.map +1 -0
  247. package/build/server/chunks/chunks/index-server2.js-l0sNRNKZ.js +2 -0
  248. package/build/server/chunks/chunks/index-server2.js-l0sNRNKZ.js.map +1 -0
  249. package/build/server/chunks/chunks/{internal2.js-DZ8ZzzjN.js → internal.js-DZ8ZzzjN.js} +1 -1
  250. package/build/server/chunks/chunks/internal.js-DZ8ZzzjN.js.map +1 -0
  251. package/build/server/chunks/chunks/internal2.js-BPo5dcDi.js +188 -0
  252. package/build/server/chunks/chunks/internal2.js-BPo5dcDi.js.map +1 -0
  253. package/build/server/chunks/chunks/key.svelte.js-CWIvXc6L.js +695 -0
  254. package/build/server/chunks/chunks/key.svelte.js-CWIvXc6L.js.map +1 -0
  255. package/build/server/chunks/chunks/{internal.js-Cc3oBhL-.js → legacy-client.js-DJmDw3Zx.js} +13 -439
  256. package/build/server/chunks/chunks/legacy-client.js-DJmDw3Zx.js.map +1 -0
  257. package/build/server/chunks/chunks/level-filter.js-B3o2hyWD.js +313 -0
  258. package/build/server/chunks/chunks/level-filter.js-B3o2hyWD.js.map +1 -0
  259. package/build/server/chunks/chunks/lineRadial.js-Dm0GMqo3.js +126 -0
  260. package/build/server/chunks/chunks/lineRadial.js-Dm0GMqo3.js.map +1 -0
  261. package/build/server/chunks/chunks/linear.js-CTOKrHn9.js +1046 -0
  262. package/build/server/chunks/chunks/linear.js-CTOKrHn9.js.map +1 -0
  263. package/build/server/chunks/chunks/log-buffer.js-BI_gQOls.js +587 -0
  264. package/build/server/chunks/chunks/log-buffer.js-BI_gQOls.js.map +1 -0
  265. package/build/server/chunks/chunks/math.js-BqujbaBs.js +50 -0
  266. package/build/server/chunks/chunks/math.js-BqujbaBs.js.map +1 -0
  267. package/build/server/chunks/chunks/max.js-CuS0BpRI.js +11 -0
  268. package/build/server/chunks/chunks/max.js-CuS0BpRI.js.map +1 -0
  269. package/build/server/chunks/chunks/min.js-DZWt5tPl.js +11 -0
  270. package/build/server/chunks/chunks/min.js-DZWt5tPl.js.map +1 -0
  271. package/build/server/chunks/chunks/motion.svelte.js-DCHSFMu-.js +677 -0
  272. package/build/server/chunks/chunks/motion.svelte.js-DCHSFMu-.js.map +1 -0
  273. package/build/server/chunks/chunks/occlusion.js-DJ-AdK9u.js +33 -0
  274. package/build/server/chunks/chunks/occlusion.js-DJ-AdK9u.js.map +1 -0
  275. package/build/server/chunks/chunks/path.js-BizMrlzb.js +488 -0
  276. package/build/server/chunks/chunks/path.js-BizMrlzb.js.map +1 -0
  277. package/build/server/chunks/chunks/path2.js-pquT2Kg6.js +27 -0
  278. package/build/server/chunks/chunks/path2.js-pquT2Kg6.js.map +1 -0
  279. package/build/server/chunks/chunks/pointRadial.js-Deeu1LXx.js +7 -0
  280. package/build/server/chunks/chunks/pointRadial.js-Deeu1LXx.js.map +1 -0
  281. package/build/server/chunks/chunks/rect.svelte.js-zeS7FWjB.js +187 -0
  282. package/build/server/chunks/chunks/rect.svelte.js-zeS7FWjB.js.map +1 -0
  283. package/build/server/chunks/chunks/scales.svelte.js-D_1popPi.js +276 -0
  284. package/build/server/chunks/chunks/scales.svelte.js-D_1popPi.js.map +1 -0
  285. package/build/server/chunks/chunks/series-buckets.js-BjigySff.js +290 -0
  286. package/build/server/chunks/chunks/series-buckets.js-BjigySff.js.map +1 -0
  287. package/build/server/chunks/chunks/{server.js-ByNB8uti.js → server.js-CAEBuMIH.js} +167 -2
  288. package/build/server/chunks/chunks/server.js-CAEBuMIH.js.map +1 -0
  289. package/build/server/chunks/chunks/source.js-DZEVvuho.js +21 -0
  290. package/build/server/chunks/chunks/source.js-DZEVvuho.js.map +1 -0
  291. package/build/server/chunks/chunks/{state.js-9DxsWxU-.js → state.js-DgkwfYFo.js} +5 -4
  292. package/build/server/chunks/chunks/state.js-DgkwfYFo.js.map +1 -0
  293. package/build/server/chunks/chunks/types.js-x3GyGPOz.js +11 -0
  294. package/build/server/chunks/chunks/types.js-x3GyGPOz.js.map +1 -0
  295. package/build/server/chunks/entries/endpoints/api/archive/_server.ts.js-83Ch7djd.js +39 -0
  296. package/build/server/chunks/entries/endpoints/api/archive/_server.ts.js-83Ch7djd.js.map +1 -0
  297. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BOjix7GN.js → _server.ts.js-VctnBhIJ.js} +5 -4
  298. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-VctnBhIJ.js.map +1 -0
  299. package/build/server/chunks/entries/endpoints/api/identity/{_server.ts.js-g13uvmrX.js → _server.ts.js-Dt540Sio.js} +4 -3
  300. package/build/server/chunks/entries/endpoints/api/identity/_server.ts.js-Dt540Sio.js.map +1 -0
  301. package/build/server/chunks/entries/endpoints/api/log-groups/{_server.ts.js-CmHRxdZK.js → _server.ts.js-drLgUdvB.js} +57 -8
  302. package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-drLgUdvB.js.map +1 -0
  303. package/build/server/chunks/entries/endpoints/api/regions/{_server.ts.js-BgUwioxp.js → _server.ts.js-CBqfN6Pg.js} +5 -4
  304. package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-CBqfN6Pg.js.map +1 -0
  305. package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DOvBhEDU.js +225 -0
  306. package/build/server/chunks/entries/endpoints/api/series/_server.ts.js-DOvBhEDU.js.map +1 -0
  307. package/build/server/chunks/entries/endpoints/api/stream/{_server.ts.js-CIYo4C-0.js → _server.ts.js-BWRHawY8.js} +324 -223
  308. package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-BWRHawY8.js.map +1 -0
  309. package/build/server/chunks/entries/fallbacks/{error.svelte.js-CFonuZkV.js → error.svelte.js-CsCL5PMW.js} +7 -5
  310. package/build/server/chunks/entries/fallbacks/{error.svelte.js-CFonuZkV.js.map → error.svelte.js-CsCL5PMW.js.map} +1 -1
  311. package/build/server/chunks/entries/pages/{_layout.svelte.js-Dzluuq12.js → _layout.svelte.js-CBQpEToy.js} +2 -2
  312. package/build/server/chunks/entries/pages/{_layout.svelte.js-Dzluuq12.js.map → _layout.svelte.js-CBQpEToy.js.map} +1 -1
  313. package/build/server/chunks/entries/pages/_page.svelte.js-qqtU0apo.js +1641 -0
  314. package/build/server/chunks/entries/pages/_page.svelte.js-qqtU0apo.js.map +1 -0
  315. package/build/server/chunks/{handler-DS32NMsJ.js → handler-DlfTB05m.js} +3 -3
  316. package/build/server/chunks/{handler-DS32NMsJ.js.map → handler-DlfTB05m.js.map} +1 -1
  317. package/build/server/chunks/{index.js-HHu-yOEK.js → index.js-BMrd9hfO.js} +6 -5
  318. package/build/server/chunks/index.js-BMrd9hfO.js.map +1 -0
  319. package/build/server/chunks/{manifest.js-BUrA7Zyr.js → manifest.js-D1kCuVe5.js} +24 -10
  320. package/build/server/chunks/manifest.js-D1kCuVe5.js.map +1 -0
  321. package/build/server/chunks/nodes/0.js-CNFDDPj5.js +9 -0
  322. package/build/server/chunks/nodes/{0.js-gSRmrAt_.js.map → 0.js-CNFDDPj5.js.map} +1 -1
  323. package/build/server/chunks/nodes/1.js-B5FPLYnf.js +9 -0
  324. package/build/server/chunks/nodes/{1.js-D68K7Ad_.js.map → 1.js-B5FPLYnf.js.map} +1 -1
  325. package/build/server/chunks/nodes/2.js-BEuxzw6b.js +9 -0
  326. package/build/server/chunks/nodes/2.js-BEuxzw6b.js.map +1 -0
  327. package/dist/cli/completions.js +6 -0
  328. package/dist/cli/index.js +131 -88
  329. package/dist/cli/options.js +28 -2
  330. package/dist/cli/preflight.js +30 -0
  331. package/dist/cli/ui.js +18 -3
  332. package/dist/lib/cli/aws.js +12 -4
  333. package/dist/lib/log-buffer.js +443 -0
  334. package/dist/lib/log-format.js +185 -0
  335. package/dist/lib/types.js +0 -4
  336. package/package.json +6 -2
  337. package/build/client/_app/immutable/assets/0.BPmQoXaO.css +0 -2
  338. package/build/client/_app/immutable/assets/0.BPmQoXaO.css.br +0 -0
  339. package/build/client/_app/immutable/assets/0.BPmQoXaO.css.gz +0 -0
  340. package/build/client/_app/immutable/chunks/Bw_9uNRP.js.br +0 -0
  341. package/build/client/_app/immutable/chunks/Bw_9uNRP.js.gz +0 -0
  342. package/build/client/_app/immutable/chunks/De_x7GQi.js +0 -1
  343. package/build/client/_app/immutable/chunks/De_x7GQi.js.br +0 -0
  344. package/build/client/_app/immutable/chunks/De_x7GQi.js.gz +0 -0
  345. package/build/client/_app/immutable/chunks/ZAD2y5xJ.js +0 -3
  346. package/build/client/_app/immutable/chunks/ZAD2y5xJ.js.br +0 -0
  347. package/build/client/_app/immutable/chunks/ZAD2y5xJ.js.gz +0 -0
  348. package/build/client/_app/immutable/entry/app.Be166AxG.js +0 -2
  349. package/build/client/_app/immutable/entry/app.Be166AxG.js.br +0 -0
  350. package/build/client/_app/immutable/entry/app.Be166AxG.js.gz +0 -0
  351. package/build/client/_app/immutable/entry/start.clEDpQL9.js +0 -1
  352. package/build/client/_app/immutable/entry/start.clEDpQL9.js.br +0 -0
  353. package/build/client/_app/immutable/entry/start.clEDpQL9.js.gz +0 -0
  354. package/build/client/_app/immutable/nodes/0.BJ6Zdc8H.js +0 -1
  355. package/build/client/_app/immutable/nodes/0.BJ6Zdc8H.js.br +0 -4
  356. package/build/client/_app/immutable/nodes/0.BJ6Zdc8H.js.gz +0 -0
  357. package/build/client/_app/immutable/nodes/1.xMNWuLLz.js +0 -1
  358. package/build/client/_app/immutable/nodes/1.xMNWuLLz.js.br +0 -0
  359. package/build/client/_app/immutable/nodes/1.xMNWuLLz.js.gz +0 -0
  360. package/build/client/_app/immutable/nodes/2.CaxDXwmh.js +0 -5
  361. package/build/client/_app/immutable/nodes/2.CaxDXwmh.js.br +0 -0
  362. package/build/client/_app/immutable/nodes/2.CaxDXwmh.js.gz +0 -0
  363. package/build/server/chunks/chunks/env2.js-DXveJt1Y.js.map +0 -1
  364. package/build/server/chunks/chunks/exports.js-CvFPPbaH.js.map +0 -1
  365. package/build/server/chunks/chunks/internal.js-Cc3oBhL-.js.map +0 -1
  366. package/build/server/chunks/chunks/internal2.js-DZ8ZzzjN.js.map +0 -1
  367. package/build/server/chunks/chunks/server.js-ByNB8uti.js.map +0 -1
  368. package/build/server/chunks/chunks/state.js-9DxsWxU-.js.map +0 -1
  369. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BOjix7GN.js.map +0 -1
  370. package/build/server/chunks/entries/endpoints/api/identity/_server.ts.js-g13uvmrX.js.map +0 -1
  371. package/build/server/chunks/entries/endpoints/api/log-groups/_server.ts.js-CmHRxdZK.js.map +0 -1
  372. package/build/server/chunks/entries/endpoints/api/regions/_server.ts.js-BgUwioxp.js.map +0 -1
  373. package/build/server/chunks/entries/endpoints/api/stream/_server.ts.js-CIYo4C-0.js.map +0 -1
  374. package/build/server/chunks/entries/pages/_page.svelte.js-CpwYbxbM.js +0 -1291
  375. package/build/server/chunks/entries/pages/_page.svelte.js-CpwYbxbM.js.map +0 -1
  376. package/build/server/chunks/index.js-HHu-yOEK.js.map +0 -1
  377. package/build/server/chunks/manifest.js-BUrA7Zyr.js.map +0 -1
  378. package/build/server/chunks/nodes/0.js-gSRmrAt_.js +0 -9
  379. package/build/server/chunks/nodes/1.js-D68K7Ad_.js +0 -9
  380. package/build/server/chunks/nodes/2.js-ChYsaaoC.js +0 -9
  381. package/build/server/chunks/nodes/2.js-ChYsaaoC.js.map +0 -1
@@ -0,0 +1,847 @@
1
+ import { as as props_id, ak as ensure_array_like, ar as attributes, an as clsx, ag as attr, ah as escape_html, ai as attr_style, al as stringify, aj as attr_class, am as bind_props, ac as derived } from './server.js-CAEBuMIH.js';
2
+ import { a as getChartContext, g as get, A as format, m as merge, b as cls } from './common.js-BWQB8Die.js';
3
+ import { m as memoize, i as resolveColorProp, j as resolveStyleProp, a as getMarkData, b as getGeoContext, r as resolveGeoDataPair, c as resolveDataProp, d as createKey, n as getComputedStyles, o as renderText } from './key.svelte.js-CWIvXc6L.js';
4
+ import { c as createId } from './Path.canvas.js-DNAtnEBt.js';
5
+ import { d as createMotion, f as createDataMotionMap } from './motion.svelte.js-DCHSFMu-.js';
6
+ import { d as degreesToRadians } from './math.js-BqujbaBs.js';
7
+
8
+ //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/utils/string.js
9
+ var MEASUREMENT_ELEMENT_ID = "__text_measurement_id";
10
+ function _getStringWidth(str, style) {
11
+ try {
12
+ let textEl = document.getElementById(MEASUREMENT_ELEMENT_ID);
13
+ if (!textEl) {
14
+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
15
+ svg.style.width = "0";
16
+ svg.style.height = "0";
17
+ svg.style.position = "absolute";
18
+ svg.style.top = "-100%";
19
+ svg.style.left = "-100%";
20
+ textEl = document.createElementNS("http://www.w3.org/2000/svg", "text");
21
+ textEl.setAttribute("id", MEASUREMENT_ELEMENT_ID);
22
+ svg.appendChild(textEl);
23
+ document.body.appendChild(svg);
24
+ }
25
+ Object.assign(textEl.style, style);
26
+ textEl.textContent = str;
27
+ return textEl.getComputedTextLength();
28
+ } catch (e) {
29
+ return null;
30
+ }
31
+ }
32
+ var getStringWidth = memoize(_getStringWidth, { cacheKey: ([str, style]) => `${str}_${JSON.stringify(style)}` });
33
+ /**
34
+ * Axis-aligned box enclosing `rect` after rotating it `degrees` about (`originX`, `originY`) —
35
+ * the same rotation SVG's `rotate(deg, x, y)` applies.
36
+ *
37
+ * A rotated label still has to be compared as an axis-aligned box (that is all `occlude()` tests),
38
+ * so it is widened to the box that contains it. At 45° a long label takes far less horizontal
39
+ * room than it does flat, and measuring it unrotated would drop neighbours that actually fit.
40
+ */
41
+ function rotateRect(rect, degrees, originX, originY) {
42
+ if (!degrees) return rect;
43
+ const radians = degrees * Math.PI / 180;
44
+ const cos = Math.cos(radians);
45
+ const sin = Math.sin(radians);
46
+ const corners = [
47
+ [rect.x, rect.y],
48
+ [rect.x + rect.width, rect.y],
49
+ [rect.x, rect.y + rect.height],
50
+ [rect.x + rect.width, rect.y + rect.height]
51
+ ].map(([cx, cy]) => {
52
+ const dx = cx - originX;
53
+ const dy = cy - originY;
54
+ return [originX + dx * cos - dy * sin, originY + dx * sin + dy * cos];
55
+ });
56
+ const xs = corners.map(([cx]) => cx);
57
+ const ys = corners.map(([, cy]) => cy);
58
+ const minX = Math.min(...xs);
59
+ const minY = Math.min(...ys);
60
+ return {
61
+ x: minX,
62
+ y: minY,
63
+ width: Math.max(...xs) - minX,
64
+ height: Math.max(...ys) - minY
65
+ };
66
+ }
67
+ /**
68
+ * Bounding box (`{ x, y, width, height }`) of `text` anchored at (`x`, `y`) — matching
69
+ * how `<Text>` positions it for the given `textAnchor`/`verticalAnchor`/`rotate`. Width is
70
+ * measured with the same memoized metrics as `<Text>` (falling back to a character-count estimate
71
+ * when the DOM is unavailable, e.g. during SSR), making it a convenient `bounds` for
72
+ * `occlude()`.
73
+ *
74
+ * Pass an array to measure a multiline `<Text>` value: the box is as wide as the widest line and
75
+ * as tall as the stack.
76
+ */
77
+ function getTextRect(text, x, y, options = {}) {
78
+ const { textAnchor = "start", verticalAnchor = "middle", fontSize = 16, lineHeight = fontSize, dx = 0, dy = 0, rotate = 0 } = options;
79
+ const lines = Array.isArray(text) ? text : [text];
80
+ const width = lines.reduce((widest, line) => {
81
+ const lineWidth = getStringWidth(line, { fontSize: `${fontSize}px` }) ?? line.length * fontSize * .6;
82
+ return Math.max(widest, lineWidth);
83
+ }, 0);
84
+ const height = lines.length > 1 ? lineHeight * lines.length : fontSize;
85
+ const ax = x + dx;
86
+ const ay = y + dy;
87
+ return rotateRect({
88
+ x: textAnchor === "end" ? ax - width : textAnchor === "middle" ? ax - width / 2 : ax,
89
+ y: verticalAnchor === "end" ? ay - height : verticalAnchor === "middle" ? ay - height / 2 : ay,
90
+ width,
91
+ height
92
+ }, rotate, x, y);
93
+ }
94
+ function toTitleCase(str) {
95
+ return str.replace(/^\w/, (d) => d.toUpperCase());
96
+ }
97
+ var DEFAULT_ELLIPSIS = "…";
98
+ /**
99
+ * Truncates a string to fit within a specified pixel width or character count.
100
+ * If the string's width exceeds the maxWidth, it will be truncated. If the character
101
+ * count exceeds maxChars, it will also be truncated.
102
+ *
103
+ * The ellipsis can be placed at the start, middle, or end of the string.
104
+ */
105
+ function truncateText(text, { position = "end", ellipsis = DEFAULT_ELLIPSIS, maxWidth, style, maxChars }) {
106
+ if (!text) return "";
107
+ if (maxWidth === void 0 && maxChars === void 0) return text;
108
+ let workingText = text;
109
+ if (maxChars !== void 0 && text.length > maxChars) {
110
+ if (position === "start") workingText = ellipsis + text.slice(-maxChars);
111
+ else if (position === "middle") {
112
+ const half = Math.floor(maxChars / 2);
113
+ workingText = text.slice(0, half) + ellipsis + text.slice(-half);
114
+ } else workingText = text.slice(0, maxChars) + ellipsis;
115
+ }
116
+ if (maxWidth !== void 0) {
117
+ const fullWidth = getStringWidth(workingText, style);
118
+ if (fullWidth === null || fullWidth <= maxWidth) return workingText;
119
+ let availableWidth = maxWidth - (getStringWidth(ellipsis, style) ?? 0);
120
+ if (position === "start") {
121
+ let truncated = workingText.slice(ellipsis.length);
122
+ let truncatedWidth = getStringWidth(truncated, style);
123
+ while (truncatedWidth !== null && truncatedWidth > availableWidth && truncated.length > 0) {
124
+ truncated = truncated.slice(1);
125
+ truncatedWidth = getStringWidth(truncated, style);
126
+ }
127
+ return ellipsis + truncated;
128
+ } else if (position === "middle") {
129
+ const halfWidth = availableWidth / 2;
130
+ let left = "";
131
+ let right = "";
132
+ let bestLeft = "";
133
+ let bestRight = "";
134
+ for (let i = 0, j = workingText.length - 1; i < workingText.length && j >= 0; i++, j--) {
135
+ const leftTest = workingText.slice(0, i + 1);
136
+ const rightTest = workingText.slice(j);
137
+ const leftWidth = getStringWidth(leftTest, style);
138
+ const rightWidth = getStringWidth(rightTest, style);
139
+ if (leftWidth !== null && leftWidth <= halfWidth) left = leftTest;
140
+ if (rightWidth !== null && rightWidth <= halfWidth) right = rightTest;
141
+ const combinedWidth = getStringWidth(left + ellipsis + right, style);
142
+ if (combinedWidth !== null && combinedWidth <= maxWidth) {
143
+ bestLeft = left;
144
+ bestRight = right;
145
+ } else break;
146
+ }
147
+ return bestLeft + ellipsis + bestRight;
148
+ } else {
149
+ let truncated = workingText.slice(0, -ellipsis.length);
150
+ let truncatedWidth = getStringWidth(truncated + ellipsis, style);
151
+ while (truncatedWidth !== null && truncatedWidth > maxWidth && truncated.length > 0) {
152
+ truncated = truncated.slice(0, -1);
153
+ truncatedWidth = getStringWidth(truncated + ellipsis, style);
154
+ }
155
+ return truncated + ellipsis;
156
+ }
157
+ }
158
+ return workingText;
159
+ }
160
+ //#endregion
161
+ //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Text/Text.shared.svelte.js
162
+ function isCSSValue(value) {
163
+ return /^-?[\d.]+(%|em|rem|px|pt|cm|mm|in)?$/.test(value);
164
+ }
165
+ /**
166
+ * Check if a Text prop value is a data-space prop.
167
+ * Functions are always data props.
168
+ * Strings are data props unless they look like CSS values (e.g. "50%", "1em").
169
+ */
170
+ function isTextDataProp(value) {
171
+ if (typeof value === "function") return true;
172
+ if (typeof value === "string" && !isCSSValue(value)) return true;
173
+ return false;
174
+ }
175
+ var defaultKey = (_, i) => i;
176
+ function getPathLength(pathRef) {
177
+ if (pathRef && typeof pathRef.getTotalLength === "function") try {
178
+ return pathRef.getTotalLength();
179
+ } catch (e) {
180
+ console.error("Error getting path length:", e);
181
+ return 0;
182
+ }
183
+ return 0;
184
+ }
185
+ /**
186
+ * Convert css value to pixel value (ex. 0.71em => 11.36)
187
+ */
188
+ function getPixelValue(cssValue) {
189
+ if (typeof cssValue === "number") return cssValue;
190
+ const result = cssValue.match(/([\d.]+)(\D+)/);
191
+ const number = Number(result?.[1]);
192
+ switch (result?.[2]) {
193
+ case "px": return number;
194
+ case "em":
195
+ case "rem": return number * 16;
196
+ default: return 0;
197
+ }
198
+ }
199
+ /**
200
+ * Resolve the cap-height used by vertical-anchor math.
201
+ *
202
+ * Priority:
203
+ * 1. Explicit `capHeight` prop
204
+ * 2. `fontSize * 0.71` when `fontSize` is set (keeps centering correct as
205
+ * labels scale per-item)
206
+ * 3. `'0.71em'` (legacy default — only correct for ~16px text since
207
+ * `getPixelValue` resolves `em` against 16, not the actual font-size)
208
+ */
209
+ function resolveCapHeight(capHeight, fontSize) {
210
+ if (capHeight != null) return capHeight;
211
+ if (fontSize != null) return getPixelValue(fontSize) * .71;
212
+ return "0.71em";
213
+ }
214
+ /** Build the standard `markInfo` payload used by every Text variant. */
215
+ function textMarkInfo(props, dataMode) {
216
+ if (!dataMode) return {};
217
+ return {
218
+ data: props.data,
219
+ x: typeof props.x === "string" ? props.x : void 0,
220
+ y: typeof props.y === "string" ? props.y : void 0,
221
+ color: typeof props.fill === "string" ? props.fill : void 0
222
+ };
223
+ }
224
+ /**
225
+ * Reactive state shared by every per-layer Text variant. Instantiate from
226
+ * each `Text.svg.svelte` / `Text.canvas.svelte` / `Text.html.svelte`
227
+ * component setup, passing a getter for the props.
228
+ *
229
+ * Per-layer specific bits (SVG `bind:this` refs, canvas's `render` function,
230
+ * canvas-specific style measurement) stay in their respective `.svelte` files.
231
+ */
232
+ var TextState = class {
233
+ #getProps = () => ({});
234
+ /**
235
+ * Memoized props — `#getProps()` allocates a fresh object (it spreads `rest`),
236
+ * so calling it per derived meant ~30 allocations per instance per update.
237
+ */
238
+ #props = derived(() => this.#getProps());
239
+ chartCtx = getChartContext();
240
+ markData = getMarkData();
241
+ geo = getGeoContext();
242
+ pathRef;
243
+ #dataMode = derived(() => this.#props().data != null || isTextDataProp(this.#props().x) || isTextDataProp(this.#props().y));
244
+ get dataMode() {
245
+ return this.#dataMode();
246
+ }
247
+ set dataMode($$value) {
248
+ return this.#dataMode($$value);
249
+ }
250
+ #resolvedData = derived(() => this.dataMode ? this.markData(this.#props().data) : []);
251
+ #resolvedItems = derived(() => {
252
+ if (!this.dataMode) return [];
253
+ const keyFn = this.#props().key ?? defaultKey;
254
+ return this.#resolvedData().map((d, i) => {
255
+ const key = keyFn(d, i);
256
+ const resolved = this.resolveTextPosition(d);
257
+ const animated = this.#dataMotionMap?.get(key);
258
+ return {
259
+ d,
260
+ key,
261
+ x: animated?.x ?? resolved.x,
262
+ y: animated?.y ?? resolved.y
263
+ };
264
+ });
265
+ });
266
+ get resolvedItems() {
267
+ return this.#resolvedItems();
268
+ }
269
+ set resolvedItems($$value) {
270
+ return this.#resolvedItems($$value);
271
+ }
272
+ resolveTextPosition(d) {
273
+ const props = this.#props();
274
+ if (this.geo.projection) {
275
+ const [projX, projY] = resolveGeoDataPair(props.x, props.y, d, this.geo.projection);
276
+ return {
277
+ x: projX,
278
+ y: projY
279
+ };
280
+ }
281
+ const xDefault = typeof props.x === "number" ? props.x : props.x == null && this.chartCtx.config.x != null ? Number(this.chartCtx.xGet(d)) || 0 : 0;
282
+ const yDefault = typeof props.y === "number" ? props.y : props.y == null && this.chartCtx.config.y != null ? Number(this.chartCtx.yGet(d)) || 0 : 0;
283
+ return {
284
+ x: resolveDataProp(props.x, d, this.chartCtx.xScale, xDefault),
285
+ y: resolveDataProp(props.y, d, this.chartCtx.yScale, yDefault)
286
+ };
287
+ }
288
+ resolveTextValue(d) {
289
+ const value = this.#props().value;
290
+ if (typeof value === "function") {
291
+ const v = value(d);
292
+ return v != null ? String(v) : "";
293
+ }
294
+ if (typeof value === "string") {
295
+ const v = get(d, value);
296
+ return v != null ? String(v) : "";
297
+ }
298
+ return value != null ? String(value) : "";
299
+ }
300
+ #dataMotionMap = null;
301
+ #motionX;
302
+ #motionY;
303
+ #motionValue;
304
+ get motionX() {
305
+ return this.#motionX.current;
306
+ }
307
+ get motionY() {
308
+ return this.#motionY.current;
309
+ }
310
+ #resolvedWidth = derived(() => this.#props().path ? getPathLength(this.pathRef) : this.#props().width);
311
+ get resolvedWidth() {
312
+ return this.#resolvedWidth();
313
+ }
314
+ set resolvedWidth($$value) {
315
+ return this.#resolvedWidth($$value);
316
+ }
317
+ #defaultTruncateOptions = derived(() => ({
318
+ maxChars: void 0,
319
+ position: "end",
320
+ maxWidth: this.resolvedWidth
321
+ }));
322
+ #truncateConfig = derived(() => {
323
+ const truncate = this.#props().truncate;
324
+ if (typeof truncate === "boolean") {
325
+ if (truncate) return this.#defaultTruncateOptions();
326
+ return false;
327
+ }
328
+ return {
329
+ ...this.#defaultTruncateOptions(),
330
+ ...truncate ?? {}
331
+ };
332
+ });
333
+ get truncateConfig() {
334
+ return this.#truncateConfig();
335
+ }
336
+ set truncateConfig($$value) {
337
+ return this.#truncateConfig($$value);
338
+ }
339
+ #rawText = derived(() => {
340
+ const value = this.#props().value;
341
+ const motion = this.#props().motion;
342
+ const format$1 = this.#props().format;
343
+ if (typeof value === "function" || value == null) return "";
344
+ if (typeof value === "number" && motion) {
345
+ const v = this.#motionValue.current;
346
+ return format$1 ? format(v, format$1) : String(v);
347
+ }
348
+ return (format$1 ? format(value, format$1) : value.toString()).replace(/\\n/g, "\n");
349
+ });
350
+ get rawText() {
351
+ return this.#rawText();
352
+ }
353
+ set rawText($$value) {
354
+ return this.#rawText($$value);
355
+ }
356
+ #textValue = derived(() => {
357
+ const cfg = this.truncateConfig;
358
+ if (!cfg || cfg === true) return this.rawText;
359
+ return truncateText(this.rawText, cfg);
360
+ });
361
+ get textValue() {
362
+ return this.#textValue();
363
+ }
364
+ set textValue($$value) {
365
+ return this.#textValue($$value);
366
+ }
367
+ #spaceWidth = derived(() => getStringWidth("\xA0", void 0) || 0);
368
+ #wordsByLines = derived(() => {
369
+ const props = this.#props();
370
+ const width = props.width;
371
+ const scaleToFit = props.scaleToFit ?? false;
372
+ return this.textValue.split("\n").flatMap((line) => {
373
+ const words = line.split(/(?:(?! +)\s+)/);
374
+ if (width == null) return [{ words }];
375
+ return words.reduce((result, item) => {
376
+ const currentLine = result[result.length - 1];
377
+ const itemWidth = getStringWidth(item, void 0) || 0;
378
+ if (currentLine && (width == null || scaleToFit || (currentLine.width || 0) + itemWidth + this.#spaceWidth() < width)) {
379
+ currentLine.words.push(item);
380
+ currentLine.width = currentLine.width || 0;
381
+ currentLine.width += itemWidth + this.#spaceWidth();
382
+ } else {
383
+ const newLine = {
384
+ words: [item],
385
+ width: itemWidth
386
+ };
387
+ result.push(newLine);
388
+ }
389
+ return result;
390
+ }, []);
391
+ });
392
+ });
393
+ get wordsByLines() {
394
+ return this.#wordsByLines();
395
+ }
396
+ set wordsByLines($$value) {
397
+ return this.#wordsByLines($$value);
398
+ }
399
+ #lineCount = derived(() => this.wordsByLines.length);
400
+ get lineCount() {
401
+ return this.#lineCount();
402
+ }
403
+ set lineCount($$value) {
404
+ return this.#lineCount($$value);
405
+ }
406
+ #startDy = derived(() => {
407
+ const props = this.#props();
408
+ const verticalAnchor = props.verticalAnchor ?? "end";
409
+ const lineHeight = props.lineHeight ?? "1em";
410
+ const capHeight = resolveCapHeight(props.capHeight, props.fontSize);
411
+ if (verticalAnchor === "start") return getPixelValue(capHeight);
412
+ else if (verticalAnchor === "middle") return (this.lineCount - 1) / 2 * -getPixelValue(lineHeight) + getPixelValue(capHeight) / 2;
413
+ return (this.lineCount - 1) * -getPixelValue(lineHeight);
414
+ });
415
+ get startDy() {
416
+ return this.#startDy();
417
+ }
418
+ set startDy($$value) {
419
+ return this.#startDy($$value);
420
+ }
421
+ #dataModeStartDy = derived(() => {
422
+ const props = this.#props();
423
+ const verticalAnchor = props.verticalAnchor ?? "end";
424
+ const capHeight = resolveCapHeight(props.capHeight, props.fontSize);
425
+ if (verticalAnchor === "start") return getPixelValue(capHeight);
426
+ if (verticalAnchor === "middle") return getPixelValue(capHeight) / 2;
427
+ return 0;
428
+ });
429
+ get dataModeStartDy() {
430
+ return this.#dataModeStartDy();
431
+ }
432
+ set dataModeStartDy($$value) {
433
+ return this.#dataModeStartDy($$value);
434
+ }
435
+ #scaleTransform = derived(() => {
436
+ const props = this.#props();
437
+ const x = props.x;
438
+ const y = props.y;
439
+ const width = props.width;
440
+ if ((props.scaleToFit ?? false) && this.lineCount > 0 && typeof x === "number" && typeof y === "number" && typeof width === "number") {
441
+ const sx = width / (this.wordsByLines[0].width || 1);
442
+ const sy = sx;
443
+ return `matrix(${sx}, 0, 0, ${sy}, ${x - sx * x}, ${y - sy * y})`;
444
+ }
445
+ return "";
446
+ });
447
+ get scaleTransform() {
448
+ return this.#scaleTransform();
449
+ }
450
+ set scaleTransform($$value) {
451
+ return this.#scaleTransform($$value);
452
+ }
453
+ #rotateTransform = derived(() => {
454
+ const props = this.#props();
455
+ return props.rotate ? `rotate(${props.rotate}, ${props.x}, ${props.y})` : "";
456
+ });
457
+ get rotateTransform() {
458
+ return this.#rotateTransform();
459
+ }
460
+ set rotateTransform($$value) {
461
+ return this.#rotateTransform($$value);
462
+ }
463
+ #transform = derived(() => this.#props().transform ?? `${this.scaleTransform} ${this.rotateTransform}`);
464
+ get transform() {
465
+ return this.#transform();
466
+ }
467
+ set transform($$value) {
468
+ return this.#transform($$value);
469
+ }
470
+ #staticFill = derived(() => typeof this.#props().fill === "string" ? this.#props().fill : void 0);
471
+ get staticFill() {
472
+ return this.#staticFill();
473
+ }
474
+ set staticFill($$value) {
475
+ return this.#staticFill($$value);
476
+ }
477
+ #staticFillOpacity = derived(() => typeof this.#props().fillOpacity === "number" ? this.#props().fillOpacity : void 0);
478
+ get staticFillOpacity() {
479
+ return this.#staticFillOpacity();
480
+ }
481
+ set staticFillOpacity($$value) {
482
+ return this.#staticFillOpacity($$value);
483
+ }
484
+ #staticStroke = derived(() => typeof this.#props().stroke === "string" ? this.#props().stroke : void 0);
485
+ get staticStroke() {
486
+ return this.#staticStroke();
487
+ }
488
+ set staticStroke($$value) {
489
+ return this.#staticStroke($$value);
490
+ }
491
+ #staticStrokeWidth = derived(() => typeof this.#props().strokeWidth === "number" ? this.#props().strokeWidth : void 0);
492
+ get staticStrokeWidth() {
493
+ return this.#staticStrokeWidth();
494
+ }
495
+ set staticStrokeWidth($$value) {
496
+ return this.#staticStrokeWidth($$value);
497
+ }
498
+ #staticOpacity = derived(() => typeof this.#props().opacity === "number" ? this.#props().opacity : void 0);
499
+ get staticOpacity() {
500
+ return this.#staticOpacity();
501
+ }
502
+ set staticOpacity($$value) {
503
+ return this.#staticOpacity($$value);
504
+ }
505
+ #staticClassName = derived(() => typeof this.#props().class === "string" ? this.#props().class : void 0);
506
+ get staticClassName() {
507
+ return this.#staticClassName();
508
+ }
509
+ set staticClassName($$value) {
510
+ return this.#staticClassName($$value);
511
+ }
512
+ constructor(getProps) {
513
+ this.#getProps = getProps;
514
+ const initial = getProps();
515
+ const _initialX = initial.initialX ?? (typeof initial.x === "function" ? 0 : initial.x ?? 0);
516
+ const _initialY = initial.initialY ?? (typeof initial.y === "function" ? 0 : initial.y ?? 0);
517
+ this.#motionX = createMotion(_initialX, () => {
518
+ const x = this.#props().x;
519
+ return typeof x === "number" || typeof x === "string" ? x : 0;
520
+ }, initial.motion);
521
+ this.#motionY = createMotion(_initialY, () => {
522
+ const y = this.#props().y;
523
+ return typeof y === "number" || typeof y === "string" ? y : 0;
524
+ }, initial.motion);
525
+ this.#motionValue = createMotion(typeof initial.value === "number" ? initial.value : 0, () => typeof this.#props().value === "number" ? this.#props().value : 0, typeof initial.value === "number" && initial.motion ? typeof initial.motion === "object" && "type" in initial.motion ? initial.motion : void 0 : void 0);
526
+ this.#dataMotionMap = createDataMotionMap(initial.motion);
527
+ if (this.#dataMotionMap) this.#dataMotionMap;
528
+ }
529
+ };
530
+ //#endregion
531
+ //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Text/Text.svg.svelte
532
+ function Text_svg($$renderer, $$props) {
533
+ $$renderer.component(($$renderer) => {
534
+ const uid = props_id($$renderer);
535
+ let { svgRef: svgRefProp = void 0, ref: refProp = void 0, pathId = createId("text-path", uid), rotate, dx, dy, fontSize, $$slots, $$events, ...rest } = $$props;
536
+ const c = new TextState(() => ({
537
+ rotate,
538
+ dx,
539
+ dy,
540
+ fontSize,
541
+ ...rest
542
+ }));
543
+ c.chartCtx.registerComponent({
544
+ name: "Text",
545
+ kind: "mark",
546
+ markInfo: () => textMarkInfo(rest, c.dataMode)
547
+ });
548
+ if (c.dataMode) {
549
+ $$renderer.push(`<!--[0--><!--[-->`);
550
+ const each_array = ensure_array_like(c.resolvedItems);
551
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
552
+ let item = each_array[$$index];
553
+ const text = c.resolveTextValue(item.d);
554
+ const resolvedFill = resolveColorProp(rest.fill, item.d, c.chartCtx.cScale);
555
+ const resolvedStroke = resolveColorProp(rest.stroke, item.d, c.chartCtx.cScale);
556
+ const resolvedFillOpacity = resolveStyleProp(rest.fillOpacity, item.d);
557
+ const resolvedStrokeWidth = resolveStyleProp(rest.strokeWidth, item.d);
558
+ const resolvedOpacity = resolveStyleProp(rest.opacity, item.d);
559
+ const resolvedClass = resolveStyleProp(rest.class, item.d);
560
+ const dataRotateTransform = rotate ? `rotate(${rotate}, ${item.x}, ${item.y})` : "";
561
+ $$renderer.push(`<svg${attributes({
562
+ x: dx ?? 0,
563
+ y: dy ?? 0,
564
+ ...rest.svgProps,
565
+ class: clsx(["lc-text-svg", rest.svgProps?.class])
566
+ }, void 0, void 0, void 0, 3)}><text${attributes({
567
+ ...rest,
568
+ x: item.x,
569
+ y: item.y,
570
+ transform: rest.transform ?? dataRotateTransform,
571
+ "text-anchor": rest.textAnchor ?? "start",
572
+ "dominant-baseline": rest.dominantBaseline ?? "auto",
573
+ "font-size": fontSize,
574
+ fill: resolvedFill,
575
+ "fill-opacity": resolvedFillOpacity,
576
+ stroke: resolvedStroke,
577
+ "stroke-width": resolvedStrokeWidth,
578
+ opacity: resolvedOpacity,
579
+ class: clsx(["lc-text", resolvedClass])
580
+ }, void 0, void 0, void 0, 3)}><tspan${attr("x", item.x)}${attr("dy", c.dataModeStartDy)} class="lc-text-tspan">${escape_html(text)}</tspan></text></svg>`);
581
+ }
582
+ $$renderer.push(`<!--]-->`);
583
+ } else {
584
+ $$renderer.push(`<!--[-1--><svg${attributes({
585
+ x: dx ?? 0,
586
+ y: dy ?? 0,
587
+ ...rest.svgProps,
588
+ class: clsx(["lc-text-svg", rest.svgProps?.class])
589
+ }, void 0, void 0, void 0, 3)}>`);
590
+ if (rest.path) {
591
+ $$renderer.push(`<!--[0--><defs><!---->`);
592
+ $$renderer.push(`<path${attr("id", pathId)}${attr("d", rest.path)}></path>`);
593
+ $$renderer.push(`<!----></defs><text${attributes({
594
+ ...rest,
595
+ dy: dy ?? 0,
596
+ "font-size": fontSize,
597
+ fill: c.staticFill,
598
+ "fill-opacity": c.staticFillOpacity,
599
+ stroke: c.staticStroke,
600
+ "stroke-width": c.staticStrokeWidth,
601
+ opacity: c.staticOpacity,
602
+ transform: rest.transform,
603
+ class: clsx(["lc-text", c.staticClassName])
604
+ }, void 0, void 0, void 0, 3)}><textPath${attr_style(`text-anchor: ${stringify(rest.textAnchor ?? "start")};`)}${attr("dominant-baseline", rest.dominantBaseline ?? "auto")}${attr("href", `#${stringify(pathId)}`)}${attr("startOffset", rest.startOffset ?? "0%")} class="lc-text-path">${escape_html(c.wordsByLines.map((line) => line.words.join(" ")).join())}</textPath></text>`);
605
+ } else {
606
+ $$renderer.push(`<!--[-1--><text${attributes({
607
+ ...rest,
608
+ x: c.motionX,
609
+ y: c.motionY,
610
+ transform: c.transform,
611
+ "text-anchor": rest.textAnchor ?? "start",
612
+ "dominant-baseline": rest.dominantBaseline ?? "auto",
613
+ "font-size": fontSize,
614
+ fill: c.staticFill,
615
+ "fill-opacity": c.staticFillOpacity,
616
+ stroke: c.staticStroke,
617
+ "stroke-width": c.staticStrokeWidth,
618
+ opacity: c.staticOpacity,
619
+ class: clsx(["lc-text", c.staticClassName])
620
+ }, void 0, void 0, void 0, 3)}>`);
621
+ if (rest.segments) {
622
+ $$renderer.push(`<!--[0--><!--[-->`);
623
+ const each_array_1 = ensure_array_like(rest.segments);
624
+ for (let index = 0, $$length = each_array_1.length; index < $$length; index++) {
625
+ let segment = each_array_1[index];
626
+ $$renderer.push(`<tspan${attr("dy", index === 0 ? c.startDy : 0)}${attr_class(clsx(["lc-text-tspan", segment.class]))}>${escape_html(segment.value)}</tspan>`);
627
+ }
628
+ $$renderer.push(`<!--]-->`);
629
+ } else {
630
+ $$renderer.push(`<!--[-1--><!--[-->`);
631
+ const each_array_2 = ensure_array_like(c.wordsByLines);
632
+ for (let index = 0, $$length = each_array_2.length; index < $$length; index++) {
633
+ let line = each_array_2[index];
634
+ $$renderer.push(`<tspan${attr("x", c.motionX)}${attr("dy", index === 0 ? c.startDy : getPixelValue(rest.lineHeight ?? "1em"))} class="lc-text-tspan">${escape_html(line.words.join(" "))}</tspan>`);
635
+ }
636
+ $$renderer.push(`<!--]-->`);
637
+ }
638
+ $$renderer.push(`<!--]--></text>`);
639
+ }
640
+ $$renderer.push(`<!--]--></svg>`);
641
+ }
642
+ $$renderer.push(`<!--]-->`);
643
+ bind_props($$props, {
644
+ svgRef: svgRefProp,
645
+ ref: refProp
646
+ });
647
+ });
648
+ }
649
+ //#endregion
650
+ //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Text/Text.canvas.svelte
651
+ function Text_canvas($$renderer, $$props) {
652
+ $$renderer.component(($$renderer) => {
653
+ let { $$slots, $$events, ...rest } = $$props;
654
+ const c = new TextState(() => rest);
655
+ function getTextStyles(styleOverrides, itemFill, itemStroke, itemFillOpacity, itemStrokeWidth, itemOpacity, itemClass) {
656
+ return styleOverrides ? merge({ styles: { strokeWidth: itemStrokeWidth ?? c.staticStrokeWidth } }, styleOverrides) : {
657
+ styles: {
658
+ fill: itemFill ?? rest.fill,
659
+ fillOpacity: itemFillOpacity ?? c.staticFillOpacity,
660
+ stroke: itemStroke ?? rest.stroke,
661
+ strokeWidth: itemStrokeWidth ?? c.staticStrokeWidth,
662
+ opacity: itemOpacity ?? c.staticOpacity,
663
+ paintOrder: "stroke",
664
+ ...rest.fontSize != null ? { fontSize: typeof rest.fontSize === "number" ? `${rest.fontSize}px` : rest.fontSize } : {},
665
+ ...(rest.textAnchor ?? "start") !== "start" ? { textAnchor: rest.textAnchor } : {}
666
+ },
667
+ classes: cls("lc-text", itemClass ?? c.staticClassName),
668
+ style: rest.style
669
+ };
670
+ }
671
+ function render(ctx, styleOverrides) {
672
+ const textAnchor = rest.textAnchor ?? "start";
673
+ rest.verticalAnchor;
674
+ const lineHeight = rest.lineHeight ?? "1em";
675
+ const dx = rest.dx ?? 0;
676
+ const dy = rest.dy ?? 0;
677
+ const rotate = rest.rotate;
678
+ const x = rest.x;
679
+ const y = rest.y;
680
+ if (c.dataMode) {
681
+ const baseStyles = getTextStyles(styleOverrides);
682
+ const computedStyles = getComputedStyles(ctx.canvas, baseStyles);
683
+ ctx.font = `${computedStyles.fontSize} ${computedStyles.fontFamily}`;
684
+ ctx.textAlign = textAnchor === "middle" ? "center" : textAnchor === "end" ? "end" : "start";
685
+ for (const item of c.resolvedItems) {
686
+ const text = c.resolveTextValue(item.d);
687
+ const itemStyles = getTextStyles(styleOverrides, resolveColorProp(rest.fill, item.d, c.chartCtx.cScale), resolveColorProp(rest.stroke, item.d, c.chartCtx.cScale), resolveStyleProp(rest.fillOpacity, item.d), resolveStyleProp(rest.strokeWidth, item.d), resolveStyleProp(rest.opacity, item.d), resolveStyleProp(rest.class, item.d));
688
+ ctx.save();
689
+ if (rotate !== void 0) {
690
+ const radians = degreesToRadians(rotate);
691
+ ctx.translate(item.x, item.y);
692
+ ctx.rotate(radians);
693
+ ctx.translate(-item.x, -item.y);
694
+ }
695
+ renderText(ctx, text, {
696
+ x: item.x + getPixelValue(dx),
697
+ y: item.y + getPixelValue(dy) + c.dataModeStartDy
698
+ }, itemStyles);
699
+ ctx.restore();
700
+ }
701
+ } else {
702
+ const styles = getTextStyles(styleOverrides);
703
+ const effectiveLineHeight = getPixelValue(lineHeight);
704
+ const baseY = getPixelValue(c.motionY) + getPixelValue(dy) + getPixelValue(c.startDy);
705
+ const baseX = getPixelValue(c.motionX) + getPixelValue(dx);
706
+ ctx.save();
707
+ if (rotate !== void 0) {
708
+ const centerX = getPixelValue(typeof x === "function" ? 0 : x ?? 0);
709
+ const centerY = getPixelValue(typeof y === "function" ? 0 : y ?? 0);
710
+ const radians = degreesToRadians(rotate);
711
+ ctx.translate(centerX, centerY);
712
+ ctx.rotate(radians);
713
+ ctx.translate(-centerX, -centerY);
714
+ }
715
+ const computedStyles = getComputedStyles(ctx.canvas, styles);
716
+ ctx.font = `${computedStyles.fontSize} ${computedStyles.fontFamily}`;
717
+ ctx.textAlign = textAnchor === "middle" ? "center" : textAnchor === "end" ? "end" : "start";
718
+ if (rest.segments) {
719
+ let xOffset = baseX;
720
+ for (const segment of rest.segments) {
721
+ const segStyles = getTextStyles(styleOverrides, void 0, void 0, void 0, void 0, void 0, segment.class);
722
+ const text = String(segment.value);
723
+ const segComputedStyles = getComputedStyles(ctx.canvas, segStyles);
724
+ ctx.font = `${segComputedStyles.fontWeight || ""} ${segComputedStyles.fontSize || "10px"} ${segComputedStyles.fontFamily || "sans-serif"}`.trim();
725
+ renderText(ctx, text, {
726
+ x: xOffset,
727
+ y: baseY
728
+ }, segStyles);
729
+ xOffset += ctx.measureText(text).width;
730
+ }
731
+ } else for (let index = 0; index < c.wordsByLines.length; index++) {
732
+ const text = c.wordsByLines[index].words.join(" ");
733
+ const xPos = baseX;
734
+ const yPos = baseY + index * effectiveLineHeight;
735
+ renderText(ctx, text, {
736
+ x: xPos,
737
+ y: yPos
738
+ }, styles);
739
+ }
740
+ ctx.restore();
741
+ }
742
+ }
743
+ const fillKey = createKey(() => rest.fill);
744
+ const strokeKey = createKey(() => rest.stroke);
745
+ c.chartCtx.registerComponent({
746
+ name: "Text",
747
+ kind: "mark",
748
+ markInfo: () => textMarkInfo(rest, c.dataMode),
749
+ canvasRender: {
750
+ render,
751
+ deps: () => [
752
+ c.dataMode,
753
+ c.dataMode ? c.resolvedItems : null,
754
+ rest.value,
755
+ rest.segments,
756
+ c.motionX,
757
+ c.motionY,
758
+ fillKey.current,
759
+ strokeKey.current,
760
+ rest.strokeWidth,
761
+ rest.opacity,
762
+ rest.class,
763
+ c.truncateConfig,
764
+ rest.rotate,
765
+ rest.fontSize,
766
+ rest.lineHeight,
767
+ rest.textAnchor,
768
+ rest.verticalAnchor
769
+ ]
770
+ }
771
+ });
772
+ });
773
+ }
774
+ //#endregion
775
+ //#region node_modules/.pnpm/layerchart@2.5.0_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.57.0__9bc60734f10d29b7556189549fab5703/node_modules/layerchart/dist/components/Text/Text.html.svelte
776
+ function Text_html($$renderer, $$props) {
777
+ $$renderer.component(($$renderer) => {
778
+ let { $$slots, $$events, ...rest } = $$props;
779
+ const c = new TextState(() => rest);
780
+ c.chartCtx.registerComponent({
781
+ name: "Text",
782
+ kind: "mark",
783
+ markInfo: () => textMarkInfo(rest, c.dataMode)
784
+ });
785
+ if (c.dataMode) {
786
+ $$renderer.push(`<!--[0--><!--[-->`);
787
+ const each_array = ensure_array_like(c.resolvedItems);
788
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
789
+ let item = each_array[$$index];
790
+ const text = c.resolveTextValue(item.d);
791
+ const resolvedFill = resolveColorProp(rest.fill, item.d, c.chartCtx.cScale);
792
+ const resolvedFillOpacity = resolveStyleProp(rest.fillOpacity, item.d);
793
+ const resolvedOpacity = resolveStyleProp(rest.opacity, item.d);
794
+ const resolvedClass = resolveStyleProp(rest.class, item.d);
795
+ const textAnchor = rest.textAnchor ?? "start";
796
+ const verticalAnchor = rest.verticalAnchor ?? "end";
797
+ const translateX = textAnchor === "middle" ? "-50%" : textAnchor === "end" ? "-100%" : "0%";
798
+ const translateY = verticalAnchor === "middle" ? "-50%" : verticalAnchor === "end" ? "-100%" : "0%";
799
+ $$renderer.push(`<div${attr_class(clsx(["lc-text", resolvedClass]))}${attr_style("", {
800
+ position: "absolute",
801
+ left: `${stringify(getPixelValue(rest.dx ?? 0) + item.x)}px`,
802
+ top: `${stringify(getPixelValue(rest.dy ?? 0) + item.y)}px`,
803
+ transform: `translate(${translateX}, ${translateY}) rotate(${stringify(rest.rotate ?? 0)}deg)`,
804
+ "transform-origin": `${verticalAnchor === "middle" ? "center" : verticalAnchor === "end" ? "bottom" : "top"} ${textAnchor === "middle" ? "center" : textAnchor === "end" ? "right" : "left"}`,
805
+ "white-space": "pre-wrap",
806
+ "line-height": rest.lineHeight ?? "1em",
807
+ "font-size": typeof rest.fontSize === "number" ? `${rest.fontSize}px` : rest.fontSize,
808
+ color: resolvedFill,
809
+ opacity: resolvedOpacity ?? resolvedFillOpacity
810
+ })}>${escape_html(text)}</div>`);
811
+ }
812
+ $$renderer.push(`<!--]-->`);
813
+ } else {
814
+ $$renderer.push("<!--[-1-->");
815
+ const textAnchor = rest.textAnchor ?? "start";
816
+ const verticalAnchor = rest.verticalAnchor ?? "end";
817
+ const translateX = textAnchor === "middle" ? "-50%" : textAnchor === "end" ? "-100%" : "0%";
818
+ const translateY = verticalAnchor === "middle" ? "-50%" : verticalAnchor === "end" ? "-100%" : "0%";
819
+ $$renderer.push(`<div${attr_class(clsx(["lc-text", c.staticClassName]))}${attr_style("", {
820
+ position: "absolute",
821
+ left: `${stringify((typeof rest.dx === "number" ? rest.dx : 0) + (typeof c.motionX === "number" ? c.motionX : 0))}px`,
822
+ top: `${stringify((typeof rest.dy === "number" ? rest.dy : 0) + (typeof c.motionY === "number" ? c.motionY : 0))}px`,
823
+ transform: `translate(${translateX}, ${translateY}) rotate(${stringify(rest.rotate ?? 0)}deg)`,
824
+ "transform-origin": `${verticalAnchor === "middle" ? "center" : verticalAnchor === "end" ? "bottom" : "top"} ${textAnchor === "middle" ? "center" : textAnchor === "end" ? "right" : "left"}`,
825
+ "white-space": "pre-wrap",
826
+ "line-height": rest.lineHeight ?? "1em",
827
+ "font-size": typeof rest.fontSize === "number" ? `${rest.fontSize}px` : rest.fontSize,
828
+ color: c.staticFill,
829
+ opacity: c.staticOpacity ?? c.staticFillOpacity
830
+ })}>`);
831
+ if (rest.segments) {
832
+ $$renderer.push(`<!--[0--><!--[-->`);
833
+ const each_array_1 = ensure_array_like(rest.segments);
834
+ for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
835
+ let segment = each_array_1[$$index_1];
836
+ $$renderer.push(`<span${attr_class(clsx(segment.class))}>${escape_html(segment.value)}</span>`);
837
+ }
838
+ $$renderer.push(`<!--]-->`);
839
+ } else $$renderer.push(`<!--[-1-->${escape_html(c.textValue)}`);
840
+ $$renderer.push(`<!--]--></div>`);
841
+ }
842
+ $$renderer.push(`<!--]-->`);
843
+ });
844
+ }
845
+
846
+ export { Text_svg as T, Text_canvas as a, Text_html as b, getPixelValue as c, getTextRect as g, toTitleCase as t };
847
+ //# sourceMappingURL=Text.html.js-C8xO5Nz6.js.map