vue-data-ui 2.6.45 → 2.6.46

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 (158) hide show
  1. package/dist/{Arrow-km8WlE5f.js → Arrow-D4sCAfTr.js} +1 -1
  2. package/dist/{Arrow-Bfwl8OAb.cjs → Arrow-l2Rjf1KV.cjs} +1 -1
  3. package/dist/{BaseIcon-BjlTm9wZ.cjs → BaseIcon-BpdQLb-0.cjs} +1 -1
  4. package/dist/{BaseIcon-DywZoZmD.js → BaseIcon-Dx5FJt-N.js} +4 -3
  5. package/dist/{ColorPicker-gkZLlxzP.js → ColorPicker-Ag9OY75a.js} +3 -3
  6. package/dist/{ColorPicker-COPqu9IV.cjs → ColorPicker-BkUHmkbg.cjs} +1 -1
  7. package/dist/{DataTable-ImmHVJ0i.cjs → DataTable-B8Ui_Pd4.cjs} +1 -1
  8. package/dist/{DataTable-CrhPpuOy.js → DataTable-D9wdDVT6.js} +2 -2
  9. package/dist/{Legend-BVtJaKHS.js → Legend-BCngKEVr.js} +2 -2
  10. package/dist/{Legend-CfimXfYH.cjs → Legend-BFB4DMQS.cjs} +1 -1
  11. package/dist/{PackageVersion-DJu8NH8u.js → PackageVersion-DR6SOSy8.js} +1 -1
  12. package/dist/{PackageVersion-DjHCw2D_.cjs → PackageVersion-Da8iEjju.cjs} +1 -1
  13. package/dist/{PenAndPaper-AZpGBe7x.cjs → PenAndPaper-Dpjaroq-.cjs} +1 -1
  14. package/dist/{PenAndPaper-DC3X33rh.js → PenAndPaper-DxsKkGjV.js} +3 -3
  15. package/dist/{Shape-Bs4vWaC-.js → Shape-CcATSdDH.js} +1 -1
  16. package/dist/{Shape-Dl6kIG9D.cjs → Shape-DomxDqtX.cjs} +1 -1
  17. package/dist/{Slicer-CgnhZJgM.js → Slicer-Bw4VblBK.js} +2 -2
  18. package/dist/{Slicer-OBTv9I2-.cjs → Slicer-DlCXj2P9.cjs} +1 -1
  19. package/dist/{Title-DBgUbEU1.cjs → Title-CFmNnjPN.cjs} +1 -1
  20. package/dist/{Title-6BRNasyb.js → Title-Dr0O3Ohb.js} +1 -1
  21. package/dist/{Tooltip-BUPxcljs.js → Tooltip-C8mLFDBp.js} +1 -1
  22. package/dist/{Tooltip-TGHDsCSU.cjs → Tooltip-UBWsyt1M.cjs} +1 -1
  23. package/dist/{index-jVWdGfFl.js → index-BdV23M_4.js} +1 -1
  24. package/dist/{index-BXhJaCcU.cjs → index-FtxQWcA1.cjs} +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +2 -1
  27. package/dist/types/vue-data-ui.d.ts +2 -1
  28. package/dist/{useNestedProp-DhyCNtMY.cjs → useNestedProp-BIeXIQxH.cjs} +1 -1
  29. package/dist/{useNestedProp-BN5jbfiQ.js → useNestedProp-DyW-iWus.js} +1 -1
  30. package/dist/{usePrinter-DRWBcwQ7.cjs → usePrinter-BUMwWyWM.cjs} +1 -1
  31. package/dist/{usePrinter-BI95cSFJ.js → usePrinter-TFomTfxX.js} +1 -1
  32. package/dist/{vue-data-ui-DFmsvz9E.js → vue-data-ui-Cal0DvqU.js} +61 -61
  33. package/dist/{vue-data-ui-B0eO9goE.cjs → vue-data-ui-DBoVETZN.cjs} +1 -1
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-BcdL4c9H.js → vue-ui-3d-bar-DUMfvSbU.js} +9 -9
  37. package/dist/{vue-ui-3d-bar-CwXgNWXb.cjs → vue-ui-3d-bar-GTKfWFni.cjs} +1 -1
  38. package/dist/{vue-ui-accordion-DOBMerZl.js → vue-ui-accordion-2_hSAOvX.js} +3 -3
  39. package/dist/{vue-ui-accordion-DdHwnq9o.cjs → vue-ui-accordion-BIBhKMbJ.cjs} +1 -1
  40. package/dist/{vue-ui-age-pyramid-Dtaikxqn.js → vue-ui-age-pyramid-C0UfrmeD.js} +10 -10
  41. package/dist/{vue-ui-age-pyramid-i52Ub253.cjs → vue-ui-age-pyramid-DotN5JY1.cjs} +1 -1
  42. package/dist/{vue-ui-annotator-BrjeA9CQ.js → vue-ui-annotator-C-9pwUrR.js} +1 -1
  43. package/dist/{vue-ui-annotator-CKUZCHHC.cjs → vue-ui-annotator-C0V4kD4I.cjs} +1 -1
  44. package/dist/{vue-ui-bullet-C1xxCzws.js → vue-ui-bullet-6vftOeqJ.js} +8 -8
  45. package/dist/{vue-ui-bullet-DxUauLaF.cjs → vue-ui-bullet-Ct39TnfH.cjs} +1 -1
  46. package/dist/{vue-ui-candlestick-t1BaVylo.cjs → vue-ui-candlestick-Cxpk32bR.cjs} +1 -1
  47. package/dist/{vue-ui-candlestick-CPF7rQqu.js → vue-ui-candlestick-IxSh2gnY.js} +11 -11
  48. package/dist/{vue-ui-carousel-table-BqPfItK8.cjs → vue-ui-carousel-table-BinpEAPd.cjs} +1 -1
  49. package/dist/{vue-ui-carousel-table-x8RLpKZv.js → vue-ui-carousel-table-DreHo_wE.js} +4 -4
  50. package/dist/{vue-ui-chestnut-SdFREl6l.js → vue-ui-chestnut-3saDHpZ-.js} +8 -8
  51. package/dist/{vue-ui-chestnut-BiX9TQ2v.cjs → vue-ui-chestnut-CpYTb1wd.cjs} +1 -1
  52. package/dist/{vue-ui-circle-pack-DVkRm1KL.js → vue-ui-circle-pack-BechgWzd.js} +9 -9
  53. package/dist/{vue-ui-circle-pack-B28TVLHQ.cjs → vue-ui-circle-pack-BfskRpSw.cjs} +1 -1
  54. package/dist/{vue-ui-cursor-CY5VZS8t.js → vue-ui-cursor-BEuJm8Mb.js} +2 -2
  55. package/dist/{vue-ui-cursor-BkQNdavl.cjs → vue-ui-cursor-CRMGfBFa.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-DQ8lax7M.js → vue-ui-dashboard-DSrb1InR.js} +2 -2
  57. package/dist/{vue-ui-dashboard-BCcNNuM_.cjs → vue-ui-dashboard-TQto_FFI.cjs} +1 -1
  58. package/dist/{vue-ui-digits-D-F0Chxn.cjs → vue-ui-digits-BRPGEv7S.cjs} +1 -1
  59. package/dist/{vue-ui-digits-BkXEbzlS.js → vue-ui-digits-BeoOy04C.js} +2 -2
  60. package/dist/{vue-ui-donut-qRDAQa4n.js → vue-ui-donut-BWQ3vgjP.js} +12 -12
  61. package/dist/{vue-ui-donut-Dxie1WUb.cjs → vue-ui-donut-Dam0YSMu.cjs} +1 -1
  62. package/dist/{vue-ui-donut-evolution-C8ZQum6h.cjs → vue-ui-donut-evolution-DOXHsGwg.cjs} +1 -1
  63. package/dist/{vue-ui-donut-evolution-YKmsjVkR.js → vue-ui-donut-evolution-DQIaWcso.js} +11 -11
  64. package/dist/{vue-ui-dumbbell-bOMg4szX.cjs → vue-ui-dumbbell--mlgQyZ7.cjs} +1 -1
  65. package/dist/{vue-ui-dumbbell-C6OpTSyF.js → vue-ui-dumbbell-BAA0L5kU.js} +10 -10
  66. package/dist/{vue-ui-flow-aIpHJK9l.js → vue-ui-flow-CbIxR8qu.js} +9 -9
  67. package/dist/{vue-ui-flow-Bnj7K0Td.cjs → vue-ui-flow-zigj6Xbo.cjs} +1 -1
  68. package/dist/{vue-ui-funnel-Ckn6d97S.js → vue-ui-funnel-C1CjZHuh.js} +9 -9
  69. package/dist/{vue-ui-funnel-CapST2C3.cjs → vue-ui-funnel-Cs-Kjiev.cjs} +1 -1
  70. package/dist/{vue-ui-galaxy-FIQp4ePf.cjs → vue-ui-galaxy-CWI4H3RW.cjs} +1 -1
  71. package/dist/{vue-ui-galaxy-0p-jvo0s.js → vue-ui-galaxy-G9AFzo0J.js} +11 -11
  72. package/dist/{vue-ui-gauge-C1QU2678.cjs → vue-ui-gauge-CsyLGIqh.cjs} +1 -1
  73. package/dist/{vue-ui-gauge-CtzP0_kK.js → vue-ui-gauge-hDpxwLu6.js} +7 -7
  74. package/dist/{vue-ui-gizmo-D6E03WtQ.cjs → vue-ui-gizmo-BIcmHlyo.cjs} +1 -1
  75. package/dist/{vue-ui-gizmo--TFv_z_f.js → vue-ui-gizmo-Bc-DWND7.js} +3 -3
  76. package/dist/{vue-ui-heatmap-Bx9RCECY.js → vue-ui-heatmap-8p4PejGU.js} +10 -10
  77. package/dist/{vue-ui-heatmap-DQ_4z6a6.cjs → vue-ui-heatmap-DZ9xsMHI.cjs} +1 -1
  78. package/dist/{vue-ui-history-plot-BNybvrYe.cjs → vue-ui-history-plot-DiTEY9hR.cjs} +1 -1
  79. package/dist/{vue-ui-history-plot-OlxcB4fR.js → vue-ui-history-plot-W2UVpzIY.js} +11 -11
  80. package/dist/{vue-ui-kpi-DhsQdhIg.cjs → vue-ui-kpi-BXQ6gSky.cjs} +1 -1
  81. package/dist/{vue-ui-kpi-D-EjjlYh.js → vue-ui-kpi-DFFosWUi.js} +3 -3
  82. package/dist/{vue-ui-mini-loader-CYRJtuw3.js → vue-ui-mini-loader-C2uhjtCz.js} +2 -2
  83. package/dist/{vue-ui-mini-loader-gsh0jMbc.cjs → vue-ui-mini-loader-C8hmEB9w.cjs} +1 -1
  84. package/dist/{vue-ui-molecule-Dke-JabR.js → vue-ui-molecule-B1pxOA3p.js} +10 -10
  85. package/dist/{vue-ui-molecule-K4PM7UqE.cjs → vue-ui-molecule-CXIE8hWW.cjs} +1 -1
  86. package/dist/{vue-ui-mood-radar-sXLyAWIK.js → vue-ui-mood-radar-B-bELxUM.js} +11 -11
  87. package/dist/{vue-ui-mood-radar-CnR7mp7Z.cjs → vue-ui-mood-radar-BuLuDh5y.cjs} +1 -1
  88. package/dist/{vue-ui-nested-donuts-CJ9r-x9P.js → vue-ui-nested-donuts-C4isJwag.js} +11 -11
  89. package/dist/{vue-ui-nested-donuts-DW1Zx5R0.cjs → vue-ui-nested-donuts-C4vK7cf-.cjs} +1 -1
  90. package/dist/{vue-ui-onion-CVRrdFde.js → vue-ui-onion-BNPFlq-G.js} +11 -11
  91. package/dist/{vue-ui-onion-DM-jq72Y.cjs → vue-ui-onion-nbqNRCyk.cjs} +1 -1
  92. package/dist/{vue-ui-parallel-coordinate-plot-DMouPTwE.cjs → vue-ui-parallel-coordinate-plot-C9FIQC4s.cjs} +1 -1
  93. package/dist/{vue-ui-parallel-coordinate-plot-DLVjGpqC.js → vue-ui-parallel-coordinate-plot-DFHwTxhN.js} +12 -12
  94. package/dist/{vue-ui-quadrant-BGuywSpy.js → vue-ui-quadrant-C4NULaSL.js} +12 -12
  95. package/dist/{vue-ui-quadrant-CXFcrSRD.cjs → vue-ui-quadrant-CEyZ6gCX.cjs} +1 -1
  96. package/dist/{vue-ui-quick-chart-9R835dAy.cjs → vue-ui-quick-chart-B7PqLKWn.cjs} +1 -1
  97. package/dist/{vue-ui-quick-chart-D_ZSUMnh.js → vue-ui-quick-chart-m9kWUtKc.js} +9 -9
  98. package/dist/{vue-ui-radar-CrF3XMq8.js → vue-ui-radar-CKb7rcO0.js} +12 -12
  99. package/dist/{vue-ui-radar-CGSB8Q_3.cjs → vue-ui-radar-DHH8CDle.cjs} +1 -1
  100. package/dist/{vue-ui-rating-DCH03Nd-.js → vue-ui-rating-BowDISAW.js} +2 -2
  101. package/dist/{vue-ui-rating-BiwEz-WI.cjs → vue-ui-rating-nYq9NVf8.cjs} +1 -1
  102. package/dist/{vue-ui-relation-circle-D7sKIx2H.cjs → vue-ui-relation-circle-CXa8v5cY.cjs} +1 -1
  103. package/dist/{vue-ui-relation-circle-CFB3nQrw.js → vue-ui-relation-circle-CtaNRzML.js} +7 -7
  104. package/dist/{vue-ui-rings-CMzJJbL7.cjs → vue-ui-rings-CRgcPBhj.cjs} +1 -1
  105. package/dist/{vue-ui-rings-CDFQgsVL.js → vue-ui-rings-DaydpH_W.js} +12 -12
  106. package/dist/{vue-ui-scatter-CYweE3aN.js → vue-ui-scatter-Bx16gq37.js} +12 -12
  107. package/dist/{vue-ui-scatter-Cpc9LK6H.cjs → vue-ui-scatter-CH8b47_g.cjs} +1 -1
  108. package/dist/{vue-ui-screenshot-BA27Irge.cjs → vue-ui-screenshot-BOqEw_Ty.cjs} +1 -1
  109. package/dist/{vue-ui-screenshot-BRY1fQOv.js → vue-ui-screenshot-j_ruTkOe.js} +1 -1
  110. package/dist/{vue-ui-skeleton-Dsd0bx0Y.js → vue-ui-skeleton-CVnkLuNk.js} +3 -3
  111. package/dist/{vue-ui-skeleton-CLMRPxZm.cjs → vue-ui-skeleton-CX4m8kLi.cjs} +1 -1
  112. package/dist/{vue-ui-smiley-CeC-WFLx.js → vue-ui-smiley-DGfBC_1p.js} +2 -2
  113. package/dist/{vue-ui-smiley-CNnxNaGC.cjs → vue-ui-smiley-DOcs96EG.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-C8FlaTDz.js → vue-ui-spark-trend-BjNjO7Al.js} +5 -5
  115. package/dist/{vue-ui-spark-trend-liGslvUe.cjs → vue-ui-spark-trend-Cx5_BczW.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-BjCkuYB0.js → vue-ui-sparkbar-Bj9M7Klo.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-DTUuvjOA.cjs → vue-ui-sparkbar-CzRw1-5c.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-BEL_6k7M.cjs → vue-ui-sparkgauge-iMqket_H.cjs} +1 -1
  119. package/dist/{vue-ui-sparkgauge-BBJvgM0r.js → vue-ui-sparkgauge-mx5x8jhB.js} +4 -4
  120. package/dist/{vue-ui-sparkhistogram-DgRpgf4S.js → vue-ui-sparkhistogram-knnJtMmd.js} +5 -5
  121. package/dist/{vue-ui-sparkhistogram-B12f_DfZ.cjs → vue-ui-sparkhistogram-w4t8R3kU.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-CgNq3TDg.cjs → vue-ui-sparkline-BgGreU8G.cjs} +1 -1
  123. package/dist/{vue-ui-sparkline-COtgfnKN.js → vue-ui-sparkline-C4xJULc3.js} +4 -4
  124. package/dist/{vue-ui-sparkstackbar-3qtBnVN-.js → vue-ui-sparkstackbar-DKozbgvk.js} +5 -5
  125. package/dist/{vue-ui-sparkstackbar-JgTWCear.cjs → vue-ui-sparkstackbar-oCiVPgqg.cjs} +1 -1
  126. package/dist/{vue-ui-stackbar-BIQOmKWQ.cjs → vue-ui-stackbar-Bomp_wIS.cjs} +1 -1
  127. package/dist/{vue-ui-stackbar-BzWMNHEl.js → vue-ui-stackbar-avxRfDtE.js} +13 -13
  128. package/dist/{vue-ui-strip-plot-Pr-p3HVe.cjs → vue-ui-strip-plot-7k2wQR85.cjs} +1 -1
  129. package/dist/{vue-ui-strip-plot-B5yz7F4O.js → vue-ui-strip-plot-CdLa8dCp.js} +11 -11
  130. package/dist/{vue-ui-table-DfzIKXYz.js → vue-ui-table-C0a-SgcX.js} +1 -1
  131. package/dist/{vue-ui-table-Da8yPHbm.cjs → vue-ui-table-CE-PgrMl.cjs} +1 -1
  132. package/dist/{vue-ui-table-heatmap-B42LEDQq.js → vue-ui-table-heatmap-BoI6tise.js} +4 -4
  133. package/dist/{vue-ui-table-heatmap-m9WunlMI.cjs → vue-ui-table-heatmap-ycSv15rY.cjs} +1 -1
  134. package/dist/{vue-ui-table-sparkline-D0NpqAlx.js → vue-ui-table-sparkline-Dxx6025N.js} +5 -5
  135. package/dist/{vue-ui-table-sparkline-D87wVYbh.cjs → vue-ui-table-sparkline-idKvXcFK.cjs} +1 -1
  136. package/dist/{vue-ui-thermometer-CpaWOGHr.cjs → vue-ui-thermometer-Bu1o-YxS.cjs} +1 -1
  137. package/dist/{vue-ui-thermometer-CLrrfpCH.js → vue-ui-thermometer-Cx0BYvoa.js} +7 -7
  138. package/dist/{vue-ui-timer-DJ3N2OIu.cjs → vue-ui-timer-D_UKwqRG.cjs} +1 -1
  139. package/dist/{vue-ui-timer-ruhqlCDV.js → vue-ui-timer-DkGY_7Z9.js} +5 -5
  140. package/dist/{vue-ui-tiremarks-B1PaJvW_.js → vue-ui-tiremarks-CL8yqBs3.js} +7 -7
  141. package/dist/{vue-ui-tiremarks-By-ZwLdD.cjs → vue-ui-tiremarks-DTm_Xj8_.cjs} +1 -1
  142. package/dist/vue-ui-treemap-WcZTaeP0.js +956 -0
  143. package/dist/vue-ui-treemap-rohF9UGD.cjs +1 -0
  144. package/dist/{vue-ui-vertical-bar-Bi_p2HMG.js → vue-ui-vertical-bar-Czmk3lor.js} +12 -12
  145. package/dist/{vue-ui-vertical-bar-D51OT6tD.cjs → vue-ui-vertical-bar-EJofGF6Z.cjs} +1 -1
  146. package/dist/{vue-ui-waffle-BRFWNTTy.cjs → vue-ui-waffle-C7Lq9EWX.cjs} +1 -1
  147. package/dist/{vue-ui-waffle-D_OFNFu_.js → vue-ui-waffle-Ci5lps_0.js} +12 -12
  148. package/dist/{vue-ui-wheel-C_0xODX0.cjs → vue-ui-wheel-DSUUCTFP.cjs} +1 -1
  149. package/dist/{vue-ui-wheel-Dm-sn-fc.js → vue-ui-wheel-DWSgTz2U.js} +7 -7
  150. package/dist/{vue-ui-word-cloud-WO_xGFwd.js → vue-ui-word-cloud-IoOiZMCJ.js} +10 -10
  151. package/dist/{vue-ui-word-cloud-CpbPC0k6.cjs → vue-ui-word-cloud-pp9BsZMx.cjs} +1 -1
  152. package/dist/{vue-ui-xy-DYGsBFzv.js → vue-ui-xy-Bk09XvD1.js} +14 -14
  153. package/dist/{vue-ui-xy-canvas-SpUUvBPW.js → vue-ui-xy-canvas-BEWBX2Os.js} +12 -12
  154. package/dist/{vue-ui-xy-canvas-DCFJnGtu.cjs → vue-ui-xy-canvas-hUlid7hP.cjs} +1 -1
  155. package/dist/{vue-ui-xy-ArWU04zz.cjs → vue-ui-xy-e1xFpXmD.cjs} +1 -1
  156. package/package.json +1 -1
  157. package/dist/vue-ui-treemap-B3_lUi3B.js +0 -939
  158. package/dist/vue-ui-treemap-DX_oIHsl.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BXhJaCcU.cjs"),Fe=require("./Title-DBgUbEU1.cjs"),xe=require("./usePrinter-DRWBcwQ7.cjs"),De=require("./Tooltip-TGHDsCSU.cjs"),qe=require("./Legend-CfimXfYH.cjs"),Me=require("./vue-ui-skeleton-CLMRPxZm.cjs"),He=require("./DataTable-ImmHVJ0i.cjs"),Ue=require("./vue-ui-accordion-DdHwnq9o.cjs"),Te=require("./useResponsive-N8jl0-aC.cjs"),Se=require("./useNestedProp-DhyCNtMY.cjs"),We=require("./PackageVersion-DjHCw2D_.cjs"),Ge=require("./PenAndPaper-AZpGBe7x.cjs"),je=require("./useUserOptionState-BgepsfED.cjs"),Xe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ye=require("./BaseIcon-BjlTm9wZ.cjs"),Ze=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function $e(r,c){const i=r.length;if(i===0)throw new Error(`Max aspect ratio cannot be computed: ${r} is an empty array`);{let d=1/0,u=-1/0,v=0;for(let p=0;p<i;p+=1){const f=r[p].normalizedValue;f<d&&(d=f),f>u&&(u=f),v+=f}return Math.max(c**2*u/v**2,v**2/(c**2*d))}}function Be(r){const{xOffset:c,yOffset:i,width:d,height:u}=r;return{x0:c,y0:i,x1:c+d,y1:i+u}}function Je(r,c,i){if(r.length===0)return!0;{const d=r.concat(c),u=$e(r,i),v=$e(d,i);return u>=v}}function Ke(r){const c=[],i=r.length;for(let d=0;d<i;d+=1){const u=r[d],v=u.length;for(let h=0;h<v;h+=1)c.push(u[h])}return c}function Qe(r,c){const i={...c,children:r};return Oe(i)}function et(r){return(r.x1-r.x0)*(r.y1-r.y0)}function Ne(r,c){const{width:i,height:d,xOffset:u,yOffset:v}=J(c),h=r.length,p=r.map(y=>y.normalizedValue||0).reduce((y,g)=>y+g,0),f=p/d,x=p/i;let C=u,T=v;const b=[];if(i>=d){for(let y=0;y<h;y+=1){const g=r[y],k=T+g.normalizedValue/f,O={x0:C,y0:T,x1:C+f,y1:k},S=Object.assign({},g,O);T=k,b.push(S)}return b}else{for(let y=0;y<h;y+=1){const g=r[y],k=C+g.normalizedValue/x,O={x0:C,y0:T,x1:k,y1:T+x},S=Object.assign({},g,O);C=k,b.push(S)}return b}}function tt(r){const c=J(r),i=c.width,d=c.height;return Math.min(i,d)}function ot(r,c){const i=r.length,d=r.map(f=>f.value??0).reduce((f,x)=>f+x,0),u=c/d,v=[];let h,p;for(let f=0;f<i;f+=1)p=r[f],h=Object.assign({},p,{normalizedValue:p.value*(u||0)}),v.push(h);return v}function J(r){const{x0:c,y0:i,x1:d,y1:u}=r;return{xOffset:c,yOffset:i,width:d-c,height:u-i}}function lt(r,c,i,d){let u=r,v=c,h=i,p=d;for(;;){const f=u.length;if(f===0){const b=Ne(v,h);return p.concat(b)}const x=tt(h),C=u[0],T=u.slice(1,f);if(Je(v,C,x)){const b=v.concat(C);u=T,v=b,h=h,p=p}else{const b=v.length;let y=0;for(let S=0;S<b;S+=1)y+=v[S].normalizedValue;const g=at(h,y),k=Ne(v,h),O=p.concat(k);u=u,v=[],h=g,p=O}}}function Oe(r){if(typeof r.children>"u"||!r.children.length)return[r];{const c=ot(r.children,et(r)),i=lt(c,[],r,[]),d=i.length,u=[];for(let h=0;h<d;h+=1)u.push(Oe(i[h]));return Ke(u)}}function at(r,c){const{width:i,height:d,xOffset:u,yOffset:v}=J(r);if(i>=d){const h=c/d,p=i-h,f={xOffset:u+h,yOffset:v,width:p,height:d};return Be(f)}else{const h=c/i,p=d-h,f={xOffset:u,yOffset:v+h,width:i,height:p};return Be(f)}}const nt=["id"],rt={key:4,class:"vue-ui-treemap-breadcrumbs","data-html2canvas-ignore":""},st=["onClick","data-last-crumb"],ut={class:"vue-ui-treemap-crumb-unit"},it={class:"vue-ui-treemap-crumb-unit-label"},ct={key:0,style:{width:"24px",display:"flex","align-items":"center"}},dt={key:0,class:"vue-ui-treemap-crumb-unit-arrow"},vt=["xmlns","viewBox"],ht={key:0},pt=["id"],ft=["stop-color"],mt=["stop-color"],gt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],yt=["x","y","height","width"],bt={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},kt={key:6,class:"vue-data-ui-watermark"},Ct=["onClick"],wt={key:0},xt={key:1},Tt=["innerHTML"],St={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(r,{expose:c,emit:i}){const{vue_ui_treemap:d}=s.useConfig(),u=r,v=i,h=e.useSlots();e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiTreemap does not support the #chart-background slot.")});const p=e.computed(()=>!!u.dataset&&u.dataset.length),f=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),x=e.ref(s.createUid()),C=e.ref(!1),T=e.ref(""),b=e.ref(!1),y=e.ref(0),g=e.ref([]),k=e.ref(null),O=e.ref(null),S=e.ref(null),K=e.ref(null),Q=e.ref(null),ee=e.ref(0),te=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>re(),set:o=>o}),{userOptionsVisible:X,setUserOptionsVisibility:le,keepUserOptionState:ae}=je.useUserOptionState({config:t.value}),{svgRef:ne}=Xe.useChartAccessibility({config:t.value.style.chart.title});function re(){const o=Se.useNestedProp({userConfig:u.config,defaultConfig:d});return o.theme?{...Se.useNestedProp({userConfig:s.themes.vue_ui_treemap[o.theme]||u.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>u.config,o=>{t.value=re(),X.value=!t.value.userOptions.showOnChartHover,ee.value+=1,te.value+=1,oe.value+=1,$.value.showTable=t.value.table.show,$.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:se,isImaging:ue,generatePdf:ie,generateImage:ce}=xe.usePrinter({elementId:`treemap_${x.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap",options:t.value.userOptions.print}),_e=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),H=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),_=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),E=e.computed(()=>({bottom:_.value.height-t.value.style.chart.padding.bottom,height:_.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:_.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:_.value.height,vbWidth:_.value.width,width:_.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function de(o){o.forEach((a,l)=>{a.id=s.createUid(),a.color=s.convertColorToHex(a.color)||H.value[l]||s.palette[l]||s.palette[l%s.palette.length],a.children&&(a.children.forEach(n=>{n.parentId=a.id,n.color=a.color}),de(a.children))})}const P=e.ref(u.dataset),U=e.ref(null);e.onMounted(()=>{Pe()});function Pe(){if(s.objectIsEmpty(u.dataset)&&s.error({componentName:"VueUiTreemap",type:"dataset"}),de(P.value),t.value.responsive){const o=Te.throttle(()=>{const{width:a,height:l}=Te.useResponsive({chart:k.value,title:t.value.style.chart.title.text?O.value:null,legend:t.value.style.chart.legend.show?S.value:null,source:K.value,noTitle:Q.value});requestAnimationFrame(()=>{_.value.width=a,_.value.height=l})});U.value=new ResizeObserver(o),U.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{U.value&&U.value.disconnect()});const I=e.ref(P.value),D=e.computed(()=>I.value.map((o,a)=>({...o,color:s.convertColorToHex(o.color)||H.value[a]||s.palette[a]||s.palette[a%s.palette.length]})).filter(o=>!g.value.includes(o.id))),L=e.computed(()=>P.value.filter(o=>!g.value.includes(o.id)).map(o=>o.value||0).reduce((o,a)=>o+a,0)),ve=e.computed({get(){let o=[...D.value];return t.value.style.chart.layout.sorted&&(o=[...D.value].sort((a,l)=>l.value-a.value)),o.map(a=>({...a}))},set(o){return o}});function he(o,a){return o.value/a}function ze(o,a,l){const n=t.value.style.chart.layout.rects.colorRatio-he(a,l);return s.lightenHexColor(o,n<0?0:n)}function pe(o,a,l,n){return o.map((m,V)=>{const j=ze(s.convertColorToHex(a)||H.value[V]||s.palette[V]||s.palette[V%s.palette.length],m,n),Le=he(m,n);return{...m,color:j,proportion:Le,parentName:l,children:m.children?pe(m.children,j,m.name,n):void 0}})}const q=e.computed(()=>Qe(ve.value.map((o,a)=>{const l=o.children?o.children.reduce((n,m)=>n+m.value,0):o.value;return{value:o.value,id:o.id,children:o.children?pe(o.children.sort((n,m)=>m.value-n.value),o.color,o.name,l):void 0,color:o.color,name:o.name}}),{x0:E.value.left*2,y0:E.value.top,x1:E.value.width,y1:E.value.height}));function fe({y0:o,y1:a}){return a-o<=0?1e-4:a-o}function me({x0:o,x1:a}){return a-o<=0?1e-4:a-o}function R(o){const a=t.value.style.chart.layout.labels.fontSize*(o.proportion*2>1?1:o.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function Ve(o){b.value=o,y.value+=1}const F=e.computed(()=>({startX:0,startY:0,width:E.value.vbWidth,height:E.value.vbHeight}));function A(o,a=P.value){for(const l of a){if(l.id===o)return l;if(l.children){const n=A(o,l.children);if(n)return n}}return null}const w=e.ref([]),z=e.computed(()=>w.value.length>0);function ge(o){var l;if(!o){I.value=P.value.slice(),v("selectDatapoint",void 0),w.value=[];return}const a=A(o.id);if(a&&((l=a.children)!=null&&l.length))w.value.push(a.id),I.value=a.children.slice(),v("selectDatapoint",o);else if(o.parentId){w.value.push(o.parentId);const n=A(o.parentId);I.value=n.children.slice(),v("selectDatapoint",o)}else if(w.value.length>0){w.value.pop();const n=w.value[w.value.length-1];if(n){const m=A(n);I.value=m.children.slice()}else I.value=P.value.slice(),w.value=[],v("selectDatapoint",void 0)}}function Ee(o){var l;const a=A(o.id);return!!((l=a==null?void 0:a.children)!=null&&l.length||o.parentId)}const M=e.computed(()=>{const o=[{id:null,label:"All"}];if(w.value.length>0){let a=A(w.value[w.value.length-1]);const l=[];for(;a;)l.unshift(a),a=a.parentId?A(a.parentId):null;for(const n of l)o.push({id:n.id,label:n.name,node:n})}return o}),B=e.ref(null),ye=e.computed(()=>P.value.map((o,a)=>({...o,color:s.convertColorToHex(o.color)||H.value[a]||s.palette[a]||s.palette[a%s.palette.length],shape:"square"})).sort((o,a)=>a.value-o.value).map((o,a)=>({...o,proportion:o.value/P.value.map(l=>l.value).reduce((l,n)=>l+n,0),opacity:g.value.includes(o.id)?.5:1}))),Re=e.computed(()=>({cy:"treemap-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function be(o){z.value=!1,B.value=null,g.value.includes(o.id)?g.value=g.value.filter(a=>a!==o.id):g.value.length<u.dataset.length-1&&g.value.push(o.id),v("selectLegend",ve.value)}const Y=e.ref(null);function Ae({datapoint:o,seriesIndex:a}){B.value=o,Y.value={datapoint:o,seriesIndex:a,config:t.value,series:D.value};const l=t.value.style.chart.tooltip.customFormat;if(s.isFunction(l)&&s.functionReturnsString(()=>l({seriesIndex:a,datapoint:o,series:D.value,config:t.value})))T.value=l({seriesIndex:a,datapoint:o,series:D.value,config:t.value});else{let n="";n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${o.color}"/></svg>`,n+=`<b>${s.applyDataLabel(t.value.style.chart.layout.labels.formatter,o.value,s.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,seriesIndex:a})}</b>`,T.value=`<div>${n}</div>`}C.value=!0}const N=e.computed(()=>{const o=q.value.map(l=>({name:l.name,color:l.color})),a=q.value.map(l=>l.value);return{head:o,body:a}});function ke(){e.nextTick(()=>{const o=N.value.head.map((n,m)=>[[n.name],[N.value.body[m]],[isNaN(N.value.body[m]/L.value)?"-":N.value.body[m]/L.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const W=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((m,V)=>{const j=s.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[V],s.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[V],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:m.color,name:m.name,shape:"square"},j,isNaN(N.value.body[V]/L.value)?"-":s.dataLabel({v:N.value.body[V]/L.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}});function Ie(){return q.value}function Ce(){$.value.showTable=!$.value.showTable}function we(){$.value.showTooltip=!$.value.showTooltip}const G=e.ref(!1);function Z(){G.value=!G.value}return c({getData:Ie,generateCsv:ke,generateImage:ce,generatePdf:ie,toggleTable:Ce,toggleTooltip:we,toggleAnnotator:Z}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:k,class:e.normalizeClass(`vue-ui-treemap ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`treemap_${x.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(le)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(le)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ge.PenAndPaper,{key:0,svgRef:e.unref(ne),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:G.value,onClose:Z},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),_e.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Q,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:O,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[(e.openBlock(),e.createBlock(Fe._sfc_main,{key:`title_${ee.value}`,config:{title:{cy:"treemap-div-title",...t.value.style.chart.title},subtitle:{cy:"treemap-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(ae)||e.unref(X))?(e.openBlock(),e.createBlock(xe.UserOptions,{ref:"details",key:`user_option_${y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(se),isImaging:e.unref(ue),uid:x.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:$.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:G.value,onToggleFullscreen:Ve,onGeneratePdf:e.unref(ie),onGenerateCsv:ke,onGenerateImage:e.unref(ce),onToggleTable:Ce,onToggleTooltip:we,onToggleAnnotator:Z,style:e.normalizeStyle({visibility:e.unref(ae)?e.unref(X)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),M.value.length>1?(e.openBlock(),e.createElementBlock("nav",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(l,n)=>(e.openBlock(),e.createElementBlock("span",{key:l.id||"root",onClick:m=>n===M.value.length-1?()=>{}:ge(l.node),class:"vue-ui-treemap-crumb","data-last-crumb":n===M.value.length-1,style:e.normalizeStyle({color:t.value.style.chart.color})},[e.createElementVNode("span",ut,[e.createElementVNode("span",it,[e.renderSlot(o.$slots,"breadcrumb-label",e.mergeProps({ref_for:!0},{crumb:l,isRoot:n===0}),()=>[n===0?(e.openBlock(),e.createElementBlock("div",ct,[e.createVNode(Ye.default,{name:"home",stroke:t.value.style.chart.color},null,8,["stroke"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.label),1)],64))],!0)]),n<M.value.length-1?(e.openBlock(),e.createElementBlock("span",dt,[e.renderSlot(o.$slots,"breadcrumb-arrow",{},()=>[a[5]||(a[5]=e.createTextVNode(" › "))],!0)])):e.createCommentVNode("",!0)])],12,st))),128))])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:5,ref_key:"svgRef",ref:ne,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!z.value,"vue-data-ui-zoom-minus":z.value}),viewBox:`${F.value.startX} ${F.value.startY} ${F.value.width<=0?10:F.value.width} ${F.value.height<=0?10:F.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(We._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",ht,[e.createElementVNode("radialGradient",{id:`tgrad_${l.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":l.color},null,8,ft),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.lightenHexColor)(l.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,mt)],8,pt)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:l.x0,y:l.y0,height:fe(l),width:me(l),fill:f.value?l.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${l.id})`:l.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:B.value&&B.value.id===l.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":B.value&&B.value.id===l.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:e.withModifiers(m=>ge(l),["stop"]),onMouseenter:()=>Ae({datapoint:l,seriesIndex:n}),onMouseleave:a[0]||(a[0]=m=>{B.value=null,C.value=!1}),style:e.normalizeStyle(`opacity:${B.value?B.value.id===l.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:e.normalizeClass(["vue-ui-treemap-rect",Ee(l)?"vue-data-ui-zoom-plus":z.value?"vue-data-ui-zoom-minus":""])},null,46,gt),(e.openBlock(),e.createElementBlock("foreignObject",{x:l.x0,y:l.y0,height:fe(l),width:me(l),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",bt,[t.value.style.chart.layout.labels.showDefaultLabels&&(l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||z.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${R(l)/1.5}px);text-align:left;line-height:${R(l)<14?14:R(l)}px;padding:${R(l)/3}px; color:${e.unref(s.adaptColorToBackground)(l.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${R(l)}px;`)},e.toDisplayString(l.name),5),a[6]||(a[6]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${R(l)}px;`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.layout.labels.rounding}),{datapoint:l})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"rect",e.mergeProps({ref_for:!0},{rect:l,shouldShow:l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||z.value,fontSize:R(l),isZoom:z.value,textColor:e.unref(s.adaptColorToBackground)(l.color)}),void 0,!0)])],8,yt))]))),256)),e.renderSlot(o.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:E.value,isZoom:z.value,rect:B.value,config:t.value})),void 0,!0)],14,vt)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",kt,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(se)||e.unref(ue)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me.default,{key:7,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:S},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(qe.Legend,{key:`legend_${oe.value}`,legendSet:ye.value,config:Re.value,id:`treemap_legend_${x.value}`,onClickMarker:a[1]||(a[1]=({legend:l})=>be(l))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{onClick:m=>be(l),style:e.normalizeStyle(`opacity:${g.value.includes(l.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l}))+" ",1),g.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",xt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",wt," ("+e.toDisplayString(isNaN(l.value/L.value)?"-":(l.value/L.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,Ct)]),_:1},8,["legendSet","config","id"])):e.renderSlot(o.$slots,"legend",{key:1,legend:ye.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"source",ref:K,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(De._sfc_main,{show:$.value.showTooltip&&C.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:T.value,isFullscreen:b.value,isCustom:e.unref(s.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),p.value?(e.openBlock(),e.createBlock(Ue.default,{key:9,hideDetails:"",config:{open:$.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(He.DataTable,{key:`table_${te.value}`,colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Tt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,nt))}},$t=Ze._export_sfc(St,[["__scopeId","data-v-5e08c158"]]);exports.default=$t;