@orangelogic/design-system 2.162.0 → 2.164.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 (285) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
  33. package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
  34. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  35. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  36. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  37. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  38. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  39. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  40. package/library/chunks/channel.s_XjcUYI.js +5 -0
  41. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  42. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  43. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  44. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  45. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  46. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  47. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  48. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  49. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  50. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  51. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  52. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  53. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  54. package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
  55. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  56. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  57. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  58. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/position-picker.DjnhxIKF.js +4 -0
  124. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  125. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  126. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  127. package/library/chunks/range.DdOGybNB.js +9 -0
  128. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  129. package/library/chunks/sankey.BR94A-8L.js +294 -0
  130. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  131. package/library/chunks/select.C6_sM3Pr.js +7 -0
  132. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  133. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  134. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  135. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  136. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  137. package/library/chunks/step.almIqwJ6.js +51 -0
  138. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  139. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  140. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  141. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  142. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  143. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  144. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  145. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  146. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  147. package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
  148. package/library/chunks/transformation.8uLv6uwG.js +264 -0
  149. package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
  150. package/library/chunks/value.BXEGBVFV.js +44 -0
  151. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  152. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  153. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  154. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  155. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  156. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  157. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  158. package/library/components/alert.js +2 -2
  159. package/library/components/am-chart.js +3 -3
  160. package/library/components/animated-image.js +2 -2
  161. package/library/components/animation.js +2 -2
  162. package/library/components/array-line-clamp.js +1 -1
  163. package/library/components/asset-link-format.js +8 -7
  164. package/library/components/atoms.js +29 -29
  165. package/library/components/audio.js +3 -3
  166. package/library/components/avatar.js +2 -2
  167. package/library/components/border-input-group.js +1 -1
  168. package/library/components/breadcrumb-item.js +1 -1
  169. package/library/components/breadcrumb.js +1 -1
  170. package/library/components/button.js +3 -3
  171. package/library/components/checkbox.js +195 -18
  172. package/library/components/color-picker.js +4 -4
  173. package/library/components/color-swatch-group.js +5 -5
  174. package/library/components/color-swatch.js +2 -2
  175. package/library/components/confirm-popover.js +3 -3
  176. package/library/components/copy-button.js +2 -2
  177. package/library/components/corner-position-input-group.js +2 -2
  178. package/library/components/cropper.js +4 -4
  179. package/library/components/date-calendar.js +1 -1
  180. package/library/components/details.js +2 -2
  181. package/library/components/dialog.js +3 -3
  182. package/library/components/diff.js +1 -1
  183. package/library/components/divider.js +1 -1
  184. package/library/components/document-viewer.js +3 -3
  185. package/library/components/dot-pagination.js +2 -2
  186. package/library/components/drawer.js +3 -3
  187. package/library/components/dropdown.js +2 -2
  188. package/library/components/dynamic-select.js +6 -6
  189. package/library/components/e-chart.js +1 -1
  190. package/library/components/element-clamp.js +2 -2
  191. package/library/components/file-on-demand.js +350 -374
  192. package/library/components/folder-select.js +5 -5
  193. package/library/components/format-time.js +2 -2
  194. package/library/components/grid-item.js +1 -1
  195. package/library/components/header.js +2 -2
  196. package/library/components/hub-connection.js +2 -2
  197. package/library/components/icon-button.js +2 -2
  198. package/library/components/icon.js +2 -2
  199. package/library/components/iframe.js +2 -2
  200. package/library/components/image-comparer.js +2 -2
  201. package/library/components/image.js +3 -3
  202. package/library/components/include.js +1 -1
  203. package/library/components/input.js +3 -3
  204. package/library/components/line-clamp.js +1 -1
  205. package/library/components/markdown.js +11 -2704
  206. package/library/components/masonry.js +76 -73
  207. package/library/components/menu-item.js +2 -2
  208. package/library/components/molecules.js +3 -3
  209. package/library/components/mutation-observer.js +1 -1
  210. package/library/components/option.js +3 -3
  211. package/library/components/organisms.js +2 -2
  212. package/library/components/padding-input-group.js +1 -1
  213. package/library/components/pagination.js +6 -6
  214. package/library/components/position-picker.js +25 -25
  215. package/library/components/qr-code.js +1 -1
  216. package/library/components/radio-button.js +1 -1
  217. package/library/components/radio-card.js +1 -1
  218. package/library/components/radio-group.js +1 -1
  219. package/library/components/radio.js +2 -2
  220. package/library/components/range.js +1 -1
  221. package/library/components/rating.js +2 -2
  222. package/library/components/resize-observer.js +1 -1
  223. package/library/components/select.js +3 -3
  224. package/library/components/shadow-input-group.js +1 -1
  225. package/library/components/share-option-list.js +2 -2
  226. package/library/components/sidebar.js +3 -3
  227. package/library/components/size-input-group.js +3 -3
  228. package/library/components/split-panel.js +1 -1
  229. package/library/components/step.js +1 -1
  230. package/library/components/stepper-wizard.js +1 -1
  231. package/library/components/stepper.js +1 -1
  232. package/library/components/switch.js +1 -1
  233. package/library/components/tab-group.js +4 -4
  234. package/library/components/tab-panel.js +1 -1
  235. package/library/components/tab.js +2 -2
  236. package/library/components/tag.js +1 -1
  237. package/library/components/textarea.js +1 -1
  238. package/library/components/timecode.js +1 -1
  239. package/library/components/tooltip.js +1 -1
  240. package/library/components/tree-item.js +4 -4
  241. package/library/components/tree.js +2 -2
  242. package/library/components/typeface.js +2 -2
  243. package/library/components/types.js +122327 -120686
  244. package/library/components/video.js +2 -2
  245. package/library/package.json +2 -1
  246. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  247. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  248. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  249. package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
  250. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
  251. package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
  252. package/library/packages/events/src/events.d.ts +1 -0
  253. package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
  254. package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
  255. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
  256. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
  257. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
  258. package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
  259. package/library/packages/molecules/src/index.d.ts +1 -0
  260. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  261. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  262. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  263. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
  264. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
  265. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  266. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  267. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  268. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  269. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  270. package/library/packages/types/src/asset-link-format.d.ts +19 -0
  271. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  272. package/library/packages/types/src/tree-item.d.ts +12 -0
  273. package/library/react-web-component.d.ts +86 -8
  274. package/library/utils.js +64 -65
  275. package/package.json +2 -1
  276. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  277. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  278. package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
  279. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  280. package/library/chunks/content-builder.BU8X7I6V.js +0 -60
  281. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  282. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  283. package/library/chunks/index.DU0XUO4k.js +0 -176
  284. package/library/chunks/transformation.D1alV_s4.js +0 -189
  285. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -1,176 +0,0 @@
1
- import { o as P } from "./accessors.BHk36ecy.js";
2
- function Z() {
3
- return 0;
4
- }
5
- function Q(r) {
6
- return function() {
7
- return r;
8
- };
9
- }
10
- const T = 1664525, U = 1013904223, D = 4294967296;
11
- function V() {
12
- let r = 1;
13
- return () => (r = (T * r + U) % D) / D;
14
- }
15
- function X(r) {
16
- return typeof r == "object" && "length" in r ? r : Array.from(r);
17
- }
18
- function Y(r, u) {
19
- let n = r.length, e, t;
20
- for (; n; )
21
- t = u() * n-- | 0, e = r[n], r[n] = r[t], r[t] = e;
22
- return r;
23
- }
24
- function $(r, u) {
25
- for (var n = 0, e = (r = Y(Array.from(r), u)).length, t = [], i, f; n < e; )
26
- i = r[n], f && K(f, i) ? ++n : (f = B(t = b(t, i)), n = 0);
27
- return f;
28
- }
29
- function b(r, u) {
30
- var n, e;
31
- if (R(u, r)) return [u];
32
- for (n = 0; n < r.length; ++n)
33
- if (_(u, r[n]) && R(h(r[n], u), r))
34
- return [r[n], u];
35
- for (n = 0; n < r.length - 1; ++n)
36
- for (e = n + 1; e < r.length; ++e)
37
- if (_(h(r[n], r[e]), u) && _(h(r[n], u), r[e]) && _(h(r[e], u), r[n]) && R(O(r[n], r[e], u), r))
38
- return [r[n], r[e], u];
39
- throw new Error();
40
- }
41
- function _(r, u) {
42
- var n = r.r - u.r, e = u.x - r.x, t = u.y - r.y;
43
- return n < 0 || n * n < e * e + t * t;
44
- }
45
- function K(r, u) {
46
- var n = r.r - u.r + Math.max(r.r, u.r, 1) * 1e-9, e = u.x - r.x, t = u.y - r.y;
47
- return n > 0 && n * n > e * e + t * t;
48
- }
49
- function R(r, u) {
50
- for (var n = 0; n < u.length; ++n)
51
- if (!K(r, u[n]))
52
- return !1;
53
- return !0;
54
- }
55
- function B(r) {
56
- switch (r.length) {
57
- case 1:
58
- return rr(r[0]);
59
- case 2:
60
- return h(r[0], r[1]);
61
- case 3:
62
- return O(r[0], r[1], r[2]);
63
- }
64
- }
65
- function rr(r) {
66
- return {
67
- x: r.x,
68
- y: r.y,
69
- r: r.r
70
- };
71
- }
72
- function h(r, u) {
73
- var n = r.x, e = r.y, t = r.r, i = u.x, f = u.y, s = u.r, o = i - n, a = f - e, x = s - t, y = Math.sqrt(o * o + a * a);
74
- return {
75
- x: (n + i + o / y * x) / 2,
76
- y: (e + f + a / y * x) / 2,
77
- r: (y + t + s) / 2
78
- };
79
- }
80
- function O(r, u, n) {
81
- var e = r.x, t = r.y, i = r.r, f = u.x, s = u.y, o = u.r, a = n.x, x = n.y, y = n.r, c = e - f, M = e - a, A = t - s, k = t - x, E = o - i, N = y - i, W = e * e + t * t - i * i, z = W - f * f - s * s + o * o, L = W - a * a - x * x + y * y, l = M * A - c * k, d = (A * L - k * z) / (l * 2) - e, v = (k * E - A * N) / l, g = (M * z - c * L) / (l * 2) - t, m = (c * N - M * E) / l, q = v * v + m * m - 1, p = 2 * (i + d * v + g * m), S = d * d + g * g - i * i, j = -(Math.abs(q) > 1e-6 ? (p + Math.sqrt(p * p - 4 * q * S)) / (2 * q) : S / p);
82
- return {
83
- x: e + d + v * j,
84
- y: t + g + m * j,
85
- r: j
86
- };
87
- }
88
- function F(r, u, n) {
89
- var e = r.x - u.x, t, i, f = r.y - u.y, s, o, a = e * e + f * f;
90
- a ? (i = u.r + n.r, i *= i, o = r.r + n.r, o *= o, i > o ? (t = (a + o - i) / (2 * a), s = Math.sqrt(Math.max(0, o / a - t * t)), n.x = r.x - t * e - s * f, n.y = r.y - t * f + s * e) : (t = (a + i - o) / (2 * a), s = Math.sqrt(Math.max(0, i / a - t * t)), n.x = u.x + t * e - s * f, n.y = u.y + t * f + s * e)) : (n.x = u.x + n.r, n.y = u.y);
91
- }
92
- function G(r, u) {
93
- var n = r.r + u.r - 1e-6, e = u.x - r.x, t = u.y - r.y;
94
- return n > 0 && n * n > e * e + t * t;
95
- }
96
- function H(r) {
97
- var u = r._, n = r.next._, e = u.r + n.r, t = (u.x * n.r + n.x * u.r) / e, i = (u.y * n.r + n.y * u.r) / e;
98
- return t * t + i * i;
99
- }
100
- function w(r) {
101
- this._ = r, this.next = null, this.previous = null;
102
- }
103
- function nr(r, u) {
104
- if (!(i = (r = X(r)).length)) return 0;
105
- var n, e, t, i, f, s, o, a, x, y, c;
106
- if (n = r[0], n.x = 0, n.y = 0, !(i > 1)) return n.r;
107
- if (e = r[1], n.x = -e.r, e.x = n.r, e.y = 0, !(i > 2)) return n.r + e.r;
108
- F(e, n, t = r[2]), n = new w(n), e = new w(e), t = new w(t), n.next = t.previous = e, e.next = n.previous = t, t.next = e.previous = n;
109
- r: for (o = 3; o < i; ++o) {
110
- F(n._, e._, t = r[o]), t = new w(t), a = e.next, x = n.previous, y = e._.r, c = n._.r;
111
- do
112
- if (y <= c) {
113
- if (G(a._, t._)) {
114
- e = a, n.next = e, e.previous = n, --o;
115
- continue r;
116
- }
117
- y += a._.r, a = a.next;
118
- } else {
119
- if (G(x._, t._)) {
120
- n = x, n.next = e, e.previous = n, --o;
121
- continue r;
122
- }
123
- c += x._.r, x = x.previous;
124
- }
125
- while (a !== x.next);
126
- for (t.previous = n, t.next = e, n.next = e.previous = e = t, f = H(n); (t = t.next) !== e; )
127
- (s = H(t)) < f && (n = t, f = s);
128
- e = n.next;
129
- }
130
- for (n = [e._], t = e; (t = t.next) !== e; ) n.push(t._);
131
- for (t = $(n, u), o = 0; o < i; ++o) n = r[o], n.x -= t.x, n.y -= t.y;
132
- return t.r;
133
- }
134
- function tr(r) {
135
- return Math.sqrt(r.value);
136
- }
137
- function ur() {
138
- var r = null, u = 1, n = 1, e = Z;
139
- function t(i) {
140
- const f = V();
141
- return i.x = u / 2, i.y = n / 2, r ? i.eachBefore(I(r)).eachAfter(C(e, 0.5, f)).eachBefore(J(1)) : i.eachBefore(I(tr)).eachAfter(C(Z, 1, f)).eachAfter(C(e, i.r / Math.min(u, n), f)).eachBefore(J(Math.min(u, n) / (2 * i.r))), i;
142
- }
143
- return t.radius = function(i) {
144
- return arguments.length ? (r = P(i), t) : r;
145
- }, t.size = function(i) {
146
- return arguments.length ? (u = +i[0], n = +i[1], t) : [u, n];
147
- }, t.padding = function(i) {
148
- return arguments.length ? (e = typeof i == "function" ? i : Q(+i), t) : e;
149
- }, t;
150
- }
151
- function I(r) {
152
- return function(u) {
153
- u.children || (u.r = Math.max(0, +r(u) || 0));
154
- };
155
- }
156
- function C(r, u, n) {
157
- return function(e) {
158
- if (t = e.children) {
159
- var t, i, f = t.length, s = r(e) * u || 0, o;
160
- if (s) for (i = 0; i < f; ++i) t[i].r += s;
161
- if (o = nr(t, n), s) for (i = 0; i < f; ++i) t[i].r -= s;
162
- e.r = o + s;
163
- }
164
- };
165
- }
166
- function J(r) {
167
- return function(u) {
168
- var n = u.parent;
169
- u.r *= r, n && (u.x = n.x + r * u.x, u.y = n.y + r * u.y);
170
- };
171
- }
172
- export {
173
- Q as a,
174
- Z as c,
175
- ur as i
176
- };
@@ -1,189 +0,0 @@
1
- import { T as c, U as p } from "./asset-link-format.QzzboHHE.js";
2
- const v = "/AssetLink/";
3
- function T({
4
- asset: r,
5
- baseUrl: s,
6
- extension: l,
7
- options: u,
8
- parameters: f,
9
- transformations: o,
10
- useSession: $ = ""
11
- }) {
12
- if (s == null)
13
- return "";
14
- let i = s;
15
- const y = o?.findLast(
16
- (n) => n.key === c.Quality
17
- );
18
- if (y && (o = [
19
- ...o?.filter(
20
- (n) => n.key !== c.Quality
21
- ) || [],
22
- y
23
- ]), o) {
24
- const n = [];
25
- for (let e = 0; e < o.length; e++) {
26
- const a = o[e];
27
- if (a.key === c.Rotate) {
28
- let t = a.value.rotation ?? 0;
29
- for (; o[e + 1]?.key === c.Rotate; )
30
- e++, t += o[e].value.rotation ?? 0;
31
- t !== 0 && n.push({ key: c.Rotate, value: { rotation: t } });
32
- } else
33
- n.push(a);
34
- }
35
- o = n;
36
- }
37
- o && o.length > 0 && (i += "/t/"), o?.forEach(({ key: n, value: e }) => {
38
- if (n === c.Resize) {
39
- if (e.unit === p.AspectRatio && e.ratioWidth && e.ratioHeight) {
40
- i += `re_ar_${e.ratioWidth}:${e.ratioHeight}/`;
41
- return;
42
- }
43
- const a = [
44
- ...[
45
- {
46
- key: "re_w_",
47
- value: Math.round(e.width ?? 0)
48
- },
49
- {
50
- key: "re_h_",
51
- value: Math.round(e.height ?? 0)
52
- }
53
- ].filter((t) => t.value !== void 0).map((t) => ({
54
- key: t.key,
55
- value: Math.round(Number(t.value))
56
- })),
57
- {
58
- key: "re_rm_",
59
- value: "stretch"
60
- }
61
- ];
62
- a.forEach(({ key: t, value: d }, k) => {
63
- i += `${t}${d}${k < a.length - 1 ? "," : ""}`;
64
- }), i += "/";
65
- }
66
- if (n === c.Crop) {
67
- const a = e.unit === p.AspectRatio && !!e.ratioWidth && !!e.ratioHeight, t = !e.disabledSize && !a, d = t && (e.x !== void 0 || e.y !== void 0), k = [
68
- ...[
69
- {
70
- key: "c_",
71
- value: e.mode
72
- },
73
- ...a ? [
74
- {
75
- key: "ar_",
76
- value: `${e.ratioWidth}:${e.ratioHeight}`
77
- }
78
- ] : [],
79
- ...t ? [
80
- {
81
- key: "c_w_",
82
- value: Math.round(e.width ?? 0)
83
- },
84
- {
85
- key: "c_h_",
86
- value: Math.round(e.height ?? 0)
87
- },
88
- {
89
- key: "c_x_",
90
- value: Math.round(e.x ?? 0) === 0 && u?.omitZeroXY ? void 0 : Math.round(e.x ?? 0)
91
- },
92
- {
93
- key: "c_y_",
94
- value: Math.round(e.y ?? 0) === 0 && u?.omitZeroXY ? void 0 : Math.round(e.y ?? 0)
95
- }
96
- ] : [],
97
- ...!d && e.focusMode && e.focusMode !== "manual" ? [
98
- {
99
- key: e.isFocusModeAuto ? "acm_" : "c_g_",
100
- value: e.focusMode
101
- }
102
- ] : []
103
- ].filter((h) => h.value !== void 0 && h.value !== null).map((h) => ({
104
- key: h.key,
105
- value: h.value
106
- })),
107
- ...a ? [] : [
108
- {
109
- key: "c_whu_",
110
- value: "pixel"
111
- }
112
- ]
113
- ];
114
- k.forEach(({ key: h, value: g }, m) => {
115
- const M = ["c_w_", "c_h_", "c_x_", "c_y_"].includes(h);
116
- i += `${h}${M ? Math.round(Number(g)) : g}${m < k.length - 1 ? "," : ""}`;
117
- }), i += "/";
118
- }
119
- if (n === c.Rotate && ([
120
- {
121
- key: "r_a_",
122
- value: e.rotation
123
- }
124
- ].filter((t) => t.value !== void 0).map((t) => ({
125
- key: t.key,
126
- value: Math.round(Number(t.value))
127
- })).forEach(({ key: t, value: d }) => {
128
- i += `${t}${d}`;
129
- }), i += "/"), n === c.Quality) {
130
- const a = [
131
- {
132
- key: "q_level_",
133
- value: e.quality
134
- }
135
- ].filter((t) => t.value !== void 0).map((t) => ({
136
- key: t.key,
137
- value: Math.round(Number(t.value))
138
- }));
139
- a.forEach(({ key: t, value: d }, k) => {
140
- i += `${t}${d}${k < a.length - 1 ? "," : ""}`;
141
- }), i += "/";
142
- }
143
- if (n === c.Metadata) {
144
- const a = [
145
- {
146
- key: "fl_keep_metadata",
147
- value: e.keepMetadata
148
- }
149
- ].filter((t) => t.value !== void 0).map((t) => ({ key: t.key, value: t.value }));
150
- a.forEach(({ key: t }, d) => {
151
- i += `${t}${d < a.length - 1 ? "," : ""}`;
152
- }), i += "/";
153
- }
154
- }), l && (i += `${r?.identifier ?? crypto.randomUUID()}${l}`);
155
- const _ = [];
156
- return f && f.length > 0 && f.forEach(({ key: n, value: e }) => {
157
- _.push(
158
- `${encodeURIComponent(n.trim())}=${encodeURIComponent(e.trim())}`
159
- );
160
- }), s && $ && _.push(`UseSession=${encodeURIComponent($)}`), _.length > 0 && (i += `?${_.join("&")}`), i.endsWith("/") && (i = i.slice(0, -1)), i;
161
- }
162
- function R(r, s) {
163
- if (!r || !s?.length)
164
- return r;
165
- const l = T({ baseUrl: "", transformations: s }).replace(
166
- /\/t\//g,
167
- ""
168
- );
169
- if (!l)
170
- return r;
171
- const u = r.indexOf(v);
172
- if (u < 0)
173
- return `${r}/t/${l}`;
174
- const f = r.slice(0, u + v.length), o = r.slice(u + v.length), $ = o.indexOf("/t/");
175
- if ($ >= 0) {
176
- const y = o.slice(0, $);
177
- return `${f}${y}/t/${l}`;
178
- }
179
- const i = o.indexOf("/");
180
- if (i >= 0) {
181
- const y = o.slice(0, i), _ = o.slice(i);
182
- return `${f}${y}/t/${l}${_}`;
183
- }
184
- return `${r}/t/${l}`;
185
- }
186
- export {
187
- R as a,
188
- T as b
189
- };
@@ -1,333 +0,0 @@
1
- import { au as J, G as K, m as I, a0 as ee, a6 as te, a1 as V, aX as se, a as ie, a3 as ae, e as ne, V as q, aY as oe, aZ as re, L as E, T as R, aW as y, x as le } from "./am-chart.CqdmTS0P.js";
2
- import { A as de, aV as ve, aU as Te, at as Ae, as as be, a$ as Ne, Q as ye, a_ as De, b0 as Pe, av as we, X as Ie } from "./am-chart.CqdmTS0P.js";
3
- import { S as $ } from "./Scrollbar.DEv50o4R.js";
4
- import { B as Fe } from "./BaseColumnSeries.B57B3iHh.js";
5
- import { C as z } from "./EditableAxisLabel.C6H99qiS.js";
6
- import { E as Se } from "./EditableAxisLabel.C6H99qiS.js";
7
- import { C as W, a as Q } from "./CandlestickSeries.CmmI426l.js";
8
- import { A as Le, G as Me } from "./CandlestickSeries.CmmI426l.js";
9
- import { A as ke } from "./AxisLabelRadial.lE2gKah-.js";
10
- import { C as Ge } from "./ColumnSeries.DBgXk-b4.js";
11
- import { c as j, a as B } from "./MonotoneXTension.CJMEHHj3.js";
12
- import { c as H } from "./cardinal.BCA_LB0u.js";
13
- function Z(l, t) {
14
- this._context = l, this._t = t;
15
- }
16
- Z.prototype = {
17
- areaStart: function() {
18
- this._line = 0;
19
- },
20
- areaEnd: function() {
21
- this._line = NaN;
22
- },
23
- lineStart: function() {
24
- this._x = this._y = NaN, this._point = 0;
25
- },
26
- lineEnd: function() {
27
- 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
28
- },
29
- point: function(l, t) {
30
- switch (l = +l, t = +t, this._point) {
31
- case 0:
32
- this._point = 1, this._line ? this._context.lineTo(l, t) : this._context.moveTo(l, t);
33
- break;
34
- case 1:
35
- this._point = 2;
36
- // falls through
37
- default: {
38
- if (this._t <= 0)
39
- this._context.lineTo(this._x, t), this._context.lineTo(l, t);
40
- else {
41
- var e = this._x * (1 - this._t) + l * this._t;
42
- this._context.lineTo(e, this._y), this._context.lineTo(e, t);
43
- }
44
- break;
45
- }
46
- }
47
- this._x = l, this._y = t;
48
- }
49
- };
50
- function he(l) {
51
- return new Z(l, 1);
52
- }
53
- class Y extends $ {
54
- constructor() {
55
- super(...arguments), this.chart = this.children.push(J.new(this._root, {
56
- themeTags: ["chart"],
57
- interactive: !1,
58
- interactiveChildren: !1,
59
- panX: !1,
60
- panY: !1,
61
- wheelX: "none",
62
- wheelY: "none"
63
- })), this.overlay = this.children.push(K.new(this._root, {
64
- themeTags: ["overlay"],
65
- interactive: !1
66
- }));
67
- }
68
- _afterNew() {
69
- this._addOrientationClass(), this._settings.themeTags = I(this._settings.themeTags, ["scrollbar", "xy", "chart", this._settings.orientation]);
70
- const t = this.children;
71
- t.moveValue(this.thumb), t.moveValue(this.startGrip), t.moveValue(this.endGrip), this.thumb.set("opacity", 0), this.thumb.states.create("hover", { opacity: 0.2 });
72
- const e = this.chart.plotContainer;
73
- e.set("interactive", !1), e.remove("background"), e.children.removeValue(this.chart.zoomOutButton), super._afterNew();
74
- }
75
- _updateThumb() {
76
- super._updateThumb(), this.overlay.set("draw", (t) => {
77
- const e = this.startGrip, s = this.endGrip;
78
- let i = e.x(), a = e.y(), n = s.x(), o = s.y();
79
- const r = this.height(), h = this.width();
80
- i > n && ([i, n] = [n, i]), a > o && ([a, o] = [o, a]), this.get("orientation") === "horizontal" ? (t.moveTo(0, 0), t.lineTo(i, 0), t.lineTo(i, r), t.lineTo(0, r), t.lineTo(0, 0), t.moveTo(n, 0), t.lineTo(h, 0), t.lineTo(h, r), t.lineTo(n, r), t.lineTo(n, 0)) : (t.moveTo(0, 0), t.lineTo(0, a), t.lineTo(h, a), t.lineTo(h, 0), t.lineTo(0, 0), t.moveTo(0, o), t.lineTo(0, r), t.lineTo(h, r), t.lineTo(h, o), t.lineTo(0, o));
81
- });
82
- }
83
- }
84
- Y.className = "XYChartScrollbar";
85
- Y.classNames = $.classNames.concat([Y.className]);
86
- class S extends z {
87
- constructor() {
88
- super(...arguments), this._frequency = 1, this._itemMap = {};
89
- }
90
- _afterNew() {
91
- this._settings.themeTags = I(this._settings.themeTags, ["axis"]), this.fields.push("category"), super._afterNew();
92
- }
93
- _prepareAxisItems() {
94
- this.setPrivateRaw("baseInterval", this.get("baseInterval"));
95
- const t = this.get("renderer"), e = this.dataItems.length;
96
- let s = this.startIndex();
97
- s > 0 && s--;
98
- let i = this.endIndex();
99
- i < e && i++;
100
- let a = t.axisLength() / Math.max(t.get("minGridDistance"), 1 / Number.MAX_SAFE_INTEGER), n = Math.min(e, Math.ceil((i - s) / a));
101
- s = Math.floor(s / n) * n, this._frequency = n;
102
- for (let m = 0; m < e; m++)
103
- this._toggleDataItem(this.dataItems[m], !1);
104
- let o = Number(this.dataItems[s].get("category")), r = Number(this.dataItems[i - 1].get("category")), h = r - o;
105
- i - s < a && (h = r - o - ((r - o) / this.baseDuration() - (i - s)) * this.baseDuration());
106
- let c = ee(0, h, a, this.get("gridIntervals"));
107
- const A = te(c.timeUnit), b = this.getPrivate("baseInterval");
108
- V(c) < this.baseDuration() && (c = Object.assign({}, b));
109
- const P = this.get("dateFormats");
110
- let u = -1 / 0, _ = -1 / 0, d = -1 / 0, x, g = [], v = !1;
111
- for (let m = s; m < i; m++) {
112
- let T = this.dataItems[m], f = T.get("index"), w = !1, D = Number(T.get("category")), N = new Date(D), p = se(N, c.timeUnit);
113
- x = P[c.timeUnit];
114
- let G = !1;
115
- c.timeUnit != "year" && c.timeUnit != "week" && A && this.get("markUnitChange") && ie(u) && ae(D, u, A, this._root.utc) && (x = this.get("periodChangeDateFormats")[c.timeUnit], f - n * 0.5 < _ && g.pop(), g.push({ format: x, dataItem: T }), v = !0, G = !0, _ = f, d = p);
116
- let F = !1;
117
- c.timeUnit === "day" || c.timeUnit === "week" ? f - _ >= n && (F = !0) : p % c.count === 0 && p != d && (F = !0), !G && F && (f - n * 0.7 < _ && v && (w = !0), w || (g.push({ format: x, dataItem: T }), _ = f, d = p), v = !1), u = D;
118
- }
119
- if (g.length > 0) {
120
- let m = g[0].dataItem.get("index", 0);
121
- ne(g, (T) => {
122
- const f = T.dataItem, w = T.format;
123
- this._createAssets(f, []), this._toggleDataItem(f, !0);
124
- let D = Number(f.get("category")), N = new Date(D);
125
- const p = f.get("label");
126
- p && p.set("text", this._root.dateFormatter.format(N, w)), m++, this._prepareDataItem(f, m, n);
127
- });
128
- }
129
- }
130
- /**
131
- * Returns a duration of currently active `baseInterval` in milliseconds.
132
- *
133
- * @return Duration
134
- */
135
- baseDuration() {
136
- return V(this.getPrivate("baseInterval"));
137
- }
138
- /**
139
- * Returns text to be used in an axis tooltip for specific relative position.
140
- *
141
- * @param position Position
142
- * @return Tooltip text
143
- */
144
- getTooltipText(t, e) {
145
- let s = this.dataItems[this.axisPositionToIndex(t)];
146
- if (s) {
147
- let i = this.get("dateFormats")[this.getPrivate("baseInterval").timeUnit];
148
- return this._root.dateFormatter.format(new Date(s.get("category", 0)), this.get("tooltipDateFormat", i));
149
- }
150
- }
151
- _updateTooltipText(t, e) {
152
- t.label.set("text", this.getTooltipText(e));
153
- }
154
- }
155
- S.className = "CategoryDateAxis";
156
- S.classNames = z.classNames.concat([S.className]);
157
- class C extends q {
158
- constructor() {
159
- super(...arguments), this._dataGrouped = !1, this._groupingCalculated = !1, this._intervalDuration = 1;
160
- }
161
- _afterNew() {
162
- this._settings.themeTags = I(this._settings.themeTags, ["axis"]), super._afterNew();
163
- }
164
- _adjustMinMax(t, e, s, i) {
165
- let a;
166
- const n = this.getDurationFormatter(), o = this.get("baseUnit");
167
- if (this.setRaw("maxPrecision", 0), o == "millisecond" || o == "second" || o == "minute" || o == "hour") {
168
- s <= 1 && (s = 1), s = Math.round(s);
169
- let r = e - t;
170
- r === 0 && (r = Math.abs(e));
171
- let h = r / s, c = [60, 30, 20, 15, 10, 2, 1], A = 1;
172
- o == "hour" && (c = [24, 12, 6, 4, 2, 1]);
173
- for (let x of c)
174
- if (r / x > s) {
175
- A = x;
176
- break;
177
- }
178
- let b = Math.ceil((e - t) / A / s), P = Math.log(Math.abs(b)) * Math.LOG10E, u = Math.pow(10, Math.floor(P)) / 10, _ = b / u;
179
- b = oe(c, _) * u, h = A * b, t = Math.floor(t / h) * h, e = Math.ceil(e / h) * h, a = { min: t, max: e, step: h };
180
- } else
181
- a = super._adjustMinMax(t, e, s, i);
182
- return this.setPrivateRaw("durationFormat", n.getFormat(a.step, a.max, o)), a;
183
- }
184
- _formatText(t) {
185
- return this.getDurationFormatter().format(t, this.getPrivate("durationFormat"), this.get("baseUnit"));
186
- }
187
- /**
188
- * Returns text to be used in an axis tooltip for specific relative position.
189
- *
190
- * @param position Position
191
- * @return Tooltip text
192
- */
193
- getTooltipText(t, e) {
194
- const s = this.getDurationFormatter(), i = this.get("extraTooltipPrecision", 0), a = this.getPrivate("stepDecimalPlaces", 0) + i, n = re(this.positionToValue(t), a);
195
- return s.format(n, this.getPrivate("durationFormat"), this.get("baseUnit"));
196
- }
197
- }
198
- C.className = "DurationAxis";
199
- C.classNames = q.classNames.concat([C.className]);
200
- class X extends W {
201
- _draw() {
202
- const t = this._display;
203
- t.moveTo(this.get("lowX1", 0), this.get("lowY1", 0)), t.lineTo(this.get("highX1", 0), this.get("highY1", 0));
204
- let e = this.width(), s = this.height();
205
- if (this.get("orientation") == "vertical") {
206
- let i = s, a = 0;
207
- t.moveTo(0, i), t.lineTo(e / 2, i), t.moveTo(e / 2, a), t.lineTo(e, a);
208
- } else {
209
- let i = 0, a = e;
210
- t.moveTo(i, 0), t.lineTo(i, s / 2), t.moveTo(a, s / 2), t.lineTo(a, s);
211
- }
212
- }
213
- }
214
- X.className = "OHLC";
215
- X.classNames = W.classNames.concat([X.className]);
216
- class L extends Q {
217
- constructor() {
218
- super(...arguments), this.columns = this.addDisposer(new E(R.new({
219
- themeTags: ["autocolor"]
220
- }), () => X._new(this._root, {
221
- themeTags: I(this.columns.template.get("themeTags", []), ["ohlc", "series", "column"])
222
- }, [this.columns.template])));
223
- }
224
- /**
225
- * @ignore
226
- */
227
- makeColumn(t, e) {
228
- const s = this.mainContainer.children.push(e.make());
229
- return s._setDataItem(t), e.push(s), s;
230
- }
231
- _processAxisRange(t) {
232
- super._processAxisRange(t), t.columns = new E(R.new({}), () => X._new(this._root, {
233
- themeTags: I(t.columns.template.get("themeTags", []), ["ohlc", "series", "column"])
234
- }, [this.columns.template, t.columns.template]));
235
- }
236
- }
237
- L.className = "OHLCSeries";
238
- L.classNames = Q.classNames.concat([L.className]);
239
- class M extends y {
240
- _afterNew() {
241
- this._setDefault("curveFactory", j(this.get("tension", 0.5))), super._afterNew();
242
- }
243
- _updateChildren() {
244
- this.isDirty("tension") && (this.set("curveFactory", j(this.get("tension", 0.5))), this._valuesDirty = !0), super._updateChildren();
245
- }
246
- }
247
- M.className = "SmoothedYLineSeries";
248
- M.classNames = y.classNames.concat([M.className]);
249
- class O extends y {
250
- _afterNew() {
251
- this._setDefault("curveFactory", B(this.get("tension", 0.5))), super._afterNew();
252
- }
253
- _updateChildren() {
254
- this.isDirty("tension") && (this.set("curveFactory", B(this.get("tension", 0.5))), this._valuesDirty = !0), super._updateChildren();
255
- }
256
- }
257
- O.className = "SmoothedXLineSeries";
258
- O.classNames = y.classNames.concat([O.className]);
259
- class k extends y {
260
- _afterNew() {
261
- this._setDefault("curveFactory", H.tension(this.get("tension", 0.5))), super._afterNew();
262
- }
263
- _updateChildren() {
264
- this.isDirty("tension") && (this.set("curveFactory", H.tension(this.get("tension", 0.5))), this._valuesDirty = !0), super._updateChildren();
265
- }
266
- }
267
- k.className = "SmoothedXYLineSeries";
268
- k.classNames = y.classNames.concat([k.className]);
269
- class U extends y {
270
- _afterNew() {
271
- this._setDefault("curveFactory", he), super._afterNew();
272
- }
273
- _getPoints(t, e) {
274
- let s = e.points, i = this.get("stepWidth", le).value / 2, a = t.get("locationX", e.locationX), n = t.get("locationY", e.locationY), o = a, r = n;
275
- e.baseAxis === e.xAxis ? (a -= i, o += i) : e.baseAxis === e.yAxis && (n -= i, r += i);
276
- let h = e.xAxis.getDataItemPositionX(t, e.xField, a, e.vcx), c = e.yAxis.getDataItemPositionY(t, e.yField, n, e.vcy), A = e.xAxis.getDataItemPositionX(t, e.xField, o, e.vcx), b = e.yAxis.getDataItemPositionY(t, e.yField, r, e.vcy);
277
- if (this._shouldInclude(h)) {
278
- const P = this.getPoint(h, c), u = [P.x, P.y], _ = this.getPoint(A, b), d = [_.x, _.y];
279
- if (e.fillVisible) {
280
- let x = h, g = c, v = A, m = b;
281
- if (e.baseAxis === e.xAxis ? (g = e.basePosY, m = e.basePosY) : e.baseAxis === e.yAxis && (x = e.basePosX, v = e.basePosX), e.getOpen) {
282
- let w = t.get(e.xOpenField), D = t.get(e.yOpenField);
283
- if (w != null && D != null)
284
- if (a = t.get("openLocationX", e.openLocationX), n = t.get("openLocationY", e.openLocationY), o = a, r = n, e.baseAxis === e.xAxis ? (a -= i, o += i) : e.baseAxis === e.yAxis && (n -= i, r += i), e.stacked) {
285
- let N = t.get("stackToItemX"), p = t.get("stackToItemY");
286
- N ? (x = e.xAxis.getDataItemPositionX(N, e.xField, a, N.component.get("vcx")), v = e.xAxis.getDataItemPositionX(N, e.xField, o, N.component.get("vcx"))) : e.yAxis === e.baseAxis ? (x = e.basePosX, v = e.basePosX) : e.baseAxis === e.yAxis && (x = e.xAxis.getDataItemPositionX(t, e.xOpenField, a, e.vcx), v = e.xAxis.getDataItemPositionX(t, e.xOpenField, o, e.vcx)), p ? (g = e.yAxis.getDataItemPositionY(p, e.yField, n, p.component.get("vcy")), m = e.yAxis.getDataItemPositionY(p, e.yField, r, p.component.get("vcy"))) : e.xAxis === e.baseAxis ? (g = e.basePosY, m = e.basePosY) : e.baseAxis === e.yAxis && (g = e.yAxis.getDataItemPositionY(t, e.yOpenField, n, e.vcy), m = e.yAxis.getDataItemPositionY(t, e.yOpenField, r, e.vcy));
287
- } else
288
- x = e.xAxis.getDataItemPositionX(t, e.xOpenField, a, e.vcx), g = e.yAxis.getDataItemPositionY(t, e.yOpenField, n, e.vcy), v = e.xAxis.getDataItemPositionX(t, e.xOpenField, o, e.vcx), m = e.yAxis.getDataItemPositionY(t, e.yOpenField, r, e.vcy);
289
- }
290
- let T = this.getPoint(x, g), f = this.getPoint(v, m);
291
- u[2] = T.x, u[3] = T.y, d[2] = f.x, d[3] = f.y;
292
- }
293
- s.push(u), s.push(d), t.set("point", { x: u[0] + (d[0] - u[0]) / 2, y: u[1] + (d[1] - u[1]) / 2 });
294
- }
295
- this.get("noRisers") && (e.points = [], e.segments.push(s));
296
- }
297
- }
298
- U.className = "StepLineSeries";
299
- U.classNames = y.classNames.concat([U.className]);
300
- export {
301
- de as Axis,
302
- Le as AxisBullet,
303
- ve as AxisLabel,
304
- ke as AxisLabelRadial,
305
- Te as AxisRenderer,
306
- Ae as AxisRendererX,
307
- be as AxisRendererY,
308
- Ne as AxisTick,
309
- Fe as BaseColumnSeries,
310
- W as Candlestick,
311
- Q as CandlestickSeries,
312
- z as CategoryAxis,
313
- S as CategoryDateAxis,
314
- Ge as ColumnSeries,
315
- ye as DateAxis,
316
- De as DefaultTheme,
317
- C as DurationAxis,
318
- Se as EditableAxisLabel,
319
- Me as GaplessDateAxis,
320
- Pe as Grid,
321
- y as LineSeries,
322
- X as OHLC,
323
- L as OHLCSeries,
324
- O as SmoothedXLineSeries,
325
- k as SmoothedXYLineSeries,
326
- M as SmoothedYLineSeries,
327
- U as StepLineSeries,
328
- q as ValueAxis,
329
- J as XYChart,
330
- Y as XYChartScrollbar,
331
- we as XYCursor,
332
- Ie as XYSeries
333
- };