@heartlandone/vega 2.75.1 → 2.77.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 (861) hide show
  1. package/dist/cjs/{app-globals-35614ce8.js → app-globals-04e7024b.js} +28 -32
  2. package/dist/cjs/aria-attributes-value-mapper-f58c73f8.js +136 -0
  3. package/dist/cjs/breakpoints-751d433a.js +56 -0
  4. package/dist/cjs/{child-nodes-event-prevent-slimmer-aca87dac.js → child-nodes-event-prevent-slimmer-cc6d2919.js} +2 -2
  5. package/dist/cjs/{child-nodes-notify-observer-slimmer-257fedb3.js → child-nodes-notify-observer-slimmer-ed39283b.js} +1 -1
  6. package/dist/cjs/{code-block-c1d2e6a8.js → code-block-f1480ec3.js} +17 -17
  7. package/dist/cjs/{component-global-style-slimmer-adfa2e59.js → component-global-style-slimmer-93c5fb50.js} +2 -1
  8. package/dist/cjs/{component-usage-runtime-metrics-d10ace87.js → component-usage-runtime-metrics-4572c5b7.js} +1 -1
  9. package/dist/cjs/{component-value-history-controller-slimmer.abstract-787c67dc.js → component-value-history-controller-slimmer.abstract-a9264cc8.js} +5 -5
  10. package/dist/cjs/{create-public-api-runtime-metrics-slimmer-e2e274e1.js → create-public-api-runtime-metrics-slimmer-9cb09fb2.js} +3 -41
  11. package/dist/cjs/{dark-mode-style-controller-c21172aa.js → dark-mode-style-controller-3a04af3d.js} +292 -1254
  12. package/dist/cjs/{date-required-rule-30ee62d0.js → date-required-rule-912469e0.js} +1 -1
  13. package/dist/cjs/{design-token-bb39e07e.js → design-token-c49717c8.js} +2 -2
  14. package/dist/cjs/dom-node-subject-observer-factory-c62823de.js +141 -0
  15. package/dist/cjs/{dto-renderer-manager-03e1a038.js → dto-renderer-manager-809c947b.js} +33 -33
  16. package/dist/cjs/{element-appender-slimmer-daa8b9f5.js → element-appender-slimmer-38583ca9.js} +349 -166
  17. package/dist/cjs/{event-emit-slimmer-2dacabbd.js → event-emit-slimmer-062cdcb8.js} +2 -2
  18. package/dist/cjs/{feature-flag-controller-ce2162c8.js → feature-flag-controller-9129ef52.js} +7 -1
  19. package/dist/cjs/{form-field-controller-slimmer-aef2fb1e.js → form-field-controller-slimmer-102f37c7.js} +13 -14
  20. package/dist/cjs/{internal-icon-manager-32f9ed63.js → icon-manager-c12c6ea9.js} +1 -52
  21. package/dist/cjs/{image-annotation-action-3fa501b7.js → image-annotation-action-8d9fa20c.js} +10 -9
  22. package/dist/cjs/index-592b4052.js +220 -0
  23. package/dist/cjs/{index-4d7bce1a.js → index-f054eb5d.js} +15 -3
  24. package/dist/cjs/index.cjs.js +68 -65
  25. package/dist/cjs/{inject-keyboard-manager-d21b4387.js → inject-keyboard-manager-0f5bd568.js} +1 -1
  26. package/dist/cjs/internal-icon-manager-c989189a.js +55 -0
  27. package/dist/cjs/{translation-5f9f9c0c.js → internal-translation-controller-053eb0f1.js} +0 -93
  28. package/dist/cjs/{internal-vega-event-manager-6befeb34.js → internal-vega-event-manager-f7ecf3d4.js} +81 -81
  29. package/dist/cjs/internal-vega-z-index-manager-f03ddb37.js +180 -0
  30. package/dist/cjs/{keyboard-manager-3dea6b28.js → keyboard-manager-055e9f67.js} +2 -2
  31. package/dist/cjs/{keyboard-manager-slimmer-0d45f944.js → keyboard-manager-slimmer-0cc0c1c7.js} +1 -1
  32. package/dist/cjs/legend-input-processor-1e53e5bc.js +2126 -0
  33. package/dist/cjs/loader.cjs.js +26 -23
  34. package/dist/cjs/misc-3d30df91.js +41 -0
  35. package/dist/cjs/{month-view-generator-49cc5fc2.js → month-view-generator-6a6dd527.js} +1 -1
  36. package/dist/cjs/{page-resize-observer-slimmer-11937d6f.js → page-resize-observer-slimmer-7f065ee1.js} +2 -54
  37. package/dist/cjs/{public-rules-dc2a8d62.js → public-rules-922849f3.js} +12 -13
  38. package/dist/cjs/{range-79b668e7.js → range-8aa49b08.js} +2 -2
  39. package/dist/cjs/{responsive-format-facade-d5dba942.js → responsive-format-facade-acc39a40.js} +13 -22
  40. package/dist/cjs/{rich-text-editor-required-rule-ba312af9.js → rich-text-editor-required-rule-22225840.js} +1 -1
  41. package/dist/cjs/{string-format-strategy.abstract-63514c60.js → string-format-strategy.abstract-f2575647.js} +1 -1
  42. package/dist/cjs/{string-input-formatter-slimmer-f3e0bbc7.js → string-input-formatter-slimmer-0a334fc6.js} +5 -5
  43. package/dist/cjs/{string-mask-strategy-d23ac21a.js → string-mask-strategy-dda58395.js} +2 -2
  44. package/dist/cjs/{style-formatter-49693da7.js → style-formatter-028af284.js} +2 -2
  45. package/dist/cjs/{sub-state-notify-slimmer-468e19aa.js → sub-state-notify-slimmer-58121111.js} +1 -1
  46. package/dist/cjs/{sub-state-observer-slimmer-5d0b8ac3.js → sub-state-observer-slimmer-1dfbc4c3.js} +2 -2
  47. package/dist/cjs/{time-required-rule-c96ecdc9.js → time-required-rule-d6fa7aa8.js} +1 -1
  48. package/dist/cjs/{function-extension-cfbbc57e.js → token-extension-ffcaeae0.js} +621 -486
  49. package/dist/cjs/{translation-slimmer-f0ebe710.js → translation-slimmer-4533bd67.js} +4 -4
  50. package/dist/cjs/{type-guard-a0f026d8.js → type-guard-407ba0b8.js} +3 -3
  51. package/dist/cjs/{ui-9e181079.js → ui-234ea151.js} +12 -0
  52. package/dist/cjs/{valid-credit-card-number-rule-c854bed9.js → valid-credit-card-number-rule-41a8b51b.js} +1 -1
  53. package/dist/cjs/vega-accordion.cjs.entry.js +23 -32
  54. package/dist/cjs/vega-app-footer.cjs.entry.js +3 -3
  55. package/dist/cjs/vega-app-header-button.cjs.entry.js +47 -38
  56. package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
  57. package/dist/cjs/vega-banner.cjs.entry.js +15 -13
  58. package/dist/cjs/vega-bar-chart.cjs.entry.js +3 -3
  59. package/dist/cjs/vega-box.cjs.entry.js +18 -33
  60. package/dist/cjs/vega-brand-logo.cjs.entry.js +7 -5
  61. package/dist/cjs/vega-breadcrumb.cjs.entry.js +14 -13
  62. package/dist/cjs/vega-button-circle.cjs.entry.js +37 -32
  63. package/dist/cjs/vega-button-group_2.cjs.entry.js +15 -15
  64. package/dist/cjs/vega-button-link.cjs.entry.js +15 -14
  65. package/dist/cjs/vega-button.cjs.entry.js +21 -30
  66. package/dist/cjs/vega-calendar_4.cjs.entry.js +48 -45
  67. package/dist/cjs/vega-card.cjs.entry.js +9 -28
  68. package/dist/cjs/vega-carousel.cjs.entry.js +15 -26
  69. package/dist/cjs/vega-checkbox_2.cjs.entry.js +22 -20
  70. package/dist/cjs/vega-chip.cjs.entry.js +22 -33
  71. package/dist/cjs/vega-code-block.cjs.entry.js +658 -2709
  72. package/dist/cjs/vega-color-picker.cjs.entry.js +15 -12
  73. package/dist/cjs/vega-combo-box.cjs.entry.js +29 -28
  74. package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
  75. package/dist/cjs/vega-date-picker_2.cjs.entry.js +78 -59
  76. package/dist/cjs/vega-dialog-controller-03ef4d9a.js +84 -0
  77. package/dist/cjs/vega-dialog_2.cjs.entry.js +37 -44
  78. package/dist/cjs/vega-divider.cjs.entry.js +12 -30
  79. package/dist/cjs/vega-dropdown_5.cjs.entry.js +49 -55
  80. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  81. package/dist/cjs/{dom-node-subject-observer-factory-b5e71bf6.js → vega-event-id-ee01d8dd.js} +0 -139
  82. package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
  83. package/dist/cjs/vega-field-label.cjs.entry.js +9 -8
  84. package/dist/cjs/vega-file-uploader.cjs.entry.js +28 -23
  85. package/dist/cjs/vega-flag-icon.cjs.entry.js +13 -27
  86. package/dist/cjs/vega-flex.cjs.entry.js +11 -28
  87. package/dist/cjs/vega-font.cjs.entry.js +12 -29
  88. package/dist/cjs/vega-form.cjs.entry.js +24 -22
  89. package/dist/cjs/vega-grid.cjs.entry.js +9 -28
  90. package/dist/cjs/vega-hint.cjs.entry.js +1 -1
  91. package/dist/cjs/vega-icon.cjs.entry.js +18 -31
  92. package/dist/cjs/vega-image-uploader.cjs.entry.js +34 -37
  93. package/dist/cjs/vega-input-credit-card.cjs.entry.js +31 -27
  94. package/dist/cjs/vega-input-numeric.cjs.entry.js +24 -22
  95. package/dist/cjs/vega-input-passcode.cjs.entry.js +26 -24
  96. package/dist/cjs/vega-input-phone-number.cjs.entry.js +4764 -5600
  97. package/dist/cjs/vega-input-range.cjs.entry.js +22 -20
  98. package/dist/cjs/vega-input-select.cjs.entry.js +41 -46
  99. package/dist/cjs/vega-input.cjs.entry.js +43 -31
  100. package/dist/cjs/vega-item-toggle.cjs.entry.js +8 -7
  101. package/dist/cjs/vega-left-nav_5.cjs.entry.js +38 -40
  102. package/dist/cjs/vega-line-chart.cjs.entry.js +326 -24
  103. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +16 -32
  104. package/dist/cjs/vega-page-notification_2.cjs.entry.js +5 -4
  105. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +12 -12
  106. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +9 -10
  107. package/dist/cjs/vega-pagination.cjs.entry.js +28 -38
  108. package/dist/cjs/vega-pie-chart.cjs.entry.js +6 -89
  109. package/dist/cjs/vega-popover_2.cjs.entry.js +21 -31
  110. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +66 -39
  111. package/dist/cjs/vega-radio_2.cjs.entry.js +25 -23
  112. package/dist/cjs/vega-rich-text-content.cjs.entry.js +36 -20
  113. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +58 -55
  114. package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
  115. package/dist/cjs/vega-segment-control.cjs.entry.js +10 -8
  116. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +25 -32
  117. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +22 -20
  118. package/dist/cjs/vega-sidenav_3.cjs.entry.js +34 -40
  119. package/dist/cjs/vega-signature-capture.cjs.entry.js +27 -31
  120. package/dist/cjs/vega-skeleton.cjs.entry.js +1 -1
  121. package/dist/cjs/vega-slot-container.cjs.entry.js +1 -1
  122. package/dist/cjs/vega-stepper.cjs.entry.js +23 -21
  123. package/dist/cjs/vega-tab-group_2.cjs.entry.js +15 -14
  124. package/dist/cjs/vega-table_11.cjs.entry.js +67 -68
  125. package/dist/cjs/vega-text.cjs.entry.js +4 -3
  126. package/dist/cjs/vega-textarea.cjs.entry.js +22 -20
  127. package/dist/cjs/vega-time-picker_2.cjs.entry.js +35 -41
  128. package/dist/cjs/vega-toggle-switch.cjs.entry.js +15 -12
  129. package/dist/cjs/vega-tooltip_2.cjs.entry.js +17 -28
  130. package/dist/cjs/vega.cjs.js +26 -23
  131. package/dist/cjs/{index-95fca64f.js → wait-for-component-did-render-70a01bf9.js} +1 -12
  132. package/dist/cjs/y-axis-input-processor-54a26515.js +832 -0
  133. package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +1 -1
  134. package/dist/collection/components/vega-accordion/vega-accordion.css +5 -0
  135. package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +17 -2
  136. package/dist/collection/components/vega-box/slimmers/controllers/vega-box-responsive-style-controller.js +2 -1
  137. package/dist/collection/components/vega-box/slimmers/controllers/vega-box-state-styles-controller.js +2 -1
  138. package/dist/collection/components/vega-button/vega-button.js +2 -1
  139. package/dist/collection/components/vega-button-circle/vega-button-circle.js +19 -4
  140. package/dist/collection/components/vega-button-link/vega-button-link.css +1 -1
  141. package/dist/collection/components/vega-button-link/vega-button-link.js +2 -1
  142. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/base-repeat-pattern.js +1 -1
  143. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-daily-repeat-pattern.js +1 -1
  144. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-monthly-repeat-pattern.js +1 -1
  145. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-weekly-repeat-pattern.js +1 -1
  146. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-yearly-repeat-pattern.js +1 -1
  147. package/dist/collection/components/vega-code-block/slimmers/controllers/prism-code-highlight-parse-controller.js +5 -14
  148. package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.js +2 -2
  149. package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.js +1 -1
  150. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +1 -1
  151. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +16 -2
  152. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +184 -207
  153. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +32 -0
  154. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-search-controller.js +2 -2
  155. package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +2 -2
  156. package/dist/collection/components/vega-dropdown/vega-dropdown-group/slimmers/renderers/vega-dropdown-group-renderer.js +3 -3
  157. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +6 -4
  158. package/dist/collection/components/vega-icon/vega-icon.js +2 -1
  159. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.js +10 -2
  160. package/dist/collection/components/vega-input-phone-number/slimmers/controllers/country-select-controller.js +1 -1
  161. package/dist/collection/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.js +1 -1
  162. package/dist/collection/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.js +2 -2
  163. package/dist/collection/components/vega-input-phone-number/slimmers/renderers/phone-number-input-renderer.js +1 -1
  164. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +4 -4
  165. package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +2 -2
  166. package/dist/collection/components/vega-pagination/vega-pagination.js +1 -1
  167. package/dist/collection/components/vega-progress-tracker/slimmers/controllers/dto/internal-progress-tracker-step.js +30 -6
  168. package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-steps-controller.js +1 -1
  169. package/dist/collection/components/vega-progress-tracker/slimmers/renderers/vega-progress-tracker-renderer.js +8 -1
  170. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.js +27 -0
  171. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.css +12 -0
  172. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +8 -3
  173. package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +15 -0
  174. package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +1 -1
  175. package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +11 -0
  176. package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +15 -1
  177. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +2 -0
  178. package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +0 -11
  179. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.js +23 -23
  180. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-extension.js +0 -10
  181. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.js +7 -17
  182. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.js +12 -16
  183. package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.js +31 -0
  184. package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.test.js +19 -0
  185. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +1 -1
  186. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +1 -1
  187. package/dist/collection/components/vega-rich-text-editor/test/extensions/extension-test-utils.js +41 -0
  188. package/dist/collection/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.js +2 -1
  189. package/dist/collection/components/vega-table/interface.js +3 -0
  190. package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.js +1 -1
  191. package/dist/collection/global/scripts/before-vega-load.js +4 -3
  192. package/dist/collection/helpers/calendar/calendar-date.js +1 -1
  193. package/dist/collection/helpers/calendar/calendar-event.js +1 -1
  194. package/dist/collection/helpers/calendar/calendar-time.js +1 -1
  195. package/dist/collection/helpers/chart/input-processors/format-time-positions-input-processor.js +2 -2
  196. package/dist/collection/helpers/chart/input-processors/pie-chart-arc-path-input-processor.js +1 -1
  197. package/dist/collection/helpers/chart/input-processors/x-axis-input-processor.js +5 -3
  198. package/dist/collection/helpers/chart/input-processors/x-axis-label-formatter-input-processor.js +2 -1
  199. package/dist/collection/helpers/chart/input-processors/y-axis-input-processor.js +7 -5
  200. package/dist/collection/helpers/chart/interacting-entry-generator/arc-path-hover-generator.js +1 -1
  201. package/dist/collection/helpers/chart/interacting-entry-generator/pie-legend-hover-generator.js +1 -1
  202. package/dist/collection/helpers/chart/renderers/canvas-renderer.js +1 -1
  203. package/dist/collection/helpers/chart/renderers/svg-renderer.js +1 -1
  204. package/dist/collection/helpers/chart/test/drawers/arc-path-drawer.test.js +1 -1
  205. package/dist/collection/helpers/chart/test/input-processors/format-time-positions-input-processor.test.js +1 -1
  206. package/dist/collection/helpers/chart/test/input-processors/sort-positions-input-processor.test.js +1 -1
  207. package/dist/collection/helpers/chart/test/input-processors/x-axis-input-processor.test.js +39 -0
  208. package/dist/collection/helpers/chart/test/input-processors/x-axis-label-formatter-input-processor.test.js +61 -14
  209. package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.js +39 -0
  210. package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.test.js +14 -0
  211. package/dist/collection/helpers/chart/test/renderers/svg-renderer.test.js +1 -1
  212. package/dist/collection/helpers/code-format/test/code-formatter.test.js +1 -1
  213. package/dist/collection/helpers/common/index.js +2 -37
  214. package/dist/collection/helpers/common/test/wait-for-component-did-render.test.js +67 -0
  215. package/dist/collection/helpers/common/test/wait-for-vega-handler.test.js +2 -2
  216. package/dist/collection/helpers/common/wait-for-component-did-render.js +27 -0
  217. package/dist/collection/helpers/common/wait-for-vega-handler.js +12 -1
  218. package/dist/collection/helpers/feature-control/feature-flags-map.js +6 -0
  219. package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-border-radius-style-formatter.js +1 -1
  220. package/dist/collection/helpers/public-api.js +0 -2
  221. package/dist/collection/helpers/slimmers/component-global-style-slimmer.js +2 -1
  222. package/dist/collection/helpers/slimmers/field-error-ui-controller-slimmer.js +3 -4
  223. package/dist/collection/helpers/slimmers/form-field-message-translator.js +1 -1
  224. package/dist/collection/helpers/slimmers/global/vega-translate-observer-slimmer.js +1 -1
  225. package/dist/collection/helpers/slimmers/global/vega-watch-method-cancel-slimmer.js +1 -1
  226. package/dist/collection/helpers/slimmers/mutation-observer/aria-attributes-value-mapper.js +132 -0
  227. package/dist/collection/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.js +196 -0
  228. package/dist/collection/helpers/slimmers/position-calculation/base-position-calculation-strategy.js +162 -151
  229. package/dist/collection/helpers/slimmers/position-calculation/position-calculation-controller.js +9 -0
  230. package/dist/collection/helpers/slimmers/position-calculation/screen-position-calculation-strategy.js +112 -1
  231. package/dist/collection/helpers/slimmers/position-calculation/screen-scroll-position-update.js +53 -0
  232. package/dist/collection/helpers/slimmers/position-calculation/test/screen-position-calculation-strategy.test.js +103 -6
  233. package/dist/collection/helpers/slimmers/string-input-formatter-slimmer.js +1 -1
  234. package/dist/collection/helpers/slimmers/translation/translation-slimmer.js +1 -1
  235. package/dist/collection/helpers/theme/controllers/brand-style-controller.js +3 -1
  236. package/dist/collection/helpers/theme/controllers/color-schema-overriding-controller.js +8 -6
  237. package/dist/collection/helpers/theme/controllers/dark-mode-style-controller.js +3 -1
  238. package/dist/collection/helpers/theme/internal-theme-manager.js +2 -1
  239. package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +1 -2
  240. package/dist/collection/helpers/ui/element-appender.js +4 -5
  241. package/dist/collection/helpers/ui/test/element-appender.test.js +66 -17
  242. package/dist/collection/helpers/validator/rules/valid-phone-number-rule.js +1 -1
  243. package/dist/collection/helpers/validator/test/rules/valid-phone-number-rule.test.js +10 -0
  244. package/dist/collection/index.js +2 -0
  245. package/dist/collection/polyfill/d3/d3-array-polyfill.js +89 -0
  246. package/dist/collection/polyfill/d3/d3-axis-polyfill.js +195 -0
  247. package/dist/collection/polyfill/d3/d3-scale-polyfill.js +582 -0
  248. package/dist/collection/polyfill/d3/d3-selection-polyfill.js +274 -0
  249. package/dist/collection/polyfill/d3/d3-shape-polyfill.js +252 -0
  250. package/dist/collection/polyfill/d3/d3-time-format-polyfill.js +207 -0
  251. package/dist/collection/polyfill/d3/d3-time-polyfill.js +99 -0
  252. package/dist/collection/polyfill/d3/index.js +31 -0
  253. package/dist/collection/polyfill/d3/test/d3-array-polyfill.test.js +72 -0
  254. package/dist/collection/polyfill/d3/test/d3-axis-polyfill.test.js +171 -0
  255. package/dist/collection/polyfill/d3/test/d3-integration.test.js +137 -0
  256. package/dist/collection/polyfill/d3/test/d3-scale-polyfill.test.js +382 -0
  257. package/dist/collection/polyfill/d3/test/d3-selection-polyfill.test.js +239 -0
  258. package/dist/collection/polyfill/d3/test/d3-shape-polyfill.test.js +225 -0
  259. package/dist/collection/polyfill/d3/test/d3-time-format-polyfill.test.js +162 -0
  260. package/dist/collection/polyfill/d3/test/d3-time-polyfill.test.js +76 -0
  261. package/dist/collection/polyfill/d3/test/index.test.js +78 -0
  262. package/dist/collection/polyfill/libphonenumber/as-you-type.js +405 -0
  263. package/dist/collection/polyfill/libphonenumber/format-helpers.js +186 -0
  264. package/dist/collection/polyfill/libphonenumber/index.js +22 -0
  265. package/dist/collection/polyfill/libphonenumber/metadata.js +150 -0
  266. package/dist/collection/polyfill/libphonenumber/metadata.json.js +3900 -0
  267. package/dist/collection/polyfill/libphonenumber/parse-phone-number.js +127 -0
  268. package/dist/collection/polyfill/libphonenumber/phone-number.js +38 -0
  269. package/dist/collection/polyfill/libphonenumber/test/as-you-type.test.js +309 -0
  270. package/dist/collection/polyfill/libphonenumber/test/format-helpers.test.js +192 -0
  271. package/dist/collection/polyfill/libphonenumber/test/index.test.js +16 -0
  272. package/dist/collection/polyfill/libphonenumber/test/metadata.test.js +196 -0
  273. package/dist/collection/polyfill/libphonenumber/test/parse-phone-number.test.js +218 -0
  274. package/dist/collection/polyfill/libphonenumber/test/phone-number.test.js +56 -0
  275. package/dist/collection/polyfill/libphonenumber/types.js +23 -0
  276. package/dist/collection/polyfill/prism/index.js +2 -0
  277. package/dist/collection/polyfill/prism/languages/css.js +86 -0
  278. package/dist/collection/polyfill/prism/languages/javascript.js +96 -0
  279. package/dist/collection/polyfill/prism/languages/jsx.js +46 -0
  280. package/dist/collection/polyfill/prism/languages/language-registry.js +41 -0
  281. package/dist/collection/polyfill/prism/languages/markup.js +71 -0
  282. package/dist/collection/polyfill/prism/languages/tsx.js +10 -0
  283. package/dist/collection/polyfill/prism/languages/typescript.js +64 -0
  284. package/dist/collection/polyfill/prism/test/css.test.js +61 -0
  285. package/dist/collection/polyfill/prism/test/javascript.test.js +113 -0
  286. package/dist/collection/polyfill/prism/test/jsx.test.js +48 -0
  287. package/dist/collection/polyfill/prism/test/language-registry.test.js +77 -0
  288. package/dist/collection/polyfill/prism/test/markup.test.js +57 -0
  289. package/dist/collection/polyfill/prism/test/test-utils.js +22 -0
  290. package/dist/collection/polyfill/prism/test/tokenizer.test.js +180 -0
  291. package/dist/collection/polyfill/prism/test/tsx.test.js +87 -0
  292. package/dist/collection/polyfill/prism/test/typescript.test.js +86 -0
  293. package/dist/collection/polyfill/prism/tokenizer.js +242 -0
  294. package/dist/collection/polyfill/tinycolor/tinycolor-polyfill.js +320 -0
  295. package/dist/collection/polyfill/tinycolor/tinycolor-polyfill.test.js +361 -0
  296. package/dist/collection/types/ui.type.js +12 -0
  297. package/dist/collection/utils/e2e-utils.js +10 -3
  298. package/dist/collection/utils/sanitize/constants/tag-sets.js +5 -0
  299. package/dist/collection/utils/sanitize/core/html-sanitizer.js +39 -0
  300. package/dist/collection/utils/sanitize/core/sanitize-strategy.js +62 -0
  301. package/dist/collection/utils/sanitize/core/types.js +4 -0
  302. package/dist/collection/utils/sanitize/index.js +12 -0
  303. package/dist/collection/utils/sanitize/strategies/empty-sanitize-strategy.js +17 -0
  304. package/dist/collection/utils/sanitize/strategies/index.js +3 -0
  305. package/dist/collection/utils/sanitize/strategies/label-sanitize-strategy.js +13 -0
  306. package/dist/collection/utils/sanitize/strategies/style-sanitize-strategy.js +50 -0
  307. package/dist/collection/utils/sanitize/test/empty-strategy.test.js +12 -0
  308. package/dist/collection/utils/sanitize/test/html-sanitizer.test.js +57 -0
  309. package/dist/collection/utils/sanitize/test/label-strategy.test.js +56 -0
  310. package/dist/collection/utils/sanitize/test/sanitize-strategy.test.js +85 -0
  311. package/dist/collection/utils/sanitize/test/sanitize.test.js +22 -0
  312. package/dist/collection/utils/sanitize/test/serialize-fragment.test.js +25 -0
  313. package/dist/collection/utils/sanitize/test/style-strategy.test.js +45 -0
  314. package/dist/collection/utils/sanitize/utils/serialize-fragment.js +17 -0
  315. package/dist/esm/{app-globals-2ac60ff5.js → app-globals-32055795.js} +12 -16
  316. package/dist/esm/aria-attributes-value-mapper-d4fef46a.js +134 -0
  317. package/dist/esm/breakpoints-56e5407b.js +53 -0
  318. package/dist/esm/{child-nodes-event-prevent-slimmer-e662bee2.js → child-nodes-event-prevent-slimmer-331312b8.js} +2 -2
  319. package/dist/esm/{child-nodes-notify-observer-slimmer-b676cd2b.js → child-nodes-notify-observer-slimmer-541dd6a4.js} +1 -1
  320. package/dist/esm/{code-block-8ee34ab6.js → code-block-b6247a45.js} +7 -7
  321. package/dist/esm/{component-global-style-slimmer-08046b38.js → component-global-style-slimmer-ac703085.js} +2 -1
  322. package/dist/esm/{component-usage-runtime-metrics-a84cc93e.js → component-usage-runtime-metrics-46020a03.js} +1 -1
  323. package/dist/esm/{component-value-history-controller-slimmer.abstract-a61bf821.js → component-value-history-controller-slimmer.abstract-2bb8533d.js} +6 -6
  324. package/dist/esm/{create-public-api-runtime-metrics-slimmer-bedf3a1e.js → create-public-api-runtime-metrics-slimmer-aaadaa08.js} +3 -38
  325. package/dist/esm/{dark-mode-style-controller-de88a117.js → dark-mode-style-controller-82e5c1c6.js} +292 -1254
  326. package/dist/esm/{date-required-rule-47ecc28f.js → date-required-rule-e771e7d9.js} +1 -1
  327. package/dist/esm/{design-token-007efbaa.js → design-token-5bc034e1.js} +2 -2
  328. package/dist/esm/dom-node-subject-observer-factory-82f346e3.js +138 -0
  329. package/dist/esm/{dto-renderer-manager-ee1a5864.js → dto-renderer-manager-6fd22ab7.js} +7 -7
  330. package/dist/esm/{element-appender-slimmer-35e26b5a.js → element-appender-slimmer-9ea377d0.js} +348 -165
  331. package/dist/esm/{event-emit-slimmer-09827cec.js → event-emit-slimmer-ffaecb9a.js} +2 -2
  332. package/dist/esm/{feature-flag-controller-51659753.js → feature-flag-controller-30f7b625.js} +7 -1
  333. package/dist/esm/{form-field-controller-slimmer-5d9dc384.js → form-field-controller-slimmer-5817d14d.js} +10 -11
  334. package/dist/esm/{internal-icon-manager-f0486245.js → icon-manager-539d7cf7.js} +2 -52
  335. package/dist/esm/{image-annotation-action-285d432e.js → image-annotation-action-6701b4c9.js} +6 -5
  336. package/dist/esm/index-3b327f29.js +215 -0
  337. package/dist/esm/{index-e9da316f.js → index-bfc6dfa2.js} +13 -1
  338. package/dist/esm/index.js +32 -29
  339. package/dist/esm/{inject-keyboard-manager-83d76ff5.js → inject-keyboard-manager-78730062.js} +1 -1
  340. package/dist/esm/internal-icon-manager-bd80b3bb.js +53 -0
  341. package/dist/esm/{translation-96e5debd.js → internal-translation-controller-911515f9.js} +1 -93
  342. package/dist/esm/{internal-vega-event-manager-efb6786e.js → internal-vega-event-manager-32a3d848.js} +1 -1
  343. package/dist/esm/internal-vega-z-index-manager-7d2b54c3.js +178 -0
  344. package/dist/esm/{keyboard-manager-c92808d8.js → keyboard-manager-38934f94.js} +2 -2
  345. package/dist/esm/{keyboard-manager-slimmer-79c78ce8.js → keyboard-manager-slimmer-9984d922.js} +1 -1
  346. package/dist/esm/legend-input-processor-122008c5.js +2116 -0
  347. package/dist/esm/loader.js +27 -24
  348. package/dist/esm/misc-9fdbcfbb.js +37 -0
  349. package/dist/esm/{month-view-generator-16192182.js → month-view-generator-eaf9029c.js} +1 -1
  350. package/dist/esm/{page-resize-observer-slimmer-8744cb44.js → page-resize-observer-slimmer-d6af0d86.js} +2 -52
  351. package/dist/esm/{public-rules-724873f5.js → public-rules-25cc3a39.js} +13 -14
  352. package/dist/esm/{range-5257c062.js → range-663f44dc.js} +2 -2
  353. package/dist/esm/{responsive-format-facade-28ee2dbd.js → responsive-format-facade-aa705823.js} +3 -12
  354. package/dist/esm/{rich-text-editor-required-rule-873e2e67.js → rich-text-editor-required-rule-a238b862.js} +1 -1
  355. package/dist/esm/{string-format-strategy.abstract-fc60db79.js → string-format-strategy.abstract-713fba36.js} +1 -1
  356. package/dist/esm/{string-input-formatter-slimmer-ee32b1fd.js → string-input-formatter-slimmer-5b413ff9.js} +4 -4
  357. package/dist/esm/{string-mask-strategy-0b0accaa.js → string-mask-strategy-6beaf664.js} +2 -2
  358. package/dist/esm/{style-formatter-314b37f3.js → style-formatter-28138f5c.js} +2 -2
  359. package/dist/esm/{sub-state-notify-slimmer-4453047a.js → sub-state-notify-slimmer-5133f1a8.js} +2 -2
  360. package/dist/esm/{sub-state-observer-slimmer-202ec7dc.js → sub-state-observer-slimmer-478c9f41.js} +3 -3
  361. package/dist/esm/{time-required-rule-5fa43804.js → time-required-rule-e4138a76.js} +1 -1
  362. package/dist/esm/{function-extension-e8c0e43e.js → token-extension-73e4460a.js} +609 -476
  363. package/dist/esm/{translation-slimmer-c936cb1b.js → translation-slimmer-2394b173.js} +1 -1
  364. package/dist/esm/{type-guard-c65a227d.js → type-guard-f50e34d6.js} +1 -1
  365. package/dist/esm/{ui-bb99c0c2.js → ui-ee31416b.js} +12 -0
  366. package/dist/esm/{valid-credit-card-number-rule-666c415d.js → valid-credit-card-number-rule-22ce81db.js} +1 -1
  367. package/dist/esm/vega-accordion.entry.js +21 -30
  368. package/dist/esm/vega-app-footer.entry.js +3 -3
  369. package/dist/esm/vega-app-header-button.entry.js +38 -29
  370. package/dist/esm/vega-backdrop.entry.js +2 -2
  371. package/dist/esm/vega-banner.entry.js +12 -10
  372. package/dist/esm/vega-bar-chart.entry.js +3 -3
  373. package/dist/esm/vega-box.entry.js +14 -29
  374. package/dist/esm/vega-brand-logo.entry.js +7 -5
  375. package/dist/esm/vega-breadcrumb.entry.js +11 -10
  376. package/dist/esm/vega-button-circle.entry.js +36 -31
  377. package/dist/esm/vega-button-group_2.entry.js +12 -12
  378. package/dist/esm/vega-button-link.entry.js +13 -12
  379. package/dist/esm/vega-button.entry.js +19 -28
  380. package/dist/esm/vega-calendar_4.entry.js +23 -20
  381. package/dist/esm/vega-card.entry.js +9 -28
  382. package/dist/esm/vega-carousel.entry.js +14 -25
  383. package/dist/esm/vega-checkbox_2.entry.js +19 -17
  384. package/dist/esm/vega-chip.entry.js +18 -29
  385. package/dist/esm/vega-code-block.entry.js +653 -2704
  386. package/dist/esm/vega-color-picker.entry.js +15 -12
  387. package/dist/esm/vega-combo-box.entry.js +22 -21
  388. package/dist/esm/vega-counter-badge.entry.js +1 -1
  389. package/dist/esm/vega-date-picker_2.entry.js +59 -40
  390. package/dist/esm/vega-dialog-controller-bbb2fc52.js +82 -0
  391. package/dist/esm/vega-dialog_2.entry.js +23 -30
  392. package/dist/esm/vega-divider.entry.js +11 -29
  393. package/dist/esm/vega-dropdown_5.entry.js +39 -45
  394. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  395. package/dist/esm/vega-event-id-38aa77a0.js +113 -0
  396. package/dist/esm/vega-field-error.entry.js +1 -1
  397. package/dist/esm/vega-field-label.entry.js +7 -6
  398. package/dist/esm/vega-file-uploader.entry.js +19 -14
  399. package/dist/esm/vega-flag-icon.entry.js +12 -26
  400. package/dist/esm/vega-flex.entry.js +11 -28
  401. package/dist/esm/vega-font.entry.js +11 -28
  402. package/dist/esm/vega-form.entry.js +20 -18
  403. package/dist/esm/vega-grid.entry.js +9 -28
  404. package/dist/esm/vega-hint.entry.js +1 -1
  405. package/dist/esm/vega-icon.entry.js +15 -28
  406. package/dist/esm/vega-image-uploader.entry.js +28 -31
  407. package/dist/esm/vega-input-credit-card.entry.js +25 -21
  408. package/dist/esm/vega-input-numeric.entry.js +21 -19
  409. package/dist/esm/vega-input-passcode.entry.js +20 -18
  410. package/dist/esm/vega-input-phone-number.entry.js +4760 -5596
  411. package/dist/esm/vega-input-range.entry.js +19 -17
  412. package/dist/esm/vega-input-select.entry.js +27 -32
  413. package/dist/esm/vega-input.entry.js +33 -21
  414. package/dist/esm/{vega-internal-event-id-4a06d705.js → vega-internal-event-id-799d012e.js} +1 -1
  415. package/dist/esm/vega-item-toggle.entry.js +6 -5
  416. package/dist/esm/vega-left-nav_5.entry.js +29 -31
  417. package/dist/esm/vega-line-chart.entry.js +312 -10
  418. package/dist/esm/vega-loader-wrapper_2.entry.js +13 -29
  419. package/dist/esm/vega-page-notification_2.entry.js +4 -3
  420. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +9 -9
  421. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +7 -8
  422. package/dist/esm/vega-pagination.entry.js +20 -30
  423. package/dist/esm/vega-pie-chart.entry.js +6 -89
  424. package/dist/esm/vega-popover_2.entry.js +20 -30
  425. package/dist/esm/vega-progress-tracker_2.entry.js +64 -37
  426. package/dist/esm/vega-radio_2.entry.js +21 -19
  427. package/dist/esm/vega-rich-text-content.entry.js +32 -16
  428. package/dist/esm/vega-rich-text-editor_4.entry.js +33 -30
  429. package/dist/esm/vega-section-title.entry.js +1 -1
  430. package/dist/esm/vega-segment-control.entry.js +9 -7
  431. package/dist/esm/vega-selection-chip_2.entry.js +22 -29
  432. package/dist/esm/vega-selection-tile_2.entry.js +19 -17
  433. package/dist/esm/vega-sidenav_3.entry.js +24 -30
  434. package/dist/esm/vega-signature-capture.entry.js +24 -28
  435. package/dist/esm/vega-skeleton.entry.js +1 -1
  436. package/dist/esm/vega-slot-container.entry.js +1 -1
  437. package/dist/esm/vega-stepper.entry.js +18 -16
  438. package/dist/esm/vega-tab-group_2.entry.js +11 -10
  439. package/dist/esm/vega-table_11.entry.js +28 -29
  440. package/dist/esm/vega-text.entry.js +4 -3
  441. package/dist/esm/vega-textarea.entry.js +18 -16
  442. package/dist/esm/vega-time-picker_2.entry.js +26 -32
  443. package/dist/esm/vega-toggle-switch.entry.js +15 -12
  444. package/dist/esm/vega-tooltip_2.entry.js +18 -29
  445. package/dist/esm/vega.js +27 -24
  446. package/dist/esm/{index-51a7da7f.js → wait-for-component-did-render-b08ef07b.js} +3 -13
  447. package/dist/esm/y-axis-input-processor-c7e05353.js +826 -0
  448. package/dist/sri/vega-sri-manifest.json +425 -409
  449. package/dist/types/components/vega-app-footer/types.d.ts +18 -0
  450. package/dist/types/components/vega-app-header-button/types.d.ts +31 -0
  451. package/dist/types/components/vega-app-header-button/vega-app-header-button.d.ts +2 -0
  452. package/dist/types/components/vega-banner/types.d.ts +9 -0
  453. package/dist/types/components/vega-box/interface.d.ts +46 -0
  454. package/dist/types/components/vega-breadcrumb/types.d.ts +28 -0
  455. package/dist/types/components/vega-button/types.d.ts +12 -0
  456. package/dist/types/components/vega-button-circle/types.d.ts +9 -0
  457. package/dist/types/components/vega-button-circle/vega-button-circle.d.ts +2 -0
  458. package/dist/types/components/vega-button-group/types.d.ts +48 -0
  459. package/dist/types/components/vega-button-link/types.d.ts +3 -0
  460. package/dist/types/components/vega-calendar/types.d.ts +189 -0
  461. package/dist/types/components/vega-calendar/vega-calendar-event-preview/types.d.ts +6 -0
  462. package/dist/types/components/vega-chart/vega-bar-chart/types.d.ts +3 -0
  463. package/dist/types/components/vega-chip/types.d.ts +12 -0
  464. package/dist/types/components/vega-code-block/slimmers/controllers/prism-code-highlight-parse-controller.d.ts +2 -10
  465. package/dist/types/components/vega-combo-box/types.d.ts +6 -0
  466. package/dist/types/components/vega-date-picker/types.d.ts +53 -0
  467. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +3 -0
  468. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +9 -1
  469. package/dist/types/components/vega-dialog/types.d.ts +5 -0
  470. package/dist/types/components/vega-divider/interface.d.ts +18 -0
  471. package/dist/types/components/vega-dropdown/types.d.ts +30 -0
  472. package/dist/types/components/vega-dropdown/vega-dropdown-item/types.d.ts +9 -1
  473. package/dist/types/components/vega-field-error/types.d.ts +12 -0
  474. package/dist/types/components/vega-field-label/types.d.ts +16 -0
  475. package/dist/types/components/vega-file-uploader/types.d.ts +12 -0
  476. package/dist/types/components/vega-font/types.d.ts +3 -0
  477. package/dist/types/components/vega-form/types.d.ts +45 -0
  478. package/dist/types/components/vega-image-uploader/types.d.ts +33 -1
  479. package/dist/types/components/vega-input/types.d.ts +31 -0
  480. package/dist/types/components/vega-input-phone-number/types.d.ts +15 -0
  481. package/dist/types/components/vega-input-range/types.d.ts +9 -0
  482. package/dist/types/components/vega-input-select/types.d.ts +45 -0
  483. package/dist/types/components/vega-item-toggle/types.d.ts +21 -0
  484. package/dist/types/components/vega-loading-indicator/types.d.ts +3 -0
  485. package/dist/types/components/vega-modal/types.d.ts +9 -0
  486. package/dist/types/components/vega-nav/interface.d.ts +108 -0
  487. package/dist/types/components/vega-page-notification/types.d.ts +15 -0
  488. package/dist/types/components/vega-pagination/types.d.ts +11 -0
  489. package/dist/types/components/vega-progress-tracker/slimmers/controllers/dto/internal-progress-tracker-step.d.ts +16 -4
  490. package/dist/types/components/vega-progress-tracker/type.d.ts +8 -0
  491. package/dist/types/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.d.ts +6 -0
  492. package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +2 -2
  493. package/dist/types/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +6 -0
  494. package/dist/types/components/vega-rich-text-editor/extensions/base-extension-renderer.d.ts +9 -1
  495. package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +9 -1
  496. package/dist/types/components/vega-rich-text-editor/extensions/functions/function-extension.d.ts +0 -7
  497. package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.d.ts +5 -10
  498. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-extension.d.ts +1 -5
  499. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.d.ts +3 -8
  500. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.d.ts +5 -9
  501. package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.d.ts +26 -0
  502. package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.test.d.ts +1 -0
  503. package/dist/types/components/vega-rich-text-editor/interface.d.ts +477 -2
  504. package/dist/types/components/vega-rich-text-editor/test/extensions/extension-test-utils.d.ts +21 -0
  505. package/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/types.d.ts +24 -0
  506. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/types.d.ts +24 -0
  507. package/dist/types/components/vega-segment-control/types.d.ts +18 -0
  508. package/dist/types/components/vega-selection-chip/interface.d.ts +12 -0
  509. package/dist/types/components/vega-selection-chip/vega-selection-chip-group/interface.d.ts +4 -0
  510. package/dist/types/components/vega-selection-tile/interface.d.ts +9 -0
  511. package/dist/types/components/vega-sidenav/types.d.ts +51 -0
  512. package/dist/types/components/vega-signature-capture/types.d.ts +29 -2
  513. package/dist/types/components/vega-skeleton/interface.d.ts +6 -0
  514. package/dist/types/components/vega-tab-group/types.d.ts +36 -0
  515. package/dist/types/components/vega-table/interface.d.ts +237 -20
  516. package/dist/types/components/vega-table/vega-table-expand-row/types.d.ts +6 -0
  517. package/dist/types/components/vega-table/vega-table-foot/types.d.ts +9 -0
  518. package/dist/types/components/vega-table/vega-table-foot-row/types.d.ts +9 -0
  519. package/dist/types/components/vega-table/vega-table-head/types.d.ts +9 -0
  520. package/dist/types/components/vega-table/vega-table-head-row/types.d.ts +12 -0
  521. package/dist/types/components/vega-table/vega-table-row/types.d.ts +18 -0
  522. package/dist/types/components/vega-text/types.d.ts +6 -0
  523. package/dist/types/components/vega-time-picker/types.d.ts +33 -0
  524. package/dist/types/components/vega-virtual-scroll/types.d.ts +30 -1
  525. package/dist/types/components.d.ts +24 -4
  526. package/dist/types/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.d.ts +1 -0
  527. package/dist/types/helpers/common/index.d.ts +2 -15
  528. package/dist/types/helpers/common/test/wait-for-component-did-render.test.d.ts +1 -0
  529. package/dist/types/helpers/common/wait-for-component-did-render.d.ts +8 -0
  530. package/dist/types/helpers/common/wait-for-vega-handler.d.ts +6 -15
  531. package/dist/types/helpers/feature-control/feature-flag.d.ts +2 -1
  532. package/dist/types/helpers/public-api.d.ts +0 -2
  533. package/dist/types/helpers/slimmers/mutation-observer/aria-attributes-value-mapper.d.ts +44 -0
  534. package/dist/types/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.d.ts +1 -0
  535. package/dist/types/helpers/slimmers/position-calculation/base-position-calculation-strategy.d.ts +57 -48
  536. package/dist/types/helpers/slimmers/position-calculation/position-calculation-controller.d.ts +5 -0
  537. package/dist/types/helpers/slimmers/position-calculation/screen-position-calculation-strategy.d.ts +41 -1
  538. package/dist/types/helpers/slimmers/position-calculation/screen-scroll-position-update.d.ts +39 -0
  539. package/dist/types/helpers/ui/element-appender.d.ts +0 -1
  540. package/dist/types/index.d.ts +2 -0
  541. package/dist/types/polyfill/d3/d3-array-polyfill.d.ts +48 -0
  542. package/dist/types/polyfill/d3/d3-axis-polyfill.d.ts +53 -0
  543. package/dist/types/polyfill/d3/d3-scale-polyfill.d.ts +42 -0
  544. package/dist/types/polyfill/d3/d3-selection-polyfill.d.ts +173 -0
  545. package/dist/types/polyfill/d3/d3-shape-polyfill.d.ts +129 -0
  546. package/dist/types/polyfill/d3/d3-time-format-polyfill.d.ts +28 -0
  547. package/dist/types/polyfill/d3/d3-time-polyfill.d.ts +68 -0
  548. package/dist/types/polyfill/d3/index.d.ts +27 -0
  549. package/dist/types/polyfill/d3/test/d3-array-polyfill.test.d.ts +1 -0
  550. package/dist/types/polyfill/d3/test/d3-axis-polyfill.test.d.ts +1 -0
  551. package/dist/types/polyfill/d3/test/d3-integration.test.d.ts +1 -0
  552. package/dist/types/polyfill/d3/test/d3-scale-polyfill.test.d.ts +1 -0
  553. package/dist/types/polyfill/d3/test/d3-selection-polyfill.test.d.ts +1 -0
  554. package/dist/types/polyfill/d3/test/d3-shape-polyfill.test.d.ts +1 -0
  555. package/dist/types/polyfill/d3/test/d3-time-format-polyfill.test.d.ts +1 -0
  556. package/dist/types/polyfill/d3/test/d3-time-polyfill.test.d.ts +1 -0
  557. package/dist/types/polyfill/d3/test/index.test.d.ts +1 -0
  558. package/dist/types/polyfill/libphonenumber/as-you-type.d.ts +154 -0
  559. package/dist/types/polyfill/libphonenumber/format-helpers.d.ts +64 -0
  560. package/dist/types/polyfill/libphonenumber/index.d.ts +22 -0
  561. package/dist/types/polyfill/libphonenumber/metadata.d.ts +45 -0
  562. package/dist/types/polyfill/libphonenumber/metadata.json.d.ts +470 -0
  563. package/dist/types/polyfill/libphonenumber/parse-phone-number.d.ts +26 -0
  564. package/dist/types/polyfill/libphonenumber/phone-number.d.ts +24 -0
  565. package/dist/types/polyfill/libphonenumber/test/as-you-type.test.d.ts +1 -0
  566. package/dist/types/polyfill/libphonenumber/test/format-helpers.test.d.ts +1 -0
  567. package/dist/types/polyfill/libphonenumber/test/index.test.d.ts +1 -0
  568. package/dist/types/polyfill/libphonenumber/test/metadata.test.d.ts +1 -0
  569. package/dist/types/polyfill/libphonenumber/test/parse-phone-number.test.d.ts +1 -0
  570. package/dist/types/polyfill/libphonenumber/test/phone-number.test.d.ts +1 -0
  571. package/dist/types/polyfill/libphonenumber/types.d.ts +77 -0
  572. package/dist/types/polyfill/prism/index.d.ts +3 -0
  573. package/dist/types/polyfill/prism/languages/css.d.ts +6 -0
  574. package/dist/types/polyfill/prism/languages/javascript.d.ts +7 -0
  575. package/dist/types/polyfill/prism/languages/jsx.d.ts +7 -0
  576. package/dist/types/polyfill/prism/languages/language-registry.d.ts +8 -0
  577. package/dist/types/polyfill/prism/languages/markup.d.ts +6 -0
  578. package/dist/types/polyfill/prism/languages/tsx.d.ts +7 -0
  579. package/dist/types/polyfill/prism/languages/typescript.d.ts +2 -0
  580. package/dist/types/polyfill/prism/test/css.test.d.ts +1 -0
  581. package/dist/types/polyfill/prism/test/javascript.test.d.ts +1 -0
  582. package/dist/types/polyfill/prism/test/jsx.test.d.ts +1 -0
  583. package/dist/types/polyfill/prism/test/language-registry.test.d.ts +1 -0
  584. package/dist/types/polyfill/prism/test/markup.test.d.ts +1 -0
  585. package/dist/types/polyfill/prism/test/test-utils.d.ts +10 -0
  586. package/dist/types/polyfill/prism/test/tokenizer.test.d.ts +1 -0
  587. package/dist/types/polyfill/prism/test/tsx.test.d.ts +1 -0
  588. package/dist/types/polyfill/prism/test/typescript.test.d.ts +1 -0
  589. package/dist/types/polyfill/prism/tokenizer.d.ts +17 -0
  590. package/dist/types/polyfill/prism/types.d.ts +25 -0
  591. package/dist/types/polyfill/tinycolor/tinycolor-polyfill.d.ts +149 -0
  592. package/dist/types/polyfill/tinycolor/tinycolor-polyfill.test.d.ts +1 -0
  593. package/dist/types/types/components.type.d.ts +5 -1
  594. package/dist/types/types/design-token.type.d.ts +36 -0
  595. package/dist/types/types/flag.type.d.ts +257 -3
  596. package/dist/types/types/general.d.ts +12 -0
  597. package/dist/types/types/ui.type.d.ts +372 -0
  598. package/dist/types/types/vega-chart.d.ts +292 -14
  599. package/dist/types/utils/e2e-utils.d.ts +2 -0
  600. package/dist/types/utils/sanitize/constants/tag-sets.d.ts +6 -0
  601. package/dist/types/utils/sanitize/core/html-sanitizer.d.ts +22 -0
  602. package/dist/types/utils/sanitize/core/sanitize-strategy.d.ts +27 -0
  603. package/dist/types/utils/sanitize/core/types.d.ts +13 -0
  604. package/dist/types/utils/sanitize/index.d.ts +12 -0
  605. package/dist/types/utils/sanitize/strategies/empty-sanitize-strategy.d.ts +14 -0
  606. package/dist/types/utils/sanitize/strategies/index.d.ts +3 -0
  607. package/dist/types/utils/sanitize/strategies/label-sanitize-strategy.d.ts +10 -0
  608. package/dist/types/utils/sanitize/strategies/style-sanitize-strategy.d.ts +24 -0
  609. package/dist/types/utils/sanitize/test/empty-strategy.test.d.ts +1 -0
  610. package/dist/types/utils/sanitize/test/html-sanitizer.test.d.ts +1 -0
  611. package/dist/types/utils/sanitize/test/label-strategy.test.d.ts +1 -0
  612. package/dist/types/utils/sanitize/test/sanitize-strategy.test.d.ts +1 -0
  613. package/dist/types/utils/sanitize/test/sanitize.test.d.ts +1 -0
  614. package/dist/types/utils/sanitize/test/serialize-fragment.test.d.ts +1 -0
  615. package/dist/types/utils/sanitize/test/style-strategy.test.d.ts +1 -0
  616. package/dist/types/utils/sanitize/utils/serialize-fragment.d.ts +12 -0
  617. package/dist/vega/index.esm.js +1 -1
  618. package/dist/vega/p-0037068c.entry.js +1 -0
  619. package/dist/vega/p-010ff53d.entry.js +1 -0
  620. package/dist/vega/p-021d4ae4.js +1 -0
  621. package/dist/vega/{p-66fa700b.js → p-02c9796a.js} +1 -1
  622. package/dist/vega/p-03004a05.entry.js +1 -0
  623. package/dist/vega/p-0572c393.entry.js +1 -0
  624. package/dist/vega/p-0a3a285b.entry.js +1 -0
  625. package/dist/vega/{p-e5af5a4d.entry.js → p-0b4880bd.entry.js} +1 -1
  626. package/dist/vega/p-0d4cb1c7.entry.js +1 -0
  627. package/dist/vega/{p-920719ad.js → p-0e679d8c.js} +1 -1
  628. package/dist/vega/p-100b44c3.entry.js +1 -0
  629. package/dist/vega/p-168bb296.entry.js +1 -0
  630. package/dist/vega/{p-e77a83e4.js → p-18e8d9b7.js} +1 -1
  631. package/dist/vega/p-1a011d47.entry.js +1 -0
  632. package/dist/vega/p-1a3236e7.entry.js +1 -0
  633. package/dist/vega/{p-c9b6b5a9.js → p-1a51bf6f.js} +1 -1
  634. package/dist/vega/{p-ad2055f4.entry.js → p-1deedff2.entry.js} +1 -1
  635. package/dist/vega/p-1f3cd061.entry.js +1 -0
  636. package/dist/vega/p-1fa0c7da.entry.js +1 -0
  637. package/dist/vega/p-22056609.entry.js +1 -0
  638. package/dist/vega/p-242fbcad.entry.js +1 -0
  639. package/dist/vega/p-2a10e2e5.js +1 -0
  640. package/dist/vega/p-2b142818.entry.js +1 -0
  641. package/dist/vega/p-2bb5a232.js +1 -0
  642. package/dist/vega/{p-e9b86dac.entry.js → p-2c1a85dd.entry.js} +1 -1
  643. package/dist/vega/p-2d69632d.js +1 -0
  644. package/dist/vega/p-31ac7386.js +1 -0
  645. package/dist/vega/p-33f9ad94.entry.js +1 -0
  646. package/dist/vega/p-34bcf4ed.entry.js +1 -0
  647. package/dist/vega/{p-4897bedd.entry.js → p-358b4a06.entry.js} +1 -1
  648. package/dist/vega/p-36a09524.entry.js +1 -0
  649. package/dist/vega/p-3afc025e.entry.js +1 -0
  650. package/dist/vega/p-3c05abd9.entry.js +1 -0
  651. package/dist/vega/p-3ce2b05c.entry.js +1 -0
  652. package/dist/vega/{p-ea04a387.entry.js → p-3f3c771a.entry.js} +1 -1
  653. package/dist/vega/{p-1f83cebf.js → p-415ffa35.js} +1 -1
  654. package/dist/vega/p-43ff48c0.entry.js +1 -0
  655. package/dist/vega/{p-d849e0f5.js → p-4415ad28.js} +1 -1
  656. package/dist/vega/{p-0575d22e.js → p-464559e3.js} +1 -1
  657. package/dist/vega/p-4742feef.entry.js +1 -0
  658. package/dist/vega/p-49845a91.js +1 -0
  659. package/dist/vega/p-4aa52ed2.entry.js +1 -0
  660. package/dist/vega/p-4aa94940.entry.js +1 -0
  661. package/dist/vega/p-4bee4202.entry.js +1 -0
  662. package/dist/vega/{p-e16b3adf.js → p-4bffdb28.js} +1 -1
  663. package/dist/vega/{p-a2aeb646.js → p-4ea30592.js} +1 -1
  664. package/dist/vega/p-50d074ed.entry.js +1 -0
  665. package/dist/vega/{p-0b38a01f.entry.js → p-51fcb07f.entry.js} +1 -1
  666. package/dist/vega/p-5485c387.entry.js +1 -0
  667. package/dist/vega/p-560d2f48.entry.js +1 -0
  668. package/dist/vega/p-5833f33b.entry.js +1 -0
  669. package/dist/vega/p-592296d7.entry.js +1 -0
  670. package/dist/vega/p-593e0f80.js +1 -0
  671. package/dist/vega/p-5a25014f.js +1 -0
  672. package/dist/vega/p-5cfce62d.entry.js +1 -0
  673. package/dist/vega/p-5eb7f382.js +1 -0
  674. package/dist/vega/p-5f377954.js +1 -1
  675. package/dist/vega/p-60f77f5f.entry.js +1 -0
  676. package/dist/vega/p-641cdb5c.entry.js +1 -0
  677. package/dist/vega/p-67745549.entry.js +1 -0
  678. package/dist/vega/{p-75f981ce.js → p-6b6f0fb4.js} +1 -1
  679. package/dist/vega/p-6d219c44.entry.js +1 -0
  680. package/dist/vega/p-70df91fb.entry.js +1 -0
  681. package/dist/vega/p-7425cedc.entry.js +1 -0
  682. package/dist/vega/p-781fd6e0.js +1 -0
  683. package/dist/vega/{p-5b71c85e.js → p-7c39ce96.js} +1 -1
  684. package/dist/vega/p-7d7aaff9.entry.js +1 -0
  685. package/dist/vega/{p-4dd6554e.entry.js → p-7f46cc1e.entry.js} +1 -1
  686. package/dist/vega/{p-badad9ed.js → p-81b044b9.js} +1 -1
  687. package/dist/vega/p-857069a5.entry.js +1 -0
  688. package/dist/vega/p-8ac2d165.js +1 -0
  689. package/dist/vega/p-8b5d3a52.js +1 -0
  690. package/dist/vega/{p-fff13ed1.entry.js → p-8b891f36.entry.js} +1 -1
  691. package/dist/vega/p-8e34b266.js +1 -0
  692. package/dist/vega/{p-dd11f735.js → p-9339c6c4.js} +1 -1
  693. package/dist/vega/p-9441f2ba.entry.js +1 -0
  694. package/dist/vega/p-95528b47.js +1 -0
  695. package/dist/vega/p-9fb877c1.entry.js +1 -0
  696. package/dist/vega/{p-6f8be8ea.js → p-a0b66c25.js} +1 -1
  697. package/dist/vega/p-a46e977b.entry.js +1 -0
  698. package/dist/vega/{p-d0e31633.js → p-a786259a.js} +1 -1
  699. package/dist/vega/p-a8792e3d.js +1 -0
  700. package/dist/vega/{p-60851f9d.js → p-aa1174dc.js} +1 -1
  701. package/dist/vega/p-ab834f06.js +1 -0
  702. package/dist/vega/p-ac82b9f9.entry.js +1 -0
  703. package/dist/vega/p-b1773281.entry.js +1 -0
  704. package/dist/vega/p-b201f379.js +1 -0
  705. package/dist/vega/p-b54dc37c.entry.js +1 -0
  706. package/dist/vega/p-b597393b.entry.js +1 -0
  707. package/dist/vega/p-b5f18f4b.entry.js +1 -0
  708. package/dist/vega/p-b7f3221f.js +1 -0
  709. package/dist/vega/p-be1a210b.js +1 -0
  710. package/dist/vega/p-bf6fc19f.entry.js +1 -0
  711. package/dist/vega/{p-691ba1ae.js → p-bff57aa4.js} +1 -1
  712. package/dist/vega/p-c165232c.entry.js +1 -0
  713. package/dist/vega/p-c292ade4.entry.js +1 -0
  714. package/dist/vega/p-c2d2faa0.js +1 -0
  715. package/dist/vega/p-c3d2f316.js +1 -0
  716. package/dist/vega/{p-671afda4.entry.js → p-c72e08c6.entry.js} +1 -1
  717. package/dist/vega/p-c801c85d.js +1 -0
  718. package/dist/vega/p-c8feb644.entry.js +1 -0
  719. package/dist/vega/p-cc5eaa1b.js +1 -0
  720. package/dist/vega/p-cccd7648.entry.js +1 -0
  721. package/dist/vega/p-cfecc1cb.entry.js +1 -0
  722. package/dist/vega/p-d07f5d5a.entry.js +1 -0
  723. package/dist/vega/p-d1cfe972.entry.js +1 -0
  724. package/dist/vega/p-d2ee5711.entry.js +1 -0
  725. package/dist/vega/p-d64fab3d.js +1 -0
  726. package/dist/vega/p-d78f6ede.js +1 -0
  727. package/dist/vega/p-d8180e42.entry.js +1 -0
  728. package/dist/vega/p-daa60a59.entry.js +1 -0
  729. package/dist/vega/p-dad3ba5f.js +1 -0
  730. package/dist/vega/p-db5fa164.entry.js +1 -0
  731. package/dist/vega/p-de64f6e6.js +1 -0
  732. package/dist/vega/p-e1fbfd20.js +1 -0
  733. package/dist/vega/p-e4917e76.js +1 -0
  734. package/dist/vega/{p-521d1d07.js → p-e52890db.js} +1 -1
  735. package/dist/vega/{p-1298b126.js → p-e632475e.js} +1 -1
  736. package/dist/vega/p-e6adf829.js +1 -0
  737. package/dist/vega/p-e6cf2ace.entry.js +1 -0
  738. package/dist/vega/p-e7fbef97.js +1 -0
  739. package/dist/vega/{p-77edf50c.js → p-e827d56d.js} +1 -1
  740. package/dist/vega/p-e8775a56.entry.js +1 -0
  741. package/dist/vega/p-f0e828d8.js +1 -0
  742. package/dist/vega/p-f2b0b58a.js +1 -0
  743. package/dist/vega/p-f3e6483c.js +1 -0
  744. package/dist/vega/p-f428086c.entry.js +1 -0
  745. package/dist/vega/p-fc9ac6e9.entry.js +1 -0
  746. package/dist/vega/p-ffd48e37.entry.js +1 -0
  747. package/dist/vega/vega.esm.js +1 -1
  748. package/package.json +3 -9
  749. package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
  750. package/dist/cjs/language-extension-8c4a56ff.js +0 -210
  751. package/dist/cjs/legend-input-processor-27c65353.js +0 -4759
  752. package/dist/cjs/sanitize-fb222510.js +0 -131
  753. package/dist/cjs/wait-for-vega-handler-5469ff80.js +0 -63
  754. package/dist/cjs/y-axis-input-processor-9fbfd5e7.js +0 -2302
  755. package/dist/collection/utils/sanitize.js +0 -126
  756. package/dist/collection/utils/test/sanitize.test.js +0 -65
  757. package/dist/esm/_commonjsHelpers-9943807e.js +0 -17
  758. package/dist/esm/dom-node-subject-observer-factory-064ee2b2.js +0 -250
  759. package/dist/esm/language-extension-29bf8acd.js +0 -207
  760. package/dist/esm/legend-input-processor-5ecae3a7.js +0 -4742
  761. package/dist/esm/sanitize-fd0cb40d.js +0 -129
  762. package/dist/esm/wait-for-vega-handler-c2c07ac3.js +0 -61
  763. package/dist/esm/y-axis-input-processor-bc54314a.js +0 -2290
  764. package/dist/types/utils/sanitize.d.ts +0 -71
  765. package/dist/vega/p-011b94b1.entry.js +0 -1
  766. package/dist/vega/p-012753b5.entry.js +0 -1
  767. package/dist/vega/p-024331ce.entry.js +0 -1
  768. package/dist/vega/p-08a90cc6.entry.js +0 -1
  769. package/dist/vega/p-0bb3be0b.entry.js +0 -1
  770. package/dist/vega/p-0ede1fea.entry.js +0 -1
  771. package/dist/vega/p-10ac8b57.js +0 -1
  772. package/dist/vega/p-112455b1.js +0 -1
  773. package/dist/vega/p-17c55205.entry.js +0 -1
  774. package/dist/vega/p-1e0d8228.entry.js +0 -1
  775. package/dist/vega/p-3353b3d7.js +0 -1
  776. package/dist/vega/p-365b1b35.entry.js +0 -1
  777. package/dist/vega/p-3ae9ee3d.entry.js +0 -1
  778. package/dist/vega/p-3af92370.entry.js +0 -1
  779. package/dist/vega/p-3bf66be2.js +0 -1
  780. package/dist/vega/p-3c5a28e4.entry.js +0 -1
  781. package/dist/vega/p-3e5f362f.js +0 -1
  782. package/dist/vega/p-430be941.js +0 -1
  783. package/dist/vega/p-43f585f7.entry.js +0 -1
  784. package/dist/vega/p-45296fd4.entry.js +0 -1
  785. package/dist/vega/p-46b077d9.js +0 -1
  786. package/dist/vega/p-476a173a.js +0 -1
  787. package/dist/vega/p-491618a6.entry.js +0 -1
  788. package/dist/vega/p-4a537391.entry.js +0 -1
  789. package/dist/vega/p-4aa893ef.entry.js +0 -1
  790. package/dist/vega/p-4c47e8bb.entry.js +0 -1
  791. package/dist/vega/p-4da75f2b.js +0 -1
  792. package/dist/vega/p-509eb52e.entry.js +0 -1
  793. package/dist/vega/p-5110ba73.entry.js +0 -1
  794. package/dist/vega/p-556f9a21.entry.js +0 -1
  795. package/dist/vega/p-55b54ba0.entry.js +0 -1
  796. package/dist/vega/p-5910be31.entry.js +0 -1
  797. package/dist/vega/p-5d676a94.js +0 -1
  798. package/dist/vega/p-5ea2e43c.entry.js +0 -1
  799. package/dist/vega/p-5efc6fe1.entry.js +0 -1
  800. package/dist/vega/p-64cd1931.entry.js +0 -1
  801. package/dist/vega/p-67fcf6f2.entry.js +0 -9
  802. package/dist/vega/p-68df4288.js +0 -1
  803. package/dist/vega/p-6a2205a1.entry.js +0 -1
  804. package/dist/vega/p-6a4277df.entry.js +0 -1
  805. package/dist/vega/p-6e136980.js +0 -1
  806. package/dist/vega/p-6fa8e231.entry.js +0 -1
  807. package/dist/vega/p-7045e84c.entry.js +0 -1
  808. package/dist/vega/p-7288f8c4.js +0 -1
  809. package/dist/vega/p-749f96a4.js +0 -1
  810. package/dist/vega/p-7aaece55.entry.js +0 -1
  811. package/dist/vega/p-7ec6a104.entry.js +0 -1
  812. package/dist/vega/p-81134e9e.entry.js +0 -1
  813. package/dist/vega/p-89d685a8.js +0 -1
  814. package/dist/vega/p-8c0eb12f.entry.js +0 -1
  815. package/dist/vega/p-8c9ea6f4.js +0 -1
  816. package/dist/vega/p-8d0ca805.js +0 -1
  817. package/dist/vega/p-8d701832.entry.js +0 -1
  818. package/dist/vega/p-8e42a14c.entry.js +0 -1
  819. package/dist/vega/p-8ed0faa2.entry.js +0 -1
  820. package/dist/vega/p-94394df7.entry.js +0 -1
  821. package/dist/vega/p-99aa554b.entry.js +0 -1
  822. package/dist/vega/p-9a2446f1.entry.js +0 -1
  823. package/dist/vega/p-9fd503e9.entry.js +0 -1
  824. package/dist/vega/p-a4670e23.js +0 -1
  825. package/dist/vega/p-a475d525.entry.js +0 -1
  826. package/dist/vega/p-a530797f.entry.js +0 -1
  827. package/dist/vega/p-a85ad369.entry.js +0 -1
  828. package/dist/vega/p-ac5e9955.entry.js +0 -1
  829. package/dist/vega/p-aedf7146.js +0 -1
  830. package/dist/vega/p-b1f869fb.js +0 -1
  831. package/dist/vega/p-b4ea3fad.js +0 -1
  832. package/dist/vega/p-bb4a558d.entry.js +0 -1
  833. package/dist/vega/p-bb8339ed.entry.js +0 -1
  834. package/dist/vega/p-be23bef2.js +0 -1
  835. package/dist/vega/p-be930e85.entry.js +0 -1
  836. package/dist/vega/p-bf2bd6d0.entry.js +0 -1
  837. package/dist/vega/p-c2488ed6.js +0 -1
  838. package/dist/vega/p-c379a5a5.entry.js +0 -1
  839. package/dist/vega/p-c616c592.js +0 -1
  840. package/dist/vega/p-ca3472c1.entry.js +0 -1
  841. package/dist/vega/p-cc43bffb.js +0 -1
  842. package/dist/vega/p-cf5b80f9.entry.js +0 -1
  843. package/dist/vega/p-db60a38e.entry.js +0 -1
  844. package/dist/vega/p-db8cdba6.js +0 -1
  845. package/dist/vega/p-e93545fd.js +0 -1
  846. package/dist/vega/p-e9c4fd24.entry.js +0 -1
  847. package/dist/vega/p-eb60cfe1.entry.js +0 -1
  848. package/dist/vega/p-ec192283.entry.js +0 -1
  849. package/dist/vega/p-ef9cbad1.js +0 -1
  850. package/dist/vega/p-f2a3a1ec.entry.js +0 -1
  851. package/dist/vega/p-f2cdd212.entry.js +0 -1
  852. package/dist/vega/p-f3c3ff26.entry.js +0 -1
  853. package/dist/vega/p-f4c05b4a.entry.js +0 -1
  854. package/dist/vega/p-f52a0155.entry.js +0 -1
  855. package/dist/vega/p-f69f84a7.js +0 -1
  856. package/dist/vega/p-f8641214.entry.js +0 -1
  857. package/dist/vega/p-f89443aa.entry.js +0 -1
  858. package/dist/vega/p-f8f7cf48.entry.js +0 -1
  859. package/dist/vega/p-fe12eff6.js +0 -1
  860. /package/dist/{types/utils/test/sanitize.test.d.ts → collection/polyfill/prism/types.js} +0 -0
  861. /package/dist/vega/{p-d9671d27.js → p-6c170474.js} +0 -0
@@ -1 +0,0 @@
1
- import{h as e,F as t,r as i,c as o,H as r,g as s}from"./p-6b2342e0.js";import{g as n,s as a}from"./p-519a7d55.js";import{c as l,M as d,V as h,L as c,I as p}from"./p-6e1ab235.js";import{m as v,s as u}from"./p-6bd5c49b.js";import{V as f,I as g}from"./p-d849e0f5.js";import{f as m,l as w,m as x}from"./p-d9671d27.js";import{W as b,X as y}from"./p-1f83cebf.js";import{c as S}from"./p-86194314.js";import{D as R,g as j,d as C,s as I,t as k,V as O,c as T,n as D,u as M,v as E,a as L}from"./p-8d0ca805.js";import{K as z}from"./p-920719ad.js";import{E as H}from"./p-89d685a8.js";import{s as K}from"./p-b4ea3fad.js";import{i as V}from"./p-d27ae9ff.js";import{c as A}from"./p-77edf50c.js";import{M as W}from"./p-78a57a17.js";import{C as N}from"./p-2d0d575f.js";import{j as $,t as _,s as P,k as B}from"./p-5b71c85e.js";import{c as U}from"./p-66fa700b.js";import{C as F}from"./p-521d1d07.js";import{S as G,k as Y}from"./p-a528714c.js";import{r as q}from"./p-77e64f26.js";import{T as X}from"./p-75f981ce.js";import{C as J}from"./p-c9b6b5a9.js";import{C as Q}from"./p-c616c592.js";import{S as Z}from"./p-3bf66be2.js";import"./p-ed45b3b6.js";import"./p-40f39194.js";import"./p-d884c644.js";import"./p-f69f84a7.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-331a62d5.js";import"./p-476a173a.js";import"./p-c2488ed6.js";import"./p-10ac8b57.js";import"./p-b75ee3ba.js";import"./p-ef9cbad1.js";import"./p-112455b1.js";import"./p-4866e390.js";import"./p-fe12eff6.js";import"./p-262ec334.js";import"./p-b1f869fb.js";import"./p-6f8be8ea.js";import"./p-02841589.js";import"./p-bf19682d.js";import"./p-8c9ea6f4.js";import"./p-a7b5f497.js";import"./p-430be941.js";import"./p-0c667d6a.js";import"./p-5f377954.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-5d676a94.js";var ee=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class te extends h{componentDidRender(){this.setVirtualContainer(),this.appendItemsToContentBox(),this.appendDropdownToContentBox()}getDropdownRef(){return this.dropdownRef}getDropdownContentBoxRef(){return this.dropdownContentBoxRef}getVirtualContainerRef(){return this.virtualContainerRef}getNextActiveItem(e){const t=this.getAllItems(),i=this.getCurrentActiveItem();if(i){const o=t.findIndex((e=>e===i)),r="ArrowDown"===e?o+1:o-1,s=t[r];return s?s.disabled?this.findNextCallFocusItem(t,r,e):s:null}return t[0]}render(){return e(t,null,this.renderContentSlot(),this.renderDropdown())}renderContentSlot(){return this.renderModeController.isSourceRenderMode()?e("slot",null):e(t,null,e("slot",{name:"dropdown-content"}),e("slot",null))}renderDropdown(){return e("vega-dropdown-content-box",{ref:e=>this.dropdownContentBoxRef=e,style:{maxHeight:`${this.maxHeight}px`},"data-parent-ref":this.host,"data-vega-no-event-prevent":this.host&&"true"===this.host.dataset.vegaNoEventPrevent?"true":"false"},e("div",{ref:e=>this.dropdownRef=e,class:"vega-dropdown"},e("div",{class:"vega-dropdown-actions"},this.resetRenderer.render(),this.searchRenderer.render(),this.createRenderer.render()),e("div",null,e("div",{class:"vega-dropdown-container"},this.renderModeController.isSourceRenderMode()?this.listRenderer.renderBySource():this.listRenderer.renderBySlot()))))}setVirtualContainer(){this.virtualContainerRef=this.dropdownRef.querySelector(".vega-dropdown-container")}appendItemsToContentBox(){if(!this.renderModeController.isSourceRenderMode()){const e=this.host.querySelector("[slot='items']");!this.dropdownContentBoxRef.contains(e)&&e&&this.dropdownContentBoxRef.append(e)}}appendDropdownToContentBox(){var e,t;(null===(e=this.dropdownContentBoxRef.shadowRoot)||void 0===e?void 0:e.contains(this.dropdownRef))||null===(t=this.dropdownContentBoxRef.shadowRoot)||void 0===t||t.append(this.dropdownRef)}getAllItems(){const e=this.dropdownRef.querySelector("vega-virtual-scroll");return Array.from((e?e.shadowRoot:this.dropdownRef).querySelectorAll("vega-dropdown-item"))}getCurrentActiveItem(){return m(n(this.dropdownContentBoxRef.shadowRoot),"vega-dropdown-item")}findNextCallFocusItem(e,t,i){const o="ArrowDown"===i?t+1:t-1,r=e[o];return r?r.disabled?this.findNextCallFocusItem(e,o,i):r:null}}ee([l()],te.prototype,"host",void 0),ee([l()],te.prototype,"maxHeight",void 0),ee([l()],te.prototype,"searchable",void 0),ee([l()],te.prototype,"searchRenderer",void 0),ee([l()],te.prototype,"createRenderer",void 0),ee([l()],te.prototype,"listRenderer",void 0),ee([l()],te.prototype,"renderModeController",void 0),ee([l()],te.prototype,"resetRenderer",void 0),ee([d("componentDidRender")],te.prototype,"componentDidRender",null);var ie=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class oe extends h{componentWillLoad(){this.handleSource()}watchSource(){this.handleSource()}watchCaseSensitive(){this.handleSource()}setRenderSource(){this.renderModeController.isSourceRenderMode()&&(this.sourceForRender=this.searchController.search(this.source))}handleSource(){this.validSource(),this.setRenderSource()}validSource(){this.source=b(this.source,y)?this.source:[]}}ie([l({writable:!0})],oe.prototype,"source",void 0),ie([l({writable:!0})],oe.prototype,"sourceForRender",void 0),ie([l()],oe.prototype,"searchController",void 0),ie([l()],oe.prototype,"renderModeController",void 0),ie([d("componentWillLoad")],oe.prototype,"componentWillLoad",null),ie([d("watchSource")],oe.prototype,"watchSource",null),ie([d("watchCaseSensitive")],oe.prototype,"watchCaseSensitive",null);var re=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class se extends h{constructor(){super(...arguments),this.onItemAdd=()=>{this.createEventEmitter.emit(this.searchString),this.appenderController.hide()}}render(){return this.searchString&&this.dynamicOption&&!this.childrenController.isLabelExist(this.searchString)&&e("fragment",null,e("div",{class:"vega-dropdown-add-item",onClick:this.onItemAdd,tabIndex:0,role:"button","aria-label":`Add ${this.searchString}`,onKeyDown:S()},e("div",null,e("vega-icon",{icon:"plus-sign"})),e("span",{class:"v-break-all"},`Add "${this.searchString}"`)),e("div",{class:"vega-dropdown-divider"}))}}re([l()],se.prototype,"searchString",void 0),re([l()],se.prototype,"dynamicOption",void 0),re([l()],se.prototype,"sourceForRender",void 0),re([l()],se.prototype,"appenderController",void 0),re([l()],se.prototype,"childrenController",void 0),re([l()],se.prototype,"renderModeController",void 0),re([l()],se.prototype,"createEventEmitter",void 0);var ne=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class ae extends h{constructor(){super(...arguments),this.defaultMaxHeightOfItemsContainer=400}getVirtualScrollRef(){return this.virtualScrollRef}getTemplateContainerRef(){return this.templateContainerRef}renderBySource(){return e(t,null,this.renderLoading(),this.renderDropdownListBySource())}renderBySlot(){return e(t,null,this.renderLoading(),this.renderDropdownListBySlot())}renderLoading(){return e("div",{class:{"vega-dropdown-loading":!0,"v-hidden":!this.isLoading}},e("vega-flex",{gap:"size-8",direction:"row"},e("vega-loading-indicator",{size:"small"}),e("span",null,"Loading")))}renderDropdownListBySource(){return e(t,null,e("div",{class:{"vega-dropdown-empty-list":!0,"v-hidden":this.isLoading||this.sourceForRender.length>0}},this.translationSlimmer.t(this.searchString?this.searchNoResultsText:"No options")),e("ul",{role:"menu","aria-label":"dropdown-ul",class:{"v-hidden":this.isLoading||0===this.sourceForRender.length}},e("vega-virtual-scroll",{source:this.sourceForRender,renderItem:(e,t,i)=>e.children?this.groupLevelRenderer.render(e,t,i):this.itemLevelRenderer.render(e,i),viewportMaxHeight:this.defaultMaxHeightOfItemsContainer,ref:e=>this.virtualScrollRef=e,isLoading:this.isLazyLoading,virtualizationThreshold:this.virtualizationThreshold})))}renderDropdownListBySlot(){return e("ul",{role:"menu","aria-label":"dropdown-ul",class:{[`vega-dropdown-item-display-${this.itemDisplayRule}`]:!0,"v-hidden":this.isLoading},ref:e=>this.templateContainerRef=e,onScroll:this.scrollableController.onScroll},e("slot",{name:"items"}))}}ne([l()],ae.prototype,"host",void 0),ne([l()],ae.prototype,"isLoading",void 0),ne([l()],ae.prototype,"searchString",void 0),ne([l()],ae.prototype,"itemDisplayRule",void 0),ne([l()],ae.prototype,"sourceForRender",void 0),ne([l()],ae.prototype,"itemLevelRenderer",void 0),ne([l()],ae.prototype,"groupLevelRenderer",void 0),ne([l()],ae.prototype,"isLazyLoading",void 0),ne([l()],ae.prototype,"isDropdownShow",void 0),ne([l()],ae.prototype,"searchNoResultsText",void 0),ne([l()],ae.prototype,"renderModeController",void 0),ne([l()],ae.prototype,"scrollableController",void 0),ne([l()],ae.prototype,"translationSlimmer",void 0),ne([l()],ae.prototype,"virtualizationThreshold",void 0);var le=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class de extends h{render(t,i){return this.remoteInvocationController.callRemoteItemRender(t,i)||e("vega-dropdown-item",Object.assign({},t,{itemKey:t.key,height:i,prefixIcon:t.prefixIcon}))}}le([l()],de.prototype,"host",void 0),le([l()],de.prototype,"selectType",void 0),le([l()],de.prototype,"caseSensitive",void 0),le([l()],de.prototype,"searchString",void 0),le([l()],de.prototype,"selectedController",void 0),le([l()],de.prototype,"sourceController",void 0),le([l()],de.prototype,"remoteInvocationController",void 0);var he=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class ce extends h{constructor(){super(...arguments),this.clear=()=>{this.searchString=null,this.searchInputRef&&(this.searchInputRef.value="")},this.onInputSearch=e=>{e&&(this.searchInputRef=e),R.addUniqueObserverToNode(e,j,(e=>{this.search(e.detail,"input")}))},this.search=(e,t)=>{this.searchTriggerBy&&this.searchTriggerBy!==t||(this.searchString=e,this.renderModeController.isSourceRenderMode()?this.useDefaultFilter?(this.sourceController.setRenderSource(),this.focus()):this.isDropdownShow&&(this.searchEventEmitter.emit(e),this.searchTriggerEventEmitter.emit({trigger:t,value:e})):(this.searchEventEmitter.emit(e),this.searchTriggerEventEmitter.emit({trigger:t,value:e})))}}userSearch(e){this.search(e,"input")}focus(){this.searchInputRef&&this.searchInputRef.shadowRoot.querySelector("input").focus()}render(){return this.searchable&&e(t,null,e("div",{class:"vega-dropdown-search"},e("vega-input",{"prefix-icon":"search",size:"small",autoValidation:!1,ref:this.onInputSearch,onKeyDown:e=>{"Enter"===e.code&&this.search(this.searchInputRef.value,"enter")}})),e("vega-divider",{margin:{y:"size-4"}}))}}he([l()],ce.prototype,"searchable",void 0),he([l({writable:!0})],ce.prototype,"searchString",void 0),he([l()],ce.prototype,"source",void 0),he([l()],ce.prototype,"useDefaultFilter",void 0),he([l()],ce.prototype,"searchEventEmitter",void 0),he([l()],ce.prototype,"searchTriggerEventEmitter",void 0),he([l()],ce.prototype,"isDropdownShow",void 0),he([l()],ce.prototype,"sourceController",void 0),he([l()],ce.prototype,"renderModeController",void 0),he([l()],ce.prototype,"searchTriggerBy",void 0),he([d("search")],ce.prototype,"userSearch",null);var pe=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class ve extends z{constructor(){super((e=>{const t=this.renderer.getDropdownRef(),i=this.renderer.getVirtualContainerRef();return[{keyCode:"Tab",activeElementInScope:[e.host],callback:e.showDropdownIfHover},{keyCode:"Escape",activeElementInScope:[e.host,t,i],callback:()=>e.appenderController.hide()},{keyCode:["ArrowUp","ArrowDown"],activeElementInScope:[e.host,t],callback:t=>e.controlDirectionByKeyboard(t.code)},{keyCode:"Tab",activeElementOutScope:[e.host,t,i],callback:()=>e.isDropdownShow&&e.appenderController.hide()}]})),this.showDropdownIfHover=async()=>{"hover"===this.trigger&&this.appenderController.show()},this.controlDirectionByKeyboard=e=>{var t;null===(t=this.renderer.getNextActiveItem(e))||void 0===t||t.shadowRoot.querySelector("li").focus()}}}pe([l()],ve.prototype,"host",void 0),pe([l()],ve.prototype,"trigger",void 0),pe([l()],ve.prototype,"isDropdownShow",void 0),pe([l()],ve.prototype,"renderer",void 0),pe([l()],ve.prototype,"appenderController",void 0),pe([l()],ve.prototype,"listRenderer",void 0);var ue=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class fe extends H{constructor(){super((()=>this.generateShowConfigFactory()),(()=>this.trigger))}connectedCallback(){}disconnectedCallback(){}async watchIsDropdownShow(){this.isDropdownShow?this.showEventEmitter.emit():(this.searchRenderer.clear(),this.hideEventEmitter.emit())}userShow(){this.isDropdownShow||this.show()}userHide(){this.isDropdownShow&&this.hide()}generateShowConfigFactory(){return{target:this.target||this.host,appendableElement:this.renderer.getDropdownContentBoxRef(),positionRelativeTo:this.positionRelativeTo,matchTargetWidth:this.matchTargetWidth,matchContainerHeight:this.matchContainerHeight,size:this.size,minWidth:this.minWidth,maxWidth:this.maxWidth,translocation:this.translocation,maxHeight:this.maxHeight,placement:this.placement,alignment:this.alignment,isScreenPosition:this.isScreenPosition}}}ue([l()],fe.prototype,"host",void 0),ue([l()],fe.prototype,"trigger",void 0),ue([l({writable:!0})],fe.prototype,"isDropdownShow",void 0),ue([l()],fe.prototype,"positionRelativeTo",void 0),ue([l()],fe.prototype,"matchTargetWidth",void 0),ue([l()],fe.prototype,"matchContainerHeight",void 0),ue([l()],fe.prototype,"size",void 0),ue([l()],fe.prototype,"minWidth",void 0),ue([l()],fe.prototype,"maxWidth",void 0),ue([l()],fe.prototype,"translocation",void 0),ue([l()],fe.prototype,"maxHeight",void 0),ue([l()],fe.prototype,"placement",void 0),ue([l()],fe.prototype,"alignment",void 0),ue([l()],fe.prototype,"renderer",void 0),ue([l()],fe.prototype,"searchRenderer",void 0),ue([l()],fe.prototype,"showEventEmitter",void 0),ue([l()],fe.prototype,"hideEventEmitter",void 0),ue([l()],fe.prototype,"isScreenPosition",void 0),ue([d("connectedCallback")],fe.prototype,"connectedCallback",null),ue([d("disconnectedCallback")],fe.prototype,"disconnectedCallback",null),ue([d("watchIsDropdownShow")],fe.prototype,"watchIsDropdownShow",null),ue([d("show")],fe.prototype,"userShow",null),ue([d("hide")],fe.prototype,"userHide",null);var ge=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class me extends h{render(t,i,o){return e("vega-dropdown-group",{label:t.label,key:t.key,divide:i<this.sourceForRender.length-1},t.children.map((e=>this.itemLevelRenderer.render(e,o))))}}ge([l()],me.prototype,"sourceForRender",void 0),ge([l()],me.prototype,"itemLevelRenderer",void 0);var we=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class xe extends h{search(e){return this.canSearch()?this.searchSource(e,[]):e}canSearch(){return this.useDefaultFilter&&!!this.searchString}searchSource(e,t){return this.remoteInvocationController.callRemoteSearch(e,this.searchString,this.caseSensitive)||(e.forEach((e=>{if(e.label=K(e.label),e.children){const i=this.searchSource(e.children,[]);i.length>0&&t.push(Object.assign(Object.assign({},e),{children:i}))}else this.isLabelIncludeSearchString(e.label)&&t.push(Object.assign(Object.assign({},e),{label:this.replaceLabelBySearchString(e.label)}))})),t)}isLabelIncludeSearchString(e){return this.caseSensitive?e.includes(this.searchString):e.toLowerCase().includes(this.searchString.toLowerCase())}replaceLabelBySearchString(e){const t=this.searchString.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(`(${t})`,"g"+(this.caseSensitive?"":"i")),"<b>$1</b>")}}we([l()],xe.prototype,"host",void 0),we([l()],xe.prototype,"searchString",void 0),we([l()],xe.prototype,"caseSensitive",void 0),we([l()],xe.prototype,"useDefaultFilter",void 0),we([l()],xe.prototype,"searchable",void 0),we([l()],xe.prototype,"remoteInvocationController",void 0);var be=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class ye extends h{componentWillLoad(){this.checkSelectedSourceKey(this.selectedSourceKey)}clearSelection(){this.selectedSourceKey="multiple"===this.selectType?[]:""}getSelection(){return this.selectedSourceKey}watchSelectedRowKeySet(e){this.checkSelectedSourceKey(e)}watchSelectType(){this.checkSelectedSourceKey(this.selectedSourceKey)}watchSelectedSourceKey(e,t){Array.isArray(t)&&Array.isArray(e)&&V(t,e)||this.checkSelectedSourceKey(e)}watchSource(){this.checkSelectedSourceKey(this.selectedSourceKey)}isAcceptableItemSelectionObserver(e){return"VEGA-DROPDOWN-ITEM"===e.host.tagName&&this.isCurrentDropdown(e.host)}select(e){"multiple"===this.selectType?this.selectedSourceKey=this.selectedSourceKey.includes(e)?[...this.selectedSourceKey.filter((t=>t!==e))]:[...this.selectedSourceKey,e]:"single"===this.selectType?(this.selectedSourceKey=e,this.appenderController.hide()):this.appenderController.hide(),this.dropdownClickEventEmitter.emit(e)}reset(){this.selectedSourceKey="multiple"===this.selectType?[]:"","multiple"!==this.selectType&&this.appenderController.hide(),this.resetEventEmitter.emit()}isCurrentDropdown(e){const t=m(e,"vega-dropdown-content-box"),i="VEGA-DROPDOWN"===e.parentElement.tagName||!!m(e,"vega-dropdown");return this.host===t["data-parent-ref"]&&!i}checkSelectedSourceKey(e){if(this.renderModeController.isSourceRenderMode()&&!this.preserveValueIfNotInSource){let t;"string"==typeof e&&"single"===this.selectType&&this.childrenController.isKeyExist(e)?t=e:Array.isArray(e)&&"multiple"===this.selectType?t=this.checkMultipleSelectedKeys(e):(c.warn(`Invalid selectedSourceKey ${e} for ${this.selectType} mode`),t="multiple"===this.selectType?[]:""),this.selectedSourceKey=t}else this.selectedSourceKey=e}checkMultipleSelectedKeys(e){const t=[],i=e.filter((e=>{const i=this.childrenController.isKeyExist(e);return i||t.push(e),i}));return t.length>0&&c.warn(`Invalid selectedSourceKey ${e} for ${this.selectType} mode`),i}}be([l()],ye.prototype,"host",void 0),be([l()],ye.prototype,"selectType",void 0),be([l()],ye.prototype,"source",void 0),be([l({writable:!0})],ye.prototype,"selectedSourceKey",void 0),be([l()],ye.prototype,"preserveValueIfNotInSource",void 0),be([l()],ye.prototype,"vegaDropdownClick",void 0),be([l()],ye.prototype,"appenderController",void 0),be([l()],ye.prototype,"childrenController",void 0),be([l()],ye.prototype,"renderModeController",void 0),be([l()],ye.prototype,"dropdownClickEventEmitter",void 0),be([l()],ye.prototype,"resetEventEmitter",void 0),be([d("componentWillLoad")],ye.prototype,"componentWillLoad",null),be([d("clearSelection")],ye.prototype,"clearSelection",null),be([d("getSelection")],ye.prototype,"getSelection",null),be([d("setSelection")],ye.prototype,"watchSelectedRowKeySet",null),be([d("watchSelectType")],ye.prototype,"watchSelectType",null),be([d("watchSelectedSourceKey")],ye.prototype,"watchSelectedSourceKey",null),be([d("watchSource")],ye.prototype,"watchSource",null);var Se=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Re extends h{constructor(){super(...arguments),this.renderMode="SOURCE"}connectedCallback(){this.setRenderMode()}isSourceRenderMode(){return"SOURCE"===this.renderMode}setRenderMode(){const e=this.renderer.getDropdownContentBoxRef()||this.host;this.renderMode=e.querySelector("[slot=items]")?"SLOT":"SOURCE"}}Se([l()],Re.prototype,"host",void 0),Se([l()],Re.prototype,"renderer",void 0),Se([d("connectedCallback")],Re.prototype,"connectedCallback",null);var je=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Ce extends h{constructor(){super(...arguments),this.mutationObserver=new W({target:()=>this.renderer.getDropdownContentBoxRef(),options:{childList:!0,subtree:!0},callback:()=>this.syncUpDropdownCurrentData()}),this.labelSet=new Set,this.keySet=new Set,this.collectKeyAndLabelFromSlot=()=>{const e=this.renderer.getDropdownContentBoxRef()||this.host;Array.from(e.querySelectorAll("vega-dropdown-item")).forEach((e=>{e.label&&this.labelSet.add(e.label),e.itemKey&&this.keySet.add(e.itemKey)}))}}disconnectedCallback(){}componentWillLoad(){this.syncUpDropdownCurrentData()}componentDidLoad(){}watchSource(){this.renderModeController.isSourceRenderMode()&&this.syncUpDropdownCurrentData()}isLabelExist(e){return this.labelSet.has(e)}isKeyExist(e){return this.keySet.has(e)}syncUpDropdownCurrentData(){this.clearDropdownCurrentData(),this.renderModeController.isSourceRenderMode()?this.collectKeyAndLabelFromSource(this.source):(this.collectKeyAndLabelFromSlot(),this.notifyTemplateItemsChange())}collectKeyAndLabelFromSource(e){e.forEach((e=>{e.children?this.collectKeyAndLabelFromSource(e.children):(this.labelSet.add(e.label),this.keySet.add(e.key))}))}clearDropdownCurrentData(){this.keySet.clear(),this.labelSet.clear()}notifyTemplateItemsChange(){const e=this.renderer.getDropdownContentBoxRef()||this.host;N.notify(C.getSubject(this.host,$),e.querySelectorAll("vega-dropdown-item"))}}je([l()],Ce.prototype,"host",void 0),je([l()],Ce.prototype,"source",void 0),je([l()],Ce.prototype,"sourceController",void 0),je([l()],Ce.prototype,"renderModeController",void 0),je([l()],Ce.prototype,"listRenderer",void 0),je([l()],Ce.prototype,"renderer",void 0),je([l()],Ce.prototype,"selectedController",void 0),je([p()],Ce.prototype,"mutationObserver",void 0),je([d("disconnectedCallback")],Ce.prototype,"disconnectedCallback",null),je([d("componentWillLoad")],Ce.prototype,"componentWillLoad",null),je([d("componentDidLoad")],Ce.prototype,"componentDidLoad",null),je([d("watchSource")],Ce.prototype,"watchSource",null);const Ie=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the dropdown",payloadValue:e=>0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the dropdown",payloadValue:e=>e.source.length>0}];var ke=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Oe extends h{constructor(){super(...arguments),this.onScroll=()=>{!this.renderModeController.isSourceRenderMode()&&N.notify(G,{host:this.renderer.getDropdownContentBoxRef()})}}async watchIsDropdownShow(){this.isDropdownShow&&(this.adjustListContainerMaxHeight(),await this.scrollToSelectedIndex())}watchSelectedSourceKey(e,t){this.resettable&&(e&&e.length>0&&(!t||0===t.length)||(!e||0===e.length)&&t&&t.length>0)&&this.adjustListContainerMaxHeight()}async scrollToSelectedIndex(){this.renderModeController.isSourceRenderMode()?await this.scrollToVirtualIndex():this.scrollToTemplateIndex()}async scrollToVirtualIndex(){const e=this.sourceForRender.findIndex((e=>e.key===this.getSelectedKey()));e>=0&&await this.listRenderer.getVirtualScrollRef().scrollToIndex(e)}scrollToTemplateIndex(){const e=this.getSelectedKey();if(e){const t=this.renderer.getDropdownContentBoxRef(),i=t.querySelector(`vega-dropdown-item[item-key='${e}']`);if(i){const e=t.shadowRoot.querySelector("ul"),o=e.getBoundingClientRect(),r=i.getBoundingClientRect();e.scrollTop=r.top-o.top+e.scrollTop}}}getSelectedKey(){return"multiple"===this.selectType?this.selectedSourceKey[0]:this.selectedSourceKey}adjustListContainerMaxHeight(){const e=this.renderer.getDropdownContentBoxRef();if(!e)return;const t=w(e.style.maxHeight),i=this.resettable&&this.selectedSourceKey.length>0?Oe.actionButtonContentHeight:0,o=t-(this.searchable?Oe.actionButtonContentHeight:0)-(e.classList.contains("vega-placement-top")?0:Oe.dropdownLayoutSpaceHeight)-i;o<=40?(this.setItemsContainerMaxHeight(40),c.error("There have no space on the bottom to display dropdown, if you want to adjust position, you should make 'match-container-height' as false.")):this.setItemsContainerMaxHeight(o)}setItemsContainerMaxHeight(e){if(this.renderModeController.isSourceRenderMode())this.listRenderer.getVirtualScrollRef().viewportMaxHeight=e;else{const t=this.listRenderer.getTemplateContainerRef();t.style.overflowY="auto",t.style.maxHeight=`${e}px`}}}Oe.actionButtonContentHeight=49,Oe.dropdownLayoutSpaceHeight=10,ke([l()],Oe.prototype,"isDropdownShow",void 0),ke([l()],Oe.prototype,"renderModeController",void 0),ke([l()],Oe.prototype,"sourceForRender",void 0),ke([l()],Oe.prototype,"selectType",void 0),ke([l()],Oe.prototype,"selectedSourceKey",void 0),ke([l()],Oe.prototype,"searchable",void 0),ke([l()],Oe.prototype,"listRenderer",void 0),ke([l()],Oe.prototype,"renderer",void 0),ke([l()],Oe.prototype,"resettable",void 0),ke([d("watchIsDropdownShow")],Oe.prototype,"watchIsDropdownShow",null),ke([d("watchSelectedSourceKey")],Oe.prototype,"watchSelectedSourceKey",null);var Te=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class De extends h{connectedCallback(){this.remotePhoneNumberSearchSubject=C.getSubjectFromParentNodeByEventId(this.host,_),this.remotePhoneNumberItemRenderSubject=C.getSubjectFromParentNodeByEventId(this.host,P)}callRemoteSearch(...e){if(this.remotePhoneNumberSearchSubject){const t=q.call(this.remotePhoneNumberSearchSubject,...e);if(t)return t}return null}callRemoteItemRender(...e){if(this.remotePhoneNumberItemRenderSubject){const t=q.call(this.remotePhoneNumberItemRenderSubject,...e);if(t)return t}return null}}Te([l()],De.prototype,"host",void 0),Te([d("connectedCallback")],De.prototype,"connectedCallback",null);var Me=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Ee extends h{render(){return this.resettable&&this.selectedSourceKey.length>0&&e(t,null,e("vega-font",{variant:"font-field-value",color:"text-link",class:"vega-dropdown-reset",onClick:()=>this.selectedController.reset(),tabIndex:0,role:"button","aria-label":"Reset",onKeyDown:S()},this.translationSlimmer.t("Reset Selection")),e("vega-divider",{margin:{y:"size-4"}}))}}Me([l()],Ee.prototype,"resettable",void 0),Me([l()],Ee.prototype,"translationSlimmer",void 0),Me([l()],Ee.prototype,"selectedController",void 0),Me([l()],Ee.prototype,"selectedSourceKey",void 0);var Le=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const ze=class{constructor(e){i(this,e),this.vegaDropdownClick=o(this,"vegaDropdownClick",7),this.dropdownClick=o(this,"dropdownClick",7),this.vegaShow=o(this,"vegaShow",7),this.dropdownShow=o(this,"dropdownShow",7),this.vegaHide=o(this,"vegaHide",7),this.dropdownHide=o(this,"dropdownHide",7),this.vegaCreate=o(this,"vegaCreate",7),this.create=o(this,"create",7),this.vegaSearch=o(this,"vegaSearch",7),this.dropdownSearch=o(this,"dropdownSearch",7),this.vegaReset=o(this,"vegaReset",7),this.reset=o(this,"reset",7),this.vegaSearchTrigger=o(this,"vegaSearchTrigger",7),this.searchTrigger=o(this,"searchTrigger",7),this.globalSlimmers={},this.translationSlimmer=new X,this.renderer=new te,this.sourceController=new oe,this.searchRenderer=new ce,this.createRenderer=new se,this.listRenderer=new ae,this.resetRenderer=new Ee,this.groupLevelRenderer=new me,this.itemLevelRenderer=new de,this.keyboardController=new ve,this.appenderController=new fe,this.searchController=new xe,this.childrenController=new Ce,this.selectedController=new ye,this.renderModeController=new Re,this.scrollableController=new Oe,this.remoteInvocationController=new De,this.selectTypeNotifySlimmer=A(ze,"selectType","watchSelectType"),this.selectedSourceKeyNotifySlimmer=A(ze,"selectedSourceKey","watchSelectedSourceKey"),this.prefixIconSlotNotifySlimmer=A(ze,"prefixIconSlot","watchPrefixIconSlot"),this.itemClickObserver=new F(Y,(e=>this.selectedController.select(e.detail.itemKey)),this.selectedController.isAcceptableItemSelectionObserver.bind(this.selectedController)),this.showEventEmitter=U(ze,I),this.hideEventEmitter=U(ze,k),this.dropdownClickEventEmitter=U(ze,O),this.resetEventEmitter=U(ze,T),this.createEventEmitter=U(ze,D),this.searchEventEmitter=U(ze,M),this.searchTriggerEventEmitter=U(ze,E),this.itemDisplayRuleNotifySlimmer=A(ze,"itemDisplayRule","watchItemDisplayRule"),this.vegaComponentUsageRuntimeMetricsSlimmer=new f(Ie),this.searchString=null,this.isDropdownShow=!1,this.trigger="hover",this.translocation={X:0,Y:8},this.source=[],this.selectType="none",this.selectedSourceKey="multiple"===this.selectType?[]:"",this.prefixIconSlot=!1,this.maxHeight=400,this.searchable=!1,this.matchTargetWidth=!1,this.itemDisplayRule="newline",this.matchContainerHeight=!1,this.caseSensitive=!1,this.dynamicOption=!1,this.useDefaultFilter=!0,this.isLoading=!1,this.placement=["bottom","top"],this.alignment="start",this.isLazyLoading=!1,this.isScreenPosition=!1,this.resettable=!1,this.virtualizationThreshold=60,this.preserveValueIfNotInSource=!1,this.searchNoResultsText="No results found"}watchIsDropdownShow(){}watchSource(){}watchSelectType(){}watchSelectedSourceKey(){}watchPrefixIconSlot(){}watchItemDisplayRule(){}watchCaseSensitive(){}async show(){}async hide(){}async search(e){}async clearSelection(){}async getSelection(){return v()}async setSelection(e){}render(){return u(e("slot",null)),a(e(r,null,this.renderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{isDropdownShow:["watchIsDropdownShow"],source:["watchSource"],selectType:["watchSelectType"],selectedSourceKey:["watchSelectedSourceKey"],prefixIconSlot:["watchPrefixIconSlot"],itemDisplayRule:["watchItemDisplayRule"],caseSensitive:["watchCaseSensitive"]}}};Le([g()],ze.prototype,"globalSlimmers",void 0),Le([p()],ze.prototype,"translationSlimmer",void 0),Le([p()],ze.prototype,"renderer",void 0),Le([p()],ze.prototype,"sourceController",void 0),Le([p()],ze.prototype,"searchRenderer",void 0),Le([p()],ze.prototype,"createRenderer",void 0),Le([p()],ze.prototype,"listRenderer",void 0),Le([p()],ze.prototype,"resetRenderer",void 0),Le([p()],ze.prototype,"groupLevelRenderer",void 0),Le([p()],ze.prototype,"itemLevelRenderer",void 0),Le([p()],ze.prototype,"keyboardController",void 0),Le([p()],ze.prototype,"appenderController",void 0),Le([p()],ze.prototype,"searchController",void 0),Le([p()],ze.prototype,"childrenController",void 0),Le([p()],ze.prototype,"selectedController",void 0),Le([p()],ze.prototype,"renderModeController",void 0),Le([p()],ze.prototype,"scrollableController",void 0),Le([p()],ze.prototype,"remoteInvocationController",void 0),Le([p()],ze.prototype,"selectTypeNotifySlimmer",void 0),Le([p()],ze.prototype,"selectedSourceKeyNotifySlimmer",void 0),Le([p()],ze.prototype,"prefixIconSlotNotifySlimmer",void 0),Le([p()],ze.prototype,"itemClickObserver",void 0),Le([p()],ze.prototype,"showEventEmitter",void 0),Le([p()],ze.prototype,"hideEventEmitter",void 0),Le([p()],ze.prototype,"dropdownClickEventEmitter",void 0),Le([p()],ze.prototype,"resetEventEmitter",void 0),Le([p()],ze.prototype,"createEventEmitter",void 0),Le([p()],ze.prototype,"searchEventEmitter",void 0),Le([p()],ze.prototype,"searchTriggerEventEmitter",void 0),Le([p()],ze.prototype,"itemDisplayRuleNotifySlimmer",void 0),Le([p()],ze.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ze.style=":host{display:inline-block}";var He=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const Ke=class{constructor(e){i(this,e),this.globalSlimmers={},this.componentGlobalStyleSlimmer=new Q("vega-dropdown-content-box vega-dropdown{display:block}"),this.eventPrevent=new J([L],(()=>this.host),void 0,!0),this.vegaComponentUsageRuntimeMetricsSlimmer=new f}render(){return a(e(r,null,e("slot",null)),this.host)}get host(){return s(this)}};He([g()],Ke.prototype,"globalSlimmers",void 0),He([p()],Ke.prototype,"componentGlobalStyleSlimmer",void 0),He([p()],Ke.prototype,"eventPrevent",void 0),He([p()],Ke.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ke.style=':host{display:block;position:absolute}:host .vega-dropdown{box-shadow:var(--v-shadow-dropdown-menu, 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));padding-top:4px;padding-bottom:4px;text-align:left;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;overflow:hidden;box-sizing:border-box;width:inherit}:host(.vega-force-hidden){display:none}:host .vega-dropdown .vega-dropdown-container{overflow-y:auto;position:relative;min-width:100px;min-height:40px}:host .vega-dropdown .vega-dropdown-container>ul{padding-left:0px;margin:0px;list-style-type:none}:host .vega-dropdown .vega-dropdown-search{padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px;margin-left:4px;margin-right:4px}:host .vega-dropdown .vega-dropdown-search vega-input{display:block}:host .vega-dropdown .vega-dropdown-search vega-input::part(input-container){padding:0px;border-width:0px;--tw-shadow:0 0 #0000;box-shadow:rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px}:host .vega-dropdown .vega-dropdown-search vega-input::part(prefix-icon-container){color:rgba(var(--v-text-secondary, 107, 116, 125, 1));width:16px;height:16px;padding-top:0px}:host .vega-dropdown .vega-dropdown-search vega-input::part(input-container):focus-within{outline:none}:host .vega-dropdown .vega-dropdown-search vega-input::part(input-container):hover{border-width:0px}:host .vega-dropdown .vega-dropdown-loading{padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}:host .v-hidden{display:none}:host .vega-dropdown .vega-dropdown-loading>vega-flex>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-dropdown .vega-dropdown-loading>vega-flex>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-dropdown .vega-dropdown-loading>vega-flex>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-dropdown .vega-dropdown-loading>vega-flex>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-dropdown .vega-dropdown-add-item{padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px;margin-left:4px;margin-right:4px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));cursor:pointer;display:flex;gap:8px;align-items:center}:host .vega-dropdown .vega-dropdown-add-item>div{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host .vega-dropdown .vega-dropdown-add-item>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-dropdown .vega-dropdown-add-item>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-dropdown .vega-dropdown-add-item>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-dropdown .vega-dropdown-add-item>span{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-dropdown .vega-dropdown-add-item:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border-radius:4px}:host .vega-dropdown .vega-dropdown-clear-icon{width:16px;height:16px;cursor:pointer}:host .vega-dropdown .vega-dropdown-empty-list{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-dropdown .vega-dropdown-empty-list{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-dropdown .vega-dropdown-empty-list{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-dropdown .vega-dropdown-empty-list{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-dropdown .vega-dropdown-divider{margin-top:4px;margin-bottom:4px;border-bottom:1px solid rgb(171, 198, 216)}:host .vega-dropdown .vega-dropdown-reset{padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px;margin-left:4px;margin-right:4px;display:block;cursor:pointer}:host .vega-dropdown .vega-dropdown-reset:hover{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1));color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host .vega-dropdown .vega-dropdown-reset:focus-visible{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1))}';var Ve=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Ae extends h{render(){return e("li",{class:"vega-dropdown-group"},this.renderLabel(),this.renderChildren(),this.renderDivide())}renderLabel(){return this.label&&e("div",{class:"vega-dropdown-group-label"},this.label)}renderChildren(){return e("ul",{class:"vega-dropdown-group-items"},e("slot",null))}renderDivide(){return this.divide&&e("div",{class:"vega-dropdown-group-divide"})}}Ve([l()],Ae.prototype,"label",void 0),Ve([l()],Ae.prototype,"divide",void 0);var We=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const Ne=class{constructor(e){i(this,e),this.globalSlimmers={},this.renderer=new Ae,this.vegaComponentUsageRuntimeMetricsSlimmer=new f,this.divide=!0}render(){return u(e("slot",null)),a(e(r,null,this.renderer.render()),this.host)}get host(){return s(this)}};We([g()],Ne.prototype,"globalSlimmers",void 0),We([p()],Ne.prototype,"renderer",void 0),We([p()],Ne.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ne.style=':host{display:block}:host .vega-dropdown-group{padding:0px;margin:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));cursor:default;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-dropdown-group{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-dropdown-group{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-dropdown-group{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host .vega-dropdown-group-label{padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:4px}:host .vega-dropdown-group-items{padding:0px;margin:0px}:host .vega-dropdown-group-divide{background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));margin-top:4px;margin-bottom:4px;height:1px}';var $e=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class _e extends h{constructor(){super(...arguments),this.setLabelRef=e=>{e&&(this.labelRef=e)}}render(){return e("li",{key:this.label,role:"menuitem","aria-label":this.label,class:{"vega-dropdown-item-selected":this.selected,"vega-dropdown-item-disabled":this.disabled,[`vega-dropdown-item-display-${this.itemDisplayRule}`]:!0,danger:this.danger&&"none"===this.selectType},tabIndex:this.disabled?-1:0,onClick:this.disabled?void 0:e=>this.onSelect(e),onKeyDown:S(),style:this.height>0&&{height:`${this.height}px`,boxSizing:"border-box",overflow:"hidden"}},this.renderSelectIcon(),this.renderPrefixIcon(),"ellipsis"===this.itemDisplayRule?this.renderLabelWithTooltip():this.renderLabel(),this.renderCounter())}renderSelectIcon(){return"none"!==this.selectType&&e("span",{class:"selected-prefix"},"single"===this.selectType&&this.renderSingleSelectIcon(),"multiple"===this.selectType&&this.renderMultipleSelectIcon())}renderSingleSelectIcon(){return this.selected&&e("vega-icon",{icon:"checkmark",size:"size-16"})}renderMultipleSelectIcon(){return e("vega-checkbox",{size:"small",checked:this.selected,disabled:this.disabled})}renderPrefixIcon(){return(this.prefixIcon||this.prefixIconSlot)&&e("div",{class:"item-prefix"},this.renderItemPrefixIcon())}renderItemPrefixIcon(){return this.prefixIcon&&e("vega-icon",{icon:this.prefixIcon,size:"size-16"})}renderLabel(){return this.host.childElementCount>0||""!==this.host.textContent.trim()?e("span",{class:"vega-dropdown-item-label",ref:this.setLabelRef},e("slot",null)):e(t,null,e("span",{class:"vega-dropdown-item-label",innerHTML:K(this.label),ref:this.setLabelRef}),e("span",{class:"v-hidden"},e("slot",null)))}renderCounter(){return this.count>0&&e("div",{class:"item-counter"},e("vega-counter-badge",{count:this.count,color:"bg-action",offset:[10,10]}))}onSelect(e){this.vegaDropdownItemClickController.handleClick(e)}renderLabelWithTooltip(){return this.label?e("vega-tooltip",{ref:e=>{e&&(this.tooltipRef=e)},text:K(this.label).replace(/<b>(.*?)<\/b>/g,"$1"),trigger:"none",placement:["bottom","top"],alignment:"center",onMouseEnter:()=>{this.labelRef.scrollWidth>this.labelRef.clientWidth&&(this.tooltipRef.trigger="hover",this.labelRef.style.pointerEvents="none")},onMouseLeave:()=>{this.tooltipRef.trigger="none",this.labelRef.style.pointerEvents="auto"}},this.renderLabel()):this.renderLabel()}}$e([l()],_e.prototype,"host",void 0),$e([l()],_e.prototype,"label",void 0),$e([l()],_e.prototype,"count",void 0),$e([l()],_e.prototype,"prefixIcon",void 0),$e([l()],_e.prototype,"prefixIconSlot",void 0),$e([l()],_e.prototype,"disabled",void 0),$e([l()],_e.prototype,"selected",void 0),$e([l()],_e.prototype,"selectType",void 0),$e([l()],_e.prototype,"height",void 0),$e([l()],_e.prototype,"itemDisplayRule",void 0),$e([l()],_e.prototype,"danger",void 0),$e([l()],_e.prototype,"vegaDropdownItemClickController",void 0);var Pe=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Be extends Z{constructor(){super({parent:()=>{const e=m(this.host,"vega-dropdown");if(e)return e;{const e=m(this.host,"vega-dropdown-content-box");if(e&&e["data-parent-ref"])return e["data-parent-ref"]}},subStates:[{subStateName:"selectType",parentStateName:"selectType"},{subStateName:"prefixIconSlot",parentStateName:"prefixIconSlot"},{subStateName:"itemDisplayRule",parentStateName:"itemDisplayRule"},{subStateName:"selected",parentStateName:"selectedSourceKey",callback:e=>{this.selected=Array.isArray(e)?e.includes(this.itemKey):e===this.itemKey}}],pullStatesWhenReattached:!0})}}Pe([l()],Be.prototype,"host",void 0),Pe([l({writable:!0})],Be.prototype,"selectType",void 0),Pe([l()],Be.prototype,"itemKey",void 0),Pe([l({writable:!0})],Be.prototype,"selected",void 0),Pe([l({writable:!0})],Be.prototype,"prefixIconSlot",void 0),Pe([l({writable:!0})],Be.prototype,"itemDisplayRule",void 0);var Ue=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Fe extends h{handleClick(e){this.clickEventEmitter.emit({itemKey:this.itemKey},e),N.notify(Y,{host:this.host,detail:{itemKey:this.itemKey}})}}Ue([l()],Fe.prototype,"host",void 0),Ue([l()],Fe.prototype,"itemKey",void 0),Ue([l()],Fe.prototype,"vegaClick",void 0),Ue([l()],Fe.prototype,"clickEventEmitter",void 0);var Ge=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const Ye=class{constructor(e){i(this,e),this.vegaClick=o(this,"vegaClick",7),this.click=o(this,"click",7),this.globalSlimmers={},this.renderer=new _e,this.vegaDropdownItemStateController=new Be,this.vegaDropdownItemClickController=new Fe,this.dropdownItemEventPrevent=new J([j],(()=>this.host)),this.clickEventEmitter=U(Ye,L),this.vegaComponentUsageRuntimeMetricsSlimmer=new f,this.prefixIconSlot=!1,this.selected=!1,this.itemDisplayRule="newline",this.disabled=!1,this.danger=!1}render(){return u(e("slot",null)),a(e(r,null,this.renderer.render()),this.host)}get host(){return s(this)}};Ge([g()],Ye.prototype,"globalSlimmers",void 0),Ge([p()],Ye.prototype,"renderer",void 0),Ge([p()],Ye.prototype,"vegaDropdownItemStateController",void 0),Ge([p()],Ye.prototype,"vegaDropdownItemClickController",void 0),Ge([p()],Ye.prototype,"dropdownItemEventPrevent",void 0),Ge([p()],Ye.prototype,"clickEventEmitter",void 0),Ge([p()],Ye.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ye.style=':host{display:block}:host li{padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px;margin-left:4px;margin-right:4px;cursor:pointer;display:flex;align-items:center;gap:8px}:host li,:host li a{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;text-decoration:none}@media screen and (min-width: 768px) and (max-width: 1023px){:host li,:host li a{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host li,:host li a{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host li,:host li a{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host li:not(.vega-dropdown-item-disabled):hover{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}:host li:not(.vega-dropdown-item-disabled):focus{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1));outline:0}:host li.vega-dropdown-item-disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));cursor:default}:host li.vega-dropdown-item-disabled .item-prefix,:host li.vega-dropdown-item-disabled .selected-prefix{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host li.danger .item-prefix,:host li.danger .vega-dropdown-item-label{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}:host li .item-prefix{display:flex;width:16px;height:16px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));flex-shrink:1}:host li .selected-prefix{color:rgba(var(--v-text-link, 19, 98, 226, 1));width:16px;height:16px;display:flex;align-items:center;min-width:16px}:host li .item-counter{width:20px;height:20px}:host .vega-dropdown-item-label{flex-grow:1}:host .vega-dropdown-item-display-newline .vega-dropdown-item-label{overflow-wrap:break-word}:host .vega-dropdown-item-display-ellipsis .vega-dropdown-item-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .vega-dropdown-item-display-ellipsis vega-tooltip{flex-grow:1;display:block;overflow:hidden}:host .v-hidden{display:none}';var qe=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Xe extends h{constructor(){super(...arguments),this.extendItemsCount=10,this.totalCount=0,this.viewportItemsCount=0}componentWillLoad(){this.initVirtualScroll(),this.initPositionConfig()}watchSourceChange(e,t){this.isSameSource(e,t)||this.initVirtualScroll()}watchApproxItemHeight(){this.initVirtualScroll()}watchViewportMaxHeight(){this.initVirtualScroll()}getMaxStartIndex(){return this.maxStartIndex}setPositionByScrollTop(){if("virtual"===this.modeController.getMode()){const e=Math.floor(this.scrollTop/this.approxItemHeight),t=Math.min(Math.max(e-this.extendItemsCount,0),this.maxStartIndex),i=0===t?e:t+this.extendItemsCount,o=i+this.viewportItemsCount+this.extendItemsCount,r=Math.min(Math.max(this.scrollTop-this.extendItemsCount*this.approxItemHeight,0),this.maxStartIndex*this.approxItemHeight);this.positionConfig={startIndex:t,viewportStartIndex:i,endIndex:o,transformY:r}}}changeModeFromNormalToVirtual(){this.initVirtualScroll(),this.setPositionByScrollTop()}initVirtualScroll(){"virtual"===this.modeController.getMode()&&(this.totalCount=this.source.length,this.viewportItemsCount=Math.ceil(this.viewportMaxHeight/this.approxItemHeight),this.maxStartIndex=this.totalCount-this.viewportItemsCount-this.extendItemsCount)}initPositionConfig(){this.positionConfig={startIndex:0,viewportStartIndex:0,endIndex:this.viewportItemsCount+this.extendItemsCount,transformY:0},this.scrollableController.resetScrollTop()}isSameSource(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i][this.sourceItemIdentifier]!==t[i][this.sourceItemIdentifier])return!1;return!0}}qe([l()],Xe.prototype,"sourceItemIdentifier",void 0),qe([l()],Xe.prototype,"source",void 0),qe([l()],Xe.prototype,"approxItemHeight",void 0),qe([l()],Xe.prototype,"viewportMaxHeight",void 0),qe([l({writable:!0})],Xe.prototype,"positionConfig",void 0),qe([l()],Xe.prototype,"scrollTop",void 0),qe([l()],Xe.prototype,"scrollableController",void 0),qe([l()],Xe.prototype,"modeController",void 0),qe([d("componentWillLoad")],Xe.prototype,"componentWillLoad",null),qe([d("watchSourceChange")],Xe.prototype,"watchSourceChange",null),qe([d("watchApproxItemHeight")],Xe.prototype,"watchApproxItemHeight",null),qe([d("watchViewportMaxHeight")],Xe.prototype,"watchViewportMaxHeight",null);var Je=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class Qe extends h{componentDidLoad(){this.listenScrollContainer()}componentDidRender(){this.renderer.getContainerRef().scrollTop=this.scrollTop}watchScrollTop(){this.handleScroll()}watchSourceChange(){this.adjustScrollTopInVirtualMode()}watchApproxItemHeight(){this.adjustScrollTopInVirtualMode()}watchViewportMaxHeight(){this.adjustScrollTopInVirtualMode()}scrollToIndex(e){const t=this.renderer.getContainerRef();if(e>=0)if("normal"===this.modeController.getMode()){const i=t.querySelector(`:nth-child(${e+1})`);x(t,i)}else this.scrollTop=e*this.approxItemHeight}resetScrollTop(){this.scrollTop=0}listenScrollContainer(){this.renderer.getContainerRef().addEventListener("scroll",(()=>{this.scrollTop=this.renderer.getContainerRef().scrollTop}))}handleScroll(){const e=this.renderer.getContainerRef();e&&(e.scrollTop=this.scrollTop),this.positionController.setPositionByScrollTop(),this.checkIsScrollToBottom()}adjustScrollTopInVirtualMode(){"normal"!==this.modeController.getMode()&&(this.scrollTop=Math.min((this.source.length-Math.floor(this.viewportMaxHeight/this.approxItemHeight))*this.approxItemHeight,this.scrollTop))}checkIsScrollToBottom(){this.isLoading||!this.isScrollToBottomInVirtualMode()&&!this.isScrollToBottomInNormalMode()||N.notify(C.getSubject(this.host,B),{endIndex:this.source.length-1})}isScrollToBottomInVirtualMode(){return"virtual"===this.modeController.getMode()&&this.positionConfig.startIndex===this.positionController.getMaxStartIndex()}isScrollToBottomInNormalMode(){const e=this.renderer.getContainerRef();return"normal"===this.modeController.getMode()&&e.scrollHeight-this.scrollTop>=this.viewportMaxHeight}}Je([l()],Qe.prototype,"sourceItemIdentifier",void 0),Je([l()],Qe.prototype,"source",void 0),Je([l()],Qe.prototype,"host",void 0),Je([l()],Qe.prototype,"viewportMaxHeight",void 0),Je([l()],Qe.prototype,"approxItemHeight",void 0),Je([l({writable:!0})],Qe.prototype,"scrollTop",void 0),Je([l()],Qe.prototype,"positionConfig",void 0),Je([l()],Qe.prototype,"isLoading",void 0),Je([l()],Qe.prototype,"renderer",void 0),Je([l()],Qe.prototype,"positionController",void 0),Je([l()],Qe.prototype,"modeController",void 0),Je([d("componentDidLoad")],Qe.prototype,"componentDidLoad",null),Je([d("componentDidRender")],Qe.prototype,"componentDidRender",null),Je([d("watchScrollTop")],Qe.prototype,"watchScrollTop",null),Je([d("watchSourceChange")],Qe.prototype,"watchSourceChange",null),Je([d("watchApproxItemHeight")],Qe.prototype,"watchApproxItemHeight",null),Je([d("watchViewportMaxHeight")],Qe.prototype,"watchViewportMaxHeight",null),Je([d("scrollToIndex")],Qe.prototype,"scrollToIndex",null);var Ze=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class et extends h{getContainerRef(){return this.virtualScrollContainerRef}render(){return e("div",{style:{maxHeight:`${this.viewportMaxHeight}px`,overflow:"auto"},class:"virtual-scroll-container",ref:e=>this.virtualScrollContainerRef=e},"normal"===this.modeController.getMode()?this.renderNormal():this.renderVirtualScroll())}renderNormal(){return e(t,null,this.source.map(((e,t)=>this.renderItem(e,t))),this.loadingRenderer.render())}renderVirtualScroll(){return e("div",{style:{height:this.source.length*this.approxItemHeight+"px",position:"relative"}},e("div",{class:"virtual-scroll-block",style:{transform:`translateY(${this.positionConfig.transformY}px)`}},this.source.slice(this.positionConfig.startIndex,this.positionConfig.viewportStartIndex).map(((e,t)=>this.renderItem(e,this.positionConfig.startIndex+t,this.approxItemHeight))),this.source.slice(this.positionConfig.viewportStartIndex,this.positionConfig.endIndex).map(((e,t)=>this.renderItem(e,this.positionConfig.viewportStartIndex+t))),this.loadingRenderer.render()))}}Ze([l()],et.prototype,"source",void 0),Ze([l()],et.prototype,"renderItem",void 0),Ze([l()],et.prototype,"approxItemHeight",void 0),Ze([l()],et.prototype,"positionConfig",void 0),Ze([l()],et.prototype,"viewportMaxHeight",void 0),Ze([l()],et.prototype,"modeController",void 0),Ze([l()],et.prototype,"loadingRenderer",void 0);var tt=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};class it extends h{constructor(){super(...arguments),this.mode="normal"}componentWillLoad(){this.setMode()}watchVirtualizationThreshold(){this.setMode()}watchSourceChange(){this.setMode()}getMode(){return this.mode}setMode(){const e=this.mode;this.mode=this.source.length>this.virtualizationThreshold&&this.virtualizationThreshold>0?"virtual":"normal","normal"===e&&"virtual"===this.mode&&this.positionController.changeModeFromNormalToVirtual()}}tt([l()],it.prototype,"source",void 0),tt([l()],it.prototype,"virtualizationThreshold",void 0),tt([l()],it.prototype,"positionController",void 0),tt([d("componentWillLoad")],it.prototype,"componentWillLoad",null),tt([d("watchVirtualizationThreshold")],it.prototype,"watchVirtualizationThreshold",null),tt([d("watchSourceChange")],it.prototype,"watchSourceChange",null);class ot extends h{render(){return this.isLoading&&e("div",{class:"virtual-scroll-more-loading"},e("vega-flex",{gap:"size-8",direction:"row"},e("vega-loading-indicator",{size:"small"}),e("vega-font",{variant:"font-field-value",color:"text-secondary"},"Loading")))}}!function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);s>3&&n&&Object.defineProperty(t,i,n)}([l()],ot.prototype,"isLoading",void 0);var rt=function(e,t,i,o){var r,s=arguments.length,n=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(n=(s<3?r(n):s>3?r(t,i,n):r(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};const st=class{constructor(e){i(this,e),this.globalSlimmers={},this.modeController=new it,this.positionController=new Xe,this.scrollableController=new Qe,this.renderer=new et,this.loadingRenderer=new ot,this.vegaComponentUsageRuntimeMetricsSlimmer=new f,this.scrollTop=0,this.source=[],this.approxItemHeight=40,this.viewportMaxHeight=320,this.isLoading=!1,this.virtualizationThreshold=60,this.sourceItemIdentifier="key"}watchScrollTop(){}watchSourceChange(e,t){}watchApproxItemHeight(){}watchViewportMaxHeight(){}watchVirtualizationThreshold(){}async scrollToIndex(e){}render(){return a(e(r,null,this.renderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{scrollTop:["watchScrollTop"],source:["watchSourceChange"],approxItemHeight:["watchApproxItemHeight"],viewportMaxHeight:["watchViewportMaxHeight"],virtualizationThreshold:["watchVirtualizationThreshold"]}}};rt([g()],st.prototype,"globalSlimmers",void 0),rt([p()],st.prototype,"modeController",void 0),rt([p()],st.prototype,"positionController",void 0),rt([p()],st.prototype,"scrollableController",void 0),rt([p()],st.prototype,"renderer",void 0),rt([p()],st.prototype,"loadingRenderer",void 0),rt([p()],st.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),st.style=":host .virtual-scroll-more-loading{padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}";export{ze as vega_dropdown,Ke as vega_dropdown_content_box,Ne as vega_dropdown_group,Ye as vega_dropdown_item,st as vega_virtual_scroll}
@@ -1 +0,0 @@
1
- import{W as s}from"./p-5d676a94.js";import{O as o}from"./p-331a62d5.js";import{C as a}from"./p-2d0d575f.js";import{d as r}from"./p-8d0ca805.js";import{V as m}from"./p-5b71c85e.js";const p=async()=>s.handle(),n=async s=>new Promise((p=>{const n=new o(t.bind(null),(()=>{a.unregister(r.getSubject(s,m),n),p(null)}));a.register(r.getSubject(s,m),n)})),t=()=>!0;export{n as a,p as w}
@@ -1 +0,0 @@
1
- import{d as t,e,b as n,h as s,A as r,T as o,B as i,H as a,l,c,m as d,n as h,o as u,p as m,q as w,I as T,r as p,S as E,j as g,t as R,u as f,f as k,v as B,w as I,C as x,x as b,s as O,N as L,y as N,z as y,D as A,E as C,F as j,G as H,M as S,J as v,K as D,U as M,L as P,O as $,P as V,R as F}from"./p-6f8be8ea.js";import{g as U}from"./p-a4670e23.js";import{i as z}from"./p-1f83cebf.js";import{C as G}from"./p-2d0d575f.js";import{d as J}from"./p-8d0ca805.js";import{a as K,b as W}from"./p-5b71c85e.js";import{d as X}from"./p-02841589.js";import{r as Y,i as Q}from"./p-d9671d27.js";import{c as q}from"./p-bf19682d.js";import{L as Z}from"./p-6e1ab235.js";class RTEListItemBlock extends e{constructor(t,e,n){super(t,"list-item",n),this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new RTEListItemBlock(t.id,void 0,e);s.children=t.nodes.map((t=>n.from(t,s,e))),t.children&&(s.nestList=t.children.map((t=>{const e=RTEListBlock.from(t);return e.parent=s,e})));const{annotations:r}=t;return r&&Object.entries(r).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);z(n)&&s.annotationMap.set(...n)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.nestList)||void 0===t?void 0:t.map((t=>t.toJSON()))})}toHtml(){return[`<li${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),"</li>"].join("")}cloneWithNodes(t){const e=new RTEListItemBlock(U());return e.children=[],e.apply(new s(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new RTEListItemBlock(U())}clone(t){var e;const n=new RTEListItemBlock(this.id);return n.children=this.children.map((t=>t.clone(n))),n.annotationMap=super.cloneAnnotations(),n.nestList=null===(e=this.nestList)||void 0===e?void 0:e.map((t=>t.clone(n))),n.parent=t,n}}r.register(o.name,RTEListItemBlock.name,new i),r.register(a.name,RTEListItemBlock.name,new l),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEListItemBlock.name,new d),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEListItemBlock.name,new h),r.register(c.DELETE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEListItemBlock.name,new u),r.register(c.REPLACE_CHILD_NODES,RTEListItemBlock.name,new m),r.register(c.REPLACE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){t.newList.forEach((t=>{t.parent=e})),e.nestList=t.newList}}),r.register(c.MERGE_TWO_BLOCKS_NODES,RTEListItemBlock.name,new w),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.parent.apply(t)}});class _ extends R{constructor(){super(...arguments),this.type=f.LIST}renderStyle(t){return(null==t?void 0:t.standalone)?{paddingLeft:"8px",marginLeft:"16px"}:null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new _}toJSON(){}}class RTEListBlock extends k{constructor(t,e,n){super(t),this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:s}=n||{autoMatchFormat:!0};s&&this.annotationMap.set(f.LIST,new _)}static from(t,e={autoMatchFormat:!0}){const n=new RTEListBlock(t.id,t.type,e),{annotations:s}=t;return s&&Object.entries(s).forEach((([t,e])=>{const s=this.createAnnotationEntity(t,e);z(s)&&n.annotationMap.set(...s)})),n.children=t.blocks.map((t=>{const s=RTEListItemBlock.from(t,e);return s.parent=n,s})),n}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return x.from(e);case"customClass":return I.from(e);case"customStyle":return B.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(){const t=this.getBlockTag();return[`<${t}${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),`</${t}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(t){const e=new RTEListBlock(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getBlockTag(){return"number-list"===this.type?"ol":"ul"}}r.register(c.TRANSFORM_LIST_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,r=e.parent.createList(t.listType);if(n.every((t=>t.parent===e)))r.apply(new s(e.children)),e.parent.apply(new T(e,r)),e.parent.apply(new p(e)),n.forEach((t=>t.children.map((t=>t.apply(new E)))));else{const n=t.selectedBlocks.map((t=>e.parent.toListItem(t)));r.apply(new s(n)),e.parent.apply(new T(e,r)),t.selectedBlocks.forEach((t=>{t.parent.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}}}),r.register(c.TRANSFORM_PARAGRAPH_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){let n=!1,r=!1;const o=t.selectedBlocks,i=o.map((t=>(t.children.map((t=>t.apply(new E))),t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),this.toParagraph(t))));if(n)e.parent.apply(new g(e,...i));else if(r)e.parent.apply(new T(e,...i));else{const t=e.children.indexOf(o[0]),n=e.children.indexOf(o[o.length-1]),r=e.parent.createList(e.type);r.apply(new s(e.children.slice(0,t)));const a=e.parent.createList(e.type);a.apply(new s(e.children.slice(n+1))),e.parent.apply(new g(e,r,...i,a)),e.parent.apply(new p(e))}o.map((t=>{e.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}toParagraph(t){const n=new e(U(),"paragraph");return n.apply(new s(t.children)),n.annotationMap=t.annotationMap,n}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new T(e,t.imageBlockToBeInserted):t)}});class tt{}class et{constructor(t,e){this.childrenOutput=[],this.currentStrategy=t,this.currentElements=e}setChildrenOutput(t){this.childrenOutput=t}toDto(t={autoMatchFormat:!0,skipCustomAnnotations:!0}){const e=this.currentStrategy.handle(this.currentElements,t);return this.childrenOutput.length>0&&e&&this.currentStrategy.appendChildBlocks(e,this.childrenOutput.map((e=>e.toDto(t))).filter(z)),e}}const nt=new class{constructor(){this.elementToBlockStrategies=[],this.elementToNodeStrategies=[]}registerElementToBlockStrategy(t){this.hasDuplicateStrategy(t,this.elementToBlockStrategies)||this.elementToBlockStrategies.unshift(t)}registerElementToNodeStrategy(t){this.hasDuplicateStrategy(t,this.elementToNodeStrategies)||this.elementToNodeStrategies.unshift(t)}getElementToBlockStrategies(){return this.elementToBlockStrategies}getElementToNodeStrategies(){return this.elementToNodeStrategies}hasDuplicateStrategy(t,e){return e.includes(t)}},st=new class{process(t,e={autoMatchFormat:!0,skipCustomAnnotations:!0}){const n=this.getElementToBlockStrategies(),s=[];for(let r=0;r<t.length;r++){if(this.isInvalidElement(t[r]))continue;let o=0;for(const i of n)if(o=i.canHandle(t,r,e),o>0){const n=t.slice(r,r+o),a=new et(i,n);1===o&&i.shouldProceedToElementChildren()&&a.setChildrenOutput(this.process(Array.from(n[0].childNodes),e)),s.push(a),r+=o-1;break}if(0===o&&r<t.length){const n=Array.from(t[r].childNodes),o=this.process(Array.from(n),e);o.length>0&&s.push(...o)}}return s}isInvalidElement(t){return t.nodeType===Node.COMMENT_NODE||["META","STYLE"].includes(t.nodeName)}getElementToBlockStrategies(){return nt.getElementToBlockStrategies()}};class rt extends t{handleAction(t,e){const n=t.entityToBeAppended;e.children&&(n.forEach((t=>{t.parent=e})),e.children=e.children.concat(n))}}class ot extends t{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[...t.childrenToBeInserted,t.referChildren])}replaceElementWithElements(t,e,n){t.children&&(n.forEach((e=>{e.parent=t})),t.children=t.children.flatMap((t=>t===e?n:t)))}}class it extends ot{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[t.referChildren,...t.childrenToBeInserted])}}class at extends L{constructor(t,e){super(),this.type=N.IMAGE,this.size=t,this.alt=e}static from(t,e){return[N.IMAGE,new at(t,e)]}toJSON(){return z(this.alt)?{size:this.size,alt:this.alt}:{size:this.size}}clone(){return new at(this.size,this.alt)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.size?`v-rte--image-size-${this.size}`:null}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;const e={verticalAlign:"bottom"};switch(this.size){case"sm":return Object.assign(Object.assign({},e),{width:"25%"});case"md":return Object.assign(Object.assign({},e),{width:"50%"});case"lg":return Object.assign(Object.assign({},e),{width:"100%"})}}}class RTEImageNode extends y{constructor(t,e,n,s){super(t,s),this.type=A.IMAGE,this.url=e,this.parent=n}static from(t,e,n={autoMatchFormat:!0}){const s=new RTEImageNode(t.id,t.url,e),r=!!n.autoMatchFormat,o=Object.assign({},t.annotations),{size:i}=o,a=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(n[s[r]]=t[s[r]])}return n}(o,["size"]),l=Object.assign(Object.assign({},a),{size:null!=i?i:r?"md":void 0});return s.annotationMap=new Map(Object.keys(l).map((t=>"size"===t||"alt"===t?at.from(l.size,l.alt):this.createAnnotationEntity(t,l[t]))).filter(z)),s}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof at||t instanceof C)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return""==t.alt&&delete t.alt,Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"image",url:this.url})}clone(t){return new RTEImageNode(this.id,this.url,t,super.cloneAnnotations())}toHtml(){const t=this.getAnnotationByType(N.IMAGE);return`<img${super.generateAttributeString(...[t&&t.alt?`alt="${t.alt}"`:null,`src="${this.url}"`,t&&t.size?`data-size="${t.size}"`:null].filter(z))}>`}doAnnotationActionApply(t){const e=r.get(j.name,RTEImageNode.name);e&&e.execute(t,this)}doModifyActionApply(t){r.executeTheStrategy(t,this)}}r.register(c.UPDATE_IMAGE_NODE_URL,RTEImageNode.name,new class extends t{handleAction(t,e){e.url=t.url}}),r.register(j.name,RTEImageNode.name,new class extends t{handleAction(t,e){const n=t.toAnnotation();e.annotationMap.set(n.type,n)}});class lt extends S{constructor(t,e){super(),this.type=c.INSERT_NEW_PARAGRAPH,this.startContainerNode=t,this.startOffset=e}}class RTEImageBlock extends k{constructor(t){super(t),this.type="image",this.children=[]}static from(t,e={autoMatchFormat:!0}){const n=new RTEImageBlock(t.id),{annotations:s}=t;return n.children=t.nodes.map((t=>RTEImageNode.from(t,n,e))),s&&super.convertAnnotationsToMap(n.annotationMap,s),n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:"image",nodes:this.children.map((t=>t.toJSON()))})}toHtml(){const t=super.generateAttributeString(),e=this.children.map((t=>t.toHtml())).join("");return super.shouldRenderAsInternalWrapper()?e:[`<div${t}>`,e,"</div>"].join("")}isNotEmpty(){return this.children.length>0&&this.children.some((t=>t.url.length>0))}getLastNode(){return this.children[this.children.length-1]}createNewImageBlock(){return new RTEImageBlock(U())}clone(t){const e=new RTEImageBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}}r.register(c.MERGE_TWO_BLOCKS_NODES,RTEImageBlock.name,new w),r.register(c.REPLACE_CHILD_NODES,RTEImageBlock.name,new m),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEImageBlock.name,new class extends t{handleAction(t,e){t.newBlock=this.splitImageNodes(t.splitPointNode,t.startOffsetOfNode,e)}splitImageNodes(t,e,n){const s=n.children.indexOf(t);if(s>-1){const t=n.children.slice(0,s+e),r=n.children.slice(s+e);n.apply(new H(t));const o=this.cloneWithNodes(r,n);return n.parent.apply(new T(n,o)),o}}cloneWithNodes(t,e){const n=e.createNewImageBlock();return n.children=[],n.apply(new s(t)),n}}),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=new lt(t.startContainerNode,t.startOffset);e.apply(n);const s=n.newBlock;s&&(t.lineBreakNode=s.children[0])}}),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEImageBlock.name,new class extends t{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,r){const o=e.from({id:U(),type:"paragraph",nodes:[{id:U(),type:"text",text:"\n"}]});r.parent.apply(new T(r,o));const i=this.concatBlocksNodes(t.slice(1));return(0===i.length||i[0]&&""===i[0].text)&&i.push(new n(U(),"\n",o)),o.apply(new s(i)),o.children[0]}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new p(t)))})),e}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=t.splitPointNode,r=t.startOffsetOfNode,o=t.imageBlockToBeInserted;e.children.length<1?e.apply(new s(o.children)):this.isCaretPositionAtBlockEnd(e,n,r)?e.parent.apply(new T(e,o)):this.isCaretPositionAtBlockStart(e,n,r)?e.parent.apply(new g(e,o)):(e.apply(new v(n,r)),e.parent.apply(new T(e,o)))}}),r.register(a.name,RTEImageBlock.name,new l);class RTEHtmlBlock extends k{constructor(t,e){super(t),this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const n=new RTEHtmlBlock(t.id,t.htmlTag),{annotations:s}=t;return s&&super.convertAnnotationsToMap(n.annotationMap,s),n.children=this.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTEHtmlBlock(this.id,this.htmlTag);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(){const t=this.htmlTag,e=super.generateAttributeString();return RTEHtmlBlock.VOID_TAGS.has(this.htmlTag)?`<${t}${e}>`:[`<${t}${e}>`,this.children.map((t=>t.toHtml())).join(""),`</${t}>`].join("")}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,htmlTag:this.htmlTag,children:this.children.map((t=>t.toJSON()))})}}RTEHtmlBlock.VOID_TAGS=new Set(["hr","input","col"]);class ct extends S{constructor(t){super(),this.type=c.MERGE_TWO_BLOCKS_NODES,this.blockNeedToBeMerged=t}}class dt extends D{handleAction(t,e){const{startContainerNode:n}=t;n.isContentEditable()?n.isTextNode()&&this.deleteTextNodeContent(t,e):this.deleteDecoratorNodeContent(t,e);const s=e.parent;s&&e.isListItemBlock()&&0===s.children.length&&s.parent.apply(new p(s))}deleteTextNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;if(0!==s&&!n.isEmpty()){const r=n.text.slice(0,s-1)+n.text.slice(s);if(n.apply(new M(r)),r)return void(t.previousNode=n);{const s=this.getPreviousNode(n);return s&&s.parent===e&&"\n"===s.text||1===e.children.length?void(t.previousNode=n):(e.apply(new p(n)),void(t.previousNode=s))}}{let s=this.getPreviousNode(n),r=null;const o=n.isEmpty();if(e.children.length&&s&&s.parent!==e)o&&e.apply(new p(n)),e.type===s.parent.type&&s.parent.apply(new ct(e));else if(this.isContentFirstNode(n)&&o&&(r=this.getNextNode(n)),o&&e.apply(new p(n)),s&&s.isTextNode()&&(s.isEmpty()||!s.isContentEditable()&&s.parent===e)){const t=s;s=this.getPreviousNode(s),t.parent.apply(new p(t)),s||o||(r=n)}0===e.children.length&&e.parent.apply(new p(e)),s?t.previousNode=s:r&&(t.nextNode=r)}}deleteDecoratorNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;let r=this.getPreviousNode(n),o=null;if(0!==s){const t=e;this.isContentFirstNode(n)&&(o=this.getNextNode(n)),1===t.children.length?t.parent.apply(new p(t)):t.apply(new p(n))}else{const e=r;e&&!e.isContentEditable()&&(r=this.getPreviousNode(e),e.parent.apply(new p(e)),r||(t.nextNode=n))}r?t.previousNode=r:o&&(t.nextNode=o)}}class ht extends t{handleAction(t,e){const{startContainerNode:n}=t;t.newBlock=this.breakSingleBlock(n,t.startOffset,e)}breakSingleBlock(t,e,n){const s=this.getNewParagraph(t);if(s){if(this.isCaretPositionAtBlockEnd(n,t,e))n.parent.apply(new T(n,s));else{if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new v(t,e);return n.apply(s),s.newBlock}n.parent.apply(new g(n,s))}return s}}getNewParagraph(t){const e=this.createNewParagraph("");if(e){let n=e.children[0];return t.isTextNode()&&t.isContentEditable()&&(e.children=[],n=t.cloneWithText(""),n.annotationMap.delete(N.LINK),e.apply(new s([n]))),e}}}class ut extends S{constructor(t,e,n=!1){super(),this.isFlushable=!0,this.type=c.UPDATE_CURSOR_POSITION,this.immediatelyRun=!1,this.nextFocusNode=t,this.offset=e,this.immediatelyRun=n,this.immediatelyRun&&(this.isFlushable=!1)}}class mt extends t{handleAction(t,e){const{rteRange:n,nodeToBeInserted:s}=t,{startNode:r,startOffset:o}=n;if(r){const t=e;if(r.isContentEditable()&&r.isTextNode())if("\n"!==r.text&&r.text&&0!==o){const e=r.text.substring(0,o),n=r.text.substring(o),i=r.cloneWithText(e),a=r.cloneWithText(n),l=[i,s];n&&l.push(a),t.apply(new g(r,...l)),t.apply(new p(r))}else t.apply(new g(r,s));else t.apply(0!==o?new T(r,s):new g(r,s));this.updateCursorPosition(s)}}updateCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new ut(t))}}class wt extends t{handleAction(t,e){const{text:n,offset:s,decoratorNode:r}=t,o=this.createNewParagraph(n);if(o){const t=o.children[0];e.apply(0!==s?new T(r,t):new g(r,t)),this.setTheCursorPosition(t)}}setTheCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new ut(t))}}class Tt extends t{handleAction(t,e){t.newBlock=this.breakSingleListItemBlock(t.startContainerNode,t.startOffset,e)}breakSingleListItemBlock(t,e,n){const r=n.createNewListItem(),o=this.copyInlineStyleToNewNode(t);if(r.apply(new s([o])),this.isCaretPositionAtBlockEnd(n,t,e))return this.breakListItemAtEnd(r,n);if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new v(t,e);return n.apply(s),s.newBlock}return n.parent.apply(new g(n,r)),r}breakListItemAtEnd(t,n){const r=n.parent.children[n.parent.children.length-1],o=1===n.children.length&&n.children[0].isEmpty();if(n===r&&o){const r=n.parent.parent;if("list-item"!==r.type){const o=e.from({id:U(),type:"paragraph",nodes:[]});return o.apply(new s(t.children)),r.apply(new T(n.parent,o)),n.parent.apply(new p(n)),o}r.parent.apply(new T(r,t)),n.parent.apply(new p(n))}else n.parent.apply(new T(n,t));return t}copyInlineStyleToNewNode(t){const e=t.cloneWithText("");return e.annotationMap.delete(N.LINK),e}}class pt extends S{constructor(t){super(),this.type=c.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class Et extends P{handleAction(t,e){super.handleAction(t,e);const n=e.parent;0===e.children.length&&n&&n.apply("list-item"===n.type?new pt(e):new p(e))}}class gt extends t{handleAction(t,e){if(e.parent){const{blocksToBeInserted:n,startNode:s,startOffset:r}=t;let o=e;if(s===e.children[0]&&0===r)e.parent.apply(new g(e,...n));else{const t=new v(s,r);e.apply(t),e.parent.apply(new T(e,...n)),o=t.newBlock}t.futureFocusBlock=o}}}const Rt=new class{registerBlockBasicStrategies(t){r.register(c.DELETE_CHILDREN,t,t===RTEListBlock.name?new Et:new P),r.register(c.APPEND_CHILDREN,t,new rt),r.register(c.INSERT_CHILDREN_BEFORE,t,new ot),r.register(c.INSERT_CHILDREN_AFTER,t,new it),r.register(c.DELETE_BLOCK_CONTENT,t,new dt),r.register(c.INSERT_NEW_PARAGRAPH,t,t===RTEListItemBlock.name?new Tt:new ht),r.register(c.INSERT_TEXT_TO_DECORATOR_NODE,t,new wt),r.register(c.INSERT_NODE_TO_NEAREST_ROOT,t,new mt),r.register(c.PASTE_CONTENT,t,new gt)}};class ft{}class kt extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isBold(t)||e.bold?{bold:!0}:{}}isBold(t){return"STRONG"===t.nodeName||"B"===t.nodeName||"bold"===t.style.fontWeight||"700"===t.style.fontWeight||t.classList.contains("v-rte--bold")}}class Bt extends ft{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getAttributes(t);return Object.keys(e).length>0?{customAttribute:e}:{}}getAttributes(t){return t.getAttributeNames().filter((t=>"style"!==t&&"class"!==t&&this.isValidAttr(t))).reduce(((e,n)=>(e[n]=t.getAttribute(n),e)),{})}isValidAttr(t){return/^[a-zA-Z_][\w-]*$/.test(t)}}class It extends ft{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getCustomClass(t);return e.length>0?{customClass:e}:{}}getCustomClass(t){return t.classList.toString().split(" ").filter((t=>!t.includes("v-rte")&&""!==t))}}class xt extends ft{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.generateCustomStyleAnnotations(t);return Object.keys(e).length>0?{customStyle:e}:{}}generateCustomStyleAnnotations(t){const e=t.getAttribute("style");return e?e.split(";").filter(Boolean).filter((t=>" "!==t)).map((t=>{const e=t.replace(/(['"])(.*?)\1/g,"$2").split(":");return{[X(e[0].trim())]:e[1].trim().replace(";","")}})).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{}):{}}}class bt extends ft{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getIndent(t);return e?{indent:e}:{}}getIndent(t){const e=t.style;let n;if(e.marginLeft)n=e.marginLeft;else{if(!e.margin)return null;{const t=e.margin.split(" ");switch(t.length){case 4:n=t[3];break;case 2:case 3:n=t[1];break;default:n=t[0]}}}const s=Number(n.replace("px",""));return s&&s>=0?Math.floor(s/16):null}}class Ot extends ft{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getTextAlign(t);return e?{textAlign:e}:{}}getTextAlign(t){const e=t.classList;if(e.contains("v-rte--horizontal-alignment-left"))return"left";if(e.contains("v-rte--horizontal-alignment-center"))return"center";if(e.contains("v-rte--horizontal-alignment-right"))return"right";if(e.contains("v-rte--horizontal-alignment-justify"))return"justify";switch(t.style.textAlign){case"center":return"center";case"right":return"right";case"justify":return"justify";case"left":return"left";default:return null}}}class Lt extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isCode(t)||e.code?{code:!0}:{}}isCode(t){return t.classList.contains("v-rte--code")||"CODE"===t.nodeName||"PRE"===t.nodeName||"monospace"===t.style.fontFamily||"Roboto Mono"===t.style.fontFamily.replace(/["']/g,"")}}class Nt extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){const n=this.getColor(t)||e.textColor;return n?{textColor:n}:{}}getColor(t){var e;const n=null===(e=Y(t.style.color))||void 0===e?void 0:e.toUpperCase();if(n){const t=$.filter((t=>t.key!==V.key)).find((t=>t.light===n||t.dark===n));return t?t.key:null}for(const e of $)if(t.style.color.includes(e.key))return e.key;return null}}class yt extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isItalic(t)||e.italic?{italic:!0}:{}}isItalic(t){return"I"===t.nodeName||"italic"===t.style.fontStyle||"EM"===t.nodeName||t.classList.contains("v-rte--italic")}}class At extends ft{constructor(){super(...arguments),this.handlers=[new Bt,new It,new xt]}canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return e.link?{link:e.link}:"A"===t.tagName?{link:this.generateLinkAnnotations(t)}:{}}generateLinkAnnotations(t){const e={href:t.getAttribute("href")||"",groupKey:U()};return this.handlers.forEach((n=>{Object.assign(e,n.handle(t))})),e}}class Ct extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isStrikethrough(t)||e.strikethrough?{strikethrough:!0}:{}}isStrikethrough(t){return t.style.textDecoration.includes("line-through")||"S"===t.nodeName||"DEL"===t.nodeName||t.classList.contains("v-rte--strikethrough")}}class jt extends ft{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isUnderline(t)||e.underline?{underline:!0}:{}}isUnderline(t){return t.style.textDecoration.includes("underline")||"U"===t.nodeName||"INS"===t.nodeName||t.classList.contains("v-rte--underline")}}class Ht extends ft{canHandle(t,e){return!!e.autoMatchFormat&&"RTETextBlock"===t.name}handle(t){const e=this.getTextStyle(t);return e?{textStyle:e}:{}}getTextStyle(t){const e=this.getElementTypeByDataType(t);if(e)return e;const n=this.getElementTypeByNodeName(t);if(n)return n;const s=this.getElementTypeByFontSize(t);if(s)return s;return this.getElementTypeByClassName(t)||null}getElementTypeByDataType(t){return t.nodeType!==Node.TEXT_NODE&&t.hasAttribute("data-type")?t.getAttribute("data-type"):null}getElementTypeByFontSize(t){var e;switch(null===(e=t.style)||void 0===e?void 0:e.fontSize){case"36px":return"title";case"28px":return"subtitle";case"22px":return"heading-1";case"20px":return"heading-2";case"18px":return"heading-3";default:return null}}getElementTypeByNodeName(t){switch(t.nodeName){case"H1":return"heading-1";case"H2":return"heading-2";case"H3":return"heading-3";case"H4":return"heading-4";case"H5":return"heading-5";case"H6":return"heading-6";default:return null}}getElementTypeByClassName(t){if(t.className){const e=/\bv-rte--text-style-(title|subtitle|heading-1|heading-2|heading-3|paragraph)\b/.exec(t.className);if(e)return e[1]}return null}}class St extends ft{canHandle(t){return"RTEImageNode"===t.name}handle(t){const e=this.getImageSize(t);return e?{size:e}:{}}getImageSize(t){return t.getAttribute("data-size")?t.getAttribute("data-size"):null}}class vt extends ft{canHandle(t){return"RTEImageNode"===t.name}handle(t){return t.hasAttribute("alt")?{alt:t.getAttribute("alt")}:{}}}class Dt extends ft{constructor(){super(...arguments),this.customAttributeHandler=new Bt,this.customStyleAnnotationHandler=new xt,this.customClassAnnotationHandler=new It}canHandle(t,e){return"RTETextNode"===t.name&&!1===e.autoMatchFormat}handle(t,e){if(Dt.canHandleTags.includes(t.nodeName)){const n=this.generateInlineHtmlAnnotation(t,Object.assign({},e));if(n)return{inlineHtml:n}}return{}}generateInlineHtmlAnnotation(t,e){let{inlineHtml:s}=e;if(!n.supportsHtmlTag(t.nodeName.toLowerCase())||1===t.childNodes.length&&t.childNodes[0].nodeType!==Node.TEXT_NODE){const e={htmlTag:t.nodeName.toLowerCase(),customAttribute:this.customAttributeHandler.handle(t).customAttribute,customStyle:this.customStyleAnnotationHandler.handle(t).customStyle,customClass:this.customClassAnnotationHandler.handle(t).customClass};if(s){let n=s;for(;n.child&&t.parentNode&&n.child.htmlTag===t.parentNode.nodeName.toLowerCase();)n=n.child;n.child=e}else s=e}return s?Object.assign({},s):null}}Dt.canHandleTags=["A","ABBR","AUDIO","B","BDI","BDO","CITE","CODE","DEL","DFN","EMBED","EM","I","INS","KBD","MARK","METER","OUTPUT","PROGRESS","Q","S","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR","VIDEO"];const Mt=new class{constructor(){this.handlers=[new Ot,new bt,new kt,new yt,new jt,new Ct,new Nt,new At,new Lt,new St,new vt,new Bt,new It,new xt,new At,new Ht,new Dt]}generate(t,e,n={autoMatchFormat:!0}){const s="A"===e.tagName;return this.handlers.filter((t=>!(!n.autoMatchFormat&&s)||t instanceof At)).filter((r=>e.nodeType!==Node.TEXT_NODE&&r.canHandle(t,{skipCustomAnnotations:n.skipCustomAnnotations||s,autoMatchFormat:n.autoMatchFormat}))).reduce(((t,s)=>{const r=s.handle(e,n.parentAnnotations);return Object.assign(Object.assign({},t),r)}),{})}};class Pt extends tt{constructor(){super(...arguments),this.annotationHandler=new Ht}generateChildNodes(t,e,s){const r=[],o=!(!s||!1!==s.autoMatchFormat),i=Object.assign({},e);return t.forEach((t=>{const a=nt.getElementToNodeStrategies().find((e=>e.canHandle([t],0,s)>0));let l=null;if(a&&(l=a.handle([t],s,i)),l)r.push(l);else if(Q(t)&&t.childNodes.length>0){const a=Mt.generate(n,t,Object.assign({parentAnnotations:o?{inlineHtml:i.inlineHtml,link:i.link,code:i.code}:e},s));r.push(...this.generateChildNodes(Array.from(t.childNodes),a,s))}})),r}matchTextBlockType(t){var e;return null!==(e=this.annotationHandler.handle(t).textStyle)&&void 0!==e?e:"paragraph"}}class $t extends Pt{canHandle(t,e,n){const s=t[e];return!n.autoMatchFormat&&("DIV"!==s.nodeName||s.childNodes.length>0&&"IMG"!==s.childNodes[0].nodeName)&&$t.canHandleTags.includes(t[e].nodeName)?1:0}handle(t,e){return RTEHtmlBlock.from(this.generateHtmlBlock(t[0],e),e)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}generateHtmlBlock(t,e){return{id:U(),type:"html-block",htmlTag:t.nodeName.toLowerCase(),annotations:Mt.generate(RTEHtmlBlock,t,e),children:[]}}}$t.canHandleTags=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","BUTTON","CAPTION","COL","COLGROUP","DIV","DD","DETAILS","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","HEADER","HR","HX","INPUT","LEGEND","MAIN","NAV","PRE","SECTION","SUMMARY","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR"];class Vt extends Pt{canHandle(t,e){return"PRE"!==t[e].tagName&&"CODE"!==t[e].tagName||!t[e].hasAttribute("data-language")?0:1}handle(t){const e=t[0];if(e){const t=e.textContent,n=e.dataset.language;return b.from({id:U(),type:"code-block",content:t,language:n})}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}class Ft extends Pt{createRTEImageBlock(t,e){const n=!(e&&e.autoMatchFormat||!t.parentNode||"DIV"===t.parentNode.nodeName);return RTEImageBlock.from({id:U(),type:"image",nodes:[{id:U(),type:"image",url:t.src,annotations:Mt.generate(RTEImageNode,t,e)}],annotations:Object.assign(Object.assign({},Mt.generate(RTEImageBlock,t.parentElement,e)),{internalWrapper:n})},e)}}class Ut extends Pt{canHandle(t,e){let n=0;for(let s=e;s<t.length;s++){const e=t[s];if(e.nodeType!==Node.TEXT_NODE&&(!Ut.canHandleTags.includes(e.nodeName)||""===e.textContent&&e.querySelector("IMG")))break;n++}return n}handle(t,s){const r=t[0].parentElement,o=s&&s.autoMatchFormat,i=this.generateChildNodes(t,o?Mt.generate(n,r,Object.assign(Object.assign({},s),{skipCustomAnnotations:!0})):{},s),a=o?super.matchTextBlockType(r):this.matchTextBlockTypeByTagName(r),l=!o&&!a;return e.from(Object.assign({id:U(),type:a||"paragraph",nodes:i},l?{annotations:{internalWrapper:l}}:{annotations:Mt.generate(e,r,s)}),s)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}matchTextBlockTypeByTagName(t){switch(t.nodeName){case"P":return"paragraph";default:return null}}}Ut.canHandleTags=[...Dt.canHandleTags,"CODE","A","VEGA-RICH-TEXT-LINK-EDITOR","BR"];class zt extends tt{shouldProceedToElementChildren(){return!1}appendChildBlocks(){}generateTextNode(t,e){return{id:U(),type:"text",text:t,annotations:e}}}F.registerRTEDTOClass("paragraph",e),F.registerRTEDTOClass("title",e),F.registerRTEDTOClass("subtitle",e),F.registerRTEDTOClass("heading-1",e),F.registerRTEDTOClass("heading-2",e),F.registerRTEDTOClass("heading-3",e),F.registerRTEDTOClass("heading-4",e),F.registerRTEDTOClass("heading-5",e),F.registerRTEDTOClass("heading-6",e),F.registerRTEDTOClass("heading-6",e),F.registerRTEDTOClass("list-item",RTEListItemBlock),F.registerRTEDTOClass("bullet-list",RTEListBlock),F.registerRTEDTOClass("number-list",RTEListBlock),F.registerRTEDTOClass("image",RTEImageBlock),F.registerRTEDTOClass("code-block",b),F.registerRTEDTOClass("html-block",RTEHtmlBlock),F.registerRTEDTOClass("text",n),F.registerRTEDTOClass("image",RTEImageNode),Rt.registerBlockBasicStrategies(e.name),Rt.registerBlockBasicStrategies(RTEListBlock.name),Rt.registerBlockBasicStrategies(RTEListItemBlock.name),Rt.registerBlockBasicStrategies(RTEImageBlock.name),Rt.registerBlockBasicStrategies(RTEHtmlBlock.name),nt.registerElementToBlockStrategy(new Ut),nt.registerElementToBlockStrategy(new class extends Ft{canHandle(t,e){const n=t[e];return n.nodeType===Node.ELEMENT_NODE&&""===n.textContent&&n.querySelector("img")?1:0}handle(t,e){const n=t[0].querySelector("img");return this.createRTEImageBlock(n,e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Ft{canHandle(t,e){return"VEGA-RICH-TEXT-IMAGE-EDITOR"===t[e].tagName?1:0}handle(t,e){const n=t[0],s=n.querySelector("img");if(z(s))return RTEImageBlock.from({id:U(),type:"image",nodes:[{id:U(),type:"image",url:s.src,annotations:Mt.generate(RTEImageNode,n,e)}],annotations:Mt.generate(RTEImageBlock,n.parentElement,e)},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Ft{canHandle(t,e){return"IMG"===t[e].tagName?1:0}handle(t,e){return this.createRTEImageBlock(t[0],e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return["heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","title","subtitle"].includes(super.matchTextBlockType(t[e]))?1:0}handle(t,n){const s=this.generateChildNodes(Array.from(t[0].childNodes),{},n);return 0===s.length?null:e.from({id:U(),type:super.matchTextBlockType(t[0]),nodes:s,annotations:Mt.generate(e,t[0],n)},n)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new Vt),nt.registerElementToBlockStrategy(new class extends Vt{canHandle(t,e){return"VEGA-CODE-BLOCK"===t[e].tagName&&0==!!t[e].querySelector("vega-code-block")||this.isCodeBlockContainer(t[e])?1:0}handle(t){const e=this.isCodeBlockContainer(t[0])?t[0].querySelector("vega-code-block"):t[0],n=e.querySelector("code");if(n)return super.handle([n]);if(e.hasAttribute("data-content")){const t=document.createElement("code");return t.textContent=e.dataset.content,t.dataset.language=e.dataset.language,super.handle([t])}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}isCodeBlockContainer(t){return"PRE"===t.tagName&&t.classList.contains("code-block-container")&&1===t.querySelectorAll("vega-code-block").length}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){if(!["UL","OL"].includes(t[e].parentElement.nodeName)&&t.some((t=>"LI"===t.nodeName))){let n=0;for(let s=e;s<t.length&&"LI"===t[s].nodeName;s++)n++;return n}return"LI"===t[e].tagName?1:0}handle(t,e){const n=t[0];return["UL","OL"].includes(n.parentElement.nodeName)?RTEListItemBlock.from(this.generateListItemBlockDTO(n,e),e):this.generateWithListBlock(t,e)}appendChildBlocks(t,e){t.nestList=e.filter((t=>["bullet-list","number-list"].includes(t.type)))}shouldProceedToElementChildren(){return!0}generateWithListBlock(t,e){return RTEListBlock.from({id:U(),type:"bullet-list",blocks:t.map((t=>this.generateListItemBlockDTO(t,e)))},e)}generateListItemBlockDTO(t,e){return{id:U(),type:"list-item",annotations:Mt.generate(RTEListItemBlock,t,e),nodes:this.generateChildNodes(Array.from(t.childNodes.length?t.childNodes:[t]).filter((t=>!["UL","OL"].includes(t.nodeName))),Mt.generate(n,t,Object.assign(Object.assign({},e),{skipCustomAnnotations:!0})),e)}}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){const n=t[e],s=n.parentElement,r="LI"!==n.nodeName,o=n.nodeType===Node.TEXT_NODE&&""===n.textContent.trim(),i=z(s)&&["UL","OL"].includes(s.nodeName);return r&&!o&&i?1:0}handle(t,e){const n=this.generateChildNodes(t,{},e);return RTEListItemBlock.from({id:U(),type:"list-item",nodes:n,annotations:{}},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return"OL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:U(),type:"number-list",blocks:[],annotations:Mt.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return"UL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:U(),type:"bullet-list",blocks:[],annotations:Mt.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),nt.registerElementToBlockStrategy(new $t),nt.registerElementToNodeStrategy(new class extends zt{canHandle(t,e){const n=t[e];return!Q(n)||"BR"!==n.nodeName&&0!==n.childNodes.length?0:1}handle(t,e,s){const r=!(!e||!1!==e.autoMatchFormat),o=Object.assign({},s),i=t[0],a=Mt.generate(n,i,Object.assign({parentAnnotations:r?{inlineHtml:o.inlineHtml,link:o.link,code:o.code}:s},e));if("BR"===i.nodeName)return this.generateTextNode("\n",a);if(0===i.childNodes.length){const t=r?q(Object.assign(Object.assign({},n.supportsHtmlTag(i.nodeName.toLowerCase())?a:{}),{inlineHtml:a.inlineHtml,plainText:z(a.inlineHtml)})):a;return Object.assign({},this.generateTextNode("",t))}}}),nt.registerElementToNodeStrategy(new class extends zt{canHandle(t,e){return t[e].nodeType===Node.TEXT_NODE?1:0}handle(t,e,s){const r=Object.assign({},s),o=!(!e||!1!==e.autoMatchFormat),i=t[0],a=i.parentNode.nodeName.toLowerCase(),l=o&&!n.supportsHtmlTag(a),c=this.generateTextNode(String(i.textContent),o?q(Object.assign(Object.assign({},"span"===a?r:{link:r.link,code:"code"===a?r.code:void 0}),{inlineHtml:r.inlineHtml,plainText:l||void 0})):r);return Object.assign({},c)}});class Gt{static preserve(t){const e=t.replace(/\s+style=/g," data-style=");return new Jt(e)}}class Jt{constructor(t){this.processedHtml=t}getProcessedHtml(){return this.processedHtml}restore(t){this.walkNodes(t)}walkNodes(t){t.forEach((t=>{if(Q(t)){const e=t.getAttribute("data-style");e&&(t.style.cssText=e,t.removeAttribute("data-style")),t.children.length>0&&this.walkNodes(Array.from(t.children))}}))}}class Kt{process(t){return t.replace(/(<[^>]+>)(\s+)(<[^>]+>)/g,((t,e,n,s)=>{const r=this.extractOpeningTagName(e),o=this.extractClosingTagName(s);return r&&o&&r===o?`${e}${n}${s}`:`${e}${s}`}))}extractOpeningTagName(t){const e=t.match(/<(\w[\w-]*)/);return e?e[1]:null}extractClosingTagName(t){const e=t.match(/<\/(\w[\w-]*)/);return e?e[1]:null}}class Wt{process(t){return t.replace(/(>)[\n\t]+(?=.)/g,"$1")}}class Xt{process(t){return t.replace(/(.?)[\n\t]+(?=<)/g,"$1")}}class Yt{constructor(){this.processors=[new Kt,new Wt,new Xt]}clean(t){if(!t||0===t.trim().length)return t;let e,n=t;do{e=n;for(const t of this.processors)n=t.process(n)}while(n!==e);return n}}class VegaRTEContent{constructor(t){t.forEach((t=>{t.parent=this})),this.children=t}static fromJSON(t,e={autoMatchFormat:!0}){const n=t.map((t=>{const n=F.getRTEBlockClass(t.type);if(n)return n.from(t,e);throw new Error(`[Vega] Unknown block type: ${t.type}`)}));return new VegaRTEContent(n)}static createEmptyContent(t={autoMatchFormat:!0}){return VegaRTEContent.fromJSON([{id:U(),type:"paragraph",annotations:{internalWrapper:!t.autoMatchFormat},nodes:[{id:U(),annotations:{plainText:!t.autoMatchFormat},type:"text",text:""}]}],t)}static fromHtml(t,e={autoMatchFormat:!0,skipCustomAnnotations:!1}){const n=(new Yt).clean(t),s=Gt.preserve(n),r=s.getProcessedHtml(),o=(new DOMParser).parseFromString(r,"text/html").body,i=Array.from(o.childNodes);s.restore(i);const a=st.process(i,e).filter(z).map((t=>t.toDto(e))).filter(z);return new VegaRTEContent(a)}clone(t=!1){return new VegaRTEContent(t?this.children.map((t=>t.clone(this))):[...this.children])}toJSON(){return this.children.map((t=>t.toJSON()))}toHtml(t){return t&&Z.warn("The 'options' parameter in toHtml method is deprecated and will be removed in the future."),this.isEmpty()?"":this.children.map((t=>t.toHtml())).join("")}isEmpty(){return 0===this.children.length||1===this.children.length&&!this.children[0].isNotEmpty()}apply(t){if(r.executeTheStrategy(t,this),t.executedFlag&&t.isFlushable){const t=O.getDOMByEntity(this);t&&G.notify(J.getSubject(t,W),{})}}getLastNode(){return 0===this.children.length?null:this.children[this.children.length-1].getLastNode()}toListItem(t){t.children.map((t=>t.apply(new E)));const e=new RTEListItemBlock(U());return e.apply(new s(t.children)),e.annotationMap=t.annotationMap,e}createList(t){return new RTEListBlock(U(),t)}findNodeById(t){return this.findNodeInBlocksById(t,this.children)}findNodeInBlocksById(t,e){for(const n of e){if("children"in n)for(const e of n.children)if(e.id===t)return e;if(n instanceof RTEListItemBlock&&n.nestList)for(const e of n.nestList){const n=this.findNodeInBlocksById(t,e.children);if(n)return n}if(n instanceof RTEListBlock&&n.children){const e=this.findNodeInBlocksById(t,n.children);if(e)return e}}return null}}r.register(c.DELETE_CHILDREN,VegaRTEContent.name,new P),r.register(c.APPEND_CHILDREN,VegaRTEContent.name,new rt),r.register(c.INSERT_CHILDREN_BEFORE,VegaRTEContent.name,new ot),r.register(c.INSERT_CHILDREN_AFTER,VegaRTEContent.name,new it),r.register(c.TRANSFORM_TO_CODE_BLOCK,VegaRTEContent.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,s=new b(U(),this.getCodeContent(n),"plainText");e.apply(new g(n[0],s)),t.newCodeBlock=s,this.removeSelectBlocks(n,e)}getCodeContent(t){return t.filter((t=>"image"!==t.type&&"list-item"!==t.type)).map((t=>t.children.map((t=>t.text)).join(""))).join("\n")}removeSelectBlocks(t,e){for(let n=0;n<t.length;n++)e.apply(new p(t[n]))}}),r.register(c.UPDATE_CURSOR_POSITION,VegaRTEContent.name,new class extends t{handleAction(t,e){const{offset:n,nextFocusNode:s,immediatelyRun:r}=t,o=O.getDOMByEntity(e);o&&G.notify(J.getSubject(o,K),{node:s,offset:n,updateDirectly:r})}});const Qt=new class{constructor(){this.RTE_DTO_RENDERER_MAP=new Map,this.RTE_TOOLBAR_BUTTON_RENDERER_MAP=new Map}registerRTEDTORenderer(t,e){const n=this.RTE_DTO_RENDERER_MAP.get(t);if(e&&n&&n.constructor.name!==e.constructor.name)throw new Error(`Renderer for type ${t} is already registered with a different class(${n.constructor.name}).`);this.RTE_DTO_RENDERER_MAP.set(t,e)}registerRTEToolbarButtonRenderer(t,e){this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.set(t,e)}getRTERenderer(t){return this.RTE_DTO_RENDERER_MAP.get(t)}getRTEToolbarButtonRenderer(t){return this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.get(t)}};export{Pt as B,nt as E,lt as I,ct as M,Qt as R,Gt as S,ut as U,VegaRTEContent as V,Rt as a,tt as b,RTEListItemBlock as c,RTEImageBlock as d,RTEListBlock as e,RTEImageNode as f,at as g,Mt as h,st as i}
@@ -1 +0,0 @@
1
- import{t}from"./p-b75ee3ba.js";class e{static sanitizeHtmlLabel(t){return this.sanitize(t,this.LABEL_ALLOWED_TAGS)}static sanitize(e,s){if(""===e.trim())return"";const n=t();if(!n)return"";const i=(new DOMParser).parseFromString(e,"text/html"),r=n.createDocumentFragment();return i.body.childNodes.forEach((t=>{const e=this.sanitizeNode(t,s,n);e&&r.appendChild(e)})),this.serializeFragment(r,n)}static sanitizeNode(t,e,s){switch(t.nodeType){case Node.TEXT_NODE:return t.cloneNode(!0);case Node.ELEMENT_NODE:return this.sanitizeElement(t,e,s);default:return null}}static sanitizeElement(t,e,s){if(!e.has(t.tagName)){const n=s.createDocumentFragment();return t.childNodes.forEach((t=>{const i=this.sanitizeNode(t,e,s);i&&n.appendChild(i)})),n}const n=s.createElement(t.tagName.toLowerCase());return t.childNodes.forEach((t=>{const i=this.sanitizeNode(t,e,s);i&&n.appendChild(i)})),n}static serializeFragment(t,e){var s;const n=e.createElement("div");return n.appendChild(t),0===n.children.length?null!==(s=n.textContent)&&void 0!==s?s:"":n.innerHTML}}function s(t){return e.sanitizeHtmlLabel(t)}e.LABEL_ALLOWED_TAGS=new Set(["B","I","STRONG","EM"]);export{s}
@@ -1 +0,0 @@
1
- import{h as e,F as t,r as i,c as n,H as s,g as o}from"./p-6b2342e0.js";import{s as a}from"./p-519a7d55.js";import{c as r,V as l,M as c,I as d}from"./p-6e1ab235.js";import{V as h,I as g}from"./p-d849e0f5.js";import{c as m}from"./p-66fa700b.js";import{g as p}from"./p-8d0ca805.js";import{P as f}from"./p-10ac8b57.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-fe12eff6.js";import"./p-b75ee3ba.js";import"./p-331a62d5.js";import"./p-d9671d27.js";import"./p-40f39194.js";import"./p-ed45b3b6.js";var v=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class b extends l{render(){var t;return e("div",{class:"vega-segment-control-container"},null===(t=this.segments)||void 0===t?void 0:t.map((e=>this.segmentRenderer.render(e))))}}v([r()],b.prototype,"segments",void 0),v([r()],b.prototype,"segmentRenderer",void 0);var x=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class u extends l{componentWillLoad(){this.setDefaultSelected()}watchSegments(){this.setDefaultSelected()}watchSelected(){this.changeEventEmitter.emit(this.selected)}setSelected(e){this.selected=e.key}setDefaultSelected(){var e;(null===(e=this.segments)||void 0===e?void 0:e.length)>0&&!this.segments.find((e=>e.key===this.selected))&&(this.selected=this.segments[0].key)}}x([r({writable:!0})],u.prototype,"selected",void 0),x([r()],u.prototype,"segments",void 0),x([r()],u.prototype,"changeEventEmitter",void 0),x([c("componentWillLoad")],u.prototype,"componentWillLoad",null),x([c("watchSegments")],u.prototype,"watchSegments",null),x([c("watchSelected")],u.prototype,"watchSelected",null);var w=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class j extends l{watchSegments(){this.setIsOverflowBlockSegments()}watchBlock(){this.setIsOverflowBlockSegments()}watchSize(){this.setIsOverflowBlockSegments()}setIsOverflowBlockSegments(){this.isOverflowBlockSegments=this.isExceedContainerWidth()}isExceedContainerWidth(){if(this.block){const e=this.host.shadowRoot.querySelector(".vega-segment-control-container");return e.clientWidth<e.children.length*j.SEGMENTS_OVERFLOW_THRESHOLD[this.size]+4*(e.children.length-1)+5}return!1}}j.SEGMENTS_OVERFLOW_THRESHOLD={medium:101.9,small:82},w([r()],j.prototype,"host",void 0),w([r()],j.prototype,"block",void 0),w([r()],j.prototype,"size",void 0),w([r({writable:!0})],j.prototype,"isOverflowBlockSegments",void 0),w([c("watchSegments")],j.prototype,"watchSegments",null),w([c("watchBlock")],j.prototype,"watchBlock",null),w([c("watchSize")],j.prototype,"watchSize",null);var y=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class S extends l{render(t){return e("button",{key:t.key,class:{"vega-segment":!0,selected:this.selected===t.key,disabled:t.disabled,[`${this.size}`]:!0},onClick:()=>this.selectedController.setSelected(t),disabled:t.disabled},this.renderSegments(t))}renderSegments(i){return e(t,null,(this.isOverflowBlockSegments||!this.isOverflowBlockSegments&&"text-only"!==this.variant)&&i.icon&&this.renderIcon(i),(this.isOverflowBlockSegments&&!i.icon||!this.isOverflowBlockSegments&&"icon-only"!==this.variant)&&i.text&&this.renderText(i))}renderIcon(t){return e("vega-tooltip",{text:t.text,trigger:t.text&&(this.isOverflowBlockSegments||!this.isOverflowBlockSegments&&"icon-only"===this.variant)?"hover":"none",placement:["bottom","top"],disableInteractive:!1},e("vega-icon",{icon:t.icon,size:"size-16"}))}renderText(t){return e("vega-text",{overflow:"ellipsis",tooltip:{placement:["bottom","top"]}},t.text)}}y([r()],S.prototype,"host",void 0),y([r()],S.prototype,"size",void 0),y([r()],S.prototype,"selected",void 0),y([r()],S.prototype,"variant",void 0),y([r()],S.prototype,"block",void 0),y([r()],S.prototype,"isOverflowBlockSegments",void 0),y([r()],S.prototype,"selectedController",void 0);var k=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const R=class{constructor(e){i(this,e),this.vegaChange=n(this,"vegaChange",7),this.change=n(this,"change",7),this.globalSlimmers={},this.segmentControlRenderer=new b,this.segmentOverflowController=new j,this.segmentRenderer=new S,this.selectedController=new u,this.changeEventEmitter=m(R,p),this.pageResizeObserverSlimmer=new f({callback:()=>{this.segmentControlWidth=this.host.clientWidth,this.segmentOverflowController.setIsOverflowBlockSegments()},shouldTrigger:()=>this.host.clientWidth!==this.segmentControlWidth}),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.segmentControlWidth=0,this.isOverflowBlockSegments=!1,this.block=!1,this.size="medium",this.segments=[],this.variant="default"}watchBlock(){}watchSize(){}watchSegments(){}watchSelected(){}componentWillLoad(){}render(){return a(e(s,{class:{"vega-segment-control-block":this.block}},this.segmentControlRenderer.render()),this.host)}get host(){return o(this)}static get watchers(){return{block:["watchBlock"],size:["watchSize"],segments:["watchSegments"],selected:["watchSelected"]}}};k([g()],R.prototype,"globalSlimmers",void 0),k([d()],R.prototype,"segmentControlRenderer",void 0),k([d()],R.prototype,"segmentOverflowController",void 0),k([d()],R.prototype,"segmentRenderer",void 0),k([d()],R.prototype,"selectedController",void 0),k([d()],R.prototype,"changeEventEmitter",void 0),k([d()],R.prototype,"pageResizeObserverSlimmer",void 0),k([d()],R.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),R.style=':host{display:inline-block}.vega-segment-control-container{display:flex;gap:4px;border-radius:9999px;background-color:rgba(var(--v-bg-segment-control, 89, 96, 99, 0.1));padding:3px}:host(.vega-segment-control-block){display:block}:host(.vega-segment-control-block) .vega-segment{flex-basis:0;flex-grow:1}.vega-segment{display:flex;align-items:center;justify-content:center;gap:8px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));border-radius:9999px;cursor:pointer;text-align:center;border-width:1px;border-style:solid;background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-color:transparent}.vega-segment vega-icon{vertical-align:middle}.vega-segment.medium{padding-left:24px;padding-right:24px;padding-top:8px;padding-bottom:8px;font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-segment.medium{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-segment.medium{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-segment.medium{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}.vega-segment.small{padding-left:16px;padding-right:16px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;padding-top:3px;padding-bottom:3px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-segment.small{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-segment.small{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-segment.small{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-segment.disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));pointer-events:none}.vega-segment:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.vega-segment:hover{background-color:rgba(var(--v-bg-segment-hover, 205, 209, 211, 1))}.vega-segment.selected{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-chip, 205, 209, 211, 1))}';export{R as vega_segment_control}
@@ -1 +0,0 @@
1
- import{h as t,H as e,r as i,c as s,g as r}from"./p-6b2342e0.js";import{c as n,M as o,V as a,I as h}from"./p-6e1ab235.js";import{V as p,I as l}from"./p-d849e0f5.js";import{s as d}from"./p-519a7d55.js";import{D as u,G as c,H as f,g as m,J as v,K as g}from"./p-8d0ca805.js";import{F as b}from"./p-a528714c.js";import{C as x}from"./p-2d0d575f.js";import{c as w}from"./p-66fa700b.js";import{K as j}from"./p-920719ad.js";import{C as y}from"./p-c9b6b5a9.js";import{F as I}from"./p-6e136980.js";import{R}from"./p-280cbcdb.js";import"./p-331a62d5.js";import"./p-d9671d27.js";import"./p-6a334573.js";import"./p-fe12eff6.js";import"./p-b75ee3ba.js";import"./p-476a173a.js";import"./p-1f83cebf.js";import"./p-ed45b3b6.js";import"./p-40f39194.js";import"./p-d884c644.js";import"./p-f69f84a7.js";import"./p-a4670e23.js";import"./p-5f377954.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-02841589.js";import"./p-5b71c85e.js";import"./p-10ac8b57.js";import"./p-abd7aeaa.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-3bf66be2.js";var V=function(t,e,i,s){var r,n=arguments.length,o=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n<3?r(o):n>3?r(e,i,o):r(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o};class C extends a{constructor(){super(...arguments),this.vegaInputRefs=[],this.focusInputPasscode=()=>{this.vegaInputRefs[0]&&this.vegaInputRefs[0].doFocus()},this.handleVegaFocus=t=>()=>{0!==t&&(this.vegaInputRefs[t].tabIndex=null);const e=this.vegaInputValues.get(t)?t:this.valueController.getFirstEmptyIndex(),i=-1===e?this.length-1:e;this.currentIndex=i,this.vegaInputRefs[i].doFocus()},this.handleVegaBlur=t=>()=>{0!==t&&(this.vegaInputRefs[t].tabIndex=-1)},this.handleVegaChange=t=>e=>{var i;const s=e.detail||"";if(2===s.length||1===s.length&&!this.vegaInputValues.get(t)){const e=this.generateNewInputValue(t,s);this.vegaInputValues.set(t,e),null===(i=this.vegaInputRefs[t+1])||void 0===i||i.doFocus()}},this.handleVegaPaste=()=>t=>{t.preventDefault();const e=t.detail.getData("text");this.valueController.setValuesArray(e),this.vegaInputRefs[this.value.length<this.length?this.value.length:this.length-1].doFocus()}}watchLengthAndInputType(){this.valueController.setValuesArray(this.value)}getVegaInputRefs(){return this.vegaInputRefs}getCurrentIndex(){return this.currentIndex}getInputPasscodeContainerRef(){return this.inputPasscodeContainerRef}render(){const i=Array.from({length:this.length}).map(((e,i)=>t("vega-input",{class:"small"===this.size?"small":"medium",key:i,tabIndex:0!==i?-1:null,showClearIcon:!1,disabled:this.disabled,value:this.vegaInputValues.get(i)||"",autocomplete:0===i?"one-time-code":"off",inputmode:"text"===this.inputType?"text":"numeric",ref:t=>{this.vegaInputRefs[i]=t,u.addUniqueObserverToNode(t,c,this.handleVegaFocus(i)),u.addUniqueObserverToNode(t,f,this.handleVegaBlur(i)),u.addUniqueObserverToNode(t,m,this.handleVegaChange(i)),u.addUniqueObserverToNode(t,v,this.handleVegaPaste())},maskConfig:{type:"custom-formatter",formatter:t=>this.valueController.valueValidationFilter(t)}})));return t(e,null,this.label&&this.renderLabel(),t("vega-flex",{class:"vega-input-passcode-container",direction:"row",gap:"size-8",ref:t=>this.inputPasscodeContainerRef=t},i),this.hint&&t("vega-hint",null,this.hint))}renderLabel(){return t("vega-field-label",{onClick:this.focusInputPasscode,isFieldRequired:this.required,disabled:this.disabled,label:this.label})}generateNewInputValue(t,e){if(2===e.length){for(let i=0;i<e.length;i++)if(e[i]!==this.vegaInputValues.get(t))return e[i];return this.vegaInputValues.get(t)}return e}}V([n()],C.prototype,"host",void 0),V([n()],C.prototype,"value",void 0),V([n()],C.prototype,"label",void 0),V([n()],C.prototype,"required",void 0),V([n()],C.prototype,"length",void 0),V([n()],C.prototype,"disabled",void 0),V([n()],C.prototype,"hint",void 0),V([n()],C.prototype,"size",void 0),V([n()],C.prototype,"inputType",void 0),V([n()],C.prototype,"vegaInputValues",void 0),V([n()],C.prototype,"valueController",void 0),V([o("watchLengthAndInputType")],C.prototype,"watchLengthAndInputType",null);var A=function(t,e,i,s){var r,n=arguments.length,o=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n<3?r(o):n>3?r(e,i,o):r(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o};class k extends a{componentWillLoad(){this.setValuesArray(this.value),this.value=this.vegaInputValues.join("")}watchValue(){this.setValuesArray(this.value),this.changeEventEmitter.emit(this.value),x.notify(b,{host:this.host,detail:this.value}),this.value.length===this.length&&this.completeEventEmitter.emit(this.value)}watchVegaInputValues(){for(let t=0;t<this.length;t++)this.inputPasscodeRenderer.getVegaInputRefs()[t]&&(this.inputPasscodeRenderer.getVegaInputRefs()[t].value=this.vegaInputValues.get(t)||"");this.value=this.vegaInputValues.join("")}setValuesArray(t){const e=this.valueValidationFilter(t).slice(0,this.length).split("");this.vegaInputValues.setAll(e)}valueValidationFilter(t){return t.replace("text"===this.inputType?/\s/g:/\D/g,"")}getFirstEmptyIndex(){var t;const{length:e}=this;return null!==(t=Array.from({length:e},((t,e)=>this.vegaInputValues.get(e)||"")).findIndex((t=>!t||""===t)))&&void 0!==t?t:-1}}A([n()],k.prototype,"host",void 0),A([n({writable:!0})],k.prototype,"value",void 0),A([n({writable:!0})],k.prototype,"vegaInputValues",void 0),A([n()],k.prototype,"length",void 0),A([n()],k.prototype,"inputType",void 0),A([n()],k.prototype,"inputPasscodeRenderer",void 0),A([n()],k.prototype,"changeEventEmitter",void 0),A([n()],k.prototype,"completeEventEmitter",void 0),A([o("componentWillLoad")],k.prototype,"componentWillLoad",null),A([o("watchValue")],k.prototype,"watchValue",null),A([o("watchVegaInputValues")],k.prototype,"watchVegaInputValues",null);var L=function(t,e,i,s){var r,n=arguments.length,o=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n<3?r(o):n>3?r(e,i,o):r(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o};class E extends j{constructor(){super((t=>[{keyCode:"Backspace",activeElementInScope:[this.inputPasscodeRenderer.getInputPasscodeContainerRef()],eventName:"keydown",callback:e=>{t.deletePasscode(e)}},{keyCode:["ArrowLeft","ArrowRight"],activeElementInScope:[this.inputPasscodeRenderer.getInputPasscodeContainerRef()],callback:e=>{t.controlDirectionByKeyboard(e)}}])),this.deletePasscode=t=>{t.preventDefault();const e=this.inputPasscodeRenderer.getCurrentIndex();this.vegaInputValues.get(e)?this.vegaInputValues.withMutation((t=>{for(let i=e;i<this.length-1;i++)t[i]=t[i+1];t[this.length-1]=""})):!this.vegaInputValues.get(e)&&e>0&&(this.vegaInputValues.set(e-1,""),this.inputPasscodeRenderer.getVegaInputRefs()[e-1].doFocus())}}controlDirectionByKeyboard(t){const e=this.inputPasscodeRenderer.getCurrentIndex(),i=this.inputPasscodeRenderer.getVegaInputRefs();"ArrowLeft"===t.key&&e>0&&i[e-1].doFocus(),"ArrowRight"===t.key&&this.vegaInputValues.get(e)&&e<this.length-1&&i[e+1].doFocus()}}L([n()],E.prototype,"value",void 0),L([n()],E.prototype,"length",void 0),L([n()],E.prototype,"vegaInputValues",void 0),L([n()],E.prototype,"valueController",void 0),L([n()],E.prototype,"inputPasscodeRenderer",void 0);class T{constructor(t,e){this.length=0,this.array=[],t&&(this.array=t,this.length=t.length),e&&(this.onMutate=e)}onMutate(t){}push(...t){return this.withMutation((e=>{e.push(...t)}))}pop(){return this.withMutation((t=>{t.length>0&&t.pop()}))}set(t,e){return this.withMutation((i=>{t>=0&&(i[t]=e)}))}setAll(t){return this.withMutation((e=>{e.length=0;for(let i=0;i<t.length;i++)e[i]=t[i]}))}clear(){return this.withMutation((t=>{t.length=0}))}withMutation(t){const e=[...this.array];t(e);const i=new T(e,this.onMutate);return this.onMutate(i),i}get(t){return this.array[t]}join(t){return this.array.join(t)}toArray(){return this.array}}var z=function(t,e,i,s){var r,n=arguments.length,o=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n<3?r(o):n>3?r(e,i,o):r(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o};const O=class{constructor(t){i(this,t),this.vegaChange=s(this,"vegaChange",7),this.change=s(this,"change",7),this.vegaComplete=s(this,"vegaComplete",7),this.complete=s(this,"complete",7),this.globalSlimmers={},this.formFieldController=new I({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new R:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputPasscodeRenderer.getInputPasscodeContainerRef(),touchableAreaGetter:()=>[...this.inputPasscodeRenderer.getVegaInputRefs()]}),this.vegaComponentUsageRuntimeMetricsSlimmer=new p,this.keyboardController=new E,this.valueController=new k,this.inputPasscodeRenderer=new C,this.changeEventEmitter=w(O,m),this.completeEventEmitter=w(O,g),this.eventPreventSlimmer=new y([m],(()=>this.host),{useCapture:!0}),this.vegaInputValues=new T(new Array,(t=>{this.vegaInputValues=t})),this.label="",this.disabled=!1,this.size="medium",this.hint="",this.length=4,this.inputType="numeric",this.value="",this.required=!1,this.validationRules=[],this.autoValidation=!0,this.isValid=null}watchVegaInputValues(){}watchLengthAndInputType(){}watchValue(){}watchValidationRules(){}render(){return d(this.inputPasscodeRenderer.render(),this.host)}get host(){return r(this)}static get watchers(){return{vegaInputValues:["watchVegaInputValues"],length:["watchLengthAndInputType"],inputType:["watchLengthAndInputType"],value:["watchValue"],validationRules:["watchValidationRules"]}}};z([l()],O.prototype,"globalSlimmers",void 0),z([h()],O.prototype,"formFieldController",void 0),z([h()],O.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),z([h()],O.prototype,"keyboardController",void 0),z([h()],O.prototype,"valueController",void 0),z([h()],O.prototype,"inputPasscodeRenderer",void 0),z([h()],O.prototype,"changeEventEmitter",void 0),z([h()],O.prototype,"completeEventEmitter",void 0),z([h()],O.prototype,"eventPreventSlimmer",void 0),O.style=':host{display:inline-block}:host vega-field-label{margin-bottom:8px}:host vega-input::part(input-container){padding-left:0px;padding-right:0px}:host vega-input.small{width:38px;height:42px;box-sizing:border-box}:host vega-input.medium{width:42px;height:50px;box-sizing:border-box}:host vega-input::part(input){text-align:center}:host vega-input.small::part(input-container){padding-top:8px;padding-bottom:8px}:host vega-input.medium::part(input-container){padding-top:12px;padding-bottom:12px}:host .vega-input-passcode-container.error vega-input::part(input-container){border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-input-passcode-container.error vega-input::part(input-container):hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-input-passcode-container.error vega-input::part(input-container):focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1));box-shadow:0 0 0}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}';export{O as vega_input_passcode}
@@ -1 +0,0 @@
1
- import{g as t}from"./p-d27ae9ff.js";import{b as n}from"./p-d884c644.js";import{a as r,b as i}from"./p-0c667d6a.js";class e{constructor(t){this.context=t}}function o(t){return t}function s(t){return"translate("+t+",0)"}function u(t){return"translate(0,"+t+")"}function a(t){return n=>+t(n)}function c(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),r=>+t(r)+n}function h(){return!this.__axis}function f(t,n){var r=[],i=null,e=null,f=6,l=6,d=3,g="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,v=1===t||4===t?-1:1,w=4===t||2===t?"x":"y",y=1===t||3===t?s:u;function b(s){var u=null==i?n.ticks?n.ticks.apply(n,r):n.domain():i,b=null==e?n.tickFormat?n.tickFormat.apply(n,r):o:e,p=Math.max(f,0)+d,m=n.range(),F=+m[0]+g,$=+m[m.length-1]+g,x=(n.bandwidth?c:a)(n.copy(),g),E=s.selection?s.selection():s,k=E.selectAll(".domain").data([null]),C=E.selectAll(".tick").data(u,n).order(),M=C.exit(),A=C.enter().append("g").attr("class","tick"),D=C.select("line"),N=C.select("text");k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(A),D=D.merge(A.append("line").attr("stroke","currentColor").attr(w+"2",v*f)),N=N.merge(A.append("text").attr("fill","currentColor").attr(w,v*p).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),s!==E&&(k=k.transition(s),C=C.transition(s),D=D.transition(s),N=N.transition(s),M=M.transition(s).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=x(t))?y(t+g):this.getAttribute("transform")})),A.attr("opacity",1e-6).attr("transform",(function(t){var n=this.parentNode.__axis;return y((n&&isFinite(n=n(t))?n:x(t))+g)}))),M.remove(),k.attr("d",4===t||2===t?l?"M"+v*l+","+F+"H"+g+"V"+$+"H"+v*l:"M"+g+","+F+"V"+$:l?"M"+F+","+v*l+"V"+g+"H"+$+"V"+v*l:"M"+F+","+g+"H"+$),C.attr("opacity",1).attr("transform",(function(t){return y(x(t)+g)})),D.attr(w+"2",v*f),N.attr(w,v*p).text(b),E.filter(h).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),E.each((function(){this.__axis=x}))}return b.scale=function(t){return arguments.length?(n=t,b):n},b.ticks=function(){return r=Array.from(arguments),b},b.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),b):r.slice()},b.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),b):i&&i.slice()},b.tickFormat=function(t){return arguments.length?(e=t,b):e},b.tickSize=function(t){return arguments.length?(f=l=+t,b):f},b.tickSizeInner=function(t){return arguments.length?(f=+t,b):f},b.tickSizeOuter=function(t){return arguments.length?(l=+t,b):l},b.tickPadding=function(t){return arguments.length?(d=+t,b):d},b.offset=function(t){return arguments.length?(g=+t,b):g},b}function l(t){return f(3,t)}function d(t){return f(4,t)}var g={value:()=>{}};function v(){for(var t,n=0,r=arguments.length,i={};n<r;++n){if(!(t=arguments[n]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new w(i)}function w(t){this._=t}function y(t,n){return t.trim().split(/^|\s+/).map((function(t){var r="",i=t.indexOf(".");if(i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}}))}function b(t,n){for(var r,i=0,e=t.length;i<e;++i)if((r=t[i]).name===n)return r.value}function p(t,n,r){for(var i=0,e=t.length;i<e;++i)if(t[i].name===n){t[i]=g,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:n,value:r}),t}w.prototype=v.prototype={constructor:w,on:function(t,n){var r,i=this._,e=y(t+"",i),o=-1,s=e.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++o<s;)if(r=(t=e[o]).type)i[r]=p(i[r],t.name,n);else if(null==n)for(r in i)i[r]=p(i[r],t.name,null);return this}for(;++o<s;)if((r=(t=e[o]).type)&&(r=b(i[r],t.name)))return r},copy:function(){var t={},n=this._;for(var r in n)t[r]=n[r].slice();return new w(t)},call:function(t,n){if((r=arguments.length-2)>0)for(var r,i,e=new Array(r),o=0;o<r;++o)e[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,r=(i=this._[t]).length;o<r;++o)i[o].value.apply(n,e)},apply:function(t,n,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],e=0,o=i.length;e<o;++e)i[e].value.apply(n,r)}};var m="http://www.w3.org/1999/xhtml";const F={svg:"http://www.w3.org/2000/svg",xhtml:m,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $(t){var n=t+="",r=n.indexOf(":");return r>=0&&"xmlns"!==(n=t.slice(0,r))&&(t=t.slice(r+1)),F.hasOwnProperty(n)?{space:F[n],local:t}:t}function x(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===m&&n.documentElement.namespaceURI===m?n.createElement(t):n.createElementNS(r,t)}}function E(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function k(t){var n=$(t);return(n.local?E:x)(n)}function C(){}function M(t){return null==t?C:function(){return this.querySelector(t)}}function A(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function D(){return[]}function N(t){return null==t?D:function(){return this.querySelectorAll(t)}}function B(t){return function(){return this.matches(t)}}function T(t){return function(n){return n.matches(t)}}var H=Array.prototype.find;function L(){return this.firstElementChild}var R=Array.prototype.filter;function S(){return Array.from(this.children)}function j(t){return new Array(t.length)}function q(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function I(t){return function(){return t}}function _(t,n,r,i,e,o){for(var s,u=0,a=n.length,c=o.length;u<c;++u)(s=n[u])?(s.__data__=o[u],i[u]=s):r[u]=new q(t,o[u]);for(;u<a;++u)(s=n[u])&&(e[u]=s)}function O(t,n,r,i,e,o,s){var u,a,c,h=new Map,f=n.length,l=o.length,d=new Array(f);for(u=0;u<f;++u)(a=n[u])&&(d[u]=c=s.call(a,a.__data__,u,n)+"",h.has(c)?e[u]=a:h.set(c,a));for(u=0;u<l;++u)c=s.call(t,o[u],u,o)+"",(a=h.get(c))?(i[u]=a,a.__data__=o[u],h.delete(c)):r[u]=new q(t,o[u]);for(u=0;u<f;++u)(a=n[u])&&h.get(d[u])===a&&(e[u]=a)}function X(t){return t.__data__}function P(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function V(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function z(t){return function(){this.removeAttribute(t)}}function W(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Y(t,n){return function(){this.setAttribute(t,n)}}function G(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Z(t,n){return function(){var r=n.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}function K(t,n){return function(){var r=n.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Q(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function J(t){return function(){this.style.removeProperty(t)}}function U(t,n,r){return function(){this.style.setProperty(t,n,r)}}function tt(t,n,r){return function(){var i=n.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}function nt(t,n){return t.style.getPropertyValue(n)||Q(t).getComputedStyle(t,null).getPropertyValue(n)}function rt(t){return function(){delete this[t]}}function it(t,n){return function(){this[t]=n}}function et(t,n){return function(){var r=n.apply(this,arguments);null==r?delete this[t]:this[t]=r}}function ot(t){return t.trim().split(/^|\s+/)}function st(t){return t.classList||new ut(t)}function ut(t){this._node=t,this._names=ot(t.getAttribute("class")||"")}function at(t,n){for(var r=st(t),i=-1,e=n.length;++i<e;)r.add(n[i])}function ct(t,n){for(var r=st(t),i=-1,e=n.length;++i<e;)r.remove(n[i])}function ht(t){return function(){at(this,t)}}function ft(t){return function(){ct(this,t)}}function lt(t,n){return function(){(n.apply(this,arguments)?at:ct)(this,t)}}function dt(){this.textContent=""}function gt(t){return function(){this.textContent=t}}function vt(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function wt(){this.innerHTML=""}function yt(t){return function(){this.innerHTML=t}}function bt(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function pt(){this.nextSibling&&this.parentNode.appendChild(this)}function mt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ft(){return null}function $t(){var t=this.parentNode;t&&t.removeChild(this)}function xt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Et(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function kt(t){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}}))}function Ct(t){return function(){var n=this.__on;if(n){for(var r,i=0,e=-1,o=n.length;i<o;++i)r=n[i],t.type&&r.type!==t.type||r.name!==t.name?n[++e]=r:this.removeEventListener(r.type,r.listener,r.options);++e?n.length=e:delete this.__on}}}function Mt(t,n,r){return function(){var i,e=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(e)for(var s=0,u=e.length;s<u;++s)if((i=e[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=r),void(i.value=n);this.addEventListener(t.type,o,r),i={type:t.type,name:t.name,value:n,listener:o,options:r},e?e.push(i):this.__on=[i]}}function At(t,n,r){var i=Q(t),e=i.CustomEvent;"function"==typeof e?e=new e(n,r):(e=i.document.createEvent("Event"),r?(e.initEvent(n,r.bubbles,r.cancelable),e.detail=r.detail):e.initEvent(n,!1,!1)),t.dispatchEvent(e)}function Dt(t,n){return function(){return At(this,t,n)}}function Nt(t,n){return function(){return At(this,t,n.apply(this,arguments))}}q.prototype={constructor:q,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},ut.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Bt=[null];function Tt(t,n){this._groups=t,this._parents=n}function Ht(){return new Tt([[document.documentElement]],Bt)}function Lt(t){return"string"==typeof t?new Tt([[document.querySelector(t)]],[document.documentElement]):new Tt([[t]],Bt)}function Rt(t){return Lt(k(t).call(document.documentElement))}function St(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function jt(t,n){var r=Object.create(t.prototype);for(var i in n)r[i]=n[i];return r}function qt(){}Tt.prototype=Ht.prototype={constructor:Tt,select:function(t){"function"!=typeof t&&(t=M(t));for(var n=this._groups,r=n.length,i=new Array(r),e=0;e<r;++e)for(var o,s,u=n[e],a=u.length,c=i[e]=new Array(a),h=0;h<a;++h)(o=u[h])&&(s=t.call(o,o.__data__,h,u))&&("__data__"in o&&(s.__data__=o.__data__),c[h]=s);return new Tt(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return A(t.apply(this,arguments))}}(t):N(t);for(var n=this._groups,r=n.length,i=[],e=[],o=0;o<r;++o)for(var s,u=n[o],a=u.length,c=0;c<a;++c)(s=u[c])&&(i.push(t.call(s,s.__data__,c,u)),e.push(s));return new Tt(i,e)},selectChild:function(t){return this.select(null==t?L:function(t){return function(){return H.call(this.children,t)}}("function"==typeof t?t:T(t)))},selectChildren:function(t){return this.selectAll(null==t?S:function(t){return function(){return R.call(this.children,t)}}("function"==typeof t?t:T(t)))},filter:function(t){"function"!=typeof t&&(t=B(t));for(var n=this._groups,r=n.length,i=new Array(r),e=0;e<r;++e)for(var o,s=n[e],u=s.length,a=i[e]=[],c=0;c<u;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&a.push(o);return new Tt(i,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,X);var r=n?O:_,i=this._parents,e=this._groups;"function"!=typeof t&&(t=I(t));for(var o=e.length,s=new Array(o),u=new Array(o),a=new Array(o),c=0;c<o;++c){var h=i[c],f=e[c],l=f.length,d=P(t.call(h,h&&h.__data__,c,i)),g=d.length,v=u[c]=new Array(g),w=s[c]=new Array(g),y=a[c]=new Array(l);r(h,f,v,w,y,d,n);for(var b,p,m=0,F=0;m<g;++m)if(b=v[m]){for(m>=F&&(F=m+1);!(p=w[F])&&++F<g;);b._next=p||null}}return(s=new Tt(s,i))._enter=u,s._exit=a,s},enter:function(){return new Tt(this._enter||this._groups.map(j),this._parents)},exit:function(){return new Tt(this._exit||this._groups.map(j),this._parents)},join:function(t,n,r){var i=this.enter(),e=this,o=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=n&&(e=n(e))&&(e=e.selection()),null==r?o.remove():r(o),i&&e?i.merge(e).order():e},merge:function(t){for(var n=t.selection?t.selection():t,r=this._groups,i=n._groups,e=r.length,o=Math.min(e,i.length),s=new Array(e),u=0;u<o;++u)for(var a,c=r[u],h=i[u],f=c.length,l=s[u]=new Array(f),d=0;d<f;++d)(a=c[d]||h[d])&&(l[d]=a);for(;u<e;++u)s[u]=r[u];return new Tt(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,r=t.length;++n<r;)for(var i,e=t[n],o=e.length-1,s=e[o];--o>=0;)(i=e[o])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function n(n,r){return n&&r?t(n.__data__,r.__data__):!n-!r}t||(t=V);for(var r=this._groups,i=r.length,e=new Array(i),o=0;o<i;++o){for(var s,u=r[o],a=u.length,c=e[o]=new Array(a),h=0;h<a;++h)(s=u[h])&&(c[h]=s);c.sort(n)}return new Tt(e,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],e=0,o=i.length;e<o;++e){var s=i[e];if(s)return s}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,r=0,i=n.length;r<i;++r)for(var e,o=n[r],s=0,u=o.length;s<u;++s)(e=o[s])&&t.call(e,e.__data__,s,o);return this},attr:function(t,n){var r=$(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==n?r.local?W:z:"function"==typeof n?r.local?K:Z:r.local?G:Y)(r,n))},style:function(t,n,r){return arguments.length>1?this.each((null==n?J:"function"==typeof n?tt:U)(t,n,null==r?"":r)):nt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?rt:"function"==typeof n?et:it)(t,n)):this.node()[t]},classed:function(t,n){var r=ot(t+"");if(arguments.length<2){for(var i=st(this.node()),e=-1,o=r.length;++e<o;)if(!i.contains(r[e]))return!1;return!0}return this.each(("function"==typeof n?lt:n?ht:ft)(r,n))},text:function(t){return arguments.length?this.each(null==t?dt:("function"==typeof t?vt:gt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?wt:("function"==typeof t?bt:yt)(t)):this.node().innerHTML},raise:function(){return this.each(pt)},lower:function(){return this.each(mt)},append:function(t){var n="function"==typeof t?t:k(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var r="function"==typeof t?t:k(t),i=null==n?Ft:"function"==typeof n?n:M(n);return this.select((function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each($t)},clone:function(t){return this.select(t?Et:xt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,r){var i,e,o=kt(t+""),s=o.length;if(!(arguments.length<2)){for(u=n?Mt:Ct,i=0;i<s;++i)this.each(u(o[i],n,r));return this}var u=this.node().__on;if(u)for(var a,c=0,h=u.length;c<h;++c)for(i=0,a=u[c];i<s;++i)if((e=o[i]).type===a.type&&e.name===a.name)return a.value},dispatch:function(t,n){return this.each(("function"==typeof n?Nt:Dt)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,e=t[n],o=0,s=e.length;o<s;++o)(i=e[o])&&(yield i)}};var It=1/.7,_t="\\s*([+-]?\\d+)\\s*",Ot="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pt=/^#([0-9a-f]{3,8})$/,Vt=new RegExp(`^rgb\\(${_t},${_t},${_t}\\)$`),zt=new RegExp(`^rgb\\(${Xt},${Xt},${Xt}\\)$`),Wt=new RegExp(`^rgba\\(${_t},${_t},${_t},${Ot}\\)$`),Yt=new RegExp(`^rgba\\(${Xt},${Xt},${Xt},${Ot}\\)$`),Gt=new RegExp(`^hsl\\(${Ot},${Xt},${Xt}\\)$`),Zt=new RegExp(`^hsla\\(${Ot},${Xt},${Xt},${Ot}\\)$`),Kt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Qt(){return this.rgb().formatHex()}function Jt(){return this.rgb().formatRgb()}function Ut(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=Pt.exec(t))?(r=n[1].length,n=parseInt(n[1],16),6===r?tn(n):3===r?new on(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===r?nn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===r?nn(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Vt.exec(t))?new on(n[1],n[2],n[3],1):(n=zt.exec(t))?new on(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Wt.exec(t))?nn(n[1],n[2],n[3],n[4]):(n=Yt.exec(t))?nn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Gt.exec(t))?fn(n[1],n[2]/100,n[3]/100,1):(n=Zt.exec(t))?fn(n[1],n[2]/100,n[3]/100,n[4]):Kt.hasOwnProperty(t)?tn(Kt[t]):"transparent"===t?new on(NaN,NaN,NaN,0):null}function tn(t){return new on(t>>16&255,t>>8&255,255&t,1)}function nn(t,n,r,i){return i<=0&&(t=n=r=NaN),new on(t,n,r,i)}function rn(t){return t instanceof qt||(t=Ut(t)),t?new on((t=t.rgb()).r,t.g,t.b,t.opacity):new on}function en(t,n,r,i){return 1===arguments.length?rn(t):new on(t,n,r,null==i?1:i)}function on(t,n,r,i){this.r=+t,this.g=+n,this.b=+r,this.opacity=+i}function sn(){return`#${hn(this.r)}${hn(this.g)}${hn(this.b)}`}function un(){const t=an(this.opacity);return`${1===t?"rgb(":"rgba("}${cn(this.r)}, ${cn(this.g)}, ${cn(this.b)}${1===t?")":`, ${t})`}`}function an(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function cn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function hn(t){return((t=cn(t))<16?"0":"")+t.toString(16)}function fn(t,n,r,i){return i<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new dn(t,n,r,i)}function ln(t){if(t instanceof dn)return new dn(t.h,t.s,t.l,t.opacity);if(t instanceof qt||(t=Ut(t)),!t)return new dn;if(t instanceof dn)return t;var n=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,e=Math.min(n,r,i),o=Math.max(n,r,i),s=NaN,u=o-e,a=(o+e)/2;return u?(s=n===o?(r-i)/u+6*(r<i):r===o?(i-n)/u+2:(n-r)/u+4,u/=a<.5?o+e:2-o-e,s*=60):u=a>0&&a<1?0:s,new dn(s,u,a,t.opacity)}function dn(t,n,r,i){this.h=+t,this.s=+n,this.l=+r,this.opacity=+i}function gn(t){return(t=(t||0)%360)<0?t+360:t}function vn(t){return Math.max(0,Math.min(1,t||0))}function wn(t,n,r){return 255*(t<60?n+(r-n)*t/60:t<180?r:t<240?n+(r-n)*(240-t)/60:n)}St(qt,Ut,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Qt,formatHex:Qt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ln(this).formatHsl()},formatRgb:Jt,toString:Jt}),St(on,en,jt(qt,{brighter(t){return t=null==t?It:Math.pow(It,t),new on(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new on(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new on(cn(this.r),cn(this.g),cn(this.b),an(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sn,formatHex:sn,formatHex8:function(){return`#${hn(this.r)}${hn(this.g)}${hn(this.b)}${hn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:un,toString:un})),St(dn,(function(t,n,r,i){return 1===arguments.length?ln(t):new dn(t,n,r,null==i?1:i)}),jt(qt,{brighter(t){return t=null==t?It:Math.pow(It,t),new dn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new dn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*n,e=2*r-i;return new on(wn(t>=240?t-240:t+120,e,i),wn(t,e,i),wn(t<120?t+240:t-120,e,i),this.opacity)},clamp(){return new dn(gn(this.h),vn(this.s),vn(this.l),an(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=an(this.opacity);return`${1===t?"hsl(":"hsla("}${gn(this.h)}, ${100*vn(this.s)}%, ${100*vn(this.l)}%${1===t?")":`, ${t})`}`}}));const yn=t=>()=>t;function bn(t,n){var r=n-t;return r?function(t,n){return function(r){return t+r*n}}(t,r):yn(isNaN(t)?n:t)}const pn=function t(n){var r=function(t){return 1==(t=+t)?bn:function(n,r){return r-n?function(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(i){return Math.pow(t+i*n,r)}}(n,r,t):yn(isNaN(n)?r:n)}}(n);function i(t,n){var i=r((t=en(t)).r,(n=en(n)).r),e=r(t.g,n.g),o=r(t.b,n.b),s=bn(t.opacity,n.opacity);return function(n){return t.r=i(n),t.g=e(n),t.b=o(n),t.opacity=s(n),t+""}}return i.gamma=t,i}(1);function mn(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}var Fn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$n=new RegExp(Fn.source,"g");function xn(t,n){var r,i,e,o=Fn.lastIndex=$n.lastIndex=0,s=-1,u=[],a=[];for(t+="",n+="";(r=Fn.exec(t))&&(i=$n.exec(n));)(e=i.index)>o&&(e=n.slice(o,e),u[s]?u[s]+=e:u[++s]=e),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,a.push({i:s,x:mn(r,i)})),o=$n.lastIndex;return o<n.length&&(e=n.slice(o),u[s]?u[s]+=e:u[++s]=e),u.length<2?a[0]?function(t){return function(n){return t(n)+""}}(a[0].x):function(t){return function(){return t}}(n):(n=a.length,function(t){for(var r,i=0;i<n;++i)u[(r=a[i]).i]=r.x(t);return u.join("")})}var En,kn=180/Math.PI,Cn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Mn(t,n,r,i,e,o){var s,u,a;return(s=Math.sqrt(t*t+n*n))&&(t/=s,n/=s),(a=t*r+n*i)&&(r-=t*a,i-=n*a),(u=Math.sqrt(r*r+i*i))&&(r/=u,i/=u,a/=u),t*i<n*r&&(t=-t,n=-n,a=-a,s=-s),{translateX:e,translateY:o,rotate:Math.atan2(n,t)*kn,skewX:Math.atan(a)*kn,scaleX:s,scaleY:u}}function An(t,n,r,i){function e(t){return t.length?t.pop()+" ":""}return function(o,s){var u=[],a=[];return o=t(o),s=t(s),function(t,i,e,o,s,u){if(t!==e||i!==o){var a=s.push("translate(",null,n,null,r);u.push({i:a-4,x:mn(t,e)},{i:a-2,x:mn(i,o)})}else(e||o)&&s.push("translate("+e+n+o+r)}(o.translateX,o.translateY,s.translateX,s.translateY,u,a),function(t,n,r,o){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),o.push({i:r.push(e(r)+"rotate(",null,i)-2,x:mn(t,n)})):n&&r.push(e(r)+"rotate("+n+i)}(o.rotate,s.rotate,u,a),function(t,n,r,o){t!==n?o.push({i:r.push(e(r)+"skewX(",null,i)-2,x:mn(t,n)}):n&&r.push(e(r)+"skewX("+n+i)}(o.skewX,s.skewX,u,a),function(t,n,r,i,o,s){if(t!==r||n!==i){var u=o.push(e(o)+"scale(",null,",",null,")");s.push({i:u-4,x:mn(t,r)},{i:u-2,x:mn(n,i)})}else 1===r&&1===i||o.push(e(o)+"scale("+r+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,a),o=s=null,function(t){for(var n,r=-1,i=a.length;++r<i;)u[(n=a[r]).i]=n.x(t);return u.join("")}}}var Dn,Nn,Bn=An((function(t){const n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?Cn:Mn(n.a,n.b,n.c,n.d,n.e,n.f)}),"px, ","px)","deg)"),Tn=An((function(t){return null==t?Cn:(En||(En=document.createElementNS("http://www.w3.org/2000/svg","g")),En.setAttribute("transform",t),(t=En.transform.baseVal.consolidate())?Mn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Cn)}),", ",")",")"),Hn=0,Ln=0,Rn=0,Sn=0,jn=0,qn=0,In="object"==typeof performance&&performance.now?performance:Date,_n="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function On(){return jn||(_n(Xn),jn=In.now()+qn)}function Xn(){jn=0}function Pn(){this._call=this._time=this._next=null}function Vn(t,n,r){var i=new Pn;return i.restart(t,n,r),i}function zn(){jn=(Sn=In.now())+qn,Hn=Ln=0;try{!function(){On(),++Hn;for(var t,n=Dn;n;)(t=jn-n._time)>=0&&n._call.call(void 0,t),n=n._next;--Hn}()}finally{Hn=0,function(){for(var t,n,r=Dn,i=1/0;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(n=r._next,r._next=null,r=t?t._next=n:Dn=n);Nn=t,Yn(i)}(),jn=0}}function Wn(){var t=In.now(),n=t-Sn;n>1e3&&(qn-=n,Sn=t)}function Yn(t){Hn||(Ln&&(Ln=clearTimeout(Ln)),t-jn>24?(t<1/0&&(Ln=setTimeout(zn,t-In.now()-qn)),Rn&&(Rn=clearInterval(Rn))):(Rn||(Sn=In.now(),Rn=setInterval(Wn,1e3)),Hn=1,_n(zn)))}function Gn(t,n,r){var i=new Pn;return i.restart((r=>{i.stop(),t(r+n)}),n=null==n?0:+n,r),i}Pn.prototype=Vn.prototype={constructor:Pn,restart:function(t,n,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?On():+r)+(null==n?0:+n),this._next||Nn===this||(Nn?Nn._next=this:Dn=this,Nn=this),this._call=t,this._time=r,Yn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yn())}};var Zn=v("start","end","cancel","interrupt"),Kn=[];function Qn(t,n,r,i,e,o){var s=t.__transition;if(s){if(r in s)return}else t.__transition={};!function(t,n,r){var i,e=t.__transition;function o(a){var c,h,f,l;if(1!==r.state)return u();for(c in e)if((l=e[c]).name===r.name){if(3===l.state)return Gn(o);4===l.state?(l.state=6,l.timer.stop(),l.on.call("interrupt",t,t.__data__,l.index,l.group),delete e[c]):+c<n&&(l.state=6,l.timer.stop(),l.on.call("cancel",t,t.__data__,l.index,l.group),delete e[c])}if(Gn((function(){3===r.state&&(r.state=4,r.timer.restart(s,r.delay,r.time),s(a))})),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(r.state=3,i=new Array(f=r.tween.length),c=0,h=-1;c<f;++c)(l=r.tween[c].value.call(t,t.__data__,r.index,r.group))&&(i[++h]=l);i.length=h+1}}function s(n){for(var e=n<r.duration?r.ease.call(null,n/r.duration):(r.timer.restart(u),r.state=5,1),o=-1,s=i.length;++o<s;)i[o].call(t,e);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),u())}function u(){for(var i in r.state=6,r.timer.stop(),delete e[n],e)return;delete t.__transition}e[n]=r,r.timer=Vn((function(t){r.state=1,r.timer.restart(o,r.delay,r.time),r.delay<=t&&o(t-r.delay)}),0,r.time)}(t,r,{name:n,index:i,group:e,on:Zn,tween:Kn,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Jn(t,n){var r=tr(t,n);if(r.state>0)throw new Error("too late; already scheduled");return r}function Un(t,n){var r=tr(t,n);if(r.state>3)throw new Error("too late; already running");return r}function tr(t,n){var r=t.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function nr(t,n){var r,i;return function(){var e=Un(this,t),o=e.tween;if(o!==r)for(var s=0,u=(i=r=o).length;s<u;++s)if(i[s].name===n){(i=i.slice()).splice(s,1);break}e.tween=i}}function rr(t,n,r){var i,e;if("function"!=typeof r)throw new Error;return function(){var o=Un(this,t),s=o.tween;if(s!==i){e=(i=s).slice();for(var u={name:n,value:r},a=0,c=e.length;a<c;++a)if(e[a].name===n){e[a]=u;break}a===c&&e.push(u)}o.tween=e}}function ir(t,n,r){var i=t._id;return t.each((function(){var t=Un(this,i);(t.value||(t.value={}))[n]=r.apply(this,arguments)})),function(t){return tr(t,i).value[n]}}function er(t,n){var r;return("number"==typeof n?mn:n instanceof Ut?pn:(r=Ut(n))?(n=r,pn):xn)(t,n)}function or(t){return function(){this.removeAttribute(t)}}function sr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ur(t,n,r){var i,e,o=r+"";return function(){var s=this.getAttribute(t);return s===o?null:s===i?e:e=n(i=s,r)}}function ar(t,n,r){var i,e,o=r+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===i?e:e=n(i=s,r)}}function cr(t,n,r){var i,e,o;return function(){var s,u,a=r(this);if(null!=a)return(s=this.getAttribute(t))===(u=a+"")?null:s===i&&u===e?o:(e=u,o=n(i=s,a));this.removeAttribute(t)}}function hr(t,n,r){var i,e,o;return function(){var s,u,a=r(this);if(null!=a)return(s=this.getAttributeNS(t.space,t.local))===(u=a+"")?null:s===i&&u===e?o:(e=u,o=n(i=s,a));this.removeAttributeNS(t.space,t.local)}}function fr(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}function lr(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}function dr(t,n){var r,i;function e(){var e=n.apply(this,arguments);return e!==i&&(r=(i=e)&&lr(t,e)),r}return e._value=n,e}function gr(t,n){var r,i;function e(){var e=n.apply(this,arguments);return e!==i&&(r=(i=e)&&fr(t,e)),r}return e._value=n,e}function vr(t,n){return function(){Jn(this,t).delay=+n.apply(this,arguments)}}function wr(t,n){return n=+n,function(){Jn(this,t).delay=n}}function yr(t,n){return function(){Un(this,t).duration=+n.apply(this,arguments)}}function br(t,n){return n=+n,function(){Un(this,t).duration=n}}function pr(t,n){if("function"!=typeof n)throw new Error;return function(){Un(this,t).ease=n}}function mr(t,n,r){var i,e,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Jn:Un;return function(){var s=o(this,t),u=s.on;u!==i&&(e=(i=u).copy()).on(n,r),s.on=e}}var Fr=Ht.prototype.constructor;function $r(t){return function(){this.style.removeProperty(t)}}function xr(t,n,r){return function(i){this.style.setProperty(t,n.call(this,i),r)}}function Er(t,n,r){var i,e;function o(){var o=n.apply(this,arguments);return o!==e&&(i=(e=o)&&xr(t,o,r)),i}return o._value=n,o}function kr(t){return function(n){this.textContent=t.call(this,n)}}function Cr(t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&kr(i)),n}return i._value=t,i}var Mr=0;function Ar(t,n,r,i){this._groups=t,this._parents=n,this._name=r,this._id=i}function Dr(){return++Mr}var Nr=Ht.prototype;Ar.prototype={constructor:Ar,select:function(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=M(t));for(var i=this._groups,e=i.length,o=new Array(e),s=0;s<e;++s)for(var u,a,c=i[s],h=c.length,f=o[s]=new Array(h),l=0;l<h;++l)(u=c[l])&&(a=t.call(u,u.__data__,l,c))&&("__data__"in u&&(a.__data__=u.__data__),f[l]=a,Qn(f[l],n,r,l,f,tr(u,r)));return new Ar(o,this._parents,n,r)},selectAll:function(t){var n=this._name,r=this._id;"function"!=typeof t&&(t=N(t));for(var i=this._groups,e=i.length,o=[],s=[],u=0;u<e;++u)for(var a,c=i[u],h=c.length,f=0;f<h;++f)if(a=c[f]){for(var l,d=t.call(a,a.__data__,f,c),g=tr(a,r),v=0,w=d.length;v<w;++v)(l=d[v])&&Qn(l,n,r,v,d,g);o.push(d),s.push(a)}return new Ar(o,s,n,r)},selectChild:Nr.selectChild,selectChildren:Nr.selectChildren,filter:function(t){"function"!=typeof t&&(t=B(t));for(var n=this._groups,r=n.length,i=new Array(r),e=0;e<r;++e)for(var o,s=n[e],u=s.length,a=i[e]=[],c=0;c<u;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&a.push(o);return new Ar(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,r=t._groups,i=n.length,e=Math.min(i,r.length),o=new Array(i),s=0;s<e;++s)for(var u,a=n[s],c=r[s],h=a.length,f=o[s]=new Array(h),l=0;l<h;++l)(u=a[l]||c[l])&&(f[l]=u);for(;s<i;++s)o[s]=n[s];return new Ar(o,this._parents,this._name,this._id)},selection:function(){return new Fr(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,r=Dr(),i=this._groups,e=i.length,o=0;o<e;++o)for(var s,u=i[o],a=u.length,c=0;c<a;++c)if(s=u[c]){var h=tr(s,n);Qn(s,t,r,c,u,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ar(i,this._parents,t,r)},call:Nr.call,nodes:Nr.nodes,node:Nr.node,size:Nr.size,empty:Nr.empty,each:Nr.each,on:function(t,n){var r=this._id;return arguments.length<2?tr(this.node(),r).on.on(t):this.each(mr(r,t,n))},attr:function(t,n){var r=$(t),i="transform"===r?Tn:er;return this.attrTween(t,"function"==typeof n?(r.local?hr:cr)(r,i,ir(this,"attr."+t,n)):null==n?(r.local?sr:or)(r):(r.local?ar:ur)(r,i,n))},attrTween:function(t,n){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;var i=$(t);return this.tween(r,(i.local?dr:gr)(i,n))},style:function(t,n,r){var i="transform"==(t+="")?Bn:er;return null==n?this.styleTween(t,function(t,n){var r,i,e;return function(){var o=nt(this,t),s=(this.style.removeProperty(t),nt(this,t));return o===s?null:o===r&&s===i?e:e=n(r=o,i=s)}}(t,i)).on("end.style."+t,$r(t)):"function"==typeof n?this.styleTween(t,function(t,n,r){var i,e,o;return function(){var s=nt(this,t),u=r(this),a=u+"";return null==u&&(this.style.removeProperty(t),a=u=nt(this,t)),s===a?null:s===i&&a===e?o:(e=a,o=n(i=s,u))}}(t,i,ir(this,"style."+t,n))).each(function(t,n){var r,i,e,o,s="style."+n,u="end."+s;return function(){var a=Un(this,t),c=a.on,h=null==a.value[s]?o||(o=$r(n)):void 0;c===r&&e===h||(i=(r=c).copy()).on(u,e=h),a.on=i}}(this._id,t)):this.styleTween(t,function(t,n,r){var i,e,o=r+"";return function(){var s=nt(this,t);return s===o?null:s===i?e:e=n(i=s,r)}}(t,i,n),r).on("end.style."+t,null)},styleTween:function(t,n,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;return this.tween(i,Er(t,n,null==r?"":r))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(ir(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,Cr(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var r=this._id;if(t+="",arguments.length<2){for(var i,e=tr(this.node(),r).tween,o=0,s=e.length;o<s;++o)if((i=e[o]).name===t)return i.value;return null}return this.each((null==n?nr:rr)(r,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?vr:wr)(n,t)):tr(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?yr:br)(n,t)):tr(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(pr(n,t)):tr(this.node(),n).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,n){return function(){var r=n.apply(this,arguments);if("function"!=typeof r)throw new Error;Un(this,t).ease=r}}(this._id,t))},end:function(){var t,n,r=this,i=r._id,e=r.size();return new Promise((function(o,s){var u={value:s},a={value:function(){0==--e&&o()}};r.each((function(){var r=Un(this,i),e=r.on;e!==t&&((n=(t=e).copy())._.cancel.push(u),n._.interrupt.push(u),n._.end.push(a)),r.on=n})),0===e&&o()}))},[Symbol.iterator]:Nr[Symbol.iterator]};var Br={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Tr(t,n){for(var r;!(r=t.__transition)||!(r=r[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return r}Ht.prototype.interrupt=function(t){return this.each((function(){!function(t,n){var r,i,e,o=t.__transition,s=!0;if(o){for(e in n=null==n?null:n+"",o)(r=o[e]).name===n?(i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete o[e]):s=!1;s&&delete t.__transition}}(this,t)}))},Ht.prototype.transition=function(t){var n,r;t instanceof Ar?(n=t._id,t=t._name):(n=Dr(),(r=Br).time=On(),t=null==t?null:t+"");for(var i=this._groups,e=i.length,o=0;o<e;++o)for(var s,u=i[o],a=u.length,c=0;c<a;++c)(s=u[c])&&Qn(s,t,n,c,u,r||Tr(s,n));return new Ar(i,this._parents,t,n)};const Hr=Math.PI,Lr=2*Hr,Rr=Lr-1e-6;function Sr(t){this._+=t[0];for(let n=1,r=t.length;n<r;++n)this._+=arguments[n]+t[n]}class jr{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Sr:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return Sr;const r=10**n;return function(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=Math.round(arguments[n]*r)/r+t[n]}}(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,e,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+e},${this._y1=+o}`}arcTo(t,n,r,i,e){if(t=+t,n=+n,r=+r,i=+i,(e=+e)<0)throw new Error(`negative radius: ${e}`);let o=this._x1,s=this._y1,u=r-t,a=i-n,c=o-t,h=s-n,f=c*c+h*h;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(f>1e-6)if(Math.abs(h*u-a*c)>1e-6&&e){let l=r-o,d=i-s,g=u*u+a*a,v=l*l+d*d,w=Math.sqrt(g),y=Math.sqrt(f),b=e*Math.tan((Hr-Math.acos((g+f-v)/(2*w*y)))/2),p=b/y,m=b/w;Math.abs(p-1)>1e-6&&this._append`L${t+p*c},${n+p*h}`,this._append`A${e},${e},0,0,${+(h*l>c*d)},${this._x1=t+m*u},${this._y1=n+m*a}`}else this._append`L${this._x1=t},${this._y1=n}`}arc(t,n,r,i,e,o){if(t=+t,n=+n,o=!!o,(r=+r)<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),u=r*Math.sin(i),a=t+s,c=n+u,h=1^o,f=o?i-e:e-i;null===this._x1?this._append`M${a},${c}`:(Math.abs(this._x1-a)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${a},${c}`,r&&(f<0&&(f=f%Lr+Lr),f>Rr?this._append`A${r},${r},0,1,${h},${t-s},${n-u}A${r},${r},0,1,${h},${this._x1=a},${this._y1=c}`:f>1e-6&&this._append`A${r},${r},0,${+(f>=Hr)},${h},${this._x1=t+r*Math.cos(e)},${this._y1=n+r*Math.sin(e)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function qr(t){return function(){return t}}const Ir=Math.abs,_r=Math.atan2,Or=Math.cos,Xr=Math.max,Pr=Math.min,Vr=Math.sin,zr=Math.sqrt,Wr=Math.PI,Yr=Wr/2,Gr=2*Wr;function Zr(t){return t>1?0:t<-1?Wr:Math.acos(t)}function Kr(t){return t>=1?Yr:t<=-1?-Yr:Math.asin(t)}function Qr(t){let n=3;return t.digits=function(r){if(!arguments.length)return n;if(null==r)n=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);n=t}return t},()=>new jr(n)}function Jr(t){return t.innerRadius}function Ur(t){return t.outerRadius}function ti(t){return t.startAngle}function ni(t){return t.endAngle}function ri(t){return t&&t.padAngle}function ii(t,n,r,i,e,o,s,u){var a=r-t,c=i-n,h=s-e,f=u-o,l=f*a-h*c;if(!(l*l<1e-12))return[t+(l=(h*(n-o)-f*(t-e))/l)*a,n+l*c]}function ei(t,n,r,i,e,o,s){var u=t-r,a=n-i,c=(s?o:-o)/zr(u*u+a*a),h=c*a,f=-c*u,l=t+h,d=n+f,g=r+h,v=i+f,w=(l+g)/2,y=(d+v)/2,b=g-l,p=v-d,m=b*b+p*p,F=e-o,$=l*v-g*d,x=(p<0?-1:1)*zr(Xr(0,F*F*m-$*$)),E=($*p-b*x)/m,k=(-$*b-p*x)/m,C=($*p+b*x)/m,M=(-$*b+p*x)/m,A=E-w,D=k-y,N=C-w,B=M-y;return A*A+D*D>N*N+B*B&&(E=C,k=M),{cx:E,cy:k,x01:-h,y01:-f,x11:E*(e/F-1),y11:k*(e/F-1)}}function oi(){var t=Jr,n=Ur,r=qr(0),i=null,e=ti,o=ni,s=ri,u=null,a=Qr(c);function c(){var c,h,f=+t.apply(this,arguments),l=+n.apply(this,arguments),d=e.apply(this,arguments)-Yr,g=o.apply(this,arguments)-Yr,v=Ir(g-d),w=g>d;if(u||(u=c=a()),l<f&&(h=l,l=f,f=h),l>1e-12)if(v>Gr-1e-12)u.moveTo(l*Or(d),l*Vr(d)),u.arc(0,0,l,d,g,!w),f>1e-12&&(u.moveTo(f*Or(g),f*Vr(g)),u.arc(0,0,f,g,d,w));else{var y,b,p=d,m=g,F=d,$=g,x=v,E=v,k=s.apply(this,arguments)/2,C=k>1e-12&&(i?+i.apply(this,arguments):zr(f*f+l*l)),M=Pr(Ir(l-f)/2,+r.apply(this,arguments)),A=M,D=M;if(C>1e-12){var N=Kr(C/f*Vr(k)),B=Kr(C/l*Vr(k));(x-=2*N)>1e-12?(F+=N*=w?1:-1,$-=N):(x=0,F=$=(d+g)/2),(E-=2*B)>1e-12?(p+=B*=w?1:-1,m-=B):(E=0,p=m=(d+g)/2)}var T=l*Or(p),H=l*Vr(p),L=f*Or($),R=f*Vr($);if(M>1e-12){var S,j=l*Or(m),q=l*Vr(m),I=f*Or(F),_=f*Vr(F);if(v<Wr)if(S=ii(T,H,I,_,j,q,L,R)){var O=T-S[0],X=H-S[1],P=j-S[0],V=q-S[1],z=1/Vr(Zr((O*P+X*V)/(zr(O*O+X*X)*zr(P*P+V*V)))/2),W=zr(S[0]*S[0]+S[1]*S[1]);A=Pr(M,(f-W)/(z-1)),D=Pr(M,(l-W)/(z+1))}else A=D=0}E>1e-12?D>1e-12?(y=ei(I,_,T,H,l,D,w),b=ei(j,q,L,R,l,D,w),u.moveTo(y.cx+y.x01,y.cy+y.y01),D<M?u.arc(y.cx,y.cy,D,_r(y.y01,y.x01),_r(b.y01,b.x01),!w):(u.arc(y.cx,y.cy,D,_r(y.y01,y.x01),_r(y.y11,y.x11),!w),u.arc(0,0,l,_r(y.cy+y.y11,y.cx+y.x11),_r(b.cy+b.y11,b.cx+b.x11),!w),u.arc(b.cx,b.cy,D,_r(b.y11,b.x11),_r(b.y01,b.x01),!w))):(u.moveTo(T,H),u.arc(0,0,l,p,m,!w)):u.moveTo(T,H),f>1e-12&&x>1e-12?A>1e-12?(y=ei(L,R,j,q,f,-A,w),b=ei(T,H,I,_,f,-A,w),u.lineTo(y.cx+y.x01,y.cy+y.y01),A<M?u.arc(y.cx,y.cy,A,_r(y.y01,y.x01),_r(b.y01,b.x01),!w):(u.arc(y.cx,y.cy,A,_r(y.y01,y.x01),_r(y.y11,y.x11),!w),u.arc(0,0,f,_r(y.cy+y.y11,y.cx+y.x11),_r(b.cy+b.y11,b.cx+b.x11),w),u.arc(b.cx,b.cy,A,_r(b.y11,b.x11),_r(b.y01,b.x01),!w))):u.arc(0,0,f,$,F,w):u.lineTo(L,R)}else u.moveTo(0,0);if(u.closePath(),c)return u=null,c+""||null}return c.centroid=function(){var r=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,i=(+e.apply(this,arguments)+ +o.apply(this,arguments))/2-Wr/2;return[Or(i)*r,Vr(i)*r]},c.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:qr(+n),c):t},c.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:qr(+t),c):n},c.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:qr(+t),c):r},c.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:qr(+t),c):i},c.startAngle=function(t){return arguments.length?(e="function"==typeof t?t:qr(+t),c):e},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:qr(+t),c):o},c.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:qr(+t),c):s},c.context=function(t){return arguments.length?(u=null==t?null:t,c):u},c}function si(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ui(t){this._context=t}function ai(t){return new ui(t)}function ci(t){return t[0]}function hi(t){return t[1]}function fi(t,n){var r=qr(!0),i=null,e=ai,o=null,s=Qr(u);function u(u){var a,c,h,f=(u=si(u)).length,l=!1;for(null==i&&(o=e(h=s())),a=0;a<=f;++a)!(a<f&&r(c=u[a],a,u))===l&&((l=!l)?o.lineStart():o.lineEnd()),l&&o.point(+t(c,a,u),+n(c,a,u));if(h)return o=null,h+""||null}return t="function"==typeof t?t:void 0===t?ci:qr(t),n="function"==typeof n?n:void 0===n?hi:qr(n),u.x=function(n){return arguments.length?(t="function"==typeof n?n:qr(+n),u):t},u.y=function(t){return arguments.length?(n="function"==typeof t?t:qr(+t),u):n},u.defined=function(t){return arguments.length?(r="function"==typeof t?t:qr(!!t),u):r},u.curve=function(t){return arguments.length?(e=t,null!=i&&(o=e(i)),u):e},u.context=function(t){return arguments.length?(null==t?i=o=null:o=e(i=t),u):i},u}ui.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};class li extends e{setLayout(t,n,r,i){Lt(this.context).attr("width",t).attr("height",n).attr("viewBox",[0,0,t,n]).property("style","display:block;max-width:100%;height:auto;").call((t=>{t.append("g").attr("class","vega-chart-draw-g").attr("transform",`translate(${i},${r})`)})).call((t=>{t.append("g").attr("class","vega-chart-legend-g").attr("transform",`translate(${i/3},${r/4})`)}))}drawLine(t,n,r){Lt(this.context).select(".vega-chart-draw-g").append("line").attr("x1",t.x).attr("y1",t.y).attr("x2",n.x).attr("y2",n.y).attr("stroke",r)}drawXAxis(t,n,r){const{scale:i,end:e,labelFormatter:o,direction:s,height:u}=t;let a=l(i);o&&(a=a.tickFormat(o)),Lt(this.context).select(".vega-chart-draw-g").append("g").attr("class","vega-chart-x-axis").attr("transform",`translate(0, ${e.y})`).call(a).call((t=>{t.select(".domain").attr("stroke-width",2).attr("stroke",n)})).call((t=>{t.selectAll("line").attr("stroke",n),t.selectAll("text").property("style",r)})).call((t=>{"horizontal"===s&&(t.selectAll("line").clone().attr("y2",""+-u),t.select(".domain").attr("stroke-width",0))}))}drawYAxis(t,n,r){const{scale:i,labelFormatter:e,width:o,tickSize:s,direction:u}=t;let a=d(i).ticks(s);e&&(a=a.tickFormat(e)),Lt(this.context).select(".vega-chart-draw-g").append("g").attr("class","vega-chart-y-axis").call(a).call((t=>{t.select(".domain").attr("stroke-width",0).attr("stroke",n)})).call((t=>{t.selectAll("line").attr("stroke-width",2).attr("stroke",n),t.selectAll("text").property("style",r)})).call((t=>{"horizontal"!==u?t.selectAll("line").clone().attr("x2",`${o}`):t.select(".domain").attr("stroke-width",2).attr("stroke",n)}))}drawCircle(t,n,r,i,e){Lt(this.context).select(".vega-chart-draw-g").append((()=>this.getCircleNode(t,n,r,i,e)))}drawText(t,n,r,i,e){Lt(this.context).select(".vega-chart-draw-g").append((()=>this.getTextNode(t,n,r,i,e)))}drawLegend(t,n,r,i){return Lt(this.context).select(".vega-chart-legend-g").append("g").attr("class","vega-chart-legend-item").attr("data-legend",n).attr("transform",`translate(${t.x},${t.y})`).call((t=>{t.append((()=>this.getCircleNode({x:-4,y:-4},4,r))),t.append((()=>this.getTextNode({x:8,y:0},n,i)))})).node()}drawRect(t,n,r,i){Lt(this.context).select(".vega-chart-draw-g").append("rect").attr("fill",i).attr("x",t.x).attr("y",t.y).attr("width",n).attr("height",r)}drawLinePath(t,n){Lt(this.context).select(".vega-chart-draw-g").append("path").attr("class","vega-chart-line-path").datum(t).attr("fill","none").attr("stroke",n).attr("stroke-width",3).attr("stroke-linecap","round").attr("stroke-linejoin","round").attr("d",fi().x((t=>t.x)).y((t=>t.y)))}drawArcPath(t,n,r,i,e){return Lt(this.context).select(".vega-chart-draw-g").append("path").datum(n).attr("class","vega-chart-arc-path").attr("data-name",(t=>t.data.name)).attr("transform",`translate(${t.x},${t.y})`).attr("fill",r).attr("stroke-width",0).attr("d",oi().innerRadius(e).outerRadius(i)).attr("data-d",oi().innerRadius(e).outerRadius(i+10)).node()}clear(){Lt(this.context).selectAll(".vega-chart-draw-g").remove(),Lt(this.context).selectAll(".vega-chart-legend-g").remove()}getTextNode(t,n,r,i="start",e=0){return Rt("svg:text").property("style",r).attr("x",t.x).attr("y",t.y).attr("text-anchor",i).attr("rotate",e).text(n).node()}getCircleNode(t,n,r,i,e){return Rt("svg:circle").attr("r",n).attr("cx",t.x).attr("cy",t.y).attr("fill",r).attr("stroke-width",i||0).attr("stroke",e).node()}}class di extends e{setLayout(t,n){this.context.width=t,this.context.height=n,this.context.style.display="block",this.initCanvasContext2d()}drawLine(t,n){const r=this.getContext2d();r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(n.x,n.y),r.closePath()}drawXAxis(t){this.drawLine(t.start,t.end)}drawYAxis(t){this.drawLine(t.start,t.end)}drawCircle(t,n,r,i,e){const o=this.getContext2d();i&&e&&(o.fillStyle=e,o.beginPath(),o.arc(t.x,t.y,n,0,2*Math.PI),o.fill()),o.fillStyle=r,o.beginPath(),o.arc(t.x,t.y,n-(i||0),0,2*Math.PI),o.fill()}drawLegend(t,n,r){return this.drawCircle(t,4,r),this.drawText(t,n),this.context}drawText(t,n){this.getContext2d().fillText(n,t.x,t.y)}drawRect(t,n,r,i){const e=this.getContext2d();e.fillStyle=i,e.fillRect(t.x,t.y,n,r)}drawLinePath(t,n){const r=Rt("svg:path").datum(t).attr("d",fi().x((t=>t.x)).y((t=>t.y))).node(),i=new Path2D(r.getAttribute("d")),e=this.getContext2d();e.lineWidth=3,e.strokeStyle=n,e.stroke(i)}drawArcPath(t,n,r,i,e){const o=this.getContext2d();return o.beginPath(),o.moveTo(t.x,t.y),o.arc(t.x,t.y,i,n.startAngle,n.endAngle),o.fillStyle=r,o.fill(),e&&this.drawCircle(t,e,"#F0F3F7"),this.context}clear(){this.getContext2d().clearRect(0,0,this.context.width,this.context.height)}initCanvasContext2d(){this.canvasContext2d=this.context.getContext("2d")}getContext2d(){return this.canvasContext2d||this.initCanvasContext2d(),this.canvasContext2d}}const gi={width:void 0,height:void 0,margin:{top:30,right:30,bottom:30,left:30}};class vi{constructor(t){this.container=t}setContainerWidthAndHeight(t){const{width:n,height:i}=t;void 0!==n&&(this.container.style.width=r(n)),void 0!==i&&(this.container.style.height=r(i))}getContainerClientWidth(t){return this.container.clientWidth||i((null==t?void 0:t.width)||this.container.style.width)}getContainerClientHeight(t){return this.container.clientHeight||i((null==t?void 0:t.height)||this.container.style.height)}getContainerInnerWidth(t){const n=this.getContainerClientWidth(t),{left:r,right:i}=(null==t?void 0:t.margin)||gi.margin;return n?n-i-r:0}getContainerInnerHeight(t){const n=this.getContainerClientHeight(t),{top:r,bottom:i}=(null==t?void 0:t.margin)||gi.margin;return n?n-r-i:0}mergeLayout(t,n,r){return{width:n&&n.width?n.width:gi.width,height:n&&n.height?n.height:gi.height,margin:Object.assign({},gi.margin,{top:r?60:gi.margin.top,left:"VEGA-LINE-CHART"===t||"VEGA-BAR-CHART"===t?60:gi.margin.left},n&&n.margin?n.margin:{})}}}class wi{constructor(t){this.context=t,this.interactingEntryForEventRegistry=new Map,this.interactingEntryForDrawerRegistry=new WeakMap}register(t,n,r){const i=r.eventType;this.interactingEntryForEventRegistry.get(i)||this.interactingEntryForEventRegistry.set(i,[]),this.interactingEntryForEventRegistry.get(i).push(r),this.interactingEntryForDrawerRegistry.get(t)||this.interactingEntryForDrawerRegistry.set(t,new WeakMap),this.interactingEntryForDrawerRegistry.get(t).get(n)||this.interactingEntryForDrawerRegistry.get(t).set(n,[]),this.interactingEntryForDrawerRegistry.get(t).get(n).push(r)}unregisterByDrawer(t){const n=t.drawPiece;n&&this.interactingEntryForDrawerRegistry.has(t)&&this.interactingEntryForDrawerRegistry.get(t)&&this.interactingEntryForDrawerRegistry.get(t).has(n)&&this.interactingEntryForDrawerRegistry.get(t).get(n)&&this.interactingEntryForEventRegistry.forEach(((r,i)=>{this.interactingEntryForEventRegistry.set(i,r.filter((r=>this.interactingEntryForDrawerRegistry.get(t).get(n).indexOf(r)<0)))})),this.interactingEntryForDrawerRegistry.delete(t)}callRegistry(t,n){const r=this.interactingEntryForEventRegistry.get(t);r&&r.forEach((t=>{t.shouldHandle(n)&&t.handle(n)}))}}class yi extends wi{}class bi extends wi{constructor(t){super(t),this.addContextListener()}addContextListener(){this.context.addEventListener("click",(t=>{this.callRegistry("click",t)})),this.context.addEventListener("mouseover",(t=>{this.callRegistry("mouseover",t)}))}}class pi{constructor(t){this.options=t,this.isLayoutSet=!1,this.drawers=[];const n=class{static get(t,n){if("canvas"===t){const t=n.querySelector("canvas");let r;return t?r=t:(r=document.createElement("canvas"),r=n.appendChild(r)),r}{const t=n.querySelector("svg");let r;return t?r=t:(r=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=n.appendChild(r)),r}}}.get(t.mode,t.container.shadowRoot?t.container.shadowRoot:t.container);this.dimensionController=new vi(t.container),this.renderer=class{static get(t){if(t instanceof SVGElement)return new li(t);if(t instanceof HTMLCanvasElement)return new di(t);throw new Error("Invalid context")}}.get(n),this.interactor=class{static get(t){if(t instanceof SVGElement)return new bi(t);if(t instanceof HTMLCanvasElement)return new yi(t);throw new Error("Invalid context")}}.get(n),this.initLayoutOptions(t)}clear(){this.renderer.clear()}updateOptions(t){this.initLayoutOptions(t),this.isLayoutSet=!1,this.render()}reRender(){this.updateOptions(this.options)}render(){this.unregisterByDrawer(),this.drawers=this.createDrawerChain(this.renderer,this.interactor),this.clear(),this.isLayoutSet||(this.setLayout(),this.isLayoutSet=!0),this.drawers.forEach((t=>t.execute()))}setLayout(){const t=this.options.layout,n=this.dimensionController.getContainerClientWidth(t),r=this.dimensionController.getContainerClientHeight(t),i=(null==t?void 0:t.margin)||gi.margin;this.renderer.setLayout(n,r,i.top,i.left)}initLayoutOptions(t){const n=this.dimensionController.mergeLayout(t.container.tagName,t.layout,!(!t.legends||!t.legends.length));this.options=Object.assign(t,{layout:n}),this.dimensionController.setContainerWidthAndHeight(n),this.options.container.style.display="block"}unregisterByDrawer(){this.drawers&&this.drawers.forEach((t=>{this.interactor.unregisterByDrawer(t)}))}}const mi={"bg-brand":"#33393D","bg-page":"#F0F3F7","bg-primary":"#FCFCFC","bg-secondary":"#F5F7F7","bg-tertiary":"#F0F3F7","bg-quaternary":"#F1F8FB","bg-inverted-primary":"#04041C","bg-inverted-secondary":"#121227","bg-inverted-tertiary":"#181830","bg-inverted-quaternary":"#464765","bg-action":"#1362E2","bg-action-hover":"#0470EC","bg-action-focus":"#1362E2","bg-action-active":"#1D41C3","bg-action-quaternary":"#DEE1E3","bg-action-quaternary-hover":"#EFEFEF","bg-action-quaternary-active":"#CDD1D3","bg-action-secondary":"#FCFCFC","bg-action-secondary-hover":"#0470EC","bg-action-secondary-active":"#1D41C3","bg-action-tertiary":"#000000","bg-action-tertiary-hover":"#04041C","bg-action-tertiary-active":"#04041C","bg-app-header":"#F0F3F7","bg-backdrop-modal":"#121227","bg-backdrop-popover":"#203645","bg-backdrop-sidebar":"#121227","bg-chip":"#203645","bg-chip-hover":"#203645","bg-chip-active":"#203645","bg-danger":"#BD2947","bg-danger-hover":"#E94768","bg-danger-focus":"#BD2947","bg-danger-active":"#E63257","bg-danger-tertiary":"#000000","bg-danger-tertiary-hover":"#FF5772","bg-danger-tertiary-active":"#BD2947","bg-disabled":"#B0B4B5","bg-divider":"#ABC6D8","bg-divider-secondary":"#C7D9E5","bg-keypad-btn-active":"#E5EFFF","bg-loading-progress":"#99C0FF","bg-loading-track":"#E5EFFF","bg-segment-hover":"#CDD1D3","bg-segment-control":"#596063","bg-selected":"#0097FF","bg-sidebar":"#121227","bg-sidebar-icon":"#BCBAD5","bg-sidebar-icon-hover":"#121227","bg-sidebar-icon-selected":"#FCFCFC","bg-sidebar-item-hover":"#FCFCFC","bg-sidebar-item-selected":"#1362E2","bg-site-footer":"#33393D","bg-site-footer-action":"#ABC6D8","bg-site-footer-action-hover":"#C7D9E5","bg-site-footer-action-active":"#8FB3CB","bg-site-footer-field":"#596063","bg-slider-handle":"#FCFCFC","bg-status-error":"#FF6E8B","bg-status-info":"#CDD1D3","bg-status-success":"#A0E9A7","bg-status-warning":"#FFDC83","bg-tab":"#F0F3F7","bg-tab-hover":"#F5F7F7","bg-tab-selected":"#203645","bg-table-alt-row":"#F5F7F7","bg-table-header":"#F0F3F7","bg-table-row-hover":"#F1F8FB","bg-table-row-selected-expanded":"#E5EFFF","bg-table-selected-row":"#CCDFFF","bg-textarea-count":"#04041C","bg-tile":"#FCFCFC","bg-tile-hover":"#F5F7F7","bg-tile-selected":"#F2F7FF","bg-tile-selected-hover":"#E5EFFF","bg-toggle-switch":"#6B747D","bg-toggle-switch-hover":"#6B747D","bg-toggle-switch-selected-disabled":"#99C0FF","bg-transparent":"#000000","bg-accent1-primary":"#73E6DC","bg-accent1-secondary":"#C1F4EF","bg-accent1-tertiary":"#E0F9F7","bg-accent2-primary":"#806BFF","bg-accent2-secondary":"#C7BDFF","bg-accent2-tertiary":"#E3DEFF","bg-accent3-primary":"#FFDC83","bg-accent3-secondary":"#FFEFC8","bg-accent3-tertiary":"#FFF7E3","bg-accent4-primary":"#FF9571","bg-accent4-secondary":"#FFD0C0","bg-accent4-tertiary":"#FFE7DF","bg-accent5-primary":"#00BBFF","bg-accent5-secondary":"#8EDFF9","bg-accent5-tertiary":"#E3F7FD","bg-accent6-primary":"#FF82C9","bg-accent6-secondary":"#FFC7E7","bg-accent6-tertiary":"#FFE3F3","bg-accent7-primary":"#259F9F","bg-accent7-secondary":"#9BD4D6","bg-accent7-tertiary":"#D0EFEF","bg-accent8-primary":"#563D82","bg-accent8-secondary":"#C7A2CC","bg-accent8-tertiary":"#E6D6EA","bg-accent9-primary":"#FFBF3F","bg-accent9-secondary":"#FED78E","bg-accent9-tertiary":"#FBE2B9","bg-accent10-primary":"#ED7A23","bg-accent10-secondary":"#F19255","bg-accent10-tertiary":"#F5BB94","bg-date-picker-range":"#E5EFFF"},Fi=["bg-accent1-primary","bg-accent2-primary","bg-accent3-primary","bg-accent4-primary","bg-accent5-primary","bg-accent6-primary","bg-accent7-primary","bg-accent8-primary","bg-accent9-primary","bg-accent10-primary"],$i=Object.keys(n).reduce(((t,r)=>(t[r]='font-family:"Inter", sans-serif;'+n[r].filter((t=>t.indexOf("@apply")<0)).join(";"),t)),{"v-text-secondary":"color:rgba(107, 116, 125, 1);"});class xi{constructor(t,n,r){this.renderer=t,this.interactor=n,this.options=r}execute(){const t=this.draw();this.drawPiece=t,this.addInteractionSupport(t)}getColorByIndex(t,n){return(n=n&&n.length?n:Fi)[t%=n.length]}getColorFromToken(t){return mi[t]}getStyleTextFromToken(t){return t.split(" ").map((t=>$i[t])).join(";")}}class Ei{generate(t){return{eventType:this.eventType,shouldHandle:this.createShouldHandle(t),handle:this.createHandle(t)}}}class ki extends Ei{constructor(){super(...arguments),this.eventType="mouseover"}createShouldHandle(){return this.shouldHandle}createHandle(t){return n=>{this.handle(n,t)}}shouldHandle(t){var n;const r=t.target,i=t.currentTarget;return"VEGA-PIE-CHART"===(i.parentElement&&11!==i.parentElement.nodeType?i.parentElement:i.parentNode.host).tagName&&(r.classList.contains("vega-chart-legend-item")||!!(null===(n=r.parentElement)||void 0===n?void 0:n.classList.contains("vega-chart-legend-item")))}handle(t,n){var r;const i=Lt(t.currentTarget),e=t.target,o="text"===e.tagName?e:"circle"===e.tagName?e.nextElementSibling:e.querySelector("text"),s=o?o.textContent:"",u=s?n.data.indexOf(s):0;null===(r=i.selectAll("path.vega-chart-arc-path").nodes()[u])||void 0===r||r.dispatchEvent(new MouseEvent("mouseover",{bubbles:!0}))}}class Ci extends xi{constructor(){super(...arguments),this.pieLegendHoverGenerator=new ki}addInteractionSupport(t){var n;(null===(n=this.options.renderOptions.data)||void 0===n?void 0:n.length)&&this.interactor.register(this,t,this.pieLegendHoverGenerator.generate(this.options.renderOptions))}draw(){const{data:n=[],colors:r,position:i,width:e}=this.options.renderOptions,o=this.getChartLegendOptions(n,r,i);if(o){const r=t(n);return o.legends.map(((t,n)=>{const i=this.getLegendPosition(o.position,n,r,e);return this.renderer.drawLegend(i,t.field,t.color,this.getStyleTextFromToken("v-font-footnote2-short"))}))}}getChartLegendOptions(t,n,r){if(t&&t.length)return{position:r=r?Object.assign({x:10,y:0},r):{x:10,y:0},legends:t.map(((t,r)=>({field:t,color:this.getColorFromToken(this.getColorByIndex(r,n)),icon:""})))}}getLegendPosition(t,n,r,i){if(i){const e=7*r+24,o=18,s=Math.max(Number(((i-t.x)/e).toFixed(0)),1),u=parseInt((n/s).toString());return{x:t.x+e*(n%s),y:t.y+u*o}}return{x:0,y:0}}}class Mi{process(t){const{container:n,layout:r}=t,{top:i,right:e,bottom:o,left:s}=(null==r?void 0:r.margin)||gi.margin,u=new vi(n);return{width:u.getContainerClientWidth(r),height:u.getContainerClientHeight(r),innerWidth:u.getContainerInnerWidth(r),innerHeight:u.getContainerInnerHeight(r),top:i,right:e,bottom:o,left:s}}}class Ai{constructor(t){this.processors=t}process(t){let n;for(const r of this.processors)n=r.process(t,n);return n}}class Di{process(t,n){const{colors:r,legends:i=[]}=t,{width:e,height:o}=n;return{data:i,colors:r,position:{x:10,y:10},width:e,height:o}}}export{xi as B,Ei as I,Mi as L,Ai as P,pi as a,Di as b,Ci as c,yn as d,Ut as e,pn as f,xn as g,si as h,mn as i,qr as j,Lt as k,Gr as t}