@ncino/web-components 4.2.1 → 4.3.0-preview.10

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 (228) hide show
  1. package/dist/_virtual/external3.js +1 -0
  2. package/dist/_virtual/index10.js +1 -1
  3. package/dist/_virtual/index11.js +1 -1
  4. package/dist/_virtual/index12.js +1 -0
  5. package/dist/_virtual/index13.js +1 -0
  6. package/dist/_virtual/index2.js +1 -1
  7. package/dist/_virtual/index3.js +1 -1
  8. package/dist/_virtual/index4.js +1 -1
  9. package/dist/_virtual/index5.js +1 -1
  10. package/dist/_virtual/index6.js +1 -1
  11. package/dist/_virtual/index7.js +1 -1
  12. package/dist/_virtual/index8.js +1 -1
  13. package/dist/_virtual/index9.js +1 -1
  14. package/dist/_virtual/index_react.js +1 -0
  15. package/dist/_virtual/index_react2.js +1 -0
  16. package/dist/_virtual/react.production.js +1 -0
  17. package/dist/assets/node_modules/.pnpm/{ckeditor5@45.1.0 → ckeditor5@45.2.1}/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
  18. package/dist/components/alert/alert.gator.figma.js +7 -0
  19. package/dist/components/avatar/gator/avatar.gator.figma.js +9 -0
  20. package/dist/components/banner/gator/banner.gator.figma.js +8 -0
  21. package/dist/components/banner/gator/banner.gator.js +6 -5
  22. package/dist/components/button/gator/button.gator.figma.js +12 -4
  23. package/dist/components/button-group/gator/button-group.gator.figma.js +7 -0
  24. package/dist/components/checkbox/checkbox.gator.js +9 -6
  25. package/dist/components/icon/gator/icon.gator.figma.js +7 -2
  26. package/dist/components/icon/gator/icons.gator.figma.js +1 -0
  27. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
  28. package/dist/components/input/gator/input-date/input-date.gator.js +1 -1
  29. package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +6 -3
  30. package/dist/components/input/gator/input-file/input-file.gator.js +7 -4
  31. package/dist/components/input/gator/input-phone/input-phone.gator.js +1 -1
  32. package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
  33. package/dist/components/input-rich-text/ckeditor-config.js +1 -1
  34. package/dist/components/input-rich-text/input-rich-text.slds.js +2 -2
  35. package/dist/components/menu/base/gator/menu.gator.js +1 -1
  36. package/dist/components/menu/menu-item/gator/menu-item.gator.js +2 -2
  37. package/dist/components/panel/gator/panel.storybook-test.js +1 -1
  38. package/dist/components/popover/gator/popover.gator.js +1 -1
  39. package/dist/components/table/gator/__tests__/test-table-data.js +1 -1
  40. package/dist/components/table/gator/table.gator.js +77 -32
  41. package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
  42. package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
  43. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@45.1.0 → @ckeditor_ckeditor5-alignment@45.2.1}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
  44. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@45.1.0 → @ckeditor_ckeditor5-autoformat@45.2.1}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
  45. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@45.1.0 → @ckeditor_ckeditor5-autosave@45.2.1}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
  46. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@45.1.0 → @ckeditor_ckeditor5-basic-styles@45.2.1}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
  47. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@45.1.0 → @ckeditor_ckeditor5-block-quote@45.2.1}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
  48. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@45.1.0 → @ckeditor_ckeditor5-clipboard@45.2.1}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1 -1
  49. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@45.1.0 → @ckeditor_ckeditor5-cloud-services@45.2.1}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
  50. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@45.1.0 → @ckeditor_ckeditor5-code-block@45.2.1}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
  51. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-core@45.1.0 → @ckeditor_ckeditor5-core@45.2.1}/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -1
  52. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@45.1.0 → @ckeditor_ckeditor5-editor-classic@45.2.1}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
  53. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@45.1.0 → @ckeditor_ckeditor5-engine@45.2.1}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +10 -10
  54. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@45.1.0 → @ckeditor_ckeditor5-enter@45.2.1}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
  55. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@45.1.0 → @ckeditor_ckeditor5-essentials@45.2.1}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
  56. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@45.1.0 → @ckeditor_ckeditor5-find-and-replace@45.2.1}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
  57. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@45.1.0 → @ckeditor_ckeditor5-font@45.2.1}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
  58. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@45.1.0 → @ckeditor_ckeditor5-heading@45.2.1}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
  59. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@45.1.0 → @ckeditor_ckeditor5-highlight@45.2.1}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
  60. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@45.1.0 → @ckeditor_ckeditor5-horizontal-line@45.2.1}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
  61. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@45.1.0 → @ckeditor_ckeditor5-html-embed@45.2.1}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
  62. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-support@45.1.0 → @ckeditor_ckeditor5-html-support@45.2.1}/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +1 -1
  63. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-image@45.1.0 → @ckeditor_ckeditor5-image@45.2.1}/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -1
  64. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-indent@45.1.0 → @ckeditor_ckeditor5-indent@45.2.1}/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -1
  65. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@45.1.0 → @ckeditor_ckeditor5-language@45.2.1}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
  66. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-link@45.1.0 → @ckeditor_ckeditor5-link@45.2.1}/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -1
  67. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-list@45.1.0 → @ckeditor_ckeditor5-list@45.2.1}/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -1
  68. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@45.1.0 → @ckeditor_ckeditor5-markdown-gfm@45.2.1}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
  69. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@45.1.0 → @ckeditor_ckeditor5-media-embed@45.2.1}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
  70. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@45.1.0 → @ckeditor_ckeditor5-mention@45.2.1}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
  71. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@45.1.0 → @ckeditor_ckeditor5-page-break@45.2.1}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
  72. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@45.1.0 → @ckeditor_ckeditor5-paragraph@45.2.1}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
  73. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.2.1/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +28 -0
  74. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@45.1.0 → @ckeditor_ckeditor5-remove-format@45.2.1}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
  75. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@45.1.0 → @ckeditor_ckeditor5-select-all@45.2.1}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
  76. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@45.1.0 → @ckeditor_ckeditor5-show-blocks@45.2.1}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
  77. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.2.1/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +4 -0
  78. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@45.1.0 → @ckeditor_ckeditor5-special-characters@45.2.1}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
  79. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@45.1.0 → @ckeditor_ckeditor5-style@45.2.1}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
  80. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-table@45.1.0 → @ckeditor_ckeditor5-table@45.2.1}/node_modules/@ckeditor/ckeditor5-table/dist/index.js +2 -2
  81. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +13 -0
  82. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-ui@45.1.0 → @ckeditor_ckeditor5-ui@45.2.1}/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -1
  83. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@45.1.0 → @ckeditor_ckeditor5-undo@45.2.1}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
  84. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@45.1.0 → @ckeditor_ckeditor5-upload@45.2.1}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
  85. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +112 -0
  86. package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-widget@45.1.0 → @ckeditor_ckeditor5-widget@45.2.1}/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -1
  87. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/client/external.js +1 -1
  88. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/common/updates.js +1 -1
  89. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/react/external.js +1 -0
  90. package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/react/index_react.js +1 -0
  91. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
  92. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -0
  93. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +1 -0
  94. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -0
  95. package/dist/node_modules/.pnpm/{@storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.5.3_ → @storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/instrumenter/dist/index.js +1 -1
  96. package/dist/node_modules/.pnpm/{@storybook_test@8.6.14_storybook@8.6.14_prettier@3.5.3_ → @storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/test/dist/index.js +1 -1
  97. package/dist/node_modules/.pnpm/{@vitest_expect@3.2.0 → @vitest_expect@3.2.4}/node_modules/@vitest/expect/dist/index.js +10 -10
  98. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +5 -0
  99. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +27 -0
  100. package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +1 -0
  101. package/dist/node_modules/.pnpm/{@vitest_utils@3.2.0 → @vitest_utils@3.2.4}/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +1 -1
  102. package/dist/node_modules/.pnpm/{@vitest_utils@3.2.0 → @vitest_utils@3.2.4}/node_modules/@vitest/utils/dist/diff.js +1 -1
  103. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +2 -0
  104. package/dist/node_modules/.pnpm/{@vitest_utils@3.2.0 → @vitest_utils@3.2.4}/node_modules/@vitest/utils/dist/helpers.js +1 -1
  105. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +1 -0
  106. package/dist/node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js +1 -1
  107. package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js +1 -1
  108. package/dist/node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js +1 -1
  109. package/dist/node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js +1 -1
  110. package/dist/node_modules/.pnpm/color-parse@1.4.2/node_modules/color-parse/index.js +1 -1
  111. package/dist/node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js +1 -1
  112. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +1 -0
  113. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.9/node_modules/libphonenumber-js/metadata.min.json.js +1 -0
  114. package/dist/node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/html.js +2 -0
  115. package/dist/node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/index.js +1 -0
  116. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js +9 -0
  117. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/index.js +1 -0
  118. package/dist/node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js +1 -1
  119. package/dist/node_modules/.pnpm/strip-literal@3.0.0/node_modules/strip-literal/dist/index.js +1 -0
  120. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/index.js +1 -1
  121. package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/index.js +1 -1
  122. package/dist/node_modules/.pnpm/{vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.2.0_@vitest_ui@_380928fb48d45118a64498d466bac5bf → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
  123. package/dist/node_modules/.pnpm/{vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.2.0_@vitest_ui@_380928fb48d45118a64498d466bac5bf → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
  124. package/dist/packages/web-components/src/components/banner/gator/banner.gator.scss.js +1 -1
  125. package/dist/packages/web-components/src/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.scss.js +1 -1
  126. package/dist/packages/web-components/src/components/input/gator/input-file/input-file.gator.scss.js +1 -1
  127. package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -1
  128. package/dist/types/components/alert/alert.gator.figma.d.ts +1 -0
  129. package/dist/types/components/avatar/gator/avatar.gator.figma.d.ts +1 -0
  130. package/dist/types/components/banner/gator/banner.gator.d.ts +5 -0
  131. package/dist/types/components/banner/gator/banner.gator.figma.d.ts +1 -0
  132. package/dist/types/components/button-group/gator/button-group.gator.figma.d.ts +1 -0
  133. package/dist/types/components/checkbox/checkbox.gator.d.ts +4 -0
  134. package/dist/types/components/icon/gator/icons.gator.figma.d.ts +1 -0
  135. package/dist/types/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.d.ts +4 -0
  136. package/dist/types/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.test.d.ts +0 -0
  137. package/dist/types/components/input/gator/input-file/input-file.gator.d.ts +4 -0
  138. package/dist/types/components/menu/menu-item/gator/menu-item.gator.d.ts +1 -0
  139. package/dist/types/components/table/gator/__tests__/test-table-data.d.ts +31 -0
  140. package/dist/types/components/table/gator/table.gator.d.ts +5 -0
  141. package/dist/types/components/table/table.d.ts +2 -0
  142. package/dist/utils/vitest-a11y-utils.js +1 -1
  143. package/package.json +21 -20
  144. package/web-types.json +26 -4
  145. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.1.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +0 -28
  146. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.1.0/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +0 -12
  147. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +0 -13
  148. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +0 -104
  149. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.1/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
  150. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -1
  151. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -1
  152. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -1
  153. package/dist/node_modules/.pnpm/@vitest_runner@3.2.0/node_modules/@vitest/runner/dist/chunk-hooks.js +0 -5
  154. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.0/node_modules/@vitest/snapshot/dist/index.js +0 -27
  155. package/dist/node_modules/.pnpm/@vitest_spy@3.2.0/node_modules/@vitest/spy/dist/index.js +0 -1
  156. package/dist/node_modules/.pnpm/@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/error.js +0 -2
  157. package/dist/node_modules/.pnpm/@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/index.js +0 -1
  158. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.8/node_modules/libphonenumber-js/metadata.min.json.js +0 -1
  159. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/html.js +0 -2
  160. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/index.js +0 -1
  161. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@45.1.0 → @ckeditor_ckeditor5-icons@45.2.1}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +0 -0
  162. /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@45.1.0 → @ckeditor_ckeditor5-watchdog@45.2.1}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
  163. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/channels/index.js +0 -0
  164. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/client-logger/index.js +0 -0
  165. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/core-events/index.js +0 -0
  166. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/csf/index.js +0 -0
  167. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/preview-api/index.js +0 -0
  168. /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/preview-errors.js +0 -0
  169. /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.0_msw@2.7.3_@types_node@22.15.29_typescript@5.8.3__playwright@1.52._b8e25df0066052f4b376435335cc964b → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.7_typescript@5.8.3__playwright@1.53.1__894c207534f0ba223b8299d9f5ff1049}/node_modules/@vitest/browser/context.js +0 -0
  170. /package/dist/node_modules/.pnpm/{@vitest_pretty-format@3.2.0 → @vitest_pretty-format@3.2.4}/node_modules/@vitest/pretty-format/dist/index.js +0 -0
  171. /package/dist/node_modules/.pnpm/{@vitest_utils@3.2.0 → @vitest_utils@3.2.4}/node_modules/@vitest/utils/dist/source-map.js +0 -0
  172. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/ParseError.js +0 -0
  173. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/PhoneNumber.js +0 -0
  174. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/constants.js +0 -0
  175. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/format.js +0 -0
  176. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -0
  177. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -0
  178. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -0
  179. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -0
  180. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -0
  181. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -0
  182. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -0
  183. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -0
  184. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -0
  185. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -0
  186. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -0
  187. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -0
  188. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -0
  189. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +0 -0
  190. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -0
  191. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -0
  192. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -0
  193. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -0
  194. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -0
  195. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -0
  196. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -0
  197. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -0
  198. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/isPossible.js +0 -0
  199. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/isValid.js +0 -0
  200. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/metadata.js +0 -0
  201. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -0
  202. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/parse.js +0 -0
  203. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -0
  204. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -0
  205. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -0
  206. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -0
  207. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -0
  208. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -0
  209. /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -0
  210. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/arguments.js +0 -0
  211. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/array.js +0 -0
  212. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/bigint.js +0 -0
  213. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/class.js +0 -0
  214. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/date.js +0 -0
  215. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/error.js +0 -0
  216. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/function.js +0 -0
  217. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/helpers.js +0 -0
  218. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/map.js +0 -0
  219. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/number.js +0 -0
  220. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/object.js +0 -0
  221. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/promise.js +0 -0
  222. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/regexp.js +0 -0
  223. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/set.js +0 -0
  224. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/string.js +0 -0
  225. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/symbol.js +0 -0
  226. /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/typedarray.js +0 -0
  227. /package/dist/node_modules/.pnpm/{vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.2.0_@vitest_ui@_380928fb48d45118a64498d466bac5bf → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
  228. /package/dist/node_modules/.pnpm/{vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.2.0_@vitest_ui@_380928fb48d45118a64498d466bac5bf → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
@@ -1,104 +0,0 @@
1
- var Gt=Object.defineProperty;var $t=(t,n,e)=>n in t?Gt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var f=(t,n,e)=>$t(t,typeof n!="symbol"?n+"":n,e);import{isObject as Yt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js";import{isString as ot}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isString.js";import{isFunction as st}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isFunction.js";import{isElement as It}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isElement.js";import{isPlainObject as k}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js";import{cloneDeepWith as qt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{merge as zt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/merge.js";/**
2
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- *//**
5
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
6
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
7
- */let G;try{G={window,document}}catch{/* istanbul ignore next -- @preserve */G={window:{},document:{}}}var T=G;function Xt(){try{return navigator.userAgent.toLowerCase()}catch{return""}}const A=Xt(),M={isMac:Lt(A),isWindows:Jt(A),isGecko:Qt(A),isSafari:Zt(A),isiOS:te(A),isAndroid:ee(A),isBlink:ne(A),get isMediaForcedColors(){return ie()}};function Lt(t){return t.indexOf("macintosh")>-1}function Jt(t){return t.indexOf("windows")>-1}function Qt(t){return!!t.match(/gecko\/\d+/)}function Zt(t){return t.indexOf(" applewebkit/")>-1&&t.indexOf("chrome")===-1}function te(t){return!!t.match(/iphone|ipad/i)||Lt(t)&&navigator.maxTouchPoints>0}function ee(t){return t.indexOf("android")>-1}function ne(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}function ie(){return T.window.matchMedia?T.window.matchMedia("(forced-colors: active)").matches:!1}/**
8
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
9
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
10
- */function oe(t,n,e,i){e=e||function(a,c){return a===c};const o=Array.isArray(t)?t:Array.prototype.slice.call(t),s=Array.isArray(n)?n:Array.prototype.slice.call(n),r=se(o,s,e);return i?ce(r,s.length):re(s,r)}function se(t,n,e){const i=rt(t,n,e);if(i===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const o=ct(t,i),s=ct(n,i),r=rt(o,s,e),l=t.length-r,a=n.length-r;return{firstIndex:i,lastIndexOld:l,lastIndexNew:a}}function rt(t,n,e){for(let i=0;i<Math.max(t.length,n.length);i++)if(t[i]===void 0||n[i]===void 0||!e(t[i],n[i]))return i;return-1}function ct(t,n){return t.slice(n).reverse()}function re(t,n){const e=[],{firstIndex:i,lastIndexOld:o,lastIndexNew:s}=n;return s-i>0&&e.push({index:i,type:"insert",values:t.slice(i,s)}),o-i>0&&e.push({index:i+(s-i),type:"delete",howMany:o-i}),e}function ce(t,n){const{firstIndex:e,lastIndexOld:i,lastIndexNew:o}=t;if(e===-1)return Array(n).fill("equal");let s=[];return e>0&&(s=s.concat(Array(e).fill("equal"))),o-e>0&&(s=s.concat(Array(o-e).fill("insert"))),i-e>0&&(s=s.concat(Array(i-e).fill("delete"))),o<n&&(s=s.concat(Array(n-o).fill("equal"))),s}function At(t,n,e){e=e||function(b,x){return b===x};const i=t.length,o=n.length;if(i>200||o>200||i+o>300)return At.fastDiff(t,n,e,!0);let s,r;if(o<i){const b=t;t=n,n=b,s="delete",r="insert"}else s="insert",r="delete";const l=t.length,a=n.length,c=a-l,u={},h={};function d(b){const x=(h[b-1]!==void 0?h[b-1]:-1)+1,C=h[b+1]!==void 0?h[b+1]:-1,it=x>C?-1:1;u[b+it]&&(u[b]=u[b+it].slice(0)),u[b]||(u[b]=[]),u[b].push(x>C?s:r);let R=Math.max(x,C),j=R-b;for(;j<l&&R<a&&e(t[j],n[R]);)j++,R++,u[b].push("equal");return R}let _=0,m;do{for(m=-_;m<c;m++)h[m]=d(m);for(m=c+_;m>c;m--)h[m]=d(m);h[c]=d(c),_++}while(h[c]!==a);return u[c].slice(1)}At.fastDiff=oe;/**
11
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
12
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
13
- */function lt(){return function t(){t.called=!0}}class ${constructor(n,e){f(this,"source");f(this,"name");f(this,"path");f(this,"stop");f(this,"off");f(this,"return");this.source=n,this.name=e,this.path=[],this.stop=lt(),this.off=lt()}}/**
14
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
15
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
16
- */const E=new Array(256).fill("").map((t,n)=>("0"+n.toString(16)).slice(-2));function J(){const[t,n,e,i]=crypto.getRandomValues(new Uint32Array(4));return"e"+E[t>>0&255]+E[t>>8&255]+E[t>>16&255]+E[t>>24&255]+E[n>>0&255]+E[n>>8&255]+E[n>>16&255]+E[n>>24&255]+E[e>>0&255]+E[e>>8&255]+E[e>>16&255]+E[e>>24&255]+E[i>>0&255]+E[i>>8&255]+E[i>>16&255]+E[i>>24&255]}/**
17
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
18
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
19
- */const Y={get(t="normal"){return typeof t!="number"?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function le(t,n){const e=Y.get(n.priority);let i=0,o=t.length;for(;i<o;){const s=i+o>>1;Y.get(t[s].priority)<e?o=s:i=s+1}t.splice(i,0,n)}/**
20
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
21
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
22
- */const ae="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class p extends Error{constructor(e,i,o){super(ue(e,o));f(this,"context");f(this,"data");this.name="CKEditorError",this.context=i,this.data=o}is(e){return e==="CKEditorError"}static rethrowUnexpectedError(e,i){if(e.is&&e.is("CKEditorError"))throw e;const o=new p(e.message,i);throw o.stack=e.stack,o}}function dn(t,n){console.warn(...Ct(t,n))}function pn(t,n){console.error(...Ct(t,n))}function vt(t){return`
23
- Read more: ${ae}#error-${t}`}function ue(t,n){const e=new WeakSet,o=n?` ${JSON.stringify(n,(r,l)=>{if(typeof l=="object"&&l!==null){if(e.has(l))return`[object ${l.constructor.name}]`;e.add(l)}return l})}`:"",s=vt(t);return t+o+s}function Ct(t,n){const e=vt(t);return n?[t,n,e]:[t,e]}const fe="45.1.0",gn=new Date(2025,4,14);/* istanbul ignore next -- @preserve */if(globalThis.CKEDITOR_VERSION)throw new p("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=fe;const F=Symbol("listeningTo"),q=Symbol("emitterId"),I=Symbol("delegations"),Ft=L(Object);function L(t){if(!t)return Ft;class n extends t{on(i,o,s){this.listenTo(this,i,o,s)}once(i,o,s){let r=!1;const l=(a,...c)=>{r||(r=!0,a.off(),o.call(this,a,...c))};this.listenTo(this,i,l,s)}off(i,o){this.stopListening(this,i,o)}listenTo(i,o,s,r={}){let l,a;this[F]||(this[F]={});const c=this[F];W(i)||Mt(i);const u=W(i);(l=c[u])||(l=c[u]={emitter:i,callbacks:{}}),(a=l.callbacks[o])||(a=l.callbacks[o]=[]),a.push(s),me(this,i,o,s,r)}stopListening(i,o,s){const r=this[F];let l=i&&W(i);const a=r&&l?r[l]:void 0,c=a&&o?a.callbacks[o]:void 0;if(!(!r||i&&!a||o&&!c))if(s)K(this,i,o,s),c.indexOf(s)!==-1&&(c.length===1?delete a.callbacks[o]:K(this,i,o,s));else if(c){for(;s=c.pop();)K(this,i,o,s);delete a.callbacks[o]}else if(a){for(o in a.callbacks)this.stopListening(i,o);delete r[l]}else{for(l in r)this.stopListening(r[l].emitter);delete this[F]}}fire(i,...o){try{const s=i instanceof $?i:new $(this,i),r=s.name;let l=ge(this,r);if(s.path.push(this),l){l=l.slice();for(let c=0;c<l.length;c++){const u=l[c].callback;if(u.call(this,s,...o),s.off.called&&(delete s.off.called,this._removeEventListener(r,u)),s.stop.called)break}}const a=this[I];if(a){const c=a.get(r),u=a.get("*");c&&at(c,s,o),u&&at(u,s,o)}return s.return}catch(s){/* istanbul ignore next -- @preserve */p.rethrowUnexpectedError(s,this)}}delegate(...i){return{to:(o,s)=>{this[I]||(this[I]=new Map),i.forEach(r=>{const l=this[I].get(r);l?l.set(o,s):this[I].set(r,new Map([[o,s]]))})}}}stopDelegating(i,o){if(this[I])if(!i)this[I].clear();else if(!o)this[I].delete(i);else{const s=this[I].get(i);s&&s.delete(o)}}_addEventListener(i,o,s){pe(this,i);const r=z(this,i),l=Y.get(s.priority),a={callback:o,priority:l};for(const c of r)le(c,a)}_removeEventListener(i,o){const s=z(this,i);for(const r of s)for(let l=0;l<r.length;l++)r[l].callback==o&&(r.splice(l,1),l--)}}return n}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(t=>{L[t]=Ft.prototype[t]});function he(t,n){const e=t[F];return e&&e[n]?e[n].emitter:null}function Mt(t,n){t[q]||(t[q]=n||J())}function W(t){return t[q]}function Rt(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function de(){return{callbacks:[],childEvents:[]}}function pe(t,n){const e=Rt(t);if(e[n])return;let i=n,o=null;const s=[];for(;i!==""&&!e[i];)e[i]=de(),s.push(e[i]),o&&e[i].childEvents.push(o),o=i,i=i.substr(0,i.lastIndexOf(":"));if(i!==""){for(const r of s)r.callbacks=e[i].callbacks.slice();e[i].childEvents.push(o)}}function z(t,n){const e=Rt(t)[n];if(!e)return[];let i=[e.callbacks];for(let o=0;o<e.childEvents.length;o++){const s=z(t,e.childEvents[o]);i=i.concat(s)}return i}function ge(t,n){if(!t._events)return null;let e=n;do{const i=t._events[e];if(i&&i.callbacks&&i.callbacks.length)return i.callbacks;const o=e.lastIndexOf(":");e=o>-1?e.substring(0,o):""}while(e);return null}function at(t,n,e){for(let[i,o]of t){o?typeof o=="function"&&(o=o(n.name)):o=n.name;const s=new $(n.source,o);s.path=[...n.path],i.fire(s,...e)}}function me(t,n,e,i,o){n._addEventListener?n._addEventListener(e,i,o):t._addEventListener.call(n,e,i,o)}function K(t,n,e,i){n._removeEventListener?n._removeEventListener(e,i):t._removeEventListener.call(n,e,i)}const S=Symbol("observableProperties"),N=Symbol("boundObservables"),P=Symbol("boundProperties"),v=Symbol("decoratedMethods"),ut=Symbol("decoratedOriginal"),kt=Q(L());function Q(t){var e,i,o,s,r;if(!t)return kt;class n extends(r=t,s=S,o=v,i=P,e=N,r){constructor(){super(...arguments);f(this,s);f(this,o);f(this,i);f(this,e)}set(c,u){if(Yt(c)){Object.keys(c).forEach(d=>{this.set(d,c[d])},this);return}H(this);const h=this[S];if(c in this&&!h.has(c))throw new p("observable-set-cannot-override",this);Object.defineProperty(this,c,{enumerable:!0,configurable:!0,get(){return h.get(c)},set(d){const _=h.get(c);let m=this.fire(`set:${c}`,c,d,_);m===void 0&&(m=d),(_!==m||!h.has(c))&&(h.set(c,m),this.fire(`change:${c}`,c,m,_))}}),this[c]=u}bind(...c){if(!c.length||!ft(c))throw new p("observable-bind-wrong-properties",this);if(new Set(c).size!==c.length)throw new p("observable-bind-duplicate-properties",this);H(this);const u=this[P];c.forEach(d=>{if(u.has(d))throw new p("observable-bind-rebind",this)});const h=new Map;return c.forEach(d=>{const _={property:d,to:[]};u.set(d,_),h.set(d,_)}),{to:be,toMany:_e,_observable:this,_bindProperties:c,_to:[],_bindings:h}}unbind(...c){if(!this[S])return;const u=this[P],h=this[N];if(c.length){if(!ft(c))throw new p("observable-unbind-wrong-properties",this);c.forEach(d=>{const _=u.get(d);_&&(_.to.forEach(([m,b])=>{const x=h.get(m),C=x[b];C.delete(_),C.size||delete x[b],Object.keys(x).length||(h.delete(m),this.stopListening(m,"change"))}),u.delete(d))})}else h.forEach((d,_)=>{this.stopListening(_,"change")}),h.clear(),u.clear()}decorate(c){H(this);const u=this[c];if(!u)throw new p("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:c});this.on(c,(h,d)=>{h.return=u.apply(this,d)}),this[c]=function(...h){return this.fire(c,h)},this[c][ut]=u,this[v]||(this[v]=[]),this[v].push(c)}stopListening(c,u,h){if(!c&&this[v]){for(const d of this[v])this[d]=this[d][ut];delete this[v]}super.stopListening(c,u,h)}}return n}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(t=>{Q[t]=kt.prototype[t]});function H(t){t[S]||(Object.defineProperty(t,S,{value:new Map}),Object.defineProperty(t,N,{value:new Map}),Object.defineProperty(t,P,{value:new Map}))}function be(...t){const n=ye(...t),e=Array.from(this._bindings.keys()),i=e.length;if(!n.callback&&n.to.length>1)throw new p("observable-bind-to-no-callback",this);if(i>1&&n.callback)throw new p("observable-bind-to-extra-callback",this);n.to.forEach(o=>{if(o.properties.length&&o.properties.length!==i)throw new p("observable-bind-to-properties-length",this);o.properties.length||(o.properties=this._bindProperties)}),this._to=n.to,n.callback&&(this._bindings.get(e[0]).callback=n.callback),xe(this._observable,this._to),Te(this),this._bindProperties.forEach(o=>{St(this._observable,o)})}function _e(t,n,e){if(this._bindings.size>1)throw new p("observable-bind-to-many-not-one-binding",this);this.to(...we(t,n),e)}function we(t,n){const e=t.map(i=>[i,n]);return Array.prototype.concat.apply([],e)}function ft(t){return t.every(n=>typeof n=="string")}function ye(...t){if(!t.length)throw new p("observable-bind-to-parse-error",null);const n={to:[]};let e;return typeof t[t.length-1]=="function"&&(n.callback=t.pop()),t.forEach(i=>{if(typeof i=="string")e.properties.push(i);else if(typeof i=="object")e={observable:i,properties:[]},n.to.push(e);else throw new p("observable-bind-to-parse-error",null)}),n}function Ee(t,n,e,i){const o=t[N],s=o.get(e),r=s||{};r[i]||(r[i]=new Set),r[i].add(n),s||o.set(e,r)}function Te(t){let n;t._bindings.forEach((e,i)=>{t._to.forEach(o=>{n=o.properties[e.callback?0:t._bindProperties.indexOf(i)],e.to.push([o.observable,n]),Ee(t._observable,e,o.observable,n)})})}function St(t,n){const i=t[P].get(n);let o;i.callback?o=i.callback.apply(t,i.to.map(s=>s[0][s[1]])):(o=i.to[0],o=o[0][o[1]]),Object.prototype.hasOwnProperty.call(t,n)?t[n]=o:t.set(n,o)}function xe(t,n){n.forEach(e=>{const i=t[N];let o;i.get(e.observable)||t.listenTo(e.observable,"change",(s,r)=>{o=i.get(e.observable)[r],o&&o.forEach(l=>{St(t,l.property)})})})}/**
24
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
25
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
26
- */class mn{constructor(){f(this,"_replacedElements");this._replacedElements=[]}replace(n,e){this._replacedElements.push({element:n,newElement:e}),n.style.display="none",e&&n.parentNode.insertBefore(e,n.nextSibling)}restore(){this._replacedElements.forEach(({element:n,newElement:e})=>{n.style.display="",e&&e.remove()}),this._replacedElements=[]}}/**
27
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
28
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
29
- */function bn(t){let n=0;for(const e of t)n++;return n}/**
30
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
31
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
32
- */function _n(t,n){const e=Math.min(t.length,n.length);for(let i=0;i<e;i++)if(t[i]!=n[i])return i;return t.length==n.length?"same":t.length<n.length?"prefix":"extension"}/**
33
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
34
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
35
- */function Z(t){return!!(t&&t[Symbol.iterator])}function wn(t,n,e={},i=[]){const o=e&&e.xmlns,s=o?t.createElementNS(o,n):t.createElement(n);for(const r in e)s.setAttribute(r,e[r]);(ot(i)||!Z(i))&&(i=[i]);for(let r of i)ot(r)&&(r=t.createTextNode(r)),s.appendChild(r);return s}class yn{constructor(n,e){f(this,"_config");this._config=Object.create(null),e&&this.define(ht(e)),n&&this._setObjectToTarget(this._config,n)}set(n,e){this._setToTarget(this._config,n,e)}define(n,e){this._setToTarget(this._config,n,e,!0)}get(n){return this._getFromSource(this._config,n)}*names(){for(const n of Object.keys(this._config))yield n}_setToTarget(n,e,i,o=!1){if(k(e)){this._setObjectToTarget(n,e,o);return}const s=e.split(".");e=s.pop();for(const r of s)k(n[r])||(n[r]=Object.create(null)),n=n[r];if(k(i)){k(n[e])||(n[e]=Object.create(null)),n=n[e],this._setObjectToTarget(n,i,o);return}o&&typeof n[e]<"u"||(n[e]=i)}_getFromSource(n,e){const i=e.split(".");e=i.pop();for(const o of i){if(!k(n[o])){n=null;break}n=n[o]}return n?ht(n[e]):void 0}_setObjectToTarget(n,e,i){Object.keys(e).forEach(o=>{this._setToTarget(n,o,e[o],i)})}}function ht(t){return qt(t,Ie)}function Ie(t){return It(t)||typeof t=="function"?t:void 0}/**
36
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
37
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
38
- */function dt(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}/**
39
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
40
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
41
- */function D(t){const n=Object.prototype.toString.apply(t);return n=="[object Window]"||n=="[object global]"}const Pt=V(L());function V(t){if(!t)return Pt;class n extends t{listenTo(i,o,s,r={}){if(dt(i)||D(i)||i instanceof T.window.EventTarget){const l={capture:!!r.useCapture,passive:!!r.usePassive},a=this._getProxyEmitter(i,l)||new Le(i,l);this.listenTo(a,o,s,r)}else super.listenTo(i,o,s,r)}stopListening(i,o,s){if(dt(i)||D(i)||i instanceof T.window.EventTarget){const r=this._getAllProxyEmitters(i);for(const l of r)this.stopListening(l,o,s)}else super.stopListening(i,o,s)}_getProxyEmitter(i,o){return he(this,Nt(i,o))}_getAllProxyEmitters(i){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(o=>this._getProxyEmitter(i,o)).filter(o=>!!o)}}return n}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(t=>{V[t]=Pt.prototype[t]});class Le extends L(){constructor(e,i){super();f(this,"_domNode");f(this,"_options");f(this,"_domListeners");Mt(this,Nt(e,i)),this._domNode=e,this._options=i}attach(e){if(this._domListeners&&this._domListeners[e])return;const i=this._createDomListener(e);this._domNode.addEventListener(e,i,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=i}detach(e){let i;this._domListeners[e]&&(!(i=this._events[e])||!i.callbacks.length)&&this._domListeners[e].removeListener()}_addEventListener(e,i,o){this.attach(e),L().prototype._addEventListener.call(this,e,i,o)}_removeEventListener(e,i){L().prototype._removeEventListener.call(this,e,i),this.detach(e)}_createDomListener(e){const i=o=>{this.fire(e,o)};return i.removeListener=()=>{this._domNode.removeEventListener(e,i,this._options),delete this._domListeners[e]},i}}function Ae(t){return t["data-ck-expando"]||(t["data-ck-expando"]=J())}function Nt(t,n){let e=Ae(t);for(const i of Object.keys(n).sort())n[i]&&(e+="-"+i);return e}/**
42
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
43
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
44
- */function En(t){const n=[];let e=t;for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)n.unshift(e),e=e.parentNode;return n}/**
45
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
46
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
47
- */function Tn(t){return t instanceof HTMLTextAreaElement?t.value:t.innerHTML}/**
48
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
49
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
50
- */function Bt(t){const n=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(n.borderTopWidth,10),right:parseInt(n.borderRightWidth,10),bottom:parseInt(n.borderBottomWidth,10),left:parseInt(n.borderLeftWidth,10)}}/**
51
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
52
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
53
- */function xn(t){if(!t.target)return null;const n=t.target.ownerDocument,e=t.clientX,i=t.clientY;let o=null;return n.caretRangeFromPoint&&n.caretRangeFromPoint(e,i)?o=n.caretRangeFromPoint(e,i):t.rangeParent&&(o=n.createRange(),o.setStart(t.rangeParent,t.rangeOffset),o.collapse(!0)),o}/**
54
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
55
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
56
- */function tt(t){return Object.prototype.toString.call(t)=="[object Text]"}/**
57
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
58
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
59
- */function et(t){return Object.prototype.toString.apply(t)=="[object Range]"}function Dt(t){return!t||!t.parentNode||t.offsetParent===T.document.body?null:t.offsetParent}const Ot=["top","right","bottom","left","width","height"];class y{constructor(n){f(this,"top");f(this,"right");f(this,"bottom");f(this,"left");f(this,"width");f(this,"height");f(this,"_source");const e=et(n);if(Object.defineProperty(this,"_source",{value:n._source||n,writable:!0,enumerable:!1}),X(n)||e)if(e){const i=y.getDomRangeRects(n);B(this,y.getBoundingRect(i))}else B(this,n.getBoundingClientRect());else if(D(n)){const{innerWidth:i,innerHeight:o}=n;B(this,{top:0,right:i,bottom:o,left:0,width:i,height:o})}else B(this,n)}clone(){return new y(this)}moveTo(n,e){return this.top=e,this.right=n+this.width,this.bottom=e+this.height,this.left=n,this}moveBy(n,e){return this.top+=e,this.right+=n,this.left+=n,this.bottom+=e,this}getIntersection(n){const e={top:Math.max(this.top,n.top),right:Math.min(this.right,n.right),bottom:Math.min(this.bottom,n.bottom),left:Math.max(this.left,n.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const i=new y(e);return i._source=this._source,i}}getIntersectionArea(n){const e=this.getIntersection(n);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const n=this._source;let e=this.clone();if(pt(n))return e;let i=n,o=n.parentNode||n.commonAncestorContainer,s;for(;o&&!pt(o);){const r=ve(o)==="visible";i instanceof HTMLElement&&gt(i)==="absolute"&&(s=i);const l=gt(o);if(r||s&&(l==="relative"&&r||l!=="relative")){i=o,o=o.parentNode;continue}const a=new y(o),c=e.getIntersection(a);if(c)c.getArea()<e.getArea()&&(e=c);else return null;i=o,o=o.parentNode}return e}isEqual(n){for(const e of Ot)if(this[e]!==n[e])return!1;return!0}contains(n){const e=this.getIntersection(n);return!!(e&&e.isEqual(n))}toAbsoluteRect(){const{scrollX:n,scrollY:e}=T.window,i=this.clone().moveBy(n,e);if(X(i._source)){const o=Dt(i._source);o&&Ce(i,o)}return i}excludeScrollbarsAndBorders(){const n=this._source;let e,i,o;if(D(n))e=n.innerWidth-n.document.documentElement.clientWidth,i=n.innerHeight-n.document.documentElement.clientHeight,o=n.getComputedStyle(n.document.documentElement).direction;else{const s=Bt(n);e=n.offsetWidth-n.clientWidth-s.left-s.right,i=n.offsetHeight-n.clientHeight-s.top-s.bottom,o=n.ownerDocument.defaultView.getComputedStyle(n).direction,this.left+=s.left,this.top+=s.top,this.right-=s.right,this.bottom-=s.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,o==="ltr"?this.right-=e:this.left+=e,this.height-=i,this.bottom-=i,this}static getDomRangeRects(n){const e=[],i=Array.from(n.getClientRects());if(i.length)for(const o of i)e.push(new y(o));else{let o=n.startContainer;tt(o)&&(o=o.parentNode);const s=new y(o.getBoundingClientRect());s.right=s.left,s.width=0,e.push(s)}return e}static getBoundingRect(n){const e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let i=0;for(const o of n)i++,e.left=Math.min(e.left,o.left),e.top=Math.min(e.top,o.top),e.right=Math.max(e.right,o.right),e.bottom=Math.max(e.bottom,o.bottom);return i==0?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new y(e))}}function B(t,n){for(const e of Ot)t[e]=n[e]}function pt(t){return X(t)?t===t.ownerDocument.body:!1}function X(t){return t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.getBoundingClientRect=="function"}function gt(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).position:"static"}function ve(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).overflow:"visible"}function Ce(t,n){const e=new y(n),i=Bt(n);let o=0,s=0;o-=e.left,s-=e.top,o+=n.scrollLeft,s+=n.scrollTop,o-=i.left,s-=i.top,t.moveBy(o,s)}const g=class g{constructor(n,e){f(this,"_element");f(this,"_callback");g._observerInstance||g._createObserver(),this._element=n,this._callback=e,g._addElementCallback(n,e),g._observerInstance.observe(n)}get element(){return this._element}destroy(){g._deleteElementCallback(this._element,this._callback)}static _addElementCallback(n,e){g._elementCallbacks||(g._elementCallbacks=new Map);let i=g._elementCallbacks.get(n);i||(i=new Set,g._elementCallbacks.set(n,i)),i.add(e)}static _deleteElementCallback(n,e){const i=g._getElementCallbacks(n);i&&(i.delete(e),i.size||(g._elementCallbacks.delete(n),g._observerInstance.unobserve(n))),g._elementCallbacks&&!g._elementCallbacks.size&&(g._observerInstance=null,g._elementCallbacks=null)}static _getElementCallbacks(n){return g._elementCallbacks?g._elementCallbacks.get(n):null}static _createObserver(){g._observerInstance=new T.window.ResizeObserver(n=>{for(const e of n){const i=g._getElementCallbacks(e.target);if(i)for(const o of i)o(e)}})}};f(g,"_observerInstance",null),f(g,"_elementCallbacks",null);let mt=g;/**
60
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
61
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
62
- */function In(t,n){t instanceof HTMLTextAreaElement&&(t.value=n),t.innerHTML=n}/**
63
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
64
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
65
- */function Ln(t){return n=>n+t}/**
66
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
67
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
68
- */function An(t){let n=0;for(;t.previousSibling;)t=t.previousSibling,n++;return n}/**
69
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
70
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
71
- */function vn(t,n,e){t.insertBefore(e,t.childNodes[n]||null)}/**
72
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
73
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
74
- */function Cn(t){return t&&t.nodeType===Node.COMMENT_NODE}function Fn(t){try{T.document.createAttribute(t)}catch{return!1}return!0}function Fe(t){return t?tt(t)?Fe(t.parentElement):t.getClientRects?!!t.getClientRects().length:!1:!1}function Mn({element:t,target:n,positions:e,limiter:i,fitInViewport:o,viewportOffsetConfig:s}){st(n)&&(n=n()),st(i)&&(i=i());const r=Dt(t),l=Me(s),a=new y(t),c=bt(n,l);let u;if(!c||!l.getIntersection(c))return null;const h={targetRect:c,elementRect:a,positionedElementAncestor:r,viewportRect:l};if(!i&&!o)u=new Vt(e[0],h);else{if(i){const d=bt(i,l);d&&(h.limiterRect=d)}u=Re(e,h)}return u}function bt(t,n){const e=new y(t).getVisible();return e?e.getIntersection(n):null}function Me(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);const n=new y(T.window);return n.top+=t.top,n.height-=t.top,n.bottom-=t.bottom,n.height-=t.bottom,n}function Re(t,n){const{elementRect:e}=n,i=e.getArea(),o=t.map(l=>new Vt(l,n)).filter(l=>!!l.name);let s=0,r=null;for(const l of o){const{limiterIntersectionArea:a,viewportIntersectionArea:c}=l;if(a===i)return l;const u=c**2+a**2;u>s&&(s=u,r=l)}return r}class Vt{constructor(n,e){f(this,"name");f(this,"config");f(this,"_positioningFunctionCoordinates");f(this,"_options");f(this,"_cachedRect");f(this,"_cachedAbsoluteRect");const i=n(e.targetRect,e.elementRect,e.viewportRect,e.limiterRect);if(!i)return;const{left:o,top:s,name:r,config:l}=i;this.name=r,this.config=l,this._positioningFunctionCoordinates={left:o,top:s},this._options=e}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const n=this._options.limiterRect;return n?n.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect?this._cachedRect:(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top),this._cachedRect)}get _absoluteRect(){return this._cachedAbsoluteRect?this._cachedAbsoluteRect:(this._cachedAbsoluteRect=this._rect.toAbsoluteRect(),this._cachedAbsoluteRect)}}/**
75
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
76
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
77
- */function Rn(t){const n=t.parentNode;n&&n.removeChild(t)}function kn(){const t=T.window.visualViewport;if(!t||!(M.isiOS||M.isSafari))return{left:0,top:0};const n=Math.max(Math.round(t.offsetLeft),0),e=Math.max(Math.round(t.offsetTop),0);return{left:n,top:e}}function Sn({target:t,viewportOffset:n=0,ancestorOffset:e=0,alignToTop:i,forceScroll:o}){const s=nt(t);let r=s,l=null;for(n=Pe(n);r;){let a;r==s?a=_t(t):a=_t(l),Se({parent:a,getRect:()=>U(t,r),alignToTop:i,ancestorOffset:e,forceScroll:o});let c=U(t,r);const u=U(a,r);if(c.height>u.height){const h=c.getIntersection(u);h&&(c=h)}if(ke({window:r,rect:c,viewportOffset:n,alignToTop:i,forceScroll:o}),r.parent!=r){if(l=r.frameElement,r=r.parent,!l)return}else r=null}}function ke({window:t,rect:n,alignToTop:e,forceScroll:i,viewportOffset:o}){const s=n.clone().moveBy(0,o.bottom),r=n.clone().moveBy(0,-o.top),l=new y(t).excludeScrollbarsAndBorders(),a=[r,s],c=e&&i,u=a.every(b=>l.contains(b));let{scrollX:h,scrollY:d}=t;const _=h,m=d;c?d-=l.top-n.top+o.top:u||(Wt(r,l)?d-=l.top-n.top+o.top:jt(s,l)&&(e?d+=n.top-l.top-o.top:d+=n.bottom-l.bottom+o.bottom)),u||(Kt(n,l)?h-=l.left-n.left+o.left:Ht(n,l)&&(h+=n.right-l.right+o.right)),(h!=_||d!==m)&&t.scrollTo(h,d)}function Se({parent:t,getRect:n,alignToTop:e,forceScroll:i,ancestorOffset:o=0,limiterElement:s}){const r=nt(t),l=e&&i;let a,c,u;const h=s||r.document.body;for(;t!=h;)c=n(),a=new y(t).excludeScrollbarsAndBorders(),u=a.contains(c),l?t.scrollTop-=a.top-c.top+o:u||(Wt(c,a)?t.scrollTop-=a.top-c.top+o:jt(c,a)&&(e?t.scrollTop+=c.top-a.top-o:t.scrollTop+=c.bottom-a.bottom+o)),u||(Kt(c,a)?t.scrollLeft-=a.left-c.left+o:Ht(c,a)&&(t.scrollLeft+=c.right-a.right+o)),t=t.parentNode}function jt(t,n){return t.bottom>n.bottom}function Wt(t,n){return t.top<n.top}function Kt(t,n){return t.left<n.left}function Ht(t,n){return t.right>n.right}function nt(t){return et(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function _t(t){if(et(t)){let n=t.commonAncestorContainer;return tt(n)&&(n=n.parentNode),n}else return t.parentNode}function U(t,n){const e=nt(t),i=new y(t);if(e===n)return i;{let o=e;for(;o!=n;){const s=o.frameElement,r=new y(s).excludeScrollbarsAndBorders();i.moveBy(r.left,r.top),o=o.parent}}return i}function Pe(t){return typeof t=="number"?{top:t,bottom:t,left:t,right:t}:t}const Ne={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Be={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},wt={37:"←",38:"↑",39:"→",40:"↓",9:"⇥",33:"Page Up",34:"Page Down"},w=je(),De=Object.fromEntries(Object.entries(w).map(([t,n])=>{let e;return n in wt?e=wt[n]:e=t.charAt(0).toUpperCase()+t.slice(1),[n,e]}));function O(t){let n;if(typeof t=="string"){if(n=w[t.toLowerCase()],!n)throw new p("keyboard-unknown-key",null,{key:t})}else n=t.keyCode+(t.altKey?w.alt:0)+(t.ctrlKey?w.ctrl:0)+(t.shiftKey?w.shift:0)+(t.metaKey?w.cmd:0);return n}function Ut(t){return typeof t=="string"&&(t=We(t)),t.map(n=>typeof n=="string"?Ve(n):n).reduce((n,e)=>e+n,0)}function Pn(t,n){let e=Ut(t);const i=M.isMac||M.isiOS;return Object.entries(i?Ne:Be).reduce((r,[l,a])=>((e&w[l])!=0&&(e&=~w[l],r+=a),r),"")+(e?De[e]:"")}function Nn(t){return t==w.arrowright||t==w.arrowleft||t==w.arrowup||t==w.arrowdown}function Oe(t,n){const e=n==="ltr";switch(t){case w.arrowleft:return e?"left":"right";case w.arrowright:return e?"right":"left";case w.arrowup:return"up";case w.arrowdown:return"down"}}function Ve(t){if(t.endsWith("!"))return O(t.slice(0,-1));const n=O(t);return(M.isMac||M.isiOS)&&n==w.ctrl?w.cmd:n}function Bn(t,n){const e=Oe(t,n);return e==="down"||e==="right"}function je(){const t={pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let n=65;n<=90;n++){const e=String.fromCharCode(n);t[e.toLowerCase()]=n}for(let n=48;n<=57;n++)t[n-48]=n;for(let n=112;n<=123;n++)t["f"+(n-111)]=n;return Object.assign(t,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),t}function We(t){return t.split("+").map(n=>n.trim())}/**
78
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
79
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
80
- */const Ke=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig","ur","urd"];function yt(t){return Ke.includes(t)?"rtl":"ltr"}/**
81
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
82
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
83
- */function He(t){return Array.isArray(t)?t:[t]}/* istanbul ignore else -- @preserve */T.window.CKEDITOR_TRANSLATIONS||(T.window.CKEDITOR_TRANSLATIONS={});function Ue(t,n,e=1,i){if(typeof e!="number")throw new p("translation-service-quantity-not-a-number",null,{quantity:e});const o=i||T.window.CKEDITOR_TRANSLATIONS,s=Ye(o);s===1&&(t=Object.keys(o)[0]);const r=n.id||n.string;if(s===0||!$e(t,r,o))return e!==1?n.plural:n.string;const l=o[t].dictionary,a=o[t].getPluralForm||(h=>h===1?0:1),c=l[r];if(typeof c=="string")return c;const u=Number(a(e));return c[u]}function Ge(t){return Array.isArray(t)?t.reduce((n,e)=>zt(n,e)):t}function $e(t,n,e){return!!e[t]&&!!e[t].dictionary[n]}function Ye(t){return Object.keys(t).length}class Dn{constructor({uiLanguage:n="en",contentLanguage:e,translations:i}={}){f(this,"uiLanguage");f(this,"uiLanguageDirection");f(this,"contentLanguage");f(this,"contentLanguageDirection");f(this,"t");f(this,"translations");this.uiLanguage=n,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=yt(this.uiLanguage),this.contentLanguageDirection=yt(this.contentLanguage),this.translations=Ge(i),this.t=(o,s)=>this._t(o,s)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(n,e=[]){e=He(e),typeof n=="string"&&(n={string:n});const o=!!n.plural?e[0]:1,s=Ue(this.uiLanguage,n,o,this.translations);return qe(s,e)}}function qe(t,n){return t.replace(/%(\d+)/g,(e,i)=>i<n.length?n[i]:e)}class On extends L(){constructor(e={},i={}){super();f(this,"_items");f(this,"_itemMap");f(this,"_idProperty");f(this,"_bindToCollection");f(this,"_bindToExternalToInternalMap");f(this,"_bindToInternalToExternalMap");f(this,"_skippedIndexesFromExternal");const o=Z(e);if(o||(i=e),this._items=[],this._itemMap=new Map,this._idProperty=i.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],o)for(const s of e)this._items.push(s),this._itemMap.set(this._getItemIdBeforeAdding(s),s)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,i){return this.addMany([e],i)}addMany(e,i){if(i===void 0)i=this._items.length;else if(i>this._items.length||i<0)throw new p("collection-add-item-invalid-index",this);let o=0;for(const s of e){const r=this._getItemIdBeforeAdding(s),l=i+o;this._items.splice(l,0,s),this._itemMap.set(r,s),this.fire("add",s,l),o++}return this.fire("change",{added:e,removed:[],index:i}),this}get(e){let i;if(typeof e=="string")i=this._itemMap.get(e);else if(typeof e=="number")i=this._items[e];else throw new p("collection-get-invalid-arg",this);return i||null}has(e){if(typeof e=="string")return this._itemMap.has(e);{const i=this._idProperty,o=e[i];return o&&this._itemMap.has(o)}}getIndex(e){let i;return typeof e=="string"?i=this._itemMap.get(e):i=e,i?this._items.indexOf(i):-1}remove(e){const[i,o]=this._remove(e);return this.fire("change",{added:[],removed:[i],index:o}),i}map(e,i){return this._items.map(e,i)}forEach(e,i){this._items.forEach(e,i)}find(e,i){return this._items.find(e,i)}filter(e,i){return this._items.filter(e,i)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new p("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:i=>{this._setUpBindToBinding(o=>new i(o))},using:i=>{typeof i=="function"?this._setUpBindToBinding(i):this._setUpBindToBinding(o=>o[i])}}}_setUpBindToBinding(e){const i=this._bindToCollection,o=(s,r,l)=>{const a=i._bindToCollection==this,c=i._bindToInternalToExternalMap.get(r);if(a&&c)this._bindToExternalToInternalMap.set(r,c),this._bindToInternalToExternalMap.set(c,r);else{const u=e(r);if(!u){this._skippedIndexesFromExternal.push(l);return}let h=l;for(const d of this._skippedIndexesFromExternal)l>d&&h--;for(const d of i._skippedIndexesFromExternal)h>=d&&h++;this._bindToExternalToInternalMap.set(r,u),this._bindToInternalToExternalMap.set(u,r),this.add(u,h);for(let d=0;d<i._skippedIndexesFromExternal.length;d++)h<=i._skippedIndexesFromExternal[d]&&i._skippedIndexesFromExternal[d]++}};for(const s of i)o(null,s,i.getIndex(s));this.listenTo(i,"add",o),this.listenTo(i,"remove",(s,r,l)=>{const a=this._bindToExternalToInternalMap.get(r);a&&this.remove(a),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((c,u)=>(l<u&&c.push(u-1),l>u&&c.push(u),c),[])})}_getItemIdBeforeAdding(e){const i=this._idProperty;let o;if(i in e){if(o=e[i],typeof o!="string")throw new p("collection-add-invalid-id",this);if(this.get(o))throw new p("collection-add-item-already-exists",this)}else e[i]=o=J();return o}_remove(e){let i,o,s,r=!1;const l=this._idProperty;if(typeof e=="string"?(o=e,s=this._itemMap.get(o),r=!s,s&&(i=this._items.indexOf(s))):typeof e=="number"?(i=e,s=this._items[i],r=!s,s&&(o=s[l])):(s=e,o=s[l],i=this._items.indexOf(s),r=i==-1||!this._itemMap.get(o)),r)throw new p("collection-remove-404",this);this._items.splice(i,1),this._itemMap.delete(o);const a=this._bindToInternalToExternalMap.get(s);return this._bindToInternalToExternalMap.delete(s),this._bindToExternalToInternalMap.delete(a),this.fire("remove",s,i),[s,i]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}/**
84
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
85
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
86
- */function Vn(t){const n=t.next();return n.done?null:n.value}class ze extends V(Q()){constructor(){super();f(this,"_elements",new Set);f(this,"_externalViews",new Set);f(this,"_blurTimeout",null);this.set("isFocused",!1),this.set("focusedElement",null)}get elements(){return Array.from(this._elements.values())}get externalViews(){return Array.from(this._externalViews.values())}add(e){if(Tt(e))this._addElement(e);else if(Et(e))this._addView(e);else{if(!e.element)throw new p("focustracker-add-view-missing-element",{focusTracker:this,view:e});this._addElement(e.element)}}remove(e){Tt(e)?this._removeElement(e):Et(e)?this._removeView(e):this._removeElement(e.element)}_addElement(e){if(this._elements.has(e))throw new p("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",()=>{const i=this.externalViews.find(o=>Xe(e,o));i?this._focus(i.element):this._focus(e)},{useCapture:!0}),this.listenTo(e,"blur",()=>{this._blur()},{useCapture:!0}),this._elements.add(e)}_removeElement(e){this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e)),e===this.focusedElement&&this._blur()}_addView(e){e.element&&this._addElement(e.element),this.listenTo(e.focusTracker,"change:focusedElement",()=>{e.focusTracker.focusedElement?e.element&&this._focus(e.element):this._blur()}),this._externalViews.add(e)}_removeView(e){e.element&&this._removeElement(e.element),this.stopListening(e.focusTracker),this._externalViews.delete(e)}destroy(){this.stopListening(),this._elements.clear(),this._externalViews.clear(),this.isFocused=!1,this.focusedElement=null}_focus(e){this._clearBlurTimeout(),this.focusedElement=e,this.isFocused=!0}_blur(){this.elements.find(o=>o.contains(document.activeElement))||this.externalViews.find(o=>o.focusTracker.isFocused&&!o.focusTracker._blurTimeout)||(this._clearBlurTimeout(),this._blurTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0))}_clearBlurTimeout(){clearTimeout(this._blurTimeout),this._blurTimeout=null}}function Et(t){return"focusTracker"in t&&t.focusTracker instanceof ze}function Tt(t){return It(t)}function Xe(t,n){return xt(t,n)?!0:!!n.focusTracker.externalViews.find(e=>xt(t,e))}function xt(t,n){return!!n.element&&n.element.contains(document.activeElement)&&t.contains(n.element)}class jn{constructor(){f(this,"_listener");this._listener=new(V())}listenTo(n){this._listener.listenTo(n,"keydown",(e,i)=>{this._listener.fire("_keydown:"+O(i),i)})}set(n,e,i={}){const o=Ut(n),s=i.priority;this._listener.listenTo(this._listener,"_keydown:"+o,(r,l)=>{i.filter&&!i.filter(l)||(e(l,()=>{l.preventDefault(),l.stopPropagation(),r.stop()}),r.return=!0)},{priority:s})}press(n){return!!this._listener.fire("_keydown:"+O(n),n)}stopListening(n){this._listener.stopListening(n)}destroy(){this.stopListening()}}/**
87
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
88
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
89
- */function Je(t){const n=new Map;for(const e in t)n.set(e,t[e]);return n}function Wn(t){return Z(t)?new Map(t):Je(t)}/**
90
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
91
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
92
- */function Kn(t,n,e){const i=t.length,o=n.length;for(let s=i-1;s>=e;s--)t[s+o]=t[s];for(let s=0;s<o;s++)t[e+s]=n[s]}/**
93
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
94
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
95
- */function Hn(t,n){let e;function i(...o){i.cancel(),e=setTimeout(()=>t(...o),n)}return i.cancel=()=>{clearTimeout(e)},i}/**
96
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
97
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
98
- */function Un(t){try{if(!t.startsWith("ey"))return null;const n=atob(t.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(n)}catch{return null}}/**
99
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
100
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
101
- */function Qe(){const t=[];for(let n=0;n<256;n++){let e=n;for(let i=0;i<8;i++)e&1?e=3988292384^e>>>1:e=e>>>1;t[n]=e}return t}function Gn(t){const n=Array.isArray(t)?t:[t],e=Qe();let i=-1;const o=n.map(s=>Array.isArray(s)?s.join(""):String(s)).join("");for(let s=0;s<o.length;s++){const r=o.charCodeAt(s);i=i>>>8^e[(i^r)&255]}return i=(i^-1)>>>0,i.toString(16).padStart(8,"0")}/**
102
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
103
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
104
- */function Ze(t){return!!t&&t.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(t)}function tn(t){return!!t&&t.length==1&&/[\ud800-\udbff]/.test(t)}function en(t){return!!t&&t.length==1&&/[\udc00-\udfff]/.test(t)}function $n(t,n){return tn(t.charAt(n-1))&&en(t.charAt(n))}function Yn(t,n){return Ze(t.charAt(n))}const nn=on();function qn(t,n){const e=String(t).matchAll(nn);return Array.from(e).some(i=>i.index<n&&n<i.index+i[0].length)}function on(){const t=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],n=new RegExp("\\p{Regional_Indicator}{2}","u").source,e="(?:"+t.map(o=>o.source).join("|")+")",i=`${n}|${e}(?:‍${e})*`;return new RegExp(i,"ug")}export{p as CKEditorError,On as Collection,yn as Config,V as DomEmitterMixin,mn as ElementReplacer,L as EmitterMixin,$ as EventInfo,ze as FocusTracker,jn as KeystrokeHandler,Dn as Locale,Q as ObservableMixin,y as Rect,mt as ResizeObserver,_n as compareArrays,bn as count,Gn as crc32,wn as createElement,Hn as delay,At as diff,M as env,oe as fastDiff,Vn as first,En as getAncestors,Bt as getBorderWidths,O as getCode,Tn as getDataFromElement,Pn as getEnvKeystrokeText,yt as getLanguageDirection,Oe as getLocalizedArrowKeyCodeDirection,Mn as getOptimalPosition,xn as getRangeFromMouseEvent,kn as getVisualViewportOffset,T as global,An as indexOf,vn as insertAt,le as insertToPriorityArray,Nn as isArrowKeyCode,Ze as isCombiningMark,Cn as isComment,Bn as isForwardArrowKeyCode,tn as isHighSurrogateHalf,Yn as isInsideCombinedSymbol,qn as isInsideEmojiSequence,$n as isInsideSurrogatePair,Z as isIterable,en as isLowSurrogateHalf,dt as isNode,et as isRange,tt as isText,Fn as isValidAttributeName,Et as isViewWithFocusTracker,Fe as isVisible,w as keyCodes,pn as logError,dn as logWarning,Un as parseBase64EncodedObject,Ut as parseKeystroke,Y as priorities,gn as releaseDate,Rn as remove,Sn as scrollViewportToShowTarget,In as setDataInElement,Kn as spliceArray,He as toArray,Wn as toMap,Ln as toUnit,J as uid,fe as version};
@@ -1 +0,0 @@
1
- import{getSideAxis as L,getAlignmentAxis as H,getSide as F,getAlignment as C,getAxisLength as J,evaluate as _,getOppositePlacement as K,getExpandedPlacements as N,getOppositeAxisPlacements as Q,getAlignmentSides as q,getPaddingObject as U,rectToClientRect as I,placements as X,getOppositeAlignmentPlacement as W}from"../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";function Y(n,l,f){let{reference:t,floating:e}=n;const i=L(l),c=H(l),a=J(c),w=F(l),p=i==="y",g=t.x+t.width/2-e.width/2,r=t.y+t.height/2-e.height/2,d=t[a]/2-e[a]/2;let o;switch(w){case"top":o={x:g,y:t.y-e.height};break;case"bottom":o={x:g,y:t.y+t.height};break;case"right":o={x:t.x+t.width,y:r};break;case"left":o={x:t.x-e.width,y:r};break;default:o={x:t.x,y:t.y}}switch(C(l)){case"start":o[c]-=d*(f&&p?-1:1);break;case"end":o[c]+=d*(f&&p?-1:1);break}return o}const te=async(n,l,f)=>{const{placement:t="bottom",strategy:e="absolute",middleware:i=[],platform:c}=f,a=i.filter(Boolean),w=await(c.isRTL==null?void 0:c.isRTL(l));let p=await c.getElementRects({reference:n,floating:l,strategy:e}),{x:g,y:r}=Y(p,t,w),d=t,o={},x=0;for(let h=0;h<a.length;h++){const{name:y,fn:v}=a[h],{x:u,y:P,data:b,reset:s}=await v({x:g,y:r,initialPlacement:t,placement:d,strategy:e,middlewareData:o,rects:p,platform:c,elements:{reference:n,floating:l}});g=u??g,r=P??r,o={...o,[y]:{...o[y],...b}},s&&x<=50&&(x++,typeof s=="object"&&(s.placement&&(d=s.placement),s.rects&&(p=s.rects===!0?await c.getElementRects({reference:n,floating:l,strategy:e}):s.rects),{x:g,y:r}=Y(p,d,w)),h=-1)}return{x:g,y:r,placement:d,strategy:e,middlewareData:o}};async function z(n,l){var f;l===void 0&&(l={});const{x:t,y:e,platform:i,rects:c,elements:a,strategy:w}=n,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:r="floating",altBoundary:d=!1,padding:o=0}=_(l,n),x=U(o),y=a[d?r==="floating"?"reference":"floating":r],v=I(await i.getClippingRect({element:(f=await(i.isElement==null?void 0:i.isElement(y)))==null||f?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:p,rootBoundary:g,strategy:w})),u=r==="floating"?{x:t,y:e,width:c.floating.width,height:c.floating.height}:c.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},s=I(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:u,offsetParent:P,strategy:w}):u);return{top:(v.top-s.top+x.top)/b.y,bottom:(s.bottom-v.bottom+x.bottom)/b.y,left:(v.left-s.left+x.left)/b.x,right:(s.right-v.right+x.right)/b.x}}function Z(n,l,f){return(n?[...f.filter(e=>C(e)===n),...f.filter(e=>C(e)!==n)]:f.filter(e=>F(e)===e)).filter(e=>n?C(e)===n||(l?W(e)!==e:!1):!0)}const ne=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(l){var f,t,e;const{rects:i,middlewareData:c,placement:a,platform:w,elements:p}=l,{crossAxis:g=!1,alignment:r,allowedPlacements:d=X,autoAlignment:o=!0,...x}=_(n,l),h=r!==void 0||d===X?Z(r||null,o,d):d,y=await z(l,x),v=((f=c.autoPlacement)==null?void 0:f.index)||0,u=h[v];if(u==null)return{};const P=q(u,i,await(w.isRTL==null?void 0:w.isRTL(p.floating)));if(a!==u)return{reset:{placement:h[0]}};const b=[y[F(u)],y[P[0]],y[P[1]]],s=[...((t=c.autoPlacement)==null?void 0:t.overflows)||[],{placement:u,overflows:b}],T=h[v+1];if(T)return{data:{index:v+1,overflows:s},reset:{placement:T}};const B=s.map(m=>{const O=C(m.placement);return[m.placement,O&&g?m.overflows.slice(0,2).reduce((j,M)=>j+M,0):m.overflows[0],m.overflows]}).sort((m,O)=>m[1]-O[1]),S=((e=B.filter(m=>m[2].slice(0,C(m[0])?2:3).every(O=>O<=0))[0])==null?void 0:e[0])||B[0][0];return S!==a?{data:{index:v+1,overflows:s},reset:{placement:S}}:{}}}},le=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var f,t;const{placement:e,middlewareData:i,rects:c,initialPlacement:a,platform:w,elements:p}=l,{mainAxis:g=!0,crossAxis:r=!0,fallbackPlacements:d,fallbackStrategy:o="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:h=!0,...y}=_(n,l);if((f=i.arrow)!=null&&f.alignmentOffset)return{};const v=F(e),u=L(a),P=F(a)===a,b=await(w.isRTL==null?void 0:w.isRTL(p.floating)),s=d||(P||!h?[K(a)]:N(a)),T=x!=="none";!d&&T&&s.push(...Q(a,h,x,b));const B=[a,...s],$=await z(l,y),S=[];let m=((t=i.flip)==null?void 0:t.overflows)||[];if(g&&S.push($[v]),r){const k=q(e,c,b);S.push($[k[0]],$[k[1]])}if(m=[...m,{placement:e,overflows:S}],!S.every(k=>k<=0)){var O,j;const k=(((O=i.flip)==null?void 0:O.index)||0)+1,V=B[k];if(V&&(!(r==="alignment"?u!==L(V):!1)||m.every(A=>A.overflows[0]>0&&L(A.placement)===u)))return{data:{index:k,overflows:m},reset:{placement:V}};let D=(j=m.filter(E=>E.overflows[0]<=0).sort((E,A)=>E.overflows[1]-A.overflows[1])[0])==null?void 0:j.placement;if(!D)switch(o){case"bestFit":{var M;const E=(M=m.filter(A=>{if(T){const R=L(A.placement);return R===u||R==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(R=>R>0).reduce((R,G)=>R+G,0)]).sort((A,R)=>A[1]-R[1])[0])==null?void 0:M[0];E&&(D=E);break}case"initialPlacement":D=a;break}if(e!==D)return{reset:{placement:D}}}return{}}}};export{ne as autoPlacement,te as computePosition,z as detectOverflow,le as flip,I as rectToClientRect};
@@ -1 +0,0 @@
1
- import{computePosition as ot,flip as st,autoPlacement as rt}from"../../../../../@floating-ui_core@1.7.1/node_modules/@floating-ui/core/dist/floating-ui.core.js";import{createCoords as w,rectToClientRect as J,floor as A,max as E,round as H,min as z}from"../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";import{getOverflowAncestors as M,isElement as v,getDocumentElement as O,getWindow as L,getFrameElement as K,getComputedStyle as R,isHTMLElement as b,isWebKit as Q,isTopLayer as S,getParentNode as W,isLastTraversableNode as N,isTableElement as ct,isContainingBlock as Y,getContainingBlock as lt,getNodeName as _,isOverflowElement as P,getNodeScroll as I}from"../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";function Z(t){const e=R(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=b(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=H(n)!==r||H(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function $(t){return v(t)?t:t.contextElement}function F(t){const e=$(t);if(!b(e))return w(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Z(e);let s=(r?H(n.width):n.width)/i,c=(r?H(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ft=w(0);function X(t){const e=L(t);return!Q()||!e.visualViewport?ft:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ut(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==L(t)?!1:e}function T(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),r=$(t);let s=w(1);e&&(i?v(i)&&(s=F(i)):s=F(t));const c=ut(r,n,i)?X(r):w(0);let l=(o.left+c.x)/s.x,f=(o.top+c.y)/s.y,u=o.width/s.x,h=o.height/s.y;if(r){const p=L(r),a=i&&v(i)?L(i):i;let y=p,g=K(y);for(;g&&i&&a!==y;){const m=F(g),d=g.getBoundingClientRect(),x=R(g),C=d.left+(g.clientLeft+parseFloat(x.paddingLeft))*m.x,B=d.top+(g.clientTop+parseFloat(x.paddingTop))*m.y;l*=m.x,f*=m.y,u*=m.x,h*=m.y,l+=C,f+=B,y=L(g),g=K(y)}}return J({width:u,height:h,x:l,y:f})}function q(t,e){const n=I(t).scrollLeft;return e?e.left+n:T(O(t)).left+n}function tt(t,e,n){n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:q(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function ht(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r=o==="fixed",s=O(i),c=e?S(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},f=w(1);const u=w(0),h=b(i);if((h||!h&&!r)&&((_(i)!=="body"||P(s))&&(l=I(i)),b(i))){const a=T(i);f=F(i),u.x=a.x+i.clientLeft,u.y=a.y+i.clientTop}const p=s&&!h&&!r?tt(s,l,!0):w(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+p.x,y:n.y*f.y-l.scrollTop*f.y+u.y+p.y}}function at(t){return Array.from(t.getClientRects())}function dt(t){const e=O(t),n=I(t),i=t.ownerDocument.body,o=E(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=E(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+q(t);const c=-n.scrollTop;return R(i).direction==="rtl"&&(s+=E(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function gt(t,e){const n=L(t),i=O(t),o=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;const f=Q();(!f||f&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function pt(t,e){const n=T(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=b(t)?F(t):w(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,f=i*r.y;return{width:s,height:c,x:l,y:f}}function j(t,e,n){let i;if(e==="viewport")i=gt(t,n);else if(e==="document")i=dt(O(t));else if(v(e))i=pt(e,n);else{const o=X(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return J(i)}function et(t,e){const n=W(t);return n===e||!v(n)||N(n)?!1:R(n).position==="fixed"||et(n,e)}function mt(t,e){const n=e.get(t);if(n)return n;let i=M(t,[],!1).filter(c=>v(c)&&_(c)!=="body"),o=null;const r=R(t).position==="fixed";let s=r?W(t):t;for(;v(s)&&!N(s);){const c=R(s),l=Y(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||P(s)&&!l&&et(t,s))?i=i.filter(u=>u!==s):o=c,s=W(s)}return e.set(t,i),i}function wt(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const s=[...n==="clippingAncestors"?S(e)?[]:mt(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((f,u)=>{const h=j(e,u,o);return f.top=E(h.top,f.top),f.right=z(h.right,f.right),f.bottom=z(h.bottom,f.bottom),f.left=E(h.left,f.left),f},j(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yt(t){const{width:e,height:n}=Z(t);return{width:e,height:n}}function xt(t,e,n){const i=b(e),o=O(e),r=n==="fixed",s=T(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=w(0);function f(){l.x=q(o)}if(i||!i&&!r)if((_(e)!=="body"||P(o))&&(c=I(e)),i){const a=T(e,!0,r,e);l.x=a.x+e.clientLeft,l.y=a.y+e.clientTop}else o&&f();r&&!i&&o&&f();const u=o&&!i&&!r?tt(o,c):w(0),h=s.left+c.scrollLeft-l.x-u.x,p=s.top+c.scrollTop-l.y-u.y;return{x:h,y:p,width:s.width,height:s.height}}function V(t){return R(t).position==="static"}function G(t,e){if(!b(t)||R(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return O(t)===n&&(n=n.ownerDocument.body),n}function nt(t,e){const n=L(t);if(S(t))return n;if(!b(t)){let o=W(t);for(;o&&!N(o);){if(v(o)&&!V(o))return o;o=W(o)}return n}let i=G(t,e);for(;i&&ct(i)&&V(i);)i=G(i,e);return i&&N(i)&&V(i)&&!Y(i)?n:i||lt(t)||n}const vt=async function(t){const e=this.getOffsetParent||nt,n=this.getDimensions,i=await n(t.floating);return{reference:xt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Rt(t){return R(t).direction==="rtl"}const Ot={convertOffsetParentRelativeRectToViewportRelativeRect:ht,getDocumentElement:O,getClippingRect:wt,getOffsetParent:nt,getElementRects:vt,getClientRects:at,getDimensions:yt,getScale:F,isElement:v,isRTL:Rt};function it(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function bt(t,e){let n=null,i;const o=O(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const f=t.getBoundingClientRect(),{left:u,top:h,width:p,height:a}=f;if(c||e(),!p||!a)return;const y=A(h),g=A(o.clientWidth-(u+p)),m=A(o.clientHeight-(h+a)),d=A(u),C={rootMargin:-y+"px "+-g+"px "+-m+"px "+-d+"px",threshold:E(0,z(1,l))||1};let B=!0;function k(U){const D=U[0].intersectionRatio;if(D!==l){if(!B)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!it(f,t.getBoundingClientRect())&&s(),B=!1}try{n=new IntersectionObserver(k,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,C)}n.observe(t)}return s(!0),r}function Et(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,f=$(t),u=o||r?[...f?M(f):[],...M(e)]:[];u.forEach(d=>{o&&d.addEventListener("scroll",n,{passive:!0}),r&&d.addEventListener("resize",n)});const h=f&&c?bt(f,n):null;let p=-1,a=null;s&&(a=new ResizeObserver(d=>{let[x]=d;x&&x.target===f&&a&&(a.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=a)==null||C.observe(e)})),n()}),f&&!l&&a.observe(f),a.observe(e));let y,g=l?T(t):null;l&&m();function m(){const d=T(t);g&&!it(g,d)&&n(),g=d,y=requestAnimationFrame(m)}return n(),()=>{var d;u.forEach(x=>{o&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),h==null||h(),(d=a)==null||d.disconnect(),a=null,l&&cancelAnimationFrame(y)}}const Ft=rt,Wt=st,Bt=(t,e,n)=>{const i=new Map,o={platform:Ot,...n},r={...o.platform,_c:i};return ot(t,e,{...o,platform:r})};export{Ft as autoPlacement,Et as autoUpdate,Bt as computePosition,Wt as flip,M as getOverflowAncestors,Ot as platform};
@@ -1 +0,0 @@
1
- function c(){return typeof window<"u"}function s(n){return p(n)?(n.nodeName||"").toLowerCase():"#document"}function i(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function E(n){var t;return(t=(p(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function p(n){return c()?n instanceof Node||n instanceof i(n).Node:!1}function m(n){return c()?n instanceof Element||n instanceof i(n).Element:!1}function w(n){return c()?n instanceof HTMLElement||n instanceof i(n).HTMLElement:!1}function a(n){return!c()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof i(n).ShadowRoot}function y(n){const{overflow:t,overflowX:e,overflowY:o,display:r}=b(n);return/auto|scroll|overlay|hidden|clip/.test(t+o+e)&&!["inline","contents"].includes(r)}function D(n){return["table","td","th"].includes(s(n))}function N(n){return[":popover-open",":modal"].some(t=>{try{return n.matches(t)}catch{return!1}})}function T(n){const t=L(),e=m(n)?b(n):n;return["transform","translate","scale","rotate","perspective"].some(o=>e[o]?e[o]!=="none":!1)||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function k(n){let t=u(n);for(;w(t)&&!g(t);){if(T(t))return t;if(N(t))return null;t=u(t)}return null}function L(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function g(n){return["html","body","#document"].includes(s(n))}function b(n){return i(n).getComputedStyle(n)}function C(n){return m(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function u(n){if(s(n)==="html")return n;const t=n.assignedSlot||n.parentNode||a(n)&&n.host||E(n);return a(t)?t.host:t}function h(n){const t=u(n);return g(t)?n.ownerDocument?n.ownerDocument.body:n.body:w(t)&&y(t)?t:h(t)}function d(n,t,e){var o;t===void 0&&(t=[]),e===void 0&&(e=!0);const r=h(n),S=r===((o=n.ownerDocument)==null?void 0:o.body),l=i(r);if(S){const f=v(l);return t.concat(l,l.visualViewport||[],y(r)?r:[],f&&e?d(f):[])}return t.concat(r,d(r,[],e))}function v(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}export{b as getComputedStyle,k as getContainingBlock,E as getDocumentElement,v as getFrameElement,h as getNearestOverflowAncestor,s as getNodeName,C as getNodeScroll,d as getOverflowAncestors,u as getParentNode,i as getWindow,T as isContainingBlock,m as isElement,w as isHTMLElement,g as isLastTraversableNode,p as isNode,y as isOverflowElement,a as isShadowRoot,D as isTableElement,N as isTopLayer,L as isWebKit};
@@ -1 +0,0 @@
1
- const a=["top","right","bottom","left"],u=["start","end"],P=a.reduce((t,n)=>t.concat(n,n+"-"+u[0],n+"-"+u[1]),[]),M=Math.min,O=Math.max,S=Math.round,w=Math.floor,j=t=>({x:t,y:t}),m={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function C(t,n){return typeof t=="function"?t(n):t}function g(t){return t.split("-")[0]}function l(t){return t.split("-")[1]}function h(t){return t==="x"?"y":"x"}function b(t){return t==="y"?"height":"width"}function x(t){return["top","bottom"].includes(g(t))?"y":"x"}function d(t){return h(x(t))}function L(t,n,e){e===void 0&&(e=!1);const r=l(t),o=d(t),i=b(o);let c=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[i]>n.floating[i]&&(c=f(c)),[c,f(c)]}function E(t){const n=f(t);return[s(t),n,s(n)]}function s(t){return t.replace(/start|end/g,n=>p[n])}function A(t,n,e){const r=["left","right"],o=["right","left"],i=["top","bottom"],c=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:r:n?r:o;case"left":case"right":return n?i:c;default:return[]}}function R(t,n,e,r){const o=l(t);let i=A(g(t),e==="start",r);return o&&(i=i.map(c=>c+"-"+o),n&&(i=i.concat(i.map(s)))),i}function f(t){return t.replace(/left|right|bottom|top/g,n=>m[n])}function y(t){return{top:0,right:0,bottom:0,left:0,...t}}function T(t){return typeof t!="number"?y(t):{top:t,right:t,bottom:t,left:t}}function k(t){const{x:n,y:e,width:r,height:o}=t;return{width:r,height:o,top:e,left:n,right:n+r,bottom:e+o,x:n,y:e}}export{u as alignments,j as createCoords,C as evaluate,y as expandPaddingObject,w as floor,l as getAlignment,d as getAlignmentAxis,L as getAlignmentSides,b as getAxisLength,E as getExpandedPlacements,s as getOppositeAlignmentPlacement,h as getOppositeAxis,R as getOppositeAxisPlacements,f as getOppositePlacement,T as getPaddingObject,g as getSide,x as getSideAxis,O as max,M as min,P as placements,k as rectToClientRect,S as round,a as sides};
@@ -1,5 +0,0 @@
1
- var ue=Object.defineProperty;var le=(t,e,r)=>e in t?ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var q=(t,e,r)=>le(t,typeof e!="symbol"?e+"":e,r);import{getSafeTimers as fe}from"../../../../../@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/index.js";import{parseSingleStack as Q}from"../../../../../@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/source-map.js";import{isNegativeNaN as he,isObject as Z,objectAttr as X,toArray as O,createDefer as B}from"../../../../../@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/helpers.js";import{f as de,o as pe}from"../../../../../@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js";class ge extends Error{constructor(r,i,n){super(r);q(this,"code","VITEST_PENDING");q(this,"taskId");this.message=r,this.note=n,this.taskId=i.id}}const me=new WeakMap,ee=new WeakMap,te=new WeakMap;function ye(t,e){me.set(t,e)}function ve(t,e){ee.set(t,e)}function we(t){return ee.get(t)}function Te(t,e){te.set(t,e)}function ke(t){return te.get(t)}function be(t,e){const r=e.reduce((s,o)=>(s[o.prop]=o,s),{}),i={};t.forEach(s=>{const o=r[s.prop]||{...s};i[o.prop]=o});for(const s in i){var n;const o=i[s];o.deps=(n=o.deps)===null||n===void 0?void 0:n.map(c=>i[c.prop])}return Object.values(i)}function ne(t,e,r){const i=["auto","injected","scope"],n=Object.entries(t).map(([s,o])=>{const c={value:o};if(Array.isArray(o)&&o.length>=2&&Z(o[1])&&Object.keys(o[1]).some(a=>i.includes(a))){var u;Object.assign(c,o[1]);const a=o[0];c.value=c.injected?((u=r.injectValue)===null||u===void 0?void 0:u.call(r,s))??a:a}return c.scope=c.scope||"test",c.scope==="worker"&&!r.getWorkerContext&&(c.scope="file"),c.prop=s,c.isFn=typeof c.value=="function",c});return Array.isArray(e.fixtures)?e.fixtures=e.fixtures.concat(n):e.fixtures=n,n.forEach(s=>{if(s.isFn){const c=oe(s.value);if(c.length&&(s.deps=e.fixtures.filter(({prop:u})=>u!==s.prop&&c.includes(u))),s.scope!=="test"){var o;(o=s.deps)===null||o===void 0||o.forEach(u=>{if(u.isFn&&!(s.scope==="worker"&&u.scope==="worker")&&!(s.scope==="file"&&u.scope!=="test"))throw new SyntaxError(`cannot use the ${u.scope} fixture "${u.prop}" inside the ${s.scope} fixture "${s.prop}"`)})}}}),e}const M=new Map,A=new Map;function Ce(t,e,r){return i=>{const n=i||r;if(!n)return e({});const s=we(n);if(!(s!=null&&s.length))return e(n);const o=oe(e),c=s.some(({auto:h})=>h);if(!o.length&&!c)return e(n);M.get(n)||M.set(n,new Map);const u=M.get(n);A.has(n)||A.set(n,[]);const a=A.get(n),l=s.filter(({prop:h,auto:m})=>m||o.includes(h)),p=re(l);if(!p.length)return e(n);async function d(){for(const h of p){if(u.has(h))continue;const m=await _e(t,h,n,a);n[h.prop]=m,u.set(h,m),h.scope==="test"&&a.unshift(()=>{u.delete(h)})}}return d().then(()=>e(n))}}const R=new WeakMap;function _e(t,e,r,i){var n;const s=Le(r.task.file),o=(n=t.getWorkerContext)===null||n===void 0?void 0:n.call(t);if(!e.isFn){var c;if(s[c=e.prop]??(s[c]=e.value),o){var u;o[u=e.prop]??(o[u]=e.value)}return e.value}if(e.scope==="test")return H(e.value,r,i);if(R.has(e))return R.get(e);let a;if(e.scope==="worker"){if(!o)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");a=o}else a=s;if(e.prop in a)return a[e.prop];A.has(a)||A.set(a,[]);const l=A.get(a),p=H(e.value,a,l).then(d=>(a[e.prop]=d,R.delete(e),d));return R.set(e,p),p}async function H(t,e,r){const i=B();let n=!1;const s=t(e,async o=>{n=!0,i.resolve(o);const c=B();r.push(async()=>{c.resolve(),await s}),await c}).catch(o=>{if(!n){i.reject(o);return}throw o});return i}function re(t,e=new Set,r=[]){return t.forEach(i=>{if(!r.includes(i)){if(!i.isFn||!i.deps){r.push(i);return}if(e.has(i))throw new Error(`Circular fixture dependency detected: ${i.prop} <- ${[...e].reverse().map(n=>n.prop).join(" <- ")}`);e.add(i),re(i.deps,e,r),r.push(i),e.clear()}}),r}function oe(t){let e=t.toString();/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(e)&&(e=e.split(/__async\((?:this|null),/)[1]);const r=e.match(/[^(]*\(([^)]*)/);if(!r)return[];const i=z(r[1]);if(!i.length)return[];let n=i[0];if("__VITEST_FIXTURE_INDEX__"in t&&(n=i[t.__VITEST_FIXTURE_INDEX__],!n))return[];if(!(n.startsWith("{")&&n.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${n}".`);const s=n.slice(1,-1).replace(/\s/g,""),o=z(s).map(u=>u.replace(/:.*|=.*/g,"")),c=o.at(-1);if(c&&c.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${c}".`);return o}function z(t){const e=[],r=[];let i=0;for(let s=0;s<t.length;s++)if(t[s]==="{"||t[s]==="[")r.push(t[s]==="{"?"}":"]");else if(t[s]===r[r.length-1])r.pop();else if(!r.length&&t[s]===","){const o=t.substring(i,s).trim();o&&e.push(o),i=s+1}const n=t.substring(i).trim();return n&&e.push(n),e}function ie(t,e){function r(n){const s=function(...o){return e.apply(n,o)};Object.assign(s,e),s.withContext=()=>s.bind(n),s.setContext=(o,c)=>{n[o]=c},s.mergeContext=o=>{Object.assign(n,o)};for(const o of t)Object.defineProperty(s,o,{get(){return r({...n,[o]:!0})}});return s}const i=r({});return i.fn=e,i}const F=Ie();U(function(t,e,r){N().test.fn.call(this,_(t),e,r)});let b,se,Ee;function ce(t,e){if(!t)throw new Error(`Vitest failed to find ${e}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function Ae(){return Ee}function Se(){return ce(b,"the runner"),b}function N(){const t=E.currentSuite||se;return ce(t,"the current suite"),t}function Fe(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function S(t,e){let r={},i=()=>{};if(typeof e=="object"){if(typeof t=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),r=e}else typeof e=="number"?r={timeout:e}:typeof t=="object"&&(r=t);if(typeof t=="function"){if(typeof e=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");i=t}else typeof e=="function"&&(i=e);return{options:r,handler:i}}function je(t,e=()=>{},r,i,n,s){const o=[];let c;h();const u=function(y="",f={}){var g;const w=(f==null?void 0:f.timeout)??b.config.testTimeout,T={id:"",name:y,suite:(g=E.currentSuite)===null||g===void 0?void 0:g.suite,each:f.each,fails:f.fails,context:void 0,type:"test",file:void 0,timeout:w,retry:f.retry??b.config.retry,repeats:f.repeats,mode:f.only?"only":f.skip?"skip":f.todo?"todo":"run",meta:f.meta??Object.create(null),annotations:[]},j=f.handler;(f.concurrent||!f.sequential&&b.config.sequence.concurrent)&&(T.concurrent=!0),T.shuffle=n==null?void 0:n.shuffle;const x=De(T,b);Object.defineProperty(T,"context",{value:x,enumerable:!1}),ve(x,f.fixtures);const ae=Error.stackTraceLimit;Error.stackTraceLimit=15;const K=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=ae,j&&ye(T,V(xe(Ce(b,j,x),T),w,!1,K,(L,I)=>Ne([x],I))),b.config.includeTaskLocation){const L=K.stack,I=$e(L,T.each??!1);I&&(T.location=I)}return o.push(T),T},a=U(function(y,f,g){let{options:w,handler:T}=S(f,g);typeof n=="object"&&(w=Object.assign({},n,w)),w.concurrent=this.concurrent||!this.sequential&&(w==null?void 0:w.concurrent),w.sequential=this.sequential||!this.concurrent&&(w==null?void 0:w.sequential);const j=u(_(y),{...this,...w,handler:T});j.type="test"});let l=s;const p={type:"collector",name:t,mode:r,suite:c,options:n,test:a,tasks:o,collect:v,task:u,clear:m,on:d,fixtures(){return l},scoped(y){const f=ne(y,{fixtures:l},b);f.fixtures&&(l=f.fixtures)}};function d(y,...f){ke(c)[y].push(...f)}function h(y){var f;typeof n=="number"&&(n={timeout:n}),c={id:"",type:"suite",name:t,suite:(f=E.currentSuite)===null||f===void 0?void 0:f.suite,mode:r,each:i,file:void 0,shuffle:n==null?void 0:n.shuffle,tasks:[],meta:Object.create(null),concurrent:n==null?void 0:n.concurrent},Te(c,Fe())}function m(){o.length=0,h()}async function v(y){if(!y)throw new TypeError("File is required to collect tasks.");e&&await We(p,()=>e(a));const f=[];for(const g of o)f.push(g.type==="collector"?await g.collect(y):g);return c.file=y,c.tasks=f,f.forEach(g=>{g.file=y}),c}return Me(p),p}function xe(t,e){return async(...r)=>{const i=await t(...r);if(e.promises){const s=(await Promise.allSettled(e.promises)).map(o=>o.status==="rejected"?o.reason:void 0).filter(Boolean);if(s.length)throw s}return i}}function Ie(){function t(e,r,i){var n;const s=this.only?"only":this.skip?"skip":this.todo?"todo":"run",o=E.currentSuite||se;let{options:c,handler:u}=S(r,i);const a=c.concurrent||this.concurrent||c.sequential===!1,l=c.sequential||this.sequential||c.concurrent===!1;c={...o==null?void 0:o.options,...c,shuffle:this.shuffle??c.shuffle??(o==null||(n=o.options)===null||n===void 0?void 0:n.shuffle)??void 0};const p=a||c.concurrent&&!l,d=l||c.sequential&&!a;return c.concurrent=p&&!d,c.sequential=d&&!p,je(_(e),u,s,this.each,c,o==null?void 0:o.fixtures())}return t.each=function(e,...r){const i=this.withContext();return this.setContext("each",!0),Array.isArray(e)&&r.length&&(e=P(e,r)),(n,s,o)=>{const c=_(n),u=e.every(Array.isArray),{options:a,handler:l}=S(s,o),p=typeof s=="function"&&typeof o=="object";e.forEach((d,h)=>{const m=Array.isArray(d)?d:[d];p?u?i(C(c,m,h),()=>l(...m),a):i(C(c,m,h),()=>l(d),a):u?i(C(c,m,h),a,()=>l(...m)):i(C(c,m,h),a,()=>l(d))}),this.setContext("each",void 0)}},t.for=function(e,...r){return Array.isArray(e)&&r.length&&(e=P(e,r)),(i,n,s)=>{const o=_(i),{options:c,handler:u}=S(n,s);e.forEach((a,l)=>{F(C(o,O(a),l),c,()=>u(a))})}},t.skipIf=e=>e?F.skip:F,t.runIf=e=>e?F:F.skip,ie(["concurrent","sequential","shuffle","skip","only","todo"],t)}function Re(t,e){const r=t;r.each=function(n,...s){const o=this.withContext();return this.setContext("each",!0),Array.isArray(n)&&s.length&&(n=P(n,s)),(c,u,a)=>{const l=_(c),p=n.every(Array.isArray),{options:d,handler:h}=S(u,a),m=typeof u=="function"&&typeof a=="object";n.forEach((v,y)=>{const f=Array.isArray(v)?v:[v];m?p?o(C(l,f,y),()=>h(...f),d):o(C(l,f,y),()=>h(v),d):p?o(C(l,f,y),d,()=>h(...f)):o(C(l,f,y),d,()=>h(v))}),this.setContext("each",void 0)}},r.for=function(n,...s){const o=this.withContext();return Array.isArray(n)&&s.length&&(n=P(n,s)),(c,u,a)=>{const l=_(c),{options:p,handler:d}=S(u,a);n.forEach((h,m)=>{const v=y=>d(h,y);v.__VITEST_FIXTURE_INDEX__=1,v.toString=()=>d.toString(),o(C(l,O(h),m),p,v)})}},r.skipIf=function(n){return n?this.skip:this},r.runIf=function(n){return n?this:this.skip},r.scoped=function(n){N().scoped(n)},r.extend=function(n){const s=ne(n,e||{},b);return U(function(c,u,a){const l=N(),p=l.fixtures(),d={...this};p&&(d.fixtures=be(d.fixtures||[],p)),l.test.fn.call(d,_(c),u,a)},s)};const i=ie(["concurrent","sequential","skip","only","todo","fails"],r);return e&&i.mergeContext(e),i}function U(t,e){return Re(t,e)}function _(t){return typeof t=="string"?t:typeof t=="function"?t.name||"<anonymous>":String(t)}function C(t,e,r){(t.includes("%#")||t.includes("%$"))&&(t=t.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${r}`).replace(/%\$/g,`${r+1}`).replace(/__vitest_escaped_%__/g,"%%"));const i=t.split("%").length-1;t.includes("%f")&&(t.match(/%f/g)||[]).forEach((c,u)=>{if(he(e[u])||Object.is(e[u],-0)){let a=0;t=t.replace(/%f/g,l=>(a++,a===u+1?"-%f":l))}});let n=de(t,...e.slice(0,i));const s=Z(e[0]);return n=n.replace(/\$([$\w.]+)/g,(o,c)=>{const u=/^\d+$/.test(c);if(!s&&!u)return`$${c}`;const a=u?X(e,c):void 0,l=s?X(e[0],c,a):a;return pe(l,{truncate:void 0})}),n}function P(t,e){const r=t.join("").trim().replace(/ /g,"").split(`
2
- `).map(n=>n.split("|"))[0],i=[];for(let n=0;n<Math.floor(e.length/r.length);n++){const s={};for(let o=0;o<r.length;o++)s[r[o]]=e[n*r.length+o];i.push(s)}return i}function $e(t,e){const r=t.split(`
3
- `).slice(1);for(const i of r){const n=Q(i);if(n&&n.file===Ae())return{line:n.line,column:e?n.column+1:n.column}}}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;function Je(t){const e=[t.name];let r=t;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&e.unshift(r.name);return r!==t.file&&e.unshift(t.file.name),e}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;const W=new Map,G=[],$=[];function Pe(t){if(W.size){var e;const r=Array.from(W).map(([n,s])=>[n,s[0],s[1]]),i=(e=t.onTaskUpdate)===null||e===void 0?void 0:e.call(t,r,G);i&&($.push(i),i.then(()=>$.splice($.indexOf(i),1),()=>{})),G.length=0,W.clear()}}async function qe(t){Pe(t),await Promise.all($)}const Y=Date.now,E={currentSuite:null};function Me(t){var e;(e=E.currentSuite)===null||e===void 0||e.tasks.push(t)}async function We(t,e){const r=E.currentSuite;E.currentSuite=t,await e(),E.currentSuite=r}function V(t,e,r=!1,i,n){if(e<=0||e===Number.POSITIVE_INFINITY)return t;const{setTimeout:s,clearTimeout:o}=fe();return function(...u){const a=Y(),l=Se();return l._currentTaskStartTime=a,l._currentTaskTimeout=e,new Promise((p,d)=>{var h;const m=s(()=>{o(m),v()},e);(h=m.unref)===null||h===void 0||h.call(m);function v(){const g=Ue(r,e,i);n==null||n(u,g),d(g)}function y(g){if(l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,o(m),Y()-a>=e){v();return}p(g)}function f(g){l._currentTaskStartTime=void 0,l._currentTaskTimeout=void 0,o(m),d(g)}try{const g=t(...u);typeof g=="object"&&g!=null&&typeof g.then=="function"?g.then(y,f):y(g)}catch(g){f(g)}})}}const D=new WeakMap;function Ne([t],e){t&&Ve(t,e)}function Ve(t,e){const r=D.get(t);r==null||r.abort(e)}function De(t,e){var r;const i=function(){throw new Error("done() callback is deprecated, use promise instead")};let n=D.get(i);n||(n=new AbortController,D.set(i,n)),i.signal=n.signal,i.task=t,i.skip=(o,c)=>{if(o!==!1)throw t.result??(t.result={state:"skip"}),t.result.pending=!0,new ge("test is skipped; abort execution",t,typeof o=="string"?o:c)};async function s(o,c,u,a){const l={message:o,type:u||"notice"};if(a){if(!a.body&&!a.path)throw new TypeError("Test attachment requires body or path to be set. Both are missing.");if(a.body&&a.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');l.attachment=a,a.body instanceof Uint8Array&&(a.body=Xe(a.body))}if(c&&(l.location=c),!e.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await qe(e);const p=await e.onTestAnnotate(t,l);return t.annotations.push(p),p}return i.annotate=(o,c,u)=>{if(t.result&&t.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${t.name}" finished running with the "${t.result.state}" state already.`);let a;const l=new Error("STACK_TRACE").stack,p=l.includes("STACK_TRACE")?2:1,d=l.split(`
4
- `)[p],h=Q(d);return h&&(a={file:h.file,line:h.line,column:h.column}),typeof c=="object"?J(t,s(o,a,void 0,c)):J(t,s(o,a,c,u))},i.onTestFailed=(o,c)=>{t.onFailed||(t.onFailed=[]),t.onFailed.push(V(o,c??e.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,a)=>n.abort(a)))},i.onTestFinished=(o,c)=>{t.onFinished||(t.onFinished=[]),t.onFinished.push(V(o,c??e.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,a)=>n.abort(a)))},((r=e.extendTaskContext)===null||r===void 0?void 0:r.call(e,i))||i}function Ue(t,e,r){const i=`${t?"Hook":"Test"} timed out in ${e}ms.
5
- If this is a long-running ${t?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${t?"hookTimeout":"testTimeout"}".`,n=new Error(i);return r!=null&&r.stack&&(n.stack=r.stack.replace(n.message,r.message)),n}const Ke=new WeakMap;function Le(t){const e=Ke.get(t);if(!e)throw new Error(`Cannot find file context for ${t.name}`);return e}const k=[];for(let t=65;t<91;t++)k.push(String.fromCharCode(t));for(let t=97;t<123;t++)k.push(String.fromCharCode(t));for(let t=0;t<10;t++)k.push(t.toString(10));function Xe(t){let e="";const r=t.byteLength;for(let i=0;i<r;i+=3)if(r===i+1){const n=(t[i]&252)>>2,s=(t[i]&3)<<4;e+=k[n],e+=k[s],e+="=="}else if(r===i+2){const n=(t[i]&252)>>2,s=(t[i]&3)<<4|(t[i+1]&240)>>4,o=(t[i+1]&15)<<2;e+=k[n],e+=k[s],e+=k[o],e+="="}else{const n=(t[i]&252)>>2,s=(t[i]&3)<<4|(t[i+1]&240)>>4,o=(t[i+1]&15)<<2|(t[i+2]&192)>>6,c=t[i+2]&63;e+=k[n],e+=k[s],e+=k[o],e+=k[c]}return e}function J(t,e){return e=e.finally(()=>{if(!t.promises)return;const r=t.promises.indexOf(e);r!==-1&&t.promises.splice(r,1)}),t.promises||(t.promises=[]),t.promises.push(e),e}export{Je as E,ke as f,Te as h,Re as j,N as l,F as n,ie as r,ye as s};
@@ -1,27 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js","_virtual/sourcemap-codec.umd.js","node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js","_virtual/sourcemap-codec.umd2.js"])))=>i.map(i=>d[i]);
2
- var ke=Object.defineProperty;var Ne=(t,e,n)=>e in t?ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>Ne(t,typeof e!="symbol"?e+"":e,n);import{__vitePreload as Pe}from"../../../../../../../_virtual/preload-helper.js";import{format as Re,plugins as Ce}from"../../../../../@vitest_pretty-format@3.2.0/node_modules/@vitest/pretty-format/dist/index.js";import{r as Te}from"../../../../../pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js";const Oe=44,ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ae=new Uint8Array(64),Se=new Uint8Array(128);for(let t=0;t<ee.length;t++){const e=ee.charCodeAt(t);Ae[t]=e,Se[e]=t}function F(t,e){let n=0,s=0,i=0;do{const a=t.next();i=Se[a],n|=(i&31)<<s,s+=5}while(i&32);const r=n&1;return n>>>=1,r&&(n=-2147483648|-n),e+n}function te(t,e){return t.pos>=e?!1:t.peek()!==Oe}class Me{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:s}=this,i=n.indexOf(e,s);return i===-1?n.length:i}}function Fe(t){const{length:e}=t,n=new Me(t),s=[];let i=0,r=0,a=0,l=0,o=0;do{const c=n.indexOf(";"),d=[];let p=!0,u=0;for(i=0;n.pos<c;){let S;i=F(n,i),i<u&&(p=!1),u=i,te(n,c)?(r=F(n,r),a=F(n,a),l=F(n,l),te(n,c)?(o=F(n,o),S=[i,r,a,l,o]):S=[i,r,a,l]):S=[i],d.push(S),n.pos++}p||Le(d),s.push(d),n.pos=c+1}while(n.pos<=e);return s}function Le(t){t.sort(Be)}function Be(t,e){return t[0]-e[0]}const De=/^[\w+.-]+:\/\//,Je=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Xe=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var v;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(v||(v={}));function je(t){return De.test(t)}function We(t){return t.startsWith("//")}function _e(t){return t.startsWith("/")}function Ke(t){return t.startsWith("file:")}function ne(t){return/^[.?#]/.test(t)}function B(t){const e=Je.exec(t);return ye(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Ue(t){const e=Xe.exec(t),n=e[2];return ye("file:","",e[1]||"","",_e(n)?n:"/"+n,e[3]||"",e[4]||"")}function ye(t,e,n,s,i,r,a){return{scheme:t,user:e,host:n,port:s,path:i,query:r,hash:a,type:v.Absolute}}function se(t){if(We(t)){const n=B("http:"+t);return n.scheme="",n.type=v.SchemeRelative,n}if(_e(t)){const n=B("http://foo.com"+t);return n.scheme="",n.host="",n.type=v.AbsolutePath,n}if(Ke(t))return Ue(t);if(je(t))return B(t);const e=B("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?v.Query:t.startsWith("#")?v.Hash:v.RelativePath:v.Empty,e}function qe(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function ze(t,e){ve(e,e.type),t.path==="/"?t.path=e.path:t.path=qe(e.path)+t.path}function ve(t,e){const n=e<=v.RelativePath,s=t.path.split("/");let i=1,r=0,a=!1;for(let o=1;o<s.length;o++){const c=s[o];if(!c){a=!0;continue}if(a=!1,c!=="."){if(c===".."){r?(a=!0,r--,i--):n&&(s[i++]=c);continue}s[i++]=c,r++}}let l="";for(let o=1;o<i;o++)l+="/"+s[o];(!l||a&&!l.endsWith("/.."))&&(l+="/"),t.path=l}function He(t,e){if(!t&&!e)return"";const n=se(t);let s=n.type;if(e&&s!==v.Absolute){const r=se(e),a=r.type;switch(s){case v.Empty:n.hash=r.hash;case v.Hash:n.query=r.query;case v.Query:case v.RelativePath:ze(n,r);case v.AbsolutePath:n.user=r.user,n.host=r.host,n.port=r.port;case v.SchemeRelative:n.scheme=r.scheme}a>s&&(s=a)}ve(n,s);const i=n.query+n.hash;switch(s){case v.Hash:case v.Query:return i;case v.RelativePath:{const r=n.path.slice(1);return r?ne(e||t)&&!ne(r)?"./"+r+i:r+i:i||"."}case v.AbsolutePath:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}function ie(t,e){return e&&!e.endsWith("/")&&(e+="/"),He(t,e)}function Ge(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const C=0,Ve=1,Qe=2,Ze=3,Ye=4;function et(t,e){const n=re(t,0);if(n===t.length)return t;e||(t=t.slice());for(let s=n;s<t.length;s=re(t,s+1))t[s]=nt(t[s],e);return t}function re(t,e){for(let n=e;n<t.length;n++)if(!tt(t[n]))return n;return t.length}function tt(t){for(let e=1;e<t.length;e++)if(t[e][C]<t[e-1][C])return!1;return!0}function nt(t,e){return e||(t=t.slice()),t.sort(st)}function st(t,e){return t[C]-e[C]}let X=!1;function it(t,e,n,s){for(;n<=s;){const i=n+(s-n>>1),r=t[i][C]-e;if(r===0)return X=!0,i;r<0?n=i+1:s=i-1}return X=!1,n-1}function rt(t,e,n){for(let s=n+1;s<t.length&&t[s][C]===e;n=s++);return n}function at(t,e,n){for(let s=n-1;s>=0&&t[s][C]===e;n=s--);return n}function ot(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function lt(t,e,n,s){const{lastKey:i,lastNeedle:r,lastIndex:a}=n;let l=0,o=t.length-1;if(s===i){if(e===r)return X=a!==-1&&t[a][C]===e,a;e>=r?l=a===-1?0:a:o=a}return n.lastKey=s,n.lastNeedle=e,n.lastIndex=it(t,e,l,o)}const ct="`line` must be greater than 0 (lines start at line 1)",ut="`column` must be greater than or equal to 0 (columns start at column 0)",ae=-1,ht=1;class dt{constructor(e,n){const s=typeof e=="string";if(!s&&e._decodedMemo)return e;const i=s?JSON.parse(e):e,{version:r,file:a,names:l,sourceRoot:o,sources:c,sourcesContent:d}=i;this.version=r,this.file=a,this.names=l||[],this.sourceRoot=o,this.sources=c,this.sourcesContent=d,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;const p=ie(o||"",Ge(n));this.resolvedSources=c.map(S=>ie(S||"",p));const{mappings:u}=i;typeof u=="string"?(this._encoded=u,this._decoded=void 0):(this._encoded=void 0,this._decoded=et(u,s)),this._decodedMemo=ot(),this._bySources=void 0,this._bySourceMemos=void 0}}function ft(t){var e;return(e=t)._decoded||(e._decoded=Fe(t._encoded))}function pt(t,e){let{line:n,column:s,bias:i}=e;if(n--,n<0)throw new Error(ct);if(s<0)throw new Error(ut);const r=ft(t);if(n>=r.length)return D(null,null,null,null);const a=r[n],l=mt(a,t._decodedMemo,n,s,i||ht);if(l===-1)return D(null,null,null,null);const o=a[l];if(o.length===1)return D(null,null,null,null);const{names:c,resolvedSources:d}=t;return D(d[o[Ve]],o[Qe]+1,o[Ze],o.length===5?c[o[Ye]]:null)}function D(t,e,n,s){return{source:t,line:e,column:n,name:s}}function mt(t,e,n,s,i){let r=lt(t,s,e,n);return X?r=(i===ae?rt:at)(t,s,r):i===ae&&r++,r===-1||r===t.length?-1:r}function xe(t){return t!=null}function gt(t){return t===null||typeof t!="function"&&typeof t!="object"}function J(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function St(t){let e=-1,n=null,s=0,i=0,r=null;for(;e<=t.length;){r=t[e],e++;const a=t[e];if((a==='"'||a==="'"||a==="`")&&r!=="\\"&&(n===a?n=null:n||(n=a)),n||(a==="("&&s++,a===")"&&i++),s&&i&&s===i)return e}return null}const we=/^\s*at .*(?:\S:\d+|\(native\))/m,_t=/^(?:eval@)?(?:\[native code\])?$/,yt=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Ie(t){if(!t.includes(":"))return[t];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!n)return[t];let s=n[1];if(s.startsWith("async ")&&(s=s.slice(6)),s.startsWith("http:")||s.startsWith("https:")){const i=new URL(s);i.searchParams.delete("import"),i.searchParams.delete("browserv"),s=i.pathname+i.hash+i.search}if(s.startsWith("/@fs/")){const i=/^\/@fs\/[a-zA-Z]:\//.test(s);s=s.slice(i?5:4)}return[s,n[2]||void 0,n[3]||void 0]}function vt(t){let e=t.trim();if(_t.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,s=e.match(n),i=s&&s[1]?s[1]:void 0,[r,a,l]=Ie(e.replace(n,""));return!r||!a||!l?null:{file:r,method:i||"",line:Number.parseInt(a),column:Number.parseInt(l)}}function xt(t){let e=t.trim();if(!we.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const s=n.match(/ (\(.+\)$)/);n=s?n.replace(s[0],""):n;const[i,r,a]=Ie(s?s[1]:n);let l=s&&n||"",o=i&&["eval","<anonymous>"].includes(i)?void 0:i;return!o||!r||!a?null:(l.startsWith("async ")&&(l=l.slice(6)),o.startsWith("file://")&&(o=o.slice(7)),o=o.startsWith("node:")||o.startsWith("internal:")?o:Te(o),l&&(l=l.replace(/__vite_ssr_import_\d+__\./g,"")),{method:l,file:o,line:Number.parseInt(r),column:Number.parseInt(a)})}function j(t,e={}){const{ignoreStackEntries:n=yt}=e;return(we.test(t)?It(t):wt(t)).map(i=>{var r;e.getUrlId&&(i.file=e.getUrlId(i.file));const a=(r=e.getSourceMap)===null||r===void 0?void 0:r.call(e,i.file);if(!a||typeof a!="object"||!a.version)return oe(n,i.file)?null:i;const l=new dt(a),{line:o,column:c,source:d,name:p}=pt(l,i);let u=i.file;if(d){const S=i.file.startsWith("file://")?i.file:`file://${i.file}`,I=a.sourceRoot?new URL(a.sourceRoot,S):S;u=new URL(d,I).pathname,u.match(/\/\w:\//)&&(u=u.slice(1))}return oe(n,u)?null:o!=null&&c!=null?{line:o,column:c,file:u,method:p||i.method}:i}).filter(i=>i!=null)}function oe(t,e){return t.some(n=>e.match(n))}function wt(t){return t.split(`
3
- `).map(e=>vt(e)).filter(xe)}function It(t){return t.split(`
4
- `).map(e=>xt(e)).filter(xe)}function Et(t,e={}){if(!t||gt(t))return[];if(t.stacks)return t.stacks;const n=t.stack||"";let s=typeof n=="string"?j(n,e):[];if(!s.length){const i=t;i.fileName!=null&&i.lineNumber!=null&&i.columnNumber!=null&&(s=j(`${i.fileName}:${i.lineNumber}:${i.columnNumber}`,e)),i.sourceURL!=null&&i.line!=null&&i._column!=null&&(s=j(`${i.sourceURL}:${i.line}:${i.column}`,e))}return e.frameFilter&&(s=s.filter(i=>e.frameFilter(t,i)!==!1)),t.stacks=s,s}let bt=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(bt=(s,i)=>{const[r,a]=t(s);return r===e?"Promise{<pending>}":`Promise${r===n?"!":""}{${i.inspect(a,i)}}`})}catch{}let le=!1;try{const t=require("util");le=t.inspect?t.inspect.custom:!1}catch{le=!1}function $t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var W,ce;function kt(){if(ce)return W;ce=1;var t,e,n,s,i,r,a,l,o,c,d,p,u,S,I,b,$,E,k;return u=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,I=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,b=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,k=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,o=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,S=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,E=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,$=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,r=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,c=RegExp(l.source),W=function*(_,{jsx:T=!1}={}){var w,P,O,f,m,Z,h,R,Y,N,A,g,M,x;for({length:Z}=_,f=0,m="",x=[{tag:"JS"}],w=[],A=0,g=!1;f<Z;){switch(R=x[x.length-1],R.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[f]==="/"&&(E.test(m)||r.test(m))&&(u.lastIndex=f,h=u.exec(_))){f=u.lastIndex,m=h[0],g=!0,yield{type:"RegularExpressionLiteral",value:h[0],closed:h[1]!==void 0&&h[1]!=="\\"};continue}if(p.lastIndex=f,h=p.exec(_)){switch(M=h[0],Y=p.lastIndex,N=M,M){case"(":m==="?NonExpressionParenKeyword"&&x.push({tag:"JSNonExpressionParen",nesting:A}),A++,g=!1;break;case")":A--,g=!0,R.tag==="JSNonExpressionParen"&&A===R.nesting&&(x.pop(),N="?NonExpressionParenEnd",g=!1);break;case"{":p.lastIndex=0,O=!$.test(m)&&(E.test(m)||r.test(m)),w.push(O),g=!1;break;case"}":switch(R.tag){case"InterpolationInTemplate":if(w.length===R.nesting){b.lastIndex=f,h=b.exec(_),f=b.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",g=!1,yield{type:"TemplateMiddle",value:h[0]}):(x.pop(),g=!0,yield{type:"TemplateTail",value:h[0],closed:h[1]==="`"});continue}break;case"InterpolationInJSX":if(w.length===R.nesting){x.pop(),f+=1,m="}",yield{type:"JSXPunctuator",value:"}"};continue}}g=w.pop(),N=g?"?ExpressionBraceEnd":"}";break;case"]":g=!0;break;case"++":case"--":N=g?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(T&&(E.test(m)||r.test(m))){x.push({tag:"JSXTag"}),f+=1,m="<",yield{type:"JSXPunctuator",value:M};continue}g=!1;break;default:g=!1}f=Y,m=N,yield{type:"Punctuator",value:M};continue}if(t.lastIndex=f,h=t.exec(_)){switch(f=t.lastIndex,N=h[0],h[0]){case"for":case"if":case"while":case"with":m!=="."&&m!=="?."&&(N="?NonExpressionParenKeyword")}m=N,g=!r.test(h[0]),yield{type:h[1]==="#"?"PrivateIdentifier":"IdentifierName",value:h[0]};continue}if(I.lastIndex=f,h=I.exec(_)){f=I.lastIndex,m=h[0],g=!0,yield{type:"StringLiteral",value:h[0],closed:h[2]!==void 0};continue}if(d.lastIndex=f,h=d.exec(_)){f=d.lastIndex,m=h[0],g=!0,yield{type:"NumericLiteral",value:h[0]};continue}if(b.lastIndex=f,h=b.exec(_)){f=b.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",x.push({tag:"InterpolationInTemplate",nesting:w.length}),g=!1,yield{type:"TemplateHead",value:h[0]}):(g=!0,yield{type:"NoSubstitutionTemplate",value:h[0],closed:h[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=f,h=n.exec(_)){switch(f=n.lastIndex,N=h[0],h[0]){case"<":x.push({tag:"JSXTag"});break;case">":x.pop(),m==="/"||R.tag==="JSXTagEnd"?(N="?JSX",g=!0):x.push({tag:"JSXChildren"});break;case"{":x.push({tag:"InterpolationInJSX",nesting:w.length}),N="?InterpolationInJSX",g=!1;break;case"/":m==="<"&&(x.pop(),x[x.length-1].tag==="JSXChildren"&&x.pop(),x.push({tag:"JSXTagEnd"}))}m=N,yield{type:"JSXPunctuator",value:h[0]};continue}if(e.lastIndex=f,h=e.exec(_)){f=e.lastIndex,m=h[0],yield{type:"JSXIdentifier",value:h[0]};continue}if(s.lastIndex=f,h=s.exec(_)){f=s.lastIndex,m=h[0],yield{type:"JSXString",value:h[0],closed:h[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=f,h=i.exec(_)){f=i.lastIndex,m=h[0],yield{type:"JSXText",value:h[0]};continue}switch(_[f]){case"<":x.push({tag:"JSXTag"}),f++,m="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":x.push({tag:"InterpolationInJSX",nesting:w.length}),f++,m="?InterpolationInJSX",g=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(k.lastIndex=f,h=k.exec(_)){f=k.lastIndex,yield{type:"WhiteSpace",value:h[0]};continue}if(l.lastIndex=f,h=l.exec(_)){f=l.lastIndex,g=!1,a.test(m)&&(m="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:h[0]};continue}if(o.lastIndex=f,h=o.exec(_)){f=o.lastIndex,c.test(h[0])&&(g=!1,a.test(m)&&(m="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:h[0],closed:h[1]!==void 0};continue}if(S.lastIndex=f,h=S.exec(_)){f=S.lastIndex,g=!1,yield{type:"SingleLineComment",value:h[0]};continue}P=String.fromCodePoint(_.codePointAt(f)),f+=P.length,m=P,g=!1,yield{type:R.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:P}}},W}kt();var Ee={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Ee.keyword);new Set(Ee.strict);var Nt={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},Pt=Object.entries(Nt);function z(t){return String(t)}z.open="";z.close="";function Rt(t=!1){let e=typeof process<"u"?process:void 0,n=(e==null?void 0:e.env)||{},s=(e==null?void 0:e.argv)||[];return!("NO_COLOR"in n||s.includes("--no-color"))&&("FORCE_COLOR"in n||s.includes("--color")||(e==null?void 0:e.platform)==="win32"||t&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function Ct(t=!1){let e=Rt(t),n=(a,l,o,c)=>{let d="",p=0;do d+=a.substring(p,c)+o,p=c+l.length,c=a.indexOf(l,p);while(~c);return d+a.substring(p)},s=(a,l,o=a)=>{let c=d=>{let p=String(d),u=p.indexOf(l,a.length);return~u?a+n(p,l,o,u)+l:a+p+l};return c.open=a,c.close=l,c},i={isColorSupported:e},r=a=>`\x1B[${a}m`;for(let[a,l]of Pt)i[a]=e?s(r(l[0]),r(l[1]),l[2]):z;return i}Ct();const H=/\r?\n/;function Tt(t,e,n){const s=t.split(H),i=/\r\n/.test(t)?2:1;let r=0;if(e>s.length)return t.length;for(let a=0;a<e-1;a++)r+=s[a].length+i;return r+n}function Ot(t,e){if(e>t.length)throw new Error(`offset is longer than source length! offset ${e} > length ${t.length}`);const n=t.split(H),s=/\r\n/.test(t)?2:1;let i=0,r=0;for(;r<n.length;r++){const a=n[r].length+s;if(i+a>=e)break;i+=a}return r+1}async function At(t,e){const n=(await Pe(async()=>{const{default:i}=await import("../../../../../magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js");return{default:i}},__vite__mapDeps([0,1,2,3]))).default,s=new Set(e.map(i=>i.file));await Promise.all(Array.from(s).map(async i=>{const r=e.filter(c=>c.file===i),a=await t.readSnapshotFile(i),l=new n(a);for(const c of r){const d=Tt(a,c.line,c.column);Jt(a,l,d,c.snapshot)}const o=l.toString();o!==a&&await t.saveSnapshotFile(i,o)}))}const Mt=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Ft(t,e,n,s){let i=t.slice(n);const r=Mt.exec(i);if(!r)return!1;i=i.slice(r.index);let a=St(i);if(a===null)return!1;a+=n+r.index;const l=n+r.index+r[0].length,o=Lt(t,l),c=`, ${be(s,t,n)}`;return o===a?e.appendLeft(a,c):e.overwrite(o,a,c),!0}function Lt(t,e){let n=1,s=0;for(;n!==s&&e<t.length;){const i=t[e++];i==="{"?n++:i==="}"&&s++}return e}function be(t,e,n){const s=Ot(e,n),r=e.split(H)[s-1].match(/^\s*/)[0]||"",a=r.includes(" ")?`${r} `:`${r} `,l=t.trim().replace(/\\/g,"\\\\").split(/\n/g),o=l.length<=1,c="`";return o?`${c}${l.join(`
5
- `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${c}`:`${c}
6
- ${l.map(d=>d?a+d:"").join(`
7
- `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
8
- ${r}${c}`}const ue="toMatchInlineSnapshot",he="toThrowErrorMatchingInlineSnapshot";function Bt(t,e){const n=e-ue.length;if(t.slice(n,e)===ue)return{code:t.slice(n),index:n};const s=e-he.length;return t.slice(e-s,e)===he?{code:t.slice(e-s),index:e-s}:{code:t.slice(e),index:e}}const Dt=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/;function Jt(t,e,n,s){const{code:i,index:r}=Bt(t,n),a=Dt.exec(i),l=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(i);if(!a||a.index!==(l==null?void 0:l.index))return Ft(t,e,r,s);const o=a[1],c=r+a.index+a[0].length,d=be(s,t,r);if(o===")")return e.appendRight(c-1,d),!0;const u=new RegExp(`(?:^|[^\\\\])${o}`).exec(t.slice(c));if(!u)return!1;const S=c+u.index+u[0].length;return e.overwrite(c-1,S,d),!0}const Xt=/^([^\S\n]*)\S/m;function gn(t){const e=t.match(Xt);if(!e||!e[1])return t;const n=e[1],s=t.split(/\n/g);if(s.length<=2||s[0].trim()!==""||s[s.length-1].trim()!=="")return t;for(let i=1;i<s.length-1;i++)if(s[i]!==""){if(s[i].indexOf(n)!==0)return t;s[i]=s[i].substring(n.length)}return s[s.length-1]="",t=s.join(`
9
- `),t}async function jt(t,e){await Promise.all(e.map(async n=>{n.readonly||await t.saveSnapshotFile(n.file,n.snapshot)}))}var K={exports:{}},de;function Wt(){if(de)return K.exports;de=1;/*
10
- * @version 1.4.0
11
- * @date 2015-10-26
12
- * @stability 3 - Stable
13
- * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
14
- * @license MIT License
15
- */var t=function(e,n){var s,i,r=1,a=0,l=0,o=String.alphabet;function c(d,p,u){if(u){for(s=p;u=c(d,s),u<76&&u>65;)++s;return+d.slice(p-1,s)}return u=o&&o.indexOf(d.charAt(p)),u>-1?u+76:(u=d.charCodeAt(p)||0,u<45||u>127?u:u<46?65:u<48?u-1:u<58?u+18:u<65?u-11:u<91?u+11:u<97?u-37:u<123?u+5:u-63)}if((e+="")!=(n+="")){for(;r;)if(i=c(e,a++),r=c(n,l++),i<76&&r<76&&i>66&&r>66&&(i=c(e,a,a),r=c(n,l,a=s),l=s),i!=r)return i<r?-1:1}return 0};try{K.exports=t}catch{String.naturalCompare=t}return K.exports}var Kt=Wt(),Ut=$t(Kt);const qt=(t,e,n,s,i,r)=>{const a=t.getMockName(),l=a==="vi.fn()"?"":` ${a}`;let o="";if(t.mock.calls.length!==0){const c=n+e.indent;o=` {${e.spacingOuter}${c}"calls": ${r(t.mock.calls,e,c,s,i)}${e.min?", ":","}${e.spacingOuter}${c}"results": ${r(t.mock.results,e,c,s,i)}${e.min?"":","}${e.spacingOuter}${n}}`}return`[MockFunction${l}]${o}`},zt=t=>t&&!!t._isMockFunction,Ht={serialize:qt,test:zt},{DOMCollection:Gt,DOMElement:Vt,Immutable:Qt,ReactElement:Zt,ReactTestComponent:Yt,AsymmetricMatcher:en}=Ce;let U=[Yt,Zt,Vt,Gt,Qt,en,Ht];function Sn(t){U=[t].concat(U)}function tn(){return U}function nn(t,e){return`${t} ${e}`}function sn(t){if(!/ \d+$/.test(t))throw new Error("Snapshot keys must end with a number.");return t.replace(/ \d+$/,"")}function rn(t,e){const n=e.updateSnapshot,s=Object.create(null);let i="",r=!1;if(t!=null)try{i=t,new Function("exports",i)(s)}catch{}return(n==="all"||n==="new")&&i&&(r=!0),{data:s,dirty:r}}function an(t){return t.includes(`
16
- `)?`
17
- ${t}
18
- `:t}function fe(t){return t.length>2&&t.startsWith(`
19
- `)&&t.endsWith(`
20
- `)?t.slice(1,-1):t}const on=!0,ln=!1;function cn(t,e=2,n={}){return G(Re(t,{escapeRegex:on,indent:e,plugins:tn(),printFunctionName:ln,...n}))}function un(t){return t.replace(/`|\\|\$\{/g,"\\$&")}function pe(t){return`\`${un(t)}\``}function G(t){return t.replace(/\r\n|\r/g,`
21
- `)}async function hn(t,e,n){const s=Object.keys(e).sort(Ut).map(l=>`exports[${pe(l)}] = ${pe(G(e[l]))};`),i=`${t.getHeader()}
22
-
23
- ${s.join(`
24
-
25
- `)}
26
- `,r=await t.readSnapshotFile(n);r!=null&&r===i||await t.saveSnapshotFile(n,i)}function q(t=[],e=[]){const n=Array.from(t);return e.forEach((s,i)=>{const r=n[i];Array.isArray(t[i])?n[i]=q(t[i],s):J(r)?n[i]=V(t[i],s):n[i]=s}),n}function V(t,e){if(J(t)&&J(e)){const n={...t};return Object.keys(e).forEach(s=>{J(e[s])&&!e[s].$$typeof?s in t?n[s]=V(t[s],e[s]):Object.assign(n,{[s]:e[s]}):Array.isArray(e[s])?n[s]=q(t[s],e[s]):Object.assign(n,{[s]:e[s]})}),n}else if(Array.isArray(t)&&Array.isArray(e))return q(t,e);return t}class $e extends Map{constructor(e,n){super(n),this.defaultFn=e}get(e){return this.has(e)||this.set(e,this.defaultFn(e)),super.get(e)}}class L extends $e{constructor(){super(()=>0);y(this,"_total")}valueOf(){return this._total=this.total()}increment(n){typeof this._total<"u"&&this._total++,this.set(n,this.get(n)+1)}total(){if(typeof this._total<"u")return this._total;let n=0;for(const s of this.values())n+=s;return n}}function me(t,e){return t.file===e.file&&t.column===e.column&&t.line===e.line}class Q{constructor(e,n,s,i){y(this,"_counters",new L);y(this,"_dirty");y(this,"_updateSnapshot");y(this,"_snapshotData");y(this,"_initialData");y(this,"_inlineSnapshots");y(this,"_inlineSnapshotStacks");y(this,"_testIdToKeys",new $e(()=>[]));y(this,"_rawSnapshots");y(this,"_uncheckedKeys");y(this,"_snapshotFormat");y(this,"_environment");y(this,"_fileExists");y(this,"expand");y(this,"_added",new L);y(this,"_matched",new L);y(this,"_unmatched",new L);y(this,"_updated",new L);this.testFilePath=e,this.snapshotPath=n;const{data:r,dirty:a}=rn(s,i);this._fileExists=s!=null,this._initialData={...r},this._snapshotData={...r},this._dirty=a,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=i.expand||!1,this._updateSnapshot=i.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...i.snapshotFormat},this._environment=i.snapshotEnvironment}get added(){return this._added}set added(e){this._added._total=e}get matched(){return this._matched}set matched(e){this._matched._total=e}get unmatched(){return this._unmatched}set unmatched(e){this._unmatched._total=e}get updated(){return this._updated}set updated(e){this._updated._total=e}static async create(e,n){const s=await n.snapshotEnvironment.resolvePath(e),i=await n.snapshotEnvironment.readSnapshotFile(s);return new Q(e,s,i,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(e){this._uncheckedKeys.forEach(n=>{/ \d+$| > /.test(n.slice(e.length))&&this._uncheckedKeys.delete(n)})}clearTest(e){this._inlineSnapshots=this._inlineSnapshots.filter(n=>n.testId!==e),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(n=>n.testId!==e);for(const n of this._testIdToKeys.get(e)){const s=sn(n),i=this._counters.get(s);i>0&&((n in this._snapshotData||n in this._initialData)&&(this._snapshotData[n]=this._initialData[n]),this._counters.set(s,i-1))}this._testIdToKeys.delete(e),this.added.delete(e),this.updated.delete(e),this.matched.delete(e),this.unmatched.delete(e)}_inferInlineSnapshotStack(e){const n=e.findIndex(i=>i.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(n!==-1)return e[n+3];const s=e.findIndex(i=>i.method.includes("__INLINE_SNAPSHOT__"));return s!==-1?e[s+2]:null}_addSnapshot(e,n,s){this._dirty=!0,s.stack?this._inlineSnapshots.push({snapshot:n,testId:s.testId,...s.stack}):s.rawSnapshot?this._rawSnapshots.push({...s.rawSnapshot,snapshot:n}):this._snapshotData[e]=n}async save(){const e=Object.keys(this._snapshotData).length,n=this._inlineSnapshots.length,s=this._rawSnapshots.length,i=!e&&!n&&!s,r={deleted:!1,saved:!1};return(this._dirty||this._uncheckedKeys.size)&&!i?(e&&(await hn(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),n&&await At(this._environment,this._inlineSnapshots),s&&await jt(this._environment,this._rawSnapshots),r.saved=!0):!e&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),r.deleted=!0),r}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach(e=>delete this._snapshotData[e]),this._uncheckedKeys.clear())}match({testId:e,testName:n,received:s,key:i,inlineSnapshot:r,isInline:a,error:l,rawSnapshot:o}){this._counters.increment(n);const c=this._counters.get(n);i||(i=nn(n,c)),this._testIdToKeys.get(e).push(i),a&&this._snapshotData[i]!==void 0||this._uncheckedKeys.delete(i);let d=o&&typeof s=="string"?s:cn(s,void 0,this._snapshotFormat);o||(d=an(d)),o&&o.content&&o.content.match(/\r\n/)&&!d.match(/\r\n/)&&(o.content=G(o.content));const p=a?r:o?o.content:this._snapshotData[i],u=o?p:p==null?void 0:p.trim(),S=u===(o?d:d.trim()),I=p!==void 0,b=a||this._fileExists||o&&o.content!=null;S&&!a&&!o&&(this._snapshotData[i]=d);let $;if(a){var E,k;const _=Et(l||new Error("snapshot"),{ignoreStackEntries:[]}),T=this._inferInlineSnapshotStack(_);if(!T)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
27
- ${JSON.stringify(_)}`);$=((E=(k=this.environment).processStackTrace)===null||E===void 0?void 0:E.call(k,T))||T,$.column--;const w=this._inlineSnapshotStacks.filter(P=>me(P,$));if(w.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(O=>!me(O,$));const P=w.find(O=>O.snapshot!==d);if(P)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:d,expected:P.snapshot})}this._inlineSnapshotStacks.push({...$,testId:e,snapshot:d})}return I&&this._updateSnapshot==="all"||(!I||!b)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?S?this.matched.increment(e):(I?this.updated.increment(e):this.added.increment(e),this._addSnapshot(i,d,{stack:$,testId:e,rawSnapshot:o})):(this._addSnapshot(i,d,{stack:$,testId:e,rawSnapshot:o}),this.added.increment(e)),{actual:"",count:c,expected:"",key:i,pass:!0}):S?(this.matched.increment(e),{actual:"",count:c,expected:"",key:i,pass:!0}):(this.unmatched.increment(e),{actual:o?d:fe(d),count:c,expected:u!==void 0?o?u:fe(u):void 0,key:i,pass:!1})}async pack(){const e={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},n=this.getUncheckedCount(),s=this.getUncheckedKeys();n&&this.removeUncheckedKeys();const i=await this.save();return e.fileDeleted=i.deleted,e.added=this.added.total(),e.matched=this.matched.total(),e.unmatched=this.unmatched.total(),e.updated=this.updated.total(),e.unchecked=i.deleted?0:n,e.uncheckedKeys=Array.from(s),e}}function ge(t,e,n,s){const i=new Error(t);return Object.defineProperty(i,"actual",{value:n,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"expected",{value:s,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(i,"diffOptions",{value:{expand:e}}),i}class _n{constructor(e={}){y(this,"snapshotStateMap",new Map);this.options=e}async setup(e,n){this.snapshotStateMap.has(e)||this.snapshotStateMap.set(e,await Q.create(e,n))}async finish(e){const s=await this.getSnapshotState(e).pack();return this.snapshotStateMap.delete(e),s}skipTest(e,n){this.getSnapshotState(e).markSnapshotsAsCheckedForTest(n)}clearTest(e,n){this.getSnapshotState(e).clearTest(n)}getSnapshotState(e){const n=this.snapshotStateMap.get(e);if(!n)throw new Error(`The snapshot state for '${e}' is not found. Did you call 'SnapshotClient.setup()'?`);return n}assert(e){const{filepath:n,name:s,testId:i=s,message:r,isInline:a=!1,properties:l,inlineSnapshot:o,error:c,errorMessage:d,rawSnapshot:p}=e;let{received:u}=e;if(!n)throw new Error("Snapshot cannot be used outside of test");const S=this.getSnapshotState(n);if(typeof l=="object"){if(typeof u!="object"||!u)throw new Error("Received value must be an object when the matcher has properties");try{var I,b;if(((I=(b=this.options).isEqual)===null||I===void 0?void 0:I.call(b,u,l))??!1)u=V(u,l);else throw ge("Snapshot properties mismatched",S.expand,u,l)}catch(w){throw w.message=d||"Snapshot mismatched",w}}const $=[s,...r?[r]:[]].join(" > "),{actual:E,expected:k,key:_,pass:T}=S.match({testId:i,testName:$,received:u,isInline:a,error:c,inlineSnapshot:o,rawSnapshot:p});if(!T)throw ge(`Snapshot \`${_||"unknown"}\` mismatched`,S.expand,p?E:E==null?void 0:E.trim(),p?k:k==null?void 0:k.trim())}async assertRaw(e){if(!e.rawSnapshot)throw new Error("Raw snapshot is required");const{filepath:n,rawSnapshot:s}=e;if(s.content==null){if(!n)throw new Error("Snapshot cannot be used outside of test");const i=this.getSnapshotState(n);e.filepath||(e.filepath=n),s.file=await i.environment.resolveRawPath(n,s.file),s.content=await i.environment.readSnapshotFile(s.file)??void 0}return this.assert(e)}clear(){this.snapshotStateMap.clear()}}export{_n as SnapshotClient,Q as SnapshotState,Sn as addSerializer,tn as getSerializers,gn as stripSnapshotIndentation};
@@ -1 +0,0 @@
1
- import{internalSpyOn as d,getInternalState as I}from"../../../../../tinyspy@4.0.3/node_modules/tinyspy/dist/index.js";const R=new Set;function j(o){return typeof o=="function"&&"_isMockFunction"in o&&o._isMockFunction}function P(o,e,n){const l=n?{[{get:"getter",set:"setter"}[n]]:e}:e;let i;const s=b(o,e),m=s&&s[n||"value"];j(m)&&(i=m.mock._state());const r=d(o,l),u=O(r);return i&&u.mock._state(i),u}let C=0;function O(o){const e=o;let n,c=[],l=!1,i=[],s=[],m=[];const r=I(o),u={get calls(){return r.calls},get contexts(){return s},get instances(){return i},get invocationCallOrder(){return m},get results(){return r.results.map(([t,a])=>({type:t==="error"?"throw":"return",value:a}))},get settledResults(){return r.resolves.map(([t,a])=>({type:t==="error"?"rejected":"fulfilled",value:a}))},get lastCall(){return r.calls[r.calls.length-1]},_state(t){return t&&(n=t.implementation,c=t.onceImplementations,l=t.implementationChangedTemporarily),{implementation:n,onceImplementations:c,implementationChangedTemporarily:l}}};function k(...t){return i.push(this),s.push(this),m.push(++C),(l?n:c.shift()||n||r.getOriginal()||(()=>{})).apply(this,t)}let g=e.name;e.getMockName=()=>g||"vi.fn()",e.mockName=t=>(g=t,e),e.mockClear=()=>(r.reset(),i=[],s=[],m=[],e),e.mockReset=()=>(e.mockClear(),n=void 0,c=[],e),e.mockRestore=()=>(e.mockReset(),r.restore(),e),Symbol.dispose&&(e[Symbol.dispose]=()=>e.mockRestore()),e.getMockImplementation=()=>l?n:c.at(0)||n,e.mockImplementation=t=>(n=t,r.willCall(k),e),e.mockImplementationOnce=t=>(c.push(t),e);function h(t,a){const f=n;n=t,r.willCall(k),l=!0;const y=()=>{n=f,l=!1},p=a();return typeof p=="object"&&p&&typeof p.then=="function"?p.then(()=>(y(),e)):(y(),e)}return e.withImplementation=h,e.mockReturnThis=()=>e.mockImplementation(function(){return this}),e.mockReturnValue=t=>e.mockImplementation(()=>t),e.mockReturnValueOnce=t=>e.mockImplementationOnce(()=>t),e.mockResolvedValue=t=>e.mockImplementation(()=>Promise.resolve(t)),e.mockResolvedValueOnce=t=>e.mockImplementationOnce(()=>Promise.resolve(t)),e.mockRejectedValue=t=>e.mockImplementation(()=>Promise.reject(t)),e.mockRejectedValueOnce=t=>e.mockImplementationOnce(()=>Promise.reject(t)),Object.defineProperty(e,"mock",{get:()=>u}),r.willCall(k),R.add(e),e}function v(o){const e=O(d({spy:o||function(){}},"spy"));return o&&e.mockImplementation(o),e}function b(o,e){const n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;let c=Object.getPrototypeOf(o);for(;c!==null;){const l=Object.getOwnPropertyDescriptor(c,e);if(l)return l;c=Object.getPrototypeOf(c)}}export{v as fn,j as isMockFunction,R as mocks,P as spyOn};
@@ -1,2 +0,0 @@
1
- import{printDiffOrStringify as a}from"./diff.js";import{s as c,f as p}from"./chunk-_commonjsHelpers.js";import"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import"../../../../../loupe@3.1.3/node_modules/loupe/lib/index.js";const m="@@__IMMUTABLE_RECORD__@@",g="@@__IMMUTABLE_ITERABLE__@@";function y(t){return t&&(t[g]||t[m])}const d=Object.getPrototypeOf({});function u(t){return t instanceof Error?`<unserializable>: ${t.message}`:typeof t=="string"?`<unserializable>: ${t}`:"<unserializable>"}function o(t,n=new WeakMap){if(!t||typeof t=="string")return t;if(t instanceof Error&&"toJSON"in t&&typeof t.toJSON=="function"){const r=t.toJSON();return r&&r!==t&&typeof r=="object"&&(typeof t.message=="string"&&s(()=>r.message??(r.message=t.message)),typeof t.stack=="string"&&s(()=>r.stack??(r.stack=t.stack)),typeof t.name=="string"&&s(()=>r.name??(r.name=t.name)),t.cause!=null&&s(()=>r.cause??(r.cause=o(t.cause,n)))),o(r,n)}if(typeof t=="function")return`Function<${t.name||"anonymous"}>`;if(typeof t=="symbol")return t.toString();if(typeof t!="object")return t;if(y(t))return o(t.toJSON(),n);if(t instanceof Promise||t.constructor&&t.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&t instanceof Element)return t.tagName;if(typeof t.asymmetricMatch=="function")return`${t.toString()} ${p(t.sample)}`;if(typeof t.toJSON=="function")return o(t.toJSON(),n);if(n.has(t))return n.get(t);if(Array.isArray(t)){const r=new Array(t.length);return n.set(t,r),t.forEach((e,i)=>{try{r[i]=o(e,n)}catch(f){r[i]=u(f)}}),r}else{const r=Object.create(null);n.set(t,r);let e=t;for(;e&&e!==d;)Object.getOwnPropertyNames(e).forEach(i=>{if(!(i in r))try{r[i]=o(t[i],n)}catch(f){delete r[i],r[i]=u(f)}}),e=Object.getPrototypeOf(e);return r}}function s(t){try{return t()}catch{}}function O(t){return t.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function _(t,n,r=new WeakSet){if(!t||typeof t!="object")return{message:String(t)};const e=t;(e.showDiff||e.showDiff===void 0&&e.expected!==void 0&&e.actual!==void 0)&&(e.diff=a(e.actual,e.expected,{...n,...e.diffOptions})),"expected"in e&&typeof e.expected!="string"&&(e.expected=c(e.expected,10)),"actual"in e&&typeof e.actual!="string"&&(e.actual=c(e.actual,10));try{typeof e.message=="string"&&(e.message=O(e.message))}catch{}try{!r.has(e)&&typeof e.cause=="object"&&(r.add(e),e.cause=_(e.cause,n,r))}catch{}try{return o(e)}catch(i){return o(new Error(`Failed to fully serialize error: ${i==null?void 0:i.message}
2
- Inner error message: ${e==null?void 0:e.message}`))}}export{_ as processError,o as serializeError,o as serializeValue};
@@ -1 +0,0 @@
1
- import"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import"../../../../../loupe@3.1.3/node_modules/loupe/lib/index.js";var P,D;function F(){if(D)return P;D=1;var f,p,I,x,y,c,g,d,S,_,v,m,J,X,k,u,L,w,E;return J=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,m=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,f=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,k=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,v=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,u=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,E=/[\t\v\f\ufeff\p{Zs}]+/yu,d=/\r?\n|[\r\u2028\u2029]/y,S=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,X=/\/\/.*/y,I=/[<>.:={}]|\/(?![\/*])/y,p=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,x=/(['"])(?:(?!\1)[^])*(\1)?/y,y=/[^<>{}]+/y,w=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,L=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,c=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,g=/^(?:return|throw|yield)$/,_=RegExp(d.source),P=function*(s,{jsx:q=!1}={}){var o,b,N,t,n,C,e,r,$,l,T,a,h,i;for({length:C}=s,t=0,n="",i=[{tag:"JS"}],o=[],T=0,a=!1;t<C;){switch(r=i[i.length-1],r.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(s[t]==="/"&&(w.test(n)||c.test(n))&&(J.lastIndex=t,e=J.exec(s))){t=J.lastIndex,n=e[0],a=!0,yield{type:"RegularExpressionLiteral",value:e[0],closed:e[1]!==void 0&&e[1]!=="\\"};continue}if(m.lastIndex=t,e=m.exec(s)){switch(h=e[0],$=m.lastIndex,l=h,h){case"(":n==="?NonExpressionParenKeyword"&&i.push({tag:"JSNonExpressionParen",nesting:T}),T++,a=!1;break;case")":T--,a=!0,r.tag==="JSNonExpressionParen"&&T===r.nesting&&(i.pop(),l="?NonExpressionParenEnd",a=!1);break;case"{":m.lastIndex=0,N=!L.test(n)&&(w.test(n)||c.test(n)),o.push(N),a=!1;break;case"}":switch(r.tag){case"InterpolationInTemplate":if(o.length===r.nesting){u.lastIndex=t,e=u.exec(s),t=u.lastIndex,n=e[0],e[1]==="${"?(n="?InterpolationInTemplate",a=!1,yield{type:"TemplateMiddle",value:e[0]}):(i.pop(),a=!0,yield{type:"TemplateTail",value:e[0],closed:e[1]==="`"});continue}break;case"InterpolationInJSX":if(o.length===r.nesting){i.pop(),t+=1,n="}",yield{type:"JSXPunctuator",value:"}"};continue}}a=o.pop(),l=a?"?ExpressionBraceEnd":"}";break;case"]":a=!0;break;case"++":case"--":l=a?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(q&&(w.test(n)||c.test(n))){i.push({tag:"JSXTag"}),t+=1,n="<",yield{type:"JSXPunctuator",value:h};continue}a=!1;break;default:a=!1}t=$,n=l,yield{type:"Punctuator",value:h};continue}if(f.lastIndex=t,e=f.exec(s)){switch(t=f.lastIndex,l=e[0],e[0]){case"for":case"if":case"while":case"with":n!=="."&&n!=="?."&&(l="?NonExpressionParenKeyword")}n=l,a=!c.test(e[0]),yield{type:e[1]==="#"?"PrivateIdentifier":"IdentifierName",value:e[0]};continue}if(k.lastIndex=t,e=k.exec(s)){t=k.lastIndex,n=e[0],a=!0,yield{type:"StringLiteral",value:e[0],closed:e[2]!==void 0};continue}if(v.lastIndex=t,e=v.exec(s)){t=v.lastIndex,n=e[0],a=!0,yield{type:"NumericLiteral",value:e[0]};continue}if(u.lastIndex=t,e=u.exec(s)){t=u.lastIndex,n=e[0],e[1]==="${"?(n="?InterpolationInTemplate",i.push({tag:"InterpolationInTemplate",nesting:o.length}),a=!1,yield{type:"TemplateHead",value:e[0]}):(a=!0,yield{type:"NoSubstitutionTemplate",value:e[0],closed:e[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(I.lastIndex=t,e=I.exec(s)){switch(t=I.lastIndex,l=e[0],e[0]){case"<":i.push({tag:"JSXTag"});break;case">":i.pop(),n==="/"||r.tag==="JSXTagEnd"?(l="?JSX",a=!0):i.push({tag:"JSXChildren"});break;case"{":i.push({tag:"InterpolationInJSX",nesting:o.length}),l="?InterpolationInJSX",a=!1;break;case"/":n==="<"&&(i.pop(),i[i.length-1].tag==="JSXChildren"&&i.pop(),i.push({tag:"JSXTagEnd"}))}n=l,yield{type:"JSXPunctuator",value:e[0]};continue}if(p.lastIndex=t,e=p.exec(s)){t=p.lastIndex,n=e[0],yield{type:"JSXIdentifier",value:e[0]};continue}if(x.lastIndex=t,e=x.exec(s)){t=x.lastIndex,n=e[0],yield{type:"JSXString",value:e[0],closed:e[2]!==void 0};continue}break;case"JSXChildren":if(y.lastIndex=t,e=y.exec(s)){t=y.lastIndex,n=e[0],yield{type:"JSXText",value:e[0]};continue}switch(s[t]){case"<":i.push({tag:"JSXTag"}),t++,n="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":i.push({tag:"InterpolationInJSX",nesting:o.length}),t++,n="?InterpolationInJSX",a=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(E.lastIndex=t,e=E.exec(s)){t=E.lastIndex,yield{type:"WhiteSpace",value:e[0]};continue}if(d.lastIndex=t,e=d.exec(s)){t=d.lastIndex,a=!1,g.test(n)&&(n="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:e[0]};continue}if(S.lastIndex=t,e=S.exec(s)){t=S.lastIndex,_.test(e[0])&&(a=!1,g.test(n)&&(n="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:e[0],closed:e[1]!==void 0};continue}if(X.lastIndex=t,e=X.exec(s)){t=X.lastIndex,a=!1,yield{type:"SingleLineComment",value:e[0]};continue}b=String.fromCodePoint(s.codePointAt(t)),t+=b.length,n=b,a=!1,yield{type:r.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:b}}},P}F();var M={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(M.keyword);new Set(M.strict);const A=Symbol("vitest:SAFE_TIMERS");function H(){const{setTimeout:f,setInterval:p,clearInterval:I,clearTimeout:x,setImmediate:y,clearImmediate:c,queueMicrotask:g}=globalThis[A]||globalThis,{nextTick:d}=globalThis[A]||globalThis.process||{nextTick:S=>S()};return{nextTick:d,setTimeout:f,setInterval:p,clearInterval:I,clearTimeout:x,setImmediate:y,clearImmediate:c,queueMicrotask:g}}export{H as getSafeTimers};