@ncino/web-components 4.3.0-preview.9 → 5.0.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.
- package/dist/_virtual/_commonjsHelpers.js +1 -1
- package/dist/_virtual/index_html.js +1 -1
- package/dist/_virtual/index_react.js +1 -1
- package/dist/_virtual/preload-helper.js +1 -1
- package/dist/assets/node_modules/.pnpm/ckeditor5@45.2.1/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
- package/dist/components/accordion/gator/base/accordion.gator.figma.js +10 -0
- package/dist/components/accordion/gator/base/accordion.gator.js +11 -9
- package/dist/components/accordion/gator/group/accordion-group.gator.figma.js +3 -0
- package/dist/components/accordion/gator/group/accordion-group.gator.js +2 -2
- package/dist/components/alert/gator/base/alert.gator.js +2 -2
- package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +2 -2
- package/dist/components/alert/gator/title/alert-title.gator.js +2 -2
- package/dist/components/avatar/gator/avatar.gator.js +5 -5
- package/dist/components/badge/gator/badge.gator.js +2 -2
- package/dist/components/banner/gator/banner.gator.figma.js +8 -0
- package/dist/components/banner/gator/banner.gator.js +6 -5
- package/dist/components/boolean/boolean.gator.figma.js +11 -0
- package/dist/components/boolean/boolean.gator.js +6 -6
- package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.figma.js +3 -0
- package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +2 -2
- package/dist/components/breadcrumbs/gator/container/breadcrumbs.gator.figma.js +5 -0
- package/dist/components/button/gator/button.gator.js +4 -4
- package/dist/components/button-group/gator/button-group.gator.js +2 -2
- package/dist/components/card/gator/footer/card-footer.gator.js +2 -2
- package/dist/components/card/gator/header/card-header.gator.js +2 -2
- package/dist/components/checkbox/checkbox.gator.js +5 -5
- package/dist/components/checkbox-group/checkbox-group.gator.js +8 -8
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/chip/gator/chip.gator.js +15 -5
- package/dist/components/combobox/base/combobox.js +1 -1
- package/dist/components/combobox/base/combobox.slds.js +13 -13
- package/dist/components/date-picker/base/gator/datepicker.gator.js +18 -18
- package/dist/components/date-picker/year-month-selector/year-month-selector.gator.js +2 -2
- package/dist/components/headline-card/gator/headline-card.gator.js +2 -2
- package/dist/components/icon/gator/icon.gator.js +2 -2
- package/dist/components/illustration/gator/illustration.gator.js +2 -2
- package/dist/components/input/base/input-base.gator.js +1 -1
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +11 -11
- package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
- package/dist/components/input/gator/input-date/input-date.gator.js +15 -15
- package/dist/components/input/gator/input-file/input-file.gator.js +3 -3
- package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
- package/dist/components/input/gator/input-phone/input-phone.gator.js +2 -2
- package/dist/components/input/gator/input-search/input-search.gator.js +2 -2
- package/dist/components/input/gator/input-text/input-text.gator.js +1 -1
- package/dist/components/input/gator/input-time/input-time.gator.js +2 -2
- package/dist/components/list/gator/list/list.gator.js +2 -2
- package/dist/components/list/gator/list-item/list-item.gator.js +6 -6
- package/dist/components/menu/base/gator/menu.gator.js +3 -3
- package/dist/components/menu/base/slds/menu.slds.js +2 -2
- package/dist/components/menu/menu-item/gator/menu-item.gator.js +2 -2
- package/dist/components/menu/menu-submenu/menu-submenu.js +1 -1
- package/dist/components/modal/gator/modal.gator.js +38 -39
- package/dist/components/page-header/gator/page-header.gator.js +2 -2
- package/dist/components/panel/gator/panel.gator.js +13 -13
- package/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/components/pill/pill.slds.js +3 -3
- package/dist/components/popover/gator/popover.gator.js +10 -10
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.gator.js +2 -2
- package/dist/components/radio-group/radio-group.gator.js +2 -2
- package/dist/components/selection-box-group/selection-box-group.gator.js +5 -5
- package/dist/components/selector/gator/selector.gator.js +2 -2
- package/dist/components/switch/gator/switch.gator.js +2 -2
- package/dist/components/table/gator/table-bulk-controls/table-bulk-controls.gator.js +16 -0
- package/dist/components/table/gator/table.gator.js +55 -36
- package/dist/components/tabs/gator/tabset/tabset.gator.js +3 -3
- package/dist/components/text-detail/gator/text-detail.gator.figma.js +30 -0
- package/dist/components/text-detail/gator/text-detail.gator.js +17 -18
- package/dist/components/time-picker/gator/time-picker.gator.js +19 -19
- package/dist/components/toast/gator/base/toast.gator.js +8 -9
- package/dist/components/toast/gator/subtitle/toast-subtitle.gator.js +2 -2
- package/dist/components/toast/gator/title/toast-title.gator.js +2 -2
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast-container/gator/toast-container.gator.js +18 -0
- package/dist/components/toast-container/index.js +1 -0
- package/dist/components/toaster/gator/toaster.gator.js +5 -0
- package/dist/components/toaster/index.js +1 -0
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/index.gator.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.services.js +1 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-autosave@45.2.1/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@45.2.1/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@45.2.1/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +10 -10
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-cloud-services@45.2.1/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-code-block@45.2.1/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +5 -5
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@45.2.1/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +12 -12
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@45.2.1/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-font@45.2.1/node_modules/@ckeditor/ckeditor5-font/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-heading@45.2.1/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@45.2.1/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@45.2.1/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +6 -6
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@45.2.1/node_modules/@ckeditor/ckeditor5-image/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@45.2.1/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@45.2.1/node_modules/@ckeditor/ckeditor5-link/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@45.2.1/node_modules/@ckeditor/ckeditor5-list/dist/index.js +5 -5
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-markdown-gfm@45.2.1/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@45.2.1/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paragraph@45.2.1/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.2.1/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +9 -9
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.2.1/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@45.2.1/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-style@45.2.1/node_modules/@ckeditor/ckeditor5-style/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@45.2.1/node_modules/@ckeditor/ckeditor5-table/dist/index.js +6 -6
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +10 -10
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-undo@45.2.1/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-upload@45.2.1/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +38 -38
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-watchdog@45.2.1/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.2.1/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@deltablot_dropzone@7.3.1/node_modules/@deltablot/dropzone/dist/dropzone.js +1 -1
- package/dist/node_modules/.pnpm/@fastify_busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js +1 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/common/fetch.js +1 -0
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +1 -0
- package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/helpers.js +1 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.4/node_modules/@figma/code-connect/package.json.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.4/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +1 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js +2 -2
- package/dist/node_modules/.pnpm/@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 +9 -9
- package/dist/node_modules/.pnpm/@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 +1 -1
- package/dist/node_modules/.pnpm/@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 +22 -22
- package/dist/node_modules/.pnpm/@storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/instrumenter/dist/index.js +36 -36
- package/dist/node_modules/.pnpm/@storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_/node_modules/@storybook/test/dist/index.js +111 -111
- package/dist/node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.10_typescript@5.8.3__playwright@1.53.2_77c47ac19cbe97978028e1e5ac862536/node_modules/@vitest/browser/context.js +1 -0
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +8 -8
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +5 -5
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +12 -12
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +21 -21
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +2 -2
- package/dist/node_modules/.pnpm/axe-core@4.10.3/node_modules/axe-core/axe.js +4 -4
- package/dist/node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js +3 -3
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/unset.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/debounce.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js +1 -1
- package/dist/node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/async-directive.js +1 -1
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directive-helpers.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/class-map.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js +2 -2
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/repeat.js +5 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js +3 -3
- package/dist/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +1 -1
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cache.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cache/cachestorage.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/cookies/parse.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/headers.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/index.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/request.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/response.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js +2 -2
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/connection.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/events.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/frame.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/receiver.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/util.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/websocket/websocket.js +1 -1
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +8 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +12 -0
- package/dist/packages/web-components/src/components/accordion/gator/base/accordion.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/accordion/gator/group/accordion-group.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/banner/gator/banner.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/button-card/gator/button-card.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/card/gator/base/card.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/chip/gator/chip.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/switch/gator/switch.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/table/gator/table-bulk-controls/table-bulk-controls.gator.scss.js +1 -0
- package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/toast/gator/base/toast.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/toast-container/gator/toast-container.gator.scss.js +1 -0
- package/dist/packages/web-components/src/components/toaster/gator/toaster.gator.scss.js +1 -0
- package/dist/packages/web-components/src/index.slds.scss.js +1 -1
- package/dist/services/toaster-service.js +1 -0
- package/dist/types/components/accordion/gator/base/accordion.gator.d.ts +13 -3
- package/dist/types/components/accordion/gator/base/accordion.gator.figma.d.ts +1 -0
- package/dist/types/components/accordion/gator/group/accordion-group.gator.d.ts +5 -0
- package/dist/types/components/accordion/gator/group/accordion-group.gator.figma.d.ts +1 -0
- package/dist/types/components/avatar/gator/avatar.gator.d.ts +1 -0
- package/dist/types/components/banner/gator/banner.gator.d.ts +5 -0
- package/dist/types/components/banner/gator/banner.gator.figma.d.ts +1 -0
- package/dist/types/components/boolean/boolean.gator.figma.d.ts +1 -0
- package/dist/types/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.figma.d.ts +1 -0
- package/dist/types/components/breadcrumbs/gator/container/breadcrumbs.gator.figma.d.ts +1 -0
- package/dist/types/components/chip/chip.d.ts +10 -0
- package/dist/types/components/chip/gator/chip.gator.d.ts +1 -0
- package/dist/types/components/modal/gator/modal.gator.d.ts +1 -1
- package/dist/types/components/table/gator/table-bulk-controls/table-bulk-controls.gator.d.ts +29 -0
- package/dist/types/components/table/gator/table-bulk-controls/table-bulk-controls.gator.test.d.ts +0 -0
- package/dist/types/components/table/gator/table.gator.d.ts +9 -0
- package/dist/types/components/text-detail/gator/text-detail.gator.d.ts +4 -2
- package/dist/types/components/text-detail/gator/text-detail.gator.figma.d.ts +1 -0
- package/dist/types/components/toast/toast.d.ts +14 -0
- package/dist/types/components/toast-container/gator/toast-container.gator.d.ts +15 -0
- package/dist/types/components/toast-container/gator/toast-container.gator.test.d.ts +0 -0
- package/dist/types/components/toast-container/index.d.ts +1 -0
- package/dist/types/components/toaster/gator/toaster.gator.d.ts +32 -0
- package/dist/types/components/toaster/gator/toaster.gator.test.d.ts +0 -0
- package/dist/types/components/toaster/index.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.gator.d.ts +2 -0
- package/dist/types/index.services.d.ts +1 -0
- package/dist/types/services/toaster-service.d.ts +117 -0
- package/dist/types/services/toaster-service.test.d.ts +1 -0
- package/dist/utils/accessibility-utils.js +1 -1
- package/dist/utils/datatestid-utils.js +1 -1
- package/dist/utils/lightdom-utils.js +1 -1
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/dist/utils/vitest-utils.js +1 -1
- package/package.json +16 -12
- package/web-types.json +293 -114
- package/dist/_virtual/sourcemap-codec.umd.js +0 -1
- package/dist/_virtual/sourcemap-codec.umd2.js +0 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/common/fetch.js +0 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/connect/figma_rest_api.js +0 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/package.json.js +0 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -1
- package/dist/node_modules/.pnpm/@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 -1
- package/dist/node_modules/.pnpm/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 +0 -8
- package/dist/node_modules/.pnpm/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 +0 -12
- package/dist/packages/web-components/src/components/accordion/gator/base/accordion.gator.tokens.scss.js +0 -1
- package/dist/packages/web-components/src/components/accordion/gator/group/accordion-group.gator.tokens.scss.js +0 -1
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/client/figma_client.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/logging.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/common/updates.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/external_types.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/connect/index_common.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/index_html.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/html/template_literal.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/external.js +0 -0
- /package/dist/node_modules/.pnpm/{@figma_code-connect@1.3.3 → @figma_code-connect@1.3.4}/node_modules/@figma/code-connect/dist/react/index_react.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5 → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.10_@vitest_browser@3.2.4_@vitest_ui@3_8c34ee540b1f52c214debce201d1e515}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import{Plugin as u,Command as _}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{transformSets as B,NoOperation as b}from"../../../../../@ckeditor_ckeditor5-engine@45.2.1/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ButtonView as y,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@45.2.1/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconUndo as f,IconRedo as p}from"../../../../../@ckeditor_ckeditor5-icons@45.2.1/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/class
|
|
4
|
+
*/class g extends _{_stack=[];_createdBatches=new WeakSet;constructor(t){super(t),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,o)=>{o[1]={...o[1]};const s=o[1];s.batchType||(s.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,o)=>{o[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,o={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,o){const s=this.editor.model,i=s.document,n=[],d=t.map(r=>r.getTransformedByOperations(o)),h=d.flat();for(const r of d){const l=r.filter(c=>c.root!=i.graveyard).filter(c=>!C(c,h));l.length&&(k(l),n.push(l[0]))}n.length&&s.change(r=>{r.setSelection(n,{backward:e})})}_undo(t,e){const o=this.editor.model,s=o.document;this._createdBatches.add(e);const i=t.operations.slice().filter(n=>n.isDocumentOperation);i.reverse();for(const n of i){const d=n.baseVersion+1,h=Array.from(s.history.getOperations(d)),l=B([n.getReversed()],h,{useRelations:!0,document:this.editor.model.document,forceWeakRemove:!0}).operationsA;for(let c of l){const m=c.affectedSelectable;m&&!o.canEditAt(m)&&(c=new b(c.baseVersion)),e.addOperation(c),o.applyOperation(c),s.history.setOperationAsUndone(n,c)}}}}function k(a){a.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;t<a.length;t++){const o=a[t-1].getJoined(a[t],!0);o&&(t--,a.splice(t,2,o))}}function C(a,t){return t.some(e=>e!==a&&e.containsRange(a,!0))}class T extends g{execute(t=null){const e=t?this._stack.findIndex(i=>i.batch==t):this._stack.length-1,o=this._stack.splice(e,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(o.batch,s);const i=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,i)}),this.fire("revert",o.batch,s),this.refresh()}}class U extends g{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const s=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=this.editor.model.document.history.getOperations(s);this._restoreSelection(t.selection.ranges,t.selection.isBackward,i),this._undo(t.batch,e)}),this.refresh()}}class O extends u{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return"UndoEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.t;this._undoCommand=new T(t),this._redoCommand=new U(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(o,s)=>{const i=s[0];if(!i.isDocumentOperation)return;const n=i.batch,d=this._redoCommand.createdBatches.has(n),h=this._undoCommand.createdBatches.has(n);this._batchRegistry.has(n)||(this._batchRegistry.add(n),n.isUndoable&&(d?this._undoCommand.addBatch(n):h||(this._undoCommand.addBatch(n),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(o,s,i)=>{this._redoCommand.addBatch(i)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Undo"),keystroke:"CTRL+Z"},{label:e("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class w extends u{static get pluginName(){return"UndoUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale,o=t.t,s=e.uiLanguageDirection=="ltr"?f:p,i=e.uiLanguageDirection=="ltr"?p:f;this._addButtonsToFactory("undo",o("Undo"),"CTRL+Z",s),this._addButtonsToFactory("redo",o("Redo"),"CTRL+Y",i)}_addButtonsToFactory(t,e,o,s){const i=this.editor;i.ui.componentFactory.add(t,()=>{const n=this._createButton(y,t,e,o,s);return n.set({tooltip:!0}),n}),i.ui.componentFactory.add("menuBar:"+t,()=>this._createButton(R,t,e,o,s))}_createButton(t,e,o,s,i){const n=this.editor,d=n.locale,h=n.commands.get(e),r=new t(d);return r.set({label:o,icon:i,keystroke:s}),r.bind("isEnabled").to(h,"isEnabled"),this.listenTo(r,"execute",()=>{n.execute(e),n.editing.view.focus()}),r}}class L extends u{static get requires(){return[O,w]}static get pluginName(){return"Undo"}static get isOfficialPlugin(){return!0}}export{L as Undo,O as UndoEditing,w as UndoUI};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import{Plugin as h,PendingActions as o}from"../../../../../@ckeditor_ckeditor5-core@45.2.1/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as u,logWarning as c,ObservableMixin as p,uid as g,CKEditorError as d}from"../../../../../@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/class
|
|
4
|
+
*/class _ extends p(){total;_reader;_data;constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((r,s)=>{t.onload=()=>{const a=t.result;this._data=a,r(a)},t.onerror=()=>{s("error")},t.onabort=()=>{s("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class n extends h{loaders=new u;_loadersMap=new Map;_pendingAction=null;static get pluginName(){return"FileRepository"}static get isOfficialPlugin(){return!0}static get requires(){return[o]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return c("filerepository-no-upload-adapter"),null;const t=new l(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(r=>{this._loadersMap.set(r,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let r=0;for(const s of this.loaders)r+=s.uploaded;this.uploaded=r}),t.on("change:uploadTotal",()=>{let r=0;for(const s of this.loaders)s.uploadTotal&&(r+=s.uploadTotal);this.uploadTotal=r}),t}destroyLoader(e){const t=e instanceof l?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((r,s)=>{r===t&&this._loadersMap.delete(s)})}_updatePendingAction(){const e=this.editor.plugins.get(o);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,r=s=>`${t("Upload in progress")} ${parseInt(s)}%.`;this._pendingAction=e.add(r(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",r)}}else e.remove(this._pendingAction),this._pendingAction=null}}class l extends p(){id;_filePromiseWrapper;_adapter;_reader;constructor(e,t){super(),this.id=g(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new _,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,s)=>s?r/s*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if(this.status!="idle")throw new d("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if(this.status!=="reading")throw this.status;return this.status="idle",e}).catch(e=>{throw e==="aborted"?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:e)})}upload(){if(this.status!="idle")throw new d("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{throw this.status==="aborted"?"aborted":(this.status="error",e)})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?e=="reading"?this._reader.abort():e=="uploading"&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((r,s)=>{t.rejecter=s,t.isFulfilled=!1,e.then(a=>{t.isFulfilled=!0,r(a)}).catch(a=>{t.isFulfilled=!0,s(a)})}),t}}class b extends h{static get requires(){return[n]}static get pluginName(){return"Base64UploadAdapter"}static get isOfficialPlugin(){return!0}init(){this.editor.plugins.get(n).createUploadAdapter=e=>new f(e)}}let f=class{loader;reader;constructor(e){this.loader=e}upload(){return new Promise((e,t)=>{const r=this.reader=new window.FileReader;r.addEventListener("load",()=>{e({default:r.result})}),r.addEventListener("error",s=>{t(s)}),r.addEventListener("abort",()=>{t()}),this.loader.file.then(s=>{r.readAsDataURL(s)})})}abort(){this.reader.abort()}};export{b as Base64UploadAdapter,n as FileRepository};
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
|
|
1
|
+
import{isObject as Ut}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 xt}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 $t}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js";import{merge as Gt}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/merge.js";/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*//**
|
|
5
5
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
6
6
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
7
|
-
*/let
|
|
7
|
+
*/let $;try{$={window,document}}catch{/* istanbul ignore next -- @preserve */$={window:{},document:{}}}var w=$;function qt(){try{return navigator.userAgent.toLowerCase()}catch{return""}}const x=qt(),A={isMac:It(x),isWindows:Yt(x),isGecko:Xt(x),isSafari:Jt(x),isiOS:Qt(x),isAndroid:Zt(x),isBlink:zt(x),get isMediaForcedColors(){return te()}};function It(e){return e.indexOf("macintosh")>-1}function Yt(e){return e.indexOf("windows")>-1}function Xt(e){return!!e.match(/gecko\/\d+/)}function Jt(e){return e.indexOf(" applewebkit/")>-1&&e.indexOf("chrome")===-1}function Qt(e){return!!e.match(/iphone|ipad/i)||It(e)&&navigator.maxTouchPoints>0}function Zt(e){return e.indexOf("android")>-1}function zt(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}function te(){return w.window.matchMedia?w.window.matchMedia("(forced-colors: active)").matches:!1}/**
|
|
8
8
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
9
9
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
10
|
-
*/function
|
|
10
|
+
*/function ee(e,t,n,i){n=n||function(c,a){return c===a};const o=Array.isArray(e)?e:Array.prototype.slice.call(e),s=Array.isArray(t)?t:Array.prototype.slice.call(t),r=ne(o,s,n);return i?oe(r,s.length):ie(s,r)}function ne(e,t,n){const i=rt(e,t,n);if(i===-1)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const o=lt(e,i),s=lt(t,i),r=rt(o,s,n),l=e.length-r,c=t.length-r;return{firstIndex:i,lastIndexOld:l,lastIndexNew:c}}function rt(e,t,n){for(let i=0;i<Math.max(e.length,t.length);i++)if(e[i]===void 0||t[i]===void 0||!n(e[i],t[i]))return i;return-1}function lt(e,t){return e.slice(t).reverse()}function ie(e,t){const n=[],{firstIndex:i,lastIndexOld:o,lastIndexNew:s}=t;return s-i>0&&n.push({index:i,type:"insert",values:e.slice(i,s)}),o-i>0&&n.push({index:i+(s-i),type:"delete",howMany:o-i}),n}function oe(e,t){const{firstIndex:n,lastIndexOld:i,lastIndexNew:o}=e;if(n===-1)return Array(t).fill("equal");let s=[];return n>0&&(s=s.concat(Array(n).fill("equal"))),o-n>0&&(s=s.concat(Array(o-n).fill("insert"))),i-n>0&&(s=s.concat(Array(i-n).fill("delete"))),o<t&&(s=s.concat(Array(t-o).fill("equal"))),s}function Lt(e,t,n){n=n||function(p,F){return p===F};const i=e.length,o=t.length;if(i>200||o>200||i+o>300)return Lt.fastDiff(e,t,n,!0);let s,r;if(o<i){const p=e;e=t,t=p,s="delete",r="insert"}else s="insert",r="delete";const l=e.length,c=t.length,a=c-l,f={},u={};function _(p){const F=(u[p-1]!==void 0?u[p-1]:-1)+1,j=u[p+1]!==void 0?u[p+1]:-1,it=F>j?-1:1;f[p+it]&&(f[p]=f[p+it].slice(0)),f[p]||(f[p]=[]),f[p].push(F>j?s:r);let M=Math.max(F,j),O=M-p;for(;O<l&&M<c&&n(e[O],t[M]);)O++,M++,f[p].push("equal");return M}let C=0,y;do{for(y=-C;y<a;y++)u[y]=_(y);for(y=a+C;y>a;y--)u[y]=_(y);u[a]=_(a),C++}while(u[a]!==c);return f[a].slice(1)}Lt.fastDiff=ee;/**
|
|
11
11
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
12
12
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
13
|
-
*/function
|
|
13
|
+
*/function ct(){return function e(){e.called=!0}}class G{source;name;path;stop;off;return;constructor(t,n){this.source=t,this.name=n,this.path=[],this.stop=ct(),this.off=ct()}}/**
|
|
14
14
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
15
15
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
16
|
-
*/const
|
|
16
|
+
*/const b=new Array(256).fill("").map((e,t)=>("0"+t.toString(16)).slice(-2));function Q(){const[e,t,n,i]=crypto.getRandomValues(new Uint32Array(4));return"e"+b[e>>0&255]+b[e>>8&255]+b[e>>16&255]+b[e>>24&255]+b[t>>0&255]+b[t>>8&255]+b[t>>16&255]+b[t>>24&255]+b[n>>0&255]+b[n>>8&255]+b[n>>16&255]+b[n>>24&255]+b[i>>0&255]+b[i>>8&255]+b[i>>16&255]+b[i>>24&255]}/**
|
|
17
17
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
18
18
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
19
|
-
*/const
|
|
19
|
+
*/const q={get(e="normal"){return typeof e!="number"?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function se(e,t){const n=q.get(t.priority);let i=0,o=e.length;for(;i<o;){const s=i+o>>1;q.get(e[s].priority)<n?o=s:i=s+1}e.splice(i,0,t)}/**
|
|
20
20
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
21
21
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
22
|
-
*/const
|
|
23
|
-
Read more: ${
|
|
22
|
+
*/const re="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class d extends Error{context;data;constructor(t,n,i){super(le(t,i)),this.name="CKEditorError",this.context=n,this.data=i}is(t){return t==="CKEditorError"}static rethrowUnexpectedError(t,n){if(t.is&&t.is("CKEditorError"))throw t;const i=new d(t.message,n);throw i.stack=t.stack,i}}function dn(e,t){console.warn(...Ct(e,t))}function hn(e,t){console.error(...Ct(e,t))}function At(e){return`
|
|
23
|
+
Read more: ${re}#error-${e}`}function le(e,t){const n=new WeakSet,o=t?` ${JSON.stringify(t,(r,l)=>{if(typeof l=="object"&&l!==null){if(n.has(l))return`[object ${l.constructor.name}]`;n.add(l)}return l})}`:"",s=At(e);return e+o+s}function Ct(e,t){const n=At(e);return t?[e,t,n]:[e,n]}const ce="45.2.1",pn=new Date(2025,5,24);/* istanbul ignore next -- @preserve */if(globalThis.CKEDITOR_VERSION)throw new d("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=ce;const L=Symbol("listeningTo"),Y=Symbol("emitterId"),E=Symbol("delegations"),Ft=T(Object);function T(e){if(!e)return Ft;class t extends e{on(i,o,s){this.listenTo(this,i,o,s)}once(i,o,s){let r=!1;const l=(c,...a)=>{r||(r=!0,c.off(),o.call(this,c,...a))};this.listenTo(this,i,l,s)}off(i,o){this.stopListening(this,i,o)}listenTo(i,o,s,r={}){let l,c;this[L]||(this[L]={});const a=this[L];W(i)||Mt(i);const f=W(i);(l=a[f])||(l=a[f]={emitter:i,callbacks:{}}),(c=l.callbacks[o])||(c=l.callbacks[o]=[]),c.push(s),he(this,i,o,s,r)}stopListening(i,o,s){const r=this[L];let l=i&&W(i);const c=r&&l?r[l]:void 0,a=c&&o?c.callbacks[o]:void 0;if(!(!r||i&&!c||o&&!a))if(s)K(this,i,o,s),a.indexOf(s)!==-1&&(a.length===1?delete c.callbacks[o]:K(this,i,o,s));else if(a){for(;s=a.pop();)K(this,i,o,s);delete c.callbacks[o]}else if(c){for(o in c.callbacks)this.stopListening(i,o);delete r[l]}else{for(l in r)this.stopListening(r[l].emitter);delete this[L]}}fire(i,...o){try{const s=i instanceof G?i:new G(this,i),r=s.name;let l=de(this,r);if(s.path.push(this),l){l=l.slice();for(let a=0;a<l.length;a++){const f=l[a].callback;if(f.call(this,s,...o),s.off.called&&(delete s.off.called,this._removeEventListener(r,f)),s.stop.called)break}}const c=this[E];if(c){const a=c.get(r),f=c.get("*");a&&at(a,s,o),f&&at(f,s,o)}return s.return}catch(s){/* istanbul ignore next -- @preserve */d.rethrowUnexpectedError(s,this)}}delegate(...i){return{to:(o,s)=>{this[E]||(this[E]=new Map),i.forEach(r=>{const l=this[E].get(r);l?l.set(o,s):this[E].set(r,new Map([[o,s]]))})}}}stopDelegating(i,o){if(this[E])if(!i)this[E].clear();else if(!o)this[E].delete(i);else{const s=this[E].get(i);s&&s.delete(o)}}_addEventListener(i,o,s){ue(this,i);const r=X(this,i),l=q.get(s.priority),c={callback:o,priority:l};for(const a of r)se(a,c)}_removeEventListener(i,o){const s=X(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 t}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{T[e]=Ft.prototype[e]});function ae(e,t){const n=e[L];return n&&n[t]?n[t].emitter:null}function Mt(e,t){e[Y]||(e[Y]=t||Q())}function W(e){return e[Y]}function kt(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function fe(){return{callbacks:[],childEvents:[]}}function ue(e,t){const n=kt(e);if(n[t])return;let i=t,o=null;const s=[];for(;i!==""&&!n[i];)n[i]=fe(),s.push(n[i]),o&&n[i].childEvents.push(o),o=i,i=i.substr(0,i.lastIndexOf(":"));if(i!==""){for(const r of s)r.callbacks=n[i].callbacks.slice();n[i].childEvents.push(o)}}function X(e,t){const n=kt(e)[t];if(!n)return[];let i=[n.callbacks];for(let o=0;o<n.childEvents.length;o++){const s=X(e,n.childEvents[o]);i=i.concat(s)}return i}function de(e,t){if(!e._events)return null;let n=t;do{const i=e._events[n];if(i&&i.callbacks&&i.callbacks.length)return i.callbacks;const o=n.lastIndexOf(":");n=o>-1?n.substring(0,o):""}while(n);return null}function at(e,t,n){for(let[i,o]of e){o?typeof o=="function"&&(o=o(t.name)):o=t.name;const s=new G(t.source,o);s.path=[...t.path],i.fire(s,...n)}}function he(e,t,n,i,o){t._addEventListener?t._addEventListener(n,i,o):e._addEventListener.call(t,n,i,o)}function K(e,t,n,i){t._removeEventListener?t._removeEventListener(n,i):e._removeEventListener.call(t,n,i)}const v=Symbol("observableProperties"),V=Symbol("boundObservables"),S=Symbol("boundProperties"),I=Symbol("decoratedMethods"),ft=Symbol("decoratedOriginal"),vt=Z(T());function Z(e){if(!e)return vt;class t extends e{set(i,o){if(Ut(i)){Object.keys(i).forEach(r=>{this.set(r,i[r])},this);return}H(this);const s=this[v];if(i in this&&!s.has(i))throw new d("observable-set-cannot-override",this);Object.defineProperty(this,i,{enumerable:!0,configurable:!0,get(){return s.get(i)},set(r){const l=s.get(i);let c=this.fire(`set:${i}`,i,r,l);c===void 0&&(c=r),(l!==c||!s.has(i))&&(s.set(i,c),this.fire(`change:${i}`,i,c,l))}}),this[i]=o}bind(...i){if(!i.length||!ut(i))throw new d("observable-bind-wrong-properties",this);if(new Set(i).size!==i.length)throw new d("observable-bind-duplicate-properties",this);H(this);const o=this[S];i.forEach(r=>{if(o.has(r))throw new d("observable-bind-rebind",this)});const s=new Map;return i.forEach(r=>{const l={property:r,to:[]};o.set(r,l),s.set(r,l)}),{to:pe,toMany:ge,_observable:this,_bindProperties:i,_to:[],_bindings:s}}unbind(...i){if(!this[v])return;const o=this[S],s=this[V];if(i.length){if(!ut(i))throw new d("observable-unbind-wrong-properties",this);i.forEach(r=>{const l=o.get(r);l&&(l.to.forEach(([c,a])=>{const f=s.get(c),u=f[a];u.delete(l),u.size||delete f[a],Object.keys(f).length||(s.delete(c),this.stopListening(c,"change"))}),o.delete(r))})}else s.forEach((r,l)=>{this.stopListening(l,"change")}),s.clear(),o.clear()}decorate(i){H(this);const o=this[i];if(!o)throw new d("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:i});this.on(i,(s,r)=>{s.return=o.apply(this,r)}),this[i]=function(...s){return this.fire(i,s)},this[i][ft]=o,this[I]||(this[I]=[]),this[I].push(i)}stopListening(i,o,s){if(!i&&this[I]){for(const r of this[I])this[r]=this[r][ft];delete this[I]}super.stopListening(i,o,s)}[v];[I];[S];[V]}return t}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{Z[e]=vt.prototype[e]});function H(e){e[v]||(Object.defineProperty(e,v,{value:new Map}),Object.defineProperty(e,V,{value:new Map}),Object.defineProperty(e,S,{value:new Map}))}function pe(...e){const t=be(...e),n=Array.from(this._bindings.keys()),i=n.length;if(!t.callback&&t.to.length>1)throw new d("observable-bind-to-no-callback",this);if(i>1&&t.callback)throw new d("observable-bind-to-extra-callback",this);t.to.forEach(o=>{if(o.properties.length&&o.properties.length!==i)throw new d("observable-bind-to-properties-length",this);o.properties.length||(o.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(n[0]).callback=t.callback),ye(this._observable,this._to),we(this),this._bindProperties.forEach(o=>{St(this._observable,o)})}function ge(e,t,n){if(this._bindings.size>1)throw new d("observable-bind-to-many-not-one-binding",this);this.to(...me(e,t),n)}function me(e,t){const n=e.map(i=>[i,t]);return Array.prototype.concat.apply([],n)}function ut(e){return e.every(t=>typeof t=="string")}function be(...e){if(!e.length)throw new d("observable-bind-to-parse-error",null);const t={to:[]};let n;return typeof e[e.length-1]=="function"&&(t.callback=e.pop()),e.forEach(i=>{if(typeof i=="string")n.properties.push(i);else if(typeof i=="object")n={observable:i,properties:[]},t.to.push(n);else throw new d("observable-bind-to-parse-error",null)}),t}function _e(e,t,n,i){const o=e[V],s=o.get(n),r=s||{};r[i]||(r[i]=new Set),r[i].add(t),s||o.set(n,r)}function we(e){let t;e._bindings.forEach((n,i)=>{e._to.forEach(o=>{t=o.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([o.observable,t]),_e(e._observable,n,o.observable,t)})})}function St(e,t){const i=e[S].get(t);let o;i.callback?o=i.callback.apply(e,i.to.map(s=>s[0][s[1]])):(o=i.to[0],o=o[0][o[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=o:e.set(t,o)}function ye(e,t){t.forEach(n=>{const i=e[V];let o;i.get(n.observable)||e.listenTo(n.observable,"change",(s,r)=>{o=i.get(n.observable)[r],o&&o.forEach(l=>{St(e,l.property)})})})}/**
|
|
24
24
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
25
25
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
26
|
-
*/class
|
|
26
|
+
*/class gn{_replacedElements;constructor(){this._replacedElements=[]}replace(t,n){this._replacedElements.push({element:t,newElement:n}),t.style.display="none",n&&t.parentNode.insertBefore(n,t.nextSibling)}restore(){this._replacedElements.forEach(({element:t,newElement:n})=>{t.style.display="",n&&n.remove()}),this._replacedElements=[]}}/**
|
|
27
27
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
28
28
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
29
|
-
*/function
|
|
29
|
+
*/function mn(e){let t=0;for(const n of e)t++;return t}/**
|
|
30
30
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
31
31
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
32
|
-
*/function
|
|
32
|
+
*/function bn(e,t){const n=Math.min(e.length,t.length);for(let i=0;i<n;i++)if(e[i]!=t[i])return i;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}/**
|
|
33
33
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
34
34
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
35
|
-
*/function
|
|
35
|
+
*/function z(e){return!!(e&&e[Symbol.iterator])}function _n(e,t,n={},i=[]){const o=n&&n.xmlns,s=o?e.createElementNS(o,t):e.createElement(t);for(const r in n)s.setAttribute(r,n[r]);(ot(i)||!z(i))&&(i=[i]);for(let r of i)ot(r)&&(r=e.createTextNode(r)),s.appendChild(r);return s}class wn{_config;constructor(t,n){this._config=Object.create(null),n&&this.define(dt(n)),t&&this._setObjectToTarget(this._config,t)}set(t,n){this._setToTarget(this._config,t,n)}define(t,n){this._setToTarget(this._config,t,n,!0)}get(t){return this._getFromSource(this._config,t)}*names(){for(const t of Object.keys(this._config))yield t}_setToTarget(t,n,i,o=!1){if(k(n)){this._setObjectToTarget(t,n,o);return}const s=n.split(".");n=s.pop();for(const r of s)k(t[r])||(t[r]=Object.create(null)),t=t[r];if(k(i)){k(t[n])||(t[n]=Object.create(null)),t=t[n],this._setObjectToTarget(t,i,o);return}o&&typeof t[n]<"u"||(t[n]=i)}_getFromSource(t,n){const i=n.split(".");n=i.pop();for(const o of i){if(!k(t[o])){t=null;break}t=t[o]}return t?dt(t[n]):void 0}_setObjectToTarget(t,n,i){Object.keys(n).forEach(o=>{this._setToTarget(t,o,n[o],i)})}}function dt(e){return $t(e,Ee)}function Ee(e){return xt(e)||typeof e=="function"?e:void 0}/**
|
|
36
36
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
37
37
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
38
|
-
*/function
|
|
38
|
+
*/function ht(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}/**
|
|
39
39
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
40
40
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
41
|
-
*/function
|
|
41
|
+
*/function N(e){const t=Object.prototype.toString.apply(e);return t=="[object Window]"||t=="[object global]"}const Vt=D(T());function D(e){if(!e)return Vt;class t extends e{listenTo(i,o,s,r={}){if(ht(i)||N(i)||i instanceof w.window.EventTarget){const l={capture:!!r.useCapture,passive:!!r.usePassive},c=this._getProxyEmitter(i,l)||new Te(i,l);this.listenTo(c,o,s,r)}else super.listenTo(i,o,s,r)}stopListening(i,o,s){if(ht(i)||N(i)||i instanceof w.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 ae(this,Rt(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 t}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{D[e]=Vt.prototype[e]});class Te extends T(){_domNode;_options;constructor(t,n){super(),Mt(this,Rt(t,n)),this._domNode=t,this._options=n}_domListeners;attach(t){if(this._domListeners&&this._domListeners[t])return;const n=this._createDomListener(t);this._domNode.addEventListener(t,n,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=n}detach(t){let n;this._domListeners[t]&&(!(n=this._events[t])||!n.callbacks.length)&&this._domListeners[t].removeListener()}_addEventListener(t,n,i){this.attach(t),T().prototype._addEventListener.call(this,t,n,i)}_removeEventListener(t,n){T().prototype._removeEventListener.call(this,t,n),this.detach(t)}_createDomListener(t){const n=i=>{this.fire(t,i)};return n.removeListener=()=>{this._domNode.removeEventListener(t,n,this._options),delete this._domListeners[t]},n}}function xe(e){return e["data-ck-expando"]||(e["data-ck-expando"]=Q())}function Rt(e,t){let n=xe(e);for(const i of Object.keys(t).sort())t[i]&&(n+="-"+i);return n}/**
|
|
42
42
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
43
43
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
44
|
-
*/function
|
|
44
|
+
*/function yn(e){const t=[];let n=e;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)t.unshift(n),n=n.parentNode;return t}/**
|
|
45
45
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
46
46
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
47
|
-
*/function
|
|
47
|
+
*/function En(e){return e instanceof HTMLTextAreaElement?e.value:e.innerHTML}/**
|
|
48
48
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
49
49
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
50
|
-
*/function
|
|
50
|
+
*/function Pt(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}/**
|
|
51
51
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
52
52
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
53
|
-
*/function
|
|
53
|
+
*/function Tn(e){if(!e.target)return null;const t=e.target.ownerDocument,n=e.clientX,i=e.clientY;let o=null;return t.caretRangeFromPoint&&t.caretRangeFromPoint(n,i)?o=t.caretRangeFromPoint(n,i):e.rangeParent&&(o=t.createRange(),o.setStart(e.rangeParent,e.rangeOffset),o.collapse(!0)),o}/**
|
|
54
54
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
55
55
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
56
|
-
*/function
|
|
56
|
+
*/function tt(e){return Object.prototype.toString.call(e)=="[object Text]"}/**
|
|
57
57
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
58
58
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
59
|
-
*/function
|
|
59
|
+
*/function et(e){return Object.prototype.toString.apply(e)=="[object Range]"}function Nt(e){return!e||!e.parentNode||e.offsetParent===w.document.body?null:e.offsetParent}const Bt=["top","right","bottom","left","width","height"];class m{top;right;bottom;left;width;height;_source;constructor(t){const n=et(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),J(t)||n)if(n){const i=m.getDomRangeRects(t);R(this,m.getBoundingRect(i))}else R(this,t.getBoundingClientRect());else if(N(t)){const{innerWidth:i,innerHeight:o}=t;R(this,{top:0,right:i,bottom:o,left:0,width:i,height:o})}else R(this,t)}clone(){return new m(this)}moveTo(t,n){return this.top=n,this.right=t+this.width,this.bottom=n+this.height,this.left=t,this}moveBy(t,n){return this.top+=n,this.right+=t,this.left+=t,this.bottom+=n,this}getIntersection(t){const n={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0)return null;{const i=new m(n);return i._source=this._source,i}}getIntersectionArea(t){const n=this.getIntersection(t);return n?n.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let n=this.clone();if(pt(t))return n;let i=t,o=t.parentNode||t.commonAncestorContainer,s;for(;o&&!pt(o);){const r=Ie(o)==="visible";i instanceof HTMLElement&>(i)==="absolute"&&(s=i);const l=gt(o);if(r||s&&(l==="relative"&&r||l!=="relative")){i=o,o=o.parentNode;continue}const c=new m(o),a=n.getIntersection(c);if(a)a.getArea()<n.getArea()&&(n=a);else return null;i=o,o=o.parentNode}return n}isEqual(t){for(const n of Bt)if(this[n]!==t[n])return!1;return!0}contains(t){const n=this.getIntersection(t);return!!(n&&n.isEqual(t))}toAbsoluteRect(){const{scrollX:t,scrollY:n}=w.window,i=this.clone().moveBy(t,n);if(J(i._source)){const o=Nt(i._source);o&&Le(i,o)}return i}excludeScrollbarsAndBorders(){const t=this._source;let n,i,o;if(N(t))n=t.innerWidth-t.document.documentElement.clientWidth,i=t.innerHeight-t.document.documentElement.clientHeight,o=t.getComputedStyle(t.document.documentElement).direction;else{const s=Pt(t);n=t.offsetWidth-t.clientWidth-s.left-s.right,i=t.offsetHeight-t.clientHeight-s.top-s.bottom,o=t.ownerDocument.defaultView.getComputedStyle(t).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-=n,o==="ltr"?this.right-=n:this.left+=n,this.height-=i,this.bottom-=i,this}static getDomRangeRects(t){const n=[],i=Array.from(t.getClientRects());if(i.length)for(const o of i)n.push(new m(o));else{let o=t.startContainer;tt(o)&&(o=o.parentNode);const s=new m(o.getBoundingClientRect());s.right=s.left,s.width=0,n.push(s)}return n}static getBoundingRect(t){const n={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 t)i++,n.left=Math.min(n.left,o.left),n.top=Math.min(n.top,o.top),n.right=Math.max(n.right,o.right),n.bottom=Math.max(n.bottom,o.bottom);return i==0?null:(n.width=n.right-n.left,n.height=n.bottom-n.top,new m(n))}}function R(e,t){for(const n of Bt)e[n]=t[n]}function pt(e){return J(e)?e===e.ownerDocument.body:!1}function J(e){return e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.getBoundingClientRect=="function"}function gt(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).position:"static"}function Ie(e){return e instanceof HTMLElement?e.ownerDocument.defaultView.getComputedStyle(e).overflow:"visible"}function Le(e,t){const n=new m(t),i=Pt(t);let o=0,s=0;o-=n.left,s-=n.top,o+=t.scrollLeft,s+=t.scrollTop,o-=i.left,s-=i.top,e.moveBy(o,s)}class h{_element;_callback;static _observerInstance=null;static _elementCallbacks=null;constructor(t,n){h._observerInstance||h._createObserver(),this._element=t,this._callback=n,h._addElementCallback(t,n),h._observerInstance.observe(t)}get element(){return this._element}destroy(){h._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,n){h._elementCallbacks||(h._elementCallbacks=new Map);let i=h._elementCallbacks.get(t);i||(i=new Set,h._elementCallbacks.set(t,i)),i.add(n)}static _deleteElementCallback(t,n){const i=h._getElementCallbacks(t);i&&(i.delete(n),i.size||(h._elementCallbacks.delete(t),h._observerInstance.unobserve(t))),h._elementCallbacks&&!h._elementCallbacks.size&&(h._observerInstance=null,h._elementCallbacks=null)}static _getElementCallbacks(t){return h._elementCallbacks?h._elementCallbacks.get(t):null}static _createObserver(){h._observerInstance=new w.window.ResizeObserver(t=>{for(const n of t){const i=h._getElementCallbacks(n.target);if(i)for(const o of i)o(n)}})}}/**
|
|
60
60
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
61
61
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
62
|
-
*/function
|
|
62
|
+
*/function xn(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}/**
|
|
63
63
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
64
64
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
65
|
-
*/function
|
|
65
|
+
*/function In(e){return t=>t+e}/**
|
|
66
66
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
67
67
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
68
|
-
*/function
|
|
68
|
+
*/function Ln(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}/**
|
|
69
69
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
70
70
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
71
|
-
*/function
|
|
71
|
+
*/function An(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}/**
|
|
72
72
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
73
73
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
74
|
-
*/function
|
|
74
|
+
*/function Cn(e){return e&&e.nodeType===Node.COMMENT_NODE}function Fn(e){try{w.document.createAttribute(e)}catch{return!1}return!0}function Ae(e){return e?tt(e)?Ae(e.parentElement):e.getClientRects?!!e.getClientRects().length:!1:!1}function Mn({element:e,target:t,positions:n,limiter:i,fitInViewport:o,viewportOffsetConfig:s}){st(t)&&(t=t()),st(i)&&(i=i());const r=Nt(e),l=Ce(s),c=new m(e),a=mt(t,l);let f;if(!a||!l.getIntersection(a))return null;const u={targetRect:a,elementRect:c,positionedElementAncestor:r,viewportRect:l};if(!i&&!o)f=new Dt(n[0],u);else{if(i){const _=mt(i,l);_&&(u.limiterRect=_)}f=Fe(n,u)}return f}function mt(e,t){const n=new m(e).getVisible();return n?n.getIntersection(t):null}function Ce(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);const t=new m(w.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t}function Fe(e,t){const{elementRect:n}=t,i=n.getArea(),o=e.map(l=>new Dt(l,t)).filter(l=>!!l.name);let s=0,r=null;for(const l of o){const{limiterIntersectionArea:c,viewportIntersectionArea:a}=l;if(c===i)return l;const f=a**2+c**2;f>s&&(s=f,r=l)}return r}class Dt{name;config;_positioningFunctionCoordinates;_options;_cachedRect;_cachedAbsoluteRect;constructor(t,n){const i=t(n.targetRect,n.elementRect,n.viewportRect,n.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=n}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;return t?t.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
75
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
76
76
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
77
|
-
*/function
|
|
77
|
+
*/function kn(e){const t=e.parentNode;t&&t.removeChild(e)}function vn(){const e=w.window.visualViewport;if(!e||!(A.isiOS||A.isSafari))return{left:0,top:0};const t=Math.max(Math.round(e.offsetLeft),0),n=Math.max(Math.round(e.offsetTop),0);return{left:t,top:n}}function Sn({target:e,viewportOffset:t=0,ancestorOffset:n=0,alignToTop:i,forceScroll:o}){const s=nt(e);let r=s,l=null;for(t=ve(t);r;){let c;r==s?c=bt(e):c=bt(l),ke({parent:c,getRect:()=>U(e,r),alignToTop:i,ancestorOffset:n,forceScroll:o});let a=U(e,r);const f=U(c,r);if(a.height>f.height){const u=a.getIntersection(f);u&&(a=u)}if(Me({window:r,rect:a,viewportOffset:t,alignToTop:i,forceScroll:o}),r.parent!=r){if(l=r.frameElement,r=r.parent,!l)return}else r=null}}function Me({window:e,rect:t,alignToTop:n,forceScroll:i,viewportOffset:o}){const s=t.clone().moveBy(0,o.bottom),r=t.clone().moveBy(0,-o.top),l=new m(e).excludeScrollbarsAndBorders(),c=[r,s],a=n&&i,f=c.every(p=>l.contains(p));let{scrollX:u,scrollY:_}=e;const C=u,y=_;a?_-=l.top-t.top+o.top:f||(Ot(r,l)?_-=l.top-t.top+o.top:jt(s,l)&&(n?_+=t.top-l.top-o.top:_+=t.bottom-l.bottom+o.bottom)),f||(Wt(t,l)?u-=l.left-t.left+o.left:Kt(t,l)&&(u+=t.right-l.right+o.right)),(u!=C||_!==y)&&e.scrollTo(u,_)}function ke({parent:e,getRect:t,alignToTop:n,forceScroll:i,ancestorOffset:o=0,limiterElement:s}){const r=nt(e),l=n&&i;let c,a,f;const u=s||r.document.body;for(;e!=u;)a=t(),c=new m(e).excludeScrollbarsAndBorders(),f=c.contains(a),l?e.scrollTop-=c.top-a.top+o:f||(Ot(a,c)?e.scrollTop-=c.top-a.top+o:jt(a,c)&&(n?e.scrollTop+=a.top-c.top-o:e.scrollTop+=a.bottom-c.bottom+o)),f||(Wt(a,c)?e.scrollLeft-=c.left-a.left+o:Kt(a,c)&&(e.scrollLeft+=a.right-c.right+o)),e=e.parentNode}function jt(e,t){return e.bottom>t.bottom}function Ot(e,t){return e.top<t.top}function Wt(e,t){return e.left<t.left}function Kt(e,t){return e.right>t.right}function nt(e){return et(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function bt(e){if(et(e)){let t=e.commonAncestorContainer;return tt(t)&&(t=t.parentNode),t}else return e.parentNode}function U(e,t){const n=nt(e),i=new m(e);if(n===t)return i;{let o=n;for(;o!=t;){const s=o.frameElement,r=new m(s).excludeScrollbarsAndBorders();i.moveBy(r.left,r.top),o=o.parent}}return i}function ve(e){return typeof e=="number"?{top:e,bottom:e,left:e,right:e}:e}const Se={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Ve={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},_t={37:"←",38:"↑",39:"→",40:"↓",9:"⇥",33:"Page Up",34:"Page Down"},g=Be(),Re=Object.fromEntries(Object.entries(g).map(([e,t])=>{let n;return t in _t?n=_t[t]:n=e.charAt(0).toUpperCase()+e.slice(1),[t,n]}));function B(e){let t;if(typeof e=="string"){if(t=g[e.toLowerCase()],!t)throw new d("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?g.alt:0)+(e.ctrlKey?g.ctrl:0)+(e.shiftKey?g.shift:0)+(e.metaKey?g.cmd:0);return t}function Ht(e){return typeof e=="string"&&(e=De(e)),e.map(t=>typeof t=="string"?Ne(t):t).reduce((t,n)=>n+t,0)}function Vn(e,t){let n=Ht(e);const i=A.isMac||A.isiOS;return Object.entries(i?Se:Ve).reduce((r,[l,c])=>((n&g[l])!=0&&(n&=~g[l],r+=c),r),"")+(n?Re[n]:"")}function Rn(e){return e==g.arrowright||e==g.arrowleft||e==g.arrowup||e==g.arrowdown}function Pe(e,t){const n=t==="ltr";switch(e){case g.arrowleft:return n?"left":"right";case g.arrowright:return n?"right":"left";case g.arrowup:return"up";case g.arrowdown:return"down"}}function Ne(e){if(e.endsWith("!"))return B(e.slice(0,-1));const t=B(e);return(A.isMac||A.isiOS)&&t==g.ctrl?g.cmd:t}function Pn(e,t){const n=Pe(e,t);return n==="down"||n==="right"}function Be(){const e={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 t=65;t<=90;t++){const n=String.fromCharCode(t);e[n.toLowerCase()]=t}for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;return Object.assign(e,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),e}function De(e){return e.split("+").map(t=>t.trim())}/**
|
|
78
78
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
79
79
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
80
|
-
*/const
|
|
80
|
+
*/const je=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig","ur","urd"];function wt(e){return je.includes(e)?"rtl":"ltr"}/**
|
|
81
81
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
82
82
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
83
|
-
*/function
|
|
83
|
+
*/function Oe(e){return Array.isArray(e)?e:[e]}/* istanbul ignore else -- @preserve */w.window.CKEDITOR_TRANSLATIONS||(w.window.CKEDITOR_TRANSLATIONS={});function We(e,t,n=1,i){if(typeof n!="number")throw new d("translation-service-quantity-not-a-number",null,{quantity:n});const o=i||w.window.CKEDITOR_TRANSLATIONS,s=Ue(o);s===1&&(e=Object.keys(o)[0]);const r=t.id||t.string;if(s===0||!He(e,r,o))return n!==1?t.plural:t.string;const l=o[e].dictionary,c=o[e].getPluralForm||(u=>u===1?0:1),a=l[r];if(typeof a=="string")return a;const f=Number(c(n));return a[f]}function Ke(e){return Array.isArray(e)?e.reduce((t,n)=>Gt(t,n)):e}function He(e,t,n){return!!n[e]&&!!n[e].dictionary[t]}function Ue(e){return Object.keys(e).length}class Nn{uiLanguage;uiLanguageDirection;contentLanguage;contentLanguageDirection;t;translations;constructor({uiLanguage:t="en",contentLanguage:n,translations:i}={}){this.uiLanguage=t,this.contentLanguage=n||this.uiLanguage,this.uiLanguageDirection=wt(this.uiLanguage),this.contentLanguageDirection=wt(this.contentLanguage),this.translations=Ke(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(t,n=[]){n=Oe(n),typeof t=="string"&&(t={string:t});const o=!!t.plural?n[0]:1,s=We(this.uiLanguage,t,o,this.translations);return $e(s,n)}}function $e(e,t){return e.replace(/%(\d+)/g,(n,i)=>i<t.length?t[i]:n)}class Bn extends T(){_items;_itemMap;_idProperty;_bindToCollection;_bindToExternalToInternalMap;_bindToInternalToExternalMap;_skippedIndexesFromExternal;constructor(t={},n={}){super();const i=z(t);if(i||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i)for(const o of t)this._items.push(o),this._itemMap.set(this._getItemIdBeforeAdding(o),o)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,n){return this.addMany([t],n)}addMany(t,n){if(n===void 0)n=this._items.length;else if(n>this._items.length||n<0)throw new d("collection-add-item-invalid-index",this);let i=0;for(const o of t){const s=this._getItemIdBeforeAdding(o),r=n+i;this._items.splice(r,0,o),this._itemMap.set(s,o),this.fire("add",o,r),i++}return this.fire("change",{added:t,removed:[],index:n}),this}get(t){let n;if(typeof t=="string")n=this._itemMap.get(t);else if(typeof t=="number")n=this._items[t];else throw new d("collection-get-invalid-arg",this);return n||null}has(t){if(typeof t=="string")return this._itemMap.has(t);{const n=this._idProperty,i=t[n];return i&&this._itemMap.has(i)}}getIndex(t){let n;return typeof t=="string"?n=this._itemMap.get(t):n=t,n?this._items.indexOf(n):-1}remove(t){const[n,i]=this._remove(t);return this.fire("change",{added:[],removed:[n],index:i}),n}map(t,n){return this._items.map(t,n)}forEach(t,n){this._items.forEach(t,n)}find(t,n){return this._items.find(t,n)}filter(t,n){return this._items.filter(t,n)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new d("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:n=>{this._setUpBindToBinding(i=>new n(i))},using:n=>{typeof n=="function"?this._setUpBindToBinding(n):this._setUpBindToBinding(i=>i[n])}}}_setUpBindToBinding(t){const n=this._bindToCollection,i=(o,s,r)=>{const l=n._bindToCollection==this,c=n._bindToInternalToExternalMap.get(s);if(l&&c)this._bindToExternalToInternalMap.set(s,c),this._bindToInternalToExternalMap.set(c,s);else{const a=t(s);if(!a){this._skippedIndexesFromExternal.push(r);return}let f=r;for(const u of this._skippedIndexesFromExternal)r>u&&f--;for(const u of n._skippedIndexesFromExternal)f>=u&&f++;this._bindToExternalToInternalMap.set(s,a),this._bindToInternalToExternalMap.set(a,s),this.add(a,f);for(let u=0;u<n._skippedIndexesFromExternal.length;u++)f<=n._skippedIndexesFromExternal[u]&&n._skippedIndexesFromExternal[u]++}};for(const o of n)i(null,o,n.getIndex(o));this.listenTo(n,"add",i),this.listenTo(n,"remove",(o,s,r)=>{const l=this._bindToExternalToInternalMap.get(s);l&&this.remove(l),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((c,a)=>(r<a&&c.push(a-1),r>a&&c.push(a),c),[])})}_getItemIdBeforeAdding(t){const n=this._idProperty;let i;if(n in t){if(i=t[n],typeof i!="string")throw new d("collection-add-invalid-id",this);if(this.get(i))throw new d("collection-add-item-already-exists",this)}else t[n]=i=Q();return i}_remove(t){let n,i,o,s=!1;const r=this._idProperty;if(typeof t=="string"?(i=t,o=this._itemMap.get(i),s=!o,o&&(n=this._items.indexOf(o))):typeof t=="number"?(n=t,o=this._items[n],s=!o,o&&(i=o[r])):(o=t,i=o[r],n=this._items.indexOf(o),s=n==-1||!this._itemMap.get(i)),s)throw new d("collection-remove-404",this);this._items.splice(n,1),this._itemMap.delete(i);const l=this._bindToInternalToExternalMap.get(o);return this._bindToInternalToExternalMap.delete(o),this._bindToExternalToInternalMap.delete(l),this.fire("remove",o,n),[o,n]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}/**
|
|
84
84
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
85
85
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
86
|
-
*/function
|
|
86
|
+
*/function Dn(e){const t=e.next();return t.done?null:t.value}class Ge extends D(Z()){_elements=new Set;_externalViews=new Set;_blurTimeout=null;constructor(){super(),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(t){if(Et(t))this._addElement(t);else if(yt(t))this._addView(t);else{if(!t.element)throw new d("focustracker-add-view-missing-element",{focusTracker:this,view:t});this._addElement(t.element)}}remove(t){Et(t)?this._removeElement(t):yt(t)?this._removeView(t):this._removeElement(t.element)}_addElement(t){if(this._elements.has(t))throw new d("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",()=>{const n=this.externalViews.find(i=>qe(t,i));n?this._focus(n.element):this._focus(t)},{useCapture:!0}),this.listenTo(t,"blur",()=>{this._blur()},{useCapture:!0}),this._elements.add(t)}_removeElement(t){this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t)),t===this.focusedElement&&this._blur()}_addView(t){t.element&&this._addElement(t.element),this.listenTo(t.focusTracker,"change:focusedElement",()=>{t.focusTracker.focusedElement?t.element&&this._focus(t.element):this._blur()}),this._externalViews.add(t)}_removeView(t){t.element&&this._removeElement(t.element),this.stopListening(t.focusTracker),this._externalViews.delete(t)}destroy(){this.stopListening(),this._elements.clear(),this._externalViews.clear(),this.isFocused=!1,this.focusedElement=null}_focus(t){this._clearBlurTimeout(),this.focusedElement=t,this.isFocused=!0}_blur(){this.elements.find(i=>i.contains(document.activeElement))||this.externalViews.find(i=>i.focusTracker.isFocused&&!i.focusTracker._blurTimeout)||(this._clearBlurTimeout(),this._blurTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0))}_clearBlurTimeout(){clearTimeout(this._blurTimeout),this._blurTimeout=null}}function yt(e){return"focusTracker"in e&&e.focusTracker instanceof Ge}function Et(e){return xt(e)}function qe(e,t){return Tt(e,t)?!0:!!t.focusTracker.externalViews.find(n=>Tt(e,n))}function Tt(e,t){return!!t.element&&t.element.contains(document.activeElement)&&e.contains(t.element)}class jn{_listener;constructor(){this._listener=new(D())}listenTo(t){this._listener.listenTo(t,"keydown",(n,i)=>{this._listener.fire("_keydown:"+B(i),i)})}set(t,n,i={}){const o=Ht(t),s=i.priority;this._listener.listenTo(this._listener,"_keydown:"+o,(r,l)=>{i.filter&&!i.filter(l)||(n(l,()=>{l.preventDefault(),l.stopPropagation(),r.stop()}),r.return=!0)},{priority:s})}press(t){return!!this._listener.fire("_keydown:"+B(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}/**
|
|
87
87
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
88
88
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
89
|
-
*/function
|
|
89
|
+
*/function Ye(e){const t=new Map;for(const n in e)t.set(n,e[n]);return t}function On(e){return z(e)?new Map(e):Ye(e)}/**
|
|
90
90
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
91
91
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
92
|
-
*/function
|
|
92
|
+
*/function Wn(e,t,n){const i=e.length,o=t.length;for(let s=i-1;s>=n;s--)e[s+o]=e[s];for(let s=0;s<o;s++)e[n+s]=t[s]}/**
|
|
93
93
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
94
94
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
95
|
-
*/function
|
|
95
|
+
*/function Kn(e,t){let n;function i(...o){i.cancel(),n=setTimeout(()=>e(...o),t)}return i.cancel=()=>{clearTimeout(n)},i}/**
|
|
96
96
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
97
97
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
98
|
-
*/function
|
|
98
|
+
*/function Hn(e){try{if(!e.startsWith("ey"))return null;const t=atob(e.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(t)}catch{return null}}/**
|
|
99
99
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
100
100
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
101
|
-
*/function
|
|
101
|
+
*/function Xe(){const e=[];for(let t=0;t<256;t++){let n=t;for(let i=0;i<8;i++)n&1?n=3988292384^n>>>1:n=n>>>1;e[t]=n}return e}function Un(e){const t=Array.isArray(e)?e:[e],n=Xe();let i=-1;const o=t.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^n[(i^r)&255]}return i=(i^-1)>>>0,i.toString(16).padStart(8,"0")}/**
|
|
102
102
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
103
103
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
104
|
-
*/function
|
|
104
|
+
*/function $n(e){const t=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],n=t.map(r=>r.name).join("|"),i=e.replace(new RegExp(`</?(${n})( .*?)?>`,"g"),`
|
|
105
105
|
$&
|
|
106
106
|
`).replace(/<br[^>]*>/g,`$&
|
|
107
107
|
`).split(`
|
|
108
|
-
`);let
|
|
109
|
-
`}function
|
|
108
|
+
`);let o=0,s=!1;return i.map(r=>(s=Ze(r,s),!r.length&&!s?"":Je(r,t)?P(r,o++):Qe(r,t)?P(r,--o):s==="middle"||s==="last"?P(r,0):P(r,o))).join("").trimEnd()}function Je(e,t){return t.some(n=>!(n.isVoid||!new RegExp(`<${n.name}( .*?)?>`).test(e)))}function Qe(e,t){return t.some(n=>new RegExp(`</${n.name}>`).test(e))}function P(e,t,n=" "){return`${n.repeat(Math.max(0,t))}${e}
|
|
109
|
+
`}function Ze(e,t){const n=/<pre( .*?)?>/.test(e),i=/<\/pre>/.test(e);return n&&i?!1:n?"first":i?"last":t==="first"||t==="middle"?"middle":!1}/**
|
|
110
110
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
111
111
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
112
|
-
*/function
|
|
112
|
+
*/function ze(e){return!!e&&e.length==1&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e)}function tn(e){return!!e&&e.length==1&&/[\ud800-\udbff]/.test(e)}function en(e){return!!e&&e.length==1&&/[\udc00-\udfff]/.test(e)}function Gn(e,t){return tn(e.charAt(t-1))&&en(e.charAt(t))}function qn(e,t){return ze(e.charAt(t))}const nn=on();function Yn(e,t){const n=String(e).matchAll(nn);return Array.from(n).some(i=>i.index<t&&t<i.index+i[0].length)}function on(){const e=[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")],t=new RegExp("\\p{Regional_Indicator}{2}","u").source,n="(?:"+e.map(o=>o.source).join("|")+")",i=`${t}|${n}(?:${n})*`;return new RegExp(i,"ug")}export{d as CKEditorError,Bn as Collection,wn as Config,D as DomEmitterMixin,gn as ElementReplacer,T as EmitterMixin,G as EventInfo,Ge as FocusTracker,jn as KeystrokeHandler,Nn as Locale,Z as ObservableMixin,m as Rect,h as ResizeObserver,bn as compareArrays,mn as count,Un as crc32,_n as createElement,Kn as delay,Lt as diff,A as env,ee as fastDiff,Dn as first,$n as formatHtml,yn as getAncestors,Pt as getBorderWidths,B as getCode,En as getDataFromElement,Vn as getEnvKeystrokeText,wt as getLanguageDirection,Pe as getLocalizedArrowKeyCodeDirection,Mn as getOptimalPosition,Tn as getRangeFromMouseEvent,vn as getVisualViewportOffset,w as global,Ln as indexOf,An as insertAt,se as insertToPriorityArray,Rn as isArrowKeyCode,ze as isCombiningMark,Cn as isComment,Pn as isForwardArrowKeyCode,tn as isHighSurrogateHalf,qn as isInsideCombinedSymbol,Yn as isInsideEmojiSequence,Gn as isInsideSurrogatePair,z as isIterable,en as isLowSurrogateHalf,ht as isNode,et as isRange,tt as isText,Fn as isValidAttributeName,yt as isViewWithFocusTracker,Ae as isVisible,g as keyCodes,hn as logError,dn as logWarning,Hn as parseBase64EncodedObject,Ht as parseKeystroke,q as priorities,pn as releaseDate,kn as remove,Sn as scrollViewportToShowTarget,xn as setDataInElement,Wn as spliceArray,Oe as toArray,On as toMap,In as toUnit,Q as uid,ce as version};
|