@alfadocs/ui-kit-debug 1.96.0 → 1.98.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 (314) hide show
  1. package/dist/_chunks/{address-autocomplete-DR4Xn23Z.js → address-autocomplete-DC-H-MZw.js} +2 -2
  2. package/dist/_chunks/{address-autocomplete-DR4Xn23Z.js.map → address-autocomplete-DC-H-MZw.js.map} +1 -1
  3. package/dist/_chunks/{address-fields-qxQkGwPf.js → address-fields-D5Ije0S2.js} +7 -7
  4. package/dist/_chunks/{address-fields-qxQkGwPf.js.map → address-fields-D5Ije0S2.js.map} +1 -1
  5. package/dist/_chunks/{agenda-card-BhY342MA.js → agenda-card-bRQ4j6U6.js} +2 -2
  6. package/dist/_chunks/{agenda-card-BhY342MA.js.map → agenda-card-bRQ4j6U6.js.map} +1 -1
  7. package/dist/_chunks/{agenda-tray-BmxBGEci.js → agenda-tray-CzE3E8GU.js} +2 -2
  8. package/dist/_chunks/{agenda-tray-BmxBGEci.js.map → agenda-tray-CzE3E8GU.js.map} +1 -1
  9. package/dist/_chunks/{alia-sidebar-ovRX_oti.js → alia-sidebar-B5mu44g2.js} +3 -3
  10. package/dist/_chunks/{alia-sidebar-ovRX_oti.js.map → alia-sidebar-B5mu44g2.js.map} +1 -1
  11. package/dist/_chunks/{anamnesis-summary-rows-CdRUXoaA.js → anamnesis-summary-rows-B9HqOGd7.js} +4 -4
  12. package/dist/_chunks/{anamnesis-summary-rows-CdRUXoaA.js.map → anamnesis-summary-rows-B9HqOGd7.js.map} +1 -1
  13. package/dist/_chunks/{appointment-card-Csx4544A.js → appointment-card-zPr0brha.js} +3 -3
  14. package/dist/_chunks/{appointment-card-Csx4544A.js.map → appointment-card-zPr0brha.js.map} +1 -1
  15. package/dist/_chunks/{appointment-peek-CcDCWb-F.js → appointment-peek-xFTBany4.js} +3 -3
  16. package/dist/_chunks/{appointment-peek-CcDCWb-F.js.map → appointment-peek-xFTBany4.js.map} +1 -1
  17. package/dist/_chunks/{appointment-timeline-DW6FN6u8.js → appointment-timeline-AKkVx9AN.js} +2 -2
  18. package/dist/_chunks/{appointment-timeline-DW6FN6u8.js.map → appointment-timeline-AKkVx9AN.js.map} +1 -1
  19. package/dist/_chunks/{appointment-tray-CZfXwHWz.js → appointment-tray-B8qQBW65.js} +2 -2
  20. package/dist/_chunks/{appointment-tray-CZfXwHWz.js.map → appointment-tray-B8qQBW65.js.map} +1 -1
  21. package/dist/_chunks/{aspect-ratio-DeSNzASA.js → aspect-ratio-B-6cyOpm.js} +13 -13
  22. package/dist/_chunks/aspect-ratio-B-6cyOpm.js.map +1 -0
  23. package/dist/_chunks/{autocomplete-BXMcNoa3.js → autocomplete-D10ydpgi.js} +2 -2
  24. package/dist/_chunks/{autocomplete-BXMcNoa3.js.map → autocomplete-D10ydpgi.js.map} +1 -1
  25. package/dist/_chunks/{avatar-a6042Ox2.js → avatar-BoqdWsNe.js} +2 -2
  26. package/dist/_chunks/avatar-BoqdWsNe.js.map +1 -0
  27. package/dist/_chunks/{balance-badge-cell-DcBmtijD.js → balance-badge-cell-C-Rz616n.js} +3 -3
  28. package/dist/_chunks/{balance-badge-cell-DcBmtijD.js.map → balance-badge-cell-C-Rz616n.js.map} +1 -1
  29. package/dist/_chunks/{breadcrumb-Bn29NCnf.js → breadcrumb-zxa_PNhF.js} +2 -2
  30. package/dist/_chunks/breadcrumb-zxa_PNhF.js.map +1 -0
  31. package/dist/_chunks/{calendar-CmiMS4FJ.js → calendar-DVe5eArk.js} +2 -2
  32. package/dist/_chunks/{calendar-CmiMS4FJ.js.map → calendar-DVe5eArk.js.map} +1 -1
  33. package/dist/_chunks/{calendar-appointment-editor-dialog-BOZ5wk96.js → calendar-appointment-editor-dialog-CUJMnFL7.js} +12 -12
  34. package/dist/_chunks/{calendar-appointment-editor-dialog-BOZ5wk96.js.map → calendar-appointment-editor-dialog-CUJMnFL7.js.map} +1 -1
  35. package/dist/_chunks/{chat-message-LRO_6Ee3.js → chat-message-CkBCAcwn.js} +2 -2
  36. package/dist/_chunks/{chat-message-LRO_6Ee3.js.map → chat-message-CkBCAcwn.js.map} +1 -1
  37. package/dist/_chunks/{city-input-CA59CjnV.js → city-input-DXipzTfZ.js} +3 -3
  38. package/dist/_chunks/{city-input-CA59CjnV.js.map → city-input-DXipzTfZ.js.map} +1 -1
  39. package/dist/_chunks/{clinical-note-card-CWHFnCmY.js → clinical-note-card--juv_ELr.js} +2 -2
  40. package/dist/_chunks/{clinical-note-card-CWHFnCmY.js.map → clinical-note-card--juv_ELr.js.map} +1 -1
  41. package/dist/_chunks/{combobox-D-gpgEDy.js → combobox-duuDRI1t.js} +2 -2
  42. package/dist/_chunks/{combobox-D-gpgEDy.js.map → combobox-duuDRI1t.js.map} +1 -1
  43. package/dist/_chunks/{command-palette-B3dVqm9D.js → command-palette-DxQBU4wH.js} +3 -3
  44. package/dist/_chunks/command-palette-DxQBU4wH.js.map +1 -0
  45. package/dist/_chunks/{contact-profile-card-jBf9U4At.js → contact-profile-card-QPUgGu-t.js} +57 -57
  46. package/dist/_chunks/contact-profile-card-QPUgGu-t.js.map +1 -0
  47. package/dist/_chunks/{copy-field-hgVSc51W.js → copy-field-BaYEDJ9f.js} +24 -24
  48. package/dist/_chunks/copy-field-BaYEDJ9f.js.map +1 -0
  49. package/dist/_chunks/{country-select-BfmX9y5i.js → country-select-CUuGOAoZ.js} +2 -2
  50. package/dist/_chunks/{country-select-BfmX9y5i.js.map → country-select-CUuGOAoZ.js.map} +1 -1
  51. package/dist/_chunks/{data-table-xUDjZS_O.js → data-table-C5uN4ato.js} +10 -8
  52. package/dist/_chunks/data-table-C5uN4ato.js.map +1 -0
  53. package/dist/_chunks/{data-table-tabs-CcgU2lr5.js → data-table-tabs-Db7zToFD.js} +2 -2
  54. package/dist/_chunks/{data-table-tabs-CcgU2lr5.js.map → data-table-tabs-Db7zToFD.js.map} +1 -1
  55. package/dist/_chunks/{dependent-selector-CyNi7M_f.js → dependent-selector-DRN0P0Kr.js} +2 -2
  56. package/dist/_chunks/{dependent-selector-CyNi7M_f.js.map → dependent-selector-DRN0P0Kr.js.map} +1 -1
  57. package/dist/_chunks/{document-preview-DWIQryMW.js → document-preview-U8H6tnDJ.js} +2 -2
  58. package/dist/_chunks/{document-preview-DWIQryMW.js.map → document-preview-U8H6tnDJ.js.map} +1 -1
  59. package/dist/_chunks/{document-scanner-BQP0Rqrt.js → document-scanner-Bf3VUp00.js} +24 -24
  60. package/dist/_chunks/document-scanner-Bf3VUp00.js.map +1 -0
  61. package/dist/_chunks/{editable-currency-cell-renderer-BEaj2NT_.js → editable-currency-cell-renderer-BUdFMh67.js} +2 -2
  62. package/dist/_chunks/{editable-currency-cell-renderer-BEaj2NT_.js.map → editable-currency-cell-renderer-BUdFMh67.js.map} +1 -1
  63. package/dist/_chunks/{email-input-C7THAwh2.js → email-input-BEO3vonE.js} +2 -2
  64. package/dist/_chunks/{email-input-C7THAwh2.js.map → email-input-BEO3vonE.js.map} +1 -1
  65. package/dist/_chunks/{entity-summary-BJdfIsk_.js → entity-summary-B4p8zP1J.js} +2 -2
  66. package/dist/_chunks/{entity-summary-BJdfIsk_.js.map → entity-summary-B4p8zP1J.js.map} +1 -1
  67. package/dist/_chunks/{face-scheme-BmygzbZr.js → face-scheme-DdVLQ5dP.js} +3 -3
  68. package/dist/_chunks/{face-scheme-BmygzbZr.js.map → face-scheme-DdVLQ5dP.js.map} +1 -1
  69. package/dist/_chunks/{file-manager-Ba_TcfCj.js → file-manager-CnGBVX_q.js} +4 -4
  70. package/dist/_chunks/{file-manager-Ba_TcfCj.js.map → file-manager-CnGBVX_q.js.map} +1 -1
  71. package/dist/_chunks/{fiscal-code-input-BzWmNDnl.js → fiscal-code-input-BBvU7sAo.js} +2 -2
  72. package/dist/_chunks/{fiscal-code-input-BzWmNDnl.js.map → fiscal-code-input-BBvU7sAo.js.map} +1 -1
  73. package/dist/_chunks/{forgot-password-form-BCk4rGIh.js → forgot-password-form-CeTb5p-x.js} +2 -2
  74. package/dist/_chunks/{forgot-password-form-BCk4rGIh.js.map → forgot-password-form-CeTb5p-x.js.map} +1 -1
  75. package/dist/_chunks/{header-settings-C2D74i4g.js → header-settings-Df9q1uHt.js} +2 -2
  76. package/dist/_chunks/{header-settings-C2D74i4g.js.map → header-settings-Df9q1uHt.js.map} +1 -1
  77. package/dist/_chunks/{heatmap-C9tEvqEm.js → heatmap-Cz0Krieg.js} +666 -650
  78. package/dist/_chunks/{heatmap-C9tEvqEm.js.map → heatmap-Cz0Krieg.js.map} +1 -1
  79. package/dist/_chunks/{help-me-write-templates-BJSf24xS.js → help-me-write-templates-ra5a__Yy.js} +2 -2
  80. package/dist/_chunks/{help-me-write-templates-BJSf24xS.js.map → help-me-write-templates-ra5a__Yy.js.map} +1 -1
  81. package/dist/_chunks/{iban-input-B9L2QDHh.js → iban-input-DuTwKok5.js} +2 -2
  82. package/dist/_chunks/{iban-input-B9L2QDHh.js.map → iban-input-DuTwKok5.js.map} +1 -1
  83. package/dist/_chunks/{icon-picker-DQMG9L6M.js → icon-picker-BmU6gpZT.js} +2 -2
  84. package/dist/_chunks/{icon-picker-DQMG9L6M.js.map → icon-picker-BmU6gpZT.js.map} +1 -1
  85. package/dist/_chunks/{info-tip-Do3RFt60.js → info-tip-CG-DEfkd.js} +106 -93
  86. package/dist/_chunks/info-tip-CG-DEfkd.js.map +1 -0
  87. package/dist/_chunks/{input-surface-iBmxVBfr.js → input-surface-BMffm2Vd.js} +4 -4
  88. package/dist/_chunks/{input-surface-iBmxVBfr.js.map → input-surface-BMffm2Vd.js.map} +1 -1
  89. package/dist/_chunks/{link-cell-renderer-OmvrkUeN.js → link-cell-renderer-DKMgD-2v.js} +4 -4
  90. package/dist/_chunks/{link-cell-renderer-OmvrkUeN.js.map → link-cell-renderer-DKMgD-2v.js.map} +1 -1
  91. package/dist/_chunks/{locale-picker-B1NAHW4U.js → locale-picker-C86h8Yt1.js} +2 -2
  92. package/dist/_chunks/{locale-picker-B1NAHW4U.js.map → locale-picker-C86h8Yt1.js.map} +1 -1
  93. package/dist/_chunks/{login-dev-card-DcfcFJrm.js → login-dev-card-D5BV5j1i.js} +4 -4
  94. package/dist/_chunks/{login-dev-card-DcfcFJrm.js.map → login-dev-card-D5BV5j1i.js.map} +1 -1
  95. package/dist/_chunks/{map-view--c9bJDRw.js → map-view-V7etHnyF.js} +2 -2
  96. package/dist/_chunks/map-view-V7etHnyF.js.map +1 -0
  97. package/dist/_chunks/{marketplace-app-shell-DDZI-uBl.js → marketplace-app-shell-D2qgIuXX.js} +4 -4
  98. package/dist/_chunks/{marketplace-app-shell-DDZI-uBl.js.map → marketplace-app-shell-D2qgIuXX.js.map} +1 -1
  99. package/dist/_chunks/{message-card-B6SduXJv.js → message-card-BzJEITml.js} +2 -2
  100. package/dist/_chunks/{message-card-B6SduXJv.js.map → message-card-BzJEITml.js.map} +1 -1
  101. package/dist/_chunks/{message-tray-18_TrLCy.js → message-tray-DiPgJbOb.js} +2 -2
  102. package/dist/_chunks/{message-tray-18_TrLCy.js.map → message-tray-DiPgJbOb.js.map} +1 -1
  103. package/dist/_chunks/{multi-select-i5MFRpXg.js → multi-select-Df3R8lv_.js} +30 -30
  104. package/dist/_chunks/multi-select-Df3R8lv_.js.map +1 -0
  105. package/dist/_chunks/{navigation-menu-DbaSlvdO.js → navigation-menu-1MrpIVkY.js} +3 -3
  106. package/dist/_chunks/navigation-menu-1MrpIVkY.js.map +1 -0
  107. package/dist/_chunks/{notes-panel-DfjF83IK.js → notes-panel-BbNLYcdv.js} +3 -3
  108. package/dist/_chunks/{notes-panel-DfjF83IK.js.map → notes-panel-BbNLYcdv.js.map} +1 -1
  109. package/dist/_chunks/{operator-hero-N_ziNGFF.js → operator-hero-BcuPTzS_.js} +2 -2
  110. package/dist/_chunks/{operator-hero-N_ziNGFF.js.map → operator-hero-BcuPTzS_.js.map} +1 -1
  111. package/dist/_chunks/{pagination-DvKGrsXu.js → pagination-C7N_NiRN.js} +2 -2
  112. package/dist/_chunks/{pagination-DvKGrsXu.js.map → pagination-C7N_NiRN.js.map} +1 -1
  113. package/dist/_chunks/{password-input-BokZ_rnT.js → password-input-SJGHFdOO.js} +2 -2
  114. package/dist/_chunks/{password-input-BokZ_rnT.js.map → password-input-SJGHFdOO.js.map} +1 -1
  115. package/dist/_chunks/{patient-details-DGHkAErB.js → patient-details-DoIOWP6j.js} +3 -3
  116. package/dist/_chunks/{patient-details-DGHkAErB.js.map → patient-details-DoIOWP6j.js.map} +1 -1
  117. package/dist/_chunks/{patient-field-row-BVK4y98C.js → patient-field-row--dCDO5oB.js} +9 -9
  118. package/dist/_chunks/{patient-field-row-BVK4y98C.js.map → patient-field-row--dCDO5oB.js.map} +1 -1
  119. package/dist/_chunks/{patient-search-CL6dtBIq.js → patient-search-DJy0IZSx.js} +2 -2
  120. package/dist/_chunks/{patient-search-CL6dtBIq.js.map → patient-search-DJy0IZSx.js.map} +1 -1
  121. package/dist/_chunks/{patient-summary-card-DXz07c2X.js → patient-summary-card-CL04aq8h.js} +3 -3
  122. package/dist/_chunks/{patient-summary-card-DXz07c2X.js.map → patient-summary-card-CL04aq8h.js.map} +1 -1
  123. package/dist/_chunks/{payment-automation-upsell-CZk6f8aK.js → payment-automation-upsell-BPF0c-5D.js} +2 -2
  124. package/dist/_chunks/{payment-automation-upsell-CZk6f8aK.js.map → payment-automation-upsell-BPF0c-5D.js.map} +1 -1
  125. package/dist/_chunks/{pdf-viewer-gAsNUsA8.js → pdf-viewer-DlceXkfW.js} +267 -286
  126. package/dist/_chunks/pdf-viewer-DlceXkfW.js.map +1 -0
  127. package/dist/_chunks/{phone-input-DJ4BN8tG.js → phone-input-BL8Sj6OG.js} +3 -3
  128. package/dist/_chunks/phone-input-BL8Sj6OG.js.map +1 -0
  129. package/dist/_chunks/{postal-code-input-CfZOnIkW.js → postal-code-input-dJdSAVkP.js} +2 -2
  130. package/dist/_chunks/{postal-code-input-CfZOnIkW.js.map → postal-code-input-dJdSAVkP.js.map} +1 -1
  131. package/dist/_chunks/{practice-profile-hero-DKmnB-M0.js → practice-profile-hero-B8vykoci.js} +2 -2
  132. package/dist/_chunks/{practice-profile-hero-DKmnB-M0.js.map → practice-profile-hero-B8vykoci.js.map} +1 -1
  133. package/dist/_chunks/{practice-results-ZOVlrb43.js → practice-results-U-5kpnJa.js} +3 -3
  134. package/dist/_chunks/{practice-results-ZOVlrb43.js.map → practice-results-U-5kpnJa.js.map} +1 -1
  135. package/dist/_chunks/{province-select-D64whw0m.js → province-select-cVOlwEc5.js} +2 -2
  136. package/dist/_chunks/{province-select-D64whw0m.js.map → province-select-cVOlwEc5.js.map} +1 -1
  137. package/dist/_chunks/{public-footer-BiPiU_lk.js → public-footer-t6gx6sjn.js} +163 -152
  138. package/dist/_chunks/public-footer-t6gx6sjn.js.map +1 -0
  139. package/dist/_chunks/{registration-form-K4j2tdLt.js → registration-form-JzzTomhd.js} +5 -5
  140. package/dist/_chunks/{registration-form-K4j2tdLt.js.map → registration-form-JzzTomhd.js.map} +1 -1
  141. package/dist/_chunks/{reserved.agent-TRbKB39d.js → reserved.agent-CB-92Vi9.js} +8 -8
  142. package/dist/_chunks/{reserved.agent-TRbKB39d.js.map → reserved.agent-CB-92Vi9.js.map} +1 -1
  143. package/dist/_chunks/{reset-password-form-C6XLV7SI.js → reset-password-form-DDdGEoIL.js} +3 -3
  144. package/dist/_chunks/{reset-password-form-C6XLV7SI.js.map → reset-password-form-DDdGEoIL.js.map} +1 -1
  145. package/dist/_chunks/{rich-text-editor-CJfT08It.js → rich-text-editor-F04przIt.js} +2 -2
  146. package/dist/_chunks/{rich-text-editor-CJfT08It.js.map → rich-text-editor-F04przIt.js.map} +1 -1
  147. package/dist/_chunks/{search-bar-mA4bPe3t.js → search-bar-CQ9_V3EJ.js} +2 -2
  148. package/dist/_chunks/{search-bar-mA4bPe3t.js.map → search-bar-CQ9_V3EJ.js.map} +1 -1
  149. package/dist/_chunks/{search-input-BAlDd05M.js → search-input-CRAMo1CA.js} +2 -2
  150. package/dist/_chunks/{search-input-BAlDd05M.js.map → search-input-CRAMo1CA.js.map} +1 -1
  151. package/dist/_chunks/{send-registration-link-form-yLSfcaPk.js → send-registration-link-form-DHCQpA4C.js} +3 -3
  152. package/dist/_chunks/{send-registration-link-form-yLSfcaPk.js.map → send-registration-link-form-DHCQpA4C.js.map} +1 -1
  153. package/dist/_chunks/{sidebar-BS24EnYd.js → sidebar-2VsPlNkZ.js} +3 -3
  154. package/dist/_chunks/sidebar-2VsPlNkZ.js.map +1 -0
  155. package/dist/_chunks/{sign-document-BiOTs1P4.js → sign-document-B5qZhthO.js} +10 -10
  156. package/dist/_chunks/sign-document-B5qZhthO.js.map +1 -0
  157. package/dist/_chunks/{signature-capture-Chqh62Pc.js → signature-capture-BJc7kfqi.js} +2 -2
  158. package/dist/_chunks/signature-capture-BJc7kfqi.js.map +1 -0
  159. package/dist/_chunks/{signature-field-Y01UB5DA.js → signature-field-DjabvRZm.js} +28 -34
  160. package/dist/_chunks/{signature-field-Y01UB5DA.js.map → signature-field-DjabvRZm.js.map} +1 -1
  161. package/dist/_chunks/{signature-request-CLtMgQKi.js → signature-request-CQ0torGq.js} +2 -2
  162. package/dist/_chunks/{signature-request-CLtMgQKi.js.map → signature-request-CQ0torGq.js.map} +1 -1
  163. package/dist/_chunks/{signed-out-frame-CRwVTCjY.js → signed-out-frame-BcQE00H1.js} +2 -2
  164. package/dist/_chunks/{signed-out-frame-CRwVTCjY.js.map → signed-out-frame-BcQE00H1.js.map} +1 -1
  165. package/dist/_chunks/{stat-Dno2ZihS.js → stat-BFKZV50y.js} +137 -117
  166. package/dist/_chunks/stat-BFKZV50y.js.map +1 -0
  167. package/dist/_chunks/{state-backed-text-input-Cgh4ms3p.js → state-backed-text-input-DVETOhSS.js} +2 -2
  168. package/dist/_chunks/{state-backed-text-input-Cgh4ms3p.js.map → state-backed-text-input-DVETOhSS.js.map} +1 -1
  169. package/dist/_chunks/{stepper-accordion-DDTSOUHc.js → stepper-accordion-CYjrmRte.js} +44 -44
  170. package/dist/_chunks/stepper-accordion-CYjrmRte.js.map +1 -0
  171. package/dist/_chunks/{task-editor-qXfMbHsy.js → task-editor-BiPGFXtB.js} +3 -3
  172. package/dist/_chunks/{task-editor-qXfMbHsy.js.map → task-editor-BiPGFXtB.js.map} +1 -1
  173. package/dist/_chunks/{text-input-CaG9ApoE.js → text-input-B6iAgCr3.js} +2 -2
  174. package/dist/_chunks/{text-input-CaG9ApoE.js.map → text-input-B6iAgCr3.js.map} +1 -1
  175. package/dist/_chunks/{timeline-B32dylRJ.js → timeline-tn5QQJdS.js} +2 -2
  176. package/dist/_chunks/{timeline-B32dylRJ.js.map → timeline-tn5QQJdS.js.map} +1 -1
  177. package/dist/_chunks/{transcript-panel-CoHHpcFg.js → transcript-panel-A781Pkzr.js} +2 -2
  178. package/dist/_chunks/{transcript-panel-CoHHpcFg.js.map → transcript-panel-A781Pkzr.js.map} +1 -1
  179. package/dist/_chunks/{use-appointment-details-read-UXXvBeGZ.js → use-appointment-details-read-BbIoPWO6.js} +5 -5
  180. package/dist/_chunks/{use-appointment-details-read-UXXvBeGZ.js.map → use-appointment-details-read-BbIoPWO6.js.map} +1 -1
  181. package/dist/_chunks/{widget-picker-B9HpT2Tb.js → widget-picker-DNYIqRT1.js} +2 -2
  182. package/dist/_chunks/{widget-picker-B9HpT2Tb.js.map → widget-picker-DNYIqRT1.js.map} +1 -1
  183. package/dist/_chunks/{workflow-map-flsvqQ3L.js → workflow-map-k-dQkpe7.js} +20 -20
  184. package/dist/_chunks/{workflow-map-flsvqQ3L.js.map → workflow-map-k-dQkpe7.js.map} +1 -1
  185. package/dist/_chunks/{workflow-status-HQ6ziE46.js → workflow-status-9wb7iWUd.js} +2 -2
  186. package/dist/_chunks/{workflow-status-HQ6ziE46.js.map → workflow-status-9wb7iWUd.js.map} +1 -1
  187. package/dist/_chunks/{workflow-webhook-action-BD-6UyOs.js → workflow-webhook-action-B_52rH7O.js} +3 -3
  188. package/dist/_chunks/{workflow-webhook-action-BD-6UyOs.js.map → workflow-webhook-action-B_52rH7O.js.map} +1 -1
  189. package/dist/ag-grid.css +4 -3
  190. package/dist/agent-catalog.json +1 -1
  191. package/dist/components/_shared/input-surface.d.ts +3 -3
  192. package/dist/components/address-autocomplete/index.js +1 -1
  193. package/dist/components/address-fields/index.js +1 -1
  194. package/dist/components/agenda-card/index.js +1 -1
  195. package/dist/components/agenda-tray/index.js +1 -1
  196. package/dist/components/appointment-card/index.js +2 -2
  197. package/dist/components/appointment-details-panel/index.js +1 -1
  198. package/dist/components/appointment-peek/index.js +1 -1
  199. package/dist/components/appointment-timeline/index.js +1 -1
  200. package/dist/components/aspect-ratio/index.js +1 -1
  201. package/dist/components/autocomplete/index.js +1 -1
  202. package/dist/components/avatar/index.js +1 -1
  203. package/dist/components/booking/index.js +1 -1
  204. package/dist/components/breadcrumb/index.js +1 -1
  205. package/dist/components/calendar/index.js +1 -1
  206. package/dist/components/chat-message/index.js +1 -1
  207. package/dist/components/city-input/index.js +1 -1
  208. package/dist/components/clinical-note-card/index.js +1 -1
  209. package/dist/components/combobox/index.js +1 -1
  210. package/dist/components/command-palette/index.js +1 -1
  211. package/dist/components/contact-profile-card/index.js +1 -1
  212. package/dist/components/copy-field/index.js +1 -1
  213. package/dist/components/country-select/index.js +1 -1
  214. package/dist/components/data-table/index.js +3 -3
  215. package/dist/components/data-table/toolbar.d.ts +1 -0
  216. package/dist/components/data-table/toolbar.d.ts.map +1 -1
  217. package/dist/components/data-table-tabs/index.js +1 -1
  218. package/dist/components/dependent-selector/index.js +1 -1
  219. package/dist/components/document-preview/index.js +1 -1
  220. package/dist/components/document-scanner/index.js +1 -1
  221. package/dist/components/email-input/index.js +1 -1
  222. package/dist/components/entity-summary/index.js +1 -1
  223. package/dist/components/face-scheme/index.js +1 -1
  224. package/dist/components/file-manager/index.js +1 -1
  225. package/dist/components/fiscal-code-input/index.js +1 -1
  226. package/dist/components/header-settings/index.js +1 -1
  227. package/dist/components/heatmap/heatmap-table-view.d.ts.map +1 -1
  228. package/dist/components/heatmap/index.js +1 -1
  229. package/dist/components/iban-input/index.js +1 -1
  230. package/dist/components/icon-picker/index.js +1 -1
  231. package/dist/components/info-tip/index.js +1 -1
  232. package/dist/components/info-tip/info-tip.d.ts +2 -1
  233. package/dist/components/info-tip/info-tip.d.ts.map +1 -1
  234. package/dist/components/locale-picker/index.js +1 -1
  235. package/dist/components/map-view/index.js +1 -1
  236. package/dist/components/message-card/index.js +1 -1
  237. package/dist/components/message-tray/index.js +1 -1
  238. package/dist/components/multi-select/index.js +1 -1
  239. package/dist/components/navigation-menu/index.js +1 -1
  240. package/dist/components/notes-panel/index.js +1 -1
  241. package/dist/components/operator-hero/index.js +1 -1
  242. package/dist/components/pagination/index.js +1 -1
  243. package/dist/components/password-input/index.js +1 -1
  244. package/dist/components/patient-details/index.js +1 -1
  245. package/dist/components/patient-search/index.js +1 -1
  246. package/dist/components/patient-summary-card/index.js +1 -1
  247. package/dist/components/patient-table/index.js +1 -1
  248. package/dist/components/pdf-viewer/index.js +1 -1
  249. package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
  250. package/dist/components/phone-input/index.js +1 -1
  251. package/dist/components/postal-code-input/index.js +1 -1
  252. package/dist/components/practice-profile-hero/index.js +1 -1
  253. package/dist/components/practice-results/index.js +1 -1
  254. package/dist/components/province-select/index.js +1 -1
  255. package/dist/components/public-footer/index.js +1 -1
  256. package/dist/components/public-footer/public-footer.d.ts.map +1 -1
  257. package/dist/components/rich-text-editor/index.js +1 -1
  258. package/dist/components/search-bar/index.js +1 -1
  259. package/dist/components/search-input/index.js +1 -1
  260. package/dist/components/sidebar/index.js +1 -1
  261. package/dist/components/sign-document/index.js +1 -1
  262. package/dist/components/signature-capture/index.js +1 -1
  263. package/dist/components/signature-field/index.js +1 -1
  264. package/dist/components/signature-field/signature-field.d.ts.map +1 -1
  265. package/dist/components/stat/index.js +1 -1
  266. package/dist/components/stat/stat.d.ts +8 -0
  267. package/dist/components/stat/stat.d.ts.map +1 -1
  268. package/dist/components/stepper-accordion/index.js +1 -1
  269. package/dist/components/task-editor/index.js +1 -1
  270. package/dist/components/text-input/index.js +1 -1
  271. package/dist/components/timeline/index.js +1 -1
  272. package/dist/components/transcript-panel/index.js +1 -1
  273. package/dist/components/widget-picker/index.js +1 -1
  274. package/dist/components/workflow/index.js +1 -1
  275. package/dist/components/workflow-status/index.js +1 -1
  276. package/dist/core.css +1 -1
  277. package/dist/host-compat.css +13 -1
  278. package/dist/index.js +89 -89
  279. package/dist/patterns/alia-assistant/index.js +1 -1
  280. package/dist/patterns/anamnesis/index.js +1 -1
  281. package/dist/patterns/calendar/index.js +1 -1
  282. package/dist/patterns/forgot-password-form/index.js +1 -1
  283. package/dist/patterns/help-me-write-templates/index.js +1 -1
  284. package/dist/patterns/login-form/index.js +1 -1
  285. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  286. package/dist/patterns/payment-automation-upsell/index.js +1 -1
  287. package/dist/patterns/registration-form/index.js +1 -1
  288. package/dist/patterns/reset-password-form/index.js +1 -1
  289. package/dist/patterns/send-registration-link-form/index.js +1 -1
  290. package/dist/patterns/signature-request/index.js +1 -1
  291. package/dist/patterns/signed-out-frame/index.js +1 -1
  292. package/dist/patterns/workflow-webhook-action/index.js +1 -1
  293. package/dist/tokens.css +5 -4
  294. package/package.json +1 -1
  295. package/dist/_chunks/aspect-ratio-DeSNzASA.js.map +0 -1
  296. package/dist/_chunks/avatar-a6042Ox2.js.map +0 -1
  297. package/dist/_chunks/breadcrumb-Bn29NCnf.js.map +0 -1
  298. package/dist/_chunks/command-palette-B3dVqm9D.js.map +0 -1
  299. package/dist/_chunks/contact-profile-card-jBf9U4At.js.map +0 -1
  300. package/dist/_chunks/copy-field-hgVSc51W.js.map +0 -1
  301. package/dist/_chunks/data-table-xUDjZS_O.js.map +0 -1
  302. package/dist/_chunks/document-scanner-BQP0Rqrt.js.map +0 -1
  303. package/dist/_chunks/info-tip-Do3RFt60.js.map +0 -1
  304. package/dist/_chunks/map-view--c9bJDRw.js.map +0 -1
  305. package/dist/_chunks/multi-select-i5MFRpXg.js.map +0 -1
  306. package/dist/_chunks/navigation-menu-DbaSlvdO.js.map +0 -1
  307. package/dist/_chunks/pdf-viewer-gAsNUsA8.js.map +0 -1
  308. package/dist/_chunks/phone-input-DJ4BN8tG.js.map +0 -1
  309. package/dist/_chunks/public-footer-BiPiU_lk.js.map +0 -1
  310. package/dist/_chunks/sidebar-BS24EnYd.js.map +0 -1
  311. package/dist/_chunks/sign-document-BiOTs1P4.js.map +0 -1
  312. package/dist/_chunks/signature-capture-Chqh62Pc.js.map +0 -1
  313. package/dist/_chunks/stat-Dno2ZihS.js.map +0 -1
  314. package/dist/_chunks/stepper-accordion-DDTSOUHc.js.map +0 -1
@@ -1,19 +1,20 @@
1
- import { jsx as H, jsxs as le, Fragment as Vn } from "react/jsx-runtime";
2
- import { useContext as Gn, createContext as $n, useId as Pn, useRef as ie, useMemo as X, useState as we, useCallback as ae, useEffect as gt, memo as jn, forwardRef as Mn, lazy as Sn, Suspense as qn } from "react";
3
- import { useTranslation as Ht } from "react-i18next";
1
+ import { jsx as C, jsxs as le, Fragment as Gn } from "react/jsx-runtime";
2
+ import { useContext as Vn, createContext as $n, useId as Pn, useRef as ie, useMemo as X, useState as we, useCallback as ae, useEffect as gt, memo as jn, forwardRef as Mn, lazy as Sn, Suspense as qn } from "react";
3
+ import { useTranslation as wt } from "react-i18next";
4
4
  import { u as Wn } from "./registry-DvAUVLHh.js";
5
- import { f as An } from "./intl-locale-FWh-Y5_3.js";
5
+ import { f as Nn } from "./intl-locale-FWh-Y5_3.js";
6
6
  import { B as Un } from "./button-DohK_Ak_.js";
7
7
  import { E as Yn } from "./empty-state-DwJ5YNzz.js";
8
8
  import { L as Jn } from "./live-region-C41SO3cA.js";
9
9
  import { S as qt } from "./skeleton-tTWJpvAq.js";
10
- import { T as Nn, a as Qn } from "./tooltip-uEBdD1-5.js";
10
+ import { T as An, a as Qn } from "./tooltip-uEBdD1-5.js";
11
11
  import { p as Xn } from "./privacy-mask-DbEKI-Jv.js";
12
12
  import { u as nt } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
13
13
  import { i as Zn } from "./is-development-CLUAnsU7.js";
14
14
  import { c as ge } from "./index-D2ZczOXr.js";
15
15
  import { C as eo } from "./chevron-down-DWE7GSq9.js";
16
16
  import { E as to } from "./error-boundary-tAn_GuCu.js";
17
+ import { I as no } from "./icon-button-group-mXvYDaba.js";
17
18
  import { c as _n } from "./createLucideIcon-DhHxpK9K.js";
18
19
  /**
19
20
  * @license lucide-react v1.22.0 - ISC
@@ -21,20 +22,20 @@ import { c as _n } from "./createLucideIcon-DhHxpK9K.js";
21
22
  * This source code is licensed under the ISC license.
22
23
  * See the LICENSE file in the root directory of this source tree.
23
24
  */
24
- const no = [
25
+ const oo = [
25
26
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
26
27
  ["path", { d: "M3 9h18", key: "1pudct" }],
27
28
  ["path", { d: "M3 15h18", key: "5xshup" }],
28
29
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
29
30
  ["path", { d: "M15 3v18", key: "14nvp0" }]
30
- ], oo = _n("grid-3x3", no);
31
+ ], ao = _n("grid-3x3", oo);
31
32
  /**
32
33
  * @license lucide-react v1.22.0 - ISC
33
34
  *
34
35
  * This source code is licensed under the ISC license.
35
36
  * See the LICENSE file in the root directory of this source tree.
36
37
  */
37
- const ao = [
38
+ const ro = [
38
39
  [
39
40
  "path",
40
41
  {
@@ -42,7 +43,7 @@ const ao = [
42
43
  key: "gugj83"
43
44
  }
44
45
  ]
45
- ], ro = _n("table-2", ao), ft = {
46
+ ], so = _n("table-2", ro), ft = {
46
47
  type: "object",
47
48
  properties: {
48
49
  rowId: { type: "string", description: "Row id, from rowIds." },
@@ -52,7 +53,7 @@ const ao = [
52
53
  }
53
54
  },
54
55
  required: ["rowId", "columnId"]
55
- }, so = {
56
+ }, io = {
56
57
  id: "heatmap",
57
58
  capabilities: [
58
59
  "select_single",
@@ -320,23 +321,23 @@ const ao = [
320
321
  description: 'On every data cell: "<rowId>:<columnId>", built from the opaque ids, never from labels. A group header row and its cells carry data-heatmap-group-id, the group id as in groupIds.'
321
322
  }
322
323
  }
323
- }, _t = $n(null);
324
- function Rn() {
325
- return Gn(_t);
324
+ }, Tt = $n(null);
325
+ function Tn() {
326
+ return Vn(Tt);
326
327
  }
327
- function En(e, t) {
328
+ function Rn(e, t) {
328
329
  const n = new Intl.NumberFormat(
329
330
  e,
330
331
  t === "rate" ? { style: "percent", maximumFractionDigits: 0 } : { maximumFractionDigits: 2 }
331
332
  );
332
333
  return (o) => n.format(o);
333
334
  }
334
- function Tn(e) {
335
+ function En(e) {
335
336
  const t = new Intl.NumberFormat(e, { maximumFractionDigits: 0 });
336
337
  return (n) => t.format(n);
337
338
  }
338
- const io = "–";
339
- function lo({
339
+ const lo = "–";
340
+ function co({
340
341
  t: e,
341
342
  privacyMode: t,
342
343
  privacyScope: n = "rows",
@@ -361,24 +362,24 @@ function lo({
361
362
  // A group missing from `groups` has only its id to show, which may be a
362
363
  // name, so privacy mode masks it whatever the scope.
363
364
  groupLabel: (p) => m ? d : u.get(p) ?? (t ? d : p),
364
- cellName: (p, A) => e("heatmap.cellName", { row: p, column: A }),
365
- groupRowText: (p, A) => e("heatmap.groupRow", {
365
+ cellName: (p, N) => e("heatmap.cellName", { row: p, column: N }),
366
+ groupRowText: (p, N) => e("heatmap.groupRow", {
366
367
  group: p,
367
- method: e(A === "sum" ? "heatmap.totals.sum" : "heatmap.totals.mean")
368
+ method: e(N === "sum" ? "heatmap.totals.sum" : "heatmap.totals.mean")
368
369
  }),
369
370
  tableText: (p) => {
370
- const A = p.status === "empty" ? null : b(p), O = w(p);
371
- return A === null ? O : e("heatmap.valueWithCount", { value: O, count: A });
371
+ const N = p.status === "empty" ? null : b(p), O = w(p);
372
+ return N === null ? O : e("heatmap.valueWithCount", { value: O, count: N });
372
373
  },
373
374
  methodLabel: (p) => e(p === "sum" ? "heatmap.totals.sum" : "heatmap.totals.mean"),
374
375
  valueText: w,
375
- visibleText: (p) => p.status === "empty" ? io : p.status === "low-sample" ? "" : w(p),
376
+ visibleText: (p) => p.status === "empty" ? lo : p.status === "low-sample" ? "" : w(p),
376
377
  countText: b,
377
- sentence: (p, A, O) => {
378
+ sentence: (p, N, O) => {
378
379
  const D = b(O), y = w(O);
379
- return D === null || O.status === "empty" ? e("heatmap.cell", { row: p, column: A, value: y }) : e("heatmap.cellWithCount", {
380
+ return D === null || O.status === "empty" ? e("heatmap.cell", { row: p, column: N, value: y }) : e("heatmap.cellWithCount", {
380
381
  row: p,
381
- column: A,
382
+ column: N,
382
383
  value: y,
383
384
  count: D
384
385
  });
@@ -386,10 +387,10 @@ function lo({
386
387
  formatValue: s
387
388
  };
388
389
  }
389
- const Te = 1e12, co = 5e6, uo = co;
390
- let Tt = 0;
391
- const tn = new Error("heatmap audit: work limit"), po = 32, Le = (e) => {
392
- if (Tt += e, Tt > uo) throw tn;
390
+ const Ee = 1e12, uo = 5e6, po = uo;
391
+ let Lt = 0;
392
+ const tn = new Error("heatmap audit: work limit"), mo = 32, Le = (e) => {
393
+ if (Lt += e, Lt > po) throw tn;
393
394
  };
394
395
  function Wt(e, t) {
395
396
  return {
@@ -428,16 +429,16 @@ function nn(e, t, n, o, s, a, i, u, d) {
428
429
  }
429
430
  }
430
431
  if (Le(m), m = 0, !p) break;
431
- let A = s - v;
432
+ let N = s - v;
432
433
  for (let O = o; O !== n; O = e.to[u[O] ^ 1])
433
- A = Math.min(A, t[u[O]]);
434
+ N = Math.min(N, t[u[O]]);
434
435
  for (let O = o; O !== n; O = e.to[u[O] ^ 1])
435
- t[u[O]] -= A, t[u[O] ^ 1] += A;
436
- v += A;
436
+ t[u[O]] -= N, t[u[O] ^ 1] += N;
437
+ v += N;
437
438
  }
438
439
  return v;
439
440
  }
440
- function mo(e, t, n, o, s, a) {
441
+ function fo(e, t, n, o, s, a) {
441
442
  const i = new Uint8Array(e.n), u = -1;
442
443
  i[n] = 1;
443
444
  let d = 0, l = 0;
@@ -453,16 +454,16 @@ function mo(e, t, n, o, s, a) {
453
454
  }
454
455
  return Le(v), i;
455
456
  }
456
- const fo = (e, t) => e.integral ? Math.max(1, Math.ceil(t / 2 - 1e-9)) : Math.max(t / 2, 1e-6);
457
- function ho(e, t) {
457
+ const ho = (e, t) => e.integral ? Math.max(1, Math.ceil(t / 2 - 1e-9)) : Math.max(t / 2, 1e-6);
458
+ function go(e, t) {
458
459
  const n = e.totals.length + e.cells.length + 1, o = new Float64Array(n), s = new Float64Array(n), a = e.mode === "free";
459
460
  e.totals.forEach((u, d) => {
460
- t[d] ? (o[d] = u.value, s[d] = u.value) : (o[d] = a ? -Te : 0, s[d] = Te);
461
+ t[d] ? (o[d] = u.value, s[d] = u.value) : (o[d] = a ? -Ee : 0, s[d] = Ee);
461
462
  });
462
463
  const i = e.totals.length;
463
464
  return e.cells.forEach((u, d) => {
464
- o[i + d] = a ? -Te : Math.max(u.lo, -Te), s[i + d] = a ? Te : Math.min(u.hi, Te);
465
- }), o[n - 1] = a ? -Te : 0, s[n - 1] = Te, { lo: o, hi: s };
465
+ o[i + d] = a ? -Ee : Math.max(u.lo, -Ee), s[i + d] = a ? Ee : Math.min(u.hi, Ee);
466
+ }), o[n - 1] = a ? -Ee : 0, s[n - 1] = Ee, { lo: o, hi: s };
466
467
  }
467
468
  function vt(e, t) {
468
469
  const n = e.totals.length;
@@ -473,13 +474,13 @@ function vt(e, t) {
473
474
  }
474
475
  return [e.sink, e.source];
475
476
  }
476
- function go(e, t, n) {
477
- const { lo: o, hi: s } = ho(e, t), a = o.length, i = e.nodeCount;
477
+ function vo(e, t, n) {
478
+ const { lo: o, hi: s } = go(e, t), a = o.length, i = e.nodeCount;
478
479
  Le(a * 4);
479
480
  const u = Wt(i + 2, a + i), d = new Float64Array((a + i) * 2), l = new Float64Array(i);
480
481
  for (let g = 0; g < a; g += 1) {
481
- const [R, L] = vt(e, g), V = ht(u, R, L);
482
- d[V] = s[g] - o[g], l[L] += o[g], l[R] -= o[g];
482
+ const [T, L] = vt(e, g), G = ht(u, T, L);
483
+ d[G] = s[g] - o[g], l[L] += o[g], l[T] -= o[g];
483
484
  }
484
485
  const v = i, m = i + 1;
485
486
  let w = 0;
@@ -502,16 +503,16 @@ function go(e, t, n) {
502
503
  O[g] = o[g] + (s[g] - o[g] - d[2 * g]);
503
504
  const D = Wt(i, a), y = new Float64Array(a * 2);
504
505
  for (let g = 0; g < a; g += 1) {
505
- const [R, L] = vt(e, g), V = ht(D, R, L), J = g < e.totals.length && t[g];
506
- y[V] = J ? 0 : Math.max(0, s[g] - O[g]), y[V + 1] = J ? 0 : Math.max(0, O[g] - o[g]);
506
+ const [T, L] = vt(e, g), G = ht(D, T, L), J = g < e.totals.length && t[g];
507
+ y[G] = J ? 0 : Math.max(0, s[g] - O[g]), y[G + 1] = J ? 0 : Math.max(0, O[g] - o[g]);
507
508
  }
508
- const E = e.totals.length;
509
+ const R = e.totals.length;
509
510
  return {
510
511
  graph: D,
511
512
  cap: y,
512
513
  flow: O,
513
514
  closing: a - 1,
514
- cellArc: (g) => E + g
515
+ cellArc: (g) => R + g
515
516
  };
516
517
  }
517
518
  function Ut(e, t, n, o, s, a, i, u) {
@@ -534,7 +535,7 @@ function Ut(e, t, n, o, s, a, i, u) {
534
535
  }
535
536
  return Le(m), !1;
536
537
  }
537
- function vo(e, t, n, o) {
538
+ function wo(e, t, n, o) {
538
539
  const s = Array.from(
539
540
  { length: n },
540
541
  () => []
@@ -546,83 +547,83 @@ function vo(e, t, n, o) {
546
547
  function sn(e, t, n, o, s, a) {
547
548
  const { graph: i, cap: u } = e, d = i.n, l = s >> 1, v = new Float64Array(d).fill(1 / 0), m = new Int32Array(d).fill(-1), w = new Int32Array(d).fill(-1), b = new Uint8Array(d);
548
549
  v[n] = 0;
549
- const p = [[0, n]], A = (y) => {
550
+ const p = [[0, n]], N = (y) => {
550
551
  p.push(y);
551
- let E = p.length - 1;
552
- for (; E > 0; ) {
553
- const g = E - 1 >> 1;
552
+ let R = p.length - 1;
553
+ for (; R > 0; ) {
554
+ const g = R - 1 >> 1;
554
555
  if (p[g][0] < y[0] || p[g][0] === y[0] && p[g][1] <= y[1])
555
556
  break;
556
- p[E] = p[g], E = g;
557
+ p[R] = p[g], R = g;
557
558
  }
558
- p[E] = y;
559
+ p[R] = y;
559
560
  }, O = () => {
560
- const y = p[0], E = p.pop();
561
+ const y = p[0], R = p.pop();
561
562
  if (p.length) {
562
563
  let g = 0;
563
564
  for (; ; ) {
564
- const R = 2 * g + 1, L = R + 1;
565
- let V = g;
566
- const J = (Y, T) => p[Y][0] < T[0] || p[Y][0] === T[0] && p[Y][1] < T[1];
567
- let F = E;
568
- if (R < p.length && J(R, F) && (V = R, F = p[R]), L < p.length && J(L, F) && (V = L, F = p[L]), V === g) break;
569
- p[g] = p[V], g = V;
565
+ const T = 2 * g + 1, L = T + 1;
566
+ let G = g;
567
+ const J = (Y, E) => p[Y][0] < E[0] || p[Y][0] === E[0] && p[Y][1] < E[1];
568
+ let z = R;
569
+ if (T < p.length && J(T, z) && (G = T, z = p[T]), L < p.length && J(L, z) && (G = L, z = p[L]), G === g) break;
570
+ p[g] = p[G], g = G;
570
571
  }
571
- p[g] = E;
572
+ p[g] = R;
572
573
  }
573
574
  return y;
574
575
  };
575
576
  for (; p.length; ) {
576
- const [y, E] = O();
577
- if (b[E]) continue;
578
- b[E] = 1;
579
- let g = 2 + t[E].length;
580
- for (let R = i.head[E]; R !== -1; R = i.next[R]) g += 1;
581
- if (Le(g), E === o) break;
582
- for (let R = i.head[E]; R !== -1; R = i.next[R]) {
583
- if (u[R] <= a || R >> 1 === l) continue;
584
- const L = i.to[R];
585
- y < v[L] && (v[L] = y, m[L] = -1, w[L] = E, A([y, L]));
577
+ const [y, R] = O();
578
+ if (b[R]) continue;
579
+ b[R] = 1;
580
+ let g = 2 + t[R].length;
581
+ for (let T = i.head[R]; T !== -1; T = i.next[T]) g += 1;
582
+ if (Le(g), R === o) break;
583
+ for (let T = i.head[R]; T !== -1; T = i.next[T]) {
584
+ if (u[T] <= a || T >> 1 === l) continue;
585
+ const L = i.to[T];
586
+ y < v[L] && (v[L] = y, m[L] = -1, w[L] = R, N([y, L]));
586
587
  }
587
- for (const [R, L, V] of t[E])
588
- y + L < v[R] && (v[R] = y + L, m[R] = V, w[R] = E, A([y + L, R]));
588
+ for (const [T, L, G] of t[R])
589
+ y + L < v[T] && (v[T] = y + L, m[T] = G, w[T] = R, N([y + L, T]));
589
590
  }
590
591
  if (!Number.isFinite(v[o])) return [];
591
592
  const D = [];
592
593
  for (let y = o; y !== n; y = w[y])
593
594
  m[y] >= 0 && D.push(m[y]);
594
- return D.sort((y, E) => y - E);
595
+ return D.sort((y, R) => y - R);
595
596
  }
596
- function wo(e, t, n, o, s, a) {
597
- const i = [], { graph: u, cap: d } = n, l = new Int32Array(u.n), v = new Int32Array(u.n), m = new Uint8Array(u.n), w = [], b = n.flow.length, p = new Uint8Array(b), A = e.mode === "rate" && e.integral, O = (g, R, L, V) => L <= o ? 0 : A && L <= 1 + o ? Ut(u, d, g, R, V, o, v, m) ? L : 0 : (Le(d.length >> 2), nn(u, d.slice(), g, R, L, V, o, l, v));
597
+ function bo(e, t, n, o, s, a) {
598
+ const i = [], { graph: u, cap: d } = n, l = new Int32Array(u.n), v = new Int32Array(u.n), m = new Uint8Array(u.n), w = [], b = n.flow.length, p = new Uint8Array(b), N = e.mode === "rate" && e.integral, O = (g, T, L, G) => L <= o ? 0 : N && L <= 1 + o ? Ut(u, d, g, T, G, o, v, m) ? L : 0 : (Le(d.length >> 2), nn(u, d.slice(), g, T, L, G, o, l, v));
598
599
  let D = null;
599
- const y = () => (D = D ?? vo(e, t, u.n, o), D);
600
- let E = 0;
600
+ const y = () => (D = D ?? wo(e, t, u.n, o), D);
601
+ let R = 0;
601
602
  for (const g of s) {
602
- const R = e.cells[g], L = n.cellArc(g), [V, J] = vt(e, L), F = 2 * L;
603
- let Y, T, N, K, z;
603
+ const T = e.cells[g], L = n.cellArc(g), [G, J] = vt(e, L), z = 2 * L;
604
+ let Y, E, A, K, F;
604
605
  if (e.mode === "rate") {
605
- const c = fo(e, R.records);
606
- T = Math.min(d[F], c), K = O(J, V, T, F), N = Math.min(d[F + 1], c - K), z = O(V, J, N, F), Y = K + z >= c - o;
606
+ const c = ho(e, T.records);
607
+ E = Math.min(d[z], c), K = O(J, G, E, z), A = Math.min(d[z + 1], c - K), F = O(G, J, A, z), Y = K + F >= c - o;
607
608
  } else {
608
609
  const c = n.flow[L];
609
- N = d[F + 1], z = O(V, J, N, F);
610
- const I = Math.max(c - 2 * z, z > o ? 0 : o * 4);
611
- T = Math.min(d[F], I), K = I > 0 ? O(J, V, T, F) : 0, Y = I <= 0 || K >= I - o;
610
+ A = d[z + 1], F = O(G, J, A, z);
611
+ const I = Math.max(c - 2 * F, F > o ? 0 : o * 4);
612
+ E = Math.min(d[z], I), K = I > 0 ? O(J, G, E, z) : 0, Y = I <= 0 || K >= I - o;
612
613
  }
613
- if (K + z <= o && (p[L] = 1), Y) continue;
614
+ if (K + F <= o && (p[L] = 1), Y) continue;
614
615
  if (i.push(g), a) {
615
616
  w.push({ allOf: [] });
616
617
  break;
617
618
  }
618
- if (E >= po) continue;
619
- E += 1;
619
+ if (R >= mo) continue;
620
+ R += 1;
620
621
  const $ = /* @__PURE__ */ new Set();
621
- if (K < T - o)
622
- for (const c of sn(n, y(), J, V, F, o))
622
+ if (K < E - o)
623
+ for (const c of sn(n, y(), J, G, z, o))
623
624
  $.add(c);
624
- if (z < N - o)
625
- for (const c of sn(n, y(), V, J, F, o))
625
+ if (F < A - o)
626
+ for (const c of sn(n, y(), G, J, z, o))
626
627
  $.add(c);
627
628
  if ($.size === 0)
628
629
  for (const c of e.cellTotals[g]) t[c] && $.add(c);
@@ -630,7 +631,7 @@ function wo(e, t, n, o, s, a) {
630
631
  }
631
632
  return { disclosures: w, failed: i, pinned: p };
632
633
  }
633
- function bo(e, t, n, o, s) {
634
+ function yo(e, t, n, o, s) {
634
635
  const { graph: a, cap: i } = n, u = new Int32Array(a.n), d = new Uint8Array(a.n), l = (v) => {
635
636
  const [m, w] = vt(e, v), b = 2 * v;
636
637
  i[b] > s && Ut(a, i, w, m, b, s, u, d) || i[b + 1] > s && Ut(a, i, m, w, b, s, u, d) || (o[v] = 1);
@@ -651,8 +652,8 @@ function ln(e, t, n, o) {
651
652
  }
652
653
  return I;
653
654
  }, u = (c, I) => {
654
- const P = i(c), C = i(I);
655
- P !== C && (a[Math.max(P, C)] = Math.min(P, C));
655
+ const P = i(c), H = i(I);
656
+ P !== H && (a[Math.max(P, H)] = Math.min(P, H));
656
657
  };
657
658
  e.totals.forEach((c, I) => {
658
659
  !t[I] && !o[I] && u(c.from, c.to);
@@ -660,9 +661,9 @@ function ln(e, t, n, o) {
660
661
  const d = /* @__PURE__ */ new Map();
661
662
  e.cells.forEach((c, I) => {
662
663
  if (o[n.cellArc(I)]) return;
663
- const P = i(c.from), C = i(c.to);
664
- if (P === C) return;
665
- const Q = P * s + C, te = d.get(Q) ?? { from: P, to: C, weight: 0, cells: [] };
664
+ const P = i(c.from), H = i(c.to);
665
+ if (P === H) return;
666
+ const Q = P * s + H, te = d.get(Q) ?? { from: P, to: H, weight: 0, cells: [] };
666
667
  te.weight += c.records > 0 ? c.records : e.minCount, te.cells.push(I), d.set(Q, te);
667
668
  });
668
669
  const l = [...d.values()].sort(
@@ -675,90 +676,90 @@ function ln(e, t, n, o) {
675
676
  l.forEach((c, I) => b[m.get(c.from)].push(I));
676
677
  const p = new Int32Array(w).fill(-1);
677
678
  {
678
- const c = new Int32Array(w).fill(-1), I = new Int32Array(w), P = new Uint8Array(w), C = [];
679
+ const c = new Int32Array(w).fill(-1), I = new Int32Array(w), P = new Uint8Array(w), H = [];
679
680
  let Q = 0, te = 0;
680
681
  for (let x = 0; x < w; x += 1) {
681
682
  if (c[x] !== -1) continue;
682
683
  const _ = [[x, 0]];
683
- for (c[x] = I[x] = Q++, C.push(x), P[x] = 1; _.length; ) {
684
- const W = _[_.length - 1], [G, q] = W;
685
- if (q < b[G].length) {
684
+ for (c[x] = I[x] = Q++, H.push(x), P[x] = 1; _.length; ) {
685
+ const W = _[_.length - 1], [V, q] = W;
686
+ if (q < b[V].length) {
686
687
  W[1] += 1;
687
- const B = m.get(l[b[G][q]].to);
688
- c[B] === -1 ? (c[B] = I[B] = Q++, C.push(B), P[B] = 1, _.push([B, 0])) : P[B] && (I[G] = Math.min(I[G], c[B]));
688
+ const B = m.get(l[b[V][q]].to);
689
+ c[B] === -1 ? (c[B] = I[B] = Q++, H.push(B), P[B] = 1, _.push([B, 0])) : P[B] && (I[V] = Math.min(I[V], c[B]));
689
690
  } else {
690
691
  if (_.pop(), _.length) {
691
692
  const B = _[_.length - 1][0];
692
- I[B] = Math.min(I[B], I[G]);
693
+ I[B] = Math.min(I[B], I[V]);
693
694
  }
694
- if (I[G] === c[G]) {
695
+ if (I[V] === c[V]) {
695
696
  let B;
696
697
  do
697
- B = C.pop(), P[B] = 0, p[B] = te;
698
- while (B !== G);
698
+ B = H.pop(), P[B] = 0, p[B] = te;
699
+ while (B !== V);
699
700
  te += 1;
700
701
  }
701
702
  }
702
703
  }
703
704
  }
704
705
  }
705
- const A = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
706
+ const N = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
706
707
  for (const c of l) {
707
708
  const I = p[m.get(c.from)], P = p[m.get(c.to)];
708
709
  if (I === P) continue;
709
- const C = `${I}>${P}`, Q = A.get(C) ?? { a: I, b: P, weight: 0 };
710
- Q.weight += c.weight, A.set(C, Q), O.set(C, [...O.get(C) ?? [], ...c.cells]);
710
+ const H = `${I}>${P}`, Q = N.get(H) ?? { a: I, b: P, weight: 0 };
711
+ Q.weight += c.weight, N.set(H, Q), O.set(H, [...O.get(H) ?? [], ...c.cells]);
711
712
  }
712
- if (A.size === 0) return [];
713
- const D = [...A.entries()].sort(([c], [I]) => c < I ? -1 : 1), y = [...new Set(D.flatMap(([, c]) => [c.a, c.b]))].sort(
713
+ if (N.size === 0) return [];
714
+ const D = [...N.entries()].sort(([c], [I]) => c < I ? -1 : 1), y = [...new Set(D.flatMap(([, c]) => [c.a, c.b]))].sort(
714
715
  (c, I) => c - I
715
- ), E = new Map(y.map((c, I) => [c, I])), g = y.length, R = new Int32Array(g);
716
- for (let c = 0; c < g; c += 1) R[c] = c;
716
+ ), R = new Map(y.map((c, I) => [c, I])), g = y.length, T = new Int32Array(g);
717
+ for (let c = 0; c < g; c += 1) T[c] = c;
717
718
  const L = (c) => {
718
- for (; R[c] !== c; )
719
- R[c] = R[R[c]], c = R[c];
719
+ for (; T[c] !== c; )
720
+ T[c] = T[T[c]], c = T[c];
720
721
  return c;
721
722
  };
722
723
  for (const [, c] of D) {
723
- const I = L(E.get(c.a)), P = L(E.get(c.b));
724
- I !== P && (R[Math.max(I, P)] = Math.min(I, P));
724
+ const I = L(R.get(c.a)), P = L(R.get(c.b));
725
+ I !== P && (T[Math.max(I, P)] = Math.min(I, P));
725
726
  }
726
- const V = Wt(g, D.length), J = new Float64Array(D.length * 2);
727
+ const G = Wt(g, D.length), J = new Float64Array(D.length * 2);
727
728
  for (const [, c] of D) {
728
729
  const I = ht(
729
- V,
730
- E.get(c.a),
731
- E.get(c.b)
730
+ G,
731
+ R.get(c.a),
732
+ R.get(c.b)
732
733
  );
733
- J[I] = c.weight, J[I + 1] = Te;
734
+ J[I] = c.weight, J[I + 1] = Ee;
734
735
  }
735
- const F = new Int32Array(g), Y = new Int32Array(g), T = /* @__PURE__ */ new Map(), N = (c) => {
736
- const I = new Uint8Array(s), P = new Uint8Array(s), C = /* @__PURE__ */ new Map();
737
- y.forEach((Q, te) => C.set(Q, c[te]));
736
+ const z = new Int32Array(g), Y = new Int32Array(g), E = /* @__PURE__ */ new Map(), A = (c) => {
737
+ const I = new Uint8Array(s), P = new Uint8Array(s), H = /* @__PURE__ */ new Map();
738
+ y.forEach((Q, te) => H.set(Q, c[te]));
738
739
  for (let Q = 0; Q < s; Q += 1) {
739
740
  const te = m.get(i(Q));
740
- te !== void 0 && (P[Q] = 1, I[Q] = C.get(p[te]) ?? 0);
741
+ te !== void 0 && (P[Q] = 1, I[Q] = H.get(p[te]) ?? 0);
741
742
  }
742
743
  return { nodeSide: I, inGraph: P };
743
744
  }, K = (c) => {
744
745
  const I = [];
745
- for (const [W, G] of D) {
746
- const q = E.get(G.a), B = E.get(G.b);
746
+ for (const [W, V] of D) {
747
+ const q = R.get(V.a), B = R.get(V.b);
747
748
  c[q] === 1 && c[B] === 0 && I.push(...O.get(W) ?? []);
748
749
  }
749
- I.sort((W, G) => W - G);
750
+ I.sort((W, V) => W - V);
750
751
  const P = I.join(",");
751
- if (T.has(P)) return;
752
- const { nodeSide: C, inGraph: Q } = N(c), te = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
753
- e.totals.forEach((W, G) => {
754
- !t[G] || C[W.from] === C[W.to] || (Q[W.from] && Q[W.to] ? te.add(G) : x.add(G));
752
+ if (E.has(P)) return;
753
+ const { nodeSide: H, inGraph: Q } = A(c), te = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
754
+ e.totals.forEach((W, V) => {
755
+ !t[V] || H[W.from] === H[W.to] || (Q[W.from] && Q[W.to] ? te.add(V) : x.add(V));
755
756
  });
756
757
  const _ = te.size > 0 ? te : x;
757
758
  if (_.size === 0)
758
759
  for (const W of I)
759
- for (const G of e.cellTotals[W]) t[G] && _.add(G);
760
- T.set(P, { anyOf: [..._].sort((W, G) => W - G) });
761
- }, z = e.minCount, $ = /* @__PURE__ */ new Map();
760
+ for (const V of e.cellTotals[W]) t[V] && _.add(V);
761
+ E.set(P, { anyOf: [..._].sort((W, V) => W - V) });
762
+ }, F = e.minCount, $ = /* @__PURE__ */ new Map();
762
763
  for (let c = 0; c < g; c += 1) {
763
764
  const I = L(c);
764
765
  $.has(I) || $.set(I, c);
@@ -766,21 +767,21 @@ function ln(e, t, n, o) {
766
767
  for (let c = 0; c < g; c += 1) {
767
768
  const I = $.get(L(c));
768
769
  if (I !== c)
769
- for (const [P, C] of [
770
+ for (const [P, H] of [
770
771
  [I, c],
771
772
  [c, I]
772
773
  ]) {
773
774
  Le(J.length >> 2);
774
775
  const Q = J.slice();
775
- if (nn(V, Q, P, C, z, -1, 1e-9, F, Y) < z - 1e-9) {
776
- const x = mo(V, Q, P, -1, 1e-9, Y);
776
+ if (nn(G, Q, P, H, F, -1, 1e-9, z, Y) < F - 1e-9) {
777
+ const x = fo(G, Q, P, -1, 1e-9, Y);
777
778
  K(x);
778
779
  }
779
780
  }
780
781
  }
781
- return [...T.values()];
782
+ return [...E.values()];
782
783
  }
783
- function yo(e, t) {
784
+ function xo(e, t) {
784
785
  const n = e.nodeCount, o = e.totals.length + e.cells.length + 1, s = Array.from({ length: n }, () => []);
785
786
  for (let l = 0; l < o; l += 1) {
786
787
  if (l < e.totals.length && t[l]) continue;
@@ -796,12 +797,12 @@ function yo(e, t) {
796
797
  const m = v[v.length - 1], [w, b, p] = m;
797
798
  if (p < s[w].length) {
798
799
  m[2] += 1;
799
- const [A, O] = s[w][p];
800
+ const [N, O] = s[w][p];
800
801
  if (O === b) continue;
801
- i[A] === -1 ? (i[A] = u[A] = d++, v.push([A, O, 0])) : u[w] = Math.min(u[w], i[A]);
802
+ i[N] === -1 ? (i[N] = u[N] = d++, v.push([N, O, 0])) : u[w] = Math.min(u[w], i[N]);
802
803
  } else if (v.pop(), v.length) {
803
- const A = v[v.length - 1][0];
804
- u[A] = Math.min(u[A], u[w]), u[w] > i[A] && (a[b] = 1);
804
+ const N = v[v.length - 1][0];
805
+ u[N] = Math.min(u[N], u[w]), u[w] > i[N] && (a[b] = 1);
805
806
  }
806
807
  }
807
808
  }
@@ -809,7 +810,7 @@ function yo(e, t) {
809
810
  }
810
811
  function Ln(e, t, n, o, s = !1) {
811
812
  if (e.mode === "free") {
812
- const u = yo(e, t), d = [], l = [];
813
+ const u = xo(e, t), d = [], l = [];
813
814
  for (const m of o)
814
815
  if (u[e.totals.length + m]) {
815
816
  if (s) return { disclosures: [{ allOf: [] }], cells: [m] };
@@ -827,15 +828,15 @@ function Ln(e, t, n, o, s = !1) {
827
828
  cells: []
828
829
  };
829
830
  }
830
- const a = go(e, t, n);
831
+ const a = vo(e, t, n);
831
832
  if (!a) return null;
832
- const i = wo(e, t, a, n, o, s);
833
- return i.disclosures.length ? { disclosures: i.disclosures, cells: i.failed } : (bo(e, t, a, i.pinned, n), {
833
+ const i = bo(e, t, a, n, o, s);
834
+ return i.disclosures.length ? { disclosures: i.disclosures, cells: i.failed } : (yo(e, t, a, i.pinned, n), {
834
835
  disclosures: ln(e, t, a, i.pinned),
835
836
  cells: []
836
837
  });
837
838
  }
838
- function xo(e, t) {
839
+ function Io(e, t) {
839
840
  const n = /* @__PURE__ */ new Set();
840
841
  for (const s of t) for (const a of s.allOf ?? []) n.add(a);
841
842
  let o = t.filter(
@@ -854,10 +855,10 @@ function xo(e, t) {
854
855
  }
855
856
  return [...n].sort((s, a) => s - a);
856
857
  }
857
- function Io(e, t = 0) {
858
- Tt = t;
858
+ function ko(e, t = 0) {
859
+ Lt = t;
859
860
  try {
860
- return Mo(e);
861
+ return So(e);
861
862
  } catch (n) {
862
863
  if (n !== tn) throw n;
863
864
  const o = new Uint8Array(e.totals.length);
@@ -866,10 +867,10 @@ function Io(e, t = 0) {
866
867
  return e.totals.map((s, a) => s.shown && !o[a]);
867
868
  }
868
869
  }
869
- function ko() {
870
- return Tt;
870
+ function Mo() {
871
+ return Lt;
871
872
  }
872
- function Mo(e) {
873
+ function So(e) {
873
874
  const t = e.totals.map((m) => m.shown);
874
875
  if (e.cells.length === 0) return t;
875
876
  let n = 1;
@@ -888,7 +889,7 @@ function Mo(e) {
888
889
  const w = Ln(e, t, o, u);
889
890
  if (w === null) return a();
890
891
  if (w.disclosures.length === 0) break;
891
- const b = xo(e, w.disclosures);
892
+ const b = Io(e, w.disclosures);
892
893
  if (b.length === 0) return a();
893
894
  for (const p of b)
894
895
  t[p] = !1, d.push(p);
@@ -898,10 +899,10 @@ function Mo(e) {
898
899
  (m, w) => e.totals[w].records - e.totals[m].records || m - w
899
900
  );
900
901
  for (const m of v)
901
- t[m] = !0, So(e, t, m, i, o) || (t[m] = !1);
902
+ t[m] = !0, No(e, t, m, i, o) || (t[m] = !1);
902
903
  return t;
903
904
  }
904
- function So(e, t, n, o, s) {
905
+ function No(e, t, n, o, s) {
905
906
  try {
906
907
  const a = /* @__PURE__ */ new Set();
907
908
  e.cellTotals.forEach((d, l) => {
@@ -914,7 +915,7 @@ function So(e, t, n, o, s) {
914
915
  return !1;
915
916
  }
916
917
  }
917
- const Re = 10, on = Math.floor(Re / 2), ot = Re - 1, et = Re / 2, rt = (e, t, n) => Math.min(n, Math.max(t, e)), cn = /* @__PURE__ */ new Set();
918
+ const Te = 10, on = Math.floor(Te / 2), ot = Te - 1, et = Te / 2, rt = (e, t, n) => Math.min(n, Math.max(t, e)), cn = /* @__PURE__ */ new Set();
918
919
  function Yt(e) {
919
920
  !Zn() || cn.has(e) || (cn.add(e), console.warn(`Heatmap: ${e}`));
920
921
  }
@@ -933,12 +934,12 @@ function Ao(e) {
933
934
  Number.isFinite(o) && (o < t && (t = o), o > n && (n = o));
934
935
  return t === 1 / 0 ? null : [t, n];
935
936
  }
936
- function No(e, t, n) {
937
+ function _o(e, t, n) {
937
938
  if (!(n > t)) return on;
938
939
  const o = rt((e - t) / (n - t), 0, 1);
939
- return Math.min(ot, Math.floor(o * Re));
940
+ return Math.min(ot, Math.floor(o * Te));
940
941
  }
941
- function _o(e, t, n, o) {
942
+ function To(e, t, n, o) {
942
943
  if (e < n) {
943
944
  const i = n - t, u = i > 0 ? rt((n - e) / i, 0, 1) : 1;
944
945
  return et - 1 - Math.min(et - 1, Math.floor(u * et));
@@ -962,13 +963,13 @@ function Eo(e, t) {
962
963
  const o = rt(t, 0, 1) * (n - 1), s = Math.floor(o), a = Math.min(n - 1, s + 1);
963
964
  return e[s] + (e[a] - e[s]) * (o - s);
964
965
  }
965
- function To(e, t) {
966
+ function Lo(e, t) {
966
967
  const n = Math.max(1, Math.round(t)), o = [];
967
968
  for (let s = 1; s < n; s += 1)
968
969
  o.push(Eo(e, s / n));
969
970
  return o;
970
971
  }
971
- function Lo(e, t) {
972
+ function Oo(e, t) {
972
973
  if (e.length === 0) return [];
973
974
  const n = e[0], o = (s) => {
974
975
  let a = 0, i = e.length - 1;
@@ -979,7 +980,7 @@ function Lo(e, t) {
979
980
  return e[a];
980
981
  };
981
982
  return On(
982
- To(e, t).map(o)
983
+ Lo(e, t).map(o)
983
984
  ).filter((s) => s > n);
984
985
  }
985
986
  function un(e, t) {
@@ -1016,15 +1017,15 @@ function Qt(e, t) {
1016
1017
  max: i,
1017
1018
  midpoint: s,
1018
1019
  thresholds: [],
1019
- stepOf: (u) => _o(u, a, s, i)
1020
+ stepOf: (u) => To(u, a, s, i)
1020
1021
  };
1021
1022
  }
1022
1023
  case "quantile": {
1023
1024
  const o = t.filter(Number.isFinite).slice().sort((i, u) => i - u), s = rt(
1024
- Math.round(e.buckets ?? Re),
1025
+ Math.round(e.buckets ?? Te),
1025
1026
  2,
1026
- Re
1027
- ), a = Lo(o, s);
1027
+ Te
1028
+ ), a = Oo(o, s);
1028
1029
  return {
1029
1030
  type: "quantile",
1030
1031
  min: (n == null ? void 0 : n[0]) ?? null,
@@ -1055,18 +1056,18 @@ function Qt(e, t) {
1055
1056
  min: s,
1056
1057
  max: a,
1057
1058
  thresholds: [],
1058
- stepOf: (i) => s === null || a === null ? on : No(i, s, a)
1059
+ stepOf: (i) => s === null || a === null ? on : _o(i, s, a)
1059
1060
  };
1060
1061
  }
1061
1062
  }
1062
1063
  }
1063
- function Oo(e) {
1064
+ function Co(e) {
1064
1065
  let t = 0, n = !1, o = 0, s = !1;
1065
1066
  for (const a of e)
1066
1067
  a.value === null || !Number.isFinite(a.value) || (t += a.value, n = !0, a.count !== void 0 && (o += a.count, s = !0));
1067
1068
  return { value: n ? t : null, count: s ? o : void 0 };
1068
1069
  }
1069
- function Co(e) {
1070
+ function Ho(e) {
1070
1071
  let t = 0, n = 0, o = 0, s = !1;
1071
1072
  for (const a of e) {
1072
1073
  if (a.value === null || !Number.isFinite(a.value)) continue;
@@ -1078,10 +1079,10 @@ function Co(e) {
1078
1079
  count: s ? o : void 0
1079
1080
  };
1080
1081
  }
1081
- function Ho(e, t) {
1082
- return t === "sum" ? Oo(e) : Co(e);
1083
- }
1084
1082
  function Do(e, t) {
1083
+ return t === "sum" ? Co(e) : Ho(e);
1084
+ }
1085
+ function Ko(e, t) {
1085
1086
  const n = new Set(t == null ? void 0 : t.map((i) => i.id)), o = new Set(n), s = /* @__PURE__ */ new Map();
1086
1087
  let a = 0;
1087
1088
  for (const i of e) {
@@ -1108,7 +1109,7 @@ function Hn(e, t) {
1108
1109
  const n = typeof e == "number" ? { value: e } : e, o = n.value === null || !Number.isFinite(n.value) ? null : n.value, s = Cn(n.count, t) && (o !== null || (n.count ?? 0) > 0) ? "low-sample" : o === null ? "empty" : "value";
1109
1110
  return { value: o, count: n.count, label: n.label, status: s };
1110
1111
  }
1111
- function Ko(e, t, n, o, s) {
1112
+ function Fo(e, t, n, o, s) {
1112
1113
  return e.map(
1113
1114
  (a, i) => t.map(
1114
1115
  (u, d) => {
@@ -1128,10 +1129,10 @@ function zo(e) {
1128
1129
  o.status === "value" && o.value !== null && t.push(o.value);
1129
1130
  return t;
1130
1131
  }
1131
- function Fo(e) {
1132
+ function Bo(e) {
1132
1133
  return e.some((t) => t.some((n) => n.status !== "empty"));
1133
1134
  }
1134
- const Bo = {
1135
+ const Go = {
1135
1136
  value: null,
1136
1137
  status: "low-sample",
1137
1138
  withheld: !0
@@ -1142,15 +1143,15 @@ const Bo = {
1142
1143
  groups: !0,
1143
1144
  groupColumns: !0
1144
1145
  };
1145
- function Go(e, t, n) {
1146
- const o = Ho(e, t);
1146
+ function $o(e, t, n) {
1147
+ const o = Do(e, t);
1147
1148
  return {
1148
1149
  value: o.value,
1149
1150
  count: o.count,
1150
1151
  status: o.value === null ? "empty" : Cn(o.count, n) ? "low-sample" : "value"
1151
1152
  };
1152
1153
  }
1153
- function $o(e, t, n, o) {
1154
+ function Po(e, t, n, o) {
1154
1155
  const {
1155
1156
  rowMethod: s,
1156
1157
  columnMethod: a,
@@ -1159,143 +1160,143 @@ function $o(e, t, n, o) {
1159
1160
  minCount: d,
1160
1161
  getTotal: l,
1161
1162
  valueType: v = "number"
1162
- } = o, m = o.shown ?? Vo, w = t.map((T, N) => N), b = n.map((T, N) => N), p = [], A = (T, N, K, z, $) => {
1163
+ } = o, m = o.shown ?? Vo, w = t.map((E, A) => A), b = n.map((E, A) => A), p = [], N = (E, A, K, F, $) => {
1163
1164
  const c = [];
1164
1165
  for (const x of K)
1165
- for (const _ of z) c.push(e[x][_]);
1166
- let I = 0, P = !1, C = !1;
1166
+ for (const _ of F) c.push(e[x][_]);
1167
+ let I = 0, P = !1, H = !1;
1167
1168
  for (const x of c)
1168
- x.status === "low-sample" && (P = !0, I += x.count ?? 0, x.value === null && (C = !0));
1169
- const Q = T === void 0 ? Go(c, N, d) : Hn(T, d), te = Q.status === "low-sample" || T === void 0 && C || d !== void 0 && I > 0 && I < d;
1169
+ x.status === "low-sample" && (P = !0, I += x.count ?? 0, x.value === null && (H = !0));
1170
+ const Q = E === void 0 ? $o(c, A, d) : Hn(E, d), te = Q.status === "low-sample" || E === void 0 && H || d !== void 0 && I > 0 && I < d;
1170
1171
  return p.push({
1171
- method: N,
1172
+ method: A,
1172
1173
  rowIndexes: K,
1173
- columnIndexes: z,
1174
+ columnIndexes: F,
1174
1175
  own: Q,
1175
1176
  primary: te,
1176
1177
  visible: $,
1177
1178
  holdsHidden: P
1178
1179
  }), p.length - 1;
1179
1180
  }, O = t.map(
1180
- (T, N) => A(
1181
+ (E, A) => N(
1181
1182
  l == null ? void 0 : l({
1182
1183
  kind: "row",
1183
1184
  method: s,
1184
- row: T,
1185
- rowId: T.id,
1186
- rowIndex: N
1185
+ row: E,
1186
+ rowId: E.id,
1187
+ rowIndex: A
1187
1188
  }),
1188
1189
  s,
1189
- [N],
1190
+ [A],
1190
1191
  b,
1191
1192
  m.rows
1192
1193
  )
1193
1194
  ), D = /* @__PURE__ */ new Map();
1194
- t.forEach((T, N) => {
1195
- if (T.group === void 0) return;
1196
- const K = D.get(T.group) ?? [];
1197
- K.push(N), D.set(T.group, K);
1195
+ t.forEach((E, A) => {
1196
+ if (E.group === void 0) return;
1197
+ const K = D.get(E.group) ?? [];
1198
+ K.push(A), D.set(E.group, K);
1198
1199
  });
1199
- const y = new Map(u == null ? void 0 : u.map((T) => [T.id, T])), E = (T, N) => {
1200
- const K = y.get(T);
1200
+ const y = new Map(u == null ? void 0 : u.map((E) => [E.id, E])), R = (E, A) => {
1201
+ const K = y.get(E);
1201
1202
  return {
1202
- groupId: T,
1203
+ groupId: E,
1203
1204
  ...K === void 0 ? {} : { group: K },
1204
- rows: N.map((z) => t[z]),
1205
- rowIndexes: N
1205
+ rows: A.map((F) => t[F]),
1206
+ rowIndexes: A
1206
1207
  };
1207
1208
  }, g = /* @__PURE__ */ new Map();
1208
- for (const [T, N] of D) {
1209
- const K = E(T, N);
1209
+ for (const [E, A] of D) {
1210
+ const K = R(E, A);
1210
1211
  g.set(
1211
- T,
1212
+ E,
1212
1213
  n.map(
1213
- (z, $) => A(
1214
+ (F, $) => N(
1214
1215
  l == null ? void 0 : l({
1215
1216
  kind: "group-column",
1216
1217
  method: i,
1217
1218
  ...K,
1218
- column: z,
1219
- columnId: z.id,
1219
+ column: F,
1220
+ columnId: F.id,
1220
1221
  columnIndex: $
1221
1222
  }),
1222
1223
  i,
1223
- N,
1224
+ A,
1224
1225
  [$],
1225
1226
  m.groupColumns
1226
1227
  )
1227
1228
  )
1228
1229
  );
1229
1230
  }
1230
- const R = n.map(
1231
- (T, N) => A(
1231
+ const T = n.map(
1232
+ (E, A) => N(
1232
1233
  l == null ? void 0 : l({
1233
1234
  kind: "column",
1234
1235
  method: a,
1235
- column: T,
1236
- columnId: T.id,
1237
- columnIndex: N
1236
+ column: E,
1237
+ columnId: E.id,
1238
+ columnIndex: A
1238
1239
  }),
1239
1240
  a,
1240
1241
  w,
1241
- [N],
1242
+ [A],
1242
1243
  m.columns
1243
1244
  )
1244
1245
  ), L = /* @__PURE__ */ new Map();
1245
- for (const [T, N] of D)
1246
+ for (const [E, A] of D)
1246
1247
  L.set(
1247
- T,
1248
- A(
1248
+ E,
1249
+ N(
1249
1250
  l == null ? void 0 : l({
1250
1251
  kind: "group",
1251
1252
  method: s,
1252
- ...E(T, N)
1253
+ ...R(E, A)
1253
1254
  }),
1254
1255
  s,
1255
- N,
1256
+ A,
1256
1257
  b,
1257
1258
  m.groups
1258
1259
  )
1259
1260
  );
1260
- const V = A(
1261
+ const G = N(
1261
1262
  l == null ? void 0 : l({ kind: "grand", method: s }),
1262
1263
  s,
1263
1264
  w,
1264
1265
  b,
1265
1266
  m.grand
1266
- ), J = p.map((T) => T.primary);
1267
- Po({
1267
+ ), J = p.map((E) => E.primary);
1268
+ jo({
1268
1269
  matrix: e,
1269
1270
  rows: t,
1270
1271
  drafts: p,
1271
1272
  rowDrafts: O,
1272
- columnDrafts: R,
1273
+ columnDrafts: T,
1273
1274
  groupDrafts: L,
1274
1275
  groupColumnDrafts: g,
1275
- grandDraft: V,
1276
+ grandDraft: G,
1276
1277
  members: D,
1277
1278
  valueType: v,
1278
1279
  minCount: d
1279
- }).forEach((T, N) => {
1280
- T || (J[N] = !0);
1280
+ }).forEach((E, A) => {
1281
+ E || (J[A] = !0);
1281
1282
  });
1282
- const Y = (T) => J[T] ? Bo : p[T].own;
1283
+ const Y = (E) => J[E] ? Go : p[E].own;
1283
1284
  return {
1284
1285
  rows: O.map(Y),
1285
- columns: R.map(Y),
1286
- grand: Y(V),
1286
+ columns: T.map(Y),
1287
+ grand: Y(G),
1287
1288
  groupColumns: new Map(
1288
- [...g].map(([T, N]) => [
1289
- T,
1290
- N.map(Y)
1289
+ [...g].map(([E, A]) => [
1290
+ E,
1291
+ A.map(Y)
1291
1292
  ])
1292
1293
  ),
1293
1294
  groups: new Map(
1294
- [...L].map(([T, N]) => [T, Y(N)])
1295
+ [...L].map(([E, A]) => [E, Y(A)])
1295
1296
  )
1296
1297
  };
1297
1298
  }
1298
- function Po(e) {
1299
+ function jo(e) {
1299
1300
  const { matrix: t, rows: n, drafts: o, members: s, valueType: a, minCount: i } = e, u = o.map(() => !0);
1300
1301
  if (i === void 0) return u;
1301
1302
  const d = o.map(
@@ -1310,77 +1311,77 @@ function Po(e) {
1310
1311
  if (a === "rate" && m === "sum") return v();
1311
1312
  const w = (x) => m === "mean" ? x.count ?? 1 : 1, b = a === "rate";
1312
1313
  if (!b && m === "mean") return v();
1313
- const p = (x) => x.status === "low-sample" && (m === "sum" || (x.count ?? 0) > 0), A = 0, O = 1, D = 2;
1314
+ const p = (x) => x.status === "low-sample" && (m === "sum" || (x.count ?? 0) > 0), N = 0, O = 1, D = 2;
1314
1315
  let y = 3;
1315
- const E = /* @__PURE__ */ new Map();
1316
- for (const x of s.keys()) E.set(x, y++);
1317
- const g = n.map(() => y++), R = /* @__PURE__ */ new Map(), L = e.columnDrafts.length;
1316
+ const R = /* @__PURE__ */ new Map();
1317
+ for (const x of s.keys()) R.set(x, y++);
1318
+ const g = n.map(() => y++), T = /* @__PURE__ */ new Map(), L = e.columnDrafts.length;
1318
1319
  for (const x of s.keys())
1319
- R.set(
1320
+ T.set(
1320
1321
  x,
1321
1322
  Array.from({ length: L }, () => y++)
1322
1323
  );
1323
- const V = e.columnDrafts.map(() => y++), J = (x) => n[x].group, F = o.map(() => [0, 0]);
1324
+ const G = e.columnDrafts.map(() => y++), J = (x) => n[x].group, z = o.map(() => [0, 0]);
1324
1325
  e.rowDrafts.forEach((x, _) => {
1325
1326
  const W = J(_);
1326
- F[x] = [
1327
- W === void 0 ? D : E.get(W),
1327
+ z[x] = [
1328
+ W === void 0 ? D : R.get(W),
1328
1329
  g[_]
1329
1330
  ];
1330
1331
  });
1331
1332
  for (const [x, _] of e.groupDrafts)
1332
- F[_] = [D, E.get(x)];
1333
+ z[_] = [D, R.get(x)];
1333
1334
  for (const [x, _] of e.groupColumnDrafts)
1334
- _.forEach((W, G) => {
1335
- F[W] = [R.get(x)[G], V[G]];
1335
+ _.forEach((W, V) => {
1336
+ z[W] = [T.get(x)[V], G[V]];
1336
1337
  });
1337
1338
  e.columnDrafts.forEach((x, _) => {
1338
- F[x] = [V[_], O];
1339
- }), F[e.grandDraft] = [A, D];
1340
- const Y = [], T = [];
1341
- let N = !0, K = !0;
1339
+ z[x] = [G[_], O];
1340
+ }), z[e.grandDraft] = [N, D];
1341
+ const Y = [], E = [];
1342
+ let A = !0, K = !0;
1342
1343
  if (t.forEach((x, _) => {
1343
- x.forEach((W, G) => {
1344
+ x.forEach((W, V) => {
1344
1345
  if (W.value !== null && W.value < 0 && (K = !1), !p(W)) return;
1345
- Number.isInteger(W.count ?? 0) || (N = !1);
1346
+ Number.isInteger(W.count ?? 0) || (A = !1);
1346
1347
  const q = J(_);
1347
1348
  Y.push({
1348
1349
  from: g[_],
1349
- to: q === void 0 ? V[G] : R.get(q)[G],
1350
+ to: q === void 0 ? G[V] : T.get(q)[V],
1350
1351
  lo: 0,
1351
1352
  hi: a === "rate" ? W.count ?? 0 : 1 / 0,
1352
1353
  records: W.count ?? 0
1353
1354
  });
1354
1355
  const B = [
1355
1356
  e.rowDrafts[_],
1356
- e.columnDrafts[G],
1357
+ e.columnDrafts[V],
1357
1358
  e.grandDraft
1358
1359
  ];
1359
1360
  q !== void 0 && B.push(
1360
1361
  e.groupDrafts.get(q),
1361
- e.groupColumnDrafts.get(q)[G]
1362
- ), T.push(B.sort((re, ne) => re - ne));
1362
+ e.groupColumnDrafts.get(q)[V]
1363
+ ), E.push(B.sort((re, ne) => re - ne));
1363
1364
  });
1364
1365
  }), Y.length === 0) return u;
1365
- const z = (x) => Math.abs(x - Math.round(x)) <= 1e-9 * Math.max(1, Math.abs(x));
1366
+ const F = (x) => Math.abs(x - Math.round(x)) <= 1e-9 * Math.max(1, Math.abs(x));
1366
1367
  let $ = !0, c = !1;
1367
1368
  const I = (x, _) => x.count === void 0 ? _ : Math.round(_), P = o.map((x, _) => {
1368
- let W = 0, G = 0, q = 0, B = 0, re = 0;
1369
- for (const Ne of x.rowIndexes)
1369
+ let W = 0, V = 0, q = 0, B = 0, re = 0;
1370
+ for (const Ae of x.rowIndexes)
1370
1371
  for (const be of x.columnIndexes) {
1371
- const Z = t[Ne][be];
1372
+ const Z = t[Ae][be];
1372
1373
  if (Z.status !== "empty") {
1373
- if (G += w(Z), W += Z.count ?? 1, p(Z)) re += 1;
1374
+ if (V += w(Z), W += Z.count ?? 1, p(Z)) re += 1;
1374
1375
  else if (Z.value !== null) {
1375
1376
  const pe = w(Z) * Z.value;
1376
- z(pe) || ($ = !1), q += pe, B += I(Z, pe);
1377
+ F(pe) || ($ = !1), q += pe, B += I(Z, pe);
1377
1378
  }
1378
1379
  }
1379
1380
  }
1380
1381
  let ne = 0, Me = 0;
1381
1382
  if (d[_] && re > 0) {
1382
- const Ne = x.own.value;
1383
- ne = m === "mean" ? Ne * G : Ne, z(ne) || ($ = !1), m === "mean" && x.own.count !== void 0 && Math.abs(x.own.count - G) > 1e-9 * Math.max(1, G) && (c = !0), Me = x.own.count === void 0 ? ne : Math.round(ne);
1383
+ const Ae = x.own.value;
1384
+ ne = m === "mean" ? Ae * V : Ae, F(ne) || ($ = !1), m === "mean" && x.own.count !== void 0 && Math.abs(x.own.count - V) > 1e-9 * Math.max(1, V) && (c = !0), Me = x.own.count === void 0 ? ne : Math.round(ne);
1384
1385
  }
1385
1386
  return { records: W, exact: q, rounded: B, unknowns: re, whole: ne, wholeRounded: Me };
1386
1387
  });
@@ -1388,8 +1389,8 @@ function Po(e) {
1388
1389
  o.forEach((x, _) => {
1389
1390
  d[_] && x.own.value < 0 && (K = !1);
1390
1391
  });
1391
- const C = a === "rate" ? "rate" : K ? "scaled" : "free", Q = (x, _, W) => {
1392
- const G = o.map((q, B) => {
1392
+ const H = a === "rate" ? "rate" : K ? "scaled" : "free", Q = (x, _, W) => {
1393
+ const V = o.map((q, B) => {
1393
1394
  const re = P[B];
1394
1395
  let ne = 0;
1395
1396
  if (_[B] && re.unknowns > 0) {
@@ -1398,23 +1399,23 @@ function Po(e) {
1398
1399
  ne < 0 && ne > -Me && (ne = 0);
1399
1400
  }
1400
1401
  return {
1401
- from: F[B][0],
1402
- to: F[B][1],
1402
+ from: z[B][0],
1403
+ to: z[B][1],
1403
1404
  value: ne,
1404
1405
  shown: _[B],
1405
1406
  records: re.records
1406
1407
  };
1407
1408
  });
1408
- return Io(
1409
+ return ko(
1409
1410
  {
1410
1411
  nodeCount: y,
1411
1412
  sink: O,
1412
- source: A,
1413
+ source: N,
1413
1414
  cells: Y,
1414
- totals: G,
1415
- cellTotals: T,
1416
- mode: C,
1417
- integral: b && N && (x || $),
1415
+ totals: V,
1416
+ cellTotals: E,
1417
+ mode: H,
1418
+ integral: b && A && (x || $),
1418
1419
  minCount: i
1419
1420
  },
1420
1421
  W
@@ -1428,13 +1429,13 @@ function Po(e) {
1428
1429
  te = Q(
1429
1430
  !1,
1430
1431
  d.map((_, W) => _ && x[W]),
1431
- ko()
1432
+ Mo()
1432
1433
  );
1433
1434
  }
1434
1435
  return o.map((x, _) => !d[_] || te[_]);
1435
1436
  }
1436
- const Vt = (e) => `d:${e}`, jo = (e) => `g:${e}`, At = "f";
1437
- function qo(e, t, n, o, s) {
1437
+ const Gt = (e) => `d:${e}`, qo = (e) => `g:${e}`, At = "f";
1438
+ function Wo(e, t, n, o, s) {
1438
1439
  const a = [...e];
1439
1440
  if (o === "label")
1440
1441
  return a.sort((i, u) => s.compare(t[i].label, t[u].label));
@@ -1453,7 +1454,7 @@ function pn(e, t, n, o) {
1453
1454
  if (!n)
1454
1455
  return t.map((l) => ({
1455
1456
  kind: "data",
1456
- key: Vt(e[l].id),
1457
+ key: Gt(e[l].id),
1457
1458
  rowIndex: l,
1458
1459
  groupId: e[l].group
1459
1460
  }));
@@ -1470,7 +1471,7 @@ function pn(e, t, n, o) {
1470
1471
  const v = a.get(l) ?? [], m = o.has(l);
1471
1472
  if (u.push({
1472
1473
  kind: "group",
1473
- key: jo(l),
1474
+ key: qo(l),
1474
1475
  groupId: l,
1475
1476
  collapsed: m,
1476
1477
  rowIndexes: v
@@ -1478,13 +1479,13 @@ function pn(e, t, n, o) {
1478
1479
  for (const w of v)
1479
1480
  u.push({
1480
1481
  kind: "data",
1481
- key: Vt(e[w].id),
1482
+ key: Gt(e[w].id),
1482
1483
  rowIndex: w,
1483
1484
  groupId: l
1484
1485
  });
1485
1486
  }
1486
1487
  for (const l of i)
1487
- u.push({ kind: "data", key: Vt(e[l].id), rowIndex: l });
1488
+ u.push({ kind: "data", key: Gt(e[l].id), rowIndex: l });
1488
1489
  return u;
1489
1490
  }
1490
1491
  function Dn({
@@ -1495,9 +1496,9 @@ function Dn({
1495
1496
  side: s = "top",
1496
1497
  children: a
1497
1498
  }) {
1498
- const i = Rn(), u = t ?? (i == null ? void 0 : i.tooltipText(e)) ?? "";
1499
- return /* @__PURE__ */ H(
1500
- Nn,
1499
+ const i = Tn(), u = t ?? (i == null ? void 0 : i.tooltipText(e)) ?? "";
1500
+ return /* @__PURE__ */ C(
1501
+ An,
1501
1502
  {
1502
1503
  label: u,
1503
1504
  open: n,
@@ -1513,7 +1514,7 @@ function mn({
1513
1514
  label: e,
1514
1515
  onOpenChange: t
1515
1516
  }) {
1516
- return /* @__PURE__ */ H(Nn, { label: e, open: !0, onOpenChange: t, delayDuration: 0, children: /* @__PURE__ */ H(
1517
+ return /* @__PURE__ */ C(An, { label: e, open: !0, onOpenChange: t, delayDuration: 0, children: /* @__PURE__ */ C(
1517
1518
  "span",
1518
1519
  {
1519
1520
  "aria-hidden": "true",
@@ -1522,8 +1523,8 @@ function mn({
1522
1523
  }
1523
1524
  ) });
1524
1525
  }
1525
- const Wo = 1e3, Uo = 3;
1526
- function fn({ offset: e, viewport: t, lead: n, pitch: o, count: s }, a = Uo) {
1526
+ const Uo = 1e3, Yo = 3;
1527
+ function fn({ offset: e, viewport: t, lead: n, pitch: o, count: s }, a = Yo) {
1527
1528
  if (s <= 0) return [0, 0];
1528
1529
  if (!(o > 0)) return [0, s];
1529
1530
  const i = Math.abs(e) - n, u = Math.floor(i / o) - a, d = Math.ceil((i + t) / o) + a, l = Math.max(0, Math.min(s - 1, u)), v = Math.max(l + 1, Math.min(s, d));
@@ -1558,7 +1559,7 @@ function hn(e, t, n) {
1558
1559
  tail: Math.max(0, t - s)
1559
1560
  };
1560
1561
  }
1561
- function Nt(e) {
1562
+ function _t(e) {
1562
1563
  return {
1563
1564
  indexes: Array.from({ length: e }, (t, n) => n),
1564
1565
  lead: 0,
@@ -1630,9 +1631,9 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
1630
1631
  aggregate: "ds:bg-[var(--muted)] ds:text-[color:var(--foreground)] ds:font-semibold"
1631
1632
  }, wn = ge(
1632
1633
  "ds:flex ds:min-w-0 ds:max-w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:text-[color:var(--foreground)]"
1633
- ), Yo = ge(
1634
- "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]"
1635
1634
  ), Jo = ge(
1635
+ "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]"
1636
+ ), Qo = ge(
1636
1637
  [
1637
1638
  "ds:relative ds:max-w-full ds:overflow-auto ds:overscroll-contain",
1638
1639
  "ds:max-h-[var(--heatmap-max-block-size)]",
@@ -1641,7 +1642,7 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
1641
1642
  // row-header column. The sizes are measured and set on this element.
1642
1643
  "ds:scroll-pt-[var(--heatmap-sticky-block-start)] ds:scroll-pb-[var(--heatmap-sticky-block-end)] ds:scroll-ps-[var(--heatmap-sticky-inline-start)]"
1643
1644
  ].join(" ")
1644
- ), Qo = ge(
1645
+ ), Xo = ge(
1645
1646
  // Focusable only to hold focus during a retry; not a control, so no ring.
1646
1647
  "ds:min-w-0 ds:max-w-full ds:outline-none",
1647
1648
  {
@@ -1653,7 +1654,7 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
1653
1654
  },
1654
1655
  defaultVariants: { capped: !1 }
1655
1656
  }
1656
- ), Xo = ge(
1657
+ ), Zo = ge(
1657
1658
  [
1658
1659
  "ds:grid ds:w-max ds:min-w-full",
1659
1660
  "ds:[grid-template-rows:auto] ds:auto-rows-[var(--heatmap-row-track)]",
@@ -1687,7 +1688,7 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
1687
1688
  totalsColumn: !1
1688
1689
  }
1689
1690
  }
1690
- ), Lt = ge(
1691
+ ), Ot = ge(
1691
1692
  "ds:col-span-full ds:grid ds:grid-cols-subgrid",
1692
1693
  {
1693
1694
  variants: {
@@ -1716,12 +1717,12 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
1716
1717
  "col-tail": "ds:col-span-[var(--heatmap-col-tail)]"
1717
1718
  }
1718
1719
  }
1719
- }), zn = "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:data-[highlighted=true]:bg-[var(--muted)] ds:data-[highlighted=true]:text-[color:var(--foreground)]", Gt = ge(
1720
+ }), Fn = "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none ds:data-[highlighted=true]:bg-[var(--muted)] ds:data-[highlighted=true]:text-[color:var(--foreground)]", Vt = ge(
1720
1721
  [
1721
1722
  "ds:flex ds:min-w-0 ds:items-end ds:justify-center ds:text-center",
1722
1723
  "ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-2xs)] ds:py-[var(--spacing-xs)]",
1723
1724
  "type-meta ds:text-[color:var(--muted-foreground)] ds:break-normal ds:[overflow-wrap:anywhere]",
1724
- zn
1725
+ Fn
1725
1726
  ].join(" "),
1726
1727
  {
1727
1728
  variants: {
@@ -1745,7 +1746,7 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
1745
1746
  // position never leaves a hairline seam.
1746
1747
  "ds:before:pointer-events-none ds:before:absolute ds:before:inset-x-0 ds:before:top-[calc(100%_-_var(--spacing-2xs))] ds:before:h-[calc(var(--heatmap-gap)_+_var(--spacing-2xs)*2)] ds:before:bg-[var(--background)] ds:before:content-['']",
1747
1748
  "type-body-sm ds:text-start ds:break-normal ds:[overflow-wrap:anywhere]",
1748
- zn
1749
+ Fn
1749
1750
  ].join(" "),
1750
1751
  {
1751
1752
  variants: {
@@ -1795,9 +1796,9 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
1795
1796
  },
1796
1797
  defaultVariants: { tone: "empty", interactive: !1 }
1797
1798
  }
1798
- ), Zo = ge(
1799
- "ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-xs)] type-meta ds:text-[color:var(--muted-foreground)]"
1800
1799
  ), ea = ge(
1800
+ "ds:flex ds:min-w-0 ds:flex-wrap ds:items-center ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-xs)] type-meta ds:text-[color:var(--muted-foreground)]"
1801
+ ), ta = ge(
1801
1802
  "ds:flex ds:w-[calc(var(--spacing-xl)*6)] ds:min-w-0 ds:max-w-full ds:shrink ds:items-stretch",
1802
1803
  {
1803
1804
  variants: {
@@ -1822,18 +1823,18 @@ const Xt = (e, t) => `${e}-${Math.min(9, Math.max(0, Math.round(t)))}`, Kn = {
1822
1823
  },
1823
1824
  defaultVariants: { tone: "empty", shape: "key" }
1824
1825
  }
1825
- ), Fn = "", Ot = (e, t) => `${e}${Fn}${String(t)}`, Et = (e) => {
1826
- const t = e.indexOf(Fn);
1826
+ ), zn = "", Ct = (e, t) => `${e}${zn}${String(t)}`, Et = (e) => {
1827
+ const t = e.indexOf(zn);
1827
1828
  return [e.slice(0, t), e.slice(t + 1)];
1828
1829
  };
1829
- function ta(e, t, n) {
1830
+ function na(e, t, n) {
1830
1831
  return e.status === "low-sample" ? "low-sample" : e.status === "empty" || e.value === null ? "empty" : Ro(t, e.value) ? "midpoint" : Xt(n, t.stepOf(e.value));
1831
1832
  }
1832
- const na = { value: null, status: "empty" }, en = (e) => e.status === "value" ? "aggregate" : e.status;
1833
- function Ct(e, t) {
1833
+ const oa = { value: null, status: "empty" }, en = (e) => e.status === "value" ? "aggregate" : e.status;
1834
+ function Ht(e, t) {
1834
1835
  const n = [];
1835
1836
  return e.lead > 0 && n.push(
1836
- /* @__PURE__ */ H(
1837
+ /* @__PURE__ */ C(
1837
1838
  "div",
1838
1839
  {
1839
1840
  "aria-hidden": "true",
@@ -1843,7 +1844,7 @@ function Ct(e, t) {
1843
1844
  )
1844
1845
  ), e.indexes.forEach((o, s) => {
1845
1846
  e.middle > 0 && s === e.middleAfter && n.push(
1846
- /* @__PURE__ */ H(
1847
+ /* @__PURE__ */ C(
1847
1848
  "div",
1848
1849
  {
1849
1850
  "aria-hidden": "true",
@@ -1853,7 +1854,7 @@ function Ct(e, t) {
1853
1854
  )
1854
1855
  ), n.push(t(o));
1855
1856
  }), e.tail > 0 && n.push(
1856
- /* @__PURE__ */ H(
1857
+ /* @__PURE__ */ C(
1857
1858
  "div",
1858
1859
  {
1859
1860
  "aria-hidden": "true",
@@ -1863,7 +1864,7 @@ function Ct(e, t) {
1863
1864
  )
1864
1865
  ), n;
1865
1866
  }
1866
- const oa = jn(function({
1867
+ const aa = jn(function({
1867
1868
  ctx: t,
1868
1869
  row: n,
1869
1870
  ariaRowIndex: o,
@@ -1878,27 +1879,27 @@ const oa = jn(function({
1878
1879
  [u]
1879
1880
  );
1880
1881
  if (n.kind === "group") {
1881
- const y = t.describer.groupLabel(n.groupId), E = t.groupIds.get(n.groupId), g = `${t.idBase}-label-${o}`, R = ((O = t.totals) == null ? void 0 : O.groupColumns.get(n.groupId)) ?? [], L = (D = t.totals) == null ? void 0 : D.groups.get(n.groupId), V = (F, Y, T, N) => {
1882
- const K = F ?? na, z = T(K);
1882
+ const y = t.describer.groupLabel(n.groupId), R = t.groupIds.get(n.groupId), g = `${t.idBase}-label-${o}`, T = ((O = t.totals) == null ? void 0 : O.groupColumns.get(n.groupId)) ?? [], L = (D = t.totals) == null ? void 0 : D.groups.get(n.groupId), G = (z, Y, E, A) => {
1883
+ const K = z ?? oa, F = E(K);
1883
1884
  return /* @__PURE__ */ le(
1884
1885
  "div",
1885
1886
  {
1886
1887
  role: "gridcell",
1887
1888
  "aria-colindex": Y + 2,
1888
1889
  "aria-expanded": !n.collapsed,
1889
- "aria-label": z,
1890
+ "aria-label": F,
1890
1891
  tabIndex: a === Y ? 0 : -1,
1891
- "data-heatmap-group-id": E,
1892
+ "data-heatmap-group-id": R,
1892
1893
  className: Rt({
1893
1894
  tone: en(K),
1894
1895
  interactive: !0
1895
1896
  }),
1896
1897
  children: [
1897
1898
  t.describer.visibleText(K),
1898
- N && i === Y ? /* @__PURE__ */ H(
1899
+ A && i === Y ? /* @__PURE__ */ C(
1899
1900
  mn,
1900
1901
  {
1901
- label: z,
1902
+ label: F,
1902
1903
  onOpenChange: t.onTooltipOpenChange
1903
1904
  }
1904
1905
  ) : null
@@ -1916,8 +1917,8 @@ const oa = jn(function({
1916
1917
  role: "row",
1917
1918
  "aria-rowindex": o,
1918
1919
  "data-heatmap-body-row": "",
1919
- "data-heatmap-group-id": E,
1920
- className: Lt({ position: "body" }),
1920
+ "data-heatmap-group-id": R,
1921
+ className: Ot({ position: "body" }),
1921
1922
  children: [
1922
1923
  /* @__PURE__ */ le(
1923
1924
  "div",
@@ -1931,17 +1932,17 @@ const oa = jn(function({
1931
1932
  virtualised: t.virtualised
1932
1933
  }),
1933
1934
  children: [
1934
- /* @__PURE__ */ H(
1935
+ /* @__PURE__ */ C(
1935
1936
  "button",
1936
1937
  {
1937
1938
  type: "button",
1938
1939
  tabIndex: -1,
1939
1940
  "aria-expanded": !n.collapsed,
1940
1941
  "aria-label": n.collapsed ? t.expandLabel(y) : t.collapseLabel(y),
1941
- onMouseDown: (F) => F.preventDefault(),
1942
+ onMouseDown: (z) => z.preventDefault(),
1942
1943
  onClick: () => t.onToggleGroup(n.groupId),
1943
1944
  className: "ds:inline-flex ds:size-[var(--spacing-lg)] ds:shrink-0 ds:cursor-pointer ds:items-center ds:justify-center ds:rounded-[var(--radius-sm)] ds:bg-transparent ds:text-[color:inherit] ds:hover:bg-[var(--muted)] ds:focus-visible:outline-solid ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-ring ds:forced-colors:focus-visible:outline-[Highlight]",
1944
- children: /* @__PURE__ */ H(
1945
+ children: /* @__PURE__ */ C(
1945
1946
  eo,
1946
1947
  {
1947
1948
  "aria-hidden": "true",
@@ -1953,7 +1954,7 @@ const oa = jn(function({
1953
1954
  )
1954
1955
  }
1955
1956
  ),
1956
- /* @__PURE__ */ H(
1957
+ /* @__PURE__ */ C(
1957
1958
  "span",
1958
1959
  {
1959
1960
  id: g,
@@ -1966,26 +1967,26 @@ const oa = jn(function({
1966
1967
  ]
1967
1968
  }
1968
1969
  ),
1969
- Ct(
1970
+ Ht(
1970
1971
  t.colWindow,
1971
- (F) => V(
1972
- R[F],
1973
- F,
1972
+ (z) => G(
1973
+ T[z],
1974
+ z,
1974
1975
  (Y) => t.describer.sentence(
1975
1976
  J,
1976
- t.describer.columnLabel(t.columns[F]),
1977
+ t.describer.columnLabel(t.columns[z]),
1977
1978
  Y
1978
1979
  ),
1979
1980
  !0
1980
1981
  )
1981
1982
  ),
1982
- t.rowTotals ? V(
1983
+ t.rowTotals ? G(
1983
1984
  L,
1984
1985
  d,
1985
- (F) => t.describer.sentence(
1986
+ (z) => t.describer.sentence(
1986
1987
  y,
1987
1988
  t.describer.methodLabel(t.rowTotals || "mean"),
1988
- F
1989
+ z
1989
1990
  ),
1990
1991
  !1
1991
1992
  ) : null
@@ -1994,7 +1995,7 @@ const oa = jn(function({
1994
1995
  );
1995
1996
  }
1996
1997
  const v = n.rowIndex, m = t.rows[v], w = t.describer.rowLabel(m), b = t.matrix[v], p = (y) => {
1997
- const E = b[y], g = t.columns[y], R = l.has(y);
1998
+ const R = b[y], g = t.columns[y], T = l.has(y);
1998
1999
  return /* @__PURE__ */ le(
1999
2000
  "div",
2000
2001
  {
@@ -2003,20 +2004,20 @@ const oa = jn(function({
2003
2004
  "aria-label": t.describer.sentence(
2004
2005
  w,
2005
2006
  t.describer.columnLabel(g),
2006
- E
2007
+ R
2007
2008
  ),
2008
2009
  "aria-describedby": a === y ? t.describedBy : void 0,
2009
- "aria-selected": t.selectable ? R : void 0,
2010
+ "aria-selected": t.selectable ? T : void 0,
2010
2011
  tabIndex: a === y ? 0 : -1,
2011
2012
  "data-heatmap-cell-id": `${m.id}:${String(g.id)}`,
2012
- "data-status": E.status,
2013
+ "data-status": R.status,
2013
2014
  className: Rt({
2014
- tone: ta(E, t.scale, t.palette),
2015
+ tone: na(R, t.scale, t.palette),
2015
2016
  interactive: t.interactive
2016
2017
  }),
2017
2018
  children: [
2018
- t.showValues || E.status === "empty" ? t.describer.visibleText(E) : null,
2019
- i === y ? /* @__PURE__ */ H(
2019
+ t.showValues || R.status === "empty" ? t.describer.visibleText(R) : null,
2020
+ i === y ? /* @__PURE__ */ C(
2020
2021
  mn,
2021
2022
  {
2022
2023
  label: t.tooltipText(t.cellInfo(v, y)),
@@ -2028,10 +2029,10 @@ const oa = jn(function({
2028
2029
  y
2029
2030
  );
2030
2031
  };
2031
- let A = null;
2032
+ let N = null;
2032
2033
  if (t.rowTotals && t.totals) {
2033
2034
  const y = t.totals.rows[v];
2034
- A = /* @__PURE__ */ H(
2035
+ N = /* @__PURE__ */ C(
2035
2036
  "div",
2036
2037
  {
2037
2038
  role: "gridcell",
@@ -2054,9 +2055,9 @@ const oa = jn(function({
2054
2055
  "aria-rowindex": o,
2055
2056
  "data-heatmap-body-row": "",
2056
2057
  "data-heatmap-row-id": m.id,
2057
- className: Lt({ position: "body" }),
2058
+ className: Ot({ position: "body" }),
2058
2059
  children: [
2059
- /* @__PURE__ */ H(
2060
+ /* @__PURE__ */ C(
2060
2061
  "div",
2061
2062
  {
2062
2063
  role: "rowheader",
@@ -2066,7 +2067,7 @@ const oa = jn(function({
2066
2067
  kind: "data",
2067
2068
  virtualised: t.virtualised
2068
2069
  }),
2069
- children: /* @__PURE__ */ H(
2070
+ children: /* @__PURE__ */ C(
2070
2071
  "span",
2071
2072
  {
2072
2073
  className: bn({ virtualised: t.virtualised }),
@@ -2075,8 +2076,8 @@ const oa = jn(function({
2075
2076
  )
2076
2077
  }
2077
2078
  ),
2078
- Ct(t.colWindow, p),
2079
- A
2079
+ Ht(t.colWindow, p),
2080
+ N
2080
2081
  ]
2081
2082
  }
2082
2083
  );
@@ -2094,7 +2095,7 @@ const oa = jn(function({
2094
2095
  (e.viewportBlock - e.headerBlock - e.footerBlock) / Math.max(1, e.rowPitch)
2095
2096
  )
2096
2097
  );
2097
- function aa(e) {
2098
+ function ra(e) {
2098
2099
  const {
2099
2100
  title: t,
2100
2101
  rowsLabel: n,
@@ -2110,21 +2111,21 @@ function aa(e) {
2110
2111
  rowTotals: w,
2111
2112
  columnTotals: b,
2112
2113
  groupColumnMethod: p,
2113
- groupIds: A,
2114
+ groupIds: N,
2114
2115
  selectionMode: O,
2115
2116
  selected: D,
2116
2117
  columnIndexOfKey: y,
2117
- interactive: E,
2118
+ interactive: R,
2118
2119
  virtualised: g,
2119
- size: R,
2120
+ size: T,
2120
2121
  density: L,
2121
- cellInfo: V,
2122
+ cellInfo: G,
2122
2123
  tooltipText: J,
2123
- describeFocused: F,
2124
+ describeFocused: z,
2124
2125
  onActivate: Y,
2125
- onRange: T,
2126
- onToggleGroup: N
2127
- } = e, { t: K } = Ht("ui"), z = Pn(), $ = ie(null), c = ie(null), I = ie(null), P = ie(null), C = s.length, Q = C + (w ? 1 : 0), te = !!(b && m), x = X(
2126
+ onRange: E,
2127
+ onToggleGroup: A
2128
+ } = e, { t: K } = wt("ui"), F = Pn(), $ = ie(null), c = ie(null), I = ie(null), P = ie(null), H = s.length, Q = H + (w ? 1 : 0), te = !!(b && m), x = X(
2128
2129
  () => [
2129
2130
  ...i.map((f) => f.key),
2130
2131
  ...te ? [At] : []
@@ -2133,7 +2134,7 @@ function aa(e) {
2133
2134
  ), _ = X(() => {
2134
2135
  const f = /* @__PURE__ */ new Map();
2135
2136
  return x.forEach((r, h) => f.set(r, h)), f;
2136
- }, [x]), [W, G] = we(() => ({
2137
+ }, [x]), [W, V] = we(() => ({
2137
2138
  rowKey: x[0] ?? At,
2138
2139
  col: 0
2139
2140
  })), q = (() => {
@@ -2144,20 +2145,20 @@ function aa(e) {
2144
2145
  })(), B = Math.min(
2145
2146
  Math.max(0, W.col),
2146
2147
  Math.max(0, Q - 1)
2147
- ), re = x[q], ne = ie(!1), [Me, Ne] = we(!1), be = ie(!1), Z = ie("pointer"), [pe, je] = we(null), qe = ie(null), [wt, Oe] = we(!1), We = ae((f) => {
2148
+ ), re = x[q], ne = ie(!1), [Me, Ae] = we(!1), be = ie(!1), Z = ie("pointer"), [pe, je] = we(null), qe = ie(null), [bt, Oe] = we(!1), We = ae((f) => {
2148
2149
  const r = qe.current;
2149
2150
  r === f || r && f && r.rowKey === f.rowKey && r.col === f.col || (qe.current = f, je(f), Oe(!1));
2150
- }, []), me = pe ?? (Me && re ? { rowKey: re, col: B } : null), Ce = wt ? null : pe ?? (Me && Z.current === "keyboard" && re ? { rowKey: re, col: B } : null), [fe, Dt] = we($t), ve = ie(fe);
2151
+ }, []), me = pe ?? (Me && re ? { rowKey: re, col: B } : null), Ce = bt ? null : pe ?? (Me && Z.current === "keyboard" && re ? { rowKey: re, col: B } : null), [fe, Dt] = we($t), ve = ie(fe);
2151
2152
  ve.current = fe;
2152
2153
  const st = ae(() => {
2153
- var ce, Ae;
2154
+ var ce, Ne;
2154
2155
  const f = $.current, r = c.current;
2155
2156
  if (!f || !r) return;
2156
2157
  const h = window.getComputedStyle(r), M = parseFloat(h.rowGap) || 0, S = parseFloat(h.columnGap) || 0, k = h.gridTemplateColumns.split(" ").map((Ze) => parseFloat(Ze)).filter((Ze) => Number.isFinite(Ze)), U = ((ce = I.current) == null ? void 0 : ce.getBoundingClientRect().height) ?? 0, j = r.querySelector(
2157
2158
  "[data-heatmap-body-row]"
2158
2159
  ), oe = (j == null ? void 0 : j.getBoundingClientRect().height) ?? 0, se = {
2159
2160
  headerBlock: U + M,
2160
- footerBlock: ((Ae = P.current) == null ? void 0 : Ae.getBoundingClientRect().height) ?? 0,
2161
+ footerBlock: ((Ne = P.current) == null ? void 0 : Ne.getBoundingClientRect().height) ?? 0,
2161
2162
  rowPitch: (oe || U || $t.rowPitch) + M,
2162
2163
  leadInline: (k[0] ?? 0) + S,
2163
2164
  colPitch: (k[1] ?? $t.colPitch) + S,
@@ -2174,10 +2175,10 @@ function aa(e) {
2174
2175
  if (!f || typeof ResizeObserver > "u") return;
2175
2176
  const r = new ResizeObserver(() => st());
2176
2177
  return r.observe(f), c.current && r.observe(c.current), () => r.disconnect();
2177
- }, [st, i.length, C, R, L]);
2178
- const it = re === At ? null : q, bt = B < C ? B : null, lt = ae(() => {
2178
+ }, [st, i.length, H, T, L]);
2179
+ const it = re === At ? null : q, yt = B < H ? B : null, lt = ae(() => {
2179
2180
  if (!g)
2180
- return { rows: Nt(i.length), cols: Nt(C) };
2181
+ return { rows: _t(i.length), cols: _t(H) };
2181
2182
  const f = $.current, r = ve.current, h = fn({
2182
2183
  offset: (f == null ? void 0 : f.scrollTop) ?? 0,
2183
2184
  viewport: r.viewportBlock,
@@ -2189,18 +2190,18 @@ function aa(e) {
2189
2190
  viewport: r.viewportInline,
2190
2191
  lead: r.leadInline,
2191
2192
  pitch: r.colPitch,
2192
- count: C
2193
+ count: H
2193
2194
  });
2194
2195
  return {
2195
2196
  rows: hn(h, i.length, it),
2196
- cols: hn(M, C, bt)
2197
+ cols: hn(M, H, yt)
2197
2198
  };
2198
- }, [g, i.length, C, it, bt]), [De, Kt] = we(lt), _e = X(() => Nt(i.length), [i.length]), yt = X(() => Nt(C), [C]), ye = X(
2199
+ }, [g, i.length, H, it, yt]), [De, Kt] = we(lt), _e = X(() => _t(i.length), [i.length]), xt = X(() => _t(H), [H]), ye = X(
2199
2200
  () => g ? {
2200
2201
  rows: gn(De.rows, i.length),
2201
- cols: gn(De.cols, C)
2202
- } : { rows: _e, cols: yt },
2203
- [g, De, i.length, C, _e, yt]
2202
+ cols: gn(De.cols, H)
2203
+ } : { rows: _e, cols: xt },
2204
+ [g, De, i.length, H, _e, xt]
2204
2205
  ), Ue = ae(() => {
2205
2206
  const f = lt();
2206
2207
  Kt(
@@ -2210,13 +2211,13 @@ function aa(e) {
2210
2211
  nt(() => {
2211
2212
  Ue();
2212
2213
  }, [Ue, fe]);
2213
- const Ke = ie(0), xt = ae(() => {
2214
+ const Ke = ie(0), It = ae(() => {
2214
2215
  !g || Ke.current || (Ke.current = window.requestAnimationFrame(() => {
2215
2216
  Ke.current = 0, Ue();
2216
2217
  }));
2217
2218
  }, [g, Ue]);
2218
2219
  gt(() => () => window.cancelAnimationFrame(Ke.current), []), nt(() => {
2219
- re !== void 0 && re !== W.rowKey && G({ rowKey: re, col: B });
2220
+ re !== void 0 && re !== W.rowKey && V({ rowKey: re, col: B });
2220
2221
  }), nt(() => {
2221
2222
  if (!be.current || ne.current) return;
2222
2223
  const f = document.activeElement;
@@ -2237,28 +2238,28 @@ function aa(e) {
2237
2238
  const f = xe(q, B);
2238
2239
  f && (ne.current = !1, f.focus({ preventScroll: !0 }), (r = f.scrollIntoView) == null || r.call(f, { block: "nearest", inline: "nearest" }));
2239
2240
  });
2240
- const Ye = () => c.current ? window.getComputedStyle(c.current).direction === "rtl" : !1, de = ie(null), ze = (f) => {
2241
+ const Ye = () => c.current ? window.getComputedStyle(c.current).direction === "rtl" : !1, de = ie(null), Fe = (f) => {
2241
2242
  const r = i[f];
2242
2243
  return r && r.kind === "data" ? r.rowIndex : null;
2243
2244
  }, Ie = ie(!1), Se = (f, r) => {
2244
2245
  const h = Math.max(0, Math.min(x.length - 1, f)), M = Math.max(0, Math.min(Q - 1, r));
2245
- return ne.current = !0, Oe(!1), G({ rowKey: x[h], col: M }), { row: h, col: M };
2246
+ return ne.current = !0, Oe(!1), V({ rowKey: x[h], col: M }), { row: h, col: M };
2246
2247
  }, ct = (f, r, h) => {
2247
2248
  const M = i[f];
2248
2249
  if (M) {
2249
2250
  if (M.kind === "group") {
2250
- N(M.groupId);
2251
+ A(M.groupId);
2251
2252
  return;
2252
2253
  }
2253
- if (!(r >= C)) {
2254
+ if (!(r >= H)) {
2254
2255
  if (O === "range" && h && de.current) {
2255
- T(de.current, { rowIndex: M.rowIndex, col: r });
2256
+ E(de.current, { rowIndex: M.rowIndex, col: r });
2256
2257
  return;
2257
2258
  }
2258
2259
  de.current = { rowIndex: M.rowIndex, col: r }, Y(M.rowIndex, r, !0);
2259
2260
  }
2260
2261
  }
2261
- }, Fe = (f) => {
2262
+ }, ze = (f) => {
2262
2263
  if (f.target instanceof Element && f.target.closest("button"))
2263
2264
  return;
2264
2265
  Z.current = "keyboard";
@@ -2286,7 +2287,7 @@ function aa(e) {
2286
2287
  break;
2287
2288
  case "PageDown": {
2288
2289
  const se = i.findIndex(
2289
- (ce, Ae) => Ae > q && ce.kind === "group"
2290
+ (ce, Ne) => Ne > q && ce.kind === "group"
2290
2291
  );
2291
2292
  S = i.some((ce) => ce.kind === "group") ? se === -1 ? r : se : q + yn(ve.current);
2292
2293
  break;
@@ -2314,11 +2315,11 @@ function aa(e) {
2314
2315
  f.preventDefault();
2315
2316
  const j = Se(S, k), oe = f.key.startsWith("Arrow");
2316
2317
  if (O === "range" && f.shiftKey && oe) {
2317
- const se = ze(j.row), ue = de.current ?? (() => {
2318
- const ce = ze(q);
2319
- return ce === null || B >= C ? null : { rowIndex: ce, col: B };
2318
+ const se = Fe(j.row), ue = de.current ?? (() => {
2319
+ const ce = Fe(q);
2320
+ return ce === null || B >= H ? null : { rowIndex: ce, col: B };
2320
2321
  })();
2321
- ue && se !== null && j.col < C && (de.current = ue, T(ue, { rowIndex: se, col: j.col }));
2322
+ ue && se !== null && j.col < H && (de.current = ue, E(ue, { rowIndex: se, col: j.col }));
2322
2323
  }
2323
2324
  }, Je = (f) => {
2324
2325
  var k;
@@ -2327,46 +2328,46 @@ function aa(e) {
2327
2328
  if (!r || !h || !((k = c.current) != null && k.contains(r))) return null;
2328
2329
  const M = Number(h.getAttribute("aria-rowindex")) - 2, S = Number(r.getAttribute("aria-colindex")) - 2;
2329
2330
  return !Number.isInteger(M) || M < 0 || S < 0 ? null : { row: M, col: S };
2330
- }, Be = ie(!1), Ve = ie("mouse"), It = (f) => {
2331
- if (Z.current = "pointer", Ve.current = f.pointerType, O !== "range" || f.pointerType !== "mouse" || f.button !== 0)
2331
+ }, Be = ie(!1), Ge = ie("mouse"), kt = (f) => {
2332
+ if (Z.current = "pointer", Ge.current = f.pointerType, O !== "range" || f.pointerType !== "mouse" || f.button !== 0)
2332
2333
  return;
2333
2334
  const r = Je(f.target);
2334
2335
  if (Ie.current = !1, !r) return;
2335
- const h = ze(r.row);
2336
- if (h === null || r.col >= C) return;
2336
+ const h = Fe(r.row);
2337
+ if (h === null || r.col >= H) return;
2337
2338
  if (f.shiftKey && de.current)
2338
- T(de.current, { rowIndex: h, col: r.col });
2339
+ E(de.current, { rowIndex: h, col: r.col });
2339
2340
  else {
2340
2341
  de.current = { rowIndex: h, col: r.col };
2341
- const S = Ot(o[h].id, s[r.col].id);
2342
- D.size === 1 && D.has(S) ? Ie.current = !0 : T(de.current, de.current);
2342
+ const S = Ct(o[h].id, s[r.col].id);
2343
+ D.size === 1 && D.has(S) ? Ie.current = !0 : E(de.current, de.current);
2343
2344
  }
2344
2345
  Be.current = !0;
2345
2346
  const M = () => {
2346
2347
  Be.current = !1, window.removeEventListener("pointerup", M), window.removeEventListener("pointercancel", M);
2347
2348
  };
2348
2349
  window.addEventListener("pointerup", M), window.addEventListener("pointercancel", M);
2349
- }, zt = (f) => {
2350
+ }, Ft = (f) => {
2350
2351
  if (f.pointerType !== "mouse") return;
2351
2352
  const r = Je(f.target);
2352
2353
  if (We(
2353
2354
  r ? { rowKey: x[r.row], col: r.col } : null
2354
2355
  ), Be.current && r && de.current) {
2355
- const h = ze(r.row);
2356
- h !== null && r.col < C && ((h !== de.current.rowIndex || r.col !== de.current.col) && (Ie.current = !1), Ie.current || T(de.current, { rowIndex: h, col: r.col }));
2356
+ const h = Fe(r.row);
2357
+ h !== null && r.col < H && ((h !== de.current.rowIndex || r.col !== de.current.col) && (Ie.current = !1), Ie.current || E(de.current, { rowIndex: h, col: r.col }));
2357
2358
  }
2358
- }, he = ie(null), Ge = ae(() => {
2359
+ }, he = ie(null), Ve = ae(() => {
2359
2360
  he.current && (document.removeEventListener("pointerover", he.current), he.current = null);
2360
2361
  }, []);
2361
- gt(() => Ge, [Ge]);
2362
- const kt = (f) => {
2363
- Ge();
2362
+ gt(() => Ve, [Ve]);
2363
+ const Mt = (f) => {
2364
+ Ve();
2364
2365
  const r = f.relatedTarget;
2365
2366
  if (r instanceof Element && r.closest('[data-component="tooltip"]')) {
2366
2367
  const h = (M) => {
2367
2368
  var k;
2368
2369
  const S = M.target;
2369
- S instanceof Element && S.closest('[data-component="tooltip"]') || (Ge(), S instanceof Node && ((k = c.current) != null && k.contains(S)) || We(null));
2370
+ S instanceof Element && S.closest('[data-component="tooltip"]') || (Ve(), S instanceof Node && ((k = c.current) != null && k.contains(S)) || We(null));
2370
2371
  };
2371
2372
  he.current = h, document.addEventListener("pointerover", h);
2372
2373
  return;
@@ -2382,9 +2383,9 @@ function aa(e) {
2382
2383
  }
2383
2384
  const h = Je(f.target);
2384
2385
  if (h) {
2385
- if (Se(h.row, h.col), ne.current = !1, O === "range" && Ve.current === "mouse") {
2386
+ if (Se(h.row, h.col), ne.current = !1, O === "range" && Ge.current === "mouse") {
2386
2387
  const S = i[h.row];
2387
- (S == null ? void 0 : S.kind) === "group" ? ct(h.row, h.col, !1) : (S == null ? void 0 : S.kind) === "data" && h.col < C && Y(S.rowIndex, h.col, Ie.current), Ie.current = !1;
2388
+ (S == null ? void 0 : S.kind) === "group" ? ct(h.row, h.col, !1) : (S == null ? void 0 : S.kind) === "data" && h.col < H && Y(S.rowIndex, h.col, Ie.current), Ie.current = !1;
2388
2389
  return;
2389
2390
  }
2390
2391
  ct(h.row, h.col, f.shiftKey);
@@ -2406,10 +2407,10 @@ function aa(e) {
2406
2407
  }, []), Qe = ae(
2407
2408
  (f) => K("heatmap.expandGroup", { group: f }),
2408
2409
  [K]
2409
- ), Mt = ae(
2410
+ ), St = ae(
2410
2411
  (f) => K("heatmap.collapseGroup", { group: f }),
2411
2412
  [K]
2412
- ), dt = `${z}-description`, Xe = i[q], ut = F && (Xe == null ? void 0 : Xe.kind) === "data" && B < C ? J(V(Xe.rowIndex, B)) : null, ee = X(
2413
+ ), dt = `${F}-description`, Xe = i[q], ut = z && (Xe == null ? void 0 : Xe.kind) === "data" && B < H ? J(G(Xe.rowIndex, B)) : null, ee = X(
2413
2414
  () => ({
2414
2415
  rows: o,
2415
2416
  columns: s,
@@ -2421,19 +2422,19 @@ function aa(e) {
2421
2422
  totals: m,
2422
2423
  rowTotals: w,
2423
2424
  groupColumnMethod: p,
2424
- groupIds: A,
2425
+ groupIds: N,
2425
2426
  selectable: O !== "none",
2426
- interactive: E,
2427
+ interactive: R,
2427
2428
  virtualised: g,
2428
2429
  colWindow: ye.cols,
2429
- idBase: z,
2430
- describedBy: F ? dt : void 0,
2431
- cellInfo: V,
2430
+ idBase: F,
2431
+ describedBy: z ? dt : void 0,
2432
+ cellInfo: G,
2432
2433
  tooltipText: J,
2433
2434
  onTooltipOpenChange: Pe,
2434
- onToggleGroup: N,
2435
+ onToggleGroup: A,
2435
2436
  expandLabel: Qe,
2436
- collapseLabel: Mt
2437
+ collapseLabel: St
2437
2438
  }),
2438
2439
  [
2439
2440
  o,
@@ -2446,22 +2447,22 @@ function aa(e) {
2446
2447
  m,
2447
2448
  w,
2448
2449
  p,
2449
- A,
2450
+ N,
2450
2451
  O,
2451
- E,
2452
+ R,
2452
2453
  g,
2453
2454
  ye.cols,
2454
- z,
2455
2455
  F,
2456
+ z,
2456
2457
  dt,
2457
- V,
2458
+ G,
2458
2459
  J,
2459
2460
  Pe,
2460
- N,
2461
+ A,
2461
2462
  Qe,
2462
- Mt
2463
+ St
2463
2464
  ]
2464
- ), Ft = X(() => {
2465
+ ), zt = X(() => {
2465
2466
  const f = /* @__PURE__ */ new Map();
2466
2467
  for (const h of D) {
2467
2468
  const [M, S] = Et(h), k = y(S);
@@ -2473,41 +2474,41 @@ function aa(e) {
2473
2474
  for (const [h, M] of f)
2474
2475
  r.set(h, M.sort((S, k) => S - k).join(","));
2475
2476
  return r;
2476
- }, [D, y]), pt = (me == null ? void 0 : me.col) ?? -1, St = /* @__PURE__ */ le(
2477
+ }, [D, y]), pt = (me == null ? void 0 : me.col) ?? -1, Nt = /* @__PURE__ */ le(
2477
2478
  "div",
2478
2479
  {
2479
2480
  ref: I,
2480
2481
  role: "row",
2481
2482
  "aria-rowindex": 1,
2482
- className: Lt({ position: "header" }),
2483
+ className: Ot({ position: "header" }),
2483
2484
  children: [
2484
- /* @__PURE__ */ H(
2485
+ /* @__PURE__ */ C(
2485
2486
  "div",
2486
2487
  {
2487
2488
  role: "columnheader",
2488
2489
  "aria-colindex": 1,
2489
- className: Gt({ corner: !0 }),
2490
- children: n ?? /* @__PURE__ */ H("span", { className: "ds:sr-only", children: K("heatmap.rowsHeader") })
2490
+ className: Vt({ corner: !0 }),
2491
+ children: n ?? /* @__PURE__ */ C("span", { className: "ds:sr-only", children: K("heatmap.rowsHeader") })
2491
2492
  }
2492
2493
  ),
2493
- Ct(ye.cols, (f) => /* @__PURE__ */ H(
2494
+ Ht(ye.cols, (f) => /* @__PURE__ */ C(
2494
2495
  "div",
2495
2496
  {
2496
2497
  role: "columnheader",
2497
2498
  "aria-colindex": f + 2,
2498
2499
  "data-highlighted": pt === f,
2499
- className: Gt(),
2500
+ className: Vt(),
2500
2501
  children: l.columnLabel(s[f])
2501
2502
  },
2502
2503
  f
2503
2504
  )),
2504
- w ? /* @__PURE__ */ H(
2505
+ w ? /* @__PURE__ */ C(
2505
2506
  "div",
2506
2507
  {
2507
2508
  role: "columnheader",
2508
- "aria-colindex": C + 2,
2509
- "data-highlighted": pt === C,
2510
- className: Gt(),
2509
+ "aria-colindex": H + 2,
2510
+ "data-highlighted": pt === H,
2511
+ className: Vt(),
2511
2512
  children: l.methodLabel(w)
2512
2513
  }
2513
2514
  ) : null
@@ -2516,7 +2517,7 @@ function aa(e) {
2516
2517
  );
2517
2518
  let mt = null;
2518
2519
  if (b && m) {
2519
- const f = i.length, r = l.methodLabel(b), h = q === f, M = (S, k, U, j = r) => /* @__PURE__ */ H(
2520
+ const f = i.length, r = l.methodLabel(b), h = q === f, M = (S, k, U, j = r) => /* @__PURE__ */ C(
2520
2521
  "div",
2521
2522
  {
2522
2523
  role: "gridcell",
@@ -2534,9 +2535,9 @@ function aa(e) {
2534
2535
  ref: P,
2535
2536
  role: "row",
2536
2537
  "aria-rowindex": f + 2,
2537
- className: Lt({ position: "footer" }),
2538
+ className: Ot({ position: "footer" }),
2538
2539
  children: [
2539
- /* @__PURE__ */ H(
2540
+ /* @__PURE__ */ C(
2540
2541
  "div",
2541
2542
  {
2542
2543
  role: "rowheader",
@@ -2546,13 +2547,13 @@ function aa(e) {
2546
2547
  children: r
2547
2548
  }
2548
2549
  ),
2549
- Ct(
2550
+ Ht(
2550
2551
  ye.cols,
2551
2552
  (S) => M(m.columns[S], S, l.columnLabel(s[S]))
2552
2553
  ),
2553
2554
  w ? M(
2554
2555
  m.grand,
2555
- C,
2556
+ H,
2556
2557
  l.methodLabel(w),
2557
2558
  // The corner aggregates every cell by the row method, so it
2558
2559
  // is named for all cells, not for the footer's own method.
@@ -2562,9 +2563,9 @@ function aa(e) {
2562
2563
  }
2563
2564
  );
2564
2565
  }
2565
- const Ee = [], ke = ye.rows;
2566
- ke.lead > 0 && Ee.push(
2567
- /* @__PURE__ */ H(
2566
+ const Re = [], ke = ye.rows;
2567
+ ke.lead > 0 && Re.push(
2568
+ /* @__PURE__ */ C(
2568
2569
  "div",
2569
2570
  {
2570
2571
  "aria-hidden": "true",
@@ -2573,8 +2574,8 @@ function aa(e) {
2573
2574
  "row-lead"
2574
2575
  )
2575
2576
  ), ke.indexes.forEach((f, r) => {
2576
- ke.middle > 0 && r === ke.middleAfter && Ee.push(
2577
- /* @__PURE__ */ H(
2577
+ ke.middle > 0 && r === ke.middleAfter && Re.push(
2578
+ /* @__PURE__ */ C(
2578
2579
  "div",
2579
2580
  {
2580
2581
  "aria-hidden": "true",
@@ -2586,9 +2587,9 @@ function aa(e) {
2586
2587
  const h = i[f];
2587
2588
  if (!h) return;
2588
2589
  const M = f === q;
2589
- Ee.push(
2590
- /* @__PURE__ */ H(
2591
- oa,
2590
+ Re.push(
2591
+ /* @__PURE__ */ C(
2592
+ aa,
2592
2593
  {
2593
2594
  ctx: ee,
2594
2595
  row: h,
@@ -2596,13 +2597,13 @@ function aa(e) {
2596
2597
  highlighted: (me == null ? void 0 : me.rowKey) === h.key,
2597
2598
  activeCol: M ? B : -1,
2598
2599
  tooltipCol: (Ce == null ? void 0 : Ce.rowKey) === h.key ? Ce.col : -1,
2599
- selectedCols: h.kind === "data" ? Ft.get(o[h.rowIndex].id) ?? "" : ""
2600
+ selectedCols: h.kind === "data" ? zt.get(o[h.rowIndex].id) ?? "" : ""
2600
2601
  },
2601
2602
  h.key
2602
2603
  )
2603
2604
  );
2604
- }), ke.tail > 0 && Ee.push(
2605
- /* @__PURE__ */ H(
2605
+ }), ke.tail > 0 && Re.push(
2606
+ /* @__PURE__ */ C(
2606
2607
  "div",
2607
2608
  {
2608
2609
  "aria-hidden": "true",
@@ -2612,7 +2613,7 @@ function aa(e) {
2612
2613
  )
2613
2614
  );
2614
2615
  const Bt = {
2615
- "--heatmap-columns": String(Math.max(1, C)),
2616
+ "--heatmap-columns": String(Math.max(1, H)),
2616
2617
  "--heatmap-row-lead": String(ke.lead),
2617
2618
  "--heatmap-row-middle": String(ke.middle),
2618
2619
  "--heatmap-row-tail": String(ke.tail),
@@ -2627,10 +2628,10 @@ function aa(e) {
2627
2628
  "div",
2628
2629
  {
2629
2630
  ref: $,
2630
- onScroll: xt,
2631
+ onScroll: It,
2631
2632
  style: Bt,
2632
2633
  "data-component": "heatmap-grid",
2633
- className: Jo(),
2634
+ className: Qo(),
2634
2635
  children: [
2635
2636
  /* @__PURE__ */ le(
2636
2637
  "div",
@@ -2643,37 +2644,37 @@ function aa(e) {
2643
2644
  "aria-colcount": Q + 1,
2644
2645
  "aria-multiselectable": O === "multiple" || O === "range" ? !0 : void 0,
2645
2646
  "data-heatmap-grid": "",
2646
- className: Xo({
2647
- size: R,
2647
+ className: Zo({
2648
+ size: T,
2648
2649
  density: L,
2649
2650
  virtualised: g,
2650
2651
  totalsColumn: !!w
2651
2652
  }),
2652
- onKeyDown: Fe,
2653
- onPointerDown: It,
2654
- onPointerMove: zt,
2655
- onPointerLeave: kt,
2653
+ onKeyDown: ze,
2654
+ onPointerDown: kt,
2655
+ onPointerMove: Ft,
2656
+ onPointerLeave: Mt,
2656
2657
  onClick: He,
2657
2658
  onFocus: (f) => {
2658
- f.target.matches(":focus-visible") && (Z.current = "keyboard"), be.current = !0, Ne(!0);
2659
+ f.target.matches(":focus-visible") && (Z.current = "keyboard"), be.current = !0, Ae(!0);
2659
2660
  },
2660
2661
  onBlur: (f) => {
2661
- f.currentTarget.contains(f.relatedTarget) || (be.current = !1, Ne(!1));
2662
+ f.currentTarget.contains(f.relatedTarget) || (be.current = !1, Ae(!1));
2662
2663
  },
2663
2664
  children: [
2664
- St,
2665
- Ee,
2665
+ Nt,
2666
+ Re,
2666
2667
  mt
2667
2668
  ]
2668
2669
  }
2669
2670
  ),
2670
- ut !== null ? /* @__PURE__ */ H("span", { id: dt, hidden: !0, children: ut }) : null
2671
+ ut !== null ? /* @__PURE__ */ C("span", { id: dt, hidden: !0, children: ut }) : null
2671
2672
  ]
2672
2673
  }
2673
2674
  );
2674
2675
  }
2675
- const Pt = Array.from({ length: Re }, (e, t) => t);
2676
- function ra(e, t) {
2676
+ const Pt = Array.from({ length: Te }, (e, t) => t);
2677
+ function sa(e, t) {
2677
2678
  return {
2678
2679
  start: e.min === null ? "" : t(e.min),
2679
2680
  end: e.max === null ? "" : t(e.max),
@@ -2693,18 +2694,18 @@ const an = Mn(
2693
2694
  minCount: d,
2694
2695
  className: l
2695
2696
  }, v) => {
2696
- const { t: m, i18n: w } = Ht("ui"), b = Rn(), p = An(w.resolvedLanguage ?? w.language), A = X(
2697
+ const { t: m, i18n: w } = wt("ui"), b = Tn(), p = Nn(w.resolvedLanguage ?? w.language), N = X(
2697
2698
  () => n ? Qt(n, o ?? []) : (b == null ? void 0 : b.scale) ?? Qt({ type: "sequential" }, o ?? []),
2698
2699
  [n, o, b == null ? void 0 : b.scale]
2699
- ), O = t ?? (b == null ? void 0 : b.palette) ?? (A.type === "diverging" ? "diverging" : "primary"), D = s ?? (b == null ? void 0 : b.describer.formatValue) ?? En(p, "number"), y = (A.type === "quantile" || A.type === "threshold") && A.thresholds.length > 0, E = A.thresholds.length + 1, g = y ? Array.from(
2700
- { length: E },
2701
- ($, c) => Jt(c, E)
2702
- ) : [], R = A.thresholds.map(D), L = ra(A, D), V = y ? m("heatmap.legend.descriptionBands", {
2703
- count: E,
2704
- formatted: Tn(p)(E),
2700
+ ), O = t ?? (b == null ? void 0 : b.palette) ?? (N.type === "diverging" ? "diverging" : "primary"), D = s ?? (b == null ? void 0 : b.describer.formatValue) ?? Rn(p, "number"), y = (N.type === "quantile" || N.type === "threshold") && N.thresholds.length > 0, R = N.thresholds.length + 1, g = y ? Array.from(
2701
+ { length: R },
2702
+ ($, c) => Jt(c, R)
2703
+ ) : [], T = N.thresholds.map(D), L = sa(N, D), G = y ? m("heatmap.legend.descriptionBands", {
2704
+ count: R,
2705
+ formatted: En(p)(R),
2705
2706
  edges: new Intl.ListFormat(p, {
2706
2707
  type: "conjunction"
2707
- }).format(R)
2708
+ }).format(T)
2708
2709
  }) : L.middle !== void 0 ? m("heatmap.legend.descriptionDiverging", {
2709
2710
  min: L.start,
2710
2711
  max: L.end,
@@ -2712,7 +2713,7 @@ const an = Mn(
2712
2713
  }) : m("heatmap.legend.description", {
2713
2714
  min: L.start,
2714
2715
  max: L.end
2715
- }), J = (A.type === "quantile" || A.type === "threshold") && !y ? [A.min === null ? Re / 2 : A.stepOf(A.min)] : null, F = a ?? (b == null ? void 0 : b.hasEmpty) ?? !1, Y = i ?? (b == null ? void 0 : b.hasLowSample) ?? !1, T = u ?? (b == null ? void 0 : b.hasWithheldTotal) ?? !1, N = d ?? (b == null ? void 0 : b.minCount), K = e === "continuous" ? "continuous" : "stepped", z = ($) => /* @__PURE__ */ H("span", { className: ea({ variant: e }), children: $.map((c) => /* @__PURE__ */ H(
2716
+ }), J = (N.type === "quantile" || N.type === "threshold") && !y ? [N.min === null ? Te / 2 : N.stepOf(N.min)] : null, z = a ?? (b == null ? void 0 : b.hasEmpty) ?? !1, Y = i ?? (b == null ? void 0 : b.hasLowSample) ?? !1, E = u ?? (b == null ? void 0 : b.hasWithheldTotal) ?? !1, A = d ?? (b == null ? void 0 : b.minCount), K = e === "continuous" ? "continuous" : "stepped", F = ($) => /* @__PURE__ */ C("span", { className: ta({ variant: e }), children: $.map((c) => /* @__PURE__ */ C(
2716
2717
  "span",
2717
2718
  {
2718
2719
  className: tt({
@@ -2729,10 +2730,10 @@ const an = Mn(
2729
2730
  role: "group",
2730
2731
  "aria-label": m("heatmap.legend.label"),
2731
2732
  "data-component": "heatmap-legend",
2732
- className: Zo({ className: l }),
2733
+ className: ea({ className: l }),
2733
2734
  children: [
2734
- /* @__PURE__ */ H("span", { className: "ds:sr-only", children: V }),
2735
- y ? /* @__PURE__ */ H(
2735
+ /* @__PURE__ */ C("span", { className: "ds:sr-only", children: G }),
2736
+ y ? /* @__PURE__ */ C(
2736
2737
  "span",
2737
2738
  {
2738
2739
  "aria-hidden": "true",
@@ -2743,7 +2744,7 @@ const an = Mn(
2743
2744
  {
2744
2745
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
2745
2746
  children: [
2746
- /* @__PURE__ */ H(
2747
+ /* @__PURE__ */ C(
2747
2748
  "span",
2748
2749
  {
2749
2750
  "data-step": $,
@@ -2753,7 +2754,7 @@ const an = Mn(
2753
2754
  })
2754
2755
  }
2755
2756
  ),
2756
- c < R.length ? /* @__PURE__ */ H("span", { className: "ds:shrink-0", children: R[c] }) : null
2757
+ c < T.length ? /* @__PURE__ */ C("span", { className: "ds:shrink-0", children: T[c] }) : null
2757
2758
  ]
2758
2759
  },
2759
2760
  $
@@ -2765,10 +2766,10 @@ const an = Mn(
2765
2766
  "aria-hidden": "true",
2766
2767
  className: "ds:flex ds:min-w-0 ds:max-w-full ds:items-center ds:gap-[var(--spacing-xs)] ds:tabular-nums",
2767
2768
  children: [
2768
- /* @__PURE__ */ H("span", { className: "ds:shrink-0", children: L.start }),
2769
- L.middle !== void 0 ? /* @__PURE__ */ le(Vn, { children: [
2770
- z(Pt.slice(0, Re / 2)),
2771
- /* @__PURE__ */ H(
2769
+ /* @__PURE__ */ C("span", { className: "ds:shrink-0", children: L.start }),
2770
+ L.middle !== void 0 ? /* @__PURE__ */ le(Gn, { children: [
2771
+ F(Pt.slice(0, Te / 2)),
2772
+ /* @__PURE__ */ C(
2772
2773
  "span",
2773
2774
  {
2774
2775
  "data-legend": "midpoint",
@@ -2779,14 +2780,14 @@ const an = Mn(
2779
2780
  children: L.middle
2780
2781
  }
2781
2782
  ),
2782
- z(Pt.slice(Re / 2))
2783
- ] }) : z(J ?? Pt),
2784
- /* @__PURE__ */ H("span", { className: "ds:shrink-0", children: L.end })
2783
+ F(Pt.slice(Te / 2))
2784
+ ] }) : F(J ?? Pt),
2785
+ /* @__PURE__ */ C("span", { className: "ds:shrink-0", children: L.end })
2785
2786
  ]
2786
2787
  }
2787
2788
  ),
2788
- F ? /* @__PURE__ */ le("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
2789
- /* @__PURE__ */ H(
2789
+ z ? /* @__PURE__ */ le("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
2790
+ /* @__PURE__ */ C(
2790
2791
  "span",
2791
2792
  {
2792
2793
  "aria-hidden": "true",
@@ -2796,19 +2797,19 @@ const an = Mn(
2796
2797
  m("heatmap.legend.noData")
2797
2798
  ] }) : null,
2798
2799
  Y ? /* @__PURE__ */ le("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
2799
- /* @__PURE__ */ H(
2800
+ /* @__PURE__ */ C(
2800
2801
  "span",
2801
2802
  {
2802
2803
  "aria-hidden": "true",
2803
2804
  className: tt({ tone: "low-sample" })
2804
2805
  }
2805
2806
  ),
2806
- N === void 0 ? m("heatmap.legend.lowSample") : m("heatmap.legend.lowSampleUnder", {
2807
- value: new Intl.NumberFormat(p).format(N)
2807
+ A === void 0 ? m("heatmap.legend.lowSample") : m("heatmap.legend.lowSampleUnder", {
2808
+ value: new Intl.NumberFormat(p).format(A)
2808
2809
  })
2809
2810
  ] }) : null,
2810
- T ? /* @__PURE__ */ le("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
2811
- /* @__PURE__ */ H(
2811
+ E ? /* @__PURE__ */ le("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
2812
+ /* @__PURE__ */ C(
2812
2813
  "span",
2813
2814
  {
2814
2815
  "aria-hidden": "true",
@@ -2823,15 +2824,28 @@ const an = Mn(
2823
2824
  }
2824
2825
  );
2825
2826
  an.displayName = "HeatmapLegend";
2826
- const rn = () => import("./data-table-xUDjZS_O.js").then((e) => e.h).then((e) => ({
2827
- default: e.DataTable
2828
- })), sa = Sn(rn);
2827
+ const rn = () => import("./data-table-C5uN4ato.js").then((e) => e.h).then((e) => {
2828
+ const t = e.DataTable;
2829
+ function n(o) {
2830
+ const { t: s } = wt("ui");
2831
+ return /* @__PURE__ */ C(t, { ...o, children: /* @__PURE__ */ C("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ C(
2832
+ no,
2833
+ {
2834
+ role: "toolbar",
2835
+ "aria-label": s("dataTable.tableActions"),
2836
+ className: "ds:bg-[var(--background)]",
2837
+ children: /* @__PURE__ */ C(e.DataTable.Toolbar.ExportMenu, {})
2838
+ }
2839
+ ) }) });
2840
+ }
2841
+ return { default: n };
2842
+ }), ia = Sn(rn);
2829
2843
  function xn() {
2830
2844
  rn().catch(() => {
2831
2845
  });
2832
2846
  }
2833
2847
  const In = { value: null, status: "empty" };
2834
- function ia({
2848
+ function la({
2835
2849
  title: e,
2836
2850
  rowsLabel: t,
2837
2851
  rows: n,
@@ -2847,7 +2861,7 @@ function ia({
2847
2861
  groupColumnMethod: w,
2848
2862
  onLoadError: b
2849
2863
  }) {
2850
- const { t: p } = Ht("ui"), A = X(
2864
+ const { t: p } = wt("ui"), N = X(
2851
2865
  () => [
2852
2866
  ...i ? [
2853
2867
  {
@@ -2865,12 +2879,12 @@ function ia({
2865
2879
  sortable: !i
2866
2880
  },
2867
2881
  ...o.map(
2868
- (N, K) => ({
2882
+ (A, K) => ({
2869
2883
  colId: `c${K}`,
2870
- headerName: d.columnLabel(N),
2871
- valueGetter: (z) => {
2884
+ headerName: d.columnLabel(A),
2885
+ valueGetter: (F) => {
2872
2886
  var $;
2873
- return (($ = z.data) == null ? void 0 : $.cells[K]) ?? "";
2887
+ return (($ = F.data) == null ? void 0 : $.cells[K]) ?? "";
2874
2888
  },
2875
2889
  sortable: !1
2876
2890
  })
@@ -2886,25 +2900,25 @@ function ia({
2886
2900
  ],
2887
2901
  [i, t, o, d, v, p]
2888
2902
  ), O = X(
2889
- () => a.map((N) => {
2890
- if (N.kind === "group") {
2891
- const $ = d.groupLabel(N.groupId), c = (l == null ? void 0 : l.groupColumns.get(N.groupId)) ?? [];
2903
+ () => a.map((A) => {
2904
+ if (A.kind === "group") {
2905
+ const $ = d.groupLabel(A.groupId), c = (l == null ? void 0 : l.groupColumns.get(A.groupId)) ?? [];
2892
2906
  return {
2893
- id: `group:${u.get(N.groupId) ?? ""}`,
2907
+ id: `group:${u.get(A.groupId) ?? ""}`,
2894
2908
  group: $,
2895
2909
  row: d.groupRowText($, w),
2896
2910
  cells: o.map(
2897
2911
  (I, P) => d.tableText(c[P] ?? In)
2898
2912
  ),
2899
2913
  total: v && l ? d.tableText(
2900
- l.groups.get(N.groupId) ?? In
2914
+ l.groups.get(A.groupId) ?? In
2901
2915
  ) : void 0
2902
2916
  };
2903
2917
  }
2904
- const K = N.rowIndex, z = n[K].group;
2918
+ const K = A.rowIndex, F = n[K].group;
2905
2919
  return {
2906
2920
  id: `row:${n[K].id}`,
2907
- group: i && z !== void 0 ? d.groupLabel(z) : void 0,
2921
+ group: i && F !== void 0 ? d.groupLabel(F) : void 0,
2908
2922
  row: d.rowLabel(n[K]),
2909
2923
  cells: s[K].map(($) => d.tableText($)),
2910
2924
  total: v && l ? d.tableText(l.rows[K]) : void 0
@@ -2927,73 +2941,75 @@ function ia({
2927
2941
  {
2928
2942
  id: "heatmap-column-totals",
2929
2943
  row: d.methodLabel(m),
2930
- cells: l.columns.map((N) => d.tableText(N)),
2944
+ cells: l.columns.map((A) => d.tableText(A)),
2931
2945
  // The grand total, by the row method, as the grid's corner.
2932
2946
  total: v ? d.tableText(l.grand) : void 0
2933
2947
  }
2934
2948
  ] : void 0,
2935
2949
  [m, v, l, d]
2936
- ), y = O.length + ((D == null ? void 0 : D.length) ?? 0), E = ie(y);
2937
- E.current = y;
2938
- const [g, R] = we(null), L = g === y, V = ie(null);
2950
+ ), y = O.length + ((D == null ? void 0 : D.length) ?? 0), R = ie(y);
2951
+ R.current = y;
2952
+ const [g, T] = we(null), L = g === y, G = ie(null);
2939
2953
  nt(() => {
2940
- const N = V.current;
2941
- if (L || !N || typeof ResizeObserver > "u") return;
2954
+ const A = G.current;
2955
+ if (L || !A || typeof ResizeObserver > "u") return;
2942
2956
  const K = new ResizeObserver(() => {
2943
- N.scrollHeight > N.clientHeight + 1 && R(E.current);
2944
- }), z = () => {
2945
- K.observe(N);
2946
- for (const c of Array.from(N.children)) K.observe(c);
2957
+ A.scrollHeight > A.clientHeight + 1 && T(R.current);
2958
+ }), F = () => {
2959
+ K.observe(A);
2960
+ for (const c of Array.from(A.children)) K.observe(c);
2947
2961
  };
2948
- z();
2949
- const $ = new MutationObserver(z);
2950
- return $.observe(N, { childList: !0 }), () => {
2962
+ F();
2963
+ const $ = new MutationObserver(F);
2964
+ return $.observe(A, { childList: !0 }), () => {
2951
2965
  K.disconnect(), $.disconnect();
2952
2966
  };
2953
2967
  }, [L]);
2954
2968
  const J = X(
2955
2969
  () => ({
2956
- getRowId: (N) => N.data.id,
2957
- domLayout: L ? "normal" : "autoHeight"
2970
+ getRowId: (A) => A.data.id,
2971
+ domLayout: L ? "normal" : "autoHeight",
2972
+ // Every value is already on screen in its row and column: no filters.
2973
+ defaultColDef: { filter: !1, floatingFilter: !1 }
2958
2974
  }),
2959
2975
  [L]
2960
- ), [F, Y] = we(0), T = X(
2961
- () => F === 0 ? sa : Sn(rn),
2962
- [F]
2976
+ ), [z, Y] = we(0), E = X(
2977
+ () => z === 0 ? ia : Sn(rn),
2978
+ [z]
2963
2979
  );
2964
- return /* @__PURE__ */ H(
2980
+ return /* @__PURE__ */ C(
2965
2981
  "div",
2966
2982
  {
2967
- ref: V,
2983
+ ref: G,
2968
2984
  role: "group",
2969
2985
  "aria-label": e,
2970
2986
  tabIndex: -1,
2971
2987
  "data-component": "heatmap-table",
2972
2988
  "data-layout": L ? "capped" : "fit",
2973
- className: Qo({ capped: L }),
2974
- children: /* @__PURE__ */ H(
2989
+ className: Xo({ capped: L }),
2990
+ children: /* @__PURE__ */ C(
2975
2991
  to,
2976
2992
  {
2977
2993
  size: "sm",
2978
2994
  onError: () => b == null ? void 0 : b(),
2979
2995
  onRetry: () => {
2980
- var N;
2981
- Y((K) => K + 1), (N = V.current) == null || N.focus();
2996
+ var A;
2997
+ Y((K) => K + 1), (A = G.current) == null || A.focus();
2982
2998
  },
2983
- children: /* @__PURE__ */ H(
2999
+ children: /* @__PURE__ */ C(
2984
3000
  qn,
2985
3001
  {
2986
- fallback: /* @__PURE__ */ H("div", { role: "status", "aria-label": p("heatmap.loadingTable"), children: /* @__PURE__ */ H(
3002
+ fallback: /* @__PURE__ */ C("div", { role: "status", "aria-label": p("heatmap.loadingTable"), children: /* @__PURE__ */ C(
2987
3003
  qt,
2988
3004
  {
2989
3005
  variant: "rectangular",
2990
3006
  className: "ds:h-[calc(var(--min-target-size)*4)] ds:w-full"
2991
3007
  }
2992
3008
  ) }),
2993
- children: /* @__PURE__ */ H(
2994
- T,
3009
+ children: /* @__PURE__ */ C(
3010
+ E,
2995
3011
  {
2996
- columnDefs: A,
3012
+ columnDefs: N,
2997
3013
  rowData: O,
2998
3014
  pinnedBottomRowData: D,
2999
3015
  density: "compact",
@@ -3008,7 +3024,7 @@ function ia({
3008
3024
  }
3009
3025
  );
3010
3026
  }
3011
- const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? []).map((t) => Ot(t.rowId, t.columnId))), kn = { text: "", privacyMode: !1, repeat: 0 }, Bn = Mn(
3027
+ const ca = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? []).map((t) => Ct(t.rowId, t.columnId))), kn = { text: "", privacyMode: !1, repeat: 0 }, Bn = Mn(
3012
3028
  ({
3013
3029
  title: e,
3014
3030
  rows: t,
@@ -3016,7 +3032,7 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3016
3032
  getCell: o,
3017
3033
  cells: s,
3018
3034
  groups: a,
3019
- scale: i = la,
3035
+ scale: i = ca,
3020
3036
  palette: u,
3021
3037
  valueType: d = "number",
3022
3038
  minCount: l,
@@ -3025,64 +3041,64 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3025
3041
  showValues: w = !1,
3026
3042
  legend: b = "stepped",
3027
3043
  rowTotals: p = !1,
3028
- columnTotals: A = !1,
3044
+ columnTotals: N = !1,
3029
3045
  sortRows: O,
3030
3046
  defaultSortRows: D = "none",
3031
3047
  onSortRowsChange: y,
3032
- groupRows: E = !1,
3048
+ groupRows: R = !1,
3033
3049
  defaultCollapsedGroups: g,
3034
- selection: R = "none",
3050
+ selection: T = "none",
3035
3051
  selectedCells: L,
3036
- defaultSelectedCells: V,
3052
+ defaultSelectedCells: G,
3037
3053
  onSelectionChange: J,
3038
- onCellClick: F,
3054
+ onCellClick: z,
3039
3055
  renderTooltip: Y,
3040
- density: T = "default",
3041
- size: N = "md",
3056
+ density: E = "default",
3057
+ size: A = "md",
3042
3058
  loading: K = !1,
3043
- privacyMode: z = !1,
3059
+ privacyMode: F = !1,
3044
3060
  privacyScope: $ = "rows",
3045
3061
  rowsLabel: c,
3046
3062
  defaultView: I = "heatmap",
3047
3063
  onViewChange: P,
3048
- id: C,
3064
+ id: H,
3049
3065
  className: Q,
3050
3066
  children: te
3051
3067
  }, x) => {
3052
- const { t: _, i18n: W } = Ht("ui"), G = An(W.resolvedLanguage ?? W.language), q = X(
3053
- () => Ko(t, n, o, s, l),
3068
+ const { t: _, i18n: W } = wt("ui"), V = Nn(W.resolvedLanguage ?? W.language), q = X(
3069
+ () => Fo(t, n, o, s, l),
3054
3070
  [t, n, o, s, l]
3055
3071
  ), B = X(() => zo(q), [q]), re = JSON.stringify(i), ne = X(
3056
3072
  () => Qt(i, B),
3057
3073
  // eslint-disable-next-line react-hooks/exhaustive-deps -- keyed by content
3058
3074
  [re, B]
3059
- ), Me = u ?? (ne.type === "diverging" ? "diverging" : "primary"), Ne = X(
3060
- () => m ?? En(G, d),
3061
- [m, G, d]
3062
- ), be = X(() => Tn(G), [G]), Z = X(
3063
- () => lo({
3075
+ ), Me = u ?? (ne.type === "diverging" ? "diverging" : "primary"), Ae = X(
3076
+ () => m ?? Rn(V, d),
3077
+ [m, V, d]
3078
+ ), be = X(() => En(V), [V]), Z = X(
3079
+ () => co({
3064
3080
  t: _,
3065
- privacyMode: z,
3081
+ privacyMode: F,
3066
3082
  privacyScope: $,
3067
3083
  valueType: d,
3068
- formatValue: Ne,
3084
+ formatValue: Ae,
3069
3085
  formatCount: be,
3070
3086
  groups: a
3071
3087
  }),
3072
3088
  [
3073
3089
  _,
3074
- z,
3090
+ F,
3075
3091
  $,
3076
3092
  d,
3077
- Ne,
3093
+ Ae,
3078
3094
  be,
3079
3095
  a
3080
3096
  ]
3081
3097
  ), pe = X(
3082
- () => Do(t, a),
3098
+ () => Ko(t, a),
3083
3099
  [t, a]
3084
- ), je = A || p || "mean", qe = p || A || "mean", wt = A || p || "mean", [Oe, We] = we(kn), me = ie(0), Ce = ie(z);
3085
- Ce.current = z;
3100
+ ), je = N || p || "mean", qe = p || N || "mean", bt = N || p || "mean", [Oe, We] = we(kn), me = ie(0), Ce = ie(F);
3101
+ Ce.current = F;
3086
3102
  const fe = ae((r, h = !1) => {
3087
3103
  window.clearTimeout(me.current);
3088
3104
  const M = Ce.current, S = () => We((k) => ({
@@ -3094,8 +3110,8 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3094
3110
  }, []);
3095
3111
  gt(() => () => window.clearTimeout(me.current), []), gt(() => {
3096
3112
  window.clearTimeout(me.current), We((r) => r.text === "" ? r : kn);
3097
- }, [z]);
3098
- const Dt = Oe.privacyMode === z ? (
3113
+ }, [F]);
3114
+ const Dt = Oe.privacyMode === F ? (
3099
3115
  // The same words twice leave the DOM unchanged and a screen reader
3100
3116
  // silent: a trailing no-break space on every other repeat changes
3101
3117
  // the text without changing what is read.
@@ -3107,17 +3123,17 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3107
3123
  );
3108
3124
  },
3109
3125
  [P, fe, _]
3110
- ), [bt, lt] = we(D), De = O ?? bt, Kt = ae(
3126
+ ), [yt, lt] = we(D), De = O ?? yt, Kt = ae(
3111
3127
  (r) => {
3112
3128
  O === void 0 && lt(r), y == null || y(r);
3113
3129
  },
3114
3130
  [O, y]
3115
- ), [_e, yt] = we(
3131
+ ), [_e, xt] = we(
3116
3132
  () => new Set(g ?? [])
3117
3133
  ), ye = ae(
3118
3134
  (r, h) => {
3119
3135
  if (_e.has(r) === h) return;
3120
- yt((S) => {
3136
+ xt((S) => {
3121
3137
  if (S.has(r) === h) return S;
3122
3138
  const k = new Set(S);
3123
3139
  return h ? k.add(r) : k.delete(r), k;
@@ -3132,12 +3148,12 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3132
3148
  (r) => ye(r, !_e.has(r)),
3133
3149
  [_e, ye]
3134
3150
  ), Ke = X(
3135
- () => new Intl.Collator(G, { numeric: !0, sensitivity: "base" }),
3136
- [G]
3137
- ), xt = De === "label" && Z.masksRows ? "none" : De, xe = X(
3138
- () => $o(q, t, n, {
3151
+ () => new Intl.Collator(V, { numeric: !0, sensitivity: "base" }),
3152
+ [V]
3153
+ ), It = De === "label" && Z.masksRows ? "none" : De, xe = X(
3154
+ () => Po(q, t, n, {
3139
3155
  rowMethod: qe,
3140
- columnMethod: wt,
3156
+ columnMethod: bt,
3141
3157
  groupColumnMethod: je,
3142
3158
  groups: a,
3143
3159
  minCount: l,
@@ -3149,7 +3165,7 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3149
3165
  t,
3150
3166
  n,
3151
3167
  qe,
3152
- wt,
3168
+ bt,
3153
3169
  je,
3154
3170
  a,
3155
3171
  l,
@@ -3157,20 +3173,20 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3157
3173
  d
3158
3174
  ]
3159
3175
  ), Ye = X(
3160
- () => qo(
3176
+ () => Wo(
3161
3177
  t.map((r, h) => h),
3162
3178
  t,
3163
3179
  xe.rows,
3164
- xt,
3180
+ It,
3165
3181
  Ke
3166
3182
  ),
3167
- [t, xe.rows, xt, Ke]
3183
+ [t, xe.rows, It, Ke]
3168
3184
  ), de = X(
3169
- () => pn(t, Ye, E, _e),
3170
- [t, Ye, E, _e]
3171
- ), ze = X(
3172
- () => pn(t, Ye, E, /* @__PURE__ */ new Set()),
3173
- [t, Ye, E]
3185
+ () => pn(t, Ye, R, _e),
3186
+ [t, Ye, R, _e]
3187
+ ), Fe = X(
3188
+ () => pn(t, Ye, R, /* @__PURE__ */ new Set()),
3189
+ [t, Ye, R]
3174
3190
  ), Ie = X(
3175
3191
  () => new Map(t.map((r, h) => [r.id, h])),
3176
3192
  [t]
@@ -3180,7 +3196,7 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3180
3196
  ), ct = ae(
3181
3197
  (r) => Se.get(r),
3182
3198
  [Se]
3183
- ), Fe = ae(
3199
+ ), ze = ae(
3184
3200
  (r, h) => {
3185
3201
  const M = t[r], S = n[h], k = q[r][h];
3186
3202
  return {
@@ -3223,40 +3239,40 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3223
3239
  },
3224
3240
  [Z, pe]
3225
3241
  ), Be = ae(
3226
- (r) => Y ? Y(z ? Je(r) : r, {
3227
- privacyMode: z
3242
+ (r) => Y ? Y(F ? Je(r) : r, {
3243
+ privacyMode: F
3228
3244
  }) : Z.sentence(
3229
3245
  Z.rowLabel(r.row),
3230
3246
  Z.columnLabel(r.column),
3231
3247
  q[r.rowIndex][r.columnIndex]
3232
3248
  ),
3233
- [Y, z, Je, Z, q]
3234
- ), Ve = L !== void 0, [It, zt] = we(
3235
- () => jt(V)
3249
+ [Y, F, Je, Z, q]
3250
+ ), Ge = L !== void 0, [kt, Ft] = we(
3251
+ () => jt(G)
3236
3252
  ), he = X(() => {
3237
- const r = Ve ? jt(L) : It, h = /* @__PURE__ */ new Set();
3253
+ const r = Ge ? jt(L) : kt, h = /* @__PURE__ */ new Set();
3238
3254
  for (const M of r) {
3239
3255
  const [S, k] = Et(M);
3240
3256
  Ie.has(S) && Se.has(k) && h.add(M);
3241
3257
  }
3242
3258
  return h;
3243
3259
  }, [
3244
- Ve,
3260
+ Ge,
3245
3261
  L,
3246
- It,
3262
+ kt,
3247
3263
  Ie,
3248
3264
  Se
3249
- ]), Ge = ae(
3265
+ ]), Ve = ae(
3250
3266
  (r) => {
3251
3267
  const h = [];
3252
3268
  for (const M of r) {
3253
3269
  const [S, k] = Et(M), U = Ie.get(S), j = Se.get(k);
3254
- U !== void 0 && j !== void 0 && h.push(Fe(U, j));
3270
+ U !== void 0 && j !== void 0 && h.push(ze(U, j));
3255
3271
  }
3256
3272
  return h;
3257
3273
  },
3258
- [Ie, Se, Fe]
3259
- ), kt = ae(
3274
+ [Ie, Se, ze]
3275
+ ), Mt = ae(
3260
3276
  (r, h) => Z.cellName(
3261
3277
  Z.rowLabel(t[r]),
3262
3278
  Z.columnLabel(n[h])
@@ -3264,9 +3280,9 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3264
3280
  [Z, t, n]
3265
3281
  ), He = ae(
3266
3282
  (r, h, M = !1) => {
3267
- Ve || zt(r), J == null || J(Ge(r)), fe(h, M);
3283
+ Ge || Ft(r), J == null || J(Ve(r)), fe(h, M);
3268
3284
  },
3269
- [Ve, J, Ge, fe]
3285
+ [Ge, J, Ve, fe]
3270
3286
  ), $e = ae(
3271
3287
  (r) => r === 0 ? _("heatmap.announce.cleared") : _("heatmap.announce.count", {
3272
3288
  count: r,
@@ -3283,17 +3299,17 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3283
3299
  const [U, j] = M <= S ? [M, S] : [S, M], [oe, se] = r.col <= h.col ? [r.col, h.col] : [h.col, r.col];
3284
3300
  for (let ue = U; ue <= j; ue += 1) {
3285
3301
  const ce = t[Pe[ue]].id;
3286
- for (let Ae = oe; Ae <= se; Ae += 1)
3287
- k.add(Ot(ce, n[Ae].id));
3302
+ for (let Ne = oe; Ne <= se; Ne += 1)
3303
+ k.add(Ct(ce, n[Ne].id));
3288
3304
  }
3289
3305
  return k;
3290
3306
  },
3291
3307
  [Pe, t, n]
3292
- ), Mt = ae(
3308
+ ), St = ae(
3293
3309
  (r, h, M) => {
3294
- if (F == null || F(Fe(r, h)), !M || R === "none") return;
3295
- const S = Ot(t[r].id, n[h].id), k = kt(r, h);
3296
- if (R === "multiple") {
3310
+ if (z == null || z(ze(r, h)), !M || T === "none") return;
3311
+ const S = Ct(t[r].id, n[h].id), k = Mt(r, h);
3312
+ if (T === "multiple") {
3297
3313
  const j = new Set(he), oe = !j.has(S);
3298
3314
  oe ? j.add(S) : j.delete(S), He(
3299
3315
  j,
@@ -3312,12 +3328,12 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3312
3328
  );
3313
3329
  },
3314
3330
  [
3315
- F,
3316
- Fe,
3317
- R,
3331
+ z,
3332
+ ze,
3333
+ T,
3318
3334
  t,
3319
3335
  n,
3320
- kt,
3336
+ Mt,
3321
3337
  he,
3322
3338
  He,
3323
3339
  be,
@@ -3325,24 +3341,24 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3325
3341
  ]
3326
3342
  ), dt = ae(
3327
3343
  (r, h) => {
3328
- if (R !== "range" && R !== "multiple") return;
3344
+ if (T !== "range" && T !== "multiple") return;
3329
3345
  const M = Qe(r, h);
3330
3346
  M.size === he.size && [...M].every((S) => he.has(S)) || He(M, $e(M.size), !0);
3331
3347
  },
3332
- [R, Qe, he, He, $e]
3348
+ [T, Qe, he, He, $e]
3333
3349
  ), Xe = X(
3334
3350
  () => new Map([...pe].map(([r, h]) => [h, r])),
3335
3351
  [pe]
3336
3352
  ), ut = {
3337
3353
  selected: he,
3338
- selection: R,
3354
+ selection: T,
3339
3355
  view: ve,
3340
3356
  sortRows: De,
3341
3357
  collapsed: _e,
3342
- groupRows: E,
3358
+ groupRows: R,
3343
3359
  rows: t,
3344
3360
  columns: n,
3345
- expandedBody: ze,
3361
+ expandedBody: Fe,
3346
3362
  groupIds: pe,
3347
3363
  groupByPublicId: Xe,
3348
3364
  rowIndexById: Ie,
@@ -3357,12 +3373,12 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3357
3373
  countMessage: $e
3358
3374
  }, ee = ie(ut);
3359
3375
  ee.current = ut;
3360
- const Ft = X(() => {
3376
+ const zt = X(() => {
3361
3377
  const r = (k) => {
3362
3378
  const { columns: U, columnIndexById: j } = ee.current, oe = [];
3363
3379
  for (const se of k) {
3364
- const [ue, ce] = Et(se), Ae = j.get(ce);
3365
- Ae !== void 0 && oe.push({ rowId: ue, columnId: U[Ae].id });
3380
+ const [ue, ce] = Et(se), Ne = j.get(ce);
3381
+ Ne !== void 0 && oe.push({ rowId: ue, columnId: U[Ne].id });
3366
3382
  }
3367
3383
  return oe;
3368
3384
  }, h = (k) => {
@@ -3460,24 +3476,24 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3460
3476
  }
3461
3477
  };
3462
3478
  }, []);
3463
- Wn(so, Ft, C);
3479
+ Wn(io, zt, H);
3464
3480
  const pt = X(
3465
3481
  () => q.some((r) => r.some((h) => h.status === "empty")),
3466
3482
  [q]
3467
- ), St = X(() => {
3468
- const r = (S) => S.status === "low-sample", h = E ? [...xe.groupColumns.values()].flat() : [], M = E ? [...xe.groups.values()] : [];
3469
- return h.some(r) || p !== !1 && (xe.rows.some(r) || M.some(r)) || A !== !1 && (xe.columns.some(r) || p !== !1 && r(xe.grand));
3470
- }, [xe, p, A, E]), mt = X(
3483
+ ), Nt = X(() => {
3484
+ const r = (S) => S.status === "low-sample", h = R ? [...xe.groupColumns.values()].flat() : [], M = R ? [...xe.groups.values()] : [];
3485
+ return h.some(r) || p !== !1 && (xe.rows.some(r) || M.some(r)) || N !== !1 && (xe.columns.some(r) || p !== !1 && r(xe.grand));
3486
+ }, [xe, p, N, R]), mt = X(
3471
3487
  () => q.some((r) => r.some((h) => h.status === "low-sample")),
3472
3488
  [q]
3473
- ), Ee = X(
3489
+ ), Re = X(
3474
3490
  () => ({
3475
3491
  palette: Me,
3476
3492
  scale: ne,
3477
3493
  describer: Z,
3478
3494
  hasEmpty: pt,
3479
3495
  hasLowSample: mt,
3480
- hasWithheldTotal: St,
3496
+ hasWithheldTotal: Nt,
3481
3497
  minCount: l,
3482
3498
  tooltipText: Be
3483
3499
  }),
@@ -3487,18 +3503,18 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3487
3503
  Z,
3488
3504
  pt,
3489
3505
  mt,
3490
- St,
3506
+ Nt,
3491
3507
  l,
3492
3508
  Be
3493
3509
  ]
3494
3510
  ), ke = wn({ className: Q });
3495
3511
  if (K)
3496
- return /* @__PURE__ */ H(_t.Provider, { value: Ee, children: /* @__PURE__ */ le(
3512
+ return /* @__PURE__ */ C(Tt.Provider, { value: Re, children: /* @__PURE__ */ le(
3497
3513
  "div",
3498
3514
  {
3499
3515
  ref: x,
3500
3516
  "data-component": "heatmap",
3501
- "data-component-id": C,
3517
+ "data-component-id": H,
3502
3518
  className: ke,
3503
3519
  children: [
3504
3520
  /* @__PURE__ */ le(
@@ -3509,14 +3525,14 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3509
3525
  "aria-busy": "true",
3510
3526
  className: wn(),
3511
3527
  children: [
3512
- /* @__PURE__ */ H(
3528
+ /* @__PURE__ */ C(
3513
3529
  qt,
3514
3530
  {
3515
3531
  variant: "rectangular",
3516
3532
  className: "ds:h-[var(--spacing-md)] ds:w-[calc(var(--spacing-xl)*6)] ds:max-w-full"
3517
3533
  }
3518
3534
  ),
3519
- /* @__PURE__ */ H(
3535
+ /* @__PURE__ */ C(
3520
3536
  qt,
3521
3537
  {
3522
3538
  variant: "rectangular",
@@ -3530,16 +3546,16 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3530
3546
  ]
3531
3547
  }
3532
3548
  ) });
3533
- if (t.length === 0 || n.length === 0 || !Fo(q))
3534
- return /* @__PURE__ */ H(_t.Provider, { value: Ee, children: /* @__PURE__ */ le(
3549
+ if (t.length === 0 || n.length === 0 || !Bo(q))
3550
+ return /* @__PURE__ */ C(Tt.Provider, { value: Re, children: /* @__PURE__ */ le(
3535
3551
  "div",
3536
3552
  {
3537
3553
  ref: x,
3538
3554
  "data-component": "heatmap",
3539
- "data-component-id": C,
3555
+ "data-component-id": H,
3540
3556
  className: ke,
3541
3557
  children: [
3542
- /* @__PURE__ */ H(
3558
+ /* @__PURE__ */ C(
3543
3559
  Yn,
3544
3560
  {
3545
3561
  variant: "no-results",
@@ -3552,24 +3568,24 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3552
3568
  ]
3553
3569
  }
3554
3570
  ) });
3555
- const Bt = t.length * n.length > Wo, f = R !== "none" || F !== void 0;
3556
- return /* @__PURE__ */ H(_t.Provider, { value: Ee, children: /* @__PURE__ */ le(
3571
+ const Bt = t.length * n.length > Uo, f = T !== "none" || z !== void 0;
3572
+ return /* @__PURE__ */ C(Tt.Provider, { value: Re, children: /* @__PURE__ */ le(
3557
3573
  "div",
3558
3574
  {
3559
3575
  ref: x,
3560
3576
  "data-component": "heatmap",
3561
- "data-component-id": C,
3577
+ "data-component-id": H,
3562
3578
  className: ke,
3563
3579
  children: [
3564
- /* @__PURE__ */ le("div", { className: Yo(), children: [
3565
- b !== !1 ? /* @__PURE__ */ H(an, { variant: b }) : null,
3566
- /* @__PURE__ */ H(
3580
+ /* @__PURE__ */ le("div", { className: Jo(), children: [
3581
+ b !== !1 ? /* @__PURE__ */ C(an, { variant: b }) : null,
3582
+ /* @__PURE__ */ C(
3567
3583
  Un,
3568
3584
  {
3569
3585
  intent: "outline",
3570
3586
  size: "sm",
3571
3587
  className: "ds:ms-auto",
3572
- startIcon: ve === "table" ? /* @__PURE__ */ H(oo, { "aria-hidden": "true" }) : /* @__PURE__ */ H(ro, { "aria-hidden": "true" }),
3588
+ startIcon: ve === "table" ? /* @__PURE__ */ C(ao, { "aria-hidden": "true" }) : /* @__PURE__ */ C(so, { "aria-hidden": "true" }),
3573
3589
  onPointerEnter: ve === "table" ? void 0 : xn,
3574
3590
  onFocus: ve === "table" ? void 0 : xn,
3575
3591
  onClick: () => it(ve === "table" ? "heatmap" : "table"),
@@ -3577,8 +3593,8 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3577
3593
  }
3578
3594
  )
3579
3595
  ] }),
3580
- ve === "table" ? /* @__PURE__ */ H(
3581
- ia,
3596
+ ve === "table" ? /* @__PURE__ */ C(
3597
+ la,
3582
3598
  {
3583
3599
  onLoadError: () => fe(_("heatmap.announce.tableFailed")),
3584
3600
  title: e,
@@ -3586,18 +3602,18 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3586
3602
  rows: t,
3587
3603
  columns: n,
3588
3604
  matrix: q,
3589
- body: ze,
3590
- grouped: E,
3605
+ body: Fe,
3606
+ grouped: R,
3591
3607
  groupIds: pe,
3592
3608
  describer: Z,
3593
3609
  totals: xe,
3594
3610
  rowTotals: p,
3595
- columnTotals: A,
3611
+ columnTotals: N,
3596
3612
  groupColumnMethod: je
3597
3613
  },
3598
- `${z}-${$}`
3599
- ) : /* @__PURE__ */ H(Qn, { delayDuration: 0, children: /* @__PURE__ */ H(
3600
- aa,
3614
+ `${F}-${$}`
3615
+ ) : /* @__PURE__ */ C(Qn, { delayDuration: 0, children: /* @__PURE__ */ C(
3616
+ ra,
3601
3617
  {
3602
3618
  title: e,
3603
3619
  rowsLabel: c,
@@ -3611,40 +3627,40 @@ const la = { type: "sequential", domain: "auto" }, jt = (e) => new Set((e ?? [])
3611
3627
  showValues: w,
3612
3628
  totals: xe,
3613
3629
  rowTotals: p,
3614
- columnTotals: A,
3630
+ columnTotals: N,
3615
3631
  groupColumnMethod: je,
3616
3632
  groupIds: pe,
3617
- selectionMode: R,
3633
+ selectionMode: T,
3618
3634
  selected: he,
3619
3635
  columnIndexOfKey: ct,
3620
3636
  interactive: f,
3621
3637
  virtualised: Bt,
3622
- size: N,
3623
- density: T,
3624
- cellInfo: Fe,
3638
+ size: A,
3639
+ density: E,
3640
+ cellInfo: ze,
3625
3641
  tooltipText: Be,
3626
3642
  describeFocused: Y !== void 0,
3627
- onActivate: Mt,
3643
+ onActivate: St,
3628
3644
  onRange: dt,
3629
3645
  onToggleGroup: Ue
3630
3646
  }
3631
3647
  ) }),
3632
3648
  te,
3633
- /* @__PURE__ */ H(Jn, { children: Dt }, String(z))
3649
+ /* @__PURE__ */ C(Jn, { children: Dt }, String(F))
3634
3650
  ]
3635
3651
  }
3636
3652
  ) });
3637
3653
  }
3638
3654
  );
3639
3655
  Bn.displayName = "Heatmap";
3640
- const Aa = Object.assign(Bn, {
3656
+ const _a = Object.assign(Bn, {
3641
3657
  Legend: an,
3642
3658
  Tooltip: Dn
3643
3659
  });
3644
3660
  export {
3645
- Aa as H,
3661
+ _a as H,
3646
3662
  an as a,
3647
3663
  Dn as b,
3648
- so as h
3664
+ io as h
3649
3665
  };
3650
- //# sourceMappingURL=heatmap-C9tEvqEm.js.map
3666
+ //# sourceMappingURL=heatmap-Cz0Krieg.js.map