@ncino/web-components 9.0.0-preview.6 → 9.0.0-preview.9

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 (424) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +1 -1
  2. package/dist/_virtual/index.js +1 -1
  3. package/dist/assets/node_modules/.pnpm/ckeditor5@47.3.0/node_modules/ckeditor5/dist/ckeditor5.css +1 -0
  4. package/dist/components/input/gator/input-phone/input-phone.gator.js +1 -1
  5. package/dist/components/input-rich-text/ckeditor-config.js +1 -1
  6. package/dist/components/input-rich-text/input-rich-text.slds.js +2 -2
  7. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  8. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@46.1.1 → @ckeditor_ckeditor5-alignment@47.3.0}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
  9. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@46.1.1 → @ckeditor_ckeditor5-autoformat@47.3.0}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
  10. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@46.1.1 → @ckeditor_ckeditor5-autosave@47.3.0}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
  11. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@46.1.1 → @ckeditor_ckeditor5-basic-styles@47.3.0}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
  12. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@46.1.1 → @ckeditor_ckeditor5-block-quote@47.3.0}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
  13. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@47.3.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +8 -0
  14. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@46.1.1 → @ckeditor_ckeditor5-cloud-services@47.3.0}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
  15. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@46.1.1 → @ckeditor_ckeditor5-code-block@47.3.0}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
  16. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@47.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -0
  17. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@46.1.1 → @ckeditor_ckeditor5-editor-classic@47.3.0}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
  18. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-engine@47.3.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +3 -0
  19. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@46.1.1 → @ckeditor_ckeditor5-enter@47.3.0}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
  20. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@46.1.1 → @ckeditor_ckeditor5-essentials@47.3.0}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
  21. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@46.1.1 → @ckeditor_ckeditor5-find-and-replace@47.3.0}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +2 -2
  22. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@46.1.1 → @ckeditor_ckeditor5-font@47.3.0}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
  23. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@46.1.1 → @ckeditor_ckeditor5-heading@47.3.0}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
  24. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@46.1.1 → @ckeditor_ckeditor5-highlight@47.3.0}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
  25. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@46.1.1 → @ckeditor_ckeditor5-horizontal-line@47.3.0}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
  26. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@47.3.0/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -0
  27. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@47.3.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +3 -0
  28. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@46.1.1 → @ckeditor_ckeditor5-icons@47.3.0}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +1 -1
  29. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@47.3.0/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -0
  30. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-indent@46.1.1 → @ckeditor_ckeditor5-indent@47.3.0}/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -1
  31. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@46.1.1 → @ckeditor_ckeditor5-language@47.3.0}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
  32. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@47.3.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -0
  33. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@47.3.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -0
  34. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@46.1.1 → @ckeditor_ckeditor5-markdown-gfm@47.3.0}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
  35. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@46.1.1 → @ckeditor_ckeditor5-media-embed@47.3.0}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
  36. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@46.1.1 → @ckeditor_ckeditor5-mention@47.3.0}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
  37. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-page-break@47.3.0/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -0
  38. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@46.1.1 → @ckeditor_ckeditor5-paragraph@47.3.0}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
  39. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@47.3.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +1 -0
  40. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@46.1.1 → @ckeditor_ckeditor5-remove-format@47.3.0}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
  41. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@46.1.1 → @ckeditor_ckeditor5-select-all@47.3.0}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
  42. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@46.1.1 → @ckeditor_ckeditor5-show-blocks@47.3.0}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
  43. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-source-editing@46.1.1 → @ckeditor_ckeditor5-source-editing@47.3.0}/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +1 -1
  44. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@47.3.0/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -0
  45. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@46.1.1 → @ckeditor_ckeditor5-style@47.3.0}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
  46. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@47.3.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +1 -0
  47. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-typing@46.1.1 → @ckeditor_ckeditor5-typing@47.3.0}/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +1 -1
  48. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@47.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -0
  49. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@46.1.1 → @ckeditor_ckeditor5-undo@47.3.0}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
  50. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@46.1.1 → @ckeditor_ckeditor5-upload@47.3.0}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
  51. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@47.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +8 -0
  52. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@47.3.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -0
  53. package/dist/node_modules/.pnpm/@vitest_expect@4.0.15/node_modules/@vitest/expect/dist/index.js +58 -0
  54. package/dist/node_modules/.pnpm/@vitest_pretty-format@4.0.15/node_modules/@vitest/pretty-format/dist/index.js +5 -0
  55. package/dist/node_modules/.pnpm/@vitest_runner@4.0.15/node_modules/@vitest/runner/dist/chunk-tasks.js +2 -0
  56. package/dist/node_modules/.pnpm/@vitest_runner@4.0.15/node_modules/@vitest/runner/dist/index.js +4 -0
  57. package/dist/node_modules/.pnpm/@vitest_snapshot@4.0.15/node_modules/@vitest/snapshot/dist/index.js +21 -0
  58. package/dist/node_modules/.pnpm/@vitest_spy@4.0.15/node_modules/@vitest/spy/dist/index.js +1 -0
  59. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +1 -0
  60. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +1 -0
  61. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/diff.js +42 -0
  62. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/display.js +2 -0
  63. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/error.js +2 -0
  64. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/helpers.js +1 -0
  65. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/serialize.js +1 -0
  66. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/source-map.js +1 -0
  67. package/dist/node_modules/.pnpm/@vitest_utils@4.0.15/node_modules/@vitest/utils/dist/timers.js +1 -0
  68. package/dist/node_modules/.pnpm/chai@6.2.1/node_modules/chai/index.js +2 -0
  69. package/dist/node_modules/.pnpm/tinyrainbow@3.0.3/node_modules/tinyrainbow/dist/index.js +1 -0
  70. package/dist/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js +1 -1
  71. package/dist/node_modules/.pnpm/vitest@4.0.15_@types_node@24.10.1_@vitest_browser-playwright@4.0.15_@vitest_ui@4.0.15_j_0c91d94893276de308eb5b07cced5df8/node_modules/vitest/browser/context.js +1 -0
  72. package/dist/node_modules/.pnpm/vitest@4.0.15_@types_node@24.10.1_@vitest_browser-playwright@4.0.15_@vitest_ui@4.0.15_j_0c91d94893276de308eb5b07cced5df8/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +1 -0
  73. package/dist/node_modules/.pnpm/vitest@4.0.15_@types_node@24.10.1_@vitest_browser-playwright@4.0.15_@vitest_ui@4.0.15_j_0c91d94893276de308eb5b07cced5df8/node_modules/vitest/dist/chunks/utils.DvEY5TfP.js +8 -0
  74. package/dist/node_modules/.pnpm/vitest@4.0.15_@types_node@24.10.1_@vitest_browser-playwright@4.0.15_@vitest_ui@4.0.15_j_0c91d94893276de308eb5b07cced5df8/node_modules/vitest/dist/chunks/vi.2VT5v0um.js +11 -0
  75. package/dist/utils/vitest-a11y-utils.js +1 -1
  76. package/package.json +22 -21
  77. package/web-types.json +1 -1
  78. package/dist/_virtual/___vite-browser-external.js +0 -1
  79. package/dist/_virtual/__vite-browser-external.js +0 -1
  80. package/dist/_virtual/api-request.js +0 -1
  81. package/dist/_virtual/constants.js +0 -1
  82. package/dist/_virtual/events.js +0 -1
  83. package/dist/_virtual/external.js +0 -1
  84. package/dist/_virtual/external2.js +0 -1
  85. package/dist/_virtual/external3.js +0 -1
  86. package/dist/_virtual/external_types.js +0 -1
  87. package/dist/_virtual/fetch.js +0 -1
  88. package/dist/_virtual/figma_client.js +0 -1
  89. package/dist/_virtual/figma_rest_api.js +0 -1
  90. package/dist/_virtual/helpers.js +0 -1
  91. package/dist/_virtual/index10.js +0 -1
  92. package/dist/_virtual/index11.js +0 -1
  93. package/dist/_virtual/index12.js +0 -1
  94. package/dist/_virtual/index2.js +0 -1
  95. package/dist/_virtual/index3.js +0 -1
  96. package/dist/_virtual/index4.js +0 -1
  97. package/dist/_virtual/index5.js +0 -1
  98. package/dist/_virtual/index6.js +0 -1
  99. package/dist/_virtual/index7.js +0 -1
  100. package/dist/_virtual/index8.js +0 -1
  101. package/dist/_virtual/index9.js +0 -1
  102. package/dist/_virtual/index_common.js +0 -1
  103. package/dist/_virtual/index_html.js +0 -1
  104. package/dist/_virtual/index_html2.js +0 -1
  105. package/dist/_virtual/index_react.js +0 -1
  106. package/dist/_virtual/index_react2.js +0 -1
  107. package/dist/_virtual/inherits_browser.js +0 -1
  108. package/dist/_virtual/logging.js +0 -1
  109. package/dist/_virtual/main.js +0 -1
  110. package/dist/_virtual/main2.js +0 -1
  111. package/dist/_virtual/mock-interceptor.js +0 -1
  112. package/dist/_virtual/react.production.js +0 -1
  113. package/dist/_virtual/string_decoder.js +0 -1
  114. package/dist/_virtual/template_literal.js +0 -1
  115. package/dist/_virtual/types.js +0 -1
  116. package/dist/_virtual/updates.js +0 -1
  117. package/dist/_virtual/util.js +0 -1
  118. package/dist/_virtual/utils.js +0 -1
  119. package/dist/assets/node_modules/.pnpm/ckeditor5@46.1.1/node_modules/ckeditor5/dist/ckeditor5.css +0 -1
  120. package/dist/components/accordion/gator/base/accordion.gator.figma.js +0 -10
  121. package/dist/components/accordion/gator/group/accordion-group.gator.figma.js +0 -3
  122. package/dist/components/alert/alert.gator.figma.js +0 -7
  123. package/dist/components/avatar/gator/avatar.gator.figma.js +0 -9
  124. package/dist/components/banner/gator/banner.gator.figma.js +0 -8
  125. package/dist/components/boolean/boolean.gator.figma.js +0 -11
  126. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.figma.js +0 -3
  127. package/dist/components/breadcrumbs/gator/container/breadcrumbs.gator.figma.js +0 -5
  128. package/dist/components/button/gator/button.gator.figma.js +0 -12
  129. package/dist/components/button-group/gator/button-group.gator.figma.js +0 -7
  130. package/dist/components/icon/gator/icon.gator.figma.js +0 -7
  131. package/dist/components/icon/gator/icons.gator.figma.js +0 -1
  132. package/dist/components/text-detail/gator/text-detail.gator.figma.js +0 -30
  133. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@46.1.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +0 -8
  134. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js +0 -1
  135. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +0 -3
  136. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@46.1.1/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +0 -1
  137. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@46.1.1/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +0 -3
  138. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@46.1.1/node_modules/@ckeditor/ckeditor5-image/dist/index.js +0 -1
  139. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@46.1.1/node_modules/@ckeditor/ckeditor5-link/dist/index.js +0 -1
  140. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@46.1.1/node_modules/@ckeditor/ckeditor5-list/dist/index.js +0 -1
  141. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-page-break@46.1.1/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +0 -1
  142. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@46.1.1/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +0 -1
  143. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@46.1.1/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +0 -1
  144. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@46.1.1/node_modules/@ckeditor/ckeditor5-table/dist/index.js +0 -1
  145. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +0 -1
  146. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +0 -8
  147. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@46.1.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +0 -1
  148. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js +0 -3
  149. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js +0 -3
  150. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js +0 -1
  151. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js +0 -1
  152. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js +0 -1
  153. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/types/multipart.js +0 -1
  154. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/types/urlencoded.js +0 -1
  155. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/Decoder.js +0 -1
  156. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/basename.js +0 -1
  157. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/decodeText.js +0 -1
  158. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/getLimit.js +0 -1
  159. package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/parseParams.js +0 -3
  160. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/client/external.js +0 -1
  161. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -1
  162. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/common/fetch.js +0 -1
  163. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/common/logging.js +0 -1
  164. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/common/updates.js +0 -4
  165. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -1
  166. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -1
  167. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/connect/helpers.js +0 -1
  168. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -1
  169. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/html/external.js +0 -1
  170. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/html/index_html.js +0 -1
  171. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -1
  172. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/react/external.js +0 -1
  173. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/dist/react/index_react.js +0 -1
  174. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.9/node_modules/@figma/code-connect/package.json.js +0 -1
  175. package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.10.1_typescript@5.9.3__playwright@1.57.0_4c7b68e67853c98910921d3bcdc3c508/node_modules/@vitest/browser/context.js +0 -1
  176. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +0 -58
  177. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +0 -5
  178. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +0 -5
  179. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +0 -21
  180. package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +0 -1
  181. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +0 -1
  182. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +0 -42
  183. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +0 -2
  184. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +0 -1
  185. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +0 -1
  186. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +0 -1
  187. package/dist/node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js +0 -1
  188. package/dist/node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js +0 -1
  189. package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js +0 -1
  190. package/dist/node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js +0 -1
  191. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js +0 -1
  192. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js +0 -1
  193. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js +0 -1
  194. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js +0 -1
  195. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js +0 -1
  196. package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js +0 -1
  197. package/dist/node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js +0 -1
  198. package/dist/node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js +0 -1
  199. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +0 -2
  200. package/dist/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js +0 -2
  201. package/dist/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js +0 -2
  202. package/dist/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js +0 -4
  203. package/dist/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js +0 -1
  204. package/dist/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js +0 -1
  205. package/dist/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js +0 -1
  206. package/dist/node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js +0 -1
  207. package/dist/node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/esm/compare.js +0 -1
  208. package/dist/node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/esm/compareVersions.js +0 -1
  209. package/dist/node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/esm/index.js +0 -1
  210. package/dist/node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/esm/satisfies.js +0 -1
  211. package/dist/node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/esm/utils.js +0 -1
  212. package/dist/node_modules/.pnpm/compare-versions@6.1.1/node_modules/compare-versions/lib/esm/validate.js +0 -1
  213. package/dist/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js +0 -1
  214. package/dist/node_modules/.pnpm/dotenv@16.6.1/node_modules/dotenv/lib/main.js +0 -3
  215. package/dist/node_modules/.pnpm/dotenv@16.6.1/node_modules/dotenv/package.json.js +0 -1
  216. package/dist/node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js +0 -1
  217. package/dist/node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js +0 -1
  218. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js +0 -1
  219. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js +0 -1
  220. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js +0 -1
  221. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js +0 -1
  222. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js +0 -1
  223. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js +0 -1
  224. package/dist/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js +0 -1
  225. package/dist/node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js +0 -1
  226. package/dist/node_modules/.pnpm/events@3.3.0/node_modules/events/events.js +0 -1
  227. package/dist/node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js +0 -1
  228. package/dist/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js +0 -1
  229. package/dist/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js +0 -1
  230. package/dist/node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js +0 -1
  231. package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js +0 -1
  232. package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -1
  233. package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js +0 -1
  234. package/dist/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js +0 -1
  235. package/dist/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js +0 -1
  236. package/dist/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js +0 -1
  237. package/dist/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js +0 -1
  238. package/dist/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js +0 -1
  239. package/dist/node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js +0 -1
  240. package/dist/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js +0 -1
  241. package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js +0 -1
  242. package/dist/node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js +0 -1
  243. package/dist/node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js +0 -1
  244. package/dist/node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js +0 -1
  245. package/dist/node_modules/.pnpm/is-generator-function@1.1.0/node_modules/is-generator-function/index.js +0 -1
  246. package/dist/node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js +0 -1
  247. package/dist/node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js +0 -1
  248. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +0 -1
  249. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +0 -1
  250. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +0 -1
  251. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +0 -1
  252. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +0 -1
  253. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +0 -1
  254. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +0 -1
  255. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +0 -1
  256. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +0 -1
  257. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +0 -2
  258. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +0 -1
  259. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +0 -1
  260. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +0 -1
  261. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +0 -1
  262. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +0 -1
  263. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +0 -1
  264. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +0 -1
  265. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +0 -1
  266. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +0 -1
  267. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +0 -1
  268. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js +0 -1
  269. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js +0 -1
  270. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js +0 -1
  271. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js +0 -1
  272. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js +0 -1
  273. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js +0 -1
  274. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js +0 -1
  275. package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js +0 -1
  276. package/dist/node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js +0 -1
  277. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.production.js +0 -1
  278. package/dist/node_modules/.pnpm/react@19.2.0/node_modules/react/index.js +0 -1
  279. package/dist/node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js +0 -1
  280. package/dist/node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js +0 -1
  281. package/dist/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js +0 -1
  282. package/dist/node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js +0 -1
  283. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +0 -1
  284. package/dist/node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/browser.js +0 -1
  285. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js +0 -1
  286. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +0 -1
  287. package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +0 -1
  288. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/index.js +0 -1
  289. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/agent.js +0 -1
  290. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/abort-signal.js +0 -1
  291. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-connect.js +0 -1
  292. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-pipeline.js +0 -1
  293. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-request.js +0 -1
  294. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-stream.js +0 -1
  295. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-upgrade.js +0 -1
  296. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/index.js +0 -1
  297. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/readable.js +0 -1
  298. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/util.js +0 -1
  299. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/balanced-pool.js +0 -1
  300. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js +0 -1
  301. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js +0 -1
  302. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/symbols.js +0 -1
  303. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/util.js +0 -1
  304. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/client.js +0 -26
  305. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/compat/dispatcher-weakref.js +0 -1
  306. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/constants.js +0 -1
  307. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/index.js +0 -1
  308. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js +0 -1
  309. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/util.js +0 -1
  310. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/connect.js +0 -1
  311. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/constants.js +0 -1
  312. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/errors.js +0 -1
  313. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/request.js +0 -5
  314. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/symbols.js +0 -1
  315. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/util.js +0 -1
  316. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher-base.js +0 -1
  317. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher.js +0 -1
  318. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/body.js +0 -9
  319. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js +0 -1
  320. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/dataURL.js +0 -3
  321. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/file.js +0 -3
  322. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/formdata.js +0 -1
  323. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/global.js +0 -1
  324. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js +0 -1
  325. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js +0 -1
  326. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js +0 -1
  327. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js +0 -1
  328. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/symbols.js +0 -1
  329. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js +0 -2
  330. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js +0 -1
  331. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/encoding.js +0 -1
  332. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/filereader.js +0 -1
  333. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/progressevent.js +0 -1
  334. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/symbols.js +0 -1
  335. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fileapi/util.js +0 -1
  336. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/global.js +0 -1
  337. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/DecoratorHandler.js +0 -1
  338. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RedirectHandler.js +0 -1
  339. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RetryHandler.js +0 -1
  340. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/interceptor/redirectInterceptor.js +0 -1
  341. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/constants.js +0 -1
  342. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -1
  343. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -1
  344. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/utils.js +0 -1
  345. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-agent.js +0 -5
  346. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-client.js +0 -1
  347. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-errors.js +0 -1
  348. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-interceptor.js +0 -1
  349. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-pool.js +0 -1
  350. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-symbols.js +0 -1
  351. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/mock-utils.js +0 -1
  352. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -1
  353. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/mock/pluralizer.js +0 -1
  354. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/node/fixed-queue.js +0 -1
  355. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-base.js +0 -1
  356. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-stats.js +0 -1
  357. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool.js +0 -1
  358. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/proxy-agent.js +0 -1
  359. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/timers.js +0 -1
  360. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js +0 -1
  361. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/constants.js +0 -1
  362. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js +0 -1
  363. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js +0 -1
  364. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js +0 -1
  365. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/symbols.js +0 -1
  366. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js +0 -1
  367. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js +0 -1
  368. package/dist/node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBufferBrowser.js +0 -1
  369. package/dist/node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js +0 -1
  370. package/dist/node_modules/.pnpm/util@0.12.5/node_modules/util/util.js +0 -10
  371. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.1_@vitest_browser@3.2.4_@vitest_ui@3_6e27007ba0535c26eedf5a22febb1842/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -1
  372. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.1_@vitest_browser@3.2.4_@vitest_ui@3_6e27007ba0535c26eedf5a22febb1842/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -1
  373. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.1_@vitest_browser@3.2.4_@vitest_ui@3_6e27007ba0535c26eedf5a22febb1842/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +0 -8
  374. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.10.1_@vitest_browser@3.2.4_@vitest_ui@3_6e27007ba0535c26eedf5a22febb1842/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +0 -12
  375. package/dist/node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js +0 -1
  376. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@46.1.1 → @ckeditor_ckeditor5-watchdog@47.3.0}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
  377. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/ParseError.js +0 -0
  378. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/PhoneNumber.js +0 -0
  379. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/constants.js +0 -0
  380. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/format.js +0 -0
  381. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -0
  382. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -0
  383. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -0
  384. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -0
  385. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -0
  386. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -0
  387. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -0
  388. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -0
  389. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -0
  390. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -0
  391. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -0
  392. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -0
  393. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -0
  394. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +0 -0
  395. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -0
  396. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -0
  397. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -0
  398. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -0
  399. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -0
  400. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -0
  401. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -0
  402. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -0
  403. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/isPossible.js +0 -0
  404. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/isValid.js +0 -0
  405. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/metadata.js +0 -0
  406. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -0
  407. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/parse.js +0 -0
  408. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -0
  409. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -0
  410. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -0
  411. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -0
  412. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -0
  413. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/metadata.min.json.js +0 -0
  414. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -0
  415. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.30 → libphonenumber-js@1.12.31}/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -0
  416. /package/dist/node_modules/.pnpm/{storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.1.4_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/storybook/dist/_browser-chunks/chunk-A242L54C.js +0 -0
  417. /package/dist/node_modules/.pnpm/{storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.1.4_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/storybook/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -0
  418. /package/dist/node_modules/.pnpm/{storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.1.4_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/storybook/dist/_browser-chunks/chunk-JP7NCOJX.js +0 -0
  419. /package/dist/node_modules/.pnpm/{storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.1.4_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/storybook/dist/_browser-chunks/chunk-RP5RXKFU.js +0 -0
  420. /package/dist/node_modules/.pnpm/{storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.1.4_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/storybook/dist/_browser-chunks/chunk-ZUWEVLDX.js +0 -0
  421. /package/dist/node_modules/.pnpm/{storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.1.4_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/storybook/dist/client-logger/index.js +0 -0
  422. /package/dist/node_modules/.pnpm/{storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.1.4_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/storybook/dist/core-events/index.js +0 -0
  423. /package/dist/node_modules/.pnpm/{storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.1.4_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/storybook/dist/instrumenter/index.js +0 -0
  424. /package/dist/node_modules/.pnpm/{storybook@10.1.2_@testing-library_dom@10.4.1_prettier@3.6.2_react-dom@19.2.0_react@19.2.0__react@19.2.0 → storybook@10.1.4_@testing-library_dom@10.4.1_prettier@3.7.4_react-dom@19.2.0_react@19.2.0__react@19.2.0}/node_modules/storybook/dist/test/index.js +0 -0
@@ -1 +0,0 @@
1
- import{Plugin as y,Command as v}from"../../../../../@ckeditor_ckeditor5-core@46.1.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as lo,WidgetToolbarRepository as Ue,toWidgetEditable as pt,isWidget as io,toWidget as so}from"../../../../../@ckeditor_ckeditor5-widget@46.1.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{Collection as Ct,first as Le,getLocalizedArrowKeyCodeDirection as ro,DomEmitterMixin as ao,global as ie,Rect as se,toUnit as co,CKEditorError as je,KeystrokeHandler as ge,FocusTracker as be}from"../../../../../@ckeditor_ckeditor5-utils@46.1.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconTable as Ge,IconTableColumn as uo,IconTableRow as ho,IconTableMergeCell as mo,IconCaption as go,IconTableCellProperties as bo,IconTableProperties as fo,IconCheck as wt,IconCancel as Tt,IconObjectInlineRight as po,IconObjectCenter as Co,IconObjectInlineLeft as wo,IconAlignBottom as To,IconAlignMiddle as _o,IconAlignTop as yo,IconAlignJustify as Ao,IconAlignRight as vo,IconAlignCenter as So,IconAlignLeft as Ro}from"../../../../../@ckeditor_ckeditor5-icons@46.1.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{createDropdown as te,MenuBarMenuView as Io,SwitchButtonView as xo,addListToDropdown as We,ButtonView as P,ContextualBalloon as re,normalizeColorOptions as ae,getLocalizedColorOptions as ce,clickOutsideHandler as _t,SplitButtonView as Vo,View as F,addKeyboardHandlingForGrid as ko,UIModel as yt,ViewCollection as Be,FocusCycler as Ne,FormHeaderView as At,FormRowView as R,submitHandler as vt,LabelView as L,LabeledFieldView as I,createLabeledDropdown as St,createLabeledInputText as D,ToolbarView as Te,BalloonPanelView as N,InputTextView as Po,ColorSelectorView as Eo}from"../../../../../@ckeditor_ckeditor5-ui@46.1.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ClipboardMarkersUtils as Ce,ClipboardPipeline as $e}from"../../../../../@ckeditor_ckeditor5-clipboard@46.1.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{enableViewPlaceholder as Lo,ModelElement as Wo,addBorderStylesRules as Rt,addPaddingStylesRules as Bo,addBackgroundStylesRules as It,DomEventObserver as No,isColorStyleValue as Do,isLengthStyleValue as xt,isPercentageStyleValue as Fo}from"../../../../../@ckeditor_ckeditor5-engine@46.1.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{debounce as Vt}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/debounce.js";import{isEqual as Ke}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/predicate/isEqual.js";import{throttle as Mo}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/function/throttle.js";import{isObject as Oo}from"../../../../../es-toolkit@1.39.5/node_modules/es-toolkit/dist/compat/predicate/isObject.js";function De(i,e){const{modelAttribute:t,styleName:o,attributeName:n,attributeType:l,viewElement:s,defaultValue:r,shouldUpcast:a=()=>!0,reduceBoxSides:c=!1}=e;i.for("upcast").attributeToAttribute({view:{name:s,styles:{[o]:/[\s\S]+/}},model:{key:t,value:(d,u,h)=>{if(!a(d))return;const g=k(r,"",h),m=d.getNormalizedStyle(o),b=c?ne(m):m;if(g!==b)return b;u.consumable.consume(d,{styles:o})}}}),n&&i.for("upcast").attributeToAttribute({view:{name:s,attributes:{[n]:/.+/}},model:{key:t,value:(d,u,h)=>{if(d.name=="figure"||d.hasStyle(o)||d.name=="table"&&d.parent.name=="figure"&&d.parent.hasStyle(o))return;const g=k(r,"",h);let m=d.getAttribute(n);if(m&&l=="length"&&!m.endsWith("px")&&(m+="px"),g!==m)return m;u.consumable.consume(d,{attributes:n})}}})}function _e(i,e,t,o){i.for("upcast").add(n=>n.on("element:"+e,(l,s,r)=>{if(!s.modelRange)return;const a=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter(b=>s.viewItem.hasStyle(b));if(!a.length)return;const c={styles:a};if(!r.consumable.test(s.viewItem,c))return;const d=[...s.modelRange.getItems({shallow:!0})].pop(),u=d.findAncestor("table",{includeSelf:!0});let h=o;u&&u.getAttribute("tableType")=="layout"&&(h={style:"none",color:"",width:""}),r.consumable.consume(s.viewItem,c);const g={style:s.viewItem.getNormalizedStyle("border-style"),color:s.viewItem.getNormalizedStyle("border-color"),width:s.viewItem.getNormalizedStyle("border-width")},m={style:ne(g.style),color:ne(g.color),width:ne(g.width)};m.style!==h.style&&r.writer.setAttribute(t.style,m.style,d),m.color!==h.color&&r.writer.setAttribute(t.color,m.color,d),m.width!==h.width&&r.writer.setAttribute(t.width,m.width,d)}))}function $(i,e){const{modelElement:t,modelAttribute:o,styleName:n}=e;i.for("downcast").attributeToAttribute({model:{name:t,key:o},view:l=>({key:"style",value:{[n]:l}})})}function oe(i,e){const{modelAttribute:t,styleName:o}=e;i.for("downcast").add(n=>n.on(`attribute:${t}:table`,(l,s,r)=>{const{item:a,attributeNewValue:c}=s,{mapper:d,writer:u}=r;if(!r.consumable.consume(s.item,l.name))return;const h=[...d.toViewElement(a).getChildren()].find(g=>g.is("element","table"));c?u.setStyle(o,c,h):u.removeStyle(o,h)}))}function k(i,e,t){const o=t.modelRange&&Le(t.modelRange.getItems({shallow:!0})),n=o&&o.is("element")&&o.findAncestor("table",{includeSelf:!0});return n&&n.getAttribute("tableType")==="layout"?e:i}function ne(i){if(!i)return;const e=["top","right","bottom","left"];if(!e.every(l=>i[l]))return i;const o=i.top;return e.every(l=>i[l]===o)?o:i}function _(i,e,t,o,n=1){e!=null&&n!==void 0&&n!==null&&e>n?o.setAttribute(i,e,t):o.removeAttribute(i,t)}function M(i,e,t={}){const o=i.createElement("tableCell",t);return i.insertElement("paragraph",o),i.insert(o,e),o}function ye(i,e){const t=e.parent.parent,o=parseInt(t.getAttribute("headingColumns")||"0"),{column:n}=i.getCellLocation(e);return!!o&&n<o}function le(i,e,t){const{modelAttribute:o}=t;i.extend("tableCell",{allowAttributes:[o]}),i.setAttributeProperties(o,{isFormatting:!0}),De(e,{viewElement:/^(td|th)$/,...t}),$(e,{modelElement:"tableCell",...t})}function W(i){const e=i.getSelectedElement();return e&&e.is("element","table")?e:i.getFirstPosition().findAncestor("table")}function zo(){return i=>{i.on("element:figure",(e,t,o)=>{if(!o.consumable.test(t.viewItem,{name:!0,classes:"table"}))return;const n=jo(t.viewItem);if(!n||!o.consumable.test(n,{name:!0}))return;o.consumable.consume(t.viewItem,{name:!0,classes:"table"});const l=o.convertItem(n,t.modelCursor),s=Le(l.modelRange.getItems());if(!s){o.consumable.revert(t.viewItem,{name:!0,classes:"table"});return}o.convertChildren(t.viewItem,o.writer.createPositionAt(s,"end")),o.updateConversionResult(s,t)})}}function Ho(){return i=>{i.on("element:table",(e,t,o)=>{const n=t.viewItem;if(!o.consumable.test(n,{name:!0}))return;const{rows:l,headingRows:s,headingColumns:r}=Go(n),a={};r&&(a.headingColumns=r),s&&(a.headingRows=s);const c=o.writer.createElement("table",a);if(o.safeInsert(c,t.modelCursor)){if(o.consumable.consume(n,{name:!0}),l.forEach(d=>o.convertItem(d,o.writer.createPositionAt(c,"end"))),o.convertChildren(n,o.writer.createPositionAt(c,"end")),c.isEmpty){const d=o.writer.createElement("tableRow");o.writer.insert(d,o.writer.createPositionAt(c,"end")),M(o.writer,o.writer.createPositionAt(d,"end"))}o.updateConversionResult(c,t)}})}}function Uo(){return i=>{i.on("element:tr",(e,t)=>{t.viewItem.isEmpty&&t.modelCursor.index==0&&e.stop()},{priority:"high"})}}function qe(i){return e=>{e.on(`element:${i}`,(t,o,{writer:n})=>{if(!o.modelRange)return;const l=o.modelRange.start.nodeAfter,s=n.createPositionAt(l,0);if(o.viewItem.isEmpty){n.insertElement("paragraph",s);return}const r=Array.from(l.getChildren());if(r.every(a=>a.is("element","$marker"))){const a=n.createElement("paragraph");n.insert(a,n.createPositionAt(l,0));for(const c of r)n.move(n.createRangeOn(c),n.createPositionAt(a,"end"))}},{priority:"low"})}}function jo(i){for(const e of i.getChildren())if(e.is("element","table"))return e}function Go(i){let e=0,t;const o=[],n=[];let l;for(const s of Array.from(i.getChildren())){if(s.name!=="tbody"&&s.name!=="thead"&&s.name!=="tfoot")continue;s.name==="thead"&&!l&&(l=s);const r=Array.from(s.getChildren()).filter(c=>c.is("element","tr"));let a=null;for(const c of r){const d=Array.from(c.getChildren()).filter(u=>u.is("element","td")||u.is("element","th"));if(l&&s===l||s.name==="tbody"&&d.length>0&&(a===null||d.length===a)&&d.every(u=>u.is("element","th")))e++,o.push(c);else{n.push(c);const u=$o(c);(!t||u<t)&&(t=u)}a=Math.max(a||0,d.length)}}return{headingRows:e,headingColumns:t||0,rows:[...o,...n]}}function $o(i){let e=0,t=0;const o=Array.from(i.getChildren()).filter(n=>n.name==="th"||n.name==="td");for(;t<o.length&&o[t].name==="th";){const n=o[t],l=parseInt(n.getAttribute("colspan")||"1");e=e+l,t++}return e}class w{_table;_startRow;_endRow;_startColumn;_endColumn;_includeAllSlots;_skipRows;_row;_rowIndex;_column;_cellIndex;_spannedCells;_nextCellAtColumn;_jumpedToStartRow=!1;constructor(e,t={}){this._table=e,this._startRow=t.row!==void 0?t.row:t.startRow||0,this._endRow=t.row!==void 0?t.row:t.endRow,this._startColumn=t.column!==void 0?t.column:t.startColumn||0,this._endColumn=t.column!==void 0?t.column:t.endColumn,this._includeAllSlots=!!t.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){this._canJumpToStartRow()&&this._jumpToNonSpannedRowClosestToStartRow();const e=this._table.getChild(this._rowIndex);if(!e||this._isOverEndRow())return{done:!0,value:void 0};if(!e.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let t=null;const o=this._getSpanned();if(o)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(o.cell,o.row,o.column));else{const n=e.getChild(this._cellIndex);if(!n)return this._advanceToNextRow();const l=parseInt(n.getAttribute("colspan")||"1"),s=parseInt(n.getAttribute("rowspan")||"1");(l>1||s>1)&&this._recordSpans(n,s,l),this._shouldSkipSlot()||(t=this._formatOutValue(n)),this._nextCellAtColumn=this._column+l}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}skipRow(e){this._skipRows.add(e)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return this._endRow!==void 0&&this._row>this._endRow}_isOverEndColumn(){return this._endColumn!==void 0&&this._column>this._endColumn}_formatOutValue(e,t=this._row,o=this._column){return{done:!1,value:new Ko(this,e,t,o)}}_shouldSkipSlot(){const e=this._skipRows.has(this._row),t=this._row<this._startRow,o=this._column<this._startColumn,n=this._endColumn!==void 0&&this._column>this._endColumn;return e||t||o||n}_getSpanned(){const e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,o){const n={cell:e,row:this._row,column:this._column};for(let l=this._row;l<this._row+t;l++)for(let s=this._column;s<this._column+o;s++)(l!=this._row||s!=this._column)&&this._markSpannedCell(l,s,n)}_markSpannedCell(e,t,o){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,o)}_canJumpToStartRow(){return!!this._startRow&&this._startRow>0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const e=this._getRowLength(0);for(let t=this._startRow;!this._jumpedToStartRow;t--)e===this._getRowLength(t)&&(this._row=t,this._rowIndex=t,this._jumpedToStartRow=!0)}_getRowLength(e){return[...this._table.getChild(e).getChildren()].reduce((o,n)=>o+parseInt(n.getAttribute("colspan")||"1"),0)}}class Ko{cell;row;column;cellAnchorRow;cellAnchorColumn;_cellIndex;_rowIndex;_table;constructor(e,t,o,n){this.cell=t,this.row=e._row,this.column=e._column,this.cellAnchorRow=o,this.cellAnchorColumn=n,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Xe(i,e){return(t,{writer:o})=>{const n=t.getAttribute("headingRows")||0,l=o.createContainerElement("table",null,[]),s=o.createContainerElement("figure",{class:"table"},l);n>0&&o.insert(o.createPositionAt(l,"end"),o.createContainerElement("thead",null,o.createSlot(r=>r.is("element","tableRow")&&r.index<n))),n<i.getRows(t)&&o.insert(o.createPositionAt(l,"end"),o.createContainerElement("tbody",null,o.createSlot(r=>r.is("element","tableRow")&&r.index>=n)));for(const{positionOffset:r,filter:a}of e.additionalSlots)o.insert(o.createPositionAt(l,r),o.createSlot(a));return o.insert(o.createPositionAt(l,"after"),o.createSlot(r=>r.is("element","tableRow")?!1:!e.additionalSlots.some(({filter:a})=>a(r)))),e.asWidget?Xo(s,o):s}}function qo(){return(i,{writer:e})=>i.isEmpty?e.createEmptyElement("tr"):e.createContainerElement("tr")}function Je(i={}){return(e,{writer:t})=>{const o=e.parent,n=o.parent,l=n.getChildIndex(o),s=new w(n,{row:l}),r=n.getAttribute("headingRows")||0,a=n.getAttribute("headingColumns")||0;let c=null;for(const d of s)if(d.cell==e){const h=d.row<r||d.column<a?"th":"td";c=i.asWidget?pt(t.createEditableElement(h),t,{withAriaRole:!1}):t.createContainerElement(h);break}return c}}function Ze(i={}){return(e,{writer:t})=>{if(!e.parent.is("element","tableCell")||!kt(e))return null;if(i.asWidget)return t.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const o=t.createContainerElement("p");return t.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}}function kt(i){return i.parent.childCount==1&&!Jo(i)}function Xo(i,e){return e.setCustomProperty("table",!0,i),so(i,e,{hasSelectionHandle:!0})}function Jo(i){for(const e of i.getAttributeKeys())if(!(e.startsWith("selection:")||e=="htmlEmptyBlock"))return!0;return!1}class Zo extends v{refresh(){const e=this.editor.model,t=e.document.selection,o=e.schema;this.isEnabled=Yo(t,o)}execute(e={}){const t=this.editor,o=t.model,n=t.plugins.get("TableUtils"),l=t.config.get("table.defaultHeadings.rows"),s=t.config.get("table.defaultHeadings.columns");e.headingRows===void 0&&l&&(e.headingRows=l),e.headingColumns===void 0&&s&&(e.headingColumns=s),o.change(r=>{const a=n.createTable(r,e);o.insertObject(a,null,null,{findOptimalPosition:"auto"}),r.setSelection(r.createPositionAt(a.getNodeByPath([0,0,0]),0))})}}function Yo(i,e){const t=i.getFirstPosition().parent,o=t===t.root?t:t.parent;return e.checkChild(o,"table")}class Ye extends v{order;constructor(e,t={}){super(e),this.order=t.order||"below"}refresh(){const e=this.editor.model.document.selection,o=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=o}execute(){const e=this.editor,t=e.model.document.selection,o=e.plugins.get("TableUtils"),n=this.order==="above",l=o.getSelectionAffectedTableCells(t),s=o.getRowIndexes(l),r=n?s.first:s.last,a=l[0].findAncestor("table");o.insertRows(a,{at:n?r:r+1,copyStructureFromAbove:!n})}}class Qe extends v{order;constructor(e,t={}){super(e),this.order=t.order||"right"}refresh(){const e=this.editor.model.document.selection,o=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=o}execute(){const e=this.editor,t=e.model.document.selection,o=e.plugins.get("TableUtils"),n=this.order==="left",l=o.getSelectionAffectedTableCells(t),s=o.getColumnIndexes(l),r=n?s.first:s.last,a=l[0].findAncestor("table");o.insertColumns(a,{columns:1,at:n?r:r+1})}}class et extends v{direction;constructor(e,t={}){super(e),this.direction=t.direction||"horizontally"}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length===1}execute(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];this.direction==="horizontally"?e.splitCellHorizontally(t,2):e.splitCellVertically(t,2)}}function Pt(i,e,t){const{startRow:o,startColumn:n,endRow:l,endColumn:s}=e,r=t.createElement("table"),a=i.getAttribute("tableType");a&&t.setAttribute("tableType",a,r);const c=l-o+1;for(let u=0;u<c;u++)t.insertElement("tableRow",r,"end");const d=[...new w(i,{startRow:o,endRow:l,startColumn:n,endColumn:s,includeAllSlots:!0})];for(const{row:u,column:h,cell:g,isAnchor:m,cellAnchorRow:b,cellAnchorColumn:f}of d){const p=u-o,C=r.getChild(p);if(!m)(b<o||f<n)&&M(t,t.createPositionAt(C,"end"));else{const T=t.cloneElement(g);t.append(T,C),Nt(T,u,h,l,s,t)}}return Qo(r,i,o,n,t),r}function Et(i,e,t=0){const o=[],n=new w(i,{startRow:t,endRow:e-1});for(const l of n){const{row:s,cellHeight:r}=l,a=s+r-1;s<e&&e<=a&&o.push(l)}return o}function Lt(i,e,t){const o=i.parent,n=o.parent,l=o.index,s=parseInt(i.getAttribute("rowspan")),r=e-l,a={},c=s-r;c>1&&(a.rowspan=c);const d=parseInt(i.getAttribute("colspan")||"1");d>1&&(a.colspan=d);const u=l,h=u+r,g=[...new w(n,{startRow:u,endRow:h,includeAllSlots:!0})];let m=null,b;for(const f of g){const{row:p,column:C,cell:T}=f;T===i&&b===void 0&&(b=C),b!==void 0&&b===C&&p===h&&(m=M(t,f.getPositionBefore(),a))}return _("rowspan",r,i,t),m}function Wt(i,e){const t=[],o=new w(i);for(const n of o){const{column:l,cellWidth:s}=n,r=l+s-1;l<e&&e<=r&&t.push(n)}return t}function Bt(i,e,t,o){const n=parseInt(i.getAttribute("colspan")),l=t-e,s={},r=n-l;r>1&&(s.colspan=r);const a=parseInt(i.getAttribute("rowspan")||"1");a>1&&(s.rowspan=a);const c=M(o,o.createPositionAfter(i),s);return _("colspan",l,i,o),c}function Nt(i,e,t,o,n,l){const s=parseInt(i.getAttribute("colspan")||"1"),r=parseInt(i.getAttribute("rowspan")||"1");if(t+s-1>n){const d=n-t+1;_("colspan",d,i,l,1)}if(e+r-1>o){const d=o-e+1;_("rowspan",d,i,l,1)}}function Qo(i,e,t,o,n){const l=parseInt(e.getAttribute("headingRows")||"0");if(l>0){const r=l-t;_("headingRows",r,i,n,0)}const s=parseInt(e.getAttribute("headingColumns")||"0");if(s>0){const r=s-o;_("headingColumns",r,i,n,0)}}function Ae(i,e){const t=e.getColumns(i),o=new Array(t).fill(0);for(const{column:l}of new w(i))o[l]++;const n=o.reduce((l,s,r)=>s?l:[...l,r],[]);if(n.length>0){const l=n[n.length-1];return e.removeColumns(i,{at:l}),!0}return!1}function ve(i,e){const t=[],o=e.getRows(i);for(let n=0;n<o;n++)i.getChild(n).isEmpty&&t.push(n);if(t.length>0){const n=t[t.length-1];return e.removeRows(i,{at:n}),!0}return!1}function Fe(i,e){Ae(i,e)||ve(i,e)}function Dt(i,e){const t=Array.from(new w(i,{startColumn:e.firstColumn,endColumn:e.lastColumn,row:e.lastRow}));if(t.every(({cellHeight:l})=>l===1))return e.lastRow;const n=t[0].cellHeight-1;return e.lastRow+n}function Ft(i,e){const t=Array.from(new w(i,{startRow:e.firstRow,endRow:e.lastRow,column:e.lastColumn}));if(t.every(({cellWidth:l})=>l===1))return e.lastColumn;const n=t[0].cellWidth-1;return e.lastColumn+n}class Y extends v{direction;isHorizontal;constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal=this.direction=="right"||this.direction=="left"}refresh(){const e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){const e=this.editor.model,t=e.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(t.selection)[0],l=this.value,s=this.direction;e.change(r=>{const a=s=="right"||s=="down",c=a?n:l,d=a?l:n,u=d.parent;on(d,c,r);const h=this.isHorizontal?"colspan":"rowspan",g=parseInt(n.getAttribute(h)||"1"),m=parseInt(l.getAttribute(h)||"1");r.setAttribute(h,g+m,c),r.setSelection(r.createRangeIn(c));const b=this.editor.plugins.get("TableUtils"),f=u.findAncestor("table");Fe(f,b)})}_getMergeableCell(){const t=this.editor.model.document,o=this.editor.plugins.get("TableUtils"),n=o.getTableCellsContainingSelection(t.selection)[0];if(!n)return;const l=this.isHorizontal?en(n,this.direction,o):tn(n,this.direction,o);if(!l)return;const s=this.isHorizontal?"rowspan":"colspan",r=parseInt(n.getAttribute(s)||"1");if(parseInt(l.getAttribute(s)||"1")===r)return l}}function en(i,e,t){const n=i.parent.parent,l=e=="right"?i.nextSibling:i.previousSibling,s=(n.getAttribute("headingColumns")||0)>0;if(!l)return;const r=e=="right"?i:l,a=e=="right"?l:i,{column:c}=t.getCellLocation(r),{column:d}=t.getCellLocation(a),u=parseInt(r.getAttribute("colspan")||"1"),h=ye(t,r),g=ye(t,a);return s&&h!=g?void 0:c+u===d?l:void 0}function tn(i,e,t){const o=i.parent,n=o.parent,l=n.getChildIndex(o);if(e=="down"&&l===t.getRows(n)-1||e=="up"&&l===0)return null;const s=parseInt(i.getAttribute("rowspan")||"1"),r=n.getAttribute("headingRows")||0,a=e=="down"&&l+s===r,c=e=="up"&&l===r;if(r&&(a||c))return null;const d=parseInt(i.getAttribute("rowspan")||"1"),u=e=="down"?l+d:l,h=[...new w(n,{endRow:u})],m=h.find(f=>f.cell===i).column,b=h.find(({row:f,cellHeight:p,column:C})=>C!==m?!1:e=="down"?f===u:u===f+p);return b&&b.cell?b.cell:null}function on(i,e,t){tt(i)||(tt(e)&&t.remove(t.createRangeIn(e)),t.move(t.createRangeIn(i),t.createPositionAt(e,"end"))),t.remove(i)}function tt(i){const e=i.getChild(0);return i.childCount==1&&e.is("element","paragraph")&&e.isEmpty}class nn extends v{refresh(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),o=t[0];if(o){const n=o.findAncestor("table"),s=e.getRows(n)-1,r=e.getRowIndexes(t),a=r.first===0&&r.last===s;this.isEnabled=!a}else this.isEnabled=!1}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),o=t.getSelectionAffectedTableCells(e.document.selection),n=t.getRowIndexes(o),l=o[0],s=l.findAncestor("table"),r=t.getCellLocation(l).column;e.change(a=>{const c=n.last-n.first+1;t.removeRows(s,{at:n.first,rows:c});const d=ln(s,n.first,r,t.getRows(s));a.setSelection(a.createPositionAt(d,0))})}}function ln(i,e,t,o){const n=i.getChild(Math.min(e,o-1));let l=n.getChild(0),s=0;for(const r of n.getChildren()){if(s>t)return l;l=r,s+=parseInt(r.getAttribute("colspan")||"1")}return l}class sn extends v{refresh(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),o=t[0];if(o){const n=o.findAncestor("table"),l=e.getColumns(n),{first:s,last:r}=e.getColumnIndexes(t);this.isEnabled=r-s<l-1}else this.isEnabled=!1}execute(){const e=this.editor.plugins.get("TableUtils"),[t,o]=an(this.editor.model.document.selection,e),n=t.parent.parent,l=[...new w(n)],s={first:l.find(a=>a.cell===t).column,last:l.find(a=>a.cell===o).column},r=rn(l,t,o,s);this.editor.model.change(a=>{const c=s.last-s.first+1;e.removeColumns(n,{at:s.first,columns:c}),a.setSelection(a.createPositionAt(r,0))})}}function rn(i,e,t,o){return parseInt(t.getAttribute("colspan")||"1")>1?t:e.previousSibling||t.nextSibling?t.nextSibling||e.previousSibling:o.first?i.reverse().find(({column:l})=>l<o.first).cell:i.reverse().find(({column:l})=>l>o.last).cell}function an(i,e){const t=e.getSelectionAffectedTableCells(i),o=t[0],n=t.pop(),l=[o,n];return o.isBefore(n)?l:l.reverse()}class cn extends v{refresh(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,o=e.getSelectionAffectedTableCells(t.document.selection);if(o.length===0){this.isEnabled=!1,this.value=!1;return}const n=o[0].findAncestor("table");this.isEnabled=t.schema.checkAttribute(n,"headingRows"),this.value=o.every(l=>this._isInHeading(l,l.parent.parent))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.plugins.get("TableUtils"),o=this.editor.model,n=t.getSelectionAffectedTableCells(o.document.selection),l=n[0].findAncestor("table"),{first:s,last:r}=t.getRowIndexes(n),a=this.value?s:r+1,c=l.getAttribute("headingRows")||0;o.change(d=>{if(a){const u=a>c?c:0,h=Et(l,a,u);for(const{cell:g}of h)Lt(g,a,d)}_("headingRows",a,l,d,0)})}_isInHeading(e,t){const o=parseInt(t.getAttribute("headingRows")||"0");return!!o&&e.parent.index<o}}class dn extends v{refresh(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,o=e.getSelectionAffectedTableCells(t.document.selection);if(o.length===0){this.isEnabled=!1,this.value=!1;return}const n=o[0].findAncestor("table");this.isEnabled=t.schema.checkAttribute(n,"headingColumns"),this.value=o.every(l=>ye(e,l))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.plugins.get("TableUtils"),o=this.editor.model,n=t.getSelectionAffectedTableCells(o.document.selection),l=n[0].findAncestor("table"),{first:s,last:r}=t.getColumnIndexes(n),a=this.value?s:r+1;o.change(c=>{if(a){const d=Wt(l,a);for(const{cell:u,column:h}of d)Bt(u,h,a,c)}_("headingColumns",a,l,c,0)})}}const un=5,Se=40,hn=2,mn=3;function gn(i){const e=new Set;for(const t of i.document.differ.getChanges()){let o=null;switch(t.type){case"insert":o=["table","tableRow","tableCell"].includes(t.name)?t.position:null;break;case"remove":o=["tableRow","tableCell"].includes(t.name)?t.position:null;break;case"attribute":t.range.start.nodeAfter&&(o=["table","tableRow","tableCell"].includes(t.range.start.nodeAfter.name)?t.range.start:null);break}if(!o)continue;const n=o.nodeAfter&&o.nodeAfter.is("element","table")?o.nodeAfter:o.findAncestor("table");for(const l of i.createRangeOn(n).getItems())l.is("element","table")&&X(l)&&e.add(l)}return e}function bn(i,e){return Se*100/Mt(i,e)}function Mt(i,e){const t=ot(i,"tbody",e)||ot(i,"thead",e),o=e.editing.view.domConverter.mapViewToDom(t);return Re(o)}function ot(i,e,t){return[...[...t.editing.mapper.toViewElement(i).getChildren()].find(l=>l.is("element","table")).getChildren()].find(l=>l.is("element",e))}function Re(i){const e=ie.window.getComputedStyle(i);return e.boxSizing==="border-box"?parseFloat(e.width)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth):parseFloat(e.width)}function fn(i,e){const t=e.getCellLocation(i).column,o=i.getAttribute("colspan")||1;return{leftEdge:t,rightEdge:t+o-1}}function S(i){const e=Math.pow(10,hn),t=typeof i=="number"?i:parseFloat(i);return Math.round(t*e)/e}function pn(i,e,t){return i<=e?S(e):i>=t?S(t):S(i)}function Cn(i,e){return Array(i).fill(e)}function q(i){return i.map(e=>typeof e=="number"?e:parseFloat(e)).filter(e=>!Number.isNaN(e)).reduce((e,t)=>e+t,0)}function Me(i){const e=i.map(n=>n==="auto"||n===void 0?"auto":parseFloat(n.replace("%","")));let t=wn(e);const o=q(t);return o!==100&&(t=t.map(n=>S(n*100/o)).map((n,l,s)=>{if(!(l===s.length-1))return n;const a=q(s);return S(n+100-a)})),t.map(n=>n+"%")}function wn(i){const e=i.filter(n=>n==="auto").length;if(e===0)return i.map(n=>S(n));const t=q(i),o=Math.max((100-t)/e,un);return i.map(n=>n==="auto"?o:n).map(n=>S(n))}function Tn(i){const e=ie.window.getComputedStyle(i);return e.boxSizing==="border-box"?parseInt(e.width):parseFloat(e.width)+parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderWidth)}function Ot(i,e,t,o){for(let n=0;n<Math.max(t.length,i.length);n++){const l=i[n],s=t[n];s?l?o.setAttribute("columnWidth",s,l):o.appendElement("tableColumn",{columnWidth:s},e):o.remove(l)}}function X(i){if(i.is("element","tableColumnGroup"))return i;const e=i.getChildren();return Array.from(e).find(t=>t.is("element","tableColumnGroup"))}function J(i){const e=X(i);return e?Array.from(e.getChildren()):[]}function _n(i){return J(i).map(e=>e.getAttribute("columnWidth"))}function yn(i,e){return J(i).reduce((o,n)=>{const l=n.getAttribute("columnWidth"),s=n.getAttribute("colSpan");if(!s)return o.push(l),o;for(let r=0;r<s;r++)o.push(l);return e.removeAttribute("colSpan",n),o},[])}class A extends y{static get pluginName(){return"TableUtils"}static get isOfficialPlugin(){return!0}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(e){const t=e.parent,o=t.parent,n=o.getChildIndex(t),l=new w(o,{row:n});for(const{cell:s,row:r,column:a}of l)if(s===e)return{row:r,column:a};}createTable(e,t){const o=e.createElement("table"),n=t.rows||2,l=t.columns||2;return we(e,o,0,n,l),t.headingRows&&_("headingRows",Math.min(t.headingRows,n),o,e,0),t.headingColumns&&_("headingColumns",Math.min(t.headingColumns,l),o,e,0),o}insertRows(e,t={}){const o=this.editor.model,n=t.at||0,l=t.rows||1,s=t.copyStructureFromAbove!==void 0,r=t.copyStructureFromAbove?n-1:n,a=this.getRows(e),c=this.getColumns(e);if(n>a)throw new je("tableutils-insertrows-insert-out-of-range",this,{options:t});o.change(d=>{const u=e.getAttribute("headingRows")||0;if(u>n&&_("headingRows",u+l,e,d,0),!s&&(n===0||n===a)){we(d,e,n,l,c);return}const h=s?Math.max(n,r):n,g=new w(e,{endRow:h}),m=new Array(c).fill(1);for(const{row:b,column:f,cellHeight:p,cellWidth:C,cell:T}of g){const x=b+p-1,V=b<n&&n<=x,G=b<=r&&r<=x;V?(d.setAttribute("rowspan",p+l,T),m[f]=-C):s&&G&&(m[f]=C)}for(let b=0;b<l;b++){const f=d.createElement("tableRow");d.insert(f,e,n);for(let p=0;p<m.length;p++){const C=m[p],T=d.createPositionAt(f,"end");C>0&&M(d,T,C>1?{colspan:C}:void 0),p+=Math.abs(C)-1}}})}insertColumns(e,t={}){const o=this.editor.model,n=t.at||0,l=t.columns||1;o.change(s=>{const r=e.getAttribute("headingColumns");n<r&&s.setAttribute("headingColumns",r+l,e);const a=this.getColumns(e);if(n===0||a===n){for(const d of e.getChildren())d.is("element","tableRow")&&j(l,s,s.createPositionAt(d,n?"end":0));return}const c=new w(e,{column:n,includeAllSlots:!0});for(const d of c){const{row:u,cell:h,cellAnchorColumn:g,cellAnchorRow:m,cellWidth:b,cellHeight:f}=d;if(g<n){s.setAttribute("colspan",b+l,h);const p=m+f-1;for(let C=u;C<=p;C++)c.skipRow(C)}else j(l,s,d.getPositionBefore())}})}removeRows(e,t){const o=this.editor.model,n=t.rows||1,l=this.getRows(e),s=t.at,r=s+n-1;if(r>l-1)throw new je("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});o.change(a=>{const c={first:s,last:r},{cellsToMove:d,cellsToTrim:u}=Sn(e,c);if(d.size){const h=r+1;Rn(e,h,d,a)}for(let h=r;h>=s;h--)a.remove(e.getChild(h));for(const{rowspan:h,cell:g}of u)_("rowspan",h,g,a);vn(e,c,a),Ae(e,this)||ve(e,this)})}removeColumns(e,t){const o=this.editor.model,n=t.at,l=t.columns||1,s=t.at+l-1;o.change(r=>{An(e,{first:n,last:s},r);const a=J(e);for(let c=s;c>=n;c--){for(const{cell:d,column:u,cellWidth:h}of[...new w(e)])u<=c&&h>1&&u+h>c?_("colspan",h-1,d,r):u===c&&r.remove(d);if(a[c]){const d=c===0?a[1]:a[c-1],u=parseFloat(a[c].getAttribute("columnWidth")),h=parseFloat(d.getAttribute("columnWidth"));r.remove(a[c]),r.setAttribute("columnWidth",u+h+"%",d)}}ve(e,this)||Ae(e,this)})}splitCellVertically(e,t=2){const o=this.editor.model,l=e.parent.parent,s=parseInt(e.getAttribute("rowspan")||"1"),r=parseInt(e.getAttribute("colspan")||"1");o.change(a=>{if(r>1){const{newCellsSpan:c,updatedSpan:d}=nt(r,t);_("colspan",d,e,a);const u={};c>1&&(u.colspan=c),s>1&&(u.rowspan=s);const h=r>t?t-1:r-1;j(h,a,a.createPositionAfter(e),u)}if(r<t){const c=t-r,d=[...new w(l)],{column:u}=d.find(({cell:b})=>b===e),h=d.filter(({cell:b,cellWidth:f,column:p})=>{const C=b!==e&&p===u,T=p<u&&p+f>u;return C||T});for(const{cell:b,cellWidth:f}of h)a.setAttribute("colspan",f+c,b);const g={};s>1&&(g.rowspan=s),j(c,a,a.createPositionAfter(e),g);const m=l.getAttribute("headingColumns")||0;m>u&&_("headingColumns",m+c,l,a)}})}splitCellHorizontally(e,t=2){const o=this.editor.model,n=e.parent,l=n.parent,s=l.getChildIndex(n),r=parseInt(e.getAttribute("rowspan")||"1"),a=parseInt(e.getAttribute("colspan")||"1");o.change(c=>{if(r>1){const d=[...new w(l,{startRow:s,endRow:s+r-1,includeAllSlots:!0})],{newCellsSpan:u,updatedSpan:h}=nt(r,t);_("rowspan",h,e,c);const{column:g}=d.find(({cell:f})=>f===e),m={};u>1&&(m.rowspan=u),a>1&&(m.colspan=a);let b=0;for(const f of d){const{column:p,row:C}=f,T=C>=s+h,x=p===g;b>=u&&x&&(b=0),T&&x&&(b||j(1,c,f.getPositionBefore(),m),b++)}}if(r<t){const d=t-r,u=[...new w(l,{startRow:0,endRow:s})];for(const{cell:m,cellHeight:b,row:f}of u)if(m!==e&&f+b>s){const p=b+d;c.setAttribute("rowspan",p,m)}const h={};a>1&&(h.colspan=a),we(c,l,s+1,d,1,h);const g=l.getAttribute("headingRows")||0;g>s&&_("headingRows",g+d,l,c)}})}getColumns(e){return[...e.getChild(0).getChildren()].filter(o=>o.is("element","tableCell")).reduce((o,n)=>{const l=parseInt(n.getAttribute("colspan")||"1");return o+l},0)}getRows(e){return Array.from(e.getChildren()).reduce((t,o)=>o.is("element","tableRow")?t+1:t,0)}createTableWalker(e,t={}){return new w(e,t)}getSelectedTableCells(e){const t=[];for(const o of this.sortRanges(e.getRanges())){const n=o.getContainedElement();n&&n.is("element","tableCell")&&t.push(n)}return t}getTableCellsContainingSelection(e){const t=[];for(const o of e.getRanges()){const n=o.start.findAncestor("tableCell");n&&t.push(n)}return t}getSelectionAffectedTableCells(e){const t=this.getSelectedTableCells(e);return t.length?t:this.getTableCellsContainingSelection(e)}getRowIndexes(e){const t=e.map(o=>o.parent.index);return this._getFirstLastIndexesObject(t)}getColumnIndexes(e){const t=e[0].findAncestor("table"),n=[...new w(t)].filter(l=>e.includes(l.cell)).map(l=>l.column);return this._getFirstLastIndexesObject(n)}isSelectionRectangular(e){if(e.length<2||!this._areCellInTheSameTableSection(e))return!1;const t=new Set,o=new Set;let n=0;for(const s of e){const{row:r,column:a}=this.getCellLocation(s),c=parseInt(s.getAttribute("rowspan"))||1,d=parseInt(s.getAttribute("colspan"))||1;t.add(r),o.add(a),c>1&&t.add(r+c-1),d>1&&o.add(a+d-1),n+=c*d}return xn(t,o)==n}sortRanges(e){return Array.from(e).sort(In)}_getFirstLastIndexesObject(e){const t=e.sort((l,s)=>l-s),o=t[0],n=t[t.length-1];return{first:o,last:n}}_areCellInTheSameTableSection(e){const t=e[0].findAncestor("table"),o=this.getRowIndexes(e),n=parseInt(t.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(o,n))return!1;const l=this.getColumnIndexes(e),s=parseInt(t.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(l,s)}_areIndexesInSameSection({first:e,last:t},o){const n=e<o,l=t<o;return n===l}}function we(i,e,t,o,n,l={}){for(let s=0;s<o;s++){const r=i.createElement("tableRow");i.insert(r,e,t),j(n,i,i.createPositionAt(r,"end"),l)}}function j(i,e,t,o={}){for(let n=0;n<i;n++)M(e,t,o)}function nt(i,e){if(i<e)return{newCellsSpan:1,updatedSpan:1};const t=Math.floor(i/e),o=i-t*e+t;return{newCellsSpan:t,updatedSpan:o}}function An(i,e,t){const o=i.getAttribute("headingColumns")||0;if(o&&e.first<o){const n=Math.min(o-1,e.last)-e.first+1;t.setAttribute("headingColumns",o-n,i)}}function vn(i,{first:e,last:t},o){const n=i.getAttribute("headingRows")||0;if(e<n){const l=t<n?n-(t-e+1):e;_("headingRows",l,i,o,0)}}function Sn(i,{first:e,last:t}){const o=new Map,n=[];for(const{row:l,column:s,cellHeight:r,cell:a}of new w(i,{endRow:t})){const c=l+r-1;if(l>=e&&l<=t&&c>t){const h=t-l+1,g=r-h;o.set(s,{cell:a,rowspan:g})}if(l<e&&c>=e){let h;c>=t?h=t-e+1:h=c-e+1,n.push({cell:a,rowspan:r-h})}}return{cellsToMove:o,cellsToTrim:n}}function Rn(i,e,t,o){const l=[...new w(i,{includeAllSlots:!0,row:e})],s=i.getChild(e);let r;for(const{column:a,cell:c,isAnchor:d}of l)if(t.has(a)){const{cell:u,rowspan:h}=t.get(a),g=r?o.createPositionAfter(r):o.createPositionAt(s,0);o.move(o.createRangeOn(u),g),_("rowspan",h,u,o),r=u}else d&&(r=c)}function In(i,e){const t=i.start,o=e.start;return t.isBefore(o)?-1:1}function xn(i,e){const t=Array.from(i.values()),o=Array.from(e.values()),n=Math.max(...t),l=Math.min(...t),s=Math.max(...o),r=Math.min(...o);return(n-l+1)*(s-r+1)}class Vn extends v{refresh(){const e=this.editor.plugins.get(A),t=e.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=e.isSelectionRectangular(t)}execute(){const e=this.editor.model,t=this.editor.plugins.get(A);e.change(o=>{const n=t.getSelectedTableCells(e.document.selection),l=n.shift(),{mergeWidth:s,mergeHeight:r}=Pn(l,n,t);_("colspan",s,l,o),_("rowspan",r,l,o);for(const c of n)kn(c,l,o);const a=l.findAncestor("table");Fe(a,t),o.setSelection(l,"in")})}}function kn(i,e,t){lt(i)||(lt(e)&&t.remove(t.createRangeIn(e)),t.move(t.createRangeIn(i),t.createPositionAt(e,"end"))),t.remove(i)}function lt(i){const e=i.getChild(0);return i.childCount==1&&e.is("element","paragraph")&&e.isEmpty}function Pn(i,e,t){let o=0,n=0;for(const c of e){const{row:d,column:u}=t.getCellLocation(c);o=it(c,u,o,"colspan"),n=it(c,d,n,"rowspan")}const{row:l,column:s}=t.getCellLocation(i),r=o-s,a=n-l;return{mergeWidth:r,mergeHeight:a}}function it(i,e,t,o){const n=parseInt(i.getAttribute(o)||"1");return Math.max(t,e+n)}class En extends v{constructor(e){super(e),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),o=t.getSelectionAffectedTableCells(e.document.selection),n=t.getRowIndexes(o),l=o[0].findAncestor("table"),s=[];for(let r=n.first;r<=n.last;r++)for(const a of l.getChild(r).getChildren())s.push(e.createRangeOn(a));e.change(r=>{r.setSelection(s)})}}class Ln extends v{constructor(e){super(e),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,o=e.getSelectionAffectedTableCells(t.document.selection),n=o[0],l=o.pop(),s=n.findAncestor("table"),r=e.getCellLocation(n),a=e.getCellLocation(l),c=Math.min(r.column,a.column),d=Math.max(r.column,a.column),u=[];for(const h of new w(s,{startColumn:c,endColumn:d}))u.push(t.createRangeOn(h.cell));t.change(h=>{h.setSelection(u)})}}function Wn(i){i.document.registerPostFixer(e=>Bn(e,i))}function Bn(i,e){const t=e.document.differ.getChanges();let o=!1;const n=new Set;for(const l of t){let s=null;l.type=="insert"&&l.name=="table"&&(s=l.position.nodeAfter),(l.type=="insert"||l.type=="remove")&&(l.name=="tableRow"||l.name=="tableCell")&&(s=l.position.findAncestor("table")),On(l)&&(s=l.range.start.findAncestor("table")),s&&!n.has(s)&&(o=Nn(s,i)||o,o=Dn(s,i)||o,n.add(s))}return o}function Nn(i,e){let t=!1;const o=Fn(i);if(o.length){t=!0;for(const n of o)_("rowspan",n.rowspan,n.cell,e,1)}return t}function Dn(i,e){let t=!1;const o=Mn(i),n=[];for(const[a,c]of o.entries())!c&&i.getChild(a).is("element","tableRow")&&n.push(a);if(n.length){t=!0;for(const a of n.reverse())e.remove(i.getChild(a)),o.splice(a,1)}const l=o.filter((a,c)=>i.getChild(c).is("element","tableRow")),s=l[0];if(!l.every(a=>a===s)){const a=l.reduce((c,d)=>d>c?d:c,0);for(const[c,d]of l.entries()){const u=a-d;if(u){for(let h=0;h<u;h++)M(e,e.createPositionAt(i.getChild(c),"end"));t=!0}}}return t}function Fn(i){const e=parseInt(i.getAttribute("headingRows")||"0"),t=Array.from(i.getChildren()).reduce((n,l)=>l.is("element","tableRow")?n+1:n,0),o=[];for(const{row:n,cell:l,cellHeight:s}of new w(i)){if(s<2)continue;const a=n<e?e:t;if(n+s>a){const c=a-n;o.push({cell:l,rowspan:c})}}return o}function Mn(i){const e=new Array(i.childCount).fill(0);for(const{rowIndex:t}of new w(i,{includeAllSlots:!0}))e[t]++;return e}function On(i){if(i.type!=="attribute")return!1;const e=i.attributeKey;return e==="headingRows"||e==="colspan"||e==="rowspan"}function zn(i){i.document.registerPostFixer(e=>Hn(e,i))}function Hn(i,e){const t=e.document.differ.getChanges();let o=!1;for(const n of t)n.type=="insert"&&n.name=="table"&&(o=Un(n.position.nodeAfter,i)||o),n.type=="insert"&&n.name=="tableRow"&&(o=zt(n.position.nodeAfter,i)||o),n.type=="insert"&&n.name=="tableCell"&&(o=Ie(n.position.nodeAfter,i)||o),(n.type=="remove"||n.type=="insert")&&jn(n)&&(o=Ie(n.position.parent,i)||o);return o}function Un(i,e){let t=!1;for(const o of i.getChildren())o.is("element","tableRow")&&(t=zt(o,e)||t);return t}function zt(i,e){let t=!1;for(const o of i.getChildren())t=Ie(o,e)||t;return t}function Ie(i,e){if(i.childCount==0)return e.insertElement("paragraph",i),!0;const t=Array.from(i.getChildren()).filter(o=>o.is("$text"));for(const o of t)e.wrap(e.createRangeOn(o),"paragraph");return!!t.length}function jn(i){return i.position.parent.is("element","tableCell")?i.type=="insert"&&i.name=="$text"||i.type=="remove":!1}function Gn(i,e){const t=i.document.differ;for(const o of t.getChanges()){let n,l=!1;if(o.type=="attribute"){const c=o.range.start.nodeAfter;if(!c||!c.is("element","table")||o.attributeKey!="headingRows"&&o.attributeKey!="headingColumns")continue;n=c,l=o.attributeKey=="headingRows"}else(o.name=="tableRow"||o.name=="tableCell")&&(n=o.position.findAncestor("table"),l=o.name=="tableRow");if(!n)continue;const s=n.getAttribute("headingRows")||0,r=n.getAttribute("headingColumns")||0,a=new w(n);for(const c of a){const u=c.row<s||c.column<r?"th":"td",h=e.mapper.toViewElement(c.cell);h&&h.is("element")&&h.name!=u&&e.reconvertItem(l?c.cell.parent:c.cell)}}}function $n(i,e){const t=i.document.differ,o=new Set;for(const n of t.getChanges()){const l=n.type=="attribute"?n.range.start.parent:n.position.parent;l.is("element","tableCell")&&o.add(l)}for(const n of o.values()){const l=Array.from(n.getChildren()).filter(s=>Kn(s,e.mapper));for(const s of l)e.reconvertItem(s)}}function Kn(i,e){if(!i.is("element","paragraph"))return!1;const t=e.toViewElement(i);return t?kt(i)!==t.is("element","span"):!1}class Z extends y{_additionalSlots;static get pluginName(){return"TableEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[A]}constructor(e){super(e),this._additionalSlots=[]}init(){const e=this.editor,t=e.model,o=t.schema,n=e.conversion,l=e.plugins.get(A);o.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),o.register("tableRow",{allowIn:"table",isLimit:!0}),o.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.for("upcast").add(zo()),n.for("upcast").add(Ho()),n.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Xe(l,{asWidget:!0,additionalSlots:this._additionalSlots})}),n.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Xe(l,{additionalSlots:this._additionalSlots})}),n.for("upcast").elementToElement({model:"tableRow",view:"tr"}),n.for("upcast").add(Uo()),n.for("downcast").elementToElement({model:"tableRow",view:qo()}),n.for("upcast").elementToElement({model:"tableCell",view:"td"}),n.for("upcast").elementToElement({model:"tableCell",view:"th"}),n.for("upcast").add(qe("td")),n.for("upcast").add(qe("th")),n.for("editingDowncast").elementToElement({model:"tableCell",view:Je({asWidget:!0})}),n.for("dataDowncast").elementToElement({model:"tableCell",view:Je()}),n.for("editingDowncast").elementToElement({model:"paragraph",view:Ze({asWidget:!0}),converterPriority:"high"}),n.for("dataDowncast").elementToElement({model:"paragraph",view:Ze(),converterPriority:"high"}),n.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),n.for("upcast").attributeToAttribute({model:{key:"colspan",value:st("colspan")},view:"colspan"}),n.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),n.for("upcast").attributeToAttribute({model:{key:"rowspan",value:st("rowspan")},view:"rowspan"}),e.config.define("table.defaultHeadings.rows",0),e.config.define("table.defaultHeadings.columns",0),e.commands.add("insertTable",new Zo(e)),e.commands.add("insertTableRowAbove",new Ye(e,{order:"above"})),e.commands.add("insertTableRowBelow",new Ye(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new Qe(e,{order:"left"})),e.commands.add("insertTableColumnRight",new Qe(e,{order:"right"})),e.commands.add("removeTableRow",new nn(e)),e.commands.add("removeTableColumn",new sn(e)),e.commands.add("splitTableCellVertically",new et(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new et(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new Vn(e)),e.commands.add("mergeTableCellRight",new Y(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new Y(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new Y(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new Y(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new dn(e)),e.commands.add("setTableRowHeader",new cn(e)),e.commands.add("selectTableRow",new En(e)),e.commands.add("selectTableColumn",new Ln(e)),Wn(t),zn(t),this.listenTo(t.document,"change:data",()=>{Gn(t,e.editing),$n(t,e.editing)})}registerAdditionalSlot(e){this._additionalSlots.push(e)}}function st(i){return e=>{const t=parseInt(e.getAttribute(i));return Number.isNaN(t)||t<=0?null:t}}class rt extends F{items;keystrokes;focusTracker;constructor(e){super(e);const t=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new ge,this.focusTracker=new be,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(o,n)=>`${n} × ${o}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:t.to("label")}]}],on:{mousedown:t.to(o=>{o.preventDefault()}),click:t.to(()=>{this.fire("execute")})}}),this.on("boxover",(o,n)=>{const{row:l,column:s}=n.target.dataset;this.items.get((parseInt(l,10)-1)*10+(parseInt(s,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(o,n,l)=>{if(!l)return;const{row:s,column:r}=l.dataset;this.set({rows:parseInt(s),columns:parseInt(r)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),ko({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const e of this.items)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element)}reset(){this.set({rows:1,columns:1})}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const e=this.rows,t=this.columns;this.items.map((o,n)=>{const l=Math.floor(n/10),s=n%10,r=l<e&&s<t;o.set("isOn",r)})}_createGridButton(e,t,o,n){const l=new P(e);return l.set({label:n,class:"ck-insert-table-dropdown-grid-box"}),l.extendTemplate({attributes:{"data-row":t,"data-column":o}}),l}_createGridCollection(){const e=[];for(let t=0;t<100;t++){const o=Math.floor(t/10),n=t%10,l=`${o+1} × ${n+1}`;e.push(this._createGridButton(this.locale,o+1,n+1,l))}return this.createCollection(e)}}class qn extends y{static get pluginName(){return"TableUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=this.editor.t,n=e.locale.contentLanguageDirection==="ltr";e.ui.componentFactory.add("insertTable",l=>{const s=e.commands.get("insertTable"),r=te(l);r.bind("isEnabled").to(s),r.buttonView.set({icon:Ge,label:t("Insert table"),tooltip:!0});let a;return r.on("change:isOpen",()=>{a||(a=new rt(l),r.panelView.children.add(a),a.delegate("execute").to(r),r.on("execute",()=>{e.execute("insertTable",{rows:a.rows,columns:a.columns}),e.editing.view.focus()}))}),r}),e.ui.componentFactory.add("menuBar:insertTable",l=>{const s=e.commands.get("insertTable"),r=new Io(l),a=new rt(l);return a.delegate("execute").to(r),r.on("change:isOpen",(c,d,u)=>{u||a.reset()}),a.on("execute",()=>{e.execute("insertTable",{rows:a.rows,columns:a.columns}),e.editing.view.focus()}),r.buttonView.set({label:t("Table"),icon:Ge}),r.panelView.children.add(a),r.bind("isEnabled").to(s),r}),e.ui.componentFactory.add("tableColumn",l=>{const s=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:t("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:t("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:t("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:t("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:t("Select column")}}];return this._prepareDropdown(t("Column"),uo,s,l)}),e.ui.componentFactory.add("tableRow",l=>{const s=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:t("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:t("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:t("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:t("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:t("Select row")}}];return this._prepareDropdown(t("Row"),ho,s,l)}),e.ui.componentFactory.add("mergeTableCells",l=>{const s=[{type:"button",model:{commandName:"mergeTableCellUp",label:t("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:t("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:t("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:t("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:t("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:t("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(t("Merge cells"),mo,s,l)})}_prepareDropdown(e,t,o,n){const l=this.editor,s=te(n),r=this._fillDropdownWithListOptions(s,o);return s.buttonView.set({label:e,icon:t,tooltip:!0}),s.bind("isEnabled").toMany(r,"isEnabled",(...a)=>a.some(c=>c)),this.listenTo(s,"execute",a=>{l.execute(a.source.commandName),a.source instanceof xo||l.editing.view.focus()}),s}_prepareMergeSplitButtonDropdown(e,t,o,n){const l=this.editor,s=te(n,Vo),r="mergeTableCells",a=l.commands.get(r),c=this._fillDropdownWithListOptions(s,o);return s.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),s.bind("isEnabled").toMany([a,...c],"isEnabled",(...d)=>d.some(u=>u)),this.listenTo(s.buttonView,"execute",()=>{l.execute(r),l.editing.view.focus()}),this.listenTo(s,"execute",d=>{l.execute(d.source.commandName),l.editing.view.focus()}),s}_fillDropdownWithListOptions(e,t){const o=this.editor,n=[],l=new Ct;for(const s of t)Xn(s,o,n,l);return We(e,l),n}}function Xn(i,e,t,o){if(i.type==="button"||i.type==="switchbutton"){const n=i.model=new yt(i.model),{commandName:l,bindIsOn:s}=i.model,r=e.commands.get(l);t.push(r),n.set({commandName:l}),n.bind("isEnabled").to(r),s&&n.bind("isOn").to(r,"value"),n.set({withText:!0})}o.add(i)}class B extends y{static get pluginName(){return"TableSelection"}static get isOfficialPlugin(){return!0}static get requires(){return[A,A]}init(){const e=this.editor,t=e.model,o=e.editing.view;this.listenTo(t,"deleteContent",(n,l)=>this._handleDeleteContent(n,l),{priority:"high"}),this.listenTo(o.document,"insertText",(n,l)=>this._handleInsertTextEvent(n,l),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const e=this.editor.plugins.get(A),t=this.editor.model.document.selection,o=e.getSelectedTableCells(t);return o.length==0?null:o}getSelectionAsFragment(){const e=this.editor.plugins.get(A),t=this.getSelectedTableCells();return t?this.editor.model.change(o=>{const n=o.createDocumentFragment(),{first:l,last:s}=e.getColumnIndexes(t),{first:r,last:a}=e.getRowIndexes(t),c=t[0].findAncestor("table");let d=a,u=s;if(e.isSelectionRectangular(t)){const m={firstColumn:l,lastColumn:s,firstRow:r,lastRow:a};d=Dt(c,m),u=Ft(c,m)}const g=Pt(c,{startRow:r,startColumn:l,endRow:d,endColumn:u},o);return o.insert(g,n,0),n}):null}setCellSelection(e,t){const o=this._getCellsToSelect(e,t);this.editor.model.change(n=>{n.setSelection(o.cells.map(l=>n.createRangeOn(l)),{backward:o.backward})})}getFocusCell(){const o=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return o&&o.is("element","tableCell")?o:null}getAnchorCell(){const e=this.editor.model.document.selection,o=Le(e.getRanges()).getContainedElement();return o&&o.is("element","tableCell")?o:null}_defineSelectionConverter(){const e=this.editor,t=new Set;e.conversion.for("editingDowncast").add(n=>n.on("selection",(l,s,r)=>{const a=r.writer;o(a);const c=this.getSelectedTableCells();if(!c)return;for(const u of c){const h=r.mapper.toViewElement(u);a.addClass("ck-editor__editable_selected",h),t.add(h)}const d=r.mapper.toViewElement(c[c.length-1]);a.setSelection(d,0)},{priority:"lowest"}));function o(n){for(const l of t)n.removeClass("ck-editor__editable_selected",l);t.clear()}}_enablePluginDisabling(){const e=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const t=this.getSelectedTableCells();if(!t)return;e.model.change(o=>{const n=o.createPositionAt(t[0],0),l=e.model.schema.getNearestSelectionRange(n);o.setSelection(l)})}})}_handleDeleteContent(e,t){const o=this.editor.plugins.get(A),n=t[0],l=t[1],s=this.editor.model,r=!l||l.direction=="backward",a=o.getSelectedTableCells(n);a.length&&(e.stop(),s.change(c=>{const d=a[r?a.length-1:0];s.change(h=>{for(const g of a)s.deleteContent(h.createSelection(g,"in"))});const u=s.schema.getNearestSelectionRange(c.createPositionAt(d,0));n.is("documentSelection")?c.setSelection(u):n.setTo(u)}))}_handleInsertTextEvent(e,t){const o=this.editor,n=this.getSelectedTableCells();if(!n)return;const l=o.editing.view,s=o.editing.mapper,r=n.map(a=>l.createRangeOn(s.toViewElement(a)));t.selection=l.createSelection(r),t.preventDefault()}_getCellsToSelect(e,t){const o=this.editor.plugins.get("TableUtils"),n=o.getCellLocation(e),l=o.getCellLocation(t),s=Math.min(n.row,l.row),r=Math.max(n.row,l.row),a=Math.min(n.column,l.column),c=parseInt(t.getAttribute("colspan")||"1")-1,d=Math.max(n.column,l.column+c),u=new Array(r-s+1).fill(null).map(()=>[]),h={startRow:s,endRow:r,startColumn:a,endColumn:d};for(const{row:b,cell:f}of new w(e.findAncestor("table"),h))u[b-s].push(f);const g=l.row<n.row,m=l.column<n.column;return g&&u.reverse(),m&&u.forEach(b=>b.reverse()),{cells:u.flat(),backward:g||m}}}class Jn extends y{static get pluginName(){return"TableClipboard"}static get isOfficialPlugin(){return!0}static get requires(){return[Ce,$e,B,A]}init(){const t=this.editor.editing.view.document;this.listenTo(t,"copy",(o,n)=>this._onCopyCut(o,n)),this.listenTo(t,"cut",(o,n)=>this._onCopyCut(o,n)),this._listenToContentInsertion(),this.decorate("_replaceTableSlotCell")}_listenToContentInsertion(){const{editor:e}=this,t=e.plugins.get($e),o=e.plugins.get(B);let n=!1;t.on("contentInsertion",(l,s)=>{n=s.method==="paste"}),this.listenTo(e.model,"insertContent",(l,[s,r])=>{(n||o.getSelectedTableCells()!==null)&&this._onInsertContent(l,s,r)},{priority:"high"}),t.on("contentInsertion",()=>{n=!1},{priority:"lowest"})}_onCopyCut(e,t){const o=this.editor.editing.view,n=this.editor.plugins.get(B),l=this.editor.plugins.get(Ce);n.getSelectedTableCells()&&(e.name=="cut"&&!this.editor.model.canEditAt(this.editor.model.document.selection)||(t.preventDefault(),e.stop(),this.editor.model.enqueueChange({isUndoable:e.name==="cut"},()=>{const s=l._copySelectedFragmentWithMarkers(e.name,this.editor.model.document.selection,()=>n.getSelectionAsFragment());o.document.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:this.editor.data.toView(s),method:e.name})})))}_onInsertContent(e,t,o){if(o&&!o.is("documentSelection"))return;const n=this.editor.model,l=this.editor.plugins.get(A),s=this.editor.plugins.get(Ce),r=this.getTableIfOnlyTableInContent(t,n);if(!r)return;const a=l.getSelectionAffectedTableCells(n.document.selection);if(!a.length){Fe(r,l);return}e.stop(),t.is("documentFragment")?s._pasteMarkersIntoTransformedElement(t.markers,c=>this._replaceSelectedCells(r,a,c)):this.editor.model.change(c=>{this._replaceSelectedCells(r,a,c)})}_replaceSelectedCells(e,t,o){const n=this.editor.plugins.get(A),l={width:n.getColumns(e),height:n.getRows(e)},s=Zn(t,l,o,n),r=s.lastRow-s.firstRow+1,a=s.lastColumn-s.firstColumn+1,c={startRow:0,startColumn:0,endRow:Math.min(r,l.height)-1,endColumn:Math.min(a,l.width)-1};e=Pt(e,c,o);const d=t[0].findAncestor("table"),u=this._replaceSelectedCellsWithPasted(e,l,d,s,o);if(this.editor.plugins.get("TableSelection").isEnabled){const h=n.sortRanges(u.map(g=>o.createRangeOn(g)));o.setSelection(h)}else o.setSelection(u[0],0);return d}_replaceSelectedCellsWithPasted(e,t,o,n,l){const{width:s,height:r}=t,a=Qn(e,s,r),c=[...new w(o,{startRow:n.firstRow,endRow:n.lastRow,startColumn:n.firstColumn,endColumn:n.lastColumn,includeAllSlots:!0})],d=[];let u;for(const f of c){const{row:p,column:C}=f;C===n.firstColumn&&(u=f.getPositionBefore());const T=p-n.firstRow,x=C-n.firstColumn,V=a[T%r][x%s],G=V?l.cloneElement(V):null,U=this._replaceTableSlotCell(f,G,u,l);U&&(Nt(U,p,C,n.lastRow,n.lastColumn,l),d.push(U),u=l.createPositionAfter(U))}const h=parseInt(o.getAttribute("headingRows")||"0"),g=parseInt(o.getAttribute("headingColumns")||"0"),m=n.firstRow<h&&h<=n.lastRow,b=n.firstColumn<g&&g<=n.lastColumn;if(m){const f={first:n.firstColumn,last:n.lastColumn},p=xe(o,h,f,l,n.firstRow);d.push(...p)}if(b){const f={first:n.firstRow,last:n.lastRow},p=Ve(o,g,f,l);d.push(...p)}return d}_replaceTableSlotCell(e,t,o,n){const{cell:l,isAnchor:s}=e;return s&&n.remove(l),t?(n.insert(t,o),t):null}getTableIfOnlyTableInContent(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(e.childCount==1&&e.getChild(0).is("element","table"))return e.getChild(0);const o=t.createRangeIn(e);for(const n of o.getItems())if(n.is("element","table")){const l=t.createRange(o.start,t.createPositionBefore(n));if(t.hasContent(l,{ignoreWhitespaces:!0}))return null;const s=t.createRange(t.createPositionAfter(n),o.end);return t.hasContent(s,{ignoreWhitespaces:!0})?null:n}return null}}function Zn(i,e,t,o){const n=i[0].findAncestor("table"),l=o.getColumnIndexes(i),s=o.getRowIndexes(i),r={firstColumn:l.first,lastColumn:l.last,firstRow:s.first,lastRow:s.last},a=i.length===1;return a&&(r.lastRow+=e.height-1,r.lastColumn+=e.width-1,Yn(n,r.lastRow+1,r.lastColumn+1,o)),a||!o.isSelectionRectangular(i)?el(n,r,t):(r.lastRow=Dt(n,r),r.lastColumn=Ft(n,r)),r}function Yn(i,e,t,o){const n=o.getColumns(i),l=o.getRows(i);t>n&&o.insertColumns(i,{at:n,columns:t-n}),e>l&&o.insertRows(i,{at:l,rows:e-l})}function Qn(i,e,t){const o=new Array(t).fill(null).map(()=>new Array(e).fill(null));for(const{column:n,row:l,cell:s}of new w(i))o[l][n]=s;return o}function el(i,e,t){const{firstRow:o,lastRow:n,firstColumn:l,lastColumn:s}=e,r={first:o,last:n},a={first:l,last:s};Ve(i,l,r,t),Ve(i,s+1,r,t),xe(i,o,a,t),xe(i,n+1,a,t,o)}function xe(i,e,t,o,n=0){return e<1?void 0:Et(i,e,n).filter(({column:r,cellWidth:a})=>Ht(r,a,t)).map(({cell:r})=>Lt(r,e,o))}function Ve(i,e,t,o){return e<1?void 0:Wt(i,e).filter(({row:s,cellHeight:r})=>Ht(s,r,t)).map(({cell:s,column:r})=>Bt(s,r,e,o))}function Ht(i,e,t){const o=i+e-1,{first:n,last:l}=t,s=i>=n&&i<=l,r=i<n&&o>=n;return s||r}class tl extends y{static get pluginName(){return"TableKeyboard"}static get isOfficialPlugin(){return!0}static get requires(){return[B,A]}init(){const e=this.editor,o=e.editing.view.document,n=e.t;this.listenTo(o,"arrowKey",(...l)=>this._onArrowKey(...l),{context:"table"}),this.listenTo(o,"tab",(...l)=>this._handleTabOnSelectedTable(...l),{context:"figure"}),this.listenTo(o,"tab",(...l)=>this._handleTab(...l),{context:["th","td"]}),e.accessibility.addKeystrokeInfoGroup({id:"table",label:n("Keystrokes that can be used in a table cell"),keystrokes:[{label:n("Move the selection to the next cell"),keystroke:"Tab"},{label:n("Move the selection to the previous cell"),keystroke:"Shift+Tab"},{label:n("Insert a new table row (when in the last cell of a table)"),keystroke:"Tab"},{label:n("Navigate through the table"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]}]})}_handleTabOnSelectedTable(e,t){const o=this.editor,l=o.model.document.selection.getSelectedElement();!l||!l.is("element","table")||(t.preventDefault(),t.stopPropagation(),e.stop(),o.model.change(s=>{s.setSelection(s.createRangeIn(l.getChild(0).getChild(0)))}))}_handleTab(e,t){const o=this.editor,n=this.editor.plugins.get(A),l=this.editor.plugins.get("TableSelection"),s=o.model.document.selection,r=!t.shiftKey;let a=n.getTableCellsContainingSelection(s)[0];if(a||(a=l.getFocusCell()),!a)return;t.preventDefault(),t.stopPropagation(),e.stop();const c=a.parent,d=c.parent,u=d.getChildIndex(c),h=c.getChildIndex(a),g=h===0;if(!r&&g&&u===0){o.model.change(p=>{p.setSelection(p.createRangeOn(d))});return}const m=h===c.childCount-1,b=u===n.getRows(d)-1;if(r&&b&&m&&(o.execute("insertTableRowBelow"),u===n.getRows(d)-1)){o.model.change(p=>{p.setSelection(p.createRangeOn(d))});return}let f;if(r&&m)f=d.getChild(u+1).getChild(0);else if(!r&&g){const p=d.getChild(u-1);f=p.getChild(p.childCount-1)}else f=c.getChild(h+(r?1:-1));o.model.change(p=>{p.setSelection(p.createRangeIn(f))})}_onArrowKey(e,t){const o=this.editor,n=t.keyCode,l=ro(n,o.locale.contentLanguageDirection);this._handleArrowKeys(l,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){const o=this.editor.plugins.get(A),n=this.editor.plugins.get("TableSelection"),l=this.editor.model,s=l.document.selection,r=["right","down"].includes(e),a=o.getSelectedTableCells(s);if(a.length){let d;return t?d=n.getFocusCell():d=r?a[a.length-1]:a[0],this._navigateFromCellInDirection(d,e,t),!0}const c=s.focus.findAncestor("tableCell");if(!c)return!1;if(!s.isCollapsed)if(t){if(s.isBackward==r&&!s.containsEntireContent(c))return!1}else{const d=s.getSelectedElement();if(!d||!l.schema.isObject(d))return!1}return this._isSelectionAtCellEdge(s,c,r)?(this._navigateFromCellInDirection(c,e,t),!0):!1}_isSelectionAtCellEdge(e,t,o){const n=this.editor.model,l=this.editor.model.schema,s=o?e.getLastPosition():e.getFirstPosition();if(!l.getLimitElement(s).is("element","tableCell"))return n.createPositionAt(t,o?"end":0).isTouching(s);const r=n.createSelection(s);return n.modifySelection(r,{direction:o?"forward":"backward"}),s.isEqual(r.focus)}_navigateFromCellInDirection(e,t,o=!1){const n=this.editor.model,l=e.findAncestor("table"),s=[...new w(l,{includeAllSlots:!0})],{row:r,column:a}=s[s.length-1],c=s.find(({cell:C})=>C==e);let{row:d,column:u}=c;switch(t){case"left":u--;break;case"up":d--;break;case"right":u+=c.cellWidth;break;case"down":d+=c.cellHeight;break}const h=d<0||d>r,g=u<0&&d<=0,m=u>a&&d>=r;if(h||g||m){n.change(C=>{C.setSelection(C.createRangeOn(l))});return}u<0?(u=o?0:a,d--):u>a&&(u=o?a:0,d++);const b=s.find(C=>C.row==d&&C.column==u).cell,f=["right","down"].includes(t),p=this.editor.plugins.get("TableSelection");if(o&&p.isEnabled){const C=p.getAnchorCell()||e;p.setCellSelection(C,b)}else{const C=n.createPositionAt(b,f?0:"end");n.change(T=>{T.setSelection(C)})}}}class Ut extends No{domEventType=["mousemove","mouseleave"];onDomEvent(e){this.fire(e.type,e)}}class ol extends y{static get pluginName(){return"TableMouse"}static get isOfficialPlugin(){return!0}static get requires(){return[B,A]}init(){this.editor.editing.view.addObserver(Ut),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const e=this.editor,t=e.plugins.get(A);let o=!1;const n=e.plugins.get(B);this.listenTo(e.editing.view.document,"mousedown",(l,s)=>{const r=e.model.document.selection;if(!this.isEnabled||!n.isEnabled||!s.domEvent.shiftKey)return;const a=n.getAnchorCell()||t.getTableCellsContainingSelection(r)[0];if(!a)return;const c=this._getModelTableCellFromDomEvent(s);c&&at(a,c)&&(o=!0,n.setCellSelection(a,c),s.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{o=!1}),this.listenTo(e.editing.view.document,"selectionChange",l=>{o&&l.stop()},{priority:"highest"})}_enableMouseDragSelection(){const e=this.editor;let t,o,n=!1,l=!1;const s=e.plugins.get(B);this.listenTo(e.editing.view.document,"mousedown",(r,a)=>{!this.isEnabled||!s.isEnabled||a.domEvent.shiftKey||a.domEvent.ctrlKey||a.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(a))}),this.listenTo(e.editing.view.document,"mousemove",(r,a)=>{if(!a.domEvent.buttons||!t)return;const c=this._getModelTableCellFromDomEvent(a);c&&at(t,c)&&(o=c,!n&&o!=t&&(n=!0)),n&&(l=!0,s.setCellSelection(t,o),a.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{n=!1,l=!1,t=null,o=null}),this.listenTo(e.editing.view.document,"selectionChange",r=>{l&&r.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(e){const t=e.target,o=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(o).parent.findAncestor("tableCell",{includeSelf:!0})}}function at(i,e){return i.parent.parent==e.parent.parent}class ri extends y{static get requires(){return[Z,qn,B,ol,tl,Jn,lo]}static get pluginName(){return"Table"}static get isOfficialPlugin(){return!0}}function de(i){const e=jt(i);return e||fe(i)}function jt(i){const e=i.getSelectedElement();return e&&Gt(e)?e:null}function fe(i){const e=i.getFirstPosition();if(!e)return null;let t=e.parent;for(;t;){if(t.is("element")&&Gt(t))return t;t=t.parent}return null}function Gt(i){return!!i.getCustomProperty("table")&&io(i)}class ai extends y{static get requires(){return[Ue]}static get pluginName(){return"TableToolbar"}static get isOfficialPlugin(){return!0}afterInit(){const e=this.editor,t=e.t,o=e.plugins.get(Ue),n=e.config.get("table.contentToolbar"),l=e.config.get("table.tableToolbar");n&&o.register("tableContent",{ariaLabel:t("Table toolbar"),items:n,getRelatedElement:fe}),l&&o.register("table",{ariaLabel:t("Table toolbar"),items:l,getRelatedElement:jt})}}class nl extends F{options;focusTracker;focusCycler;_focusables;dropdownView;inputView;keystrokes;_stillTyping;constructor(e,t){super(e),this.set("value",""),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isEmpty",!0),this.options=t,this.focusTracker=new be,this._focusables=new Be,this.dropdownView=this._createDropdownView(),this.inputView=this._createInputTextView(),this.keystrokes=new ge,this._stillTyping=!1,this.focusCycler=new Ne({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-input-color"]},children:[this.dropdownView,this.inputView]}),this.on("change:value",(o,n,l)=>this._setInputValue(l))}render(){super.render(),[this.inputView,this.dropdownView.buttonView].forEach(e=>{this.focusTracker.add(e.element),this._focusables.add(e)}),this.keystrokes.listenTo(this.element)}focus(e){e===-1?this.focusCycler.focusLast():this.focusCycler.focusFirst()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createDropdownView(){const e=this.locale,t=e.t,o=this.bindTemplate,n=this._createColorSelector(e),l=te(e),s=new F;return s.setTemplate({tag:"span",attributes:{class:["ck","ck-input-color__button__preview"],style:{backgroundColor:o.to("value")}},children:[{tag:"span",attributes:{class:["ck","ck-input-color__button__preview__no-color-indicator",o.if("value","ck-hidden",r=>r!="")]}}]}),l.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),l.buttonView.children.add(s),l.buttonView.label=t("Color picker"),l.buttonView.tooltip=!0,l.panelPosition=e.uiLanguageDirection==="rtl"?"se":"sw",l.panelView.children.add(n),l.bind("isEnabled").to(this,"isReadOnly",r=>!r),l.on("change:isOpen",(r,a,c)=>{c&&(n.updateSelectedColors(),n.showColorGridsFragment())}),l}_createInputTextView(){const e=this.locale,t=new Po(e);return t.extendTemplate({on:{blur:t.bindTemplate.to("blur")}}),t.value=this.value,t.bind("isReadOnly","hasError").to(this),this.bind("isFocused","isEmpty").to(t),t.on("input",()=>{const o=t.element.value,n=this.options.colorDefinitions.find(l=>o===l.label);this._stillTyping=!0,this.value=n&&n.color||o}),t.on("blur",()=>{this._stillTyping=!1,this._setInputValue(t.element.value)}),t.delegate("input").to(this),t}_createColorSelector(e){const t=e.t,o=this.options.defaultColorValue||"",n=t(o?"Restore default":"Remove color"),l=new Eo(e,{colors:this.options.colorDefinitions,columns:this.options.columns,removeButtonLabel:n,colorPickerLabel:t("Color picker"),colorPickerViewConfig:this.options.colorPickerConfig===!1?!1:{...this.options.colorPickerConfig,hideInput:!0}});l.appendUI(),l.on("execute",(r,a)=>{if(a.source==="colorPickerSaveButton"){this.dropdownView.isOpen=!1;return}this.value=a.value||o,this.fire("input"),a.source!=="colorPicker"&&(this.dropdownView.isOpen=!1)});let s=this.value;return l.on("colorPicker:cancel",()=>{this.value=s,this.fire("input"),this.dropdownView.isOpen=!1}),l.colorGridsFragmentView.colorPickerButtonView.on("execute",()=>{s=this.value}),l.bind("selectedColor").to(this,"value"),l}_setInputValue(e){if(!this._stillTyping){const t=ct(e),o=this.options.colorDefinitions.find(n=>t===ct(n.color));o?this.inputView.value=o.label:this.inputView.value=e||""}}}function ct(i){return i.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ")}const Oe=i=>i==="";function ze(i){return{none:i("None"),solid:i("Solid"),dotted:i("Dotted"),dashed:i("Dashed"),double:i("Double"),groove:i("Groove"),ridge:i("Ridge"),inset:i("Inset"),outset:i("Outset")}}function $t(i){return i('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".')}function Kt(i){return i('The value is invalid. Try "10px" or "2em" or simply "2".')}function ue(i){return i=i.trim().toLowerCase(),Oe(i)||Do(i)}function K(i){return i=i.trim(),Oe(i)||Jt(i)||xt(i)||Fo(i)}function qt(i){return i=i.trim(),Oe(i)||Jt(i)||xt(i)}function Xt(i,e){const t=new Ct,o=ze(i.t);for(const n in o){const l={type:"button",model:new yt({_borderStyleValue:n,label:o[n],role:"menuitemradio",withText:!0})};n==="none"?l.model.bind("isOn").to(i,"borderStyle",s=>e==="none"?!s:s===n):l.model.bind("isOn").to(i,"borderStyle",s=>s===n),t.add(l)}return t}function ke(i){const{view:e,icons:t,toolbar:o,labels:n,propertyName:l,nameToValue:s,defaultValue:r}=i;for(const a in n){const c=new P(e.locale);c.set({role:"radio",isToggleable:!0,label:n[a],icon:t[a],tooltip:n[a]});const d=s?s(a):a;c.bind("isOn").to(e,l,u=>{let h=u;return u===""&&r&&(h=r),d===h}),c.on("execute",()=>{!r&&d&&e[l]===d?e[l]=void 0:e[l]=d}),o.items.add(c)}}const he=[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}];function me(i){return(e,t,o)=>{const n=new nl(e.locale,{colorDefinitions:ll(i.colorConfig),columns:i.columns,defaultColorValue:i.defaultColorValue,colorPickerConfig:i.colorPickerConfig});return n.inputView.set({id:t,ariaDescribedById:o}),n.bind("isReadOnly").to(e,"isEnabled",l=>!l),n.bind("hasError").to(e,"errorText",l=>!!l),n.on("input",()=>{e.errorText=null}),e.bind("isEmpty","isFocused").to(n),n}}function Jt(i){const e=parseFloat(i);return!Number.isNaN(e)&&i===String(e)}function ll(i){return i.map(e=>({color:e.model,label:e.label,options:{hasBorder:e.hasBorder}}))}class il extends F{options;focusTracker;keystrokes;children;borderStyleDropdown;borderWidthInput;borderColorInput;backgroundInput;paddingInput;widthInput;heightInput;horizontalAlignmentToolbar;verticalAlignmentToolbar;saveButtonView;cancelButtonView;_focusables;_focusCycler;constructor(e,t){super(e),this.set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),this.options=t;const{borderStyleDropdown:o,borderWidthInput:n,borderColorInput:l,borderRowLabel:s}=this._createBorderFields(),{backgroundRowLabel:r,backgroundInput:a}=this._createBackgroundFields(),{widthInput:c,operatorLabel:d,heightInput:u,dimensionsLabel:h}=this._createDimensionFields(),{horizontalAlignmentToolbar:g,verticalAlignmentToolbar:m,alignmentLabel:b}=this._createAlignmentFields();this.focusTracker=new be,this.keystrokes=new ge,this.children=this.createCollection(),this.borderStyleDropdown=o,this.borderWidthInput=n,this.borderColorInput=l,this.backgroundInput=a,this.paddingInput=this._createPaddingField(),this.widthInput=c,this.heightInput=u,this.horizontalAlignmentToolbar=g,this.verticalAlignmentToolbar=m;const{saveButtonView:f,cancelButtonView:p}=this._createActionButtons();this.saveButtonView=f,this.cancelButtonView=p,this._focusables=new Be,this._focusCycler=new Ne({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new At(e,{label:this.t("Cell properties")})),this.children.add(new R(e,{labelView:s,children:[s,o,l,n],class:"ck-table-form__border-row"})),this.children.add(new R(e,{labelView:r,children:[r,a],class:"ck-table-form__background-row"})),this.children.add(new R(e,{children:[new R(e,{labelView:h,children:[h,c,d,u],class:"ck-table-form__dimensions-row"}),new R(e,{children:[this.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),this.children.add(new R(e,{labelView:b,children:[b,g,m],class:"ck-table-cell-properties-form__alignment-row"})),this.children.add(new R(e,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-cell-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),vt({view:this}),[this.borderColorInput,this.backgroundInput].forEach(e=>{this._focusCycler.chain(e.fieldView.focusCycler)}),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.paddingInput,this.horizontalAlignmentToolbar,this.verticalAlignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const e=this.options.defaultTableCellProperties,t={style:e.borderStyle,width:e.borderWidth,color:e.borderColor},o=me({colorConfig:this.options.borderColors,columns:5,defaultColorValue:t.color,colorPickerConfig:this.options.colorPickerConfig}),n=this.locale,l=this.t,s=l("Style"),r=new L(n);r.text=l("Border");const a=ze(l),c=new I(n,St);c.set({label:s,class:"ck-table-form__border-style"}),c.fieldView.buttonView.set({ariaLabel:s,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:s}),c.fieldView.buttonView.bind("label").to(this,"borderStyle",h=>a[h||"none"]),c.fieldView.on("execute",h=>{this.borderStyle=h.source._borderStyleValue}),c.bind("isEmpty").to(this,"borderStyle",h=>!h),We(c.fieldView,Xt(this,t.style),{role:"menu",ariaLabel:s});const d=new I(n,D);d.set({label:l("Width"),class:"ck-table-form__border-width"}),d.fieldView.bind("value").to(this,"borderWidth"),d.bind("isEnabled").to(this,"borderStyle",Q),d.fieldView.on("input",()=>{this.borderWidth=d.fieldView.element.value});const u=new I(n,o);return u.set({label:l("Color"),class:"ck-table-form__border-color"}),u.fieldView.bind("value").to(this,"borderColor"),u.bind("isEnabled").to(this,"borderStyle",Q),u.fieldView.on("input",()=>{this.borderColor=u.fieldView.value}),this.on("change:borderStyle",(h,g,m,b)=>{Q(m)||(this.borderColor="",this.borderWidth=""),Q(b)||(this.borderColor=t.color,this.borderWidth=t.width)}),{borderRowLabel:r,borderStyleDropdown:c,borderColorInput:u,borderWidthInput:d}}_createBackgroundFields(){const e=this.locale,t=this.t,o=new L(e);o.text=t("Background");const n=me({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableCellProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),l=new I(e,n);return l.set({label:t("Color"),class:"ck-table-cell-properties-form__background"}),l.fieldView.bind("value").to(this,"backgroundColor"),l.fieldView.on("input",()=>{this.backgroundColor=l.fieldView.value}),{backgroundRowLabel:o,backgroundInput:l}}_createDimensionFields(){const e=this.locale,t=this.t,o=new L(e);o.text=t("Dimensions");const n=new I(e,D);n.set({label:t("Width"),class:"ck-table-form__dimensions-row__width"}),n.fieldView.bind("value").to(this,"width"),n.fieldView.on("input",()=>{this.width=n.fieldView.element.value});const l=new F(e);l.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const s=new I(e,D);return s.set({label:t("Height"),class:"ck-table-form__dimensions-row__height"}),s.fieldView.bind("value").to(this,"height"),s.fieldView.on("input",()=>{this.height=s.fieldView.element.value}),{dimensionsLabel:o,widthInput:n,operatorLabel:l,heightInput:s}}_createPaddingField(){const e=this.locale,t=this.t,o=new I(e,D);return o.set({label:t("Padding"),class:"ck-table-cell-properties-form__padding"}),o.fieldView.bind("value").to(this,"padding"),o.fieldView.on("input",()=>{this.padding=o.fieldView.element.value}),o}_createAlignmentFields(){const e=this.locale,t=this.t,o=new L(e),n={left:Ro,center:So,right:vo,justify:Ao,top:yo,middle:_o,bottom:To};o.text=t("Table cell text alignment");const l=new Te(e),s=e.contentLanguageDirection==="rtl";l.set({isCompact:!0,role:"radiogroup",ariaLabel:t("Horizontal text alignment toolbar")}),ke({view:this,icons:n,toolbar:l,labels:this._horizontalAlignmentLabels,propertyName:"horizontalAlignment",nameToValue:a=>{if(s){if(a==="left")return"right";if(a==="right")return"left"}return a},defaultValue:this.options.defaultTableCellProperties.horizontalAlignment});const r=new Te(e);return r.set({isCompact:!0,role:"radiogroup",ariaLabel:t("Vertical text alignment toolbar")}),ke({view:this,icons:n,toolbar:r,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",defaultValue:this.options.defaultTableCellProperties.verticalAlignment}),{horizontalAlignmentToolbar:l,verticalAlignmentToolbar:r,alignmentLabel:o}}_createActionButtons(){const e=this.locale,t=this.t,o=new P(e),n=new P(e),l=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return o.set({label:t("Save"),icon:wt,class:"ck-button-save",type:"submit",withText:!0}),o.bind("isEnabled").toMany(l,"errorText",(...s)=>s.every(r=>!r)),n.set({label:t("Cancel"),icon:Tt,class:"ck-button-cancel",withText:!0}),n.delegate("execute").to(this,"cancel"),{saveButtonView:o,cancelButtonView:n}}get _horizontalAlignmentLabels(){const e=this.locale,t=this.t,o=t("Align cell text to the left"),n=t("Align cell text to the center"),l=t("Align cell text to the right"),s=t("Justify cell text");return e.uiLanguageDirection==="rtl"?{right:l,center:n,left:o,justify:s}:{left:o,center:n,right:l,justify:s}}get _verticalAlignmentLabels(){const e=this.t;return{top:e("Align cell text to the top"),middle:e("Align cell text to the middle"),bottom:e("Align cell text to the bottom")}}}function Q(i){return i!=="none"}const Pe=[N.defaultPositions.northArrowSouth,N.defaultPositions.northArrowSouthWest,N.defaultPositions.northArrowSouthEast,N.defaultPositions.southArrowNorth,N.defaultPositions.southArrowNorthWest,N.defaultPositions.southArrowNorthEast,N.defaultPositions.viewportStickyNorth];function Zt(i,e){const t=i.plugins.get("ContextualBalloon"),o=i.editing.view.document.selection;let n;e==="cell"?fe(o)&&(n=Qt(i)):de(o)&&(n=Yt(i)),n&&t.updatePosition(n)}function Yt(i){const e=i.model.document.selection,t=W(e),o=i.editing.mapper.toViewElement(t);return{target:i.editing.view.domConverter.mapViewToDom(o),positions:Pe}}function Qt(i){const e=i.editing.mapper,t=i.editing.view.domConverter,o=i.model.document.selection;if(o.rangeCount>1)return{target:()=>sl(o.getRanges(),i),positions:Pe};const n=eo(o.getFirstPosition()),l=e.toViewElement(n);return{target:t.mapViewToDom(l),positions:Pe}}function eo(i){return i.nodeAfter&&i.nodeAfter.is("element","tableCell")?i.nodeAfter:i.findAncestor("tableCell")}function sl(i,e){const t=e.editing.mapper,o=e.editing.view.domConverter,n=Array.from(i).map(l=>{const s=eo(l.start),r=t.toViewElement(s);return new se(o.mapViewToDom(r))});return se.getBoundingRect(n)}function O(i){if(!i||!Oo(i))return i;const{top:e,right:t,bottom:o,left:n}=i;if(e==t&&t==o&&o==n)return e}function z(i,e){const t=parseFloat(i);return Number.isNaN(t)||String(t)!==String(i)?i:`${t}${e}`}function pe(i,e={}){const t={borderStyle:"none",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",...i};return e.includeAlignmentProperty&&!t.alignment&&(t.alignment="center"),e.includePaddingProperty&&!t.padding&&(t.padding=""),e.includeVerticalAlignmentProperty&&!t.verticalAlignment&&(t.verticalAlignment="middle"),e.includeHorizontalAlignmentProperty&&!t.horizontalAlignment&&(t.horizontalAlignment=e.isRightToLeftContent?"right":"left"),t}function to(i,e){return pe({borderStyle:"double",borderColor:"hsl(0, 0%, 70%)",borderWidth:"1px",...i},e)}function He(i,e){return pe({borderStyle:"solid",borderColor:"hsl(0, 0%, 75%)",borderWidth:"1px",...i},e)}const rl=500,dt={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",height:"tableCellHeight",width:"tableCellWidth",padding:"tableCellPadding",backgroundColor:"tableCellBackgroundColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"};class al extends y{_defaultContentTableCellProperties;_defaultLayoutTableCellProperties;_balloon;view;_viewWithContentTableDefaults;_viewWithLayoutTableDefaults;_undoStepBatch;_isReady;static get requires(){return[re]}static get pluginName(){return"TableCellPropertiesUI"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("table.tableCellProperties",{borderColors:he,backgroundColors:he})}init(){const e=this.editor,t=e.t;this._defaultContentTableCellProperties=He(e.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:e.locale.contentLanguageDirection==="rtl"}),this._defaultLayoutTableCellProperties=pe(void 0,{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,isRightToLeftContent:e.locale.contentLanguageDirection==="rtl"}),this._balloon=e.plugins.get(re),this.view=null,this._isReady=!1,e.ui.componentFactory.add("tableCellProperties",o=>{const n=new P(o);n.set({label:t("Cell properties"),icon:bo,tooltip:!0}),this.listenTo(n,"execute",()=>this._showView());const l=Object.values(dt).map(s=>e.commands.get(s));return n.bind("isEnabled").toMany(l,"isEnabled",(...s)=>s.some(r=>r)),n})}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(e){const t=this.editor,o=t.config.get("table.tableCellProperties"),n=ae(o.borderColors),l=ce(t.locale,n),s=ae(o.backgroundColors),r=ce(t.locale,s),a=o.colorPicker!==!1,c=new il(t.locale,{borderColors:l,backgroundColors:r,defaultTableCellProperties:e,colorPickerConfig:a?o.colorPicker||{}:!1}),d=t.t;c.render(),this.listenTo(c,"submit",()=>{this._hideView()}),this.listenTo(c,"cancel",()=>{this._undoStepBatch.operations.length&&t.execute("undo",this._undoStepBatch),this._hideView()}),c.keystrokes.set("Esc",(g,m)=>{this._hideView(),m()}),_t({emitter:c,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const u=$t(d),h=Kt(d);return c.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle")),c.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:c.borderColorInput,commandName:"tableCellBorderColor",errorText:u,validator:ue})),c.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:c.borderWidthInput,commandName:"tableCellBorderWidth",errorText:h,validator:qt})),c.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:c.paddingInput,commandName:"tableCellPadding",errorText:h,validator:K})),c.on("change:width",this._getValidatedPropertyChangeCallback({viewField:c.widthInput,commandName:"tableCellWidth",errorText:h,validator:K})),c.on("change:height",this._getValidatedPropertyChangeCallback({viewField:c.heightInput,commandName:"tableCellHeight",errorText:h,validator:K})),c.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:c.backgroundInput,commandName:"tableCellBackgroundColor",errorText:u,validator:ue})),c.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment")),c.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment")),c}_fillViewFormFromCommandValues(){const e=this.editor.commands,t=e.get("tableCellBorderStyle");Object.entries(dt).map(([o,n])=>{const l=o,s=this.view===this._viewWithContentTableDefaults?this._defaultContentTableCellProperties[l]||"":this._defaultLayoutTableCellProperties[l]||"";return[o,e.get(n).value||s]}).forEach(([o,n])=>{(o==="borderColor"||o==="borderWidth")&&t.value==="none"||this.view.set(o,n)}),this._isReady=!0}_showView(){const e=this.editor,t=de(e.editing.view.document.selection),o=t&&e.editing.mapper.toModelElement(t),n=!o||o.getAttribute("tableType")!=="layout";n&&!this._viewWithContentTableDefaults?this._viewWithContentTableDefaults=this._createPropertiesView(this._defaultContentTableCellProperties):!n&&!this._viewWithLayoutTableDefaults&&(this._viewWithLayoutTableDefaults=this._createPropertiesView(this._defaultLayoutTableCellProperties)),this.view=n?this._viewWithContentTableDefaults:this._viewWithLayoutTableDefaults,this.listenTo(e.ui,"update",()=>{this._updateView()}),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:Qt(e)}),this._undoStepBatch=e.model.createBatch(),this.view.focus()}_hideView(){const e=this.editor;this.stopListening(e.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const e=this.editor,t=e.editing.view.document;fe(t.selection)?this._isViewVisible&&Zt(e,"cell"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(e){return(t,o,n)=>{this._isReady&&this.editor.execute(e,{value:n,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(e){const{commandName:t,viewField:o,validator:n,errorText:l}=e,s=Vt(()=>{o.errorText=l},rl);return(r,a,c)=>{s.cancel(),this._isReady&&(n(c)?(this.editor.execute(t,{value:c,batch:this._undoStepBatch}),o.errorText=null):s())}}}class E extends v{attributeName;_defaultValue;_defaultContentTableValue;_defaultLayoutTableValue;constructor(e,t,o){switch(super(e),this.attributeName=t,this._defaultContentTableValue=o,t){case"tableCellBorderStyle":this._defaultLayoutTableValue="none";break;case"tableCellHorizontalAlignment":this._defaultLayoutTableValue="left";break;case"tableCellVerticalAlignment":this._defaultLayoutTableValue="middle";break;default:this._defaultLayoutTableValue=void 0}}refresh(){const t=this.editor.model.document.selection,n=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t),l=W(t);this._defaultValue=!l||l.getAttribute("tableType")!=="layout"?this._defaultContentTableValue:this._defaultLayoutTableValue,this.isEnabled=!!n.length,this.value=this._getSingleValue(n)}execute(e={}){const{value:t,batch:o}=e,n=this.editor.model,s=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(n.document.selection),r=this._getValueToSet(t);n.enqueueChange(o,a=>{r?s.forEach(c=>a.setAttribute(this.attributeName,r,c)):s.forEach(c=>a.removeAttribute(this.attributeName,c))})}_getAttribute(e){if(!e)return;const t=e.getAttribute(this.attributeName);if(t!==this._defaultValue)return t}_getValueToSet(e){if(e!==this._defaultValue)return e}_getSingleValue(e){const t=this._getAttribute(e[0]);return e.every(n=>this._getAttribute(n)===t)?t:void 0}}class cl extends E{constructor(e,t){super(e,"tableCellWidth",t)}_getValueToSet(e){if(e=z(e,"px"),e!==this._defaultValue)return e}}class oo extends y{static get pluginName(){return"TableCellWidthEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Z]}init(){const e=this.editor,t=He(e.config.get("table.tableCellProperties.defaultProperties"));le(e.model.schema,e.conversion,{modelAttribute:"tableCellWidth",styleName:"width",attributeName:"width",attributeType:"length",defaultValue:t.width}),e.commands.add("tableCellWidth",new cl(e,t.width))}}class dl extends E{constructor(e,t){super(e,"tableCellPadding",t)}_getAttribute(e){if(!e)return;const t=O(e.getAttribute(this.attributeName));if(t!==this._defaultValue)return t}_getValueToSet(e){const t=z(e,"px");if(t!==this._defaultValue)return t}}class ul extends E{constructor(e,t){super(e,"tableCellHeight",t)}_getValueToSet(e){const t=z(e,"px");if(t!==this._defaultValue)return t}}class hl extends E{constructor(e,t){super(e,"tableCellBackgroundColor",t)}}class ml extends E{constructor(e,t){super(e,"tableCellVerticalAlignment",t)}}class gl extends E{constructor(e,t){super(e,"tableCellHorizontalAlignment",t)}}class bl extends E{constructor(e,t){super(e,"tableCellBorderStyle",t)}_getAttribute(e){if(!e)return;const t=O(e.getAttribute(this.attributeName));if(t!==this._defaultValue)return t}}class fl extends E{constructor(e,t){super(e,"tableCellBorderColor",t)}_getAttribute(e){if(!e)return;const t=O(e.getAttribute(this.attributeName));if(t!==this._defaultValue)return t}}class pl extends E{constructor(e,t){super(e,"tableCellBorderWidth",t)}_getAttribute(e){if(!e)return;const t=O(e.getAttribute(this.attributeName));if(t!==this._defaultValue)return t}_getValueToSet(e){const t=z(e,"px");if(t!==this._defaultValue)return t}}const ut=/^(top|middle|bottom)$/,ht=/^(left|center|right|justify)$/;class Cl extends y{static get pluginName(){return"TableCellPropertiesEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Z,oo]}init(){const e=this.editor,t=e.model.schema,o=e.conversion;e.config.define("table.tableCellProperties.defaultProperties",{});const n=He(e.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:e.locale.contentLanguageDirection==="rtl"});e.data.addStyleProcessorRules(Rt),wl(t,o,{color:n.borderColor,style:n.borderStyle,width:n.borderWidth}),e.commands.add("tableCellBorderStyle",new bl(e,n.borderStyle)),e.commands.add("tableCellBorderColor",new fl(e,n.borderColor)),e.commands.add("tableCellBorderWidth",new pl(e,n.borderWidth)),le(t,o,{modelAttribute:"tableCellHeight",styleName:"height",attributeName:"height",attributeType:"length",defaultValue:n.height}),e.commands.add("tableCellHeight",new ul(e,n.height)),e.data.addStyleProcessorRules(Bo),le(t,o,{modelAttribute:"tableCellPadding",styleName:"padding",reduceBoxSides:!0,defaultValue:n.padding}),e.commands.add("tableCellPadding",new dl(e,n.padding)),e.data.addStyleProcessorRules(It),le(t,o,{modelAttribute:"tableCellBackgroundColor",styleName:"background-color",attributeName:"bgcolor",attributeType:"color",defaultValue:n.backgroundColor}),e.commands.add("tableCellBackgroundColor",new hl(e,n.backgroundColor)),Tl(t,o,n.horizontalAlignment),e.commands.add("tableCellHorizontalAlignment",new gl(e,n.horizontalAlignment)),_l(t,o,n.verticalAlignment),e.commands.add("tableCellVerticalAlignment",new ml(e,n.verticalAlignment))}}function wl(i,e,t){const o={width:"tableCellBorderWidth",color:"tableCellBorderColor",style:"tableCellBorderStyle"};i.extend("tableCell",{allowAttributes:Object.values(o)});for(const n of Object.values(o))i.setAttributeProperties(n,{isFormatting:!0});_e(e,"td",o,t),_e(e,"th",o,t),$(e,{modelElement:"tableCell",modelAttribute:o.style,styleName:"border-style"}),$(e,{modelElement:"tableCell",modelAttribute:o.color,styleName:"border-color"}),$(e,{modelElement:"tableCell",modelAttribute:o.width,styleName:"border-width"})}function Tl(i,e,t){i.extend("tableCell",{allowAttributes:["tableCellHorizontalAlignment"]}),i.setAttributeProperties("tableCellHorizontalAlignment",{isFormatting:!0}),e.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellHorizontalAlignment"},view:o=>({key:"style",value:{"text-align":o}})}),e.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"text-align":ht}},model:{key:"tableCellHorizontalAlignment",value:(o,n,l)=>{const s=k(t,"left",l),r=o.getStyle("text-align");if(r!==s)return r;n.consumable.consume(o,{styles:"text-align"})}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{align:ht}},model:{key:"tableCellHorizontalAlignment",value:(o,n,l)=>{const s=k(t,"left",l),r=o.getAttribute("align");if(r!==s)return r;n.consumable.consume(o,{attributes:"align"})}}})}function _l(i,e,t){i.extend("tableCell",{allowAttributes:["tableCellVerticalAlignment"]}),i.setAttributeProperties("tableCellVerticalAlignment",{isFormatting:!0}),e.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellVerticalAlignment"},view:o=>({key:"style",value:{"vertical-align":o}})}),e.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"vertical-align":ut}},model:{key:"tableCellVerticalAlignment",value:(o,n,l)=>{const s=k(t,"middle",l),r=o.getStyle("vertical-align");if(r!==s)return r;n.consumable.consume(o,{styles:"vertical-align"})}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{valign:ut}},model:{key:"tableCellVerticalAlignment",value:(o,n,l)=>{const s=k(t,"middle",l),r=o.getAttribute("valign");if(r!==s)return r;n.consumable.consume(o,{attributes:"valign"})}}})}class ci extends y{static get pluginName(){return"TableCellProperties"}static get isOfficialPlugin(){return!0}static get requires(){return[Cl,al]}}class yl extends v{refresh(){this.isEnabled=!0}execute(e={}){const{model:t,plugins:o}=this.editor;let{table:n=t.document.selection.getSelectedElement(),columnWidths:l,tableWidth:s}=e;l&&(l=Array.isArray(l)?l:l.split(",")),t.change(r=>{s?r.setAttribute("tableWidth",s,n):r.removeAttribute("tableWidth",n);const a=o.get("TableColumnResizeEditing").getColumnGroupElement(n);if(!l&&!a)return;if(!l)return r.remove(a);const c=Me(l);if(a)Array.from(a.getChildren()).forEach((d,u)=>r.setAttribute("columnWidth",c[u],d));else{const d=r.createElement("tableColumnGroup");c.forEach(u=>r.appendElement("tableColumn",{columnWidth:u},d)),r.append(d,n)}})}}function Al(i){return e=>e.on("element:colgroup",(t,o,n)=>{const l=o.modelCursor.findAncestor("table"),s=X(l);if(!s)return;const r=J(s),a=i.getColumns(l);let c=yn(s,n.writer);c=Array.from({length:a},(d,u)=>c[u]||"auto"),(c.length!=r.length||c.includes("auto"))&&Ot(r,s,Me(c),n.writer)},{priority:"low"})}function vl(){return i=>i.on("insert:table",(e,t,o)=>{const n=o.writer,l=t.item,s=o.mapper.toViewElement(l),r=s.is("element","table")?s:Array.from(s.getChildren()).find(c=>c.is("element","table"));X(l)?n.addClass("ck-table-resized",r):n.removeClass("ck-table-resized",r)},{priority:"low"})}function Sl(){return i=>{i.on("element:table",(e,t,o)=>{o.consumable.consume(t.viewItem,{classes:"ck-table-resized"})})}}const mt=co("px");class Rl extends y{_isResizingActive;_resizingData;_domEmitter;_tableUtilsPlugin;_initialMouseEventData=null;static get requires(){return[Z,A]}static get pluginName(){return"TableColumnResizeEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),this._isResizingActive=!1,this.set("_isResizingAllowed",!0),this._resizingData=null,this._domEmitter=new(ao()),this._tableUtilsPlugin=e.plugins.get("TableUtils"),this.on("change:_isResizingAllowed",(t,o,n)=>{const l=n?"removeClass":"addClass";e.editing.view.change(s=>{for(const r of e.editing.view.document.roots)s[l]("ck-column-resize_disabled",e.editing.view.document.getRoot(r.rootName))})})}init(){this._extendSchema(),this._registerPostFixer(),this._registerConverters(),this._registerResizingListeners(),this._registerResizerInserter();const e=this.editor,t=e.plugins.get("TableColumnResize");e.plugins.get("TableEditing").registerAdditionalSlot({filter:l=>l.is("element","tableColumnGroup"),positionOffset:0});const n=new yl(e);e.commands.add("resizeTableWidth",n),e.commands.add("resizeColumnWidths",n),this.bind("_isResizingAllowed").to(e,"isReadOnly",t,"isEnabled",n,"isEnabled",(l,s,r)=>!l&&s&&r)}destroy(){this._domEmitter.stopListening(),super.destroy()}getColumnGroupElement(e){return X(e)}getTableColumnElements(e){return J(e)}getTableColumnsWidths(e){return _n(e)}_extendSchema(){const e=this.editor.model.schema;e.extend("table",{allowAttributes:["tableWidth"]}),e.register("tableColumnGroup",{allowIn:"table",isLimit:!0}),e.register("tableColumn",{allowIn:"tableColumnGroup",allowAttributes:["columnWidth","colSpan"],isLimit:!0}),e.setAttributeProperties("columnWidth",{isFormatting:!0})}_registerPostFixer(){const t=this.editor.model;t.document.registerPostFixer(l=>{let s=!1;for(const r of gn(t)){const a=this.getColumnGroupElement(r),c=this.getTableColumnElements(a),d=this.getTableColumnsWidths(a);let u=Me(d);u=o(u,r,this),!Ke(d,u)&&(Ot(c,a,u,l),s=!0)}return s});function o(l,s,r){const a=r._tableUtilsPlugin.getColumns(s);if(a-l.length===0)return l;const d=l.map(h=>Number(h.replace("%",""))),u=n(r.editor.model.document.differ,s);for(const h of u){const g=a-d.length;if(g===0)continue;const m=g>0,b=r._tableUtilsPlugin.getCellLocation(h).column;if(m){const f=bn(s,r.editor),p=Cn(g,f);d.splice(b,0,...p)}else{const f=d.splice(b,Math.abs(g));d[b]+=q(f)}}return d.map(h=>h+"%")}function n(l,s){const r=new Set;for(const a of l.getChanges())if(a.type=="insert"&&a.position.nodeAfter&&a.position.nodeAfter.name=="tableCell"&&a.position.nodeAfter.getAncestors().includes(s))r.add(a.position.nodeAfter);else if(a.type=="remove"){const c=a.position.nodeBefore||a.position.nodeAfter;c.name=="tableCell"&&c.getAncestors().includes(s)&&r.add(c)}return r}}_registerConverters(){const t=this.editor.conversion;t.for("upcast").attributeToAttribute({view:{name:/^(figure|table)$/,styles:{width:/[\s\S]+/}},model:{key:"tableWidth",value:o=>{if(!o.parent.is("element","figure"))return o.getStyle("width")}}}),t.for("downcast").attributeToAttribute({model:{name:"table",key:"tableWidth"},view:o=>({name:"figure",key:"style",value:{width:o}})}),t.elementToElement({model:"tableColumnGroup",view:"colgroup"}),t.elementToElement({model:"tableColumn",view:"col"}),t.for("downcast").add(vl()),t.for("upcast").add(Sl()),t.for("upcast").add(Al(this._tableUtilsPlugin)),t.for("upcast").attributeToAttribute({view:{name:"col",styles:{width:/.*/}},model:{key:"columnWidth",value:o=>{const n=o.getStyle("width");return!n||!n.endsWith("%")&&!n.endsWith("pt")?"auto":n}}}),t.for("upcast").attributeToAttribute({view:{name:"col",key:"span"},model:"colSpan"}),t.for("downcast").attributeToAttribute({model:{name:"tableColumn",key:"columnWidth"},view:o=>({key:"style",value:{width:o}})})}_registerResizingListeners(){const e=this.editor.editing.view;e.addObserver(Ut),e.document.on("mouseover",this._onMouseOverHandler.bind(this),{priority:"high"}),e.document.on("mousedown",this._onMouseDownHandler.bind(this),{priority:"high"}),e.document.on("mouseout",this._onMouseOutHandler.bind(this),{priority:"high"}),this._domEmitter.listenTo(ie.window.document,"mousemove",Mo(this._onMouseMoveHandler.bind(this),50)),this._domEmitter.listenTo(ie.window.document,"mouseup",this._onMouseUpHandler.bind(this))}_recalculateResizerElement(e){const t=this.editor,o=t.editing.view.domConverter,n=o.mapViewToDom(e.findAncestor("table")),l=o.mapViewToDom(e.findAncestor(d=>["td","th"].includes(d.name))),s=new se(n),r=new se(l),a=mt(Number((s.top-r.top).toFixed(4))),c=mt(Number((r.bottom-s.bottom).toFixed(4)));t.editing.view.change(d=>{d.setStyle("top",a,e),d.setStyle("bottom",c,e)})}_resetResizerStyles(e){this.editor.editing.view.change(t=>{t.removeStyle("top",e),t.removeStyle("bottom",e)})}_onMouseOverHandler(e,t){const o=t.target;o.hasClass("ck-table-column-resizer")&&this._isResizingAllowed&&this._recalculateResizerElement(o)}_onMouseOutHandler(e,t){const o=t.target;o.hasClass("ck-table-column-resizer")&&this._isResizingAllowed&&(this._isResizingActive||this._resetResizerStyles(o))}_onMouseDownHandler(e,t){const o=t.target;if(!o.hasClass("ck-table-column-resizer")||!this._isResizingAllowed)return;const n=this.editor,l=n.editing.mapper.toModelElement(o.findAncestor("figure"));n.model.canEditAt(l)&&(t.preventDefault(),e.stop(),this._initialMouseEventData=t)}_startResizingAfterThreshold(){const e=this._initialMouseEventData,{target:t}=e,o=this.editor.editing.mapper.toModelElement(t.findAncestor("figure")),n=t.findAncestor("table"),l=s(o,this._tableUtilsPlugin,this.editor);Array.from(n.getChildren()).find(c=>c.is("element","colgroup"))||this.editor.editing.view.change(c=>{r(c,l,n)}),this._isResizingActive=!0,this._resizingData=this._getResizingData(e,l),this.editor.editing.view.change(c=>a(c,n,this._resizingData));function s(c,d,u){const h=Array(d.getColumns(c)),g=new w(c);for(const m of g){const b=u.editing.mapper.toViewElement(m.cell),f=u.editing.view.domConverter.mapViewToDom(b),p=Tn(f);(!h[m.column]||p<h[m.column])&&(h[m.column]=S(p))}return h}function r(c,d,u){const h=c.createContainerElement("colgroup");for(let g=0;g<d.length;g++){const m=c.createEmptyElement("col"),b=`${S(d[g]/q(d)*100)}%`;c.setStyle("width",b,m),c.insert(c.createPositionAt(h,"end"),m)}c.insert(c.createPositionAt(u,0),h)}function a(c,d,u){const h=u.widths.viewFigureWidth/u.widths.viewFigureParentWidth;c.addClass("ck-table-resized",d),c.addClass("ck-table-column-resizer__active",u.elements.viewResizer),c.setStyle("width",`${S(h*100)}%`,d.findAncestor("figure"))}}_onMouseMoveHandler(e,t){if(this._initialMouseEventData){const T=this._initialMouseEventData.domEvent;if(Math.abs(t.clientX-T.clientX)>=mn)this._startResizingAfterThreshold(),this._initialMouseEventData=null;else return}if(!this._isResizingActive)return;if(!this._isResizingAllowed){this._onMouseUpHandler();return}const{columnPosition:o,flags:{isRightEdge:n,isTableCentered:l,isLtrContent:s},elements:{viewFigure:r,viewLeftColumn:a,viewRightColumn:c,viewResizer:d},widths:{viewFigureParentWidth:u,tableWidth:h,leftColumnWidth:g,rightColumnWidth:m}}=this._resizingData,b=-g+Se,f=n?u-h:m-Se,p=(s?1:-1)*(n&&l?2:1),C=pn((t.clientX-o)*p,Math.min(b,0),Math.max(f,0));C!==0&&(this.editor.editing.view.change(T=>{const x=S((g+C)*100/h);if(T.setStyle("width",`${x}%`,a),n){const V=S((h+C)*100/u);T.setStyle("width",`${V}%`,r)}else{const V=S((m-C)*100/h);T.setStyle("width",`${V}%`,c)}}),this._recalculateResizerElement(d))}_onMouseUpHandler(){if(this._initialMouseEventData=null,!this._isResizingActive)return;const{viewResizer:e,modelTable:t,viewFigure:o,viewColgroup:n}=this._resizingData.elements,l=this.editor,s=l.editing.view,r=this.getColumnGroupElement(t),a=Array.from(n.getChildren()).filter(f=>f.is("view:element")),c=r?this.getTableColumnsWidths(r):null,d=a.map(f=>f.getStyle("width")),u=!Ke(c,d),h=t.getAttribute("tableWidth"),g=o.getStyle("width"),m=h!==g;(u||m)&&(this._isResizingAllowed?l.execute("resizeTableWidth",{table:t,tableWidth:`${S(g)}%`,columnWidths:d}):s.change(f=>{if(c)for(const p of a)f.setStyle("width",c.shift(),p);else f.remove(n);m&&(h?f.setStyle("width",h,o):f.removeStyle("width",o)),!c&&!h&&f.removeClass("ck-table-resized",[...o.getChildren()].find(p=>p.name==="table"))})),s.change(f=>{f.removeClass("ck-table-column-resizer__active",e)}),s.domConverter.mapViewToDom(e).matches(":hover")||this._resetResizerStyles(e),this._isResizingActive=!1,this._resizingData=null}_getResizingData(e,t){const o=this.editor,n=e.domEvent.clientX,l=e.target,s=l.findAncestor("td")||l.findAncestor("th"),r=o.editing.mapper.toModelElement(s),a=r.findAncestor("table"),c=fn(r,this._tableUtilsPlugin).rightEdge,d=this._tableUtilsPlugin.getColumns(a)-1,u=c===d,h=!a.hasAttribute("tableAlignment"),g=o.locale.contentLanguageDirection!=="rtl",m=s.findAncestor("table"),b=m.findAncestor("figure"),f=[...m.getChildren()].find(no=>no.is("element","colgroup")),p=f.getChild(c),C=u?void 0:f.getChild(c+1),T=Re(o.editing.view.domConverter.mapViewToDom(b.parent)),x=Re(o.editing.view.domConverter.mapViewToDom(b)),V=Mt(a,o),G=t[c],U=u?void 0:t[c+1];return{columnPosition:n,flags:{isRightEdge:u,isTableCentered:h,isLtrContent:g},elements:{viewResizer:l,modelTable:a,viewFigure:b,viewColgroup:f,viewLeftColumn:p,viewRightColumn:C},widths:{viewFigureParentWidth:T,viewFigureWidth:x,tableWidth:V,leftColumnWidth:G,rightColumnWidth:U}}}_registerResizerInserter(){this.editor.conversion.for("editingDowncast").add(e=>{e.on("insert:tableCell",(t,o,n)=>{const l=o.item,s=n.mapper.toViewElement(l),r=n.writer;r.insert(r.createPositionAt(s,"end"),r.createUIElement("div",{class:"ck-table-column-resizer"}))},{priority:"lowest"})})}}class di extends y{static get requires(){return[Rl,oo]}static get pluginName(){return"TableColumnResize"}static get isOfficialPlugin(){return!0}}class H extends v{attributeName;_defaultValue;_defaultContentTableValue;_defaultLayoutTableValue;constructor(e,t,o){super(e),this.attributeName=t,this._defaultContentTableValue=o,this._defaultLayoutTableValue=t==="tableBorderStyle"?"none":void 0}refresh(){const t=this.editor.model.document.selection,o=W(t);this._defaultValue=!o||o.getAttribute("tableType")!=="layout"?this._defaultContentTableValue:this._defaultLayoutTableValue,this.isEnabled=!!o,this.value=this._getValue(o)}execute(e={}){const t=this.editor.model,o=t.document.selection,{value:n,batch:l}=e,s=W(o),r=this._getValueToSet(n);t.enqueueChange(l,a=>{r?a.setAttribute(this.attributeName,r,s):a.removeAttribute(this.attributeName,s)})}_getValue(e){if(!e)return;const t=e.getAttribute(this.attributeName);if(t!==this._defaultValue)return t}_getValueToSet(e){if(e!==this._defaultValue)return e}}class Il extends H{constructor(e,t){super(e,"tableBackgroundColor",t)}}class xl extends H{constructor(e,t){super(e,"tableBorderColor",t)}_getValue(e){if(!e)return;const t=O(e.getAttribute(this.attributeName));if(t!==this._defaultValue)return t}}class Vl extends H{constructor(e,t){super(e,"tableBorderStyle",t)}_getValue(e){if(!e)return;const t=O(e.getAttribute(this.attributeName));if(t!==this._defaultValue)return t}}class kl extends H{constructor(e,t){super(e,"tableBorderWidth",t)}_getValue(e){if(!e)return;const t=O(e.getAttribute(this.attributeName));if(t!==this._defaultValue)return t}_getValueToSet(e){const t=z(e,"px");if(t!==this._defaultValue)return t}}class Pl extends H{constructor(e,t){super(e,"tableWidth",t)}_getValueToSet(e){if(e=z(e,"px"),e!==this._defaultValue)return e}}class El extends H{constructor(e,t){super(e,"tableHeight",t)}_getValueToSet(e){if(e=z(e,"px"),e!==this._defaultValue)return e}}class Ll extends H{constructor(e,t){super(e,"tableAlignment",t)}}const Wl=/^(left|center|right)$/,Bl=/^(left|none|right)$/;class Nl extends y{static get pluginName(){return"TablePropertiesEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Z]}init(){const e=this.editor,t=e.model.schema,o=e.conversion;e.config.define("table.tableProperties.defaultProperties",{});const n=to(e.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0});e.data.addStyleProcessorRules(Rt),Dl(t,o,{color:n.borderColor,style:n.borderStyle,width:n.borderWidth}),e.commands.add("tableBorderColor",new xl(e,n.borderColor)),e.commands.add("tableBorderStyle",new Vl(e,n.borderStyle)),e.commands.add("tableBorderWidth",new kl(e,n.borderWidth)),Fl(t,o,n.alignment),e.commands.add("tableAlignment",new Ll(e,n.alignment)),gt(t,o,{modelAttribute:"tableWidth",styleName:"width",attributeName:"width",attributeType:"length",defaultValue:n.width}),e.commands.add("tableWidth",new Pl(e,n.width)),gt(t,o,{modelAttribute:"tableHeight",styleName:"height",attributeName:"height",attributeType:"length",defaultValue:n.height}),e.commands.add("tableHeight",new El(e,n.height)),e.data.addStyleProcessorRules(It),Ml(t,o,{modelAttribute:"tableBackgroundColor",styleName:"background-color",attributeName:"bgcolor",attributeType:"color",defaultValue:n.backgroundColor}),e.commands.add("tableBackgroundColor",new Il(e,n.backgroundColor))}}function Dl(i,e,t){const o={width:"tableBorderWidth",color:"tableBorderColor",style:"tableBorderStyle"};i.extend("table",{allowAttributes:Object.values(o)});for(const n of Object.values(o))i.setAttributeProperties(n,{isFormatting:!0});_e(e,"table",o,t),oe(e,{modelAttribute:o.color,styleName:"border-color"}),oe(e,{modelAttribute:o.style,styleName:"border-style"}),oe(e,{modelAttribute:o.width,styleName:"border-width"})}function Fl(i,e,t){i.extend("table",{allowAttributes:["tableAlignment"]}),i.setAttributeProperties("tableAlignment",{isFormatting:!0}),e.for("downcast").attributeToAttribute({model:{name:"table",key:"tableAlignment",values:["left","center","right"]},view:{left:{key:"style",value:{float:"left"}},right:{key:"style",value:{float:"right"}},center:(o,n,l)=>({key:"style",value:l.item.getAttribute("tableType")!=="layout"?{float:"none"}:{"margin-left":"auto","margin-right":"auto"}})},converterPriority:"high"}),e.for("upcast").attributeToAttribute({view:{name:/^(table|figure)$/,styles:{float:Bl}},model:{key:"tableAlignment",value:(o,n,l)=>{if(o.name=="figure"&&!o.hasClass("table"))return;const s=k(t,"",l);let r=o.getStyle("float");if(r==="none"&&(r="center"),r!==s)return r;n.consumable.consume(o,{styles:"float"})}}}).attributeToAttribute({view:{name:/^(table|figure)$/,styles:{"margin-left":"auto","margin-right":"auto"}},model:{key:"tableAlignment",value:(o,n,l)=>{if(o.name=="figure"&&!o.hasClass("table"))return;const s=k(t,"",l),r="center";if(r!==s)return r;n.consumable.consume(o,{styles:["margin-left","margin-right"]})}}}).attributeToAttribute({view:{name:"table",attributes:{align:Wl}},model:{key:"tableAlignment",value:(o,n,l)=>{const s=k(t,"",l),r=o.getAttribute("align");if(r!==s)return r;n.consumable.consume(o,{attributes:"align"})}}})}function Ml(i,e,t){const{modelAttribute:o}=t;i.extend("table",{allowAttributes:[o]}),i.setAttributeProperties(o,{isFormatting:!0}),De(e,{viewElement:"table",...t}),oe(e,t)}function gt(i,e,t){const{modelAttribute:o}=t;i.extend("table",{allowAttributes:[o]}),i.setAttributeProperties(o,{isFormatting:!0}),De(e,{viewElement:/^(table|figure)$/,shouldUpcast:n=>!(n.name=="table"&&n.parent.name=="figure"||n.name=="figure"&&!n.hasClass("table")),...t}),$(e,{modelElement:"table",...t})}class Ol extends F{options;focusTracker;keystrokes;children;borderStyleDropdown;borderWidthInput;borderColorInput;backgroundInput;widthInput;heightInput;alignmentToolbar;saveButtonView;cancelButtonView;_focusables;_focusCycler;constructor(e,t){super(e),this.set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),this.options=t;const{borderStyleDropdown:o,borderWidthInput:n,borderColorInput:l,borderRowLabel:s}=this._createBorderFields(),{backgroundRowLabel:r,backgroundInput:a}=this._createBackgroundFields(),{widthInput:c,operatorLabel:d,heightInput:u,dimensionsLabel:h}=this._createDimensionFields(),{alignmentToolbar:g,alignmentLabel:m}=this._createAlignmentFields();this.focusTracker=new be,this.keystrokes=new ge,this.children=this.createCollection(),this.borderStyleDropdown=o,this.borderWidthInput=n,this.borderColorInput=l,this.backgroundInput=a,this.widthInput=c,this.heightInput=u,this.alignmentToolbar=g;const{saveButtonView:b,cancelButtonView:f}=this._createActionButtons();this.saveButtonView=b,this.cancelButtonView=f,this._focusables=new Be,this._focusCycler=new Ne({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new At(e,{label:this.t("Table properties")})),this.children.add(new R(e,{labelView:s,children:[s,o,l,n],class:"ck-table-form__border-row"})),this.children.add(new R(e,{labelView:r,children:[r,a],class:"ck-table-form__background-row"})),this.children.add(new R(e,{children:[new R(e,{labelView:h,children:[h,c,d,u],class:"ck-table-form__dimensions-row"}),new R(e,{labelView:m,children:[m,g],class:"ck-table-properties-form__alignment-row"})]})),this.children.add(new R(e,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),vt({view:this}),[this.borderColorInput,this.backgroundInput].forEach(e=>{this._focusCycler.chain(e.fieldView.focusCycler)}),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.alignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const e=this.options.defaultTableProperties,t={style:e.borderStyle,width:e.borderWidth,color:e.borderColor},o=me({colorConfig:this.options.borderColors,columns:5,defaultColorValue:t.color,colorPickerConfig:this.options.colorPickerConfig}),n=this.locale,l=this.t,s=l("Style"),r=new L(n);r.text=l("Border");const a=ze(l),c=new I(n,St);c.set({label:s,class:"ck-table-form__border-style"}),c.fieldView.buttonView.set({ariaLabel:s,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:s}),c.fieldView.buttonView.bind("label").to(this,"borderStyle",h=>a[h||"none"]),c.fieldView.on("execute",h=>{this.borderStyle=h.source._borderStyleValue}),c.bind("isEmpty").to(this,"borderStyle",h=>!h),We(c.fieldView,Xt(this,t.style),{role:"menu",ariaLabel:s});const d=new I(n,D);d.set({label:l("Width"),class:"ck-table-form__border-width"}),d.fieldView.bind("value").to(this,"borderWidth"),d.bind("isEnabled").to(this,"borderStyle",ee),d.fieldView.on("input",()=>{this.borderWidth=d.fieldView.element.value});const u=new I(n,o);return u.set({label:l("Color"),class:"ck-table-form__border-color"}),u.fieldView.bind("value").to(this,"borderColor"),u.bind("isEnabled").to(this,"borderStyle",ee),u.fieldView.on("input",()=>{this.borderColor=u.fieldView.value}),this.on("change:borderStyle",(h,g,m,b)=>{ee(m)||(this.borderColor="",this.borderWidth=""),ee(b)||(this.borderColor=t.color,this.borderWidth=t.width)}),{borderRowLabel:r,borderStyleDropdown:c,borderColorInput:u,borderWidthInput:d}}_createBackgroundFields(){const e=this.locale,t=this.t,o=new L(e);o.text=t("Background");const n=me({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),l=new I(e,n);return l.set({label:t("Color"),class:"ck-table-properties-form__background"}),l.fieldView.bind("value").to(this,"backgroundColor"),l.fieldView.on("input",()=>{this.backgroundColor=l.fieldView.value}),{backgroundRowLabel:o,backgroundInput:l}}_createDimensionFields(){const e=this.locale,t=this.t,o=new L(e);o.text=t("Dimensions");const n=new I(e,D);n.set({label:t("Width"),class:"ck-table-form__dimensions-row__width"}),n.fieldView.bind("value").to(this,"width"),n.fieldView.on("input",()=>{this.width=n.fieldView.element.value});const l=new F(e);l.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const s=new I(e,D);return s.set({label:t("Height"),class:"ck-table-form__dimensions-row__height"}),s.fieldView.bind("value").to(this,"height"),s.fieldView.on("input",()=>{this.height=s.fieldView.element.value}),{dimensionsLabel:o,widthInput:n,operatorLabel:l,heightInput:s}}_createAlignmentFields(){const e=this.locale,t=this.t,o=new L(e);o.text=t("Alignment");const n=new Te(e);return n.set({role:"radiogroup",isCompact:!0,ariaLabel:t("Table alignment toolbar")}),ke({view:this,icons:{left:wo,center:Co,right:po},toolbar:n,labels:this._alignmentLabels,propertyName:"alignment",defaultValue:this.options.defaultTableProperties.alignment}),{alignmentLabel:o,alignmentToolbar:n}}_createActionButtons(){const e=this.locale,t=this.t,o=new P(e),n=new P(e),l=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return o.set({label:t("Save"),icon:wt,class:"ck-button-save",type:"submit",withText:!0}),o.bind("isEnabled").toMany(l,"errorText",(...s)=>s.every(r=>!r)),n.set({label:t("Cancel"),icon:Tt,class:"ck-button-cancel",withText:!0}),n.delegate("execute").to(this,"cancel"),{saveButtonView:o,cancelButtonView:n}}get _alignmentLabels(){const e=this.locale,t=this.t,o=t("Align table to the left"),n=t("Center table"),l=t("Align table to the right");return e.uiLanguageDirection==="rtl"?{right:l,center:n,left:o}:{left:o,center:n,right:l}}}function ee(i){return i!=="none"}const zl=500,bt={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"};class Hl extends y{_defaultContentTableProperties;_defaultLayoutTableProperties;_balloon;view=null;_viewWithContentTableDefaults=null;_viewWithLayoutTableDefaults=null;_undoStepBatch;_isReady;static get requires(){return[re]}static get pluginName(){return"TablePropertiesUI"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("table.tableProperties",{borderColors:he,backgroundColors:he})}init(){const e=this.editor;this._defaultContentTableProperties=to(e.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0}),this._defaultLayoutTableProperties=pe(),this._balloon=e.plugins.get(re),e.ui.componentFactory.add("tableProperties",()=>this._createTablePropertiesButton())}_createTablePropertiesButton(){const e=this.editor,t=e.t,o=new P(e.locale);o.set({label:t("Table properties"),icon:fo,tooltip:!0}),this.listenTo(o,"execute",()=>this._showView());const n=Object.values(bt).map(l=>e.commands.get(l));return o.bind("isEnabled").toMany(n,"isEnabled",(...l)=>l.some(s=>s)),o}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(e){const t=this.editor,o=t.config.get("table.tableProperties"),n=ae(o.borderColors),l=ce(t.locale,n),s=ae(o.backgroundColors),r=ce(t.locale,s),a=o.colorPicker!==!1,c=new Ol(t.locale,{borderColors:l,backgroundColors:r,defaultTableProperties:e,colorPickerConfig:a?o.colorPicker||{}:!1}),d=t.t;c.render(),this.listenTo(c,"submit",()=>{this._hideView()}),this.listenTo(c,"cancel",()=>{this._undoStepBatch.operations.length&&t.execute("undo",this._undoStepBatch),this._hideView()}),c.keystrokes.set("Esc",(g,m)=>{this._hideView(),m()}),_t({emitter:c,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const u=$t(d),h=Kt(d);return c.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle")),c.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:c.borderColorInput,commandName:"tableBorderColor",errorText:u,validator:ue})),c.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:c.borderWidthInput,commandName:"tableBorderWidth",errorText:h,validator:qt})),c.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:c.backgroundInput,commandName:"tableBackgroundColor",errorText:u,validator:ue})),c.on("change:width",this._getValidatedPropertyChangeCallback({viewField:c.widthInput,commandName:"tableWidth",errorText:h,validator:K})),c.on("change:height",this._getValidatedPropertyChangeCallback({viewField:c.heightInput,commandName:"tableHeight",errorText:h,validator:K})),c.on("change:alignment",this._getPropertyChangeCallback("tableAlignment")),c}_fillViewFormFromCommandValues(){const e=this.editor.commands,t=e.get("tableBorderStyle");Object.entries(bt).map(([o,n])=>{const l=o,s=this.view===this._viewWithContentTableDefaults?this._defaultContentTableProperties[l]||"":this._defaultLayoutTableProperties[l]||"";return[l,e.get(n).value||s]}).forEach(([o,n])=>{(o==="borderColor"||o==="borderWidth")&&t.value==="none"||this.view.set(o,n)}),this._isReady=!0}_showView(){const e=this.editor,t=de(e.editing.view.document.selection),o=t&&e.editing.mapper.toModelElement(t),n=!o||o.getAttribute("tableType")!=="layout";n&&!this._viewWithContentTableDefaults?this._viewWithContentTableDefaults=this._createPropertiesView(this._defaultContentTableProperties):!n&&!this._viewWithLayoutTableDefaults&&(this._viewWithLayoutTableDefaults=this._createPropertiesView(this._defaultLayoutTableProperties)),this.view=n?this._viewWithContentTableDefaults:this._viewWithLayoutTableDefaults,this.listenTo(e.ui,"update",()=>{this._updateView()}),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:Yt(e)}),this._undoStepBatch=e.model.createBatch(),this.view.focus()}_hideView(){const e=this.editor;this.stopListening(e.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const e=this.editor,t=e.editing.view.document;de(t.selection)?this._isViewVisible&&Zt(e,"table"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(e){return(t,o,n)=>{this._isReady&&this.editor.execute(e,{value:n,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(e){const{commandName:t,viewField:o,validator:n,errorText:l}=e,s=Vt(()=>{o.errorText=l},zl);return(r,a,c)=>{s.cancel(),this._isReady&&(n(c)?(this.editor.execute(t,{value:c,batch:this._undoStepBatch}),o.errorText=null):s())}}}class ui extends y{static get pluginName(){return"TableProperties"}static get isOfficialPlugin(){return!0}static get requires(){return[Nl,Hl]}}function Ul(i){i.document.registerPostFixer(e=>jl(e,i))}function jl(i,e){const t=e.document.differ.getChanges();let o=!1;for(const n of t){if(n.type!="insert")continue;const l=n.position.parent;if(l.is("element","table")||n.name=="table"){const s=n.name=="table"?n.position.nodeAfter:l,r=Array.from(s.getChildren()).filter(c=>c.is("element","caption")),a=r.shift();if(!a)continue;for(const c of r)i.move(i.createRangeIn(c),a,"end"),i.remove(c);a.nextSibling&&(i.move(i.createRangeOn(a),s,"end"),o=!0),o=!!r.length||o}}return o}function ft(i){return!!i&&i.is("element","table")}function Ee(i){for(const e of i.getChildren())if(e.is("element","caption"))return e;return null}function Gl(i){const e=W(i);return e?Ee(e):null}function $l(i){const e=i.parent;return i.name=="figcaption"&&e&&e.is("element","figure")&&e.hasClass("table")?{name:!0}:i.name=="caption"&&e&&e.is("element","table")?{name:!0}:null}class Kl extends v{refresh(){const e=this.editor,t=W(e.model.document.selection);this.isEnabled=!!t&&e.model.schema.checkChild(t,"caption"),this.isEnabled?this.value=!!Ee(t):this.value=!1}execute({focusCaptionOnShow:e=!1}={}){this.editor.model.change(t=>{this.value?this._hideTableCaption(t):this._showTableCaption(t,e)})}_showTableCaption(e,t){const o=this.editor.model,n=W(o.document.selection),r=this.editor.plugins.get("TableCaptionEditing")._getSavedCaption(n)||e.createElement("caption");o.insertContent(r,n,"end"),t&&e.setSelection(r,"in")}_hideTableCaption(e){const t=this.editor.model,o=W(t.document.selection),n=this.editor.plugins.get("TableCaptionEditing"),l=Ee(o);n._saveCaption(o,l),t.deleteContent(e.createSelection(l,"on"))}}class ql extends y{_savedCaptionsMap=new WeakMap;static get pluginName(){return"TableCaptionEditing"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model.schema,o=e.editing.view,n=e.t,l=e.config.get("table.tableCaption.useCaptionElement");t.isRegistered("caption")?t.extend("caption",{allowIn:"table"}):t.register("caption",{allowIn:"table",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleTableCaption",new Kl(this.editor)),l&&e.plugins.get("TableEditing").registerAdditionalSlot({filter:r=>r.is("element","caption"),positionOffset:"end"}),e.conversion.for("upcast").elementToElement({view:$l,model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(s,{writer:r})=>ft(s.parent)?r.createContainerElement(l?"caption":"figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(s,{writer:r})=>{if(!ft(s.parent))return null;const a=r.createEditableElement(l?"caption":"figcaption");return r.setCustomProperty("tableCaption",!0,a),a.placeholder=n("Enter table caption"),Lo({view:o,element:a,keepOnFocus:!0}),pt(a,r)}}),Ul(e.model)}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?Wo.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}}class Xl extends y{static get pluginName(){return"TableCaptionUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.editing.view,o=e.t;e.ui.componentFactory.add("toggleTableCaption",n=>{const l=e.commands.get("toggleTableCaption"),s=new P(n);return s.set({icon:go,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(l,"value","isEnabled"),s.bind("label").to(l,"value",r=>o(r?"Toggle caption off":"Toggle caption on")),this.listenTo(s,"execute",()=>{if(e.execute("toggleTableCaption",{focusCaptionOnShow:!0}),l.value){const r=Gl(e.model.document.selection),a=e.editing.mapper.toViewElement(r);if(!a)return;t.scrollToTheSelection(),t.change(c=>{c.addClass("table__caption_highlighted",a)})}e.editing.view.focus()}),s})}}class hi extends y{static get pluginName(){return"TableCaption"}static get isOfficialPlugin(){return!0}static get requires(){return[ql,Xl]}}export{Qe as InsertColumnCommand,Ye as InsertRowCommand,Zo as InsertTableCommand,Y as MergeCellCommand,Vn as MergeCellsCommand,sn as RemoveColumnCommand,nn as RemoveRowCommand,Ln as SelectColumnCommand,En as SelectRowCommand,dn as SetHeaderColumnCommand,cn as SetHeaderRowCommand,et as SplitCellCommand,ri as Table,Ll as TableAlignmentCommand,Il as TableBackgroundColorCommand,xl as TableBorderColorCommand,Vl as TableBorderStyleCommand,kl as TableBorderWidthCommand,hi as TableCaption,ql as TableCaptionEditing,Xl as TableCaptionUI,hl as TableCellBackgroundColorCommand,fl as TableCellBorderColorCommand,bl as TableCellBorderStyleCommand,pl as TableCellBorderWidthCommand,ul as TableCellHeightCommand,gl as TableCellHorizontalAlignmentCommand,dl as TableCellPaddingCommand,ci as TableCellProperties,Cl as TableCellPropertiesEditing,al as TableCellPropertiesUI,il as TableCellPropertiesView,E as TableCellPropertyCommand,ml as TableCellVerticalAlignmentCommand,cl as TableCellWidthCommand,oo as TableCellWidthEditing,Jn as TableClipboard,di as TableColumnResize,Rl as TableColumnResizeEditing,Z as TableEditing,El as TableHeightCommand,tl as TableKeyboard,ol as TableMouse,ui as TableProperties,Nl as TablePropertiesEditing,Hl as TablePropertiesUI,Ol as TablePropertiesView,H as TablePropertyCommand,B as TableSelection,ai as TableToolbar,qn as TableUI,A as TableUtils,w as TableWalker,Pl as TableWidthCommand,yl as TableWidthsCommand,Kl as ToggleTableCaptionCommand,rt as _InsertTableView,un as _TABLE_COLUMN_MIN_WIDTH_AS_PERCENTAGE,Se as _TABLE_COLUMN_MIN_WIDTH_IN_PIXELS,mn as _TABLE_COLUMN_RESIZE_DISTANCE_THRESHOLD,hn as _TABLE_COLUMN_WIDTH_PRECISION,he as _TABLE_DEFAULT_COLORS,nl as _TableColorInputView,Ut as _TableMouseEventsObserver,z as _addDefaultUnitToNumericValue,Ft as _adjustLastTableColumnIndex,Dt as _adjustLastTableRowIndex,pn as _clamp,ue as _colorTableFieldValidator,Ze as _convertParagraphInTableCell,M as _createEmptyTableCell,Cn as _createFilledArray,Pt as _cropTableToDimensions,Xe as _downcastTable,oe as _downcastTableAttribute,$ as _downcastTableAttributeToStyle,Je as _downcastTableCell,vl as _downcastTableResizedClass,qo as _downcastTableRow,le as _enableTableCellProperty,qe as _ensureParagraphInTableCell,ke as _fillTableOrCellToolbar,Qt as _getBalloonTableCellPositionData,Yt as _getBalloonTablePositionData,ze as _getBorderTableStyleLabels,gn as _getChangedResizedTables,k as _getDefaultTableValueAdjusted,Tn as _getDomTableCellOuterWidth,Re as _getElementWidthInPixels,Wt as _getHorizontallyOverlappingTableCells,me as _getLabeledTableColorInputCreator,$t as _getLocalizedTableColorErrorText,Kt as _getLocalizedTableLengthErrorText,pe as _getNormalizedDefaultTableBaseProperties,He as _getNormalizedDefaultTableCellProperties,to as _getNormalizedDefaultTableProperties,jt as _getSelectedTableWidget,W as _getSelectionAffectedTable,de as _getSelectionAffectedTableWidget,O as _getTableBorderBoxSingleValue,Ee as _getTableCaptionFromModelElement,Gl as _getTableCaptionFromModelSelection,fn as _getTableColumnEdgesIndexes,J as _getTableColumnElements,X as _getTableColumnGroupElement,bn as _getTableColumnMinWidthAsPercentage,_n as _getTableColumnsWidths,Xt as _getTableOrCellBorderStyleDefinitions,fe as _getTableWidgetAncestor,Mt as _getTableWidthInPixels,Et as _getVerticallyOverlappingTableCells,Ul as _injectTableCaptionPostFixer,zn as _injectTableCellParagraphPostFixer,Wn as _injectTableLayoutPostFixer,kt as _isSingleTableParagraphWithoutAttributes,ye as _isTableHeadingColumnCell,ft as _isTableModelElement,K as _lengthTableFieldValidator,qt as _lineWidthTableFieldValidator,$l as _matchTableCaptionViewElement,Me as _normalizeTableColumnWidths,Ae as _removeEmptyTableColumns,ve as _removeEmptyTableRows,Fe as _removeEmptyTableRowsColumns,Zt as _repositionTableContextualBalloon,Uo as _skipEmptyTableRow,Lt as _splitTableCellHorizontally,Bt as _splitTableCellVertically,q as _sumArray,$n as _tableCellRefreshHandler,Gn as _tableHeadingsRefreshHandler,S as _toPrecision,yn as _translateTableColspanAttribute,Nt as _trimTableCellIfNeeded,De as _upcastNormalizedTableStyleToAttribute,Ho as _upcastTable,_e as _upcastTableBorderStyles,Al as _upcastTableColgroupElement,zo as _upcastTableFigure,Ot as _updateTableColumnElements,_ as _updateTableNumericAttribute};