@ncino/web-components 4.0.0-preview.9 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/node_modules/.pnpm/{ckeditor5@45.0.0 → ckeditor5@45.1.0}/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
- package/dist/components/accordion/gator/base/accordion.gator.js +1 -1
- package/dist/components/accordion/gator/group/accordion-group.gator.js +1 -1
- package/dist/components/alert/gator/base/alert.gator.js +1 -1
- package/dist/components/banner/gator/banner.gator.js +1 -1
- package/dist/components/button/gator/button.gator.js +1 -1
- package/dist/components/card/gator/base/card.gator.js +4 -2
- package/dist/components/checkbox/checkbox.gator.js +1 -1
- package/dist/components/combobox/base/combobox.js +1 -1
- package/dist/components/combobox/base/combobox.slds.js +8 -8
- package/dist/components/date-picker/base/datepicker.js +1 -1
- package/dist/components/date-picker/base/gator/datepicker.gator.js +15 -14
- package/dist/components/display-card/gator/display-card.gator.js +1 -1
- package/dist/components/headline-card/gator/headline-card.gator.js +1 -1
- package/dist/components/icon/gator/icon.gator.js +4 -4
- package/dist/components/icon/gator/index.js +1 -1
- package/dist/components/icon/gator/templates/chart-bar-horizontal.js +5 -0
- package/dist/components/icon/gator/templates/chart-bar.js +5 -0
- package/dist/components/icon/gator/templates/chart-donut.js +5 -0
- package/dist/components/icon/gator/templates/chart-line.js +5 -0
- package/dist/components/icon/gator/templates/chart-pie.js +5 -0
- package/dist/components/icon/gator/templates/chart-scatter.js +5 -0
- package/dist/components/icon/gator/templates/checkerboard.js +5 -0
- package/dist/components/icon/gator/templates/exclude-square.js +5 -0
- package/dist/components/icon/gator/templates/grid-four.js +5 -0
- package/dist/components/icon/gator/templates/grid-nine.js +5 -0
- package/dist/components/icon/gator/templates/index.js +1 -1
- package/dist/components/icon/gator/templates/kanban.js +5 -0
- package/dist/components/icon/gator/templates/lightbulb-filament.js +5 -0
- package/dist/components/icon/gator/templates/list-star.js +5 -0
- package/dist/components/icon/gator/templates/selection.js +5 -0
- package/dist/components/icon/gator/templates/square-split-horizontal.js +5 -0
- package/dist/components/icon/gator/templates/square-split-vertical.js +5 -0
- package/dist/components/icon/gator/templates/square.js +5 -0
- package/dist/components/icon/gator/templates/table.js +5 -0
- package/dist/components/icon/gator/templates/text-aa.js +5 -0
- package/dist/components/icon/gator/templates/trend-up.js +5 -0
- package/dist/components/input/base/input-base.gator.js +6 -5
- package/dist/components/input/base/input-base.js +1 -1
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +6 -5
- package/dist/components/input/gator/help-text/help-text.gator.js +1 -1
- package/dist/components/input/gator/input-date/input-date.gator.js +52 -18
- package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +1 -1
- package/dist/components/input/gator/input-file/input-file.gator.js +1 -1
- package/dist/components/input/gator/input-label/input-label.gator.js +4 -4
- package/dist/components/input/gator/input-text/input-text.gator.js +5 -3
- package/dist/components/input/gator/input-textarea/input-textarea.gator.js +4 -3
- package/dist/components/input/gator/input-time/input-time.gator.js +2 -2
- package/dist/components/input-rich-text/ckeditor-config.js +1 -1
- package/dist/components/input-rich-text/input-rich-text.slds.js +2 -2
- package/dist/components/list/gator/list-item/list-item.gator.js +1 -1
- package/dist/components/menu/base/gator/menu.gator.js +3 -3
- package/dist/components/menu/menu-item/menu-item.js +1 -1
- package/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/components/popover/gator/popover.gator.js +49 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/popover.js +1 -0
- package/dist/components/radio-group/radio-group.gator.js +1 -1
- package/dist/components/selection-box/selection-box.gator.js +1 -1
- package/dist/components/table/gator/table-pagination/table-pagination.gator.js +1 -1
- package/dist/index.gator.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@45.0.0 → @ckeditor_ckeditor5-alignment@45.1.0}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@45.0.0 → @ckeditor_ckeditor5-autoformat@45.1.0}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@45.0.0 → @ckeditor_ckeditor5-autosave@45.1.0}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@45.0.0 → @ckeditor_ckeditor5-basic-styles@45.1.0}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@45.0.0 → @ckeditor_ckeditor5-block-quote@45.1.0}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@45.0.0 → @ckeditor_ckeditor5-clipboard@45.1.0}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@45.0.0 → @ckeditor_ckeditor5-cloud-services@45.1.0}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-code-block@45.1.0/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +7 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@45.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@45.1.0/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@45.0.0 → @ckeditor_ckeditor5-engine@45.1.0}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +11 -11
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@45.0.0 → @ckeditor_ckeditor5-enter@45.1.0}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@45.0.0 → @ckeditor_ckeditor5-essentials@45.1.0}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@45.0.0 → @ckeditor_ckeditor5-find-and-replace@45.1.0}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@45.0.0 → @ckeditor_ckeditor5-font@45.1.0}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@45.0.0 → @ckeditor_ckeditor5-heading@45.1.0}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@45.0.0 → @ckeditor_ckeditor5-highlight@45.1.0}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@45.0.0 → @ckeditor_ckeditor5-horizontal-line@45.1.0}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@45.0.0 → @ckeditor_ckeditor5-html-embed@45.1.0}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-support@45.0.0 → @ckeditor_ckeditor5-html-support@45.1.0}/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +4 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@45.1.0/node_modules/@ckeditor/ckeditor5-image/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-indent@45.0.0 → @ckeditor_ckeditor5-indent@45.1.0}/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@45.0.0 → @ckeditor_ckeditor5-language@45.1.0}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-link@45.0.0 → @ckeditor_ckeditor5-link@45.1.0}/node_modules/@ckeditor/ckeditor5-link/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-list@45.0.0 → @ckeditor_ckeditor5-list@45.1.0}/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@45.0.0 → @ckeditor_ckeditor5-markdown-gfm@45.1.0}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@45.0.0 → @ckeditor_ckeditor5-media-embed@45.1.0}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@45.0.0 → @ckeditor_ckeditor5-mention@45.1.0}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@45.0.0 → @ckeditor_ckeditor5-page-break@45.1.0}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@45.0.0 → @ckeditor_ckeditor5-paragraph@45.1.0}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paste-from-office@45.0.0 → @ckeditor_ckeditor5-paste-from-office@45.1.0}/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +5 -5
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@45.0.0 → @ckeditor_ckeditor5-remove-format@45.1.0}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@45.0.0 → @ckeditor_ckeditor5-select-all@45.1.0}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@45.0.0 → @ckeditor_ckeditor5-show-blocks@45.1.0}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-source-editing@45.0.0 → @ckeditor_ckeditor5-source-editing@45.1.0}/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@45.0.0 → @ckeditor_ckeditor5-special-characters@45.1.0}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@45.0.0 → @ckeditor_ckeditor5-style@45.1.0}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@45.1.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +16 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +28 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@45.0.0 → @ckeditor_ckeditor5-undo@45.1.0}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@45.0.0 → @ckeditor_ckeditor5-upload@45.1.0}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-utils@45.0.0 → @ckeditor_ckeditor5-utils@45.1.0}/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +15 -15
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.1.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -1
- package/dist/node_modules/.pnpm/{@storybook_instrumenter@8.6.12_storybook@8.6.12_prettier@3.5.3_ → @storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/instrumenter/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@storybook_test@8.6.12_storybook@8.6.12_prettier@3.5.3_ → @storybook_test@8.6.14_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/test/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/{@vitest_expect@3.1.3 → @vitest_expect@3.1.4}/node_modules/@vitest/expect/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@vitest_runner@3.1.3 → @vitest_runner@3.1.4}/node_modules/@vitest/runner/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@vitest_snapshot@3.1.3 → @vitest_snapshot@3.1.4}/node_modules/@vitest/snapshot/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +1 -1
- package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/diff.js +1 -1
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js +1 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js +1 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js +1 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js +1 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js +1 -0
- package/dist/node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js +1 -0
- package/dist/node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js +1 -0
- package/dist/node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js +1 -0
- package/dist/node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js +1 -0
- package/dist/node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js +1 -0
- package/dist/node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js +1 -0
- package/dist/node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js +1 -0
- package/dist/node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js +1 -0
- package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js +1 -0
- package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js +1 -0
- package/dist/node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js +1 -0
- package/dist/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js +1 -0
- package/dist/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js +1 -0
- package/dist/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js +1 -0
- package/dist/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js +1 -0
- package/dist/node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js +1 -0
- package/dist/node_modules/.pnpm/is-generator-function@1.1.0/node_modules/is-generator-function/index.js +1 -0
- package/dist/node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js +1 -0
- package/dist/node_modules/.pnpm/{is-typed-array@1.1.13 → is-typed-array@1.1.15}/node_modules/is-typed-array/index.js +1 -1
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js +1 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js +1 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js +1 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js +1 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js +1 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js +1 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js +1 -0
- package/dist/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js +1 -0
- package/dist/node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js +1 -0
- package/dist/node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.1.3_@types_debug@4.1.12_@types_node@22.15.3_@vitest_browser@3.1.3_@vitest_ui@3_2e2b9607d5b1537fcaa69fd02e1b9b3d → vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.1.4_@vitest_ui@_b157c97eca1209d41387a466815fb09f}/node_modules/vitest/dist/chunks/utils.CgTj3MsC.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.1.3_@types_debug@4.1.12_@types_node@22.15.3_@vitest_browser@3.1.3_@vitest_ui@3_2e2b9607d5b1537fcaa69fd02e1b9b3d → vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.1.4_@vitest_ui@_b157c97eca1209d41387a466815fb09f}/node_modules/vitest/dist/chunks/vi.ClIskdbk.js +1 -1
- package/dist/node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js +1 -0
- package/dist/packages/web-components/public/styles/gator/gator-global-styles.css.js +1 -0
- package/dist/packages/web-components/src/components/alert/gator/base/alert.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/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/date-picker/base/gator/datepicker.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/icon/gator/icon.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/icon-button/gator/icon-button.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/input/gator/dropdown/input-dropdown.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/input/gator/help-text/help-text.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/input/gator/input-date/input-date.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/input/gator/input-label/input-label.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/input/input.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/popover/gator/popover.gator.scss.js +1 -0
- package/dist/packages/web-components/src/components/popover/popover.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/tokens/semantic.tokens.scss.js +1 -1
- package/dist/types/components/combobox/base/combobox.slds.d.ts +6 -0
- package/dist/types/components/date-picker/base/datepicker.d.ts +2 -16
- package/dist/types/components/date-picker/base/gator/datepicker.gator.d.ts +2 -16
- package/dist/types/components/icon/gator/icon.gator.d.ts +9 -2
- package/dist/types/components/icon/gator/templates/chart-bar-horizontal.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/chart-bar.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/chart-donut.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/chart-line.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/chart-pie.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/chart-scatter.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/checkerboard.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/exclude-square.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/grid-four.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/grid-nine.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/index.d.ts +20 -0
- package/dist/types/components/icon/gator/templates/kanban.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/lightbulb-filament.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/list-star.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/selection.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/square-split-horizontal.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/square-split-vertical.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/square.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/table.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/text-aa.d.ts +1 -0
- package/dist/types/components/icon/gator/templates/trend-up.d.ts +1 -0
- package/dist/types/components/icon-button/gator/icon-button.gator.d.ts +1 -1
- package/dist/types/components/input/base/input-base.d.ts +5 -0
- package/dist/types/components/input/base/input-base.gator.d.ts +6 -0
- package/dist/types/components/input/gator/dropdown/input-dropdown.gator.d.ts +7 -2
- package/dist/types/components/input/gator/input-date/input-date.gator.d.ts +50 -37
- package/dist/types/components/input/gator/input-label/input-label.gator.d.ts +4 -1
- package/dist/types/components/input/gator/input-text/input-text.gator.d.ts +1 -2
- package/dist/types/components/loading-spinner/gator/loading-spinner.gator.test.d.ts +0 -0
- package/dist/types/components/popover/gator/popover.gator.d.ts +31 -0
- package/dist/types/components/popover/gator/popover.gator.test.d.ts +0 -0
- package/dist/types/components/popover/index.d.ts +1 -0
- package/dist/types/components/popover/popover.d.ts +79 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.gator.d.ts +1 -0
- package/dist/types/utils/accessibility-utils.d.ts +1 -0
- package/dist/types/utils/components/slot-placeholder/slot-placeholder.d.ts +1 -1
- package/dist/types/utils/storybook-args.d.ts +9 -0
- package/dist/types/utils/vitest-utils.d.ts +1 -0
- package/dist/utils/accessibility-utils.js +1 -1
- package/dist/utils/components/slot-placeholder/slot-placeholder.js +3 -4
- package/dist/utils/storybook-args.js +1 -1
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/dist/utils/vitest-utils.js +1 -1
- package/package.json +8 -6
- package/web-types.json +217 -127
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-code-block@45.0.0/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +0 -7
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@45.0.0/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@45.0.0/node_modules/@ckeditor/ckeditor5-image/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@45.0.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.0.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +0 -13
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.0.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +0 -28
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.0.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js +0 -1
- package/dist/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js +0 -1
- package/dist/node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js +0 -1
- package/dist/node_modules/.pnpm/is-arguments@1.1.1/node_modules/is-arguments/index.js +0 -1
- package/dist/node_modules/.pnpm/is-generator-function@1.0.10/node_modules/is-generator-function/index.js +0 -1
- package/dist/node_modules/.pnpm/which-typed-array@1.1.15/node_modules/which-typed-array/index.js +0 -1
- package/dist/packages/web-components/src/components/input/gator/input-label/input-label.gator.tokens.scss.js +0 -1
- /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@45.0.0 → @ckeditor_ckeditor5-icons@45.1.0}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@45.0.0 → @ckeditor_ckeditor5-watchdog@45.1.0}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/channels/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/client-logger/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/core-events/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/csf/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/preview-api/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_}/node_modules/@storybook/core/dist/preview-errors.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_browser@3.1.3_msw@2.7.3_@types_node@22.15.3_typescript@5.8.3__playwright@1.52.0_874804df4c9de8b0f916251804782fb9 → @vitest_browser@3.1.4_msw@2.7.3_@types_node@22.15.21_typescript@5.8.3__playwright@1.52._ce6a4a1e71cccb66c0847e643d956555}/node_modules/@vitest/browser/context.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_pretty-format@3.1.3 → @vitest_pretty-format@3.1.4}/node_modules/@vitest/pretty-format/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_runner@3.1.3 → @vitest_runner@3.1.4}/node_modules/@vitest/runner/dist/chunk-tasks.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_spy@3.1.3 → @vitest_spy@3.1.4}/node_modules/@vitest/spy/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/error.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/helpers.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/source-map.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.1.3_@types_debug@4.1.12_@types_node@22.15.3_@vitest_browser@3.1.3_@vitest_ui@3_2e2b9607d5b1537fcaa69fd02e1b9b3d → vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.1.4_@vitest_ui@_b157c97eca1209d41387a466815fb09f}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.1.3_@types_debug@4.1.12_@types_node@22.15.3_@vitest_browser@3.1.3_@vitest_ui@3_2e2b9607d5b1537fcaa69fd02e1b9b3d → vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.21_@vitest_browser@3.1.4_@vitest_ui@_b157c97eca1209d41387a466815fb09f}/node_modules/vitest/dist/chunks/date.CDOsz-HY.js +0 -0
|
@@ -4,7 +4,7 @@ var Gt=Object.defineProperty;var $t=(t,n,e)=>n in t?Gt(t,n,{enumerable:!0,config
|
|
|
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 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(),
|
|
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
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
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;/**
|
|
@@ -20,7 +20,7 @@ var Gt=Object.defineProperty;var $t=(t,n,e)=>n in t?Gt(t,n,{enumerable:!0,config
|
|
|
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
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.
|
|
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
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
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=[]}}/**
|
|
@@ -38,7 +38,7 @@ Read more: ${ae}#error-${t}`}function ue(t,n){const e=new WeakSet,o=n?` ${JSON.s
|
|
|
38
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
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 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");
|
|
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
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
44
|
*/function En(t){const n=[];let e=t;for(;e&&e.nodeType!=Node.DOCUMENT_NODE;)n.unshift(e),e=e.parentNode;return n}/**
|
|
@@ -56,7 +56,7 @@ Read more: ${ae}#error-${t}`}function ue(t,n){const e=new WeakSet,o=n?` ${JSON.s
|
|
|
56
56
|
*/function tt(t){return Object.prototype.toString.call(t)=="[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 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);
|
|
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&>(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
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
62
|
*/function In(t,n){t instanceof HTMLTextAreaElement&&(t.value=n),t.innerHTML=n}/**
|
|
@@ -71,34 +71,34 @@ Read more: ${ae}#error-${t}`}function ue(t,n){const e=new WeakSet,o=n?` ${JSON.s
|
|
|
71
71
|
*/function vn(t,n,e){t.insertBefore(e,t.childNodes[n]||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 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
|
|
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
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 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
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 Ke=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig"];function yt(t){return Ke.includes(t)?"rtl":"ltr"}/**
|
|
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
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 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
|
|
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
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 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
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 Je(t){const n=new Map;for(const e in t)n.set(e,t[e]);return n}function
|
|
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
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 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
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 Hn(t,n){let e;function i(...o){i.cancel(),e=setTimeout(()=>t(...o),n)}return i.cancel=()=>{clearTimeout(e)},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 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
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 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
|
|
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
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 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
|
|
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};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var $=Object.defineProperty;var U=(n,s,e)=>s in n?$(n,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[s]=e;var p=(n,s,e)=>U(n,typeof s!="symbol"?s+"":s,e);import{Plugin as P}from"../../../../../@ckeditor_ckeditor5-core@45.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{MouseObserver as D,TreeWalker as q}from"../../../../../@ckeditor_ckeditor5-engine@45.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Delete as I}from"../../../../../@ckeditor_ckeditor5-typing@45.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{keyCodes as T,env as O,getLocalizedArrowKeyCodeDirection as G,logWarning as Y,CKEditorError as F,isForwardArrowKeyCode as X,getRangeFromMouseEvent as J,global as A,DomEmitterMixin as Q,toArray as N,Rect as v,ObservableMixin as M,compareArrays as Z,EmitterMixin as ee}from"../../../../../@ckeditor_ckeditor5-utils@45.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconReturnArrow as te,IconDragHandle as ie}from"../../../../../@ckeditor_ckeditor5-icons@45.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ContextualBalloon as oe,ToolbarView as ne,BalloonPanelView as se,IconView as re,Template as k,View as le}from"../../../../../@ckeditor_ckeditor5-ui@45.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{Enter as ce}from"../../../../../@ckeditor_ckeditor5-enter@45.1.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{throttle as ae}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.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
|
+
*/class de extends ee(){constructor(){super(...arguments);p(this,"_stack",[])}add(e,t){const i=this._stack,o=i[0];this._insertDescriptor(e);const r=i[0];o!==r&&!C(o,r)&&this.fire("change:top",{oldDescriptor:o,newDescriptor:r,writer:t})}remove(e,t){const i=this._stack,o=i[0];this._removeDescriptor(e);const r=i[0];o!==r&&!C(o,r)&&this.fire("change:top",{oldDescriptor:o,newDescriptor:r,writer:t})}_insertDescriptor(e){const t=this._stack,i=t.findIndex(r=>r.id===e.id);if(C(e,t[i]))return;i>-1&&t.splice(i,1);let o=0;for(;t[o]&&he(t[o],e);)o++;t.splice(o,0,e)}_removeDescriptor(e){const t=this._stack,i=t.findIndex(o=>o.id===e);i>-1&&t.splice(i,1)}}function C(n,s){return n&&s&&n.priority==s.priority&&S(n.classes)==S(s.classes)}function he(n,s){return n.priority>s.priority?!0:n.priority<s.priority?!1:S(n.classes)>S(s.classes)}function S(n){return Array.isArray(n)?n.sort().join(","):n}const ue="ck-widget",R="ck-widget_selected";function m(n){return n.is("element")?!!n.getCustomProperty("widget"):!1}function nt(n,s,e={}){if(!n.is("containerElement"))throw new F("widget-to-widget-wrong-element-type",null,{element:n});return s.setAttribute("contenteditable","false",n),s.addClass(ue,n),s.setCustomProperty("widget",!0,n),n.getFillerOffset=we,s.setCustomProperty("widgetLabel",[],n),e.label&&fe(n,e.label),e.hasSelectionHandle&&_e(n,s),L(n,s),n}function ge(n,s,e){if(s.classes&&e.addClass(N(s.classes),n),s.attributes)for(const t in s.attributes)e.setAttribute(t,s.attributes[t],n)}function pe(n,s,e){if(s.classes&&e.removeClass(N(s.classes),n),s.attributes)for(const t in s.attributes)e.removeAttribute(t,n)}function L(n,s,e=ge,t=pe){const i=new de;i.on("change:top",(l,c)=>{c.oldDescriptor&&t(n,c.oldDescriptor,c.writer),c.newDescriptor&&e(n,c.newDescriptor,c.writer)});const o=(l,c,a)=>i.add(c,a),r=(l,c,a)=>i.remove(c,a);s.setCustomProperty("addHighlight",o,n),s.setCustomProperty("removeHighlight",r,n)}function fe(n,s){n.getCustomProperty("widgetLabel").push(s)}function me(n){return n.getCustomProperty("widgetLabel").reduce((e,t)=>typeof t=="function"?e?e+". "+t():t():e?e+". "+t:t,"")}function st(n,s,e={}){return s.addClass(["ck-editor__editable","ck-editor__nested-editable"],n),e.withAriaRole!==!1&&s.setAttribute("role","textbox",n),s.setAttribute("tabindex","-1",n),e.label&&s.setAttribute("aria-label",e.label,n),s.setAttribute("contenteditable",n.isReadOnly?"false":"true",n),n.on("change:isReadOnly",(t,i,o)=>{s.setAttribute("contenteditable",o?"false":"true",n)}),n.on("change:isFocused",(t,i,o)=>{o?s.addClass("ck-editor__nested-editable_focused",n):s.removeClass("ck-editor__nested-editable_focused",n)}),L(n,s),n}function rt(n,s){const e=n.getSelectedElement();if(e){const t=b(n);if(t)return s.createRange(s.createPositionAt(e,t))}return s.schema.findOptimalInsertionRange(n)}function we(){return null}function _e(n,s){const e=s.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(t){const i=this.toDomElement(t),o=new re;return o.set("content",ie),o.render(),i.appendChild(o.element),i});s.insert(s.createPositionAt(n,0),e),s.addClass(["ck-widget_with-selection-handle"],n)}function be(n){const s=l=>{const{width:c,paddingLeft:a,paddingRight:d}=l.ownerDocument.defaultView.getComputedStyle(l);return parseFloat(c)-(parseFloat(a)||0)-(parseFloat(d)||0)},e=n.parentElement;if(!e)return 0;let t=s(e);const i=5;let o=0,r=e;for(;isNaN(t);){if(r=r.parentElement,++o>i)return 0;t=s(r)}return t}function ye(n,s=new v(n)){const e=be(n);return e?s.width/e*100:0}const _="widget-type-around";function y(n,s,e){return!!n&&m(n)&&!e.isInline(s)}function ve(n){return n.closest(".ck-widget__type-around__button")}function Ee(n){return n.classList.contains("ck-widget__type-around__button_before")?"before":"after"}function Se(n,s){const e=n.closest(".ck-widget");return s.mapDomToView(e)}function b(n){return n.getAttribute(_)}const B=["before","after"],Pe=new DOMParser().parseFromString(te,"image/svg+xml").firstChild,W="ck-widget__type-around_disabled";class Ce extends P{constructor(){super(...arguments);p(this,"_currentFakeCaretModelElement",null)}static get pluginName(){return"WidgetTypeAround"}static get isOfficialPlugin(){return!0}static get requires(){return[ce,I]}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",(i,o,r)=>{t.change(l=>{for(const c of t.document.roots)r?l.removeClass(W,c):l.addClass(W,c)}),r||e.model.change(l=>{l.removeSelectionAttribute(_)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const i=this.editor,o=i.editing.view,r=i.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);i.execute("insertParagraph",{position:i.model.createPositionAt(e,t),attributes:r}),o.focus(),o.scrollToTheSelection()}_listenToIfEnabled(e,t,i,o){this.listenTo(e,t,(...r)=>{this.isEnabled&&i(...r)},o)}_insertParagraphAccordingToFakeCaretPosition(){const i=this.editor.model.document.selection,o=b(i);if(!o)return!1;const r=i.getSelectedElement();return this._insertParagraph(r,o),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,i=e.locale.t,o={before:i("Insert paragraph before block"),after:i("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(r,l,c)=>{const a=c.mapper.toViewElement(l.item);a&&y(a,l.item,t)&&(Te(c.writer,o,a),a.getCustomProperty("widgetLabel").push(()=>this.isEnabled?i("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,i=t.document.selection,o=t.schema,r=e.editing.view;this._listenToIfEnabled(r.document,"arrowKey",(c,a)=>{this._handleArrowKeyPress(c,a)},{context:[m,"$text"],priority:"high"}),this._listenToIfEnabled(i,"change:range",(c,a)=>{a.directChange&&e.model.change(d=>{d.removeSelectionAttribute(_)})}),this._listenToIfEnabled(t.document,"change:data",()=>{const c=i.getSelectedElement();if(c){const a=e.editing.mapper.toViewElement(c);if(y(a,c,o))return}e.model.change(a=>{a.removeSelectionAttribute(_)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(c,a,d)=>{const u=d.writer;if(this._currentFakeCaretModelElement){const w=d.mapper.toViewElement(this._currentFakeCaretModelElement);w&&(u.removeClass(B.map(l),w),this._currentFakeCaretModelElement=null)}const h=a.selection.getSelectedElement();if(!h)return;const f=d.mapper.toViewElement(h);if(!y(f,h,o))return;const g=b(a.selection);g&&(u.addClass(l(g),f),this._currentFakeCaretModelElement=h)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(c,a,d)=>{d||e.model.change(u=>{u.removeSelectionAttribute(_)})});function l(c){return`ck-widget_type-around_show-fake-caret_${c}`}}_handleArrowKeyPress(e,t){const i=this.editor,o=i.model,r=o.document.selection,l=o.schema,c=i.editing.view,a=t.keyCode,d=X(a,i.locale.contentLanguageDirection),u=c.document.selection.getSelectedElement(),h=i.editing.mapper.toModelElement(u);let f;y(u,h,l)?f=this._handleArrowKeyPressOnSelectedWidget(d):r.isCollapsed?f=this._handleArrowKeyPressWhenSelectionNextToAWidget(d):t.shiftKey||(f=this._handleArrowKeyPressWhenNonCollapsedSelection(d)),f&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const i=this.editor.model,o=i.document.selection,r=b(o);return i.change(l=>{if(r){if(!(r===(e?"after":"before")))return l.removeSelectionAttribute(_),!0}else return l.setSelectionAttribute(_,e?"after":"before"),!0;return!1})}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,i=t.model,o=i.schema,r=t.plugins.get("Widget"),l=r._getObjectElementNextToSelection(e),c=t.editing.mapper.toViewElement(l);return y(c,l,o)?(i.change(a=>{r._setSelectionOverElement(l),a.setSelectionAttribute(_,e?"before":"after")}),!0):!1}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,i=t.model,o=i.schema,r=t.editing.mapper,l=i.document.selection,c=e?l.getLastPosition().nodeBefore:l.getFirstPosition().nodeAfter,a=r.toViewElement(c);return y(a,c,o)?(i.change(d=>{d.setSelection(c,"on"),d.setSelectionAttribute(_,e?"after":"before")}),!0):!1}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(i,o)=>{const r=ve(o.domTarget);if(!r)return;const l=Ee(r),c=Se(r,t.domConverter),a=e.editing.mapper.toModelElement(c);this._insertParagraph(a,l),o.preventDefault(),i.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,i=e.editing.view;this._listenToIfEnabled(i.document,"enter",(o,r)=>{if(o.eventPhase!="atTarget")return;const l=t.getSelectedElement(),c=e.editing.mapper.toViewElement(l),a=e.model.schema;let d;this._insertParagraphAccordingToFakeCaretPosition()?d=!0:y(c,l,a)&&(this._insertParagraph(l,r.isSoft?"before":"after"),d=!0),d&&(r.preventDefault(),o.stop())},{context:m})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(i,o)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(o.selection=t.selection)},{priority:"high"}),O.isAndroid?this._listenToIfEnabled(t,"keydown",(i,o)=>{o.keyCode==229&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(t,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"highest"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,i=e.model,o=i.schema;this._listenToIfEnabled(t.document,"delete",(r,l)=>{if(r.eventPhase!="atTarget")return;const c=b(i.document.selection);if(!c)return;const a=l.direction,d=i.document.selection.getSelectedElement(),u=c==="before",h=a=="forward";if(u===h)e.execute("delete",{selection:i.createSelection(d,"on")});else{const g=o.getNearestSelectionRange(i.createPositionAt(d,c),a);if(g)if(!g.isCollapsed)i.change(w=>{w.setSelection(g),e.execute(h?"deleteForward":"delete")});else{const w=i.createSelection(g.start);if(i.modifySelection(w,{direction:a}),!w.focus.isEqual(g.start))i.change(E=>{E.setSelection(g),e.execute(h?"deleteForward":"delete")});else{const E=Re(o,g.start.parent);i.deleteContent(i.createSelection(E,"on"),{doNotAutoparagraph:!0})}}}l.preventDefault(),r.stop()},{context:m})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,i=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(o,[r,l])=>{if(l&&!l.is("documentSelection"))return;const c=b(i);if(c)return o.stop(),t.change(a=>{const d=i.getSelectedElement(),u=t.createPositionAt(d,c),h=a.createSelection(u),f=t.insertContent(r,h);return a.setSelection(h),f})},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,i=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(o,r)=>{const[,l,c={}]=r;if(l&&!l.is("documentSelection"))return;const a=b(i);a&&(c.findOptimalPosition=a,r[3]=c)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,i=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(o,[r])=>{if(r&&!r.is("documentSelection"))return;b(i)&&o.stop()},{priority:"high"})}}function Te(n,s,e){const t=n.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(i){const o=this.toDomElement(i);return ke(o,s),Ae(o),o});n.insert(n.createPositionAt(e,"end"),t)}function ke(n,s){for(const e of B){const t=new k({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${e}`],title:s[e],"aria-hidden":"true"},children:[n.ownerDocument.importNode(Pe,!0)]});n.appendChild(t.render())}}function Ae(n){const s=new k({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});n.appendChild(s.render())}function Re(n,s){let e=s;for(const t of s.getAncestors({parentFirst:!0})){if(t.childCount>1||n.isLimit(t))break;e=t}return e}function We(n){const s=n.model;return(e,t)=>{const i=t.keyCode==T.arrowup,o=t.keyCode==T.arrowdown,r=t.shiftKey,l=s.document.selection;if(!i&&!o)return;const c=o;if(r&&He(l,c))return;const a=ze(n,l,c);if(a){if(a.isCollapsed){if(l.isCollapsed)return;if(r)return}(a.isCollapsed||xe(n,a,c))&&(s.change(d=>{const u=c?a.end:a.start;if(r){const h=s.createSelection(l.anchor);h.setFocus(u),d.setSelection(h)}else d.setSelection(u)}),e.stop(),t.preventDefault(),t.stopPropagation())}}}function ze(n,s,e){const t=n.model;if(e){const i=s.isCollapsed?s.focus:s.getLastPosition(),o=z(t,i,"forward");if(!o)return null;const r=t.createRange(i,o),l=x(t.schema,r,"backward");return l?t.createRange(i,l):null}else{const i=s.isCollapsed?s.focus:s.getFirstPosition(),o=z(t,i,"backward");if(!o)return null;const r=t.createRange(o,i),l=x(t.schema,r,"forward");return l?t.createRange(l,i):null}}function z(n,s,e){const t=n.schema,i=n.createRangeIn(s.root),o=e=="forward"?"elementStart":"elementEnd";for(const{previousPosition:r,item:l,type:c}of i.getWalker({startPosition:s,direction:e})){if(t.isLimit(l)&&!t.isInline(l))return r;if(c==o&&t.isBlock(l))return null}return null}function x(n,s,e){const t=e=="backward"?s.end:s.start;if(n.checkChild(t,"$text"))return t;for(const{nextPosition:i}of s.getWalker({direction:e}))if(n.checkChild(i,"$text"))return i;return null}function xe(n,s,e){const t=n.model,i=n.view.domConverter;if(e){const a=t.createSelection(s.start);t.modifySelection(a),!a.focus.isAtEnd&&!s.start.isEqual(a.focus)&&(s=t.createRange(a.focus,s.end))}const o=n.mapper.toViewRange(s),r=i.viewRangeToDom(o),l=v.getDomRangeRects(r);let c;for(const a of l){if(c===void 0){c=Math.round(a.bottom);continue}if(Math.round(a.top)>=c)return!1;c=Math.max(c,Math.round(a.bottom))}return!0}function He(n,s){return!n.isCollapsed&&n.isBackward==s}class lt extends P{constructor(){super(...arguments);p(this,"_previouslySelected",new Set)}static get pluginName(){return"Widget"}static get isOfficialPlugin(){return!0}static get requires(){return[Ce,I]}init(){const e=this.editor,t=e.editing.view,i=t.document,o=e.t;this.editor.editing.downcastDispatcher.on("selection",(r,l,c)=>{const a=c.writer,d=l.selection;if(d.isCollapsed)return;const u=d.getSelectedElement();if(!u)return;const h=e.editing.mapper.toViewElement(u);m(h)&&c.consumable.consume(d,"selection")&&a.setSelection(a.createRangeOn(h),{fake:!0,label:me(h)})}),this.editor.editing.downcastDispatcher.on("selection",(r,l,c)=>{this._clearPreviouslySelectedWidgets(c.writer);const a=c.writer,d=a.document.selection;let u=null;for(const h of d.getRanges())for(const f of h){const g=f.item;m(g)&&!Ie(g,u)&&(a.addClass(R,g),this._previouslySelected.add(g),u=g)}},{priority:"low"}),t.addObserver(D),this.listenTo(i,"mousedown",(...r)=>this._onMousedown(...r)),this.listenTo(i,"arrowKey",(...r)=>{this._handleSelectionChangeOnArrowKeyPress(...r)},{context:[m,"$text"]}),this.listenTo(i,"arrowKey",(...r)=>{this._preventDefaultOnArrowKeyPress(...r)},{context:"$root"}),this.listenTo(i,"arrowKey",We(this.editor.editing),{context:"$text"}),this.listenTo(i,"delete",(r,l)=>{this._handleDelete(l.direction=="forward")&&(l.preventDefault(),r.stop())},{context:"$root"}),this.listenTo(i,"tab",(r,l)=>{r.eventPhase=="atTarget"&&(l.shiftKey||this._selectFirstNestedEditable()&&(l.preventDefault(),r.stop()))},{context:m,priority:"low"}),this.listenTo(i,"tab",(r,l)=>{l.shiftKey&&this._selectAncestorWidget()&&(l.preventDefault(),r.stop())},{priority:"low"}),this.listenTo(i,"keydown",(r,l)=>{l.keystroke==T.esc&&this._selectAncestorWidget()&&(l.preventDefault(),r.stop())},{priority:"low"}),e.accessibility.addKeystrokeInfoGroup({id:"widget",label:o("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:o("Move focus from an editable area back to the parent widget"),keystroke:"Esc"},{label:o("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:o("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:o("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:o("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(e,t){const i=this.editor,o=i.editing.view,r=o.document;let l=t.target;if(!l)return;if(t.domEvent.detail>=3){this._selectBlockContent(l)&&t.preventDefault();return}if(!m(l)){const a=Ve(l);if(!a)return;if(m(a))l=a;else{const d=De(o,t);if(d&&m(d))l=d;else return}}O.isAndroid&&t.preventDefault(),r.isFocused||o.focus();const c=i.editing.mapper.toModelElement(l);this._setSelectionOverElement(c)}_selectBlockContent(e){const t=this.editor,i=t.model,o=t.editing.mapper,r=i.schema,l=o.findMappedViewAncestor(this.editor.editing.view.createPositionAt(e,0)),c=Oe(o.toModelElement(l),i.schema);return c?(i.change(a=>{const d=r.isLimit(c)?null:Fe(a.createPositionAfter(c),r),u=a.createPositionAt(c,0),h=d?a.createPositionAt(d,0):a.createPositionAt(c,"end");a.setSelection(a.createRange(u,h))}),!0):!1}_handleSelectionChangeOnArrowKeyPress(e,t){const i=t.keyCode,o=this.editor.model,r=o.schema,l=o.document.selection,c=l.getSelectedElement(),a=G(i,this.editor.locale.contentLanguageDirection),d=a=="down"||a=="right",u=a=="up"||a=="down";if(c&&r.isObject(c)){const f=d?l.getLastPosition():l.getFirstPosition(),g=r.getNearestSelectionRange(f,d?"forward":"backward");g&&(o.change(w=>{w.setSelection(g)}),t.preventDefault(),e.stop());return}if(!l.isCollapsed&&!t.shiftKey){const f=l.getFirstPosition(),g=l.getLastPosition(),w=f.nodeAfter,E=g.nodeBefore;(w&&r.isObject(w)||E&&r.isObject(E))&&(o.change(j=>{j.setSelection(d?g:f)}),t.preventDefault(),e.stop());return}if(!l.isCollapsed)return;const h=this._getObjectElementNextToSelection(d);if(h&&r.isObject(h)){if(r.isInline(h)&&u)return;this._setSelectionOverElement(h),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const i=this.editor.model,o=i.schema,r=i.document.selection.getSelectedElement();r&&o.isObject(r)&&(t.preventDefault(),e.stop())}_handleDelete(e){const i=this.editor.model.document.selection;if(!this.editor.model.canEditAt(i)||!i.isCollapsed)return;const o=this._getObjectElementNextToSelection(e);if(o)return this.editor.model.change(r=>{let l=i.anchor.parent;for(;l.isEmpty;){const c=l;l=c.parent,r.remove(c)}this._setSelectionOverElement(o)}),!0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){const t=this.editor.model,i=t.schema,o=t.document.selection,r=t.createSelection(o);if(t.modifySelection(r,{direction:e?"forward":"backward"}),r.isEqual(o))return null;const l=e?r.focus.nodeBefore:r.focus.nodeAfter;return l&&i.isObject(l)?l:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(R,t);this._previouslySelected.clear()}_selectFirstNestedEditable(){const e=this.editor,i=this.editor.editing.view.document;for(const o of i.selection.getFirstRange().getItems())if(o.is("editableElement")){const r=e.editing.mapper.toModelElement(o);/* istanbul ignore next -- @preserve */if(!r)continue;const l=e.model.createPositionAt(r,0),c=e.model.schema.getNearestSelectionRange(l,"forward");return e.model.change(a=>{a.setSelection(c)}),!0}return!1}_selectAncestorWidget(){const e=this.editor,t=e.editing.mapper,o=e.editing.view.document.selection.getFirstPosition().parent,l=(o.is("$text")?o.parent:o).findAncestor(m);if(!l)return!1;const c=t.toModelElement(l);/* istanbul ignore next -- @preserve */return c?(e.model.change(a=>{a.setSelection(c,"on")}),!0):!1}}function Ve(n){let s=n;for(;s;){if(s.is("editableElement")||m(s))return s;s=s.parent}return null}function De(n,s){const e=J(s.domEvent);let t=null;if(e?t=n.domConverter.domRangeToView(e):t=n.createRange(n.createPositionAt(s.target,0)),!t)return null;const i=t.start;if(!i.parent)return null;let o=i.parent;return i.parent.is("editableElement")&&(i.isAtEnd&&i.nodeBefore?o=i.nodeBefore:i.isAtStart&&i.nodeAfter&&(o=i.nodeAfter)),o.is("$text")?o.parent:o}function Ie(n,s){return s?Array.from(n.getAncestors()).includes(s):!1}function Oe(n,s){for(const e of n.getAncestors({includeSelf:!0,parentFirst:!0})){if(s.checkChild(e,"$text"))return e;if(s.isLimit(e)&&!s.isObject(e))break}return null}function Fe(n,s){const e=new q({startPosition:n});for(const{item:t}of e){if(s.isLimit(t)||!t.is("element"))return null;if(s.checkChild(t,"$text"))return t}return null}class ct extends P{constructor(){super(...arguments);p(this,"_toolbarDefinitions",new Map);p(this,"_balloon")}static get requires(){return[oe]}static get pluginName(){return"WidgetToolbarRepository"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",i=>{Ne(e.editing.view.document.selection)&&i.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:i,getRelatedElement:o,balloonClassName:r="ck-toolbar-container",positions:l}){if(!i.length){Y("widget-toolbar-no-items",{toolbarId:e});return}const c=this.editor,a=c.t,d=new ne(c.locale);if(d.ariaLabel=t||a("Widget toolbar"),this._toolbarDefinitions.has(e))throw new F("widget-toolbar-duplicated",this,{toolbarId:e});const u={view:d,getRelatedElement:o,balloonClassName:r,itemsConfig:i,positions:l,initialized:!1};c.ui.addToolbar(d,{isContextual:!0,beforeFocus:()=>{const h=o(c.editing.view.document.selection);h&&this._showToolbar(u,h)},afterBlur:()=>{this._hideToolbar(u)}}),this._toolbarDefinitions.set(e,u)}_updateToolbarsVisibility(){let e=0,t=null,i=null;for(const o of this._toolbarDefinitions.values()){const r=o.getRelatedElement(this.editor.editing.view.document.selection);if(!this.isEnabled||!r)this._isToolbarInBalloon(o)&&this._hideToolbar(o);else if(!this.editor.ui.focusTracker.isFocused)this._isToolbarVisible(o)&&this._hideToolbar(o);else{const l=r.getAncestors().length;l>e&&(e=l,t=r,i=o)}}i&&this._showToolbar(i,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?H(this.editor,t,e.positions):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:K(this.editor,t,e.positions),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const i of this._toolbarDefinitions.values())if(this._isToolbarVisible(i)){const o=i.getRelatedElement(this.editor.editing.view.document.selection);H(this.editor,o,e.positions)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function H(n,s,e){const t=n.plugins.get("ContextualBalloon"),i=K(n,s,e);t.updatePosition(i)}function K(n,s,e){const t=n.editing.view,i=se.defaultPositions;return{target:t.domConverter.mapViewToDom(s),positions:e||[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}function Ne(n){const s=n.getSelectedElement();return!!(s&&m(s))}class Me extends M(){constructor(e){super();p(this,"_referenceCoordinates");p(this,"_options");p(this,"_originalWidth");p(this,"_originalHeight");p(this,"_originalWidthPercents");p(this,"_aspectRatio");this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(e,t,i){const o=new v(t);this.activeHandlePosition=Ke(e),this._referenceCoordinates=Le(t,je(this.activeHandlePosition)),this._originalWidth=o.width,this._originalHeight=o.height,this._aspectRatio=o.width/o.height;const r=i.style.width;r&&r.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(r):this._originalWidthPercents=ye(i,o)}update(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}function Le(n,s){const e=new v(n),t=s.split("-"),i={x:t[1]=="right"?e.right:e.left,y:t[0]=="bottom"?e.bottom:e.top};return i.x+=n.ownerDocument.defaultView.scrollX,i.y+=n.ownerDocument.defaultView.scrollY,i}function Be(n){return`ck-widget__resizer__handle-${n}`}function Ke(n){const s=["top-left","top-right","bottom-right","bottom-left"];for(const e of s)if(n.classList.contains(Be(e)))return e}function je(n){const s=n.split("-"),e={top:"bottom",bottom:"top",left:"right",right:"left"};return`${e[s[0]]}-${e[s[1]]}`}class $e extends le{constructor(){super();const s=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",s.to("_viewPosition",e=>e?`ck-orientation-${e}`:"")],style:{display:s.if("_isVisible","none",e=>!e)}},children:[{text:s.to("_label")}]})}_bindToState(s,e){this.bind("_isVisible").to(e,"proposedWidth",e,"proposedHeight",(t,i)=>t!==null&&i!==null),this.bind("_label").to(e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",e,"proposedWidthPercents",(t,i,o)=>s.unit==="px"?`${t}×${i}`:`${o}%`),this.bind("_viewPosition").to(e,"activeHandlePosition",e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",(t,i,o)=>i<50||o<50?"above-center":t)}_dismiss(){this.unbind(),this._isVisible=!1}}class V extends M(){constructor(e){super();p(this,"_state");p(this,"_sizeView");p(this,"_options");p(this,"_viewResizerWrapper",null);p(this,"_initialViewWidth");this._options=e,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",(t,i)=>t&&i),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",t=>{!this.state.proposedWidth&&!this.state.proposedWidthPercents&&(this._cleanup(),t.stop())},{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change(t=>{t.removeClass("ck-hidden",this._viewResizerWrapper)})}hide(){this._options.editor.editing.view.change(t=>{t.addClass("ck-hidden",this._viewResizerWrapper)})}attach(){const e=this,t=this._options.viewElement;this._options.editor.editing.view.change(o=>{const r=o.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(l){const c=this.toDomElement(l);return e._appendHandles(c),e._appendSizeUI(c),c});o.insert(o.createPositionAt(t,"end"),r),o.addClass("ck-widget_with-resizer",t),this._viewResizerWrapper=r,this.isVisible||this.hide()}),this.on("change:isVisible",()=>{this.isVisible?(this.show(),this.redraw()):this.hide()})}begin(e){this._state=new Me(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}updateSize(e){const t=this._proposeNewSize(e);this._options.editor.editing.view.change(d=>{const u=this._options.unit||"%",h=(u==="%"?t.widthPercents:t.width)+u;d.setStyle("width",h,this._options.viewElement)});const o=this._getHandleHost(),r=new v(o),l=Math.round(r.width),c=Math.round(r.height),a=new v(o);t.width=Math.round(a.width),t.height=Math.round(a.height),this.redraw(r),this.state.update({...t,handleHostWidth:l,handleHostHeight:c})}commit(){const e=this._options.unit||"%",t=(e==="%"?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change(()=>{this._cleanup(),this._options.onCommit(t)})}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(e){const t=this._domResizerWrapper;if(!Ge(t))return;const i=t.parentElement,o=this._getHandleHost(),r=this._viewResizerWrapper,l=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];let c;if(i.isSameNode(o)){const a=e||new v(o);c=[a.width+"px",a.height+"px",void 0,void 0]}else c=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];Z(l,c)!=="same"&&this._options.editor.editing.view.change(a=>{a.setStyle({width:c[0],height:c[1],left:c[2],top:c[3]},r)})}containsHandle(e){return this._domResizerWrapper.contains(e)}static isResizeHandle(e){return e.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss(),this._options.editor.editing.view.change(t=>{t.setStyle("width",this._initialViewWidth,this._options.viewElement)})}_proposeNewSize(e){const t=this.state,i=qe(e),o=this._options.isCentered?this._options.isCentered(this):!0,r={x:t._referenceCoordinates.x-(i.x+t.originalWidth),y:i.y-t.originalHeight-t._referenceCoordinates.y};o&&t.activeHandlePosition.endsWith("-right")&&(r.x=i.x-(t._referenceCoordinates.x+t.originalWidth)),o&&(r.x*=2);let l=Math.abs(t.originalWidth+r.x),c=Math.abs(t.originalHeight+r.y);return(l/t.aspectRatio>c?"width":"height")=="width"?c=l/t.aspectRatio:l=c*t.aspectRatio,{width:Math.round(l),height:Math.round(c),widthPercents:Math.min(Math.round(t.originalWidthPercents/t.originalWidth*l*100)/100,100)}}_getResizeHost(){const e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}_getHandleHost(){const e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(e){const t=["top-left","top-right","bottom-right","bottom-left"];for(const i of t)e.appendChild(new k({tag:"div",attributes:{class:`ck-widget__resizer__handle ${Ue(i)}`}}).render())}_appendSizeUI(e){this._sizeView=new $e,this._sizeView.render(),e.appendChild(this._sizeView.element)}}function Ue(n){return`ck-widget__resizer__handle-${n}`}function qe(n){return{x:n.pageX,y:n.pageY}}function Ge(n){return n&&n.ownerDocument&&n.ownerDocument.contains(n)}class at extends P{constructor(){super(...arguments);p(this,"_resizers",new Map);p(this,"_observer");p(this,"_redrawSelectedResizerThrottled")}static get pluginName(){return"WidgetResize"}static get isOfficialPlugin(){return!0}init(){const e=this.editor.editing,t=A.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),e.view.addObserver(D),this._observer=new(Q()),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=ae(()=>this.redrawSelectedResizer(),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",()=>{for(const[o,r]of this._resizers)o.isAttached()||(this._resizers.delete(o),r.destroy())},{priority:"lowest"}),this._observer.listenTo(A.window,"resize",this._redrawSelectedResizerThrottled);const i=this.editor.editing.view.document.selection;i.on("change",()=>{const o=i.getSelectedElement(),r=this.getResizerByViewElement(o)||null;r?this.select(r):this.deselect()})}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const e of this._resizers.values())e.destroy();this._redrawSelectedResizerThrottled.cancel()}select(e){this.deselect(),this.selectedResizer=e,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(e){const t=new V(e),i=this.editor.plugins;if(t.attach(),i.has("WidgetToolbarRepository")){const l=i.get("WidgetToolbarRepository");t.on("begin",()=>{l.forceDisabled("resize")},{priority:"lowest"}),t.on("cancel",()=>{l.clearForceDisabled("resize")},{priority:"highest"}),t.on("commit",()=>{l.clearForceDisabled("resize")},{priority:"highest"})}this._resizers.set(e.viewElement,t);const r=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(r)==t&&this.select(t),t}getResizerByViewElement(e){return this._resizers.get(e)}_getResizerByHandle(e){for(const t of this._resizers.values())if(t.containsHandle(e))return t}_mouseDownListener(e,t){const i=t.domTarget;V.isResizeHandle(i)&&(this._activeResizer=this._getResizerByHandle(i)||null,this._activeResizer&&(this._activeResizer.begin(i),e.stop(),t.preventDefault()))}_mouseMoveListener(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}export{ue as WIDGET_CLASS_NAME,R as WIDGET_SELECTED_CLASS_NAME,lt as Widget,at as WidgetResize,ct as WidgetToolbarRepository,Ce as WidgetTypeAround,be as calculateResizeHostAncestorWidth,ye as calculateResizeHostPercentageWidth,rt as findOptimalInsertionRange,me as getLabel,m as isWidget,L as setHighlightHandling,fe as setLabel,nt as toWidget,st as toWidgetEditable};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getSideAxis as
|
|
1
|
+
import{getSideAxis as I,getAlignmentAxis as J,getSide as D,getAlignment as T,getAxisLength as K,evaluate as $,getOppositePlacement as N,getExpandedPlacements as Q,getOppositeAxisPlacements as U,getAlignmentSides as z,getPaddingObject as W,rectToClientRect as Y,placements as _,getOppositeAlignmentPlacement as Z}from"../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";function q(n,l,f){let{reference:t,floating:e}=n;const i=I(l),c=J(l),a=K(c),w=D(l),p=i==="y",u=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:u,y:t.y-e.height};break;case"bottom":o={x:u,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(T(l)){case"start":o[c]-=d*(f&&p?-1:1);break;case"end":o[c]+=d*(f&&p?-1:1);break}return o}const ne=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:u,y:r}=q(p,t,w),d=t,o={},x=0;for(let h=0;h<a.length;h++){const{name:y,fn:v}=a[h],{x:g,y:P,data:b,reset:s}=await v({x:u,y:r,initialPlacement:t,placement:d,strategy:e,middlewareData:o,rects:p,platform:c,elements:{reference:n,floating:l}});u=g??u,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:u,y:r}=q(p,d,w)),h=-1)}return{x:u,y:r,placement:d,strategy:e,middlewareData:o}};async function G(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:u="viewport",elementContext:r="floating",altBoundary:d=!1,padding:o=0}=$(l,n),x=W(o),y=a[d?r==="floating"?"reference":"floating":r],v=Y(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:u,strategy:w})),g=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=Y(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:P,strategy:w}):g);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 ee(n,l,f){return(n?[...f.filter(e=>T(e)===n),...f.filter(e=>T(e)!==n)]:f.filter(e=>D(e)===e)).filter(e=>n?T(e)===n||(l?Z(e)!==e:!1):!0)}const le=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:u=!1,alignment:r,allowedPlacements:d=_,autoAlignment:o=!0,...x}=$(n,l),h=r!==void 0||d===_?ee(r||null,o,d):d,y=await G(l,x),v=((f=c.autoPlacement)==null?void 0:f.index)||0,g=h[v];if(g==null)return{};const P=z(g,i,await(w.isRTL==null?void 0:w.isRTL(p.floating)));if(a!==g)return{reset:{placement:h[0]}};const b=[y[D(g)],y[P[0]],y[P[1]]],s=[...((t=c.autoPlacement)==null?void 0:t.overflows)||[],{placement:g,overflows:b}],C=h[v+1];if(C)return{data:{index:v+1,overflows:s},reset:{placement:C}};const F=s.map(m=>{const O=T(m.placement);return[m.placement,O&&u?m.overflows.slice(0,2).reduce((M,j)=>M+j,0):m.overflows[0],m.overflows]}).sort((m,O)=>m[1]-O[1]),k=((e=F.filter(m=>m[2].slice(0,T(m[0])?2:3).every(O=>O<=0))[0])==null?void 0:e[0])||F[0][0];return k!==a?{data:{index:v+1,overflows:s},reset:{placement:k}}:{}}}},ie=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:u=!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=D(e),g=I(a),P=D(a)===a,b=await(w.isRTL==null?void 0:w.isRTL(p.floating)),s=d||(P||!h?[N(a)]:Q(a)),C=x!=="none";!d&&C&&s.push(...U(a,h,x,b));const F=[a,...s],B=await G(l,y),k=[];let m=((t=i.flip)==null?void 0:t.overflows)||[];if(u&&k.push(B[v]),r){const E=z(e,c,b);k.push(B[E[0]],B[E[1]])}if(m=[...m,{placement:e,overflows:k}],!k.every(E=>E<=0)){var O,M;const E=(((O=i.flip)==null?void 0:O.index)||0)+1,V=F[E];if(V){var j;const R=r==="alignment"?g!==I(V):!1,A=((j=m[0])==null?void 0:j.overflows[0])>0;if(!R||A)return{data:{index:E,overflows:m},reset:{placement:V}}}let L=(M=m.filter(R=>R.overflows[0]<=0).sort((R,A)=>R.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!L)switch(o){case"bestFit":{var X;const R=(X=m.filter(A=>{if(C){const S=I(A.placement);return S===g||S==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(S=>S>0).reduce((S,H)=>S+H,0)]).sort((A,S)=>A[1]-S[1])[0])==null?void 0:X[0];R&&(L=R);break}case"initialPlacement":L=a;break}if(e!==L)return{reset:{placement:L}}}return{}}}};export{le as autoPlacement,ne as computePosition,G as detectOverflow,ie as flip,Y as rectToClientRect};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computePosition as ot,flip as st}from"../../../../../@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js";import{createCoords as
|
|
1
|
+
import{computePosition as ot,flip as st,autoPlacement as rt}from"../../../../../@floating-ui_core@1.7.0/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 +1 @@
|
|
|
1
|
-
const
|
|
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,4 +1,4 @@
|
|
|
1
|
-
var Nr=Object.defineProperty;var Tr=(e,t,r)=>t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Y=(e,t,r)=>Tr(e,typeof t!="symbol"?t+"":t,r);import{once as Ar}from"../../../../../@storybook_core@8.6.
|
|
1
|
+
var Nr=Object.defineProperty;var Tr=(e,t,r)=>t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Y=(e,t,r)=>Tr(e,typeof t!="symbol"?t+"":t,r);import{once as Ar}from"../../../../../@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_/node_modules/@storybook/core/dist/client-logger/index.js";import{FORCE_REMOUNT as ve,STORY_RENDER_PHASE_CHANGED as Mr,SET_CURRENT_STORY as Ir}from"../../../../../@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_/node_modules/@storybook/core/dist/core-events/index.js";import{addons as Pr}from"../../../../../@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_/node_modules/@storybook/core/dist/preview-api/index.js";import{global as L}from"../../../../../@storybook_global@5.0.0/node_modules/@storybook/global/dist/index.js";var Rr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Lr={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]},Dr=Object.entries(Lr);function Ue(e){return String(e)}Ue.open="";Ue.close="";function jr(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function Fr(e=!1){let t=jr(e),r=(u,s,c,a)=>{let o="",h=0;do o+=u.substring(h,a)+c,h=a+s.length,a=u.indexOf(s,h);while(~a);return o+u.substring(h)},n=(u,s,c=u)=>{let a=o=>{let h=String(o),y=h.indexOf(s,u.length);return~y?u+r(h,s,c,y)+s:u+h+s};return a.open=u,a.close=s,a},i={isColorSupported:t},l=u=>`\x1B[${u}m`;for(let[u,s]of Dr)i[u]=t?n(l(s[0]),l(s[1]),s[2]):Ue;return i}var v=Fr(!1);function Br(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let i of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,i).enumerable&&n.push(i);return n}function Oe(e,t,r,n,i,l,u=": "){let s="",c=0,a=e.next();if(!a.done){s+=t.spacingOuter;let o=r+t.indent;for(;!a.done;){if(s+=o,c++===t.maxWidth){s+="…";break}let h=l(a.value[0],t,o,n,i),y=l(a.value[1],t,o,n,i);s+=h+u+y,a=e.next(),a.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}function Ke(e,t,r,n,i,l){let u="",s=0,c=e.next();if(!c.done){u+=t.spacingOuter;let a=r+t.indent;for(;!c.done;){if(u+=a,s++===t.maxWidth){u+="…";break}u+=l(c.value,t,a,n,i),c=e.next(),c.done?t.min||(u+=","):u+=`,${t.spacingInner}`}u+=t.spacingOuter+r}return u}function $e(e,t,r,n,i,l){let u="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=a=>a instanceof DataView,c=s(e)?e.byteLength:e.length;if(c>0){u+=t.spacingOuter;let a=r+t.indent;for(let o=0;o<c;o++){if(u+=a,o===t.maxWidth){u+="…";break}(s(e)||o in e)&&(u+=l(s(e)?e.getInt8(o):e[o],t,a,n,i)),o<c-1?u+=`,${t.spacingInner}`:t.min||(u+=",")}u+=t.spacingOuter+r}return u}function qe(e,t,r,n,i,l){let u="",s=Br(e,t.compareKeys);if(s.length>0){u+=t.spacingOuter;let c=r+t.indent;for(let a=0;a<s.length;a++){let o=s[a],h=l(o,t,c,n,i),y=l(e[o],t,c,n,i);u+=`${c+h}: ${y}`,a<s.length-1?u+=`,${t.spacingInner}`:t.min||(u+=",")}u+=t.spacingOuter+r}return u}var xr=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Ce=" ",kr=(e,t,r,n,i,l)=>{let u=e.toString();if(u==="ArrayContaining"||u==="ArrayNotContaining")return++n>t.maxDepth?`[${u}]`:`${u+Ce}[${$e(e.sample,t,r,n,i,l)}]`;if(u==="ObjectContaining"||u==="ObjectNotContaining")return++n>t.maxDepth?`[${u}]`:`${u+Ce}{${qe(e.sample,t,r,n,i,l)}}`;if(u==="StringMatching"||u==="StringNotMatching"||u==="StringContaining"||u==="StringNotContaining")return u+Ce+l(e.sample,t,r,n,i);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},zr=e=>e&&e.$$typeof===xr,Ur={serialize:kr,test:zr},Kr=" ",qt=new Set(["DOMStringMap","NamedNodeMap"]),qr=/^(?:HTML\w*Collection|NodeList)$/;function Wr(e){return qt.has(e)||qr.test(e)}var Yr=e=>e&&e.constructor&&!!e.constructor.name&&Wr(e.constructor.name);function Vr(e){return e.constructor.name==="NamedNodeMap"}var Hr=(e,t,r,n,i,l)=>{let u=e.constructor.name;return++n>t.maxDepth?`[${u}]`:(t.min?"":u+Kr)+(qt.has(u)?`{${qe(Vr(e)?[...e].reduce((s,c)=>(s[c.name]=c.value,s),{}):{...e},t,r,n,i,l)}}`:`[${$e([...e],t,r,n,i,l)}]`)},Gr={serialize:Hr,test:Yr};function Wt(e){return e.replaceAll("<","<").replaceAll(">",">")}function We(e,t,r,n,i,l,u){let s=n+r.indent,c=r.colors;return e.map(a=>{let o=t[a],h=u(o,r,s,i,l);return typeof o!="string"&&(h.includes(`
|
|
2
2
|
`)&&(h=r.spacingOuter+s+h+r.spacingOuter+n),h=`{${h}}`),`${r.spacingInner+n+c.prop.open+a+c.prop.close}=${c.value.open}${h}${c.value.close}`}).join("")}function Ye(e,t,r,n,i,l){return e.map(u=>t.spacingOuter+r+(typeof u=="string"?Yt(u,t):l(u,t,r,n,i))).join("")}function Yt(e,t){let r=t.colors.content;return r.open+Wt(e)+r.close}function Jr(e,t){let r=t.colors.comment;return`${r.open}<!--${Wt(e)}-->${r.close}`}function Ve(e,t,r,n,i){let l=n.colors.tag;return`${l.open}<${e}${t&&l.close+t+n.spacingOuter+i+l.open}${r?`>${l.close}${r}${n.spacingOuter}${i}${l.open}</${e}`:`${t&&!n.min?"":" "}/`}>${l.close}`}function He(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var Xr=1,Vt=3,Ht=8,Gt=11,Zr=/^(?:(?:HTML|SVG)\w*)?Element$/;function Qr(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function vr(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,i=typeof n=="string"&&n.includes("-")||Qr(e);return r===Xr&&(Zr.test(t)||i)||r===Vt&&t==="Text"||r===Ht&&t==="Comment"||r===Gt&&t==="DocumentFragment"}var en=e=>{var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.name)&&vr(e)};function tn(e){return e.nodeType===Vt}function rn(e){return e.nodeType===Ht}function Ne(e){return e.nodeType===Gt}var nn=(e,t,r,n,i,l)=>{if(tn(e))return Yt(e.data,t);if(rn(e))return Jr(e.data,t);let u=Ne(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?He(u,t):Ve(u,We(Ne(e)?[]:Array.from(e.attributes,s=>s.name).sort(),Ne(e)?{}:[...e.attributes].reduce((s,c)=>(s[c.name]=c.value,s),{}),t,r+t.indent,n,i,l),Ye(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,i,l),t,r)},ln={serialize:nn,test:en},un="@@__IMMUTABLE_ITERABLE__@@",sn="@@__IMMUTABLE_LIST__@@",on="@@__IMMUTABLE_KEYED__@@",cn="@@__IMMUTABLE_MAP__@@",et="@@__IMMUTABLE_ORDERED__@@",an="@@__IMMUTABLE_RECORD__@@",gn="@@__IMMUTABLE_SEQ__@@",hn="@@__IMMUTABLE_SET__@@",fn="@@__IMMUTABLE_STACK__@@",ge=e=>`Immutable.${e}`,de=e=>`[${e}]`,me=" ",tt="…";function mn(e,t,r,n,i,l,u){return++n>t.maxDepth?de(ge(u)):`${ge(u)+me}{${Oe(e.entries(),t,r,n,i,l)}}`}function pn(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}function yn(e,t,r,n,i,l){let u=ge(e._name||"Record");return++n>t.maxDepth?de(u):`${u+me}{${Oe(pn(e),t,r,n,i,l)}}`}function bn(e,t,r,n,i,l){let u=ge("Seq");return++n>t.maxDepth?de(u):e[on]?`${u+me}{${e._iter||e._object?Oe(e.entries(),t,r,n,i,l):tt}}`:`${u+me}[${e._iter||e._array||e._collection||e._iterable?Ke(e.values(),t,r,n,i,l):tt}]`}function Te(e,t,r,n,i,l,u){return++n>t.maxDepth?de(ge(u)):`${ge(u)+me}[${Ke(e.values(),t,r,n,i,l)}]`}var Sn=(e,t,r,n,i,l)=>e[cn]?mn(e,t,r,n,i,l,e[et]?"OrderedMap":"Map"):e[sn]?Te(e,t,r,n,i,l,"List"):e[hn]?Te(e,t,r,n,i,l,e[et]?"OrderedSet":"Set"):e[fn]?Te(e,t,r,n,i,l,"Stack"):e[gn]?bn(e,t,r,n,i,l):yn(e,t,r,n,i,l),_n=e=>e&&(e[un]===!0||e[an]===!0),$n={serialize:Sn,test:_n},rt={exports:{}},C={},nt;function On(){if(nt)return C;nt=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),o=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function p(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case r:case i:case n:case a:case o:return g;default:switch(g=g&&g.$$typeof,g){case s:case u:case c:case y:case h:case l:return g;default:return b}}case t:return b}}}return C.ContextConsumer=u,C.ContextProvider=l,C.Element=e,C.ForwardRef=c,C.Fragment=r,C.Lazy=y,C.Memo=h,C.Portal=t,C.Profiler=i,C.StrictMode=n,C.Suspense=a,C.SuspenseList=o,C.isAsyncMode=function(){return!1},C.isConcurrentMode=function(){return!1},C.isContextConsumer=function(g){return p(g)===u},C.isContextProvider=function(g){return p(g)===l},C.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},C.isForwardRef=function(g){return p(g)===c},C.isFragment=function(g){return p(g)===r},C.isLazy=function(g){return p(g)===y},C.isMemo=function(g){return p(g)===h},C.isPortal=function(g){return p(g)===t},C.isProfiler=function(g){return p(g)===i},C.isStrictMode=function(g){return p(g)===n},C.isSuspense=function(g){return p(g)===a},C.isSuspenseList=function(g){return p(g)===o},C.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===n||g===a||g===o||g===f||typeof g=="object"&&g!==null&&(g.$$typeof===y||g.$$typeof===h||g.$$typeof===l||g.$$typeof===u||g.$$typeof===c||g.$$typeof===m||g.getModuleId!==void 0)},C.typeOf=p,C}var it;function dn(){return it||(it=1,rt.exports=On()),rt.exports}var ie=dn();function Jt(e,t=[]){if(Array.isArray(e))for(let r of e)Jt(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function lt(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(ie.isFragment(e))return"React.Fragment";if(ie.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(ie.isContextProvider(e))return"Context.Provider";if(ie.isContextConsumer(e))return"Context.Consumer";if(ie.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(ie.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function wn(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var En=(e,t,r,n,i,l)=>++n>t.maxDepth?He(lt(e),t):Ve(lt(e),We(wn(e),e.props,t,r+t.indent,n,i,l),Ye(Jt(e.props.children),t,r+t.indent,n,i,l),t,r),Cn=e=>e!=null&&ie.isElement(e),Nn={serialize:En,test:Cn},Tn=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function An(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var Mn=(e,t,r,n,i,l)=>++n>t.maxDepth?He(e.type,t):Ve(e.type,e.props?We(An(e),e.props,t,r+t.indent,n,i,l):"",e.children?Ye(e.children,t,r+t.indent,n,i,l):"",t,r),In=e=>e&&e.$$typeof===Tn,Pn={serialize:Mn,test:In},Xt=Object.prototype.toString,Rn=Date.prototype.toISOString,Ln=Error.prototype.toString,ut=RegExp.prototype.toString;function Ae(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function Dn(e){return typeof window<"u"&&e===window}var jn=/^Symbol\((.*)\)(.*)$/,Fn=/\n/g,Zt=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function Bn(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function xn(e){return Object.is(e,-0)?"-0":String(e)}function kn(e){return`${e}n`}function st(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function ot(e){return String(e).replace(jn,"Symbol($1)")}function ct(e){return`[${Ln.call(e)}]`}function Qt(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let i=typeof e;if(i==="number")return xn(e);if(i==="bigint")return kn(e);if(i==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(i==="function")return st(e,t);if(i==="symbol")return ot(e);let l=Xt.call(e);return l==="[object WeakMap]"?"WeakMap {}":l==="[object WeakSet]"?"WeakSet {}":l==="[object Function]"||l==="[object GeneratorFunction]"?st(e,t):l==="[object Symbol]"?ot(e):l==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Rn.call(e):l==="[object Error]"?ct(e):l==="[object RegExp]"?r?ut.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):ut.call(e):e instanceof Error?ct(e):null}function vt(e,t,r,n,i,l){if(i.includes(e))return"[Circular]";i=[...i],i.push(e);let u=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!u&&e.toJSON&&typeof e.toJSON=="function"&&!l)return te(e.toJSON(),t,r,n,i,!0);let c=Xt.call(e);return c==="[object Arguments]"?u?"[Arguments]":`${s?"":"Arguments "}[${$e(e,t,r,n,i,te)}]`:Bn(c)?u?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${$e(e,t,r,n,i,te)}]`:c==="[object Map]"?u?"[Map]":`Map {${Oe(e.entries(),t,r,n,i,te," => ")}}`:c==="[object Set]"?u?"[Set]":`Set {${Ke(e.values(),t,r,n,i,te)}}`:u||Dn(e)?`[${Ae(e)}]`:`${s||!t.printBasicPrototype&&Ae(e)==="Object"?"":`${Ae(e)} `}{${qe(e,t,r,n,i,te)}}`}function zn(e){return e.serialize!=null}function er(e,t,r,n,i,l){let u;try{u=zn(e)?e.serialize(t,r,n,i,l,te):e.print(t,s=>te(s,r,n,i,l),s=>{let c=n+r.indent;return c+s.replaceAll(Fn,`
|
|
3
3
|
${c}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new Zt(s.message,s.stack)}if(typeof u!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof u}".`);return u}function tr(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Zt(n.message,n.stack)}return null}function te(e,t,r,n,i,l){let u=tr(t.plugins,e);if(u!==null)return er(u,e,t,r,n,i);let s=Qt(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:vt(e,t,r,n,i,l)}var Ge={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},rr=Object.keys(Ge),K={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Ge};function Un(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(K,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function Kn(){return rr.reduce((e,t)=>{let r=Ge[t],n=r&&v[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function qn(){return rr.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function nr(e){return(e==null?void 0:e.printFunctionName)??K.printFunctionName}function ir(e){return(e==null?void 0:e.escapeRegex)??K.escapeRegex}function lr(e){return(e==null?void 0:e.escapeString)??K.escapeString}function at(e){return{callToJSON:(e==null?void 0:e.callToJSON)??K.callToJSON,colors:e!=null&&e.highlight?Kn():qn(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:K.compareKeys,escapeRegex:ir(e),escapeString:lr(e),indent:e!=null&&e.min?"":Wn((e==null?void 0:e.indent)??K.indent),maxDepth:(e==null?void 0:e.maxDepth)??K.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??K.maxWidth,min:(e==null?void 0:e.min)??K.min,plugins:(e==null?void 0:e.plugins)??K.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:nr(e),spacingInner:e!=null&&e.min?" ":`
|
|
4
4
|
`,spacingOuter:e!=null&&e.min?"":`
|